Home
last modified time | relevance | path

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

12

/NextBSD/sys/dev/ntb/if_ntb/
HDif_ntb.c601 struct ntb_transport_mw *mw; in ntb_transport_probe() local
608 mw = &nt->mw_vec[i]; in ntb_transport_probe()
610 rc = ntb_mw_get_range(ntb, i, &mw->phys_addr, &mw->vbase, in ntb_transport_probe()
611 &mw->phys_size, &mw->xlat_align, &mw->xlat_align_size, in ntb_transport_probe()
612 &mw->addr_limit); in ntb_transport_probe()
616 mw->buff_size = 0; in ntb_transport_probe()
617 mw->xlat_size = 0; in ntb_transport_probe()
618 mw->virt_addr = NULL; in ntb_transport_probe()
619 mw->dma_addr = 0; in ntb_transport_probe()
700 struct ntb_transport_mw *mw; in ntb_transport_init_queue() local
[all …]
/NextBSD/sys/ofed/drivers/infiniband/hw/mlx4/
HDmr.c655 struct mlx4_ib_mw *mw; in mlx4_ib_alloc_mw() local
658 mw = kmalloc(sizeof(*mw), GFP_KERNEL); in mlx4_ib_alloc_mw()
659 if (!mw) in mlx4_ib_alloc_mw()
662 err = mlx4_mw_alloc(dev->dev, to_mpd(pd)->pdn, (enum mlx4_mw_type)type, &mw->mmw); in mlx4_ib_alloc_mw()
666 err = mlx4_mw_enable(dev->dev, &mw->mmw); in mlx4_ib_alloc_mw()
670 mw->ibmw.rkey = mw->mmw.key; in mlx4_ib_alloc_mw()
672 return &mw->ibmw; in mlx4_ib_alloc_mw()
675 mlx4_mw_free(dev->dev, &mw->mmw); in mlx4_ib_alloc_mw()
678 kfree(mw); in mlx4_ib_alloc_mw()
683 int mlx4_ib_bind_mw(struct ib_qp *qp, struct ib_mw *mw, in mlx4_ib_bind_mw() argument
[all …]
HDmlx4_ib.h696 int mlx4_ib_bind_mw(struct ib_qp *qp, struct ib_mw *mw,
698 int mlx4_ib_dealloc_mw(struct ib_mw *mw);
/NextBSD/sys/dev/ifmlx4/
HDmr.c654 struct mlx4_mw *mw) in mlx4_mw_alloc() argument
662 mw->key = hw_index_to_key(index); in mlx4_mw_alloc()
663 mw->pd = pd; in mlx4_mw_alloc()
664 mw->type = type; in mlx4_mw_alloc()
665 mw->enabled = MLX4_MPT_DISABLED; in mlx4_mw_alloc()
671 int mlx4_mw_enable(struct mlx4_dev *dev, struct mlx4_mw *mw) in mlx4_mw_enable() argument
677 err = mlx4_mpt_alloc_icm(dev, key_to_hw_index(mw->key)); in mlx4_mw_enable()
693 mpt_entry->key = cpu_to_be32(key_to_hw_index(mw->key)); in mlx4_mw_enable()
694 mpt_entry->pd_flags = cpu_to_be32(mw->pd); in mlx4_mw_enable()
695 if (mw->type == MLX4_MW_TYPE_2) { in mlx4_mw_enable()
[all …]
/NextBSD/sys/ofed/drivers/net/mlx4/
HDmr.c654 struct mlx4_mw *mw) in mlx4_mw_alloc() argument
662 mw->key = hw_index_to_key(index); in mlx4_mw_alloc()
663 mw->pd = pd; in mlx4_mw_alloc()
664 mw->type = type; in mlx4_mw_alloc()
665 mw->enabled = MLX4_MPT_DISABLED; in mlx4_mw_alloc()
671 int mlx4_mw_enable(struct mlx4_dev *dev, struct mlx4_mw *mw) in mlx4_mw_enable() argument
677 err = mlx4_mpt_alloc_icm(dev, key_to_hw_index(mw->key)); in mlx4_mw_enable()
693 mpt_entry->key = cpu_to_be32(key_to_hw_index(mw->key)); in mlx4_mw_enable()
694 mpt_entry->pd_flags = cpu_to_be32(mw->pd); in mlx4_mw_enable()
695 if (mw->type == MLX4_MW_TYPE_2) { in mlx4_mw_enable()
[all …]
/NextBSD/usr.bin/ncal/
HDncal.c569 #define MW(mw, me) ((mw) + me) argument
594 int mw; in monthrangeb() local
600 mw = jd_flag ? MONTH_WIDTH_B_J : MONTH_WIDTH_B; in monthrangeb()
635 printf("%s\n", center(t, s, mpl * mw)); in monthrangeb()
643 mw, wcenter(ws, year[i].name, mw)); in monthrangeb()
647 wprintf(L"%-*ls ", mw, wcenter(ws1, ws, mw)); in monthrangeb()
665 MW(mw, year[j].extralen[i]), in monthrangeb()
682 int mw; in monthranger() local
688 mw = jd_flag ? MONTH_WIDTH_R_J : MONTH_WIDTH_R; in monthranger()
722 printf("%s\n", center(t, s, mpl * mw)); in monthranger()
[all …]
/NextBSD/contrib/amd/amq/
HDamq.c90 int mw = strlen(mt->mt_mountinfo); in show_mti() local
93 if (mw > *mwid) in show_mti()
94 *mwid = mw; in show_mti()
215 int mw = strlen(mi->mi_mountinfo); in show_mi() local
218 if (mw > *mwid) in show_mi()
219 *mwid = mw; in show_mi()
/NextBSD/contrib/libstdc++/libsupc++/
Dguard.cc167 mutex_wrapper mw; in __cxa_guard_acquire() local
170 mw.unlock = false; in __cxa_guard_acquire()
/NextBSD/sys/ofed/drivers/infiniband/core/
HDverbs.c1273 struct ib_mw *mw; in ib_alloc_mw() local
1278 mw = pd->device->alloc_mw(pd, type); in ib_alloc_mw()
1279 if (!IS_ERR(mw)) { in ib_alloc_mw()
1280 mw->device = pd->device; in ib_alloc_mw()
1281 mw->pd = pd; in ib_alloc_mw()
1282 mw->uobject = NULL; in ib_alloc_mw()
1283 mw->type = type; in ib_alloc_mw()
1287 return mw; in ib_alloc_mw()
1291 int ib_dealloc_mw(struct ib_mw *mw) in ib_dealloc_mw() argument
1296 pd = mw->pd; in ib_dealloc_mw()
[all …]
HDuverbs_cmd.c1115 struct ib_mw *mw; in ib_uverbs_alloc_mw() local
1137 mw = pd->device->alloc_mw(pd, cmd.mw_type); in ib_uverbs_alloc_mw()
1138 if (IS_ERR(mw)) { in ib_uverbs_alloc_mw()
1139 ret = PTR_ERR(mw); in ib_uverbs_alloc_mw()
1143 mw->device = pd->device; in ib_uverbs_alloc_mw()
1144 mw->pd = pd; in ib_uverbs_alloc_mw()
1145 mw->uobject = uobj; in ib_uverbs_alloc_mw()
1148 uobj->object = mw; in ib_uverbs_alloc_mw()
1154 resp.rkey = mw->rkey; in ib_uverbs_alloc_mw()
1179 ib_dealloc_mw(mw); in ib_uverbs_alloc_mw()
[all …]
HDuverbs_main.c257 struct ib_mw *mw = uobj->object; in ib_uverbs_cleanup_ucontext() local
260 err = ib_dealloc_mw(mw); in ib_uverbs_cleanup_ucontext()
HDcma.c3356 struct iboe_mcast_work *mw = container_of(work, struct iboe_mcast_work, work); in iboe_mcast_work_handler() local
3357 struct cma_multicast *mc = mw->mc; in iboe_mcast_work_handler()
3363 kfree(mw); in iboe_mcast_work_handler()
/NextBSD/sys/contrib/rdma/krping/
HDkrping.c183 struct ib_mw *mw; member
630 cb->mw = ib_alloc_mw(cb->pd,IB_MW_TYPE_1); in krping_setup_buffers()
631 if (IS_ERR(cb->mw)) { in krping_setup_buffers()
633 ret = PTR_ERR(cb->mw); in krping_setup_buffers()
636 DEBUG_LOG(cb, "mw rkey 0x%x\n", cb->mw->rkey); in krping_setup_buffers()
707 if (cb->mw && !IS_ERR(cb->mw)) in krping_setup_buffers()
708 ib_dealloc_mw(cb->mw); in krping_setup_buffers()
742 if (cb->mw) in krping_free_buffers()
743 ib_dealloc_mw(cb->mw); in krping_free_buffers()
912 cb->mw->rkey, buf, cb->bind_attr.bind_info.mr->rkey); in krping_rdma_rkey()
[all …]
/NextBSD/contrib/groff/src/preproc/tbl/
HDtable.cpp156 virtual int divert(int ncols, const string *mw, int *sep);
294 void do_divert(int alphabetic, int ncols, const string *mw, int *sep);
298 int divert(int ncols, const string *mw, int *sep);
327 int divert(int ncols, const string *mw, int *sep);
654 int block_entry::divert(int ncols, const string *mw, int *sep) in divert() argument
656 do_divert(0, ncols, mw, sep); in divert()
660 void block_entry::do_divert(int alphabetic, int ncols, const string *mw, in do_divert() argument
669 if (mw[i].empty()) in do_divert()
679 printfs("(n;%1)", mw[j]); in do_divert()
775 int alphabetic_block_entry::divert(int ncols, const string *mw, int *sep) in divert() argument
[all …]
/NextBSD/sys/ofed/include/rdma/
HDib_verbs.h1186 struct ib_mw *mw; member
1767 struct ib_mw *mw,
1769 int (*dealloc_mw)(struct ib_mw *mw);
2729 struct ib_mw *mw, in ib_bind_mw() argument
2733 return mw->device->bind_mw ? in ib_bind_mw()
2734 mw->device->bind_mw(qp, mw, mw_bind) : in ib_bind_mw()
2742 int ib_dealloc_mw(struct ib_mw *mw);
/NextBSD/sys/dev/cxgbe/iw_cxgbe/
HDmem.c695 int c4iw_dealloc_mw(struct ib_mw *mw) in c4iw_dealloc_mw() argument
701 mhp = to_c4iw_mw(mw); in c4iw_dealloc_mw()
703 mmid = (mw->rkey) >> 8; in c4iw_dealloc_mw()
707 CTR4(KTR_IW_CXGBE, "%s ib_mw %p mmid 0x%x ptr %p", __func__, mw, mmid, in c4iw_dealloc_mw()
HDiw_cxgbe.h850 int c4iw_bind_mw(struct ib_qp *qp, struct ib_mw *mw,
864 int c4iw_dealloc_mw(struct ib_mw *mw);
/NextBSD/sys/dev/cxgb/ulp/iw_cxgb/
HDiw_cxgb_qp.c514 struct ib_mw *mw, in iwch_bind_mw() argument
531 mhp = to_iwch_mw(mw); in iwch_bind_mw()
547 mw, mw_bind); in iwch_bind_mw()
563 wqe->bind.mw_stag = htobe32(mw->rkey); in iwch_bind_mw()
HDiw_cxgb_provider.c718 static int iwch_dealloc_mw(struct ib_mw *mw) in iwch_dealloc_mw() argument
724 mhp = to_iwch_mw(mw); in iwch_dealloc_mw()
726 mmid = (mw->rkey) >> 8; in iwch_dealloc_mw()
730 CTR4(KTR_IW_CXGB, "%s ib_mw %p mmid 0x%x ptr %p", __FUNCTION__, mw, mmid, mhp); in iwch_dealloc_mw()
HDiw_cxgb_provider.h334 struct ib_mw *mw,
/NextBSD/contrib/ofed/libibverbs/include/infiniband/
HDverbs.h703 int (*bind_mw)(struct ibv_qp *qp, struct ibv_mw *mw,
705 int (*dealloc_mw)(struct ibv_mw *mw);
/NextBSD/sys/dev/ntb/ntb_hw/
HDntb_hw.c268 static inline enum ntb_bar ntb_mw_to_bar(struct ntb_softc *, unsigned mw);
602 ntb_mw_to_bar(struct ntb_softc *ntb, unsigned mw) in ntb_mw_to_bar() argument
605 KASSERT(mw < ntb->mw_count, in ntb_mw_to_bar()
606 ("%s: mw:%u > count:%u", __func__, mw, (unsigned)ntb->mw_count)); in ntb_mw_to_bar()
607 KASSERT(ntb->reg->mw_bar[mw] != 0, ("invalid mw")); in ntb_mw_to_bar()
609 return (ntb->reg->mw_bar[mw]); in ntb_mw_to_bar()
/NextBSD/sys/ofed/include/linux/mlx4/
HDdevice.h1015 struct mlx4_mw *mw);
1016 void mlx4_mw_free(struct mlx4_dev *dev, struct mlx4_mw *mw);
1017 int mlx4_mw_enable(struct mlx4_dev *dev, struct mlx4_mw *mw);
/NextBSD/sys/dev/cxgbe/
HDt4_main.c1978 const struct memwin *mw; in setup_memwin() local
1993 mw = &t4_memwin[0]; in setup_memwin()
1999 mw = &t5_memwin[0]; in setup_memwin()
2003 for (i = 0; i < n; i++, mw++) { in setup_memwin()
2006 (mw->base + bar0) | V_BIR(0) | in setup_memwin()
2007 V_WINDOW(ilog2(mw->aperture) - 10)); in setup_memwin()
2143 const struct memwin *mw; in memwin_info() local
2148 mw = &t4_memwin[win]; in memwin_info()
2152 mw = &t5_memwin[win]; in memwin_info()
2156 *base = mw->base; in memwin_info()
[all …]
/NextBSD/libexec/bootpd/
HDChanges62 Add "min wait" option (mw) to cause bootpd to ignore

12