Home
last modified time | relevance | path

Searched refs:unpacked_lun (Results 1 – 20 of 20) sorted by relevance

/linux-4.1.27/drivers/target/
Dtarget_core_device.c59 transport_lookup_cmd_lun(struct se_cmd *se_cmd, u32 unpacked_lun) in transport_lookup_cmd_lun() argument
66 if (unpacked_lun >= TRANSPORT_MAX_LUNS_PER_TPG) in transport_lookup_cmd_lun()
70 se_cmd->se_deve = se_sess->se_node_acl->device_list[unpacked_lun]; in transport_lookup_cmd_lun()
81 unpacked_lun); in transport_lookup_cmd_lun()
94 se_cmd->orig_fe_lun = unpacked_lun; in transport_lookup_cmd_lun()
108 if (unpacked_lun != 0) { in transport_lookup_cmd_lun()
112 unpacked_lun); in transport_lookup_cmd_lun()
145 int transport_lookup_tmr_lun(struct se_cmd *se_cmd, u32 unpacked_lun) in transport_lookup_tmr_lun() argument
153 if (unpacked_lun >= TRANSPORT_MAX_LUNS_PER_TPG) in transport_lookup_tmr_lun()
157 se_cmd->se_deve = se_sess->se_node_acl->device_list[unpacked_lun]; in transport_lookup_tmr_lun()
[all …]
Dtarget_core_tpg.c164 tpg->se_tpg_tfo->tpg_get_tag(tpg), lun->unpacked_lun, in core_tpg_add_node_to_devs()
168 core_enable_device_list_for_node(lun, NULL, lun->unpacked_lun, in core_tpg_add_node_to_devs()
176 lun->unpacked_lun); in core_tpg_add_node_to_devs()
658 lun->unpacked_lun = 0; in core_tpg_setup_virtual_lun0()
694 lun->unpacked_lun = i; in core_tpg_register()
787 u32 unpacked_lun) in core_tpg_alloc_lun() argument
791 if (unpacked_lun > (TRANSPORT_MAX_LUNS_PER_TPG-1)) { in core_tpg_alloc_lun()
795 unpacked_lun, TRANSPORT_MAX_LUNS_PER_TPG-1, in core_tpg_alloc_lun()
801 lun = tpg->tpg_lun_list[unpacked_lun]; in core_tpg_alloc_lun()
805 unpacked_lun, tpg->se_tpg_tfo->get_fabric_name(), in core_tpg_alloc_lun()
Dtarget_core_ua.c84 u32 unpacked_lun, in core_scsi3_ua_allocate() argument
108 deve = nacl->device_list[unpacked_lun]; in core_scsi3_ua_allocate()
173 nacl->se_tpg->se_tpg_tfo->get_fabric_name(), unpacked_lun, in core_scsi3_ua_allocate()
Dtarget_core_fabric_configfs.c145 lun->unpacked_lun, lun_access); in target_fabric_mappedlun_link()
800 lun_p = core_dev_add_lun(se_tpg, dev, lun->unpacked_lun); in target_fabric_port_link()
890 unsigned long unpacked_lun; in target_fabric_make_lun() local
898 errno = kstrtoul(name + 4, 0, &unpacked_lun); in target_fabric_make_lun()
901 if (unpacked_lun > UINT_MAX) in target_fabric_make_lun()
904 lun = core_get_lun_from_tpg(se_tpg, unpacked_lun); in target_fabric_make_lun()
Dtarget_core_transport.c1392 unsigned char *cdb, unsigned char *sense, u32 unpacked_lun, in target_submit_cmd_map_sgls() argument
1432 rc = transport_lookup_cmd_lun(se_cmd, unpacked_lun); in target_submit_cmd_map_sgls()
1525 unsigned char *cdb, unsigned char *sense, u32 unpacked_lun, in target_submit_cmd() argument
1529 unpacked_lun, data_length, task_attr, data_dir, in target_submit_cmd()
1562 unsigned char *sense, u32 unpacked_lun, in target_submit_tmr() argument
1592 ret = transport_lookup_tmr_lun(se_cmd, unpacked_lun); in target_submit_tmr()
2665 "tcm_cl_%u", lun->unpacked_lun); in transport_clear_lun_ref()
Dtarget_core_pr.c236 cmd->se_lun->unpacked_lun, cmd->se_deve->mapped_lun, in target_scsi2_reservation_release()
281 cmd->se_lun->unpacked_lun, in target_scsi2_reservation_reserve()
284 " from %s \n", cmd->se_lun->unpacked_lun, in target_scsi2_reservation_reserve()
299 cmd->se_lun->unpacked_lun, cmd->se_deve->mapped_lun, in target_scsi2_reservation_reserve()
649 pr_reg->pr_aptpl_target_lun = deve->se_lun->unpacked_lun; in __core_scsi3_do_alloc_registration()
981 lun->unpacked_lun, nacl, deve); in core_scsi3_check_aptpl_registration()
1895 lun->lun_sep->sep_rtpi, lun->unpacked_lun, reg_count); in core_scsi3_update_aptpl_buf()
Dtarget_core_alua.c1290 port->sep_lun->unpacked_lun); in core_alua_update_tpg_secondary_metadata()
Dtarget_core_configfs.c890 tfo->get_fabric_name(), lun->unpacked_lun); in target_core_dev_pr_show_attr_res_pr_holder_tg_port()
/linux-4.1.27/include/trace/events/
Dtarget.h138 __field( unsigned int, unpacked_lun )
147 __entry->unpacked_lun = cmd->orig_fe_lun;
156 __get_str(initiator), __entry->unpacked_lun,
173 __field( unsigned int, unpacked_lun )
185 __entry->unpacked_lun = cmd->orig_fe_lun;
198 __get_str(initiator), __entry->unpacked_lun,
/linux-4.1.27/drivers/usb/gadget/legacy/
Dtcm_usb_gadget.h79 int unpacked_lun; member
Dtcm_usb_gadget.c1069 cmd->cmd_buf, cmd->sense_iu.sense, cmd->unpacked_lun, in usbg_cmd_work()
1151 cmd->unpacked_lun = scsilun_to_int(&cmd_iu->lun); in usbg_submit_command()
1185 cmd->cmd_buf, cmd->sense_iu.sense, cmd->unpacked_lun, in bot_cmd_work()
1245 cmd->unpacked_lun = cbw->Lun; in bot_submit_command()
/linux-4.1.27/drivers/target/sbp/
Dsbp_target.c329 se_lun->unpacked_lun, guid); in sbp_management_request_login()
605 login->lun->unpacked_lun, login->login_id); in sbp_management_request_logout()
1214 int ret, unpacked_lun; in sbp_handle_command() local
1231 unpacked_lun = req->login->lun->unpacked_lun; in sbp_handle_command()
1235 req->orb_pointer, unpacked_lun, data_length, data_dir); in sbp_handle_command()
1238 req->sense_buf, unpacked_lun, data_length, in sbp_handle_command()
2040 (se_lun->unpacked_lun & 0xffff); in sbp_update_unit_directory()
/linux-4.1.27/include/target/
Dtarget_core_fabric.h144 unsigned char *sense, u32 unpacked_lun,
Dtarget_core_base.h725 u32 unpacked_lun; member
/linux-4.1.27/drivers/target/loopback/
Dtcm_loop.c884 scsi_add_device(tl_hba->sh, 0, tl_tpg->tl_tpgt, lun->unpacked_lun); in tcm_loop_port_link()
902 se_lun->unpacked_lun); in tcm_loop_port_unlink()
905 "%d\n", 0, tl_tpg->tl_tpgt, se_lun->unpacked_lun); in tcm_loop_port_unlink()
/linux-4.1.27/drivers/scsi/qla2xxx/
Dqla_target.c500 uint32_t unpacked_lun, lun = 0; in qlt_reset() local
553 unpacked_lun = scsilun_to_int((struct scsi_lun *)&lun); in qlt_reset()
555 return qlt_issue_task_mgmt(sess, unpacked_lun, mcmd, in qlt_reset()
1377 lun = cmd->unpacked_lun; in __qlt_24xx_handle_abts()
3577 cmd->unpacked_lun = scsilun_to_int( in __qlt_do_work()
3930 uint32_t lun, unpacked_lun; in qlt_handle_task_mgmt() local
3940 unpacked_lun = scsilun_to_int((struct scsi_lun *)&lun); in qlt_handle_task_mgmt()
3953 return qlt_issue_task_mgmt(sess, unpacked_lun, fn, iocb, 0); in qlt_handle_task_mgmt()
3963 uint32_t lun, unpacked_lun; in __qlt_abort_task() local
3980 unpacked_lun = scsilun_to_int((struct scsi_lun *)&lun); in __qlt_abort_task()
[all …]
Dqla_target.h958 uint32_t unpacked_lun; member
Dtcm_qla2xxx.c582 cmd->unpacked_lun, data_length, fcp_task_attr, in tcm_qla2xxx_handle_cmd()
/linux-4.1.27/drivers/infiniband/ulp/srpt/
Dib_srpt.c1694 uint64_t unpacked_lun; in srpt_handle_cmd() local
1729 unpacked_lun = srpt_unpack_lun((uint8_t *)&srp_cmd->lun, in srpt_handle_cmd()
1732 &send_ioctx->sense_data[0], unpacked_lun, data_len, in srpt_handle_cmd()
1778 uint64_t unpacked_lun; in srpt_handle_tsk_mgmt() local
1794 unpacked_lun = srpt_unpack_lun((uint8_t *)&srp_tsk->lun, in srpt_handle_tsk_mgmt()
1796 rc = target_submit_tmr(&send_ioctx->cmd, sess, NULL, unpacked_lun, in srpt_handle_tsk_mgmt()
/linux-4.1.27/drivers/vhost/
Dscsi.c1279 if (lun->unpacked_lun >= 256) in vhost_scsi_send_evt()
1280 evt->event.lun[2] = lun->unpacked_lun >> 8 | 0x40 ; in vhost_scsi_send_evt()
1281 evt->event.lun[3] = lun->unpacked_lun & 0xFF; in vhost_scsi_send_evt()