Home
last modified time | relevance | path

Searched refs:ppm (Results 1 – 25 of 53) sorted by relevance

123

/linux-6.6.21/drivers/net/ethernet/chelsio/libcxgb/
Dlibcxgb_ppm.c65 int cxgbi_ppm_find_page_index(struct cxgbi_ppm *ppm, unsigned long pgsz) in cxgbi_ppm_find_page_index() argument
67 struct cxgbi_tag_format *tformat = &ppm->tformat; in cxgbi_ppm_find_page_index()
74 __func__, ppm->ndev->name, pgsz, i); in cxgbi_ppm_find_page_index()
104 static void ppm_mark_entries(struct cxgbi_ppm *ppm, int i, int count, in ppm_mark_entries() argument
107 struct cxgbi_ppod_data *pdata = ppm->ppod_data + i; in ppm_mark_entries()
118 static int ppm_get_cpu_entries(struct cxgbi_ppm *ppm, unsigned int count, in ppm_get_cpu_entries() argument
125 if (!ppm->pool) in ppm_get_cpu_entries()
129 pool = per_cpu_ptr(ppm->pool, cpu); in ppm_get_cpu_entries()
133 i = ppm_find_unused_entries(pool->bmap, ppm->pool_index_max, in ppm_get_cpu_entries()
142 if (pool->next >= ppm->pool_index_max) in ppm_get_cpu_entries()
[all …]
Dlibcxgb_ppm.h197 static inline int cxgbi_ppm_is_ddp_tag(struct cxgbi_ppm *ppm, u32 tag) in cxgbi_ppm_is_ddp_tag() argument
199 return !(tag & ppm->tformat.no_ddp_mask); in cxgbi_ppm_is_ddp_tag()
202 static inline int cxgbi_ppm_sw_tag_is_usable(struct cxgbi_ppm *ppm, in cxgbi_ppm_sw_tag_is_usable() argument
209 static inline int cxgbi_ppm_make_non_ddp_tag(struct cxgbi_ppm *ppm, in cxgbi_ppm_make_non_ddp_tag() argument
213 struct cxgbi_tag_format *tformat = &ppm->tformat; in cxgbi_ppm_make_non_ddp_tag()
215 if (!cxgbi_ppm_sw_tag_is_usable(ppm, sw_tag)) { in cxgbi_ppm_make_non_ddp_tag()
232 static inline u32 cxgbi_ppm_decode_non_ddp_tag(struct cxgbi_ppm *ppm, in cxgbi_ppm_decode_non_ddp_tag() argument
235 struct cxgbi_tag_format *tformat = &ppm->tformat; in cxgbi_ppm_decode_non_ddp_tag()
243 static inline u32 cxgbi_ppm_ddp_tag_get_idx(struct cxgbi_ppm *ppm, in cxgbi_ppm_ddp_tag_get_idx() argument
247 ppm->tformat.idx_mask; in cxgbi_ppm_ddp_tag_get_idx()
[all …]
/linux-6.6.21/drivers/target/iscsi/cxgbit/
Dcxgbit_ddp.c64 cxgbit_ppod_init_idata(struct cxgbit_device *cdev, struct cxgbi_ppm *ppm, in cxgbit_ppod_init_idata() argument
69 unsigned int pm_addr = (idx << PPOD_SIZE_SHIFT) + ppm->llimit; in cxgbit_ppod_init_idata()
98 cxgbit_ppod_write_idata(struct cxgbi_ppm *ppm, struct cxgbit_sock *csk, in cxgbit_ppod_write_idata() argument
110 skb = cxgbit_ppod_init_idata(cdev, ppm, idx, npods, csk->tid); in cxgbit_ppod_write_idata()
127 cxgbit_ddp_set_map(struct cxgbi_ppm *ppm, struct cxgbit_sock *csk, in cxgbit_ddp_set_map() argument
143 ret = cxgbit_ppod_write_idata(ppm, csk, ttinfo, pidx, cnt, in cxgbit_ddp_set_map()
175 struct cxgbi_ppm *ppm = cdev2ppm(cdev); in cxgbit_ddp_reserve() local
183 ppm, ppm->tformat.pgsz_idx_dflt, in cxgbit_ddp_reserve()
197 ret = cxgbi_ppm_ppods_reserve(ppm, ttinfo->nr_pages, 0, &ttinfo->idx, in cxgbit_ddp_reserve()
204 ret = dma_map_sg(&ppm->pdev->dev, sgl, sgcnt, DMA_FROM_DEVICE); in cxgbit_ddp_reserve()
[all …]
/linux-6.6.21/tools/testing/selftests/timers/
Dskew_consistency.c44 int ret, ppm; in main() local
54 ppm = 500; in main()
58 ppm = -ppm; in main()
60 tx.freq = ppm << 16; in main()
Dchange_skew.c36 int change_skew_test(int ppm) in change_skew_test() argument
42 tx.freq = ppm << 16; in change_skew_test()
63 int ppm[5] = {0, 250, 500, -250, -500}; in main() local
79 printf("Using %i ppm adjustment\n", ppm[i]); in main()
80 ret = change_skew_test(ppm[i]); in main()
Draw_skew.c95 long long delta1, delta2, interval, eppm, ppm; in main() local
132 ppm = (long long)(tx1.freq + tx2.freq) * 1000 / 2; in main()
133 ppm = shift_right(ppm, 16); in main()
134 printf(" %lld.%i(act)", ppm/1000, abs((int)(ppm%1000))); in main()
136 if (llabs(eppm - ppm) > 1000) { in main()
Dadjtick.c117 long long eppm, ppm; in check_tick_adj() local
134 ppm = ((long long)tickval * MILLION)/systick - MILLION; in check_tick_adj()
135 printf("Estimating tick (act: %ld usec, %lld ppm): ", tickval, ppm); in check_tick_adj()
159 if (llabs(eppm - ppm) > 100) { in check_tick_adj()
/linux-6.6.21/drivers/clocksource/
Dscx200_hrt.c27 static int ppm; variable
28 module_param(ppm, int, 0); /* load time only */
29 MODULE_PARM_DESC(ppm, "+-adjust to actual XO freq (ppm)");
76 freq = (HRT_FREQ + ppm); in init_hrt_clocksource()
80 pr_info("enabling scx200 high-res timer (%s MHz +%d ppm)\n", mhz27 ? "27":"1", ppm); in init_hrt_clocksource()
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/engine/pm/
Dnv40.c83 enum nvkm_subdev_type type, int inst, struct nvkm_pm **ppm) in nv40_pm_new_() argument
90 *ppm = &pm->base; in nv40_pm_new_()
120 nv40_pm_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_pm **ppm) in nv40_pm_new() argument
122 return nv40_pm_new_(nv40_pm, device, type, inst, ppm); in nv40_pm_new()
Dgf100.c190 enum nvkm_subdev_type type, int inst, struct nvkm_pm **ppm) in gf100_pm_new_() argument
196 if (!(pm = *ppm = kzalloc(sizeof(*pm), GFP_KERNEL))) in gf100_pm_new_()
240 gf100_pm_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_pm **ppm) in gf100_pm_new() argument
242 return gf100_pm_new_(&gf100_pm, device, type, inst, ppm); in gf100_pm_new()
Dgf108.c63 gf108_pm_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_pm **ppm) in gf108_pm_new() argument
65 return gf100_pm_new_(&gf108_pm, device, type, inst, ppm); in gf108_pm_new()
Dgf117.c77 gf117_pm_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_pm **ppm) in gf117_pm_new() argument
79 return gf100_pm_new_(&gf117_pm, device, type, inst, ppm); in gf117_pm_new()
Dgt215.c135 gt215_pm_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_pm **ppm) in gt215_pm_new() argument
137 return nv40_pm_new_(gt215_pm, device, type, inst, ppm); in gt215_pm_new()
Dgt200.c154 gt200_pm_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_pm **ppm) in gt200_pm_new() argument
156 return nv40_pm_new_(gt200_pm, device, type, inst, ppm); in gt200_pm_new()
Dnv50.c172 nv50_pm_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_pm **ppm) in nv50_pm_new() argument
174 return nv40_pm_new_(nv50_pm, device, type, inst, ppm); in nv50_pm_new()
Dg84.c162 g84_pm_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_pm **ppm) in g84_pm_new() argument
164 return nv40_pm_new_(g84_pm, device, type, inst, ppm); in g84_pm_new()
Dgk104.c181 gk104_pm_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_pm **ppm) in gk104_pm_new() argument
183 return gf100_pm_new_(&gk104_pm, device, type, inst, ppm); in gk104_pm_new()
/linux-6.6.21/Documentation/devicetree/bindings/iio/afe/
Dtemperature-transducer.yaml78 alpha-ppm-per-celsius:
92 - alpha-ppm-per-celsius
103 alpha-ppm-per-celsius = <1>; /* 1 uA/K */
112 alpha-ppm-per-celsius = <4000>; /* 4 mV/K */
Dtemperature-sense-rtd.yaml62 alpha-ppm-per-celsius:
87 - alpha-ppm-per-celsius
98 alpha-ppm-per-celsius = <3908>;
/linux-6.6.21/drivers/media/dvb-frontends/cxd2880/
Dcxd2880_tnrdmd_dvbt_mon.h64 *tnr_dmd, int *ppm);
69 int *ppm);
Dcxd2880_tnrdmd_dvbt_mon.c543 *tnr_dmd, int *ppm) in cxd2880_tnrdmd_dvbt_mon_sampling_offset() argument
554 if (!tnr_dmd || !ppm) in cxd2880_tnrdmd_dvbt_mon_sampling_offset()
648 *ppm = (num + (den / 2)) / den; in cxd2880_tnrdmd_dvbt_mon_sampling_offset()
650 *ppm = (num - (den / 2)) / den; in cxd2880_tnrdmd_dvbt_mon_sampling_offset()
657 *tnr_dmd, int *ppm) in cxd2880_tnrdmd_dvbt_mon_sampling_offset_sub() argument
659 if (!tnr_dmd || !ppm) in cxd2880_tnrdmd_dvbt_mon_sampling_offset_sub()
665 return cxd2880_tnrdmd_dvbt_mon_sampling_offset(tnr_dmd->diver_sub, ppm); in cxd2880_tnrdmd_dvbt_mon_sampling_offset_sub()
Dcxd2880_tnrdmd_dvbt2_mon.h104 *tnr_dmd, int *ppm);
109 int *ppm);
/linux-6.6.21/drivers/scsi/cxgbi/
Dlibcxgbi.c1224 struct cxgbi_ppm *ppm = (struct cxgbi_ppm *)(*ppm_pp); in cxgbi_ddp_ppm_setup() local
1226 if (ppm->ppmax < 1024 || in cxgbi_ddp_ppm_setup()
1227 ppm->tformat.pgsz_idx_dflt >= DDP_PGIDX_MAX) in cxgbi_ddp_ppm_setup()
1266 struct cxgbi_ppm *ppm = cdev->cdev2ppm(cdev); in cxgbi_ddp_reserve() local
1279 if (!ppm || xferlen < DDP_THRESHOLD || !sgcnt || in cxgbi_ddp_reserve()
1280 ppm->tformat.pgsz_idx_dflt >= DDP_PGIDX_MAX) { in cxgbi_ddp_reserve()
1283 ppm, ppm ? ppm->tformat.pgsz_idx_dflt : DDP_PGIDX_MAX, in cxgbi_ddp_reserve()
1300 err = cxgbi_ppm_ppods_reserve(ppm, ttinfo->nr_pages, 0, &ttinfo->idx, in cxgbi_ddp_reserve()
1310 err = dma_map_sg(&ppm->pdev->dev, sgl, sgcnt, DMA_FROM_DEVICE); in cxgbi_ddp_reserve()
1326 cxgbi_ppm_make_ppod_hdr(ppm, ttinfo->tag, csk->tid, sgl->offset, in cxgbi_ddp_reserve()
[all …]
/linux-6.6.21/sound/soc/rockchip/
Drockchip_i2s_tdm.c571 int ppm) in rockchip_i2s_tdm_clk_set_rate() argument
576 if (ppm == i2s_tdm->clk_ppm) in rockchip_i2s_tdm_clk_set_rate()
579 if (ppm < 0) in rockchip_i2s_tdm_clk_set_rate()
584 delta *= (int)div64_u64((u64)rate * (u64)abs(ppm) + 500000, in rockchip_i2s_tdm_clk_set_rate()
596 i2s_tdm->clk_ppm = ppm; in rockchip_i2s_tdm_clk_set_rate()
611 u64 ppm; in rockchip_i2s_tdm_calibrate_mclk() local
659 ppm = div64_u64((uint64_t)delta * 1000000, (uint64_t)mclk_root_freq); in rockchip_i2s_tdm_calibrate_mclk()
661 if (ppm) { in rockchip_i2s_tdm_calibrate_mclk()
1028 int ret = 0, ppm = 0; in rockchip_i2s_tdm_clk_compensation_put() local
1036 ppm = ucontrol->value.integer.value[0]; in rockchip_i2s_tdm_clk_compensation_put()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/pm/legacy-dpm/
Dlegacy_dpm.c528 ATOM_PPLIB_PPM_Table *ppm = (ATOM_PPLIB_PPM_Table *) in amdgpu_parse_extended_power_table() local
535 adev->pm.dpm.dyn_state.ppm_table->ppm_design = ppm->ucPpmDesign; in amdgpu_parse_extended_power_table()
537 le16_to_cpu(ppm->usCpuCoreNumber); in amdgpu_parse_extended_power_table()
539 le32_to_cpu(ppm->ulPlatformTDP); in amdgpu_parse_extended_power_table()
541 le32_to_cpu(ppm->ulSmallACPlatformTDP); in amdgpu_parse_extended_power_table()
543 le32_to_cpu(ppm->ulPlatformTDC); in amdgpu_parse_extended_power_table()
545 le32_to_cpu(ppm->ulSmallACPlatformTDC); in amdgpu_parse_extended_power_table()
547 le32_to_cpu(ppm->ulApuTDP); in amdgpu_parse_extended_power_table()
549 le32_to_cpu(ppm->ulDGpuTDP); in amdgpu_parse_extended_power_table()
551 le32_to_cpu(ppm->ulDGpuUlvPower); in amdgpu_parse_extended_power_table()
[all …]

123