Lines Matching refs:dix
328 unsigned int dif, dix; in protection_mode_show() local
331 dix = scsi_host_dix_capable(sdp->host, sdkp->protection_type); in protection_mode_show()
333 if (!dix && scsi_host_dix_capable(sdp->host, SD_DIF_TYPE0_PROTECTION)) { in protection_mode_show()
335 dix = 1; in protection_mode_show()
338 if (!dif && !dix) in protection_mode_show()
341 return snprintf(buf, 20, "%s%u\n", dix ? "dix" : "dif", dif); in protection_mode_show()
595 unsigned int dix, unsigned int dif) in sd_setup_protect_cmnd() argument
598 unsigned int prot_op = sd_prot_op(rq_data_dir(scmd->request), dix, dif); in sd_setup_protect_cmnd()
601 if (dix) { /* DIX Type 0, 1, 2, 3 */ in sd_setup_protect_cmnd()
892 unsigned int dif, dix; in sd_setup_read_write_cmnd() local
1010 dix = scsi_prot_sg_count(SCpnt); in sd_setup_read_write_cmnd()
1013 if (dif || dix) in sd_setup_read_write_cmnd()
1014 protect = sd_setup_protect_cmnd(SCpnt, dix, dif); in sd_setup_read_write_cmnd()