Lines Matching full:protect
606 sbc_set_prot_op_checks(u8 protect, bool fabric_prot, enum target_prot_type prot_type, in sbc_set_prot_op_checks() argument
611 protect ? TARGET_PROT_DOUT_PASS : in sbc_set_prot_op_checks()
613 switch (protect) { in sbc_set_prot_op_checks()
632 pr_err("Unsupported protect field %d\n", protect); in sbc_set_prot_op_checks()
637 protect ? TARGET_PROT_DIN_PASS : in sbc_set_prot_op_checks()
639 switch (protect) { in sbc_set_prot_op_checks()
658 pr_err("Unsupported protect field %d\n", protect); in sbc_set_prot_op_checks()
667 sbc_check_prot(struct se_device *dev, struct se_cmd *cmd, unsigned char protect, in sbc_check_prot() argument
675 if (unlikely(protect && in sbc_check_prot()
677 pr_err("CDB contains protect bit, but device + fabric does" in sbc_check_prot()
678 " not advertise PROTECT=1 feature bit\n"); in sbc_check_prot()
690 if (protect) in sbc_check_prot()
701 * configured to allow export PROTECT=1 feature bit with backend in sbc_check_prot()
712 if (!protect) in sbc_check_prot()
717 "PROTECT: 0x%02x\n", cmd->t_task_cdb[0], protect); in sbc_check_prot()
721 if (sbc_set_prot_op_checks(protect, fabric_prot, pi_prot_type, is_write, cmd)) in sbc_check_prot()
733 if (protect) in sbc_check_prot()