| /freebsd/sys/ofed/drivers/infiniband/core/ |
| H A D | ib_cma.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0 5 * Copyright (c) 2002-2005, Network Appliance, Inc. All rights reserved. 6 * Copyright (c) 1999-2005, Mellanox Technologies, Inc. All rights reserved. 7 * Copyright (c) 2005-2006 Intel Corporation. All rights reserved. 19 * - Redistributions of source code must retain the above 23 * - Redistributions in binary form must reproduce the above 100 [RDMA_CM_EVENT_DEVICE_REMOVAL] = "device removal", 119 if (rdma_ib_or_roce(id->device, id->port_num)) in rdma_reject_msg() 122 if (rdma_protocol_iwarp(id->device, id->port_num)) in rdma_reject_msg() [all …]
|
| H A D | ib_addr.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0 5 * Copyright (c) 2002-2005, Network Appliance, Inc. All rights reserved. 6 * Copyright (c) 1999-2019, Mellanox Technologies, Inc. All rights reserved. 19 * - Redistributions of source code must retain the above 23 * - Redistributions in binary form must reproduce the above 63 struct rdma_dev_addr *addr; member 67 struct rdma_dev_addr *addr, void *context); 79 int rdma_addr_size(struct sockaddr *addr) in rdma_addr_size() argument 81 switch (addr->sa_family) { in rdma_addr_size() [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/powerpc/fsl/ |
| H A D | mpc5200.txt | 1 MPC5200 Device Tree Bindings 2 ---------------------------- 4 (c) 2006-2009 Secret Lab Technologies Ltd 8 ------------------ 9 For mpc5200 on-chip devices, the format for each compatible value is 10 <chip>-<device>[-<mode>]. The OS should be able to match a device driver 11 to the device based solely on the compatible value. If two drivers 21 "fsl,mpc5200-<device>". 27 To express this information as completely as possible, 5200B device trees 29 compatible = "fsl,mpc5200b-<device>","fsl,mpc5200-<device>"; [all …]
|
| /freebsd/contrib/wireguard-tools/ |
| H A D | show.c | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 3 * Copyright (C) 2015-2020 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. 32 …if (!a->last_handshake_time.tv_sec && !a->last_handshake_time.tv_nsec && (b->last_handshake_time.t… in peer_cmp() 34 …if (!b->last_handshake_time.tv_sec && !b->last_handshake_time.tv_nsec && (a->last_handshake_time.t… in peer_cmp() 35 return -1; in peer_cmp() 36 diff = a->last_handshake_time.tv_sec - b->last_handshake_time.tv_sec; in peer_cmp() 38 diff = a->last_handshake_time.tv_nsec - b->last_handshake_time.tv_nsec; in peer_cmp() 42 return -1; in peer_cmp() 47 static void sort_peers(struct wgdevice *device) in sort_peers() argument 52 for_each_wgpeer(device, peer) in sort_peers() [all …]
|
| H A D | showconf.c | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 3 * Copyright (C) 2015-2020 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. 25 struct wgdevice *device = NULL; in showconf_main() local 35 if (ipc_get_device(&device, argv[1])) { in showconf_main() 41 if (device->listen_port) in showconf_main() 42 printf("ListenPort = %u\n", device->listen_port); in showconf_main() 43 if (device->fwmark) in showconf_main() 44 printf("FwMark = 0x%x\n", device->fwmark); in showconf_main() 45 if (device->flags & WGDEVICE_HAS_PRIVATE_KEY) { in showconf_main() 46 key_to_base64(base64, device->private_key); in showconf_main() [all …]
|
| /freebsd/sys/dev/bhnd/ |
| H A D | bhnd_erom.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 52 static int bhnd_erom_iores_map(struct bhnd_erom_io *eio, bhnd_addr_t addr, 55 bhnd_addr_t *addr, bhnd_size_t *size); 60 static int bhnd_erom_iobus_map(struct bhnd_erom_io *eio, bhnd_addr_t addr, 63 bhnd_addr_t *addr, bhnd_size_t *size); 73 device_t owner; /**< device from which we'll allocate resources */ 76 int mapped_rid; /**< resource ID of current mapping, or -1 */ 80 * Fetch the device enumeration parser class from all bhnd(4)-compatible drivers 84 * @param bus_devclass The bus device class to be queried for [all …]
|
| /freebsd/sys/dev/usb/ |
| H A D | usb_fdt_support.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 48 * devices between the controller and any arbitrary device on the bus. The 49 * stack ends with the device itself, so add 1 to the max hub nesting depth. 62 * USB device nodes in FDT have a compatible string of "usb" followed by in find_udev_in_children() 64 * in the standard 'reg' property; it is one-based in the FDT data, but in find_udev_in_children() 65 * usb_device.port_index is zero-based. To uniquely identify a device, in find_udev_in_children() 69 UGETW(udev->ddesc.idVendor), UGETW(udev->ddesc.idProduct)); in find_udev_in_children() 76 if (port == (udev->port_index + 1)) in find_udev_in_children() 79 return (-1); in find_udev_in_children() [all …]
|
| /freebsd/stand/i386/libi386/ |
| H A D | bootinfo32.c | 1 /*- 47 * - The 'boothowto' argument is constructed 48 * - The 'bootdev' argument is constructed 49 * - The 'bootinfo' struct is constructed, and copied into the kernel space. 50 * - The kernel environment is copied into kernel space. 51 * - Module metadata are formatted and placed in kernel space. 59 vm_offset_t addr; in bi_load32() local 72 * Allow the environment variable 'rootdev' to override the supplied device in bi_load32() 79 printf("can't determine root device\n"); in bi_load32() 83 /* Try reading the /etc/fstab file to select the root device */ in bi_load32() [all …]
|
| /freebsd/sys/dev/sdio/ |
| H A D | sdiob.c | 1 /*- 3 * Copyright (c) 2018-2019 The FreeBSD Foundation 36 * Group. This Simplified Specification is provided on a non-confidential 39 * Association, SD Group, SD-3C LLC or other third parties. 45 * is provided "AS-IS" without any representations or warranties of any 46 * kind. No responsibility is assumed by the SD Group, SD-3C LLC or the SD 48 * right of the SD Group, SD-3C LLC, the SD Card Association or any third 51 * SD Group, SD-3C LLC, the SD Card Association or any third party. Nothing 52 * herein shall be construed as an obligation by the SD Group, the SD-3C LLC 54 * information, know-how or other confidential information to any third party. [all …]
|
| /freebsd/sys/dev/bhnd/bhndb/ |
| H A D | bhndb_pci.c | 1 /*- 2 * Copyright (c) 2015-2016 Landon Fuller <landon@landonf.org> 36 * PCI-specific implementation for the BHNDB bridge driver. 38 * Provides support for bridging from a PCI parent bus to a BHND-compatible 39 * bus (e.g. bcma or siba) via a Broadcom PCI core configured in end-point 42 * This driver handles all initial generic host-level PCI interactions with a 44 * bus has been enumerated, this driver works in tandem with a core-specific 117 bhnd_addr_t addr, bhnd_size_t offset, 120 bhnd_addr_t addr, bhnd_size_t offset, u_int width); 125 bhnd_addr_t addr, bhnd_size_t size); [all …]
|
| /freebsd/share/man/man9/ |
| H A D | bhnd_erom.9 | 1 .\" Copyright (c) 2015-2016 Landon Fuller <landonf@FreeBSD.org> 51 .Nd BHND device enumeration table parsing 124 .Fa "bhnd_addr_t *addr" 137 .Fa "bhnd_addr_t addr" 149 .Fa "bhnd_addr_t addr" 159 .Bd -literal 169 .Fa "bhnd_addr_t addr" 186 framework provides a common parser interface to the BHND device enumeration 195 bus device and determine whether the erom class 197 is capable of parsing its device enumeration table. [all …]
|
| /freebsd/usr.sbin/bhyve/ |
| H A D | pci_emul.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 214 * emul is a string describing the type of PCI device e.g. virtio-net 215 * config is an optional string, depending on the device, that can be 218 * 1,virtio-net,tap0 229 * Helper function to parse a list of comma-separated options where 257 * PCI device configuration is stored in MIBs that encode the device's 263 * leading zeroes. Each valid device must have a "device" node which 264 * identifies the driver model of the device. 266 * Device backends can provide a parser for the "config" string. If [all …]
|
| /freebsd/contrib/wpa/src/p2p/ |
| H A D | p2p_group.c | 2 * Wi-Fi Direct - P2P group operations 3 * Copyright (c) 2009-2010, Atheros Communications 23 u8 addr[ETH_ALEN]; /* P2P Interface Address */ member 24 u8 dev_addr[ETH_ALEN]; /* P2P Device Address */ 32 * struct p2p_group - Internal P2P module per-group data 55 groups = os_realloc_array(p2p->groups, p2p->num_groups + 1, in p2p_group_init() 61 groups[p2p->num_groups++] = group; in p2p_group_init() 62 p2p->groups = groups; in p2p_group_init() 64 group->p2p = p2p; in p2p_group_init() 65 group->cfg = config; in p2p_group_init() [all …]
|
| /freebsd/contrib/wpa/src/wps/ |
| H A D | wps.h | 2 * Wi-Fi Protected Setup 3 * Copyright (c) 2007-2016, Jouni Malinen <j@w1.fi> 16 * enum wsc_op_code - EAP-WSC OP-Code values 34 * struct wps_credential - WPS Credential 71 * struct wps_device_data - WPS Device Data 72 * @mac_addr: Device MAC address 73 * @device_name: Device Name (0..32 octets encoded in UTF-8) 74 * @manufacturer: Manufacturer (0..64 octets encoded in UTF-8) 75 * @model_name: Model Name (0..32 octets encoded in UTF-8) 76 * @model_number: Model Number (0..32 octets encoded in UTF-8) [all …]
|
| /freebsd/sys/compat/linuxkpi/common/include/linux/ |
| H A D | etherdevice.h | 1 /*- 2 * Copyright (c) 2015-2016 Mellanox Technologies, Ltd. All rights reserved. 29 #include <linux/device.h> 56 is_zero_ether_addr(const u8 * addr) in is_zero_ether_addr() argument 58 return ((addr[0] | addr[1] | addr[2] | addr[3] | addr[4] | addr[5]) == in is_zero_ether_addr() 63 is_unicast_ether_addr(const u8 * addr) in is_unicast_ether_addr() argument 65 return ((addr[0] & 0x01) == 0x00); in is_unicast_ether_addr() 69 is_multicast_ether_addr(const u8 * addr) in is_multicast_ether_addr() argument 71 return ((addr[0] & 0x01) == 0x01); in is_multicast_ether_addr() 75 is_broadcast_ether_addr(const u8 * addr) in is_broadcast_ether_addr() argument [all …]
|
| /freebsd/share/man/man4/ |
| H A D | jedec_dimm.4 | 2 .\" SPDX-License-Identifier: BSD-2-Clause 34 .Bd -ragged -offset indent 35 .Cd "device jedec_dimm" 36 .Cd "device smbus" 42 .Bd -literal -offset indent 47 .Pa /boot/device.hints : 48 .Bd -literal -offset indent 50 .Cd hint.jedec_dimm.0.addr="0xa0" 71 interface; all values are read-only: 72 .Bl -tag -width "dev.jedec_dimm.X.capacity" [all …]
|
| H A D | isl.4 | 34 .Bd -ragged -offset indent 35 .Cd "device isl" 36 .Cd "device ig4" 37 .Cd "device iicbus" 42 .Bd -literal -offset indent 54 .Pa /boot/device.hints : 56 .Cd hint.isl.0.addr="0x88" 58 .Cd hint.isl.1.addr="0x88" 70 .Xr device.hints 5 , 73 .Bl -tag -width "hint.isl.%d.addr" [all …]
|
| /freebsd/stand/userboot/userboot/ |
| H A D | bootinfo32.c | 1 /*- 46 * - The 'boothowto' argument is constructed 47 * - The 'bootdev' argument is constructed 48 * - The 'bootinfo' struct is constructed, and copied into the kernel space. 49 * - The kernel environment is copied into kernel space. 50 * - Module metadata are formatted and placed in kernel space. 58 vm_offset_t addr; in bi_load32() local 72 * Allow the environment variable 'rootdev' to override the supplied device in bi_load32() 79 printf("can't determine root device\n"); in bi_load32() 83 /* Try reading the /etc/fstab file to select the root device */ in bi_load32() [all …]
|
| /freebsd/usr.sbin/usbconfig/ |
| H A D | usbconfig.8 | 2 .\" Copyright (c) 2008-2019 Hans Petter Selasky. All rights reserved. 35 .Op Fl a Ar addr 42 .Oo Oo Cm /dev/ Oc Cm ugen Oc Ar unit Cm \&. Ar addr 54 .Bl -tag -width "-u unit" 55 .It Fl a Ar addr 56 Limit device range to the given USB device index. 61 .Oo Oo Cm /dev/ Oc Cm ugen Oc Ar unit Cm \&. Ar addr 64 Limit device range to USB devices connected to the given unit and address. 78 Limit device range to USB devices connected to the given USBUS unit. 91 .Bl -tag -width indent [all …]
|
| /freebsd/contrib/ntp/scripts/monitoring/ |
| H A D | ntptrap | 1 #!/local/bin/perl --*-perl-*- 8 ;# Rainer Pruy Friedrich-Alexander Universitaet Erlangen-Nuernberg 48 die("usage: $0 [-p <port>] [-l <logfile>] [host] ...\n"); 52 &Getopts if 0; # make -w happy 56 $opt_p = 0 # port to use locally - (0 does mean: will be chosen by kernel) 63 $DEBUGFILE="&STDERR" if $DEBUGFILE eq '-'; 126 ;# a Request element looks like: pack("a4SC",addr,associd,op) 131 local($name,$addr); 137 ($name,$addr) = 142 $addr = pack("C4",$1,$2,$3,$4); [all …]
|
| /freebsd/usr.sbin/pciconf/ |
| H A D | pciconf.8 | 34 .Fl l Oo Fl BbceVv Oc Op Ar device 36 .Fl a Ar device 38 .Fl r Oo Fl b | h Oc Ar device addr Ns Op : Ns Ar addr2 40 .Fl w Oo Fl b | h Oc Ar device addr value 42 .Fl D Oo Fl b | h | x Oc Ar device bar Op Ar start Op Ns Ar count 53 normally only the super-user. 60 .Bd -literal 61 foo0@pci0:0:4:0: class=0x010000 rev=0x01 hdr=0x00 vendor=0x1000 device=0x000f \ 63 bar0@pci0:0:5:0: class=0x000100 rev=0x00 hdr=0x00 vendor=0x88c1 device=0x5333 \ 65 none0@pci0:0:6:0: class=0x020000 rev=0x00 hdr=0x00 vendor=0x10ec device=0x8029 \ [all …]
|
| /freebsd/sys/dev/smbus/ |
| H A D | smbus.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 48 uint8_t addr; member 69 mtx_init(&sc->lock, device_get_nameunit(dev), "smbus", MTX_DEF); in smbus_attach() 86 mtx_destroy(&sc->lock); in smbus_detach() 125 int addr; in smbus_hinted_child() local 127 addr = 0; in smbus_hinted_child() 128 resource_int_value(dname, dunit, "addr", &addr); in smbus_hinted_child() 129 if (addr > UINT8_MAX) { in smbus_hinted_child() 131 " for %s%d\n", addr, dname, dunit); in smbus_hinted_child() [all …]
|
| /freebsd/sys/dev/usb/net/ |
| H A D | if_muge.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 33 * USB-To-Ethernet adapter driver for Microchip's LAN78XX and related families. 41 * USB 2 to 10/100/1000 Mbps Ethernet with built-in USB hub 44 * This driver is based on the if_smsc driver, with lan78xx-specific 48 * ------------------ 52 * - TX checksum offloading: Nothing has been implemented yet. 53 * - Direct address translation filtering: Implemented but untested. 54 * - VLAN tag removal. 55 * - Support for USB interrupt endpoints. [all …]
|
| /freebsd/sys/dev/amdsbwd/ |
| H A D | amdsbwd.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 34 * - AMD SB600 Register Reference Guide, Public Version, Rev. 3.03 (SB600 RRG) 35 …* http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/46155_sb600_rrg_pub_3.… 36 * - AMD SB700/710/750 Register Reference Guide (RRG) 38 * - AMD SB700/710/750 Register Programming Requirements (RPR) 40 * - AMD SB800-Series Southbridges Register Reference Guide (RRG) 43 * - Watchdog Timer Hardware Requirements for Windows Server 2003 (WDRT) 149 return (bus_read_4(sc->res_ctrl, 0)); in wdctrl_read() 155 bus_write_4(sc->res_ctrl, 0, val); in wdctrl_write() [all …]
|
| /freebsd/sys/cam/scsi/ |
| H A D | scsi_enc.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 89 CTASSERT(nitems(elm_type_names) - 1 == ELMTYP_LAST); 114 * receive async callbacks like "new device found". in enc_init() 135 enc = (struct enc_softc *)periph->softc; in enc_devgonecb() 142 for (i = 0; i < enc->open_count; i++) in enc_devgonecb() 145 enc->open_count = 0; in enc_devgonecb() 148 * Release the reference held for the device node, it is gone now. in enc_devgonecb() 167 enc = periph->softc; in enc_oninvalidate() 169 enc->enc_flags |= ENC_FLAG_INVALID; in enc_oninvalidate() [all …]
|