Searched refs:lun (Results 1 - 25 of 185) sorted by relevance

12345678

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/usb/storage/
H A Ddpcm.c54 US_DEBUGP("dpcm_transport: LUN=%d\n", srb->device->lun);
56 switch(srb->device->lun) {
75 srb->device->lun = 0; us->srb->device->lun = 0;
77 srb->device->lun = 1; us->srb->device->lun = 1;
83 US_DEBUGP("dpcm_transport: Invalid LUN %d\n", srb->device->lun);
H A Ddatafab.h32 signed char lun; // used for dual-slot readers member in struct:datafab_info
H A Ddatafab.c111 if (info->lun == -1) {
141 command[5] = 0xE0 + (info->lun << 4);
194 if (info->lun == -1) {
228 command[5] = 0xE0 + (info->lun << 4);
306 info->lun = 0;
321 info->lun = 1;
351 if (info->lun == -1) {
362 command[5] += (info->lun << 4);
521 ((struct datafab_info *)us->extra)->lun = -1;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/block/
H A Dub.c192 struct ub_lun *lun; member in struct:ub_scsi_cmd
335 static int ub_request_fn_1(struct ub_lun *lun, struct request *rq);
336 static void ub_cmd_build_block(struct ub_dev *sc, struct ub_lun *lun,
338 static void ub_cmd_build_packet(struct ub_dev *sc, struct ub_lun *lun,
342 static int ub_rw_cmd_retry(struct ub_dev *sc, struct ub_lun *lun,
360 static int ub_sync_tur(struct ub_dev *sc, struct ub_lun *lun);
361 static int ub_sync_read_cap(struct ub_dev *sc, struct ub_lun *lun,
485 struct ub_lun *lun; local
490 lun = list_entry(p, struct ub_lun, link);
494 if ((q = lun
521 ub_get_cmd(struct ub_lun *lun) argument
532 ub_put_cmd(struct ub_lun *lun, struct ub_scsi_cmd *cmd) argument
604 struct ub_lun *lun = q->queuedata; local
615 ub_request_fn_1(struct ub_lun *lun, struct request *rq) argument
686 ub_cmd_build_block(struct ub_dev *sc, struct ub_lun *lun, struct ub_scsi_cmd *cmd, struct ub_request *urq) argument
722 ub_cmd_build_packet(struct ub_dev *sc, struct ub_lun *lun, struct ub_scsi_cmd *cmd, struct ub_request *urq) argument
747 struct ub_lun *lun = cmd->lun; local
801 ub_rw_cmd_retry(struct ub_dev *sc, struct ub_lun *lun, struct ub_request *urq, struct ub_scsi_cmd *cmd) argument
1520 struct ub_lun *lun; local
1576 ub_revalidate(struct ub_dev *sc, struct ub_lun *lun) argument
1611 struct ub_lun *lun = disk->private_data; local
1654 struct ub_lun *lun = disk->private_data; local
1685 struct ub_lun *lun = disk->private_data; local
1707 struct ub_lun *lun = disk->private_data; local
1750 ub_sync_tur(struct ub_dev *sc, struct ub_lun *lun) argument
1797 ub_sync_read_cap(struct ub_dev *sc, struct ub_lun *lun, struct ub_capacity *ret) argument
2227 struct ub_lun *lun; local
2300 struct ub_lun *lun; local
[all...]
H A Dcciss_scsi.h67 int bus, target, lun; /* as presented to the OS */ member in struct:cciss_scsi_dev_t
H A Dacsi.c112 unsigned lun; /* LUN in target controller */ member in struct:acsi_info_struct
272 #define CMDSET_TARG_LUN(cmd,targ,lun) \
275 cmd[1] = (cmd[1] & ~0xe0) | (lun)<<5; \
346 static int acsi_reqsense( char *buffer, int targ, int lun);
364 static int acsi_change_blk_size( int target, int lun);
365 static int acsi_mode_sense( int target, int lun, SENSE_DATA *sd );
376 extern int attach_slm( int target, int lun );
580 static int acsi_reqsense( char *buffer, int targ, int lun)
583 CMDSET_TARG_LUN( reqsense_cmd, targ, lun);
783 if (!acsi_reqsense(acsi_buffer, aip->target, aip->lun))
579 acsi_reqsense( char *buffer, int targ, int lun) argument
944 unsigned block, target, lun, nsect; local
1233 acsi_change_blk_size( int target, int lun) argument
1253 acsi_mode_sense( int target, int lun, SENSE_DATA *sd ) argument
1615 int i, target, lun; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/scsi/arm/
H A Dqueue.h67 * Function: struct scsi_cmnd *queue_remove_tgtluntag (queue, target, lun, tag)
68 * Purpose : remove a SCSI command from the queue for a specified target/lun/tag
71 * lun - lun on device
76 int lun, int tag);
88 * Function: int queue_probetgtlun (queue, target, lun)
90 * target/lun.
93 * lun - lun on target
96 extern int queue_probetgtlun (Queue_t *queue, int target, int lun);
[all...]
H A Dqueue.c158 * exclude - bit array of target&lun which is busy
170 if (!test_bit(q->SCpnt->device->id * 8 + q->SCpnt->device->lun, exclude)) {
200 * Function: struct scsi_cmnd *queue_remove_tgtluntag (queue, target, lun, tag)
201 * Purpose : remove a SCSI command from the queue for a specified target/lun/tag
204 * lun - lun on device
208 struct scsi_cmnd *queue_remove_tgtluntag(Queue_t *queue, int target, int lun, argument
218 if (q->SCpnt->device->id == target && q->SCpnt->device->lun == lun &&
251 * Function: int queue_probetgtlun (queue, target, lun)
259 queue_probetgtlun(Queue_t *queue, int target, int lun) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/scsi/
H A Dscsi_tgt_if.h68 uint8_t lun[8]; member in struct:tgt_event::__anon10719::__anon10722
81 uint8_t lun[8]; member in struct:tgt_event::__anon10719::__anon10724
H A Discsi_proto.h60 uint8_t lun[8]; member in struct:iscsi_hdr
121 uint8_t lun[8]; member in struct:iscsi_cmd
188 uint8_t lun[8]; member in struct:iscsi_async
216 uint8_t lun[8]; member in struct:iscsi_nopout
231 uint8_t lun[8]; member in struct:iscsi_nopin
247 uint8_t lun[8]; member in struct:iscsi_tm
303 uint8_t lun[8]; member in struct:iscsi_r2t_rsp
321 uint8_t lun[8]; member in struct:iscsi_data
341 uint8_t lun[8]; member in struct:iscsi_data_rsp
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/scsi/aic94xx/
H A Daic94xx.h101 int asd_abort_task_set(struct domain_device *, u8 *lun);
102 int asd_clear_aca(struct domain_device *, u8 *lun);
103 int asd_clear_task_set(struct domain_device *, u8 *lun);
104 int asd_lu_reset(struct domain_device *, u8 *lun);
H A Daic94xx_tmf.c144 static int asd_clear_nexus_I_T_L(struct domain_device *dev, u8 *lun) argument
156 memcpy(scb->clear_nexus.ssp_task.lun, lun, 8);
172 memcpy(scb->clear_nexus.ssp_task.lun, task->ssp_task.LUN, 8);
377 memcpy(scb->abort_task.ssp_task.lun, task->ssp_task.LUN, 8);
474 * @lun: pointer to u8[8] which is the LUN
486 static int asd_initiate_ssp_tmf(struct domain_device *dev, u8 *lun, argument
517 memcpy(scb->ssp_tmf.ssp_task.lun, lun, 8);
562 int asd_abort_task_set(struct domain_device *dev, u8 *lun) argument
571 asd_clear_aca(struct domain_device *dev, u8 *lun) argument
580 asd_clear_task_set(struct domain_device *dev, u8 *lun) argument
589 asd_lu_reset(struct domain_device *dev, u8 *lun) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/scsi/
H A Dscsi_scan.c226 * Stores the @shost, @channel, @id, and @lun in the scsi_Device, and
233 unsigned int lun, void *hostdata)
249 sdev->lun = lun;
533 * Probe the lun associated with @req using a standard SCSI INQUIRY;
923 * @lun: LUN of target device
939 uint lun, int *bflagsp,
952 sdev = scsi_device_lookup_by_target(starget, lun);
971 sdev = scsi_alloc_sdev(starget, lun, hostdata);
996 * logical disk configured at sdev->lun, bu
232 scsi_alloc_sdev(struct scsi_target *starget, unsigned int lun, void *hostdata) argument
938 scsi_probe_and_add_lun(struct scsi_target *starget, uint lun, int *bflagsp, struct scsi_device **sdevp, int rescan, void *hostdata) argument
1088 unsigned int sparse_lun, lun, max_dev_lun; local
1175 unsigned int lun; local
1202 int_to_scsilun(unsigned int lun, struct scsi_lun *scsilun) argument
1237 unsigned int lun; local
1426 __scsi_add_device(struct Scsi_Host *shost, uint channel, uint id, uint lun, void *hostdata) argument
1454 scsi_add_device(struct Scsi_Host *host, uint channel, uint target, uint lun) argument
1483 __scsi_scan_target(struct device *parent, unsigned int channel, unsigned int id, unsigned int lun, int rescan) argument
1548 scsi_scan_target(struct device *parent, unsigned int channel, unsigned int id, unsigned int lun, int rescan) argument
1566 scsi_scan_channel(struct Scsi_Host *shost, unsigned int channel, unsigned int id, unsigned int lun, int rescan) argument
1588 scsi_scan_host_selected(struct Scsi_Host *shost, unsigned int channel, unsigned int id, unsigned int lun, int rescan) argument
[all...]
H A Dscsi_tgt_priv.h18 extern int scsi_tgt_uspace_send_cmd(struct scsi_cmnd *cmd, struct scsi_lun *lun,
H A Dscsi_proc.c155 sdev->host->host_no, sdev->channel, sdev->id, sdev->lun);
192 static int scsi_add_single_device(uint host, uint channel, uint id, uint lun) argument
202 error = shost->transportt->user_scan(shost, channel, id, lun);
204 error = scsi_scan_host_selected(shost, channel, id, lun, 1);
209 static int scsi_remove_single_device(uint host, uint channel, uint id, uint lun) argument
218 sdev = scsi_device_lookup(shost, channel, id, lun);
232 int host, channel, id, lun; local
263 lun = simple_strtoul(p + 1, &p, 0);
265 err = scsi_add_single_device(host, channel, id, lun);
277 lun
[all...]
H A Dibmmca.c237 done dynamically and the ldn <-> pun,lun maps can be looked-up at boottime
328 int total_scsi_devices; /* number of physical pun,lun */
339 /* array to convert (pun, lun) into logical device number: */
662 if ((cmd->target == TIMEOUT_PUN) && (cmd->device->lun == TIMEOUT_LUN)) {
663 printk("IBM MCA SCSI: Ignoring interrupt from pun=%x, lun=%x.\n", cmd->target, cmd->device->lun);
847 static int immediate_assign(int host_index, unsigned int pun, unsigned int lun, unsigned int ldn, unsigned int operation) argument
857 imm_cmd |= (unsigned long) ((lun & 7) << 24);
866 imm_cmd |= (unsigned long) ((lun & 7) << 24);
1094 int id, lun, ld local
1798 int id, lun; local
2391 int i, id, lun, host_index; local
[all...]
H A Dsun3_NCR5380.c236 int target, lun; local
243 for( lun = 0; lun < 8; ++lun ) {
244 ta = &TagAlloc[target][lun];
268 if (hostdata->busy[cmd->device->id] & (1 << cmd->device->lun))
273 if (TagAlloc[cmd->device->id][cmd->device->lun].nr_allocated >=
274 TagAlloc[cmd->device->id][cmd->device->lun].queue_size ) {
275 TAG_PRINTK( "scsi%d: target %d lun %d: no free tags\n",
276 H_NO(cmd), cmd->device->id, cmd->device->lun );
345 int target, lun; local
2329 unsigned char lun; local
[all...]
H A Datari_NCR5380.c235 int target, lun; local
242 for (lun = 0; lun < 8; ++lun) {
243 ta = &TagAlloc[target][lun];
267 if (hostdata->busy[cmd->device->id] & (1 << cmd->device->lun))
272 if (TagAlloc[cmd->device->id][cmd->device->lun].nr_allocated >=
273 TagAlloc[cmd->device->id][cmd->device->lun].queue_size) {
274 TAG_PRINTK("scsi%d: target %d lun %d: no free tags\n",
275 H_NO(cmd), cmd->device->id, cmd->device->lun);
341 int target, lun; local
2317 unsigned char lun, phase; local
[all...]
H A Dgdth_ioctl.h103 unchar lun; /* LUN */ member in struct:__anon6568::__anon6569::__anon6576
122 unchar lun; /* LUN */ member in struct:__anon6568::__anon6569::__anon6577
219 unchar lun; /* LUN */ member in struct:__anon6585::__anon6586::__anon6591
266 unchar lun; /* LUN */ member in struct:__anon6593::__anon6594::__anon6601
335 unchar lun; /* LUN */ member in struct:__anon6608::__anon6609
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/scsi/aic7xxx/
H A Dscsi_message.h47 #define MSG_IDENTIFY(lun, disc) (((disc) ? 0xc0 : MSG_IDENTIFYFLAG) | (lun))
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/scsi/aic7xxx_old/
H A Dscsi_message.h30 #define MSG_IDENTIFY(lun, disc) (((disc) ? 0xc0 : MSG_IDENTIFYFLAG) | (lun))
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/scsi/qla2xxx/
H A Dqla_iocb.c387 cmd_pkt->lun = cpu_to_le16(sp->cmd->device->lun);
443 * @lun: LUN
451 __qla2x00_marker(scsi_qla_host_t *ha, uint16_t loop_id, uint16_t lun, argument
472 mrk24->lun[1] = LSB(lun);
473 mrk24->lun[2] = MSB(lun);
474 host_to_fcp_swap(mrk24->lun, sizeof(mrk24->lun));
488 qla2x00_marker(scsi_qla_host_t *ha, uint16_t loop_id, uint16_t lun, uint8_t type) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/message/i2o/
H A Di2o_scsi.c20 * o Each (bus,lun) is a logical device in I2O. We keep a map
82 unsigned int lun; /* lun's used for block devices */ member in struct:i2o_scsi_host
142 i2o_shost->lun = 1;
207 * Retrieve channel, id and lun for I2O device. If everthing goes well
221 u64 lun = -1; local
245 lun =
247 lun++);
249 lun = 0;
259 if (i2o_parm_field_get(i2o_dev, 0x0000, 4, &lun,
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-s390/
H A Dipl.h50 u64 lun; member in struct:ipl_block_fcp
112 u64 lun; member in struct:ipl_info::__anon9362::__anon9364
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/block/paride/
H A Dpf.c19 drive3 <prt>,<pro>,<uni>,<mod>,<slv>,<lun>,<dly>
46 <lun> Some ATAPI devices support multiple LUNs.
232 int lun; member in struct:pf_unit
288 pf->lun = (*drives[unit])[D_LUN];
463 { ATAPI_REQ_SENSE, pf->lun << 5, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0 };
495 char lo_cmd[12] = { ATAPI_LOCK, pf->lun << 5, 0, 0, func, 0, 0, 0, 0, 0, 0, 0 };
502 char ej_cmd[12] = { ATAPI_DOOR, pf->lun << 5, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0 };
555 { ATAPI_MODE_SENSE, pf->lun << 5, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0 };
590 char rc_cmd[12] = { ATAPI_CAPACITY, pf->lun << 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
605 pf->name, pf->drive, pf->lun, b
[all...]

Completed in 161 milliseconds

12345678