Lines Matching refs:unit
77 hpibalive(int unit) in hpibalive() argument
79 if (unit >= NHPIB || hpib_softc[unit].sc_alive == 0) in hpibalive()
85 hpibid(int unit, int slave) in hpibid() argument
90 if (hpib_softc[unit].sc_type == HPIBC) in hpibid()
91 rv = fhpibrecv(unit, 31, slave, (uint8_t *)&id, 2); in hpibid()
93 rv = nhpibrecv(unit, 31, slave, (uint8_t *)&id, 2); in hpibid()
100 hpibsend(int unit, int slave, int sec, uint8_t *buf, int cnt) in hpibsend() argument
103 if (hpib_softc[unit].sc_type == HPIBC) in hpibsend()
104 return (fhpibsend(unit, slave, sec, buf, cnt)); in hpibsend()
105 return nhpibsend(unit, slave, sec, buf, cnt); in hpibsend()
109 hpibrecv(int unit, int slave, int sec, uint8_t *buf, int cnt) in hpibrecv() argument
112 if (hpib_softc[unit].sc_type == HPIBC) in hpibrecv()
113 return (fhpibrecv(unit, slave, sec, buf, cnt)); in hpibrecv()
114 return nhpibrecv(unit, slave, sec, buf, cnt); in hpibrecv()
118 hpibswait(int unit, int slave) in hpibswait() argument
124 if (hpib_softc[unit].sc_type == HPIBC) in hpibswait()
128 while (((*poll)(unit) & slave) == 0) in hpibswait()
137 hpibgo(int unit, int slave, int sec, uint8_t *addr, int count, int flag) in hpibgo() argument
140 if (hpib_softc[unit].sc_type == HPIBC) in hpibgo()
142 fhpibrecv(unit, slave, sec, addr, count); in hpibgo()
144 fhpibsend(unit, slave, sec, addr, count); in hpibgo()
147 nhpibrecv(unit, slave, sec, addr, count); in hpibgo()
149 nhpibsend(unit, slave, sec, addr, count); in hpibgo()