| /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/target/ |
| A D | target_core_tpg.c | 110 struct se_lun *lun; in core_tpg_add_node_to_devs() local 143 core_enable_device_list_for_node(lun, NULL, lun->unpacked_lun, in core_tpg_add_node_to_devs() 611 struct se_lun *lun; in core_tpg_alloc_lun() local 613 lun = kzalloc(sizeof(*lun), GFP_KERNEL); in core_tpg_alloc_lun() 614 if (!lun) { in core_tpg_alloc_lun() 628 lun->lun_tpg = tpg; in core_tpg_alloc_lun() 630 return lun; in core_tpg_alloc_lun() 635 struct se_lun *lun, in core_tpg_add_lun() argument 675 struct se_lun *lun) in core_tpg_remove_lun() argument 683 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() 913 struct se_lun *lun; in core_alua_queue_state_change_ua() local 1216 struct se_lun *lun, in core_alua_set_tg_pt_secondary_state() argument 1896 struct se_lun *lun, in core_alua_store_tg_pt_gp_info() argument 2156 struct se_lun *lun, in core_alua_store_offline_bit() argument 2191 struct se_lun *lun, in core_alua_show_secondary_status() argument 2198 struct se_lun *lun, in core_alua_store_secondary_status() argument 2223 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_tpg->tpg_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 | 208 struct se_lun *lun; in core_get_se_deve_from_rtpi() local 213 lun = deve->se_lun; in core_get_se_deve_from_rtpi() 214 if (!lun) { in core_get_se_deve_from_rtpi() 287 struct se_lun *lun; in target_dev_ua_allocate() local 317 struct se_lun *lun, in core_enable_device_list_for_node() argument 367 new->se_lun = lun; in core_enable_device_list_for_node() 386 new->se_lun = lun; in core_enable_device_list_for_node() 400 struct se_lun *lun, in core_disable_device_list_for_node() argument 510 struct se_lun *lun) in core_dev_add_lun() argument 549 struct se_lun *lun) in core_dev_del_lun() argument [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 | 1793 if (common->lun != lun) in check_command() 1795 common->lun, lun); in check_command() 2783 kfree(lun); in fsg_common_remove_lun() 2890 lun = kzalloc(sizeof(*lun), GFP_KERNEL); in fsg_common_create_lun() 2891 if (!lun) in fsg_common_create_lun() 2898 lun->initially_ro = lun->ro; in fsg_common_create_lun() 2910 lun->name = dev_name(&lun->dev); in fsg_common_create_lun() 2949 kfree(lun); in fsg_common_create_lun() 3007 if (!lun) in fsg_common_release() 3012 kfree(lun); in fsg_common_release() [all …]
|
| /linux/drivers/scsi/ |
| 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() 158 void int_to_scsilun(u64 lun, struct scsi_lun *scsilun) in int_to_scsilun() argument 164 for (i = 0; i < sizeof(lun); i += 2) { in int_to_scsilun() 165 scsilun->scsi_lun[i] = (lun >> 8) & 0xFF; in int_to_scsilun() 166 scsilun->scsi_lun[i+1] = lun & 0xFF; in int_to_scsilun() 167 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 | 299 sdev->lun = lun; in scsi_alloc_sdev() 1240 if (lun == 0) { in scsi_probe_and_add_lun() 1279 !scsi_is_wlun(lun)) { in scsi_probe_and_add_lun() 1332 u64 sparse_lun, lun; in scsi_sequential_lun_scan() local 1392 for (lun = 1; lun < max_dev_lun; ++lun) in scsi_sequential_lun_scan() 1424 u64 lun; in scsi_report_lun_scan() local 1566 lun = scsilun_to_int(lunp); in scsi_report_lun_scan() 1640 uint target, u64 lun) in scsi_add_device() argument 1846 order_id, lun, rescan); in scsi_scan_channel() 1850 id, lun, rescan); in scsi_scan_channel() [all …]
|
| A D | virtio_scsi.c | 286 unsigned int lun = (event->lun[2] << 8) | event->lun[3]; in virtscsi_handle_transport_reset() local 290 if (lun == 0) { in virtscsi_handle_transport_reset() 318 unsigned int lun = (event->lun[2] << 8) | event->lun[3]; in virtscsi_handle_param_change() local 522 cmd->lun[2] = (sc->device->lun >> 8) | 0x40; in virtio_scsi_init_hdr() 523 cmd->lun[3] = sc->device->lun & 0xff; in virtio_scsi_init_hdr() 660 .lun[0] = 1, in virtscsi_device_reset() 662 .lun[2] = (sc->device->lun >> 8) | 0x40, in virtscsi_device_reset() 663 .lun[3] = sc->device->lun & 0xff, in virtscsi_device_reset() 717 .lun[0] = 1, in virtscsi_abort() 719 .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 443 lun = (p + 1 < end) ? simple_strtoul(p + 1, &p, 0) : 0; in proc_scsi_write() 445 err = scsi_add_single_device(host, channel, id, lun); in proc_scsi_write() 457 lun = (p + 1 < end) ? simple_strtoul(p + 1, &p, 0) : 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/drivers/scsi/libsas/ |
| A D | sas_scsi_host.c | 134 struct scsi_lun lun; in sas_create_task() local 145 int_to_scsilun(cmd->device->lun, &lun); in sas_create_task() 236 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() 460 struct scsi_lun lun; in sas_eh_device_reset_handler() local 468 int_to_scsilun(cmd->device->lun, &lun); in sas_eh_device_reset_handler() 1146 struct scsi_lun lun; in sas_query_task() local 1148 int_to_scsilun(cmnd->device->lun, &lun); in sas_query_task() [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() 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/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/include/trace/events/ |
| A D | scsi.h | 167 __field( unsigned int, lun ) 182 __entry->lun = cmd->device->lun; 196 __entry->lun, __entry->data_sglen, __entry->prot_sglen, 213 __field( unsigned int, lun ) 229 __entry->lun = cmd->device->lun; 245 __entry->lun, __entry->data_sglen, __entry->prot_sglen, 263 __field( unsigned int, lun ) 284 __entry->lun = cmd->device->lun; 311 __entry->lun, __entry->data_sglen, __entry->prot_sglen,
|
| /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 | 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/include/scsi/ |
| A D | scsi.h | 62 static inline int scsi_is_wlun(u64 lun) in scsi_is_wlun() argument 64 return (lun & 0xff00) == SCSI_W_LUN_BASE; in scsi_is_wlun() 143 #define IDENTIFY(can_disconnect, lun) (IDENTIFY_BASE |\ argument 145 ((lun) & 0x07))
|
| 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/drivers/scsi/isci/ |
| A D | task.h | 93 unsigned char lun[8]; member 141 u8 *lun); 145 u8 *lun); 152 u8 *lun);
|