/drivers/ntb/test/ |
D | ntb_tool.c | 565 struct tool_mw *mw = filep->private_data; in tool_mw_read() local 570 if (mw->local == NULL) in tool_mw_read() 574 if (pos >= mw->win_size || !size) in tool_mw_read() 576 if (size > mw->win_size - pos) in tool_mw_read() 577 size = mw->win_size - pos; in tool_mw_read() 583 memcpy_fromio(buf, mw->local + pos, size); in tool_mw_read() 603 struct tool_mw *mw = filep->private_data; in tool_mw_write() local 610 if (pos >= mw->win_size || !size) in tool_mw_write() 612 if (size > mw->win_size - pos) in tool_mw_write() 613 size = mw->win_size - pos; in tool_mw_write() [all …]
|
D | ntb_perf.c | 134 struct perf_mw mw; member 206 struct perf_mw *mw = &perf->mw; in perf_copy() local 229 vbase = mw->vbase; in perf_copy() 231 dst_phys = mw->phys_addr + (dst_vaddr - vbase); in perf_copy() 355 struct perf_mw *mw = &perf->mw; in ntb_perf_thread() local 389 win_size = mw->phys_size; in ntb_perf_thread() 396 dst = (char __iomem *)mw->vbase; in ntb_perf_thread() 451 struct perf_mw *mw = &perf->mw; in perf_free_mw() local 454 if (!mw->virt_addr) in perf_free_mw() 458 dma_free_coherent(&pdev->dev, mw->buf_size, in perf_free_mw() [all …]
|
/drivers/misc/mic/host/ |
D | mic_x100.c | 81 struct mic_mw *mw = &mdev->mmio; in mic_x100_enable_interrupts() local 85 reg = mic_mmio_read(mw, sice0); in mic_x100_enable_interrupts() 87 mic_mmio_write(mw, reg, sice0); in mic_x100_enable_interrupts() 94 reg = mic_mmio_read(mw, siac0); in mic_x100_enable_interrupts() 97 mic_mmio_write(mw, reg, siac0); in mic_x100_enable_interrupts() 108 struct mic_mw *mw = &mdev->mmio; in mic_x100_disable_interrupts() local 113 reg = mic_mmio_read(mw, sice0); in mic_x100_disable_interrupts() 114 mic_mmio_write(mw, reg, sicc0); in mic_x100_disable_interrupts() 117 reg = mic_mmio_read(mw, siac0); in mic_x100_disable_interrupts() 120 mic_mmio_write(mw, reg, siac0); in mic_x100_disable_interrupts() [all …]
|
D | mic_device.h | 145 static inline u32 mic_mmio_read(struct mic_mw *mw, u32 offset) in mic_mmio_read() argument 147 return ioread32(mw->va + offset); in mic_mmio_read() 159 mic_mmio_write(struct mic_mw *mw, u32 val, u32 offset) in mic_mmio_write() argument 161 iowrite32(val, mw->va + offset); in mic_mmio_write()
|
/drivers/misc/mic/card/ |
D | mic_x100.c | 62 struct mic_mw *mw = &mdev->mmio; in mic_send_intr() local 68 mic_mmio_write(mw, MIC_X100_SBOX_SDBIC0_DBREQ_BIT, in mic_send_intr() 76 static void mic_x100_send_sbox_intr(struct mic_mw *mw, int doorbell) in mic_x100_send_sbox_intr() argument 79 u32 apicicr_low = mic_mmio_read(mw, MIC_X100_SBOX_BASE_ADDRESS + in mic_x100_send_sbox_intr() 91 mic_mmio_write(mw, apicicr_low, in mic_x100_send_sbox_intr() 95 static void mic_x100_send_rdmasr_intr(struct mic_mw *mw, int doorbell) in mic_x100_send_rdmasr_intr() argument 105 mic_mmio_write(mw, 0, MIC_X100_SBOX_BASE_ADDRESS + rdmasr_offset); in mic_x100_send_rdmasr_intr() 129 void mic_send_p2p_intr(int db, struct mic_mw *mw) in mic_send_p2p_intr() argument 134 mic_x100_send_sbox_intr(mw, db); in mic_send_p2p_intr() 137 mic_x100_send_rdmasr_intr(mw, rdmasr_index); in mic_send_p2p_intr()
|
D | mic_device.h | 110 static inline u32 mic_mmio_read(struct mic_mw *mw, u32 offset) in mic_mmio_read() argument 112 return ioread32(mw->va + offset); in mic_mmio_read() 124 mic_mmio_write(struct mic_mw *mw, u32 val, u32 offset) in mic_mmio_write() argument 126 iowrite32(val, mw->va + offset); in mic_mmio_write() 138 void mic_send_p2p_intr(int doorbell, struct mic_mw *mw);
|
D | mic_device.c | 220 struct mic_mw *mw) in ___mic_send_p2p_intr() argument 222 mic_send_p2p_intr(db, mw); in ___mic_send_p2p_intr()
|
/drivers/ntb/ |
D | ntb_transport.c | 601 struct ntb_transport_mw *mw; in ntb_transport_setup_qp_mw() local 613 mw = &nt->mw_vec[mw_num]; in ntb_transport_setup_qp_mw() 615 if (!mw->virt_addr) in ntb_transport_setup_qp_mw() 623 rx_size = (unsigned int)mw->xlat_size / num_qps_mw; in ntb_transport_setup_qp_mw() 624 qp->rx_buff = mw->virt_addr + rx_size * (qp_num / mw_count); in ntb_transport_setup_qp_mw() 669 struct ntb_transport_mw *mw = &nt->mw_vec[num_mw]; in ntb_free_mw() local 672 if (!mw->virt_addr) in ntb_free_mw() 676 dma_free_coherent(&pdev->dev, mw->buff_size, in ntb_free_mw() 677 mw->virt_addr, mw->dma_addr); in ntb_free_mw() 678 mw->xlat_size = 0; in ntb_free_mw() [all …]
|
/drivers/infiniband/hw/mlx4/ |
D | mr.c | 344 struct mlx4_ib_mw *mw; in mlx4_ib_alloc_mw() local 347 mw = kmalloc(sizeof(*mw), GFP_KERNEL); in mlx4_ib_alloc_mw() 348 if (!mw) in mlx4_ib_alloc_mw() 352 to_mlx4_type(type), &mw->mmw); in mlx4_ib_alloc_mw() 356 err = mlx4_mw_enable(dev->dev, &mw->mmw); in mlx4_ib_alloc_mw() 360 mw->ibmw.rkey = mw->mmw.key; in mlx4_ib_alloc_mw() 362 return &mw->ibmw; in mlx4_ib_alloc_mw() 365 mlx4_mw_free(dev->dev, &mw->mmw); in mlx4_ib_alloc_mw() 368 kfree(mw); in mlx4_ib_alloc_mw() 375 struct mlx4_ib_mw *mw = to_mmw(ibmw); in mlx4_ib_dealloc_mw() local [all …]
|
D | mlx4_ib.h | 727 int mlx4_ib_dealloc_mw(struct ib_mw *mw);
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | mr.c | 818 struct mlx4_mw *mw) in mlx4_mw_alloc() argument 832 mw->key = hw_index_to_key(index); in mlx4_mw_alloc() 833 mw->pd = pd; in mlx4_mw_alloc() 834 mw->type = type; in mlx4_mw_alloc() 835 mw->enabled = MLX4_MPT_DISABLED; in mlx4_mw_alloc() 841 int mlx4_mw_enable(struct mlx4_dev *dev, struct mlx4_mw *mw) in mlx4_mw_enable() argument 847 err = mlx4_mpt_alloc_icm(dev, key_to_hw_index(mw->key), GFP_KERNEL); in mlx4_mw_enable() 861 mpt_entry->key = cpu_to_be32(key_to_hw_index(mw->key)); in mlx4_mw_enable() 862 mpt_entry->pd_flags = cpu_to_be32(mw->pd); in mlx4_mw_enable() 863 if (mw->type == MLX4_MW_TYPE_2) { in mlx4_mw_enable() [all …]
|
/drivers/clk/rockchip/ |
D | clk.h | 340 #define COMPOSITE(_id, cname, pnames, f, mo, ms, mw, mf, ds, dw,\ argument 351 .mux_width = mw, \ 398 #define COMPOSITE_NODIV(_id, cname, pnames, f, mo, ms, mw, mf, \ argument 409 .mux_width = mw, \ 416 #define COMPOSITE_NOGATE(_id, cname, pnames, f, mo, ms, mw, mf, \ argument 427 .mux_width = mw, \ 436 mw, mf, ds, dw, df, dt) \ argument 446 .mux_width = mw, \ 506 #define COMPOSITE_DDRCLK(_id, cname, pnames, f, mo, ms, mw, \ argument 517 .mux_width = mw, \
|
/drivers/infiniband/sw/rxe/ |
D | rxe_verbs.h | 470 static inline struct rxe_mem *to_rmw(struct ib_mw *mw) in to_rmw() argument 472 return mw ? container_of(mw, struct rxe_mem, ibmw) : NULL; in to_rmw()
|
/drivers/infiniband/hw/mlx5/ |
D | mr.c | 1689 struct mlx5_ib_mw *mw = NULL; in mlx5_ib_alloc_mw() local 1714 mw = kzalloc(sizeof(*mw), GFP_KERNEL); in mlx5_ib_alloc_mw() 1716 if (!mw || !in) { in mlx5_ib_alloc_mw() 1732 err = mlx5_core_create_mkey(dev->mdev, &mw->mmkey, in, inlen); in mlx5_ib_alloc_mw() 1736 mw->ibmw.rkey = mw->mmkey.key; in mlx5_ib_alloc_mw() 1743 mlx5_core_destroy_mkey(dev->mdev, &mw->mmkey); in mlx5_ib_alloc_mw() 1749 return &mw->ibmw; in mlx5_ib_alloc_mw() 1752 kfree(mw); in mlx5_ib_alloc_mw() 1757 int mlx5_ib_dealloc_mw(struct ib_mw *mw) in mlx5_ib_dealloc_mw() argument 1759 struct mlx5_ib_mw *mmw = to_mmw(mw); in mlx5_ib_dealloc_mw() [all …]
|
D | mlx5_ib.h | 786 int mlx5_ib_dealloc_mw(struct ib_mw *mw);
|
/drivers/misc/mic/bus/ |
D | scif_bus.h | 106 struct mic_mw *mw);
|
/drivers/infiniband/core/ |
D | uverbs_main.c | 145 int uverbs_dealloc_mw(struct ib_mw *mw) in uverbs_dealloc_mw() argument 147 struct ib_pd *pd = mw->pd; in uverbs_dealloc_mw() 150 ret = mw->device->dealloc_mw(mw); in uverbs_dealloc_mw() 244 struct ib_mw *mw = uobj->object; in ib_uverbs_cleanup_ucontext() local 247 uverbs_dealloc_mw(mw); in ib_uverbs_cleanup_ucontext()
|
D | uverbs_cmd.c | 1201 struct ib_mw *mw; in ib_uverbs_alloc_mw() local 1229 mw = pd->device->alloc_mw(pd, cmd.mw_type, &udata); in ib_uverbs_alloc_mw() 1230 if (IS_ERR(mw)) { in ib_uverbs_alloc_mw() 1231 ret = PTR_ERR(mw); in ib_uverbs_alloc_mw() 1235 mw->device = pd->device; in ib_uverbs_alloc_mw() 1236 mw->pd = pd; in ib_uverbs_alloc_mw() 1237 mw->uobject = uobj; in ib_uverbs_alloc_mw() 1240 uobj->object = mw; in ib_uverbs_alloc_mw() 1246 resp.rkey = mw->rkey; in ib_uverbs_alloc_mw() 1271 uverbs_dealloc_mw(mw); in ib_uverbs_alloc_mw() [all …]
|
D | uverbs.h | 215 int uverbs_dealloc_mw(struct ib_mw *mw);
|
D | cma.c | 3918 struct iboe_mcast_work *mw = container_of(work, struct iboe_mcast_work, work); in iboe_mcast_work_handler() local 3919 struct cma_multicast *mc = mw->mc; in iboe_mcast_work_handler() 3925 kfree(mw); in iboe_mcast_work_handler()
|
/drivers/infiniband/hw/cxgb4/ |
D | mem.c | 635 int c4iw_dealloc_mw(struct ib_mw *mw) in c4iw_dealloc_mw() argument 641 mhp = to_c4iw_mw(mw); in c4iw_dealloc_mw() 643 mmid = (mw->rkey) >> 8; in c4iw_dealloc_mw() 648 PDBG("%s ib_mw %p mmid 0x%x ptr %p\n", __func__, mw, mmid, mhp); in c4iw_dealloc_mw()
|
D | iw_cxgb4.h | 961 int c4iw_dealloc_mw(struct ib_mw *mw);
|
/drivers/infiniband/hw/cxgb3/ |
D | iwch_provider.c | 698 static int iwch_dealloc_mw(struct ib_mw *mw) in iwch_dealloc_mw() argument 704 mhp = to_iwch_mw(mw); in iwch_dealloc_mw() 706 mmid = (mw->rkey) >> 8; in iwch_dealloc_mw() 709 PDBG("%s ib_mw %p mmid 0x%x ptr %p\n", __func__, mw, mmid, mhp); in iwch_dealloc_mw()
|
/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_stats.c | 165 (u64)rsrc_stats->mw); in ocrdma_resource_stats() 219 (u64)rsrc_stats->mw); in ocrdma_resource_stats()
|
D | ocrdma_sli.h | 1952 u32 mw; member
|