/linux-6.12.1/drivers/net/ppp/ |
D | ppp_async.c | 97 static int ppp_async_encode(struct asyncppp *ap); 99 static int ppp_async_push(struct asyncppp *ap); 100 static void ppp_async_flush_output(struct asyncppp *ap); 101 static void ppp_async_input(struct asyncppp *ap, const unsigned char *buf, 107 static void async_lcp_peek(struct asyncppp *ap, unsigned char *data, 135 struct asyncppp *ap; in ap_get() local 138 ap = tty->disc_data; in ap_get() 139 if (ap != NULL) in ap_get() 140 refcount_inc(&ap->refcnt); in ap_get() 142 return ap; in ap_get() [all …]
|
D | ppp_synctty.c | 89 static struct sk_buff* ppp_sync_txmunge(struct syncppp *ap, struct sk_buff *); 94 static int ppp_sync_push(struct syncppp *ap); 95 static void ppp_sync_flush_output(struct syncppp *ap); 96 static void ppp_sync_input(struct syncppp *ap, const u8 *buf, const u8 *flags, 136 struct syncppp *ap; in sp_get() local 139 ap = tty->disc_data; in sp_get() 140 if (ap != NULL) in sp_get() 141 refcount_inc(&ap->refcnt); in sp_get() 143 return ap; in sp_get() 146 static void sp_put(struct syncppp *ap) in sp_put() argument [all …]
|
/linux-6.12.1/drivers/ata/ |
D | libata-sff.c | 63 u8 ata_sff_check_status(struct ata_port *ap) in ata_sff_check_status() argument 65 return ioread8(ap->ioaddr.status_addr); in ata_sff_check_status() 83 static bool ata_sff_altstatus(struct ata_port *ap, u8 *status) in ata_sff_altstatus() argument 87 if (ap->ops->sff_check_altstatus) { in ata_sff_altstatus() 88 tmp = ap->ops->sff_check_altstatus(ap); in ata_sff_altstatus() 91 if (ap->ioaddr.altstatus_addr) { in ata_sff_altstatus() 92 tmp = ioread8(ap->ioaddr.altstatus_addr); in ata_sff_altstatus() 115 static u8 ata_sff_irq_status(struct ata_port *ap) in ata_sff_irq_status() argument 120 if (ata_sff_altstatus(ap, &status) && (status & ATA_BUSY)) in ata_sff_irq_status() 123 status = ap->ops->sff_check_status(ap); in ata_sff_irq_status() [all …]
|
D | libahci.c | 48 static ssize_t ahci_led_show(struct ata_port *ap, char *buf); 49 static ssize_t ahci_led_store(struct ata_port *ap, const char *buf, 51 static ssize_t ahci_transmit_led_message(struct ata_port *ap, u32 state, 59 static void ahci_qc_ncq_fill_rtf(struct ata_port *ap, u64 done_mask); 60 static int ahci_port_start(struct ata_port *ap); 61 static void ahci_port_stop(struct ata_port *ap); 64 static void ahci_freeze(struct ata_port *ap); 65 static void ahci_thaw(struct ata_port *ap); 66 static void ahci_set_aggressive_devslp(struct ata_port *ap, bool sleep); 67 static void ahci_enable_fbs(struct ata_port *ap); [all …]
|
D | pata_atp867x.c | 69 #define ATP867X_IOBASE(ap) ((ap)->host->iomap[0]) argument 70 #define ATP867X_SYS_INFO(ap) (0x3F + ATP867X_IOBASE(ap)) argument 72 #define ATP867X_IO_PORTBASE(ap, port) (0x00 + ATP867X_IOBASE(ap) + \ argument 74 #define ATP867X_IO_DMABASE(ap, port) (0x40 + \ argument 75 ATP867X_IO_PORTBASE((ap), (port))) 77 #define ATP867X_IO_STATUS(ap, port) (0x07 + \ argument 78 ATP867X_IO_PORTBASE((ap), (port))) 79 #define ATP867X_IO_ALTSTATUS(ap, port) (0x0E + \ argument 80 ATP867X_IO_PORTBASE((ap), (port))) 85 #define ATP867X_IO_MSTRPIOSPD(ap, port) (0x08 + \ argument [all …]
|
D | sata_dwc_460ex.c | 156 #define HSDEV_FROM_AP(ap) ((struct sata_dwc_device *)(ap)->host->private_data) argument 157 #define HSDEVP_FROM_AP(ap) ((struct sata_dwc_device_port *)(ap)->private_data) argument 158 #define HSDEV_FROM_QC(qc) ((struct sata_dwc_device *)(qc)->ap->host->private_data) 176 static int sata_dwc_qc_complete(struct ata_port *ap, struct ata_queued_cmd *qc); 177 static void sata_dwc_dma_xfer_complete(struct ata_port *ap); 293 struct ata_port *ap; in dma_dwc_xfer_done() local 299 ap = host->ports[port]; in dma_dwc_xfer_done() 300 hsdevp = HSDEVP_FROM_AP(ap); in dma_dwc_xfer_done() 301 tag = ap->link.active_tag; in dma_dwc_xfer_done() 312 dev_err(ap->dev, "DMA not pending tag=0x%02x pending=%d\n", in dma_dwc_xfer_done() [all …]
|
D | sata_nv.c | 295 static void nv_nf2_freeze(struct ata_port *ap); 296 static void nv_nf2_thaw(struct ata_port *ap); 297 static void nv_ck804_freeze(struct ata_port *ap); 298 static void nv_ck804_thaw(struct ata_port *ap); 305 static void nv_adma_irq_clear(struct ata_port *ap); 306 static int nv_adma_port_start(struct ata_port *ap); 307 static void nv_adma_port_stop(struct ata_port *ap); 309 static int nv_adma_port_suspend(struct ata_port *ap, pm_message_t mesg); 310 static int nv_adma_port_resume(struct ata_port *ap); 312 static void nv_adma_freeze(struct ata_port *ap); [all …]
|
D | libata-eh.c | 155 static void __ata_port_freeze(struct ata_port *ap); 159 static void ata_eh_handle_port_suspend(struct ata_port *ap); 160 static void ata_eh_handle_port_resume(struct ata_port *ap); 162 static void ata_eh_handle_port_suspend(struct ata_port *ap) in ata_eh_handle_port_suspend() argument 165 static void ata_eh_handle_port_resume(struct ata_port *ap) in ata_eh_handle_port_resume() argument 250 void ata_port_desc(struct ata_port *ap, const char *fmt, ...) in ata_port_desc() argument 254 WARN_ON(!(ap->pflags & ATA_PFLAG_INITIALIZING)); in ata_port_desc() 256 if (ap->link.eh_info.desc_len) in ata_port_desc() 257 __ata_ehi_push_desc(&ap->link.eh_info, " "); in ata_port_desc() 260 __ata_ehi_pushv_desc(&ap->link.eh_info, fmt, args); in ata_port_desc() [all …]
|
D | sata_promise.c | 140 static int pdc_common_port_start(struct ata_port *ap); 141 static int pdc_sata_port_start(struct ata_port *ap); 143 static void pdc_tf_load_mmio(struct ata_port *ap, const struct ata_taskfile *tf); 144 static void pdc_exec_command_mmio(struct ata_port *ap, const struct ata_taskfile *tf); 147 static void pdc_irq_clear(struct ata_port *ap); 149 static void pdc_freeze(struct ata_port *ap); 150 static void pdc_sata_freeze(struct ata_port *ap); 151 static void pdc_thaw(struct ata_port *ap); 152 static void pdc_sata_thaw(struct ata_port *ap); 157 static void pdc_error_handler(struct ata_port *ap); [all …]
|
D | libata-pmp.c | 40 struct ata_port *ap = link->ap; in sata_pmp_read() local 41 struct ata_device *pmp_dev = ap->link.device; in sata_pmp_read() 77 struct ata_port *ap = link->ap; in sata_pmp_write() local 78 struct ata_device *pmp_dev = ap->link.device; in sata_pmp_write() 112 struct ata_port *ap = link->ap; in sata_pmp_qc_defer_cmd_switch() local 114 if (ap->excl_link == NULL || ap->excl_link == link) { in sata_pmp_qc_defer_cmd_switch() 115 if (ap->nr_active_links == 0 || ata_link_active(link)) { in sata_pmp_qc_defer_cmd_switch() 120 ap->excl_link = link; in sata_pmp_qc_defer_cmd_switch() 260 struct ata_port *ap = dev->link->ap; in sata_pmp_configure() local 276 if ((ap->flags & ATA_FLAG_AN) && in sata_pmp_configure() [all …]
|
D | sata_sil24.c | 332 static void sil24_pmp_attach(struct ata_port *ap); 333 static void sil24_pmp_detach(struct ata_port *ap); 334 static void sil24_freeze(struct ata_port *ap); 335 static void sil24_thaw(struct ata_port *ap); 342 static void sil24_error_handler(struct ata_port *ap); 344 static int sil24_port_start(struct ata_port *ap); 350 static int sil24_port_resume(struct ata_port *ap); 462 static unsigned long sil24_port_offset(struct ata_port *ap) in sil24_port_offset() argument 464 return ap->port_no * PORT_REGS_SIZE; in sil24_port_offset() 467 static void __iomem *sil24_port_base(struct ata_port *ap) in sil24_port_base() argument [all …]
|
D | pata_octeon_cf.c | 53 struct ata_port *ap; member 126 static void octeon_cf_set_piomode(struct ata_port *ap, struct ata_device *dev) in octeon_cf_set_piomode() argument 128 struct octeon_cf_port *cf_port = ap->private_data; in octeon_cf_set_piomode() 211 static void octeon_cf_set_dmamode(struct ata_port *ap, struct ata_device *dev) in octeon_cf_set_dmamode() argument 213 struct octeon_cf_port *cf_port = ap->private_data; in octeon_cf_set_dmamode() 295 struct ata_port *ap = qc->dev->link->ap; in octeon_cf_data_xfer8() local 296 void __iomem *data_addr = ap->ioaddr.data_addr; in octeon_cf_data_xfer8() 311 ioread8(ap->ioaddr.altstatus_addr); in octeon_cf_data_xfer8() 334 struct ata_port *ap = qc->dev->link->ap; in octeon_cf_data_xfer16() local 335 void __iomem *data_addr = ap->ioaddr.data_addr; in octeon_cf_data_xfer16() [all …]
|
D | pata_acpi.c | 39 struct ata_port *ap = link->ap; in pacpi_pre_reset() local 40 struct pata_acpi *acpi = ap->private_data; in pacpi_pre_reset() 41 if (ACPI_HANDLE(&ap->tdev) == NULL || ata_acpi_gtm(ap, &acpi->gtm) < 0) in pacpi_pre_reset() 54 static int pacpi_cable_detect(struct ata_port *ap) in pacpi_cable_detect() argument 56 struct pata_acpi *acpi = ap->private_data; in pacpi_cable_detect() 73 static unsigned long pacpi_discover_modes(struct ata_port *ap, struct ata_device *adev) in pacpi_discover_modes() argument 75 struct pata_acpi *acpi = ap->private_data; in pacpi_discover_modes() 81 ata_acpi_gtm(ap, &probe); in pacpi_discover_modes() 86 ap->cbl = ATA_CBL_PATA80; in pacpi_discover_modes() 102 struct pata_acpi *acpi = adev->link->ap->private_data; in pacpi_mode_filter() [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 | sata_sil.c | 110 static void sil_freeze(struct ata_port *ap); 111 static void sil_thaw(struct ata_port *ap); 253 struct ata_port *ap = qc->ap; in sil_bmdma_stop() local 254 void __iomem *mmio_base = ap->host->iomap[SIL_MMIO_BAR]; in sil_bmdma_stop() 255 void __iomem *bmdma2 = mmio_base + sil_port[ap->port_no].bmdma2; in sil_bmdma_stop() 261 ata_sff_dma_pause(ap); in sil_bmdma_stop() 266 struct ata_port *ap = qc->ap; in sil_bmdma_setup() local 267 void __iomem *bmdma = ap->ioaddr.bmdma_addr; in sil_bmdma_setup() 270 iowrite32(ap->bmdma_prd_dma, bmdma + ATA_DMA_TABLE_OFS); in sil_bmdma_setup() 273 ap->ops->sff_exec_command(ap, &qc->tf); in sil_bmdma_setup() [all …]
|
D | pata_pxa.c | 49 struct pata_pxa_data *pd = qc->ap->private_data; in pxa_qc_prep() 76 qc->ap->ops->sff_exec_command(qc->ap, &qc->tf); in pxa_bmdma_setup() 84 struct pata_pxa_data *pd = qc->ap->private_data; in pxa_bmdma_start() 94 struct pata_pxa_data *pd = qc->ap->private_data; in pxa_bmdma_stop() 109 static unsigned char pxa_bmdma_status(struct ata_port *ap) in pxa_bmdma_status() argument 111 struct pata_pxa_data *pd = ap->private_data; in pxa_bmdma_status() 126 static void pxa_irq_clear(struct ata_port *ap) in pxa_irq_clear() argument 162 struct ata_port *ap; in pxa_ata_probe() local 219 ap = host->ports[0]; in pxa_ata_probe() 220 ap->ops = &pxa_ata_port_ops; in pxa_ata_probe() [all …]
|
D | sata_rcar.c | 218 static void sata_rcar_freeze(struct ata_port *ap) in sata_rcar_freeze() argument 220 struct sata_rcar_priv *priv = ap->host->private_data; in sata_rcar_freeze() 225 ata_sff_freeze(ap); in sata_rcar_freeze() 228 static void sata_rcar_thaw(struct ata_port *ap) in sata_rcar_thaw() argument 230 struct sata_rcar_priv *priv = ap->host->private_data; in sata_rcar_thaw() 236 ata_sff_thaw(ap); in sata_rcar_thaw() 261 static u8 sata_rcar_check_status(struct ata_port *ap) in sata_rcar_check_status() argument 263 return ioread32(ap->ioaddr.status_addr); in sata_rcar_check_status() 266 static u8 sata_rcar_check_altstatus(struct ata_port *ap) in sata_rcar_check_altstatus() argument 268 return ioread32(ap->ioaddr.altstatus_addr); in sata_rcar_check_altstatus() [all …]
|
D | pata_gayle.c | 47 struct ata_port *ap = dev->link->ap; in pata_gayle_data_xfer() local 48 void __iomem *data_addr = ap->ioaddr.data_addr; in pata_gayle_data_xfer() 96 static bool pata_gayle_irq_check(struct ata_port *ap) in pata_gayle_irq_check() argument 100 ch = z_readb((unsigned long)ap->private_data); in pata_gayle_irq_check() 105 static void pata_gayle_irq_clear(struct ata_port *ap) in pata_gayle_irq_clear() argument 107 (void)z_readb((unsigned long)ap->ioaddr.status_addr); in pata_gayle_irq_clear() 108 z_writeb(0x7c, (unsigned long)ap->private_data); in pata_gayle_irq_clear() 132 struct ata_port *ap; in pata_gayle_init_one() local 156 ap = host->ports[0]; in pata_gayle_init_one() 159 ap->ops = &pata_gayle_a1200_ops; in pata_gayle_init_one() [all …]
|
D | libata-sata.c | 43 struct ata_port *ap = link->ap; in sata_scr_valid() local 45 return (ap->flags & ATA_FLAG_SATA) && ap->ops->scr_read; in sata_scr_valid() 69 return link->ap->ops->scr_read(link, reg, val); in sata_scr_read() 97 return link->ap->ops->scr_write(link, reg, val); in sata_scr_write() 126 rc = link->ap->ops->scr_write(link, reg, val); in sata_scr_write_flush() 128 rc = link->ap->ops->scr_read(link, reg, &val); in sata_scr_write_flush() 256 ata_msleep(link->ap, interval); in sata_link_debounce() 323 ata_msleep(link->ap, 200); in sata_link_resume() 407 if (link->ap->host->flags & ATA_HOST_NO_PART) in sata_link_scr_lpm() 410 if (link->ap->host->flags & ATA_HOST_NO_SSC) in sata_link_scr_lpm() [all …]
|
D | sata_qstor.c | 101 static int qs_port_start(struct ata_port *ap); 106 static void qs_freeze(struct ata_port *ap); 107 static void qs_thaw(struct ata_port *ap); 109 static void qs_error_handler(struct ata_port *ap); 171 static inline void qs_enter_reg_mode(struct ata_port *ap) in qs_enter_reg_mode() argument 173 u8 __iomem *chan = qs_mmio_base(ap->host) + (ap->port_no * 0x4000); in qs_enter_reg_mode() 174 struct qs_port_priv *pp = ap->private_data; in qs_enter_reg_mode() 181 static inline void qs_reset_channel_logic(struct ata_port *ap) in qs_reset_channel_logic() argument 183 u8 __iomem *chan = qs_mmio_base(ap->host) + (ap->port_no * 0x4000); in qs_reset_channel_logic() 187 qs_enter_reg_mode(ap); in qs_reset_channel_logic() [all …]
|
D | sata_fsl.c | 388 static inline unsigned int sata_fsl_tag(struct ata_port *ap, in sata_fsl_tag() argument 395 ata_port_dbg(ap, "tag %d invalid : out of range\n", tag); in sata_fsl_tag() 400 ata_port_dbg(ap, "tag %d invalid : in use!!\n", tag); in sata_fsl_tag() 407 static void sata_fsl_setup_cmd_hdr_entry(struct ata_port *ap, in sata_fsl_setup_cmd_hdr_entry() argument 426 ata_port_dbg(ap, "cda=0x%x, prde_fis_len=0x%x, ttl=0x%x, di=0x%x\n", in sata_fsl_setup_cmd_hdr_entry() 461 ata_port_err(qc->ap, "s/g addr unaligned : 0x%llx\n", in sata_fsl_fill_sg() 464 ata_port_err(qc->ap, "s/g len unaligned : 0x%x\n", in sata_fsl_fill_sg() 500 struct ata_port *ap = qc->ap; in sata_fsl_qc_prep() local 501 struct sata_fsl_port_priv *pp = ap->private_data; in sata_fsl_qc_prep() 502 struct sata_fsl_host_priv *host_priv = ap->host->private_data; in sata_fsl_qc_prep() [all …]
|
/linux-6.12.1/drivers/net/ethernet/alteon/ |
D | acenic.c | 87 #define ACE_IS_TIGON_I(ap) 0 argument 88 #define ACE_TX_RING_ENTRIES(ap) MAX_TX_RING_ENTRIES argument 90 #define ACE_IS_TIGON_I(ap) (ap->version == 1) argument 91 #define ACE_TX_RING_ENTRIES(ap) ap->tx_ring_entries argument 458 struct ace_private *ap; in acenic_probe_one() local 467 ap = netdev_priv(dev); in acenic_probe_one() 468 ap->ndev = dev; in acenic_probe_one() 469 ap->pdev = pdev; in acenic_probe_one() 470 ap->name = pci_name(pdev); in acenic_probe_one() 496 pci_read_config_word(pdev, PCI_COMMAND, &ap->pci_command); in acenic_probe_one() [all …]
|
/linux-6.12.1/arch/arm/boot/dts/ti/omap/ |
D | omap5-l4-abe.dtsi | 5 reg-names = "la", "ap"; 18 <0x00000000 0x00000000 0x000400>, /* ap 0 */ 19 <0x00000400 0x00000400 0x000400>, /* ap 1 */ 20 <0x00022000 0x00022000 0x001000>, /* ap 2 */ 21 <0x00023000 0x00023000 0x001000>, /* ap 3 */ 22 <0x00024000 0x00024000 0x001000>, /* ap 4 */ 23 <0x00025000 0x00025000 0x001000>, /* ap 5 */ 24 <0x00026000 0x00026000 0x001000>, /* ap 6 */ 25 <0x00027000 0x00027000 0x001000>, /* ap 7 */ 26 <0x00028000 0x00028000 0x001000>, /* ap 8 */ [all …]
|
D | dra7-l4.dtsi | 9 reg-names = "ap", "la", "ia0"; 20 ranges = <0x00000000 0x00000000 0x000800>, /* ap 0 */ 21 <0x00000800 0x00000800 0x000800>, /* ap 1 */ 22 <0x00001000 0x00001000 0x001000>, /* ap 2 */ 23 <0x00002000 0x00002000 0x002000>, /* ap 3 */ 24 <0x00004000 0x00004000 0x001000>, /* ap 4 */ 25 <0x00005000 0x00005000 0x001000>, /* ap 5 */ 26 <0x00006000 0x00006000 0x001000>, /* ap 6 */ 27 <0x00008000 0x00008000 0x002000>, /* ap 7 */ 28 <0x0000a000 0x0000a000 0x001000>, /* ap 8 */ [all …]
|
/linux-6.12.1/drivers/video/ |
D | aperture.c | 152 struct aperture_range *ap = data; in devm_aperture_acquire_release() local 153 bool detached = !ap->dev; in devm_aperture_acquire_release() 159 list_del(&ap->lh); in devm_aperture_acquire_release() 169 struct aperture_range *ap; in devm_aperture_acquire() local 174 ap = container_of(pos, struct aperture_range, lh); in devm_aperture_acquire() 175 if (overlap(base, end, ap->base, ap->base + ap->size)) { in devm_aperture_acquire() 181 ap = devm_kzalloc(dev, sizeof(*ap), GFP_KERNEL); in devm_aperture_acquire() 182 if (!ap) { in devm_aperture_acquire() 187 ap->dev = dev; in devm_aperture_acquire() 188 ap->base = base; in devm_aperture_acquire() [all …]
|