/drivers/pnp/ |
D | driver.c | 44 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() 77 pnp_disable_dev(pnp_dev); in pnp_device_detach() 84 struct pnp_dev *pnp_dev; in pnp_device_probe() local 86 pnp_dev = to_pnp_dev(dev); in pnp_device_probe() [all …]
|
D | base.h | 15 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 …]
|
D | resource.c | 34 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() 227 int pnp_check_mem(struct pnp_dev *dev, struct resource *res) in pnp_check_mem() 230 struct pnp_dev *tdev; in pnp_check_mem() [all …]
|
D | core.c | 89 static void pnp_free_ids(struct pnp_dev *dev) in pnp_free_ids() 108 void pnp_free_resources(struct pnp_dev *dev) in pnp_free_resources() 119 struct pnp_dev *dev = to_pnp_dev(dmdev); in pnp_release_device() 127 struct pnp_dev *pnp_alloc_dev(struct pnp_protocol *protocol, int id, in pnp_alloc_dev() 130 struct pnp_dev *dev; in pnp_alloc_dev() 133 dev = kzalloc(sizeof(struct pnp_dev), GFP_KERNEL); in pnp_alloc_dev() 160 int __pnp_add_device(struct pnp_dev *dev) in __pnp_add_device() 180 int pnp_add_device(struct pnp_dev *dev) in pnp_add_device() 204 void __pnp_remove_device(struct pnp_dev *dev) in __pnp_remove_device()
|
D | manager.c | 21 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() 133 static int pnp_assign_irq(struct pnp_dev *dev, struct pnp_irq *rule, int idx) in pnp_assign_irq() 192 static int pnp_assign_dma(struct pnp_dev *dev, struct pnp_dma *rule, int idx) in pnp_assign_dma() 237 void pnp_init_resources(struct pnp_dev *dev) in pnp_init_resources() 242 static void pnp_clean_resource_table(struct pnp_dev *dev) in pnp_clean_resource_table() 257 static int pnp_assign_resources(struct pnp_dev *dev, int set) in pnp_assign_resources() 309 int pnp_auto_config_dev(struct pnp_dev *dev) in pnp_auto_config_dev() 338 int pnp_start_dev(struct pnp_dev *dev) in pnp_start_dev() [all …]
|
D | card.c | 28 struct pnp_dev *dev; in match_card() 51 static void card_remove(struct pnp_dev *dev) in card_remove() 56 static void card_remove_first(struct pnp_dev *dev) in card_remove_first() 73 struct pnp_dev *dev; in card_probe() 256 struct pnp_dev *dev = card_to_pnp_dev(pos); in pnp_add_card() 284 struct pnp_dev *dev = card_to_pnp_dev(pos); in pnp_remove_card() 294 int pnp_add_card_device(struct pnp_card *card, struct pnp_dev *dev) in pnp_add_card_device() 311 void pnp_remove_card_device(struct pnp_dev *dev) in pnp_remove_card_device() 326 struct pnp_dev *pnp_request_card_device(struct pnp_card_link *clink, in pnp_request_card_device() 327 const char *id, struct pnp_dev *from) in pnp_request_card_device() [all …]
|
D | quirks.c | 26 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() 303 static void quirk_amd_mmconfig_area(struct pnp_dev *dev) in quirk_amd_mmconfig_area() 359 static void quirk_intel_mch(struct pnp_dev *dev) in quirk_intel_mch() [all …]
|
D | system.c | 25 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()
|
D | support.c | 19 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/ |
D | rsparser.c | 31 static void decode_irq_flags(struct pnp_dev *dev, int flags, int *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() 263 int pnpacpi_parse_allocated_resource(struct pnp_dev *dev) in pnpacpi_parse_allocated_resource() 284 static __init void pnpacpi_parse_dma_option(struct pnp_dev *dev, in pnpacpi_parse_dma_option() 298 static __init void pnpacpi_parse_irq_option(struct pnp_dev *dev, in pnpacpi_parse_irq_option() 315 static __init void pnpacpi_parse_ext_irq_option(struct pnp_dev *dev, in pnpacpi_parse_ext_irq_option() [all …]
|
D | pnpacpi.h | 7 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 *);
|
D | core.c | 56 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/ |
D | rsparser.c | 55 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 …]
|
D | pnpbios.h | 166 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);
|
D | core.c | 200 static int pnpbios_get_resources(struct pnp_dev *dev) in pnpbios_get_resources() 222 static int pnpbios_set_resources(struct pnp_dev *dev) in pnpbios_set_resources() 275 static int pnpbios_disable_resources(struct pnp_dev *dev) in pnpbios_disable_resources() 313 struct pnp_dev *dev; in insert_device() 319 dev = list_entry(pos, struct pnp_dev, protocol_list); in insert_device()
|
/drivers/media/rc/ |
D | ene_ir.c | 1007 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/tty/serial/8250/ |
D | 8250_pnp.c | 395 static int check_resources(struct pnp_dev *dev) in check_resources() 419 static int serial_pnp_guess_board(struct pnp_dev *dev) in serial_pnp_guess_board() 432 serial_pnp_probe(struct pnp_dev *dev, const struct pnp_device_id *dev_id) in serial_pnp_probe() 483 static void serial_pnp_remove(struct pnp_dev *dev) in serial_pnp_remove() 491 static int serial_pnp_suspend(struct pnp_dev *dev, pm_message_t state) in serial_pnp_suspend() 501 static int serial_pnp_resume(struct pnp_dev *dev) in serial_pnp_resume()
|
D | 8250_fintek.c | 141 fintek_8250_probe(struct pnp_dev *dev, const struct pnp_device_id *dev_id) in fintek_8250_probe() 185 static void fintek_8250_remove(struct pnp_dev *dev) in fintek_8250_remove() 194 static int fintek_8250_suspend(struct pnp_dev *dev, pm_message_t state) in fintek_8250_suspend() 204 static int fintek_8250_resume(struct pnp_dev *dev) in fintek_8250_resume()
|
/drivers/pnp/isapnp/ |
D | compat.c | 45 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()
|
D | core.c | 398 static struct pnp_dev *__init isapnp_parse_device(struct pnp_card *card, in isapnp_parse_device() 402 struct pnp_dev *dev; in isapnp_parse_device() 426 static void __init isapnp_parse_irq_resource(struct pnp_dev *dev, in isapnp_parse_irq_resource() 450 static void __init isapnp_parse_dma_resource(struct pnp_dev *dev, in isapnp_parse_dma_resource() 463 static void __init isapnp_parse_port_resource(struct pnp_dev *dev, in isapnp_parse_port_resource() 484 static void __init isapnp_parse_fixed_port_resource(struct pnp_dev *dev, in isapnp_parse_fixed_port_resource() 501 static void __init isapnp_parse_mem_resource(struct pnp_dev *dev, in isapnp_parse_mem_resource() 522 static void __init isapnp_parse_mem32_resource(struct pnp_dev *dev, in isapnp_parse_mem32_resource() 543 static void __init isapnp_parse_fixed_mem32_resource(struct pnp_dev *dev, in isapnp_parse_fixed_mem32_resource() 586 struct pnp_dev *dev; in isapnp_create_device() [all …]
|
D | proc.c | 38 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/char/tpm/ |
D | tpm_tis.c | 86 static int is_itpm(struct pnp_dev *dev) in is_itpm() 102 static inline int is_itpm(struct pnp_dev *dev) in is_itpm() 825 static int tpm_tis_pnp_init(struct pnp_dev *pnp_dev, in tpm_tis_pnp_init() argument 831 start = pnp_mem_start(pnp_dev, 0); in tpm_tis_pnp_init() 832 len = pnp_mem_len(pnp_dev, 0); in tpm_tis_pnp_init() 834 if (pnp_irq_valid(pnp_dev, 0)) in tpm_tis_pnp_init() 835 irq = pnp_irq(pnp_dev, 0); in tpm_tis_pnp_init() 839 if (is_itpm(pnp_dev)) in tpm_tis_pnp_init() 842 return tpm_tis_init(&pnp_dev->dev, start, len, irq); in tpm_tis_pnp_init() 859 static void tpm_tis_pnp_remove(struct pnp_dev *dev) in tpm_tis_pnp_remove()
|
/drivers/staging/comedi/drivers/ |
D | ni_atmio.c | 242 static int ni_isapnp_find_board(struct pnp_dev **dev) in ni_isapnp_find_board() 244 struct pnp_dev *isapnp_dev = NULL; in ni_isapnp_find_board() 304 struct pnp_dev *isapnp_dev; in ni_atmio_attach() 366 struct pnp_dev *isapnp_dev; in ni_atmio_detach()
|
/drivers/media/radio/ |
D | radio-isa.h | 109 int radio_isa_pnp_probe(struct pnp_dev *dev, 111 void radio_isa_pnp_remove(struct pnp_dev *dev);
|
/drivers/platform/x86/ |
D | apple-gmux.c | 382 struct pnp_dev *pnp = (struct pnp_dev *)context; in gmux_notify_handler() 398 struct pnp_dev *pnp = to_pnp_dev(dev); in gmux_suspend() 408 struct pnp_dev *pnp = to_pnp_dev(dev); in gmux_resume() 418 static int gmux_probe(struct pnp_dev *pnp, const struct pnp_device_id *id) in gmux_probe() 583 static void gmux_remove(struct pnp_dev *pnp) in gmux_remove()
|