Lines Matching refs:parport
128 static int parport[MAX_DEVICE] = {0, -1, -1, -1}; variable
129 module_param_array(parport, int, NULL, 0);
130 MODULE_PARM_DESC(parport,
153 static void port_write_data(struct parport *p, unsigned char d) in port_write_data()
158 static void port_write_control(struct parport *p, unsigned char d) in port_write_control()
163 static unsigned char port_read_data(struct parport *p) in port_read_data()
168 static unsigned char port_read_status(struct parport *p) in port_read_status()
173 static unsigned char port_read_control(struct parport *p) in port_read_control()
178 static void (* const port_write[])(struct parport *, unsigned char) = {
184 static unsigned char (* const port_read[])(struct parport *) = {
192 static inline void line_set(struct parport *data, int state, in line_set()
204 static inline int line_get(struct parport *data, in line_get()
217 line_set((struct parport *) data, state, &adapter_parm[type].setscl); in parport_setscl()
222 line_set((struct parport *) data, state, &adapter_parm[type].setsda); in parport_setsda()
227 return line_get((struct parport *) data, &adapter_parm[type].getscl); in parport_getscl()
232 return line_get((struct parport *) data, &adapter_parm[type].getsda); in parport_getsda()
264 static void i2c_parport_attach(struct parport *port) in i2c_parport_attach()
281 if (parport[i] == -1) in i2c_parport_attach()
283 if (port->number == parport[i]) in i2c_parport_attach()
372 static void i2c_parport_detach(struct parport *port) in i2c_parport_detach()