Lines Matching refs:cc_ctx
427 struct dp_hw_cookie_conversion_t *cc_ctx, in dp_hw_cookie_conversion_attach() argument
447 &cc_ctx->page_pool, qdf_page_size, in dp_hw_cookie_conversion_attach()
449 if (!cc_ctx->page_pool.dma_pages) { in dp_hw_cookie_conversion_attach()
453 cc_ctx->page_desc_base = qdf_mem_malloc( in dp_hw_cookie_conversion_attach()
455 if (!cc_ctx->page_desc_base) { in dp_hw_cookie_conversion_attach()
461 cc_ctx->cmem_offset = dp_desc_pool_get_cmem_base(chip_id, desc_pool_id, in dp_hw_cookie_conversion_attach()
465 spt_desc = cc_ctx->page_desc_base; in dp_hw_cookie_conversion_attach()
466 dma_page = cc_ctx->page_pool.dma_pages; in dp_hw_cookie_conversion_attach()
482 cc_ctx->total_page_num = num_spt_pages; in dp_hw_cookie_conversion_attach()
483 qdf_spinlock_create(&cc_ctx->cc_lock); in dp_hw_cookie_conversion_attach()
487 qdf_mem_free(cc_ctx->page_desc_base); in dp_hw_cookie_conversion_attach()
488 cc_ctx->page_desc_base = NULL; in dp_hw_cookie_conversion_attach()
491 &cc_ctx->page_pool, 0, false); in dp_hw_cookie_conversion_attach()
498 struct dp_hw_cookie_conversion_t *cc_ctx) in dp_hw_cookie_conversion_detach() argument
503 &cc_ctx->page_pool, 0, false); in dp_hw_cookie_conversion_detach()
504 if (cc_ctx->page_desc_base) in dp_hw_cookie_conversion_detach()
505 qdf_spinlock_destroy(&cc_ctx->cc_lock); in dp_hw_cookie_conversion_detach()
507 qdf_mem_free(cc_ctx->page_desc_base); in dp_hw_cookie_conversion_detach()
508 cc_ctx->page_desc_base = NULL; in dp_hw_cookie_conversion_detach()
515 struct dp_hw_cookie_conversion_t *cc_ctx) in dp_hw_cookie_conversion_init() argument
523 if (!cc_ctx->total_page_num) { in dp_hw_cookie_conversion_init()
528 ppt_id_start = DP_CMEM_OFFSET_TO_PPT_ID(cc_ctx->cmem_offset); in dp_hw_cookie_conversion_init()
529 spt_desc = cc_ctx->page_desc_base; in dp_hw_cookie_conversion_init()
530 while (i < cc_ctx->total_page_num) { in dp_hw_cookie_conversion_init()
533 (cc_ctx->cmem_offset + be_soc->cc_cmem_base in dp_hw_cookie_conversion_init()
555 struct dp_hw_cookie_conversion_t *cc_ctx) in dp_hw_cookie_conversion_deinit() argument
561 spt_desc = cc_ctx->page_desc_base; in dp_hw_cookie_conversion_deinit()
562 while (i < cc_ctx->total_page_num) { in dp_hw_cookie_conversion_deinit()
572 struct dp_hw_cookie_conversion_t *cc_ctx) in dp_hw_cookie_conversion_deinit() argument
579 spt_desc = cc_ctx->page_desc_base; in dp_hw_cookie_conversion_deinit()
580 while (i < cc_ctx->total_page_num) { in dp_hw_cookie_conversion_deinit()
583 (cc_ctx->cmem_offset + be_soc->cc_cmem_base in dp_hw_cookie_conversion_deinit()
891 struct dp_hw_cookie_conversion_t *cc_ctx; in dp_soc_tx_cookie_attach_be() local
904 cc_ctx = dp_global->tx_cc_ctx[i]; in dp_soc_tx_cookie_attach_be()
910 cc_ctx, in dp_soc_tx_cookie_attach_be()
962 struct dp_hw_cookie_conversion_t *cc_ctx; in dp_soc_tx_cookie_init_be() local
969 cc_ctx = dp_global->tx_cc_ctx[i]; in dp_soc_tx_cookie_init_be()
972 cc_ctx); in dp_soc_tx_cookie_init_be()