/freebsd/sys/contrib/device-tree/src/arm64/broadcom/stingray/ |
H A D | stingray-fs4.dtsi | 37 ranges = <0x0 0x0 0x67000000 0x00800000>; 39 crypto_mbox: crypto_mbox@0 { 41 reg = <0x00000000 0x200000>; 42 msi-parent = <&gic_its 0x4100>; 49 reg = <0x00400000 0x200000>; 51 msi-parent = <&gic_its 0x4300>; 55 raid0: raid@0 { 57 mboxes = <&raid_mbox 0 0x1 0xff00>, 58 <&raid_mbox 1 0x1 0xff00>, 59 <&raid_mbox 2 0x1 0xff00>, [all …]
|
/freebsd/tools/tools/netmap/ |
H A D | pkt_hash.h | 42 #define unlikely(x) __builtin_expect(!!(x), 0) 48 #define HTONS(n) (((((unsigned short)(n) & 0xFF)) << 8) | \ 49 (((unsigned short)(n) & 0xFF00) >> 8)) 50 #define NTOHS(n) (((((unsigned short)(n) & 0xFF)) << 8) | \ 51 (((unsigned short)(n) & 0xFF00) >> 8)) 53 #define HTONL(n) (((((unsigned long)(n) & 0xFF)) << 24) | \ 54 ((((unsigned long)(n) & 0xFF00)) << 8) | \ 55 ((((unsigned long)(n) & 0xFF0000)) >> 8) | \ 56 ((((unsigned long)(n) & 0xFF000000)) >> 24)) 58 #define NTOHL(n) (((((unsigned long)(n) & 0xFF)) << 24) | \ [all …]
|
/freebsd/lib/libc/powerpc64/string/ |
H A D | strcpy_arch_2_05.S | 31 #if 0 43 lbz %r0,0(%r4) 44 cmpdi cr7,%r0,0 45 stb %r0,0(%r8) 49 andi. %r0,%r4,0x7 54 ld %r0,0(%r4) 57 cmpdi cr7,%r5,0 65 cmpdi cr7,%r5,0 72 rldicr. %r5,%r0,0,7 80 andis. %r7,%r0,0xff00 [all …]
|
/freebsd/sys/contrib/ena-com/ena_defs/ |
H A D | ena_regs_defs.h | 38 ENA_REGS_RESET_NORMAL = 0, 63 /* 0 base */ 64 #define ENA_REGS_VERSION_OFF 0x0 65 #define ENA_REGS_CONTROLLER_VERSION_OFF 0x4 66 #define ENA_REGS_CAPS_OFF 0x8 67 #define ENA_REGS_CAPS_EXT_OFF 0xc 68 #define ENA_REGS_AQ_BASE_LO_OFF 0x10 69 #define ENA_REGS_AQ_BASE_HI_OFF 0x14 70 #define ENA_REGS_AQ_CAPS_OFF 0x18 71 #define ENA_REGS_ACQ_BASE_LO_OFF 0x20 [all …]
|
/freebsd/sys/dev/ata/chipsets/ |
H A D | ata-serverworks.c | 63 #define SWKS_33 0 76 {{ ATA_ROSB4, 0x00, SWKS_33, 0, ATA_WDMA2, "ROSB4" }, in ata_serverworks_probe() 77 { ATA_CSB5, 0x92, SWKS_100, 0, ATA_UDMA5, "CSB5" }, in ata_serverworks_probe() 78 { ATA_CSB5, 0x00, SWKS_66, 0, ATA_UDMA4, "CSB5" }, in ata_serverworks_probe() 79 { ATA_CSB6, 0x00, SWKS_100, 0, ATA_UDMA5, "CSB6" }, in ata_serverworks_probe() 80 { ATA_CSB6_1, 0x00, SWKS_66, 0, ATA_UDMA4, "CSB6" }, in ata_serverworks_probe() 81 { ATA_HT1000, 0x00, SWKS_100, 0, ATA_UDMA5, "HT1000" }, in ata_serverworks_probe() 82 { ATA_HT1000_S1, 0x00, SWKS_MIO, 4, ATA_SA150, "HT1000" }, in ata_serverworks_probe() 83 { ATA_HT1000_S2, 0x00, SWKS_MIO, 4, ATA_SA150, "HT1000" }, in ata_serverworks_probe() 84 { ATA_K2, 0x00, SWKS_MIO, 4, ATA_SA150, "K2" }, in ata_serverworks_probe() [all …]
|
/freebsd/stand/i386/libi386/ |
H A D | biospci.c | 55 {0x0, NULL}, 60 {0x0, "VGA"}, 61 {0x1, "8514"}, 66 {0x00, NULL}, 67 {0x01, NULL}, 68 {0x02, NULL}, 69 {0x03, NULL}, 70 {0x04, NULL}, 71 {0x05, NULL}, 72 {0x06, NULL}, [all …]
|
H A D | time.c | 45 v86.ctl = 0; in bios_seconds() 46 v86.addr = 0x1a; /* int 0x1a, function 2 */ in bios_seconds() 47 v86.eax = 0x0200; in bios_seconds() 50 hr = bcd2bin((v86.ecx & 0xff00) >> 8); /* hour in %ch */ in bios_seconds() 51 minute = bcd2bin(v86.ecx & 0xff); /* minute in %cl */ in bios_seconds() 52 sec = bcd2bin((v86.edx & 0xff00) >> 8); /* second in %dh */ in bios_seconds() 65 * If we pass midnight, don't wrap back to 0. 74 same = try = 0; in time() 80 same = 0; in time() 95 time_t n = 0; in getsecs() [all …]
|
H A D | biosdisk.c | 52 #define BIOS_NUMDRIVES 0x475 56 #define DT_ATAPI 0x10 /* disk type for ATAPI floppies */ 57 #define WDMAJOR 0 /* major numbers for devices we frontend for */ 67 #define CMD_RESET 0x0000 68 #define CMD_READ_CHS 0x0200 69 #define CMD_WRITE_CHS 0x0300 70 #define CMD_READ_PARAM 0x0800 71 #define CMD_DRIVE_TYPE 0x1500 72 #define CMD_CHECK_EDD 0x4100 73 #define CMD_READ_LBA 0x4200 [all …]
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | bswap.c | 42 return (val & 0xff) << 24 | in bswap32() 43 (val & 0xff00) << 8 | in bswap32() 44 (val & 0xff0000) >> 8 | in bswap32() 45 (val & 0xff000000) >> 24; in bswap32() 54 return (val & 0xff) << 8 | in bswap16() 55 (val & 0xff00) >> 8; in bswap16()
|
/freebsd/contrib/libpcap/ |
H A D | pcap-util.h | 42 (((((u_int)(y))&0xff)<<24) | \ 43 ((((u_int)(y))&0xff00)<<8) | \ 44 ((((u_int)(y))&0xff0000)>>8) | \ 45 ((((u_int)(y))>>24)&0xff)) 47 ((u_short)(((((u_int)(y))&0xff)<<8) | \ 48 ((((u_int)(y))&0xff00)>>8)))
|
/freebsd/crypto/openssl/crypto/perlasm/ |
H A D | s390x.pm | 111 my $GR='(?:%r)?([0-9]|1[0-5])'; 112 my $VR='(?:%v)?([0-9]|1[0-9]|2[0-9]|3[0-1])'; 139 $token.="\t" if ($#_>=0); 144 confess(err("ARGNUM")) if ($#_!=0); 150 confess(err("ARGNUM")) if ($#_!=0); 160 confess(err("ARGNUM")) if ($#_!=0); 161 S(0xb2b0,@_); 165 confess(err("ARGNUM")) if ($#_!=0); 166 S(0xb205,@_); 172 confess(err("ARGNUM")) if ($#_!=0); [all …]
|
/freebsd/contrib/arm-optimized-routines/string/arm/ |
H A D | strcpy.c | 18 #define magic1(REG) "#0x01010101" 19 #define magic2(REG) "#0x80808080" 29 "pld [r1, #0]\n\t" in __strcpy_arm() 39 "mov r5, #0x01\n\t" in __strcpy_arm() 80 "tst r3, #0xff\n\t" in __strcpy_arm() 98 "cmp r2, #0\n\t" in __strcpy_arm() 106 "tst r2, #0xff00\n\t" in __strcpy_arm() 111 "tstne r2, #0xff\n\t" in __strcpy_arm() 113 "tst r2, #0xff\n\t" in __strcpy_arm() 117 "tstne r2, #0xff00\n\t" in __strcpy_arm() [all …]
|
/freebsd/contrib/file/magic/Magdir/ |
H A D | olf | 14 0 string \177OLF OLF 15 >4 byte 0 invalid class 18 >7 byte 0 invalid os 31 >5 byte 0 invalid byte order 33 >>16 leshort 0 no file type, 40 >>>(0x38+0xcc) string >\0 of '%s' 41 >>>(0x38+0x10) lelong >0 (signal %d), 42 >>16 leshort &0xff00 processor-specific, 43 >>18 leshort 0 no machine, 60 >>18 leshort 0x9026 Alpha, [all …]
|
/freebsd/contrib/netbsd-tests/include/machine/ |
H A D | t_bswap.c | 78 ATF_REQUIRE_EQ(bswap16(0x0000), 0x0000); in ATF_TC_BODY() 79 ATF_REQUIRE_EQ(bswap16(0xff00), 0x00ff); in ATF_TC_BODY() 80 ATF_REQUIRE_EQ(bswap16(0xffff), 0xffff); in ATF_TC_BODY() 81 ATF_REQUIRE_EQ(bswap16(0x1234), 0x3412); in ATF_TC_BODY() 92 x16 = 0; in ATF_TC_BODY() 94 ATF_REQUIRE_EQ(bswap16(unconst16(0x0000)), 0x0000); in ATF_TC_BODY() 95 ATF_REQUIRE_EQ(bswap16(unconst16(0xff00)), 0x00ff); in ATF_TC_BODY() 96 ATF_REQUIRE_EQ(bswap16(unconst16(0xffff)), 0xffff); in ATF_TC_BODY() 97 ATF_REQUIRE_EQ(bswap16(unconst16(0x1234)), 0x3412); in ATF_TC_BODY() 108 ATF_REQUIRE_EQ(bswap32(0x00000000), 0x00000000); in ATF_TC_BODY() [all …]
|
/freebsd/sys/powerpc/aim/ |
H A D | trap_subr32.S | 44 #define RESTORE_SRS(pmap,sr) mtsr 0,sr; \ 76 lwz pmap,TRAP_TOCBASE(0); \ 250 .word 0 251 .word 0 265 /* 64-bit test code. Sets SPRG2 to 0 if an illegal instruction is executed */ 274 li %r31, 0 304 lwz %r31, TRAP_GENTRAP(0) 318 lwz %r30,TRAP_TOCBASE(0) 328 cmplwi %cr0,%r3,0 351 lwz %r1, TRAP_ENTRY(0) /* Get branch address */ [all …]
|
/freebsd/crypto/heimdal/appl/telnet/libtelnet/ |
H A D | spx.c | 94 static unsigned char str_data[1024] = { IAC, SB, TELOPT_AUTHENTICATION, 0, 99 #define SPX_AUTH 0 /* Authentication data follows */ 104 static des_cblock challenge = { 0 }; 111 int major_status, status, msg_ctx = 0, new_status; 112 int req_flags = 0, ret_flags, lifetime_rec; 121 int to_addr=0, from_addr=0; 144 if (0) { 155 while (c-- > 0) { 186 0, 192 if (major_status != GSS_S_COMPLETE) return(0); [all …]
|
/freebsd/crypto/libecc/include/libecc/hash/ |
H A D | bash.h | 28 #define BASH_ROTHI(x, y) ((((y) < (sizeof(u64) * 8)) && ((y) > 0)) ? (_BASH_ROTHI_(x, y)) : (x)) 55 } while(0) 60 S[ 0] = S_[15]; S[ 1] = S_[10]; S[ 2] = S_[ 9]; S[ 3] = S_[12]; \ 64 S[16] = S_[ 6]; S[17] = S_[ 3]; S[18] = S_[ 0]; S[19] = S_[ 5]; \ 66 } while(0) 70 0x3bf5080ac8ba94b1ULL, 71 0xc1d1659c1bbd92f6ULL, 72 0x60e8b2ce0ddec97bULL, 73 0xec5fb8fe790fbc13ULL, 74 0xaa043de6436706a7ULL, [all …]
|
/freebsd/contrib/ntp/include/ |
H A D | ntp_control.h | 42 #define CTL_RESPONSE 0x80 43 #define CTL_ERROR 0x40 44 #define CTL_MORE 0x20 45 #define CTL_OP_MASK 0x1f 47 #define CTL_ISRESPONSE(r_m_e_op) ((CTL_RESPONSE & (r_m_e_op)) != 0) 48 #define CTL_ISMORE(r_m_e_op) ((CTL_MORE & (r_m_e_op)) != 0) 49 #define CTL_ISERROR(r_m_e_op) ((CTL_ERROR & (r_m_e_op)) != 0) 55 #define CTL_OP_UNSPEC 0 /* unspeciffied */ 73 #define CTL_SST_TS_UNSPEC 0 /* unspec */ 87 (((((unsigned short)(li))<< 14)&0xc00 [all...] |
/freebsd/sbin/ipf/libipf/ |
H A D | ipft_pc.c | 26 { 0, 0, 0, 0 }, /* DLT_NULL */ 28 { 10, 0, 0, 0 }, /* DLT_FDDI */ 29 { 12, 0, 0, 0 }, /* DLT_RAW */ 56 static int pfd = -1, swapped = 0; 59 struct ipread pcap = { ipcap_open, ipcap_close, ipcap_readip, 0 }; 62 ((((y)&0xff)<<24) | (((y)&0xff00)<<8) | (((y)&0xff0000)>>8) | (((y)>>24)&0xff)) 64 ( (((y)&0xff)<<8) | (((y)&0xff00)>>8) ) 87 fd = 0; in ipcap_open() 94 if (ph.id != 0xa1b2c3d4) { in ipcap_open() 95 if (SWAPLONG(ph.id) != 0xa1b2c3d4) { in ipcap_open() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/ |
H A D | AVRMCExpr.cpp | 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 107 Value &= 0xff; in evaluateAsInt64() 110 Value &= 0xff00; in evaluateAsInt64() 114 Value &= 0xff0000; in evaluateAsInt64() 118 Value &= 0xff000000; in evaluateAsInt64() 124 Value &= 0xff; in evaluateAsInt64() 129 Value &= 0xff00; in evaluateAsInt64() 134 Value &= 0xff0000; in evaluateAsInt64() 145 return static_cast<uint64_t>(Value) & 0xff; in evaluateAsInt64()
|
/freebsd/sys/dev/bwi/ |
H A D | bwiphy.c | 103 #define BWI_PHYTBL_WRSSI 0x1000 104 #define BWI_PHYTBL_NOISE_SCALE 0x1400 105 #define BWI_PHYTBL_NOISE 0x1800 106 #define BWI_PHYTBL_ROTOR 0x2000 107 #define BWI_PHYTBL_DELAY 0x2400 108 #define BWI_PHYTBL_RSSI 0x4000 109 #define BWI_PHYTBL_SIGMA_SQ 0x5000 110 #define BWI_PHYTBL_WRSSI_REV1 0x5400 111 #define BWI_PHYTBL_FREQ 0x5800 187 for (i = 0; i < nitems(bwi_sup_bphy); ++i) { in bwi_phy_attach() [all …]
|
/freebsd/contrib/wpa/src/utils/ |
H A D | common.h | 46 return ((v & 0xff) << 8) | (v >> 8); in bswap_16() 51 return ((v & 0xff) << 24) | ((v & 0xff00) << 8) | in bswap_32() 52 ((v & 0xff0000) >> 8) | (v >> 24); in bswap_32() 71 #define MSG_DONTWAIT 0 /* not supported */ 136 return ((v & 0xff) << 8) | (v >> 8); in wpa_swap_16() 141 return ((v & 0xff) << 24) | ((v & 0xff00) << 8) | in wpa_swap_32() 142 ((v & 0xff0000) >> 8) | (v >> 24); in wpa_swap_32() 215 return (a[0] << 8) | a[1]; in WPA_GET_BE16() 220 a[0] = val >> 8; in WPA_PUT_BE16() 221 a[1] = val & 0xff; in WPA_PUT_BE16() [all …]
|
/freebsd/sys/contrib/zlib/ |
H A D | zutil.h | 47 # if (ULONG_MAX == 0xffffffffffffffff) 49 # elif (ULLONG_MAX == 0xffffffffffffffff) 51 # elif (UINT_MAX == 0xffffffffffffffff) 79 #define STORED_BLOCK 0 88 #define PRESET_DICT 0x20 /* preset dictionary flag in zlib header */ 93 # define OS_CODE 0x00 120 # if __TARGET_LIB__ < 0x20000000 122 # elif __TARGET_LIB__ < 0x40000000 172 (!defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0) 207 # define zmemzero(dest, len) _fmemset(dest, 0, len) [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/ |
H A D | mt76x02_usb_core.c | 42 return 0; in mt76x02u_mac_start() 101 if (!wcid || wcid->hw_key_idx == 0xff || wcid->sw_iv) in mt76x02u_tx_prepare_skb() 198 mt76_set(dev, MT_BCN_BYPASS_MASK, 0xffff); in mt76x02u_pre_tbtt_work() 199 dev->beacon_data_count = 0; in mt76x02u_pre_tbtt_work() 220 0xff00 | ~(0xff00 >> dev->beacon_data_count)); in mt76x02u_pre_tbtt_work()
|
/freebsd/sys/dev/vte/ |
H A D | if_vtereg.h | 36 #define VENDORID_RDC 0x17F3 41 #define DEVICEID_RDC_R6040 0x6040 /* PMX-1000 */ 43 /* MAC control register 0 */ 44 #define VTE_MCR0 0x00 45 #define MCR0_ACCPT_ERR 0x0001 46 #define MCR0_RX_ENB 0x0002 47 #define MCR0_ACCPT_RUNT 0x0004 48 #define MCR0_ACCPT_LONG_PKT 0x0008 49 #define MCR0_ACCPT_DRIBBLE 0x0010 50 #define MCR0_PROMISC 0x0020 [all …]
|