Home
last modified time | relevance | path

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

/openbmc/linux/drivers/target/
H A Dtarget_core_alua.h90 struct se_device *, struct se_lun *,
114 extern void target_detach_tg_pt_gp(struct se_lun *);
115 extern void target_attach_tg_pt_gp(struct se_lun *, struct t10_alua_tg_pt_gp *);
116 extern ssize_t core_alua_show_tg_pt_gp_info(struct se_lun *, char *);
117 extern ssize_t core_alua_store_tg_pt_gp_info(struct se_lun *, const char *,
138 extern ssize_t core_alua_show_offline_bit(struct se_lun *, char *);
139 extern ssize_t core_alua_store_offline_bit(struct se_lun *, const char *,
141 extern ssize_t core_alua_show_secondary_status(struct se_lun *, char *);
142 extern ssize_t core_alua_store_secondary_status(struct se_lun *,
144 extern ssize_t core_alua_show_secondary_write_metadata(struct se_lun *,
[all …]
H A Dtarget_core_internal.h74 struct se_lun *lun);
75 void core_dev_del_lun(struct se_portal_group *, struct se_lun *);
79 struct se_lun_acl *, struct se_lun *lun, bool);
80 int core_dev_del_initiator_node_lun_acl(struct se_lun *,
125 struct se_lun *);
127 struct se_lun *core_tpg_alloc_lun(struct se_portal_group *, u64);
128 int core_tpg_add_lun(struct se_portal_group *, struct se_lun *,
130 void core_tpg_remove_lun(struct se_portal_group *, struct se_lun *);
144 void transport_dump_dev_info(struct se_device *, struct se_lun *,
150 void transport_clear_lun_ref(struct se_lun *);
[all …]
H A Dtarget_core_device.c50 struct se_lun *se_lun = NULL; in transport_lookup_cmd_lun() local
78 se_lun = deve->se_lun; in transport_lookup_cmd_lun()
81 se_lun = NULL; in transport_lookup_cmd_lun()
85 se_cmd->se_lun = se_lun; in transport_lookup_cmd_lun()
93 if (!se_lun) { in transport_lookup_cmd_lun()
146 struct se_lun *se_lun = NULL; in transport_lookup_tmr_lun() local
154 se_lun = deve->se_lun; in transport_lookup_tmr_lun()
157 se_lun = NULL; in transport_lookup_tmr_lun()
161 se_cmd->se_lun = se_lun; in transport_lookup_tmr_lun()
169 if (!se_lun) { in transport_lookup_tmr_lun()
[all …]
H A Dtarget_core_stat.c423 struct se_lun *lun = to_stat_port(item); in target_stat_port_inst_show()
437 struct se_lun *lun = to_stat_port(item); in target_stat_port_dev_show()
451 struct se_lun *lun = to_stat_port(item); in target_stat_port_indx_show()
465 struct se_lun *lun = to_stat_port(item); in target_stat_port_role_show()
480 struct se_lun *lun = to_stat_port(item); in target_stat_port_busy_count_show()
527 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_inst_show()
542 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_dev_show()
557 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_indx_show()
572 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_name_show()
590 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_port_index_show()
[all …]
H A Dtarget_core_fabric_configfs.c71 struct se_lun *lun; in target_fabric_mappedlun_link()
149 struct se_lun, lun_group); in target_fabric_mappedlun_unlink()
522 struct se_lun *lun = item_to_lun(item); in target_fabric_port_alua_tg_pt_gp_show()
533 struct se_lun *lun = item_to_lun(item); in target_fabric_port_alua_tg_pt_gp_store()
544 struct se_lun *lun = item_to_lun(item); in target_fabric_port_alua_tg_pt_offline_show()
555 struct se_lun *lun = item_to_lun(item); in target_fabric_port_alua_tg_pt_offline_store()
626 struct se_lun, lun_group); in target_fabric_port_link()
679 struct se_lun, lun_group); in target_fabric_port_unlink()
698 struct se_lun, lun_group); in target_fabric_port_release()
744 struct se_lun *lun; in target_fabric_make_lun()
[all …]
H A Dtarget_core_alua.c140 struct se_lun *lun; in target_emulate_report_target_port_groups()
274 struct se_lun *l_lun = cmd->se_lun; in target_emulate_set_target_port_groups()
387 struct se_lun *lun; in target_emulate_set_target_port_groups()
648 struct se_lun *lun = cmd->se_lun; in target_alua_state_check()
914 struct se_lun *lun; in core_alua_queue_state_change_ua()
1217 struct se_lun *lun, in core_alua_set_tg_pt_secondary_state()
1897 struct se_lun *lun, in core_alua_store_tg_pt_gp_info()
2157 struct se_lun *lun, in core_alua_store_offline_bit()
2192 struct se_lun *lun, in core_alua_show_secondary_status()
2199 struct se_lun *lun, in core_alua_store_secondary_status()
[all …]
H A Dtarget_core_pr.c275 cmd->se_lun->unpacked_lun, in target_scsi2_reservation_reserve()
618 struct se_lun *lun, in __core_scsi3_do_alloc_registration()
693 struct se_lun *lun, in __core_scsi3_alloc_registration()
921 struct se_lun *lun, in __core_scsi3_check_aptpl_registration()
1001 struct se_lun *lun, in core_scsi3_check_aptpl_registration()
1127 struct se_lun *lun, in core_scsi3_alloc_registration()
2040 struct se_lun *se_lun = cmd->se_lun; in core_scsi3_emulate_pro_register() local
2264 struct se_lun *se_lun = cmd->se_lun; in core_scsi3_pro_reserve() local
2505 struct se_lun *se_lun = cmd->se_lun; in core_scsi3_emulate_pro_release() local
3146 struct se_lun *se_lun = cmd->se_lun, *tmp_lun; in core_scsi3_emulate_pro_register_and_move() local
[all …]
H A Dtarget_core_tpg.c107 struct se_lun *lun_orig) in core_tpg_add_node_to_devs()
110 struct se_lun *lun; in core_tpg_add_node_to_devs()
438 struct se_lun *lun = container_of(ref, struct se_lun, lun_ref); in core_tpg_lun_ref_release()
607 struct se_lun *core_tpg_alloc_lun( in core_tpg_alloc_lun()
611 struct se_lun *lun; in core_tpg_alloc_lun()
635 struct se_lun *lun, in core_tpg_add_lun()
675 struct se_lun *lun) in core_tpg_remove_lun()
H A Dtarget_core_pr.h69 struct se_portal_group *, struct se_lun *,
H A Dtarget_core_xcopy.c75 struct se_lun *this_lun = NULL; in target_xcopy_locate_se_dev_e4()
91 this_lun = deve->se_lun; in target_xcopy_locate_se_dev_e4()
524 cmd->se_lun = &se_dev->xcopy_lun; in target_xcopy_setup_pt_cmd()
527 cmd->se_lun = xop->xop_se_cmd->se_lun; in target_xcopy_setup_pt_cmd()
H A Dtarget_core_spc.c28 static void spc_fill_alua_data(struct se_lun *lun, unsigned char *buf) in spc_fill_alua_data()
74 struct se_lun *lun = cmd->se_lun; in spc_emulate_inquiry_std()
224 struct se_lun *lun = cmd->se_lun; in spc_emulate_evpd_83()
1043 if (cmd->se_lun->lun_access_ro || target_lun_is_rdonly(cmd)) in spc_emulate_modesense()
1970 struct se_lun *l_lun = cmd->se_lun; in tcm_is_set_tpg_enabled()
2131 cmd->se_lun->unpacked_lun, in spc_rsoc_get_descr()
H A Dtarget_core_transport.c767 struct se_lun *lun = cmd->se_lun; in transport_lun_remove_cmd()
781 cmd->se_lun = NULL; in transport_lun_remove_cmd()
799 WARN_ON(!cmd->se_lun); in transport_get_sense_buffer()
1574 atomic_long_inc(&cmd->se_lun->lun_stats.cmd_pdus); in target_cmd_parse_cdb()
1590 if (!cmd->se_lun) { in transport_handle_cdb_direct()
2596 &cmd->se_lun->lun_stats.tx_data_octets); in target_complete_ok_work()
2620 &cmd->se_lun->lun_stats.rx_data_octets); in target_complete_ok_work()
2626 &cmd->se_lun->lun_stats.tx_data_octets); in target_complete_ok_work()
2972 if (cmd->se_lun) in transport_generic_free_cmd()
3232 void transport_clear_lun_ref(struct se_lun *lun) in transport_clear_lun_ref()
H A Dtarget_core_configfs.c3125 struct se_lun *lun; in target_tg_pt_gp_members_show()
/openbmc/linux/include/target/
H A Dtarget_core_base.h312 struct se_lun *tg_pt_gp_alua_lun;
494 struct se_lun *se_lun; member
658 struct se_lun *se_lun; member
677 struct se_lun *se_lun; member
737 struct se_lun { struct
863 struct se_lun xcopy_lun;
939 struct se_lun *tpg_virt_lun0;
H A Dtarget_core_fabric.h95 struct se_lun *);
97 struct se_lun *);
/openbmc/linux/drivers/target/loopback/
H A Dtcm_loop.h48 struct se_lun *tl_hba_lun;
H A Dtcm_loop.c583 struct se_lun *lun) in tcm_loop_port_link()
601 struct se_lun *se_lun) in tcm_loop_port_unlink() argument
611 se_lun->unpacked_lun); in tcm_loop_port_unlink()
614 0, tl_tpg->tl_tpgt, se_lun->unpacked_lun); in tcm_loop_port_unlink()
/openbmc/linux/drivers/target/tcm_remote/
H A Dtcm_remote.c72 struct se_lun *lun) in tcm_remote_port_link()
81 struct se_lun *lun) in tcm_remote_port_unlink()
/openbmc/linux/drivers/target/sbp/
H A Dsbp_target.c164 struct se_lun *se_lun; in sbp_get_lun_from_tpg() local
167 hlist_for_each_entry_rcu(se_lun, &se_tpg->tpg_lun_hlist, link) { in sbp_get_lun_from_tpg()
168 if (se_lun->unpacked_lun == login_lun) { in sbp_get_lun_from_tpg()
1772 struct se_lun *lun; in sbp_count_se_tpg_luns()
1785 struct se_lun *lun; in sbp_update_unit_directory()
1934 struct se_lun *se_lun) in sbp_post_link_lun() argument
1943 struct se_lun *se_lun) in sbp_pre_unlink_lun() argument
/openbmc/linux/drivers/xen/
H A Dxen-scsiback.c930 struct se_lun *se_lun; in scsiback_add_translation_entry() local
952 hlist_for_each_entry(se_lun, &tpg_entry->se_tpg.tpg_lun_hlist, link) { in scsiback_add_translation_entry()
953 if (se_lun->unpacked_lun == unpacked_lun) { in scsiback_add_translation_entry()
1722 struct se_lun *lun) in scsiback_port_link()
1735 struct se_lun *lun) in scsiback_port_unlink()
/openbmc/linux/drivers/vhost/
H A Dscsi.c1495 struct vhost_scsi_tpg *tpg, struct se_lun *lun, in vhost_scsi_send_evt()
2136 struct se_lun *lun, bool plug) in vhost_scsi_do_plug()
2167 static void vhost_scsi_hotplug(struct vhost_scsi_tpg *tpg, struct se_lun *lun) in vhost_scsi_hotplug()
2172 static void vhost_scsi_hotunplug(struct vhost_scsi_tpg *tpg, struct se_lun *lun) in vhost_scsi_hotunplug()
2178 struct se_lun *lun) in vhost_scsi_port_link()
2192 struct se_lun *lun) in vhost_scsi_port_unlink()
/openbmc/linux/drivers/usb/gadget/function/
H A Df_tcm.c1641 static int usbg_port_link(struct se_portal_group *se_tpg, struct se_lun *lun) in usbg_port_link()
1651 struct se_lun *se_lun) in usbg_port_unlink() argument