Home
last modified time | relevance | path

Searched refs:pi_prot_type (Results 1 - 16 of 16) sorted by relevance

/kernel/linux/linux-5.10/drivers/target/
H A Dtarget_core_sbc.c79 int pi_prot_type = dev->dev_attrib.pi_prot_type; in sbc_emulate_readcapacity_16() local
93 * Only override a device's pi_prot_type if no T10-PI is in sbc_emulate_readcapacity_16()
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()
693 int pi_prot_type = dev->dev_attrib.pi_prot_type; in sbc_check_prot() local
698 !dev->dev_attrib.pi_prot_type in sbc_check_prot()
[all...]
H A Dtarget_core_iblock.c142 dev->dev_attrib.pi_prot_type = TARGET_DIF_TYPE3_PROT; in iblock_configure_device()
144 dev->dev_attrib.pi_prot_type = TARGET_DIF_TYPE1_PROT; in iblock_configure_device()
147 if (dev->dev_attrib.pi_prot_type) { in iblock_configure_device()
156 dev->dev_attrib.hw_pi_prot_type = dev->dev_attrib.pi_prot_type; in iblock_configure_device()
733 if (cmd->prot_type && dev->dev_attrib.pi_prot_type) in iblock_execute_rw()
746 if (cmd->prot_type && dev->dev_attrib.pi_prot_type) { in iblock_execute_rw()
772 if (cmd->prot_type && dev->dev_attrib.pi_prot_type) { in iblock_execute_rw()
H A Dtarget_core_file.c554 if (cmd->se_dev->dev_attrib.pi_prot_type) { in fd_execute_unmap()
609 if (cmd->prot_type && dev->dev_attrib.pi_prot_type) { in fd_execute_rw_buffered()
620 if (ret > 0 && cmd->prot_type && dev->dev_attrib.pi_prot_type && in fd_execute_rw_buffered()
631 if (cmd->prot_type && dev->dev_attrib.pi_prot_type && in fd_execute_rw_buffered()
662 if (ret > 0 && cmd->prot_type && dev->dev_attrib.pi_prot_type) { in fd_execute_rw_buffered()
878 if (!dev->dev_attrib.pi_prot_type) { in fd_format_prot()
879 pr_err("Unable to format_prot while pi_prot_type == 0\n"); in fd_format_prot()
H 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()
613 if (!dev->dev_attrib.pi_prot_type) in rd_init_prot()
H A Dtarget_core_spc.c92 if (dev->dev_attrib.pi_prot_type || cmd->se_sess->sess_prot_type) in spc_emulate_inquiry_std()
449 if (dev->dev_attrib.pi_prot_type == TARGET_DIF_TYPE1_PROT || in spc_emulate_evpd_86()
452 else if (dev->dev_attrib.pi_prot_type == TARGET_DIF_TYPE3_PROT || in spc_emulate_evpd_86()
460 (dev->dev_attrib.pi_prot_type || cmd->se_sess->sess_prot_type)) { in spc_emulate_evpd_86()
885 if (dev->dev_attrib.pi_prot_type || sess->sess_prot_type) in spc_modesense_control()
H A Dtarget_core_configfs.c530 DEF_CONFIGFS_ATTRIB_SHOW(pi_prot_type); variable
786 int old_prot = da->pi_prot_type, ret; in pi_prot_type_store()
795 pr_err("Illegal value %d for pi_prot_type\n", flag); in pi_prot_type_store()
826 da->pi_prot_type = flag; in pi_prot_type_store()
831 da->pi_prot_type = old_prot; in pi_prot_type_store()
832 da->pi_prot_verify = (bool) da->pi_prot_type; in pi_prot_type_store()
840 da->pi_prot_verify = (bool) da->pi_prot_type; in pi_prot_type_store()
909 if (!da->pi_prot_type) { in pi_prot_verify_store()
1189 CONFIGFS_ATTR(, pi_prot_type);
H A Dtarget_core_device.c791 dev->dev_attrib.pi_prot_type = TARGET_DIF_TYPE0_PROT; in target_alloc_device()
/kernel/linux/linux-6.6/drivers/target/
H A Dtarget_core_sbc.c79 int pi_prot_type = dev->dev_attrib.pi_prot_type; in sbc_emulate_readcapacity_16() local
93 * Only override a device's pi_prot_type if no T10-PI is in sbc_emulate_readcapacity_16()
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()
671 int pi_prot_type = dev->dev_attrib.pi_prot_type; in sbc_check_prot() local
676 !dev->dev_attrib.pi_prot_type in sbc_check_prot()
[all...]
H A Dtarget_core_iblock.c160 dev->dev_attrib.pi_prot_type = TARGET_DIF_TYPE3_PROT; in iblock_configure_device()
162 dev->dev_attrib.pi_prot_type = TARGET_DIF_TYPE1_PROT; in iblock_configure_device()
165 if (dev->dev_attrib.pi_prot_type) { in iblock_configure_device()
174 dev->dev_attrib.hw_pi_prot_type = dev->dev_attrib.pi_prot_type; in iblock_configure_device()
785 if (cmd->prot_type && dev->dev_attrib.pi_prot_type) in iblock_execute_rw()
797 if (cmd->prot_type && dev->dev_attrib.pi_prot_type) { in iblock_execute_rw()
822 if (cmd->prot_type && dev->dev_attrib.pi_prot_type) { in iblock_execute_rw()
H 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()
872 pr_err("Unable to format_prot while pi_prot_type == 0\n"); in fd_format_prot()
H 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()
H A Dtarget_core_spc.c114 if (dev->dev_attrib.pi_prot_type || cmd->se_sess->sess_prot_type) in spc_emulate_inquiry_std()
477 if (dev->dev_attrib.pi_prot_type == TARGET_DIF_TYPE1_PROT || in spc_emulate_evpd_86()
480 else if (dev->dev_attrib.pi_prot_type == TARGET_DIF_TYPE3_PROT || in spc_emulate_evpd_86()
488 (dev->dev_attrib.pi_prot_type || cmd->se_sess->sess_prot_type)) { in spc_emulate_evpd_86()
913 if (dev->dev_attrib.pi_prot_type || sess->sess_prot_type) in spc_modesense_control()
H A Dtarget_core_configfs.c560 DEF_CONFIGFS_ATTRIB_SHOW(pi_prot_type); variable
825 int old_prot = da->pi_prot_type, ret; in pi_prot_type_store()
834 pr_err("Illegal value %d for pi_prot_type\n", flag); in pi_prot_type_store()
865 da->pi_prot_type = flag; in pi_prot_type_store()
870 da->pi_prot_type = old_prot; in pi_prot_type_store()
871 da->pi_prot_verify = (bool) da->pi_prot_type; in pi_prot_type_store()
879 da->pi_prot_verify = (bool) da->pi_prot_type; in pi_prot_type_store()
948 if (!da->pi_prot_type) { in pi_prot_verify_store()
1247 CONFIGFS_ATTR(, pi_prot_type);
H A Dtarget_core_device.c763 dev->dev_attrib.pi_prot_type = TARGET_DIF_TYPE0_PROT; in target_alloc_device()
/kernel/linux/linux-5.10/include/target/
H A Dtarget_core_base.h688 enum target_prot_type pi_prot_type; member
/kernel/linux/linux-6.6/include/target/
H A Dtarget_core_base.h701 enum target_prot_type pi_prot_type; member

Completed in 34 milliseconds