Home
last modified time | relevance | path

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

/linux-6.12.1/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.c49 struct se_lun *se_lun = NULL; in transport_lookup_cmd_lun() local
77 se_lun = deve->se_lun; in transport_lookup_cmd_lun()
79 if (!percpu_ref_tryget_live(&se_lun->lun_ref)) { in transport_lookup_cmd_lun()
80 se_lun = NULL; in transport_lookup_cmd_lun()
84 se_cmd->se_lun = se_lun; in transport_lookup_cmd_lun()
92 if (!se_lun) { in transport_lookup_cmd_lun()
114 se_lun = se_sess->se_tpg->tpg_virt_lun0; in transport_lookup_cmd_lun()
115 if (!percpu_ref_tryget_live(&se_lun->lun_ref)) in transport_lookup_cmd_lun()
118 se_cmd->se_lun = se_sess->se_tpg->tpg_virt_lun0; in transport_lookup_cmd_lun()
128 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()
913 struct se_lun *lun; in core_alua_queue_state_change_ua()
1055 struct se_lun *l_lun, in core_alua_do_port_transition()
1168 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()
619 struct se_lun *lun, in __core_scsi3_do_alloc_registration()
694 struct se_lun *lun, in __core_scsi3_alloc_registration()
705 struct se_lun *lun_tmp, *next, *dest_lun; in __core_scsi3_alloc_registration()
787 dest_lun = deve_tmp->se_lun; in __core_scsi3_alloc_registration()
922 struct se_lun *lun, in __core_scsi3_check_aptpl_registration()
1002 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.c76 struct se_lun *this_lun = NULL; in target_xcopy_locate_se_dev_e4()
92 this_lun = deve->se_lun; in target_xcopy_locate_se_dev_e4()
525 cmd->se_lun = &se_dev->xcopy_lun; in target_xcopy_setup_pt_cmd()
528 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()
1612 if (!cmd->se_lun) { in __target_submit()
2598 &cmd->se_lun->lun_stats.tx_data_octets); in target_complete_ok_work()
2622 &cmd->se_lun->lun_stats.rx_data_octets); in target_complete_ok_work()
2628 &cmd->se_lun->lun_stats.tx_data_octets); in target_complete_ok_work()
2974 if (cmd->se_lun) in transport_generic_free_cmd()
3234 void transport_clear_lun_ref(struct se_lun *lun) in transport_clear_lun_ref()
Dtarget_core_configfs.c3163 struct se_lun *lun; in target_tg_pt_gp_members_show()
/linux-6.12.1/include/target/
Dtarget_core_base.h321 struct se_lun *tg_pt_gp_alua_lun;
503 struct se_lun *se_lun; member
667 struct se_lun *se_lun; member
686 struct se_lun *se_lun; member
747 struct se_lun { struct
873 struct se_lun xcopy_lun;
949 struct se_lun *tpg_virt_lun0;
Dtarget_core_fabric.h95 struct se_lun *);
97 struct se_lun *);
/linux-6.12.1/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.12.1/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.12.1/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.12.1/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.12.1/drivers/vhost/
Dscsi.c1509 struct vhost_scsi_tpg *tpg, struct se_lun *lun, in vhost_scsi_send_evt()
2150 struct se_lun *lun, bool plug) in vhost_scsi_do_plug()
2181 static void vhost_scsi_hotplug(struct vhost_scsi_tpg *tpg, struct se_lun *lun) in vhost_scsi_hotplug()
2186 static void vhost_scsi_hotunplug(struct vhost_scsi_tpg *tpg, struct se_lun *lun) in vhost_scsi_hotunplug()
2192 struct se_lun *lun) in vhost_scsi_port_link()
2206 struct se_lun *lun) in vhost_scsi_port_unlink()
/linux-6.12.1/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