Home
last modified time | relevance | path

Searched refs:mtr (Results 1 – 25 of 29) sorted by relevance

12

/OK3568_Linux_fs/kernel/drivers/infiniband/hw/hns/
H A Dhns_roce_mr.c486 struct hns_roce_mtr *mtr = &mr->pbl_mtr; in hns_roce_map_mr_sg() local
502 mtr->hem_cfg.region[0].offset = 0; in hns_roce_map_mr_sg()
503 mtr->hem_cfg.region[0].count = mr->npages; in hns_roce_map_mr_sg()
504 mtr->hem_cfg.region[0].hopnum = mr->pbl_hop_num; in hns_roce_map_mr_sg()
505 mtr->hem_cfg.region_count = 1; in hns_roce_map_mr_sg()
506 ret = hns_roce_mtr_map(hr_dev, mtr, mr->page_list, mr->npages); in hns_roce_map_mr_sg()
631 static int mtr_map_region(struct hns_roce_dev *hr_dev, struct hns_roce_mtr *mtr, in mtr_map_region() argument
650 mtts = hns_roce_hem_list_find_mtt(hr_dev, &mtr->hem_list, in mtr_map_region()
723 static void mtr_free_bufs(struct hns_roce_dev *hr_dev, struct hns_roce_mtr *mtr) in mtr_free_bufs() argument
726 if (mtr->umem) { in mtr_free_bufs()
[all …]
H A Dhns_roce_srq.c102 ret = hns_roce_mtr_find(hr_dev, &srq->idx_que.mtr, 0, mtts_idx, in alloc_srqc()
232 err = hns_roce_mtr_create(hr_dev, &idx_que->mtr, &buf_attr, in alloc_srq_idx()
253 hns_roce_mtr_destroy(hr_dev, &idx_que->mtr); in alloc_srq_idx()
264 hns_roce_mtr_destroy(hr_dev, &idx_que->mtr); in free_srq_idx()
H A Dhns_roce_device.h460 struct hns_roce_mtr mtr; member
482 struct hns_roce_mtr mtr; member
638 struct hns_roce_mtr mtr; member
743 struct hns_roce_mtr mtr; member
1157 int hns_roce_mtr_find(struct hns_roce_dev *hr_dev, struct hns_roce_mtr *mtr,
1159 int hns_roce_mtr_create(struct hns_roce_dev *hr_dev, struct hns_roce_mtr *mtr,
1164 struct hns_roce_mtr *mtr);
1165 int hns_roce_mtr_map(struct hns_roce_dev *hr_dev, struct hns_roce_mtr *mtr,
H A Dhns_roce_cq.c51 ret = hns_roce_mtr_find(hr_dev, &hr_cq->mtr, 0, mtts, ARRAY_SIZE(mtts), in alloc_cqc()
158 ret = hns_roce_mtr_create(hr_dev, &hr_cq->mtr, &buf_attr, in alloc_cq_buf()
169 hns_roce_mtr_destroy(hr_dev, &hr_cq->mtr); in free_cq_buf()
H A Dhns_roce_hw_v2.c825 return hns_roce_buf_offset(idx_que->mtr.kmem, in get_idx_buf()
2959 return hns_roce_buf_offset(hr_cq->mtr.kmem, n * hr_cq->cqe_size); in get_cqe_v2()
3082 to_hr_hw_page_shift(hr_cq->mtr.hem_cfg.ba_pg_shift)); in hns_roce_v2_write_cqc()
3086 to_hr_hw_page_shift(hr_cq->mtr.hem_cfg.buf_pg_shift)); in hns_roce_v2_write_cqc()
3972 count = hns_roce_mtr_find(hr_dev, &hr_qp->mtr, hr_qp->rq.offset, mtts, in config_qp_rq_buf()
4023 to_hr_hw_page_shift(hr_qp->mtr.hem_cfg.ba_pg_shift)); in config_qp_rq_buf()
4031 to_hr_hw_page_shift(hr_qp->mtr.hem_cfg.buf_pg_shift)); in config_qp_rq_buf()
4083 count = hns_roce_mtr_find(hr_dev, &hr_qp->mtr, 0, &sq_cur_blk, 1, NULL); in config_qp_sq_buf()
4090 count = hns_roce_mtr_find(hr_dev, &hr_qp->mtr, in config_qp_sq_buf()
5199 to_hr_hw_page_shift(srq->idx_que.mtr.hem_cfg.ba_pg_shift)); in hns_roce_v2_write_srqc()
[all …]
H A Dhns_roce_qp.c669 ret = hns_roce_mtr_create(hr_dev, &hr_qp->mtr, &buf_attr, in alloc_qp_buf()
686 hns_roce_mtr_destroy(hr_dev, &hr_qp->mtr); in free_qp_buf()
1257 return hns_roce_buf_offset(hr_qp->mtr.kmem, offset); in get_wqe()
/OK3568_Linux_fs/kernel/drivers/edac/
H A Di5400_edac.c285 #define MTR_DIMMS_PRESENT(mtr) ((mtr) & (1 << 10)) argument
286 #define MTR_DIMMS_ETHROTTLE(mtr) ((mtr) & (1 << 9)) argument
287 #define MTR_DRAM_WIDTH(mtr) (((mtr) & (1 << 8)) ? 8 : 4) argument
288 #define MTR_DRAM_BANKS(mtr) (((mtr) & (1 << 6)) ? 8 : 4) argument
289 #define MTR_DRAM_BANKS_ADDR_BITS(mtr) ((MTR_DRAM_BANKS(mtr) == 8) ? 3 : 2) argument
290 #define MTR_DIMM_RANK(mtr) (((mtr) >> 5) & 0x1) argument
291 #define MTR_DIMM_RANK_ADDR_BITS(mtr) (MTR_DIMM_RANK(mtr) ? 2 : 1) argument
292 #define MTR_DIMM_ROWS(mtr) (((mtr) >> 2) & 0x3) argument
293 #define MTR_DIMM_ROWS_ADDR_BITS(mtr) (MTR_DIMM_ROWS(mtr) + 13) argument
294 #define MTR_DIMM_COLS(mtr) ((mtr) & 0x3) argument
[all …]
H A Di7300_edac.c105 u16 mtr[MAX_SLOTS][MAX_BRANCHES]; /* Memory Technlogy Reg */ member
172 #define MTR_DIMMS_PRESENT(mtr) ((mtr) & (1 << 8)) argument
173 #define MTR_DIMMS_ETHROTTLE(mtr) ((mtr) & (1 << 7)) argument
174 #define MTR_DRAM_WIDTH(mtr) (((mtr) & (1 << 6)) ? 8 : 4) argument
175 #define MTR_DRAM_BANKS(mtr) (((mtr) & (1 << 5)) ? 8 : 4) argument
176 #define MTR_DIMM_RANKS(mtr) (((mtr) & (1 << 4)) ? 1 : 0) argument
177 #define MTR_DIMM_ROWS(mtr) (((mtr) >> 2) & 0x3) argument
179 #define MTR_DIMM_ROWS_ADDR_BITS(mtr) (MTR_DIMM_ROWS(mtr) + 13) argument
180 #define MTR_DIMM_COLS(mtr) ((mtr) & 0x3) argument
181 #define MTR_DIMM_COLS_ADDR_BITS(mtr) (MTR_DIMM_COLS(mtr) + 10) argument
[all …]
H A Di5000_edac.c279 #define MTR_DIMMS_PRESENT(mtr) ((mtr) & (0x1 << 8)) argument
280 #define MTR_DRAM_WIDTH(mtr) ((((mtr) >> 6) & 0x1) ? 8 : 4) argument
281 #define MTR_DRAM_BANKS(mtr) ((((mtr) >> 5) & 0x1) ? 8 : 4) argument
282 #define MTR_DRAM_BANKS_ADDR_BITS(mtr) ((MTR_DRAM_BANKS(mtr) == 8) ? 3 : 2) argument
283 #define MTR_DIMM_RANK(mtr) (((mtr) >> 4) & 0x1) argument
284 #define MTR_DIMM_RANK_ADDR_BITS(mtr) (MTR_DIMM_RANK(mtr) ? 2 : 1) argument
285 #define MTR_DIMM_ROWS(mtr) (((mtr) >> 2) & 0x3) argument
286 #define MTR_DIMM_ROWS_ADDR_BITS(mtr) (MTR_DIMM_ROWS(mtr) + 13) argument
287 #define MTR_DIMM_COLS(mtr) ((mtr) & 0x3) argument
288 #define MTR_DIMM_COLS_ADDR_BITS(mtr) (MTR_DIMM_COLS(mtr) + 10) argument
[all …]
H A Dsb_edac.c213 #define RANK_DISABLE(mtr) GET_BITFIELD(mtr, 16, 19) argument
214 #define IS_DIMM_PRESENT(mtr) GET_BITFIELD(mtr, 14, 14) argument
215 #define RANK_CNT_BITS(mtr) GET_BITFIELD(mtr, 12, 13) argument
216 #define RANK_WIDTH_BITS(mtr) GET_BITFIELD(mtr, 2, 4) argument
217 #define COL_WIDTH_BITS(mtr) GET_BITFIELD(mtr, 0, 1) argument
331 enum dev_type (*get_width)(struct sbridge_pvt *pvt, u32 mtr);
691 static inline int numrank(enum type type, u32 mtr) in numrank() argument
693 int ranks = (1 << RANK_CNT_BITS(mtr)); in numrank()
701 ranks, max, (unsigned int)RANK_CNT_BITS(mtr), mtr); in numrank()
708 static inline int numrow(u32 mtr) in numrow() argument
[all …]
H A Di5100_edac.c334 } mtr[I5100_CHANNELS][I5100_MAX_RANKS_PER_CHAN]; member
659 if (!priv->mtr[chan][chan_rank].present) in i5100_npages()
664 priv->mtr[chan][chan_rank].numcol + in i5100_npages()
665 priv->mtr[chan][chan_rank].numrow + in i5100_npages()
666 priv->mtr[chan][chan_rank].numbank; in i5100_npages()
690 priv->mtr[i][j].present = i5100_mtr_present(w); in i5100_init_mtr()
691 priv->mtr[i][j].ethrottle = i5100_mtr_ethrottle(w); in i5100_init_mtr()
692 priv->mtr[i][j].width = 4 + 4 * i5100_mtr_width(w); in i5100_init_mtr()
693 priv->mtr[i][j].numbank = 2 + i5100_mtr_numbank(w); in i5100_init_mtr()
694 priv->mtr[i][j].numrow = 13 + i5100_mtr_numrow(w); in i5100_init_mtr()
[all …]
H A Di10nm_base.c165 u32 mtr, mcddrtcfg; in i10nm_get_dimm_config() local
176 mtr = I10NM_GET_DIMMMTR(imc, i, j); in i10nm_get_dimm_config()
178 mtr, mcddrtcfg, imc->mc, i, j); in i10nm_get_dimm_config()
180 if (IS_DIMM_PRESENT(mtr)) in i10nm_get_dimm_config()
181 ndimms += skx_get_dimm_info(mtr, 0, 0, dimm, in i10nm_get_dimm_config()
H A Dskx_common.c186 static int get_width(u32 mtr) in get_width() argument
188 switch (GET_BITFIELD(mtr, 8, 9)) { in get_width()
306 int skx_get_dimm_info(u32 mtr, u32 mcmtr, u32 amap, struct dimm_info *dimm, in skx_get_dimm_info() argument
312 ranks = numrank(mtr); in skx_get_dimm_info()
313 rows = numrow(mtr); in skx_get_dimm_info()
314 cols = numcol(mtr); in skx_get_dimm_info()
334 dimm->dtype = get_width(mtr); in skx_get_dimm_info()
H A Dskx_base.c180 u32 mtr, mcmtr, amap, mcddrtcfg; in skx_get_dimm_config() local
196 0x80 + 4 * j, &mtr); in skx_get_dimm_config()
197 if (IS_DIMM_PRESENT(mtr)) { in skx_get_dimm_config()
198 ndimms += skx_get_dimm_info(mtr, mcmtr, amap, dimm, imc, i, j); in skx_get_dimm_config()
H A Dskx_common.h138 int skx_get_dimm_info(u32 mtr, u32 mcmtr, u32 amap, struct dimm_info *dimm,
/OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-support/mtr/
H A Dmtr_0.95.bb2 DESCRIPTION = "mtr combines the functionality of the 'traceroute' and 'ping' programs in a single n…
3 HOMEPAGE = "http://www.bitwizard.nl/mtr/"
9 file://ui/mtr.c;beginline=5;endline=16;md5=00a894a39d53726a27386534d1c4e468"
12 SRC_URI = "git://github.com/traviscross/mtr;branch=master;protocol=https"
/OK3568_Linux_fs/buildroot/package/mtr/
H A DConfig.in2 bool "mtr"
5 mtr combines the functionality of the 'traceroute' and 'ping'
8 http://www.bitwizard.nl/mtr/
H A Dmtr.hash2 sha256 ea036fdd45da488c241603f6ea59a06bbcfe6c26177ebd34fff54336a44494b8 mtr-0.94.tar.gz
H A Dmtr.mk8 MTR_SITE = $(call github,traviscross,mtr,v$(MTR_VERSION))
/OK3568_Linux_fs/yocto/poky/documentation/ref-manual/
H A Ddevtool-reference.rst463 ``mtr`` recipe::
465 $ devtool reset mtr
466 NOTE: Cleaning sysroot for recipe mtr...
467 …NOTE: Leaving source tree /home/scottrif/poky/build/workspace/sources/mtr as-is; if you no longer …
607mtr:/home/scottrif/poky/build/workspace/sources/mtr (/home/scottrif/poky/build/workspace/recipes/m…
/OK3568_Linux_fs/kernel/arch/alpha/include/asm/
H A Dcore_tsunami.h36 tsunami_64 mtr; member
H A Dcore_titan.h37 titan_64 mtr; member
/OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-core/packagegroups/
H A Dpackagegroup-meta-networking.bb218 mtr \
/OK3568_Linux_fs/kernel/arch/alpha/kernel/
H A Dcore_tsunami.c397 printk("%s: CSR_MTR 0x%lx\n", __func__, TSUNAMI_cchip.mtr.csr); in tsunami_init_arch()
H A Dcore_titan.c373 printk("%s: CSR_MTR 0x%lx\n", __func__, TITAN_cchip->mtr.csr); in titan_init_arch()

12