Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/scsi/
Dppa.c192 unsigned short ppb = dev->base; in ppa_wait() local
197 for (r = r_str(ppb); ((r & 0xc0) != 0xc0) && (k); k--) { in ppa_wait()
199 r = r_str(ppb); in ppa_wait()
221 static inline void epp_reset(unsigned short ppb) in epp_reset() argument
225 i = r_str(ppb); in epp_reset()
226 w_str(ppb, i); in epp_reset()
227 w_str(ppb, i & 0xfe); in epp_reset()
290 unsigned short ppb = dev->base; in ppa_out() local
302 r = ppa_byte_out(ppb, buffer, len); in ppa_out()
308 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 …]
/linux-6.6.21/drivers/net/ethernet/qlogic/qed/
Dqed_ptp.c254 static int qed_ptp_hw_adjfreq(struct qed_dev *cdev, s32 ppb) in qed_ptp_hw_adjfreq() argument
262 if (ppb < 0) { in qed_ptp_hw_adjfreq()
263 ppb = -ppb; in qed_ptp_hw_adjfreq()
267 if (ppb > 1) { in qed_ptp_hw_adjfreq()
268 s64 best_dif = ppb, best_approx_dev = 1; in qed_ptp_hw_adjfreq()
274 period = div_s64(val * 1000000000, ppb); in qed_ptp_hw_adjfreq()
284 dif = ppb * approx_dev - val * 1000000000; in qed_ptp_hw_adjfreq()
285 dif2 = dif + 16 * ppb; in qed_ptp_hw_adjfreq()
307 } else if (ppb == 1) { in qed_ptp_hw_adjfreq()
/linux-6.6.21/drivers/ptp/
Dptp_dte.c37 #define DTE_PPB_ADJ(ppb) (u32)(div64_u64((((u64)abs(ppb) * BIT(28)) +\ argument
139 s32 ppb = scaled_ppm_to_ppb(scaled_ppm); in ptp_dte_adjfine() local
144 if (abs(ppb) > ptp_dte->caps.max_adj) { in ptp_dte_adjfine()
149 if (ppb < 0) in ptp_dte_adjfine()
150 nco_incr = DTE_NCO_INC_DEFAULT - DTE_PPB_ADJ(ppb); in ptp_dte_adjfine()
152 nco_incr = DTE_NCO_INC_DEFAULT + DTE_PPB_ADJ(ppb); in ptp_dte_adjfine()
Dptp_dfl_tod.c132 u64 ppb; in dfl_tod_adjust_fine() local
138 ppb = scaled_ppm_to_ppb(scaled_ppm) + GIGA; in dfl_tod_adjust_fine()
140 tod_period = div_u64_rem(ppb << PERIOD_FRAC_OFFSET, rate, &tod_rem); in dfl_tod_adjust_fine()
Dptp_clock.c132 long ppb = scaled_ppm_to_ppb(tx->freq); in ptp_clock_adjtime() local
133 if (ppb > ops->max_adj || ppb < -ops->max_adj) in ptp_clock_adjtime()
Dptp_idt82p33.c608 s32 ppb; in idt82p33_start_ddco() local
619 ppb = delta_ns; in idt82p33_start_ddco()
620 while (abs(ppb) > DCO_MAX_PPB) { in idt82p33_start_ddco()
622 ppb /= 2; in idt82p33_start_ddco()
626 idt82p33_ddco_scaled_ppm(current_ppm, ppb)); in idt82p33_start_ddco()
/linux-6.6.21/include/linux/
Dptp_clock_kernel.h244 s64 ppb = 1 + ppm; in scaled_ppm_to_ppb() local
246 ppb *= 125; in scaled_ppm_to_ppb()
247 ppb >>= 13; in scaled_ppm_to_ppb()
248 return (long)ppb; in scaled_ppm_to_ppb()
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ptp.c210 s32 ppb = scaled_ppm_to_ppb(scaled_ppm); in cxgb4_ptp_adjfine() local
221 c.u.ts.sign = (ppb < 0) ? 1 : 0; in cxgb4_ptp_adjfine()
222 if (ppb < 0) in cxgb4_ptp_adjfine()
223 ppb = -ppb; in cxgb4_ptp_adjfine()
224 c.u.ts.ppb = cpu_to_be32(ppb); in cxgb4_ptp_adjfine()
/linux-6.6.21/fs/ext2/
Dsuper.c735 unsigned int ppb = 1 << (bits-2); in ext2_max_size() local
755 meta_blocks += 1 + ppb; in ext2_max_size()
756 meta_blocks += 1 + ppb + ppb * ppb; in ext2_max_size()
766 upper_limit -= ppb; in ext2_max_size()
768 if (upper_limit < ppb * ppb) { in ext2_max_size()
769 meta_blocks += 1 + DIV_ROUND_UP(upper_limit, ppb); in ext2_max_size()
773 meta_blocks += 1 + ppb; in ext2_max_size()
774 upper_limit -= ppb * ppb; in ext2_max_size()
776 meta_blocks += 1 + DIV_ROUND_UP(upper_limit, ppb) + in ext2_max_size()
777 DIV_ROUND_UP(upper_limit, ppb*ppb); in ext2_max_size()
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/af/
Dptp.c316 s64 ppb; in ptp_adjfine() local
338 ppb = 1 + scaled_ppm; in ptp_adjfine()
339 ppb *= 125; in ptp_adjfine()
340 ppb >>= 13; in ptp_adjfine()
344 freq_adj = (ptp->clock_rate * ppb) / 1000000000ULL; in ptp_adjfine()
349 adj = comp * ppb; in ptp_adjfine()
/linux-6.6.21/drivers/net/ethernet/freescale/
Dfec_ptp.c354 s32 ppb = scaled_ppm_to_ppb(scaled_ppm); in fec_ptp_adjfine() local
365 if (ppb == 0) in fec_ptp_adjfine()
368 if (ppb < 0) { in fec_ptp_adjfine()
369 ppb = -ppb; in fec_ptp_adjfine()
378 rhs = (u64)ppb * (u64)fep->ptp_inc; in fec_ptp_adjfine()
/linux-6.6.21/Documentation/devicetree/bindings/media/
Dnvidia,tegra-vde.yaml39 - const: ppb
107 "tfe", "ppb", "vdma", "frameid";
/linux-6.6.21/drivers/media/platform/nvidia/tegra-vde/
Dvde.h102 void __iomem *ppb; member
227 if (vde->ppb == base) in tegra_vde_reg_base_name()
Dvde.c263 vde->ppb = devm_platform_ioremap_resource_byname(pdev, "ppb"); in tegra_vde_probe()
264 if (IS_ERR(vde->ppb)) in tegra_vde_probe()
265 return PTR_ERR(vde->ppb); in tegra_vde_probe()
/linux-6.6.21/drivers/net/wireless/ath/
Ddfs_pri_detector.c250 ps.dur = ps.pri * (pde->rs->ppb - 1) in pseq_handler_create_sequences()
430 de->window_size = rs->pri_max * rs->ppb * rs->num_pri; in pri_detector_init()
431 de->max_count = rs->ppb * 2; in pri_detector_init()
Ddfs_pattern_detector.h78 u8 ppb; member
/linux-6.6.21/Documentation/devicetree/bindings/clock/
Dfixed-clock.yaml23 description: accuracy of clock in ppb (parts per billion).
/linux-6.6.21/drivers/net/ethernet/ti/icssg/
Dicss_iep.c359 s32 ppb = scaled_ppm_to_ppb(scaled_ppm); in icss_iep_ptp_adjfine() local
386 if (ppb < 0) { in icss_iep_ptp_adjfine()
388 ppb = -ppb; in icss_iep_ptp_adjfine()
392 cyc_count /= ppb; /* cycle time per ppb */ in icss_iep_ptp_adjfine()
/linux-6.6.21/drivers/net/phy/
Dnxp-c45-tja11xx.c181 #define PPM_TO_SUBNS_INC(ppb, ptp_clk_period) div_u64(GENMASK_ULL(31, 0) * \ argument
182 (ppb) * (ptp_clk_period), NSEC_PER_SEC)
458 s32 ppb = scaled_ppm_to_ppb(scaled_ppm); in nxp_c45_ptp_adjfine() local
463 inc = ppb >= 0; in nxp_c45_ptp_adjfine()
464 ppb = abs(ppb); in nxp_c45_ptp_adjfine()
466 subns_inc_val = PPM_TO_SUBNS_INC(ppb, data->ptp_clk_period); in nxp_c45_ptp_adjfine()
/linux-6.6.21/drivers/net/ethernet/ti/
Dam65-cpts.c410 s32 ppb = scaled_ppm_to_ppb(scaled_ppm); in am65_cpts_ptp_adjfine() local
417 if (ppb < 0) { in am65_cpts_ptp_adjfine()
419 ppb = -ppb; in am65_cpts_ptp_adjfine()
431 adj_period = div_u64(cpts->refclk_freq, ppb); in am65_cpts_ptp_adjfine()
/linux-6.6.21/tools/testing/selftests/ptp/
Dtestptp.c95 static long ppb_to_scaled_ppm(int ppb) in ppb_to_scaled_ppm() argument
108 return (long) (ppb * 65.536); in ppb_to_scaled_ppm()
/linux-6.6.21/drivers/rtc/
Drtc-armada38x.c390 static long armada38x_ppb_convert(long ppb) in armada38x_ppb_convert() argument
392 long div = ppb + 1000000000L; in armada38x_ppb_convert()
/linux-6.6.21/drivers/net/ethernet/qlogic/qede/
Dqede_ptp.c43 s32 ppb = scaled_ppm_to_ppb(scaled_ppm); in qede_ptp_adjfine() local
50 rc = ptp->ops->adjfreq(edev->cdev, ppb); in qede_ptp_adjfine()
/linux-6.6.21/fs/ext4/
Dsuper.c3461 unsigned int ppb = 1 << (bits - 2); in ext4_max_bitmap_size() local
3494 res += ppb; in ext4_max_bitmap_size()
3495 res += ppb * ppb; in ext4_max_bitmap_size()
3496 res += ((loff_t)ppb) * ppb * ppb; in ext4_max_bitmap_size()
3499 meta_blocks += 1 + ppb; in ext4_max_bitmap_size()
3500 meta_blocks += 1 + ppb + ppb * ppb; in ext4_max_bitmap_size()
3510 upper_limit -= ppb; in ext4_max_bitmap_size()
3512 if (upper_limit < ppb * ppb) { in ext4_max_bitmap_size()
3513 meta_blocks += 1 + DIV_ROUND_UP_ULL(upper_limit, ppb); in ext4_max_bitmap_size()
3517 meta_blocks += 1 + ppb; in ext4_max_bitmap_size()
[all …]

12