| /linux/drivers/target/ |
| H A D | target_core_tpg.c | 110 struct se_lun *lun; in core_tpg_add_node_to_devs() local 114 hlist_for_each_entry_rcu(lun, &tpg->tpg_lun_hlist, link) { in core_tpg_add_node_to_devs() 115 if (lun_orig && lun != lun_orig) in core_tpg_add_node_to_devs() 118 dev = rcu_dereference_check(lun->lun_se_dev, in core_tpg_add_node_to_devs() 140 tpg->se_tpg_tfo->tpg_get_tag(tpg), lun->unpacked_lun, in core_tpg_add_node_to_devs() 143 core_enable_device_list_for_node(lun, NULL, lun->unpacked_lun, in core_tpg_add_node_to_devs() 150 core_scsi3_check_aptpl_registration(dev, tpg, lun, acl, in core_tpg_add_node_to_devs() 151 lun->unpacked_lun); in core_tpg_add_node_to_devs() 446 struct se_lun *lun in target_tpg_register_rtpi() 438 struct se_lun *lun = container_of(ref, struct se_lun, lun_ref); core_tpg_lun_ref_release() local 611 struct se_lun *lun; core_tpg_alloc_lun() local 646 struct se_lun *lun = container_of(head, struct se_lun, rcu_head); target_tpg_free_lun() local 654 core_tpg_add_lun(struct se_portal_group * tpg,struct se_lun * lun,bool lun_access_ro,struct se_device * dev) core_tpg_add_lun() argument 694 core_tpg_remove_lun(struct se_portal_group * tpg,struct se_lun * lun) core_tpg_remove_lun() argument [all...] |
| H A D | target_core_stat.c | 349 CONFIGFS_ATTR_RO(target_stat_lu_, lun); 427 struct se_lun *lun = to_stat_port(item); in target_stat_port_inst_show() local 432 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_inst_show() 441 struct se_lun *lun = to_stat_port(item); in target_stat_port_dev_show() local 446 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_dev_show() 455 struct se_lun *lun = to_stat_port(item); in target_stat_port_indx_show() local 460 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_indx_show() 462 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_tpg->tpg_rtpi); in target_stat_port_indx_show() 469 struct se_lun *lun = to_stat_port(item); in target_stat_port_role_show() local 474 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_role_show() [all …]
|
| /linux/drivers/scsi/ |
| H A D | scsi_common.c | 133 u64 lun; in scsilun_to_int() local 135 lun = 0; in scsilun_to_int() 136 for (i = 0; i < sizeof(lun); i += 2) in scsilun_to_int() 137 lun = lun | (((u64)scsilun->scsi_lun[i] << ((i + 1) * 8)) | in scsilun_to_int() 139 return lun; in scsilun_to_int() 145 * @lun: integer to be reverted 150 * an 8-byte lun value into an int. This routine unpacks the int 151 * back into the lun value. 158 void int_to_scsilun(u64 lun, struc argument [all...] |
| H A D | sd_trace.h | 27 __field( unsigned int, lun ) 36 __entry->lun = cmnd->device->lun; 43 __entry->lun, __entry->lba, __entry->wp_offset) 57 __field( unsigned int, lun ) 67 __entry->lun = cmnd->device->lun; 76 __entry->lun, __entry->rq_sector, __entry->wp_offset,
|
| H A D | scsi_scan.c | 269 * @lun: which lun 274 * Stores the @shost, @channel, @id, and @lun in the scsi_Device, and 281 u64 lun, void *hostdata) in scsi_alloc_sdev() argument 301 sdev->lun = lun; in scsi_alloc_sdev() 640 * Probe the lun associated with @req using a standard SCSI INQUIRY; 945 if (scsi_is_wlun(sdev->lun) && sdev->type != TYPE_WLUN) { in scsi_add_lun() 948 __func__, sdev->type, (unsigned int)sdev->lun); in scsi_add_lun() 1173 * @lun 1194 scsi_probe_and_add_lun(struct Scsi_Host * shost,struct scsi_target * starget,u64 lun,blist_flags_t * bflagsp,struct scsi_device ** sdevp,enum scsi_scan_mode rescan,void * hostdata) scsi_probe_and_add_lun() argument 1359 u64 sparse_lun, lun; scsi_sequential_lun_scan() local 1453 u64 lun; scsi_report_lun_scan() local 1631 __scsi_add_device(struct Scsi_Host * shost,uint channel,uint id,u64 lun,void * hostdata) __scsi_add_device() argument 1686 scsi_add_device(struct Scsi_Host * host,uint channel,uint target,u64 lun) scsi_add_device() argument 1773 __scsi_scan_target(struct Scsi_Host * shost,struct device * parent,unsigned int channel,unsigned int id,u64 lun,enum scsi_scan_mode rescan) __scsi_scan_target() argument 1847 scsi_scan_target(struct device * parent,unsigned int channel,unsigned int id,u64 lun,enum scsi_scan_mode rescan) scsi_scan_target() argument 1871 scsi_scan_channel(struct Scsi_Host * shost,unsigned int channel,unsigned int id,u64 lun,enum scsi_scan_mode rescan) scsi_scan_channel() argument 1904 scsi_scan_host_selected(struct Scsi_Host * shost,unsigned int channel,unsigned int id,u64 lun,enum scsi_scan_mode rescan) scsi_scan_host_selected() argument [all...] |
| H A D | 53c700.c | 434 NCR_700_identify(int can_disconnect, __u8 lun) in NCR_700_identify() argument 438 (lun & NCR_700_LUN_MASK); in NCR_700_identify() 799 __u8 pun = 0xff, lun = 0xff; in process_extended_message() local 803 lun = SCp->device->lun; in process_extended_message() 848 host->host_no, pun, lun); in process_extended_message() 858 host->host_no, pun, lun, in process_extended_message() 880 __u8 pun = 0xff, lun = 0xff; in process_message() local 884 lun = SCp->device->lun; in process_message() 968 __u8 pun = 0xff, lun=0xff; process_script_interrupt() local 1103 __u8 lun; process_script_interrupt() local 1408 u8 lun = SCp->device->lun; NCR_700_start_command() local 1493 __u8 pun = 0xff, lun = 0xff; NCR_700_intr() local [all...] |
| H A D | scsi_proc.c | 286 sdev->host->host_no, sdev->channel, sdev->id, sdev->lun); in proc_print_scsidevice() 329 * @lun: user-supplied decimal integer 339 static int scsi_add_single_device(uint host, uint channel, uint id, uint lun) in scsi_add_single_device() 349 error = shost->transportt->user_scan(shost, channel, id, lun); in scsi_add_single_device() 351 error = scsi_scan_host_selected(shost, channel, id, lun, in scsi_add_single_device() 362 * @lun: user-supplied decimal integer 367 static int scsi_remove_single_device(uint host, uint channel, uint id, uint lun) in scsi_remove_single_device() 376 sdev = scsi_device_lookup(shost, channel, id, lun); in scsi_remove_single_device() 409 int host, channel, id, lun; in proc_scsi_write() 444 lun in proc_scsi_write() 338 scsi_add_single_device(uint host,uint channel,uint id,uint lun) scsi_add_single_device() argument 366 scsi_remove_single_device(uint host,uint channel,uint id,uint lun) scsi_remove_single_device() argument 408 int host, channel, id, lun; proc_scsi_write() local [all...] |
| H A D | qla1280.h | 513 uint8_t lun; /* SCSI LUN */ member 599 uint8_t lun; /* SCSI LUN */ member 620 uint8_t lun; /* SCSI LUN */ member 640 uint8_t lun; /* SCSI LUN */ member 686 __le16 lun; /* Bit 15 is bus number. */ member 714 uint8_t lun; /* SCSI LUN */ member 739 uint8_t lun; member 765 uint8_t lun; member 786 uint8_t lun; member 809 uint8_t lun; /* SCSI LUN */ member [all …]
|
| H A D | ch.c | 245 cmd[1] = ((ch->device->lun & 0x7) << 5) | in ch_read_element_status() 282 cmd[1] = (ch->device->lun & 0x7) << 5; 293 int result,id,lun,i; in ch_init_elem() 302 cmd[1] = (ch->device->lun & 0x7) << 5; in ch_readconfig() local 361 lun = 0; in ch_readconfig() 364 lun = dt_lun[elem]; in ch_readconfig() 379 lun = 0; in ch_readconfig() 381 if (data[6] & 0x10) lun = data[6] & 7; in ch_readconfig() 385 VPRINTK(KERN_CONT, "ID %i, LUN %i, ",id,lun); in ch_readconfig() 388 id, lun); in ch_readconfig() [all...] |
| /linux/drivers/scsi/libsas/ |
| H A D | sas_scsi_host.c | 135 struct scsi_lun lun; in sas_create_task() local 146 int_to_scsilun(cmd->device->lun, &lun); in sas_create_task() 147 memcpy(task->ssp_task.LUN, &lun.scsi_lun, 8); in sas_create_task() 238 cmd->device->lun == my_cmd->device->lun) in sas_scsi_clear_queue_lu() 329 struct scsi_lun lun; in sas_recover_lu() local 333 int_to_scsilun(cmd->device->lun, &lun); in sas_recover_lu() 337 cmd->device->lun); in sas_recover_lu() 391 sas_queue_reset(struct domain_device * dev,int reset_type,u64 lun) sas_queue_reset() argument 462 struct scsi_lun lun; sas_eh_device_reset_handler() local 1111 sas_execute_ssp_tmf(struct domain_device * device,u8 * lun,struct sas_tmf_task * tmf) sas_execute_ssp_tmf() argument 1124 sas_abort_task_set(struct domain_device * dev,u8 * lun) sas_abort_task_set() argument 1134 sas_clear_task_set(struct domain_device * dev,u8 * lun) sas_clear_task_set() argument 1144 sas_lu_reset(struct domain_device * dev,u8 * lun) sas_lu_reset() argument 1162 struct scsi_lun lun; sas_query_task() local 1178 struct scsi_lun lun; sas_abort_task() local [all...] |
| /linux/drivers/usb/storage/ |
| H A D | realtek_cr.c | 67 #define SET_LUN_READY(chip, lun) ((chip)->lun_ready |= ((u8)1 << (lun))) argument 68 #define CLR_LUN_READY(chip, lun) ((chip)->lun_ready &= ~((u8)1 << (lun))) argument 69 #define TST_LUN_READY(chip, lun) ((chip)->lun_ready & ((u8)1 << (lun))) argument 117 #define SCSI_LUN(srb) ((srb)->device->lun) 201 static int rts51x_bulk_transport(struct us_data *us, u8 lun, in rts51x_bulk_transport() argument 217 bcb->Lun = lun; in rts51x_bulk_transport() 291 static int rts51x_bulk_transport_special(struct us_data *us, u8 lun, in rts51x_bulk_transport_special() argument 306 bcb->Lun = lun; in rts51x_bulk_transport_special() 420 u8 lun, u8 *status, int len, int *actlen) in rts51x_read_status() argument 430 usb_stor_dbg(us, "lun = %d\n", lun); in rts51x_read_status() [all …]
|
| H A D | datafab.c | 62 signed char lun; /* used for dual-slot readers */ member 156 if (info->lun == -1) { in datafab_read_data() 186 command[5] = 0xE0 + (info->lun << 4); in datafab_read_data() 240 if (info->lun == -1) { in datafab_write_data() 274 command[5] = 0xE0 + (info->lun << 4); in datafab_write_data() 350 info->lun = 0; in datafab_determine_lun() 365 info->lun = 1; in datafab_determine_lun() 395 if (info->lun == -1) { in datafab_id_device() 406 command[5] += (info->lun << 4); in datafab_id_device() 563 ((struct datafab_info *)us->extra)->lun = -1; in datafab_transport()
|
| /linux/drivers/usb/gadget/function/ |
| H A D | f_mass_storage.c | 259 unsigned int lun; member 1735 unsigned int lun = common->cmnd[1] >> 5; in check_command() 1800 if (common->lun != lun) in check_command() 1802 common->lun, lun); in check_command() 1821 DBG(common, "unsupported LUN %u\n", common->lun); in check_command() 2234 DBG(fsg, "non-meaningful CBW: lun = %u, flags = 0x%x, " in received_cbw() 2259 common->lun = cbw->Lun; in received_cbw() 2260 if (common->lun < ARRAY_SIZ in received_cbw() 1728 unsigned int lun = common->cmnd[1] >> 5; check_command() local 2788 fsg_common_remove_lun(struct fsg_lun * lun) fsg_common_remove_lun() argument 2862 struct fsg_lun *lun = fsg_lun_from_dev(dev); fsg_lun_dev_is_visible() local 2885 struct fsg_lun *lun; fsg_common_create_lun() local 3016 struct fsg_lun *lun = common->luns[i]; fsg_common_release() local 3598 struct fsg_lun_config *lun; fsg_config_from_params() local [all...] |
| /linux/drivers/scsi/aic94xx/ |
| H A D | aic94xx_tmf.c | 201 static int asd_clear_nexus_I_T_L(struct domain_device *dev, u8 *lun) in asd_clear_nexus_I_T_L() argument 208 memcpy(scb->clear_nexus.ssp_task.lun, lun, 8); in asd_clear_nexus_I_T_L() 221 memcpy(scb->clear_nexus.ssp_task.lun, task->ssp_task.LUN, 8); in asd_clear_nexus_tag() 443 memcpy(scb->abort_task.ssp_task.lun, task->ssp_task.LUN, 8); in asd_abort_task() 556 static int asd_initiate_ssp_tmf(struct domain_device *dev, u8 *lun, in asd_initiate_ssp_tmf() argument 592 memcpy(scb->ssp_tmf.ssp_task.lun, lun, 8); in asd_initiate_ssp_tmf() 638 int asd_abort_task_set(struct domain_device *dev, u8 *lun) in asd_abort_task_set() argument 640 int res = asd_initiate_ssp_tmf(dev, lun, TMF_ABORT_TASK_SET, 0); in asd_abort_task_set() 643 asd_clear_nexus_I_T_L(dev, lun); in asd_abort_task_set() 647 int asd_clear_task_set(struct domain_device *dev, u8 *lun) in asd_clear_task_set() argument [all …]
|
| H A D | aic94xx.h | 62 int asd_abort_task_set(struct domain_device *, u8 *lun); 63 int asd_clear_task_set(struct domain_device *, u8 *lun); 64 int asd_lu_reset(struct domain_device *, u8 *lun);
|
| /linux/include/uapi/linux/ |
| H A D | virtio_scsi.h | 45 __u8 lun[8]; /* Logical Unit Number */ member 55 __u8 lun[8]; /* Logical Unit Number */ member 79 __u8 lun[8]; member 90 __u8 lun[8]; member 101 __u8 lun[8]; member
|
| /linux/drivers/s390/scsi/ |
| H A D | zfcp_unit.c | 25 u64 lun; in zfcp_unit_scsi_scan() local 27 lun = scsilun_to_int((struct scsi_lun *) &unit->fcp_lun); in zfcp_unit_scsi_scan() 30 scsi_scan_target(&rport->dev, 0, rport->scsi_target_id, lun, in zfcp_unit_scsi_scan() 199 u64 lun; in zfcp_unit_sdev() local 201 lun = scsilun_to_int((struct scsi_lun *) &unit->fcp_lun); in zfcp_unit_sdev() 204 return scsi_device_lookup(shost, 0, port->starget_id, lun); in zfcp_unit_sdev()
|
| /linux/drivers/scsi/arm/ |
| H A D | queue.c | 172 (u8)(q->SCpnt->device->lun & 0x7), exclude)) { in queue_remove_exclude() 210 struct scsi_cmnd *queue_remove_tgtluntag(Queue_t *queue, int target, int lun, in queue_remove_tgtluntag() argument 220 if (q->SCpnt->device->id == target && q->SCpnt->device->lun == lun && in queue_remove_tgtluntag() 261 int queue_probetgtlun (Queue_t *queue, int target, int lun) in queue_probetgtlun() argument 270 if (q->SCpnt->device->id == target && q->SCpnt->device->lun == lun) { in queue_probetgtlun()
|
| /linux/drivers/scsi/isci/ |
| H A D | task.h | 88 unsigned char lun[8]; member 143 u8 *lun); 147 u8 *lun); 154 u8 *lun);
|
| /linux/drivers/scsi/aic7xxx/ |
| H A D | aic79xx.h | 84 ((scb)->hscb->lun) 104 #define BUILD_TCL(scsiid, lun) \ argument 105 ((lun) | (((scsiid) & TID) << 4)) 106 #define BUILD_TCL_RAW(target, channel, lun) \ argument 107 ((lun) | ((target) << 8)) 117 #define AHD_BUILD_COL_IDX(target, lun) \ argument 118 ((((u8)lun) << 4) | target) 126 (scb)->hscb->lun = ((col_idx) >> 4) & (AHD_NUM_LUNS_NONPKT-1); \ 132 dst->hscb->lun = src->hscb->lun; \ 496 /*20*/ uint8_t lun; member [all …]
|
| H A D | aic79xx_proc.c | 163 int lun; in ahd_dump_target_state() local 179 for (lun = 0; lun < AHD_NUM_LUNS; lun++) { in ahd_dump_target_state() 182 dev = scsi_device_lookup_by_target(starget, lun); in ahd_dump_target_state() 198 sdev->sdev_target->id, (u8)sdev->lun); in ahd_dump_device_state()
|
| H A D | aic7xxx_proc.c | 141 int lun; in ahc_dump_target_state() local 159 for (lun = 0; lun < AHC_NUM_LUNS; lun++) { in ahc_dump_target_state() 162 sdev = scsi_device_lookup_by_target(starget, lun); in ahc_dump_target_state() 178 sdev->sdev_target->id, (u8)sdev->lun); in ahc_dump_device_state()
|
| /linux/include/scsi/ |
| H A D | iscsi_proto.h | 82 struct scsi_lun lun; member 144 struct scsi_lun lun; member 220 struct scsi_lun lun; member 248 struct scsi_lun lun; member 263 struct scsi_lun lun; member 279 struct scsi_lun lun; member 337 struct scsi_lun lun; member 355 struct scsi_lun lun; member 375 struct scsi_lun lun; member 581 uint8_t lun[8]; member
|
| /linux/include/linux/mtd/ |
| H A D | nand.h | 79 unsigned int lun; member 762 pos->lun = do_div(tmp, nand->memorg.luns_per_target); in nanddev_offs_to_pos() 783 if (a->lun != b->lun) in nanddev_pos_cmp() 784 return a->lun < b->lun ? -1 : 1; in nanddev_pos_cmp() 813 (pos->lun + in nanddev_pos_to_offs() 834 return (pos->lun << nand->rowconv.lun_addr_shift) | in nanddev_pos_to_row() 853 pos->lun = 0; in nanddev_pos_next_target() 868 if (pos->lun >= nand->memorg.luns_per_target - 1) in nanddev_pos_next_lun() 871 pos->lun++; in nanddev_pos_next_lun() 1122 ((pos->lun + (pos->target * nand->memorg.luns_per_target)) * in nanddev_bbt_pos_to_entry()
|
| /linux/drivers/scsi/snic/ |
| H A D | snic_res.h | 15 u16 flags, u64 tgt_id, u8 *lun, u8 *scsi_cdb, u8 cdb_len, in snic_icmnd_init() argument 24 memcpy(&req->u.icmnd.lun_id, lun, LUN_ADDR_LEN); in snic_icmnd_init() 36 u16 flags, u32 req_id, u64 tgt_id, u8 *lun, u8 tm_type) in snic_itmf_init() argument 45 memcpy(&req->u.itmf.lun_id, lun, LUN_ADDR_LEN); in snic_itmf_init()
|