Home
last modified time | relevance | path

Searched refs:pardev (Results 1 – 6 of 6) sorted by relevance

/drivers/pps/clients/
Dpps_parport.c55 struct pardevice *pardev; /* parport device */ member
71 struct parport *port = dev->pardev->port; in parport_irq()
157 device->pardev = parport_register_device(port, KBUILD_MODNAME, in parport_attach()
159 if (!device->pardev) { in parport_attach()
164 if (parport_claim_or_block(device->pardev) < 0) { in parport_attach()
185 parport_release(device->pardev); in parport_attach()
187 parport_unregister_device(device->pardev); in parport_attach()
194 struct pardevice *pardev = port->cad; in parport_detach() local
198 if (!pardev || strcmp(pardev->name, KBUILD_MODNAME)) in parport_detach()
202 device = pardev->private; in parport_detach()
[all …]
/drivers/pps/generators/
Dpps_gen_parport.c56 struct pardevice *pardev; /* parport device */ member
62 .pardev = NULL,
110 port = dev->pardev->port; in hrtimer_event()
159 struct parport *port = dev->pardev->port; in calibrate_port()
200 device.pardev = parport_register_device(port, KBUILD_MODNAME, in parport_attach()
202 if (!device.pardev) { in parport_attach()
207 if (parport_claim_or_block(device.pardev) < 0) { in parport_attach()
224 parport_unregister_device(device.pardev); in parport_attach()
229 if (port->cad != device.pardev) in parport_detach()
233 parport_release(device.pardev); in parport_detach()
[all …]
/drivers/block/paride/
Dparide.c81 if (pi->claim_cont && !parport_claim(pi->pardev)) { in pi_wake_up()
100 if (pi->pardev && parport_claim(pi->pardev)) { in pi_schedule_claimed()
124 if (pi->pardev) in pi_claim()
126 !parport_claim((struct pardevice *) pi->pardev)); in pi_claim()
132 if (pi->pardev) in pi_unclaim()
133 parport_release((struct pardevice *) (pi->pardev)); in pi_unclaim()
154 if (pi->pardev) { in pi_unregister_parport()
155 parport_unregister_device((struct pardevice *) (pi->pardev)); in pi_unregister_parport()
156 pi->pardev = NULL; in pi_unregister_parport()
259 pi->pardev = parport_register_dev_model(port, pi->device, &par_cb, in pi_register_parport()
[all …]
Dbpck6.c130 ((struct pardevice*)(pi->pardev))->port->modes, in bpck6_test_port()
131 ((struct pardevice *)(pi->pardev))->port->base); in bpck6_test_port()
139 if(((struct pardevice *)(pi->pardev))->port->modes & in bpck6_test_port()
145 else if(((struct pardevice *)(pi->pardev))->port->modes & in bpck6_test_port()
Dparide.h51 void *pardev; /* pointer to pardevice */ member
/drivers/net/plip/
Dplip.c214 struct pardevice *pardev; member
232 ((struct net_local *)netdev_priv(dev))->pardev->port; in enable_parport_interrupts()
242 ((struct net_local *)netdev_priv(dev))->pardev->port; in disable_parport_interrupts()
250 ((struct net_local *)netdev_priv(dev))->pardev->port; in write_data()
258 ((struct net_local *)netdev_priv(dev))->pardev->port; in read_status()
872 parport_release(nl->pardev); in plip_connection_close()
964 if (parport_claim(nl->pardev)) in plip_tx_packet()
1058 if (parport_claim(nl->pardev)) return -EAGAIN; in plip_open()
1134 parport_release(nl->pardev); in plip_close()
1181 if (!parport_claim(nl->pardev)) in plip_wakeup()
[all …]