• Home
  • Raw
  • Download

Lines Matching refs:key

1888 static struct hda_cache_head  *get_hash(struct hda_cache_rec *cache, u32 key)  in get_hash()  argument
1890 u16 idx = key % (u16)ARRAY_SIZE(cache->hash); in get_hash()
1896 if (info->key == key) in get_hash()
1905 u32 key) in get_alloc_hash() argument
1907 struct hda_cache_head *info = get_hash(cache, key); in get_alloc_hash()
1915 info->key = key; in get_alloc_hash()
1918 idx = key % (u16)ARRAY_SIZE(cache->hash); in get_alloc_hash()
1927 get_alloc_amp_hash(struct hda_codec *codec, u32 key) in get_alloc_amp_hash() argument
1929 return (struct hda_amp_info *)get_alloc_hash(&codec->amp_cache, key); in get_alloc_amp_hash()
1933 static int write_caps_hash(struct hda_codec *codec, u32 key, unsigned int val) in write_caps_hash() argument
1938 info = get_alloc_amp_hash(codec, key); in write_caps_hash()
1953 query_caps_hash(struct hda_codec *codec, hda_nid_t nid, int dir, u32 key, in query_caps_hash() argument
1960 info = get_alloc_amp_hash(codec, key); in query_caps_hash()
1968 write_caps_hash(codec, key, val); in query_caps_hash()
2295 u32 key; in snd_hda_codec_resume_amp() local
2305 key = info.head.key; in snd_hda_codec_resume_amp()
2306 if (!key) in snd_hda_codec_resume_amp()
2308 nid = key & 0xff; in snd_hda_codec_resume_amp()
2309 idx = (key >> 16) & 0xff; in snd_hda_codec_resume_amp()
2310 dir = (key >> 24) & 0xff; in snd_hda_codec_resume_amp()
3793 #define get_cmd_cache_nid(key) ((key) & 0xff) argument
3794 #define get_cmd_cache_cmd(key) (((key) >> 8) & 0xffff) argument
3813 u32 key; in snd_hda_codec_write_cache() local
3826 key = build_cmd_cache_key(nid, verb); in snd_hda_codec_write_cache()
3828 c = get_alloc_hash(&codec->cmd_cache, key); in snd_hda_codec_write_cache()
3856 u32 key; in snd_hda_codec_update_cache() local
3861 key = build_cmd_cache_key(nid, verb); in snd_hda_codec_update_cache()
3863 c = get_hash(&codec->cmd_cache, key); in snd_hda_codec_update_cache()
3887 u32 key; in snd_hda_codec_resume_cache() local
3890 key = buffer->key; in snd_hda_codec_resume_cache()
3891 if (!key) in snd_hda_codec_resume_cache()
3897 snd_hda_codec_write(codec, get_cmd_cache_nid(key), 0, in snd_hda_codec_resume_cache()
3898 get_cmd_cache_cmd(key), buffer->val); in snd_hda_codec_resume_cache()