Home
last modified time | relevance | path

Searched full:cap (Results 1 – 25 of 1129) sorted by relevance

12345678910>>...46

/freebsd/sys/dev/mlx5/
H A Ddevice.h1020 /* NUM OF CAP Types */
1049 #define MLX5_CAP_GEN(mdev, cap) \ argument
1050 MLX5_GET(cmd_hca_cap, mdev->hca_caps_cur[MLX5_CAP_GENERAL], cap)
1052 #define MLX5_CAP_GEN_64(mdev, cap) \ argument
1053 MLX5_GET64(cmd_hca_cap, mdev->hca_caps_cur[MLX5_CAP_GENERAL], cap)
1055 #define MLX5_CAP_GEN_MAX(mdev, cap) \ argument
1056 MLX5_GET(cmd_hca_cap, mdev->hca_caps_max[MLX5_CAP_GENERAL], cap)
1058 #define MLX5_CAP_GEN_2(mdev, cap) \ argument
1059 MLX5_GET(cmd_hca_cap_2, mdev->hca_caps_cur[MLX5_CAP_GENERAL_2], cap)
1061 #define MLX5_CAP_ETH(mdev, cap) \ argument
[all …]
/freebsd/sys/amd64/vmm/intel/
H A Dept.c45 #define EPT_SUPPORTS_EXEC_ONLY(cap) ((cap) & (1UL << 0)) argument
46 #define EPT_PWL4(cap) ((cap) & (1UL << 6)) argument
47 #define EPT_MEMORY_TYPE_WB(cap) ((cap) & (1UL << 14)) argument
48 #define EPT_PDE_SUPERPAGE(cap) ((cap) & (1UL << 16)) /* 2MB pages */ argument
49 #define EPT_PDPTE_SUPERPAGE(cap) ((cap) & (1UL << 17)) /* 1GB pages */ argument
50 #define INVEPT_SUPPORTED(cap) ((cap) & (1UL << 20)) argument
51 #define AD_BITS_SUPPORTED(cap) ((cap) & (1UL << 21)) argument
52 #define INVVPID_SUPPORTED(cap) ((cap) & (1UL << 32)) argument
55 #define INVVPID_ALL_TYPES_SUPPORTED(cap) \ argument
56 (((cap) & INVVPID_ALL_TYPES_MASK) == INVVPID_ALL_TYPES_MASK)
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/channel_program/lua_core/
H A Dtst.lib_base.lua127 return function (...) cap = {[0] = op, ...} ; return (...) end
139 assert(cap[0] == "add" and cap[1] == b and cap[2] == 5 and cap[3]==nil)
141 assert(cap[0] == "add" and cap[1] == b and cap[2] == '5' and cap[3]==nil)
143 assert(cap[0] == "add" and cap[1] == 5 and cap[2] == b and cap[3]==nil)
145 assert(cap[0] == "add" and cap[1] == '5' and cap[2] == b and cap[3]==nil)
148 assert(cap[0] == "sub" and cap[1] == 5 and cap[2] == a and cap[3]==nil)
150 assert(cap[0] == "sub" and cap[1] == '5' and cap[2] == a and cap[3]==nil)
152 assert(cap[0] == "mul" and cap[1] == a and cap[2] == a and cap[3]==nil)
154 assert(cap[0] == "div" and cap[1] == a and cap[2] == 0 and cap[3]==nil)
156 assert(cap[0] == "mod" and cap[1] == a and cap[2] == 2 and cap[3]==nil)
[all …]
/freebsd/sys/opencrypto/
H A Dcrypto.c133 struct cryptocap *cap; member
215 static int crypto_invoke(struct cryptocap *cap, struct cryptop *crp, int hint);
279 cap_ref(struct cryptocap *cap) in cap_ref() argument
282 refcount_acquire(&cap->cc_refs); in cap_ref()
283 return (cap); in cap_ref()
287 cap_rele(struct cryptocap *cap) in cap_rele() argument
290 if (refcount_release(&cap->cc_refs) == 0) in cap_rele()
293 KASSERT(cap->cc_sessions == 0, in cap_rele()
296 free(cap, M_CRYPTO_DATA); in cap_rele()
478 return (crypto_session->cap->cc_hid); in crypto_ses2hid()
[all …]
/freebsd/contrib/wpa/src/ap/
H A Dieee802_11_vht.c26 struct ieee80211_vht_capabilities *cap; in hostapd_eid_vht_capabilities() local
47 *pos++ = sizeof(*cap); in hostapd_eid_vht_capabilities()
49 cap = (struct ieee80211_vht_capabilities *) pos; in hostapd_eid_vht_capabilities()
50 os_memset(cap, 0, sizeof(*cap)); in hostapd_eid_vht_capabilities()
51 cap->vht_capabilities_info = host_to_le32( in hostapd_eid_vht_capabilities()
57 hapd_nsts = le_to_host32(cap->vht_capabilities_info); in hostapd_eid_vht_capabilities()
59 cap->vht_capabilities_info &= in hostapd_eid_vht_capabilities()
62 cap->vht_capabilities_info |= in hostapd_eid_vht_capabilities()
67 os_memcpy(&cap->vht_supported_mcs_set, mode->vht_mcs_set, 8); in hostapd_eid_vht_capabilities()
69 pos += sizeof(*cap); in hostapd_eid_vht_capabilities()
[all …]
H A Dieee802_11_he.c68 struct ieee80211_he_capabilities *cap; in ieee80211_invalid_he_cap_size() local
72 cap = (struct ieee80211_he_capabilities *) buf; in ieee80211_invalid_he_cap_size()
73 cap_len = sizeof(*cap) - sizeof(cap->optional); in ieee80211_invalid_he_cap_size()
77 cap_len += ieee80211_he_mcs_set_size(cap->he_phy_capab_info); in ieee80211_invalid_he_cap_size()
83 cap->he_phy_capab_info); in ieee80211_invalid_he_cap_size()
92 struct ieee80211_he_capabilities *cap; in hostapd_eid_he_capab() local
101 ie_size = sizeof(*cap) - sizeof(cap->optional); in hostapd_eid_he_capab()
130 cap = (struct ieee80211_he_capabilities *) pos; in hostapd_eid_he_capab()
131 os_memset(cap, 0, sizeof(*cap)); in hostapd_eid_he_capab()
133 os_memcpy(cap->he_mac_capab_info, mode->he_capab[opmode].mac_cap, in hostapd_eid_he_capab()
[all …]
/freebsd/crypto/openssl/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 …]
/freebsd/contrib/bmake/
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
[all...]
/freebsd/contrib/ncurses/man/
H A Dtput.154 {\fIcap-code\fP [\fIparameter\fP .\|.\|.\&]} .\|.\|.
78 .IR cap-code .
82 .IR cap-codes .
91 .IR cap-code ,
98 .IR cap-code 's
106 .IR cap-code 's
117 .IR cap-code ,
129 .I cap-code
133 .I cap-code
136 .I cap-code
[all …]
/freebsd/lib/libutil/
H A Dlogin_cap.c459 login_getcapstr(login_cap_t *lc, const char *cap, const char *def, const char *error) in login_getcapstr() argument
464 if (lc == NULL || cap == NULL || lc->lc_cap == NULL || *cap == '\0') in login_getcapstr()
467 if ((ret = cgetstr(lc->lc_cap, cap, &res)) == -1) in login_getcapstr()
481 login_getcaplist(login_cap_t *lc, const char *cap, const char *chars) in login_getcaplist() argument
487 if ((lstring = login_getcapstr(lc, cap, NULL, NULL)) != NULL) in login_getcaplist()
495 * From the login_cap_t <lc>, get the capability <cap> which is
502 login_getpath(login_cap_t *lc, const char *cap, const char *error) in login_getpath() argument
508 str = login_getcapstr(lc, cap, NULL, NULL); in login_getpath()
627 * From the login_cap_t <lc>, get the capability <cap>, which is
628 * formatted as a time (e.g., "<cap>=10h3m2s"). If <cap> is not
[all …]
/freebsd/usr.sbin/pciconf/
H A Dcap.c53 uint16_t cap, status; in cap_power() local
55 cap = read_config(fd, &p->pc_sel, ptr + PCIR_POWER_CAP, 2); in cap_power()
58 cap & PCIM_PCAP_SPEC, in cap_power()
59 cap & PCIM_PCAP_D1SUPP ? " D1" : "", in cap_power()
60 cap & PCIM_PCAP_D2SUPP ? " D2" : "", in cap_power()
312 printf(" Intel cap %d version %d", version >> 4, version & 0xf); in cap_vendor()
554 slot_power(uint32_t cap) in cap_express()
558 mwatts = (cap & PCIEM_SLOT_CAP_SPLV) >> 7; in cap_express()
559 switch (cap & PCIEM_SLOT_CAP_SPLS) { in cap_express()
578 uint32_t cap; in cap_msix()
442 slot_power(uint32_t cap) slot_power() argument
466 uint32_t cap; cap_express() local
613 uint8_t cap; cap_pciaf() local
761 uint8_t ptr, cap; list_caps() local
1019 check_avail_and_state(u_int cap,u_int capbit,u_int ctl,u_int ctlbit) check_avail_and_state() argument
1184 uint8_t ptr, cap; pci_find_cap() local
[all...]
/freebsd/contrib/ldns/
H A Dedns.c302 size_t cap; in ldns_edns_option_list_push() local
311 cap = option_list->_option_capacity; in ldns_edns_option_list_push()
315 if (option_count+1 > cap) { in ldns_edns_option_list_push()
319 if (cap == 0) { in ldns_edns_option_list_push()
320 cap = LDNS_OPTIONLIST_INIT; /* initial list size */ in ldns_edns_option_list_push()
322 cap *= 2; in ldns_edns_option_list_push()
326 ldns_edns_option *, cap); in ldns_edns_option_list_push()
333 option_list->_option_capacity = cap; in ldns_edns_option_list_push()
349 size_t cap; in ldns_edns_option_list_pop() local
353 cap = option_list->_option_capacity; in ldns_edns_option_list_pop()
[all …]
/freebsd/crypto/openssl/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()
/freebsd/lib/libc/rpc/
H A Dpmap_rmt.c115 xdr_rmtcall_args(XDR *xdrs, struct rmtcallargs *cap) in xdr_rmtcall_args() argument
120 assert(cap != NULL); in xdr_rmtcall_args()
122 if (xdr_u_long(xdrs, &(cap->prog)) && in xdr_rmtcall_args()
123 xdr_u_long(xdrs, &(cap->vers)) && in xdr_rmtcall_args()
124 xdr_u_long(xdrs, &(cap->proc))) { in xdr_rmtcall_args()
126 if (! xdr_u_long(xdrs, &(cap->arglen))) in xdr_rmtcall_args()
129 if (! (*(cap->xdr_args))(xdrs, cap->args_ptr)) in xdr_rmtcall_args()
132 cap->arglen = (u_long)position - (u_long)argposition; in xdr_rmtcall_args()
134 if (! xdr_u_long(xdrs, &(cap->arglen))) in xdr_rmtcall_args()
/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_gsi.c42 struct ib_qp_cap cap; member
77 wr = &gsi->outstanding_wrs[index % gsi->cap.max_send_wr]; in generate_completions()
141 gsi->outstanding_wrs = kcalloc(init_attr->cap.max_send_wr, in mlx5_ib_gsi_create_qp()
162 gsi->cap = init_attr->cap; in mlx5_ib_gsi_create_qp()
167 gsi->cq = ib_alloc_cq(pd->device, gsi, init_attr->cap.max_send_wr, 0, in mlx5_ib_gsi_create_qp()
179 hw_init_attr.cap.max_send_wr = 0; in mlx5_ib_gsi_create_qp()
180 hw_init_attr.cap.max_send_sge = 0; in mlx5_ib_gsi_create_qp()
181 hw_init_attr.cap.max_inline_data = 0; in mlx5_ib_gsi_create_qp()
255 .cap = { in create_gsi_ud_qp()
256 .max_send_wr = gsi->cap.max_send_wr, in create_gsi_ud_qp()
[all …]
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_mp.c102 int cap = 5; in ossl_rsa_multip_cap() local
105 cap = 2; in ossl_rsa_multip_cap()
107 cap = 3; in ossl_rsa_multip_cap()
109 cap = 4; in ossl_rsa_multip_cap()
111 if (cap > RSA_MAX_PRIME_NUM) in ossl_rsa_multip_cap()
112 cap = RSA_MAX_PRIME_NUM; in ossl_rsa_multip_cap()
114 return cap; in ossl_rsa_multip_cap()
/freebsd/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, '@') or (cap, terminator, '@') is found before (cap, terminator)
157 cgetcap(char *buf, const char *cap, int type) in cgetcap() argument
[all …]
/freebsd/sys/contrib/device-tree/Bindings/mmc/
H A Dingenic,mmc.yaml77 cap-sd-highspeed;
78 cap-mmc-highspeed;
79 cap-sdio-irq;
102 cap-sd-highspeed;
103 cap-mmc-highspeed;
104 cap-sdio-irq;
/freebsd/lib/libc/gen/
H A Dgetcap.c94 * Cgetcap searches the capability record buf for the capability cap with
95 * type `type'. A pointer to the value of cap is returned on success, NULL
98 * Specifying a type of ':' means that nothing should follow cap (:cap:).
100 * cap is found.
102 * If (cap, '@') or (cap, terminator, '@') is found before (cap, terminator)
106 cgetcap(char *buf, const char *cap, int type) in cgetcap() argument
116 * the remainder of a field whose name failed to match cap. in cgetcap()
126 * Try to match (cap, type) in buf. in cgetcap()
128 for (cp = cap; *cp == *bp && *bp != '\0'; cp++, bp++) in cgetcap()
173 * *cap and *len.
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_vector.h104 uptr cap = cap0 * 5 / 4; // 25% growth in EnsureSize() local
105 if (cap == 0) in EnsureSize()
106 cap = 16; in EnsureSize()
107 if (cap < size) in EnsureSize()
108 cap = size; in EnsureSize()
109 T *p = (T*)InternalAlloc(cap * sizeof(T)); in EnsureSize()
116 last_ = begin_ + cap; in EnsureSize()
/freebsd/contrib/elftoolchain/libelf/
H A Dgelf_getcap.338 .Fn gelf_getcap "Elf_Data *data" "int ndx" "GElf_Cap *cap"
40 .Fn gelf_update_cap "Elf_Data *data" "int ndx" "GElf_Cap *cap"
69 .Ar cap
76 .Ar cap
90 .Ar cap
102 .Ar cap
/freebsd/contrib/ofed/libmlx4/
H A Dverbs.c803 if (attr->cap.max_send_wr > ctx->max_qp_wr || in mlx4_create_qp_ex()
804 attr->cap.max_recv_wr > ctx->max_qp_wr || in mlx4_create_qp_ex()
805 attr->cap.max_send_sge > ctx->max_sge || in mlx4_create_qp_ex()
806 attr->cap.max_recv_sge > ctx->max_sge) in mlx4_create_qp_ex()
809 if (attr->cap.max_send_wr > 65536 || in mlx4_create_qp_ex()
810 attr->cap.max_recv_wr > 65536 || in mlx4_create_qp_ex()
811 attr->cap.max_send_sge > 64 || in mlx4_create_qp_ex()
812 attr->cap.max_recv_sge > 64) in mlx4_create_qp_ex()
815 if (attr->cap.max_inline_data > 1024) in mlx4_create_qp_ex()
826 attr->cap.max_send_wr = qp->sq.wqe_cnt = 0; in mlx4_create_qp_ex()
[all …]
/freebsd/contrib/bc/src/
H A Dvector.c48 size_t cap, len; in bc_vec_grow() local
53 cap = v->cap; in bc_vec_grow()
57 if (len > SIZE_MAX / 2) cap = len; in bc_vec_grow()
61 while (cap < len) in bc_vec_grow()
63 cap += cap; in bc_vec_grow()
69 v->v = bc_vm_realloc(v->v, bc_vm_arraySize(cap, v->size)); in bc_vec_grow()
70 v->cap = cap; in bc_vec_grow()
[all...]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/
H A Deeprom.c94 u32 cap = 0; in mt7996_eeprom_parse_efuse_hw_cap() local
97 ret = mt7996_mcu_get_chip_config(dev, &cap); in mt7996_eeprom_parse_efuse_hw_cap()
101 if (cap) { in mt7996_eeprom_parse_efuse_hw_cap()
102 dev->has_eht = !(cap & MODE_HE_ONLY); in mt7996_eeprom_parse_efuse_hw_cap()
103 dev->wtbl_size_group = u32_get_bits(cap, WTBL_SIZE_GROUP); in mt7996_eeprom_parse_efuse_hw_cap()
133 phy->mt76->cap.has_2ghz = true; in mt7996_eeprom_parse_band_config()
136 phy->mt76->cap.has_5ghz = true; in mt7996_eeprom_parse_band_config()
139 phy->mt76->cap.has_6ghz = true; in mt7996_eeprom_parse_band_config()
/freebsd/sys/dev/acpica/
H A Dacpi_battery.c104 bst->cap != ACPI_BATT_UNKNOWN && bst->volt != ACPI_BATT_UNKNOWN); in acpi_battery_bst_valid()
200 bst[i].cap = (bst[i].cap * bix->dvol) / 1000; in acpi_battery_get_battinfo()
217 if (bst[i].cap > bix->lfcap) in acpi_battery_get_battinfo()
218 bst[i].cap = bix->lfcap; in acpi_battery_get_battinfo()
221 bi[i].cap = (100 * bst[i].cap) / bix->lfcap; in acpi_battery_get_battinfo()
224 if (bi[i].cap != -1) { in acpi_battery_get_battinfo()
225 total_cap += bst[i].cap; in acpi_battery_get_battinfo()
257 bi[i].min = (60 * bst[i].cap) / valid_rat in acpi_battery_get_battinfo()
[all...]

12345678910>>...46