Home
last modified time | relevance | path

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

12

/Linux-v4.19/net/netfilter/
Dxt_hashlimit.c274 struct xt_hashlimit_htable *hinfo; in htable_create() local
290 hinfo = vmalloc(sizeof(struct xt_hashlimit_htable) + in htable_create()
292 if (hinfo == NULL) in htable_create()
294 *out_hinfo = hinfo; in htable_create()
297 ret = cfg_copy(&hinfo->cfg, (void *)cfg, 3); in htable_create()
302 hinfo->cfg.size = size; in htable_create()
303 if (hinfo->cfg.max == 0) in htable_create()
304 hinfo->cfg.max = 8 * hinfo->cfg.size; in htable_create()
305 else if (hinfo->cfg.max < hinfo->cfg.size) in htable_create()
306 hinfo->cfg.max = hinfo->cfg.size; in htable_create()
[all …]
/Linux-v4.19/net/ipv6/
Dseg6_hmac.c54 const struct seg6_hmac_info *hinfo = obj; in seg6_hmac_cmpfn() local
56 return (hinfo->hmackeyid != *(__u32 *)arg->key); in seg6_hmac_cmpfn()
59 static inline void seg6_hinfo_release(struct seg6_hmac_info *hinfo) in seg6_hinfo_release() argument
61 kfree_rcu(hinfo, rcu); in seg6_hinfo_release()
66 struct seg6_hmac_info *hinfo = (struct seg6_hmac_info *)ptr; in seg6_free_hi() local
68 if (hinfo) in seg6_free_hi()
69 seg6_hinfo_release(hinfo); in seg6_free_hi()
125 static int __do_hmac(struct seg6_hmac_info *hinfo, const char *text, u8 psize, in __do_hmac() argument
133 algo = __hmac_get_algo(hinfo->alg_id); in __do_hmac()
146 ret = crypto_shash_setkey(tfm, hinfo->secret, hinfo->slen); in __do_hmac()
[all …]
Dseg6.c92 struct seg6_hmac_info *hinfo; in seg6_genl_sethmac() local
117 hinfo = seg6_hmac_info_lookup(net, hmackeyid); in seg6_genl_sethmac()
120 if (!hinfo) in seg6_genl_sethmac()
133 if (hinfo) { in seg6_genl_sethmac()
141 hinfo = kzalloc(sizeof(*hinfo), GFP_KERNEL); in seg6_genl_sethmac()
142 if (!hinfo) { in seg6_genl_sethmac()
147 memcpy(hinfo->secret, secret, slen); in seg6_genl_sethmac()
148 hinfo->slen = slen; in seg6_genl_sethmac()
149 hinfo->alg_id = algid; in seg6_genl_sethmac()
150 hinfo->hmackeyid = hmackeyid; in seg6_genl_sethmac()
[all …]
Dinet6_hashtables.c252 struct inet_hashinfo *hinfo = death_row->hashinfo; in __inet6_check_established() local
262 struct inet_ehash_bucket *head = inet_ehash_bucket(hinfo, hash); in __inet6_check_established()
263 spinlock_t *lock = inet_ehash_lockp(hinfo, hash); in __inet6_check_established()
/Linux-v4.19/sound/pci/hda/
Dhda_controller.c77 struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream); in azx_adjust_codec_delay() local
80 if (!hinfo->ops.get_delay) in azx_adjust_codec_delay()
83 codec_frames = hinfo->ops.get_delay(hinfo, apcm->codec, substream); in azx_adjust_codec_delay()
100 struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream); in azx_pcm_close() local
107 if (hinfo->ops.close) in azx_pcm_close()
108 hinfo->ops.close(hinfo, apcm->codec, substream); in azx_pcm_close()
145 struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream); in azx_pcm_hw_free() local
153 snd_hda_codec_cleanup(apcm->codec, hinfo, substream); in azx_pcm_hw_free()
166 struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream); in azx_pcm_prepare() local
171 snd_hda_spdif_out_of_nid(apcm->codec, hinfo->nid); in azx_pcm_prepare()
[all …]
Dpatch_hdmi.c267 struct hda_pcm_stream *hinfo) in hinfo_to_pcm_index() argument
273 if (get_pcm_rec(spec, pcm_idx)->stream == hinfo) in hinfo_to_pcm_index()
276 codec_warn(codec, "HDMI: hinfo %p not registered\n", hinfo); in hinfo_to_pcm_index()
281 struct hda_pcm_stream *hinfo) in hinfo_to_pin_index() argument
290 per_pin->pcm->pcm->stream == hinfo) in hinfo_to_pin_index()
294 codec_dbg(codec, "HDMI: hinfo %p not registered\n", hinfo); in hinfo_to_pin_index()
1144 static int hdmi_pcm_open_no_pin(struct hda_pcm_stream *hinfo, in hdmi_pcm_open_no_pin() argument
1154 pcm_idx = hinfo_to_pcm_index(codec, hinfo); in hdmi_pcm_open_no_pin()
1164 hinfo->nid = per_cvt->cvt_nid; in hdmi_pcm_open_no_pin()
1172 hinfo->channels_min = per_cvt->channels_min; in hdmi_pcm_open_no_pin()
[all …]
Dhda_eld.c569 struct hda_pcm_stream *hinfo) in snd_hdmi_eld_update_pcm_info() argument
605 hinfo->rates &= rates; in snd_hdmi_eld_update_pcm_info()
606 hinfo->formats &= formats; in snd_hdmi_eld_update_pcm_info()
607 hinfo->maxbps = min(hinfo->maxbps, maxbps); in snd_hdmi_eld_update_pcm_info()
608 hinfo->channels_max = min(hinfo->channels_max, channels_max); in snd_hdmi_eld_update_pcm_info()
Dpatch_si3054.c149 static int si3054_pcm_prepare(struct hda_pcm_stream *hinfo, in si3054_pcm_prepare() argument
163 snd_hda_codec_setup_stream(codec, hinfo->nid, in si3054_pcm_prepare()
168 static int si3054_pcm_open(struct hda_pcm_stream *hinfo, in si3054_pcm_open() argument
Dhda_generic.c5257 static void call_pcm_playback_hook(struct hda_pcm_stream *hinfo, in call_pcm_playback_hook() argument
5264 spec->pcm_playback_hook(hinfo, codec, substream, action); in call_pcm_playback_hook()
5267 static void call_pcm_capture_hook(struct hda_pcm_stream *hinfo, in call_pcm_capture_hook() argument
5274 spec->pcm_capture_hook(hinfo, codec, substream, action); in call_pcm_capture_hook()
5280 static int playback_pcm_open(struct hda_pcm_stream *hinfo, in playback_pcm_open() argument
5290 hinfo); in playback_pcm_open()
5293 call_pcm_playback_hook(hinfo, codec, substream, in playback_pcm_open()
5300 static int playback_pcm_prepare(struct hda_pcm_stream *hinfo, in playback_pcm_prepare() argument
5312 call_pcm_playback_hook(hinfo, codec, substream, in playback_pcm_prepare()
5317 static int playback_pcm_cleanup(struct hda_pcm_stream *hinfo, in playback_pcm_cleanup() argument
[all …]
Dhda_codec.c2963 struct hda_pcm_stream *hinfo = &pcm->stream[str]; in add_std_chmaps() local
2967 if (!pcm->pcm || pcm->own_chmap || !hinfo->substreams) in add_std_chmaps()
2969 elem = hinfo->chmap ? hinfo->chmap : snd_pcm_std_chmaps; in add_std_chmaps()
2971 hinfo->channels_max, in add_std_chmaps()
3023 static int hda_pcm_default_open_close(struct hda_pcm_stream *hinfo, in hda_pcm_default_open_close() argument
3030 static int hda_pcm_default_prepare(struct hda_pcm_stream *hinfo, in hda_pcm_default_prepare() argument
3036 snd_hda_codec_setup_stream(codec, hinfo->nid, stream_tag, 0, format); in hda_pcm_default_prepare()
3040 static int hda_pcm_default_cleanup(struct hda_pcm_stream *hinfo, in hda_pcm_default_cleanup() argument
3044 snd_hda_codec_cleanup_stream(codec, hinfo->nid); in hda_pcm_default_cleanup()
3094 struct hda_pcm_stream *hinfo, in snd_hda_codec_prepare() argument
[all …]
Dhda_generic.h293 void (*pcm_playback_hook)(struct hda_pcm_stream *hinfo,
297 void (*pcm_capture_hook)(struct hda_pcm_stream *hinfo,
Dhda_codec.h436 struct hda_pcm_stream *hinfo,
441 struct hda_pcm_stream *hinfo,
Dhda_local.h260 struct hda_pcm_stream *hinfo);
714 struct hda_pcm_stream *hinfo);
Dpatch_ca0132.c3275 static int ca0132_playback_pcm_prepare(struct hda_pcm_stream *hinfo, in ca0132_playback_pcm_prepare() argument
3288 static int ca0132_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, in ca0132_playback_pcm_cleanup() argument
3335 static int ca0132_dig_playback_pcm_open(struct hda_pcm_stream *hinfo, in ca0132_dig_playback_pcm_open() argument
3343 static int ca0132_dig_playback_pcm_prepare(struct hda_pcm_stream *hinfo, in ca0132_dig_playback_pcm_prepare() argument
3354 static int ca0132_dig_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, in ca0132_dig_playback_pcm_cleanup() argument
3362 static int ca0132_dig_playback_pcm_close(struct hda_pcm_stream *hinfo, in ca0132_dig_playback_pcm_close() argument
3373 static int ca0132_capture_pcm_prepare(struct hda_pcm_stream *hinfo, in ca0132_capture_pcm_prepare() argument
3379 snd_hda_codec_setup_stream(codec, hinfo->nid, in ca0132_capture_pcm_prepare()
3385 static int ca0132_capture_pcm_cleanup(struct hda_pcm_stream *hinfo, in ca0132_capture_pcm_cleanup() argument
3394 snd_hda_codec_cleanup_stream(codec, hinfo->nid); in ca0132_capture_pcm_cleanup()
[all …]
/Linux-v4.19/include/uapi/linux/netfilter/
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-v4.19/fs/ext4/
Dhash.c199 int ext4fs_dirhash(const char *name, int len, struct dx_hash_info *hinfo) in ext4fs_dirhash() argument
216 if (hinfo->seed) { in ext4fs_dirhash()
218 if (hinfo->seed[i]) { in ext4fs_dirhash()
219 memcpy(buf, hinfo->seed, sizeof(buf)); in ext4fs_dirhash()
225 switch (hinfo->hash_version) { in ext4fs_dirhash()
259 hinfo->hash = 0; in ext4fs_dirhash()
265 hinfo->hash = hash; in ext4fs_dirhash()
266 hinfo->minor_hash = minor_hash; in ext4fs_dirhash()
Dnamei.c258 struct dx_hash_info *hinfo,
262 unsigned blocksize, struct dx_hash_info *hinfo,
599 struct dx_hash_info *hinfo, in dx_show_leaf() argument
605 struct dx_hash_info h = *hinfo; in dx_show_leaf()
689 struct stats dx_show_entries(struct dx_hash_info *hinfo, struct inode *dir, in dx_show_entries() argument
708 dx_show_entries(hinfo, dir, ((struct dx_node *) bh->b_data)->entries, levels - 1): in dx_show_entries()
709 dx_show_leaf(dir, hinfo, (struct ext4_dir_entry_2 *) in dx_show_entries()
735 struct dx_hash_info *hinfo, struct dx_frame *frame_in) in dx_probe() argument
758 hinfo = &fname->hinfo; in dx_probe()
759 hinfo->hash_version = root->info.hash_version; in dx_probe()
[all …]
Dialloc.c432 struct dx_hash_info hinfo; in find_group_orlov() local
456 hinfo.hash_version = DX_HASH_HALF_MD4; in find_group_orlov()
457 hinfo.seed = sbi->s_hash_seed; in find_group_orlov()
458 ext4fs_dirhash(qstr->name, qstr->len, &hinfo); in find_group_orlov()
459 grp = hinfo.hash; in find_group_orlov()
Dinline.c1329 struct dx_hash_info *hinfo, in htree_inlinedir_to_tree() argument
1407 ext4fs_dirhash(de->name, de->name_len, hinfo); in htree_inlinedir_to_tree()
1408 if ((hinfo->hash < start_hash) || in htree_inlinedir_to_tree()
1409 ((hinfo->hash == start_hash) && in htree_inlinedir_to_tree()
1410 (hinfo->minor_hash < start_minor_hash))) in htree_inlinedir_to_tree()
1416 err = ext4_htree_store_dirent(dir_file, hinfo->hash, in htree_inlinedir_to_tree()
1417 hinfo->minor_hash, de, &tmp_str); in htree_inlinedir_to_tree()
/Linux-v4.19/drivers/scsi/megaraid/
Dmegaraid_mm.c817 mraid_hba_info_t *hinfo; in kioc_to_mimd() local
831 hinfo = (mraid_hba_info_t *)(unsigned long) in kioc_to_mimd()
834 hinfo_to_cinfo(hinfo, &cinfo); in kioc_to_mimd()
884 hinfo_to_cinfo(mraid_hba_info_t *hinfo, mcontroller_t *cinfo) in hinfo_to_cinfo() argument
886 if (!hinfo || !cinfo) in hinfo_to_cinfo()
889 cinfo->base = hinfo->baseport; in hinfo_to_cinfo()
890 cinfo->irq = hinfo->irq; in hinfo_to_cinfo()
891 cinfo->numldrv = hinfo->num_ldrv; in hinfo_to_cinfo()
892 cinfo->pcibus = hinfo->pci_bus; in hinfo_to_cinfo()
893 cinfo->pcidev = hinfo->pci_slot; in hinfo_to_cinfo()
[all …]
Dmegaraid_mbox.c3795 gather_hbainfo(adapter_t *adapter, mraid_hba_info_t *hinfo) in gather_hbainfo() argument
3801 hinfo->pci_vendor_id = adapter->pdev->vendor; in gather_hbainfo()
3802 hinfo->pci_device_id = adapter->pdev->device; in gather_hbainfo()
3803 hinfo->subsys_vendor_id = adapter->pdev->subsystem_vendor; in gather_hbainfo()
3804 hinfo->subsys_device_id = adapter->pdev->subsystem_device; in gather_hbainfo()
3806 hinfo->pci_bus = adapter->pdev->bus->number; in gather_hbainfo()
3807 hinfo->pci_dev_fn = adapter->pdev->devfn; in gather_hbainfo()
3808 hinfo->pci_slot = PCI_SLOT(adapter->pdev->devfn); in gather_hbainfo()
3809 hinfo->irq = adapter->host->irq; in gather_hbainfo()
3810 hinfo->baseport = ADAP2RAIDDEV(adapter)->baseport; in gather_hbainfo()
[all …]
/Linux-v4.19/include/net/
Dseg6_hmac.h47 extern int seg6_hmac_compute(struct seg6_hmac_info *hinfo,
52 struct seg6_hmac_info *hinfo);
/Linux-v4.19/net/ipv4/
Dinet_hashtables.c443 struct inet_hashinfo *hinfo = death_row->hashinfo; in __inet_check_established() local
454 struct inet_ehash_bucket *head = inet_ehash_bucket(hinfo, hash); in __inet_check_established()
455 spinlock_t *lock = inet_ehash_lockp(hinfo, hash); in __inet_check_established()
669 struct inet_hashinfo *hinfo = death_row->hashinfo; in __inet_hash_connect() local
680 head = &hinfo->bhash[inet_bhashfn(net, port, in __inet_hash_connect()
681 hinfo->bhash_size)]; in __inet_hash_connect()
714 head = &hinfo->bhash[inet_bhashfn(net, port, in __inet_hash_connect()
715 hinfo->bhash_size)]; in __inet_hash_connect()
734 tb = inet_bind_bucket_create(hinfo->bind_bucket_cachep, in __inet_hash_connect()
764 inet_twsk_bind_unhash(tw, hinfo); in __inet_hash_connect()
Dinet_connection_sock.c179 struct inet_hashinfo *hinfo = sk->sk_prot->h.hashinfo; in inet_csk_find_open_port() local
218 head = &hinfo->bhash[inet_bhashfn(net, port, in inet_csk_find_open_port()
219 hinfo->bhash_size)]; in inet_csk_find_open_port()
290 struct inet_hashinfo *hinfo = sk->sk_prot->h.hashinfo; in inet_csk_get_port() local
305 head = &hinfo->bhash[inet_bhashfn(net, port, in inet_csk_get_port()
306 hinfo->bhash_size)]; in inet_csk_get_port()
312 tb = inet_bind_bucket_create(hinfo->bind_bucket_cachep, in inet_csk_get_port()
/Linux-v4.19/fs/ocfs2/
Ddir.c272 struct ocfs2_dx_hinfo *hinfo) in ocfs2_dx_dir_name_hash() argument
309 hinfo->major_hash = buf[0]; in ocfs2_dx_dir_name_hash()
310 hinfo->minor_hash = buf[1]; in ocfs2_dx_dir_name_hash()
857 struct ocfs2_dx_hinfo *hinfo) in ocfs2_dx_dir_hash_idx() argument
859 return __ocfs2_dx_dir_hash_idx(osb, hinfo->minor_hash); in ocfs2_dx_dir_hash_idx()
864 struct ocfs2_dx_hinfo *hinfo, in ocfs2_dx_dir_lookup() argument
872 u32 name_hash = hinfo->major_hash; in ocfs2_dx_dir_lookup()
897 blkno += ocfs2_dx_dir_hash_idx(OCFS2_SB(inode->i_sb), hinfo); in ocfs2_dx_dir_lookup()
921 struct ocfs2_dx_hinfo *hinfo = &res->dl_hinfo; in ocfs2_dx_dir_search() local
934 ret = ocfs2_dx_dir_lookup(dir, dr_el, hinfo, NULL, &phys); in ocfs2_dx_dir_search()
[all …]

12