Lines Matching refs:pdev
75 struct pardevice * pdev; member
100 struct parport *port = pp->pdev->port; in pp_enable_irq()
129 pport = pp->pdev->port; in pp_read()
132 parport_set_timeout (pp->pdev, in pp_read()
178 parport_set_timeout (pp->pdev, pp->default_inactivity); in pp_read()
210 pport = pp->pdev->port; in pp_write()
213 parport_set_timeout (pp->pdev, in pp_write()
236 wrote = parport_write (pp->pdev->port, kbuffer, n); in pp_write()
266 parport_set_timeout (pp->pdev, pp->default_inactivity); in pp_write()
278 parport_write_control (pp->pdev->port, pp->irqctl); in pp_irq()
289 struct pardevice * pdev = NULL; in register_device() local
307 pdev = parport_register_device (port, name, NULL, in register_device()
311 if (!pdev) { in register_device()
317 pp->pdev = pdev; in register_device()
354 if (!pp->pdev) { in pp_ioctl()
361 ret = parport_claim_or_block (pp->pdev); in pp_ioctl()
372 info = &pp->pdev->port->ieee1284; in pp_ioctl()
377 pp->default_inactivity = parport_set_timeout (pp->pdev, 0); in pp_ioctl()
378 parport_set_timeout (pp->pdev, pp->default_inactivity); in pp_ioctl()
383 if (pp->pdev) { in pp_ioctl()
407 pp->pdev->port->ieee1284.mode = mode; in pp_ioctl()
408 pp->pdev->port->ieee1284.phase = pp->state.phase; in pp_ioctl()
418 mode = pp->pdev->port->ieee1284.mode; in pp_ioctl()
437 pp->pdev->port->ieee1284.phase = phase; in pp_ioctl()
447 phase = pp->pdev->port->ieee1284.phase; in pp_ioctl()
501 port = pp->pdev->port; in pp_ioctl()
527 parport_yield_blocking (pp->pdev); in pp_ioctl()
532 info = &pp->pdev->port->ieee1284; in pp_ioctl()
537 parport_release (pp->pdev); in pp_ioctl()
619 pp->pdev->timeout = to_jiffies; in pp_ioctl()
623 to_jiffies = pp->pdev->timeout; in pp_ioctl()
665 pp->pdev = NULL; in pp_open()
679 if (!(pp->flags & PP_CLAIMED) && pp->pdev && in pp_release()
684 parport_claim_or_block (pp->pdev); in pp_release()
686 info = &pp->pdev->port->ieee1284; in pp_release()
692 } else if ((pp->flags & PP_CLAIMED) && pp->pdev && in pp_release()
693 (pp->pdev->port->ieee1284.mode != IEEE1284_MODE_COMPAT)) { in pp_release()
697 parport_negotiate (pp->pdev->port, IEEE1284_MODE_COMPAT); in pp_release()
706 info = &pp->pdev->port->ieee1284; in pp_release()
711 parport_release (pp->pdev); in pp_release()
718 if (pp->pdev) { in pp_release()
719 const char *name = pp->pdev->name; in pp_release()
720 parport_unregister_device (pp->pdev); in pp_release()
722 pp->pdev = NULL; in pp_release()