Home
last modified time | relevance | path

Searched refs:se_device (Results 1 - 25 of 60) sorted by relevance

123

/kernel/linux/linux-5.10/include/target/
H A Dtarget_core_backend.h33 struct se_device *(*alloc_device)(struct se_hba *, const char *);
34 int (*configure_device)(struct se_device *);
35 void (*destroy_device)(struct se_device *);
36 void (*free_device)(struct se_device *device);
38 ssize_t (*set_configfs_dev_params)(struct se_device *,
40 ssize_t (*show_configfs_dev_params)(struct se_device *, char *);
43 void (*tmr_notify)(struct se_device *se_dev, enum tcm_tmreq_table,
45 u32 (*get_device_type)(struct se_device *);
46 sector_t (*get_blocks)(struct se_device *);
47 sector_t (*get_alignment_offset_lbas)(struct se_device *);
[all...]
H A Dtarget_core_base.h258 struct se_device *t10_dev;
282 struct se_device *lu_gp_mem_dev;
302 struct se_device *tg_pt_gp_dev;
330 struct se_device *t10_dev;
410 struct se_device *tmr_dev;
486 struct se_device *se_dev;
633 struct se_device;
708 struct se_device *da_dev;
734 struct se_device __rcu *lun_se_dev;
773 struct se_device { struct
[all...]
/kernel/linux/linux-6.6/include/target/
H A Dtarget_core_backend.h33 struct se_device *(*alloc_device)(struct se_hba *, const char *);
34 int (*configure_device)(struct se_device *);
35 void (*destroy_device)(struct se_device *);
36 void (*free_device)(struct se_device *device);
37 struct se_dev_plug *(*plug_device)(struct se_device *se_dev);
40 bool (*configure_unmap)(struct se_device *se_dev);
41 ssize_t (*set_configfs_dev_params)(struct se_device *,
43 ssize_t (*show_configfs_dev_params)(struct se_device *, char *);
46 void (*tmr_notify)(struct se_device *se_dev, enum tcm_tmreq_table,
48 u32 (*get_device_type)(struct se_device *);
[all...]
H A Dtarget_core_base.h264 struct se_device *t10_dev;
288 struct se_device *lu_gp_mem_dev;
308 struct se_device *tg_pt_gp_dev;
337 struct se_device *t10_dev;
417 struct se_device *tmr_dev;
493 struct se_device *se_dev;
645 struct se_device;
720 struct se_device *da_dev;
744 struct se_device __rcu *lun_se_dev;
784 struct se_device *se_de
793 struct se_device { global() struct
[all...]
/kernel/linux/linux-5.10/drivers/target/
H A 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...]
H A Dtarget_core_pr.h55 void spc_parse_naa_6h_vendor_specific(struct se_device *, unsigned char *);
61 extern void target_release_reservation(struct se_device *dev);
68 extern int core_scsi3_check_aptpl_registration(struct se_device *,
71 extern void core_scsi3_free_pr_reg_from_nacl(struct se_device *,
73 extern void core_scsi3_free_all_registrations(struct se_device *);
H A Dtarget_core_stat.c44 static struct se_device *to_stat_dev(struct config_item *item) in to_stat_dev()
48 return container_of(sgrps, struct se_device, dev_stat_grps); in to_stat_dev()
94 static struct se_device *to_stat_tgt_dev(struct config_item *item) in to_stat_tgt_dev()
98 return container_of(sgrps, struct se_device, dev_stat_grps); in to_stat_tgt_dev()
192 static struct se_device *to_stat_lu_dev(struct config_item *item) in to_stat_lu_dev()
196 return container_of(sgrps, struct se_device, dev_stat_grps); in to_stat_lu_dev()
225 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_lu_name_show()
235 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_vend_show()
243 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_prod_show()
251 struct se_device *de in target_stat_lu_rev_show()
[all...]
H A 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 *);
H A Dtarget_core_file.c31 static inline struct fd_dev *FD_DEV(struct se_device *dev) in FD_DEV()
70 static struct se_device *fd_alloc_device(struct se_hba *hba, const char *name) in fd_alloc_device()
88 static int fd_configure_device(struct se_device *dev) in fd_configure_device()
219 struct se_device *dev = container_of(p, struct se_device, rcu_head); in fd_dev_call_rcu()
225 static void fd_free_device(struct se_device *dev) in fd_free_device()
230 static void fd_destroy_device(struct se_device *dev) in fd_destroy_device()
265 struct se_device *dev = cmd->se_dev; in fd_execute_rw_aio()
394 struct se_device *dev = cmd->se_dev; in fd_execute_sync_cache()
439 struct se_device *se_de in fd_execute_write_same()
[all...]
H A Dtarget_core_iblock.c36 static inline struct iblock_dev *IBLOCK_DEV(struct se_device *dev) in IBLOCK_DEV()
54 static struct se_device *iblock_alloc_device(struct se_hba *hba, const char *name) in iblock_alloc_device()
69 static int iblock_configure_device(struct se_device *dev) in iblock_configure_device()
171 struct se_device *dev = container_of(p, struct se_device, rcu_head); in iblock_dev_call_rcu()
177 static void iblock_free_device(struct se_device *dev) in iblock_free_device()
182 static void iblock_destroy_device(struct se_device *dev) in iblock_destroy_device()
192 struct se_device *dev, in iblock_emulate_read_cap_with_block_size()
395 struct se_device *dev = cmd->se_dev; in iblock_execute_unmap()
413 struct se_device *de in iblock_execute_zero_out()
[all...]
H A Dtarget_core_rd.c28 static inline struct rd_dev *RD_DEV(struct se_device *dev) in RD_DEV()
270 static struct se_device *rd_alloc_device(struct se_hba *hba, const char *name) in rd_alloc_device()
284 static int rd_configure_device(struct se_device *dev) in rd_configure_device()
321 struct se_device *dev = container_of(p, struct se_device, rcu_head); in rd_dev_call_rcu()
327 static void rd_free_device(struct se_device *dev) in rd_free_device()
332 static void rd_destroy_device(struct se_device *dev) in rd_destroy_device()
381 struct se_device *se_dev = cmd->se_dev; in rd_do_prot_rw()
420 struct se_device *se_dev = cmd->se_dev; in rd_execute_rw()
542 static ssize_t rd_set_configfs_dev_params(struct se_device *de
[all...]
H A Dtarget_core_configfs.c606 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()
787 struct se_device *dev = da->da_dev; in pi_prot_type_store()
855 struct se_device *dev = da->da_dev; in pi_prot_format_store()
1002 struct se_device *dev = da->da_dev; in queue_depth_store()
1112 struct se_device *dev = da->da_dev; in alua_support_store()
1151 struct se_device *dev = da->da_dev; in pgr_support_store()
1332 struct se_device *dev = t10_wwn->t10_dev; in target_wwn_vendor_id_store()
1388 struct se_device *dev = t10_wwn->t10_dev; in target_wwn_product_id_store()
1444 struct se_device *de in target_wwn_revision_store()
[all...]
H A Dtarget_core_pr.c67 static void __core_scsi3_complete_pro_release(struct se_device *, struct se_node_acl *,
89 struct se_device *dev = cmd->se_dev; in target_scsi2_reservation_check()
115 static struct t10_pr_registration *core_scsi3_locate_pr_reg(struct se_device *,
122 struct se_device *dev = cmd->se_dev; in target_check_scsi2_reservation_conflict()
190 void target_release_reservation(struct se_device *dev) in target_release_reservation()
203 struct se_device *dev = cmd->se_dev; in target_scsi2_reservation_release()
244 struct se_device *dev = cmd->se_dev; in target_scsi2_reservation_reserve()
565 struct se_device *dev = cmd->se_dev; in target_scsi3_pr_reservation_check()
594 static u32 core_scsi3_pr_generation(struct se_device *dev) in core_scsi3_pr_generation()
615 struct se_device *de in __core_scsi3_do_alloc_registration()
[all...]
H A Dtarget_core_pscsi.c39 static inline struct pscsi_dev_virt *PSCSI_DEV(struct se_device *dev) in PSCSI_DEV()
136 static void pscsi_tape_read_blocksize(struct se_device *dev, in pscsi_tape_read_blocksize()
287 static int pscsi_add_device_to_list(struct se_device *dev, in pscsi_add_device_to_list()
336 static struct se_device *pscsi_alloc_device(struct se_hba *hba, in pscsi_alloc_device()
354 static int pscsi_create_type_disk(struct se_device *dev, struct scsi_device *sd)
399 static int pscsi_create_type_nondisk(struct se_device *dev, struct scsi_device *sd)
426 static int pscsi_configure_device(struct se_device *dev) in pscsi_configure_device()
548 struct se_device *dev = container_of(p, struct se_device, rcu_head); in pscsi_dev_call_rcu()
554 static void pscsi_free_device(struct se_device *de
[all...]
H A Dtarget_core_device.c45 struct se_device *g_lun0_dev;
401 * reference to se_device->dev_group. in core_disable_device_list_for_node()
403 struct se_device *dev = rcu_dereference_raw(lun->lun_se_dev); in core_disable_device_list_for_node()
476 int core_alloc_rtpi(struct se_lun *lun, struct se_device *dev) in core_alloc_rtpi()
489 * Allocate the next RELATIVE TARGET PORT IDENTIFIER for this struct se_device in core_alloc_rtpi()
517 static void se_release_vpd_for_dev(struct se_device *dev) in se_release_vpd_for_dev()
550 struct se_device *dev, in core_dev_add_lun()
636 * reference to se_device->dev_group. in core_dev_add_initiator_node_lun_acl()
638 struct se_device *dev = rcu_dereference_raw(lun->lun_se_dev); in core_dev_add_initiator_node_lun_acl()
706 static void scsi_dump_inquiry(struct se_device *de
[all...]
/kernel/linux/linux-6.6/drivers/target/
H A Dtarget_core_internal.h73 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),
91 void target_dev_ua_allocate(struct se_device *dev, u8 asc, u8 ascq);
114 void core_tmr_abort_task(struct se_device *, struct se_tmr_req *,
116 int core_tmr_lun_reset(struct se_device *, struct se_tmr_req *,
120 extern struct se_device *g_lun0_dev;
129 bool, struct se_device *);
[all...]
H A Dtarget_core_pr.h55 void spc_gen_naa_6h_vendor_specific(struct se_device *, unsigned char *);
61 extern void target_release_reservation(struct se_device *dev);
68 extern int core_scsi3_check_aptpl_registration(struct se_device *,
71 extern void core_scsi3_free_pr_reg_from_nacl(struct se_device *,
73 extern void core_scsi3_free_all_registrations(struct se_device *);
H A Dtarget_core_stat.c41 static struct se_device *to_stat_dev(struct config_item *item) in to_stat_dev()
45 return container_of(sgrps, struct se_device, dev_stat_grps); in to_stat_dev()
91 static struct se_device *to_stat_tgt_dev(struct config_item *item) in to_stat_tgt_dev()
95 return container_of(sgrps, struct se_device, dev_stat_grps); in to_stat_tgt_dev()
189 static struct se_device *to_stat_lu_dev(struct config_item *item) in to_stat_lu_dev()
193 return container_of(sgrps, struct se_device, dev_stat_grps); in to_stat_lu_dev()
222 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_lu_name_show()
232 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_vend_show()
240 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_prod_show()
248 struct se_device *de in target_stat_lu_rev_show()
[all...]
H A Dtarget_core_iblock.c40 static inline struct iblock_dev *IBLOCK_DEV(struct se_device *dev) in IBLOCK_DEV()
58 static struct se_device *iblock_alloc_device(struct se_hba *hba, const char *name) in iblock_alloc_device()
82 static bool iblock_configure_unmap(struct se_device *dev) in iblock_configure_unmap()
90 static int iblock_configure_device(struct se_device *dev) in iblock_configure_device()
189 struct se_device *dev = container_of(p, struct se_device, rcu_head); in iblock_dev_call_rcu()
196 static void iblock_free_device(struct se_device *dev) in iblock_free_device()
201 static void iblock_destroy_device(struct se_device *dev) in iblock_destroy_device()
210 static struct se_dev_plug *iblock_plug_device(struct se_device *se_dev) in iblock_plug_device()
216 * Each se_device ha in iblock_plug_device()
[all...]
H A 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 *);
H A Dtarget_core_file.c32 static inline struct fd_dev *FD_DEV(struct se_device *dev) in FD_DEV()
71 static struct se_device *fd_alloc_device(struct se_hba *hba, const char *name) in fd_alloc_device()
89 static bool fd_configure_unmap(struct se_device *dev) in fd_configure_unmap()
107 static int fd_configure_device(struct se_device *dev) in fd_configure_device()
223 struct se_device *dev = container_of(p, struct se_device, rcu_head); in fd_dev_call_rcu()
229 static void fd_free_device(struct se_device *dev) in fd_free_device()
234 static void fd_destroy_device(struct se_device *dev) in fd_destroy_device()
270 struct se_device *dev = cmd->se_dev; in fd_execute_rw_aio()
387 struct se_device *de in fd_execute_sync_cache()
[all...]
H A Dtarget_core_rd.c28 static inline struct rd_dev *RD_DEV(struct se_device *dev) in RD_DEV()
270 static struct se_device *rd_alloc_device(struct se_hba *hba, const char *name) in rd_alloc_device()
284 static int rd_configure_device(struct se_device *dev) in rd_configure_device()
321 struct se_device *dev = container_of(p, struct se_device, rcu_head); in rd_dev_call_rcu()
327 static void rd_free_device(struct se_device *dev) in rd_free_device()
332 static void rd_destroy_device(struct se_device *dev) in rd_destroy_device()
381 struct se_device *se_dev = cmd->se_dev; in rd_do_prot_rw()
420 struct se_device *se_dev = cmd->se_dev; in rd_execute_rw()
543 static ssize_t rd_set_configfs_dev_params(struct se_device *de
[all...]
H A Dtarget_core_pr.c67 static void __core_scsi3_complete_pro_release(struct se_device *, struct se_node_acl *,
89 struct se_device *dev = cmd->se_dev; in target_scsi2_reservation_check()
115 static struct t10_pr_registration *core_scsi3_locate_pr_reg(struct se_device *,
122 struct se_device *dev = cmd->se_dev; in target_check_scsi2_reservation_conflict()
190 void target_release_reservation(struct se_device *dev) in target_release_reservation()
203 struct se_device *dev = cmd->se_dev; in target_scsi2_reservation_release()
244 struct se_device *dev = cmd->se_dev; in target_scsi2_reservation_reserve()
566 struct se_device *dev = cmd->se_dev; in target_scsi3_pr_reservation_check()
595 static u32 core_scsi3_pr_generation(struct se_device *dev) in core_scsi3_pr_generation()
616 struct se_device *de in __core_scsi3_do_alloc_registration()
[all...]
H A Dtarget_core_pscsi.c36 static inline struct pscsi_dev_virt *PSCSI_DEV(struct se_device *dev) in PSCSI_DEV()
133 static void pscsi_tape_read_blocksize(struct se_device *dev, in pscsi_tape_read_blocksize()
282 static int pscsi_add_device_to_list(struct se_device *dev, in pscsi_add_device_to_list()
331 static struct se_device *pscsi_alloc_device(struct se_hba *hba, in pscsi_alloc_device()
349 static int pscsi_create_type_disk(struct se_device *dev, struct scsi_device *sd)
394 static int pscsi_create_type_nondisk(struct se_device *dev, struct scsi_device *sd)
421 static int pscsi_configure_device(struct se_device *dev) in pscsi_configure_device()
543 struct se_device *dev = container_of(p, struct se_device, rcu_head); in pscsi_dev_call_rcu()
549 static void pscsi_free_device(struct se_device *de
[all...]
H A Dtarget_core_configfs.c637 static void dev_set_t10_wwn_model_alias(struct se_device *dev) in dev_set_t10_wwn_model_alias()
659 struct se_device *dev = da->da_dev; in emulate_model_alias_store()
765 struct se_device *dev = da->da_dev; in emulate_tpu_store()
795 struct se_device *dev = da->da_dev; in emulate_tpws_store()
826 struct se_device *dev = da->da_dev; in pi_prot_type_store()
894 struct se_device *dev = da->da_dev; in pi_prot_format_store()
1005 struct se_device *dev = da->da_dev; in unmap_zeroes_data_store()
1044 struct se_device *dev = da->da_dev; in queue_depth_store()
1152 struct se_device *dev = da->da_dev; in alua_support_store()
1191 struct se_device *de in pgr_support_store()
[all...]

Completed in 28 milliseconds

123