Lines Matching refs:mpt_entry
1848 struct hns_roce_v1_mpt_entry *mpt_entry; in hns_roce_v1_write_mtpt() local
1854 mpt_entry = (struct hns_roce_v1_mpt_entry *)mb_buf; in hns_roce_v1_write_mtpt()
1855 memset(mpt_entry, 0, sizeof(*mpt_entry)); in hns_roce_v1_write_mtpt()
1857 roce_set_field(mpt_entry->mpt_byte_4, MPT_BYTE_4_KEY_STATE_M, in hns_roce_v1_write_mtpt()
1859 roce_set_field(mpt_entry->mpt_byte_4, MPT_BYTE_4_KEY_M, in hns_roce_v1_write_mtpt()
1861 roce_set_field(mpt_entry->mpt_byte_4, MPT_BYTE_4_PAGE_SIZE_M, in hns_roce_v1_write_mtpt()
1863 roce_set_bit(mpt_entry->mpt_byte_4, MPT_BYTE_4_MW_TYPE_S, 0); in hns_roce_v1_write_mtpt()
1864 roce_set_bit(mpt_entry->mpt_byte_4, MPT_BYTE_4_MW_BIND_ENABLE_S, in hns_roce_v1_write_mtpt()
1866 roce_set_bit(mpt_entry->mpt_byte_4, MPT_BYTE_4_OWN_S, 0); in hns_roce_v1_write_mtpt()
1867 roce_set_field(mpt_entry->mpt_byte_4, MPT_BYTE_4_MEMORY_LOCATION_TYPE_M, in hns_roce_v1_write_mtpt()
1869 roce_set_bit(mpt_entry->mpt_byte_4, MPT_BYTE_4_REMOTE_ATOMIC_S, 0); in hns_roce_v1_write_mtpt()
1870 roce_set_bit(mpt_entry->mpt_byte_4, MPT_BYTE_4_LOCAL_WRITE_S, in hns_roce_v1_write_mtpt()
1872 roce_set_bit(mpt_entry->mpt_byte_4, MPT_BYTE_4_REMOTE_WRITE_S, in hns_roce_v1_write_mtpt()
1874 roce_set_bit(mpt_entry->mpt_byte_4, MPT_BYTE_4_REMOTE_READ_S, in hns_roce_v1_write_mtpt()
1876 roce_set_bit(mpt_entry->mpt_byte_4, MPT_BYTE_4_REMOTE_INVAL_ENABLE_S, in hns_roce_v1_write_mtpt()
1878 roce_set_bit(mpt_entry->mpt_byte_4, MPT_BYTE_4_ADDRESS_TYPE_S, 0); in hns_roce_v1_write_mtpt()
1880 roce_set_field(mpt_entry->mpt_byte_12, MPT_BYTE_12_PBL_ADDR_H_M, in hns_roce_v1_write_mtpt()
1882 roce_set_field(mpt_entry->mpt_byte_12, MPT_BYTE_12_MW_BIND_COUNTER_M, in hns_roce_v1_write_mtpt()
1885 mpt_entry->virt_addr_l = cpu_to_le32((u32)mr->iova); in hns_roce_v1_write_mtpt()
1886 mpt_entry->virt_addr_h = cpu_to_le32((u32)(mr->iova >> 32)); in hns_roce_v1_write_mtpt()
1887 mpt_entry->length = cpu_to_le32((u32)mr->size); in hns_roce_v1_write_mtpt()
1889 roce_set_field(mpt_entry->mpt_byte_28, MPT_BYTE_28_PD_M, in hns_roce_v1_write_mtpt()
1891 roce_set_field(mpt_entry->mpt_byte_28, MPT_BYTE_28_L_KEY_IDX_L_M, in hns_roce_v1_write_mtpt()
1893 roce_set_field(mpt_entry->mpt_byte_64, MPT_BYTE_64_L_KEY_IDX_H_M, in hns_roce_v1_write_mtpt()
1911 mpt_entry->pa0_l = cpu_to_le32((u32)(pages[i])); in hns_roce_v1_write_mtpt()
1912 roce_set_field(mpt_entry->mpt_byte_36, in hns_roce_v1_write_mtpt()
1918 roce_set_field(mpt_entry->mpt_byte_36, in hns_roce_v1_write_mtpt()
1921 roce_set_field(mpt_entry->mpt_byte_40, in hns_roce_v1_write_mtpt()
1927 roce_set_field(mpt_entry->mpt_byte_40, in hns_roce_v1_write_mtpt()
1930 roce_set_field(mpt_entry->mpt_byte_44, in hns_roce_v1_write_mtpt()
1936 roce_set_field(mpt_entry->mpt_byte_44, in hns_roce_v1_write_mtpt()
1939 roce_set_field(mpt_entry->mpt_byte_48, in hns_roce_v1_write_mtpt()
1945 mpt_entry->pa4_l = cpu_to_le32((u32)(pages[i])); in hns_roce_v1_write_mtpt()
1946 roce_set_field(mpt_entry->mpt_byte_56, in hns_roce_v1_write_mtpt()
1952 roce_set_field(mpt_entry->mpt_byte_56, in hns_roce_v1_write_mtpt()
1955 roce_set_field(mpt_entry->mpt_byte_60, in hns_roce_v1_write_mtpt()
1961 roce_set_field(mpt_entry->mpt_byte_60, in hns_roce_v1_write_mtpt()
1964 roce_set_field(mpt_entry->mpt_byte_64, in hns_roce_v1_write_mtpt()
1974 mpt_entry->pbl_addr_l = cpu_to_le32(pbl_ba); in hns_roce_v1_write_mtpt()
1975 roce_set_field(mpt_entry->mpt_byte_12, MPT_BYTE_12_PBL_ADDR_H_M, in hns_roce_v1_write_mtpt()