Home
last modified time | relevance | path

Searched refs:context (Results 1 – 25 of 237) sorted by relevance

12345678910

/f-stack/freebsd/contrib/libsodium/src/libsodium/crypto_pwhash/argon2/
H A Dargon2-core.c208 blake2b_long(context->out, context->outlen, blockhash_bytes, in finalize()
246 if (NULL == context) { in validate_inputs()
250 if (NULL == context->out) { in validate_inputs()
309 if (NULL == context->ad) { in validate_inputs()
332 if (context->m_cost < 8 * context->lanes) { in validate_inputs()
427 &BlakeHash, (const uint8_t *) context->pwd, context->pwdlen); in initial_hash()
431 sodium_memzero(context->pwd, context->pwdlen); in initial_hash()
442 &BlakeHash, (const uint8_t *) context->salt, context->saltlen); in initial_hash()
451 &BlakeHash, (const uint8_t *) context->secret, context->secretlen); in initial_hash()
454 sodium_memzero(context->secret, context->secretlen); in initial_hash()
[all …]
H A Dargon2.c45 memory_blocks = context->m_cost; in argon2_ctx()
80 finalize(context, &instance); in argon2_ctx()
92 argon2_context context; in argon2_hash() local
119 context.secret = NULL; in argon2_hash()
120 context.secretlen = 0; in argon2_hash()
121 context.ad = NULL; in argon2_hash()
122 context.adlen = 0; in argon2_hash()
123 context.t_cost = t_cost; in argon2_hash()
124 context.m_cost = m_cost; in argon2_hash()
125 context.lanes = parallelism; in argon2_hash()
[all …]
/f-stack/freebsd/contrib/octeon-sdk/
H A Dcvmx-debug.c488 return &context->regs[regnum]; in cvmx_debug_regnum_to_context_ref()
492 case 33: return &context->lo; in cvmx_debug_regnum_to_context_ref()
493 case 34: return &context->hi; in cvmx_debug_regnum_to_context_ref()
1319 …cvmx_debug_memcpy_align ((char *) context->regs, __cvmx_debug_save_regs_area, sizeof(context->regs… in cvmx_debug_save_core_context()
1320 context->lo = lo; in cvmx_debug_save_core_context()
1321 context->hi = hi; in cvmx_debug_save_core_context()
1374 …cvmx_debug_memcpy_align (__cvmx_debug_save_regs_area, (char *) context->regs, sizeof(context->regs… in cvmx_debug_restore_core_context()
1407 lo = context->lo; in cvmx_debug_restore_core_context()
1408 hi = context->hi; in cvmx_debug_restore_core_context()
1469 cvmx_debug_print_cause(context); in __cvmx_debug_handler_stage3()
[all …]
H A Dcvmx-debug-remote.c61 static void cvmx_debug_remote_mem_wait_for_resume(volatile cvmx_debug_core_context_t *context, cvmx… in cvmx_debug_remote_mem_wait_for_resume() argument
68 (context->cop0.debug & 0x1) && /* Single stepping */ in cvmx_debug_remote_mem_wait_for_resume()
69 !(context->cop0.debug & 0x1e) && /* Did not hit a breakpoint */ in cvmx_debug_remote_mem_wait_for_resume()
70 ((context->cop0.status & 0x2) || cvmx_interrupt_in_isr)) in cvmx_debug_remote_mem_wait_for_resume()
73 context->remote_controlled = 1; in cvmx_debug_remote_mem_wait_for_resume()
75 while (context->remote_controlled) in cvmx_debug_remote_mem_wait_for_resume()
/f-stack/dpdk/drivers/net/mlx4/
H A Dmlx4_glue.c28 mlx4_glue_get_async_event(struct ibv_context *context, in mlx4_glue_get_async_event() argument
31 return ibv_get_async_event(context, event); in mlx4_glue_get_async_event()
41 mlx4_glue_alloc_pd(struct ibv_context *context) in mlx4_glue_alloc_pd() argument
43 return ibv_alloc_pd(context); in mlx4_glue_alloc_pd()
71 mlx4_glue_close_device(struct ibv_context *context) in mlx4_glue_close_device() argument
73 return ibv_close_device(context); in mlx4_glue_close_device()
86 return ibv_query_device(context, device_attr); in mlx4_glue_query_device()
94 return ibv_query_device_ex(context, input, attr); in mlx4_glue_query_device_ex()
113 return ibv_create_comp_channel(context); in mlx4_glue_create_comp_channel()
211 mlx4_glue_create_wq(struct ibv_context *context, in mlx4_glue_create_wq() argument
[all …]
H A Dmlx4_glue.h29 int (*get_async_event)(struct ibv_context *context,
32 struct ibv_pd *(*alloc_pd)(struct ibv_context *context);
37 int (*close_device)(struct ibv_context *context);
39 int (*query_device)(struct ibv_context *context,
41 int (*query_device_ex)(struct ibv_context *context,
44 int (*query_port)(struct ibv_context *context, uint8_t port_num,
48 (struct ibv_context *context);
64 (struct ibv_context *context,
73 (struct ibv_context *context,
76 struct ibv_wq *(*create_wq)(struct ibv_context *context,
[all …]
/f-stack/dpdk/lib/librte_acl/
H A Dacl_bld.c171 context->num_nodes++; in acl_alloc_node()
172 node->id = context->node_id++; in acl_alloc_node()
200 acl_build_free(context, in acl_free_node()
207 context->num_nodes--; in acl_free_node()
703 acl_deref_ptr(context, in acl_merge_trie()
1324 context->tries[n].count = 0; in build_one_trie()
1327 context->data_indexes[n]); in build_one_trie()
1328 context->tries[n].data_index = context->data_indexes[n]; in build_one_trie()
1332 context->bld_tries[n].trie = build_trie(context, rule_sets[n], in build_one_trie()
1366 last = build_one_trie(context, rule_sets, n, context->node_max); in acl_build_tries()
[all …]
/f-stack/freebsd/sys/
H A Dtaskqueue.h64 typedef void (*taskqueue_callback_fn)(void *context);
73 typedef void (*taskqueue_enqueue_fn)(void *context);
77 void *context);
107 taskqueue_callback_fn callback, void *context);
109 #define TASK_INITIALIZER(priority, func, context) \ argument
112 .ta_context = (context) }
118 void taskqueue_thread_enqueue(void *context);
128 (task)->ta_context = (context); \
135 void *context);
184 (context)); \
[all …]
/f-stack/dpdk/drivers/common/mlx5/linux/
H A Dmlx5_glue.h153 (struct ibv_context *context);
164 (struct ibv_context *context,
178 (struct ibv_context *context,
188 (struct ibv_context *context,
192 (struct ibv_context *context,
198 (struct ibv_context *context,
228 (struct ibv_context *context,
232 (struct ibv_context *context,
242 (struct ibv_context *context,
246 (struct ibv_context *context,
[all …]
H A Dmlx5_glue.c28 return ibv_alloc_pd(context); in mlx5_glue_alloc_pd()
250 (void)context; in mlx5_glue_create_counter_set()
275 (void)context; in mlx5_glue_describe_counter_set()
302 (void)context; in mlx5_glue_create_counters()
522 (void)context; in mlx5_glue_dv_create_wq()
560 (void)context; in mlx5_glue_dv_create_qp()
575 (void)context; in mlx5_glue_dv_create_flow_matcher()
584 (void)context; in mlx5_glue_dv_create_flow_matcher()
1032 (void)context; in mlx5_glue_devx_umem_reg()
1225 (void)context; in mlx5_glue_devx_alloc_uar()
[all …]
/f-stack/freebsd/kern/
H A Dmd4c.c96 MD4Init(MD4_CTX *context) in MD4Init() argument
98 context->count[0] = context->count[1] = 0; in MD4Init()
102 context->state[0] = 0x67452301; in MD4Init()
103 context->state[1] = 0xefcdab89; in MD4Init()
104 context->state[2] = 0x98badcfe; in MD4Init()
123 context->count[1]++; in MD4Update()
131 MD4Transform (context->state, context->buffer); in MD4Update()
147 MD4Pad(MD4_CTX *context) in MD4Pad() argument
162 MD4Update (context, bits, 8); in MD4Pad()
172 MD4Pad (context); in MD4Final()
[all …]
H A Dmd5c.c134 MD5Init (context) in MD5Init() argument
135 MD5_CTX *context; in MD5Init()
138 context->count[0] = context->count[1] = 0;
141 context->state[0] = 0x67452301;
155 MD5_CTX *context; in MD5Update()
168 context->count[1]++;
177 MD5Transform (context->state, context->buffer);
197 MD5Pad (MD5_CTX *context) in MD5Pad() argument
211 MD5Update (context, bits, 8); in MD5Pad()
223 MD5Pad (context); in MD5Final()
[all …]
/f-stack/app/redis-5.0.5/src/
H A Dsha1.c117 void SHA1Init(SHA1_CTX* context) in SHA1Init() argument
120 context->state[0] = 0x67452301; in SHA1Init()
121 context->state[1] = 0xEFCDAB89; in SHA1Init()
122 context->state[2] = 0x98BADCFE; in SHA1Init()
123 context->state[3] = 0x10325476; in SHA1Init()
125 context->count[0] = context->count[1] = 0; in SHA1Init()
135 j = context->count[0]; in SHA1Update()
137 context->count[1]++; in SHA1Update()
142 SHA1Transform(context->state, context->buffer); in SHA1Update()
184 SHA1Update(context, &c, 1); in SHA1Final()
[all …]
H A Dredis-benchmark.c85 redisContext *context; member
127 aeDeleteFileEvent(config.el,c->context->fd,AE_WRITABLE); in freeClient()
128 aeDeleteFileEvent(config.el,c->context->fd,AE_READABLE); in freeClient()
129 redisFree(c->context); in freeClient()
150 aeDeleteFileEvent(config.el,c->context->fd,AE_WRITABLE); in resetClient()
151 aeDeleteFileEvent(config.el,c->context->fd,AE_READABLE); in resetClient()
201 if (redisBufferRead(c->context) != REDIS_OK) { in readHandler()
202 fprintf(stderr,"Error: %s\n",c->context->errstr); in readHandler()
206 if (redisGetReply(c->context,&reply) != REDIS_OK) { in readHandler()
325 if (c->context->err) { in createClient()
[all …]
H A Dsha1.h17 void SHA1Init(SHA1_CTX* context);
18 void SHA1Update(SHA1_CTX* context, const unsigned char* data, uint32_t len);
19 void SHA1Final(unsigned char digest[20], SHA1_CTX* context);
/f-stack/app/redis-5.0.5/deps/hiredis/adapters/
H A Divykis.h8 redisAsyncContext *context; member
13 redisAsyncContext *context = (redisAsyncContext *)arg; in redisIvykisReadEvent() local
14 redisAsyncHandleRead(context); in redisIvykisReadEvent()
18 redisAsyncContext *context = (redisAsyncContext *)arg; in redisIvykisWriteEvent() local
19 redisAsyncHandleWrite(context); in redisIvykisWriteEvent()
59 e->context = ac; in redisIvykisAttach()
75 e->fd.cookie = e->context; in redisIvykisAttach()
H A Dlibuv.h10 redisAsyncContext* context; member
23 if (p->context != NULL && (events & UV_READABLE)) { in redisLibuvPoll()
24 redisAsyncHandleRead(p->context); in redisLibuvPoll()
26 if (p->context != NULL && (events & UV_WRITABLE)) { in redisLibuvPoll()
27 redisAsyncHandleWrite(p->context); in redisLibuvPoll()
86 p->context = NULL; // indicate that context might no longer exist in redisLibuvCleanup()
118 p->context = ac; in redisLibuvAttach()
H A Dmacosx.h15 redisAsyncContext *context; member
61 redisAsyncContext* context = (redisAsyncContext*) info; in redisMacOSAsyncCallback() local
65 redisAsyncHandleRead(context); in redisMacOSAsyncCallback()
69 redisAsyncHandleWrite(context); in redisMacOSAsyncCallback()
87 redisRunLoop->context = redisAsyncCtx; in redisMacOSAttach()
/f-stack/freebsd/contrib/libsodium/test/default/
H A Dkdf.c10 char *context; in tv_kdf() local
15 context = (char *) sodium_malloc(crypto_kdf_CONTEXTBYTES); in tv_kdf()
18 memcpy(context, "KDF test", strlen("KDF test")); in tv_kdf()
25 i, context, master_key); in tv_kdf()
35 i, context, master_key) == 0) { in tv_kdf()
46 sodium_free(context); in tv_kdf()
/f-stack/freebsd/contrib/device-tree/Bindings/iommu/
H A Dqcom,iommu.txt5 and optionally requiring additional configuration to route context irqs
27 - #iommu-cells : Must be 1. Index identifies the context-bank #.
29 - ranges : Base address and size of the iommu context banks.
33 - List of sub-nodes, one per translation context bank. Each sub-node
37 - "qcom,msm-iommu-v1-ns" : non-secure context bank
38 - "qcom,msm-iommu-v1-sec" : secure context bank
39 - reg : Base address and size of context bank within the iommu
40 - interrupts : The context fault irq.
46 for routing of context bank irq's to secure vs non-
48 context banks)
/f-stack/freebsd/arm/freescale/imx/
H A Dimx6_sdma.c248 struct sdma_context_data *context; in sdma_configure() local
301 context = sc->context; in sdma_configure()
302 memset(context, 0, sizeof(*context)); in sdma_configure()
314 context->gReg[1] = 0; in sdma_configure()
316 context->gReg[0] = 0; in sdma_configure()
317 context->gReg[1] = (1 << conf->event); in sdma_configure()
320 context->gReg[6] = conf->daddr; in sdma_configure()
321 context->gReg[7] = conf->word_length; in sdma_configure()
326 bd0->mode.count = sizeof(*context) / 4; in sdma_configure()
403 sc->context = (void *)((char *)sc->ccb + \ in boot_firmware()
[all …]
/f-stack/freebsd/x86/iommu/
H A Dintel_ctx.c123 ctxp += ctx->context.rid & 0xff; in dmar_map_ctx_entry()
137 ctx->context.tag->common.boundary = 0; in device_tag_init()
143 ctx->context.tag->ctx = CTX2IOCTX(ctx); in device_tag_init()
144 ctx->context.tag->owner = dev; in device_tag_init()
449 ctx->context.rid = rid; in dmar_ctx_alloc()
586 ctx->context.tag->owner = dev; in dmar_get_ctx_for_dev1()
618 ctx->context.tag->owner = dev; in dmar_get_ctx_for_dev1()
813 free(ctx->context.tag, M_DMAR_CTX); in dmar_free_ctx_locked()
842 if (ctx->context.rid == rid) in dmar_find_ctx_locked()
961 ctx = IOCTX2CTX(context); in iommu_free_ctx_locked()
[all …]
/f-stack/dpdk/lib/librte_jobstats/
H A Drte_jobstats.c131 if (unlikely(ctx == NULL || job == NULL || job->context != NULL)) in rte_jobstats_start()
135 job->context = ctx; in rte_jobstats_start()
151 if (unlikely(job == NULL || job->context == NULL)) in rte_jobstats_abort()
154 ctx = job->context; in rte_jobstats_abort()
159 job->context = NULL; in rte_jobstats_abort()
172 if (unlikely(job == NULL || job->context == NULL)) in rte_jobstats_finish()
180 ctx = job->context; in rte_jobstats_finish()
195 job->context = NULL; in rte_jobstats_finish()
245 job->context = NULL; in rte_jobstats_init()
/f-stack/freebsd/amd64/linux/
H A Dlinux_sysvec.c519 struct l_sigcontext *context; in linux_rt_sigreturn() local
531 context = &uc.uc_mcontext; in linux_rt_sigreturn()
532 rflags = context->sc_rflags; in linux_rt_sigreturn()
560 if (!CS_SECURE(context->sc_cs)) { in linux_rt_sigreturn()
577 regs->tf_rdi = context->sc_rdi; in linux_rt_sigreturn()
578 regs->tf_rsi = context->sc_rsi; in linux_rt_sigreturn()
579 regs->tf_rdx = context->sc_rdx; in linux_rt_sigreturn()
580 regs->tf_rbp = context->sc_rbp; in linux_rt_sigreturn()
586 regs->tf_r8 = context->sc_r8; in linux_rt_sigreturn()
587 regs->tf_r9 = context->sc_r9; in linux_rt_sigreturn()
[all …]
/f-stack/app/redis-5.0.5/deps/hiredis/
H A DREADME.md66 printf("Can't allocate redis context\n");
79 reply = redisCommand(context, "SET foo bar");
85 reply = redisCommand(context, "SET foo %s", value);
155 creating the context.
206 redisAppendCommand(context,"SET foo bar");
207 redisAppendCommand(context,"GET foo");
208 redisGetReply(context,&reply); // reply for SET
210 redisGetReply(context,&reply); // reply for GET
215 reply = redisCommand(context,"SUBSCRIBE foo");
217 while(redisGetReply(context,&reply) == REDIS_OK) {
[all …]

12345678910