Home
last modified time | relevance | path

Searched refs:se_lun (Results 1 – 22 of 22) sorted by relevance

/linux-4.1.27/drivers/target/
Dtarget_core_internal.h15 int core_enable_device_list_for_node(struct se_lun *, struct se_lun_acl *,
17 int core_disable_device_list_for_node(struct se_lun *, struct se_lun_acl *,
19 void core_clear_lun_from_tpg(struct se_lun *, struct se_portal_group *);
21 struct se_lun *);
23 struct se_lun *);
24 struct se_lun *core_dev_add_lun(struct se_portal_group *, struct se_device *, u32);
25 void core_dev_del_lun(struct se_portal_group *, struct se_lun *);
26 struct se_lun *core_get_lun_from_tpg(struct se_portal_group *, u32);
32 struct se_lun *, struct se_lun_acl *);
58 struct se_lun *core_tpg_alloc_lun(struct se_portal_group *, u32);
[all …]
Dtarget_core_stat.c545 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); in target_stat_scsi_port_show_attr_inst()
567 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); in target_stat_scsi_port_show_attr_dev()
587 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); in target_stat_scsi_port_show_attr_indx()
606 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); in target_stat_scsi_port_show_attr_role()
629 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); in target_stat_scsi_port_show_attr_busy_count()
688 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); in target_stat_scsi_tgt_port_show_attr_inst()
710 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); in target_stat_scsi_tgt_port_show_attr_dev()
730 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); in target_stat_scsi_tgt_port_show_attr_indx()
749 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); in target_stat_scsi_tgt_port_show_attr_name()
772 struct se_lun *lun = container_of(pgrps, struct se_lun, port_stat_grps); in target_stat_scsi_tgt_port_show_attr_port_index()
[all …]
Dtarget_core_device.c61 struct se_lun *se_lun = NULL; in transport_lookup_cmd_lun() local
91 se_lun = deve->se_lun; in transport_lookup_cmd_lun()
92 se_cmd->se_lun = deve->se_lun; in transport_lookup_cmd_lun()
97 percpu_ref_get(&se_lun->lun_ref); in transport_lookup_cmd_lun()
102 if (!se_lun) { in transport_lookup_cmd_lun()
122 se_lun = &se_sess->se_tpg->tpg_virt_lun0; in transport_lookup_cmd_lun()
123 se_cmd->se_lun = &se_sess->se_tpg->tpg_virt_lun0; in transport_lookup_cmd_lun()
127 percpu_ref_get(&se_lun->lun_ref); in transport_lookup_cmd_lun()
132 se_cmd->se_dev = se_lun->lun_se_dev; in transport_lookup_cmd_lun()
134 dev = se_lun->lun_se_dev; in transport_lookup_cmd_lun()
[all …]
Dtarget_core_alua.h148 extern ssize_t core_alua_show_offline_bit(struct se_lun *, char *);
149 extern ssize_t core_alua_store_offline_bit(struct se_lun *, const char *,
151 extern ssize_t core_alua_show_secondary_status(struct se_lun *, char *);
152 extern ssize_t core_alua_store_secondary_status(struct se_lun *,
154 extern ssize_t core_alua_show_secondary_write_metadata(struct se_lun *,
156 extern ssize_t core_alua_store_secondary_write_metadata(struct se_lun *,
Dtarget_core_fabric_configfs.c80 struct se_lun *lun = container_of(to_config_group(lun_ci), in target_fabric_mappedlun_link()
81 struct se_lun, lun_group); in target_fabric_mappedlun_link()
154 struct se_lun *lun; in target_fabric_mappedlun_unlink()
163 if (!deve->se_lun) in target_fabric_mappedlun_unlink()
166 lun = container_of(to_config_group(lun_ci), struct se_lun, lun_group); in target_fabric_mappedlun_unlink()
639 CONFIGFS_EATTR_STRUCT(target_fabric_port, se_lun);
654 struct se_lun *lun, in target_fabric_port_show_attr_alua_tg_pt_gp()
664 struct se_lun *lun, in target_fabric_port_store_attr_alua_tg_pt_gp()
680 struct se_lun *lun, in target_fabric_port_show_attr_alua_tg_pt_offline()
690 struct se_lun *lun, in target_fabric_port_store_attr_alua_tg_pt_offline()
[all …]
Dtarget_core_tpg.c60 struct se_lun *lun; in core_clear_initiator_node_from_tpg()
69 if (!deve->se_lun) { in core_clear_initiator_node_from_tpg()
76 lun = deve->se_lun; in core_clear_initiator_node_from_tpg()
132 struct se_lun *lun; in core_tpg_add_node_to_devs()
335 struct se_lun *lun; in core_tpg_clear_object_luns()
645 struct se_lun *lun = container_of(ref, struct se_lun, lun_ref); in core_tpg_lun_ref_release()
654 struct se_lun *lun = &se_tpg->tpg_virt_lun0; in core_tpg_setup_virtual_lun0()
681 struct se_lun *lun; in core_tpg_register()
685 sizeof(struct se_lun), GFP_KERNEL); in core_tpg_register()
785 struct se_lun *core_tpg_alloc_lun( in core_tpg_alloc_lun()
[all …]
Dtarget_core_xcopy.c502 pt_cmd->se_lun->lun_sep = &xcopy_pt_port; in target_xcopy_setup_pt_port()
505 pt_cmd->se_lun->lun_sep); in target_xcopy_setup_pt_port()
507 pt_cmd->se_lun = ec_cmd->se_lun; in target_xcopy_setup_pt_port()
512 pt_cmd->se_lun = ec_cmd->se_lun; in target_xcopy_setup_pt_port()
514 pt_cmd->se_lun); in target_xcopy_setup_pt_port()
525 pt_cmd->se_lun->lun_sep = &xcopy_pt_port; in target_xcopy_setup_pt_port()
528 pt_cmd->se_lun->lun_sep); in target_xcopy_setup_pt_port()
530 pt_cmd->se_lun = ec_cmd->se_lun; in target_xcopy_setup_pt_port()
535 pt_cmd->se_lun = ec_cmd->se_lun; in target_xcopy_setup_pt_port()
537 pt_cmd->se_lun); in target_xcopy_setup_pt_port()
[all …]
Dtarget_core_transport.c588 cmd->se_lun = NULL; in transport_cmd_check_stop()
638 struct se_lun *lun = cmd->se_lun; in transport_lun_remove_cmd()
682 WARN_ON(!cmd->se_lun); in transport_get_sense_buffer()
1284 spin_lock(&cmd->se_lun->lun_sep_lock); in target_setup_cmd_from_cdb()
1285 if (cmd->se_lun->lun_sep) in target_setup_cmd_from_cdb()
1286 cmd->se_lun->lun_sep->sep_stats.cmd_pdus++; in target_setup_cmd_from_cdb()
1287 spin_unlock(&cmd->se_lun->lun_sep_lock); in target_setup_cmd_from_cdb()
1301 if (!cmd->se_lun) { in transport_handle_cdb_direct()
2085 spin_lock(&cmd->se_lun->lun_sep_lock); in target_complete_ok_work()
2086 if (cmd->se_lun->lun_sep) { in target_complete_ok_work()
[all …]
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()
653 pr_reg->pr_reg_tg_pt_lun = deve->se_lun; in __core_scsi3_do_alloc_registration()
900 struct se_lun *lun, in __core_scsi3_check_aptpl_registration()
971 struct se_lun *lun, in core_scsi3_check_aptpl_registration()
1824 struct se_lun *lun; in core_scsi3_update_aptpl_buf()
2007 struct se_lun *se_lun = cmd->se_lun; in core_scsi3_emulate_pro_register() local
[all …]
Dtarget_core_pr.h62 struct se_portal_group *, struct se_lun *,
Dtarget_core_alua.c263 port = cmd->se_lun->lun_sep; in target_emulate_report_target_port_groups()
288 struct se_port *port, *l_port = cmd->se_lun->lun_sep; in target_emulate_set_target_port_groups()
699 struct se_lun *lun = cmd->se_lun; in target_alua_state_check()
2017 struct se_lun *lun; in core_alua_store_tg_pt_gp_info()
2270 ssize_t core_alua_show_offline_bit(struct se_lun *lun, char *page) in core_alua_show_offline_bit()
2280 struct se_lun *lun, in core_alua_store_offline_bit()
2316 struct se_lun *lun, in core_alua_show_secondary_status()
2323 struct se_lun *lun, in core_alua_store_secondary_status()
2348 struct se_lun *lun, in core_alua_show_secondary_write_metadata()
2356 struct se_lun *lun, in core_alua_store_secondary_write_metadata()
Dtarget_core_spc.c72 struct se_lun *lun = cmd->se_lun; in spc_emulate_inquiry_std()
183 struct se_lun *lun = cmd->se_lun; in spc_emulate_evpd_83()
701 struct se_portal_group *tpg = cmd->se_lun->lun_sep->sep_tpg; in spc_emulate_inquiry()
998 if ((cmd->se_lun->lun_access & TRANSPORT_LUNFLAGS_READ_ONLY) || in spc_emulate_modesense()
Dtarget_core_configfs.c865 struct se_lun *lun; in target_core_dev_pr_show_attr_res_pr_holder_tg_port()
2344 struct se_lun *lun; in target_core_alua_tg_pt_gp_show_attr_members()
/linux-4.1.27/include/target/
Dtarget_core_base.h395 struct se_lun *pr_reg_tg_pt_lun;
439 struct se_lun *tmr_lun;
515 struct se_lun *se_lun; member
649 struct se_lun *se_lun; member
671 struct se_lun *se_lun; member
718 struct se_lun { struct
821 struct se_lun xcopy_lun;
863 struct se_lun *sep_lun;
891 struct se_lun **tpg_lun_list;
892 struct se_lun tpg_virt_lun0;
Dtarget_core_fabric.h85 struct se_lun *);
87 struct se_lun *);
/linux-4.1.27/drivers/target/sbp/
Dsbp_target.c112 struct sbp_session *session, struct se_lun *lun) in sbp_login_find_by_lun()
128 struct se_lun *lun, in sbp_login_count_all_by_lun()
178 static struct se_lun *sbp_get_lun_from_tpg(struct sbp_tpg *tpg, int lun) in sbp_get_lun_from_tpg()
181 struct se_lun *se_lun; in sbp_get_lun_from_tpg() local
187 se_lun = se_tpg->tpg_lun_list[lun]; in sbp_get_lun_from_tpg()
189 if (se_lun->lun_status != TRANSPORT_LUN_STATUS_ACTIVE) in sbp_get_lun_from_tpg()
190 se_lun = ERR_PTR(-ENODEV); in sbp_get_lun_from_tpg()
194 return se_lun; in sbp_get_lun_from_tpg()
298 struct se_lun *se_lun; in sbp_management_request_login() local
306 se_lun = sbp_get_lun_from_tpg(tpg, in sbp_management_request_login()
[all …]
Dsbp_target.h128 struct se_lun *lun;
/linux-4.1.27/drivers/target/loopback/
Dtcm_loop.h57 struct se_lun *tl_hba_lun;
Dtcm_loop.c874 struct se_lun *lun) in tcm_loop_port_link()
892 struct se_lun *se_lun) in tcm_loop_port_unlink() argument
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/vhost/
Dscsi.c1261 struct se_lun *lun, in vhost_scsi_send_evt()
1753 struct se_lun *lun, bool plug) in vhost_scsi_do_plug()
1779 static void vhost_scsi_hotplug(struct vhost_scsi_tpg *tpg, struct se_lun *lun) in vhost_scsi_hotplug()
1784 static void vhost_scsi_hotunplug(struct vhost_scsi_tpg *tpg, struct se_lun *lun) in vhost_scsi_hotunplug()
1790 struct se_lun *lun) in vhost_scsi_port_link()
1809 struct se_lun *lun) in vhost_scsi_port_unlink()
/linux-4.1.27/drivers/usb/gadget/legacy/
Dtcm_usb_gadget.c1839 static int usbg_port_link(struct se_portal_group *se_tpg, struct se_lun *lun) in usbg_port_link()
1849 struct se_lun *se_lun) in usbg_port_unlink() argument
/linux-4.1.27/drivers/xen/
Dxen-scsiback.c1853 struct se_lun *lun) in scsiback_port_link()
1866 struct se_lun *lun) in scsiback_port_unlink()