| /drivers/crypto/marvell/cesa/ |
| A D | cipher.c | 483 struct mv_cesa_op_ctx *tmpl) in mv_cesa_des_op() argument 499 mv_cesa_set_op_cfg(&tmpl, in mv_cesa_ecb_des_encrypt() 510 mv_cesa_set_op_cfg(&tmpl, in mv_cesa_ecb_des_decrypt() 606 mv_cesa_set_op_cfg(&tmpl, in mv_cesa_ecb_des3_ede_encrypt() 618 mv_cesa_set_op_cfg(&tmpl, in mv_cesa_ecb_des3_ede_decrypt() 659 mv_cesa_set_op_cfg(&tmpl, in mv_cesa_cbc_des3_ede_encrypt() 671 mv_cesa_set_op_cfg(&tmpl, in mv_cesa_cbc_des3_ede_decrypt() 702 struct mv_cesa_op_ctx *tmpl) in mv_cesa_aes_op() argument 724 mv_cesa_update_op_cfg(tmpl, cfg, in mv_cesa_aes_op() 735 mv_cesa_set_op_cfg(&tmpl, in mv_cesa_ecb_aes_encrypt() [all …]
|
| A D | hash.c | 444 mv_cesa_update_op_cfg(tmpl, in mv_cesa_ahash_init() 449 mv_cesa_set_mac_op_total_len(tmpl, 0); in mv_cesa_ahash_init() 450 mv_cesa_set_mac_op_frag_len(tmpl, 0); in mv_cesa_ahash_init() 451 creq->op_tmpl = *tmpl; in mv_cesa_ahash_init() 510 mv_cesa_update_op_cfg(tmpl, in mv_cesa_dma_add_frag() 893 struct mv_cesa_op_ctx tmpl = { }; in mv_cesa_md5_init() local 963 struct mv_cesa_op_ctx tmpl = { }; in mv_cesa_sha1_init() local 1034 struct mv_cesa_op_ctx tmpl = { }; in mv_cesa_sha256_init() local 1247 struct mv_cesa_op_ctx tmpl = { }; in mv_cesa_ahmac_md5_init() local 1318 struct mv_cesa_op_ctx tmpl = { }; in mv_cesa_ahmac_sha1_init() local [all …]
|
| /drivers/crypto/qce/ |
| A D | sha.c | 142 rctx->flags = tmpl->alg_flags; in qce_ahash_init() 283 if (tmpl->hash_zero) in qce_ahash_final() 320 if (tmpl->hash_zero) in qce_ahash_digest() 460 tmpl = kzalloc(sizeof(*tmpl), GFP_KERNEL); in qce_ahash_register_one() 461 if (!tmpl) in qce_ahash_register_one() 464 tmpl->std_iv = def->std_iv; in qce_ahash_register_one() 466 alg = &tmpl->alg.ahash; in qce_ahash_register_one() 499 tmpl->qce = qce; in qce_ahash_register_one() 504 kfree(tmpl); in qce_ahash_register_one() 519 list_del(&tmpl->entry); in qce_ahash_unregister() [all …]
|
| A D | skcipher.c | 266 rctx->flags = tmpl->alg_flags; in qce_skcipher_crypt() 307 return tmpl->qce->async_req_enqueue(tmpl->qce, &req->base); in qce_skcipher_crypt() 443 tmpl = kzalloc(sizeof(*tmpl), GFP_KERNEL); in qce_skcipher_register_one() 444 if (!tmpl) in qce_skcipher_register_one() 447 alg = &tmpl->alg.skcipher; in qce_skcipher_register_one() 480 INIT_LIST_HEAD(&tmpl->entry); in qce_skcipher_register_one() 482 tmpl->alg_flags = def->flags; in qce_skcipher_register_one() 483 tmpl->qce = qce; in qce_skcipher_register_one() 488 kfree(tmpl); in qce_skcipher_register_one() 503 list_del(&tmpl->entry); in qce_skcipher_unregister() [all …]
|
| A D | aead.c | 30 struct qce_device *qce = tmpl->qce; in qce_aead_done() 552 return tmpl->qce->async_req_enqueue(tmpl->qce, &req->base); in qce_aead_crypt() 765 tmpl = kzalloc(sizeof(*tmpl), GFP_KERNEL); in qce_aead_register_one() 766 if (!tmpl) in qce_aead_register_one() 769 alg = &tmpl->alg.aead; in qce_aead_register_one() 798 INIT_LIST_HEAD(&tmpl->entry); in qce_aead_register_one() 800 tmpl->alg_flags = def->flags; in qce_aead_register_one() 801 tmpl->qce = qce; in qce_aead_register_one() 806 kfree(tmpl); in qce_aead_register_one() 821 list_del(&tmpl->entry); in qce_aead_unregister() [all …]
|
| A D | common.c | 152 struct qce_alg_template *tmpl = to_ahash_tmpl(async_req->tfm); in qce_setup_regs_ahash() local 153 struct qce_device *qce = tmpl->qce; in qce_setup_regs_ahash() 319 struct qce_alg_template *tmpl = to_cipher_tmpl(crypto_skcipher_reqtfm(req)); in qce_setup_regs_skcipher() local 320 struct qce_device *qce = tmpl->qce; in qce_setup_regs_skcipher() 425 struct qce_alg_template *tmpl = to_aead_tmpl(crypto_aead_reqtfm(req)); in qce_setup_regs_aead() local 426 struct qce_device *qce = tmpl->qce; in qce_setup_regs_aead()
|
| /drivers/scsi/fnic/ |
| A D | cq_exch_desc.h | 16 u8 tmpl; member 50 u16 tmpl; member 83 u16 *tmpl, in cq_fcp_rq_desc_dec() argument 104 *tmpl = desc_ptr->tmpl & CQ_FCP_RQ_DESC_TMPL_MASK; in cq_fcp_rq_desc_dec() 129 u16 tmpl; member 157 u16 *tmpl, in cq_sgl_desc_dec() argument 166 *tmpl = desc_ptr->tmpl & CQ_SGL_TMPL_MASK; in cq_sgl_desc_dec()
|
| /drivers/s390/net/ |
| A D | fsm.c | 19 int nr_events, const fsm_node *tmpl, int tmpl_len, gfp_t order) in init_fsm() argument 58 if ((tmpl[i].cond_state >= nr_states) || in init_fsm() 59 (tmpl[i].cond_event >= nr_events) ) { in init_fsm() 62 name, i, (long)tmpl[i].cond_state, (long)f->nr_states, in init_fsm() 63 (long)tmpl[i].cond_event, (long)f->nr_events); in init_fsm() 67 m[nr_states * tmpl[i].cond_event + tmpl[i].cond_state] = in init_fsm() 68 tmpl[i].function; in init_fsm()
|
| A D | fsm.h | 112 int nr_states, int nr_events, const fsm_node *tmpl,
|
| /drivers/media/dvb-frontends/ |
| A D | mn88443x.c | 273 u32 cpmon, tmpu, tmpl, flg; in mn88443x_s_read_status() local 307 regmap_read(r_s, CNRDXL_S, &tmpl); in mn88443x_s_read_status() 308 x = (tmpu << 8) | tmpl; in mn88443x_s_read_status() 310 regmap_read(r_s, CNRDYL_S, &tmpl); in mn88443x_s_read_status() 311 y = (tmpu << 8) | tmpl; in mn88443x_s_read_status() 350 bit_err = (tmpu << 8) | tmpl; in mn88443x_s_read_status() 495 regmap_read(r_t, AGCRDL_T, &tmpl); in mn88443x_t_read_status() 496 agc = (tmpu << 8) | tmpl; in mn88443x_t_read_status() 510 regmap_read(r_t, CNRDL_T, &tmpl); in mn88443x_t_read_status() 512 if (tmpu || tmpl) { in mn88443x_t_read_status() [all …]
|
| /drivers/crypto/inside-secure/eip93/ |
| A D | eip93-cipher.c | 53 struct eip93_alg_template *tmpl = container_of(tfm->__crt_alg, in eip93_skcipher_cra_init() local 61 ctx->eip93 = tmpl->eip93; in eip93_skcipher_cra_init() 62 ctx->type = tmpl->type; in eip93_skcipher_cra_init() 85 struct eip93_alg_template *tmpl = container_of(tfm->__crt_alg, in eip93_skcipher_setkey() local 90 u32 flags = tmpl->flags; in eip93_skcipher_setkey() 178 struct eip93_alg_template *tmpl = container_of(req->base.tfm->__crt_alg, in eip93_skcipher_encrypt() local 181 rctx->flags = tmpl->flags; in eip93_skcipher_encrypt() 191 struct eip93_alg_template *tmpl = container_of(req->base.tfm->__crt_alg, in eip93_skcipher_decrypt() local 196 rctx->flags = tmpl->flags; in eip93_skcipher_decrypt()
|
| A D | eip93-aead.c | 62 struct eip93_alg_template *tmpl = container_of(tfm->__crt_alg, in eip93_aead_cra_init() local 68 ctx->eip93 = tmpl->eip93; in eip93_aead_cra_init() 69 ctx->flags = tmpl->flags; in eip93_aead_cra_init() 70 ctx->type = tmpl->type; in eip93_aead_cra_init()
|
| A D | eip93-hash.c | 575 struct eip93_alg_template *tmpl = container_of(tfm->__crt_alg, in eip93_hash_cra_init() local 581 ctx->eip93 = tmpl->eip93; in eip93_hash_cra_init() 582 ctx->flags = tmpl->flags; in eip93_hash_cra_init()
|
| /drivers/net/wireless/ti/wlcore/ |
| A D | init.c | 147 struct wl12xx_disconn_template *tmpl; in wl1271_ap_init_deauth_template() local 151 tmpl = kzalloc(sizeof(*tmpl), GFP_KERNEL); in wl1271_ap_init_deauth_template() 152 if (!tmpl) { in wl1271_ap_init_deauth_template() 157 tmpl->header.frame_ctl = cpu_to_le16(IEEE80211_FTYPE_MGMT | in wl1271_ap_init_deauth_template() 163 tmpl, sizeof(*tmpl), 0, rate); in wl1271_ap_init_deauth_template() 166 kfree(tmpl); in wl1271_ap_init_deauth_template()
|
| A D | cmd.c | 1228 struct wl12xx_arp_rsp_template *tmpl; in wl1271_cmd_build_arp_rsp() local 1232 skb = dev_alloc_skb(sizeof(*hdr) + sizeof(__le16) + sizeof(*tmpl) + in wl1271_cmd_build_arp_rsp() 1241 tmpl = skb_put_zero(skb, sizeof(*tmpl)); in wl1271_cmd_build_arp_rsp() 1244 memcpy(tmpl->llc_hdr, rfc1042_header, sizeof(rfc1042_header)); in wl1271_cmd_build_arp_rsp() 1245 tmpl->llc_type = cpu_to_be16(ETH_P_ARP); in wl1271_cmd_build_arp_rsp() 1248 arp_hdr = &tmpl->arp_hdr; in wl1271_cmd_build_arp_rsp() 1256 memcpy(tmpl->sender_hw, vif->addr, ETH_ALEN); in wl1271_cmd_build_arp_rsp() 1257 tmpl->sender_ip = wlvif->ip_addr; in wl1271_cmd_build_arp_rsp()
|
| /drivers/scsi/ |
| A D | scsi_sas_internal.h | 41 #define to_sas_internal(tmpl) container_of(tmpl, struct sas_internal, t) argument
|
| A D | raid_class.c | 38 #define to_raid_internal(tmpl) container_of(tmpl, struct raid_internal, r) argument
|
| A D | scsi_transport_srp.c | 42 #define to_srp_internal(tmpl) container_of(tmpl, struct srp_internal, t) argument
|
| /drivers/irqchip/ |
| A D | irq-mvebu-icu.c | 262 const struct msi_domain_template *tmpl; in mvebu_icu_subset_probe() local 287 tmpl = sei ? &mvebu_icu_sei_msi_template : &mvebu_icu_nsr_msi_template; in mvebu_icu_subset_probe() 289 if (!msi_create_device_irq_domain(dev, MSI_DEFAULT_DOMAIN, tmpl, in mvebu_icu_subset_probe()
|
| /drivers/net/ethernet/mellanox/mlxsw/ |
| A D | spectrum_policer.c | 309 const struct mlxsw_sp_policer_family *tmpl) in mlxsw_sp_policer_family_register() argument 314 family = kmemdup(tmpl, sizeof(*family), GFP_KERNEL); in mlxsw_sp_policer_family_register() 331 mlxsw_sp->policer_core->family_arr[tmpl->type] = family; in mlxsw_sp_policer_family_register()
|
| /drivers/crypto/ccree/ |
| A D | cc_cipher.c | 1375 static struct cc_crypto_alg *cc_create_alg(const struct cc_alg_template *tmpl, in cc_create_alg() argument 1387 memcpy(alg, &tmpl->template_skcipher, sizeof(*alg)); in cc_create_alg() 1390 tmpl->name) >= CRYPTO_MAX_ALG_NAME) in cc_create_alg() 1393 tmpl->driver_name) >= CRYPTO_MAX_ALG_NAME) in cc_create_alg() 1398 alg->base.cra_blocksize = tmpl->blocksize; in cc_create_alg() 1406 t_alg->cipher_mode = tmpl->cipher_mode; in cc_create_alg() 1407 t_alg->flow_mode = tmpl->flow_mode; in cc_create_alg()
|
| A D | cc_aead.c | 2560 static struct cc_crypto_alg *cc_create_aead_alg(struct cc_alg_template *tmpl, in cc_create_aead_alg() argument 2570 alg = &tmpl->template_aead; in cc_create_aead_alg() 2573 tmpl->name) >= CRYPTO_MAX_ALG_NAME) in cc_create_aead_alg() 2576 tmpl->driver_name) >= CRYPTO_MAX_ALG_NAME) in cc_create_aead_alg() 2584 alg->base.cra_blocksize = tmpl->blocksize; in cc_create_aead_alg() 2590 t_alg->cipher_mode = tmpl->cipher_mode; in cc_create_aead_alg() 2591 t_alg->flow_mode = tmpl->flow_mode; in cc_create_aead_alg() 2592 t_alg->auth_mode = tmpl->auth_mode; in cc_create_aead_alg()
|
| /drivers/pci/msi/ |
| A D | irqdomain.c | 260 static bool pci_create_device_domain(struct pci_dev *pdev, const struct msi_domain_template *tmpl, in pci_create_device_domain() argument 268 return msi_create_device_irq_domain(&pdev->dev, MSI_DEFAULT_DOMAIN, tmpl, in pci_create_device_domain()
|
| /drivers/ata/ |
| A D | libata-transport.c | 65 #define to_ata_internal(tmpl) container_of(tmpl, struct ata_internal, t) argument
|
| /drivers/atm/ |
| A D | idt77252.c | 2142 unsigned long tmpl, modl; in idt77252_init_cbr() local 2163 tmpl = (unsigned long) tcra * ((unsigned long) card->tst_size - 2); in idt77252_init_cbr() 2164 modl = tmpl % (unsigned long)card->utopia_pcr; in idt77252_init_cbr() 2166 tst_entries = (int) (tmpl / card->utopia_pcr); in idt77252_init_cbr() 3266 unsigned long tmpl, modl; in init_card() local 3490 tmpl = (unsigned long) rsvdcr * ((unsigned long) card->tst_size - 2); in init_card() 3491 modl = tmpl % (unsigned long)card->utopia_pcr; in init_card() 3492 tst_entries = (int) (tmpl / (unsigned long)card->utopia_pcr); in init_card()
|