Home
last modified time | relevance | path

Searched full:ppm (Results 1 – 25 of 215) sorted by relevance

123456789

/OK3568_Linux_fs/kernel/drivers/net/ethernet/chelsio/libcxgb/
H A 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()
73 pr_debug("%s: %s ppm, pgsz %lu -> idx %d.\n", 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()
[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) 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
[all …]
/OK3568_Linux_fs/kernel/drivers/target/iscsi/cxgbit/
H A 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
182 pr_debug("ppm 0x%p, pgidx %u, xfer %u, sgcnt %u, NO ddp.\n", in cxgbit_ddp_reserve()
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()
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/timers/
H A Draw_skew.c95 long long delta1, delta2, interval, eppm, ppm; in main() local
126 /* calculate measured ppm between MONOTONIC and MONOTONIC_RAW */ in main()
132 ppm = (tx1.freq + tx2.freq) * 1000 / 2; in main()
133 ppm = (long long)tx1.freq * 1000; in main()
134 ppm = shift_right(ppm, 16); in main()
135 printf(" %lld.%i(act)", ppm/1000, abs((int)(ppm%1000))); in main()
137 if (llabs(eppm - ppm) > 1000) { in main()
H A 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()
138 printf("%lld usec, %lld ppm", systick + (systick * eppm / MILLION), eppm); in check_tick_adj()
151 * Here we use 100ppm difference as an error bound. in check_tick_adj()
155 * with the adjustment, resulting in > 10ppm error during in check_tick_adj()
156 * a 10% adjustment. 100ppm also gives us more breathing in check_tick_adj()
159 if (llabs(eppm - ppm) > 100) { in check_tick_adj()
H A 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()
H A 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()
/OK3568_Linux_fs/kernel/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); 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()
/OK3568_Linux_fs/kernel/drivers/scsi/isci/
H A Dprobe_roms.h234 * NOTE: Max spread for SATA is +0 / -5000 PPM.
237 * SATA SSC Tx at +0 / -1419 PPM Spread = 0x2
238 * SATA SSC Tx at +0 / -2129 PPM Spread = 0x3
239 * SATA SSC Tx at +0 / -4257 PPM Spread = 0x6
240 * SATA SSC Tx at +0 / -4967 PPM Spread = 0x7
247 * -2300 PPM
249 * SAS SSC Tx at +0 / -1419 PPM Spread = 0x2
250 * SAS SSC Tx at +0 / -2129 PPM Spread = 0x3
253 * -2300 PPM
255 * SAS SSC Tx at +1064 / -1064 PPM Spread = 0x3
[all …]
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-kernel/linux/
H A Dlinux.inc20 # To use this, add file://${LOGO_SIZE}/logo_linux_clut224.ppm.bz2 or similar
42 # logo support, if you supply logo_linux_clut224.ppm in SRC_URI, then it's going to be used
44 if [ -e ${WORKDIR}/logo_linux_clut224.ppm ]; then
45 install -m 0644 ${WORKDIR}/logo_linux_clut224.ppm drivers/video/logo/logo_linux_clut224.ppm
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dtimex.h68 __kernel_long_t freq; /* frequency offset (scaled ppm) */
74 __kernel_long_t tolerance;/* clock frequency tolerance (ppm)
80 __kernel_long_t ppsfreq;/* pps frequency (scaled ppm) (ro) */
83 __kernel_long_t stabil; /* pps stability (scaled ppm) (ro) */
106 long long freq; /* frequency offset (scaled ppm) */
113 long long tolerance;/* clock frequency tolerance (ppm)
119 long long ppsfreq;/* pps frequency (scaled ppm) (ro) */
123 long long stabil; /* pps stability (scaled ppm) (ro) */
/OK3568_Linux_fs/kernel/drivers/usb/typec/ucsi/
H A Ducsi.h46 * Command Completion Event from the PPM before returning, and @async_write must
47 * return immediately after sending the data to the PPM.
146 /* Error information returned by PPM in response to GET_ERROR_STATUS command. */
167 /* Data structure filled by PPM in response to GET_CAPABILITY command. */
195 /* Data structure filled by PPM in response to GET_CONNECTOR_CAPABILITY cmd. */
216 /* Data structure filled by PPM in response to GET_CABLE_PROPERTY command. */
233 /* Data structure filled by PPM in response to GET_CONNECTOR_STATUS command. */
296 /* PPM Communication lock */
302 /* PPM communication flags */
H A Ducsi.c21 * UCSI_TIMEOUT_MS - PPM communication timeout
26 * before it is actually passed to the PPM.
34 * if the PPM does not generate Connector Change events before that with
108 dev_warn(ucsi->dev, "PPM Policy conflict\n"); in ucsi_read_error()
687 * modes, we run the GET_CAM_SUPPORTED command to ensure the PPM does in ucsi_handle_connector_change()
698 * 6. If PPM reported a new change, then restart in order to ACK in ucsi_handle_connector_change()
765 /* 6. If PPM reported a new change, then restart in order to ACK */ in ucsi_handle_connector_change()
902 /* If the PPM is still doing something else, reset it again. */ in ucsi_reset_ppm()
927 /* PPM most likely stopped responding. Resetting everything. */ in ucsi_role_cmd()
1210 /* Reset the PPM */ in ucsi_init()
[all …]
/OK3568_Linux_fs/kernel/sound/soc/rockchip/
H A Drockchip_i2s.c466 int ppm) in rockchip_i2s_clk_set_rate() argument
471 if (ppm == i2s->clk_ppm) in rockchip_i2s_clk_set_rate()
474 ret = rockchip_pll_clk_compensation(clk, ppm); in rockchip_i2s_clk_set_rate()
478 delta = (ppm < 0) ? -1 : 1; in rockchip_i2s_clk_set_rate()
479 delta *= (int)div64_u64((uint64_t)rate * (uint64_t)abs(ppm) + 500000, 1000000); in rockchip_i2s_clk_set_rate()
491 i2s->clk_ppm = ppm; in rockchip_i2s_clk_set_rate()
501 uint64_t ppm; in rockchip_i2s_set_sysclk() local
515 ppm = div64_u64((uint64_t)delta * 1000000, (uint64_t)root_rate); in rockchip_i2s_set_sysclk()
517 if (ppm) { in rockchip_i2s_set_sysclk()
566 int ppm = ucontrol->value.integer.value[0]; in rockchip_i2s_clk_compensation_put() local
[all …]
H A Drockchip_pdm.c33 #define PDM_CLK_SHIFT_PPM_MAX (1000000) /* 1 ppm */
250 int ppm) in rockchip_pdm_clk_set_rate() argument
255 if (ppm == pdm->clk_ppm) in rockchip_pdm_clk_set_rate()
258 ret = rockchip_pll_clk_compensation(clk, ppm); in rockchip_pdm_clk_set_rate()
262 delta = (ppm < 0) ? -1 : 1; in rockchip_pdm_clk_set_rate()
263 delta *= (int)div64_u64((uint64_t)rate * (uint64_t)abs(ppm) + 500000, 1000000); in rockchip_pdm_clk_set_rate()
275 pdm->clk_ppm = ppm; in rockchip_pdm_clk_set_rate()
287 uint64_t ppm; in rockchip_pdm_set_samplerate() local
309 ppm = div64_u64((uint64_t)delta * 1000000, (uint64_t)rate); in rockchip_pdm_set_samplerate()
311 if (ppm) { in rockchip_pdm_set_samplerate()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/dvb-frontends/
H A Dl64781.c118 static const u32 ppm = 8000; in apply_frontend_param() local
120 /* u32 ddfs_offset_variable = 0x6000-((1000000UL+ppm)/ */ in apply_frontend_param()
179 ddfs_offset_fixed = 0x4000-(ppm<<16)/bw/1000000; in apply_frontend_param()
181 /* This works up to 20000 ppm, it overflows if too large ppm! */ in apply_frontend_param()
182 init_freq = (((8UL<<25) + (8UL<<19) / 25*ppm / (15625/25)) / in apply_frontend_param()
186 /* will work for high ppm only... */ in apply_frontend_param()
194 spi_bias /= 1000 + ppm/1000; in apply_frontend_param()
455 /* With ppm=8000, it seems the DTR_SENSITIVITY will result in in l64781_init()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/engine/pm/
H A Dnv40.c83 int index, 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, int index, struct nvkm_pm **ppm) in nv40_pm_new() argument
122 return nv40_pm_new_(nv40_pm, device, index, ppm); in nv40_pm_new()
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/bits/
H A Dtimex.h30 __syscall_slong_t freq; /* frequency offset (scaled ppm) */
36 __syscall_slong_t tolerance; /* clock frequency tolerance (ppm) (ro) */
39 __syscall_slong_t ppsfreq; /* pps frequency (scaled ppm) (ro) */
42 __syscall_slong_t stabil; /* pps stability (scaled ppm) (ro) */
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/bits/
H A Dtimex.h30 __syscall_slong_t freq; /* frequency offset (scaled ppm) */
36 __syscall_slong_t tolerance; /* clock frequency tolerance (ppm) (ro) */
39 __syscall_slong_t ppsfreq; /* pps frequency (scaled ppm) (ro) */
42 __syscall_slong_t stabil; /* pps stability (scaled ppm) (ro) */
/OK3568_Linux_fs/kernel/drivers/usb/gadget/function/
H A Du_audio.c1285 snprintf(str, sizeof(str), "PPM=%d", audio->params.ppm); in g_audio_work()
1307 int32_t ppm; in ppm_calculate_work() local
1317 dev_warn(g_audio->device, "PPM work scheduled too slow!\n"); in ppm_calculate_work()
1363 * According to the definition of ppm: in ppm_calculate_work()
1364 * host_clk = (1 + ppm / 1000000) * gadget_clk in ppm_calculate_work()
1366 * ppm = (host_clk - gadget_clk) * 1000000 / gadget_clk in ppm_calculate_work()
1368 ppm = (fn_msec > clk_msec) ? in ppm_calculate_work()
1372 ppm_sum = ppm_sum - ppms[cnt] + ppm; in ppm_calculate_work()
1373 ppms[cnt] = ppm; in ppm_calculate_work()
1377 fn_msec, clk_msec, ppm, CLK_PPM_GROUP_SIZE, in ppm_calculate_work()
[all …]
/OK3568_Linux_fs/kernel/drivers/scsi/cxgbi/
H A 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()
1282 "ppm 0x%p, pgidx %u, xfer %u, sgcnt %u, NO ddp.\n", in cxgbi_ddp_reserve()
1283 ppm, ppm ? ppm->tformat.pgsz_idx_dflt : DDP_PGIDX_MAX, in cxgbi_ddp_reserve()
1297 * the itt genrated by libiscsi is saved in the ppm and can be in cxgbi_ddp_reserve()
1300 err = cxgbi_ppm_ppods_reserve(ppm, ttinfo->nr_pages, 0, &ttinfo->idx, in cxgbi_ddp_reserve()
[all …]
/OK3568_Linux_fs/kernel/include/linux/clk/
H A Drockchip.h10 int rockchip_pll_clk_compensation(struct clk *clk, int ppm);
12 static inline int rockchip_pll_clk_compensation(struct clk *clk, int ppm) in rockchip_pll_clk_compensation() argument
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/
H A Dtimex.h67 __kernel_long_t freq; /* frequency offset (scaled ppm) */
73 __kernel_long_t tolerance;/* clock frequency tolerance (ppm)
79 __kernel_long_t ppsfreq;/* pps frequency (scaled ppm) (ro) */
82 __kernel_long_t stabil; /* pps stability (scaled ppm) (ro) */
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Dtimex.h67 __kernel_long_t freq; /* frequency offset (scaled ppm) */
73 __kernel_long_t tolerance;/* clock frequency tolerance (ppm)
79 __kernel_long_t ppsfreq;/* pps frequency (scaled ppm) (ro) */
82 __kernel_long_t stabil; /* pps stability (scaled ppm) (ro) */
/OK3568_Linux_fs/kernel/drivers/media/dvb-frontends/cxd2880/
H A 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()

123456789