Lines Matching defs:punit
80 * of a SCSI ID, and punit, the analog of a SCSI LUN. Unforunately,
82 * drives that have an accompanying tape drive on the second punit.
91 * them to modify the punit parameter (but NOT the slave!).
149 * Set punit if operator specified one in the kernel
156 /* default punit */
159 DPRINTF(DBG_FOLLOW, ("cs80bussearch: id=0x%x slave=%d punit=%d\n",
165 ("cs80bussearch: got id=0x%x slave=%d punit %d\n",
170 * the punit information. Make sure the configuration
171 * allows for this slave/punit combination.
201 printf(" slave %d punit %d", ca->ca_slave, ca->ca_punit);
206 cs80bus_alloc(struct cs80bus_softc *sc, int slave, int punit)
211 if (slave >= CS80BUS_NSLAVES || punit >= CS80BUS_NPUNITS)
216 if (sc->sc_rmap[slave][punit] == 0) {
217 sc->sc_rmap[slave][punit] = 1;
230 cs80describe(void *v, int slave, int punit, struct cs80_description *csd)
268 cs80reset(void *v, int slave, int punit)
275 DPRINTF(DBG_FOLLOW, ("cs80reset: sc=%p slave=%d punit=%d\n", sc,
276 slave, punit));
278 clear.c_unit = CS80CMD_SUNIT(punit);
280 if (cs80send(sc, slave, punit, CS80CMD_TCMD, &clear, sizeof(clear))) {
289 if (cs80send(sc, slave, punit, CS80CMD_SCMD, &sr, sizeof(sr))) {
294 ssm.c_unit = CS80CMD_SUNIT(punit);
300 if (cs80send(sc, slave, punit, CS80CMD_SCMD, &ssm, sizeof(ssm))) {
309 cs80status(void *v, int slave, int punit, struct cs80_stat *css)
315 rs.c_unit = CS80CMD_SUNIT(punit);
337 cs80setoptions(void *v, int slave, int punit, u_int8_t options)
342 opt.c_unit = CS80CMD_SUNIT(punit);
346 if (cs80send(sc, slave, punit, CS80CMD_SCMD, &opt, sizeof(opt))) {
355 cs80send(void *v, int slave, int punit, int cmd, void *ptr, int cnt)
362 ("cs80send: sc=%p slave=%d punit=%d cmd=%d ptr=%p cnt=%d\n", sc,
363 slave, punit, cmd, buf, cnt));