Home
last modified time | relevance | path

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

/linux-4.4.14/net/netfilter/
Dxt_hashlimit.c222 struct xt_hashlimit_htable *hinfo; in htable_create() local
237 hinfo = vmalloc(sizeof(struct xt_hashlimit_htable) + in htable_create()
239 if (hinfo == NULL) in htable_create()
241 minfo->hinfo = hinfo; in htable_create()
244 memcpy(&hinfo->cfg, &minfo->cfg, sizeof(hinfo->cfg)); in htable_create()
245 hinfo->cfg.size = size; in htable_create()
246 if (hinfo->cfg.max == 0) in htable_create()
247 hinfo->cfg.max = 8 * hinfo->cfg.size; in htable_create()
248 else if (hinfo->cfg.max < hinfo->cfg.size) in htable_create()
249 hinfo->cfg.max = hinfo->cfg.size; in htable_create()
[all …]
/linux-4.4.14/net/sched/
Dact_api.c42 struct tcf_hashinfo *hinfo = a->ops->hinfo; in tcf_hash_destroy() local
44 spin_lock_bh(&hinfo->lock); in tcf_hash_destroy()
46 spin_unlock_bh(&hinfo->lock); in tcf_hash_destroy()
83 struct tcf_hashinfo *hinfo = a->ops->hinfo; in tcf_dump_walker() local
89 spin_lock_bh(&hinfo->lock); in tcf_dump_walker()
93 for (i = 0; i < (hinfo->hmask + 1); i++) { in tcf_dump_walker()
94 head = &hinfo->htab[tcf_hash(i, hinfo->hmask)]; in tcf_dump_walker()
119 spin_unlock_bh(&hinfo->lock); in tcf_dump_walker()
131 struct tcf_hashinfo *hinfo = a->ops->hinfo; in tcf_del_walker() local
144 for (i = 0; i < (hinfo->hmask + 1); i++) { in tcf_del_walker()
[all …]
Dact_police.c61 struct tcf_hashinfo *hinfo = a->ops->hinfo; in tcf_act_police_walker() local
67 spin_lock_bh(&hinfo->lock); in tcf_act_police_walker()
72 head = &hinfo->htab[tcf_hash(i, POL_TAB_MASK)]; in tcf_act_police_walker()
97 spin_unlock_bh(&hinfo->lock); in tcf_act_police_walker()
124 struct tcf_hashinfo *hinfo = a->ops->hinfo; in tcf_act_police_locate() local
236 tcf_hash_new_index(hinfo); in tcf_act_police_locate()
238 spin_lock_bh(&hinfo->lock); in tcf_act_police_locate()
239 hlist_add_head(&police->tcf_head, &hinfo->htab[h]); in tcf_act_police_locate()
240 spin_unlock_bh(&hinfo->lock); in tcf_act_police_locate()
/linux-4.4.14/fs/ext4/
Dhash.c138 int ext4fs_dirhash(const char *name, int len, struct dx_hash_info *hinfo) in ext4fs_dirhash() argument
155 if (hinfo->seed) { in ext4fs_dirhash()
157 if (hinfo->seed[i]) { in ext4fs_dirhash()
158 memcpy(buf, hinfo->seed, sizeof(buf)); in ext4fs_dirhash()
164 switch (hinfo->hash_version) { in ext4fs_dirhash()
198 hinfo->hash = 0; in ext4fs_dirhash()
204 hinfo->hash = hash; in ext4fs_dirhash()
205 hinfo->minor_hash = minor_hash; in ext4fs_dirhash()
Dcrypto_fname.c313 struct dx_hash_info *hinfo, in _ext4_fname_disk_to_usr() argument
341 if (hinfo) { in _ext4_fname_disk_to_usr()
342 memcpy(buf, &hinfo->hash, 4); in _ext4_fname_disk_to_usr()
343 memcpy(buf+4, &hinfo->minor_hash, 4); in _ext4_fname_disk_to_usr()
354 struct dx_hash_info *hinfo, in ext4_fname_disk_to_usr() argument
361 return _ext4_fname_disk_to_usr(inode, hinfo, &iname, oname); in ext4_fname_disk_to_usr()
451 memcpy(&fname->hinfo.hash, fname->crypto_buf.name, 4); in ext4_fname_setup_filename()
452 memcpy(&fname->hinfo.minor_hash, fname->crypto_buf.name + 4, 4); in ext4_fname_setup_filename()
Dnamei.c256 struct dx_hash_info *hinfo,
260 unsigned blocksize, struct dx_hash_info *hinfo,
597 struct dx_hash_info *hinfo, in dx_show_leaf() argument
603 struct dx_hash_info h = *hinfo; in dx_show_leaf()
685 struct stats dx_show_entries(struct dx_hash_info *hinfo, struct inode *dir, in dx_show_entries() argument
704 dx_show_entries(hinfo, dir, ((struct dx_node *) bh->b_data)->entries, levels - 1): in dx_show_entries()
705 dx_show_leaf(dir, hinfo, (struct ext4_dir_entry_2 *) in dx_show_entries()
731 struct dx_hash_info *hinfo, struct dx_frame *frame_in) in dx_probe() argument
753 hinfo = &fname->hinfo; in dx_probe()
754 hinfo->hash_version = root->info.hash_version; in dx_probe()
[all …]
Dialloc.c460 struct dx_hash_info hinfo; in find_group_orlov() local
484 hinfo.hash_version = DX_HASH_HALF_MD4; in find_group_orlov()
485 hinfo.seed = sbi->s_hash_seed; in find_group_orlov()
486 ext4fs_dirhash(qstr->name, qstr->len, &hinfo); in find_group_orlov()
487 grp = hinfo.hash; in find_group_orlov()
Dinline.c1317 struct dx_hash_info *hinfo, in htree_inlinedir_to_tree() argument
1395 ext4fs_dirhash(de->name, de->name_len, hinfo); in htree_inlinedir_to_tree()
1396 if ((hinfo->hash < start_hash) || in htree_inlinedir_to_tree()
1397 ((hinfo->hash == start_hash) && in htree_inlinedir_to_tree()
1398 (hinfo->minor_hash < start_minor_hash))) in htree_inlinedir_to_tree()
1404 err = ext4_htree_store_dirent(dir_file, hinfo->hash, in htree_inlinedir_to_tree()
1405 hinfo->minor_hash, de, &tmp_str); in htree_inlinedir_to_tree()
Dext4.h2035 struct dx_hash_info hinfo; member
2294 struct dx_hash_info *hinfo,
2298 struct dx_hash_info *hinfo,
2419 dx_hash_info *hinfo);
3035 struct dx_hash_info *hinfo,
/linux-4.4.14/sound/pci/hda/
Dhda_controller.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
147 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 …]
Dpatch_hdmi.c379 struct hda_pcm_stream *hinfo) in hinfo_to_pin_index() argument
385 if (get_pcm_rec(spec, pin_idx)->stream == hinfo) in hinfo_to_pin_index()
388 codec_warn(codec, "HDMI: hinfo %p not registered\n", hinfo); in hinfo_to_pin_index()
1442 static int hdmi_pcm_open(struct hda_pcm_stream *hinfo, in hdmi_pcm_open() argument
1455 pin_idx = hinfo_to_pin_index(codec, hinfo); in hdmi_pcm_open()
1469 hinfo->nid = per_cvt->cvt_nid; in hdmi_pcm_open()
1482 hinfo->channels_min = per_cvt->channels_min; in hdmi_pcm_open()
1483 hinfo->channels_max = per_cvt->channels_max; in hdmi_pcm_open()
1484 hinfo->rates = per_cvt->rates; in hdmi_pcm_open()
1485 hinfo->formats = per_cvt->formats; in hdmi_pcm_open()
[all …]
Dhda_eld.c593 struct hda_pcm_stream *hinfo) in snd_hdmi_eld_update_pcm_info() argument
629 hinfo->rates &= rates; in snd_hdmi_eld_update_pcm_info()
630 hinfo->formats &= formats; in snd_hdmi_eld_update_pcm_info()
631 hinfo->maxbps = min(hinfo->maxbps, maxbps); in snd_hdmi_eld_update_pcm_info()
632 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_codec.c3057 struct hda_pcm_stream *hinfo = &pcm->stream[str]; in add_std_chmaps() local
3061 if (!pcm->pcm || pcm->own_chmap || !hinfo->substreams) in add_std_chmaps()
3063 elem = hinfo->chmap ? hinfo->chmap : snd_pcm_std_chmaps; in add_std_chmaps()
3065 hinfo->channels_max, in add_std_chmaps()
3116 static int hda_pcm_default_open_close(struct hda_pcm_stream *hinfo, in hda_pcm_default_open_close() argument
3123 static int hda_pcm_default_prepare(struct hda_pcm_stream *hinfo, in hda_pcm_default_prepare() argument
3129 snd_hda_codec_setup_stream(codec, hinfo->nid, stream_tag, 0, format); in hda_pcm_default_prepare()
3133 static int hda_pcm_default_cleanup(struct hda_pcm_stream *hinfo, in hda_pcm_default_cleanup() argument
3137 snd_hda_codec_cleanup_stream(codec, hinfo->nid); in hda_pcm_default_cleanup()
3187 struct hda_pcm_stream *hinfo, in snd_hda_codec_prepare() argument
[all …]
Dhda_generic.c5091 static void call_pcm_playback_hook(struct hda_pcm_stream *hinfo, in call_pcm_playback_hook() argument
5098 spec->pcm_playback_hook(hinfo, codec, substream, action); in call_pcm_playback_hook()
5101 static void call_pcm_capture_hook(struct hda_pcm_stream *hinfo, in call_pcm_capture_hook() argument
5108 spec->pcm_capture_hook(hinfo, codec, substream, action); in call_pcm_capture_hook()
5114 static int playback_pcm_open(struct hda_pcm_stream *hinfo, in playback_pcm_open() argument
5124 hinfo); in playback_pcm_open()
5127 call_pcm_playback_hook(hinfo, codec, substream, in playback_pcm_open()
5134 static int playback_pcm_prepare(struct hda_pcm_stream *hinfo, in playback_pcm_prepare() argument
5146 call_pcm_playback_hook(hinfo, codec, substream, in playback_pcm_prepare()
5151 static int playback_pcm_cleanup(struct hda_pcm_stream *hinfo, in playback_pcm_cleanup() argument
[all …]
Dhda_generic.h279 void (*pcm_playback_hook)(struct hda_pcm_stream *hinfo,
283 void (*pcm_capture_hook)(struct hda_pcm_stream *hinfo,
Dhda_codec.h428 struct hda_pcm_stream *hinfo,
433 struct hda_pcm_stream *hinfo,
Dpatch_ca0132.c2690 static int ca0132_playback_pcm_prepare(struct hda_pcm_stream *hinfo, in ca0132_playback_pcm_prepare() argument
2703 static int ca0132_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, in ca0132_playback_pcm_cleanup() argument
2750 static int ca0132_dig_playback_pcm_open(struct hda_pcm_stream *hinfo, in ca0132_dig_playback_pcm_open() argument
2758 static int ca0132_dig_playback_pcm_prepare(struct hda_pcm_stream *hinfo, in ca0132_dig_playback_pcm_prepare() argument
2769 static int ca0132_dig_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, in ca0132_dig_playback_pcm_cleanup() argument
2777 static int ca0132_dig_playback_pcm_close(struct hda_pcm_stream *hinfo, in ca0132_dig_playback_pcm_close() argument
2788 static int ca0132_capture_pcm_prepare(struct hda_pcm_stream *hinfo, in ca0132_capture_pcm_prepare() argument
2794 snd_hda_codec_setup_stream(codec, hinfo->nid, in ca0132_capture_pcm_prepare()
2800 static int ca0132_capture_pcm_cleanup(struct hda_pcm_stream *hinfo, in ca0132_capture_pcm_cleanup() argument
2809 snd_hda_codec_cleanup_stream(codec, hinfo->nid); in ca0132_capture_pcm_cleanup()
Dhda_local.h321 struct hda_pcm_stream *hinfo);
769 struct hda_pcm_stream *hinfo);
Dpatch_via.c115 static void via_playback_pcm_hook(struct hda_pcm_stream *hinfo,
430 static void via_playback_pcm_hook(struct hda_pcm_stream *hinfo, in via_playback_pcm_hook() argument
Dpatch_sigmatel.c251 static void stac_playback_pcm_hook(struct hda_pcm_stream *hinfo, in stac_playback_pcm_hook() argument
261 static void stac_capture_pcm_hook(struct hda_pcm_stream *hinfo, in stac_capture_pcm_hook() argument
273 if (spec->gen.all_adcs[i] == hinfo->nid) { in stac_capture_pcm_hook()
282 snd_hda_codec_write(codec, hinfo->nid, 0, in stac_capture_pcm_hook()
287 snd_hda_codec_write(codec, hinfo->nid, 0, in stac_capture_pcm_hook()
Dpatch_conexant.c449 static void olpc_xo_capture_hook(struct hda_pcm_stream *hinfo, in olpc_xo_capture_hook() argument
/linux-4.4.14/drivers/scsi/megaraid/
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 …]
Dmegaraid_mbox.c3797 gather_hbainfo(adapter_t *adapter, mraid_hba_info_t *hinfo) in gather_hbainfo() argument
3803 hinfo->pci_vendor_id = adapter->pdev->vendor; in gather_hbainfo()
3804 hinfo->pci_device_id = adapter->pdev->device; in gather_hbainfo()
3805 hinfo->subsys_vendor_id = adapter->pdev->subsystem_vendor; in gather_hbainfo()
3806 hinfo->subsys_device_id = adapter->pdev->subsystem_device; in gather_hbainfo()
3808 hinfo->pci_bus = adapter->pdev->bus->number; in gather_hbainfo()
3809 hinfo->pci_dev_fn = adapter->pdev->devfn; in gather_hbainfo()
3810 hinfo->pci_slot = PCI_SLOT(adapter->pdev->devfn); in gather_hbainfo()
3811 hinfo->irq = adapter->host->irq; in gather_hbainfo()
3812 hinfo->baseport = ADAP2RAIDDEV(adapter)->baseport; in gather_hbainfo()
[all …]
/linux-4.4.14/net/ipv4/
Dinet_hashtables.c337 struct inet_hashinfo *hinfo = death_row->hashinfo; in __inet_check_established() local
347 struct inet_ehash_bucket *head = inet_ehash_bucket(hinfo, hash); in __inet_check_established()
348 spinlock_t *lock = inet_ehash_lockp(hinfo, hash); in __inet_check_established()
508 struct inet_hashinfo *hinfo = death_row->hashinfo; in __inet_hash_connect() local
535 head = &hinfo->bhash[inet_bhashfn(net, port, in __inet_hash_connect()
536 hinfo->bhash_size)]; in __inet_hash_connect()
557 tb = inet_bind_bucket_create(hinfo->bind_bucket_cachep, in __inet_hash_connect()
584 inet_twsk_bind_unhash(tw, hinfo); in __inet_hash_connect()
594 head = &hinfo->bhash[inet_bhashfn(net, snum, hinfo->bhash_size)]; in __inet_hash_connect()
/linux-4.4.14/include/uapi/linux/netfilter/
Dxt_hashlimit.h44 struct xt_hashlimit_htable *hinfo; member
70 struct xt_hashlimit_htable *hinfo __attribute__((aligned(8))); member
/linux-4.4.14/fs/ocfs2/
Ddir.c271 struct ocfs2_dx_hinfo *hinfo) in ocfs2_dx_dir_name_hash() argument
308 hinfo->major_hash = buf[0]; in ocfs2_dx_dir_name_hash()
309 hinfo->minor_hash = buf[1]; in ocfs2_dx_dir_name_hash()
856 struct ocfs2_dx_hinfo *hinfo) in ocfs2_dx_dir_hash_idx() argument
858 return __ocfs2_dx_dir_hash_idx(osb, hinfo->minor_hash); in ocfs2_dx_dir_hash_idx()
863 struct ocfs2_dx_hinfo *hinfo, in ocfs2_dx_dir_lookup() argument
871 u32 name_hash = hinfo->major_hash; in ocfs2_dx_dir_lookup()
896 blkno += ocfs2_dx_dir_hash_idx(OCFS2_SB(inode->i_sb), hinfo); in ocfs2_dx_dir_lookup()
920 struct ocfs2_dx_hinfo *hinfo = &res->dl_hinfo; in ocfs2_dx_dir_search() local
933 ret = ocfs2_dx_dir_lookup(dir, dr_el, hinfo, NULL, &phys); in ocfs2_dx_dir_search()
[all …]
/linux-4.4.14/net/ipv6/
Dinet6_hashtables.c198 struct inet_hashinfo *hinfo = death_row->hashinfo; in __inet6_check_established() local
207 struct inet_ehash_bucket *head = inet_ehash_bucket(hinfo, hash); in __inet6_check_established()
208 spinlock_t *lock = inet_ehash_lockp(hinfo, hash); in __inet6_check_established()
/linux-4.4.14/include/net/
Dact_api.h99 struct tcf_hashinfo *hinfo; member
114 u32 tcf_hash_new_index(struct tcf_hashinfo *hinfo);