Lines Matching refs:protect
601 unsigned int protect = 0; in sd_setup_protect_cmnd() local
622 protect = 3 << 5; /* Disable target PI checking */ in sd_setup_protect_cmnd()
624 protect = 1 << 5; /* Enable target PI checking */ in sd_setup_protect_cmnd()
631 return protect; in sd_setup_protect_cmnd()
909 unsigned char protect; in sd_setup_read_write_cmnd() local
1029 protect = sd_setup_protect_cmnd(SCpnt, dix, dif); in sd_setup_read_write_cmnd()
1031 protect = 0; in sd_setup_read_write_cmnd()
1033 if (protect && sdkp->protection_type == SD_DIF_TYPE2_PROTECTION) { in sd_setup_read_write_cmnd()
1046 SCpnt->cmnd[10] = protect | ((rq->cmd_flags & REQ_FUA) ? 0x8 : 0); in sd_setup_read_write_cmnd()
1071 SCpnt->cmnd[1] = protect | ((rq->cmd_flags & REQ_FUA) ? 0x8 : 0); in sd_setup_read_write_cmnd()
1089 SCpnt->cmnd[1] = protect | ((rq->cmd_flags & REQ_FUA) ? 0x8 : 0); in sd_setup_read_write_cmnd()