Searched refs:dev_list (Results 1 – 7 of 7) sorted by relevance
/Zephyr-latest/drivers/i3c/ |
D | i3c_common.c | 123 for (i = 0; i < config->dev_list.num_i2c; i++) { in i3c_addr_slots_init() 124 i2c_dev = &config->dev_list.i2c[i]; in i3c_addr_slots_init() 138 for (i = 0; i < config->dev_list.num_i3c; i++) { in i3c_addr_slots_init() 139 i3c_dev = &config->dev_list.i3c[i]; in i3c_addr_slots_init() 180 struct i3c_device_desc *i3c_dev_list_find(const struct i3c_dev_list *dev_list, in i3c_dev_list_find() argument 186 __ASSERT_NO_MSG(dev_list != NULL); in i3c_dev_list_find() 189 for (i = 0; i < dev_list->num_i3c; i++) { in i3c_dev_list_find() 190 struct i3c_device_desc *desc = &dev_list->i3c[i]; in i3c_dev_list_find() 377 const struct i3c_dev_list *dev_list, in i3c_dev_list_daa_addr_helper() argument 390 desc = i3c_dev_list_find(dev_list, &i3c_id); in i3c_dev_list_daa_addr_helper() [all …]
|
D | i3c_stm32.c | 172 static enum i3c_bus_mode i3c_bus_mode(const struct i3c_dev_list *dev_list) in i3c_bus_mode() argument 176 for (int i = 0; i < dev_list->num_i2c; i++) { in i3c_bus_mode() 177 switch (I3C_LVR_I2C_DEV_IDX(dev_list->i2c[i].lvr)) { in i3c_bus_mode() 201 static int get_i3c_lvr_ic_mode(const struct i3c_dev_list *dev_list) in get_i3c_lvr_ic_mode() argument 203 for (int i = 0; i < dev_list->num_i2c; i++) { in get_i3c_lvr_ic_mode() 204 if (I3C_LVR_I2C_DEV_IDX(dev_list->i2c[i].lvr) == I3C_LVR_I2C_DEV_IDX_0) { in get_i3c_lvr_ic_mode() 205 if (I3C_LVR_I2C_MODE(dev_list->i2c[i].lvr) == I3C_LVR_I2C_FM_MODE) { in get_i3c_lvr_ic_mode() 485 if (config->drv_cfg.dev_list.num_i2c > 0) { in i3c_stm32_calc_scll_od_sclh_i2c() 486 enum i3c_bus_mode mode = i3c_bus_mode(&config->drv_cfg.dev_list); in i3c_stm32_calc_scll_od_sclh_i2c() 489 if (get_i3c_lvr_ic_mode(&config->drv_cfg.dev_list) == in i3c_stm32_calc_scll_od_sclh_i2c() [all …]
|
D | i3c_mcux.c | 830 return i3c_dev_list_find(&config->common.dev_list, id); in mcux_i3c_device_find() 1269 &config->common.dev_list, pid, in mcux_i3c_do_daa() 1341 if (config->common.dev_list.num_i3c == 0) { in mcux_i3c_do_ccc() 2014 ret = i3c_bus_init(dev, &config->common.dev_list); in mcux_i3c_init() 2136 .common.dev_list.i3c = mcux_i3c_device_array_##id, \ 2137 .common.dev_list.num_i3c = ARRAY_SIZE(mcux_i3c_device_array_##id), \ 2138 .common.dev_list.i2c = mcux_i3c_i2c_device_array_##id, \ 2139 .common.dev_list.num_i2c = ARRAY_SIZE(mcux_i3c_i2c_device_array_##id), \
|
D | i3c_npcx.c | 655 return i3c_dev_list_find(&config->common.dev_list, id); in npcx_i3c_device_find() 1392 &config->common.dev_list, pid, false, in npcx_i3c_do_daa() 2953 if ((config->common.dev_list.num_i3c > 0) && in npcx_i3c_init() 2956 ret = i3c_bus_init(dev, &config->common.dev_list); in npcx_i3c_init() 3019 .common.dev_list.i3c = npcx_i3c_device_array_##id, \ 3020 .common.dev_list.num_i3c = ARRAY_SIZE(npcx_i3c_device_array_##id), \ 3021 .common.dev_list.i2c = npcx_i3c_i2c_device_array_##id, \ 3022 .common.dev_list.num_i2c = ARRAY_SIZE(npcx_i3c_i2c_device_array_##id), \
|
D | i3c_cdns.c | 3022 return i3c_dev_list_find(&config->common.dev_list, id); in cdns_i3c_device_find() 3080 static enum i3c_bus_mode i3c_bus_mode(const struct i3c_dev_list *dev_list) in i3c_bus_mode() argument 3084 for (int i = 0; i < dev_list->num_i2c; i++) { in i3c_bus_mode() 3085 switch (I3C_LVR_I2C_DEV_IDX(dev_list->i2c[i].lvr)) { in i3c_bus_mode() 3180 enum i3c_bus_mode mode = i3c_bus_mode(&config->common.dev_list); in cdns_i3c_bus_init() 3274 ret = i3c_bus_init(dev, &config->common.dev_list); in cdns_i3c_bus_init() 3332 .common.dev_list.i3c = cdns_i3c_device_array_##n, \ 3333 .common.dev_list.num_i3c = ARRAY_SIZE(cdns_i3c_device_array_##n), \ 3334 .common.dev_list.i2c = cdns_i3c_i2c_device_array_##n, \ 3335 .common.dev_list.num_i2c = ARRAY_SIZE(cdns_i3c_i2c_device_array_##n), \
|
D | i3c_shell.c | 72 if (idx < config->dev_list.num_i3c) { \ 73 entry->syntax = config->dev_list.i3c[idx].dev->name; \ 122 for (i = 0; i < config->dev_list.num_i3c; i++) { in get_i3c_list_desc_from_dev_name() 123 if (strcmp(config->dev_list.i3c[i].dev->name, tdev_name) == 0) { in get_i3c_list_desc_from_dev_name() 125 return &config->dev_list.i3c[i]; in get_i3c_list_desc_from_dev_name()
|
/Zephyr-latest/include/zephyr/drivers/ |
D | i3c.h | 1208 struct i3c_dev_list dev_list; member 1257 struct i3c_device_desc *i3c_dev_list_find(const struct i3c_dev_list *dev_list, 1342 const struct i3c_dev_list *dev_list,
|