| /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 | 262 NTBTC_MW0_SZ, /* MW size limited to 32 bits. */ 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() [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() 184 printf(" mw %d", nc->mwoff); in ntb_print_child()
|
| /freebsd/contrib/ofed/libibverbs/man/ |
| H A D | ibv_bind_mw.3 | 11 .BI "int ibv_bind_mw(struct ibv_qp " "*qp" ", struct ibv_mw " "*mw" ", 19 .I mw 32 struct ibv_mw_bind_info bind_info; /* MW bind information */ 40 struct ibv_mr *mr; /* The MR to bind the MW to */ 41 uint64_t addr; /* The address the MW should start at */ 42 uint64_t length; /* The length (in bytes) the MW should span */ 43 int mw_access_flags; /* Access flags to the MW. Use ibv_access_flags */ 57 The mw_access_flags define the allowed access to the MW after the bind 67 …the address set on the 'remote_addr' field on the WR will be an offset from the MW's start address. 72 memory window after the bind is returned in the mw_bind->mw->rkey field. [all …]
|
| H A D | ibv_alloc_mw.3 | 6 ibv_alloc_mw, ibv_dealloc_mw \- allocate or deallocate a memory window (MW) 14 .BI "int ibv_dealloc_mw(struct ibv_mw " "*mw" ); 18 allocates a memory window (MW) associated with the protection domain 20 The MW's type (1 or 2A/2B) is 23 The MW is created not bound. For it to be useful, the MW must be bound, through either ibv_bind_mw … 29 Unbinds in case was previously bound and deallocates the MW 30 .I mw\fR. 33 returns a pointer to the allocated MW, or NULL if the request fails.
|
| H A D | ibv_post_send.3 | 77 struct ibv_mw *mw; /* Memory window (MW) of type 2 to bind */ 78 uint32_t rkey; /* The desired new rkey of the MW */ 79 struct ibv_mw_bind_info bind_info; /* MW additional bind information */ 98 struct ibv_mr *mr; /* The Memory region (MR) to bind the MW to */ 99 uint64_t addr; /* The address the MW should start at */ 100 uint64_t length; /* The length (in bytes) the MW should span */ 101 int mw_access_flags; /* Access flags to the MW. Use ibv_access_flags */
|
| /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 | 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
|
| 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
|
| /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/sys/dev/ntb/test/ |
| H A D | ntb_tool.c | 536 if (!strcmp(type, "mw")) in tool_mw_read_fn() 537 sbuf_printf(sb, "\nConfigured MW size\t: %zu\n", inmw->size); in tool_mw_read_fn() 539 sbuf_printf(sb, "\nConfigured Peer MW size\t: %zu\n", in tool_mw_read_fn() 545 * Data will be read based on MW size provided by the user using nbytes, in tool_mw_read_fn() 547 * above loop calculation which is limiting or setting the MW read size. in tool_mw_read_fn() 600 device_printf(inmw->tc->dev, "%s: configured mw size :%zi and " in tool_mw_write_fn() 791 "mw"); in sysctl_mw_handle() 820 device_printf(tc->dev, "Unable to create MW tag of size " in tool_setup_mw() 828 device_printf(tc->dev, "Unable to allocate MW buffer of size " in tool_setup_mw() 836 device_printf(tc->dev, "Unable to load MW buffer of size " in tool_setup_mw() [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/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()
|
| /freebsd/usr.bin/ncal/ |
| H A D | ncal.c | 576 #define MW(mw, me) ((mw) + me) macro 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/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() 284 * @mw: memory window to bind 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() [all …]
|
| /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/acpica/ |
| H A D | acpiio.h | 55 uint32_t units; /* Power Unit (mW or mA). */ 56 #define ACPI_BIF_UNITS_MW 0 /* Capacity in mWh, rate in mW. */ 78 uint32_t units; /* Power Unit (mW or mA). */ 79 #define ACPI_BIX_UNITS_MW 0 /* Capacity in mWh, rate in mW. */ 119 uint32_t units; /* Power Unit (mW or mA). */
|
| /freebsd/contrib/mandoc/ |
| H A D | out.c | 429 const struct tbl_opts *opts, const struct tbl_dat *dp, size_t mw) in tblcalc_data() 446 return tblcalc_literal(tbl, col, dp, mw); in tblcalc_literal() 458 const struct tbl_dat *dp, size_t mw) in tblcalc_literal() 472 str = mw ? mandoc_strdup(dp->string) : dp->string; in tblcalc_literal() 475 end = mw ? strchr(beg, ' ') : NULL; in tblcalc_literal() 483 if (mw && lsz && lsz + enw + wsz <= mw) in tblcalc_number() 490 if (mw) in tblcalc_number() 413 tblcalc_data(struct rofftbl * tbl,struct roffcol * col,const struct tbl_opts * opts,const struct tbl_dat * dp,size_t mw) tblcalc_data() argument 442 tblcalc_literal(struct rofftbl * tbl,struct roffcol * col,const struct tbl_dat * dp,size_t mw) tblcalc_literal() argument
|
| /freebsd/share/man/man4/ |
| H A D | acpi_battery.4 | 92 Current battery discharging rate in mW. 139 in mW 147 and rate is expressed in mW or mA, 319 Current battery discharging rate in mW.
|
| H A D | ntb.4 | 54 Each function can be configured as: "[<name>][:<mw>[:<spad>[:<db>]]]", where: 57 .Va mw
|
| /freebsd/sys/dev/irdma/ |
| H A D | irdma_utils.c | 44 "Memory protection error: Accessing Memory Window (MW) which belongs to a different QP"}, 46 …"Memory protection error: Accessing Memory Window (MW)/Memory Region (MR) which belongs to a diffe… 49 {IRDMA_AE_AMP_BOUNDS_VIOLATION, "Memory Window (MW)/Memory Region (MR) bounds violation"}, 50 {IRDMA_AE_AMP_RIGHTS_VIOLATION, "Memory Window (MW)/Memory Region (MR) rights violation"}, 52 "Memory protection error: The address within Memory Window (MW)/Memory Region (MR) wraps"}, 56 "Fastreg error: Registration to a valid Memory Window (MW)"}, 61 "Attempt to remotely invalidate Memory Window (MW)/Memory Region (MR) without rights"}, 63 "Attempt to invalidate MR with a bound Memory Window (MW)"}, 65 "Attempt to bind an Memory Window (MW) with a valid MW memory key (L-Key/R-Key)"}, 67 "Attempt to bind an Memory Window (MW) with an MR memory key (L-Key/R-Key)"}, [all …]
|
| /freebsd/sys/dev/bnxt/bnxt_re/ |
| H A D | bnxt_re.h | 792 * did not reference a valid MR/MW. This error may be detected 800 * referenced a MR/MW that was not in the same PD as the QP on 806 * referenced a MR/MW which did not have the access permission 813 * MR/MW. This is an RX Detected Error. 818 * did not reference a valid MR/MW. This error may be detected 826 * referenced a MR/MW that was not in the same PD as the QP on 832 * referenced a MR/MW which did not have the access permission 839 * MR/MW. This is a TX Detected Error. 863 * MR/MW which could be invalidated. RQ WQE completes with error
|
| /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 …]
|