/linux-master/drivers/staging/rts5208/ |
H A D | rtsx_scsi.c | 313 void set_sense_type(struct rtsx_chip *chip, unsigned int lun, int sense_type) argument 317 set_sense_data(chip, lun, CUR_ERR, 0x06, 0, 0x28, 0, 0, 0); 321 set_sense_data(chip, lun, CUR_ERR, 0x02, 0, 0x3A, 0, 0, 0); 325 set_sense_data(chip, lun, CUR_ERR, 0x05, 0, 0x21, 0, 0, 0); 329 set_sense_data(chip, lun, CUR_ERR, 0x05, 0, 0x25, 0, 0, 0); 333 set_sense_data(chip, lun, CUR_ERR, 0x07, 0, 0x27, 0, 0, 0); 337 set_sense_data(chip, lun, CUR_ERR, 0x03, 0, 0x11, 0, 0, 0); 341 set_sense_data(chip, lun, CUR_ERR, 0x03, 0, 0x0C, 0x02, 0, 0); 345 set_sense_data(chip, lun, CUR_ERR, ILGAL_REQ, 0, 350 set_sense_data(chip, lun, CUR_ER 388 set_sense_data(struct rtsx_chip *chip, unsigned int lun, u8 err_code, u8 sense_key, u32 info, u8 asc, u8 ascq, u8 sns_key_info0, u16 sns_key_info1) argument 413 unsigned int lun = SCSI_LUN(srb); local 465 unsigned int lun = SCSI_LUN(srb); local 550 unsigned int lun = SCSI_LUN(srb); local 601 unsigned int lun = SCSI_LUN(srb); local 643 ms_mode_sense(struct rtsx_chip *chip, u8 cmd, int lun, u8 *buf, int buf_len) argument 738 unsigned int lun = SCSI_LUN(srb); local 838 unsigned int lun = SCSI_LUN(srb); local 971 unsigned int lun = SCSI_LUN(srb); local 1049 unsigned int lun = SCSI_LUN(srb); local 1297 unsigned int lun = SCSI_LUN(srb); local 1395 unsigned int lun = SCSI_LUN(srb); local 1457 unsigned int lun = SCSI_LUN(srb); local 1500 unsigned int lun = SCSI_LUN(srb); local 1542 unsigned int lun = SCSI_LUN(srb); local 1722 unsigned int lun = SCSI_LUN(srb); local 2411 unsigned int lun = SCSI_LUN(srb); local 2538 unsigned int lun = SCSI_LUN(srb); local 2563 unsigned int lun = SCSI_LUN(srb); local 2685 unsigned int lun = SCSI_LUN(srb); local 2710 unsigned int lun = SCSI_LUN(srb); local 2774 unsigned int lun = SCSI_LUN(srb); local 2882 unsigned int lun = SCSI_LUN(srb); local 2942 unsigned int lun = SCSI_LUN(srb); local 3041 unsigned int lun = SCSI_LUN(srb); local 3163 unsigned int lun = SCSI_LUN(srb); local [all...] |
/linux-master/drivers/target/ |
H A D | target_core_tpg.c | 110 struct se_lun *lun; local 114 hlist_for_each_entry_rcu(lun, &tpg->tpg_lun_hlist, link) { 115 if (lun_orig && lun != lun_orig) 118 dev = rcu_dereference_check(lun->lun_se_dev, 140 tpg->se_tpg_tfo->tpg_get_tag(tpg), lun->unpacked_lun, 143 core_enable_device_list_for_node(lun, NULL, lun->unpacked_lun, 150 core_scsi3_check_aptpl_registration(dev, tpg, lun, acl, 151 lun->unpacked_lun); 438 struct se_lun *lun local 611 struct se_lun *lun; local 633 core_tpg_add_lun( struct se_portal_group *tpg, struct se_lun *lun, bool lun_access_ro, struct se_device *dev) argument 673 core_tpg_remove_lun( struct se_portal_group *tpg, struct se_lun *lun) argument [all...] |
H A D | target_core_fabric_configfs.c | 71 struct se_lun *lun; local 83 lun = container_of(to_config_group(lun_ci), struct se_lun, lun_group); 88 if (!lun->lun_se_dev) { 92 if (lun->lun_shutdown) { 94 " lun->lun_shutdown=true\n"); 97 se_tpg = lun->lun_tpg; 137 * $FABRIC/$WWPN/$TPGT/lun/lun_* as on their SCSI Initiator Ports. 139 return core_dev_add_initiator_node_lun_acl(se_tpg, lacl, lun, lun_access_ro); 148 struct se_lun *lun = container_of(to_config_group(lun_ci), local 151 core_dev_del_initiator_node_lun_acl(lun, lac 522 struct se_lun *lun = item_to_lun(item); local 533 struct se_lun *lun = item_to_lun(item); local 544 struct se_lun *lun = item_to_lun(item); local 555 struct se_lun *lun = item_to_lun(item); local 566 struct se_lun *lun = item_to_lun(item); local 577 struct se_lun *lun = item_to_lun(item); local 588 struct se_lun *lun = item_to_lun(item); local 599 struct se_lun *lun = item_to_lun(item); local 625 struct se_lun *lun = container_of(to_config_group(lun_ci), local 678 struct se_lun *lun = container_of(to_config_group(lun_ci), local 697 struct se_lun *lun = container_of(to_config_group(item), local 744 struct se_lun *lun; local 781 struct se_lun *lun = container_of(to_config_group(item), local [all...] |
H A 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; local 217 list_for_each_entry(lun, &tg_pt_gp->tg_pt_gp_lun_list, 228 put_unaligned_be16(lun->lun_tpg->tpg_rtpi, &buf[off]); 387 struct se_lun *lun; local 400 list_for_each_entry(lun, &dev->dev_sep_list, 402 if (lun->lun_tpg->tpg_rtpi != rtpi) 409 lun, 1, 1)) 648 struct se_lun *lun local 913 struct se_lun *lun; local 1168 core_alua_update_tpg_secondary_metadata(struct se_lun *lun) argument 1215 core_alua_set_tg_pt_secondary_state( struct se_lun *lun, int explicit, int offline) argument 1711 struct se_lun *lun, *next; local 1802 __target_attach_tg_pt_gp(struct se_lun *lun, struct t10_alua_tg_pt_gp *tg_pt_gp) argument 1821 target_attach_tg_pt_gp(struct se_lun *lun, struct t10_alua_tg_pt_gp *tg_pt_gp) argument 1830 __target_detach_tg_pt_gp(struct se_lun *lun, struct t10_alua_tg_pt_gp *tg_pt_gp) argument 1841 target_detach_tg_pt_gp(struct se_lun *lun) argument 1856 target_swap_tg_pt_gp(struct se_lun *lun, struct t10_alua_tg_pt_gp *old_tg_pt_gp, struct t10_alua_tg_pt_gp *new_tg_pt_gp) argument 1867 core_alua_show_tg_pt_gp_info(struct se_lun *lun, char *page) argument 1895 core_alua_store_tg_pt_gp_info( struct se_lun *lun, const char *page, size_t count) argument 2149 core_alua_show_offline_bit(struct se_lun *lun, char *page) argument 2155 core_alua_store_offline_bit( struct se_lun *lun, const char *page, size_t count) argument 2190 core_alua_show_secondary_status( struct se_lun *lun, char *page) argument 2197 core_alua_store_secondary_status( struct se_lun *lun, const char *page, size_t count) argument 2222 core_alua_show_secondary_write_metadata( struct se_lun *lun, char *page) argument 2229 core_alua_store_secondary_write_metadata( struct se_lun *lun, const char *page, size_t count) argument [all...] |
H A D | target_core_stat.c | 345 CONFIGFS_ATTR_RO(target_stat_lu_, lun); 423 struct se_lun *lun = to_stat_port(item); local 428 dev = rcu_dereference(lun->lun_se_dev); 437 struct se_lun *lun = to_stat_port(item); local 442 dev = rcu_dereference(lun->lun_se_dev); 451 struct se_lun *lun = to_stat_port(item); local 456 dev = rcu_dereference(lun->lun_se_dev); 458 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_tpg->tpg_rtpi); 465 struct se_lun *lun = to_stat_port(item); local 470 dev = rcu_dereference(lun 480 struct se_lun *lun = to_stat_port(item); local 527 struct se_lun *lun = to_stat_tgt_port(item); local 542 struct se_lun *lun = to_stat_tgt_port(item); local 557 struct se_lun *lun = to_stat_tgt_port(item); local 572 struct se_lun *lun = to_stat_tgt_port(item); local 590 struct se_lun *lun = to_stat_tgt_port(item); local 608 struct se_lun *lun = to_stat_tgt_port(item); local 624 struct se_lun *lun = to_stat_tgt_port(item); local 640 struct se_lun *lun = to_stat_tgt_port(item); local 656 struct se_lun *lun = to_stat_tgt_port(item); local 711 struct se_lun *lun = to_transport_stat(item); local 726 struct se_lun *lun = to_transport_stat(item); local 745 struct se_lun *lun = to_transport_stat(item); local 762 struct se_lun *lun = to_transport_stat(item); local 785 struct se_lun *lun = to_transport_stat(item); local 822 target_stat_setup_port_default_groups(struct se_lun *lun) argument [all...] |
H A D | target_core_device.c | 209 struct se_lun *lun; local 214 lun = deve->se_lun; 215 if (!lun) { 221 if (lun->lun_tpg->tpg_rtpi != rtpi) 288 struct se_lun *lun; local 291 list_for_each_entry(lun, &dev->dev_sep_list, lun_dev_link) { 293 spin_lock(&lun->lun_deve_lock); 294 list_for_each_entry(se_deve, &lun->lun_deve_list, lun_link) 296 spin_unlock(&lun->lun_deve_lock); 318 struct se_lun *lun, 317 core_enable_device_list_for_node( struct se_lun *lun, struct se_lun_acl *lun_acl, u64 mapped_lun, bool lun_access_ro, struct se_node_acl *nacl, struct se_portal_group *tpg) argument 400 core_disable_device_list_for_node( struct se_lun *lun, struct se_dev_entry *orig, struct se_node_acl *nacl, struct se_portal_group *tpg) argument 457 core_clear_lun_from_tpg(struct se_lun *lun, struct se_portal_group *tpg) argument 508 core_dev_add_lun( struct se_portal_group *tpg, struct se_device *dev, struct se_lun *lun) argument 548 core_dev_del_lun( struct se_portal_group *tpg, struct se_lun *lun) argument 587 core_dev_add_initiator_node_lun_acl( struct se_portal_group *tpg, struct se_lun_acl *lacl, struct se_lun *lun, bool lun_access_ro) argument 626 core_dev_del_initiator_node_lun_acl( struct se_lun *lun, struct se_lun_acl *lacl) argument [all...] |
/linux-master/drivers/scsi/ |
H A D | sd_trace.h | 27 __field( unsigned int, lun ) 36 __entry->lun = cmnd->device->lun; 41 TP_printk("host_no=%u, channel=%u id=%u lun=%u lba=%llu wp_offset=%u", 43 __entry->lun, __entry->lba, __entry->wp_offset) 57 __field( unsigned int, lun ) 67 __entry->lun = cmnd->device->lun; 73 TP_printk("host_no=%u, channel=%u id=%u lun=%u rq_sector=%llu" \ 76 __entry->lun, __entr [all...] |
H A D | scsi_common.c | 132 u64 lun; local 134 lun = 0; 135 for (i = 0; i < sizeof(lun); i += 2) 136 lun = lun | (((u64)scsilun->scsi_lun[i] << ((i + 1) * 8)) | 138 return lun; 144 * @lun: integer to be reverted 149 * an 8-byte lun value into an int. This routine unpacks the int 150 * back into the lun value. 157 void int_to_scsilun(u64 lun, struc argument [all...] |
H A D | virtio_scsi.c | 285 unsigned int target = event->lun[1]; 286 unsigned int lun = (event->lun[2] << 8) | event->lun[3]; local 290 if (lun == 0) { 294 scsi_add_device(shost, 0, target, lun); 298 sdev = scsi_device_lookup(shost, 0, target, lun); 304 shost->host_no, target, lun); 317 unsigned int target = event->lun[1]; 318 unsigned int lun local [all...] |
H A D | scsi_scan.c | 267 * @lun: which lun 272 * Stores the @shost, @channel, @id, and @lun in the scsi_Device, and 279 u64 lun, void *hostdata) 298 sdev->lun = lun; 638 * Probe the lun associated with @req using a standard SCSI INQUIRY; 930 if (scsi_is_wlun(sdev->lun) && sdev->type != TYPE_WLUN) { 933 __func__, sdev->type, (unsigned int)sdev->lun); 1150 * @lun 278 scsi_alloc_sdev(struct scsi_target *starget, u64 lun, void *hostdata) argument 1168 scsi_probe_and_add_lun(struct scsi_target *starget, u64 lun, blist_flags_t *bflagsp, struct scsi_device **sdevp, enum scsi_scan_mode rescan, void *hostdata) argument 1325 u64 sparse_lun, lun; local 1417 u64 lun; local 1595 __scsi_add_device(struct Scsi_Host *shost, uint channel, uint id, u64 lun, void *hostdata) argument 1632 scsi_add_device(struct Scsi_Host *host, uint channel, uint target, u64 lun) argument 1719 __scsi_scan_target(struct device *parent, unsigned int channel, unsigned int id, u64 lun, enum scsi_scan_mode rescan) argument 1790 scsi_scan_target(struct device *parent, unsigned int channel, unsigned int id, u64 lun, enum scsi_scan_mode rescan) argument 1814 scsi_scan_channel(struct Scsi_Host *shost, unsigned int channel, unsigned int id, u64 lun, enum scsi_scan_mode rescan) argument 1846 scsi_scan_host_selected(struct Scsi_Host *shost, unsigned int channel, unsigned int id, u64 lun, enum scsi_scan_mode rescan) argument [all...] |
H A D | 53c700.c | 433 NCR_700_identify(int can_disconnect, __u8 lun) argument 437 (lun & NCR_700_LUN_MASK); 798 __u8 pun = 0xff, lun = 0xff; local 802 lun = SCp->device->lun; 847 host->host_no, pun, lun); 857 host->host_no, pun, lun, 879 __u8 pun = 0xff, lun = 0xff; local 883 lun = SCp->device->lun; 967 __u8 pun = 0xff, lun=0xff; local 1102 __u8 lun; local 1407 u8 lun = SCp->device->lun; local 1492 __u8 pun = 0xff, lun = 0xff; local [all...] |
/linux-master/drivers/usb/gadget/function/ |
H A D | storage_common.h | 18 #define VLDBG(lun, fmt, args...) do { } while (0) 21 #define _LMSG(func, lun, fmt, args...) \ 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) 31 #define LERROR(lun, fm [all...] |
/linux-master/drivers/scsi/arm/ |
H A D | queue.h | 64 * Function: struct scsi_cmnd *queue_remove_tgtluntag (queue, target, lun, tag) 65 * Purpose : remove a SCSI command from the queue for a specified target/lun/tag 68 * lun - lun on device 73 int lun, int tag); 85 * Function: int queue_probetgtlun (queue, target, lun) 87 * target/lun. 90 * lun - lun on target 93 extern int queue_probetgtlun (Queue_t *queue, int target, int lun); [all...] |
H A D | queue.c | 159 * exclude - bit array of target&lun which is busy 172 (u8)(q->SCpnt->device->lun & 0x7), exclude)) { 202 * Function: struct scsi_cmnd *queue_remove_tgtluntag (queue, target, lun, tag) 203 * Purpose : remove a SCSI command from the queue for a specified target/lun/tag 206 * lun - lun on device 210 struct scsi_cmnd *queue_remove_tgtluntag(Queue_t *queue, int target, int lun, argument 220 if (q->SCpnt->device->id == target && q->SCpnt->device->lun == lun && 253 * Function: int queue_probetgtlun (queue, target, lun) 261 queue_probetgtlun(Queue_t *queue, int target, int lun) argument [all...] |
/linux-master/drivers/scsi/aic7xxx/ |
H A D | scsi_message.h | 20 #define MSG_IDENTIFY(lun, disc) (((disc) ? 0xc0 : MSG_IDENTIFYFLAG) | (lun))
|
/linux-master/drivers/scsi/isci/ |
H A D | task.h | 93 unsigned char lun[8]; member in struct:isci_tmf 141 u8 *lun); 145 u8 *lun); 152 u8 *lun);
|
/linux-master/drivers/scsi/aic94xx/ |
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-master/include/uapi/linux/ |
H A D | virtio_scsi.h | 45 __u8 lun[8]; /* Logical Unit Number */ member in struct:virtio_scsi_cmd_req 55 __u8 lun[8]; /* Logical Unit Number */ member in struct:virtio_scsi_cmd_req_pi 79 __u8 lun[8]; member in struct:virtio_scsi_ctrl_tmf_req 90 __u8 lun[8]; member in struct:virtio_scsi_ctrl_an_req 101 __u8 lun[8]; member in struct:virtio_scsi_event
|
H A D | ipmi.h | 68 unsigned char lun; member in struct:ipmi_system_interface_addr 80 unsigned char lun; member in struct:ipmi_ipmb_addr 122 unsigned char lun; member in struct:ipmi_lan_addr
|
/linux-master/drivers/s390/scsi/ |
H A D | zfcp_unit.c | 25 u64 lun; local 27 lun = scsilun_to_int((struct scsi_lun *) &unit->fcp_lun); 30 scsi_scan_target(&rport->dev, 0, rport->scsi_target_id, lun, 199 u64 lun; local 201 lun = scsilun_to_int((struct scsi_lun *) &unit->fcp_lun); 204 return scsi_device_lookup(shost, 0, port->starget_id, lun);
|
/linux-master/drivers/scsi/snic/ |
H A D | snic_res.h | 15 u16 flags, u64 tgt_id, u8 *lun, u8 *scsi_cdb, u8 cdb_len, 24 memcpy(&req->u.icmnd.lun_id, lun, LUN_ADDR_LEN); 36 u16 flags, u32 req_id, u64 tgt_id, u8 *lun, u8 tm_type) 45 memcpy(&req->u.itmf.lun_id, lun, LUN_ADDR_LEN); 14 snic_icmnd_init(struct snic_host_req *req, u32 cmnd_id, u32 host_id, u64 ctx, u16 flags, u64 tgt_id, u8 *lun, u8 *scsi_cdb, u8 cdb_len, u32 data_len, u16 sg_cnt, ulong sgl_addr, dma_addr_t sns_addr_pa, u32 sense_len) argument 35 snic_itmf_init(struct snic_host_req *req, u32 cmnd_id, u32 host_id, ulong ctx, u16 flags, u32 req_id, u64 tgt_id, u8 *lun, u8 tm_type) argument
|
/linux-master/include/scsi/ |
H A D | scsi.h | 61 static inline int scsi_is_wlun(u64 lun) argument 63 return (lun & 0xff00) == SCSI_W_LUN_BASE; 142 #define IDENTIFY(can_disconnect, lun) (IDENTIFY_BASE |\ 144 ((lun) & 0x07))
|
/linux-master/drivers/usb/storage/ |
H A D | realtek_cr.c | 67 #define SET_LUN_READY(chip, lun) ((chip)->lun_ready |= ((u8)1 << (lun))) 68 #define CLR_LUN_READY(chip, lun) ((chip)->lun_ready &= ~((u8)1 << (lun))) 69 #define TST_LUN_READY(chip, lun) ((chip)->lun_ready & ((u8)1 << (lun))) 117 #define SCSI_LUN(srb) ((srb)->device->lun) 201 static int rts51x_bulk_transport(struct us_data *us, u8 lun, argument 217 bcb->Lun = lun; 291 static int rts51x_bulk_transport_special(struct us_data *us, u8 lun, argument 419 rts51x_read_status(struct us_data *us, u8 lun, u8 *status, int len, int *actlen) argument 447 rts51x_check_status(struct us_data *us, u8 lun) argument [all...] |
/linux-master/drivers/scsi/libsas/ |
H A D | sas_scsi_host.c | 134 struct scsi_lun lun; local 145 int_to_scsilun(cmd->device->lun, &lun); 146 memcpy(task->ssp_task.LUN, &lun.scsi_lun, 8); 236 cmd->device->lun == my_cmd->device->lun) 327 struct scsi_lun lun; local 331 int_to_scsilun(cmd->device->lun, &lun); 335 cmd->device->lun); 389 sas_queue_reset(struct domain_device *dev, int reset_type, u64 lun) argument 460 struct scsi_lun lun; local 1094 sas_execute_ssp_tmf(struct domain_device *device, u8 *lun, struct sas_tmf_task *tmf) argument 1107 sas_abort_task_set(struct domain_device *dev, u8 *lun) argument 1117 sas_clear_task_set(struct domain_device *dev, u8 *lun) argument 1127 sas_lu_reset(struct domain_device *dev, u8 *lun) argument 1145 struct scsi_lun lun; local 1161 struct scsi_lun lun; local [all...] |
/linux-master/include/trace/events/ |
H A D | scsi.h | 166 __field( unsigned int, lun ) 181 __entry->lun = cmd->device->lun; 192 TP_printk("host_no=%u channel=%u id=%u lun=%u data_sgl=%u prot_sgl=%u" \ 195 __entry->lun, __entry->data_sglen, __entry->prot_sglen, 212 __field( unsigned int, lun ) 228 __entry->lun = cmd->device->lun; 240 TP_printk("host_no=%u channel=%u id=%u lun=%u data_sgl=%u prot_sgl=%u" \ 244 __entry->lun, __entr [all...] |