/drivers/pnp/ |
D | driver.c | 45 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() 72 void pnp_device_detach(struct pnp_dev *pnp_dev) in pnp_device_detach() argument 75 if (pnp_dev->status == PNP_ATTACHED) in pnp_device_detach() 76 pnp_dev->status = PNP_READY; 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() 89 error = pnp_device_attach(pnp_dev); in pnp_device_probe() [all …]
|
D | base.h | 16 struct pnp_dev *pnp_alloc_dev(struct pnp_protocol *, int id, 20 int pnp_add_device(struct pnp_dev *dev); 21 struct pnp_id *pnp_add_id(struct pnp_dev *dev, const char *id); 25 int pnp_add_card_device(struct pnp_card *card, struct pnp_dev *dev); 26 void pnp_remove_card_device(struct pnp_dev *dev); 81 int pnp_register_irq_resource(struct pnp_dev *dev, unsigned int option_flags, 83 int pnp_register_dma_resource(struct pnp_dev *dev, unsigned int option_flags, 85 int pnp_register_port_resource(struct pnp_dev *dev, unsigned int option_flags, 89 int pnp_register_mem_resource(struct pnp_dev *dev, unsigned int option_flags, 110 static inline unsigned int pnp_new_dependent_set(struct pnp_dev *dev, in pnp_new_dependent_set() [all …]
|
D | resource.c | 35 static struct pnp_option *pnp_build_option(struct pnp_dev *dev, unsigned long type, in pnp_build_option() 51 int pnp_register_irq_resource(struct pnp_dev *dev, unsigned int option_flags, in pnp_register_irq_resource() 79 int pnp_register_dma_resource(struct pnp_dev *dev, unsigned int option_flags, in pnp_register_dma_resource() 97 int pnp_register_port_resource(struct pnp_dev *dev, unsigned int option_flags, in pnp_register_port_resource() 120 int pnp_register_mem_resource(struct pnp_dev *dev, unsigned int option_flags, in pnp_register_mem_resource() 143 void pnp_free_options(struct pnp_dev *dev) in pnp_free_options() 166 int pnp_check_port(struct pnp_dev *dev, struct resource *res) in pnp_check_port() 169 struct pnp_dev *tdev; in pnp_check_port() 229 int pnp_check_mem(struct pnp_dev *dev, struct resource *res) in pnp_check_mem() 232 struct pnp_dev *tdev; in pnp_check_mem() [all …]
|
D | core.c | 103 static void pnp_free_ids(struct pnp_dev *dev) in pnp_free_ids() 122 void pnp_free_resources(struct pnp_dev *dev) in pnp_free_resources() 133 struct pnp_dev *dev = to_pnp_dev(dmdev); in pnp_release_device() 141 struct pnp_dev *pnp_alloc_dev(struct pnp_protocol *protocol, int id, in pnp_alloc_dev() 144 struct pnp_dev *dev; in pnp_alloc_dev() 147 dev = kzalloc(sizeof(struct pnp_dev), GFP_KERNEL); in pnp_alloc_dev() 174 static void pnp_delist_device(struct pnp_dev *dev) in pnp_delist_device() 182 int __pnp_add_device(struct pnp_dev *dev) in __pnp_add_device() 212 int pnp_add_device(struct pnp_dev *dev) in pnp_add_device() 236 void __pnp_remove_device(struct pnp_dev *dev) in __pnp_remove_device()
|
D | manager.c | 22 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 …]
|
D | card.c | 30 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 …]
|
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() 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 …]
|
D | system.c | 26 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()
|
D | support.c | 20 int pnp_is_active(struct pnp_dev *dev) in pnp_is_active() 79 void dbg_pnp_show_resources(struct pnp_dev *dev, char *desc) in dbg_pnp_show_resources() 105 void dbg_pnp_show_option(struct pnp_dev *dev, struct pnp_option *option) in dbg_pnp_show_option()
|
/drivers/pnp/pnpbios/ |
D | rsparser.c | 56 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 …]
|
D | pnpbios.h | 153 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);
|
D | core.c | 189 static int pnpbios_get_resources(struct pnp_dev *dev) in pnpbios_get_resources() 211 static int pnpbios_set_resources(struct pnp_dev *dev) in pnpbios_set_resources() 264 static int pnpbios_disable_resources(struct pnp_dev *dev) in pnpbios_disable_resources() 302 struct pnp_dev *dev; in insert_device() 308 dev = list_entry(pos, struct pnp_dev, protocol_list); in insert_device()
|
/drivers/pnp/pnpacpi/ |
D | rsparser.c | 18 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() 270 int pnpacpi_parse_allocated_resource(struct pnp_dev *dev) in pnpacpi_parse_allocated_resource() 291 static __init void pnpacpi_parse_dma_option(struct pnp_dev *dev, in pnpacpi_parse_dma_option() 305 static __init void pnpacpi_parse_irq_option(struct pnp_dev *dev, in pnpacpi_parse_irq_option() 322 static __init void pnpacpi_parse_ext_irq_option(struct pnp_dev *dev, in pnpacpi_parse_ext_irq_option() [all …]
|
D | pnpacpi.h | 8 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 *);
|
D | core.c | 43 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()
|
/drivers/media/rc/ |
D | ene_ir.c | 992 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 …]
|
/drivers/pnp/isapnp/ |
D | compat.c | 24 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()
|
D | core.c | 381 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 …]
|
D | proc.c | 25 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() 80 struct pnp_dev *dev; in isapnp_proc_init()
|
/drivers/char/tpm/ |
D | tpm_tis.c | 261 static int tpm_tis_pnp_init(struct pnp_dev *pnp_dev, in tpm_tis_pnp_init() argument 267 res = pnp_get_resource(pnp_dev, IORESOURCE_MEM, 0); in tpm_tis_pnp_init() 272 if (pnp_irq_valid(pnp_dev, 0)) in tpm_tis_pnp_init() 273 tpm_info.irq = pnp_irq(pnp_dev, 0); in tpm_tis_pnp_init() 277 return tpm_tis_init(&pnp_dev->dev, &tpm_info); in tpm_tis_pnp_init() 301 static void tpm_tis_pnp_remove(struct pnp_dev *dev) in tpm_tis_pnp_remove()
|
/drivers/tty/serial/8250/ |
D | 8250_pnp.c | 400 static bool check_resources(struct pnp_dev *dev) in check_resources() 424 static int serial_pnp_guess_board(struct pnp_dev *dev) in serial_pnp_guess_board() 437 serial_pnp_probe(struct pnp_dev *dev, const struct pnp_device_id *dev_id) in serial_pnp_probe() 492 static void serial_pnp_remove(struct pnp_dev *dev) in serial_pnp_remove()
|
/drivers/staging/comedi/drivers/ |
D | ni_atmio.c | 221 static int ni_isapnp_find_board(struct pnp_dev **dev) in ni_isapnp_find_board() 223 struct pnp_dev *isapnp_dev = NULL; in ni_isapnp_find_board() 284 struct pnp_dev *isapnp_dev; in ni_atmio_attach() 339 struct pnp_dev *isapnp_dev; in ni_atmio_detach()
|
/drivers/media/radio/ |
D | radio-isa.h | 96 int radio_isa_pnp_probe(struct pnp_dev *dev, 98 void radio_isa_pnp_remove(struct pnp_dev *dev);
|
/drivers/ide/ |
D | ide-pnp.c | 28 static int idepnp_probe(struct pnp_dev *dev, const struct pnp_device_id *dev_id) in idepnp_probe() 74 static void idepnp_remove(struct pnp_dev *dev) in idepnp_remove()
|
/drivers/net/ethernet/8390/ |
D | ne.c | 248 struct pnp_dev *idev = NULL; in ne_probe_isapnp() 834 struct pnp_dev *idev = (struct pnp_dev *)ei_status.priv; in ne_drv_remove() 873 struct pnp_dev *idev = (struct pnp_dev *)ei_status.priv; in ne_drv_suspend() 886 struct pnp_dev *idev = (struct pnp_dev *)ei_status.priv; in ne_drv_resume()
|