/freebsd/sys/dev/ntb/ntb_hw/ |
H A D | 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/sys/dev/ntb/ |
H A D | ntb_transport.c | 346 struct ntb_transport_mw *mw; in ntb_transport_attach() local 398 mw = &nt->mw_vec[i]; in ntb_transport_attach() 400 rc = ntb_mw_get_range(dev, i, &mw->phys_addr, &mw->vbase, in ntb_transport_attach() 401 &mw->phys_size, &mw->xlat_align, &mw->xlat_align_size, in ntb_transport_attach() 402 &mw->addr_limit); in ntb_transport_attach() 406 mw->tx_size = mw->phys_size; in ntb_transport_attach() 407 if (max_mw_size != 0 && mw->tx_size > max_mw_size) { in ntb_transport_attach() 409 "%ju to %ju\n", i, (uintmax_t)mw->tx_size, in ntb_transport_attach() 411 mw->tx_size = max_mw_size; in ntb_transport_attach() 413 if (nt->compact && mw->tx_size > UINT32_MAX) { in ntb_transport_attach() [all …]
|
H A D | ntb.c | 64 int i, mw, mwu, mwt, spad, spadu, spadt, db, dbu, dbt; in ntb_register_device() local 90 mw = (p && p[0] != 0) ? strtol(p, NULL, 10) : mwt - mwu; in ntb_register_device() 95 if (mw > mwt - mwu || spad > spadt - spadu || db > dbt - dbu) { in ntb_register_device() 103 nc->mwcnt = mw; in ntb_register_device() 121 if (mw > 0) { in ntb_register_device() 123 if (mw > 1) in ntb_register_device() 124 printf("-%d", mwu + mw - 1); in ntb_register_device() 139 mwu += mw; in ntb_register_device()
|
/freebsd/tools/test/stress2/misc/ |
H A D | contigmalloc.sh | 80 long mw, s; 85 mw = atol(argv[2]); 87 if (argc != 3 || no == 0 || mw == 0) 93 mw = mw / 100 * 10 * ps; /* Use 10% of vm.max_user_wired */ 94 mw = min(mw, CAP); 97 if (s + size[i] > mw) 156 mw=`sysctl -n vm.max_user_wired` || exit 1 157 /tmp/ctest `sysctl -n debug.cmalloc_offset` $mw [all...] |
H A D | contigmalloc3.sh | 64 long mw, size; 70 mw = atol(argv[2]); 72 if (argc != 3 || no == 0 || mw == 0) 76 if (mw < MAXBUF / ps) { 125 mw=`sysctl -n vm.max_user_wired` || exit 1 126 /tmp/ctest `sysctl -n debug.cmalloc_offset` $mw 2>&1 | tail -5
|
H A D | contigmalloc2.sh | 65 long mw; 70 mw = atol(argv[2]); 72 if (argc != 3 || no == 0 || mw == 0) 76 size = mw / 100 * 80 * ps; /* Use 80% of vm.max_user_wired */ 122 mw=$((`sysctl -n vm.max_user_wired` - \ 124 /tmp/ctest2 `sysctl -n debug.cmalloc_offset` $mw #2>&1 | tail -5
|
/freebsd/contrib/bearssl/src/int/ |
H A D | i32_muladd.c | 109 uint32_t mw, zw, xw, nxw; in br_i32_muladd_small() local 112 mw = m[u]; in br_i32_muladd_small() 113 zl = MUL(mw, q) + cc; in br_i32_muladd_small() 120 tb = MUX(EQ(nxw, mw), tb, GT(nxw, mw)); in br_i32_muladd_small()
|
H A D | i31_muladd.c | 129 uint32_t mw, zw, xw, nxw; in br_i31_muladd_small() local 132 mw = m[u]; in br_i31_muladd_small() 133 zl = MUL31(mw, q) + cc; in br_i31_muladd_small() 141 tb = MUX(EQ(nxw, mw), tb, GT(nxw, mw)); in br_i31_muladd_small()
|
H A D | i15_muladd.c | 148 uint32_t mw, zl, xw, nxw; in br_i15_muladd_small() local 150 mw = m[u]; in br_i15_muladd_small() 151 zl = MUL15(mw, q) + cc; in br_i15_muladd_small() 159 tb = MUX(EQ(nxw, mw), tb, GT(nxw, mw)); in br_i15_muladd_small()
|
H A D | i15_moddiv.c | 81 uint32_t aw, mw; in finish_mod() local 84 mw = m[k]; in finish_mod() 85 cc = (aw - mw - cc) >> 31; in finish_mod() 98 uint32_t aw, mw; in finish_mod() local 101 mw = (m[k] ^ xm) & ym; in finish_mod() 102 aw = aw - mw - cc; in finish_mod()
|
H A D | i31_moddiv.c | 84 uint32_t aw, mw; in finish_mod() local 87 mw = m[k]; in finish_mod() 88 cc = (aw - mw - cc) >> 31; in finish_mod() 101 uint32_t aw, mw; in finish_mod() local 104 mw = (m[k] ^ xm) & ym; in finish_mod() 105 aw = aw - mw - cc; in finish_mod()
|
/freebsd/sys/dev/mlx4/mlx4_ib/ |
H A D | 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/usr.bin/ncal/ |
H A D | ncal.c | 576 #define MW(mw, me) ((mw) + me) argument 601 int mw; in monthrangeb() local 607 mw = jd_flag ? MONTH_WIDTH_B_J : MONTH_WIDTH_B; in monthrangeb() 642 printf("%s\n", center(t, s, mpl * mw)); in monthrangeb() 650 mw, wcenter(ws, year[i].name, mw)); in monthrangeb() 654 wprintf(L"%-*ls ", mw, wcenter(ws1, ws, mw)); in monthrangeb() 675 MW(mw, year[j].extralen[i]), in monthrangeb() 692 int mw; in monthranger() local 698 mw = jd_flag ? MONTH_WIDTH_R_J : MONTH_WIDTH_R; in monthranger() 732 printf("%s\n", center(t, s, mpl * mw)); in monthranger() [all …]
|
/freebsd/sys/dev/mlx4/mlx4_core/ |
H A D | 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/contrib/mandoc/ |
H A D | out.c | 421 const struct tbl_opts *opts, const struct tbl_dat *dp, size_t mw) in tblcalc_data() argument 438 return tblcalc_literal(tbl, col, dp, mw); in tblcalc_data() 450 const struct tbl_dat *dp, size_t mw) in tblcalc_literal() argument 461 str = mw ? mandoc_strdup(dp->string) : dp->string; in tblcalc_literal() 464 end = mw ? strchr(beg, ' ') : NULL; in tblcalc_literal() 471 if (mw && lsz && lsz + 1 + wsz <= mw) in tblcalc_literal() 478 if (mw) in tblcalc_literal()
|
/freebsd/contrib/ofed/libmlx4/ |
H A D | 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 …]
|
/freebsd/sys/dev/ntb/test/ |
H A D | ntb_tool.c | 999 struct tool_mw *mw; in tool_init_mws() local 1010 mw = &tc->peers[pidx].inmws[widx]; in tool_init_mws() 1011 memset((void *)mw, 0, sizeof(*mw)); in tool_init_mws() 1012 mw->tc = tc; in tool_init_mws() 1013 mw->widx = widx; in tool_init_mws() 1014 mw->pidx = pidx; in tool_init_mws() 1015 mw->mw_buf_offset = DEFAULT_MW_OFF; in tool_init_mws() 1016 mw->mw_buf_size = DEFAULT_MW_SIZE; in tool_init_mws() 1018 rc = ntb_mw_get_range(tc->dev, widx, &mw->phys_addr, in tool_init_mws() 1019 &mw->mm_base, &mw->phys_size, &mw->xlat_align, in tool_init_mws() [all …]
|
/freebsd/contrib/ofed/libirdma/ |
H A D | irdma_uverbs.c | 259 struct ibv_mw *mw; in irdma_ualloc_mw() local 264 mw = calloc(1, sizeof(*mw)); in irdma_ualloc_mw() 265 if (!mw) in irdma_ualloc_mw() 268 err = ibv_cmd_alloc_mw(pd, type, mw, &cmd, sizeof(cmd), &resp, in irdma_ualloc_mw() 273 free(mw); in irdma_ualloc_mw() 278 return mw; in irdma_ualloc_mw() 288 irdma_ubind_mw(struct ibv_qp *qp, struct ibv_mw *mw, in irdma_ubind_mw() argument 309 if (mw->pd != bind_info->mr->pd) in irdma_ubind_mw() 315 wr.bind_mw.mw = mw; in irdma_ubind_mw() 316 wr.bind_mw.rkey = ibv_inc_rkey(mw->rkey); in irdma_ubind_mw() [all …]
|
H A D | irdma_umain.h | 163 int irdma_ubind_mw(struct ibv_qp *qp, struct ibv_mw *mw, 165 int irdma_udealloc_mw(struct ibv_mw *mw);
|
/freebsd/contrib/ofed/libibverbs/ |
H A D | verbs.h | 975 struct ibv_mw *mw; member 1422 int (*bind_mw)(struct ibv_qp *qp, struct ibv_mw *mw, 1424 int (*dealloc_mw)(struct ibv_mw *mw); 1774 struct ibv_mw *mw; in ibv_alloc_mw() local 1781 mw = pd->context->ops.alloc_mw(pd, type); in ibv_alloc_mw() 1782 return mw; in ibv_alloc_mw() 1788 static inline int ibv_dealloc_mw(struct ibv_mw *mw) in ibv_dealloc_mw() argument 1790 return mw->context->ops.dealloc_mw(mw); in ibv_dealloc_mw() 1807 static inline int ibv_bind_mw(struct ibv_qp *qp, struct ibv_mw *mw, in ibv_bind_mw() argument 1810 if (mw->type != IBV_MW_TYPE_1) in ibv_bind_mw() [all …]
|
/freebsd/contrib/ofed/libmlx5/ |
H A D | 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 …]
|
H A D | 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 [all...] |
/freebsd/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_mr.c | 1464 struct mlx5_ib_mw *mw = NULL; in mlx5_ib_alloc_mw() local 1489 mw = kzalloc(sizeof(*mw), GFP_KERNEL); in mlx5_ib_alloc_mw() 1491 if (!mw || !in) { in mlx5_ib_alloc_mw() 1507 err = mlx5_core_create_mkey(dev->mdev, &mw->mmkey, in, inlen); in mlx5_ib_alloc_mw() 1511 mw->ibmw.rkey = mw->mmkey.key; in mlx5_ib_alloc_mw() 1518 mlx5_core_destroy_mkey(dev->mdev, &mw->mmkey); in mlx5_ib_alloc_mw() 1524 return &mw->ibmw; in mlx5_ib_alloc_mw() 1527 kfree(mw); in mlx5_ib_alloc_mw() 1532 int mlx5_ib_dealloc_mw(struct ib_mw *mw) in mlx5_ib_dealloc_mw() argument 1534 struct mlx5_ib_mw *mmw = to_mmw(mw); in mlx5_ib_dealloc_mw() [all …]
|
/freebsd/crypto/openssl/test/certs/ |
H A D | x509-check-key.pem | 25 mw+61DSgThUgKa7j96NG2ToYeNWTdf2Fd4Xa7s6MWryaGY+IMSRga24CM+WvaaAL
|
/freebsd/sys/contrib/device-tree/include/dt-bindings/usb/ |
H A D | pd.h | 44 #define PDO_BATT_MAX_POWER(mw) ((((mw) / 250) & PDO_PWR_MASK) << PDO_BATT_MAX_PWR_SHIFT) argument
|