Home
last modified time | relevance | path

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

/linux/drivers/target/
H A 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 …]
H A 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 *,
126 struct se_lun *);
128 struct se_lun *core_tpg_alloc_lun(struct se_portal_group *, u64);
130 int core_tpg_add_lun(struct se_portal_group *, struct se_lun *,
[all …]
H A Dtarget_core_stat.c418 static struct se_lun *to_stat_port(struct config_item *item) in to_stat_port()
422 return container_of(pgrps, struct se_lun, port_stat_grps); in to_stat_port()
427 struct se_lun *lun = to_stat_port(item); in target_stat_port_inst_show()
441 struct se_lun *lun = to_stat_port(item); in target_stat_port_dev_show()
455 struct se_lun *lun = to_stat_port(item); in target_stat_port_indx_show()
469 struct se_lun *lun = to_stat_port(item); in target_stat_port_role_show()
484 struct se_lun *lun = to_stat_port(item); in target_stat_port_busy_count_show()
521 static struct se_lun *to_stat_tgt_port(struct config_item *item) in to_stat_tgt_port()
525 return container_of(pgrps, struct se_lun, port_stat_grps); in to_stat_tgt_port()
531 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_inst_show()
[all …]
H A 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()
646 struct se_lun *lun = container_of(head, struct se_lun, rcu_head); in target_tpg_free_lun()
654 struct se_lun *lun, in core_tpg_add_lun()
694 struct se_lun *lun) in core_tpg_remove_lun()
H A Dtarget_core_pr.c232 cmd->se_lun->unpacked_lun, cmd->orig_fe_lun, in target_scsi2_reservation_release()
276 cmd->se_lun->unpacked_lun, in target_scsi2_reservation_reserve()
279 " from %s \n", cmd->se_lun->unpacked_lun, in target_scsi2_reservation_reserve()
294 cmd->se_lun->unpacked_lun, cmd->orig_fe_lun, in target_scsi2_reservation_reserve()
620 struct se_lun *lun, in __core_scsi3_do_alloc_registration()
695 struct se_lun *lun, in __core_scsi3_alloc_registration()
706 struct se_lun *lun_tmp, *next, *dest_lun; in __core_scsi3_alloc_registration()
788 dest_lun = deve_tmp->se_lun; in __core_scsi3_alloc_registration()
923 struct se_lun *lun, in __core_scsi3_check_aptpl_registration()
1003 struct se_lun *lun, in core_scsi3_check_aptpl_registration()
[all …]
H A Dtarget_core_pr.h69 struct se_portal_group *, struct se_lun *,
H A 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()
H A 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()
1617 if (cmd->se_lun->lun_stats) in target_cmd_parse_cdb()
1618 this_cpu_inc(cmd->se_lun->lun_stats->cmd_pdus); in target_cmd_parse_cdb()
1656 if (!cmd->se_lun) { in __target_submit()
2652 if (cmd->se_lun->lun_stats) in target_complete_ok_work()
2653 this_cpu_add(cmd->se_lun->lun_stats->tx_data_octets, in target_complete_ok_work()
2677 if (cmd->se_lun->lun_stats) in target_complete_ok_work()
2678 this_cpu_add(cmd->se_lun->lun_stats->rx_data_octets, in target_complete_ok_work()
[all …]
/linux/drivers/target/tcm_remote/
H A Dtcm_remote.c72 struct se_lun *lun) in tcm_remote_port_link()
81 struct se_lun *lun) in tcm_remote_port_unlink()
/linux/drivers/target/loopback/
H A Dtcm_loop.h48 struct se_lun *tl_hba_lun;
/linux/drivers/xen/
H A Dxen-scsiback.c945 struct se_lun *se_lun; in scsiback_add_translation_entry() local
967 hlist_for_each_entry(se_lun, &tpg_entry->se_tpg.tpg_lun_hlist, link) { in scsiback_add_translation_entry()
968 if (se_lun->unpacked_lun == unpacked_lun) { in scsiback_add_translation_entry()
1737 struct se_lun *lun) in scsiback_port_link()
1750 struct se_lun *lun) in scsiback_port_unlink()
/linux/drivers/vhost/
H A Dscsi.c1808 struct vhost_scsi_tpg *tpg, struct se_lun *lun, in vhost_scsi_send_evt()
2498 struct se_lun *lun, bool plug) in vhost_scsi_do_plug()
2529 static void vhost_scsi_hotplug(struct vhost_scsi_tpg *tpg, struct se_lun *lun) in vhost_scsi_hotplug()
2534 static void vhost_scsi_hotunplug(struct vhost_scsi_tpg *tpg, struct se_lun *lun) in vhost_scsi_hotunplug()
2540 struct se_lun *lun) in vhost_scsi_port_link()
2554 struct se_lun *lun) in vhost_scsi_port_unlink()