Lines Matching refs:dev
208 dev[count++] = parport_register_device (...);
280 parport_unregister_device (dev[i]);
462 struct pardevice *dev = private->dev;
463 if (!dev) return; /* avoid races */
466 parport_claim (dev);
471 private->dev = parport_register_device (port, "toaster", preempt,
474 if (!private->dev)
480 parport_claim_or_block (private->dev);
487 parport_claim_or_block (private->dev);
509 void parport_unregister_device (struct pardevice *dev);
515 parport_unregister_device, ``dev`` is no longer a valid device handle.
526 kfree (dev->private); /* before we lose the pointer */
527 parport_unregister_device (dev);
546 int parport_claim (struct pardevice *dev);
547 int parport_claim_or_block (struct pardevice *dev);
553 ``dev`` is registered. ``parport_claim`` does not block, but
592 void parport_release (struct pardevice *dev);
606 static size_t write (struct pardevice *dev, const void *buf,
610 written = dev->port->ops->write_ecp_data (dev->port, buf,
612 parport_release (dev);
634 int parport_yield (struct pardevice *dev)
635 int parport_yield_blocking (struct pardevice *dev);
908 void parport_close (struct pardevice *dev);
1045 struct pardevice *dev = parport_open (devnum, ...);
1087 struct pardevice *dev = parport_open (devnum, ...);
1108 long parport_set_timeout (struct pardevice *dev, long inactivity);