Home
last modified time | relevance | path

Searched refs:dev_list (Results 1 – 6 of 6) sorted by relevance

/Zephyr-Core-3.7.0/drivers/i3c/
Di3c_common.c121 for (i = 0; i < config->dev_list.num_i2c; i++) { in i3c_addr_slots_init()
122 i2c_dev = &config->dev_list.i2c[i]; in i3c_addr_slots_init()
136 for (i = 0; i < config->dev_list.num_i3c; i++) { in i3c_addr_slots_init()
137 i3c_dev = &config->dev_list.i3c[i]; in i3c_addr_slots_init()
178 struct i3c_device_desc *i3c_dev_list_find(const struct i3c_dev_list *dev_list, in i3c_dev_list_find() argument
184 __ASSERT_NO_MSG(dev_list != NULL); in i3c_dev_list_find()
187 for (i = 0; i < dev_list->num_i3c; i++) { in i3c_dev_list_find()
188 struct i3c_device_desc *desc = &dev_list->i3c[i]; in i3c_dev_list_find()
199 struct i3c_device_desc *i3c_dev_list_i3c_addr_find(struct i3c_dev_attached_list *dev_list, in i3c_dev_list_i3c_addr_find() argument
205 __ASSERT_NO_MSG(dev_list != NULL); in i3c_dev_list_i3c_addr_find()
[all …]
Di3c_mcux.c849 return i3c_dev_list_find(&config->common.dev_list, id); in mcux_i3c_device_find()
1288 &config->common.dev_list, pid, in mcux_i3c_do_daa()
1360 if (config->common.dev_list.num_i3c == 0) { in mcux_i3c_do_ccc()
1481 struct i3c_dev_attached_list *dev_list = &data->common.attached_dev; in mcux_i3c_ibi_work() local
1539 target = i3c_dev_list_i3c_addr_find(dev_list, (uint8_t)ibiaddr); in mcux_i3c_ibi_work()
2038 ret = i3c_bus_init(dev, &config->common.dev_list); in mcux_i3c_init()
2153 .common.dev_list.i3c = mcux_i3c_device_array_##id, \
2154 .common.dev_list.num_i3c = ARRAY_SIZE(mcux_i3c_device_array_##id), \
2155 .common.dev_list.i2c = mcux_i3c_i2c_device_array_##id, \
2156 .common.dev_list.num_i2c = ARRAY_SIZE(mcux_i3c_i2c_device_array_##id), \
Di3c_npcx.c502 return i3c_dev_list_find(&config->common.dev_list, id); in npcx_i3c_device_find()
1233 &config->common.dev_list, pid, false, in npcx_i3c_do_daa()
1458 struct i3c_dev_attached_list *dev_list = &data->common.attached_dev; in npcx_i3c_ibi_work() local
1533 target = i3c_dev_list_i3c_addr_find(dev_list, (uint8_t)ibiaddr); in npcx_i3c_ibi_work()
2107 if (config->common.dev_list.num_i3c > 0) { in npcx_i3c_init()
2109 ret = i3c_bus_init(dev, &config->common.dev_list); in npcx_i3c_init()
2156 .common.dev_list.i3c = npcx_i3c_device_array_##id, \
2157 .common.dev_list.num_i3c = ARRAY_SIZE(npcx_i3c_device_array_##id), \
2158 .common.dev_list.i2c = npcx_i3c_i2c_device_array_##id, \
2159 .common.dev_list.num_i2c = ARRAY_SIZE(npcx_i3c_i2c_device_array_##id), \
Di3c_shell.c78 if (idx < config->dev_list.num_i3c) { \
79 entry->syntax = config->dev_list.i3c[idx].dev->name; \
126 for (i = 0; i < config->dev_list.num_i2c; i++) { in get_i3c_i2c_list_desc_from_addr()
127 if (config->dev_list.i2c[i].addr == addr) { in get_i3c_i2c_list_desc_from_addr()
129 return &config->dev_list.i2c[i]; in get_i3c_i2c_list_desc_from_addr()
143 for (i = 0; i < config->dev_list.num_i3c; i++) { in get_i3c_list_desc_from_dev_name()
144 if (strcmp(config->dev_list.i3c[i].dev->name, tdev_name) == 0) { in get_i3c_list_desc_from_dev_name()
146 return &config->dev_list.i3c[i]; in get_i3c_list_desc_from_dev_name()
Di3c_cdns.c2933 return i3c_dev_list_find(&config->common.dev_list, id); in cdns_i3c_device_find()
2993 static enum i3c_bus_mode i3c_bus_mode(const struct i3c_dev_list *dev_list) in i3c_bus_mode() argument
2997 for (int i = 0; i < dev_list->num_i2c; i++) { in i3c_bus_mode()
2998 switch (I3C_LVR_I2C_DEV_IDX(dev_list->i2c[i].lvr)) { in i3c_bus_mode()
3091 enum i3c_bus_mode mode = i3c_bus_mode(&config->common.dev_list); in cdns_i3c_bus_init()
3177 ret = i3c_bus_init(dev, &config->common.dev_list); in cdns_i3c_bus_init()
3227 .common.dev_list.i3c = cdns_i3c_device_array_##n, \
3228 .common.dev_list.num_i3c = ARRAY_SIZE(cdns_i3c_device_array_##n), \
3229 .common.dev_list.i2c = cdns_i3c_i2c_device_array_##n, \
3230 .common.dev_list.num_i2c = ARRAY_SIZE(cdns_i3c_i2c_device_array_##n), \
/Zephyr-Core-3.7.0/include/zephyr/drivers/
Di3c.h1186 struct i3c_dev_list dev_list; member
1213 struct i3c_device_desc *i3c_dev_list_find(const struct i3c_dev_list *dev_list,
1228 struct i3c_device_desc *i3c_dev_list_i3c_addr_find(struct i3c_dev_attached_list *dev_list,
1243 struct i3c_i2c_device_desc *i3c_dev_list_i2c_addr_find(struct i3c_dev_attached_list *dev_list,
1313 const struct i3c_dev_list *dev_list,