Lines Matching refs:p
19 struct i2c_pads_info *p = (struct i2c_pads_info *)priv; in force_idle_bus() local
22 gpio_direction_input(p->sda.gp); in force_idle_bus()
23 gpio_direction_input(p->scl.gp); in force_idle_bus()
25 imx_iomux_v3_setup_pad(p->sda.gpio_mode); in force_idle_bus()
26 imx_iomux_v3_setup_pad(p->scl.gpio_mode); in force_idle_bus()
28 sda = gpio_get_value(p->sda.gp); in force_idle_bus()
29 scl = gpio_get_value(p->scl.gp); in force_idle_bus()
34 sda, scl, p->sda.gp, p->scl.gp); in force_idle_bus()
37 gpio_direction_output(p->scl.gp, 0); in force_idle_bus()
39 gpio_direction_input(p->scl.gp); in force_idle_bus()
44 sda = gpio_get_value(p->sda.gp); in force_idle_bus()
45 scl = gpio_get_value(p->scl.gp); in force_idle_bus()
58 imx_iomux_v3_setup_pad(p->sda.i2c_mode); in force_idle_bus()
59 imx_iomux_v3_setup_pad(p->scl.i2c_mode); in force_idle_bus()
76 struct i2c_pads_info *p) in setup_i2c() argument
85 ret = gpio_request(p->sda.gp, name); in setup_i2c()
90 ret = gpio_request(p->scl.gp, name); in setup_i2c()
100 ret = force_idle_bus(p); in setup_i2c()
105 bus_i2c_init(i2c_index, speed, slave_addr, force_idle_bus, p); in setup_i2c()
112 gpio_free(p->scl.gp); in setup_i2c()
114 gpio_free(p->sda.gp); in setup_i2c()