Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 25 of 484) sorted by relevance

12345678910>>...20

/f-stack/freebsd/sys/
H A D_atomic_subword.h123 int shift; in atomic_cmpset_8() local
128 old << shift, val << shift, 0xff << shift)); in atomic_cmpset_8()
136 int ret, shift; in atomic_fcmpset_8() local
140 wold = *old << shift; in atomic_fcmpset_8()
142 &wold, val << shift, 0xff << shift); in atomic_fcmpset_8()
153 int shift; in atomic_cmpset_16() local
158 old << shift, val << shift, 0xffff << shift)); in atomic_cmpset_16()
166 int ret, shift; in atomic_fcmpset_16() local
172 &wold, val << shift, 0xffff << shift); in atomic_fcmpset_16()
183 int shift; in atomic_load_acq_8() local
[all …]
/f-stack/freebsd/contrib/alpine-hal/
H A Dal_hal_reg_utils.h66 #define AL_REG_FIELD_GET(reg, mask, shift) (((reg) & (mask)) >> (shift)) argument
72 ((((unsigned)(val)) << (shift)) & (mask)))
81 #define AL_REG_BIT_GET(reg, shift) \ argument
82 AL_REG_FIELD_GET(reg, AL_BIT(shift), shift)
84 #define AL_REG_BITS_FIELD(shift, val) \ argument
85 (((unsigned)(val)) << (shift))
89 AL_REG_FIELD_SET(reg, AL_BIT(shift), shift, val)
92 #define AL_REG_BIT_SET(reg, shift) \ argument
93 AL_REG_BIT_VAL_SET(reg, shift, 1)
96 #define AL_REG_BIT_CLEAR(reg, shift) \ argument
[all …]
/f-stack/freebsd/contrib/ncsw/Peripherals/FM/Pcd/
H A Dfm_kg.h165 #define GET_MASK_SEL_SHIFT(shift,i) \ argument
167 case (0):shift = 26;break; \
168 case (1):shift = 20;break; \
169 case (2):shift = 10;break; \
170 case (3):shift = 4;break; \
175 #define GET_MASK_OFFSET_SHIFT(shift,i) \ argument
177 case (0):shift = 16;break; \
178 case (1):shift = 0;break; \
179 case (2):shift = 28;break; \
180 case (3):shift = 24;break; \
[all …]
/f-stack/freebsd/contrib/device-tree/src/arm/
H A Domap24xx-clocks.dtsi12 ti,bit-shift = <2>;
26 ti,bit-shift = <6>;
78 ti,bit-shift = <23>;
94 ti,bit-shift = <6>;
103 ti,bit-shift = <6>;
132 ti,bit-shift = <2>;
142 ti,bit-shift = <6>;
152 ti,bit-shift = <5>;
180 ti,bit-shift = <3>;
196 ti,bit-shift = <7>;
[all …]
H A Domap3xxx-clocks.dtsi25 ti,bit-shift = <6>;
36 ti,bit-shift = <7>;
85 ti,bit-shift = <4>;
99 ti,bit-shift = <2>;
113 ti,bit-shift = <6>;
140 ti,bit-shift = <2>;
245 ti,bit-shift = <16>;
352 ti,bit-shift = <6>;
360 ti,bit-shift = <8>;
387 ti,bit-shift = <5>;
[all …]
H A Domap2430-clocks.dtsi26 ti,bit-shift = <2>;
40 ti,bit-shift = <4>;
56 ti,bit-shift = <0>;
64 ti,bit-shift = <5>;
80 ti,bit-shift = <0>;
102 ti,bit-shift = <1>;
110 ti,bit-shift = <3>;
118 ti,bit-shift = <3>;
126 ti,bit-shift = <4>;
134 ti,bit-shift = <4>;
[all …]
H A Domap34xx-omap36xx-clocks.dtsi20 ti,bit-shift = <3>;
29 ti,bit-shift = <2>;
37 ti,bit-shift = <1>;
45 ti,bit-shift = <0>;
52 ti,bit-shift = <0>;
62 ti,bit-shift = <0>;
70 ti,bit-shift = <1>;
86 ti,bit-shift = <4>;
118 ti,bit-shift = <7>;
134 ti,bit-shift = <6>;
[all …]
H A Domap2420-clocks.dtsi13 ti,bit-shift = <15>;
21 ti,bit-shift = <8>;
35 ti,bit-shift = <11>;
45 ti,bit-shift = <1>;
53 ti,bit-shift = <5>;
69 ti,bit-shift = <10>;
77 ti,bit-shift = <8>;
100 ti,bit-shift = <8>;
108 ti,bit-shift = <28>;
172 ti,bit-shift = <3>;
[all …]
H A Domap3430es1-clocks.dtsi13 ti,bit-shift = <0>;
38 ti,bit-shift = <1>;
46 ti,bit-shift = <2>;
54 ti,bit-shift = <3>;
62 ti,bit-shift = <5>;
69 ti,bit-shift = <0>;
77 ti,bit-shift = <8>;
101 ti,bit-shift = <4>;
109 ti,bit-shift = <8>;
125 ti,bit-shift = <0>;
[all …]
H A Dam35xx-clocks.dtsi13 ti,bit-shift = <1>;
21 ti,bit-shift = <9>;
29 ti,bit-shift = <2>;
37 ti,bit-shift = <10>;
45 ti,bit-shift = <0>;
53 ti,bit-shift = <8>;
61 ti,bit-shift = <3>;
70 ti,bit-shift = <4>;
90 ti,bit-shift = <23>;
98 ti,bit-shift = <23>;
H A Domap44xx-clocks.dtsi24 ti,bit-shift = <8>;
50 ti,bit-shift = <10>;
190 ti,bit-shift = <23>;
306 ti,bit-shift = <8>;
340 ti,bit-shift = <23>;
423 ti,bit-shift = <4>;
432 ti,bit-shift = <8>;
537 ti,bit-shift = <8>;
602 ti,bit-shift = <8>;
777 ti,bit-shift = <1>;
[all …]
H A Domap36xx-am35xx-omap3430es2plus-clocks.dtsi47 ti,bit-shift = <1>;
109 ti,bit-shift = <0>;
117 ti,bit-shift = <0>;
125 ti,bit-shift = <1>;
133 ti,bit-shift = <2>;
141 ti,bit-shift = <2>;
164 ti,bit-shift = <0>;
174 ti,bit-shift = <0>;
182 ti,bit-shift = <1>;
190 ti,bit-shift = <0>;
[all …]
/f-stack/tools/libutil/
H A Dexpand_number.c46 unsigned shift; in expand_number() local
61 shift = 60; in expand_number()
64 shift = 50; in expand_number()
67 shift = 40; in expand_number()
70 shift = 30; in expand_number()
73 shift = 20; in expand_number()
76 shift = 10; in expand_number()
88 if ((number << shift) >> shift != number) { in expand_number()
93 *num = number << shift; in expand_number()
/f-stack/freebsd/libkern/
H A Dashldi3.c46 __ashldi3(a, shift) in __ashldi3() argument
48 qshift_t shift;
53 if (shift >= LONG_BITS) {
54 aa.ul[H] = shift >= QUAD_BITS ? 0 :
55 aa.ul[L] << (shift - LONG_BITS);
57 } else if (shift > 0) {
58 aa.ul[H] = (aa.ul[H] << shift) |
59 (aa.ul[L] >> (LONG_BITS - shift));
60 aa.ul[L] <<= shift;
H A Dlshrdi3.c45 __lshrdi3(quad_t a, qshift_t shift) in __lshrdi3() argument
50 if (shift >= LONG_BITS) { in __lshrdi3()
51 aa.ul[L] = shift >= QUAD_BITS ? 0 : in __lshrdi3()
52 aa.ul[H] >> (shift - LONG_BITS); in __lshrdi3()
54 } else if (shift > 0) { in __lshrdi3()
55 aa.ul[L] = (aa.ul[L] >> shift) | in __lshrdi3()
56 (aa.ul[H] << (LONG_BITS - shift)); in __lshrdi3()
57 aa.ul[H] >>= shift; in __lshrdi3()
H A Dashrdi3.c45 __ashrdi3(quad_t a, qshift_t shift) in __ashrdi3() argument
50 if (shift >= LONG_BITS) { in __ashrdi3()
61 aa.ul[L] = shift >= QUAD_BITS ? s : in __ashrdi3()
62 aa.sl[H] >> (shift - LONG_BITS); in __ashrdi3()
64 } else if (shift > 0) { in __ashrdi3()
65 aa.ul[L] = (aa.ul[L] >> shift) | in __ashrdi3()
66 (aa.ul[H] << (LONG_BITS - shift)); in __ashrdi3()
67 aa.sl[H] >>= shift; in __ashrdi3()
/f-stack/freebsd/contrib/openzfs/include/sys/
H A Dbitops.h64 #define BF32_GET_SB(x, low, len, shift, bias) \ argument
65 ((BF32_GET(x, low, len) + (bias)) << (shift))
66 #define BF64_GET_SB(x, low, len, shift, bias) \ argument
67 ((BF64_GET(x, low, len) + (bias)) << (shift))
75 #define BF32_SET_SB(x, low, len, shift, bias, val) do { \ argument
76 ASSERT3U(IS_P2ALIGNED(val, 1U << shift), !=, B_FALSE); \
77 ASSERT3S((val) >> (shift), >=, bias); \
78 BF32_SET(x, low, len, ((val) >> (shift)) - (bias)); \
80 #define BF64_SET_SB(x, low, len, shift, bias, val) do { \ argument
82 ASSERT3S((val) >> (shift), >=, bias); \
[all …]
/f-stack/freebsd/arm/allwinner/clkng/
H A Dccu_a13.c164 .n = {.shift = 8, .width = 5},
165 .k = {.shift = 4, .width = 2},
166 .m = {.shift = 0, .width = 2},
185 .n = {.shift = 8, .width = 7},
187 .m = {.shift = 0, .width = 5},
204 .n = {.shift = 8, .width = 5},
205 .k = {.shift = 4, .width = 2},
246 .n = {.shift = 8, .width = 5},
247 .k = {.shift = 4, .width = 2},
248 .m = {.shift = 0, .width = 2},
[all …]
H A Daw_clk.h186 .shift = s, \
194 .shift = s, \
214 .n.shift = _n_shift, \
218 .k.shift = _k_shift, \
222 .m.shift = _m_shift, \
226 .p.shift = _p_shift, \
336 .n.shift = _nshift, \
340 .m.shift = _mshift, \
371 .m.shift = _mshift, \
395 .n.shift = _nshift, \
[all …]
H A Daw_clk_nkmp.c296 val |= aw_clk_factor_get_value(&sc->n, best_n) << sc->n.shift; in aw_clk_nkmp_set_freq()
297 val |= aw_clk_factor_get_value(&sc->k, best_k) << sc->k.shift; in aw_clk_nkmp_set_freq()
298 val |= aw_clk_factor_get_value(&sc->m, best_m) << sc->m.shift; in aw_clk_nkmp_set_freq()
378 sc->n.shift = clkdef->n.shift; in aw_clk_nkmp_register()
380 sc->n.mask = ((1 << clkdef->n.width) - 1) << sc->n.shift; in aw_clk_nkmp_register()
384 sc->k.shift = clkdef->k.shift; in aw_clk_nkmp_register()
386 sc->k.mask = ((1 << clkdef->k.width) - 1) << sc->k.shift; in aw_clk_nkmp_register()
390 sc->m.shift = clkdef->m.shift; in aw_clk_nkmp_register()
392 sc->m.mask = ((1 << clkdef->m.width) - 1) << sc->m.shift; in aw_clk_nkmp_register()
396 sc->p.shift = clkdef->p.shift; in aw_clk_nkmp_register()
[all …]
/f-stack/freebsd/contrib/ncsw/inc/flib/
H A Dfsl_fman_kg.h152 case 0: (shift) = 26; break; \
155 case 3: (shift) = 4; break; \
156 default: (shift) = 0; \
163 case 1: (shift) = 0; break; \
166 default: (shift) = 0; \
172 case 0: shift = 24; break; \
173 case 1: shift = 16; break; \
174 case 2: shift = 8; break; \
175 case 3: shift = 0; break; \
176 default: shift = 0; \
[all …]
/f-stack/app/nginx-1.16.1/src/core/
H A Dngx_slab.c209 shift = 1; in ngx_slab_alloc_locked()
211 slot = shift - pool->min_shift; in ngx_slab_alloc_locked()
214 shift = pool->min_shift; in ngx_slab_alloc_locked()
228 if (shift < ngx_slab_exact_shift) { in ngx_slab_alloc_locked()
335 if (shift < ngx_slab_exact_shift) { in ngx_slab_alloc_locked()
338 n = (ngx_pagesize >> shift) / ((1 << shift) * 8); in ngx_slab_alloc_locked()
359 page->slab = shift; in ngx_slab_alloc_locked()
484 shift = slab & NGX_SLAB_SHIFT_MASK; in ngx_slab_free_locked()
485 size = (size_t) 1 << shift; in ngx_slab_free_locked()
512 n = (ngx_pagesize >> shift) / ((1 << shift) * 8); in ngx_slab_free_locked()
[all …]
/f-stack/dpdk/drivers/crypto/octeontx2/
H A Dotx2_ipsec_anti_replay.h31 uint64_t shift; in anti_replay_check() local
39 shift = seq - base; in anti_replay_check()
40 if (shift < winsz) { /* In window */ in anti_replay_check()
45 wptr = window + (shift >> WORD_SHIFT); in anti_replay_check()
46 *wptr <<= shift; in anti_replay_check()
97 shift = seq - base; in anti_replay_check()
98 if (unlikely(shift >= winsz)) { in anti_replay_check()
119 replay->wint = ((wint + shift - 1) % ex_winsz) + 1; in anti_replay_check()
120 replay->winb = ((winb + shift - 1) % ex_winsz) + 1; in anti_replay_check()
131 shiftwords = ((wint + shift - 1) >> WORD_SHIFT) - in anti_replay_check()
/f-stack/freebsd/mips/nlm/
H A Dboard_cpld.c105 int shift = 0; in nlm_board_cpld_dboard_type() local
108 case 0: shift = 0; break; in nlm_board_cpld_dboard_type()
109 case 1: shift = 4; break; in nlm_board_cpld_dboard_type()
110 case 2: shift = 2; break; in nlm_board_cpld_dboard_type()
111 case 3: shift = 6; break; in nlm_board_cpld_dboard_type()
113 val = nlm_cpld_read(base, CPLD_CTRL_STATUS) >> shift; in nlm_board_cpld_dboard_type()
/f-stack/freebsd/kern/
H A Dkern_acct.c482 int shift; in encode_timeval() local
511 shift = FLT_MANT_DIG - norm_exp - 1; in encode_timeval()
514 val, exp, shift, norm_exp); in encode_timeval()
516 ((shift > 0 ? (val << shift) : (val >> -shift)) & MANT_MASK)); in encode_timeval()
519 ((shift > 0 ? val << shift : val >> -shift) & MANT_MASK)); in encode_timeval()
530 int shift; in encode_long() local
541 shift = FLT_MANT_DIG - norm_exp - 1; in encode_long()
544 val, shift, norm_exp); in encode_long()
546 ((shift > 0 ? (val << shift) : (val >> -shift)) & MANT_MASK)); in encode_long()
549 ((shift > 0 ? val << shift : val >> -shift) & MANT_MASK)); in encode_long()

12345678910>>...20