Home
last modified time | relevance | path

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

12345678910>>...43

/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_cma.c1 /*-
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 Dib_addr.c1 /*-
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 Dmpc5200.txt1 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/sys/arm/ti/twl/
H A Dtwl.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
35 * This code is based on the Linux TWL multifunctional device driver, which is
36 * copyright (C) 2005-2006 Texas Instruments, Inc.
72 /* TWL device IDs */
78 /* Each TWL device typically has more than one I2C address */
112 #define TWL_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx)
113 #define TWL_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx)
115 mtx_init(&_sc->sc_mtx, device_get_nameunit(_sc->sc_dev), \
117 #define TWL_LOCK_DESTROY(_sc) mtx_destroy(&_sc->sc_mtx);
[all …]
/freebsd/contrib/wireguard-tools/
H A Dshow.c1 // 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 Dshowconf.c1 // 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 Dbhnd_erom.c1 /*-
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 Dusb_fdt_support.c1 /*-
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 Dbootinfo32.c1 /*-
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 Dsdiob.c1 /*-
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-ho
141 sdiob_rw_direct_sc(struct sdiob_softc * sc,uint8_t fn,uint32_t addr,bool wr,uint8_t * val) sdiob_rw_direct_sc() argument
194 sdio_rw_direct(device_t dev,uint8_t fn,uint32_t addr,bool wr,uint8_t * val) sdio_rw_direct() argument
208 sdiob_read_direct(device_t dev,uint8_t fn,uint32_t addr,uint8_t * val) sdiob_read_direct() argument
221 sdiob_write_direct(device_t dev,uint8_t fn,uint32_t addr,uint8_t val) sdiob_write_direct() argument
242 sdiob_rw_extended_cam(struct sdiob_softc * sc,uint8_t fn,uint32_t addr,bool wr,uint8_t * buffer,bool incaddr,uint32_t b_count,uint16_t blksz) sdiob_rw_extended_cam() argument
373 sdiob_rw_extended_sc(struct sdiob_softc * sc,uint8_t fn,uint32_t addr,bool wr,uint32_t size,uint8_t * buffer,bool incaddr) sdiob_rw_extended_sc() argument
428 sdiob_rw_extended(device_t dev,uint8_t fn,uint32_t addr,bool wr,uint32_t size,uint8_t * buffer,bool incaddr) sdiob_rw_extended() argument
442 sdiob_read_extended(device_t dev,uint8_t fn,uint32_t addr,uint32_t size,uint8_t * buffer,bool incaddr) sdiob_read_extended() argument
450 sdiob_write_extended(device_t dev,uint8_t fn,uint32_t addr,uint32_t size,uint8_t * buffer,bool incaddr) sdiob_write_extended() argument
649 sdio_read_direct_sc(struct sdiob_softc * sc,uint8_t fn,uint32_t addr,uint8_t * val) sdio_read_direct_sc() argument
667 uint32_t addr; sdio_func_read_cis() local
785 sdio_get_common_cis_addr(struct sdiob_softc * sc,uint32_t * addr) sdio_get_common_cis_addr() argument
[all...]
/freebsd/sys/dev/bhnd/bhndb/
H A Dbhndb_pci.c1 /*-
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 Dbhnd_erom.91 .\" 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 Dpci_emul.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
213 * emul is a string describing the type of PCI device e.g. virtio-net
214 * config is an optional string, depending on the device, that can be
217 * 1,virtio-net,tap0
228 * Helper function to parse a list of comma-separated options where
256 * PCI device configuration is stored in MIBs that encode the device's
262 * leading zeroes. Each valid device must have a "device" node which
263 * identifies the driver model of the device.
265 * Device backends can provide a parser for the "config" string. If
[all …]
/freebsd/contrib/wpa/src/p2p/
H A Dp2p_group.c2 * 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/usr.sbin/pciconf/
H A Dpciconf.834 .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 addr Op start Ns 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/contrib/wpa/src/wps/
H A Dwps.h2 * 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/share/man/man4/
H A Djedec_dimm.42 .\" 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 Disl.434 .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 Dbootinfo32.c1 /*-
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 Dusbconfig.82 .\" 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 Dntptrap1 #!/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/sys/dev/smbus/
H A Dsmbus.c1 /*-
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 Dif_muge.c1 /*-
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 Damdsbwd.c1 /*-
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.03.pdf
36 * - AMD SB700/710/750 Register Reference Guide (RRG)
38 * - AMD SB700/710/750 Register Programming Requirements (RPR)
40 * - AM
280 amdsbwd_probe_sb7xx(device_t dev,struct resource * pmres,uint32_t * addr) amdsbwd_probe_sb7xx() argument
321 amdsbwd_probe_sb8xx(device_t dev,struct resource * pmres,uint32_t * addr) amdsbwd_probe_sb8xx() argument
376 amdsbwd_probe_fch41(device_t dev,struct resource * pmres,uint32_t * addr) amdsbwd_probe_fch41() argument
425 uint32_t addr; amdsbwd_probe() local
[all...]
/freebsd/sys/cam/scsi/
H A Dscsi_enc.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
90 CTASSERT(nitems(elm_type_names) - 1 == ELMTYP_LAST);
115 * receive async callbacks like "new device found". in enc_init()
136 enc = (struct enc_softc *)periph->softc; in enc_devgonecb()
143 for (i = 0; i < enc->open_count; i++) in enc_devgonecb()
146 enc->open_count = 0; in enc_devgonecb()
149 * Release the reference held for the device node, it is gone now. in enc_devgonecb()
168 enc = periph->softc; in enc_oninvalidate()
170 enc->enc_flags |= ENC_FLAG_INVALID; in enc_oninvalidate()
[all …]

12345678910>>...43