/linux-6.3-rc2/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 387 struct se_lun *lun; in target_emulate_set_target_port_groups() local 409 lun, 1, 1)) in target_emulate_set_target_port_groups() 914 struct se_lun *lun; in core_alua_queue_state_change_ua() local 1217 struct se_lun *lun, in core_alua_set_tg_pt_secondary_state() argument 1897 struct se_lun *lun, in core_alua_store_tg_pt_gp_info() argument 2157 struct se_lun *lun, in core_alua_store_offline_bit() argument 2192 struct se_lun *lun, in core_alua_show_secondary_status() argument 2199 struct se_lun *lun, in core_alua_store_secondary_status() argument 2224 struct se_lun *lun, in core_alua_show_secondary_write_metadata() argument [all …]
|
A D | target_core_fabric_configfs.c | 71 struct se_lun *lun; in target_fabric_mappedlun_link() local 88 if (!lun->lun_se_dev) { in target_fabric_mappedlun_link() 97 se_tpg = lun->lun_tpg; in target_fabric_mappedlun_link() 524 if (!lun->lun_se_dev) in target_fabric_port_alua_tg_pt_gp_show() 535 if (!lun->lun_se_dev) in target_fabric_port_alua_tg_pt_gp_store() 546 if (!lun->lun_se_dev) in target_fabric_port_alua_tg_pt_offline_show() 557 if (!lun->lun_se_dev) in target_fabric_port_alua_tg_pt_offline_store() 568 if (!lun->lun_se_dev) in target_fabric_port_alua_tg_pt_status_show() 744 struct se_lun *lun; in target_fabric_make_lun() local 761 if (IS_ERR(lun)) in target_fabric_make_lun() [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() 456 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_indx_show() 470 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_role_show() 485 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_busy_count_show() 532 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_inst_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() [all …]
|
A D | target_core_device.c | 214 struct se_lun *lun; in core_get_se_deve_from_rtpi() local 219 lun = deve->se_lun; in core_get_se_deve_from_rtpi() 220 if (!lun) { in core_get_se_deve_from_rtpi() 293 struct se_lun *lun; in target_dev_ua_allocate() local 323 struct se_lun *lun, in core_enable_device_list_for_node() argument 373 new->se_lun = lun; in core_enable_device_list_for_node() 392 new->se_lun = lun; in core_enable_device_list_for_node() 406 struct se_lun *lun, in core_disable_device_list_for_node() argument 507 if (!lun->lun_rtpi) in core_alloc_rtpi() 557 struct se_lun *lun) in core_dev_add_lun() argument [all …]
|
/linux-6.3-rc2/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-6.3-rc2/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 | 1777 if (common->lun != lun) in check_command() 1779 common->lun, lun); in check_command() 2767 kfree(lun); in fsg_common_remove_lun() 2874 lun = kzalloc(sizeof(*lun), GFP_KERNEL); in fsg_common_create_lun() 2875 if (!lun) in fsg_common_create_lun() 2882 lun->initially_ro = lun->ro; in fsg_common_create_lun() 2894 lun->name = dev_name(&lun->dev); in fsg_common_create_lun() 2937 kfree(lun); in fsg_common_create_lun() 2995 if (!lun) in fsg_common_release() 3000 kfree(lun); in fsg_common_release() [all …]
|
/linux-6.3-rc2/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 | 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,
|
A D | scsi_scan.c | 298 sdev->lun = lun; in scsi_alloc_sdev() 1214 if (lun == 0) { in scsi_probe_and_add_lun() 1253 !scsi_is_wlun(lun)) { in scsi_probe_and_add_lun() 1306 u64 sparse_lun, lun; in scsi_sequential_lun_scan() local 1366 for (lun = 1; lun < max_dev_lun; ++lun) in scsi_sequential_lun_scan() 1398 u64 lun; in scsi_report_lun_scan() local 1531 lun = scsilun_to_int(lunp); in scsi_report_lun_scan() 1605 uint target, u64 lun) in scsi_add_device() argument 1759 order_id, lun, rescan); in scsi_scan_channel() 1763 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 520 cmd->lun[2] = (sc->device->lun >> 8) | 0x40; in virtio_scsi_init_hdr() 521 cmd->lun[3] = sc->device->lun & 0xff; in virtio_scsi_init_hdr() 658 .lun[0] = 1, in virtscsi_device_reset() 660 .lun[2] = (sc->device->lun >> 8) | 0x40, in virtscsi_device_reset() 661 .lun[3] = sc->device->lun & 0xff, in virtscsi_device_reset() 715 .lun[0] = 1, in virtscsi_abort() 717 .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 | 285 sdev->host->host_no, sdev->channel, sdev->id, sdev->lun); in proc_print_scsidevice() 338 static int scsi_add_single_device(uint host, uint channel, uint id, uint lun) in scsi_add_single_device() argument 348 error = shost->transportt->user_scan(shost, channel, id, lun); in scsi_add_single_device() 350 error = scsi_scan_host_selected(shost, channel, id, lun, in scsi_add_single_device() 366 static int scsi_remove_single_device(uint host, uint channel, uint id, uint lun) in scsi_remove_single_device() argument 375 sdev = scsi_device_lookup(shost, channel, id, lun); in scsi_remove_single_device() 408 int host, channel, id, lun; in proc_scsi_write() local 439 lun = simple_strtoul(p + 1, &p, 0); in proc_scsi_write() 441 err = scsi_add_single_device(host, channel, id, lun); in proc_scsi_write() 453 lun = simple_strtoul(p + 1, &p, 0); in proc_scsi_write() [all …]
|
A D | wd33c93.c | 506 (prev->device->lun != cmd->device->lun)) { in DEF_SCSI_QCMD() 1120 scsi_pointer->Status = lun; in wd33c93_intr() 1332 lun = read_wd33c93(regs, WD_DATA); in wd33c93_intr() 1335 lun &= 7; in wd33c93_intr() 1338 for (lun = 255; lun; lun--) { in wd33c93_intr() 1346 lun = 0; in wd33c93_intr() 1355 lun = read_1_byte(regs); in wd33c93_intr() 1372 lun &= 7; in wd33c93_intr() 1379 lun = 0; in wd33c93_intr() 1389 if (id == cmd->device->id && lun == (u8)cmd->device->lun) in wd33c93_intr() [all …]
|
/linux-6.3-rc2/drivers/scsi/libsas/ |
A D | sas_scsi_host.c | 134 struct scsi_lun lun; in sas_create_task() local 146 int_to_scsilun(cmd->device->lun, &lun); in sas_create_task() 237 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() 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() 1182 struct scsi_lun lun; in sas_query_task() local 1184 int_to_scsilun(cmnd->device->lun, &lun); in sas_query_task() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/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() 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() 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_task_set(struct domain_device *dev, u8 *lun) in asd_clear_task_set() argument 652 asd_clear_nexus_I_T_L(dev, lun); in asd_clear_task_set() 656 int asd_lu_reset(struct domain_device *dev, u8 *lun) in asd_lu_reset() argument 658 int res = asd_initiate_ssp_tmf(dev, lun, TMF_LU_RESET, 0); in asd_lu_reset() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/include/trace/events/ |
A D | scsi.h | 166 __field( unsigned int, lun ) 181 __entry->lun = cmd->device->lun; 195 __entry->lun, __entry->data_sglen, __entry->prot_sglen, 212 __field( unsigned int, lun ) 228 __entry->lun = cmd->device->lun; 244 __entry->lun, __entry->data_sglen, __entry->prot_sglen, 262 __field( unsigned int, lun ) 278 __entry->lun = cmd->device->lun; 294 __entry->lun, __entry->data_sglen, __entry->prot_sglen,
|
/linux-6.3-rc2/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-6.3-rc2/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() 142 #define IDENTIFY(can_disconnect, lun) (IDENTIFY_BASE |\ argument 144 ((lun) & 0x07))
|
/linux-6.3-rc2/drivers/scsi/arm/ |
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-6.3-rc2/drivers/scsi/isci/ |
A D | task.h | 93 unsigned char lun[8]; member 141 u8 *lun); 145 u8 *lun); 152 u8 *lun);
|
/linux-6.3-rc2/include/linux/mtd/ |
A D | nand.h | 79 unsigned int lun; member 757 pos->lun = do_div(tmp, nand->memorg.luns_per_target); in nanddev_offs_to_pos() 778 if (a->lun != b->lun) in nanddev_pos_cmp() 779 return a->lun < b->lun ? -1 : 1; in nanddev_pos_cmp() 808 (pos->lun + in nanddev_pos_to_offs() 829 return (pos->lun << nand->rowconv.lun_addr_shift) | in nanddev_pos_to_row() 848 pos->lun = 0; in nanddev_pos_next_target() 863 if (pos->lun >= nand->memorg.luns_per_target - 1) in nanddev_pos_next_lun() 866 pos->lun++; in nanddev_pos_next_lun() 1046 ((pos->lun + (pos->target * nand->memorg.luns_per_target)) * in nanddev_bbt_pos_to_entry()
|