Home
last modified time | relevance | path

Searched +full:- +full:eproto (Results 1 – 25 of 72) sorted by relevance

123

/freebsd/contrib/wireguard-tools/
H A Dipc-uapi.h1 // SPDX-License-Identifier: MIT
3 * Copyright (C) 2015-2020 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
23 #include "ipc-uapi-windows.h"
25 #include "ipc-uapi-unix.h"
34 int ret, set_errno = -EPROTO; in userspace_set_device()
39 f = userspace_interface_file(dev->name); in userspace_set_device()
41 return -errno; in userspace_set_device()
44 if (dev->flags & WGDEVICE_HAS_PRIVATE_KEY) { in userspace_set_device()
45 key_to_hex(hex, dev->private_key); in userspace_set_device()
48 if (dev->flags & WGDEVICE_HAS_LISTEN_PORT) in userspace_set_device()
[all …]
/freebsd/sys/dev/mana/
H A Dgdma_main.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
70 uint32_t v = bus_space_read_4(g->gd_bus.bar0_t, in mana_gd_r32()
71 g->gd_bus.bar0_h, offset); in mana_gd_r32()
80 uint64_t v = bus_space_read_8(g->gd_bus.bar0_t, in mana_gd_r64()
81 g->gd_bus.bar0_h, offset); in mana_gd_r64()
112 device_printf(gc->dev, in mana_gd_query_max_resources()
115 return err ? err : EPROTO; in mana_gd_query_max_resources()
123 if (gc->num_msix_usable > resp.max_msix) in mana_gd_query_max_resources()
124 gc->num_msix_usable = resp.max_msix; in mana_gd_query_max_resources()
[all …]
H A Dmana_en.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
108 ifmr->ifm_status = IFM_AVALID; in mana_ifmedia_status()
109 ifmr->ifm_active = IFM_ETHER; in mana_ifmedia_status()
111 if (!apc->port_is_up) { in mana_ifmedia_status()
113 mana_dbg(NULL, "Port %u link is down\n", apc->port_idx); in mana_ifmedia_status()
117 ifmr->ifm_status |= IFM_ACTIVE; in mana_ifmedia_status()
118 ifmr->ifm_active |= IFM_100G_DR | IFM_FDX; in mana_ifmedia_status()
127 struct mana_port_stats *stats = &apc->port_stats; in mana_get_counter()
131 return (counter_u64_fetch(stats->rx_packets)); in mana_get_counter()
[all …]
H A Dhw_channel.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
48 struct gdma_resource *r = &hwc->inflight_msg_res; in mana_hwc_get_msg_index()
51 sema_wait(&hwc->sema); in mana_hwc_get_msg_index()
53 mtx_lock_spin(&r->lock_spin); in mana_hwc_get_msg_index()
55 index = find_first_zero_bit(hwc->inflight_msg_res.map, in mana_hwc_get_msg_index()
56 hwc->inflight_msg_res.size); in mana_hwc_get_msg_index()
58 bitmap_set(hwc->inflight_msg_res.map, index, 1); in mana_hwc_get_msg_index()
60 mtx_unlock_spin(&r->lock_spin); in mana_hwc_get_msg_index()
70 struct gdma_resource *r = &hwc->inflight_msg_res; in mana_hwc_put_msg_index()
[all …]
H A Dshm_channel.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
45 #define SHMEM_VF_RESET_STATE ((uint32_t)-1)
66 * direction: 0 for request, VF->PF; 1 for response, PF->VF.
95 #define SMC_LAST_DWORD (SMC_APERTURE_DWORDS - 1)
129 void __iomem *base = sc->base; in mana_smc_read_response()
148 device_printf(sc->dev, in mana_smc_read_response()
151 return EPROTO; in mana_smc_read_response()
156 device_printf(sc->dev, in mana_smc_read_response()
158 return EPROTO; in mana_smc_read_response()
[all …]
/freebsd/contrib/libpcap/
H A Dnametoaddr.c40 * https://msdn.microsoft.com/en-us/library/windows/desktop/ms738520(v=vs.85).aspx
133 #include "pcap-int.h"
135 #include "diag-control.h"
141 #include "thread-local.h"
144 #include "os-proto.h"
155 * XXX - not thread-safe; don't use it inside libpcap.
168 * it's not thread-safe, or because it doesn't support IPv6, in pcap_nametoaddr()
172 * it's not thread-safe; we supply it for backwards compatibility, in pcap_nametoaddr()
176 * this thread-safe - we can't change the API to require that in pcap_nametoaddr()
184 hlist[0] = (bpf_u_int32 *)hp->h_addr; in pcap_nametoaddr()
[all …]
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dwmi-tlv.c1 // SPDX-License-Identifier: ISC
3 * Copyright (c) 2005-2011 Atheros Communications Inc.
4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc.
5 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
12 #include "wmi-ops.h"
13 #include "wmi-tlv.h"
92 ptr - begin, len, sizeof(*tlv)); in ath10k_wmi_tlv_iter()
93 return -EINVAL; in ath10k_wmi_tlv_iter()
101 tlv_tag = __le16_to_cpu(tlv->tag); in ath10k_wmi_tlv_iter()
102 tlv_len = __le16_to_cpu(tlv->len); in ath10k_wmi_tlv_iter()
[all …]
H A Dwmi.c1 // SPDX-License-Identifier: ISC
3 * Copyright (c) 2005-2011 Atheros Communications Inc.
4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc.
5 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
19 #include "wmi-tlv.h"
22 #include "wmi-ops.h"
1713 if (arg->passive) in ath10k_wmi_put_wmi_channel()
1715 if (arg->allow_ibss) in ath10k_wmi_put_wmi_channel()
1717 if (arg->allow_ht) in ath10k_wmi_put_wmi_channel()
1719 if (arg->allow_vht) in ath10k_wmi_put_wmi_channel()
[all …]
H A Dhtc.c1 // SPDX-License-Identifier: ISC
3 * Copyright (c) 2005-2011 Atheros Communications Inc.
4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc.
34 WARN_ONCE((unsigned long)skb->data & 3, "unaligned skb"); in ath10k_htc_build_tx_ctrl_skb()
48 if (htc->ar->bus_param.dev_type != ATH10K_DEV_TYPE_HL) in ath10k_htc_restore_tx_skb()
49 dma_unmap_single(htc->ar->dev, skb_cb->paddr, skb->len, DMA_TO_DEVICE); in ath10k_htc_restore_tx_skb()
56 struct ath10k *ar = ep->htc->ar; in ath10k_htc_notify_tx_completion()
60 ep->eid, skb); in ath10k_htc_notify_tx_completion()
67 if (ar->hw_params.delay_unmap_buffer && in ath10k_htc_notify_tx_completion()
68 ep->ul_pipe_id == 3) in ath10k_htc_notify_tx_completion()
[all …]
/freebsd/sys/contrib/dev/athk/ath12k/
H A Dhtc.c1 // SPDX-License-Identifier: BSD-3-Clause-Clear
3 * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
4 * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
22 /* FW/HTC requires 4-byte aligned streams */ in ath12k_htc_alloc_skb()
23 if (!IS_ALIGNED((unsigned long)skb->data, 4)) in ath12k_htc_alloc_skb()
45 WARN_ON_ONCE(!IS_ALIGNED((unsigned long)skb->data, 4)); in ath12k_htc_build_tx_ctrl_skb()
58 hdr = (struct ath12k_htc_hdr *)skb->data; in ath12k_htc_prepare_tx_skb()
61 hdr->htc_info = le32_encode_bits(ep->eid, HTC_HDR_ENDPOINTID) | in ath12k_htc_prepare_tx_skb()
62 le32_encode_bits((skb->len - sizeof(*hdr)), in ath12k_htc_prepare_tx_skb()
65 if (ep->tx_credit_flow_enabled) in ath12k_htc_prepare_tx_skb()
[all …]
H A Dwmi.c1 // SPDX-License-Identifier: BSD-3-Clause-Clear
3 * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
4 * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
173 return ath12k_wmi_tlv_hdr(cmd, len - TLV_HDR_SIZE); in ath12k_wmi_tlv_cmd_hdr()
179 config->num_vdevs = ab->num_radios * TARGET_NUM_VDEVS; in ath12k_wmi_init_qcn9274()
181 if (ab->num_radios == 2) { in ath12k_wmi_init_qcn9274()
182 config->num_peers = TARGET_NUM_PEERS(DBS); in ath12k_wmi_init_qcn9274()
183 config->num_tids = TARGET_NUM_TIDS(DBS); in ath12k_wmi_init_qcn9274()
184 } else if (ab->num_radios == 3) { in ath12k_wmi_init_qcn9274()
185 config->num_peers = TARGET_NUM_PEERS(DBS_SBS); in ath12k_wmi_init_qcn9274()
[all …]
/freebsd/contrib/llvm-project/libcxx/include/
H A Derrno.h1 // -*- C++ -*-
2 //===------
208 #define EPROTO global() macro
[all...]
/freebsd/sys/contrib/dev/athk/ath11k/
H A Dhtc.c1 // SPDX-License-Identifier: BSD-3-Clause-Clear
3 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
21 /* FW/HTC requires 4-byte aligned streams */ in ath11k_htc_alloc_skb()
22 if (!IS_ALIGNED((unsigned long)skb->data, 4)) in ath11k_htc_alloc_skb()
44 WARN_ON_ONCE(!IS_ALIGNED((unsigned long)skb->data, 4)); in ath11k_htc_build_tx_ctrl_skb()
57 hdr = (struct ath11k_htc_hdr *)skb->data; in ath11k_htc_prepare_tx_skb()
60 hdr->htc_info = FIELD_PREP(HTC_HDR_ENDPOINTID, ep->eid) | in ath11k_htc_prepare_tx_skb()
62 (skb->len - sizeof(*hdr))); in ath11k_htc_prepare_tx_skb()
64 if (ep->tx_credit_flow_enabled) in ath11k_htc_prepare_tx_skb()
65 hdr->htc_info |= FIELD_PREP(HTC_HDR_FLAGS, in ath11k_htc_prepare_tx_skb()
[all …]
/freebsd/cddl/lib/libdtrace/
H A Derrno.d22 * Portions Copyright 2006-2008 John Birrell jb@freebsd.org
216 inline int EPROTO = 92; variable
217 #pragma D binding "1.0" EPROTO
230 inline int ERESTART = -1;
232 inline int EJUSTRETURN = -2;
234 inline int ENOIOCTL = -3;
236 inline int EDIRIOCTL = -4;
238 inline int ERELOOKUP = -5;
264 errno == EXDEV ? "Cross-device link" :
276 errno == EROFS ? "Read-only filesystem" :
[all …]
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dmlx5_port.c1 /*-
2 * Copyright (c) 2013-2018, Mellanox Technologies, Ltd. All rights reserved.
39 int err = -ENOMEM; in mlx5_core_access_reg()
213 return -EPERM; in mlx5_set_port_autoneg()
391 return -EINVAL; in mlx5_set_port_pause_and_pfc()
529 MLX5_SET(pvlc_reg, in, local_port, pvlc->local_port); in mlx5_core_access_pvlc()
531 MLX5_SET(pvlc_reg, in, vl_admin, pvlc->vl_admin); in mlx5_core_access_pvlc()
539 pvlc->local_port = MLX5_GET(pvlc_reg, out, local_port); in mlx5_core_access_pvlc()
540 pvlc->vl_hw_cap = MLX5_GET(pvlc_reg, out, vl_hw_cap); in mlx5_core_access_pvlc()
541 pvlc->vl_admin = MLX5_GET(pvlc_reg, out, vl_admin); in mlx5_core_access_pvlc()
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__system_error/
H A Derrc.h1 // -*- C++ -*-
2 //===----------------------------------------------------------------------===//
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 //===----------------------------------------------------------------------===//
84 protocol_error, // EPROTO
117 // Note based on the post-review comments in
118 // https://github.com/llvm/llvm-project/pull/80542 libc++ no longer deprecates
138 // - the enum value is deprecated and should show a diagnostic,
139 // - the macro is deprecated and should _not_ show a diagnostic in this
141 // - the macro is not always available.
[all …]
/freebsd/crypto/openssl/crypto/bio/
H A Dbss_fd.c2 * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
42 * in kernel-side per-process table], corresponding descriptors on
44 * in a user-land, non-global table. Well, in fact they are indexes
92 bi->init = 0; in fd_new()
93 bi->num = -1; in fd_new()
94 bi->ptr = NULL; in fd_new()
95 bi->flags = BIO_FLAGS_UPLINK_INTERNAL; /* essentially redundant */ in fd_new()
103 if (a->shutdown) { in fd_free()
104 if (a->init) { in fd_free()
105 UP_close(a->num); in fd_free()
[all …]
H A Dbss_sock.c2 * Copyright 1995-2023 The OpenSSL Project Authors. All Rights Reserved.
22 /* Watt-32 uses same names */
81 * Thus, it is not a problem to call it for non-TLS sockets. in BIO_new_socket()
91 bi->init = 0; in sock_new()
92 bi->num = 0; in sock_new()
93 bi->flags = 0; in sock_new()
94 bi->ptr = OPENSSL_zalloc(sizeof(struct bss_sock_st)); in sock_new()
95 if (bi->ptr == NULL) in sock_new()
104 if (a->shutdown) { in sock_free()
105 if (a->init) { in sock_free()
[all …]
/freebsd/contrib/lib9p/pytest/
H A Dlerrno.py77 EPROTO = 71 variable
159 EXDEV: 'Cross-device link',
171 EROFS: 'Read-only filesystem',
210 EPROTO: 'Protocol error',
227 ENOTSOCK: 'Socket operation on non-socket',
271 ERFKILL: 'Operation not possible due to RF-kill',
H A Dp9err.py6 Note that there is no native-to-9P2000 (plain) translation
94 'EPROTO',
/freebsd/lib/libc/nls/
H A Dru_RU.KOI8-R.msg2 $ Message catalog for ru_RU.KOI8-R locale
189 $ EPROTO
233 16 ��������� ������� ����-�����
247 23 ����-����� ��������
H A Dja_JP.UTF-8.msg2 $ Message catalog for ja_JP.UTF-8 locale
189 $ EPROTO
H A Dzh_CN.UTF-8.msg2 $ Message catalog for zh_CN.UTF-8 locale
189 $ EPROTO
H A Dzh_CN.GB2312.msg4 $ Derived from FreeBSD: head/lib/libc/nls/zh_CN.UTF-8.msg 244756 2012-12-28 01:09:30Z delphij
191 $ EPROTO
/freebsd/sys/compat/linux/
H A Dlinux_errno.inc1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 1994-1996 Søren Schmidt
33 * Linux: include/uapi/asm-generic/errno-base.h
34 * include/uapi/asm-generic/errno.h
41 [0] = -0,
42 [EPERM] = -LINUX_EPERM,
43 [ENOENT] = -LINUX_ENOENT,
44 [ESRCH] = -LINUX_ESRCH,
45 [EINTR] = -LINUX_EINTR,
[all …]

123