Lines Matching refs:target
18 int i3c_ccc_do_getbcr(struct i3c_device_desc *target, in i3c_ccc_do_getbcr() argument
24 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_getbcr()
25 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_getbcr()
28 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_getbcr()
38 return i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_getbcr()
41 int i3c_ccc_do_getdcr(struct i3c_device_desc *target, in i3c_ccc_do_getdcr() argument
47 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_getdcr()
48 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_getdcr()
51 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_getdcr()
61 return i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_getdcr()
64 int i3c_ccc_do_getpid(struct i3c_device_desc *target, in i3c_ccc_do_getpid() argument
70 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_getpid()
71 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_getpid()
74 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_getpid()
84 return i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_getpid()
105 int i3c_ccc_do_rstact(const struct i3c_device_desc *target, in i3c_ccc_do_rstact() argument
114 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_rstact()
115 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_rstact()
119 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_rstact()
137 return i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_rstact()
152 int i3c_ccc_do_setdasa(const struct i3c_device_desc *target, struct i3c_ccc_address da) in i3c_ccc_do_setdasa() argument
157 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_setdasa()
158 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_setdasa()
160 if ((target->static_addr == 0U) || (target->dynamic_addr != 0U)) { in i3c_ccc_do_setdasa()
164 ccc_tgt_payload.addr = target->static_addr; in i3c_ccc_do_setdasa()
174 return i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_setdasa()
177 int i3c_ccc_do_setnewda(const struct i3c_device_desc *target, struct i3c_ccc_address new_da) in i3c_ccc_do_setnewda() argument
182 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_setnewda()
183 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_setnewda()
185 if (target->dynamic_addr == 0U) { in i3c_ccc_do_setnewda()
189 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_setnewda()
199 return i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_setnewda()
219 int i3c_ccc_do_events_set(struct i3c_device_desc *target, in i3c_ccc_do_events_set() argument
225 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_events_set()
226 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_events_set()
228 if (target->dynamic_addr == 0U) { in i3c_ccc_do_events_set()
232 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_events_set()
242 return i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_events_set()
245 int i3c_ccc_do_entas(const struct i3c_device_desc *target, uint8_t as) in i3c_ccc_do_entas() argument
250 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_entas()
251 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_entas()
256 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_entas()
263 return i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_entas()
300 int i3c_ccc_do_setmwl(const struct i3c_device_desc *target, in i3c_ccc_do_setmwl() argument
307 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_setmwl()
308 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_setmwl()
312 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_setmwl()
324 return i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_setmwl()
327 int i3c_ccc_do_getmwl(const struct i3c_device_desc *target, in i3c_ccc_do_getmwl() argument
335 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_getmwl()
336 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_getmwl()
339 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_getmwl()
349 ret = i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_getmwl()
385 int i3c_ccc_do_setmrl(const struct i3c_device_desc *target, in i3c_ccc_do_setmrl() argument
392 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_setmrl()
393 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_setmrl()
397 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_setmrl()
408 if ((target->bcr & I3C_BCR_IBI_PAYLOAD_HAS_DATA_BYTE) in i3c_ccc_do_setmrl()
417 return i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_setmrl()
420 int i3c_ccc_do_getmrl(const struct i3c_device_desc *target, in i3c_ccc_do_getmrl() argument
429 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_getmrl()
430 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_getmrl()
433 has_ibi_sz = (target->bcr & I3C_BCR_IBI_PAYLOAD_HAS_DATA_BYTE) in i3c_ccc_do_getmrl()
436 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_getmrl()
446 ret = i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_getmrl()
497 int i3c_ccc_do_getstatus(const struct i3c_device_desc *target, in i3c_ccc_do_getstatus() argument
508 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_getstatus()
509 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_getstatus()
512 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_getstatus()
546 ret = i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_getstatus()
569 int i3c_ccc_do_getcaps(const struct i3c_device_desc *target, in i3c_ccc_do_getcaps() argument
581 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_getcaps()
582 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_getcaps()
585 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_getcaps()
627 ret = i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_getcaps()
669 int i3c_ccc_do_setvendor(const struct i3c_device_desc *target, in i3c_ccc_do_setvendor() argument
676 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_setvendor()
688 return i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_setvendor()
691 int i3c_ccc_do_getvendor(const struct i3c_device_desc *target, in i3c_ccc_do_getvendor() argument
701 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_getvendor()
708 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_getvendor()
718 ret = i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_getvendor()
727 int i3c_ccc_do_getvendor_defbyte(const struct i3c_device_desc *target, in i3c_ccc_do_getvendor_defbyte() argument
738 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_getvendor_defbyte()
745 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_getvendor_defbyte()
757 ret = i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_getvendor_defbyte()
800 int i3c_ccc_do_getmxds(const struct i3c_device_desc *target, in i3c_ccc_do_getmxds() argument
812 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_getmxds()
813 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_getmxds()
816 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_getmxds()
856 ret = i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_getmxds()