Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/target/
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 …]
Dtarget_core_internal.h68 int core_enable_device_list_for_node(struct se_lun *, struct se_lun_acl *,
70 void core_disable_device_list_for_node(struct se_lun *, struct se_dev_entry *,
72 void core_clear_lun_from_tpg(struct se_lun *, struct se_portal_group *);
74 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 *,
[all …]
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()
80 if (!percpu_ref_tryget_live(&se_lun->lun_ref)) { 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()
115 se_lun = se_sess->se_tpg->tpg_virt_lun0; in transport_lookup_cmd_lun()
116 if (!percpu_ref_tryget_live(&se_lun->lun_ref)) in transport_lookup_cmd_lun()
119 se_cmd->se_lun = se_sess->se_tpg->tpg_virt_lun0; in transport_lookup_cmd_lun()
129 se_cmd->se_dev = rcu_dereference_raw(se_lun->lun_se_dev); in transport_lookup_cmd_lun()
[all …]
Dtarget_core_stat.c414 static struct se_lun *to_stat_port(struct config_item *item) in to_stat_port()
418 return container_of(pgrps, struct se_lun, port_stat_grps); in to_stat_port()
423 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()
517 static struct se_lun *to_stat_tgt_port(struct config_item *item) in to_stat_tgt_port()
521 return container_of(pgrps, struct se_lun, port_stat_grps); in to_stat_tgt_port()
527 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_inst_show()
[all …]
Dtarget_core_fabric_configfs.c71 struct se_lun *lun; in target_fabric_mappedlun_link()
83 lun = container_of(to_config_group(lun_ci), struct se_lun, lun_group); in target_fabric_mappedlun_link()
148 struct se_lun *lun = container_of(to_config_group(lun_ci), in target_fabric_mappedlun_unlink()
149 struct se_lun, lun_group); in target_fabric_mappedlun_unlink()
513 static struct se_lun *item_to_lun(struct config_item *item) in item_to_lun()
515 return container_of(to_config_group(item), struct se_lun, in item_to_lun()
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()
[all …]
Dtarget_core_alua.c35 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; in target_emulate_report_target_port_groups()
254 tg_pt_gp = rcu_dereference(cmd->se_lun->lun_tg_pt_gp); 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()
1056 struct se_lun *l_lun, in core_alua_do_port_transition()
1169 static int core_alua_update_tpg_secondary_metadata(struct se_lun *lun) in core_alua_update_tpg_secondary_metadata()
[all …]
Dtarget_core_pr.c231 cmd->se_lun->unpacked_lun, cmd->orig_fe_lun, in target_scsi2_reservation_release()
275 cmd->se_lun->unpacked_lun, in target_scsi2_reservation_reserve()
278 " from %s \n", cmd->se_lun->unpacked_lun, in target_scsi2_reservation_reserve()
293 cmd->se_lun->unpacked_lun, cmd->orig_fe_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()
704 struct se_lun *lun_tmp, *next, *dest_lun; in __core_scsi3_alloc_registration()
786 dest_lun = deve_tmp->se_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()
[all …]
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()
Dtarget_core_pr.h69 struct se_portal_group *, struct se_lun *,
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()
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()
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()
Dtarget_core_configfs.c3125 struct se_lun *lun; in target_tg_pt_gp_members_show()
/linux-6.6.21/include/target/
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;
Dtarget_core_fabric.h95 struct se_lun *);
97 struct se_lun *);
/linux-6.6.21/drivers/target/tcm_remote/
Dtcm_remote.c72 struct se_lun *lun) in tcm_remote_port_link()
81 struct se_lun *lun) in tcm_remote_port_unlink()
/linux-6.6.21/drivers/target/loopback/
Dtcm_loop.h48 struct se_lun *tl_hba_lun;
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()
/linux-6.6.21/drivers/target/sbp/
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
/linux-6.6.21/drivers/xen/
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()
/linux-6.6.21/drivers/vhost/
Dscsi.c1489 struct vhost_scsi_tpg *tpg, struct se_lun *lun, in vhost_scsi_send_evt()
2129 struct se_lun *lun, bool plug) in vhost_scsi_do_plug()
2160 static void vhost_scsi_hotplug(struct vhost_scsi_tpg *tpg, struct se_lun *lun) in vhost_scsi_hotplug()
2165 static void vhost_scsi_hotunplug(struct vhost_scsi_tpg *tpg, struct se_lun *lun) in vhost_scsi_hotunplug()
2171 struct se_lun *lun) in vhost_scsi_port_link()
2185 struct se_lun *lun) in vhost_scsi_port_unlink()
/linux-6.6.21/drivers/usb/gadget/function/
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