/kernel/linux/linux-5.10/drivers/target/ |
D | target_core_tpg.c | 109 struct se_lun *lun; in core_tpg_add_node_to_devs() local 113 hlist_for_each_entry_rcu(lun, &tpg->tpg_lun_hlist, link) { in core_tpg_add_node_to_devs() 114 if (lun_orig && lun != lun_orig) in core_tpg_add_node_to_devs() 117 dev = rcu_dereference_check(lun->lun_se_dev, in core_tpg_add_node_to_devs() 139 tpg->se_tpg_tfo->tpg_get_tag(tpg), lun->unpacked_lun, in core_tpg_add_node_to_devs() 142 core_enable_device_list_for_node(lun, NULL, lun->unpacked_lun, in core_tpg_add_node_to_devs() 149 core_scsi3_check_aptpl_registration(dev, tpg, lun, acl, in core_tpg_add_node_to_devs() 150 lun->unpacked_lun); in core_tpg_add_node_to_devs() 437 struct se_lun *lun = container_of(ref, struct se_lun, lun_ref); in core_tpg_lun_ref_release() local 439 complete(&lun->lun_shutdown_comp); in core_tpg_lun_ref_release() [all …]
|
D | target_core_fabric_configfs.c | 70 struct se_lun *lun; in target_fabric_mappedlun_link() local 82 lun = container_of(to_config_group(lun_ci), struct se_lun, lun_group); in target_fabric_mappedlun_link() 87 if (!lun->lun_se_dev) { in target_fabric_mappedlun_link() 91 if (lun->lun_shutdown) { in target_fabric_mappedlun_link() 96 se_tpg = lun->lun_tpg; in target_fabric_mappedlun_link() 138 return core_dev_add_initiator_node_lun_acl(se_tpg, lacl, lun, lun_access_ro); in target_fabric_mappedlun_link() 147 struct se_lun *lun = container_of(to_config_group(lun_ci), in target_fabric_mappedlun_unlink() local 150 core_dev_del_initiator_node_lun_acl(lun, lacl); in target_fabric_mappedlun_unlink() 521 struct se_lun *lun = item_to_lun(item); in target_fabric_port_alua_tg_pt_gp_show() local 523 if (!lun || !lun->lun_se_dev) in target_fabric_port_alua_tg_pt_gp_show() [all …]
|
D | target_core_alua.c | 35 struct se_lun *lun, int explicit, int offline); 39 static void __target_attach_tg_pt_gp(struct se_lun *lun, 140 struct se_lun *lun; in target_emulate_report_target_port_groups() local 214 list_for_each_entry(lun, &tg_pt_gp->tg_pt_gp_lun_list, in target_emulate_report_target_port_groups() 225 put_unaligned_be16(lun->lun_rtpi, &buf[off]); in target_emulate_report_target_port_groups() 384 struct se_lun *lun; in target_emulate_set_target_port_groups() local 397 list_for_each_entry(lun, &dev->dev_sep_list, in target_emulate_set_target_port_groups() 399 if (lun->lun_rtpi != rtpi) in target_emulate_set_target_port_groups() 406 lun, 1, 1)) in target_emulate_set_target_port_groups() 674 struct se_lun *lun = cmd->se_lun; in target_alua_state_check() local [all …]
|
D | target_core_stat.c | 348 CONFIGFS_ATTR_RO(target_stat_lu_, lun); 426 struct se_lun *lun = to_stat_port(item); in target_stat_port_inst_show() local 431 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_inst_show() 440 struct se_lun *lun = to_stat_port(item); in target_stat_port_dev_show() local 445 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_dev_show() 454 struct se_lun *lun = to_stat_port(item); in target_stat_port_indx_show() local 459 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_indx_show() 461 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_rtpi); in target_stat_port_indx_show() 468 struct se_lun *lun = to_stat_port(item); in target_stat_port_role_show() local 473 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_role_show() [all …]
|
D | target_core_device.c | 217 struct se_lun *lun; in core_get_se_deve_from_rtpi() local 222 lun = rcu_dereference(deve->se_lun); in core_get_se_deve_from_rtpi() 223 if (!lun) { in core_get_se_deve_from_rtpi() 229 if (lun->lun_rtpi != rtpi) in core_get_se_deve_from_rtpi() 250 struct se_lun *lun = rcu_dereference_check(deve->se_lun, in core_free_device_list_for_node() local 252 core_disable_device_list_for_node(lun, deve, nacl, tpg); in core_free_device_list_for_node() 310 struct se_lun *lun, in core_enable_device_list_for_node() argument 343 if (orig_lun != lun) { in core_enable_device_list_for_node() 361 rcu_assign_pointer(new->se_lun, lun); in core_enable_device_list_for_node() 367 spin_lock(&lun->lun_deve_lock); in core_enable_device_list_for_node() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/rts5208/ |
D | rtsx_scsi.c | 313 void set_sense_type(struct rtsx_chip *chip, unsigned int lun, int sense_type) in set_sense_type() argument 317 set_sense_data(chip, lun, CUR_ERR, 0x06, 0, 0x28, 0, 0, 0); in set_sense_type() 321 set_sense_data(chip, lun, CUR_ERR, 0x02, 0, 0x3A, 0, 0, 0); in set_sense_type() 325 set_sense_data(chip, lun, CUR_ERR, 0x05, 0, 0x21, 0, 0, 0); in set_sense_type() 329 set_sense_data(chip, lun, CUR_ERR, 0x05, 0, 0x25, 0, 0, 0); in set_sense_type() 333 set_sense_data(chip, lun, CUR_ERR, 0x07, 0, 0x27, 0, 0, 0); in set_sense_type() 337 set_sense_data(chip, lun, CUR_ERR, 0x03, 0, 0x11, 0, 0, 0); in set_sense_type() 341 set_sense_data(chip, lun, CUR_ERR, 0x03, 0, 0x0C, 0x02, 0, 0); in set_sense_type() 345 set_sense_data(chip, lun, CUR_ERR, ILGAL_REQ, 0, in set_sense_type() 350 set_sense_data(chip, lun, CUR_ERR, 0x02, 0, 0x04, 0x04, 0, 0); in set_sense_type() [all …]
|
/kernel/linux/linux-5.10/drivers/usb/gadget/function/ |
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
|
D | f_mass_storage.c | 287 unsigned int lun; member 1663 unsigned int lun = common->cmnd[1] >> 5; in check_command() local 1728 if (common->lun != lun) in check_command() 1730 common->lun, lun); in check_command() 1749 DBG(common, "unsupported LUN %u\n", common->lun); in check_command() 2139 common->lun = cbw->Lun; in received_cbw() 2140 if (common->lun < ARRAY_SIZE(common->luns)) in received_cbw() 2141 common->curlun = common->luns[common->lun]; in received_cbw() 2646 void fsg_common_remove_lun(struct fsg_lun *lun) in fsg_common_remove_lun() argument 2648 if (device_is_registered(&lun->dev)) in fsg_common_remove_lun() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/ |
D | scsi_common.c | 80 u64 lun; in scsilun_to_int() local 82 lun = 0; in scsilun_to_int() 83 for (i = 0; i < sizeof(lun); i += 2) in scsilun_to_int() 84 lun = lun | (((u64)scsilun->scsi_lun[i] << ((i + 1) * 8)) | in scsilun_to_int() 86 return lun; in scsilun_to_int() 105 void int_to_scsilun(u64 lun, struct scsi_lun *scsilun) in int_to_scsilun() argument 111 for (i = 0; i < sizeof(lun); i += 2) { in int_to_scsilun() 112 scsilun->scsi_lun[i] = (lun >> 8) & 0xFF; in int_to_scsilun() 113 scsilun->scsi_lun[i+1] = lun & 0xFF; in int_to_scsilun() 114 lun = lun >> 16; in int_to_scsilun()
|
D | scsi_scan.c | 216 u64 lun, void *hostdata) in scsi_alloc_sdev() argument 233 sdev->lun = lun; in scsi_alloc_sdev() 821 if (scsi_is_wlun(sdev->lun) && sdev->type != TYPE_WLUN) { in scsi_add_lun() 824 __func__, sdev->type, (unsigned int)sdev->lun); in scsi_add_lun() 1044 u64 lun, blist_flags_t *bflagsp, in scsi_probe_and_add_lun() argument 1059 sdev = scsi_device_lookup_by_target(starget, lun); in scsi_probe_and_add_lun() 1078 sdev = scsi_alloc_sdev(starget, lun, hostdata); in scsi_probe_and_add_lun() 1109 if (lun == 0) { in scsi_probe_and_add_lun() 1149 !scsi_is_wlun(lun)) { in scsi_probe_and_add_lun() 1202 u64 sparse_lun, lun; in scsi_sequential_lun_scan() local [all …]
|
D | virtio_scsi.c | 282 unsigned int target = event->lun[1]; in virtscsi_handle_transport_reset() 283 unsigned int lun = (event->lun[2] << 8) | event->lun[3]; in virtscsi_handle_transport_reset() local 287 if (lun == 0) { in virtscsi_handle_transport_reset() 291 scsi_add_device(shost, 0, target, lun); in virtscsi_handle_transport_reset() 295 sdev = scsi_device_lookup(shost, 0, target, lun); in virtscsi_handle_transport_reset() 301 shost->host_no, target, lun); in virtscsi_handle_transport_reset() 314 unsigned int target = event->lun[1]; in virtscsi_handle_param_change() 315 unsigned int lun = (event->lun[2] << 8) | event->lun[3]; in virtscsi_handle_param_change() local 319 sdev = scsi_device_lookup(shost, 0, target, lun); in virtscsi_handle_param_change() 322 shost->host_no, target, lun); in virtscsi_handle_param_change() [all …]
|
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 …]
|
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() 888 printk("scsi%d (%d:%d): message %s: ", host->host_no, pun, lun, in process_message() 922 pun, lun, in process_message() [all …]
|
/kernel/linux/linux-5.10/drivers/usb/storage/ |
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 …]
|
/kernel/linux/linux-5.10/drivers/scsi/aic94xx/ |
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_aca(struct domain_device *dev, u8 *lun) in asd_clear_aca() argument [all …]
|
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);
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | virtio_scsi.h | 31 __u8 lun[8]; member 39 __u8 lun[8]; member 59 __u8 lun[8]; member 67 __u8 lun[8]; member 76 __u8 lun[8]; member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | virtio_scsi.h | 18 __u8 lun[8]; member 26 __u8 lun[8]; member 46 __u8 lun[8]; member 54 __u8 lun[8]; member 63 __u8 lun[8]; member
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
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
|
/kernel/linux/linux-5.10/drivers/scsi/isci/ |
D | task.h | 93 unsigned char lun[8]; member 141 u8 *lun); 145 u8 *lun); 149 u8 *lun); 156 u8 *lun);
|
/kernel/linux/linux-5.10/drivers/scsi/libsas/ |
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() 149 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() 327 struct scsi_lun lun; in sas_recover_lu() local 331 int_to_scsilun(cmd->device->lun, &lun); in sas_recover_lu() 335 cmd->device->lun); in sas_recover_lu() 338 res = i->dft->lldd_abort_task_set(dev, lun.scsi_lun); in sas_recover_lu() 342 res = i->dft->lldd_clear_task_set(dev, lun.scsi_lun); in sas_recover_lu() 347 res = i->dft->lldd_lu_reset(dev, lun.scsi_lun); in sas_recover_lu() [all …]
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | scsi.h | 210 __field( unsigned int, lun ) 223 __entry->lun = cmd->device->lun; 235 __entry->lun, __entry->data_sglen, __entry->prot_sglen, 252 __field( unsigned int, lun ) 266 __entry->lun = cmd->device->lun; 279 __entry->lun, __entry->data_sglen, __entry->prot_sglen, 297 __field( unsigned int, lun ) 311 __entry->lun = cmd->device->lun; 325 __entry->lun, __entry->data_sglen, __entry->prot_sglen,
|
/kernel/linux/linux-5.10/drivers/s390/scsi/ |
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()
|
/kernel/linux/linux-5.10/drivers/block/paride/ |
D | pf.c | 237 int lun; member 317 pf->lun = (*drives[unit])[D_LUN]; in pf_init_units() 505 { ATAPI_REQ_SENSE, pf->lun << 5, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0 }; in pf_req_sense() 535 char lo_cmd[12] = { ATAPI_LOCK, pf->lun << 5, 0, 0, func, 0, 0, 0, 0, 0, 0, 0 }; in pf_lock() 542 char ej_cmd[12] = { ATAPI_DOOR, pf->lun << 5, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0 }; in pf_eject() 595 { ATAPI_MODE_SENSE, pf->lun << 5, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0 }; in pf_mode_sense() 630 char rc_cmd[12] = { ATAPI_CAPACITY, pf->lun << 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; in pf_get_capacity() 645 pf->name, pf->drive, pf->lun, bs); in pf_get_capacity() 655 { ATAPI_IDENTIFY, pf->lun << 5, 0, 0, 36, 0, 0, 0, 0, 0, 0, 0 }; in pf_identify() 666 pf->name, pf->drive, pf->lun, dt); in pf_identify() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/arm/ |
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()
|