Lines Matching full:protect
628 sbc_set_prot_op_checks(u8 protect, bool fabric_prot, enum target_prot_type prot_type, in sbc_set_prot_op_checks() argument
633 protect ? TARGET_PROT_DOUT_PASS : in sbc_set_prot_op_checks()
635 switch (protect) { in sbc_set_prot_op_checks()
654 pr_err("Unsupported protect field %d\n", protect); in sbc_set_prot_op_checks()
659 protect ? TARGET_PROT_DIN_PASS : in sbc_set_prot_op_checks()
661 switch (protect) { in sbc_set_prot_op_checks()
680 pr_err("Unsupported protect field %d\n", protect); in sbc_set_prot_op_checks()
692 u8 protect = cdb[1] >> 5; in sbc_check_prot() local
698 if (unlikely(protect && in sbc_check_prot()
700 pr_err("CDB contains protect bit, but device + fabric does" in sbc_check_prot()
701 " not advertise PROTECT=1 feature bit\n"); in sbc_check_prot()
713 if (protect) in sbc_check_prot()
724 * configured to allow export PROTECT=1 feature bit with backend in sbc_check_prot()
735 if (!protect) in sbc_check_prot()
740 "PROTECT: 0x%02x\n", cdb[0], protect); in sbc_check_prot()
744 if (sbc_set_prot_op_checks(protect, fabric_prot, pi_prot_type, is_write, cmd)) in sbc_check_prot()
756 if (protect) in sbc_check_prot()