/linux-4.1.27/net/ipv4/ |
H A D | xfrm4_state.c | 43 xfrm4_init_temprop(struct xfrm_state *x, const struct xfrm_tmpl *tmpl, xfrm4_init_temprop() argument 46 x->id = tmpl->id; xfrm4_init_temprop() 49 x->props.saddr = tmpl->saddr; xfrm4_init_temprop() 52 x->props.mode = tmpl->mode; xfrm4_init_temprop() 53 x->props.reqid = tmpl->reqid; xfrm4_init_temprop()
|
/linux-4.1.27/drivers/crypto/qce/ |
H A D | ablkcipher.c | 30 struct qce_alg_template *tmpl = to_cipher_tmpl(async_req->tfm); qce_ablkcipher_done() local 31 struct qce_device *qce = tmpl->qce; qce_ablkcipher_done() 58 qce->async_req_done(tmpl->qce, error); qce_ablkcipher_done() 67 struct qce_alg_template *tmpl = to_cipher_tmpl(async_req->tfm); qce_ablkcipher_async_req_handle() local 68 struct qce_device *qce = tmpl->qce; qce_ablkcipher_async_req_handle() 142 ret = qce_start(async_req, tmpl->crypto_alg_type, req->nbytes, 0); qce_ablkcipher_async_req_handle() 209 struct qce_alg_template *tmpl = to_cipher_tmpl(tfm); qce_ablkcipher_crypt() local 212 rctx->flags = tmpl->alg_flags; qce_ablkcipher_crypt() 224 return tmpl->qce->async_req_enqueue(tmpl->qce, &req->base); qce_ablkcipher_crypt() 349 struct qce_alg_template *tmpl; qce_ablkcipher_register_one() local 353 tmpl = kzalloc(sizeof(*tmpl), GFP_KERNEL); qce_ablkcipher_register_one() 354 if (!tmpl) qce_ablkcipher_register_one() 357 alg = &tmpl->alg.crypto; qce_ablkcipher_register_one() 382 INIT_LIST_HEAD(&tmpl->entry); qce_ablkcipher_register_one() 383 tmpl->crypto_alg_type = CRYPTO_ALG_TYPE_ABLKCIPHER; qce_ablkcipher_register_one() 384 tmpl->alg_flags = def->flags; qce_ablkcipher_register_one() 385 tmpl->qce = qce; qce_ablkcipher_register_one() 389 kfree(tmpl); qce_ablkcipher_register_one() 394 list_add_tail(&tmpl->entry, &ablkcipher_algs); qce_ablkcipher_register_one() 401 struct qce_alg_template *tmpl, *n; qce_ablkcipher_unregister() local 403 list_for_each_entry_safe(tmpl, n, &ablkcipher_algs, entry) { qce_ablkcipher_unregister() 404 crypto_unregister_alg(&tmpl->alg.crypto); qce_ablkcipher_unregister() 405 list_del(&tmpl->entry); qce_ablkcipher_unregister() 406 kfree(tmpl); qce_ablkcipher_unregister()
|
H A D | sha.c | 43 struct qce_alg_template *tmpl = to_ahash_tmpl(async_req->tfm); qce_ahash_done() local 44 struct qce_device *qce = tmpl->qce; qce_ahash_done() 74 qce->async_req_done(tmpl->qce, error); qce_ahash_done() 82 struct qce_alg_template *tmpl = to_ahash_tmpl(async_req->tfm); qce_ahash_async_req_handle() local 83 struct qce_device *qce = tmpl->qce; qce_ahash_async_req_handle() 115 ret = qce_start(async_req, tmpl->crypto_alg_type, 0, 0); qce_ahash_async_req_handle() 134 struct qce_alg_template *tmpl = to_ahash_tmpl(req->base.tfm); qce_ahash_init() local 135 const u32 *std_iv = tmpl->std_iv; qce_ahash_init() 140 rctx->flags = tmpl->alg_flags; qce_ahash_init() 237 struct qce_alg_template *tmpl = to_ahash_tmpl(req->base.tfm); qce_ahash_update() local 238 struct qce_device *qce = tmpl->qce; qce_ahash_update() 306 return qce->async_req_enqueue(tmpl->qce, &req->base); qce_ahash_update() 312 struct qce_alg_template *tmpl = to_ahash_tmpl(req->base.tfm); qce_ahash_final() local 313 struct qce_device *qce = tmpl->qce; qce_ahash_final() 329 return qce->async_req_enqueue(tmpl->qce, &req->base); qce_ahash_final() 335 struct qce_alg_template *tmpl = to_ahash_tmpl(req->base.tfm); qce_ahash_digest() local 336 struct qce_device *qce = tmpl->qce; qce_ahash_digest() 348 return qce->async_req_enqueue(tmpl->qce, &req->base); qce_ahash_digest() 502 struct qce_alg_template *tmpl; qce_ahash_register_one() local 507 tmpl = kzalloc(sizeof(*tmpl), GFP_KERNEL); qce_ahash_register_one() 508 if (!tmpl) qce_ahash_register_one() 511 tmpl->std_iv = def->std_iv; qce_ahash_register_one() 513 alg = &tmpl->alg.ahash; qce_ahash_register_one() 539 INIT_LIST_HEAD(&tmpl->entry); qce_ahash_register_one() 540 tmpl->crypto_alg_type = CRYPTO_ALG_TYPE_AHASH; qce_ahash_register_one() 541 tmpl->alg_flags = def->flags; qce_ahash_register_one() 542 tmpl->qce = qce; qce_ahash_register_one() 546 kfree(tmpl); qce_ahash_register_one() 551 list_add_tail(&tmpl->entry, &ahash_algs); qce_ahash_register_one() 558 struct qce_alg_template *tmpl, *n; qce_ahash_unregister() local 560 list_for_each_entry_safe(tmpl, n, &ahash_algs, entry) { qce_ahash_unregister() 561 crypto_unregister_ahash(&tmpl->alg.ahash); qce_ahash_unregister() 562 list_del(&tmpl->entry); qce_ahash_unregister() 563 kfree(tmpl); qce_ahash_unregister()
|
H A D | common.c | 236 struct qce_alg_template *tmpl = to_ahash_tmpl(async_req->tfm); qce_setup_regs_ahash() local 237 struct qce_device *qce = tmpl->qce; qce_setup_regs_ahash() 321 struct qce_alg_template *tmpl = to_cipher_tmpl(async_req->tfm); qce_setup_regs_ablkcipher() local 322 struct qce_device *qce = tmpl->qce; qce_setup_regs_ablkcipher()
|
/linux-4.1.27/drivers/scsi/ |
H A D | scsi_sas_internal.h | 40 #define to_sas_internal(tmpl) container_of(tmpl, struct sas_internal, t)
|
H A D | raid_class.c | 39 #define to_raid_internal(tmpl) container_of(tmpl, struct raid_internal, r)
|
H A D | scsi_transport_srp.c | 55 #define to_srp_internal(tmpl) container_of(tmpl, struct srp_internal, t)
|
H A D | scsi_transport_spi.c | 76 #define to_spi_internal(tmpl) container_of(tmpl, struct spi_internal, t)
|
H A D | scsi_transport_fc.c | 352 #define to_fc_internal(tmpl) container_of(tmpl, struct fc_internal, t)
|
H A D | scsi_transport_iscsi.c | 94 #define to_iscsi_internal(tmpl) \ 95 container_of(tmpl, struct iscsi_internal, t)
|
H A D | qla1280.c | 3393 * See Documentation/DocBook/deviceiobook.tmpl for more information. qla1280_isp_cmd()
|
/linux-4.1.27/drivers/scsi/fnic/ |
H A D | cq_exch_desc.h | 28 u8 tmpl; member in struct:cq_exch_wq_desc 62 u16 tmpl; member in struct:cq_fcp_rq_desc 95 u16 *tmpl, cq_fcp_rq_desc_dec() 116 *tmpl = desc_ptr->tmpl & CQ_FCP_RQ_DESC_TMPL_MASK; cq_fcp_rq_desc_dec() 141 u16 tmpl; member in struct:cq_sgl_desc 169 u16 *tmpl, cq_sgl_desc_dec() 178 *tmpl = desc_ptr->tmpl & CQ_SGL_TMPL_MASK; cq_sgl_desc_dec() 86 cq_fcp_rq_desc_dec(struct cq_fcp_rq_desc *desc_ptr, u8 *type, u8 *color, u16 *q_number, u16 *completed_index, u8 *eop, u8 *sop, u8 *fck, u16 *exchange_id, u16 *tmpl, u32 *bytes_written, u8 *sof, u8 *eof, u8 *ingress_port, u8 *packet_err, u8 *fcoe_err, u8 *fcs_ok, u8 *vlan_stripped, u16 *vlan) cq_fcp_rq_desc_dec() argument 162 cq_sgl_desc_dec(struct cq_sgl_desc *desc_ptr, u8 *type, u8 *color, u16 *q_number, u16 *exchange_id, u32 *active_burst_offset, u32 *tot_data_bytes, u16 *tmpl, u8 *sgl_err) cq_sgl_desc_dec() argument
|
H A D | fnic_fcs.c | 808 u16 exchange_id, tmpl; fnic_rq_cmpl_frame_recv() local 825 &tmpl, &fcp_bytes_written, &sof, &eof, fnic_rq_cmpl_frame_recv()
|
/linux-4.1.27/drivers/s390/net/ |
H A D | fsm.c | 17 int nr_events, const fsm_node *tmpl, int tmpl_len, gfp_t order) init_fsm() 56 if ((tmpl[i].cond_state >= nr_states) || init_fsm() 57 (tmpl[i].cond_event >= nr_events) ) { init_fsm() 60 name, i, (long)tmpl[i].cond_state, (long)f->nr_states, init_fsm() 61 (long)tmpl[i].cond_event, (long)f->nr_events); init_fsm() 65 m[nr_states * tmpl[i].cond_event + tmpl[i].cond_state] = init_fsm() 66 tmpl[i].function; init_fsm() 16 init_fsm(char *name, const char **state_names, const char **event_names, int nr_states, int nr_events, const fsm_node *tmpl, int tmpl_len, gfp_t order) init_fsm() argument
|
H A D | fsm.h | 104 * @param tmpl An array of fsm_nodes, describing this FSM. 111 int nr_states, int nr_events, const fsm_node *tmpl,
|
/linux-4.1.27/crypto/ |
H A D | algapi.c | 75 struct crypto_template *tmpl = inst->tmpl; crypto_destroy_instance() local 77 tmpl->free(inst); crypto_destroy_instance() 78 crypto_tmpl_put(tmpl); crypto_destroy_instance() 107 struct crypto_template *tmpl = inst->tmpl; crypto_remove_instance() local 116 if (!tmpl || !crypto_tmpl_get(tmpl)) crypto_remove_instance() 438 int crypto_register_template(struct crypto_template *tmpl) crypto_register_template() argument 445 crypto_check_module_sig(tmpl->module); crypto_register_template() 448 if (q == tmpl) crypto_register_template() 452 list_add(&tmpl->list, &crypto_template_list); crypto_register_template() 453 crypto_notify(CRYPTO_MSG_TMPL_REGISTER, tmpl); crypto_register_template() 461 void crypto_unregister_template(struct crypto_template *tmpl) crypto_unregister_template() argument 470 BUG_ON(list_empty(&tmpl->list)); crypto_unregister_template() 471 list_del_init(&tmpl->list); crypto_unregister_template() 473 list = &tmpl->instances; hlist_for_each_entry() 480 crypto_notify(CRYPTO_MSG_TMPL_UNREGISTER, tmpl); 486 tmpl->free(inst); hlist_for_each_entry_safe() 494 struct crypto_template *q, *tmpl = NULL; __crypto_lookup_template() local 503 tmpl = q; __crypto_lookup_template() 508 return tmpl; __crypto_lookup_template() 518 int crypto_register_instance(struct crypto_template *tmpl, crypto_register_instance() argument 528 inst->alg.cra_module = tmpl->module; crypto_register_instance() 540 hlist_add_head(&inst->list, &tmpl->instances); crypto_register_instance() 541 inst->tmpl = tmpl; crypto_register_instance()
|
H A D | algboss.c | 65 struct crypto_template *tmpl; cryptomgr_probe() local 69 tmpl = crypto_lookup_template(param->template); cryptomgr_probe() 70 if (!tmpl) cryptomgr_probe() 74 if (tmpl->create) { cryptomgr_probe() 75 err = tmpl->create(tmpl, param->tb); cryptomgr_probe() 79 inst = tmpl->alloc(param->tb); cryptomgr_probe() 82 else if ((err = crypto_register_instance(tmpl, inst))) cryptomgr_probe() 83 tmpl->free(inst); cryptomgr_probe() 86 crypto_tmpl_put(tmpl); cryptomgr_probe()
|
H A D | xor.c | 64 do_xor_speed(struct xor_block_template *tmpl, void *b1, void *b2) do_xor_speed() argument 70 tmpl->next = template_list; do_xor_speed() 71 template_list = tmpl; do_xor_speed() 88 tmpl->do_2(BENCH_SIZE, b1, b2); do_xor_speed() 100 tmpl->speed = speed; do_xor_speed() 102 printk(KERN_INFO " %-10s: %5d.%03d MB/sec\n", tmpl->name, do_xor_speed()
|
H A D | internal.h | 118 static inline int crypto_tmpl_get(struct crypto_template *tmpl) crypto_tmpl_get() argument 120 return try_module_get(tmpl->module); crypto_tmpl_get() 123 static inline void crypto_tmpl_put(struct crypto_template *tmpl) crypto_tmpl_put() argument 125 module_put(tmpl->module); crypto_tmpl_put()
|
H A D | aead.c | 272 struct crypto_instance *aead_geniv_alloc(struct crypto_template *tmpl, aead_geniv_alloc() argument 321 if (strcmp(tmpl->name, alg->cra_aead.geniv)) aead_geniv_alloc() 330 "%s(%s)", tmpl->name, alg->cra_name) >= aead_geniv_alloc() 334 "%s(%s)", tmpl->name, alg->cra_driver_name) >= aead_geniv_alloc() 407 struct crypto_template *tmpl; crypto_nivaead_default() local 441 tmpl = crypto_lookup_template(geniv); crypto_nivaead_default() 443 if (!tmpl) crypto_nivaead_default() 446 inst = tmpl->alloc(tb); crypto_nivaead_default() 451 err = crypto_register_instance(tmpl, inst); crypto_nivaead_default() 453 tmpl->free(inst); crypto_nivaead_default() 461 crypto_tmpl_put(tmpl); crypto_nivaead_default()
|
H A D | ablkcipher.c | 542 struct crypto_template *tmpl; crypto_givcipher_default() local 584 tmpl = crypto_lookup_template(geniv); crypto_givcipher_default() 586 if (!tmpl) crypto_givcipher_default() 589 inst = tmpl->alloc(tb); crypto_givcipher_default() 594 err = crypto_register_instance(tmpl, inst); crypto_givcipher_default() 596 tmpl->free(inst); crypto_givcipher_default() 604 crypto_tmpl_put(tmpl); crypto_givcipher_default()
|
H A D | cryptd.c | 331 static int cryptd_create_blkcipher(struct crypto_template *tmpl, cryptd_create_blkcipher() argument 382 err = crypto_register_instance(tmpl, inst); cryptd_create_blkcipher() 593 static int cryptd_create_hash(struct crypto_template *tmpl, struct rtattr **tb, cryptd_create_hash() argument 645 err = ahash_register_instance(tmpl, inst); cryptd_create_hash() 742 static int cryptd_create_aead(struct crypto_template *tmpl, cryptd_create_aead() argument 790 err = crypto_register_instance(tmpl, inst); cryptd_create_aead() 803 static int cryptd_create(struct crypto_template *tmpl, struct rtattr **tb) cryptd_create() argument 813 return cryptd_create_blkcipher(tmpl, tb, &queue); cryptd_create() 815 return cryptd_create_hash(tmpl, tb, &queue); cryptd_create() 817 return cryptd_create_aead(tmpl, tb, &queue); cryptd_create()
|
H A D | mcryptd.c | 490 static int mcryptd_create_hash(struct crypto_template *tmpl, struct rtattr **tb, mcryptd_create_hash() argument 543 err = ahash_register_instance(tmpl, inst); mcryptd_create_hash() 557 static int mcryptd_create(struct crypto_template *tmpl, struct rtattr **tb) mcryptd_create() argument 567 return mcryptd_create_hash(tmpl, tb, &mqueue); mcryptd_create()
|
H A D | cmac.c | 225 static int cmac_create(struct crypto_template *tmpl, struct rtattr **tb) cmac_create() argument 283 err = shash_register_instance(tmpl, inst); cmac_create()
|
H A D | hmac.c | 181 static int hmac_create(struct crypto_template *tmpl, struct rtattr **tb) hmac_create() argument 238 err = shash_register_instance(tmpl, inst); hmac_create()
|
H A D | xcbc.c | 199 static int xcbc_create(struct crypto_template *tmpl, struct rtattr **tb) xcbc_create() argument 256 err = shash_register_instance(tmpl, inst); xcbc_create()
|
H A D | blkcipher.c | 580 struct crypto_instance *skcipher_geniv_alloc(struct crypto_template *tmpl, skcipher_geniv_alloc() argument 667 if (strcmp(tmpl->name, balg.geniv)) skcipher_geniv_alloc() 676 "%s(%s)", tmpl->name, alg->cra_name) >= skcipher_geniv_alloc() 680 "%s(%s)", tmpl->name, alg->cra_driver_name) >= skcipher_geniv_alloc()
|
H A D | ahash.c | 581 int ahash_register_instance(struct crypto_template *tmpl, ahash_register_instance() argument 590 return crypto_register_instance(tmpl, ahash_crypto_instance(inst)); ahash_register_instance()
|
H A D | shash.c | 671 int shash_register_instance(struct crypto_template *tmpl, shash_register_instance() argument 680 return crypto_register_instance(tmpl, shash_crypto_instance(inst)); shash_register_instance()
|
H A D | vmac.c | 643 static int vmac_create(struct crypto_template *tmpl, struct rtattr **tb) vmac_create() argument 683 err = shash_register_instance(tmpl, inst); vmac_create()
|
/linux-4.1.27/net/ipv6/ |
H A D | xfrm6_state.c | 44 xfrm6_init_temprop(struct xfrm_state *x, const struct xfrm_tmpl *tmpl, xfrm6_init_temprop() argument 47 x->id = tmpl->id; xfrm6_init_temprop() 50 memcpy(&x->props.saddr, &tmpl->saddr, sizeof(x->props.saddr)); xfrm6_init_temprop() 53 x->props.mode = tmpl->mode; xfrm6_init_temprop() 54 x->props.reqid = tmpl->reqid; xfrm6_init_temprop()
|
/linux-4.1.27/net/netfilter/ |
H A D | nft_dynset.c | 21 struct nft_set_ext_tmpl tmpl; member in struct:nft_dynset 42 elem = nft_set_elem_init(set, &priv->tmpl, nft_dynset_new() 179 nft_set_ext_prepare(&priv->tmpl); nft_dynset_init() 180 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_KEY, set->klen); nft_dynset_init() 182 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_DATA, set->dlen); nft_dynset_init() 184 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_EXPR, nft_dynset_init() 188 nft_set_ext_add(&priv->tmpl, NFT_SET_EXT_EXPIRATION); nft_dynset_init()
|
H A D | nf_conntrack_core.c | 544 void nf_conntrack_tmpl_insert(struct net *net, struct nf_conn *tmpl) nf_conntrack_tmpl_insert() argument 548 __set_bit(IPS_TEMPLATE_BIT, &tmpl->status); nf_conntrack_tmpl_insert() 549 __set_bit(IPS_CONFIRMED_BIT, &tmpl->status); nf_conntrack_tmpl_insert() 550 nf_conntrack_get(&tmpl->ct_general); nf_conntrack_tmpl_insert() 552 /* add this conntrack to the (per cpu) tmpl list */ nf_conntrack_tmpl_insert() 554 tmpl->cpu = smp_processor_id(); nf_conntrack_tmpl_insert() 555 pcpu = per_cpu_ptr(nf_ct_net(tmpl)->ct.pcpu_lists, tmpl->cpu); nf_conntrack_tmpl_insert() 559 hlist_nulls_add_head_rcu(&tmpl->tuplehash[IP_CT_DIR_ORIGINAL].hnnode, nf_conntrack_tmpl_insert() 560 &pcpu->tmpl); nf_conntrack_tmpl_insert() 892 init_conntrack(struct net *net, struct nf_conn *tmpl, init_conntrack() argument 904 u16 zone = tmpl ? nf_ct_zone(tmpl) : NF_CT_DEFAULT_ZONE; init_conntrack() 918 if (tmpl && nfct_synproxy(tmpl)) { init_conntrack() 923 timeout_ext = tmpl ? nf_ct_timeout_find(tmpl) : NULL; init_conntrack() 942 ecache = tmpl ? nf_ct_ecache_find(tmpl) : NULL; init_conntrack() 976 __nf_ct_try_assign_helper(ct, tmpl, GFP_ATOMIC); init_conntrack() 997 resolve_normal_ct(struct net *net, struct nf_conn *tmpl, resolve_normal_ct() argument 1010 u16 zone = tmpl ? nf_ct_zone(tmpl) : NF_CT_DEFAULT_ZONE; resolve_normal_ct() 1024 h = init_conntrack(net, tmpl, &tuple, l3proto, l4proto, resolve_normal_ct() 1062 struct nf_conn *ct, *tmpl = NULL; nf_conntrack_in() local 1074 tmpl = (struct nf_conn *)skb->nfct; nf_conntrack_in() 1075 if (!nf_ct_is_template(tmpl)) { nf_conntrack_in() 1100 ret = l4proto->error(net, tmpl, skb, dataoff, &ctinfo, nf_conntrack_in() 1113 ct = resolve_normal_ct(net, tmpl, skb, dataoff, pf, protonum, nf_conntrack_in() 1151 if (tmpl) { nf_conntrack_in() 1156 skb->nfct = (struct nf_conntrack *)tmpl; nf_conntrack_in() 1158 nf_ct_put(tmpl); nf_conntrack_in() 1755 INIT_HLIST_NULLS_HEAD(&pcpu->tmpl, TEMPLATE_NULLS_VAL); for_each_possible_cpu()
|
H A D | nf_conntrack_helper.c | 186 int __nf_ct_try_assign_helper(struct nf_conn *ct, struct nf_conn *tmpl, __nf_ct_try_assign_helper() argument 203 if (tmpl != NULL) { __nf_ct_try_assign_helper() 204 help = nfct_help(tmpl); __nf_ct_try_assign_helper()
|
H A D | nf_synproxy_core.c | 368 snet->tmpl = ct; synproxy_net_init() 392 nf_ct_put(snet->tmpl); synproxy_net_exit()
|
H A D | nf_conntrack_proto_udp.c | 110 static int udp_error(struct net *net, struct nf_conn *tmpl, struct sk_buff *skb, udp_error() argument
|
H A D | nf_conntrack_proto_udplite.c | 118 static int udplite_error(struct net *net, struct nf_conn *tmpl, udplite_error() argument
|
H A D | nf_tables_api.c | 3257 const struct nft_set_ext_tmpl *tmpl, nft_set_elem_init() 3264 elem = kzalloc(set->ops->elemsize + tmpl->len, gfp); nft_set_elem_init() 3269 nft_set_ext_init(ext, tmpl); nft_set_elem_init() 3302 struct nft_set_ext_tmpl tmpl; nft_add_set_elem() local 3323 nft_set_ext_prepare(&tmpl); nft_add_set_elem() 3334 nft_set_ext_add(&tmpl, NFT_SET_EXT_FLAGS); nft_add_set_elem() 3366 nft_set_ext_add_length(&tmpl, NFT_SET_EXT_KEY, d1.len); nft_add_set_elem() 3368 nft_set_ext_add(&tmpl, NFT_SET_EXT_EXPIRATION); nft_add_set_elem() 3370 nft_set_ext_add(&tmpl, NFT_SET_EXT_TIMEOUT); nft_add_set_elem() 3401 nft_set_ext_add_length(&tmpl, NFT_SET_EXT_DATA, d2.len); nft_add_set_elem() 3412 nft_set_ext_add_length(&tmpl, NFT_SET_EXT_USERDATA, nft_add_set_elem() 3417 elem.priv = nft_set_elem_init(set, &tmpl, elem.key.val.data, data.data, nft_add_set_elem() 3256 nft_set_elem_init(const struct nft_set *set, const struct nft_set_ext_tmpl *tmpl, const u32 *key, const u32 *data, u64 timeout, gfp_t gfp) nft_set_elem_init() argument
|
H A D | nf_conntrack_proto_dccp.c | 570 static int dccp_error(struct net *net, struct nf_conn *tmpl, dccp_error() argument
|
H A D | nf_conntrack_proto_tcp.c | 752 static int tcp_error(struct net *net, struct nf_conn *tmpl, tcp_error() argument
|
/linux-4.1.27/drivers/net/wireless/ti/wlcore/ |
H A D | init.c | 161 struct wl12xx_disconn_template *tmpl; wl1271_ap_init_deauth_template() local 165 tmpl = kzalloc(sizeof(*tmpl), GFP_KERNEL); wl1271_ap_init_deauth_template() 166 if (!tmpl) { wl1271_ap_init_deauth_template() 171 tmpl->header.frame_ctl = cpu_to_le16(IEEE80211_FTYPE_MGMT | wl1271_ap_init_deauth_template() 177 tmpl, sizeof(*tmpl), 0, rate); wl1271_ap_init_deauth_template() 180 kfree(tmpl); wl1271_ap_init_deauth_template()
|
H A D | cmd.c | 1220 struct wl12xx_arp_rsp_template *tmpl; wl1271_cmd_build_arp_rsp() local 1224 skb = dev_alloc_skb(sizeof(*hdr) + sizeof(__le16) + sizeof(*tmpl) + wl1271_cmd_build_arp_rsp() 1233 tmpl = (struct wl12xx_arp_rsp_template *)skb_put(skb, sizeof(*tmpl)); wl1271_cmd_build_arp_rsp() 1234 memset(tmpl, 0, sizeof(*tmpl)); wl1271_cmd_build_arp_rsp() 1237 memcpy(tmpl->llc_hdr, rfc1042_header, sizeof(rfc1042_header)); wl1271_cmd_build_arp_rsp() 1238 tmpl->llc_type = cpu_to_be16(ETH_P_ARP); wl1271_cmd_build_arp_rsp() 1241 arp_hdr = &tmpl->arp_hdr; wl1271_cmd_build_arp_rsp() 1249 memcpy(tmpl->sender_hw, vif->addr, ETH_ALEN); wl1271_cmd_build_arp_rsp() 1250 tmpl->sender_ip = wlvif->ip_addr; wl1271_cmd_build_arp_rsp()
|
/linux-4.1.27/include/net/netfilter/ |
H A D | nf_conntrack_synproxy.h | 39 struct nf_conn *tmpl; member in struct:synproxy_net
|
H A D | nf_tables.h | 425 static inline void nft_set_ext_prepare(struct nft_set_ext_tmpl *tmpl) nft_set_ext_prepare() argument 427 memset(tmpl, 0, sizeof(*tmpl)); nft_set_ext_prepare() 428 tmpl->len = sizeof(struct nft_set_ext); nft_set_ext_prepare() 431 static inline void nft_set_ext_add_length(struct nft_set_ext_tmpl *tmpl, u8 id, nft_set_ext_add_length() argument 434 tmpl->len = ALIGN(tmpl->len, nft_set_ext_types[id].align); nft_set_ext_add_length() 435 BUG_ON(tmpl->len > U8_MAX); nft_set_ext_add_length() 436 tmpl->offset[id] = tmpl->len; nft_set_ext_add_length() 437 tmpl->len += nft_set_ext_types[id].len + len; nft_set_ext_add_length() 440 static inline void nft_set_ext_add(struct nft_set_ext_tmpl *tmpl, u8 id) nft_set_ext_add() argument 442 nft_set_ext_add_length(tmpl, id, 0); nft_set_ext_add() 446 const struct nft_set_ext_tmpl *tmpl) nft_set_ext_init() 448 memcpy(ext->offset, tmpl->offset, sizeof(ext->offset)); nft_set_ext_init() 514 const struct nft_set_ext_tmpl *tmpl, 445 nft_set_ext_init(struct nft_set_ext *ext, const struct nft_set_ext_tmpl *tmpl) nft_set_ext_init() argument
|
H A D | nf_conntrack_helper.h | 69 int __nf_ct_try_assign_helper(struct nf_conn *ct, struct nf_conn *tmpl,
|
H A D | nf_conntrack_l4proto.h | 54 int (*error)(struct net *net, struct nf_conn *tmpl, struct sk_buff *skb,
|
H A D | nf_conntrack.h | 294 void nf_conntrack_tmpl_insert(struct net *net, struct nf_conn *tmpl);
|
/linux-4.1.27/include/net/netns/ |
H A D | conntrack.h | 71 struct hlist_nulls_head tmpl; member in struct:ct_pcpu
|
/linux-4.1.27/Documentation/DocBook/ |
H A D | Makefile | 25 # file.tmpl --> file.xml +--> file.ps (psdocs) [by db2ps or xmlto] 75 # 1) To generate a dependency list for a .tmpl file 76 # 2) To preprocess a .tmpl file and call kernel-doc with 92 %.xml: %.tmpl $(KERNELDOC) $(DOCPROC) FORCE
|
/linux-4.1.27/include/crypto/internal/ |
H A D | aead.h | 58 struct crypto_instance *aead_geniv_alloc(struct crypto_template *tmpl,
|
H A D | hash.h | 82 int ahash_register_instance(struct crypto_template *tmpl, 101 int shash_register_instance(struct crypto_template *tmpl,
|
H A D | skcipher.h | 62 struct crypto_instance *skcipher_geniv_alloc(struct crypto_template *tmpl,
|
/linux-4.1.27/Documentation/DocBook/media/ |
H A D | Makefile | 10 MEDIA_TEMP = media-entities.tmpl \ 11 media-indices.tmpl \ 167 -e s/"\\.tmpl"// \ 285 $(MEDIA_OBJ_DIR)/media-entities.tmpl: $(MEDIA_OBJ_DIR)/v4l2.xml 362 $(MEDIA_OBJ_DIR)/media-indices.tmpl: $(MEDIA_OBJ_DIR)/v4l2.xml
|
/linux-4.1.27/net/ipv4/netfilter/ |
H A D | nf_conntrack_proto_icmp.c | 130 icmp_error_message(struct net *net, struct nf_conn *tmpl, struct sk_buff *skb, icmp_error_message() argument 137 u16 zone = tmpl ? nf_ct_zone(tmpl) : NF_CT_DEFAULT_ZONE; icmp_error_message() 180 icmp_error(struct net *net, struct nf_conn *tmpl, icmp_error() argument 226 return icmp_error_message(net, tmpl, skb, ctinfo, hooknum); icmp_error()
|
H A D | ipt_SYNPROXY.c | 151 synproxy_send_tcp(skb, nskb, &snet->tmpl->ct_general, IP_CT_NEW, synproxy_send_server_syn()
|
/linux-4.1.27/net/ipv6/netfilter/ |
H A D | nf_conntrack_proto_icmpv6.c | 144 icmpv6_error_message(struct net *net, struct nf_conn *tmpl, icmpv6_error_message() argument 153 u16 zone = tmpl ? nf_ct_zone(tmpl) : NF_CT_DEFAULT_ZONE; icmpv6_error_message() 196 icmpv6_error(struct net *net, struct nf_conn *tmpl, icmpv6_error() argument 233 return icmpv6_error_message(net, tmpl, skb, dataoff, ctinfo, hooknum); icmpv6_error()
|
H A D | ip6t_SYNPROXY.c | 166 synproxy_send_tcp(skb, nskb, &snet->tmpl->ct_general, IP_CT_NEW, synproxy_send_server_syn()
|
/linux-4.1.27/include/crypto/ |
H A D | algapi.h | 42 struct crypto_template *tmpl; member in struct:crypto_instance 55 int (*create)(struct crypto_template *tmpl, struct rtattr **tb); 134 int crypto_register_template(struct crypto_template *tmpl); 135 void crypto_unregister_template(struct crypto_template *tmpl); 138 int crypto_register_instance(struct crypto_template *tmpl,
|
/linux-4.1.27/scripts/ |
H A D | docproc.c | 7 * some knowledge of the .tmpl syntax, therefore they 19 * Usage: docproc doc file.tmpl 24 * Usage: docproc depend file.tmpl 27 * file.tmpl src.c src2.c 99 fprintf(stderr, "Input is read from file.tmpl. Output is sent to stdout\n"); usage() 562 * file.tmpl */ main()
|
/linux-4.1.27/drivers/crypto/ |
H A D | n2_core.c | 1388 static int __n2_register_one_cipher(const struct n2_cipher_tmpl *tmpl) __n2_register_one_cipher() argument 1399 snprintf(alg->cra_name, CRYPTO_MAX_ALG_NAME, "%s", tmpl->name); __n2_register_one_cipher() 1400 snprintf(alg->cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s-n2", tmpl->drv_name); __n2_register_one_cipher() 1404 alg->cra_blocksize = tmpl->block_size; __n2_register_one_cipher() 1405 p->enc_type = tmpl->enc_type; __n2_register_one_cipher() 1408 alg->cra_u.ablkcipher = tmpl->ablkcipher; __n2_register_one_cipher() 1462 static int __n2_register_one_ahash(const struct n2_hash_tmpl *tmpl) __n2_register_one_ahash() argument 1473 p->hash_zero = tmpl->hash_zero; __n2_register_one_ahash() 1474 p->hash_init = tmpl->hash_init; __n2_register_one_ahash() 1475 p->auth_type = tmpl->auth_type; __n2_register_one_ahash() 1476 p->hmac_type = tmpl->hmac_type; __n2_register_one_ahash() 1477 p->hw_op_hashsz = tmpl->hw_op_hashsz; __n2_register_one_ahash() 1478 p->digest_size = tmpl->digest_size; __n2_register_one_ahash() 1488 halg->digestsize = tmpl->digest_size; __n2_register_one_ahash() 1491 snprintf(base->cra_name, CRYPTO_MAX_ALG_NAME, "%s", tmpl->name); __n2_register_one_ahash() 1492 snprintf(base->cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s-n2", tmpl->name); __n2_register_one_ahash() 1497 base->cra_blocksize = tmpl->block_size; __n2_register_one_ahash()
|
/linux-4.1.27/net/xfrm/ |
H A D | xfrm_state.c | 634 const struct xfrm_tmpl *tmpl, xfrm_init_tempstate() 643 if (family != tmpl->encap_family) { xfrm_init_tempstate() 645 afinfo = xfrm_state_get_afinfo(tmpl->encap_family); xfrm_init_tempstate() 649 afinfo->init_temprop(x, tmpl, daddr, saddr); xfrm_init_tempstate() 765 const struct flowi *fl, struct xfrm_tmpl *tmpl, xfrm_state_find() 777 unsigned short encap_family = tmpl->encap_family; xfrm_state_find() 783 h = xfrm_dst_hash(net, daddr, saddr, tmpl->reqid, encap_family); xfrm_state_find() 786 x->props.reqid == tmpl->reqid && xfrm_state_find() 790 tmpl->mode == x->props.mode && xfrm_state_find() 791 tmpl->id.proto == x->id.proto && xfrm_state_find() 792 (tmpl->id.spi == x->id.spi || !tmpl->id.spi)) xfrm_state_find() 799 h_wildcard = xfrm_dst_hash(net, daddr, &saddr_wildcard, tmpl->reqid, encap_family); xfrm_state_find() 802 x->props.reqid == tmpl->reqid && xfrm_state_find() 806 tmpl->mode == x->props.mode && xfrm_state_find() 807 tmpl->id.proto == x->id.proto && xfrm_state_find() 808 (tmpl->id.spi == x->id.spi || !tmpl->id.spi)) xfrm_state_find() 816 if (tmpl->id.spi && xfrm_state_find() 817 (x0 = __xfrm_state_lookup(net, mark, daddr, tmpl->id.spi, xfrm_state_find() 818 tmpl->id.proto, encap_family)) != NULL) { xfrm_state_find() 841 xfrm_init_tempstate(x, fl, tmpl, daddr, saddr, family); xfrm_state_find() 852 if (km_query(x, tmpl, pol) == 0) { xfrm_state_find() 633 xfrm_init_tempstate(struct xfrm_state *x, const struct flowi *fl, const struct xfrm_tmpl *tmpl, const xfrm_address_t *daddr, const xfrm_address_t *saddr, unsigned short family) xfrm_init_tempstate() argument 764 xfrm_state_find(const xfrm_address_t *daddr, const xfrm_address_t *saddr, const struct flowi *fl, struct xfrm_tmpl *tmpl, struct xfrm_policy *pol, int *err, unsigned short family) xfrm_state_find() argument
|
H A D | xfrm_policy.c | 1409 struct xfrm_tmpl *tmpl = &policy->xfrm_vec[i]; xfrm_tmpl_resolve_one() local 1411 if (tmpl->mode == XFRM_MODE_TUNNEL || xfrm_tmpl_resolve_one() 1412 tmpl->mode == XFRM_MODE_BEET) { xfrm_tmpl_resolve_one() 1413 remote = &tmpl->id.daddr; xfrm_tmpl_resolve_one() 1414 local = &tmpl->saddr; xfrm_tmpl_resolve_one() 1415 if (xfrm_addr_any(local, tmpl->encap_family)) { xfrm_tmpl_resolve_one() 1416 error = xfrm_get_saddr(net, &tmp, remote, tmpl->encap_family); xfrm_tmpl_resolve_one() 1423 x = xfrm_state_find(remote, local, fl, tmpl, policy, &error, family); xfrm_tmpl_resolve_one() 1439 if (!tmpl->optional) xfrm_tmpl_resolve_one() 2370 xfrm_state_ok(const struct xfrm_tmpl *tmpl, const struct xfrm_state *x, xfrm_state_ok() argument 2374 return tmpl->optional && !xfrm_state_addr_cmp(tmpl, x, tmpl->encap_family); xfrm_state_ok() 2375 return x->id.proto == tmpl->id.proto && xfrm_state_ok() 2376 (x->id.spi == tmpl->id.spi || !tmpl->id.spi) && xfrm_state_ok() 2377 (x->props.reqid == tmpl->reqid || !tmpl->reqid) && xfrm_state_ok() 2378 x->props.mode == tmpl->mode && xfrm_state_ok() 2379 (tmpl->allalgs || (tmpl->aalgos & (1<<x->props.aalgo)) || xfrm_state_ok() 2380 !(xfrm_id_proto_match(tmpl->id.proto, IPSEC_PROTO_ANY))) && xfrm_state_ok() 2382 xfrm_state_addr_cmp(tmpl, x, family)); xfrm_state_ok() 2393 xfrm_policy_ok(const struct xfrm_tmpl *tmpl, const struct sec_path *sp, int start, xfrm_policy_ok() argument 2398 if (tmpl->optional) { xfrm_policy_ok() 2399 if (tmpl->mode == XFRM_MODE_TRANSPORT) xfrm_policy_ok() 2404 if (xfrm_state_ok(tmpl, sp->xvec[idx], family)) xfrm_policy_ok() 2566 /* For each tunnel xfrm, find the first matching tmpl. __xfrm_policy_check() 2567 * For each tmpl before that, find corresponding xfrm. __xfrm_policy_check()
|
/linux-4.1.27/arch/ia64/sn/kernel/ |
H A D | iomv.c | 66 * See arch/ia64/include/asm/io.h and Documentation/DocBook/deviceiobook.tmpl
|
/linux-4.1.27/include/net/ |
H A D | xfrm.h | 329 const struct xfrm_tmpl *tmpl, 1034 __xfrm4_state_addr_cmp(const struct xfrm_tmpl *tmpl, const struct xfrm_state *x) __xfrm4_state_addr_cmp() argument 1036 return (tmpl->saddr.a4 && __xfrm4_state_addr_cmp() 1037 tmpl->saddr.a4 != x->props.saddr.a4); __xfrm4_state_addr_cmp() 1041 __xfrm6_state_addr_cmp(const struct xfrm_tmpl *tmpl, const struct xfrm_state *x) __xfrm6_state_addr_cmp() argument 1043 return (!ipv6_addr_any((struct in6_addr*)&tmpl->saddr) && __xfrm6_state_addr_cmp() 1044 !ipv6_addr_equal((struct in6_addr *)&tmpl->saddr, (struct in6_addr*)&x->props.saddr)); __xfrm6_state_addr_cmp() 1048 xfrm_state_addr_cmp(const struct xfrm_tmpl *tmpl, const struct xfrm_state *x, unsigned short family) xfrm_state_addr_cmp() argument 1052 return __xfrm4_state_addr_cmp(tmpl, x); xfrm_state_addr_cmp() 1054 return __xfrm6_state_addr_cmp(tmpl, x); xfrm_state_addr_cmp() 1434 struct xfrm_tmpl *tmpl,
|
/linux-4.1.27/drivers/crypto/nx/ |
H A D | nx-842.c | 1337 uint8_t tmpl; sw842_get_byte() local 1342 memcpy(&tmpl, &tmp, 1); sw842_get_byte() 1343 return tmpl; sw842_get_byte() 1495 uint8_t tmpl; sw842_decompress() local 1515 while ((tmpl = sw842_get_template(&inbuf, &inbit)) != SW842_TMPL_EOF) { sw842_decompress() 1524 switch (tmpl) { sw842_decompress() 1566 if (tmpl > 25) { sw842_decompress() 1584 (op = sw842_tmpl_ops[tmpl][opindex++]) sw842_decompress()
|
/linux-4.1.27/arch/x86/kernel/ |
H A D | paravirt.c | 131 struct paravirt_patch_template tmpl = { get_call_destination() local 142 return *((void **)&tmpl + type); get_call_destination()
|
/linux-4.1.27/include/linux/sunrpc/ |
H A D | cache.h | 218 extern struct cache_detail *cache_create_net(struct cache_detail *tmpl, struct net *net);
|
/linux-4.1.27/drivers/ata/ |
H A D | libata-transport.c | 65 #define to_ata_internal(tmpl) container_of(tmpl, struct ata_internal, t)
|
/linux-4.1.27/drivers/atm/ |
H A D | idt77252.c | 2150 unsigned long tmpl, modl; idt77252_init_cbr() local 2171 tmpl = (unsigned long) tcra * ((unsigned long) card->tst_size - 2); idt77252_init_cbr() 2172 modl = tmpl % (unsigned long)card->utopia_pcr; idt77252_init_cbr() 2174 tst_entries = (int) (tmpl / card->utopia_pcr); idt77252_init_cbr() 3261 unsigned long tmpl, modl; init_card() local 3485 tmpl = (unsigned long) rsvdcr * ((unsigned long) card->tst_size - 2); init_card() 3486 modl = tmpl % (unsigned long)card->utopia_pcr; init_card() 3487 tst_entries = (int) (tmpl / (unsigned long)card->utopia_pcr); init_card()
|
H A D | nicstar.c | 1230 unsigned long tmpl, modl; ns_open() local 1292 tmpl = ns_open() 1295 modl = tmpl % card->max_pcr; ns_open() 1297 n = (int)(tmpl / card->max_pcr); ns_open()
|
/linux-4.1.27/net/core/ |
H A D | fib_rules.c | 128 fib_rules_register(const struct fib_rules_ops *tmpl, struct net *net) fib_rules_register() argument 133 ops = kmemdup(tmpl, sizeof(*ops), GFP_KERNEL); fib_rules_register()
|
/linux-4.1.27/arch/ia64/include/asm/ |
H A D | io.h | 119 * See Documentation/DocBook/deviceiobook.tmpl for more information.
|
/linux-4.1.27/drivers/net/bonding/ |
H A D | bond_3ad.c | 1740 static const struct port_params tmpl = { ad_initialize_port() local 1771 memcpy(&port->partner_admin, &tmpl, sizeof(tmpl)); ad_initialize_port() 1772 memcpy(&port->partner_oper, &tmpl, sizeof(tmpl)); ad_initialize_port()
|
/linux-4.1.27/net/sunrpc/ |
H A D | cache.c | 1665 struct cache_detail *cache_create_net(struct cache_detail *tmpl, struct net *net) cache_create_net() argument 1669 cd = kmemdup(tmpl, sizeof(struct cache_detail), GFP_KERNEL); cache_create_net()
|
/linux-4.1.27/drivers/net/wireless/ath/ath10k/ |
H A D | wmi-tlv.c | 199 ath10k_warn(ar, "received bcn tmpl tx status on vdev %i: %d", ath10k_wmi_tlv_event_bcn_tx_status() 2394 ath10k_dbg(ar, ATH10K_DBG_WMI, "wmi tlv bcn tmpl vdev_id %i\n", ath10k_wmi_tlv_op_gen_bcn_tmpl() 2443 ath10k_dbg(ar, ATH10K_DBG_WMI, "wmi tlv prb tmpl vdev_id %i\n", ath10k_wmi_tlv_op_gen_prb_tmpl()
|
/linux-4.1.27/arch/x86/kvm/ |
H A D | vmx.c | 4483 unsigned long tmpl; vmx_set_constant_host_state() local 4519 rdmsrl(MSR_IA32_SYSENTER_EIP, tmpl); vmx_set_constant_host_state() 4520 vmcs_writel(HOST_IA32_SYSENTER_EIP, tmpl); /* 22.2.3 */ vmx_set_constant_host_state()
|