/Linux-v4.19/drivers/target/ |
D | target_core_xcopy.c | 63 static int target_xcopy_locate_se_dev_e4_iter(struct se_device *se_dev, in target_xcopy_locate_se_dev_e4_iter() argument 70 if (!se_dev->dev_attrib.emulate_3pc) in target_xcopy_locate_se_dev_e4_iter() 74 target_xcopy_gen_naa_ieee(se_dev, &tmp_dev_wwn[0]); in target_xcopy_locate_se_dev_e4_iter() 80 info->found_dev = se_dev; in target_xcopy_locate_se_dev_e4_iter() 81 pr_debug("XCOPY 0xe4: located se_dev: %p\n", se_dev); in target_xcopy_locate_se_dev_e4_iter() 83 rc = target_depend_item(&se_dev->dev_group.cg_item); in target_xcopy_locate_se_dev_e4_iter() 86 rc, se_dev); in target_xcopy_locate_se_dev_e4_iter() 91 se_dev, &se_dev->dev_group); in target_xcopy_locate_se_dev_e4_iter() 174 xop->src_dev = se_cmd->se_dev; in target_xcopy_parse_tiddesc_e4() 191 xop->dst_dev = se_cmd->se_dev; in target_xcopy_parse_tiddesc_e4() [all …]
|
D | target_core_file.c | 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() local 453 struct fd_dev *fd_dev = FD_DEV(se_dev); in fd_execute_write_same() 454 loff_t pos = cmd->t_task_lba * se_dev->dev_attrib.block_size; in fd_execute_write_same() 472 cmd->t_data_sg[0].length != cmd->se_dev->dev_attrib.block_size) { in fd_execute_write_same() 477 cmd->se_dev->dev_attrib.block_size); in fd_execute_write_same() 490 len += se_dev->dev_attrib.block_size; 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() argument 510 struct fd_dev *fd_dev = FD_DEV(se_dev); in fd_do_prot_fill() [all …]
|
D | target_core_rd.c | 394 struct se_device *se_dev = cmd->se_dev; in rd_do_prot_rw() local 395 struct rd_dev *dev = RD_DEV(se_dev); in rd_do_prot_rw() 398 u32 sectors = cmd->data_length / se_dev->dev_attrib.block_size; in rd_do_prot_rw() 404 tmp = cmd->t_task_lba * se_dev->prot_length; in rd_do_prot_rw() 415 if (se_dev->dev_attrib.pi_prot_verify) { in rd_do_prot_rw() 433 struct se_device *se_dev = cmd->se_dev; in rd_execute_rw() local 434 struct rd_dev *dev = RD_DEV(se_dev); in rd_execute_rw() 450 tmp = cmd->t_task_lba * se_dev->dev_attrib.block_size; in rd_execute_rw() 466 if (cmd->prot_type && se_dev->dev_attrib.pi_prot_type && in rd_execute_rw() 534 if (cmd->prot_type && se_dev->dev_attrib.pi_prot_type && in rd_execute_rw()
|
D | target_core_spc.c | 67 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() 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() 474 spin_lock(&cmd->se_dev->t10_alua.lba_map_lock); in spc_emulate_evpd_86() 477 spin_unlock(&cmd->se_dev->t10_alua.lba_map_lock); 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() [all …]
|
D | target_core_pr.c | 102 struct se_device *dev = cmd->se_dev; in target_scsi2_reservation_check() 135 struct se_device *dev = cmd->se_dev; in target_check_scsi2_reservation_conflict() 140 pr_reg = core_scsi3_locate_pr_reg(cmd->se_dev, se_sess->se_node_acl, 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() 1504 struct se_device *dev = cmd->se_dev; in core_scsi3_decode_spec_i_port() 1534 local_pr_reg = __core_scsi3_alloc_registration(cmd->se_dev, in core_scsi3_decode_spec_i_port() 1765 dest_pr_reg = __core_scsi3_alloc_registration(cmd->se_dev, in core_scsi3_decode_spec_i_port() 1813 __core_scsi3_add_registration(cmd->se_dev, dest_node_acl, in core_scsi3_decode_spec_i_port() [all …]
|
D | target_core_iblock.c | 323 struct iblock_dev *ib_dev = IBLOCK_DEV(cmd->se_dev); in iblock_get_bio() 383 struct iblock_dev *ib_dev = IBLOCK_DEV(cmd->se_dev); in iblock_execute_sync_cache() 407 struct block_device *bdev = IBLOCK_DEV(cmd->se_dev)->ibd_bd; in iblock_execute_unmap() 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() 459 struct block_device *bdev = IBLOCK_DEV(cmd->se_dev)->ibd_bd; in iblock_execute_write_same() 464 struct se_device *dev = cmd->se_dev; in iblock_execute_write_same() 477 sg->length != cmd->se_dev->dev_attrib.block_size) { in iblock_execute_write_same() 480 cmd->se_dev->dev_attrib.block_size); in iblock_execute_write_same() 640 struct se_device *dev = cmd->se_dev; in iblock_alloc_bip() [all …]
|
D | target_core_sbc.c | 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() 200 return cmd->se_dev->transport->get_blocks(cmd->se_dev) - in sbc_get_write_same_sectors() 231 return cmd->se_dev->dev_attrib.block_size * sectors; in sbc_get_size() 297 struct se_device *dev = cmd->se_dev; in sbc_setup_write_same() 308 if (sectors > cmd->se_dev->dev_attrib.max_write_same_len) { in sbc_setup_write_same() 310 sectors, cmd->se_dev->dev_attrib.max_write_same_len); 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() [all …]
|
D | target_core_transport.c | 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() 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() 1359 struct se_device *dev = cmd->se_dev; in target_setup_cmd_from_cdb() 1847 cmd->se_dev->dev_attrib.emulate_ua_intlck_ctrl == 2) { in transport_generic_request_failure() 1876 transport_handle_queue_full(cmd, cmd->se_dev, ret, false); in transport_generic_request_failure() 1938 sectors = cmd->data_length >> ilog2(cmd->se_dev->dev_attrib.block_size); in target_write_prot_action() [all …]
|
D | target_core_user.c | 125 struct se_device se_dev; member 175 #define TCMU_DEV(_se_dev) container_of(_se_dev, struct tcmu_dev, se_dev) 379 if (nl_cmd->udev->se_dev.dev_index == dev_id) { in tcmu_genl_cmd_done() 581 struct se_device *se_dev = se_cmd->se_dev; in tcmu_alloc_cmd() local 582 struct tcmu_dev *udev = TCMU_DEV(se_dev); in tcmu_alloc_cmd() 1116 struct se_device *se_dev = se_cmd->se_dev; in tcmu_queue_cmd() local 1117 struct tcmu_dev *udev = TCMU_DEV(se_dev); in tcmu_queue_cmd() 1383 return &udev->se_dev; in tcmu_alloc_device() 1613 struct se_device *dev = &udev->se_dev; in tcmu_dev_kref_release() 1738 ret = nla_put_u32(skb, TCMU_ATTR_DEVICE_ID, udev->se_dev.dev_index); in tcmu_netlink_event_init() [all …]
|
D | target_core_device.c | 146 se_cmd->se_dev = rcu_dereference_raw(se_lun->lun_se_dev); in transport_lookup_cmd_lun() 147 atomic_long_inc(&se_cmd->se_dev->num_cmds); in transport_lookup_cmd_lun() 151 &se_cmd->se_dev->write_bytes); in transport_lookup_cmd_lun() 154 &se_cmd->se_dev->read_bytes); in transport_lookup_cmd_lun() 195 se_cmd->se_dev = rcu_dereference_raw(se_lun->lun_se_dev); in transport_lookup_tmr_lun() 1128 struct se_device *dev = cmd->se_dev; in passthrough_parse_cdb()
|
D | target_core_ua.c | 209 struct se_device *dev = cmd->se_dev; in core_scsi3_ua_for_check_condition()
|
D | target_core_alua.c | 71 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()
|
D | target_core_pscsi.c | 609 struct pscsi_dev_virt *pdv = PSCSI_DEV(cmd->se_dev); in pscsi_complete_cmd() 880 struct pscsi_dev_virt *pdv = PSCSI_DEV(cmd->se_dev); in pscsi_map_sg() 990 struct pscsi_dev_virt *pdv = PSCSI_DEV(cmd->se_dev); in pscsi_execute_cmd()
|
D | target_core_tmr.c | 154 if (dev != se_cmd->se_dev) in core_tmr_abort_task()
|
/Linux-v4.19/include/target/ |
D | target_core_backend.h | 114 static inline bool target_dev_configured(struct se_device *se_dev) in target_dev_configured() argument 116 return !!(se_dev->dev_flags & DF_CONFIGURED); in target_dev_configured()
|
D | target_core_base.h | 472 struct se_device *se_dev; member
|
/Linux-v4.19/drivers/scsi/qla2xxx/ |
D | tcm_qla2xxx.c | 404 cmd->blk_sz = se_cmd->se_dev->dev_attrib.block_size; in tcm_qla2xxx_write_pending() 687 cmd->blk_sz = se_cmd->se_dev->dev_attrib.block_size; in tcm_qla2xxx_queue_data_in()
|
/Linux-v4.19/drivers/infiniband/ulp/isert/ |
D | ib_isert.c | 1630 u32 block_size = se_cmd->se_dev->dev_attrib.block_size + 8; in isert_check_pi_status() 2075 domain->sig.dif.pi_interval = se_cmd->se_dev->dev_attrib.block_size; in isert_set_dif_domain()
|