Searched refs:cap (Results 1 - 25 of 150) sorted by relevance

123456

/freebsd-10.0-release/sys/amd64/vmm/intel/
H A Dept.c49 #define EPT_SUPPORTS_EXEC_ONLY(cap) ((cap) & (1UL << 0))
50 #define EPT_PWL4(cap) ((cap) & (1UL << 6))
51 #define EPT_MEMORY_TYPE_WB(cap) ((cap) & (1UL << 14))
52 #define EPT_PDE_SUPERPAGE(cap) ((cap) & (1UL << 16)) /* 2MB pages */
53 #define EPT_PDPTE_SUPERPAGE(cap) ((cap)
82 uint64_t cap; local
[all...]
H A Dvtd.c57 volatile uint64_t cap; member in struct:vtdmap
65 #define VTD_CAP_SAGAW(cap) (((cap) >> 8) & 0x1F)
66 #define VTD_CAP_ND(cap) ((cap) & 0x7)
67 #define VTD_CAP_CM(cap) (((cap) >> 7) & 0x1)
68 #define VTD_CAP_SPS(cap) (((cap) >> 34) & 0xF)
69 #define VTD_CAP_RWBF(cap) (((ca
[all...]
/freebsd-10.0-release/sys/opencrypto/
H A Dcrypto.c177 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.0-release/usr.sbin/pciconf/
H A DMakefile5 SRCS= pciconf.c cap.c err.c
H A Dcap.c53 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.0-release/contrib/wpa/src/ap/
H A Dieee802_11_vht.c25 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 Dieee802_11_ht.c30 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.0-release/crypto/openssl/crypto/pkcs7/
H A Dpk7_attr.c69 int PKCS7_add_attrib_smimecap(PKCS7_SIGNER_INFO *si, STACK_OF(X509_ALGOR) *cap) argument
76 seq->length = ASN1_item_i2d((ASN1_VALUE *)cap,&seq->data,
84 ASN1_TYPE *cap; local
87 cap = PKCS7_get_signed_attribute(si, NID_SMIMECapabilities);
88 if (!cap || (cap->type != V_ASN1_SEQUENCE))
90 p = cap->value.sequence->data;
92 ASN1_item_d2i(NULL, &p, cap->value.sequence->length,
/freebsd-10.0-release/lib/libc/rpc/
H A Dpmap_rmt.c126 xdr_rmtcall_args(xdrs, cap)
128 struct rmtcallargs *cap;
133 assert(cap != NULL);
135 if (xdr_u_long(xdrs, &(cap->prog)) &&
136 xdr_u_long(xdrs, &(cap->vers)) &&
137 xdr_u_long(xdrs, &(cap->proc))) {
139 if (! xdr_u_long(xdrs, &(cap->arglen)))
142 if (! (*(cap->xdr_args))(xdrs, cap->args_ptr))
145 cap
[all...]
/freebsd-10.0-release/usr.bin/tput/
H A Dtput.c133 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.0-release/lib/libutil/
H A Dlogin_cap.c360 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.0-release/contrib/tcpdump/
H A Dieee802_11.h141 #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.0-release/usr.bin/setchannel/
H A Dsetchannel.c99 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.0-release/tools/regression/security/cap_test/
H A Dcap_test_fcntl.c82 { "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.0-release/contrib/ofed/libmlx4/src/
H A Dverbs.c410 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...]
H A Dqp.c532 void mlx4_calc_sq_wqe_size(struct ibv_qp_cap *cap, enum ibv_qp_type type, argument
538 max_sq_sge = align(cap->max_inline_data +
539 num_inline_segs(cap->max_inline_data, type) *
543 if (max_sq_sge < cap->max_send_sge)
544 max_sq_sge = cap->max_send_sge;
586 int mlx4_alloc_qp_buf(struct ibv_pd *pd, struct ibv_qp_cap *cap, argument
589 qp->rq.max_gs = cap->max_recv_sge;
631 void mlx4_set_sq_sizes(struct mlx4_qp *qp, struct ibv_qp_cap *cap, argument
655 cap->max_send_sge = min(ctx->max_sge, qp->sq.max_gs);
658 cap
[all...]
/freebsd-10.0-release/sys/dev/acpica/
H A Dacpi_battery.c107 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 Dacpiio.h45 int cap; /* percent */ member in struct:acpi_battinfo
73 uint32_t cap; /* Remaining Capacity */ member in struct:acpi_bst
/freebsd-10.0-release/contrib/ncurses/ncurses/tinfo/
H A DMKcaptab.sh49 ./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.0-release/crypto/heimdal/lib/roken/
H A Dgetcap.c87 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.0-release/contrib/ncurses/ncurses/tty/
H A Dlib_mvcur.c172 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.0-release/contrib/ofed/libibverbs/src/
H A Dmarshall.c70 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.0-release/sys/ofed/drivers/infiniband/core/
H A Duverbs_marshall.c64 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;
/freebsd-10.0-release/cddl/contrib/opensolaris/cmd/sgs/messages/
H A Dsgs.ident54 MSG_ID_ELFEDIT_CAP 27 SUNW_OST_SGS /* cap: */
/freebsd-10.0-release/lib/libc/gen/
H A Dgetcap.c98 * Cgetcap searches the capability record buf for the capability cap with
99 * type `type'. A pointer to the value of cap is returned on success, NULL
102 * Specifying a type of ':' means that nothing should follow cap (:cap:).
104 * cap is found.
106 * If (cap, '@') or (cap, terminator, '@') is found before (cap, terminator)
110 cgetcap(char *buf, const char *cap, int type) argument
120 * the remainder of a field whose name failed to match cap
187 getent(char **cap, u_int *len, char **db_array, int fd, const char *name, int depth, char *nfield) argument
784 cgetstr(char *buf, const char *cap, char **str) argument
911 cgetustr(char *buf, const char *cap, char **str) argument
979 cgetnum(char *buf, const char *cap, long *num) argument
[all...]

Completed in 310 milliseconds

123456