/drivers/net/ppp/ |
D | ppp_async.c | 100 static int ppp_async_encode(struct asyncppp *ap); 102 static int ppp_async_push(struct asyncppp *ap); 103 static void ppp_async_flush_output(struct asyncppp *ap); 104 static void ppp_async_input(struct asyncppp *ap, const unsigned char *buf, 110 static void async_lcp_peek(struct asyncppp *ap, unsigned char *data, 138 struct asyncppp *ap; in ap_get() local 141 ap = tty->disc_data; in ap_get() 142 if (ap != NULL) in ap_get() 143 atomic_inc(&ap->refcnt); in ap_get() 145 return ap; in ap_get() [all …]
|
D | ppp_synctty.c | 92 static struct sk_buff* ppp_sync_txmunge(struct syncppp *ap, struct sk_buff *); 97 static int ppp_sync_push(struct syncppp *ap); 98 static void ppp_sync_flush_output(struct syncppp *ap); 99 static void ppp_sync_input(struct syncppp *ap, const unsigned char *buf, 139 struct syncppp *ap; in sp_get() local 142 ap = tty->disc_data; in sp_get() 143 if (ap != NULL) in sp_get() 144 atomic_inc(&ap->refcnt); in sp_get() 146 return ap; in sp_get() 149 static void sp_put(struct syncppp *ap) in sp_put() argument [all …]
|
/drivers/ata/ |
D | libata-sff.c | 84 u8 ata_sff_check_status(struct ata_port *ap) in ata_sff_check_status() argument 86 return ioread8(ap->ioaddr.status_addr); in ata_sff_check_status() 103 static u8 ata_sff_altstatus(struct ata_port *ap) in ata_sff_altstatus() argument 105 if (ap->ops->sff_check_altstatus) in ata_sff_altstatus() 106 return ap->ops->sff_check_altstatus(ap); in ata_sff_altstatus() 108 return ioread8(ap->ioaddr.altstatus_addr); in ata_sff_altstatus() 123 static u8 ata_sff_irq_status(struct ata_port *ap) in ata_sff_irq_status() argument 127 if (ap->ops->sff_check_altstatus || ap->ioaddr.altstatus_addr) { in ata_sff_irq_status() 128 status = ata_sff_altstatus(ap); in ata_sff_irq_status() 134 status = ap->ops->sff_check_status(ap); in ata_sff_irq_status() [all …]
|
D | pata_samsung_cf.c | 105 static void pata_s3c_set_piomode(struct ata_port *ap, struct ata_device *adev) in pata_s3c_set_piomode() argument 107 struct s3c_ide_info *info = ap->host->private_data; in pata_s3c_set_piomode() 177 static void pata_s3c_tf_load(struct ata_port *ap, in pata_s3c_tf_load() argument 180 struct ata_ioports *ioaddr = &ap->ioaddr; in pata_s3c_tf_load() 183 if (tf->ctl != ap->last_ctl) { in pata_s3c_tf_load() 184 ata_outb(ap->host, tf->ctl, ioaddr->ctl_addr); in pata_s3c_tf_load() 185 ap->last_ctl = tf->ctl; in pata_s3c_tf_load() 186 ata_wait_idle(ap); in pata_s3c_tf_load() 190 ata_outb(ap->host, tf->hob_feature, ioaddr->feature_addr); in pata_s3c_tf_load() 191 ata_outb(ap->host, tf->hob_nsect, ioaddr->nsect_addr); in pata_s3c_tf_load() [all …]
|
D | libahci.c | 61 static ssize_t ahci_led_show(struct ata_port *ap, char *buf); 62 static ssize_t ahci_led_store(struct ata_port *ap, const char *buf, 64 static ssize_t ahci_transmit_led_message(struct ata_port *ap, u32 state, 72 static int ahci_port_start(struct ata_port *ap); 73 static void ahci_port_stop(struct ata_port *ap); 76 static void ahci_freeze(struct ata_port *ap); 77 static void ahci_thaw(struct ata_port *ap); 78 static void ahci_set_aggressive_devslp(struct ata_port *ap, bool sleep); 79 static void ahci_enable_fbs(struct ata_port *ap); 80 static void ahci_disable_fbs(struct ata_port *ap); [all …]
|
D | libata-eh.c | 165 static void __ata_port_freeze(struct ata_port *ap); 167 static void ata_eh_handle_port_suspend(struct ata_port *ap); 168 static void ata_eh_handle_port_resume(struct ata_port *ap); 170 static void ata_eh_handle_port_suspend(struct ata_port *ap) in ata_eh_handle_port_suspend() argument 173 static void ata_eh_handle_port_resume(struct ata_port *ap) in ata_eh_handle_port_resume() argument 255 void ata_port_desc(struct ata_port *ap, const char *fmt, ...) in ata_port_desc() argument 259 WARN_ON(!(ap->pflags & ATA_PFLAG_INITIALIZING)); in ata_port_desc() 261 if (ap->link.eh_info.desc_len) in ata_port_desc() 262 __ata_ehi_push_desc(&ap->link.eh_info, " "); in ata_port_desc() 265 __ata_ehi_pushv_desc(&ap->link.eh_info, fmt, args); in ata_port_desc() [all …]
|
D | sata_nv.c | 310 static void nv_nf2_freeze(struct ata_port *ap); 311 static void nv_nf2_thaw(struct ata_port *ap); 312 static void nv_ck804_freeze(struct ata_port *ap); 313 static void nv_ck804_thaw(struct ata_port *ap); 319 static void nv_adma_irq_clear(struct ata_port *ap); 320 static int nv_adma_port_start(struct ata_port *ap); 321 static void nv_adma_port_stop(struct ata_port *ap); 323 static int nv_adma_port_suspend(struct ata_port *ap, pm_message_t mesg); 324 static int nv_adma_port_resume(struct ata_port *ap); 326 static void nv_adma_freeze(struct ata_port *ap); [all …]
|
D | pata_atp867x.c | 83 #define ATP867X_IOBASE(ap) ((ap)->host->iomap[0]) argument 84 #define ATP867X_SYS_INFO(ap) (0x3F + ATP867X_IOBASE(ap)) argument 86 #define ATP867X_IO_PORTBASE(ap, port) (0x00 + ATP867X_IOBASE(ap) + \ argument 88 #define ATP867X_IO_DMABASE(ap, port) (0x40 + \ argument 89 ATP867X_IO_PORTBASE((ap), (port))) 91 #define ATP867X_IO_STATUS(ap, port) (0x07 + \ argument 92 ATP867X_IO_PORTBASE((ap), (port))) 93 #define ATP867X_IO_ALTSTATUS(ap, port) (0x0E + \ argument 94 ATP867X_IO_PORTBASE((ap), (port))) 99 #define ATP867X_IO_MSTRPIOSPD(ap, port) (0x08 + \ argument [all …]
|
D | pata_bf54x.c | 289 static void bfin_set_piomode(struct ata_port *ap, struct ata_device *adev) in bfin_set_piomode() argument 292 void __iomem *base = (void __iomem *)ap->ioaddr.ctl_addr; in bfin_set_piomode() 304 dev_dbg(adev->link->ap->dev, "set piomode: mode=%d, fsclk=%ud\n", mode, fsclk); in bfin_set_piomode() 368 static void bfin_set_dmamode(struct ata_port *ap, struct ata_device *adev) in bfin_set_dmamode() argument 371 void __iomem *base = (void __iomem *)ap->ioaddr.ctl_addr; in bfin_set_dmamode() 380 dev_dbg(adev->link->ap->dev, "set udmamode: mode=%d\n", mode); in bfin_set_dmamode() 429 dev_dbg(adev->link->ap->dev, "set mdmamode: mode=%d\n", mode); in bfin_set_dmamode() 669 static void bfin_tf_load(struct ata_port *ap, const struct ata_taskfile *tf) in bfin_tf_load() argument 671 void __iomem *base = (void __iomem *)ap->ioaddr.ctl_addr; in bfin_tf_load() 674 if (tf->ctl != ap->last_ctl) { in bfin_tf_load() [all …]
|
D | libata-pmp.c | 41 struct ata_port *ap = link->ap; in sata_pmp_read() local 42 struct ata_device *pmp_dev = ap->link.device; in sata_pmp_read() 78 struct ata_port *ap = link->ap; in sata_pmp_write() local 79 struct ata_device *pmp_dev = ap->link.device; in sata_pmp_write() 113 struct ata_port *ap = link->ap; in sata_pmp_qc_defer_cmd_switch() local 115 if (ap->excl_link == NULL || ap->excl_link == link) { in sata_pmp_qc_defer_cmd_switch() 116 if (ap->nr_active_links == 0 || ata_link_active(link)) { in sata_pmp_qc_defer_cmd_switch() 121 ap->excl_link = link; in sata_pmp_qc_defer_cmd_switch() 261 struct ata_port *ap = dev->link->ap; in sata_pmp_configure() local 277 if ((ap->flags & ATA_FLAG_AN) && in sata_pmp_configure() [all …]
|
D | sata_promise.c | 156 static int pdc_common_port_start(struct ata_port *ap); 157 static int pdc_sata_port_start(struct ata_port *ap); 159 static void pdc_tf_load_mmio(struct ata_port *ap, const struct ata_taskfile *tf); 160 static void pdc_exec_command_mmio(struct ata_port *ap, const struct ata_taskfile *tf); 163 static void pdc_irq_clear(struct ata_port *ap); 165 static void pdc_freeze(struct ata_port *ap); 166 static void pdc_sata_freeze(struct ata_port *ap); 167 static void pdc_thaw(struct ata_port *ap); 168 static void pdc_sata_thaw(struct ata_port *ap); 173 static void pdc_error_handler(struct ata_port *ap); [all …]
|
D | pata_scc.c | 185 static void scc_set_piomode (struct ata_port *ap, struct ata_device *adev) in scc_set_piomode() argument 188 void __iomem *ctrl_base = ap->host->iomap[SCC_CTRL_BAR]; in scc_set_piomode() 218 static void scc_set_dmamode (struct ata_port *ap, struct ata_device *adev) in scc_set_dmamode() argument 223 void __iomem *ctrl_base = ap->host->iomap[SCC_CTRL_BAR]; in scc_set_dmamode() 277 static void scc_tf_load (struct ata_port *ap, const struct ata_taskfile *tf) in scc_tf_load() argument 279 struct ata_ioports *ioaddr = &ap->ioaddr; in scc_tf_load() 282 if (tf->ctl != ap->last_ctl) { in scc_tf_load() 284 ap->last_ctl = tf->ctl; in scc_tf_load() 285 ata_wait_idle(ap); in scc_tf_load() 321 ata_wait_idle(ap); in scc_tf_load() [all …]
|
D | sata_sil24.c | 342 static void sil24_pmp_attach(struct ata_port *ap); 343 static void sil24_pmp_detach(struct ata_port *ap); 344 static void sil24_freeze(struct ata_port *ap); 345 static void sil24_thaw(struct ata_port *ap); 352 static void sil24_error_handler(struct ata_port *ap); 354 static int sil24_port_start(struct ata_port *ap); 360 static int sil24_port_resume(struct ata_port *ap); 468 static unsigned long sil24_port_offset(struct ata_port *ap) in sil24_port_offset() argument 470 return ap->port_no * PORT_REGS_SIZE; in sil24_port_offset() 473 static void __iomem *sil24_port_base(struct ata_port *ap) in sil24_port_base() argument [all …]
|
D | pata_octeon_cf.c | 52 struct ata_port *ap; member 129 static void octeon_cf_set_piomode(struct ata_port *ap, struct ata_device *dev) in octeon_cf_set_piomode() argument 131 struct octeon_cf_port *cf_port = ap->private_data; in octeon_cf_set_piomode() 223 static void octeon_cf_set_dmamode(struct ata_port *ap, struct ata_device *dev) in octeon_cf_set_dmamode() argument 225 struct octeon_cf_port *cf_port = ap->private_data; in octeon_cf_set_dmamode() 307 struct ata_port *ap = dev->link->ap; in octeon_cf_data_xfer8() local 308 void __iomem *data_addr = ap->ioaddr.data_addr; in octeon_cf_data_xfer8() 323 ioread8(ap->ioaddr.altstatus_addr); in octeon_cf_data_xfer8() 346 struct ata_port *ap = dev->link->ap; in octeon_cf_data_xfer16() local 347 void __iomem *data_addr = ap->ioaddr.data_addr; in octeon_cf_data_xfer16() [all …]
|
D | sata_dwc_460ex.c | 297 #define HSDEV_FROM_AP(ap) ((struct sata_dwc_device *)\ argument 298 (ap)->host->private_data) 299 #define HSDEVP_FROM_AP(ap) ((struct sata_dwc_device_port *)\ argument 300 (ap)->private_data) 302 (qc)->ap->host->private_data) 331 static int sata_dwc_qc_complete(struct ata_port *ap, struct ata_queued_cmd *qc, 333 static void sata_dwc_dma_xfer_complete(struct ata_port *ap, u32 check_status); 334 static void sata_dwc_port_stop(struct ata_port *ap); 466 struct ata_port *ap; in dma_dwc_interrupt() local 472 ap = host->ports[port]; in dma_dwc_interrupt() [all …]
|
D | pata_acpi.c | 38 struct ata_port *ap = link->ap; in pacpi_pre_reset() local 39 struct pata_acpi *acpi = ap->private_data; in pacpi_pre_reset() 40 if (ACPI_HANDLE(&ap->tdev) == NULL || ata_acpi_gtm(ap, &acpi->gtm) < 0) in pacpi_pre_reset() 53 static int pacpi_cable_detect(struct ata_port *ap) in pacpi_cable_detect() argument 55 struct pata_acpi *acpi = ap->private_data; in pacpi_cable_detect() 72 static unsigned long pacpi_discover_modes(struct ata_port *ap, struct ata_device *adev) in pacpi_discover_modes() argument 74 struct pata_acpi *acpi = ap->private_data; in pacpi_discover_modes() 80 ata_acpi_gtm(ap, &probe); in pacpi_discover_modes() 85 ap->cbl = ATA_CBL_PATA80; in pacpi_discover_modes() 101 struct pata_acpi *acpi = adev->link->ap->private_data; in pacpi_mode_filter() [all …]
|
D | sata_sil.c | 126 static void sil_freeze(struct ata_port *ap); 127 static void sil_thaw(struct ata_port *ap); 269 struct ata_port *ap = qc->ap; in sil_bmdma_stop() local 270 void __iomem *mmio_base = ap->host->iomap[SIL_MMIO_BAR]; in sil_bmdma_stop() 271 void __iomem *bmdma2 = mmio_base + sil_port[ap->port_no].bmdma2; in sil_bmdma_stop() 277 ata_sff_dma_pause(ap); in sil_bmdma_stop() 282 struct ata_port *ap = qc->ap; in sil_bmdma_setup() local 283 void __iomem *bmdma = ap->ioaddr.bmdma_addr; in sil_bmdma_setup() 286 iowrite32(ap->bmdma_prd_dma, bmdma + ATA_DMA_TABLE_OFS); in sil_bmdma_setup() 289 ap->ops->sff_exec_command(ap, &qc->tf); in sil_bmdma_setup() [all …]
|
D | sata_rcar.c | 223 static void sata_rcar_freeze(struct ata_port *ap) in sata_rcar_freeze() argument 225 struct sata_rcar_priv *priv = ap->host->private_data; in sata_rcar_freeze() 230 ata_sff_freeze(ap); in sata_rcar_freeze() 233 static void sata_rcar_thaw(struct ata_port *ap) in sata_rcar_thaw() argument 235 struct sata_rcar_priv *priv = ap->host->private_data; in sata_rcar_thaw() 241 ata_sff_thaw(ap); in sata_rcar_thaw() 266 static u8 sata_rcar_check_status(struct ata_port *ap) in sata_rcar_check_status() argument 268 return ioread32(ap->ioaddr.status_addr); in sata_rcar_check_status() 271 static u8 sata_rcar_check_altstatus(struct ata_port *ap) in sata_rcar_check_altstatus() argument 273 return ioread32(ap->ioaddr.altstatus_addr); in sata_rcar_check_altstatus() [all …]
|
D | libata-acpi.c | 44 struct ata_port *ap; member 66 static void ata_acpi_detach_device(struct ata_port *ap, struct ata_device *dev) in ata_acpi_detach_device() argument 74 ata_for_each_link(tlink, ap, EDGE) in ata_acpi_detach_device() 79 ata_port_schedule_eh(ap); in ata_acpi_detach_device() 99 static void ata_acpi_handle_hotplug(struct ata_port *ap, struct ata_device *dev, in ata_acpi_handle_hotplug() argument 102 struct ata_eh_info *ehi = &ap->link.eh_info; in ata_acpi_handle_hotplug() 106 spin_lock_irqsave(ap->lock, flags); in ata_acpi_handle_hotplug() 118 ata_port_freeze(ap); in ata_acpi_handle_hotplug() 123 ata_acpi_detach_device(ap, dev); in ata_acpi_handle_hotplug() 128 spin_unlock_irqrestore(ap->lock, flags); in ata_acpi_handle_hotplug() [all …]
|
D | pata_pxa.c | 62 struct pata_pxa_data *pd = qc->ap->private_data; in pxa_load_dmac() 107 struct pata_pxa_data *pd = qc->ap->private_data; in pxa_qc_prep() 138 qc->ap->ops->sff_exec_command(qc->ap, &qc->tf); in pxa_bmdma_setup() 146 struct pata_pxa_data *pd = qc->ap->private_data; in pxa_bmdma_start() 156 struct pata_pxa_data *pd = qc->ap->private_data; in pxa_bmdma_stop() 160 dev_err(qc->ap->dev, "Timeout waiting for DMA completion!"); in pxa_bmdma_stop() 169 static unsigned char pxa_bmdma_status(struct ata_port *ap) in pxa_bmdma_status() argument 171 struct pata_pxa_data *pd = ap->private_data; in pxa_bmdma_status() 183 static void pxa_irq_clear(struct ata_port *ap) in pxa_irq_clear() argument 221 struct ata_port *ap = port; in pxa_ata_dma_irq() local [all …]
|
D | libata-core.c | 191 struct ata_link *ata_link_next(struct ata_link *link, struct ata_port *ap, in ata_link_next() argument 202 if (sata_pmp_attached(ap)) in ata_link_next() 203 return ap->pmp_link; in ata_link_next() 206 return &ap->link; in ata_link_next() 210 if (link == &ap->link) in ata_link_next() 213 if (sata_pmp_attached(ap)) in ata_link_next() 214 return ap->pmp_link; in ata_link_next() 217 if (unlikely(ap->slave_link)) in ata_link_next() 218 return ap->slave_link; in ata_link_next() 225 if (unlikely(link == ap->slave_link)) in ata_link_next() [all …]
|
D | pata_it821x.c | 126 static void it821x_program(struct ata_port *ap, struct ata_device *adev, u16 timing) in it821x_program() argument 128 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in it821x_program() 129 struct it821x_dev *itdev = ap->private_data; in it821x_program() 130 int channel = ap->port_no; in it821x_program() 154 static void it821x_program_udma(struct ata_port *ap, struct ata_device *adev, u16 timing) in it821x_program_udma() argument 156 struct it821x_dev *itdev = ap->private_data; in it821x_program_udma() 157 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in it821x_program_udma() 158 int channel = ap->port_no; in it821x_program_udma() 185 static void it821x_clock_strategy(struct ata_port *ap, struct ata_device *adev) in it821x_clock_strategy() argument 187 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in it821x_clock_strategy() [all …]
|
D | pata_ep93xx.c | 329 static void ep93xx_pata_set_piomode(struct ata_port *ap, in ep93xx_pata_set_piomode() argument 332 struct ep93xx_pata_data *drv_data = ap->host->private_data; in ep93xx_pata_set_piomode() 357 static u8 ep93xx_pata_check_status(struct ata_port *ap) in ep93xx_pata_check_status() argument 359 struct ep93xx_pata_data *drv_data = ap->host->private_data; in ep93xx_pata_check_status() 364 static u8 ep93xx_pata_check_altstatus(struct ata_port *ap) in ep93xx_pata_check_altstatus() argument 366 struct ep93xx_pata_data *drv_data = ap->host->private_data; in ep93xx_pata_check_altstatus() 372 static void ep93xx_pata_tf_load(struct ata_port *ap, in ep93xx_pata_tf_load() argument 375 struct ep93xx_pata_data *drv_data = ap->host->private_data; in ep93xx_pata_tf_load() 378 if (tf->ctl != ap->last_ctl) { in ep93xx_pata_tf_load() 380 ap->last_ctl = tf->ctl; in ep93xx_pata_tf_load() [all …]
|
/drivers/net/ethernet/alteon/ |
D | acenic.c | 91 #define ACE_IS_TIGON_I(ap) 0 argument 92 #define ACE_TX_RING_ENTRIES(ap) MAX_TX_RING_ENTRIES argument 94 #define ACE_IS_TIGON_I(ap) (ap->version == 1) argument 95 #define ACE_TX_RING_ENTRIES(ap) ap->tx_ring_entries argument 460 struct ace_private *ap; in acenic_probe_one() local 469 ap = netdev_priv(dev); in acenic_probe_one() 470 ap->pdev = pdev; in acenic_probe_one() 471 ap->name = pci_name(pdev); in acenic_probe_one() 495 pci_read_config_word(pdev, PCI_COMMAND, &ap->pci_command); in acenic_probe_one() 498 if (!(ap->pci_command & PCI_COMMAND_MEMORY)) { in acenic_probe_one() [all …]
|
/drivers/net/wireless/hostap/ |
D | hostap_ap.c | 55 static struct sta_info* ap_get_sta(struct ap_data *ap, u8 *sta); 71 struct ap_data *ap = m->private; in ap_debug_proc_show() local 73 seq_printf(m, "BridgedUnicastFrames=%u\n", ap->bridged_unicast); in ap_debug_proc_show() 74 seq_printf(m, "BridgedMulticastFrames=%u\n", ap->bridged_multicast); in ap_debug_proc_show() 75 seq_printf(m, "max_inactivity=%u\n", ap->max_inactivity / HZ); in ap_debug_proc_show() 76 seq_printf(m, "bridge_packets=%u\n", ap->bridge_packets); in ap_debug_proc_show() 77 seq_printf(m, "nullfunc_ack=%u\n", ap->nullfunc_ack); in ap_debug_proc_show() 78 seq_printf(m, "autom_ap_wds=%u\n", ap->autom_ap_wds); in ap_debug_proc_show() 79 seq_printf(m, "auth_algs=%u\n", ap->local->auth_algs); in ap_debug_proc_show() 80 seq_printf(m, "tx_drop_nonassoc=%u\n", ap->tx_drop_nonassoc); in ap_debug_proc_show() [all …]
|