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