Searched defs:lun (Results 26 - 50 of 163) sorted by relevance

1234567

/drivers/firmware/
H A Discsi_ibft.c144 char lun[8]; member in struct:ibft_tgt
368 str += sprintf(str, "%x", (u8)tgt->lun[i]);
/drivers/s390/scsi/
H A Dzfcp_dbf.h63 * @lun: logical unit number
68 * @lun_status: current status of the lun
75 u64 lun; member in struct:zfcp_dbf_rec
136 * @lun: logical unit number
143 u64 lun; member in struct:zfcp_dbf_hba_uss
/drivers/scsi/aacraid/
H A Dcommsup.c869 u32 channel, id, lun, container; local
882 container = channel = id = lun = (u32)-1;
1012 lun = (container >> 16) & 0xFF;
1022 lun);
1052 lun = (container >> 16) & 0xFF;
1056 if ((0x2000 <= id) || lun || channel ||
1060 lun = (id >> 4) & 7;
1151 lun = CONTAINER_TO_LUN(container);
1181 device = scsi_device_lookup(dev->scsi_host_ptr, channel, id, lun);
1232 scsi_add_device(dev->scsi_host_ptr, channel, id, lun);
[all...]
/drivers/scsi/
H A Daha1740.h114 u16 lun:3, /* Logical Unit */ member in struct:ecb
H A Datp870u.c51 unsigned char i, j, c, target_id, lun,cmdp; local
231 lun = 0;
235 lun = inb(tmport) & 0x07;
308 outb(lun, tmport);
838 outb(workreq->device->lun, tmport);
3179 .cmd_per_lun = ATP870U_CMDLUN /* commands per lun */,
H A Dch.c250 cmd[1] = (ch->device->lun << 5) |
286 cmd[1] = ch->device->lun << 5;
297 int result,id,lun,i; local
306 cmd[1] = ch->device->lun << 5;
371 lun = 0;
374 lun = dt_lun[elem];
391 lun = 0;
393 if (data[6] & 0x10) lun = data[6] & 7;
397 VPRINTK(KERN_CONT, "ID %i, LUN %i, ",id,lun);
401 id,lun);
[all...]
H A Din2000.c441 * for a currently non-busy target/lun.
468 * for an idle target/lun.
474 if (!(hostdata->busy[cmd->device->id] & (1 << cmd->device->lun)))
524 * for a different target/lun. In this case, the other commands
544 if ((prev->device->id != cmd->device->id) || (prev->device->lun != cmd->device->lun)) {
562 write_3393(hostdata, WD_TARGET_LUN, cmd->device->lun);
564 hostdata->busy[cmd->device->id] |= (1 << cmd->device->lun);
838 uchar asr, sr, phs, id, lun, *ucp, msg; local
1078 hostdata->busy[cmd->device->id] &= ~(1 << cmd->device->lun);
[all...]
H A Dscsi.c698 (cmd->device->lun << 5 & 0xe0);
1183 * @lun: SCSI Logical Unit Number
1185 * Description: Looks up the scsi_device with the specified @lun for a given
1196 uint lun)
1203 if (sdev->lun ==lun)
1214 * @lun: SCSI Logical Unit Number
1216 * Description: Looks up the scsi_device with the specified @lun for a given
1221 uint lun)
1228 sdev = __scsi_device_lookup_by_target(starget, lun);
1195 __scsi_device_lookup_by_target(struct scsi_target *starget, uint lun) argument
1220 scsi_device_lookup_by_target(struct scsi_target *starget, uint lun) argument
1253 __scsi_device_lookup(struct Scsi_Host *shost, uint channel, uint id, uint lun) argument
1279 scsi_device_lookup(struct Scsi_Host *shost, uint channel, uint id, uint lun) argument
[all...]
H A Dsun3_NCR5380.c328 int target, lun; local
335 for( lun = 0; lun < 8; ++lun ) {
336 ta = &TagAlloc[target][lun];
360 if (hostdata->busy[cmd->device->id] & (1 << cmd->device->lun))
365 if (TagAlloc[cmd->device->id][cmd->device->lun].nr_allocated >=
366 TagAlloc[cmd->device->id][cmd->device->lun].queue_size ) {
367 TAG_PRINTK( "scsi%d: target %d lun %d: no free tags\n",
368 H_NO(cmd), cmd->device->id, cmd->device->lun );
437 int target, lun; local
2470 unsigned char lun; local
[all...]
H A Dwd33c93.c477 * for a currently non-busy target/lun.
499 * for an idle target/lun.
505 if (!(hostdata->busy[cmd->device->id] & (1 << cmd->device->lun)))
553 * for a different target/lun. In this case, the other commands
575 (prev->device->lun != cmd->device->lun)) {
596 write_wd33c93(regs, WD_TARGET_LUN, cmd->device->lun);
599 hostdata->busy[cmd->device->id] |= (1 << cmd->device->lun);
807 uchar asr, sr, phs, id, lun, *ucp, msg; local
865 hostdata->busy[cmd->device->id] &= ~(1 << cmd->device->lun);
[all...]
H A D53c700.c421 NCR_700_identify(int can_disconnect, __u8 lun) argument
425 (lun & NCR_700_LUN_MASK);
791 __u8 pun = 0xff, lun = 0xff; local
795 lun = SCp->device->lun;
840 host->host_no, pun, lun);
851 host->host_no, pun, lun,
874 __u8 pun = 0xff, lun = 0xff; local
878 lun = SCp->device->lun;
961 __u8 pun = 0xff, lun=0xff; local
1096 __u8 lun; local
1487 __u8 pun = 0xff, lun = 0xff; local
[all...]
H A DNCR5380.c778 SPRINTF("scsi%d : destination target %d, lun %d\n", cmd->device->host->host_no, cmd->device->id, cmd->device->lun);
1058 dprintk(NDEBUG_LISTS, ("MAIN tmp=%p target=%d busy=%d lun=%d\n", tmp, tmp->target, hostdata->busy[tmp->target], tmp->lun));
1060 if (!(hostdata->busy[tmp->device->id] & (1 << tmp->device->lun))) {
1076 dprintk(NDEBUG_MAIN|NDEBUG_QUEUES, ("scsi%d : main() : command for target %d lun %d removed from issue_queue\n", instance->host_no, tmp->target, tmp->lun));
1108 } /* if target/lun is not busy */
1531 tmp[0] = IDENTIFY(((instance->irq == SCSI_IRQ_NONE) ? 0 : 1), cmd->device->lun);
1543 hostdata->busy[cmd->device->id] |= (1 << cmd->device->lun);
2510 unsigned char lun, phase; local
[all...]
H A Daha1542.c566 unchar lun = SCpnt->device->lun; local
693 ccb[mbo].idlun = (target & 7) << 5 | direction | (lun & 7); /*SCSI Target Id */
1293 unchar lun = SCpnt->device->lun; local
1330 ccb[mbo].idlun = (target & 7) << 5 | (lun & 7); /*SCSI Target Id */
H A Datari_NCR5380.c334 int target, lun; local
341 for (lun = 0; lun < 8; ++lun) {
342 ta = &TagAlloc[target][lun];
366 if (hostdata->busy[cmd->device->id] & (1 << cmd->device->lun))
371 if (TagAlloc[cmd->device->id][cmd->device->lun].nr_allocated >=
372 TagAlloc[cmd->device->id][cmd->device->lun].queue_size) {
373 TAG_PRINTK("scsi%d: target %d lun %d: no free tags\n",
374 H_NO(cmd), cmd->device->id, cmd->device->lun);
440 int target, lun; local
2501 unsigned char lun, phase; local
[all...]
/drivers/scsi/libsas/
H A Dsas_scsi_host.c155 struct scsi_lun lun; local
167 int_to_scsilun(cmd->device->lun, &lun);
168 memcpy(task->ssp_task.LUN, &lun.scsi_lun, 8);
290 cmd->device->lun == my_cmd->device->lun)
401 struct scsi_lun lun; local
405 int_to_scsilun(cmd->device->lun, &lun);
409 cmd->device->lun);
469 struct scsi_lun lun; local
[all...]
/drivers/scsi/pm8001/
H A Dpm8001_sas.c873 u8 *lun, struct pm8001_tmf_task *tmf)
879 strncpy((u8 *)&ssp_task.LUN, lun, 8);
998 int pm8001_lu_reset(struct domain_device *dev, u8 *lun) argument
1015 rc = pm8001_issue_ssp_tmf(dev, lun, &tmf_task);
1028 struct scsi_lun lun; local
1040 int_to_scsilun(cmnd->device->lun, &lun);
1053 rc = pm8001_issue_ssp_tmf(dev, lun.scsi_lun, &tmf_task);
1082 struct scsi_lun lun; local
1101 int_to_scsilun(cmnd->device->lun,
872 pm8001_issue_ssp_tmf(struct domain_device *dev, u8 *lun, struct pm8001_tmf_task *tmf) argument
1150 pm8001_abort_task_set(struct domain_device *dev, u8 *lun) argument
1160 pm8001_clear_aca(struct domain_device *dev, u8 *lun) argument
1171 pm8001_clear_task_set(struct domain_device *dev, u8 *lun) argument
[all...]
/drivers/staging/rts5139/
H A Drts51x_scsi.c337 void set_sense_type(struct rts51x_chip *chip, unsigned int lun, int sense_type) argument
341 set_sense_data(chip, lun, CUR_ERR, 0x06, 0, 0x28, 0, 0, 0);
345 set_sense_data(chip, lun, CUR_ERR, 0x02, 0, 0x3A, 0, 0, 0);
349 set_sense_data(chip, lun, CUR_ERR, 0x05, 0, 0x21, 0, 0, 0);
353 set_sense_data(chip, lun, CUR_ERR, 0x05, 0, 0x25, 0, 0, 0);
357 set_sense_data(chip, lun, CUR_ERR, 0x07, 0, 0x27, 0, 0, 0);
361 set_sense_data(chip, lun, CUR_ERR, 0x03, 0, 0x11, 0, 0, 0);
365 set_sense_data(chip, lun, CUR_ERR, 0x03, 0, 0x0C, 0x02, 0, 0);
369 set_sense_data(chip, lun, CUR_ERR, ILGAL_REQ, 0,
374 set_sense_data(chip, lun, CUR_ER
412 set_sense_data(struct rts51x_chip *chip, unsigned int lun, u8 err_code, u8 sense_key, u32 info, u8 asc, u8 ascq, u8 sns_key_info0, u16 sns_key_info1) argument
437 unsigned int lun = SCSI_LUN(srb); local
480 unsigned int lun = SCSI_LUN(srb); local
545 unsigned int lun = SCSI_LUN(srb); local
595 ms_mode_sense(struct rts51x_chip *chip, u8 cmd, int lun, u8 *buf, int buf_len) argument
686 unsigned int lun = SCSI_LUN(srb); local
771 unsigned int lun = SCSI_LUN(srb); local
803 unsigned int lun = SCSI_LUN(srb); local
911 unsigned int lun = SCSI_LUN(srb); local
988 unsigned int lun = SCSI_LUN(srb); local
1025 unsigned int lun = SCSI_LUN(srb); local
1042 unsigned int lun = SCSI_LUN(srb); local
1055 unsigned int lun = SCSI_LUN(srb); local
1096 unsigned int lun = SCSI_LUN(srb); local
1138 unsigned int lun = SCSI_LUN(srb); local
1235 unsigned int lun = SCSI_LUN(srb); local
1293 unsigned int lun = SCSI_LUN(srb); local
1470 unsigned int lun = SCSI_LUN(srb); local
1522 unsigned int lun = SCSI_LUN(srb); local
1628 unsigned int lun = SCSI_LUN(srb); local
1683 unsigned int lun = SCSI_LUN(srb); local
1770 unsigned int lun = SCSI_LUN(srb); local
1878 unsigned int lun = SCSI_LUN(srb); local
[all...]
H A Dxd.c1954 unsigned int lun = SCSI_LUN(srb); local
1991 set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT);
2015 set_sense_type(chip, lun,
2031 set_sense_type(chip, lun,
2039 set_sense_type(chip, lun,
2050 set_sense_type(chip, lun,
2054 set_sense_type(chip, lun,
2063 set_sense_type(chip, lun,
2067 set_sense_type(chip, lun,
2074 set_sense_type(chip, lun,
[all...]
/drivers/staging/rts_pstor/
H A Drtsx_card.c1029 unsigned int lun = SCSI_LUN(srb); local
1032 if (chip->rw_card[lun] == NULL) {
1039 retval = chip->rw_card[lun](srb, chip, sec_addr, sec_cnt);
1179 int check_card_exist(struct rtsx_chip *chip, unsigned int lun) argument
1181 if (chip->card_exist & chip->lun2card[lun]) {
1188 int check_card_ready(struct rtsx_chip *chip, unsigned int lun) argument
1190 if (chip->card_ready & chip->lun2card[lun]) {
1197 int check_card_wp(struct rtsx_chip *chip, unsigned int lun) argument
1199 if (chip->card_wp & chip->lun2card[lun]) {
1206 int check_card_fail(struct rtsx_chip *chip, unsigned int lun) argument
1215 check_card_ejected(struct rtsx_chip *chip, unsigned int lun) argument
1224 get_lun_card(struct rtsx_chip *chip, unsigned int lun) argument
1237 eject_card(struct rtsx_chip *chip, unsigned int lun) argument
[all...]
H A Dxd.c1751 unsigned int lun = SCSI_LUN(srb); local
1777 set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT);
1790 set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT);
1807 set_sense_type(chip, lun, SENSE_TYPE_MEDIA_WRITE_ERR);
1822 set_sense_type(chip, lun, SENSE_TYPE_MEDIA_WRITE_ERR);
1829 set_sense_type(chip, lun, SENSE_TYPE_MEDIA_WRITE_ERR);
1836 set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT);
1839 set_sense_type(chip, lun, SENSE_TYPE_MEDIA_WRITE_ERR);
1850 set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT);
1853 set_sense_type(chip, lun, SENSE_TYPE_MEDIA_UNRECOVER_READ_ER
[all...]
/drivers/target/
H A Dtarget_core_device.c236 struct se_lun *lun; local
248 lun = deve->se_lun;
249 if (!lun) {
255 port = lun->lun_sep;
281 struct se_lun *lun; local
300 lun = deve->se_lun;
303 core_update_device_list_for_node(lun, NULL, deve->mapped_lun,
350 struct se_lun *lun,
358 struct se_port *port = lun->lun_sep;
396 if (deve->se_lun != lun) {
349 core_update_device_list_for_node( struct se_lun *lun, struct se_lun_acl *lun_acl, u32 mapped_lun, u32 lun_access, struct se_node_acl *nacl, struct se_portal_group *tpg, int enable) argument
461 core_clear_lun_from_tpg(struct se_lun *lun, struct se_portal_group *tpg) argument
543 core_export_port( struct se_device *dev, struct se_portal_group *tpg, struct se_port *port, struct se_lun *lun) argument
604 core_dev_export( struct se_device *dev, struct se_portal_group *tpg, struct se_lun *lun) argument
623 core_dev_unexport( struct se_device *dev, struct se_portal_group *tpg, struct se_lun *lun) argument
1337 core_dev_add_lun( struct se_portal_group *tpg, struct se_hba *hba, struct se_device *dev, u32 lun) argument
1400 struct se_lun *lun; local
1418 struct se_lun *lun; local
1451 struct se_lun *lun; local
1519 struct se_lun *lun; local
1568 core_dev_del_initiator_node_lun_acl( struct se_portal_group *tpg, struct se_lun *lun, struct se_lun_acl *lacl) argument
[all...]
H A Dtarget_core_fabric_configfs.c68 struct se_lun *lun = container_of(to_config_group(lun_ci), local
78 if (!lun->lun_sep || !lun->lun_sep->sep_tpg) {
79 pr_err("Source se_lun->lun_sep or lun->lun_sep->sep"
83 se_tpg = lun->lun_sep->sep_tpg;
124 * iscsi/$IQN/$TPGT/lun/lun_* as on their SCSI Initiator Ports.
127 lun->unpacked_lun, lun_access);
136 struct se_lun *lun; local
148 lun = container_of(to_config_group(lun_ci), struct se_lun, lun_group);
149 se_tpg = lun
621 target_fabric_port_show_attr_alua_tg_pt_gp( struct se_lun *lun, char *page) argument
631 target_fabric_port_store_attr_alua_tg_pt_gp( struct se_lun *lun, const char *page, size_t count) argument
647 target_fabric_port_show_attr_alua_tg_pt_offline( struct se_lun *lun, char *page) argument
657 target_fabric_port_store_attr_alua_tg_pt_offline( struct se_lun *lun, const char *page, size_t count) argument
673 target_fabric_port_show_attr_alua_tg_pt_status( struct se_lun *lun, char *page) argument
683 target_fabric_port_store_attr_alua_tg_pt_status( struct se_lun *lun, const char *page, size_t count) argument
699 target_fabric_port_show_attr_alua_tg_pt_write_md( struct se_lun *lun, char *page) argument
709 target_fabric_port_store_attr_alua_tg_pt_write_md( struct se_lun *lun, const char *page, size_t count) argument
739 struct se_lun *lun = container_of(to_config_group(lun_ci), local
793 struct se_lun *lun = container_of(to_config_group(lun_ci), local
853 struct se_lun *lun; local
909 struct se_lun *lun = container_of(to_config_group(item), local
[all...]
/drivers/block/
H A Dcciss_scsi.c351 find_bus_target_lun(ctlr_info_t *h, int *bus, int *target, int *lun) argument
353 /* finds an unused bus, target, lun for a new device */
366 *bus = 0; *target=i; *lun = 0; found=1;
374 int bus, target, lun; member in struct:scsi2map
385 int i, bus, target, lun; local
395 lun = 0;
396 /* Is this device a non-zero lun of a multi-lun device */
413 lun = device->scsi3addr[4];
420 if (lun
681 lookup_scsi3addr(ctlr_info_t *h, int bus, int target, int lun, char *scsi3addr) argument
[all...]
/drivers/message/fusion/
H A Dmptctl.h369 unsigned int lun; member in struct:_hp_header
378 * lun ignored
429 * lun ignored
/drivers/scsi/bfa/
H A Dbfa_fcpim.h203 struct scsi_lun lun; /* lun if applicable */ member in struct:bfa_tskim_s
405 struct bfa_itnim_s *itnim, struct scsi_lun lun,
415 wwn_t *pwwn, wwn_t rpwwn, struct scsi_lun lun);
417 wwn_t *pwwn, wwn_t rpwwn, struct scsi_lun lun);

Completed in 418 milliseconds

1234567