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

/linux-master/drivers/target/
H A Dtarget_core_sbc.c79 int pi_prot_type = dev->dev_attrib.pi_prot_type; local
93 * Only override a device's pi_prot_type if no T10-PI is
96 if (!pi_prot_type)
97 pi_prot_type = sess->sess_prot_type;
99 if (pi_prot_type)
100 buf[12] = (pi_prot_type - 1) << 1 | 0x1;
671 int pi_prot_type = dev->dev_attrib.pi_prot_type; local
676 !dev->dev_attrib.pi_prot_type
[all...]
H A Dtarget_core_iblock.c163 dev->dev_attrib.pi_prot_type = TARGET_DIF_TYPE3_PROT;
165 dev->dev_attrib.pi_prot_type = TARGET_DIF_TYPE1_PROT;
168 if (dev->dev_attrib.pi_prot_type) {
177 dev->dev_attrib.hw_pi_prot_type = dev->dev_attrib.pi_prot_type;
788 if (cmd->prot_type && dev->dev_attrib.pi_prot_type)
800 if (cmd->prot_type && dev->dev_attrib.pi_prot_type) {
825 if (cmd->prot_type && dev->dev_attrib.pi_prot_type) {
H A Dtarget_core_file.c543 if (cmd->se_dev->dev_attrib.pi_prot_type) {
598 if (cmd->prot_type && dev->dev_attrib.pi_prot_type) {
609 if (ret > 0 && cmd->prot_type && dev->dev_attrib.pi_prot_type &&
620 if (cmd->prot_type && dev->dev_attrib.pi_prot_type &&
651 if (ret > 0 && cmd->prot_type && dev->dev_attrib.pi_prot_type) {
867 if (!dev->dev_attrib.pi_prot_type) {
868 pr_err("Unable to format_prot while pi_prot_type == 0\n");
H A Dtarget_core_rd.c453 if (cmd->prot_type && se_dev->dev_attrib.pi_prot_type &&
521 if (cmd->prot_type && se_dev->dev_attrib.pi_prot_type &&
632 if (!dev->dev_attrib.pi_prot_type)
H A Dtarget_core_spc.c114 if (dev->dev_attrib.pi_prot_type || cmd->se_sess->sess_prot_type)
477 if (dev->dev_attrib.pi_prot_type == TARGET_DIF_TYPE1_PROT ||
480 else if (dev->dev_attrib.pi_prot_type == TARGET_DIF_TYPE3_PROT ||
488 (dev->dev_attrib.pi_prot_type || cmd->se_sess->sess_prot_type)) {
913 if (dev->dev_attrib.pi_prot_type || sess->sess_prot_type)
H A Dtarget_core_configfs.c560 DEF_CONFIGFS_ATTRIB_SHOW(pi_prot_type); variable
845 int old_prot = da->pi_prot_type, ret;
854 pr_err("Illegal value %d for pi_prot_type\n", flag);
885 da->pi_prot_type = flag;
890 da->pi_prot_type = old_prot;
891 da->pi_prot_verify = (bool) da->pi_prot_type;
899 da->pi_prot_verify = (bool) da->pi_prot_type;
968 if (!da->pi_prot_type) {
1282 CONFIGFS_ATTR(, pi_prot_type);
H A Dtarget_core_device.c763 dev->dev_attrib.pi_prot_type = TARGET_DIF_TYPE0_PROT;
/linux-master/include/target/
H A Dtarget_core_base.h710 enum target_prot_type pi_prot_type; member in struct:se_dev_attrib

Completed in 171 milliseconds