Lines Matching refs:pardev
52 struct pardevice *pardev; member
70 struct pardevice *pardev, in snd_mts64_create() argument
84 mts->pardev = pardev; in snd_mts64_create()
226 struct parport *p = mts->pardev->port; in mts64_device_open()
240 struct parport *p = mts->pardev->port; in mts64_device_close()
412 struct parport *p = mts->pardev->port; in mts64_write_midi()
457 mts64_smpte_start(mts->pardev->port, in snd_mts64_ctl_smpte_switch_put()
462 mts64_smpte_stop(mts->pardev->port); in snd_mts64_ctl_smpte_switch_put()
819 ret = mts64_read(mts->pardev->port); in snd_mts64_interrupt()
869 static int snd_mts64_dev_probe(struct pardevice *pardev) in snd_mts64_dev_probe() argument
871 if (strcmp(pardev->name, DRIVER_NAME)) in snd_mts64_dev_probe()
891 struct pardevice *pardev = mts->pardev; in snd_mts64_card_private_free() local
893 if (pardev) { in snd_mts64_card_private_free()
894 parport_release(pardev); in snd_mts64_card_private_free()
895 parport_unregister_device(pardev); in snd_mts64_card_private_free()
903 struct pardevice *pardev; in snd_mts64_probe() local
936 pardev = parport_register_dev_model(p, /* port */ in snd_mts64_probe()
940 if (!pardev) { in snd_mts64_probe()
947 if (parport_claim(pardev)) { in snd_mts64_probe()
948 snd_printd("Cannot claim parport 0x%lx\n", pardev->port->base); in snd_mts64_probe()
953 err = snd_mts64_create(card, pardev, &mts); in snd_mts64_probe()
991 parport_release(pardev); in snd_mts64_probe()
993 parport_unregister_device(pardev); in snd_mts64_probe()