Home
last modified time | relevance | path

Searched refs:se_dev (Results 1 - 25 of 34) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/target/
H A Dtarget_core_file.c265 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_dev = cmd->se_dev; in fd_execute_write_same() local
440 struct fd_dev *fd_dev = FD_DEV(se_dev); in fd_execute_write_same()
441 loff_t pos = cmd->t_task_lba * se_dev->dev_attrib.block_size; in fd_execute_write_same()
459 cmd->t_data_sg[0].length != cmd->se_dev->dev_attrib.block_size) { in fd_execute_write_same()
464 cmd->se_dev->dev_attrib.block_size); in fd_execute_write_same()
477 len += se_dev->dev_attrib.block_size; in fd_execute_write_same()
494 fd_do_prot_fill(struct se_device *se_dev, sector_ argument
576 struct se_device *se_dev = cmd->se_dev; fd_execute_unmap() local
[all...]
H A Dtarget_core_rd.c381 struct se_device *se_dev = cmd->se_dev; in rd_do_prot_rw() local
382 struct rd_dev *dev = RD_DEV(se_dev); in rd_do_prot_rw()
385 u32 sectors = cmd->data_length / se_dev->dev_attrib.block_size; in rd_do_prot_rw()
391 tmp = cmd->t_task_lba * se_dev->prot_length; in rd_do_prot_rw()
402 if (se_dev->dev_attrib.pi_prot_verify) { in rd_do_prot_rw()
420 struct se_device *se_dev = cmd->se_dev; in rd_execute_rw() local
421 struct rd_dev *dev = RD_DEV(se_dev); in rd_execute_rw()
437 tmp = cmd->t_task_lba * se_dev in rd_execute_rw()
[all...]
H A Dtarget_core_pr.c89 struct se_device *dev = cmd->se_dev; in target_scsi2_reservation_check()
122 struct se_device *dev = cmd->se_dev; in target_check_scsi2_reservation_conflict()
127 pr_reg = core_scsi3_locate_pr_reg(cmd->se_dev, se_sess->se_node_acl, in target_check_scsi2_reservation_conflict()
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()
1484 struct se_device *dev = cmd->se_dev; in core_scsi3_decode_spec_i_port()
1514 local_pr_reg = __core_scsi3_alloc_registration(cmd->se_dev, in core_scsi3_decode_spec_i_port()
1763 dest_pr_reg = __core_scsi3_alloc_registration(cmd->se_dev, in core_scsi3_decode_spec_i_port()
1811 __core_scsi3_add_registration(cmd->se_dev, dest_node_ac in core_scsi3_decode_spec_i_port()
[all...]
H A Dtarget_core_xcopy.c52 * @se_dev: device being considered for match
56 static int target_xcopy_locate_se_dev_e4_iter(struct se_device *se_dev, in target_xcopy_locate_se_dev_e4_iter() argument
62 if (!se_dev->dev_attrib.emulate_3pc) { in target_xcopy_locate_se_dev_e4_iter()
63 pr_debug("XCOPY: emulate_3pc disabled on se_dev %p\n", se_dev); in target_xcopy_locate_se_dev_e4_iter()
68 target_xcopy_gen_naa_ieee(se_dev, &tmp_dev_wwn[0]); in target_xcopy_locate_se_dev_e4_iter()
76 pr_debug("XCOPY 0xe4: located se_dev: %p\n", se_dev); in target_xcopy_locate_se_dev_e4_iter()
118 pr_debug("lun_ref held for se_dev: %p se_dev in target_xcopy_locate_se_dev_e4()
535 target_xcopy_setup_pt_cmd( struct xcopy_pt_cmd *xpt_cmd, struct xcopy_op *xop, struct se_device *se_dev, unsigned char *cdb, bool remote_port) target_xcopy_setup_pt_cmd() argument
[all...]
H A Dtarget_core_spc.c54 struct se_device *dev = cmd->se_dev; in spc_emulate_inquiry_std()
121 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_80()
170 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_83()
440 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_86()
471 spin_lock(&cmd->se_dev->t10_alua.lba_map_lock); in spc_emulate_evpd_86()
474 spin_unlock(&cmd->se_dev->t10_alua.lba_map_lock); in spc_emulate_evpd_86()
482 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_b0()
576 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_b1()
589 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_b2()
653 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_b3()
[all...]
H A Dtarget_core_sbc.c34 struct se_device *dev = cmd->se_dev; in sbc_emulate_readcapacity()
77 struct se_device *dev = cmd->se_dev; in sbc_emulate_readcapacity_16()
187 return cmd->se_dev->transport->get_blocks(cmd->se_dev) - in sbc_get_write_same_sectors()
218 return cmd->se_dev->dev_attrib.block_size * sectors; in sbc_get_size()
284 struct se_device *dev = cmd->se_dev; in sbc_setup_write_same()
295 if (sectors > cmd->se_dev->dev_attrib.max_write_same_len) { in sbc_setup_write_same()
297 sectors, cmd->se_dev->dev_attrib.max_write_same_len); in sbc_setup_write_same()
416 struct se_device *dev = cmd->se_dev; in compare_and_write_post()
440 struct se_device *dev = cmd->se_dev; in compare_and_write_callback()
[all...]
H A Dtarget_core_iblock.c310 struct iblock_dev *ib_dev = IBLOCK_DEV(cmd->se_dev); in iblock_get_bio()
370 struct iblock_dev *ib_dev = IBLOCK_DEV(cmd->se_dev); in iblock_execute_sync_cache()
394 struct block_device *bdev = IBLOCK_DEV(cmd->se_dev)->ibd_bd; in iblock_execute_unmap()
395 struct se_device *dev = cmd->se_dev; in iblock_execute_unmap()
413 struct se_device *dev = cmd->se_dev; in iblock_execute_zero_out()
446 struct block_device *bdev = IBLOCK_DEV(cmd->se_dev)->ibd_bd; in iblock_execute_write_same()
451 struct se_device *dev = cmd->se_dev; in iblock_execute_write_same()
464 sg->length != cmd->se_dev->dev_attrib.block_size) { in iblock_execute_write_same()
467 cmd->se_dev->dev_attrib.block_size); in iblock_execute_write_same()
627 struct se_device *dev = cmd->se_dev; in iblock_alloc_bip()
[all...]
H A Dtarget_core_user.c113 struct se_device se_dev; member
166 #define TCMU_DEV(_se_dev) container_of(_se_dev, struct tcmu_dev, se_dev)
382 if (nl_cmd->udev->se_dev.dev_index == dev_id) { in tcmu_genl_cmd_done()
625 struct se_device *se_dev = se_cmd->se_dev; in tcmu_alloc_cmd() local
626 struct tcmu_dev *udev = TCMU_DEV(se_dev); in tcmu_alloc_cmd()
1178 struct se_device *se_dev = se_cmd->se_dev; in tcmu_queue_cmd() local
1179 struct tcmu_dev *udev = TCMU_DEV(se_dev); in tcmu_queue_cmd()
1228 tcmu_tmr_notify(struct se_device *se_dev, enu argument
2754 struct se_device *se_dev = container_of(to_config_group(item), tcmu_block_dev_show() local
2768 struct se_device *se_dev = container_of(to_config_group(item), tcmu_block_dev_store() local
2800 struct se_device *se_dev = container_of(to_config_group(item), tcmu_reset_ring_store() local
[all...]
H A Dtarget_core_transport.c647 struct se_device *dev = cmd->se_dev; in target_remove_from_state_list()
731 struct se_device *dev = cmd->se_dev; in transport_get_sense_buffer()
782 transport_handle_queue_full(cmd, cmd->se_dev, in target_handle_abort()
901 struct se_device *dev = cmd->se_dev; in target_add_to_state_list()
1305 struct se_device *dev = cmd->se_dev; in target_cmd_size_check()
1408 struct se_device *dev = cmd->se_dev; in transport_check_alloc_task_attr()
1482 struct se_device *dev = cmd->se_dev; in target_cmd_parse_cdb()
1942 cmd->se_dev->dev_attrib.emulate_ua_intlck_ctrl in transport_generic_request_failure()
1972 transport_handle_queue_full(cmd, cmd->se_dev, ret, false); in transport_generic_request_failure()
2034 sectors = cmd->data_length >> ilog2(cmd->se_dev in target_write_prot_action()
[all...]
H A Dtarget_core_device.c132 se_cmd->se_dev = rcu_dereference_raw(se_lun->lun_se_dev); in transport_lookup_cmd_lun()
133 atomic_long_inc(&se_cmd->se_dev->num_cmds); in transport_lookup_cmd_lun()
137 &se_cmd->se_dev->write_bytes); in transport_lookup_cmd_lun()
140 &se_cmd->se_dev->read_bytes); in transport_lookup_cmd_lun()
181 se_cmd->se_dev = rcu_dereference_raw(se_lun->lun_se_dev); in transport_lookup_tmr_lun()
929 pr_err("se_dev->se_dev_ptr already set for storage" in target_configure_device()
1085 struct se_device *dev = cmd->se_dev; in passthrough_parse_cdb()
H A Dtarget_core_pscsi.c310 * Setup our standard INQUIRY info into se_dev->t10_wwn in pscsi_add_device_to_list()
596 struct pscsi_dev_virt *pdv = PSCSI_DEV(cmd->se_dev); in pscsi_complete_cmd()
850 struct pscsi_dev_virt *pdv = PSCSI_DEV(cmd->se_dev); in pscsi_map_sg()
968 struct pscsi_dev_virt *pdv = PSCSI_DEV(cmd->se_dev); in pscsi_execute_cmd()
H A Dtarget_core_ua.c196 struct se_device *dev = cmd->se_dev; in core_scsi3_ua_for_check_condition()
/kernel/linux/linux-6.6/drivers/target/
H A Dtarget_core_file.c270 struct se_device *dev = cmd->se_dev; in fd_execute_rw_aio()
387 struct se_device *dev = cmd->se_dev; in fd_execute_sync_cache()
432 struct se_device *se_dev = cmd->se_dev; in fd_execute_write_same() local
433 struct fd_dev *fd_dev = FD_DEV(se_dev); in fd_execute_write_same()
434 loff_t pos = cmd->t_task_lba * se_dev->dev_attrib.block_size; in fd_execute_write_same()
451 cmd->t_data_sg[0].length != cmd->se_dev->dev_attrib.block_size) { in fd_execute_write_same()
456 cmd->se_dev->dev_attrib.block_size); in fd_execute_write_same()
468 len += se_dev->dev_attrib.block_size; in fd_execute_write_same()
487 fd_do_prot_fill(struct se_device *se_dev, sector_ argument
569 struct se_device *se_dev = cmd->se_dev; fd_execute_unmap() local
[all...]
H A Dtarget_core_transport.c698 struct se_device *dev = cmd->se_dev; in target_remove_from_state_list()
797 struct se_device *dev = cmd->se_dev; in transport_get_sense_buffer()
848 transport_handle_queue_full(cmd, cmd->se_dev, in target_handle_abort()
984 struct se_device *dev = cmd->se_dev; in target_add_to_state_list()
1388 struct se_device *dev = cmd->se_dev; in target_cmd_size_check()
1485 struct se_device *dev = cmd->se_dev; in transport_check_alloc_task_attr()
1557 struct se_device *dev = cmd->se_dev; in target_cmd_parse_cdb()
1877 static struct se_dev_plug *target_plug_device(struct se_device *se_dev) in target_plug_device() argument
1881 if (!se_dev->transport->plug_device) in target_plug_device()
1884 se_plug = se_dev in target_plug_device()
1900 struct se_device *se_dev = se_plug->se_dev; target_unplug_device() local
1911 struct se_device *se_dev = NULL; target_queued_submit_work() local
1939 struct se_device *se_dev = se_cmd->se_dev; target_queue_submission() local
[all...]
H A Dtarget_core_iblock.c210 static struct se_dev_plug *iblock_plug_device(struct se_device *se_dev) in iblock_plug_device() argument
212 struct iblock_dev *ib_dev = IBLOCK_DEV(se_dev); in iblock_plug_device()
357 struct iblock_dev *ib_dev = IBLOCK_DEV(cmd->se_dev); in iblock_get_bio()
416 struct iblock_dev *ib_dev = IBLOCK_DEV(cmd->se_dev); in iblock_execute_sync_cache()
439 struct block_device *bdev = IBLOCK_DEV(cmd->se_dev)->ibd_bd; in iblock_execute_unmap()
440 struct se_device *dev = cmd->se_dev; in iblock_execute_unmap()
458 struct se_device *dev = cmd->se_dev; in iblock_execute_zero_out()
491 struct block_device *bdev = IBLOCK_DEV(cmd->se_dev)->ibd_bd; in iblock_execute_write_same()
496 struct se_device *dev = cmd->se_dev; in iblock_execute_write_same()
513 sg->length != cmd->se_dev in iblock_execute_write_same()
[all...]
H A Dtarget_core_xcopy.c39 * @se_dev: device being considered for match
43 static int target_xcopy_locate_se_dev_e4_iter(struct se_device *se_dev, in target_xcopy_locate_se_dev_e4_iter() argument
49 if (!se_dev->dev_attrib.emulate_3pc) { in target_xcopy_locate_se_dev_e4_iter()
50 pr_debug("XCOPY: emulate_3pc disabled on se_dev %p\n", se_dev); in target_xcopy_locate_se_dev_e4_iter()
55 spc_gen_naa_6h_vendor_specific(se_dev, &tmp_dev_wwn[0]); in target_xcopy_locate_se_dev_e4_iter()
63 pr_debug("XCOPY 0xe4: located se_dev: %p\n", se_dev); in target_xcopy_locate_se_dev_e4_iter()
105 pr_debug("lun_ref held for se_dev: %p se_dev in target_xcopy_locate_se_dev_e4()
510 target_xcopy_setup_pt_cmd( struct xcopy_pt_cmd *xpt_cmd, struct xcopy_op *xop, struct se_device *se_dev, unsigned char *cdb, bool remote_port) target_xcopy_setup_pt_cmd() argument
[all...]
H A Dtarget_core_rd.c381 struct se_device *se_dev = cmd->se_dev; in rd_do_prot_rw() local
382 struct rd_dev *dev = RD_DEV(se_dev); in rd_do_prot_rw()
385 u32 sectors = cmd->data_length / se_dev->dev_attrib.block_size; in rd_do_prot_rw()
391 tmp = cmd->t_task_lba * se_dev->prot_length; in rd_do_prot_rw()
402 if (se_dev->dev_attrib.pi_prot_verify) { in rd_do_prot_rw()
420 struct se_device *se_dev = cmd->se_dev; in rd_execute_rw() local
421 struct rd_dev *dev = RD_DEV(se_dev); in rd_execute_rw()
437 tmp = cmd->t_task_lba * se_dev in rd_execute_rw()
[all...]
H A Dtarget_core_pr.c89 struct se_device *dev = cmd->se_dev; in target_scsi2_reservation_check()
122 struct se_device *dev = cmd->se_dev; in target_check_scsi2_reservation_conflict()
127 pr_reg = core_scsi3_locate_pr_reg(cmd->se_dev, se_sess->se_node_acl, in target_check_scsi2_reservation_conflict()
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()
1470 struct se_device *dev = cmd->se_dev; in core_scsi3_decode_spec_i_port()
1500 local_pr_reg = __core_scsi3_alloc_registration(cmd->se_dev, in core_scsi3_decode_spec_i_port()
1746 dest_pr_reg = __core_scsi3_alloc_registration(cmd->se_dev, in core_scsi3_decode_spec_i_port()
1794 __core_scsi3_add_registration(cmd->se_dev, dest_node_ac in core_scsi3_decode_spec_i_port()
[all...]
H A Dtarget_core_spc.c76 struct se_device *dev = cmd->se_dev; in spc_emulate_inquiry_std()
146 if (cmd->se_dev->transport->get_device_type(dev) == TYPE_DISK) in spc_emulate_inquiry_std()
159 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_80()
223 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_83()
468 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_86()
499 spin_lock(&cmd->se_dev->t10_alua.lba_map_lock); in spc_emulate_evpd_86()
502 spin_unlock(&cmd->se_dev->t10_alua.lba_map_lock); in spc_emulate_evpd_86()
510 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_b0()
608 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_b1()
621 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_b2()
[all...]
H A Dtarget_core_sbc.c34 struct se_device *dev = cmd->se_dev; in sbc_emulate_readcapacity()
77 struct se_device *dev = cmd->se_dev; in sbc_emulate_readcapacity_16()
187 return cmd->se_dev->transport->get_blocks(cmd->se_dev) - in sbc_get_write_same_sectors()
218 return cmd->se_dev->dev_attrib.block_size * sectors; in sbc_get_size()
277 struct se_device *dev = cmd->se_dev; in sbc_setup_write_same()
288 if (sectors > cmd->se_dev->dev_attrib.max_write_same_len) { in sbc_setup_write_same()
290 sectors, cmd->se_dev->dev_attrib.max_write_same_len); in sbc_setup_write_same()
353 struct se_device *dev = cmd->se_dev; in compare_and_write_post()
439 struct se_device *dev = cmd->se_dev; in compare_and_write_callback()
[all...]
H A Dtarget_core_user.c115 struct se_device se_dev; member
174 #define TCMU_DEV(_se_dev) container_of(_se_dev, struct tcmu_dev, se_dev)
389 if (nl_cmd->udev->se_dev.dev_index == dev_id) { in tcmu_genl_cmd_done()
635 struct se_device *se_dev = se_cmd->se_dev; in tcmu_alloc_cmd() local
636 struct tcmu_dev *udev = TCMU_DEV(se_dev); in tcmu_alloc_cmd()
985 struct se_device *se_dev = se_plug->se_dev; in tcmu_unplug_device() local
986 struct tcmu_dev *udev = TCMU_DEV(se_dev); in tcmu_unplug_device()
992 static struct se_dev_plug *tcmu_plug_device(struct se_device *se_dev) in tcmu_plug_device() argument
1205 struct se_device *se_dev = se_cmd->se_dev; tcmu_queue_cmd() local
1255 tcmu_tmr_notify(struct se_device *se_dev, enum tcm_tmreq_table tmf, struct list_head *cmd_list) tcmu_tmr_notify() argument
3009 struct se_device *se_dev = container_of(to_config_group(item), tcmu_block_dev_show() local
3023 struct se_device *se_dev = container_of(to_config_group(item), tcmu_block_dev_store() local
3055 struct se_device *se_dev = container_of(to_config_group(item), tcmu_reset_ring_store() local
3084 struct se_device *se_dev = container_of(to_config_group(item), tcmu_free_kept_buf_store() local
[all...]
H A Dtarget_core_device.c129 se_cmd->se_dev = rcu_dereference_raw(se_lun->lun_se_dev); in transport_lookup_cmd_lun()
130 atomic_long_inc(&se_cmd->se_dev->num_cmds); in transport_lookup_cmd_lun()
134 &se_cmd->se_dev->write_bytes); in transport_lookup_cmd_lun()
137 &se_cmd->se_dev->read_bytes); in transport_lookup_cmd_lun()
177 se_cmd->se_dev = rcu_dereference_raw(se_lun->lun_se_dev); in transport_lookup_tmr_lun()
900 pr_err("se_dev->se_dev_ptr already set for storage" in target_configure_device()
1062 struct se_device *dev = cmd->se_dev; in passthrough_parse_cdb()
H A Dtarget_core_pscsi.c305 * Setup our standard INQUIRY info into se_dev->t10_wwn in pscsi_add_device_to_list()
590 struct pscsi_dev_virt *pdv = PSCSI_DEV(cmd->se_dev); in pscsi_complete_cmd()
826 struct pscsi_dev_virt *pdv = PSCSI_DEV(cmd->se_dev); in pscsi_map_sg()
938 struct pscsi_dev_virt *pdv = PSCSI_DEV(cmd->se_dev); in pscsi_execute_cmd()
/kernel/linux/linux-6.6/include/target/
H A Dtarget_core_backend.h37 struct se_dev_plug *(*plug_device)(struct se_device *se_dev);
40 bool (*configure_unmap)(struct se_device *se_dev);
46 void (*tmr_notify)(struct se_device *se_dev, enum tcm_tmreq_table,
127 static inline bool target_dev_configured(struct se_device *se_dev) in target_dev_configured() argument
129 return !!(se_dev->dev_flags & DF_CONFIGURED); in target_dev_configured()
/kernel/linux/linux-5.10/include/target/
H A Dtarget_core_backend.h43 void (*tmr_notify)(struct se_device *se_dev, enum tcm_tmreq_table,
119 static inline bool target_dev_configured(struct se_device *se_dev) in target_dev_configured() argument
121 return !!(se_dev->dev_flags & DF_CONFIGURED); in target_dev_configured()

Completed in 34 milliseconds

12