Home
last modified time | relevance | path

Searched refs:lun (Results 1 – 25 of 373) sorted by relevance

12345678910>>...15

/netbsd-src/external/bsd/iscsi/dist/src/osd/
H A Dosd.c183 iscsi_trace(TRACE_SCSI_CMD, "SCSI op 0x%x (lun %llu)\n", args->cdb[0], args->lun); in device_command()
185 if (args->lun >= osd_luns) { in device_command()
186 iscsi_trace(TRACE_SCSI_DEBUG, "invalid lun: %llu\n", args->lun); in device_command()
196 iscsi_trace(TRACE_SCSI_CMD, "TEST_UNIT_READY(lun %llu)\n", args->lun); in device_command()
203 iscsi_trace(TRACE_SCSI_CMD, "INQUIRY(lun %llu)\n", args->lun); in device_command()
290 …iscsi_trace(TRACE_OSD, "OSD_SET_ATTR(lun %llu, GroupID 0x%x, UserID 0x%llx)\n", args->lun, osd_arg… in device_command()
299 base_dir, args->lun, osd_args.GroupID, osd_args.UserID, page, attr); in device_command()
321 sprintf(FileName, "%s/lun_%llu/0x%x", base_dir, args->lun, GroupID); in device_command()
324 iscsi_trace(TRACE_OSD, "OSD_CREATE_GROUP(lun %llu) --> 0x%x\n", args->lun, GroupID); in device_command()
330 iscsi_trace(TRACE_OSD, "OSD_REMOVE_GROUP(lun %llu, 0x%x)\n", args->lun, osd_args.GroupID); in device_command()
[all …]
/netbsd-src/sys/arch/next68k/stand/boot/
H A Ddevopen.c67 int *count, int *lun, int *part, char **file) in devparse() argument
93 *lun = atoi(args[1]); in devparse()
97 *lun = atoi(args[0]); in devparse()
123 int count, lun, part; in devopen() local
128 lun = 0; in devopen()
131 if ((error = devparse(fname, &dev, &count, &lun, &part, file)) != 0) in devopen()
141 if ((error = (*dp->dv_open)(f, count, lun, part)) != 0) in devopen()
143 count, lun, part, error, strerror(error)); in devopen()
H A Dsd.c68 int sdprobe(char target, char lun);
72 sdprobe(char target, char lun) in sdprobe() argument
86 error = scsiicmd(target, lun, (u_char *)&cdb1, sizeof(cdb1), NULL, &count); in sdprobe()
100 error = scsiicmd(target, lun, (u_char *)&cdb2, sizeof(cdb2), in sdprobe()
190 int count, lun, part; in sdopen() local
197 lun = va_arg(ap, int); in sdopen()
201 DPRINTF(("open: sd(%d,%d,%d)\n", count, lun, part)); in sdopen()
203 if (lun >= NSD) in sdopen()
210 DPRINTF(("trying target %d lun %d.\n", unit, lun)); in sdopen()
211 error = sdprobe(unit, lun); in sdopen()
[all …]
H A Dboot.c73 char count, lun, part; in main() local
139 count = lun = part = 0; in main()
140 if (devparse(kernel, &dev, &count, &lun, &part, &file) == 0) { in main()
145 snprintf (p, 1024, "(%d,%d,%d)", count, lun, part); /* XXX */ in main()
/netbsd-src/sys/arch/luna68k/stand/boot/
H A Dsc.c188 scident(uint ctlr, uint target, uint lun, struct scsi_inquiry *inqout, in scident()
207 while ((i = scsi_test_unit_rdy(ctlr, target, lun)) != 0) { in scident()
214 scsi_request_sense(ctlr, target, lun, sensebuf, 8); in scident()
221 if (scsi_immed_command(ctlr, target, lun, &inq, (uint8_t *)&inqbuf, in scident()
223 scsi_immed_command(ctlr, target, lun, &cap, (uint8_t *)&capbuf, in scident()
252 scprobe(struct scsi_softc *hs, uint target, uint lun) in scprobe()
259 if (!scident(hs->sc_ctlr, target, lun, &inqbuf, capbuf)) in scprobe()
485 scsi_test_unit_rdy(int ctlr, int target, int lun) in scsi_test_unit_rdy()
492 printf("scsi_test_unit_rdy( %d, %d, %d): Start\n", ctlr, target, lun); in scsi_test_unit_rdy()
495 cdb.lun in scsi_test_unit_rdy()
178 scident(uint ctlr,uint target,uint lun,struct scsi_inquiry * inqout,uint32_t * capout) scident() argument
240 scprobe(struct scsi_softc * hs,uint target,uint lun) scprobe() argument
473 scsi_test_unit_rdy(int ctlr,int target,int lun) scsi_test_unit_rdy() argument
508 scsi_request_sense(int ctlr,int target,int lun,uint8_t * buf,unsigned int len) scsi_request_sense() argument
553 scsi_immed_command(int ctlr,int target,int lun,struct scsi_generic_cdb * cdb,uint8_t * buf,unsigned int len) scsi_immed_command() argument
590 scsi_format_unit(int ctlr,int target,int lun) scsi_format_unit() argument
[all...]
/netbsd-src/sys/dev/scsipi/
H A Dscsi_base.c199 int lun, announce, mode, period, offset; in scsi_async_event_xfer_mode() local
201 for (lun = 0; lun < chan->chan_nluns; lun++) { in scsi_async_event_xfer_mode()
202 periph = scsipi_lookup_periph_locked(chan, xm->xm_target, lun); in scsi_async_event_xfer_mode()
250 int lun, announce, mode; in scsi_fc_sas_async_event_xfer_mode() local
252 for (lun = 0; lun < chan->chan_nluns; lun++) { in scsi_fc_sas_async_event_xfer_mode()
253 periph = scsipi_lookup_periph_locked(chan, xm->xm_target, lun); in scsi_fc_sas_async_event_xfer_mode()
H A Dscsiconf.c170 aprint_normal(": %d target%s, %d lun%s per target\n", in scsibusattach()
403 switch (lunp->lun[0] & 0xC0) { in scsi_report_luns()
406 printf("LUN %016"PRIx64" ignored\n", _8btol(lunp->lun)); in scsi_report_luns()
410 (*luns)[i] = _2btol(&lunp->lun[0]) & 0x3FFF; in scsi_report_luns()
413 (*luns)[i] = _2btol(&lunp->lun[0]) & 0x00FF; in scsi_report_luns()
442 for (int lun = minlun; lun <= maxlun; lun++) { in scsi_discover_luns()
446 if (scsi_probe_device(sc, target, lun) == 0) in scsi_discover_luns()
454 * target and lun optionall
443 for (int lun = minlun; lun <= maxlun; lun++) { scsi_discover_luns() local
458 scsi_probe_bus(struct scsibus_softc * sc,int target,int lun) scsi_probe_bus() argument
526 int target, lun; scsidevdetached() local
560 int target, lun; scsibusprint() local
877 scsi_probe_device(struct scsibus_softc * sc,int target,int lun) scsi_probe_device() argument
[all...]
/netbsd-src/sys/arch/mac68k/mac68k/
H A Dautoconf.c163 target_to_unit(u_long bus, u_long target, u_long lun) in target_to_unit() argument
169 if (target < 0 || target > 7 || lun < 0 || lun > 7) { in target_to_unit()
171 " out of range.\n", target, lun); in target_to_unit()
181 target, lun); in target_to_unit()
197 target, lun); in target_to_unit()
/netbsd-src/sys/dev/ic/
H A Desiop.c407 int offset, target, lun, tag; in esiop_intr() local
448 lun = (tflags & A_f_c_lun) ? ((tflags >> 16) & 0xff) : -1; in esiop_intr()
449 if (lun > sc->sc_c.sc_chan.chan_nluns) lun = -1; in esiop_intr()
452 if (target >= 0 && lun >= 0) { in esiop_intr()
458 esiop_lun = esiop_target->esiop_lun[lun]; in esiop_intr()
461 target, lun); in esiop_intr()
469 target, lun, tag); in esiop_intr()
476 "not active (%d)\n", target, lun, in esiop_intr()
534 target, lun, tag, esiop_cmd->cmd_tables->msg_in[0], in esiop_intr()
1139 esiop_del_dev(sc, target, lun); in esiop_intr()
[all …]
H A Dwd33c93.c669 int lun, tag, flags; in wd33c93_sched() local
679 lun = periph->periph_lun; in wd33c93_sched()
681 li = TINFO_LUN(ti, lun); in wd33c93_sched()
703 li->lun = lun; in wd33c93_sched()
704 if (lun < SBIC_NLUN) in wd33c93_sched()
705 ti->lun[lun] = li; in wd33c93_sched()
781 KASSERT(sc->lun == xs->xs_periph->periph_lun); in wd33c93_scsidone()
784 sc->target, sc->lun); in wd33c93_scsidone()
791 sc->target, sc->lun, status)); in wd33c93_scsidone()
811 li = TINFO_LUN(ti, sc->lun); in wd33c93_scsidone()
[all …]
H A Dsiop.c304 int offset, target, lun, tag; in siop_intr() local
342 lun = siop_cmd->cmd_c.xs->xs_periph->periph_lun; in siop_intr()
344 siop_lun = siop_target->siop_lun[lun]; in siop_intr()
348 "not active (%d)\n", lun, (u_int)dsa, in siop_intr()
353 lun = -1; in siop_intr()
359 "active (%p != %p)\n", lun, tag, siop_cmd, in siop_intr()
367 lun = -1; in siop_intr()
644 lun = bus_space_read_1(sc->sc_c.sc_rt, sc->sc_c.sc_rh, in siop_intr()
655 siop_lun = siop_target->siop_lun[lun]; in siop_intr()
659 target, lun); in siop_intr()
[all …]
H A Dncr53c9x.c132 int64_t lun);
178 ncr53c9x_lunsearch(struct ncr53c9x_tinfo *ti, int64_t lun) in ncr53c9x_lunsearch() argument
183 if (li->lun == lun) in ncr53c9x_lunsearch()
674 int lun = periph->periph_lun; in ncr53c9x_select() local
683 target, lun, ecb->cmd.cmd.opcode, ecb->tag[0], ecb->tag[1])); in ncr53c9x_select()
762 cmd[0] = MSG_IDENTIFY(lun, 1); /* msg[0] */ in ncr53c9x_select()
769 cmd[0] = MSG_IDENTIFY(lun, (tiflags & T_RSELECTOFF) == 0); in ncr53c9x_select()
1074 int lun; in ncr53c9x_sched() local
1089 lun = periph->periph_lun; in ncr53c9x_sched()
1106 li = TINFO_LUN(ti, lun); in ncr53c9x_sched()
[all …]
H A Disp_tpublic.h342 #define FLATLUN_TO_L0LUN(lptr, lun) \ argument
343 (lptr)[1] = lun & 0xff; \
344 if (sizeof (lun) == 1) { \
347 uint16_t nl = lun; \
/netbsd-src/sys/arch/atari/conf/
H A DHADES.in54 sd* at scsibus? target ? lun ? # SCSI disk drives
55 st* at scsibus? target ? lun ? # SCSI tape drives
56 cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
58 ch* at scsibus? target ? lun ? # SCSI autochangers
59 ss* at scsibus? target ? lun ? # SCSI scanners
60 dse* at scsibus? target ? lun ? # SCSI ethernet (Dayna)
61 se* at scsibus? target ? lun ? # SCSI ethernet
62 uk* at scsibus? target ? lun ? # SCSI unknown
H A DHADES111 sd* at scsibus? target ? lun ? # SCSI disk drives
112 st* at scsibus? target ? lun ? # SCSI tape drives
113 cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
114 ch* at scsibus? target ? lun ? # SCSI autochangers
115 ss* at scsibus? target ? lun ? # SCSI scanners
116 dse* at scsibus? target ? lun ? # SCSI ethernet (Dayna)
117 se* at scsibus? target ? lun ? # SCSI ethernet
118 uk* at scsibus? target ? lun ? # SCSI unknown
/netbsd-src/sys/arch/next68k/next68k/
H A Dautoconf.c137 int count, lun, part; in cpu_rootconf() local
139 count = lun = part = 0; in cpu_rootconf()
141 devidentparse (rom_boot_info, &count, &lun, &part); in cpu_rootconf()
173 devidentparse(const char *spec, int *count, int *lun, int *part) in devidentparse() argument
191 *lun = atoi(args[1]); in devidentparse()
195 *lun = atoi(args[0]); in devidentparse()
/netbsd-src/external/bsd/iscsi/dist/src/initiator/
H A Discsi-initiator.c75 uint32_t lun; /* LUN number */ member
134 read_capacity(uint64_t target, uint32_t lun, uint32_t *maxlba, uint32_t *blocklen) in read_capacity() argument
143 cdb[1] = lun << 5; in read_capacity()
148 args.lun = lun; in read_capacity()
183 inquiry(uint64_t target, uint32_t lun, uint8_t type, uint8_t inquire, uint8_t *data) in inquiry() argument
191 cdb[1] = type | (lun << 5); in inquiry()
199 args.lun = lun; in inquiry()
220 blockop(uint64_t target, uint32_t lun, uint32_t lba, uint32_t len, in blockop() argument
231 cdb[1] = lun << 5; in blockop()
244 args.lun = lun; in blockop()
[all …]
/netbsd-src/external/bsd/iscsi/dist/include/
H A Discsiprotocol.h152 uint64_t lun; member
204 uint64_t lun; member
223 uint64_t lun; member
245 uint64_t lun; member
266 uint64_t lun; member
383 uint64_t lun; member
443 uint64_t lun; member
466 uint64_t lun; member
491 uint64_t lun; member
530 uint64_t lun; member
/netbsd-src/sys/arch/sparc/conf/
H A DGENERIC_SCSI37 sd0 at scsibus? target 3 lun ? # first SCSI disk
8 sd1 at scsibus? target 1 lun ? # second SCSI disk
9 sd2 at scsibus? target 2 lun ? # third SCSI disk
10 sd3 at scsibus? target 0 lun ? # fourth SCSI disk
/netbsd-src/external/bsd/iscsi/dist/src/lib/
H A Dprotocol.c77 iscsi_trace(TRACE_ISCSI_ARGS, "LUN: %" PRIu64 "\n", cmd->lun); in iscsi_task_cmd_encap()
92 *((uint64_t *) (void *) (header + 8)) = ISCSI_HTONLL(cmd->lun); /* LUN */ in iscsi_task_cmd_encap()
115 cmd->lun = ISCSI_NTOHLL(*((uint64_t *) (void *) (header + 8))); in iscsi_task_cmd_decap()
144 iscsi_trace(TRACE_ISCSI_ARGS, "LUN: %" PRIu64 "\n", cmd->lun); in iscsi_task_cmd_decap()
239 iscsi_trace(TRACE_ISCSI_ARGS, "LUN: %" PRIu64 "\n", cmd->lun); in iscsi_nop_out_encap()
254 *((uint64_t *) (void *) (header + 8)) = ISCSI_HTONLL(cmd->lun); /* LUN */ in iscsi_nop_out_encap()
275 cmd->lun = ISCSI_NTOHLL(*((uint64_t *) (void *) (header + 8))); /* LUN */ in iscsi_nop_out_decap()
297 iscsi_trace(TRACE_ISCSI_ARGS, "LUN: %" PRIu64 "\n", cmd->lun); in iscsi_nop_out_decap()
315 iscsi_trace(TRACE_ISCSI_ARGS, "LUN: %" PRIu64 "\n", cmd->lun); in iscsi_nop_in_encap()
328 *((uint64_t *) (void *) (header + 8)) = ISCSI_HTONLL(cmd->lun); /* LUN */ in iscsi_nop_in_encap()
[all …]
H A Ddisk.c1012 uint8_t *cdbsize, uint8_t lun, char *uuid) in device_vpd() argument
1043 lun); in device_vpd()
1103 uint8_t lun; in device_command() local
1106 lun = (uint8_t) (args->lun >> 48); in device_command()
1113 if (lun >= disks.v[sess->d].luns) { in device_command()
1127 lun = (uint8_t) sess->d; in device_command()
1128 iscsi_trace(TRACE_SCSI_CMD, "SCSI op %#x (lun %d): \n", cdb[0], lun); in device_command()
1161 lun, disks.v[sess->d].uuid_string); in device_command()
1230 if (disk_write(sess, args, lun, lba, (unsigned) len) != 0) { in device_command()
1246 if (disk_read(sess, args, lba, len, lun) != 0) { in device_command()
[all …]
/netbsd-src/sys/arch/amiga/dev/
H A Dsbic.c256 sbic_save_ptrs(struct sbic_softc *dev, sbic_regmap_t regs, int target, int lun) in sbic_save_ptrs() argument
319 sbic_load_ptrs(struct sbic_softc *dev, sbic_regmap_t regs, int target, int lun) in sbic_load_ptrs() argument
456 dev->lun = periph->periph_lun; in sbic_scsipi_request()
457 stat = sbicicmd(dev, dev->target, dev->lun, in sbic_scsipi_request()
548 dev->lun = periph->periph_lun; in sbic_sched()
579 dev->target, dev->lun); in sbic_scsidone()
593 dev->target, dev->lun, stat); in sbic_scsidone()
966 u_char lun, u_char our_addr) in sbicselectbus() argument
1055 GET_SBIC_tlun(regs,dev->lun); in sbicselectbus()
1056 if (dev->lun & SBIC_TLUN_VALID) in sbicselectbus()
[all …]
/netbsd-src/sys/arch/bebox/bebox/
H A Dautoconf.c76 static int bus, target, lun, drive; variable
117 target = lun = drive = -1; in findroot()
138 lun = (*p++) - '0'; in findroot()
223 sa->sa_periph->periph_lun == lun) in device_register()
/netbsd-src/usr.sbin/mmcformat/
H A Duscsi_subr.c187 saddr->addr.scsi.lun = raddr.addr.scsi.lun; in uscsi_identify()
200 saddr->addr.scsi.lun = raddr.lun; in uscsi_identify()
345 saddr->addr.scsi.lun = sg_scsi_id.lun; in uscsi_identify()
356 saddr->addr.scsi.lun = (sg_id.tlci >> 8) & 0xff; in uscsi_identify()
501 saddr->addr.scsi.lun = cam_dev->target_lun; in uscsi_identify()
/netbsd-src/sys/arch/next68k/conf/
H A DSLAB154 #sd* at scsibus? target ? lun ? # SCSI disk drives
155 #st* at scsibus? target ? lun ? # SCSI tape drives
156 #cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
157 #ch* at scsibus? target ? lun ? # SCSI autochangers
158 #dse* at scsibus? target ? lun ? # SCSI ethernet (Dayna)
159 #se* at scsibus? target ? lun ? # SCSI ethernet
160 #ss* at scsibus? target ? lun ? # SCSI scanners
161 #uk* at scsibus? target ? lun ? # SCSI unknown

12345678910>>...15