/drivers/acpi/ |
D | pci_link.c | 106 struct acpi_pci_link *link = context; in acpi_pci_link_check_possible() local 130 link->irq.possible[i] = p->interrupts[i]; in acpi_pci_link_check_possible() 131 link->irq.possible_count++; in acpi_pci_link_check_possible() 133 link->irq.triggering = p->triggering; in acpi_pci_link_check_possible() 134 link->irq.polarity = p->polarity; in acpi_pci_link_check_possible() 135 link->irq.resource_type = ACPI_RESOURCE_TYPE_IRQ; in acpi_pci_link_check_possible() 156 link->irq.possible[i] = p->interrupts[i]; in acpi_pci_link_check_possible() 157 link->irq.possible_count++; in acpi_pci_link_check_possible() 159 link->irq.triggering = p->triggering; in acpi_pci_link_check_possible() 160 link->irq.polarity = p->polarity; in acpi_pci_link_check_possible() [all …]
|
/drivers/pci/pcie/ |
D | aspm.c | 47 struct list_head link; /* node in parent's children list */ member 96 static int policy_to_aspm_state(struct pcie_link_state *link) in policy_to_aspm_state() argument 106 return link->aspm_default; in policy_to_aspm_state() 111 static int policy_to_clkpm_state(struct pcie_link_state *link) in policy_to_clkpm_state() argument 121 return link->clkpm_default; in policy_to_clkpm_state() 126 static void pcie_set_clkpm_nocheck(struct pcie_link_state *link, int enable) in pcie_set_clkpm_nocheck() argument 129 struct pci_bus *linkbus = link->pdev->subordinate; in pcie_set_clkpm_nocheck() 139 link->clkpm_enabled = !!enable; in pcie_set_clkpm_nocheck() 142 static void pcie_set_clkpm(struct pcie_link_state *link, int enable) in pcie_set_clkpm() argument 145 if (!link->clkpm_capable && enable) in pcie_set_clkpm() [all …]
|
/drivers/staging/wlags49_h2/ |
D | wl_cs.c | 132 static int wl_adapter_attach(struct pcmcia_device *link) in wl_adapter_attach() argument 147 link->resource[0]->end = HCF_NUM_IO_PORTS; in wl_adapter_attach() 148 link->resource[0]->flags= IO_DATA_PATH_WIDTH_16; in wl_adapter_attach() 149 link->config_flags |= CONF_ENABLE_IRQ; in wl_adapter_attach() 150 link->config_index = 5; in wl_adapter_attach() 151 link->config_regs = PRESENT_OPTION; in wl_adapter_attach() 153 link->priv = dev; in wl_adapter_attach() 155 lp->link = link; in wl_adapter_attach() 157 wl_adapter_insert(link); in wl_adapter_attach() 166 static void wl_adapter_detach(struct pcmcia_device *link) in wl_adapter_detach() argument [all …]
|
/drivers/net/wireless/rt2x00/ |
D | rt2x00link.c | 78 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00link_antenna_get_link_rssi() 80 if (ant->rssi_ant.avg && rt2x00dev->link.qual.rx_success) in rt2x00link_antenna_get_link_rssi() 87 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00link_antenna_get_rssi_history() 97 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00link_antenna_update_rssi_history() 103 rt2x00dev->link.ant.rssi_ant.avg = 0; in rt2x00link_antenna_reset() 104 rt2x00dev->link.ant.rssi_ant.avg_weight = 0; in rt2x00link_antenna_reset() 109 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00lib_antenna_diversity_sample() 150 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00lib_antenna_diversity_eval() 190 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00lib_antenna_diversity() 211 } else if (rt2x00dev->link.count & 1) { in rt2x00lib_antenna_diversity() [all …]
|
/drivers/ata/ |
D | libata-pmp.c | 39 static unsigned int sata_pmp_read(struct ata_link *link, int reg, u32 *r_val) in sata_pmp_read() argument 41 struct ata_port *ap = link->ap; in sata_pmp_read() 42 struct ata_device *pmp_dev = ap->link.device; in sata_pmp_read() 51 tf.device = link->pmp; in sata_pmp_read() 76 static unsigned int sata_pmp_write(struct ata_link *link, int reg, u32 val) in sata_pmp_write() argument 78 struct ata_port *ap = link->ap; in sata_pmp_write() 79 struct ata_device *pmp_dev = ap->link.device; in sata_pmp_write() 87 tf.device = link->pmp; in sata_pmp_write() 112 struct ata_link *link = qc->dev->link; in sata_pmp_qc_defer_cmd_switch() local 113 struct ata_port *ap = link->ap; in sata_pmp_qc_defer_cmd_switch() [all …]
|
D | libata-eh.c | 260 if (ap->link.eh_info.desc_len) in ata_port_desc() 261 __ata_ehi_push_desc(&ap->link.eh_info, " "); in ata_port_desc() 264 __ata_ehi_pushv_desc(&ap->link.eh_info, fmt, args); in ata_port_desc() 339 struct ata_eh_context *ehc = &dev->link->eh_context; in ata_internal_cmd_timeout() 364 struct ata_eh_context *ehc = &dev->link->eh_context; in ata_internal_cmd_timed_out() 435 struct ata_eh_context *ehc = &dev->link->eh_context; in ata_eh_dev_action() 440 static void ata_eh_clear_action(struct ata_link *link, struct ata_device *dev, in ata_eh_clear_action() argument 447 ata_for_each_dev(tdev, link, ALL) in ata_eh_clear_action() 455 ata_for_each_dev(tdev, link, ALL) in ata_eh_clear_action() 537 qc = ata_qc_from_tag(ap, ap->link.active_tag); in ata_scsi_timed_out() [all …]
|
/drivers/isdn/hisax/ |
D | sedlbauer_cs.c | 65 static int sedlbauer_config(struct pcmcia_device *link); 66 static void sedlbauer_release(struct pcmcia_device *link); 76 static int sedlbauer_probe(struct pcmcia_device *link) in sedlbauer_probe() argument 80 dev_dbg(&link->dev, "sedlbauer_attach()\n"); in sedlbauer_probe() 87 local->p_dev = link; in sedlbauer_probe() 88 link->priv = local; in sedlbauer_probe() 90 return sedlbauer_config(link); in sedlbauer_probe() 93 static void sedlbauer_detach(struct pcmcia_device *link) in sedlbauer_detach() argument 95 dev_dbg(&link->dev, "sedlbauer_detach(0x%p)\n", link); in sedlbauer_detach() 97 ((local_info_t *)link->priv)->stop = 1; in sedlbauer_detach() [all …]
|
D | elsa_cs.c | 65 static int elsa_cs_config(struct pcmcia_device *link); 66 static void elsa_cs_release(struct pcmcia_device *link); 75 static int elsa_cs_probe(struct pcmcia_device *link) in elsa_cs_probe() argument 79 dev_dbg(&link->dev, "elsa_cs_attach()\n"); in elsa_cs_probe() 85 local->p_dev = link; in elsa_cs_probe() 86 link->priv = local; in elsa_cs_probe() 90 return elsa_cs_config(link); in elsa_cs_probe() 93 static void elsa_cs_detach(struct pcmcia_device *link) in elsa_cs_detach() argument 95 local_info_t *info = link->priv; in elsa_cs_detach() 97 dev_dbg(&link->dev, "elsa_cs_detach(0x%p)\n", link); in elsa_cs_detach() [all …]
|
D | teles_cs.c | 46 static int teles_cs_config(struct pcmcia_device *link); 47 static void teles_cs_release(struct pcmcia_device *link); 56 static int teles_probe(struct pcmcia_device *link) in teles_probe() argument 60 dev_dbg(&link->dev, "teles_attach()\n"); in teles_probe() 67 local->p_dev = link; in teles_probe() 68 link->priv = local; in teles_probe() 70 link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO; in teles_probe() 72 return teles_cs_config(link); in teles_probe() 75 static void teles_detach(struct pcmcia_device *link) in teles_detach() argument 77 local_info_t *info = link->priv; in teles_detach() [all …]
|
D | avma1_cs.c | 41 static int avma1cs_config(struct pcmcia_device *link); 42 static void avma1cs_release(struct pcmcia_device *link); 57 static void avma1cs_detach(struct pcmcia_device *link) in avma1cs_detach() argument 59 dev_dbg(&link->dev, "avma1cs_detach(0x%p)\n", link); in avma1cs_detach() 60 avma1cs_release(link); in avma1cs_detach() 61 kfree(link->priv); in avma1cs_detach() 75 static int avma1cs_config(struct pcmcia_device *link) in avma1cs_config() argument 82 dev_dbg(&link->dev, "avma1cs_config(0x%p)\n", link); in avma1cs_config() 85 if (link->prod_id[1]) in avma1cs_config() 86 strlcpy(devname, link->prod_id[1], sizeof(devname)); in avma1cs_config() [all …]
|
/drivers/tty/serial/8250/ |
D | serial_cs.c | 108 static void quirk_setup_brainboxes_0104(struct pcmcia_device *link, struct uart_8250_port *uart) in quirk_setup_brainboxes_0104() argument 113 static int quirk_post_ibm(struct pcmcia_device *link) in quirk_post_ibm() argument 118 ret = pcmcia_read_config_byte(link, 0x800, &val); in quirk_post_ibm() 122 ret = pcmcia_write_config_byte(link, 0x800, val | 1); in quirk_post_ibm() 135 static void quirk_config_nokia(struct pcmcia_device *link) in quirk_config_nokia() argument 137 struct serial_info *info = link->priv; in quirk_config_nokia() 143 static void quirk_wakeup_oxsemi(struct pcmcia_device *link) in quirk_wakeup_oxsemi() argument 145 struct serial_info *info = link->priv; in quirk_wakeup_oxsemi() 157 static void quirk_wakeup_possio_gcc(struct pcmcia_device *link) in quirk_wakeup_possio_gcc() argument 159 struct serial_info *info = link->priv; in quirk_wakeup_possio_gcc() [all …]
|
/drivers/net/arcnet/ |
D | com20020_cs.c | 109 static int com20020_config(struct pcmcia_device *link); 110 static void com20020_release(struct pcmcia_device *link); 162 static void com20020_detach(struct pcmcia_device *link) in com20020_detach() argument 164 struct com20020_dev_t *info = link->priv; in com20020_detach() 167 dev_dbg(&link->dev, "detach...\n"); in com20020_detach() 169 dev_dbg(&link->dev, "com20020_detach\n"); in com20020_detach() 171 dev_dbg(&link->dev, "unregister...\n"); in com20020_detach() 182 com20020_release(link); in com20020_detach() 185 dev_dbg(&link->dev, "unlinking...\n"); in com20020_detach() 186 if (link->priv) in com20020_detach() [all …]
|
/drivers/media/ |
D | media-entity.c | 93 media_entity_other(struct media_entity *entity, struct media_link *link) in media_entity_other() argument 95 if (link->source->entity == entity) in media_entity_other() 96 return link->sink->entity; in media_entity_other() 98 return link->source->entity; in media_entity_other() 110 graph->stack[graph->top].link = 0; in stack_push() 125 #define link_top(en) ((en)->stack[(en)->top].link) 172 struct media_link *link = &entity->links[link_top(graph)]; in media_entity_graph_walk_next() local 176 if (!(link->flags & MEDIA_LNK_FL_ENABLED)) { in media_entity_graph_walk_next() 182 next = media_entity_other(entity, link); in media_entity_graph_walk_next() 244 struct media_link *link = &entity->links[i]; in media_entity_pipeline_start() local [all …]
|
/drivers/net/wireless/orinoco/ |
D | spectrum_cs.c | 64 static int spectrum_cs_config(struct pcmcia_device *link); 65 static void spectrum_cs_release(struct pcmcia_device *link); 78 spectrum_reset(struct pcmcia_device *link, int idle) in spectrum_reset() argument 85 if (!pcmcia_dev_present(link)) in spectrum_reset() 89 ret = pcmcia_read_config_byte(link, CISREG_COR, &save_cor); in spectrum_reset() 94 ret = pcmcia_write_config_byte(link, CISREG_COR, in spectrum_reset() 101 ret = pcmcia_read_config_byte(link, CISREG_CCSR, &ccsr); in spectrum_reset() 110 ret = pcmcia_write_config_byte(link, CISREG_CCSR, ccsr); in spectrum_reset() 116 ret = pcmcia_write_config_byte(link, CISREG_COR, in spectrum_reset() 135 struct pcmcia_device *link = card->p_dev; in spectrum_cs_hard_reset() local [all …]
|
/drivers/staging/ft1000/ft1000-pcmcia/ |
D | ft1000_cs.c | 44 static int ft1000_config(struct pcmcia_device *link); 45 static void ft1000_detach(struct pcmcia_device *link); 46 static int ft1000_attach(struct pcmcia_device *link); 52 static void ft1000_reset(struct pcmcia_device *link) in ft1000_reset() argument 54 pcmcia_reset_card(link->socket); in ft1000_reset() 57 static int ft1000_attach(struct pcmcia_device *link) in ft1000_attach() argument 59 link->priv = NULL; in ft1000_attach() 60 link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO; in ft1000_attach() 62 return ft1000_config(link); in ft1000_attach() 65 static void ft1000_detach(struct pcmcia_device *link) in ft1000_detach() argument [all …]
|
/drivers/net/wireless/ |
D | airo_cs.c | 55 static int airo_config(struct pcmcia_device *link); 56 static void airo_release(struct pcmcia_device *link); 80 static void airo_detach(struct pcmcia_device *link) in airo_detach() argument 82 dev_dbg(&link->dev, "airo_detach\n"); in airo_detach() 84 airo_release(link); in airo_detach() 86 if (((local_info_t *)link->priv)->eth_dev) { in airo_detach() 87 stop_airo_card(((local_info_t *)link->priv)->eth_dev, 0); in airo_detach() 89 ((local_info_t *)link->priv)->eth_dev = NULL; in airo_detach() 91 kfree(link->priv); in airo_detach() 103 static int airo_config(struct pcmcia_device *link) in airo_config() argument [all …]
|
D | atmel_cs.c | 65 static int atmel_config(struct pcmcia_device *link); 66 static void atmel_release(struct pcmcia_device *link); 90 static void atmel_detach(struct pcmcia_device *link) in atmel_detach() argument 92 dev_dbg(&link->dev, "atmel_detach\n"); in atmel_detach() 94 atmel_release(link); in atmel_detach() 96 kfree(link->priv); in atmel_detach() 103 struct pcmcia_device *link = (struct pcmcia_device *)arg; in card_present() local 105 if (pcmcia_dev_present(link)) in card_present() 119 static int atmel_config(struct pcmcia_device *link) in atmel_config() argument 125 dev = link->priv; in atmel_config() [all …]
|
/drivers/scsi/pcmcia/ |
D | qlogic_stub.c | 87 static void qlogic_release(struct pcmcia_device *link); 89 static int qlogic_config(struct pcmcia_device * link); 92 struct pcmcia_device *link, int qbase, int qlirq) in qlogic_detect() argument 146 static int qlogic_probe(struct pcmcia_device *link) in qlogic_probe() argument 150 dev_dbg(&link->dev, "qlogic_attach()\n"); in qlogic_probe() 156 info->p_dev = link; in qlogic_probe() 157 link->priv = info; in qlogic_probe() 158 link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO; in qlogic_probe() 159 link->config_regs = PRESENT_OPTION; in qlogic_probe() 161 return qlogic_config(link); in qlogic_probe() [all …]
|
D | fdomain_stub.c | 68 static void fdomain_release(struct pcmcia_device *link); 70 static int fdomain_config(struct pcmcia_device *link); 72 static int fdomain_probe(struct pcmcia_device *link) in fdomain_probe() argument 76 dev_dbg(&link->dev, "fdomain_attach()\n"); in fdomain_probe() 83 info->p_dev = link; in fdomain_probe() 84 link->priv = info; in fdomain_probe() 85 link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO; in fdomain_probe() 86 link->config_regs = PRESENT_OPTION; in fdomain_probe() 88 return fdomain_config(link); in fdomain_probe() 93 static void fdomain_detach(struct pcmcia_device *link) in fdomain_detach() argument [all …]
|
D | aha152x_stub.c | 84 static void aha152x_release_cs(struct pcmcia_device *link); 86 static int aha152x_config_cs(struct pcmcia_device *link); 88 static int aha152x_probe(struct pcmcia_device *link) in aha152x_probe() argument 92 dev_dbg(&link->dev, "aha152x_attach()\n"); in aha152x_probe() 97 info->p_dev = link; in aha152x_probe() 98 link->priv = info; in aha152x_probe() 100 link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO; in aha152x_probe() 101 link->config_regs = PRESENT_OPTION; in aha152x_probe() 103 return aha152x_config_cs(link); in aha152x_probe() 108 static void aha152x_detach(struct pcmcia_device *link) in aha152x_detach() argument [all …]
|
/drivers/parport/ |
D | parport_cs.c | 80 static int parport_config(struct pcmcia_device *link); 83 static int parport_probe(struct pcmcia_device *link) in parport_probe() argument 87 dev_dbg(&link->dev, "parport_attach()\n"); in parport_probe() 92 link->priv = info; in parport_probe() 93 info->p_dev = link; in parport_probe() 95 link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO; in parport_probe() 97 return parport_config(link); in parport_probe() 100 static void parport_detach(struct pcmcia_device *link) in parport_detach() argument 102 dev_dbg(&link->dev, "parport_detach\n"); in parport_detach() 104 parport_cs_release(link); in parport_detach() [all …]
|
/drivers/net/ethernet/fujitsu/ |
D | fmvj18x_cs.c | 79 static int fmvj18x_config(struct pcmcia_device *link); 80 static int fmvj18x_get_hwinfo(struct pcmcia_device *link, u_char *node_id); 81 static int fmvj18x_setup_mfc(struct pcmcia_device *link); 82 static void fmvj18x_release(struct pcmcia_device *link); 234 static int fmvj18x_probe(struct pcmcia_device *link) in fmvj18x_probe() argument 239 dev_dbg(&link->dev, "fmvj18x_attach()\n"); in fmvj18x_probe() 246 link->priv = dev; in fmvj18x_probe() 247 lp->p_dev = link; in fmvj18x_probe() 251 link->resource[0]->end = 32; in fmvj18x_probe() 252 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; in fmvj18x_probe() [all …]
|
/drivers/ide/ |
D | ide-cs.c | 73 static int ide_probe(struct pcmcia_device *link) in ide_probe() argument 77 dev_dbg(&link->dev, "ide_attach()\n"); in ide_probe() 84 info->p_dev = link; in ide_probe() 85 link->priv = info; in ide_probe() 87 link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO | in ide_probe() 90 return ide_config(link); in ide_probe() 93 static void ide_detach(struct pcmcia_device *link) in ide_detach() argument 95 ide_info_t *info = link->priv; in ide_detach() 97 dev_dbg(&link->dev, "ide_detach(0x%p)\n", link); in ide_detach() 99 ide_release(link); in ide_detach() [all …]
|
/drivers/isdn/hardware/avm/ |
D | avm_cs.c | 40 static int avmcs_config(struct pcmcia_device *link); 41 static void avmcs_release(struct pcmcia_device *link); 55 static void avmcs_detach(struct pcmcia_device *link) in avmcs_detach() argument 57 avmcs_release(link); in avmcs_detach() 69 static int avmcs_config(struct pcmcia_device *link) in avmcs_config() argument 77 if (link->prod_id[1]) in avmcs_config() 78 strlcpy(devname, link->prod_id[1], sizeof(devname)); in avmcs_config() 83 if (pcmcia_loop_config(link, avmcs_configcheck, NULL)) in avmcs_config() 87 if (!link->irq) { in avmcs_config() 89 pcmcia_disable_device(link); in avmcs_config() [all …]
|
/drivers/net/ethernet/8390/ |
D | pcnet_cs.c | 97 static int pcnet_config(struct pcmcia_device *link); 98 static void pcnet_release(struct pcmcia_device *link); 106 static int setup_shmem_window(struct pcmcia_device *link, int start_pg, 108 static int setup_dma_config(struct pcmcia_device *link, int start_pg, 239 static int pcnet_probe(struct pcmcia_device *link) in pcnet_probe() argument 244 dev_dbg(&link->dev, "pcnet_attach()\n"); in pcnet_probe() 250 info->p_dev = link; in pcnet_probe() 251 link->priv = dev; in pcnet_probe() 253 link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO; in pcnet_probe() 257 return pcnet_config(link); in pcnet_probe() [all …]
|