Home
last modified time | relevance | path

Searched refs:mmr (Results 1 – 9 of 9) sorted by relevance

/drivers/infiniband/hw/mlx4/
Dmr.c68 ~0ull, convert_access(acc), 0, 0, &mr->mmr); in mlx4_ib_get_dma_mr()
72 err = mlx4_mr_enable(to_mdev(pd->device)->dev, &mr->mmr); in mlx4_ib_get_dma_mr()
76 mr->ibmr.rkey = mr->ibmr.lkey = mr->mmr.key; in mlx4_ib_get_dma_mr()
82 (void) mlx4_mr_free(to_mdev(pd->device)->dev, &mr->mmr); in mlx4_ib_get_dma_mr()
161 convert_access(access_flags), n, shift, &mr->mmr); in mlx4_ib_reg_user_mr()
165 err = mlx4_ib_umem_write_mtt(dev, &mr->mmr.mtt, mr->umem); in mlx4_ib_reg_user_mr()
169 err = mlx4_mr_enable(dev->dev, &mr->mmr); in mlx4_ib_reg_user_mr()
173 mr->ibmr.rkey = mr->ibmr.lkey = mr->mmr.key; in mlx4_ib_reg_user_mr()
178 (void) mlx4_mr_free(to_mdev(pd->device)->dev, &mr->mmr); in mlx4_ib_reg_user_mr()
195 struct mlx4_ib_mr *mmr = to_mmr(mr); in mlx4_ib_rereg_user_mr() local
[all …]
Dmlx4_ib.h140 struct mlx4_mr mmr; member
/drivers/misc/sgi-gru/
Dgrufile.c325 unsigned long mmr = 0; in gru_chiplet_cpu_to_mmr() local
339 mmr = UVH_GR0_TLB_INT0_CONFIG + in gru_chiplet_cpu_to_mmr()
342 mmr = UVH_GR1_TLB_INT0_CONFIG + in gru_chiplet_cpu_to_mmr()
349 return mmr; in gru_chiplet_cpu_to_mmr()
371 unsigned long mmr; in gru_chiplet_setup_tlb_irq() local
375 mmr = gru_chiplet_cpu_to_mmr(chiplet, cpu, &core); in gru_chiplet_setup_tlb_irq()
376 if (mmr == 0) in gru_chiplet_setup_tlb_irq()
402 unsigned long mmr; in gru_chiplet_teardown_tlb_irq() local
408 mmr = gru_chiplet_cpu_to_mmr(chiplet, cpu, &core); in gru_chiplet_teardown_tlb_irq()
409 if (mmr == 0) in gru_chiplet_teardown_tlb_irq()
[all …]
/drivers/char/
Dmbcs.c82 static inline void mbcs_getdma_set(void *mmr, in mbcs_getdma_set() argument
107 MBCS_MMR_SET(mmr, MBCS_RD_DMA_SYS_ADDR, host_addr.dma_hostaddr_reg); in mbcs_getdma_set()
111 MBCS_MMR_SET(mmr, MBCS_RD_DMA_LOC_ADDR, local_addr.dma_localaddr_reg); in mbcs_getdma_set()
117 MBCS_MMR_SET(mmr, MBCS_RD_DMA_CTRL, rdma_control.dma_control_reg); in mbcs_getdma_set()
121 MBCS_MMR_SET(mmr, MBCS_RD_DMA_AMO_DEST, amo_dest.dma_amo_dest_reg); in mbcs_getdma_set()
125 MBCS_MMR_SET(mmr, MBCS_RD_DMA_INT_DEST, intr_dest.intr_dest_reg); in mbcs_getdma_set()
129 static inline void mbcs_putdma_set(void *mmr, in mbcs_putdma_set() argument
154 MBCS_MMR_SET(mmr, MBCS_WR_DMA_SYS_ADDR, host_addr.dma_hostaddr_reg); in mbcs_putdma_set()
158 MBCS_MMR_SET(mmr, MBCS_WR_DMA_LOC_ADDR, local_addr.dma_localaddr_reg); in mbcs_putdma_set()
164 MBCS_MMR_SET(mmr, MBCS_WR_DMA_CTRL, wdma_control.dma_control_reg); in mbcs_putdma_set()
[all …]
/drivers/net/ethernet/mellanox/mlx4/
Dmr.c296 int mlx4_mr_hw_get_mpt(struct mlx4_dev *dev, struct mlx4_mr *mmr, in mlx4_mr_hw_get_mpt() argument
300 int key = key_to_hw_index(mmr->key) & (dev->caps.num_mpts - 1); in mlx4_mr_hw_get_mpt()
303 if (mmr->enabled != MLX4_MPT_EN_HW) in mlx4_mr_hw_get_mpt()
313 mmr->enabled = MLX4_MPT_EN_SW; in mlx4_mr_hw_get_mpt()
347 int mlx4_mr_hw_write_mpt(struct mlx4_dev *dev, struct mlx4_mr *mmr, in mlx4_mr_hw_write_mpt() argument
363 int key = key_to_hw_index(mmr->key) & (dev->caps.num_mpts - 1); in mlx4_mr_hw_write_mpt()
373 mmr->pd = be32_to_cpu((*mpt_entry)->pd_flags) & MLX4_MPT_PD_MASK; in mlx4_mr_hw_write_mpt()
374 mmr->enabled = MLX4_MPT_EN_HW; in mlx4_mr_hw_write_mpt()
/drivers/video/fbdev/mb862xx/
Dmb862xxfb.h45 unsigned long mmr; /* memory mode for SDRAM */ member
Dmb862xxfbdrv.c626 unsigned long ccf, mmr; in mb862xx_gdc_init() local
652 mmr = par->gc_mode ? par->gc_mode->mmr : 0x414fb7f2; in mb862xx_gdc_init()
661 outreg(host, GC_MMR, mmr); in mb862xx_gdc_init()
/drivers/infiniband/hw/mlx5/
Dmr.c1772 struct mlx5_ib_mr *mmr = to_mmr(ibmr); in mlx5_ib_check_mr_status() local
1783 if (!mmr->sig) { in mlx5_ib_check_mr_status()
1789 mmr->sig->sig_status_checked = true; in mlx5_ib_check_mr_status()
1790 if (!mmr->sig->sig_err_exists) in mlx5_ib_check_mr_status()
1793 if (ibmr->lkey == mmr->sig->err_item.key) in mlx5_ib_check_mr_status()
1794 memcpy(&mr_status->sig_err, &mmr->sig->err_item, in mlx5_ib_check_mr_status()
1799 mr_status->sig_err.key = mmr->sig->err_item.key; in mlx5_ib_check_mr_status()
1802 mmr->sig->sig_err_exists = false; in mlx5_ib_check_mr_status()
/drivers/infiniband/hw/mthca/
Dmthca_provider.c1004 struct mthca_mr *mmr = to_mmr(mr); in mthca_dereg_mr() local
1006 mthca_free_mr(to_mdev(mr->device), mmr); in mthca_dereg_mr()
1007 if (mmr->umem) in mthca_dereg_mr()
1008 ib_umem_release(mmr->umem); in mthca_dereg_mr()
1009 kfree(mmr); in mthca_dereg_mr()