/freebsd-10.1-release/sys/amd64/vmm/intel/ |
H A D | ept.c | 50 #define EPT_SUPPORTS_EXEC_ONLY(cap) ((cap) & (1UL << 0)) 51 #define EPT_PWL4(cap) ((cap) & (1UL << 6)) 52 #define EPT_MEMORY_TYPE_WB(cap) ((cap) & (1UL << 14)) 53 #define EPT_PDE_SUPERPAGE(cap) ((cap) & (1UL << 16)) /* 2MB pages */ 54 #define EPT_PDPTE_SUPERPAGE(cap) ((cap) 83 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-10.1-release/sys/opencrypto/ |
H A D | crypto.c | 177 static int crypto_invoke(struct cryptocap *cap, struct cryptop *crp, int hint); 314 driver_suitable(const struct cryptocap *cap, const struct cryptoini *cri) argument 320 if (cap->cc_alg[cr->cri_alg] == 0) 339 struct cryptocap *cap, *best; local 354 cap = &crypto_drivers[hid]; 360 if (cap->cc_dev == NULL || 361 (cap->cc_flags & CRYPTOCAP_F_CLEANUP) || 362 (cap->cc_flags & match) == 0) 366 if (driver_suitable(cap, cri)) { 368 cap 391 struct cryptocap *cap; local 433 crypto_remove(struct cryptocap *cap) argument 448 struct cryptocap *cap; local 578 struct cryptocap *cap = crypto_checkdriver(hid); local 588 struct cryptocap *cap = crypto_checkdriver(hid); local 599 struct cryptocap *cap; local 636 struct cryptocap *cap; local 670 driver_finis(struct cryptocap *cap) argument 699 struct cryptocap *cap; local 735 struct cryptocap *cap; local 757 struct cryptocap *cap; local 783 struct cryptocap *cap; local 850 kdriver_suitable(const struct cryptocap *cap, const struct cryptkop *krp) argument 868 struct cryptocap *cap, *best, *blocked; local 918 struct cryptocap *cap = NULL; local 1005 crypto_invoke(struct cryptocap *cap, struct cryptop *crp, int hint) argument 1175 struct cryptocap *cap; local 1203 const struct cryptocap *cap = &crypto_drivers[hid]; local 1244 struct cryptocap *cap; local 1465 const struct cryptocap *cap = &crypto_drivers[hid]; local [all...] |
/freebsd-10.1-release/usr.sbin/pciconf/ |
H A D | Makefile | 5 SRCS= pciconf.c cap.c err.c
|
H A D | cap.c | 53 uint16_t cap, status; local 55 cap = read_config(fd, &p->pc_sel, ptr + PCIR_POWER_CAP, 2); 58 cap & PCIM_PCAP_SPEC, 59 cap & PCIM_PCAP_D1SUPP ? " D1" : "", 60 cap & PCIM_PCAP_D2SUPP ? " D2" : "", 310 printf(" Intel cap %d version %d", version >> 4, version & 0xf); 413 uint32_t cap; local 454 cap = read_config(fd, &p->pc_sel, ptr + PCIER_DEVICE_CAP, 4); 458 MAX_PAYLOAD(cap & PCIEM_CAP_MAX_PAYLOAD)); 459 if ((cap 516 uint8_t cap; local 529 uint8_t ptr, cap; local 763 uint8_t ptr, cap; local [all...] |
/freebsd-10.1-release/contrib/wpa/src/ap/ |
H A D | ieee802_11_vht.c | 25 struct ieee80211_vht_capabilities *cap; local 33 *pos++ = sizeof(*cap); 35 cap = (struct ieee80211_vht_capabilities *) pos; 36 os_memset(cap, 0, sizeof(*cap)); 37 cap->vht_capabilities_info = host_to_le32( 41 os_memcpy(cap->vht_supported_mcs_set, 44 pos += sizeof(*cap);
|
H A D | ieee802_11_ht.c | 30 struct ieee80211_ht_capabilities *cap; local 38 *pos++ = sizeof(*cap); 40 cap = (struct ieee80211_ht_capabilities *) pos; 41 os_memset(cap, 0, sizeof(*cap)); 42 cap->ht_capabilities_info = host_to_le16(hapd->iconf->ht_capab); 43 cap->a_mpdu_params = hapd->iface->current_mode->a_mpdu_params; 44 os_memcpy(cap->supported_mcs_set, hapd->iface->current_mode->mcs_set, 51 pos += sizeof(*cap); 247 u16 cap; local [all...] |
/freebsd-10.1-release/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-10.1-release/lib/libc/rpc/ |
H A D | pmap_rmt.c | 125 xdr_rmtcall_args(xdrs, cap) 127 struct rmtcallargs *cap; 132 assert(cap != NULL); 134 if (xdr_u_long(xdrs, &(cap->prog)) && 135 xdr_u_long(xdrs, &(cap->vers)) && 136 xdr_u_long(xdrs, &(cap->proc))) { 138 if (! xdr_u_long(xdrs, &(cap->arglen))) 141 if (! (*(cap->xdr_args))(xdrs, cap->args_ptr)) 144 cap [all...] |
/freebsd-10.1-release/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-10.1-release/sys/amd64/vmm/io/ |
H A D | vhpet.h | 42 int vhpet_getcap(struct vm_hpet_cap *cap);
|
/freebsd-10.1-release/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-10.1-release/sbin/camcontrol/ |
H A D | persist.c | 240 persist_print_cap(struct scsi_per_res_cap *cap, uint32_t valid_len) argument 245 length = scsi_2btoul(cap->length); 257 (cap->flags1 & SPRI_RLR_C) ? 1 : 0); 259 (cap->flags1 & SPRI_CRH) ? 1 : 0); 261 (cap->flags1 & SPRI_SIP_C) ? 1 : 0); 263 (cap->flags1 & SPRI_ATP_C) ? 1 : 0); 265 (cap->flags1 & SPRI_PTPL_C) ? 1 : 0); 267 (cap->flags2 & SPRI_ALLOW_CMD_MASK) >> SPRI_ALLOW_CMD_SHIFT); 274 switch (cap->flags2 & SPRI_ALLOW_CMD_MASK) { 337 (cap 916 struct scsi_per_res_cap *cap; local [all...] |
/freebsd-10.1-release/contrib/tcpdump/ |
H A D | ieee802_11.h | 141 #define CAPABILITY_ESS(cap) ((cap) & 0x0001) 142 #define CAPABILITY_IBSS(cap) ((cap) & 0x0002) 143 #define CAPABILITY_CFP(cap) ((cap) & 0x0004) 144 #define CAPABILITY_CFP_REQ(cap) ((cap) & 0x0008) 145 #define CAPABILITY_PRIVACY(cap) ((cap) [all...] |
/freebsd-10.1-release/usr.bin/setchannel/ |
H A D | setchannel.c | 99 struct bktr_capture_area cap; local 243 memset(&cap, 0, sizeof(cap)); 244 cap.x_size = x_size; 245 cap.y_size = y_size; 246 if (ioctl(tfd, BT848_SCAPAREA, &cap) < 0) {
|
/freebsd-10.1-release/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-10.1-release/contrib/ofed/libmlx4/src/ |
H A D | verbs.c | 410 if (attr->cap.max_send_wr > context->max_qp_wr || 411 attr->cap.max_recv_wr > context->max_qp_wr || 412 attr->cap.max_send_sge > context->max_sge || 413 attr->cap.max_recv_sge > context->max_sge) 416 if (attr->cap.max_inline_data) { 417 nsegs = num_inline_segs(attr->cap.max_inline_data, attr->qp_type); 436 if (attr->cap.max_inline_data > size) 460 mlx4_calc_sq_wqe_size(&attr->cap, attr->qp_type, qp); 467 qp->sq.wqe_cnt = align_queue_size(attr->cap.max_send_wr + qp->sq_spare_wqes); 468 qp->rq.wqe_cnt = align_queue_size(attr->cap [all...] |
/freebsd-10.1-release/sys/dev/acpica/ |
H A D | acpi_battery.c | 107 bst->cap != ACPI_BATT_UNKNOWN && bst->volt != ACPI_BATT_UNKNOWN); 204 bst[i].cap = (bst[i].cap * bif->dvol) / 1000; 217 bi[i].cap = (100 * bst[i].cap) / bif->lfcap; 224 if (bi[i].cap > 100) 225 bi[i].cap = 100; 255 bi[i].min = (60 * bst[i].cap) / valid_rate; 261 if (bi[i].cap != -1) 262 total_cap += bi[i].cap; [all...] |
H A D | acpiio.h | 45 int cap; /* percent */ member in struct:acpi_battinfo 73 uint32_t cap; /* Remaining Capacity */ member in struct:acpi_bst
|
/freebsd-10.1-release/contrib/ncurses/ncurses/tinfo/ |
H A D | MKcaptab.sh | 49 ./make_hash 3 cap $OPT1 <$DATA 125 return termcap ? build_names(cap) : build_names(info) ; 135 return termcap ? build_alias(cap) : build_alias(info) ;
|
/freebsd-10.1-release/crypto/heimdal/lib/roken/ |
H A D | getcap.c | 87 ROKEN_LIB_FUNCTION char * ROKEN_LIB_CALL cgetcap(char *buf, const char *cap, int type); 95 ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL cgetstr(char *buf, const char *cap, char **str); 96 ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL cgetustr(char *buf, const char *cap, char **str); 97 ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL cgetnum(char *buf, const char *cap, long *num); 145 * Cgetcap searches the capability record buf for the capability cap with 146 * type `type'. A pointer to the value of cap is returned on success, NULL 149 * Specifying a type of ':' means that nothing should follow cap (:cap:). 151 * cap is found. 153 * If (cap, ' 157 cgetcap(char *buf, const char *cap, int type) argument 234 getent(char **cap, size_t *len, char **db_array, int fd, const char *name, int depth, char *nfield) argument 851 cgetstr(char *buf, const char *cap, char **str) argument 984 cgetustr(char *buf, const char *cap, char **str) argument 1053 cgetnum(char *buf, const char *cap, long *num) argument [all...] |
/freebsd-10.1-release/contrib/ncurses/ncurses/tty/ |
H A D | lib_mvcur.c | 172 static int normalized_cost(const char *const cap, int affcnt); 182 trace_cost_of(const char *capname, const char *cap, int affcnt) argument 184 int result = _nc_msec_cost(cap, affcnt); 186 ("CostOf %s %d %s", capname, result, _nc_visbuf(cap))); 189 #define CostOf(cap,affcnt) trace_cost_of(#cap,cap,affcnt); 192 trace_normalized_cost(const char *capname, const char *cap, int affcnt) argument 194 int result = normalized_cost(cap, affcnt); 196 ("NormalizedCost %s %d %s", capname, result, _nc_visbuf(cap))); 209 _nc_msec_cost(const char *const cap, int affcnt) argument 245 normalized_cost(const char *const cap, int affcnt) argument [all...] |
/freebsd-10.1-release/sys/x86/iommu/ |
H A D | intel_utils.c | 84 int cap; member in struct:sagaw_bits_tag 88 {.agaw = 30, .cap = DMAR_CAP_SAGAW_2LVL, .awlvl = DMAR_CTX2_AW_2LVL, 90 {.agaw = 39, .cap = DMAR_CAP_SAGAW_3LVL, .awlvl = DMAR_CTX2_AW_3LVL, 92 {.agaw = 48, .cap = DMAR_CAP_SAGAW_4LVL, .awlvl = DMAR_CTX2_AW_4LVL, 94 {.agaw = 57, .cap = DMAR_CAP_SAGAW_5LVL, .awlvl = DMAR_CTX2_AW_5LVL, 96 {.agaw = 64, .cap = DMAR_CAP_SAGAW_6LVL, .awlvl = DMAR_CTX2_AW_6LVL, 109 if ((DMAR_CAP_SAGAW(unit->hw_cap) & sagaw_bits[i].cap) != 0) 151 (DMAR_CAP_SAGAW(unit->hw_cap) & sagaw_bits[i].cap) != 0) 157 } while ((DMAR_CAP_SAGAW(unit->hw_cap) & sagaw_bits[i].cap)
|
/freebsd-10.1-release/contrib/ofed/libibverbs/src/ |
H A D | marshall.c | 70 dst->cap.max_send_wr = src->max_send_wr; 71 dst->cap.max_recv_wr = src->max_recv_wr; 72 dst->cap.max_send_sge = src->max_send_sge; 73 dst->cap.max_recv_sge = src->max_recv_sge; 74 dst->cap.max_inline_data = src->max_inline_data;
|
/freebsd-10.1-release/sys/ofed/drivers/infiniband/core/ |
H A D | uverbs_marshall.c | 64 dst->max_send_wr = src->cap.max_send_wr; 65 dst->max_recv_wr = src->cap.max_recv_wr; 66 dst->max_send_sge = src->cap.max_send_sge; 67 dst->max_recv_sge = src->cap.max_recv_sge; 68 dst->max_inline_data = src->cap.max_inline_data;
|