Home
last modified time | relevance | path

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

12

/linux/net/ipv6/
H A Dseg6_hmac.c55 const struct seg6_hmac_info *hinfo = obj; in seg6_hmac_cmpfn() local
57 return (hinfo->hmackeyid != *(__u32 *)arg->key); in seg6_hmac_cmpfn()
60 static inline void seg6_hinfo_release(struct seg6_hmac_info *hinfo) in seg6_hinfo_release() argument
62 kfree_rcu(hinfo, rcu); in seg6_hinfo_release()
67 struct seg6_hmac_info *hinfo = (struct seg6_hmac_info *)ptr; in seg6_free_hi() local
69 if (hinfo) in seg6_free_hi()
70 seg6_hinfo_release(hinfo); in seg6_free_hi()
100 int seg6_hmac_compute(struct seg6_hmac_info *hinfo, struct ipv6_sr_hdr *hdr, in seg6_hmac_compute() argument
103 __be32 hmackeyid = cpu_to_be32(hinfo->hmackeyid); in seg6_hmac_compute()
149 switch (hinfo->alg_id) { in seg6_hmac_compute()
[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_obj(*hinfo); 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.c271 struct inet_hashinfo *hinfo = death_row->hashinfo; in __inet6_check_established() local
279 struct inet_ehash_bucket *head = inet_ehash_bucket(hinfo, hash); in __inet6_check_established()
298 lock = inet_ehash_lockp(hinfo, hash); in __inet6_check_established()
/linux/net/netfilter/
H A Dxt_hashlimit.c280 struct xt_hashlimit_htable *hinfo; in htable_create() local
296 hinfo = kvmalloc_flex(*hinfo, hash, size); in htable_create()
297 if (hinfo == NULL) in htable_create()
299 *out_hinfo = hinfo; in htable_create()
302 ret = cfg_copy(&hinfo->cfg, (void *)cfg, 3); in htable_create()
304 kvfree(hinfo); in htable_create()
308 hinfo->cfg.size = size; in htable_create()
309 if (hinfo->cfg.max == 0) in htable_create()
310 hinfo->cfg.max = 8 * hinfo->cfg.size; in htable_create()
311 else if (hinfo->cfg.max < hinfo->cfg.size) in htable_create()
[all …]
/linux/sound/hda/codecs/hdmi/
H A Dhdmi.c77 struct hda_pcm_stream *hinfo) in hinfo_to_pcm_index() argument
83 if (get_pcm_rec(spec, pcm_idx)->stream == hinfo) in hinfo_to_pcm_index()
86 codec_warn(codec, "HDMI: hinfo %p not tied to a PCM\n", hinfo); in hinfo_to_pcm_index()
91 struct hda_pcm_stream *hinfo) in hinfo_to_pin_index() argument
100 per_pin->pcm->pcm->stream == hinfo) in hinfo_to_pin_index()
104 codec_dbg(codec, "HDMI: hinfo %p (pcm %d) not registered\n", hinfo, in hinfo_to_pin_index()
105 hinfo_to_pcm_index(codec, hinfo)); in hinfo_to_pin_index()
834 static int hdmi_pcm_open_no_pin(struct hda_pcm_stream *hinfo, in hdmi_pcm_open_no_pin() argument
844 pcm_idx = hinfo_to_pcm_index(codec, hinfo); in hdmi_pcm_open_no_pin()
854 hinfo->nid = per_cvt->cvt_nid; in hdmi_pcm_open_no_pin()
[all …]
H A Deld.c190 struct hda_pcm_stream *hinfo) in snd_hdmi_eld_update_pcm_info() argument
226 hinfo->rates &= rates; in snd_hdmi_eld_update_pcm_info()
227 hinfo->formats &= formats; in snd_hdmi_eld_update_pcm_info()
228 hinfo->maxbps = min(hinfo->maxbps, maxbps); in snd_hdmi_eld_update_pcm_info()
229 hinfo->channels_max = min(hinfo->channels_max, channels_max); in snd_hdmi_eld_update_pcm_info()
H A Dtegrahdmi.c133 static int tegra_hdmi_pcm_prepare(struct hda_pcm_stream *hinfo, in tegra_hdmi_pcm_prepare() argument
141 err = snd_hda_hdmi_generic_pcm_prepare(hinfo, codec, stream_tag, in tegra_hdmi_pcm_prepare()
147 tegra_hdmi_set_format(codec, hinfo->nid, format); in tegra_hdmi_pcm_prepare()
152 static int tegra_hdmi_pcm_cleanup(struct hda_pcm_stream *hinfo, in tegra_hdmi_pcm_cleanup() argument
157 tegra_hdmi_set_format(codec, hinfo->nid, 0); in tegra_hdmi_pcm_cleanup()
159 return snd_hda_hdmi_generic_pcm_cleanup(hinfo, codec, substream); in tegra_hdmi_pcm_cleanup()
H A Dsimplehdmi.c120 int snd_hda_hdmi_simple_pcm_open(struct hda_pcm_stream *hinfo, in snd_hda_hdmi_simple_pcm_open() argument
139 static int simple_playback_pcm_close(struct hda_pcm_stream *hinfo, in simple_playback_pcm_close() argument
148 static int simple_playback_pcm_prepare(struct hda_pcm_stream *hinfo, in simple_playback_pcm_prepare() argument
H A Dhdmi_local.h261 int snd_hda_hdmi_generic_pcm_prepare(struct hda_pcm_stream *hinfo,
266 int snd_hda_hdmi_generic_pcm_cleanup(struct hda_pcm_stream *hinfo,
298 int snd_hda_hdmi_simple_pcm_open(struct hda_pcm_stream *hinfo,
H A Dnvhdmi-mcp.c95 static int nvhdmi_8ch_7x_pcm_close(struct hda_pcm_stream *hinfo, in nvhdmi_8ch_7x_pcm_close() argument
121 static int nvhdmi_8ch_7x_pcm_prepare(struct hda_pcm_stream *hinfo, in nvhdmi_8ch_7x_pcm_prepare() argument
/linux/sound/hda/common/
H A Dcontroller.c71 struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream); in azx_adjust_codec_delay() local
74 if (!hinfo->ops.get_delay) in azx_adjust_codec_delay()
77 codec_frames = hinfo->ops.get_delay(hinfo, apcm->codec, substream); in azx_adjust_codec_delay()
94 struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream); in azx_pcm_close() local
101 if (hinfo->ops.close) in azx_pcm_close()
102 hinfo->ops.close(hinfo, apcm->codec, substream); in azx_pcm_close()
139 struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream); in azx_pcm_hw_free() local
146 snd_hda_codec_cleanup(apcm->codec, hinfo, substream); in azx_pcm_hw_free()
157 struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream); in azx_pcm_prepare() local
162 snd_hda_spdif_out_of_nid(apcm->codec, hinfo->nid); in azx_pcm_prepare()
[all …]
H A Dcodec.c3029 struct hda_pcm_stream *hinfo = &pcm->stream[str]; in add_std_chmaps() local
3033 if (!pcm->pcm || pcm->own_chmap || !hinfo->substreams) in add_std_chmaps()
3035 elem = hinfo->chmap ? hinfo->chmap : snd_pcm_std_chmaps; in add_std_chmaps()
3037 hinfo->channels_max, in add_std_chmaps()
3095 static int hda_pcm_default_open_close(struct hda_pcm_stream *hinfo, in hda_pcm_default_open_close() argument
3102 static int hda_pcm_default_prepare(struct hda_pcm_stream *hinfo, in hda_pcm_default_prepare() argument
3108 snd_hda_codec_setup_stream(codec, hinfo->nid, stream_tag, 0, format); in hda_pcm_default_prepare()
3112 static int hda_pcm_default_cleanup(struct hda_pcm_stream *hinfo, in hda_pcm_default_cleanup() argument
3116 snd_hda_codec_cleanup_stream(codec, hinfo->nid); in hda_pcm_default_cleanup()
3167 struct hda_pcm_stream *hinfo, in snd_hda_codec_prepare() argument
[all …]
/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.c3723 gather_hbainfo(adapter_t *adapter, mraid_hba_info_t *hinfo) in gather_hbainfo() argument
3725 hinfo->pci_vendor_id = adapter->pdev->vendor; in gather_hbainfo()
3726 hinfo->pci_device_id = adapter->pdev->device; in gather_hbainfo()
3727 hinfo->subsys_vendor_id = adapter->pdev->subsystem_vendor; in gather_hbainfo()
3728 hinfo->subsys_device_id = adapter->pdev->subsystem_device; in gather_hbainfo()
3730 hinfo->pci_bus = adapter->pdev->bus->number; in gather_hbainfo()
3731 hinfo->pci_dev_fn = adapter->pdev->devfn; in gather_hbainfo()
3732 hinfo->pci_slot = PCI_SLOT(adapter->pdev->devfn); in gather_hbainfo()
3733 hinfo->irq = adapter->host->irq; in gather_hbainfo()
3734 hinfo->baseport = ADAP2RAIDDEV(adapter)->baseport; in gather_hbainfo()
[all …]
/linux/net/ipv4/
H A Dinet_hashtables.c581 struct inet_hashinfo *hinfo = death_row->hashinfo; in __inet_check_established() local
590 struct inet_ehash_bucket *head = inet_ehash_bucket(hinfo, hash); in __inet_check_established()
608 lock = inet_ehash_lockp(hinfo, hash); in __inet_check_established()
901 struct inet_hashinfo *hinfo = tcp_get_hashinfo(sk); in inet_bhash2_addr_any_hashbucket() local
911 return &hinfo->bhash2[hash & (hinfo->bhash_size - 1)]; in inet_bhash2_addr_any_hashbucket()
929 struct inet_hashinfo *hinfo = tcp_get_hashinfo(sk); in __inet_bhash2_update_saddr() local
951 new_tb2 = kmem_cache_alloc(hinfo->bind2_bucket_cachep, GFP_ATOMIC); in __inet_bhash2_update_saddr()
966 bhash = inet_bhashfn(net, port, hinfo->bhash_size); in __inet_bhash2_update_saddr()
967 head = &hinfo->bhash[bhash]; in __inet_bhash2_update_saddr()
968 head2 = inet_bhashfn_portaddr(hinfo, sk, net, port); in __inet_bhash2_update_saddr()
[all …]
H A Dtcp_ipv4.c2554 struct inet_hashinfo *hinfo = seq_file_net(seq)->ipv4.tcp_death_row.hashinfo; local
2558 for (; st->bucket <= hinfo->lhash2_mask; st->bucket++) {
2563 ilb2 = &hinfo->lhash2[st->bucket];
2588 struct inet_hashinfo *hinfo; local
2600 hinfo = seq_file_net(seq)->ipv4.tcp_death_row.hashinfo;
2601 ilb2 = &hinfo->lhash2[st->bucket];
2623 static inline bool empty_bucket(struct inet_hashinfo *hinfo, argument
2626 return hlist_nulls_empty(&hinfo->ehash[st->bucket].chain);
2635 struct inet_hashinfo *hinfo = seq_file_net(seq)->ipv4.tcp_death_row.hashinfo; local
2639 for (; st->bucket <= hinfo->ehash_mask; ++st->bucket) {
[all …]
H A Dinet_connection_sock.c320 struct inet_hashinfo *hinfo = tcp_get_hashinfo(sk); in inet_csk_find_open_port() local
362 head = &hinfo->bhash[inet_bhashfn(net, port, in inet_csk_find_open_port()
363 hinfo->bhash_size)]; in inet_csk_find_open_port()
370 head2 = inet_bhashfn_portaddr(hinfo, sk, net, port); in inet_csk_find_open_port()
506 struct inet_hashinfo *hinfo = tcp_get_hashinfo(sk); in inet_csk_get_port() local
527 head = &hinfo->bhash[inet_bhashfn(net, port, in inet_csk_get_port()
528 hinfo->bhash_size)]; in inet_csk_get_port()
536 tb = inet_bind_bucket_create(hinfo->bind_bucket_cachep, net, in inet_csk_get_port()
556 head2 = inet_bhashfn_portaddr(hinfo, sk, net, port); in inet_csk_get_port()
563 tb2 = inet_bind2_bucket_create(hinfo->bind2_bucket_cachep, in inet_csk_get_port()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dsock_iter_batch.c34 struct inet_hashinfo *hinfo; in iter_tcp_soreuse() local
65 hinfo = net->ipv4.tcp_death_row.hashinfo; in iter_tcp_soreuse()
66 bucket[idx] = hash & hinfo->lhash2_mask; in iter_tcp_soreuse()
/linux/fs/ocfs2/
H A Ddir.c252 struct ocfs2_dx_hinfo *hinfo) in ocfs2_dx_dir_name_hash() argument
289 hinfo->major_hash = buf[0]; in ocfs2_dx_dir_name_hash()
290 hinfo->minor_hash = buf[1]; in ocfs2_dx_dir_name_hash()
872 struct ocfs2_dx_hinfo *hinfo) in ocfs2_dx_dir_hash_idx() argument
874 return __ocfs2_dx_dir_hash_idx(osb, hinfo->minor_hash); in ocfs2_dx_dir_hash_idx()
879 struct ocfs2_dx_hinfo *hinfo, in ocfs2_dx_dir_lookup() argument
887 u32 name_hash = hinfo->major_hash; in ocfs2_dx_dir_lookup()
912 blkno += ocfs2_dx_dir_hash_idx(OCFS2_SB(inode->i_sb), hinfo); in ocfs2_dx_dir_lookup()
936 struct ocfs2_dx_hinfo *hinfo = &res->dl_hinfo; in ocfs2_dx_dir_search() local
949 ret = ocfs2_dx_dir_lookup(dir, dr_el, hinfo, NULL, &phys); in ocfs2_dx_dir_search()
[all …]
/linux/drivers/hwmon/
H A Dintel-m10-bmc-hwmon.c27 const struct hwmon_channel_info * const *hinfo; member
154 .hinfo = n3000bmc_hinfo,
228 .hinfo = d5005bmc_hinfo,
340 .hinfo = n5010bmc_hinfo,
565 .hinfo = n6000bmc_hinfo,
745 hw->chip.info = hw->bdata->hinfo; in m10bmc_hwmon_probe()
/linux/sound/hda/codecs/
H A Dsi3054.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 Dgeneric.c5294 static void call_pcm_playback_hook(struct hda_pcm_stream *hinfo, in call_pcm_playback_hook() argument
5301 spec->pcm_playback_hook(hinfo, codec, substream, action); in call_pcm_playback_hook()
5304 static void call_pcm_capture_hook(struct hda_pcm_stream *hinfo, in call_pcm_capture_hook() argument
5311 spec->pcm_capture_hook(hinfo, codec, substream, action); in call_pcm_capture_hook()
5317 static int playback_pcm_open(struct hda_pcm_stream *hinfo, in playback_pcm_open() argument
5327 hinfo); in playback_pcm_open()
5332 call_pcm_playback_hook(hinfo, codec, substream, in playback_pcm_open()
5337 static int playback_pcm_prepare(struct hda_pcm_stream *hinfo, in playback_pcm_prepare() argument
5349 call_pcm_playback_hook(hinfo, codec, substream, in playback_pcm_prepare()
5354 static int playback_pcm_cleanup(struct hda_pcm_stream *hinfo, in playback_pcm_cleanup() argument
[all …]
H A Dgeneric.h283 void (*pcm_playback_hook)(struct hda_pcm_stream *hinfo,
287 void (*pcm_capture_hook)(struct hda_pcm_stream *hinfo,
/linux/fs/ext4/
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()

12