Home
last modified time | relevance | path

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

12

/Linux-v4.19/include/target/
Dtarget_core_backend.h32 struct se_device *(*alloc_device)(struct se_hba *, const char *);
33 int (*configure_device)(struct se_device *);
34 void (*destroy_device)(struct se_device *);
35 void (*free_device)(struct se_device *device);
37 ssize_t (*set_configfs_dev_params)(struct se_device *,
39 ssize_t (*show_configfs_dev_params)(struct se_device *, char *);
42 u32 (*get_device_type)(struct se_device *);
43 sector_t (*get_blocks)(struct se_device *);
44 sector_t (*get_alignment_offset_lbas)(struct se_device *);
46 unsigned int (*get_lbppbe)(struct se_device *);
[all …]
Dtarget_core_base.h255 struct se_device *t10_dev;
279 struct se_device *lu_gp_mem_dev;
299 struct se_device *tg_pt_gp_dev;
323 struct se_device *t10_dev;
403 struct se_device *tmr_dev;
472 struct se_device *se_dev;
614 struct se_device;
689 struct se_device *da_dev;
715 struct se_device __rcu *lun_se_dev;
750 struct se_device { struct
/Linux-v4.19/drivers/target/
Dtarget_core_internal.h61 int core_alloc_rtpi(struct se_lun *lun, struct se_device *dev);
73 int core_dev_add_lun(struct se_portal_group *, struct se_device *,
86 struct se_device *target_alloc_device(struct se_hba *hba, const char *name);
87 int target_configure_device(struct se_device *dev);
88 void target_free_device(struct se_device *);
89 int target_for_each_device(int (*fn)(struct se_device *dev, void *data),
113 void core_tmr_abort_task(struct se_device *, struct se_tmr_req *,
115 int core_tmr_lun_reset(struct se_device *, struct se_tmr_req *,
119 extern struct se_device *g_lun0_dev;
128 bool, struct se_device *);
[all …]
Dtarget_core_alua.h90 struct se_device *, struct se_lun *,
97 extern void core_alua_set_lba_map(struct se_device *, struct list_head *,
102 extern void core_alua_free_lu_gp_mem(struct se_device *);
109 extern void core_alua_drop_lu_gp_dev(struct se_device *);
111 struct se_device *, const char *, int);
148 extern int core_setup_alua(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()
184 struct se_device *dev = container_of(p, struct se_device, rcu_head); in iblock_dev_call_rcu()
190 static void iblock_free_device(struct se_device *dev) in iblock_free_device()
195 static void iblock_destroy_device(struct se_device *dev) in iblock_destroy_device()
205 struct se_device *dev, in iblock_emulate_read_cap_with_block_size()
408 struct se_device *dev = cmd->se_dev; in iblock_execute_unmap()
426 struct se_device *dev = cmd->se_dev; in iblock_execute_zero_out()
464 struct se_device *dev = cmd->se_dev; in iblock_execute_write_same()
[all …]
Dtarget_core_pr.h55 void spc_parse_naa_6h_vendor_specific(struct se_device *, unsigned char *);
67 extern int core_scsi3_check_aptpl_registration(struct se_device *,
70 extern void core_scsi3_free_pr_reg_from_nacl(struct se_device *,
72 extern void core_scsi3_free_all_registrations(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()
205 static struct se_device *to_stat_lu_dev(struct config_item *item) in to_stat_lu_dev()
209 return container_of(sgrps, struct se_device, dev_stat_grps); in to_stat_lu_dev()
238 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_lu_name_show()
248 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_vend_show()
262 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_prod_show()
276 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_rev_show()
[all …]
Dtarget_core_file.c44 static inline struct fd_dev *FD_DEV(struct se_device *dev) in FD_DEV()
83 static struct se_device *fd_alloc_device(struct se_hba *hba, const char *name) in fd_alloc_device()
101 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()
243 static void fd_destroy_device(struct se_device *dev) in fd_destroy_device()
278 struct se_device *dev = cmd->se_dev; in fd_execute_rw_aio()
407 struct se_device *dev = cmd->se_dev; in fd_execute_sync_cache()
452 struct se_device *se_dev = cmd->se_dev; in fd_execute_write_same()
507 fd_do_prot_fill(struct se_device *se_dev, sector_t lba, sector_t nolb, in fd_do_prot_fill()
[all …]
Dtarget_core_rd.c41 static inline struct rd_dev *RD_DEV(struct se_device *dev) in RD_DEV()
283 static struct se_device *rd_alloc_device(struct se_hba *hba, const char *name) in rd_alloc_device()
297 static int rd_configure_device(struct se_device *dev) in rd_configure_device()
334 struct se_device *dev = container_of(p, struct se_device, rcu_head); in rd_dev_call_rcu()
340 static void rd_free_device(struct se_device *dev) in rd_free_device()
345 static void rd_destroy_device(struct se_device *dev) in rd_destroy_device()
394 struct se_device *se_dev = cmd->se_dev; in rd_do_prot_rw()
433 struct se_device *se_dev = cmd->se_dev; in rd_execute_rw()
555 static ssize_t rd_set_configfs_dev_params(struct se_device *dev, in rd_set_configfs_dev_params()
599 static ssize_t rd_show_configfs_dev_params(struct se_device *dev, char *b) in rd_show_configfs_dev_params()
[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()
300 static int pscsi_add_device_to_list(struct se_device *dev, in pscsi_add_device_to_list()
349 static struct se_device *pscsi_alloc_device(struct se_hba *hba, in pscsi_alloc_device()
367 static int pscsi_create_type_disk(struct se_device *dev, struct scsi_device *sd) in pscsi_create_type_disk()
412 static int pscsi_create_type_nondisk(struct se_device *dev, struct scsi_device *sd) in pscsi_create_type_nondisk()
439 static int pscsi_configure_device(struct se_device *dev) in pscsi_configure_device()
561 struct se_device *dev = container_of(p, struct se_device, rcu_head); in pscsi_dev_call_rcu()
567 static void pscsi_free_device(struct se_device *dev) in pscsi_free_device()
572 static void pscsi_destroy_device(struct se_device *dev) in pscsi_destroy_device()
[all …]
Dtarget_core_pr.c80 static void __core_scsi3_complete_pro_release(struct se_device *, struct se_node_acl *,
102 struct se_device *dev = cmd->se_dev; in target_scsi2_reservation_check()
128 static struct t10_pr_registration *core_scsi3_locate_pr_reg(struct se_device *,
135 struct se_device *dev = cmd->se_dev; in target_check_scsi2_reservation_conflict()
206 struct se_device *dev = cmd->se_dev; in target_scsi2_reservation_release()
252 struct se_device *dev = cmd->se_dev; in target_scsi2_reservation_reserve()
573 struct se_device *dev = cmd->se_dev; in target_scsi3_pr_reservation_check()
602 static u32 core_scsi3_pr_generation(struct se_device *dev) in core_scsi3_pr_generation()
623 struct se_device *dev, in __core_scsi3_do_alloc_registration()
698 struct se_device *dev, in __core_scsi3_alloc_registration()
[all …]
Dtarget_core_device.c58 struct se_device *g_lun0_dev;
420 struct se_device *dev = rcu_dereference_raw(lun->lun_se_dev); in core_disable_device_list_for_node()
490 int core_alloc_rtpi(struct se_lun *lun, struct se_device *dev) in core_alloc_rtpi()
531 static void se_release_vpd_for_dev(struct se_device *dev) in se_release_vpd_for_dev()
564 struct se_device *dev, in core_dev_add_lun()
652 struct se_device *dev = rcu_dereference_raw(lun->lun_se_dev); in core_dev_add_initiator_node_lun_acl()
720 static void scsi_dump_inquiry(struct se_device *dev) in scsi_dump_inquiry()
756 struct se_device *target_alloc_device(struct se_hba *hba, const char *name) in target_alloc_device()
758 struct se_device *dev; in target_alloc_device()
866 sector_t target_to_linux_sector(struct se_device *dev, sector_t lb) in target_to_linux_sector()
[all …]
Dtarget_core_configfs.c611 static void dev_set_t10_wwn_model_alias(struct se_device *dev) in dev_set_t10_wwn_model_alias()
628 struct se_device *dev = da->da_dev; in emulate_model_alias_store()
784 struct se_device *dev = da->da_dev; in pi_prot_type_store()
846 struct se_device *dev = da->da_dev; in pi_prot_format_store()
993 struct se_device *dev = da->da_dev; in queue_depth_store()
1227 struct se_device *dev = t10_wwn->t10_dev; in target_wwn_vpd_unit_serial_store()
1380 static struct se_device *pr_to_dev(struct config_item *item) in pr_to_dev()
1382 return container_of(to_config_group(item), struct se_device, in pr_to_dev()
1386 static ssize_t target_core_dev_pr_show_spc3_res(struct se_device *dev, in target_core_dev_pr_show_spc3_res()
1407 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()
443 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_86()
485 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_b0()
579 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_b1()
592 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_b2()
656 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_b3()
706 struct se_device *dev = cmd->se_dev; in spc_emulate_inquiry()
[all …]
Dtarget_core_xcopy.h27 struct se_device *src_dev;
29 struct se_device *dst_dev;
Dtarget_core_xcopy.c45 static int target_xcopy_gen_naa_ieee(struct se_device *dev, unsigned char *buf) in target_xcopy_gen_naa_ieee()
60 struct se_device *found_dev;
63 static int target_xcopy_locate_se_dev_e4_iter(struct se_device *se_dev, in target_xcopy_locate_se_dev_e4_iter()
96 struct se_device **found_dev) in target_xcopy_locate_se_dev_e4()
204 struct se_device *local_dev = se_cmd->se_dev; in target_xcopy_parse_target_descriptors()
415 struct se_device *remote_dev; in xcopy_pt_undepend_remotedev()
565 static void target_xcopy_init_pt_lun(struct se_device *se_dev, in target_xcopy_init_pt_lun()
586 struct se_device *se_dev, in target_xcopy_setup_pt_cmd()
669 struct se_device *src_dev, in target_xcopy_read_source()
731 struct se_device *dst_dev, in target_xcopy_write_destination()
[all …]
Dtarget_core_tmr.c66 struct se_device *dev = tmr->tmr_dev; in core_tmr_release_req()
143 struct se_device *dev, in core_tmr_abort_task()
194 struct se_device *dev, in core_tmr_drain_tmr_list()
280 struct se_device *dev, in core_tmr_drain_state_list()
369 struct se_device *dev, in core_tmr_lun_reset()
Dtarget_core_sbc.c41 sbc_check_prot(struct se_device *, struct se_cmd *, unsigned char *, u32, bool);
47 struct se_device *dev = cmd->se_dev; in sbc_emulate_readcapacity()
90 struct se_device *dev = cmd->se_dev; in sbc_emulate_readcapacity_16()
297 struct se_device *dev = cmd->se_dev; in sbc_setup_write_same()
425 struct se_device *dev = cmd->se_dev; in compare_and_write_post()
455 struct se_device *dev = cmd->se_dev; in compare_and_write_callback()
609 struct se_device *dev = cmd->se_dev; in sbc_compare_and_write()
705 sbc_check_prot(struct se_device *dev, struct se_cmd *cmd, unsigned char *cdb, in sbc_check_prot()
784 sbc_check_dpofua(struct se_device *dev, struct se_cmd *cmd, unsigned char *cdb) in sbc_check_dpofua()
809 struct se_device *dev = cmd->se_dev; in sbc_parse_cdb()
[all …]
Dtarget_core_alua.c71 struct se_device *dev = cmd->se_dev; in target_emulate_report_referrals()
151 struct se_device *dev = cmd->se_dev; in target_emulate_report_target_port_groups()
283 struct se_device *dev = cmd->se_dev; in target_emulate_set_target_port_groups()
478 struct se_device *dev = cmd->se_dev; in core_alua_state_lba_dependent()
685 struct se_device *dev = cmd->se_dev; in target_alua_state_check()
1095 struct se_device *l_dev, in core_alua_do_port_transition()
1101 struct se_device *dev; in core_alua_do_port_transition()
1375 core_alua_set_lba_map(struct se_device *dev, struct list_head *lba_map_list, in core_alua_set_lba_map()
1481 core_alua_allocate_lu_gp_mem(struct se_device *dev) in core_alua_allocate_lu_gp_mem()
1559 void core_alua_free_lu_gp_mem(struct se_device *dev) in core_alua_free_lu_gp_mem()
[all …]
Dtarget_core_transport.c69 struct se_device *dev, int err, bool write_pending);
628 struct se_device *dev = cmd->se_dev; in target_remove_from_state_list()
738 struct se_device *dev = cmd->se_dev; in transport_get_sense_buffer()
775 struct se_device *dev = cmd->se_dev; in target_complete_cmd()
850 struct se_device *dev = cmd->se_dev; in target_add_to_state_list()
869 struct se_device *dev = container_of(work, struct se_device, in target_qf_do_work()
915 struct se_device *dev, in transport_dump_dev_state()
1189 target_check_max_data_sg_nents(struct se_cmd *cmd, struct se_device *dev, in target_check_max_data_sg_nents()
1240 struct se_device *dev = cmd->se_dev; in target_cmd_size_check()
1338 struct se_device *dev = cmd->se_dev; in transport_check_alloc_task_attr()
[all …]
Dtarget_core_user.c125 struct se_device se_dev;
581 struct se_device *se_dev = se_cmd->se_dev; in tcmu_alloc_cmd()
1116 struct se_device *se_dev = se_cmd->se_dev; in tcmu_queue_cmd()
1351 static struct se_device *tcmu_alloc_device(struct se_hba *hba, const char *name) in tcmu_alloc_device()
1578 struct se_device *dev = container_of(p, struct se_device, rcu_head); in tcmu_dev_call_rcu()
1613 struct se_device *dev = &udev->se_dev; in tcmu_dev_kref_release()
1829 static int tcmu_configure_device(struct se_device *dev) in tcmu_configure_device()
1941 static void tcmu_free_device(struct se_device *dev) in tcmu_free_device()
1949 static void tcmu_destroy_device(struct se_device *dev) in tcmu_destroy_device()
2110 static ssize_t tcmu_set_configfs_dev_params(struct se_device *dev, in tcmu_set_configfs_dev_params()
[all …]
Dtarget_core_iblock.h22 struct se_device dev;
Dtarget_core_file.h29 struct se_device dev;
Dtarget_core_rd.h33 struct se_device dev;
Dtarget_core_pscsi.h38 struct se_device dev;

12