Searched refs:mw (Results 1 - 25 of 37) sorted by relevance

12

/freebsd-11-stable/sys/dev/ntb/ntb_hw/
H A Dntb_hw_plx.c173 struct ntb_plx_mw_info *mw; local
180 mw = &sc->mw_info[sc->b2b_mw];
181 if (mw->mw_64bit) {
183 val64 = 0x2000000000000000 * mw->mw_bar | 0x4;
188 val = 0x20000000 * mw->mw_bar;
194 mw = &sc->mw_info[i];
195 if (mw->mw_64bit) {
196 val64 = 0x2000000000000000 * mw->mw_bar;
197 NTX_WRITE(sc, 0xc3c + (mw->mw_bar - 2) * 4, val64);
198 NTX_WRITE(sc, 0xc3c + (mw
322 struct ntb_plx_mw_info *mw; local
476 struct ntb_plx_mw_info *mw; local
599 struct ntb_plx_mw_info *mw; local
666 struct ntb_plx_mw_info *mw; local
757 struct ntb_plx_mw_info *mw; local
784 struct ntb_plx_mw_info *mw; local
799 struct ntb_plx_mw_info *mw; local
978 struct ntb_plx_mw_info *mw; local
[all...]
/freebsd-11-stable/sys/dev/ntb/
H A Dntb_transport.c334 struct ntb_transport_mw *mw; local
370 mw = &nt->mw_vec[i];
372 rc = ntb_mw_get_range(dev, i, &mw->phys_addr, &mw->vbase,
373 &mw->phys_size, &mw->xlat_align, &mw->xlat_align_size,
374 &mw->addr_limit);
378 mw->buff_size = 0;
379 mw
551 struct ntb_transport_mw *mw; local
1180 struct ntb_transport_mw *mw = &nt->mw_vec[num_mw]; local
1247 struct ntb_transport_mw *mw = &nt->mw_vec[num_mw]; local
1265 struct ntb_transport_mw *mw; local
[all...]
H A Dntb.c66 int i, mw, mwu, mwt, spad, spadu, spadt, db, dbu, dbt; local
92 mw = (p && p[0] != 0) ? strtol(p, NULL, 10) : mwt - mwu;
97 if (mw > mwt - mwu || spad > spadt - spadu || db > dbt - dbu) {
105 nc->mwcnt = mw;
123 if (mw > 0) {
125 if (mw > 1)
126 printf("-%d", mwu + mw - 1);
141 mwu += mw;
187 printf(" mw %d", nc->mwoff);
/freebsd-11-stable/sys/ofed/include/rdma/
H A Dib_verbs_compat.h262 struct ib_mw *mw; member in struct:ib_send_wr_compat::__anon8320::__anon8324::__anon8327
472 struct ib_mw *mw; local
477 mw = pd->device->alloc_mw(pd, type, NULL);
478 if (!IS_ERR(mw)) {
479 mw->device = pd->device;
480 mw->pd = pd;
481 mw->uobject = NULL;
482 mw->type = type;
485 return (mw);
490 struct ib_mw *mw,
489 ib_bind_mw(struct ib_qp *qp, struct ib_mw *mw, struct ib_mw_bind *mw_bind) argument
497 ib_dealloc_mw(struct ib_mw *mw) argument
[all...]
/freebsd-11-stable/contrib/libstdc++/libsupc++/
H A Dguard.cc167 mutex_wrapper mw; local
170 mw.unlock = false;
/freebsd-11-stable/contrib/mdocml/
H A Dout.c256 const struct tbl_opts *opts, const struct tbl_dat *dp, size_t mw)
273 tblcalc_literal(tbl, col, dp, mw);
287 const struct tbl_dat *dp, size_t mw)
297 str = mw ? mandoc_strdup(dp->string) : dp->string;
300 end = mw ? strchr(beg, ' ') : NULL;
307 if (mw && lsz && lsz + 1 + wsz <= mw)
314 if (mw)
255 tblcalc_data(struct rofftbl *tbl, struct roffcol *col, const struct tbl_opts *opts, const struct tbl_dat *dp, size_t mw) argument
286 tblcalc_literal(struct rofftbl *tbl, struct roffcol *col, const struct tbl_dat *dp, size_t mw) argument
/freebsd-11-stable/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_mr.c347 struct mlx4_ib_mw *mw; local
350 mw = kmalloc(sizeof(*mw), GFP_KERNEL);
351 if (!mw)
355 to_mlx4_type(type), &mw->mmw);
359 err = mlx4_mw_enable(dev->dev, &mw->mmw);
363 mw->ibmw.rkey = mw->mmw.key;
365 return &mw->ibmw;
368 mlx4_mw_free(dev->dev, &mw
378 struct mlx4_ib_mw *mw = to_mmw(ibmw); local
[all...]
/freebsd-11-stable/usr.bin/ncal/
H A Dncal.c571 #define MW(mw, me) ((mw) + me)
596 int mw; local
602 mw = jd_flag ? MONTH_WIDTH_B_J : MONTH_WIDTH_B;
637 printf("%s\n", center(t, s, mpl * mw));
645 mw, wcenter(ws, year[i].name, mw));
649 wprintf(L"%-*ls ", mw, wcenter(ws1, ws, mw));
667 MW(mw, yea
684 int mw; local
[all...]
/freebsd-11-stable/sys/dev/mlx4/mlx4_core/
H A Dmlx4_mr.c821 struct mlx4_mw *mw)
835 mw->key = hw_index_to_key(index);
836 mw->pd = pd;
837 mw->type = type;
838 mw->enabled = MLX4_MPT_DISABLED;
844 int mlx4_mw_enable(struct mlx4_dev *dev, struct mlx4_mw *mw) argument
850 err = mlx4_mpt_alloc_icm(dev, key_to_hw_index(mw->key), GFP_KERNEL);
864 mpt_entry->key = cpu_to_be32(key_to_hw_index(mw->key));
865 mpt_entry->pd_flags = cpu_to_be32(mw->pd);
866 if (mw
820 mlx4_mw_alloc(struct mlx4_dev *dev, u32 pd, enum mlx4_mw_type type, struct mlx4_mw *mw) argument
894 mlx4_mw_free(struct mlx4_dev *dev, struct mlx4_mw *mw) argument
[all...]
/freebsd-11-stable/contrib/ofed/libmlx4/
H A Dverbs.c318 struct ibv_mw *mw; local
323 mw = calloc(1, sizeof(*mw));
324 if (!mw)
327 ret = ibv_cmd_alloc_mw(pd, type, mw, &cmd, sizeof(cmd),
331 free(mw);
335 return mw;
338 int mlx4_dealloc_mw(struct ibv_mw *mw) argument
343 ret = ibv_cmd_dealloc_mw(mw, &cmd, sizeof(cmd));
347 free(mw);
351 mlx4_bind_mw(struct ibv_qp *qp, struct ibv_mw *mw, struct ibv_mw_bind *mw_bind) argument
[all...]
H A Dmlx4.h380 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/ofed/libibverbs/
H A Dverbs.h973 struct ibv_mw *mw; member in struct:ibv_send_wr::__anon3487::__anon3488
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; local
1779 mw = pd->context->ops.alloc_mw(pd, type);
1780 return mw;
1786 static inline int ibv_dealloc_mw(struct ibv_mw *mw) argument
1788 return mw->context->ops.dealloc_mw(mw);
1805 static inline int ibv_bind_mw(struct ibv_qp *qp, struct ibv_mw *mw, argument
[all...]
H A Ddriver.h180 struct ibv_mw *mw, struct ibv_alloc_mw *cmd,
183 int ibv_cmd_dealloc_mw(struct ibv_mw *mw,
H A Dcmd.c429 struct ibv_mw *mw, struct ibv_alloc_mw *cmd,
443 mw->context = pd->context;
444 mw->pd = pd;
445 mw->rkey = resp->rkey;
446 mw->handle = resp->mw_handle;
447 mw->type = type;
452 int ibv_cmd_dealloc_mw(struct ibv_mw *mw, argument
456 cmd->mw_handle = mw->handle;
459 if (write(mw->context->cmd_fd, cmd, cmd_size) != cmd_size)
428 ibv_cmd_alloc_mw(struct ibv_pd *pd, enum ibv_mw_type type, struct ibv_mw *mw, struct ibv_alloc_mw *cmd, size_t cmd_size, struct ibv_alloc_mw_resp *resp, size_t resp_size) argument
/freebsd-11-stable/contrib/amd/amq/
H A Damq.c100 int mw = strlen(mt->mt_mountinfo); local
103 if (mw > *mwid)
104 *mwid = mw;
219 int mw = strlen(mi->mi_mountinfo); local
222 if (mw > *mwid)
223 *mwid = mw;
/freebsd-11-stable/contrib/ofed/libmlx5/
H A Dqp.c729 ctrl->imm = htobe32(wr->bind_mw.mw->rkey);
730 err = set_bind_wr(qp, wr->bind_mw.mw->type,
774 ctrl->imm = htobe32(wr->bind_mw.mw->rkey);
775 err = set_bind_wr(qp, wr->bind_mw.mw->type,
974 if (wr->bind_mw.mw->type == IBV_MW_TYPE_1)
982 if (wr->bind_mw.bind_info.mr->pd != wr->bind_mw.mw->pd)
990 int mlx5_bind_mw(struct ibv_qp *qp, struct ibv_mw *mw, argument
1014 if (mw->pd != bind_info->mr->pd) {
1025 wr.bind_mw.mw = mw;
[all...]
H A Dverbs.c221 struct ibv_mw *mw; local
226 mw = malloc(sizeof(*mw));
227 if (!mw)
230 memset(mw, 0, sizeof(*mw));
232 ret = ibv_cmd_alloc_mw(pd, type, mw, &cmd, sizeof(cmd), &resp,
235 free(mw);
239 return mw;
242 int mlx5_dealloc_mw(struct ibv_mw *mw) argument
[all...]
/freebsd-11-stable/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_mr.c1590 struct mlx5_ib_mw *mw = NULL; local
1615 mw = kzalloc(sizeof(*mw), GFP_KERNEL);
1617 if (!mw || !in) {
1633 err = mlx5_core_create_mkey(dev->mdev, &mw->mmkey, in, inlen);
1637 mw->ibmw.rkey = mw->mmkey.key;
1644 mlx5_core_destroy_mkey(dev->mdev, &mw->mmkey);
1650 return &mw->ibmw;
1653 kfree(mw);
1658 mlx5_ib_dealloc_mw(struct ib_mw *mw) argument
[all...]
/freebsd-11-stable/sys/ofed/drivers/infiniband/core/
H A Dib_uverbs_main.c149 int uverbs_dealloc_mw(struct ib_mw *mw) argument
151 struct ib_pd *pd = mw->pd;
154 ret = mw->device->dealloc_mw(mw);
248 struct ib_mw *mw = uobj->object; local
251 uverbs_dealloc_mw(mw);
H A Duverbs.h222 int uverbs_dealloc_mw(struct ib_mw *mw);
/freebsd-11-stable/contrib/groff/src/preproc/tbl/
H A Dtable.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) argument
656 do_divert(0, ncols, mw, sep);
660 void block_entry::do_divert(int alphabetic, int ncols, const string *mw, argument
669 if (mw[i].empty())
679 printfs("(n;%1)", mw[j]);
775 int alphabetic_block_entry::divert(int ncols, const string *mw, in argument
[all...]
/freebsd-11-stable/sys/dev/cxgb/ulp/iw_cxgb/
H A Diw_cxgb_provider.h334 struct ib_mw *mw,
/freebsd-11-stable/sys/dev/cxgbe/iw_cxgbe/
H A Dmem.c590 int c4iw_dealloc_mw(struct ib_mw *mw) argument
596 mhp = to_c4iw_mw(mw);
598 mmid = (mw->rkey) >> 8;
602 CTR4(KTR_IW_CXGBE, "%s ib_mw %p mmid 0x%x ptr %p", __func__, mw, mmid,
/freebsd-11-stable/sys/dev/cxgbe/
H A Dt4_main.c1568 struct memwin *mw = &sc->memwin[i]; local
1570 if (rw_initialized(&mw->mw_lock))
1571 rw_destroy(&mw->mw_lock);
2671 struct memwin *mw; local
2694 for (i = 0, mw = &sc->memwin[0]; i < NUM_MEMWIN; i++, mw_init++, mw++) {
2695 rw_init(&mw->mw_lock, "memory window access");
2696 mw->mw_base = mw_init->base;
2697 mw->mw_aperture = mw_init->aperture;
2698 mw
2721 struct memwin *mw; local
2745 struct memwin *mw; local
[all...]
/freebsd-11-stable/sys/contrib/rdma/krping_compat/
H A Dkrping.c186 struct ib_mw *mw; member in struct:krping_cb
644 cb->mw = ib_alloc_mw(cb->pd,IB_MW_TYPE_1);
645 if (IS_ERR(cb->mw)) {
647 ret = PTR_ERR(cb->mw);
650 DEBUG_LOG(cb, "mw rkey 0x%x\n", cb->mw->rkey);
721 if (cb->mw && !IS_ERR(cb->mw))
722 ib_dealloc_mw(cb->mw);
756 if (cb->mw)
[all...]

Completed in 339 milliseconds

12