Lines Matching refs:num_chan
33 int num_chan; member
170 for (i = 0; i < priv->num_chan && count < PAGE_SIZE; i++) in available_masters_show()
173 i == priv->num_chan - 1 ? '\n' : ' '); in available_masters_show()
200 if (val >= priv->num_chan) in current_master_store()
214 int num_chan, i, j, err; in i2c_demux_pinctrl_probe() local
216 num_chan = of_count_phandle_with_args(np, "i2c-parent", NULL); in i2c_demux_pinctrl_probe()
217 if (num_chan < 2) { in i2c_demux_pinctrl_probe()
223 + num_chan * sizeof(struct i2c_demux_pinctrl_chan), GFP_KERNEL); in i2c_demux_pinctrl_probe()
225 props = devm_kcalloc(&pdev->dev, num_chan, sizeof(*props), GFP_KERNEL); in i2c_demux_pinctrl_probe()
234 for (i = 0; i < num_chan; i++) { in i2c_demux_pinctrl_probe()
257 priv->num_chan = num_chan; in i2c_demux_pinctrl_probe()
300 for (i = 0; i < priv->num_chan; i++) { in i2c_demux_pinctrl_remove()