• Home
  • Raw
  • Download

Lines Matching refs:tbl

421 	struct bnxt_qplib_hwq *tbl;  in bnxt_qplib_map_tqm_pgtbl()  local
432 tbl = &ctx->qtbl[i]; in bnxt_qplib_map_tqm_pgtbl()
433 if (!tbl->max_elements) in bnxt_qplib_map_tqm_pgtbl()
437 switch (tbl->level) { in bnxt_qplib_map_tqm_pgtbl()
439 pg_count = tbl->pbl[PBL_LVL_1].pg_count; in bnxt_qplib_map_tqm_pgtbl()
442 dma_ptr = &tbl->pbl[PBL_LVL_1].pg_map_arr[k]; in bnxt_qplib_map_tqm_pgtbl()
450 *ptr = cpu_to_le64(tbl->pbl[PBL_LVL_0].pg_map_arr[0] | in bnxt_qplib_map_tqm_pgtbl()
586 kfree(sgid_tbl->tbl); in bnxt_qplib_free_sgid_tbl()
590 sgid_tbl->tbl = NULL; in bnxt_qplib_free_sgid_tbl()
602 sgid_tbl->tbl = kcalloc(max, sizeof(*sgid_tbl->tbl), GFP_KERNEL); in bnxt_qplib_alloc_sgid_tbl()
603 if (!sgid_tbl->tbl) in bnxt_qplib_alloc_sgid_tbl()
627 kfree(sgid_tbl->tbl); in bnxt_qplib_alloc_sgid_tbl()
628 sgid_tbl->tbl = NULL; in bnxt_qplib_alloc_sgid_tbl()
638 if (memcmp(&sgid_tbl->tbl[i], &bnxt_qplib_gid_zero, in bnxt_qplib_cleanup_sgid_tbl()
640 bnxt_qplib_del_sgid(sgid_tbl, &sgid_tbl->tbl[i].gid, in bnxt_qplib_cleanup_sgid_tbl()
641 sgid_tbl->tbl[i].vlan_id, true); in bnxt_qplib_cleanup_sgid_tbl()
643 memset(sgid_tbl->tbl, 0, sizeof(*sgid_tbl->tbl) * sgid_tbl->max); in bnxt_qplib_cleanup_sgid_tbl()
655 sgid_tbl->tbl[i].vlan_id = 0xffff; in bnxt_qplib_init_sgid_tbl()
663 if (!pkey_tbl->tbl) in bnxt_qplib_free_pkey_tbl()
666 kfree(pkey_tbl->tbl); in bnxt_qplib_free_pkey_tbl()
668 pkey_tbl->tbl = NULL; in bnxt_qplib_free_pkey_tbl()
677 pkey_tbl->tbl = kcalloc(max, sizeof(u16), GFP_KERNEL); in bnxt_qplib_alloc_pkey_tbl()
678 if (!pkey_tbl->tbl) in bnxt_qplib_alloc_pkey_tbl()
690 bit_num = find_first_bit(pdt->tbl, pdt->max); in bnxt_qplib_alloc_pd()
695 clear_bit(bit_num, pdt->tbl); in bnxt_qplib_alloc_pd()
704 if (test_and_set_bit(pd->id, pdt->tbl)) { in bnxt_qplib_dealloc_pd()
715 kfree(pdt->tbl); in bnxt_qplib_free_pd_tbl()
716 pdt->tbl = NULL; in bnxt_qplib_free_pd_tbl()
729 pdt->tbl = kmalloc(bytes, GFP_KERNEL); in bnxt_qplib_alloc_pd_tbl()
730 if (!pdt->tbl) in bnxt_qplib_alloc_pd_tbl()
734 memset((u8 *)pdt->tbl, 0xFF, bytes); in bnxt_qplib_alloc_pd_tbl()
746 bit_num = find_first_bit(dpit->tbl, dpit->max); in bnxt_qplib_alloc_dpi()
751 clear_bit(bit_num, dpit->tbl); in bnxt_qplib_alloc_dpi()
769 if (test_and_set_bit(dpi->dpi, dpit->tbl)) { in bnxt_qplib_dealloc_dpi()
784 kfree(dpit->tbl); in bnxt_qplib_free_dpi_tbl()
837 dpit->tbl = kmalloc(bytes, GFP_KERNEL); in bnxt_qplib_alloc_dpi_tbl()
838 if (!dpit->tbl) { in bnxt_qplib_alloc_dpi_tbl()
844 memset((u8 *)dpit->tbl, 0xFF, bytes); in bnxt_qplib_alloc_dpi_tbl()
857 memset(pkey_tbl->tbl, 0, sizeof(u16) * pkey_tbl->max); in bnxt_qplib_cleanup_pkey_tbl()
866 memset(pkey_tbl->tbl, 0, sizeof(u16) * pkey_tbl->max); in bnxt_qplib_init_pkey_tbl()