| /linux/net/ipv6/ |
| H A D | seg6_hmac.c | 55 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 D | seg6.c | 157 struct seg6_hmac_info *hinfo; in seg6_genl_sethmac() local 182 hinfo = seg6_hmac_info_lookup(net, hmackeyid); in seg6_genl_sethmac() 200 if (hinfo) { in seg6_genl_sethmac() 208 hinfo = kzalloc_obj(*hinfo); in seg6_genl_sethmac() 209 if (!hinfo) { in seg6_genl_sethmac() 214 memcpy(hinfo->secret, secret, slen); in seg6_genl_sethmac() 215 hinfo->slen = slen; in seg6_genl_sethmac() 216 hinfo->alg_id = algid; in seg6_genl_sethmac() 217 hinfo->hmackeyid = hmackeyid; in seg6_genl_sethmac() 219 err = seg6_hmac_info_add(net, hmackeyid, hinfo); in seg6_genl_sethmac() [all …]
|
| H A D | inet6_hashtables.c | 306 struct inet_hashinfo *hinfo = death_row->hashinfo; in __inet6_check_established() local 314 struct inet_ehash_bucket *head = inet_ehash_bucket(hinfo, hash); in __inet6_check_established() 333 lock = inet_ehash_lockp(hinfo, hash); in __inet6_check_established()
|
| /linux/net/netfilter/ |
| H A D | xt_hashlimit.c | 281 struct xt_hashlimit_htable *hinfo; in htable_create() local 297 hinfo = kvmalloc_flex(*hinfo, hash, size); in htable_create() 298 if (hinfo == NULL) in htable_create() 300 *out_hinfo = hinfo; in htable_create() 303 ret = cfg_copy(&hinfo->cfg, (void *)cfg, 3); in htable_create() 305 kvfree(hinfo); in htable_create() 309 hinfo->cfg.size = size; in htable_create() 310 if (hinfo->cfg.max == 0) in htable_create() 311 hinfo->cfg.max = 8 * hinfo->cfg.size; in htable_create() 312 else if (hinfo->cfg.max < hinfo->cfg.size) in htable_create() [all …]
|
| /linux/sound/hda/codecs/hdmi/ |
| H A D | hdmi.c | 77 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 D | eld.c | 190 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 D | tegrahdmi.c | 133 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 D | simplehdmi.c | 120 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 D | hdmi_local.h | 270 int snd_hda_hdmi_generic_pcm_prepare(struct hda_pcm_stream *hinfo, 275 int snd_hda_hdmi_generic_pcm_cleanup(struct hda_pcm_stream *hinfo, 307 int snd_hda_hdmi_simple_pcm_open(struct hda_pcm_stream *hinfo,
|
| H A D | nvhdmi-mcp.c | 95 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 D | controller.c | 71 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 103 if (hinfo->ops.close) in azx_pcm_close() 104 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() 148 snd_hda_codec_cleanup(apcm->codec, hinfo, substrea in azx_pcm_hw_free() 139 struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream); azx_pcm_hw_free() local 157 struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream); azx_pcm_prepare() local 304 struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream); azx_get_position() local 577 struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream); azx_pcm_open() local [all...] |
| H A D | codec.c | 3058 struct hda_pcm_stream *hinfo = &pcm->stream[str]; in add_std_chmaps() 3062 if (!pcm->pcm || pcm->own_chmap || !hinfo->substreams) in add_std_chmaps() 3064 elem = hinfo->chmap ? hinfo->chmap : snd_pcm_std_chmaps; in add_std_chmaps() 3066 hinfo->channels_max, in add_std_chmaps() 3124 static int hda_pcm_default_open_close(struct hda_pcm_stream *hinfo, in hda_pcm_default_open_close() 3131 static int hda_pcm_default_prepare(struct hda_pcm_stream *hinfo, in hda_pcm_default_prepare() 3137 snd_hda_codec_setup_stream(codec, hinfo->nid, stream_tag, 0, format); in hda_pcm_default_prepare() 3141 static int hda_pcm_default_cleanup(struct hda_pcm_stream *hinfo, in hda_pcm_default_cleanup() 3145 snd_hda_codec_cleanup_stream(codec, hinfo in hda_pcm_default_cleanup() 3057 struct hda_pcm_stream *hinfo = &pcm->stream[str]; add_std_chmaps() local 3123 hda_pcm_default_open_close(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) hda_pcm_default_open_close() argument 3130 hda_pcm_default_prepare(struct hda_pcm_stream * hinfo,struct hda_codec * codec,unsigned int stream_tag,unsigned int format,struct snd_pcm_substream * substream) hda_pcm_default_prepare() argument 3140 hda_pcm_default_cleanup(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) hda_pcm_default_cleanup() argument 3195 snd_hda_codec_prepare(struct hda_codec * codec,struct hda_pcm_stream * hinfo,unsigned int stream,unsigned int format,struct snd_pcm_substream * substream) snd_hda_codec_prepare() argument 3223 snd_hda_codec_cleanup(struct hda_codec * codec,struct hda_pcm_stream * hinfo,struct snd_pcm_substream * substream) snd_hda_codec_cleanup() argument 3729 snd_hda_multi_out_analog_open(struct hda_codec * codec,struct hda_multi_out * mout,struct snd_pcm_substream * substream,struct hda_pcm_stream * hinfo) snd_hda_multi_out_analog_open() argument [all...] |
| /linux/include/uapi/linux/netfilter/ |
| H A D | xt_hashlimit.h | 49 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/fs/ext4/ |
| H A D | namei.c | 622 struct dx_hash_info *hinfo, in dx_show_leaf() argument 628 struct dx_hash_info h = *hinfo; in dx_show_leaf() 710 struct stats dx_show_entries(struct dx_hash_info *hinfo, struct inode *dir, in dx_show_entries() argument 729 dx_show_entries(hinfo, dir, ((struct dx_node *) bh->b_data)->entries, levels - 1): in dx_show_entries() 730 dx_show_leaf(dir, hinfo, (struct ext4_dir_entry_2 *) in dx_show_entries() 779 struct dx_hash_info *hinfo, struct dx_frame *frame_in) in dx_probe() argument 818 hinfo = &fname->hinfo; in dx_probe() 819 hinfo->hash_version = root->info.hash_version; in dx_probe() 820 if (hinfo->hash_version <= DX_HASH_TEA) in dx_probe() 821 hinfo->hash_version += EXT4_SB(dir->i_sb)->s_hash_unsigned; in dx_probe() [all …]
|
| H A D | crypto.c | 17 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()
|
| H A D | inline.c | 1269 struct dx_hash_info *hinfo, in ext4_inlinedir_to_tree() argument 1348 hinfo->hash = EXT4_DIRENT_HASH(de); in ext4_inlinedir_to_tree() 1349 hinfo->minor_hash = EXT4_DIRENT_MINOR_HASH(de); in ext4_inlinedir_to_tree() 1351 err = ext4fs_dirhash(dir, de->name, de->name_len, hinfo); in ext4_inlinedir_to_tree() 1357 if ((hinfo->hash < start_hash) || in ext4_inlinedir_to_tree() 1358 ((hinfo->hash == start_hash) && in ext4_inlinedir_to_tree() 1359 (hinfo->minor_hash < start_minor_hash))) in ext4_inlinedir_to_tree() 1365 err = ext4_htree_store_dirent(dir_file, hinfo->hash, in ext4_inlinedir_to_tree() 1366 hinfo->minor_hash, de, &tmp_str); in ext4_inlinedir_to_tree()
|
| H A D | ialloc.c | 441 struct dx_hash_info hinfo; in find_group_orlov() local 464 hinfo.hash_version = DX_HASH_HALF_MD4; in find_group_orlov() 465 hinfo.seed = sbi->s_hash_seed; in find_group_orlov() 466 ext4fs_dirhash(parent, qstr->name, qstr->len, &hinfo); in find_group_orlov() 467 parent_group = hinfo.hash % ngroups; in find_group_orlov()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | sock_iter_batch.c | 34 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/drivers/hwmon/ |
| H A D | intel-m10-bmc-hwmon.c | 26 const struct hwmon_channel_info * const *hinfo; member 153 .hinfo = n3000bmc_hinfo, 227 .hinfo = d5005bmc_hinfo, 339 .hinfo = n5010bmc_hinfo, 564 .hinfo = n6000bmc_hinfo, 744 hw->chip.info = hw->bdata->hinfo; in m10bmc_hwmon_probe()
|
| /linux/net/ipv4/ |
| H A D | tcp_ipv4.c | 2481 struct inet_hashinfo *hinfo = seq_file_net(seq)->ipv4.tcp_death_row.hashinfo; local 2485 for (; st->bucket <= hinfo->lhash2_mask; st->bucket++) { 2490 ilb2 = &hinfo->lhash2[st->bucket]; 2515 struct inet_hashinfo *hinfo; local 2527 hinfo = seq_file_net(seq)->ipv4.tcp_death_row.hashinfo; 2528 ilb2 = &hinfo->lhash2[st->bucket]; 2550 static inline bool empty_bucket(struct inet_hashinfo *hinfo, argument 2553 return hlist_nulls_empty(&hinfo->ehash[st->bucket].chain); 2562 struct inet_hashinfo *hinfo = seq_file_net(seq)->ipv4.tcp_death_row.hashinfo; local 2566 for (; st->bucket <= hinfo 2590 struct inet_hashinfo *hinfo = seq_file_net(seq)->ipv4.tcp_death_row.hashinfo; global() local 2643 struct inet_hashinfo *hinfo = seq_file_net(seq)->ipv4.tcp_death_row.hashinfo; global() local 2729 struct inet_hashinfo *hinfo = seq_file_net(seq)->ipv4.tcp_death_row.hashinfo; global() local 2967 struct inet_hashinfo *hinfo = seq_file_net(seq)->ipv4.tcp_death_row.hashinfo; global() local 2997 struct inet_hashinfo *hinfo = seq_file_net(seq)->ipv4.tcp_death_row.hashinfo; global() local 3119 struct inet_hashinfo *hinfo = seq_file_net(seq)->ipv4.tcp_death_row.hashinfo; global() local 3410 struct inet_hashinfo *hinfo; global() local [all...] |
| H A D | inet_connection_sock.c | 319 struct inet_hashinfo *hinfo = tcp_get_hashinfo(sk); in inet_csk_find_open_port() local 361 head = &hinfo->bhash[inet_bhashfn(net, port, in inet_csk_find_open_port() 362 hinfo->bhash_size)]; in inet_csk_find_open_port() 369 head2 = inet_bhashfn_portaddr(hinfo, sk, net, port); in inet_csk_find_open_port() 505 struct inet_hashinfo *hinfo = tcp_get_hashinfo(sk); in inet_csk_get_port() local 526 head = &hinfo->bhash[inet_bhashfn(net, port, in inet_csk_get_port() 527 hinfo->bhash_size)]; in inet_csk_get_port() 535 tb = inet_bind_bucket_create(hinfo->bind_bucket_cachep, net, in inet_csk_get_port() 555 head2 = inet_bhashfn_portaddr(hinfo, sk, net, port); in inet_csk_get_port() 562 tb2 = inet_bind2_bucket_create(hinfo->bind2_bucket_cachep, in inet_csk_get_port() [all …]
|
| /linux/sound/hda/codecs/ |
| H A D | si3054.c | 135 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 D | generic.c | 5277 static void call_pcm_playback_hook(struct hda_pcm_stream *hinfo, in snd_hda_gen_build_controls() 5284 spec->pcm_playback_hook(hinfo, codec, substream, action); in snd_hda_gen_build_controls() 5287 static void call_pcm_capture_hook(struct hda_pcm_stream *hinfo, 5294 spec->pcm_capture_hook(hinfo, codec, substream, action); in call_pcm_playback_hook() argument 5300 static int playback_pcm_open(struct hda_pcm_stream *hinfo, in call_pcm_playback_hook() 5310 hinfo); in call_pcm_capture_hook() 5315 call_pcm_playback_hook(hinfo, codec, substream, 5320 static int playback_pcm_prepare(struct hda_pcm_stream *hinfo, in playback_pcm_open() 5332 call_pcm_playback_hook(hinfo, codec, substream, in playback_pcm_open() 5337 static int playback_pcm_cleanup(struct hda_pcm_stream *hinfo, in playback_pcm_prepare() argument 5304 call_pcm_capture_hook(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream,int action) call_pcm_capture_hook() argument 5317 playback_pcm_open(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) playback_pcm_open() argument 5354 playback_pcm_cleanup(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) playback_pcm_cleanup() argument 5368 playback_pcm_close(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) playback_pcm_close() argument 5381 capture_pcm_open(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) capture_pcm_open() argument 5389 capture_pcm_prepare(struct hda_pcm_stream * hinfo,struct hda_codec * codec,unsigned int stream_tag,unsigned int format,struct snd_pcm_substream * substream) capture_pcm_prepare() argument 5401 capture_pcm_cleanup(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) capture_pcm_cleanup() argument 5411 capture_pcm_close(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) capture_pcm_close() argument 5419 alt_playback_pcm_open(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) alt_playback_pcm_open() argument 5436 alt_playback_pcm_close(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) alt_playback_pcm_close() argument 5449 alt_playback_pcm_prepare(struct hda_pcm_stream * hinfo,struct hda_codec * codec,unsigned int stream_tag,unsigned int format,struct snd_pcm_substream * substream) alt_playback_pcm_prepare() argument 5461 alt_playback_pcm_cleanup(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) alt_playback_pcm_cleanup() argument 5474 dig_playback_pcm_open(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) dig_playback_pcm_open() argument 5482 dig_playback_pcm_prepare(struct hda_pcm_stream * hinfo,struct hda_codec * codec,unsigned int stream_tag,unsigned int format,struct snd_pcm_substream * substream) dig_playback_pcm_prepare() argument 5493 dig_playback_pcm_cleanup(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) dig_playback_pcm_cleanup() argument 5501 dig_playback_pcm_close(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) dig_playback_pcm_close() argument 5515 alt_capture_pcm_prepare(struct hda_pcm_stream * hinfo,struct hda_codec * codec,unsigned int stream_tag,unsigned int format,struct snd_pcm_substream * substream) alt_capture_pcm_prepare() argument 5530 alt_capture_pcm_cleanup(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) alt_capture_pcm_cleanup() argument 5645 dyn_adc_capture_pcm_prepare(struct hda_pcm_stream * hinfo,struct hda_codec * codec,unsigned int stream_tag,unsigned int format,struct snd_pcm_substream * substream) dyn_adc_capture_pcm_prepare() argument 5660 dyn_adc_capture_pcm_cleanup(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) dyn_adc_capture_pcm_cleanup() argument [all...] |
| H A D | generic.h | 283 void (*pcm_playback_hook)(struct hda_pcm_stream *hinfo, 287 void (*pcm_capture_hook)(struct hda_pcm_stream *hinfo,
|
| /linux/include/net/ |
| H A D | inet_hashtables.h | 253 inet_bhashfn_portaddr(const struct inet_hashinfo *hinfo, const struct sock *sk, in inet_bhashfn_portaddr() argument 264 return &hinfo->bhash2[hash & (hinfo->bhash_size - 1)]; in inet_bhashfn_portaddr()
|