Home
last modified time | relevance | path

Searched refs:ppb (Results 1 – 25 of 29) sorted by relevance

12

/drivers/scsi/
Dppa.c182 unsigned short ppb = dev->base; in ppa_wait() local
187 for (r = r_str(ppb); ((r & 0xc0) != 0xc0) && (k); k--) { in ppa_wait()
189 r = r_str(ppb); in ppa_wait()
211 static inline void epp_reset(unsigned short ppb) in epp_reset() argument
215 i = r_str(ppb); in epp_reset()
216 w_str(ppb, i); in epp_reset()
217 w_str(ppb, i & 0xfe); in epp_reset()
280 unsigned short ppb = dev->base; in ppa_out() local
292 r = ppa_byte_out(ppb, buffer, len); in ppa_out()
298 epp_reset(ppb); in ppa_out()
[all …]
Dimm.c176 unsigned short ppb = dev->base; in imm_wait() local
179 w_ctr(ppb, 0x0c); in imm_wait()
183 r = r_str(ppb); in imm_wait()
208 w_ctr(ppb, 0x04); in imm_wait()
269 static inline void epp_reset(unsigned short ppb) in epp_reset() argument
273 i = r_str(ppb); in epp_reset()
274 w_str(ppb, i); in epp_reset()
275 w_str(ppb, i & 0xfe); in epp_reset()
350 unsigned short ppb = dev->base; in imm_out() local
367 epp_reset(ppb); in imm_out()
[all …]
/drivers/net/ethernet/qlogic/qed/
Dqed_ptp.c278 static int qed_ptp_hw_adjfreq(struct qed_dev *cdev, s32 ppb) in qed_ptp_hw_adjfreq() argument
286 if (ppb < 0) { in qed_ptp_hw_adjfreq()
287 ppb = -ppb; in qed_ptp_hw_adjfreq()
291 if (ppb > 1) { in qed_ptp_hw_adjfreq()
292 s64 best_dif = ppb, best_approx_dev = 1; in qed_ptp_hw_adjfreq()
298 period = div_s64(val * 1000000000, ppb); in qed_ptp_hw_adjfreq()
308 dif = ppb * approx_dev - val * 1000000000; in qed_ptp_hw_adjfreq()
309 dif2 = dif + 16 * ppb; in qed_ptp_hw_adjfreq()
331 } else if (ppb == 1) { in qed_ptp_hw_adjfreq()
/drivers/ptp/
Dptp_dte.c47 #define DTE_PPB_ADJ(ppb) (u32)(div64_u64((((u64)abs(ppb) * BIT(28)) +\ argument
147 static int ptp_dte_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ptp_dte_adjfreq() argument
153 if (abs(ppb) > ptp_dte->caps.max_adj) { in ptp_dte_adjfreq()
158 if (ppb < 0) in ptp_dte_adjfreq()
159 nco_incr = DTE_NCO_INC_DEFAULT - DTE_PPB_ADJ(ppb); in ptp_dte_adjfreq()
161 nco_incr = DTE_NCO_INC_DEFAULT + DTE_PPB_ADJ(ppb); in ptp_dte_adjfreq()
Dptp_clock.c80 s64 ppb = 1 + ppm; in scaled_ppm_to_ppb() local
81 ppb *= 125; in scaled_ppm_to_ppb()
82 ppb >>= 13; in scaled_ppm_to_ppb()
83 return (s32) ppb; in scaled_ppm_to_ppb()
141 s32 ppb = scaled_ppm_to_ppb(tx->freq); in ptp_clock_adjtime() local
142 if (ppb > ops->max_adj || ppb < -ops->max_adj) in ptp_clock_adjtime()
147 err = ops->adjfreq(ops, ppb); in ptp_clock_adjtime()
Dptp_ixp46x.c123 static int ptp_ixp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ptp_ixp_adjfreq() argument
131 if (ppb < 0) { in ptp_ixp_adjfreq()
133 ppb = -ppb; in ptp_ixp_adjfreq()
137 adj *= ppb; in ptp_ixp_adjfreq()
Dptp_pch.c400 static int ptp_pch_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ptp_pch_adjfreq() argument
408 if (ppb < 0) { in ptp_pch_adjfreq()
410 ppb = -ppb; in ptp_pch_adjfreq()
414 adj *= ppb; in ptp_pch_adjfreq()
Dptp_kvm.c96 static int ptp_kvm_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ptp_kvm_adjfreq() argument
/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ptp.c21 static int stmmac_adjust_freq(struct ptp_clock_info *ptp, s32 ppb) in stmmac_adjust_freq() argument
30 if (ppb < 0) { in stmmac_adjust_freq()
32 ppb = -ppb; in stmmac_adjust_freq()
37 adj *= ppb; in stmmac_adjust_freq()
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ptp.c203 static int cxgb4_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in cxgb4_ptp_adjfreq() argument
217 c.u.ts.sign = (ppb < 0) ? 1 : 0; in cxgb4_ptp_adjfreq()
218 if (ppb < 0) in cxgb4_ptp_adjfreq()
219 ppb = -ppb; in cxgb4_ptp_adjfreq()
220 c.u.ts.ppb = cpu_to_be32(ppb); in cxgb4_ptp_adjfreq()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ptp.c444 static int ixgbe_ptp_adjfreq_82599(struct ptp_clock_info *ptp, s32 ppb) in ixgbe_ptp_adjfreq_82599() argument
453 if (ppb < 0) { in ixgbe_ptp_adjfreq_82599()
455 ppb = -ppb; in ixgbe_ptp_adjfreq_82599()
462 freq *= ppb; in ixgbe_ptp_adjfreq_82599()
495 static int ixgbe_ptp_adjfreq_X550(struct ptp_clock_info *ptp, s32 ppb) in ixgbe_ptp_adjfreq_X550() argument
504 if (ppb < 0) { in ixgbe_ptp_adjfreq_X550()
506 ppb = -ppb; in ixgbe_ptp_adjfreq_X550()
508 rate *= ppb; in ixgbe_ptp_adjfreq_X550()
/drivers/net/ethernet/renesas/
Dravb_ptp.c91 static int ravb_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ravb_ptp_adjfreq() argument
101 if (ppb < 0) { in ravb_ptp_adjfreq()
103 ppb = -ppb; in ravb_ptp_adjfreq()
106 diff = div_u64((u64)addend * ppb, NSEC_PER_SEC); in ravb_ptp_adjfreq()
/drivers/net/ethernet/freescale/
Dfec_ptp.c288 static int fec_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in fec_ptp_adjfreq() argument
300 if (ppb == 0) in fec_ptp_adjfreq()
303 if (ppb < 0) { in fec_ptp_adjfreq()
304 ppb = -ppb; in fec_ptp_adjfreq()
313 rhs = (u64)ppb * (u64)fep->ptp_inc; in fec_ptp_adjfreq()
/drivers/staging/media/tegra-vde/
Dvde.h34 void __iomem *ppb; member
95 if (vde->ppb == base) in tegra_vde_reg_base_name()
Dvde.c1014 vde->ppb = devm_ioremap_resource(dev, regs); in tegra_vde_probe()
1015 if (IS_ERR(vde->ppb)) in tegra_vde_probe()
1016 return PTR_ERR(vde->ppb); in tegra_vde_probe()
/drivers/net/ethernet/intel/i40e/
Di40e_ptp.c101 static int i40e_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in i40e_ptp_adjfreq() argument
108 if (ppb < 0) { in i40e_ptp_adjfreq()
110 ppb = -ppb; in i40e_ptp_adjfreq()
114 freq *= ppb; in i40e_ptp_adjfreq()
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_ptp.c158 s32 ppb; in mlxsw_sp1_ptp_adjfine() local
160 ppb = scaled_ppm_to_ppb(scaled_ppm); in mlxsw_sp1_ptp_adjfine()
162 if (ppb < 0) { in mlxsw_sp1_ptp_adjfine()
164 ppb = -ppb; in mlxsw_sp1_ptp_adjfine()
168 adj *= ppb; in mlxsw_sp1_ptp_adjfine()
177 return mlxsw_sp1_ptp_phc_adjfreq(clock, neg_adj ? -ppb : ppb); in mlxsw_sp1_ptp_adjfine()
/drivers/net/ethernet/ti/
Dcpts.c216 static int cpts_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in cpts_ptp_adjfreq() argument
224 if (ppb < 0) { in cpts_ptp_adjfreq()
226 ppb = -ppb; in cpts_ptp_adjfreq()
230 adj *= ppb; in cpts_ptp_adjfreq()
/drivers/net/wireless/ath/
Ddfs_pri_detector.c251 ps.dur = ps.pri * (pde->rs->ppb - 1) in pseq_handler_create_sequences()
431 de->window_size = rs->pri_max * rs->ppb * rs->num_pri; in pri_detector_init()
432 de->max_count = rs->ppb * 2; in pri_detector_init()
Ddfs_pattern_detector.h78 u8 ppb; member
/drivers/net/ethernet/intel/igb/
Digb_ptp.c194 static int igb_ptp_adjfreq_82576(struct ptp_clock_info *ptp, s32 ppb) in igb_ptp_adjfreq_82576() argument
203 if (ppb < 0) { in igb_ptp_adjfreq_82576()
205 ppb = -ppb; in igb_ptp_adjfreq_82576()
207 rate = ppb; in igb_ptp_adjfreq_82576()
/drivers/net/ethernet/qlogic/qede/
Dqede_ptp.c63 static int qede_ptp_adjfreq(struct ptp_clock_info *info, s32 ppb) in qede_ptp_adjfreq() argument
72 rc = ptp->ops->adjfreq(edev->cdev, ppb); in qede_ptp_adjfreq()
/drivers/rtc/
Drtc-armada38x.c391 static long armada38x_ppb_convert(long ppb) in armada38x_ppb_convert() argument
393 long div = ppb + 1000000000L; in armada38x_ppb_convert()
/drivers/block/drbd/
Ddrbd_bitmap.c1039 char ppb[10]; in bm_rw() local
1177 ppsize(ppb, now << (BM_BLOCK_SHIFT-10)), now); in bm_rw()
/drivers/net/ethernet/cavium/liquidio/
Dlio_main.c1560 static int liquidio_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in liquidio_ptp_adjfreq() argument
1568 if (ppb < 0) { in liquidio_ptp_adjfreq()
1570 ppb = -ppb; in liquidio_ptp_adjfreq()
1577 delta = (u64)ppb << 32; in liquidio_ptp_adjfreq()

12