Home
last modified time | relevance | path

Searched refs:pi_prot_type (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/target/
A Dtarget_core_sbc.c79 int pi_prot_type = dev->dev_attrib.pi_prot_type; in sbc_emulate_readcapacity_16() local
96 if (!pi_prot_type) in sbc_emulate_readcapacity_16()
97 pi_prot_type = sess->sess_prot_type; in sbc_emulate_readcapacity_16()
99 if (pi_prot_type) in sbc_emulate_readcapacity_16()
100 buf[12] = (pi_prot_type - 1) << 1 | 0x1; in sbc_emulate_readcapacity_16()
724 int pi_prot_type = dev->dev_attrib.pi_prot_type; in sbc_check_prot() local
729 !dev->dev_attrib.pi_prot_type && !cmd->se_sess->sess_prot_type)) { in sbc_check_prot()
738 switch (dev->dev_attrib.pi_prot_type) { in sbc_check_prot()
762 pi_prot_type = cmd->se_sess->sess_prot_type; in sbc_check_prot()
774 if (sbc_set_prot_op_checks(protect, fabric_prot, pi_prot_type, is_write, cmd)) in sbc_check_prot()
[all …]
A Dtarget_core_iblock.c153 dev->dev_attrib.pi_prot_type = TARGET_DIF_TYPE3_PROT; in iblock_configure_device()
155 dev->dev_attrib.pi_prot_type = TARGET_DIF_TYPE1_PROT; in iblock_configure_device()
158 if (dev->dev_attrib.pi_prot_type) { in iblock_configure_device()
167 dev->dev_attrib.hw_pi_prot_type = dev->dev_attrib.pi_prot_type; in iblock_configure_device()
773 if (cmd->prot_type && dev->dev_attrib.pi_prot_type) in iblock_execute_rw()
785 if (cmd->prot_type && dev->dev_attrib.pi_prot_type) { in iblock_execute_rw()
810 if (cmd->prot_type && dev->dev_attrib.pi_prot_type) { in iblock_execute_rw()
A Dtarget_core_file.c547 if (cmd->se_dev->dev_attrib.pi_prot_type) { in fd_execute_unmap()
602 if (cmd->prot_type && dev->dev_attrib.pi_prot_type) { in fd_execute_rw_buffered()
613 if (ret > 0 && cmd->prot_type && dev->dev_attrib.pi_prot_type && in fd_execute_rw_buffered()
624 if (cmd->prot_type && dev->dev_attrib.pi_prot_type && in fd_execute_rw_buffered()
655 if (ret > 0 && cmd->prot_type && dev->dev_attrib.pi_prot_type) { in fd_execute_rw_buffered()
871 if (!dev->dev_attrib.pi_prot_type) { in fd_format_prot()
A Dtarget_core_spc.c114 if (dev->dev_attrib.pi_prot_type || cmd->se_sess->sess_prot_type) in spc_emulate_inquiry_std()
480 if (dev->dev_attrib.pi_prot_type == TARGET_DIF_TYPE1_PROT || in spc_emulate_evpd_86()
483 else if (dev->dev_attrib.pi_prot_type == TARGET_DIF_TYPE3_PROT || in spc_emulate_evpd_86()
491 (dev->dev_attrib.pi_prot_type || cmd->se_sess->sess_prot_type)) { in spc_emulate_evpd_86()
912 if (dev->dev_attrib.pi_prot_type || sess->sess_prot_type) in spc_modesense_control()
A Dtarget_core_rd.c453 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()
632 if (!dev->dev_attrib.pi_prot_type) in rd_init_prot()
A Dtarget_core_configfs.c531 DEF_CONFIGFS_ATTRIB_SHOW(pi_prot_type);
787 int old_prot = da->pi_prot_type, ret; in pi_prot_type_store()
827 da->pi_prot_type = flag; in pi_prot_type_store()
832 da->pi_prot_type = old_prot; in pi_prot_type_store()
833 da->pi_prot_verify = (bool) da->pi_prot_type; in pi_prot_type_store()
841 da->pi_prot_verify = (bool) da->pi_prot_type; in pi_prot_type_store()
910 if (!da->pi_prot_type) { in pi_prot_verify_store()
1190 CONFIGFS_ATTR(, pi_prot_type);
A Dtarget_core_device.c798 dev->dev_attrib.pi_prot_type = TARGET_DIF_TYPE0_PROT; in target_alloc_device()
/linux/include/target/
A Dtarget_core_base.h693 enum target_prot_type pi_prot_type; member

Completed in 44 milliseconds