Lines Matching full:protect
659 sbc_set_prot_op_checks(u8 protect, bool fabric_prot, enum target_prot_type prot_type, in sbc_set_prot_op_checks() argument
664 protect ? TARGET_PROT_DOUT_PASS : in sbc_set_prot_op_checks()
666 switch (protect) { in sbc_set_prot_op_checks()
685 pr_err("Unsupported protect field %d\n", protect); in sbc_set_prot_op_checks()
690 protect ? TARGET_PROT_DIN_PASS : in sbc_set_prot_op_checks()
692 switch (protect) { in sbc_set_prot_op_checks()
711 pr_err("Unsupported protect field %d\n", protect); in sbc_set_prot_op_checks()
720 sbc_check_prot(struct se_device *dev, struct se_cmd *cmd, unsigned char protect, in sbc_check_prot() argument
728 if (unlikely(protect && in sbc_check_prot()
730 pr_err("CDB contains protect bit, but device + fabric does" in sbc_check_prot()
731 " not advertise PROTECT=1 feature bit\n"); in sbc_check_prot()
743 if (protect) in sbc_check_prot()
754 * configured to allow export PROTECT=1 feature bit with backend in sbc_check_prot()
765 if (!protect) in sbc_check_prot()
770 "PROTECT: 0x%02x\n", cmd->t_task_cdb[0], protect); in sbc_check_prot()
774 if (sbc_set_prot_op_checks(protect, fabric_prot, pi_prot_type, is_write, cmd)) in sbc_check_prot()
786 if (protect) in sbc_check_prot()