mpt_entry 1833 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct hns_roce_v1_mpt_entry *mpt_entry; mpt_entry 1839 drivers/infiniband/hw/hns/hns_roce_hw_v1.c mpt_entry = (struct hns_roce_v1_mpt_entry *)mb_buf; mpt_entry 1840 drivers/infiniband/hw/hns/hns_roce_hw_v1.c memset(mpt_entry, 0, sizeof(*mpt_entry)); mpt_entry 1842 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_field(mpt_entry->mpt_byte_4, MPT_BYTE_4_KEY_STATE_M, mpt_entry 1844 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_field(mpt_entry->mpt_byte_4, MPT_BYTE_4_KEY_M, mpt_entry 1846 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_field(mpt_entry->mpt_byte_4, MPT_BYTE_4_PAGE_SIZE_M, mpt_entry 1848 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_bit(mpt_entry->mpt_byte_4, MPT_BYTE_4_MW_TYPE_S, 0); mpt_entry 1849 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_bit(mpt_entry->mpt_byte_4, MPT_BYTE_4_MW_BIND_ENABLE_S, mpt_entry 1851 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_bit(mpt_entry->mpt_byte_4, MPT_BYTE_4_OWN_S, 0); mpt_entry 1852 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_field(mpt_entry->mpt_byte_4, MPT_BYTE_4_MEMORY_LOCATION_TYPE_M, mpt_entry 1854 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_bit(mpt_entry->mpt_byte_4, MPT_BYTE_4_REMOTE_ATOMIC_S, 0); mpt_entry 1855 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_bit(mpt_entry->mpt_byte_4, MPT_BYTE_4_LOCAL_WRITE_S, mpt_entry 1857 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_bit(mpt_entry->mpt_byte_4, MPT_BYTE_4_REMOTE_WRITE_S, mpt_entry 1859 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_bit(mpt_entry->mpt_byte_4, MPT_BYTE_4_REMOTE_READ_S, mpt_entry 1861 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_bit(mpt_entry->mpt_byte_4, MPT_BYTE_4_REMOTE_INVAL_ENABLE_S, mpt_entry 1863 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_bit(mpt_entry->mpt_byte_4, MPT_BYTE_4_ADDRESS_TYPE_S, 0); mpt_entry 1865 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_field(mpt_entry->mpt_byte_12, MPT_BYTE_12_PBL_ADDR_H_M, mpt_entry 1867 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_field(mpt_entry->mpt_byte_12, MPT_BYTE_12_MW_BIND_COUNTER_M, mpt_entry 1870 drivers/infiniband/hw/hns/hns_roce_hw_v1.c mpt_entry->virt_addr_l = cpu_to_le32((u32)mr->iova); mpt_entry 1871 drivers/infiniband/hw/hns/hns_roce_hw_v1.c mpt_entry->virt_addr_h = cpu_to_le32((u32)(mr->iova >> 32)); mpt_entry 1872 drivers/infiniband/hw/hns/hns_roce_hw_v1.c mpt_entry->length = cpu_to_le32((u32)mr->size); mpt_entry 1874 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_field(mpt_entry->mpt_byte_28, MPT_BYTE_28_PD_M, mpt_entry 1876 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_field(mpt_entry->mpt_byte_28, MPT_BYTE_28_L_KEY_IDX_L_M, mpt_entry 1878 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_field(mpt_entry->mpt_byte_64, MPT_BYTE_64_L_KEY_IDX_H_M, mpt_entry 1903 drivers/infiniband/hw/hns/hns_roce_hw_v1.c mpt_entry->pa0_l = cpu_to_le32((u32)(pages[i])); mpt_entry 1904 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_field(mpt_entry->mpt_byte_36, mpt_entry 1910 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_field(mpt_entry->mpt_byte_36, mpt_entry 1913 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_field(mpt_entry->mpt_byte_40, mpt_entry 1919 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_field(mpt_entry->mpt_byte_40, mpt_entry 1922 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_field(mpt_entry->mpt_byte_44, mpt_entry 1928 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_field(mpt_entry->mpt_byte_44, mpt_entry 1931 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_field(mpt_entry->mpt_byte_48, mpt_entry 1937 drivers/infiniband/hw/hns/hns_roce_hw_v1.c mpt_entry->pa4_l = cpu_to_le32((u32)(pages[i])); mpt_entry 1938 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_field(mpt_entry->mpt_byte_56, mpt_entry 1944 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_field(mpt_entry->mpt_byte_56, mpt_entry 1947 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_field(mpt_entry->mpt_byte_60, mpt_entry 1953 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_field(mpt_entry->mpt_byte_60, mpt_entry 1956 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_field(mpt_entry->mpt_byte_64, mpt_entry 1968 drivers/infiniband/hw/hns/hns_roce_hw_v1.c mpt_entry->pbl_addr_l = cpu_to_le32((u32)(mr->pbl_dma_addr)); mpt_entry 1970 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_set_field(mpt_entry->mpt_byte_12, MPT_BYTE_12_PBL_ADDR_H_M, mpt_entry 2222 drivers/infiniband/hw/hns/hns_roce_hw_v2.c static int set_mtpt_pbl(struct hns_roce_v2_mpt_entry *mpt_entry, mpt_entry 2230 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mpt_entry->pbl_size = cpu_to_le32(mr->pbl_size); mpt_entry 2231 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mpt_entry->pbl_ba_l = cpu_to_le32(lower_32_bits(mr->pbl_ba >> 3)); mpt_entry 2232 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_field(mpt_entry->byte_48_mode_ba, mpt_entry 2251 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mpt_entry->pa0_l = cpu_to_le32(lower_32_bits(pages[0])); mpt_entry 2252 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_field(mpt_entry->byte_56_pa0_h, V2_MPT_BYTE_56_PA0_H_M, mpt_entry 2255 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mpt_entry->pa1_l = cpu_to_le32(lower_32_bits(pages[1])); mpt_entry 2256 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_field(mpt_entry->byte_64_buf_pa1, V2_MPT_BYTE_64_PA1_H_M, mpt_entry 2258 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_field(mpt_entry->byte_64_buf_pa1, mpt_entry 2271 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_v2_mpt_entry *mpt_entry; mpt_entry 2274 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mpt_entry = mb_buf; mpt_entry 2275 drivers/infiniband/hw/hns/hns_roce_hw_v2.c memset(mpt_entry, 0, sizeof(*mpt_entry)); mpt_entry 2277 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_field(mpt_entry->byte_4_pd_hop_st, V2_MPT_BYTE_4_MPT_ST_M, mpt_entry 2279 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_field(mpt_entry->byte_4_pd_hop_st, V2_MPT_BYTE_4_PBL_HOP_NUM_M, mpt_entry 2282 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_field(mpt_entry->byte_4_pd_hop_st, mpt_entry 2286 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_field(mpt_entry->byte_4_pd_hop_st, V2_MPT_BYTE_4_PD_M, mpt_entry 2289 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_8_mw_cnt_en, V2_MPT_BYTE_8_RA_EN_S, 0); mpt_entry 2290 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_8_mw_cnt_en, V2_MPT_BYTE_8_R_INV_EN_S, 0); mpt_entry 2291 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_8_mw_cnt_en, V2_MPT_BYTE_8_L_INV_EN_S, 1); mpt_entry 2292 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_8_mw_cnt_en, V2_MPT_BYTE_8_BIND_EN_S, mpt_entry 2294 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_8_mw_cnt_en, V2_MPT_BYTE_8_ATOMIC_EN_S, mpt_entry 2296 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_8_mw_cnt_en, V2_MPT_BYTE_8_RR_EN_S, mpt_entry 2298 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_8_mw_cnt_en, V2_MPT_BYTE_8_RW_EN_S, mpt_entry 2300 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_8_mw_cnt_en, V2_MPT_BYTE_8_LW_EN_S, mpt_entry 2303 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_12_mw_pa, V2_MPT_BYTE_12_PA_S, mpt_entry 2305 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_12_mw_pa, V2_MPT_BYTE_12_INNER_PA_VLD_S, mpt_entry 2308 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mpt_entry->len_l = cpu_to_le32(lower_32_bits(mr->size)); mpt_entry 2309 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mpt_entry->len_h = cpu_to_le32(upper_32_bits(mr->size)); mpt_entry 2310 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mpt_entry->lkey = cpu_to_le32(mr->key); mpt_entry 2311 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mpt_entry->va_l = cpu_to_le32(lower_32_bits(mr->iova)); mpt_entry 2312 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mpt_entry->va_h = cpu_to_le32(upper_32_bits(mr->iova)); mpt_entry 2317 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = set_mtpt_pbl(mpt_entry, mr); mpt_entry 2327 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_v2_mpt_entry *mpt_entry = mb_buf; mpt_entry 2330 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_field(mpt_entry->byte_4_pd_hop_st, V2_MPT_BYTE_4_MPT_ST_M, mpt_entry 2334 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_field(mpt_entry->byte_4_pd_hop_st, V2_MPT_BYTE_4_PD_M, mpt_entry 2340 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_8_mw_cnt_en, mpt_entry 2343 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_8_mw_cnt_en, mpt_entry 2346 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_8_mw_cnt_en, V2_MPT_BYTE_8_RR_EN_S, mpt_entry 2348 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_8_mw_cnt_en, V2_MPT_BYTE_8_RW_EN_S, mpt_entry 2350 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_8_mw_cnt_en, V2_MPT_BYTE_8_LW_EN_S, mpt_entry 2355 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mpt_entry->va_l = cpu_to_le32(lower_32_bits(iova)); mpt_entry 2356 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mpt_entry->va_h = cpu_to_le32(upper_32_bits(iova)); mpt_entry 2357 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mpt_entry->len_l = cpu_to_le32(lower_32_bits(size)); mpt_entry 2358 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mpt_entry->len_h = cpu_to_le32(upper_32_bits(size)); mpt_entry 2363 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = set_mtpt_pbl(mpt_entry, mr); mpt_entry 2371 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_v2_mpt_entry *mpt_entry; mpt_entry 2373 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mpt_entry = mb_buf; mpt_entry 2374 drivers/infiniband/hw/hns/hns_roce_hw_v2.c memset(mpt_entry, 0, sizeof(*mpt_entry)); mpt_entry 2376 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_field(mpt_entry->byte_4_pd_hop_st, V2_MPT_BYTE_4_MPT_ST_M, mpt_entry 2378 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_field(mpt_entry->byte_4_pd_hop_st, V2_MPT_BYTE_4_PBL_HOP_NUM_M, mpt_entry 2380 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_field(mpt_entry->byte_4_pd_hop_st, mpt_entry 2384 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_field(mpt_entry->byte_4_pd_hop_st, V2_MPT_BYTE_4_PD_M, mpt_entry 2387 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_8_mw_cnt_en, V2_MPT_BYTE_8_RA_EN_S, 1); mpt_entry 2388 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_8_mw_cnt_en, V2_MPT_BYTE_8_R_INV_EN_S, 1); mpt_entry 2389 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_8_mw_cnt_en, V2_MPT_BYTE_8_L_INV_EN_S, 1); mpt_entry 2391 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_12_mw_pa, V2_MPT_BYTE_12_FRE_S, 1); mpt_entry 2392 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_12_mw_pa, V2_MPT_BYTE_12_PA_S, 0); mpt_entry 2393 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_12_mw_pa, V2_MPT_BYTE_12_MR_MW_S, 0); mpt_entry 2394 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_12_mw_pa, V2_MPT_BYTE_12_BPD_S, 1); mpt_entry 2396 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mpt_entry->pbl_size = cpu_to_le32(mr->pbl_size); mpt_entry 2398 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mpt_entry->pbl_ba_l = cpu_to_le32(lower_32_bits(mr->pbl_ba >> 3)); mpt_entry 2399 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_field(mpt_entry->byte_48_mode_ba, V2_MPT_BYTE_48_PBL_BA_H_M, mpt_entry 2403 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_field(mpt_entry->byte_64_buf_pa1, mpt_entry 2413 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_v2_mpt_entry *mpt_entry; mpt_entry 2415 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mpt_entry = mb_buf; mpt_entry 2416 drivers/infiniband/hw/hns/hns_roce_hw_v2.c memset(mpt_entry, 0, sizeof(*mpt_entry)); mpt_entry 2418 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_field(mpt_entry->byte_4_pd_hop_st, V2_MPT_BYTE_4_MPT_ST_M, mpt_entry 2420 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_field(mpt_entry->byte_4_pd_hop_st, V2_MPT_BYTE_4_PD_M, mpt_entry 2422 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_field(mpt_entry->byte_4_pd_hop_st, mpt_entry 2427 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_field(mpt_entry->byte_4_pd_hop_st, mpt_entry 2432 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_8_mw_cnt_en, V2_MPT_BYTE_8_R_INV_EN_S, 1); mpt_entry 2433 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_8_mw_cnt_en, V2_MPT_BYTE_8_L_INV_EN_S, 1); mpt_entry 2435 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_12_mw_pa, V2_MPT_BYTE_12_PA_S, 0); mpt_entry 2436 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_12_mw_pa, V2_MPT_BYTE_12_MR_MW_S, 1); mpt_entry 2437 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_12_mw_pa, V2_MPT_BYTE_12_BPD_S, 1); mpt_entry 2438 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_bit(mpt_entry->byte_12_mw_pa, V2_MPT_BYTE_12_BQP_S, mpt_entry 2441 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_set_field(mpt_entry->byte_64_buf_pa1, mpt_entry 2446 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mpt_entry->lkey = cpu_to_le32(mw->rkey); mpt_entry 466 drivers/infiniband/hw/mlx4/mr.c struct mlx4_mpt_entry *mpt_entry; mpt_entry 467 drivers/infiniband/hw/mlx4/mr.c struct mlx4_mpt_entry **pmpt_entry = &mpt_entry; mpt_entry 433 drivers/infiniband/hw/mthca/mthca_mr.c struct mthca_mpt_entry *mpt_entry; mpt_entry 457 drivers/infiniband/hw/mthca/mthca_mr.c mpt_entry = mailbox->buf; mpt_entry 459 drivers/infiniband/hw/mthca/mthca_mr.c mpt_entry->flags = cpu_to_be32(MTHCA_MPT_FLAG_SW_OWNS | mpt_entry 464 drivers/infiniband/hw/mthca/mthca_mr.c mpt_entry->flags |= cpu_to_be32(MTHCA_MPT_FLAG_PHYSICAL); mpt_entry 466 drivers/infiniband/hw/mthca/mthca_mr.c mpt_entry->page_size = cpu_to_be32(buffer_size_shift - 12); mpt_entry 467 drivers/infiniband/hw/mthca/mthca_mr.c mpt_entry->key = cpu_to_be32(key); mpt_entry 468 drivers/infiniband/hw/mthca/mthca_mr.c mpt_entry->pd = cpu_to_be32(pd); mpt_entry 469 drivers/infiniband/hw/mthca/mthca_mr.c mpt_entry->start = cpu_to_be64(iova); mpt_entry 470 drivers/infiniband/hw/mthca/mthca_mr.c mpt_entry->length = cpu_to_be64(total_size); mpt_entry 472 drivers/infiniband/hw/mthca/mthca_mr.c memset(&mpt_entry->lkey, 0, mpt_entry 473 drivers/infiniband/hw/mthca/mthca_mr.c sizeof *mpt_entry - offsetof(struct mthca_mpt_entry, lkey)); mpt_entry 476 drivers/infiniband/hw/mthca/mthca_mr.c mpt_entry->mtt_seg = mpt_entry 485 drivers/infiniband/hw/mthca/mthca_mr.c printk(" %08x", be32_to_cpu(((__be32 *) mpt_entry)[i])); mpt_entry 570 drivers/infiniband/hw/mthca/mthca_mr.c struct mthca_mpt_entry *mpt_entry; mpt_entry 629 drivers/infiniband/hw/mthca/mthca_mr.c mpt_entry = mailbox->buf; mpt_entry 631 drivers/infiniband/hw/mthca/mthca_mr.c mpt_entry->flags = cpu_to_be32(MTHCA_MPT_FLAG_SW_OWNS | mpt_entry 636 drivers/infiniband/hw/mthca/mthca_mr.c mpt_entry->page_size = cpu_to_be32(mr->attr.page_shift - 12); mpt_entry 637 drivers/infiniband/hw/mthca/mthca_mr.c mpt_entry->key = cpu_to_be32(key); mpt_entry 638 drivers/infiniband/hw/mthca/mthca_mr.c mpt_entry->pd = cpu_to_be32(pd); mpt_entry 639 drivers/infiniband/hw/mthca/mthca_mr.c memset(&mpt_entry->start, 0, mpt_entry 640 drivers/infiniband/hw/mthca/mthca_mr.c sizeof *mpt_entry - offsetof(struct mthca_mpt_entry, start)); mpt_entry 641 drivers/infiniband/hw/mthca/mthca_mr.c mpt_entry->mtt_seg = cpu_to_be64(dev->mr_table.mtt_base + mtt_seg); mpt_entry 648 drivers/infiniband/hw/mthca/mthca_mr.c printk(" %08x", be32_to_cpu(((__be32 *) mpt_entry)[i])); mpt_entry 722 drivers/infiniband/hw/mthca/mthca_mr.c struct mthca_mpt_entry mpt_entry; mpt_entry 744 drivers/infiniband/hw/mthca/mthca_mr.c mpt_entry.lkey = cpu_to_be32(key); mpt_entry 745 drivers/infiniband/hw/mthca/mthca_mr.c mpt_entry.length = cpu_to_be64(list_len * (1ull << fmr->attr.page_shift)); mpt_entry 746 drivers/infiniband/hw/mthca/mthca_mr.c mpt_entry.start = cpu_to_be64(iova); mpt_entry 748 drivers/infiniband/hw/mthca/mthca_mr.c __raw_writel((__force u32) mpt_entry.lkey, &fmr->mem.tavor.mpt->key); mpt_entry 749 drivers/infiniband/hw/mthca/mthca_mr.c memcpy_toio(&fmr->mem.tavor.mpt->start, &mpt_entry.start, mpt_entry 294 drivers/net/ethernet/mellanox/mlx4/mr.c struct mlx4_mpt_entry ***mpt_entry) mpt_entry 313 drivers/net/ethernet/mellanox/mlx4/mr.c **mpt_entry = mlx4_table_find( mpt_entry 328 drivers/net/ethernet/mellanox/mlx4/mr.c *mpt_entry = (struct mlx4_mpt_entry **)&mailbox->buf; mpt_entry 331 drivers/net/ethernet/mellanox/mlx4/mr.c if (!(*mpt_entry) || !(**mpt_entry)) { mpt_entry 345 drivers/net/ethernet/mellanox/mlx4/mr.c struct mlx4_mpt_entry **mpt_entry) mpt_entry 353 drivers/net/ethernet/mellanox/mlx4/mr.c *(u8 *)(*mpt_entry) = MLX4_MPT_STATUS_HW; mpt_entry 363 drivers/net/ethernet/mellanox/mlx4/mr.c container_of((void *)mpt_entry, struct mlx4_cmd_mailbox, mpt_entry 366 drivers/net/ethernet/mellanox/mlx4/mr.c (*mpt_entry)->lkey = 0; mpt_entry 371 drivers/net/ethernet/mellanox/mlx4/mr.c mmr->pd = be32_to_cpu((*mpt_entry)->pd_flags) & MLX4_MPT_PD_MASK; mpt_entry 379 drivers/net/ethernet/mellanox/mlx4/mr.c struct mlx4_mpt_entry **mpt_entry) mpt_entry 383 drivers/net/ethernet/mellanox/mlx4/mr.c container_of((void *)mpt_entry, struct mlx4_cmd_mailbox, mpt_entry 390 drivers/net/ethernet/mellanox/mlx4/mr.c int mlx4_mr_hw_change_pd(struct mlx4_dev *dev, struct mlx4_mpt_entry *mpt_entry, mpt_entry 393 drivers/net/ethernet/mellanox/mlx4/mr.c u32 pd_flags = be32_to_cpu(mpt_entry->pd_flags) & ~MLX4_MPT_PD_MASK; mpt_entry 398 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->pd_flags = cpu_to_be32(pd_flags | mpt_entry 406 drivers/net/ethernet/mellanox/mlx4/mr.c struct mlx4_mpt_entry *mpt_entry, mpt_entry 409 drivers/net/ethernet/mellanox/mlx4/mr.c u32 flags = (be32_to_cpu(mpt_entry->flags) & ~MLX4_PERM_MASK) | mpt_entry 412 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->flags = cpu_to_be32(flags); mpt_entry 591 drivers/net/ethernet/mellanox/mlx4/mr.c int page_shift, struct mlx4_mpt_entry *mpt_entry) mpt_entry 599 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->start = cpu_to_be64(iova); mpt_entry 600 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->length = cpu_to_be64(size); mpt_entry 601 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->entity_size = cpu_to_be32(page_shift); mpt_entry 602 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->flags &= ~(cpu_to_be32(MLX4_MPT_FLAG_FREE | mpt_entry 605 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->flags |= cpu_to_be32(MLX4_MPT_FLAG_PHYSICAL); mpt_entry 606 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->mtt_addr = 0; mpt_entry 608 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->mtt_addr = cpu_to_be64(mlx4_mtt_addr(dev, mpt_entry 611 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->mtt_sz = cpu_to_be32(1 << mr->mtt.order); mpt_entry 615 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->flags |= cpu_to_be32(MLX4_MPT_FLAG_FREE); mpt_entry 616 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->pd_flags |= cpu_to_be32(MLX4_MPT_PD_FLAG_FAST_REG | mpt_entry 619 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->flags |= cpu_to_be32(MLX4_MPT_FLAG_SW_OWNS); mpt_entry 630 drivers/net/ethernet/mellanox/mlx4/mr.c struct mlx4_mpt_entry *mpt_entry; mpt_entry 642 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry = mailbox->buf; mpt_entry 643 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->flags = cpu_to_be32(MLX4_MPT_FLAG_MIO | mpt_entry 647 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->key = cpu_to_be32(key_to_hw_index(mr->key)); mpt_entry 648 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->pd_flags = cpu_to_be32(mr->pd | MLX4_MPT_PD_FLAG_EN_INV); mpt_entry 649 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->start = cpu_to_be64(mr->iova); mpt_entry 650 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->length = cpu_to_be64(mr->size); mpt_entry 651 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->entity_size = cpu_to_be32(mr->mtt.page_shift); mpt_entry 654 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->flags |= cpu_to_be32(MLX4_MPT_FLAG_PHYSICAL); mpt_entry 655 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->mtt_addr = 0; mpt_entry 657 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->mtt_addr = cpu_to_be64(mlx4_mtt_addr(dev, mpt_entry 663 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->flags |= cpu_to_be32(MLX4_MPT_FLAG_FREE); mpt_entry 664 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->pd_flags |= cpu_to_be32(MLX4_MPT_PD_FLAG_FAST_REG | mpt_entry 666 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->mtt_sz = cpu_to_be32(1 << mr->mtt.order); mpt_entry 668 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->flags |= cpu_to_be32(MLX4_MPT_FLAG_SW_OWNS); mpt_entry 841 drivers/net/ethernet/mellanox/mlx4/mr.c struct mlx4_mpt_entry *mpt_entry; mpt_entry 853 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry = mailbox->buf; mpt_entry 858 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->key = cpu_to_be32(key_to_hw_index(mw->key)); mpt_entry 859 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->pd_flags = cpu_to_be32(mw->pd); mpt_entry 861 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->flags |= cpu_to_be32(MLX4_MPT_FLAG_FREE); mpt_entry 862 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->qpn = cpu_to_be32(MLX4_MPT_QP_FLAG_BOUND_QP); mpt_entry 863 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->pd_flags |= cpu_to_be32(MLX4_MPT_PD_FLAG_EN_INV); mpt_entry 2894 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c struct mlx4_mpt_entry *mpt_entry = mlx4_table_find( mpt_entry 2898 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (NULL == mpt_entry || NULL == outbox->buf) { mpt_entry 2903 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c memcpy(outbox->buf, mpt_entry, sizeof(*mpt_entry)); mpt_entry 1526 include/linux/mlx4/device.h struct mlx4_mpt_entry ***mpt_entry); mpt_entry 1528 include/linux/mlx4/device.h struct mlx4_mpt_entry **mpt_entry); mpt_entry 1529 include/linux/mlx4/device.h int mlx4_mr_hw_change_pd(struct mlx4_dev *dev, struct mlx4_mpt_entry *mpt_entry, mpt_entry 1532 include/linux/mlx4/device.h struct mlx4_mpt_entry *mpt_entry, mpt_entry 1535 include/linux/mlx4/device.h struct mlx4_mpt_entry **mpt_entry); mpt_entry 1539 include/linux/mlx4/device.h int page_shift, struct mlx4_mpt_entry *mpt_entry);