| /linux-4.4.14/drivers/target/ |
| D | target_core_internal.h | 58 int core_alloc_rtpi(struct se_lun *lun, struct se_device *dev); 65 int core_enable_device_list_for_node(struct se_lun *, struct se_lun_acl *, 67 void core_disable_device_list_for_node(struct se_lun *, struct se_dev_entry *, 69 void core_clear_lun_from_tpg(struct se_lun *, struct se_portal_group *); 71 struct se_lun *lun); 72 void core_dev_del_lun(struct se_portal_group *, struct se_lun *); 76 struct se_lun_acl *, struct se_lun *lun, u32); 77 int core_dev_del_initiator_node_lun_acl(struct se_lun *, 118 struct se_lun *); 120 struct se_lun *core_tpg_alloc_lun(struct se_portal_group *, u64); [all …]
|
| D | target_core_alua.h | 96 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 …]
|
| D | target_core_device.c | 61 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() 80 se_cmd->se_lun = rcu_dereference(deve->se_lun); in transport_lookup_cmd_lun() 85 percpu_ref_get(&se_lun->lun_ref); in transport_lookup_cmd_lun() 101 if (!se_lun) { in transport_lookup_cmd_lun() 115 se_lun = se_sess->se_tpg->tpg_virt_lun0; in transport_lookup_cmd_lun() 116 se_cmd->se_lun = se_sess->se_tpg->tpg_virt_lun0; in transport_lookup_cmd_lun() 120 percpu_ref_get(&se_lun->lun_ref); in transport_lookup_cmd_lun() 139 se_cmd->se_dev = rcu_dereference_raw(se_lun->lun_se_dev); in transport_lookup_cmd_lun() 156 struct se_lun *se_lun = NULL; in transport_lookup_tmr_lun() local [all …]
|
| D | target_core_stat.c | 429 static struct se_lun *to_stat_port(struct config_item *item) in to_stat_port() 433 return container_of(pgrps, struct se_lun, port_stat_grps); in to_stat_port() 438 struct se_lun *lun = to_stat_port(item); in target_stat_port_inst_show() 452 struct se_lun *lun = to_stat_port(item); in target_stat_port_dev_show() 466 struct se_lun *lun = to_stat_port(item); in target_stat_port_indx_show() 480 struct se_lun *lun = to_stat_port(item); in target_stat_port_role_show() 495 struct se_lun *lun = to_stat_port(item); in target_stat_port_busy_count_show() 532 static struct se_lun *to_stat_tgt_port(struct config_item *item) in to_stat_tgt_port() 536 return container_of(pgrps, struct se_lun, port_stat_grps); in to_stat_tgt_port() 542 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_inst_show() [all …]
|
| D | target_core_fabric_configfs.c | 75 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() 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() 562 static struct se_lun *item_to_lun(struct config_item *item) in item_to_lun() 564 return container_of(to_config_group(item), struct se_lun, in item_to_lun() 571 struct se_lun *lun = item_to_lun(item); in target_fabric_port_alua_tg_pt_gp_show() 582 struct se_lun *lun = item_to_lun(item); in target_fabric_port_alua_tg_pt_gp_store() 593 struct se_lun *lun = item_to_lun(item); in target_fabric_port_alua_tg_pt_offline_show() 604 struct se_lun *lun = item_to_lun(item); in target_fabric_port_alua_tg_pt_offline_store() [all …]
|
| D | target_core_alua.c | 45 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 …]
|
| D | target_core_xcopy.c | 488 pt_cmd->se_lun = ec_cmd->se_lun; in target_xcopy_setup_pt_port() 493 pt_cmd->se_lun = ec_cmd->se_lun; in target_xcopy_setup_pt_port() 495 pt_cmd->se_lun); in target_xcopy_setup_pt_port() 507 pt_cmd->se_lun = ec_cmd->se_lun; in target_xcopy_setup_pt_port() 512 pt_cmd->se_lun = ec_cmd->se_lun; in target_xcopy_setup_pt_port() 514 pt_cmd->se_lun); in target_xcopy_setup_pt_port() 530 pt_cmd->se_lun = &se_dev->xcopy_lun; in target_xcopy_init_pt_lun()
|
| D | target_core_tpg.c | 110 struct se_lun *lun_orig) in core_tpg_add_node_to_devs() 113 struct se_lun *lun; in core_tpg_add_node_to_devs() 500 struct se_lun *lun = container_of(ref, struct se_lun, lun_ref); in core_tpg_lun_ref_release() 614 struct se_lun *core_tpg_alloc_lun( in core_tpg_alloc_lun() 618 struct se_lun *lun; in core_tpg_alloc_lun() 643 struct se_lun *lun, in core_tpg_add_lun() 689 struct se_lun *lun) in core_tpg_remove_lun()
|
| D | target_core_pr.c | 235 cmd->se_lun->unpacked_lun, cmd->orig_fe_lun, in target_scsi2_reservation_release() 280 cmd->se_lun->unpacked_lun, in target_scsi2_reservation_reserve() 283 " from %s \n", cmd->se_lun->unpacked_lun, in target_scsi2_reservation_reserve() 298 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() 789 dest_lun = rcu_dereference_check(deve_tmp->se_lun, in __core_scsi3_alloc_registration() 926 struct se_lun *lun, in __core_scsi3_check_aptpl_registration() 1008 struct se_lun *lun, in core_scsi3_check_aptpl_registration() [all …]
|
| D | target_core_spc.c | 41 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() 696 struct se_portal_group *tpg = cmd->se_lun->lun_tpg; in spc_emulate_inquiry() 999 if ((cmd->se_lun->lun_access & TRANSPORT_LUNFLAGS_READ_ONLY) || read_only) in spc_emulate_modesense()
|
| D | target_core_pr.h | 62 struct se_portal_group *, struct se_lun *,
|
| D | target_core_transport.c | 561 cmd->se_lun = NULL; in transport_cmd_check_stop() 610 struct se_lun *lun = cmd->se_lun; in transport_lun_remove_cmd() 654 WARN_ON(!cmd->se_lun); in transport_get_sense_buffer() 1304 atomic_long_inc(&cmd->se_lun->lun_stats.cmd_pdus); in target_setup_cmd_from_cdb() 1318 if (!cmd->se_lun) { in transport_handle_cdb_direct() 2098 &cmd->se_lun->lun_stats.tx_data_octets); in target_complete_ok_work() 2122 &cmd->se_lun->lun_stats.rx_data_octets); in target_complete_ok_work() 2128 &cmd->se_lun->lun_stats.tx_data_octets); in target_complete_ok_work() 2462 if (cmd->se_lun) in transport_generic_free_cmd() 2649 void transport_clear_lun_ref(struct se_lun *lun) in transport_clear_lun_ref()
|
| D | target_core_configfs.c | 2588 struct se_lun *lun; in target_tg_pt_gp_members_show()
|
| /linux-4.4.14/include/target/ |
| D | target_core_base.h | 297 struct se_lun *tg_pt_gp_alua_lun; 400 struct se_lun *tmr_lun; 470 struct se_lun *se_lun; member 630 struct se_lun *se_lun; member 651 struct se_lun __rcu *se_lun; member 709 struct se_lun { struct 827 struct se_lun xcopy_lun; 883 struct se_lun *tpg_virt_lun0;
|
| D | target_core_fabric.h | 83 struct se_lun *); 85 struct se_lun *);
|
| /linux-4.4.14/drivers/target/loopback/ |
| D | tcm_loop.h | 48 struct se_lun *tl_hba_lun;
|
| D | tcm_loop.c | 717 struct se_lun *lun) in tcm_loop_port_link() 735 struct se_lun *se_lun) in tcm_loop_port_unlink() argument 745 se_lun->unpacked_lun); in tcm_loop_port_unlink() 748 "%llu\n", 0, tl_tpg->tl_tpgt, se_lun->unpacked_lun); in tcm_loop_port_unlink()
|
| /linux-4.4.14/drivers/target/sbp/ |
| D | sbp_target.c | 178 struct se_lun *se_lun; in sbp_get_lun_from_tpg() local 181 hlist_for_each_entry_rcu(se_lun, &se_tpg->tpg_lun_hlist, link) { in sbp_get_lun_from_tpg() 182 if (se_lun->unpacked_lun == login_lun) { in sbp_get_lun_from_tpg() 1826 struct se_lun *lun; in sbp_count_se_tpg_luns() 1839 struct se_lun *lun; in sbp_update_unit_directory() 1988 struct se_lun *se_lun) in sbp_post_link_lun() argument 1997 struct se_lun *se_lun) in sbp_pre_unlink_lun() argument
|
| /linux-4.4.14/drivers/xen/ |
| D | xen-scsiback.c | 864 struct se_lun *se_lun; in scsiback_add_translation_entry() local 886 hlist_for_each_entry(se_lun, &tpg_entry->se_tpg.tpg_lun_hlist, link) { in scsiback_add_translation_entry() 887 if (se_lun->unpacked_lun == unpacked_lun) { in scsiback_add_translation_entry() 1713 struct se_lun *lun) in scsiback_port_link() 1726 struct se_lun *lun) in scsiback_port_unlink()
|
| /linux-4.4.14/drivers/vhost/ |
| D | scsi.c | 1103 struct se_lun *lun, in vhost_scsi_send_evt() 1595 struct se_lun *lun, bool plug) in vhost_scsi_do_plug() 1621 static void vhost_scsi_hotplug(struct vhost_scsi_tpg *tpg, struct se_lun *lun) in vhost_scsi_hotplug() 1626 static void vhost_scsi_hotunplug(struct vhost_scsi_tpg *tpg, struct se_lun *lun) in vhost_scsi_hotunplug() 1632 struct se_lun *lun) in vhost_scsi_port_link() 1651 struct se_lun *lun) in vhost_scsi_port_unlink()
|
| /linux-4.4.14/drivers/usb/gadget/legacy/ |
| D | tcm_usb_gadget.c | 1675 static int usbg_port_link(struct se_portal_group *se_tpg, struct se_lun *lun) in usbg_port_link() 1685 struct se_lun *se_lun) in usbg_port_unlink() argument
|