Searched refs:mpt_entry (Results 1 – 7 of 7) sorted by relevance
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/ |
D | mr.c | 294 struct mlx4_mpt_entry ***mpt_entry) in mlx4_mr_hw_get_mpt() argument 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() argument 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() 370 mmr->pd = be32_to_cpu((*mpt_entry)->pd_flags) & MLX4_MPT_PD_MASK; in mlx4_mr_hw_write_mpt() 378 struct mlx4_mpt_entry **mpt_entry) in mlx4_mr_hw_put_mpt() argument 382 container_of((void *)mpt_entry, struct mlx4_cmd_mailbox, in mlx4_mr_hw_put_mpt() [all …]
|
D | resource_tracker.c | 2884 struct mlx4_mpt_entry *mpt_entry = mlx4_table_find( in mlx4_QUERY_MPT_wrapper() local 2888 if (NULL == mpt_entry || NULL == outbox->buf) { in mlx4_QUERY_MPT_wrapper() 2893 memcpy(outbox->buf, mpt_entry, sizeof(*mpt_entry)); in mlx4_QUERY_MPT_wrapper()
|
/Linux-v4.19/drivers/infiniband/hw/mthca/ |
D | mthca_mr.c | 433 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->lkey, 0, in mthca_mr_alloc() [all …]
|
/Linux-v4.19/drivers/infiniband/hw/hns/ |
D | hns_roce_hw_v2.c | 1667 struct hns_roce_v2_mpt_entry *mpt_entry; in hns_roce_v2_write_mtpt() local 1675 mpt_entry = mb_buf; in hns_roce_v2_write_mtpt() 1676 memset(mpt_entry, 0, sizeof(*mpt_entry)); in hns_roce_v2_write_mtpt() 1678 roce_set_field(mpt_entry->byte_4_pd_hop_st, V2_MPT_BYTE_4_MPT_ST_M, in hns_roce_v2_write_mtpt() 1680 roce_set_field(mpt_entry->byte_4_pd_hop_st, V2_MPT_BYTE_4_PBL_HOP_NUM_M, in hns_roce_v2_write_mtpt() 1683 roce_set_field(mpt_entry->byte_4_pd_hop_st, in hns_roce_v2_write_mtpt() 1687 roce_set_field(mpt_entry->byte_4_pd_hop_st, V2_MPT_BYTE_4_PD_M, in hns_roce_v2_write_mtpt() 1689 mpt_entry->byte_4_pd_hop_st = cpu_to_le32(mpt_entry->byte_4_pd_hop_st); in hns_roce_v2_write_mtpt() 1691 roce_set_bit(mpt_entry->byte_8_mw_cnt_en, V2_MPT_BYTE_8_RA_EN_S, 0); in hns_roce_v2_write_mtpt() 1692 roce_set_bit(mpt_entry->byte_8_mw_cnt_en, V2_MPT_BYTE_8_R_INV_EN_S, 1); in hns_roce_v2_write_mtpt() [all …]
|
D | hns_roce_hw_v1.c | 1868 struct hns_roce_v1_mpt_entry *mpt_entry; in hns_roce_v1_write_mtpt() local 1875 mpt_entry = (struct hns_roce_v1_mpt_entry *)mb_buf; in hns_roce_v1_write_mtpt() 1876 memset(mpt_entry, 0, sizeof(*mpt_entry)); in hns_roce_v1_write_mtpt() 1878 roce_set_field(mpt_entry->mpt_byte_4, MPT_BYTE_4_KEY_STATE_M, in hns_roce_v1_write_mtpt() 1880 roce_set_field(mpt_entry->mpt_byte_4, MPT_BYTE_4_KEY_M, in hns_roce_v1_write_mtpt() 1882 roce_set_field(mpt_entry->mpt_byte_4, MPT_BYTE_4_PAGE_SIZE_M, in hns_roce_v1_write_mtpt() 1884 roce_set_bit(mpt_entry->mpt_byte_4, MPT_BYTE_4_MW_TYPE_S, 0); in hns_roce_v1_write_mtpt() 1885 roce_set_bit(mpt_entry->mpt_byte_4, MPT_BYTE_4_MW_BIND_ENABLE_S, in hns_roce_v1_write_mtpt() 1887 roce_set_bit(mpt_entry->mpt_byte_4, MPT_BYTE_4_OWN_S, 0); in hns_roce_v1_write_mtpt() 1888 roce_set_field(mpt_entry->mpt_byte_4, MPT_BYTE_4_MEMORY_LOCATION_TYPE_M, in hns_roce_v1_write_mtpt() [all …]
|
/Linux-v4.19/include/linux/mlx4/ |
D | device.h | 1524 struct mlx4_mpt_entry ***mpt_entry); 1526 struct mlx4_mpt_entry **mpt_entry); 1527 int mlx4_mr_hw_change_pd(struct mlx4_dev *dev, struct mlx4_mpt_entry *mpt_entry, 1530 struct mlx4_mpt_entry *mpt_entry, 1533 struct mlx4_mpt_entry **mpt_entry); 1537 int page_shift, struct mlx4_mpt_entry *mpt_entry);
|
/Linux-v4.19/drivers/infiniband/hw/mlx4/ |
D | mr.c | 467 struct mlx4_mpt_entry *mpt_entry; in mlx4_ib_rereg_user_mr() local 468 struct mlx4_mpt_entry **pmpt_entry = &mpt_entry; in mlx4_ib_rereg_user_mr()
|