Lines Matching refs:pp

183 	struct parport *pp = bc->pdev->port;  in par96_tx()  local
196 pp->ops->write_data(pp, val); in par96_tx()
197 pp->ops->write_data(pp, val | PAR96_BURST); in par96_tx()
207 struct parport *pp = bc->pdev->port; in par96_rx() local
214 if (pp->ops->read_status(pp) & PAR96_RXBIT) in par96_rx()
219 pp->ops->write_data(pp, PAR97_POWER | PAR96_PTT); in par96_rx()
225 pp->ops->write_data(pp, PAR97_POWER | PAR96_PTT | PAR96_BURST); in par96_rx()
250 hdlcdrv_setdcd(&bc->hdrv, !!(pp->ops->read_status(pp) & PAR96_DCD)); in par96_rx()
299 struct parport *pp; in par96_open() local
304 pp = parport_find_base(dev->base_addr); in par96_open()
305 if (!pp) { in par96_open()
309 if (pp->irq < 0) { in par96_open()
310 printk(KERN_ERR "baycom_par: parport at 0x%lx has no irq\n", pp->base); in par96_open()
311 parport_put_port(pp); in par96_open()
314 if ((~pp->modes) & (PARPORT_MODE_PCSPP | PARPORT_MODE_SAFEININT)) { in par96_open()
315 printk(KERN_ERR "baycom_par: parport at 0x%lx cannot be used\n", pp->base); in par96_open()
316 parport_put_port(pp); in par96_open()
332 parport_put_port(pp); in par96_open()
335 bc->pdev = parport_register_dev_model(pp, dev->name, &par_cb, i); in par96_open()
336 parport_put_port(pp); in par96_open()
342 printk(KERN_ERR "baycom_par: parport at 0x%lx busy\n", pp->base); in par96_open()
346 pp = bc->pdev->port; in par96_open()
347 dev->irq = pp->irq; in par96_open()
348 pp->ops->data_forward(pp); in par96_open()
350 pp->ops->write_data(pp, PAR96_PTT | PAR97_POWER); /* switch off PTT */ in par96_open()
351 pp->ops->enable_irq(pp); in par96_open()
362 struct parport *pp; in par96_close() local
366 pp = bc->pdev->port; in par96_close()
368 pp->ops->disable_irq(pp); in par96_close()
370 pp->ops->write_data(pp, PAR96_PTT | PAR97_POWER); in par96_close()