/Linux-v5.10/drivers/target/ |
D | target_core_internal.h | 61 int core_alloc_rtpi(struct se_lun *lun, struct se_device *dev); 68 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 *, 124 struct se_lun *); 126 struct se_lun *core_tpg_alloc_lun(struct se_portal_group *, u64); [all …]
|
D | target_core_alua.h | 90 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 …]
|
D | target_core_device.c | 50 struct se_lun *se_lun = NULL; in transport_lookup_cmd_lun() local 68 se_lun = rcu_dereference(deve->se_lun); in transport_lookup_cmd_lun() 70 if (!percpu_ref_tryget_live(&se_lun->lun_ref)) { in transport_lookup_cmd_lun() 71 se_lun = NULL; in transport_lookup_cmd_lun() 75 se_cmd->se_lun = se_lun; in transport_lookup_cmd_lun() 94 if (!se_lun) { in transport_lookup_cmd_lun() 109 se_lun = se_sess->se_tpg->tpg_virt_lun0; in transport_lookup_cmd_lun() 110 se_cmd->se_lun = se_sess->se_tpg->tpg_virt_lun0; in transport_lookup_cmd_lun() 113 percpu_ref_get(&se_lun->lun_ref); in transport_lookup_cmd_lun() 132 se_cmd->se_dev = rcu_dereference_raw(se_lun->lun_se_dev); in transport_lookup_cmd_lun() [all …]
|
D | target_core_fabric_configfs.c | 70 struct se_lun *lun; in target_fabric_mappedlun_link() 82 lun = container_of(to_config_group(lun_ci), struct se_lun, lun_group); in target_fabric_mappedlun_link() 147 struct se_lun *lun = container_of(to_config_group(lun_ci), in target_fabric_mappedlun_unlink() 148 struct se_lun, lun_group); in target_fabric_mappedlun_unlink() 512 static struct se_lun *item_to_lun(struct config_item *item) in item_to_lun() 514 return container_of(to_config_group(item), struct se_lun, in item_to_lun() 521 struct se_lun *lun = item_to_lun(item); in target_fabric_port_alua_tg_pt_gp_show() 532 struct se_lun *lun = item_to_lun(item); in target_fabric_port_alua_tg_pt_gp_store() 543 struct se_lun *lun = item_to_lun(item); in target_fabric_port_alua_tg_pt_offline_show() 554 struct se_lun *lun = item_to_lun(item); in target_fabric_port_alua_tg_pt_offline_store() [all …]
|
D | target_core_stat.c | 417 static struct se_lun *to_stat_port(struct config_item *item) in to_stat_port() 421 return container_of(pgrps, struct se_lun, port_stat_grps); in to_stat_port() 426 struct se_lun *lun = to_stat_port(item); in target_stat_port_inst_show() 440 struct se_lun *lun = to_stat_port(item); in target_stat_port_dev_show() 454 struct se_lun *lun = to_stat_port(item); in target_stat_port_indx_show() 468 struct se_lun *lun = to_stat_port(item); in target_stat_port_role_show() 483 struct se_lun *lun = to_stat_port(item); in target_stat_port_busy_count_show() 520 static struct se_lun *to_stat_tgt_port(struct config_item *item) in to_stat_tgt_port() 524 return container_of(pgrps, struct se_lun, port_stat_grps); in to_stat_tgt_port() 530 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_inst_show() [all …]
|
D | target_core_alua.c | 35 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() 250 spin_lock(&cmd->se_lun->lun_tg_pt_gp_lock); in target_emulate_report_target_port_groups() 251 tg_pt_gp = cmd->se_lun->lun_tg_pt_gp; in target_emulate_report_target_port_groups() 254 spin_unlock(&cmd->se_lun->lun_tg_pt_gp_lock); in target_emulate_report_target_port_groups() 271 struct se_lun *l_lun = cmd->se_lun; in target_emulate_set_target_port_groups() 384 struct se_lun *lun; in target_emulate_set_target_port_groups() 674 struct se_lun *lun = cmd->se_lun; in target_alua_state_check() 939 struct se_lun *lun; in core_alua_queue_state_change_ua() [all …]
|
D | target_core_tpg.c | 106 struct se_lun *lun_orig) in core_tpg_add_node_to_devs() 109 struct se_lun *lun; in core_tpg_add_node_to_devs() 437 struct se_lun *lun = container_of(ref, struct se_lun, lun_ref); in core_tpg_lun_ref_release() 542 struct se_lun *core_tpg_alloc_lun( in core_tpg_alloc_lun() 546 struct se_lun *lun; in core_tpg_alloc_lun() 570 struct se_lun *lun, in core_tpg_add_lun() 616 struct se_lun *lun) in core_tpg_remove_lun()
|
D | target_core_pr.c | 231 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() 617 struct se_lun *lun, in __core_scsi3_do_alloc_registration() 692 struct se_lun *lun, in __core_scsi3_alloc_registration() 703 struct se_lun *lun_tmp, *next, *dest_lun; in __core_scsi3_alloc_registration() 786 dest_lun = rcu_dereference_check(deve_tmp->se_lun, in __core_scsi3_alloc_registration() 923 struct se_lun *lun, in __core_scsi3_check_aptpl_registration() 1005 struct se_lun *lun, in core_scsi3_check_aptpl_registration() [all …]
|
D | target_core_spc.c | 28 static void spc_fill_alua_data(struct se_lun *lun, unsigned char *buf) in spc_fill_alua_data() 53 struct se_lun *lun = cmd->se_lun; in spc_emulate_inquiry_std() 171 struct se_lun *lun = cmd->se_lun; in spc_emulate_evpd_83() 704 struct se_portal_group *tpg = cmd->se_lun->lun_tpg; in spc_emulate_inquiry() 1015 if (cmd->se_lun->lun_access_ro || target_lun_is_rdonly(cmd)) in spc_emulate_modesense()
|
D | target_core_pr.h | 69 struct se_portal_group *, struct se_lun *,
|
D | target_core_transport.c | 677 cmd->se_lun = NULL; in transport_cmd_check_stop_to_fabric() 708 struct se_lun *lun = cmd->se_lun; in transport_lun_remove_cmd() 733 WARN_ON(!cmd->se_lun); in transport_get_sense_buffer() 1491 atomic_long_inc(&cmd->se_lun->lun_stats.cmd_pdus); in target_cmd_parse_cdb() 1505 if (!cmd->se_lun) { in transport_handle_cdb_direct() 2399 &cmd->se_lun->lun_stats.tx_data_octets); in target_complete_ok_work() 2423 &cmd->se_lun->lun_stats.rx_data_octets); in target_complete_ok_work() 2429 &cmd->se_lun->lun_stats.tx_data_octets); in target_complete_ok_work() 2775 if (cmd->se_lun) in transport_generic_free_cmd() 3022 void transport_clear_lun_ref(struct se_lun *lun) in transport_clear_lun_ref()
|
D | target_core_xcopy.c | 528 cmd->se_lun = &se_dev->xcopy_lun; in target_xcopy_setup_pt_cmd() 531 cmd->se_lun = xop->xop_se_cmd->se_lun; in target_xcopy_setup_pt_cmd()
|
D | target_core_configfs.c | 3021 struct se_lun *lun; in target_tg_pt_gp_members_show()
|
/Linux-v5.10/include/target/ |
D | target_core_base.h | 306 struct se_lun *tg_pt_gp_alua_lun; 487 struct se_lun *se_lun; member 642 struct se_lun *se_lun; member 661 struct se_lun __rcu *se_lun; member 721 struct se_lun { struct 836 struct se_lun xcopy_lun; 889 struct se_lun *tpg_virt_lun0;
|
D | target_core_fabric.h | 94 struct se_lun *); 96 struct se_lun *);
|
/Linux-v5.10/drivers/target/loopback/ |
D | tcm_loop.h | 49 struct se_lun *tl_hba_lun;
|
D | tcm_loop.c | 622 struct se_lun *lun) in tcm_loop_port_link() 640 struct se_lun *se_lun) in tcm_loop_port_unlink() argument 650 se_lun->unpacked_lun); in tcm_loop_port_unlink() 653 0, tl_tpg->tl_tpgt, se_lun->unpacked_lun); in tcm_loop_port_unlink()
|
/Linux-v5.10/drivers/target/sbp/ |
D | sbp_target.c | 164 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() 1800 struct se_lun *lun; in sbp_count_se_tpg_luns() 1813 struct se_lun *lun; in sbp_update_unit_directory() 1962 struct se_lun *se_lun) in sbp_post_link_lun() argument 1971 struct se_lun *se_lun) in sbp_pre_unlink_lun() argument
|
/Linux-v5.10/drivers/xen/ |
D | xen-scsiback.c | 871 struct se_lun *se_lun; in scsiback_add_translation_entry() local 893 hlist_for_each_entry(se_lun, &tpg_entry->se_tpg.tpg_lun_hlist, link) { in scsiback_add_translation_entry() 894 if (se_lun->unpacked_lun == unpacked_lun) { in scsiback_add_translation_entry() 1684 struct se_lun *lun) in scsiback_port_link() 1697 struct se_lun *lun) in scsiback_port_unlink()
|
/Linux-v5.10/drivers/vhost/ |
D | scsi.c | 1396 struct se_lun *lun, in vhost_scsi_send_evt() 1984 struct se_lun *lun, bool plug) in vhost_scsi_do_plug() 2010 static void vhost_scsi_hotplug(struct vhost_scsi_tpg *tpg, struct se_lun *lun) in vhost_scsi_hotplug() 2015 static void vhost_scsi_hotunplug(struct vhost_scsi_tpg *tpg, struct se_lun *lun) in vhost_scsi_hotunplug() 2021 struct se_lun *lun) in vhost_scsi_port_link() 2048 struct se_lun *lun) in vhost_scsi_port_unlink()
|
/Linux-v5.10/drivers/usb/gadget/function/ |
D | f_tcm.c | 1689 static int usbg_port_link(struct se_portal_group *se_tpg, struct se_lun *lun) in usbg_port_link() 1699 struct se_lun *se_lun) in usbg_port_unlink() argument
|