Home
last modified time | relevance | path

Searched refs:w (Results 1 – 25 of 1634) sorted by relevance

12345678910>>...66

/freebsd/sys/contrib/libsodium/src/libsodium/include/sodium/private/
H A Dcommon.h51 uint64_t w; in load64_le() local
52 memcpy(&w, src, sizeof w); in load64_le()
53 return w; in load64_le()
55 uint64_t w = (uint64_t) src[0]; in load64_le()
56 w |= (uint64_t) src[1] << 8; in load64_le()
57 w |= (uint64_t) src[2] << 16; in load64_le()
58 w |= (uint64_t) src[3] << 24; in load64_le()
59 w |= (uint64_t) src[4] << 32; in load64_le()
60 w |= (uint64_t) src[5] << 40; in load64_le()
61 w |= (uint64_t) src[6] << 48; in load64_le()
[all …]
/freebsd/sys/contrib/libb2/
H A Dblake2-impl.h32 uint32_t w = *p++; in load32()
33 w |= ( uint32_t )( *p++ ) << 8; in load32()
34 w |= ( uint32_t )( *p++ ) << 16; in load32()
35 w |= ( uint32_t )( *p++ ) << 24; in load32()
36 return w; in load32()
46 uint64_t w = *p++; in load64()
47 w |= ( uint64_t )( *p++ ) << 8; in load64()
48 w |= ( uint64_t )( *p++ ) << 16; in load64()
49 w |= ( uint64_t )( *p++ ) << 24; in load64()
50 w |= ( uint64_t )( *p++ ) << 32; in load64()
[all …]
/freebsd/sys/dev/usb/
H A Dusb_endian.h49 #define UGETB(w) \ argument
50 ((w)[0])
52 #define UGETW(w) \ argument
53 ((w)[0] | \
54 (((uint16_t)((w)[1])) << 8))
56 #define UGETDW(w) \ argument
57 ((w)[0] | \
58 (((uint16_t)((w)[1])) << 8) | \
59 (((uint32_t)((w)[2])) << 16) | \
60 (((uint32_t)((w)[3])) << 24))
[all …]
/freebsd/sys/i386/i386/
H A Din_cksum_machdep.c70 u_short *w; in in_cksum_skip() local
80 w = (u_short *)(mtod(m, u_char *) + skip); in in_cksum_skip()
90 w = mtod(m, u_short *); in in_cksum_skip()
101 su.c[1] = *(u_char *)w; in in_cksum_skip()
103 w = (u_short *)((char *)w + 1); in in_cksum_skip()
116 if (3 & (int) w) { in in_cksum_skip()
118 if ((1 & (int) w) && (mlen > 0)) { in in_cksum_skip()
120 su.c[0] = *(char *)w; in in_cksum_skip()
121 w = (u_short *)((char *)w + 1); in in_cksum_skip()
125 if ((2 & (int) w) && (mlen >= 2)) { in in_cksum_skip()
[all …]
/freebsd/contrib/unbound/libunbound/
H A Dlibworker.c88 static void handle_newq(struct libworker* w, uint8_t* buf, uint32_t len);
92 libworker_delete_env(struct libworker* w) in libworker_delete_env() argument
94 if(w->env) { in libworker_delete_env()
95 outside_network_quit_prepare(w->back); in libworker_delete_env()
96 mesh_delete(w->env->mesh); in libworker_delete_env()
97 context_release_alloc(w->ctx, w->env->alloc, in libworker_delete_env()
98 !w->is_bg || w->is_bg_thread); in libworker_delete_env()
99 sldns_buffer_free(w->env->scratch_buffer); in libworker_delete_env()
100 regional_destroy(w->env->scratch); in libworker_delete_env()
101 ub_randfree(w->env->rnd); in libworker_delete_env()
[all …]
/freebsd/sys/dev/sound/pci/hda/
H A Dhdaa_patches.c168 hdac_pin_patch(struct hdaa_widget *w) in hdac_pin_patch() argument
172 nid_t nid = w->nid; in hdac_pin_patch()
174 config = orig = w->wclass.pin.config; in hdac_pin_patch()
175 id = hdaa_codec_id(w->devinfo); in hdac_pin_patch()
176 subid = hdaa_card_id(w->devinfo); in hdac_pin_patch()
409 device_printf(w->devinfo->dev, in hdac_pin_patch()
413 w->wclass.pin.config = config; in hdac_pin_patch()
417 hdaa_widget_patch(struct hdaa_widget *w) in hdaa_widget_patch() argument
419 struct hdaa_devinfo *devinfo = w->devinfo; in hdaa_widget_patch()
423 orig = w->param.widget_cap; in hdaa_widget_patch()
[all …]
H A Dhdaa.c179 static void hdaa_dump_pin_config(struct hdaa_widget *w, uint32_t conf);
268 struct hdaa_widget *w; in hdaa_channels_handler() local
279 w = hdaa_widget_get(devinfo, as->pins[i]); in hdaa_channels_handler()
280 if (w == NULL) in hdaa_channels_handler()
282 if (w->wclass.pin.connected == 1) in hdaa_channels_handler()
284 else if (w->wclass.pin.connected != 0) in hdaa_channels_handler()
286 if (w->eld != NULL && w->eld_len >= 8) in hdaa_channels_handler()
287 eld = w->eld; in hdaa_channels_handler()
379 hdaa_hpredir_handler(struct hdaa_widget *w) in hdaa_hpredir_handler() argument
381 struct hdaa_devinfo *devinfo = w->devinfo; in hdaa_hpredir_handler()
[all …]
/freebsd/contrib/libarchive/libarchive/
H A Darchive_blake2_impl.h37 uint32_t w; in load32() local
38 memcpy(&w, src, sizeof w); in load32()
39 return w; in load32()
52 uint64_t w; in load64() local
53 memcpy(&w, src, sizeof w); in load64()
54 return w; in load64()
71 uint16_t w; in load16() local
72 memcpy(&w, src, sizeof w); in load16()
73 return w; in load16()
81 static BLAKE2_INLINE void store16( void *dst, uint16_t w ) in store16() argument
[all …]
/freebsd/sys/netinet6/
H A Din6_cksum.c94 uint16_t scope, *w; in _in6_cksum_pseudo() local
119 w = (u_int16_t *)&ip6->ip6_src; in _in6_cksum_pseudo()
120 sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3]; in _in6_cksum_pseudo()
121 sum += w[4]; sum += w[5]; sum += w[6]; sum += w[7]; in _in6_cksum_pseudo()
127 w = (u_int16_t *)&ip6->ip6_dst; in _in6_cksum_pseudo()
128 sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3]; in _in6_cksum_pseudo()
129 sum += w[4]; sum += w[5]; sum += w[6]; sum += w[7]; in _in6_cksum_pseudo()
152 uint16_t *w; in in6_cksumdata() local
168 w = data; in in6_cksumdata()
175 s_util.c[1] = *(uint8_t *)w; in in6_cksumdata()
[all …]
/freebsd/contrib/bearssl/src/symcipher/
H A Daes_ct64_ctrcbc.c75 uint32_t w[16]; in br_aes_ct64_ctrcbc_ctr() local
87 w[i + 0] = br_swap32(iv0); in br_aes_ct64_ctrcbc_ctr()
88 w[i + 1] = br_swap32(iv1); in br_aes_ct64_ctrcbc_ctr()
89 w[i + 2] = br_swap32(iv2); in br_aes_ct64_ctrcbc_ctr()
90 w[i + 3] = br_swap32(iv3); in br_aes_ct64_ctrcbc_ctr()
99 memset(w + i, 0, (16 - i) * sizeof(uint32_t)); in br_aes_ct64_ctrcbc_ctr()
103 &q[i], &q[i + 4], w + (i << 2)); in br_aes_ct64_ctrcbc_ctr()
110 w + (i << 2), q[i], q[i + 4]); in br_aes_ct64_ctrcbc_ctr()
113 br_range_enc32le(tmp, w, 16); in br_aes_ct64_ctrcbc_ctr()
148 uint32_t w[4]; in br_aes_ct64_ctrcbc_mac() local
[all …]
/freebsd/contrib/sendmail/libsm/
H A Dfvwrite.c64 register int w, s; variable
93 w = (*fp->f_write)(fp, p, SM_MIN(len, SM_IO_BUFSIZ));
94 if (w <= 0)
96 if (w == 0 && errno == 0)
98 if (IS_IO_ERROR(fd, w, timeout))
103 w = 0;
107 p += w;
108 len -= w;
110 } while ((uio->uio_resid -= w) != 0);
156 w = fp->f_w;
[all …]
/freebsd/contrib/unbound/sldns/
H A Dwire2str.c388 int w = vsnprintf(*str, *slen, format, args); in sldns_str_vprint() local
389 if(w < 0) { in sldns_str_vprint()
392 } else if((size_t)w >= *slen) { in sldns_str_vprint()
396 *str += w; in sldns_str_vprint()
397 *slen -= w; in sldns_str_vprint()
399 return w; in sldns_str_vprint()
404 int w; in sldns_str_print() local
407 w = sldns_str_vprint(str, slen, format, args); in sldns_str_print()
409 return w; in sldns_str_print()
428 int w = 0; in print_remainder_hex() local
[all …]
/freebsd/lib/msun/ld128/
H A Dk_tanl.c61 long double z, r, v, w, s; in __kernel_tanl() local
73 w = pio4lo - y; in __kernel_tanl()
74 x = z + w; in __kernel_tanl()
80 w = z * z; in __kernel_tanl()
81 r = T5 + w * (T9 + w * (T13 + w * (T17 + w * (T21 + in __kernel_tanl()
82 w * (T25 + w * (T29 + w * (T33 + in __kernel_tanl()
83 w * (T37 + w * (T41 + w * (T45 + w * (T49 + w * (T53 + in __kernel_tanl()
84 w * T57)))))))))))); in __kernel_tanl()
85 v = z * (T7 + w * (T11 + w * (T15 + w * (T19 + w * (T23 + in __kernel_tanl()
86 w * (T27 + w * (T31 + w * (T35 + in __kernel_tanl()
[all …]
/freebsd/lib/libc/stdio/
H A Dfvwrite.c53 int w, s; in __sfvwrite() local
83 w = _swrite(fp, p, MIN(len, BUFSIZ)); in __sfvwrite()
84 if (w <= 0) in __sfvwrite()
86 p += w; in __sfvwrite()
87 len -= w; in __sfvwrite()
88 } while ((uio->uio_resid -= w) != 0); in __sfvwrite()
119 w = fp->_w; in __sfvwrite()
121 if (len < w) in __sfvwrite()
122 w = len; in __sfvwrite()
123 if (w > 0) { in __sfvwrite()
[all …]
/freebsd/crypto/openssl/providers/implementations/digests/
H A Dblake2_impl.h25 uint32_t w; in load32() local
26 memcpy(&w, src, sizeof(w)); in load32()
27 return w; in load32()
29 uint32_t w = ((uint32_t)src[0]) in load32() local
33 return w; in load32()
42 uint64_t w; in load64() local
43 memcpy(&w, src, sizeof(w)); in load64()
44 return w; in load64()
46 uint64_t w = ((uint64_t)src[0]) in load64() local
54 return w; in load64()
[all …]
/freebsd/contrib/tcpdump/
H A Din_cksum.c57 const uint16_t *w; in in_cksum() local
74 w = (const uint16_t *)(const void *)vec->ptr; in in_cksum()
84 s_util.c[1] = *(const uint8_t *)w; in in_cksum()
86 w = (const uint16_t *)(const void *)((const uint8_t *)w + 1); in in_cksum()
93 if ((1 & (uintptr_t) w) && (mlen > 0)) { in in_cksum()
96 s_util.c[0] = *(const uint8_t *)w; in in_cksum()
97 w = (const uint16_t *)(const void *)((const uint8_t *)w + 1); in in_cksum()
106 sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3]; in in_cksum()
107 sum += w[4]; sum += w[5]; sum += w[6]; sum += w[7]; in in_cksum()
108 sum += w[8]; sum += w[9]; sum += w[10]; sum += w[11]; in in_cksum()
[all …]
/freebsd/contrib/bearssl/src/ec/
H A Dec_c25519_m62.c85 uint64_t m, w; in f255_cswap() local
88 w = m & (a[0] ^ b[0]); a[0] ^= w; b[0] ^= w; in f255_cswap()
89 w = m & (a[1] ^ b[1]); a[1] ^= w; b[1] ^= w; in f255_cswap()
90 w = m & (a[2] ^ b[2]); a[2] ^= w; b[2] ^= w; in f255_cswap()
91 w = m & (a[3] ^ b[3]); a[3] ^= w; b[3] ^= w; in f255_cswap()
92 w = m & (a[4] ^ b[4]); a[4] ^= w; b[4] ^= w; in f255_cswap()
118 uint64_t cc, w; in f255_sub() local
131 w = a[0] - b[0] - 19456; in f255_sub()
132 d[0] = w & MASK51; in f255_sub()
133 cc = -(w >> 51) & 0x3FF; in f255_sub()
[all …]
/freebsd/crypto/openssl/crypto/bn/
H A Dbn_word.c13 BN_ULONG BN_mod_word(const BIGNUM *a, BN_ULONG w) in BN_mod_word() argument
22 if (w == 0) in BN_mod_word()
30 if (w > ((BN_ULONG)1 << BN_BITS4)) { in BN_mod_word()
35 ret = BN_div_word(tmp, w); in BN_mod_word()
43 w &= BN_MASK2; in BN_mod_word()
51 ret = ((ret << BN_BITS4) | ((a->d[i] >> BN_BITS4) & BN_MASK2l)) % w; in BN_mod_word()
52 ret = ((ret << BN_BITS4) | (a->d[i] & BN_MASK2l)) % w; in BN_mod_word()
55 (BN_ULLONG) w); in BN_mod_word()
61 BN_ULONG BN_div_word(BIGNUM *a, BN_ULONG w) in BN_div_word() argument
67 w &= BN_MASK2; in BN_div_word()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dutil.h72 mt76_worker_setup(struct ieee80211_hw *hw, struct mt76_worker *w, in mt76_worker_setup() argument
78 w->fn = wfunc; in mt76_worker_setup()
80 w->task = kthread_run(__mt76_worker_fn, w, in mt76_worker_setup()
83 if (!IS_ERR(w->task)) in mt76_worker_setup()
86 rc = PTR_ERR(w->task); in mt76_worker_setup()
87 w->task = NULL; in mt76_worker_setup()
92 mt76_worker_schedule(struct mt76_worker *w) in mt76_worker_schedule() argument
95 if (w->task == NULL) in mt76_worker_schedule()
98 if (!test_and_set_bit(MT76_WORKER_SCHEDULED, &w->state) || in mt76_worker_schedule()
99 !test_bit(MT76_WORKER_RUNNING, &w->state)) in mt76_worker_schedule()
[all …]
/freebsd/bin/sh/tests/expansion/
H A Dcmdsubst6.021 w=1
22 testcase '$w'
23 testcase '1${w+1}'
24 testcase '1${w-1}'
27 testcase '1${w:+1}'
28 testcase '1${w:-1}'
31 testcase '${w?}'
32 testcase '${w:?}'
33 testcase '${w#x}'
34 testcase '${w##x}'
[all …]
/freebsd/lib/msun/ld80/
H A Dk_tanl.c69 long double z, r, v, w, s; in __kernel_tanl() local
81 w = pio4lo - y; in __kernel_tanl()
82 x = z + w; in __kernel_tanl()
88 w = z * z; in __kernel_tanl()
89 r = T5 + w * (T9 + w * (T13 + w * (T17 + w * (T21 + in __kernel_tanl()
90 w * (T25 + w * (T29 + w * T33)))))); in __kernel_tanl()
91 v = z * (T7 + w * (T11 + w * (T15 + w * (T19 + w * (T23 + in __kernel_tanl()
92 w * (T27 + w * T31)))))); in __kernel_tanl()
96 w = x + r; in __kernel_tanl()
100 (v - 2.0 * (x - (w * w / (w + v) - r))); in __kernel_tanl()
[all …]
/freebsd/crypto/openssh/openbsd-compat/
H A Dbsd-waitpid.h36 #define _W_INT(w) (*(int*)&(w)) /* convert union wait to int */ argument
37 #define WIFEXITED(w) (!((_W_INT(w)) & 0377)) argument
38 #define WIFSTOPPED(w) ((_W_INT(w)) & 0100) argument
39 #define WIFSIGNALED(w) (!WIFEXITED(w) && !WIFSTOPPED(w)) argument
40 #define WEXITSTATUS(w) (int)(WIFEXITED(w) ? ((_W_INT(w) >> 8) & 0377) : -1) argument
41 #define WTERMSIG(w) (int)(WIFSIGNALED(w) ? (_W_INT(w) & 0177) : -1) argument
43 #define WCOREDUMP(w) ((_W_INT(w)) & WCOREFLAG) argument
/freebsd/lib/msun/src/
H A Dk_tan.c74 double z, r, v, w, s; in __kernel_tan() local
85 w = pio4lo - y; in __kernel_tan()
86 x = z + w; in __kernel_tan()
90 w = z * z; in __kernel_tan()
96 r = T[1] + w * (T[3] + w * (T[5] + w * (T[7] + w * (T[9] + in __kernel_tan()
97 w * T[11])))); in __kernel_tan()
98 v = z * (T[2] + w * (T[4] + w * (T[6] + w * (T[8] + w * (T[10] + in __kernel_tan()
99 w * T[12]))))); in __kernel_tan()
103 w = x + r; in __kernel_tan()
107 (v - 2.0 * (x - (w * w / (w + v) - r))); in __kernel_tan()
[all …]
/freebsd/usr.bin/finger/
H A Dsprint.c54 WHERE *w; in sflag_print() local
94 for (w = pn->whead; w != NULL; w = w->next) { in sflag_print()
96 if (w->info == LOGGEDIN && !w->writable) in sflag_print()
101 if (!w->loginat) { in sflag_print()
105 (void)putchar(w->info == LOGGEDIN && !w->writable ? in sflag_print()
107 if (*w->tty) in sflag_print()
109 (strncmp(w->tty, "tty", 3) in sflag_print()
110 && strncmp(w->tty, "cua", 3)) in sflag_print()
111 ? w->tty : w->tty + 3); in sflag_print()
114 if (w->info == LOGGEDIN) { in sflag_print()
[all …]
/freebsd/stand/libsa/
H A Duuid_to_string.c74 char *w; in uuid_to_string() local
80 w = *s = malloc(37); in uuid_to_string()
91 tohex(&w, 8, u->time_low); in uuid_to_string()
92 *w++ = '-'; in uuid_to_string()
93 tohex(&w, 4, u->time_mid); in uuid_to_string()
94 *w++ = '-'; in uuid_to_string()
95 tohex(&w, 4, u->time_hi_and_version); in uuid_to_string()
96 *w++ = '-'; in uuid_to_string()
98 tohex(&w, 2, u->clock_seq_hi_and_reserved); in uuid_to_string()
99 tohex(&w, 2, u->clock_seq_low); in uuid_to_string()
[all …]

12345678910>>...66