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

1234567891011

/drivers/target/
H A Dtarget_core_tpg.c60 struct se_lun *lun; local
76 lun = deve->se_lun;
78 core_disable_device_list_for_node(lun, NULL, deve->mapped_lun,
132 struct se_lun *lun; local
137 lun = tpg->tpg_lun_list[i];
138 if (lun->lun_status != TRANSPORT_LUN_STATUS_ACTIVE)
143 dev = lun->lun_se_dev;
164 tpg->se_tpg_tfo->tpg_get_tag(tpg), lun->unpacked_lun,
168 core_enable_device_list_for_node(lun, NULL, lun
335 struct se_lun *lun; local
645 struct se_lun *lun = container_of(ref, struct se_lun, lun_ref); local
654 struct se_lun *lun = &se_tpg->tpg_virt_lun0; local
681 struct se_lun *lun; local
789 struct se_lun *lun; local
815 core_tpg_add_lun( struct se_portal_group *tpg, struct se_lun *lun, u32 lun_access, struct se_device *dev) argument
842 core_tpg_remove_lun( struct se_portal_group *tpg, struct se_lun *lun) argument
[all...]
H A Dtarget_core_fabric_configfs.c66 struct se_lun *lun = container_of(to_config_group(lun_ci), local
74 if (lun->lun_link_magic != SE_LUN_LINK_MAGIC) {
75 pr_err("Bad lun->lun_link_magic, not a valid lun_ci pointer:"
76 " %p to struct lun: %p\n", lun_ci, lun);
82 if (!lun->lun_sep || !lun->lun_sep->sep_tpg) {
83 pr_err("Source se_lun->lun_sep or lun->lun_sep->sep"
87 se_tpg = lun->lun_sep->sep_tpg;
128 * iscsi/$IQN/$TPGT/lun/lun
140 struct se_lun *lun; local
639 target_fabric_port_show_attr_alua_tg_pt_gp( struct se_lun *lun, char *page) argument
649 target_fabric_port_store_attr_alua_tg_pt_gp( struct se_lun *lun, const char *page, size_t count) argument
665 target_fabric_port_show_attr_alua_tg_pt_offline( struct se_lun *lun, char *page) argument
675 target_fabric_port_store_attr_alua_tg_pt_offline( struct se_lun *lun, const char *page, size_t count) argument
691 target_fabric_port_show_attr_alua_tg_pt_status( struct se_lun *lun, char *page) argument
701 target_fabric_port_store_attr_alua_tg_pt_status( struct se_lun *lun, const char *page, size_t count) argument
717 target_fabric_port_show_attr_alua_tg_pt_write_md( struct se_lun *lun, char *page) argument
727 target_fabric_port_store_attr_alua_tg_pt_write_md( struct se_lun *lun, const char *page, size_t count) argument
756 struct se_lun *lun = container_of(to_config_group(lun_ci), local
811 struct se_lun *lun = container_of(to_config_group(lun_ci), local
871 struct se_lun *lun; local
926 struct se_lun *lun = container_of(to_config_group(item), local
[all...]
H A Dtarget_core_stat.c295 DEV_STAT_SCSI_LU_ATTR_RO(lun); variable
545 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); local
547 struct se_device *dev = lun->lun_se_dev;
551 spin_lock(&lun->lun_sep_lock);
552 sep = lun->lun_sep;
554 spin_unlock(&lun->lun_sep_lock);
559 spin_unlock(&lun->lun_sep_lock);
567 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); local
569 struct se_device *dev = lun->lun_se_dev;
572 spin_lock(&lun
587 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); local
606 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); local
629 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); local
688 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); local
710 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); local
730 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); local
749 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); local
772 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); local
796 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); local
816 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); local
837 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); local
858 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); local
924 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); local
947 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); local
970 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); local
992 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); local
1043 target_stat_setup_port_default_groups(struct se_lun *lun) argument
1110 struct se_lun *lun; local
1476 struct se_lun *lun; local
[all...]
H A Dtarget_core_device.c198 struct se_lun *lun; local
210 lun = deve->se_lun;
211 if (!lun) {
217 port = lun->lun_sep;
242 struct se_lun *lun; local
261 lun = deve->se_lun;
264 core_disable_device_list_for_node(lun, NULL, deve->mapped_lun,
300 struct se_lun *lun,
307 struct se_port *port = lun->lun_sep;
327 if (deve->se_lun != lun) {
299 core_enable_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) argument
376 core_disable_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) argument
430 core_clear_lun_from_tpg(struct se_lun *lun, struct se_portal_group *tpg) argument
512 core_export_port( struct se_device *dev, struct se_portal_group *tpg, struct se_port *port, struct se_lun *lun) argument
573 core_dev_export( struct se_device *dev, struct se_portal_group *tpg, struct se_lun *lun) argument
595 core_dev_unexport( struct se_device *dev, struct se_portal_group *tpg, struct se_lun *lun) argument
1227 struct se_lun *lun; local
1269 core_dev_del_lun( struct se_portal_group *tpg, struct se_lun *lun) argument
1283 struct se_lun *lun; local
1316 struct se_lun *lun; local
1379 struct se_lun *lun; local
1428 core_dev_del_initiator_node_lun_acl( struct se_portal_group *tpg, struct se_lun *lun, struct se_lun_acl *lacl) argument
[all...]
/drivers/block/
H A Dcciss_scsi.h63 int bus, target, lun; /* as presented to the OS */ member in struct:cciss_scsi_dev_t
/drivers/scsi/aic94xx/
H A Daic94xx.h87 int asd_abort_task_set(struct domain_device *, u8 *lun);
88 int asd_clear_aca(struct domain_device *, u8 *lun);
89 int asd_clear_task_set(struct domain_device *, u8 *lun);
90 int asd_lu_reset(struct domain_device *, u8 *lun);
H A Daic94xx_tmf.c220 static int asd_clear_nexus_I_T_L(struct domain_device *dev, u8 *lun) argument
227 memcpy(scb->clear_nexus.ssp_task.lun, lun, 8);
240 memcpy(scb->clear_nexus.ssp_task.lun, task->ssp_task.LUN, 8);
462 memcpy(scb->abort_task.ssp_task.lun, task->ssp_task.LUN, 8);
563 * @lun: pointer to u8[8] which is the LUN
575 static int asd_initiate_ssp_tmf(struct domain_device *dev, u8 *lun, argument
611 memcpy(scb->ssp_tmf.ssp_task.lun, lun, 8);
657 int asd_abort_task_set(struct domain_device *dev, u8 *lun) argument
666 asd_clear_aca(struct domain_device *dev, u8 *lun) argument
675 asd_clear_task_set(struct domain_device *dev, u8 *lun) argument
684 asd_lu_reset(struct domain_device *dev, u8 *lun) argument
[all...]
/drivers/scsi/isci/
H A Dtask.h93 unsigned char lun[8]; member in struct:isci_tmf
142 u8 *lun);
146 u8 *lun);
150 u8 *lun);
157 u8 *lun);
/drivers/usb/gadget/function/
H A Dstorage_common.h17 #define VLDBG(lun, fmt, args...) do { } while (0)
20 #define _LMSG(func, lun, fmt, args...) \
22 if ((lun)->name_pfx && *(lun)->name_pfx) \
23 func("%s/%s: " fmt, *(lun)->name_pfx, \
24 (lun)->name, ## args); \
26 func("%s: " fmt, (lun)->name, ## args); \
29 #define LDBG(lun, fmt, args...) _LMSG(pr_debug, lun, fmt, ## args)
30 #define LERROR(lun, fm
[all...]
/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
171 (u8)(q->SCpnt->device->lun & 0x7), exclude)) {
201 * Function: struct scsi_cmnd *queue_remove_tgtluntag (queue, target, lun, tag)
202 * Purpose : remove a SCSI command from the queue for a specified target/lun/tag
205 * lun - lun on device
209 struct scsi_cmnd *queue_remove_tgtluntag(Queue_t *queue, int target, int lun, argument
219 if (q->SCpnt->device->id == target && q->SCpnt->device->lun == lun &&
252 * Function: int queue_probetgtlun (queue, target, lun)
260 queue_probetgtlun(Queue_t *queue, int target, int lun) argument
[all...]
/drivers/staging/rts5208/
H A Drtsx_scsi.c327 void set_sense_type(struct rtsx_chip *chip, unsigned int lun, int sense_type) argument
331 set_sense_data(chip, lun, CUR_ERR, 0x06, 0, 0x28, 0, 0, 0);
335 set_sense_data(chip, lun, CUR_ERR, 0x02, 0, 0x3A, 0, 0, 0);
339 set_sense_data(chip, lun, CUR_ERR, 0x05, 0, 0x21, 0, 0, 0);
343 set_sense_data(chip, lun, CUR_ERR, 0x05, 0, 0x25, 0, 0, 0);
347 set_sense_data(chip, lun, CUR_ERR, 0x07, 0, 0x27, 0, 0, 0);
351 set_sense_data(chip, lun, CUR_ERR, 0x03, 0, 0x11, 0, 0, 0);
355 set_sense_data(chip, lun, CUR_ERR, 0x03, 0, 0x0C, 0x02, 0, 0);
359 set_sense_data(chip, lun, CUR_ERR, ILGAL_REQ, 0,
364 set_sense_data(chip, lun, CUR_ER
402 set_sense_data(struct rtsx_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
427 unsigned int lun = SCSI_LUN(srb); local
479 unsigned int lun = SCSI_LUN(srb); local
567 unsigned int lun = SCSI_LUN(srb); local
621 unsigned int lun = SCSI_LUN(srb); local
663 ms_mode_sense(struct rtsx_chip *chip, u8 cmd, int lun, u8 *buf, int buf_len) argument
758 unsigned int lun = SCSI_LUN(srb); local
858 unsigned int lun = SCSI_LUN(srb); local
988 unsigned int lun = SCSI_LUN(srb); local
1066 unsigned int lun = SCSI_LUN(srb); local
1314 unsigned int lun = SCSI_LUN(srb); local
1480 unsigned lun = SCSI_LUN(srb); local
1542 unsigned int lun = SCSI_LUN(srb); local
1585 unsigned int lun = SCSI_LUN(srb); local
1626 unsigned int lun = SCSI_LUN(srb); local
1806 unsigned int lun = SCSI_LUN(srb); local
2498 unsigned int lun = SCSI_LUN(srb); local
2625 unsigned int lun = SCSI_LUN(srb); local
2650 unsigned int lun = SCSI_LUN(srb); local
2778 unsigned int lun = SCSI_LUN(srb); local
2800 unsigned int lun = SCSI_LUN(srb); local
2863 unsigned int lun = SCSI_LUN(srb); local
2972 unsigned int lun = SCSI_LUN(srb); local
3032 unsigned int lun = SCSI_LUN(srb); local
3131 unsigned int lun = SCSI_LUN(srb); local
3253 unsigned int lun = SCSI_LUN(srb); local
[all...]
H A Drtsx_card.c932 unsigned int lun = SCSI_LUN(srb); local
935 if (chip->rw_card[lun] == NULL)
941 retval = chip->rw_card[lun](srb, chip, sec_addr, sec_cnt);
1080 int check_card_exist(struct rtsx_chip *chip, unsigned int lun) argument
1082 if (chip->card_exist & chip->lun2card[lun])
1088 int check_card_ready(struct rtsx_chip *chip, unsigned int lun) argument
1090 if (chip->card_ready & chip->lun2card[lun])
1096 int check_card_wp(struct rtsx_chip *chip, unsigned int lun) argument
1098 if (chip->card_wp & chip->lun2card[lun])
1104 int check_card_fail(struct rtsx_chip *chip, unsigned int lun) argument
1112 check_card_ejected(struct rtsx_chip *chip, unsigned int lun) argument
1120 get_lun_card(struct rtsx_chip *chip, unsigned int lun) argument
1132 eject_card(struct rtsx_chip *chip, unsigned int lun) argument
[all...]
/drivers/scsi/
H A Dscsi_scan.c211 * @lun: which lun
216 * Stores the @shost, @channel, @id, and @lun in the scsi_Device, and
223 u64 lun, void *hostdata)
242 sdev->lun = lun;
558 * Probe the lun associated with @req using a standard SCSI INQUIRY;
824 if (scsi_is_wlun(sdev->lun) && sdev->type != TYPE_WLUN) {
827 __func__, sdev->type, (unsigned int)sdev->lun);
1027 * @lun
222 scsi_alloc_sdev(struct scsi_target *starget, u64 lun, void *hostdata) argument
1043 scsi_probe_and_add_lun(struct scsi_target *starget, u64 lun, int *bflagsp, struct scsi_device **sdevp, int rescan, void *hostdata) argument
1198 u64 sparse_lun, lun; local
1292 u64 lun; local
1317 int_to_scsilun(u64 lun, struct scsi_lun *scsilun) argument
1357 u64 lun; local
1537 __scsi_add_device(struct Scsi_Host *shost, uint channel, uint id, u64 lun, void *hostdata) argument
1573 scsi_add_device(struct Scsi_Host *host, uint channel, uint target, u64 lun) argument
1602 __scsi_scan_target(struct device *parent, unsigned int channel, unsigned int id, u64 lun, int rescan) argument
1670 scsi_scan_target(struct device *parent, unsigned int channel, unsigned int id, u64 lun, int rescan) argument
1690 scsi_scan_channel(struct Scsi_Host *shost, unsigned int channel, unsigned int id, u64 lun, int rescan) argument
1721 scsi_scan_host_selected(struct Scsi_Host *shost, unsigned int channel, unsigned int id, u64 lun, int rescan) argument
[all...]
H A Datari_NCR5380.c334 int target, lun; local
341 for (lun = 0; lun < 8; ++lun) {
342 ta = &TagAlloc[target][lun];
364 u8 lun = cmd->device->lun; local
367 if (hostdata->busy[cmd->device->id] & (1 << lun))
372 if (TagAlloc[cmd->device->id][lun].nr_allocated >=
373 TagAlloc[cmd->device->id][lun]
389 u8 lun = cmd->device->lun; local
421 u8 lun = cmd->device->lun; local
443 int target, lun; local
1066 u8 lun = tmp->device->lun; local
2470 unsigned char lun, phase; local
[all...]
H A Dscsi_proc.c189 sdev->host->host_no, sdev->channel, sdev->id, sdev->lun);
232 * @lun: user-supplied decimal integer
242 static int scsi_add_single_device(uint host, uint channel, uint id, uint lun) argument
252 error = shost->transportt->user_scan(shost, channel, id, lun);
254 error = scsi_scan_host_selected(shost, channel, id, lun, 1);
264 * @lun: user-supplied decimal integer
269 static int scsi_remove_single_device(uint host, uint channel, uint id, uint lun) argument
278 sdev = scsi_device_lookup(shost, channel, id, lun);
311 int host, channel, id, lun; local
342 lun
[all...]
H A Dsun3_NCR5380.c328 int target, lun; local
335 for( lun = 0; lun < 8; ++lun ) {
336 ta = &TagAlloc[target][lun];
358 u8 lun = cmd->device->lun; local
361 if (hostdata->busy[cmd->device->id] & (1 << lun))
366 if (TagAlloc[cmd->device->id][lun].nr_allocated >=
367 TagAlloc[cmd->device->id][lun]
383 u8 lun = cmd->device->lun; local
416 u8 lun = cmd->device->lun; local
440 int target, lun; local
2436 unsigned char lun; local
[all...]
H A Dvirtio_scsi.c323 unsigned int target = event->lun[1];
324 unsigned int lun = (event->lun[2] << 8) | event->lun[3]; local
328 scsi_add_device(shost, 0, target, lun);
331 sdev = scsi_device_lookup(shost, 0, target, lun);
337 shost->host_no, target, lun);
350 unsigned int target = event->lun[1];
351 unsigned int lun = (event->lun[ local
[all...]
/drivers/s390/scsi/
H A Dzfcp_unit.c24 u64 lun; local
26 lun = scsilun_to_int((struct scsi_lun *) &unit->fcp_lun);
29 scsi_scan_target(&rport->dev, 0, rport->scsi_target_id, lun, 1);
191 u64 lun; local
193 lun = scsilun_to_int((struct scsi_lun *) &unit->fcp_lun);
196 return scsi_device_lookup(shost, 0, port->starget_id, lun);
/drivers/scsi/aic7xxx/
H A Dscsi_message.h47 #define MSG_IDENTIFY(lun, disc) (((disc) ? 0xc0 : MSG_IDENTIFYFLAG) | (lun))
H A Daic79xx_proc.c165 int lun; local
181 for (lun = 0; lun < AHD_NUM_LUNS; lun++) {
184 dev = scsi_device_lookup_by_target(starget, lun);
200 sdev->sdev_target->id, (u8)sdev->lun);
H A Daic7xxx_proc.c141 int lun; local
159 for (lun = 0; lun < AHC_NUM_LUNS; lun++) {
162 sdev = scsi_device_lookup_by_target(starget, lun);
178 sdev->sdev_target->id, (u8)sdev->lun);
/drivers/usb/storage/
H A Drealtek_cr.c75 #define SET_LUN_READY(chip, lun) ((chip)->lun_ready |= ((u8)1 << (lun)))
76 #define CLR_LUN_READY(chip, lun) ((chip)->lun_ready &= ~((u8)1 << (lun)))
77 #define TST_LUN_READY(chip, lun) ((chip)->lun_ready & ((u8)1 << (lun)))
125 #define SCSI_LUN(srb) ((srb)->device->lun)
209 static int rts51x_bulk_transport(struct us_data *us, u8 lun, argument
225 bcb->Lun = lun;
296 static int rts51x_bulk_transport_special(struct us_data *us, u8 lun, argument
424 rts51x_read_status(struct us_data *us, u8 lun, u8 *status, int len, int *actlen) argument
452 rts51x_check_status(struct us_data *us, u8 lun) argument
[all...]
/drivers/message/i2o/
H A Di2o_scsi.c20 * o Each (bus,lun) is a logical device in I2O. We keep a map
81 u64 lun; /* lun's used for block devices */ member in struct:i2o_scsi_host
141 i2o_shost->lun = 1;
206 * Retrieve channel, id and lun for I2O device. If everything goes well
220 u64 lun = -1; local
244 lun =
246 lun++);
248 lun = 0;
258 if (i2o_parm_field_get(i2o_dev, 0x0000, 4, &lun,
[all...]
/drivers/scsi/fnic/
H A Dfcpio.h111 FCPIO_NO_PATH_AVAIL, /* no paths to the lun was available */
217 u8 lun[LUN_ADDRESS]; /* FC vNIC only: LUN address */ member in struct:fcpio_icmnd_16
265 u8 lun[LUN_ADDRESS]; /* FC vNIC only: LUN address */ member in struct:fcpio_icmnd_32
287 u8 lun[LUN_ADDRESS]; /* FC vNIC only: LUN address */ member in struct:fcpio_itmf
532 u8 lun[LUN_ADDRESS]; /* FC vNIC only: LUN address */ member in struct:fcpio_tcmnd_16
565 u8 lun[LUN_ADDRESS]; /* FC vNIC only: LUN address */ member in struct:fcpio_tcmnd_32
596 u8 lun[LUN_ADDRESS]; /* FC vNIC only: LUN address */ member in struct:fcpio_ttmf
769 u8 lun; member in struct:fcpio_lunmap_entry

Completed in 421 milliseconds

1234567891011