Home
last modified time | relevance | path

Searched +full:device +full:- +full:handle (Results 1 – 25 of 1057) sorted by relevance

12345678910>>...43

/freebsd/contrib/libpcap/
H A Dpcap-rdmasniff.c33 #include "pcap-int.h"
34 #include "pcap-rdmasniff.h"
65 rdmasniff_stats(pcap_t *handle, struct pcap_stat *stat) in rdmasniff_stats() argument
67 struct pcap_rdmasniff *priv = handle->priv; in rdmasniff_stats()
69 stat->ps_recv = priv->packets_recv; in rdmasniff_stats()
70 stat->ps_drop = 0; in rdmasniff_stats()
71 stat->ps_ifdrop = 0; in rdmasniff_stats()
77 rdmasniff_cleanup(pcap_t *handle) in rdmasniff_cleanup() argument
79 struct pcap_rdmasniff *priv = handle->priv; in rdmasniff_cleanup()
81 ibv_dereg_mr(priv->mr); in rdmasniff_cleanup()
[all …]
H A Dpcap-linux.c2 * pcap-linux.c: Packet capture interface to the Linux kernel
5 * Sebastian Krahmer <krahmer@cs.uni-potsdam.de>
36 * Monitor-mode support for mac80211 includes code taken from the iw
99 #include "pcap-int.h"
100 #include "pcap-util.h"
105 #include "diag-control.h"
124 * least some people are doing cross-builds for MIPS with older versions
135 (__atomic_load_n(&pkt->tp_status, __ATOMIC_ACQUIRE) != TP_STATUS_KERNEL)
137 (__atomic_store_n(&pkt->tp_status, TP_STATUS_KERNEL, __ATOMIC_RELEASE))
139 (__atomic_load_n(&pkt->hdr.bh1.block_status, __ATOMIC_ACQUIRE) != TP_STATUS_KERNEL)
[all …]
H A Dpcap-bt-linux.c37 #include "pcap-int.h"
38 #include "pcap-bt-linux.h"
40 #include "diag-control.h"
68 int dev_id; /* device ID of device we're bound to */
94 snprintf(err_str, PCAP_ERRBUF_SIZE, "Can't allocate %zu bytes for Bluetooth device list", in bt_findalldevs()
104 * https://github.com/the-tcpdump-group/libpcap/issues/1083 in bt_findalldevs()
108 dev_list->dev_num = HCI_MAX_DEV; in bt_findalldevs()
113 errno, "Can't get Bluetooth device list via ioctl"); in bt_findalldevs()
118 dev_req = dev_list->dev_req; in bt_findalldevs()
119 for (i = 0; i < dev_list->dev_num; i++, dev_req++) { in bt_findalldevs()
[all …]
H A Dpcap-haiku.c2 * Copyright 2006-2010, Haiku, Inc. All Rights Reserved.
6 * Axel Dörfler, axeld@pinc-software.de
12 #include "pcap-int.h"
34 // integer value didn't change). Even though IFT_TUN is a no-op in versions
56 pcap_read_haiku(pcap_t* handle, int maxPackets _U_, pcap_handler callback, in pcap_read_haiku() argument
61 u_char* buffer = (u_char*)handle->buffer; in pcap_read_haiku()
64 if (handle->break_loop) { in pcap_read_haiku()
65 handle->break_loop = 0; in pcap_read_haiku()
68 bytesReceived = recvfrom(handle->fd, buffer, handle->bufsize, MSG_TRUNC, in pcap_read_haiku()
82 pcapint_fmt_errmsg_for_errno(handle->errbuf, PCAP_ERRBUF_SIZE, in pcap_read_haiku()
[all …]
H A Dpcap-usb-linux.c39 #include "pcap-int.h"
40 #include "pcap-usb-linux.h"
41 #include "pcap-usb-linux-common.h"
72 #include "diag-control.h"
77 #define USBMON_DEV_PREFIX_LEN (sizeof USBMON_DEV_PREFIX - 1)
127 u_char *mmapbuf; /* memory-mapped region pointer */
142 /* facility to add an USB device to the device list*/
150 * XXX - is there any notion of "up" and "running"? in usb_dev_add()
161 return -1; in usb_dev_add()
164 * XXX - is there a way to determine whether anything's in usb_dev_add()
[all …]
H A Dpcap.3pcap.in22 pcap \- Packet Capture library
49 caller, as being in UTF-8.
51 On UNIX-like systems, the local character encoding is assumed to be
52 UTF-8, so no character encoding transformations are done.
62 does not attempt to handle UTF-16LE strings.
69 will succeed if there is a device on which to capture, and
72 UTF-16LE string - note that this attempt is unsafe, as it may run past
73 the end of the string - to handle
75 returning a UTF-16LE string. Programs that don't call
91 .SS Opening a capture handle for reading
[all …]
H A Dpcap-bt-monitor-linux.c43 #include "pcap-int.h"
44 #include "diag-control.h"
46 #include "pcap-bt-monitor-linux.h"
49 #define INTERFACE_NAME "bluetooth-monitor"
77 * This is a device to monitor all Bluetooth interfaces, so in bt_monitor_findalldevs()
80 * for the "any" device. in bt_monitor_findalldevs()
93 bt_monitor_read(pcap_t *handle, int max_packets _U_, pcap_handler callback, u_char *user) in bt_monitor_read() argument
104 pktd = (u_char *)handle->buffer + BT_CONTROL_SIZE; in bt_monitor_read()
110 iv[1].iov_len = handle->snapshot; in bt_monitor_read()
116 msg.msg_control = handle->buffer; in bt_monitor_read()
[all …]
H A Dpcap-septel.c2 * pcap-septel.c: Packet capture interface for Intel/Septel card.
16 #include "pcap-int.h"
30 #include "pcap-septel.h"
45 * for each of them. Returns the number of packets handled, -1 if an
46 * error occurred, or -2 if we were told to break out of the loop.
50 struct pcap_septel *ps = p->priv; in septel_read()
59 * LOCAL 0xdd * upe - Example user part task */ in septel_read()
75 if (p->break_loop) { in septel_read()
77 * Yes - clear the flag that indicates that in septel_read()
78 * it has, and return -2 to indicate that in septel_read()
[all …]
/freebsd/sys/contrib/edk2/Include/Library/
H A DDevicePathLib.h2 Provides library functions to construct and parse UEFI Device Paths.
7 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
8 SPDX-License-Identifier: BSD-2-Clause-Patent
18 Determine whether a given device path is valid.
20 @param DevicePath A pointer to a device path data structure.
21 @param MaxSize The maximum size of the device path data structure.
41 Returns the Type field of a device path node.
43 Returns the Type field of the device path node specified by Node.
47 @param Node A pointer to a device path node data structure.
49 @return The Type field of the device path node specified by Node.
[all …]
/freebsd/sys/dev/drm2/
H A Ddrm_context.c39 * 2001-11-16 Torsten Duwe <duwe@caldera.de>
51 * Free a handle from the context bitmap.
53 * \param dev DRM device.
54 * \param ctx_handle context handle.
63 dev->ctx_bitmap == NULL) { in drm_ctxbitmap_free()
64 DRM_ERROR("Attempt to free invalid context handle: %d\n", in drm_ctxbitmap_free()
70 clear_bit(ctx_handle, dev->ctx_bitmap); in drm_ctxbitmap_free()
71 dev->context_sareas[ctx_handle] = NULL; in drm_ctxbitmap_free()
78 * \param dev DRM device.
79 * \return (non-negative) context handle on success or a negative number on failure.
[all …]
H A Ddrm_agpsupport.c42 * \param inode device inode.
48 * Verifies the AGP device has been initialized and acquired and fills in the
55 if (!dev->agp || !dev->agp->acquired) in drm_agp_info()
56 return -EINVAL; in drm_agp_info()
58 kern = &dev->agp->agp_info; in drm_agp_info()
59 agp_get_info(dev->agp->bridge, kern); in drm_agp_info()
60 info->agp_version_major = 1; in drm_agp_info()
61 info->agp_version_minor = 0; in drm_agp_info()
62 info->mode = kern->ai_mode; in drm_agp_info()
63 info->aperture_base = kern->ai_aperture_base; in drm_agp_info()
[all …]
/freebsd/sys/dev/mpr/
H A Dmpr_mapping.h1 /*-
2 * Copyright (c) 2011-2015 LSI Corp.
3 * Copyright (c) 2013-2016 Avago Technologies
4 * Copyright 2000-2020 Broadcom Inc.
28 * Broadcom Inc. (LSI) MPT-Fusion Host Adapter FreeBSD
35 * struct _map_phy_change - PHY entries received in Topology change list
36 * @physical_id: SAS address of the device attached with the associate PHY
37 * @device_info: bitfield provides detailed info about the device
38 * @dev_handle: device handle for the device pointed by this entry
41 * @is_SATA_SSD: 1 if this is a SATA device AND an SSD, 0 otherwise
[all …]
H A Dmpr_sas_lsi.c1 /*-
2 * Copyright (c) 2011-2015 LSI Corp.
3 * Copyright (c) 2013-2016 Avago Technologies
4 * Copyright 2000-2020 Broadcom Inc.
28 * Broadcom Inc. (LSI) MPT-Fusion Host Adapter FreeBSD
104 * define the IDENTIFY DEVICE structure
107 u16 reserved1[10]; /* 0-9 */
108 u16 serial_number[10]; /* 10-19 */
109 u16 reserved2[7]; /* 20-26 */
110 u16 model_number[20]; /* 27-46*/
[all …]
/freebsd/lib/libdevinfo/
H A Ddevinfo.340 .Nd device and resource information utility library
50 .Fn devinfo_handle_to_device "devinfo_handle_t handle"
52 .Fn devinfo_handle_to_resource "devinfo_handle_t handle"
54 .Fn devinfo_handle_to_rman "devinfo_handle_t handle"
81 library provides access to the kernel's internal device hierarchy
92 Device, resource, and resource manager information is returned in
95 .Bd -literal -offset indent
97 devinfo_handle_t dd_handle; /* device handle */
98 devinfo_handle_t dd_parent; /* parent handle */
99 char *dd_name; /* name of device */
[all …]
H A Ddevinfo.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
37 #define DEVINFO_ROOT_DEVICE ((devinfo_handle_t)-1)
42 devinfo_handle_t dd_handle; /* device handle */
43 devinfo_handle_t dd_parent; /* parent handle */
45 char *dd_name; /* name of device */
[all...]
/freebsd/lib/libgpio/
H A Dgpio.c1 /*-
2 * Copyright (c) 2013-2014 Rui Paulo <rpaulo@FreeBSD.org>
41 char device[16]; in gpio_open() local
43 snprintf(device, sizeof(device), "/dev/gpioc%u", unit); in gpio_open()
45 return (gpio_open_device(device)); in gpio_open()
49 gpio_open_device(const char *device) in gpio_open_device() argument
54 fd = open(device, O_RDONLY); in gpio_open_device()
71 gpio_close(gpio_handle_t handle) in gpio_close() argument
73 close(handle); in gpio_close()
77 gpio_pin_list(gpio_handle_t handle, gpio_config_t **pcfgs) in gpio_pin_list() argument
[all …]
/freebsd/stand/efi/libefi/
H A Deficom.c1 /*-
38 #define PNP0501 0x501 /* 16550A-compatible COM port */
49 EFI_HANDLE currdev; /* current serial device */
50 EFI_HANDLE condev; /* EFI Console device */
104 status = BS->LocateHandle(ByProtocol, &serial, NULL, &bufsz, handles); in efi_serial_init()
113 * get handle array in efi_serial_init()
115 status = BS->LocateHandle(ByProtocol, &serial, NULL, &bufsz, handles); in efi_serial_init()
125 * Find serial device number from device path.
126 * Return -1 if not found.
144 if (acpi->HID == EISA_PNP_ID(PNP0501)) { in efi_serial_get_index()
[all …]
/freebsd/usr.sbin/bluetooth/hccontrol/
H A Dlink_policy.c1 /*-
4 * SPDX-License-Identifier: BSD-2-Clause
6 * Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com>
51 /* connection handle */ in hci_role_discovery()
77 fprintf(stdout, "Connection handle: %d\n", le16toh(rp.con_handle)); in hci_role_discovery()
103 memcpy(&cp.bdaddr, he->h_addr, sizeof(cp.bdaddr)); in hci_switch_role()
137 if (e->event == NG_HCI_EVENT_ROLE_CHANGE) { in hci_switch_role()
140 if (ep->status != 0x00) { in hci_switch_role()
142 hci_status2str(ep->status), ep->status); in hci_switch_role()
146 fprintf(stdout, "BD_ADDR: %s\n", hci_bdaddr2str(&ep->bdaddr)); in hci_switch_role()
[all …]
/freebsd/share/man/man9/
H A Dbus_space.9153 .Fa "bus_space_tag_t space" "bus_space_handle_t handle" "bus_size_t size"
157 .Fa "bus_space_tag_t space" "bus_space_handle_t handle"
168 .Fa "bus_space_tag_t space" "bus_space_handle_t handle" "bus_size_t size"
172 .Fa "bus_space_tag_t space" "bus_space_handle_t handle" "bus_size_t offset"
177 .Fa "bus_space_tag_t space" "bus_space_handle_t handle" "bus_size_t offset"
182 .Fa "bus_space_tag_t space" "bus_space_handle_t handle" "bus_size_t offset"
187 .Fa "bus_space_tag_t space" "bus_space_handle_t handle" "bus_size_t offset"
192 .Fa "bus_space_tag_t space" "bus_space_handle_t handle" "bus_size_t offset"
197 .Fa "bus_space_tag_t space" "bus_space_handle_t handle" "bus_size_t offset"
202 .Fa "bus_space_tag_t space" "bus_space_handle_t handle" "bus_size_t offset"
[all …]
/freebsd/sys/vm/
H A Ddevice_pager.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
70 /* list of device pager objects */
95 static int old_dev_pager_ctor(void *handle, vm_ooffset_t size, vm_prot_t prot,
97 static void old_dev_pager_dtor(void *handle);
100 static void old_dev_pager_path(void *handle, char *path, size_t len);
118 cdev_pager_lookup(void *handle) in cdev_pager_lookup() argument
124 object = vm_pager_object_lookup(&dev_pager_object_list, handle); in cdev_pager_lookup()
125 if (object != NULL && object->un_pager.devp.handle == NULL) { in cdev_pager_lookup()
126 msleep(&object->un_pager.devp.handle, &dev_pager_mtx, in cdev_pager_lookup()
[all …]
/freebsd/sys/dev/pms/RefTisa/tisa/sassata/sata/host/
H A Dsatproto.h2 *Copyright (c) 2014 PMC-Sierra, Inc. All rights reserved.
155 * \param tiDeviceHandle: Pointer to TISA device handle for this I/O.
160 * - \e tiSuccess: I/O request successfully initiated.
161 * - \e tiBusy: No resources available, try again later.
162 * - \e tiIONoDevice: Invalid device handle.
163 * - \e tiError: Other errors.
185 * This function creates DEVICE RESET fis and sends the request to LL layer
189 * \param tiDeviceHandle: Pointer to TISA device handle for this I/O.
194 * - \e tiSuccess: I/O request successfully initiated.
195 * - \e tiBusy: No resources available, try again later.
[all …]
/freebsd/sys/contrib/edk2/Include/Uefi/
H A DUefiSpec.h8 Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
11 SPDX-License-Identifier: BSD-2-Clause-Patent
70 // Note: UEFI spec 2.5 and following: use EFI_MEMORY_RO as write-protected physical memory
79 // The memory region supports byte-addressable non-volatility.
91 // Specific-purpose memory (SPM). The memory is earmarked for
92 // specific purposes such as for specific device drivers or applications.
194 @retval EFI_INVALID_PARAMETER Memory is not a page-aligned address or Pages is invalid.
314 …@param[in] ControllerHandle The handle of the controller to which driver(s) are to be connec…
317 @param[in] RemainingDevicePath A pointer to the device path that specifies a child of the
326 RemainingDevicePath is not NULL, and it is an End Device
[all …]
/freebsd/sys/dev/acpica/
H A Dacpi_pci.c1 /*-
90 static ACPI_STATUS acpi_pci_save_handle(ACPI_HANDLE handle, UINT32 level,
94 static void acpi_pci_update_device(ACPI_HANDLE handle, device_t pci_child);
99 /* Device interface */
135 return (&dinfo->ap_dinfo); in acpi_pci_alloc_devinfo()
146 *result = (uintptr_t)dinfo->ap_handle; in acpi_pci_read_ivar()
149 *result = (uintptr_t)dinfo->ap_flags; in acpi_pci_read_ivar()
163 dinfo->ap_handle = (ACPI_HANDLE)value; in acpi_pci_write_ivar()
166 dinfo->ap_flags = (int)value; in acpi_pci_write_ivar()
177 if (acpi_get_device(dinfo->ap_handle) == child) in acpi_pci_child_deleted()
[all …]
/freebsd/sys/dev/isci/scil/
H A Dscif_remote_device.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0
9 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
22 * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
28 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
61 * by an SCI Framework user on a remote device object. The
62 * framework remote device object provides management of resets for
63 * the remote device, IO thresholds, potentially NCQ tag management,
78 * maximum request queue depth associated with a remote device.
84 * store a remote device object. The value returned includes enough
[all …]
/freebsd/lib/libusb/
H A Dlibusb.333 .Pq libusb, -lusb
39 library contains interfaces for directly managing a usb device.
52 argument is non-NULL, a pointer to the libusb context is stored at
62 argument is non-NULL, a pointer to the libusb context is stored at
79 This function will return non-zero if the given
85 .Bl -tag -width LIBUSB_CAP -offset indent
126 device in the list.
144 Returns the number of the bus contained by the device
[all...]

12345678910>>...43