Home
last modified time | relevance | path

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

/linux-4.1.27/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.1.27/net/sched/
Dact_api.c33 struct tcf_hashinfo *hinfo = a->ops->hinfo; in tcf_hash_destroy() local
35 spin_lock_bh(&hinfo->lock); in tcf_hash_destroy()
37 spin_unlock_bh(&hinfo->lock); in tcf_hash_destroy()
75 struct tcf_hashinfo *hinfo = a->ops->hinfo; in tcf_dump_walker() local
81 spin_lock_bh(&hinfo->lock); in tcf_dump_walker()
85 for (i = 0; i < (hinfo->hmask + 1); i++) { in tcf_dump_walker()
86 head = &hinfo->htab[tcf_hash(i, hinfo->hmask)]; in tcf_dump_walker()
111 spin_unlock_bh(&hinfo->lock); in tcf_dump_walker()
123 struct tcf_hashinfo *hinfo = a->ops->hinfo; in tcf_del_walker() local
136 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.1.27/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.c533 struct dx_hash_info *hinfo, in _ext4_fname_disk_to_usr() argument
559 if (hinfo) { in _ext4_fname_disk_to_usr()
560 memcpy(buf, &hinfo->hash, 4); in _ext4_fname_disk_to_usr()
561 memcpy(buf+4, &hinfo->minor_hash, 4); in _ext4_fname_disk_to_usr()
572 struct dx_hash_info *hinfo, in ext4_fname_disk_to_usr() argument
579 return _ext4_fname_disk_to_usr(ctx, hinfo, &iname, oname); in ext4_fname_disk_to_usr()
619 struct dx_hash_info *hinfo) in ext4_fname_usr_to_hash() argument
629 ext4fs_dirhash(iname->name, iname->len, hinfo); in ext4_fname_usr_to_hash()
639 memcpy(&hinfo->hash, buf, 4); in ext4_fname_usr_to_hash()
640 memcpy(&hinfo->minor_hash, buf + 4, 4); in ext4_fname_usr_to_hash()
[all …]
Dnamei.c253 struct dx_hash_info *hinfo,
257 unsigned blocksize, struct dx_hash_info *hinfo,
590 struct dx_hash_info *hinfo, in dx_show_leaf() argument
596 struct dx_hash_info h = *hinfo; in dx_show_leaf()
682 struct stats dx_show_entries(struct dx_hash_info *hinfo, struct inode *dir, in dx_show_entries() argument
701 dx_show_entries(hinfo, dir, ((struct dx_node *) bh->b_data)->entries, levels - 1): in dx_show_entries()
702 dx_show_leaf(dir, hinfo, (struct ext4_dir_entry_2 *) in dx_show_entries()
728 struct dx_hash_info *hinfo, struct dx_frame *frame_in) in dx_probe() argument
749 hinfo->hash_version = root->info.hash_version; in dx_probe()
750 if (hinfo->hash_version <= DX_HASH_TEA) in dx_probe()
[all …]
Dialloc.c428 struct dx_hash_info hinfo; in find_group_orlov() local
452 hinfo.hash_version = DX_HASH_HALF_MD4; in find_group_orlov()
453 hinfo.seed = sbi->s_hash_seed; in find_group_orlov()
454 ext4fs_dirhash(qstr->name, qstr->len, &hinfo); in find_group_orlov()
455 grp = hinfo.hash; in find_group_orlov()
Dinline.c1320 struct dx_hash_info *hinfo, in htree_inlinedir_to_tree() argument
1398 ext4fs_dirhash(de->name, de->name_len, hinfo); in htree_inlinedir_to_tree()
1399 if ((hinfo->hash < start_hash) || in htree_inlinedir_to_tree()
1400 ((hinfo->hash == start_hash) && in htree_inlinedir_to_tree()
1401 (hinfo->minor_hash < start_minor_hash))) in htree_inlinedir_to_tree()
1407 err = ext4_htree_store_dirent(dir_file, hinfo->hash, in htree_inlinedir_to_tree()
1408 hinfo->minor_hash, de, &tmp_str); in htree_inlinedir_to_tree()
Dext4.h2123 struct dx_hash_info *hinfo,
2127 struct dx_hash_info *hinfo,
2135 struct dx_hash_info *hinfo);
2225 dx_hash_info *hinfo);
2817 struct dx_hash_info *hinfo,
/linux-4.1.27/fs/ext3/
Dhash.c137 int ext3fs_dirhash(const char *name, int len, struct dx_hash_info *hinfo) in ext3fs_dirhash() argument
154 if (hinfo->seed) { in ext3fs_dirhash()
156 if (hinfo->seed[i]) in ext3fs_dirhash()
160 memcpy(buf, hinfo->seed, sizeof(buf)); in ext3fs_dirhash()
163 switch (hinfo->hash_version) { in ext3fs_dirhash()
197 hinfo->hash = 0; in ext3fs_dirhash()
203 hinfo->hash = hash; in ext3fs_dirhash()
204 hinfo->minor_hash = minor_hash; in ext3fs_dirhash()
Dnamei.c147 struct dx_hash_info *hinfo,
152 struct dx_hash_info *hinfo, struct dx_map_entry map[]);
258 static struct stats dx_show_leaf(struct dx_hash_info *hinfo, struct ext3_dir_entry_2 *de, in dx_show_leaf() argument
263 struct dx_hash_info h = *hinfo; in dx_show_leaf()
288 struct stats dx_show_entries(struct dx_hash_info *hinfo, struct inode *dir, in dx_show_entries() argument
305 dx_show_entries(hinfo, dir, ((struct dx_node *) bh->b_data)->entries, levels - 1): in dx_show_entries()
306 dx_show_leaf(hinfo, (struct ext3_dir_entry_2 *) bh->b_data, blocksize, 0); in dx_show_entries()
330 struct dx_hash_info *hinfo, struct dx_frame *frame_in, int *err) in dx_probe() argument
355 hinfo->hash_version = root->info.hash_version; in dx_probe()
356 if (hinfo->hash_version <= DX_HASH_TEA) in dx_probe()
[all …]
Dext3.h1032 dx_hash_info *hinfo);
/linux-4.1.27/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.1.27/sound/pci/hda/
Dhda_controller.c271 struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream); in azx_adjust_codec_delay() local
274 if (!hinfo->ops.get_delay) in azx_adjust_codec_delay()
277 codec_frames = hinfo->ops.get_delay(hinfo, apcm->codec, substream); in azx_adjust_codec_delay()
407 struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream); in azx_pcm_close() local
418 if (hinfo->ops.close) in azx_pcm_close()
419 hinfo->ops.close(hinfo, apcm->codec, substream); in azx_pcm_close()
451 struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream); in azx_pcm_hw_free() local
465 snd_hda_codec_cleanup(apcm->codec, hinfo, substream); in azx_pcm_hw_free()
478 struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream); in azx_pcm_prepare() local
483 snd_hda_spdif_out_of_nid(apcm->codec, hinfo->nid); in azx_pcm_prepare()
[all …]
Dpatch_hdmi.c374 struct hda_pcm_stream *hinfo) in hinfo_to_pin_index() argument
380 if (get_pcm_rec(spec, pin_idx)->stream == hinfo) in hinfo_to_pin_index()
383 codec_warn(codec, "HDMI: hinfo %p not registered\n", hinfo); in hinfo_to_pin_index()
1437 static int hdmi_pcm_open(struct hda_pcm_stream *hinfo, in hdmi_pcm_open() argument
1450 pin_idx = hinfo_to_pin_index(codec, hinfo); in hdmi_pcm_open()
1464 hinfo->nid = per_cvt->cvt_nid; in hdmi_pcm_open()
1477 hinfo->channels_min = per_cvt->channels_min; in hdmi_pcm_open()
1478 hinfo->channels_max = per_cvt->channels_max; in hdmi_pcm_open()
1479 hinfo->rates = per_cvt->rates; in hdmi_pcm_open()
1480 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_generic.c5089 static void call_pcm_playback_hook(struct hda_pcm_stream *hinfo, in call_pcm_playback_hook() argument
5096 spec->pcm_playback_hook(hinfo, codec, substream, action); in call_pcm_playback_hook()
5099 static void call_pcm_capture_hook(struct hda_pcm_stream *hinfo, in call_pcm_capture_hook() argument
5106 spec->pcm_capture_hook(hinfo, codec, substream, action); in call_pcm_capture_hook()
5112 static int playback_pcm_open(struct hda_pcm_stream *hinfo, in playback_pcm_open() argument
5122 hinfo); in playback_pcm_open()
5125 call_pcm_playback_hook(hinfo, codec, substream, in playback_pcm_open()
5132 static int playback_pcm_prepare(struct hda_pcm_stream *hinfo, in playback_pcm_prepare() argument
5144 call_pcm_playback_hook(hinfo, codec, substream, in playback_pcm_prepare()
5149 static int playback_pcm_cleanup(struct hda_pcm_stream *hinfo, in playback_pcm_cleanup() argument
[all …]
Dhda_codec.c3258 struct hda_pcm_stream *hinfo = &pcm->stream[str]; in add_std_chmaps() local
3263 !hinfo->substreams) in add_std_chmaps()
3265 elem = hinfo->chmap ? hinfo->chmap : snd_pcm_std_chmaps; in add_std_chmaps()
3267 hinfo->channels_max, in add_std_chmaps()
3623 static int hda_pcm_default_open_close(struct hda_pcm_stream *hinfo, in hda_pcm_default_open_close() argument
3630 static int hda_pcm_default_prepare(struct hda_pcm_stream *hinfo, in hda_pcm_default_prepare() argument
3636 snd_hda_codec_setup_stream(codec, hinfo->nid, stream_tag, 0, format); in hda_pcm_default_prepare()
3640 static int hda_pcm_default_cleanup(struct hda_pcm_stream *hinfo, in hda_pcm_default_cleanup() argument
3644 snd_hda_codec_cleanup_stream(codec, hinfo->nid); in hda_pcm_default_cleanup()
3694 struct hda_pcm_stream *hinfo, in snd_hda_codec_prepare() 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.h448 struct hda_pcm_stream *hinfo,
453 struct hda_pcm_stream *hinfo,
Dpatch_ca0132.c2664 static int ca0132_playback_pcm_prepare(struct hda_pcm_stream *hinfo, in ca0132_playback_pcm_prepare() argument
2677 static int ca0132_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, in ca0132_playback_pcm_cleanup() argument
2724 static int ca0132_dig_playback_pcm_open(struct hda_pcm_stream *hinfo, in ca0132_dig_playback_pcm_open() argument
2732 static int ca0132_dig_playback_pcm_prepare(struct hda_pcm_stream *hinfo, in ca0132_dig_playback_pcm_prepare() argument
2743 static int ca0132_dig_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, in ca0132_dig_playback_pcm_cleanup() argument
2751 static int ca0132_dig_playback_pcm_close(struct hda_pcm_stream *hinfo, in ca0132_dig_playback_pcm_close() argument
2762 static int ca0132_capture_pcm_prepare(struct hda_pcm_stream *hinfo, in ca0132_capture_pcm_prepare() argument
2768 snd_hda_codec_setup_stream(codec, hinfo->nid, in ca0132_capture_pcm_prepare()
2774 static int ca0132_capture_pcm_cleanup(struct hda_pcm_stream *hinfo, in ca0132_capture_pcm_cleanup() argument
2783 snd_hda_codec_cleanup_stream(codec, hinfo->nid); in ca0132_capture_pcm_cleanup()
Dhda_local.h321 struct hda_pcm_stream *hinfo);
774 struct hda_pcm_stream *hinfo);
Dpatch_via.c115 static void via_playback_pcm_hook(struct hda_pcm_stream *hinfo,
427 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.1.27/net/ipv4/
Dinet_hashtables.c336 struct inet_hashinfo *hinfo = death_row->hashinfo; in __inet_check_established() local
346 struct inet_ehash_bucket *head = inet_ehash_bucket(hinfo, hash); in __inet_check_established()
347 spinlock_t *lock = inet_ehash_lockp(hinfo, hash); in __inet_check_established()
493 struct inet_hashinfo *hinfo = death_row->hashinfo; in __inet_hash_connect() local
515 head = &hinfo->bhash[inet_bhashfn(net, port, in __inet_hash_connect()
516 hinfo->bhash_size)]; in __inet_hash_connect()
537 tb = inet_bind_bucket_create(hinfo->bind_bucket_cachep, in __inet_hash_connect()
564 twrefcnt += inet_twsk_bind_unhash(tw, hinfo); in __inet_hash_connect()
579 head = &hinfo->bhash[inet_bhashfn(net, snum, hinfo->bhash_size)]; in __inet_hash_connect()
/linux-4.1.27/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.1.27/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()
866 struct ocfs2_dx_hinfo *hinfo) in ocfs2_dx_dir_hash_idx() argument
868 return __ocfs2_dx_dir_hash_idx(osb, hinfo->minor_hash); in ocfs2_dx_dir_hash_idx()
873 struct ocfs2_dx_hinfo *hinfo, in ocfs2_dx_dir_lookup() argument
881 u32 name_hash = hinfo->major_hash; in ocfs2_dx_dir_lookup()
906 blkno += ocfs2_dx_dir_hash_idx(OCFS2_SB(inode->i_sb), hinfo); in ocfs2_dx_dir_lookup()
930 struct ocfs2_dx_hinfo *hinfo = &res->dl_hinfo; in ocfs2_dx_dir_search() local
943 ret = ocfs2_dx_dir_lookup(dir, dr_el, hinfo, NULL, &phys); in ocfs2_dx_dir_search()
[all …]
/linux-4.1.27/net/ipv6/
Dinet6_hashtables.c196 struct inet_hashinfo *hinfo = death_row->hashinfo; in __inet6_check_established() local
205 struct inet_ehash_bucket *head = inet_ehash_bucket(hinfo, hash); in __inet6_check_established()
206 spinlock_t *lock = inet_ehash_lockp(hinfo, hash); in __inet6_check_established()
/linux-4.1.27/include/net/
Dact_api.h86 struct tcf_hashinfo *hinfo; member
102 u32 tcf_hash_new_index(struct tcf_hashinfo *hinfo);