Home
last modified time | relevance | path

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

123

/linux-6.1.9/drivers/pnp/
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 …]
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);
24 int pnp_add_card_device(struct pnp_card *card, struct pnp_dev *dev);
25 void pnp_remove_card_device(struct pnp_dev *dev);
80 int pnp_register_irq_resource(struct pnp_dev *dev, unsigned int option_flags,
82 int pnp_register_dma_resource(struct pnp_dev *dev, unsigned int option_flags,
84 int pnp_register_port_resource(struct pnp_dev *dev, unsigned int option_flags,
88 int pnp_register_mem_resource(struct pnp_dev *dev, unsigned int option_flags,
109 static inline unsigned int pnp_new_dependent_set(struct pnp_dev *dev, in pnp_new_dependent_set()
[all …]
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 …]
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()
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 …]
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 …]
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 …]
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.1.9/include/linux/
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 …]
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
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.1.9/drivers/pnp/pnpbios/
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 …]
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.1.9/drivers/pnp/pnpacpi/
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 *);
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 …]
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.1.9/drivers/media/rc/
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()
1012 pnp_port_len(pnp_dev, 0) < ENE_IO_SIZE) 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()
1071 device_set_wakeup_capable(&pnp_dev->dev, true); in ene_probe()
1072 device_set_wakeup_enable(&pnp_dev->dev, true); in ene_probe()
[all …]
/linux-6.1.9/drivers/pnp/isapnp/
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()
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 …]
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.1.9/sound/drivers/mpu401/
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.1.9/include/sound/
Dsnd_wavefront.h105 struct pnp_dev *wss;
106 struct pnp_dev *ctrl;
107 struct pnp_dev *mpu;
108 struct pnp_dev *synth;
/linux-6.1.9/drivers/char/tpm/
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.1.9/sound/isa/cs423x/
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.1.9/drivers/tty/serial/8250/
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()

123