Searched refs:sctx (Results 1 – 14 of 14) sorted by relevance
| /drivers/md/ |
| A D | dm-switch.c | 66 if (!sctx) in alloc_switch_ctx() 69 sctx->ti = ti; in alloc_switch_ctx() 74 return sctx; in alloc_switch_ctx() 83 if (!(sctx->region_size & (sctx->region_size - 1))) in alloc_region_table() 84 sctx->region_size_bits = __ffs(sctx->region_size); in alloc_region_table() 212 &sctx->path_list[sctx->nr_paths].dmdev); in parse_path() 220 dm_put_device(ti, sctx->path_list[sctx->nr_paths].dmdev); in parse_path() 224 sctx->path_list[sctx->nr_paths].start = start; in parse_path() 242 kfree(sctx); in switch_dtr() 288 if (!sctx) { in switch_ctr() [all …]
|
| /drivers/crypto/nx/ |
| A D | nx-sha512.c | 49 sctx->state[0] = __cpu_to_be64(SHA512_H0); in nx_sha512_init() 50 sctx->state[1] = __cpu_to_be64(SHA512_H1); in nx_sha512_init() 51 sctx->state[2] = __cpu_to_be64(SHA512_H2); in nx_sha512_init() 52 sctx->state[3] = __cpu_to_be64(SHA512_H3); in nx_sha512_init() 57 sctx->count[0] = 0; in nx_sha512_init() 58 sctx->count[1] = 0; in nx_sha512_init() 132 sctx->count[0] += to_process; in nx_sha512_update() 133 if (sctx->count[0] < to_process) in nx_sha512_update() 134 sctx->count[1]++; in nx_sha512_update() 171 count0 = sctx->count[0] + nbytes; in nx_sha512_finup() [all …]
|
| A D | nx-sha256.c | 49 sctx->state[0] = __cpu_to_be32(SHA256_H0); in nx_sha256_init() 50 sctx->state[1] = __cpu_to_be32(SHA256_H1); in nx_sha256_init() 51 sctx->state[2] = __cpu_to_be32(SHA256_H2); in nx_sha256_init() 52 sctx->state[3] = __cpu_to_be32(SHA256_H3); in nx_sha256_init() 53 sctx->state[4] = __cpu_to_be32(SHA256_H4); in nx_sha256_init() 54 sctx->state[5] = __cpu_to_be32(SHA256_H5); in nx_sha256_init() 57 sctx->count = 0; in nx_sha256_init() 131 sctx->count += to_process; in nx_sha256_update() 167 sctx->count += nbytes; in nx_sha256_finup() 219 put_unaligned(sctx->count, p.u64++); in nx_sha256_export() [all …]
|
| A D | nx-aes-xcbc.c | 157 struct xcbc_state *sctx = shash_desc_ctx(desc); in nx_xcbc_init() local 159 memset(sctx, 0, sizeof *sctx); in nx_xcbc_init() 169 struct xcbc_state *sctx = shash_desc_ctx(desc); in nx_xcbc_update() local 181 memcpy(csbcpb->cpb.aes_xcbc.out_cv_mac, sctx->state, AES_BLOCK_SIZE); in nx_xcbc_update() 194 out_sg = nx_build_sg_list(nx_ctx->out_sg, (u8 *)sctx->state, in nx_xcbc_update() 237 memcpy(sctx->state, csbcpb->cpb.aes_xcbc.out_cv_mac, AES_BLOCK_SIZE); in nx_xcbc_update() 248 struct xcbc_state *sctx = shash_desc_ctx(desc); in nx_xcbc_finup() local 259 memcpy(csbcpb->cpb.aes_xcbc.cv, sctx->state, AES_BLOCK_SIZE); in nx_xcbc_finup()
|
| /drivers/char/tpm/ |
| A D | tpm2-sessions.c | 398 sha256_init(sctx); in tpm2_hmac_init() 424 sha256_final(sctx, out); in tpm2_hmac_final() 426 sha256_init(sctx); in tpm2_hmac_final() 429 sha256_final(sctx, out); in tpm2_hmac_final() 443 struct sha256_ctx sctx; in tpm2_KDFa() local 470 struct sha256_ctx sctx; in tpm2_KDFe() local 478 sha256_init(&sctx); in tpm2_KDFe() 595 struct sha256_ctx sctx; in tpm_buf_fill_hmac_session() local 683 sha256_init(&sctx); in tpm_buf_fill_hmac_session() 753 struct sha256_ctx sctx; in tpm_buf_check_hmac_response() local [all …]
|
| /drivers/misc/ |
| A D | fastrpc.c | 299 struct fastrpc_session_ctx *sctx; member 447 if (fl->sctx && fl->sctx->sid) in fastrpc_buf_alloc() 957 if (ctx->fl->sctx->sid) in fastrpc_get_args() 1149 if (!fl->sctx) in fastrpc_internal_invoke() 1551 fastrpc_session_free(cctx, fl->sctx); in fastrpc_device_release() 1589 if (!fl->sctx) { in fastrpc_device_open() 1804 struct device *dev = fl->sctx->dev; in fastrpc_req_munmap_impl() 1835 struct device *dev = fl->sctx->dev; in fastrpc_req_munmap() 1866 struct device *dev = fl->sctx->dev; in fastrpc_req_mmap() 1966 struct device *dev = fl->sctx->dev; in fastrpc_req_mem_unmap_impl() [all …]
|
| /drivers/staging/rtl8723bs/core/ |
| A D | rtw_xmit.c | 1412 if (pxmitbuf->sctx) in __rtw_alloc_cmd_xmitbuf() 1477 if (pxmitbuf->sctx) in rtw_alloc_xmitbuf_ext() 1538 if (pxmitbuf->sctx) in rtw_alloc_xmitbuf() 1555 if (pxmitbuf->sctx) in rtw_free_xmitbuf() 2507 sctx->submit_time = jiffies; in rtw_sctx_init() 2518 expire = sctx->timeout_ms ? msecs_to_jiffies(sctx->timeout_ms) : MAX_SCHEDULE_TIMEOUT; in rtw_sctx_wait() 2523 status = sctx->status; in rtw_sctx_wait() 2533 if (*sctx) { in rtw_sctx_done_err() 2534 (*sctx)->status = status; in rtw_sctx_done_err() 2535 complete(&((*sctx)->done)); in rtw_sctx_done_err() [all …]
|
| A D | rtw_cmd.c | 467 if (pcmd->sctx) { in rtw_cmd_thread() 473 rtw_sctx_done(&pcmd->sctx); in rtw_cmd_thread() 475 rtw_sctx_done_err(&pcmd->sctx, RTW_SCTX_DONE_CMD_ERROR); in rtw_cmd_thread() 630 struct submit_ctx sctx; in rtw_startbss_cmd() local 652 pcmd->sctx = &sctx; in rtw_startbss_cmd() 653 rtw_sctx_init(&sctx, 2000); in rtw_startbss_cmd() 659 rtw_sctx_wait(&sctx); in rtw_startbss_cmd() 661 if (sctx.status == RTW_SCTX_SUBMITTED) in rtw_startbss_cmd() 662 pcmd->sctx = NULL; in rtw_startbss_cmd()
|
| A D | rtw_mlme_ext.c | 2027 struct submit_ctx sctx; in dump_mgntframe_and_wait() local 2036 rtw_sctx_init(&sctx, timeout_ms); in dump_mgntframe_and_wait() 2037 pxmitbuf->sctx = &sctx; in dump_mgntframe_and_wait() 2042 ret = rtw_sctx_wait(&sctx); in dump_mgntframe_and_wait() 2045 pxmitbuf->sctx = NULL; in dump_mgntframe_and_wait()
|
| /drivers/staging/rtl8723bs/include/ |
| A D | rtw_xmit.h | 226 void rtw_sctx_init(struct submit_ctx *sctx, int timeout_ms); 227 int rtw_sctx_wait(struct submit_ctx *sctx); 228 void rtw_sctx_done_err(struct submit_ctx **sctx, int status); 229 void rtw_sctx_done(struct submit_ctx **sctx); 248 struct submit_ctx *sctx; member
|
| A D | rtw_cmd.h | 30 struct submit_ctx *sctx; member
|
| /drivers/crypto/ |
| A D | padlock-sha.c | 34 struct sha1_state *sctx = padlock_shash_desc_ctx(desc); in padlock_sha1_init() local 36 *sctx = (struct sha1_state){ in padlock_sha1_init() 45 struct crypto_sha256_state *sctx = padlock_shash_desc_ctx(desc); in padlock_sha256_init() local 47 sha256_block_init(sctx); in padlock_sha256_init()
|
| /drivers/staging/rtl8723bs/hal/ |
| A D | rtl8723bs_xmit.c | 451 rtw_sctx_done_err(&pxmitbuf->sctx, RTW_SCTX_DONE_WRITE_PORT_ERR); in rtl8723bs_mgnt_xmit()
|
| A D | sdio_ops.c | 455 &xmitbuf->sctx, in sdio_write_port()
|
Completed in 506 milliseconds