Home
last modified time | relevance | path

Searched full:ppb (Results 1 – 25 of 77) sorted by relevance

1234

/Linux-v6.1/drivers/scsi/
Dppa.c187 unsigned short ppb = dev->base; in ppa_wait() local
192 for (r = r_str(ppb); ((r & 0xc0) != 0xc0) && (k); k--) { in ppa_wait()
194 r = r_str(ppb); in ppa_wait()
216 static inline void epp_reset(unsigned short ppb) in epp_reset() argument
220 i = r_str(ppb); in epp_reset()
221 w_str(ppb, i); in epp_reset()
222 w_str(ppb, i & 0xfe); in epp_reset()
285 unsigned short ppb = dev->base; in ppa_out() local
297 r = ppa_byte_out(ppb, buffer, len); in ppa_out()
303 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-v6.1/drivers/net/wireless/ath/
Ddfs_pattern_detector.c36 /* percentage on ppb threshold to trigger detection */
38 #define PPB_THRESH_RATE(PPB, RATE) ((PPB * RATE + 100 - RATE) / 100) argument
39 #define PPB_THRESH(PPB) PPB_THRESH_RATE(PPB, MIN_PPB_THRESH) argument
46 #define ETSI_PATTERN(ID, WMIN, WMAX, PMIN, PMAX, PRF, PPB, CHIRP) \ argument
50 (PRF2PRI(PMIN) * PRF + PRI_TOLERANCE), PRF, PPB * PRF, \
51 PPB_THRESH(PPB), PRI_TOLERANCE, CHIRP \
71 #define FCC_PATTERN(ID, WMIN, WMAX, PMIN, PMAX, PRF, PPB, CHIRP) \ argument
75 PMAX * PRF + PRI_TOLERANCE, PRF, PPB * PRF, \
76 PPB_THRESH(PPB), PRI_TOLERANCE, CHIRP \
103 #define JP_PATTERN(ID, WMIN, WMAX, PMIN, PMAX, PRF, PPB, RATE, CHIRP) \ argument
[all …]
Ddfs_pattern_detector.h66 * @ppb: pulses per bursts for this type
78 u8 ppb; member
/Linux-v6.1/drivers/net/ethernet/qlogic/qed/
Dqed_ptp.c247 /* Adjust the HW clock by a rate given in parts-per-billion (ppb) units.
252 * The routine translates ppb into the adjustment triplet in an optimal manner.
254 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()
[all …]
/Linux-v6.1/drivers/ptp/
Dptp_dte.c37 #define DTE_PPB_ADJ(ppb) (u32)(div64_u64((((u64)abs(ppb) * BIT(28)) +\ argument
137 static int ptp_dte_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ptp_dte_adjfreq() argument
143 if (abs(ppb) > ptp_dte->caps.max_adj) { in ptp_dte_adjfreq()
144 dev_err(ptp_dte->dev, "ppb adj too big\n"); in ptp_dte_adjfreq()
148 if (ppb < 0) in ptp_dte_adjfreq()
149 nco_incr = DTE_NCO_INC_DEFAULT - DTE_PPB_ADJ(ppb); in ptp_dte_adjfreq()
151 nco_incr = DTE_NCO_INC_DEFAULT + DTE_PPB_ADJ(ppb); in ptp_dte_adjfreq()
Dptp_pch.c339 static int ptp_pch_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ptp_pch_adjfreq() argument
347 if (ppb < 0) { in ptp_pch_adjfreq()
349 ppb = -ppb; in ptp_pch_adjfreq()
353 adj *= ppb; in ptp_pch_adjfreq()
Dptp_clock.c131 long ppb = scaled_ppm_to_ppb(tx->freq); in ptp_clock_adjtime() local
132 if (ppb > ops->max_adj || ppb < -ops->max_adj) in ptp_clock_adjtime()
137 err = ops->adjfreq(ops, ppb); in ptp_clock_adjtime()
/Linux-v6.1/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ptp.c199 * @ppb: Desired frequency change in parts per billion
201 * Adjust the frequency of the PHC cycle counter by the indicated ppb from
204 static int cxgb4_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in cxgb4_ptp_adjfreq() argument
218 c.u.ts.sign = (ppb < 0) ? 1 : 0; in cxgb4_ptp_adjfreq()
219 if (ppb < 0) in cxgb4_ptp_adjfreq()
220 ppb = -ppb; in cxgb4_ptp_adjfreq()
221 c.u.ts.ppb = cpu_to_be32(ppb); in cxgb4_ptp_adjfreq()
/Linux-v6.1/drivers/net/ethernet/marvell/octeontx2/af/
Dptp.c230 s64 ppb; in ptp_adjfine() local
251 /* convert scaled_ppm to ppb */ in ptp_adjfine()
252 ppb = 1 + scaled_ppm; in ptp_adjfine()
253 ppb *= 125; in ptp_adjfine()
254 ppb >>= 13; in ptp_adjfine()
257 /* calculate the new frequency based on ppb */ in ptp_adjfine()
258 freq_adj = (ptp->clock_rate * ppb) / 1000000000ULL; in ptp_adjfine()
263 adj = comp * ppb; in ptp_adjfine()
/Linux-v6.1/drivers/net/ethernet/xscale/
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()
/Linux-v6.1/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ptp.c18 * @ppb: desired period change in parts ber billion
22 static int stmmac_adjust_freq(struct ptp_clock_info *ptp, s32 ppb) in stmmac_adjust_freq() argument
31 if (ppb < 0) { in stmmac_adjust_freq()
33 ppb = -ppb; in stmmac_adjust_freq()
38 adj *= ppb; in stmmac_adjust_freq()
/Linux-v6.1/include/linux/
Dptp_clock_kernel.h224 * scaled_ppm_to_ppb() - convert scaled ppm to ppb
236 * ppb = scaled_ppm * 1000 / 2^16 in scaled_ppm_to_ppb()
240 * ppb = scaled_ppm * 125 / 2^13 in scaled_ppm_to_ppb()
242 s64 ppb = 1 + ppm; in scaled_ppm_to_ppb() local
244 ppb *= 125; in scaled_ppm_to_ppb()
245 ppb >>= 13; in scaled_ppm_to_ppb()
246 return (long)ppb; in scaled_ppm_to_ppb()
/Linux-v6.1/drivers/net/ethernet/freescale/
Dfec_ptp.c268 * @ppb: parts per billion adjustment from base
271 * indicated ppb from the base frequency.
276 static int fec_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in fec_ptp_adjfreq() argument
288 if (ppb == 0) in fec_ptp_adjfreq()
291 if (ppb < 0) { in fec_ptp_adjfreq()
292 ppb = -ppb; in fec_ptp_adjfreq()
296 /* In theory, corr_inc/corr_period = ppb/NSEC_PER_SEC; in fec_ptp_adjfreq()
301 rhs = (u64)ppb * (u64)fep->ptp_inc; in fec_ptp_adjfreq()
/Linux-v6.1/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()
/Linux-v6.1/drivers/media/platform/nvidia/tegra-vde/
Dvde.h102 void __iomem *ppb; member
227 if (vde->ppb == base) in tegra_vde_reg_base_name()
228 return "PPB"; in tegra_vde_reg_base_name()
Dvde.c262 vde->ppb = devm_platform_ioremap_resource_byname(pdev, "ppb"); in tegra_vde_probe()
263 if (IS_ERR(vde->ppb)) in tegra_vde_probe()
264 return PTR_ERR(vde->ppb); in tegra_vde_probe()
/Linux-v6.1/tools/testing/selftests/ptp/
Dtestptp.c95 static long ppb_to_scaled_ppm(int ppb) in ppb_to_scaled_ppm() argument
102 * scaled_ppm = (ppb / 1000) << 16 [1] in ppb_to_scaled_ppm()
103 * scaled_ppm = (ppb << 16) / 1000 [2] in ppb_to_scaled_ppm()
108 return (long) (ppb * 65.536); in ppb_to_scaled_ppm()
123 " -f val adjust the ptp clock frequency by 'val' ppb\n" in usage()
283 " %d maximum frequency adjustment (ppb)\n" in main()
/Linux-v6.1/fs/ext2/
Dsuper.c736 unsigned int ppb = 1 << (bits-2); in ext2_max_size() local
756 meta_blocks += 1 + ppb; in ext2_max_size()
757 meta_blocks += 1 + ppb + ppb * ppb; in ext2_max_size()
767 upper_limit -= ppb; in ext2_max_size()
769 if (upper_limit < ppb * ppb) { in ext2_max_size()
770 meta_blocks += 1 + DIV_ROUND_UP(upper_limit, ppb); in ext2_max_size()
774 meta_blocks += 1 + ppb; in ext2_max_size()
775 upper_limit -= ppb * ppb; in ext2_max_size()
777 meta_blocks += 1 + DIV_ROUND_UP(upper_limit, ppb) + in ext2_max_size()
778 DIV_ROUND_UP(upper_limit, ppb*ppb); in ext2_max_size()
/Linux-v6.1/Documentation/devicetree/bindings/media/
Dnvidia,tegra-vde.yaml39 - const: ppb
107 "tfe", "ppb", "vdma", "frameid";
/Linux-v6.1/drivers/net/ethernet/ti/
Dam65-cpts.c384 static int am65_cpts_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in am65_cpts_ptp_adjfreq() argument
391 if (ppb < 0) { in am65_cpts_ptp_adjfreq()
393 ppb = -ppb; in am65_cpts_ptp_adjfreq()
397 * ppb_norm = ppb * base_freq / clock_freq; in am65_cpts_ptp_adjfreq()
401 * adj_period = 1 000 000 000 / (ppb * base_freq / clock_freq) in am65_cpts_ptp_adjfreq()
402 * adj_period = (1 000 000 000 * clock_freq) / (ppb * base_freq) in am65_cpts_ptp_adjfreq()
403 * adj_period = clock_freq / ppb in am65_cpts_ptp_adjfreq()
405 adj_period = div_u64(cpts->refclk_freq, ppb); in am65_cpts_ptp_adjfreq()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_ptp.c195 s32 ppb; in mlxsw_sp1_ptp_adjfine() local
197 ppb = scaled_ppm_to_ppb(scaled_ppm); in mlxsw_sp1_ptp_adjfine()
199 if (ppb < 0) { in mlxsw_sp1_ptp_adjfine()
201 ppb = -ppb; in mlxsw_sp1_ptp_adjfine()
205 adj *= ppb; in mlxsw_sp1_ptp_adjfine()
214 return mlxsw_sp_ptp_phc_adjfreq(&clock->common, neg_adj ? -ppb : ppb); in mlxsw_sp1_ptp_adjfine()
388 s32 ppb = scaled_ppm_to_ppb(scaled_ppm); in mlxsw_sp2_ptp_adjfine() local
392 * sign of PPB to this behavior. in mlxsw_sp2_ptp_adjfine()
394 return mlxsw_sp_ptp_phc_adjfreq(clock, -ppb); in mlxsw_sp2_ptp_adjfine()
/Linux-v6.1/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_ptp.c25 static int hclge_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in hclge_ptp_adjfreq() argument
34 if (ppb < 0) { in hclge_ptp_adjfreq()
35 ppb = -ppb; in hclge_ptp_adjfreq()
40 adj_val = adj_base * ppb; in hclge_ptp_adjfreq()
/Linux-v6.1/drivers/pci/hotplug/
Dibmphp_pci.c111 * | |___________|=> 1=PPB bridge, 0=normal device, 2=CardBus Bridge in ibmphp_configure_card()
182 err("was not able to hot-add PPB properly.\n"); in ibmphp_configure_card()
183 func->bus = 1; /* To indicate to the unconfigure function that this is a PPB */ in ibmphp_configure_card()
211 func->bus = 1; /* To indicate to the unconfigure function that this is a PPB */ in ibmphp_configure_card()
251 func->bus = 1; /* To indicate to the unconfigure function that this is a PPB */ in ibmphp_configure_card()
252 err("was not able to hot-add PPB properly.\n"); in ibmphp_configure_card()
284 func->bus = 1; /* To indicate to the unconfigure function that this is a PPB */ in ibmphp_configure_card()
524 func->bus = 0; /* To indicate that this is not a PPB */ in configure_device()
1004 func->bus = 1; /* For unconfiguring, to indicate it's PPB */ in configure_bridge()
1041 * This function adds up the amount of resources needed behind the PPB bridge
[all …]
/Linux-v6.1/Documentation/ABI/testing/
Dsysfs-firmware-sgi_uv145 PPB
156 object type is 'PPB'.

1234