| /kernel/linux/linux-6.6/sound/pci/ice1712/ |
| D | hoontech.c | 43 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_darear() local 45 ICE1712_STDSP24_0_DAREAR(spec->boxbits, activate); in snd_ice1712_stdsp24_darear() 46 snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[0]); in snd_ice1712_stdsp24_darear() 52 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_mute() local 54 ICE1712_STDSP24_3_MUTE(spec->boxbits, activate); in snd_ice1712_stdsp24_mute() 55 snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[3]); in snd_ice1712_stdsp24_mute() 61 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_insel() local 63 ICE1712_STDSP24_3_INSEL(spec->boxbits, activate); in snd_ice1712_stdsp24_insel() 64 snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[3]); in snd_ice1712_stdsp24_insel() 70 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_box_channel() local [all …]
|
| D | psc724.c | 106 struct psc724_spec *spec = container_of(wm, struct psc724_spec, wm8766); in psc724_wm8766_write() local 107 struct snd_ice1712 *ice = spec->ice; in psc724_wm8766_write() 148 struct psc724_spec *spec = container_of(wm, struct psc724_spec, wm8776); in psc724_wm8776_write() local 150 snd_vt1724_write_i2c(spec->ice, 0x34, addr, data); in psc724_wm8776_write() 158 struct psc724_spec *spec = ice->spec; in psc724_set_master_switch() local 160 spec->mute_all = !on; in psc724_set_master_switch() 170 struct psc724_spec *spec = ice->spec; in psc724_get_master_switch() local 172 return !spec->mute_all; in psc724_get_master_switch() 179 struct psc724_spec *spec = ice->spec; in psc724_set_jack_state() local 181 u16 power = spec->wm8776.regs[WM8776_REG_PWRDOWN] & ~WM8776_PWR_HPPD; in psc724_set_jack_state() [all …]
|
| /kernel/linux/linux-5.10/sound/pci/ice1712/ |
| D | hoontech.c | 43 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_darear() local 45 ICE1712_STDSP24_0_DAREAR(spec->boxbits, activate); in snd_ice1712_stdsp24_darear() 46 snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[0]); in snd_ice1712_stdsp24_darear() 52 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_mute() local 54 ICE1712_STDSP24_3_MUTE(spec->boxbits, activate); in snd_ice1712_stdsp24_mute() 55 snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[3]); in snd_ice1712_stdsp24_mute() 61 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_insel() local 63 ICE1712_STDSP24_3_INSEL(spec->boxbits, activate); in snd_ice1712_stdsp24_insel() 64 snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[3]); in snd_ice1712_stdsp24_insel() 70 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_box_channel() local [all …]
|
| D | psc724.c | 106 struct psc724_spec *spec = container_of(wm, struct psc724_spec, wm8766); in psc724_wm8766_write() local 107 struct snd_ice1712 *ice = spec->ice; in psc724_wm8766_write() 148 struct psc724_spec *spec = container_of(wm, struct psc724_spec, wm8776); in psc724_wm8776_write() local 150 snd_vt1724_write_i2c(spec->ice, 0x34, addr, data); in psc724_wm8776_write() 158 struct psc724_spec *spec = ice->spec; in psc724_set_master_switch() local 160 spec->mute_all = !on; in psc724_set_master_switch() 170 struct psc724_spec *spec = ice->spec; in psc724_get_master_switch() local 172 return !spec->mute_all; in psc724_get_master_switch() 179 struct psc724_spec *spec = ice->spec; in psc724_set_jack_state() local 182 u16 power = spec->wm8776.regs[WM8776_REG_PWRDOWN] & ~WM8776_PWR_HPPD; in psc724_set_jack_state() [all …]
|
| /kernel/linux/linux-5.10/sound/pci/hda/ |
| D | hda_generic.c | 33 * @spec: hda_gen_spec object to initialize 37 int snd_hda_gen_spec_init(struct hda_gen_spec *spec) in snd_hda_gen_spec_init() argument 39 snd_array_init(&spec->kctls, sizeof(struct snd_kcontrol_new), 32); in snd_hda_gen_spec_init() 40 snd_array_init(&spec->paths, sizeof(struct nid_path), 8); in snd_hda_gen_spec_init() 41 snd_array_init(&spec->loopback_list, sizeof(struct hda_amp_list), 8); in snd_hda_gen_spec_init() 42 mutex_init(&spec->pcm_mutex); in snd_hda_gen_spec_init() 49 * @spec: hda_gen_spec object 55 * name string @name to the list in @spec. 59 snd_hda_gen_add_kctl(struct hda_gen_spec *spec, const char *name, in snd_hda_gen_add_kctl() argument 62 struct snd_kcontrol_new *knew = snd_array_new(&spec->kctls); in snd_hda_gen_add_kctl() [all …]
|
| D | patch_hdmi.c | 77 struct hdmi_pcm *pcm; /* pointer to spec->pcm_rec[n] dynamically*/ 186 struct hdmi_spec *spec = codec->spec; in codec_has_acomp() local 187 return spec->use_acomp_notifier; in codec_has_acomp() 229 #define get_pin(spec, idx) \ argument 230 ((struct hdmi_spec_per_pin *)snd_array_elem(&spec->pins, idx)) 231 #define get_cvt(spec, idx) \ argument 232 ((struct hdmi_spec_per_cvt *)snd_array_elem(&spec->cvts, idx)) 234 #define get_hdmi_pcm(spec, idx) (&(spec)->pcm_rec[idx]) argument 236 #define get_pcm_rec(spec, idx) (get_hdmi_pcm(spec, idx)->pcm) argument 241 struct hdmi_spec *spec = codec->spec; in pin_id_to_pin_index() local [all …]
|
| D | patch_analog.c | 43 #define set_beep_amp(spec, nid, idx, dir) \ argument 44 ((spec)->beep_amp = HDA_COMPOSE_AMP_VAL(nid, 1, idx, dir)) /* mono */ 46 #define set_beep_amp(spec, nid, idx, dir) /* NOP */ argument 52 struct ad198x_spec *spec = codec->spec; in create_beep_ctls() local 55 if (!spec->beep_amp) in create_beep_ctls() 64 kctl->private_value = spec->beep_amp; in create_beep_ctls() 133 struct ad198x_spec *spec = codec->spec; in ad_vmaster_eapd_hook() local 135 if (!spec->eapd_nid) in ad_vmaster_eapd_hook() 139 snd_hda_codec_write_cache(codec, spec->eapd_nid, 0, in ad_vmaster_eapd_hook() 177 struct ad198x_spec *spec = codec->spec; in ad198x_parse_auto_config() local [all …]
|
| D | patch_conexant.c | 56 static int set_beep_amp(struct conexant_spec *spec, hda_nid_t nid, in set_beep_amp() argument 63 spec->gen.beep_nid = nid; in set_beep_amp() 65 knew = snd_hda_gen_add_kctl(&spec->gen, NULL, in set_beep_amp() 76 struct conexant_spec *spec = codec->spec; in cx_auto_parse_beep() local 81 return set_beep_amp(spec, nid, 0, HDA_OUTPUT); in cx_auto_parse_beep() 95 struct conexant_spec *spec = codec->spec; in cx_auto_parse_eapd() local 103 spec->eapds[spec->num_eapds++] = nid; in cx_auto_parse_eapd() 104 if (spec->num_eapds >= ARRAY_SIZE(spec->eapds)) in cx_auto_parse_eapd() 114 if (spec->num_eapds > 2) in cx_auto_parse_eapd() 115 spec->dynamic_eapd = 1; in cx_auto_parse_eapd() [all …]
|
| D | patch_via.c | 72 #define VT2002P_COMPATIBLE(spec) \ argument 73 ((spec)->codec_type == VT2002P ||\ 74 (spec)->codec_type == VT1812 ||\ 75 (spec)->codec_type == VT1802) 102 struct via_spec *spec; in via_new_spec() local 104 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in via_new_spec() 105 if (spec == NULL) in via_new_spec() 108 codec->spec = spec; in via_new_spec() 109 snd_hda_gen_spec_init(&spec->gen); in via_new_spec() 110 spec->codec_type = get_codec_type(codec); in via_new_spec() [all …]
|
| D | patch_cirrus.c | 131 struct cs_spec *spec = codec->spec; in cs_vendor_coef_get() local 132 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_get() 134 return snd_hda_codec_read(codec, spec->vendor_nid, 0, in cs_vendor_coef_get() 141 struct cs_spec *spec = codec->spec; in cs_vendor_coef_set() local 142 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_set() 144 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_set() 156 struct cs_spec *spec = codec->spec; in cs_automute() local 159 spec->gen.master_mute = !!(spec->spdif_present && spec->sense_b); in cs_automute() 163 if (spec->gpio_eapd_hp || spec->gpio_eapd_speaker) { in cs_automute() 164 if (spec->gen.automute_speaker) in cs_automute() [all …]
|
| D | patch_ca0132.c | 1148 #define ca0132_quirk(spec) ((spec)->quirk) argument 1149 #define ca0132_use_pci_mmio(spec) ((spec)->use_pci_mmio) argument 1150 #define ca0132_use_alt_functions(spec) ((spec)->use_alt_functions) argument 1151 #define ca0132_use_alt_controls(spec) ((spec)->use_alt_controls) argument 1153 #define ca0132_quirk(spec) ({ (void)(spec); QUIRK_NONE; }) argument 1154 #define ca0132_use_alt_functions(spec) ({ (void)(spec); false; }) argument 1155 #define ca0132_use_pci_mmio(spec) ({ (void)(spec); false; }) argument 1156 #define ca0132_use_alt_controls(spec) ({ (void)(spec); false; }) argument 1535 struct ca0132_spec *spec = codec->spec; in chipio_write_address() local 1538 if (spec->curr_chip_addx == chip_addx) in chipio_write_address() [all …]
|
| /kernel/linux/linux-6.6/sound/pci/hda/ |
| D | hda_generic.c | 33 * @spec: hda_gen_spec object to initialize 37 int snd_hda_gen_spec_init(struct hda_gen_spec *spec) in snd_hda_gen_spec_init() argument 39 snd_array_init(&spec->kctls, sizeof(struct snd_kcontrol_new), 32); in snd_hda_gen_spec_init() 40 snd_array_init(&spec->paths, sizeof(struct nid_path), 8); in snd_hda_gen_spec_init() 41 snd_array_init(&spec->loopback_list, sizeof(struct hda_amp_list), 8); in snd_hda_gen_spec_init() 42 mutex_init(&spec->pcm_mutex); in snd_hda_gen_spec_init() 49 * @spec: hda_gen_spec object 55 * name string @name to the list in @spec. 59 snd_hda_gen_add_kctl(struct hda_gen_spec *spec, const char *name, in snd_hda_gen_add_kctl() argument 62 struct snd_kcontrol_new *knew = snd_array_new(&spec->kctls); in snd_hda_gen_add_kctl() [all …]
|
| D | patch_cs8409.c | 24 struct cs8409_spec *spec = codec->spec; in cs8409_parse_auto_config() local 28 err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, 0); in cs8409_parse_auto_config() 32 err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); in cs8409_parse_auto_config() 37 if (spec->gen.dyn_adc_switch) { in cs8409_parse_auto_config() 40 for (i = 0; i < spec->gen.input_mux.num_items; i++) { in cs8409_parse_auto_config() 41 int idx = spec->gen.dyn_adc_idx[i]; in cs8409_parse_auto_config() 45 snd_hda_gen_fix_pin_power(codec, spec->gen.adc_nids[idx]); in cs8409_parse_auto_config() 57 struct cs8409_spec *spec; in cs8409_alloc_spec() local 59 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in cs8409_alloc_spec() 60 if (!spec) in cs8409_alloc_spec() [all …]
|
| D | patch_hdmi.c | 82 struct hdmi_pcm *pcm; /* pointer to spec->pcm_rec[n] dynamically*/ 199 struct hdmi_spec *spec = codec->spec; in codec_has_acomp() local 200 return spec->use_acomp_notifier; in codec_has_acomp() 242 #define get_pin(spec, idx) \ argument 243 ((struct hdmi_spec_per_pin *)snd_array_elem(&spec->pins, idx)) 244 #define get_cvt(spec, idx) \ argument 245 ((struct hdmi_spec_per_cvt *)snd_array_elem(&spec->cvts, idx)) 247 #define get_hdmi_pcm(spec, idx) (&(spec)->pcm_rec[idx]) argument 249 #define get_pcm_rec(spec, idx) (get_hdmi_pcm(spec, idx)->pcm) argument 254 struct hdmi_spec *spec = codec->spec; in pin_id_to_pin_index() local [all …]
|
| D | patch_analog.c | 43 #define set_beep_amp(spec, nid, idx, dir) \ argument 44 ((spec)->beep_amp = HDA_COMPOSE_AMP_VAL(nid, 1, idx, dir)) /* mono */ 46 #define set_beep_amp(spec, nid, idx, dir) /* NOP */ argument 52 struct ad198x_spec *spec = codec->spec; in create_beep_ctls() local 55 if (!spec->beep_amp) in create_beep_ctls() 64 kctl->private_value = spec->beep_amp; in create_beep_ctls() 127 struct ad198x_spec *spec = codec->spec; in ad_vmaster_eapd_hook() local 129 if (!spec->eapd_nid) in ad_vmaster_eapd_hook() 133 snd_hda_codec_write_cache(codec, spec->eapd_nid, 0, in ad_vmaster_eapd_hook() 170 struct ad198x_spec *spec = codec->spec; in ad198x_parse_auto_config() local [all …]
|
| D | patch_via.c | 72 #define VT2002P_COMPATIBLE(spec) \ argument 73 ((spec)->codec_type == VT2002P ||\ 74 (spec)->codec_type == VT1812 ||\ 75 (spec)->codec_type == VT1802) 102 struct via_spec *spec; in via_new_spec() local 104 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in via_new_spec() 105 if (spec == NULL) in via_new_spec() 108 codec->spec = spec; in via_new_spec() 109 snd_hda_gen_spec_init(&spec->gen); in via_new_spec() 110 spec->codec_type = get_codec_type(codec); in via_new_spec() [all …]
|
| D | patch_cirrus.c | 132 struct cs_spec *spec = codec->spec; in cs_vendor_coef_get() local 134 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_get() 136 return snd_hda_codec_read(codec, spec->vendor_nid, 0, in cs_vendor_coef_get() 143 struct cs_spec *spec = codec->spec; in cs_vendor_coef_set() local 145 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_set() 147 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_set() 159 struct cs_spec *spec = codec->spec; in cs_automute() local 162 spec->gen.master_mute = !!(spec->spdif_present && spec->sense_b); in cs_automute() 166 if (spec->gpio_eapd_hp || spec->gpio_eapd_speaker) { in cs_automute() 167 if (spec->gen.automute_speaker) in cs_automute() [all …]
|
| D | patch_conexant.c | 56 static int set_beep_amp(struct conexant_spec *spec, hda_nid_t nid, in set_beep_amp() argument 63 spec->gen.beep_nid = nid; in set_beep_amp() 65 knew = snd_hda_gen_add_kctl(&spec->gen, NULL, in set_beep_amp() 76 struct conexant_spec *spec = codec->spec; in cx_auto_parse_beep() local 81 return set_beep_amp(spec, nid, 0, HDA_OUTPUT); in cx_auto_parse_beep() 95 struct conexant_spec *spec = codec->spec; in cx_auto_parse_eapd() local 103 spec->eapds[spec->num_eapds++] = nid; in cx_auto_parse_eapd() 104 if (spec->num_eapds >= ARRAY_SIZE(spec->eapds)) in cx_auto_parse_eapd() 114 if (spec->num_eapds > 2) in cx_auto_parse_eapd() 115 spec->dynamic_eapd = 1; in cx_auto_parse_eapd() [all …]
|
| /kernel/linux/linux-6.6/arch/powerpc/include/asm/ |
| D | cpu_setup.h | 8 void __setup_cpu_power7(unsigned long offset, struct cpu_spec *spec); 9 void __setup_cpu_power8(unsigned long offset, struct cpu_spec *spec); 10 void __setup_cpu_power9(unsigned long offset, struct cpu_spec *spec); 11 void __setup_cpu_power10(unsigned long offset, struct cpu_spec *spec); 17 void __setup_cpu_e500v1(unsigned long offset, struct cpu_spec *spec); 18 void __setup_cpu_e500v2(unsigned long offset, struct cpu_spec *spec); 19 void __setup_cpu_e500mc(unsigned long offset, struct cpu_spec *spec); 20 void __setup_cpu_440ep(unsigned long offset, struct cpu_spec *spec); 21 void __setup_cpu_440epx(unsigned long offset, struct cpu_spec *spec); 22 void __setup_cpu_440gx(unsigned long offset, struct cpu_spec *spec); [all …]
|
| /kernel/linux/linux-5.10/drivers/video/fbdev/via/ |
| D | via_aux_edid.c | 20 struct fb_monspecs *spec = drv->data; in query_edid() local 24 if (spec) { in query_edid() 25 fb_destroy_modedb(spec->modedb); in query_edid() 27 spec = kmalloc(sizeof(*spec), GFP_KERNEL); in query_edid() 28 if (!spec) in query_edid() 32 spec->version = spec->revision = 0; in query_edid() 34 fb_edid_to_monspecs(edid, spec); in query_edid() 35 valid = spec->version || spec->revision; in query_edid() 39 kfree(spec); in query_edid() 40 spec = NULL; in query_edid() [all …]
|
| /kernel/linux/linux-6.6/drivers/video/fbdev/via/ |
| D | via_aux_edid.c | 20 struct fb_monspecs *spec = drv->data; in query_edid() local 24 if (spec) { in query_edid() 25 fb_destroy_modedb(spec->modedb); in query_edid() 27 spec = kmalloc(sizeof(*spec), GFP_KERNEL); in query_edid() 28 if (!spec) in query_edid() 32 spec->version = spec->revision = 0; in query_edid() 34 fb_edid_to_monspecs(edid, spec); in query_edid() 35 valid = spec->version || spec->revision; in query_edid() 39 kfree(spec); in query_edid() 40 spec = NULL; in query_edid() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/sfc/ |
| D | filter.h | 178 static inline void efx_filter_init_rx(struct efx_filter_spec *spec, in efx_filter_init_rx() argument 183 memset(spec, 0, sizeof(*spec)); in efx_filter_init_rx() 184 spec->priority = priority; in efx_filter_init_rx() 185 spec->flags = EFX_FILTER_FLAG_RX | flags; in efx_filter_init_rx() 186 spec->rss_context = 0; in efx_filter_init_rx() 187 spec->dmaq_id = rxq_id; in efx_filter_init_rx() 190 static inline void efx_filter_init_tx(struct efx_filter_spec *spec, in efx_filter_init_tx() argument 193 memset(spec, 0, sizeof(*spec)); in efx_filter_init_tx() 194 spec->priority = EFX_FILTER_PRI_REQUIRED; in efx_filter_init_tx() 195 spec->flags = EFX_FILTER_FLAG_TX; in efx_filter_init_tx() [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
| D | test_loader.c | 88 static void free_test_spec(struct test_spec *spec) in free_test_spec() argument 90 free(spec->priv.name); in free_test_spec() 91 free(spec->unpriv.name); in free_test_spec() 92 free(spec->priv.expect_msgs); in free_test_spec() 93 free(spec->unpriv.expect_msgs); in free_test_spec() 95 spec->priv.name = NULL; in free_test_spec() 96 spec->unpriv.name = NULL; in free_test_spec() 97 spec->priv.expect_msgs = NULL; in free_test_spec() 98 spec->unpriv.expect_msgs = NULL; in free_test_spec() 163 struct test_spec *spec) in parse_test_spec() argument [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/sfc/siena/ |
| D | filter.h | 178 static inline void efx_filter_init_rx(struct efx_filter_spec *spec, in efx_filter_init_rx() argument 183 memset(spec, 0, sizeof(*spec)); in efx_filter_init_rx() 184 spec->priority = priority; in efx_filter_init_rx() 185 spec->flags = EFX_FILTER_FLAG_RX | flags; in efx_filter_init_rx() 186 spec->rss_context = 0; in efx_filter_init_rx() 187 spec->dmaq_id = rxq_id; in efx_filter_init_rx() 190 static inline void efx_filter_init_tx(struct efx_filter_spec *spec, in efx_filter_init_tx() argument 193 memset(spec, 0, sizeof(*spec)); in efx_filter_init_tx() 194 spec->priority = EFX_FILTER_PRI_REQUIRED; in efx_filter_init_tx() 195 spec->flags = EFX_FILTER_FLAG_TX; in efx_filter_init_tx() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/sfc/ |
| D | filter.h | 179 static inline void efx_filter_init_rx(struct efx_filter_spec *spec, in efx_filter_init_rx() argument 184 memset(spec, 0, sizeof(*spec)); in efx_filter_init_rx() 185 spec->priority = priority; in efx_filter_init_rx() 186 spec->flags = EFX_FILTER_FLAG_RX | flags; in efx_filter_init_rx() 187 spec->rss_context = 0; in efx_filter_init_rx() 188 spec->dmaq_id = rxq_id; in efx_filter_init_rx() 191 static inline void efx_filter_init_tx(struct efx_filter_spec *spec, in efx_filter_init_tx() argument 194 memset(spec, 0, sizeof(*spec)); in efx_filter_init_tx() 195 spec->priority = EFX_FILTER_PRI_REQUIRED; in efx_filter_init_tx() 196 spec->flags = EFX_FILTER_FLAG_TX; in efx_filter_init_tx() [all …]
|