/drivers/net/ethernet/qlogic/qed/ |
D | qed_ptp.c | 256 s64 best_val = 0, val, best_period = 0, period, approx_dev, dif, dif2; in qed_ptp_hw_adjfreq() local 284 dif = ppb * approx_dev - val * 1000000000; in qed_ptp_hw_adjfreq() 285 dif2 = dif + 16 * ppb; in qed_ptp_hw_adjfreq() 287 if (dif < 0) in qed_ptp_hw_adjfreq() 288 dif = -dif; in qed_ptp_hw_adjfreq() 293 if (dif * (approx_dev + 16) > dif2 * approx_dev) { in qed_ptp_hw_adjfreq() 296 dif = dif2; in qed_ptp_hw_adjfreq() 300 if (best_dif * approx_dev > dif * best_approx_dev) { in qed_ptp_hw_adjfreq() 301 best_dif = dif; in qed_ptp_hw_adjfreq()
|
/drivers/scsi/ |
D | sd_dif.c | 33 int dif, dix; in sd_dif_config_host() local 35 dif = scsi_host_dif_capable(sdp->host, type); in sd_dif_config_host() 39 dif = 0; dix = 1; in sd_dif_config_host() 65 if (dif && type) { in sd_dif_config_host()
|
D | sd.c | 397 unsigned int dif, dix; in protection_mode_show() local 399 dif = scsi_host_dif_capable(sdp->host, sdkp->protection_type); in protection_mode_show() 403 dif = 0; in protection_mode_show() 407 if (!dif && !dix) in protection_mode_show() 410 return sprintf(buf, "%s%u\n", dix ? "dix" : "dif", dif); in protection_mode_show() 727 static unsigned int sd_prot_op(bool write, bool dix, bool dif) in sd_prot_op() argument 741 return ops[write << 2 | dix << 1 | dif]; in sd_prot_op() 786 unsigned int dix, unsigned int dif) in sd_setup_protect_cmnd() argument 790 unsigned int prot_op = sd_prot_op(rq_data_dir(rq), dix, dif); in sd_setup_protect_cmnd() 801 if (dif != T10_PI_TYPE3_PROTECTION) { /* DIX/DIF Type 0, 1, 2 */ in sd_setup_protect_cmnd() [all …]
|
D | scsi_debug.c | 5714 module_param_named(dif, sdebug_dif, int, S_IRUGO); 5791 MODULE_PARM_DESC(dif, "data integrity field type: 0-3 (def=0)"); 6586 static DRIVER_ATTR_RO(dif);
|
/drivers/infiniband/ulp/iser/ |
D | iser_memory.c | 180 domain->sig.dif.pi_interval = scsi_prot_interval(sc); in iser_set_dif_domain() 181 domain->sig.dif.ref_tag = t10_pi_ref_tag(scsi_cmd_to_rq(sc)); in iser_set_dif_domain() 186 domain->sig.dif.apptag_check_mask = 0xffff; in iser_set_dif_domain() 187 domain->sig.dif.app_escape = true; in iser_set_dif_domain() 188 domain->sig.dif.ref_escape = true; in iser_set_dif_domain() 190 domain->sig.dif.ref_remap = true; in iser_set_dif_domain() 201 sig_attrs->wire.sig.dif.bg_type = IB_T10DIF_CRC; in iser_set_sig_attrs() 207 sig_attrs->mem.sig.dif.bg_type = sc->prot_flags & SCSI_PROT_IP_CHECKSUM ? in iser_set_sig_attrs() 213 sig_attrs->wire.sig.dif.bg_type = IB_T10DIF_CRC; in iser_set_sig_attrs() 215 sig_attrs->mem.sig.dif.bg_type = sc->prot_flags & SCSI_PROT_IP_CHECKSUM ? in iser_set_sig_attrs()
|
/drivers/clk/ |
D | clk-renesas-pcie.c | 178 u8 dif = rs9_calc_dif(rs9, idx); in rs9_get_output_config() local 185 rs9->clk_dif_sr |= dif; in rs9_get_output_config() 197 rs9->clk_dif_sr &= ~dif; in rs9_get_output_config() 199 rs9->clk_dif_sr |= dif; in rs9_get_output_config() 270 u8 dif = rs9_calc_dif(rs9, i); in rs9_update_config() local 272 if (rs9->clk_dif_sr & dif) in rs9_update_config() 275 regmap_update_bits(rs9->regmap, RS9_REG_SR, dif, in rs9_update_config() 276 rs9->clk_dif_sr & dif); in rs9_update_config()
|
/drivers/infiniband/hw/mlx5/ |
D | wr.c | 335 inl->dif_apptag = cpu_to_be16(domain->sig.dif.app_tag); in mlx5_fill_inl_bsf() 336 inl->dif_reftag = cpu_to_be32(domain->sig.dif.ref_tag); in mlx5_fill_inl_bsf() 339 inl->sig_type = domain->sig.dif.bg_type == IB_T10DIF_CRC ? in mlx5_fill_inl_bsf() 342 if (domain->sig.dif.ref_remap) in mlx5_fill_inl_bsf() 345 if (domain->sig.dif.app_escape) { in mlx5_fill_inl_bsf() 346 if (domain->sig.dif.ref_escape) in mlx5_fill_inl_bsf() 353 cpu_to_be16(domain->sig.dif.apptag_check_mask); in mlx5_fill_inl_bsf() 378 basic->mem.bs_selector = bs_selector(mem->sig.dif.pi_interval); in mlx5_set_bsf() 391 if (mem->sig.dif.pi_interval == wire->sig.dif.pi_interval && in mlx5_set_bsf() 395 if (mem->sig.dif.bg_type == wire->sig.dif.bg_type) in mlx5_set_bsf() [all …]
|
/drivers/net/ethernet/pensando/ionic/ |
D | ionic_txrx.c | 27 unsigned long now, then, dif; in ionic_txq_poke_doorbell() local 43 dif = now - then; in ionic_txq_poke_doorbell() 45 if (dif > q->dbell_deadline) { in ionic_txq_poke_doorbell() 59 unsigned long now, then, dif; in ionic_rxq_poke_doorbell() local 68 dif = now - then; in ionic_rxq_poke_doorbell() 70 if (dif > q->dbell_deadline) { in ionic_rxq_poke_doorbell() 76 dif = 2 * q->dbell_deadline; in ionic_rxq_poke_doorbell() 77 if (dif > IONIC_RX_MAX_DOORBELL_DEADLINE) in ionic_rxq_poke_doorbell() 78 dif = IONIC_RX_MAX_DOORBELL_DEADLINE; in ionic_rxq_poke_doorbell() 80 q->dbell_deadline = dif; in ionic_rxq_poke_doorbell()
|
D | ionic_main.c | 295 unsigned long now, then, dif; in ionic_adminq_poke_doorbell() local 307 dif = now - then; in ionic_adminq_poke_doorbell() 309 if (dif > q->dbell_deadline) { in ionic_adminq_poke_doorbell()
|
/drivers/nvme/target/ |
D | rdma.c | 574 domain->sig.dif.bg_type = IB_T10DIF_CRC; in nvmet_rdma_set_sig_domain() 575 domain->sig.dif.pi_interval = 1 << bi->interval_exp; in nvmet_rdma_set_sig_domain() 576 domain->sig.dif.ref_tag = le32_to_cpu(cmd->rw.reftag); in nvmet_rdma_set_sig_domain() 578 domain->sig.dif.ref_remap = true; in nvmet_rdma_set_sig_domain() 580 domain->sig.dif.app_tag = le16_to_cpu(cmd->rw.apptag); in nvmet_rdma_set_sig_domain() 581 domain->sig.dif.apptag_check_mask = le16_to_cpu(cmd->rw.appmask); in nvmet_rdma_set_sig_domain() 582 domain->sig.dif.app_escape = true; in nvmet_rdma_set_sig_domain() 584 domain->sig.dif.ref_escape = true; in nvmet_rdma_set_sig_domain()
|
/drivers/nvme/host/ |
D | rdma.c | 1350 domain->sig.dif.bg_type = IB_T10DIF_CRC; in nvme_rdma_set_sig_domain() 1351 domain->sig.dif.pi_interval = 1 << bi->interval_exp; in nvme_rdma_set_sig_domain() 1352 domain->sig.dif.ref_tag = le32_to_cpu(cmd->rw.reftag); in nvme_rdma_set_sig_domain() 1354 domain->sig.dif.ref_remap = true; in nvme_rdma_set_sig_domain() 1356 domain->sig.dif.app_tag = le16_to_cpu(cmd->rw.apptag); in nvme_rdma_set_sig_domain() 1357 domain->sig.dif.apptag_check_mask = le16_to_cpu(cmd->rw.appmask); in nvme_rdma_set_sig_domain() 1358 domain->sig.dif.app_escape = true; in nvme_rdma_set_sig_domain() 1360 domain->sig.dif.ref_escape = true; in nvme_rdma_set_sig_domain()
|
/drivers/media/pci/zoran/ |
D | zoran_device.c | 801 unsigned int dif; in zoran_reap_stat_com() local 844 dif = (seq - zr->jpg_seq_num) & 0xff; in zoran_reap_stat_com() 845 zr->jpg_seq_num += dif; in zoran_reap_stat_com()
|
/drivers/infiniband/ulp/isert/ |
D | ib_isert.c | 1986 domain->sig.dif.bg_type = IB_T10DIF_CRC; in isert_set_dif_domain() 1987 domain->sig.dif.pi_interval = se_cmd->se_dev->dev_attrib.block_size; in isert_set_dif_domain() 1988 domain->sig.dif.ref_tag = se_cmd->reftag_seed; in isert_set_dif_domain() 1994 domain->sig.dif.apptag_check_mask = 0xffff; in isert_set_dif_domain() 1995 domain->sig.dif.app_escape = true; in isert_set_dif_domain() 1996 domain->sig.dif.ref_escape = true; in isert_set_dif_domain() 1999 domain->sig.dif.ref_remap = true; in isert_set_dif_domain()
|
/drivers/scsi/elx/libefc_sli/ |
D | sli4.c | 1631 u8 dif, u8 bs, u8 timeout) in sli_fcp_iread64_wqe() argument 1702 iread->dif_ct_bs_byte |= dif; in sli_fcp_iread64_wqe() 1734 u8 dif, u8 bs, u8 timeout) in sli_fcp_iwrite64_wqe() argument 1797 iwrite->dif_ct_bs_byte |= dif; in sli_fcp_iwrite64_wqe() 1824 u32 first_data_sge, u16 cq_id, u8 dif, u8 bs, in sli_fcp_treceive64_wqe() argument 1859 if (!dif && in sli_fcp_treceive64_wqe() 1943 u16 sec_xri, u16 cq_id, u8 dif, u8 bs, in sli_fcp_cont_treceive64_wqe() argument 1949 cq_id, dif, bs, params); in sli_fcp_cont_treceive64_wqe() 2027 u32 first_data_sge, u16 cq_id, u8 dif, u8 bs, in sli_fcp_tsend64_wqe() argument 2064 if (!dif && in sli_fcp_tsend64_wqe() [all …]
|
D | sli4.h | 4086 u16 tag, u16 cq_id, u32 rpi, u32 rnode_fcid, u8 dif, u8 bs, 4093 u32 rnode_fcid, u8 dif, u8 bs, u8 timeout); 4097 u32 first_data_sge, u16 cq_id, u8 dif, u8 bs, 4101 u32 first_data_sge, u16 sec_xri, u16 cq_id, u8 dif, 4110 u32 first_data_sge, u16 cq_id, u8 dif, u8 bs,
|
/drivers/s390/scsi/ |
D | zfcp_scsi.c | 29 module_param_named(dif, enable_dif, bool, 0400); 30 MODULE_PARM_DESC(dif, "Enable DIF data integrity support (default off)");
|
/drivers/scsi/bfa/ |
D | bfi_ms.h | 681 struct bfi_ioim_dif_s dif; member
|
/drivers/net/ethernet/intel/e1000/ |
D | e1000_main.c | 2534 u32 dif = (adapter->gotcl > adapter->gorcl ? in e1000_watchdog() local 2537 u32 itr = goc > 0 ? (dif * 6000 / goc + 2000) : 8000; in e1000_watchdog()
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_main.c | 13666 int val, period, period1, period2, dif, dif1, dif2; in bnx2x_ptp_adjfine() local 13707 dif = (dif1 < dif2) ? dif1 : dif2; in bnx2x_ptp_adjfine() 13709 if (dif < best_dif) { in bnx2x_ptp_adjfine() 13710 best_dif = dif; in bnx2x_ptp_adjfine()
|
/drivers/net/ethernet/intel/e1000e/ |
D | netdev.c | 5372 u32 dif = (adapter->gotc > adapter->gorc ? in e1000_watchdog_task() local 5375 u32 itr = goc > 0 ? (dif * 6000 / goc + 2000) : 8000; in e1000_watchdog_task()
|