/linux-4.4.14/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 | 148 static inline u32 mic_mmio_read(struct mic_mw *mw, u32 offset) in mic_mmio_read() argument 150 return ioread32(mw->va + offset); in mic_mmio_read() 162 mic_mmio_write(struct mic_mw *mw, u32 val, u32 offset) in mic_mmio_write() argument 164 iowrite32(val, mw->va + offset); in mic_mmio_write()
|
/linux-4.4.14/net/sunrpc/xprtrdma/ |
D | fmr_ops.c | 128 struct rpcrdma_mw *mw; in fmr_op_map() local 130 mw = seg1->rl_mw; in fmr_op_map() 132 if (!mw) { in fmr_op_map() 133 mw = rpcrdma_get_mw(r_xprt); in fmr_op_map() 134 if (!mw) in fmr_op_map() 138 rc = __fmr_unmap(mw); in fmr_op_map() 151 mw->r.fmr.physaddrs[i] = seg->mr_dma; in fmr_op_map() 161 rc = ib_map_phys_fmr(mw->r.fmr.fmr, mw->r.fmr.physaddrs, in fmr_op_map() 166 seg1->rl_mw = mw; in fmr_op_map() 167 seg1->mr_rkey = mw->r.fmr.fmr->rkey; in fmr_op_map() [all …]
|
D | frwr_ops.c | 319 struct rpcrdma_mw *mw; in frwr_op_map() local 327 mw = seg1->rl_mw; in frwr_op_map() 330 if (mw) in frwr_op_map() 331 __frwr_queue_recovery(mw); in frwr_op_map() 332 mw = rpcrdma_get_mw(r_xprt); in frwr_op_map() 333 if (!mw) in frwr_op_map() 335 } while (mw->r.frmr.fr_state != FRMR_IS_INVALID); in frwr_op_map() 336 frmr = &mw->r.frmr; in frwr_op_map() 379 __func__, mw, frmr->sg_nents, mr->length); in frwr_op_map() 386 reg_wr.wr.wr_id = (uintptr_t)mw; in frwr_op_map() [all …]
|
D | verbs.c | 1067 struct rpcrdma_mw *mw = NULL; in rpcrdma_get_mw() local 1071 mw = list_first_entry(&buf->rb_mws, in rpcrdma_get_mw() 1073 list_del_init(&mw->mw_list); in rpcrdma_get_mw() 1077 if (!mw) in rpcrdma_get_mw() 1079 return mw; in rpcrdma_get_mw() 1083 rpcrdma_put_mw(struct rpcrdma_xprt *r_xprt, struct rpcrdma_mw *mw) in rpcrdma_put_mw() argument 1088 list_add_tail(&mw->mw_list, &buf->rb_mws); in rpcrdma_put_mw()
|
/linux-4.4.14/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 | 107 static inline u32 mic_mmio_read(struct mic_mw *mw, u32 offset) in mic_mmio_read() argument 109 return ioread32(mw->va + offset); in mic_mmio_read() 121 mic_mmio_write(struct mic_mw *mw, u32 val, u32 offset) in mic_mmio_write() argument 123 iowrite32(val, mw->va + offset); in mic_mmio_write() 135 void mic_send_p2p_intr(int doorbell, struct mic_mw *mw);
|
D | mic_device.c | 221 struct mic_mw *mw) in ___mic_send_p2p_intr() argument 223 mic_send_p2p_intr(db, mw); in ___mic_send_p2p_intr()
|
/linux-4.4.14/drivers/infiniband/hw/mlx4/ |
D | mr.c | 340 struct mlx4_ib_mw *mw; in mlx4_ib_alloc_mw() local 343 mw = kmalloc(sizeof(*mw), GFP_KERNEL); in mlx4_ib_alloc_mw() 344 if (!mw) in mlx4_ib_alloc_mw() 348 to_mlx4_type(type), &mw->mmw); in mlx4_ib_alloc_mw() 352 err = mlx4_mw_enable(dev->dev, &mw->mmw); in mlx4_ib_alloc_mw() 356 mw->ibmw.rkey = mw->mmw.key; in mlx4_ib_alloc_mw() 358 return &mw->ibmw; in mlx4_ib_alloc_mw() 361 mlx4_mw_free(dev->dev, &mw->mmw); in mlx4_ib_alloc_mw() 364 kfree(mw); in mlx4_ib_alloc_mw() 369 int mlx4_ib_bind_mw(struct ib_qp *qp, struct ib_mw *mw, in mlx4_ib_bind_mw() argument [all …]
|
D | mlx4_ib.h | 707 int mlx4_ib_bind_mw(struct ib_qp *qp, struct ib_mw *mw, 709 int mlx4_ib_dealloc_mw(struct ib_mw *mw);
|
D | qp.c | 2540 if (wr->mw->type == IB_MW_TYPE_2) in set_bind_seg()
|
/linux-4.4.14/net/netfilter/ipvs/ |
D | ip_vs_wrr.c | 68 int mw; /* maximum weight */ member 124 mark->mw = ip_vs_wrr_max_weight(svc) - (mark->di - 1); in ip_vs_wrr_init_svc() 125 mark->cw = mark->mw; in ip_vs_wrr_init_svc() 151 mark->mw = ip_vs_wrr_max_weight(svc) - (mark->di - 1); in ip_vs_wrr_dest_changed() 152 if (mark->cw > mark->mw || !mark->cw) in ip_vs_wrr_dest_changed() 153 mark->cw = mark->mw; in ip_vs_wrr_dest_changed() 177 if (mark->mw == 0) in ip_vs_wrr_schedule() 193 mark->cw = mark->mw; in ip_vs_wrr_schedule()
|
/linux-4.4.14/drivers/ntb/ |
D | ntb_transport.c | 588 struct ntb_transport_mw *mw; in ntb_transport_setup_qp_mw() local 597 mw = &nt->mw_vec[mw_num]; in ntb_transport_setup_qp_mw() 599 if (!mw->virt_addr) in ntb_transport_setup_qp_mw() 607 rx_size = (unsigned int)mw->xlat_size / num_qps_mw; in ntb_transport_setup_qp_mw() 608 qp->rx_buff = mw->virt_addr + rx_size * (qp_num / mw_count); in ntb_transport_setup_qp_mw() 636 struct ntb_transport_mw *mw = &nt->mw_vec[num_mw]; in ntb_free_mw() local 639 if (!mw->virt_addr) in ntb_free_mw() 643 dma_free_coherent(&pdev->dev, mw->buff_size, in ntb_free_mw() 644 mw->virt_addr, mw->dma_addr); in ntb_free_mw() 645 mw->xlat_size = 0; in ntb_free_mw() [all …]
|
/linux-4.4.14/arch/mips/txx9/generic/ |
D | mem_tx4927.c | 46 unsigned int mw = 0; in tx4927_process_sdccr() local 61 mw = 8 >> sdccr_mw; in tx4927_process_sdccr() 64 return rs * cs * mw * bs; in tx4927_process_sdccr()
|
/linux-4.4.14/fs/ocfs2/ |
D | dlmglue.c | 440 struct ocfs2_mask_waiter *mw, int ret) in ocfs2_update_lock_stats() argument 453 kt = ktime_sub(ktime_get(), mw->mw_lock_start); in ocfs2_update_lock_stats() 476 static inline void ocfs2_init_start_time(struct ocfs2_mask_waiter *mw) in ocfs2_init_start_time() argument 478 mw->mw_lock_start = ktime_get(); in ocfs2_init_start_time() 485 int level, struct ocfs2_mask_waiter *mw, int ret) in ocfs2_update_lock_stats() argument 491 static inline void ocfs2_init_start_time(struct ocfs2_mask_waiter *mw) in ocfs2_init_start_time() argument 804 struct ocfs2_mask_waiter *mw, *tmp; in lockres_set_flags() local 810 list_for_each_entry_safe(mw, tmp, &lockres->l_mask_waiters, mw_item) { in lockres_set_flags() 811 if ((lockres->l_flags & mw->mw_mask) != mw->mw_goal) in lockres_set_flags() 814 list_del_init(&mw->mw_item); in lockres_set_flags() [all …]
|
/linux-4.4.14/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 …]
|
/linux-4.4.14/drivers/clk/rockchip/ |
D | clk.h | 240 #define COMPOSITE(_id, cname, pnames, f, mo, ms, mw, mf, ds, dw,\ argument 251 .mux_width = mw, \ 298 #define COMPOSITE_NODIV(_id, cname, pnames, f, mo, ms, mw, mf, \ argument 309 .mux_width = mw, \ 316 #define COMPOSITE_NOGATE(_id, cname, pnames, f, mo, ms, mw, mf, \ argument 327 .mux_width = mw, \ 336 mw, mf, ds, dw, df, dt) \ argument 346 .mux_width = mw, \
|
/linux-4.4.14/drivers/staging/rdma/ehca/ |
D | hcp_if.h | 246 const struct ehca_mw *mw, 252 const struct ehca_mw *mw, 257 const struct ehca_mw *mw);
|
D | ehca_iverbs.h | 104 int ehca_bind_mw(struct ib_qp *qp, struct ib_mw *mw, 107 int ehca_dealloc_mw(struct ib_mw *mw);
|
D | hcp_if.c | 879 const struct ehca_mw *mw, in hipz_h_alloc_resource_mw() argument 898 const struct ehca_mw *mw, in hipz_h_query_mw() argument 906 mw->ipz_mw_handle.handle, /* r5 */ in hipz_h_query_mw() 914 const struct ehca_mw *mw) in hipz_h_free_resource_mw() argument 918 mw->ipz_mw_handle.handle, /* r5 */ in hipz_h_free_resource_mw()
|
D | ehca_mrmw.c | 732 struct ib_mw *mw, in ehca_bind_mw() argument 743 int ehca_dealloc_mw(struct ib_mw *mw) in ehca_dealloc_mw() argument 747 container_of(mw->device, struct ehca_shca, ib_device); in ehca_dealloc_mw() 748 struct ehca_mw *e_mw = container_of(mw, struct ehca_mw, ib_mw); in ehca_dealloc_mw() 752 ehca_err(mw->device, "hipz_free_mw failed, h_ret=%lli shca=%p " in ehca_dealloc_mw() 754 h_ret, shca, mw, mw->rkey, shca->ipz_hca_handle.handle, in ehca_dealloc_mw()
|
/linux-4.4.14/drivers/infiniband/core/ |
D | verbs.c | 1287 struct ib_mw *mw; in ib_alloc_mw() local 1292 mw = pd->device->alloc_mw(pd, type); in ib_alloc_mw() 1293 if (!IS_ERR(mw)) { in ib_alloc_mw() 1294 mw->device = pd->device; in ib_alloc_mw() 1295 mw->pd = pd; in ib_alloc_mw() 1296 mw->uobject = NULL; in ib_alloc_mw() 1297 mw->type = type; in ib_alloc_mw() 1301 return mw; in ib_alloc_mw() 1305 int ib_dealloc_mw(struct ib_mw *mw) in ib_dealloc_mw() argument 1310 pd = mw->pd; in ib_dealloc_mw() [all …]
|
D | uverbs_cmd.c | 1197 struct ib_mw *mw; in ib_uverbs_alloc_mw() local 1219 mw = pd->device->alloc_mw(pd, cmd.mw_type); in ib_uverbs_alloc_mw() 1220 if (IS_ERR(mw)) { in ib_uverbs_alloc_mw() 1221 ret = PTR_ERR(mw); in ib_uverbs_alloc_mw() 1225 mw->device = pd->device; in ib_uverbs_alloc_mw() 1226 mw->pd = pd; in ib_uverbs_alloc_mw() 1227 mw->uobject = uobj; in ib_uverbs_alloc_mw() 1230 uobj->object = mw; in ib_uverbs_alloc_mw() 1236 resp.rkey = mw->rkey; in ib_uverbs_alloc_mw() 1261 ib_dealloc_mw(mw); in ib_uverbs_alloc_mw() [all …]
|
D | uverbs_main.c | 226 struct ib_mw *mw = uobj->object; in ib_uverbs_cleanup_ucontext() local 229 ib_dealloc_mw(mw); in ib_uverbs_cleanup_ucontext()
|
D | cma.c | 3634 struct iboe_mcast_work *mw = container_of(work, struct iboe_mcast_work, work); in iboe_mcast_work_handler() local 3635 struct cma_multicast *mc = mw->mc; in iboe_mcast_work_handler() 3641 kfree(mw); in iboe_mcast_work_handler()
|
/linux-4.4.14/drivers/misc/mic/bus/ |
D | scif_bus.h | 106 struct mic_mw *mw);
|
/linux-4.4.14/include/rdma/ |
D | ib_verbs.h | 1152 struct ib_mw *mw; member 1763 struct ib_mw *mw, 1765 int (*dealloc_mw)(struct ib_mw *mw); 2905 struct ib_mw *mw, in ib_bind_mw() argument 2909 return mw->device->bind_mw ? in ib_bind_mw() 2910 mw->device->bind_mw(qp, mw, mw_bind) : in ib_bind_mw() 2918 int ib_dealloc_mw(struct ib_mw *mw);
|
/linux-4.4.14/drivers/infiniband/hw/cxgb4/ |
D | mem.c | 840 int c4iw_dealloc_mw(struct ib_mw *mw) in c4iw_dealloc_mw() argument 846 mhp = to_c4iw_mw(mw); in c4iw_dealloc_mw() 848 mmid = (mw->rkey) >> 8; in c4iw_dealloc_mw() 852 PDBG("%s ib_mw %p mmid 0x%x ptr %p\n", __func__, mw, mmid, mhp); in c4iw_dealloc_mw()
|
D | iw_cxgb4.h | 950 int c4iw_bind_mw(struct ib_qp *qp, struct ib_mw *mw, 965 int c4iw_dealloc_mw(struct ib_mw *mw);
|
D | qp.c | 940 int c4iw_bind_mw(struct ib_qp *qp, struct ib_mw *mw, struct ib_mw_bind *mw_bind) in c4iw_bind_mw() argument
|
/linux-4.4.14/Documentation/ |
D | ntb.txt | 112 starts from the first mw idx, and a negative value starts from the last 113 mw idx. Both sides MUST set the same value here! The default value is
|
/linux-4.4.14/drivers/infiniband/hw/cxgb3/ |
D | iwch_provider.h | 334 struct ib_mw *mw,
|
D | iwch_qp.c | 530 struct ib_mw *mw, in iwch_bind_mw() argument 548 mhp = to_iwch_mw(mw); in iwch_bind_mw() 564 mw, mw_bind); in iwch_bind_mw() 581 wqe->bind.mw_stag = cpu_to_be32(mw->rkey); in iwch_bind_mw()
|
D | iwch_provider.c | 788 static int iwch_dealloc_mw(struct ib_mw *mw) in iwch_dealloc_mw() argument 794 mhp = to_iwch_mw(mw); in iwch_dealloc_mw() 796 mmid = (mw->rkey) >> 8; in iwch_dealloc_mw() 799 PDBG("%s ib_mw %p mmid 0x%x ptr %p\n", __func__, mw, mmid, mhp); in iwch_dealloc_mw()
|
/linux-4.4.14/include/linux/mlx4/ |
D | device.h | 1077 struct mlx4_mw *mw); 1078 void mlx4_mw_free(struct mlx4_dev *dev, struct mlx4_mw *mw); 1079 int mlx4_mw_enable(struct mlx4_dev *dev, struct mlx4_mw *mw);
|
/linux-4.4.14/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_stats.c | 163 (u64)rsrc_stats->mw); in ocrdma_resource_stats() 217 (u64)rsrc_stats->mw); in ocrdma_resource_stats()
|
D | ocrdma_sli.h | 1938 u32 mw; member
|
/linux-4.4.14/Documentation/filesystems/ |
D | proc.txt | 437 VmFlags: rd ex mr mw me dw 473 mw - may write
|