Home
last modified time | relevance | path

Searched refs:pnp_dev (Results 1 – 25 of 72) sorted by relevance

123

/linux/drivers/pnp/
H A Ddriver.c45 struct pnp_dev *dev) in match_device()
60 int pnp_device_attach(struct pnp_dev *pnp_dev) in pnp_device_attach() argument
63 if (pnp_dev->status != PNP_READY) { in pnp_device_attach()
67 pnp_dev->status = PNP_ATTACHED; in pnp_device_attach()
73 void pnp_device_detach(struct pnp_dev *pnp_dev) in pnp_device_detach() argument
76 if (pnp_dev->status == PNP_ATTACHED) in pnp_device_detach()
77 pnp_dev->status = PNP_READY; in pnp_device_detach()
86 struct pnp_dev *pnp_dev; in pnp_device_probe() local
88 pnp_dev = to_pnp_dev(dev); in pnp_device_probe()
91 error = pnp_device_attach(pnp_dev); in pnp_device_probe()
[all …]
H A Dresource.c36 static struct pnp_option *pnp_build_option(struct pnp_dev *dev, unsigned long type, in pnp_build_option()
52 int pnp_register_irq_resource(struct pnp_dev *dev, unsigned int option_flags, in pnp_register_irq_resource()
80 int pnp_register_dma_resource(struct pnp_dev *dev, unsigned int option_flags, in pnp_register_dma_resource()
98 int pnp_register_port_resource(struct pnp_dev *dev, unsigned int option_flags, in pnp_register_port_resource()
121 int pnp_register_mem_resource(struct pnp_dev *dev, unsigned int option_flags, in pnp_register_mem_resource()
144 void pnp_free_options(struct pnp_dev *dev) in pnp_free_options()
167 int pnp_check_port(struct pnp_dev *dev, struct resource *res) in pnp_check_port()
170 struct pnp_dev *tdev; in pnp_check_port()
230 int pnp_check_mem(struct pnp_dev *dev, struct resource *res) in pnp_check_mem()
233 struct pnp_dev *tdev; in pnp_check_mem()
[all …]
H A Dcore.c91 static void pnp_free_ids(struct pnp_dev *dev) in pnp_free_ids()
110 void pnp_free_resources(struct pnp_dev *dev) in pnp_free_resources()
121 struct pnp_dev *dev = to_pnp_dev(dmdev); in pnp_release_device()
129 struct pnp_dev *pnp_alloc_dev(struct pnp_protocol *protocol, int id, in pnp_alloc_dev()
132 struct pnp_dev *dev; in pnp_alloc_dev()
135 dev = kzalloc(sizeof(struct pnp_dev), GFP_KERNEL); in pnp_alloc_dev()
162 static void pnp_delist_device(struct pnp_dev *dev) in pnp_delist_device()
170 int __pnp_add_device(struct pnp_dev *dev) in __pnp_add_device()
200 int pnp_add_device(struct pnp_dev *dev) in pnp_add_device()
223 void __pnp_remove_device(struct pnp_dev *dev) in __pnp_remove_device()
H A Dcard.c30 struct pnp_dev *dev; in match_card()
53 static void card_remove(struct pnp_dev *dev) in card_remove()
58 static void card_remove_first(struct pnp_dev *dev) in card_remove_first()
75 struct pnp_dev *dev; in card_probe()
258 struct pnp_dev *dev = card_to_pnp_dev(pos); in pnp_add_card()
286 struct pnp_dev *dev = card_to_pnp_dev(pos); in pnp_remove_card()
296 int pnp_add_card_device(struct pnp_card *card, struct pnp_dev *dev) in pnp_add_card_device()
313 void pnp_remove_card_device(struct pnp_dev *dev) in pnp_remove_card_device()
328 struct pnp_dev *pnp_request_card_device(struct pnp_card_link *clink, in pnp_request_card_device()
329 const char *id, struct pnp_dev *from) in pnp_request_card_device()
[all …]
H A Dmanager.c22 static struct resource *pnp_find_resource(struct pnp_dev *dev, in pnp_find_resource()
38 static int pnp_assign_port(struct pnp_dev *dev, struct pnp_port *rule, int idx) in pnp_assign_port()
81 static int pnp_assign_mem(struct pnp_dev *dev, struct pnp_mem *rule, int idx) in pnp_assign_mem()
132 static int pnp_assign_irq(struct pnp_dev *dev, struct pnp_irq *rule, int idx) in pnp_assign_irq()
191 static int pnp_assign_dma(struct pnp_dev *dev, struct pnp_dma *rule, int idx) in pnp_assign_dma()
236 void pnp_init_resources(struct pnp_dev *dev) in pnp_init_resources()
241 static void pnp_clean_resource_table(struct pnp_dev *dev) in pnp_clean_resource_table()
256 static int pnp_assign_resources(struct pnp_dev *dev, int set) in pnp_assign_resources()
308 int pnp_auto_config_dev(struct pnp_dev *dev) in pnp_auto_config_dev()
337 int pnp_start_dev(struct pnp_dev *dev) in pnp_start_dev()
[all …]
H A Dquirks.c26 static void quirk_awe32_add_ports(struct pnp_dev *dev, in quirk_awe32_add_ports()
50 static void quirk_awe32_resources(struct pnp_dev *dev) in quirk_awe32_resources()
69 static void quirk_cmi8330_resources(struct pnp_dev *dev) in quirk_cmi8330_resources()
103 static void quirk_sb16audio_resources(struct pnp_dev *dev) in quirk_sb16audio_resources()
138 static struct pnp_option *pnp_clone_dependent_set(struct pnp_dev *dev, in pnp_clone_dependent_set()
180 static void quirk_add_irq_optional_dependent_sets(struct pnp_dev *dev) in quirk_add_irq_optional_dependent_sets()
208 static void quirk_ad1815_mpu_resources(struct pnp_dev *dev) in quirk_ad1815_mpu_resources()
229 static void quirk_system_pci_resources(struct pnp_dev *dev) in quirk_system_pci_resources()
295 static void quirk_amd_mmconfig_area(struct pnp_dev *dev) in quirk_amd_mmconfig_area()
353 static void quirk_intel_mch(struct pnp_dev *dev) in quirk_intel_mch()
[all …]
H A Dsystem.c26 static void reserve_range(struct pnp_dev *dev, struct resource *r, int port) in reserve_range()
56 static void reserve_resources_of_dev(struct pnp_dev *dev) in reserve_resources_of_dev()
90 static int system_pnp_probe(struct pnp_dev *dev, in system_pnp_probe()
/linux/include/linux/
H A Dpnp.h21 struct pnp_dev;
27 struct resource *pnp_get_resource(struct pnp_dev *dev, unsigned long type,
30 static inline struct resource *pnp_get_resource(struct pnp_dev *dev, in pnp_get_resource()
59 static inline resource_size_t pnp_port_start(struct pnp_dev *dev, in pnp_port_start()
69 static inline resource_size_t pnp_port_end(struct pnp_dev *dev, in pnp_port_end()
79 static inline unsigned long pnp_port_flags(struct pnp_dev *dev, in pnp_port_flags()
89 static inline int pnp_port_valid(struct pnp_dev *dev, unsigned int bar) in pnp_port_valid()
94 static inline resource_size_t pnp_port_len(struct pnp_dev *dev, in pnp_port_len()
105 static inline resource_size_t pnp_mem_start(struct pnp_dev *dev, in pnp_mem_start()
115 static inline resource_size_t pnp_mem_end(struct pnp_dev *dev, in pnp_mem_end()
[all …]
H A Dapple-gmux.h98 static inline bool apple_gmux_detect(struct pnp_dev *pnp_dev, enum apple_gmux_type *type_ret) in apple_gmux_detect() argument
107 if (!pnp_dev) { in apple_gmux_detect()
117 pnp_dev = to_pnp_dev(dev); in apple_gmux_detect()
120 res = pnp_get_resource(pnp_dev, IORESOURCE_IO, 0); in apple_gmux_detect()
136 res = pnp_get_resource(pnp_dev, IORESOURCE_MEM, 0); in apple_gmux_detect()
173 static inline bool apple_gmux_detect(struct pnp_dev *pnp_dev, bool *indexed_ret) in apple_gmux_detect() argument
H A Disapnp.h78 struct pnp_dev *pnp_find_dev(struct pnp_card *card,
81 struct pnp_dev *from);
92 static inline struct pnp_dev *pnp_find_dev(struct pnp_card *card, in pnp_find_dev()
95 struct pnp_dev *from) { return NULL; } in pnp_find_dev()
/linux/drivers/pnp/pnpbios/
H A Drsparser.c56 static void pnpbios_parse_allocated_ioresource(struct pnp_dev *dev, in pnpbios_parse_allocated_ioresource()
68 static void pnpbios_parse_allocated_memresource(struct pnp_dev *dev, in pnpbios_parse_allocated_memresource()
80 static unsigned char *pnpbios_parse_allocated_resource_data(struct pnp_dev *dev, in pnpbios_parse_allocated_resource_data()
217 static __init void pnpbios_parse_mem_option(struct pnp_dev *dev, in pnpbios_parse_mem_option()
233 static __init void pnpbios_parse_mem32_option(struct pnp_dev *dev, in pnpbios_parse_mem32_option()
249 static __init void pnpbios_parse_fixed_mem32_option(struct pnp_dev *dev, in pnpbios_parse_fixed_mem32_option()
262 static __init void pnpbios_parse_irq_option(struct pnp_dev *dev, in pnpbios_parse_irq_option()
281 static __init void pnpbios_parse_dma_option(struct pnp_dev *dev, in pnpbios_parse_dma_option()
288 static __init void pnpbios_parse_port_option(struct pnp_dev *dev, in pnpbios_parse_port_option()
304 static __init void pnpbios_parse_fixed_port_option(struct pnp_dev *dev, in pnpbios_parse_fixed_port_option()
[all …]
H A Dpnpbios.h153 extern int pnpbios_parse_data_stream(struct pnp_dev *dev, struct pnp_bios_node * node);
154 extern int pnpbios_read_resources_from_node(struct pnp_dev *dev, struct pnp_bios_node *node);
155 extern int pnpbios_write_resources_to_node(struct pnp_dev *dev, struct pnp_bios_node *node);
/linux/drivers/pnp/pnpacpi/
H A Drsparser.c18 static void decode_irq_flags(struct pnp_dev *dev, int flags, u8 *triggering, in decode_irq_flags()
53 static int dma_flags(struct pnp_dev *dev, int type, int bus_master, in dma_flags()
101 static void pnpacpi_add_irqresource(struct pnp_dev *dev, struct resource *r) in pnpacpi_add_irqresource()
122 static int vendor_resource_matches(struct pnp_dev *dev, in vendor_resource_matches()
151 static void pnpacpi_parse_allocated_vendor(struct pnp_dev *dev, in pnpacpi_parse_allocated_vendor()
167 struct pnp_dev *dev = data; in pnpacpi_allocated_resource()
271 int pnpacpi_parse_allocated_resource(struct pnp_dev *dev) in pnpacpi_parse_allocated_resource()
292 static __init void pnpacpi_parse_dma_option(struct pnp_dev *dev, in pnpacpi_parse_dma_option()
306 static __init void pnpacpi_parse_irq_option(struct pnp_dev *dev, in pnpacpi_parse_irq_option()
323 static __init void pnpacpi_parse_ext_irq_option(struct pnp_dev *dev, in pnpacpi_parse_ext_irq_option()
[all …]
H A Dpnpacpi.h8 int pnpacpi_parse_allocated_resource(struct pnp_dev *);
9 int pnpacpi_parse_resource_option_data(struct pnp_dev *);
10 int pnpacpi_encode_resources(struct pnp_dev *, struct acpi_buffer *);
11 int pnpacpi_build_resource_template(struct pnp_dev *, struct acpi_buffer *);
H A Dcore.c43 static int pnpacpi_get_resources(struct pnp_dev *dev) in pnpacpi_get_resources()
49 static int pnpacpi_set_resources(struct pnp_dev *dev) in pnpacpi_set_resources()
90 static int pnpacpi_disable_resources(struct pnp_dev *dev) in pnpacpi_disable_resources()
116 static bool pnpacpi_can_wakeup(struct pnp_dev *dev) in pnpacpi_can_wakeup()
128 static int pnpacpi_suspend(struct pnp_dev *dev, pm_message_t state) in pnpacpi_suspend()
164 static int pnpacpi_resume(struct pnp_dev *dev) in pnpacpi_resume()
211 struct pnp_dev *dev; in pnpacpi_add_device()
/linux/drivers/media/rc/
H A Dene_ir.c989 static int ene_probe(struct pnp_dev *pnp_dev, const struct pnp_device_id *id) in ene_probe() argument
1008 if (!pnp_port_valid(pnp_dev, 0) || in ene_probe()
1009 pnp_port_len(pnp_dev, 0) < ENE_IO_SIZE) in ene_probe()
1012 if (!pnp_irq_valid(pnp_dev, 0)) in ene_probe()
1017 dev->hw_io = pnp_port_start(pnp_dev, 0); in ene_probe()
1018 dev->irq = pnp_irq(pnp_dev, 0); in ene_probe()
1021 pnp_set_drvdata(pnp_dev, dev); in ene_probe()
1022 dev->pnp_dev = pnp_dev; in ene_probe()
1068 device_set_wakeup_capable(&pnp_dev->dev, true); in ene_probe()
1069 device_set_wakeup_enable(&pnp_dev->dev, true); in ene_probe()
[all …]
/linux/drivers/pnp/isapnp/
H A Dcompat.c24 struct pnp_dev *pnp_find_dev(struct pnp_card *card, unsigned short vendor, in pnp_find_dev()
25 unsigned short function, struct pnp_dev *from) in pnp_find_dev()
40 struct pnp_dev *dev = global_to_pnp_dev(list); in pnp_find_dev()
57 struct pnp_dev *dev = card_to_pnp_dev(list); in pnp_find_dev()
H A Dcore.c381 static struct pnp_dev *__init isapnp_parse_device(struct pnp_card *card, in isapnp_parse_device()
385 struct pnp_dev *dev; in isapnp_parse_device()
409 static void __init isapnp_parse_irq_resource(struct pnp_dev *dev, in isapnp_parse_irq_resource()
433 static void __init isapnp_parse_dma_resource(struct pnp_dev *dev, in isapnp_parse_dma_resource()
446 static void __init isapnp_parse_port_resource(struct pnp_dev *dev, in isapnp_parse_port_resource()
467 static void __init isapnp_parse_fixed_port_resource(struct pnp_dev *dev, in isapnp_parse_fixed_port_resource()
484 static void __init isapnp_parse_mem_resource(struct pnp_dev *dev, in isapnp_parse_mem_resource()
505 static void __init isapnp_parse_mem32_resource(struct pnp_dev *dev, in isapnp_parse_mem32_resource()
526 static void __init isapnp_parse_fixed_mem32_resource(struct pnp_dev *dev, in isapnp_parse_fixed_mem32_resource()
569 struct pnp_dev *dev; in isapnp_create_device()
[all …]
H A Dproc.c25 struct pnp_dev *dev = pde_data(file_inode(file)); in isapnp_proc_bus_read()
57 static int isapnp_proc_attach_device(struct pnp_dev *dev) in isapnp_proc_attach_device()
79 struct pnp_dev *dev; in isapnp_proc_init()
/linux/sound/drivers/mpu401/
H A Dmpu401.c131 static int snd_mpu401_pnp(int dev, struct pnp_dev *device, in snd_mpu401_pnp()
157 static int snd_mpu401_pnp_probe(struct pnp_dev *pnp_dev, in snd_mpu401_pnp_probe() argument
167 err = snd_mpu401_pnp(dev, pnp_dev, id); in snd_mpu401_pnp_probe()
170 err = snd_mpu401_create(&pnp_dev->dev, dev, &card); in snd_mpu401_pnp_probe()
176 pnp_set_drvdata(pnp_dev, card); in snd_mpu401_pnp_probe()
/linux/include/sound/
H A Dsnd_wavefront.h105 struct pnp_dev *wss;
106 struct pnp_dev *ctrl;
107 struct pnp_dev *mpu;
108 struct pnp_dev *synth;
/linux/drivers/char/tpm/
H A Dtpm_tis.c251 static int tpm_tis_pnp_init(struct pnp_dev *pnp_dev, in tpm_tis_pnp_init() argument
257 res = pnp_get_resource(pnp_dev, IORESOURCE_MEM, 0); in tpm_tis_pnp_init()
262 if (pnp_irq_valid(pnp_dev, 0)) in tpm_tis_pnp_init()
263 tpm_info.irq = pnp_irq(pnp_dev, 0); in tpm_tis_pnp_init()
267 return tpm_tis_init(&pnp_dev->dev, &tpm_info); in tpm_tis_pnp_init()
291 static void tpm_tis_pnp_remove(struct pnp_dev *dev) in tpm_tis_pnp_remove()
/linux/sound/isa/cs423x/
H A Dcs4236.c80 struct pnp_dev *wss;
81 struct pnp_dev *ctrl;
82 struct pnp_dev *mpu;
204 static int snd_cs423x_pnp_init_wss(int dev, struct pnp_dev *pdev) in snd_cs423x_pnp_init_wss()
227 static int snd_cs423x_pnp_init_ctrl(int dev, struct pnp_dev *pdev) in snd_cs423x_pnp_init_ctrl()
239 static int snd_cs423x_pnp_init_mpu(int dev, struct pnp_dev *pdev) in snd_cs423x_pnp_init_mpu()
260 struct pnp_dev *pdev, in snd_card_cs423x_pnp()
261 struct pnp_dev *cdev) in snd_card_cs423x_pnp()
494 static int snd_cs423x_pnpbios_detect(struct pnp_dev *pdev, in snd_cs423x_pnpbios_detect()
500 struct pnp_dev *cdev, *iter; in snd_cs423x_pnpbios_detect()
[all …]
/linux/drivers/comedi/drivers/
H A Dni_atmio.c229 static int ni_isapnp_find_board(struct pnp_dev **dev) in ni_isapnp_find_board()
231 struct pnp_dev *isapnp_dev = NULL; in ni_isapnp_find_board()
292 struct pnp_dev *isapnp_dev; in ni_atmio_attach()
347 struct pnp_dev *isapnp_dev; in ni_atmio_detach()
/linux/drivers/media/radio/
H A Dradio-isa.h96 int radio_isa_pnp_probe(struct pnp_dev *dev,
98 void radio_isa_pnp_remove(struct pnp_dev *dev);

123