Home
last modified time | relevance | path

Searched refs:mpt_entry (Results 1 - 13 of 13) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
H A Dmr.c294 struct mlx4_mpt_entry ***mpt_entry) in mlx4_mr_hw_get_mpt()
313 **mpt_entry = mlx4_table_find( in mlx4_mr_hw_get_mpt()
328 *mpt_entry = (struct mlx4_mpt_entry **)&mailbox->buf; in mlx4_mr_hw_get_mpt()
331 if (!(*mpt_entry) || !(**mpt_entry)) { in mlx4_mr_hw_get_mpt()
345 struct mlx4_mpt_entry **mpt_entry) in mlx4_mr_hw_write_mpt()
353 *(u8 *)(*mpt_entry) = MLX4_MPT_STATUS_HW; in mlx4_mr_hw_write_mpt()
363 container_of((void *)mpt_entry, struct mlx4_cmd_mailbox, in mlx4_mr_hw_write_mpt()
366 (*mpt_entry)->lkey = 0; in mlx4_mr_hw_write_mpt()
371 mmr->pd = be32_to_cpu((*mpt_entry) in mlx4_mr_hw_write_mpt()
293 mlx4_mr_hw_get_mpt(struct mlx4_dev *dev, struct mlx4_mr *mmr, struct mlx4_mpt_entry ***mpt_entry) mlx4_mr_hw_get_mpt() argument
344 mlx4_mr_hw_write_mpt(struct mlx4_dev *dev, struct mlx4_mr *mmr, struct mlx4_mpt_entry **mpt_entry) mlx4_mr_hw_write_mpt() argument
378 mlx4_mr_hw_put_mpt(struct mlx4_dev *dev, struct mlx4_mpt_entry **mpt_entry) mlx4_mr_hw_put_mpt() argument
390 mlx4_mr_hw_change_pd(struct mlx4_dev *dev, struct mlx4_mpt_entry *mpt_entry, u32 pdn) mlx4_mr_hw_change_pd() argument
405 mlx4_mr_hw_change_access(struct mlx4_dev *dev, struct mlx4_mpt_entry *mpt_entry, u32 access) mlx4_mr_hw_change_access() argument
589 mlx4_mr_rereg_mem_write(struct mlx4_dev *dev, struct mlx4_mr *mr, u64 iova, u64 size, int npages, int page_shift, struct mlx4_mpt_entry *mpt_entry) mlx4_mr_rereg_mem_write() argument
630 struct mlx4_mpt_entry *mpt_entry; mlx4_mr_enable() local
841 struct mlx4_mpt_entry *mpt_entry; mlx4_mw_enable() local
[all...]
H A Dresource_tracker.c2894 struct mlx4_mpt_entry *mpt_entry = mlx4_table_find( in mlx4_QUERY_MPT_wrapper() local
2898 if (NULL == mpt_entry || NULL == outbox->buf) { in mlx4_QUERY_MPT_wrapper()
2903 memcpy(outbox->buf, mpt_entry, sizeof(*mpt_entry)); in mlx4_QUERY_MPT_wrapper()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/
H A Dmr.c294 struct mlx4_mpt_entry ***mpt_entry) in mlx4_mr_hw_get_mpt()
313 **mpt_entry = mlx4_table_find( in mlx4_mr_hw_get_mpt()
328 *mpt_entry = (struct mlx4_mpt_entry **)&mailbox->buf; in mlx4_mr_hw_get_mpt()
331 if (!(*mpt_entry) || !(**mpt_entry)) { in mlx4_mr_hw_get_mpt()
345 struct mlx4_mpt_entry **mpt_entry) in mlx4_mr_hw_write_mpt()
353 *(u8 *)(*mpt_entry) = MLX4_MPT_STATUS_HW; in mlx4_mr_hw_write_mpt()
363 container_of((void *)mpt_entry, struct mlx4_cmd_mailbox, in mlx4_mr_hw_write_mpt()
366 (*mpt_entry)->lkey = 0; in mlx4_mr_hw_write_mpt()
371 mmr->pd = be32_to_cpu((*mpt_entry) in mlx4_mr_hw_write_mpt()
293 mlx4_mr_hw_get_mpt(struct mlx4_dev *dev, struct mlx4_mr *mmr, struct mlx4_mpt_entry ***mpt_entry) mlx4_mr_hw_get_mpt() argument
344 mlx4_mr_hw_write_mpt(struct mlx4_dev *dev, struct mlx4_mr *mmr, struct mlx4_mpt_entry **mpt_entry) mlx4_mr_hw_write_mpt() argument
378 mlx4_mr_hw_put_mpt(struct mlx4_dev *dev, struct mlx4_mpt_entry **mpt_entry) mlx4_mr_hw_put_mpt() argument
390 mlx4_mr_hw_change_pd(struct mlx4_dev *dev, struct mlx4_mpt_entry *mpt_entry, u32 pdn) mlx4_mr_hw_change_pd() argument
405 mlx4_mr_hw_change_access(struct mlx4_dev *dev, struct mlx4_mpt_entry *mpt_entry, u32 access) mlx4_mr_hw_change_access() argument
589 mlx4_mr_rereg_mem_write(struct mlx4_dev *dev, struct mlx4_mr *mr, u64 iova, u64 size, int npages, int page_shift, struct mlx4_mpt_entry *mpt_entry) mlx4_mr_rereg_mem_write() argument
630 struct mlx4_mpt_entry *mpt_entry; mlx4_mr_enable() local
841 struct mlx4_mpt_entry *mpt_entry; mlx4_mw_enable() local
[all...]
H A Dresource_tracker.c2895 struct mlx4_mpt_entry *mpt_entry = mlx4_table_find( in mlx4_QUERY_MPT_wrapper() local
2899 if (NULL == mpt_entry || NULL == outbox->buf) { in mlx4_QUERY_MPT_wrapper()
2904 memcpy(outbox->buf, mpt_entry, sizeof(*mpt_entry)); in mlx4_QUERY_MPT_wrapper()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/
H A Dmthca_mr.c433 struct mthca_mpt_entry *mpt_entry; in mthca_mr_alloc() local
457 mpt_entry = mailbox->buf; in mthca_mr_alloc()
459 mpt_entry->flags = cpu_to_be32(MTHCA_MPT_FLAG_SW_OWNS | in mthca_mr_alloc()
464 mpt_entry->flags |= cpu_to_be32(MTHCA_MPT_FLAG_PHYSICAL); in mthca_mr_alloc()
466 mpt_entry->page_size = cpu_to_be32(buffer_size_shift - 12); in mthca_mr_alloc()
467 mpt_entry->key = cpu_to_be32(key); in mthca_mr_alloc()
468 mpt_entry->pd = cpu_to_be32(pd); in mthca_mr_alloc()
469 mpt_entry->start = cpu_to_be64(iova); in mthca_mr_alloc()
470 mpt_entry->length = cpu_to_be64(total_size); in mthca_mr_alloc()
472 memset(&mpt_entry in mthca_mr_alloc()
[all...]
/kernel/linux/linux-6.6/drivers/infiniband/hw/mthca/
H A Dmthca_mr.c431 struct mthca_mpt_entry *mpt_entry; in mthca_mr_alloc() local
455 mpt_entry = mailbox->buf; in mthca_mr_alloc()
457 mpt_entry->flags = cpu_to_be32(MTHCA_MPT_FLAG_SW_OWNS | in mthca_mr_alloc()
462 mpt_entry->flags |= cpu_to_be32(MTHCA_MPT_FLAG_PHYSICAL); in mthca_mr_alloc()
464 mpt_entry->page_size = cpu_to_be32(buffer_size_shift - 12); in mthca_mr_alloc()
465 mpt_entry->key = cpu_to_be32(key); in mthca_mr_alloc()
466 mpt_entry->pd = cpu_to_be32(pd); in mthca_mr_alloc()
467 mpt_entry->start = cpu_to_be64(iova); in mthca_mr_alloc()
468 mpt_entry->length = cpu_to_be64(total_size); in mthca_mr_alloc()
470 memset_startat(mpt_entry, in mthca_mr_alloc()
[all...]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
H A Dhns_roce_hw_v2.c2734 struct hns_roce_v2_mpt_entry *mpt_entry, in set_mtpt_pbl()
2755 mpt_entry->pbl_size = cpu_to_le32(mr->npages); in set_mtpt_pbl()
2756 mpt_entry->pbl_ba_l = cpu_to_le32(pbl_ba >> 3); in set_mtpt_pbl()
2757 roce_set_field(mpt_entry->byte_48_mode_ba, in set_mtpt_pbl()
2761 mpt_entry->pa0_l = cpu_to_le32(lower_32_bits(pages[0])); in set_mtpt_pbl()
2762 roce_set_field(mpt_entry->byte_56_pa0_h, V2_MPT_BYTE_56_PA0_H_M, in set_mtpt_pbl()
2765 mpt_entry->pa1_l = cpu_to_le32(lower_32_bits(pages[1])); in set_mtpt_pbl()
2766 roce_set_field(mpt_entry->byte_64_buf_pa1, V2_MPT_BYTE_64_PA1_H_M, in set_mtpt_pbl()
2768 roce_set_field(mpt_entry->byte_64_buf_pa1, in set_mtpt_pbl()
2780 struct hns_roce_v2_mpt_entry *mpt_entry; in hns_roce_v2_write_mtpt() local
2733 set_mtpt_pbl(struct hns_roce_dev *hr_dev, struct hns_roce_v2_mpt_entry *mpt_entry, struct hns_roce_mr *mr) set_mtpt_pbl() argument
2836 struct hns_roce_v2_mpt_entry *mpt_entry = mb_buf; hns_roce_v2_rereg_write_mtpt() local
2882 struct hns_roce_v2_mpt_entry *mpt_entry; hns_roce_v2_frmr_write_mtpt() local
2930 struct hns_roce_v2_mpt_entry *mpt_entry; hns_roce_v2_mw_write_mtpt() local
[all...]
H A Dhns_roce_hw_v1.c1840 struct hns_roce_v1_mpt_entry *mpt_entry; in hns_roce_v1_write_mtpt() local
1846 mpt_entry = (struct hns_roce_v1_mpt_entry *)mb_buf; in hns_roce_v1_write_mtpt()
1847 memset(mpt_entry, 0, sizeof(*mpt_entry)); in hns_roce_v1_write_mtpt()
1849 roce_set_field(mpt_entry->mpt_byte_4, MPT_BYTE_4_KEY_STATE_M, in hns_roce_v1_write_mtpt()
1851 roce_set_field(mpt_entry->mpt_byte_4, MPT_BYTE_4_KEY_M, in hns_roce_v1_write_mtpt()
1853 roce_set_field(mpt_entry->mpt_byte_4, MPT_BYTE_4_PAGE_SIZE_M, in hns_roce_v1_write_mtpt()
1855 roce_set_bit(mpt_entry->mpt_byte_4, MPT_BYTE_4_MW_TYPE_S, 0); in hns_roce_v1_write_mtpt()
1856 roce_set_bit(mpt_entry->mpt_byte_4, MPT_BYTE_4_MW_BIND_ENABLE_S, in hns_roce_v1_write_mtpt()
1858 roce_set_bit(mpt_entry in hns_roce_v1_write_mtpt()
[all...]
/kernel/linux/linux-6.6/drivers/infiniband/hw/hns/
H A Dhns_roce_hw_v2.c3175 struct hns_roce_v2_mpt_entry *mpt_entry, in set_mtpt_pbl()
3196 mpt_entry->pbl_size = cpu_to_le32(mr->npages); in set_mtpt_pbl()
3197 mpt_entry->pbl_ba_l = cpu_to_le32(pbl_ba >> 3); in set_mtpt_pbl()
3198 hr_reg_write(mpt_entry, MPT_PBL_BA_H, upper_32_bits(pbl_ba >> 3)); in set_mtpt_pbl()
3200 mpt_entry->pa0_l = cpu_to_le32(lower_32_bits(pages[0])); in set_mtpt_pbl()
3201 hr_reg_write(mpt_entry, MPT_PA0_H, upper_32_bits(pages[0])); in set_mtpt_pbl()
3203 mpt_entry->pa1_l = cpu_to_le32(lower_32_bits(pages[1])); in set_mtpt_pbl()
3204 hr_reg_write(mpt_entry, MPT_PA1_H, upper_32_bits(pages[1])); in set_mtpt_pbl()
3205 hr_reg_write(mpt_entry, MPT_PBL_BUF_PG_SZ, in set_mtpt_pbl()
3214 struct hns_roce_v2_mpt_entry *mpt_entry; in hns_roce_v2_write_mtpt() local
3174 set_mtpt_pbl(struct hns_roce_dev *hr_dev, struct hns_roce_v2_mpt_entry *mpt_entry, struct hns_roce_mr *mr) set_mtpt_pbl() argument
3259 struct hns_roce_v2_mpt_entry *mpt_entry = mb_buf; hns_roce_v2_rereg_write_mtpt() local
3295 struct hns_roce_v2_mpt_entry *mpt_entry; hns_roce_v2_frmr_write_mtpt() local
3333 struct hns_roce_v2_mpt_entry *mpt_entry; hns_roce_v2_mw_write_mtpt() local
[all...]
/kernel/linux/linux-5.10/include/linux/mlx4/
H A Ddevice.h1509 struct mlx4_mpt_entry ***mpt_entry);
1511 struct mlx4_mpt_entry **mpt_entry);
1512 int mlx4_mr_hw_change_pd(struct mlx4_dev *dev, struct mlx4_mpt_entry *mpt_entry,
1515 struct mlx4_mpt_entry *mpt_entry,
1518 struct mlx4_mpt_entry **mpt_entry);
1522 int page_shift, struct mlx4_mpt_entry *mpt_entry);
/kernel/linux/linux-6.6/include/linux/mlx4/
H A Ddevice.h1528 struct mlx4_mpt_entry ***mpt_entry);
1530 struct mlx4_mpt_entry **mpt_entry);
1531 int mlx4_mr_hw_change_pd(struct mlx4_dev *dev, struct mlx4_mpt_entry *mpt_entry,
1534 struct mlx4_mpt_entry *mpt_entry,
1537 struct mlx4_mpt_entry **mpt_entry);
1541 int page_shift, struct mlx4_mpt_entry *mpt_entry);
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
H A Dmr.c465 struct mlx4_mpt_entry *mpt_entry; in mlx4_ib_rereg_user_mr() local
466 struct mlx4_mpt_entry **pmpt_entry = &mpt_entry; in mlx4_ib_rereg_user_mr()
/kernel/linux/linux-6.6/drivers/infiniband/hw/mlx4/
H A Dmr.c465 struct mlx4_mpt_entry *mpt_entry; in mlx4_ib_rereg_user_mr() local
466 struct mlx4_mpt_entry **pmpt_entry = &mpt_entry; in mlx4_ib_rereg_user_mr()

Completed in 42 milliseconds