Lines Matching refs:port
3 * pps_parport.c -- kernel parallel port PPS client
25 #define DRVDESC "parallel port PPS client"
34 "Maximum number of port reads when polling for signal clear,"
40 /* internal per port structure */
44 unsigned int cw; /* port clear timeout */
49 static inline int signal_is_set(struct parport *port)
51 return (port->ops->read_status(port) & PARPORT_STATUS_ACK) != 0;
59 struct parport *port = dev->pardev->port;
74 * lags while polling the port. Reading from IO port is known
84 if (!signal_is_set(port)) {
90 /* poll the port until the signal is unset */
92 if (!signal_is_set(port)) {
125 static void parport_attach(struct parport *port)
152 device->pardev = parport_register_dev_model(port,
157 pr_err("couldn't register with %s\n", port->name);
162 pr_err("couldn't claim %s\n", port->name);
175 port->ops->enable_irq(port);
178 pr_info("attached to %s\n", port->name);
191 static void parport_detach(struct parport *port)
193 struct pardevice *pardev = port->cad;
198 /* not our port */
203 port->ops->disable_irq(port);