Home
last modified time | relevance | path

Searched refs:ts (Results 1 – 25 of 70) sorted by relevance

123

/dpdk/app/test/
H A Dtest.c257 struct unit_test_suite *ts; in unit_test_suite_count_tcs_on_setup_fail() local
264 suite->total += ts->total; in unit_test_suite_count_tcs_on_setup_fail()
265 suite->failed += ts->failed; in unit_test_suite_count_tcs_on_setup_fail()
266 suite->skipped += ts->skipped; in unit_test_suite_count_tcs_on_setup_fail()
267 if (ts->failed) in unit_test_suite_count_tcs_on_setup_fail()
285 struct unit_test_suite *ts; in unit_test_suite_reset_counts() local
304 struct unit_test_suite *ts; in unit_test_suite_runner() local
394 suite->total += ts->total; in unit_test_suite_runner()
396 suite->failed += ts->failed; in unit_test_suite_runner()
416 ts->succeeded, ts->total, ts->skipped, ts->total, in unit_test_suite_runner()
[all …]
H A Dtest_cryptodev_blockcipher.c1131 struct unit_test_suite *ts; in build_blockcipher_test_suite() local
1190 ts = calloc(1, sizeof(struct unit_test_suite) + in build_blockcipher_test_suite()
1192 ts->suite_name = ts_name; in build_blockcipher_test_suite()
1193 ts->setup = ts_setup; in build_blockcipher_test_suite()
1196 tc = &ts->unit_test_cases[i]; in build_blockcipher_test_suite()
1205 tc = &ts->unit_test_cases[i]; in build_blockcipher_test_suite()
1214 return ts; in build_blockcipher_test_suite()
1218 free_blockcipher_test_suite(struct unit_test_suite *ts) in free_blockcipher_test_suite() argument
1220 free(ts); in free_blockcipher_test_suite()
/dpdk/lib/eal/include/
H A Drte_time.h83 rte_timespec_to_ns(const struct timespec *ts) in rte_timespec_to_ns() argument
85 return ((uint64_t) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec; in rte_timespec_to_ns()
94 struct timespec ts = {0, 0}; in rte_ns_to_timespec() local
97 return ts; in rte_ns_to_timespec()
99 ts.tv_sec = nsec / NSEC_PER_SEC; in rte_ns_to_timespec()
100 ts.tv_nsec = nsec % NSEC_PER_SEC; in rte_ns_to_timespec()
102 return ts; in rte_ns_to_timespec()
H A Drte_eal.h295 const struct timespec *ts);
320 rte_mp_request_async(struct rte_mp_msg *req, const struct timespec *ts,
/dpdk/drivers/net/mlx5/
H A Dmlx5_txpp.c525 *ts = src; in mlx5_atomic_read_cqe()
563 __atomic_store_n(&sh->txpp.ts.ts, ts, __ATOMIC_RELAXED); in mlx5_txpp_cache_timestamp()
578 uint64_t ts; in mlx5_txpp_update_timestamp() local
600 ts = mlx5_txpp_convert_rx_ts(sh, ts); in mlx5_txpp_update_timestamp()
636 sh->txpp.ts.ts, __ATOMIC_RELAXED); in mlx5_txpp_gather_timestamp()
996 uint64_t ts; in mlx5_txpp_read_clock() local
1007 ts = mlx5_txpp_convert_rx_ts(sh, ts); in mlx5_txpp_read_clock()
1084 ts = __atomic_load_n(&txpp->tsa[idx].ts, __ATOMIC_RELAXED); in mlx5_txpp_read_tsa()
1095 tsa->ts = ts; in mlx5_txpp_read_tsa()
1132 dts = tsa1.ts - tsa0.ts; in mlx5_txpp_xstats_jitter()
[all …]
H A Dmlx5_rxtx_vec_neon.h804 uint64_t ts; in rxq_cq_process_v() local
806 ts = rte_be_to_cpu_64 in rxq_cq_process_v()
810 mlx5_txpp_convert_rx_ts(sh, ts)); in rxq_cq_process_v()
811 ts = rte_be_to_cpu_64 in rxq_cq_process_v()
815 mlx5_txpp_convert_rx_ts(sh, ts)); in rxq_cq_process_v()
816 ts = rte_be_to_cpu_64 in rxq_cq_process_v()
820 mlx5_txpp_convert_rx_ts(sh, ts)); in rxq_cq_process_v()
821 ts = rte_be_to_cpu_64 in rxq_cq_process_v()
825 mlx5_txpp_convert_rx_ts(sh, ts)); in rxq_cq_process_v()
H A Dmlx5_rxtx_vec_sse.h749 uint64_t ts; in rxq_cq_process_v() local
751 ts = rte_be_to_cpu_64(cq[pos].timestamp); in rxq_cq_process_v()
753 mlx5_txpp_convert_rx_ts(sh, ts)); in rxq_cq_process_v()
754 ts = rte_be_to_cpu_64(cq[pos + p1].timestamp); in rxq_cq_process_v()
756 mlx5_txpp_convert_rx_ts(sh, ts)); in rxq_cq_process_v()
757 ts = rte_be_to_cpu_64(cq[pos + p2].timestamp); in rxq_cq_process_v()
759 mlx5_txpp_convert_rx_ts(sh, ts)); in rxq_cq_process_v()
760 ts = rte_be_to_cpu_64(cq[pos + p3].timestamp); in rxq_cq_process_v()
762 mlx5_txpp_convert_rx_ts(sh, ts)); in rxq_cq_process_v()
/dpdk/drivers/net/cnxk/
H A Dcnxk_ptp.c76 cnxk_nix_timesync_read_time(struct rte_eth_dev *eth_dev, struct timespec *ts) in cnxk_nix_timesync_read_time() argument
88 *ts = rte_ns_to_timespec(ns); in cnxk_nix_timesync_read_time()
94 const struct timespec *ts) in cnxk_nix_timesync_write_time() argument
99 ns = rte_timespec_to_ns(ts); in cnxk_nix_timesync_write_time()
182 const struct rte_memzone *ts; in cnxk_nix_timesync_enable() local
205 ts = rte_eth_dma_zone_reserve(eth_dev, "cnxk_ts", 0, 128, 128, 0); in cnxk_nix_timesync_enable()
206 if (ts == NULL) { in cnxk_nix_timesync_enable()
211 tstamp->tx_tstamp_iova = ts->iova; in cnxk_nix_timesync_enable()
212 tstamp->tx_tstamp = ts->addr; in cnxk_nix_timesync_enable()
H A Dcn9k_rx.h712 uint64_t ts[4]; in cn9k_nix_recv_pkts_vector() local
741 ts[0] = vgetq_lane_u64(ts01, 0); in cn9k_nix_recv_pkts_vector()
742 ts[1] = vgetq_lane_u64(ts01, 1); in cn9k_nix_recv_pkts_vector()
743 ts[2] = vgetq_lane_u64(ts23, 0); in cn9k_nix_recv_pkts_vector()
744 ts[3] = vgetq_lane_u64(ts23, 1); in cn9k_nix_recv_pkts_vector()
748 ts[0]; in cn9k_nix_recv_pkts_vector()
750 ts[1]; in cn9k_nix_recv_pkts_vector()
752 ts[2]; in cn9k_nix_recv_pkts_vector()
754 ts[3]; in cn9k_nix_recv_pkts_vector()
782 ts[31 - __builtin_clz(res)]; in cn9k_nix_recv_pkts_vector()
[all …]
/dpdk/drivers/common/mlx5/
H A Dmlx5_common_mp.c36 struct timespec ts = {.tv_sec = MLX5_MP_REQ_TIMEOUT_SEC, .tv_nsec = 0}; in mlx5_mp_req_mr_create() local
43 ret = rte_mp_request_sync(&mp_req, &mp_rep, &ts); in mlx5_mp_req_mr_create()
77 struct timespec ts = {.tv_sec = MLX5_MP_REQ_TIMEOUT_SEC, .tv_nsec = 0}; in mlx5_mp_req_mempool_reg() local
88 ret = rte_mp_request_sync(&mp_req, &mp_rep, &ts); in mlx5_mp_req_mempool_reg()
125 struct timespec ts = {.tv_sec = MLX5_MP_REQ_TIMEOUT_SEC, .tv_nsec = 0}; in mlx5_mp_req_queue_state_modify() local
131 ret = rte_mp_request_sync(&mp_req, &mp_rep, &ts); in mlx5_mp_req_queue_state_modify()
161 struct timespec ts = {.tv_sec = MLX5_MP_REQ_TIMEOUT_SEC, .tv_nsec = 0}; in mlx5_mp_req_verbs_cmd_fd() local
166 ret = rte_mp_request_sync(&mp_req, &mp_rep, &ts); in mlx5_mp_req_verbs_cmd_fd()
/dpdk/lib/eal/common/
H A Dmalloc_mp.c355 struct timespec ts; in handle_request() local
364 ts.tv_nsec = 0; in handle_request()
365 ts.tv_sec = MP_TIMEOUT_S; in handle_request()
493 struct timespec ts; in handle_sync_response() local
512 ts.tv_nsec = 0; in handle_sync_response()
513 ts.tv_sec = MP_TIMEOUT_S; in handle_sync_response()
632 struct timespec ts; in request_sync() local
648 ts.tv_nsec = 0; in request_sync()
649 ts.tv_sec = MP_TIMEOUT_S; in request_sync()
701 struct timespec ts; in request_to_primary() local
[all …]
H A Deal_common_proc.c893 if (rte_eal_alarm_set(ts->tv_sec * 1000000 + ts->tv_nsec / 1000, in mp_request_async()
911 struct rte_mp_reply *reply, const struct timespec *ts) in mp_request_sync() argument
948 &pending_requests.lock, ts); in mp_request_sync()
983 const struct timespec *ts) in rte_mp_request_sync() argument
1013 end.tv_nsec = (now.tv_nsec + ts->tv_nsec) % 1000000000; in rte_mp_request_sync()
1014 end.tv_sec = now.tv_sec + ts->tv_sec + in rte_mp_request_sync()
1015 (now.tv_nsec + ts->tv_nsec) / 1000000000; in rte_mp_request_sync()
1128 end->tv_nsec = (now.tv_nsec + ts->tv_nsec) % 1000000000; in rte_mp_request_async()
1129 end->tv_sec = now.tv_sec + ts->tv_sec + in rte_mp_request_async()
1130 (now.tv_nsec + ts->tv_nsec) / 1000000000; in rte_mp_request_async()
[all …]
H A Dhotplug_mp.c368 struct timespec ts = {.tv_sec = MP_TIMEOUT_S, .tv_nsec = 0}; in eal_dev_hotplug_request_to_primary() local
377 ret = rte_mp_request_sync(&mp_req, &mp_reply, &ts); in eal_dev_hotplug_request_to_primary()
396 struct timespec ts = {.tv_sec = MP_TIMEOUT_S, .tv_nsec = 0}; in eal_dev_hotplug_request_to_secondary() local
405 ret = rte_mp_request_sync(&mp_req, &mp_reply, &ts); in eal_dev_hotplug_request_to_secondary()
/dpdk/lib/eal/windows/
H A Deal_mp.c53 const struct timespec *ts) in rte_mp_request_sync() argument
57 RTE_SET_USED(ts); in rte_mp_request_sync()
63 rte_mp_request_async(struct rte_mp_msg *req, const struct timespec *ts, in rte_mp_request_async() argument
67 RTE_SET_USED(ts); in rte_mp_request_async()
/dpdk/examples/dma/
H A Ddmafwd.c155 print_total_stats(struct total_statistics *ts) in print_total_stats() argument
161 ts->total_packets_tx / stats_interval, in print_total_stats()
162 ts->total_packets_rx / stats_interval, in print_total_stats()
163 ts->total_packets_dropped / stats_interval); in print_total_stats()
169 ts->total_submitted / stats_interval, in print_total_stats()
170 ts->total_completed / stats_interval, in print_total_stats()
171 ts->total_failed / stats_interval); in print_total_stats()
181 struct total_statistics ts, delta_ts; in print_stats() local
211 memset(&ts, 0, sizeof(struct total_statistics)); in print_stats()
258 delta_ts.total_failed -= ts.total_failed; in print_stats()
[all …]
/dpdk/drivers/net/mlx4/
H A Dmlx4_mp.c183 struct timespec ts = {.tv_sec = MLX4_MP_REQ_TIMEOUT_SEC, .tv_nsec = 0}; in mp_req_on_rxtx() local
202 ret = rte_mp_request_sync(&mp_req, &mp_rep, &ts); in mp_req_on_rxtx()
272 struct timespec ts = {.tv_sec = MLX4_MP_REQ_TIMEOUT_SEC, .tv_nsec = 0}; in mlx4_mp_req_mr_create() local
278 ret = rte_mp_request_sync(&mp_req, &mp_rep, &ts); in mlx4_mp_req_mr_create()
310 struct timespec ts = {.tv_sec = MLX4_MP_REQ_TIMEOUT_SEC, .tv_nsec = 0}; in mlx4_mp_req_verbs_cmd_fd() local
315 ret = rte_mp_request_sync(&mp_req, &mp_rep, &ts); in mlx4_mp_req_verbs_cmd_fd()
/dpdk/lib/pipeline/
H A Drte_swx_ctl.c1049 if (ts->obj) in table_state_free()
1083 struct rte_swx_table_state *ts = &ctl->ts[table_base_index + i]; in table_state_create() local
1134 struct rte_swx_table_state *ts = &ctl->ts[learner_base_index + i]; in table_state_create() local
1138 ts_next->obj = ts->obj; in table_state_create()
1735 struct rte_swx_table_state *ts = &ctl->ts[table_id]; in table_rollfwd0() local
1843 ts_next->obj = ts->obj; in table_rollfwd0()
1951 struct rte_swx_table_state *ts = &ctl->ts[table_id]; in table_rollback() local
2253 struct rte_swx_table_state *ts = &ctl->ts[ctl->info.n_tables + selector_id]; in selector_rollback() local
2495 ts = ctl->ts; in rte_swx_ctl_pipeline_commit()
2496 ctl->ts = ctl->ts_next; in rte_swx_ctl_pipeline_commit()
[all …]
/dpdk/lib/eal/freebsd/include/
H A Drte_os_shim.h28 #define timespec_get(ts, base) rte_timespec_get(ts, base) argument
/dpdk/drivers/net/hns3/
H A Dhns3_ptp.c218 hns3_timesync_read_time(struct rte_eth_dev *dev, struct timespec *ts) in hns3_timesync_read_time() argument
232 *ts = rte_ns_to_timespec(ns); in hns3_timesync_read_time()
238 hns3_timesync_write_time(struct rte_eth_dev *dev, const struct timespec *ts) in hns3_timesync_write_time() argument
241 uint64_t sec = ts->tv_sec; in hns3_timesync_write_time()
242 uint64_t ns = ts->tv_nsec; in hns3_timesync_write_time()
H A Dhns3_mp.c147 struct timespec ts; in mp_req_on_rxtx() local
161 ts.tv_sec = HNS3_MP_REQ_TIMEOUT_SEC; in mp_req_on_rxtx()
162 ts.tv_nsec = 0; in mp_req_on_rxtx()
163 ret = rte_mp_request_sync(&mp_req, &mp_rep, &ts); in mp_req_on_rxtx()
/dpdk/drivers/net/mlx5/linux/
H A Dmlx5_mp_os.c226 struct timespec ts = {.tv_sec = MLX5_MP_REQ_TIMEOUT_SEC, .tv_nsec = 0}; in mp_req_on_rxtx() local
245 ret = rte_mp_request_sync(&mp_req, &mp_rep, &ts); in mp_req_on_rxtx()
323 struct timespec ts = {.tv_sec = MLX5_MP_REQ_TIMEOUT_SEC, .tv_nsec = 0}; in mlx5_mp_os_req_queue_control() local
331 ret = rte_mp_request_sync(&mp_req, &mp_rep, &ts); in mlx5_mp_os_req_queue_control()
/dpdk/lib/eal/windows/include/
H A Drte_os_shim.h76 #define timespec_get(ts, base) rte_timespec_get(ts, base) argument
/dpdk/drivers/net/dpaa2/
H A Ddpaa2_ptp.c64 const struct timespec *ts) in dpaa2_timesync_write_time() argument
71 ns = rte_timespec_to_ns(ts); in dpaa2_timesync_write_time()
/dpdk/lib/graph/
H A Dgraph_stats.c74 ts_per_hz = (double)((stat->ts - stat->prev_ts) / stat->hz); in print_node()
350 stat->ts = rte_get_timer_cycles(); in cluster_node_arregate_stats()
359 stat->prev_ts = stat->ts; in cluster_node_store_prev_stats()
397 node->ts = 0; in rte_graph_cluster_stats_reset()
/dpdk/app/dumpcap/
H A Dmain.c617 char ts[32]; in create_output() local
625 strftime(ts, sizeof(ts), "%Y%m%d%H%M%S", tm); in create_output()
629 progname, intf->port, intf->name, ts, in create_output()
725 gettimeofday(&header.ts, NULL); in pcap_write_packets()

123