/freebsd-11-stable/sys/amd64/vmm/intel/ |
H A D | ept.c | 48 #define EPT_SUPPORTS_EXEC_ONLY(cap) ((cap) & (1UL << 0)) 49 #define EPT_PWL4(cap) ((cap) & (1UL << 6)) 50 #define EPT_MEMORY_TYPE_WB(cap) ((cap) & (1UL << 14)) 51 #define EPT_PDE_SUPERPAGE(cap) ((cap) & (1UL << 16)) /* 2MB pages */ 52 #define EPT_PDPTE_SUPERPAGE(cap) ((cap) 81 uint64_t cap; local [all...] |
H A D | vtd.c | 56 volatile uint64_t cap; member in struct:vtdmap 64 #define VTD_CAP_SAGAW(cap) (((cap) >> 8) & 0x1F) 65 #define VTD_CAP_ND(cap) ((cap) & 0x7) 66 #define VTD_CAP_CM(cap) (((cap) >> 7) & 0x1) 67 #define VTD_CAP_SPS(cap) (((cap) >> 34) & 0xF) 68 #define VTD_CAP_RWBF(cap) (((ca [all...] |
/freebsd-11-stable/sys/opencrypto/ |
H A D | crypto.c | 179 static int crypto_invoke(struct cryptocap *cap, struct cryptop *crp, int hint); 350 driver_suitable(const struct cryptocap *cap, const struct cryptoini *cri) argument 356 if (cap->cc_alg[cr->cri_alg] == 0) 375 struct cryptocap *cap, *best; local 390 cap = &crypto_drivers[hid]; 396 if (cap->cc_dev == NULL || 397 (cap->cc_flags & CRYPTOCAP_F_CLEANUP) || 398 (cap->cc_flags & match) == 0) 402 if (driver_suitable(cap, cri)) { 404 cap 426 struct cryptocap *cap; local 471 crypto_remove(struct cryptocap *cap) argument 486 struct cryptocap *cap; local 616 struct cryptocap *cap = crypto_checkdriver(hid); local 626 struct cryptocap *cap = crypto_checkdriver(hid); local 637 struct cryptocap *cap; local 674 struct cryptocap *cap; local 708 driver_finis(struct cryptocap *cap) argument 737 struct cryptocap *cap; local 773 struct cryptocap *cap; local 795 struct cryptocap *cap; local 821 struct cryptocap *cap; local 888 kdriver_suitable(const struct cryptocap *cap, const struct cryptkop *krp) argument 906 struct cryptocap *cap, *best, *blocked; local 956 struct cryptocap *cap = NULL; local 1043 crypto_invoke(struct cryptocap *cap, struct cryptop *crp, int hint) argument 1213 struct cryptocap *cap; local 1241 const struct cryptocap *cap = &crypto_drivers[hid]; local 1282 struct cryptocap *cap; local 1503 const struct cryptocap *cap = &crypto_drivers[hid]; local [all...] |
/freebsd-11-stable/usr.sbin/pciconf/ |
H A D | Makefile | 5 SRCS= pciconf.c cap.c err.c
|
H A D | cap.c | 33 "$FreeBSD: stable/11/usr.sbin/pciconf/cap.c 358362 2020-02-27 00:57:36Z kib $"; 54 uint16_t cap, status; local 56 cap = read_config(fd, &p->pc_sel, ptr + PCIR_POWER_CAP, 2); 59 cap & PCIM_PCAP_SPEC, 60 cap & PCIM_PCAP_D1SUPP ? " D1" : "", 61 cap & PCIM_PCAP_D2SUPP ? " D2" : "", 313 printf(" Intel cap %d version %d", version >> 4, version & 0xf); 412 slot_power(uint32_t cap) argument 416 mwatts = (cap & PCIEM_SLOT_CAP_SPLV) >> 7; 417 switch (cap 436 uint32_t cap; local 576 uint8_t cap; local 724 uint8_t ptr, cap; local 1054 uint8_t ptr, cap; local [all...] |
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_vector.h | 104 uptr cap = cap0 * 5 / 4; // 25% growth local 105 if (cap == 0) 106 cap = 16; 107 if (cap < size) 108 cap = size; 109 T *p = (T*)InternalAlloc(cap * sizeof(T)); 116 last_ = begin_ + cap;
|
/freebsd-11-stable/contrib/wpa/src/ap/ |
H A D | ieee802_11_vht.c | 25 struct ieee80211_vht_capabilities *cap; local 46 *pos++ = sizeof(*cap); 48 cap = (struct ieee80211_vht_capabilities *) pos; 49 os_memset(cap, 0, sizeof(*cap)); 50 cap->vht_capabilities_info = host_to_le32( 56 hapd_nsts = le_to_host32(cap->vht_capabilities_info); 58 cap->vht_capabilities_info &= 61 cap->vht_capabilities_info |= 66 os_memcpy(&cap 461 u32 cap, own_cap, sym_caps; local [all...] |
H A D | ieee802_11_he.c | 50 struct ieee80211_he_capabilities *cap; local 87 cap = (struct ieee80211_he_capabilities *) pos; 88 os_memset(cap, 0, sizeof(*cap)); 90 os_memcpy(cap->he_mac_capab_info, mode->he_capab[opmode].mac_cap, 92 os_memcpy(cap->he_phy_capab_info, mode->he_capab[opmode].phy_cap, 94 os_memcpy(cap->optional, mode->he_capab[opmode].mcs, mcs_nss_size); 96 os_memcpy(&cap->optional[mcs_nss_size], 100 cap->he_phy_capab_info[HE_PHYCAP_SU_BEAMFORMER_CAPAB_IDX] |= 103 cap [all...] |
H A D | ieee802_11_ht.c | 26 struct ieee80211_ht_capabilities *cap; local 34 *pos++ = sizeof(*cap); 36 cap = (struct ieee80211_ht_capabilities *) pos; 37 os_memset(cap, 0, sizeof(*cap)); 38 cap->ht_capabilities_info = host_to_le16(hapd->iconf->ht_capab); 39 cap->a_mpdu_params = hapd->iface->current_mode->a_mpdu_params; 40 os_memcpy(cap->supported_mcs_set, hapd->iface->current_mode->mcs_set, 47 pos += sizeof(*cap); 520 u16 cap; local [all...] |
/freebsd-11-stable/crypto/openssl/crypto/pkcs7/ |
H A D | pk7_attr.c | 71 STACK_OF(X509_ALGOR) *cap) 78 seq->length = ASN1_item_i2d((ASN1_VALUE *)cap, &seq->data, 86 ASN1_TYPE *cap; local 89 cap = PKCS7_get_signed_attribute(si, NID_SMIMECapabilities); 90 if (!cap || (cap->type != V_ASN1_SEQUENCE)) 92 p = cap->value.sequence->data; 94 ASN1_item_d2i(NULL, &p, cap->value.sequence->length, 70 PKCS7_add_attrib_smimecap(PKCS7_SIGNER_INFO *si, STACK_OF(X509_ALGOR) *cap) argument
|
/freebsd-11-stable/sys/dev/mlx5/ |
H A D | device.h | 957 #define MLX5_CAP_GEN(mdev, cap) \ 958 MLX5_GET(cmd_hca_cap, mdev->hca_caps_cur[MLX5_CAP_GENERAL], cap) 960 #define MLX5_CAP_GEN_MAX(mdev, cap) \ 961 MLX5_GET(cmd_hca_cap, mdev->hca_caps_max[MLX5_CAP_GENERAL], cap) 963 #define MLX5_CAP_ETH(mdev, cap) \ 965 mdev->hca_caps_cur[MLX5_CAP_ETHERNET_OFFLOADS], cap) 967 #define MLX5_CAP_ETH_MAX(mdev, cap) \ 969 mdev->hca_caps_max[MLX5_CAP_ETHERNET_OFFLOADS], cap) 971 #define MLX5_CAP_ROCE(mdev, cap) \ 972 MLX5_GET(roce_cap, mdev->hca_caps_cur[MLX5_CAP_ROCE], cap) [all...] |
/freebsd-11-stable/lib/libc/rpc/ |
H A D | pmap_rmt.c | 120 xdr_rmtcall_args(XDR *xdrs, struct rmtcallargs *cap) argument 125 assert(cap != NULL); 127 if (xdr_u_long(xdrs, &(cap->prog)) && 128 xdr_u_long(xdrs, &(cap->vers)) && 129 xdr_u_long(xdrs, &(cap->proc))) { 131 if (! xdr_u_long(xdrs, &(cap->arglen))) 134 if (! (*(cap->xdr_args))(xdrs, cap->args_ptr)) 137 cap->arglen = (u_long)position - (u_long)argposition; 139 if (! xdr_u_long(xdrs, &(cap [all...] |
/freebsd-11-stable/usr.bin/tput/ |
H A D | tput.c | 133 process(const char *cap, char *str, char **argv) argument 172 warnx(erresc, *cp, cap); 184 errx(2, errfew, 1, cap); 191 errx(2, errfew, 2, cap); 195 errx(2, errfew, 2, cap); 202 errx(2, errmany, arg_need, cap);
|
/freebsd-11-stable/contrib/ofed/librdmacm/examples/ |
H A D | rdma_server.c | 65 init_attr.cap.max_send_wr = init_attr.cap.max_recv_wr = 1; 66 init_attr.cap.max_send_sge = init_attr.cap.max_recv_sge = 1; 67 init_attr.cap.max_inline_data = 16; 95 if (init_attr.cap.max_inline_data >= 16)
|
H A D | rdma_client.c | 64 attr.cap.max_send_wr = attr.cap.max_recv_wr = 1; 65 attr.cap.max_send_sge = attr.cap.max_recv_sge = 1; 66 attr.cap.max_inline_data = 16; 71 if (attr.cap.max_inline_data >= 16)
|
H A D | rdma_xclient.c | 90 attr.cap.max_send_wr = attr.cap.max_recv_wr = 1; 91 attr.cap.max_send_sge = attr.cap.max_recv_sge = 1;
|
H A D | rdma_xserver.c | 87 attr.cap.max_send_wr = attr.cap.max_recv_wr = 1; 88 attr.cap.max_send_sge = attr.cap.max_recv_sge = 1;
|
/freebsd-11-stable/sys/amd64/vmm/io/ |
H A D | vhpet.h | 42 int vhpet_getcap(struct vm_hpet_cap *cap);
|
/freebsd-11-stable/lib/libutil/ |
H A D | login_cap.c | 360 login_getcapstr(login_cap_t *lc, const char *cap, const char *def, const char *error) argument 365 if (lc == NULL || cap == NULL || lc->lc_cap == NULL || *cap == '\0') 368 if ((ret = cgetstr(lc->lc_cap, cap, &res)) == -1) 382 login_getcaplist(login_cap_t *lc, const char *cap, const char *chars) argument 388 if ((lstring = login_getcapstr(lc, cap, NULL, NULL)) != NULL) 396 * From the login_cap_t <lc>, get the capability <cap> which is 403 login_getpath(login_cap_t *lc, const char *cap, const char *error) argument 409 str = login_getcapstr(lc, cap, NULL, NULL); 528 * From the login_cap_t <lc>, get the capability <cap>, whic 535 login_getcaptime(login_cap_t *lc, const char *cap, rlim_t def, rlim_t error) argument 626 login_getcapnum(login_cap_t *lc, const char *cap, rlim_t def, rlim_t error) argument 678 login_getcapsize(login_cap_t *lc, const char *cap, rlim_t def, rlim_t error) argument 751 login_getcapbool(login_cap_t *lc, const char *cap, int def) argument [all...] |
/freebsd-11-stable/usr.bin/setchannel/ |
H A D | setchannel.c | 101 struct bktr_capture_area cap; local 245 memset(&cap, 0, sizeof(cap)); 246 cap.x_size = x_size; 247 cap.y_size = y_size; 248 if (ioctl(tfd, BT848_SCAPAREA, &cap) < 0) {
|
/freebsd-11-stable/tools/regression/security/cap_test/ |
H A D | cap_test_fcntl.c | 82 { "file cap", cap_new(files[0].f_fd, rights) }, 83 { "socket cap", cap_new(files[1].f_fd, rights) }, 84 { "SHM cap", cap_new(files[2].f_fd, rights) }, 105 int cap; local 108 REQUIRE(cap = cap_new(f.f_fd, CAP_READ)); 112 CHECK_NOTCAPABLE(fcntl, cap, F_GETFL, 0);
|
/freebsd-11-stable/sys/dev/acpica/ |
H A D | acpi_battery.c | 106 bst->cap != ACPI_BATT_UNKNOWN && bst->volt != ACPI_BATT_UNKNOWN); 205 bst[i].cap = (bst[i].cap * bix->dvol) / 1000; 222 if (bst[i].cap > bix->lfcap) 223 bst[i].cap = bix->lfcap; 226 bi[i].cap = (100 * bst[i].cap) / bix->lfcap; 229 if (bi[i].cap != -1) { 230 total_cap += bst[i].cap; 262 bi[i].min = (60 * bst[i].cap) / valid_rat [all...] |
/freebsd-11-stable/sbin/camcontrol/ |
H A D | persist.c | 240 persist_print_cap(struct scsi_per_res_cap *cap, uint32_t valid_len) argument 246 length = scsi_2btoul(cap->length); 248 type_mask = scsi_2btoul(cap->type_mask); 259 (cap->flags1 & SPRI_RLR_C) ? 1 : 0); 261 (cap->flags1 & SPRI_CRH) ? 1 : 0); 263 (cap->flags1 & SPRI_SIP_C) ? 1 : 0); 265 (cap->flags1 & SPRI_ATP_C) ? 1 : 0); 267 (cap->flags1 & SPRI_PTPL_C) ? 1 : 0); 269 (cap->flags2 & SPRI_ALLOW_CMD_MASK) >> SPRI_ALLOW_CMD_SHIFT); 276 switch (cap 910 struct scsi_per_res_cap *cap; local [all...] |
/freebsd-11-stable/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_gsi.c | 41 struct ib_qp_cap cap; member in struct:mlx5_ib_gsi_qp 76 wr = &gsi->outstanding_wrs[index % gsi->cap.max_send_wr]; 140 gsi->outstanding_wrs = kcalloc(init_attr->cap.max_send_wr, 161 gsi->cap = init_attr->cap; 166 gsi->cq = ib_alloc_cq(pd->device, gsi, init_attr->cap.max_send_wr, 0, 178 hw_init_attr.cap.max_send_wr = 0; 179 hw_init_attr.cap.max_send_sge = 0; 180 hw_init_attr.cap.max_inline_data = 0; 254 .cap [all...] |
/freebsd-11-stable/contrib/ncurses/ncurses/tinfo/ |
H A D | MKcaptab.sh | 56 make_hash 3 cap $OPT1 <$DATA 132 return termcap ? build_names(cap) : build_names(info) ; 143 return termcap ? build_alias(cap) : build_alias(info) ;
|