/netbsd-6-1-5-RELEASE/sys/dev/ic/ |
H A D | siop.c | 239 /* free used and unused lun switches */ 304 int offset, target, lun, tag; local 342 lun = siop_cmd->cmd_c.xs->xs_periph->periph_lun; 344 siop_lun = siop_target->siop_lun[lun]; 347 printf("siop_cmd (lun %d) for DSA 0x%x " 348 "not active (%d)\n", lun, (u_int)dsa, 353 lun = -1; 358 printf("siop_cmd (lun %d tag %d) not in siop_lun " 359 "active (%p != %p)\n", lun, tag, siop_cmd, 367 lun 1067 siop_unqueue(struct siop_softc *sc, int target, int lun) argument 1122 int lun = siop_cmd->cmd_c.xs->xs_periph->periph_lun; local 1167 int target, lun, tag; local 1233 int lun; local 1441 int target, lun, slot; local 1887 siop_add_dev(struct siop_softc *sc, int target, int lun) argument 1980 siop_del_dev(struct siop_softc *sc, int target, int lun) argument [all...] |
H A D | ncr53c9x.c | 132 int64_t lun); 178 ncr53c9x_lunsearch(struct ncr53c9x_tinfo *ti, int64_t lun) argument 183 if (li->lun == lun) 678 int lun = periph->periph_lun; local 687 target, lun, ecb->cmd.cmd.opcode, ecb->tag[0], ecb->tag[1])); 766 cmd[0] = MSG_IDENTIFY(lun, 1); /* msg[0] */ 773 cmd[0] = MSG_IDENTIFY(lun, (tiflags & T_RSELECTOFF) == 0); 1080 int lun; local 1095 lun 1178 int lun = periph->periph_lun; local 1217 int lun = periph->periph_lun; local 1298 int64_t lun = ecb->xs->xs_periph->periph_lun; local 1451 uint8_t selid, target, lun; local 1637 int lun; local [all...] |
H A D | isp_ioctl.h | 166 uint16_t lun; member in struct:isp_fc_tsk_mgmt
|
H A D | ncr53c9xvar.h | 154 int64_t lun; member in struct:ncr53c9x_linfo 184 struct ncr53c9x_linfo *lun[NCR_NLUN]; /* For speedy lookups */ member in struct:ncr53c9x_tinfo 187 /* Look up a lun in a tinfo */ 189 (((l) < NCR_NLUN) && (((t)->lun[(l)]) != NULL)) \ 190 ? ((t)->lun[(l)]) \
|
H A D | aic79xxvar.h | 98 ((scb)->hscb->lun) 118 #define BUILD_TCL(scsiid, lun) \ 119 ((lun) | (((scsiid) & TID) << 4)) 120 #define BUILD_TCL_RAW(target, channel, lun) \ 121 ((lun) | ((target) << 8)) 131 #define AHD_BUILD_COL_IDX(target, lun) \ 132 (((lun) << 4) | target) 140 (scb)->hscb->lun = ((col_idx) >> 4) & (AHD_NUM_LUNS_NONPKT-1); \ 146 dst->hscb->lun = src->hscb->lun; \ 509 /*20*/ uint8_t lun; member in struct:hardware_scb 1308 u_int lun; member in struct:ahd_devinfo [all...] |
H A D | aic7xxx.c | 893 devinfo.lun); 1529 printf("scb:%p control:0x%x scsiid:0x%x lun:%d cdb_len:%d\n", 1533 hscb->lun, 2218 u_int lun, char channel, role_t role) 2222 devinfo->lun = lun; 2235 devinfo->target, devinfo->lun); 2470 devinfo->lun, period, offset); 2490 devinfo->lun, bus_width); 2517 devinfo->channel, devinfo->target, devinfo->lun, 2217 ahc_compile_devinfo(struct ahc_devinfo *devinfo, u_int our_id, u_int target, u_int lun, char channel, role_t role) argument 3735 u_int lun; local 4778 int lun; local 5188 ahc_match_scb(struct ahc_softc *ahc, struct scb *scb, int target, char channel, int lun, u_int tag, role_t role) argument 5230 int lun; local 5297 ahc_search_qinfifo(struct ahc_softc *ahc, int target, char channel, int lun, u_int tag, role_t role, uint32_t status, ahc_search_action action) argument 5506 ahc_search_untagged_queues(struct ahc_softc *ahc, struct scsipi_xfer *xs, int target, char channel, int lun, uint32_t status, ahc_search_action action) argument 5604 ahc_search_disc_list(struct ahc_softc *ahc, int target, char channel, int lun, u_int tag, int stop_on_first, int remove, int save_state) argument 5767 ahc_abort_scbs(struct ahc_softc *ahc, int target, char channel, int lun, u_int tag, role_t role, uint32_t status) argument 6032 u_int lun; local 6835 u_int lun; local 7274 int lun; local [all...] |
H A D | isp_target.c | 84 static const char atiocope[] = "ATIO returned for lun %d because it was in the middle of Bus Device Reset on bus %d"; 85 static const char atior[] = "ATIO returned on for lun %d on from loopid %d because a Bus Reset occurred on bus %d"; 480 * Toggle (on/off) target mode for bus/target/lun. 484 * Note that not all of bus, target or lun can be paid attention to. 489 isp_lun_cmd(ispsoftc_t *isp, int cmd, int bus, int lun, int cmd_cnt, int inot_cnt) argument 520 el.le_lun = lun; 522 el.le_lun = lun; 946 static const char f1[] = "%s from N-port handle 0x%x lun %d seq 0x%x"; 947 static const char f2[] = "unknown %s 0x%x lun %d N-Port handle 0x%x task flags 0x%x seq 0x%x\n"; 1009 static const char f1[] = "%s from PortID 0x%06x lun 1253 int lun; local 1327 int lun, iid; local [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/x68k/stand/loadbsd/ |
H A D | loadbsd.c | 144 * [/<controller>@<unit>/]<device>@<unit>[,<lun>][:<partition>] 169 unsigned major, unit, lun, partition; local 209 * <type>@unit[,lun][:part] 225 lun = 0; 230 GETDECIMAL(lun, s); 250 if (lun >= 8) 266 unit, lun, partition); 273 xwarnx("%s: major %u, if %u, un_if %u, unit %u, lun %u, partition %u; bootdev 0x%x", 274 devstr, major, interface, unit_if, unit, lun, partition, dev); 432 \t format: [/interface/]device@unit[,lun][ [all...] |
/netbsd-6-1-5-RELEASE/usr.sbin/mmcformat/ |
H A D | uscsi_subr.c | 187 saddr->addr.scsi.lun = raddr.addr.scsi.lun; 200 saddr->addr.scsi.lun = raddr.lun; 326 /* target | lun << 8 | channel << 16 | low_ino << 24 */ 345 saddr->addr.scsi.lun = sg_scsi_id.lun; 356 saddr->addr.scsi.lun = (sg_id.tlci >> 8) & 0xff; 501 saddr->addr.scsi.lun = cam_dev->target_lun;
|
/netbsd-6-1-5-RELEASE/external/bsd/iscsi/dist/src/lib/ |
H A D | disk.c | 1007 uint8_t *cdbsize, uint8_t lun, char *uuid) 1038 lun); 1098 uint8_t lun; local 1101 lun = (uint8_t) (args->lun >> 32); 1105 * added section to return no device equivalent for lun request 1106 * beyond available lun 1108 if (lun >= disks.v[sess->d].luns) { 1122 lun = (uint8_t) sess->d; 1123 iscsi_trace(TRACE_SCSI_CMD, "SCSI op %#x (lun 1006 device_vpd(iscsi_target_t *tgt, uint8_t *data, uint8_t *rspc, uint8_t *cdbsize, uint8_t lun, char *uuid) argument 1382 disk_write(target_session_t *sess, iscsi_scsi_cmd_args_t *args, uint8_t lun, uint32_t lba, uint32_t len) argument 1454 disk_read(target_session_t *sess, iscsi_scsi_cmd_args_t *args, uint32_t lba, uint16_t len, uint8_t lun) argument [all...] |
H A D | protocol.c | 76 iscsi_trace(TRACE_ISCSI_ARGS, "LUN: %" PRIu64 "\n", cmd->lun); 91 *((uint64_t *) (void *) (header + 8)) = ISCSI_HTONLL6(cmd->lun); /* LUN */ 114 cmd->lun = ISCSI_NTOHLL6(*((uint64_t *) (void *) (header + 8))); 143 iscsi_trace(TRACE_ISCSI_ARGS, "LUN: %" PRIu64 "\n", cmd->lun); 238 iscsi_trace(TRACE_ISCSI_ARGS, "LUN: %" PRIu64 "\n", cmd->lun); 253 *((uint64_t *) (void *) (header + 8)) = ISCSI_HTONLL6(cmd->lun); /* LUN */ 274 cmd->lun = ISCSI_NTOHLL6(*((uint64_t *) (void *) (header + 8))); /* LUN */ 296 iscsi_trace(TRACE_ISCSI_ARGS, "LUN: %" PRIu64 "\n", cmd->lun); 314 iscsi_trace(TRACE_ISCSI_ARGS, "LUN: %" PRIu64 "\n", cmd->lun); 327 *((uint64_t *) (void *) (header + 8)) = ISCSI_HTONLL6(cmd->lun); /* LU [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/pmax/ibus/ |
H A D | siivar.h | 18 int lun; /* LUN for MI SCSI */ member in struct:ScsiCmd
|
/netbsd-6-1-5-RELEASE/sys/sys/ |
H A D | scsiio.h | 54 int lun; /* -1 if wildcard */ member in struct:oscsi_addr 87 int sa_lun; /* lun to scan; -1 for wildcard */ 95 int sa_lun; /* lun to scan; -1 for wildcard */ 102 int sa_lun; /* lun to set property on */
|
/netbsd-6-1-5-RELEASE/sys/arch/amiga/dev/ |
H A D | sbic.c | 256 sbic_save_ptrs(struct sbic_softc *dev, sbic_regmap_t regs, int target, int lun) argument 319 sbic_load_ptrs(struct sbic_softc *dev, sbic_regmap_t regs, int target, int lun) argument 456 dev->lun = periph->periph_lun; 457 stat = sbicicmd(dev, dev->target, dev->lun, 548 dev->lun = periph->periph_lun; 579 dev->target, dev->lun); 593 dev->target, dev->lun, stat); 968 u_char lun, u_char our_addr) 1057 GET_SBIC_tlun(regs,dev->lun); 1058 if( dev->lun 967 sbicselectbus(struct sbic_softc *dev, sbic_regmap_t regs, u_char target, u_char lun, u_char our_addr) argument 1308 sbicicmd(struct sbic_softc *dev, int target, int lun, void *cbuf, int clen, void *buf, int len) argument [all...] |
/netbsd-6-1-5-RELEASE/sys/dev/scsipi/ |
H A D | scsipi_base.c | 215 scsipi_lookup_periph(struct scsipi_channel *chan, int target, int lun) argument 222 lun >= chan->chan_nluns) 225 hash = scsipi_chan_periph_hash(target, lun); 230 periph->periph_lun == lun) 2285 int lun, announce, mode, period, offset; local 2287 for (lun = 0; lun < chan->chan_nluns; lun++) { 2288 periph = scsipi_lookup_periph(chan, xm->xm_target, lun); 2335 int lun, local 2386 int target, lun; local 2428 scsipi_target_detach(struct scsipi_channel *chan, int target, int lun, int flags) argument [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/bebox/stand/boot/ |
H A D | siop.c | 106 xfer->siop_tables.msg_out[0] = MSG_IDENTIFY(xs->lun, 0); 108 xfer->siop_tables.msg_out[0] = MSG_IDENTIFY(xs->lun, 1); 236 int offset, target, lun, tag, restart = 0, need_reset = 0; local 381 lun = readb(adp->addr + SIOP_SCRATCHA + 1); 384 lun != adp->xs->lun || 387 " target %d lun %d tag %d\n", 388 target, lun, tag); 605 int target, lun, slot; local 633 lun [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/newsmips/dev/ |
H A D | sc_wrap.c | 275 int chan, lun; local 297 lun = periph->periph_lun; 299 scb->identify = MSG_IDENT | sc_disconnect | (lun & IDT_DRMASK); 432 scop_rsense(int intr, struct scsi *sc_param, int lun, int ie, int count, 437 sc_param->identify = MSG_IDENT | sc_disconnect | (lun & IDT_DRMASK); 438 sc_param->sc_lun = lun;
|
/netbsd-6-1-5-RELEASE/sys/dev/i2o/ |
H A D | iopsp.c | 223 u_int tid, nent, i, targ, lun, size, rv, bptid; local 277 lun = param.sdi.luninfo[1]; 280 lun >= sc_chan->chan_nluns) { 282 "bad target/LUN\n", targ, lun, tid); 314 IOPSP_TIDMAP(sc->sc_tidmap, targ, lun) != 318 targ, lun, tid, 321 IOPSP_TIDMAP(tidmap, targ, lun) = IOPSP_TID_INUSE; 323 IOPSP_TIDMAP(tidmap, targ, lun) = (u_short)tid;
|
/netbsd-6-1-5-RELEASE/sys/arch/sun3/sun3/ |
H A D | autoconf.c | 257 int target, lun; local 265 lun = unit & 7; 269 periph = scsipi_lookup_periph(sbsc->sc_channel, target, lun);
|
/netbsd-6-1-5-RELEASE/sys/arch/sun68k/sun68k/ |
H A D | autoconf.c | 389 int target, lun; local 396 lun = unit & 7; 400 periph = scsipi_lookup_periph(sbsc->sc_channel, target, lun);
|
/netbsd-6-1-5-RELEASE/sbin/bioctl/ |
H A D | bioctl.c | 76 int lun; member in struct:locator 111 "start [channel:target[.lun]] | stop [channel:target[.lun]]", 115 "add channel:target.lun | remove channel:target.lun", 119 "add DISKID channel:target.lun | remove channel:target.lun", 127 "volume VOLID DISKIDs [SIZE] STRIPE RAID_LEVEL channel:target.lun", 132 "volume VOLID STRIPE RAID_LEVEL channel:target.lun", 137 "volume VOLID channel:target.lun", 206 char parse[80], *targ, *lun; local [all...] |
/netbsd-6-1-5-RELEASE/sys/dev/ieee1394/ |
H A D | sbp.c | 89 * 2- 9( 8): lun 285 #define SBP_DEV_PROBE 4 /* scan lun */ 674 int maxlun, lun, i; local 684 lun = reg->val & 0xffff; 686 printf("target %d lun %d found\n", target->target_id, lun); 688 if (maxlun < lun) 689 maxlun = lun; 701 for (lun = 0; lun < targe 1135 int lun, yet; local [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/acorn32/podulebus/ |
H A D | sbic.c | 413 dev->lun = periph->periph_lun; 497 dev->lun = periph->periph_lun; 535 dev->target, dev->lun); 545 dev->target, dev->lun, stat, acb->flags), 901 u_char lun, u_char our_addr) 992 GET_SBIC_tlun(regs,dev->lun); 993 if (dev->lun & SBIC_TLUN_VALID) 994 dev->lun &= SBIC_TLUN_MASK; 996 dev->lun = lun; 900 sbicselectbus(struct sbic_softc *dev, sbic_regmap_p regs, u_char target, u_char lun, u_char our_addr) argument 1248 sbicicmd(struct sbic_softc *dev, int target, int lun, struct sbic_acb *acb) argument [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/sparc/sparc/ |
H A D | autoconf.c | 496 * [scsi disk] val[0] is target, val[1] is lun, val[2] is partition 497 * [scsi tape] val[0] is target, val[1] is lun, val[2] is file # 699 int target, lun; local 720 * Deal with target/lun encodings. 728 lun = v0val[1] & 0x7; 731 lun = v0val[1] & 0x3; 734 BP_APPEND(bp, tmpname, target, lun, v0val[2]); 779 int target, lun; local 789 lun = 0; 790 BP_APPEND(bp, tmpname, target, lun, v0va 1829 u_int lun = bp->val[1]; local [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/mvme68k/dev/ |
H A D | sbic.c | 477 dev->lun = periph->periph_lun; 544 * We've found a potential command, but is the target/lun busy? 577 dev->lun = periph->periph_lun; 603 dev->target, dev->lun); 616 dev->target, dev->lun, stat); 955 u_char target = dev->target, lun = dev->lun, asr, csr, id; local 1046 dev->lun = lun; 1093 SEND_BYTE (regs, MSG_IDENTIFY | lun); [all...] |