| /freebsd-11-stable/sys/dev/ntb/ntb_hw/ |
| HD | ntb_hw_plx.c | 173 struct ntb_plx_mw_info *mw; in ntb_plx_init() local 180 mw = &sc->mw_info[sc->b2b_mw]; in ntb_plx_init() 181 if (mw->mw_64bit) { in ntb_plx_init() 183 val64 = 0x2000000000000000 * mw->mw_bar | 0x4; in ntb_plx_init() 188 val = 0x20000000 * mw->mw_bar; in ntb_plx_init() 194 mw = &sc->mw_info[i]; in ntb_plx_init() 195 if (mw->mw_64bit) { in ntb_plx_init() 196 val64 = 0x2000000000000000 * mw->mw_bar; in ntb_plx_init() 197 NTX_WRITE(sc, 0xc3c + (mw->mw_bar - 2) * 4, val64); in ntb_plx_init() 198 NTX_WRITE(sc, 0xc3c + (mw->mw_bar - 2) * 4 + 4, val64 >> 32); in ntb_plx_init() [all …]
|
| /freebsd-11-stable/sys/dev/ntb/ |
| HD | ntb_transport.c | 334 struct ntb_transport_mw *mw; in ntb_transport_attach() local 370 mw = &nt->mw_vec[i]; in ntb_transport_attach() 372 rc = ntb_mw_get_range(dev, i, &mw->phys_addr, &mw->vbase, in ntb_transport_attach() 373 &mw->phys_size, &mw->xlat_align, &mw->xlat_align_size, in ntb_transport_attach() 374 &mw->addr_limit); in ntb_transport_attach() 378 mw->buff_size = 0; in ntb_transport_attach() 379 mw->xlat_size = 0; in ntb_transport_attach() 380 mw->virt_addr = NULL; in ntb_transport_attach() 381 mw->dma_addr = 0; in ntb_transport_attach() 393 size = mw->phys_size; in ntb_transport_attach() [all …]
|
| HD | ntb.c | 66 int i, mw, mwu, mwt, spad, spadu, spadt, db, dbu, dbt; in ntb_register_device() local 92 mw = (p && p[0] != 0) ? strtol(p, NULL, 10) : mwt - mwu; in ntb_register_device() 97 if (mw > mwt - mwu || spad > spadt - spadu || db > dbt - dbu) { in ntb_register_device() 105 nc->mwcnt = mw; in ntb_register_device() 123 if (mw > 0) { in ntb_register_device() 125 if (mw > 1) in ntb_register_device() 126 printf("-%d", mwu + mw - 1); in ntb_register_device() 141 mwu += mw; in ntb_register_device()
|
| /freebsd-11-stable/sys/ofed/include/rdma/ |
| HD | ib_verbs_compat.h | 262 struct ib_mw *mw; member 472 struct ib_mw *mw; in ib_alloc_mw() local 477 mw = pd->device->alloc_mw(pd, type, NULL); in ib_alloc_mw() 478 if (!IS_ERR(mw)) { in ib_alloc_mw() 479 mw->device = pd->device; in ib_alloc_mw() 480 mw->pd = pd; in ib_alloc_mw() 481 mw->uobject = NULL; in ib_alloc_mw() 482 mw->type = type; in ib_alloc_mw() 485 return (mw); in ib_alloc_mw() 490 struct ib_mw *mw, in ib_bind_mw() argument [all …]
|
| /freebsd-11-stable/contrib/mdocml/ |
| HD | out.c | 256 const struct tbl_opts *opts, const struct tbl_dat *dp, size_t mw) in tblcalc_data() argument 273 tblcalc_literal(tbl, col, dp, mw); in tblcalc_data() 287 const struct tbl_dat *dp, size_t mw) in tblcalc_literal() argument 297 str = mw ? mandoc_strdup(dp->string) : dp->string; in tblcalc_literal() 300 end = mw ? strchr(beg, ' ') : NULL; in tblcalc_literal() 307 if (mw && lsz && lsz + 1 + wsz <= mw) in tblcalc_literal() 314 if (mw) in tblcalc_literal()
|
| /freebsd-11-stable/sys/dev/mlx4/mlx4_ib/ |
| HD | mlx4_ib_mr.c | 347 struct mlx4_ib_mw *mw; in mlx4_ib_alloc_mw() local 350 mw = kmalloc(sizeof(*mw), GFP_KERNEL); in mlx4_ib_alloc_mw() 351 if (!mw) in mlx4_ib_alloc_mw() 355 to_mlx4_type(type), &mw->mmw); in mlx4_ib_alloc_mw() 359 err = mlx4_mw_enable(dev->dev, &mw->mmw); in mlx4_ib_alloc_mw() 363 mw->ibmw.rkey = mw->mmw.key; in mlx4_ib_alloc_mw() 365 return &mw->ibmw; in mlx4_ib_alloc_mw() 368 mlx4_mw_free(dev->dev, &mw->mmw); in mlx4_ib_alloc_mw() 371 kfree(mw); in mlx4_ib_alloc_mw() 378 struct mlx4_ib_mw *mw = to_mmw(ibmw); in mlx4_ib_dealloc_mw() local [all …]
|
| /freebsd-11-stable/usr.bin/ncal/ |
| HD | ncal.c | 571 #define MW(mw, me) ((mw) + me) argument 596 int mw; in monthrangeb() local 602 mw = jd_flag ? MONTH_WIDTH_B_J : MONTH_WIDTH_B; in monthrangeb() 637 printf("%s\n", center(t, s, mpl * mw)); in monthrangeb() 645 mw, wcenter(ws, year[i].name, mw)); in monthrangeb() 649 wprintf(L"%-*ls ", mw, wcenter(ws1, ws, mw)); in monthrangeb() 667 MW(mw, year[j].extralen[i]), in monthrangeb() 684 int mw; in monthranger() local 690 mw = jd_flag ? MONTH_WIDTH_R_J : MONTH_WIDTH_R; in monthranger() 724 printf("%s\n", center(t, s, mpl * mw)); in monthranger() [all …]
|
| /freebsd-11-stable/sys/dev/mlx4/mlx4_core/ |
| HD | mlx4_mr.c | 821 struct mlx4_mw *mw) in mlx4_mw_alloc() argument 835 mw->key = hw_index_to_key(index); in mlx4_mw_alloc() 836 mw->pd = pd; in mlx4_mw_alloc() 837 mw->type = type; in mlx4_mw_alloc() 838 mw->enabled = MLX4_MPT_DISABLED; in mlx4_mw_alloc() 844 int mlx4_mw_enable(struct mlx4_dev *dev, struct mlx4_mw *mw) in mlx4_mw_enable() argument 850 err = mlx4_mpt_alloc_icm(dev, key_to_hw_index(mw->key), GFP_KERNEL); in mlx4_mw_enable() 864 mpt_entry->key = cpu_to_be32(key_to_hw_index(mw->key)); in mlx4_mw_enable() 865 mpt_entry->pd_flags = cpu_to_be32(mw->pd); in mlx4_mw_enable() 866 if (mw->type == MLX4_MW_TYPE_2) { in mlx4_mw_enable() [all …]
|
| /freebsd-11-stable/contrib/ofed/libmlx4/ |
| HD | verbs.c | 318 struct ibv_mw *mw; in mlx4_alloc_mw() local 323 mw = calloc(1, sizeof(*mw)); in mlx4_alloc_mw() 324 if (!mw) in mlx4_alloc_mw() 327 ret = ibv_cmd_alloc_mw(pd, type, mw, &cmd, sizeof(cmd), in mlx4_alloc_mw() 331 free(mw); in mlx4_alloc_mw() 335 return mw; in mlx4_alloc_mw() 338 int mlx4_dealloc_mw(struct ibv_mw *mw) in mlx4_dealloc_mw() argument 343 ret = ibv_cmd_dealloc_mw(mw, &cmd, sizeof(cmd)); in mlx4_dealloc_mw() 347 free(mw); in mlx4_dealloc_mw() 351 int mlx4_bind_mw(struct ibv_qp *qp, struct ibv_mw *mw, in mlx4_bind_mw() argument [all …]
|
| HD | mlx4.h | 380 int mlx4_dealloc_mw(struct ibv_mw *mw); 381 int mlx4_bind_mw(struct ibv_qp *qp, struct ibv_mw *mw,
|
| /freebsd-11-stable/contrib/amd/amq/ |
| HD | amq.c | 100 int mw = strlen(mt->mt_mountinfo); in show_mti() local 103 if (mw > *mwid) in show_mti() 104 *mwid = mw; in show_mti() 219 int mw = strlen(mi->mi_mountinfo); in show_mi() local 222 if (mw > *mwid) in show_mi() 223 *mwid = mw; in show_mi()
|
| /freebsd-11-stable/contrib/libstdc++/libsupc++/ |
| D | guard.cc | 167 mutex_wrapper mw; in __cxa_guard_acquire() local 170 mw.unlock = false; in __cxa_guard_acquire()
|
| /freebsd-11-stable/contrib/ofed/libmlx5/ |
| HD | qp.c | 729 ctrl->imm = htobe32(wr->bind_mw.mw->rkey); in _mlx5_post_send() 730 err = set_bind_wr(qp, wr->bind_mw.mw->type, in _mlx5_post_send() 774 ctrl->imm = htobe32(wr->bind_mw.mw->rkey); in _mlx5_post_send() 775 err = set_bind_wr(qp, wr->bind_mw.mw->type, in _mlx5_post_send() 974 if (wr->bind_mw.mw->type == IBV_MW_TYPE_1) in mlx5_post_send() 982 if (wr->bind_mw.bind_info.mr->pd != wr->bind_mw.mw->pd) in mlx5_post_send() 990 int mlx5_bind_mw(struct ibv_qp *qp, struct ibv_mw *mw, in mlx5_bind_mw() argument 1014 if (mw->pd != bind_info->mr->pd) { in mlx5_bind_mw() 1025 wr.bind_mw.mw = mw; in mlx5_bind_mw() 1026 wr.bind_mw.rkey = ibv_inc_rkey(mw->rkey); in mlx5_bind_mw() [all …]
|
| HD | verbs.c | 221 struct ibv_mw *mw; in mlx5_alloc_mw() local 226 mw = malloc(sizeof(*mw)); in mlx5_alloc_mw() 227 if (!mw) in mlx5_alloc_mw() 230 memset(mw, 0, sizeof(*mw)); in mlx5_alloc_mw() 232 ret = ibv_cmd_alloc_mw(pd, type, mw, &cmd, sizeof(cmd), &resp, in mlx5_alloc_mw() 235 free(mw); in mlx5_alloc_mw() 239 return mw; in mlx5_alloc_mw() 242 int mlx5_dealloc_mw(struct ibv_mw *mw) in mlx5_dealloc_mw() argument 247 ret = ibv_cmd_dealloc_mw(mw, &cmd, sizeof(cmd)); in mlx5_dealloc_mw() 251 free(mw); in mlx5_dealloc_mw()
|
| /freebsd-11-stable/contrib/ofed/libibverbs/ |
| HD | verbs.h | 973 struct ibv_mw *mw; member 1420 int (*bind_mw)(struct ibv_qp *qp, struct ibv_mw *mw, 1422 int (*dealloc_mw)(struct ibv_mw *mw); 1772 struct ibv_mw *mw; in ibv_alloc_mw() local 1779 mw = pd->context->ops.alloc_mw(pd, type); in ibv_alloc_mw() 1780 return mw; in ibv_alloc_mw() 1786 static inline int ibv_dealloc_mw(struct ibv_mw *mw) in ibv_dealloc_mw() argument 1788 return mw->context->ops.dealloc_mw(mw); in ibv_dealloc_mw() 1805 static inline int ibv_bind_mw(struct ibv_qp *qp, struct ibv_mw *mw, in ibv_bind_mw() argument 1808 if (mw->type != IBV_MW_TYPE_1) in ibv_bind_mw() [all …]
|
| HD | driver.h | 180 struct ibv_mw *mw, struct ibv_alloc_mw *cmd, 183 int ibv_cmd_dealloc_mw(struct ibv_mw *mw,
|
| HD | cmd.c | 429 struct ibv_mw *mw, struct ibv_alloc_mw *cmd, in ibv_cmd_alloc_mw() argument 443 mw->context = pd->context; in ibv_cmd_alloc_mw() 444 mw->pd = pd; in ibv_cmd_alloc_mw() 445 mw->rkey = resp->rkey; in ibv_cmd_alloc_mw() 446 mw->handle = resp->mw_handle; in ibv_cmd_alloc_mw() 447 mw->type = type; in ibv_cmd_alloc_mw() 452 int ibv_cmd_dealloc_mw(struct ibv_mw *mw, in ibv_cmd_dealloc_mw() argument 456 cmd->mw_handle = mw->handle; in ibv_cmd_dealloc_mw() 459 if (write(mw->context->cmd_fd, cmd, cmd_size) != cmd_size) in ibv_cmd_dealloc_mw()
|
| /freebsd-11-stable/sys/dev/mlx5/mlx5_ib/ |
| HD | mlx5_ib_mr.c | 1590 struct mlx5_ib_mw *mw = NULL; in mlx5_ib_alloc_mw() local 1615 mw = kzalloc(sizeof(*mw), GFP_KERNEL); in mlx5_ib_alloc_mw() 1617 if (!mw || !in) { in mlx5_ib_alloc_mw() 1633 err = mlx5_core_create_mkey(dev->mdev, &mw->mmkey, in, inlen); in mlx5_ib_alloc_mw() 1637 mw->ibmw.rkey = mw->mmkey.key; in mlx5_ib_alloc_mw() 1644 mlx5_core_destroy_mkey(dev->mdev, &mw->mmkey); in mlx5_ib_alloc_mw() 1650 return &mw->ibmw; in mlx5_ib_alloc_mw() 1653 kfree(mw); in mlx5_ib_alloc_mw() 1658 int mlx5_ib_dealloc_mw(struct ib_mw *mw) in mlx5_ib_dealloc_mw() argument 1660 struct mlx5_ib_mw *mmw = to_mmw(mw); in mlx5_ib_dealloc_mw() [all …]
|
| /freebsd-11-stable/contrib/groff/src/preproc/tbl/ |
| HD | table.cpp | 156 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 …]
|
| /freebsd-11-stable/sys/ofed/drivers/infiniband/core/ |
| HD | ib_uverbs_main.c | 149 int uverbs_dealloc_mw(struct ib_mw *mw) in uverbs_dealloc_mw() argument 151 struct ib_pd *pd = mw->pd; in uverbs_dealloc_mw() 154 ret = mw->device->dealloc_mw(mw); in uverbs_dealloc_mw() 248 struct ib_mw *mw = uobj->object; in ib_uverbs_cleanup_ucontext() local 251 uverbs_dealloc_mw(mw); in ib_uverbs_cleanup_ucontext()
|
| HD | ib_uverbs_cmd.c | 1208 struct ib_mw *mw; in ib_uverbs_alloc_mw() local 1236 mw = pd->device->alloc_mw(pd, cmd.mw_type, &udata); in ib_uverbs_alloc_mw() 1237 if (IS_ERR(mw)) { in ib_uverbs_alloc_mw() 1238 ret = PTR_ERR(mw); in ib_uverbs_alloc_mw() 1242 mw->device = pd->device; in ib_uverbs_alloc_mw() 1243 mw->pd = pd; in ib_uverbs_alloc_mw() 1244 mw->uobject = uobj; in ib_uverbs_alloc_mw() 1247 uobj->object = mw; in ib_uverbs_alloc_mw() 1253 resp.rkey = mw->rkey; in ib_uverbs_alloc_mw() 1278 uverbs_dealloc_mw(mw); in ib_uverbs_alloc_mw() [all …]
|
| /freebsd-11-stable/sys/contrib/rdma/krping_compat/ |
| HD | krping.c | 186 struct ib_mw *mw; member 644 cb->mw = ib_alloc_mw(cb->pd,IB_MW_TYPE_1); in krping_setup_buffers() 645 if (IS_ERR(cb->mw)) { in krping_setup_buffers() 647 ret = PTR_ERR(cb->mw); in krping_setup_buffers() 650 DEBUG_LOG(cb, "mw rkey 0x%x\n", cb->mw->rkey); in krping_setup_buffers() 721 if (cb->mw && !IS_ERR(cb->mw)) in krping_setup_buffers() 722 ib_dealloc_mw(cb->mw); in krping_setup_buffers() 756 if (cb->mw) in krping_free_buffers() 757 ib_dealloc_mw(cb->mw); in krping_free_buffers() 941 cb->mw->rkey, (uintmax_t)buf, cb->bind_attr.bind_info.mr->rkey); in krping_rdma_rkey() [all …]
|
| /freebsd-11-stable/sys/dev/cxgbe/iw_cxgbe/ |
| HD | mem.c | 590 int c4iw_dealloc_mw(struct ib_mw *mw) in c4iw_dealloc_mw() argument 596 mhp = to_c4iw_mw(mw); in c4iw_dealloc_mw() 598 mmid = (mw->rkey) >> 8; in c4iw_dealloc_mw() 602 CTR4(KTR_IW_CXGBE, "%s ib_mw %p mmid 0x%x ptr %p", __func__, mw, mmid, in c4iw_dealloc_mw()
|
| /freebsd-11-stable/sys/dev/cxgbe/ |
| HD | t4_main.c | 1568 struct memwin *mw = &sc->memwin[i]; in t4_detach_common() local 1570 if (rw_initialized(&mw->mw_lock)) in t4_detach_common() 1571 rw_destroy(&mw->mw_lock); in t4_detach_common() 2671 struct memwin *mw; in setup_memwin() local 2694 for (i = 0, mw = &sc->memwin[0]; i < NUM_MEMWIN; i++, mw_init++, mw++) { in setup_memwin() 2695 rw_init(&mw->mw_lock, "memory window access"); in setup_memwin() 2696 mw->mw_base = mw_init->base; in setup_memwin() 2697 mw->mw_aperture = mw_init->aperture; in setup_memwin() 2698 mw->mw_curpos = 0; in setup_memwin() 2701 (mw->mw_base + bar0) | V_BIR(0) | in setup_memwin() [all …]
|
| /freebsd-11-stable/sys/dev/cxgb/ulp/iw_cxgb/ |
| HD | iw_cxgb_qp.c | 514 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()
|