/linux-6.1.9/drivers/target/ |
D | target_core_file.c | 271 struct se_device *dev = cmd->se_dev; in fd_execute_rw_aio() 391 struct se_device *dev = cmd->se_dev; in fd_execute_sync_cache() 436 struct se_device *se_dev = cmd->se_dev; in fd_execute_write_same() local 437 struct fd_dev *fd_dev = FD_DEV(se_dev); in fd_execute_write_same() 438 loff_t pos = cmd->t_task_lba * se_dev->dev_attrib.block_size; in fd_execute_write_same() 455 cmd->t_data_sg[0].length != cmd->se_dev->dev_attrib.block_size) { in fd_execute_write_same() 460 cmd->se_dev->dev_attrib.block_size); in fd_execute_write_same() 473 len += se_dev->dev_attrib.block_size; in fd_execute_write_same() 490 fd_do_prot_fill(struct se_device *se_dev, sector_t lba, sector_t nolb, in fd_do_prot_fill() argument 493 struct fd_dev *fd_dev = FD_DEV(se_dev); in fd_do_prot_fill() [all …]
|
D | target_core_transport.c | 665 struct se_device *dev = cmd->se_dev; in target_remove_from_state_list() 764 struct se_device *dev = cmd->se_dev; in transport_get_sense_buffer() 815 transport_handle_queue_full(cmd, cmd->se_dev, in target_handle_abort() 951 struct se_device *dev = cmd->se_dev; in target_add_to_state_list() 1355 struct se_device *dev = cmd->se_dev; in target_cmd_size_check() 1453 struct se_device *dev = cmd->se_dev; in transport_check_alloc_task_attr() 1525 struct se_device *dev = cmd->se_dev; in target_cmd_parse_cdb() 1844 static struct se_dev_plug *target_plug_device(struct se_device *se_dev) in target_plug_device() argument 1848 if (!se_dev->transport->plug_device) in target_plug_device() 1851 se_plug = se_dev->transport->plug_device(se_dev); in target_plug_device() [all …]
|
D | target_core_xcopy.c | 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() 175 xop->src_dev = se_cmd->se_dev; in target_xcopy_parse_tiddesc_e4() 192 xop->dst_dev = se_cmd->se_dev; in target_xcopy_parse_tiddesc_e4() 205 struct se_device *local_dev = se_cmd->se_dev; in target_xcopy_parse_target_descriptors() 524 struct se_device *se_dev, in target_xcopy_setup_pt_cmd() argument 535 cmd->se_lun = &se_dev->xcopy_lun; in target_xcopy_setup_pt_cmd() [all …]
|
D | target_core_rd.c | 381 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->dev_attrib.block_size; in rd_execute_rw() 453 if (cmd->prot_type && se_dev->dev_attrib.pi_prot_type && in rd_execute_rw() 521 if (cmd->prot_type && se_dev->dev_attrib.pi_prot_type && in rd_execute_rw()
|
D | target_core_spc.c | 76 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() 477 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_86() 508 spin_lock(&cmd->se_dev->t10_alua.lba_map_lock); in spc_emulate_evpd_86() 511 spin_unlock(&cmd->se_dev->t10_alua.lba_map_lock); in spc_emulate_evpd_86() 519 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_b0() 613 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_b1() 626 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_b2() [all …]
|
D | target_core_iblock.c | 206 static struct se_dev_plug *iblock_plug_device(struct se_device *se_dev) in iblock_plug_device() argument 208 struct iblock_dev *ib_dev = IBLOCK_DEV(se_dev); in iblock_plug_device() 350 struct iblock_dev *ib_dev = IBLOCK_DEV(cmd->se_dev); in iblock_get_bio() 409 struct iblock_dev *ib_dev = IBLOCK_DEV(cmd->se_dev); in iblock_execute_sync_cache() 432 struct block_device *bdev = IBLOCK_DEV(cmd->se_dev)->ibd_bd; in iblock_execute_unmap() 433 struct se_device *dev = cmd->se_dev; in iblock_execute_unmap() 451 struct se_device *dev = cmd->se_dev; in iblock_execute_zero_out() 484 struct block_device *bdev = IBLOCK_DEV(cmd->se_dev)->ibd_bd; in iblock_execute_write_same() 489 struct se_device *dev = cmd->se_dev; in iblock_execute_write_same() 506 sg->length != cmd->se_dev->dev_attrib.block_size) { in iblock_execute_write_same() [all …]
|
D | target_core_pr.c | 89 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_acl, in core_scsi3_decode_spec_i_port() [all …]
|
D | target_core_sbc.c | 34 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() 360 struct se_device *dev = cmd->se_dev; in compare_and_write_post() 446 struct se_device *dev = cmd->se_dev; in compare_and_write_callback() 568 struct se_device *dev = cmd->se_dev; in sbc_compare_and_write() [all …]
|
D | target_core_user.c | 115 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 994 struct tcmu_dev *udev = TCMU_DEV(se_dev); in tcmu_plug_device() 1205 struct se_device *se_dev = se_cmd->se_dev; in tcmu_queue_cmd() local [all …]
|
D | target_core_device.c | 129 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() 178 se_cmd->se_dev = rcu_dereference_raw(se_lun->lun_se_dev); in transport_lookup_tmr_lun() 1109 struct se_device *dev = cmd->se_dev; in passthrough_parse_cdb()
|
D | target_core_alua.c | 58 struct se_device *dev = cmd->se_dev; in target_emulate_report_referrals() 138 struct se_device *dev = cmd->se_dev; in target_emulate_report_target_port_groups() 273 struct se_device *dev = cmd->se_dev; in target_emulate_set_target_port_groups() 452 struct se_device *dev = cmd->se_dev; in core_alua_state_lba_dependent() 646 struct se_device *dev = cmd->se_dev; in target_alua_state_check()
|
D | target_core_ua.c | 196 struct se_device *dev = cmd->se_dev; in core_scsi3_ua_for_check_condition()
|
D | target_core_pscsi.c | 593 struct pscsi_dev_virt *pdv = PSCSI_DEV(cmd->se_dev); in pscsi_complete_cmd() 829 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()
|
/linux-6.1.9/include/target/ |
D | target_core_backend.h | 37 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, 123 static inline bool target_dev_configured(struct se_device *se_dev) in target_dev_configured() argument 125 return !!(se_dev->dev_flags & DF_CONFIGURED); in target_dev_configured()
|
D | target_core_base.h | 491 struct se_device *se_dev; member 779 struct se_device *se_dev; member
|
/linux-6.1.9/drivers/scsi/qla2xxx/ |
D | tcm_qla2xxx.c | 414 cmd->blk_sz = se_cmd->se_dev->dev_attrib.block_size; in tcm_qla2xxx_write_pending() 681 cmd->blk_sz = se_cmd->se_dev->dev_attrib.block_size; in tcm_qla2xxx_queue_data_in()
|
/linux-6.1.9/drivers/infiniband/ulp/isert/ |
D | ib_isert.c | 1542 u32 block_size = se_cmd->se_dev->dev_attrib.block_size + 8; in isert_check_pi_status() 1984 domain->sig.dif.pi_interval = se_cmd->se_dev->dev_attrib.block_size; in isert_set_dif_domain()
|