/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 | 341 unsigned int dif, dix; in protection_mode_show() local 343 dif = scsi_host_dif_capable(sdp->host, sdkp->protection_type); in protection_mode_show() 347 dif = 0; in protection_mode_show() 351 if (!dif && !dix) in protection_mode_show() 354 return sprintf(buf, "%s%u\n", dix ? "dix" : "dif", dif); in protection_mode_show() 720 static unsigned int sd_prot_op(bool write, bool dix, bool dif) in sd_prot_op() argument 734 return ops[write << 2 | dix << 1 | dif]; in sd_prot_op() 779 unsigned int dix, unsigned int dif) in sd_setup_protect_cmnd() argument 783 unsigned int prot_op = sd_prot_op(rq_data_dir(rq), dix, dif); in sd_setup_protect_cmnd() 794 if (dif != T10_PI_TYPE3_PROTECTION) { /* DIX/DIF Type 0, 1, 2 */ in sd_setup_protect_cmnd() [all …]
|
D | scsi_debug.c | 5662 module_param_named(dif, sdebug_dif, int, S_IRUGO); 5736 MODULE_PARM_DESC(dif, "data integrity field type: 0-3 (def=0)"); 6486 static DRIVER_ATTR_RO(dif);
|
/drivers/infiniband/ulp/iser/ |
D | iser_memory.c | 161 domain->sig.dif.pi_interval = scsi_prot_interval(sc); in iser_set_dif_domain() 162 domain->sig.dif.ref_tag = t10_pi_ref_tag(scsi_cmd_to_rq(sc)); in iser_set_dif_domain() 167 domain->sig.dif.apptag_check_mask = 0xffff; in iser_set_dif_domain() 168 domain->sig.dif.app_escape = true; in iser_set_dif_domain() 169 domain->sig.dif.ref_escape = true; in iser_set_dif_domain() 171 domain->sig.dif.ref_remap = true; in iser_set_dif_domain() 182 sig_attrs->wire.sig.dif.bg_type = IB_T10DIF_CRC; in iser_set_sig_attrs() 188 sig_attrs->mem.sig.dif.bg_type = sc->prot_flags & SCSI_PROT_IP_CHECKSUM ? in iser_set_sig_attrs() 194 sig_attrs->wire.sig.dif.bg_type = IB_T10DIF_CRC; in iser_set_sig_attrs() 196 sig_attrs->mem.sig.dif.bg_type = sc->prot_flags & SCSI_PROT_IP_CHECKSUM ? in iser_set_sig_attrs()
|
/drivers/infiniband/hw/mlx5/ |
D | wr.c | 556 inl->dif_apptag = cpu_to_be16(domain->sig.dif.app_tag); in mlx5_fill_inl_bsf() 557 inl->dif_reftag = cpu_to_be32(domain->sig.dif.ref_tag); in mlx5_fill_inl_bsf() 560 inl->sig_type = domain->sig.dif.bg_type == IB_T10DIF_CRC ? in mlx5_fill_inl_bsf() 563 if (domain->sig.dif.ref_remap) in mlx5_fill_inl_bsf() 566 if (domain->sig.dif.app_escape) { in mlx5_fill_inl_bsf() 567 if (domain->sig.dif.ref_escape) in mlx5_fill_inl_bsf() 574 cpu_to_be16(domain->sig.dif.apptag_check_mask); in mlx5_fill_inl_bsf() 599 basic->mem.bs_selector = bs_selector(mem->sig.dif.pi_interval); in mlx5_set_bsf() 612 if (mem->sig.dif.pi_interval == wire->sig.dif.pi_interval && in mlx5_set_bsf() 616 if (mem->sig.dif.bg_type == wire->sig.dif.bg_type) in mlx5_set_bsf() [all …]
|
/drivers/nvme/target/ |
D | rdma.c | 581 domain->sig.dif.bg_type = IB_T10DIF_CRC; in nvmet_rdma_set_sig_domain() 582 domain->sig.dif.pi_interval = 1 << bi->interval_exp; in nvmet_rdma_set_sig_domain() 583 domain->sig.dif.ref_tag = le32_to_cpu(cmd->rw.reftag); in nvmet_rdma_set_sig_domain() 585 domain->sig.dif.ref_remap = true; in nvmet_rdma_set_sig_domain() 587 domain->sig.dif.app_tag = le16_to_cpu(cmd->rw.apptag); in nvmet_rdma_set_sig_domain() 588 domain->sig.dif.apptag_check_mask = le16_to_cpu(cmd->rw.appmask); in nvmet_rdma_set_sig_domain() 589 domain->sig.dif.app_escape = true; in nvmet_rdma_set_sig_domain() 591 domain->sig.dif.ref_escape = true; in nvmet_rdma_set_sig_domain()
|
/drivers/staging/media/zoran/ |
D | zoran_device.c | 800 unsigned int dif; in zoran_reap_stat_com() local 841 dif = (seq - zr->jpg_seq_num) & 0xff; in zoran_reap_stat_com() 842 zr->jpg_seq_num += dif; in zoran_reap_stat_com()
|
/drivers/nvme/host/ |
D | rdma.c | 1422 domain->sig.dif.bg_type = IB_T10DIF_CRC; in nvme_rdma_set_sig_domain() 1423 domain->sig.dif.pi_interval = 1 << bi->interval_exp; in nvme_rdma_set_sig_domain() 1424 domain->sig.dif.ref_tag = le32_to_cpu(cmd->rw.reftag); in nvme_rdma_set_sig_domain() 1426 domain->sig.dif.ref_remap = true; in nvme_rdma_set_sig_domain() 1428 domain->sig.dif.app_tag = le16_to_cpu(cmd->rw.apptag); in nvme_rdma_set_sig_domain() 1429 domain->sig.dif.apptag_check_mask = le16_to_cpu(cmd->rw.appmask); in nvme_rdma_set_sig_domain() 1430 domain->sig.dif.app_escape = true; in nvme_rdma_set_sig_domain() 1432 domain->sig.dif.ref_escape = true; in nvme_rdma_set_sig_domain()
|
/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 | 2533 u32 dif = (adapter->gotcl > adapter->gorcl ? in e1000_watchdog() local 2536 u32 itr = goc > 0 ? (dif * 6000 / goc + 2000) : 8000; in e1000_watchdog()
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_main.c | 13684 int val, period, period1, period2, dif, dif1, dif2; in bnx2x_ptp_adjfreq() local 13724 dif = (dif1 < dif2) ? dif1 : dif2; in bnx2x_ptp_adjfreq() 13726 if (dif < best_dif) { in bnx2x_ptp_adjfreq() 13727 best_dif = dif; in bnx2x_ptp_adjfreq()
|
/drivers/net/ethernet/intel/e1000e/ |
D | netdev.c | 5384 u32 dif = (adapter->gotc > adapter->gorc ? in e1000_watchdog_task() local 5387 u32 itr = goc > 0 ? (dif * 6000 / goc + 2000) : 8000; in e1000_watchdog_task()
|