| /freebsd-12.1/sys/opencrypto/ |
| H A D | crypto.c | 545 if (cap != NULL && !driver_suitable(cap, cri)) in crypto_newsession() 566 cap = NULL; in crypto_newsession() 578 cap = NULL; in crypto_newsession() 613 if (cap->cc_sessions == 0 && cap->cc_koperations == 0) in crypto_remove() 614 bzero(cap, sizeof(*cap)); in crypto_remove() 756 return cap != NULL ? cap->cc_dev : NULL; in crypto_find_device_byhid() 766 return cap != NULL ? cap->cc_flags : 0; in crypto_getcaps() 855 bzero(cap, sizeof(*cap)); in driver_finis() 1148 if (cap != NULL && !cap->cc_kqblocked) { in crypto_kinvoke() 1528 if (cap == NULL || cap->cc_dev == NULL) { in crypto_proc() [all …]
|
| /freebsd-12.1/sys/amd64/vmm/intel/ |
| H A D | ept.c | 50 #define EPT_SUPPORTS_EXEC_ONLY(cap) ((cap) & (1UL << 0)) argument 51 #define EPT_PWL4(cap) ((cap) & (1UL << 6)) argument 52 #define EPT_MEMORY_TYPE_WB(cap) ((cap) & (1UL << 14)) argument 53 #define EPT_PDE_SUPERPAGE(cap) ((cap) & (1UL << 16)) /* 2MB pages */ argument 54 #define EPT_PDPTE_SUPERPAGE(cap) ((cap) & (1UL << 17)) /* 1GB pages */ argument 55 #define INVEPT_SUPPORTED(cap) ((cap) & (1UL << 20)) argument 56 #define AD_BITS_SUPPORTED(cap) ((cap) & (1UL << 21)) argument 57 #define INVVPID_SUPPORTED(cap) ((cap) & (1UL << 32)) argument 83 uint64_t cap; in ept_init() local 94 if (!EPT_PWL4(cap) || in ept_init() [all …]
|
| H A D | vtd.c | 60 volatile uint64_t cap; member 68 #define VTD_CAP_SAGAW(cap) (((cap) >> 8) & 0x1F) argument 69 #define VTD_CAP_ND(cap) ((cap) & 0x7) argument 70 #define VTD_CAP_CM(cap) (((cap) >> 7) & 0x1) argument 71 #define VTD_CAP_SPS(cap) (((cap) >> 34) & 0xF) argument 72 #define VTD_CAP_RWBF(cap) (((cap) >> 4) & 0x1) argument 137 nd = VTD_CAP_ND(vtdmap->cap); in vtd_max_domains() 251 if (VTD_CAP_RWBF(vtdmap->cap)) { in vtd_wbflush() 377 if (VTD_CAP_CM(vtdmap->cap) != 0) in vtd_init() 676 tmp &= VTD_CAP_SAGAW(vtdmap->cap); in vtd_create_domain() [all …]
|
| /freebsd-12.1/sys/dev/mlx5/ |
| H A D | device.h | 951 #define MLX5_CAP_GEN(mdev, cap) \ argument 957 #define MLX5_CAP_ETH(mdev, cap) \ argument 965 #define MLX5_CAP_ROCE(mdev, cap) \ argument 971 #define MLX5_CAP_ATOMIC(mdev, cap) \ argument 1009 #define MLX5_CAP_ESW(mdev, cap) \ argument 1017 #define MLX5_CAP_ODP(mdev, cap)\ argument 1020 #define MLX5_CAP_ODP_MAX(mdev, cap)\ argument 1039 #define MLX5_CAP_DEBUG(mdev, cap) \ argument 1047 #define MLX5_CAP_QOS(mdev, cap) \ argument 1073 #define MLX5_CAP_FPGA(mdev, cap) \ argument [all …]
|
| /freebsd-12.1/contrib/wpa/src/ap/ |
| H A D | ieee802_11_vht.c | 25 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() 461 u32 cap, own_cap, sym_caps; in hostapd_get_vht_capab() local 505 cap &= ~VHT_CAP_SHORT_GI_160; in hostapd_get_vht_capab() 512 cap &= ~VHT_CAP_TXSTBC; in hostapd_get_vht_capab() [all …]
|
| H A D | ieee802_11_he.c | 50 struct ieee80211_he_capabilities *cap; in hostapd_eid_he_capab() local 87 cap = (struct ieee80211_he_capabilities *) pos; in hostapd_eid_he_capab() 88 os_memset(cap, 0, sizeof(*cap)); in hostapd_eid_he_capab() 96 os_memcpy(&cap->optional[mcs_nss_size], in hostapd_eid_he_capab() 100 cap->he_phy_capab_info[HE_PHYCAP_SU_BEAMFORMER_CAPAB_IDX] |= in hostapd_eid_he_capab() 103 cap->he_phy_capab_info[HE_PHYCAP_SU_BEAMFORMER_CAPAB_IDX] &= in hostapd_eid_he_capab() 107 cap->he_phy_capab_info[HE_PHYCAP_SU_BEAMFORMEE_CAPAB_IDX] |= in hostapd_eid_he_capab() 110 cap->he_phy_capab_info[HE_PHYCAP_SU_BEAMFORMEE_CAPAB_IDX] &= in hostapd_eid_he_capab() 114 cap->he_phy_capab_info[HE_PHYCAP_MU_BEAMFORMER_CAPAB_IDX] |= in hostapd_eid_he_capab() 117 cap->he_phy_capab_info[HE_PHYCAP_MU_BEAMFORMER_CAPAB_IDX] &= in hostapd_eid_he_capab() [all …]
|
| H A D | ieee802_11_ht.c | 26 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() 520 u16 cap; in hostapd_get_ht_capab() local 525 cap = le_to_host16(neg_ht_cap->ht_capabilities_info); in hostapd_get_ht_capab() 541 cap &= ~HT_CAP_INFO_TX_STBC; in hostapd_get_ht_capab() 543 cap &= ~HT_CAP_INFO_RX_STBC_MASK; in hostapd_get_ht_capab() [all …]
|
| /freebsd-12.1/usr.sbin/pciconf/ |
| H A D | cap.c | 56 uint16_t cap, status; in cap_power() local 61 cap & PCIM_PCAP_SPEC, in cap_power() 416 slot_power(uint32_t cap) in slot_power() argument 440 uint32_t cap; in cap_express() local 503 if (cap == 0 && sta == 0) in cap_express() 526 if (cap & PCIEM_SLOT_CAP_HPC) in cap_express() 580 uint8_t cap; in cap_pciaf() local 728 uint8_t ptr, cap; in list_caps() local 753 switch (cap) { in list_caps() 1029 uint8_t ptr, cap; in pci_find_cap() local [all …]
|
| /freebsd-12.1/lib/libc/rpc/ |
| H A D | pmap_rmt.c | 122 xdr_rmtcall_args(XDR *xdrs, struct rmtcallargs *cap) in xdr_rmtcall_args() argument 127 assert(cap != NULL); in xdr_rmtcall_args() 129 if (xdr_u_long(xdrs, &(cap->prog)) && in xdr_rmtcall_args() 130 xdr_u_long(xdrs, &(cap->vers)) && in xdr_rmtcall_args() 131 xdr_u_long(xdrs, &(cap->proc))) { in xdr_rmtcall_args() 133 if (! xdr_u_long(xdrs, &(cap->arglen))) in xdr_rmtcall_args() 136 if (! (*(cap->xdr_args))(xdrs, cap->args_ptr)) in xdr_rmtcall_args() 139 cap->arglen = (u_long)position - (u_long)argposition; in xdr_rmtcall_args() 141 if (! xdr_u_long(xdrs, &(cap->arglen))) in xdr_rmtcall_args()
|
| /freebsd-12.1/lib/libutil/ |
| H A D | login_cap.c | 365 if (lc == NULL || cap == NULL || lc->lc_cap == NULL || *cap == '\0') in login_getcapstr() 368 if ((ret = cgetstr(lc->lc_cap, cap, &res)) == -1) in login_getcapstr() 409 str = login_getcapstr(lc, cap, NULL, NULL); in login_getpath() 551 if ((r = cgetstr(lc->lc_cap, cap, &res)) == -1) in login_getcaptime() 577 lc->lc_class, cap, oval); in login_getcaptime() 638 if ((r = cgetstr(lc->lc_cap, cap, &res)) == -1) { in login_getcapnum() 641 if ((r = cgetnum(lc->lc_cap, cap, &lval)) == -1) in login_getcapnum() 659 lc->lc_class, cap, res); in login_getcapnum() 687 if ((r = cgetstr(lc->lc_cap, cap, &res)) == -1) in login_getcapsize() 707 lc->lc_class, cap, oval); in login_getcapsize() [all …]
|
| /freebsd-12.1/crypto/openssl/crypto/pkcs7/ |
| H A D | pk7_attr.c | 21 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()
|
| /freebsd-12.1/crypto/openssl/crypto/rsa/ |
| H A D | rsa_mp.c | 102 int cap = 5; in rsa_multip_cap() local 105 cap = 2; in rsa_multip_cap() 107 cap = 3; in rsa_multip_cap() 109 cap = 4; in rsa_multip_cap() 111 if (cap > RSA_MAX_PRIME_NUM) in rsa_multip_cap() 112 cap = RSA_MAX_PRIME_NUM; in rsa_multip_cap() 114 return cap; in rsa_multip_cap()
|
| /freebsd-12.1/contrib/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_vector.h | 109 uptr cap = cap0 * 5 / 4; // 25% growth in EnsureSize() local 110 if (cap == 0) in EnsureSize() 111 cap = 16; in EnsureSize() 112 if (cap < size) in EnsureSize() 113 cap = size; in EnsureSize() 114 T *p = (T*)InternalAlloc(cap * sizeof(T)); in EnsureSize() 121 last_ = begin_ + cap; in EnsureSize()
|
| /freebsd-12.1/sys/dev/acpica/ |
| H A D | acpi_battery.c | 205 bst[i].cap = (bst[i].cap * bif->dvol) / 1000; in acpi_battery_get_battinfo() 222 if (bst[i].cap > bif->lfcap) in acpi_battery_get_battinfo() 223 bst[i].cap = bif->lfcap; in acpi_battery_get_battinfo() 226 bi[i].cap = (100 * bst[i].cap) / bif->lfcap; in acpi_battery_get_battinfo() 229 if (bi[i].cap != -1) { in acpi_battery_get_battinfo() 230 total_cap += bst[i].cap; in acpi_battery_get_battinfo() 262 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() 279 battinfo->cap = bi[dev_idx].cap; in acpi_battery_get_battinfo() 309 info->cap = -1; in acpi_reset_battinfo() [all …]
|
| /freebsd-12.1/sbin/camcontrol/ |
| H A D | persist.c | 246 length = scsi_2btoul(cap->length); in persist_print_cap() 259 (cap->flags1 & SPRI_RLR_C) ? 1 : 0); in persist_print_cap() 261 (cap->flags1 & SPRI_CRH) ? 1 : 0); in persist_print_cap() 263 (cap->flags1 & SPRI_SIP_C) ? 1 : 0); in persist_print_cap() 265 (cap->flags1 & SPRI_ATP_C) ? 1 : 0); in persist_print_cap() 346 && (cap->flags2 & SPRI_TMV)) { in persist_print_cap() 910 struct scsi_per_res_cap *cap; in scsipersist() local 913 if (valid_len < sizeof(*cap)) { in scsipersist() 921 if (cap_len != sizeof(*cap)) { in scsipersist() 928 cap_len, sizeof(*cap)); in scsipersist() [all …]
|
| /freebsd-12.1/sys/dev/mlx5/mlx5_ib/ |
| H A D | mlx5_ib_gsi.c | 41 struct ib_qp_cap cap; member 161 gsi->cap = init_attr->cap; in mlx5_ib_gsi_create_qp() 178 hw_init_attr.cap.max_send_wr = 0; in mlx5_ib_gsi_create_qp() 179 hw_init_attr.cap.max_send_sge = 0; in mlx5_ib_gsi_create_qp() 180 hw_init_attr.cap.max_inline_data = 0; in mlx5_ib_gsi_create_qp() 254 .cap = { in create_gsi_ud_qp() 255 .max_send_wr = gsi->cap.max_send_wr, in create_gsi_ud_qp() 256 .max_send_sge = gsi->cap.max_send_sge, in create_gsi_ud_qp() 402 qp_init_attr->cap = gsi->cap; in mlx5_ib_gsi_query_qp() 421 gsi->cap.max_send_wr]; in mlx5_ib_add_outstanding_wr() [all …]
|
| /freebsd-12.1/contrib/ofed/librdmacm/examples/ |
| H A D | rdma_client.c | 64 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 D | rdma_server.c | 65 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-12.1/usr.bin/tput/ |
| H A D | tput.c | 135 process(const char *cap, char *str, char **argv) in process() argument 174 warnx(erresc, *cp, cap); in process() 186 errx(2, errfew, 1, cap); in process() 193 errx(2, errfew, 2, cap); in process() 197 errx(2, errfew, 2, cap); in process() 204 errx(2, errmany, arg_need, cap); in process()
|
| /freebsd-12.1/contrib/ofed/libmlx4/ |
| H A D | verbs.c | 800 if (attr->cap.max_send_wr > 65536 || in mlx4_create_qp_ex() 803 attr->cap.max_recv_sge > 64) in mlx4_create_qp_ex() 806 if (attr->cap.max_inline_data > 1024) in mlx4_create_qp_ex() 830 attr->cap.max_recv_wr = qp->rq.wqe_cnt = attr->cap.max_recv_sge = 0; in mlx4_create_qp_ex() 833 if (attr->cap.max_recv_sge < 1) in mlx4_create_qp_ex() 834 attr->cap.max_recv_sge = 1; in mlx4_create_qp_ex() 835 if (attr->cap.max_recv_wr < 1) in mlx4_create_qp_ex() 836 attr->cap.max_recv_wr = 1; in mlx4_create_qp_ex() 848 if (attr->cap.max_recv_sge) { in mlx4_create_qp_ex() 904 if (attr->cap.max_recv_sge) in mlx4_create_qp_ex() [all …]
|
| /freebsd-12.1/contrib/ncurses/ncurses/tty/ |
| H A D | lib_mvcur.c | 198 ("CostOf %s %d %s", capname, result, _nc_visbuf(cap))); in trace_cost_of() 201 #define CostOf(cap,affcnt) trace_cost_of(NCURSES_SP_ARGx #cap, cap, affcnt) argument 206 int result = normalized_cost(NCURSES_SP_ARGx cap, affcnt); in trace_normalized_cost() 208 ("NormalizedCost %s %d %s", capname, result, _nc_visbuf(cap))); in trace_normalized_cost() 211 #define NormalizedCost(cap,affcnt) trace_normalized_cost(NCURSES_SP_ARGx #cap, cap, affcnt) argument 215 #define CostOf(cap,affcnt) NCURSES_SP_NAME(_nc_msec_cost)(NCURSES_SP_ARGx cap, affcnt) argument 216 #define NormalizedCost(cap,affcnt) normalized_cost(NCURSES_SP_ARGx cap, affcnt) argument 224 if (cap == 0) in NCURSES_SP_NAME() 230 for (cp = cap; *cp; cp++) { in NCURSES_SP_NAME() 259 _nc_msec_cost(const char *const cap, int affcnt) in _nc_msec_cost() argument [all …]
|
| /freebsd-12.1/crypto/heimdal/lib/roken/ |
| H A D | getcap.c | 157 cgetcap(char *buf, const char *cap, int type) in cgetcap() argument 179 for (cp = cap; *cp == *bp && *bp != '\0'; cp++, bp++) in cgetcap() 234 getent(char **cap, size_t *len, char **db_array, int fd, in getent() argument 315 *cap = cbuf; in getent() 610 *cap = record; in getent() 851 cgetstr(char *buf, const char *cap, char **str) in cgetstr() argument 864 bp = cgetcap(buf, cap, '='); in cgetstr() 984 cgetustr(char *buf, const char *cap, char **str) in cgetustr() argument 995 if ((bp = cgetcap(buf, cap, '=')) == NULL) in cgetustr() 1053 cgetnum(char *buf, const char *cap, long *num) in cgetnum() argument [all …]
|
| /freebsd-12.1/usr.bin/setchannel/ |
| H A D | setchannel.c | 101 struct bktr_capture_area cap; in main() local 245 memset(&cap, 0, sizeof(cap)); in main() 246 cap.x_size = x_size; in main() 247 cap.y_size = y_size; in main() 248 if (ioctl(tfd, BT848_SCAPAREA, &cap) < 0) { in main()
|
| /freebsd-12.1/usr.bin/mkuzip/ |
| H A D | mkuz_fqueue.c | 108 mkuz_fqueue_check(struct mkuz_fifo_queue *fqp, cmp_cb_t cmp_cb, void *cap) in mkuz_fqueue_check() argument 113 if (cmp_cb(ip->this, cap)) { in mkuz_fqueue_check() 121 mkuz_fqueue_deq_when(struct mkuz_fifo_queue *fqp, cmp_cb_t cmp_cb, void *cap) in mkuz_fqueue_deq_when() argument 127 while (fqp->last == NULL || !mkuz_fqueue_check(fqp, cmp_cb, cap)) { in mkuz_fqueue_deq_when() 130 if (cmp_cb(fqp->last->this, cap)) { in mkuz_fqueue_deq_when() 146 if (cmp_cb(ip->this, cap)) { in mkuz_fqueue_deq_when()
|
| /freebsd-12.1/sys/dev/cyapa/ |
| H A D | cyapa.c | 398 if (cap) { in init_device() 400 (void *)cap, sizeof(*cap)); in init_device() 404 cap->prod_ida); in init_device() 464 struct cyapa_cap cap; in cyapa_probe() local 490 struct cyapa_cap cap; in cyapa_attach() local 500 if (init_device(dev, &cap, 0)) in cyapa_attach() 510 cap.max_abs_x_low; in cyapa_attach() 512 cap.max_abs_y_low; in cyapa_attach() 514 cap.phy_siz_x_low; in cyapa_attach() 516 cap.phy_siz_y_low; in cyapa_attach() [all …]
|