Lines Matching defs:port
3 * pps_parport.c -- kernel parallel port PPS client
32 "Maximum number of port reads when polling for signal clear,"
38 /* internal per port structure */
42 unsigned int cw; /* port clear timeout */
47 static inline int signal_is_set(struct parport *port)
49 return (port->ops->read_status(port) & PARPORT_STATUS_ACK) != 0;
57 struct parport *port = dev->pardev->port;
72 * lags while polling the port. Reading from IO port is known
82 if (!signal_is_set(port)) {
88 /* poll the port until the signal is unset */
90 if (!signal_is_set(port)) {
123 static void parport_attach(struct parport *port)
156 device->pardev = parport_register_dev_model(port,
161 pr_err("couldn't register with %s\n", port->name);
166 pr_err("couldn't claim %s\n", port->name);
179 port->ops->enable_irq(port);
182 pr_info("attached to %s\n", port->name);
195 static void parport_detach(struct parport *port)
197 struct pardevice *pardev = port->cad;
202 /* not our port */
207 port->ops->disable_irq(port);
224 MODULE_DESCRIPTION("parallel port PPS client");