Lines Matching refs:i2c_ctrl
48 const struct device *i2c_ctrl; member
59 if (config->i2c_ctrl == NULL) { in i2c_npcx_port_configure()
74 return npcx_i2c_ctrl_configure(config->i2c_ctrl, dev_config); in i2c_npcx_port_configure()
83 if (config->i2c_ctrl == NULL) { in i2c_npcx_port_get_config()
88 ret = npcx_i2c_ctrl_get_speed(config->i2c_ctrl, &speed); in i2c_npcx_port_get_config()
104 if (config->i2c_ctrl == NULL) { in i2c_npcx_port_transfer()
111 npcx_i2c_ctrl_mutex_lock(config->i2c_ctrl); in i2c_npcx_port_transfer()
117 ret = npcx_i2c_ctrl_transfer(config->i2c_ctrl, msgs, num_msgs, addr, in i2c_npcx_port_transfer()
121 npcx_i2c_ctrl_mutex_unlock(config->i2c_ctrl); in i2c_npcx_port_transfer()
130 if (config->i2c_ctrl == NULL) { in i2c_npcx_port_recover_bus()
136 npcx_i2c_ctrl_mutex_lock(config->i2c_ctrl); in i2c_npcx_port_recover_bus()
138 ret = npcx_i2c_ctrl_recover_bus(config->i2c_ctrl); in i2c_npcx_port_recover_bus()
141 npcx_i2c_ctrl_mutex_unlock(config->i2c_ctrl); in i2c_npcx_port_recover_bus()
156 if (config->i2c_ctrl == NULL) { in i2c_npcx_target_register()
161 return npcx_i2c_ctrl_target_register(config->i2c_ctrl, target_cfg, config->port); in i2c_npcx_target_register()
169 if (config->i2c_ctrl == NULL) { in i2c_npcx_target_unregister()
174 return npcx_i2c_ctrl_target_unregister(config->i2c_ctrl, target_cfg); in i2c_npcx_target_unregister()
224 .i2c_ctrl = DEVICE_DT_GET(DT_INST_PHANDLE(inst, controller)), \