Lines Matching refs:pdt
636 struct bnxt_qplib_pd_tbl *pdt = &res->pd_tbl;
641 bit_num = find_first_bit(pdt->tbl, pdt->max);
642 if (bit_num == pdt->max) {
648 clear_bit(bit_num, pdt->tbl);
656 struct bnxt_qplib_pd_tbl *pdt,
662 if (test_and_set_bit(pd->id, pdt->tbl)) {
674 static void bnxt_qplib_free_pd_tbl(struct bnxt_qplib_pd_tbl *pdt)
676 kfree(pdt->tbl);
677 pdt->tbl = NULL;
678 pdt->max = 0;
682 struct bnxt_qplib_pd_tbl *pdt,
690 pdt->tbl = kmalloc(bytes, GFP_KERNEL);
691 if (!pdt->tbl)
694 pdt->max = max;
695 memset((u8 *)pdt->tbl, 0xFF, bytes);