Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/target/
Dtarget_core_internal.h61 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 …]
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_device.c63 struct se_lun *se_lun = NULL; in transport_lookup_cmd_lun() local
81 se_lun = rcu_dereference(deve->se_lun); in transport_lookup_cmd_lun()
83 if (!percpu_ref_tryget_live(&se_lun->lun_ref)) { in transport_lookup_cmd_lun()
84 se_lun = NULL; in transport_lookup_cmd_lun()
88 se_cmd->se_lun = rcu_dereference(deve->se_lun); in transport_lookup_cmd_lun()
108 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()
146 se_cmd->se_dev = rcu_dereference_raw(se_lun->lun_se_dev); in transport_lookup_cmd_lun()
[all …]
Dtarget_core_fabric_configfs.c78 struct se_lun *lun; in target_fabric_mappedlun_link()
90 lun = container_of(to_config_group(lun_ci), struct se_lun, lun_group); in target_fabric_mappedlun_link()
155 struct se_lun *lun = container_of(to_config_group(lun_ci), in target_fabric_mappedlun_unlink()
156 struct se_lun, lun_group); in target_fabric_mappedlun_unlink()
520 static struct se_lun *item_to_lun(struct config_item *item) in item_to_lun()
522 return container_of(to_config_group(item), struct se_lun, in item_to_lun()
529 struct se_lun *lun = item_to_lun(item); in target_fabric_port_alua_tg_pt_gp_show()
540 struct se_lun *lun = item_to_lun(item); in target_fabric_port_alua_tg_pt_gp_store()
551 struct se_lun *lun = item_to_lun(item); in target_fabric_port_alua_tg_pt_offline_show()
562 struct se_lun *lun = item_to_lun(item); in target_fabric_port_alua_tg_pt_offline_store()
[all …]
Dtarget_core_stat.c448 static struct se_lun *to_stat_port(struct config_item *item) in to_stat_port()
452 return container_of(pgrps, struct se_lun, port_stat_grps); in to_stat_port()
457 struct se_lun *lun = to_stat_port(item); in target_stat_port_inst_show()
471 struct se_lun *lun = to_stat_port(item); in target_stat_port_dev_show()
485 struct se_lun *lun = to_stat_port(item); in target_stat_port_indx_show()
499 struct se_lun *lun = to_stat_port(item); in target_stat_port_role_show()
514 struct se_lun *lun = to_stat_port(item); in target_stat_port_busy_count_show()
551 static struct se_lun *to_stat_tgt_port(struct config_item *item) in to_stat_tgt_port()
555 return container_of(pgrps, struct se_lun, port_stat_grps); in to_stat_tgt_port()
561 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_inst_show()
[all …]
Dtarget_core_alua.c48 struct se_lun *lun, int explicit, int offline);
52 static void __target_attach_tg_pt_gp(struct se_lun *lun,
153 struct se_lun *lun; in target_emulate_report_target_port_groups()
263 spin_lock(&cmd->se_lun->lun_tg_pt_gp_lock); in target_emulate_report_target_port_groups()
264 tg_pt_gp = cmd->se_lun->lun_tg_pt_gp; in target_emulate_report_target_port_groups()
267 spin_unlock(&cmd->se_lun->lun_tg_pt_gp_lock); in target_emulate_report_target_port_groups()
284 struct se_lun *l_lun = cmd->se_lun; in target_emulate_set_target_port_groups()
397 struct se_lun *lun; in target_emulate_set_target_port_groups()
687 struct se_lun *lun = cmd->se_lun; in target_alua_state_check()
953 struct se_lun *lun; in core_alua_queue_state_change_ua()
[all …]
Dtarget_core_tpg.c122 struct se_lun *lun_orig) in core_tpg_add_node_to_devs()
125 struct se_lun *lun; in core_tpg_add_node_to_devs()
453 struct se_lun *lun = container_of(ref, struct se_lun, lun_ref); in core_tpg_lun_ref_release()
567 struct se_lun *core_tpg_alloc_lun( in core_tpg_alloc_lun()
571 struct se_lun *lun; in core_tpg_alloc_lun()
596 struct se_lun *lun, in core_tpg_add_lun()
643 struct se_lun *lun) in core_tpg_remove_lun()
Dtarget_core_pr.c239 cmd->se_lun->unpacked_lun, cmd->orig_fe_lun, in target_scsi2_reservation_release()
283 cmd->se_lun->unpacked_lun, in target_scsi2_reservation_reserve()
286 " from %s \n", cmd->se_lun->unpacked_lun, in target_scsi2_reservation_reserve()
301 cmd->se_lun->unpacked_lun, cmd->orig_fe_lun, in target_scsi2_reservation_reserve()
625 struct se_lun *lun, in __core_scsi3_do_alloc_registration()
700 struct se_lun *lun, in __core_scsi3_alloc_registration()
711 struct se_lun *lun_tmp, *next, *dest_lun; in __core_scsi3_alloc_registration()
794 dest_lun = rcu_dereference_check(deve_tmp->se_lun, in __core_scsi3_alloc_registration()
931 struct se_lun *lun, in __core_scsi3_check_aptpl_registration()
1013 struct se_lun *lun, in core_scsi3_check_aptpl_registration()
[all …]
Dtarget_core_xcopy.c534 pt_cmd->se_lun = ec_cmd->se_lun; in target_xcopy_setup_pt_port()
539 pt_cmd->se_lun = ec_cmd->se_lun; in target_xcopy_setup_pt_port()
541 pt_cmd->se_lun); in target_xcopy_setup_pt_port()
553 pt_cmd->se_lun = ec_cmd->se_lun; in target_xcopy_setup_pt_port()
558 pt_cmd->se_lun = ec_cmd->se_lun; in target_xcopy_setup_pt_port()
560 pt_cmd->se_lun); in target_xcopy_setup_pt_port()
576 pt_cmd->se_lun = &se_dev->xcopy_lun; in target_xcopy_init_pt_lun()
Dtarget_core_spc.c41 static void spc_fill_alua_data(struct se_lun *lun, unsigned char *buf) in spc_fill_alua_data()
66 struct se_lun *lun = cmd->se_lun; in spc_emulate_inquiry_std()
177 struct se_lun *lun = cmd->se_lun; in spc_emulate_evpd_83()
707 struct se_portal_group *tpg = cmd->se_lun->lun_tpg; in spc_emulate_inquiry()
1009 if (cmd->se_lun->lun_access_ro || target_lun_is_rdonly(cmd)) in spc_emulate_modesense()
Dtarget_core_pr.h68 struct se_portal_group *, struct se_lun *,
Dtarget_core_transport.c658 cmd->se_lun = NULL; in transport_cmd_check_stop_to_fabric()
689 struct se_lun *lun = cmd->se_lun; in transport_lun_remove_cmd()
740 WARN_ON(!cmd->se_lun); in transport_get_sense_buffer()
1410 atomic_long_inc(&cmd->se_lun->lun_stats.cmd_pdus); in target_setup_cmd_from_cdb()
1424 if (!cmd->se_lun) { in transport_handle_cdb_direct()
2322 &cmd->se_lun->lun_stats.tx_data_octets); in target_complete_ok_work()
2346 &cmd->se_lun->lun_stats.rx_data_octets); in target_complete_ok_work()
2352 &cmd->se_lun->lun_stats.tx_data_octets); in target_complete_ok_work()
2681 if (cmd->se_lun) in transport_generic_free_cmd()
2924 struct se_lun *lun = container_of(ref, struct se_lun, lun_ref); in target_lun_confirm()
[all …]
Dtarget_core_configfs.c2737 struct se_lun *lun; in target_tg_pt_gp_members_show()
/Linux-v4.19/include/target/
Dtarget_core_base.h303 struct se_lun *tg_pt_gp_alua_lun;
473 struct se_lun *se_lun; member
627 struct se_lun *se_lun; member
646 struct se_lun __rcu *se_lun; member
706 struct se_lun { struct
822 struct se_lun xcopy_lun;
876 struct se_lun *tpg_virt_lun0;
Dtarget_core_fabric.h85 struct se_lun *);
87 struct se_lun *);
/Linux-v4.19/drivers/target/loopback/
Dtcm_loop.h49 struct se_lun *tl_hba_lun;
Dtcm_loop.c653 struct se_lun *lun) in tcm_loop_port_link()
671 struct se_lun *se_lun) in tcm_loop_port_unlink() argument
681 se_lun->unpacked_lun); in tcm_loop_port_unlink()
684 0, tl_tpg->tl_tpgt, se_lun->unpacked_lun); in tcm_loop_port_unlink()
/Linux-v4.19/drivers/target/sbp/
Dsbp_target.c177 struct se_lun *se_lun; in sbp_get_lun_from_tpg() local
180 hlist_for_each_entry_rcu(se_lun, &se_tpg->tpg_lun_hlist, link) { in sbp_get_lun_from_tpg()
181 if (se_lun->unpacked_lun == login_lun) { in sbp_get_lun_from_tpg()
1823 struct se_lun *lun; in sbp_count_se_tpg_luns()
1836 struct se_lun *lun; in sbp_update_unit_directory()
1985 struct se_lun *se_lun) in sbp_post_link_lun() argument
1994 struct se_lun *se_lun) in sbp_pre_unlink_lun() argument
/Linux-v4.19/drivers/xen/
Dxen-scsiback.c900 struct se_lun *se_lun; in scsiback_add_translation_entry() local
922 hlist_for_each_entry(se_lun, &tpg_entry->se_tpg.tpg_lun_hlist, link) { in scsiback_add_translation_entry()
923 if (se_lun->unpacked_lun == unpacked_lun) { in scsiback_add_translation_entry()
1721 struct se_lun *lun) in scsiback_port_link()
1734 struct se_lun *lun) in scsiback_port_unlink()
/Linux-v4.19/drivers/vhost/
Dscsi.c1059 struct se_lun *lun, in vhost_scsi_send_evt()
1551 struct se_lun *lun, bool plug) in vhost_scsi_do_plug()
1577 static void vhost_scsi_hotplug(struct vhost_scsi_tpg *tpg, struct se_lun *lun) in vhost_scsi_hotplug()
1582 static void vhost_scsi_hotunplug(struct vhost_scsi_tpg *tpg, struct se_lun *lun) in vhost_scsi_hotunplug()
1588 struct se_lun *lun) in vhost_scsi_port_link()
1607 struct se_lun *lun) in vhost_scsi_port_unlink()
/Linux-v4.19/drivers/usb/gadget/function/
Df_tcm.c1696 static int usbg_port_link(struct se_portal_group *se_tpg, struct se_lun *lun) in usbg_port_link()
1706 struct se_lun *se_lun) in usbg_port_unlink() argument