Home
last modified time | relevance | path

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

123

/drivers/pnp/
Ddriver.c44 struct pnp_dev *dev) in match_device()
59 int pnp_device_attach(struct pnp_dev *pnp_dev) in pnp_device_attach() argument
62 if (pnp_dev->status != PNP_READY) { in pnp_device_attach()
66 pnp_dev->status = PNP_ATTACHED; in pnp_device_attach()
71 void pnp_device_detach(struct pnp_dev *pnp_dev) in pnp_device_detach() argument
74 if (pnp_dev->status == PNP_ATTACHED) in pnp_device_detach()
75 pnp_dev->status = PNP_READY; in pnp_device_detach()
83 struct pnp_dev *pnp_dev; in pnp_device_probe() local
85 pnp_dev = to_pnp_dev(dev); in pnp_device_probe()
88 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.c34 static struct pnp_option *pnp_build_option(struct pnp_dev *dev, unsigned long type, in pnp_build_option()
50 int pnp_register_irq_resource(struct pnp_dev *dev, unsigned int option_flags, in pnp_register_irq_resource()
78 int pnp_register_dma_resource(struct pnp_dev *dev, unsigned int option_flags, in pnp_register_dma_resource()
96 int pnp_register_port_resource(struct pnp_dev *dev, unsigned int option_flags, in pnp_register_port_resource()
119 int pnp_register_mem_resource(struct pnp_dev *dev, unsigned int option_flags, in pnp_register_mem_resource()
142 void pnp_free_options(struct pnp_dev *dev) in pnp_free_options()
165 int pnp_check_port(struct pnp_dev *dev, struct resource *res) in pnp_check_port()
168 struct pnp_dev *tdev; in pnp_check_port()
228 int pnp_check_mem(struct pnp_dev *dev, struct resource *res) in pnp_check_mem()
231 struct pnp_dev *tdev; in pnp_check_mem()
[all …]
Dcore.c102 static void pnp_free_ids(struct pnp_dev *dev) in pnp_free_ids()
121 void pnp_free_resources(struct pnp_dev *dev) in pnp_free_resources()
132 struct pnp_dev *dev = to_pnp_dev(dmdev); in pnp_release_device()
140 struct pnp_dev *pnp_alloc_dev(struct pnp_protocol *protocol, int id, in pnp_alloc_dev()
143 struct pnp_dev *dev; in pnp_alloc_dev()
146 dev = kzalloc(sizeof(struct pnp_dev), GFP_KERNEL); in pnp_alloc_dev()
173 static void pnp_delist_device(struct pnp_dev *dev) in pnp_delist_device()
181 int __pnp_add_device(struct pnp_dev *dev) in __pnp_add_device()
211 int pnp_add_device(struct pnp_dev *dev) in pnp_add_device()
235 void __pnp_remove_device(struct pnp_dev *dev) in __pnp_remove_device()
Dmanager.c21 static struct resource *pnp_find_resource(struct pnp_dev *dev, in pnp_find_resource()
37 static int pnp_assign_port(struct pnp_dev *dev, struct pnp_port *rule, int idx) in pnp_assign_port()
80 static int pnp_assign_mem(struct pnp_dev *dev, struct pnp_mem *rule, int idx) in pnp_assign_mem()
131 static int pnp_assign_irq(struct pnp_dev *dev, struct pnp_irq *rule, int idx) in pnp_assign_irq()
190 static int pnp_assign_dma(struct pnp_dev *dev, struct pnp_dma *rule, int idx) in pnp_assign_dma()
235 void pnp_init_resources(struct pnp_dev *dev) in pnp_init_resources()
240 static void pnp_clean_resource_table(struct pnp_dev *dev) in pnp_clean_resource_table()
255 static int pnp_assign_resources(struct pnp_dev *dev, int set) in pnp_assign_resources()
307 int pnp_auto_config_dev(struct pnp_dev *dev) in pnp_auto_config_dev()
336 int pnp_start_dev(struct pnp_dev *dev) in pnp_start_dev()
[all …]
Dcard.c29 struct pnp_dev *dev; in match_card()
52 static void card_remove(struct pnp_dev *dev) in card_remove()
57 static void card_remove_first(struct pnp_dev *dev) in card_remove_first()
74 struct pnp_dev *dev; in card_probe()
257 struct pnp_dev *dev = card_to_pnp_dev(pos); in pnp_add_card()
285 struct pnp_dev *dev = card_to_pnp_dev(pos); in pnp_remove_card()
295 int pnp_add_card_device(struct pnp_card *card, struct pnp_dev *dev) in pnp_add_card_device()
312 void pnp_remove_card_device(struct pnp_dev *dev) in pnp_remove_card_device()
327 struct pnp_dev *pnp_request_card_device(struct pnp_card_link *clink, in pnp_request_card_device()
328 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()
231 static void quirk_system_pci_resources(struct pnp_dev *dev) in quirk_system_pci_resources()
306 static void quirk_amd_mmconfig_area(struct pnp_dev *dev) in quirk_amd_mmconfig_area()
364 static void quirk_intel_mch(struct pnp_dev *dev) in quirk_intel_mch()
[all …]
Dsystem.c25 static void reserve_range(struct pnp_dev *dev, struct resource *r, int port) in reserve_range()
55 static void reserve_resources_of_dev(struct pnp_dev *dev) in reserve_resources_of_dev()
89 static int system_pnp_probe(struct pnp_dev *dev, in system_pnp_probe()
Dsupport.c19 int pnp_is_active(struct pnp_dev *dev) in pnp_is_active()
78 void dbg_pnp_show_resources(struct pnp_dev *dev, char *desc) in dbg_pnp_show_resources()
104 void dbg_pnp_show_option(struct pnp_dev *dev, struct pnp_option *option) in dbg_pnp_show_option()
/drivers/pnp/pnpacpi/
Drsparser.c31 static void decode_irq_flags(struct pnp_dev *dev, int flags, u8 *triggering, in decode_irq_flags()
66 static int dma_flags(struct pnp_dev *dev, int type, int bus_master, in dma_flags()
114 static void pnpacpi_add_irqresource(struct pnp_dev *dev, struct resource *r) in pnpacpi_add_irqresource()
135 static int vendor_resource_matches(struct pnp_dev *dev, in vendor_resource_matches()
164 static void pnpacpi_parse_allocated_vendor(struct pnp_dev *dev, in pnpacpi_parse_allocated_vendor()
180 struct pnp_dev *dev = data; in pnpacpi_allocated_resource()
268 int pnpacpi_parse_allocated_resource(struct pnp_dev *dev) in pnpacpi_parse_allocated_resource()
289 static __init void pnpacpi_parse_dma_option(struct pnp_dev *dev, in pnpacpi_parse_dma_option()
303 static __init void pnpacpi_parse_irq_option(struct pnp_dev *dev, in pnpacpi_parse_irq_option()
320 static __init void pnpacpi_parse_ext_irq_option(struct pnp_dev *dev, in pnpacpi_parse_ext_irq_option()
[all …]
Dpnpacpi.h7 int pnpacpi_parse_allocated_resource(struct pnp_dev *);
8 int pnpacpi_parse_resource_option_data(struct pnp_dev *);
9 int pnpacpi_encode_resources(struct pnp_dev *, struct acpi_buffer *);
10 int pnpacpi_build_resource_template(struct pnp_dev *, struct acpi_buffer *);
Dcore.c56 static int pnpacpi_get_resources(struct pnp_dev *dev) in pnpacpi_get_resources()
62 static int pnpacpi_set_resources(struct pnp_dev *dev) in pnpacpi_set_resources()
103 static int pnpacpi_disable_resources(struct pnp_dev *dev) in pnpacpi_disable_resources()
129 static bool pnpacpi_can_wakeup(struct pnp_dev *dev) in pnpacpi_can_wakeup()
141 static int pnpacpi_suspend(struct pnp_dev *dev, pm_message_t state) in pnpacpi_suspend()
177 static int pnpacpi_resume(struct pnp_dev *dev) in pnpacpi_resume()
224 struct pnp_dev *dev; in pnpacpi_add_device()
/drivers/pnp/pnpbios/
Drsparser.c55 static void pnpbios_parse_allocated_ioresource(struct pnp_dev *dev, in pnpbios_parse_allocated_ioresource()
67 static void pnpbios_parse_allocated_memresource(struct pnp_dev *dev, in pnpbios_parse_allocated_memresource()
79 static unsigned char *pnpbios_parse_allocated_resource_data(struct pnp_dev *dev, in pnpbios_parse_allocated_resource_data()
216 static __init void pnpbios_parse_mem_option(struct pnp_dev *dev, in pnpbios_parse_mem_option()
232 static __init void pnpbios_parse_mem32_option(struct pnp_dev *dev, in pnpbios_parse_mem32_option()
248 static __init void pnpbios_parse_fixed_mem32_option(struct pnp_dev *dev, in pnpbios_parse_fixed_mem32_option()
261 static __init void pnpbios_parse_irq_option(struct pnp_dev *dev, in pnpbios_parse_irq_option()
280 static __init void pnpbios_parse_dma_option(struct pnp_dev *dev, in pnpbios_parse_dma_option()
287 static __init void pnpbios_parse_port_option(struct pnp_dev *dev, in pnpbios_parse_port_option()
303 static __init void pnpbios_parse_fixed_port_option(struct pnp_dev *dev, in pnpbios_parse_fixed_port_option()
[all …]
Dpnpbios.h166 extern int pnpbios_parse_data_stream(struct pnp_dev *dev, struct pnp_bios_node * node);
167 extern int pnpbios_read_resources_from_node(struct pnp_dev *dev, struct pnp_bios_node *node);
168 extern int pnpbios_write_resources_to_node(struct pnp_dev *dev, struct pnp_bios_node *node);
Dcore.c201 static int pnpbios_get_resources(struct pnp_dev *dev) in pnpbios_get_resources()
223 static int pnpbios_set_resources(struct pnp_dev *dev) in pnpbios_set_resources()
276 static int pnpbios_disable_resources(struct pnp_dev *dev) in pnpbios_disable_resources()
314 struct pnp_dev *dev; in insert_device()
320 dev = list_entry(pos, struct pnp_dev, protocol_list); in insert_device()
/drivers/media/rc/
Dene_ir.c1007 static int ene_probe(struct pnp_dev *pnp_dev, const struct pnp_device_id *id) in ene_probe() argument
1026 if (!pnp_port_valid(pnp_dev, 0) || in ene_probe()
1027 pnp_port_len(pnp_dev, 0) < ENE_IO_SIZE) in ene_probe()
1030 if (!pnp_irq_valid(pnp_dev, 0)) in ene_probe()
1035 dev->hw_io = pnp_port_start(pnp_dev, 0); in ene_probe()
1036 dev->irq = pnp_irq(pnp_dev, 0); in ene_probe()
1039 pnp_set_drvdata(pnp_dev, dev); in ene_probe()
1040 dev->pnp_dev = pnp_dev; in ene_probe()
1088 device_set_wakeup_capable(&pnp_dev->dev, true); in ene_probe()
1089 device_set_wakeup_enable(&pnp_dev->dev, true); in ene_probe()
[all …]
/drivers/char/tpm/
Dtpm_tis.c168 static int tpm_tis_pnp_init(struct pnp_dev *pnp_dev, in tpm_tis_pnp_init() argument
175 res = pnp_get_resource(pnp_dev, IORESOURCE_MEM, 0); in tpm_tis_pnp_init()
180 if (pnp_irq_valid(pnp_dev, 0)) in tpm_tis_pnp_init()
181 tpm_info.irq = pnp_irq(pnp_dev, 0); in tpm_tis_pnp_init()
185 if (pnp_acpi_device(pnp_dev)) { in tpm_tis_pnp_init()
186 if (is_itpm(pnp_acpi_device(pnp_dev))) in tpm_tis_pnp_init()
189 acpi_dev_handle = ACPI_HANDLE(&pnp_dev->dev); in tpm_tis_pnp_init()
192 return tpm_tis_init(&pnp_dev->dev, &tpm_info, acpi_dev_handle); in tpm_tis_pnp_init()
209 static void tpm_tis_pnp_remove(struct pnp_dev *dev) in tpm_tis_pnp_remove()
/drivers/tty/serial/8250/
D8250_pnp.c403 static bool check_resources(struct pnp_dev *dev) in check_resources()
427 static int serial_pnp_guess_board(struct pnp_dev *dev) in serial_pnp_guess_board()
440 serial_pnp_probe(struct pnp_dev *dev, const struct pnp_device_id *dev_id) in serial_pnp_probe()
495 static void serial_pnp_remove(struct pnp_dev *dev) in serial_pnp_remove()
505 static int serial_pnp_suspend(struct pnp_dev *dev, pm_message_t state) in serial_pnp_suspend()
515 static int serial_pnp_resume(struct pnp_dev *dev) in serial_pnp_resume()
/drivers/pnp/isapnp/
Dcompat.c45 struct pnp_dev *pnp_find_dev(struct pnp_card *card, unsigned short vendor, in pnp_find_dev()
46 unsigned short function, struct pnp_dev *from) in pnp_find_dev()
61 struct pnp_dev *dev = global_to_pnp_dev(list); in pnp_find_dev()
78 struct pnp_dev *dev = card_to_pnp_dev(list); in pnp_find_dev()
Dcore.c395 static struct pnp_dev *__init isapnp_parse_device(struct pnp_card *card, in isapnp_parse_device()
399 struct pnp_dev *dev; in isapnp_parse_device()
423 static void __init isapnp_parse_irq_resource(struct pnp_dev *dev, in isapnp_parse_irq_resource()
447 static void __init isapnp_parse_dma_resource(struct pnp_dev *dev, in isapnp_parse_dma_resource()
460 static void __init isapnp_parse_port_resource(struct pnp_dev *dev, in isapnp_parse_port_resource()
481 static void __init isapnp_parse_fixed_port_resource(struct pnp_dev *dev, in isapnp_parse_fixed_port_resource()
498 static void __init isapnp_parse_mem_resource(struct pnp_dev *dev, in isapnp_parse_mem_resource()
519 static void __init isapnp_parse_mem32_resource(struct pnp_dev *dev, in isapnp_parse_mem32_resource()
540 static void __init isapnp_parse_fixed_mem32_resource(struct pnp_dev *dev, in isapnp_parse_fixed_mem32_resource()
583 struct pnp_dev *dev; in isapnp_create_device()
[all …]
Dproc.c38 struct pnp_dev *dev = PDE_DATA(file_inode(file)); in isapnp_proc_bus_read()
71 static int isapnp_proc_attach_device(struct pnp_dev *dev) in isapnp_proc_attach_device()
94 struct pnp_dev *dev; in isapnp_proc_init()
/drivers/staging/comedi/drivers/
Dni_atmio.c230 static int ni_isapnp_find_board(struct pnp_dev **dev) in ni_isapnp_find_board()
232 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()
/drivers/media/radio/
Dradio-isa.h109 int radio_isa_pnp_probe(struct pnp_dev *dev,
111 void radio_isa_pnp_remove(struct pnp_dev *dev);
/drivers/ide/
Dide-pnp.c36 static int idepnp_probe(struct pnp_dev *dev, const struct pnp_device_id *dev_id) in idepnp_probe()
82 static void idepnp_remove(struct pnp_dev *dev) in idepnp_remove()
/drivers/net/ethernet/8390/
Dne.c251 struct pnp_dev *idev = NULL; in ne_probe_isapnp()
851 struct pnp_dev *idev = (struct pnp_dev *)ei_status.priv; in ne_drv_remove()
890 struct pnp_dev *idev = (struct pnp_dev *)ei_status.priv; in ne_drv_suspend()
903 struct pnp_dev *idev = (struct pnp_dev *)ei_status.priv; in ne_drv_resume()

123