| /linux/drivers/target/ |
| A D | target_core_tpg.c | 109 struct se_lun *lun; in core_tpg_add_node_to_devs() local 142 core_enable_device_list_for_node(lun, NULL, lun->unpacked_lun, in core_tpg_add_node_to_devs() 546 struct se_lun *lun; in core_tpg_alloc_lun() local 548 lun = kzalloc(sizeof(*lun), GFP_KERNEL); in core_tpg_alloc_lun() 549 if (!lun) { in core_tpg_alloc_lun() 563 lun->lun_tpg = tpg; in core_tpg_alloc_lun() 565 return lun; in core_tpg_alloc_lun() 570 struct se_lun *lun, in core_tpg_add_lun() argument 616 struct se_lun *lun) in core_tpg_remove_lun() argument 624 lun->lun_shutdown = true; in core_tpg_remove_lun() [all …]
|
| A D | target_core_alua.c | 140 struct se_lun *lun; in target_emulate_report_target_port_groups() local 384 struct se_lun *lun; in target_emulate_set_target_port_groups() local 406 lun, 1, 1)) in target_emulate_set_target_port_groups() 911 struct se_lun *lun; in core_alua_queue_state_change_ua() local 1215 struct se_lun *lun, in core_alua_set_tg_pt_secondary_state() argument 1895 struct se_lun *lun, in core_alua_store_tg_pt_gp_info() argument 2155 struct se_lun *lun, in core_alua_store_offline_bit() argument 2190 struct se_lun *lun, in core_alua_show_secondary_status() argument 2197 struct se_lun *lun, in core_alua_store_secondary_status() argument 2222 struct se_lun *lun, in core_alua_show_secondary_write_metadata() argument [all …]
|
| A D | target_core_stat.c | 345 CONFIGFS_ATTR_RO(target_stat_lu_, lun); 428 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_inst_show() 442 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_dev_show() 582 lun->lun_rtpi); in target_stat_tgt_port_name_show() 827 &lun->port_stat_grps.stat_group); in target_stat_setup_port_default_groups() 832 &lun->port_stat_grps.stat_group); in target_stat_setup_port_default_groups() 837 &lun->port_stat_grps.stat_group); in target_stat_setup_port_default_groups() 880 struct se_lun *lun; in target_stat_auth_dev_show() local 889 lun = rcu_dereference(deve->se_lun); in target_stat_auth_dev_show() 1220 struct se_lun *lun; in target_stat_iport_dev_show() local [all …]
|
| A D | target_core_fabric_configfs.c | 70 struct se_lun *lun; in target_fabric_mappedlun_link() local 87 if (!lun->lun_se_dev) { in target_fabric_mappedlun_link() 96 se_tpg = lun->lun_tpg; in target_fabric_mappedlun_link() 523 if (!lun->lun_se_dev) in target_fabric_port_alua_tg_pt_gp_show() 534 if (!lun->lun_se_dev) in target_fabric_port_alua_tg_pt_gp_store() 545 if (!lun->lun_se_dev) in target_fabric_port_alua_tg_pt_offline_show() 556 if (!lun->lun_se_dev) in target_fabric_port_alua_tg_pt_offline_store() 567 if (!lun->lun_se_dev) in target_fabric_port_alua_tg_pt_status_show() 743 struct se_lun *lun; in target_fabric_make_lun() local 760 if (IS_ERR(lun)) in target_fabric_make_lun() [all …]
|
| A D | target_core_device.c | 214 struct se_lun *lun; in core_get_se_deve_from_rtpi() local 220 if (!lun) { in core_get_se_deve_from_rtpi() 307 struct se_lun *lun, in core_enable_device_list_for_node() argument 391 struct se_lun *lun, in core_disable_device_list_for_node() argument 463 if (lun != tmp_lun) in core_clear_lun_from_tpg() 498 if (!lun->lun_rtpi) in core_alloc_rtpi() 548 struct se_lun *lun) in core_dev_add_lun() argument 587 struct se_lun *lun) in core_dev_del_lun() argument 627 struct se_lun *lun, in core_dev_add_initiator_node_lun_acl() argument 643 lacl->se_lun = lun; in core_dev_add_initiator_node_lun_acl() [all …]
|
| /linux/drivers/staging/rts5208/ |
| A D | rtsx_scsi.c | 421 SET_BIT(chip->lun_mc, lun); in test_unit_ready() 435 set_sense_type(chip, lun, in test_unit_ready() 565 eject_card(chip, lun); in start_stop_unit() 851 if (!check_card_ready(chip, lun) || (get_card_size(chip, lun) == 0)) { in read_write() 875 set_sense_type(chip, lun, in read_write() 923 set_sense_type(chip, lun, in read_write() 934 set_sense_type(chip, lun, in read_write() 946 chip->rw_fail_cnt[lun]++; in read_write() 949 (chip, lun, in read_write() 2419 rtsx_status[4] = (u8)lun; in read_status() [all …]
|
| /linux/drivers/usb/gadget/function/ |
| A D | storage_common.h | 18 #define VLDBG(lun, fmt, args...) do { } while (0) argument 21 #define _LMSG(func, lun, fmt, args...) \ argument 23 if ((lun)->name_pfx && *(lun)->name_pfx) \ 24 func("%s/%s: " fmt, *(lun)->name_pfx, \ 25 (lun)->name, ## args); \ 27 func("%s: " fmt, (lun)->name, ## args); \ 30 #define LDBG(lun, fmt, args...) _LMSG(pr_debug, lun, fmt, ## args) argument 31 #define LERROR(lun, fmt, args...) _LMSG(pr_err, lun, fmt, ## args) argument 32 #define LWARN(lun, fmt, args...) _LMSG(pr_warn, lun, fmt, ## args) argument 33 #define LINFO(lun, fmt, args...) _LMSG(pr_info, lun, fmt, ## args) argument
|
| A D | f_mass_storage.c | 1728 if (common->lun != lun) in check_command() 1730 common->lun, lun); in check_command() 2702 kfree(lun); in fsg_common_remove_lun() 2808 lun = kzalloc(sizeof(*lun), GFP_KERNEL); in fsg_common_create_lun() 2809 if (!lun) in fsg_common_create_lun() 2816 lun->initially_ro = lun->ro; in fsg_common_create_lun() 2828 lun->name = dev_name(&lun->dev); in fsg_common_create_lun() 2871 kfree(lun); in fsg_common_create_lun() 2929 if (!lun) in fsg_common_release() 2934 kfree(lun); in fsg_common_release() [all …]
|
| /linux/drivers/scsi/ |
| A D | scsi_common.c | 89 u64 lun; in scsilun_to_int() local 91 lun = 0; in scsilun_to_int() 92 for (i = 0; i < sizeof(lun); i += 2) in scsilun_to_int() 93 lun = lun | (((u64)scsilun->scsi_lun[i] << ((i + 1) * 8)) | in scsilun_to_int() 95 return lun; in scsilun_to_int() 114 void int_to_scsilun(u64 lun, struct scsi_lun *scsilun) in int_to_scsilun() argument 120 for (i = 0; i < sizeof(lun); i += 2) { in int_to_scsilun() 121 scsilun->scsi_lun[i] = (lun >> 8) & 0xFF; in int_to_scsilun() 122 scsilun->scsi_lun[i+1] = lun & 0xFF; in int_to_scsilun() 123 lun = lun >> 16; in int_to_scsilun()
|
| A D | scsi_scan.c | 251 sdev->lun = lun; in scsi_alloc_sdev() 1152 if (lun == 0) { in scsi_probe_and_add_lun() 1192 !scsi_is_wlun(lun)) { in scsi_probe_and_add_lun() 1245 u64 sparse_lun, lun; in scsi_sequential_lun_scan() local 1305 for (lun = 1; lun < max_dev_lun; ++lun) in scsi_sequential_lun_scan() 1337 u64 lun; in scsi_report_lun_scan() local 1466 lun = scsilun_to_int(lunp); in scsi_report_lun_scan() 1539 uint target, u64 lun) in scsi_add_device() argument 1693 order_id, lun, rescan); in scsi_scan_channel() 1697 id, lun, rescan); in scsi_scan_channel() [all …]
|
| A D | virtio_scsi.c | 282 unsigned int lun = (event->lun[2] << 8) | event->lun[3]; in virtscsi_handle_transport_reset() local 286 if (lun == 0) { in virtscsi_handle_transport_reset() 314 unsigned int lun = (event->lun[2] << 8) | event->lun[3]; in virtscsi_handle_param_change() local 510 cmd->lun[2] = (sc->device->lun >> 8) | 0x40; in virtio_scsi_init_hdr() 511 cmd->lun[3] = sc->device->lun & 0xff; in virtio_scsi_init_hdr() 648 .lun[0] = 1, in virtscsi_device_reset() 650 .lun[2] = (sc->device->lun >> 8) | 0x40, in virtscsi_device_reset() 651 .lun[3] = sc->device->lun & 0xff, in virtscsi_device_reset() 705 .lun[0] = 1, in virtscsi_abort() 707 .lun[2] = (sc->device->lun >> 8) | 0x40, in virtscsi_abort() [all …]
|
| A D | 53c700.c | 437 (lun & NCR_700_LUN_MASK); in NCR_700_identify() 802 lun = SCp->device->lun; in process_extended_message() 883 lun = SCp->device->lun; in process_message() 921 pun, lun, in process_message() 929 pun, lun); in process_message() 967 __u8 pun = 0xff, lun=0xff; in process_script_interrupt() local 971 lun = SCp->device->lun; in process_script_interrupt() 1102 __u8 lun; in process_script_interrupt() local 1407 u8 lun = SCp->device->lun; in NCR_700_start_command() local 1427 lun); in NCR_700_start_command() [all …]
|
| A D | scsi_proc.c | 190 sdev->host->host_no, sdev->channel, sdev->id, sdev->lun); in proc_print_scsidevice() 243 static int scsi_add_single_device(uint host, uint channel, uint id, uint lun) in scsi_add_single_device() argument 253 error = shost->transportt->user_scan(shost, channel, id, lun); in scsi_add_single_device() 255 error = scsi_scan_host_selected(shost, channel, id, lun, in scsi_add_single_device() 271 static int scsi_remove_single_device(uint host, uint channel, uint id, uint lun) in scsi_remove_single_device() argument 280 sdev = scsi_device_lookup(shost, channel, id, lun); in scsi_remove_single_device() 313 int host, channel, id, lun; in proc_scsi_write() local 344 lun = simple_strtoul(p + 1, &p, 0); in proc_scsi_write() 346 err = scsi_add_single_device(host, channel, id, lun); in proc_scsi_write() 358 lun = simple_strtoul(p + 1, &p, 0); in proc_scsi_write() [all …]
|
| /linux/drivers/usb/storage/ |
| 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 217 bcb->Lun = lun; in rts51x_bulk_transport() 306 bcb->Lun = lun; in rts51x_bulk_transport_special() 430 usb_stor_dbg(us, "lun = %d\n", lun); in rts51x_read_status() 461 chip->status[lun].cur_lun = buf[4]; in rts51x_check_status() 462 chip->status[lun].card_type = buf[5]; in rts51x_check_status() 463 chip->status[lun].total_lun = buf[6]; in rts51x_check_status() 465 chip->status[lun].phy_exist = buf[9]; in rts51x_check_status() [all …]
|
| /linux/drivers/scsi/aic94xx/ |
| A D | aic94xx_tmf.c | 208 memcpy(scb->clear_nexus.ssp_task.lun, lun, 8); in asd_clear_nexus_I_T_L() 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 643 asd_clear_nexus_I_T_L(dev, lun); in asd_abort_task_set() 647 int asd_clear_aca(struct domain_device *dev, u8 *lun) in asd_clear_aca() argument 652 asd_clear_nexus_I_T_L(dev, lun); in asd_clear_aca() 656 int asd_clear_task_set(struct domain_device *dev, u8 *lun) in asd_clear_task_set() argument 661 asd_clear_nexus_I_T_L(dev, lun); in asd_clear_task_set() 665 int asd_lu_reset(struct domain_device *dev, u8 *lun) in asd_lu_reset() argument 667 int res = asd_initiate_ssp_tmf(dev, lun, TMF_LU_RESET, 0); in asd_lu_reset() [all …]
|
| A D | aic94xx.h | 62 int asd_abort_task_set(struct domain_device *, u8 *lun); 63 int asd_clear_aca(struct domain_device *, u8 *lun); 64 int asd_clear_task_set(struct domain_device *, u8 *lun); 65 int asd_lu_reset(struct domain_device *, u8 *lun);
|
| /linux/drivers/scsi/libsas/ |
| A D | sas_scsi_host.c | 136 struct scsi_lun lun; in sas_create_task() local 148 int_to_scsilun(cmd->device->lun, &lun); in sas_create_task() 239 cmd->device->lun == my_cmd->device->lun) in sas_scsi_clear_queue_lu() 328 struct scsi_lun lun; in sas_recover_lu() local 332 int_to_scsilun(cmd->device->lun, &lun); in sas_recover_lu() 336 cmd->device->lun); in sas_recover_lu() 420 u64 lun, int wait) in sas_queue_reset() argument 496 struct scsi_lun lun; in sas_eh_device_reset_handler() local 504 int_to_scsilun(cmd->device->lun, &lun); in sas_eh_device_reset_handler() 623 cmd->device->lun); in sas_eh_handle_sas_errors() [all …]
|
| /linux/include/trace/events/ |
| A D | scsi.h | 166 __field( unsigned int, lun ) 179 __entry->lun = cmd->device->lun; 191 __entry->lun, __entry->data_sglen, __entry->prot_sglen, 208 __field( unsigned int, lun ) 222 __entry->lun = cmd->device->lun; 235 __entry->lun, __entry->data_sglen, __entry->prot_sglen, 253 __field( unsigned int, lun ) 267 __entry->lun = cmd->device->lun; 281 __entry->lun, __entry->data_sglen, __entry->prot_sglen,
|
| /linux/drivers/block/paride/ |
| A D | pf.c | 236 int lun; member 463 { ATAPI_REQ_SENSE, pf->lun << 5, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0 }; in pf_req_sense() 603 pf->name, pf->drive, pf->lun, bs); in pf_get_capacity() 613 { ATAPI_IDENTIFY, pf->lun << 5, 0, 0, 36, 0, 0, 0, 0, 0, 0, 0 }; in pf_identify() 624 pf->name, pf->drive, pf->lun, dt); in pf_identify() 640 pf->name, mf, id, ms[pf->drive], pf->lun, dt); in pf_identify() 662 if (pf->lun != -1) in pf_probe() 665 for (pf->lun = 0; pf->lun < 8; pf->lun++) in pf_probe() 672 if (pf->lun != -1) in pf_probe() 674 for (pf->lun = 0; pf->lun < 8; pf->lun++) in pf_probe() [all …]
|
| /linux/drivers/scsi/isci/ |
| A D | task.h | 93 unsigned char lun[8]; member 141 u8 *lun); 145 u8 *lun); 149 u8 *lun); 156 u8 *lun);
|
| /linux/include/uapi/linux/ |
| 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/ |
| 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/ |
| A D | queue.c | 168 (u8)(q->SCpnt->device->lun & 0x7), exclude)) { in queue_remove_exclude() 206 struct scsi_cmnd *queue_remove_tgtluntag(Queue_t *queue, int target, int lun, in queue_remove_tgtluntag() argument 216 if (q->SCpnt->device->id == target && q->SCpnt->device->lun == lun && in queue_remove_tgtluntag() 257 int queue_probetgtlun (Queue_t *queue, int target, int lun) in queue_probetgtlun() argument 266 if (q->SCpnt->device->id == target && q->SCpnt->device->lun == lun) { in queue_probetgtlun()
|
| /linux/include/linux/mtd/ |
| A D | nand.h | 79 unsigned int lun; member 713 pos->lun = do_div(tmp, nand->memorg.luns_per_target); in nanddev_offs_to_pos() 734 if (a->lun != b->lun) in nanddev_pos_cmp() 735 return a->lun < b->lun ? -1 : 1; in nanddev_pos_cmp() 764 (pos->lun + in nanddev_pos_to_offs() 785 return (pos->lun << nand->rowconv.lun_addr_shift) | in nanddev_pos_to_row() 804 pos->lun = 0; in nanddev_pos_next_target() 819 if (pos->lun >= nand->memorg.luns_per_target - 1) in nanddev_pos_next_lun() 822 pos->lun++; in nanddev_pos_next_lun() 998 ((pos->lun + (pos->target * nand->memorg.luns_per_target)) * in nanddev_bbt_pos_to_entry()
|
| /linux/include/scsi/ |
| A D | scsi.h | 61 static inline int scsi_is_wlun(u64 lun) in scsi_is_wlun() argument 63 return (lun & 0xff00) == SCSI_W_LUN_BASE; in scsi_is_wlun() 141 #define IDENTIFY(can_disconnect, lun) (IDENTIFY_BASE |\ argument 143 ((lun) & 0x07))
|