Lines Matching refs:bi
491 struct hdlcdrv_ioctl bi; in hdlcdrv_siocdevprivate() local
499 if (copy_from_user(&bi, data, sizeof(bi))) in hdlcdrv_siocdevprivate()
502 switch (bi.cmd) { in hdlcdrv_siocdevprivate()
505 return s->ops->ioctl(dev, data, &bi, cmd); in hdlcdrv_siocdevprivate()
509 bi.data.cp.tx_delay = s->ch_params.tx_delay; in hdlcdrv_siocdevprivate()
510 bi.data.cp.tx_tail = s->ch_params.tx_tail; in hdlcdrv_siocdevprivate()
511 bi.data.cp.slottime = s->ch_params.slottime; in hdlcdrv_siocdevprivate()
512 bi.data.cp.ppersist = s->ch_params.ppersist; in hdlcdrv_siocdevprivate()
513 bi.data.cp.fulldup = s->ch_params.fulldup; in hdlcdrv_siocdevprivate()
519 s->ch_params.tx_delay = bi.data.cp.tx_delay; in hdlcdrv_siocdevprivate()
520 s->ch_params.tx_tail = bi.data.cp.tx_tail; in hdlcdrv_siocdevprivate()
521 s->ch_params.slottime = bi.data.cp.slottime; in hdlcdrv_siocdevprivate()
522 s->ch_params.ppersist = bi.data.cp.ppersist; in hdlcdrv_siocdevprivate()
523 s->ch_params.fulldup = bi.data.cp.fulldup; in hdlcdrv_siocdevprivate()
528 bi.data.mp.iobase = dev->base_addr; in hdlcdrv_siocdevprivate()
529 bi.data.mp.irq = dev->irq; in hdlcdrv_siocdevprivate()
530 bi.data.mp.dma = dev->dma; in hdlcdrv_siocdevprivate()
531 bi.data.mp.dma2 = s->ptt_out.dma2; in hdlcdrv_siocdevprivate()
532 bi.data.mp.seriobase = s->ptt_out.seriobase; in hdlcdrv_siocdevprivate()
533 bi.data.mp.pariobase = s->ptt_out.pariobase; in hdlcdrv_siocdevprivate()
534 bi.data.mp.midiiobase = s->ptt_out.midiiobase; in hdlcdrv_siocdevprivate()
540 dev->base_addr = bi.data.mp.iobase; in hdlcdrv_siocdevprivate()
541 dev->irq = bi.data.mp.irq; in hdlcdrv_siocdevprivate()
542 dev->dma = bi.data.mp.dma; in hdlcdrv_siocdevprivate()
543 s->ptt_out.dma2 = bi.data.mp.dma2; in hdlcdrv_siocdevprivate()
544 s->ptt_out.seriobase = bi.data.mp.seriobase; in hdlcdrv_siocdevprivate()
545 s->ptt_out.pariobase = bi.data.mp.pariobase; in hdlcdrv_siocdevprivate()
546 s->ptt_out.midiiobase = bi.data.mp.midiiobase; in hdlcdrv_siocdevprivate()
550 bi.data.cs.ptt = hdlcdrv_ptt(s); in hdlcdrv_siocdevprivate()
551 bi.data.cs.dcd = s->hdlcrx.dcd; in hdlcdrv_siocdevprivate()
552 bi.data.cs.ptt_keyed = s->ptt_keyed; in hdlcdrv_siocdevprivate()
553 bi.data.cs.tx_packets = dev->stats.tx_packets; in hdlcdrv_siocdevprivate()
554 bi.data.cs.tx_errors = dev->stats.tx_errors; in hdlcdrv_siocdevprivate()
555 bi.data.cs.rx_packets = dev->stats.rx_packets; in hdlcdrv_siocdevprivate()
556 bi.data.cs.rx_errors = dev->stats.rx_errors; in hdlcdrv_siocdevprivate()
560 bi.data.ocs.ptt = hdlcdrv_ptt(s); in hdlcdrv_siocdevprivate()
561 bi.data.ocs.dcd = s->hdlcrx.dcd; in hdlcdrv_siocdevprivate()
562 bi.data.ocs.ptt_keyed = s->ptt_keyed; in hdlcdrv_siocdevprivate()
570 if (bi.data.calibrate > INT_MAX / s->par.bitrate) in hdlcdrv_siocdevprivate()
572 s->hdlctx.calibrate = bi.data.calibrate * s->par.bitrate / 16; in hdlcdrv_siocdevprivate()
581 bi.data.bits = in hdlcdrv_siocdevprivate()
594 bi.data.bits = in hdlcdrv_siocdevprivate()
603 strscpy(bi.data.drivername, s->ops->drvname, in hdlcdrv_siocdevprivate()
604 sizeof(bi.data.drivername)); in hdlcdrv_siocdevprivate()
607 bi.data.drivername[0] = '\0'; in hdlcdrv_siocdevprivate()
611 if (copy_to_user(data, &bi, sizeof(bi))) in hdlcdrv_siocdevprivate()