Home
last modified time | relevance | path

Searched refs:tfp (Results 1 – 25 of 43) sorted by relevance

12

/dpdk/drivers/net/bnxt/tf_core/
H A Dtf_device.h87 int tf_dev_bind(struct tf *tfp,
108 int tf_dev_unbind(struct tf *tfp,
221 int (*tf_dev_alloc_ident)(struct tf *tfp,
240 int (*tf_dev_free_ident)(struct tf *tfp,
342 int (*tf_dev_alloc_tbl)(struct tf *tfp,
400 int (*tf_dev_free_tbl)(struct tf *tfp,
455 int (*tf_dev_set_tbl)(struct tf *tfp,
512 int (*tf_dev_get_tbl)(struct tf *tfp,
667 (struct tf *tfp,
686 int (*tf_dev_set_tcam)(struct tf *tfp,
[all …]
H A Dtf_session.c287 (tfp, in tf_session_client_create()
320 (tfp, in tf_session_client_create()
400 (tfp, in tf_session_client_destroy()
660 if (tfp->session == NULL || tfp->session->core_data == NULL) { in tf_session_get_session_internal()
879 if (tfp == NULL) in tf_session_get_em_ext_db()
897 if (tfp == NULL) in tf_session_set_em_ext_db()
918 if (tfp == NULL) in tf_session_get_db()
967 if (tfp == NULL) in tf_session_set_db()
1006 if (tfp == NULL) in tf_session_get_tcam_shared_db()
1024 if (tfp == NULL) in tf_session_set_tcam_shared_db()
[all …]
H A Dtf_msg.h70 int tf_msg_session_attach(struct tf *tfp,
127 int tf_msg_session_close(struct tf *tfp,
140 int tf_msg_session_qcfg(struct tf *tfp);
341 int tf_msg_move_em_entry(struct tf *tfp,
419 int tf_msg_em_mem_rgtr(struct tf *tfp,
437 int tf_msg_em_mem_unrgtr(struct tf *tfp,
455 int tf_msg_em_qcaps(struct tf *tfp,
491 int tf_msg_em_cfg(struct tf *tfp,
526 int tf_msg_ext_em_cfg(struct tf *tfp,
547 int tf_msg_em_op(struct tf *tfp,
[all …]
H A Dtf_device.c84 tf_dev_bind_p4(struct tf *tfp, in tf_dev_bind_p4() argument
254 frc = tf_dev_unbind_p4(tfp); in tf_dev_bind_p4()
293 rc = tf_tcam_unbind(tfp); in tf_dev_unbind_p4()
301 rc = tf_ident_unbind(tfp); in tf_dev_unbind_p4()
308 rc = tf_tbl_unbind(tfp); in tf_dev_unbind_p4()
322 rc = tf_em_int_unbind(tfp); in tf_dev_unbind_p4()
330 rc = tf_if_tbl_unbind(tfp); in tf_dev_unbind_p4()
566 rc = tf_tcam_unbind(tfp); in tf_dev_unbind_p58()
574 rc = tf_ident_unbind(tfp); in tf_dev_unbind_p58()
593 rc = tf_tbl_unbind(tfp); in tf_dev_unbind_p58()
[all …]
H A Dtf_em.h195 int tf_em_insert_int_entry(struct tf *tfp,
259 int tf_em_move_int_entry(struct tf *tfp,
339 int tf_em_int_bind(struct tf *tfp,
355 int tf_em_int_unbind(struct tf *tfp);
403 int tf_em_ext_alloc(struct tf *tfp,
419 int tf_em_ext_free(struct tf *tfp,
483 tf_tbl_ext_alloc(struct tf *tfp,
503 tf_tbl_ext_free(struct tf *tfp,
541 int tf_tbl_ext_set(struct tf *tfp,
545 tf_em_ext_system_bind(struct tf *tfp,
[all …]
H A Dtf_session.h490 int tf_session_get(struct tf *tfp,
539 tf_session_get_em_ext_db(struct tf *tfp,
555 tf_session_set_em_ext_db(struct tf *tfp,
571 tf_session_get_db(struct tf *tfp,
588 tf_session_set_db(struct tf *tfp,
631 tf_session_get_bp(struct tf *tfp) in tf_session_get_bp() argument
633 return tfp->bp; in tf_session_get_bp()
669 tf_session_set_sram_db(struct tf *tfp,
681 tf_session_get_sram_db(struct tf *tfp,
694 tf_session_set_global_db(struct tf *tfp,
[all …]
H A Dtf_core.c24 tf_open_session(struct tf *tfp, in tf_open_session() argument
31 TF_CHECK_PARMS2(tfp, parms); in tf_open_session()
102 TF_CHECK_PARMS2(tfp, parms); in tf_attach_session()
165 TF_CHECK_PARMS1(tfp); in tf_close_session()
200 TF_CHECK_PARMS2(tfp, parms); in tf_insert_em_entry()
256 TF_CHECK_PARMS2(tfp, parms); in tf_delete_em_entry()
308 TF_CHECK_PARMS2(tfp, parms); in tf_get_global_cfg()
370 TF_CHECK_PARMS2(tfp, parms); in tf_set_global_cfg()
429 TF_CHECK_PARMS2(tfp, parms); in tf_alloc_identifier()
489 TF_CHECK_PARMS2(tfp, parms); in tf_free_identifier()
[all …]
H A Dtf_tcam_shared.c168 tf_tcam_db_valid(struct tf *tfp, in tf_tcam_db_valid() argument
175 TF_CHECK_PARMS1(tfp); in tf_tcam_db_valid()
259 TF_CHECK_PARMS2(tfp, parms); in tf_tcam_shared_bind()
263 rc = tf_tcam_bind(tfp, parms); in tf_tcam_shared_bind()
357 TF_CHECK_PARMS1(tfp); in tf_tcam_shared_unbind()
368 rc = tf_tcam_unbind(tfp); in tf_tcam_shared_unbind()
469 rc = tf_tcam_unbind(tfp); in tf_tcam_shared_unbind()
489 TF_CHECK_PARMS2(tfp, parms); in tf_tcam_shared_alloc()
574 TF_CHECK_PARMS2(tfp, parms); in tf_tcam_shared_free()
694 TF_CHECK_PARMS2(tfp, parms); in tf_tcam_shared_set()
[all …]
H A Dtf_tbl.c26 tf_tbl_bind(struct tf *tfp, in tf_tbl_bind() argument
36 TF_CHECK_PARMS2(tfp, parms); in tf_tbl_bind()
89 tf_tbl_unbind(struct tf *tfp) in tf_tbl_unbind() argument
96 TF_CHECK_PARMS1(tfp); in tf_tbl_unbind()
130 TF_CHECK_PARMS2(tfp, parms); in tf_tbl_alloc()
182 TF_CHECK_PARMS2(tfp, parms); in tf_tbl_free()
276 tf_tbl_set(struct tf *tfp, in tf_tbl_set() argument
348 rc = tf_msg_set_tbl_entry(tfp, in tf_tbl_set()
367 tf_tbl_get(struct tf *tfp, in tf_tbl_get() argument
472 TF_CHECK_PARMS2(tfp, parms); in tf_tbl_bulk_get()
[all …]
H A Dtf_core.h759 int tf_open_session(struct tf *tfp,
950 int tf_attach_session(struct tf *tfp,
966 int tf_close_session(struct tf *tfp);
1237 int tf_map_tbl_scope(struct tf *tfp,
1249 int tf_free_tbl_scope(struct tf *tfp,
1480 int tf_set_tcam_entry(struct tf *tfp,
1530 int tf_get_tcam_entry(struct tf *tfp,
1743 int tf_free_tbl_entry(struct tf *tfp,
1788 int tf_set_tbl_entry(struct tf *tfp,
1863 int tf_get_tbl_entry(struct tf *tfp,
[all …]
H A Dtf_em_internal.c34 tf_em_insert_int_entry(struct tf *tfp, in tf_em_insert_int_entry() argument
47 rc = tf_session_get_session(tfp, &tfs); in tf_em_insert_int_entry()
105 tf_em_delete_int_entry(struct tf *tfp, in tf_em_delete_int_entry() argument
180 tf_em_int_bind(struct tf *tfp, in tf_em_int_bind() argument
193 TF_CHECK_PARMS2(tfp, parms); in tf_em_int_bind()
293 (void *)tfp, in tf_em_int_bind()
312 tf_em_int_unbind(struct tf *tfp) in tf_em_int_unbind() argument
321 TF_CHECK_PARMS1(tfp); in tf_em_int_unbind()
347 rc = tf_rm_free_db(tfp, &fparms); in tf_em_int_unbind()
358 tf_em_get_resc_info(struct tf *tfp, in tf_em_get_resc_info() argument
[all …]
H A Dtf_tcam_shared.h48 int tf_tcam_shared_bind(struct tf *tfp,
64 int tf_tcam_shared_unbind(struct tf *tfp);
79 int tf_tcam_shared_alloc(struct tf *tfp,
95 int tf_tcam_shared_free(struct tf *tfp,
112 int tf_tcam_shared_set(struct tf *tfp,
129 int tf_tcam_shared_get(struct tf *tfp,
147 int tf_tcam_shared_move_p4(struct tf *tfp,
164 int tf_tcam_shared_move_p58(struct tf *tfp,
180 int tf_tcam_shared_clear(struct tf *tfp,
H A Dtf_if_tbl.c61 tf_if_tbl_bind(struct tf *tfp, in tf_if_tbl_bind() argument
67 TF_CHECK_PARMS2(tfp, parms); in tf_if_tbl_bind()
81 tf_session_set_if_tbl_db(tfp, (void *)if_tbl_db); in tf_if_tbl_bind()
92 tf_if_tbl_unbind(struct tf *tfp) in tf_if_tbl_unbind() argument
104 TF_CHECK_PARMS1(tfp); in tf_if_tbl_unbind()
119 tf_if_tbl_set(struct tf *tfp, in tf_if_tbl_set() argument
126 TF_CHECK_PARMS3(tfp, parms, parms->data); in tf_if_tbl_set()
149 rc = tf_msg_set_if_tbl_entry(tfp, parms); in tf_if_tbl_set()
162 tf_if_tbl_get(struct tf *tfp, in tf_if_tbl_get() argument
169 TF_CHECK_PARMS3(tfp, parms, parms->data); in tf_if_tbl_get()
[all …]
H A Dtf_global_cfg.c73 tf_global_cfg_bind(struct tf *tfp, in tf_global_cfg_bind() argument
79 TF_CHECK_PARMS2(tfp, parms); in tf_global_cfg_bind()
93 tf_session_set_global_db(tfp, (void *)global_cfg_db); in tf_global_cfg_bind()
100 tf_global_cfg_unbind(struct tf *tfp) in tf_global_cfg_unbind() argument
105 TF_CHECK_PARMS1(tfp); in tf_global_cfg_unbind()
118 tf_global_cfg_set(struct tf *tfp, in tf_global_cfg_set() argument
126 TF_CHECK_PARMS3(tfp, parms, parms->config); in tf_global_cfg_set()
148 rc = tf_msg_set_global_cfg(tfp, parms); in tf_global_cfg_set()
161 tf_global_cfg_get(struct tf *tfp, in tf_global_cfg_get() argument
170 TF_CHECK_PARMS3(tfp, parms, parms->config); in tf_global_cfg_get()
[all …]
H A Dtf_tcam.c32 tf_tcam_bind(struct tf *tfp, in tf_tcam_bind() argument
52 TF_CHECK_PARMS2(tfp, parms); in tf_tcam_bind()
213 tf_tcam_unbind(struct tf *tfp) in tf_tcam_unbind() argument
221 TF_CHECK_PARMS1(tfp); in tf_tcam_unbind()
256 tf_tcam_alloc(struct tf *tfp, in tf_tcam_alloc() argument
268 TF_CHECK_PARMS2(tfp, parms); in tf_tcam_alloc()
338 tf_tcam_free(struct tf *tfp, in tf_tcam_free() argument
354 TF_CHECK_PARMS2(tfp, parms); in tf_tcam_free()
504 TF_CHECK_PARMS2(tfp, parms); in tf_tcam_alloc_search()
628 TF_CHECK_PARMS2(tfp, parms); in tf_tcam_set()
[all …]
H A Dtf_msg.c301 tf_msg_session_close(struct tf *tfp, in tf_msg_session_close() argument
326 tf_msg_session_qcfg(struct tf *tfp) in tf_msg_session_qcfg() argument
483 TF_CHECK_PARMS3(tfp, request, resv); in tf_msg_session_resc_alloc()
590 TF_CHECK_PARMS3(tfp, request, resv); in tf_msg_session_resc_info()
685 TF_CHECK_PARMS2(tfp, resv); in tf_msg_session_resc_flush()
1013 tf_msg_move_em_entry(struct tf *tfp, in tf_msg_move_em_entry() argument
1193 tf_msg_em_mem_rgtr(struct tf *tfp, in tf_msg_em_mem_rgtr() argument
1296 tf_msg_em_qcaps(struct tf *tfp, in tf_msg_em_qcaps() argument
1359 tf_msg_em_cfg(struct tf *tfp, in tf_msg_em_cfg() argument
1423 tf_msg_ext_em_cfg(struct tf *tfp, in tf_msg_ext_em_cfg() argument
[all …]
H A Dtf_identifier.c29 tf_ident_bind(struct tf *tfp, in tf_ident_bind() argument
42 TF_CHECK_PARMS2(tfp, parms); in tf_ident_bind()
76 db_rc[i] = tf_rm_create_db(tfp, &db_cfg); in tf_ident_bind()
109 tf_ident_unbind(struct tf *tfp) in tf_ident_unbind() argument
118 TF_CHECK_PARMS1(tfp); in tf_ident_unbind()
130 rc = tf_rm_free_db(tfp, &fparms); in tf_ident_unbind()
166 TF_CHECK_PARMS2(tfp, parms); in tf_ident_alloc()
223 TF_CHECK_PARMS2(tfp, parms); in tf_ident_free()
303 TF_CHECK_PARMS2(tfp, parms); in tf_ident_search()
359 tf_ident_get_resc_info(struct tf *tfp, in tf_ident_get_resc_info() argument
[all …]
H A Dtf_tbl_sram.c146 TF_CHECK_PARMS1(tfp); in tf_tbl_sram_bind()
164 TF_CHECK_PARMS1(tfp); in tf_tbl_sram_unbind()
182 tf_tbl_sram_alloc(struct tf *tfp, in tf_tbl_sram_alloc() argument
195 TF_CHECK_PARMS2(tfp, parms); in tf_tbl_sram_alloc()
281 TF_CHECK_PARMS2(tfp, parms); in tf_tbl_sram_free()
359 fparms.tfp = tfp; in tf_tbl_sram_free()
390 tf_tbl_sram_set(struct tf *tfp, in tf_tbl_sram_set() argument
510 rc = tf_msg_set_tbl_entry(tfp, in tf_tbl_sram_set()
528 tf_tbl_sram_get(struct tf *tfp, in tf_tbl_sram_get() argument
616 rc = tf_msg_get_tbl_entry(tfp, in tf_tbl_sram_get()
[all …]
H A Dtf_tbl_sram.h50 int tf_tbl_sram_bind(struct tf *tfp);
65 int tf_tbl_sram_unbind(struct tf *tfp);
80 int tf_tbl_sram_alloc(struct tf *tfp,
99 int tf_tbl_sram_free(struct tf *tfp,
117 int tf_tbl_sram_set(struct tf *tfp,
134 int tf_tbl_sram_get(struct tf *tfp,
151 int tf_tbl_sram_bulk_get(struct tf *tfp,
H A Dtf_tbl.h213 int tf_tbl_bind(struct tf *tfp,
229 int tf_tbl_unbind(struct tf *tfp);
244 int tf_tbl_alloc(struct tf *tfp,
260 int tf_tbl_free(struct tf *tfp,
277 int tf_tbl_set(struct tf *tfp,
294 int tf_tbl_get(struct tf *tfp,
311 int tf_tbl_bulk_get(struct tf *tfp,
328 tf_tbl_get_resc_info(struct tf *tfp,
H A Dtf_em_hash_internal.c34 tf_em_hash_insert_int_entry(struct tf *tfp, in tf_em_hash_insert_int_entry() argument
51 rc = tf_session_get_session_internal(tfp, &tfs); in tf_em_hash_insert_int_entry()
80 rc = tf_msg_hash_insert_em_internal_entry(tfp, in tf_em_hash_insert_int_entry()
121 tf_em_hash_delete_int_entry(struct tf *tfp, in tf_em_hash_delete_int_entry() argument
128 rc = tf_session_get_session(tfp, &tfs); in tf_em_hash_delete_int_entry()
137 rc = tf_msg_delete_em_entry(tfp, parms); in tf_em_hash_delete_int_entry()
155 tf_em_move_int_entry(struct tf *tfp, in tf_em_move_int_entry() argument
163 rc = tf_session_get_session(tfp, &tfs); in tf_em_move_int_entry()
172 rc = tf_msg_move_em_entry(tfp, parms); in tf_em_move_int_entry()
H A Dtf_tcam.h290 int tf_tcam_bind(struct tf *tfp,
306 int tf_tcam_unbind(struct tf *tfp);
321 int tf_tcam_alloc(struct tf *tfp,
340 int tf_tcam_free(struct tf *tfp,
359 int tf_tcam_alloc_search(struct tf *tfp,
376 int tf_tcam_set(struct tf *tfp,
393 int tf_tcam_get(struct tf *tfp,
409 int tf_tcam_get_resc_info(struct tf *tfp,
H A Dtf_em_host.c288 tf_em_ctx_unreg(struct tf *tfp, in tf_em_ctx_unreg() argument
323 tf_em_ctx_reg(struct tf *tfp, in tf_em_ctx_reg() argument
346 rc = tf_msg_em_mem_rgtr(tfp, in tf_em_ctx_reg()
363 tf_em_ext_alloc(struct tf *tfp, in tf_em_ext_alloc() argument
396 rc = tfp_get_pf(tfp, &pf); in tf_em_ext_alloc()
433 rc = tf_msg_em_qcaps(tfp, in tf_em_ext_alloc()
465 rc = tf_msg_em_cfg(tfp, in tf_em_ext_alloc()
481 rc = tf_msg_em_op(tfp, in tf_em_ext_alloc()
518 tf_em_ext_free(tfp, &free_parms); in tf_em_ext_alloc()
537 tf_em_ext_free(struct tf *tfp, in tf_em_ext_free() argument
[all …]
H A Dtf_em_common.c178 tf_tbl_ext_alloc(struct tf *tfp, in tf_tbl_ext_alloc() argument
186 TF_CHECK_PARMS2(tfp, parms); in tf_tbl_ext_alloc()
231 tf_tbl_ext_free(struct tf *tfp, in tf_tbl_ext_free() argument
239 TF_CHECK_PARMS2(tfp, parms); in tf_tbl_ext_free()
913 tf_em_ext_common_bind(struct tf *tfp, in tf_em_ext_common_bind() argument
922 TF_CHECK_PARMS2(tfp, parms); in tf_em_ext_common_bind()
983 TF_CHECK_PARMS1(tfp); in tf_em_ext_common_unbind()
1035 rc = tf_rm_free_db(tfp, &fparms); in tf_em_ext_common_unbind()
1076 TF_CHECK_PARMS2(tfp, parms); in tf_tbl_ext_common_set()
1122 return tf_em_ext_alloc(tfp, parms); in tf_em_ext_common_alloc()
[all …]
H A Dtf_identifier.h138 int tf_ident_bind(struct tf *tfp,
154 int tf_ident_unbind(struct tf *tfp);
169 int tf_ident_alloc(struct tf *tfp,
185 int tf_ident_free(struct tf *tfp,
201 int tf_ident_search(struct tf *tfp,
217 int tf_ident_get_resc_info(struct tf *tfp,

12