Lines Matching refs:dix
396 unsigned int dif, dix; in protection_mode_show() local
399 dix = scsi_host_dix_capable(sdp->host, sdkp->protection_type); in protection_mode_show()
401 if (!dix && scsi_host_dix_capable(sdp->host, T10_PI_TYPE0_PROTECTION)) { in protection_mode_show()
403 dix = 1; in protection_mode_show()
406 if (!dif && !dix) in protection_mode_show()
409 return sprintf(buf, "%s%u\n", dix ? "dix" : "dif", dif); in protection_mode_show()
726 static unsigned int sd_prot_op(bool write, bool dix, bool dif) in sd_prot_op() argument
740 return ops[write << 2 | dix << 1 | dif]; in sd_prot_op()
785 unsigned int dix, unsigned int dif) in sd_setup_protect_cmnd() argument
789 unsigned int prot_op = sd_prot_op(rq_data_dir(rq), dix, dif); in sd_setup_protect_cmnd()
792 if (dix) { /* DIX Type 0, 1, 2, 3 */ in sd_setup_protect_cmnd()
1197 bool dix; in sd_setup_read_write_cmnd() local
1242 dix = scsi_prot_sg_count(cmd); in sd_setup_read_write_cmnd()
1246 if (dif || dix) in sd_setup_read_write_cmnd()
1247 protect = sd_setup_protect_cmnd(cmd, dix, dif); in sd_setup_read_write_cmnd()