Home
last modified time | relevance | path

Searched refs:mw (Results 1 – 38 of 38) sorted by relevance

/linux-4.1.27/drivers/misc/mic/host/
Dmic_x100.c81 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 …]
Dmic_device.h179 static inline u32 mic_mmio_read(struct mic_mw *mw, u32 offset) in mic_mmio_read() argument
181 return ioread32(mw->va + offset); in mic_mmio_read()
193 mic_mmio_write(struct mic_mw *mw, u32 val, u32 offset) in mic_mmio_write() argument
195 iowrite32(val, mw->va + offset); in mic_mmio_write()
/linux-4.1.27/drivers/infiniband/hw/mlx4/
Dmr.c292 struct mlx4_ib_mw *mw; in mlx4_ib_alloc_mw() local
295 mw = kmalloc(sizeof(*mw), GFP_KERNEL); in mlx4_ib_alloc_mw()
296 if (!mw) in mlx4_ib_alloc_mw()
300 to_mlx4_type(type), &mw->mmw); in mlx4_ib_alloc_mw()
304 err = mlx4_mw_enable(dev->dev, &mw->mmw); in mlx4_ib_alloc_mw()
308 mw->ibmw.rkey = mw->mmw.key; in mlx4_ib_alloc_mw()
310 return &mw->ibmw; in mlx4_ib_alloc_mw()
313 mlx4_mw_free(dev->dev, &mw->mmw); in mlx4_ib_alloc_mw()
316 kfree(mw); in mlx4_ib_alloc_mw()
321 int mlx4_ib_bind_mw(struct ib_qp *qp, struct ib_mw *mw, in mlx4_ib_bind_mw() argument
[all …]
Dmlx4_ib.h660 int mlx4_ib_bind_mw(struct ib_qp *qp, struct ib_mw *mw,
662 int mlx4_ib_dealloc_mw(struct ib_mw *mw);
Dqp.c2432 if (wr->wr.bind_mw.mw->type == IB_MW_TYPE_2) in set_bind_seg()
/linux-4.1.27/net/netfilter/ipvs/
Dip_vs_wrr.c68 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.1.27/drivers/misc/mic/card/
Dmic_device.h101 static inline u32 mic_mmio_read(struct mic_mw *mw, u32 offset) in mic_mmio_read() argument
103 return ioread32(mw->va + offset); in mic_mmio_read()
115 mic_mmio_write(struct mic_mw *mw, u32 val, u32 offset) in mic_mmio_write() argument
117 iowrite32(val, mw->va + offset); in mic_mmio_write()
Dmic_x100.c62 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()
/linux-4.1.27/drivers/ntb/
Dntb_hw.c88 #define MW_TO_BAR(mw) (mw == 0 ? 2 : (mw == 1 ? 4 : 5)) argument
442 resource_size_t ntb_get_mw_base(struct ntb_device *ndev, unsigned int mw) in ntb_get_mw_base() argument
444 if (mw >= ntb_max_mw(ndev)) in ntb_get_mw_base()
447 return pci_resource_start(ndev->pdev, MW_TO_BAR(mw)); in ntb_get_mw_base()
460 void __iomem *ntb_get_mw_vbase(struct ntb_device *ndev, unsigned int mw) in ntb_get_mw_vbase() argument
462 if (mw >= ntb_max_mw(ndev)) in ntb_get_mw_vbase()
465 return ndev->mw[mw].vbase; in ntb_get_mw_vbase()
477 u64 ntb_get_mw_size(struct ntb_device *ndev, unsigned int mw) in ntb_get_mw_size() argument
479 if (mw >= ntb_max_mw(ndev)) in ntb_get_mw_size()
482 return ndev->mw[mw].bar_sz; in ntb_get_mw_size()
[all …]
Dntb_hw.h120 struct ntb_mw *mw; member
235 void ntb_set_mw_addr(struct ntb_device *ndev, unsigned int mw, u64 addr);
249 resource_size_t ntb_get_mw_base(struct ntb_device *ndev, unsigned int mw);
250 void __iomem *ntb_get_mw_vbase(struct ntb_device *ndev, unsigned int mw);
251 u64 ntb_get_mw_size(struct ntb_device *ndev, unsigned int mw);
Dntb_transport.c171 struct ntb_transport_mw *mw; member
511 WARN_ON(nt->mw[mw_num].virt_addr == NULL); in ntb_transport_setup_qp_mw()
518 rx_size = (unsigned int) nt->mw[mw_num].size / num_qps_mw; in ntb_transport_setup_qp_mw()
519 qp->rx_buff = nt->mw[mw_num].virt_addr + qp_num / mw_max * rx_size; in ntb_transport_setup_qp_mw()
545 struct ntb_transport_mw *mw = &nt->mw[num_mw]; in ntb_free_mw() local
548 if (!mw->virt_addr) in ntb_free_mw()
551 dma_free_coherent(&pdev->dev, mw->size, mw->virt_addr, mw->dma_addr); in ntb_free_mw()
552 mw->virt_addr = NULL; in ntb_free_mw()
557 struct ntb_transport_mw *mw = &nt->mw[num_mw]; in ntb_set_mw() local
561 if (mw->size == ALIGN(size, 4096)) in ntb_set_mw()
[all …]
/linux-4.1.27/arch/mips/txx9/generic/
Dmem_tx4927.c46 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.1.27/fs/ocfs2/
Ddlmglue.c440 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.1.27/drivers/net/ethernet/mellanox/mlx4/
Dmr.c818 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.1.27/drivers/clk/rockchip/
Dclk.h216 #define COMPOSITE(_id, cname, pnames, f, mo, ms, mw, mf, ds, dw,\ argument
227 .mux_width = mw, \
274 #define COMPOSITE_NODIV(_id, cname, pnames, f, mo, ms, mw, mf, \ argument
285 .mux_width = mw, \
292 #define COMPOSITE_NOGATE(_id, cname, pnames, f, mo, ms, mw, mf, \ argument
303 .mux_width = mw, \
/linux-4.1.27/net/sunrpc/xprtrdma/
Dfmr_ops.c91 struct rpcrdma_mw *mw = seg1->rl_mw; in fmr_op_map() local
113 rc = ib_map_phys_fmr(mw->r.fmr, physaddrs, i, seg1->mr_dma); in fmr_op_map()
117 seg1->mr_rkey = mw->r.fmr->rkey; in fmr_op_map()
Dfrwr_ops.c184 struct rpcrdma_mw *mw = seg1->rl_mw; in frwr_op_map() local
185 struct rpcrdma_frmr *frmr = &mw->r.frmr; in frwr_op_map()
217 __func__, mw, i, len); in frwr_op_map()
222 fastreg_wr.wr_id = (unsigned long)(void *)mw; in frwr_op_map()
Dverbs.c1184 rpcrdma_buffer_put_mr(struct rpcrdma_mw **mw, struct rpcrdma_buffer *buf) in rpcrdma_buffer_put_mr() argument
1186 if (*mw) { in rpcrdma_buffer_put_mr()
1187 list_add_tail(&(*mw)->mw_list, &buf->rb_mws); in rpcrdma_buffer_put_mr()
1188 *mw = NULL; in rpcrdma_buffer_put_mr()
/linux-4.1.27/drivers/infiniband/hw/ehca/
Dhcp_if.h246 const struct ehca_mw *mw,
252 const struct ehca_mw *mw,
257 const struct ehca_mw *mw);
Dehca_iverbs.h100 int ehca_bind_mw(struct ib_qp *qp, struct ib_mw *mw,
103 int ehca_dealloc_mw(struct ib_mw *mw);
Dhcp_if.c879 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()
Dehca_mrmw.c732 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.1.27/drivers/infiniband/core/
Dverbs.c1262 struct ib_mw *mw; in ib_alloc_mw() local
1267 mw = pd->device->alloc_mw(pd, type); in ib_alloc_mw()
1268 if (!IS_ERR(mw)) { in ib_alloc_mw()
1269 mw->device = pd->device; in ib_alloc_mw()
1270 mw->pd = pd; in ib_alloc_mw()
1271 mw->uobject = NULL; in ib_alloc_mw()
1272 mw->type = type; in ib_alloc_mw()
1276 return mw; in ib_alloc_mw()
1280 int ib_dealloc_mw(struct ib_mw *mw) in ib_dealloc_mw() argument
1285 pd = mw->pd; in ib_dealloc_mw()
[all …]
Duverbs_cmd.c1184 struct ib_mw *mw; in ib_uverbs_alloc_mw() local
1206 mw = pd->device->alloc_mw(pd, cmd.mw_type); in ib_uverbs_alloc_mw()
1207 if (IS_ERR(mw)) { in ib_uverbs_alloc_mw()
1208 ret = PTR_ERR(mw); in ib_uverbs_alloc_mw()
1212 mw->device = pd->device; in ib_uverbs_alloc_mw()
1213 mw->pd = pd; in ib_uverbs_alloc_mw()
1214 mw->uobject = uobj; in ib_uverbs_alloc_mw()
1217 uobj->object = mw; in ib_uverbs_alloc_mw()
1223 resp.rkey = mw->rkey; in ib_uverbs_alloc_mw()
1248 ib_dealloc_mw(mw); in ib_uverbs_alloc_mw()
[all …]
Duverbs_main.c224 struct ib_mw *mw = uobj->object; in ib_uverbs_cleanup_ucontext() local
227 ib_dealloc_mw(mw); in ib_uverbs_cleanup_ucontext()
Dcma.c3261 struct iboe_mcast_work *mw = container_of(work, struct iboe_mcast_work, work); in iboe_mcast_work_handler() local
3262 struct cma_multicast *mc = mw->mc; in iboe_mcast_work_handler()
3268 kfree(mw); in iboe_mcast_work_handler()
/linux-4.1.27/include/rdma/
Dib_verbs.h1072 struct ib_mw *mw; member
1620 struct ib_mw *mw,
1622 int (*dealloc_mw)(struct ib_mw *mw);
2551 struct ib_mw *mw, in ib_bind_mw() argument
2555 return mw->device->bind_mw ? in ib_bind_mw()
2556 mw->device->bind_mw(qp, mw, mw_bind) : in ib_bind_mw()
2564 int ib_dealloc_mw(struct ib_mw *mw);
/linux-4.1.27/drivers/infiniband/hw/cxgb4/
Dmem.c840 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()
Diw_cxgb4.h962 int c4iw_bind_mw(struct ib_qp *qp, struct ib_mw *mw,
976 int c4iw_dealloc_mw(struct ib_mw *mw);
Dqp.c927 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.1.27/drivers/infiniband/hw/cxgb3/
Diwch_provider.h332 struct ib_mw *mw,
Diwch_qp.c529 struct ib_mw *mw, in iwch_bind_mw() argument
547 mhp = to_iwch_mw(mw); in iwch_bind_mw()
563 mw, mw_bind); in iwch_bind_mw()
580 wqe->bind.mw_stag = cpu_to_be32(mw->rkey); in iwch_bind_mw()
Diwch_provider.c774 static int iwch_dealloc_mw(struct ib_mw *mw) in iwch_dealloc_mw() argument
780 mhp = to_iwch_mw(mw); in iwch_dealloc_mw()
782 mmid = (mw->rkey) >> 8; in iwch_dealloc_mw()
785 PDBG("%s ib_mw %p mmid 0x%x ptr %p\n", __func__, mw, mmid, mhp); in iwch_dealloc_mw()
/linux-4.1.27/include/linux/mlx4/
Ddevice.h1044 struct mlx4_mw *mw);
1045 void mlx4_mw_free(struct mlx4_dev *dev, struct mlx4_mw *mw);
1046 int mlx4_mw_enable(struct mlx4_dev *dev, struct mlx4_mw *mw);
/linux-4.1.27/drivers/infiniband/hw/ocrdma/
Docrdma_stats.c148 (u64)rsrc_stats->mw); in ocrdma_resource_stats()
202 (u64)rsrc_stats->mw); in ocrdma_resource_stats()
Docrdma_sli.h1880 u32 mw; member
/linux-4.1.27/Documentation/filesystems/
Dproc.txt430 VmFlags: rd ex mr mw me de
454 mw - may write
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
Dcfg80211.c260 static u8 brcmf_mw_to_qdbm(u16 mw) in brcmf_mw_to_qdbm() argument
264 uint mw_uint = mw; in brcmf_mw_to_qdbm()