/drivers/net/ethernet/qlogic/qed/ |
D | qed_ptp.c | 275 s64 best_val = 0, val, best_period = 0, period, approx_dev, dif, dif2; in qed_ptp_hw_adjfreq() local 303 dif = ppb * approx_dev - val * 1000000000; in qed_ptp_hw_adjfreq() 304 dif2 = dif + 16 * ppb; in qed_ptp_hw_adjfreq() 306 if (dif < 0) in qed_ptp_hw_adjfreq() 307 dif = -dif; in qed_ptp_hw_adjfreq() 312 if (dif * (approx_dev + 16) > dif2 * approx_dev) { in qed_ptp_hw_adjfreq() 315 dif = dif2; in qed_ptp_hw_adjfreq() 319 if (best_dif * approx_dev > dif * best_approx_dev) { in qed_ptp_hw_adjfreq() 320 best_dif = dif; in qed_ptp_hw_adjfreq()
|
/drivers/infiniband/ulp/iser/ |
D | iser_memory.c | 313 domain->sig.dif.pi_interval = scsi_prot_interval(sc); in iser_set_dif_domain() 314 domain->sig.dif.ref_tag = scsi_prot_ref_tag(sc); in iser_set_dif_domain() 319 domain->sig.dif.apptag_check_mask = 0xffff; in iser_set_dif_domain() 320 domain->sig.dif.app_escape = true; in iser_set_dif_domain() 321 domain->sig.dif.ref_escape = true; in iser_set_dif_domain() 323 domain->sig.dif.ref_remap = true; in iser_set_dif_domain() 334 sig_attrs->wire.sig.dif.bg_type = IB_T10DIF_CRC; in iser_set_sig_attrs() 340 sig_attrs->mem.sig.dif.bg_type = sc->prot_flags & SCSI_PROT_IP_CHECKSUM ? in iser_set_sig_attrs() 346 sig_attrs->wire.sig.dif.bg_type = IB_T10DIF_CRC; in iser_set_sig_attrs() 348 sig_attrs->mem.sig.dif.bg_type = sc->prot_flags & SCSI_PROT_IP_CHECKSUM ? in iser_set_sig_attrs()
|
/drivers/scsi/ |
D | sd_dif.c | 47 int dif, dix; in sd_dif_config_host() local 49 dif = scsi_host_dif_capable(sdp->host, type); in sd_dif_config_host() 53 dif = 0; dix = 1; in sd_dif_config_host() 79 if (dif && type) { in sd_dif_config_host()
|
D | sd.h | 197 static inline unsigned int sd_prot_op(bool write, bool dix, bool dif) in sd_prot_op() argument 211 return ops[write << 2 | dix << 1 | dif]; in sd_prot_op()
|
D | sd.c | 343 unsigned int dif, dix; in protection_mode_show() local 345 dif = scsi_host_dif_capable(sdp->host, sdkp->protection_type); in protection_mode_show() 349 dif = 0; in protection_mode_show() 353 if (!dif && !dix) in protection_mode_show() 356 return sprintf(buf, "%s%u\n", dix ? "dix" : "dif", dif); in protection_mode_show() 669 unsigned int dix, unsigned int dif) in sd_setup_protect_cmnd() argument 672 unsigned int prot_op = sd_prot_op(rq_data_dir(scmd->request), dix, dif); in sd_setup_protect_cmnd() 683 if (dif != T10_PI_TYPE3_PROTECTION) { /* DIX/DIF Type 0, 1, 2 */ in sd_setup_protect_cmnd() 690 if (dif) { /* DIX/DIF Type 1, 2, 3 */ in sd_setup_protect_cmnd() 700 scsi_set_prot_type(scmd, dif); in sd_setup_protect_cmnd() [all …]
|
D | scsi_debug.c | 4147 module_param_named(dif, sdebug_dif, int, S_IRUGO); 4198 MODULE_PARM_DESC(dif, "data integrity field type: 0-3 (def=0)"); 4789 static DRIVER_ATTR_RO(dif);
|
/drivers/infiniband/hw/mlx5/ |
D | qp.c | 3489 inl->dif_apptag = cpu_to_be16(domain->sig.dif.app_tag); in mlx5_fill_inl_bsf() 3490 inl->dif_reftag = cpu_to_be32(domain->sig.dif.ref_tag); in mlx5_fill_inl_bsf() 3493 inl->sig_type = domain->sig.dif.bg_type == IB_T10DIF_CRC ? in mlx5_fill_inl_bsf() 3496 if (domain->sig.dif.ref_remap) in mlx5_fill_inl_bsf() 3499 if (domain->sig.dif.app_escape) { in mlx5_fill_inl_bsf() 3500 if (domain->sig.dif.ref_escape) in mlx5_fill_inl_bsf() 3507 cpu_to_be16(domain->sig.dif.apptag_check_mask); in mlx5_fill_inl_bsf() 3532 basic->mem.bs_selector = bs_selector(mem->sig.dif.pi_interval); in mlx5_set_bsf() 3545 if (mem->sig.dif.pi_interval == wire->sig.dif.pi_interval && in mlx5_set_bsf() 3549 if (mem->sig.dif.bg_type == wire->sig.dif.bg_type) in mlx5_set_bsf() [all …]
|
/drivers/infiniband/ulp/isert/ |
D | ib_isert.c | 2075 domain->sig.dif.bg_type = IB_T10DIF_CRC; in isert_set_dif_domain() 2076 domain->sig.dif.pi_interval = se_cmd->se_dev->dev_attrib.block_size; in isert_set_dif_domain() 2077 domain->sig.dif.ref_tag = se_cmd->reftag_seed; in isert_set_dif_domain() 2083 domain->sig.dif.apptag_check_mask = 0xffff; in isert_set_dif_domain() 2084 domain->sig.dif.app_escape = true; in isert_set_dif_domain() 2085 domain->sig.dif.ref_escape = true; in isert_set_dif_domain() 2088 domain->sig.dif.ref_remap = true; in isert_set_dif_domain()
|
/drivers/s390/scsi/ |
D | zfcp_scsi.c | 29 module_param_named(dif, enable_dif, bool, 0400); 30 MODULE_PARM_DESC(dif, "Enable DIF/DIX data integrity support");
|
/drivers/media/pci/zoran/ |
D | zoran_device.c | 1129 unsigned int dif; in zoran_reap_stat_com() local 1162 dif = (seq - zr->jpg_seq_num) & 0xff; in zoran_reap_stat_com() 1163 zr->jpg_seq_num += dif; in zoran_reap_stat_com()
|
/drivers/scsi/bfa/ |
D | bfi_ms.h | 689 struct bfi_ioim_dif_s dif; member
|
/drivers/net/ethernet/intel/e1000/ |
D | e1000_main.c | 2555 u32 dif = (adapter->gotcl > adapter->gorcl ? in e1000_watchdog() local 2558 u32 itr = goc > 0 ? (dif * 6000 / goc + 2000) : 8000; in e1000_watchdog()
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_main.c | 13825 int val, period, period1, period2, dif, dif1, dif2; in bnx2x_ptp_adjfreq() local 13865 dif = (dif1 < dif2) ? dif1 : dif2; in bnx2x_ptp_adjfreq() 13867 if (dif < best_dif) { in bnx2x_ptp_adjfreq() 13868 best_dif = dif; in bnx2x_ptp_adjfreq()
|
/drivers/net/ethernet/intel/e1000e/ |
D | netdev.c | 5359 u32 dif = (adapter->gotc > adapter->gorc ? in e1000_watchdog_task() local 5362 u32 itr = goc > 0 ? (dif * 6000 / goc + 2000) : 8000; in e1000_watchdog_task()
|