Lines Matching refs:target
17 int i3c_ccc_do_getbcr(struct i3c_device_desc *target, in i3c_ccc_do_getbcr() argument
23 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_getbcr()
24 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_getbcr()
27 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_getbcr()
37 return i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_getbcr()
40 int i3c_ccc_do_getdcr(struct i3c_device_desc *target, in i3c_ccc_do_getdcr() argument
46 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_getdcr()
47 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_getdcr()
50 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_getdcr()
60 return i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_getdcr()
63 int i3c_ccc_do_getpid(struct i3c_device_desc *target, in i3c_ccc_do_getpid() argument
69 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_getpid()
70 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_getpid()
73 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_getpid()
83 return i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_getpid()
116 int i3c_ccc_do_setdasa(const struct i3c_device_desc *target) in i3c_ccc_do_setdasa() argument
118 struct i3c_driver_data *bus_data = (struct i3c_driver_data *)target->bus->data; in i3c_ccc_do_setdasa()
123 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_setdasa()
124 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_setdasa()
126 if ((target->static_addr == 0U) || (target->dynamic_addr != 0U)) { in i3c_ccc_do_setdasa()
134 dyn_addr = (target->init_dynamic_addr ? in i3c_ccc_do_setdasa()
135 target->init_dynamic_addr : target->static_addr) << 1; in i3c_ccc_do_setdasa()
138 if ((target->init_dynamic_addr != 0) && in i3c_ccc_do_setdasa()
139 (target->init_dynamic_addr != target->static_addr)) { in i3c_ccc_do_setdasa()
145 ccc_tgt_payload.addr = target->static_addr; in i3c_ccc_do_setdasa()
155 return i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_setdasa()
158 int i3c_ccc_do_setnewda(const struct i3c_device_desc *target, struct i3c_ccc_address new_da) in i3c_ccc_do_setnewda() argument
160 struct i3c_driver_data *bus_data = (struct i3c_driver_data *)target->bus->data; in i3c_ccc_do_setnewda()
165 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_setnewda()
166 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_setnewda()
168 if (target->dynamic_addr == 0U) { in i3c_ccc_do_setnewda()
179 if (target->dynamic_addr != new_da.addr) { in i3c_ccc_do_setnewda()
185 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_setnewda()
195 return i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_setnewda()
215 int i3c_ccc_do_events_set(struct i3c_device_desc *target, in i3c_ccc_do_events_set() argument
221 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_events_set()
222 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_events_set()
224 if (target->dynamic_addr == 0U) { in i3c_ccc_do_events_set()
228 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_events_set()
238 return i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_events_set()
263 int i3c_ccc_do_setmwl(const struct i3c_device_desc *target, in i3c_ccc_do_setmwl() argument
270 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_setmwl()
271 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_setmwl()
275 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_setmwl()
288 return i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_setmwl()
291 int i3c_ccc_do_getmwl(const struct i3c_device_desc *target, in i3c_ccc_do_getmwl() argument
299 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_getmwl()
300 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_getmwl()
303 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_getmwl()
313 ret = i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_getmwl()
350 int i3c_ccc_do_setmrl(const struct i3c_device_desc *target, in i3c_ccc_do_setmrl() argument
357 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_setmrl()
358 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_setmrl()
362 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_setmrl()
374 if ((target->bcr & I3C_BCR_IBI_PAYLOAD_HAS_DATA_BYTE) in i3c_ccc_do_setmrl()
383 return i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_setmrl()
386 int i3c_ccc_do_getmrl(const struct i3c_device_desc *target, in i3c_ccc_do_getmrl() argument
395 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_getmrl()
396 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_getmrl()
399 has_ibi_sz = (target->bcr & I3C_BCR_IBI_PAYLOAD_HAS_DATA_BYTE) in i3c_ccc_do_getmrl()
402 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_getmrl()
412 ret = i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_getmrl()
426 int i3c_ccc_do_getstatus(const struct i3c_device_desc *target, in i3c_ccc_do_getstatus() argument
437 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_getstatus()
438 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_getstatus()
441 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_getstatus()
475 ret = i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_getstatus()