Lines Matching refs:dif
330 unsigned int dif, dix; in protection_mode_show() local
332 dif = scsi_host_dif_capable(sdp->host, sdkp->protection_type); in protection_mode_show()
336 dif = 0; in protection_mode_show()
340 if (!dif && !dix) in protection_mode_show()
343 return snprintf(buf, 20, "%s%u\n", dix ? "dix" : "dif", dif); in protection_mode_show()
597 unsigned int dix, unsigned int dif) in sd_setup_protect_cmnd() argument
600 unsigned int prot_op = sd_prot_op(rq_data_dir(scmd->request), dix, dif); in sd_setup_protect_cmnd()
611 if (dif != SD_DIF_TYPE3_PROTECTION) { /* DIX/DIF Type 0, 1, 2 */ in sd_setup_protect_cmnd()
618 if (dif) { /* DIX/DIF Type 1, 2, 3 */ in sd_setup_protect_cmnd()
628 scsi_set_prot_type(scmd, dif); in sd_setup_protect_cmnd()
907 unsigned int dif, dix; in sd_setup_read_write_cmnd() local
1026 dif = scsi_host_dif_capable(SCpnt->device->host, sdkp->protection_type); in sd_setup_read_write_cmnd()
1028 if (dif || dix) in sd_setup_read_write_cmnd()
1029 protect = sd_setup_protect_cmnd(SCpnt, dix, dif); in sd_setup_read_write_cmnd()