| /f-stack/dpdk/drivers/net/bnxt/tf_core/ |
| H A D | tf_device.h | 88 int tf_dev_bind(struct tf *tfp, 108 int tf_dev_unbind(struct tf *tfp, 198 int (*tf_dev_free_ident)(struct tf *tfp, 238 int (*tf_dev_alloc_tbl)(struct tf *tfp, 277 int (*tf_dev_free_tbl)(struct tf *tfp, 337 int (*tf_dev_set_tbl)(struct tf *tfp, 375 int (*tf_dev_get_tbl)(struct tf *tfp, 433 int (*tf_dev_free_tcam)(struct tf *tfp, 456 (struct tf *tfp, 475 int (*tf_dev_set_tcam)(struct tf *tfp, [all …]
|
| H A D | tf_msg.h | 36 int tf_msg_session_open(struct tf *tfp, 57 int tf_msg_session_attach(struct tf *tfp, 106 int tf_msg_session_close(struct tf *tfp); 117 int tf_msg_session_qcfg(struct tf *tfp); 258 int tf_msg_em_mem_rgtr(struct tf *tfp, 276 int tf_msg_em_mem_unrgtr(struct tf *tfp, 294 int tf_msg_em_qcaps(struct tf *tfp, 330 int tf_msg_em_cfg(struct tf *tfp, 354 int tf_msg_em_op(struct tf *tfp, 412 int tf_msg_set_tbl_entry(struct tf *tfp, [all …]
|
| H A D | tf_session.c | 60 TF_CHECK_PARMS2(tfp, parms); in tf_session_create() 63 rc = tf_msg_session_open(tfp, in tf_session_create() 171 rc = tf_dev_bind(tfp, in tf_session_create() 186 tfp_free(tfp->session); in tf_session_create() 187 tfp->session = NULL; in tf_session_create() 236 (tfp, in tf_session_client_create() 268 (tfp, in tf_session_client_create() 348 (tfp, in tf_session_client_destroy() 561 tfp_free(tfp->session); in tf_session_close_session() 562 tfp->session = NULL; in tf_session_close_session() [all …]
|
| H A D | tf_em.h | 181 int tf_em_insert_int_entry(struct tf *tfp, 197 int tf_em_delete_int_entry(struct tf *tfp, 277 int tf_em_int_bind(struct tf *tfp, 293 int tf_em_int_unbind(struct tf *tfp); 309 int tf_em_ext_common_bind(struct tf *tfp, 341 int tf_em_ext_alloc(struct tf *tfp, 357 int tf_em_ext_free(struct tf *tfp, 421 tf_tbl_ext_alloc(struct tf *tfp, 441 tf_tbl_ext_free(struct tf *tfp, 479 int tf_tbl_ext_set(struct tf *tfp, [all …]
|
| H A D | tf_device.c | 36 tf_dev_bind_p4(struct tf *tfp, in tf_dev_bind_p4() argument 70 rc = tf_tbl_bind(tfp, &tbl_cfg); in tf_dev_bind_p4() 152 frc = tf_dev_unbind_p4(tfp); in tf_dev_bind_p4() 182 rc = tf_tcam_unbind(tfp); in tf_dev_unbind_p4() 189 rc = tf_ident_unbind(tfp); in tf_dev_unbind_p4() 196 rc = tf_tbl_unbind(tfp); in tf_dev_unbind_p4() 210 rc = tf_em_int_unbind(tfp); in tf_dev_unbind_p4() 217 rc = tf_if_tbl_unbind(tfp); in tf_dev_unbind_p4() 248 return tf_dev_bind_p4(tfp, in tf_dev_bind() 260 tf_dev_unbind(struct tf *tfp, in tf_dev_unbind() argument [all …]
|
| H A D | tf_core.c | 24 tf_open_session(struct tf *tfp, in tf_open_session() argument 31 TF_CHECK_PARMS2(tfp, parms); in tf_open_session() 101 TF_CHECK_PARMS2(tfp, parms); in tf_attach_session() 164 TF_CHECK_PARMS1(tfp); in tf_close_session() 199 TF_CHECK_PARMS2(tfp, parms); in tf_insert_em_entry() 254 TF_CHECK_PARMS2(tfp, parms); in tf_delete_em_entry() 307 TF_CHECK_PARMS2(tfp, parms); in tf_get_global_cfg() 369 TF_CHECK_PARMS2(tfp, parms); in tf_set_global_cfg() 428 TF_CHECK_PARMS2(tfp, parms); in tf_alloc_identifier() 488 TF_CHECK_PARMS2(tfp, parms); in tf_free_identifier() [all …]
|
| H A D | tfp.c | 31 tfp_send_msg_direct(struct tf *tfp, in tfp_send_msg_direct() argument 43 rc = bnxt_hwrm_tf_message_direct(container_of(tfp, in tfp_send_msg_direct() 45 tfp), in tfp_send_msg_direct() 63 tfp_send_msg_tunneled(struct tf *tfp, in tfp_send_msg_tunneled() argument 77 tfp), in tfp_send_msg_tunneled() 166 tfp_get_fid(struct tf *tfp, uint16_t *fw_fid) in tfp_get_fid() argument 170 if (tfp == NULL || fw_fid == NULL) in tfp_get_fid() 173 bp = container_of(tfp, struct bnxt, tfp); in tfp_get_fid() 183 tfp_get_pf(struct tf *tfp, uint16_t *pf) in tfp_get_pf() argument 187 if (tfp == NULL || pf == NULL) in tfp_get_pf() [all …]
|
| H A D | tf_core.h | 604 int tf_open_session(struct tf *tfp, 678 int tf_attach_session(struct tf *tfp, 694 int tf_close_session(struct tf *tfp); 797 int tf_free_identifier(struct tf *tfp, 981 int tf_map_tbl_scope(struct tf *tfp, 993 int tf_free_tbl_scope(struct tf *tfp, 1218 int tf_set_tcam_entry(struct tf *tfp, 1268 int tf_get_tcam_entry(struct tf *tfp, 1522 int tf_free_tbl_entry(struct tf *tfp, 1564 int tf_set_tbl_entry(struct tf *tfp, [all …]
|
| H A D | tf_msg.c | 139 rc = tfp_send_msg_direct(tfp, in tf_msg_session_open() 191 rc = tfp_send_msg_direct(tfp, in tf_msg_session_client_register() 231 rc = tfp_send_msg_direct(tfp, in tf_msg_session_client_unregister() 264 rc = tfp_send_msg_direct(tfp, in tf_msg_session_close() 296 rc = tfp_send_msg_direct(tfp, in tf_msg_session_qcfg() 524 TF_CHECK_PARMS2(tfp, resv); in tf_msg_session_resc_flush() 631 rc = tfp_send_msg_direct(tfp, in tf_msg_insert_em_internal_entry() 679 rc = tfp_send_msg_direct(tfp, in tf_msg_delete_em_entry() 712 rc = tfp_send_msg_direct(tfp, in tf_msg_em_mem_rgtr() 784 tf_msg_em_cfg(struct tf *tfp, in tf_msg_em_cfg() argument [all …]
|
| H A D | tf_if_tbl.c | 68 tf_if_tbl_bind(struct tf *tfp __rte_unused, in tf_if_tbl_bind() 71 TF_CHECK_PARMS2(tfp, parms); in tf_if_tbl_bind() 91 tf_if_tbl_unbind(struct tf *tfp __rte_unused) in tf_if_tbl_unbind() 108 tf_if_tbl_set(struct tf *tfp, in tf_if_tbl_set() argument 114 TF_CHECK_PARMS3(tfp, parms, parms->data); in tf_if_tbl_set() 131 rc = tf_msg_set_if_tbl_entry(tfp, parms); in tf_if_tbl_set() 144 tf_if_tbl_get(struct tf *tfp, in tf_if_tbl_get() argument 150 TF_CHECK_PARMS3(tfp, parms, parms->data); in tf_if_tbl_get() 168 rc = tf_msg_get_if_tbl_entry(tfp, parms); in tf_if_tbl_get()
|
| H A D | tf_session.h | 226 int tf_session_open_session(struct tf *tfp, 242 int tf_session_attach_session(struct tf *tfp, 260 int tf_session_close_session(struct tf *tfp, 298 int tf_session_get_session_internal(struct tf *tfp, 315 int tf_session_get_session(struct tf *tfp, 394 int tf_session_get_fw_session_id(struct tf *tfp, 410 int tf_session_get_session_id(struct tf *tfp,
|
| H A D | tf_global_cfg.c | 75 tf_global_cfg_bind(struct tf *tfp __rte_unused, in tf_global_cfg_bind() 78 TF_CHECK_PARMS2(tfp, parms); in tf_global_cfg_bind() 98 tf_global_cfg_unbind(struct tf *tfp __rte_unused) in tf_global_cfg_unbind() 115 tf_global_cfg_set(struct tf *tfp, in tf_global_cfg_set() argument 122 TF_CHECK_PARMS3(tfp, parms, parms->config); in tf_global_cfg_set() 145 rc = tf_msg_set_global_cfg(tfp, parms); in tf_global_cfg_set() 158 tf_global_cfg_get(struct tf *tfp, in tf_global_cfg_get() argument 166 TF_CHECK_PARMS3(tfp, parms, parms->config); in tf_global_cfg_get() 189 rc = tf_msg_get_global_cfg(tfp, parms); in tf_global_cfg_get()
|
| H A D | tf_tcam.c | 42 tf_tcam_bind(struct tf *tfp, in tf_tcam_bind() argument 56 TF_CHECK_PARMS2(tfp, parms); in tf_tcam_bind() 160 tf_tcam_unbind(struct tf *tfp) in tf_tcam_unbind() argument 167 TF_CHECK_PARMS1(tfp); in tf_tcam_unbind() 180 rc = tf_rm_free_db(tfp, &fparms); in tf_tcam_unbind() 202 tf_tcam_alloc(struct tf *tfp, in tf_tcam_alloc() argument 211 TF_CHECK_PARMS2(tfp, parms); in tf_tcam_alloc() 281 tf_tcam_free(struct tf *tfp, in tf_tcam_free() argument 294 TF_CHECK_PARMS2(tfp, parms); in tf_tcam_free() 459 TF_CHECK_PARMS2(tfp, parms); in tf_tcam_alloc_search() [all …]
|
| H A D | tf_tbl.h | 296 int tf_tbl_bind(struct tf *tfp, 312 int tf_tbl_unbind(struct tf *tfp); 327 int tf_tbl_alloc(struct tf *tfp, 346 int tf_tbl_free(struct tf *tfp, 365 int tf_tbl_alloc_search(struct tf *tfp, 382 int tf_tbl_set(struct tf *tfp, 399 int tf_tbl_get(struct tf *tfp, 416 int tf_tbl_bulk_get(struct tf *tfp,
|
| H A D | tf_tbl.c | 44 tf_tbl_bind(struct tf *tfp, in tf_tbl_bind() argument 56 TF_CHECK_PARMS2(tfp, parms); in tf_tbl_bind() 152 tf_tbl_unbind(struct tf *tfp) in tf_tbl_unbind() argument 159 TF_CHECK_PARMS1(tfp); in tf_tbl_unbind() 199 TF_CHECK_PARMS2(tfp, parms); in tf_tbl_alloc() 236 TF_CHECK_PARMS2(tfp, parms); in tf_tbl_free() 323 TF_CHECK_PARMS2(tfp, parms); in tf_tbl_alloc_search() 432 tf_tbl_set(struct tf *tfp, in tf_tbl_set() argument 482 rc = tf_msg_set_tbl_entry(tfp, in tf_tbl_set() 501 tf_tbl_get(struct tf *tfp, in tf_tbl_get() argument [all …]
|
| H A D | tf_tcam.h | 269 int tf_tcam_bind(struct tf *tfp, 285 int tf_tcam_unbind(struct tf *tfp); 300 int tf_tcam_alloc(struct tf *tfp, 319 int tf_tcam_free(struct tf *tfp, 338 int tf_tcam_alloc_search(struct tf *tfp, 355 int tf_tcam_set(struct tf *tfp, 372 int tf_tcam_get(struct tf *tfp,
|
| H A D | tfp.h | 139 int tfp_send_msg_direct(struct tf *tfp, 155 int tfp_send_msg_tunneled(struct tf *tfp, 170 tfp_msg_hwrm_oem_cmd(struct tf *tfp, 185 tfp_msg_hwrm_oem_cmd(struct tf *tfp, 222 int tfp_get_fid(struct tf *tfp, uint16_t *fw_fid); 269 int tfp_get_fid(struct tf *tfp, uint16_t *fw_fid); 285 int tfp_get_pf(struct tf *tfp, uint16_t *pf);
|
| H A D | tf_identifier.h | 128 int tf_ident_bind(struct tf *tfp, 144 int tf_ident_unbind(struct tf *tfp); 159 int tf_ident_alloc(struct tf *tfp, 175 int tf_ident_free(struct tf *tfp, 191 int tf_ident_search(struct tf *tfp,
|
| H A D | tf_identifier.c | 38 tf_ident_bind(struct tf *tfp, in tf_ident_bind() argument 47 TF_CHECK_PARMS2(tfp, parms); in tf_ident_bind() 63 rc = tf_rm_create_db(tfp, &db_cfg); in tf_ident_bind() 99 tf_ident_unbind(struct tf *tfp) in tf_ident_unbind() argument 106 TF_CHECK_PARMS1(tfp); in tf_ident_unbind() 118 rc = tf_rm_free_db(tfp, &fparms); in tf_ident_unbind() 144 tf_ident_alloc(struct tf *tfp __rte_unused, in tf_ident_alloc() 153 TF_CHECK_PARMS2(tfp, parms); in tf_ident_alloc() 197 tf_ident_free(struct tf *tfp __rte_unused, in tf_ident_free() 207 TF_CHECK_PARMS2(tfp, parms); in tf_ident_free() [all …]
|
| H A D | tf_em_host.c | 295 tf_em_ctx_unreg(struct tf *tfp, in tf_em_ctx_unreg() argument 330 tf_em_ctx_reg(struct tf *tfp, in tf_em_ctx_reg() argument 353 rc = tf_msg_em_mem_rgtr(tfp, in tf_em_ctx_reg() 365 tf_em_ctx_unreg(tfp, tbl_scope_cb, dir); in tf_em_ctx_reg() 395 rc = tfp_get_pf(tfp, &tbl_scope_cb->pf); in tf_em_ext_alloc() 404 rc = tf_msg_em_qcaps(tfp, in tf_em_ext_alloc() 436 rc = tf_msg_em_cfg(tfp, in tf_em_ext_alloc() 452 rc = tf_msg_em_op(tfp, in tf_em_ext_alloc() 485 tf_em_ext_free(tfp, &free_parms); in tf_em_ext_alloc() 498 tf_em_ext_free(struct tf *tfp, in tf_em_ext_free() argument [all …]
|
| H A D | tf_em_internal.c | 152 tf_em_insert_int_entry(struct tf *tfp, in tf_em_insert_int_entry() argument 173 rc = tf_msg_insert_em_internal_entry(tfp, in tf_em_insert_int_entry() 221 tf_em_delete_int_entry(struct tf *tfp, in tf_em_delete_int_entry() argument 227 rc = tf_msg_delete_em_entry(tfp, parms); in tf_em_delete_int_entry() 237 tf_em_int_bind(struct tf *tfp, in tf_em_int_bind() argument 247 TF_CHECK_PARMS2(tfp, parms); in tf_em_int_bind() 282 rc = tf_rm_create_db(tfp, &db_cfg); in tf_em_int_bind() 322 tf_em_int_unbind(struct tf *tfp) in tf_em_int_unbind() argument 328 TF_CHECK_PARMS1(tfp); in tf_em_int_unbind() 344 rc = tf_rm_free_db(tfp, &fparms); in tf_em_int_unbind()
|
| H A D | tf_global_cfg.h | 99 tf_global_cfg_bind(struct tf *tfp, 116 tf_global_cfg_unbind(struct tf *tfp); 131 int tf_global_cfg_set(struct tf *tfp, 147 int tf_global_cfg_get(struct tf *tfp,
|
| H A D | tf_if_tbl.h | 184 int tf_if_tbl_bind(struct tf *tfp, 200 int tf_if_tbl_unbind(struct tf *tfp); 216 int tf_if_tbl_set(struct tf *tfp, 233 int tf_if_tbl_get(struct tf *tfp,
|
| H A D | tf_em_common.c | 175 tf_tbl_ext_alloc(struct tf *tfp, in tf_tbl_ext_alloc() argument 183 TF_CHECK_PARMS2(tfp, parms); in tf_tbl_ext_alloc() 230 tf_tbl_ext_free(struct tf *tfp, in tf_tbl_ext_free() argument 238 TF_CHECK_PARMS2(tfp, parms); in tf_tbl_ext_free() 883 tf_em_ext_common_bind(struct tf *tfp, in tf_em_ext_common_bind() argument 891 TF_CHECK_PARMS2(tfp, parms); in tf_em_ext_common_bind() 940 TF_CHECK_PARMS1(tfp); in tf_em_ext_common_unbind() 952 rc = tf_rm_free_db(tfp, &fparms); in tf_em_ext_common_unbind() 990 TF_CHECK_PARMS2(tfp, parms); in tf_tbl_ext_common_set() 1040 return tf_em_ext_alloc(tfp, parms); in tf_em_ext_common_alloc() [all …]
|
| /f-stack/dpdk/drivers/net/bnxt/tf_ulp/ |
| H A D | ulp_mapper.c | 91 struct tf *tfp; in ulp_mapper_resource_ident_allocate() local 95 if (!tfp) in ulp_mapper_resource_ident_allocate() 139 struct tf *tfp; in ulp_mapper_resource_index_tbl_alloc() local 144 if (!tfp) in ulp_mapper_resource_index_tbl_alloc() 619 if (!tfp) { in ulp_mapper_ident_process() 704 if (!tfp) { in ulp_mapper_ident_extract() 1450 if (!tfp) { in ulp_mapper_tcam_tbl_entry_write() 1548 if (!tfp) { in ulp_mapper_tcam_tbl_process() 2591 if (!tfp) { in ulp_mapper_resource_free() 2915 if (!tfp) in ulp_mapper_init() [all …]
|