Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/drivers/pnp/
A Ddriver.c60 int pnp_device_attach(struct pnp_dev *pnp_dev) in pnp_device_attach() argument
73 void pnp_device_detach(struct pnp_dev *pnp_dev) in pnp_device_detach() argument
86 struct pnp_dev *pnp_dev; in pnp_device_probe() local
128 struct pnp_dev *pnp_dev = to_pnp_dev(dev); in pnp_device_remove() local
146 struct pnp_dev *pnp_dev = to_pnp_dev(dev); in pnp_device_shutdown() local
155 struct pnp_dev *pnp_dev = to_pnp_dev(dev); in pnp_bus_match() local
165 struct pnp_dev *pnp_dev = to_pnp_dev(dev); in __pnp_bus_suspend() local
186 if (pnp_can_disable(pnp_dev) && pnp_can_write(pnp_dev)) { in __pnp_bus_suspend()
193 pnp_dev->protocol->suspend(pnp_dev, state); in __pnp_bus_suspend()
214 struct pnp_dev *pnp_dev = to_pnp_dev(dev); in pnp_bus_resume() local
[all …]
A Dbase.h15 struct pnp_dev *pnp_alloc_dev(struct pnp_protocol *, int id,
19 int pnp_add_device(struct pnp_dev *dev);
20 struct pnp_id *pnp_add_id(struct pnp_dev *dev, const char *id);
25 void pnp_remove_card_device(struct pnp_dev *dev);
135 void pnp_init_resources(struct pnp_dev *dev);
137 void pnp_fixup_device(struct pnp_dev *dev);
138 void pnp_free_options(struct pnp_dev *dev);
139 int __pnp_add_device(struct pnp_dev *dev);
140 void __pnp_remove_device(struct pnp_dev *dev);
152 void pnp_free_resources(struct pnp_dev *dev);
[all …]
A Dresource.c144 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()
353 int pnp_check_irq(struct pnp_dev *dev, struct resource *res) in pnp_check_irq()
356 struct pnp_dev *tdev; in pnp_check_irq()
420 struct pnp_dev *tdev; in pnp_check_dma()
483 struct resource *pnp_get_resource(struct pnp_dev *dev, in pnp_get_resource()
510 struct pnp_resource *pnp_add_resource(struct pnp_dev *dev, in pnp_add_resource()
[all …]
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()
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()
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()
361 int pnp_stop_dev(struct pnp_dev *dev) in pnp_stop_dev()
383 int pnp_activate_dev(struct pnp_dev *dev) in pnp_activate_dev()
[all …]
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()
313 void pnp_remove_card_device(struct pnp_dev *dev) in pnp_remove_card_device()
329 const char *id, struct pnp_dev *from) in pnp_request_card_device()
332 struct pnp_dev *dev; in pnp_request_card_device()
378 void pnp_release_card_device(struct pnp_dev *dev) in pnp_release_card_device()
[all …]
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()
304 static void quirk_amd_mmconfig_area(struct pnp_dev *dev) in quirk_amd_mmconfig_area()
362 static void quirk_intel_mch(struct pnp_dev *dev) in quirk_intel_mch()
[all …]
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-6.3-rc2/include/linux/
A Dpnp.h21 struct pnp_dev;
243 struct pnp_dev { struct
379 void (*remove) (struct pnp_dev *dev);
382 int (*resume) (struct pnp_dev *dev);
416 int (*get) (struct pnp_dev *dev);
417 int (*set) (struct pnp_dev *dev);
418 int (*disable) (struct pnp_dev *dev);
443 int pnp_device_attach(struct pnp_dev *pnp_dev);
444 void pnp_device_detach(struct pnp_dev *pnp_dev);
475 static inline int pnp_device_attach(struct pnp_dev *pnp_dev) { return -ENODEV; } in pnp_device_attach() argument
[all …]
A Dapple-gmux.h68 static inline bool apple_gmux_detect(struct pnp_dev *pnp_dev, bool *indexed_ret) in apple_gmux_detect() argument
77 if (!pnp_dev) { in apple_gmux_detect()
87 pnp_dev = to_pnp_dev(dev); in apple_gmux_detect()
90 res = pnp_get_resource(pnp_dev, IORESOURCE_IO, 0); in apple_gmux_detect()
137 static inline bool apple_gmux_detect(struct pnp_dev *pnp_dev, bool *indexed_ret) in apple_gmux_detect() argument
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-6.3-rc2/drivers/pnp/pnpbios/
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()
217 static __init void pnpbios_parse_mem_option(struct pnp_dev *dev, in pnpbios_parse_mem_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()
318 struct pnp_dev *dev) in pnpbios_parse_resource_option_data()
433 struct pnp_dev *dev) in pnpbios_parse_compatible_ids()
770 int __init pnpbios_parse_data_stream(struct pnp_dev *dev, in pnpbios_parse_data_stream()
788 int pnpbios_read_resources_from_node(struct pnp_dev *dev, in pnpbios_read_resources_from_node()
[all …]
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-6.3-rc2/drivers/pnp/pnpacpi/
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 *);
A Drsparser.c122 static int vendor_resource_matches(struct pnp_dev *dev, in vendor_resource_matches()
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()
450 struct pnp_dev *dev;
459 struct pnp_dev *dev = parse_data->dev; in pnpacpi_option_resource()
659 static void pnpacpi_encode_irq(struct pnp_dev *dev, in pnpacpi_encode_irq()
688 static void pnpacpi_encode_ext_irq(struct pnp_dev *dev, in pnpacpi_encode_ext_irq()
716 static void pnpacpi_encode_dma(struct pnp_dev *dev, in pnpacpi_encode_dma()
764 static void pnpacpi_encode_io(struct pnp_dev *dev, in pnpacpi_encode_io()
805 static void pnpacpi_encode_mem24(struct pnp_dev *dev, in pnpacpi_encode_mem24()
[all …]
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-6.3-rc2/drivers/media/rc/
A Dene_ir.c992 static int ene_probe(struct pnp_dev *pnp_dev, const struct pnp_device_id *id) in ene_probe() argument
1011 if (!pnp_port_valid(pnp_dev, 0) || in ene_probe()
1015 if (!pnp_irq_valid(pnp_dev, 0)) in ene_probe()
1020 dev->hw_io = pnp_port_start(pnp_dev, 0); in ene_probe()
1021 dev->irq = pnp_irq(pnp_dev, 0); in ene_probe()
1024 pnp_set_drvdata(pnp_dev, dev); in ene_probe()
1025 dev->pnp_dev = pnp_dev; in ene_probe()
1104 static void ene_remove(struct pnp_dev *pnp_dev) in ene_remove() argument
1129 static int ene_suspend(struct pnp_dev *pnp_dev, pm_message_t state) in ene_suspend() argument
1141 static int ene_resume(struct pnp_dev *pnp_dev) in ene_resume() argument
[all …]
/linux-6.3-rc2/drivers/pnp/isapnp/
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()
A Dcore.c385 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()
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()
569 struct pnp_dev *dev; in isapnp_create_device()
848 static int isapnp_get_resources(struct pnp_dev *dev) in isapnp_get_resources()
885 static int isapnp_set_resources(struct pnp_dev *dev) in isapnp_set_resources()
935 static int isapnp_disable_resources(struct pnp_dev *dev) in isapnp_disable_resources()
[all …]
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-6.3-rc2/sound/drivers/mpu401/
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-6.3-rc2/include/sound/
A Dsnd_wavefront.h105 struct pnp_dev *wss;
106 struct pnp_dev *ctrl;
107 struct pnp_dev *mpu;
108 struct pnp_dev *synth;
/linux-6.3-rc2/drivers/char/tpm/
A Dtpm_tis.c238 static int tpm_tis_pnp_init(struct pnp_dev *pnp_dev, in tpm_tis_pnp_init() argument
244 res = pnp_get_resource(pnp_dev, IORESOURCE_MEM, 0); in tpm_tis_pnp_init()
249 if (pnp_irq_valid(pnp_dev, 0)) in tpm_tis_pnp_init()
250 tpm_info.irq = pnp_irq(pnp_dev, 0); in tpm_tis_pnp_init()
254 return tpm_tis_init(&pnp_dev->dev, &tpm_info); in tpm_tis_pnp_init()
278 static void tpm_tis_pnp_remove(struct pnp_dev *dev) in tpm_tis_pnp_remove()
/linux-6.3-rc2/sound/isa/cs423x/
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()
225 static int snd_cs423x_pnp_init_ctrl(int dev, struct pnp_dev *pdev) in snd_cs423x_pnp_init_ctrl()
237 static int snd_cs423x_pnp_init_mpu(int dev, struct pnp_dev *pdev) in snd_cs423x_pnp_init_mpu()
258 struct pnp_dev *pdev, in snd_card_cs423x_pnp()
259 struct pnp_dev *cdev) in snd_card_cs423x_pnp()
491 static int snd_cs423x_pnpbios_detect(struct pnp_dev *pdev, in snd_cs423x_pnpbios_detect()
497 struct pnp_dev *cdev, *iter; in snd_cs423x_pnpbios_detect()
[all …]
/linux-6.3-rc2/drivers/tty/serial/8250/
A D8250_pnp.c397 static bool check_resources(struct pnp_dev *dev) in check_resources()
421 static int serial_pnp_guess_board(struct pnp_dev *dev) in serial_pnp_guess_board()
434 serial_pnp_probe(struct pnp_dev *dev, const struct pnp_device_id *dev_id) in serial_pnp_probe()
490 static void serial_pnp_remove(struct pnp_dev *dev) in serial_pnp_remove()

Completed in 56 milliseconds

123