Home
last modified time | relevance | path

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

/drivers/target/
Dtarget_core_internal.h57 int core_alloc_rtpi(struct se_lun *lun, struct se_device *dev);
64 int core_enable_device_list_for_node(struct se_lun *, struct se_lun_acl *,
66 void core_disable_device_list_for_node(struct se_lun *, struct se_dev_entry *,
68 void core_clear_lun_from_tpg(struct se_lun *, struct se_portal_group *);
70 struct se_lun *lun);
71 void core_dev_del_lun(struct se_portal_group *, struct se_lun *);
75 struct se_lun_acl *, struct se_lun *lun, bool);
76 int core_dev_del_initiator_node_lun_acl(struct se_lun *,
117 struct se_lun *);
119 struct se_lun *core_tpg_alloc_lun(struct se_portal_group *, u64);
[all …]
Dtarget_core_alua.h96 struct se_device *, struct se_lun *,
120 extern void target_detach_tg_pt_gp(struct se_lun *);
121 extern void target_attach_tg_pt_gp(struct se_lun *, struct t10_alua_tg_pt_gp *);
122 extern ssize_t core_alua_show_tg_pt_gp_info(struct se_lun *, char *);
123 extern ssize_t core_alua_store_tg_pt_gp_info(struct se_lun *, const char *,
144 extern ssize_t core_alua_show_offline_bit(struct se_lun *, char *);
145 extern ssize_t core_alua_store_offline_bit(struct se_lun *, const char *,
147 extern ssize_t core_alua_show_secondary_status(struct se_lun *, char *);
148 extern ssize_t core_alua_store_secondary_status(struct se_lun *,
150 extern ssize_t core_alua_show_secondary_write_metadata(struct se_lun *,
[all …]
Dtarget_core_device.c61 struct se_lun *se_lun = NULL; in transport_lookup_cmd_lun() local
79 se_lun = rcu_dereference(deve->se_lun); in transport_lookup_cmd_lun()
81 if (!percpu_ref_tryget_live(&se_lun->lun_ref)) { in transport_lookup_cmd_lun()
82 se_lun = NULL; in transport_lookup_cmd_lun()
86 se_cmd->se_lun = rcu_dereference(deve->se_lun); in transport_lookup_cmd_lun()
106 if (!se_lun) { in transport_lookup_cmd_lun()
120 se_lun = se_sess->se_tpg->tpg_virt_lun0; in transport_lookup_cmd_lun()
121 se_cmd->se_lun = se_sess->se_tpg->tpg_virt_lun0; in transport_lookup_cmd_lun()
125 percpu_ref_get(&se_lun->lun_ref); in transport_lookup_cmd_lun()
144 se_cmd->se_dev = rcu_dereference_raw(se_lun->lun_se_dev); in transport_lookup_cmd_lun()
[all …]
Dtarget_core_fabric_configfs.c75 struct se_lun *lun = container_of(to_config_group(lun_ci), in target_fabric_mappedlun_link()
76 struct se_lun, lun_group); in target_fabric_mappedlun_link()
151 struct se_lun *lun = container_of(to_config_group(lun_ci), in target_fabric_mappedlun_unlink()
152 struct se_lun, lun_group); in target_fabric_mappedlun_unlink()
516 static struct se_lun *item_to_lun(struct config_item *item) in item_to_lun()
518 return container_of(to_config_group(item), struct se_lun, in item_to_lun()
525 struct se_lun *lun = item_to_lun(item); in target_fabric_port_alua_tg_pt_gp_show()
536 struct se_lun *lun = item_to_lun(item); in target_fabric_port_alua_tg_pt_gp_store()
547 struct se_lun *lun = item_to_lun(item); in target_fabric_port_alua_tg_pt_offline_show()
558 struct se_lun *lun = item_to_lun(item); in target_fabric_port_alua_tg_pt_offline_store()
[all …]
Dtarget_core_stat.c430 static struct se_lun *to_stat_port(struct config_item *item) in to_stat_port()
434 return container_of(pgrps, struct se_lun, port_stat_grps); in to_stat_port()
439 struct se_lun *lun = to_stat_port(item); in target_stat_port_inst_show()
453 struct se_lun *lun = to_stat_port(item); in target_stat_port_dev_show()
467 struct se_lun *lun = to_stat_port(item); in target_stat_port_indx_show()
481 struct se_lun *lun = to_stat_port(item); in target_stat_port_role_show()
496 struct se_lun *lun = to_stat_port(item); in target_stat_port_busy_count_show()
533 static struct se_lun *to_stat_tgt_port(struct config_item *item) in to_stat_tgt_port()
537 return container_of(pgrps, struct se_lun, port_stat_grps); in to_stat_tgt_port()
543 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_inst_show()
[all …]
Dtarget_core_alua.c45 struct se_lun *lun, int explicit, int offline);
49 static void __target_attach_tg_pt_gp(struct se_lun *lun,
150 struct se_lun *lun; in target_emulate_report_target_port_groups()
261 spin_lock(&cmd->se_lun->lun_tg_pt_gp_lock); in target_emulate_report_target_port_groups()
262 tg_pt_gp = cmd->se_lun->lun_tg_pt_gp; in target_emulate_report_target_port_groups()
265 spin_unlock(&cmd->se_lun->lun_tg_pt_gp_lock); in target_emulate_report_target_port_groups()
282 struct se_lun *l_lun = cmd->se_lun; in target_emulate_set_target_port_groups()
395 struct se_lun *lun; in target_emulate_set_target_port_groups()
685 struct se_lun *lun = cmd->se_lun; in target_alua_state_check()
946 struct se_lun *lun; in core_alua_queue_state_change_ua()
[all …]
Dtarget_core_xcopy.c497 pt_cmd->se_lun = ec_cmd->se_lun; in target_xcopy_setup_pt_port()
502 pt_cmd->se_lun = ec_cmd->se_lun; in target_xcopy_setup_pt_port()
504 pt_cmd->se_lun); in target_xcopy_setup_pt_port()
516 pt_cmd->se_lun = ec_cmd->se_lun; in target_xcopy_setup_pt_port()
521 pt_cmd->se_lun = ec_cmd->se_lun; in target_xcopy_setup_pt_port()
523 pt_cmd->se_lun); in target_xcopy_setup_pt_port()
539 pt_cmd->se_lun = &se_dev->xcopy_lun; in target_xcopy_init_pt_lun()
Dtarget_core_pr.c237 cmd->se_lun->unpacked_lun, cmd->orig_fe_lun, in target_scsi2_reservation_release()
282 cmd->se_lun->unpacked_lun, in target_scsi2_reservation_reserve()
285 " from %s \n", cmd->se_lun->unpacked_lun, in target_scsi2_reservation_reserve()
300 cmd->se_lun->unpacked_lun, cmd->orig_fe_lun, in target_scsi2_reservation_reserve()
622 struct se_lun *lun, in __core_scsi3_do_alloc_registration()
697 struct se_lun *lun, in __core_scsi3_alloc_registration()
708 struct se_lun *lun_tmp, *next, *dest_lun; in __core_scsi3_alloc_registration()
791 dest_lun = rcu_dereference_check(deve_tmp->se_lun, in __core_scsi3_alloc_registration()
928 struct se_lun *lun, in __core_scsi3_check_aptpl_registration()
1010 struct se_lun *lun, in core_scsi3_check_aptpl_registration()
[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()
446 struct se_lun *lun = container_of(ref, struct se_lun, lun_ref); in core_tpg_lun_ref_release()
559 struct se_lun *core_tpg_alloc_lun( in core_tpg_alloc_lun()
563 struct se_lun *lun; in core_tpg_alloc_lun()
589 struct se_lun *lun, in core_tpg_add_lun()
635 struct se_lun *lun) in core_tpg_remove_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()
708 struct se_portal_group *tpg = cmd->se_lun->lun_tpg; in spc_emulate_inquiry()
1010 if (cmd->se_lun->lun_access_ro || target_lun_is_rdonly(cmd)) in spc_emulate_modesense()
Dtarget_core_transport.c618 cmd->se_lun = NULL; in transport_cmd_check_stop()
667 struct se_lun *lun = cmd->se_lun; in transport_lun_remove_cmd()
714 WARN_ON(!cmd->se_lun); in transport_get_sense_buffer()
1362 atomic_long_inc(&cmd->se_lun->lun_stats.cmd_pdus); in target_setup_cmd_from_cdb()
1376 if (!cmd->se_lun) { in transport_handle_cdb_direct()
2178 &cmd->se_lun->lun_stats.tx_data_octets); in target_complete_ok_work()
2202 &cmd->se_lun->lun_stats.rx_data_octets); in target_complete_ok_work()
2208 &cmd->se_lun->lun_stats.tx_data_octets); in target_complete_ok_work()
2547 if (cmd->se_lun) in transport_generic_free_cmd()
2738 struct se_lun *lun = container_of(ref, struct se_lun, lun_ref); in target_lun_confirm()
[all …]
Dtarget_core_pr.h62 struct se_portal_group *, struct se_lun *,
Dtarget_core_configfs.c2668 struct se_lun *lun; in target_tg_pt_gp_members_show()
/drivers/target/loopback/
Dtcm_loop.h48 struct se_lun *tl_hba_lun;
Dtcm_loop.c707 struct se_lun *lun) in tcm_loop_port_link()
725 struct se_lun *se_lun) in tcm_loop_port_unlink() argument
735 se_lun->unpacked_lun); in tcm_loop_port_unlink()
738 "%llu\n", 0, tl_tpg->tl_tpgt, se_lun->unpacked_lun); in tcm_loop_port_unlink()
/drivers/target/sbp/
Dsbp_target.c176 struct se_lun *se_lun; in sbp_get_lun_from_tpg() local
179 hlist_for_each_entry_rcu(se_lun, &se_tpg->tpg_lun_hlist, link) { in sbp_get_lun_from_tpg()
180 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
/drivers/xen/
Dxen-scsiback.c901 struct se_lun *se_lun; in scsiback_add_translation_entry() local
923 hlist_for_each_entry(se_lun, &tpg_entry->se_tpg.tpg_lun_hlist, link) { in scsiback_add_translation_entry()
924 if (se_lun->unpacked_lun == unpacked_lun) { in scsiback_add_translation_entry()
1715 struct se_lun *lun) in scsiback_port_link()
1728 struct se_lun *lun) in scsiback_port_unlink()
/drivers/vhost/
Dscsi.c1094 struct se_lun *lun, in vhost_scsi_send_evt()
1586 struct se_lun *lun, bool plug) in vhost_scsi_do_plug()
1612 static void vhost_scsi_hotplug(struct vhost_scsi_tpg *tpg, struct se_lun *lun) in vhost_scsi_hotplug()
1617 static void vhost_scsi_hotunplug(struct vhost_scsi_tpg *tpg, struct se_lun *lun) in vhost_scsi_hotunplug()
1623 struct se_lun *lun) in vhost_scsi_port_link()
1642 struct se_lun *lun) in vhost_scsi_port_unlink()
/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