Home
last modified time | relevance | path

Searched refs:tfs (Results 1 – 18 of 18) sorted by relevance

/dpdk/drivers/net/bnxt/tf_core/
H A Dtf_session.c370 struct tf_session *tfs; in tf_session_client_destroy() local
401 tfs, in tf_session_client_destroy()
417 tfs->ref_count--; in tf_session_client_destroy()
568 tfs->ref_count); in tf_session_close_session()
619 tfs->ref_count--; in tf_session_close_session()
624 tfs->ref_count); in tf_session_close_session()
626 tfs->dev_init = false; in tf_session_close_session()
682 tfs); in tf_session_get_session()
735 if (tfs == NULL) in tf_session_get_session_client()
781 if (tfs == NULL) in tf_session_find_session_client_by_fid()
[all …]
H A Dtf_session.h372 tf_session_is_fid_supported(struct tf_session *tfs,
392 struct tf_session **tfs);
409 struct tf_session **tfs);
425 tf_session_get_session_client(struct tf_session *tfs,
455 tf_session_find_session_client_by_fid(struct tf_session *tfs,
471 int tf_session_get_device(struct tf_session *tfs,
491 struct tf_session **tfs,
602 tf_session_is_shared_session(struct tf_session *tfs) in tf_session_is_shared_session() argument
604 return tfs->shared_session; in tf_session_is_shared_session()
617 tf_session_is_shared_session_creator(struct tf_session *tfs) in tf_session_is_shared_session_creator() argument
[all …]
H A Dtf_em_internal.c42 struct tf_session *tfs; in tf_em_insert_int_entry() local
47 rc = tf_session_get_session(tfp, &tfs); in tf_em_insert_int_entry()
109 struct tf_session *tfs; in tf_em_delete_int_entry() local
112 rc = tf_session_get_session(tfp, &tfs); in tf_em_delete_int_entry()
141 struct tf_session *tfs; in tf_em_move_callback() local
162 rc = tf_session_get_device(tfs, &dev); in tf_em_move_callback()
191 struct tf_session *tfs; in tf_em_int_bind() local
289 rc = dpool_init(tfs->em_pool[i], in tf_em_int_bind()
319 struct tf_session *tfs; in tf_em_int_unbind() local
330 if (tfs->em_pool[i] == NULL) in tf_em_int_unbind()
[all …]
H A Dtf_core.c305 struct tf_session *tfs; in tf_get_global_cfg() local
367 struct tf_session *tfs; in tf_set_global_cfg() local
424 struct tf_session *tfs; in tf_alloc_identifier() local
485 struct tf_session *tfs; in tf_free_identifier() local
544 struct tf_session *tfs; in tf_search_identifier() local
604 struct tf_session *tfs; in tf_search_tcam_entry() local
677 struct tf_session *tfs; in tf_alloc_tcam_entry() local
737 struct tf_session *tfs; in tf_set_tcam_entry() local
802 struct tf_session *tfs; in tf_get_tcam_entry() local
868 struct tf_session *tfs; in tf_free_tcam_entry() local
[all …]
H A Dtf_em_hash_internal.c48 struct tf_session *tfs; in tf_em_hash_insert_int_entry() local
51 rc = tf_session_get_session_internal(tfp, &tfs); in tf_em_hash_insert_int_entry()
56 rc = tf_session_get_device(tfs, &dev); in tf_em_hash_insert_int_entry()
59 pool = (struct dpool *)tfs->em_pool[parms->dir]; in tf_em_hash_insert_int_entry()
125 struct tf_session *tfs; in tf_em_hash_delete_int_entry() local
128 rc = tf_session_get_session(tfp, &tfs); in tf_em_hash_delete_int_entry()
141 pool = (struct dpool *)tfs->em_pool[parms->dir]; in tf_em_hash_delete_int_entry()
160 struct tf_session *tfs; in tf_em_move_int_entry() local
163 rc = tf_session_get_session(tfp, &tfs); in tf_em_move_int_entry()
176 pool = (struct dpool *)tfs->em_pool[parms->dir]; in tf_em_move_int_entry()
H A Dtf_msg.c334 struct tf_session *tfs; in tf_msg_session_qcfg() local
472 struct tf_session *tfs; in tf_msg_session_resc_alloc() local
579 struct tf_session *tfs; in tf_msg_session_resc_info() local
683 struct tf_session *tfs; in tf_msg_session_resc_flush() local
767 struct tf_session *tfs; in tf_msg_insert_em_internal_entry() local
866 struct tf_session *tfs; in tf_msg_hash_insert_em_internal_entry() local
955 struct tf_session *tfs; in tf_msg_delete_em_entry() local
1023 struct tf_session *tfs; in tf_msg_move_em_entry() local
1093 struct tf_session *tfs; in tf_msg_ext_em_ctxt_mem_alloc() local
1153 struct tf_session *tfs; in tf_msg_ext_em_ctxt_mem_free() local
[all …]
H A Dtf_tbl.c34 struct tf_session *tfs; in tf_tbl_bind() local
67 if (tf_session_is_shared_session(tfs) && in tf_tbl_bind()
125 struct tf_session *tfs; in tf_tbl_alloc() local
138 rc = tf_session_get_device(tfs, &dev); in tf_tbl_alloc()
177 struct tf_session *tfs; in tf_tbl_free() local
190 rc = tf_session_get_device(tfs, &dev); in tf_tbl_free()
284 struct tf_session *tfs; in tf_tbl_set() local
297 rc = tf_session_get_device(tfs, &dev); in tf_tbl_set()
375 struct tf_session *tfs; in tf_tbl_get() local
467 struct tf_session *tfs; in tf_tbl_bulk_get() local
[all …]
H A Dtf_tcam_shared.c251 struct tf_session *tfs; in tf_tcam_shared_bind() local
278 rc = tf_session_get_device(tfs, &dev); in tf_tcam_shared_bind()
345 struct tf_session *tfs; in tf_tcam_shared_unbind() local
389 rc = tf_session_get_device(tfs, &dev); in tf_tcam_shared_unbind()
481 struct tf_session *tfs; in tf_tcam_shared_alloc() local
531 rc = tf_session_get_device(tfs, &dev); in tf_tcam_shared_alloc()
561 struct tf_session *tfs; in tf_tcam_shared_free() local
680 struct tf_session *tfs; in tf_tcam_shared_set() local
790 struct tf_session *tfs; in tf_tcam_shared_get() local
1024 struct tf_session *tfs; in tf_tcam_shared_move() local
[all …]
H A Dtf_device.c100 struct tf_session *tfs; in tf_dev_bind_p4() local
103 rc = tf_session_get_session_internal(tfp, &tfs); in tf_dev_bind_p4()
234 if (!tf_session_is_shared_session(tfs)) { in tf_dev_bind_p4()
276 struct tf_session *tfs; in tf_dev_unbind_p4() local
279 rc = tf_session_get_session_internal(tfp, &tfs); in tf_dev_unbind_p4()
329 if (!tf_session_is_shared_session(tfs)) { in tf_dev_unbind_p4()
387 struct tf_session *tfs; in tf_dev_bind_p58() local
393 rc = tf_session_get_session_internal(tfp, &tfs); in tf_dev_bind_p58()
506 if (!tf_session_is_shared_session(tfs)) { in tf_dev_bind_p58()
549 struct tf_session *tfs; in tf_dev_unbind_p58() local
[all …]
H A Dtf_tcam.c47 struct tf_session *tfs; in tf_tcam_bind() local
60 rc = tf_session_get_device(tfs, &dev); in tf_tcam_bind()
109 if (tf_session_is_shared_session(tfs) && in tf_tcam_bind()
260 struct tf_session *tfs; in tf_tcam_alloc() local
276 rc = tf_session_get_device(tfs, &dev); in tf_tcam_alloc()
342 struct tf_session *tfs; in tf_tcam_free() local
362 rc = tf_session_get_device(tfs, &dev); in tf_tcam_free()
500 struct tf_session *tfs; in tf_tcam_alloc_search() local
519 rc = tf_session_get_device(tfs, &dev); in tf_tcam_alloc_search()
618 struct tf_session *tfs; in tf_tcam_set() local
[all …]
H A Dtf_tbl_sram.c187 struct tf_session *tfs; in tf_tbl_sram_alloc() local
198 rc = tf_session_get(tfp, &tfs, &dev); in tf_tbl_sram_alloc()
271 struct tf_session *tfs; in tf_tbl_sram_free() local
284 rc = tf_session_get(tfp, &tfs, &dev); in tf_tbl_sram_free()
398 struct tf_session *tfs; in tf_tbl_sram_set() local
411 rc = tf_session_get(tfp, &tfs, &dev); in tf_tbl_sram_set()
445 if (tf_session_is_shared_session(tfs)) { in tf_tbl_sram_set()
535 struct tf_session *tfs; in tf_tbl_sram_get() local
547 rc = tf_session_get(tfp, &tfs, &dev); in tf_tbl_sram_get()
642 struct tf_session *tfs; in tf_tbl_sram_bulk_get() local
[all …]
H A Dtf_device_p4.c246 struct tf_session *tfs = NULL; in tf_dev_p4_set_tcam_slice_info() local
249 rc = tf_session_get_session_internal(tfp, &tfs); in tf_dev_p4_set_tcam_slice_info()
257 tfs->wc_num_slices_per_row = num_slices_per_row; in tf_dev_p4_set_tcam_slice_info()
293 struct tf_session *tfs; in tf_dev_p4_get_tcam_slice_info() local
296 rc = tf_session_get_session_internal(tfp, &tfs); in tf_dev_p4_get_tcam_slice_info()
304 *num_slices_per_row = tfs->wc_num_slices_per_row; in tf_dev_p4_get_tcam_slice_info()
H A Dtf_device_p58.c357 struct tf_session *tfs = NULL; in tf_dev_p58_set_tcam_slice_info() local
360 rc = tf_session_get_session_internal(tfp, &tfs); in tf_dev_p58_set_tcam_slice_info()
368 tfs->wc_num_slices_per_row = num_slices_per_row; in tf_dev_p58_set_tcam_slice_info()
404 struct tf_session *tfs = NULL; in tf_dev_p58_get_tcam_slice_info() local
407 rc = tf_session_get_session_internal(tfp, &tfs); in tf_dev_p58_get_tcam_slice_info()
413 *num_slices_per_row = tfs->wc_num_slices_per_row; in tf_dev_p58_get_tcam_slice_info()
H A Dtf_em_common.c865 struct tf_session *tfs; in tf_em_insert_ext_entry() local
875 rc = tf_session_get_session_internal(tfp, &tfs); in tf_em_insert_ext_entry()
880 rc = tf_session_get_device(tfs, &dev); in tf_em_insert_ext_entry()
976 struct tf_session *tfs = NULL; in tf_em_ext_common_unbind() local
985 rc = tf_session_get_session_internal(tfp, &tfs); in tf_em_ext_common_unbind()
993 rc = tf_session_get_device(tfs, &dev); in tf_em_ext_common_unbind()
1136 struct tf_session *tfs; in tf_em_ext_map_tbl_scope() local
1145 rc = tf_session_get_session_internal(tfp, &tfs); in tf_em_ext_map_tbl_scope()
1150 rc = tf_session_get_device(tfs, &dev); in tf_em_ext_map_tbl_scope()
H A Dtf_identifier.c40 struct tf_session *tfs; in tf_ident_bind() local
45 rc = tf_session_get_session_internal(tfp, &tfs); in tf_ident_bind()
72 if (tf_session_is_shared_session(tfs) && in tf_ident_bind()
73 (!tf_session_is_shared_session_creator(tfs))) in tf_ident_bind()
H A Dtf_rm.c509 struct tf_session *tfs; in tf_rm_create_db() local
526 rc = tf_session_get_session_internal(tfp, &tfs); in tf_rm_create_db()
531 rc = tf_session_get_device(tfs, &dev); in tf_rm_create_db()
574 shared_session = tf_session_is_shared_session(tfs); in tf_rm_create_db()
749 !tf_session_is_shared_session(tfs)); in tf_rm_create_db()
805 struct tf_session *tfs; in tf_rm_create_db_no_reservation() local
819 rc = tf_session_get_session_internal(tfp, &tfs); in tf_rm_create_db_no_reservation()
824 rc = tf_session_get_device(tfs, &dev); in tf_rm_create_db_no_reservation()
989 !tf_session_is_shared_session(tfs)); in tf_rm_create_db_no_reservation()
H A Dtf_em_host.c374 struct tf_session *tfs = NULL; in tf_em_ext_alloc() local
380 rc = tf_session_get_session_internal(tfp, &tfs); in tf_em_ext_alloc()
543 struct tf_session *tfs; in tf_em_ext_free() local
548 rc = tf_session_get_session_internal(tfp, &tfs); in tf_em_ext_free()
H A Dtf_msg.h91 struct tf_session *tfs,
109 struct tf_session *tfs,