Home
last modified time | relevance | path

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

12345678910>>...41

/freebsd/sys/contrib/device-tree/Bindings/leds/
H A Dleds-netxbig.txt5 - compatible: "lacie,netxbig-leds".
6 - gpio-ext: Phandle for the gpio-ext bus.
9 - timers: Timer array. Each timer entry is represented by three integers:
10 Mode (gpio-ext bus), delay_on and delay_off.
12 Each LED is represented as a sub-node of the netxbig-leds device.
14 Required sub-node properties:
15 - mode-addr: Mode register address on gpio-ext bus.
16 - mode-val: Mode to value mapping. Each entry is represented by two integers:
17 A mode and the corresponding value on the gpio-ext bus.
18 - bright-addr: Brightness register address on gpio-ext bus.
[all …]
/freebsd/contrib/bsnmp/tests/
H A Dconstbuf.h2 * Copyright (c) 2019-2020 Hartmut Brandt.
36 #pragma clang diagnostic ignored "-Wgnu-string-literal-operator-template"
56 count_comment(A c, Constbuf_mode &mode) in count_comment() argument
59 mode = Constbuf_mode::BIN; in count_comment()
65 count_hex(A c, Constbuf_mode &mode, std::size_t &bits) in count_hex() argument
76 mode = Constbuf_mode::BIN; in count_hex()
82 handle_hex(A c, Constbuf_mode &mode, std::size_t &bit, U &n) in handle_hex() argument
85 n[bit / 8] |= ((c - '0') << 4) >> (bit % 8); in handle_hex()
90 n[bit / 8] |= ((c - 'a' + 10) << 4) >> (bit % 8); in handle_hex()
95 n[bit / 8] |= ((c - 'A' + 10) << 4) >> (bit % 8); in handle_hex()
[all …]
/freebsd/sys/contrib/device-tree/src/arm/marvell/
H A Dkirkwood-net5big.dts1 // SPDX-License-Identifier: GPL-2.0
9 * Based on netxbig_v2-setup.c,
14 /dts-v1/;
17 #include "kirkwood-6281.dtsi"
18 #include "kirkwood-netxbig.dtsi"
22 compatible = "lacie,net5big_v2", "lacie,netxbig", "marvell,kirkwood-88f6281", "marvell,kirkwood";
33 compatible = "regulator-fixed";
35 regulator-name = "hdd1power";
36 regulator-min-microvolt = <5000000>;
37 regulator-max-microvolt = <5000000>;
[all …]
H A Dkirkwood-netxbig.dtsi1 // SPDX-License-Identifier: GPL-2.0
9 * Based on netxbig_v2-setup.c,
14 #include <dt-bindings/leds/leds-netxbig.h>
16 #include "kirkwood-6281.dtsi"
21 stdout-path = &uart0;
33 #address-cells = <1>;
34 #size-cells = <1>;
35 compatible = "mxicy,mx25l4005a", "jedec,spi-nor";
37 spi-max-frequency = <20000000>;
38 mode = <0>;
[all …]
/freebsd/sys/contrib/device-tree/Bindings/powerpc/fsl/
H A Dmpc5200.txt2 ----------------------------
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
21 "fsl,mpc5200-<device>".
26 devices have extra functions but still have a backwards compatible mode.
29 compatible = "fsl,mpc5200b-<device>","fsl,mpc5200-<device>";
34 ie. ethernet on mpc5200: compatible = "fsl,mpc5200-fec";
35 ethernet on mpc5200b: compatible = "fsl,mpc5200b-fec", "fsl,mpc5200-fec";
[all …]
/freebsd/contrib/netbsd-tests/net/if_gif/
H A Dt_gif.sh1 # $NetBSD: t_gif.sh,v 1.9 2016/12/21 09:46:39 ozaki-r Exp $
64 DEBUG=${DEBUG:-true}
80 atf_check -s exit:0 rump.ifconfig shmif0 inet6 ${lan}
82 atf_check -s exit:0 rump.ifconfig shmif0 inet ${lan} netmask 0xffffff00
84 atf_check -s exit:0 rump.ifconfig shmif0 up
88 atf_check -s exit:0 rump.ifconfig shmif1 inet6 ${wan}
90 atf_check -s exit:0 rump.ifconfig shmif1 inet ${wan} netmask 0xff000000
92 atf_check -s exit:0 rump.ifconfig shmif1 up
105 atf_check -s exit:0 -o match:shmif0 rump.ifconfig
107 atf_check -s exit:0 -o ignore rump.ping6 -n -c 1 -X $TIMEOUT ${lan}
[all …]
/freebsd/usr.sbin/mtest/
H A Dmtest.82 .\" Copyright (c) 2007-2009 Bruce Simpson.
44 .Bl -tag -width "a ifname e.e.e.e e.e.e.e" -compact -offset indent
46 .It Ic a Ar ifname Ar mac-addr
47 Join the link-layer group address
48 .Ar mac-addr
53 .It Ic d Ar ifname Ar mac-addr
54 Leave the link-layer group address
55 .Ar mac-addr
59 Set or reset ALLMULTI mode on interface
61 This option is deprecated and is now a no-op.
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZPatterns.td1 //===-- SystemZPatterns.td - SystemZ-specific pattern rules ---*- tblgen-*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // Record that INSN performs a 64-bit version of unary operator OPERATOR
10 // in which the operand is sign-extended from 32 to 64 bits.
18 // Record that INSN performs a 64-bit version of binary operator OPERATOR
20 // is sign-extended from a 32-bit register.
38 // Record that INSN performs a binary read-modify-write operation,
40 // respectively. MODE is the addressing mode and IMM is the type
43 SDPatternOperator store, AddressingMode mode,
[all …]
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_power.c30 ahp->ah_mcast_filter_l32_set = 0; in ar9300_wowoffload_prep()
31 ahp->ah_mcast_filter_u32_set = 0; in ar9300_wowoffload_prep()
39 if (ahp->ah_mcast_filter_l32_set != 0) { in ar9300_wowoffload_post()
41 val &= ~ahp->ah_mcast_filter_l32_set; in ar9300_wowoffload_post()
44 if (ahp->ah_mcast_filter_u32_set != 0) { in ar9300_wowoffload_post()
46 val &= ~ahp->ah_mcast_filter_u32_set; in ar9300_wowoffload_post()
50 ahp->ah_mcast_filter_l32_set = 0; in ar9300_wowoffload_post()
51 ahp->ah_mcast_filter_u32_set = 0; in ar9300_wowoffload_post()
72 ahp->ah_mcast_filter_u32_set |= (1 << pos); in ar9300_wowoffload_add_mcast_filter()
74 ahp->ah_mcast_filter_l32_set |= (1 << pos); in ar9300_wowoffload_add_mcast_filter()
[all …]
/freebsd/sys/arm/ti/am335x/
H A Dtda19988.c1 /*-
57 #define MKREG(page, addr) (((page) << 8) | (addr)) argument
253 uint8_t addr = TDA_CURPAGE_ADDR; in tda19988_set_page() local
257 { sc->sc_addr, IIC_M_WR, 2, cmd }, in tda19988_set_page()
260 cmd[0] = addr; in tda19988_set_page()
263 result = (iicbus_transfer(sc->sc_dev, msg, 1)); in tda19988_set_page()
267 sc->sc_current_page = page; in tda19988_set_page()
273 tda19988_cec_read(struct tda19988_softc *sc, uint8_t addr, uint8_t *data) in tda19988_cec_read() argument
277 { sc->sc_cec_addr, IIC_M_WR, 1, &addr }, in tda19988_cec_read()
278 { sc->sc_cec_addr, IIC_M_RD, 1, data }, in tda19988_cec_read()
[all …]
/freebsd/contrib/wpa/src/drivers/
H A Ddriver_hostap.c3 * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
71 fc = le_to_host16(hdr->frame_control); in handle_data()
78 sa = hdr->addr2; in handle_data()
81 event.rx_from_unknown.addr = sa; in handle_data()
82 wpa_supplicant_event(drv->hapd, EVENT_RX_FROM_UNKNOWN, &event); in handle_data()
85 left = len - sizeof(*hdr); in handle_data()
97 left -= sizeof(rfc1042_header); in handle_data()
106 left -= 2; in handle_data()
109 drv_event_eapol_rx(drv->hapd, sa, pos, left); in handle_data()
127 fc = le_to_host16(hdr->frame_control); in handle_tx_callback()
[all …]
/freebsd/tools/tools/so_splice/
H A Dpingpong.c2 * SPDX-License-Identifier: BSD-2-Clause
8 * A utility which implements a simple ping-pong over TCP, and prints the amount
31 "usage: pingpong [-c <target addr> [-l <msgsz>] [-n <count]]|[-s <listen addr>]\n"); in usage()
36 addrinfo(struct sockaddr_storage *ss, const char *addr) in addrinfo() argument
42 host = strdup(addr); in addrinfo()
47 errx(1, "invalid address '%s', should be <addr>:<port>", host); in addrinfo()
55 for (res1 = res; res != NULL; res = res->ai_next) { in addrinfo()
56 if (res->ai_protocol == IPPROTO_TCP) { in addrinfo()
57 memcpy(ss, res->ai_addr, res->ai_addrlen); in addrinfo()
72 char *addr; in main() local
[all …]
/freebsd/sbin/hastd/
H A Dhast.conf.52 .\" Copyright (c) 2010-2012 Pawel Jakub Dawidek <pawel@dawidek.net>
55 .Bd -literal -offset indent
57 control <addr>
58 listen <addr>
59 replication <mode>
69 control <addr>
70 listen <addr>
76 control <addr>
77 listen <addr>
83 replication <mode>
[all …]
/freebsd/sys/dev/al_eth/
H A Dal_init_eth_lm.c1 /*-
73 /* 40GBASE-LR4 and 40GBASE-SR4 are optic modules */
109 uint8_t addr; member
115 {.addr = 0x0A, .value = 0x0C, .mask = 0xff },
116 {.addr = 0x2F, .value = 0x54, .mask = 0xff },
117 {.addr = 0x31, .value = 0x20, .mask = 0xff },
118 {.addr = 0x1E, .value = 0xE9, .mask = 0xff },
119 {.addr = 0x1F, .value = 0x0B, .mask = 0xff },
120 {.addr = 0xA6, .value = 0x43, .mask = 0xff },
121 {.addr = 0x2A, .value = 0x5A, .mask = 0xff },
[all …]
/freebsd/lib/libpjdlog/
H A Dpjdlog.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2009-2010 The FreeBSD Foundation
117 char addr[MAX(INET_ADDRSTRLEN, INET6_ADDRSTRLEN)]; in pjdlog_printf_render_sockaddr_ip() local
121 switch (ss->ss_family) { in pjdlog_printf_render_sockaddr_ip()
127 if (inet_ntop(ss->ss_family, &sin->sin_addr, addr, in pjdlog_printf_render_sockaddr_ip()
128 sizeof(addr)) == NULL) { in pjdlog_printf_render_sockaddr_ip()
139 if (inet_ntop(ss->ss_family, &sin->sin6_addr, addr, in pjdlog_printf_render_sockaddr_ip()
140 sizeof(addr)) == NULL) { in pjdlog_printf_render_sockaddr_ip()
147 snprintf(addr, sizeof(addr), "[unsupported family %hhu]", in pjdlog_printf_render_sockaddr_ip()
[all …]
/freebsd/tools/regression/security/open_to_operation/
H A Dopen_to_operation.c1 /*-
27 /*-
28 * This regression test attempts to confirm that the flags used at open-time
75 * a file descriptor is held, open-time limitations are implemented.
128 ok_mode(const char *testname, const char *comment, int mode) in ok_mode() argument
133 printf("ok %d - %s # mode 0x%x\n", testnum, testname, mode); in ok_mode()
135 printf("ok %d - %s # mode 0x%x - %s\n", testnum, testname, in ok_mode()
136 mode, comment); in ok_mode()
140 notok_mode(const char *testname, const char *comment, int mode) in notok_mode() argument
145 printf("not ok %d - %s # mode 0x%x\n", testnum, testname, in notok_mode()
[all …]
/freebsd/usr.sbin/cxgbetool/
H A Dcxgbetool.840 .Bl -item -compact
47 .Nm Ar nexus Cm clip Bro Cm hold | release Brc Ar ipv6-address
53 .Nm Ar nexus Cm hashfilter mode
55 .Nm Ar nexus Cm hashfilter Ar filter-specification
61 .Nm Ar nexus Cm filter mode
63 .Nm Ar nexus Cm filter Ar idx Ar filter-specification
69 .Nm Ar nexus Cm i2c Ar port_id devaddr addr Op Ar len
71 .Nm Ar nexus Cm loadcfg Ar fw-config.txt
75 .Nm Ar nexus Cm loadfw Ar fw-image.bin
77 .Nm Ar nexus Cm memdump Ar addr len
[all …]
/freebsd/contrib/capsicum-test/
H A Dcapmode.cc2 // available in capability mode. The goal is not to see if they work, just
27 #include "capsicum-test.h"
61 unsigned int mode = -1; in FORK_TEST_F() local
62 EXPECT_OK(cap_getmode(&mode)); in FORK_TEST_F()
63 EXPECT_EQ(0, (int)mode); in FORK_TEST_F()
64 EXPECT_OK(cap_enter()); // Enter capability mode. in FORK_TEST_F()
65 EXPECT_OK(cap_getmode(&mode)); in FORK_TEST_F()
66 EXPECT_EQ(1, (int)mode); in FORK_TEST_F()
68 // System calls that are not permitted in capability mode. in FORK_TEST_F()
76 EXPECT_CAPMODE(chown(TmpFile("cap_capmode_chown"), -1, -1)); in FORK_TEST_F()
[all …]
/freebsd/sys/dev/le/
H A Dlancereg.h3 /*-
4 * SPDX-License-Identifier: BSD-2-Clause
34 /*-
70 * - Am7990 Local Area Network Controller for Ethernet (LANCE)
71 * (and its descendent Am79c90 C-LANCE).
73 * - Am79c900 Integrated Local Area Communications Controller (ILACC)
75 * - Am79c960 PCnet-ISA Single-Chip Ethernet Controller for ISA
77 * - Am79c961 PCnet-ISA+ Jumperless Single-Chip Ethernet Controller
80 * - Am79c961A PCnet-ISA II Jumperless Full-Duplex Single-Chip
83 * - Am79c965A PCnet-32 Single-Chip 32-bit Ethernet Controller
[all …]
/freebsd/contrib/wpa/src/ap/
H A Dctrl_iface_ap.c3 * Copyright (c) 2004-2019, Jouni Malinen <j@w1.fi>
36 ret = os_snprintf(buf + len, buflen - len, in hostapd_write_ht_mcs_bitmask()
38 if (os_snprintf_error(buflen - len, ret)) in hostapd_write_ht_mcs_bitmask()
43 len += wpa_snprintf_hex(buf + len, buflen - len, mcs_set, 10); in hostapd_write_ht_mcs_bitmask()
45 ret = os_snprintf(buf + len, buflen - len, "\n"); in hostapd_write_ht_mcs_bitmask()
46 if (os_snprintf_error(buflen - len, ret)) in hostapd_write_ht_mcs_bitmask()
62 if (sta->connected_time.sec) { in hostapd_get_sta_conn_time()
63 /* Locally maintained time in AP mode */ in hostapd_get_sta_conn_time()
64 os_reltime_age(&sta->connected_time, &age); in hostapd_get_sta_conn_time()
66 } else if (data->flags & STA_DRV_DATA_CONN_TIME) { in hostapd_get_sta_conn_time()
[all …]
/freebsd/sys/contrib/device-tree/src/arm64/altera/
H A Dsocfpga_stratix10_swvp.dts1 // SPDX-License-Identifier: GPL-2.0
10 compatible = "altr,socfpga-stratix10-swvp", "altr,socfpga-stratix10";
27 stdout-path = "serial1:115200n8";
28 linux,initrd-start = <0x10000000>;
29 linux,initrd-end = <0x125c8324>;
39 enable-metho
[all...]
/freebsd/sys/arm/freescale/imx/
H A Dimx6_ipu.c1 /*-
63 #define MODE_HBP(mode) ((mode)->htotal - (mode)->hsync_end) argument
64 #define MODE_HFP(mode) ((mode)->hsync_start - (mode)->hdisplay) argument
65 #define MODE_HSW(mode) ((mode)->hsync_end - (mode)->hsync_start) argument
66 #define MODE_VBP(mode) ((mode)->vtotal - (mode)->vsync_end) argument
67 #define MODE_VFP(mode) ((mode)->vsync_start - (mode)->vdisplay) argument
68 #define MODE_VSW(mode) ((mode)->vsync_end - (mode)->vsync_start) argument
77 #define IPU_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx)
78 #define IPU_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx)
79 #define IPU_LOCK_INIT(_sc) mtx_init(&(_sc)->sc_mtx, \
[all …]
/freebsd/usr.sbin/i2c/
H A Di2c.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (C) 2008-2009 Semihalf, Michal Hajduk and Bartlomiej Sieka
58 int mode; member
60 uint32_t addr; member
75 fprintf(stderr, "usage: %s -a addr [-f device] [-d [r|w]] [-o offset] " in usage()
76 "[-w [0|8|16|16LE|16BE]] [-c count] [-m [tr|ss|rs|no]] [-b] [-v]\n", in usage()
78 fprintf(stderr, " %s -s [-f device] [-n skip_addr] -v\n", in usage()
80 fprintf(stderr, " %s -r [-f device] -v\n", getprogname()); in usage()
168 usage("Bad -n argument, expected (first) hex-digit"); in parse_skip()
[all …]
/freebsd/contrib/libpcap/msdos/
H A Dpktdrvr.c8 * Description..: Packet-driver interface for 16/32-bit C :
24 #include "pcap-dos.h"
25 #include "pcap-int.h"
79 /* Data located in a real-mode segment. This becomes far at runtime
106 #define LAST_RX_BUF offsetof (PktRealStub,_pktRxBuf [NUM_RX_BUF-1])
112 extern BYTE pktRxEnd; /* marks the end of r-mode code/data */
119 #define LAST_RX_BUF (WORD) &pktRxBuf [NUM_RX_BUF-1]
149 LOCAL WORD realSeg; /* DOS para-address of allocated area */
181 #else /* real-mode Borland etc. */
201 PUBLIC PKT_INFO pktInfo; /* packet-driver information */
[all …]
/freebsd/usr.sbin/bhyve/amd64/
H A Dvga.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
129 uint8_t gc_mode_rm; /* read mode */
130 uint8_t gc_mode_wm; /* write mode */
132 uint8_t gc_misc_gm; /* graphics mode */
175 return (((sc->vga_seq.seq_clock_mode & SEQ_CM_SO) != 0) || in vga_in_reset()
176 ((sc->vga_seq.seq_reset & SEQ_RESET_ASYNC) == 0) || in vga_in_reset()
177 ((sc->vga_seq.seq_reset & SEQ_RESET_SYNC) == 0) || in vga_in_reset()
178 ((sc->vga_crtc.crtc_mode_ctrl & CRTC_MC_TE) == 0)); in vga_in_reset()
189 //old_width = sc->gc_width; in vga_check_size()
[all …]

12345678910>>...41