Home
last modified time | relevance | path

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

12345678910>>...34

/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
79 uint64_t cap; in ept_init() local
90 if (!EPT_PWL4(cap) || in ept_init()
[all …]
H A Dvtd.c55 volatile uint64_t cap; member
63 #define VTD_CAP_SAGAW(cap) (((cap) >> 8) & 0x1F) argument
64 #define VTD_CAP_ND(cap) ((cap) & 0x7) argument
65 #define VTD_CAP_CM(cap) (((cap) >> 7) & 0x1) argument
66 #define VTD_CAP_SPS(cap) (((cap) >> 34) & 0xF) argument
67 #define VTD_CAP_RWBF(cap) (((cap) >> 4) & 0x1) argument
132 nd = VTD_CAP_ND(vtdmap->cap); in vtd_max_domains()
246 if (VTD_CAP_RWBF(vtdmap->cap)) { in vtd_wbflush()
372 if (VTD_CAP_CM(vtdmap->cap) != 0) in vtd_init()
673 tmp &= VTD_CAP_SAGAW(vtdmap->cap); in vtd_create_domain()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/channel_program/lua_core/
H A Dtst.lib_base.lua139 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)
160 assert(cap[0] == "pow" and cap[1] == a and cap[2] == 4 and cap[3]==nil)
[all …]
/freebsd/sys/opencrypto/
H A Dcrypto.c283 return (cap); in cap_ref()
637 best = cap; in crypto_select_driver()
929 cap = cses->cap; in crypto_deletesession()
936 wakeup(cap); in crypto_deletesession()
987 res->cap = cap; in crypto_newsession()
1015 cap = cses->cap; in crypto_freesession()
1430 cap = crp->crp_session->cap; in crypto_dispatch_one()
1515 cap = crp->crp_session->cap; in crypto_task_invoke()
1786 cap = crp->crp_session->cap; in crypto_dispatch_thread()
1809 if (submit->crp_session->cap == cap) in crypto_dispatch_thread()
[all …]
/freebsd/sys/dev/mlx5/
H A Ddevice.h1026 #define MLX5_CAP_GEN(mdev, cap) \ argument
1035 #define MLX5_CAP_GEN_2(mdev, cap) \ argument
1038 #define MLX5_CAP_ETH(mdev, cap) \ argument
1046 #define MLX5_CAP_ROCE(mdev, cap) \ argument
1052 #define MLX5_CAP_ATOMIC(mdev, cap) \ argument
1096 #define MLX5_CAP_ESW(mdev, cap) \ argument
1104 #define MLX5_CAP_ODP(mdev, cap)\ argument
1126 #define MLX5_CAP_DEBUG(mdev, cap) \ argument
1134 #define MLX5_CAP_QOS(mdev, cap) \ argument
1160 #define MLX5_CAP_FPGA(mdev, cap) \ argument
[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
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()
/freebsd/contrib/wpa/src/ap/
H A Dieee802_11_vht.c25 struct ieee80211_vht_capabilities *cap; in hostapd_eid_vht_capabilities() local
46 *pos++ = sizeof(*cap); in hostapd_eid_vht_capabilities()
49 os_memset(cap, 0, sizeof(*cap)); in hostapd_eid_vht_capabilities()
50 cap->vht_capabilities_info = host_to_le32( in hostapd_eid_vht_capabilities()
58 cap->vht_capabilities_info &= in hostapd_eid_vht_capabilities()
61 cap->vht_capabilities_info |= in hostapd_eid_vht_capabilities()
68 pos += sizeof(*cap); in hostapd_eid_vht_capabilities()
301 u32 cap, own_cap, sym_caps; in hostapd_get_vht_capab() local
345 cap &= ~VHT_CAP_SHORT_GI_160; in hostapd_get_vht_capab()
352 cap &= ~VHT_CAP_TXSTBC; in hostapd_get_vht_capab()
[all …]
H A Dieee802_11_he.c65 struct ieee80211_he_capabilities *cap; in ieee80211_invalid_he_cap_size() local
68 cap = (struct ieee80211_he_capabilities *) buf; in ieee80211_invalid_he_cap_size()
69 cap_len = sizeof(*cap) - sizeof(cap->optional); in ieee80211_invalid_he_cap_size()
86 struct ieee80211_he_capabilities *cap; in hostapd_eid_he_capab() local
95 ie_size = sizeof(*cap) - sizeof(cap->optional); in hostapd_eid_he_capab()
123 os_memset(cap, 0, sizeof(*cap)); in hostapd_eid_he_capab()
131 os_memcpy(&cap->optional[mcs_nss_size], in hostapd_eid_he_capab()
342 struct ieee80211_he_6ghz_band_cap *cap; in hostapd_eid_he_6ghz_band_cap() local
366 *pos++ = 1 + sizeof(*cap); in hostapd_eid_he_6ghz_band_cap()
370 cap->capab = host_to_le16(capab); in hostapd_eid_he_6ghz_band_cap()
[all …]
H A Dieee802_11_ht.c26 struct ieee80211_ht_capabilities *cap; in hostapd_eid_ht_capabilities() local
34 *pos++ = sizeof(*cap); in hostapd_eid_ht_capabilities()
36 cap = (struct ieee80211_ht_capabilities *) pos; in hostapd_eid_ht_capabilities()
37 os_memset(cap, 0, sizeof(*cap)); in hostapd_eid_ht_capabilities()
39 cap->a_mpdu_params = hapd->iface->current_mode->a_mpdu_params; in hostapd_eid_ht_capabilities()
47 pos += sizeof(*cap); in hostapd_eid_ht_capabilities()
498 u16 cap; in hostapd_get_ht_capab() local
503 cap = le_to_host16(neg_ht_cap->ht_capabilities_info); in hostapd_get_ht_capab()
519 cap &= ~HT_CAP_INFO_TX_STBC; in hostapd_get_ht_capab()
521 cap &= ~HT_CAP_INFO_RX_STBC_MASK; in hostapd_get_ht_capab()
[all …]
/freebsd/crypto/openssl/crypto/
H A Ds390xcap.c42 cap->NAME[0] = ~cap->NAME[0]; \
48 cap->NAME[1] = ~cap->NAME[1]; \
56 memcpy(cap, &NAME, sizeof(*cap)); \
82 struct OPENSSL_s390xcap_st cap; in OPENSSL_cpuid_setup() local
143 if (!parse_env(&cap)) in OPENSSL_cpuid_setup()
160 OPENSSL_s390xcap_P.km[0] &= cap.km[0]; in OPENSSL_cpuid_setup()
161 OPENSSL_s390xcap_P.km[1] &= cap.km[1]; in OPENSSL_cpuid_setup()
162 OPENSSL_s390xcap_P.kmc[0] &= cap.kmc[0]; in OPENSSL_cpuid_setup()
163 OPENSSL_s390xcap_P.kmc[1] &= cap.kmc[1]; in OPENSSL_cpuid_setup()
681 memset(cap, ~0, sizeof(*cap)); in parse_env()
[all …]
/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/lib/libutil/
H A Dlogin_cap.c464 if (lc == NULL || cap == NULL || lc->lc_cap == NULL || *cap == '\0') in login_getcapstr()
508 str = login_getcapstr(lc, cap, NULL, NULL); in login_getpath()
650 if ((r = cgetstr(lc->lc_cap, cap, &res)) == -1) in login_getcaptime()
674 lc->lc_class, cap, oval); in login_getcaptime()
735 r = cgetstr(lc->lc_cap, cap, &res); in login_getcapnum()
739 if ((r = cgetnum(lc->lc_cap, cap, &lval)) == -1) in login_getcapnum()
755 lc->lc_class, cap, res); in login_getcapnum()
785 if (lc == NULL || lc->lc_cap == NULL || cap == NULL || *cap == '\0') in login_getcapenum()
788 ret = cgetstr(lc->lc_cap, cap, &cand); in login_getcapenum()
829 if ((r = cgetstr(lc->lc_cap, cap, &res)) == -1) in login_getcapsize()
[all …]
/freebsd/usr.sbin/pciconf/
H A Dcap.c53 uint16_t cap, status; in cap_power() local
58 cap & PCIM_PCAP_SPEC, in cap_power()
554 slot_power(uint32_t cap) in slot_power() argument
578 uint32_t cap; in cap_express() local
643 if (cap == 0 && sta == 0) in cap_express()
725 uint8_t cap; in cap_pciaf() local
873 uint8_t ptr, cap; in list_caps() local
900 switch (cap) { in list_caps()
1137 if (cap & capbit) in check_avail_and_state()
1299 uint8_t ptr, cap; in pci_find_cap() local
[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/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()
322 cap *= 2; in ldns_edns_option_list_push()
326 ldns_edns_option *, 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()
363 if (cap > LDNS_OPTIONLIST_INIT && count-1 <= cap/2) { in ldns_edns_option_list_pop()
366 cap /= 2; in ldns_edns_option_list_pop()
[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/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/sys/dev/acpica/
H A Dacpi_battery.c200 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_rate; in acpi_battery_get_battinfo()
274 battinfo->cap = (total_cap * 100) / total_lfcap; in acpi_battery_get_battinfo()
276 battinfo->cap = 0; in acpi_battery_get_battinfo()
281 battinfo->cap = bi[dev_idx].cap; in acpi_battery_get_battinfo()
[all …]
/freebsd/sbin/camcontrol/
H A Dpersist.c244 length = scsi_2btoul(cap->length); in persist_print_cap()
257 (cap->flags1 & SPRI_RLR_C) ? 1 : 0); in persist_print_cap()
259 (cap->flags1 & SPRI_CRH) ? 1 : 0); in persist_print_cap()
261 (cap->flags1 & SPRI_SIP_C) ? 1 : 0); in persist_print_cap()
263 (cap->flags1 & SPRI_ATP_C) ? 1 : 0); in persist_print_cap()
344 && (cap->flags2 & SPRI_TMV)) { in persist_print_cap()
906 struct scsi_per_res_cap *cap; in scsipersist() local
909 if (valid_len < sizeof(*cap)) { in scsipersist()
917 if (cap_len != sizeof(*cap)) { in scsipersist()
924 cap_len, sizeof(*cap)); in scsipersist()
[all …]
/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_gsi.c42 struct ib_qp_cap cap; member
162 gsi->cap = init_attr->cap; 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()
257 .max_send_sge = gsi->cap.max_send_sge, in create_gsi_ud_qp()
403 qp_init_attr->cap = gsi->cap; in mlx5_ib_gsi_query_qp()
422 gsi->cap.max_send_wr]; in mlx5_ib_add_outstanding_wr()
[all …]
/freebsd/contrib/ofed/librdmacm/examples/
H A Drdma_client.c64 attr.cap.max_send_wr = attr.cap.max_recv_wr = 1; in run()
65 attr.cap.max_send_sge = attr.cap.max_recv_sge = 1; in run()
66 attr.cap.max_inline_data = 16; in run()
71 if (attr.cap.max_inline_data >= 16) in run()
H A Drdma_server.c65 init_attr.cap.max_send_wr = init_attr.cap.max_recv_wr = 1; in run()
66 init_attr.cap.max_send_sge = init_attr.cap.max_recv_sge = 1; in run()
67 init_attr.cap.max_inline_data = 16; in run()
95 if (init_attr.cap.max_inline_data >= 16) in run()
/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()
70 v->cap = cap; in bc_vec_grow()
85 v->cap = BC_VEC_START_CAP; in bc_vec_init()
96 if (v->cap < req) in bc_vec_expand()
105 v->cap = req; in bc_vec_expand()
189 if (v->len + n > v->cap) bc_vec_grow(v, n); in bc_vec_npush()
[all …]
/freebsd/contrib/ofed/libmlx4/
H A Dverbs.c809 if (attr->cap.max_send_wr > 65536 || 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()
839 attr->cap.max_recv_wr = qp->rq.wqe_cnt = attr->cap.max_recv_sge = 0; in mlx4_create_qp_ex()
842 if (attr->cap.max_recv_sge < 1) in mlx4_create_qp_ex()
843 attr->cap.max_recv_sge = 1; in mlx4_create_qp_ex()
844 if (attr->cap.max_recv_wr < 1) in mlx4_create_qp_ex()
845 attr->cap.max_recv_wr = 1; in mlx4_create_qp_ex()
858 if (attr->cap.max_recv_sge) { in mlx4_create_qp_ex()
914 if (attr->cap.max_recv_sge) in mlx4_create_qp_ex()
[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;

12345678910>>...34