Home
last modified time | relevance | path

Searched refs:cap (Results 1 – 25 of 615) sorted by relevance

12345678910>>...25

/netbsd-src/sys/opencrypto/
H A Dcrypto.c620 struct cryptocap *cap = NULL; in crypto_destroy() local
634 cap = crypto_checkdriver(i); in crypto_destroy()
635 if (cap == NULL) in crypto_destroy()
637 if (cap->cc_sessions != 0) { in crypto_destroy()
685 crypto_driver_suitable(struct cryptocap *cap, struct cryptoini *cri) in crypto_driver_suitable() argument
690 if (cap->cc_alg[cr->cri_alg] == 0) { in crypto_driver_suitable()
715 struct cryptocap *cap, *best; in crypto_select_driver_lock() local
730 cap = crypto_checkdriver(hid); in crypto_select_driver_lock()
731 if (cap == NULL) in crypto_select_driver_lock()
734 crypto_driver_lock(cap); in crypto_select_driver_lock()
[all …]
/netbsd-src/lib/libterminfo/
H A Dcompile.c72 const char *cap, *code, *str; in _ti_promote() local
111 cap = obuf; in _ti_promote()
116 ind = _ti_decode_16(&cap); in _ti_promote()
117 num = _ti_decode_num(&cap, ortype); in _ti_promote()
130 cap = obuf; in _ti_promote()
135 num = _ti_decode_16(&cap); in _ti_promote()
139 code = cap; in _ti_promote()
140 cap += num; in _ti_promote()
141 type = *cap++; in _ti_promote()
144 flag = *cap++; in _ti_promote()
[all …]
H A Dterm.c79 _ti_readterm(TERMINAL *term, const char *cap, size_t caplen, int flags) in _ti_readterm() argument
88 rtype = *cap++; in _ti_readterm()
109 memcpy(term->_area, cap, term->_arealen); in _ti_readterm()
111 cap = term->_area; in _ti_readterm()
112 len = _ti_decode_16(&cap); in _ti_readterm()
113 term->name = cap; in _ti_readterm()
114 cap += len; in _ti_readterm()
115 len = _ti_decode_16(&cap); in _ti_readterm()
119 term->_alias = cap; in _ti_readterm()
120 cap += len; in _ti_readterm()
[all …]
H A Dterm_private.h195 _ti_decode_16(const char **cap) in _ti_decode_16() argument
197 int num = (int16_t)le16dec(*cap); in _ti_decode_16()
199 *cap += sizeof(uint16_t); in _ti_decode_16()
204 _ti_decode_32(const char **cap) in _ti_decode_32() argument
206 int num = (int32_t)le32dec(*cap); in _ti_decode_32()
208 *cap += sizeof(uint32_t); in _ti_decode_32()
213 _ti_decode_num(const char **cap, int rtype) in _ti_decode_num() argument
216 return _ti_decode_16(cap); in _ti_decode_num()
218 return _ti_decode_32(cap); in _ti_decode_num()
223 _ti_encode_16(char **cap, size_t num) in _ti_encode_16() argument
[all …]
/netbsd-src/usr.bin/tic/
H A Dtic.c108 char *cap; in save_term() local
111 cap = (char *)buf; in save_term()
112 *cap++ = TERMINFO_ALIAS; in save_term()
113 _ti_encode_32(&cap, term->base_term->id); in save_term()
114 _ti_encode_count_str(&cap, term->name, slen); in save_term()
250 const char *cap, *code, *str; in merge() local
259 cap = utic->flags.buf; in merge()
261 ind = _ti_decode_16(&cap); in merge()
262 flag = *cap++; in merge()
271 cap = utic->nums.buf; in merge()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Ddiagnostic-color.c107 struct color_cap const *cap; in colorize_start() local
112 for (cap = color_dict; cap->name; cap++) in colorize_start()
113 if (cap->name_len == name_len in colorize_start()
114 && memcmp (cap->name, name, name_len) == 0) in colorize_start()
116 if (cap->name == NULL) in colorize_start()
119 return cap->val; in colorize_start()
154 struct color_cap *cap; in parse_gcc_colors() local
162 for (cap = color_dict; cap->name; cap++) in parse_gcc_colors()
163 if (cap->name_len == name_len in parse_gcc_colors()
164 && memcmp (cap->name, name, name_len) == 0) in parse_gcc_colors()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Ddiagnostic-color.cc107 struct color_cap const *cap; in colorize_start() local
112 for (cap = color_dict; cap->name; cap++) in colorize_start()
113 if (cap->name_len == name_len in colorize_start()
114 && memcmp (cap->name, name, name_len) == 0) in colorize_start()
116 if (cap->name == NULL) in colorize_start()
119 return cap->val; in colorize_start()
154 struct color_cap *cap; in parse_gcc_colors() local
162 for (cap = color_dict; cap->name; cap++) in parse_gcc_colors()
163 if (cap->name_len == name_len in parse_gcc_colors()
164 && memcmp (cap->name, name, name_len) == 0) in parse_gcc_colors()
[all …]
/netbsd-src/usr.bin/make/
H A Dbuf.c84 buf->cap += buf->cap > 16 ? buf->cap : 16; in Buf_Expand()
85 buf->data = bmake_realloc(buf->data, buf->cap); in Buf_Expand()
95 if (old_len + bytes_len >= buf->cap) { in Buf_AddBytes()
97 buf->cap += buf->cap > minIncr ? buf->cap : minIncr; in Buf_AddBytes()
98 buf->data = bmake_realloc(buf->data, buf->cap); in Buf_AddBytes()
143 Buf_InitSize(Buffer *buf, size_t cap) in Buf_InitSize() argument
145 buf->cap = cap; in Buf_InitSize()
147 buf->data = bmake_malloc(cap); in Buf_InitSize()
167 buf->cap = 0; in Buf_Done()
183 buf->cap = 0; in Buf_DoneData()
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/
H A Ds390xcap.c39 if (sscanf(tok[0] + off, "%llx", &cap->NAME[0]) != 1) \
42 cap->NAME[0] = ~cap->NAME[0]; \
45 if (sscanf(tok[1] + off, "%llx", &cap->NAME[1]) != 1) \
48 cap->NAME[1] = ~cap->NAME[1]; \
56 memcpy(cap, &NAME, sizeof(*cap)); \
70 static int parse_env(struct OPENSSL_s390xcap_st *cap);
82 struct OPENSSL_s390xcap_st cap; in OPENSSL_cpuid_setup() local
143 if (!parse_env(&cap)) in OPENSSL_cpuid_setup()
148 OPENSSL_s390xcap_P.stfle[0] &= cap.stfle[0]; in OPENSSL_cpuid_setup()
149 OPENSSL_s390xcap_P.stfle[1] &= cap.stfle[1]; in OPENSSL_cpuid_setup()
[all …]
/netbsd-src/lib/libcurses/
H A Dtscroll.c50 __tscroll(const char *cap, int n1, int n2) in __tscroll() argument
53 return __parse_cap(cap, n1, n2); in __tscroll()
82 __parse_cap (char const *cap, ...) in __parse_cap() argument
90 va_start (ap, cap); in __parse_cap()
93 if (cap == NULL) in __parse_cap()
100 for (i = 0; i < strlen(cap); i++) in __parse_cap()
101 __CTRACE(__CTRACE_MISC, "%s", unctrl(cap[i])); in __parse_cap()
106 for (dp = result; (c = *cap++) != '\0';) { in __parse_cap()
111 switch (c = *cap++) { in __parse_cap()
161 if (n > *cap++) in __parse_cap()
[all …]
/netbsd-src/usr.sbin/nvmmctl/
H A Dnvmmctl.c68 static struct nvmm_capability cap; variable
120 if (nvmm_capability(&cap) == -1) in nvmm_identify()
123 printf("nvmm: Kernel API version %u\n", cap.version); in nvmm_identify()
124 printf("nvmm: State size %u\n", cap.state_size); in nvmm_identify()
125 printf("nvmm: Max machines %u\n", cap.max_machines); in nvmm_identify()
126 printf("nvmm: Max VCPUs per machine %u\n", cap.max_vcpus); in nvmm_identify()
128 if (humanize_number(ram, sizeof(ram), cap.max_ram, NULL, HN_AUTOSCALE, in nvmm_identify()
133 snprintb(buf, sizeof(buf), MACH_CONF_FLAGS, cap.arch.mach_conf_support); in nvmm_identify()
136 snprintb(buf, sizeof(buf), VCPU_CONF_FLAGS, cap.arch.vcpu_conf_support); in nvmm_identify()
139 snprintb(buf, sizeof(buf), XCR0_FLAGS1, cap.arch.xcr0_mask); in nvmm_identify()
[all …]
/netbsd-src/external/gpl3/gdb.old/dist/sim/ppc/
H A Dcap.h29 typedef struct _cap cap; typedef
32 (cap *) cap_create
37 (cap *db);
41 (cap *db,
46 (cap *db,
51 (cap *db,
56 (cap *db,
/netbsd-src/external/gpl3/gdb/dist/sim/ppc/
H A Dcap.h29 typedef struct _cap cap; typedef
32 (cap *) cap_create
37 (cap *db);
41 (cap *db,
46 (cap *db,
51 (cap *db,
56 (cap *db,
H A Dcap.c39 (cap *)
42 return ZALLOC(cap); in cap_create()
47 cap_init(cap *db) in cap_init()
70 cap_internal(cap *db, in cap_internal()
84 cap_external(cap *db, in cap_external()
98 cap_add(cap *db, in cap_add()
117 cap_remove(cap *db, in cap_remove()
/netbsd-src/lib/libc/rpc/
H A Dpmap_rmt.c131 xdr_rmtcall_args(XDR *xdrs, struct rmtcallargs *cap) in xdr_rmtcall_args() argument
136 _DIAGASSERT(cap != NULL); in xdr_rmtcall_args()
138 if (xdr_u_long(xdrs, &(cap->prog)) && in xdr_rmtcall_args()
139 xdr_u_long(xdrs, &(cap->vers)) && in xdr_rmtcall_args()
140 xdr_u_long(xdrs, &(cap->proc))) { in xdr_rmtcall_args()
142 if (! xdr_u_long(xdrs, &(cap->arglen))) in xdr_rmtcall_args()
145 if (! (*(cap->xdr_args))(xdrs, cap->args_ptr)) in xdr_rmtcall_args()
148 cap->arglen = (u_long)position - (u_long)argposition; in xdr_rmtcall_args()
150 if (! xdr_u_long(xdrs, &(cap->arglen))) in xdr_rmtcall_args()
/netbsd-src/external/mit/libuv/dist/src/unix/
H A Dproctitle.c30 size_t cap; /* Maximum capacity. Computed once in uv_setup_args(). */ member
58 pt.cap = pt.len + 1; in uv_setup_args()
61 size = pt.cap; in uv_setup_args()
75 size = pt.cap; in uv_setup_args()
87 pt.cap = argv[i - 1] + size - argv[0]; in uv_setup_args()
110 if (len >= pt->cap) { in uv_set_process_title()
112 if (pt->cap > 0) in uv_set_process_title()
113 len = pt->cap - 1; in uv_set_process_title()
117 memset(pt->str + len, '\0', pt->cap - len); in uv_set_process_title()
/netbsd-src/sys/dev/acpi/
H A Dacpi_apm.c150 int newstate, error, *ref, cap, oldcap; in sysctl_state() local
155 cap = APM_GLOBAL_STANDBY; in sysctl_state()
158 cap = APM_GLOBAL_SUSPEND; in sysctl_state()
173 capabilities = newstate != 0 ? oldcap | cap : oldcap & ~cap; in sysctl_state()
264 int lastcap, descap, cap, warncap, lowcap, discharge; member
308 info->cap += data / 1000; in apm_per_sensor()
341 info.cap = info.lastcap = info.discharge = 0; in acpiapm_get_powstat()
363 if (info.warncap != -1 && info.cap < info.warncap) in acpiapm_get_powstat()
366 if (info.cap < info.lowcap) in acpiapm_get_powstat()
372 pinfo->battery_life = 100 * info.cap / info.lastcap; in acpiapm_get_powstat()
[all …]
/netbsd-src/sys/arch/sparc/sparc/
H A Dtimer_sun4m.c109 hardclock_ipi(void *cap) in hardclock_ipi() argument
113 hardclock((struct clockframe *)cap); in hardclock_ipi()
122 handle_hardclock(struct clockframe *cap) in handle_hardclock() argument
139 hardclock(cap); in handle_hardclock()
147 clockintr_4m(void *cap) in clockintr_4m() argument
177 handle_hardclock(cap); in clockintr_4m()
187 statintr_4m(void *cap) in statintr_4m() argument
189 struct clockframe *frame = cap; in statintr_4m()
219 schedintr(cap); in statintr_4m()
/netbsd-src/lib/libutil/
H A Dlogin_cap.c154 login_getcapstr(login_cap_t *lc, const char *cap, char *def, char *e) in login_getcapstr() argument
161 _DIAGASSERT(cap != NULL); in login_getcapstr()
166 switch (status = cgetstr(lc->lc_cap, cap, &res)) { in login_getcapstr()
173 lc->lc_class, cap); in login_getcapstr()
181 lc->lc_class, cap); in login_getcapstr()
189 login_getcaptime(login_cap_t *lc, const char *cap, quad_t def, quad_t e) in login_getcaptime() argument
196 _DIAGASSERT(cap != NULL); in login_getcaptime()
202 switch (status = cgetstr(lc->lc_cap, cap, &res)) { in login_getcaptime()
209 lc->lc_class, cap); in login_getcaptime()
218 lc->lc_class, cap); in login_getcaptime()
[all …]
/netbsd-src/sys/dev/sdmmc/
H A Dsdhcreg.h256 #define SDHC_BASE_V3_FREQ_KHZ(cap) \ argument
257 ((((cap) >> SDHC_BASE_FREQ_SHIFT) & SDHC_BASE_V3_FREQ_MASK) * 1000)
258 #define SDHC_BASE_FREQ_KHZ(cap) \ argument
259 ((((cap) >> SDHC_BASE_FREQ_SHIFT) & SDHC_BASE_FREQ_MASK) * 1000)
260 #define SDHC_TIMEOUT_FREQ(cap) \ argument
261 (((cap) >> SDHC_TIMEOUT_FREQ_SHIFT) & SDHC_TIMEOUT_FREQ_MASK)
262 #define SDHC_TIMEOUT_FREQ_KHZ(cap) \ argument
263 (((cap) & SDHC_TIMEOUT_FREQ_UNIT) ? \
264 SDHC_TIMEOUT_FREQ(cap) * 1000: \
265 SDHC_TIMEOUT_FREQ(cap))
/netbsd-src/sys/dev/pci/qat/
H A Dqat_c3xxx.c120 uint32_t cap; in qat_c3xxx_get_accel_cap() local
126 cap = QAT_ACCEL_CAP_CRYPTO_SYMMETRIC + in qat_c3xxx_get_accel_cap()
135 cap &= ~QAT_ACCEL_CAP_CRYPTO_SYMMETRIC; in qat_c3xxx_get_accel_cap()
136 cap &= ~QAT_ACCEL_CAP_CIPHER; in qat_c3xxx_get_accel_cap()
139 cap &= ~QAT_ACCEL_CAP_AUTHENTICATION; in qat_c3xxx_get_accel_cap()
141 cap &= ~QAT_ACCEL_CAP_CRYPTO_ASYMMETRIC; in qat_c3xxx_get_accel_cap()
143 cap &= ~QAT_ACCEL_CAP_COMPRESSION; in qat_c3xxx_get_accel_cap()
145 cap &= ~QAT_ACCEL_CAP_ZUC; in qat_c3xxx_get_accel_cap()
148 cap &= ~QAT_ACCEL_CAP_CRYPTO_ASYMMETRIC; in qat_c3xxx_get_accel_cap()
150 cap &= ~QAT_ACCEL_CAP_COMPRESSION; in qat_c3xxx_get_accel_cap()
[all …]
H A Dqat_c62x.c122 uint32_t cap; in qat_c62x_get_accel_cap() local
128 cap = QAT_ACCEL_CAP_CRYPTO_SYMMETRIC + in qat_c62x_get_accel_cap()
137 cap &= ~QAT_ACCEL_CAP_CRYPTO_SYMMETRIC; in qat_c62x_get_accel_cap()
138 cap &= ~QAT_ACCEL_CAP_CIPHER; in qat_c62x_get_accel_cap()
141 cap &= ~QAT_ACCEL_CAP_AUTHENTICATION; in qat_c62x_get_accel_cap()
143 cap &= ~QAT_ACCEL_CAP_CRYPTO_ASYMMETRIC; in qat_c62x_get_accel_cap()
145 cap &= ~QAT_ACCEL_CAP_COMPRESSION; in qat_c62x_get_accel_cap()
147 cap &= ~QAT_ACCEL_CAP_ZUC; in qat_c62x_get_accel_cap()
150 cap &= ~QAT_ACCEL_CAP_CRYPTO_ASYMMETRIC; in qat_c62x_get_accel_cap()
152 cap &= ~QAT_ACCEL_CAP_COMPRESSION; in qat_c62x_get_accel_cap()
[all …]
H A Dqat_d15xx.c122 uint32_t cap; in qat_d15xx_get_accel_cap() local
128 cap = QAT_ACCEL_CAP_CRYPTO_SYMMETRIC + in qat_d15xx_get_accel_cap()
137 cap &= ~QAT_ACCEL_CAP_CRYPTO_SYMMETRIC; in qat_d15xx_get_accel_cap()
138 cap &= ~QAT_ACCEL_CAP_CIPHER; in qat_d15xx_get_accel_cap()
141 cap &= ~QAT_ACCEL_CAP_AUTHENTICATION; in qat_d15xx_get_accel_cap()
143 cap &= ~QAT_ACCEL_CAP_CRYPTO_ASYMMETRIC; in qat_d15xx_get_accel_cap()
145 cap &= ~QAT_ACCEL_CAP_COMPRESSION; in qat_d15xx_get_accel_cap()
147 cap &= ~QAT_ACCEL_CAP_ZUC; in qat_d15xx_get_accel_cap()
150 cap &= ~QAT_ACCEL_CAP_CRYPTO_ASYMMETRIC; in qat_d15xx_get_accel_cap()
152 cap &= ~QAT_ACCEL_CAP_COMPRESSION; in qat_d15xx_get_accel_cap()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/pkcs7/
H A Dpk7_attr.c21 STACK_OF(X509_ALGOR) *cap) in PKCS7_add_attrib_smimecap()
29 seq->length = ASN1_item_i2d((ASN1_VALUE *)cap, &seq->data, in PKCS7_add_attrib_smimecap()
37 ASN1_TYPE *cap; in STACK_OF() local
40 cap = PKCS7_get_signed_attribute(si, NID_SMIMECapabilities); in STACK_OF()
41 if (cap == NULL || (cap->type != V_ASN1_SEQUENCE)) in STACK_OF()
43 p = cap->value.sequence->data; in STACK_OF()
45 ASN1_item_d2i(NULL, &p, cap->value.sequence->length, in STACK_OF()
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/pkcs7/
H A Dpk7_attr.c21 STACK_OF(X509_ALGOR) *cap) in PKCS7_add_attrib_smimecap()
29 seq->length = ASN1_item_i2d((ASN1_VALUE *)cap, &seq->data, in PKCS7_add_attrib_smimecap()
41 ASN1_TYPE *cap; in STACK_OF() local
44 cap = PKCS7_get_signed_attribute(si, NID_SMIMECapabilities); in STACK_OF()
45 if (cap == NULL || (cap->type != V_ASN1_SEQUENCE)) in STACK_OF()
47 p = cap->value.sequence->data; in STACK_OF()
49 ASN1_item_d2i(NULL, &p, cap->value.sequence->length, in STACK_OF()

12345678910>>...25