Home
last modified time | relevance | path

Searched refs:phc (Results 1 – 25 of 538) sorted by relevance

12345678910>>...22

/dports/net-mgmt/collectd5/collectd-5.12.0/src/utils/dpdk/
H A Ddpdk.c108 if (phc == NULL) in dpdk_helper_config_default()
120 if (phc == NULL) { in dpdk_helper_eal_config_set()
132 memcpy(&phc->eal_config, ec, sizeof(phc->eal_config)); in dpdk_helper_eal_config_set()
274 if (phc) in dpdk_helper_priv_get()
332 sstrncpy(phc->shm_name, name, sizeof(phc->shm_name)); in dpdk_helper_init()
336 *pphc = phc; in dpdk_helper_init()
342 if (phc == NULL) in dpdk_helper_shutdown()
355 dpdk_shm_cleanup(phc->shm_name, phc->shm_size, (void *)phc); in dpdk_helper_shutdown()
618 phc->cmd_result = dpdk_helper_command_handler(phc, phc->cmd); in dpdk_helper_worker()
752 phc->cmd = cmd; in dpdk_helper_command()
[all …]
H A Ddpdk.h69 void dpdk_helper_shutdown(dpdk_helper_ctx_t *phc);
70 int dpdk_helper_eal_config_parse(dpdk_helper_ctx_t *phc, oconfig_item_t *ci);
71 int dpdk_helper_eal_config_set(dpdk_helper_ctx_t *phc, dpdk_eal_config_t *ec);
72 int dpdk_helper_eal_config_get(dpdk_helper_ctx_t *phc, dpdk_eal_config_t *ec);
73 int dpdk_helper_command(dpdk_helper_ctx_t *phc, enum DPDK_CMD cmd, int *result,
75 void *dpdk_helper_priv_get(dpdk_helper_ctx_t *phc);
76 int dpdk_helper_data_size_get(dpdk_helper_ctx_t *phc);
81 int dpdk_helper_command_handler(dpdk_helper_ctx_t *phc, enum DPDK_CMD cmd);
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/net/ethernet/pensando/ionic/
H A Dionic_phc.c79 if (!lif->phc || !lif->phc->ptp) in ionic_lif_hwstamp_set_ts_config()
95 memset(&lif->phc->ts_config, 0, sizeof(lif->phc->ts_config)); in ionic_lif_hwstamp_set_ts_config()
221 if (!lif->phc || !lif->phc->ptp) in ionic_lif_hwstamp_get()
364 timecounter_init(&phc->tc, &phc->cc, ns); in ionic_phc_settime64()
480 if (!lif->phc || !lif->phc->ptp) in ionic_lif_unregister_phc()
504 phc = devm_kzalloc(ionic->dev, sizeof(*phc), GFP_KERNEL); in ionic_lif_alloc_phc()
505 if (!phc) in ionic_lif_alloc_phc()
525 phc->cc.mask, phc->cc.mult, phc->cc.shift); in ionic_lif_alloc_phc()
582 phc->cc.mask, phc->cc.mult, phc->cc.shift); in ionic_lif_alloc_phc()
585 phc->init_cc_mult = phc->cc.mult; in ionic_lif_alloc_phc()
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/net/ethernet/pensando/ionic/
H A Dionic_phc.c79 if (!lif->phc || !lif->phc->ptp) in ionic_lif_hwstamp_set_ts_config()
95 memset(&lif->phc->ts_config, 0, sizeof(lif->phc->ts_config)); in ionic_lif_hwstamp_set_ts_config()
221 if (!lif->phc || !lif->phc->ptp) in ionic_lif_hwstamp_get()
364 timecounter_init(&phc->tc, &phc->cc, ns); in ionic_phc_settime64()
480 if (!lif->phc || !lif->phc->ptp) in ionic_lif_unregister_phc()
504 phc = devm_kzalloc(ionic->dev, sizeof(*phc), GFP_KERNEL); in ionic_lif_alloc_phc()
505 if (!phc) in ionic_lif_alloc_phc()
525 phc->cc.mask, phc->cc.mult, phc->cc.shift); in ionic_lif_alloc_phc()
582 phc->cc.mask, phc->cc.mult, phc->cc.shift); in ionic_lif_alloc_phc()
585 phc->init_cc_mult = phc->cc.mult; in ionic_lif_alloc_phc()
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/net/ethernet/pensando/ionic/
H A Dionic_phc.c79 if (!lif->phc || !lif->phc->ptp) in ionic_lif_hwstamp_set_ts_config()
95 memset(&lif->phc->ts_config, 0, sizeof(lif->phc->ts_config)); in ionic_lif_hwstamp_set_ts_config()
221 if (!lif->phc || !lif->phc->ptp) in ionic_lif_hwstamp_get()
364 timecounter_init(&phc->tc, &phc->cc, ns); in ionic_phc_settime64()
480 if (!lif->phc || !lif->phc->ptp) in ionic_lif_unregister_phc()
504 phc = devm_kzalloc(ionic->dev, sizeof(*phc), GFP_KERNEL); in ionic_lif_alloc_phc()
505 if (!phc) in ionic_lif_alloc_phc()
525 phc->cc.mask, phc->cc.mult, phc->cc.shift); in ionic_lif_alloc_phc()
582 phc->cc.mask, phc->cc.mult, phc->cc.shift); in ionic_lif_alloc_phc()
585 phc->init_cc_mult = phc->cc.mult; in ionic_lif_alloc_phc()
[all …]
/dports/net/chrony-lite/chrony-4.2/
H A Drefclock_phc.c73 phc->fd = phc_fd; in phc_initialise()
74 phc->mode = 0; in phc_initialise()
78 if (phc->extpps) { in phc_initialise()
86 if (!SYS_Linux_SetPHCExtTimestamping(phc->fd, phc->pin, phc->channel, in phc_initialise()
92 phc->pin = phc->channel = 0; in phc_initialise()
93 phc->clock = NULL; in phc_initialise()
106 if (phc->extpps) { in phc_finalise()
108 SYS_Linux_SetPHCExtTimestamping(phc->fd, phc->pin, phc->channel, 0, 0, 0); in phc_finalise()
112 close(phc->fd); in phc_finalise()
113 Free(phc); in phc_finalise()
[all …]
/dports/net/chrony/chrony-4.2/
H A Drefclock_phc.c73 phc->fd = phc_fd; in phc_initialise()
74 phc->mode = 0; in phc_initialise()
78 if (phc->extpps) { in phc_initialise()
86 if (!SYS_Linux_SetPHCExtTimestamping(phc->fd, phc->pin, phc->channel, in phc_initialise()
92 phc->pin = phc->channel = 0; in phc_initialise()
93 phc->clock = NULL; in phc_initialise()
106 if (phc->extpps) { in phc_finalise()
108 SYS_Linux_SetPHCExtTimestamping(phc->fd, phc->pin, phc->channel, 0, 0, 0); in phc_finalise()
112 close(phc->fd); in phc_finalise()
113 Free(phc); in phc_finalise()
[all …]
/dports/www/firefox-esr/firefox-91.8.0/memory/replace/phc/test/gtest/
H A DTestPHC.cpp15 bool PHCInfoEq(phc::AddrInfo& aInfo, phc::AddrInfo::Kind aKind, void* aBaseAddr, in PHCInfoEq()
124 phc::AddrInfo phcInfo; in TEST()
128 ASSERT_TRUE(PHCInfoEq(phcInfo, phc::AddrInfo::Kind::Unknown, nullptr, 0ul, in TEST()
133 ASSERT_TRUE(PHCInfoEq(phcInfo, phc::AddrInfo::Kind::Unknown, nullptr, 0, in TEST()
136 ASSERT_TRUE(PHCInfoEq(phcInfo, phc::AddrInfo::Kind::Unknown, nullptr, 0, in TEST()
147 PHCInfoEq(phcInfo, phc::AddrInfo::Kind::InUsePage, p, 32ul, true, false)); in TEST()
154 PHCInfoEq(phcInfo, phc::AddrInfo::Kind::InUsePage, p, 32ul, true, false)); in TEST()
162 PHCInfoEq(phcInfo, phc::AddrInfo::Kind::InUsePage, p, 32ul, true, false)); in TEST()
210 PHCInfoEq(phcInfo, phc::AddrInfo::Kind::FreedPage, p, 32ul, true, true)); in TEST()
217 PHCInfoEq(phcInfo, phc::AddrInfo::Kind::FreedPage, p, 32ul, true, true)); in TEST()
[all …]
/dports/www/firefox/firefox-99.0/memory/replace/phc/test/gtest/
H A DTestPHC.cpp15 bool PHCInfoEq(phc::AddrInfo& aInfo, phc::AddrInfo::Kind aKind, void* aBaseAddr, in PHCInfoEq()
124 phc::AddrInfo phcInfo; in TEST()
128 ASSERT_TRUE(PHCInfoEq(phcInfo, phc::AddrInfo::Kind::Unknown, nullptr, 0ul, in TEST()
133 ASSERT_TRUE(PHCInfoEq(phcInfo, phc::AddrInfo::Kind::Unknown, nullptr, 0, in TEST()
136 ASSERT_TRUE(PHCInfoEq(phcInfo, phc::AddrInfo::Kind::Unknown, nullptr, 0, in TEST()
147 PHCInfoEq(phcInfo, phc::AddrInfo::Kind::InUsePage, p, 32ul, true, false)); in TEST()
154 PHCInfoEq(phcInfo, phc::AddrInfo::Kind::InUsePage, p, 32ul, true, false)); in TEST()
162 PHCInfoEq(phcInfo, phc::AddrInfo::Kind::InUsePage, p, 32ul, true, false)); in TEST()
210 PHCInfoEq(phcInfo, phc::AddrInfo::Kind::FreedPage, p, 32ul, true, true)); in TEST()
217 PHCInfoEq(phcInfo, phc::AddrInfo::Kind::FreedPage, p, 32ul, true, true)); in TEST()
[all …]
/dports/mail/thunderbird/thunderbird-91.8.0/memory/replace/phc/test/gtest/
H A DTestPHC.cpp15 bool PHCInfoEq(phc::AddrInfo& aInfo, phc::AddrInfo::Kind aKind, void* aBaseAddr, in PHCInfoEq()
124 phc::AddrInfo phcInfo; in TEST()
128 ASSERT_TRUE(PHCInfoEq(phcInfo, phc::AddrInfo::Kind::Unknown, nullptr, 0ul, in TEST()
133 ASSERT_TRUE(PHCInfoEq(phcInfo, phc::AddrInfo::Kind::Unknown, nullptr, 0, in TEST()
136 ASSERT_TRUE(PHCInfoEq(phcInfo, phc::AddrInfo::Kind::Unknown, nullptr, 0, in TEST()
147 PHCInfoEq(phcInfo, phc::AddrInfo::Kind::InUsePage, p, 32ul, true, false)); in TEST()
154 PHCInfoEq(phcInfo, phc::AddrInfo::Kind::InUsePage, p, 32ul, true, false)); in TEST()
162 PHCInfoEq(phcInfo, phc::AddrInfo::Kind::InUsePage, p, 32ul, true, false)); in TEST()
210 PHCInfoEq(phcInfo, phc::AddrInfo::Kind::FreedPage, p, 32ul, true, true)); in TEST()
217 PHCInfoEq(phcInfo, phc::AddrInfo::Kind::FreedPage, p, 32ul, true, true)); in TEST()
[all …]
/dports/lang/spidermonkey78/firefox-78.9.0/memory/replace/phc/test/gtest/
H A DTestPHC.cpp15 bool PHCInfoEq(phc::AddrInfo& aInfo, phc::AddrInfo::Kind aKind, void* aBaseAddr, in PHCInfoEq()
124 phc::AddrInfo phcInfo; in TEST()
128 ASSERT_TRUE(PHCInfoEq(phcInfo, phc::AddrInfo::Kind::Unknown, nullptr, 0ul, in TEST()
133 ASSERT_TRUE(PHCInfoEq(phcInfo, phc::AddrInfo::Kind::Unknown, nullptr, 0, in TEST()
136 ASSERT_TRUE(PHCInfoEq(phcInfo, phc::AddrInfo::Kind::Unknown, nullptr, 0, in TEST()
147 PHCInfoEq(phcInfo, phc::AddrInfo::Kind::InUsePage, p, 32ul, true, false)); in TEST()
154 PHCInfoEq(phcInfo, phc::AddrInfo::Kind::InUsePage, p, 32ul, true, false)); in TEST()
162 PHCInfoEq(phcInfo, phc::AddrInfo::Kind::InUsePage, p, 32ul, true, false)); in TEST()
210 PHCInfoEq(phcInfo, phc::AddrInfo::Kind::FreedPage, p, 32ul, true, true)); in TEST()
217 PHCInfoEq(phcInfo, phc::AddrInfo::Kind::FreedPage, p, 32ul, true, true)); in TEST()
[all …]
/dports/devel/arm-none-eabi-newlib/newlib-2.4.0/newlib/libc/sys/linux/linuxthreads/
H A Dtd_ta_thr_iter.c80 struct pthread_handle_struct *phc; in td_ta_thr_iter() local
96 phc = (struct pthread_handle_struct *) alloca (sizeof (phc[0]) in td_ta_thr_iter()
100 if (ps_pdread (ta->ph, ta->handles, phc, in td_ta_thr_iter()
106 phc[0].h_descr); in td_ta_thr_iter()
110 phc[1].h_descr); in td_ta_thr_iter()
115 if (ps_pdread (ta->ph, ta->handles + 2, &phc[2], in td_ta_thr_iter()
128 if (phc[cnt].h_descr != NULL) in td_ta_thr_iter()
136 phc[cnt].h_descr); in td_ta_thr_iter()
H A Dtd_thr_validate.c36 struct pthread_handle_struct phc; in td_thr_validate() local
38 if (ps_pdread (th->th_ta_p->ph, handles, &phc, in td_thr_validate()
42 if (phc.h_descr != NULL && phc.h_descr == th->th_unique) in td_thr_validate()
46 if (ps_pdread (th->th_ta_p->ph, phc.h_descr, &pds, in td_thr_validate()
H A Dtd_ta_map_id2thr.c27 struct pthread_handle_struct phc; in td_ta_map_id2thr() local
41 if (ps_pdread (ta->ph, ta->handles + pt % pthread_threads_max, &phc, in td_ta_map_id2thr()
46 if (phc.h_descr == NULL) in td_ta_map_id2thr()
51 if (ps_pdread (ta->ph, phc.h_descr, &pds, in td_ta_map_id2thr()
63 th->th_unique = phc.h_descr; in td_ta_map_id2thr()
H A Dtd_ta_map_lwp2thr.c29 struct pthread_handle_struct phc[pthread_threads_max]; in td_ta_map_lwp2thr() local
44 if (ps_pdread (ta->ph, ta->handles, phc, in td_ta_map_lwp2thr()
58 if (phc[cnt].h_descr != NULL) in td_ta_map_lwp2thr()
67 if (ps_pdread (ta->ph, phc[cnt].h_descr, &pds, sizeof_descr) != PS_OK) in td_ta_map_lwp2thr()
74 th->th_unique = phc[cnt].h_descr; in td_ta_map_lwp2thr()
/dports/devel/zpu-binutils/zpu-toolchain-1.0/toolchain/gcc/newlib/libc/sys/linux/linuxthreads/
H A Dtd_ta_thr_iter.c80 struct pthread_handle_struct *phc; in td_ta_thr_iter() local
96 phc = (struct pthread_handle_struct *) alloca (sizeof (phc[0]) in td_ta_thr_iter()
100 if (ps_pdread (ta->ph, ta->handles, phc, in td_ta_thr_iter()
106 phc[0].h_descr); in td_ta_thr_iter()
110 phc[1].h_descr); in td_ta_thr_iter()
115 if (ps_pdread (ta->ph, ta->handles + 2, &phc[2], in td_ta_thr_iter()
128 if (phc[cnt].h_descr != NULL) in td_ta_thr_iter()
136 phc[cnt].h_descr); in td_ta_thr_iter()
H A Dtd_thr_validate.c36 struct pthread_handle_struct phc; in td_thr_validate() local
38 if (ps_pdread (th->th_ta_p->ph, handles, &phc, in td_thr_validate()
42 if (phc.h_descr != NULL && phc.h_descr == th->th_unique) in td_thr_validate()
46 if (ps_pdread (th->th_ta_p->ph, phc.h_descr, &pds, in td_thr_validate()
H A Dtd_ta_map_id2thr.c27 struct pthread_handle_struct phc; in td_ta_map_id2thr() local
41 if (ps_pdread (ta->ph, ta->handles + pt % pthread_threads_max, &phc, in td_ta_map_id2thr()
46 if (phc.h_descr == NULL) in td_ta_map_id2thr()
51 if (ps_pdread (ta->ph, phc.h_descr, &pds, in td_ta_map_id2thr()
63 th->th_unique = phc.h_descr; in td_ta_map_id2thr()
H A Dtd_ta_map_lwp2thr.c29 struct pthread_handle_struct phc[pthread_threads_max]; in td_ta_map_lwp2thr() local
44 if (ps_pdread (ta->ph, ta->handles, phc, in td_ta_map_lwp2thr()
58 if (phc[cnt].h_descr != NULL) in td_ta_map_lwp2thr()
67 if (ps_pdread (ta->ph, phc[cnt].h_descr, &pds, sizeof_descr) != PS_OK) in td_ta_map_lwp2thr()
74 th->th_unique = phc[cnt].h_descr; in td_ta_map_lwp2thr()
/dports/devel/zpu-gcc/zpu-toolchain-1.0/toolchain/gcc/newlib/libc/sys/linux/linuxthreads/
H A Dtd_ta_thr_iter.c80 struct pthread_handle_struct *phc; in td_ta_thr_iter() local
96 phc = (struct pthread_handle_struct *) alloca (sizeof (phc[0]) in td_ta_thr_iter()
100 if (ps_pdread (ta->ph, ta->handles, phc, in td_ta_thr_iter()
106 phc[0].h_descr); in td_ta_thr_iter()
110 phc[1].h_descr); in td_ta_thr_iter()
115 if (ps_pdread (ta->ph, ta->handles + 2, &phc[2], in td_ta_thr_iter()
128 if (phc[cnt].h_descr != NULL) in td_ta_thr_iter()
136 phc[cnt].h_descr); in td_ta_thr_iter()
H A Dtd_thr_validate.c36 struct pthread_handle_struct phc; in td_thr_validate() local
38 if (ps_pdread (th->th_ta_p->ph, handles, &phc, in td_thr_validate()
42 if (phc.h_descr != NULL && phc.h_descr == th->th_unique) in td_thr_validate()
46 if (ps_pdread (th->th_ta_p->ph, phc.h_descr, &pds, in td_thr_validate()
H A Dtd_ta_map_id2thr.c27 struct pthread_handle_struct phc; in td_ta_map_id2thr() local
41 if (ps_pdread (ta->ph, ta->handles + pt % pthread_threads_max, &phc, in td_ta_map_id2thr()
46 if (phc.h_descr == NULL) in td_ta_map_id2thr()
51 if (ps_pdread (ta->ph, phc.h_descr, &pds, in td_ta_map_id2thr()
63 th->th_unique = phc.h_descr; in td_ta_map_id2thr()
H A Dtd_ta_map_lwp2thr.c29 struct pthread_handle_struct phc[pthread_threads_max]; in td_ta_map_lwp2thr() local
44 if (ps_pdread (ta->ph, ta->handles, phc, in td_ta_map_lwp2thr()
58 if (phc[cnt].h_descr != NULL) in td_ta_map_lwp2thr()
67 if (ps_pdread (ta->ph, phc[cnt].h_descr, &pds, sizeof_descr) != PS_OK) in td_ta_map_lwp2thr()
74 th->th_unique = phc[cnt].h_descr; in td_ta_map_lwp2thr()
/dports/security/john/john-1.9.0-jumbo-1/src/yescrypt/
H A DMakefile31 PROJ = tests phc-test initrom userom
35 OBJS_PHC = $(OBJS_CORE) $(OBJS_COMMON) phc-test.o
42 check: tests phc-test
48 time ./phc-test > PHC-TEST-OUT; \
61 phc-test.o: phc.c
62 $(CC) -c $(CFLAGS) -DTEST phc.c -o $@
64 phc-test: $(OBJS_PHC)
/dports/net-mgmt/collectd5/collectd-5.12.0/src/
H A Ddpdkstat.c202 static int dpdk_helper_stats_get(dpdk_helper_ctx_t *phc) { in dpdk_helper_stats_get() argument
206 dpdk_stats_ctx_t *ctx = DPDK_STATS_CTX_GET(phc); in dpdk_helper_stats_get()
243 static int dpdk_helper_stats_count_get(dpdk_helper_ctx_t *phc) { in dpdk_helper_stats_count_get() argument
248 dpdk_stats_ctx_t *ctx = DPDK_STATS_CTX_GET(phc); in dpdk_helper_stats_count_get()
275 static int dpdk_stats_get_size(dpdk_helper_ctx_t *phc) { in dpdk_stats_get_size() argument
282 if (phc == NULL) { in dpdk_helper_command_handler()
292 int stats_count = dpdk_helper_stats_count_get(phc); in dpdk_helper_command_handler()
297 DPDK_STATS_CTX_GET(phc)->stats_count = stats_count; in dpdk_helper_command_handler()
300 if (dpdk_stats_get_size(phc) < stats_size) { in dpdk_helper_command_handler()
308 return dpdk_helper_stats_get(phc); in dpdk_helper_command_handler()
[all …]

12345678910>>...22