Home
last modified time | relevance | path

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

12345678910>>...54

/freebsd/sys/dev/mlx5/
H A Ddevice.h1021 /* NUM OF CAP Types */
1050 #define MLX5_CAP_GEN(mdev, cap) \ argument
1051 MLX5_GET(cmd_hca_cap, mdev->hca_caps_cur[MLX5_CAP_GENERAL], cap)
1053 #define MLX5_CAP_GEN_64(mdev, cap) \ argument
1054 MLX5_GET64(cmd_hca_cap, mdev->hca_caps_cur[MLX5_CAP_GENERAL], cap)
1056 #define MLX5_CAP_GEN_MAX(mdev, cap) \ argument
1057 MLX5_GET(cmd_hca_cap, mdev->hca_caps_max[MLX5_CAP_GENERAL], cap)
1059 #define MLX5_CAP_GEN_2(mdev, cap) \ argument
1060 MLX5_GET(cmd_hca_cap_2, mdev->hca_caps_cur[MLX5_CAP_GENERAL_2], cap)
1062 #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.lua128 return function (...) cap = {[0] = op, ...} ; return (...) end
140 assert(cap[0] == "add" and cap[1] == b and cap[2] == 5 and cap[3]==nil)
142 assert(cap[0] == "add" and cap[1] == b and cap[2] == '5' and cap[3]==nil)
144 assert(cap[0] == "add" and cap[1] == 5 and cap[2] == b and cap[3]==nil)
146 assert(cap[0] == "add" and cap[1] == '5' and cap[2] == b and cap[3]==nil)
149 assert(cap[0] == "sub" and cap[1] == 5 and cap[2] == a and cap[3]==nil)
151 assert(cap[0] == "sub" and cap[1] == '5' and cap[2] == a and cap[3]==nil)
153 assert(cap[0] == "mul" and cap[1] == a and cap[2] == a and cap[3]==nil)
155 assert(cap[0] == "div" and cap[1] == a and cap[2] == 0 and cap[3]==nil)
157 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);
272 cap_ref(struct cryptocap *cap) in cap_ref() argument
275 refcount_acquire(&cap->cc_refs); in cap_ref()
276 return (cap); in cap_ref()
280 cap_rele(struct cryptocap *cap) in cap_rele() argument
283 if (refcount_release(&cap->cc_refs) == 0) in cap_rele()
286 KASSERT(cap->cc_sessions == 0, in cap_rele()
289 free(cap, M_CRYPTO_DATA); in cap_rele()
471 return (crypto_session->cap->cc_hid); in crypto_ses2hid()
[all …]
/freebsd/sys/dev/thunderbolt/
H A Dhcm.c118 struct router_cfg_cap cap; in hcm_cfg_task() local
145 cap.space = TB_CFG_CS_ROUTER; in hcm_cfg_task()
146 cap.adap = 0; in hcm_cfg_task()
147 cap.next_cap = GET_ROUTER_CS_NEXT_CAP(cfg); in hcm_cfg_task()
148 while (cap.next_cap != 0) { in hcm_cfg_task()
149 error = tb_config_next_cap(rsc, &cap); in hcm_cfg_task()
153 if ((cap.cap_id == TB_CFG_CAP_VSEC) && (cap.vsc_len == 0)) { in hcm_cfg_task()
154 tb_debug(hcm, DBG_HCM, "Router Cap= %d, vsec= %d, " in hcm_cfg_task()
155 "len= %d, next_cap= %d\n", cap.cap_id, in hcm_cfg_task()
156 cap.vsc_id, cap.vsec_len, cap.next_cap); in hcm_cfg_task()
[all …]
H A Drouter.c766 tb_config_next_cap(struct router_softc *sc, struct router_cfg_cap *cap) in tb_config_next_cap() argument
773 KASSERT(cap != NULL, ("cap cannot be NULL\n")); in tb_config_next_cap()
774 KASSERT(cap->next_cap != 0, ("next_cap cannot be 0\n")); in tb_config_next_cap()
778 current = cap->next_cap; in tb_config_next_cap()
779 error = tb_config_read(sc, cap->space, cap->adap, current, 1, buf); in tb_config_next_cap()
784 cap->cap_id = tbcap->hdr.cap_id; in tb_config_next_cap()
785 cap->next_cap = tbcap->hdr.next_cap; in tb_config_next_cap()
786 cap->current_cap = current; in tb_config_next_cap()
788 if ((cap->space != TB_CFG_CS_ROUTER) && in tb_config_next_cap()
794 tb_config_read(sc, cap->space, cap->adap, current, 2, buf); in tb_config_next_cap()
[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.c48 if (sscanf(tok[0] + off, "%llx", &cap->NAME[0]) != 1) \
51 cap->NAME[0] = ~cap->NAME[0]; \
54 if (sscanf(tok[1] + off, "%llx", &cap->NAME[1]) != 1) \
57 cap->NAME[1] = ~cap->NAME[1]; \
65 memcpy(cap, &STRUCT_NAME, sizeof(*cap)); \
81 static int parse_env(struct OPENSSL_s390xcap_st *cap, int *cex);
114 struct OPENSSL_s390xcap_st cap; in OPENSSL_cpuid_setup() local
176 if (!parse_env(&cap, &cex)) in OPENSSL_cpuid_setup()
181 OPENSSL_s390xcap_P.stfle[0] &= cap.stfle[0]; in OPENSSL_cpuid_setup()
182 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/sys/contrib/dev/iwlwifi/
H A Diwl-nvm-utils.c66 ht_info->cap = IEEE80211_HT_CAP_DSSSCCK40; in iwl_init_ht_hw_capab()
69 ht_info->cap |= (1 << IEEE80211_HT_CAP_RX_STBC_SHIFT); in iwl_init_ht_hw_capab()
72 ht_info->cap |= IEEE80211_HT_CAP_TX_STBC; in iwl_init_ht_hw_capab()
76 ht_info->cap |= IEEE80211_HT_CAP_LDPC_CODING; in iwl_init_ht_hw_capab()
80 ht_info->cap |= IEEE80211_HT_CAP_MAX_AMSDU; in iwl_init_ht_hw_capab()
95 ht_info->cap |= IEEE80211_HT_CAP_GRN_FLD; in iwl_init_ht_hw_capab()
96 ht_info->cap |= IEEE80211_HT_CAP_SGI_20; in iwl_init_ht_hw_capab()
101 ht_info->cap |= IEEE80211_HT_CAP_SUP_WIDTH_20_40; in iwl_init_ht_hw_capab()
102 ht_info->cap |= IEEE80211_HT_CAP_SGI_40; in iwl_init_ht_hw_capab()
/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/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()
45 ASN1_TYPE *cap; in STACK_OF() local
48 cap = PKCS7_get_signed_attribute(si, NID_SMIMECapabilities); in STACK_OF()
49 if (cap == NULL || (cap->type != V_ASN1_SEQUENCE)) in STACK_OF()
51 p = cap->value.sequence->data; in STACK_OF()
53 ASN1_item_d2i(NULL, &p, cap->value.sequence->length, in STACK_OF()
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_mp.c100 int cap = RSA_MAX_PRIME_NUM; in ossl_rsa_multip_cap() local
103 cap = 2; in ossl_rsa_multip_cap()
105 cap = 3; in ossl_rsa_multip_cap()
107 cap = 4; in ossl_rsa_multip_cap()
109 if (cap > RSA_MAX_PRIME_NUM) in ossl_rsa_multip_cap()
110 cap = RSA_MAX_PRIME_NUM; in ossl_rsa_multip_cap()
112 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/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/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/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/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

12345678910>>...54