Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 357) sorted by relevance

12345678910>>...15

/include/crypto/internal/
Dblake2s.h14 void blake2s_compress_generic(struct blake2s_state *state, const u8 *block,
17 void blake2s_compress(struct blake2s_state *state, const u8 *block,
22 static inline void blake2s_set_lastblock(struct blake2s_state *state) in blake2s_set_lastblock() argument
24 state->f[0] = -1; in blake2s_set_lastblock()
30 __blake2s_update(struct blake2s_state *state, const u8 *in, size_t inlen, in __blake2s_update() argument
33 const size_t fill = BLAKE2S_BLOCK_SIZE - state->buflen; in __blake2s_update()
38 memcpy(state->buf + state->buflen, in, fill); in __blake2s_update()
40 blake2s_compress_generic(state, state->buf, 1, in __blake2s_update()
43 blake2s_compress(state, state->buf, 1, in __blake2s_update()
45 state->buflen = 0; in __blake2s_update()
[all …]
Dblake2b.h14 void blake2b_compress_generic(struct blake2b_state *state,
17 static inline void blake2b_set_lastblock(struct blake2b_state *state) in blake2b_set_lastblock() argument
19 state->f[0] = -1; in blake2b_set_lastblock()
22 typedef void (*blake2b_compress_t)(struct blake2b_state *state,
25 static inline void __blake2b_update(struct blake2b_state *state, in __blake2b_update() argument
29 const size_t fill = BLAKE2B_BLOCK_SIZE - state->buflen; in __blake2b_update()
34 memcpy(state->buf + state->buflen, in, fill); in __blake2b_update()
35 (*compress)(state, state->buf, 1, BLAKE2B_BLOCK_SIZE); in __blake2b_update()
36 state->buflen = 0; in __blake2b_update()
43 (*compress)(state, in, nblocks - 1, BLAKE2B_BLOCK_SIZE); in __blake2b_update()
[all …]
/include/crypto/
Dblake2s.h46 static inline void __blake2s_init(struct blake2s_state *state, size_t outlen, in __blake2s_init() argument
49 state->h[0] = BLAKE2S_IV0 ^ (0x01010000 | keylen << 8 | outlen); in __blake2s_init()
50 state->h[1] = BLAKE2S_IV1; in __blake2s_init()
51 state->h[2] = BLAKE2S_IV2; in __blake2s_init()
52 state->h[3] = BLAKE2S_IV3; in __blake2s_init()
53 state->h[4] = BLAKE2S_IV4; in __blake2s_init()
54 state->h[5] = BLAKE2S_IV5; in __blake2s_init()
55 state->h[6] = BLAKE2S_IV6; in __blake2s_init()
56 state->h[7] = BLAKE2S_IV7; in __blake2s_init()
57 state->t[0] = 0; in __blake2s_init()
[all …]
Dblake2b.h43 static inline void __blake2b_init(struct blake2b_state *state, size_t outlen, in __blake2b_init() argument
46 state->h[0] = BLAKE2B_IV0 ^ (0x01010000 | keylen << 8 | outlen); in __blake2b_init()
47 state->h[1] = BLAKE2B_IV1; in __blake2b_init()
48 state->h[2] = BLAKE2B_IV2; in __blake2b_init()
49 state->h[3] = BLAKE2B_IV3; in __blake2b_init()
50 state->h[4] = BLAKE2B_IV4; in __blake2b_init()
51 state->h[5] = BLAKE2B_IV5; in __blake2b_init()
52 state->h[6] = BLAKE2B_IV6; in __blake2b_init()
53 state->h[7] = BLAKE2B_IV7; in __blake2b_init()
54 state->t[0] = 0; in __blake2b_init()
[all …]
Dsha.h79 u32 state[SHA1_DIGEST_SIZE / 4]; member
85 u32 state[SHA256_DIGEST_SIZE / 4]; member
91 u64 state[SHA512_DIGEST_SIZE / 8]; member
128 sctx->state[0] = SHA256_H0; in sha256_init()
129 sctx->state[1] = SHA256_H1; in sha256_init()
130 sctx->state[2] = SHA256_H2; in sha256_init()
131 sctx->state[3] = SHA256_H3; in sha256_init()
132 sctx->state[4] = SHA256_H4; in sha256_init()
133 sctx->state[5] = SHA256_H5; in sha256_init()
134 sctx->state[6] = SHA256_H6; in sha256_init()
[all …]
Dchacha.h37 void chacha_block(u32 *state, u8 *stream, int nrounds);
38 static inline void chacha20_block(u32 *state, u8 *stream) in chacha20_block() argument
40 chacha_block(state, stream, 20); in chacha20_block()
44 void crypto_chacha_init(u32 *state, const struct chacha_ctx *ctx, const u8 *iv);
61 static inline void chacha_init_consts(u32 *state) in chacha_init_consts() argument
63 state[0] = CHACHA_CONSTANT_EXPA; in chacha_init_consts()
64 state[1] = CHACHA_CONSTANT_ND_3; in chacha_init_consts()
65 state[2] = CHACHA_CONSTANT_2_BY; in chacha_init_consts()
66 state[3] = CHACHA_CONSTANT_TE_K; in chacha_init_consts()
Dsha512_base.h25 sctx->state[0] = SHA384_H0; in sha384_base_init()
26 sctx->state[1] = SHA384_H1; in sha384_base_init()
27 sctx->state[2] = SHA384_H2; in sha384_base_init()
28 sctx->state[3] = SHA384_H3; in sha384_base_init()
29 sctx->state[4] = SHA384_H4; in sha384_base_init()
30 sctx->state[5] = SHA384_H5; in sha384_base_init()
31 sctx->state[6] = SHA384_H6; in sha384_base_init()
32 sctx->state[7] = SHA384_H7; in sha384_base_init()
42 sctx->state[0] = SHA512_H0; in sha512_base_init()
43 sctx->state[1] = SHA512_H1; in sha512_base_init()
[all …]
Dsm3_base.h24 sctx->state[0] = SM3_IVA; in sm3_base_init()
25 sctx->state[1] = SM3_IVB; in sm3_base_init()
26 sctx->state[2] = SM3_IVC; in sm3_base_init()
27 sctx->state[3] = SM3_IVD; in sm3_base_init()
28 sctx->state[4] = SM3_IVE; in sm3_base_init()
29 sctx->state[5] = SM3_IVF; in sm3_base_init()
30 sctx->state[6] = SM3_IVG; in sm3_base_init()
31 sctx->state[7] = SM3_IVH; in sm3_base_init()
105 put_unaligned_be32(sctx->state[i], digest++); in sm3_base_finish()
Dpoly1305.h47 static inline void poly1305_core_init(struct poly1305_state *state) in poly1305_core_init() argument
49 memset(state->h, 0, sizeof(state->h)); in poly1305_core_init()
51 void poly1305_core_blocks(struct poly1305_state *state,
54 void poly1305_core_emit(const struct poly1305_state *state, void *dst);
/include/linux/
Dcpuhotplug.h189 int __cpuhp_setup_state(enum cpuhp_state state, const char *name, bool invoke,
193 int __cpuhp_setup_state_cpuslocked(enum cpuhp_state state, const char *name,
208 static inline int cpuhp_setup_state(enum cpuhp_state state, in cpuhp_setup_state() argument
213 return __cpuhp_setup_state(state, name, true, startup, teardown, false); in cpuhp_setup_state()
216 static inline int cpuhp_setup_state_cpuslocked(enum cpuhp_state state, in cpuhp_setup_state_cpuslocked() argument
221 return __cpuhp_setup_state_cpuslocked(state, name, true, startup, in cpuhp_setup_state_cpuslocked()
236 static inline int cpuhp_setup_state_nocalls(enum cpuhp_state state, in cpuhp_setup_state_nocalls() argument
241 return __cpuhp_setup_state(state, name, false, startup, teardown, in cpuhp_setup_state_nocalls()
245 static inline int cpuhp_setup_state_nocalls_cpuslocked(enum cpuhp_state state, in cpuhp_setup_state_nocalls_cpuslocked() argument
250 return __cpuhp_setup_state_cpuslocked(state, name, false, startup, in cpuhp_setup_state_nocalls_cpuslocked()
[all …]
Dpwm.h97 struct pwm_state state; member
106 struct pwm_state *state) in pwm_get_state() argument
108 *state = pwm->state; in pwm_get_state()
113 struct pwm_state state; in pwm_is_enabled() local
115 pwm_get_state(pwm, &state); in pwm_is_enabled()
117 return state.enabled; in pwm_is_enabled()
123 pwm->state.period = period; in pwm_set_period()
128 struct pwm_state state; in pwm_get_period() local
130 pwm_get_state(pwm, &state); in pwm_get_period()
132 return state.period; in pwm_get_period()
[all …]
Dppp-comp.h40 void (*comp_free) (void *state);
43 int (*comp_init) (void *state, unsigned char *options,
47 void (*comp_reset) (void *state);
50 int (*compress) (void *state, unsigned char *rptr,
54 void (*comp_stat) (void *state, struct compstat *stats);
60 void (*decomp_free) (void *state);
63 int (*decomp_init) (void *state, unsigned char *options,
68 void (*decomp_reset) (void *state);
71 int (*decompress) (void *state, unsigned char *ibuf, int isize,
75 void (*incomp) (void *state, unsigned char *ibuf, int icnt);
[all …]
Dtextsearch.h79 struct ts_state *state);
90 struct ts_state *state);
106 struct ts_state *state) in textsearch_next() argument
108 unsigned int ret = conf->ops->find(conf, state); in textsearch_next()
111 conf->finish(conf, state); in textsearch_next()
125 struct ts_state *state) in textsearch_find() argument
127 state->offset = 0; in textsearch_find()
128 return textsearch_next(conf, state); in textsearch_find()
Dprandom.h48 u32 prandom_u32_state(struct rnd_state *state);
49 void prandom_bytes_state(struct rnd_state *state, void *buf, size_t nbytes);
85 static inline void prandom_seed_state(struct rnd_state *state, u64 seed) in prandom_seed_state() argument
89 state->s1 = __seed(i, 2U); in prandom_seed_state()
90 state->s2 = __seed(i, 8U); in prandom_seed_state()
91 state->s3 = __seed(i, 16U); in prandom_seed_state()
92 state->s4 = __seed(i, 128U); in prandom_seed_state()
Dxxhash.h178 void xxh32_reset(struct xxh32_state *state, uint32_t seed);
191 int xxh32_update(struct xxh32_state *state, const void *input, size_t length);
204 uint32_t xxh32_digest(const struct xxh32_state *state);
212 void xxh64_reset(struct xxh64_state *state, uint64_t seed);
224 int xxh64_update(struct xxh64_state *state, const void *input, size_t length);
237 uint64_t xxh64_digest(const struct xxh64_state *state);
/include/drm/
Ddrm_atomic.h151 struct drm_plane_state *state, *old_state, *new_state; member
156 struct drm_crtc_state *state, *old_state, *new_state; member
174 struct drm_connector_state *state, *old_state, *new_state; member
218 struct drm_private_state *state);
258 struct drm_private_state *state; member
290 struct drm_atomic_state *state; member
295 struct drm_private_state *state, *old_state, *new_state; member
402 void drm_atomic_state_clear(struct drm_atomic_state *state);
411 drm_atomic_state_get(struct drm_atomic_state *state) in drm_atomic_state_get() argument
413 kref_get(&state->ref); in drm_atomic_state_get()
[all …]
Ddrm_atomic_state_helper.h41 struct drm_crtc_state *state);
44 struct drm_crtc_state *state);
47 void __drm_atomic_helper_crtc_destroy_state(struct drm_crtc_state *state);
49 struct drm_crtc_state *state);
52 struct drm_plane_state *state);
55 struct drm_plane_state *state);
58 void __drm_atomic_helper_plane_destroy_state(struct drm_plane_state *state);
60 struct drm_plane_state *state);
68 struct drm_connector_state *state);
72 __drm_atomic_helper_connector_destroy_state(struct drm_connector_state *state);
[all …]
Ddrm_atomic_helper.h42 struct drm_atomic_state *state);
50 struct drm_atomic_state *state);
52 struct drm_atomic_state *state);
53 void drm_atomic_helper_commit_tail(struct drm_atomic_state *state);
54 void drm_atomic_helper_commit_tail_rpm(struct drm_atomic_state *state);
56 struct drm_atomic_state *state,
59 struct drm_atomic_state *state);
61 struct drm_atomic_state *state);
64 struct drm_atomic_state *state,
78 struct drm_atomic_state *state);
[all …]
Ddrm_plane.h207 struct drm_atomic_state *state; member
211 drm_plane_state_src(const struct drm_plane_state *state) in drm_plane_state_src() argument
214 .x1 = state->src_x, in drm_plane_state_src()
215 .y1 = state->src_y, in drm_plane_state_src()
216 .x2 = state->src_x + state->src_w, in drm_plane_state_src()
217 .y2 = state->src_y + state->src_h, in drm_plane_state_src()
223 drm_plane_state_dest(const struct drm_plane_state *state) in drm_plane_state_dest() argument
226 .x1 = state->crtc_x, in drm_plane_state_dest()
227 .y1 = state->crtc_y, in drm_plane_state_dest()
228 .x2 = state->crtc_x + state->crtc_w, in drm_plane_state_dest()
[all …]
Ddrm_bridge.h264 struct drm_atomic_state *state);
289 struct drm_atomic_state *state);
311 struct drm_atomic_state *state);
336 struct drm_atomic_state *state);
423 struct drm_atomic_state *state);
425 struct drm_atomic_state *state);
427 struct drm_atomic_state *state);
429 struct drm_atomic_state *state);
/include/linux/pinctrl/
Dmachine.h80 #define PIN_MAP_DUMMY_STATE(dev, state) \ argument
83 .name = state, \
87 #define PIN_MAP_MUX_GROUP(dev, state, pinctrl, grp, func) \ argument
90 .name = state, \
102 #define PIN_MAP_MUX_GROUP_HOG(dev, state, grp, func) \ argument
103 PIN_MAP_MUX_GROUP(dev, state, dev, grp, func)
108 #define PIN_MAP_CONFIGS_PIN(dev, state, pinctrl, pin, cfgs) \ argument
111 .name = state, \
124 #define PIN_MAP_CONFIGS_PIN_HOG(dev, state, pin, cfgs) \ argument
125 PIN_MAP_CONFIGS_PIN(dev, state, dev, pin, cfgs)
[all …]
/include/trace/events/
Dpower.h18 TP_PROTO(unsigned int state, unsigned int cpu_id),
20 TP_ARGS(state, cpu_id),
23 __field( u32, state )
28 __entry->state = state;
32 TP_printk("state=%lu cpu_id=%lu", (unsigned long)__entry->state,
38 TP_PROTO(unsigned int state, unsigned int cpu_id),
40 TP_ARGS(state, cpu_id)
250 TP_PROTO(const char *name, unsigned int state),
252 TP_ARGS(name, state),
256 __field( u64, state )
[all …]
/include/soc/qcom/
Drpmh.h14 int rpmh_write(const struct device *dev, enum rpmh_state state,
17 int rpmh_write_async(const struct device *dev, enum rpmh_state state,
20 int rpmh_write_batch(const struct device *dev, enum rpmh_state state,
29 static inline int rpmh_write(const struct device *dev, enum rpmh_state state, in rpmh_write() argument
34 enum rpmh_state state, in rpmh_write_async() argument
39 enum rpmh_state state, in rpmh_write_batch() argument
/include/linux/soc/qcom/
Dsmem_state.h19 int qcom_smem_state_update_bits(struct qcom_smem_state *state, u32 mask, u32 value);
22 void qcom_smem_state_unregister(struct qcom_smem_state *state);
32 static inline void qcom_smem_state_put(struct qcom_smem_state *state) in qcom_smem_state_put() argument
36 static inline int qcom_smem_state_update_bits(struct qcom_smem_state *state, in qcom_smem_state_update_bits() argument
48 static inline void qcom_smem_state_unregister(struct qcom_smem_state *state) in qcom_smem_state_unregister() argument
/include/linux/regulator/
Dcoupler.h50 suspend_state_t state);
58 suspend_state_t state);
64 suspend_state_t state);
76 suspend_state_t state) in regulator_check_consumers() argument
91 suspend_state_t state) in regulator_set_voltage_rdev() argument

12345678910>>...15