Home
last modified time | relevance | path

Searched refs:hw_config (Results 1 – 45 of 45) sorted by relevance

/linux-4.1.27/sound/oss/
Dtrix.c75 static int trix_set_wss_port(struct address_info *hw_config) in trix_set_wss_port() argument
96 switch (hw_config->io_base) in trix_set_wss_port()
123 static int __init init_trix_wss(struct address_info *hw_config) in init_trix_wss() argument
129 int config_port = hw_config->io_base + 0; in init_trix_wss()
130 int dma1 = hw_config->dma, dma2 = hw_config->dma2; in init_trix_wss()
135 switch(hw_config->irq) { in init_trix_wss()
149 printk(KERN_ERR "AudioTrix: Bad WSS IRQ %d\n", hw_config->irq); in init_trix_wss()
179 ports = request_region(hw_config->io_base + 4, 4, "ad1848"); in init_trix_wss()
181 printk(KERN_ERR "AudioTrix: MSS I/O port conflict (%x)\n", hw_config->io_base); in init_trix_wss()
185 if (!request_region(hw_config->io_base, 4, "MSS config")) { in init_trix_wss()
[all …]
Dsb_common.c296 static void sb16_set_mpu_port(sb_devc * devc, struct address_info *hw_config) in sb16_set_mpu_port() argument
303 switch (hw_config->io_base) in sb16_set_mpu_port()
315 printk(KERN_ERR "SB16: Invalid MIDI I/O port %x\n", hw_config->io_base); in sb16_set_mpu_port()
345 static void relocate_Jazz16(sb_devc * devc, struct address_info *hw_config) in relocate_Jazz16() argument
350 if (jazz16_base != 0 && jazz16_base != hw_config->io_base) in relocate_Jazz16()
353 switch (hw_config->io_base) in relocate_Jazz16()
368 jazz16_base = hw_config->io_base; in relocate_Jazz16()
380 static int init_Jazz16(sb_devc * devc, struct address_info *hw_config) in init_Jazz16() argument
397 if (hw_config->irq < 1 || hw_config->irq > 15 || jazz_irq_bits[hw_config->irq] == 0) in init_Jazz16()
399 printk(KERN_ERR "Jazz16: Invalid interrupt (IRQ%d)\n", hw_config->irq); in init_Jazz16()
[all …]
Dpas2_card.c135 static int __init config_pas_hw(struct address_info *hw_config) in config_pas_hw() argument
140 pas_irq = hw_config->irq; in config_pas_hw()
162 hw_config->irq=-1; in config_pas_hw()
173 hw_config->irq=-1; in config_pas_hw()
178 if (request_irq(pas_irq, pasintr, 0, "PAS16",hw_config) < 0) { in config_pas_hw()
180 hw_config->irq=-1; in config_pas_hw()
186 if (hw_config->dma < 0 || hw_config->dma > 7) in config_pas_hw()
188 printk(KERN_ERR "PAS16: Invalid DMA selection %d", hw_config->dma); in config_pas_hw()
189 hw_config->dma=-1; in config_pas_hw()
194 pas_write(dma_bits[hw_config->dma], 0xF389); in config_pas_hw()
[all …]
Dkahlua.c57 struct address_info *hw_config; in probe_one() local
143 hw_config = kzalloc(sizeof(struct address_info), GFP_KERNEL); in probe_one()
144 if(hw_config == NULL) in probe_one()
150 pci_set_drvdata(pdev, hw_config); in probe_one()
152 hw_config->io_base = io; in probe_one()
153 hw_config->irq = irq; in probe_one()
154 hw_config->dma = dma8; in probe_one()
155 hw_config->dma2 = dma16; in probe_one()
156 hw_config->name = "Cyrix XpressAudio"; in probe_one()
157 hw_config->driver_use_1 = SB_NO_MIDI | SB_PCI_IRQ; in probe_one()
[all …]
Dpss.c177 static int __init probe_pss(struct address_info *hw_config) in probe_pss() argument
182 devc->base = hw_config->io_base; in probe_pss()
183 irq = devc->irq = hw_config->irq; in probe_pss()
184 dma = devc->dma = hw_config->dma; in probe_pss()
185 devc->osp = hw_config->osp; in probe_pss()
687 static int __init attach_pss(struct address_info *hw_config) in attach_pss() argument
692 devc->base = hw_config->io_base; in attach_pss()
693 devc->irq = hw_config->irq; in attach_pss()
694 devc->dma = hw_config->dma; in attach_pss()
695 devc->osp = hw_config->osp; in attach_pss()
[all …]
Dvidc.c439 static void __init attach_vidc(struct address_info *hw_config) in attach_vidc() argument
444 sprintf(name, "VIDC %d-bit sound", hw_config->card_subtype); in attach_vidc()
445 conf_printf(name, hw_config); in attach_vidc()
451 NULL, hw_config->dma, hw_config->dma2); in attach_vidc()
480 if (sound_alloc_dma(hw_config->dma, hw_config->name)) { in attach_vidc()
481 printk(KERN_ERR "%s: DMA %d is in use\n", name, hw_config->dma); in attach_vidc()
485 if (request_irq(hw_config->irq, vidc_sound_dma_irq, 0, in attach_vidc()
486 hw_config->name, &dma_start)) { in attach_vidc()
487 printk(KERN_ERR "%s: IRQ %d is in use\n", name, hw_config->irq); in attach_vidc()
496 sound_free_dma(hw_config->dma); in attach_vidc()
[all …]
Duart6850.c249 static void __init attach_uart6850(struct address_info *hw_config) in attach_uart6850() argument
262 uart6850_base = hw_config->io_base; in attach_uart6850()
263 uart6850_osp = hw_config->osp; in attach_uart6850()
264 uart6850_irq = hw_config->irq; in attach_uart6850()
275 conf_printf("6850 Midi Interface", hw_config); in attach_uart6850()
278 hw_config->slots[4] = my_dev; in attach_uart6850()
291 static int __init probe_uart6850(struct address_info *hw_config) in probe_uart6850() argument
295 uart6850_osp = hw_config->osp; in probe_uart6850()
296 uart6850_base = hw_config->io_base; in probe_uart6850()
297 uart6850_irq = hw_config->irq; in probe_uart6850()
[all …]
Duart401.c288 int probe_uart401(struct address_info *hw_config, struct module *owner) in probe_uart401() argument
298 hw_config->slots[4] = -1; in probe_uart401()
300 if (!request_region(hw_config->io_base, 4, "MPU-401 UART")) { in probe_uart401()
301 printk(KERN_INFO "uart401: could not request_region(%d, 4)\n", hw_config->io_base); in probe_uart401()
311 devc->base = hw_config->io_base; in probe_uart401()
312 devc->irq = hw_config->irq; in probe_uart401()
313 devc->osp = hw_config->osp; in probe_uart401()
328 if (hw_config->name) in probe_uart401()
329 name = hw_config->name; in probe_uart401()
349 conf_printf(name, hw_config); in probe_uart401()
[all …]
Dad1848.c2279 static int init_deskpro_m(struct address_info *hw_config) in init_deskpro_m() argument
2307 static int init_deskpro(struct address_info *hw_config) in init_deskpro() argument
2365 switch (hw_config->io_base) in init_deskpro()
2380 DDB(printk("init_deskpro: Invalid MSS port %x\n", hw_config->io_base)); in init_deskpro()
2505 int probe_ms_sound(struct address_info *hw_config, struct resource *ports) in probe_ms_sound() argument
2509 DDB(printk("Entered probe_ms_sound(%x, %d)\n", hw_config->io_base, hw_config->card_subtype)); in probe_ms_sound()
2511 if (hw_config->card_subtype == 1) /* Has no IRQ/DMA registers */ in probe_ms_sound()
2514 return ad1848_detect(ports, NULL, hw_config->osp); in probe_ms_sound()
2517 if (deskpro_xl && hw_config->card_subtype == 2) /* Compaq Deskpro XL */ in probe_ms_sound()
2519 if (!init_deskpro(hw_config)) in probe_ms_sound()
[all …]
Dmpu401.h3 int probe_uart401 (struct address_info *hw_config, struct module *owner);
4 void unload_uart401 (struct address_info *hw_config);
9 int probe_mpu401(struct address_info *hw_config, struct resource *ports);
10 int attach_mpu401(struct address_info * hw_config, struct module *owner);
Dmpu401.c946 int attach_mpu401(struct address_info *hw_config, struct module *owner) in attach_mpu401() argument
954 hw_config->slots[1] = -1; in attach_mpu401()
963 devc->base = hw_config->io_base; in attach_mpu401()
964 devc->osp = hw_config->osp; in attach_mpu401()
965 devc->irq = hw_config->irq; in attach_mpu401()
975 devc->shared_irq = hw_config->always_detect; in attach_mpu401()
984 if (!hw_config->always_detect) in attach_mpu401()
996 hw_config) < 0) in attach_mpu401()
1072 if (hw_config->name) in attach_mpu401()
1073 sprintf(mpu_synth_info[m].name, "%s (MPU401)", hw_config->name); in attach_mpu401()
[all …]
Dsb_ess.h8 (sb_devc *devc, struct address_info *hw_config);
13 (sb_devc *devc, struct address_info *hw_config);
18 (sb_devc *devc, struct address_info *hw_config);
Dsb.h163 int sb_dsp_detect (struct address_info *hw_config, int pci, int pciio, struct sb_module_options *sb…
164 int sb_dsp_init (struct address_info *hw_config, struct module *owner);
165 void sb_dsp_unload(struct address_info *hw_config, int sbmpu);
181 int probe_sbmpu (struct address_info *hw_config, struct module *owner);
182 void unload_sbmpu (struct address_info *hw_config);
Dsoundcard.c692 void conf_printf(char *name, struct address_info *hw_config) in conf_printf() argument
697 printk("<%s> at 0x%03x", name, hw_config->io_base); in conf_printf()
699 if (hw_config->irq) in conf_printf()
700 printk(" irq %d", (hw_config->irq > 0) ? hw_config->irq : -hw_config->irq); in conf_printf()
702 if (hw_config->dma != -1 || hw_config->dma2 != -1) in conf_printf()
704 printk(" dma %d", hw_config->dma); in conf_printf()
705 if (hw_config->dma2 != -1) in conf_printf()
706 printk(",%d", hw_config->dma2); in conf_printf()
Dad1848.h21 void attach_ms_sound(struct address_info * hw_config, struct resource *ports, struct module * owner…
23 int probe_ms_sound(struct address_info *hw_config, struct resource *ports);
Dvidc.h60 extern void vidc_synth_init(struct address_info *hw_config);
61 extern void vidc_synth_exit(struct address_info *hw_config);
Dv_midi.c175 static void __init attach_v_midi (struct address_info *hw_config) in attach_v_midi() argument
258 static inline int __init probe_v_midi(struct address_info *hw_config) in probe_v_midi() argument
264 static void __exit unload_v_midi(struct address_info *hw_config) in unload_v_midi() argument
Dpas2_pcm.c373 void __init pas_pcm_init(struct address_info *hw_config) in pas_pcm_init() argument
388 hw_config->dma, in pas_pcm_init()
389 hw_config->dma)) < 0) in pas_pcm_init()
Dwaveartist.c1352 static int __init probe_waveartist(struct address_info *hw_config) in probe_waveartist() argument
1361 if (!request_region(hw_config->io_base, 15, hw_config->name)) { in probe_waveartist()
1366 if (hw_config->irq > 15 || hw_config->irq < 0) { in probe_waveartist()
1367 release_region(hw_config->io_base, 15); in probe_waveartist()
1369 hw_config->irq); in probe_waveartist()
1373 if (hw_config->dma != 3) { in probe_waveartist()
1374 release_region(hw_config->io_base, 15); in probe_waveartist()
1376 hw_config->dma); in probe_waveartist()
1380 hw_config->name = "WaveArtist"; in probe_waveartist()
1381 devc->hw = *hw_config; in probe_waveartist()
Dpas2.h10 void pas_pcm_init(struct address_info *hw_config);
Ddev_table.h53 void (*attach) (struct address_info *hw_config);
54 int (*probe) (struct address_info *hw_config);
55 void (*unload) (struct address_info *hw_config);
Dsb_ess.c1013 int ess_init(sb_devc * devc, struct address_info *hw_config) argument
1042 hw_config->name = name;
1209 hw_config->name = name;
1302 int ess_dsp_init (sb_devc *devc, struct address_info *hw_config) argument
1321 if (hw_config->dma2 != -1) {
1322 devc->dma16 = hw_config->dma2;
1778 int ess_midi_init(sb_devc * devc, struct address_info *hw_config) argument
1788 tmp = (hw_config->io_base & 0x0f0) >> 4;
1800 switch (abs(hw_config->irq)) {
Dsound_calls.h79 void conf_printf(char *name, struct address_info *hw_config);
/linux-4.1.27/drivers/nfc/pn544/
Dpn544.c180 static struct hw_config { in pn544_hci_ready() struct
183 } hw_config[] = { in pn544_hci_ready() local
251 struct hw_config *p = hw_config; in pn544_hci_ready()
252 int count = ARRAY_SIZE(hw_config); in pn544_hci_ready()
/linux-4.1.27/arch/x86/kernel/cpu/
Dperf_event_intel_uncore_snbep.c748 .hw_config = snbep_cbox_hw_config,
858 .hw_config = snbep_pcu_hw_config,
941 .hw_config = snbep_qpi_hw_config,
1421 .hw_config = ivbep_cbox_hw_config,
1444 .hw_config = snbep_pcu_hw_config,
1557 .hw_config = snbep_qpi_hw_config,
1743 .hw_config = hswep_ubox_hw_config,
1908 .hw_config = hswep_cbox_hw_config,
1998 .hw_config = hswep_pcu_hw_config,
Dperf_event_p6.c207 .hw_config = x86_pmu_hw_config,
Dperf_event_intel_uncore_nhmex.c412 .hw_config = nhmex_bbox_hw_config,
489 .hw_config = nhmex_sbox_hw_config,
915 .hw_config = nhmex_mbox_hw_config,
1178 .hw_config = nhmex_rbox_hw_config,
Dperf_event_knc.c294 .hw_config = x86_pmu_hw_config,
Dperf_event_intel_uncore.h69 int (*hw_config)(struct intel_uncore_box *, struct perf_event *); member
Dperf_event_amd.c629 .hw_config = amd_pmu_hw_config,
Dperf_event_intel_uncore_snb.c434 .hw_config = snb_uncore_imc_hw_config,
Dperf_event_intel_uncore.c647 if (pmu->type->ops->hw_config) { in uncore_pmu_event_init()
648 ret = pmu->type->ops->hw_config(box, event); in uncore_pmu_event_init()
Dperf_event_intel.c2710 .hw_config = x86_pmu_hw_config,
2748 .hw_config = intel_pmu_hw_config,
3250 x86_pmu.hw_config = hsw_hw_config; in intel_pmu_init()
3285 x86_pmu.hw_config = hsw_hw_config; in intel_pmu_init()
Dperf_event.h503 int (*hw_config)(struct perf_event *event); member
Dperf_event_p4.c1324 .hw_config = p4_hw_config,
Dperf_event.c570 return x86_pmu.hw_config(event); in __x86_pmu_event_init()
/linux-4.1.27/drivers/misc/mei/
Dmei_dev.h299 void (*hw_config)(struct mei_device *dev); member
718 dev->ops->hw_config(dev); in mei_hw_config()
Dhw-me.c874 .hw_config = mei_me_hw_config,
Dhw-txe.c1150 .hw_config = mei_txe_hw_config,
/linux-4.1.27/include/uapi/linux/
Dhdreg.h568 unsigned short hw_config; /* hardware config (word 93) member
/linux-4.1.27/drivers/net/wireless/hostap/
Dhostap_wlan.h591 int (*hw_config)(struct net_device *dev, int initial); member
Dhostap_hw.c3131 local->func->hw_config = prism2_hw_config; in prism2_init_local_data()
Dhostap_ioctl.c2953 local->func->hw_config(dev, 0); in prism2_ioctl_priv_reset()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x.h1067 u32 hw_config; member
Dbnx2x_main.c10786 bp->common.hw_config = SHMEM_RD(bp, dev_info.shared_hw_config.config); in bnx2x_get_common_hwinfo()
10787 BNX2X_DEV_INFO("hw_config 0x%08x\n", bp->common.hw_config); in bnx2x_get_common_hwinfo()
10789 bp->link_params.hw_led_mode = ((bp->common.hw_config & in bnx2x_get_common_hwinfo()