/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/libcxgb/ |
H A D | libcxgb_ppm.c | 65 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 in ppm_get_cpu_entries() 157 ppm_get_entries(struct cxgbi_ppm *ppm, unsigned int count, unsigned long caller_data) ppm_get_entries() argument 191 ppm_unmark_entries(struct cxgbi_ppm *ppm, int i, int count) ppm_unmark_entries() argument 226 cxgbi_ppm_ppod_release(struct cxgbi_ppm *ppm, u32 idx) cxgbi_ppm_ppod_release() 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) cxgbi_ppm_ppods_reserve() 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) cxgbi_ppm_make_ppod_hdr() argument 314 ppm_free(struct cxgbi_ppm *ppm) ppm_free() argument 321 struct cxgbi_ppm *ppm = container_of(kref, ppm_destroy() local 333 cxgbi_ppm_release(struct cxgbi_ppm *ppm) cxgbi_ppm_release() argument 394 struct cxgbi_ppm *ppm = (struct cxgbi_ppm *)(*ppm_pp); cxgbi_ppm_init() local [all...] |
H A D | libcxgb_ppm.h | 120 /* 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 243 cxgbi_ppm_ddp_tag_get_idx(struct cxgbi_ppm *ppm, u32 ddp_tag) cxgbi_ppm_ddp_tag_get_idx() argument 259 cxgbi_ppm_get_tag_caller_data(struct cxgbi_ppm *ppm, u32 ddp_tag) cxgbi_ppm_get_tag_caller_data() argument 268 cxgbi_ppm_ddp_tag_update_sw_bits(struct cxgbi_ppm *ppm, u32 val, u32 orig_tag, u32 *final_tag) cxgbi_ppm_ddp_tag_update_sw_bits() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/libcxgb/ |
H A D | libcxgb_ppm.c | 65 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 in ppm_get_cpu_entries() 157 ppm_get_entries(struct cxgbi_ppm *ppm, unsigned int count, unsigned long caller_data) ppm_get_entries() argument 191 ppm_unmark_entries(struct cxgbi_ppm *ppm, int i, int count) ppm_unmark_entries() argument 226 cxgbi_ppm_ppod_release(struct cxgbi_ppm *ppm, u32 idx) cxgbi_ppm_ppod_release() 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) cxgbi_ppm_ppods_reserve() 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) cxgbi_ppm_make_ppod_hdr() argument 314 ppm_free(struct cxgbi_ppm *ppm) ppm_free() argument 321 struct cxgbi_ppm *ppm = container_of(kref, ppm_destroy() local 333 cxgbi_ppm_release(struct cxgbi_ppm *ppm) cxgbi_ppm_release() argument 394 struct cxgbi_ppm *ppm = (struct cxgbi_ppm *)(*ppm_pp); cxgbi_ppm_init() local [all...] |
H A D | libcxgb_ppm.h | 120 /* 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 243 cxgbi_ppm_ddp_tag_get_idx(struct cxgbi_ppm *ppm, u32 ddp_tag) cxgbi_ppm_ddp_tag_get_idx() argument 259 cxgbi_ppm_get_tag_caller_data(struct cxgbi_ppm *ppm, u32 ddp_tag) cxgbi_ppm_get_tag_caller_data() argument 268 cxgbi_ppm_ddp_tag_update_sw_bits(struct cxgbi_ppm *ppm, u32 val, u32 orig_tag, u32 *final_tag) cxgbi_ppm_ddp_tag_update_sw_bits() argument [all...] |
/kernel/linux/linux-5.10/drivers/target/iscsi/cxgbit/ |
H A D | cxgbit_ddp.c | 64 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 in cxgbit_ddp_reserve() 273 struct cxgbi_ppm *ppm = cdev2ppm(cdev); cxgbit_unmap_cmd() local 321 struct cxgbi_ppm *ppm = (struct cxgbi_ppm *)(*lldi->iscsi_ppm); cxgbit_ddp_init() local [all...] |
/kernel/linux/linux-6.6/drivers/target/iscsi/cxgbit/ |
H A D | cxgbit_ddp.c | 64 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 in cxgbit_ddp_reserve() 273 struct cxgbi_ppm *ppm = cdev2ppm(cdev); cxgbit_unmap_cmd() local 321 struct cxgbi_ppm *ppm = (struct cxgbi_ppm *)(*lldi->iscsi_ppm); cxgbit_ddp_init() local [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/timers/ |
H A D | raw_skew.c | 95 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 D | skew_consistency.c | 44 int ret, ppm; in main() local 54 ppm = 500; in main() 58 ppm = -ppm; in main() 60 tx.freq = ppm << 16; in main()
|
H A D | change_skew.c | 36 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 D | adjtick.c | 117 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()
|
/kernel/linux/linux-6.6/tools/testing/selftests/timers/ |
H A D | change_skew.c | 36 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 D | skew_consistency.c | 44 int ret, ppm; in main() local 54 ppm = 500; in main() 58 ppm = -ppm; in main() 60 tx.freq = ppm << 16; in main()
|
H A D | raw_skew.c | 95 long long delta1, delta2, interval, eppm, ppm; in main() local 126 /* calculate measured ppm between MONOTONIC and MONOTONIC_RAW */ in main() 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()
|
H A D | adjtick.c | 117 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()
|
/kernel/linux/linux-5.10/drivers/clocksource/ |
H A D | scx200_hrt.c | 27 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()
|
/kernel/linux/linux-6.6/drivers/clocksource/ |
H A D | scx200_hrt.c | 27 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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/pm/ |
H A D | nv40.c | 83 int index, struct nvkm_pm **ppm) in nv40_pm_new_() 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() 82 nv40_pm_new_(const struct nvkm_specdom *doms, struct nvkm_device *device, int index, struct nvkm_pm **ppm) nv40_pm_new_() argument
|
H A D | gf108.c | 63 gf108_pm_new(struct nvkm_device *device, int index, struct nvkm_pm **ppm) in gf108_pm_new() argument 65 return gf100_pm_new_(&gf108_pm, device, index, ppm); in gf108_pm_new()
|
H A D | gf117.c | 77 gf117_pm_new(struct nvkm_device *device, int index, struct nvkm_pm **ppm) in gf117_pm_new() argument 79 return gf100_pm_new_(&gf117_pm, device, index, ppm); in gf117_pm_new()
|
H A D | gf100.c | 190 int index, struct nvkm_pm **ppm) in gf100_pm_new_() 196 if (!(pm = *ppm = kzalloc(sizeof(*pm), GFP_KERNEL))) in gf100_pm_new_() 240 gf100_pm_new(struct nvkm_device *device, int index, struct nvkm_pm **ppm) in gf100_pm_new() argument 242 return gf100_pm_new_(&gf100_pm, device, index, ppm); in gf100_pm_new() 189 gf100_pm_new_(const struct gf100_pm_func *func, struct nvkm_device *device, int index, struct nvkm_pm **ppm) gf100_pm_new_() argument
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/pm/ |
H A D | nv40.c | 83 enum nvkm_subdev_type type, int inst, struct nvkm_pm **ppm) in nv40_pm_new_() 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() 82 nv40_pm_new_(const struct nvkm_specdom *doms, struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_pm **ppm) nv40_pm_new_() argument
|
H A D | gf108.c | 63 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()
|
H A D | gf117.c | 77 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()
|
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/cxd2880/ |
H A D | cxd2880_tnrdmd_dvbt_mon.h | 64 *tnr_dmd, int *ppm); 69 int *ppm);
|
/kernel/linux/linux-6.6/drivers/media/dvb-frontends/cxd2880/ |
H A D | cxd2880_tnrdmd_dvbt_mon.h | 64 *tnr_dmd, int *ppm); 69 int *ppm);
|