Searched refs:ppm (Results 1 - 25 of 43) sorted by relevance

12

/linux-master/drivers/net/ethernet/chelsio/libcxgb/
H A Dlibcxgb_ppm.c65 int cxgbi_ppm_find_page_index(struct cxgbi_ppm *ppm, unsigned long pgsz) argument
67 struct cxgbi_tag_format *tformat = &ppm->tformat;
73 pr_debug("%s: %s ppm, pgsz %lu -> idx %d.\n",
74 __func__, ppm->ndev->name, pgsz, i);
104 static void ppm_mark_entries(struct cxgbi_ppm *ppm, int i, int count, argument
107 struct cxgbi_ppod_data *pdata = ppm->ppod_data + i;
118 static int ppm_get_cpu_entries(struct cxgbi_ppm *ppm, unsigned int count, argument
125 if (!ppm->pool)
129 pool = per_cpu_ptr(ppm->pool, cpu);
133 i = ppm_find_unused_entries(pool->bmap, ppm
157 ppm_get_entries(struct cxgbi_ppm *ppm, unsigned int count, unsigned long caller_data) argument
191 ppm_unmark_entries(struct cxgbi_ppm *ppm, int i, int count) argument
226 cxgbi_ppm_ppod_release(struct cxgbi_ppm *ppm, u32 idx) argument
246 cxgbi_ppm_ppods_reserve(struct cxgbi_ppm *ppm, unsigned short nr_pages, u32 per_tag_pg_idx, u32 *ppod_idx, u32 *ddp_tag, unsigned long caller_data) argument
292 cxgbi_ppm_make_ppod_hdr(struct cxgbi_ppm *ppm, u32 tag, unsigned int tid, unsigned int offset, unsigned int length, struct cxgbi_pagepod_hdr *hdr) argument
314 ppm_free(struct cxgbi_ppm *ppm) argument
321 struct cxgbi_ppm *ppm = container_of(kref, local
333 cxgbi_ppm_release(struct cxgbi_ppm *ppm) argument
394 struct cxgbi_ppm *ppm = (struct cxgbi_ppm *)(*ppm_pp); local
[all...]
H A Dlibcxgb_ppm.h120 /* per cpu ppm pool */
124 spinlock_t lock; /* ppm pool lock */
143 spinlock_t map_lock; /* ppm map lock */
197 static inline int cxgbi_ppm_is_ddp_tag(struct cxgbi_ppm *ppm, u32 tag) argument
199 return !(tag & ppm->tformat.no_ddp_mask);
202 static inline int cxgbi_ppm_sw_tag_is_usable(struct cxgbi_ppm *ppm, argument
209 static inline int cxgbi_ppm_make_non_ddp_tag(struct cxgbi_ppm *ppm, argument
213 struct cxgbi_tag_format *tformat = &ppm->tformat;
215 if (!cxgbi_ppm_sw_tag_is_usable(ppm, sw_tag)) {
232 static inline u32 cxgbi_ppm_decode_non_ddp_tag(struct cxgbi_ppm *ppm, argument
243 cxgbi_ppm_ddp_tag_get_idx(struct cxgbi_ppm *ppm, u32 ddp_tag) argument
259 cxgbi_ppm_get_tag_caller_data(struct cxgbi_ppm *ppm, u32 ddp_tag) argument
268 cxgbi_ppm_ddp_tag_update_sw_bits(struct cxgbi_ppm *ppm, u32 val, u32 orig_tag, u32 *final_tag) argument
[all...]
/linux-master/tools/testing/selftests/timers/
H A Dskew_consistency.c44 int ret, ppm; local
54 ppm = 500;
58 ppm = -ppm;
60 tx.freq = ppm << 16;
H A Dchange_skew.c36 int change_skew_test(int ppm) argument
42 tx.freq = ppm << 16;
63 int ppm[5] = {0, 250, 500, -250, -500}; local
79 printf("Using %i ppm adjustment\n", ppm[i]);
80 ret = change_skew_test(ppm[i]);
H A Draw_skew.c95 long long delta1, delta2, interval, eppm, ppm; local
126 /* calculate measured ppm between MONOTONIC and MONOTONIC_RAW */
132 ppm = (long long)(tx1.freq + tx2.freq) * 1000 / 2;
133 ppm = shift_right(ppm, 16);
134 printf(" %lld.%i(act)", ppm/1000, abs((int)(ppm%1000)));
136 if (llabs(eppm - ppm) > 1000) {
H A Dadjtick.c117 long long eppm, ppm; local
134 ppm = ((long long)tickval * MILLION)/systick - MILLION;
135 printf("Estimating tick (act: %ld usec, %lld ppm): ", tickval, ppm);
138 printf("%lld usec, %lld ppm", systick + (systick * eppm / MILLION), eppm);
151 * Here we use 100ppm difference as an error bound.
155 * with the adjustment, resulting in > 10ppm error during
156 * a 10% adjustment. 100ppm also gives us more breathing
159 if (llabs(eppm - ppm) > 100) {
/linux-master/drivers/clocksource/
H A 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);
80 pr_info("enabling scx200 high-res timer (%s MHz +%d ppm)\n", mhz27 ? "27":"1", ppm);
/linux-master/drivers/target/iscsi/cxgbit/
H A Dcxgbit_ddp.c64 cxgbit_ppod_init_idata(struct cxgbit_device *cdev, struct cxgbi_ppm *ppm, argument
69 unsigned int pm_addr = (idx << PPOD_SIZE_SHIFT) + ppm->llimit;
98 cxgbit_ppod_write_idata(struct cxgbi_ppm *ppm, struct cxgbit_sock *csk, argument
110 skb = cxgbit_ppod_init_idata(cdev, ppm, idx, npods, csk->tid);
127 cxgbit_ddp_set_map(struct cxgbi_ppm *ppm, struct cxgbit_sock *csk, argument
143 ret = cxgbit_ppod_write_idata(ppm, csk, ttinfo, pidx, cnt,
175 struct cxgbi_ppm *ppm = cdev2ppm(cdev); local
182 pr_debug("ppm 0x%p, pgidx %u, xfer %u, sgcnt %u, NO ddp.\n",
183 ppm, ppm
273 struct cxgbi_ppm *ppm = cdev2ppm(cdev); local
321 struct cxgbi_ppm *ppm = (struct cxgbi_ppm *)(*lldi->iscsi_ppm); local
[all...]
/linux-master/drivers/media/dvb-frontends/cxd2880/
H A Dcxd2880_tnrdmd_dvbt_mon.h64 *tnr_dmd, int *ppm);
69 int *ppm);
H A Dcxd2880_tnrdmd_dvbt2_mon.h104 *tnr_dmd, int *ppm);
109 int *ppm);
H A Dcxd2880_tnrdmd_dvbt_mon.c543 *tnr_dmd, int *ppm)
554 if (!tnr_dmd || !ppm)
648 *ppm = (num + (den / 2)) / den;
650 *ppm = (num - (den / 2)) / den;
657 *tnr_dmd, int *ppm)
659 if (!tnr_dmd || !ppm)
665 return cxd2880_tnrdmd_dvbt_mon_sampling_offset(tnr_dmd->diver_sub, ppm);
542 cxd2880_tnrdmd_dvbt_mon_sampling_offset(struct cxd2880_tnrdmd *tnr_dmd, int *ppm) argument
655 cxd2880_tnrdmd_dvbt_mon_sampling_offset_sub(struct cxd2880_tnrdmd *tnr_dmd, int *ppm) argument
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/pm/
H A Dgf117.c77 gf117_pm_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_pm **ppm) argument
79 return gf100_pm_new_(&gf117_pm, device, type, inst, ppm);
H A Dgf108.c63 gf108_pm_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_pm **ppm) argument
65 return gf100_pm_new_(&gf108_pm, device, type, inst, ppm);
H A Dnv40.c83 enum nvkm_subdev_type type, int inst, struct nvkm_pm **ppm)
90 *ppm = &pm->base;
120 nv40_pm_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_pm **ppm) argument
122 return nv40_pm_new_(nv40_pm, device, type, inst, ppm);
82 nv40_pm_new_(const struct nvkm_specdom *doms, struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_pm **ppm) argument
H A Dgk104.c181 gk104_pm_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_pm **ppm) argument
183 return gf100_pm_new_(&gk104_pm, device, type, inst, ppm);
H A Dgt215.c135 gt215_pm_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_pm **ppm) argument
137 return nv40_pm_new_(gt215_pm, device, type, inst, ppm);
H A Dgt200.c154 gt200_pm_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_pm **ppm) argument
156 return nv40_pm_new_(gt200_pm, device, type, inst, ppm);
H A Dnv50.c172 nv50_pm_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_pm **ppm) argument
174 return nv40_pm_new_(nv50_pm, device, type, inst, ppm);
H A Dg84.c162 g84_pm_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_pm **ppm) argument
164 return nv40_pm_new_(g84_pm, device, type, inst, ppm);
H A Dgf100.c190 enum nvkm_subdev_type type, int inst, struct nvkm_pm **ppm)
196 if (!(pm = *ppm = kzalloc(sizeof(*pm), GFP_KERNEL)))
240 gf100_pm_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_pm **ppm) argument
242 return gf100_pm_new_(&gf100_pm, device, type, inst, ppm);
189 gf100_pm_new_(const struct gf100_pm_func *func, struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_pm **ppm) argument
/linux-master/drivers/video/logo/
H A DMakefile30 $(obj)/%.c: $(src)/%.ppm $(obj)/pnmtologo FORCE
/linux-master/include/linux/
H A Dptp_clock_kernel.h229 * scaled_ppm_to_ppb() - convert scaled ppm to ppb
231 * @ppm: Parts per million, but with a 16 bit binary fractional field
233 static inline long scaled_ppm_to_ppb(long ppm) argument
247 s64 ppb = 1 + ppm;
255 * diff_by_scaled_ppm - Calculate difference using scaled ppm
/linux-master/drivers/media/dvb-frontends/
H A Dl64781.c118 static const u32 ppm = 8000; local
120 /* u32 ddfs_offset_variable = 0x6000-((1000000UL+ppm)/ */
179 ddfs_offset_fixed = 0x4000-(ppm<<16)/bw/1000000;
181 /* This works up to 20000 ppm, it overflows if too large ppm! */
182 init_freq = (((8UL<<25) + (8UL<<19) / 25*ppm / (15625/25)) /
186 /* will work for high ppm only... */
194 spi_bias /= 1000 + ppm/1000;
455 /* With ppm=8000, it seems the DTR_SENSITIVITY will result in
/linux-master/drivers/gpu/drm/amd/pm/legacy-dpm/
H A Dlegacy_dpm.c528 ATOM_PPLIB_PPM_Table *ppm = (ATOM_PPLIB_PPM_Table *) local
535 adev->pm.dpm.dyn_state.ppm_table->ppm_design = ppm->ucPpmDesign;
537 le16_to_cpu(ppm->usCpuCoreNumber);
539 le32_to_cpu(ppm->ulPlatformTDP);
541 le32_to_cpu(ppm->ulSmallACPlatformTDP);
543 le32_to_cpu(ppm->ulPlatformTDC);
545 le32_to_cpu(ppm->ulSmallACPlatformTDC);
547 le32_to_cpu(ppm->ulApuTDP);
549 le32_to_cpu(ppm->ulDGpuTDP);
551 le32_to_cpu(ppm
[all...]
/linux-master/drivers/scsi/cxgbi/
H A Dlibcxgbi.c1224 struct cxgbi_ppm *ppm = (struct cxgbi_ppm *)(*ppm_pp); local
1226 if (ppm->ppmax < 1024 ||
1227 ppm->tformat.pgsz_idx_dflt >= DDP_PGIDX_MAX)
1266 struct cxgbi_ppm *ppm = cdev->cdev2ppm(cdev); local
1279 if (!ppm || xferlen < DDP_THRESHOLD || !sgcnt ||
1280 ppm->tformat.pgsz_idx_dflt >= DDP_PGIDX_MAX) {
1282 "ppm 0x%p, pgidx %u, xfer %u, sgcnt %u, NO ddp.\n",
1283 ppm, ppm ? ppm
1357 struct cxgbi_ppm *ppm = cdev->cdev2ppm(cdev); local
1390 struct cxgbi_ppm *ppm = cdev->cdev2ppm(cdev); local
1430 struct cxgbi_ppm *ppm = cdev->cdev2ppm(cdev); local
2402 struct cxgbi_ppm *ppm = csk->cdev->cdev2ppm(csk->cdev); local
2675 struct cxgbi_ppm *ppm; local
[all...]

Completed in 209 milliseconds

12