Lines Matching refs:ctrl_config

620 	struct i3c_config_controller *ctrl_config = &data->common.ctrl_config;  in cdns_i3c_set_prescalers()  local
624 (ctrl_config->scl.i3c * I3C_PRESCL_REG_SCALE)) - in cdns_i3c_set_prescalers()
627 (ctrl_config->scl.i2c * I2C_PRESCL_REG_SCALE)) - in cdns_i3c_set_prescalers()
631 ctrl_config->scl.i3c = config->input_frequency / ((prescl_i3c + 1) * I3C_PRESCL_REG_SCALE); in cdns_i3c_set_prescalers()
632 ctrl_config->scl.i2c = config->input_frequency / ((prescl_i2c + 1) * I2C_PRESCL_REG_SCALE); in cdns_i3c_set_prescalers()
634 LOG_DBG("%s: I3C speed = %u, PRESCL_CTRL0.i3c = 0x%x", dev->name, ctrl_config->scl.i3c, in cdns_i3c_set_prescalers()
636 LOG_DBG("%s: I2C speed = %u, PRESCL_CTRL0.i2c = 0x%x", dev->name, ctrl_config->scl.i2c, in cdns_i3c_set_prescalers()
640 uint32_t pres_step = 1000000000 / (ctrl_config->scl.i3c * 4); in cdns_i3c_set_prescalers()
797 struct i3c_config_controller *ctrl_config = &data->common.ctrl_config; in cdns_i3c_target_ibi_raise_hj() local
800 if (!ctrl_config->is_secondary) { in cdns_i3c_target_ibi_raise_hj()
1095 struct i3c_config_controller *ctrl_config = &data->common.ctrl_config; in cdns_i3c_do_daa() local
1098 if (ctrl_config->is_secondary) { in cdns_i3c_do_daa()
1192 struct i3c_config_controller *ctrl_config = &data->common.ctrl_config; in cdns_i3c_i2c_api_configure() local
1196 ctrl_config->scl.i2c = 100000; in cdns_i3c_i2c_api_configure()
1199 ctrl_config->scl.i2c = 400000; in cdns_i3c_i2c_api_configure()
1202 ctrl_config->scl.i2c = 1000000; in cdns_i3c_i2c_api_configure()
1205 ctrl_config->scl.i2c = 3400000; in cdns_i3c_i2c_api_configure()
1208 ctrl_config->scl.i2c = 5000000; in cdns_i3c_i2c_api_configure()
1241 data->common.ctrl_config.scl.i3c = ctrl_cfg->scl.i3c; in cdns_i3c_configure()
1242 data->common.ctrl_config.scl.i2c = ctrl_cfg->scl.i2c; in cdns_i3c_configure()
2118 (void)memcpy(config, &data->common.ctrl_config, sizeof(data->common.ctrl_config)); in cdns_i3c_config_get()
2357 struct i3c_config_controller *ctrl_config = &data->common.ctrl_config; in cdns_i3c_bus_init() local
2366 ctrl_config->is_secondary = (conf0 & CONF_STATUS0_SEC_MASTER) ? true : false; in cdns_i3c_bus_init()
2367 ctrl_config->supported_hdr = (conf0 & CONF_STATUS0_SUPPORTS_DDR) ? I3C_MSG_HDR_DDR : 0; in cdns_i3c_bus_init()
2468 if (!ctrl_config->is_secondary) { in cdns_i3c_bus_init()
2526 .common.ctrl_config.scl.i3c = DT_INST_PROP_OR(n, i3c_scl_hz, 0), \
2527 .common.ctrl_config.scl.i2c = DT_INST_PROP_OR(n, i2c_scl_hz, 0), \