Home
last modified time | relevance | path

Searched refs:bt_l0 (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/drivers/infiniband/hw/hns/
Dhns_roce_hem.c426 !table->bt_l0[bt_l0_idx]) { in hns_roce_table_mhop_get()
427 table->bt_l0[bt_l0_idx] = dma_alloc_coherent(dev, bt_chunk_size, in hns_roce_table_mhop_get()
430 if (!table->bt_l0[bt_l0_idx]) { in hns_roce_table_mhop_get()
458 *(table->bt_l0[bt_l0_idx] + mhop.l1_idx) = in hns_roce_table_mhop_get()
493 *(table->bt_l0[bt_l0_idx] + mhop.l1_idx) = bt_ba; in hns_roce_table_mhop_get()
509 *(table->bt_l0[bt_l0_idx] + mhop.l1_idx) = bt_ba; in hns_roce_table_mhop_get()
524 dma_free_coherent(dev, bt_chunk_size, table->bt_l0[bt_l0_idx], in hns_roce_table_mhop_get()
526 table->bt_l0[bt_l0_idx] = NULL; in hns_roce_table_mhop_get()
658 table->bt_l0[mhop.l0_idx], in hns_roce_table_mhop_put()
660 table->bt_l0[mhop.l0_idx] = NULL; in hns_roce_table_mhop_put()
[all …]
Dhns_roce_hw_v2.c4201 return (struct hns_roce_aeqe *)((u8 *)(eq->bt_l0) + in mhop_get_aeqe()
4336 return (struct hns_roce_ceqe *)((u8 *)(eq->bt_l0) + in mhop_get_ceqe()
4520 eq->eqe_size), eq->bt_l0, eq->l0_dma); in hns_roce_mhop_free_eq()
4525 dma_free_coherent(dev, bt_chk_sz, eq->bt_l0, eq->l0_dma); in hns_roce_mhop_free_eq()
4771 eq->bt_l0 = dma_alloc_coherent(dev, eq->entries * eq->eqe_size, in hns_roce_mhop_alloc_eq()
4773 if (!eq->bt_l0) in hns_roce_mhop_alloc_eq()
4779 memset(eq->bt_l0, 0, eq->entries * eq->eqe_size); in hns_roce_mhop_alloc_eq()
4802 eq->bt_l0 = dma_alloc_coherent(dev, bt_chk_sz, &eq->l0_dma, GFP_KERNEL); in hns_roce_mhop_alloc_eq()
4803 if (!eq->bt_l0) in hns_roce_mhop_alloc_eq()
4826 *(eq->bt_l0 + i) = eq->buf_dma[i]; in hns_roce_mhop_alloc_eq()
[all …]
Dhns_roce_device.h285 u64 **bt_l0; member
636 u64 *bt_l0; /* Base address table for L0 */ member