Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/pps/clients/
Dpps_parport.c42 struct pardevice *pardev; /* parport device */ member
59 struct parport *port = dev->pardev->port; in parport_irq()
152 device->pardev = parport_register_dev_model(port, in parport_attach()
156 if (!device->pardev) { in parport_attach()
161 if (parport_claim_or_block(device->pardev) < 0) { in parport_attach()
183 parport_release(device->pardev); in parport_attach()
185 parport_unregister_device(device->pardev); in parport_attach()
193 struct pardevice *pardev = port->cad; in parport_detach() local
197 if (!pardev || strcmp(pardev->name, KBUILD_MODNAME)) in parport_detach()
201 device = pardev->private; in parport_detach()
[all …]
/kernel/linux/linux-5.10/sound/drivers/
Dportman2x4.c72 struct pardevice *pardev; member
85 struct pardevice *pardev, in portman_create() argument
99 pm->pardev = pardev; in portman_create()
183 parport_write_control(pm->pardev->port, value); in portman_write_command()
188 return parport_read_control(pm->pardev->port); in portman_read_command()
193 return parport_read_status(pm->pardev->port); in portman_read_status()
198 return parport_read_data(pm->pardev->port); in portman_read_data()
203 parport_write_data(pm->pardev->port, value); in portman_write_data()
669 static int snd_portman_dev_probe(struct pardevice *pardev) in snd_portman_dev_probe() argument
671 if (strcmp(pardev->name, DRIVER_NAME)) in snd_portman_dev_probe()
[all …]
Dmts64.c53 struct pardevice *pardev; member
71 struct pardevice *pardev, in snd_mts64_create() argument
85 mts->pardev = pardev; in snd_mts64_create()
227 struct parport *p = mts->pardev->port; in mts64_device_open()
241 struct parport *p = mts->pardev->port; in mts64_device_close()
413 struct parport *p = mts->pardev->port; in mts64_write_midi()
458 mts64_smpte_start(mts->pardev->port, in snd_mts64_ctl_smpte_switch_put()
463 mts64_smpte_stop(mts->pardev->port); in snd_mts64_ctl_smpte_switch_put()
823 ret = mts64_read(mts->pardev->port); in snd_mts64_interrupt()
873 static int snd_mts64_dev_probe(struct pardevice *pardev) in snd_mts64_dev_probe() argument
[all …]
/kernel/linux/linux-5.10/drivers/pps/generators/
Dpps_gen_parport.c42 struct pardevice *pardev; /* parport device */ member
48 .pardev = NULL,
96 port = dev->pardev->port; in hrtimer_event()
145 struct parport *port = dev->pardev->port; in calibrate_port()
191 device.pardev = parport_register_dev_model(port, KBUILD_MODNAME, in parport_attach()
193 if (!device.pardev) { in parport_attach()
198 if (parport_claim_or_block(device.pardev) < 0) { in parport_attach()
215 parport_unregister_device(device.pardev); in parport_attach()
220 if (port->cad != device.pardev) in parport_detach()
224 parport_release(device.pardev); in parport_detach()
[all …]
/kernel/linux/linux-5.10/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
/kernel/linux/linux-5.10/drivers/net/plip/
Dplip.c210 struct pardevice *pardev; member
228 ((struct net_local *)netdev_priv(dev))->pardev->port; in enable_parport_interrupts()
238 ((struct net_local *)netdev_priv(dev))->pardev->port; in disable_parport_interrupts()
246 ((struct net_local *)netdev_priv(dev))->pardev->port; in write_data()
254 ((struct net_local *)netdev_priv(dev))->pardev->port; in read_status()
879 parport_release(nl->pardev); in plip_connection_close()
972 if (parport_claim(nl->pardev)) in plip_tx_packet()
1066 if (parport_claim(nl->pardev)) return -EAGAIN; in plip_open()
1142 parport_release(nl->pardev); in plip_close()
1189 if (!parport_claim(nl->pardev)) in plip_wakeup()
[all …]