Lines Matching refs:s4985_algo
31 static struct i2c_algorithm *s4985_algo; variable
163 s4985_algo = kcalloc(5, sizeof(struct i2c_algorithm), GFP_KERNEL); in nforce2_s4985_init()
164 if (!s4985_algo) { in nforce2_s4985_init()
170 s4985_algo[0] = *(nforce2_smbus->algo); in nforce2_s4985_init()
171 s4985_algo[0].smbus_xfer = nforce2_access_virt0; in nforce2_s4985_init()
173 s4985_adapter[0].algo = s4985_algo; in nforce2_s4985_init()
176 s4985_algo[i] = *(nforce2_smbus->algo); in nforce2_s4985_init()
180 s4985_adapter[i].algo = s4985_algo + i; in nforce2_s4985_init()
183 s4985_algo[1].smbus_xfer = nforce2_access_virt1; in nforce2_s4985_init()
184 s4985_algo[2].smbus_xfer = nforce2_access_virt2; in nforce2_s4985_init()
185 s4985_algo[3].smbus_xfer = nforce2_access_virt3; in nforce2_s4985_init()
186 s4985_algo[4].smbus_xfer = nforce2_access_virt4; in nforce2_s4985_init()
204 kfree(s4985_algo); in nforce2_s4985_init()
205 s4985_algo = NULL; in nforce2_s4985_init()
226 kfree(s4985_algo); in nforce2_s4985_exit()
227 s4985_algo = NULL; in nforce2_s4985_exit()