Home
last modified time | relevance | path

Searched refs:pf (Results 1 – 25 of 165) sorted by relevance

1234567

/f-stack/freebsd/contrib/ck/include/
H A Dck_pflock.h58 ck_pflock_init(struct ck_pflock *pf) in ck_pflock_init() argument
61 pf->rin = 0; in ck_pflock_init()
62 pf->rout = 0; in ck_pflock_init()
63 pf->win = 0; in ck_pflock_init()
64 pf->wout = 0; in ck_pflock_init()
80 ck_pr_faa_32(&pf->wout, 1); in ck_pflock_write_unlock()
85 ck_pflock_write_lock(ck_pflock_t *pf) in ck_pflock_write_lock() argument
90 ticket = ck_pr_faa_32(&pf->win, 1); in ck_pflock_write_lock()
99 ticket = ck_pr_faa_32(&pf->rin, in ck_pflock_write_lock()
111 ck_pflock_read_unlock(ck_pflock_t *pf) in ck_pflock_read_unlock() argument
[all …]
/f-stack/dpdk/drivers/net/enic/
H A Denic_vf_representor.c59 pf = vf->pf; in enic_vf_dev_tx_queue_setup()
99 pf = vf->pf; in enic_vf_dev_rx_queue_setup()
167 pf = vf->pf; in enic_vf_dev_start()
235 enic_rxmbuf_queue_release(pf, &pf->rq[index]); in enic_vf_dev_start()
256 pf = vf->pf; in enic_vf_dev_stop()
419 pf = vf->pf; in enic_vf_link_update()
477 pf = vf->pf; in enic_vf_dev_infos_get()
589 pf = vf->pf; in get_vf_config()
632 vf->pf = params->pf; in enic_vf_representor_init()
635 pf = vf->pf; in enic_vf_representor_init()
[all …]
/f-stack/tools/libutil/tests/
H A Dpidfile_test.c64 struct pidfh *pf; in test_pidfile_uncontested() local
71 if (pf == NULL) in test_pidfile_uncontested()
74 pidfile_close(pf); in test_pidfile_uncontested()
78 pidfile_close(pf); in test_pidfile_uncontested()
145 if (pf == NULL) in common_test_pidfile_child()
160 if (pf == NULL) in common_test_pidfile_child()
169 if (pf == NULL) in common_test_pidfile_child()
190 if (pf) in common_test_pidfile_child()
191 pidfile_close(pf); in common_test_pidfile_child()
204 if (pf != NULL) { in common_test_pidfile_child()
[all …]
/f-stack/dpdk/drivers/net/ice/
H A Dice_fdir_filter.c533 pf->fdir.mz = mz; in ice_fdir_setup()
669 if (pf->fdir.mz) { in ice_fdir_teardown()
1068 ret = ice_fdir_hw_tbl_conf(pf, pf->main_vsi, pf->fdir.fdir_vsi, in ice_fdir_input_set_conf()
1071 ret = ice_fdir_hw_tbl_conf(pf, pf->main_vsi, pf->fdir.fdir_vsi, in ice_fdir_input_set_conf()
1103 struct ice_pf *pf = &ad->pf; in ice_fdir_init() local
1127 struct ice_pf *pf = &ad->pf; in ice_fdir_uninit() local
1260 struct ice_pf *pf = &ad->pf; in ice_fdir_create_filter() local
1354 struct ice_pf *pf = &ad->pf; in ice_fdir_destroy_filter() local
1413 struct ice_pf *pf = &ad->pf; in ice_fdir_query_count() local
1521 struct ice_pf *pf = &ad->pf; in ice_fdir_parse_action() local
[all …]
H A Dice_ethdev.c1437 pf->proto_xtr = rte_zmalloc(NULL, pf->lan_nb_qps, 0); in ice_init_proto_xtr()
1512 pf->lan_nb_qp_max = in ice_pf_sw_init()
1516 pf->lan_nb_qps = pf->lan_nb_qp_max; in ice_pf_sw_init()
1524 pf->lan_nb_qps = pf->lan_nb_qp_max - pf->fdir_nb_qps; in ice_pf_sw_init()
2090 memset(&pf->hash_ctx, 0, sizeof(pf->hash_ctx)); in ice_rss_ctx_init()
2748 return ice_add_rss_cfg_pre_gtpu(pf, &pf->hash_ctx.gtpu4, in ice_add_rss_cfg_pre()
2751 return ice_add_rss_cfg_pre_gtpu(pf, &pf->hash_ctx.gtpu6, in ice_add_rss_cfg_pre()
2848 return ice_add_rss_cfg_post_gtpu(pf, &pf->hash_ctx.gtpu4, in ice_add_rss_cfg_post()
2851 return ice_add_rss_cfg_post_gtpu(pf, &pf->hash_ctx.gtpu6, in ice_add_rss_cfg_post()
5001 if (pf->main_vsi) in ice_read_stats_registers()
[all …]
H A Dice_acl_filter.c149 if (pf->acl.slots) { in ice_deinit_acl()
150 rte_free(pf->acl.slots); in ice_deinit_acl()
151 pf->acl.slots = NULL; in ice_deinit_acl()
478 struct ice_pf *pf = &ad->pf; in ice_acl_create_filter() local
565 struct ice_pf *pf = &ad->pf; in ice_acl_destroy_filter() local
910 struct ice_pf *pf = &ad->pf; in ice_acl_parse() local
966 pf->acl.slots = slots; in ice_acl_bitmap_init()
978 struct ice_pf *pf = &ad->pf; in ice_acl_init() local
992 ret = ice_acl_setup(pf); in ice_acl_init()
1025 struct ice_pf *pf = &ad->pf; in ice_acl_uninit() local
[all …]
H A Dice_generic_flow.c1783 struct ice_pf *pf = &ad->pf; in ice_flow_init() local
1787 TAILQ_INIT(&pf->flow_list); in ice_flow_init()
1788 TAILQ_INIT(&pf->rss_parser_list); in ice_flow_init()
1789 TAILQ_INIT(&pf->perm_parser_list); in ice_flow_init()
1813 struct ice_pf *pf = &ad->pf; in ice_flow_uninit() local
1854 struct ice_pf *pf = &ad->pf; in ice_get_parser_list() local
1858 list = &pf->rss_parser_list; in ice_get_parser_list()
1861 list = &pf->perm_parser_list; in ice_get_parser_list()
1864 list = &pf->dist_parser_list; in ice_get_parser_list()
2344 struct ice_pf *pf = &ad->pf; in ice_flow_query() local
[all …]
H A Dice_ethdev.h470 struct ice_pf pf; member
503 (&((struct ice_adapter *)adapter)->pf)
513 (&(((struct ice_vsi *)vsi)->adapter->pf))
518 #define ICE_PF_TO_HW(pf) \ argument
519 (&(((struct ice_pf *)pf)->adapter->hw))
520 #define ICE_PF_TO_ADAPTER(pf) \ argument
521 ((struct ice_adapter *)(pf)->adapter)
522 #define ICE_PF_TO_ETH_DEV(pf) \ argument
523 (((struct ice_pf *)pf)->adapter->eth_dev)
527 ice_setup_vsi(struct ice_pf *pf, enum ice_vsi_type type);
[all …]
/f-stack/dpdk/drivers/net/i40e/
H A Di40e_fdir.c175 vsi = pf->fdir.fdir_vsi; in i40e_fdir_setup()
182 vsi = i40e_vsi_setup(pf, I40E_VSI_FDIR, pf->main_vsi, 0); in i40e_fdir_setup()
187 pf->fdir.fdir_vsi = vsi; in i40e_fdir_setup()
267 pf->fdir.rxq = NULL; in i40e_fdir_setup()
270 pf->fdir.txq = NULL; in i40e_fdir_setup()
273 pf->fdir.fdir_vsi = NULL; in i40e_fdir_setup()
288 vsi = pf->fdir.fdir_vsi; in i40e_fdir_teardown()
305 pf->fdir.rxq = NULL; in i40e_fdir_teardown()
308 pf->fdir.txq = NULL; in i40e_fdir_teardown()
310 pf->fdir.fdir_vsi = NULL; in i40e_fdir_teardown()
[all …]
H A Di40e_ethdev.c4810 pf->lan_qp_offset = pf->fdir_qp_offset + pf->fdir_nb_qps; in i40e_pf_parameter_init()
4817 pf->lan_nb_qps = pf->lan_nb_qp_max; in i40e_pf_parameter_init()
4823 pf->vf_qp_offset = pf->lan_qp_offset + pf->lan_nb_qps; in i40e_pf_parameter_init()
4826 pf->vf_nb_qps = pf->vf_nb_qp_max; in i40e_pf_parameter_init()
4830 pf->vf_num, pf->vf_nb_qps, pf->vf_nb_qps * pf->vf_num); in i40e_pf_parameter_init()
4835 qp_count += pf->vf_nb_qps * pf->vf_num; in i40e_pf_parameter_init()
4839 pf->vmdq_qp_offset = pf->vf_qp_offset + pf->vf_nb_qps * pf->vf_num; in i40e_pf_parameter_init()
4857 pf->vmdq_nb_qps = pf->vmdq_nb_qp_max; in i40e_pf_parameter_init()
4860 pf->max_nb_vmdq_vsi, pf->vmdq_nb_qps, in i40e_pf_parameter_init()
4861 pf->vmdq_nb_qps * pf->max_nb_vmdq_vsi); in i40e_pf_parameter_init()
[all …]
H A Di40e_tm.c74 pf->tm_conf.root = NULL; in i40e_tm_conf_init()
77 pf->tm_conf.nb_tc_node = 0; in i40e_tm_conf_init()
99 pf->tm_conf.nb_tc_node = 0; in i40e_tm_conf_uninit()
100 if (pf->tm_conf.root) { in i40e_tm_conf_uninit()
101 rte_free(pf->tm_conf.root); in i40e_tm_conf_uninit()
102 pf->tm_conf.root = NULL; in i40e_tm_conf_uninit()
331 if (pf->tm_conf.root && pf->tm_conf.root->id == node_id) { in i40e_tm_node_search()
333 return pf->tm_conf.root; in i40e_tm_node_search()
511 if (pf->tm_conf.root) { in i40e_node_add()
887 if (!pf->tm_conf.root) in i40e_hierarchy_commit()
[all …]
H A Drte_pmd_i40e.c31 if (vf >= pf->vf_num || !pf->vfs) { in rte_pmd_i40e_ping_vfs()
60 if (vf_id >= pf->vf_num || !pf->vfs) { in rte_pmd_i40e_set_vf_mac_anti_spoof()
164 if (vf_id >= pf->vf_num || !pf->vfs) { in rte_pmd_i40e_set_vf_vlan_anti_spoof()
466 if (vf_id >= pf->vf_num || !pf->vfs) { in rte_pmd_i40e_set_vf_unicast_promisc()
507 if (vf_id >= pf->vf_num || !pf->vfs) { in rte_pmd_i40e_set_vf_multicast_promisc()
553 if (vf_id >= pf->vf_num || !pf->vfs) in rte_pmd_i40e_set_vf_mac_addr()
598 if (vf_id >= pf->vf_num || !pf->vfs) in rte_pmd_i40e_remove_vf_mac_addr()
637 if (vf_id >= pf->vf_num || !pf->vfs) { in rte_pmd_i40e_set_vf_vlan_stripq()
689 if (vf_id >= pf->vf_num || !pf->vfs) { in rte_pmd_i40e_set_vf_vlan_insert()
748 if (vf_id >= pf->vf_num || !pf->vfs) { in rte_pmd_i40e_set_vf_broadcast()
[all …]
H A Di40e_pf.c98 struct i40e_pf *pf; in i40e_pf_host_vf_reset() local
106 pf = vf->pf; in i40e_pf_host_vf_reset()
200 if (pf->floating_veb && pf->floating_veb_list[vf_id]) { in i40e_pf_host_vf_reset()
644 struct i40e_pf *pf = vf->pf; in i40e_pf_host_process_cmd_config_irq_map() local
1251 pf = vf->pf; in i40e_pf_host_process_cmd_request_queues()
1304 if (vf_id > pf->vf_num - 1 || !pf->vfs) { in i40e_pf_host_handle_vf_msg()
1519 pf->vfs = rte_zmalloc("i40e_pf_vf",sizeof(*pf->vfs) * pf->vf_num, 0); in i40e_pf_host_init()
1536 pf->vfs[i].pf = pf; in i40e_pf_host_init()
1564 rte_free(pf->vfs); in i40e_pf_host_init()
1594 rte_free(pf->vfs); in i40e_pf_host_uninit()
[all …]
H A Di40e_flow.c2277 if (pf->support_multi_driver) { in i40e_flow_set_fdir_inset()
2319 pf->fdir.inset_flag[pctype] = 1; in i40e_flow_set_fdir_inset()
2890 if (!pf->gtp_support) { in i40e_flow_parse_fdir_pattern()
2920 if (!pf->esp_support) { in i40e_flow_parse_fdir_pattern()
3013 if (pf->support_multi_driver) { in i40e_flow_parse_fdir_pattern()
3299 if (pf->fdir.fdir_vsi == NULL) { in i40e_flow_parse_fdir_filter()
3301 ret = i40e_fdir_setup(pf); in i40e_flow_parse_fdir_filter()
3323 i40e_fdir_teardown(pf); in i40e_flow_parse_fdir_filter()
4296 if (!pf->gtp_support) { in i40e_flow_parse_gtp_pattern()
5395 vsi = pf->main_vsi; in i40e_flow_destroy_tunnel_filter()
[all …]
H A Di40e_vf_representor.c178 struct i40e_pf *pf; in rte_pmd_i40e_get_vf_native_stats() local
188 pf = I40E_DEV_PRIVATE_TO_PF(dev->data->dev_private); in rte_pmd_i40e_get_vf_native_stats()
190 if (vf_id >= pf->vf_num || !pf->vfs) { in rte_pmd_i40e_get_vf_native_stats()
195 vsi = pf->vfs[vf_id].vsi; in rte_pmd_i40e_get_vf_native_stats()
360 struct i40e_pf *pf; in i40e_vf_representor_vlan_offload_set() local
373 if (vfid >= pf->vf_num || !pf->vfs) { in i40e_vf_representor_vlan_offload_set()
378 vf = &pf->vfs[vfid]; in i40e_vf_representor_vlan_offload_set()
478 struct i40e_pf *pf; in i40e_vf_representor_init() local
489 pf = I40E_DEV_PRIVATE_TO_PF( in i40e_vf_representor_init()
492 if (representor->vf_id >= pf->vf_num) in i40e_vf_representor_init()
[all …]
/f-stack/dpdk/drivers/net/bnxt/
H A Drte_pmd_bnxt.c67 bp->pf->evb_mode = BNXT_EVB_MODE_VEB; in rte_pmd_bnxt_set_tx_loopback()
69 bp->pf->evb_mode = BNXT_EVB_MODE_VEPA; in rte_pmd_bnxt_set_tx_loopback()
200 if (!bp->pf->active_vfs) in rte_pmd_bnxt_set_vf_rate_limit()
203 if (vf >= bp->pf->max_vfs) in rte_pmd_bnxt_set_vf_rate_limit()
331 bp->pf->first_vf_id + vf, in rte_pmd_bnxt_set_vf_vlan_anti_spoof()
332 bp->pf->vf_info[vf].vlan_count, in rte_pmd_bnxt_set_vf_vlan_anti_spoof()
418 if (!bp->pf->vf_info) in rte_pmd_bnxt_set_vf_rxmode()
445 &bp->pf->vf_info[vf].l2_rx_mask, in rte_pmd_bnxt_set_vf_rxmode()
480 bp->pf->vf_info[vf].vlan_count, in bnxt_set_vf_table()
509 if (!bp->pf->vf_info) in rte_pmd_bnxt_set_vf_vlan_filter()
[all …]
H A Dbnxt_cpr.c217 if (bp->pf->active_vfs <= 0) { in bnxt_handle_fwd_req()
224 vf_id = fw_vf_id - bp->pf->first_vf_id; in bnxt_handle_fwd_req()
233 fwd_cmd = (struct input *)bp->pf->vf_info[vf_id].req_buf; in bnxt_handle_fwd_req()
235 if (fw_vf_id < bp->pf->first_vf_id || in bnxt_handle_fwd_req()
236 fw_vf_id >= bp->pf->first_vf_id + bp->pf->active_vfs) { in bnxt_handle_fwd_req()
239 fw_vf_id, bp->pf->first_vf_id, in bnxt_handle_fwd_req()
240 (bp->pf->first_vf_id) + bp->pf->active_vfs - 1, in bnxt_handle_fwd_req()
241 bp->pf->first_vf_id, bp->pf->active_vfs); in bnxt_handle_fwd_req()
278 fw_vf_id - bp->pf->first_vf_id, in bnxt_handle_fwd_req()
289 fw_vf_id - bp->pf->first_vf_id, in bnxt_handle_fwd_req()
/f-stack/dpdk/lib/librte_ipsec/
H A Dsa.c615 struct rte_ipsec_sa_pkt_func *pf) in lksd_none_pkt_func_select() argument
627 pf->process = esp_inb_tun_pkt_process; in lksd_none_pkt_func_select()
631 pf->process = esp_inb_trs_pkt_process; in lksd_none_pkt_func_select()
636 pf->process = (sa->sqh_len != 0) ? in lksd_none_pkt_func_select()
641 pf->process = (sa->sqh_len != 0) ? in lksd_none_pkt_func_select()
653 struct rte_ipsec_sa_pkt_func *pf) in cpu_crypto_pkt_func_select() argument
674 pf->process = (sa->sqh_len != 0) ? in cpu_crypto_pkt_func_select()
679 pf->process = (sa->sqh_len != 0) ? in cpu_crypto_pkt_func_select()
695 struct rte_ipsec_sa_pkt_func *pf) in inline_crypto_pkt_func_select() argument
748 pf->process = pkt_flag_process; in ipsec_sa_pkt_func_select()
[all …]
/f-stack/dpdk/drivers/net/hns3/
H A Dhns3_dcb.c189 struct hns3_pf *pf = &hns->pf; in hns3_pg_to_pri_map() local
410 struct hns3_pf *pf = &hns->pf; in hns3_dcb_pg_shaper_cfg() local
590 struct hns3_pf *pf = &hns->pf; in hns3_dcb_pri_shaper_cfg() local
700 struct hns3_pf *pf = &hns->pf; in hns3_dcb_update_tc_queue_mapping() local
718 struct hns3_pf *pf = &hns->pf; in hns3_dcb_info_init() local
764 struct hns3_pf *pf = &hns->pf; in hns3_dcb_lvl2_schd_mode_cfg() local
784 struct hns3_pf *pf = &hns->pf; in hns3_dcb_lvl34_schd_mode_cfg() local
856 struct hns3_pf *pf = &hns->pf; in hns3_dcb_pri_dwrr_cfg() local
893 struct hns3_pf *pf = &hns->pf; in hns3_dcb_pg_dwrr_cfg() local
1012 struct hns3_pf *pf = &hns->pf; in hns3_pri_q_qs_cfg() local
[all …]
H A Dhns3_ethdev.c297 struct hns3_pf *pf = &hns->pf; in hns3_rm_dev_vlan_table() local
316 struct hns3_pf *pf = &hns->pf; in hns3_add_dev_vlan_table() local
340 struct hns3_pf *pf = &hns->pf; in hns3_restore_vlan_table() local
524 struct hns3_pf *pf = &hns->pf; in hns3_update_rx_offload_cfg() local
532 struct hns3_pf *pf = &hns->pf; in hns3_update_tx_offload_cfg() local
771 struct hns3_pf *pf = &hns->pf; in hns3_rm_all_vlan_table() local
794 struct hns3_pf *pf = &hns->pf; in hns3_add_all_vlan_table() local
1056 struct hns3_pf *pf = &hns->pf; in hns3_restore_vlan_conf() local
1188 struct hns3_pf *pf = &hns->pf; in hns3_init_umv_space() local
1211 struct hns3_pf *pf = &hns->pf; in hns3_uninit_umv_space() local
[all …]
H A Dhns3_fdir.c278 struct hns3_pf *pf = &hns->pf; in hns3_set_fd_key_config() local
305 struct hns3_pf *pf = &hns->pf; in hns3_init_fd_config() local
314 switch (pf->fdir.fd_cfg.fd_mode) { in hns3_init_fd_config()
324 pf->fdir.fd_cfg.fd_mode); in hns3_init_fd_config()
705 struct hns3_pf *pf = &hns->pf; in hns3_config_key() local
812 struct hns3_pf *pf = &hns->pf; in hns3_fdir_filter_init() local
813 struct hns3_fdir_info *fdir_info = &pf->fdir; in hns3_fdir_filter_init()
855 struct hns3_pf *pf = &hns->pf; in hns3_fdir_filter_uninit() local
958 struct hns3_pf *pf = &hns->pf; in hns3_fdir_filter_program() local
1025 struct hns3_pf *pf = &hns->pf; in hns3_clear_all_fdir_filter() local
[all …]
/f-stack/app/redis-5.0.5/deps/lua/src/
H A Dliolib.c91 return pf; in newfile()
164 FILE **pf = newfile(L); in io_open() local
165 *pf = fopen(filename, mode); in io_open()
177 FILE **pf = newfile(L); in io_popen() local
184 FILE **pf = newfile(L); in io_tmpfile() local
185 *pf = tmpfile(); in io_tmpfile()
204 FILE **pf = newfile(L); in g_iofile() local
206 if (*pf == NULL) in g_iofile()
256 FILE **pf = newfile(L); in io_lines() local
257 *pf = fopen(filename, "r"); in io_lines()
[all …]
/f-stack/freebsd/netinet/
H A Dtcp_debug.c195 #define pf(f) { \ in tcp_trace() macro
201 pf(SYN); pf(ACK); pf(FIN); pf(RST); pf(PUSH); pf(URG); in tcp_trace()
/f-stack/lib/
H A Dff_syscall_wrapper.c813 pf = NULL; in ff_sendto()
816 msg.msg_name = pf; in ff_sendto()
973 if (addr && pf) in ff_accept()
979 if(pf != NULL) in ff_accept()
984 if(pf != NULL) in ff_accept()
1049 if (name && pf) in ff_getpeername()
1052 if(pf != NULL) in ff_getpeername()
1057 if(pf != NULL) in ff_getpeername()
1073 if (name && pf) in ff_getsockname()
1076 if(pf != NULL) in ff_getsockname()
[all …]
/f-stack/dpdk/drivers/common/sfc_efx/base/
H A Def10_tlv_layout.h216 #define TLV_TAG_PF_STATIC_VPD(pf) (0x00030000 + (pf)) argument
241 #define TLV_TAG_PF_DYNAMIC_VPD(pf) (0x10030000 + (pf)) argument
266 #define TLV_TAG_PF_DBI(pf) (0x00040000 + (pf)) argument
351 #define TLV_TAG_PF_PCIE_CONFIG(pf) (0x10080000 + (pf)) argument
668 #define TLV_TAG_VPORT_VLAN_TAG(pf) (0x10130000 + (pf)) argument
732 #define TLV_TAG_PRIVILEGE_MASK_ADD_SINGLE_PF(pf) (0x101A0000 + (pf)) argument
785 #define TLV_TAG_RATE_LIMIT(pf) (0x101b0000 + (pf)) argument

1234567