Home
last modified time | relevance | path

Searched refs:dynamic_addr (Results 1 – 9 of 9) sorted by relevance

/Zephyr-latest/drivers/i3c/
Di3c_common.c23 LOG_DBG("I3C msg: %s, addr=%x", name, target->dynamic_addr); in i3c_dump_msgs()
210 if (desc->dynamic_addr == addr) { in i3c_dev_list_i3c_addr_find()
252 addr = target->dynamic_addr ? target->dynamic_addr : target->static_addr; in i3c_attach_i3c_device()
282 if (!i3c_addr_slots_is_free(&data->attached_dev.addr_slots, target->dynamic_addr)) { in i3c_reattach_i3c_device()
295 i3c_addr_slots_mark_i3c(&data->attached_dev.addr_slots, target->dynamic_addr); in i3c_reattach_i3c_device()
319 target->dynamic_addr ? target->dynamic_addr : target->static_addr); in i3c_detach_i3c_device()
404 if (desc != NULL && desc->dynamic_addr != 0U) { in i3c_dev_list_daa_addr_helper()
407 dyn_addr = desc->dynamic_addr; in i3c_dev_list_daa_addr_helper()
417 vendor_id, part_no, desc->dynamic_addr); in i3c_dev_list_daa_addr_helper()
611 desc->dynamic_addr = dyn_addr.addr >> 1; in i3c_bus_setdasa()
[all …]
Di3c_ccc.c28 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_getbcr()
51 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_getdcr()
74 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_getpid()
119 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_rstact()
160 if ((target->static_addr == 0U) || (target->dynamic_addr != 0U)) { in i3c_ccc_do_setdasa()
185 if (target->dynamic_addr == 0U) { in i3c_ccc_do_setnewda()
189 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_setnewda()
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()
256 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_entas()
[all …]
Di3c_shell.c214 desc->static_addr, desc->dynamic_addr, in cmd_i3c_info()
260 desc->dynamic_addr, in cmd_i3c_info()
591 desc->dynamic_addr = 0; in cmd_i3c_ccc_rstdaa()
633 if ((desc->supports_setaasa) && (desc->dynamic_addr == 0) && in cmd_i3c_ccc_setaasa()
635 desc->dynamic_addr = desc->static_addr; in cmd_i3c_ccc_setaasa()
649 uint8_t dynamic_addr; in cmd_i3c_ccc_setdasa() local
658 dynamic_addr = strtol(argv[3], NULL, 16); in cmd_i3c_ccc_setdasa()
659 da.addr = dynamic_addr << 1; in cmd_i3c_ccc_setdasa()
661 if (!i3c_addr_slots_is_free(&data->attached_dev.addr_slots, dynamic_addr)) { in cmd_i3c_ccc_setdasa()
662 shell_error(sh, "I3C: Address 0x%02x is already in use.", dynamic_addr); in cmd_i3c_ccc_setdasa()
[all …]
Di3c_mcux.c1086 if (target->dynamic_addr == 0U) { in mcux_i3c_transfer()
1154 ret = mcux_i3c_do_one_xfer(base, dev_data, target->dynamic_addr, false, in mcux_i3c_transfer()
1277 target->dynamic_addr = dyn_addr; in mcux_i3c_do_daa()
1651 if (data->ibi.addr[idx] == target->dynamic_addr) { in mcux_i3c_ibi_enable()
1661 target->dynamic_addr, target->bcr); in mcux_i3c_ibi_enable()
1663 msb = (target->dynamic_addr & BIT(6)) == BIT(6); in mcux_i3c_ibi_enable()
1714 data->ibi.addr[idx] = target->dynamic_addr; in mcux_i3c_ibi_enable()
1724 target->dynamic_addr, ret); in mcux_i3c_ibi_enable()
1755 if (target->dynamic_addr == data->ibi.addr[idx]) { in mcux_i3c_ibi_disable()
1777 target->dynamic_addr, ret); in mcux_i3c_ibi_disable()
Di3c_npcx.c1134 if (target->dynamic_addr == 0U) { in npcx_i3c_transfer()
1255 xfered_len = npcx_i3c_do_one_xfer_dma(dev, target->dynamic_addr, op_type, in npcx_i3c_transfer()
1405 target->dynamic_addr = dyn_addr; in npcx_i3c_do_daa()
1447 target->dynamic_addr = 0; in npcx_i3c_do_daa()
1785 if (data->ibi.addr[idx] == target->dynamic_addr) { in npcx_i3c_ibi_enable()
1794 LOG_DBG("IBI enabling for 0x%02x (BCR 0x%02x)", target->dynamic_addr, target->bcr); in npcx_i3c_ibi_enable()
1796 msb = (target->dynamic_addr & BIT(6)) == BIT(6); /* Check addess(7-bit) MSB enable */ in npcx_i3c_ibi_enable()
1847 data->ibi.addr[idx] = target->dynamic_addr; in npcx_i3c_ibi_enable()
1856 LOG_ERR("Error sending IBI ENEC for 0x%02x (%d)", target->dynamic_addr, ret); in npcx_i3c_ibi_enable()
1887 if (target->dynamic_addr == data->ibi.addr[idx]) { in npcx_i3c_ibi_disable()
[all …]
Di3c_stm32.c1258 ret = i3c_stm32_curr_msg_init(dev, msgs, NULL, num_msgs, target->dynamic_addr); in i3c_stm32_i3c_transfer()
1619 target->dynamic_addr = dyn_addr; in i3c_stm32_event_isr_tx()
1919 if (data->ibi.addr[idx] == target->dynamic_addr) { in i3c_stm32_ibi_enable()
1941 data->ibi.addr[idx] = target->dynamic_addr; in i3c_stm32_ibi_enable()
1952 LOG_ERR("Error sending IBI ENEC for 0x%02x (%d)", target->dynamic_addr, ret); in i3c_stm32_ibi_enable()
1956 LL_I3C_ConfigDeviceCapabilities(i3c, (idx + 1), target->dynamic_addr, in i3c_stm32_ibi_enable()
1980 if (target->dynamic_addr == data->ibi.addr[idx]) { in i3c_stm32_ibi_disable()
2001 LOG_ERR("Error sending IBI DISEC for 0x%02x (%d)", target->dynamic_addr, ret); in i3c_stm32_ibi_disable()
2005 LL_I3C_ConfigDeviceCapabilities(i3c, (idx + 1), target->dynamic_addr, in i3c_stm32_ibi_disable()
Di3c_cdns.c1040 SIR_MAP_DEV_DA(target->dynamic_addr) | in cdns_i3c_controller_ibi_enable()
1049 LOG_DBG("%s: IBI enabling for 0x%02x (BCR 0x%02x)", dev->name, target->dynamic_addr, in cdns_i3c_controller_ibi_enable()
1057 target->dynamic_addr, ret); in cdns_i3c_controller_ibi_enable()
1088 target->dynamic_addr, ret); in cdns_i3c_controller_ibi_disable()
1574 target->dynamic_addr = dyn_addr; in cdns_i3c_do_daa()
1978 if ((desc->static_addr != 0) || (desc->dynamic_addr != 0)) { in cdns_i3c_attach_device()
1982 int slot = cdns_i3c_master_get_rr_slot(dev, desc->dynamic_addr ? desc->dynamic_addr in cdns_i3c_attach_device()
2001 prepare_rr0_dev_address(desc->dynamic_addr ? desc->dynamic_addr in cdns_i3c_attach_device()
2030 uint32_t dev_id_rr0 = DEV_ID_RR0_IS_I3C | prepare_rr0_dev_address(desc->dynamic_addr); in cdns_i3c_reattach_device()
2207 cmd->cmd0 |= CMD0_FIFO_DEV_ADDR(target->dynamic_addr); in cdns_i3c_transfer()
[all …]
/Zephyr-latest/include/zephyr/drivers/i3c/
Dtarget_device.h49 uint8_t dynamic_addr; member
/Zephyr-latest/include/zephyr/drivers/
Di3c.h987 uint8_t dynamic_addr; member