Home
last modified time | relevance | path

Searched refs:se_dev (Results 1 – 17 of 17) sorted by relevance

/openbmc/linux/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()
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()
490 struct fd_dev *fd_dev = FD_DEV(se_dev); in fd_do_prot_fill()
556 struct se_device *dev = cmd->se_dev; in fd_execute_unmap()
569 struct se_device *se_dev = cmd->se_dev; in fd_execute_unmap() local
591 struct se_device *dev = cmd->se_dev; in fd_execute_rw_buffered()
[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()
984 struct se_device *dev = cmd->se_dev; in target_add_to_state_list()
1884 se_plug = se_dev->transport->plug_device(se_dev); in target_plug_device()
1888 se_plug->se_dev = se_dev; in target_plug_device()
1900 struct se_device *se_dev = se_plug->se_dev; in target_unplug_device() local
1911 struct se_device *se_dev = NULL; in target_queued_submit_work() local
1921 if (!se_dev) { in target_queued_submit_work()
1922 se_dev = se_cmd->se_dev; in target_queued_submit_work()
1939 struct se_device *se_dev = se_cmd->se_dev; in target_queue_submission() local
[all …]
H A Dtarget_core_xcopy.c49 if (!se_dev->dev_attrib.emulate_3pc) { 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()
513 struct se_device *se_dev, in target_xcopy_setup_pt_cmd() argument
524 cmd->se_lun = &se_dev->xcopy_lun; in target_xcopy_setup_pt_cmd()
525 cmd->se_dev = se_dev; in target_xcopy_setup_pt_cmd()
528 cmd->se_dev = xop->xop_se_cmd->se_dev; in target_xcopy_setup_pt_cmd()
875 struct se_device *dev = se_cmd->se_dev; in target_do_xcopy()
[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->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()
H A Dtarget_core_spc.c76 struct se_device *dev = cmd->se_dev; 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()
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()
685 struct se_device *dev = cmd->se_dev; in spc_emulate_evpd_b3()
735 struct se_device *dev = cmd->se_dev; in spc_emulate_inquiry()
804 struct se_device *dev = cmd->se_dev; in spc_modesense_control()
[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()
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()
2039 struct se_device *dev = cmd->se_dev; in core_scsi3_emulate_pro_register()
2262 struct se_device *dev = cmd->se_dev; in core_scsi3_pro_reserve()
2503 struct se_device *dev = cmd->se_dev; in core_scsi3_emulate_pro_release()
2659 struct se_device *dev = cmd->se_dev; in core_scsi3_emulate_pro_clear()
[all …]
H A Dtarget_core_iblock.c212 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()
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()
496 struct se_device *dev = cmd->se_dev; in iblock_execute_write_same()
516 cmd->se_dev->dev_attrib.block_size); in iblock_execute_write_same()
673 struct se_device *dev = cmd->se_dev; in iblock_alloc_bip()
727 struct se_device *dev = cmd->se_dev; in iblock_execute_rw()
844 struct se_device *dev = cmd->se_dev; in iblock_execute_pr_out()
963 struct se_device *dev = cmd->se_dev; in iblock_pr_read_keys()
[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()
277 struct se_device *dev = cmd->se_dev; 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()
571 struct se_device *dev = cmd->se_dev; in sbc_compare_and_write()
770 struct se_device *dev = cmd->se_dev; in sbc_parse_cdb()
1081 struct se_device *dev = cmd->se_dev; in sbc_execute_unmap()
1164 struct se_device *dev = cmd->se_dev; in sbc_dif_generate()
[all …]
H A Dtarget_core_user.c115 struct se_device se_dev; member
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()
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
1206 struct tcmu_dev *udev = TCMU_DEV(se_dev); in tcmu_queue_cmd()
1639 return &udev->se_dev; in tcmu_alloc_device()
1715 struct se_device *dev = &udev->se_dev; in tcmu_dev_kref_release()
[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()
1062 struct se_device *dev = cmd->se_dev; in passthrough_parse_cdb()
H A Dtarget_core_ua.c196 struct se_device *dev = cmd->se_dev; in core_scsi3_ua_for_check_condition()
H A Dtarget_core_alua.c58 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()
H A Dtarget_core_pscsi.c590 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()
/openbmc/linux/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()
H A Dtarget_core_base.h493 struct se_device *se_dev; member
784 struct se_device *se_dev; member
/openbmc/linux/drivers/scsi/qla2xxx/
H A Dtcm_qla2xxx.c409 cmd->blk_sz = se_cmd->se_dev->dev_attrib.block_size; in tcm_qla2xxx_write_pending()
671 cmd->blk_sz = se_cmd->se_dev->dev_attrib.block_size; in tcm_qla2xxx_queue_data_in()
/openbmc/linux/drivers/infiniband/ulp/isert/
H A Dib_isert.c1545 u32 block_size = se_cmd->se_dev->dev_attrib.block_size + 8; in isert_check_pi_status()
1987 domain->sig.dif.pi_interval = se_cmd->se_dev->dev_attrib.block_size; in isert_set_dif_domain()