Home
last modified time | relevance | path

Searched refs:se_device (Results 1 – 30 of 30) sorted by relevance

/linux-4.4.14/include/target/
Dtarget_core_backend.h18 struct se_device *(*alloc_device)(struct se_hba *, const char *);
19 int (*configure_device)(struct se_device *);
20 void (*free_device)(struct se_device *device);
22 ssize_t (*set_configfs_dev_params)(struct se_device *,
24 ssize_t (*show_configfs_dev_params)(struct se_device *, char *);
31 u32 (*get_device_type)(struct se_device *);
32 sector_t (*get_blocks)(struct se_device *);
33 sector_t (*get_alignment_offset_lbas)(struct se_device *);
35 unsigned int (*get_lbppbe)(struct se_device *);
36 unsigned int (*get_io_min)(struct se_device *);
[all …]
Dtarget_core_base.h247 struct se_device *t10_dev;
271 struct se_device *lu_gp_mem_dev;
293 struct se_device *tg_pt_gp_dev;
319 struct se_device *t10_dev;
399 struct se_device *tmr_dev;
469 struct se_device *se_dev;
617 struct se_device;
692 struct se_device *da_dev;
719 struct se_device __rcu *lun_se_dev;
753 struct se_device { struct
/linux-4.4.14/drivers/target/
Dtarget_core_internal.h58 int core_alloc_rtpi(struct se_lun *lun, struct se_device *dev);
70 int core_dev_add_lun(struct se_portal_group *, struct se_device *,
83 struct se_device *target_alloc_device(struct se_hba *hba, const char *name);
84 int target_configure_device(struct se_device *dev);
85 void target_free_device(struct se_device *);
107 void core_tmr_abort_task(struct se_device *, struct se_tmr_req *,
109 int core_tmr_lun_reset(struct se_device *, struct se_tmr_req *,
113 extern struct se_device *g_lun0_dev;
122 u32, struct se_device *);
137 void transport_dump_dev_state(struct se_device *, char *, int *);
[all …]
Dtarget_core_alua.h96 struct se_device *, struct se_lun *,
103 extern void core_alua_set_lba_map(struct se_device *, struct list_head *,
108 extern void core_alua_free_lu_gp_mem(struct se_device *);
115 extern void core_alua_drop_lu_gp_dev(struct se_device *);
117 struct se_device *, const char *, int);
154 extern int core_setup_alua(struct se_device *);
Dtarget_core_stat.c57 static struct se_device *to_stat_dev(struct config_item *item) in to_stat_dev()
61 return container_of(sgrps, struct se_device, dev_stat_grps); in to_stat_dev()
107 static struct se_device *to_stat_tgt_dev(struct config_item *item) in to_stat_tgt_dev()
111 return container_of(sgrps, struct se_device, dev_stat_grps); in to_stat_tgt_dev()
187 static struct se_device *to_stat_lu_dev(struct config_item *item) in to_stat_lu_dev()
191 return container_of(sgrps, struct se_device, dev_stat_grps); in to_stat_lu_dev()
220 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_lu_name_show()
230 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_vend_show()
244 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_prod_show()
258 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_rev_show()
[all …]
Dtarget_core_pr.h49 void spc_parse_naa_6h_vendor_specific(struct se_device *, unsigned char *);
61 extern int core_scsi3_check_aptpl_registration(struct se_device *,
64 extern void core_scsi3_free_pr_reg_from_nacl(struct se_device *,
66 extern void core_scsi3_free_all_registrations(struct se_device *);
Dtarget_core_iblock.c49 static inline struct iblock_dev *IBLOCK_DEV(struct se_device *dev) in IBLOCK_DEV()
67 static struct se_device *iblock_alloc_device(struct se_hba *hba, const char *name) in iblock_alloc_device()
82 static int iblock_configure_device(struct se_device *dev) in iblock_configure_device()
181 struct se_device *dev = container_of(p, struct se_device, rcu_head); in iblock_dev_call_rcu()
187 static void iblock_free_device(struct se_device *dev) in iblock_free_device()
200 struct se_device *dev, in iblock_emulate_read_cap_with_block_size()
400 struct se_device *dev = cmd->se_dev; in iblock_execute_unmap()
422 struct se_device *dev = cmd->se_dev; in iblock_execute_write_same()
496 static ssize_t iblock_set_configfs_dev_params(struct se_device *dev, in iblock_set_configfs_dev_params()
561 static ssize_t iblock_show_configfs_dev_params(struct se_device *dev, char *b) in iblock_show_configfs_dev_params()
[all …]
Dtarget_core_file.c43 static inline struct fd_dev *FD_DEV(struct se_device *dev) in FD_DEV()
82 static struct se_device *fd_alloc_device(struct se_hba *hba, const char *name) in fd_alloc_device()
100 static int fd_configure_device(struct se_device *dev) in fd_configure_device()
232 struct se_device *dev = container_of(p, struct se_device, rcu_head); in fd_dev_call_rcu()
238 static void fd_free_device(struct se_device *dev) in fd_free_device()
314 struct se_device *dev = cmd->se_dev; in fd_execute_sync_cache()
359 struct se_device *se_dev = cmd->se_dev; in fd_execute_write_same()
414 fd_do_prot_fill(struct se_device *se_dev, sector_t lba, sector_t nolb, in fd_do_prot_fill()
479 struct se_device *dev = cmd->se_dev; in fd_execute_unmap()
492 struct se_device *se_dev = cmd->se_dev; in fd_execute_unmap()
[all …]
Dtarget_core_rd.c39 static inline struct rd_dev *RD_DEV(struct se_device *dev) in RD_DEV()
294 static struct se_device *rd_alloc_device(struct se_hba *hba, const char *name) in rd_alloc_device()
310 static int rd_configure_device(struct se_device *dev) in rd_configure_device()
347 struct se_device *dev = container_of(p, struct se_device, rcu_head); in rd_dev_call_rcu()
353 static void rd_free_device(struct se_device *dev) in rd_free_device()
403 struct se_device *se_dev = cmd->se_dev; in rd_do_prot_rw()
445 struct se_device *se_dev = cmd->se_dev; in rd_execute_rw()
567 static ssize_t rd_set_configfs_dev_params(struct se_device *dev, in rd_set_configfs_dev_params()
611 static ssize_t rd_show_configfs_dev_params(struct se_device *dev, char *b) in rd_show_configfs_dev_params()
624 static sector_t rd_get_blocks(struct se_device *dev) in rd_get_blocks()
[all …]
Dtarget_core_configfs.c558 static void dev_set_t10_wwn_model_alias(struct se_device *dev) in dev_set_t10_wwn_model_alias()
575 struct se_device *dev = da->da_dev; in emulate_model_alias_store()
731 struct se_device *dev = da->da_dev; in pi_prot_type_store()
791 struct se_device *dev = da->da_dev; in pi_prot_format_store()
876 struct se_device *dev = da->da_dev; in queue_depth_store()
1081 struct se_device *dev = t10_wwn->t10_dev; in target_wwn_vpd_unit_serial_store()
1234 static struct se_device *pr_to_dev(struct config_item *item) in pr_to_dev()
1236 return container_of(to_config_group(item), struct se_device, in pr_to_dev()
1240 static ssize_t target_core_dev_pr_show_spc3_res(struct se_device *dev, in target_core_dev_pr_show_spc3_res()
1261 static ssize_t target_core_dev_pr_show_spc2_res(struct se_device *dev, in target_core_dev_pr_show_spc2_res()
[all …]
Dtarget_core_spc.c67 struct se_device *dev = cmd->se_dev; in spc_emulate_inquiry_std()
127 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_80()
138 void spc_parse_naa_6h_vendor_specific(struct se_device *dev, in spc_parse_naa_6h_vendor_specific()
176 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_83()
444 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_86()
486 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_b0()
580 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_b1()
593 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_b2()
645 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_b3()
695 struct se_device *dev = cmd->se_dev; in spc_emulate_inquiry()
[all …]
Dtarget_core_pscsi.c52 static inline struct pscsi_dev_virt *PSCSI_DEV(struct se_device *dev) in PSCSI_DEV()
149 static void pscsi_tape_read_blocksize(struct se_device *dev, in pscsi_tape_read_blocksize()
301 static int pscsi_add_device_to_list(struct se_device *dev, in pscsi_add_device_to_list()
347 static struct se_device *pscsi_alloc_device(struct se_hba *hba, in pscsi_alloc_device()
365 static int pscsi_create_type_disk(struct se_device *dev, struct scsi_device *sd) in pscsi_create_type_disk()
409 static int pscsi_create_type_rom(struct se_device *dev, struct scsi_device *sd) in pscsi_create_type_rom()
439 static int pscsi_create_type_other(struct se_device *dev, in pscsi_create_type_other()
458 static int pscsi_configure_device(struct se_device *dev) in pscsi_configure_device()
582 struct se_device *dev = container_of(p, struct se_device, rcu_head); in pscsi_dev_call_rcu()
588 static void pscsi_free_device(struct se_device *dev) in pscsi_free_device()
[all …]
Dtarget_core_xcopy.h17 struct se_device *src_dev;
19 struct se_device *dst_dev;
Dtarget_core_pr.c76 static void __core_scsi3_complete_pro_release(struct se_device *, struct se_node_acl *,
98 struct se_device *dev = cmd->se_dev; in target_scsi2_reservation_check()
124 static struct t10_pr_registration *core_scsi3_locate_pr_reg(struct se_device *,
131 struct se_device *dev = cmd->se_dev; in target_check_scsi2_reservation_conflict()
202 struct se_device *dev = cmd->se_dev; in target_scsi2_reservation_release()
248 struct se_device *dev = cmd->se_dev; in target_scsi2_reservation_reserve()
568 struct se_device *dev = cmd->se_dev; in target_scsi3_pr_reservation_check()
597 static u32 core_scsi3_pr_generation(struct se_device *dev) in core_scsi3_pr_generation()
618 struct se_device *dev, in __core_scsi3_do_alloc_registration()
693 struct se_device *dev, in __core_scsi3_alloc_registration()
[all …]
Dtarget_core_device.c56 struct se_device *g_lun0_dev;
412 struct se_device *dev = rcu_dereference_raw(lun->lun_se_dev); in core_disable_device_list_for_node()
482 int core_alloc_rtpi(struct se_lun *lun, struct se_device *dev) in core_alloc_rtpi()
523 static void se_release_vpd_for_dev(struct se_device *dev) in se_release_vpd_for_dev()
556 struct se_device *dev, in core_dev_add_lun()
645 struct se_device *dev = rcu_dereference_raw(lun->lun_se_dev); in core_dev_add_initiator_node_lun_acl()
714 static void scsi_dump_inquiry(struct se_device *dev) in scsi_dump_inquiry()
750 struct se_device *target_alloc_device(struct se_hba *hba, const char *name) in target_alloc_device()
752 struct se_device *dev; in target_alloc_device()
857 sector_t target_to_linux_sector(struct se_device *dev, sector_t lb) in target_to_linux_sector()
[all …]
Dtarget_core_tmr.c66 struct se_device *dev = tmr->tmr_dev; in core_tmr_release_req()
153 struct se_device *dev, in core_tmr_abort_task()
205 struct se_device *dev, in core_tmr_drain_tmr_list()
295 struct se_device *dev, in core_tmr_drain_state_list()
394 struct se_device *dev, in core_tmr_lun_reset()
Dtarget_core_xcopy.c42 static int target_xcopy_gen_naa_ieee(struct se_device *dev, unsigned char *buf) in target_xcopy_gen_naa_ieee()
58 struct se_device *se_dev; in target_xcopy_locate_se_dev_e4()
190 struct se_device *local_dev = se_cmd->se_dev; in target_xcopy_parse_target_descriptors()
366 struct se_device *remote_dev; in xcopy_pt_undepend_remotedev()
519 static void target_xcopy_init_pt_lun(struct se_device *se_dev, in target_xcopy_init_pt_lun()
540 struct se_device *se_dev, in target_xcopy_setup_pt_cmd()
623 struct se_device *src_dev, in target_xcopy_read_source()
683 struct se_device *dst_dev, in target_xcopy_write_destination()
743 struct se_device *src_dev = xop->src_dev, *dst_dev = xop->dst_dev; in target_xcopy_do_work()
826 struct se_device *dev = se_cmd->se_dev; in target_do_xcopy()
Dtarget_core_sbc.c40 sbc_check_prot(struct se_device *, struct se_cmd *, unsigned char *, u32, bool);
46 struct se_device *dev = cmd->se_dev; in sbc_emulate_readcapacity()
95 struct se_device *dev = cmd->se_dev; in sbc_emulate_readcapacity_16()
316 struct se_device *dev = cmd->se_dev; in sbc_setup_write_same()
444 struct se_device *dev = cmd->se_dev; in compare_and_write_post()
470 struct se_device *dev = cmd->se_dev; in compare_and_write_callback()
621 struct se_device *dev = cmd->se_dev; in sbc_compare_and_write()
717 sbc_check_prot(struct se_device *dev, struct se_cmd *cmd, unsigned char *cdb, in sbc_check_prot()
796 sbc_check_dpofua(struct se_device *dev, struct se_cmd *cmd, unsigned char *cdb) in sbc_check_dpofua()
821 struct se_device *dev = cmd->se_dev; in sbc_parse_cdb()
[all …]
Dtarget_core_alua.c68 struct se_device *dev = cmd->se_dev; in target_emulate_report_referrals()
148 struct se_device *dev = cmd->se_dev; in target_emulate_report_target_port_groups()
281 struct se_device *dev = cmd->se_dev; in target_emulate_set_target_port_groups()
476 struct se_device *dev = cmd->se_dev; in core_alua_state_lba_dependent()
683 struct se_device *dev = cmd->se_dev; in target_alua_state_check()
1014 struct se_device *dev = tg_pt_gp->tg_pt_gp_dev; in core_alua_do_transition_tg_pt_work()
1063 struct se_device *dev = tg_pt_gp->tg_pt_gp_dev; in core_alua_do_transition_tg_pt()
1137 struct se_device *l_dev, in core_alua_do_port_transition()
1143 struct se_device *dev; in core_alua_do_port_transition()
1409 core_alua_set_lba_map(struct se_device *dev, struct list_head *lba_map_list, in core_alua_set_lba_map()
[all …]
Dtarget_core_user.c80 struct se_device se_dev;
159 struct se_device *se_dev = se_cmd->se_dev; in tcmu_alloc_cmd()
504 struct se_device *se_dev = se_cmd->se_dev; in tcmu_queue_cmd()
693 static struct se_device *tcmu_alloc_device(struct se_hba *hba, const char *name) in tcmu_alloc_device()
856 static int tcmu_configure_device(struct se_device *dev) in tcmu_configure_device()
953 struct se_device *dev = container_of(p, struct se_device, rcu_head); in tcmu_dev_call_rcu()
959 static void tcmu_free_device(struct se_device *dev) in tcmu_free_device()
998 static ssize_t tcmu_set_configfs_dev_params(struct se_device *dev, in tcmu_set_configfs_dev_params()
1065 static ssize_t tcmu_show_configfs_dev_params(struct se_device *dev, char *b) in tcmu_show_configfs_dev_params()
1077 static sector_t tcmu_get_blocks(struct se_device *dev) in tcmu_get_blocks()
Dtarget_core_transport.c68 struct se_device *dev);
533 struct se_device *dev = cmd->se_dev; in target_remove_from_state_list()
652 struct se_device *dev = cmd->se_dev; in transport_get_sense_buffer()
671 struct se_device *dev = cmd->se_dev; in target_complete_cmd()
740 struct se_device *dev = cmd->se_dev; in target_add_to_state_list()
759 struct se_device *dev = container_of(work, struct se_device, in target_qf_do_work()
804 struct se_device *dev, in transport_dump_dev_state()
1078 target_check_max_data_sg_nents(struct se_cmd *cmd, struct se_device *dev, in target_check_max_data_sg_nents()
1129 struct se_device *dev = cmd->se_dev; in target_cmd_size_check()
1215 struct se_device *dev = cmd->se_dev; in transport_check_alloc_task_attr()
[all …]
Dtarget_core_iblock.h17 struct se_device dev;
Dtarget_core_file.h25 struct se_device dev;
Dtarget_core_rd.h28 struct se_device dev;
Dtarget_core_pscsi.h40 struct se_device dev;
Dtarget_core_tpg.c46 extern struct se_device *g_lun0_dev;
114 struct se_device *dev; in core_tpg_add_node_to_devs()
645 struct se_device *dev) in core_tpg_add_lun()
695 struct se_device *dev = rcu_dereference_raw(lun->lun_se_dev); in core_tpg_remove_lun()
Dtarget_core_hba.c188 bool target_sense_desc_format(struct se_device *dev) in target_sense_desc_format()
Dtarget_core_ua.c210 struct se_device *dev = cmd->se_dev; in core_scsi3_ua_for_check_condition()
Dtarget_core_fabric_configfs.c677 struct se_device *dev = in target_fabric_port_link()
678 container_of(to_config_group(se_dev_ci), struct se_device, dev_group); in target_fabric_port_link()
/linux-4.4.14/drivers/target/sbp/
Dsbp_target.c1904 struct se_device *dev; in sbp_update_unit_directory()