Home
last modified time | relevance | path

Searched refs:hinfo (Results 1 – 25 of 36) sorted by relevance

12

/linux/net/netfilter/
H A Dxt_hashlimit.c281 struct xt_hashlimit_htable *hinfo; in htable_create() local
298 hinfo = vmalloc(struct_size(hinfo, hash, size)); in htable_create()
299 if (hinfo == NULL) in htable_create()
301 *out_hinfo = hinfo; in htable_create()
304 ret = cfg_copy(&hinfo->cfg, (void *)cfg, 3); in htable_create()
306 vfree(hinfo); in htable_create()
310 hinfo->cfg.size = size; in htable_create()
311 if (hinfo->cfg.max == 0) in htable_create()
312 hinfo->cfg.max = 8 * hinfo->cfg.size; in htable_create()
313 else if (hinfo->cfg.max < hinfo->cfg.size) in htable_create()
[all …]
/linux/net/ipv6/
H A Dseg6_hmac.c47 const struct seg6_hmac_info *hinfo = obj; in seg6_hmac_cmpfn() local
49 return (hinfo->hmackeyid != *(__u32 *)arg->key); in seg6_hmac_cmpfn()
52 static inline void seg6_hinfo_release(struct seg6_hmac_info *hinfo) in seg6_hinfo_release() argument
54 kfree_rcu(hinfo, rcu); in seg6_hinfo_release()
59 struct seg6_hmac_info *hinfo = (struct seg6_hmac_info *)ptr; in seg6_free_hi() local
61 if (hinfo) in seg6_free_hi()
62 seg6_hinfo_release(hinfo); in seg6_free_hi()
118 static int __do_hmac(struct seg6_hmac_info *hinfo, const char *text, u8 psize, in __do_hmac() argument
126 algo = __hmac_get_algo(hinfo->alg_id); in __do_hmac()
139 ret = crypto_shash_setkey(tfm, hinfo in __do_hmac()
160 seg6_hmac_compute(struct seg6_hmac_info * hinfo,struct ipv6_sr_hdr * hdr,struct in6_addr * saddr,u8 * output) seg6_hmac_compute() argument
240 struct seg6_hmac_info *hinfo; seg6_hmac_validate_skb() local
285 struct seg6_hmac_info *hinfo; seg6_hmac_info_lookup() local
293 seg6_hmac_info_add(struct net * net,u32 key,struct seg6_hmac_info * hinfo) seg6_hmac_info_add() argument
308 struct seg6_hmac_info *hinfo; seg6_hmac_info_del() local
330 struct seg6_hmac_info *hinfo; seg6_push_hmac() local
[all...]
H A Dseg6.c154 struct seg6_hmac_info *hinfo; in seg6_genl_sethmac() local
179 hinfo = seg6_hmac_info_lookup(net, hmackeyid); in seg6_genl_sethmac()
197 if (hinfo) { in seg6_genl_sethmac()
205 hinfo = kzalloc(sizeof(*hinfo), GFP_KERNEL); in seg6_genl_sethmac()
206 if (!hinfo) { in seg6_genl_sethmac()
211 memcpy(hinfo->secret, secret, slen); in seg6_genl_sethmac()
212 hinfo->slen = slen; in seg6_genl_sethmac()
213 hinfo->alg_id = algid; in seg6_genl_sethmac()
214 hinfo->hmackeyid = hmackeyid; in seg6_genl_sethmac()
216 err = seg6_hmac_info_add(net, hmackeyid, hinfo); in seg6_genl_sethmac()
[all …]
H A Dinet6_hashtables.c268 struct inet_hashinfo *hinfo = death_row->hashinfo; in __inet6_check_established() local
278 struct inet_ehash_bucket *head = inet_ehash_bucket(hinfo, hash); in __inet6_check_established()
279 spinlock_t *lock = inet_ehash_lockp(hinfo, hash); in __inet6_check_established()
/linux/fs/ext4/
H A Dhash.c201 struct dx_hash_info *hinfo) in __ext4fs_dirhash() argument
218 if (hinfo->seed) { in __ext4fs_dirhash()
220 if (hinfo->seed[i]) { in __ext4fs_dirhash()
221 memcpy(buf, hinfo->seed, sizeof(buf)); in __ext4fs_dirhash()
227 switch (hinfo->hash_version) { in __ext4fs_dirhash()
279 hinfo->hash = 0; in __ext4fs_dirhash()
280 hinfo->minor_hash = 0; in __ext4fs_dirhash()
283 hinfo->hash_version); in __ext4fs_dirhash()
289 hinfo->hash = hash; in __ext4fs_dirhash()
290 hinfo->minor_hash = minor_hash; in __ext4fs_dirhash()
[all …]
H A Dcrypto.c17 dst->hinfo.hash = src->hash; in ext4_fname_from_fscrypt_name()
18 dst->hinfo.minor_hash = src->minor_hash; in ext4_fname_from_fscrypt_name()
/linux/net/ipv4/
H A Dtcp_diag.c184 struct inet_hashinfo *hinfo; in tcp_diag_dump() local
186 hinfo = sock_net(cb->skb->sk)->ipv4.tcp_death_row.hashinfo; in tcp_diag_dump()
188 inet_diag_dump_icsk(hinfo, skb, cb, r); in tcp_diag_dump()
194 struct inet_hashinfo *hinfo; in tcp_diag_dump_one() local
196 hinfo = sock_net(cb->skb->sk)->ipv4.tcp_death_row.hashinfo; in tcp_diag_dump_one()
198 return inet_diag_dump_one_icsk(hinfo, cb, req); in tcp_diag_dump_one()
206 struct inet_hashinfo *hinfo; in tcp_diag_destroy() local
210 hinfo = net->ipv4.tcp_death_row.hashinfo; in tcp_diag_destroy()
211 sk = inet_diag_find_one_icsk(net, hinfo, req); in tcp_diag_destroy()
H A Dinet_hashtables.c542 struct inet_hashinfo *hinfo = death_row->hashinfo; in __inet_check_established() local
553 struct inet_ehash_bucket *head = inet_ehash_bucket(hinfo, hash); in __inet_check_established()
554 spinlock_t *lock = inet_ehash_lockp(hinfo, hash); in __inet_check_established()
864 struct inet_hashinfo *hinfo = tcp_or_dccp_get_hashinfo(sk); in inet_bhash2_addr_any_hashbucket() local
874 return &hinfo->bhash2[hash & (hinfo->bhash_size - 1)]; in inet_bhash2_addr_any_hashbucket()
892 struct inet_hashinfo *hinfo = tcp_or_dccp_get_hashinfo(sk); in __inet_bhash2_update_saddr() local
914 new_tb2 = kmem_cache_alloc(hinfo->bind2_bucket_cachep, GFP_ATOMIC); in __inet_bhash2_update_saddr()
929 bhash = inet_bhashfn(net, port, hinfo->bhash_size); in __inet_bhash2_update_saddr()
930 head = &hinfo->bhash[bhash]; in __inet_bhash2_update_saddr()
931 head2 = inet_bhashfn_portaddr(hinfo, sk, net, port); in __inet_bhash2_update_saddr()
[all …]
H A Dtcp_ipv4.c2599 struct inet_hashinfo *hinfo = seq_file_net(seq)->ipv4.tcp_death_row.hashinfo; local
2603 for (; st->bucket <= hinfo->lhash2_mask; st->bucket++) {
2608 ilb2 = &hinfo->lhash2[st->bucket];
2633 struct inet_hashinfo *hinfo; local
2645 hinfo = seq_file_net(seq)->ipv4.tcp_death_row.hashinfo;
2646 ilb2 = &hinfo->lhash2[st->bucket];
2668 static inline bool empty_bucket(struct inet_hashinfo *hinfo, argument
2671 return hlist_nulls_empty(&hinfo->ehash[st->bucket].chain);
2680 struct inet_hashinfo *hinfo = seq_file_net(seq)->ipv4.tcp_death_row.hashinfo; local
2684 for (; st->bucket <= hinfo->ehash_mask; ++st->bucket) {
[all …]
H A Dinet_connection_sock.c335 struct inet_hashinfo *hinfo = tcp_or_dccp_get_hashinfo(sk); in inet_csk_find_open_port() local
377 head = &hinfo->bhash[inet_bhashfn(net, port, in inet_csk_find_open_port()
378 hinfo->bhash_size)]; in inet_csk_find_open_port()
385 head2 = inet_bhashfn_portaddr(hinfo, sk, net, port); in inet_csk_find_open_port()
517 struct inet_hashinfo *hinfo = tcp_or_dccp_get_hashinfo(sk); in inet_csk_get_port() local
541 head = &hinfo->bhash[inet_bhashfn(net, port, in inet_csk_get_port()
542 hinfo->bhash_size)]; in inet_csk_get_port()
550 tb = inet_bind_bucket_create(hinfo->bind_bucket_cachep, net, in inet_csk_get_port()
570 head2 = inet_bhashfn_portaddr(hinfo, sk, net, port); in inet_csk_get_port()
577 tb2 = inet_bind2_bucket_create(hinfo in inet_csk_get_port()
[all...]
/linux/sound/pci/hda/
H A Dhda_controller.c68 struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream); in azx_adjust_codec_delay() local
71 if (!hinfo->ops.get_delay) in azx_adjust_codec_delay()
74 codec_frames = hinfo->ops.get_delay(hinfo, apcm->codec, substream); in azx_adjust_codec_delay()
91 struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream); in azx_pcm_close() local
98 if (hinfo->ops.close) in azx_pcm_close()
99 hinfo->ops.close(hinfo, apcm->codec, substream); in azx_pcm_close()
141 struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream); in azx_pcm_hw_free() local
148 snd_hda_codec_cleanup(apcm->codec, hinfo, substream); in azx_pcm_hw_free()
160 struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream); in azx_pcm_prepare() local
165 snd_hda_spdif_out_of_nid(apcm->codec, hinfo->nid); in azx_pcm_prepare()
[all …]
H A Dpatch_hdmi.c277 struct hda_pcm_stream *hinfo) in hinfo_to_pcm_index() argument
283 if (get_pcm_rec(spec, pcm_idx)->stream == hinfo) in hinfo_to_pcm_index()
286 codec_warn(codec, "HDMI: hinfo %p not tied to a PCM\n", hinfo); in hinfo_to_pcm_index()
291 struct hda_pcm_stream *hinfo) in hinfo_to_pin_index() argument
300 per_pin->pcm->pcm->stream == hinfo) in hinfo_to_pin_index()
304 codec_dbg(codec, "HDMI: hinfo %p (pcm %d) not registered\n", hinfo, in hinfo_to_pin_index()
305 hinfo_to_pcm_index(codec, hinfo)); in hinfo_to_pin_index()
1192 static int hdmi_pcm_open_no_pin(struct hda_pcm_stream *hinfo, in hdmi_pcm_open_no_pin() argument
1202 pcm_idx = hinfo_to_pcm_index(codec, hinfo); in hdmi_pcm_open_no_pin()
1212 hinfo->nid = per_cvt->cvt_nid; in hdmi_pcm_open_no_pin()
[all …]
H A Dhda_eld.c560 struct hda_pcm_stream *hinfo) in snd_hdmi_eld_update_pcm_info() argument
596 hinfo->rates &= rates; in snd_hdmi_eld_update_pcm_info()
597 hinfo->formats &= formats; in snd_hdmi_eld_update_pcm_info()
598 hinfo->maxbps = min(hinfo->maxbps, maxbps); in snd_hdmi_eld_update_pcm_info()
599 hinfo->channels_max = min(hinfo->channels_max, channels_max); in snd_hdmi_eld_update_pcm_info()
H A Dpatch_si3054.c135 static int si3054_pcm_prepare(struct hda_pcm_stream *hinfo, in si3054_pcm_prepare() argument
149 snd_hda_codec_setup_stream(codec, hinfo->nid, in si3054_pcm_prepare()
154 static int si3054_pcm_open(struct hda_pcm_stream *hinfo, in si3054_pcm_open() argument
H A Dhda_generic.c5307 static void call_pcm_playback_hook(struct hda_pcm_stream *hinfo, in call_pcm_playback_hook() argument
5314 spec->pcm_playback_hook(hinfo, codec, substream, action); in call_pcm_playback_hook()
5317 static void call_pcm_capture_hook(struct hda_pcm_stream *hinfo, in call_pcm_capture_hook() argument
5324 spec->pcm_capture_hook(hinfo, codec, substream, action); in call_pcm_capture_hook()
5330 static int playback_pcm_open(struct hda_pcm_stream *hinfo, in playback_pcm_open() argument
5340 hinfo); in playback_pcm_open()
5343 call_pcm_playback_hook(hinfo, codec, substream, in playback_pcm_open()
5350 static int playback_pcm_prepare(struct hda_pcm_stream *hinfo, in playback_pcm_prepare() argument
5362 call_pcm_playback_hook(hinfo, codec, substream, in playback_pcm_prepare()
5367 static int playback_pcm_cleanup(struct hda_pcm_stream *hinfo, in playback_pcm_cleanup() argument
[all …]
H A Dhda_codec.c3071 struct hda_pcm_stream *hinfo = &pcm->stream[str]; in add_std_chmaps() local
3075 if (!pcm->pcm || pcm->own_chmap || !hinfo->substreams) in add_std_chmaps()
3077 elem = hinfo->chmap ? hinfo->chmap : snd_pcm_std_chmaps; in add_std_chmaps()
3079 hinfo->channels_max, in add_std_chmaps()
3131 static int hda_pcm_default_open_close(struct hda_pcm_stream *hinfo, in hda_pcm_default_open_close() argument
3138 static int hda_pcm_default_prepare(struct hda_pcm_stream *hinfo, in hda_pcm_default_prepare() argument
3144 snd_hda_codec_setup_stream(codec, hinfo->nid, stream_tag, 0, format); in hda_pcm_default_prepare()
3148 static int hda_pcm_default_cleanup(struct hda_pcm_stream *hinfo, in hda_pcm_default_cleanup() argument
3152 snd_hda_codec_cleanup_stream(codec, hinfo->nid); in hda_pcm_default_cleanup()
3203 struct hda_pcm_stream *hinfo, in snd_hda_codec_prepare() argument
[all …]
H A Dhda_generic.h284 void (*pcm_playback_hook)(struct hda_pcm_stream *hinfo,
288 void (*pcm_capture_hook)(struct hda_pcm_stream *hinfo,
/linux/include/uapi/linux/netfilter/
H A Dxt_hashlimit.h49 struct xt_hashlimit_htable *hinfo; member
104 struct xt_hashlimit_htable *hinfo __attribute__((aligned(8))); member
112 struct xt_hashlimit_htable *hinfo __attribute__((aligned(8))); member
120 struct xt_hashlimit_htable *hinfo __attribute__((aligned(8))); member
/linux/drivers/scsi/megaraid/
H A Dmegaraid_mm.c814 mraid_hba_info_t *hinfo; in kioc_to_mimd() local
828 hinfo = (mraid_hba_info_t *)(unsigned long) in kioc_to_mimd()
831 hinfo_to_cinfo(hinfo, &cinfo); in kioc_to_mimd()
881 hinfo_to_cinfo(mraid_hba_info_t *hinfo, mcontroller_t *cinfo) in hinfo_to_cinfo() argument
883 if (!hinfo || !cinfo) in hinfo_to_cinfo()
886 cinfo->base = hinfo->baseport; in hinfo_to_cinfo()
887 cinfo->irq = hinfo->irq; in hinfo_to_cinfo()
888 cinfo->numldrv = hinfo->num_ldrv; in hinfo_to_cinfo()
889 cinfo->pcibus = hinfo->pci_bus; in hinfo_to_cinfo()
890 cinfo->pcidev = hinfo->pci_slot; in hinfo_to_cinfo()
[all …]
H A Dmegaraid_mbox.c3720 gather_hbainfo(adapter_t *adapter, mraid_hba_info_t *hinfo) in gather_hbainfo() argument
3722 hinfo->pci_vendor_id = adapter->pdev->vendor; in gather_hbainfo()
3723 hinfo->pci_device_id = adapter->pdev->device; in gather_hbainfo()
3724 hinfo->subsys_vendor_id = adapter->pdev->subsystem_vendor; in gather_hbainfo()
3725 hinfo->subsys_device_id = adapter->pdev->subsystem_device; in gather_hbainfo()
3727 hinfo->pci_bus = adapter->pdev->bus->number; in gather_hbainfo()
3728 hinfo->pci_dev_fn = adapter->pdev->devfn; in gather_hbainfo()
3729 hinfo->pci_slot = PCI_SLOT(adapter->pdev->devfn); in gather_hbainfo()
3730 hinfo->irq = adapter->host->irq; in gather_hbainfo()
3731 hinfo->baseport = ADAP2RAIDDEV(adapter)->baseport; in gather_hbainfo()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dsock_iter_batch.c27 struct inet_hashinfo *hinfo; in iter_tcp_soreuse() local
52 hinfo = net->ipv4.tcp_death_row.hashinfo; in iter_tcp_soreuse()
53 bucket[idx] = hash & hinfo->lhash2_mask; in iter_tcp_soreuse()
/linux/net/ipv4/netfilter/
H A Dnf_tproxy_ipv4.c84 struct inet_hashinfo *hinfo = net->ipv4.tcp_death_row.hashinfo; in nf_tproxy_get_sock_v4()
98 sk = inet_lookup_listener(net, hinfo, skb, in nf_tproxy_get_sock_v4()
112 sk = inet_lookup_established(net, hinfo, saddr, sport, in nf_tproxy_get_sock_v4()
82 struct inet_hashinfo *hinfo = net->ipv4.tcp_death_row.hashinfo; nf_tproxy_get_sock_v4() local
/linux/net/ipv6/netfilter/
H A Dnf_tproxy_ipv6.c83 struct inet_hashinfo *hinfo = net->ipv4.tcp_death_row.hashinfo; in nf_tproxy_get_sock_v6() local
97 sk = inet6_lookup_listener(net, hinfo, skb, in nf_tproxy_get_sock_v6()
112 sk = __inet6_lookup_established(net, hinfo, saddr, sport, daddr, in nf_tproxy_get_sock_v6()
/linux/include/net/
H A Dseg6_hmac.h42 extern int seg6_hmac_compute(struct seg6_hmac_info *hinfo,
47 struct seg6_hmac_info *hinfo);
/linux/net/mptcp/
H A Dmptcp_diag.c83 struct inet_hashinfo *hinfo; in mptcp_diag_dump_listeners() local
86 hinfo = net->ipv4.tcp_death_row.hashinfo; in mptcp_diag_dump_listeners()
88 for (i = diag_ctx->l_slot; i <= hinfo->lhash2_mask; i++) { in mptcp_diag_dump_listeners()
94 ilb = &hinfo->lhash2[i]; in mptcp_diag_dump_listeners()

12