/linux/drivers/net/ppp/ |
H A 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 …]
|
H A 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/drivers/ata/ |
H A D | libata-sff.c | 54 * @ap: port where the device is 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() 71 * @ap: port where the device is 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() 105 * @ap: port where the device is [all …]
|
H A 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 …]
|
H A D | pata_atp867x.c | 30 * Note that all runtime hot priv ports are cached in ap private_data 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))) [all …]
|
H A 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 …]
|
H A D | sata_promise.c | 49 /* per-port ATA register offsets (from ap->ioaddr.cmd_addr) */ 62 /* per-port SATA register offsets (from ap->ioaddr.scr_addr) */ 122 /* ap->flags bits */ 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); [all …]
|
H A 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 239 * @ap: target ATA port 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() [all …]
|
H A 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() 49 * @ap: port to detect 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() 66 * @ap: ATA port 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() [all …]
|
H A 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 …]
|
H A D | sata_sil24.c | 314 * ap->private_data 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); 461 static unsigned long sil24_port_offset(struct ata_port *ap) in sil24_port_offset() argument 463 return ap->port_no * PORT_REGS_SIZE; in sil24_port_offset() [all …]
|
H A 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 …]
|
H A D | pdc_adma.c | 40 #define ADMA_PORT_REGS(ap) \ argument 41 ADMA_REGS((ap)->host->iomap[ADMA_MMIO_BAR], ap->port_no) 117 static int adma_port_start(struct ata_port *ap); 118 static void adma_port_stop(struct ata_port *ap); 122 static void adma_freeze(struct ata_port *ap); 123 static void adma_thaw(struct ata_port *ap); 177 static void adma_reset_engine(struct ata_port *ap) in adma_reset_engine() argument 179 void __iomem *chan = ADMA_PORT_REGS(ap); in adma_reset_engine() 188 static void adma_reinit_engine(struct ata_port *ap) in adma_reinit_engine() argument 190 struct adma_port_priv *pp = ap->private_data; in adma_reinit_engine() [all …]
|
H A 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 …]
|
H A D | libata-acpi.c | 45 struct ata_port *ap; member 66 /* @ap and @dev are the same as ata_acpi_handle_hotplug() */ 67 static void ata_acpi_detach_device(struct ata_port *ap, struct ata_device *dev) in ata_acpi_detach_device() argument 75 ata_for_each_link(tlink, ap, EDGE) in ata_acpi_detach_device() 80 ata_port_schedule_eh(ap); in ata_acpi_detach_device() 85 * @ap: ATA port ACPI event occurred 100 static void ata_acpi_handle_hotplug(struct ata_port *ap, struct ata_device *dev, in ata_acpi_handle_hotplug() argument 103 struct ata_eh_info *ehi = &ap->link.eh_info; in ata_acpi_handle_hotplug() 107 spin_lock_irqsave(ap->lock, flags); in ata_acpi_handle_hotplug() 119 ata_port_freeze(ap); in ata_acpi_handle_hotplug() [all …]
|
H A 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 …]
|
/linux/drivers/net/ethernet/alteon/ |
H A 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/Documentation/arch/s390/ |
H A D | vfio-ap.rst | 2 Adjunct Processor (AP) facility 8 The Adjunct Processor (AP) facility is an IBM Z cryptographic facility comprised 9 of three AP instructions and from 1 up to 256 PCIe cryptographic adapter cards. 10 The AP devices provide cryptographic functions to all CPUs assigned to a 13 The AP adapter cards are exposed via the AP bus. The motivation for vfio-ap 14 is to make AP cards available to KVM guests using the VFIO mediated device 16 facilities which do most of the hard work of providing direct access to AP 19 AP Architectural Overview 24 * AP adapter 26 An AP adapter is an IBM Z adapter card that can perform cryptographic [all …]
|
/linux/arch/arm/boot/dts/ti/omap/ |
H A 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 …]
|
H A D | am33xx-l4.dtsi | 10 reg-names = "ap", "la", "ia0", "ia1"; 21 ranges = <0x00000000 0x00000000 0x000800>, /* ap 0 */ 22 <0x00000800 0x00000800 0x000800>, /* ap 1 */ 23 <0x00001000 0x00001000 0x000400>, /* ap 2 */ 24 <0x00001400 0x00001400 0x000400>; /* ap 3 */ 31 ranges = <0x00000000 0x00100000 0x004000>, /* ap 4 */ 32 <0x00004000 0x00104000 0x001000>, /* ap 5 */ 33 <0x00080000 0x00180000 0x002000>, /* ap 6 */ 34 <0x00082000 0x00182000 0x001000>; /* ap 7 */ 36 target-module@0 { /* 0x44d00000, ap 4 28.0 */ [all …]
|
H A D | omap5-l4.dtsi | 9 reg-names = "ap", "la", "ia0"; 24 ranges = <0x00000000 0x00000000 0x000800>, /* ap 0 */ 25 <0x00001000 0x00001000 0x001000>, /* ap 1 */ 26 <0x00000800 0x00000800 0x000800>, /* ap 2 */ 27 <0x00002000 0x00002000 0x001000>, /* ap 3 */ 28 <0x00003000 0x00003000 0x001000>, /* ap 4 */ 29 <0x00004000 0x00004000 0x001000>, /* ap 5 */ 30 <0x00005000 0x00005000 0x001000>, /* ap 6 */ 31 <0x00056000 0x00056000 0x001000>, /* ap 7 */ 32 <0x00057000 0x00057000 0x001000>, /* ap 8 */ [all …]
|
H A D | omap4-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 …]
|
H A D | omap4-l4.dtsi | 10 reg-names = "ap", "la", "ia0"; 25 ranges = <0x00000000 0x00000000 0x000800>, /* ap 0 */ 26 <0x00001000 0x00001000 0x001000>, /* ap 1 */ 27 <0x00000800 0x00000800 0x000800>, /* ap 2 */ 28 <0x00002000 0x00002000 0x001000>, /* ap 3 */ 29 <0x00003000 0x00003000 0x001000>, /* ap 4 */ 30 <0x00004000 0x00004000 0x001000>, /* ap 5 */ 31 <0x00005000 0x00005000 0x001000>, /* ap 6 */ 32 <0x00056000 0x00056000 0x001000>, /* ap 7 */ 33 <0x00057000 0x00057000 0x001000>, /* ap 8 */ [all …]
|
/linux/net/9p/ |
H A D | protocol.c | 37 * @ap: variable arguments to be fed to passed format template 44 const char *fmt, va_list ap) in p9_msg_buf_size() argument 70 va_arg(ap, int32_t); in p9_msg_buf_size() 71 va_arg(ap, int32_t); in p9_msg_buf_size() 73 const char *uname = va_arg(ap, const char *); in p9_msg_buf_size() 74 const char *aname = va_arg(ap, const char *); in p9_msg_buf_size() 80 va_arg(ap, int32_t); in p9_msg_buf_size() 81 va_arg(ap, int32_t); in p9_msg_buf_size() 83 uint i, nwname = va_arg(ap, int); in p9_msg_buf_size() 85 const char **wnames = va_arg(ap, const char **); in p9_msg_buf_size() [all …]
|
/linux/drivers/scsi/libsas/ |
H A D | sas_ata.c | 83 struct ata_port *ap; in sas_ata_task_done() local 99 ap = qc->ap; in sas_ata_task_done() 100 link = &ap->link; in sas_ata_task_done() 102 spin_lock_irqsave(ap->lock, flags); in sas_ata_task_done() 104 if (unlikely(ata_port_is_frozen(ap))) { in sas_ata_task_done() 105 spin_unlock_irqrestore(ap->lock, flags); in sas_ata_task_done() 149 spin_unlock_irqrestore(ap->lock, flags); in sas_ata_task_done() 156 __must_hold(ap->lock) in sas_ata_qc_issue() 162 struct ata_port *ap = qc->ap; in sas_ata_qc_issue() local 163 struct domain_device *dev = ap->private_data; in sas_ata_qc_issue() [all …]
|