mw 46 arch/mips/txx9/generic/mem_tx4927.c unsigned int mw = 0; mw 61 arch/mips/txx9/generic/mem_tx4927.c mw = 8 >> sdccr_mw; mw 64 arch/mips/txx9/generic/mem_tx4927.c return rs * cs * mw * bs; mw 425 drivers/clk/rockchip/clk.h #define COMPOSITE(_id, cname, pnames, f, mo, ms, mw, mf, ds, dw,\ mw 436 drivers/clk/rockchip/clk.h .mux_width = mw, \ mw 446 drivers/clk/rockchip/clk.h #define COMPOSITE_DIV_OFFSET(_id, cname, pnames, f, mo, ms, mw, \ mw 457 drivers/clk/rockchip/clk.h .mux_width = mw, \ mw 505 drivers/clk/rockchip/clk.h #define COMPOSITE_NODIV(_id, cname, pnames, f, mo, ms, mw, mf, \ mw 516 drivers/clk/rockchip/clk.h .mux_width = mw, \ mw 523 drivers/clk/rockchip/clk.h #define COMPOSITE_NOGATE(_id, cname, pnames, f, mo, ms, mw, mf, \ mw 534 drivers/clk/rockchip/clk.h .mux_width = mw, \ mw 543 drivers/clk/rockchip/clk.h mw, mf, ds, dw, df, dt) \ mw 553 drivers/clk/rockchip/clk.h .mux_width = mw, \ mw 613 drivers/clk/rockchip/clk.h #define COMPOSITE_DDRCLK(_id, cname, pnames, f, mo, ms, mw, \ mw 624 drivers/clk/rockchip/clk.h .mux_width = mw, \ mw 754 drivers/clk/rockchip/clk.h #define COMPOSITE_HALFDIV(_id, cname, pnames, f, mo, ms, mw, mf, ds, dw,\ mw 765 drivers/clk/rockchip/clk.h .mux_width = mw, \ mw 775 drivers/clk/rockchip/clk.h #define COMPOSITE_NOGATE_HALFDIV(_id, cname, pnames, f, mo, ms, mw, mf, \ mw 786 drivers/clk/rockchip/clk.h .mux_width = mw, \ mw 4306 drivers/infiniband/core/cma.c struct iboe_mcast_work *mw = container_of(work, struct iboe_mcast_work, work); mw 4307 drivers/infiniband/core/cma.c struct cma_multicast *mc = mw->mc; mw 4313 drivers/infiniband/core/cma.c kfree(mw); mw 245 drivers/infiniband/core/uverbs.h int uverbs_dealloc_mw(struct ib_mw *mw); mw 884 drivers/infiniband/core/uverbs_cmd.c struct ib_mw *mw; mw 907 drivers/infiniband/core/uverbs_cmd.c mw = pd->device->ops.alloc_mw(pd, cmd.mw_type, &attrs->driver_udata); mw 908 drivers/infiniband/core/uverbs_cmd.c if (IS_ERR(mw)) { mw 909 drivers/infiniband/core/uverbs_cmd.c ret = PTR_ERR(mw); mw 913 drivers/infiniband/core/uverbs_cmd.c mw->device = pd->device; mw 914 drivers/infiniband/core/uverbs_cmd.c mw->pd = pd; mw 915 drivers/infiniband/core/uverbs_cmd.c mw->uobject = uobj; mw 918 drivers/infiniband/core/uverbs_cmd.c uobj->object = mw; mw 921 drivers/infiniband/core/uverbs_cmd.c resp.rkey = mw->rkey; mw 932 drivers/infiniband/core/uverbs_cmd.c uverbs_dealloc_mw(mw); mw 105 drivers/infiniband/core/uverbs_main.c int uverbs_dealloc_mw(struct ib_mw *mw) mw 107 drivers/infiniband/core/uverbs_main.c struct ib_pd *pd = mw->pd; mw 110 drivers/infiniband/core/uverbs_main.c ret = mw->device->ops.dealloc_mw(mw); mw 426 drivers/infiniband/hw/bnxt_re/ib_verbs.c fence->bind_rkey = ib_inc_rkey(fence->mw->rkey); mw 464 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (fence->mw) { mw 465 drivers/infiniband/hw/bnxt_re/ib_verbs.c bnxt_re_dealloc_mw(fence->mw); mw 466 drivers/infiniband/hw/bnxt_re/ib_verbs.c fence->mw = NULL; mw 492 drivers/infiniband/hw/bnxt_re/ib_verbs.c struct ib_mw *mw; mw 538 drivers/infiniband/hw/bnxt_re/ib_verbs.c mw = bnxt_re_alloc_mw(&pd->ib_pd, IB_MW_TYPE_1, NULL); mw 539 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (IS_ERR(mw)) { mw 542 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = PTR_ERR(mw); mw 545 drivers/infiniband/hw/bnxt_re/ib_verbs.c fence->mw = mw; mw 3426 drivers/infiniband/hw/bnxt_re/ib_verbs.c struct bnxt_re_mw *mw; mw 3429 drivers/infiniband/hw/bnxt_re/ib_verbs.c mw = kzalloc(sizeof(*mw), GFP_KERNEL); mw 3430 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (!mw) mw 3432 drivers/infiniband/hw/bnxt_re/ib_verbs.c mw->rdev = rdev; mw 3433 drivers/infiniband/hw/bnxt_re/ib_verbs.c mw->qplib_mw.pd = &pd->qplib_pd; mw 3435 drivers/infiniband/hw/bnxt_re/ib_verbs.c mw->qplib_mw.type = (type == IB_MW_TYPE_1 ? mw 3438 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = bnxt_qplib_alloc_mrw(&rdev->qplib_res, &mw->qplib_mw); mw 3443 drivers/infiniband/hw/bnxt_re/ib_verbs.c mw->ib_mw.rkey = mw->qplib_mw.rkey; mw 3446 drivers/infiniband/hw/bnxt_re/ib_verbs.c return &mw->ib_mw; mw 3449 drivers/infiniband/hw/bnxt_re/ib_verbs.c kfree(mw); mw 3455 drivers/infiniband/hw/bnxt_re/ib_verbs.c struct bnxt_re_mw *mw = container_of(ib_mw, struct bnxt_re_mw, ib_mw); mw 3456 drivers/infiniband/hw/bnxt_re/ib_verbs.c struct bnxt_re_dev *rdev = mw->rdev; mw 3459 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = bnxt_qplib_free_mrw(&rdev->qplib_res, &mw->qplib_mw); mw 3465 drivers/infiniband/hw/bnxt_re/ib_verbs.c kfree(mw); mw 53 drivers/infiniband/hw/bnxt_re/ib_verbs.h struct ib_mw *mw; mw 207 drivers/infiniband/hw/bnxt_re/ib_verbs.h int bnxt_re_dealloc_mw(struct ib_mw *mw); mw 569 drivers/infiniband/hw/cxgb3/iwch_provider.c static int iwch_dealloc_mw(struct ib_mw *mw) mw 575 drivers/infiniband/hw/cxgb3/iwch_provider.c mhp = to_iwch_mw(mw); mw 577 drivers/infiniband/hw/cxgb3/iwch_provider.c mmid = (mw->rkey) >> 8; mw 580 drivers/infiniband/hw/cxgb3/iwch_provider.c pr_debug("%s ib_mw %p mmid 0x%x ptr %p\n", __func__, mw, mmid, mhp); mw 986 drivers/infiniband/hw/cxgb4/iw_cxgb4.h int c4iw_dealloc_mw(struct ib_mw *mw); mw 674 drivers/infiniband/hw/cxgb4/mem.c int c4iw_dealloc_mw(struct ib_mw *mw) mw 680 drivers/infiniband/hw/cxgb4/mem.c mhp = to_c4iw_mw(mw); mw 682 drivers/infiniband/hw/cxgb4/mem.c mmid = (mw->rkey) >> 8; mw 688 drivers/infiniband/hw/cxgb4/mem.c pr_debug("ib_mw %p mmid 0x%x ptr %p\n", mw, mmid, mhp); mw 952 drivers/infiniband/hw/hns/hns_roce_device.h int (*mw_write_mtpt)(void *mb_buf, struct hns_roce_mw *mw); mw 2411 drivers/infiniband/hw/hns/hns_roce_hw_v2.c static int hns_roce_v2_mw_write_mtpt(void *mb_buf, struct hns_roce_mw *mw) mw 2421 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_MPT_BYTE_4_PD_S, mw->pdn); mw 2425 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mw->pbl_hop_num == HNS_ROCE_HOP_NUM_0 ? mw 2426 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 0 : mw->pbl_hop_num); mw 2430 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mw->pbl_ba_pg_sz + PG_SHIFT_OFFSET); mw 2439 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mw->ibmw.type == IB_MW_TYPE_1 ? 0 : 1); mw 2444 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mw->pbl_buf_pg_sz + PG_SHIFT_OFFSET); mw 2446 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mpt_entry->lkey = cpu_to_le32(mw->rkey); mw 1445 drivers/infiniband/hw/hns/hns_roce_mr.c struct hns_roce_mw *mw) mw 1450 drivers/infiniband/hw/hns/hns_roce_mr.c if (mw->enabled) { mw 1451 drivers/infiniband/hw/hns/hns_roce_mr.c ret = hns_roce_hw2sw_mpt(hr_dev, NULL, key_to_hw_index(mw->rkey) mw 1457 drivers/infiniband/hw/hns/hns_roce_mr.c key_to_hw_index(mw->rkey)); mw 1461 drivers/infiniband/hw/hns/hns_roce_mr.c key_to_hw_index(mw->rkey), BITMAP_NO_RR); mw 1465 drivers/infiniband/hw/hns/hns_roce_mr.c struct hns_roce_mw *mw) mw 1470 drivers/infiniband/hw/hns/hns_roce_mr.c unsigned long mtpt_idx = key_to_hw_index(mw->rkey); mw 1484 drivers/infiniband/hw/hns/hns_roce_mr.c ret = hr_dev->hw->mw_write_mtpt(mailbox->buf, mw); mw 1497 drivers/infiniband/hw/hns/hns_roce_mr.c mw->enabled = 1; mw 1516 drivers/infiniband/hw/hns/hns_roce_mr.c struct hns_roce_mw *mw; mw 1520 drivers/infiniband/hw/hns/hns_roce_mr.c mw = kmalloc(sizeof(*mw), GFP_KERNEL); mw 1521 drivers/infiniband/hw/hns/hns_roce_mr.c if (!mw) mw 1529 drivers/infiniband/hw/hns/hns_roce_mr.c mw->rkey = hw_index_to_key(index); mw 1531 drivers/infiniband/hw/hns/hns_roce_mr.c mw->ibmw.rkey = mw->rkey; mw 1532 drivers/infiniband/hw/hns/hns_roce_mr.c mw->ibmw.type = type; mw 1533 drivers/infiniband/hw/hns/hns_roce_mr.c mw->pdn = to_hr_pd(ib_pd)->pdn; mw 1534 drivers/infiniband/hw/hns/hns_roce_mr.c mw->pbl_hop_num = hr_dev->caps.pbl_hop_num; mw 1535 drivers/infiniband/hw/hns/hns_roce_mr.c mw->pbl_ba_pg_sz = hr_dev->caps.pbl_ba_pg_sz; mw 1536 drivers/infiniband/hw/hns/hns_roce_mr.c mw->pbl_buf_pg_sz = hr_dev->caps.pbl_buf_pg_sz; mw 1538 drivers/infiniband/hw/hns/hns_roce_mr.c ret = hns_roce_mw_enable(hr_dev, mw); mw 1542 drivers/infiniband/hw/hns/hns_roce_mr.c return &mw->ibmw; mw 1545 drivers/infiniband/hw/hns/hns_roce_mr.c hns_roce_mw_free(hr_dev, mw); mw 1548 drivers/infiniband/hw/hns/hns_roce_mr.c kfree(mw); mw 1556 drivers/infiniband/hw/hns/hns_roce_mr.c struct hns_roce_mw *mw = to_hr_mw(ibmw); mw 1558 drivers/infiniband/hw/hns/hns_roce_mr.c hns_roce_mw_free(hr_dev, mw); mw 1559 drivers/infiniband/hw/hns/hns_roce_mr.c kfree(mw); mw 739 drivers/infiniband/hw/mlx4/mlx4_ib.h int mlx4_ib_dealloc_mw(struct ib_mw *mw); mw 618 drivers/infiniband/hw/mlx4/mr.c struct mlx4_ib_mw *mw; mw 621 drivers/infiniband/hw/mlx4/mr.c mw = kmalloc(sizeof(*mw), GFP_KERNEL); mw 622 drivers/infiniband/hw/mlx4/mr.c if (!mw) mw 626 drivers/infiniband/hw/mlx4/mr.c to_mlx4_type(type), &mw->mmw); mw 630 drivers/infiniband/hw/mlx4/mr.c err = mlx4_mw_enable(dev->dev, &mw->mmw); mw 634 drivers/infiniband/hw/mlx4/mr.c mw->ibmw.rkey = mw->mmw.key; mw 636 drivers/infiniband/hw/mlx4/mr.c return &mw->ibmw; mw 639 drivers/infiniband/hw/mlx4/mr.c mlx4_mw_free(dev->dev, &mw->mmw); mw 642 drivers/infiniband/hw/mlx4/mr.c kfree(mw); mw 649 drivers/infiniband/hw/mlx4/mr.c struct mlx4_ib_mw *mw = to_mmw(ibmw); mw 651 drivers/infiniband/hw/mlx4/mr.c mlx4_mw_free(to_mdev(ibmw->device)->dev, &mw->mmw); mw 652 drivers/infiniband/hw/mlx4/mr.c kfree(mw); mw 1159 drivers/infiniband/hw/mlx5/mlx5_ib.h int mlx5_ib_dealloc_mw(struct ib_mw *mw); mw 1893 drivers/infiniband/hw/mlx5/mr.c struct mlx5_ib_mw *mw = NULL; mw 1918 drivers/infiniband/hw/mlx5/mr.c mw = kzalloc(sizeof(*mw), GFP_KERNEL); mw 1920 drivers/infiniband/hw/mlx5/mr.c if (!mw || !in) { mw 1936 drivers/infiniband/hw/mlx5/mr.c err = mlx5_core_create_mkey(dev->mdev, &mw->mmkey, in, inlen); mw 1940 drivers/infiniband/hw/mlx5/mr.c mw->mmkey.type = MLX5_MKEY_MW; mw 1941 drivers/infiniband/hw/mlx5/mr.c mw->ibmw.rkey = mw->mmkey.key; mw 1942 drivers/infiniband/hw/mlx5/mr.c mw->ndescs = ndescs; mw 1949 drivers/infiniband/hw/mlx5/mr.c mlx5_core_destroy_mkey(dev->mdev, &mw->mmkey); mw 1955 drivers/infiniband/hw/mlx5/mr.c return &mw->ibmw; mw 1958 drivers/infiniband/hw/mlx5/mr.c kfree(mw); mw 1963 drivers/infiniband/hw/mlx5/mr.c int mlx5_ib_dealloc_mw(struct ib_mw *mw) mw 1965 drivers/infiniband/hw/mlx5/mr.c struct mlx5_ib_dev *dev = to_mdev(mw->device); mw 1966 drivers/infiniband/hw/mlx5/mr.c struct mlx5_ib_mw *mmw = to_mmw(mw); mw 750 drivers/infiniband/hw/mlx5/odp.c struct mlx5_ib_mw *mw; mw 754 drivers/infiniband/hw/mlx5/odp.c mw = container_of(mmkey, struct mlx5_ib_mw, mmkey); mw 755 drivers/infiniband/hw/mlx5/odp.c return mw->ndescs; mw 1951 drivers/infiniband/hw/ocrdma/ocrdma_sli.h u32 mw; mw 161 drivers/infiniband/hw/ocrdma/ocrdma_stats.c (u64)rsrc_stats->mw); mw 215 drivers/infiniband/hw/ocrdma/ocrdma_stats.c (u64)rsrc_stats->mw); mw 463 drivers/infiniband/sw/rxe/rxe_verbs.h static inline struct rxe_mem *to_rmw(struct ib_mw *mw) mw 465 drivers/infiniband/sw/rxe/rxe_verbs.h return mw ? container_of(mw, struct rxe_mem, ibmw) : NULL; mw 98 drivers/misc/mic/bus/scif_bus.h struct mic_mw *mw); mw 208 drivers/misc/mic/card/mic_device.c struct mic_mw *mw) mw 210 drivers/misc/mic/card/mic_device.c mic_send_p2p_intr(db, mw); mw 98 drivers/misc/mic/card/mic_device.h static inline u32 mic_mmio_read(struct mic_mw *mw, u32 offset) mw 100 drivers/misc/mic/card/mic_device.h return ioread32(mw->va + offset); mw 112 drivers/misc/mic/card/mic_device.h mic_mmio_write(struct mic_mw *mw, u32 val, u32 offset) mw 114 drivers/misc/mic/card/mic_device.h iowrite32(val, mw->va + offset); mw 126 drivers/misc/mic/card/mic_device.h void mic_send_p2p_intr(int doorbell, struct mic_mw *mw); mw 50 drivers/misc/mic/card/mic_x100.c struct mic_mw *mw = &mdev->mmio; mw 56 drivers/misc/mic/card/mic_x100.c mic_mmio_write(mw, MIC_X100_SBOX_SDBIC0_DBREQ_BIT, mw 64 drivers/misc/mic/card/mic_x100.c static void mic_x100_send_sbox_intr(struct mic_mw *mw, int doorbell) mw 67 drivers/misc/mic/card/mic_x100.c u32 apicicr_low = mic_mmio_read(mw, MIC_X100_SBOX_BASE_ADDRESS + mw 79 drivers/misc/mic/card/mic_x100.c mic_mmio_write(mw, apicicr_low, mw 83 drivers/misc/mic/card/mic_x100.c static void mic_x100_send_rdmasr_intr(struct mic_mw *mw, int doorbell) mw 93 drivers/misc/mic/card/mic_x100.c mic_mmio_write(mw, 0, MIC_X100_SBOX_BASE_ADDRESS + rdmasr_offset); mw 117 drivers/misc/mic/card/mic_x100.c void mic_send_p2p_intr(int db, struct mic_mw *mw) mw 122 drivers/misc/mic/card/mic_x100.c mic_x100_send_sbox_intr(mw, db); mw 125 drivers/misc/mic/card/mic_x100.c mic_x100_send_rdmasr_intr(mw, rdmasr_index); mw 133 drivers/misc/mic/host/mic_device.h static inline u32 mic_mmio_read(struct mic_mw *mw, u32 offset) mw 135 drivers/misc/mic/host/mic_device.h return ioread32(mw->va + offset); mw 147 drivers/misc/mic/host/mic_device.h mic_mmio_write(struct mic_mw *mw, u32 val, u32 offset) mw 149 drivers/misc/mic/host/mic_device.h iowrite32(val, mw->va + offset); mw 69 drivers/misc/mic/host/mic_x100.c struct mic_mw *mw = &mdev->mmio; mw 73 drivers/misc/mic/host/mic_x100.c reg = mic_mmio_read(mw, sice0); mw 75 drivers/misc/mic/host/mic_x100.c mic_mmio_write(mw, reg, sice0); mw 82 drivers/misc/mic/host/mic_x100.c reg = mic_mmio_read(mw, siac0); mw 85 drivers/misc/mic/host/mic_x100.c mic_mmio_write(mw, reg, siac0); mw 96 drivers/misc/mic/host/mic_x100.c struct mic_mw *mw = &mdev->mmio; mw 101 drivers/misc/mic/host/mic_x100.c reg = mic_mmio_read(mw, sice0); mw 102 drivers/misc/mic/host/mic_x100.c mic_mmio_write(mw, reg, sicc0); mw 105 drivers/misc/mic/host/mic_x100.c reg = mic_mmio_read(mw, siac0); mw 108 drivers/misc/mic/host/mic_x100.c mic_mmio_write(mw, reg, siac0); mw 119 drivers/misc/mic/host/mic_x100.c struct mic_mw *mw = &mdev->mmio; mw 121 drivers/misc/mic/host/mic_x100.c u32 apicicr_low = mic_mmio_read(mw, MIC_X100_SBOX_BASE_ADDRESS + mw 129 drivers/misc/mic/host/mic_x100.c mic_mmio_write(mw, apicicr_low, mw 187 drivers/misc/mic/host/mic_x100.c struct mic_mw *mw = &mdev->mmio; mw 191 drivers/misc/mic/host/mic_x100.c mic_mmio_write(mw, 1, MIC_X100_SBOX_BASE_ADDRESS + mw 240 drivers/misc/mic/host/mic_x100.c struct mic_mw *mw = &mdev->mmio; mw 244 drivers/misc/mic/host/mic_x100.c reg = mic_mmio_read(mw, mxar); mw 249 drivers/misc/mic/host/mic_x100.c mic_mmio_write(mw, reg, mxar); mw 292 drivers/misc/mic/host/mic_x100.c struct mic_mw *mw = &mdev->mmio; mw 300 drivers/misc/mic/host/mic_x100.c mic_mmio_write(mw, mic_x100_get_apic_id(mdev), mw 305 drivers/misc/mic/host/mic_x100.c mic_mmio_write(mw, apicicr_low, mw 317 drivers/misc/mic/host/mic_x100.c struct mic_mw *mw = &mdev->mmio; mw 322 drivers/misc/mic/host/mic_x100.c reset_reg = mic_mmio_read(mw, rgcr); mw 324 drivers/misc/mic/host/mic_x100.c mic_mmio_write(mw, reset_reg, rgcr); mw 146 drivers/mtd/maps/physmap-core.c map_word mw; mw 154 drivers/mtd/maps/physmap-core.c mw.x[0] = word; mw 155 drivers/mtd/maps/physmap-core.c return mw; mw 180 drivers/mtd/maps/physmap-core.c static void physmap_addr_gpios_write(struct map_info *map, map_word mw, mw 191 drivers/mtd/maps/physmap-core.c word = mw.x[0]; mw 34 drivers/net/ethernet/marvell/octeontx2/af/rvu.c static int rvu_mbox_init(struct rvu *rvu, struct mbox_wq_info *mw, mw 1423 drivers/net/ethernet/marvell/octeontx2/af/rvu.c struct mbox_wq_info *mw; mw 1428 drivers/net/ethernet/marvell/octeontx2/af/rvu.c mw = &rvu->afpf_wq_info; mw 1431 drivers/net/ethernet/marvell/octeontx2/af/rvu.c mw = &rvu->afvf_wq_info; mw 1437 drivers/net/ethernet/marvell/octeontx2/af/rvu.c devid = mwork - mw->mbox_wrk; mw 1438 drivers/net/ethernet/marvell/octeontx2/af/rvu.c mbox = &mw->mbox; mw 1506 drivers/net/ethernet/marvell/octeontx2/af/rvu.c struct mbox_wq_info *mw; mw 1512 drivers/net/ethernet/marvell/octeontx2/af/rvu.c mw = &rvu->afpf_wq_info; mw 1515 drivers/net/ethernet/marvell/octeontx2/af/rvu.c mw = &rvu->afvf_wq_info; mw 1521 drivers/net/ethernet/marvell/octeontx2/af/rvu.c devid = mwork - mw->mbox_wrk_up; mw 1522 drivers/net/ethernet/marvell/octeontx2/af/rvu.c mbox = &mw->mbox_up; mw 1581 drivers/net/ethernet/marvell/octeontx2/af/rvu.c static int rvu_mbox_init(struct rvu *rvu, struct mbox_wq_info *mw, mw 1611 drivers/net/ethernet/marvell/octeontx2/af/rvu.c mw->mbox_wq = alloc_workqueue(name, mw 1614 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (!mw->mbox_wq) mw 1617 drivers/net/ethernet/marvell/octeontx2/af/rvu.c mw->mbox_wrk = devm_kcalloc(rvu->dev, num, mw 1619 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (!mw->mbox_wrk) { mw 1624 drivers/net/ethernet/marvell/octeontx2/af/rvu.c mw->mbox_wrk_up = devm_kcalloc(rvu->dev, num, mw 1626 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (!mw->mbox_wrk_up) { mw 1642 drivers/net/ethernet/marvell/octeontx2/af/rvu.c err = otx2_mbox_init(&mw->mbox, hwbase, rvu->pdev, reg_base, dir, num); mw 1646 drivers/net/ethernet/marvell/octeontx2/af/rvu.c err = otx2_mbox_init(&mw->mbox_up, hwbase, rvu->pdev, mw 1652 drivers/net/ethernet/marvell/octeontx2/af/rvu.c mwork = &mw->mbox_wrk[i]; mw 1656 drivers/net/ethernet/marvell/octeontx2/af/rvu.c mwork = &mw->mbox_wrk_up[i]; mw 1665 drivers/net/ethernet/marvell/octeontx2/af/rvu.c destroy_workqueue(mw->mbox_wq); mw 1669 drivers/net/ethernet/marvell/octeontx2/af/rvu.c static void rvu_mbox_destroy(struct mbox_wq_info *mw) mw 1671 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (mw->mbox_wq) { mw 1672 drivers/net/ethernet/marvell/octeontx2/af/rvu.c flush_workqueue(mw->mbox_wq); mw 1673 drivers/net/ethernet/marvell/octeontx2/af/rvu.c destroy_workqueue(mw->mbox_wq); mw 1674 drivers/net/ethernet/marvell/octeontx2/af/rvu.c mw->mbox_wq = NULL; mw 1677 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (mw->mbox.hwbase) mw 1678 drivers/net/ethernet/marvell/octeontx2/af/rvu.c iounmap((void __iomem *)mw->mbox.hwbase); mw 1680 drivers/net/ethernet/marvell/octeontx2/af/rvu.c otx2_mbox_destroy(&mw->mbox); mw 1681 drivers/net/ethernet/marvell/octeontx2/af/rvu.c otx2_mbox_destroy(&mw->mbox_up); mw 1684 drivers/net/ethernet/marvell/octeontx2/af/rvu.c static void rvu_queue_work(struct mbox_wq_info *mw, int first, mw 1697 drivers/net/ethernet/marvell/octeontx2/af/rvu.c mbox = &mw->mbox; mw 1701 drivers/net/ethernet/marvell/octeontx2/af/rvu.c queue_work(mw->mbox_wq, &mw->mbox_wrk[i].work); mw 1703 drivers/net/ethernet/marvell/octeontx2/af/rvu.c mbox = &mw->mbox_up; mw 1707 drivers/net/ethernet/marvell/octeontx2/af/rvu.c queue_work(mw->mbox_wq, &mw->mbox_wrk_up[i].work); mw 815 drivers/net/ethernet/mellanox/mlx4/mr.c struct mlx4_mw *mw) mw 829 drivers/net/ethernet/mellanox/mlx4/mr.c mw->key = hw_index_to_key(index); mw 830 drivers/net/ethernet/mellanox/mlx4/mr.c mw->pd = pd; mw 831 drivers/net/ethernet/mellanox/mlx4/mr.c mw->type = type; mw 832 drivers/net/ethernet/mellanox/mlx4/mr.c mw->enabled = MLX4_MPT_DISABLED; mw 838 drivers/net/ethernet/mellanox/mlx4/mr.c int mlx4_mw_enable(struct mlx4_dev *dev, struct mlx4_mw *mw) mw 844 drivers/net/ethernet/mellanox/mlx4/mr.c err = mlx4_mpt_alloc_icm(dev, key_to_hw_index(mw->key)); mw 858 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->key = cpu_to_be32(key_to_hw_index(mw->key)); mw 859 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry->pd_flags = cpu_to_be32(mw->pd); mw 860 drivers/net/ethernet/mellanox/mlx4/mr.c if (mw->type == MLX4_MW_TYPE_2) { mw 867 drivers/net/ethernet/mellanox/mlx4/mr.c key_to_hw_index(mw->key) & mw 873 drivers/net/ethernet/mellanox/mlx4/mr.c mw->enabled = MLX4_MPT_EN_HW; mw 883 drivers/net/ethernet/mellanox/mlx4/mr.c mlx4_mpt_free_icm(dev, key_to_hw_index(mw->key)); mw 888 drivers/net/ethernet/mellanox/mlx4/mr.c void mlx4_mw_free(struct mlx4_dev *dev, struct mlx4_mw *mw) mw 892 drivers/net/ethernet/mellanox/mlx4/mr.c if (mw->enabled == MLX4_MPT_EN_HW) { mw 894 drivers/net/ethernet/mellanox/mlx4/mr.c key_to_hw_index(mw->key) & mw 899 drivers/net/ethernet/mellanox/mlx4/mr.c mw->enabled = MLX4_MPT_EN_SW; mw 901 drivers/net/ethernet/mellanox/mlx4/mr.c if (mw->enabled) mw 902 drivers/net/ethernet/mellanox/mlx4/mr.c mlx4_mpt_free_icm(dev, key_to_hw_index(mw->key)); mw 903 drivers/net/ethernet/mellanox/mlx4/mr.c mlx4_mpt_release(dev, key_to_hw_index(mw->key)); mw 619 drivers/ntb/ntb_transport.c struct ntb_transport_mw *mw; mw 631 drivers/ntb/ntb_transport.c mw = &nt->mw_vec[mw_num]; mw 633 drivers/ntb/ntb_transport.c if (!mw->virt_addr) mw 641 drivers/ntb/ntb_transport.c rx_size = (unsigned int)mw->xlat_size / num_qps_mw; mw 642 drivers/ntb/ntb_transport.c qp->rx_buff = mw->virt_addr + rx_size * (qp_num / mw_count); mw 795 drivers/ntb/ntb_transport.c struct ntb_transport_mw *mw = &nt->mw_vec[num_mw]; mw 798 drivers/ntb/ntb_transport.c if (!mw->virt_addr) mw 802 drivers/ntb/ntb_transport.c dma_free_coherent(&pdev->dev, mw->alloc_size, mw 803 drivers/ntb/ntb_transport.c mw->alloc_addr, mw->dma_addr); mw 804 drivers/ntb/ntb_transport.c mw->xlat_size = 0; mw 805 drivers/ntb/ntb_transport.c mw->buff_size = 0; mw 806 drivers/ntb/ntb_transport.c mw->alloc_size = 0; mw 807 drivers/ntb/ntb_transport.c mw->alloc_addr = NULL; mw 808 drivers/ntb/ntb_transport.c mw->virt_addr = NULL; mw 811 drivers/ntb/ntb_transport.c static int ntb_alloc_mw_buffer(struct ntb_transport_mw *mw, mw 818 drivers/ntb/ntb_transport.c alloc_addr = dma_alloc_coherent(dma_dev, mw->alloc_size, mw 822 drivers/ntb/ntb_transport.c mw->alloc_size); mw 834 drivers/ntb/ntb_transport.c if (mw->alloc_size > mw->buff_size) { mw 843 drivers/ntb/ntb_transport.c mw->alloc_addr = alloc_addr; mw 844 drivers/ntb/ntb_transport.c mw->virt_addr = virt_addr; mw 845 drivers/ntb/ntb_transport.c mw->dma_addr = dma_addr; mw 850 drivers/ntb/ntb_transport.c dma_free_coherent(dma_dev, mw->alloc_size, alloc_addr, dma_addr); mw 858 drivers/ntb/ntb_transport.c struct ntb_transport_mw *mw = &nt->mw_vec[num_mw]; mw 877 drivers/ntb/ntb_transport.c if (mw->xlat_size == xlat_size) mw 880 drivers/ntb/ntb_transport.c if (mw->buff_size) mw 884 drivers/ntb/ntb_transport.c mw->xlat_size = xlat_size; mw 885 drivers/ntb/ntb_transport.c mw->buff_size = buff_size; mw 886 drivers/ntb/ntb_transport.c mw->alloc_size = buff_size; mw 888 drivers/ntb/ntb_transport.c rc = ntb_alloc_mw_buffer(mw, &pdev->dev, xlat_align); mw 890 drivers/ntb/ntb_transport.c mw->alloc_size *= 2; mw 891 drivers/ntb/ntb_transport.c rc = ntb_alloc_mw_buffer(mw, &pdev->dev, xlat_align); mw 895 drivers/ntb/ntb_transport.c mw->xlat_size = 0; mw 896 drivers/ntb/ntb_transport.c mw->buff_size = 0; mw 897 drivers/ntb/ntb_transport.c mw->alloc_size = 0; mw 903 drivers/ntb/ntb_transport.c rc = ntb_mw_set_trans(nt->ndev, PIDX, num_mw, mw->dma_addr, mw 904 drivers/ntb/ntb_transport.c mw->xlat_size); mw 1246 drivers/ntb/ntb_transport.c struct ntb_transport_mw *mw; mw 1312 drivers/ntb/ntb_transport.c mw = &nt->mw_vec[i]; mw 1314 drivers/ntb/ntb_transport.c rc = ntb_peer_mw_get_addr(ndev, i, &mw->phys_addr, mw 1315 drivers/ntb/ntb_transport.c &mw->phys_size); mw 1319 drivers/ntb/ntb_transport.c mw->vbase = ioremap_wc(mw->phys_addr, mw->phys_size); mw 1320 drivers/ntb/ntb_transport.c if (!mw->vbase) { mw 1325 drivers/ntb/ntb_transport.c mw->buff_size = 0; mw 1326 drivers/ntb/ntb_transport.c mw->xlat_size = 0; mw 1327 drivers/ntb/ntb_transport.c mw->virt_addr = NULL; mw 1328 drivers/ntb/ntb_transport.c mw->dma_addr = 0; mw 1394 drivers/ntb/ntb_transport.c mw = &nt->mw_vec[i]; mw 1395 drivers/ntb/ntb_transport.c iounmap(mw->vbase); mw 227 drivers/ntb/test/ntb_tool.c struct tool_mw *mw; mw 874 drivers/ntb/test/ntb_tool.c struct tool_mw *outmw = outmw_wrap->mw; mw 932 drivers/ntb/test/ntb_tool.c struct tool_mw *outmw = outmw_wrap->mw; mw 1002 drivers/ntb/test/ntb_tool.c tc->peers[pidx].outmws[widx].mw = &tc->outmws[widx]; mw 2329 drivers/usb/typec/tcpm/tcpm.c unsigned int mv, ma, mw, flags; mw 2360 drivers/usb/typec/tcpm/tcpm.c mw = min_power(pdo, matching_snk_pdo); mw 2361 drivers/usb/typec/tcpm/tcpm.c ma = 1000 * mw / mv; mw 2364 drivers/usb/typec/tcpm/tcpm.c mw = ma * mv / 1000; mw 2371 drivers/usb/typec/tcpm/tcpm.c max_mw = mw; mw 2372 drivers/usb/typec/tcpm/tcpm.c if (mw < port->operating_snk_mw) { mw 2388 drivers/usb/typec/tcpm/tcpm.c *rdo = RDO_BATT(src_pdo_index + 1, mw, max_mw, flags); mw 2391 drivers/usb/typec/tcpm/tcpm.c src_pdo_index, mv, mw, mw 4430 drivers/usb/typec/tcpm/tcpm.c u32 mw; mw 4493 drivers/usb/typec/tcpm/tcpm.c if (fwnode_property_read_u32(fwnode, "op-sink-microwatt", &mw) < 0) mw 4495 drivers/usb/typec/tcpm/tcpm.c port->operating_snk_mw = mw / 1000; mw 435 fs/ocfs2/dlmglue.c struct ocfs2_mask_waiter *mw, int ret) mw 448 fs/ocfs2/dlmglue.c kt = ktime_sub(ktime_get(), mw->mw_lock_start); mw 475 fs/ocfs2/dlmglue.c struct ocfs2_mask_waiter *mw; mw 482 fs/ocfs2/dlmglue.c mw = list_first_entry(&lockres->l_mask_waiters, mw 485 fs/ocfs2/dlmglue.c ktime_to_us(ktime_mono_to_real(mw->mw_lock_start)); mw 488 fs/ocfs2/dlmglue.c static inline void ocfs2_init_start_time(struct ocfs2_mask_waiter *mw) mw 490 fs/ocfs2/dlmglue.c mw->mw_lock_start = ktime_get(); mw 497 fs/ocfs2/dlmglue.c int level, struct ocfs2_mask_waiter *mw, int ret) mw 506 fs/ocfs2/dlmglue.c static inline void ocfs2_init_start_time(struct ocfs2_mask_waiter *mw) mw 886 fs/ocfs2/dlmglue.c struct ocfs2_mask_waiter *mw, *tmp; mw 892 fs/ocfs2/dlmglue.c list_for_each_entry_safe(mw, tmp, &lockres->l_mask_waiters, mw_item) { mw 893 fs/ocfs2/dlmglue.c if ((lockres->l_flags & mw->mw_mask) != mw->mw_goal) mw 896 fs/ocfs2/dlmglue.c list_del_init(&mw->mw_item); mw 897 fs/ocfs2/dlmglue.c mw->mw_status = 0; mw 898 fs/ocfs2/dlmglue.c complete(&mw->mw_complete); mw 1384 fs/ocfs2/dlmglue.c static void ocfs2_init_mask_waiter(struct ocfs2_mask_waiter *mw) mw 1386 fs/ocfs2/dlmglue.c INIT_LIST_HEAD(&mw->mw_item); mw 1387 fs/ocfs2/dlmglue.c init_completion(&mw->mw_complete); mw 1388 fs/ocfs2/dlmglue.c ocfs2_init_start_time(mw); mw 1391 fs/ocfs2/dlmglue.c static int ocfs2_wait_for_mask(struct ocfs2_mask_waiter *mw) mw 1393 fs/ocfs2/dlmglue.c wait_for_completion(&mw->mw_complete); mw 1395 fs/ocfs2/dlmglue.c reinit_completion(&mw->mw_complete); mw 1396 fs/ocfs2/dlmglue.c return mw->mw_status; mw 1400 fs/ocfs2/dlmglue.c struct ocfs2_mask_waiter *mw, mw 1404 fs/ocfs2/dlmglue.c BUG_ON(!list_empty(&mw->mw_item)); mw 1408 fs/ocfs2/dlmglue.c list_add_tail(&mw->mw_item, &lockres->l_mask_waiters); mw 1409 fs/ocfs2/dlmglue.c mw->mw_mask = mask; mw 1410 fs/ocfs2/dlmglue.c mw->mw_goal = goal; mw 1417 fs/ocfs2/dlmglue.c struct ocfs2_mask_waiter *mw) mw 1422 fs/ocfs2/dlmglue.c if (!list_empty(&mw->mw_item)) { mw 1423 fs/ocfs2/dlmglue.c if ((lockres->l_flags & mw->mw_mask) != mw->mw_goal) mw 1426 fs/ocfs2/dlmglue.c list_del_init(&mw->mw_item); mw 1427 fs/ocfs2/dlmglue.c init_completion(&mw->mw_complete); mw 1435 fs/ocfs2/dlmglue.c struct ocfs2_mask_waiter *mw) mw 1441 fs/ocfs2/dlmglue.c ret = __lockres_remove_mask_waiter(lockres, mw); mw 1448 fs/ocfs2/dlmglue.c static int ocfs2_wait_for_mask_interruptible(struct ocfs2_mask_waiter *mw, mw 1453 fs/ocfs2/dlmglue.c ret = wait_for_completion_interruptible(&mw->mw_complete); mw 1455 fs/ocfs2/dlmglue.c lockres_remove_mask_waiter(lockres, mw); mw 1457 fs/ocfs2/dlmglue.c ret = mw->mw_status; mw 1459 fs/ocfs2/dlmglue.c reinit_completion(&mw->mw_complete); mw 1471 fs/ocfs2/dlmglue.c struct ocfs2_mask_waiter mw; mw 1485 fs/ocfs2/dlmglue.c ocfs2_init_mask_waiter(&mw); mw 1511 fs/ocfs2/dlmglue.c lockres_add_mask_waiter(lockres, &mw, OCFS2_LOCK_BUSY, 0); mw 1539 fs/ocfs2/dlmglue.c lockres_add_mask_waiter(lockres, &mw, OCFS2_LOCK_BLOCKED, 0); mw 1629 fs/ocfs2/dlmglue.c mw.mw_mask & (OCFS2_LOCK_BUSY|OCFS2_LOCK_BLOCKED)) { mw 1632 fs/ocfs2/dlmglue.c if (__lockres_remove_mask_waiter(lockres, &mw)) { mw 1644 fs/ocfs2/dlmglue.c ret = ocfs2_wait_for_mask(&mw); mw 1649 fs/ocfs2/dlmglue.c ocfs2_update_lock_stats(lockres, level, &mw, ret); mw 1906 fs/ocfs2/dlmglue.c struct ocfs2_mask_waiter mw; mw 1908 fs/ocfs2/dlmglue.c ocfs2_init_mask_waiter(&mw); mw 1923 fs/ocfs2/dlmglue.c lockres_add_mask_waiter(lockres, &mw, OCFS2_LOCK_BUSY, 0); mw 1926 fs/ocfs2/dlmglue.c ocfs2_wait_for_mask(&mw); mw 1976 fs/ocfs2/dlmglue.c struct ocfs2_mask_waiter mw; mw 1978 fs/ocfs2/dlmglue.c ocfs2_init_mask_waiter(&mw); mw 1991 fs/ocfs2/dlmglue.c lockres_add_mask_waiter(lockres, &mw, OCFS2_LOCK_BUSY, 0); mw 2004 fs/ocfs2/dlmglue.c ret = ocfs2_wait_for_mask(&mw); mw 2017 fs/ocfs2/dlmglue.c lockres_add_mask_waiter(lockres, &mw, OCFS2_LOCK_BUSY, 0); mw 2029 fs/ocfs2/dlmglue.c lockres_remove_mask_waiter(lockres, &mw); mw 2033 fs/ocfs2/dlmglue.c ret = ocfs2_wait_for_mask_interruptible(&mw, lockres); mw 2072 fs/ocfs2/dlmglue.c struct ocfs2_mask_waiter mw; mw 2074 fs/ocfs2/dlmglue.c ocfs2_init_mask_waiter(&mw); mw 2094 fs/ocfs2/dlmglue.c lockres_add_mask_waiter(lockres, &mw, OCFS2_LOCK_BUSY, 0); mw 2103 fs/ocfs2/dlmglue.c ret = ocfs2_wait_for_mask(&mw); mw 3479 fs/ocfs2/dlmglue.c struct ocfs2_mask_waiter mw; mw 3482 fs/ocfs2/dlmglue.c ocfs2_init_mask_waiter(&mw); mw 3521 fs/ocfs2/dlmglue.c lockres_add_mask_waiter(lockres, &mw, OCFS2_LOCK_QUEUED, 0); mw 3526 fs/ocfs2/dlmglue.c status = ocfs2_wait_for_mask(&mw); mw 44 include/dt-bindings/usb/pd.h #define PDO_BATT_MAX_POWER(mw) ((((mw) / 250) & PDO_PWR_MASK) << PDO_BATT_MAX_PWR_SHIFT) mw 1122 include/linux/mlx4/device.h struct mlx4_mw *mw); mw 1123 include/linux/mlx4/device.h void mlx4_mw_free(struct mlx4_dev *dev, struct mlx4_mw *mw); mw 1124 include/linux/mlx4/device.h int mlx4_mw_enable(struct mlx4_dev *dev, struct mlx4_mw *mw); mw 245 include/linux/usb/pd.h #define PDO_BATT_MAX_POWER(mw) ((((mw) / 250) & PDO_PWR_MASK) << PDO_BATT_MAX_PWR_SHIFT) mw 370 include/linux/usb/pd.h #define RDO_BATT_OP_PWR(mw) ((((mw) / 250) & RDO_PWR_MASK) << RDO_BATT_OP_PWR_SHIFT) mw 371 include/linux/usb/pd.h #define RDO_BATT_MAX_PWR(mw) ((((mw) / 250) & RDO_PWR_MASK) << RDO_BATT_MAX_PWR_SHIFT) mw 2417 include/rdma/ib_verbs.h int (*dealloc_mw)(struct ib_mw *mw); mw 348 net/netfilter/ipvs/ip_vs_mh.c int mw, shift; mw 366 net/netfilter/ipvs/ip_vs_mh.c mw = weight / gcd; mw 369 net/netfilter/ipvs/ip_vs_mh.c shift = fls(mw) - IP_VS_MH_TAB_BITS; mw 63 net/netfilter/ipvs/ip_vs_wrr.c int mw; /* maximum weight */ mw 119 net/netfilter/ipvs/ip_vs_wrr.c mark->mw = ip_vs_wrr_max_weight(svc) - (mark->di - 1); mw 120 net/netfilter/ipvs/ip_vs_wrr.c mark->cw = mark->mw; mw 146 net/netfilter/ipvs/ip_vs_wrr.c mark->mw = ip_vs_wrr_max_weight(svc) - (mark->di - 1); mw 147 net/netfilter/ipvs/ip_vs_wrr.c if (mark->cw > mark->mw || !mark->cw) mw 148 net/netfilter/ipvs/ip_vs_wrr.c mark->cw = mark->mw; mw 172 net/netfilter/ipvs/ip_vs_wrr.c if (mark->mw == 0) mw 188 net/netfilter/ipvs/ip_vs_wrr.c mark->cw = mark->mw; mw 44 scripts/dtc/include-prefixes/dt-bindings/usb/pd.h #define PDO_BATT_MAX_POWER(mw) ((((mw) / 250) & PDO_PWR_MASK) << PDO_BATT_MAX_PWR_SHIFT)