ap 173 arch/arc/kernel/setup.c struct bcr_actionpoint ap; ap 235 arch/arc/kernel/setup.c READ_BCR(ARC_REG_AP_BCR, ap); ap 236 arch/arc/kernel/setup.c if (ap.ver) { ap 237 arch/arc/kernel/setup.c cpu->extn.ap_num = 2 << ap.num; ap 238 arch/arc/kernel/setup.c cpu->extn.ap_full = !ap.min; ap 367 arch/arm/kernel/setup.c va_list ap; ap 369 arch/arm/kernel/setup.c va_start(ap, str); ap 370 arch/arm/kernel/setup.c vsnprintf(buf, sizeof(buf), str, ap); ap 371 arch/arm/kernel/setup.c va_end(ap); ap 85 arch/arm/vdso/vdsomunge.c va_list ap; ap 89 arch/arm/vdso/vdsomunge.c va_start(ap, fmt); ap 90 arch/arm/vdso/vdsomunge.c vfprintf(stderr, fmt, ap); ap 91 arch/arm/vdso/vdsomunge.c va_end(ap); ap 118 arch/arm64/include/asm/alternative.h altinstruction_entry 661b, 663f, \cap, 662b-661b, 664f-663f ap 153 arch/arm64/include/asm/alternative.h altinstruction_entry 661f, 663f, \cap, 662f-661f, 664f-663f ap 161 arch/arm64/include/asm/alternative.h altinstruction_entry 663f, 661f, \cap, 664f-663f, 662f-661f ap 180 arch/ia64/kernel/sal.c struct ia64_sal_desc_ap_wakeup *ap = p; ap 182 arch/ia64/kernel/sal.c switch (ap->mechanism) { ap 184 arch/ia64/kernel/sal.c ap_wakeup_vector = ap->vector; ap 57 arch/m68k/emu/natfeat.c va_list ap; ap 60 arch/m68k/emu/natfeat.c va_start(ap, fmt); ap 61 arch/m68k/emu/natfeat.c n = vsnprintf(buf, 256, fmt, ap); ap 63 arch/m68k/emu/natfeat.c va_end(ap); ap 16 arch/mips/boot/tools/relocs_main.c va_list ap; ap 18 arch/mips/boot/tools/relocs_main.c va_start(ap, fmt); ap 19 arch/mips/boot/tools/relocs_main.c vfprintf(stderr, fmt, ap); ap 20 arch/mips/boot/tools/relocs_main.c va_end(ap); ap 159 arch/mips/mm/uasm-micromips.c va_list ap; ap 170 arch/mips/mm/uasm-micromips.c va_start(ap, opc); ap 174 arch/mips/mm/uasm-micromips.c op |= build_rt(va_arg(ap, u32)); ap 176 arch/mips/mm/uasm-micromips.c op |= build_rs(va_arg(ap, u32)); ap 181 arch/mips/mm/uasm-micromips.c op |= build_rs(va_arg(ap, u32)); ap 183 arch/mips/mm/uasm-micromips.c op |= build_rt(va_arg(ap, u32)); ap 186 arch/mips/mm/uasm-micromips.c op |= build_rd(va_arg(ap, u32)); ap 188 arch/mips/mm/uasm-micromips.c op |= build_re(va_arg(ap, u32)); ap 190 arch/mips/mm/uasm-micromips.c op |= build_simm(va_arg(ap, s32)); ap 192 arch/mips/mm/uasm-micromips.c op |= build_uimm(va_arg(ap, u32)); ap 194 arch/mips/mm/uasm-micromips.c op |= build_bimm(va_arg(ap, s32)); ap 196 arch/mips/mm/uasm-micromips.c op |= build_jimm(va_arg(ap, u32)); ap 198 arch/mips/mm/uasm-micromips.c op |= build_func(va_arg(ap, u32)); ap 200 arch/mips/mm/uasm-micromips.c op |= build_set(va_arg(ap, u32)); ap 202 arch/mips/mm/uasm-micromips.c op |= build_scimm(va_arg(ap, u32)); ap 203 arch/mips/mm/uasm-micromips.c va_end(ap); ap 233 arch/mips/mm/uasm-mips.c va_list ap; ap 244 arch/mips/mm/uasm-mips.c va_start(ap, opc); ap 246 arch/mips/mm/uasm-mips.c op |= build_rs(va_arg(ap, u32)); ap 248 arch/mips/mm/uasm-mips.c op |= build_rt(va_arg(ap, u32)); ap 250 arch/mips/mm/uasm-mips.c op |= build_rd(va_arg(ap, u32)); ap 252 arch/mips/mm/uasm-mips.c op |= build_re(va_arg(ap, u32)); ap 254 arch/mips/mm/uasm-mips.c op |= build_simm(va_arg(ap, s32)); ap 256 arch/mips/mm/uasm-mips.c op |= build_uimm(va_arg(ap, u32)); ap 258 arch/mips/mm/uasm-mips.c op |= build_bimm(va_arg(ap, s32)); ap 260 arch/mips/mm/uasm-mips.c op |= build_jimm(va_arg(ap, u32)); ap 262 arch/mips/mm/uasm-mips.c op |= build_func(va_arg(ap, u32)); ap 264 arch/mips/mm/uasm-mips.c op |= build_set(va_arg(ap, u32)); ap 266 arch/mips/mm/uasm-mips.c op |= build_scimm(va_arg(ap, u32)); ap 268 arch/mips/mm/uasm-mips.c op |= build_scimm9(va_arg(ap, u32)); ap 269 arch/mips/mm/uasm-mips.c va_end(ap); ap 115 arch/nios2/lib/memcpy.c op_t ap; ap 127 arch/nios2/lib/memcpy.c ap = ((op_t *) srcp)[0]; ap 137 arch/nios2/lib/memcpy.c ((op_t *) dstp)[0] = MERGE(ap, sh_1, a0, sh_2); ap 142 arch/nios2/lib/memcpy.c ap = a3; ap 151 arch/nios2/lib/memcpy.c ((op_t *) dstp)[0] = MERGE(ap, sh_1, a0, sh_2); ap 153 arch/nios2/lib/memcpy.c ap = a0; ap 29 arch/parisc/include/asm/asmregs.h ap: .reg r29 ap 118 arch/powerpc/boot/devtree.c va_list ap; ap 122 arch/powerpc/boot/devtree.c va_start(ap, startindex); ap 124 arch/powerpc/boot/devtree.c while ((addr = va_arg(ap, const u8 *))) ap 127 arch/powerpc/boot/devtree.c va_end(ap); ap 202 arch/powerpc/include/asm/book3s/64/mmu-hash.h static inline unsigned int ap_to_shift(unsigned long ap) ap 207 arch/powerpc/include/asm/book3s/64/mmu-hash.h if (mmu_psize_defs[psize].ap == ap) ap 24 arch/powerpc/include/asm/book3s/64/mmu.h unsigned long ap; /* Ap encoding used by PowerISA 3.0 */ ap 11 arch/powerpc/include/asm/book3s/64/tlbflush-radix.h return mmu_psize_defs[psize].ap; ap 1103 arch/powerpc/kvm/book3s_64_mmu_radix.c (mmu_psize_defs[psize].ap << 29); ap 974 arch/powerpc/kvm/book3s_hv_nested.c int ap, long epn) ap 982 arch/powerpc/kvm/book3s_hv_nested.c shift = ap_to_shift(ap); ap 1063 arch/powerpc/kvm/book3s_hv_nested.c int r, ric, prs, is, ap; ap 1093 arch/powerpc/kvm/book3s_hv_nested.c ap = get_ap(rbval); ap 1094 arch/powerpc/kvm/book3s_hv_nested.c ret = kvmhv_emulate_tlbie_tlb_addr(vcpu, lpid, ap, epn); ap 616 arch/powerpc/mm/book3s64/hash_utils.c long int ap, bp; ap 622 arch/powerpc/mm/book3s64/hash_utils.c for (ap = bp; ap < MMU_PAGE_COUNT; ++ap) { ap 623 arch/powerpc/mm/book3s64/hash_utils.c penc = mmu_psize_defs[bp].penc[ap]; ap 624 arch/powerpc/mm/book3s64/hash_utils.c if (penc == -1 || !mmu_psize_defs[ap].shift) ap 626 arch/powerpc/mm/book3s64/hash_utils.c shift = mmu_psize_defs[ap].shift - LP_SHIFT; ap 635 arch/powerpc/mm/book3s64/hash_utils.c hpte_page_sizes[penc] = (ap << 4) | bp; ap 429 arch/powerpc/mm/book3s64/radix_pgtable.c unsigned int ap; ap 454 arch/powerpc/mm/book3s64/radix_pgtable.c ap = be32_to_cpu(prop[0]) >> 29; ap 455 arch/powerpc/mm/book3s64/radix_pgtable.c pr_info("Page size shift = %d AP=0x%x\n", shift, ap); ap 463 arch/powerpc/mm/book3s64/radix_pgtable.c def->ap = ap; ap 485 arch/powerpc/mm/book3s64/radix_pgtable.c mmu_psize_defs[MMU_PAGE_4K].ap = 0x0; ap 488 arch/powerpc/mm/book3s64/radix_pgtable.c mmu_psize_defs[MMU_PAGE_64K].ap = 0x5; ap 152 arch/powerpc/mm/book3s64/radix_tlb.c unsigned long ap, unsigned long ric) ap 157 arch/powerpc/mm/book3s64/radix_tlb.c rb |= ap << PPC_BITLSHIFT(58); ap 168 arch/powerpc/mm/book3s64/radix_tlb.c unsigned long ap, unsigned long ric) ap 173 arch/powerpc/mm/book3s64/radix_tlb.c rb |= ap << PPC_BITLSHIFT(58); ap 184 arch/powerpc/mm/book3s64/radix_tlb.c unsigned long ap, unsigned long ric) ap 189 arch/powerpc/mm/book3s64/radix_tlb.c rb |= ap << PPC_BITLSHIFT(58); ap 201 arch/powerpc/mm/book3s64/radix_tlb.c unsigned long ap) ap 205 arch/powerpc/mm/book3s64/radix_tlb.c __tlbie_va(va, 0, ap, RIC_FLUSH_TLB); ap 210 arch/powerpc/mm/book3s64/radix_tlb.c __tlbie_va(va, pid, ap, RIC_FLUSH_TLB); ap 215 arch/powerpc/mm/book3s64/radix_tlb.c unsigned long ap) ap 224 arch/powerpc/mm/book3s64/radix_tlb.c __tlbie_va(va, pid, ap, RIC_FLUSH_TLB); ap 249 arch/powerpc/mm/book3s64/radix_tlb.c unsigned long ap) ap 253 arch/powerpc/mm/book3s64/radix_tlb.c __tlbie_lpid_va(va, 0, ap, RIC_FLUSH_TLB); ap 258 arch/powerpc/mm/book3s64/radix_tlb.c __tlbie_lpid_va(va, lpid, ap, RIC_FLUSH_TLB); ap 420 arch/powerpc/mm/book3s64/radix_tlb.c unsigned long ap = mmu_get_ap(psize); ap 423 arch/powerpc/mm/book3s64/radix_tlb.c __tlbiel_va(addr, pid, ap, RIC_FLUSH_TLB); ap 429 arch/powerpc/mm/book3s64/radix_tlb.c unsigned long ap = mmu_get_ap(psize); ap 432 arch/powerpc/mm/book3s64/radix_tlb.c __tlbiel_va(va, pid, ap, ric); ap 452 arch/powerpc/mm/book3s64/radix_tlb.c unsigned long ap = mmu_get_ap(psize); ap 455 arch/powerpc/mm/book3s64/radix_tlb.c __tlbie_va(addr, pid, ap, RIC_FLUSH_TLB); ap 457 arch/powerpc/mm/book3s64/radix_tlb.c fixup_tlbie_va_range(addr - page_size, pid, ap); ap 463 arch/powerpc/mm/book3s64/radix_tlb.c unsigned long ap = mmu_get_ap(psize); ap 466 arch/powerpc/mm/book3s64/radix_tlb.c __tlbie_va(va, pid, ap, ric); ap 467 arch/powerpc/mm/book3s64/radix_tlb.c fixup_tlbie_va(va, pid, ap); ap 521 arch/powerpc/mm/book3s64/radix_tlb.c unsigned long ap = mmu_get_ap(psize); ap 524 arch/powerpc/mm/book3s64/radix_tlb.c __tlbie_lpid_va(va, lpid, ap, ric); ap 525 arch/powerpc/mm/book3s64/radix_tlb.c fixup_tlbie_lpid_va(va, lpid, ap); ap 77 arch/s390/include/asm/nmi.h u64 ap : 1; /* 44 ancillary report */ ap 1028 arch/s390/kernel/debug.c va_list ap; ap 1042 arch/s390/kernel/debug.c va_start(ap, string); ap 1045 arch/s390/kernel/debug.c curr_event->args[idx] = va_arg(ap, long); ap 1046 arch/s390/kernel/debug.c va_end(ap); ap 1063 arch/s390/kernel/debug.c va_list ap; ap 1078 arch/s390/kernel/debug.c va_start(ap, string); ap 1081 arch/s390/kernel/debug.c curr_event->args[idx] = va_arg(ap, long); ap 1082 arch/s390/kernel/debug.c va_end(ap); ap 938 arch/sparc/kernel/ds.c struct ds_reg_ack *ap = (struct ds_reg_ack *) pkt; ap 939 arch/sparc/kernel/ds.c struct ds_cap_state *cp = find_cap(dp, ap->handle); ap 943 arch/sparc/kernel/ds.c "handle %llx\n", dp->id, ap->handle); ap 86 arch/sparc/vdso/vdso2c.c va_list ap; ap 88 arch/sparc/vdso/vdso2c.c va_start(ap, format); ap 90 arch/sparc/vdso/vdso2c.c vfprintf(stderr, format, ap); ap 94 arch/sparc/vdso/vdso2c.c va_end(ap); ap 253 arch/um/drivers/net_user.c va_list ap; ap 255 arch/um/drivers/net_user.c va_start(ap, str); ap 256 arch/um/drivers/net_user.c while ((arg = va_arg(ap, char **)) != NULL) { ap 269 arch/um/drivers/net_user.c va_end(ap); ap 106 arch/x86/entry/vdso/vdso2c.c va_list ap; ap 107 arch/x86/entry/vdso/vdso2c.c va_start(ap, format); ap 109 arch/x86/entry/vdso/vdso2c.c vfprintf(stderr, format, ap); ap 113 arch/x86/entry/vdso/vdso2c.c va_end(ap); ap 70 arch/x86/kernel/cpu/resctrl/rdtgroup.c va_list ap; ap 72 arch/x86/kernel/cpu/resctrl/rdtgroup.c va_start(ap, fmt); ap 74 arch/x86/kernel/cpu/resctrl/rdtgroup.c seq_buf_vprintf(&last_cmd_status, fmt, ap); ap 75 arch/x86/kernel/cpu/resctrl/rdtgroup.c va_end(ap); ap 293 arch/x86/kernel/e820.c const struct change_member *ap = *app, *bp = *bpp; ap 301 arch/x86/kernel/e820.c if (ap->addr != bp->addr) ap 302 arch/x86/kernel/e820.c return ap->addr > bp->addr ? 1 : -1; ap 304 arch/x86/kernel/e820.c return (ap->addr != ap->entry->addr) - (bp->addr != bp->entry->addr); ap 51 arch/x86/tools/insn_decoder_test.c va_list ap; ap 54 arch/x86/tools/insn_decoder_test.c va_start(ap, fmt); ap 55 arch/x86/tools/insn_decoder_test.c vfprintf(stderr, fmt, ap); ap 56 arch/x86/tools/insn_decoder_test.c va_end(ap); ap 6 arch/x86/tools/relocs_common.c va_list ap; ap 7 arch/x86/tools/relocs_common.c va_start(ap, fmt); ap 8 arch/x86/tools/relocs_common.c vfprintf(stderr, fmt, ap); ap 9 arch/x86/tools/relocs_common.c va_end(ap); ap 101 arch/xtensa/platforms/iss/network.c va_list ap; ap 103 arch/xtensa/platforms/iss/network.c va_start(ap, str); ap 104 arch/xtensa/platforms/iss/network.c while ((arg = va_arg(ap, char**)) != NULL) { ap 106 arch/xtensa/platforms/iss/network.c va_end(ap); ap 113 arch/xtensa/platforms/iss/network.c va_end(ap); ap 119 arch/xtensa/platforms/iss/network.c va_end(ap); ap 314 crypto/gf128mul.c u8 *ap = (u8 *)a; ap 318 crypto/gf128mul.c *r = t->t[0]->t[ap[15]]; ap 320 crypto/gf128mul.c be128_xor(r, r, &t->t[i]->t[ap[15 - i]]); ap 387 crypto/gf128mul.c u8 *ap = (u8 *)a; ap 391 crypto/gf128mul.c *r = t->t[ap[15]]; ap 394 crypto/gf128mul.c be128_xor(r, r, &t->t[ap[i]]); ap 402 crypto/gf128mul.c u8 *ap = (u8 *)a; ap 406 crypto/gf128mul.c *r = t->t[ap[0]]; ap 409 crypto/gf128mul.c be128_xor(r, r, &t->t[ap[i]]); ap 61 drivers/ata/acard-ahci.c static int acard_ahci_port_start(struct ata_port *ap); ap 215 drivers/ata/acard-ahci.c struct ata_port *ap = qc->ap; ap 216 drivers/ata/acard-ahci.c struct ahci_port_priv *pp = ap->private_data; ap 255 drivers/ata/acard-ahci.c struct ahci_port_priv *pp = qc->ap->private_data; ap 277 drivers/ata/acard-ahci.c static int acard_ahci_port_start(struct ata_port *ap) ap 279 drivers/ata/acard-ahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 280 drivers/ata/acard-ahci.c struct device *dev = ap->host->dev; ap 291 drivers/ata/acard-ahci.c if ((hpriv->cap & HOST_CAP_FBS) && sata_pmp_supported(ap)) { ap 292 drivers/ata/acard-ahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 298 drivers/ata/acard-ahci.c ap->port_no); ap 302 drivers/ata/acard-ahci.c ap->port_no); ap 349 drivers/ata/acard-ahci.c ap->private_data = pp; ap 352 drivers/ata/acard-ahci.c return ahci_port_resume(ap); ap 427 drivers/ata/acard-ahci.c struct ata_port *ap = host->ports[i]; ap 429 drivers/ata/acard-ahci.c ata_port_pbar_desc(ap, AHCI_PCI_BAR, -1, "abar"); ap 430 drivers/ata/acard-ahci.c ata_port_pbar_desc(ap, AHCI_PCI_BAR, ap 431 drivers/ata/acard-ahci.c 0x100 + ap->port_no * 0x80, "port"); ap 439 drivers/ata/acard-ahci.c ap->ops = &ata_dummy_port_ops; ap 671 drivers/ata/ahci.c struct ata_port *ap = link->ap; ap 672 drivers/ata/ahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 678 drivers/ata/ahci.c hpriv->stop_engine(ap); ap 683 drivers/ata/ahci.c hpriv->start_engine(ap); ap 696 drivers/ata/ahci.c struct ata_port *ap = link->ap; ap 697 drivers/ata/ahci.c struct ahci_port_priv *pp = ap->private_data; ap 698 drivers/ata/ahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 704 drivers/ata/ahci.c hpriv->stop_engine(ap); ap 714 drivers/ata/ahci.c hpriv->start_engine(ap); ap 733 drivers/ata/ahci.c ahci_kick_engine(ap); ap 757 drivers/ata/ahci.c struct ata_port *ap = link->ap; ap 758 drivers/ata/ahci.c struct ahci_port_priv *pp = ap->private_data; ap 759 drivers/ata/ahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 768 drivers/ata/ahci.c hpriv->stop_engine(ap); ap 773 drivers/ata/ahci.c int port = ap->port_no; ap 774 drivers/ata/ahci.c struct ata_host *host = ap->host; ap 795 drivers/ata/ahci.c ata_msleep(ap, 1000); ap 801 drivers/ata/ahci.c hpriv->start_engine(ap); ap 804 drivers/ata/ahci.c *class = ahci_dev_classify(ap); ap 968 drivers/ata/ahci.c struct ata_port *ap = host->ports[1]; ap 973 drivers/ata/ahci.c ap->ops = &ahci_p5wdh_ops; ap 974 drivers/ata/ahci.c ap->link.flags |= ATA_LFLAG_NO_SRST | ATA_LFLAG_ASSUME_ATA; ap 1390 drivers/ata/ahci.c struct ata_port *ap = host->ports[i]; ap 1394 drivers/ata/ahci.c ata_for_each_link(link, ap, EDGE) ap 1565 drivers/ata/ahci.c static void ahci_update_initial_lpm_policy(struct ata_port *ap, ap 1593 drivers/ata/ahci.c ap->target_lpm_policy = policy; ap 1825 drivers/ata/ahci.c struct ata_port *ap = host->ports[i]; ap 1827 drivers/ata/ahci.c ata_port_pbar_desc(ap, ahci_pci_bar, -1, "abar"); ap 1828 drivers/ata/ahci.c ata_port_pbar_desc(ap, ahci_pci_bar, ap 1829 drivers/ata/ahci.c 0x100 + ap->port_no * 0x80, "port"); ap 1832 drivers/ata/ahci.c if (ap->flags & ATA_FLAG_EM) ap 1833 drivers/ata/ahci.c ap->em_message_type = hpriv->em_msg_type; ap 1835 drivers/ata/ahci.c ahci_update_initial_lpm_policy(ap, hpriv); ap 1839 drivers/ata/ahci.c ap->ops = &ata_dummy_port_ops; ap 358 drivers/ata/ahci.h void (*start_engine)(struct ata_port *ap); ap 364 drivers/ata/ahci.h int (*stop_engine)(struct ata_port *ap); ap 394 drivers/ata/ahci.h unsigned int ahci_dev_classify(struct ata_port *ap); ap 410 drivers/ata/ahci.h int ahci_stop_engine(struct ata_port *ap); ap 411 drivers/ata/ahci.h void ahci_start_fis_rx(struct ata_port *ap); ap 412 drivers/ata/ahci.h void ahci_start_engine(struct ata_port *ap); ap 414 drivers/ata/ahci.h int ahci_kick_engine(struct ata_port *ap); ap 415 drivers/ata/ahci.h int ahci_port_resume(struct ata_port *ap); ap 421 drivers/ata/ahci.h void ahci_error_handler(struct ata_port *ap); ap 433 drivers/ata/ahci.h static inline void __iomem *ahci_port_base(struct ata_port *ap) ap 435 drivers/ata/ahci.h return __ahci_port_base(ap->host, ap->port_no); ap 249 drivers/ata/ahci_brcm.c struct ata_port *ap = dev->link->ap; ap 250 drivers/ata/ahci_brcm.c struct ata_host *host = ap->host; ap 275 drivers/ata/ahci_brcm.c brcm_sata_phy_disable(priv, ap->port_no); ap 285 drivers/ata/ahci_brcm.c brcm_sata_phy_enable(priv, ap->port_no); ap 746 drivers/ata/ahci_imx.c static void ahci_imx_error_handler(struct ata_port *ap) ap 750 drivers/ata/ahci_imx.c struct ata_host *host = dev_get_drvdata(ap->dev); ap 755 drivers/ata/ahci_imx.c ahci_error_handler(ap); ap 762 drivers/ata/ahci_imx.c ata_for_each_dev(dev, &ap->link, ENABLED) ap 774 drivers/ata/ahci_imx.c dev_info(ap->dev, "no device found, disabling link.\n"); ap 775 drivers/ata/ahci_imx.c dev_info(ap->dev, "pass " MODULE_PARAM_PREFIX ".hotplug=1 to enable hotplug\n"); ap 781 drivers/ata/ahci_imx.c struct ata_port *ap = link->ap; ap 782 drivers/ata/ahci_imx.c struct ata_host *host = dev_get_drvdata(ap->dev); ap 119 drivers/ata/ahci_mvebu.c static int ahci_mvebu_stop_engine(struct ata_port *ap) ap 121 drivers/ata/ahci_mvebu.c void __iomem *port_mmio = ahci_port_base(ap); ap 145 drivers/ata/ahci_mvebu.c tmp = ata_wait_register(ap, port_mmio + PORT_CMD, ap 87 drivers/ata/ahci_qoriq.c void __iomem *port_mmio = ahci_port_base(link->ap); ap 89 drivers/ata/ahci_qoriq.c struct ata_port *ap = link->ap; ap 90 drivers/ata/ahci_qoriq.c struct ahci_port_priv *pp = ap->private_data; ap 91 drivers/ata/ahci_qoriq.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 101 drivers/ata/ahci_qoriq.c hpriv->stop_engine(ap); ap 138 drivers/ata/ahci_qoriq.c hpriv->start_engine(ap); ap 141 drivers/ata/ahci_qoriq.c *class = ahci_dev_classify(ap); ap 44 drivers/ata/ahci_seattle.c static ssize_t seattle_transmit_led_message(struct ata_port *ap, u32 state, ap 79 drivers/ata/ahci_seattle.c static ssize_t seattle_transmit_led_message(struct ata_port *ap, u32 state, ap 82 drivers/ata/ahci_seattle.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 83 drivers/ata/ahci_seattle.c struct ahci_port_priv *pp = ap->private_data; ap 98 drivers/ata/ahci_seattle.c val |= 1 << ACTIVITY_BIT_POS((ap->port_no)); ap 100 drivers/ata/ahci_seattle.c val &= ~(1 << ACTIVITY_BIT_POS((ap->port_no))); ap 103 drivers/ata/ahci_seattle.c val |= 1 << LOCATE_BIT_POS((ap->port_no)); ap 105 drivers/ata/ahci_seattle.c val &= ~(1 << LOCATE_BIT_POS((ap->port_no))); ap 108 drivers/ata/ahci_seattle.c val |= 1 << FAULT_BIT_POS((ap->port_no)); ap 110 drivers/ata/ahci_seattle.c val &= ~(1 << FAULT_BIT_POS((ap->port_no))); ap 114 drivers/ata/ahci_seattle.c spin_lock_irqsave(ap->lock, flags); ap 119 drivers/ata/ahci_seattle.c spin_unlock_irqrestore(ap->lock, flags); ap 147 drivers/ata/ahci_sunxi.c static void ahci_sunxi_start_engine(struct ata_port *ap) ap 149 drivers/ata/ahci_sunxi.c void __iomem *port_mmio = ahci_port_base(ap); ap 150 drivers/ata/ahci_sunxi.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 112 drivers/ata/ahci_xgene.c static int xgene_ahci_poll_reg_val(struct ata_port *ap, ap 124 drivers/ata/ahci_xgene.c ata_msleep(ap, interval); ap 138 drivers/ata/ahci_xgene.c static int xgene_ahci_restart_engine(struct ata_port *ap) ap 140 drivers/ata/ahci_xgene.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 141 drivers/ata/ahci_xgene.c struct ahci_port_priv *pp = ap->private_data; ap 142 drivers/ata/ahci_xgene.c void __iomem *port_mmio = ahci_port_base(ap); ap 151 drivers/ata/ahci_xgene.c if (xgene_ahci_poll_reg_val(ap, port_mmio + ap 155 drivers/ata/ahci_xgene.c hpriv->stop_engine(ap); ap 156 drivers/ata/ahci_xgene.c ahci_start_fis_rx(ap); ap 168 drivers/ata/ahci_xgene.c hpriv->start_engine(ap); ap 191 drivers/ata/ahci_xgene.c struct ata_port *ap = qc->ap; ap 192 drivers/ata/ahci_xgene.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 196 drivers/ata/ahci_xgene.c void *port_mmio = ahci_port_base(ap); ap 202 drivers/ata/ahci_xgene.c if (ctx->class[ap->port_no] == ATA_DEV_PMP) { ap 209 drivers/ata/ahci_xgene.c if (unlikely((ctx->last_cmd[ap->port_no] == ATA_CMD_ID_ATA) || ap 210 drivers/ata/ahci_xgene.c (ctx->last_cmd[ap->port_no] == ATA_CMD_PACKET) || ap 211 drivers/ata/ahci_xgene.c (ctx->last_cmd[ap->port_no] == ATA_CMD_SMART))) ap 212 drivers/ata/ahci_xgene.c xgene_ahci_restart_engine(ap); ap 217 drivers/ata/ahci_xgene.c ctx->last_cmd[ap->port_no] = qc->tf.command; ap 354 drivers/ata/ahci_xgene.c struct ata_port *ap = link->ap; ap 355 drivers/ata/ahci_xgene.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 357 drivers/ata/ahci_xgene.c struct ahci_port_priv *pp = ap->private_data; ap 359 drivers/ata/ahci_xgene.c void __iomem *port_mmio = ahci_port_base(ap); ap 393 drivers/ata/ahci_xgene.c struct ata_port *ap = link->ap; ap 394 drivers/ata/ahci_xgene.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 395 drivers/ata/ahci_xgene.c void __iomem *port_mmio = ahci_port_base(ap); ap 411 drivers/ata/ahci_xgene.c hpriv->stop_engine(ap); ap 422 drivers/ata/ahci_xgene.c hpriv->start_engine(ap); ap 425 drivers/ata/ahci_xgene.c *class = ahci_dev_classify(ap); ap 455 drivers/ata/ahci_xgene.c struct ata_port *ap = link->ap; ap 457 drivers/ata/ahci_xgene.c void *port_mmio = ahci_port_base(ap); ap 499 drivers/ata/ahci_xgene.c struct ata_port *ap = link->ap; ap 500 drivers/ata/ahci_xgene.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 502 drivers/ata/ahci_xgene.c void *port_mmio = ahci_port_base(ap); ap 523 drivers/ata/ahci_xgene.c ctx->class[ap->port_no] = *class; ap 53 drivers/ata/ata_generic.c struct ata_port *ap = link->ap; ap 54 drivers/ata/ata_generic.c const struct pci_device_id *id = ap->host->private_data; ap 60 drivers/ata/ata_generic.c } else if (ap->ioaddr.bmdma_addr) { ap 62 drivers/ata/ata_generic.c dma_enabled = ioread8(ap->ioaddr.bmdma_addr + ATA_DMA_STATUS); ap 486 drivers/ata/ata_piix.c static int piix_port_start(struct ata_port *ap) ap 488 drivers/ata/ata_piix.c if (!(ap->flags & PIIX_FLAG_PIO16)) ap 489 drivers/ata/ata_piix.c ap->pflags |= ATA_PFLAG_PIO32 | ATA_PFLAG_PIO32CHANGE; ap 491 drivers/ata/ata_piix.c return ata_bmdma_port_start(ap); ap 505 drivers/ata/ata_piix.c static int ich_pata_cable_detect(struct ata_port *ap) ap 507 drivers/ata/ata_piix.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 508 drivers/ata/ata_piix.c struct piix_host_priv *hpriv = ap->host->private_data; ap 523 drivers/ata/ata_piix.c mask = ap->port_no == 0 ? PIIX_80C_PRI : PIIX_80C_SEC; ap 539 drivers/ata/ata_piix.c struct ata_port *ap = link->ap; ap 540 drivers/ata/ata_piix.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 542 drivers/ata/ata_piix.c if (!pci_test_config_bits(pdev, &piix_enable_bits[ap->port_no])) ap 549 drivers/ata/ata_piix.c static void piix_set_timings(struct ata_port *ap, struct ata_device *adev, ap 552 drivers/ata/ata_piix.c struct pci_dev *dev = to_pci_dev(ap->host->dev); ap 555 drivers/ata/ata_piix.c unsigned int master_port= ap->port_no ? 0x42 : 0x40; ap 602 drivers/ata/ata_piix.c slave_data &= (ap->port_no ? 0x0f : 0xf0); ap 605 drivers/ata/ata_piix.c << (ap->port_no ? 4 : 0); ap 626 drivers/ata/ata_piix.c if (ap->udma_mask) { ap 628 drivers/ata/ata_piix.c udma_enable &= ~(1 << (2 * ap->port_no + adev->devno)); ap 646 drivers/ata/ata_piix.c static void piix_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 648 drivers/ata/ata_piix.c piix_set_timings(ap, adev, adev->pio_mode - XFER_PIO_0); ap 663 drivers/ata/ata_piix.c static void do_pata_set_dmamode(struct ata_port *ap, struct ata_device *adev, int isich) ap 665 drivers/ata/ata_piix.c struct pci_dev *dev = to_pci_dev(ap->host->dev); ap 668 drivers/ata/ata_piix.c int devid = adev->devno + 2 * ap->port_no; ap 726 drivers/ata/ata_piix.c piix_set_timings(ap, adev, pio); ap 741 drivers/ata/ata_piix.c static void piix_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 743 drivers/ata/ata_piix.c do_pata_set_dmamode(ap, adev, 0); ap 757 drivers/ata/ata_piix.c static void ich_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 759 drivers/ata/ata_piix.c do_pata_set_dmamode(ap, adev, 1); ap 778 drivers/ata/ata_piix.c struct ata_port *ap = link->ap; ap 779 drivers/ata/ata_piix.c struct piix_host_priv *hpriv = ap->host->private_data; ap 781 drivers/ata/ata_piix.c iowrite32(((ap->port_no * 2 + link->pmp) << 8) | piix_sidx_map[reg], ap 788 drivers/ata/ata_piix.c struct piix_host_priv *hpriv = link->ap->host->private_data; ap 801 drivers/ata/ata_piix.c struct piix_host_priv *hpriv = link->ap->host->private_data; ap 817 drivers/ata/ata_piix.c static bool piix_irq_check(struct ata_port *ap) ap 819 drivers/ata/ata_piix.c if (unlikely(!ap->ioaddr.bmdma_addr)) ap 822 drivers/ata/ata_piix.c return ap->ops->bmdma_status(ap) & ATA_DMA_INTR; ap 1056 drivers/ata/ata_piix.c static u8 piix_vmw_bmdma_status(struct ata_port *ap) ap 1058 drivers/ata/ata_piix.c return ata_bmdma_status(ap) & ~ATA_DMA_ERR; ap 1487 drivers/ata/ata_piix.c struct ata_port *ap = host->ports[i]; ap 1489 drivers/ata/ata_piix.c ap->ops = &piix_sidpr_sata_ops; ap 1491 drivers/ata/ata_piix.c if (ap->flags & ATA_FLAG_SLAVE_POSS) { ap 1492 drivers/ata/ata_piix.c rc = ata_slave_link_init(ap); ap 47 drivers/ata/libahci.c static ssize_t ahci_led_show(struct ata_port *ap, char *buf); ap 48 drivers/ata/libahci.c static ssize_t ahci_led_store(struct ata_port *ap, const char *buf, ap 50 drivers/ata/libahci.c static ssize_t ahci_transmit_led_message(struct ata_port *ap, u32 state, ap 58 drivers/ata/libahci.c static int ahci_port_start(struct ata_port *ap); ap 59 drivers/ata/libahci.c static void ahci_port_stop(struct ata_port *ap); ap 62 drivers/ata/libahci.c static void ahci_freeze(struct ata_port *ap); ap 63 drivers/ata/libahci.c static void ahci_thaw(struct ata_port *ap); ap 64 drivers/ata/libahci.c static void ahci_set_aggressive_devslp(struct ata_port *ap, bool sleep); ap 65 drivers/ata/libahci.c static void ahci_enable_fbs(struct ata_port *ap); ap 66 drivers/ata/libahci.c static void ahci_disable_fbs(struct ata_port *ap); ap 67 drivers/ata/libahci.c static void ahci_pmp_attach(struct ata_port *ap); ap 68 drivers/ata/libahci.c static void ahci_pmp_detach(struct ata_port *ap); ap 79 drivers/ata/libahci.c static int ahci_port_suspend(struct ata_port *ap, pm_message_t mesg); ap 221 drivers/ata/libahci.c static int ahci_rpm_get_port(struct ata_port *ap) ap 223 drivers/ata/libahci.c return pm_runtime_get_sync(ap->dev); ap 233 drivers/ata/libahci.c static void ahci_rpm_put_port(struct ata_port *ap) ap 235 drivers/ata/libahci.c pm_runtime_put(ap->dev); ap 242 drivers/ata/libahci.c struct ata_port *ap = ata_shost_to_port(shost); ap 243 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 252 drivers/ata/libahci.c struct ata_port *ap = ata_shost_to_port(shost); ap 253 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 262 drivers/ata/libahci.c struct ata_port *ap = ata_shost_to_port(shost); ap 263 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 272 drivers/ata/libahci.c struct ata_port *ap = ata_shost_to_port(shost); ap 273 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 276 drivers/ata/libahci.c ahci_rpm_get_port(ap); ap 278 drivers/ata/libahci.c ahci_rpm_put_port(ap); ap 287 drivers/ata/libahci.c struct ata_port *ap = ata_shost_to_port(shost); ap 288 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 296 drivers/ata/libahci.c ahci_rpm_get_port(ap); ap 297 drivers/ata/libahci.c spin_lock_irqsave(ap->lock, flags); ap 300 drivers/ata/libahci.c if (!(ap->flags & ATA_FLAG_EM) || em_ctl & EM_CTL_XMT || ap 302 drivers/ata/libahci.c spin_unlock_irqrestore(ap->lock, flags); ap 303 drivers/ata/libahci.c ahci_rpm_put_port(ap); ap 308 drivers/ata/libahci.c spin_unlock_irqrestore(ap->lock, flags); ap 309 drivers/ata/libahci.c ahci_rpm_put_port(ap); ap 321 drivers/ata/libahci.c ata_port_warn(ap, ap 336 drivers/ata/libahci.c spin_unlock_irqrestore(ap->lock, flags); ap 337 drivers/ata/libahci.c ahci_rpm_put_port(ap); ap 347 drivers/ata/libahci.c struct ata_port *ap = ata_shost_to_port(shost); ap 348 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 357 drivers/ata/libahci.c if (!(ap->flags & ATA_FLAG_EM) || ap 362 drivers/ata/libahci.c ahci_rpm_get_port(ap); ap 363 drivers/ata/libahci.c spin_lock_irqsave(ap->lock, flags); ap 367 drivers/ata/libahci.c spin_unlock_irqrestore(ap->lock, flags); ap 368 drivers/ata/libahci.c ahci_rpm_put_port(ap); ap 380 drivers/ata/libahci.c spin_unlock_irqrestore(ap->lock, flags); ap 381 drivers/ata/libahci.c ahci_rpm_put_port(ap); ap 390 drivers/ata/libahci.c struct ata_port *ap = ata_shost_to_port(shost); ap 391 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 395 drivers/ata/libahci.c ahci_rpm_get_port(ap); ap 397 drivers/ata/libahci.c ahci_rpm_put_port(ap); ap 576 drivers/ata/libahci.c static unsigned ahci_scr_offset(struct ata_port *ap, unsigned int sc_reg) ap 585 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 595 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(link->ap); ap 596 drivers/ata/libahci.c int offset = ahci_scr_offset(link->ap, sc_reg); ap 607 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(link->ap); ap 608 drivers/ata/libahci.c int offset = ahci_scr_offset(link->ap, sc_reg); ap 617 drivers/ata/libahci.c void ahci_start_engine(struct ata_port *ap) ap 619 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 630 drivers/ata/libahci.c int ahci_stop_engine(struct ata_port *ap) ap 632 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 633 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 643 drivers/ata/libahci.c (ap->link.lpm_policy > ATA_LPM_MAX_POWER) && ap 644 drivers/ata/libahci.c ahci_set_lpm(&ap->link, ATA_LPM_MAX_POWER, ATA_LPM_WAKE_ONLY)) { ap 645 drivers/ata/libahci.c dev_err(ap->host->dev, "Failed to wake up port before engine stop\n"); ap 661 drivers/ata/libahci.c dev_err(ap->host->dev, "AHCI controller unavailable!\n"); ap 670 drivers/ata/libahci.c tmp = ata_wait_register(ap, port_mmio + PORT_CMD, ap 679 drivers/ata/libahci.c void ahci_start_fis_rx(struct ata_port *ap) ap 681 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 682 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 683 drivers/ata/libahci.c struct ahci_port_priv *pp = ap->private_data; ap 707 drivers/ata/libahci.c static int ahci_stop_fis_rx(struct ata_port *ap) ap 709 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 718 drivers/ata/libahci.c tmp = ata_wait_register(ap, port_mmio + PORT_CMD, PORT_CMD_FIS_ON, ap 726 drivers/ata/libahci.c static void ahci_power_up(struct ata_port *ap) ap 728 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 729 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 747 drivers/ata/libahci.c struct ata_port *ap = link->ap; ap 748 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 749 drivers/ata/libahci.c struct ahci_port_priv *pp = ap->private_data; ap 750 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 779 drivers/ata/libahci.c ata_msleep(ap, 10); ap 801 drivers/ata/libahci.c ahci_set_aggressive_devslp(ap, true); ap 803 drivers/ata/libahci.c ahci_set_aggressive_devslp(ap, false); ap 818 drivers/ata/libahci.c static void ahci_power_down(struct ata_port *ap) ap 820 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 821 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 839 drivers/ata/libahci.c static void ahci_start_port(struct ata_port *ap) ap 841 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 842 drivers/ata/libahci.c struct ahci_port_priv *pp = ap->private_data; ap 849 drivers/ata/libahci.c ahci_start_fis_rx(ap); ap 853 drivers/ata/libahci.c hpriv->start_engine(ap); ap 856 drivers/ata/libahci.c if (ap->flags & ATA_FLAG_EM) { ap 857 drivers/ata/libahci.c ata_for_each_link(link, ap, EDGE) { ap 862 drivers/ata/libahci.c rc = ap->ops->transmit_led_message(ap, ap 881 drivers/ata/libahci.c if (ap->flags & ATA_FLAG_SW_ACTIVITY) ap 882 drivers/ata/libahci.c ata_for_each_link(link, ap, EDGE) ap 887 drivers/ata/libahci.c static int ahci_deinit_port(struct ata_port *ap, const char **emsg) ap 890 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 893 drivers/ata/libahci.c rc = hpriv->stop_engine(ap); ap 900 drivers/ata/libahci.c rc = ahci_stop_fis_rx(ap); ap 960 drivers/ata/libahci.c struct ata_port *ap = link->ap; ap 961 drivers/ata/libahci.c struct ahci_port_priv *pp = ap->private_data; ap 976 drivers/ata/libahci.c struct ata_port *ap = link->ap; ap 983 drivers/ata/libahci.c led_message |= ap->port_no | (link->pmp << 8); ap 989 drivers/ata/libahci.c spin_lock_irqsave(ap->lock, flags); ap 1012 drivers/ata/libahci.c spin_unlock_irqrestore(ap->lock, flags); ap 1013 drivers/ata/libahci.c ap->ops->transmit_led_message(ap, led_message, 4); ap 1018 drivers/ata/libahci.c struct ata_port *ap = link->ap; ap 1019 drivers/ata/libahci.c struct ahci_port_priv *pp = ap->private_data; ap 1047 drivers/ata/libahci.c static ssize_t ahci_transmit_led_message(struct ata_port *ap, u32 state, ap 1050 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 1051 drivers/ata/libahci.c struct ahci_port_priv *pp = ap->private_data; ap 1066 drivers/ata/libahci.c ahci_rpm_get_port(ap); ap 1067 drivers/ata/libahci.c spin_lock_irqsave(ap->lock, flags); ap 1075 drivers/ata/libahci.c spin_unlock_irqrestore(ap->lock, flags); ap 1076 drivers/ata/libahci.c ahci_rpm_put_port(ap); ap 1088 drivers/ata/libahci.c message[1] = ((state & ~EM_MSG_LED_HBA_PORT) | ap->port_no); ap 1103 drivers/ata/libahci.c spin_unlock_irqrestore(ap->lock, flags); ap 1104 drivers/ata/libahci.c ahci_rpm_put_port(ap); ap 1109 drivers/ata/libahci.c static ssize_t ahci_led_show(struct ata_port *ap, char *buf) ap 1111 drivers/ata/libahci.c struct ahci_port_priv *pp = ap->private_data; ap 1116 drivers/ata/libahci.c ata_for_each_link(link, ap, EDGE) { ap 1123 drivers/ata/libahci.c static ssize_t ahci_led_store(struct ata_port *ap, const char *buf, ap 1128 drivers/ata/libahci.c struct ahci_port_priv *pp = ap->private_data; ap 1150 drivers/ata/libahci.c return ap->ops->transmit_led_message(ap, state, size); ap 1156 drivers/ata/libahci.c struct ata_port *ap = link->ap; ap 1157 drivers/ata/libahci.c struct ahci_port_priv *pp = ap->private_data; ap 1168 drivers/ata/libahci.c port_led_state |= (ap->port_no | (link->pmp << 8)); ap 1169 drivers/ata/libahci.c ap->ops->transmit_led_message(ap, port_led_state, 4); ap 1175 drivers/ata/libahci.c port_led_state |= (ap->port_no | (link->pmp << 8)); ap 1177 drivers/ata/libahci.c ap->ops->transmit_led_message(ap, port_led_state, 4); ap 1187 drivers/ata/libahci.c struct ata_port *ap = link->ap; ap 1188 drivers/ata/libahci.c struct ahci_port_priv *pp = ap->private_data; ap 1197 drivers/ata/libahci.c static void ahci_port_init(struct device *dev, struct ata_port *ap, ap 1201 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 1207 drivers/ata/libahci.c rc = ahci_deinit_port(ap, &emsg); ap 1227 drivers/ata/libahci.c ap->pflags |= ATA_PFLAG_EXTERNAL; ap 1239 drivers/ata/libahci.c struct ata_port *ap = host->ports[i]; ap 1241 drivers/ata/libahci.c port_mmio = ahci_port_base(ap); ap 1242 drivers/ata/libahci.c if (ata_port_is_dummy(ap)) ap 1245 drivers/ata/libahci.c ahci_port_init(host->dev, ap, i, mmio, port_mmio); ap 1258 drivers/ata/libahci.c struct ahci_host_priv *hpriv = dev->link->ap->host->private_data; ap 1267 drivers/ata/libahci.c unsigned int ahci_dev_classify(struct ata_port *ap) ap 1269 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 1297 drivers/ata/libahci.c int ahci_kick_engine(struct ata_port *ap) ap 1299 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 1300 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 1306 drivers/ata/libahci.c rc = hpriv->stop_engine(ap); ap 1314 drivers/ata/libahci.c if (!busy && !sata_pmp_attached(ap)) { ap 1330 drivers/ata/libahci.c tmp = ata_wait_register(ap, port_mmio + PORT_CMD, ap 1337 drivers/ata/libahci.c hpriv->start_engine(ap); ap 1342 drivers/ata/libahci.c static int ahci_exec_polled_cmd(struct ata_port *ap, int pmp, ap 1347 drivers/ata/libahci.c struct ahci_port_priv *pp = ap->private_data; ap 1348 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 1369 drivers/ata/libahci.c tmp = ata_wait_register(ap, port_mmio + PORT_CMD_ISSUE, ap 1372 drivers/ata/libahci.c ahci_kick_engine(ap); ap 1385 drivers/ata/libahci.c struct ata_port *ap = link->ap; ap 1386 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 1387 drivers/ata/libahci.c struct ahci_port_priv *pp = ap->private_data; ap 1397 drivers/ata/libahci.c rc = ahci_kick_engine(ap); ap 1407 drivers/ata/libahci.c ahci_disable_fbs(ap); ap 1420 drivers/ata/libahci.c if (ahci_exec_polled_cmd(ap, pmp, &tf, 0, ap 1428 drivers/ata/libahci.c ata_msleep(ap, 1); ap 1432 drivers/ata/libahci.c ahci_exec_polled_cmd(ap, pmp, &tf, 0, 0, 0); ap 1449 drivers/ata/libahci.c *class = ahci_dev_classify(ap); ap 1453 drivers/ata/libahci.c ahci_enable_fbs(ap); ap 1465 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(link->ap); ap 1485 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(link->ap); ap 1502 drivers/ata/libahci.c struct ata_port *ap = link->ap; ap 1503 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 1536 drivers/ata/libahci.c struct ata_port *ap = link->ap; ap 1537 drivers/ata/libahci.c struct ahci_port_priv *pp = ap->private_data; ap 1538 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 1545 drivers/ata/libahci.c hpriv->stop_engine(ap); ap 1555 drivers/ata/libahci.c hpriv->start_engine(ap); ap 1558 drivers/ata/libahci.c *class = ahci_dev_classify(ap); ap 1575 drivers/ata/libahci.c struct ata_port *ap = link->ap; ap 1576 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 1618 drivers/ata/libahci.c struct ata_port *ap = qc->ap; ap 1619 drivers/ata/libahci.c struct ahci_port_priv *pp = ap->private_data; ap 1621 drivers/ata/libahci.c if (!sata_pmp_attached(ap) || pp->fbs_enabled) ap 1629 drivers/ata/libahci.c struct ata_port *ap = qc->ap; ap 1630 drivers/ata/libahci.c struct ahci_port_priv *pp = ap->private_data; ap 1665 drivers/ata/libahci.c static void ahci_fbs_dec_intr(struct ata_port *ap) ap 1667 drivers/ata/libahci.c struct ahci_port_priv *pp = ap->private_data; ap 1668 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 1686 drivers/ata/libahci.c dev_err(ap->host->dev, "failed to clear device error\n"); ap 1689 drivers/ata/libahci.c static void ahci_error_intr(struct ata_port *ap, u32 irq_stat) ap 1691 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 1692 drivers/ata/libahci.c struct ahci_port_priv *pp = ap->private_data; ap 1693 drivers/ata/libahci.c struct ata_eh_info *host_ehi = &ap->link.eh_info; ap 1702 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 1706 drivers/ata/libahci.c if ((fbs & PORT_FBS_SDE) && (pmp < ap->nr_pmp_links)) { ap 1707 drivers/ata/libahci.c link = &ap->pmp_link[pmp]; ap 1712 drivers/ata/libahci.c ata_for_each_link(link, ap, EDGE) ap 1717 drivers/ata/libahci.c link = &ap->link; ap 1719 drivers/ata/libahci.c active_qc = ata_qc_from_tag(ap, link->active_tag); ap 1727 drivers/ata/libahci.c ahci_scr_read(&ap->link, SCR_ERROR, &serror); ap 1728 drivers/ata/libahci.c ahci_scr_write(&ap->link, SCR_ERROR, serror); ap 1759 drivers/ata/libahci.c if (sata_pmp_attached(ap) && (irq_stat & PORT_IRQ_BAD_PMP)) { ap 1792 drivers/ata/libahci.c ata_port_freeze(ap); ap 1795 drivers/ata/libahci.c ahci_fbs_dec_intr(ap); ap 1797 drivers/ata/libahci.c ata_port_abort(ap); ap 1800 drivers/ata/libahci.c static void ahci_handle_port_interrupt(struct ata_port *ap, ap 1803 drivers/ata/libahci.c struct ata_eh_info *ehi = &ap->link.eh_info; ap 1804 drivers/ata/libahci.c struct ahci_port_priv *pp = ap->private_data; ap 1805 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 1806 drivers/ata/libahci.c int resetting = !!(ap->pflags & ATA_PFLAG_RESETTING); ap 1814 drivers/ata/libahci.c if (sata_lpm_ignore_phy_events(&ap->link)) { ap 1816 drivers/ata/libahci.c ahci_scr_write(&ap->link, SCR_ERROR, SERR_PHYRDY_CHG); ap 1820 drivers/ata/libahci.c ahci_error_intr(ap, status); ap 1835 drivers/ata/libahci.c sata_async_notification(ap); ap 1851 drivers/ata/libahci.c sata_async_notification(ap); ap 1861 drivers/ata/libahci.c if (ap->qc_active) { ap 1867 drivers/ata/libahci.c if (ap->qc_active && pp->active_link->sactive) ap 1874 drivers/ata/libahci.c rc = ata_qc_complete_multiple(ap, qc_active); ap 1880 drivers/ata/libahci.c ata_port_freeze(ap); ap 1884 drivers/ata/libahci.c static void ahci_port_intr(struct ata_port *ap) ap 1886 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 1892 drivers/ata/libahci.c ahci_handle_port_interrupt(ap, port_mmio, status); ap 1897 drivers/ata/libahci.c struct ata_port *ap = dev_instance; ap 1898 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 1906 drivers/ata/libahci.c spin_lock(ap->lock); ap 1907 drivers/ata/libahci.c ahci_handle_port_interrupt(ap, port_mmio, status); ap 1908 drivers/ata/libahci.c spin_unlock(ap->lock); ap 1920 drivers/ata/libahci.c struct ata_port *ap; ap 1925 drivers/ata/libahci.c ap = host->ports[i]; ap 1926 drivers/ata/libahci.c if (ap) { ap 1927 drivers/ata/libahci.c ahci_port_intr(ap); ap 1987 drivers/ata/libahci.c struct ata_port *ap = qc->ap; ap 1988 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 1989 drivers/ata/libahci.c struct ahci_port_priv *pp = ap->private_data; ap 2018 drivers/ata/libahci.c struct ahci_port_priv *pp = qc->ap->private_data; ap 2040 drivers/ata/libahci.c static void ahci_freeze(struct ata_port *ap) ap 2042 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 2048 drivers/ata/libahci.c static void ahci_thaw(struct ata_port *ap) ap 2050 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 2052 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 2054 drivers/ata/libahci.c struct ahci_port_priv *pp = ap->private_data; ap 2059 drivers/ata/libahci.c writel(1 << ap->port_no, mmio + HOST_IRQ_STAT); ap 2065 drivers/ata/libahci.c void ahci_error_handler(struct ata_port *ap) ap 2067 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 2069 drivers/ata/libahci.c if (!(ap->pflags & ATA_PFLAG_FROZEN)) { ap 2071 drivers/ata/libahci.c hpriv->stop_engine(ap); ap 2072 drivers/ata/libahci.c hpriv->start_engine(ap); ap 2075 drivers/ata/libahci.c sata_pmp_error_handler(ap); ap 2077 drivers/ata/libahci.c if (!ata_dev_enabled(ap->link.device)) ap 2078 drivers/ata/libahci.c hpriv->stop_engine(ap); ap 2084 drivers/ata/libahci.c struct ata_port *ap = qc->ap; ap 2088 drivers/ata/libahci.c ahci_kick_engine(ap); ap 2091 drivers/ata/libahci.c static void ahci_set_aggressive_devslp(struct ata_port *ap, bool sleep) ap 2093 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 2094 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 2095 drivers/ata/libahci.c struct ata_device *dev = ap->link.device; ap 2102 drivers/ata/libahci.c dev_info(ap->host->dev, "port does not support device sleep\n"); ap 2132 drivers/ata/libahci.c rc = hpriv->stop_engine(ap); ap 2161 drivers/ata/libahci.c hpriv->start_engine(ap); ap 2171 drivers/ata/libahci.c static void ahci_enable_fbs(struct ata_port *ap) ap 2173 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 2174 drivers/ata/libahci.c struct ahci_port_priv *pp = ap->private_data; ap 2175 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 2189 drivers/ata/libahci.c rc = hpriv->stop_engine(ap); ap 2196 drivers/ata/libahci.c dev_info(ap->host->dev, "FBS is enabled\n"); ap 2200 drivers/ata/libahci.c dev_err(ap->host->dev, "Failed to enable FBS\n"); ap 2202 drivers/ata/libahci.c hpriv->start_engine(ap); ap 2205 drivers/ata/libahci.c static void ahci_disable_fbs(struct ata_port *ap) ap 2207 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 2208 drivers/ata/libahci.c struct ahci_port_priv *pp = ap->private_data; ap 2209 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 2222 drivers/ata/libahci.c rc = hpriv->stop_engine(ap); ap 2229 drivers/ata/libahci.c dev_err(ap->host->dev, "Failed to disable FBS\n"); ap 2231 drivers/ata/libahci.c dev_info(ap->host->dev, "FBS is disabled\n"); ap 2235 drivers/ata/libahci.c hpriv->start_engine(ap); ap 2238 drivers/ata/libahci.c static void ahci_pmp_attach(struct ata_port *ap) ap 2240 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 2241 drivers/ata/libahci.c struct ahci_port_priv *pp = ap->private_data; ap 2248 drivers/ata/libahci.c ahci_enable_fbs(ap); ap 2260 drivers/ata/libahci.c if (!(ap->pflags & ATA_PFLAG_FROZEN)) ap 2264 drivers/ata/libahci.c static void ahci_pmp_detach(struct ata_port *ap) ap 2266 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 2267 drivers/ata/libahci.c struct ahci_port_priv *pp = ap->private_data; ap 2270 drivers/ata/libahci.c ahci_disable_fbs(ap); ap 2279 drivers/ata/libahci.c if (!(ap->pflags & ATA_PFLAG_FROZEN)) ap 2283 drivers/ata/libahci.c int ahci_port_resume(struct ata_port *ap) ap 2285 drivers/ata/libahci.c ahci_rpm_get_port(ap); ap 2287 drivers/ata/libahci.c ahci_power_up(ap); ap 2288 drivers/ata/libahci.c ahci_start_port(ap); ap 2290 drivers/ata/libahci.c if (sata_pmp_attached(ap)) ap 2291 drivers/ata/libahci.c ahci_pmp_attach(ap); ap 2293 drivers/ata/libahci.c ahci_pmp_detach(ap); ap 2300 drivers/ata/libahci.c static int ahci_port_suspend(struct ata_port *ap, pm_message_t mesg) ap 2305 drivers/ata/libahci.c rc = ahci_deinit_port(ap, &emsg); ap 2307 drivers/ata/libahci.c ahci_power_down(ap); ap 2309 drivers/ata/libahci.c ata_port_err(ap, "%s (%d)\n", emsg, rc); ap 2310 drivers/ata/libahci.c ata_port_freeze(ap); ap 2313 drivers/ata/libahci.c ahci_rpm_put_port(ap); ap 2318 drivers/ata/libahci.c static int ahci_port_start(struct ata_port *ap) ap 2320 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 2321 drivers/ata/libahci.c struct device *dev = ap->host->dev; ap 2331 drivers/ata/libahci.c if (ap->host->n_ports > 1) { ap 2338 drivers/ata/libahci.c "%s%d", dev_driver_string(dev), ap->port_no); ap 2342 drivers/ata/libahci.c if ((hpriv->cap & HOST_CAP_FBS) && sata_pmp_supported(ap)) { ap 2343 drivers/ata/libahci.c void __iomem *port_mmio = ahci_port_base(ap); ap 2349 drivers/ata/libahci.c ap->port_no); ap 2353 drivers/ata/libahci.c ap->port_no); ap 2405 drivers/ata/libahci.c ap->lock = &pp->lock; ap 2408 drivers/ata/libahci.c ap->private_data = pp; ap 2411 drivers/ata/libahci.c return ahci_port_resume(ap); ap 2414 drivers/ata/libahci.c static void ahci_port_stop(struct ata_port *ap) ap 2417 drivers/ata/libahci.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 2422 drivers/ata/libahci.c rc = ahci_deinit_port(ap, &emsg); ap 2424 drivers/ata/libahci.c ata_port_warn(ap, "%s (%d)\n", emsg, rc); ap 2430 drivers/ata/libahci.c writel(1 << ap->port_no, host_mmio + HOST_IRQ_STAT); ap 2432 drivers/ata/libahci.c ahci_rpm_put_port(ap); ap 628 drivers/ata/libahci_platform.c struct ata_port *ap = host->ports[i]; ap 630 drivers/ata/libahci_platform.c ata_port_desc(ap, "mmio %pR", ap 632 drivers/ata/libahci_platform.c ata_port_desc(ap, "port 0x%x", 0x100 + ap->port_no * 0x80); ap 635 drivers/ata/libahci_platform.c if (ap->flags & ATA_FLAG_EM) ap 636 drivers/ata/libahci_platform.c ap->em_message_type = hpriv->em_msg_type; ap 640 drivers/ata/libahci_platform.c ap->ops = &ata_dummy_port_ops; ap 690 drivers/ata/libahci_platform.c struct ata_port *ap = host->ports[i]; ap 693 drivers/ata/libahci_platform.c if (ap->ops->freeze) ap 694 drivers/ata/libahci_platform.c ap->ops->freeze(ap); ap 697 drivers/ata/libahci_platform.c if (ap->ops->port_stop) ap 698 drivers/ata/libahci_platform.c ap->ops->port_stop(ap); ap 45 drivers/ata/libata-acpi.c struct ata_port *ap; ap 67 drivers/ata/libata-acpi.c static void ata_acpi_detach_device(struct ata_port *ap, struct ata_device *dev) ap 75 drivers/ata/libata-acpi.c ata_for_each_link(tlink, ap, EDGE) ap 80 drivers/ata/libata-acpi.c ata_port_schedule_eh(ap); ap 100 drivers/ata/libata-acpi.c static void ata_acpi_handle_hotplug(struct ata_port *ap, struct ata_device *dev, ap 103 drivers/ata/libata-acpi.c struct ata_eh_info *ehi = &ap->link.eh_info; ap 107 drivers/ata/libata-acpi.c spin_lock_irqsave(ap->lock, flags); ap 119 drivers/ata/libata-acpi.c ata_port_freeze(ap); ap 124 drivers/ata/libata-acpi.c ata_acpi_detach_device(ap, dev); ap 129 drivers/ata/libata-acpi.c spin_unlock_irqrestore(ap->lock, flags); ap 132 drivers/ata/libata-acpi.c ata_port_wait_eh(ap); ap 138 drivers/ata/libata-acpi.c ata_acpi_handle_hotplug(dev->link->ap, dev, event); ap 144 drivers/ata/libata-acpi.c ata_acpi_handle_hotplug(ata_hotplug_data(adev->hp).ap, NULL, event); ap 148 drivers/ata/libata-acpi.c static void ata_acpi_uevent(struct ata_port *ap, struct ata_device *dev, ap 159 drivers/ata/libata-acpi.c kobj = &ap->dev->kobj; ap 169 drivers/ata/libata-acpi.c ata_acpi_uevent(ata_hotplug_data(adev->hp).ap, NULL, event); ap 175 drivers/ata/libata-acpi.c ata_acpi_uevent(dev->link->ap, dev, event); ap 179 drivers/ata/libata-acpi.c void ata_acpi_bind_port(struct ata_port *ap) ap 181 drivers/ata/libata-acpi.c struct acpi_device *host_companion = ACPI_COMPANION(ap->host->dev); ap 185 drivers/ata/libata-acpi.c if (libata_noacpi || ap->flags & ATA_FLAG_ACPI_SATA || !host_companion) ap 188 drivers/ata/libata-acpi.c acpi_preset_companion(&ap->tdev, host_companion, ap->port_no); ap 190 drivers/ata/libata-acpi.c if (ata_acpi_gtm(ap, &ap->__acpi_init_gtm) == 0) ap 191 drivers/ata/libata-acpi.c ap->pflags |= ATA_PFLAG_INIT_GTM_VALID; ap 193 drivers/ata/libata-acpi.c adev = ACPI_COMPANION(&ap->tdev); ap 201 drivers/ata/libata-acpi.c context->data.ap = ap; ap 208 drivers/ata/libata-acpi.c struct ata_port *ap = dev->link->ap; ap 209 drivers/ata/libata-acpi.c struct acpi_device *port_companion = ACPI_COMPANION(&ap->tdev); ap 210 drivers/ata/libata-acpi.c struct acpi_device *host_companion = ACPI_COMPANION(ap->host->dev); ap 220 drivers/ata/libata-acpi.c (!(ap->flags & ATA_FLAG_ACPI_SATA) && !port_companion)) ap 223 drivers/ata/libata-acpi.c if (ap->flags & ATA_FLAG_ACPI_SATA) { ap 224 drivers/ata/libata-acpi.c if (!sata_pmp_attached(ap)) ap 225 drivers/ata/libata-acpi.c adr = SATA_ADR(ap->port_no, NO_PORT_MULT); ap 227 drivers/ata/libata-acpi.c adr = SATA_ADR(ap->port_no, dev->link->pmp); ap 266 drivers/ata/libata-acpi.c struct ata_port *ap = host->ports[i]; ap 267 drivers/ata/libata-acpi.c const struct ata_acpi_gtm *gtm = ata_acpi_init_gtm(ap); ap 269 drivers/ata/libata-acpi.c if (ACPI_HANDLE(&ap->tdev) && gtm) ap 270 drivers/ata/libata-acpi.c ata_acpi_stm(ap, gtm); ap 287 drivers/ata/libata-acpi.c int ata_acpi_gtm(struct ata_port *ap, struct ata_acpi_gtm *gtm) ap 293 drivers/ata/libata-acpi.c acpi_handle handle = ACPI_HANDLE(&ap->tdev); ap 306 drivers/ata/libata-acpi.c ata_port_err(ap, "ACPI get timing mode failed (AE 0x%x)\n", ap 313 drivers/ata/libata-acpi.c ata_port_warn(ap, "_GTM returned unexpected object type 0x%x\n", ap 320 drivers/ata/libata-acpi.c ata_port_err(ap, "_GTM returned invalid length %d\n", ap 347 drivers/ata/libata-acpi.c int ata_acpi_stm(struct ata_port *ap, const struct ata_acpi_gtm *stm) ap 360 drivers/ata/libata-acpi.c in_params[1].buffer.pointer = (u8 *)ap->link.device[0].id; ap 363 drivers/ata/libata-acpi.c in_params[2].buffer.pointer = (u8 *)ap->link.device[1].id; ap 368 drivers/ata/libata-acpi.c status = acpi_evaluate_object(ACPI_HANDLE(&ap->tdev), "_STM", ap 374 drivers/ata/libata-acpi.c ata_port_err(ap, "ACPI set timing mode failed (status=0x%x)\n", ap 405 drivers/ata/libata-acpi.c struct ata_port *ap = dev->link->ap; ap 421 drivers/ata/libata-acpi.c if (ata_msg_probe(ap)) ap 423 drivers/ata/libata-acpi.c __func__, ap->port_no); ap 440 drivers/ata/libata-acpi.c if (ata_msg_probe(ap)) ap 467 drivers/ata/libata-acpi.c if (ata_msg_probe(ap)) ap 531 drivers/ata/libata-acpi.c int ata_acpi_cbl_80wire(struct ata_port *ap, const struct ata_acpi_gtm *gtm) ap 535 drivers/ata/libata-acpi.c ata_for_each_dev(dev, &ap->link, ENABLED) { ap 773 drivers/ata/libata-acpi.c struct ata_port *ap = dev->link->ap; ap 778 drivers/ata/libata-acpi.c if (ata_msg_probe(ap)) ap 780 drivers/ata/libata-acpi.c __func__, dev->devno, ap->port_no); ap 823 drivers/ata/libata-acpi.c int ata_acpi_on_suspend(struct ata_port *ap) ap 839 drivers/ata/libata-acpi.c void ata_acpi_on_resume(struct ata_port *ap) ap 841 drivers/ata/libata-acpi.c const struct ata_acpi_gtm *gtm = ata_acpi_init_gtm(ap); ap 844 drivers/ata/libata-acpi.c if (ACPI_HANDLE(&ap->tdev) && gtm) { ap 848 drivers/ata/libata-acpi.c ata_acpi_stm(ap, gtm); ap 854 drivers/ata/libata-acpi.c ata_for_each_dev(dev, &ap->link, ALL) { ap 866 drivers/ata/libata-acpi.c ata_for_each_dev(dev, &ap->link, ALL) { ap 892 drivers/ata/libata-acpi.c static void sata_acpi_set_state(struct ata_port *ap, pm_message_t state) ap 899 drivers/ata/libata-acpi.c ata_for_each_dev(dev, &ap->link, ENABLED) { ap 921 drivers/ata/libata-acpi.c static void pata_acpi_set_state(struct ata_port *ap, pm_message_t state) ap 926 drivers/ata/libata-acpi.c port_handle = ACPI_HANDLE(&ap->tdev); ap 935 drivers/ata/libata-acpi.c ata_for_each_dev(dev, &ap->link, ENABLED) { ap 956 drivers/ata/libata-acpi.c void ata_acpi_set_state(struct ata_port *ap, pm_message_t state) ap 958 drivers/ata/libata-acpi.c if (ap->flags & ATA_FLAG_ACPI_SATA) ap 959 drivers/ata/libata-acpi.c sata_acpi_set_state(ap, state); ap 961 drivers/ata/libata-acpi.c pata_acpi_set_state(ap, state); ap 980 drivers/ata/libata-acpi.c struct ata_port *ap = dev->link->ap; ap 981 drivers/ata/libata-acpi.c struct ata_eh_context *ehc = &ap->link.eh_context; ap 982 drivers/ata/libata-acpi.c int acpi_sata = ap->flags & ATA_FLAG_ACPI_SATA; ap 1022 drivers/ata/libata-acpi.c if (rc == -EINVAL && !nr_executed && !(ap->pflags & ATA_PFLAG_FROZEN)) ap 1037 drivers/ata/libata-acpi.c if (!nr_executed && !(ap->pflags & ATA_PFLAG_FROZEN)) ap 181 drivers/ata/libata-core.c struct ata_link *ata_link_next(struct ata_link *link, struct ata_port *ap, ap 192 drivers/ata/libata-core.c if (sata_pmp_attached(ap)) ap 193 drivers/ata/libata-core.c return ap->pmp_link; ap 196 drivers/ata/libata-core.c return &ap->link; ap 200 drivers/ata/libata-core.c if (link == &ap->link) ap 203 drivers/ata/libata-core.c if (sata_pmp_attached(ap)) ap 204 drivers/ata/libata-core.c return ap->pmp_link; ap 207 drivers/ata/libata-core.c if (unlikely(ap->slave_link)) ap 208 drivers/ata/libata-core.c return ap->slave_link; ap 215 drivers/ata/libata-core.c if (unlikely(link == ap->slave_link)) ap 219 drivers/ata/libata-core.c if (++link < ap->pmp_link + ap->nr_pmp_links) ap 223 drivers/ata/libata-core.c return &ap->link; ap 297 drivers/ata/libata-core.c struct ata_port *ap = dev->link->ap; ap 299 drivers/ata/libata-core.c if (!ap->slave_link) ap 302 drivers/ata/libata-core.c return &ap->link; ap 303 drivers/ata/libata-core.c return ap->slave_link; ap 319 drivers/ata/libata-core.c void ata_force_cbl(struct ata_port *ap) ap 326 drivers/ata/libata-core.c if (fe->port != -1 && fe->port != ap->print_id) ap 332 drivers/ata/libata-core.c ap->cbl = fe->param.cbl; ap 333 drivers/ata/libata-core.c ata_port_notice(ap, "FORCE: cable set to %s\n", fe->param.name); ap 366 drivers/ata/libata-core.c if (fe->port != -1 && fe->port != link->ap->print_id) ap 415 drivers/ata/libata-core.c if (fe->port != -1 && fe->port != dev->link->ap->print_id) ap 468 drivers/ata/libata-core.c if (fe->port != -1 && fe->port != dev->link->ap->print_id) ap 652 drivers/ata/libata-core.c } else if (lba48 && (dev->link->ap->flags & ATA_FLAG_PIO_LBA48)) { ap 1553 drivers/ata/libata-core.c struct ata_port *ap = link->ap; ap 1566 drivers/ata/libata-core.c spin_lock_irqsave(ap->lock, flags); ap 1569 drivers/ata/libata-core.c if (ap->pflags & ATA_PFLAG_FROZEN) { ap 1570 drivers/ata/libata-core.c spin_unlock_irqrestore(ap->lock, flags); ap 1575 drivers/ata/libata-core.c qc = __ata_qc_from_tag(ap, ATA_TAG_INTERNAL); ap 1580 drivers/ata/libata-core.c qc->ap = ap; ap 1586 drivers/ata/libata-core.c preempted_qc_active = ap->qc_active; ap 1587 drivers/ata/libata-core.c preempted_nr_active_links = ap->nr_active_links; ap 1590 drivers/ata/libata-core.c ap->qc_active = 0; ap 1591 drivers/ata/libata-core.c ap->nr_active_links = 0; ap 1621 drivers/ata/libata-core.c spin_unlock_irqrestore(ap->lock, flags); ap 1632 drivers/ata/libata-core.c if (ap->ops->error_handler) ap 1633 drivers/ata/libata-core.c ata_eh_release(ap); ap 1637 drivers/ata/libata-core.c if (ap->ops->error_handler) ap 1638 drivers/ata/libata-core.c ata_eh_acquire(ap); ap 1640 drivers/ata/libata-core.c ata_sff_flush_pio_task(ap); ap 1643 drivers/ata/libata-core.c spin_lock_irqsave(ap->lock, flags); ap 1653 drivers/ata/libata-core.c if (ap->ops->error_handler) ap 1654 drivers/ata/libata-core.c ata_port_freeze(ap); ap 1658 drivers/ata/libata-core.c if (ata_msg_warn(ap)) ap 1663 drivers/ata/libata-core.c spin_unlock_irqrestore(ap->lock, flags); ap 1667 drivers/ata/libata-core.c if (ap->ops->post_internal_cmd) ap 1668 drivers/ata/libata-core.c ap->ops->post_internal_cmd(qc); ap 1685 drivers/ata/libata-core.c spin_lock_irqsave(ap->lock, flags); ap 1693 drivers/ata/libata-core.c ap->qc_active = preempted_qc_active; ap 1694 drivers/ata/libata-core.c ap->nr_active_links = preempted_nr_active_links; ap 1696 drivers/ata/libata-core.c spin_unlock_irqrestore(ap->lock, flags); ap 1755 drivers/ata/libata-core.c if (adev->link->ap->pflags & ATA_PFLAG_RESETTING) ap 1760 drivers/ata/libata-core.c if (adev->link->ap->flags & ATA_FLAG_NO_IORDY) ap 1839 drivers/ata/libata-core.c struct ata_port *ap = dev->link->ap; ap 1848 drivers/ata/libata-core.c if (ata_msg_ctl(ap)) ap 1883 drivers/ata/libata-core.c if (ap->ops->read_id) ap 1884 drivers/ata/libata-core.c err_mask = ap->ops->read_id(dev, &tf, id); ap 1954 drivers/ata/libata-core.c if (ap->host->flags & ATA_HOST_IGNORE_ATA && ap 2020 drivers/ata/libata-core.c if (ata_msg_warn(ap)) ap 2045 drivers/ata/libata-core.c unsigned long ap_flags = dev->link->ap->flags; ap 2092 drivers/ata/libata-core.c struct ata_port *ap = dev->link->ap; ap 2094 drivers/ata/libata-core.c if (ata_read_log_page(dev, ATA_LOG_DIRECTORY, 0, ap->sector_buf, 1)) ap 2096 drivers/ata/libata-core.c return get_unaligned_le16(&ap->sector_buf[log * 2]) ? true : false; ap 2101 drivers/ata/libata-core.c struct ata_port *ap = dev->link->ap; ap 2113 drivers/ata/libata-core.c err = ata_read_log_page(dev, ATA_LOG_IDENTIFY_DEVICE, 0, ap->sector_buf, ap 2122 drivers/ata/libata-core.c for (i = 0; i < ap->sector_buf[8]; i++) { ap 2123 drivers/ata/libata-core.c if (ap->sector_buf[9 + i] == page) ap 2165 drivers/ata/libata-core.c struct ata_port *ap = dev->link->ap; ap 2170 drivers/ata/libata-core.c return ((ap->cbl == ATA_CBL_SATA) && (!ata_id_is_sata(dev->id))); ap 2175 drivers/ata/libata-core.c struct ata_port *ap = dev->link->ap; ap 2183 drivers/ata/libata-core.c 0, ap->sector_buf, 1); ap 2192 drivers/ata/libata-core.c memcpy(cmds, ap->sector_buf, ATA_LOG_NCQ_SEND_RECV_SIZE); ap 2204 drivers/ata/libata-core.c struct ata_port *ap = dev->link->ap; ap 2213 drivers/ata/libata-core.c 0, ap->sector_buf, 1); ap 2221 drivers/ata/libata-core.c memcpy(cmds, ap->sector_buf, ATA_LOG_NCQ_NON_DATA_SIZE); ap 2227 drivers/ata/libata-core.c struct ata_port *ap = dev->link->ap; ap 2238 drivers/ata/libata-core.c ap->sector_buf, ap 2247 drivers/ata/libata-core.c if (ap->sector_buf[ATA_LOG_NCQ_PRIO_OFFSET] & BIT(3)) { ap 2259 drivers/ata/libata-core.c struct ata_port *ap = dev->link->ap; ap 2272 drivers/ata/libata-core.c if (ap->flags & ATA_FLAG_NCQ) { ap 2273 drivers/ata/libata-core.c hdepth = min(ap->scsi_host->can_queue, ATA_MAX_QUEUE); ap 2278 drivers/ata/libata-core.c (ap->flags & ATA_FLAG_FPDMA_AA) && ap 2300 drivers/ata/libata-core.c if ((ap->flags & ATA_FLAG_FPDMA_AUX)) { ap 2332 drivers/ata/libata-core.c struct ata_port *ap = dev->link->ap; ap 2334 drivers/ata/libata-core.c u8 *identify_buf = ap->sector_buf; ap 2386 drivers/ata/libata-core.c struct ata_port *ap = dev->link->ap; ap 2400 drivers/ata/libata-core.c ap->sector_buf, 1); ap 2407 drivers/ata/libata-core.c trusted_cap = get_unaligned_le64(&ap->sector_buf[40]); ap 2433 drivers/ata/libata-core.c struct ata_port *ap = dev->link->ap; ap 2444 drivers/ata/libata-core.c if (!ata_dev_enabled(dev) && ata_msg_info(ap)) { ap 2449 drivers/ata/libata-core.c if (ata_msg_probe(ap)) ap 2462 drivers/ata/libata-core.c if ((!atapi_enabled || (ap->flags & ATA_FLAG_NO_ATAPI)) && ap 2480 drivers/ata/libata-core.c if (ap->flags & ATA_FLAG_NO_LPM) ap 2485 drivers/ata/libata-core.c dev->link->ap->target_lpm_policy = ATA_LPM_MAX_POWER; ap 2499 drivers/ata/libata-core.c if (ata_msg_probe(ap)) ap 2524 drivers/ata/libata-core.c if (ata_msg_probe(ap)) ap 2583 drivers/ata/libata-core.c if (ata_msg_drv(ap) && print_info) { ap 2608 drivers/ata/libata-core.c if (ata_msg_drv(ap) && print_info) { ap 2624 drivers/ata/libata-core.c u8 *sata_setting = ap->sector_buf; ap 2658 drivers/ata/libata-core.c if (ata_msg_warn(ap)) ap 2671 drivers/ata/libata-core.c (ap->flags & ATA_FLAG_AN) && ata_id_has_atapi_AN(id) && ap 2672 drivers/ata/libata-core.c (!sata_pmp_attached(ap) || ap 2673 drivers/ata/libata-core.c sata_scr_read(&ap->link, SCR_NOTIFICATION, &sntf) == 0)) { ap 2703 drivers/ata/libata-core.c if (ata_msg_drv(ap) && print_info) ap 2720 drivers/ata/libata-core.c if (ata_msg_drv(ap) && print_info) ap 2743 drivers/ata/libata-core.c if (ap->ops->dev_config) ap 2744 drivers/ata/libata-core.c ap->ops->dev_config(dev); ap 2769 drivers/ata/libata-core.c if (ata_msg_probe(ap)) ap 2782 drivers/ata/libata-core.c int ata_cable_40wire(struct ata_port *ap) ap 2795 drivers/ata/libata-core.c int ata_cable_80wire(struct ata_port *ap) ap 2807 drivers/ata/libata-core.c int ata_cable_unknown(struct ata_port *ap) ap 2819 drivers/ata/libata-core.c int ata_cable_ignore(struct ata_port *ap) ap 2831 drivers/ata/libata-core.c int ata_cable_sata(struct ata_port *ap) ap 2851 drivers/ata/libata-core.c int ata_bus_probe(struct ata_port *ap) ap 2858 drivers/ata/libata-core.c ata_for_each_dev(dev, &ap->link, ALL) ap 2862 drivers/ata/libata-core.c ata_for_each_dev(dev, &ap->link, ALL) { ap 2878 drivers/ata/libata-core.c if (ap->ops->set_piomode) ap 2879 drivers/ata/libata-core.c ap->ops->set_piomode(ap, dev); ap 2883 drivers/ata/libata-core.c ap->ops->phy_reset(ap); ap 2885 drivers/ata/libata-core.c ata_for_each_dev(dev, &ap->link, ALL) { ap 2898 drivers/ata/libata-core.c ata_for_each_dev(dev, &ap->link, ALL_REVERSE) { ap 2912 drivers/ata/libata-core.c if (ap->ops->cable_detect) ap 2913 drivers/ata/libata-core.c ap->cbl = ap->ops->cable_detect(ap); ap 2920 drivers/ata/libata-core.c ata_for_each_dev(dev, &ap->link, ENABLED) ap 2922 drivers/ata/libata-core.c ap->cbl = ATA_CBL_SATA; ap 2927 drivers/ata/libata-core.c ata_for_each_dev(dev, &ap->link, ENABLED) { ap 2928 drivers/ata/libata-core.c ap->link.eh_context.i.flags |= ATA_EHI_PRINTINFO; ap 2930 drivers/ata/libata-core.c ap->link.eh_context.i.flags &= ~ATA_EHI_PRINTINFO; ap 2936 drivers/ata/libata-core.c rc = ata_set_mode(&ap->link, &dev); ap 2940 drivers/ata/libata-core.c ata_for_each_dev(dev, &ap->link, ENABLED) ap 2963 drivers/ata/libata-core.c sata_down_spd_limit(&ap->link, 0); ap 3100 drivers/ata/libata-core.c struct ata_link *host_link = &link->ap->link; ap 3486 drivers/ata/libata-core.c struct ata_port *ap = dev->link->ap; ap 3498 drivers/ata/libata-core.c if (nosetxfer && ap->flags & ATA_FLAG_SATA && ata_id_is_sata(dev->id)) ap 3586 drivers/ata/libata-core.c struct ata_port *ap = link->ap; ap 3632 drivers/ata/libata-core.c if (ap->ops->set_piomode) ap 3633 drivers/ata/libata-core.c ap->ops->set_piomode(ap, dev); ap 3643 drivers/ata/libata-core.c if (ap->ops->set_dmamode) ap 3644 drivers/ata/libata-core.c ap->ops->set_dmamode(ap, dev); ap 3657 drivers/ata/libata-core.c if (used_dma && (ap->host->flags & ATA_HOST_SIMPLEX)) ap 3658 drivers/ata/libata-core.c ap->host->simplex_claimed = ap; ap 3694 drivers/ata/libata-core.c if (link->ap->host->flags & ATA_HOST_PARALLEL_SCAN) ap 3703 drivers/ata/libata-core.c WARN_ON(link == link->ap->slave_link); ap 3730 drivers/ata/libata-core.c else if ((link->ap->flags & ATA_FLAG_SATA) && ap 3749 drivers/ata/libata-core.c ata_msleep(link->ap, 50); ap 3770 drivers/ata/libata-core.c ata_msleep(link->ap, ATA_WAIT_AFTER_RESET); ap 3818 drivers/ata/libata-core.c ata_msleep(link->ap, interval); ap 3884 drivers/ata/libata-core.c ata_msleep(link->ap, 200); ap 4004 drivers/ata/libata-core.c struct ata_port *ap = link->ap; ap 4014 drivers/ata/libata-core.c if (ap->flags & ATA_FLAG_SATA) { ap 4095 drivers/ata/libata-core.c ata_msleep(link->ap, 1); ap 4109 drivers/ata/libata-core.c if (sata_pmp_supported(link->ap) && ata_is_host_link(link)) { ap 4262 drivers/ata/libata-core.c u16 *id = (void *)dev->link->ap->sector_buf; ap 4642 drivers/ata/libata-core.c if ((dev->link->ap->flags & ATA_FLAG_PIO_POLLING) && ap 4676 drivers/ata/libata-core.c static int cable_is_40wire(struct ata_port *ap) ap 4682 drivers/ata/libata-core.c if (ap->cbl == ATA_CBL_PATA40) ap 4686 drivers/ata/libata-core.c if (ap->cbl == ATA_CBL_PATA80 || ap->cbl == ATA_CBL_SATA) ap 4693 drivers/ata/libata-core.c if (ap->cbl == ATA_CBL_PATA40_SHORT) ap 4705 drivers/ata/libata-core.c ata_for_each_link(link, ap, EDGE) { ap 4729 drivers/ata/libata-core.c struct ata_port *ap = link->ap; ap 4730 drivers/ata/libata-core.c struct ata_host *host = ap->host; ap 4734 drivers/ata/libata-core.c xfer_mask = ata_pack_xfermask(ap->pio_mask, ap 4735 drivers/ata/libata-core.c ap->mwdma_mask, ap->udma_mask); ap 4760 drivers/ata/libata-core.c host->simplex_claimed && host->simplex_claimed != ap) { ap 4766 drivers/ata/libata-core.c if (ap->flags & ATA_FLAG_NO_IORDY) ap 4769 drivers/ata/libata-core.c if (ap->ops->mode_filter) ap 4770 drivers/ata/libata-core.c xfer_mask = ap->ops->mode_filter(dev, xfer_mask); ap 4782 drivers/ata/libata-core.c if (cable_is_40wire(ap)) { ap 4938 drivers/ata/libata-core.c struct ata_port *ap = qc->ap; ap 4947 drivers/ata/libata-core.c if (ap->ops->check_atapi_dma) ap 4948 drivers/ata/libata-core.c return ap->ops->check_atapi_dma(qc); ap 5019 drivers/ata/libata-core.c struct ata_port *ap = qc->ap; ap 5028 drivers/ata/libata-core.c dma_unmap_sg(ap->dev, sg, qc->orig_n_elem, dir); ap 5049 drivers/ata/libata-core.c struct ata_port *ap = qc->ap; ap 5052 drivers/ata/libata-core.c VPRINTK("ENTER, ata%u\n", ap->print_id); ap 5054 drivers/ata/libata-core.c n_elem = dma_map_sg(ap->dev, qc->sg, qc->n_elem, qc->dma_dir); ap 5106 drivers/ata/libata-core.c struct ata_port *ap = dev->link->ap; ap 5110 drivers/ata/libata-core.c if (unlikely(ap->pflags & ATA_PFLAG_FROZEN)) ap 5114 drivers/ata/libata-core.c if (ap->flags & ATA_FLAG_SAS_HOST) { ap 5115 drivers/ata/libata-core.c tag = ata_sas_allocate_tag(ap); ap 5120 drivers/ata/libata-core.c qc = __ata_qc_from_tag(ap, tag); ap 5123 drivers/ata/libata-core.c qc->ap = ap; ap 5143 drivers/ata/libata-core.c struct ata_port *ap; ap 5147 drivers/ata/libata-core.c ap = qc->ap; ap 5153 drivers/ata/libata-core.c if (ap->flags & ATA_FLAG_SAS_HOST) ap 5154 drivers/ata/libata-core.c ata_sas_free_tag(tag, ap); ap 5160 drivers/ata/libata-core.c struct ata_port *ap; ap 5165 drivers/ata/libata-core.c ap = qc->ap; ap 5175 drivers/ata/libata-core.c ap->nr_active_links--; ap 5178 drivers/ata/libata-core.c ap->nr_active_links--; ap 5183 drivers/ata/libata-core.c ap->excl_link == link)) ap 5184 drivers/ata/libata-core.c ap->excl_link = NULL; ap 5191 drivers/ata/libata-core.c ap->qc_active &= ~(1ULL << qc->tag); ap 5199 drivers/ata/libata-core.c struct ata_port *ap = qc->ap; ap 5202 drivers/ata/libata-core.c ap->ops->qc_fill_rtf(qc); ap 5235 drivers/ata/libata-core.c struct ata_port *ap = qc->ap; ap 5253 drivers/ata/libata-core.c if (ap->ops->error_handler) { ap 5282 drivers/ata/libata-core.c WARN_ON_ONCE(ap->pflags & ATA_PFLAG_FROZEN); ap 5304 drivers/ata/libata-core.c ata_port_schedule_eh(ap); ap 5338 drivers/ata/libata-core.c u64 ata_qc_get_active(struct ata_port *ap) ap 5340 drivers/ata/libata-core.c u64 qc_active = ap->qc_active; ap 5372 drivers/ata/libata-core.c int ata_qc_complete_multiple(struct ata_port *ap, u64 qc_active) ap 5374 drivers/ata/libata-core.c u64 done_mask, ap_qc_active = ap->qc_active; ap 5390 drivers/ata/libata-core.c ata_port_err(ap, "illegal qc_active transition (%08llx->%08llx)\n", ap 5391 drivers/ata/libata-core.c ap->qc_active, qc_active); ap 5399 drivers/ata/libata-core.c qc = ata_qc_from_tag(ap, tag); ap 5424 drivers/ata/libata-core.c struct ata_port *ap = qc->ap; ap 5432 drivers/ata/libata-core.c WARN_ON_ONCE(ap->ops->error_handler && ata_tag_valid(link->active_tag)); ap 5438 drivers/ata/libata-core.c ap->nr_active_links++; ap 5443 drivers/ata/libata-core.c ap->nr_active_links++; ap 5448 drivers/ata/libata-core.c ap->qc_active |= 1ULL << qc->tag; ap 5458 drivers/ata/libata-core.c (ap->flags & ATA_FLAG_PIO_DMA))) ap 5470 drivers/ata/libata-core.c ap->ops->qc_prep(qc); ap 5472 drivers/ata/libata-core.c qc->err_mask |= ap->ops->qc_issue(qc); ap 5497 drivers/ata/libata-core.c struct ata_port *ap = link->ap; ap 5499 drivers/ata/libata-core.c return (ap->flags & ATA_FLAG_SATA) && ap->ops->scr_read; ap 5522 drivers/ata/libata-core.c return link->ap->ops->scr_read(link, reg, val); ap 5549 drivers/ata/libata-core.c return link->ap->ops->scr_write(link, reg, val); ap 5577 drivers/ata/libata-core.c rc = link->ap->ops->scr_write(link, reg, val); ap 5579 drivers/ata/libata-core.c rc = link->ap->ops->scr_read(link, reg, &val); ap 5654 drivers/ata/libata-core.c struct ata_link *slave = link->ap->slave_link; ap 5680 drivers/ata/libata-core.c struct ata_link *slave = link->ap->slave_link; ap 5689 drivers/ata/libata-core.c static void ata_port_request_pm(struct ata_port *ap, pm_message_t mesg, ap 5699 drivers/ata/libata-core.c if (ap->pflags & ATA_PFLAG_PM_PENDING) { ap 5700 drivers/ata/libata-core.c ata_port_wait_eh(ap); ap 5701 drivers/ata/libata-core.c WARN_ON(ap->pflags & ATA_PFLAG_PM_PENDING); ap 5705 drivers/ata/libata-core.c spin_lock_irqsave(ap->lock, flags); ap 5707 drivers/ata/libata-core.c ap->pm_mesg = mesg; ap 5708 drivers/ata/libata-core.c ap->pflags |= ATA_PFLAG_PM_PENDING; ap 5709 drivers/ata/libata-core.c ata_for_each_link(link, ap, HOST_FIRST) { ap 5714 drivers/ata/libata-core.c ata_port_schedule_eh(ap); ap 5716 drivers/ata/libata-core.c spin_unlock_irqrestore(ap->lock, flags); ap 5719 drivers/ata/libata-core.c ata_port_wait_eh(ap); ap 5720 drivers/ata/libata-core.c WARN_ON(ap->pflags & ATA_PFLAG_PM_PENDING); ap 5735 drivers/ata/libata-core.c static void ata_port_suspend(struct ata_port *ap, pm_message_t mesg) ap 5737 drivers/ata/libata-core.c ata_port_request_pm(ap, mesg, 0, ata_port_suspend_ehi, false); ap 5740 drivers/ata/libata-core.c static void ata_port_suspend_async(struct ata_port *ap, pm_message_t mesg) ap 5742 drivers/ata/libata-core.c ata_port_request_pm(ap, mesg, 0, ata_port_suspend_ehi, true); ap 5747 drivers/ata/libata-core.c struct ata_port *ap = to_ata_port(dev); ap 5752 drivers/ata/libata-core.c ata_port_suspend(ap, PMSG_SUSPEND); ap 5758 drivers/ata/libata-core.c struct ata_port *ap = to_ata_port(dev); ap 5763 drivers/ata/libata-core.c ata_port_suspend(ap, PMSG_FREEZE); ap 5776 drivers/ata/libata-core.c static void ata_port_resume(struct ata_port *ap, pm_message_t mesg) ap 5778 drivers/ata/libata-core.c ata_port_request_pm(ap, mesg, ATA_EH_RESET, ata_port_resume_ehi, false); ap 5781 drivers/ata/libata-core.c static void ata_port_resume_async(struct ata_port *ap, pm_message_t mesg) ap 5783 drivers/ata/libata-core.c ata_port_request_pm(ap, mesg, ATA_EH_RESET, ata_port_resume_ehi, true); ap 5805 drivers/ata/libata-core.c struct ata_port *ap = to_ata_port(dev); ap 5809 drivers/ata/libata-core.c ata_for_each_link(link, ap, HOST_FIRST) { ap 5849 drivers/ata/libata-core.c void ata_sas_port_suspend(struct ata_port *ap) ap 5851 drivers/ata/libata-core.c ata_port_suspend_async(ap, PMSG_SUSPEND); ap 5855 drivers/ata/libata-core.c void ata_sas_port_resume(struct ata_port *ap) ap 5857 drivers/ata/libata-core.c ata_port_resume_async(ap, PMSG_RESUME); ap 5905 drivers/ata/libata-core.c struct ata_port *ap = link->ap; ap 5916 drivers/ata/libata-core.c spin_lock_irqsave(ap->lock, flags); ap 5919 drivers/ata/libata-core.c spin_unlock_irqrestore(ap->lock, flags); ap 5939 drivers/ata/libata-core.c void ata_link_init(struct ata_port *ap, struct ata_link *link, int pmp) ap 5947 drivers/ata/libata-core.c link->ap = ap; ap 6012 drivers/ata/libata-core.c struct ata_port *ap; ap 6016 drivers/ata/libata-core.c ap = kzalloc(sizeof(*ap), GFP_KERNEL); ap 6017 drivers/ata/libata-core.c if (!ap) ap 6020 drivers/ata/libata-core.c ap->pflags |= ATA_PFLAG_INITIALIZING | ATA_PFLAG_FROZEN; ap 6021 drivers/ata/libata-core.c ap->lock = &host->lock; ap 6022 drivers/ata/libata-core.c ap->print_id = -1; ap 6023 drivers/ata/libata-core.c ap->local_port_no = -1; ap 6024 drivers/ata/libata-core.c ap->host = host; ap 6025 drivers/ata/libata-core.c ap->dev = host->dev; ap 6029 drivers/ata/libata-core.c ap->msg_enable = 0x00FF; ap 6031 drivers/ata/libata-core.c ap->msg_enable = ATA_MSG_DRV | ATA_MSG_INFO | ATA_MSG_CTL | ATA_MSG_WARN | ATA_MSG_ERR; ap 6033 drivers/ata/libata-core.c ap->msg_enable = ATA_MSG_DRV | ATA_MSG_ERR | ATA_MSG_WARN; ap 6036 drivers/ata/libata-core.c mutex_init(&ap->scsi_scan_mutex); ap 6037 drivers/ata/libata-core.c INIT_DELAYED_WORK(&ap->hotplug_task, ata_scsi_hotplug); ap 6038 drivers/ata/libata-core.c INIT_WORK(&ap->scsi_rescan_task, ata_scsi_dev_rescan); ap 6039 drivers/ata/libata-core.c INIT_LIST_HEAD(&ap->eh_done_q); ap 6040 drivers/ata/libata-core.c init_waitqueue_head(&ap->eh_wait_q); ap 6041 drivers/ata/libata-core.c init_completion(&ap->park_req_pending); ap 6042 drivers/ata/libata-core.c timer_setup(&ap->fastdrain_timer, ata_eh_fastdrain_timerfn, ap 6045 drivers/ata/libata-core.c ap->cbl = ATA_CBL_NONE; ap 6047 drivers/ata/libata-core.c ata_link_init(ap, &ap->link, 0); ap 6050 drivers/ata/libata-core.c ap->stats.unhandled_irq = 1; ap 6051 drivers/ata/libata-core.c ap->stats.idle_irq = 1; ap 6053 drivers/ata/libata-core.c ata_sff_port_init(ap); ap 6055 drivers/ata/libata-core.c return ap; ap 6064 drivers/ata/libata-core.c struct ata_port *ap = host->ports[i]; ap 6066 drivers/ata/libata-core.c if (!ap) ap 6069 drivers/ata/libata-core.c if (ap->scsi_host) ap 6070 drivers/ata/libata-core.c scsi_host_put(ap->scsi_host); ap 6084 drivers/ata/libata-core.c struct ata_port *ap = host->ports[i]; ap 6086 drivers/ata/libata-core.c kfree(ap->pmp_link); ap 6087 drivers/ata/libata-core.c kfree(ap->slave_link); ap 6088 drivers/ata/libata-core.c kfree(ap); ap 6157 drivers/ata/libata-core.c struct ata_port *ap; ap 6159 drivers/ata/libata-core.c ap = ata_port_alloc(host); ap 6160 drivers/ata/libata-core.c if (!ap) ap 6163 drivers/ata/libata-core.c ap->port_no = i; ap 6164 drivers/ata/libata-core.c host->ports[i] = ap; ap 6206 drivers/ata/libata-core.c struct ata_port *ap = host->ports[i]; ap 6211 drivers/ata/libata-core.c ap->pio_mask = pi->pio_mask; ap 6212 drivers/ata/libata-core.c ap->mwdma_mask = pi->mwdma_mask; ap 6213 drivers/ata/libata-core.c ap->udma_mask = pi->udma_mask; ap 6214 drivers/ata/libata-core.c ap->flags |= pi->flags; ap 6215 drivers/ata/libata-core.c ap->link.flags |= pi->link_flags; ap 6216 drivers/ata/libata-core.c ap->ops = pi->port_ops; ap 6271 drivers/ata/libata-core.c int ata_slave_link_init(struct ata_port *ap) ap 6275 drivers/ata/libata-core.c WARN_ON(ap->slave_link); ap 6276 drivers/ata/libata-core.c WARN_ON(ap->flags & ATA_FLAG_PMP); ap 6282 drivers/ata/libata-core.c ata_link_init(ap, link, 1); ap 6283 drivers/ata/libata-core.c ap->slave_link = link; ap 6295 drivers/ata/libata-core.c struct ata_port *ap = host->ports[i]; ap 6297 drivers/ata/libata-core.c if (ap->ops->port_stop) ap 6298 drivers/ata/libata-core.c ap->ops->port_stop(ap); ap 6383 drivers/ata/libata-core.c struct ata_port *ap = host->ports[i]; ap 6385 drivers/ata/libata-core.c ata_finalize_port_ops(ap->ops); ap 6387 drivers/ata/libata-core.c if (!host->ops && !ata_port_is_dummy(ap)) ap 6388 drivers/ata/libata-core.c host->ops = ap->ops; ap 6390 drivers/ata/libata-core.c if (ap->ops->port_stop) ap 6404 drivers/ata/libata-core.c struct ata_port *ap = host->ports[i]; ap 6406 drivers/ata/libata-core.c if (ap->ops->port_start) { ap 6407 drivers/ata/libata-core.c rc = ap->ops->port_start(ap); ap 6416 drivers/ata/libata-core.c ata_eh_freeze_port(ap); ap 6426 drivers/ata/libata-core.c struct ata_port *ap = host->ports[i]; ap 6428 drivers/ata/libata-core.c if (ap->ops->port_stop) ap 6429 drivers/ata/libata-core.c ap->ops->port_stop(ap); ap 6453 drivers/ata/libata-core.c void __ata_port_probe(struct ata_port *ap) ap 6455 drivers/ata/libata-core.c struct ata_eh_info *ehi = &ap->link.eh_info; ap 6459 drivers/ata/libata-core.c spin_lock_irqsave(ap->lock, flags); ap 6465 drivers/ata/libata-core.c ap->pflags &= ~ATA_PFLAG_INITIALIZING; ap 6466 drivers/ata/libata-core.c ap->pflags |= ATA_PFLAG_LOADING; ap 6467 drivers/ata/libata-core.c ata_port_schedule_eh(ap); ap 6469 drivers/ata/libata-core.c spin_unlock_irqrestore(ap->lock, flags); ap 6472 drivers/ata/libata-core.c int ata_port_probe(struct ata_port *ap) ap 6476 drivers/ata/libata-core.c if (ap->ops->error_handler) { ap 6477 drivers/ata/libata-core.c __ata_port_probe(ap); ap 6478 drivers/ata/libata-core.c ata_port_wait_eh(ap); ap 6480 drivers/ata/libata-core.c DPRINTK("ata%u: bus probe begin\n", ap->print_id); ap 6481 drivers/ata/libata-core.c rc = ata_bus_probe(ap); ap 6482 drivers/ata/libata-core.c DPRINTK("ata%u: bus probe end\n", ap->print_id); ap 6490 drivers/ata/libata-core.c struct ata_port *ap = data; ap 6499 drivers/ata/libata-core.c if (!(ap->host->flags & ATA_HOST_PARALLEL_SCAN) && ap->port_no != 0) ap 6502 drivers/ata/libata-core.c (void)ata_port_probe(ap); ap 6507 drivers/ata/libata-core.c ata_scsi_scan_host(ap, 1); ap 6566 drivers/ata/libata-core.c struct ata_port *ap = host->ports[i]; ap 6570 drivers/ata/libata-core.c if (ap->cbl == ATA_CBL_NONE && (ap->flags & ATA_FLAG_SATA)) ap 6571 drivers/ata/libata-core.c ap->cbl = ATA_CBL_SATA; ap 6574 drivers/ata/libata-core.c sata_link_init_spd(&ap->link); ap 6575 drivers/ata/libata-core.c if (ap->slave_link) ap 6576 drivers/ata/libata-core.c sata_link_init_spd(ap->slave_link); ap 6579 drivers/ata/libata-core.c xfer_mask = ata_pack_xfermask(ap->pio_mask, ap->mwdma_mask, ap 6580 drivers/ata/libata-core.c ap->udma_mask); ap 6582 drivers/ata/libata-core.c if (!ata_port_is_dummy(ap)) { ap 6583 drivers/ata/libata-core.c ata_port_info(ap, "%cATA max %s %s\n", ap 6584 drivers/ata/libata-core.c (ap->flags & ATA_FLAG_SATA) ? 'S' : 'P', ap 6586 drivers/ata/libata-core.c ap->link.eh_info.desc); ap 6587 drivers/ata/libata-core.c ata_ehi_clear_desc(&ap->link.eh_info); ap 6589 drivers/ata/libata-core.c ata_port_info(ap, "DUMMY\n"); ap 6594 drivers/ata/libata-core.c struct ata_port *ap = host->ports[i]; ap 6595 drivers/ata/libata-core.c async_schedule(async_port_probe, ap); ap 6681 drivers/ata/libata-core.c static void ata_port_detach(struct ata_port *ap) ap 6687 drivers/ata/libata-core.c if (!ap->ops->error_handler) ap 6691 drivers/ata/libata-core.c spin_lock_irqsave(ap->lock, flags); ap 6692 drivers/ata/libata-core.c ap->pflags |= ATA_PFLAG_UNLOADING; ap 6693 drivers/ata/libata-core.c ata_port_schedule_eh(ap); ap 6694 drivers/ata/libata-core.c spin_unlock_irqrestore(ap->lock, flags); ap 6697 drivers/ata/libata-core.c ata_port_wait_eh(ap); ap 6700 drivers/ata/libata-core.c WARN_ON(!(ap->pflags & ATA_PFLAG_UNLOADED)); ap 6702 drivers/ata/libata-core.c cancel_delayed_work_sync(&ap->hotplug_task); ap 6706 drivers/ata/libata-core.c ata_for_each_link(link, ap, HOST_FIRST) { ap 6712 drivers/ata/libata-core.c if (ap->pmp_link) { ap 6715 drivers/ata/libata-core.c ata_tlink_delete(&ap->pmp_link[i]); ap 6718 drivers/ata/libata-core.c scsi_remove_host(ap->scsi_host); ap 6719 drivers/ata/libata-core.c ata_tport_delete(ap); ap 6771 drivers/ata/libata-core.c struct ata_port *ap = host->ports[i]; ap 6773 drivers/ata/libata-core.c ap->pflags |= ATA_PFLAG_FROZEN; ap 6776 drivers/ata/libata-core.c if (ap->ops->freeze) ap 6777 drivers/ata/libata-core.c ap->ops->freeze(ap); ap 6780 drivers/ata/libata-core.c if (ap->ops->port_stop) ap 6781 drivers/ata/libata-core.c ap->ops->port_stop(ap); ap 7133 drivers/ata/libata-core.c void ata_msleep(struct ata_port *ap, unsigned int msecs) ap 7135 drivers/ata/libata-core.c bool owns_eh = ap && ap->host->eh_owner == current; ap 7138 drivers/ata/libata-core.c ata_eh_release(ap); ap 7148 drivers/ata/libata-core.c ata_eh_acquire(ap); ap 7175 drivers/ata/libata-core.c u32 ata_wait_register(struct ata_port *ap, void __iomem *reg, u32 mask, u32 val, ap 7190 drivers/ata/libata-core.c ata_msleep(ap, interval); ap 7237 drivers/ata/libata-core.c static void ata_dummy_error_handler(struct ata_port *ap) ap 7257 drivers/ata/libata-core.c void ata_port_printk(const struct ata_port *ap, const char *level, ap 7268 drivers/ata/libata-core.c printk("%sata%u: %pV", level, ap->print_id, &vaf); ap 7285 drivers/ata/libata-core.c if (sata_pmp_attached(link->ap) || link->ap->slave_link) ap 7287 drivers/ata/libata-core.c level, link->ap->print_id, link->pmp, &vaf); ap 7290 drivers/ata/libata-core.c level, link->ap->print_id, &vaf); ap 7308 drivers/ata/libata-core.c level, dev->link->ap->print_id, dev->link->pmp + dev->devno, ap 149 drivers/ata/libata-eh.c static void __ata_port_freeze(struct ata_port *ap); ap 151 drivers/ata/libata-eh.c static void ata_eh_handle_port_suspend(struct ata_port *ap); ap 152 drivers/ata/libata-eh.c static void ata_eh_handle_port_resume(struct ata_port *ap); ap 154 drivers/ata/libata-eh.c static void ata_eh_handle_port_suspend(struct ata_port *ap) ap 157 drivers/ata/libata-eh.c static void ata_eh_handle_port_resume(struct ata_port *ap) ap 239 drivers/ata/libata-eh.c void ata_port_desc(struct ata_port *ap, const char *fmt, ...) ap 243 drivers/ata/libata-eh.c WARN_ON(!(ap->pflags & ATA_PFLAG_INITIALIZING)); ap 245 drivers/ata/libata-eh.c if (ap->link.eh_info.desc_len) ap 246 drivers/ata/libata-eh.c __ata_ehi_push_desc(&ap->link.eh_info, " "); ap 249 drivers/ata/libata-eh.c __ata_ehi_pushv_desc(&ap->link.eh_info, fmt, args); ap 270 drivers/ata/libata-eh.c void ata_port_pbar_desc(struct ata_port *ap, int bar, ssize_t offset, ap 273 drivers/ata/libata-eh.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 286 drivers/ata/libata-eh.c ata_port_desc(ap, "%s %s%llu@0x%llx", name, type, len, start); ap 288 drivers/ata/libata-eh.c ata_port_desc(ap, "%s 0x%llx", name, ap 462 drivers/ata/libata-eh.c void ata_eh_acquire(struct ata_port *ap) ap 464 drivers/ata/libata-eh.c mutex_lock(&ap->host->eh_mutex); ap 465 drivers/ata/libata-eh.c WARN_ON_ONCE(ap->host->eh_owner); ap 466 drivers/ata/libata-eh.c ap->host->eh_owner = current; ap 479 drivers/ata/libata-eh.c void ata_eh_release(struct ata_port *ap) ap 481 drivers/ata/libata-eh.c WARN_ON_ONCE(ap->host->eh_owner != current); ap 482 drivers/ata/libata-eh.c ap->host->eh_owner = NULL; ap 483 drivers/ata/libata-eh.c mutex_unlock(&ap->host->eh_mutex); ap 486 drivers/ata/libata-eh.c static void ata_eh_unload(struct ata_port *ap) ap 495 drivers/ata/libata-eh.c ata_for_each_link(link, ap, PMP_FIRST) { ap 502 drivers/ata/libata-eh.c spin_lock_irqsave(ap->lock, flags); ap 504 drivers/ata/libata-eh.c ata_port_freeze(ap); /* won't be thawed */ ap 505 drivers/ata/libata-eh.c ap->pflags &= ~ATA_PFLAG_EH_PENDING; /* clear pending from freeze */ ap 506 drivers/ata/libata-eh.c ap->pflags |= ATA_PFLAG_UNLOADED; ap 508 drivers/ata/libata-eh.c spin_unlock_irqrestore(ap->lock, flags); ap 525 drivers/ata/libata-eh.c struct ata_port *ap = ata_shost_to_port(host); ap 535 drivers/ata/libata-eh.c ata_scsi_cmd_error_handler(host, ap, &eh_work_q); ap 539 drivers/ata/libata-eh.c ata_scsi_port_error_handler(host, ap); ap 557 drivers/ata/libata-eh.c void ata_scsi_cmd_error_handler(struct Scsi_Host *host, struct ata_port *ap, ap 564 drivers/ata/libata-eh.c ata_sff_flush_pio_task(ap); ap 580 drivers/ata/libata-eh.c spin_lock_irqsave(ap->lock, flags); ap 581 drivers/ata/libata-eh.c if (ap->ops->error_handler) { ap 594 drivers/ata/libata-eh.c if (ap->ops->lost_interrupt) ap 595 drivers/ata/libata-eh.c ap->ops->lost_interrupt(ap); ap 600 drivers/ata/libata-eh.c ata_qc_for_each_raw(ap, qc, i) { ap 620 drivers/ata/libata-eh.c scsi_eh_finish_cmd(scmd, &ap->eh_done_q); ap 631 drivers/ata/libata-eh.c __ata_port_freeze(ap); ap 635 drivers/ata/libata-eh.c ap->eh_tries = ATA_EH_MAX_TRIES; ap 637 drivers/ata/libata-eh.c spin_unlock_irqrestore(ap->lock, flags); ap 650 drivers/ata/libata-eh.c void ata_scsi_port_error_handler(struct Scsi_Host *host, struct ata_port *ap) ap 655 drivers/ata/libata-eh.c if (ap->ops->error_handler) { ap 659 drivers/ata/libata-eh.c ata_eh_acquire(ap); ap 662 drivers/ata/libata-eh.c del_timer_sync(&ap->fastdrain_timer); ap 665 drivers/ata/libata-eh.c ata_eh_handle_port_resume(ap); ap 668 drivers/ata/libata-eh.c spin_lock_irqsave(ap->lock, flags); ap 670 drivers/ata/libata-eh.c ata_for_each_link(link, ap, HOST_FIRST) { ap 687 drivers/ata/libata-eh.c ap->pflags |= ATA_PFLAG_EH_IN_PROGRESS; ap 688 drivers/ata/libata-eh.c ap->pflags &= ~ATA_PFLAG_EH_PENDING; ap 689 drivers/ata/libata-eh.c ap->excl_link = NULL; /* don't maintain exclusion over EH */ ap 691 drivers/ata/libata-eh.c spin_unlock_irqrestore(ap->lock, flags); ap 694 drivers/ata/libata-eh.c if (!(ap->pflags & (ATA_PFLAG_UNLOADING | ATA_PFLAG_SUSPENDED))) ap 695 drivers/ata/libata-eh.c ap->ops->error_handler(ap); ap 698 drivers/ata/libata-eh.c if ((ap->pflags & ATA_PFLAG_UNLOADING) && ap 699 drivers/ata/libata-eh.c !(ap->pflags & ATA_PFLAG_UNLOADED)) ap 700 drivers/ata/libata-eh.c ata_eh_unload(ap); ap 701 drivers/ata/libata-eh.c ata_eh_finish(ap); ap 705 drivers/ata/libata-eh.c ata_eh_handle_port_suspend(ap); ap 711 drivers/ata/libata-eh.c spin_lock_irqsave(ap->lock, flags); ap 713 drivers/ata/libata-eh.c if (ap->pflags & ATA_PFLAG_EH_PENDING) { ap 714 drivers/ata/libata-eh.c if (--ap->eh_tries) { ap 715 drivers/ata/libata-eh.c spin_unlock_irqrestore(ap->lock, flags); ap 718 drivers/ata/libata-eh.c ata_port_err(ap, ap 721 drivers/ata/libata-eh.c ap->pflags &= ~ATA_PFLAG_EH_PENDING; ap 725 drivers/ata/libata-eh.c ata_for_each_link(link, ap, HOST_FIRST) ap 733 drivers/ata/libata-eh.c ap->ops->end_eh(ap); ap 735 drivers/ata/libata-eh.c spin_unlock_irqrestore(ap->lock, flags); ap 736 drivers/ata/libata-eh.c ata_eh_release(ap); ap 738 drivers/ata/libata-eh.c WARN_ON(ata_qc_from_tag(ap, ap->link.active_tag) == NULL); ap 739 drivers/ata/libata-eh.c ap->ops->eng_timeout(ap); ap 742 drivers/ata/libata-eh.c scsi_eh_flush_done_q(&ap->eh_done_q); ap 745 drivers/ata/libata-eh.c spin_lock_irqsave(ap->lock, flags); ap 747 drivers/ata/libata-eh.c if (ap->pflags & ATA_PFLAG_LOADING) ap 748 drivers/ata/libata-eh.c ap->pflags &= ~ATA_PFLAG_LOADING; ap 749 drivers/ata/libata-eh.c else if ((ap->pflags & ATA_PFLAG_SCSI_HOTPLUG) && ap 750 drivers/ata/libata-eh.c !(ap->flags & ATA_FLAG_SAS_HOST)) ap 751 drivers/ata/libata-eh.c schedule_delayed_work(&ap->hotplug_task, 0); ap 753 drivers/ata/libata-eh.c if (ap->pflags & ATA_PFLAG_RECOVERED) ap 754 drivers/ata/libata-eh.c ata_port_info(ap, "EH complete\n"); ap 756 drivers/ata/libata-eh.c ap->pflags &= ~(ATA_PFLAG_SCSI_HOTPLUG | ATA_PFLAG_RECOVERED); ap 759 drivers/ata/libata-eh.c ap->pflags &= ~ATA_PFLAG_EH_IN_PROGRESS; ap 760 drivers/ata/libata-eh.c wake_up_all(&ap->eh_wait_q); ap 762 drivers/ata/libata-eh.c spin_unlock_irqrestore(ap->lock, flags); ap 775 drivers/ata/libata-eh.c void ata_port_wait_eh(struct ata_port *ap) ap 781 drivers/ata/libata-eh.c spin_lock_irqsave(ap->lock, flags); ap 783 drivers/ata/libata-eh.c while (ap->pflags & (ATA_PFLAG_EH_PENDING | ATA_PFLAG_EH_IN_PROGRESS)) { ap 784 drivers/ata/libata-eh.c prepare_to_wait(&ap->eh_wait_q, &wait, TASK_UNINTERRUPTIBLE); ap 785 drivers/ata/libata-eh.c spin_unlock_irqrestore(ap->lock, flags); ap 787 drivers/ata/libata-eh.c spin_lock_irqsave(ap->lock, flags); ap 789 drivers/ata/libata-eh.c finish_wait(&ap->eh_wait_q, &wait); ap 791 drivers/ata/libata-eh.c spin_unlock_irqrestore(ap->lock, flags); ap 794 drivers/ata/libata-eh.c if (scsi_host_in_recovery(ap->scsi_host)) { ap 795 drivers/ata/libata-eh.c ata_msleep(ap, 10); ap 801 drivers/ata/libata-eh.c static int ata_eh_nr_in_flight(struct ata_port *ap) ap 808 drivers/ata/libata-eh.c ata_qc_for_each(ap, qc, tag) { ap 818 drivers/ata/libata-eh.c struct ata_port *ap = from_timer(ap, t, fastdrain_timer); ap 822 drivers/ata/libata-eh.c spin_lock_irqsave(ap->lock, flags); ap 824 drivers/ata/libata-eh.c cnt = ata_eh_nr_in_flight(ap); ap 830 drivers/ata/libata-eh.c if (cnt == ap->fastdrain_cnt) { ap 837 drivers/ata/libata-eh.c ata_qc_for_each(ap, qc, tag) { ap 842 drivers/ata/libata-eh.c ata_port_freeze(ap); ap 845 drivers/ata/libata-eh.c ap->fastdrain_cnt = cnt; ap 846 drivers/ata/libata-eh.c ap->fastdrain_timer.expires = ap 848 drivers/ata/libata-eh.c add_timer(&ap->fastdrain_timer); ap 852 drivers/ata/libata-eh.c spin_unlock_irqrestore(ap->lock, flags); ap 867 drivers/ata/libata-eh.c static void ata_eh_set_pending(struct ata_port *ap, int fastdrain) ap 872 drivers/ata/libata-eh.c if (ap->pflags & ATA_PFLAG_EH_PENDING) ap 875 drivers/ata/libata-eh.c ap->pflags |= ATA_PFLAG_EH_PENDING; ap 881 drivers/ata/libata-eh.c cnt = ata_eh_nr_in_flight(ap); ap 886 drivers/ata/libata-eh.c ap->fastdrain_cnt = cnt; ap 887 drivers/ata/libata-eh.c ap->fastdrain_timer.expires = ap 889 drivers/ata/libata-eh.c add_timer(&ap->fastdrain_timer); ap 904 drivers/ata/libata-eh.c struct ata_port *ap = qc->ap; ap 906 drivers/ata/libata-eh.c WARN_ON(!ap->ops->error_handler); ap 909 drivers/ata/libata-eh.c ata_eh_set_pending(ap, 1); ap 926 drivers/ata/libata-eh.c void ata_std_sched_eh(struct ata_port *ap) ap 928 drivers/ata/libata-eh.c WARN_ON(!ap->ops->error_handler); ap 930 drivers/ata/libata-eh.c if (ap->pflags & ATA_PFLAG_INITIALIZING) ap 933 drivers/ata/libata-eh.c ata_eh_set_pending(ap, 1); ap 934 drivers/ata/libata-eh.c scsi_schedule_eh(ap->scsi_host); ap 952 drivers/ata/libata-eh.c void ata_std_end_eh(struct ata_port *ap) ap 954 drivers/ata/libata-eh.c struct Scsi_Host *host = ap->scsi_host; ap 971 drivers/ata/libata-eh.c void ata_port_schedule_eh(struct ata_port *ap) ap 974 drivers/ata/libata-eh.c ap->ops->sched_eh(ap); ap 977 drivers/ata/libata-eh.c static int ata_do_link_abort(struct ata_port *ap, struct ata_link *link) ap 982 drivers/ata/libata-eh.c WARN_ON(!ap->ops->error_handler); ap 985 drivers/ata/libata-eh.c ata_eh_set_pending(ap, 0); ap 988 drivers/ata/libata-eh.c ata_qc_for_each_with_internal(ap, qc, tag) { ap 997 drivers/ata/libata-eh.c ata_port_schedule_eh(ap); ap 1016 drivers/ata/libata-eh.c return ata_do_link_abort(link->ap, link); ap 1031 drivers/ata/libata-eh.c int ata_port_abort(struct ata_port *ap) ap 1033 drivers/ata/libata-eh.c return ata_do_link_abort(ap, NULL); ap 1054 drivers/ata/libata-eh.c static void __ata_port_freeze(struct ata_port *ap) ap 1056 drivers/ata/libata-eh.c WARN_ON(!ap->ops->error_handler); ap 1058 drivers/ata/libata-eh.c if (ap->ops->freeze) ap 1059 drivers/ata/libata-eh.c ap->ops->freeze(ap); ap 1061 drivers/ata/libata-eh.c ap->pflags |= ATA_PFLAG_FROZEN; ap 1063 drivers/ata/libata-eh.c DPRINTK("ata%u port frozen\n", ap->print_id); ap 1080 drivers/ata/libata-eh.c int ata_port_freeze(struct ata_port *ap) ap 1084 drivers/ata/libata-eh.c WARN_ON(!ap->ops->error_handler); ap 1086 drivers/ata/libata-eh.c __ata_port_freeze(ap); ap 1087 drivers/ata/libata-eh.c nr_aborted = ata_port_abort(ap); ap 1105 drivers/ata/libata-eh.c int sata_async_notification(struct ata_port *ap) ap 1110 drivers/ata/libata-eh.c if (!(ap->flags & ATA_FLAG_AN)) ap 1113 drivers/ata/libata-eh.c rc = sata_scr_read(&ap->link, SCR_NOTIFICATION, &sntf); ap 1115 drivers/ata/libata-eh.c sata_scr_write(&ap->link, SCR_NOTIFICATION, sntf); ap 1117 drivers/ata/libata-eh.c if (!sata_pmp_attached(ap) || rc) { ap 1119 drivers/ata/libata-eh.c if (!sata_pmp_attached(ap)) { ap 1124 drivers/ata/libata-eh.c struct ata_device *dev = ap->link.device; ap 1136 drivers/ata/libata-eh.c ata_port_schedule_eh(ap); ap 1144 drivers/ata/libata-eh.c ata_for_each_link(link, ap, EDGE) { ap 1157 drivers/ata/libata-eh.c ata_port_schedule_eh(ap); ap 1174 drivers/ata/libata-eh.c void ata_eh_freeze_port(struct ata_port *ap) ap 1178 drivers/ata/libata-eh.c if (!ap->ops->error_handler) ap 1181 drivers/ata/libata-eh.c spin_lock_irqsave(ap->lock, flags); ap 1182 drivers/ata/libata-eh.c __ata_port_freeze(ap); ap 1183 drivers/ata/libata-eh.c spin_unlock_irqrestore(ap->lock, flags); ap 1195 drivers/ata/libata-eh.c void ata_eh_thaw_port(struct ata_port *ap) ap 1199 drivers/ata/libata-eh.c if (!ap->ops->error_handler) ap 1202 drivers/ata/libata-eh.c spin_lock_irqsave(ap->lock, flags); ap 1204 drivers/ata/libata-eh.c ap->pflags &= ~ATA_PFLAG_FROZEN; ap 1206 drivers/ata/libata-eh.c if (ap->ops->thaw) ap 1207 drivers/ata/libata-eh.c ap->ops->thaw(ap); ap 1209 drivers/ata/libata-eh.c spin_unlock_irqrestore(ap->lock, flags); ap 1211 drivers/ata/libata-eh.c DPRINTK("ata%u port thawed\n", ap->print_id); ap 1221 drivers/ata/libata-eh.c struct ata_port *ap = qc->ap; ap 1225 drivers/ata/libata-eh.c spin_lock_irqsave(ap->lock, flags); ap 1229 drivers/ata/libata-eh.c spin_unlock_irqrestore(ap->lock, flags); ap 1231 drivers/ata/libata-eh.c scsi_eh_finish_cmd(scmd, &ap->eh_done_q); ap 1281 drivers/ata/libata-eh.c if (ata_msg_drv(dev->link->ap)) ap 1305 drivers/ata/libata-eh.c struct ata_port *ap = link->ap; ap 1311 drivers/ata/libata-eh.c spin_lock_irqsave(ap->lock, flags); ap 1317 drivers/ata/libata-eh.c ap->pflags |= ATA_PFLAG_SCSI_HOTPLUG; ap 1326 drivers/ata/libata-eh.c spin_unlock_irqrestore(ap->lock, flags); ap 1345 drivers/ata/libata-eh.c struct ata_port *ap = link->ap; ap 1350 drivers/ata/libata-eh.c spin_lock_irqsave(ap->lock, flags); ap 1357 drivers/ata/libata-eh.c if (!(ehc->i.flags & ATA_EHI_QUIET) && link != ap->slave_link) ap 1358 drivers/ata/libata-eh.c ap->pflags |= ATA_PFLAG_RECOVERED; ap 1360 drivers/ata/libata-eh.c spin_unlock_irqrestore(ap->lock, flags); ap 1440 drivers/ata/libata-eh.c u8 *buf = dev->link->ap->sector_buf; ap 1527 drivers/ata/libata-eh.c if (qc->ap->pflags & ATA_PFLAG_FROZEN) { ap 1579 drivers/ata/libata-eh.c struct ata_port *ap = dev->link->ap; ap 1599 drivers/ata/libata-eh.c if (ap->flags & ATA_FLAG_PIO_DMA) { ap 1675 drivers/ata/libata-eh.c struct ata_port *ap = link->ap; ap 1683 drivers/ata/libata-eh.c if (ap->pflags & ATA_PFLAG_FROZEN) ap 1691 drivers/ata/libata-eh.c ata_qc_for_each_raw(ap, qc, tag) { ap 1715 drivers/ata/libata-eh.c qc = __ata_qc_from_tag(ap, tag); ap 1788 drivers/ata/libata-eh.c if (!(qc->ap->pflags & ATA_PFLAG_FROZEN)) { ap 2048 drivers/ata/libata-eh.c (link->ap->cbl != ATA_CBL_SATA || dev->class == ATA_DEV_ATAPI) && ap 2113 drivers/ata/libata-eh.c struct ata_port *ap = link->ap; ap 2148 drivers/ata/libata-eh.c ata_qc_for_each_raw(ap, qc, tag) { ap 2198 drivers/ata/libata-eh.c if (ap->pflags & ATA_PFLAG_FROZEN || ap 2216 drivers/ata/libata-eh.c ap->link.eh_context.i.err_mask |= AC_ERR_TIMEOUT; ap 2243 drivers/ata/libata-eh.c void ata_eh_autopsy(struct ata_port *ap) ap 2247 drivers/ata/libata-eh.c ata_for_each_link(link, ap, EDGE) ap 2254 drivers/ata/libata-eh.c if (ap->slave_link) { ap 2255 drivers/ata/libata-eh.c struct ata_eh_context *mehc = &ap->link.eh_context; ap 2256 drivers/ata/libata-eh.c struct ata_eh_context *sehc = &ap->slave_link->eh_context; ap 2262 drivers/ata/libata-eh.c ata_eh_link_autopsy(ap->slave_link); ap 2265 drivers/ata/libata-eh.c ata_eh_about_to_do(ap->slave_link, NULL, ATA_EH_ALL_ACTIONS); ap 2269 drivers/ata/libata-eh.c ata_eh_done(ap->slave_link, NULL, ATA_EH_ALL_ACTIONS); ap 2275 drivers/ata/libata-eh.c if (sata_pmp_attached(ap)) ap 2276 drivers/ata/libata-eh.c ata_eh_link_autopsy(&ap->link); ap 2412 drivers/ata/libata-eh.c struct ata_port *ap = link->ap; ap 2426 drivers/ata/libata-eh.c ata_qc_for_each_raw(ap, qc, tag) { ap 2442 drivers/ata/libata-eh.c if (ap->pflags & ATA_PFLAG_FROZEN) ap 2445 drivers/ata/libata-eh.c if (ap->eh_tries < ATA_EH_MAX_TRIES) ap 2447 drivers/ata/libata-eh.c ap->eh_tries); ap 2488 drivers/ata/libata-eh.c ata_qc_for_each_raw(ap, qc, tag) { ap 2608 drivers/ata/libata-eh.c void ata_eh_report(struct ata_port *ap) ap 2612 drivers/ata/libata-eh.c ata_for_each_link(link, ap, HOST_FIRST) ap 2635 drivers/ata/libata-eh.c if (sata_pmp_supported(link->ap) && ata_is_host_link(link)) ap 2644 drivers/ata/libata-eh.c struct ata_port *ap = link->ap; ap 2645 drivers/ata/libata-eh.c struct ata_link *slave = ap->slave_link; ap 2682 drivers/ata/libata-eh.c spin_lock_irqsave(ap->lock, flags); ap 2683 drivers/ata/libata-eh.c ap->pflags |= ATA_PFLAG_RESETTING; ap 2684 drivers/ata/libata-eh.c spin_unlock_irqrestore(ap->lock, flags); ap 2704 drivers/ata/libata-eh.c if (ap->ops->set_piomode) ap 2705 drivers/ata/libata-eh.c ap->ops->set_piomode(ap, dev); ap 2766 drivers/ata/libata-eh.c if ((ap->pflags & ATA_PFLAG_FROZEN) && ap 2768 drivers/ata/libata-eh.c ata_eh_thaw_port(ap); ap 2779 drivers/ata/libata-eh.c ata_eh_freeze_port(ap); ap 2880 drivers/ata/libata-eh.c ata_eh_thaw_port(ap); ap 2902 drivers/ata/libata-eh.c spin_lock_irqsave(link->ap->lock, flags); ap 2906 drivers/ata/libata-eh.c ap->pflags &= ~ATA_PFLAG_EH_PENDING; ap 2907 drivers/ata/libata-eh.c spin_unlock_irqrestore(link->ap->lock, flags); ap 2909 drivers/ata/libata-eh.c if (ap->pflags & ATA_PFLAG_FROZEN) ap 2910 drivers/ata/libata-eh.c ata_eh_thaw_port(ap); ap 2970 drivers/ata/libata-eh.c spin_lock_irqsave(ap->lock, flags); ap 2971 drivers/ata/libata-eh.c ap->pflags &= ~ATA_PFLAG_RESETTING; ap 2972 drivers/ata/libata-eh.c spin_unlock_irqrestore(ap->lock, flags); ap 2990 drivers/ata/libata-eh.c ata_eh_thaw_port(ap); ap 3002 drivers/ata/libata-eh.c ata_eh_release(ap); ap 3005 drivers/ata/libata-eh.c ata_eh_acquire(ap); ap 3014 drivers/ata/libata-eh.c ata_eh_thaw_port(ap); ap 3030 drivers/ata/libata-eh.c static inline void ata_eh_pull_park_action(struct ata_port *ap) ap 3062 drivers/ata/libata-eh.c spin_lock_irqsave(ap->lock, flags); ap 3063 drivers/ata/libata-eh.c reinit_completion(&ap->park_req_pending); ap 3064 drivers/ata/libata-eh.c ata_for_each_link(link, ap, EDGE) { ap 3073 drivers/ata/libata-eh.c spin_unlock_irqrestore(ap->lock, flags); ap 3107 drivers/ata/libata-eh.c struct ata_port *ap = link->ap; ap 3149 drivers/ata/libata-eh.c schedule_work(&(ap->scsi_rescan_task)); ap 3182 drivers/ata/libata-eh.c ata_eh_thaw_port(ap); ap 3192 drivers/ata/libata-eh.c if (ap->ops->cable_detect) ap 3193 drivers/ata/libata-eh.c ap->cbl = ap->ops->cable_detect(ap); ap 3194 drivers/ata/libata-eh.c ata_force_cbl(ap); ap 3217 drivers/ata/libata-eh.c spin_lock_irqsave(ap->lock, flags); ap 3218 drivers/ata/libata-eh.c ap->pflags |= ATA_PFLAG_SCSI_HOTPLUG; ap 3219 drivers/ata/libata-eh.c spin_unlock_irqrestore(ap->lock, flags); ap 3250 drivers/ata/libata-eh.c struct ata_port *ap = link->ap; ap 3266 drivers/ata/libata-eh.c if (ap->ops->set_mode) ap 3267 drivers/ata/libata-eh.c rc = ap->ops->set_mode(link, r_failed_dev); ap 3304 drivers/ata/libata-eh.c u8 *sense_buffer = dev->link->ap->sector_buf; ap 3353 drivers/ata/libata-eh.c struct ata_port *ap = link->ap; ap 3363 drivers/ata/libata-eh.c qc = __ata_qc_from_tag(ap, link->active_tag); ap 3402 drivers/ata/libata-eh.c if (!(ap->pflags & ATA_PFLAG_FROZEN)) ap 3429 drivers/ata/libata-eh.c struct ata_port *ap = ata_is_host_link(link) ? link->ap : NULL; ap 3433 drivers/ata/libata-eh.c bool no_dipm = link->ap->flags & ATA_FLAG_NO_DIPM; ap 3439 drivers/ata/libata-eh.c if ((link->flags & ATA_LFLAG_NO_LPM) || (ap && !ap->ops->set_lpm)) ap 3477 drivers/ata/libata-eh.c if (ap) { ap 3478 drivers/ata/libata-eh.c rc = ap->ops->set_lpm(link, policy, hints); ap 3479 drivers/ata/libata-eh.c if (!rc && ap->slave_link) ap 3480 drivers/ata/libata-eh.c rc = ap->ops->set_lpm(ap->slave_link, policy, hints); ap 3502 drivers/ata/libata-eh.c if (ap && ap->slave_link) ap 3503 drivers/ata/libata-eh.c ap->slave_link->lpm_policy = policy; ap 3529 drivers/ata/libata-eh.c if (ap && ap->slave_link) ap 3530 drivers/ata/libata-eh.c ap->slave_link->lpm_policy = old_policy; ap 3565 drivers/ata/libata-eh.c struct ata_port *ap = link->ap; ap 3578 drivers/ata/libata-eh.c if ((ap->pflags & ATA_PFLAG_FROZEN) || ata_link_nr_enabled(link)) ap 3630 drivers/ata/libata-eh.c link->ap->ops->set_lpm(link, ATA_LPM_MAX_POWER, ap 3733 drivers/ata/libata-eh.c int ata_eh_recover(struct ata_port *ap, ata_prereset_fn_t prereset, ap 3746 drivers/ata/libata-eh.c ata_for_each_link(link, ap, EDGE) { ap 3752 drivers/ata/libata-eh.c spin_lock_irqsave(ap->lock, flags); ap 3754 drivers/ata/libata-eh.c spin_unlock_irqrestore(ap->lock, flags); ap 3783 drivers/ata/libata-eh.c if (ap->pflags & ATA_PFLAG_UNLOADING) ap 3787 drivers/ata/libata-eh.c ata_for_each_link(link, ap, EDGE) { ap 3799 drivers/ata/libata-eh.c ata_for_each_link(link, ap, EDGE) { ap 3820 drivers/ata/libata-eh.c ata_eh_pull_park_action(ap); ap 3823 drivers/ata/libata-eh.c ata_for_each_link(link, ap, EDGE) { ap 3850 drivers/ata/libata-eh.c ata_eh_release(ap); ap 3851 drivers/ata/libata-eh.c deadline = wait_for_completion_timeout(&ap->park_req_pending, ap 3853 drivers/ata/libata-eh.c ata_eh_acquire(ap); ap 3855 drivers/ata/libata-eh.c ata_for_each_link(link, ap, EDGE) { ap 3868 drivers/ata/libata-eh.c ata_for_each_link(link, ap, PMP_FIRST) { ap 3871 drivers/ata/libata-eh.c if (sata_pmp_attached(ap) && ata_is_host_link(link)) ap 3920 drivers/ata/libata-eh.c if (link->lpm_policy != ap->target_lpm_policy) { ap 3921 drivers/ata/libata-eh.c rc = ata_eh_set_lpm(link, ap->target_lpm_policy, &dev); ap 3935 drivers/ata/libata-eh.c if (ap->pflags & ATA_PFLAG_FROZEN) { ap 3939 drivers/ata/libata-eh.c if (sata_pmp_attached(ap)) ap 3966 drivers/ata/libata-eh.c void ata_eh_finish(struct ata_port *ap) ap 3972 drivers/ata/libata-eh.c ata_qc_for_each_raw(ap, qc, tag) { ap 3997 drivers/ata/libata-eh.c WARN_ON(ap->nr_active_links); ap 3998 drivers/ata/libata-eh.c ap->nr_active_links = 0; ap 4015 drivers/ata/libata-eh.c void ata_do_eh(struct ata_port *ap, ata_prereset_fn_t prereset, ap 4022 drivers/ata/libata-eh.c ata_eh_autopsy(ap); ap 4023 drivers/ata/libata-eh.c ata_eh_report(ap); ap 4025 drivers/ata/libata-eh.c rc = ata_eh_recover(ap, prereset, softreset, hardreset, postreset, ap 4028 drivers/ata/libata-eh.c ata_for_each_dev(dev, &ap->link, ALL) ap 4032 drivers/ata/libata-eh.c ata_eh_finish(ap); ap 4044 drivers/ata/libata-eh.c void ata_std_error_handler(struct ata_port *ap) ap 4046 drivers/ata/libata-eh.c struct ata_port_operations *ops = ap->ops; ap 4050 drivers/ata/libata-eh.c if (hardreset == sata_std_hardreset && !sata_scr_valid(&ap->link)) ap 4053 drivers/ata/libata-eh.c ata_do_eh(ap, ops->prereset, ops->softreset, hardreset, ops->postreset); ap 4066 drivers/ata/libata-eh.c static void ata_eh_handle_port_suspend(struct ata_port *ap) ap 4073 drivers/ata/libata-eh.c spin_lock_irqsave(ap->lock, flags); ap 4074 drivers/ata/libata-eh.c if (!(ap->pflags & ATA_PFLAG_PM_PENDING) || ap 4075 drivers/ata/libata-eh.c ap->pm_mesg.event & PM_EVENT_RESUME) { ap 4076 drivers/ata/libata-eh.c spin_unlock_irqrestore(ap->lock, flags); ap 4079 drivers/ata/libata-eh.c spin_unlock_irqrestore(ap->lock, flags); ap 4081 drivers/ata/libata-eh.c WARN_ON(ap->pflags & ATA_PFLAG_SUSPENDED); ap 4088 drivers/ata/libata-eh.c if (PMSG_IS_AUTO(ap->pm_mesg)) { ap 4089 drivers/ata/libata-eh.c ata_for_each_dev(dev, &ap->link, ENABLED) { ap 4096 drivers/ata/libata-eh.c rc = ata_acpi_on_suspend(ap); ap 4101 drivers/ata/libata-eh.c ata_eh_freeze_port(ap); ap 4103 drivers/ata/libata-eh.c if (ap->ops->port_suspend) ap 4104 drivers/ata/libata-eh.c rc = ap->ops->port_suspend(ap, ap->pm_mesg); ap 4106 drivers/ata/libata-eh.c ata_acpi_set_state(ap, ap->pm_mesg); ap 4109 drivers/ata/libata-eh.c spin_lock_irqsave(ap->lock, flags); ap 4111 drivers/ata/libata-eh.c ap->pflags &= ~ATA_PFLAG_PM_PENDING; ap 4113 drivers/ata/libata-eh.c ap->pflags |= ATA_PFLAG_SUSPENDED; ap 4114 drivers/ata/libata-eh.c else if (ap->pflags & ATA_PFLAG_FROZEN) ap 4115 drivers/ata/libata-eh.c ata_port_schedule_eh(ap); ap 4117 drivers/ata/libata-eh.c spin_unlock_irqrestore(ap->lock, flags); ap 4131 drivers/ata/libata-eh.c static void ata_eh_handle_port_resume(struct ata_port *ap) ap 4138 drivers/ata/libata-eh.c spin_lock_irqsave(ap->lock, flags); ap 4139 drivers/ata/libata-eh.c if (!(ap->pflags & ATA_PFLAG_PM_PENDING) || ap 4140 drivers/ata/libata-eh.c !(ap->pm_mesg.event & PM_EVENT_RESUME)) { ap 4141 drivers/ata/libata-eh.c spin_unlock_irqrestore(ap->lock, flags); ap 4144 drivers/ata/libata-eh.c spin_unlock_irqrestore(ap->lock, flags); ap 4146 drivers/ata/libata-eh.c WARN_ON(!(ap->pflags & ATA_PFLAG_SUSPENDED)); ap 4155 drivers/ata/libata-eh.c ata_for_each_link(link, ap, HOST_FIRST) ap 4159 drivers/ata/libata-eh.c ata_acpi_set_state(ap, ap->pm_mesg); ap 4161 drivers/ata/libata-eh.c if (ap->ops->port_resume) ap 4162 drivers/ata/libata-eh.c ap->ops->port_resume(ap); ap 4165 drivers/ata/libata-eh.c ata_acpi_on_resume(ap); ap 4168 drivers/ata/libata-eh.c spin_lock_irqsave(ap->lock, flags); ap 4169 drivers/ata/libata-eh.c ap->pflags &= ~(ATA_PFLAG_PM_PENDING | ATA_PFLAG_SUSPENDED); ap 4170 drivers/ata/libata-eh.c spin_unlock_irqrestore(ap->lock, flags); ap 40 drivers/ata/libata-pmp.c struct ata_port *ap = link->ap; ap 41 drivers/ata/libata-pmp.c struct ata_device *pmp_dev = ap->link.device; ap 77 drivers/ata/libata-pmp.c struct ata_port *ap = link->ap; ap 78 drivers/ata/libata-pmp.c struct ata_device *pmp_dev = ap->link.device; ap 112 drivers/ata/libata-pmp.c struct ata_port *ap = link->ap; ap 114 drivers/ata/libata-pmp.c if (ap->excl_link == NULL || ap->excl_link == link) { ap 115 drivers/ata/libata-pmp.c if (ap->nr_active_links == 0 || ata_link_active(link)) { ap 120 drivers/ata/libata-pmp.c ap->excl_link = link; ap 260 drivers/ata/libata-pmp.c struct ata_port *ap = dev->link->ap; ap 276 drivers/ata/libata-pmp.c if ((ap->flags & ATA_FLAG_AN) && ap 298 drivers/ata/libata-pmp.c err_mask = sata_pmp_read(&ap->link, PMP_GSCR_SII_POL, ®); ap 305 drivers/ata/libata-pmp.c err_mask = sata_pmp_write(&ap->link, PMP_GSCR_SII_POL, reg); ap 336 drivers/ata/libata-pmp.c static int sata_pmp_init_links (struct ata_port *ap, int nr_ports) ap 338 drivers/ata/libata-pmp.c struct ata_link *pmp_link = ap->pmp_link; ap 348 drivers/ata/libata-pmp.c ata_link_init(ap, &pmp_link[i], i); ap 350 drivers/ata/libata-pmp.c ap->pmp_link = pmp_link; ap 374 drivers/ata/libata-pmp.c ap->pmp_link = NULL; ap 378 drivers/ata/libata-pmp.c static void sata_pmp_quirks(struct ata_port *ap) ap 380 drivers/ata/libata-pmp.c u32 *gscr = ap->link.device->gscr; ap 387 drivers/ata/libata-pmp.c ata_for_each_link(link, ap, EDGE) { ap 412 drivers/ata/libata-pmp.c ata_for_each_link(link, ap, EDGE) ap 418 drivers/ata/libata-pmp.c ata_for_each_link(link, ap, EDGE) { ap 448 drivers/ata/libata-pmp.c ap->pmp_link[ap->nr_pmp_links - 1].flags |= ATA_LFLAG_NO_RETRY; ap 454 drivers/ata/libata-pmp.c ata_for_each_link(link, ap, EDGE) { ap 464 drivers/ata/libata-pmp.c ata_for_each_link(link, ap, EDGE) { ap 488 drivers/ata/libata-pmp.c struct ata_port *ap = link->ap; ap 494 drivers/ata/libata-pmp.c if (!sata_pmp_supported(ap)) { ap 522 drivers/ata/libata-pmp.c rc = sata_pmp_init_links(ap, sata_pmp_gscr_ports(dev->gscr)); ap 529 drivers/ata/libata-pmp.c spin_lock_irqsave(ap->lock, flags); ap 530 drivers/ata/libata-pmp.c WARN_ON(ap->nr_pmp_links); ap 531 drivers/ata/libata-pmp.c ap->nr_pmp_links = sata_pmp_gscr_ports(dev->gscr); ap 532 drivers/ata/libata-pmp.c spin_unlock_irqrestore(ap->lock, flags); ap 534 drivers/ata/libata-pmp.c sata_pmp_quirks(ap); ap 536 drivers/ata/libata-pmp.c if (ap->ops->pmp_attach) ap 537 drivers/ata/libata-pmp.c ap->ops->pmp_attach(ap); ap 539 drivers/ata/libata-pmp.c ata_for_each_link(tlink, ap, EDGE) ap 562 drivers/ata/libata-pmp.c struct ata_port *ap = link->ap; ap 571 drivers/ata/libata-pmp.c if (ap->ops->pmp_detach) ap 572 drivers/ata/libata-pmp.c ap->ops->pmp_detach(ap); ap 574 drivers/ata/libata-pmp.c ata_for_each_link(tlink, ap, EDGE) ap 577 drivers/ata/libata-pmp.c spin_lock_irqsave(ap->lock, flags); ap 578 drivers/ata/libata-pmp.c ap->nr_pmp_links = 0; ap 580 drivers/ata/libata-pmp.c spin_unlock_irqrestore(ap->lock, flags); ap 651 drivers/ata/libata-pmp.c struct ata_port *ap = link->ap; ap 652 drivers/ata/libata-pmp.c u32 *gscr = (void *)ap->sector_buf; ap 751 drivers/ata/libata-pmp.c static int sata_pmp_eh_recover_pmp(struct ata_port *ap, ap 755 drivers/ata/libata-pmp.c struct ata_link *link = &ap->link; ap 785 drivers/ata/libata-pmp.c ata_for_each_link(tlink, ap, EDGE) { ap 845 drivers/ata/libata-pmp.c static int sata_pmp_eh_handle_disabled_links(struct ata_port *ap) ap 851 drivers/ata/libata-pmp.c spin_lock_irqsave(ap->lock, flags); ap 853 drivers/ata/libata-pmp.c ata_for_each_link(link, ap, EDGE) { ap 857 drivers/ata/libata-pmp.c spin_unlock_irqrestore(ap->lock, flags); ap 875 drivers/ata/libata-pmp.c spin_lock_irqsave(ap->lock, flags); ap 878 drivers/ata/libata-pmp.c spin_unlock_irqrestore(ap->lock, flags); ap 885 drivers/ata/libata-pmp.c struct ata_port *ap = link->ap; ap 897 drivers/ata/libata-pmp.c spin_lock_irqsave(ap->lock, flags); ap 899 drivers/ata/libata-pmp.c spin_unlock_irqrestore(ap->lock, flags); ap 923 drivers/ata/libata-pmp.c static int sata_pmp_eh_recover(struct ata_port *ap) ap 925 drivers/ata/libata-pmp.c struct ata_port_operations *ops = ap->ops; ap 927 drivers/ata/libata-pmp.c struct ata_link *pmp_link = &ap->link; ap 938 drivers/ata/libata-pmp.c ata_for_each_link(link, ap, EDGE) ap 943 drivers/ata/libata-pmp.c if (!sata_pmp_attached(ap)) { ap 944 drivers/ata/libata-pmp.c rc = ata_eh_recover(ap, ops->prereset, ops->softreset, ap 947 drivers/ata/libata-pmp.c ata_for_each_dev(dev, &ap->link, ALL) ap 956 drivers/ata/libata-pmp.c ata_for_each_link(link, ap, EDGE) ap 963 drivers/ata/libata-pmp.c rc = sata_pmp_eh_recover_pmp(ap, ops->prereset, ops->softreset, ap 985 drivers/ata/libata-pmp.c rc = sata_pmp_eh_handle_disabled_links(ap); ap 990 drivers/ata/libata-pmp.c rc = ata_eh_recover(ap, ops->pmp_prereset, ops->pmp_softreset, ap 996 drivers/ata/libata-pmp.c rc = sata_scr_read(&ap->link, SCR_NOTIFICATION, &sntf); ap 998 drivers/ata/libata-pmp.c sata_scr_write(&ap->link, SCR_NOTIFICATION, sntf); ap 1004 drivers/ata/libata-pmp.c ata_for_each_link(link, ap, EDGE) ap 1040 drivers/ata/libata-pmp.c ata_for_each_link(link, ap, EDGE) { ap 1056 drivers/ata/libata-pmp.c ata_port_info(ap, ap 1074 drivers/ata/libata-pmp.c if (ap->pflags & ATA_PFLAG_UNLOADING) ap 1077 drivers/ata/libata-pmp.c if (!sata_pmp_attached(ap)) ap 1085 drivers/ata/libata-pmp.c ata_port_err(ap, "failed to recover PMP after %d tries, giving up\n", ap 1103 drivers/ata/libata-pmp.c void sata_pmp_error_handler(struct ata_port *ap) ap 1105 drivers/ata/libata-pmp.c ata_eh_autopsy(ap); ap 1106 drivers/ata/libata-pmp.c ata_eh_report(ap); ap 1107 drivers/ata/libata-pmp.c sata_pmp_eh_recover(ap); ap 1108 drivers/ata/libata-pmp.c ata_eh_finish(ap); ap 49 drivers/ata/libata-scsi.c static struct ata_device *__ata_scsi_find_dev(struct ata_port *ap, ap 51 drivers/ata/libata-scsi.c static struct ata_device *ata_scsi_find_dev(struct ata_port *ap, ap 106 drivers/ata/libata-scsi.c struct ata_port *ap = ata_shost_to_port(shost); ap 123 drivers/ata/libata-scsi.c spin_lock_irqsave(ap->lock, flags); ap 125 drivers/ata/libata-scsi.c ata_for_each_link(link, ap, EDGE) { ap 126 drivers/ata/libata-scsi.c ata_for_each_dev(dev, &ap->link, ENABLED) { ap 134 drivers/ata/libata-scsi.c ap->target_lpm_policy = policy; ap 135 drivers/ata/libata-scsi.c ata_port_schedule_eh(ap); ap 137 drivers/ata/libata-scsi.c spin_unlock_irqrestore(ap->lock, flags); ap 145 drivers/ata/libata-scsi.c struct ata_port *ap = ata_shost_to_port(shost); ap 147 drivers/ata/libata-scsi.c if (ap->target_lpm_policy >= ARRAY_SIZE(ata_lpm_policy_names)) ap 151 drivers/ata/libata-scsi.c ata_lpm_policy_names[ap->target_lpm_policy]); ap 161 drivers/ata/libata-scsi.c struct ata_port *ap; ap 168 drivers/ata/libata-scsi.c ap = ata_shost_to_port(sdev->host); ap 170 drivers/ata/libata-scsi.c spin_lock_irq(ap->lock); ap 171 drivers/ata/libata-scsi.c dev = ata_scsi_find_dev(ap, sdev); ap 183 drivers/ata/libata-scsi.c if (ap->pflags & ATA_PFLAG_EH_IN_PROGRESS && ap 191 drivers/ata/libata-scsi.c spin_unlock_irq(ap->lock); ap 201 drivers/ata/libata-scsi.c struct ata_port *ap; ap 217 drivers/ata/libata-scsi.c ap = ata_shost_to_port(sdev->host); ap 219 drivers/ata/libata-scsi.c spin_lock_irqsave(ap->lock, flags); ap 220 drivers/ata/libata-scsi.c dev = ata_scsi_find_dev(ap, sdev); ap 239 drivers/ata/libata-scsi.c ata_port_schedule_eh(ap); ap 240 drivers/ata/libata-scsi.c complete(&ap->park_req_pending); ap 252 drivers/ata/libata-scsi.c spin_unlock_irqrestore(ap->lock, flags); ap 265 drivers/ata/libata-scsi.c struct ata_port *ap; ap 270 drivers/ata/libata-scsi.c ap = ata_shost_to_port(sdev->host); ap 272 drivers/ata/libata-scsi.c spin_lock_irq(ap->lock); ap 273 drivers/ata/libata-scsi.c dev = ata_scsi_find_dev(ap, sdev); ap 282 drivers/ata/libata-scsi.c spin_unlock_irq(ap->lock); ap 292 drivers/ata/libata-scsi.c struct ata_port *ap; ap 303 drivers/ata/libata-scsi.c ap = ata_shost_to_port(sdev->host); ap 304 drivers/ata/libata-scsi.c dev = ata_scsi_find_dev(ap, sdev); ap 308 drivers/ata/libata-scsi.c spin_lock_irq(ap->lock); ap 316 drivers/ata/libata-scsi.c ata_port_schedule_eh(ap); ap 317 drivers/ata/libata-scsi.c spin_unlock_irq(ap->lock); ap 319 drivers/ata/libata-scsi.c ata_port_wait_eh(ap); ap 322 drivers/ata/libata-scsi.c spin_lock_irq(ap->lock); ap 327 drivers/ata/libata-scsi.c spin_unlock_irq(ap->lock); ap 390 drivers/ata/libata-scsi.c struct ata_port *ap = ata_shost_to_port(shost); ap 391 drivers/ata/libata-scsi.c if (ap->ops->em_store && (ap->flags & ATA_FLAG_EM)) ap 392 drivers/ata/libata-scsi.c return ap->ops->em_store(ap, buf, count); ap 401 drivers/ata/libata-scsi.c struct ata_port *ap = ata_shost_to_port(shost); ap 403 drivers/ata/libata-scsi.c if (ap->ops->em_show && (ap->flags & ATA_FLAG_EM)) ap 404 drivers/ata/libata-scsi.c return ap->ops->em_show(ap, buf); ap 416 drivers/ata/libata-scsi.c struct ata_port *ap = ata_shost_to_port(shost); ap 418 drivers/ata/libata-scsi.c return snprintf(buf, 23, "%d\n", ap->em_message_type); ap 429 drivers/ata/libata-scsi.c struct ata_port *ap = ata_shost_to_port(sdev->host); ap 430 drivers/ata/libata-scsi.c struct ata_device *atadev = ata_scsi_find_dev(ap, sdev); ap 432 drivers/ata/libata-scsi.c if (atadev && ap->ops->sw_activity_show && ap 433 drivers/ata/libata-scsi.c (ap->flags & ATA_FLAG_SW_ACTIVITY)) ap 434 drivers/ata/libata-scsi.c return ap->ops->sw_activity_show(atadev, buf); ap 443 drivers/ata/libata-scsi.c struct ata_port *ap = ata_shost_to_port(sdev->host); ap 444 drivers/ata/libata-scsi.c struct ata_device *atadev = ata_scsi_find_dev(ap, sdev); ap 448 drivers/ata/libata-scsi.c if (atadev && ap->ops->sw_activity_store && ap 449 drivers/ata/libata-scsi.c (ap->flags & ATA_FLAG_SW_ACTIVITY)) { ap 453 drivers/ata/libata-scsi.c rc = ap->ops->sw_activity_store(atadev, val); ap 514 drivers/ata/libata-scsi.c struct ata_port *ap = ata_shost_to_port(sdev->host); ap 518 drivers/ata/libata-scsi.c spin_lock_irqsave(ap->lock, flags); ap 520 drivers/ata/libata-scsi.c dev = ata_scsi_find_dev(ap, sdev); ap 524 drivers/ata/libata-scsi.c ata_port_schedule_eh(ap); ap 527 drivers/ata/libata-scsi.c spin_unlock_irqrestore(ap->lock, flags); ap 528 drivers/ata/libata-scsi.c ata_port_wait_eh(ap); ap 543 drivers/ata/libata-scsi.c static int ata_get_identity(struct ata_port *ap, struct scsi_device *sdev, ap 546 drivers/ata/libata-scsi.c struct ata_device *dev = ata_scsi_find_dev(ap, sdev); ap 755 drivers/ata/libata-scsi.c static int ata_ioc32(struct ata_port *ap) ap 757 drivers/ata/libata-scsi.c if (ap->flags & ATA_FLAG_PIO_DMA) ap 759 drivers/ata/libata-scsi.c if (ap->pflags & ATA_PFLAG_PIO32) ap 764 drivers/ata/libata-scsi.c int ata_sas_scsi_ioctl(struct ata_port *ap, struct scsi_device *scsidev, ap 773 drivers/ata/libata-scsi.c spin_lock_irqsave(ap->lock, flags); ap 774 drivers/ata/libata-scsi.c val = ata_ioc32(ap); ap 775 drivers/ata/libata-scsi.c spin_unlock_irqrestore(ap->lock, flags); ap 781 drivers/ata/libata-scsi.c spin_lock_irqsave(ap->lock, flags); ap 782 drivers/ata/libata-scsi.c if (ap->pflags & ATA_PFLAG_PIO32CHANGE) { ap 784 drivers/ata/libata-scsi.c ap->pflags |= ATA_PFLAG_PIO32; ap 786 drivers/ata/libata-scsi.c ap->pflags &= ~ATA_PFLAG_PIO32; ap 788 drivers/ata/libata-scsi.c if (val != ata_ioc32(ap)) ap 791 drivers/ata/libata-scsi.c spin_unlock_irqrestore(ap->lock, flags); ap 795 drivers/ata/libata-scsi.c return ata_get_identity(ap, scsidev, arg); ap 1074 drivers/ata/libata-scsi.c int verbose = qc->ap->ops->error_handler == NULL; ap 1087 drivers/ata/libata-scsi.c ata_to_sense_error(qc->ap->print_id, tf->command, tf->feature, ap 1172 drivers/ata/libata-scsi.c int verbose = qc->ap->ops->error_handler == NULL; ap 1191 drivers/ata/libata-scsi.c ata_to_sense_error(qc->ap->print_id, tf->command, tf->feature, ap 1327 drivers/ata/libata-scsi.c struct ata_port *ap = ata_shost_to_port(sdev->host); ap 1328 drivers/ata/libata-scsi.c struct ata_device *dev = __ata_scsi_find_dev(ap, sdev); ap 1355 drivers/ata/libata-scsi.c struct ata_port *ap = ata_shost_to_port(sdev->host); ap 1360 drivers/ata/libata-scsi.c if (!ap->ops->error_handler) ap 1363 drivers/ata/libata-scsi.c spin_lock_irqsave(ap->lock, flags); ap 1364 drivers/ata/libata-scsi.c dev = __ata_scsi_find_dev(ap, sdev); ap 1369 drivers/ata/libata-scsi.c ata_port_schedule_eh(ap); ap 1371 drivers/ata/libata-scsi.c spin_unlock_irqrestore(ap->lock, flags); ap 1388 drivers/ata/libata-scsi.c int __ata_change_queue_depth(struct ata_port *ap, struct scsi_device *sdev, ap 1397 drivers/ata/libata-scsi.c dev = ata_scsi_find_dev(ap, sdev); ap 1402 drivers/ata/libata-scsi.c spin_lock_irqsave(ap->lock, flags); ap 1408 drivers/ata/libata-scsi.c spin_unlock_irqrestore(ap->lock, flags); ap 1438 drivers/ata/libata-scsi.c struct ata_port *ap = ata_shost_to_port(sdev->host); ap 1440 drivers/ata/libata-scsi.c return __ata_change_queue_depth(ap, sdev, queue_depth); ap 1509 drivers/ata/libata-scsi.c if ((qc->ap->flags & ATA_FLAG_NO_POWEROFF_SPINDOWN) && ap 1513 drivers/ata/libata-scsi.c if ((qc->ap->flags & ATA_FLAG_NO_HIBERNATE_SPINDOWN) && ap 1933 drivers/ata/libata-scsi.c struct ata_port *ap = qc->ap; ap 1957 drivers/ata/libata-scsi.c if (need_sense && !ap->ops->error_handler) ap 1958 drivers/ata/libata-scsi.c ata_dump_status(ap->print_id, &qc->result_tf); ap 1992 drivers/ata/libata-scsi.c struct ata_port *ap = dev->link->ap; ap 2020 drivers/ata/libata-scsi.c if (ap->ops->qc_defer) { ap 2021 drivers/ata/libata-scsi.c if ((rc = ap->ops->qc_defer(qc))) ap 2192 drivers/ata/libata-scsi.c (args->dev->link->ap->pflags & ATA_PFLAG_EXTERNAL)) ap 2804 drivers/ata/libata-scsi.c static inline int ata_pio_use_silly(struct ata_port *ap) ap 2806 drivers/ata/libata-scsi.c return (ap->flags & ATA_FLAG_PIO_DMA); ap 2811 drivers/ata/libata-scsi.c struct ata_port *ap = qc->ap; ap 2819 drivers/ata/libata-scsi.c if (ap->ops->sff_tf_read) ap 2820 drivers/ata/libata-scsi.c ap->ops->sff_tf_read(ap, &qc->tf); ap 2841 drivers/ata/libata-scsi.c if (ata_pio_use_silly(ap)) { ap 2886 drivers/ata/libata-scsi.c if (unlikely(qc->ap->ops->error_handler && ap 3033 drivers/ata/libata-scsi.c static struct ata_device *ata_find_dev(struct ata_port *ap, int devno) ap 3035 drivers/ata/libata-scsi.c if (!sata_pmp_attached(ap)) { ap 3037 drivers/ata/libata-scsi.c devno < ata_link_max_devices(&ap->link))) ap 3038 drivers/ata/libata-scsi.c return &ap->link.device[devno]; ap 3041 drivers/ata/libata-scsi.c devno < ap->nr_pmp_links)) ap 3042 drivers/ata/libata-scsi.c return &ap->pmp_link[devno].device[0]; ap 3048 drivers/ata/libata-scsi.c static struct ata_device *__ata_scsi_find_dev(struct ata_port *ap, ap 3054 drivers/ata/libata-scsi.c if (!sata_pmp_attached(ap)) { ap 3064 drivers/ata/libata-scsi.c return ata_find_dev(ap, devno); ap 3084 drivers/ata/libata-scsi.c ata_scsi_find_dev(struct ata_port *ap, const struct scsi_device *scsidev) ap 3086 drivers/ata/libata-scsi.c struct ata_device *dev = __ata_scsi_find_dev(ap, scsidev); ap 4293 drivers/ata/libata-scsi.c static inline void ata_scsi_dump_cdb(struct ata_port *ap, ap 4300 drivers/ata/libata-scsi.c ap->print_id, ap 4377 drivers/ata/libata-scsi.c struct ata_port *ap; ap 4383 drivers/ata/libata-scsi.c ap = ata_shost_to_port(shost); ap 4385 drivers/ata/libata-scsi.c spin_lock_irqsave(ap->lock, irq_flags); ap 4387 drivers/ata/libata-scsi.c ata_scsi_dump_cdb(ap, cmd); ap 4389 drivers/ata/libata-scsi.c dev = ata_scsi_find_dev(ap, scsidev); ap 4397 drivers/ata/libata-scsi.c spin_unlock_irqrestore(ap->lock, irq_flags); ap 4530 drivers/ata/libata-scsi.c struct ata_port *ap = host->ports[i]; ap 4539 drivers/ata/libata-scsi.c *(struct ata_port **)&shost->hostdata[0] = ap; ap 4540 drivers/ata/libata-scsi.c ap->scsi_host = shost; ap 4543 drivers/ata/libata-scsi.c shost->unique_id = ap->print_id; ap 4556 drivers/ata/libata-scsi.c rc = scsi_add_host_with_dma(shost, &ap->tdev, ap->host->dev); ap 4573 drivers/ata/libata-scsi.c void ata_scsi_scan_host(struct ata_port *ap, int sync) ap 4581 drivers/ata/libata-scsi.c ata_for_each_link(link, ap, EDGE) { ap 4594 drivers/ata/libata-scsi.c sdev = __scsi_add_device(ap->scsi_host, channel, id, 0, ap 4609 drivers/ata/libata-scsi.c ata_for_each_link(link, ap, EDGE) { ap 4638 drivers/ata/libata-scsi.c ata_port_err(ap, ap 4642 drivers/ata/libata-scsi.c queue_delayed_work(system_long_wq, &ap->hotplug_task, ap 4682 drivers/ata/libata-scsi.c struct ata_port *ap = dev->link->ap; ap 4692 drivers/ata/libata-scsi.c mutex_lock(&ap->scsi_host->scan_mutex); ap 4693 drivers/ata/libata-scsi.c spin_lock_irqsave(ap->lock, flags); ap 4717 drivers/ata/libata-scsi.c spin_unlock_irqrestore(ap->lock, flags); ap 4718 drivers/ata/libata-scsi.c mutex_unlock(&ap->scsi_host->scan_mutex); ap 4731 drivers/ata/libata-scsi.c struct ata_port *ap = link->ap; ap 4740 drivers/ata/libata-scsi.c spin_lock_irqsave(ap->lock, flags); ap 4742 drivers/ata/libata-scsi.c spin_unlock_irqrestore(ap->lock, flags); ap 4782 drivers/ata/libata-scsi.c struct ata_port *ap = ap 4786 drivers/ata/libata-scsi.c if (ap->pflags & ATA_PFLAG_UNLOADING) { ap 4792 drivers/ata/libata-scsi.c mutex_lock(&ap->scsi_scan_mutex); ap 4798 drivers/ata/libata-scsi.c ata_scsi_handle_link_detach(&ap->link); ap 4799 drivers/ata/libata-scsi.c if (ap->pmp_link) ap 4801 drivers/ata/libata-scsi.c ata_scsi_handle_link_detach(&ap->pmp_link[i]); ap 4804 drivers/ata/libata-scsi.c ata_scsi_scan_host(ap, 0); ap 4806 drivers/ata/libata-scsi.c mutex_unlock(&ap->scsi_scan_mutex); ap 4829 drivers/ata/libata-scsi.c struct ata_port *ap = ata_shost_to_port(shost); ap 4833 drivers/ata/libata-scsi.c if (!ap->ops->error_handler) ap 4839 drivers/ata/libata-scsi.c if (!sata_pmp_attached(ap)) { ap 4849 drivers/ata/libata-scsi.c spin_lock_irqsave(ap->lock, flags); ap 4854 drivers/ata/libata-scsi.c ata_for_each_link(link, ap, EDGE) { ap 4860 drivers/ata/libata-scsi.c struct ata_device *dev = ata_find_dev(ap, devno); ap 4871 drivers/ata/libata-scsi.c ata_port_schedule_eh(ap); ap 4872 drivers/ata/libata-scsi.c spin_unlock_irqrestore(ap->lock, flags); ap 4873 drivers/ata/libata-scsi.c ata_port_wait_eh(ap); ap 4875 drivers/ata/libata-scsi.c spin_unlock_irqrestore(ap->lock, flags); ap 4892 drivers/ata/libata-scsi.c struct ata_port *ap = ap 4898 drivers/ata/libata-scsi.c mutex_lock(&ap->scsi_scan_mutex); ap 4899 drivers/ata/libata-scsi.c spin_lock_irqsave(ap->lock, flags); ap 4901 drivers/ata/libata-scsi.c ata_for_each_link(link, ap, EDGE) { ap 4910 drivers/ata/libata-scsi.c spin_unlock_irqrestore(ap->lock, flags); ap 4913 drivers/ata/libata-scsi.c spin_lock_irqsave(ap->lock, flags); ap 4917 drivers/ata/libata-scsi.c spin_unlock_irqrestore(ap->lock, flags); ap 4918 drivers/ata/libata-scsi.c mutex_unlock(&ap->scsi_scan_mutex); ap 4938 drivers/ata/libata-scsi.c struct ata_port *ap; ap 4940 drivers/ata/libata-scsi.c ap = ata_port_alloc(host); ap 4941 drivers/ata/libata-scsi.c if (!ap) ap 4944 drivers/ata/libata-scsi.c ap->port_no = 0; ap 4945 drivers/ata/libata-scsi.c ap->lock = &host->lock; ap 4946 drivers/ata/libata-scsi.c ap->pio_mask = port_info->pio_mask; ap 4947 drivers/ata/libata-scsi.c ap->mwdma_mask = port_info->mwdma_mask; ap 4948 drivers/ata/libata-scsi.c ap->udma_mask = port_info->udma_mask; ap 4949 drivers/ata/libata-scsi.c ap->flags |= port_info->flags; ap 4950 drivers/ata/libata-scsi.c ap->ops = port_info->port_ops; ap 4951 drivers/ata/libata-scsi.c ap->cbl = ATA_CBL_SATA; ap 4953 drivers/ata/libata-scsi.c return ap; ap 4969 drivers/ata/libata-scsi.c int ata_sas_port_start(struct ata_port *ap) ap 4975 drivers/ata/libata-scsi.c if (!ap->ops->error_handler) ap 4976 drivers/ata/libata-scsi.c ap->pflags &= ~ATA_PFLAG_FROZEN; ap 4991 drivers/ata/libata-scsi.c void ata_sas_port_stop(struct ata_port *ap) ap 5003 drivers/ata/libata-scsi.c void ata_sas_async_probe(struct ata_port *ap) ap 5005 drivers/ata/libata-scsi.c __ata_port_probe(ap); ap 5009 drivers/ata/libata-scsi.c int ata_sas_sync_probe(struct ata_port *ap) ap 5011 drivers/ata/libata-scsi.c return ata_port_probe(ap); ap 5027 drivers/ata/libata-scsi.c int ata_sas_port_init(struct ata_port *ap) ap 5029 drivers/ata/libata-scsi.c int rc = ap->ops->port_start(ap); ap 5033 drivers/ata/libata-scsi.c ap->print_id = atomic_inc_return(&ata_print_id); ap 5038 drivers/ata/libata-scsi.c int ata_sas_tport_add(struct device *parent, struct ata_port *ap) ap 5040 drivers/ata/libata-scsi.c return ata_tport_add(parent, ap); ap 5044 drivers/ata/libata-scsi.c void ata_sas_tport_delete(struct ata_port *ap) ap 5046 drivers/ata/libata-scsi.c ata_tport_delete(ap); ap 5056 drivers/ata/libata-scsi.c void ata_sas_port_destroy(struct ata_port *ap) ap 5058 drivers/ata/libata-scsi.c if (ap->ops->port_stop) ap 5059 drivers/ata/libata-scsi.c ap->ops->port_stop(ap); ap 5060 drivers/ata/libata-scsi.c kfree(ap); ap 5073 drivers/ata/libata-scsi.c int ata_sas_slave_configure(struct scsi_device *sdev, struct ata_port *ap) ap 5076 drivers/ata/libata-scsi.c ata_scsi_dev_config(sdev, ap->link.device); ap 5091 drivers/ata/libata-scsi.c int ata_sas_queuecmd(struct scsi_cmnd *cmd, struct ata_port *ap) ap 5095 drivers/ata/libata-scsi.c ata_scsi_dump_cdb(ap, cmd); ap 5097 drivers/ata/libata-scsi.c if (likely(ata_dev_enabled(ap->link.device))) ap 5098 drivers/ata/libata-scsi.c rc = __ata_scsi_queuecmd(cmd, ap->link.device); ap 5107 drivers/ata/libata-scsi.c int ata_sas_allocate_tag(struct ata_port *ap) ap 5109 drivers/ata/libata-scsi.c unsigned int max_queue = ap->host->n_tags; ap 5112 drivers/ata/libata-scsi.c for (i = 0, tag = ap->sas_last_tag + 1; i < max_queue; i++, tag++) { ap 5119 drivers/ata/libata-scsi.c if (!test_and_set_bit(tag, &ap->sas_tag_allocated)) { ap 5120 drivers/ata/libata-scsi.c ap->sas_last_tag = tag; ap 5127 drivers/ata/libata-scsi.c void ata_sas_free_tag(unsigned int tag, struct ata_port *ap) ap 5129 drivers/ata/libata-scsi.c clear_bit(tag, &ap->sas_tag_allocated); ap 68 drivers/ata/libata-sff.c u8 ata_sff_check_status(struct ata_port *ap) ap 70 drivers/ata/libata-sff.c return ioread8(ap->ioaddr.status_addr); ap 87 drivers/ata/libata-sff.c static u8 ata_sff_altstatus(struct ata_port *ap) ap 89 drivers/ata/libata-sff.c if (ap->ops->sff_check_altstatus) ap 90 drivers/ata/libata-sff.c return ap->ops->sff_check_altstatus(ap); ap 92 drivers/ata/libata-sff.c return ioread8(ap->ioaddr.altstatus_addr); ap 107 drivers/ata/libata-sff.c static u8 ata_sff_irq_status(struct ata_port *ap) ap 111 drivers/ata/libata-sff.c if (ap->ops->sff_check_altstatus || ap->ioaddr.altstatus_addr) { ap 112 drivers/ata/libata-sff.c status = ata_sff_altstatus(ap); ap 118 drivers/ata/libata-sff.c status = ap->ops->sff_check_status(ap); ap 134 drivers/ata/libata-sff.c static void ata_sff_sync(struct ata_port *ap) ap 136 drivers/ata/libata-sff.c if (ap->ops->sff_check_altstatus) ap 137 drivers/ata/libata-sff.c ap->ops->sff_check_altstatus(ap); ap 138 drivers/ata/libata-sff.c else if (ap->ioaddr.altstatus_addr) ap 139 drivers/ata/libata-sff.c ioread8(ap->ioaddr.altstatus_addr); ap 154 drivers/ata/libata-sff.c void ata_sff_pause(struct ata_port *ap) ap 156 drivers/ata/libata-sff.c ata_sff_sync(ap); ap 169 drivers/ata/libata-sff.c void ata_sff_dma_pause(struct ata_port *ap) ap 171 drivers/ata/libata-sff.c if (ap->ops->sff_check_altstatus || ap->ioaddr.altstatus_addr) { ap 174 drivers/ata/libata-sff.c ata_sff_altstatus(ap); ap 199 drivers/ata/libata-sff.c int ata_sff_busy_sleep(struct ata_port *ap, ap 205 drivers/ata/libata-sff.c status = ata_sff_busy_wait(ap, ATA_BUSY, 300); ap 210 drivers/ata/libata-sff.c ata_msleep(ap, 50); ap 211 drivers/ata/libata-sff.c status = ata_sff_busy_wait(ap, ATA_BUSY, 3); ap 215 drivers/ata/libata-sff.c ata_port_warn(ap, ap 222 drivers/ata/libata-sff.c ata_msleep(ap, 50); ap 223 drivers/ata/libata-sff.c status = ap->ops->sff_check_status(ap); ap 230 drivers/ata/libata-sff.c ata_port_err(ap, ap 242 drivers/ata/libata-sff.c u8 status = link->ap->ops->sff_check_status(link->ap); ap 280 drivers/ata/libata-sff.c static void ata_sff_set_devctl(struct ata_port *ap, u8 ctl) ap 282 drivers/ata/libata-sff.c if (ap->ops->sff_set_devctl) ap 283 drivers/ata/libata-sff.c ap->ops->sff_set_devctl(ap, ctl); ap 285 drivers/ata/libata-sff.c iowrite8(ctl, ap->ioaddr.ctl_addr); ap 302 drivers/ata/libata-sff.c void ata_sff_dev_select(struct ata_port *ap, unsigned int device) ap 311 drivers/ata/libata-sff.c iowrite8(tmp, ap->ioaddr.device_addr); ap 312 drivers/ata/libata-sff.c ata_sff_pause(ap); /* needed; also flushes, for mmio */ ap 334 drivers/ata/libata-sff.c static void ata_dev_select(struct ata_port *ap, unsigned int device, ap 337 drivers/ata/libata-sff.c if (ata_msg_probe(ap)) ap 338 drivers/ata/libata-sff.c ata_port_info(ap, "ata_dev_select: ENTER, device %u, wait %u\n", ap 342 drivers/ata/libata-sff.c ata_wait_idle(ap); ap 344 drivers/ata/libata-sff.c ap->ops->sff_dev_select(ap, device); ap 347 drivers/ata/libata-sff.c if (can_sleep && ap->link.device[device].class == ATA_DEV_ATAPI) ap 348 drivers/ata/libata-sff.c ata_msleep(ap, 150); ap 349 drivers/ata/libata-sff.c ata_wait_idle(ap); ap 366 drivers/ata/libata-sff.c void ata_sff_irq_on(struct ata_port *ap) ap 368 drivers/ata/libata-sff.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 370 drivers/ata/libata-sff.c if (ap->ops->sff_irq_on) { ap 371 drivers/ata/libata-sff.c ap->ops->sff_irq_on(ap); ap 375 drivers/ata/libata-sff.c ap->ctl &= ~ATA_NIEN; ap 376 drivers/ata/libata-sff.c ap->last_ctl = ap->ctl; ap 378 drivers/ata/libata-sff.c if (ap->ops->sff_set_devctl || ioaddr->ctl_addr) ap 379 drivers/ata/libata-sff.c ata_sff_set_devctl(ap, ap->ctl); ap 380 drivers/ata/libata-sff.c ata_wait_idle(ap); ap 382 drivers/ata/libata-sff.c if (ap->ops->sff_irq_clear) ap 383 drivers/ata/libata-sff.c ap->ops->sff_irq_clear(ap); ap 397 drivers/ata/libata-sff.c void ata_sff_tf_load(struct ata_port *ap, const struct ata_taskfile *tf) ap 399 drivers/ata/libata-sff.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 402 drivers/ata/libata-sff.c if (tf->ctl != ap->last_ctl) { ap 405 drivers/ata/libata-sff.c ap->last_ctl = tf->ctl; ap 406 drivers/ata/libata-sff.c ata_wait_idle(ap); ap 443 drivers/ata/libata-sff.c ata_wait_idle(ap); ap 460 drivers/ata/libata-sff.c void ata_sff_tf_read(struct ata_port *ap, struct ata_taskfile *tf) ap 462 drivers/ata/libata-sff.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 464 drivers/ata/libata-sff.c tf->command = ata_sff_check_status(ap); ap 481 drivers/ata/libata-sff.c ap->last_ctl = tf->ctl; ap 499 drivers/ata/libata-sff.c void ata_sff_exec_command(struct ata_port *ap, const struct ata_taskfile *tf) ap 501 drivers/ata/libata-sff.c DPRINTK("ata%u: cmd 0x%X\n", ap->print_id, tf->command); ap 503 drivers/ata/libata-sff.c iowrite8(tf->command, ap->ioaddr.command_addr); ap 504 drivers/ata/libata-sff.c ata_sff_pause(ap); ap 520 drivers/ata/libata-sff.c static inline void ata_tf_to_host(struct ata_port *ap, ap 523 drivers/ata/libata-sff.c ap->ops->sff_tf_load(ap, tf); ap 524 drivers/ata/libata-sff.c ap->ops->sff_exec_command(ap, tf); ap 545 drivers/ata/libata-sff.c struct ata_port *ap = qc->dev->link->ap; ap 546 drivers/ata/libata-sff.c void __iomem *data_addr = ap->ioaddr.data_addr; ap 601 drivers/ata/libata-sff.c struct ata_port *ap = dev->link->ap; ap 602 drivers/ata/libata-sff.c void __iomem *data_addr = ap->ioaddr.data_addr; ap 606 drivers/ata/libata-sff.c if (!(ap->pflags & ATA_PFLAG_PIO32)) ap 656 drivers/ata/libata-sff.c struct ata_port *ap = qc->ap; ap 666 drivers/ata/libata-sff.c ap->hsm_task_state = HSM_ST_LAST; ap 679 drivers/ata/libata-sff.c ap->ops->sff_data_xfer(qc, buf + offset, qc->sect_size, do_write); ap 691 drivers/ata/libata-sff.c ap->hsm_task_state = HSM_ST_LAST; ap 721 drivers/ata/libata-sff.c ata_sff_sync(qc->ap); /* flush */ ap 735 drivers/ata/libata-sff.c static void atapi_send_cdb(struct ata_port *ap, struct ata_queued_cmd *qc) ap 741 drivers/ata/libata-sff.c ap->ops->sff_data_xfer(qc, qc->cdb, qc->dev->cdb_len, 1); ap 742 drivers/ata/libata-sff.c ata_sff_sync(ap); ap 747 drivers/ata/libata-sff.c ap->hsm_task_state = HSM_ST; ap 750 drivers/ata/libata-sff.c ap->hsm_task_state = HSM_ST_LAST; ap 754 drivers/ata/libata-sff.c ap->hsm_task_state = HSM_ST_LAST; ap 756 drivers/ata/libata-sff.c ap->ops->bmdma_start(qc); ap 778 drivers/ata/libata-sff.c struct ata_port *ap = qc->ap; ap 812 drivers/ata/libata-sff.c consumed = ap->ops->sff_data_xfer(qc, buf + offset, count, rw); ap 846 drivers/ata/libata-sff.c struct ata_port *ap = qc->ap; ap 858 drivers/ata/libata-sff.c ap->ops->sff_tf_read(ap, &qc->result_tf); ap 876 drivers/ata/libata-sff.c VPRINTK("ata%u: xfering %d bytes\n", ap->print_id, bytes); ap 880 drivers/ata/libata-sff.c ata_sff_sync(ap); /* flush */ ap 889 drivers/ata/libata-sff.c ap->hsm_task_state = HSM_ST_ERR; ap 900 drivers/ata/libata-sff.c static inline int ata_hsm_ok_in_wq(struct ata_port *ap, ap 906 drivers/ata/libata-sff.c if (ap->hsm_task_state == HSM_ST_FIRST) { ap 932 drivers/ata/libata-sff.c struct ata_port *ap = qc->ap; ap 934 drivers/ata/libata-sff.c if (ap->ops->error_handler) { ap 939 drivers/ata/libata-sff.c qc = ata_qc_from_tag(ap, qc->tag); ap 942 drivers/ata/libata-sff.c ata_sff_irq_on(ap); ap 945 drivers/ata/libata-sff.c ata_port_freeze(ap); ap 951 drivers/ata/libata-sff.c ata_port_freeze(ap); ap 955 drivers/ata/libata-sff.c ata_sff_irq_on(ap); ap 972 drivers/ata/libata-sff.c int ata_sff_hsm_move(struct ata_port *ap, struct ata_queued_cmd *qc, ap 979 drivers/ata/libata-sff.c lockdep_assert_held(ap->lock); ap 987 drivers/ata/libata-sff.c WARN_ON_ONCE(in_wq != ata_hsm_ok_in_wq(ap, qc)); ap 991 drivers/ata/libata-sff.c ap->print_id, qc->tf.protocol, ap->hsm_task_state, status); ap 993 drivers/ata/libata-sff.c switch (ap->hsm_task_state) { ap 1016 drivers/ata/libata-sff.c ap->hsm_task_state = HSM_ST_ERR; ap 1037 drivers/ata/libata-sff.c ap->hsm_task_state = HSM_ST_ERR; ap 1051 drivers/ata/libata-sff.c ap->hsm_task_state = HSM_ST; ap 1055 drivers/ata/libata-sff.c atapi_send_cdb(ap, qc); ap 1070 drivers/ata/libata-sff.c ap->hsm_task_state = HSM_ST_LAST; ap 1085 drivers/ata/libata-sff.c ap->hsm_task_state = HSM_ST_ERR; ap 1091 drivers/ata/libata-sff.c if (unlikely(ap->hsm_task_state == HSM_ST_ERR)) ap 1123 drivers/ata/libata-sff.c ap->hsm_task_state = HSM_ST_ERR; ap 1143 drivers/ata/libata-sff.c status = ata_wait_idle(ap); ap 1167 drivers/ata/libata-sff.c ap->hsm_task_state = HSM_ST_ERR; ap 1173 drivers/ata/libata-sff.c if (ap->hsm_task_state == HSM_ST_LAST && ap 1176 drivers/ata/libata-sff.c status = ata_wait_idle(ap); ap 1187 drivers/ata/libata-sff.c ap->hsm_task_state = HSM_ST_ERR; ap 1193 drivers/ata/libata-sff.c ap->print_id, qc->dev->devno, status); ap 1197 drivers/ata/libata-sff.c ap->hsm_task_state = HSM_ST_IDLE; ap 1206 drivers/ata/libata-sff.c ap->hsm_task_state = HSM_ST_IDLE; ap 1216 drivers/ata/libata-sff.c ap->print_id, ap->hsm_task_state); ap 1237 drivers/ata/libata-sff.c struct ata_port *ap = link->ap; ap 1239 drivers/ata/libata-sff.c WARN_ON((ap->sff_pio_task_link != NULL) && ap 1240 drivers/ata/libata-sff.c (ap->sff_pio_task_link != link)); ap 1241 drivers/ata/libata-sff.c ap->sff_pio_task_link = link; ap 1244 drivers/ata/libata-sff.c ata_sff_queue_delayed_work(&ap->sff_pio_task, msecs_to_jiffies(delay)); ap 1248 drivers/ata/libata-sff.c void ata_sff_flush_pio_task(struct ata_port *ap) ap 1252 drivers/ata/libata-sff.c cancel_delayed_work_sync(&ap->sff_pio_task); ap 1262 drivers/ata/libata-sff.c spin_lock_irq(ap->lock); ap 1263 drivers/ata/libata-sff.c ap->hsm_task_state = HSM_ST_IDLE; ap 1264 drivers/ata/libata-sff.c spin_unlock_irq(ap->lock); ap 1266 drivers/ata/libata-sff.c ap->sff_pio_task_link = NULL; ap 1268 drivers/ata/libata-sff.c if (ata_msg_ctl(ap)) ap 1269 drivers/ata/libata-sff.c ata_port_dbg(ap, "%s: EXIT\n", __func__); ap 1274 drivers/ata/libata-sff.c struct ata_port *ap = ap 1276 drivers/ata/libata-sff.c struct ata_link *link = ap->sff_pio_task_link; ap 1281 drivers/ata/libata-sff.c spin_lock_irq(ap->lock); ap 1283 drivers/ata/libata-sff.c BUG_ON(ap->sff_pio_task_link == NULL); ap 1285 drivers/ata/libata-sff.c qc = ata_qc_from_tag(ap, link->active_tag); ap 1287 drivers/ata/libata-sff.c ap->sff_pio_task_link = NULL; ap 1292 drivers/ata/libata-sff.c WARN_ON_ONCE(ap->hsm_task_state == HSM_ST_IDLE); ap 1301 drivers/ata/libata-sff.c status = ata_sff_busy_wait(ap, ATA_BUSY, 5); ap 1303 drivers/ata/libata-sff.c spin_unlock_irq(ap->lock); ap 1304 drivers/ata/libata-sff.c ata_msleep(ap, 2); ap 1305 drivers/ata/libata-sff.c spin_lock_irq(ap->lock); ap 1307 drivers/ata/libata-sff.c status = ata_sff_busy_wait(ap, ATA_BUSY, 10); ap 1318 drivers/ata/libata-sff.c ap->sff_pio_task_link = NULL; ap 1320 drivers/ata/libata-sff.c poll_next = ata_sff_hsm_move(ap, qc, status, 1); ap 1328 drivers/ata/libata-sff.c spin_unlock_irq(ap->lock); ap 1346 drivers/ata/libata-sff.c struct ata_port *ap = qc->ap; ap 1352 drivers/ata/libata-sff.c if (ap->flags & ATA_FLAG_PIO_POLLING) ap 1356 drivers/ata/libata-sff.c ata_dev_select(ap, qc->dev->devno, 1, 0); ap 1364 drivers/ata/libata-sff.c ata_tf_to_host(ap, &qc->tf); ap 1365 drivers/ata/libata-sff.c ap->hsm_task_state = HSM_ST_LAST; ap 1376 drivers/ata/libata-sff.c ata_tf_to_host(ap, &qc->tf); ap 1380 drivers/ata/libata-sff.c ap->hsm_task_state = HSM_ST_FIRST; ap 1388 drivers/ata/libata-sff.c ap->hsm_task_state = HSM_ST; ap 1406 drivers/ata/libata-sff.c ata_tf_to_host(ap, &qc->tf); ap 1408 drivers/ata/libata-sff.c ap->hsm_task_state = HSM_ST_FIRST; ap 1439 drivers/ata/libata-sff.c qc->ap->ops->sff_tf_read(qc->ap, &qc->result_tf); ap 1444 drivers/ata/libata-sff.c static unsigned int ata_sff_idle_irq(struct ata_port *ap) ap 1446 drivers/ata/libata-sff.c ap->stats.idle_irq++; ap 1449 drivers/ata/libata-sff.c if ((ap->stats.idle_irq % 1000) == 0) { ap 1450 drivers/ata/libata-sff.c ap->ops->sff_check_status(ap); ap 1451 drivers/ata/libata-sff.c if (ap->ops->sff_irq_clear) ap 1452 drivers/ata/libata-sff.c ap->ops->sff_irq_clear(ap); ap 1453 drivers/ata/libata-sff.c ata_port_warn(ap, "irq trap\n"); ap 1460 drivers/ata/libata-sff.c static unsigned int __ata_sff_port_intr(struct ata_port *ap, ap 1467 drivers/ata/libata-sff.c ap->print_id, qc->tf.protocol, ap->hsm_task_state); ap 1470 drivers/ata/libata-sff.c switch (ap->hsm_task_state) { ap 1481 drivers/ata/libata-sff.c return ata_sff_idle_irq(ap); ap 1484 drivers/ata/libata-sff.c return ata_sff_idle_irq(ap); ap 1490 drivers/ata/libata-sff.c status = ata_sff_irq_status(ap); ap 1495 drivers/ata/libata-sff.c ap->hsm_task_state = HSM_ST_ERR; ap 1497 drivers/ata/libata-sff.c return ata_sff_idle_irq(ap); ap 1501 drivers/ata/libata-sff.c if (ap->ops->sff_irq_clear) ap 1502 drivers/ata/libata-sff.c ap->ops->sff_irq_clear(ap); ap 1504 drivers/ata/libata-sff.c ata_sff_hsm_move(ap, qc, status, 0); ap 1522 drivers/ata/libata-sff.c unsigned int ata_sff_port_intr(struct ata_port *ap, struct ata_queued_cmd *qc) ap 1524 drivers/ata/libata-sff.c return __ata_sff_port_intr(ap, qc, false); ap 1543 drivers/ata/libata-sff.c struct ata_port *ap = host->ports[i]; ap 1546 drivers/ata/libata-sff.c qc = ata_qc_from_tag(ap, ap->link.active_tag); ap 1549 drivers/ata/libata-sff.c handled |= port_intr(ap, qc); ap 1565 drivers/ata/libata-sff.c struct ata_port *ap = host->ports[i]; ap 1570 drivers/ata/libata-sff.c if (!ap->ops->sff_irq_check || ap 1571 drivers/ata/libata-sff.c !ap->ops->sff_irq_check(ap)) ap 1575 drivers/ata/libata-sff.c ap->ops->sff_check_status(ap); ap 1576 drivers/ata/libata-sff.c if (ap->ops->sff_irq_clear) ap 1577 drivers/ata/libata-sff.c ap->ops->sff_irq_clear(ap); ap 1580 drivers/ata/libata-sff.c if (!(ap->ops->sff_check_status(ap) & ATA_BUSY)) ap 1633 drivers/ata/libata-sff.c void ata_sff_lost_interrupt(struct ata_port *ap) ap 1639 drivers/ata/libata-sff.c qc = ata_qc_from_tag(ap, ap->link.active_tag); ap 1645 drivers/ata/libata-sff.c status = ata_sff_altstatus(ap); ap 1651 drivers/ata/libata-sff.c ata_port_warn(ap, "lost interrupt (Status 0x%x)\n", ap 1655 drivers/ata/libata-sff.c ata_sff_port_intr(ap, qc); ap 1668 drivers/ata/libata-sff.c void ata_sff_freeze(struct ata_port *ap) ap 1670 drivers/ata/libata-sff.c ap->ctl |= ATA_NIEN; ap 1671 drivers/ata/libata-sff.c ap->last_ctl = ap->ctl; ap 1673 drivers/ata/libata-sff.c if (ap->ops->sff_set_devctl || ap->ioaddr.ctl_addr) ap 1674 drivers/ata/libata-sff.c ata_sff_set_devctl(ap, ap->ctl); ap 1680 drivers/ata/libata-sff.c ap->ops->sff_check_status(ap); ap 1682 drivers/ata/libata-sff.c if (ap->ops->sff_irq_clear) ap 1683 drivers/ata/libata-sff.c ap->ops->sff_irq_clear(ap); ap 1696 drivers/ata/libata-sff.c void ata_sff_thaw(struct ata_port *ap) ap 1699 drivers/ata/libata-sff.c ap->ops->sff_check_status(ap); ap 1700 drivers/ata/libata-sff.c if (ap->ops->sff_irq_clear) ap 1701 drivers/ata/libata-sff.c ap->ops->sff_irq_clear(ap); ap 1702 drivers/ata/libata-sff.c ata_sff_irq_on(ap); ap 1766 drivers/ata/libata-sff.c static unsigned int ata_devchk(struct ata_port *ap, unsigned int device) ap 1768 drivers/ata/libata-sff.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 1771 drivers/ata/libata-sff.c ap->ops->sff_dev_select(ap, device); ap 1815 drivers/ata/libata-sff.c struct ata_port *ap = dev->link->ap; ap 1820 drivers/ata/libata-sff.c ap->ops->sff_dev_select(ap, dev->devno); ap 1824 drivers/ata/libata-sff.c ap->ops->sff_tf_read(ap, &tf); ap 1855 drivers/ata/libata-sff.c (ap->ops->sff_check_status(ap) == 0)) ap 1882 drivers/ata/libata-sff.c struct ata_port *ap = link->ap; ap 1883 drivers/ata/libata-sff.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 1888 drivers/ata/libata-sff.c ata_msleep(ap, ATA_WAIT_AFTER_RESET); ap 1904 drivers/ata/libata-sff.c ap->ops->sff_dev_select(ap, 1); ap 1917 drivers/ata/libata-sff.c ata_msleep(ap, 50); /* give drive a breather */ ap 1929 drivers/ata/libata-sff.c ap->ops->sff_dev_select(ap, 0); ap 1931 drivers/ata/libata-sff.c ap->ops->sff_dev_select(ap, 1); ap 1933 drivers/ata/libata-sff.c ap->ops->sff_dev_select(ap, 0); ap 1939 drivers/ata/libata-sff.c static int ata_bus_softreset(struct ata_port *ap, unsigned int devmask, ap 1942 drivers/ata/libata-sff.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 1944 drivers/ata/libata-sff.c DPRINTK("ata%u: bus reset via SRST\n", ap->print_id); ap 1946 drivers/ata/libata-sff.c if (ap->ioaddr.ctl_addr) { ap 1948 drivers/ata/libata-sff.c iowrite8(ap->ctl, ioaddr->ctl_addr); ap 1950 drivers/ata/libata-sff.c iowrite8(ap->ctl | ATA_SRST, ioaddr->ctl_addr); ap 1952 drivers/ata/libata-sff.c iowrite8(ap->ctl, ioaddr->ctl_addr); ap 1953 drivers/ata/libata-sff.c ap->last_ctl = ap->ctl; ap 1957 drivers/ata/libata-sff.c return ata_sff_wait_after_reset(&ap->link, devmask, deadline); ap 1977 drivers/ata/libata-sff.c struct ata_port *ap = link->ap; ap 1978 drivers/ata/libata-sff.c unsigned int slave_possible = ap->flags & ATA_FLAG_SLAVE_POSS; ap 1986 drivers/ata/libata-sff.c if (ata_devchk(ap, 0)) ap 1988 drivers/ata/libata-sff.c if (slave_possible && ata_devchk(ap, 1)) ap 1992 drivers/ata/libata-sff.c ap->ops->sff_dev_select(ap, 0); ap 1996 drivers/ata/libata-sff.c rc = ata_bus_softreset(ap, devmask, deadline); ap 2062 drivers/ata/libata-sff.c struct ata_port *ap = link->ap; ap 2068 drivers/ata/libata-sff.c ap->ops->sff_dev_select(ap, 1); ap 2070 drivers/ata/libata-sff.c ap->ops->sff_dev_select(ap, 0); ap 2079 drivers/ata/libata-sff.c if (ap->ops->sff_set_devctl || ap->ioaddr.ctl_addr) { ap 2080 drivers/ata/libata-sff.c ata_sff_set_devctl(ap, ap->ctl); ap 2081 drivers/ata/libata-sff.c ap->last_ctl = ap->ctl; ap 2099 drivers/ata/libata-sff.c struct ata_port *ap; ap 2105 drivers/ata/libata-sff.c ap = qc->ap; ap 2107 drivers/ata/libata-sff.c for (count = 0; (ap->ops->sff_check_status(ap) & ATA_DRQ) ap 2109 drivers/ata/libata-sff.c ioread16(ap->ioaddr.data_addr); ap 2113 drivers/ata/libata-sff.c ata_port_dbg(ap, "drained %d bytes to clear DRQ\n", count); ap 2130 drivers/ata/libata-sff.c void ata_sff_error_handler(struct ata_port *ap) ap 2132 drivers/ata/libata-sff.c ata_reset_fn_t softreset = ap->ops->softreset; ap 2133 drivers/ata/libata-sff.c ata_reset_fn_t hardreset = ap->ops->hardreset; ap 2137 drivers/ata/libata-sff.c qc = __ata_qc_from_tag(ap, ap->link.active_tag); ap 2141 drivers/ata/libata-sff.c spin_lock_irqsave(ap->lock, flags); ap 2150 drivers/ata/libata-sff.c if (ap->ops->sff_drain_fifo) ap 2151 drivers/ata/libata-sff.c ap->ops->sff_drain_fifo(qc); ap 2153 drivers/ata/libata-sff.c spin_unlock_irqrestore(ap->lock, flags); ap 2157 drivers/ata/libata-sff.c hardreset == sata_sff_hardreset) && !sata_scr_valid(&ap->link)) ap 2160 drivers/ata/libata-sff.c ata_do_eh(ap, ap->ops->prereset, softreset, hardreset, ap 2161 drivers/ata/libata-sff.c ap->ops->postreset); ap 2235 drivers/ata/libata-sff.c struct ata_port *ap = host->ports[i]; ap 2239 drivers/ata/libata-sff.c if (ata_port_is_dummy(ap)) ap 2247 drivers/ata/libata-sff.c ap->ops = &ata_dummy_port_ops; ap 2259 drivers/ata/libata-sff.c ap->ops = &ata_dummy_port_ops; ap 2264 drivers/ata/libata-sff.c ap->ioaddr.cmd_addr = iomap[base]; ap 2265 drivers/ata/libata-sff.c ap->ioaddr.altstatus_addr = ap 2266 drivers/ata/libata-sff.c ap->ioaddr.ctl_addr = (void __iomem *) ap 2268 drivers/ata/libata-sff.c ata_sff_std_ports(&ap->ioaddr); ap 2270 drivers/ata/libata-sff.c ata_port_desc(ap, "cmd 0x%llx ctl 0x%llx", ap 2577 drivers/ata/libata-sff.c struct ata_port *ap = qc->ap; ap 2578 drivers/ata/libata-sff.c struct ata_bmdma_prd *prd = ap->bmdma_prd; ap 2628 drivers/ata/libata-sff.c struct ata_port *ap = qc->ap; ap 2629 drivers/ata/libata-sff.c struct ata_bmdma_prd *prd = ap->bmdma_prd; ap 2725 drivers/ata/libata-sff.c struct ata_port *ap = qc->ap; ap 2733 drivers/ata/libata-sff.c ata_dev_select(ap, qc->dev->devno, 1, 0); ap 2740 drivers/ata/libata-sff.c ap->ops->sff_tf_load(ap, &qc->tf); /* load tf registers */ ap 2741 drivers/ata/libata-sff.c ap->ops->bmdma_setup(qc); /* set up bmdma */ ap 2742 drivers/ata/libata-sff.c ap->ops->bmdma_start(qc); /* initiate bmdma */ ap 2743 drivers/ata/libata-sff.c ap->hsm_task_state = HSM_ST_LAST; ap 2749 drivers/ata/libata-sff.c ap->ops->sff_tf_load(ap, &qc->tf); /* load tf registers */ ap 2750 drivers/ata/libata-sff.c ap->ops->bmdma_setup(qc); /* set up bmdma */ ap 2751 drivers/ata/libata-sff.c ap->hsm_task_state = HSM_ST_FIRST; ap 2780 drivers/ata/libata-sff.c unsigned int ata_bmdma_port_intr(struct ata_port *ap, struct ata_queued_cmd *qc) ap 2782 drivers/ata/libata-sff.c struct ata_eh_info *ehi = &ap->link.eh_info; ap 2787 drivers/ata/libata-sff.c if (ap->hsm_task_state == HSM_ST_LAST && ata_is_dma(qc->tf.protocol)) { ap 2789 drivers/ata/libata-sff.c host_stat = ap->ops->bmdma_status(ap); ap 2790 drivers/ata/libata-sff.c VPRINTK("ata%u: host_stat 0x%X\n", ap->print_id, host_stat); ap 2794 drivers/ata/libata-sff.c return ata_sff_idle_irq(ap); ap 2797 drivers/ata/libata-sff.c ap->ops->bmdma_stop(qc); ap 2803 drivers/ata/libata-sff.c ap->hsm_task_state = HSM_ST_ERR; ap 2807 drivers/ata/libata-sff.c handled = __ata_sff_port_intr(ap, qc, bmdma_stopped); ap 2848 drivers/ata/libata-sff.c void ata_bmdma_error_handler(struct ata_port *ap) ap 2854 drivers/ata/libata-sff.c qc = __ata_qc_from_tag(ap, ap->link.active_tag); ap 2859 drivers/ata/libata-sff.c spin_lock_irqsave(ap->lock, flags); ap 2864 drivers/ata/libata-sff.c host_stat = ap->ops->bmdma_status(ap); ap 2876 drivers/ata/libata-sff.c ap->ops->bmdma_stop(qc); ap 2880 drivers/ata/libata-sff.c ap->ops->sff_check_status(ap); ap 2881 drivers/ata/libata-sff.c if (ap->ops->sff_irq_clear) ap 2882 drivers/ata/libata-sff.c ap->ops->sff_irq_clear(ap); ap 2886 drivers/ata/libata-sff.c spin_unlock_irqrestore(ap->lock, flags); ap 2889 drivers/ata/libata-sff.c ata_eh_thaw_port(ap); ap 2891 drivers/ata/libata-sff.c ata_sff_error_handler(ap); ap 2904 drivers/ata/libata-sff.c struct ata_port *ap = qc->ap; ap 2908 drivers/ata/libata-sff.c spin_lock_irqsave(ap->lock, flags); ap 2909 drivers/ata/libata-sff.c ap->ops->bmdma_stop(qc); ap 2910 drivers/ata/libata-sff.c spin_unlock_irqrestore(ap->lock, flags); ap 2926 drivers/ata/libata-sff.c void ata_bmdma_irq_clear(struct ata_port *ap) ap 2928 drivers/ata/libata-sff.c void __iomem *mmio = ap->ioaddr.bmdma_addr; ap 2946 drivers/ata/libata-sff.c struct ata_port *ap = qc->ap; ap 2952 drivers/ata/libata-sff.c iowrite32(ap->bmdma_prd_dma, ap->ioaddr.bmdma_addr + ATA_DMA_TABLE_OFS); ap 2955 drivers/ata/libata-sff.c dmactl = ioread8(ap->ioaddr.bmdma_addr + ATA_DMA_CMD); ap 2959 drivers/ata/libata-sff.c iowrite8(dmactl, ap->ioaddr.bmdma_addr + ATA_DMA_CMD); ap 2962 drivers/ata/libata-sff.c ap->ops->sff_exec_command(ap, &qc->tf); ap 2975 drivers/ata/libata-sff.c struct ata_port *ap = qc->ap; ap 2979 drivers/ata/libata-sff.c dmactl = ioread8(ap->ioaddr.bmdma_addr + ATA_DMA_CMD); ap 2980 drivers/ata/libata-sff.c iowrite8(dmactl | ATA_DMA_START, ap->ioaddr.bmdma_addr + ATA_DMA_CMD); ap 3012 drivers/ata/libata-sff.c struct ata_port *ap = qc->ap; ap 3013 drivers/ata/libata-sff.c void __iomem *mmio = ap->ioaddr.bmdma_addr; ap 3020 drivers/ata/libata-sff.c ata_sff_dma_pause(ap); ap 3035 drivers/ata/libata-sff.c u8 ata_bmdma_status(struct ata_port *ap) ap 3037 drivers/ata/libata-sff.c return ioread8(ap->ioaddr.bmdma_addr + ATA_DMA_STATUS); ap 3054 drivers/ata/libata-sff.c int ata_bmdma_port_start(struct ata_port *ap) ap 3056 drivers/ata/libata-sff.c if (ap->mwdma_mask || ap->udma_mask) { ap 3057 drivers/ata/libata-sff.c ap->bmdma_prd = ap 3058 drivers/ata/libata-sff.c dmam_alloc_coherent(ap->host->dev, ATA_PRD_TBL_SZ, ap 3059 drivers/ata/libata-sff.c &ap->bmdma_prd_dma, GFP_KERNEL); ap 3060 drivers/ata/libata-sff.c if (!ap->bmdma_prd) ap 3082 drivers/ata/libata-sff.c int ata_bmdma_port_start32(struct ata_port *ap) ap 3084 drivers/ata/libata-sff.c ap->pflags |= ATA_PFLAG_PIO32 | ATA_PFLAG_PIO32CHANGE; ap 3085 drivers/ata/libata-sff.c return ata_bmdma_port_start(ap); ap 3169 drivers/ata/libata-sff.c struct ata_port *ap = host->ports[i]; ap 3172 drivers/ata/libata-sff.c if (ata_port_is_dummy(ap)) ap 3175 drivers/ata/libata-sff.c ap->ioaddr.bmdma_addr = bmdma; ap 3176 drivers/ata/libata-sff.c if ((!(ap->flags & ATA_FLAG_IGN_SIMPLEX)) && ap 3180 drivers/ata/libata-sff.c ata_port_desc(ap, "bmdma 0x%llx", ap 3255 drivers/ata/libata-sff.c void ata_sff_port_init(struct ata_port *ap) ap 3257 drivers/ata/libata-sff.c INIT_DELAYED_WORK(&ap->sff_pio_task, ata_sff_pio_task); ap 3258 drivers/ata/libata-sff.c ap->ctl = ATA_DEVCTL_OBS; ap 3259 drivers/ata/libata-sff.c ap->last_ctl = 0xFF; ap 209 drivers/ata/libata-transport.c struct ata_port *ap = transport_class_to_port(dev); \ ap 211 drivers/ata/libata-transport.c return snprintf(buf, 20, format_string, cast ap->field); \ ap 227 drivers/ata/libata-transport.c struct ata_port *ap = tdev_to_port(dev); ap 228 drivers/ata/libata-transport.c ata_host_put(ap->host); ap 257 drivers/ata/libata-transport.c void ata_tport_delete(struct ata_port *ap) ap 259 drivers/ata/libata-transport.c struct device *dev = &ap->tdev; ap 261 drivers/ata/libata-transport.c ata_tlink_delete(&ap->link); ap 280 drivers/ata/libata-transport.c struct ata_port *ap) ap 283 drivers/ata/libata-transport.c struct device *dev = &ap->tdev; ap 289 drivers/ata/libata-transport.c ata_host_get(ap->host); ap 291 drivers/ata/libata-transport.c dev_set_name(dev, "ata%d", ap->print_id); ap 293 drivers/ata/libata-transport.c ata_acpi_bind_port(ap); ap 307 drivers/ata/libata-transport.c error = ata_tlink_add(&ap->link); ap 320 drivers/ata/libata-transport.c ata_host_put(ap->host); ap 410 drivers/ata/libata-transport.c struct ata_port *ap = link->ap; ap 415 drivers/ata/libata-transport.c dev->parent = &ap->tdev; ap 418 drivers/ata/libata-transport.c dev_set_name(dev, "link%d", ap->print_id); ap 420 drivers/ata/libata-transport.c dev_set_name(dev, "link%d.%d", ap->print_id, link->pmp); ap 662 drivers/ata/libata-transport.c struct ata_port *ap = link->ap; ap 669 drivers/ata/libata-transport.c dev_set_name(dev, "dev%d.%d", ap->print_id,ata_dev->devno); ap 671 drivers/ata/libata-transport.c dev_set_name(dev, "dev%d.%d.0", ap->print_id, link->pmp); ap 11 drivers/ata/libata-transport.h int ata_tport_add(struct device *parent, struct ata_port *ap); ap 12 drivers/ata/libata-transport.h void ata_tport_delete(struct ata_port *ap); ap 115 drivers/ata/libata-zpodd.c sense_buf = dev->link->ap->sector_buf; ap 40 drivers/ata/libata.h extern void ata_force_cbl(struct ata_port *ap); ap 77 drivers/ata/libata.h extern void ata_link_init(struct ata_port *ap, struct ata_link *link, int pmp); ap 83 drivers/ata/libata.h extern int ata_port_probe(struct ata_port *ap); ap 84 drivers/ata/libata.h extern void __ata_port_probe(struct ata_port *ap); ap 94 drivers/ata/libata.h extern int ata_acpi_on_suspend(struct ata_port *ap); ap 95 drivers/ata/libata.h extern void ata_acpi_on_resume(struct ata_port *ap); ap 98 drivers/ata/libata.h extern void ata_acpi_set_state(struct ata_port *ap, pm_message_t state); ap 99 drivers/ata/libata.h extern void ata_acpi_bind_port(struct ata_port *ap); ap 104 drivers/ata/libata.h static inline int ata_acpi_on_suspend(struct ata_port *ap) { return 0; } ap 105 drivers/ata/libata.h static inline void ata_acpi_on_resume(struct ata_port *ap) { } ap 108 drivers/ata/libata.h static inline void ata_acpi_set_state(struct ata_port *ap, ap 110 drivers/ata/libata.h static inline void ata_acpi_bind_port(struct ata_port *ap) {} ap 117 drivers/ata/libata.h extern void ata_scsi_scan_host(struct ata_port *ap, int sync); ap 128 drivers/ata/libata.h extern int ata_bus_probe(struct ata_port *ap); ap 131 drivers/ata/libata.h int ata_sas_allocate_tag(struct ata_port *ap); ap 132 drivers/ata/libata.h void ata_sas_free_tag(unsigned int tag, struct ata_port *ap); ap 138 drivers/ata/libata.h extern void ata_eh_acquire(struct ata_port *ap); ap 139 drivers/ata/libata.h extern void ata_eh_release(struct ata_port *ap); ap 149 drivers/ata/libata.h extern void ata_eh_autopsy(struct ata_port *ap); ap 151 drivers/ata/libata.h extern void ata_eh_report(struct ata_port *ap); ap 156 drivers/ata/libata.h extern int ata_eh_recover(struct ata_port *ap, ata_prereset_fn_t prereset, ap 160 drivers/ata/libata.h extern void ata_eh_finish(struct ata_port *ap); ap 200 drivers/ata/libata.h extern void ata_sff_flush_pio_task(struct ata_port *ap); ap 201 drivers/ata/libata.h extern void ata_sff_port_init(struct ata_port *ap); ap 205 drivers/ata/libata.h static inline void ata_sff_flush_pio_task(struct ata_port *ap) ap 207 drivers/ata/libata.h static inline void ata_sff_port_init(struct ata_port *ap) ap 39 drivers/ata/pata_acpi.c struct ata_port *ap = link->ap; ap 40 drivers/ata/pata_acpi.c struct pata_acpi *acpi = ap->private_data; ap 41 drivers/ata/pata_acpi.c if (ACPI_HANDLE(&ap->tdev) == NULL || ata_acpi_gtm(ap, &acpi->gtm) < 0) ap 54 drivers/ata/pata_acpi.c static int pacpi_cable_detect(struct ata_port *ap) ap 56 drivers/ata/pata_acpi.c struct pata_acpi *acpi = ap->private_data; ap 73 drivers/ata/pata_acpi.c static unsigned long pacpi_discover_modes(struct ata_port *ap, struct ata_device *adev) ap 75 drivers/ata/pata_acpi.c struct pata_acpi *acpi = ap->private_data; ap 81 drivers/ata/pata_acpi.c ata_acpi_gtm(ap, &probe); ap 86 drivers/ata/pata_acpi.c ap->cbl = ATA_CBL_PATA80; ap 102 drivers/ata/pata_acpi.c struct pata_acpi *acpi = adev->link->ap->private_data; ap 112 drivers/ata/pata_acpi.c static void pacpi_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 115 drivers/ata/pata_acpi.c struct pata_acpi *acpi = ap->private_data; ap 124 drivers/ata/pata_acpi.c ata_acpi_stm(ap, &acpi->gtm); ap 126 drivers/ata/pata_acpi.c ata_acpi_gtm(ap, &acpi->gtm); ap 135 drivers/ata/pata_acpi.c static void pacpi_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 138 drivers/ata/pata_acpi.c struct pata_acpi *acpi = ap->private_data; ap 153 drivers/ata/pata_acpi.c ata_acpi_stm(ap, &acpi->gtm); ap 155 drivers/ata/pata_acpi.c ata_acpi_gtm(ap, &acpi->gtm); ap 169 drivers/ata/pata_acpi.c struct ata_port *ap = qc->ap; ap 171 drivers/ata/pata_acpi.c struct pata_acpi *acpi = ap->private_data; ap 177 drivers/ata/pata_acpi.c pacpi_set_piomode(ap, adev); ap 179 drivers/ata/pata_acpi.c pacpi_set_dmamode(ap, adev); ap 192 drivers/ata/pata_acpi.c static int pacpi_port_start(struct ata_port *ap) ap 194 drivers/ata/pata_acpi.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 197 drivers/ata/pata_acpi.c if (ACPI_HANDLE(&ap->tdev) == NULL) ap 200 drivers/ata/pata_acpi.c acpi = ap->private_data = devm_kzalloc(&pdev->dev, sizeof(struct pata_acpi), GFP_KERNEL); ap 201 drivers/ata/pata_acpi.c if (ap->private_data == NULL) ap 203 drivers/ata/pata_acpi.c acpi->mask[0] = pacpi_discover_modes(ap, &ap->link.device[0]); ap 204 drivers/ata/pata_acpi.c acpi->mask[1] = pacpi_discover_modes(ap, &ap->link.device[1]); ap 205 drivers/ata/pata_acpi.c return ata_bmdma_port_start(ap); ap 89 drivers/ata/pata_ali.c static int ali_c2_cable_detect(struct ata_port *ap) ap 91 drivers/ata/pata_ali.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 103 drivers/ata/pata_ali.c if (ata66 & (1 << ap->port_no)) ap 141 drivers/ata/pata_ali.c static void ali_fifo_control(struct ata_port *ap, struct ata_device *adev, int on) ap 143 drivers/ata/pata_ali.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 144 drivers/ata/pata_ali.c int pio_fifo = 0x54 + ap->port_no; ap 170 drivers/ata/pata_ali.c static void ali_program_modes(struct ata_port *ap, struct ata_device *adev, struct ata_timing *t, u8 ultra) ap 172 drivers/ata/pata_ali.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 173 drivers/ata/pata_ali.c int cas = 0x58 + 4 * ap->port_no; /* Command timing */ ap 174 drivers/ata/pata_ali.c int cbt = 0x59 + 4 * ap->port_no; /* Command timing */ ap 175 drivers/ata/pata_ali.c int drwt = 0x5A + 4 * ap->port_no + adev->devno; /* R/W timing */ ap 176 drivers/ata/pata_ali.c int udmat = 0x56 + ap->port_no; /* UDMA timing */ ap 207 drivers/ata/pata_ali.c static void ali_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 226 drivers/ata/pata_ali.c ali_fifo_control(ap, adev, 0x00); ap 227 drivers/ata/pata_ali.c ali_program_modes(ap, adev, &t, 0); ap 229 drivers/ata/pata_ali.c ali_fifo_control(ap, adev, 0x05); ap 241 drivers/ata/pata_ali.c static void ali_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 247 drivers/ata/pata_ali.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 251 drivers/ata/pata_ali.c ali_fifo_control(ap, adev, 0x08); ap 254 drivers/ata/pata_ali.c ali_program_modes(ap, adev, NULL, udma_timing[adev->dma_mode - XFER_UDMA_0]); ap 272 drivers/ata/pata_ali.c ali_program_modes(ap, adev, &t, 0); ap 344 drivers/ata/pata_ali.c int port_bit = 4 << link->ap->port_no; ap 43 drivers/ata/pata_amd.c static void timing_setup(struct ata_port *ap, struct ata_device *adev, int offset, int speed, int clock) ap 49 drivers/ata/pata_amd.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 51 drivers/ata/pata_amd.c int dn = ap->port_no * 2 + adev->devno; ap 139 drivers/ata/pata_amd.c struct ata_port *ap = link->ap; ap 140 drivers/ata/pata_amd.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 142 drivers/ata/pata_amd.c if (!pci_test_config_bits(pdev, &amd_enable_bits[ap->port_no])) ap 155 drivers/ata/pata_amd.c static int amd_cable_detect(struct ata_port *ap) ap 158 drivers/ata/pata_amd.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 162 drivers/ata/pata_amd.c if (ata66 & bitmask[ap->port_no]) ap 178 drivers/ata/pata_amd.c static void amd_fifo_setup(struct ata_port *ap) ap 181 drivers/ata/pata_amd.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 183 drivers/ata/pata_amd.c u8 fifo = fifobit[ap->port_no]; ap 187 drivers/ata/pata_amd.c ata_for_each_dev(adev, &ap->link, ENABLED) { ap 196 drivers/ata/pata_amd.c r &= ~fifobit[ap->port_no]; ap 209 drivers/ata/pata_amd.c static void amd33_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 211 drivers/ata/pata_amd.c amd_fifo_setup(ap); ap 212 drivers/ata/pata_amd.c timing_setup(ap, adev, 0x40, adev->pio_mode, 1); ap 215 drivers/ata/pata_amd.c static void amd66_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 217 drivers/ata/pata_amd.c amd_fifo_setup(ap); ap 218 drivers/ata/pata_amd.c timing_setup(ap, adev, 0x40, adev->pio_mode, 2); ap 221 drivers/ata/pata_amd.c static void amd100_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 223 drivers/ata/pata_amd.c amd_fifo_setup(ap); ap 224 drivers/ata/pata_amd.c timing_setup(ap, adev, 0x40, adev->pio_mode, 3); ap 227 drivers/ata/pata_amd.c static void amd133_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 229 drivers/ata/pata_amd.c amd_fifo_setup(ap); ap 230 drivers/ata/pata_amd.c timing_setup(ap, adev, 0x40, adev->pio_mode, 4); ap 242 drivers/ata/pata_amd.c static void amd33_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 244 drivers/ata/pata_amd.c timing_setup(ap, adev, 0x40, adev->dma_mode, 1); ap 247 drivers/ata/pata_amd.c static void amd66_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 249 drivers/ata/pata_amd.c timing_setup(ap, adev, 0x40, adev->dma_mode, 2); ap 252 drivers/ata/pata_amd.c static void amd100_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 254 drivers/ata/pata_amd.c timing_setup(ap, adev, 0x40, adev->dma_mode, 3); ap 257 drivers/ata/pata_amd.c static void amd133_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 259 drivers/ata/pata_amd.c timing_setup(ap, adev, 0x40, adev->dma_mode, 4); ap 274 drivers/ata/pata_amd.c struct ata_port *ap = dev->link->ap; ap 281 drivers/ata/pata_amd.c udma = saved_udma = (unsigned long)ap->host->private_data; ap 283 drivers/ata/pata_amd.c if (ap->port_no == 0) ap 292 drivers/ata/pata_amd.c gtm = ata_acpi_init_gtm(ap); ap 314 drivers/ata/pata_amd.c ata_port_dbg(ap, "nv_mode_filter: 0x%lx&0x%lx->0x%lx, " ap 337 drivers/ata/pata_amd.c struct ata_port *ap = link->ap; ap 338 drivers/ata/pata_amd.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 340 drivers/ata/pata_amd.c if (!pci_test_config_bits(pdev, &nv_enable_bits[ap->port_no])) ap 354 drivers/ata/pata_amd.c static void nv100_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 356 drivers/ata/pata_amd.c timing_setup(ap, adev, 0x50, adev->pio_mode, 3); ap 359 drivers/ata/pata_amd.c static void nv133_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 361 drivers/ata/pata_amd.c timing_setup(ap, adev, 0x50, adev->pio_mode, 4); ap 373 drivers/ata/pata_amd.c static void nv100_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 375 drivers/ata/pata_amd.c timing_setup(ap, adev, 0x50, adev->dma_mode, 3); ap 378 drivers/ata/pata_amd.c static void nv133_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 380 drivers/ata/pata_amd.c timing_setup(ap, adev, 0x50, adev->dma_mode, 4); ap 284 drivers/ata/pata_arasan_cf.c struct ata_port *ap = acdev->host->ports[0]; ap 285 drivers/ata/pata_arasan_cf.c struct ata_eh_info *ehi = &ap->link.eh_info; ap 302 drivers/ata/pata_arasan_cf.c ata_port_freeze(ap); ap 374 drivers/ata/pata_arasan_cf.c ata_ehi_push_desc(&qc->ap->link.eh_info, "DMA Failed: Timeout"); ap 549 drivers/ata/pata_arasan_cf.c status = ioread8(qc->ap->ioaddr.altstatus_addr); ap 565 drivers/ata/pata_arasan_cf.c qc->ap->hsm_task_state = HSM_ST_ERR; ap 582 drivers/ata/pata_arasan_cf.c status = ioread8(qc->ap->ioaddr.altstatus_addr); ap 643 drivers/ata/pata_arasan_cf.c static void arasan_cf_freeze(struct ata_port *ap) ap 645 drivers/ata/pata_arasan_cf.c struct arasan_cf_dev *acdev = ap->host->private_data; ap 653 drivers/ata/pata_arasan_cf.c ata_sff_dma_pause(ap); ap 654 drivers/ata/pata_arasan_cf.c ata_sff_freeze(ap); ap 657 drivers/ata/pata_arasan_cf.c static void arasan_cf_error_handler(struct ata_port *ap) ap 659 drivers/ata/pata_arasan_cf.c struct arasan_cf_dev *acdev = ap->host->private_data; ap 668 drivers/ata/pata_arasan_cf.c return ata_sff_error_handler(ap); ap 674 drivers/ata/pata_arasan_cf.c struct ata_port *ap = qc->ap; ap 682 drivers/ata/pata_arasan_cf.c ap->ops->sff_exec_command(ap, tf); ap 688 drivers/ata/pata_arasan_cf.c struct ata_port *ap = qc->ap; ap 689 drivers/ata/pata_arasan_cf.c struct arasan_cf_dev *acdev = ap->host->private_data; ap 696 drivers/ata/pata_arasan_cf.c ata_wait_idle(ap); ap 697 drivers/ata/pata_arasan_cf.c ata_sff_dev_select(ap, qc->dev->devno); ap 698 drivers/ata/pata_arasan_cf.c ata_wait_idle(ap); ap 705 drivers/ata/pata_arasan_cf.c ap->ops->sff_tf_load(ap, &qc->tf); ap 709 drivers/ata/pata_arasan_cf.c ap->hsm_task_state = HSM_ST_LAST; ap 720 drivers/ata/pata_arasan_cf.c static void arasan_cf_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 722 drivers/ata/pata_arasan_cf.c struct arasan_cf_dev *acdev = ap->host->private_data; ap 729 drivers/ata/pata_arasan_cf.c dev_err(ap->dev, "Unknown PIO mode\n"); ap 746 drivers/ata/pata_arasan_cf.c static void arasan_cf_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 748 drivers/ata/pata_arasan_cf.c struct arasan_cf_dev *acdev = ap->host->private_data; ap 767 drivers/ata/pata_arasan_cf.c dev_err(ap->dev, "Unknown DMA mode\n"); ap 795 drivers/ata/pata_arasan_cf.c struct ata_port *ap; ap 848 drivers/ata/pata_arasan_cf.c ap = host->ports[0]; ap 851 drivers/ata/pata_arasan_cf.c ap->ops = &arasan_cf_ops; ap 852 drivers/ata/pata_arasan_cf.c ap->pio_mask = ATA_PIO6; ap 853 drivers/ata/pata_arasan_cf.c ap->mwdma_mask = ATA_MWDMA4; ap 854 drivers/ata/pata_arasan_cf.c ap->udma_mask = ATA_UDMA6; ap 865 drivers/ata/pata_arasan_cf.c ap->ops->set_piomode = NULL; ap 866 drivers/ata/pata_arasan_cf.c ap->pio_mask = 0; ap 869 drivers/ata/pata_arasan_cf.c ap->mwdma_mask = 0; ap 871 drivers/ata/pata_arasan_cf.c ap->udma_mask = 0; ap 873 drivers/ata/pata_arasan_cf.c ap->flags |= ATA_FLAG_PIO_POLLING | ATA_FLAG_NO_ATAPI; ap 875 drivers/ata/pata_arasan_cf.c ap->ioaddr.cmd_addr = acdev->vbase + ATA_DATA_PORT; ap 876 drivers/ata/pata_arasan_cf.c ap->ioaddr.data_addr = acdev->vbase + ATA_DATA_PORT; ap 877 drivers/ata/pata_arasan_cf.c ap->ioaddr.error_addr = acdev->vbase + ATA_ERR_FTR; ap 878 drivers/ata/pata_arasan_cf.c ap->ioaddr.feature_addr = acdev->vbase + ATA_ERR_FTR; ap 879 drivers/ata/pata_arasan_cf.c ap->ioaddr.nsect_addr = acdev->vbase + ATA_SC; ap 880 drivers/ata/pata_arasan_cf.c ap->ioaddr.lbal_addr = acdev->vbase + ATA_SN; ap 881 drivers/ata/pata_arasan_cf.c ap->ioaddr.lbam_addr = acdev->vbase + ATA_CL; ap 882 drivers/ata/pata_arasan_cf.c ap->ioaddr.lbah_addr = acdev->vbase + ATA_CH; ap 883 drivers/ata/pata_arasan_cf.c ap->ioaddr.device_addr = acdev->vbase + ATA_SH; ap 884 drivers/ata/pata_arasan_cf.c ap->ioaddr.status_addr = acdev->vbase + ATA_STS_CMD; ap 885 drivers/ata/pata_arasan_cf.c ap->ioaddr.command_addr = acdev->vbase + ATA_STS_CMD; ap 886 drivers/ata/pata_arasan_cf.c ap->ioaddr.altstatus_addr = acdev->vbase + ATA_ASTS_DCTR; ap 887 drivers/ata/pata_arasan_cf.c ap->ioaddr.ctl_addr = acdev->vbase + ATA_ASTS_DCTR; ap 889 drivers/ata/pata_arasan_cf.c ata_port_desc(ap, "phy_addr %llx virt_addr %p", ap 57 drivers/ata/pata_artop.c struct ata_port *ap = link->ap; ap 58 drivers/ata/pata_artop.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 62 drivers/ata/pata_artop.c !pci_test_config_bits(pdev, &artop_enable_bits[ap->port_no])) ap 75 drivers/ata/pata_artop.c static int artop6260_cable_detect(struct ata_port *ap) ap 77 drivers/ata/pata_artop.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 80 drivers/ata/pata_artop.c if (tmp & (1 << ap->port_no)) ap 99 drivers/ata/pata_artop.c static void artop6210_load_piomode(struct ata_port *ap, struct ata_device *adev, unsigned int pio) ap 101 drivers/ata/pata_artop.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 102 drivers/ata/pata_artop.c int dn = adev->devno + 2 * ap->port_no; ap 126 drivers/ata/pata_artop.c static void artop6210_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 128 drivers/ata/pata_artop.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 129 drivers/ata/pata_artop.c int dn = adev->devno + 2 * ap->port_no; ap 132 drivers/ata/pata_artop.c artop6210_load_piomode(ap, adev, adev->pio_mode - XFER_PIO_0); ap 153 drivers/ata/pata_artop.c static void artop6260_load_piomode (struct ata_port *ap, struct ata_device *adev, unsigned int pio) ap 155 drivers/ata/pata_artop.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 156 drivers/ata/pata_artop.c int dn = adev->devno + 2 * ap->port_no; ap 180 drivers/ata/pata_artop.c static void artop6260_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 182 drivers/ata/pata_artop.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 185 drivers/ata/pata_artop.c artop6260_load_piomode(ap, adev, adev->pio_mode - XFER_PIO_0); ap 188 drivers/ata/pata_artop.c pci_read_config_byte(pdev, 0x44 + ap->port_no, &ultra); ap 190 drivers/ata/pata_artop.c pci_write_config_byte(pdev, 0x44 + ap->port_no, ultra); ap 204 drivers/ata/pata_artop.c static void artop6210_set_dmamode (struct ata_port *ap, struct ata_device *adev) ap 207 drivers/ata/pata_artop.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 208 drivers/ata/pata_artop.c int dn = adev->devno + 2 * ap->port_no; ap 217 drivers/ata/pata_artop.c artop6210_load_piomode(ap, adev, pio); ap 244 drivers/ata/pata_artop.c static void artop6260_set_dmamode (struct ata_port *ap, struct ata_device *adev) ap 247 drivers/ata/pata_artop.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 256 drivers/ata/pata_artop.c artop6260_load_piomode(ap, adev, pio); ap 259 drivers/ata/pata_artop.c pci_read_config_byte(pdev, 0x44 + ap->port_no, &ultra); ap 267 drivers/ata/pata_artop.c pci_write_config_byte(pdev, 0x44 + ap->port_no, ultra); ap 279 drivers/ata/pata_artop.c struct ata_host *host = qc->ap->host; ap 280 drivers/ata/pata_artop.c struct ata_port *alt = host->ports[1 ^ qc->ap->port_no]; ap 49 drivers/ata/pata_atiixp.c static int atiixp_cable_detect(struct ata_port *ap) ap 51 drivers/ata/pata_atiixp.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 59 drivers/ata/pata_atiixp.c pci_read_config_byte(pdev, ATIIXP_IDE_UDMA_MODE + ap->port_no, &udma); ap 83 drivers/ata/pata_atiixp.c struct ata_port *ap = link->ap; ap 84 drivers/ata/pata_atiixp.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 86 drivers/ata/pata_atiixp.c if (!pci_test_config_bits(pdev, &atiixp_enable_bits[ap->port_no])) ap 102 drivers/ata/pata_atiixp.c static void atiixp_set_pio_timing(struct ata_port *ap, struct ata_device *adev, int pio) ap 106 drivers/ata/pata_atiixp.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 107 drivers/ata/pata_atiixp.c int dn = 2 * ap->port_no + adev->devno; ap 108 drivers/ata/pata_atiixp.c int timing_shift = (16 * ap->port_no) + 8 * (adev->devno ^ 1); ap 132 drivers/ata/pata_atiixp.c static void atiixp_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 136 drivers/ata/pata_atiixp.c atiixp_set_pio_timing(ap, adev, adev->pio_mode - XFER_PIO_0); ap 149 drivers/ata/pata_atiixp.c static void atiixp_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 153 drivers/ata/pata_atiixp.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 155 drivers/ata/pata_atiixp.c int dn = 2 * ap->port_no + adev->devno; ap 171 drivers/ata/pata_atiixp.c int timing_shift = (16 * ap->port_no) + 8 * (adev->devno ^ 1); ap 196 drivers/ata/pata_atiixp.c atiixp_set_pio_timing(ap, adev, wanted_pio); ap 213 drivers/ata/pata_atiixp.c struct ata_port *ap = qc->ap; ap 216 drivers/ata/pata_atiixp.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 217 drivers/ata/pata_atiixp.c int dn = (2 * ap->port_no) + adev->devno; ap 242 drivers/ata/pata_atiixp.c struct ata_port *ap = qc->ap; ap 243 drivers/ata/pata_atiixp.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 244 drivers/ata/pata_atiixp.c int dn = (2 * ap->port_no) + qc->dev->devno; ap 69 drivers/ata/pata_atp867x.c #define ATP867X_IOBASE(ap) ((ap)->host->iomap[0]) ap 70 drivers/ata/pata_atp867x.c #define ATP867X_SYS_INFO(ap) (0x3F + ATP867X_IOBASE(ap)) ap 72 drivers/ata/pata_atp867x.c #define ATP867X_IO_PORTBASE(ap, port) (0x00 + ATP867X_IOBASE(ap) + \ ap 74 drivers/ata/pata_atp867x.c #define ATP867X_IO_DMABASE(ap, port) (0x40 + \ ap 75 drivers/ata/pata_atp867x.c ATP867X_IO_PORTBASE((ap), (port))) ap 77 drivers/ata/pata_atp867x.c #define ATP867X_IO_STATUS(ap, port) (0x07 + \ ap 78 drivers/ata/pata_atp867x.c ATP867X_IO_PORTBASE((ap), (port))) ap 79 drivers/ata/pata_atp867x.c #define ATP867X_IO_ALTSTATUS(ap, port) (0x0E + \ ap 80 drivers/ata/pata_atp867x.c ATP867X_IO_PORTBASE((ap), (port))) ap 85 drivers/ata/pata_atp867x.c #define ATP867X_IO_MSTRPIOSPD(ap, port) (0x08 + \ ap 86 drivers/ata/pata_atp867x.c ATP867X_IO_DMABASE((ap), (port))) ap 87 drivers/ata/pata_atp867x.c #define ATP867X_IO_SLAVPIOSPD(ap, port) (0x09 + \ ap 88 drivers/ata/pata_atp867x.c ATP867X_IO_DMABASE((ap), (port))) ap 89 drivers/ata/pata_atp867x.c #define ATP867X_IO_8BPIOSPD(ap, port) (0x0A + \ ap 90 drivers/ata/pata_atp867x.c ATP867X_IO_DMABASE((ap), (port))) ap 91 drivers/ata/pata_atp867x.c #define ATP867X_IO_DMAMODE(ap, port) (0x0B + \ ap 92 drivers/ata/pata_atp867x.c ATP867X_IO_DMABASE((ap), (port))) ap 94 drivers/ata/pata_atp867x.c #define ATP867X_IO_PORTSPD(ap, port) (0x4A + \ ap 95 drivers/ata/pata_atp867x.c ATP867X_IO_PORTBASE((ap), (port))) ap 96 drivers/ata/pata_atp867x.c #define ATP867X_IO_PREREAD(ap, port) (0x4C + \ ap 97 drivers/ata/pata_atp867x.c ATP867X_IO_PORTBASE((ap), (port))) ap 107 drivers/ata/pata_atp867x.c static void atp867x_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 109 drivers/ata/pata_atp867x.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 110 drivers/ata/pata_atp867x.c struct atp867x_priv *dp = ap->private_data; ap 138 drivers/ata/pata_atp867x.c static int atp867x_get_active_clocks_shifted(struct ata_port *ap, ap 141 drivers/ata/pata_atp867x.c struct atp867x_priv *dp = ap->private_data; ap 202 drivers/ata/pata_atp867x.c static void atp867x_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 205 drivers/ata/pata_atp867x.c struct atp867x_priv *dp = ap->private_data; ap 227 drivers/ata/pata_atp867x.c b = atp867x_get_active_clocks_shifted(ap, t.active) | ap 235 drivers/ata/pata_atp867x.c b = atp867x_get_active_clocks_shifted(ap, t.act8b) | ap 251 drivers/ata/pata_atp867x.c static int atp867x_cable_detect(struct ata_port *ap) ap 253 drivers/ata/pata_atp867x.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 288 drivers/ata/pata_atp867x.c static void atp867x_check_ports(struct ata_port *ap, int port) ap 290 drivers/ata/pata_atp867x.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 291 drivers/ata/pata_atp867x.c struct atp867x_priv *dp = ap->private_data; ap 314 drivers/ata/pata_atp867x.c (unsigned long long)ATP867X_IO_PORTBASE(ap, port), ap 316 drivers/ata/pata_atp867x.c (unsigned long long)ATP867X_IO_ALTSTATUS(ap, port), ap 318 drivers/ata/pata_atp867x.c (unsigned long long)ATP867X_IO_DMABASE(ap, port), ap 337 drivers/ata/pata_atp867x.c static int atp867x_set_priv(struct ata_port *ap) ap 339 drivers/ata/pata_atp867x.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 341 drivers/ata/pata_atp867x.c int port = ap->port_no; ap 343 drivers/ata/pata_atp867x.c dp = ap->private_data = ap 348 drivers/ata/pata_atp867x.c dp->dma_mode = ATP867X_IO_DMAMODE(ap, port); ap 349 drivers/ata/pata_atp867x.c dp->mstr_piospd = ATP867X_IO_MSTRPIOSPD(ap, port); ap 350 drivers/ata/pata_atp867x.c dp->slave_piospd = ATP867X_IO_SLAVPIOSPD(ap, port); ap 351 drivers/ata/pata_atp867x.c dp->eightb_piospd = ATP867X_IO_8BPIOSPD(ap, port); ap 354 drivers/ata/pata_atp867x.c ioread8(ATP867X_SYS_INFO(ap)) & ATP867X_IO_SYS_INFO_66MHZ; ap 362 drivers/ata/pata_atp867x.c struct ata_port *ap = host->ports[0]; ap 382 drivers/ata/pata_atp867x.c iowrite16(ATP867X_IO_PORTSPD_VAL, ATP867X_IO_PORTSPD(ap, i)); ap 388 drivers/ata/pata_atp867x.c iowrite16(ATP867X_PREREAD_VAL, ATP867X_IO_PREREAD(ap, i)); ap 390 drivers/ata/pata_atp867x.c v = ioread8(ATP867X_IOBASE(ap) + 0x28); ap 393 drivers/ata/pata_atp867x.c iowrite8(v, ATP867X_IOBASE(ap) + 0x28); ap 398 drivers/ata/pata_atp867x.c v = ioread8(ATP867X_SYS_INFO(ap)); ap 402 drivers/ata/pata_atp867x.c iowrite8(v, ATP867X_SYS_INFO(ap)); ap 434 drivers/ata/pata_atp867x.c struct ata_port *ap = host->ports[i]; ap 435 drivers/ata/pata_atp867x.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 437 drivers/ata/pata_atp867x.c ioaddr->cmd_addr = ATP867X_IO_PORTBASE(ap, i); ap 439 drivers/ata/pata_atp867x.c = ATP867X_IO_ALTSTATUS(ap, i); ap 440 drivers/ata/pata_atp867x.c ioaddr->bmdma_addr = ATP867X_IO_DMABASE(ap, i); ap 443 drivers/ata/pata_atp867x.c rc = atp867x_set_priv(ap); ap 448 drivers/ata/pata_atp867x.c atp867x_check_ports(ap, i); ap 450 drivers/ata/pata_atp867x.c ata_port_desc(ap, "cmd 0x%lx ctl 0x%lx", ap 453 drivers/ata/pata_atp867x.c ata_port_desc(ap, "bmdma 0x%lx", ap 133 drivers/ata/pata_bk3710.c static void pata_bk3710_set_dmamode(struct ata_port *ap, ap 136 drivers/ata/pata_bk3710.c void __iomem *base = (void __iomem *)ap->ioaddr.bmdma_addr; ap 198 drivers/ata/pata_bk3710.c static void pata_bk3710_set_piomode(struct ata_port *ap, ap 201 drivers/ata/pata_bk3710.c void __iomem *base = (void __iomem *)ap->ioaddr.bmdma_addr; ap 296 drivers/ata/pata_bk3710.c struct ata_port *ap; ap 332 drivers/ata/pata_bk3710.c ap = host->ports[0]; ap 334 drivers/ata/pata_bk3710.c ap->ops = &pata_bk3710_ports_ops; ap 335 drivers/ata/pata_bk3710.c ap->pio_mask = ATA_PIO4; ap 336 drivers/ata/pata_bk3710.c ap->mwdma_mask = ATA_MWDMA2; ap 337 drivers/ata/pata_bk3710.c ap->udma_mask = rate < 100000000 ? ATA_UDMA4 : ATA_UDMA5; ap 338 drivers/ata/pata_bk3710.c ap->flags |= ATA_FLAG_SLAVE_POSS; ap 340 drivers/ata/pata_bk3710.c ap->ioaddr.data_addr = base + BK3710_TF_OFFSET; ap 341 drivers/ata/pata_bk3710.c ap->ioaddr.error_addr = base + BK3710_TF_OFFSET + 1; ap 342 drivers/ata/pata_bk3710.c ap->ioaddr.feature_addr = base + BK3710_TF_OFFSET + 1; ap 343 drivers/ata/pata_bk3710.c ap->ioaddr.nsect_addr = base + BK3710_TF_OFFSET + 2; ap 344 drivers/ata/pata_bk3710.c ap->ioaddr.lbal_addr = base + BK3710_TF_OFFSET + 3; ap 345 drivers/ata/pata_bk3710.c ap->ioaddr.lbam_addr = base + BK3710_TF_OFFSET + 4; ap 346 drivers/ata/pata_bk3710.c ap->ioaddr.lbah_addr = base + BK3710_TF_OFFSET + 5; ap 347 drivers/ata/pata_bk3710.c ap->ioaddr.device_addr = base + BK3710_TF_OFFSET + 6; ap 348 drivers/ata/pata_bk3710.c ap->ioaddr.status_addr = base + BK3710_TF_OFFSET + 7; ap 349 drivers/ata/pata_bk3710.c ap->ioaddr.command_addr = base + BK3710_TF_OFFSET + 7; ap 351 drivers/ata/pata_bk3710.c ap->ioaddr.altstatus_addr = base + BK3710_CTL_OFFSET; ap 352 drivers/ata/pata_bk3710.c ap->ioaddr.ctl_addr = base + BK3710_CTL_OFFSET; ap 354 drivers/ata/pata_bk3710.c ap->ioaddr.bmdma_addr = base; ap 356 drivers/ata/pata_bk3710.c ata_port_desc(ap, "cmd 0x%lx ctl 0x%lx", ap 70 drivers/ata/pata_buddha.c struct ata_port *ap = dev->link->ap; ap 71 drivers/ata/pata_buddha.c void __iomem *data_addr = ap->ioaddr.data_addr; ap 119 drivers/ata/pata_buddha.c static bool pata_buddha_irq_check(struct ata_port *ap) ap 123 drivers/ata/pata_buddha.c ch = z_readb((unsigned long)ap->private_data); ap 128 drivers/ata/pata_buddha.c static void pata_xsurf_irq_clear(struct ata_port *ap) ap 130 drivers/ata/pata_buddha.c z_writeb(0, (unsigned long)ap->private_data); ap 202 drivers/ata/pata_buddha.c struct ata_port *ap = host->ports[i]; ap 207 drivers/ata/pata_buddha.c ap->ops = &pata_buddha_ops; ap 212 drivers/ata/pata_buddha.c ap->ops = &pata_xsurf_ops; ap 218 drivers/ata/pata_buddha.c ap->pio_mask = ATA_PIO4; ap 219 drivers/ata/pata_buddha.c ap->flags |= ATA_FLAG_SLAVE_POSS | ATA_FLAG_NO_IORDY; ap 221 drivers/ata/pata_buddha.c ap->ioaddr.data_addr = base; ap 222 drivers/ata/pata_buddha.c ap->ioaddr.error_addr = base + 2 + 1 * 4; ap 223 drivers/ata/pata_buddha.c ap->ioaddr.feature_addr = base + 2 + 1 * 4; ap 224 drivers/ata/pata_buddha.c ap->ioaddr.nsect_addr = base + 2 + 2 * 4; ap 225 drivers/ata/pata_buddha.c ap->ioaddr.lbal_addr = base + 2 + 3 * 4; ap 226 drivers/ata/pata_buddha.c ap->ioaddr.lbam_addr = base + 2 + 4 * 4; ap 227 drivers/ata/pata_buddha.c ap->ioaddr.lbah_addr = base + 2 + 5 * 4; ap 228 drivers/ata/pata_buddha.c ap->ioaddr.device_addr = base + 2 + 6 * 4; ap 229 drivers/ata/pata_buddha.c ap->ioaddr.status_addr = base + 2 + 7 * 4; ap 230 drivers/ata/pata_buddha.c ap->ioaddr.command_addr = base + 2 + 7 * 4; ap 233 drivers/ata/pata_buddha.c ap->ioaddr.altstatus_addr = base + ctl; ap 234 drivers/ata/pata_buddha.c ap->ioaddr.ctl_addr = base + ctl; ap 237 drivers/ata/pata_buddha.c ap->private_data = (void *)irqport; ap 239 drivers/ata/pata_buddha.c ata_port_desc(ap, "cmd 0x%lx ctl 0x%lx", board, ap 52 drivers/ata/pata_cmd640.c static void cmd640_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 54 drivers/ata/pata_cmd640.c struct cmd640_reg *timing = ap->private_data; ap 55 drivers/ata/pata_cmd640.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 70 drivers/ata/pata_cmd640.c if (ap->port_no && pair) { ap 97 drivers/ata/pata_cmd640.c if (ap->port_no == 0) { ap 131 drivers/ata/pata_cmd640.c struct ata_port *ap = qc->ap; ap 133 drivers/ata/pata_cmd640.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 134 drivers/ata/pata_cmd640.c struct cmd640_reg *timing = ap->private_data; ap 136 drivers/ata/pata_cmd640.c if (ap->port_no != 0 && adev->devno != timing->last) { ap 151 drivers/ata/pata_cmd640.c static int cmd640_port_start(struct ata_port *ap) ap 153 drivers/ata/pata_cmd640.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 160 drivers/ata/pata_cmd640.c ap->private_data = timing; ap 164 drivers/ata/pata_cmd640.c static bool cmd640_sff_irq_check(struct ata_port *ap) ap 166 drivers/ata/pata_cmd640.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 167 drivers/ata/pata_cmd640.c int irq_reg = ap->port_no ? ARTIM23 : CFR; ap 168 drivers/ata/pata_cmd640.c u8 irq_stat, irq_mask = ap->port_no ? 0x10 : 0x04; ap 73 drivers/ata/pata_cmd64x.c static int cmd648_cable_detect(struct ata_port *ap) ap 75 drivers/ata/pata_cmd64x.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 80 drivers/ata/pata_cmd64x.c if (r & (1 << ap->port_no)) ap 94 drivers/ata/pata_cmd64x.c static void cmd64x_set_timing(struct ata_port *ap, struct ata_device *adev, u8 mode) ap 96 drivers/ata/pata_cmd64x.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 113 drivers/ata/pata_cmd64x.c int arttim = arttim_port[ap->port_no][adev->devno]; ap 114 drivers/ata/pata_cmd64x.c int drwtim = drwtim_port[ap->port_no][adev->devno]; ap 122 drivers/ata/pata_cmd64x.c if (ap->port_no) { ap 178 drivers/ata/pata_cmd64x.c static void cmd64x_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 180 drivers/ata/pata_cmd64x.c cmd64x_set_timing(ap, adev, adev->pio_mode); ap 191 drivers/ata/pata_cmd64x.c static void cmd64x_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 197 drivers/ata/pata_cmd64x.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 200 drivers/ata/pata_cmd64x.c int pciU = UDIDETCR0 + 8 * ap->port_no; ap 201 drivers/ata/pata_cmd64x.c int pciD = BMIDESR0 + 8 * ap->port_no; ap 223 drivers/ata/pata_cmd64x.c cmd64x_set_timing(ap, adev, adev->dma_mode); ap 239 drivers/ata/pata_cmd64x.c static bool cmd64x_sff_irq_check(struct ata_port *ap) ap 241 drivers/ata/pata_cmd64x.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 242 drivers/ata/pata_cmd64x.c int irq_mask = ap->port_no ? ARTTIM23_INTR_CH1 : CFR_INTR_CH0; ap 243 drivers/ata/pata_cmd64x.c int irq_reg = ap->port_no ? ARTTIM23 : CFR; ap 259 drivers/ata/pata_cmd64x.c static void cmd64x_sff_irq_clear(struct ata_port *ap) ap 261 drivers/ata/pata_cmd64x.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 262 drivers/ata/pata_cmd64x.c int irq_reg = ap->port_no ? ARTTIM23 : CFR; ap 265 drivers/ata/pata_cmd64x.c ata_bmdma_irq_clear(ap); ap 278 drivers/ata/pata_cmd64x.c static bool cmd648_sff_irq_check(struct ata_port *ap) ap 280 drivers/ata/pata_cmd64x.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 282 drivers/ata/pata_cmd64x.c int irq_mask = ap->port_no ? MRDMODE_INTR_CH1 : MRDMODE_INTR_CH0; ap 295 drivers/ata/pata_cmd64x.c static void cmd648_sff_irq_clear(struct ata_port *ap) ap 297 drivers/ata/pata_cmd64x.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 299 drivers/ata/pata_cmd64x.c int irq_mask = ap->port_no ? MRDMODE_INTR_CH1 : MRDMODE_INTR_CH0; ap 302 drivers/ata/pata_cmd64x.c ata_bmdma_irq_clear(ap); ap 60 drivers/ata/pata_cs5520.c static void cs5520_set_timings(struct ata_port *ap, struct ata_device *adev, int pio) ap 62 drivers/ata/pata_cs5520.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 68 drivers/ata/pata_cs5520.c pci_write_config_byte(pdev, 0x62 + ap->port_no, ap 73 drivers/ata/pata_cs5520.c pci_write_config_byte(pdev, 0x64 + 4*ap->port_no + slave, ap 77 drivers/ata/pata_cs5520.c pci_write_config_byte(pdev, 0x66 + 4*ap->port_no + slave, ap 91 drivers/ata/pata_cs5520.c static void cs5520_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 93 drivers/ata/pata_cs5520.c cs5520_set_timings(ap, adev, adev->pio_mode); ap 203 drivers/ata/pata_cs5520.c struct ata_port *ap = host->ports[i]; ap 205 drivers/ata/pata_cs5520.c if (ata_port_is_dummy(ap)) ap 208 drivers/ata/pata_cs5520.c rc = devm_request_irq(&pdev->dev, irq[ap->port_no], ap 213 drivers/ata/pata_cs5520.c ata_port_desc(ap, "irq %d", irq[i]); ap 26 drivers/ata/pata_cs5530.c static void __iomem *cs5530_port_base(struct ata_port *ap) ap 28 drivers/ata/pata_cs5530.c unsigned long bmdma = (unsigned long)ap->ioaddr.bmdma_addr; ap 30 drivers/ata/pata_cs5530.c return (void __iomem *)((bmdma & ~0x0F) + 0x20 + 0x10 * ap->port_no); ap 42 drivers/ata/pata_cs5530.c static void cs5530_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 48 drivers/ata/pata_cs5530.c void __iomem *base = cs5530_port_base(ap); ap 73 drivers/ata/pata_cs5530.c static void cs5530_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 75 drivers/ata/pata_cs5530.c void __iomem *base = cs5530_port_base(ap); ap 112 drivers/ata/pata_cs5530.c reg = ioread8(ap->ioaddr.bmdma_addr + ATA_DMA_STATUS); ap 114 drivers/ata/pata_cs5530.c iowrite8(reg, ap->ioaddr.bmdma_addr + ATA_DMA_STATUS); ap 118 drivers/ata/pata_cs5530.c ap->private_data = adev; ap 133 drivers/ata/pata_cs5530.c struct ata_port *ap = qc->ap; ap 135 drivers/ata/pata_cs5530.c struct ata_device *prev = ap->private_data; ap 143 drivers/ata/pata_cs5530.c cs5530_set_dmamode(ap, adev); ap 65 drivers/ata/pata_cs5535.c static int cs5535_cable_detect(struct ata_port *ap) ap 68 drivers/ata/pata_cs5535.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 85 drivers/ata/pata_cs5535.c static void cs5535_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 124 drivers/ata/pata_cs5535.c static void cs5535_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 110 drivers/ata/pata_cs5536.c struct pci_dev *pdev = to_pci_dev(adev->link->ap->host->dev); ap 129 drivers/ata/pata_cs5536.c static int cs5536_cable_detect(struct ata_port *ap) ap 131 drivers/ata/pata_cs5536.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 148 drivers/ata/pata_cs5536.c static void cs5536_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 162 drivers/ata/pata_cs5536.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 192 drivers/ata/pata_cs5536.c static void cs5536_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 202 drivers/ata/pata_cs5536.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 52 drivers/ata/pata_cypress.c static void cy82c693_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 54 drivers/ata/pata_cypress.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 101 drivers/ata/pata_cypress.c static void cy82c693_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 103 drivers/ata/pata_cypress.c int reg = CY82_INDEX_CHANNEL0 + ap->port_no; ap 43 drivers/ata/pata_efar.c struct ata_port *ap = link->ap; ap 44 drivers/ata/pata_efar.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 46 drivers/ata/pata_efar.c if (!pci_test_config_bits(pdev, &efar_enable_bits[ap->port_no])) ap 60 drivers/ata/pata_efar.c static int efar_cable_detect(struct ata_port *ap) ap 62 drivers/ata/pata_efar.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 66 drivers/ata/pata_efar.c if (tmp & (2 >> ap->port_no)) ap 84 drivers/ata/pata_efar.c static void efar_set_piomode (struct ata_port *ap, struct ata_device *adev) ap 87 drivers/ata/pata_efar.c struct pci_dev *dev = to_pci_dev(ap->host->dev); ap 88 drivers/ata/pata_efar.c unsigned int master_port = ap->port_no ? 0x42 : 0x40; ap 125 drivers/ata/pata_efar.c int shift = 4 * ap->port_no; ap 133 drivers/ata/pata_efar.c slave_data &= ap->port_no ? 0x0F : 0xF0; ap 142 drivers/ata/pata_efar.c udma_enable &= ~(1 << (2 * ap->port_no + adev->devno)); ap 158 drivers/ata/pata_efar.c static void efar_set_dmamode (struct ata_port *ap, struct ata_device *adev) ap 160 drivers/ata/pata_efar.c struct pci_dev *dev = to_pci_dev(ap->host->dev); ap 161 drivers/ata/pata_efar.c u8 master_port = ap->port_no ? 0x42 : 0x40; ap 164 drivers/ata/pata_efar.c int devid = adev->devno + 2 * ap->port_no; ap 218 drivers/ata/pata_efar.c slave_data &= ap->port_no ? 0x0F : 0xF0; ap 220 drivers/ata/pata_efar.c slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) << (ap->port_no ? 4 : 0); ap 330 drivers/ata/pata_ep93xx.c static void ep93xx_pata_set_piomode(struct ata_port *ap, ap 333 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; ap 358 drivers/ata/pata_ep93xx.c static u8 ep93xx_pata_check_status(struct ata_port *ap) ap 360 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; ap 365 drivers/ata/pata_ep93xx.c static u8 ep93xx_pata_check_altstatus(struct ata_port *ap) ap 367 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; ap 373 drivers/ata/pata_ep93xx.c static void ep93xx_pata_tf_load(struct ata_port *ap, ap 376 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; ap 379 drivers/ata/pata_ep93xx.c if (tf->ctl != ap->last_ctl) { ap 381 drivers/ata/pata_ep93xx.c ap->last_ctl = tf->ctl; ap 382 drivers/ata/pata_ep93xx.c ata_wait_idle(ap); ap 411 drivers/ata/pata_ep93xx.c ata_wait_idle(ap); ap 415 drivers/ata/pata_ep93xx.c static void ep93xx_pata_tf_read(struct ata_port *ap, struct ata_taskfile *tf) ap 417 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; ap 419 drivers/ata/pata_ep93xx.c tf->command = ep93xx_pata_check_status(ap); ap 441 drivers/ata/pata_ep93xx.c ap->last_ctl = tf->ctl; ap 446 drivers/ata/pata_ep93xx.c static void ep93xx_pata_exec_command(struct ata_port *ap, ap 449 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; ap 453 drivers/ata/pata_ep93xx.c ata_sff_pause(ap); ap 457 drivers/ata/pata_ep93xx.c static void ep93xx_pata_dev_select(struct ata_port *ap, unsigned int device) ap 459 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; ap 466 drivers/ata/pata_ep93xx.c ata_sff_pause(ap); /* needed; also flushes, for mmio */ ap 470 drivers/ata/pata_ep93xx.c static void ep93xx_pata_set_devctl(struct ata_port *ap, u8 ctl) ap 472 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; ap 482 drivers/ata/pata_ep93xx.c struct ata_port *ap = qc->dev->link->ap; ap 483 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; ap 520 drivers/ata/pata_ep93xx.c static bool ep93xx_pata_device_is_present(struct ata_port *ap, ap 523 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; ap 526 drivers/ata/pata_ep93xx.c ap->ops->sff_dev_select(ap, device); ap 551 drivers/ata/pata_ep93xx.c struct ata_port *ap = link->ap; ap 552 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; ap 557 drivers/ata/pata_ep93xx.c ata_msleep(ap, ATA_WAIT_AFTER_RESET); ap 575 drivers/ata/pata_ep93xx.c ap->ops->sff_dev_select(ap, 1); ap 602 drivers/ata/pata_ep93xx.c ap->ops->sff_dev_select(ap, 0); ap 604 drivers/ata/pata_ep93xx.c ap->ops->sff_dev_select(ap, 1); ap 606 drivers/ata/pata_ep93xx.c ap->ops->sff_dev_select(ap, 0); ap 612 drivers/ata/pata_ep93xx.c static int ep93xx_pata_bus_softreset(struct ata_port *ap, unsigned int devmask, ap 615 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; ap 617 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, ap->ctl, IDECTRL_ADDR_CTL); ap 619 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, ap->ctl | ATA_SRST, IDECTRL_ADDR_CTL); ap 621 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, ap->ctl, IDECTRL_ADDR_CTL); ap 622 drivers/ata/pata_ep93xx.c ap->last_ctl = ap->ctl; ap 624 drivers/ata/pata_ep93xx.c return ep93xx_pata_wait_after_reset(&ap->link, devmask, deadline); ap 705 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = qc->ap->host->private_data; ap 715 drivers/ata/pata_ep93xx.c dev_err(qc->ap->dev, "failed to prepare slave for sg dma\n"); ap 722 drivers/ata/pata_ep93xx.c dev_err(qc->ap->dev, "failed to submit dma transfer\n"); ap 745 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = qc->ap->host->private_data; ap 763 drivers/ata/pata_ep93xx.c ata_sff_dma_pause(qc->ap); ap 768 drivers/ata/pata_ep93xx.c qc->ap->ops->sff_exec_command(qc->ap, &qc->tf); ap 771 drivers/ata/pata_ep93xx.c static u8 ep93xx_pata_dma_status(struct ata_port *ap) ap 773 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; ap 807 drivers/ata/pata_ep93xx.c struct ata_port *ap = al->ap; ap 808 drivers/ata/pata_ep93xx.c unsigned int slave_possible = ap->flags & ATA_FLAG_SLAVE_POSS; ap 814 drivers/ata/pata_ep93xx.c if (ep93xx_pata_device_is_present(ap, 0)) ap 816 drivers/ata/pata_ep93xx.c if (slave_possible && ep93xx_pata_device_is_present(ap, 1)) ap 820 drivers/ata/pata_ep93xx.c ap->ops->sff_dev_select(al->ap, 0); ap 823 drivers/ata/pata_ep93xx.c rc = ep93xx_pata_bus_softreset(ap, devmask, deadline); ap 844 drivers/ata/pata_ep93xx.c struct ata_port *ap; ap 851 drivers/ata/pata_ep93xx.c ap = qc->ap; ap 852 drivers/ata/pata_ep93xx.c drv_data = ap->host->private_data; ap 854 drivers/ata/pata_ep93xx.c for (count = 0; (ap->ops->sff_check_status(ap) & ATA_DRQ) ap 860 drivers/ata/pata_ep93xx.c ata_port_dbg(ap, "drained %d bytes to clear DRQ.\n", count); ap 864 drivers/ata/pata_ep93xx.c static int ep93xx_pata_port_start(struct ata_port *ap) ap 866 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; ap 918 drivers/ata/pata_ep93xx.c struct ata_port *ap; ap 965 drivers/ata/pata_ep93xx.c ap = host->ports[0]; ap 966 drivers/ata/pata_ep93xx.c ap->dev = &pdev->dev; ap 967 drivers/ata/pata_ep93xx.c ap->ops = &ep93xx_pata_port_ops; ap 968 drivers/ata/pata_ep93xx.c ap->flags |= ATA_FLAG_SLAVE_POSS; ap 969 drivers/ata/pata_ep93xx.c ap->pio_mask = ATA_PIO4; ap 984 drivers/ata/pata_ep93xx.c ap->udma_mask = ATA_UDMA3; ap 986 drivers/ata/pata_ep93xx.c ap->udma_mask = ATA_UDMA4; ap 988 drivers/ata/pata_ep93xx.c ap->udma_mask = ATA_UDMA2; ap 48 drivers/ata/pata_falcon.c struct ata_port *ap = dev->link->ap; ap 49 drivers/ata/pata_falcon.c void __iomem *data_addr = ap->ioaddr.data_addr; ap 126 drivers/ata/pata_falcon.c struct ata_port *ap; ap 148 drivers/ata/pata_falcon.c ap = host->ports[0]; ap 150 drivers/ata/pata_falcon.c ap->ops = &pata_falcon_ops; ap 151 drivers/ata/pata_falcon.c ap->pio_mask = ATA_PIO4; ap 152 drivers/ata/pata_falcon.c ap->flags |= ATA_FLAG_SLAVE_POSS | ATA_FLAG_NO_IORDY; ap 153 drivers/ata/pata_falcon.c ap->flags |= ATA_FLAG_PIO_POLLING; ap 156 drivers/ata/pata_falcon.c ap->ioaddr.data_addr = base; ap 157 drivers/ata/pata_falcon.c ap->ioaddr.error_addr = base + 1 + 1 * 4; ap 158 drivers/ata/pata_falcon.c ap->ioaddr.feature_addr = base + 1 + 1 * 4; ap 159 drivers/ata/pata_falcon.c ap->ioaddr.nsect_addr = base + 1 + 2 * 4; ap 160 drivers/ata/pata_falcon.c ap->ioaddr.lbal_addr = base + 1 + 3 * 4; ap 161 drivers/ata/pata_falcon.c ap->ioaddr.lbam_addr = base + 1 + 4 * 4; ap 162 drivers/ata/pata_falcon.c ap->ioaddr.lbah_addr = base + 1 + 5 * 4; ap 163 drivers/ata/pata_falcon.c ap->ioaddr.device_addr = base + 1 + 6 * 4; ap 164 drivers/ata/pata_falcon.c ap->ioaddr.status_addr = base + 1 + 7 * 4; ap 165 drivers/ata/pata_falcon.c ap->ioaddr.command_addr = base + 1 + 7 * 4; ap 167 drivers/ata/pata_falcon.c ap->ioaddr.altstatus_addr = base + ATA_HD_CONTROL; ap 168 drivers/ata/pata_falcon.c ap->ioaddr.ctl_addr = base + ATA_HD_CONTROL; ap 170 drivers/ata/pata_falcon.c ata_port_desc(ap, "cmd 0x%lx ctl 0x%lx", (unsigned long)base, ap 141 drivers/ata/pata_ftide010.c static void ftide010_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 143 drivers/ata/pata_ftide010.c struct ftide010 *ftide = ap->host->private_data; ap 215 drivers/ata/pata_ftide010.c ap->private_data = adev; ap 220 drivers/ata/pata_ftide010.c static void ftide010_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 222 drivers/ata/pata_ftide010.c struct ftide010 *ftide = ap->host->private_data; ap 239 drivers/ata/pata_ftide010.c struct ata_port *ap = qc->ap; ap 247 drivers/ata/pata_ftide010.c if (adev != ap->private_data && ata_dma_enabled(adev)) ap 248 drivers/ata/pata_ftide010.c ftide010_set_dmamode(ap, adev); ap 270 drivers/ata/pata_ftide010.c static int pata_ftide010_gemini_port_start(struct ata_port *ap) ap 272 drivers/ata/pata_ftide010.c struct ftide010 *ftide = ap->host->private_data; ap 278 drivers/ata/pata_ftide010.c ret = ata_bmdma_port_start(ap); ap 313 drivers/ata/pata_ftide010.c static void pata_ftide010_gemini_port_stop(struct ata_port *ap) ap 315 drivers/ata/pata_ftide010.c struct ftide010 *ftide = ap->host->private_data; ap 339 drivers/ata/pata_ftide010.c static int pata_ftide010_gemini_cable_detect(struct ata_port *ap) ap 341 drivers/ata/pata_ftide010.c struct ftide010 *ftide = ap->host->private_data; ap 518 drivers/ata/pata_ftide010.c struct ata_port *ap = ftide->host->ports[i]; ap 519 drivers/ata/pata_ftide010.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 48 drivers/ata/pata_gayle.c struct ata_port *ap = dev->link->ap; ap 49 drivers/ata/pata_gayle.c void __iomem *data_addr = ap->ioaddr.data_addr; ap 97 drivers/ata/pata_gayle.c static bool pata_gayle_irq_check(struct ata_port *ap) ap 101 drivers/ata/pata_gayle.c ch = z_readb((unsigned long)ap->private_data); ap 106 drivers/ata/pata_gayle.c static void pata_gayle_irq_clear(struct ata_port *ap) ap 108 drivers/ata/pata_gayle.c (void)z_readb((unsigned long)ap->ioaddr.status_addr); ap 109 drivers/ata/pata_gayle.c z_writeb(0x7c, (unsigned long)ap->private_data); ap 133 drivers/ata/pata_gayle.c struct ata_port *ap; ap 157 drivers/ata/pata_gayle.c ap = host->ports[0]; ap 160 drivers/ata/pata_gayle.c ap->ops = &pata_gayle_a1200_ops; ap 162 drivers/ata/pata_gayle.c ap->ops = &pata_gayle_a4000_ops; ap 164 drivers/ata/pata_gayle.c ap->pio_mask = ATA_PIO4; ap 165 drivers/ata/pata_gayle.c ap->flags |= ATA_FLAG_SLAVE_POSS | ATA_FLAG_NO_IORDY; ap 168 drivers/ata/pata_gayle.c ap->ioaddr.data_addr = base; ap 169 drivers/ata/pata_gayle.c ap->ioaddr.error_addr = base + 2 + 1 * 4; ap 170 drivers/ata/pata_gayle.c ap->ioaddr.feature_addr = base + 2 + 1 * 4; ap 171 drivers/ata/pata_gayle.c ap->ioaddr.nsect_addr = base + 2 + 2 * 4; ap 172 drivers/ata/pata_gayle.c ap->ioaddr.lbal_addr = base + 2 + 3 * 4; ap 173 drivers/ata/pata_gayle.c ap->ioaddr.lbam_addr = base + 2 + 4 * 4; ap 174 drivers/ata/pata_gayle.c ap->ioaddr.lbah_addr = base + 2 + 5 * 4; ap 175 drivers/ata/pata_gayle.c ap->ioaddr.device_addr = base + 2 + 6 * 4; ap 176 drivers/ata/pata_gayle.c ap->ioaddr.status_addr = base + 2 + 7 * 4; ap 177 drivers/ata/pata_gayle.c ap->ioaddr.command_addr = base + 2 + 7 * 4; ap 179 drivers/ata/pata_gayle.c ap->ioaddr.altstatus_addr = base + GAYLE_CONTROL; ap 180 drivers/ata/pata_gayle.c ap->ioaddr.ctl_addr = base + GAYLE_CONTROL; ap 182 drivers/ata/pata_gayle.c ap->private_data = (void *)ZTWO_VADDR(pdata->irqport); ap 184 drivers/ata/pata_gayle.c ata_port_desc(ap, "cmd 0x%lx ctl 0x%lx", pdata->base, ap 123 drivers/ata/pata_hpt366.c static u32 hpt36x_find_mode(struct ata_port *ap, int speed) ap 125 drivers/ata/pata_hpt366.c struct hpt_clock *clocks = ap->host->private_data; ap 214 drivers/ata/pata_hpt366.c static int hpt36x_cable_detect(struct ata_port *ap) ap 216 drivers/ata/pata_hpt366.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 229 drivers/ata/pata_hpt366.c static void hpt366_set_mode(struct ata_port *ap, struct ata_device *adev, ap 232 drivers/ata/pata_hpt366.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 244 drivers/ata/pata_hpt366.c t = hpt36x_find_mode(ap, mode); ap 264 drivers/ata/pata_hpt366.c static void hpt366_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 266 drivers/ata/pata_hpt366.c hpt366_set_mode(ap, adev, adev->pio_mode); ap 278 drivers/ata/pata_hpt366.c static void hpt366_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 280 drivers/ata/pata_hpt366.c hpt366_set_mode(ap, adev, adev->dma_mode); ap 211 drivers/ata/pata_hpt37x.c static u32 hpt37x_find_mode(struct ata_port *ap, int speed) ap 213 drivers/ata/pata_hpt37x.c struct hpt_clock *clocks = ap->host->private_data; ap 332 drivers/ata/pata_hpt37x.c static int hpt37x_cable_detect(struct ata_port *ap) ap 334 drivers/ata/pata_hpt37x.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 347 drivers/ata/pata_hpt37x.c if (ata66 & (2 >> ap->port_no)) ap 360 drivers/ata/pata_hpt37x.c static int hpt374_fn1_cable_detect(struct ata_port *ap) ap 362 drivers/ata/pata_hpt37x.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 363 drivers/ata/pata_hpt37x.c unsigned int mcrbase = 0x50 + 4 * ap->port_no; ap 375 drivers/ata/pata_hpt37x.c if (ata66 & (2 >> ap->port_no)) ap 391 drivers/ata/pata_hpt37x.c struct ata_port *ap = link->ap; ap 392 drivers/ata/pata_hpt37x.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 398 drivers/ata/pata_hpt37x.c if (!pci_test_config_bits(pdev, &hpt37x_enable_bits[ap->port_no])) ap 402 drivers/ata/pata_hpt37x.c pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); ap 408 drivers/ata/pata_hpt37x.c static void hpt370_set_mode(struct ata_port *ap, struct ata_device *adev, ap 411 drivers/ata/pata_hpt37x.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 416 drivers/ata/pata_hpt37x.c addr1 = 0x40 + 4 * (adev->devno + 2 * ap->port_no); ap 417 drivers/ata/pata_hpt37x.c addr2 = 0x51 + 4 * ap->port_no; ap 433 drivers/ata/pata_hpt37x.c timing = hpt37x_find_mode(ap, mode); ap 447 drivers/ata/pata_hpt37x.c static void hpt370_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 449 drivers/ata/pata_hpt37x.c hpt370_set_mode(ap, adev, adev->pio_mode); ap 460 drivers/ata/pata_hpt37x.c static void hpt370_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 462 drivers/ata/pata_hpt37x.c hpt370_set_mode(ap, adev, adev->dma_mode); ap 474 drivers/ata/pata_hpt37x.c struct ata_port *ap = qc->ap; ap 475 drivers/ata/pata_hpt37x.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 476 drivers/ata/pata_hpt37x.c void __iomem *bmdma = ap->ioaddr.bmdma_addr; ap 486 drivers/ata/pata_hpt37x.c pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); ap 496 drivers/ata/pata_hpt37x.c pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); ap 502 drivers/ata/pata_hpt37x.c static void hpt372_set_mode(struct ata_port *ap, struct ata_device *adev, ap 505 drivers/ata/pata_hpt37x.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 510 drivers/ata/pata_hpt37x.c addr1 = 0x40 + 4 * (adev->devno + 2 * ap->port_no); ap 511 drivers/ata/pata_hpt37x.c addr2 = 0x51 + 4 * ap->port_no; ap 526 drivers/ata/pata_hpt37x.c timing = hpt37x_find_mode(ap, mode); ap 541 drivers/ata/pata_hpt37x.c static void hpt372_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 543 drivers/ata/pata_hpt37x.c hpt372_set_mode(ap, adev, adev->pio_mode); ap 554 drivers/ata/pata_hpt37x.c static void hpt372_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 556 drivers/ata/pata_hpt37x.c hpt372_set_mode(ap, adev, adev->dma_mode); ap 568 drivers/ata/pata_hpt37x.c struct ata_port *ap = qc->ap; ap 569 drivers/ata/pata_hpt37x.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 570 drivers/ata/pata_hpt37x.c int mscreg = 0x50 + 4 * ap->port_no; ap 575 drivers/ata/pata_hpt37x.c if (bwsr_stat & (1 << ap->port_no)) ap 104 drivers/ata/pata_hpt3x2n.c static u32 hpt3x2n_find_mode(struct ata_port *ap, int speed) ap 140 drivers/ata/pata_hpt3x2n.c static int hpt3x2n_cable_detect(struct ata_port *ap) ap 143 drivers/ata/pata_hpt3x2n.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 155 drivers/ata/pata_hpt3x2n.c if (ata66 & (2 >> ap->port_no)) ap 172 drivers/ata/pata_hpt3x2n.c struct ata_port *ap = link->ap; ap 173 drivers/ata/pata_hpt3x2n.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 176 drivers/ata/pata_hpt3x2n.c pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); ap 182 drivers/ata/pata_hpt3x2n.c static void hpt3x2n_set_mode(struct ata_port *ap, struct ata_device *adev, ap 185 drivers/ata/pata_hpt3x2n.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 190 drivers/ata/pata_hpt3x2n.c addr1 = 0x40 + 4 * (adev->devno + 2 * ap->port_no); ap 191 drivers/ata/pata_hpt3x2n.c addr2 = 0x51 + 4 * ap->port_no; ap 206 drivers/ata/pata_hpt3x2n.c timing = hpt3x2n_find_mode(ap, mode); ap 221 drivers/ata/pata_hpt3x2n.c static void hpt3x2n_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 223 drivers/ata/pata_hpt3x2n.c hpt3x2n_set_mode(ap, adev, adev->pio_mode); ap 234 drivers/ata/pata_hpt3x2n.c static void hpt3x2n_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 236 drivers/ata/pata_hpt3x2n.c hpt3x2n_set_mode(ap, adev, adev->dma_mode); ap 248 drivers/ata/pata_hpt3x2n.c struct ata_port *ap = qc->ap; ap 249 drivers/ata/pata_hpt3x2n.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 250 drivers/ata/pata_hpt3x2n.c int mscreg = 0x50 + 2 * ap->port_no; ap 255 drivers/ata/pata_hpt3x2n.c if (bwsr_stat & (1 << ap->port_no)) ap 276 drivers/ata/pata_hpt3x2n.c static void hpt3x2n_set_clock(struct ata_port *ap, int source) ap 278 drivers/ata/pata_hpt3x2n.c void __iomem *bmdma = ap->ioaddr.bmdma_addr - ap->port_no * 8; ap 300 drivers/ata/pata_hpt3x2n.c static int hpt3x2n_use_dpll(struct ata_port *ap, int writing) ap 302 drivers/ata/pata_hpt3x2n.c long flags = (long)ap->host->private_data; ap 314 drivers/ata/pata_hpt3x2n.c struct ata_port *ap = qc->ap; ap 315 drivers/ata/pata_hpt3x2n.c struct ata_port *alt = ap->host->ports[ap->port_no ^ 1]; ap 316 drivers/ata/pata_hpt3x2n.c int rc, flags = (long)ap->host->private_data; ap 317 drivers/ata/pata_hpt3x2n.c int dpll = hpt3x2n_use_dpll(ap, qc->tf.flags & ATA_TFLAG_WRITE); ap 331 drivers/ata/pata_hpt3x2n.c struct ata_port *ap = qc->ap; ap 332 drivers/ata/pata_hpt3x2n.c int flags = (long)ap->host->private_data; ap 333 drivers/ata/pata_hpt3x2n.c int dpll = hpt3x2n_use_dpll(ap, qc->tf.flags & ATA_TFLAG_WRITE); ap 338 drivers/ata/pata_hpt3x2n.c ap->host->private_data = (void *)(long)flags; ap 340 drivers/ata/pata_hpt3x2n.c hpt3x2n_set_clock(ap, dpll ? 0x21 : 0x23); ap 37 drivers/ata/pata_hpt3x3.c static void hpt3x3_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 39 drivers/ata/pata_hpt3x3.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 41 drivers/ata/pata_hpt3x3.c int dn = 2 * ap->port_no + adev->devno; ap 67 drivers/ata/pata_hpt3x3.c static void hpt3x3_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 69 drivers/ata/pata_hpt3x3.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 71 drivers/ata/pata_hpt3x3.c int dn = 2 * ap->port_no + adev->devno; ap 98 drivers/ata/pata_hpt3x3.c static void hpt3x3_freeze(struct ata_port *ap) ap 100 drivers/ata/pata_hpt3x3.c void __iomem *mmio = ap->ioaddr.bmdma_addr; ap 104 drivers/ata/pata_hpt3x3.c ata_sff_dma_pause(ap); ap 105 drivers/ata/pata_hpt3x3.c ata_sff_freeze(ap); ap 118 drivers/ata/pata_hpt3x3.c struct ata_port *ap = qc->ap; ap 119 drivers/ata/pata_hpt3x3.c u8 r = ioread8(ap->ioaddr.bmdma_addr + ATA_DMA_STATUS); ap 121 drivers/ata/pata_hpt3x3.c iowrite8(r, ap->ioaddr.bmdma_addr + ATA_DMA_STATUS); ap 231 drivers/ata/pata_hpt3x3.c struct ata_port *ap = host->ports[i]; ap 232 drivers/ata/pata_hpt3x3.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 241 drivers/ata/pata_hpt3x3.c ata_port_pbar_desc(ap, 4, -1, "ioport"); ap 242 drivers/ata/pata_hpt3x3.c ata_port_pbar_desc(ap, 4, offset_cmd[i], "cmd"); ap 188 drivers/ata/pata_icside.c static void pata_icside_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 190 drivers/ata/pata_icside.c struct pata_icside_state *state = ap->host->private_data; ap 217 drivers/ata/pata_icside.c state->port[ap->port_no].speed[adev->devno] = cycle; ap 222 drivers/ata/pata_icside.c struct ata_port *ap = qc->ap; ap 223 drivers/ata/pata_icside.c struct pata_icside_state *state = ap->host->private_data; ap 235 drivers/ata/pata_icside.c writeb(state->port[ap->port_no].port_sel, state->ioc_base); ap 237 drivers/ata/pata_icside.c set_dma_speed(state->dma, state->port[ap->port_no].speed[qc->dev->devno]); ap 242 drivers/ata/pata_icside.c ap->ops->sff_exec_command(ap, &qc->tf); ap 247 drivers/ata/pata_icside.c struct ata_port *ap = qc->ap; ap 248 drivers/ata/pata_icside.c struct pata_icside_state *state = ap->host->private_data; ap 256 drivers/ata/pata_icside.c struct ata_port *ap = qc->ap; ap 257 drivers/ata/pata_icside.c struct pata_icside_state *state = ap->host->private_data; ap 262 drivers/ata/pata_icside.c ata_sff_dma_pause(ap); ap 265 drivers/ata/pata_icside.c static u8 pata_icside_bmdma_status(struct ata_port *ap) ap 267 drivers/ata/pata_icside.c struct pata_icside_state *state = ap->host->private_data; ap 270 drivers/ata/pata_icside.c irq_port = state->irq_port + (ap->port_no ? ICS_ARCIN_V6_INTRSTAT_2 : ap 304 drivers/ata/pata_icside.c struct ata_port *ap = link->ap; ap 305 drivers/ata/pata_icside.c struct pata_icside_state *state = ap->host->private_data; ap 310 drivers/ata/pata_icside.c state->port[ap->port_no].disabled = 1; ap 319 drivers/ata/pata_icside.c (ap->port_no ? ICS_ARCIN_V6_INTROFFSET_2 : ICS_ARCIN_V6_INTROFFSET_1); ap 341 drivers/ata/pata_icside.c static void pata_icside_setup_ioaddr(struct ata_port *ap, void __iomem *base, ap 345 drivers/ata/pata_icside.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 363 drivers/ata/pata_icside.c ata_port_desc(ap, "cmd 0x%lx ctl 0x%lx", ap 368 drivers/ata/pata_icside.c ata_port_desc(ap, "iocbase 0x%lx", info->raw_ioc_base); ap 463 drivers/ata/pata_icside.c struct ata_port *ap = host->ports[i]; ap 465 drivers/ata/pata_icside.c ap->pio_mask = ATA_PIO4; ap 466 drivers/ata/pata_icside.c ap->mwdma_mask = info->mwdma_mask; ap 467 drivers/ata/pata_icside.c ap->flags |= ATA_FLAG_SLAVE_POSS; ap 468 drivers/ata/pata_icside.c ap->ops = &pata_icside_port_ops; ap 470 drivers/ata/pata_icside.c pata_icside_setup_ioaddr(ap, info->base, info, info->port[i]); ap 85 drivers/ata/pata_imx.c static void pata_imx_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 87 drivers/ata/pata_imx.c struct pata_imx_priv *priv = ap->host->private_data; ap 129 drivers/ata/pata_imx.c struct ata_port *ap; ap 161 drivers/ata/pata_imx.c ap = host->ports[0]; ap 163 drivers/ata/pata_imx.c ap->ops = &pata_imx_port_ops; ap 164 drivers/ata/pata_imx.c ap->pio_mask = ATA_PIO4; ap 165 drivers/ata/pata_imx.c ap->flags |= ATA_FLAG_SLAVE_POSS; ap 174 drivers/ata/pata_imx.c ap->ioaddr.cmd_addr = priv->host_regs + PATA_IMX_DRIVE_DATA; ap 175 drivers/ata/pata_imx.c ap->ioaddr.ctl_addr = priv->host_regs + PATA_IMX_DRIVE_CONTROL; ap 177 drivers/ata/pata_imx.c ap->ioaddr.altstatus_addr = ap->ioaddr.ctl_addr; ap 179 drivers/ata/pata_imx.c pata_imx_setup_port(&ap->ioaddr); ap 181 drivers/ata/pata_imx.c ata_port_desc(ap, "cmd 0x%llx ctl 0x%llx", ap 51 drivers/ata/pata_isapnp.c struct ata_port *ap; ap 74 drivers/ata/pata_isapnp.c ap = host->ports[0]; ap 76 drivers/ata/pata_isapnp.c ap->ops = &isapnp_noalt_port_ops; ap 77 drivers/ata/pata_isapnp.c ap->pio_mask = ATA_PIO0; ap 78 drivers/ata/pata_isapnp.c ap->flags |= ATA_FLAG_SLAVE_POSS; ap 80 drivers/ata/pata_isapnp.c ap->ioaddr.cmd_addr = cmd_addr; ap 85 drivers/ata/pata_isapnp.c ap->ioaddr.altstatus_addr = ctl_addr; ap 86 drivers/ata/pata_isapnp.c ap->ioaddr.ctl_addr = ctl_addr; ap 87 drivers/ata/pata_isapnp.c ap->ops = &isapnp_port_ops; ap 90 drivers/ata/pata_isapnp.c ata_sff_std_ports(&ap->ioaddr); ap 92 drivers/ata/pata_isapnp.c ata_port_desc(ap, "cmd 0x%llx ctl 0x%llx", ap 38 drivers/ata/pata_it8213.c struct ata_port *ap = link->ap; ap 39 drivers/ata/pata_it8213.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 40 drivers/ata/pata_it8213.c if (!pci_test_config_bits(pdev, &it8213_enable_bits[ap->port_no])) ap 54 drivers/ata/pata_it8213.c static int it8213_cable_detect(struct ata_port *ap) ap 56 drivers/ata/pata_it8213.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 75 drivers/ata/pata_it8213.c static void it8213_set_piomode (struct ata_port *ap, struct ata_device *adev) ap 78 drivers/ata/pata_it8213.c struct pci_dev *dev = to_pci_dev(ap->host->dev); ap 79 drivers/ata/pata_it8213.c unsigned int master_port = ap->port_no ? 0x42 : 0x40; ap 140 drivers/ata/pata_it8213.c static void it8213_set_dmamode (struct ata_port *ap, struct ata_device *adev) ap 142 drivers/ata/pata_it8213.c struct pci_dev *dev = to_pci_dev(ap->host->dev); ap 215 drivers/ata/pata_it8213.c slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) << (ap->port_no ? 4 : 0); ap 126 drivers/ata/pata_it821x.c static void it821x_program(struct ata_port *ap, struct ata_device *adev, u16 timing) ap 128 drivers/ata/pata_it821x.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 129 drivers/ata/pata_it821x.c struct it821x_dev *itdev = ap->private_data; ap 130 drivers/ata/pata_it821x.c int channel = ap->port_no; ap 154 drivers/ata/pata_it821x.c static void it821x_program_udma(struct ata_port *ap, struct ata_device *adev, u16 timing) ap 156 drivers/ata/pata_it821x.c struct it821x_dev *itdev = ap->private_data; ap 157 drivers/ata/pata_it821x.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 158 drivers/ata/pata_it821x.c int channel = ap->port_no; ap 185 drivers/ata/pata_it821x.c static void it821x_clock_strategy(struct ata_port *ap, struct ata_device *adev) ap 187 drivers/ata/pata_it821x.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 188 drivers/ata/pata_it821x.c struct it821x_dev *itdev = ap->private_data; ap 224 drivers/ata/pata_it821x.c v &= ~(1 << (1 + ap->port_no)); ap 225 drivers/ata/pata_it821x.c v |= sel << (1 + ap->port_no); ap 233 drivers/ata/pata_it821x.c it821x_program_udma(ap, pair, itdev->udma[1-unit]); ap 234 drivers/ata/pata_it821x.c it821x_program(ap, pair, itdev->pio[1-unit]); ap 241 drivers/ata/pata_it821x.c it821x_program_udma(ap, adev, itdev->udma[unit]); ap 242 drivers/ata/pata_it821x.c it821x_program(ap, adev, itdev->pio[unit]); ap 255 drivers/ata/pata_it821x.c static void it821x_passthru_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 261 drivers/ata/pata_it821x.c struct it821x_dev *itdev = ap->private_data; ap 269 drivers/ata/pata_it821x.c it821x_clock_strategy(ap, adev); ap 270 drivers/ata/pata_it821x.c it821x_program(ap, adev, itdev->pio[unit]); ap 285 drivers/ata/pata_it821x.c static void it821x_passthru_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 292 drivers/ata/pata_it821x.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 293 drivers/ata/pata_it821x.c struct it821x_dev *itdev = ap->private_data; ap 294 drivers/ata/pata_it821x.c int channel = ap->port_no; ap 315 drivers/ata/pata_it821x.c it821x_clock_strategy(ap, adev); ap 316 drivers/ata/pata_it821x.c it821x_program_udma(ap, adev, itdev->udma[unit]); ap 332 drivers/ata/pata_it821x.c it821x_clock_strategy(ap, adev); ap 347 drivers/ata/pata_it821x.c struct ata_port *ap = qc->ap; ap 349 drivers/ata/pata_it821x.c struct it821x_dev *itdev = ap->private_data; ap 353 drivers/ata/pata_it821x.c it821x_program(ap, adev, itdev->mwdma[unit]); ap 355 drivers/ata/pata_it821x.c it821x_program_udma(ap, adev, itdev->udma[unit]); ap 370 drivers/ata/pata_it821x.c struct ata_port *ap = qc->ap; ap 372 drivers/ata/pata_it821x.c struct it821x_dev *itdev = ap->private_data; ap 377 drivers/ata/pata_it821x.c it821x_program(ap, adev, itdev->pio[unit]); ap 389 drivers/ata/pata_it821x.c static void it821x_passthru_dev_select(struct ata_port *ap, ap 392 drivers/ata/pata_it821x.c struct it821x_dev *itdev = ap->private_data; ap 394 drivers/ata/pata_it821x.c struct ata_device *adev = &ap->link.device[device]; ap 395 drivers/ata/pata_it821x.c it821x_program(ap, adev, itdev->pio[adev->devno]); ap 398 drivers/ata/pata_it821x.c ata_sff_dev_select(ap, device); ap 449 drivers/ata/pata_it821x.c it821x_passthru_dev_select(qc->ap, qc->dev->devno); ap 577 drivers/ata/pata_it821x.c struct ata_port *ap = qc->ap; ap 578 drivers/ata/pata_it821x.c struct it821x_dev *itdev = ap->private_data; ap 656 drivers/ata/pata_it821x.c static u8 *it821x_firmware_command(struct ata_port *ap, u8 cmd, int len) ap 667 drivers/ata/pata_it821x.c ap->ctl |= ATA_NIEN; ap 668 drivers/ata/pata_it821x.c iowrite8(ap->ctl, ap->ioaddr.ctl_addr); ap 669 drivers/ata/pata_it821x.c ata_wait_idle(ap); ap 670 drivers/ata/pata_it821x.c iowrite8(ATA_DEVICE_OBS, ap->ioaddr.device_addr); ap 671 drivers/ata/pata_it821x.c iowrite8(cmd, ap->ioaddr.command_addr); ap 676 drivers/ata/pata_it821x.c status = ioread8(ap->ioaddr.status_addr); ap 683 drivers/ata/pata_it821x.c ioread16_rep(ap->ioaddr.data_addr, buf, len/2); ap 701 drivers/ata/pata_it821x.c static void it821x_probe_firmware(struct ata_port *ap) ap 709 drivers/ata/pata_it821x.c buf = it821x_firmware_command(ap, 0xFA, 512); ap 735 drivers/ata/pata_it821x.c static int it821x_port_start(struct ata_port *ap) ap 737 drivers/ata/pata_it821x.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 741 drivers/ata/pata_it821x.c int ret = ata_bmdma_port_start(ap); ap 748 drivers/ata/pata_it821x.c ap->private_data = itdev; ap 757 drivers/ata/pata_it821x.c if (ap->port_no == 0) ap 758 drivers/ata/pata_it821x.c it821x_probe_firmware(ap); ap 761 drivers/ata/pata_it821x.c if (conf & (1 << (1 + ap->port_no))) ap 788 drivers/ata/pata_it821x.c static int it821x_rdc_cable(struct ata_port *ap) ap 791 drivers/ata/pata_it821x.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 794 drivers/ata/pata_it821x.c if (r40 & (1 << (2 + ap->port_no))) ap 45 drivers/ata/pata_ixp4xx_cf.c struct ata_port *ap = qc->dev->link->ap; ap 46 drivers/ata/pata_ixp4xx_cf.c void __iomem *mmio = ap->ioaddr.data_addr; ap 47 drivers/ata/pata_ixp4xx_cf.c struct ixp4xx_pata_data *data = dev_get_platdata(ap->host->dev); ap 95 drivers/ata/pata_ixp4xx_cf.c static void ixp4xx_setup_port(struct ata_port *ap, ap 99 drivers/ata/pata_ixp4xx_cf.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 133 drivers/ata/pata_ixp4xx_cf.c ata_port_desc(ap, "cmd 0x%lx ctl 0x%lx", raw_cmd, raw_ctl); ap 141 drivers/ata/pata_ixp4xx_cf.c struct ata_port *ap; ap 175 drivers/ata/pata_ixp4xx_cf.c ap = host->ports[0]; ap 177 drivers/ata/pata_ixp4xx_cf.c ap->ops = &ixp4xx_port_ops; ap 178 drivers/ata/pata_ixp4xx_cf.c ap->pio_mask = ATA_PIO4; ap 179 drivers/ata/pata_ixp4xx_cf.c ap->flags |= ATA_FLAG_NO_ATAPI; ap 181 drivers/ata/pata_ixp4xx_cf.c ixp4xx_setup_port(ap, data, cs0->start, cs1->start); ap 44 drivers/ata/pata_jmicron.c struct ata_port *ap = link->ap; ap 45 drivers/ata/pata_jmicron.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 48 drivers/ata/pata_jmicron.c int port_mask = 1<< (4 * ap->port_no); ap 49 drivers/ata/pata_jmicron.c int port = ap->port_no; ap 88 drivers/ata/pata_jmicron.c ap->cbl = ATA_CBL_PATA40; ap 90 drivers/ata/pata_jmicron.c ap->cbl = ATA_CBL_PATA80; ap 97 drivers/ata/pata_jmicron.c ap->cbl = ATA_CBL_PATA40; ap 99 drivers/ata/pata_jmicron.c ap->cbl = ATA_CBL_PATA80; ap 102 drivers/ata/pata_jmicron.c ap->cbl = ATA_CBL_SATA; ap 253 drivers/ata/pata_legacy.c static void pdc20230_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 296 drivers/ata/pata_legacy.c struct ata_port *ap = dev->link->ap; ap 301 drivers/ata/pata_legacy.c && (ap->pflags & ATA_PFLAG_PIO32)) { ap 307 drivers/ata/pata_legacy.c ioread8(ap->ioaddr.nsect_addr); ap 308 drivers/ata/pata_legacy.c ioread8(ap->ioaddr.nsect_addr); ap 309 drivers/ata/pata_legacy.c ioread8(ap->ioaddr.nsect_addr); ap 313 drivers/ata/pata_legacy.c ioread32_rep(ap->ioaddr.data_addr, buf, buflen >> 2); ap 315 drivers/ata/pata_legacy.c iowrite32_rep(ap->ioaddr.data_addr, buf, buflen >> 2); ap 320 drivers/ata/pata_legacy.c pad = cpu_to_le32(ioread32(ap->ioaddr.data_addr)); ap 324 drivers/ata/pata_legacy.c iowrite32(le32_to_cpu(pad), ap->ioaddr.data_addr); ap 348 drivers/ata/pata_legacy.c static void ht6560a_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 364 drivers/ata/pata_legacy.c iowrite8(recover << 4 | active, ap->ioaddr.device_addr); ap 365 drivers/ata/pata_legacy.c ioread8(ap->ioaddr.status_addr); ap 382 drivers/ata/pata_legacy.c static void ht6560b_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 398 drivers/ata/pata_legacy.c iowrite8(recover << 4 | active, ap->ioaddr.device_addr); ap 407 drivers/ata/pata_legacy.c ioread8(ap->ioaddr.status_addr); ap 445 drivers/ata/pata_legacy.c static void opti82c611a_set_piomode(struct ata_port *ap, ap 456 drivers/ata/pata_legacy.c ioread16(ap->ioaddr.error_addr); ap 457 drivers/ata/pata_legacy.c ioread16(ap->ioaddr.error_addr); ap 458 drivers/ata/pata_legacy.c iowrite8(3, ap->ioaddr.nsect_addr); ap 461 drivers/ata/pata_legacy.c clock = 1000000000 / khz[ioread8(ap->ioaddr.lbah_addr) & 0x03]; ap 479 drivers/ata/pata_legacy.c rc = ioread8(ap->ioaddr.lbal_addr); ap 482 drivers/ata/pata_legacy.c iowrite8(rc, ap->ioaddr.lbal_addr); ap 485 drivers/ata/pata_legacy.c iowrite8(active << 4 | recover, ap->ioaddr.error_addr); ap 489 drivers/ata/pata_legacy.c rc = ioread8(ap->ioaddr.device_addr); ap 493 drivers/ata/pata_legacy.c iowrite8(rc, ap->ioaddr.device_addr); ap 496 drivers/ata/pata_legacy.c iowrite8(active << 4 | recover, ap->ioaddr.data_addr); ap 499 drivers/ata/pata_legacy.c rc = ioread8(ap->ioaddr.lbal_addr); ap 502 drivers/ata/pata_legacy.c iowrite8(rc, ap->ioaddr.lbal_addr); ap 505 drivers/ata/pata_legacy.c iowrite8(0x83, ap->ioaddr.nsect_addr); ap 521 drivers/ata/pata_legacy.c static void opti82c46x_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 535 drivers/ata/pata_legacy.c ioread16(ap->ioaddr.error_addr); ap 536 drivers/ata/pata_legacy.c ioread16(ap->ioaddr.error_addr); ap 537 drivers/ata/pata_legacy.c iowrite8(3, ap->ioaddr.nsect_addr); ap 558 drivers/ata/pata_legacy.c rc = ioread8(ap->ioaddr.lbal_addr); ap 561 drivers/ata/pata_legacy.c iowrite8(rc, ap->ioaddr.lbal_addr); ap 564 drivers/ata/pata_legacy.c iowrite8(active << 4 | recover, ap->ioaddr.error_addr); ap 568 drivers/ata/pata_legacy.c rc = ioread8(ap->ioaddr.device_addr); ap 572 drivers/ata/pata_legacy.c iowrite8(rc, ap->ioaddr.device_addr); ap 575 drivers/ata/pata_legacy.c iowrite8(active << 4 | recover, ap->ioaddr.data_addr); ap 578 drivers/ata/pata_legacy.c rc = ioread8(ap->ioaddr.lbal_addr); ap 581 drivers/ata/pata_legacy.c iowrite8(rc, ap->ioaddr.lbal_addr); ap 584 drivers/ata/pata_legacy.c iowrite8(0x83, ap->ioaddr.nsect_addr); ap 587 drivers/ata/pata_legacy.c ap->host->private_data = ap; ap 607 drivers/ata/pata_legacy.c struct ata_port *ap = qc->ap; ap 612 drivers/ata/pata_legacy.c if (ap->host->private_data != ap->host ap 613 drivers/ata/pata_legacy.c && ap->host->private_data != NULL) ap 614 drivers/ata/pata_legacy.c opti82c46x_set_piomode(ap, adev); ap 638 drivers/ata/pata_legacy.c static void qdi65x0_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 641 drivers/ata/pata_legacy.c struct legacy_data *ld_qdi = ap->host->private_data; ap 661 drivers/ata/pata_legacy.c outb(timing, ld_qdi->timing + 2 * ap->port_no); ap 678 drivers/ata/pata_legacy.c struct ata_port *ap = qc->ap; ap 680 drivers/ata/pata_legacy.c struct legacy_data *ld_qdi = ap->host->private_data; ap 686 drivers/ata/pata_legacy.c 2 * ap->port_no); ap 697 drivers/ata/pata_legacy.c struct ata_port *ap = adev->link->ap; ap 701 drivers/ata/pata_legacy.c && (ap->pflags & ATA_PFLAG_PIO32)) { ap 703 drivers/ata/pata_legacy.c iowrite32_rep(ap->ioaddr.data_addr, buf, buflen >> 2); ap 705 drivers/ata/pata_legacy.c ioread32_rep(ap->ioaddr.data_addr, buf, buflen >> 2); ap 711 drivers/ata/pata_legacy.c iowrite32(le32_to_cpu(pad), ap->ioaddr.data_addr); ap 713 drivers/ata/pata_legacy.c pad = cpu_to_le32(ioread32(ap->ioaddr.data_addr)); ap 775 drivers/ata/pata_legacy.c static void winbond_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 778 drivers/ata/pata_legacy.c struct legacy_data *ld_winbond = ap->host->private_data; ap 781 drivers/ata/pata_legacy.c int timing = 0x88 + (ap->port_no * 4) + (adev->devno * 2); ap 941 drivers/ata/pata_legacy.c struct ata_port *ap; ap 972 drivers/ata/pata_legacy.c ap = host->ports[0]; ap 974 drivers/ata/pata_legacy.c ap->ops = ops; ap 975 drivers/ata/pata_legacy.c ap->pio_mask = pio_modes; ap 976 drivers/ata/pata_legacy.c ap->flags |= ATA_FLAG_SLAVE_POSS | iordy; ap 977 drivers/ata/pata_legacy.c ap->pflags |= controller->pflags; ap 978 drivers/ata/pata_legacy.c ap->ioaddr.cmd_addr = io_addr; ap 979 drivers/ata/pata_legacy.c ap->ioaddr.altstatus_addr = ctrl_addr; ap 980 drivers/ata/pata_legacy.c ap->ioaddr.ctl_addr = ctrl_addr; ap 981 drivers/ata/pata_legacy.c ata_sff_std_ports(&ap->ioaddr); ap 982 drivers/ata/pata_legacy.c ap->host->private_data = ld; ap 984 drivers/ata/pata_legacy.c ata_port_desc(ap, "cmd 0x%lx ctl 0x%lx", io, io + 0x0206); ap 996 drivers/ata/pata_legacy.c ata_for_each_dev(dev, &ap->link, ALL) { ap 369 drivers/ata/pata_macio.c static void pata_macio_apply_timings(struct ata_port *ap, unsigned int device) ap 371 drivers/ata/pata_macio.c struct pata_macio_priv *priv = ap->private_data; ap 372 drivers/ata/pata_macio.c void __iomem *rbase = ap->ioaddr.cmd_addr; ap 383 drivers/ata/pata_macio.c static void pata_macio_dev_select(struct ata_port *ap, unsigned int device) ap 385 drivers/ata/pata_macio.c ata_sff_dev_select(ap, device); ap 388 drivers/ata/pata_macio.c pata_macio_apply_timings(ap, device); ap 391 drivers/ata/pata_macio.c static void pata_macio_set_timings(struct ata_port *ap, ap 394 drivers/ata/pata_macio.c struct pata_macio_priv *priv = ap->private_data; ap 436 drivers/ata/pata_macio.c pata_macio_apply_timings(ap, adev->devno); ap 473 drivers/ata/pata_macio.c static int pata_macio_cable_detect(struct ata_port *ap) ap 475 drivers/ata/pata_macio.c struct pata_macio_priv *priv = ap->private_data; ap 516 drivers/ata/pata_macio.c struct ata_port *ap = qc->ap; ap 517 drivers/ata/pata_macio.c struct pata_macio_priv *priv = ap->private_data; ap 574 drivers/ata/pata_macio.c static void pata_macio_freeze(struct ata_port *ap) ap 576 drivers/ata/pata_macio.c struct dbdma_regs __iomem *dma_regs = ap->ioaddr.bmdma_addr; ap 587 drivers/ata/pata_macio.c ata_sff_freeze(ap); ap 593 drivers/ata/pata_macio.c struct ata_port *ap = qc->ap; ap 594 drivers/ata/pata_macio.c struct pata_macio_priv *priv = ap->private_data; ap 595 drivers/ata/pata_macio.c struct dbdma_regs __iomem *dma_regs = ap->ioaddr.bmdma_addr; ap 608 drivers/ata/pata_macio.c void __iomem *rbase = ap->ioaddr.cmd_addr; ap 617 drivers/ata/pata_macio.c ap->ops->sff_exec_command(ap, &qc->tf); ap 622 drivers/ata/pata_macio.c struct ata_port *ap = qc->ap; ap 623 drivers/ata/pata_macio.c struct pata_macio_priv *priv = ap->private_data; ap 624 drivers/ata/pata_macio.c struct dbdma_regs __iomem *dma_regs = ap->ioaddr.bmdma_addr; ap 635 drivers/ata/pata_macio.c struct ata_port *ap = qc->ap; ap 636 drivers/ata/pata_macio.c struct pata_macio_priv *priv = ap->private_data; ap 637 drivers/ata/pata_macio.c struct dbdma_regs __iomem *dma_regs = ap->ioaddr.bmdma_addr; ap 648 drivers/ata/pata_macio.c static u8 pata_macio_bmdma_status(struct ata_port *ap) ap 650 drivers/ata/pata_macio.c struct pata_macio_priv *priv = ap->private_data; ap 651 drivers/ata/pata_macio.c struct dbdma_regs __iomem *dma_regs = ap->ioaddr.bmdma_addr; ap 707 drivers/ata/pata_macio.c static int pata_macio_port_start(struct ata_port *ap) ap 709 drivers/ata/pata_macio.c struct pata_macio_priv *priv = ap->private_data; ap 711 drivers/ata/pata_macio.c if (ap->ioaddr.bmdma_addr == NULL) ap 725 drivers/ata/pata_macio.c ap->ioaddr.bmdma_addr = NULL; ap 726 drivers/ata/pata_macio.c ap->mwdma_mask = 0; ap 727 drivers/ata/pata_macio.c ap->udma_mask = 0; ap 732 drivers/ata/pata_macio.c static void pata_macio_irq_clear(struct ata_port *ap) ap 734 drivers/ata/pata_macio.c struct pata_macio_priv *priv = ap->private_data; ap 799 drivers/ata/pata_macio.c struct ata_port *ap = ata_shost_to_port(sdev->host); ap 800 drivers/ata/pata_macio.c struct pata_macio_priv *priv = ap->private_data; ap 811 drivers/ata/pata_macio.c dev = &ap->link.device[sdev->id]; ap 1229 drivers/ata/pata_macio.c struct ata_port *ap; ap 1236 drivers/ata/pata_macio.c ap = host->ports[0]; ap 1237 drivers/ata/pata_macio.c spin_lock_irqsave(ap->lock, flags); ap 1238 drivers/ata/pata_macio.c ehi = &ap->link.eh_info; ap 1242 drivers/ata/pata_macio.c ata_port_freeze(ap); ap 1245 drivers/ata/pata_macio.c ata_for_each_dev(dev, &ap->link, ALL) ap 1247 drivers/ata/pata_macio.c ata_port_abort(ap); ap 1249 drivers/ata/pata_macio.c spin_unlock_irqrestore(ap->lock, flags); ap 70 drivers/ata/pata_marvell.c struct ata_port *ap = link->ap; ap 71 drivers/ata/pata_marvell.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 73 drivers/ata/pata_marvell.c if (pdev->device == 0x6145 && ap->port_no == 0 && ap 80 drivers/ata/pata_marvell.c static int marvell_cable_detect(struct ata_port *ap) ap 83 drivers/ata/pata_marvell.c switch(ap->port_no) ap 86 drivers/ata/pata_marvell.c if (ioread8(ap->ioaddr.bmdma_addr + 1) & 1) ap 390 drivers/ata/pata_mpc52xx.c mpc52xx_ata_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 392 drivers/ata/pata_mpc52xx.c struct mpc52xx_ata_priv *priv = ap->host->private_data; ap 400 drivers/ata/pata_mpc52xx.c dev_err(ap->dev, "error: invalid PIO mode: %d\n", pio); ap 408 drivers/ata/pata_mpc52xx.c mpc52xx_ata_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 410 drivers/ata/pata_mpc52xx.c struct mpc52xx_ata_priv *priv = ap->host->private_data; ap 422 drivers/ata/pata_mpc52xx.c dev_alert(ap->dev, ap 432 drivers/ata/pata_mpc52xx.c mpc52xx_ata_dev_select(struct ata_port *ap, unsigned int device) ap 434 drivers/ata/pata_mpc52xx.c struct mpc52xx_ata_priv *priv = ap->host->private_data; ap 439 drivers/ata/pata_mpc52xx.c ata_sff_dev_select(ap, device); ap 445 drivers/ata/pata_mpc52xx.c struct ata_port *ap = qc->ap; ap 446 drivers/ata/pata_mpc52xx.c struct mpc52xx_ata_priv *priv = ap->host->private_data; ap 485 drivers/ata/pata_mpc52xx.c dev_alert(ap->dev, "dma table" ap 501 drivers/ata/pata_mpc52xx.c struct ata_port *ap = qc->ap; ap 502 drivers/ata/pata_mpc52xx.c struct mpc52xx_ata_priv *priv = ap->host->private_data; ap 509 drivers/ata/pata_mpc52xx.c dev_alert(ap->dev, "%s: %i, return 1?\n", ap 514 drivers/ata/pata_mpc52xx.c dev_alert(ap->dev, "%s: FIFO error detected: 0x%02x!\n", ap 551 drivers/ata/pata_mpc52xx.c ata_wait_idle(ap); ap 552 drivers/ata/pata_mpc52xx.c ap->ops->sff_exec_command(ap, &qc->tf); ap 558 drivers/ata/pata_mpc52xx.c struct ata_port *ap = qc->ap; ap 559 drivers/ata/pata_mpc52xx.c struct mpc52xx_ata_priv *priv = ap->host->private_data; ap 568 drivers/ata/pata_mpc52xx.c struct ata_port *ap = qc->ap; ap 569 drivers/ata/pata_mpc52xx.c struct mpc52xx_ata_priv *priv = ap->host->private_data; ap 577 drivers/ata/pata_mpc52xx.c dev_alert(ap->dev, "%s: FIFO error detected: 0x%02x!\n", ap 582 drivers/ata/pata_mpc52xx.c mpc52xx_bmdma_status(struct ata_port *ap) ap 584 drivers/ata/pata_mpc52xx.c struct mpc52xx_ata_priv *priv = ap->host->private_data; ap 588 drivers/ata/pata_mpc52xx.c dev_alert(ap->dev, "%s: FIFO error detected: 0x%02x!\n", ap 630 drivers/ata/pata_mpc52xx.c struct ata_port *ap; ap 637 drivers/ata/pata_mpc52xx.c ap = host->ports[0]; ap 638 drivers/ata/pata_mpc52xx.c ap->flags |= ATA_FLAG_SLAVE_POSS; ap 639 drivers/ata/pata_mpc52xx.c ap->pio_mask = ATA_PIO4; ap 640 drivers/ata/pata_mpc52xx.c ap->mwdma_mask = mwdma_mask; ap 641 drivers/ata/pata_mpc52xx.c ap->udma_mask = udma_mask; ap 642 drivers/ata/pata_mpc52xx.c ap->ops = &mpc52xx_ata_port_ops; ap 645 drivers/ata/pata_mpc52xx.c aio = &ap->ioaddr; ap 660 drivers/ata/pata_mpc52xx.c ata_port_desc(ap, "ata_regs 0x%lx", raw_ata_regs); ap 51 drivers/ata/pata_mpiix.c struct ata_port *ap = link->ap; ap 52 drivers/ata/pata_mpiix.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 76 drivers/ata/pata_mpiix.c static void mpiix_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 80 drivers/ata/pata_mpiix.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 109 drivers/ata/pata_mpiix.c ap->private_data = adev; ap 125 drivers/ata/pata_mpiix.c struct ata_port *ap = qc->ap; ap 133 drivers/ata/pata_mpiix.c if (adev->pio_mode && adev != ap->private_data) ap 134 drivers/ata/pata_mpiix.c mpiix_set_piomode(ap, adev); ap 156 drivers/ata/pata_mpiix.c struct ata_port *ap; ap 166 drivers/ata/pata_mpiix.c ap = host->ports[0]; ap 192 drivers/ata/pata_mpiix.c ata_port_desc(ap, "cmd 0x%x ctl 0x%x", cmd, ctl); ap 200 drivers/ata/pata_mpiix.c ap->ops = &mpiix_port_ops; ap 201 drivers/ata/pata_mpiix.c ap->pio_mask = ATA_PIO4; ap 202 drivers/ata/pata_mpiix.c ap->flags |= ATA_FLAG_SLAVE_POSS; ap 204 drivers/ata/pata_mpiix.c ap->ioaddr.cmd_addr = cmd_addr; ap 205 drivers/ata/pata_mpiix.c ap->ioaddr.ctl_addr = ctl_addr; ap 206 drivers/ata/pata_mpiix.c ap->ioaddr.altstatus_addr = ctl_addr; ap 209 drivers/ata/pata_mpiix.c ata_sff_std_ports(&ap->ioaddr); ap 59 drivers/ata/pata_ninja32.c static void ninja32_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 65 drivers/ata/pata_ninja32.c ap->ioaddr.bmdma_addr + 0x1f); ap 66 drivers/ata/pata_ninja32.c ap->private_data = adev; ap 70 drivers/ata/pata_ninja32.c static void ninja32_dev_select(struct ata_port *ap, unsigned int device) ap 72 drivers/ata/pata_ninja32.c struct ata_device *adev = &ap->link.device[device]; ap 73 drivers/ata/pata_ninja32.c if (ap->private_data != adev) { ap 74 drivers/ata/pata_ninja32.c iowrite8(0xd6, ap->ioaddr.bmdma_addr + 0x1f); ap 75 drivers/ata/pata_ninja32.c ata_sff_dev_select(ap, device); ap 76 drivers/ata/pata_ninja32.c ninja32_set_piomode(ap, adev); ap 106 drivers/ata/pata_ninja32.c struct ata_port *ap; ap 113 drivers/ata/pata_ninja32.c ap = host->ports[0]; ap 136 drivers/ata/pata_ninja32.c ap->ops = &ninja32_port_ops; ap 137 drivers/ata/pata_ninja32.c ap->pio_mask = ATA_PIO4; ap 138 drivers/ata/pata_ninja32.c ap->flags |= ATA_FLAG_SLAVE_POSS; ap 140 drivers/ata/pata_ninja32.c ap->ioaddr.cmd_addr = base + 0x10; ap 141 drivers/ata/pata_ninja32.c ap->ioaddr.ctl_addr = base + 0x1E; ap 142 drivers/ata/pata_ninja32.c ap->ioaddr.altstatus_addr = base + 0x1E; ap 143 drivers/ata/pata_ninja32.c ap->ioaddr.bmdma_addr = base; ap 144 drivers/ata/pata_ninja32.c ata_sff_std_ports(&ap->ioaddr); ap 145 drivers/ata/pata_ninja32.c ap->pflags |= ATA_PFLAG_PIO32 | ATA_PFLAG_PIO32CHANGE; ap 28 drivers/ata/pata_ns87410.c struct ata_port *ap = link->ap; ap 29 drivers/ata/pata_ns87410.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 35 drivers/ata/pata_ns87410.c if (!pci_test_config_bits(pdev, &ns87410_enable_bits[ap->port_no])) ap 50 drivers/ata/pata_ns87410.c static void ns87410_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 52 drivers/ata/pata_ns87410.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 53 drivers/ata/pata_ns87410.c int port = 0x40 + 4 * ap->port_no; ap 89 drivers/ata/pata_ns87410.c ap->private_data = adev; ap 103 drivers/ata/pata_ns87410.c struct ata_port *ap = qc->ap; ap 111 drivers/ata/pata_ns87410.c if (adev->pio_mode && adev != ap->private_data) ap 112 drivers/ata/pata_ns87410.c ns87410_set_piomode(ap, adev); ap 53 drivers/ata/pata_ns87415.c static void ns87415_set_mode(struct ata_port *ap, struct ata_device *adev, u8 mode) ap 55 drivers/ata/pata_ns87415.c struct pci_dev *dev = to_pci_dev(ap->host->dev); ap 56 drivers/ata/pata_ns87415.c int unit = 2 * ap->port_no + adev->devno; ap 108 drivers/ata/pata_ns87415.c static void ns87415_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 110 drivers/ata/pata_ns87415.c ns87415_set_mode(ap, adev, adev->pio_mode); ap 123 drivers/ata/pata_ns87415.c struct ata_port *ap = qc->ap; ap 129 drivers/ata/pata_ns87415.c iowrite32(ap->bmdma_prd_dma, ap->ioaddr.bmdma_addr + ATA_DMA_TABLE_OFS); ap 132 drivers/ata/pata_ns87415.c dmactl = ioread8(ap->ioaddr.bmdma_addr + ATA_DMA_CMD); ap 139 drivers/ata/pata_ns87415.c iowrite8(dmactl, ap->ioaddr.bmdma_addr + ATA_DMA_CMD); ap 141 drivers/ata/pata_ns87415.c ap->ops->sff_exec_command(ap, &qc->tf); ap 157 drivers/ata/pata_ns87415.c ns87415_set_mode(qc->ap, qc->dev, qc->dev->dma_mode); ap 171 drivers/ata/pata_ns87415.c ns87415_set_mode(qc->ap, qc->dev, qc->dev->pio_mode); ap 182 drivers/ata/pata_ns87415.c static void ns87415_irq_clear(struct ata_port *ap) ap 184 drivers/ata/pata_ns87415.c void __iomem *mmio = ap->ioaddr.bmdma_addr; ap 248 drivers/ata/pata_ns87415.c static u8 ns87560_check_status(struct ata_port *ap) ap 250 drivers/ata/pata_ns87415.c return ns87560_read_buggy(ap->ioaddr.status_addr); ap 264 drivers/ata/pata_ns87415.c void ns87560_tf_read(struct ata_port *ap, struct ata_taskfile *tf) ap 266 drivers/ata/pata_ns87415.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 268 drivers/ata/pata_ns87415.c tf->command = ns87560_check_status(ap); ap 284 drivers/ata/pata_ns87415.c ap->last_ctl = tf->ctl; ap 296 drivers/ata/pata_ns87415.c static u8 ns87560_bmdma_status(struct ata_port *ap) ap 298 drivers/ata/pata_ns87415.c return ns87560_read_buggy(ap->ioaddr.bmdma_addr + ATA_DMA_STATUS); ap 52 drivers/ata/pata_octeon_cf.c struct ata_port *ap; ap 129 drivers/ata/pata_octeon_cf.c static void octeon_cf_set_piomode(struct ata_port *ap, struct ata_device *dev) ap 131 drivers/ata/pata_octeon_cf.c struct octeon_cf_port *cf_port = ap->private_data; ap 214 drivers/ata/pata_octeon_cf.c static void octeon_cf_set_dmamode(struct ata_port *ap, struct ata_device *dev) ap 216 drivers/ata/pata_octeon_cf.c struct octeon_cf_port *cf_port = ap->private_data; ap 298 drivers/ata/pata_octeon_cf.c struct ata_port *ap = qc->dev->link->ap; ap 299 drivers/ata/pata_octeon_cf.c void __iomem *data_addr = ap->ioaddr.data_addr; ap 314 drivers/ata/pata_octeon_cf.c ioread8(ap->ioaddr.altstatus_addr); ap 337 drivers/ata/pata_octeon_cf.c struct ata_port *ap = qc->dev->link->ap; ap 338 drivers/ata/pata_octeon_cf.c void __iomem *data_addr = ap->ioaddr.data_addr; ap 353 drivers/ata/pata_octeon_cf.c ioread8(ap->ioaddr.altstatus_addr); ap 382 drivers/ata/pata_octeon_cf.c static void octeon_cf_tf_read16(struct ata_port *ap, struct ata_taskfile *tf) ap 386 drivers/ata/pata_octeon_cf.c void __iomem *base = ap->ioaddr.data_addr; ap 404 drivers/ata/pata_octeon_cf.c if (likely(ap->ioaddr.ctl_addr)) { ap 405 drivers/ata/pata_octeon_cf.c iowrite8(tf->ctl | ATA_HOB, ap->ioaddr.ctl_addr); ap 418 drivers/ata/pata_octeon_cf.c iowrite8(tf->ctl, ap->ioaddr.ctl_addr); ap 419 drivers/ata/pata_octeon_cf.c ap->last_ctl = tf->ctl; ap 426 drivers/ata/pata_octeon_cf.c static u8 octeon_cf_check_status16(struct ata_port *ap) ap 429 drivers/ata/pata_octeon_cf.c void __iomem *base = ap->ioaddr.data_addr; ap 438 drivers/ata/pata_octeon_cf.c struct ata_port *ap = link->ap; ap 439 drivers/ata/pata_octeon_cf.c void __iomem *base = ap->ioaddr.data_addr; ap 444 drivers/ata/pata_octeon_cf.c __raw_writew(ap->ctl, base + 0xe); ap 446 drivers/ata/pata_octeon_cf.c __raw_writew(ap->ctl | ATA_SRST, base + 0xe); ap 448 drivers/ata/pata_octeon_cf.c __raw_writew(ap->ctl, base + 0xe); ap 466 drivers/ata/pata_octeon_cf.c static void octeon_cf_tf_load16(struct ata_port *ap, ap 471 drivers/ata/pata_octeon_cf.c void __iomem *base = ap->ioaddr.data_addr; ap 473 drivers/ata/pata_octeon_cf.c if (tf->ctl != ap->last_ctl) { ap 474 drivers/ata/pata_octeon_cf.c iowrite8(tf->ctl, ap->ioaddr.ctl_addr); ap 475 drivers/ata/pata_octeon_cf.c ap->last_ctl = tf->ctl; ap 476 drivers/ata/pata_octeon_cf.c ata_wait_idle(ap); ap 500 drivers/ata/pata_octeon_cf.c ata_wait_idle(ap); ap 504 drivers/ata/pata_octeon_cf.c static void octeon_cf_dev_select(struct ata_port *ap, unsigned int device) ap 514 drivers/ata/pata_octeon_cf.c static void octeon_cf_exec_command16(struct ata_port *ap, ap 518 drivers/ata/pata_octeon_cf.c void __iomem *base = ap->ioaddr.data_addr; ap 528 drivers/ata/pata_octeon_cf.c DPRINTK("ata%u: cmd 0x%X\n", ap->print_id, tf->command); ap 533 drivers/ata/pata_octeon_cf.c ata_wait_idle(ap); ap 536 drivers/ata/pata_octeon_cf.c static void octeon_cf_ata_port_noaction(struct ata_port *ap) ap 542 drivers/ata/pata_octeon_cf.c struct ata_port *ap = qc->ap; ap 545 drivers/ata/pata_octeon_cf.c cf_port = ap->private_data; ap 550 drivers/ata/pata_octeon_cf.c ap->ops->sff_exec_command(ap, &qc->tf); ap 561 drivers/ata/pata_octeon_cf.c struct octeon_cf_port *cf_port = qc->ap->private_data; ap 621 drivers/ata/pata_octeon_cf.c static unsigned int octeon_cf_dma_finished(struct ata_port *ap, ap 624 drivers/ata/pata_octeon_cf.c struct ata_eh_info *ehi = &ap->link.eh_info; ap 625 drivers/ata/pata_octeon_cf.c struct octeon_cf_port *cf_port = ap->private_data; ap 631 drivers/ata/pata_octeon_cf.c ap->print_id, qc->tf.protocol, ap->hsm_task_state); ap 634 drivers/ata/pata_octeon_cf.c if (ap->hsm_task_state != HSM_ST_LAST) ap 641 drivers/ata/pata_octeon_cf.c ap->hsm_task_state = HSM_ST_ERR; ap 657 drivers/ata/pata_octeon_cf.c status = ap->ops->sff_check_status(ap); ap 659 drivers/ata/pata_octeon_cf.c ata_sff_hsm_move(ap, qc, status, 0); ap 684 drivers/ata/pata_octeon_cf.c struct ata_port *ap; ap 689 drivers/ata/pata_octeon_cf.c ap = host->ports[i]; ap 690 drivers/ata/pata_octeon_cf.c cf_port = ap->private_data; ap 695 drivers/ata/pata_octeon_cf.c qc = ata_qc_from_tag(ap, ap->link.active_tag); ap 712 drivers/ata/pata_octeon_cf.c status = ioread8(ap->ioaddr.altstatus_addr); ap 731 drivers/ata/pata_octeon_cf.c handled |= octeon_cf_dma_finished(ap, qc); ap 744 drivers/ata/pata_octeon_cf.c struct ata_port *ap = cf_port->ap; ap 745 drivers/ata/pata_octeon_cf.c struct ata_host *host = ap->host; ap 758 drivers/ata/pata_octeon_cf.c if (ap->hsm_task_state != HSM_ST_LAST || !cf_port->dma_finished) ap 761 drivers/ata/pata_octeon_cf.c status = ioread8(ap->ioaddr.altstatus_addr); ap 769 drivers/ata/pata_octeon_cf.c qc = ata_qc_from_tag(ap, ap->link.active_tag); ap 771 drivers/ata/pata_octeon_cf.c octeon_cf_dma_finished(ap, qc); ap 797 drivers/ata/pata_octeon_cf.c struct ata_port *ap = qc->ap; ap 803 drivers/ata/pata_octeon_cf.c ap->ops->sff_tf_load(ap, &qc->tf); /* load tf registers */ ap 806 drivers/ata/pata_octeon_cf.c ap->hsm_task_state = HSM_ST_LAST; ap 810 drivers/ata/pata_octeon_cf.c dev_err(ap->dev, "Error, ATAPI not supported\n"); ap 846 drivers/ata/pata_octeon_cf.c struct ata_port *ap; ap 938 drivers/ata/pata_octeon_cf.c ap = host->ports[0]; ap 939 drivers/ata/pata_octeon_cf.c ap->private_data = cf_port; ap 941 drivers/ata/pata_octeon_cf.c cf_port->ap = ap; ap 942 drivers/ata/pata_octeon_cf.c ap->ops = &octeon_cf_ops; ap 943 drivers/ata/pata_octeon_cf.c ap->pio_mask = ATA_PIO6; ap 944 drivers/ata/pata_octeon_cf.c ap->flags |= ATA_FLAG_NO_ATAPI | ATA_FLAG_PIO_POLLING; ap 948 drivers/ata/pata_octeon_cf.c ap->ioaddr.cmd_addr = base; ap 949 drivers/ata/pata_octeon_cf.c ata_sff_std_ports(&ap->ioaddr); ap 951 drivers/ata/pata_octeon_cf.c ap->ioaddr.altstatus_addr = base + 0xe; ap 952 drivers/ata/pata_octeon_cf.c ap->ioaddr.ctl_addr = base + 0xe; ap 956 drivers/ata/pata_octeon_cf.c ap->ioaddr.cmd_addr = base + (ATA_REG_CMD << 1) + 1; ap 957 drivers/ata/pata_octeon_cf.c ap->ioaddr.data_addr = base + (ATA_REG_DATA << 1); ap 958 drivers/ata/pata_octeon_cf.c ap->ioaddr.error_addr = base + (ATA_REG_ERR << 1) + 1; ap 959 drivers/ata/pata_octeon_cf.c ap->ioaddr.feature_addr = base + (ATA_REG_FEATURE << 1) + 1; ap 960 drivers/ata/pata_octeon_cf.c ap->ioaddr.nsect_addr = base + (ATA_REG_NSECT << 1) + 1; ap 961 drivers/ata/pata_octeon_cf.c ap->ioaddr.lbal_addr = base + (ATA_REG_LBAL << 1) + 1; ap 962 drivers/ata/pata_octeon_cf.c ap->ioaddr.lbam_addr = base + (ATA_REG_LBAM << 1) + 1; ap 963 drivers/ata/pata_octeon_cf.c ap->ioaddr.lbah_addr = base + (ATA_REG_LBAH << 1) + 1; ap 964 drivers/ata/pata_octeon_cf.c ap->ioaddr.device_addr = base + (ATA_REG_DEVICE << 1) + 1; ap 965 drivers/ata/pata_octeon_cf.c ap->ioaddr.status_addr = base + (ATA_REG_STATUS << 1) + 1; ap 966 drivers/ata/pata_octeon_cf.c ap->ioaddr.command_addr = base + (ATA_REG_CMD << 1) + 1; ap 967 drivers/ata/pata_octeon_cf.c ap->ioaddr.altstatus_addr = cs1 + (6 << 1) + 1; ap 968 drivers/ata/pata_octeon_cf.c ap->ioaddr.ctl_addr = cs1 + (6 << 1) + 1; ap 971 drivers/ata/pata_octeon_cf.c ap->mwdma_mask = enable_dma ? ATA_MWDMA4 : 0; ap 987 drivers/ata/pata_octeon_cf.c ap->ioaddr.data_addr = base + ATA_REG_DATA; ap 988 drivers/ata/pata_octeon_cf.c ap->ioaddr.nsect_addr = base + ATA_REG_NSECT; ap 989 drivers/ata/pata_octeon_cf.c ap->ioaddr.lbal_addr = base + ATA_REG_LBAL; ap 990 drivers/ata/pata_octeon_cf.c ap->ioaddr.ctl_addr = base + 0xe; ap 991 drivers/ata/pata_octeon_cf.c ap->ioaddr.altstatus_addr = base + 0xe; ap 993 drivers/ata/pata_octeon_cf.c cf_port->c0 = ap->ioaddr.ctl_addr; ap 999 drivers/ata/pata_octeon_cf.c ata_port_desc(ap, "cmd %p ctl %p", base, ap->ioaddr.ctl_addr); ap 40 drivers/ata/pata_oldpiix.c struct ata_port *ap = link->ap; ap 41 drivers/ata/pata_oldpiix.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 47 drivers/ata/pata_oldpiix.c if (!pci_test_config_bits(pdev, &oldpiix_enable_bits[ap->port_no])) ap 64 drivers/ata/pata_oldpiix.c static void oldpiix_set_piomode (struct ata_port *ap, struct ata_device *adev) ap 67 drivers/ata/pata_oldpiix.c struct pci_dev *dev = to_pci_dev(ap->host->dev); ap 68 drivers/ata/pata_oldpiix.c unsigned int idetm_port= ap->port_no ? 0x42 : 0x40; ap 112 drivers/ata/pata_oldpiix.c ap->private_data = adev; ap 126 drivers/ata/pata_oldpiix.c static void oldpiix_set_dmamode (struct ata_port *ap, struct ata_device *adev) ap 128 drivers/ata/pata_oldpiix.c struct pci_dev *dev = to_pci_dev(ap->host->dev); ap 129 drivers/ata/pata_oldpiix.c u8 idetm_port = ap->port_no ? 0x42 : 0x40; ap 179 drivers/ata/pata_oldpiix.c ap->private_data = adev; ap 195 drivers/ata/pata_oldpiix.c struct ata_port *ap = qc->ap; ap 198 drivers/ata/pata_oldpiix.c if (adev != ap->private_data) { ap 199 drivers/ata/pata_oldpiix.c oldpiix_set_piomode(ap, adev); ap 201 drivers/ata/pata_oldpiix.c oldpiix_set_dmamode(ap, adev); ap 56 drivers/ata/pata_opti.c struct ata_port *ap = link->ap; ap 57 drivers/ata/pata_opti.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 63 drivers/ata/pata_opti.c if (!pci_test_config_bits(pdev, &opti_enable_bits[ap->port_no])) ap 81 drivers/ata/pata_opti.c static void opti_write_reg(struct ata_port *ap, u8 val, int reg) ap 83 drivers/ata/pata_opti.c void __iomem *regio = ap->ioaddr.cmd_addr; ap 107 drivers/ata/pata_opti.c static void opti_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 112 drivers/ata/pata_opti.c void __iomem *regio = ap->ioaddr.cmd_addr; ap 142 drivers/ata/pata_opti.c opti_write_reg(ap, adev->devno, MISC_REG); ap 143 drivers/ata/pata_opti.c opti_write_reg(ap, data_rec_timing[clock][pio], READ_REG); ap 144 drivers/ata/pata_opti.c opti_write_reg(ap, data_rec_timing[clock][pio], WRITE_REG); ap 145 drivers/ata/pata_opti.c opti_write_reg(ap, addr, MISC_REG); ap 148 drivers/ata/pata_opti.c opti_write_reg(ap, 0x85, CNTRL_REG); ap 57 drivers/ata/pata_optidma.c struct ata_port *ap = link->ap; ap 58 drivers/ata/pata_optidma.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 63 drivers/ata/pata_optidma.c if (ap->port_no && !pci_test_config_bits(pdev, &optidma_enable_bits)) ap 77 drivers/ata/pata_optidma.c static void optidma_unlock(struct ata_port *ap) ap 79 drivers/ata/pata_optidma.c void __iomem *regio = ap->ioaddr.cmd_addr; ap 94 drivers/ata/pata_optidma.c static void optidma_lock(struct ata_port *ap) ap 96 drivers/ata/pata_optidma.c void __iomem *regio = ap->ioaddr.cmd_addr; ap 116 drivers/ata/pata_optidma.c static void optidma_mode_setup(struct ata_port *ap, struct ata_device *adev, u8 mode) ap 121 drivers/ata/pata_optidma.c void __iomem *regio = ap->ioaddr.cmd_addr; ap 139 drivers/ata/pata_optidma.c optidma_unlock(ap); ap 182 drivers/ata/pata_optidma.c optidma_lock(ap); ap 201 drivers/ata/pata_optidma.c static void optiplus_mode_setup(struct ata_port *ap, struct ata_device *adev, u8 mode) ap 203 drivers/ata/pata_optidma.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 207 drivers/ata/pata_optidma.c int unit = 2 * ap->port_no + adev->devno; ap 213 drivers/ata/pata_optidma.c optidma_mode_setup(ap, adev, adev->dma_mode); ap 216 drivers/ata/pata_optidma.c if (ap->port_no) { ap 239 drivers/ata/pata_optidma.c static void optidma_set_pio_mode(struct ata_port *ap, struct ata_device *adev) ap 241 drivers/ata/pata_optidma.c optidma_mode_setup(ap, adev, adev->pio_mode); ap 254 drivers/ata/pata_optidma.c static void optidma_set_dma_mode(struct ata_port *ap, struct ata_device *adev) ap 256 drivers/ata/pata_optidma.c optidma_mode_setup(ap, adev, adev->dma_mode); ap 269 drivers/ata/pata_optidma.c static void optiplus_set_pio_mode(struct ata_port *ap, struct ata_device *adev) ap 271 drivers/ata/pata_optidma.c optiplus_mode_setup(ap, adev, adev->pio_mode); ap 284 drivers/ata/pata_optidma.c static void optiplus_set_dma_mode(struct ata_port *ap, struct ata_device *adev) ap 286 drivers/ata/pata_optidma.c optiplus_mode_setup(ap, adev, adev->dma_mode); ap 320 drivers/ata/pata_optidma.c struct ata_port *ap = link->ap; ap 322 drivers/ata/pata_optidma.c int nybble = 4 * ap->port_no; ap 323 drivers/ata/pata_optidma.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 51 drivers/ata/pata_palmld.c struct ata_port *ap; ap 87 drivers/ata/pata_palmld.c ap = lda->host->ports[0]; ap 88 drivers/ata/pata_palmld.c ap->ops = &palmld_port_ops; ap 89 drivers/ata/pata_palmld.c ap->pio_mask = ATA_PIO4; ap 90 drivers/ata/pata_palmld.c ap->flags |= ATA_FLAG_PIO_POLLING; ap 93 drivers/ata/pata_palmld.c ap->ioaddr.cmd_addr = mem + 0x10; ap 94 drivers/ata/pata_palmld.c ap->ioaddr.altstatus_addr = mem + 0xe; ap 95 drivers/ata/pata_palmld.c ap->ioaddr.ctl_addr = mem + 0xe; ap 98 drivers/ata/pata_palmld.c ata_sff_std_ports(&ap->ioaddr); ap 94 drivers/ata/pata_pcmcia.c struct ata_port *ap = qc->dev->link->ap; ap 97 drivers/ata/pata_pcmcia.c ioread8_rep(ap->ioaddr.data_addr, buf, buflen); ap 99 drivers/ata/pata_pcmcia.c iowrite8_rep(ap->ioaddr.data_addr, buf, buflen); ap 117 drivers/ata/pata_pcmcia.c struct ata_port *ap; ap 123 drivers/ata/pata_pcmcia.c ap = qc->ap; ap 126 drivers/ata/pata_pcmcia.c for (count = 0; (ap->ops->sff_check_status(ap) & ATA_DRQ) ap 128 drivers/ata/pata_pcmcia.c ioread8(ap->ioaddr.data_addr); ap 131 drivers/ata/pata_pcmcia.c ata_port_warn(ap, "drained %d bytes to clear DRQ\n", count); ap 189 drivers/ata/pata_pcmcia.c struct ata_port *ap; ap 253 drivers/ata/pata_pcmcia.c ap = host->ports[p]; ap 255 drivers/ata/pata_pcmcia.c ap->ops = ops; ap 256 drivers/ata/pata_pcmcia.c ap->pio_mask = ATA_PIO0; /* ISA so PIO 0 cycles */ ap 257 drivers/ata/pata_pcmcia.c ap->flags |= ATA_FLAG_SLAVE_POSS; ap 258 drivers/ata/pata_pcmcia.c ap->ioaddr.cmd_addr = io_addr + 0x10 * p; ap 259 drivers/ata/pata_pcmcia.c ap->ioaddr.altstatus_addr = ctl_addr + 0x10 * p; ap 260 drivers/ata/pata_pcmcia.c ap->ioaddr.ctl_addr = ctl_addr + 0x10 * p; ap 261 drivers/ata/pata_pcmcia.c ata_sff_std_ports(&ap->ioaddr); ap 263 drivers/ata/pata_pcmcia.c ata_port_desc(ap, "cmd 0x%lx ctl 0x%lx", io_base, ctl_base); ap 64 drivers/ata/pata_pdc2027x.c static void pdc2027x_set_piomode(struct ata_port *ap, struct ata_device *adev); ap 65 drivers/ata/pata_pdc2027x.c static void pdc2027x_set_dmamode(struct ata_port *ap, struct ata_device *adev); ap 68 drivers/ata/pata_pdc2027x.c static int pdc2027x_cable_detect(struct ata_port *ap); ap 181 drivers/ata/pata_pdc2027x.c static inline void __iomem *port_mmio(struct ata_port *ap, unsigned int offset) ap 183 drivers/ata/pata_pdc2027x.c return ap->host->iomap[PDC_MMIO_BAR] + ap->port_no * 0x100 + offset; ap 192 drivers/ata/pata_pdc2027x.c static inline void __iomem *dev_mmio(struct ata_port *ap, struct ata_device *adev, unsigned int offset) ap 195 drivers/ata/pata_pdc2027x.c return port_mmio(ap, offset) + adj; ap 208 drivers/ata/pata_pdc2027x.c static int pdc2027x_cable_detect(struct ata_port *ap) ap 213 drivers/ata/pata_pdc2027x.c cgcr = ioread32(port_mmio(ap, PDC_GLOBAL_CTL)); ap 217 drivers/ata/pata_pdc2027x.c PDPRINTK("No cable or 80-conductor cable on port %d\n", ap->port_no); ap 221 drivers/ata/pata_pdc2027x.c printk(KERN_INFO DRV_NAME ": 40-conductor cable detected on port %d\n", ap->port_no); ap 229 drivers/ata/pata_pdc2027x.c static inline int pdc2027x_port_enabled(struct ata_port *ap) ap 231 drivers/ata/pata_pdc2027x.c return ioread8(port_mmio(ap, PDC_ATA_CTL)) & 0x02; ap 248 drivers/ata/pata_pdc2027x.c if (!pdc2027x_port_enabled(link->ap)) ap 290 drivers/ata/pata_pdc2027x.c static void pdc2027x_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 307 drivers/ata/pata_pdc2027x.c ctcr0 = ioread32(dev_mmio(ap, adev, PDC_CTCR0)); ap 311 drivers/ata/pata_pdc2027x.c iowrite32(ctcr0, dev_mmio(ap, adev, PDC_CTCR0)); ap 313 drivers/ata/pata_pdc2027x.c ctcr1 = ioread32(dev_mmio(ap, adev, PDC_CTCR1)); ap 316 drivers/ata/pata_pdc2027x.c iowrite32(ctcr1, dev_mmio(ap, adev, PDC_CTCR1)); ap 333 drivers/ata/pata_pdc2027x.c static void pdc2027x_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 349 drivers/ata/pata_pdc2027x.c ctcr1 = ioread32(dev_mmio(ap, adev, PDC_CTCR1)); ap 350 drivers/ata/pata_pdc2027x.c iowrite32(ctcr1 & ~(1 << 7), dev_mmio(ap, adev, PDC_CTCR1)); ap 355 drivers/ata/pata_pdc2027x.c ctcr1 = ioread32(dev_mmio(ap, adev, PDC_CTCR1)); ap 360 drivers/ata/pata_pdc2027x.c iowrite32(ctcr1, dev_mmio(ap, adev, PDC_CTCR1)); ap 372 drivers/ata/pata_pdc2027x.c ctcr0 = ioread32(dev_mmio(ap, adev, PDC_CTCR0)); ap 378 drivers/ata/pata_pdc2027x.c iowrite32(ctcr0, dev_mmio(ap, adev, PDC_CTCR0)); ap 398 drivers/ata/pata_pdc2027x.c struct ata_port *ap = link->ap; ap 407 drivers/ata/pata_pdc2027x.c pdc2027x_set_piomode(ap, dev); ap 413 drivers/ata/pata_pdc2027x.c u32 ctcr1 = ioread32(dev_mmio(ap, dev, PDC_CTCR1)); ap 415 drivers/ata/pata_pdc2027x.c iowrite32(ctcr1, dev_mmio(ap, dev, PDC_CTCR1)); ap 419 drivers/ata/pata_pdc2027x.c pdc2027x_set_dmamode(ap, dev); ap 732 drivers/ata/pata_pdc2027x.c struct ata_port *ap = host->ports[i]; ap 734 drivers/ata/pata_pdc2027x.c pdc_ata_setup_port(&ap->ioaddr, mmio_base + cmd_offset[i]); ap 735 drivers/ata/pata_pdc2027x.c ap->ioaddr.bmdma_addr = mmio_base + bmdma_offset[i]; ap 737 drivers/ata/pata_pdc2027x.c ata_port_pbar_desc(ap, PDC_MMIO_BAR, -1, "mmio"); ap 738 drivers/ata/pata_pdc2027x.c ata_port_pbar_desc(ap, PDC_MMIO_BAR, cmd_offset[i], "cmd"); ap 27 drivers/ata/pata_pdc202xx_old.c static int pdc2026x_cable_detect(struct ata_port *ap) ap 29 drivers/ata/pata_pdc202xx_old.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 33 drivers/ata/pata_pdc202xx_old.c if (cis & (1 << (10 + ap->port_no))) ap 38 drivers/ata/pata_pdc202xx_old.c static void pdc202xx_exec_command(struct ata_port *ap, ap 41 drivers/ata/pata_pdc202xx_old.c DPRINTK("ata%u: cmd 0x%X\n", ap->print_id, tf->command); ap 43 drivers/ata/pata_pdc202xx_old.c iowrite8(tf->command, ap->ioaddr.command_addr); ap 47 drivers/ata/pata_pdc202xx_old.c static bool pdc202xx_irq_check(struct ata_port *ap) ap 49 drivers/ata/pata_pdc202xx_old.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 53 drivers/ata/pata_pdc202xx_old.c if (ap->port_no) { ap 79 drivers/ata/pata_pdc202xx_old.c static void pdc202xx_configure_piomode(struct ata_port *ap, struct ata_device *adev, int pio) ap 81 drivers/ata/pata_pdc202xx_old.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 82 drivers/ata/pata_pdc202xx_old.c int port = 0x60 + 8 * ap->port_no + 4 * adev->devno; ap 112 drivers/ata/pata_pdc202xx_old.c static void pdc202xx_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 114 drivers/ata/pata_pdc202xx_old.c pdc202xx_configure_piomode(ap, adev, adev->pio_mode - XFER_PIO_0); ap 126 drivers/ata/pata_pdc202xx_old.c static void pdc202xx_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 128 drivers/ata/pata_pdc202xx_old.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 129 drivers/ata/pata_pdc202xx_old.c int port = 0x60 + 8 * ap->port_no + 4 * adev->devno; ap 179 drivers/ata/pata_pdc202xx_old.c struct ata_port *ap = qc->ap; ap 182 drivers/ata/pata_pdc202xx_old.c int sel66 = ap->port_no ? 0x08: 0x02; ap 184 drivers/ata/pata_pdc202xx_old.c void __iomem *master = ap->host->ports[0]->ioaddr.bmdma_addr; ap 186 drivers/ata/pata_pdc202xx_old.c void __iomem *atapi_reg = master + 0x20 + (4 * ap->port_no); ap 198 drivers/ata/pata_pdc202xx_old.c pdc202xx_set_dmamode(ap, qc->dev); ap 229 drivers/ata/pata_pdc202xx_old.c struct ata_port *ap = qc->ap; ap 233 drivers/ata/pata_pdc202xx_old.c int sel66 = ap->port_no ? 0x08: 0x02; ap 235 drivers/ata/pata_pdc202xx_old.c void __iomem *master = ap->host->ports[0]->ioaddr.bmdma_addr; ap 237 drivers/ata/pata_pdc202xx_old.c void __iomem *atapi_reg = master + 0x20 + (4 * ap->port_no); ap 248 drivers/ata/pata_pdc202xx_old.c pdc202xx_set_piomode(ap, adev); ap 265 drivers/ata/pata_pdc202xx_old.c static int pdc2026x_port_start(struct ata_port *ap) ap 267 drivers/ata/pata_pdc202xx_old.c void __iomem *bmdma = ap->ioaddr.bmdma_addr; ap 273 drivers/ata/pata_pdc202xx_old.c return ata_bmdma_port_start(ap); ap 31 drivers/ata/pata_piccolo.c static void tosh_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 36 drivers/ata/pata_piccolo.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 44 drivers/ata/pata_piccolo.c static void tosh_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 46 drivers/ata/pata_piccolo.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 101 drivers/ata/pata_platform.c struct ata_port *ap; ap 126 drivers/ata/pata_platform.c ap = host->ports[0]; ap 128 drivers/ata/pata_platform.c ap->ops = devm_kzalloc(dev, sizeof(*ap->ops), GFP_KERNEL); ap 129 drivers/ata/pata_platform.c ap->ops->inherits = &ata_sff_port_ops; ap 130 drivers/ata/pata_platform.c ap->ops->cable_detect = ata_cable_unknown; ap 131 drivers/ata/pata_platform.c ap->ops->set_mode = pata_platform_set_mode; ap 133 drivers/ata/pata_platform.c ap->ops->sff_data_xfer = ata_sff_data_xfer; ap 135 drivers/ata/pata_platform.c ap->ops->sff_data_xfer = ata_sff_data_xfer32; ap 137 drivers/ata/pata_platform.c ap->pio_mask = __pio_mask; ap 138 drivers/ata/pata_platform.c ap->flags |= ATA_FLAG_SLAVE_POSS; ap 144 drivers/ata/pata_platform.c ap->flags |= ATA_FLAG_PIO_POLLING; ap 145 drivers/ata/pata_platform.c ata_port_desc(ap, "no IRQ, using PIO polling"); ap 152 drivers/ata/pata_platform.c ap->ioaddr.cmd_addr = devm_ioremap(dev, io_res->start, ap 154 drivers/ata/pata_platform.c ap->ioaddr.ctl_addr = devm_ioremap(dev, ctl_res->start, ap 157 drivers/ata/pata_platform.c ap->ioaddr.cmd_addr = devm_ioport_map(dev, io_res->start, ap 159 drivers/ata/pata_platform.c ap->ioaddr.ctl_addr = devm_ioport_map(dev, ctl_res->start, ap 162 drivers/ata/pata_platform.c if (!ap->ioaddr.cmd_addr || !ap->ioaddr.ctl_addr) { ap 167 drivers/ata/pata_platform.c ap->ioaddr.altstatus_addr = ap->ioaddr.ctl_addr; ap 169 drivers/ata/pata_platform.c pata_platform_setup_port(&ap->ioaddr, ioport_shift); ap 171 drivers/ata/pata_platform.c ata_port_desc(ap, "%s cmd 0x%llx ctl 0x%llx", mmio ? "mmio" : "ioport", ap 49 drivers/ata/pata_pxa.c struct pata_pxa_data *pd = qc->ap->private_data; ap 74 drivers/ata/pata_pxa.c qc->ap->ops->sff_exec_command(qc->ap, &qc->tf); ap 82 drivers/ata/pata_pxa.c struct pata_pxa_data *pd = qc->ap->private_data; ap 92 drivers/ata/pata_pxa.c struct pata_pxa_data *pd = qc->ap->private_data; ap 107 drivers/ata/pata_pxa.c static unsigned char pxa_bmdma_status(struct ata_port *ap) ap 109 drivers/ata/pata_pxa.c struct pata_pxa_data *pd = ap->private_data; ap 124 drivers/ata/pata_pxa.c static void pxa_irq_clear(struct ata_port *ap) ap 160 drivers/ata/pata_pxa.c struct ata_port *ap; ap 217 drivers/ata/pata_pxa.c ap = host->ports[0]; ap 218 drivers/ata/pata_pxa.c ap->ops = &pxa_ata_port_ops; ap 219 drivers/ata/pata_pxa.c ap->pio_mask = ATA_PIO4; ap 220 drivers/ata/pata_pxa.c ap->mwdma_mask = ATA_MWDMA2; ap 222 drivers/ata/pata_pxa.c ap->ioaddr.cmd_addr = devm_ioremap(&pdev->dev, cmd_res->start, ap 224 drivers/ata/pata_pxa.c ap->ioaddr.ctl_addr = devm_ioremap(&pdev->dev, ctl_res->start, ap 226 drivers/ata/pata_pxa.c ap->ioaddr.bmdma_addr = devm_ioremap(&pdev->dev, dma_res->start, ap 232 drivers/ata/pata_pxa.c ap->ioaddr.altstatus_addr = ap->ioaddr.ctl_addr; ap 233 drivers/ata/pata_pxa.c ap->ioaddr.data_addr = ap->ioaddr.cmd_addr + ap 235 drivers/ata/pata_pxa.c ap->ioaddr.error_addr = ap->ioaddr.cmd_addr + ap 237 drivers/ata/pata_pxa.c ap->ioaddr.feature_addr = ap->ioaddr.cmd_addr + ap 239 drivers/ata/pata_pxa.c ap->ioaddr.nsect_addr = ap->ioaddr.cmd_addr + ap 241 drivers/ata/pata_pxa.c ap->ioaddr.lbal_addr = ap->ioaddr.cmd_addr + ap 243 drivers/ata/pata_pxa.c ap->ioaddr.lbam_addr = ap->ioaddr.cmd_addr + ap 245 drivers/ata/pata_pxa.c ap->ioaddr.lbah_addr = ap->ioaddr.cmd_addr + ap 247 drivers/ata/pata_pxa.c ap->ioaddr.device_addr = ap->ioaddr.cmd_addr + ap 249 drivers/ata/pata_pxa.c ap->ioaddr.status_addr = ap->ioaddr.cmd_addr + ap 251 drivers/ata/pata_pxa.c ap->ioaddr.command_addr = ap->ioaddr.cmd_addr + ap 262 drivers/ata/pata_pxa.c ap->private_data = data; ap 40 drivers/ata/pata_radisys.c static void radisys_set_piomode (struct ata_port *ap, struct ata_device *adev) ap 43 drivers/ata/pata_radisys.c struct pci_dev *dev = to_pci_dev(ap->host->dev); ap 77 drivers/ata/pata_radisys.c ap->private_data = adev; ap 91 drivers/ata/pata_radisys.c static void radisys_set_dmamode (struct ata_port *ap, struct ata_device *adev) ap 93 drivers/ata/pata_radisys.c struct pci_dev *dev = to_pci_dev(ap->host->dev); ap 154 drivers/ata/pata_radisys.c ap->private_data = adev; ap 170 drivers/ata/pata_radisys.c struct ata_port *ap = qc->ap; ap 173 drivers/ata/pata_radisys.c if (adev != ap->private_data) { ap 177 drivers/ata/pata_radisys.c radisys_set_dmamode(ap, adev); ap 179 drivers/ata/pata_radisys.c radisys_set_piomode(ap, adev); ap 85 drivers/ata/pata_rb532_cf.c struct ata_port *ap; ap 87 drivers/ata/pata_rb532_cf.c ap = ah->ports[0]; ap 89 drivers/ata/pata_rb532_cf.c ap->ops = &rb532_pata_port_ops; ap 90 drivers/ata/pata_rb532_cf.c ap->pio_mask = ATA_PIO4; ap 92 drivers/ata/pata_rb532_cf.c ap->ioaddr.cmd_addr = info->iobase + RB500_CF_REG_BASE; ap 93 drivers/ata/pata_rb532_cf.c ap->ioaddr.ctl_addr = info->iobase + RB500_CF_REG_CTRL; ap 94 drivers/ata/pata_rb532_cf.c ap->ioaddr.altstatus_addr = info->iobase + RB500_CF_REG_CTRL; ap 96 drivers/ata/pata_rb532_cf.c ata_sff_std_ports(&ap->ioaddr); ap 98 drivers/ata/pata_rb532_cf.c ap->ioaddr.data_addr = info->iobase + RB500_CF_REG_DBUF32; ap 99 drivers/ata/pata_rb532_cf.c ap->ioaddr.error_addr = info->iobase + RB500_CF_REG_ERR; ap 40 drivers/ata/pata_rdc.c static int rdc_pata_cable_detect(struct ata_port *ap) ap 42 drivers/ata/pata_rdc.c struct rdc_host_priv *hpriv = ap->host->private_data; ap 46 drivers/ata/pata_rdc.c mask = 0x30 << (2 * ap->port_no); ap 62 drivers/ata/pata_rdc.c struct ata_port *ap = link->ap; ap 63 drivers/ata/pata_rdc.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 70 drivers/ata/pata_rdc.c if (!pci_test_config_bits(pdev, &rdc_enable_bits[ap->port_no])) ap 88 drivers/ata/pata_rdc.c static void rdc_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 91 drivers/ata/pata_rdc.c struct pci_dev *dev = to_pci_dev(ap->host->dev); ap 94 drivers/ata/pata_rdc.c unsigned int master_port= ap->port_no ? 0x42 : 0x40; ap 131 drivers/ata/pata_rdc.c slave_data &= (ap->port_no ? 0x0f : 0xf0); ap 134 drivers/ata/pata_rdc.c << (ap->port_no ? 4 : 0); ap 153 drivers/ata/pata_rdc.c udma_enable &= ~(1 << (2 * ap->port_no + adev->devno)); ap 170 drivers/ata/pata_rdc.c static void rdc_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 172 drivers/ata/pata_rdc.c struct pci_dev *dev = to_pci_dev(ap->host->dev); ap 174 drivers/ata/pata_rdc.c u8 master_port = ap->port_no ? 0x42 : 0x40; ap 177 drivers/ata/pata_rdc.c int devid = adev->devno + 2 * ap->port_no; ap 253 drivers/ata/pata_rdc.c slave_data &= (ap->port_no ? 0x0f : 0xf0); ap 255 drivers/ata/pata_rdc.c slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) << (ap->port_no ? 4 : 0); ap 103 drivers/ata/pata_samsung_cf.c static void pata_s3c_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 105 drivers/ata/pata_samsung_cf.c struct s3c_ide_info *info = ap->host->private_data; ap 175 drivers/ata/pata_samsung_cf.c static void pata_s3c_tf_load(struct ata_port *ap, ap 178 drivers/ata/pata_samsung_cf.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 181 drivers/ata/pata_samsung_cf.c if (tf->ctl != ap->last_ctl) { ap 182 drivers/ata/pata_samsung_cf.c ata_outb(ap->host, tf->ctl, ioaddr->ctl_addr); ap 183 drivers/ata/pata_samsung_cf.c ap->last_ctl = tf->ctl; ap 184 drivers/ata/pata_samsung_cf.c ata_wait_idle(ap); ap 188 drivers/ata/pata_samsung_cf.c ata_outb(ap->host, tf->hob_feature, ioaddr->feature_addr); ap 189 drivers/ata/pata_samsung_cf.c ata_outb(ap->host, tf->hob_nsect, ioaddr->nsect_addr); ap 190 drivers/ata/pata_samsung_cf.c ata_outb(ap->host, tf->hob_lbal, ioaddr->lbal_addr); ap 191 drivers/ata/pata_samsung_cf.c ata_outb(ap->host, tf->hob_lbam, ioaddr->lbam_addr); ap 192 drivers/ata/pata_samsung_cf.c ata_outb(ap->host, tf->hob_lbah, ioaddr->lbah_addr); ap 196 drivers/ata/pata_samsung_cf.c ata_outb(ap->host, tf->feature, ioaddr->feature_addr); ap 197 drivers/ata/pata_samsung_cf.c ata_outb(ap->host, tf->nsect, ioaddr->nsect_addr); ap 198 drivers/ata/pata_samsung_cf.c ata_outb(ap->host, tf->lbal, ioaddr->lbal_addr); ap 199 drivers/ata/pata_samsung_cf.c ata_outb(ap->host, tf->lbam, ioaddr->lbam_addr); ap 200 drivers/ata/pata_samsung_cf.c ata_outb(ap->host, tf->lbah, ioaddr->lbah_addr); ap 204 drivers/ata/pata_samsung_cf.c ata_outb(ap->host, tf->device, ioaddr->device_addr); ap 206 drivers/ata/pata_samsung_cf.c ata_wait_idle(ap); ap 212 drivers/ata/pata_samsung_cf.c static void pata_s3c_tf_read(struct ata_port *ap, struct ata_taskfile *tf) ap 214 drivers/ata/pata_samsung_cf.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 216 drivers/ata/pata_samsung_cf.c tf->feature = ata_inb(ap->host, ioaddr->error_addr); ap 217 drivers/ata/pata_samsung_cf.c tf->nsect = ata_inb(ap->host, ioaddr->nsect_addr); ap 218 drivers/ata/pata_samsung_cf.c tf->lbal = ata_inb(ap->host, ioaddr->lbal_addr); ap 219 drivers/ata/pata_samsung_cf.c tf->lbam = ata_inb(ap->host, ioaddr->lbam_addr); ap 220 drivers/ata/pata_samsung_cf.c tf->lbah = ata_inb(ap->host, ioaddr->lbah_addr); ap 221 drivers/ata/pata_samsung_cf.c tf->device = ata_inb(ap->host, ioaddr->device_addr); ap 224 drivers/ata/pata_samsung_cf.c ata_outb(ap->host, tf->ctl | ATA_HOB, ioaddr->ctl_addr); ap 225 drivers/ata/pata_samsung_cf.c tf->hob_feature = ata_inb(ap->host, ioaddr->error_addr); ap 226 drivers/ata/pata_samsung_cf.c tf->hob_nsect = ata_inb(ap->host, ioaddr->nsect_addr); ap 227 drivers/ata/pata_samsung_cf.c tf->hob_lbal = ata_inb(ap->host, ioaddr->lbal_addr); ap 228 drivers/ata/pata_samsung_cf.c tf->hob_lbam = ata_inb(ap->host, ioaddr->lbam_addr); ap 229 drivers/ata/pata_samsung_cf.c tf->hob_lbah = ata_inb(ap->host, ioaddr->lbah_addr); ap 230 drivers/ata/pata_samsung_cf.c ata_outb(ap->host, tf->ctl, ioaddr->ctl_addr); ap 231 drivers/ata/pata_samsung_cf.c ap->last_ctl = tf->ctl; ap 238 drivers/ata/pata_samsung_cf.c static void pata_s3c_exec_command(struct ata_port *ap, ap 241 drivers/ata/pata_samsung_cf.c ata_outb(ap->host, tf->command, ap->ioaddr.command_addr); ap 242 drivers/ata/pata_samsung_cf.c ata_sff_pause(ap); ap 248 drivers/ata/pata_samsung_cf.c static u8 pata_s3c_check_status(struct ata_port *ap) ap 250 drivers/ata/pata_samsung_cf.c return ata_inb(ap->host, ap->ioaddr.status_addr); ap 256 drivers/ata/pata_samsung_cf.c static u8 pata_s3c_check_altstatus(struct ata_port *ap) ap 258 drivers/ata/pata_samsung_cf.c return ata_inb(ap->host, ap->ioaddr.altstatus_addr); ap 267 drivers/ata/pata_samsung_cf.c struct ata_port *ap = qc->dev->link->ap; ap 268 drivers/ata/pata_samsung_cf.c struct s3c_ide_info *info = ap->host->private_data; ap 269 drivers/ata/pata_samsung_cf.c void __iomem *data_addr = ap->ioaddr.data_addr; ap 289 drivers/ata/pata_samsung_cf.c dev_err(ap->dev, "unexpected trailing data\n"); ap 297 drivers/ata/pata_samsung_cf.c static void pata_s3c_dev_select(struct ata_port *ap, unsigned int device) ap 304 drivers/ata/pata_samsung_cf.c ata_outb(ap->host, tmp, ap->ioaddr.device_addr); ap 305 drivers/ata/pata_samsung_cf.c ata_sff_pause(ap); ap 311 drivers/ata/pata_samsung_cf.c static unsigned int pata_s3c_devchk(struct ata_port *ap, ap 314 drivers/ata/pata_samsung_cf.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 317 drivers/ata/pata_samsung_cf.c pata_s3c_dev_select(ap, device); ap 319 drivers/ata/pata_samsung_cf.c ata_outb(ap->host, 0x55, ioaddr->nsect_addr); ap 320 drivers/ata/pata_samsung_cf.c ata_outb(ap->host, 0xaa, ioaddr->lbal_addr); ap 322 drivers/ata/pata_samsung_cf.c ata_outb(ap->host, 0xaa, ioaddr->nsect_addr); ap 323 drivers/ata/pata_samsung_cf.c ata_outb(ap->host, 0x55, ioaddr->lbal_addr); ap 325 drivers/ata/pata_samsung_cf.c ata_outb(ap->host, 0x55, ioaddr->nsect_addr); ap 326 drivers/ata/pata_samsung_cf.c ata_outb(ap->host, 0xaa, ioaddr->lbal_addr); ap 328 drivers/ata/pata_samsung_cf.c nsect = ata_inb(ap->host, ioaddr->nsect_addr); ap 329 drivers/ata/pata_samsung_cf.c lbal = ata_inb(ap->host, ioaddr->lbal_addr); ap 345 drivers/ata/pata_samsung_cf.c ata_msleep(link->ap, ATA_WAIT_AFTER_RESET); ap 361 drivers/ata/pata_samsung_cf.c static int pata_s3c_bus_softreset(struct ata_port *ap, ap 364 drivers/ata/pata_samsung_cf.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 367 drivers/ata/pata_samsung_cf.c ata_outb(ap->host, ap->ctl, ioaddr->ctl_addr); ap 369 drivers/ata/pata_samsung_cf.c ata_outb(ap->host, ap->ctl | ATA_SRST, ioaddr->ctl_addr); ap 371 drivers/ata/pata_samsung_cf.c ata_outb(ap->host, ap->ctl, ioaddr->ctl_addr); ap 372 drivers/ata/pata_samsung_cf.c ap->last_ctl = ap->ctl; ap 374 drivers/ata/pata_samsung_cf.c return pata_s3c_wait_after_reset(&ap->link, deadline); ap 383 drivers/ata/pata_samsung_cf.c struct ata_port *ap = link->ap; ap 389 drivers/ata/pata_samsung_cf.c if (pata_s3c_devchk(ap, 0)) ap 393 drivers/ata/pata_samsung_cf.c pata_s3c_dev_select(ap, 0); ap 396 drivers/ata/pata_samsung_cf.c rc = pata_s3c_bus_softreset(ap, deadline); ap 404 drivers/ata/pata_samsung_cf.c classes[0] = ata_sff_dev_classify(&ap->link.device[0], ap 413 drivers/ata/pata_samsung_cf.c static void pata_s3c_set_devctl(struct ata_port *ap, u8 ctl) ap 415 drivers/ata/pata_samsung_cf.c ata_outb(ap->host, ctl, ap->ioaddr.ctl_addr); ap 498 drivers/ata/pata_samsung_cf.c struct ata_port *ap; ap 535 drivers/ata/pata_samsung_cf.c ap = host->ports[0]; ap 536 drivers/ata/pata_samsung_cf.c ap->pio_mask = ATA_PIO4; ap 539 drivers/ata/pata_samsung_cf.c ap->ops = &pata_s3c_port_ops; ap 544 drivers/ata/pata_samsung_cf.c ap->ops = &pata_s5p_port_ops; ap 551 drivers/ata/pata_samsung_cf.c ap->flags |= ATA_FLAG_PIO_POLLING; ap 553 drivers/ata/pata_samsung_cf.c ata_port_desc(ap, "no IRQ, using PIO polling\n"); ap 556 drivers/ata/pata_samsung_cf.c ap->ioaddr.cmd_addr = info->ide_addr + S3C_ATA_CMD; ap 557 drivers/ata/pata_samsung_cf.c ap->ioaddr.data_addr = info->ide_addr + S3C_ATA_PIO_DTR; ap 558 drivers/ata/pata_samsung_cf.c ap->ioaddr.error_addr = info->ide_addr + S3C_ATA_PIO_FED; ap 559 drivers/ata/pata_samsung_cf.c ap->ioaddr.feature_addr = info->ide_addr + S3C_ATA_PIO_FED; ap 560 drivers/ata/pata_samsung_cf.c ap->ioaddr.nsect_addr = info->ide_addr + S3C_ATA_PIO_SCR; ap 561 drivers/ata/pata_samsung_cf.c ap->ioaddr.lbal_addr = info->ide_addr + S3C_ATA_PIO_LLR; ap 562 drivers/ata/pata_samsung_cf.c ap->ioaddr.lbam_addr = info->ide_addr + S3C_ATA_PIO_LMR; ap 563 drivers/ata/pata_samsung_cf.c ap->ioaddr.lbah_addr = info->ide_addr + S3C_ATA_PIO_LHR; ap 564 drivers/ata/pata_samsung_cf.c ap->ioaddr.device_addr = info->ide_addr + S3C_ATA_PIO_DVR; ap 565 drivers/ata/pata_samsung_cf.c ap->ioaddr.status_addr = info->ide_addr + S3C_ATA_PIO_CSD; ap 566 drivers/ata/pata_samsung_cf.c ap->ioaddr.command_addr = info->ide_addr + S3C_ATA_PIO_CSD; ap 567 drivers/ata/pata_samsung_cf.c ap->ioaddr.altstatus_addr = info->ide_addr + S3C_ATA_PIO_DAD; ap 568 drivers/ata/pata_samsung_cf.c ap->ioaddr.ctl_addr = info->ide_addr + S3C_ATA_PIO_DAD; ap 570 drivers/ata/pata_samsung_cf.c ata_port_desc(ap, "mmio cmd 0x%llx ", ap 72 drivers/ata/pata_sc1200.c static void sc1200_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 85 drivers/ata/pata_sc1200.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 87 drivers/ata/pata_sc1200.c unsigned int reg = 0x40 + 0x10 * ap->port_no; ap 106 drivers/ata/pata_sc1200.c static void sc1200_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 121 drivers/ata/pata_sc1200.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 122 drivers/ata/pata_sc1200.c unsigned int reg = 0x40 + 0x10 * ap->port_no; ap 154 drivers/ata/pata_sc1200.c struct ata_port *ap = qc->ap; ap 156 drivers/ata/pata_sc1200.c struct ata_device *prev = ap->private_data; ap 164 drivers/ata/pata_sc1200.c sc1200_set_dmamode(ap, adev); ap 179 drivers/ata/pata_sc1200.c struct ata_host *host = qc->ap->host; ap 180 drivers/ata/pata_sc1200.c struct ata_port *alt = host->ports[1 ^ qc->ap->port_no]; ap 40 drivers/ata/pata_sch.c static void sch_set_piomode(struct ata_port *ap, struct ata_device *adev); ap 41 drivers/ata/pata_sch.c static void sch_set_dmamode(struct ata_port *ap, struct ata_device *adev); ap 96 drivers/ata/pata_sch.c static void sch_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 99 drivers/ata/pata_sch.c struct pci_dev *dev = to_pci_dev(ap->host->dev); ap 125 drivers/ata/pata_sch.c static void sch_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 128 drivers/ata/pata_sch.c struct pci_dev *dev = to_pci_dev(ap->host->dev); ap 68 drivers/ata/pata_serverworks.c static int oem_cable(struct ata_port *ap) ap 70 drivers/ata/pata_serverworks.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 72 drivers/ata/pata_serverworks.c if (pdev->subsystem_device & (1 << (ap->port_no + 14))) ap 80 drivers/ata/pata_serverworks.c int (*cable_detect)(struct ata_port *ap); ap 103 drivers/ata/pata_serverworks.c static int serverworks_cable_detect(struct ata_port *ap) ap 105 drivers/ata/pata_serverworks.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 112 drivers/ata/pata_serverworks.c return cb->cable_detect(ap); ap 197 drivers/ata/pata_serverworks.c static void serverworks_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 200 drivers/ata/pata_serverworks.c int offset = 1 + 2 * ap->port_no - adev->devno; ap 201 drivers/ata/pata_serverworks.c int devbits = (2 * ap->port_no + adev->devno) * 4; ap 203 drivers/ata/pata_serverworks.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 227 drivers/ata/pata_serverworks.c static void serverworks_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 230 drivers/ata/pata_serverworks.c int offset = 1 + 2 * ap->port_no - adev->devno; ap 231 drivers/ata/pata_serverworks.c int devbits = 2 * ap->port_no + adev->devno; ap 234 drivers/ata/pata_serverworks.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 237 drivers/ata/pata_serverworks.c pci_read_config_byte(pdev, 0x56 + ap->port_no, &ultra); ap 251 drivers/ata/pata_serverworks.c pci_write_config_byte(pdev, 0x56 + ap->port_no, ultra); ap 50 drivers/ata/pata_sil680.c static unsigned long sil680_selreg(struct ata_port *ap, int r) ap 53 drivers/ata/pata_sil680.c base += (ap->port_no << 4); ap 67 drivers/ata/pata_sil680.c static unsigned long sil680_seldev(struct ata_port *ap, struct ata_device *adev, int r) ap 70 drivers/ata/pata_sil680.c base += (ap->port_no << 4); ap 84 drivers/ata/pata_sil680.c static int sil680_cable_detect(struct ata_port *ap) ap 86 drivers/ata/pata_sil680.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 87 drivers/ata/pata_sil680.c unsigned long addr = sil680_selreg(ap, 0); ap 106 drivers/ata/pata_sil680.c static void sil680_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 115 drivers/ata/pata_sil680.c unsigned long tfaddr = sil680_selreg(ap, 0x02); ap 116 drivers/ata/pata_sil680.c unsigned long addr = sil680_seldev(ap, adev, 0x04); ap 117 drivers/ata/pata_sil680.c unsigned long addr_mask = 0x80 + 4 * ap->port_no; ap 118 drivers/ata/pata_sil680.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 158 drivers/ata/pata_sil680.c static void sil680_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 166 drivers/ata/pata_sil680.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 167 drivers/ata/pata_sil680.c unsigned long ma = sil680_seldev(ap, adev, 0x08); ap 168 drivers/ata/pata_sil680.c unsigned long ua = sil680_seldev(ap, adev, 0x0C); ap 169 drivers/ata/pata_sil680.c unsigned long addr_mask = 0x80 + 4 * ap->port_no; ap 211 drivers/ata/pata_sil680.c static void sil680_sff_exec_command(struct ata_port *ap, ap 214 drivers/ata/pata_sil680.c DPRINTK("ata%u: cmd 0x%X\n", ap->print_id, tf->command); ap 215 drivers/ata/pata_sil680.c iowrite8(tf->command, ap->ioaddr.command_addr); ap 216 drivers/ata/pata_sil680.c ioread8(ap->ioaddr.bmdma_addr + ATA_DMA_CMD); ap 219 drivers/ata/pata_sil680.c static bool sil680_sff_irq_check(struct ata_port *ap) ap 221 drivers/ata/pata_sil680.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 222 drivers/ata/pata_sil680.c unsigned long addr = sil680_selreg(ap, 1); ap 88 drivers/ata/pata_sis.c return 0x40 + (4 * adev->link->ap->port_no) + (2 * adev->devno); ap 101 drivers/ata/pata_sis.c struct ata_port *ap = adev->link->ap; ap 102 drivers/ata/pata_sis.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 111 drivers/ata/pata_sis.c return port + (8 * ap->port_no) + (4 * adev->devno); ap 123 drivers/ata/pata_sis.c static int sis_133_cable_detect(struct ata_port *ap) ap 125 drivers/ata/pata_sis.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 129 drivers/ata/pata_sis.c pci_read_config_word(pdev, 0x50 + 2 * ap->port_no, &tmp); ap 143 drivers/ata/pata_sis.c static int sis_66_cable_detect(struct ata_port *ap) ap 145 drivers/ata/pata_sis.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 150 drivers/ata/pata_sis.c tmp >>= ap->port_no; ap 172 drivers/ata/pata_sis.c struct ata_port *ap = link->ap; ap 173 drivers/ata/pata_sis.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 175 drivers/ata/pata_sis.c if (!pci_test_config_bits(pdev, &sis_enable_bits[ap->port_no])) ap 195 drivers/ata/pata_sis.c static void sis_set_fifo(struct ata_port *ap, struct ata_device *adev) ap 197 drivers/ata/pata_sis.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 201 drivers/ata/pata_sis.c mask <<= (2 * ap->port_no); ap 227 drivers/ata/pata_sis.c static void sis_old_set_piomode (struct ata_port *ap, struct ata_device *adev) ap 229 drivers/ata/pata_sis.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 237 drivers/ata/pata_sis.c sis_set_fifo(ap, adev); ap 264 drivers/ata/pata_sis.c static void sis_100_set_piomode (struct ata_port *ap, struct ata_device *adev) ap 266 drivers/ata/pata_sis.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 272 drivers/ata/pata_sis.c sis_set_fifo(ap, adev); ap 289 drivers/ata/pata_sis.c static void sis_133_set_piomode (struct ata_port *ap, struct ata_device *adev) ap 291 drivers/ata/pata_sis.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 311 drivers/ata/pata_sis.c sis_set_fifo(ap, adev); ap 337 drivers/ata/pata_sis.c static void sis_old_set_dmamode (struct ata_port *ap, struct ata_device *adev) ap 339 drivers/ata/pata_sis.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 376 drivers/ata/pata_sis.c static void sis_66_set_dmamode (struct ata_port *ap, struct ata_device *adev) ap 378 drivers/ata/pata_sis.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 415 drivers/ata/pata_sis.c static void sis_100_set_dmamode (struct ata_port *ap, struct ata_device *adev) ap 417 drivers/ata/pata_sis.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 449 drivers/ata/pata_sis.c static void sis_133_early_set_dmamode (struct ata_port *ap, struct ata_device *adev) ap 451 drivers/ata/pata_sis.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 482 drivers/ata/pata_sis.c static void sis_133_set_dmamode (struct ata_port *ap, struct ata_device *adev) ap 484 drivers/ata/pata_sis.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 530 drivers/ata/pata_sis.c struct ata_port *ap = adev->link->ap; ap 531 drivers/ata/pata_sis.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 58 drivers/ata/pata_sl82c105.c struct ata_port *ap = link->ap; ap 59 drivers/ata/pata_sl82c105.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 61 drivers/ata/pata_sl82c105.c if (ap->port_no && !pci_test_config_bits(pdev, &sl82c105_enable_bits[ap->port_no])) ap 78 drivers/ata/pata_sl82c105.c static void sl82c105_configure_piomode(struct ata_port *ap, struct ata_device *adev, int pio) ap 80 drivers/ata/pata_sl82c105.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 85 drivers/ata/pata_sl82c105.c int timing = 0x44 + (8 * ap->port_no) + (4 * adev->devno); ap 101 drivers/ata/pata_sl82c105.c static void sl82c105_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 103 drivers/ata/pata_sl82c105.c sl82c105_configure_piomode(ap, adev, adev->pio_mode - XFER_PIO_0); ap 115 drivers/ata/pata_sl82c105.c static void sl82c105_configure_dmamode(struct ata_port *ap, struct ata_device *adev) ap 117 drivers/ata/pata_sl82c105.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 122 drivers/ata/pata_sl82c105.c int timing = 0x44 + (8 * ap->port_no) + (4 * adev->devno); ap 140 drivers/ata/pata_sl82c105.c static void sl82c105_reset_engine(struct ata_port *ap) ap 142 drivers/ata/pata_sl82c105.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 163 drivers/ata/pata_sl82c105.c struct ata_port *ap = qc->ap; ap 166 drivers/ata/pata_sl82c105.c sl82c105_reset_engine(ap); ap 170 drivers/ata/pata_sl82c105.c sl82c105_configure_dmamode(ap, qc->dev); ap 192 drivers/ata/pata_sl82c105.c struct ata_port *ap = qc->ap; ap 195 drivers/ata/pata_sl82c105.c sl82c105_reset_engine(ap); ap 200 drivers/ata/pata_sl82c105.c sl82c105_set_piomode(ap, qc->dev); ap 215 drivers/ata/pata_sl82c105.c struct ata_host *host = qc->ap->host; ap 216 drivers/ata/pata_sl82c105.c struct ata_port *alt = host->ports[1 ^ qc->ap->port_no]; ap 231 drivers/ata/pata_sl82c105.c static bool sl82c105_sff_irq_check(struct ata_port *ap) ap 233 drivers/ata/pata_sl82c105.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 234 drivers/ata/pata_sl82c105.c u32 val, mask = ap->port_no ? CTRL_IDE_IRQB : CTRL_IDE_IRQA; ap 50 drivers/ata/pata_triflex.c struct ata_port *ap = link->ap; ap 51 drivers/ata/pata_triflex.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 53 drivers/ata/pata_triflex.c if (!pci_test_config_bits(pdev, &triflex_enable_bits[ap->port_no])) ap 73 drivers/ata/pata_triflex.c static void triflex_load_timing(struct ata_port *ap, struct ata_device *adev, int speed) ap 75 drivers/ata/pata_triflex.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 78 drivers/ata/pata_triflex.c int channel_offset = ap->port_no ? 0x74: 0x70; ap 126 drivers/ata/pata_triflex.c static void triflex_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 128 drivers/ata/pata_triflex.c triflex_load_timing(ap, adev, adev->pio_mode); ap 144 drivers/ata/pata_triflex.c triflex_load_timing(qc->ap, qc->dev, qc->dev->dma_mode); ap 161 drivers/ata/pata_triflex.c triflex_load_timing(qc->ap, qc->dev, qc->dev->pio_mode); ap 181 drivers/ata/pata_via.c static int via_cable_detect(struct ata_port *ap) { ap 182 drivers/ata/pata_via.c const struct via_isa_bridge *config = ap->host->private_data; ap 183 drivers/ata/pata_via.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 189 drivers/ata/pata_via.c if ((config->flags & VIA_SATA_PATA) && ap->port_no == 0) ap 202 drivers/ata/pata_via.c if (ata66 & (0x10100000 >> (16 * ap->port_no))) ap 205 drivers/ata/pata_via.c if (ata_acpi_init_gtm(ap) && ap 206 drivers/ata/pata_via.c ata_acpi_cbl_80wire(ap, ata_acpi_init_gtm(ap))) ap 213 drivers/ata/pata_via.c struct ata_port *ap = link->ap; ap 214 drivers/ata/pata_via.c const struct via_isa_bridge *config = ap->host->private_data; ap 221 drivers/ata/pata_via.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 222 drivers/ata/pata_via.c if (!pci_test_config_bits(pdev, &via_enable_bits[ap->port_no])) ap 245 drivers/ata/pata_via.c static void via_do_set_mode(struct ata_port *ap, struct ata_device *adev, ap 248 drivers/ata/pata_via.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 255 drivers/ata/pata_via.c int offset = 3 - (2*ap->port_no) - adev->devno; ap 289 drivers/ata/pata_via.c pci_write_config_byte(pdev, 0x4F - ap->port_no, ap 330 drivers/ata/pata_via.c static void via_set_piomode(struct ata_port *ap, struct ata_device *adev) ap 332 drivers/ata/pata_via.c const struct via_isa_bridge *config = ap->host->private_data; ap 335 drivers/ata/pata_via.c via_do_set_mode(ap, adev, adev->pio_mode, set_ast, config->udma_mask); ap 338 drivers/ata/pata_via.c static void via_set_dmamode(struct ata_port *ap, struct ata_device *adev) ap 340 drivers/ata/pata_via.c const struct via_isa_bridge *config = ap->host->private_data; ap 343 drivers/ata/pata_via.c via_do_set_mode(ap, adev, adev->dma_mode, set_ast, config->udma_mask); ap 357 drivers/ata/pata_via.c struct ata_host *host = dev->link->ap->host; ap 390 drivers/ata/pata_via.c static void via_tf_load(struct ata_port *ap, const struct ata_taskfile *tf) ap 392 drivers/ata/pata_via.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 393 drivers/ata/pata_via.c struct via_port *vp = ap->private_data; ap 397 drivers/ata/pata_via.c if (tf->ctl != ap->last_ctl) { ap 399 drivers/ata/pata_via.c ap->last_ctl = tf->ctl; ap 400 drivers/ata/pata_via.c ata_wait_idle(ap); ap 439 drivers/ata/pata_via.c ata_wait_idle(ap); ap 442 drivers/ata/pata_via.c static int via_port_start(struct ata_port *ap) ap 445 drivers/ata/pata_via.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 447 drivers/ata/pata_via.c int ret = ata_bmdma_port_start(ap); ap 454 drivers/ata/pata_via.c ap->private_data = vp; ap 40 drivers/ata/pdc_adma.c #define ADMA_PORT_REGS(ap) \ ap 41 drivers/ata/pdc_adma.c ADMA_REGS((ap)->host->iomap[ADMA_MMIO_BAR], ap->port_no) ap 117 drivers/ata/pdc_adma.c static int adma_port_start(struct ata_port *ap); ap 118 drivers/ata/pdc_adma.c static void adma_port_stop(struct ata_port *ap); ap 122 drivers/ata/pdc_adma.c static void adma_freeze(struct ata_port *ap); ap 123 drivers/ata/pdc_adma.c static void adma_thaw(struct ata_port *ap); ap 177 drivers/ata/pdc_adma.c static void adma_reset_engine(struct ata_port *ap) ap 179 drivers/ata/pdc_adma.c void __iomem *chan = ADMA_PORT_REGS(ap); ap 188 drivers/ata/pdc_adma.c static void adma_reinit_engine(struct ata_port *ap) ap 190 drivers/ata/pdc_adma.c struct adma_port_priv *pp = ap->private_data; ap 191 drivers/ata/pdc_adma.c void __iomem *chan = ADMA_PORT_REGS(ap); ap 194 drivers/ata/pdc_adma.c writeb(ATA_NIEN, ap->ioaddr.ctl_addr); ap 195 drivers/ata/pdc_adma.c ata_sff_check_status(ap); ap 198 drivers/ata/pdc_adma.c adma_reset_engine(ap); ap 216 drivers/ata/pdc_adma.c static inline void adma_enter_reg_mode(struct ata_port *ap) ap 218 drivers/ata/pdc_adma.c void __iomem *chan = ADMA_PORT_REGS(ap); ap 224 drivers/ata/pdc_adma.c static void adma_freeze(struct ata_port *ap) ap 226 drivers/ata/pdc_adma.c void __iomem *chan = ADMA_PORT_REGS(ap); ap 229 drivers/ata/pdc_adma.c writeb(ATA_NIEN, ap->ioaddr.ctl_addr); ap 230 drivers/ata/pdc_adma.c ata_sff_check_status(ap); ap 239 drivers/ata/pdc_adma.c static void adma_thaw(struct ata_port *ap) ap 241 drivers/ata/pdc_adma.c adma_reinit_engine(ap); ap 246 drivers/ata/pdc_adma.c struct ata_port *ap = link->ap; ap 247 drivers/ata/pdc_adma.c struct adma_port_priv *pp = ap->private_data; ap 251 drivers/ata/pdc_adma.c adma_reinit_engine(ap); ap 259 drivers/ata/pdc_adma.c struct ata_port *ap = qc->ap; ap 260 drivers/ata/pdc_adma.c struct adma_port_priv *pp = ap->private_data; ap 300 drivers/ata/pdc_adma.c struct adma_port_priv *pp = qc->ap->private_data; ap 307 drivers/ata/pdc_adma.c adma_enter_reg_mode(qc->ap); ap 378 drivers/ata/pdc_adma.c struct ata_port *ap = qc->ap; ap 379 drivers/ata/pdc_adma.c void __iomem *chan = ADMA_PORT_REGS(ap); ap 381 drivers/ata/pdc_adma.c VPRINTK("ENTER, ap %p\n", ap); ap 389 drivers/ata/pdc_adma.c struct adma_port_priv *pp = qc->ap->private_data; ap 414 drivers/ata/pdc_adma.c struct ata_port *ap = host->ports[port_no]; ap 417 drivers/ata/pdc_adma.c void __iomem *chan = ADMA_PORT_REGS(ap); ap 423 drivers/ata/pdc_adma.c adma_enter_reg_mode(ap); ap 424 drivers/ata/pdc_adma.c pp = ap->private_data; ap 427 drivers/ata/pdc_adma.c qc = ata_qc_from_tag(ap, ap->link.active_tag); ap 442 drivers/ata/pdc_adma.c struct ata_eh_info *ehi = &ap->link.eh_info; ap 450 drivers/ata/pdc_adma.c ata_port_abort(ap); ap 452 drivers/ata/pdc_adma.c ata_port_freeze(ap); ap 464 drivers/ata/pdc_adma.c struct ata_port *ap = host->ports[port_no]; ap 465 drivers/ata/pdc_adma.c struct adma_port_priv *pp = ap->private_data; ap 470 drivers/ata/pdc_adma.c qc = ata_qc_from_tag(ap, ap->link.active_tag); ap 474 drivers/ata/pdc_adma.c u8 status = ata_sff_check_status(ap); ap 478 drivers/ata/pdc_adma.c ap->print_id, qc->tf.protocol, status); ap 486 drivers/ata/pdc_adma.c struct ata_eh_info *ehi = &ap->link.eh_info; ap 491 drivers/ata/pdc_adma.c ata_port_abort(ap); ap 493 drivers/ata/pdc_adma.c ata_port_freeze(ap); ap 534 drivers/ata/pdc_adma.c static int adma_port_start(struct ata_port *ap) ap 536 drivers/ata/pdc_adma.c struct device *dev = ap->host->dev; ap 539 drivers/ata/pdc_adma.c adma_enter_reg_mode(ap); ap 553 drivers/ata/pdc_adma.c ap->private_data = pp; ap 554 drivers/ata/pdc_adma.c adma_reinit_engine(ap); ap 558 drivers/ata/pdc_adma.c static void adma_port_stop(struct ata_port *ap) ap 560 drivers/ata/pdc_adma.c adma_reset_engine(ap); ap 612 drivers/ata/pdc_adma.c struct ata_port *ap = host->ports[port_no]; ap 616 drivers/ata/pdc_adma.c adma_ata_setup_port(&ap->ioaddr, port_base); ap 618 drivers/ata/pdc_adma.c ata_port_pbar_desc(ap, ADMA_MMIO_BAR, -1, "mmio"); ap 619 drivers/ata/pdc_adma.c ata_port_pbar_desc(ap, ADMA_MMIO_BAR, offset, "port"); ap 165 drivers/ata/sata_dwc_460ex.c #define HSDEV_FROM_AP(ap) ((struct sata_dwc_device *)(ap)->host->private_data) ap 166 drivers/ata/sata_dwc_460ex.c #define HSDEVP_FROM_AP(ap) ((struct sata_dwc_device_port *)(ap)->private_data) ap 167 drivers/ata/sata_dwc_460ex.c #define HSDEV_FROM_QC(qc) ((struct sata_dwc_device *)(qc)->ap->host->private_data) ap 185 drivers/ata/sata_dwc_460ex.c static int sata_dwc_qc_complete(struct ata_port *ap, struct ata_queued_cmd *qc, ap 187 drivers/ata/sata_dwc_460ex.c static void sata_dwc_dma_xfer_complete(struct ata_port *ap, u32 check_status); ap 188 drivers/ata/sata_dwc_460ex.c static void sata_dwc_port_stop(struct ata_port *ap); ap 314 drivers/ata/sata_dwc_460ex.c static void sata_dwc_tf_dump(struct ata_port *ap, struct ata_taskfile *tf) ap 316 drivers/ata/sata_dwc_460ex.c dev_vdbg(ap->dev, ap 320 drivers/ata/sata_dwc_460ex.c dev_vdbg(ap->dev, ap 323 drivers/ata/sata_dwc_460ex.c dev_vdbg(ap->dev, ap 334 drivers/ata/sata_dwc_460ex.c struct ata_port *ap; ap 340 drivers/ata/sata_dwc_460ex.c ap = host->ports[port]; ap 341 drivers/ata/sata_dwc_460ex.c hsdevp = HSDEVP_FROM_AP(ap); ap 342 drivers/ata/sata_dwc_460ex.c tag = ap->link.active_tag; ap 353 drivers/ata/sata_dwc_460ex.c dev_err(ap->dev, "DMA not pending tag=0x%02x pending=%d\n", ap 358 drivers/ata/sata_dwc_460ex.c sata_dwc_dma_xfer_complete(ap, 1); ap 365 drivers/ata/sata_dwc_460ex.c struct ata_port *ap = qc->ap; ap 366 drivers/ata/sata_dwc_460ex.c struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap); ap 367 drivers/ata/sata_dwc_460ex.c struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap); ap 407 drivers/ata/sata_dwc_460ex.c dev_err(link->ap->dev, "%s: Incorrect SCR offset 0x%02x\n", ap 412 drivers/ata/sata_dwc_460ex.c *val = sata_dwc_readl(link->ap->ioaddr.scr_addr + (scr * 4)); ap 413 drivers/ata/sata_dwc_460ex.c dev_dbg(link->ap->dev, "%s: id=%d reg=%d val=0x%08x\n", __func__, ap 414 drivers/ata/sata_dwc_460ex.c link->ap->print_id, scr, *val); ap 421 drivers/ata/sata_dwc_460ex.c dev_dbg(link->ap->dev, "%s: id=%d reg=%d val=0x%08x\n", __func__, ap 422 drivers/ata/sata_dwc_460ex.c link->ap->print_id, scr, val); ap 424 drivers/ata/sata_dwc_460ex.c dev_err(link->ap->dev, "%s: Incorrect SCR offset 0x%02x\n", ap 428 drivers/ata/sata_dwc_460ex.c sata_dwc_writel(link->ap->ioaddr.scr_addr + (scr * 4), val); ap 433 drivers/ata/sata_dwc_460ex.c static void clear_serror(struct ata_port *ap) ap 436 drivers/ata/sata_dwc_460ex.c sata_dwc_scr_read(&ap->link, SCR_ERROR, &val); ap 437 drivers/ata/sata_dwc_460ex.c sata_dwc_scr_write(&ap->link, SCR_ERROR, val); ap 452 drivers/ata/sata_dwc_460ex.c static void sata_dwc_error_intr(struct ata_port *ap, ap 455 drivers/ata/sata_dwc_460ex.c struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap); ap 456 drivers/ata/sata_dwc_460ex.c struct ata_eh_info *ehi = &ap->link.eh_info; ap 464 drivers/ata/sata_dwc_460ex.c sata_dwc_scr_read(&ap->link, SCR_ERROR, &serror); ap 465 drivers/ata/sata_dwc_460ex.c status = ap->ops->sff_check_status(ap); ap 467 drivers/ata/sata_dwc_460ex.c tag = ap->link.active_tag; ap 469 drivers/ata/sata_dwc_460ex.c dev_err(ap->dev, ap 475 drivers/ata/sata_dwc_460ex.c clear_serror(ap); ap 487 drivers/ata/sata_dwc_460ex.c qc = ata_qc_from_tag(ap, tag); ap 493 drivers/ata/sata_dwc_460ex.c ata_port_abort(ap); ap 507 drivers/ata/sata_dwc_460ex.c struct ata_port *ap; ap 521 drivers/ata/sata_dwc_460ex.c ap = host->ports[port]; ap 522 drivers/ata/sata_dwc_460ex.c hsdevp = HSDEVP_FROM_AP(ap); ap 524 drivers/ata/sata_dwc_460ex.c dev_dbg(ap->dev, "%s intpr=0x%08x active_tag=%d\n", __func__, intpr, ap 525 drivers/ata/sata_dwc_460ex.c ap->link.active_tag); ap 529 drivers/ata/sata_dwc_460ex.c sata_dwc_error_intr(ap, hsdev, intpr); ap 539 drivers/ata/sata_dwc_460ex.c dev_dbg(ap->dev, "%s: NEWFP tag=%d\n", __func__, tag); ap 541 drivers/ata/sata_dwc_460ex.c dev_warn(ap->dev, "CMD tag=%d not pending?\n", tag); ap 545 drivers/ata/sata_dwc_460ex.c qc = ata_qc_from_tag(ap, tag); ap 551 drivers/ata/sata_dwc_460ex.c qc->ap->link.active_tag = tag; ap 557 drivers/ata/sata_dwc_460ex.c sata_dwc_scr_read(&ap->link, SCR_ACTIVE, &sactive); ap 562 drivers/ata/sata_dwc_460ex.c if (ap->link.active_tag == ATA_TAG_POISON) ap 565 drivers/ata/sata_dwc_460ex.c tag = ap->link.active_tag; ap 566 drivers/ata/sata_dwc_460ex.c qc = ata_qc_from_tag(ap, tag); ap 570 drivers/ata/sata_dwc_460ex.c dev_err(ap->dev, ap 573 drivers/ata/sata_dwc_460ex.c ap->ops->sff_check_status(ap); ap 577 drivers/ata/sata_dwc_460ex.c status = ap->ops->sff_check_status(ap); ap 579 drivers/ata/sata_dwc_460ex.c qc->ap->link.active_tag = tag; ap 583 drivers/ata/sata_dwc_460ex.c dev_dbg(ap->dev, "interrupt ATA_ERR (0x%x)\n", status); ap 584 drivers/ata/sata_dwc_460ex.c sata_dwc_qc_complete(ap, qc, 1); ap 589 drivers/ata/sata_dwc_460ex.c dev_dbg(ap->dev, "%s non-NCQ cmd interrupt, protocol: %s\n", ap 602 drivers/ata/sata_dwc_460ex.c dev_err(ap->dev, ap 609 drivers/ata/sata_dwc_460ex.c sata_dwc_dma_xfer_complete(ap, 1); ap 611 drivers/ata/sata_dwc_460ex.c ata_sff_hsm_move(ap, qc, status, 0); ap 615 drivers/ata/sata_dwc_460ex.c if (unlikely(sata_dwc_qc_complete(ap, qc, 1))) ap 631 drivers/ata/sata_dwc_460ex.c sata_dwc_scr_read(&ap->link, SCR_ACTIVE, &sactive); ap 635 drivers/ata/sata_dwc_460ex.c dev_dbg(ap->dev, ap 641 drivers/ata/sata_dwc_460ex.c dev_warn(ap->dev, ap 647 drivers/ata/sata_dwc_460ex.c status = ap->ops->sff_check_status(ap); ap 648 drivers/ata/sata_dwc_460ex.c dev_dbg(ap->dev, "%s ATA status register=0x%x\n", __func__, status); ap 660 drivers/ata/sata_dwc_460ex.c qc = ata_qc_from_tag(ap, tag); ap 663 drivers/ata/sata_dwc_460ex.c qc->ap->link.active_tag = tag; ap 668 drivers/ata/sata_dwc_460ex.c dev_dbg(ap->dev, "%s ATA_ERR (0x%x)\n", __func__, ap 670 drivers/ata/sata_dwc_460ex.c sata_dwc_qc_complete(ap, qc, 1); ap 676 drivers/ata/sata_dwc_460ex.c dev_dbg(ap->dev, "%s NCQ command, protocol: %s\n", __func__, ap 682 drivers/ata/sata_dwc_460ex.c dev_warn(ap->dev, "%s: DMA not pending?\n", ap 685 drivers/ata/sata_dwc_460ex.c sata_dwc_dma_xfer_complete(ap, 1); ap 687 drivers/ata/sata_dwc_460ex.c if (unlikely(sata_dwc_qc_complete(ap, qc, 1))) ap 693 drivers/ata/sata_dwc_460ex.c ap->stats.idle_irq++; ap 694 drivers/ata/sata_dwc_460ex.c dev_warn(ap->dev, "STILL BUSY IRQ ata%d: irq trap\n", ap 695 drivers/ata/sata_dwc_460ex.c ap->print_id); ap 705 drivers/ata/sata_dwc_460ex.c sata_dwc_scr_read(&ap->link, SCR_ACTIVE, &sactive2); ap 707 drivers/ata/sata_dwc_460ex.c dev_dbg(ap->dev, ap 742 drivers/ata/sata_dwc_460ex.c static void sata_dwc_dma_xfer_complete(struct ata_port *ap, u32 check_status) ap 745 drivers/ata/sata_dwc_460ex.c struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap); ap 746 drivers/ata/sata_dwc_460ex.c struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap); ap 749 drivers/ata/sata_dwc_460ex.c tag = ap->link.active_tag; ap 750 drivers/ata/sata_dwc_460ex.c qc = ata_qc_from_tag(ap, tag); ap 752 drivers/ata/sata_dwc_460ex.c dev_err(ap->dev, "failed to get qc"); ap 758 drivers/ata/sata_dwc_460ex.c dev_info(ap->dev, ap 769 drivers/ata/sata_dwc_460ex.c dev_err(ap->dev, ap 776 drivers/ata/sata_dwc_460ex.c sata_dwc_qc_complete(ap, qc, check_status); ap 777 drivers/ata/sata_dwc_460ex.c ap->link.active_tag = ATA_TAG_POISON; ap 779 drivers/ata/sata_dwc_460ex.c sata_dwc_qc_complete(ap, qc, check_status); ap 783 drivers/ata/sata_dwc_460ex.c static int sata_dwc_qc_complete(struct ata_port *ap, struct ata_queued_cmd *qc, ap 789 drivers/ata/sata_dwc_460ex.c struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap); ap 790 drivers/ata/sata_dwc_460ex.c struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap); ap 792 drivers/ata/sata_dwc_460ex.c dev_dbg(ap->dev, "%s checkstatus? %x\n", __func__, check_status); ap 795 drivers/ata/sata_dwc_460ex.c dev_err(ap->dev, "TX DMA PENDING\n"); ap 797 drivers/ata/sata_dwc_460ex.c dev_err(ap->dev, "RX DMA PENDING\n"); ap 798 drivers/ata/sata_dwc_460ex.c dev_dbg(ap->dev, ap 800 drivers/ata/sata_dwc_460ex.c qc->tf.command, status, ap->print_id, qc->tf.protocol); ap 877 drivers/ata/sata_dwc_460ex.c static int sata_dwc_port_start(struct ata_port *ap) ap 885 drivers/ata/sata_dwc_460ex.c hsdev = HSDEV_FROM_AP(ap); ap 887 drivers/ata/sata_dwc_460ex.c dev_dbg(ap->dev, "%s: port_no=%d\n", __func__, ap->port_no); ap 889 drivers/ata/sata_dwc_460ex.c hsdev->host = ap->host; ap 890 drivers/ata/sata_dwc_460ex.c pdev = ap->host->dev; ap 892 drivers/ata/sata_dwc_460ex.c dev_err(ap->dev, "%s: no ap->host->dev\n", __func__); ap 916 drivers/ata/sata_dwc_460ex.c ap->bmdma_prd = NULL; /* set these so libata doesn't use them */ ap 917 drivers/ata/sata_dwc_460ex.c ap->bmdma_prd_dma = 0; ap 919 drivers/ata/sata_dwc_460ex.c if (ap->port_no == 0) { ap 920 drivers/ata/sata_dwc_460ex.c dev_dbg(ap->dev, "%s: clearing TXCHEN, RXCHEN in DMAC\n", ap 925 drivers/ata/sata_dwc_460ex.c dev_dbg(ap->dev, "%s: setting burst size in DBTSR\n", ap 933 drivers/ata/sata_dwc_460ex.c clear_serror(ap); ap 934 drivers/ata/sata_dwc_460ex.c ap->private_data = hsdevp; ap 935 drivers/ata/sata_dwc_460ex.c dev_dbg(ap->dev, "%s: done\n", __func__); ap 941 drivers/ata/sata_dwc_460ex.c dev_dbg(ap->dev, "%s: fail. ap->id = %d\n", __func__, ap->print_id); ap 945 drivers/ata/sata_dwc_460ex.c static void sata_dwc_port_stop(struct ata_port *ap) ap 947 drivers/ata/sata_dwc_460ex.c struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap); ap 948 drivers/ata/sata_dwc_460ex.c struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap); ap 950 drivers/ata/sata_dwc_460ex.c dev_dbg(ap->dev, "%s: ap->id = %d\n", __func__, ap->print_id); ap 957 drivers/ata/sata_dwc_460ex.c ap->private_data = NULL; ap 967 drivers/ata/sata_dwc_460ex.c static void sata_dwc_exec_command_by_tag(struct ata_port *ap, ap 971 drivers/ata/sata_dwc_460ex.c struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap); ap 973 drivers/ata/sata_dwc_460ex.c dev_dbg(ap->dev, "%s cmd(0x%02x): %s tag=%d\n", __func__, tf->command, ap 984 drivers/ata/sata_dwc_460ex.c clear_serror(ap); ap 985 drivers/ata/sata_dwc_460ex.c ata_sff_exec_command(ap, tf); ap 990 drivers/ata/sata_dwc_460ex.c sata_dwc_exec_command_by_tag(qc->ap, &qc->tf, tag, ap 999 drivers/ata/sata_dwc_460ex.c dev_dbg(qc->ap->dev, "%s: ap->link.sactive=0x%08x tag=%d\n", ap 1000 drivers/ata/sata_dwc_460ex.c __func__, qc->ap->link.sactive, tag); ap 1012 drivers/ata/sata_dwc_460ex.c struct ata_port *ap = qc->ap; ap 1013 drivers/ata/sata_dwc_460ex.c struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap); ap 1024 drivers/ata/sata_dwc_460ex.c dev_err(ap->dev, ap 1030 drivers/ata/sata_dwc_460ex.c dev_dbg(ap->dev, ap 1034 drivers/ata/sata_dwc_460ex.c sata_dwc_tf_dump(ap, &qc->tf); ap 1037 drivers/ata/sata_dwc_460ex.c sata_dwc_scr_read(&ap->link, SCR_ERROR, ®); ap 1039 drivers/ata/sata_dwc_460ex.c dev_err(ap->dev, "%s: ****** SError=0x%08x ******\n", ap 1061 drivers/ata/sata_dwc_460ex.c dev_dbg(qc->ap->dev, "%s: ap->link.sactive=0x%08x tag=%d\n", ap 1062 drivers/ata/sata_dwc_460ex.c __func__, qc->ap->link.sactive, tag); ap 1066 drivers/ata/sata_dwc_460ex.c dev_dbg(qc->ap->dev, "%s\n", __func__); ap 1074 drivers/ata/sata_dwc_460ex.c struct ata_port *ap = qc->ap; ap 1075 drivers/ata/sata_dwc_460ex.c struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap); ap 1078 drivers/ata/sata_dwc_460ex.c if (qc->hw_tag > 0 || ap->link.sactive > 1) ap 1079 drivers/ata/sata_dwc_460ex.c dev_info(ap->dev, ap 1081 drivers/ata/sata_dwc_460ex.c __func__, ap->print_id, qc->tf.command, ap 1084 drivers/ata/sata_dwc_460ex.c ap->link.active_tag, ap->link.sactive); ap 1099 drivers/ata/sata_dwc_460ex.c sata_dwc_scr_read(&ap->link, SCR_ACTIVE, &sactive); ap 1101 drivers/ata/sata_dwc_460ex.c sata_dwc_scr_write(&ap->link, SCR_ACTIVE, sactive); ap 1103 drivers/ata/sata_dwc_460ex.c dev_dbg(qc->ap->dev, ap 1105 drivers/ata/sata_dwc_460ex.c __func__, tag, qc->ap->link.sactive, sactive); ap 1107 drivers/ata/sata_dwc_460ex.c ap->ops->sff_tf_load(ap, &qc->tf); ap 1108 drivers/ata/sata_dwc_460ex.c sata_dwc_exec_command_by_tag(ap, &qc->tf, tag, ap 1116 drivers/ata/sata_dwc_460ex.c static void sata_dwc_error_handler(struct ata_port *ap) ap 1118 drivers/ata/sata_dwc_460ex.c ata_sff_error_handler(ap); ap 1124 drivers/ata/sata_dwc_460ex.c struct sata_dwc_device *hsdev = HSDEV_FROM_AP(link->ap); ap 1143 drivers/ata/sata_dwc_460ex.c static void sata_dwc_dev_select(struct ata_port *ap, unsigned int device) ap 464 drivers/ata/sata_fsl.c ata_port_err(qc->ap, "s/g addr unaligned : 0x%llx\n", ap 467 drivers/ata/sata_fsl.c ata_port_err(qc->ap, "s/g len unaligned : 0x%x\n", ap 507 drivers/ata/sata_fsl.c struct ata_port *ap = qc->ap; ap 508 drivers/ata/sata_fsl.c struct sata_fsl_port_priv *pp = ap->private_data; ap 509 drivers/ata/sata_fsl.c struct sata_fsl_host_priv *host_priv = ap->host->private_data; ap 555 drivers/ata/sata_fsl.c struct ata_port *ap = qc->ap; ap 556 drivers/ata/sata_fsl.c struct sata_fsl_host_priv *host_priv = ap->host->private_data; ap 584 drivers/ata/sata_fsl.c struct sata_fsl_port_priv *pp = qc->ap->private_data; ap 585 drivers/ata/sata_fsl.c struct sata_fsl_host_priv *host_priv = qc->ap->host->private_data; ap 599 drivers/ata/sata_fsl.c struct sata_fsl_host_priv *host_priv = link->ap->host->private_data; ap 623 drivers/ata/sata_fsl.c struct sata_fsl_host_priv *host_priv = link->ap->host->private_data; ap 644 drivers/ata/sata_fsl.c static void sata_fsl_freeze(struct ata_port *ap) ap 646 drivers/ata/sata_fsl.c struct sata_fsl_host_priv *host_priv = ap->host->private_data; ap 665 drivers/ata/sata_fsl.c static void sata_fsl_thaw(struct ata_port *ap) ap 667 drivers/ata/sata_fsl.c struct sata_fsl_host_priv *host_priv = ap->host->private_data; ap 687 drivers/ata/sata_fsl.c static void sata_fsl_pmp_attach(struct ata_port *ap) ap 689 drivers/ata/sata_fsl.c struct sata_fsl_host_priv *host_priv = ap->host->private_data; ap 697 drivers/ata/sata_fsl.c static void sata_fsl_pmp_detach(struct ata_port *ap) ap 699 drivers/ata/sata_fsl.c struct sata_fsl_host_priv *host_priv = ap->host->private_data; ap 713 drivers/ata/sata_fsl.c static int sata_fsl_port_start(struct ata_port *ap) ap 715 drivers/ata/sata_fsl.c struct device *dev = ap->host->dev; ap 719 drivers/ata/sata_fsl.c struct sata_fsl_host_priv *host_priv = ap->host->private_data; ap 743 drivers/ata/sata_fsl.c ap->private_data = pp; ap 769 drivers/ata/sata_fsl.c static void sata_fsl_port_stop(struct ata_port *ap) ap 771 drivers/ata/sata_fsl.c struct device *dev = ap->host->dev; ap 772 drivers/ata/sata_fsl.c struct sata_fsl_port_priv *pp = ap->private_data; ap 773 drivers/ata/sata_fsl.c struct sata_fsl_host_priv *host_priv = ap->host->private_data; ap 786 drivers/ata/sata_fsl.c ata_wait_register(ap, hcr_base + HSTATUS, ONLINE, ONLINE, 1, 1); ap 788 drivers/ata/sata_fsl.c ap->private_data = NULL; ap 795 drivers/ata/sata_fsl.c static unsigned int sata_fsl_dev_classify(struct ata_port *ap) ap 797 drivers/ata/sata_fsl.c struct sata_fsl_host_priv *host_priv = ap->host->private_data; ap 819 drivers/ata/sata_fsl.c struct ata_port *ap = link->ap; ap 820 drivers/ata/sata_fsl.c struct sata_fsl_host_priv *host_priv = ap->host->private_data; ap 837 drivers/ata/sata_fsl.c temp = ata_wait_register(ap, hcr_base + HSTATUS, ONLINE, ONLINE, ap 841 drivers/ata/sata_fsl.c ata_port_err(ap, "Hardreset failed, not off-lined %d\n", i); ap 860 drivers/ata/sata_fsl.c ata_msleep(ap, 1); ap 876 drivers/ata/sata_fsl.c temp = ata_wait_register(ap, hcr_base + HSTATUS, ONLINE, 0, 1, 500); ap 879 drivers/ata/sata_fsl.c ata_port_err(ap, "Hardreset failed, not on-lined\n"); ap 893 drivers/ata/sata_fsl.c temp = ata_wait_register(ap, hcr_base + HSTATUS, 0xFF, 0, 1, 500); ap 895 drivers/ata/sata_fsl.c ata_port_warn(ap, "No Device OR PHYRDY change,Hstatus = 0x%x\n", ap 905 drivers/ata/sata_fsl.c temp = ata_wait_register(ap, hcr_base + HSTATUS, 0xFF, 0x10, ap 909 drivers/ata/sata_fsl.c ata_port_warn(ap, "No Signature Update\n"); ap 913 drivers/ata/sata_fsl.c ata_port_info(ap, "Signature Update detected @ %d msecs\n", ap 915 drivers/ata/sata_fsl.c *class = sata_fsl_dev_classify(ap); ap 932 drivers/ata/sata_fsl.c struct ata_port *ap = link->ap; ap 933 drivers/ata/sata_fsl.c struct sata_fsl_port_priv *pp = ap->private_data; ap 934 drivers/ata/sata_fsl.c struct sata_fsl_host_priv *host_priv = ap->host->private_data; ap 987 drivers/ata/sata_fsl.c temp = ata_wait_register(ap, CQ + hcr_base, 0x1, 0x1, 1, 5000); ap 989 drivers/ata/sata_fsl.c ata_port_warn(ap, "ATA_SRST issue failed\n"); ap 995 drivers/ata/sata_fsl.c sata_fsl_scr_read(&ap->link, SCR_ERROR, &Serror); ap 1003 drivers/ata/sata_fsl.c ata_msleep(ap, 1); ap 1022 drivers/ata/sata_fsl.c ata_msleep(ap, 150); /* ?? */ ap 1044 drivers/ata/sata_fsl.c *class = sata_fsl_dev_classify(ap); ap 1057 drivers/ata/sata_fsl.c static void sata_fsl_error_handler(struct ata_port *ap) ap 1061 drivers/ata/sata_fsl.c sata_pmp_error_handler(ap); ap 1076 drivers/ata/sata_fsl.c static void sata_fsl_error_intr(struct ata_port *ap) ap 1078 drivers/ata/sata_fsl.c struct sata_fsl_host_priv *host_priv = ap->host->private_data; ap 1091 drivers/ata/sata_fsl.c link = &ap->link; ap 1099 drivers/ata/sata_fsl.c sata_fsl_scr_read(&ap->link, SCR_ERROR, &SError); ap 1101 drivers/ata/sata_fsl.c sata_fsl_scr_write(&ap->link, SCR_ERROR, SError); ap 1116 drivers/ata/sata_fsl.c sata_async_notification(ap); ap 1145 drivers/ata/sata_fsl.c if (ap->nr_pmp_links) { ap 1153 drivers/ata/sata_fsl.c if (dev_num < ap->nr_pmp_links && dereg != 0) { ap 1154 drivers/ata/sata_fsl.c link = &ap->pmp_link[dev_num]; ap 1156 drivers/ata/sata_fsl.c qc = ata_qc_from_tag(ap, link->active_tag); ap 1174 drivers/ata/sata_fsl.c qc = ata_qc_from_tag(ap, link->active_tag); ap 1193 drivers/ata/sata_fsl.c ata_port_freeze(ap); ap 1198 drivers/ata/sata_fsl.c ata_port_abort(ap); ap 1202 drivers/ata/sata_fsl.c static void sata_fsl_host_intr(struct ata_port *ap) ap 1204 drivers/ata/sata_fsl.c struct sata_fsl_host_priv *host_priv = ap->host->private_data; ap 1214 drivers/ata/sata_fsl.c sata_fsl_scr_read(&ap->link, SCR_ERROR, &SError); ap 1221 drivers/ata/sata_fsl.c ata_qc_for_each_with_internal(ap, qc, tag) { ap 1234 drivers/ata/sata_fsl.c sata_fsl_scr_write(&ap->link, SCR_ERROR, ap 1247 drivers/ata/sata_fsl.c sata_fsl_error_intr(ap); ap 1252 drivers/ata/sata_fsl.c sata_fsl_error_intr(ap); ap 1262 drivers/ata/sata_fsl.c ap->qc_active); ap 1264 drivers/ata/sata_fsl.c if (done_mask & ap->qc_active) { ap 1281 drivers/ata/sata_fsl.c ata_qc_complete_multiple(ap, ata_qc_get_active(ap) ^ done_mask); ap 1284 drivers/ata/sata_fsl.c } else if ((ap->qc_active & (1ULL << ATA_TAG_INTERNAL))) { ap 1286 drivers/ata/sata_fsl.c qc = ata_qc_from_tag(ap, ATA_TAG_INTERNAL); ap 1310 drivers/ata/sata_fsl.c struct ata_port *ap; ap 1325 drivers/ata/sata_fsl.c ap = host->ports[0]; ap 1326 drivers/ata/sata_fsl.c if (ap) { ap 1327 drivers/ata/sata_fsl.c sata_fsl_host_intr(ap); ap 1578 drivers/ata/sata_fsl.c struct ata_port *ap = host->ports[0]; ap 1579 drivers/ata/sata_fsl.c struct sata_fsl_port_priv *pp = ap->private_data; ap 128 drivers/ata/sata_highbank.c static ssize_t ecx_transmit_led_message(struct ata_port *ap, u32 state, ap 131 drivers/ata/sata_highbank.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 133 drivers/ata/sata_highbank.c struct ahci_port_priv *pp = ap->private_data; ap 150 drivers/ata/sata_highbank.c ecx_parse_sgpio(pdata, ap->port_no, state); ap 389 drivers/ata/sata_highbank.c struct ata_port *ap = link->ap; ap 390 drivers/ata/sata_highbank.c struct ahci_port_priv *pp = ap->private_data; ap 391 drivers/ata/sata_highbank.c struct ahci_host_priv *hpriv = ap->host->private_data; ap 399 drivers/ata/sata_highbank.c hpriv->stop_engine(ap); ap 407 drivers/ata/sata_highbank.c highbank_cphy_disable_overrides(link->ap->port_no); ap 409 drivers/ata/sata_highbank.c highbank_cphy_override_lane(link->ap->port_no); ap 420 drivers/ata/sata_highbank.c hpriv->start_engine(ap); ap 423 drivers/ata/sata_highbank.c *class = ahci_dev_classify(ap); ap 537 drivers/ata/sata_highbank.c struct ata_port *ap = host->ports[i]; ap 539 drivers/ata/sata_highbank.c ata_port_desc(ap, "mmio %pR", mem); ap 540 drivers/ata/sata_highbank.c ata_port_desc(ap, "port 0x%x", 0x100 + ap->port_no * 0x80); ap 543 drivers/ata/sata_highbank.c if (ap->flags & ATA_FLAG_EM) ap 544 drivers/ata/sata_highbank.c ap->em_message_type = hpriv->em_msg_type; ap 548 drivers/ata/sata_highbank.c ap->ops = &ata_dummy_port_ops; ap 264 drivers/ata/sata_inic162x.c static void __iomem *inic_port_base(struct ata_port *ap) ap 266 drivers/ata/sata_inic162x.c struct inic_host_priv *hpriv = ap->host->private_data; ap 268 drivers/ata/sata_inic162x.c return hpriv->mmio_base + ap->port_no * PORT_SIZE; ap 293 drivers/ata/sata_inic162x.c void __iomem *scr_addr = inic_port_base(link->ap) + PORT_SCR; ap 308 drivers/ata/sata_inic162x.c void __iomem *scr_addr = inic_port_base(link->ap) + PORT_SCR; ap 317 drivers/ata/sata_inic162x.c static void inic_stop_idma(struct ata_port *ap) ap 319 drivers/ata/sata_inic162x.c void __iomem *port_base = inic_port_base(ap); ap 326 drivers/ata/sata_inic162x.c static void inic_host_err_intr(struct ata_port *ap, u8 irq_stat, u16 idma_stat) ap 328 drivers/ata/sata_inic162x.c struct ata_eh_info *ehi = &ap->link.eh_info; ap 329 drivers/ata/sata_inic162x.c struct inic_port_priv *pp = ap->private_data; ap 337 drivers/ata/sata_inic162x.c inic_stop_idma(ap); ap 377 drivers/ata/sata_inic162x.c ata_port_freeze(ap); ap 379 drivers/ata/sata_inic162x.c ata_port_abort(ap); ap 382 drivers/ata/sata_inic162x.c static void inic_host_intr(struct ata_port *ap) ap 384 drivers/ata/sata_inic162x.c void __iomem *port_base = inic_port_base(ap); ap 385 drivers/ata/sata_inic162x.c struct ata_queued_cmd *qc = ata_qc_from_tag(ap, ap->link.active_tag); ap 395 drivers/ata/sata_inic162x.c inic_host_err_intr(ap, irq_stat, idma_stat); ap 401 drivers/ata/sata_inic162x.c inic_stop_idma(ap); ap 415 drivers/ata/sata_inic162x.c ata_port_warn(ap, "unhandled interrupt: cmd=0x%x irq_stat=0x%x idma_stat=0x%x\n", ap 483 drivers/ata/sata_inic162x.c struct inic_port_priv *pp = qc->ap->private_data; ap 545 drivers/ata/sata_inic162x.c struct ata_port *ap = qc->ap; ap 546 drivers/ata/sata_inic162x.c void __iomem *port_base = inic_port_base(ap); ap 556 drivers/ata/sata_inic162x.c static void inic_tf_read(struct ata_port *ap, struct ata_taskfile *tf) ap 558 drivers/ata/sata_inic162x.c void __iomem *port_base = inic_port_base(ap); ap 581 drivers/ata/sata_inic162x.c inic_tf_read(qc->ap, &tf); ap 591 drivers/ata/sata_inic162x.c static void inic_freeze(struct ata_port *ap) ap 593 drivers/ata/sata_inic162x.c void __iomem *port_base = inic_port_base(ap); ap 599 drivers/ata/sata_inic162x.c static void inic_thaw(struct ata_port *ap) ap 601 drivers/ata/sata_inic162x.c void __iomem *port_base = inic_port_base(ap); ap 609 drivers/ata/sata_inic162x.c void __iomem *port_base = inic_port_base(link->ap); ap 621 drivers/ata/sata_inic162x.c struct ata_port *ap = link->ap; ap 622 drivers/ata/sata_inic162x.c void __iomem *port_base = inic_port_base(ap); ap 632 drivers/ata/sata_inic162x.c ata_msleep(ap, 1); ap 657 drivers/ata/sata_inic162x.c inic_tf_read(ap, &tf); ap 664 drivers/ata/sata_inic162x.c static void inic_error_handler(struct ata_port *ap) ap 666 drivers/ata/sata_inic162x.c void __iomem *port_base = inic_port_base(ap); ap 669 drivers/ata/sata_inic162x.c ata_std_error_handler(ap); ap 676 drivers/ata/sata_inic162x.c inic_reset_port(inic_port_base(qc->ap)); ap 679 drivers/ata/sata_inic162x.c static void init_port(struct ata_port *ap) ap 681 drivers/ata/sata_inic162x.c void __iomem *port_base = inic_port_base(ap); ap 682 drivers/ata/sata_inic162x.c struct inic_port_priv *pp = ap->private_data; ap 692 drivers/ata/sata_inic162x.c static int inic_port_resume(struct ata_port *ap) ap 694 drivers/ata/sata_inic162x.c init_port(ap); ap 698 drivers/ata/sata_inic162x.c static int inic_port_start(struct ata_port *ap) ap 700 drivers/ata/sata_inic162x.c struct device *dev = ap->host->dev; ap 707 drivers/ata/sata_inic162x.c ap->private_data = pp; ap 720 drivers/ata/sata_inic162x.c init_port(ap); ap 858 drivers/ata/sata_inic162x.c struct ata_port *ap = host->ports[i]; ap 860 drivers/ata/sata_inic162x.c ata_port_pbar_desc(ap, mmio_bar, -1, "mmio"); ap 861 drivers/ata/sata_inic162x.c ata_port_pbar_desc(ap, mmio_bar, i * PORT_SIZE, "port"); ap 592 drivers/ata/sata_mv.c static int mv_port_start(struct ata_port *ap); ap 593 drivers/ata/sata_mv.c static void mv_port_stop(struct ata_port *ap); ap 600 drivers/ata/sata_mv.c static void mv_eh_freeze(struct ata_port *ap); ap 601 drivers/ata/sata_mv.c static void mv_eh_thaw(struct ata_port *ap); ap 636 drivers/ata/sata_mv.c static int mv_stop_edma(struct ata_port *ap); ap 638 drivers/ata/sata_mv.c static void mv_edma_cfg(struct ata_port *ap, int want_ncq, int want_edma); ap 640 drivers/ata/sata_mv.c static void mv_pmp_select(struct ata_port *ap, int pmp); ap 645 drivers/ata/sata_mv.c static void mv_pmp_error_handler(struct ata_port *ap); ap 646 drivers/ata/sata_mv.c static void mv_process_crpb_entries(struct ata_port *ap, ap 649 drivers/ata/sata_mv.c static void mv_sff_irq_clear(struct ata_port *ap); ap 654 drivers/ata/sata_mv.c static u8 mv_bmdma_status(struct ata_port *ap); ap 655 drivers/ata/sata_mv.c static u8 mv_sff_check_status(struct ata_port *ap); ap 922 drivers/ata/sata_mv.c static inline void __iomem *mv_ap_base(struct ata_port *ap) ap 924 drivers/ata/sata_mv.c return mv_port_base(mv_host_base(ap->host), ap->port_no); ap 942 drivers/ata/sata_mv.c static void mv_save_cached_regs(struct ata_port *ap) ap 944 drivers/ata/sata_mv.c void __iomem *port_mmio = mv_ap_base(ap); ap 945 drivers/ata/sata_mv.c struct mv_port_priv *pp = ap->private_data; ap 1050 drivers/ata/sata_mv.c static void mv_enable_port_irqs(struct ata_port *ap, ap 1053 drivers/ata/sata_mv.c unsigned int shift, hardport, port = ap->port_no; ap 1060 drivers/ata/sata_mv.c mv_set_main_irq_mask(ap->host, disable_bits, enable_bits); ap 1063 drivers/ata/sata_mv.c static void mv_clear_and_enable_port_irqs(struct ata_port *ap, ap 1067 drivers/ata/sata_mv.c struct mv_host_priv *hpriv = ap->host->private_data; ap 1068 drivers/ata/sata_mv.c int hardport = mv_hardport_from_port(ap->port_no); ap 1070 drivers/ata/sata_mv.c mv_host_base(ap->host), ap->port_no); ap 1084 drivers/ata/sata_mv.c mv_enable_port_irqs(ap, port_irqs); ap 1160 drivers/ata/sata_mv.c static void mv_start_edma(struct ata_port *ap, void __iomem *port_mmio, ap 1168 drivers/ata/sata_mv.c mv_stop_edma(ap); ap 1171 drivers/ata/sata_mv.c struct mv_host_priv *hpriv = ap->host->private_data; ap 1173 drivers/ata/sata_mv.c mv_edma_cfg(ap, want_ncq, 1); ap 1176 drivers/ata/sata_mv.c mv_clear_and_enable_port_irqs(ap, port_mmio, DONE_IRQ|ERR_IRQ); ap 1183 drivers/ata/sata_mv.c static void mv_wait_for_edma_empty_idle(struct ata_port *ap) ap 1185 drivers/ata/sata_mv.c void __iomem *port_mmio = mv_ap_base(ap); ap 1230 drivers/ata/sata_mv.c static int mv_stop_edma(struct ata_port *ap) ap 1232 drivers/ata/sata_mv.c void __iomem *port_mmio = mv_ap_base(ap); ap 1233 drivers/ata/sata_mv.c struct mv_port_priv *pp = ap->private_data; ap 1239 drivers/ata/sata_mv.c mv_wait_for_edma_empty_idle(ap); ap 1241 drivers/ata/sata_mv.c ata_port_err(ap, "Unable to stop eDMA\n"); ap 1244 drivers/ata/sata_mv.c mv_edma_cfg(ap, 0, 0); ap 1350 drivers/ata/sata_mv.c *val = readl(mv_ap_base(link->ap) + ofs); ap 1361 drivers/ata/sata_mv.c void __iomem *addr = mv_ap_base(link->ap) + ofs; ap 1362 drivers/ata/sata_mv.c struct mv_host_priv *hpriv = link->ap->host->private_data; ap 1382 drivers/ata/sata_mv.c mv_ap_base(link->ap) + LP_PHY_CTL; ap 1414 drivers/ata/sata_mv.c if (sata_pmp_attached(adev->link->ap)) { ap 1425 drivers/ata/sata_mv.c struct ata_port *ap = link->ap; ap 1426 drivers/ata/sata_mv.c struct mv_port_priv *pp = ap->private_data; ap 1443 drivers/ata/sata_mv.c if (unlikely(ap->excl_link)) { ap 1444 drivers/ata/sata_mv.c if (link == ap->excl_link) { ap 1445 drivers/ata/sata_mv.c if (ap->nr_active_links) ap 1456 drivers/ata/sata_mv.c if (ap->nr_active_links == 0) ap 1470 drivers/ata/sata_mv.c ap->excl_link = link; ap 1478 drivers/ata/sata_mv.c static void mv_config_fbs(struct ata_port *ap, int want_ncq, int want_fbs) ap 1480 drivers/ata/sata_mv.c struct mv_port_priv *pp = ap->private_data; ap 1501 drivers/ata/sata_mv.c port_mmio = mv_ap_base(ap); ap 1507 drivers/ata/sata_mv.c static void mv_60x1_errata_sata25(struct ata_port *ap, int want_ncq) ap 1509 drivers/ata/sata_mv.c struct mv_host_priv *hpriv = ap->host->private_data; ap 1534 drivers/ata/sata_mv.c static void mv_bmdma_enable_iie(struct ata_port *ap, int enable_bmdma) ap 1536 drivers/ata/sata_mv.c struct mv_port_priv *pp = ap->private_data; ap 1543 drivers/ata/sata_mv.c mv_write_cached_reg(mv_ap_base(ap) + EDMA_UNKNOWN_RSVD, old, new); ap 1560 drivers/ata/sata_mv.c static void mv_soc_led_blink_enable(struct ata_port *ap) ap 1562 drivers/ata/sata_mv.c struct ata_host *host = ap->host; ap 1570 drivers/ata/sata_mv.c hc_mmio = mv_hc_base_from_port(mv_host_base(host), ap->port_no); ap 1575 drivers/ata/sata_mv.c static void mv_soc_led_blink_disable(struct ata_port *ap) ap 1577 drivers/ata/sata_mv.c struct ata_host *host = ap->host; ap 1596 drivers/ata/sata_mv.c hc_mmio = mv_hc_base_from_port(mv_host_base(host), ap->port_no); ap 1601 drivers/ata/sata_mv.c static void mv_edma_cfg(struct ata_port *ap, int want_ncq, int want_edma) ap 1604 drivers/ata/sata_mv.c struct mv_port_priv *pp = ap->private_data; ap 1605 drivers/ata/sata_mv.c struct mv_host_priv *hpriv = ap->host->private_data; ap 1606 drivers/ata/sata_mv.c void __iomem *port_mmio = mv_ap_base(ap); ap 1618 drivers/ata/sata_mv.c mv_60x1_errata_sata25(ap, want_ncq); ap 1621 drivers/ata/sata_mv.c int want_fbs = sata_pmp_attached(ap); ap 1632 drivers/ata/sata_mv.c mv_config_fbs(ap, want_ncq, want_fbs); ap 1647 drivers/ata/sata_mv.c mv_bmdma_enable_iie(ap, !want_edma); ap 1651 drivers/ata/sata_mv.c mv_soc_led_blink_enable(ap); ap 1653 drivers/ata/sata_mv.c mv_soc_led_blink_disable(ap); ap 1665 drivers/ata/sata_mv.c static void mv_port_free_dma_mem(struct ata_port *ap) ap 1667 drivers/ata/sata_mv.c struct mv_host_priv *hpriv = ap->host->private_data; ap 1668 drivers/ata/sata_mv.c struct mv_port_priv *pp = ap->private_data; ap 1704 drivers/ata/sata_mv.c static int mv_port_start(struct ata_port *ap) ap 1706 drivers/ata/sata_mv.c struct device *dev = ap->host->dev; ap 1707 drivers/ata/sata_mv.c struct mv_host_priv *hpriv = ap->host->private_data; ap 1715 drivers/ata/sata_mv.c ap->private_data = pp; ap 1727 drivers/ata/sata_mv.c ap->flags |= ATA_FLAG_AN; ap 1744 drivers/ata/sata_mv.c spin_lock_irqsave(ap->lock, flags); ap 1745 drivers/ata/sata_mv.c mv_save_cached_regs(ap); ap 1746 drivers/ata/sata_mv.c mv_edma_cfg(ap, 0, 0); ap 1747 drivers/ata/sata_mv.c spin_unlock_irqrestore(ap->lock, flags); ap 1752 drivers/ata/sata_mv.c mv_port_free_dma_mem(ap); ap 1765 drivers/ata/sata_mv.c static void mv_port_stop(struct ata_port *ap) ap 1769 drivers/ata/sata_mv.c spin_lock_irqsave(ap->lock, flags); ap 1770 drivers/ata/sata_mv.c mv_stop_edma(ap); ap 1771 drivers/ata/sata_mv.c mv_enable_port_irqs(ap, 0); ap 1772 drivers/ata/sata_mv.c spin_unlock_irqrestore(ap->lock, flags); ap 1773 drivers/ata/sata_mv.c mv_port_free_dma_mem(ap); ap 1787 drivers/ata/sata_mv.c struct mv_port_priv *pp = qc->ap->private_data; ap 1837 drivers/ata/sata_mv.c static void mv_sff_irq_clear(struct ata_port *ap) ap 1839 drivers/ata/sata_mv.c mv_clear_and_enable_port_irqs(ap, mv_ap_base(ap), ERR_IRQ); ap 1883 drivers/ata/sata_mv.c struct ata_port *ap = qc->ap; ap 1884 drivers/ata/sata_mv.c void __iomem *port_mmio = mv_ap_base(ap); ap 1885 drivers/ata/sata_mv.c struct mv_port_priv *pp = ap->private_data; ap 1899 drivers/ata/sata_mv.c ap->ops->sff_exec_command(ap, &qc->tf); ap 1911 drivers/ata/sata_mv.c struct ata_port *ap = qc->ap; ap 1912 drivers/ata/sata_mv.c void __iomem *port_mmio = mv_ap_base(ap); ap 1929 drivers/ata/sata_mv.c static void mv_bmdma_stop_ap(struct ata_port *ap) ap 1931 drivers/ata/sata_mv.c void __iomem *port_mmio = mv_ap_base(ap); ap 1941 drivers/ata/sata_mv.c ata_sff_dma_pause(ap); ap 1947 drivers/ata/sata_mv.c mv_bmdma_stop_ap(qc->ap); ap 1959 drivers/ata/sata_mv.c static u8 mv_bmdma_status(struct ata_port *ap) ap 1961 drivers/ata/sata_mv.c void __iomem *port_mmio = mv_ap_base(ap); ap 1980 drivers/ata/sata_mv.c mv_bmdma_stop_ap(ap); ap 1981 drivers/ata/sata_mv.c if (ioread8(ap->ioaddr.altstatus_addr) & ATA_BUSY) ap 2036 drivers/ata/sata_mv.c struct ata_port *ap = qc->ap; ap 2037 drivers/ata/sata_mv.c struct mv_port_priv *pp = ap->private_data; ap 2137 drivers/ata/sata_mv.c struct ata_port *ap = qc->ap; ap 2138 drivers/ata/sata_mv.c struct mv_port_priv *pp = ap->private_data; ap 2206 drivers/ata/sata_mv.c static u8 mv_sff_check_status(struct ata_port *ap) ap 2208 drivers/ata/sata_mv.c u8 stat = ioread8(ap->ioaddr.status_addr); ap 2209 drivers/ata/sata_mv.c struct mv_port_priv *pp = ap->private_data; ap 2225 drivers/ata/sata_mv.c static unsigned int mv_send_fis(struct ata_port *ap, u32 *fis, int nwords) ap 2227 drivers/ata/sata_mv.c void __iomem *port_mmio = mv_ap_base(ap); ap 2257 drivers/ata/sata_mv.c ata_port_warn(ap, "%s transmission error, ifstat=%08x\n", ap 2283 drivers/ata/sata_mv.c struct ata_port *ap = qc->ap; ap 2284 drivers/ata/sata_mv.c struct mv_port_priv *pp = ap->private_data; ap 2290 drivers/ata/sata_mv.c err = mv_send_fis(ap, fis, ARRAY_SIZE(fis)); ap 2299 drivers/ata/sata_mv.c ap->hsm_task_state = HSM_ST_FIRST; ap 2304 drivers/ata/sata_mv.c ap->hsm_task_state = HSM_ST_FIRST; ap 2306 drivers/ata/sata_mv.c ap->hsm_task_state = HSM_ST; ap 2309 drivers/ata/sata_mv.c ap->hsm_task_state = HSM_ST_LAST; ap 2333 drivers/ata/sata_mv.c struct ata_port *ap = qc->ap; ap 2334 drivers/ata/sata_mv.c void __iomem *port_mmio = mv_ap_base(ap); ap 2335 drivers/ata/sata_mv.c struct mv_port_priv *pp = ap->private_data; ap 2344 drivers/ata/sata_mv.c if (!ap->ops->bmdma_setup) /* no bmdma on GEN_I */ ap 2350 drivers/ata/sata_mv.c mv_start_edma(ap, port_mmio, pp, qc->tf.protocol); ap 2381 drivers/ata/sata_mv.c if (ap->flags & ATA_FLAG_PIO_POLLING) ap 2396 drivers/ata/sata_mv.c mv_stop_edma(ap); ap 2397 drivers/ata/sata_mv.c mv_clear_and_enable_port_irqs(ap, mv_ap_base(ap), port_irqs); ap 2398 drivers/ata/sata_mv.c mv_pmp_select(ap, qc->dev->link->pmp); ap 2401 drivers/ata/sata_mv.c struct mv_host_priv *hpriv = ap->host->private_data; ap 2419 drivers/ata/sata_mv.c static struct ata_queued_cmd *mv_get_active_qc(struct ata_port *ap) ap 2421 drivers/ata/sata_mv.c struct mv_port_priv *pp = ap->private_data; ap 2426 drivers/ata/sata_mv.c qc = ata_qc_from_tag(ap, ap->link.active_tag); ap 2432 drivers/ata/sata_mv.c static void mv_pmp_error_handler(struct ata_port *ap) ap 2435 drivers/ata/sata_mv.c struct mv_port_priv *pp = ap->private_data; ap 2449 drivers/ata/sata_mv.c struct ata_link *link = &ap->pmp_link[pmp]; ap 2454 drivers/ata/sata_mv.c ata_port_freeze(ap); ap 2456 drivers/ata/sata_mv.c sata_pmp_error_handler(ap); ap 2459 drivers/ata/sata_mv.c static unsigned int mv_get_err_pmp_map(struct ata_port *ap) ap 2461 drivers/ata/sata_mv.c void __iomem *port_mmio = mv_ap_base(ap); ap 2466 drivers/ata/sata_mv.c static void mv_pmp_eh_prep(struct ata_port *ap, unsigned int pmp_map) ap 2476 drivers/ata/sata_mv.c struct ata_link *link = &ap->pmp_link[pmp]; ap 2489 drivers/ata/sata_mv.c static int mv_req_q_empty(struct ata_port *ap) ap 2491 drivers/ata/sata_mv.c void __iomem *port_mmio = mv_ap_base(ap); ap 2501 drivers/ata/sata_mv.c static int mv_handle_fbs_ncq_dev_err(struct ata_port *ap) ap 2503 drivers/ata/sata_mv.c struct mv_port_priv *pp = ap->private_data; ap 2520 drivers/ata/sata_mv.c new_map = old_map | mv_get_err_pmp_map(ap); ap 2524 drivers/ata/sata_mv.c mv_pmp_eh_prep(ap, new_map & ~old_map); ap 2528 drivers/ata/sata_mv.c ata_port_info(ap, ap 2531 drivers/ata/sata_mv.c ap->qc_active, failed_links, ap 2532 drivers/ata/sata_mv.c ap->nr_active_links); ap 2534 drivers/ata/sata_mv.c if (ap->nr_active_links <= failed_links && mv_req_q_empty(ap)) { ap 2535 drivers/ata/sata_mv.c mv_process_crpb_entries(ap, pp); ap 2536 drivers/ata/sata_mv.c mv_stop_edma(ap); ap 2537 drivers/ata/sata_mv.c mv_eh_freeze(ap); ap 2538 drivers/ata/sata_mv.c ata_port_info(ap, "%s: done\n", __func__); ap 2541 drivers/ata/sata_mv.c ata_port_info(ap, "%s: waiting\n", __func__); ap 2545 drivers/ata/sata_mv.c static int mv_handle_fbs_non_ncq_dev_err(struct ata_port *ap) ap 2561 drivers/ata/sata_mv.c static int mv_handle_dev_err(struct ata_port *ap, u32 edma_err_cause) ap 2563 drivers/ata/sata_mv.c struct mv_port_priv *pp = ap->private_data; ap 2583 drivers/ata/sata_mv.c ata_port_warn(ap, "%s: err_cause=0x%x pp_flags=0x%x\n", ap 2587 drivers/ata/sata_mv.c return mv_handle_fbs_ncq_dev_err(ap); ap 2595 drivers/ata/sata_mv.c ata_port_warn(ap, "%s: err_cause=0x%x pp_flags=0x%x\n", ap 2599 drivers/ata/sata_mv.c return mv_handle_fbs_non_ncq_dev_err(ap); ap 2604 drivers/ata/sata_mv.c static void mv_unexpected_intr(struct ata_port *ap, int edma_was_enabled) ap 2606 drivers/ata/sata_mv.c struct ata_eh_info *ehi = &ap->link.eh_info; ap 2613 drivers/ata/sata_mv.c struct ata_queued_cmd *qc = ata_qc_from_tag(ap, ap->link.active_tag); ap 2620 drivers/ata/sata_mv.c ata_port_freeze(ap); ap 2634 drivers/ata/sata_mv.c static void mv_err_intr(struct ata_port *ap) ap 2636 drivers/ata/sata_mv.c void __iomem *port_mmio = mv_ap_base(ap); ap 2639 drivers/ata/sata_mv.c struct mv_port_priv *pp = ap->private_data; ap 2640 drivers/ata/sata_mv.c struct mv_host_priv *hpriv = ap->host->private_data; ap 2642 drivers/ata/sata_mv.c struct ata_eh_info *ehi = &ap->link.eh_info; ap 2651 drivers/ata/sata_mv.c sata_scr_read(&ap->link, SCR_ERROR, &serr); ap 2652 drivers/ata/sata_mv.c sata_scr_write_flush(&ap->link, SCR_ERROR, serr); ap 2666 drivers/ata/sata_mv.c if (mv_handle_dev_err(ap, edma_err_cause)) ap 2670 drivers/ata/sata_mv.c qc = mv_get_active_qc(ap); ap 2680 drivers/ata/sata_mv.c sata_async_notification(ap); ap 2750 drivers/ata/sata_mv.c mv_eh_freeze(ap); ap 2756 drivers/ata/sata_mv.c ata_port_freeze(ap); ap 2765 drivers/ata/sata_mv.c ata_port_abort(ap); ap 2769 drivers/ata/sata_mv.c static bool mv_process_crpb_response(struct ata_port *ap, ap 2797 drivers/ata/sata_mv.c static void mv_process_crpb_entries(struct ata_port *ap, struct mv_port_priv *pp) ap 2799 drivers/ata/sata_mv.c void __iomem *port_mmio = mv_ap_base(ap); ap 2800 drivers/ata/sata_mv.c struct mv_host_priv *hpriv = ap->host->private_data; ap 2819 drivers/ata/sata_mv.c tag = ap->link.active_tag; ap 2824 drivers/ata/sata_mv.c if (mv_process_crpb_response(ap, response, tag, ncq_enabled)) ap 2830 drivers/ata/sata_mv.c ata_qc_complete_multiple(ap, ata_qc_get_active(ap) ^ done_mask); ap 2839 drivers/ata/sata_mv.c static void mv_port_intr(struct ata_port *ap, u32 port_cause) ap 2849 drivers/ata/sata_mv.c pp = ap->private_data; ap 2855 drivers/ata/sata_mv.c mv_process_crpb_entries(ap, pp); ap 2857 drivers/ata/sata_mv.c mv_handle_fbs_ncq_dev_err(ap); ap 2863 drivers/ata/sata_mv.c mv_err_intr(ap); ap 2865 drivers/ata/sata_mv.c struct ata_queued_cmd *qc = mv_get_active_qc(ap); ap 2867 drivers/ata/sata_mv.c ata_bmdma_port_intr(ap, qc); ap 2869 drivers/ata/sata_mv.c mv_unexpected_intr(ap, edma_was_enabled); ap 2892 drivers/ata/sata_mv.c struct ata_port *ap = host->ports[port]; ap 2941 drivers/ata/sata_mv.c mv_port_intr(ap, port_cause); ap 2949 drivers/ata/sata_mv.c struct ata_port *ap; ap 2965 drivers/ata/sata_mv.c ap = host->ports[i]; ap 2966 drivers/ata/sata_mv.c if (!ata_link_offline(&ap->link)) { ap 2967 drivers/ata/sata_mv.c ehi = &ap->link.eh_info; ap 2974 drivers/ata/sata_mv.c qc = ata_qc_from_tag(ap, ap->link.active_tag); ap 2980 drivers/ata/sata_mv.c ata_port_freeze(ap); ap 3055 drivers/ata/sata_mv.c struct mv_host_priv *hpriv = link->ap->host->private_data; ap 3057 drivers/ata/sata_mv.c void __iomem *addr = mv5_phy_base(mmio, link->ap->port_no); ap 3069 drivers/ata/sata_mv.c struct mv_host_priv *hpriv = link->ap->host->private_data; ap 3071 drivers/ata/sata_mv.c void __iomem *addr = mv5_phy_base(mmio, link->ap->port_no); ap 3589 drivers/ata/sata_mv.c static void mv_pmp_select(struct ata_port *ap, int pmp) ap 3591 drivers/ata/sata_mv.c if (sata_pmp_supported(ap)) { ap 3592 drivers/ata/sata_mv.c void __iomem *port_mmio = mv_ap_base(ap); ap 3606 drivers/ata/sata_mv.c mv_pmp_select(link->ap, sata_srst_pmp(link)); ap 3613 drivers/ata/sata_mv.c mv_pmp_select(link->ap, sata_srst_pmp(link)); ap 3620 drivers/ata/sata_mv.c struct ata_port *ap = link->ap; ap 3621 drivers/ata/sata_mv.c struct mv_host_priv *hpriv = ap->host->private_data; ap 3622 drivers/ata/sata_mv.c struct mv_port_priv *pp = ap->private_data; ap 3628 drivers/ata/sata_mv.c mv_reset_channel(hpriv, mmio, ap->port_no); ap 3646 drivers/ata/sata_mv.c mv_setup_ifcfg(mv_ap_base(ap), 0); ap 3651 drivers/ata/sata_mv.c mv_save_cached_regs(ap); ap 3652 drivers/ata/sata_mv.c mv_edma_cfg(ap, 0, 0); ap 3657 drivers/ata/sata_mv.c static void mv_eh_freeze(struct ata_port *ap) ap 3659 drivers/ata/sata_mv.c mv_stop_edma(ap); ap 3660 drivers/ata/sata_mv.c mv_enable_port_irqs(ap, 0); ap 3663 drivers/ata/sata_mv.c static void mv_eh_thaw(struct ata_port *ap) ap 3665 drivers/ata/sata_mv.c struct mv_host_priv *hpriv = ap->host->private_data; ap 3666 drivers/ata/sata_mv.c unsigned int port = ap->port_no; ap 3669 drivers/ata/sata_mv.c void __iomem *port_mmio = mv_ap_base(ap); ap 3679 drivers/ata/sata_mv.c mv_enable_port_irqs(ap, ERR_IRQ); ap 3960 drivers/ata/sata_mv.c struct ata_port *ap = host->ports[port]; ap 3963 drivers/ata/sata_mv.c mv_port_init(&ap->ioaddr, port_mmio); ap 4412 drivers/ata/sata_mv.c struct ata_port *ap = host->ports[port]; ap 4416 drivers/ata/sata_mv.c ata_port_pbar_desc(ap, MV_PRIMARY_BAR, -1, "mmio"); ap 4417 drivers/ata/sata_mv.c ata_port_pbar_desc(ap, MV_PRIMARY_BAR, offset, "port"); ap 294 drivers/ata/sata_nv.c static void nv_nf2_freeze(struct ata_port *ap); ap 295 drivers/ata/sata_nv.c static void nv_nf2_thaw(struct ata_port *ap); ap 296 drivers/ata/sata_nv.c static void nv_ck804_freeze(struct ata_port *ap); ap 297 drivers/ata/sata_nv.c static void nv_ck804_thaw(struct ata_port *ap); ap 303 drivers/ata/sata_nv.c static void nv_adma_irq_clear(struct ata_port *ap); ap 304 drivers/ata/sata_nv.c static int nv_adma_port_start(struct ata_port *ap); ap 305 drivers/ata/sata_nv.c static void nv_adma_port_stop(struct ata_port *ap); ap 307 drivers/ata/sata_nv.c static int nv_adma_port_suspend(struct ata_port *ap, pm_message_t mesg); ap 308 drivers/ata/sata_nv.c static int nv_adma_port_resume(struct ata_port *ap); ap 310 drivers/ata/sata_nv.c static void nv_adma_freeze(struct ata_port *ap); ap 311 drivers/ata/sata_nv.c static void nv_adma_thaw(struct ata_port *ap); ap 312 drivers/ata/sata_nv.c static void nv_adma_error_handler(struct ata_port *ap); ap 315 drivers/ata/sata_nv.c static void nv_adma_tf_read(struct ata_port *ap, struct ata_taskfile *tf); ap 317 drivers/ata/sata_nv.c static void nv_mcp55_thaw(struct ata_port *ap); ap 318 drivers/ata/sata_nv.c static void nv_mcp55_freeze(struct ata_port *ap); ap 319 drivers/ata/sata_nv.c static void nv_swncq_error_handler(struct ata_port *ap); ap 321 drivers/ata/sata_nv.c static int nv_swncq_port_start(struct ata_port *ap); ap 325 drivers/ata/sata_nv.c static void nv_swncq_irq_clear(struct ata_port *ap, u16 fis); ap 328 drivers/ata/sata_nv.c static int nv_swncq_port_suspend(struct ata_port *ap, pm_message_t mesg); ap 329 drivers/ata/sata_nv.c static int nv_swncq_port_resume(struct ata_port *ap); ap 589 drivers/ata/sata_nv.c static void nv_adma_register_mode(struct ata_port *ap) ap 591 drivers/ata/sata_nv.c struct nv_adma_port_priv *pp = ap->private_data; ap 606 drivers/ata/sata_nv.c ata_port_warn(ap, "timeout waiting for ADMA IDLE, stat=0x%hx\n", ap 620 drivers/ata/sata_nv.c ata_port_warn(ap, ap 627 drivers/ata/sata_nv.c static void nv_adma_mode(struct ata_port *ap) ap 629 drivers/ata/sata_nv.c struct nv_adma_port_priv *pp = ap->private_data; ap 650 drivers/ata/sata_nv.c ata_port_warn(ap, ap 659 drivers/ata/sata_nv.c struct ata_port *ap = ata_shost_to_port(sdev->host); ap 660 drivers/ata/sata_nv.c struct nv_adma_port_priv *pp = ap->private_data; ap 662 drivers/ata/sata_nv.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 675 drivers/ata/sata_nv.c spin_lock_irqsave(ap->lock, flags); ap 677 drivers/ata/sata_nv.c if (ap->link.device[sdev->id].class == ATA_DEV_ATAPI) { ap 693 drivers/ata/sata_nv.c nv_adma_register_mode(ap); ap 702 drivers/ata/sata_nv.c if (ap->port_no == 1) ap 720 drivers/ata/sata_nv.c port0 = ap->host->ports[0]->private_data; ap 721 drivers/ata/sata_nv.c port1 = ap->host->ports[1]->private_data; ap 738 drivers/ata/sata_nv.c ata_port_info(ap, ap 740 drivers/ata/sata_nv.c (unsigned long long)*ap->host->dev->dma_mask, ap 743 drivers/ata/sata_nv.c spin_unlock_irqrestore(ap->lock, flags); ap 750 drivers/ata/sata_nv.c struct nv_adma_port_priv *pp = qc->ap->private_data; ap 754 drivers/ata/sata_nv.c static void nv_adma_tf_read(struct ata_port *ap, struct ata_taskfile *tf) ap 763 drivers/ata/sata_nv.c nv_adma_register_mode(ap); ap 765 drivers/ata/sata_nv.c ata_sff_tf_read(ap, tf); ap 800 drivers/ata/sata_nv.c static int nv_adma_check_cpb(struct ata_port *ap, int cpb_num, int force_err) ap 802 drivers/ata/sata_nv.c struct nv_adma_port_priv *pp = ap->private_data; ap 811 drivers/ata/sata_nv.c struct ata_eh_info *ehi = &ap->link.eh_info; ap 834 drivers/ata/sata_nv.c ata_port_freeze(ap); ap 836 drivers/ata/sata_nv.c ata_port_abort(ap); ap 845 drivers/ata/sata_nv.c static int nv_host_intr(struct ata_port *ap, u8 irq_stat) ap 847 drivers/ata/sata_nv.c struct ata_queued_cmd *qc = ata_qc_from_tag(ap, ap->link.active_tag); ap 851 drivers/ata/sata_nv.c ata_port_freeze(ap); ap 861 drivers/ata/sata_nv.c ata_sff_check_status(ap); ap 866 drivers/ata/sata_nv.c return ata_bmdma_port_intr(ap, qc); ap 878 drivers/ata/sata_nv.c struct ata_port *ap = host->ports[i]; ap 879 drivers/ata/sata_nv.c struct nv_adma_port_priv *pp = ap->private_data; ap 891 drivers/ata/sata_nv.c handled += nv_host_intr(ap, irq_stat); ap 899 drivers/ata/sata_nv.c if (ata_tag_valid(ap->link.active_tag)) ap 905 drivers/ata/sata_nv.c handled += nv_host_intr(ap, irq_stat); ap 914 drivers/ata/sata_nv.c if (!NV_ADMA_CHECK_INTR(gen_ctl, ap->port_no) && !notifier && ap 938 drivers/ata/sata_nv.c struct ata_eh_info *ehi = &ap->link.eh_info; ap 956 drivers/ata/sata_nv.c ata_port_freeze(ap); ap 969 drivers/ata/sata_nv.c if (ata_tag_valid(ap->link.active_tag)) ap 971 drivers/ata/sata_nv.c ap->link.active_tag; ap 973 drivers/ata/sata_nv.c check_commands = ap->link.sactive; ap 979 drivers/ata/sata_nv.c rc = nv_adma_check_cpb(ap, pos, ap 987 drivers/ata/sata_nv.c ata_qc_complete_multiple(ap, ata_qc_get_active(ap) ^ done_mask); ap 1005 drivers/ata/sata_nv.c static void nv_adma_freeze(struct ata_port *ap) ap 1007 drivers/ata/sata_nv.c struct nv_adma_port_priv *pp = ap->private_data; ap 1011 drivers/ata/sata_nv.c nv_ck804_freeze(ap); ap 1017 drivers/ata/sata_nv.c writeb(NV_INT_ALL << (ap->port_no * NV_INT_PORT_SHIFT), ap 1018 drivers/ata/sata_nv.c ap->host->iomap[NV_MMIO_BAR] + NV_INT_STATUS_CK804); ap 1027 drivers/ata/sata_nv.c static void nv_adma_thaw(struct ata_port *ap) ap 1029 drivers/ata/sata_nv.c struct nv_adma_port_priv *pp = ap->private_data; ap 1033 drivers/ata/sata_nv.c nv_ck804_thaw(ap); ap 1045 drivers/ata/sata_nv.c static void nv_adma_irq_clear(struct ata_port *ap) ap 1047 drivers/ata/sata_nv.c struct nv_adma_port_priv *pp = ap->private_data; ap 1052 drivers/ata/sata_nv.c ata_bmdma_irq_clear(ap); ap 1057 drivers/ata/sata_nv.c writeb(NV_INT_ALL << (ap->port_no * NV_INT_PORT_SHIFT), ap 1058 drivers/ata/sata_nv.c ap->host->iomap[NV_MMIO_BAR] + NV_INT_STATUS_CK804); ap 1065 drivers/ata/sata_nv.c if (ap->port_no == 0) { ap 1072 drivers/ata/sata_nv.c pp = ap->host->ports[0]->private_data; ap 1074 drivers/ata/sata_nv.c pp = ap->host->ports[1]->private_data; ap 1080 drivers/ata/sata_nv.c struct nv_adma_port_priv *pp = qc->ap->private_data; ap 1086 drivers/ata/sata_nv.c static int nv_adma_port_start(struct ata_port *ap) ap 1088 drivers/ata/sata_nv.c struct device *dev = ap->host->dev; ap 1108 drivers/ata/sata_nv.c rc = ata_bmdma_port_start(ap); ap 1116 drivers/ata/sata_nv.c mmio = ap->host->iomap[NV_MMIO_BAR] + NV_ADMA_PORT + ap 1117 drivers/ata/sata_nv.c ap->port_no * NV_ADMA_PORT_SIZE; ap 1119 drivers/ata/sata_nv.c pp->gen_block = ap->host->iomap[NV_MMIO_BAR] + NV_ADMA_GEN; ap 1121 drivers/ata/sata_nv.c NV_ADMA_NOTIFIER_CLEAR + (4 * ap->port_no); ap 1156 drivers/ata/sata_nv.c ap->private_data = pp; ap 1182 drivers/ata/sata_nv.c static void nv_adma_port_stop(struct ata_port *ap) ap 1184 drivers/ata/sata_nv.c struct nv_adma_port_priv *pp = ap->private_data; ap 1192 drivers/ata/sata_nv.c static int nv_adma_port_suspend(struct ata_port *ap, pm_message_t mesg) ap 1194 drivers/ata/sata_nv.c struct nv_adma_port_priv *pp = ap->private_data; ap 1198 drivers/ata/sata_nv.c nv_adma_register_mode(ap); ap 1209 drivers/ata/sata_nv.c static int nv_adma_port_resume(struct ata_port *ap) ap 1211 drivers/ata/sata_nv.c struct nv_adma_port_priv *pp = ap->private_data; ap 1244 drivers/ata/sata_nv.c static void nv_adma_setup_port(struct ata_port *ap) ap 1246 drivers/ata/sata_nv.c void __iomem *mmio = ap->host->iomap[NV_MMIO_BAR]; ap 1247 drivers/ata/sata_nv.c struct ata_ioports *ioport = &ap->ioaddr; ap 1251 drivers/ata/sata_nv.c mmio += NV_ADMA_PORT + ap->port_no * NV_ADMA_PORT_SIZE; ap 1312 drivers/ata/sata_nv.c struct nv_adma_port_priv *pp = qc->ap->private_data; ap 1332 drivers/ata/sata_nv.c struct nv_adma_port_priv *pp = qc->ap->private_data; ap 1349 drivers/ata/sata_nv.c struct nv_adma_port_priv *pp = qc->ap->private_data; ap 1357 drivers/ata/sata_nv.c nv_adma_register_mode(qc->ap); ap 1395 drivers/ata/sata_nv.c struct nv_adma_port_priv *pp = qc->ap->private_data; ap 1415 drivers/ata/sata_nv.c nv_adma_register_mode(qc->ap); ap 1418 drivers/ata/sata_nv.c nv_adma_mode(qc->ap); ap 1448 drivers/ata/sata_nv.c struct ata_port *ap = host->ports[i]; ap 1451 drivers/ata/sata_nv.c qc = ata_qc_from_tag(ap, ap->link.active_tag); ap 1453 drivers/ata/sata_nv.c handled += ata_bmdma_port_intr(ap, qc); ap 1459 drivers/ata/sata_nv.c ap->ops->sff_check_status(ap); ap 1513 drivers/ata/sata_nv.c *val = ioread32(link->ap->ioaddr.scr_addr + (sc_reg * 4)); ap 1522 drivers/ata/sata_nv.c iowrite32(val, link->ap->ioaddr.scr_addr + (sc_reg * 4)); ap 1534 drivers/ata/sata_nv.c if (!(link->ap->pflags & ATA_PFLAG_LOADING) && ap 1558 drivers/ata/sata_nv.c static void nv_nf2_freeze(struct ata_port *ap) ap 1560 drivers/ata/sata_nv.c void __iomem *scr_addr = ap->host->ports[0]->ioaddr.scr_addr; ap 1561 drivers/ata/sata_nv.c int shift = ap->port_no * NV_INT_PORT_SHIFT; ap 1569 drivers/ata/sata_nv.c static void nv_nf2_thaw(struct ata_port *ap) ap 1571 drivers/ata/sata_nv.c void __iomem *scr_addr = ap->host->ports[0]->ioaddr.scr_addr; ap 1572 drivers/ata/sata_nv.c int shift = ap->port_no * NV_INT_PORT_SHIFT; ap 1582 drivers/ata/sata_nv.c static void nv_ck804_freeze(struct ata_port *ap) ap 1584 drivers/ata/sata_nv.c void __iomem *mmio_base = ap->host->iomap[NV_MMIO_BAR]; ap 1585 drivers/ata/sata_nv.c int shift = ap->port_no * NV_INT_PORT_SHIFT; ap 1593 drivers/ata/sata_nv.c static void nv_ck804_thaw(struct ata_port *ap) ap 1595 drivers/ata/sata_nv.c void __iomem *mmio_base = ap->host->iomap[NV_MMIO_BAR]; ap 1596 drivers/ata/sata_nv.c int shift = ap->port_no * NV_INT_PORT_SHIFT; ap 1606 drivers/ata/sata_nv.c static void nv_mcp55_freeze(struct ata_port *ap) ap 1608 drivers/ata/sata_nv.c void __iomem *mmio_base = ap->host->iomap[NV_MMIO_BAR]; ap 1609 drivers/ata/sata_nv.c int shift = ap->port_no * NV_INT_PORT_SHIFT_MCP55; ap 1619 drivers/ata/sata_nv.c static void nv_mcp55_thaw(struct ata_port *ap) ap 1621 drivers/ata/sata_nv.c void __iomem *mmio_base = ap->host->iomap[NV_MMIO_BAR]; ap 1622 drivers/ata/sata_nv.c int shift = ap->port_no * NV_INT_PORT_SHIFT_MCP55; ap 1632 drivers/ata/sata_nv.c static void nv_adma_error_handler(struct ata_port *ap) ap 1634 drivers/ata/sata_nv.c struct nv_adma_port_priv *pp = ap->private_data; ap 1640 drivers/ata/sata_nv.c if (ata_tag_valid(ap->link.active_tag) || ap->link.sactive) { ap 1648 drivers/ata/sata_nv.c ata_port_err(ap, ap 1657 drivers/ata/sata_nv.c if ((ata_tag_valid(ap->link.active_tag) && i == ap->link.active_tag) || ap 1658 drivers/ata/sata_nv.c ap->link.sactive & (1 << i)) ap 1659 drivers/ata/sata_nv.c ata_port_err(ap, ap 1666 drivers/ata/sata_nv.c nv_adma_register_mode(ap); ap 1685 drivers/ata/sata_nv.c ata_bmdma_error_handler(ap); ap 1688 drivers/ata/sata_nv.c static void nv_swncq_qc_to_dq(struct ata_port *ap, struct ata_queued_cmd *qc) ap 1690 drivers/ata/sata_nv.c struct nv_swncq_port_priv *pp = ap->private_data; ap 1699 drivers/ata/sata_nv.c static struct ata_queued_cmd *nv_swncq_qc_from_dq(struct ata_port *ap) ap 1701 drivers/ata/sata_nv.c struct nv_swncq_port_priv *pp = ap->private_data; ap 1713 drivers/ata/sata_nv.c return ata_qc_from_tag(ap, tag); ap 1716 drivers/ata/sata_nv.c static void nv_swncq_fis_reinit(struct ata_port *ap) ap 1718 drivers/ata/sata_nv.c struct nv_swncq_port_priv *pp = ap->private_data; ap 1726 drivers/ata/sata_nv.c static void nv_swncq_pp_reinit(struct ata_port *ap) ap 1728 drivers/ata/sata_nv.c struct nv_swncq_port_priv *pp = ap->private_data; ap 1736 drivers/ata/sata_nv.c nv_swncq_fis_reinit(ap); ap 1739 drivers/ata/sata_nv.c static void nv_swncq_irq_clear(struct ata_port *ap, u16 fis) ap 1741 drivers/ata/sata_nv.c struct nv_swncq_port_priv *pp = ap->private_data; ap 1746 drivers/ata/sata_nv.c static void __ata_bmdma_stop(struct ata_port *ap) ap 1750 drivers/ata/sata_nv.c qc.ap = ap; ap 1754 drivers/ata/sata_nv.c static void nv_swncq_ncq_stop(struct ata_port *ap) ap 1756 drivers/ata/sata_nv.c struct nv_swncq_port_priv *pp = ap->private_data; ap 1761 drivers/ata/sata_nv.c ata_port_err(ap, "EH in SWNCQ mode,QC:qc_active 0x%llX sactive 0x%X\n", ap 1762 drivers/ata/sata_nv.c ap->qc_active, ap->link.sactive); ap 1763 drivers/ata/sata_nv.c ata_port_err(ap, ap 1769 drivers/ata/sata_nv.c ata_port_err(ap, "ATA_REG 0x%X ERR_REG 0x%X\n", ap 1770 drivers/ata/sata_nv.c ap->ops->sff_check_status(ap), ap 1771 drivers/ata/sata_nv.c ioread8(ap->ioaddr.error_addr)); ap 1776 drivers/ata/sata_nv.c ata_port_err(ap, "tag : dhfis dmafis sdbfis sactive\n"); ap 1786 drivers/ata/sata_nv.c ata_port_err(ap, ap 1795 drivers/ata/sata_nv.c nv_swncq_pp_reinit(ap); ap 1796 drivers/ata/sata_nv.c ap->ops->sff_irq_clear(ap); ap 1797 drivers/ata/sata_nv.c __ata_bmdma_stop(ap); ap 1798 drivers/ata/sata_nv.c nv_swncq_irq_clear(ap, 0xffff); ap 1801 drivers/ata/sata_nv.c static void nv_swncq_error_handler(struct ata_port *ap) ap 1803 drivers/ata/sata_nv.c struct ata_eh_context *ehc = &ap->link.eh_context; ap 1805 drivers/ata/sata_nv.c if (ap->link.sactive) { ap 1806 drivers/ata/sata_nv.c nv_swncq_ncq_stop(ap); ap 1810 drivers/ata/sata_nv.c ata_bmdma_error_handler(ap); ap 1814 drivers/ata/sata_nv.c static int nv_swncq_port_suspend(struct ata_port *ap, pm_message_t mesg) ap 1816 drivers/ata/sata_nv.c void __iomem *mmio = ap->host->iomap[NV_MMIO_BAR]; ap 1833 drivers/ata/sata_nv.c static int nv_swncq_port_resume(struct ata_port *ap) ap 1835 drivers/ata/sata_nv.c void __iomem *mmio = ap->host->iomap[NV_MMIO_BAR]; ap 1880 drivers/ata/sata_nv.c struct ata_port *ap = ata_shost_to_port(sdev->host); ap 1881 drivers/ata/sata_nv.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 1893 drivers/ata/sata_nv.c dev = &ap->link.device[sdev->id]; ap 1894 drivers/ata/sata_nv.c if (!(ap->flags & ATA_FLAG_NCQ) || dev->class == ATA_DEV_ATAPI) ap 1924 drivers/ata/sata_nv.c static int nv_swncq_port_start(struct ata_port *ap) ap 1926 drivers/ata/sata_nv.c struct device *dev = ap->host->dev; ap 1927 drivers/ata/sata_nv.c void __iomem *mmio = ap->host->iomap[NV_MMIO_BAR]; ap 1932 drivers/ata/sata_nv.c rc = ata_bmdma_port_start(ap); ap 1945 drivers/ata/sata_nv.c ap->private_data = pp; ap 1946 drivers/ata/sata_nv.c pp->sactive_block = ap->ioaddr.scr_addr + 4 * SCR_ACTIVE; ap 1947 drivers/ata/sata_nv.c pp->irq_block = mmio + NV_INT_STATUS_MCP55 + ap->port_no * 2; ap 1948 drivers/ata/sata_nv.c pp->tag_block = mmio + NV_NCQ_REG_MCP55 + ap->port_no * 2; ap 1968 drivers/ata/sata_nv.c struct ata_port *ap = qc->ap; ap 1970 drivers/ata/sata_nv.c struct nv_swncq_port_priv *pp = ap->private_data; ap 2002 drivers/ata/sata_nv.c static unsigned int nv_swncq_issue_atacmd(struct ata_port *ap, ap 2005 drivers/ata/sata_nv.c struct nv_swncq_port_priv *pp = ap->private_data; ap 2018 drivers/ata/sata_nv.c ap->ops->sff_tf_load(ap, &qc->tf); /* load tf registers */ ap 2019 drivers/ata/sata_nv.c ap->ops->sff_exec_command(ap, &qc->tf); ap 2028 drivers/ata/sata_nv.c struct ata_port *ap = qc->ap; ap 2029 drivers/ata/sata_nv.c struct nv_swncq_port_priv *pp = ap->private_data; ap 2037 drivers/ata/sata_nv.c nv_swncq_issue_atacmd(ap, qc); ap 2039 drivers/ata/sata_nv.c nv_swncq_qc_to_dq(ap, qc); /* add qc to defer queue */ ap 2044 drivers/ata/sata_nv.c static void nv_swncq_hotplug(struct ata_port *ap, u32 fis) ap 2047 drivers/ata/sata_nv.c struct ata_eh_info *ehi = &ap->link.eh_info; ap 2052 drivers/ata/sata_nv.c sata_scr_read(&ap->link, SCR_ERROR, &serror); ap 2053 drivers/ata/sata_nv.c sata_scr_write(&ap->link, SCR_ERROR, serror); ap 2066 drivers/ata/sata_nv.c ata_port_freeze(ap); ap 2069 drivers/ata/sata_nv.c static int nv_swncq_sdbfis(struct ata_port *ap) ap 2072 drivers/ata/sata_nv.c struct nv_swncq_port_priv *pp = ap->private_data; ap 2073 drivers/ata/sata_nv.c struct ata_eh_info *ehi = &ap->link.eh_info; ap 2079 drivers/ata/sata_nv.c host_stat = ap->ops->bmdma_status(ap); ap 2089 drivers/ata/sata_nv.c ap->ops->sff_irq_clear(ap); ap 2090 drivers/ata/sata_nv.c __ata_bmdma_stop(ap); ap 2099 drivers/ata/sata_nv.c ata_qc_complete_multiple(ap, ap->qc_active ^ done_mask); ap 2101 drivers/ata/sata_nv.c if (!ap->qc_active) { ap 2103 drivers/ata/sata_nv.c nv_swncq_pp_reinit(ap); ap 2120 drivers/ata/sata_nv.c ap->print_id, ap->qc_active, pp->qc_active, ap 2124 drivers/ata/sata_nv.c nv_swncq_fis_reinit(ap); ap 2127 drivers/ata/sata_nv.c qc = ata_qc_from_tag(ap, pp->last_issue_tag); ap 2128 drivers/ata/sata_nv.c nv_swncq_issue_atacmd(ap, qc); ap 2134 drivers/ata/sata_nv.c qc = nv_swncq_qc_from_dq(ap); ap 2136 drivers/ata/sata_nv.c nv_swncq_issue_atacmd(ap, qc); ap 2142 drivers/ata/sata_nv.c static inline u32 nv_swncq_tag(struct ata_port *ap) ap 2144 drivers/ata/sata_nv.c struct nv_swncq_port_priv *pp = ap->private_data; ap 2151 drivers/ata/sata_nv.c static void nv_swncq_dmafis(struct ata_port *ap) ap 2157 drivers/ata/sata_nv.c struct nv_swncq_port_priv *pp = ap->private_data; ap 2159 drivers/ata/sata_nv.c __ata_bmdma_stop(ap); ap 2160 drivers/ata/sata_nv.c tag = nv_swncq_tag(ap); ap 2163 drivers/ata/sata_nv.c qc = ata_qc_from_tag(ap, tag); ap 2172 drivers/ata/sata_nv.c ap->ioaddr.bmdma_addr + ATA_DMA_TABLE_OFS); ap 2175 drivers/ata/sata_nv.c dmactl = ioread8(ap->ioaddr.bmdma_addr + ATA_DMA_CMD); ap 2180 drivers/ata/sata_nv.c iowrite8(dmactl | ATA_DMA_START, ap->ioaddr.bmdma_addr + ATA_DMA_CMD); ap 2183 drivers/ata/sata_nv.c static void nv_swncq_host_interrupt(struct ata_port *ap, u16 fis) ap 2185 drivers/ata/sata_nv.c struct nv_swncq_port_priv *pp = ap->private_data; ap 2187 drivers/ata/sata_nv.c struct ata_eh_info *ehi = &ap->link.eh_info; ap 2191 drivers/ata/sata_nv.c ata_stat = ap->ops->sff_check_status(ap); ap 2192 drivers/ata/sata_nv.c nv_swncq_irq_clear(ap, fis); ap 2196 drivers/ata/sata_nv.c if (ap->pflags & ATA_PFLAG_FROZEN) ap 2200 drivers/ata/sata_nv.c nv_swncq_hotplug(ap, fis); ap 2207 drivers/ata/sata_nv.c if (ap->ops->scr_read(&ap->link, SCR_ERROR, &serror)) ap 2209 drivers/ata/sata_nv.c ap->ops->scr_write(&ap->link, SCR_ERROR, serror); ap 2217 drivers/ata/sata_nv.c ata_port_freeze(ap); ap 2232 drivers/ata/sata_nv.c ap->print_id, pp->qc_active, pp->dhfis_bits, ap 2234 drivers/ata/sata_nv.c if (nv_swncq_sdbfis(ap) < 0) ap 2253 drivers/ata/sata_nv.c ata_stat = ap->ops->sff_check_status(ap); ap 2259 drivers/ata/sata_nv.c qc = nv_swncq_qc_from_dq(ap); ap 2260 drivers/ata/sata_nv.c nv_swncq_issue_atacmd(ap, qc); ap 2269 drivers/ata/sata_nv.c pp->dmafis_bits |= (0x1 << nv_swncq_tag(ap)); ap 2271 drivers/ata/sata_nv.c nv_swncq_dmafis(ap); ap 2278 drivers/ata/sata_nv.c ata_port_freeze(ap); ap 2295 drivers/ata/sata_nv.c struct ata_port *ap = host->ports[i]; ap 2297 drivers/ata/sata_nv.c if (ap->link.sactive) { ap 2298 drivers/ata/sata_nv.c nv_swncq_host_interrupt(ap, (u16)irq_stat); ap 2302 drivers/ata/sata_nv.c nv_swncq_irq_clear(ap, 0xfff0); ap 2304 drivers/ata/sata_nv.c handled += nv_host_intr(ap, (u8)irq_stat); ap 140 drivers/ata/sata_promise.c static int pdc_common_port_start(struct ata_port *ap); ap 141 drivers/ata/sata_promise.c static int pdc_sata_port_start(struct ata_port *ap); ap 143 drivers/ata/sata_promise.c static void pdc_tf_load_mmio(struct ata_port *ap, const struct ata_taskfile *tf); ap 144 drivers/ata/sata_promise.c static void pdc_exec_command_mmio(struct ata_port *ap, const struct ata_taskfile *tf); ap 147 drivers/ata/sata_promise.c static void pdc_irq_clear(struct ata_port *ap); ap 149 drivers/ata/sata_promise.c static void pdc_freeze(struct ata_port *ap); ap 150 drivers/ata/sata_promise.c static void pdc_sata_freeze(struct ata_port *ap); ap 151 drivers/ata/sata_promise.c static void pdc_thaw(struct ata_port *ap); ap 152 drivers/ata/sata_promise.c static void pdc_sata_thaw(struct ata_port *ap); ap 157 drivers/ata/sata_promise.c static void pdc_error_handler(struct ata_port *ap); ap 159 drivers/ata/sata_promise.c static int pdc_pata_cable_detect(struct ata_port *ap); ap 160 drivers/ata/sata_promise.c static int pdc_sata_cable_detect(struct ata_port *ap); ap 315 drivers/ata/sata_promise.c static int pdc_common_port_start(struct ata_port *ap) ap 317 drivers/ata/sata_promise.c struct device *dev = ap->host->dev; ap 322 drivers/ata/sata_promise.c rc = ata_bmdma_port_start(ap); ap 334 drivers/ata/sata_promise.c ap->private_data = pp; ap 339 drivers/ata/sata_promise.c static int pdc_sata_port_start(struct ata_port *ap) ap 343 drivers/ata/sata_promise.c rc = pdc_common_port_start(ap); ap 348 drivers/ata/sata_promise.c if (ap->flags & PDC_FLAG_GEN_II) { ap 349 drivers/ata/sata_promise.c void __iomem *sata_mmio = ap->ioaddr.scr_addr; ap 360 drivers/ata/sata_promise.c static void pdc_fpdma_clear_interrupt_flag(struct ata_port *ap) ap 362 drivers/ata/sata_promise.c void __iomem *sata_mmio = ap->ioaddr.scr_addr; ap 375 drivers/ata/sata_promise.c static void pdc_fpdma_reset(struct ata_port *ap) ap 377 drivers/ata/sata_promise.c void __iomem *sata_mmio = ap->ioaddr.scr_addr; ap 390 drivers/ata/sata_promise.c pdc_fpdma_clear_interrupt_flag(ap); ap 393 drivers/ata/sata_promise.c static void pdc_not_at_command_packet_phase(struct ata_port *ap) ap 395 drivers/ata/sata_promise.c void __iomem *sata_mmio = ap->ioaddr.scr_addr; ap 409 drivers/ata/sata_promise.c static void pdc_clear_internal_debug_record_error_register(struct ata_port *ap) ap 411 drivers/ata/sata_promise.c void __iomem *sata_mmio = ap->ioaddr.scr_addr; ap 417 drivers/ata/sata_promise.c static void pdc_reset_port(struct ata_port *ap) ap 419 drivers/ata/sata_promise.c void __iomem *ata_ctlstat_mmio = ap->ioaddr.cmd_addr + PDC_CTLSTAT; ap 423 drivers/ata/sata_promise.c if (ap->flags & PDC_FLAG_GEN_II) ap 424 drivers/ata/sata_promise.c pdc_not_at_command_packet_phase(ap); ap 445 drivers/ata/sata_promise.c if (sata_scr_valid(&ap->link) && (ap->flags & PDC_FLAG_GEN_II)) { ap 446 drivers/ata/sata_promise.c pdc_fpdma_reset(ap); ap 447 drivers/ata/sata_promise.c pdc_clear_internal_debug_record_error_register(ap); ap 451 drivers/ata/sata_promise.c static int pdc_pata_cable_detect(struct ata_port *ap) ap 454 drivers/ata/sata_promise.c void __iomem *ata_mmio = ap->ioaddr.cmd_addr; ap 462 drivers/ata/sata_promise.c static int pdc_sata_cable_detect(struct ata_port *ap) ap 472 drivers/ata/sata_promise.c *val = readl(link->ap->ioaddr.scr_addr + (sc_reg * 4)); ap 481 drivers/ata/sata_promise.c writel(val, link->ap->ioaddr.scr_addr + (sc_reg * 4)); ap 487 drivers/ata/sata_promise.c struct ata_port *ap = qc->ap; ap 488 drivers/ata/sata_promise.c dma_addr_t sg_table = ap->bmdma_prd_dma; ap 491 drivers/ata/sata_promise.c struct pdc_port_priv *pp = ap->private_data; ap 517 drivers/ata/sata_promise.c if (sata_scr_valid(&ap->link)) ap 575 drivers/ata/sata_promise.c struct ata_port *ap = qc->ap; ap 576 drivers/ata/sata_promise.c struct ata_bmdma_prd *prd = ap->bmdma_prd; ap 638 drivers/ata/sata_promise.c struct pdc_port_priv *pp = qc->ap->private_data; ap 648 drivers/ata/sata_promise.c i = pdc_pkt_header(&qc->tf, qc->ap->bmdma_prd_dma, ap 683 drivers/ata/sata_promise.c static unsigned int pdc_sata_nr_ports(const struct ata_port *ap) ap 685 drivers/ata/sata_promise.c return (ap->flags & PDC_FLAG_4_PORTS) ? 4 : 2; ap 688 drivers/ata/sata_promise.c static unsigned int pdc_sata_ata_port_to_ata_no(const struct ata_port *ap) ap 690 drivers/ata/sata_promise.c const struct ata_host *host = ap->host; ap 691 drivers/ata/sata_promise.c unsigned int nr_ports = pdc_sata_nr_ports(ap); ap 694 drivers/ata/sata_promise.c for (i = 0; i < nr_ports && host->ports[i] != ap; ++i) ap 697 drivers/ata/sata_promise.c return pdc_port_no_to_ata_no(i, pdc_is_sataii_tx4(ap->flags)); ap 700 drivers/ata/sata_promise.c static void pdc_freeze(struct ata_port *ap) ap 702 drivers/ata/sata_promise.c void __iomem *ata_mmio = ap->ioaddr.cmd_addr; ap 712 drivers/ata/sata_promise.c static void pdc_sata_freeze(struct ata_port *ap) ap 714 drivers/ata/sata_promise.c struct ata_host *host = ap->host; ap 717 drivers/ata/sata_promise.c unsigned int ata_no = pdc_sata_ata_port_to_ata_no(ap); ap 732 drivers/ata/sata_promise.c pdc_freeze(ap); ap 735 drivers/ata/sata_promise.c static void pdc_thaw(struct ata_port *ap) ap 737 drivers/ata/sata_promise.c void __iomem *ata_mmio = ap->ioaddr.cmd_addr; ap 750 drivers/ata/sata_promise.c static void pdc_sata_thaw(struct ata_port *ap) ap 752 drivers/ata/sata_promise.c struct ata_host *host = ap->host; ap 755 drivers/ata/sata_promise.c unsigned int ata_no = pdc_sata_ata_port_to_ata_no(ap); ap 758 drivers/ata/sata_promise.c pdc_thaw(ap); ap 773 drivers/ata/sata_promise.c pdc_reset_port(link->ap); ap 777 drivers/ata/sata_promise.c static unsigned int pdc_ata_port_to_ata_no(const struct ata_port *ap) ap 779 drivers/ata/sata_promise.c void __iomem *ata_mmio = ap->ioaddr.cmd_addr; ap 780 drivers/ata/sata_promise.c void __iomem *host_mmio = ap->host->iomap[PDC_MMIO_BAR]; ap 786 drivers/ata/sata_promise.c static void pdc_hard_reset_port(struct ata_port *ap) ap 788 drivers/ata/sata_promise.c void __iomem *host_mmio = ap->host->iomap[PDC_MMIO_BAR]; ap 790 drivers/ata/sata_promise.c unsigned int ata_no = pdc_ata_port_to_ata_no(ap); ap 791 drivers/ata/sata_promise.c struct pdc_host_priv *hpriv = ap->host->private_data; ap 811 drivers/ata/sata_promise.c if (link->ap->flags & PDC_FLAG_GEN_II) ap 812 drivers/ata/sata_promise.c pdc_not_at_command_packet_phase(link->ap); ap 814 drivers/ata/sata_promise.c pdc_hard_reset_port(link->ap); ap 815 drivers/ata/sata_promise.c pdc_reset_port(link->ap); ap 824 drivers/ata/sata_promise.c static void pdc_error_handler(struct ata_port *ap) ap 826 drivers/ata/sata_promise.c if (!(ap->pflags & ATA_PFLAG_FROZEN)) ap 827 drivers/ata/sata_promise.c pdc_reset_port(ap); ap 829 drivers/ata/sata_promise.c ata_sff_error_handler(ap); ap 834 drivers/ata/sata_promise.c struct ata_port *ap = qc->ap; ap 838 drivers/ata/sata_promise.c pdc_reset_port(ap); ap 841 drivers/ata/sata_promise.c static void pdc_error_intr(struct ata_port *ap, struct ata_queued_cmd *qc, ap 844 drivers/ata/sata_promise.c struct ata_eh_info *ehi = &ap->link.eh_info; ap 861 drivers/ata/sata_promise.c if (sata_scr_valid(&ap->link)) { ap 864 drivers/ata/sata_promise.c pdc_sata_scr_read(&ap->link, SCR_ERROR, &serror); ap 870 drivers/ata/sata_promise.c pdc_reset_port(ap); ap 872 drivers/ata/sata_promise.c ata_port_abort(ap); ap 875 drivers/ata/sata_promise.c static unsigned int pdc_host_intr(struct ata_port *ap, ap 879 drivers/ata/sata_promise.c void __iomem *ata_mmio = ap->ioaddr.cmd_addr; ap 883 drivers/ata/sata_promise.c if (ap->flags & PDC_FLAG_GEN_II) ap 889 drivers/ata/sata_promise.c pdc_error_intr(ap, qc, port_status, err_mask); ap 898 drivers/ata/sata_promise.c qc->err_mask |= ac_err_mask(ata_wait_idle(ap)); ap 903 drivers/ata/sata_promise.c ap->stats.idle_irq++; ap 910 drivers/ata/sata_promise.c static void pdc_irq_clear(struct ata_port *ap) ap 912 drivers/ata/sata_promise.c void __iomem *ata_mmio = ap->ioaddr.cmd_addr; ap 920 drivers/ata/sata_promise.c struct ata_port *ap; ap 970 drivers/ata/sata_promise.c ap = host->ports[i]; ap 976 drivers/ata/sata_promise.c struct ata_eh_info *ehi = &ap->link.eh_info; ap 980 drivers/ata/sata_promise.c ata_port_freeze(ap); ap 990 drivers/ata/sata_promise.c qc = ata_qc_from_tag(ap, ap->link.active_tag); ap 992 drivers/ata/sata_promise.c handled += pdc_host_intr(ap, qc); ap 1005 drivers/ata/sata_promise.c struct ata_port *ap = qc->ap; ap 1006 drivers/ata/sata_promise.c struct pdc_port_priv *pp = ap->private_data; ap 1007 drivers/ata/sata_promise.c void __iomem *host_mmio = ap->host->iomap[PDC_MMIO_BAR]; ap 1008 drivers/ata/sata_promise.c void __iomem *ata_mmio = ap->ioaddr.cmd_addr; ap 1009 drivers/ata/sata_promise.c unsigned int port_no = ap->port_no; ap 1012 drivers/ata/sata_promise.c VPRINTK("ENTER, ap %p\n", ap); ap 1044 drivers/ata/sata_promise.c static void pdc_tf_load_mmio(struct ata_port *ap, const struct ata_taskfile *tf) ap 1047 drivers/ata/sata_promise.c ata_sff_tf_load(ap, tf); ap 1050 drivers/ata/sata_promise.c static void pdc_exec_command_mmio(struct ata_port *ap, ap 1054 drivers/ata/sata_promise.c ata_sff_exec_command(ap, tf); ap 1093 drivers/ata/sata_promise.c static void pdc_ata_setup_port(struct ata_port *ap, ap 1096 drivers/ata/sata_promise.c ap->ioaddr.cmd_addr = base; ap 1097 drivers/ata/sata_promise.c ap->ioaddr.data_addr = base; ap 1098 drivers/ata/sata_promise.c ap->ioaddr.feature_addr = ap 1099 drivers/ata/sata_promise.c ap->ioaddr.error_addr = base + 0x4; ap 1100 drivers/ata/sata_promise.c ap->ioaddr.nsect_addr = base + 0x8; ap 1101 drivers/ata/sata_promise.c ap->ioaddr.lbal_addr = base + 0xc; ap 1102 drivers/ata/sata_promise.c ap->ioaddr.lbam_addr = base + 0x10; ap 1103 drivers/ata/sata_promise.c ap->ioaddr.lbah_addr = base + 0x14; ap 1104 drivers/ata/sata_promise.c ap->ioaddr.device_addr = base + 0x18; ap 1105 drivers/ata/sata_promise.c ap->ioaddr.command_addr = ap 1106 drivers/ata/sata_promise.c ap->ioaddr.status_addr = base + 0x1c; ap 1107 drivers/ata/sata_promise.c ap->ioaddr.altstatus_addr = ap 1108 drivers/ata/sata_promise.c ap->ioaddr.ctl_addr = base + 0x38; ap 1109 drivers/ata/sata_promise.c ap->ioaddr.scr_addr = scr_addr; ap 1219 drivers/ata/sata_promise.c struct ata_port *ap = host->ports[i]; ap 1224 drivers/ata/sata_promise.c pdc_ata_setup_port(ap, host_mmio + ata_offset, host_mmio + scr_offset); ap 1226 drivers/ata/sata_promise.c ata_port_pbar_desc(ap, PDC_MMIO_BAR, -1, "mmio"); ap 1227 drivers/ata/sata_promise.c ata_port_pbar_desc(ap, PDC_MMIO_BAR, ata_offset, "ata"); ap 101 drivers/ata/sata_qstor.c static int qs_port_start(struct ata_port *ap); ap 106 drivers/ata/sata_qstor.c static void qs_freeze(struct ata_port *ap); ap 107 drivers/ata/sata_qstor.c static void qs_thaw(struct ata_port *ap); ap 109 drivers/ata/sata_qstor.c static void qs_error_handler(struct ata_port *ap); ap 171 drivers/ata/sata_qstor.c static inline void qs_enter_reg_mode(struct ata_port *ap) ap 173 drivers/ata/sata_qstor.c u8 __iomem *chan = qs_mmio_base(ap->host) + (ap->port_no * 0x4000); ap 174 drivers/ata/sata_qstor.c struct qs_port_priv *pp = ap->private_data; ap 181 drivers/ata/sata_qstor.c static inline void qs_reset_channel_logic(struct ata_port *ap) ap 183 drivers/ata/sata_qstor.c u8 __iomem *chan = qs_mmio_base(ap->host) + (ap->port_no * 0x4000); ap 187 drivers/ata/sata_qstor.c qs_enter_reg_mode(ap); ap 190 drivers/ata/sata_qstor.c static void qs_freeze(struct ata_port *ap) ap 192 drivers/ata/sata_qstor.c u8 __iomem *mmio_base = qs_mmio_base(ap->host); ap 195 drivers/ata/sata_qstor.c qs_enter_reg_mode(ap); ap 198 drivers/ata/sata_qstor.c static void qs_thaw(struct ata_port *ap) ap 200 drivers/ata/sata_qstor.c u8 __iomem *mmio_base = qs_mmio_base(ap->host); ap 202 drivers/ata/sata_qstor.c qs_enter_reg_mode(ap); ap 208 drivers/ata/sata_qstor.c struct ata_port *ap = link->ap; ap 210 drivers/ata/sata_qstor.c qs_reset_channel_logic(ap); ap 218 drivers/ata/sata_qstor.c *val = readl(link->ap->ioaddr.scr_addr + (sc_reg * 8)); ap 222 drivers/ata/sata_qstor.c static void qs_error_handler(struct ata_port *ap) ap 224 drivers/ata/sata_qstor.c qs_enter_reg_mode(ap); ap 225 drivers/ata/sata_qstor.c ata_sff_error_handler(ap); ap 232 drivers/ata/sata_qstor.c writel(val, link->ap->ioaddr.scr_addr + (sc_reg * 8)); ap 239 drivers/ata/sata_qstor.c struct ata_port *ap = qc->ap; ap 240 drivers/ata/sata_qstor.c struct qs_port_priv *pp = ap->private_data; ap 265 drivers/ata/sata_qstor.c struct qs_port_priv *pp = qc->ap->private_data; ap 273 drivers/ata/sata_qstor.c qs_enter_reg_mode(qc->ap); ap 302 drivers/ata/sata_qstor.c struct ata_port *ap = qc->ap; ap 303 drivers/ata/sata_qstor.c u8 __iomem *chan = qs_mmio_base(ap->host) + (ap->port_no * 0x4000); ap 305 drivers/ata/sata_qstor.c VPRINTK("ENTER, ap %p\n", ap); ap 315 drivers/ata/sata_qstor.c struct qs_port_priv *pp = qc->ap->private_data; ap 342 drivers/ata/sata_qstor.c struct ata_port *ap = qc->ap; ap 343 drivers/ata/sata_qstor.c struct ata_eh_info *ehi = &ap->link.eh_info; ap 349 drivers/ata/sata_qstor.c ata_port_abort(ap); ap 351 drivers/ata/sata_qstor.c ata_port_freeze(ap); ap 371 drivers/ata/sata_qstor.c struct ata_port *ap = host->ports[port_no]; ap 372 drivers/ata/sata_qstor.c struct qs_port_priv *pp = ap->private_data; ap 380 drivers/ata/sata_qstor.c qc = ata_qc_from_tag(ap, ap->link.active_tag); ap 385 drivers/ata/sata_qstor.c qs_enter_reg_mode(qc->ap); ap 402 drivers/ata/sata_qstor.c struct ata_port *ap = host->ports[port_no]; ap 403 drivers/ata/sata_qstor.c struct qs_port_priv *pp = ap->private_data; ap 406 drivers/ata/sata_qstor.c qc = ata_qc_from_tag(ap, ap->link.active_tag); ap 417 drivers/ata/sata_qstor.c ata_sff_check_status(ap); ap 425 drivers/ata/sata_qstor.c handled |= ata_sff_port_intr(ap, qc); ap 465 drivers/ata/sata_qstor.c static int qs_port_start(struct ata_port *ap) ap 467 drivers/ata/sata_qstor.c struct device *dev = ap->host->dev; ap 469 drivers/ata/sata_qstor.c void __iomem *mmio_base = qs_mmio_base(ap->host); ap 470 drivers/ata/sata_qstor.c void __iomem *chan = mmio_base + (ap->port_no * 0x4000); ap 480 drivers/ata/sata_qstor.c ap->private_data = pp; ap 482 drivers/ata/sata_qstor.c qs_enter_reg_mode(ap); ap 582 drivers/ata/sata_qstor.c struct ata_port *ap = host->ports[port_no]; ap 586 drivers/ata/sata_qstor.c qs_ata_setup_port(&ap->ioaddr, chan); ap 588 drivers/ata/sata_qstor.c ata_port_pbar_desc(ap, QS_MMIO_BAR, -1, "mmio"); ap 589 drivers/ata/sata_qstor.c ata_port_pbar_desc(ap, QS_MMIO_BAR, offset, "port"); ap 222 drivers/ata/sata_rcar.c static void sata_rcar_freeze(struct ata_port *ap) ap 224 drivers/ata/sata_rcar.c struct sata_rcar_priv *priv = ap->host->private_data; ap 229 drivers/ata/sata_rcar.c ata_sff_freeze(ap); ap 232 drivers/ata/sata_rcar.c static void sata_rcar_thaw(struct ata_port *ap) ap 234 drivers/ata/sata_rcar.c struct sata_rcar_priv *priv = ap->host->private_data; ap 240 drivers/ata/sata_rcar.c ata_sff_thaw(ap); ap 265 drivers/ata/sata_rcar.c static u8 sata_rcar_check_status(struct ata_port *ap) ap 267 drivers/ata/sata_rcar.c return ioread32(ap->ioaddr.status_addr); ap 270 drivers/ata/sata_rcar.c static u8 sata_rcar_check_altstatus(struct ata_port *ap) ap 272 drivers/ata/sata_rcar.c return ioread32(ap->ioaddr.altstatus_addr); ap 275 drivers/ata/sata_rcar.c static void sata_rcar_set_devctl(struct ata_port *ap, u8 ctl) ap 277 drivers/ata/sata_rcar.c iowrite32(ctl, ap->ioaddr.ctl_addr); ap 280 drivers/ata/sata_rcar.c static void sata_rcar_dev_select(struct ata_port *ap, unsigned int device) ap 282 drivers/ata/sata_rcar.c iowrite32(ATA_DEVICE_OBS, ap->ioaddr.device_addr); ap 283 drivers/ata/sata_rcar.c ata_sff_pause(ap); /* needed; also flushes, for mmio */ ap 286 drivers/ata/sata_rcar.c static unsigned int sata_rcar_ata_devchk(struct ata_port *ap, ap 289 drivers/ata/sata_rcar.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 292 drivers/ata/sata_rcar.c sata_rcar_dev_select(ap, device); ap 315 drivers/ata/sata_rcar.c struct ata_port *ap = link->ap; ap 317 drivers/ata/sata_rcar.c ata_msleep(ap, ATA_WAIT_AFTER_RESET); ap 322 drivers/ata/sata_rcar.c static int sata_rcar_bus_softreset(struct ata_port *ap, unsigned long deadline) ap 324 drivers/ata/sata_rcar.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 326 drivers/ata/sata_rcar.c DPRINTK("ata%u: bus reset via SRST\n", ap->print_id); ap 329 drivers/ata/sata_rcar.c iowrite32(ap->ctl, ioaddr->ctl_addr); ap 331 drivers/ata/sata_rcar.c iowrite32(ap->ctl | ATA_SRST, ioaddr->ctl_addr); ap 333 drivers/ata/sata_rcar.c iowrite32(ap->ctl, ioaddr->ctl_addr); ap 334 drivers/ata/sata_rcar.c ap->last_ctl = ap->ctl; ap 337 drivers/ata/sata_rcar.c return sata_rcar_wait_after_reset(&ap->link, deadline); ap 343 drivers/ata/sata_rcar.c struct ata_port *ap = link->ap; ap 349 drivers/ata/sata_rcar.c if (sata_rcar_ata_devchk(ap, 0)) ap 354 drivers/ata/sata_rcar.c rc = sata_rcar_bus_softreset(ap, deadline); ap 368 drivers/ata/sata_rcar.c static void sata_rcar_tf_load(struct ata_port *ap, ap 371 drivers/ata/sata_rcar.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 374 drivers/ata/sata_rcar.c if (tf->ctl != ap->last_ctl) { ap 376 drivers/ata/sata_rcar.c ap->last_ctl = tf->ctl; ap 377 drivers/ata/sata_rcar.c ata_wait_idle(ap); ap 413 drivers/ata/sata_rcar.c ata_wait_idle(ap); ap 416 drivers/ata/sata_rcar.c static void sata_rcar_tf_read(struct ata_port *ap, struct ata_taskfile *tf) ap 418 drivers/ata/sata_rcar.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 420 drivers/ata/sata_rcar.c tf->command = sata_rcar_check_status(ap); ap 436 drivers/ata/sata_rcar.c ap->last_ctl = tf->ctl; ap 440 drivers/ata/sata_rcar.c static void sata_rcar_exec_command(struct ata_port *ap, ap 443 drivers/ata/sata_rcar.c DPRINTK("ata%u: cmd 0x%X\n", ap->print_id, tf->command); ap 445 drivers/ata/sata_rcar.c iowrite32(tf->command, ap->ioaddr.command_addr); ap 446 drivers/ata/sata_rcar.c ata_sff_pause(ap); ap 453 drivers/ata/sata_rcar.c struct ata_port *ap = qc->dev->link->ap; ap 454 drivers/ata/sata_rcar.c void __iomem *data_addr = ap->ioaddr.data_addr; ap 490 drivers/ata/sata_rcar.c struct ata_port *ap; ap 496 drivers/ata/sata_rcar.c ap = qc->ap; ap 498 drivers/ata/sata_rcar.c for (count = 0; (ap->ops->sff_check_status(ap) & ATA_DRQ) && ap 500 drivers/ata/sata_rcar.c ioread32(ap->ioaddr.data_addr); ap 504 drivers/ata/sata_rcar.c ata_port_dbg(ap, "drained %d bytes to clear DRQ\n", count); ap 513 drivers/ata/sata_rcar.c *val = ioread32(link->ap->ioaddr.scr_addr + (sc_reg << 2)); ap 523 drivers/ata/sata_rcar.c iowrite32(val, link->ap->ioaddr.scr_addr + (sc_reg << 2)); ap 529 drivers/ata/sata_rcar.c struct ata_port *ap = qc->ap; ap 530 drivers/ata/sata_rcar.c struct ata_bmdma_prd *prd = ap->bmdma_prd; ap 563 drivers/ata/sata_rcar.c struct ata_port *ap = qc->ap; ap 565 drivers/ata/sata_rcar.c struct sata_rcar_priv *priv = ap->host->private_data; ap 571 drivers/ata/sata_rcar.c iowrite32(ap->bmdma_prd_dma, base + ATAPI_DTB_ADR_REG); ap 585 drivers/ata/sata_rcar.c ap->ops->sff_exec_command(ap, &qc->tf); ap 590 drivers/ata/sata_rcar.c struct ata_port *ap = qc->ap; ap 591 drivers/ata/sata_rcar.c struct sata_rcar_priv *priv = ap->host->private_data; ap 604 drivers/ata/sata_rcar.c struct ata_port *ap = qc->ap; ap 605 drivers/ata/sata_rcar.c struct sata_rcar_priv *priv = ap->host->private_data; ap 618 drivers/ata/sata_rcar.c ata_sff_dma_pause(ap); ap 621 drivers/ata/sata_rcar.c static u8 sata_rcar_bmdma_status(struct ata_port *ap) ap 623 drivers/ata/sata_rcar.c struct sata_rcar_priv *priv = ap->host->private_data; ap 675 drivers/ata/sata_rcar.c static void sata_rcar_serr_interrupt(struct ata_port *ap) ap 677 drivers/ata/sata_rcar.c struct sata_rcar_priv *priv = ap->host->private_data; ap 678 drivers/ata/sata_rcar.c struct ata_eh_info *ehi = &ap->link.eh_info; ap 701 drivers/ata/sata_rcar.c ata_port_freeze(ap); ap 703 drivers/ata/sata_rcar.c ata_port_abort(ap); ap 706 drivers/ata/sata_rcar.c static void sata_rcar_ata_interrupt(struct ata_port *ap) ap 711 drivers/ata/sata_rcar.c qc = ata_qc_from_tag(ap, ap->link.active_tag); ap 713 drivers/ata/sata_rcar.c handled |= ata_bmdma_port_intr(ap, qc); ap 717 drivers/ata/sata_rcar.c sata_rcar_check_status(ap); ap 726 drivers/ata/sata_rcar.c struct ata_port *ap; ap 739 drivers/ata/sata_rcar.c ap = host->ports[0]; ap 742 drivers/ata/sata_rcar.c sata_rcar_ata_interrupt(ap); ap 745 drivers/ata/sata_rcar.c sata_rcar_serr_interrupt(ap); ap 756 drivers/ata/sata_rcar.c struct ata_port *ap = host->ports[0]; ap 757 drivers/ata/sata_rcar.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 761 drivers/ata/sata_rcar.c ap->ops = &sata_rcar_port_ops; ap 762 drivers/ata/sata_rcar.c ap->pio_mask = ATA_PIO4; ap 763 drivers/ata/sata_rcar.c ap->udma_mask = ATA_UDMA6; ap 764 drivers/ata/sata_rcar.c ap->flags |= ATA_FLAG_SATA; ap 767 drivers/ata/sata_rcar.c ap->flags |= ATA_FLAG_NO_DIPM; ap 110 drivers/ata/sata_sil.c static void sil_freeze(struct ata_port *ap); ap 111 drivers/ata/sata_sil.c static void sil_thaw(struct ata_port *ap); ap 253 drivers/ata/sata_sil.c struct ata_port *ap = qc->ap; ap 254 drivers/ata/sata_sil.c void __iomem *mmio_base = ap->host->iomap[SIL_MMIO_BAR]; ap 255 drivers/ata/sata_sil.c void __iomem *bmdma2 = mmio_base + sil_port[ap->port_no].bmdma2; ap 261 drivers/ata/sata_sil.c ata_sff_dma_pause(ap); ap 266 drivers/ata/sata_sil.c struct ata_port *ap = qc->ap; ap 267 drivers/ata/sata_sil.c void __iomem *bmdma = ap->ioaddr.bmdma_addr; ap 270 drivers/ata/sata_sil.c iowrite32(ap->bmdma_prd_dma, bmdma + ATA_DMA_TABLE_OFS); ap 273 drivers/ata/sata_sil.c ap->ops->sff_exec_command(ap, &qc->tf); ap 279 drivers/ata/sata_sil.c struct ata_port *ap = qc->ap; ap 280 drivers/ata/sata_sil.c void __iomem *mmio_base = ap->host->iomap[SIL_MMIO_BAR]; ap 281 drivers/ata/sata_sil.c void __iomem *bmdma2 = mmio_base + sil_port[ap->port_no].bmdma2; ap 296 drivers/ata/sata_sil.c struct ata_port *ap = qc->ap; ap 300 drivers/ata/sata_sil.c prd = &ap->bmdma_prd[0]; ap 346 drivers/ata/sata_sil.c struct ata_port *ap = link->ap; ap 347 drivers/ata/sata_sil.c void __iomem *mmio_base = ap->host->iomap[SIL_MMIO_BAR]; ap 348 drivers/ata/sata_sil.c void __iomem *addr = mmio_base + sil_port[ap->port_no].xfer_mode; ap 376 drivers/ata/sata_sil.c static inline void __iomem *sil_scr_addr(struct ata_port *ap, ap 379 drivers/ata/sata_sil.c void __iomem *offset = ap->ioaddr.scr_addr; ap 398 drivers/ata/sata_sil.c void __iomem *mmio = sil_scr_addr(link->ap, sc_reg); ap 409 drivers/ata/sata_sil.c void __iomem *mmio = sil_scr_addr(link->ap, sc_reg); ap 418 drivers/ata/sata_sil.c static void sil_host_intr(struct ata_port *ap, u32 bmdma2) ap 420 drivers/ata/sata_sil.c struct ata_eh_info *ehi = &ap->link.eh_info; ap 421 drivers/ata/sata_sil.c struct ata_queued_cmd *qc = ata_qc_from_tag(ap, ap->link.active_tag); ap 431 drivers/ata/sata_sil.c sil_scr_read(&ap->link, SCR_ERROR, &serror); ap 432 drivers/ata/sata_sil.c sil_scr_write(&ap->link, SCR_ERROR, serror); ap 438 drivers/ata/sata_sil.c ap->link.eh_info.serror |= serror; ap 448 drivers/ata/sata_sil.c ap->ops->sff_check_status(ap); ap 453 drivers/ata/sata_sil.c switch (ap->hsm_task_state) { ap 469 drivers/ata/sata_sil.c ap->ops->bmdma_stop(qc); ap 473 drivers/ata/sata_sil.c ap->hsm_task_state = HSM_ST_ERR; ap 484 drivers/ata/sata_sil.c status = ap->ops->sff_check_status(ap); ap 489 drivers/ata/sata_sil.c ata_bmdma_irq_clear(ap); ap 492 drivers/ata/sata_sil.c ata_sff_hsm_move(ap, qc, status, 0); ap 502 drivers/ata/sata_sil.c ata_port_freeze(ap); ap 515 drivers/ata/sata_sil.c struct ata_port *ap = host->ports[i]; ap 516 drivers/ata/sata_sil.c u32 bmdma2 = readl(mmio_base + sil_port[ap->port_no].bmdma2); ap 519 drivers/ata/sata_sil.c if (ap->flags & SIL_FLAG_NO_SATA_IRQ) ap 526 drivers/ata/sata_sil.c sil_host_intr(ap, bmdma2); ap 535 drivers/ata/sata_sil.c static void sil_freeze(struct ata_port *ap) ap 537 drivers/ata/sata_sil.c void __iomem *mmio_base = ap->host->iomap[SIL_MMIO_BAR]; ap 541 drivers/ata/sata_sil.c writel(0, mmio_base + sil_port[ap->port_no].sien); ap 545 drivers/ata/sata_sil.c tmp |= SIL_MASK_IDE0_INT << ap->port_no; ap 554 drivers/ata/sata_sil.c iowrite8(ioread8(ap->ioaddr.bmdma_addr) & ~SIL_DMA_ENABLE, ap 555 drivers/ata/sata_sil.c ap->ioaddr.bmdma_addr); ap 560 drivers/ata/sata_sil.c ioread8(ap->ioaddr.bmdma_addr); ap 563 drivers/ata/sata_sil.c static void sil_thaw(struct ata_port *ap) ap 565 drivers/ata/sata_sil.c void __iomem *mmio_base = ap->host->iomap[SIL_MMIO_BAR]; ap 569 drivers/ata/sata_sil.c ap->ops->sff_check_status(ap); ap 570 drivers/ata/sata_sil.c ata_bmdma_irq_clear(ap); ap 573 drivers/ata/sata_sil.c if (!(ap->flags & SIL_FLAG_NO_SATA_IRQ)) ap 574 drivers/ata/sata_sil.c writel(SIL_SIEN_N, mmio_base + sil_port[ap->port_no].sien); ap 578 drivers/ata/sata_sil.c tmp &= ~(SIL_MASK_IDE0_INT << ap->port_no); ap 612 drivers/ata/sata_sil.c struct ata_port *ap = dev->link->ap; ap 613 drivers/ata/sata_sil.c int print_info = ap->link.eh_context.i.flags & ATA_EHI_PRINTINFO; ap 630 drivers/ata/sata_sil.c ((ap->flags & SIL_FLAG_MOD15WRITE) && ap 767 drivers/ata/sata_sil.c struct ata_port *ap = host->ports[i]; ap 768 drivers/ata/sata_sil.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 777 drivers/ata/sata_sil.c ata_port_pbar_desc(ap, SIL_MMIO_BAR, -1, "mmio"); ap 778 drivers/ata/sata_sil.c ata_port_pbar_desc(ap, SIL_MMIO_BAR, sil_port[i].tf, "tf"); ap 332 drivers/ata/sata_sil24.c static void sil24_pmp_attach(struct ata_port *ap); ap 333 drivers/ata/sata_sil24.c static void sil24_pmp_detach(struct ata_port *ap); ap 334 drivers/ata/sata_sil24.c static void sil24_freeze(struct ata_port *ap); ap 335 drivers/ata/sata_sil24.c static void sil24_thaw(struct ata_port *ap); ap 342 drivers/ata/sata_sil24.c static void sil24_error_handler(struct ata_port *ap); ap 344 drivers/ata/sata_sil24.c static int sil24_port_start(struct ata_port *ap); ap 350 drivers/ata/sata_sil24.c static int sil24_port_resume(struct ata_port *ap); ap 459 drivers/ata/sata_sil24.c static unsigned long sil24_port_offset(struct ata_port *ap) ap 461 drivers/ata/sata_sil24.c return ap->port_no * PORT_REGS_SIZE; ap 464 drivers/ata/sata_sil24.c static void __iomem *sil24_port_base(struct ata_port *ap) ap 466 drivers/ata/sata_sil24.c return ap->host->iomap[SIL24_PORT_BAR] + sil24_port_offset(ap); ap 471 drivers/ata/sata_sil24.c void __iomem *port = sil24_port_base(dev->link->ap); ap 479 drivers/ata/sata_sil24.c static void sil24_read_tf(struct ata_port *ap, int tag, struct ata_taskfile *tf) ap 481 drivers/ata/sata_sil24.c void __iomem *port = sil24_port_base(ap); ap 499 drivers/ata/sata_sil24.c void __iomem *scr_addr = sil24_port_base(link->ap) + PORT_SCONTROL; ap 510 drivers/ata/sata_sil24.c void __iomem *scr_addr = sil24_port_base(link->ap) + PORT_SCONTROL; ap 519 drivers/ata/sata_sil24.c static void sil24_config_port(struct ata_port *ap) ap 521 drivers/ata/sata_sil24.c void __iomem *port = sil24_port_base(ap); ap 524 drivers/ata/sata_sil24.c if (ap->flags & SIL24_FLAG_PCIX_IRQ_WOC) ap 544 drivers/ata/sata_sil24.c static void sil24_config_pmp(struct ata_port *ap, int attached) ap 546 drivers/ata/sata_sil24.c void __iomem *port = sil24_port_base(ap); ap 554 drivers/ata/sata_sil24.c static void sil24_clear_pmp(struct ata_port *ap) ap 556 drivers/ata/sata_sil24.c void __iomem *port = sil24_port_base(ap); ap 569 drivers/ata/sata_sil24.c static int sil24_init_port(struct ata_port *ap) ap 571 drivers/ata/sata_sil24.c void __iomem *port = sil24_port_base(ap); ap 572 drivers/ata/sata_sil24.c struct sil24_port_priv *pp = ap->private_data; ap 576 drivers/ata/sata_sil24.c if (sata_pmp_attached(ap)) ap 577 drivers/ata/sata_sil24.c sil24_clear_pmp(ap); ap 580 drivers/ata/sata_sil24.c ata_wait_register(ap, port + PORT_CTRL_STAT, ap 582 drivers/ata/sata_sil24.c tmp = ata_wait_register(ap, port + PORT_CTRL_STAT, ap 587 drivers/ata/sata_sil24.c ap->link.eh_context.i.action |= ATA_EH_RESET; ap 594 drivers/ata/sata_sil24.c static int sil24_exec_polled_cmd(struct ata_port *ap, int pmp, ap 599 drivers/ata/sata_sil24.c void __iomem *port = sil24_port_base(ap); ap 600 drivers/ata/sata_sil24.c struct sil24_port_priv *pp = ap->private_data; ap 622 drivers/ata/sata_sil24.c irq_stat = ata_wait_register(ap, port + PORT_IRQ_STAT, irq_mask, 0x0, ap 632 drivers/ata/sata_sil24.c sil24_init_port(ap); ap 649 drivers/ata/sata_sil24.c struct ata_port *ap = link->ap; ap 659 drivers/ata/sata_sil24.c if (sil24_init_port(ap)) { ap 669 drivers/ata/sata_sil24.c rc = sil24_exec_polled_cmd(ap, pmp, &tf, 0, PRB_CTRL_SRST, ap 679 drivers/ata/sata_sil24.c sil24_read_tf(ap, 0, &tf); ap 693 drivers/ata/sata_sil24.c struct ata_port *ap = link->ap; ap 694 drivers/ata/sata_sil24.c void __iomem *port = sil24_port_base(ap); ap 695 drivers/ata/sata_sil24.c struct sil24_port_priv *pp = ap->private_data; ap 706 drivers/ata/sata_sil24.c ata_port_warn(ap, ap 710 drivers/ata/sata_sil24.c ata_msleep(ap, 10); ap 712 drivers/ata/sata_sil24.c ata_wait_register(ap, port + PORT_CTRL_STAT, PORT_CS_RDY, 0, ap 716 drivers/ata/sata_sil24.c sil24_config_port(ap); ap 717 drivers/ata/sata_sil24.c sil24_config_pmp(ap, ap->nr_pmp_links); ap 731 drivers/ata/sata_sil24.c tmp = ata_wait_register(ap, port + PORT_CTRL_STAT, ap 791 drivers/ata/sata_sil24.c struct ata_port *ap = link->ap; ap 816 drivers/ata/sata_sil24.c if (unlikely(ap->excl_link)) { ap 817 drivers/ata/sata_sil24.c if (link == ap->excl_link) { ap 818 drivers/ata/sata_sil24.c if (ap->nr_active_links) ap 824 drivers/ata/sata_sil24.c ap->excl_link = link; ap 825 drivers/ata/sata_sil24.c if (ap->nr_active_links) ap 835 drivers/ata/sata_sil24.c struct ata_port *ap = qc->ap; ap 836 drivers/ata/sata_sil24.c struct sil24_port_priv *pp = ap->private_data; ap 881 drivers/ata/sata_sil24.c struct ata_port *ap = qc->ap; ap 882 drivers/ata/sata_sil24.c struct sil24_port_priv *pp = ap->private_data; ap 883 drivers/ata/sata_sil24.c void __iomem *port = sil24_port_base(ap); ap 904 drivers/ata/sata_sil24.c sil24_read_tf(qc->ap, qc->hw_tag, &qc->result_tf); ap 908 drivers/ata/sata_sil24.c static void sil24_pmp_attach(struct ata_port *ap) ap 910 drivers/ata/sata_sil24.c u32 *gscr = ap->link.device->gscr; ap 912 drivers/ata/sata_sil24.c sil24_config_pmp(ap, 1); ap 913 drivers/ata/sata_sil24.c sil24_init_port(ap); ap 917 drivers/ata/sata_sil24.c ata_port_info(ap, ap 919 drivers/ata/sata_sil24.c ap->flags &= ~ATA_FLAG_NCQ; ap 923 drivers/ata/sata_sil24.c static void sil24_pmp_detach(struct ata_port *ap) ap 925 drivers/ata/sata_sil24.c sil24_init_port(ap); ap 926 drivers/ata/sata_sil24.c sil24_config_pmp(ap, 0); ap 928 drivers/ata/sata_sil24.c ap->flags |= ATA_FLAG_NCQ; ap 936 drivers/ata/sata_sil24.c rc = sil24_init_port(link->ap); ap 945 drivers/ata/sata_sil24.c static void sil24_freeze(struct ata_port *ap) ap 947 drivers/ata/sata_sil24.c void __iomem *port = sil24_port_base(ap); ap 955 drivers/ata/sata_sil24.c static void sil24_thaw(struct ata_port *ap) ap 957 drivers/ata/sata_sil24.c void __iomem *port = sil24_port_base(ap); ap 968 drivers/ata/sata_sil24.c static void sil24_error_intr(struct ata_port *ap) ap 970 drivers/ata/sata_sil24.c void __iomem *port = sil24_port_base(ap); ap 971 drivers/ata/sata_sil24.c struct sil24_port_priv *pp = ap->private_data; ap 983 drivers/ata/sata_sil24.c link = &ap->link; ap 991 drivers/ata/sata_sil24.c sata_async_notification(ap); ap 1023 drivers/ata/sata_sil24.c if (ap->nr_active_links >= 3) { ap 1032 drivers/ata/sata_sil24.c if (sata_pmp_attached(ap)) { ap 1036 drivers/ata/sata_sil24.c if (pmp < ap->nr_pmp_links) { ap 1037 drivers/ata/sata_sil24.c link = &ap->pmp_link[pmp]; ap 1039 drivers/ata/sata_sil24.c qc = ata_qc_from_tag(ap, link->active_tag); ap 1050 drivers/ata/sata_sil24.c qc = ata_qc_from_tag(ap, link->active_tag); ap 1080 drivers/ata/sata_sil24.c if (sata_pmp_attached(ap)) ap 1086 drivers/ata/sata_sil24.c ata_port_freeze(ap); ap 1091 drivers/ata/sata_sil24.c ata_port_abort(ap); ap 1095 drivers/ata/sata_sil24.c static inline void sil24_host_intr(struct ata_port *ap) ap 1097 drivers/ata/sata_sil24.c void __iomem *port = sil24_port_base(ap); ap 1108 drivers/ata/sata_sil24.c if (ap->flags & SIL24_FLAG_PCIX_IRQ_WOC) ap 1114 drivers/ata/sata_sil24.c sil24_error_intr(ap); ap 1119 drivers/ata/sata_sil24.c rc = ata_qc_complete_multiple(ap, qc_active); ap 1123 drivers/ata/sata_sil24.c struct ata_eh_info *ehi = &ap->link.eh_info; ap 1126 drivers/ata/sata_sil24.c ata_port_freeze(ap); ap 1131 drivers/ata/sata_sil24.c if (!(ap->flags & SIL24_FLAG_PCIX_IRQ_WOC) && ata_ratelimit()) ap 1132 drivers/ata/sata_sil24.c ata_port_info(ap, ap 1134 drivers/ata/sata_sil24.c slot_stat, ap->link.active_tag, ap->link.sactive); ap 1169 drivers/ata/sata_sil24.c static void sil24_error_handler(struct ata_port *ap) ap 1171 drivers/ata/sata_sil24.c struct sil24_port_priv *pp = ap->private_data; ap 1173 drivers/ata/sata_sil24.c if (sil24_init_port(ap)) ap 1174 drivers/ata/sata_sil24.c ata_eh_freeze_port(ap); ap 1176 drivers/ata/sata_sil24.c sata_pmp_error_handler(ap); ap 1183 drivers/ata/sata_sil24.c struct ata_port *ap = qc->ap; ap 1186 drivers/ata/sata_sil24.c if ((qc->flags & ATA_QCFLAG_FAILED) && sil24_init_port(ap)) ap 1187 drivers/ata/sata_sil24.c ata_eh_freeze_port(ap); ap 1190 drivers/ata/sata_sil24.c static int sil24_port_start(struct ata_port *ap) ap 1192 drivers/ata/sata_sil24.c struct device *dev = ap->host->dev; ap 1209 drivers/ata/sata_sil24.c ap->private_data = pp; ap 1211 drivers/ata/sata_sil24.c ata_port_pbar_desc(ap, SIL24_HOST_BAR, -1, "host"); ap 1212 drivers/ata/sata_sil24.c ata_port_pbar_desc(ap, SIL24_PORT_BAR, sil24_port_offset(ap), "port"); ap 1231 drivers/ata/sata_sil24.c struct ata_port *ap = host->ports[i]; ap 1232 drivers/ata/sata_sil24.c void __iomem *port = sil24_port_base(ap); ap 1251 drivers/ata/sata_sil24.c sil24_config_port(ap); ap 1350 drivers/ata/sata_sil24.c static int sil24_port_resume(struct ata_port *ap) ap 1352 drivers/ata/sata_sil24.c sil24_config_pmp(ap, ap->nr_pmp_links); ap 101 drivers/ata/sata_sis.c struct ata_port *ap = link->ap; ap 102 drivers/ata/sata_sis.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 106 drivers/ata/sata_sis.c if (ap->port_no) { ap 131 drivers/ata/sata_sis.c struct pci_dev *pdev = to_pci_dev(link->ap->host->dev); ap 144 drivers/ata/sata_sis.c struct pci_dev *pdev = to_pci_dev(link->ap->host->dev); ap 153 drivers/ata/sata_sis.c struct ata_port *ap = link->ap; ap 154 drivers/ata/sata_sis.c void __iomem *base = ap->ioaddr.scr_addr + link->pmp * 0x10; ap 159 drivers/ata/sata_sis.c if (ap->flags & SIS_FLAG_CFGSCR) ap 168 drivers/ata/sata_sis.c struct ata_port *ap = link->ap; ap 169 drivers/ata/sata_sis.c void __iomem *base = ap->ioaddr.scr_addr + link->pmp * 0x10; ap 174 drivers/ata/sata_sis.c if (ap->flags & SIS_FLAG_CFGSCR) ap 270 drivers/ata/sata_sis.c struct ata_port *ap = host->ports[i]; ap 272 drivers/ata/sata_sis.c if (ap->flags & ATA_FLAG_SATA && ap 273 drivers/ata/sata_sis.c ap->flags & ATA_FLAG_SLAVE_POSS) { ap 274 drivers/ata/sata_sis.c rc = ata_slave_link_init(ap); ap 79 drivers/ata/sata_svw.c static u8 k2_stat_check_status(struct ata_port *ap); ap 86 drivers/ata/sata_svw.c if (qc->ap->flags & K2_FLAG_NO_ATAPI_DMA) ap 110 drivers/ata/sata_svw.c *val = readl(link->ap->ioaddr.scr_addr + (sc_reg * 4)); ap 120 drivers/ata/sata_svw.c writel(val, link->ap->ioaddr.scr_addr + (sc_reg * 4)); ap 128 drivers/ata/sata_svw.c void __iomem *mmio = link->ap->ioaddr.bmdma_addr; ap 145 drivers/ata/sata_svw.c void __iomem *mmio = link->ap->ioaddr.bmdma_addr; ap 158 drivers/ata/sata_svw.c static void k2_sata_tf_load(struct ata_port *ap, const struct ata_taskfile *tf) ap 160 drivers/ata/sata_svw.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 163 drivers/ata/sata_svw.c if (tf->ctl != ap->last_ctl) { ap 165 drivers/ata/sata_svw.c ap->last_ctl = tf->ctl; ap 166 drivers/ata/sata_svw.c ata_wait_idle(ap); ap 190 drivers/ata/sata_svw.c ata_wait_idle(ap); ap 194 drivers/ata/sata_svw.c static void k2_sata_tf_read(struct ata_port *ap, struct ata_taskfile *tf) ap 196 drivers/ata/sata_svw.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 199 drivers/ata/sata_svw.c tf->command = k2_stat_check_status(ap); ap 232 drivers/ata/sata_svw.c struct ata_port *ap = qc->ap; ap 235 drivers/ata/sata_svw.c void __iomem *mmio = ap->ioaddr.bmdma_addr; ap 239 drivers/ata/sata_svw.c writel(ap->bmdma_prd_dma, mmio + ATA_DMA_TABLE_OFS); ap 250 drivers/ata/sata_svw.c ap->ops->sff_exec_command(ap, &qc->tf); ap 263 drivers/ata/sata_svw.c struct ata_port *ap = qc->ap; ap 264 drivers/ata/sata_svw.c void __iomem *mmio = ap->ioaddr.bmdma_addr; ap 294 drivers/ata/sata_svw.c ap->ops->sff_exec_command(ap, &qc->tf); ap 298 drivers/ata/sata_svw.c static u8 k2_stat_check_status(struct ata_port *ap) ap 300 drivers/ata/sata_svw.c return readl(ap->ioaddr.status_addr); ap 305 drivers/ata/sata_svw.c struct ata_port *ap; ap 310 drivers/ata/sata_svw.c ap = ata_shost_to_port(shost); ap 311 drivers/ata/sata_svw.c if (ap == NULL) ap 315 drivers/ata/sata_svw.c np = pci_device_to_OF_node(to_pci_dev(ap->host->dev)); ap 320 drivers/ata/sata_svw.c index = (ap == ap->host->ports[0]) ? 0 : 1; ap 465 drivers/ata/sata_svw.c struct ata_port *ap = host->ports[i]; ap 468 drivers/ata/sata_svw.c k2_sata_setup_port(&ap->ioaddr, mmio_base + offset); ap 470 drivers/ata/sata_svw.c ata_port_pbar_desc(ap, 5, -1, "mmio"); ap 471 drivers/ata/sata_svw.c ata_port_pbar_desc(ap, 5, offset, "port"); ap 201 drivers/ata/sata_sx4.c static void pdc_error_handler(struct ata_port *ap); ap 202 drivers/ata/sata_sx4.c static void pdc_freeze(struct ata_port *ap); ap 203 drivers/ata/sata_sx4.c static void pdc_thaw(struct ata_port *ap); ap 204 drivers/ata/sata_sx4.c static int pdc_port_start(struct ata_port *ap); ap 206 drivers/ata/sata_sx4.c static void pdc_tf_load_mmio(struct ata_port *ap, const struct ata_taskfile *tf); ap 207 drivers/ata/sata_sx4.c static void pdc_exec_command_mmio(struct ata_port *ap, const struct ata_taskfile *tf); ap 220 drivers/ata/sata_sx4.c static void pdc20621_irq_clear(struct ata_port *ap); ap 283 drivers/ata/sata_sx4.c static int pdc_port_start(struct ata_port *ap) ap 285 drivers/ata/sata_sx4.c struct device *dev = ap->host->dev; ap 296 drivers/ata/sata_sx4.c ap->private_data = pp; ap 440 drivers/ata/sata_sx4.c struct ata_port *ap = qc->ap; ap 441 drivers/ata/sata_sx4.c struct pdc_port_priv *pp = ap->private_data; ap 442 drivers/ata/sata_sx4.c void __iomem *mmio = ap->host->iomap[PDC_MMIO_BAR]; ap 443 drivers/ata/sata_sx4.c void __iomem *dimm_mmio = ap->host->iomap[PDC_DIMM_BAR]; ap 444 drivers/ata/sata_sx4.c unsigned int portno = ap->port_no; ap 450 drivers/ata/sata_sx4.c VPRINTK("ata%u: ENTER\n", ap->print_id); ap 500 drivers/ata/sata_sx4.c struct ata_port *ap = qc->ap; ap 501 drivers/ata/sata_sx4.c struct pdc_port_priv *pp = ap->private_data; ap 502 drivers/ata/sata_sx4.c void __iomem *mmio = ap->host->iomap[PDC_MMIO_BAR]; ap 503 drivers/ata/sata_sx4.c void __iomem *dimm_mmio = ap->host->iomap[PDC_DIMM_BAR]; ap 504 drivers/ata/sata_sx4.c unsigned int portno = ap->port_no; ap 507 drivers/ata/sata_sx4.c VPRINTK("ata%u: ENTER\n", ap->print_id); ap 551 drivers/ata/sata_sx4.c struct ata_port *ap = qc->ap; ap 552 drivers/ata/sata_sx4.c struct ata_host *host = ap->host; ap 569 drivers/ata/sata_sx4.c struct ata_port *ap = qc->ap; ap 570 drivers/ata/sata_sx4.c struct pdc_host_priv *pp = ap->host->private_data; ap 587 drivers/ata/sata_sx4.c struct ata_port *ap = qc->ap; ap 588 drivers/ata/sata_sx4.c struct pdc_host_priv *pp = ap->host->private_data; ap 605 drivers/ata/sata_sx4.c struct ata_port *ap = qc->ap; ap 606 drivers/ata/sata_sx4.c unsigned int port_no = ap->port_no; ap 607 drivers/ata/sata_sx4.c void __iomem *dimm_mmio = ap->host->iomap[PDC_DIMM_BAR]; ap 623 drivers/ata/sata_sx4.c struct ata_port *ap = qc->ap; ap 624 drivers/ata/sata_sx4.c struct ata_host *host = ap->host; ap 625 drivers/ata/sata_sx4.c unsigned int port_no = ap->port_no; ap 634 drivers/ata/sata_sx4.c VPRINTK("ata%u: ENTER\n", ap->print_id); ap 655 drivers/ata/sata_sx4.c ap->ioaddr.cmd_addr + PDC_PKT_SUBMIT); ap 656 drivers/ata/sata_sx4.c readl(ap->ioaddr.cmd_addr + PDC_PKT_SUBMIT); ap 686 drivers/ata/sata_sx4.c static inline unsigned int pdc20621_host_intr(struct ata_port *ap, ap 691 drivers/ata/sata_sx4.c unsigned int port_no = ap->port_no; ap 704 drivers/ata/sata_sx4.c VPRINTK("ata%u: read hdma, 0x%x 0x%x\n", ap->print_id, ap 707 drivers/ata/sata_sx4.c qc->err_mask |= ac_err_mask(ata_wait_idle(ap)); ap 715 drivers/ata/sata_sx4.c VPRINTK("ata%u: read ata, 0x%x 0x%x\n", ap->print_id, ap 730 drivers/ata/sata_sx4.c VPRINTK("ata%u: write hdma, 0x%x 0x%x\n", ap->print_id, ap 737 drivers/ata/sata_sx4.c ap->ioaddr.cmd_addr + PDC_PKT_SUBMIT); ap 738 drivers/ata/sata_sx4.c readl(ap->ioaddr.cmd_addr + PDC_PKT_SUBMIT); ap 743 drivers/ata/sata_sx4.c VPRINTK("ata%u: write ata, 0x%x 0x%x\n", ap->print_id, ap 746 drivers/ata/sata_sx4.c qc->err_mask |= ac_err_mask(ata_wait_idle(ap)); ap 755 drivers/ata/sata_sx4.c status = ata_sff_busy_wait(ap, ATA_BUSY | ATA_DRQ, 1000); ap 762 drivers/ata/sata_sx4.c ap->stats.idle_irq++; ap 768 drivers/ata/sata_sx4.c static void pdc20621_irq_clear(struct ata_port *ap) ap 770 drivers/ata/sata_sx4.c ioread8(ap->ioaddr.status_addr); ap 776 drivers/ata/sata_sx4.c struct ata_port *ap; ap 813 drivers/ata/sata_sx4.c ap = NULL; ap 815 drivers/ata/sata_sx4.c ap = host->ports[port_no]; ap 817 drivers/ata/sata_sx4.c VPRINTK("seq %u, port_no %u, ap %p, tmp %x\n", i, port_no, ap, tmp); ap 818 drivers/ata/sata_sx4.c if (tmp && ap) { ap 821 drivers/ata/sata_sx4.c qc = ata_qc_from_tag(ap, ap->link.active_tag); ap 823 drivers/ata/sata_sx4.c handled += pdc20621_host_intr(ap, qc, (i > 4), ap 837 drivers/ata/sata_sx4.c static void pdc_freeze(struct ata_port *ap) ap 839 drivers/ata/sata_sx4.c void __iomem *mmio = ap->ioaddr.cmd_addr; ap 851 drivers/ata/sata_sx4.c static void pdc_thaw(struct ata_port *ap) ap 853 drivers/ata/sata_sx4.c void __iomem *mmio = ap->ioaddr.cmd_addr; ap 859 drivers/ata/sata_sx4.c ioread8(ap->ioaddr.status_addr); ap 868 drivers/ata/sata_sx4.c static void pdc_reset_port(struct ata_port *ap) ap 870 drivers/ata/sata_sx4.c void __iomem *mmio = ap->ioaddr.cmd_addr + PDC_CTLSTAT; ap 895 drivers/ata/sata_sx4.c pdc_reset_port(link->ap); ap 899 drivers/ata/sata_sx4.c static void pdc_error_handler(struct ata_port *ap) ap 901 drivers/ata/sata_sx4.c if (!(ap->pflags & ATA_PFLAG_FROZEN)) ap 902 drivers/ata/sata_sx4.c pdc_reset_port(ap); ap 904 drivers/ata/sata_sx4.c ata_sff_error_handler(ap); ap 909 drivers/ata/sata_sx4.c struct ata_port *ap = qc->ap; ap 913 drivers/ata/sata_sx4.c pdc_reset_port(ap); ap 946 drivers/ata/sata_sx4.c static void pdc_tf_load_mmio(struct ata_port *ap, const struct ata_taskfile *tf) ap 950 drivers/ata/sata_sx4.c ata_sff_tf_load(ap, tf); ap 954 drivers/ata/sata_sx4.c static void pdc_exec_command_mmio(struct ata_port *ap, const struct ata_taskfile *tf) ap 958 drivers/ata/sata_sx4.c ata_sff_exec_command(ap, tf); ap 1461 drivers/ata/sata_sx4.c struct ata_port *ap = host->ports[i]; ap 1465 drivers/ata/sata_sx4.c pdc_sata_setup_port(&ap->ioaddr, base + offset); ap 1467 drivers/ata/sata_sx4.c ata_port_pbar_desc(ap, PDC_MMIO_BAR, -1, "mmio"); ap 1468 drivers/ata/sata_sx4.c ata_port_pbar_desc(ap, PDC_DIMM_BAR, -1, "dimm"); ap 1469 drivers/ata/sata_sx4.c ata_port_pbar_desc(ap, PDC_MMIO_BAR, offset, "port"); ap 87 drivers/ata/sata_uli.c static unsigned int get_scr_cfg_addr(struct ata_port *ap, unsigned int sc_reg) ap 89 drivers/ata/sata_uli.c struct uli_priv *hpriv = ap->host->private_data; ap 90 drivers/ata/sata_uli.c return hpriv->scr_cfg_addr[ap->port_no] + (4 * sc_reg); ap 95 drivers/ata/sata_uli.c struct pci_dev *pdev = to_pci_dev(link->ap->host->dev); ap 96 drivers/ata/sata_uli.c unsigned int cfg_addr = get_scr_cfg_addr(link->ap, sc_reg); ap 105 drivers/ata/sata_uli.c struct pci_dev *pdev = to_pci_dev(link->ap->host->dev); ap 106 drivers/ata/sata_uli.c unsigned int cfg_addr = get_scr_cfg_addr(link->ap, scr); ap 77 drivers/ata/sata_via.c static void svia_tf_load(struct ata_port *ap, const struct ata_taskfile *tf); ap 78 drivers/ata/sata_via.c static void svia_noop_freeze(struct ata_port *ap); ap 81 drivers/ata/sata_via.c static int vt6421_pata_cable_detect(struct ata_port *ap); ap 82 drivers/ata/sata_via.c static void vt6421_set_pio_mode(struct ata_port *ap, struct ata_device *adev); ap 83 drivers/ata/sata_via.c static void vt6421_set_dma_mode(struct ata_port *ap, struct ata_device *adev); ap 84 drivers/ata/sata_via.c static void vt6421_error_handler(struct ata_port *ap); ap 189 drivers/ata/sata_via.c *val = ioread32(link->ap->ioaddr.scr_addr + (4 * sc_reg)); ap 197 drivers/ata/sata_via.c iowrite32(val, link->ap->ioaddr.scr_addr + (4 * sc_reg)); ap 204 drivers/ata/sata_via.c struct pci_dev *pdev = to_pci_dev(link->ap->host->dev); ap 205 drivers/ata/sata_via.c int slot = 2 * link->ap->port_no + link->pmp; ap 252 drivers/ata/sata_via.c struct pci_dev *pdev = to_pci_dev(link->ap->host->dev); ap 253 drivers/ata/sata_via.c int slot = 2 * link->ap->port_no + link->pmp; ap 289 drivers/ata/sata_via.c static void svia_tf_load(struct ata_port *ap, const struct ata_taskfile *tf) ap 293 drivers/ata/sata_via.c if (tf->ctl != ap->last_ctl) { ap 298 drivers/ata/sata_via.c ata_sff_tf_load(ap, tf); ap 301 drivers/ata/sata_via.c static void svia_noop_freeze(struct ata_port *ap) ap 306 drivers/ata/sata_via.c ap->ops->sff_check_status(ap); ap 307 drivers/ata/sata_via.c ata_bmdma_irq_clear(ap); ap 332 drivers/ata/sata_via.c struct ata_port *ap = link->ap; ap 333 drivers/ata/sata_via.c struct ata_eh_context *ehc = &ap->link.eh_context; ap 339 drivers/ata/sata_via.c if (!(ap->pflags & ATA_PFLAG_LOADING)) ap 348 drivers/ata/sata_via.c ata_msleep(link->ap, 200); ap 360 drivers/ata/sata_via.c ata_port_info(ap, ap 382 drivers/ata/sata_via.c struct ata_port *ap = qc->ap; ap 386 drivers/ata/sata_via.c ata_sff_pause(ap); ap 391 drivers/ata/sata_via.c static int vt6421_pata_cable_detect(struct ata_port *ap) ap 393 drivers/ata/sata_via.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 402 drivers/ata/sata_via.c static void vt6421_set_pio_mode(struct ata_port *ap, struct ata_device *adev) ap 404 drivers/ata/sata_via.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 410 drivers/ata/sata_via.c static void vt6421_set_dma_mode(struct ata_port *ap, struct ata_device *adev) ap 412 drivers/ata/sata_via.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 436 drivers/ata/sata_via.c static void vt6421_init_addrs(struct ata_port *ap) ap 438 drivers/ata/sata_via.c void __iomem * const * iomap = ap->host->iomap; ap 439 drivers/ata/sata_via.c void __iomem *reg_addr = iomap[ap->port_no]; ap 440 drivers/ata/sata_via.c void __iomem *bmdma_addr = iomap[4] + (ap->port_no * 8); ap 441 drivers/ata/sata_via.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 448 drivers/ata/sata_via.c ioaddr->scr_addr = vt6421_scr_addr(iomap[5], ap->port_no); ap 452 drivers/ata/sata_via.c ata_port_pbar_desc(ap, ap->port_no, -1, "port"); ap 453 drivers/ata/sata_via.c ata_port_pbar_desc(ap, 4, ap->port_no * 8, "bmdma"); ap 574 drivers/ata/sata_via.c static void vt6421_error_handler(struct ata_port *ap) ap 576 drivers/ata/sata_via.c struct svia_priv *hpriv = ap->host->private_data; ap 577 drivers/ata/sata_via.c struct pci_dev *pdev = to_pci_dev(ap->host->dev); ap 582 drivers/ata/sata_via.c svia_scr_read(&ap->link, SCR_ERROR, &serror); ap 584 drivers/ata/sata_via.c ata_port_warn(ap, "Incompatible drive: enabling workaround. This slows down transfer rate to ~60 MB/s"); ap 587 drivers/ata/sata_via.c ap->link.eh_context.i.flags |= ATA_EHI_QUIET; ap 591 drivers/ata/sata_via.c ata_sff_error_handler(ap); ap 89 drivers/ata/sata_vsc.c *val = readl(link->ap->ioaddr.scr_addr + (sc_reg * 4)); ap 99 drivers/ata/sata_vsc.c writel(val, link->ap->ioaddr.scr_addr + (sc_reg * 4)); ap 104 drivers/ata/sata_vsc.c static void vsc_freeze(struct ata_port *ap) ap 108 drivers/ata/sata_vsc.c mask_addr = ap->host->iomap[VSC_MMIO_BAR] + ap 109 drivers/ata/sata_vsc.c VSC_SATA_INT_MASK_OFFSET + ap->port_no; ap 115 drivers/ata/sata_vsc.c static void vsc_thaw(struct ata_port *ap) ap 119 drivers/ata/sata_vsc.c mask_addr = ap->host->iomap[VSC_MMIO_BAR] + ap 120 drivers/ata/sata_vsc.c VSC_SATA_INT_MASK_OFFSET + ap->port_no; ap 126 drivers/ata/sata_vsc.c static void vsc_intr_mask_update(struct ata_port *ap, u8 ctl) ap 131 drivers/ata/sata_vsc.c mask_addr = ap->host->iomap[VSC_MMIO_BAR] + ap 132 drivers/ata/sata_vsc.c VSC_SATA_INT_MASK_OFFSET + ap->port_no; ap 142 drivers/ata/sata_vsc.c static void vsc_sata_tf_load(struct ata_port *ap, const struct ata_taskfile *tf) ap 144 drivers/ata/sata_vsc.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 153 drivers/ata/sata_vsc.c if ((tf->ctl & ATA_NIEN) != (ap->last_ctl & ATA_NIEN)) { ap 154 drivers/ata/sata_vsc.c ap->last_ctl = tf->ctl; ap 155 drivers/ata/sata_vsc.c vsc_intr_mask_update(ap, tf->ctl & ATA_NIEN); ap 179 drivers/ata/sata_vsc.c ata_wait_idle(ap); ap 183 drivers/ata/sata_vsc.c static void vsc_sata_tf_read(struct ata_port *ap, struct ata_taskfile *tf) ap 185 drivers/ata/sata_vsc.c struct ata_ioports *ioaddr = &ap->ioaddr; ap 188 drivers/ata/sata_vsc.c tf->command = ata_sff_check_status(ap); ap 211 drivers/ata/sata_vsc.c static inline void vsc_error_intr(u8 port_status, struct ata_port *ap) ap 214 drivers/ata/sata_vsc.c ata_port_freeze(ap); ap 216 drivers/ata/sata_vsc.c ata_port_abort(ap); ap 219 drivers/ata/sata_vsc.c static void vsc_port_intr(u8 port_status, struct ata_port *ap) ap 225 drivers/ata/sata_vsc.c vsc_error_intr(port_status, ap); ap 229 drivers/ata/sata_vsc.c qc = ata_qc_from_tag(ap, ap->link.active_tag); ap 231 drivers/ata/sata_vsc.c handled = ata_bmdma_port_intr(ap, qc); ap 239 drivers/ata/sata_vsc.c ap->ops->sff_check_status(ap); ap 362 drivers/ata/sata_vsc.c struct ata_port *ap = host->ports[i]; ap 365 drivers/ata/sata_vsc.c vsc_sata_setup_port(&ap->ioaddr, mmio_base + offset); ap 367 drivers/ata/sata_vsc.c ata_port_pbar_desc(ap, VSC_MMIO_BAR, -1, "mmio"); ap 368 drivers/ata/sata_vsc.c ata_port_pbar_desc(ap, VSC_MMIO_BAR, offset, "port"); ap 889 drivers/base/devres.c va_list ap) ap 895 drivers/base/devres.c va_copy(aq, ap); ap 903 drivers/base/devres.c vsnprintf(p, len+1, fmt, ap); ap 922 drivers/base/devres.c va_list ap; ap 925 drivers/base/devres.c va_start(ap, fmt); ap 926 drivers/base/devres.c p = devm_kvasprintf(dev, gfp, fmt, ap); ap 927 drivers/base/devres.c va_end(ap); ap 158 drivers/clk/clkdev.c va_list ap) ap 173 drivers/clk/clkdev.c vscnprintf(cla->dev_id, sizeof(cla->dev_id), dev_fmt, ap); ap 182 drivers/clk/clkdev.c va_list ap) ap 186 drivers/clk/clkdev.c cl = vclkdev_alloc(hw, con_id, dev_fmt, ap); ap 197 drivers/clk/clkdev.c va_list ap; ap 199 drivers/clk/clkdev.c va_start(ap, dev_fmt); ap 200 drivers/clk/clkdev.c cl = vclkdev_alloc(__clk_get_hw(clk), con_id, dev_fmt, ap); ap 201 drivers/clk/clkdev.c va_end(ap); ap 211 drivers/clk/clkdev.c va_list ap; ap 213 drivers/clk/clkdev.c va_start(ap, dev_fmt); ap 214 drivers/clk/clkdev.c cl = vclkdev_alloc(hw, con_id, dev_fmt, ap); ap 215 drivers/clk/clkdev.c va_end(ap); ap 234 drivers/clk/clkdev.c va_list ap; ap 236 drivers/clk/clkdev.c va_start(ap, dev_fmt); ap 237 drivers/clk/clkdev.c cl = vclkdev_create(__clk_get_hw(clk), con_id, dev_fmt, ap); ap 238 drivers/clk/clkdev.c va_end(ap); ap 257 drivers/clk/clkdev.c va_list ap; ap 259 drivers/clk/clkdev.c va_start(ap, dev_fmt); ap 260 drivers/clk/clkdev.c cl = vclkdev_create(hw, con_id, dev_fmt, ap); ap 261 drivers/clk/clkdev.c va_end(ap); ap 301 drivers/clk/clkdev.c va_list ap; ap 303 drivers/clk/clkdev.c va_start(ap, dev_id); ap 304 drivers/clk/clkdev.c cl = vclkdev_create(hw, con_id, dev_id, ap); ap 305 drivers/clk/clkdev.c va_end(ap); ap 33 drivers/crypto/nx/nx-aes-cbc.c nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_128]; ap 37 drivers/crypto/nx/nx-aes-cbc.c nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_192]; ap 41 drivers/crypto/nx/nx-aes-cbc.c nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_256]; ap 37 drivers/crypto/nx/nx-aes-ccm.c nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_128]; ap 239 drivers/crypto/nx/nx-aes-ccm.c nx_insg = nx_build_sg_list(nx_insg, b1, &len, nx_ctx->ap->sglen); ap 245 drivers/crypto/nx/nx-aes-ccm.c nx_ctx->ap->sglen); ap 276 drivers/crypto/nx/nx-aes-ccm.c max_sg_len = min_t(u64, nx_ctx->ap->sglen, ap 279 drivers/crypto/nx/nx-aes-ccm.c nx_ctx->ap->databytelen/NX_PAGE_SIZE); ap 283 drivers/crypto/nx/nx-aes-ccm.c nx_ctx->ap->databytelen); ap 286 drivers/crypto/nx/nx-aes-ccm.c nx_ctx->ap->sglen, ap 34 drivers/crypto/nx/nx-aes-ctr.c nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_128]; ap 38 drivers/crypto/nx/nx-aes-ctr.c nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_192]; ap 42 drivers/crypto/nx/nx-aes-ctr.c nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_256]; ap 33 drivers/crypto/nx/nx-aes-ecb.c nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_128]; ap 37 drivers/crypto/nx/nx-aes-ecb.c nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_192]; ap 41 drivers/crypto/nx/nx-aes-ecb.c nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_256]; ap 37 drivers/crypto/nx/nx-aes-gcm.c nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_128]; ap 42 drivers/crypto/nx/nx-aes-gcm.c nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_192]; ap 47 drivers/crypto/nx/nx-aes-gcm.c nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_256]; ap 123 drivers/crypto/nx/nx-aes-gcm.c nx_ctx->ap->sglen); ap 125 drivers/crypto/nx/nx-aes-gcm.c nx_ctx->ap->databytelen/NX_PAGE_SIZE); ap 133 drivers/crypto/nx/nx-aes-gcm.c nx_ctx->ap->databytelen); ap 188 drivers/crypto/nx/nx-aes-gcm.c nx_ctx->ap->sglen); ap 190 drivers/crypto/nx/nx-aes-gcm.c nx_ctx->ap->databytelen/NX_PAGE_SIZE); ap 201 drivers/crypto/nx/nx-aes-gcm.c nx_ctx->ap->databytelen); ap 272 drivers/crypto/nx/nx-aes-gcm.c &len, nx_ctx->ap->sglen); ap 279 drivers/crypto/nx/nx-aes-gcm.c nx_ctx->ap->sglen); ap 37 drivers/crypto/nx/nx-aes-xcbc.c nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_128]; ap 82 drivers/crypto/nx/nx-aes-xcbc.c nx_ctx->ap->sglen); ap 88 drivers/crypto/nx/nx-aes-xcbc.c nx_ctx->ap->sglen); ap 109 drivers/crypto/nx/nx-aes-xcbc.c nx_ctx->ap->sglen); ap 116 drivers/crypto/nx/nx-aes-xcbc.c nx_ctx->ap->sglen); ap 197 drivers/crypto/nx/nx-aes-xcbc.c nx_ctx->ap->sglen); ap 199 drivers/crypto/nx/nx-aes-xcbc.c nx_ctx->ap->databytelen/NX_PAGE_SIZE); ap 203 drivers/crypto/nx/nx-aes-xcbc.c &len, nx_ctx->ap->sglen); ap 325 drivers/crypto/nx/nx-aes-xcbc.c &len, nx_ctx->ap->sglen); ap 334 drivers/crypto/nx/nx-aes-xcbc.c nx_ctx->ap->sglen); ap 31 drivers/crypto/nx/nx-sha256.c nx_ctx->ap = &nx_ctx->props[NX_PROPS_SHA256]; ap 87 drivers/crypto/nx/nx-sha256.c max_sg_len = min_t(u64, nx_ctx->ap->sglen, ap 90 drivers/crypto/nx/nx-sha256.c nx_ctx->ap->databytelen/NX_PAGE_SIZE); ap 189 drivers/crypto/nx/nx-sha256.c max_sg_len = min_t(u64, nx_ctx->ap->sglen, ap 192 drivers/crypto/nx/nx-sha256.c nx_ctx->ap->databytelen/NX_PAGE_SIZE); ap 30 drivers/crypto/nx/nx-sha512.c nx_ctx->ap = &nx_ctx->props[NX_PROPS_SHA512]; ap 87 drivers/crypto/nx/nx-sha512.c max_sg_len = min_t(u64, nx_ctx->ap->sglen, ap 90 drivers/crypto/nx/nx-sha512.c nx_ctx->ap->databytelen/NX_PAGE_SIZE); ap 193 drivers/crypto/nx/nx-sha512.c max_sg_len = min_t(u64, nx_ctx->ap->sglen, ap 196 drivers/crypto/nx/nx-sha512.c nx_ctx->ap->databytelen/NX_PAGE_SIZE); ap 272 drivers/crypto/nx/nx.c max_sg_len = min_t(u64, nx_ctx->ap->sglen, ap 275 drivers/crypto/nx/nx.c nx_ctx->ap->databytelen/NX_PAGE_SIZE); ap 280 drivers/crypto/nx/nx.c *nbytes = min_t(u64, *nbytes, nx_ctx->ap->databytelen); ap 399 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][0].databytelen = ap 401 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][0].sglen = ap 405 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][1].databytelen = ap 407 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][1].sglen = ap 412 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][2]. ap 414 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][2].sglen = ap 418 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][1]. ap 420 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][1].sglen = ap 429 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][2].databytelen = ap 431 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][2].sglen = ap 490 drivers/crypto/nx/nx.c struct alg_props *props = &nx_driver.of.ap[fc][mode][slot]; ap 686 drivers/crypto/nx/nx.c memcpy(nx_ctx->props, nx_driver.of.ap[fc][mode], ap 58 drivers/crypto/nx/nx.h struct alg_props ap[NX_MAX_FC][NX_MAX_MODE][3]; ap 129 drivers/crypto/nx/nx.h struct alg_props *ap; /* pointer into props based on our key size */ ap 60 drivers/gpu/drm/amd/display/dc/dc_helper.c va_list ap) ap 70 drivers/gpu/drm/amd/display/dc/dc_helper.c shift = va_arg(ap, uint32_t); ap 71 drivers/gpu/drm/amd/display/dc/dc_helper.c mask = va_arg(ap, uint32_t); ap 72 drivers/gpu/drm/amd/display/dc/dc_helper.c field_value = va_arg(ap, uint32_t); ap 87 drivers/gpu/drm/amd/display/dc/dc_helper.c va_list ap; ap 89 drivers/gpu/drm/amd/display/dc/dc_helper.c va_start(ap, field_value1); ap 92 drivers/gpu/drm/amd/display/dc/dc_helper.c field_value1, ap); ap 94 drivers/gpu/drm/amd/display/dc/dc_helper.c va_end(ap); ap 109 drivers/gpu/drm/amd/display/dc/dc_helper.c va_list ap; ap 111 drivers/gpu/drm/amd/display/dc/dc_helper.c va_start(ap, field_value1); ap 114 drivers/gpu/drm/amd/display/dc/dc_helper.c field_value1, ap); ap 116 drivers/gpu/drm/amd/display/dc/dc_helper.c va_end(ap); ap 365 drivers/gpu/drm/amd/display/dc/dc_helper.c va_list ap; ap 367 drivers/gpu/drm/amd/display/dc/dc_helper.c va_start(ap, field_value1); ap 372 drivers/gpu/drm/amd/display/dc/dc_helper.c shift = va_arg(ap, uint32_t); ap 373 drivers/gpu/drm/amd/display/dc/dc_helper.c mask = va_arg(ap, uint32_t); ap 374 drivers/gpu/drm/amd/display/dc/dc_helper.c field_value = va_arg(ap, uint32_t); ap 381 drivers/gpu/drm/amd/display/dc/dc_helper.c va_end(ap); ap 71 drivers/gpu/drm/ast/ast_drv.c struct apertures_struct *ap; ap 74 drivers/gpu/drm/ast/ast_drv.c ap = alloc_apertures(1); ap 75 drivers/gpu/drm/ast/ast_drv.c if (!ap) ap 78 drivers/gpu/drm/ast/ast_drv.c ap->ranges[0].base = pci_resource_start(pdev, 0); ap 79 drivers/gpu/drm/ast/ast_drv.c ap->ranges[0].size = pci_resource_len(pdev, 0); ap 84 drivers/gpu/drm/ast/ast_drv.c drm_fb_helper_remove_conflicting_framebuffers(ap, "astdrmfb", primary); ap 85 drivers/gpu/drm/ast/ast_drv.c kfree(ap); ap 258 drivers/gpu/drm/drm_crtc.c va_list ap; ap 260 drivers/gpu/drm/drm_crtc.c va_start(ap, name); ap 261 drivers/gpu/drm/drm_crtc.c crtc->name = kvasprintf(GFP_KERNEL, name, ap); ap 262 drivers/gpu/drm/drm_crtc.c va_end(ap); ap 127 drivers/gpu/drm/drm_encoder.c va_list ap; ap 129 drivers/gpu/drm/drm_encoder.c va_start(ap, name); ap 130 drivers/gpu/drm/drm_encoder.c encoder->name = kvasprintf(GFP_KERNEL, name, ap); ap 131 drivers/gpu/drm/drm_encoder.c va_end(ap); ap 239 drivers/gpu/drm/drm_plane.c va_list ap; ap 241 drivers/gpu/drm/drm_plane.c va_start(ap, name); ap 242 drivers/gpu/drm/drm_plane.c plane->name = kvasprintf(GFP_KERNEL, name, ap); ap 243 drivers/gpu/drm/drm_plane.c va_end(ap); ap 1364 drivers/gpu/drm/i915/gt/intel_engine_cs.c va_list ap; ap 1366 drivers/gpu/drm/i915/gt/intel_engine_cs.c va_start(ap, header); ap 1367 drivers/gpu/drm/i915/gt/intel_engine_cs.c drm_vprintf(m, header, &ap); ap 1368 drivers/gpu/drm/i915/gt/intel_engine_cs.c va_end(ap); ap 424 drivers/gpu/drm/i915/i915_drv.c struct apertures_struct *ap; ap 430 drivers/gpu/drm/i915/i915_drv.c ap = alloc_apertures(1); ap 431 drivers/gpu/drm/i915/i915_drv.c if (!ap) ap 434 drivers/gpu/drm/i915/i915_drv.c ap->ranges[0].base = ggtt->gmadr.start; ap 435 drivers/gpu/drm/i915/i915_drv.c ap->ranges[0].size = ggtt->mappable_end; ap 440 drivers/gpu/drm/i915/i915_drv.c ret = drm_fb_helper_remove_conflicting_framebuffers(ap, "inteldrmfb", primary); ap 442 drivers/gpu/drm/i915/i915_drv.c kfree(ap); ap 117 drivers/gpu/drm/i915/i915_gpu_error.c va_list ap; ap 123 drivers/gpu/drm/i915/i915_gpu_error.c va_copy(ap, args); ap 124 drivers/gpu/drm/i915/i915_gpu_error.c len = vsnprintf(NULL, 0, fmt, ap); ap 125 drivers/gpu/drm/i915/i915_gpu_error.c va_end(ap); ap 169 drivers/gpu/drm/meson/meson_drv.c struct apertures_struct *ap; ap 171 drivers/gpu/drm/meson/meson_drv.c ap = alloc_apertures(1); ap 172 drivers/gpu/drm/meson/meson_drv.c if (!ap) ap 176 drivers/gpu/drm/meson/meson_drv.c ap->ranges[0].base = 0; ap 177 drivers/gpu/drm/meson/meson_drv.c ap->ranges[0].size = ~0; ap 179 drivers/gpu/drm/meson/meson_drv.c drm_fb_helper_remove_conflicting_framebuffers(ap, "meson-drm-fb", ap 181 drivers/gpu/drm/meson/meson_drv.c kfree(ap); ap 1226 drivers/gpu/drm/msm/msm_gem.c va_list ap; ap 1231 drivers/gpu/drm/msm/msm_gem.c va_start(ap, fmt); ap 1232 drivers/gpu/drm/msm/msm_gem.c vsnprintf(msm_obj->name, sizeof(msm_obj->name), fmt, ap); ap 1233 drivers/gpu/drm/msm/msm_gem.c va_end(ap); ap 81 drivers/hwmon/vt1211.c #define VT1211_REG_PWM_AUTO_TEMP(ap) (0x55 - (ap)) ap 82 drivers/hwmon/vt1211.c #define VT1211_REG_PWM_AUTO_PWM(ix, ap) (0x58 + 2 * (ix) - (ap)) ap 758 drivers/hwmon/vt1211.c int ap = sensor_attr_2->nr; ap 761 drivers/hwmon/vt1211.c data->pwm_auto_temp[ap])); ap 772 drivers/hwmon/vt1211.c int ap = sensor_attr_2->nr; ap 789 drivers/hwmon/vt1211.c data->pwm_auto_temp[ap] = TEMP_TO_REG(data->pwm_ctl[ix] & 7, val); ap 790 drivers/hwmon/vt1211.c vt1211_write8(data, VT1211_REG_PWM_AUTO_TEMP(ap), ap 791 drivers/hwmon/vt1211.c data->pwm_auto_temp[ap]); ap 822 drivers/hwmon/vt1211.c int ap = sensor_attr_2->nr; ap 824 drivers/hwmon/vt1211.c return sprintf(buf, "%d\n", data->pwm_auto_pwm[ix][ap]); ap 835 drivers/hwmon/vt1211.c int ap = sensor_attr_2->nr; ap 844 drivers/hwmon/vt1211.c data->pwm_auto_pwm[ix][ap] = clamp_val(val, 0, 255); ap 845 drivers/hwmon/vt1211.c vt1211_write8(data, VT1211_REG_PWM_AUTO_PWM(ix, ap), ap 846 drivers/hwmon/vt1211.c data->pwm_auto_pwm[ix][ap]); ap 1032 drivers/hwmon/vt1211.c #define SENSOR_ATTR_PWM_AUTO_POINT_TEMP(ix, ap) \ ap 1033 drivers/hwmon/vt1211.c SENSOR_ATTR_2(pwm##ix##_auto_point##ap##_temp, S_IRUGO | S_IWUSR, \ ap 1035 drivers/hwmon/vt1211.c ap-1, ix-1) ap 1037 drivers/hwmon/vt1211.c #define SENSOR_ATTR_PWM_AUTO_POINT_TEMP_RO(ix, ap) \ ap 1038 drivers/hwmon/vt1211.c SENSOR_ATTR_2(pwm##ix##_auto_point##ap##_temp, S_IRUGO, \ ap 1040 drivers/hwmon/vt1211.c ap-1, ix-1) ap 1042 drivers/hwmon/vt1211.c #define SENSOR_ATTR_PWM_AUTO_POINT_PWM(ix, ap) \ ap 1043 drivers/hwmon/vt1211.c SENSOR_ATTR_2(pwm##ix##_auto_point##ap##_pwm, S_IRUGO | S_IWUSR, \ ap 1045 drivers/hwmon/vt1211.c ap-1, ix-1) ap 1047 drivers/hwmon/vt1211.c #define SENSOR_ATTR_PWM_AUTO_POINT_PWM_RO(ix, ap) \ ap 1048 drivers/hwmon/vt1211.c SENSOR_ATTR_2(pwm##ix##_auto_point##ap##_pwm, S_IRUGO, \ ap 1050 drivers/hwmon/vt1211.c ap-1, ix-1) ap 165 drivers/input/keyboard/lm8323.c va_list ap; ap 168 drivers/input/keyboard/lm8323.c va_start(ap, len); ap 172 drivers/input/keyboard/lm8323.c va_end(ap); ap 177 drivers/input/keyboard/lm8323.c data[i] = va_arg(ap, int); ap 179 drivers/input/keyboard/lm8323.c va_end(ap); ap 84 drivers/input/misc/apanel.c struct apanel *ap = ipdev->private; ap 90 drivers/input/misc/apanel.c data = i2c_smbus_read_word_data(ap->client, cmd); ap 95 drivers/input/misc/apanel.c i2c_smbus_write_word_data(ap->client, cmd, 0); ap 103 drivers/input/misc/apanel.c report_key(idev, ap->keymap[i]); ap 109 drivers/input/misc/apanel.c struct apanel *ap = container_of(led, struct apanel, mail_led); ap 112 drivers/input/misc/apanel.c return i2c_smbus_write_word_data(ap->client, 0x10, led_bits); ap 117 drivers/input/misc/apanel.c struct apanel *ap = i2c_get_clientdata(client); ap 120 drivers/input/misc/apanel.c led_classdev_unregister(&ap->mail_led); ap 122 drivers/input/misc/apanel.c input_unregister_polled_device(ap->ipdev); ap 123 drivers/input/misc/apanel.c input_free_polled_device(ap->ipdev); ap 172 drivers/input/misc/apanel.c struct apanel *ap; ap 178 drivers/input/misc/apanel.c ap = &apanel; ap 184 drivers/input/misc/apanel.c ap->ipdev = ipdev; ap 185 drivers/input/misc/apanel.c ap->client = client; ap 187 drivers/input/misc/apanel.c i2c_set_clientdata(client, ap); ap 198 drivers/input/misc/apanel.c ipdev->private = ap; ap 208 drivers/input/misc/apanel.c idev->keycode = ap->keymap; ap 209 drivers/input/misc/apanel.c idev->keycodesize = sizeof(ap->keymap[0]); ap 213 drivers/input/misc/apanel.c if (ap->keymap[i]) ap 214 drivers/input/misc/apanel.c set_bit(ap->keymap[i], idev->keybit); ap 221 drivers/input/misc/apanel.c err = led_classdev_register(&client->dev, &ap->mail_led); ap 319 drivers/iommu/io-pgtable-arm-v7s.c bool ap = !(cfg->quirks & IO_PGTABLE_QUIRK_NO_PERMS); ap 324 drivers/iommu/io-pgtable-arm-v7s.c if (ap) { ap 333 drivers/iommu/io-pgtable-arm-v7s.c if ((prot & IOMMU_NOEXEC) && ap) ap 83 drivers/isdn/capi/capi.c struct capi20_appl *ap; ap 116 drivers/isdn/capi/capi.c struct capi20_appl ap; ap 207 drivers/isdn/capi/capi.c static struct capiminor *capiminor_alloc(struct capi20_appl *ap, u32 ncci) ap 219 drivers/isdn/capi/capi.c mp->ap = ap; ap 298 drivers/isdn/capi/capi.c np->minorp = capiminor_alloc(&cdev->ap, np->ncci); ap 392 drivers/isdn/capi/capi.c capimsg_setu16(s, 2, mp->ap->applid); ap 448 drivers/isdn/capi/capi.c errcode = capi20_put_message(mp->ap, nskb); ap 520 drivers/isdn/capi/capi.c capimsg_setu16(skb->data, 2, mp->ap->applid); ap 540 drivers/isdn/capi/capi.c errcode = capi20_put_message(mp->ap, skb); ap 569 drivers/isdn/capi/capi.c static void capi_recv_message(struct capi20_appl *ap, struct sk_buff *skb) ap 571 drivers/isdn/capi/capi.c struct capidev *cdev = ap->private; ap 654 drivers/isdn/capi/capi.c if (!cdev->ap.applid) ap 688 drivers/isdn/capi/capi.c if (!cdev->ap.applid) ap 715 drivers/isdn/capi/capi.c CAPIMSG_SETAPPID(skb->data, cdev->ap.applid); ap 727 drivers/isdn/capi/capi.c cdev->errcode = capi20_put_message(&cdev->ap, skb); ap 742 drivers/isdn/capi/capi.c if (!cdev->ap.applid) ap 764 drivers/isdn/capi/capi.c if (cdev->ap.applid) { ap 768 drivers/isdn/capi/capi.c if (copy_from_user(&cdev->ap.rparam, argp, ap 773 drivers/isdn/capi/capi.c cdev->ap.private = cdev; ap 774 drivers/isdn/capi/capi.c cdev->ap.recv_message = capi_recv_message; ap 775 drivers/isdn/capi/capi.c cdev->errcode = capi20_register(&cdev->ap); ap 776 drivers/isdn/capi/capi.c retval = (int)cdev->ap.applid; ap 778 drivers/isdn/capi/capi.c cdev->ap.applid = 0; ap 982 drivers/isdn/capi/capi.c if (cdev->ap.applid) ap 983 drivers/isdn/capi/capi.c capi20_release(&cdev->ap); ap 1335 drivers/isdn/capi/capi.c cdev->ap.applid, ap 1336 drivers/isdn/capi/capi.c cdev->ap.nrecvctlpkt, ap 1337 drivers/isdn/capi/capi.c cdev->ap.nrecvdatapkt, ap 1338 drivers/isdn/capi/capi.c cdev->ap.nsentctlpkt, ap 1339 drivers/isdn/capi/capi.c cdev->ap.nsentdatapkt); ap 1358 drivers/isdn/capi/capi.c seq_printf(m, "%d 0x%x\n", cdev->ap.applid, np->ncci); ap 182 drivers/isdn/capi/kcapi.c struct capi20_appl *ap; ap 199 drivers/isdn/capi/kcapi.c ap = __get_capi_appl_by_nr(applid); ap 200 drivers/isdn/capi/kcapi.c if (ap) ap 201 drivers/isdn/capi/kcapi.c register_appl(ctr, applid, &ap->rparam); ap 214 drivers/isdn/capi/kcapi.c struct capi20_appl *ap; ap 228 drivers/isdn/capi/kcapi.c ap = __get_capi_appl_by_nr(applid); ap 229 drivers/isdn/capi/kcapi.c if (ap) ap 316 drivers/isdn/capi/kcapi.c struct capi20_appl *ap = ap 319 drivers/isdn/capi/kcapi.c if ((!ap) || (ap->release_in_progress)) ap 322 drivers/isdn/capi/kcapi.c mutex_lock(&ap->recv_mtx); ap 323 drivers/isdn/capi/kcapi.c while ((skb = skb_dequeue(&ap->recv_queue))) { ap 325 drivers/isdn/capi/kcapi.c ap->nrecvdatapkt++; ap 327 drivers/isdn/capi/kcapi.c ap->nrecvctlpkt++; ap 329 drivers/isdn/capi/kcapi.c ap->recv_message(ap, skb); ap 331 drivers/isdn/capi/kcapi.c mutex_unlock(&ap->recv_mtx); ap 346 drivers/isdn/capi/kcapi.c struct capi20_appl *ap; ap 397 drivers/isdn/capi/kcapi.c ap = get_capi_appl_by_nr(CAPIMSG_APPID(skb->data)); ap 398 drivers/isdn/capi/kcapi.c if (!ap) { ap 411 drivers/isdn/capi/kcapi.c skb_queue_tail(&ap->recv_queue, skb); ap 412 drivers/isdn/capi/kcapi.c queue_work(kcapi_wq, &ap->recv_work); ap 665 drivers/isdn/capi/kcapi.c u16 capi20_register(struct capi20_appl *ap) ap 672 drivers/isdn/capi/kcapi.c if (ap->rparam.datablklen < 128) ap 675 drivers/isdn/capi/kcapi.c ap->nrecvctlpkt = 0; ap 676 drivers/isdn/capi/kcapi.c ap->nrecvdatapkt = 0; ap 677 drivers/isdn/capi/kcapi.c ap->nsentctlpkt = 0; ap 678 drivers/isdn/capi/kcapi.c ap->nsentdatapkt = 0; ap 679 drivers/isdn/capi/kcapi.c mutex_init(&ap->recv_mtx); ap 680 drivers/isdn/capi/kcapi.c skb_queue_head_init(&ap->recv_queue); ap 681 drivers/isdn/capi/kcapi.c INIT_WORK(&ap->recv_work, recv_handler); ap 682 drivers/isdn/capi/kcapi.c ap->release_in_progress = 0; ap 695 drivers/isdn/capi/kcapi.c ap->applid = applid; ap 696 drivers/isdn/capi/kcapi.c capi_applications[applid - 1] = ap; ap 702 drivers/isdn/capi/kcapi.c register_appl(capi_controller[i], applid, &ap->rparam); ap 726 drivers/isdn/capi/kcapi.c u16 capi20_release(struct capi20_appl *ap) ap 730 drivers/isdn/capi/kcapi.c DBG("applid %#x", ap->applid); ap 734 drivers/isdn/capi/kcapi.c ap->release_in_progress = 1; ap 735 drivers/isdn/capi/kcapi.c capi_applications[ap->applid - 1] = NULL; ap 743 drivers/isdn/capi/kcapi.c release_appl(capi_controller[i], ap->applid); ap 749 drivers/isdn/capi/kcapi.c skb_queue_purge(&ap->recv_queue); ap 752 drivers/isdn/capi/kcapi.c printk(KERN_DEBUG "kcapi: appl %d down\n", ap->applid); ap 769 drivers/isdn/capi/kcapi.c u16 capi20_put_message(struct capi20_appl *ap, struct sk_buff *skb) ap 775 drivers/isdn/capi/kcapi.c DBG("applid %#x", ap->applid); ap 779 drivers/isdn/capi/kcapi.c if ((ap->applid == 0) || ap->release_in_progress) ap 802 drivers/isdn/capi/kcapi.c ap->nsentdatapkt++; ap 807 drivers/isdn/capi/kcapi.c ap->nsentctlpkt++; ap 147 drivers/isdn/capi/kcapi_proc.c struct capi20_appl *ap = *(struct capi20_appl **) v; ap 149 drivers/isdn/capi/kcapi_proc.c if (!ap) ap 153 drivers/isdn/capi/kcapi_proc.c ap->applid, ap 154 drivers/isdn/capi/kcapi_proc.c ap->rparam.level3cnt, ap 155 drivers/isdn/capi/kcapi_proc.c ap->rparam.datablkcnt, ap 156 drivers/isdn/capi/kcapi_proc.c ap->rparam.datablklen); ap 164 drivers/isdn/capi/kcapi_proc.c struct capi20_appl *ap = *(struct capi20_appl **) v; ap 166 drivers/isdn/capi/kcapi_proc.c if (!ap) ap 170 drivers/isdn/capi/kcapi_proc.c ap->applid, ap 171 drivers/isdn/capi/kcapi_proc.c ap->nrecvctlpkt, ap 172 drivers/isdn/capi/kcapi_proc.c ap->nrecvdatapkt, ap 173 drivers/isdn/capi/kcapi_proc.c ap->nsentctlpkt, ap 174 drivers/isdn/capi/kcapi_proc.c ap->nsentdatapkt); ap 25 drivers/isdn/hardware/mISDN/iohelper.h #define IOFUNC_IO(name, hws, ap) \ ap 28 drivers/isdn/hardware/mISDN/iohelper.h return inb(hw->ap.port + off); \ ap 32 drivers/isdn/hardware/mISDN/iohelper.h outb(val, hw->ap.port + off); \ ap 36 drivers/isdn/hardware/mISDN/iohelper.h insb(hw->ap.port + off, dp, size); \ ap 40 drivers/isdn/hardware/mISDN/iohelper.h outsb(hw->ap.port + off, dp, size); \ ap 43 drivers/isdn/hardware/mISDN/iohelper.h #define IOFUNC_IND(name, hws, ap) \ ap 46 drivers/isdn/hardware/mISDN/iohelper.h outb(off, hw->ap.ale); \ ap 47 drivers/isdn/hardware/mISDN/iohelper.h return inb(hw->ap.port); \ ap 51 drivers/isdn/hardware/mISDN/iohelper.h outb(off, hw->ap.ale); \ ap 52 drivers/isdn/hardware/mISDN/iohelper.h outb(val, hw->ap.port); \ ap 56 drivers/isdn/hardware/mISDN/iohelper.h outb(off, hw->ap.ale); \ ap 57 drivers/isdn/hardware/mISDN/iohelper.h insb(hw->ap.port, dp, size); \ ap 61 drivers/isdn/hardware/mISDN/iohelper.h outb(off, hw->ap.ale); \ ap 62 drivers/isdn/hardware/mISDN/iohelper.h outsb(hw->ap.port, dp, size); \ ap 633 drivers/macintosh/adb.c struct adb_request **ap = &state->completed; ap 634 drivers/macintosh/adb.c while (*ap != NULL) ap 635 drivers/macintosh/adb.c ap = &(*ap)->next; ap 637 drivers/macintosh/adb.c *ap = req; ap 249 drivers/media/dvb-frontends/bcm3510.c bcm3510_register_value ap,hab; ap 253 drivers/media/dvb-frontends/bcm3510.c (ret = bcm3510_readB(st,0xa2,&ap) < 0)) ap 256 drivers/media/dvb-frontends/bcm3510.c if (ap.APSTAT1_a2.RESET || ap.APSTAT1_a2.IDLE || ap.APSTAT1_a2.STOP || hab.HABSTAT_a8.HABR) { ap 816 drivers/media/pci/cx18/cx18-mailbox.c va_list ap; ap 819 drivers/media/pci/cx18/cx18-mailbox.c va_start(ap, args); ap 821 drivers/media/pci/cx18/cx18-mailbox.c data[i] = va_arg(ap, u32); ap 822 drivers/media/pci/cx18/cx18-mailbox.c va_end(ap); ap 829 drivers/media/pci/cx18/cx18-mailbox.c va_list ap; ap 840 drivers/media/pci/cx18/cx18-mailbox.c va_start(ap, args); ap 842 drivers/media/pci/cx18/cx18-mailbox.c data[i] = va_arg(ap, u32); ap 843 drivers/media/pci/cx18/cx18-mailbox.c va_end(ap); ap 332 drivers/media/pci/ivtv/ivtv-mailbox.c va_list ap; ap 335 drivers/media/pci/ivtv/ivtv-mailbox.c va_start(ap, args); ap 337 drivers/media/pci/ivtv/ivtv-mailbox.c data[i] = va_arg(ap, u32); ap 339 drivers/media/pci/ivtv/ivtv-mailbox.c va_end(ap); ap 346 drivers/media/pci/ivtv/ivtv-mailbox.c va_list ap; ap 349 drivers/media/pci/ivtv/ivtv-mailbox.c va_start(ap, args); ap 351 drivers/media/pci/ivtv/ivtv-mailbox.c data[i] = va_arg(ap, u32); ap 353 drivers/media/pci/ivtv/ivtv-mailbox.c va_end(ap); ap 126 drivers/net/can/usb/peak_usb/pcan_usb_pro.c va_list ap; ap 128 drivers/net/can/usb/peak_usb/pcan_usb_pro.c va_start(ap, id); ap 141 drivers/net/can/usb/peak_usb/pcan_usb_pro.c *pc++ = va_arg(ap, int); ap 142 drivers/net/can/usb/peak_usb/pcan_usb_pro.c *pc++ = va_arg(ap, int); ap 143 drivers/net/can/usb/peak_usb/pcan_usb_pro.c *pc++ = va_arg(ap, int); ap 144 drivers/net/can/usb/peak_usb/pcan_usb_pro.c *(__le32 *)pc = cpu_to_le32(va_arg(ap, u32)); ap 146 drivers/net/can/usb/peak_usb/pcan_usb_pro.c memcpy(pc, va_arg(ap, int *), i); ap 152 drivers/net/can/usb/peak_usb/pcan_usb_pro.c *pc++ = va_arg(ap, int); ap 154 drivers/net/can/usb/peak_usb/pcan_usb_pro.c *(__le32 *)pc = cpu_to_le32(va_arg(ap, u32)); ap 161 drivers/net/can/usb/peak_usb/pcan_usb_pro.c *pc++ = va_arg(ap, int); ap 162 drivers/net/can/usb/peak_usb/pcan_usb_pro.c *(__le16 *)pc = cpu_to_le16(va_arg(ap, int)); ap 167 drivers/net/can/usb/peak_usb/pcan_usb_pro.c *pc++ = va_arg(ap, int); ap 168 drivers/net/can/usb/peak_usb/pcan_usb_pro.c *(__le16 *)pc = cpu_to_le16(va_arg(ap, int)); ap 170 drivers/net/can/usb/peak_usb/pcan_usb_pro.c *(__le32 *)pc = cpu_to_le32(va_arg(ap, u32)); ap 176 drivers/net/can/usb/peak_usb/pcan_usb_pro.c *(__le16 *)pc = cpu_to_le16(va_arg(ap, int)); ap 196 drivers/net/can/usb/peak_usb/pcan_usb_pro.c va_end(ap); ap 87 drivers/net/ethernet/alteon/acenic.c #define ACE_IS_TIGON_I(ap) 0 ap 88 drivers/net/ethernet/alteon/acenic.c #define ACE_TX_RING_ENTRIES(ap) MAX_TX_RING_ENTRIES ap 90 drivers/net/ethernet/alteon/acenic.c #define ACE_IS_TIGON_I(ap) (ap->version == 1) ap 91 drivers/net/ethernet/alteon/acenic.c #define ACE_TX_RING_ENTRIES(ap) ap->tx_ring_entries ap 458 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap; ap 467 drivers/net/ethernet/alteon/acenic.c ap = netdev_priv(dev); ap 468 drivers/net/ethernet/alteon/acenic.c ap->pdev = pdev; ap 469 drivers/net/ethernet/alteon/acenic.c ap->name = pci_name(pdev); ap 495 drivers/net/ethernet/alteon/acenic.c pci_read_config_word(pdev, PCI_COMMAND, &ap->pci_command); ap 498 drivers/net/ethernet/alteon/acenic.c if (!(ap->pci_command & PCI_COMMAND_MEMORY)) { ap 501 drivers/net/ethernet/alteon/acenic.c ap->name); ap 502 drivers/net/ethernet/alteon/acenic.c ap->pci_command = ap->pci_command | PCI_COMMAND_MEMORY; ap 503 drivers/net/ethernet/alteon/acenic.c pci_write_config_word(ap->pdev, PCI_COMMAND, ap 504 drivers/net/ethernet/alteon/acenic.c ap->pci_command); ap 508 drivers/net/ethernet/alteon/acenic.c pci_read_config_byte(pdev, PCI_LATENCY_TIMER, &ap->pci_latency); ap 509 drivers/net/ethernet/alteon/acenic.c if (ap->pci_latency <= 0x40) { ap 510 drivers/net/ethernet/alteon/acenic.c ap->pci_latency = 0x40; ap 511 drivers/net/ethernet/alteon/acenic.c pci_write_config_byte(pdev, PCI_LATENCY_TIMER, ap->pci_latency); ap 520 drivers/net/ethernet/alteon/acenic.c ap->regs = ioremap(dev->base_addr, 0x4000); ap 521 drivers/net/ethernet/alteon/acenic.c if (!ap->regs) { ap 524 drivers/net/ethernet/alteon/acenic.c ap->name, boards_found); ap 532 drivers/net/ethernet/alteon/acenic.c ap->name); ap 535 drivers/net/ethernet/alteon/acenic.c ap->name); ap 539 drivers/net/ethernet/alteon/acenic.c printk(KERN_INFO "%s: 3Com 3C985 ", ap->name); ap 542 drivers/net/ethernet/alteon/acenic.c printk(KERN_INFO "%s: NetGear GA620 ", ap->name); ap 547 drivers/net/ethernet/alteon/acenic.c ap->name); ap 552 drivers/net/ethernet/alteon/acenic.c printk(KERN_INFO "%s: SGI AceNIC ", ap->name); ap 555 drivers/net/ethernet/alteon/acenic.c printk(KERN_INFO "%s: Unknown AceNIC ", ap->name); ap 563 drivers/net/ethernet/alteon/acenic.c if ((readl(&ap->regs->HostCtrl) >> 28) == 4) { ap 575 drivers/net/ethernet/alteon/acenic.c ap->board_idx = BOARD_IDX_OVERFLOW; ap 577 drivers/net/ethernet/alteon/acenic.c ap->board_idx = boards_found; ap 579 drivers/net/ethernet/alteon/acenic.c ap->board_idx = BOARD_IDX_STATIC; ap 589 drivers/net/ethernet/alteon/acenic.c ap->name = dev->name; ap 591 drivers/net/ethernet/alteon/acenic.c if (ap->pci_using_dac) ap 609 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap = netdev_priv(dev); ap 610 drivers/net/ethernet/alteon/acenic.c struct ace_regs __iomem *regs = ap->regs; ap 616 drivers/net/ethernet/alteon/acenic.c if (ap->version >= 2) ap 637 drivers/net/ethernet/alteon/acenic.c struct sk_buff *skb = ap->skb->rx_std_skbuff[i].skb; ap 643 drivers/net/ethernet/alteon/acenic.c ringp = &ap->skb->rx_std_skbuff[i]; ap 645 drivers/net/ethernet/alteon/acenic.c pci_unmap_page(ap->pdev, mapping, ap 649 drivers/net/ethernet/alteon/acenic.c ap->rx_std_ring[i].size = 0; ap 650 drivers/net/ethernet/alteon/acenic.c ap->skb->rx_std_skbuff[i].skb = NULL; ap 655 drivers/net/ethernet/alteon/acenic.c if (ap->version >= 2) { ap 657 drivers/net/ethernet/alteon/acenic.c struct sk_buff *skb = ap->skb->rx_mini_skbuff[i].skb; ap 663 drivers/net/ethernet/alteon/acenic.c ringp = &ap->skb->rx_mini_skbuff[i]; ap 665 drivers/net/ethernet/alteon/acenic.c pci_unmap_page(ap->pdev, mapping, ap 669 drivers/net/ethernet/alteon/acenic.c ap->rx_mini_ring[i].size = 0; ap 670 drivers/net/ethernet/alteon/acenic.c ap->skb->rx_mini_skbuff[i].skb = NULL; ap 677 drivers/net/ethernet/alteon/acenic.c struct sk_buff *skb = ap->skb->rx_jumbo_skbuff[i].skb; ap 682 drivers/net/ethernet/alteon/acenic.c ringp = &ap->skb->rx_jumbo_skbuff[i]; ap 684 drivers/net/ethernet/alteon/acenic.c pci_unmap_page(ap->pdev, mapping, ap 688 drivers/net/ethernet/alteon/acenic.c ap->rx_jumbo_ring[i].size = 0; ap 689 drivers/net/ethernet/alteon/acenic.c ap->skb->rx_jumbo_skbuff[i].skb = NULL; ap 707 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap = netdev_priv(dev); ap 710 drivers/net/ethernet/alteon/acenic.c if (ap->rx_std_ring != NULL) { ap 716 drivers/net/ethernet/alteon/acenic.c pci_free_consistent(ap->pdev, size, ap->rx_std_ring, ap 717 drivers/net/ethernet/alteon/acenic.c ap->rx_ring_base_dma); ap 718 drivers/net/ethernet/alteon/acenic.c ap->rx_std_ring = NULL; ap 719 drivers/net/ethernet/alteon/acenic.c ap->rx_jumbo_ring = NULL; ap 720 drivers/net/ethernet/alteon/acenic.c ap->rx_mini_ring = NULL; ap 721 drivers/net/ethernet/alteon/acenic.c ap->rx_return_ring = NULL; ap 723 drivers/net/ethernet/alteon/acenic.c if (ap->evt_ring != NULL) { ap 725 drivers/net/ethernet/alteon/acenic.c pci_free_consistent(ap->pdev, size, ap->evt_ring, ap 726 drivers/net/ethernet/alteon/acenic.c ap->evt_ring_dma); ap 727 drivers/net/ethernet/alteon/acenic.c ap->evt_ring = NULL; ap 729 drivers/net/ethernet/alteon/acenic.c if (ap->tx_ring != NULL && !ACE_IS_TIGON_I(ap)) { ap 731 drivers/net/ethernet/alteon/acenic.c pci_free_consistent(ap->pdev, size, ap->tx_ring, ap 732 drivers/net/ethernet/alteon/acenic.c ap->tx_ring_dma); ap 734 drivers/net/ethernet/alteon/acenic.c ap->tx_ring = NULL; ap 736 drivers/net/ethernet/alteon/acenic.c if (ap->evt_prd != NULL) { ap 737 drivers/net/ethernet/alteon/acenic.c pci_free_consistent(ap->pdev, sizeof(u32), ap 738 drivers/net/ethernet/alteon/acenic.c (void *)ap->evt_prd, ap->evt_prd_dma); ap 739 drivers/net/ethernet/alteon/acenic.c ap->evt_prd = NULL; ap 741 drivers/net/ethernet/alteon/acenic.c if (ap->rx_ret_prd != NULL) { ap 742 drivers/net/ethernet/alteon/acenic.c pci_free_consistent(ap->pdev, sizeof(u32), ap 743 drivers/net/ethernet/alteon/acenic.c (void *)ap->rx_ret_prd, ap 744 drivers/net/ethernet/alteon/acenic.c ap->rx_ret_prd_dma); ap 745 drivers/net/ethernet/alteon/acenic.c ap->rx_ret_prd = NULL; ap 747 drivers/net/ethernet/alteon/acenic.c if (ap->tx_csm != NULL) { ap 748 drivers/net/ethernet/alteon/acenic.c pci_free_consistent(ap->pdev, sizeof(u32), ap 749 drivers/net/ethernet/alteon/acenic.c (void *)ap->tx_csm, ap->tx_csm_dma); ap 750 drivers/net/ethernet/alteon/acenic.c ap->tx_csm = NULL; ap 757 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap = netdev_priv(dev); ap 766 drivers/net/ethernet/alteon/acenic.c ap->rx_std_ring = pci_alloc_consistent(ap->pdev, size, ap 767 drivers/net/ethernet/alteon/acenic.c &ap->rx_ring_base_dma); ap 768 drivers/net/ethernet/alteon/acenic.c if (ap->rx_std_ring == NULL) ap 771 drivers/net/ethernet/alteon/acenic.c ap->rx_jumbo_ring = ap->rx_std_ring + RX_STD_RING_ENTRIES; ap 772 drivers/net/ethernet/alteon/acenic.c ap->rx_mini_ring = ap->rx_jumbo_ring + RX_JUMBO_RING_ENTRIES; ap 773 drivers/net/ethernet/alteon/acenic.c ap->rx_return_ring = ap->rx_mini_ring + RX_MINI_RING_ENTRIES; ap 777 drivers/net/ethernet/alteon/acenic.c ap->evt_ring = pci_alloc_consistent(ap->pdev, size, &ap->evt_ring_dma); ap 779 drivers/net/ethernet/alteon/acenic.c if (ap->evt_ring == NULL) ap 786 drivers/net/ethernet/alteon/acenic.c if (!ACE_IS_TIGON_I(ap)) { ap 789 drivers/net/ethernet/alteon/acenic.c ap->tx_ring = pci_alloc_consistent(ap->pdev, size, ap 790 drivers/net/ethernet/alteon/acenic.c &ap->tx_ring_dma); ap 792 drivers/net/ethernet/alteon/acenic.c if (ap->tx_ring == NULL) ap 796 drivers/net/ethernet/alteon/acenic.c ap->evt_prd = pci_alloc_consistent(ap->pdev, sizeof(u32), ap 797 drivers/net/ethernet/alteon/acenic.c &ap->evt_prd_dma); ap 798 drivers/net/ethernet/alteon/acenic.c if (ap->evt_prd == NULL) ap 801 drivers/net/ethernet/alteon/acenic.c ap->rx_ret_prd = pci_alloc_consistent(ap->pdev, sizeof(u32), ap 802 drivers/net/ethernet/alteon/acenic.c &ap->rx_ret_prd_dma); ap 803 drivers/net/ethernet/alteon/acenic.c if (ap->rx_ret_prd == NULL) ap 806 drivers/net/ethernet/alteon/acenic.c ap->tx_csm = pci_alloc_consistent(ap->pdev, sizeof(u32), ap 807 drivers/net/ethernet/alteon/acenic.c &ap->tx_csm_dma); ap 808 drivers/net/ethernet/alteon/acenic.c if (ap->tx_csm == NULL) ap 826 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap; ap 828 drivers/net/ethernet/alteon/acenic.c ap = netdev_priv(dev); ap 832 drivers/net/ethernet/alteon/acenic.c if (ap->info) ap 833 drivers/net/ethernet/alteon/acenic.c pci_free_consistent(ap->pdev, sizeof(struct ace_info), ap 834 drivers/net/ethernet/alteon/acenic.c ap->info, ap->info_dma); ap 835 drivers/net/ethernet/alteon/acenic.c kfree(ap->skb); ap 836 drivers/net/ethernet/alteon/acenic.c kfree(ap->trace_buf); ap 841 drivers/net/ethernet/alteon/acenic.c iounmap(ap->regs); ap 863 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap; ap 874 drivers/net/ethernet/alteon/acenic.c ap = netdev_priv(dev); ap 875 drivers/net/ethernet/alteon/acenic.c regs = ap->regs; ap 877 drivers/net/ethernet/alteon/acenic.c board_idx = ap->board_idx; ap 918 drivers/net/ethernet/alteon/acenic.c tig_ver, ap->firmware_major, ap->firmware_minor, ap 919 drivers/net/ethernet/alteon/acenic.c ap->firmware_fix); ap 921 drivers/net/ethernet/alteon/acenic.c ap->version = 1; ap 922 drivers/net/ethernet/alteon/acenic.c ap->tx_ring_entries = TIGON_I_TX_RING_ENTRIES; ap 927 drivers/net/ethernet/alteon/acenic.c tig_ver, ap->firmware_major, ap->firmware_minor, ap 928 drivers/net/ethernet/alteon/acenic.c ap->firmware_fix); ap 938 drivers/net/ethernet/alteon/acenic.c ap->version = 2; ap 939 drivers/net/ethernet/alteon/acenic.c ap->tx_ring_entries = MAX_TX_RING_ENTRIES; ap 1007 drivers/net/ethernet/alteon/acenic.c pdev = ap->pdev; ap 1027 drivers/net/ethernet/alteon/acenic.c ap->pci_latency); ap 1040 drivers/net/ethernet/alteon/acenic.c if (ap->version >= 2) { ap 1047 drivers/net/ethernet/alteon/acenic.c if (ap->pci_command & PCI_COMMAND_INVALIDATE) { ap 1048 drivers/net/ethernet/alteon/acenic.c ap->pci_command &= ~PCI_COMMAND_INVALIDATE; ap 1050 drivers/net/ethernet/alteon/acenic.c ap->pci_command); ap 1054 drivers/net/ethernet/alteon/acenic.c } else if (ap->pci_command & PCI_COMMAND_INVALIDATE) { ap 1075 drivers/net/ethernet/alteon/acenic.c ap->pci_command &= ~PCI_COMMAND_INVALIDATE; ap 1077 drivers/net/ethernet/alteon/acenic.c ap->pci_command); ap 1122 drivers/net/ethernet/alteon/acenic.c if (!(ap->pci_command & PCI_COMMAND_FAST_BACK)) { ap 1124 drivers/net/ethernet/alteon/acenic.c ap->pci_command |= PCI_COMMAND_FAST_BACK; ap 1125 drivers/net/ethernet/alteon/acenic.c pci_write_config_word(pdev, PCI_COMMAND, ap->pci_command); ap 1133 drivers/net/ethernet/alteon/acenic.c ap->pci_using_dac = 1; ap 1135 drivers/net/ethernet/alteon/acenic.c ap->pci_using_dac = 0; ap 1146 drivers/net/ethernet/alteon/acenic.c if (!(info = pci_alloc_consistent(ap->pdev, sizeof(struct ace_info), ap 1147 drivers/net/ethernet/alteon/acenic.c &ap->info_dma))) { ap 1151 drivers/net/ethernet/alteon/acenic.c ap->info = info; ap 1156 drivers/net/ethernet/alteon/acenic.c if (!(ap->skb = kmalloc(sizeof(struct ace_skb), GFP_KERNEL))) { ap 1171 drivers/net/ethernet/alteon/acenic.c spin_lock_init(&ap->debug_lock); ap 1172 drivers/net/ethernet/alteon/acenic.c ap->last_tx = ACE_TX_RING_ENTRIES(ap) - 1; ap 1173 drivers/net/ethernet/alteon/acenic.c ap->last_std_rx = 0; ap 1174 drivers/net/ethernet/alteon/acenic.c ap->last_mini_rx = 0; ap 1177 drivers/net/ethernet/alteon/acenic.c memset(ap->info, 0, sizeof(struct ace_info)); ap 1178 drivers/net/ethernet/alteon/acenic.c memset(ap->skb, 0, sizeof(struct ace_skb)); ap 1184 drivers/net/ethernet/alteon/acenic.c ap->fw_running = 0; ap 1186 drivers/net/ethernet/alteon/acenic.c tmp_ptr = ap->info_dma; ap 1190 drivers/net/ethernet/alteon/acenic.c memset(ap->evt_ring, 0, EVT_RING_ENTRIES * sizeof(struct event)); ap 1192 drivers/net/ethernet/alteon/acenic.c set_aceaddr(&info->evt_ctrl.rngptr, ap->evt_ring_dma); ap 1195 drivers/net/ethernet/alteon/acenic.c *(ap->evt_prd) = 0; ap 1197 drivers/net/ethernet/alteon/acenic.c set_aceaddr(&info->evt_prd_ptr, ap->evt_prd_dma); ap 1210 drivers/net/ethernet/alteon/acenic.c tmp_ptr = ap->info_dma; ap 1214 drivers/net/ethernet/alteon/acenic.c set_aceaddr(&info->rx_std_ctrl.rngptr, ap->rx_ring_base_dma); ap 1219 drivers/net/ethernet/alteon/acenic.c memset(ap->rx_std_ring, 0, ap 1223 drivers/net/ethernet/alteon/acenic.c ap->rx_std_ring[i].flags = BD_FLG_TCP_UDP_SUM; ap 1225 drivers/net/ethernet/alteon/acenic.c ap->rx_std_skbprd = 0; ap 1226 drivers/net/ethernet/alteon/acenic.c atomic_set(&ap->cur_rx_bufs, 0); ap 1229 drivers/net/ethernet/alteon/acenic.c (ap->rx_ring_base_dma + ap 1235 drivers/net/ethernet/alteon/acenic.c memset(ap->rx_jumbo_ring, 0, ap 1239 drivers/net/ethernet/alteon/acenic.c ap->rx_jumbo_ring[i].flags = BD_FLG_TCP_UDP_SUM | BD_FLG_JUMBO; ap 1241 drivers/net/ethernet/alteon/acenic.c ap->rx_jumbo_skbprd = 0; ap 1242 drivers/net/ethernet/alteon/acenic.c atomic_set(&ap->cur_jumbo_bufs, 0); ap 1244 drivers/net/ethernet/alteon/acenic.c memset(ap->rx_mini_ring, 0, ap 1247 drivers/net/ethernet/alteon/acenic.c if (ap->version >= 2) { ap 1249 drivers/net/ethernet/alteon/acenic.c (ap->rx_ring_base_dma + ap 1258 drivers/net/ethernet/alteon/acenic.c ap->rx_mini_ring[i].flags = ap 1266 drivers/net/ethernet/alteon/acenic.c ap->rx_mini_skbprd = 0; ap 1267 drivers/net/ethernet/alteon/acenic.c atomic_set(&ap->cur_mini_bufs, 0); ap 1270 drivers/net/ethernet/alteon/acenic.c (ap->rx_ring_base_dma + ap 1278 drivers/net/ethernet/alteon/acenic.c memset(ap->rx_return_ring, 0, ap 1281 drivers/net/ethernet/alteon/acenic.c set_aceaddr(&info->rx_ret_prd_ptr, ap->rx_ret_prd_dma); ap 1282 drivers/net/ethernet/alteon/acenic.c *(ap->rx_ret_prd) = 0; ap 1286 drivers/net/ethernet/alteon/acenic.c if (ACE_IS_TIGON_I(ap)) { ap 1287 drivers/net/ethernet/alteon/acenic.c ap->tx_ring = (__force struct tx_desc *) regs->Window; ap 1290 drivers/net/ethernet/alteon/acenic.c writel(0, (__force void __iomem *)ap->tx_ring + i * 4); ap 1294 drivers/net/ethernet/alteon/acenic.c memset(ap->tx_ring, 0, ap 1297 drivers/net/ethernet/alteon/acenic.c set_aceaddr(&info->tx_ctrl.rngptr, ap->tx_ring_dma); ap 1300 drivers/net/ethernet/alteon/acenic.c info->tx_ctrl.max_len = ACE_TX_RING_ENTRIES(ap); ap 1306 drivers/net/ethernet/alteon/acenic.c if (!ACE_IS_TIGON_I(ap)) ap 1313 drivers/net/ethernet/alteon/acenic.c set_aceaddr(&info->tx_csm_ptr, ap->tx_csm_dma); ap 1344 drivers/net/ethernet/alteon/acenic.c ap->name, ACE_MAX_MOD_PARMS); ap 1370 drivers/net/ethernet/alteon/acenic.c if(ap->version >= 2) ap 1383 drivers/net/ethernet/alteon/acenic.c ap->name); ap 1396 drivers/net/ethernet/alteon/acenic.c "forcing auto negotiation\n", ap->name); ap 1404 drivers/net/ethernet/alteon/acenic.c "negotiation\n", ap->name); ap 1407 drivers/net/ethernet/alteon/acenic.c if ((option & 0x400) && (ap->version >= 2)) { ap 1409 drivers/net/ethernet/alteon/acenic.c ap->name); ap 1414 drivers/net/ethernet/alteon/acenic.c ap->link = tmp; ap 1416 drivers/net/ethernet/alteon/acenic.c if (ap->version >= 2) ap 1419 drivers/net/ethernet/alteon/acenic.c writel(ap->firmware_start, ®s->Pc); ap 1429 drivers/net/ethernet/alteon/acenic.c ap->cur_rx = 0; ap 1430 drivers/net/ethernet/alteon/acenic.c ap->tx_prd = *(ap->tx_csm) = ap->tx_ret_csm = 0; ap 1433 drivers/net/ethernet/alteon/acenic.c ace_set_txprd(regs, ap, 0); ap 1454 drivers/net/ethernet/alteon/acenic.c while (time_before(jiffies, myjif) && !ap->fw_running) ap 1457 drivers/net/ethernet/alteon/acenic.c if (!ap->fw_running) { ap 1458 drivers/net/ethernet/alteon/acenic.c printk(KERN_ERR "%s: Firmware NOT running!\n", ap->name); ap 1460 drivers/net/ethernet/alteon/acenic.c ace_dump_trace(ap); ap 1473 drivers/net/ethernet/alteon/acenic.c if (ap->version >= 2) ap 1487 drivers/net/ethernet/alteon/acenic.c if (!test_and_set_bit(0, &ap->std_refill_busy)) ap 1491 drivers/net/ethernet/alteon/acenic.c ap->name); ap 1492 drivers/net/ethernet/alteon/acenic.c if (ap->version >= 2) { ap 1493 drivers/net/ethernet/alteon/acenic.c if (!test_and_set_bit(0, &ap->mini_refill_busy)) ap 1497 drivers/net/ethernet/alteon/acenic.c "the RX mini ring\n", ap->name); ap 1509 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap = netdev_priv(dev); ap 1510 drivers/net/ethernet/alteon/acenic.c struct ace_regs __iomem *regs = ap->regs; ap 1511 drivers/net/ethernet/alteon/acenic.c int board_idx = ap->board_idx; ap 1548 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap = netdev_priv(dev); ap 1549 drivers/net/ethernet/alteon/acenic.c struct ace_regs __iomem *regs = ap->regs; ap 1556 drivers/net/ethernet/alteon/acenic.c if (*ap->tx_csm != ap->tx_ret_csm) { ap 1573 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap = netdev_priv(dev); ap 1576 drivers/net/ethernet/alteon/acenic.c cur_size = atomic_read(&ap->cur_rx_bufs); ap 1578 drivers/net/ethernet/alteon/acenic.c !test_and_set_bit(0, &ap->std_refill_busy)) { ap 1585 drivers/net/ethernet/alteon/acenic.c if (ap->version >= 2) { ap 1586 drivers/net/ethernet/alteon/acenic.c cur_size = atomic_read(&ap->cur_mini_bufs); ap 1588 drivers/net/ethernet/alteon/acenic.c !test_and_set_bit(0, &ap->mini_refill_busy)) { ap 1597 drivers/net/ethernet/alteon/acenic.c cur_size = atomic_read(&ap->cur_jumbo_bufs); ap 1598 drivers/net/ethernet/alteon/acenic.c if (ap->jumbo && (cur_size < RX_LOW_JUMBO_THRES) && ap 1599 drivers/net/ethernet/alteon/acenic.c !test_and_set_bit(0, &ap->jumbo_refill_busy)) { ap 1605 drivers/net/ethernet/alteon/acenic.c ap->tasklet_pending = 0; ap 1612 drivers/net/ethernet/alteon/acenic.c static void ace_dump_trace(struct ace_private *ap) ap 1615 drivers/net/ethernet/alteon/acenic.c if (!ap->trace_buf) ap 1616 drivers/net/ethernet/alteon/acenic.c if (!(ap->trace_buf = kmalloc(ACE_TRACE_SIZE, GFP_KERNEL))) ap 1631 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap = netdev_priv(dev); ap 1632 drivers/net/ethernet/alteon/acenic.c struct ace_regs __iomem *regs = ap->regs; ap 1636 drivers/net/ethernet/alteon/acenic.c prefetchw(&ap->cur_rx_bufs); ap 1638 drivers/net/ethernet/alteon/acenic.c idx = ap->rx_std_skbprd; ap 1649 drivers/net/ethernet/alteon/acenic.c mapping = pci_map_page(ap->pdev, virt_to_page(skb->data), ap 1653 drivers/net/ethernet/alteon/acenic.c ap->skb->rx_std_skbuff[idx].skb = skb; ap 1654 drivers/net/ethernet/alteon/acenic.c dma_unmap_addr_set(&ap->skb->rx_std_skbuff[idx], ap 1657 drivers/net/ethernet/alteon/acenic.c rd = &ap->rx_std_ring[idx]; ap 1667 drivers/net/ethernet/alteon/acenic.c atomic_add(i, &ap->cur_rx_bufs); ap 1668 drivers/net/ethernet/alteon/acenic.c ap->rx_std_skbprd = idx; ap 1670 drivers/net/ethernet/alteon/acenic.c if (ACE_IS_TIGON_I(ap)) { ap 1674 drivers/net/ethernet/alteon/acenic.c cmd.idx = ap->rx_std_skbprd; ap 1682 drivers/net/ethernet/alteon/acenic.c clear_bit(0, &ap->std_refill_busy); ap 1694 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap = netdev_priv(dev); ap 1695 drivers/net/ethernet/alteon/acenic.c struct ace_regs __iomem *regs = ap->regs; ap 1698 drivers/net/ethernet/alteon/acenic.c prefetchw(&ap->cur_mini_bufs); ap 1700 drivers/net/ethernet/alteon/acenic.c idx = ap->rx_mini_skbprd; ap 1710 drivers/net/ethernet/alteon/acenic.c mapping = pci_map_page(ap->pdev, virt_to_page(skb->data), ap 1714 drivers/net/ethernet/alteon/acenic.c ap->skb->rx_mini_skbuff[idx].skb = skb; ap 1715 drivers/net/ethernet/alteon/acenic.c dma_unmap_addr_set(&ap->skb->rx_mini_skbuff[idx], ap 1718 drivers/net/ethernet/alteon/acenic.c rd = &ap->rx_mini_ring[idx]; ap 1728 drivers/net/ethernet/alteon/acenic.c atomic_add(i, &ap->cur_mini_bufs); ap 1730 drivers/net/ethernet/alteon/acenic.c ap->rx_mini_skbprd = idx; ap 1736 drivers/net/ethernet/alteon/acenic.c clear_bit(0, &ap->mini_refill_busy); ap 1751 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap = netdev_priv(dev); ap 1752 drivers/net/ethernet/alteon/acenic.c struct ace_regs __iomem *regs = ap->regs; ap 1755 drivers/net/ethernet/alteon/acenic.c idx = ap->rx_jumbo_skbprd; ap 1766 drivers/net/ethernet/alteon/acenic.c mapping = pci_map_page(ap->pdev, virt_to_page(skb->data), ap 1770 drivers/net/ethernet/alteon/acenic.c ap->skb->rx_jumbo_skbuff[idx].skb = skb; ap 1771 drivers/net/ethernet/alteon/acenic.c dma_unmap_addr_set(&ap->skb->rx_jumbo_skbuff[idx], ap 1774 drivers/net/ethernet/alteon/acenic.c rd = &ap->rx_jumbo_ring[idx]; ap 1784 drivers/net/ethernet/alteon/acenic.c atomic_add(i, &ap->cur_jumbo_bufs); ap 1785 drivers/net/ethernet/alteon/acenic.c ap->rx_jumbo_skbprd = idx; ap 1787 drivers/net/ethernet/alteon/acenic.c if (ACE_IS_TIGON_I(ap)) { ap 1791 drivers/net/ethernet/alteon/acenic.c cmd.idx = ap->rx_jumbo_skbprd; ap 1799 drivers/net/ethernet/alteon/acenic.c clear_bit(0, &ap->jumbo_refill_busy); ap 1816 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap; ap 1818 drivers/net/ethernet/alteon/acenic.c ap = netdev_priv(dev); ap 1821 drivers/net/ethernet/alteon/acenic.c switch (ap->evt_ring[evtcsm].evt) { ap 1824 drivers/net/ethernet/alteon/acenic.c ap->name); ap 1825 drivers/net/ethernet/alteon/acenic.c ap->fw_running = 1; ap 1832 drivers/net/ethernet/alteon/acenic.c u16 code = ap->evt_ring[evtcsm].code; ap 1836 drivers/net/ethernet/alteon/acenic.c u32 state = readl(&ap->regs->GigLnkState); ap 1839 drivers/net/ethernet/alteon/acenic.c ap->name, ap 1847 drivers/net/ethernet/alteon/acenic.c ap->name); ap 1851 drivers/net/ethernet/alteon/acenic.c "UP\n", ap->name); ap 1855 drivers/net/ethernet/alteon/acenic.c "state %02x\n", ap->name, code); ap 1860 drivers/net/ethernet/alteon/acenic.c switch(ap->evt_ring[evtcsm].code) { ap 1863 drivers/net/ethernet/alteon/acenic.c ap->name); ap 1867 drivers/net/ethernet/alteon/acenic.c "error\n", ap->name); ap 1871 drivers/net/ethernet/alteon/acenic.c ap->name); ap 1875 drivers/net/ethernet/alteon/acenic.c ap->name, ap->evt_ring[evtcsm].code); ap 1882 drivers/net/ethernet/alteon/acenic.c if (ap->skb->rx_jumbo_skbuff[i].skb) { ap 1883 drivers/net/ethernet/alteon/acenic.c ap->rx_jumbo_ring[i].size = 0; ap 1884 drivers/net/ethernet/alteon/acenic.c set_aceaddr(&ap->rx_jumbo_ring[i].addr, 0); ap 1885 drivers/net/ethernet/alteon/acenic.c dev_kfree_skb(ap->skb->rx_jumbo_skbuff[i].skb); ap 1886 drivers/net/ethernet/alteon/acenic.c ap->skb->rx_jumbo_skbuff[i].skb = NULL; ap 1890 drivers/net/ethernet/alteon/acenic.c if (ACE_IS_TIGON_I(ap)) { ap 1895 drivers/net/ethernet/alteon/acenic.c ace_issue_cmd(ap->regs, &cmd); ap 1897 drivers/net/ethernet/alteon/acenic.c writel(0, &((ap->regs)->RxJumboPrd)); ap 1901 drivers/net/ethernet/alteon/acenic.c ap->jumbo = 0; ap 1902 drivers/net/ethernet/alteon/acenic.c ap->rx_jumbo_skbprd = 0; ap 1904 drivers/net/ethernet/alteon/acenic.c ap->name); ap 1905 drivers/net/ethernet/alteon/acenic.c clear_bit(0, &ap->jumbo_refill_busy); ap 1910 drivers/net/ethernet/alteon/acenic.c ap->name, ap->evt_ring[evtcsm].evt); ap 1921 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap = netdev_priv(dev); ap 1927 drivers/net/ethernet/alteon/acenic.c prefetchw(&ap->cur_rx_bufs); ap 1928 drivers/net/ethernet/alteon/acenic.c prefetchw(&ap->cur_mini_bufs); ap 1943 drivers/net/ethernet/alteon/acenic.c retdesc = &ap->rx_return_ring[idx]; ap 1957 drivers/net/ethernet/alteon/acenic.c rip = &ap->skb->rx_std_skbuff[skbidx]; ap 1962 drivers/net/ethernet/alteon/acenic.c rip = &ap->skb->rx_jumbo_skbuff[skbidx]; ap 1964 drivers/net/ethernet/alteon/acenic.c atomic_dec(&ap->cur_jumbo_bufs); ap 1967 drivers/net/ethernet/alteon/acenic.c rip = &ap->skb->rx_mini_skbuff[skbidx]; ap 1980 drivers/net/ethernet/alteon/acenic.c pci_unmap_page(ap->pdev, ap 2015 drivers/net/ethernet/alteon/acenic.c atomic_sub(std_count, &ap->cur_rx_bufs); ap 2016 drivers/net/ethernet/alteon/acenic.c if (!ACE_IS_TIGON_I(ap)) ap 2017 drivers/net/ethernet/alteon/acenic.c atomic_sub(mini_count, &ap->cur_mini_bufs); ap 2024 drivers/net/ethernet/alteon/acenic.c if (ACE_IS_TIGON_I(ap)) { ap 2025 drivers/net/ethernet/alteon/acenic.c writel(idx, &ap->regs->RxRetCsm); ap 2027 drivers/net/ethernet/alteon/acenic.c ap->cur_rx = idx; ap 2039 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap = netdev_priv(dev); ap 2045 drivers/net/ethernet/alteon/acenic.c info = ap->skb->tx_skbuff + idx; ap 2049 drivers/net/ethernet/alteon/acenic.c pci_unmap_page(ap->pdev, dma_unmap_addr(info, mapping), ap 2062 drivers/net/ethernet/alteon/acenic.c idx = (idx + 1) % ACE_TX_RING_ENTRIES(ap); ap 2069 drivers/net/ethernet/alteon/acenic.c ap->tx_ret_csm = txcsm; ap 2104 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap = netdev_priv(dev); ap 2105 drivers/net/ethernet/alteon/acenic.c struct ace_regs __iomem *regs = ap->regs; ap 2136 drivers/net/ethernet/alteon/acenic.c rxretprd = *ap->rx_ret_prd; ap 2137 drivers/net/ethernet/alteon/acenic.c rxretcsm = ap->cur_rx; ap 2142 drivers/net/ethernet/alteon/acenic.c txcsm = *ap->tx_csm; ap 2143 drivers/net/ethernet/alteon/acenic.c idx = ap->tx_ret_csm; ap 2153 drivers/net/ethernet/alteon/acenic.c if (!tx_ring_full(ap, txcsm, ap->tx_prd)) ap 2158 drivers/net/ethernet/alteon/acenic.c evtprd = *ap->evt_prd; ap 2173 drivers/net/ethernet/alteon/acenic.c cur_size = atomic_read(&ap->cur_rx_bufs); ap 2176 drivers/net/ethernet/alteon/acenic.c !test_and_set_bit(0, &ap->std_refill_busy)) { ap 2186 drivers/net/ethernet/alteon/acenic.c if (!ACE_IS_TIGON_I(ap)) { ap 2187 drivers/net/ethernet/alteon/acenic.c cur_size = atomic_read(&ap->cur_mini_bufs); ap 2191 drivers/net/ethernet/alteon/acenic.c &ap->mini_refill_busy)) { ap 2203 drivers/net/ethernet/alteon/acenic.c if (ap->jumbo) { ap 2204 drivers/net/ethernet/alteon/acenic.c cur_size = atomic_read(&ap->cur_jumbo_bufs); ap 2208 drivers/net/ethernet/alteon/acenic.c &ap->jumbo_refill_busy)){ ap 2219 drivers/net/ethernet/alteon/acenic.c if (run_tasklet && !ap->tasklet_pending) { ap 2220 drivers/net/ethernet/alteon/acenic.c ap->tasklet_pending = 1; ap 2221 drivers/net/ethernet/alteon/acenic.c tasklet_schedule(&ap->ace_tasklet); ap 2230 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap = netdev_priv(dev); ap 2231 drivers/net/ethernet/alteon/acenic.c struct ace_regs __iomem *regs = ap->regs; ap 2234 drivers/net/ethernet/alteon/acenic.c if (!(ap->fw_running)) { ap 2251 drivers/net/ethernet/alteon/acenic.c if (ap->jumbo && ap 2252 drivers/net/ethernet/alteon/acenic.c !test_and_set_bit(0, &ap->jumbo_refill_busy)) ap 2261 drivers/net/ethernet/alteon/acenic.c ap->promisc = 1; ap 2263 drivers/net/ethernet/alteon/acenic.c ap->promisc = 0; ap 2264 drivers/net/ethernet/alteon/acenic.c ap->mcast_all = 0; ap 2278 drivers/net/ethernet/alteon/acenic.c tasklet_init(&ap->ace_tasklet, ace_tasklet, (unsigned long)dev); ap 2285 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap = netdev_priv(dev); ap 2286 drivers/net/ethernet/alteon/acenic.c struct ace_regs __iomem *regs = ap->regs; ap 2299 drivers/net/ethernet/alteon/acenic.c if (ap->promisc) { ap 2304 drivers/net/ethernet/alteon/acenic.c ap->promisc = 0; ap 2312 drivers/net/ethernet/alteon/acenic.c tasklet_kill(&ap->ace_tasklet); ap 2322 drivers/net/ethernet/alteon/acenic.c for (i = 0; i < ACE_TX_RING_ENTRIES(ap); i++) { ap 2326 drivers/net/ethernet/alteon/acenic.c info = ap->skb->tx_skbuff + i; ap 2330 drivers/net/ethernet/alteon/acenic.c if (ACE_IS_TIGON_I(ap)) { ap 2333 drivers/net/ethernet/alteon/acenic.c tx = (__force struct tx_desc __iomem *) &ap->tx_ring[i]; ap 2338 drivers/net/ethernet/alteon/acenic.c memset(ap->tx_ring + i, 0, ap 2340 drivers/net/ethernet/alteon/acenic.c pci_unmap_page(ap->pdev, dma_unmap_addr(info, mapping), ap 2351 drivers/net/ethernet/alteon/acenic.c if (ap->jumbo) { ap 2366 drivers/net/ethernet/alteon/acenic.c ace_map_tx_skb(struct ace_private *ap, struct sk_buff *skb, ap 2372 drivers/net/ethernet/alteon/acenic.c mapping = pci_map_page(ap->pdev, virt_to_page(skb->data), ap 2376 drivers/net/ethernet/alteon/acenic.c info = ap->skb->tx_skbuff + idx; ap 2385 drivers/net/ethernet/alteon/acenic.c ace_load_tx_bd(struct ace_private *ap, struct tx_desc *desc, u64 addr, ap 2392 drivers/net/ethernet/alteon/acenic.c if (ACE_IS_TIGON_I(ap)) { ap 2410 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap = netdev_priv(dev); ap 2411 drivers/net/ethernet/alteon/acenic.c struct ace_regs __iomem *regs = ap->regs; ap 2417 drivers/net/ethernet/alteon/acenic.c idx = ap->tx_prd; ap 2419 drivers/net/ethernet/alteon/acenic.c if (tx_ring_full(ap, ap->tx_ret_csm, idx)) ap 2426 drivers/net/ethernet/alteon/acenic.c mapping = ace_map_tx_skb(ap, skb, skb, idx); ap 2434 drivers/net/ethernet/alteon/acenic.c desc = ap->tx_ring + idx; ap 2435 drivers/net/ethernet/alteon/acenic.c idx = (idx + 1) % ACE_TX_RING_ENTRIES(ap); ap 2438 drivers/net/ethernet/alteon/acenic.c if (tx_ring_full(ap, ap->tx_ret_csm, idx)) ap 2441 drivers/net/ethernet/alteon/acenic.c ace_load_tx_bd(ap, desc, mapping, flagsize, vlan_tag); ap 2447 drivers/net/ethernet/alteon/acenic.c mapping = ace_map_tx_skb(ap, skb, NULL, idx); ap 2456 drivers/net/ethernet/alteon/acenic.c ace_load_tx_bd(ap, ap->tx_ring + idx, mapping, flagsize, vlan_tag); ap 2458 drivers/net/ethernet/alteon/acenic.c idx = (idx + 1) % ACE_TX_RING_ENTRIES(ap); ap 2465 drivers/net/ethernet/alteon/acenic.c info = ap->skb->tx_skbuff + idx; ap 2466 drivers/net/ethernet/alteon/acenic.c desc = ap->tx_ring + idx; ap 2468 drivers/net/ethernet/alteon/acenic.c mapping = skb_frag_dma_map(&ap->pdev->dev, frag, 0, ap 2475 drivers/net/ethernet/alteon/acenic.c idx = (idx + 1) % ACE_TX_RING_ENTRIES(ap); ap 2479 drivers/net/ethernet/alteon/acenic.c if (tx_ring_full(ap, ap->tx_ret_csm, idx)) ap 2492 drivers/net/ethernet/alteon/acenic.c ace_load_tx_bd(ap, desc, mapping, flagsize, vlan_tag); ap 2497 drivers/net/ethernet/alteon/acenic.c ap->tx_prd = idx; ap 2498 drivers/net/ethernet/alteon/acenic.c ace_set_txprd(regs, ap, idx); ap 2509 drivers/net/ethernet/alteon/acenic.c if (!tx_ring_full(ap, ap->tx_ret_csm, idx)) ap 2546 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap = netdev_priv(dev); ap 2547 drivers/net/ethernet/alteon/acenic.c struct ace_regs __iomem *regs = ap->regs; ap 2553 drivers/net/ethernet/alteon/acenic.c if (!(ap->jumbo)) { ap 2556 drivers/net/ethernet/alteon/acenic.c ap->jumbo = 1; ap 2557 drivers/net/ethernet/alteon/acenic.c if (!test_and_set_bit(0, &ap->jumbo_refill_busy)) ap 2562 drivers/net/ethernet/alteon/acenic.c while (test_and_set_bit(0, &ap->jumbo_refill_busy)); ap 2565 drivers/net/ethernet/alteon/acenic.c if (ap->jumbo) { ap 2581 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap = netdev_priv(dev); ap 2582 drivers/net/ethernet/alteon/acenic.c struct ace_regs __iomem *regs = ap->regs; ap 2636 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap = netdev_priv(dev); ap 2637 drivers/net/ethernet/alteon/acenic.c struct ace_regs __iomem *regs = ap->regs; ap 2655 drivers/net/ethernet/alteon/acenic.c if (!ACE_IS_TIGON_I(ap)) ap 2677 drivers/net/ethernet/alteon/acenic.c if (link != ap->link) { ap 2682 drivers/net/ethernet/alteon/acenic.c ap->link = link; ap 2684 drivers/net/ethernet/alteon/acenic.c if (!ACE_IS_TIGON_I(ap)) ap 2699 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap = netdev_priv(dev); ap 2703 drivers/net/ethernet/alteon/acenic.c ap->firmware_major, ap->firmware_minor, ap 2704 drivers/net/ethernet/alteon/acenic.c ap->firmware_fix); ap 2706 drivers/net/ethernet/alteon/acenic.c if (ap->pdev) ap 2707 drivers/net/ethernet/alteon/acenic.c strlcpy(info->bus_info, pci_name(ap->pdev), ap 2717 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap = netdev_priv(dev); ap 2718 drivers/net/ethernet/alteon/acenic.c struct ace_regs __iomem *regs = ap->regs; ap 2745 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap = netdev_priv(dev); ap 2746 drivers/net/ethernet/alteon/acenic.c struct ace_regs __iomem *regs = ap->regs; ap 2749 drivers/net/ethernet/alteon/acenic.c if ((dev->flags & IFF_ALLMULTI) && !(ap->mcast_all)) { ap 2754 drivers/net/ethernet/alteon/acenic.c ap->mcast_all = 1; ap 2755 drivers/net/ethernet/alteon/acenic.c } else if (ap->mcast_all) { ap 2760 drivers/net/ethernet/alteon/acenic.c ap->mcast_all = 0; ap 2763 drivers/net/ethernet/alteon/acenic.c if ((dev->flags & IFF_PROMISC) && !(ap->promisc)) { ap 2768 drivers/net/ethernet/alteon/acenic.c ap->promisc = 1; ap 2769 drivers/net/ethernet/alteon/acenic.c }else if (!(dev->flags & IFF_PROMISC) && (ap->promisc)) { ap 2774 drivers/net/ethernet/alteon/acenic.c ap->promisc = 0; ap 2783 drivers/net/ethernet/alteon/acenic.c if (!netdev_mc_empty(dev) && !ap->mcast_all) { ap 2788 drivers/net/ethernet/alteon/acenic.c }else if (!ap->mcast_all) { ap 2799 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap = netdev_priv(dev); ap 2801 drivers/net/ethernet/alteon/acenic.c (struct ace_mac_stats __iomem *)ap->regs->Stats; ap 2873 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap = netdev_priv(dev); ap 2874 drivers/net/ethernet/alteon/acenic.c struct ace_regs __iomem *regs = ap->regs; ap 2881 drivers/net/ethernet/alteon/acenic.c "CPU is running!\n", ap->name); ap 2885 drivers/net/ethernet/alteon/acenic.c if (ACE_IS_TIGON_I(ap)) ap 2888 drivers/net/ethernet/alteon/acenic.c ret = request_firmware(&fw, fw_name, &ap->pdev->dev); ap 2891 drivers/net/ethernet/alteon/acenic.c ap->name, fw_name); ap 2902 drivers/net/ethernet/alteon/acenic.c ap->firmware_major = fw->data[0]; ap 2903 drivers/net/ethernet/alteon/acenic.c ap->firmware_minor = fw->data[1]; ap 2904 drivers/net/ethernet/alteon/acenic.c ap->firmware_fix = fw->data[2]; ap 2906 drivers/net/ethernet/alteon/acenic.c ap->firmware_start = be32_to_cpu(fw_data[1]); ap 2907 drivers/net/ethernet/alteon/acenic.c if (ap->firmware_start < 0x4000 || ap->firmware_start >= 0x80000) { ap 2909 drivers/net/ethernet/alteon/acenic.c ap->name, ap->firmware_start, fw_name); ap 2917 drivers/net/ethernet/alteon/acenic.c ap->name, load_addr, fw_name); ap 3080 drivers/net/ethernet/alteon/acenic.c struct ace_private *ap = netdev_priv(dev); ap 3081 drivers/net/ethernet/alteon/acenic.c struct ace_regs __iomem *regs = ap->regs; ap 3098 drivers/net/ethernet/alteon/acenic.c printk(KERN_ERR "%s: Unable to sync eeprom\n", ap->name); ap 3107 drivers/net/ethernet/alteon/acenic.c ap->name); ap 3116 drivers/net/ethernet/alteon/acenic.c ap->name); ap 3126 drivers/net/ethernet/alteon/acenic.c ap->name); ap 3183 drivers/net/ethernet/alteon/acenic.c ap->name, offset); ap 704 drivers/net/ethernet/alteon/acenic.h static inline int tx_space (struct ace_private *ap, u32 csm, u32 prd) ap 706 drivers/net/ethernet/alteon/acenic.h return (csm - prd - 1) & (ACE_TX_RING_ENTRIES(ap) - 1); ap 709 drivers/net/ethernet/alteon/acenic.h #define tx_free(ap) tx_space((ap)->tx_ret_csm, (ap)->tx_prd, ap) ap 710 drivers/net/ethernet/alteon/acenic.h #define tx_ring_full(ap, csm, prd) (tx_space(ap, csm, prd) <= TX_RESERVED) ap 722 drivers/net/ethernet/alteon/acenic.h struct ace_private *ap, u32 value) ap 726 drivers/net/ethernet/alteon/acenic.h spin_lock_irqsave(&ap->debug_lock, flags); ap 728 drivers/net/ethernet/alteon/acenic.h if (value == ap->last_tx) ap 731 drivers/net/ethernet/alteon/acenic.h ap->last_tx = value; ap 732 drivers/net/ethernet/alteon/acenic.h spin_unlock_irqrestore(&ap->debug_lock, flags); ap 742 drivers/net/ethernet/alteon/acenic.h struct ace_private *ap = netdev_priv(dev); ap 743 drivers/net/ethernet/alteon/acenic.h struct ace_regs __iomem *regs = ap->regs; ap 745 drivers/net/ethernet/alteon/acenic.h if (ACE_IS_TIGON_I(ap)) ap 756 drivers/net/ethernet/alteon/acenic.h struct ace_private *ap = netdev_priv(dev); ap 757 drivers/net/ethernet/alteon/acenic.h struct ace_regs __iomem *regs = ap->regs; ap 759 drivers/net/ethernet/alteon/acenic.h if (ACE_IS_TIGON_I(ap)) ap 780 drivers/net/ethernet/alteon/acenic.h static void ace_dump_trace(struct ace_private *ap); ap 5162 drivers/net/ethernet/broadcom/tg3.c struct tg3_fiber_aneginfo *ap) ap 5169 drivers/net/ethernet/broadcom/tg3.c if (ap->state == ANEG_STATE_UNKNOWN) { ap 5170 drivers/net/ethernet/broadcom/tg3.c ap->rxconfig = 0; ap 5171 drivers/net/ethernet/broadcom/tg3.c ap->link_time = 0; ap 5172 drivers/net/ethernet/broadcom/tg3.c ap->cur_time = 0; ap 5173 drivers/net/ethernet/broadcom/tg3.c ap->ability_match_cfg = 0; ap 5174 drivers/net/ethernet/broadcom/tg3.c ap->ability_match_count = 0; ap 5175 drivers/net/ethernet/broadcom/tg3.c ap->ability_match = 0; ap 5176 drivers/net/ethernet/broadcom/tg3.c ap->idle_match = 0; ap 5177 drivers/net/ethernet/broadcom/tg3.c ap->ack_match = 0; ap 5179 drivers/net/ethernet/broadcom/tg3.c ap->cur_time++; ap 5184 drivers/net/ethernet/broadcom/tg3.c if (rx_cfg_reg != ap->ability_match_cfg) { ap 5185 drivers/net/ethernet/broadcom/tg3.c ap->ability_match_cfg = rx_cfg_reg; ap 5186 drivers/net/ethernet/broadcom/tg3.c ap->ability_match = 0; ap 5187 drivers/net/ethernet/broadcom/tg3.c ap->ability_match_count = 0; ap 5189 drivers/net/ethernet/broadcom/tg3.c if (++ap->ability_match_count > 1) { ap 5190 drivers/net/ethernet/broadcom/tg3.c ap->ability_match = 1; ap 5191 drivers/net/ethernet/broadcom/tg3.c ap->ability_match_cfg = rx_cfg_reg; ap 5195 drivers/net/ethernet/broadcom/tg3.c ap->ack_match = 1; ap 5197 drivers/net/ethernet/broadcom/tg3.c ap->ack_match = 0; ap 5199 drivers/net/ethernet/broadcom/tg3.c ap->idle_match = 0; ap 5201 drivers/net/ethernet/broadcom/tg3.c ap->idle_match = 1; ap 5202 drivers/net/ethernet/broadcom/tg3.c ap->ability_match_cfg = 0; ap 5203 drivers/net/ethernet/broadcom/tg3.c ap->ability_match_count = 0; ap 5204 drivers/net/ethernet/broadcom/tg3.c ap->ability_match = 0; ap 5205 drivers/net/ethernet/broadcom/tg3.c ap->ack_match = 0; ap 5210 drivers/net/ethernet/broadcom/tg3.c ap->rxconfig = rx_cfg_reg; ap 5213 drivers/net/ethernet/broadcom/tg3.c switch (ap->state) { ap 5215 drivers/net/ethernet/broadcom/tg3.c if (ap->flags & (MR_AN_ENABLE | MR_RESTART_AN)) ap 5216 drivers/net/ethernet/broadcom/tg3.c ap->state = ANEG_STATE_AN_ENABLE; ap 5220 drivers/net/ethernet/broadcom/tg3.c ap->flags &= ~(MR_AN_COMPLETE | MR_PAGE_RX); ap 5221 drivers/net/ethernet/broadcom/tg3.c if (ap->flags & MR_AN_ENABLE) { ap 5222 drivers/net/ethernet/broadcom/tg3.c ap->link_time = 0; ap 5223 drivers/net/ethernet/broadcom/tg3.c ap->cur_time = 0; ap 5224 drivers/net/ethernet/broadcom/tg3.c ap->ability_match_cfg = 0; ap 5225 drivers/net/ethernet/broadcom/tg3.c ap->ability_match_count = 0; ap 5226 drivers/net/ethernet/broadcom/tg3.c ap->ability_match = 0; ap 5227 drivers/net/ethernet/broadcom/tg3.c ap->idle_match = 0; ap 5228 drivers/net/ethernet/broadcom/tg3.c ap->ack_match = 0; ap 5230 drivers/net/ethernet/broadcom/tg3.c ap->state = ANEG_STATE_RESTART_INIT; ap 5232 drivers/net/ethernet/broadcom/tg3.c ap->state = ANEG_STATE_DISABLE_LINK_OK; ap 5237 drivers/net/ethernet/broadcom/tg3.c ap->link_time = ap->cur_time; ap 5238 drivers/net/ethernet/broadcom/tg3.c ap->flags &= ~(MR_NP_LOADED); ap 5239 drivers/net/ethernet/broadcom/tg3.c ap->txconfig = 0; ap 5246 drivers/net/ethernet/broadcom/tg3.c ap->state = ANEG_STATE_RESTART; ap 5250 drivers/net/ethernet/broadcom/tg3.c delta = ap->cur_time - ap->link_time; ap 5252 drivers/net/ethernet/broadcom/tg3.c ap->state = ANEG_STATE_ABILITY_DETECT_INIT; ap 5262 drivers/net/ethernet/broadcom/tg3.c ap->flags &= ~(MR_TOGGLE_TX); ap 5263 drivers/net/ethernet/broadcom/tg3.c ap->txconfig = ANEG_CFG_FD; ap 5266 drivers/net/ethernet/broadcom/tg3.c ap->txconfig |= ANEG_CFG_PS1; ap 5268 drivers/net/ethernet/broadcom/tg3.c ap->txconfig |= ANEG_CFG_PS2; ap 5269 drivers/net/ethernet/broadcom/tg3.c tw32(MAC_TX_AUTO_NEG, ap->txconfig); ap 5274 drivers/net/ethernet/broadcom/tg3.c ap->state = ANEG_STATE_ABILITY_DETECT; ap 5278 drivers/net/ethernet/broadcom/tg3.c if (ap->ability_match != 0 && ap->rxconfig != 0) ap 5279 drivers/net/ethernet/broadcom/tg3.c ap->state = ANEG_STATE_ACK_DETECT_INIT; ap 5283 drivers/net/ethernet/broadcom/tg3.c ap->txconfig |= ANEG_CFG_ACK; ap 5284 drivers/net/ethernet/broadcom/tg3.c tw32(MAC_TX_AUTO_NEG, ap->txconfig); ap 5289 drivers/net/ethernet/broadcom/tg3.c ap->state = ANEG_STATE_ACK_DETECT; ap 5293 drivers/net/ethernet/broadcom/tg3.c if (ap->ack_match != 0) { ap 5294 drivers/net/ethernet/broadcom/tg3.c if ((ap->rxconfig & ~ANEG_CFG_ACK) == ap 5295 drivers/net/ethernet/broadcom/tg3.c (ap->ability_match_cfg & ~ANEG_CFG_ACK)) { ap 5296 drivers/net/ethernet/broadcom/tg3.c ap->state = ANEG_STATE_COMPLETE_ACK_INIT; ap 5298 drivers/net/ethernet/broadcom/tg3.c ap->state = ANEG_STATE_AN_ENABLE; ap 5300 drivers/net/ethernet/broadcom/tg3.c } else if (ap->ability_match != 0 && ap 5301 drivers/net/ethernet/broadcom/tg3.c ap->rxconfig == 0) { ap 5302 drivers/net/ethernet/broadcom/tg3.c ap->state = ANEG_STATE_AN_ENABLE; ap 5307 drivers/net/ethernet/broadcom/tg3.c if (ap->rxconfig & ANEG_CFG_INVAL) { ap 5311 drivers/net/ethernet/broadcom/tg3.c ap->flags &= ~(MR_LP_ADV_FULL_DUPLEX | ap 5320 drivers/net/ethernet/broadcom/tg3.c if (ap->rxconfig & ANEG_CFG_FD) ap 5321 drivers/net/ethernet/broadcom/tg3.c ap->flags |= MR_LP_ADV_FULL_DUPLEX; ap 5322 drivers/net/ethernet/broadcom/tg3.c if (ap->rxconfig & ANEG_CFG_HD) ap 5323 drivers/net/ethernet/broadcom/tg3.c ap->flags |= MR_LP_ADV_HALF_DUPLEX; ap 5324 drivers/net/ethernet/broadcom/tg3.c if (ap->rxconfig & ANEG_CFG_PS1) ap 5325 drivers/net/ethernet/broadcom/tg3.c ap->flags |= MR_LP_ADV_SYM_PAUSE; ap 5326 drivers/net/ethernet/broadcom/tg3.c if (ap->rxconfig & ANEG_CFG_PS2) ap 5327 drivers/net/ethernet/broadcom/tg3.c ap->flags |= MR_LP_ADV_ASYM_PAUSE; ap 5328 drivers/net/ethernet/broadcom/tg3.c if (ap->rxconfig & ANEG_CFG_RF1) ap 5329 drivers/net/ethernet/broadcom/tg3.c ap->flags |= MR_LP_ADV_REMOTE_FAULT1; ap 5330 drivers/net/ethernet/broadcom/tg3.c if (ap->rxconfig & ANEG_CFG_RF2) ap 5331 drivers/net/ethernet/broadcom/tg3.c ap->flags |= MR_LP_ADV_REMOTE_FAULT2; ap 5332 drivers/net/ethernet/broadcom/tg3.c if (ap->rxconfig & ANEG_CFG_NP) ap 5333 drivers/net/ethernet/broadcom/tg3.c ap->flags |= MR_LP_ADV_NEXT_PAGE; ap 5335 drivers/net/ethernet/broadcom/tg3.c ap->link_time = ap->cur_time; ap 5337 drivers/net/ethernet/broadcom/tg3.c ap->flags ^= (MR_TOGGLE_TX); ap 5338 drivers/net/ethernet/broadcom/tg3.c if (ap->rxconfig & 0x0008) ap 5339 drivers/net/ethernet/broadcom/tg3.c ap->flags |= MR_TOGGLE_RX; ap 5340 drivers/net/ethernet/broadcom/tg3.c if (ap->rxconfig & ANEG_CFG_NP) ap 5341 drivers/net/ethernet/broadcom/tg3.c ap->flags |= MR_NP_RX; ap 5342 drivers/net/ethernet/broadcom/tg3.c ap->flags |= MR_PAGE_RX; ap 5344 drivers/net/ethernet/broadcom/tg3.c ap->state = ANEG_STATE_COMPLETE_ACK; ap 5349 drivers/net/ethernet/broadcom/tg3.c if (ap->ability_match != 0 && ap 5350 drivers/net/ethernet/broadcom/tg3.c ap->rxconfig == 0) { ap 5351 drivers/net/ethernet/broadcom/tg3.c ap->state = ANEG_STATE_AN_ENABLE; ap 5354 drivers/net/ethernet/broadcom/tg3.c delta = ap->cur_time - ap->link_time; ap 5356 drivers/net/ethernet/broadcom/tg3.c if (!(ap->flags & (MR_LP_ADV_NEXT_PAGE))) { ap 5357 drivers/net/ethernet/broadcom/tg3.c ap->state = ANEG_STATE_IDLE_DETECT_INIT; ap 5359 drivers/net/ethernet/broadcom/tg3.c if ((ap->txconfig & ANEG_CFG_NP) == 0 && ap 5360 drivers/net/ethernet/broadcom/tg3.c !(ap->flags & MR_NP_RX)) { ap 5361 drivers/net/ethernet/broadcom/tg3.c ap->state = ANEG_STATE_IDLE_DETECT_INIT; ap 5370 drivers/net/ethernet/broadcom/tg3.c ap->link_time = ap->cur_time; ap 5375 drivers/net/ethernet/broadcom/tg3.c ap->state = ANEG_STATE_IDLE_DETECT; ap 5380 drivers/net/ethernet/broadcom/tg3.c if (ap->ability_match != 0 && ap 5381 drivers/net/ethernet/broadcom/tg3.c ap->rxconfig == 0) { ap 5382 drivers/net/ethernet/broadcom/tg3.c ap->state = ANEG_STATE_AN_ENABLE; ap 5385 drivers/net/ethernet/broadcom/tg3.c delta = ap->cur_time - ap->link_time; ap 5388 drivers/net/ethernet/broadcom/tg3.c ap->state = ANEG_STATE_LINK_OK; ap 5393 drivers/net/ethernet/broadcom/tg3.c ap->flags |= (MR_AN_COMPLETE | MR_LINK_OK); ap 60 drivers/net/ethernet/chelsio/cxgb/cxgb2.c static inline void schedule_mac_stats_update(struct adapter *ap, int secs) ap 62 drivers/net/ethernet/chelsio/cxgb/cxgb2.c schedule_delayed_work(&ap->stats_update_task, secs * HZ); ap 65 drivers/net/ethernet/chelsio/cxgb/cxgb2.c static inline void cancel_mac_stats_update(struct adapter *ap) ap 67 drivers/net/ethernet/chelsio/cxgb/cxgb2.c cancel_delayed_work(&ap->stats_update_task); ap 535 drivers/net/ethernet/chelsio/cxgb/cxgb2.c static inline void reg_block_dump(struct adapter *ap, void *buf, ap 541 drivers/net/ethernet/chelsio/cxgb/cxgb2.c *p++ = readl(ap->regs + start); ap 547 drivers/net/ethernet/chelsio/cxgb/cxgb2.c struct adapter *ap = dev->ml_priv; ap 555 drivers/net/ethernet/chelsio/cxgb/cxgb2.c reg_block_dump(ap, buf, 0, A_SG_RESPACCUTIMER); ap 556 drivers/net/ethernet/chelsio/cxgb/cxgb2.c reg_block_dump(ap, buf, A_MC3_CFG, A_MC4_INT_CAUSE); ap 557 drivers/net/ethernet/chelsio/cxgb/cxgb2.c reg_block_dump(ap, buf, A_TPI_ADDR, A_TPI_PAR); ap 558 drivers/net/ethernet/chelsio/cxgb/cxgb2.c reg_block_dump(ap, buf, A_TP_IN_CONFIG, A_TP_TX_DROP_COUNT); ap 559 drivers/net/ethernet/chelsio/cxgb/cxgb2.c reg_block_dump(ap, buf, A_RAT_ROUTE_CONTROL, A_RAT_INTR_CAUSE); ap 560 drivers/net/ethernet/chelsio/cxgb/cxgb2.c reg_block_dump(ap, buf, A_CSPI_RX_AE_WM, A_CSPI_INTR_ENABLE); ap 561 drivers/net/ethernet/chelsio/cxgb/cxgb2.c reg_block_dump(ap, buf, A_ESPI_SCH_TOKEN0, A_ESPI_GOSTAT); ap 562 drivers/net/ethernet/chelsio/cxgb/cxgb2.c reg_block_dump(ap, buf, A_ULP_ULIMIT, A_ULP_PIO_CTRL); ap 563 drivers/net/ethernet/chelsio/cxgb/cxgb2.c reg_block_dump(ap, buf, A_PL_ENABLE, A_PL_CAUSE); ap 564 drivers/net/ethernet/chelsio/cxgb/cxgb2.c reg_block_dump(ap, buf, A_MC5_CONFIG, A_MC5_MASK_WRITE_CMD); ap 779 drivers/net/ethernet/chelsio/cxgb/cxgb2.c #define EEPROM_MAGIC(ap) \ ap 780 drivers/net/ethernet/chelsio/cxgb/cxgb2.c (PCI_VENDOR_ID_CHELSIO | ((ap)->params.chip_version << 16)) ap 750 drivers/net/ethernet/chelsio/cxgb/sge.c struct adapter *ap = sge->adapter; ap 752 drivers/net/ethernet/chelsio/cxgb/sge.c writel(0, ap->regs + A_SG_CONTROL); ap 753 drivers/net/ethernet/chelsio/cxgb/sge.c setup_ring_params(ap, sge->cmdQ[0].dma_addr, sge->cmdQ[0].size, ap 755 drivers/net/ethernet/chelsio/cxgb/sge.c setup_ring_params(ap, sge->cmdQ[1].dma_addr, sge->cmdQ[1].size, ap 757 drivers/net/ethernet/chelsio/cxgb/sge.c setup_ring_params(ap, sge->freelQ[0].dma_addr, ap 760 drivers/net/ethernet/chelsio/cxgb/sge.c setup_ring_params(ap, sge->freelQ[1].dma_addr, ap 765 drivers/net/ethernet/chelsio/cxgb/sge.c writel(SGE_RX_SM_BUF_SIZE + 1, ap->regs + A_SG_FLTHRESHOLD); ap 767 drivers/net/ethernet/chelsio/cxgb/sge.c setup_ring_params(ap, sge->respQ.dma_addr, sge->respQ.size, ap 769 drivers/net/ethernet/chelsio/cxgb/sge.c writel((u32)sge->respQ.size - 1, ap->regs + A_SG_RSPQUEUECREDIT); ap 781 drivers/net/ethernet/chelsio/cxgb/sge.c sge->intrtimer_nres = SGE_INTRTIMER_NRES * core_ticks_per_usec(ap); ap 18 drivers/net/ethernet/chelsio/cxgb/tp.c static void tp_init(adapter_t * ap, const struct tp_params *p, ap 23 drivers/net/ethernet/chelsio/cxgb/tp.c if (!t1_is_asic(ap)) ap 32 drivers/net/ethernet/chelsio/cxgb/tp.c writel(val, ap->regs + A_TP_IN_CONFIG); ap 36 drivers/net/ethernet/chelsio/cxgb/tp.c F_TP_OUT_ESPI_GENERATE_TCP_CSUM, ap->regs + A_TP_OUT_CONFIG); ap 40 drivers/net/ethernet/chelsio/cxgb/tp.c V_SYN_COOKIE_PARAMETER(29), ap->regs + A_TP_GLOBAL_CONFIG); ap 44 drivers/net/ethernet/chelsio/cxgb/tp.c if (is_T2(ap) && ap->params.nports > 1) { ap 50 drivers/net/ethernet/chelsio/cxgb/tp.c ap->regs + A_TP_TX_DROP_CONFIG); ap 1729 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c static inline void reg_block_dump(struct adapter *ap, void *buf, ap 1735 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c *p++ = t3_read_reg(ap, start); ap 1742 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *ap = pi->adapter; ap 1750 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c regs->version = 3 | (ap->params.rev << 10) | (is_pcie(ap) << 31); ap 1758 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c reg_block_dump(ap, buf, 0, A_SG_RSPQ_CREDIT_RETURN); ap 1759 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c reg_block_dump(ap, buf, A_SG_HI_DRB_HI_THRSH, A_ULPRX_PBL_ULIMIT); ap 1760 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c reg_block_dump(ap, buf, A_ULPTX_CONFIG, A_MPS_INT_CAUSE); ap 1761 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c reg_block_dump(ap, buf, A_CPL_SWITCH_CNTRL, A_CPL_MAP_TBL_DATA); ap 1762 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c reg_block_dump(ap, buf, A_SMB_GLOBAL_TIME_CFG, A_XGM_SERDES_STAT3); ap 1763 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c reg_block_dump(ap, buf, A_XGM_SERDES_STATUS0, ap 1765 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c reg_block_dump(ap, buf, XGM_REG(A_XGM_SERDES_STATUS0, 1), ap 1385 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h static inline unsigned int mk_adap_vers(struct adapter *ap) ap 1387 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h return CHELSIO_CHIP_VERSION(ap->params.chip) | ap 1388 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h (CHELSIO_CHIP_RELEASE(ap->params.chip) << 10) | (1 << 16); ap 364 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct app_priority *ap = &dcb->app_priority[idx]; ap 391 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c ap->user_prio_map = fwap->user_prio_map; ap 392 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c ap->sel_field = fwap->sel_field; ap 393 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c ap->protocolid = be16_to_cpu(fwap->protocolid); ap 2489 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c struct app_priority *ap; ap 2498 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c ap = &dcb->app_priority[app]; ap 2500 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (ap->protocolid == 0) ap 2504 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (ap->sel_field < ARRAY_SIZE(sel_names)) ap 2505 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c sel_name = sel_names[ap->sel_field]; ap 2511 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c ap->user_prio_map, ap 2512 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c sel_name, ap->sel_field, ap 2513 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c ap->protocolid, ap->protocolid); ap 5043 drivers/net/ethernet/sun/niu.c struct niu_altmac_rdc *ap = &cp->alt_mac_mappings[i]; ap 5045 drivers/net/ethernet/sun/niu.c err = niu_set_alt_mac_rdc_table(np, ap->alt_mac_num, ap 5046 drivers/net/ethernet/sun/niu.c ap->rdc_num, ap->mac_pref); ap 1134 drivers/net/phy/phy_device.c va_list ap; ap 1140 drivers/net/phy/phy_device.c va_start(ap, fmt); ap 1141 drivers/net/phy/phy_device.c vprintk(fmt, ap); ap 1142 drivers/net/phy/phy_device.c va_end(ap); ap 96 drivers/net/ppp/ppp_async.c static int ppp_async_encode(struct asyncppp *ap); ap 98 drivers/net/ppp/ppp_async.c static int ppp_async_push(struct asyncppp *ap); ap 99 drivers/net/ppp/ppp_async.c static void ppp_async_flush_output(struct asyncppp *ap); ap 100 drivers/net/ppp/ppp_async.c static void ppp_async_input(struct asyncppp *ap, const unsigned char *buf, ap 106 drivers/net/ppp/ppp_async.c static void async_lcp_peek(struct asyncppp *ap, unsigned char *data, ap 134 drivers/net/ppp/ppp_async.c struct asyncppp *ap; ap 137 drivers/net/ppp/ppp_async.c ap = tty->disc_data; ap 138 drivers/net/ppp/ppp_async.c if (ap != NULL) ap 139 drivers/net/ppp/ppp_async.c refcount_inc(&ap->refcnt); ap 141 drivers/net/ppp/ppp_async.c return ap; ap 144 drivers/net/ppp/ppp_async.c static void ap_put(struct asyncppp *ap) ap 146 drivers/net/ppp/ppp_async.c if (refcount_dec_and_test(&ap->refcnt)) ap 147 drivers/net/ppp/ppp_async.c complete(&ap->dead); ap 157 drivers/net/ppp/ppp_async.c struct asyncppp *ap; ap 165 drivers/net/ppp/ppp_async.c ap = kzalloc(sizeof(*ap), GFP_KERNEL); ap 166 drivers/net/ppp/ppp_async.c if (!ap) ap 170 drivers/net/ppp/ppp_async.c ap->tty = tty; ap 171 drivers/net/ppp/ppp_async.c ap->mru = PPP_MRU; ap 172 drivers/net/ppp/ppp_async.c spin_lock_init(&ap->xmit_lock); ap 173 drivers/net/ppp/ppp_async.c spin_lock_init(&ap->recv_lock); ap 174 drivers/net/ppp/ppp_async.c ap->xaccm[0] = ~0U; ap 175 drivers/net/ppp/ppp_async.c ap->xaccm[3] = 0x60000000U; ap 176 drivers/net/ppp/ppp_async.c ap->raccm = ~0U; ap 177 drivers/net/ppp/ppp_async.c ap->optr = ap->obuf; ap 178 drivers/net/ppp/ppp_async.c ap->olim = ap->obuf; ap 179 drivers/net/ppp/ppp_async.c ap->lcp_fcs = -1; ap 181 drivers/net/ppp/ppp_async.c skb_queue_head_init(&ap->rqueue); ap 182 drivers/net/ppp/ppp_async.c tasklet_init(&ap->tsk, ppp_async_process, (unsigned long) ap); ap 184 drivers/net/ppp/ppp_async.c refcount_set(&ap->refcnt, 1); ap 185 drivers/net/ppp/ppp_async.c init_completion(&ap->dead); ap 187 drivers/net/ppp/ppp_async.c ap->chan.private = ap; ap 188 drivers/net/ppp/ppp_async.c ap->chan.ops = &async_ops; ap 189 drivers/net/ppp/ppp_async.c ap->chan.mtu = PPP_MRU; ap 191 drivers/net/ppp/ppp_async.c ap->chan.speed = speed; ap 192 drivers/net/ppp/ppp_async.c err = ppp_register_channel(&ap->chan); ap 196 drivers/net/ppp/ppp_async.c tty->disc_data = ap; ap 201 drivers/net/ppp/ppp_async.c kfree(ap); ap 217 drivers/net/ppp/ppp_async.c struct asyncppp *ap; ap 220 drivers/net/ppp/ppp_async.c ap = tty->disc_data; ap 223 drivers/net/ppp/ppp_async.c if (!ap) ap 233 drivers/net/ppp/ppp_async.c if (!refcount_dec_and_test(&ap->refcnt)) ap 234 drivers/net/ppp/ppp_async.c wait_for_completion(&ap->dead); ap 235 drivers/net/ppp/ppp_async.c tasklet_kill(&ap->tsk); ap 237 drivers/net/ppp/ppp_async.c ppp_unregister_channel(&ap->chan); ap 238 drivers/net/ppp/ppp_async.c kfree_skb(ap->rpkt); ap 239 drivers/net/ppp/ppp_async.c skb_queue_purge(&ap->rqueue); ap 240 drivers/net/ppp/ppp_async.c kfree_skb(ap->tpkt); ap 241 drivers/net/ppp/ppp_async.c kfree(ap); ap 287 drivers/net/ppp/ppp_async.c struct asyncppp *ap = ap_get(tty); ap 291 drivers/net/ppp/ppp_async.c if (!ap) ap 297 drivers/net/ppp/ppp_async.c if (put_user(ppp_channel_index(&ap->chan), p)) ap 304 drivers/net/ppp/ppp_async.c if (put_user(ppp_unit_number(&ap->chan), p)) ap 312 drivers/net/ppp/ppp_async.c ppp_async_flush_output(ap); ap 328 drivers/net/ppp/ppp_async.c ap_put(ap); ap 344 drivers/net/ppp/ppp_async.c struct asyncppp *ap = ap_get(tty); ap 347 drivers/net/ppp/ppp_async.c if (!ap) ap 349 drivers/net/ppp/ppp_async.c spin_lock_irqsave(&ap->recv_lock, flags); ap 350 drivers/net/ppp/ppp_async.c ppp_async_input(ap, buf, cflags, count); ap 351 drivers/net/ppp/ppp_async.c spin_unlock_irqrestore(&ap->recv_lock, flags); ap 352 drivers/net/ppp/ppp_async.c if (!skb_queue_empty(&ap->rqueue)) ap 353 drivers/net/ppp/ppp_async.c tasklet_schedule(&ap->tsk); ap 354 drivers/net/ppp/ppp_async.c ap_put(ap); ap 361 drivers/net/ppp/ppp_async.c struct asyncppp *ap = ap_get(tty); ap 364 drivers/net/ppp/ppp_async.c if (!ap) ap 366 drivers/net/ppp/ppp_async.c set_bit(XMIT_WAKEUP, &ap->xmit_flags); ap 367 drivers/net/ppp/ppp_async.c tasklet_schedule(&ap->tsk); ap 368 drivers/net/ppp/ppp_async.c ap_put(ap); ap 405 drivers/net/ppp/ppp_async.c struct asyncppp *ap = chan->private; ap 414 drivers/net/ppp/ppp_async.c val = ap->flags | ap->rbits; ap 422 drivers/net/ppp/ppp_async.c ap->flags = val & ~SC_RCV_BITS; ap 423 drivers/net/ppp/ppp_async.c spin_lock_irq(&ap->recv_lock); ap 424 drivers/net/ppp/ppp_async.c ap->rbits = val & SC_RCV_BITS; ap 425 drivers/net/ppp/ppp_async.c spin_unlock_irq(&ap->recv_lock); ap 430 drivers/net/ppp/ppp_async.c if (put_user(ap->xaccm[0], (u32 __user *)argp)) ap 435 drivers/net/ppp/ppp_async.c if (get_user(ap->xaccm[0], (u32 __user *)argp)) ap 441 drivers/net/ppp/ppp_async.c if (put_user(ap->raccm, (u32 __user *)argp)) ap 446 drivers/net/ppp/ppp_async.c if (get_user(ap->raccm, (u32 __user *)argp)) ap 452 drivers/net/ppp/ppp_async.c if (copy_to_user(argp, ap->xaccm, sizeof(ap->xaccm))) ap 461 drivers/net/ppp/ppp_async.c memcpy(ap->xaccm, accm, sizeof(ap->xaccm)); ap 466 drivers/net/ppp/ppp_async.c if (put_user(ap->mru, p)) ap 475 drivers/net/ppp/ppp_async.c ap->mru = val; ap 493 drivers/net/ppp/ppp_async.c struct asyncppp *ap = (struct asyncppp *) arg; ap 497 drivers/net/ppp/ppp_async.c while ((skb = skb_dequeue(&ap->rqueue)) != NULL) { ap 499 drivers/net/ppp/ppp_async.c ppp_input_error(&ap->chan, 0); ap 500 drivers/net/ppp/ppp_async.c ppp_input(&ap->chan, skb); ap 504 drivers/net/ppp/ppp_async.c if (test_bit(XMIT_WAKEUP, &ap->xmit_flags) && ppp_async_push(ap)) ap 505 drivers/net/ppp/ppp_async.c ppp_output_wakeup(&ap->chan); ap 520 drivers/net/ppp/ppp_async.c #define PUT_BYTE(ap, buf, c, islcp) do { \ ap 521 drivers/net/ppp/ppp_async.c if ((islcp && c < 0x20) || (ap->xaccm[c >> 5] & (1 << (c & 0x1f)))) {\ ap 529 drivers/net/ppp/ppp_async.c ppp_async_encode(struct asyncppp *ap) ap 536 drivers/net/ppp/ppp_async.c buf = ap->obuf; ap 537 drivers/net/ppp/ppp_async.c ap->olim = buf; ap 538 drivers/net/ppp/ppp_async.c ap->optr = buf; ap 539 drivers/net/ppp/ppp_async.c i = ap->tpkt_pos; ap 540 drivers/net/ppp/ppp_async.c data = ap->tpkt->data; ap 541 drivers/net/ppp/ppp_async.c count = ap->tpkt->len; ap 542 drivers/net/ppp/ppp_async.c fcs = ap->tfcs; ap 554 drivers/net/ppp/ppp_async.c async_lcp_peek(ap, data, count, 0); ap 561 drivers/net/ppp/ppp_async.c time_after_eq(jiffies, ap->last_xmit + flag_time)) ap 563 drivers/net/ppp/ppp_async.c ap->last_xmit = jiffies; ap 569 drivers/net/ppp/ppp_async.c if ((ap->flags & SC_COMP_AC) == 0 || islcp) { ap 570 drivers/net/ppp/ppp_async.c PUT_BYTE(ap, buf, 0xff, islcp); ap 572 drivers/net/ppp/ppp_async.c PUT_BYTE(ap, buf, 0x03, islcp); ap 582 drivers/net/ppp/ppp_async.c buflim = ap->obuf + OBUFSIZE - 6; ap 585 drivers/net/ppp/ppp_async.c if (i == 1 && c == 0 && (ap->flags & SC_COMP_PROT)) ap 588 drivers/net/ppp/ppp_async.c PUT_BYTE(ap, buf, c, islcp); ap 595 drivers/net/ppp/ppp_async.c ap->olim = buf; ap 596 drivers/net/ppp/ppp_async.c ap->tpkt_pos = i; ap 597 drivers/net/ppp/ppp_async.c ap->tfcs = fcs; ap 606 drivers/net/ppp/ppp_async.c PUT_BYTE(ap, buf, c, islcp); ap 608 drivers/net/ppp/ppp_async.c PUT_BYTE(ap, buf, c, islcp); ap 610 drivers/net/ppp/ppp_async.c ap->olim = buf; ap 612 drivers/net/ppp/ppp_async.c consume_skb(ap->tpkt); ap 613 drivers/net/ppp/ppp_async.c ap->tpkt = NULL; ap 630 drivers/net/ppp/ppp_async.c struct asyncppp *ap = chan->private; ap 632 drivers/net/ppp/ppp_async.c ppp_async_push(ap); ap 634 drivers/net/ppp/ppp_async.c if (test_and_set_bit(XMIT_FULL, &ap->xmit_flags)) ap 636 drivers/net/ppp/ppp_async.c ap->tpkt = skb; ap 637 drivers/net/ppp/ppp_async.c ap->tpkt_pos = 0; ap 639 drivers/net/ppp/ppp_async.c ppp_async_push(ap); ap 647 drivers/net/ppp/ppp_async.c ppp_async_push(struct asyncppp *ap) ap 650 drivers/net/ppp/ppp_async.c struct tty_struct *tty = ap->tty; ap 662 drivers/net/ppp/ppp_async.c if (test_and_set_bit(XMIT_BUSY, &ap->xmit_flags)) ap 664 drivers/net/ppp/ppp_async.c spin_lock_bh(&ap->xmit_lock); ap 666 drivers/net/ppp/ppp_async.c if (test_and_clear_bit(XMIT_WAKEUP, &ap->xmit_flags)) ap 668 drivers/net/ppp/ppp_async.c if (!tty_stuffed && ap->optr < ap->olim) { ap 669 drivers/net/ppp/ppp_async.c avail = ap->olim - ap->optr; ap 671 drivers/net/ppp/ppp_async.c sent = tty->ops->write(tty, ap->optr, avail); ap 674 drivers/net/ppp/ppp_async.c ap->optr += sent; ap 679 drivers/net/ppp/ppp_async.c if (ap->optr >= ap->olim && ap->tpkt) { ap 680 drivers/net/ppp/ppp_async.c if (ppp_async_encode(ap)) { ap 682 drivers/net/ppp/ppp_async.c clear_bit(XMIT_FULL, &ap->xmit_flags); ap 696 drivers/net/ppp/ppp_async.c clear_bit(XMIT_BUSY, &ap->xmit_flags); ap 698 drivers/net/ppp/ppp_async.c if (!(test_bit(XMIT_WAKEUP, &ap->xmit_flags) || ap 699 drivers/net/ppp/ppp_async.c (!tty_stuffed && ap->tpkt))) ap 702 drivers/net/ppp/ppp_async.c if (test_and_set_bit(XMIT_BUSY, &ap->xmit_flags)) ap 705 drivers/net/ppp/ppp_async.c spin_unlock_bh(&ap->xmit_lock); ap 709 drivers/net/ppp/ppp_async.c clear_bit(XMIT_BUSY, &ap->xmit_flags); ap 710 drivers/net/ppp/ppp_async.c if (ap->tpkt) { ap 711 drivers/net/ppp/ppp_async.c kfree_skb(ap->tpkt); ap 712 drivers/net/ppp/ppp_async.c ap->tpkt = NULL; ap 713 drivers/net/ppp/ppp_async.c clear_bit(XMIT_FULL, &ap->xmit_flags); ap 716 drivers/net/ppp/ppp_async.c ap->optr = ap->olim; ap 717 drivers/net/ppp/ppp_async.c spin_unlock_bh(&ap->xmit_lock); ap 727 drivers/net/ppp/ppp_async.c ppp_async_flush_output(struct asyncppp *ap) ap 731 drivers/net/ppp/ppp_async.c spin_lock_bh(&ap->xmit_lock); ap 732 drivers/net/ppp/ppp_async.c ap->optr = ap->olim; ap 733 drivers/net/ppp/ppp_async.c if (ap->tpkt != NULL) { ap 734 drivers/net/ppp/ppp_async.c kfree_skb(ap->tpkt); ap 735 drivers/net/ppp/ppp_async.c ap->tpkt = NULL; ap 736 drivers/net/ppp/ppp_async.c clear_bit(XMIT_FULL, &ap->xmit_flags); ap 739 drivers/net/ppp/ppp_async.c spin_unlock_bh(&ap->xmit_lock); ap 741 drivers/net/ppp/ppp_async.c ppp_output_wakeup(&ap->chan); ap 750 drivers/net/ppp/ppp_async.c scan_ordinary(struct asyncppp *ap, const unsigned char *buf, int count) ap 757 drivers/net/ppp/ppp_async.c (c < 0x20 && (ap->raccm & (1 << c)) != 0)) ap 765 drivers/net/ppp/ppp_async.c process_input_packet(struct asyncppp *ap) ap 771 drivers/net/ppp/ppp_async.c skb = ap->rpkt; ap 772 drivers/net/ppp/ppp_async.c if (ap->state & (SC_TOSS | SC_ESCAPE)) ap 807 drivers/net/ppp/ppp_async.c async_lcp_peek(ap, p, skb->len, 1); ap 811 drivers/net/ppp/ppp_async.c skb->cb[0] = ap->state; ap 812 drivers/net/ppp/ppp_async.c skb_queue_tail(&ap->rqueue, skb); ap 813 drivers/net/ppp/ppp_async.c ap->rpkt = NULL; ap 814 drivers/net/ppp/ppp_async.c ap->state = 0; ap 819 drivers/net/ppp/ppp_async.c ap->state = SC_PREV_ERROR; ap 831 drivers/net/ppp/ppp_async.c ppp_async_input(struct asyncppp *ap, const unsigned char *buf, ap 839 drivers/net/ppp/ppp_async.c if (~ap->rbits & SC_RCV_BITS) { ap 849 drivers/net/ppp/ppp_async.c ap->rbits |= s; ap 854 drivers/net/ppp/ppp_async.c if ((ap->state & SC_ESCAPE) && buf[0] == PPP_ESCAPE) ap 857 drivers/net/ppp/ppp_async.c n = scan_ordinary(ap, buf, count); ap 860 drivers/net/ppp/ppp_async.c if (flags && (ap->state & SC_TOSS) == 0) { ap 868 drivers/net/ppp/ppp_async.c ap->state |= SC_TOSS; ap 870 drivers/net/ppp/ppp_async.c } else if (n > 0 && (ap->state & SC_TOSS) == 0) { ap 872 drivers/net/ppp/ppp_async.c skb = ap->rpkt; ap 874 drivers/net/ppp/ppp_async.c skb = dev_alloc_skb(ap->mru + PPP_HDRLEN + 2); ap 877 drivers/net/ppp/ppp_async.c ap->rpkt = skb; ap 891 drivers/net/ppp/ppp_async.c ap->state |= SC_TOSS; ap 894 drivers/net/ppp/ppp_async.c if (ap->state & SC_ESCAPE) { ap 896 drivers/net/ppp/ppp_async.c ap->state &= ~SC_ESCAPE; ap 906 drivers/net/ppp/ppp_async.c ap->state |= SC_TOSS; ap 908 drivers/net/ppp/ppp_async.c process_input_packet(ap); ap 910 drivers/net/ppp/ppp_async.c ap->state |= SC_ESCAPE; ap 911 drivers/net/ppp/ppp_async.c } else if (I_IXON(ap->tty)) { ap 912 drivers/net/ppp/ppp_async.c if (c == START_CHAR(ap->tty)) ap 913 drivers/net/ppp/ppp_async.c start_tty(ap->tty); ap 914 drivers/net/ppp/ppp_async.c else if (c == STOP_CHAR(ap->tty)) ap 915 drivers/net/ppp/ppp_async.c stop_tty(ap->tty); ap 929 drivers/net/ppp/ppp_async.c ap->state |= SC_TOSS; ap 950 drivers/net/ppp/ppp_async.c static void async_lcp_peek(struct asyncppp *ap, unsigned char *data, ap 978 drivers/net/ppp/ppp_async.c ap->lcp_fcs = fcs; ap 983 drivers/net/ppp/ppp_async.c fcs ^= ap->lcp_fcs; ap 984 drivers/net/ppp/ppp_async.c ap->lcp_fcs = -1; ap 999 drivers/net/ppp/ppp_async.c ap->mru = val; ap 1001 drivers/net/ppp/ppp_async.c ap->chan.mtu = val; ap 1006 drivers/net/ppp/ppp_async.c ap->raccm = val; ap 1008 drivers/net/ppp/ppp_async.c ap->xaccm[0] = val; ap 89 drivers/net/ppp/ppp_synctty.c static struct sk_buff* ppp_sync_txmunge(struct syncppp *ap, struct sk_buff *); ap 94 drivers/net/ppp/ppp_synctty.c static int ppp_sync_push(struct syncppp *ap); ap 95 drivers/net/ppp/ppp_synctty.c static void ppp_sync_flush_output(struct syncppp *ap); ap 96 drivers/net/ppp/ppp_synctty.c static void ppp_sync_input(struct syncppp *ap, const unsigned char *buf, ap 136 drivers/net/ppp/ppp_synctty.c struct syncppp *ap; ap 139 drivers/net/ppp/ppp_synctty.c ap = tty->disc_data; ap 140 drivers/net/ppp/ppp_synctty.c if (ap != NULL) ap 141 drivers/net/ppp/ppp_synctty.c refcount_inc(&ap->refcnt); ap 143 drivers/net/ppp/ppp_synctty.c return ap; ap 146 drivers/net/ppp/ppp_synctty.c static void sp_put(struct syncppp *ap) ap 148 drivers/net/ppp/ppp_synctty.c if (refcount_dec_and_test(&ap->refcnt)) ap 149 drivers/net/ppp/ppp_synctty.c complete(&ap->dead_cmp); ap 158 drivers/net/ppp/ppp_synctty.c struct syncppp *ap; ap 165 drivers/net/ppp/ppp_synctty.c ap = kzalloc(sizeof(*ap), GFP_KERNEL); ap 167 drivers/net/ppp/ppp_synctty.c if (!ap) ap 171 drivers/net/ppp/ppp_synctty.c ap->tty = tty; ap 172 drivers/net/ppp/ppp_synctty.c ap->mru = PPP_MRU; ap 173 drivers/net/ppp/ppp_synctty.c spin_lock_init(&ap->xmit_lock); ap 174 drivers/net/ppp/ppp_synctty.c spin_lock_init(&ap->recv_lock); ap 175 drivers/net/ppp/ppp_synctty.c ap->xaccm[0] = ~0U; ap 176 drivers/net/ppp/ppp_synctty.c ap->xaccm[3] = 0x60000000U; ap 177 drivers/net/ppp/ppp_synctty.c ap->raccm = ~0U; ap 179 drivers/net/ppp/ppp_synctty.c skb_queue_head_init(&ap->rqueue); ap 180 drivers/net/ppp/ppp_synctty.c tasklet_init(&ap->tsk, ppp_sync_process, (unsigned long) ap); ap 182 drivers/net/ppp/ppp_synctty.c refcount_set(&ap->refcnt, 1); ap 183 drivers/net/ppp/ppp_synctty.c init_completion(&ap->dead_cmp); ap 185 drivers/net/ppp/ppp_synctty.c ap->chan.private = ap; ap 186 drivers/net/ppp/ppp_synctty.c ap->chan.ops = &sync_ops; ap 187 drivers/net/ppp/ppp_synctty.c ap->chan.mtu = PPP_MRU; ap 188 drivers/net/ppp/ppp_synctty.c ap->chan.hdrlen = 2; /* for A/C bytes */ ap 190 drivers/net/ppp/ppp_synctty.c ap->chan.speed = speed; ap 191 drivers/net/ppp/ppp_synctty.c err = ppp_register_channel(&ap->chan); ap 195 drivers/net/ppp/ppp_synctty.c tty->disc_data = ap; ap 200 drivers/net/ppp/ppp_synctty.c kfree(ap); ap 216 drivers/net/ppp/ppp_synctty.c struct syncppp *ap; ap 219 drivers/net/ppp/ppp_synctty.c ap = tty->disc_data; ap 222 drivers/net/ppp/ppp_synctty.c if (!ap) ap 232 drivers/net/ppp/ppp_synctty.c if (!refcount_dec_and_test(&ap->refcnt)) ap 233 drivers/net/ppp/ppp_synctty.c wait_for_completion(&ap->dead_cmp); ap 234 drivers/net/ppp/ppp_synctty.c tasklet_kill(&ap->tsk); ap 236 drivers/net/ppp/ppp_synctty.c ppp_unregister_channel(&ap->chan); ap 237 drivers/net/ppp/ppp_synctty.c skb_queue_purge(&ap->rqueue); ap 238 drivers/net/ppp/ppp_synctty.c kfree_skb(ap->tpkt); ap 239 drivers/net/ppp/ppp_synctty.c kfree(ap); ap 280 drivers/net/ppp/ppp_synctty.c struct syncppp *ap = sp_get(tty); ap 284 drivers/net/ppp/ppp_synctty.c if (!ap) ap 290 drivers/net/ppp/ppp_synctty.c if (put_user(ppp_channel_index(&ap->chan), p)) ap 297 drivers/net/ppp/ppp_synctty.c if (put_user(ppp_unit_number(&ap->chan), p)) ap 305 drivers/net/ppp/ppp_synctty.c ppp_sync_flush_output(ap); ap 321 drivers/net/ppp/ppp_synctty.c sp_put(ap); ap 337 drivers/net/ppp/ppp_synctty.c struct syncppp *ap = sp_get(tty); ap 340 drivers/net/ppp/ppp_synctty.c if (!ap) ap 342 drivers/net/ppp/ppp_synctty.c spin_lock_irqsave(&ap->recv_lock, flags); ap 343 drivers/net/ppp/ppp_synctty.c ppp_sync_input(ap, buf, cflags, count); ap 344 drivers/net/ppp/ppp_synctty.c spin_unlock_irqrestore(&ap->recv_lock, flags); ap 345 drivers/net/ppp/ppp_synctty.c if (!skb_queue_empty(&ap->rqueue)) ap 346 drivers/net/ppp/ppp_synctty.c tasklet_schedule(&ap->tsk); ap 347 drivers/net/ppp/ppp_synctty.c sp_put(ap); ap 354 drivers/net/ppp/ppp_synctty.c struct syncppp *ap = sp_get(tty); ap 357 drivers/net/ppp/ppp_synctty.c if (!ap) ap 359 drivers/net/ppp/ppp_synctty.c set_bit(XMIT_WAKEUP, &ap->xmit_flags); ap 360 drivers/net/ppp/ppp_synctty.c tasklet_schedule(&ap->tsk); ap 361 drivers/net/ppp/ppp_synctty.c sp_put(ap); ap 398 drivers/net/ppp/ppp_synctty.c struct syncppp *ap = chan->private; ap 407 drivers/net/ppp/ppp_synctty.c val = ap->flags | ap->rbits; ap 415 drivers/net/ppp/ppp_synctty.c ap->flags = val & ~SC_RCV_BITS; ap 416 drivers/net/ppp/ppp_synctty.c spin_lock_irq(&ap->recv_lock); ap 417 drivers/net/ppp/ppp_synctty.c ap->rbits = val & SC_RCV_BITS; ap 418 drivers/net/ppp/ppp_synctty.c spin_unlock_irq(&ap->recv_lock); ap 423 drivers/net/ppp/ppp_synctty.c if (put_user(ap->xaccm[0], p)) ap 428 drivers/net/ppp/ppp_synctty.c if (get_user(ap->xaccm[0], p)) ap 434 drivers/net/ppp/ppp_synctty.c if (put_user(ap->raccm, p)) ap 439 drivers/net/ppp/ppp_synctty.c if (get_user(ap->raccm, p)) ap 445 drivers/net/ppp/ppp_synctty.c if (copy_to_user(argp, ap->xaccm, sizeof(ap->xaccm))) ap 454 drivers/net/ppp/ppp_synctty.c memcpy(ap->xaccm, accm, sizeof(ap->xaccm)); ap 459 drivers/net/ppp/ppp_synctty.c if (put_user(ap->mru, (int __user *) argp)) ap 468 drivers/net/ppp/ppp_synctty.c ap->mru = val; ap 485 drivers/net/ppp/ppp_synctty.c struct syncppp *ap = (struct syncppp *) arg; ap 489 drivers/net/ppp/ppp_synctty.c while ((skb = skb_dequeue(&ap->rqueue)) != NULL) { ap 492 drivers/net/ppp/ppp_synctty.c ppp_input_error(&ap->chan, 0); ap 496 drivers/net/ppp/ppp_synctty.c ppp_input(&ap->chan, skb); ap 500 drivers/net/ppp/ppp_synctty.c if (test_bit(XMIT_WAKEUP, &ap->xmit_flags) && ppp_sync_push(ap)) ap 501 drivers/net/ppp/ppp_synctty.c ppp_output_wakeup(&ap->chan); ap 509 drivers/net/ppp/ppp_synctty.c ppp_sync_txmunge(struct syncppp *ap, struct sk_buff *skb) ap 525 drivers/net/ppp/ppp_synctty.c if (data[0] == 0 && (ap->flags & SC_COMP_PROT) && !islcp) ap 529 drivers/net/ppp/ppp_synctty.c if ((ap->flags & SC_COMP_AC) == 0 || islcp) { ap 547 drivers/net/ppp/ppp_synctty.c ap->last_xmit = jiffies; ap 549 drivers/net/ppp/ppp_synctty.c if (skb && ap->flags & SC_LOG_OUTPKT) ap 568 drivers/net/ppp/ppp_synctty.c struct syncppp *ap = chan->private; ap 570 drivers/net/ppp/ppp_synctty.c ppp_sync_push(ap); ap 572 drivers/net/ppp/ppp_synctty.c if (test_and_set_bit(XMIT_FULL, &ap->xmit_flags)) ap 574 drivers/net/ppp/ppp_synctty.c skb = ppp_sync_txmunge(ap, skb); ap 576 drivers/net/ppp/ppp_synctty.c ap->tpkt = skb; ap 578 drivers/net/ppp/ppp_synctty.c clear_bit(XMIT_FULL, &ap->xmit_flags); ap 580 drivers/net/ppp/ppp_synctty.c ppp_sync_push(ap); ap 588 drivers/net/ppp/ppp_synctty.c ppp_sync_push(struct syncppp *ap) ap 591 drivers/net/ppp/ppp_synctty.c struct tty_struct *tty = ap->tty; ap 594 drivers/net/ppp/ppp_synctty.c if (!spin_trylock_bh(&ap->xmit_lock)) ap 597 drivers/net/ppp/ppp_synctty.c if (test_and_clear_bit(XMIT_WAKEUP, &ap->xmit_flags)) ap 599 drivers/net/ppp/ppp_synctty.c if (!tty_stuffed && ap->tpkt) { ap 601 drivers/net/ppp/ppp_synctty.c sent = tty->ops->write(tty, ap->tpkt->data, ap->tpkt->len); ap 604 drivers/net/ppp/ppp_synctty.c if (sent < ap->tpkt->len) { ap 607 drivers/net/ppp/ppp_synctty.c consume_skb(ap->tpkt); ap 608 drivers/net/ppp/ppp_synctty.c ap->tpkt = NULL; ap 609 drivers/net/ppp/ppp_synctty.c clear_bit(XMIT_FULL, &ap->xmit_flags); ap 615 drivers/net/ppp/ppp_synctty.c spin_unlock_bh(&ap->xmit_lock); ap 616 drivers/net/ppp/ppp_synctty.c if (!(test_bit(XMIT_WAKEUP, &ap->xmit_flags) || ap 617 drivers/net/ppp/ppp_synctty.c (!tty_stuffed && ap->tpkt))) ap 619 drivers/net/ppp/ppp_synctty.c if (!spin_trylock_bh(&ap->xmit_lock)) ap 625 drivers/net/ppp/ppp_synctty.c if (ap->tpkt) { ap 626 drivers/net/ppp/ppp_synctty.c kfree_skb(ap->tpkt); ap 627 drivers/net/ppp/ppp_synctty.c ap->tpkt = NULL; ap 628 drivers/net/ppp/ppp_synctty.c clear_bit(XMIT_FULL, &ap->xmit_flags); ap 631 drivers/net/ppp/ppp_synctty.c spin_unlock_bh(&ap->xmit_lock); ap 640 drivers/net/ppp/ppp_synctty.c ppp_sync_flush_output(struct syncppp *ap) ap 644 drivers/net/ppp/ppp_synctty.c spin_lock_bh(&ap->xmit_lock); ap 645 drivers/net/ppp/ppp_synctty.c if (ap->tpkt != NULL) { ap 646 drivers/net/ppp/ppp_synctty.c kfree_skb(ap->tpkt); ap 647 drivers/net/ppp/ppp_synctty.c ap->tpkt = NULL; ap 648 drivers/net/ppp/ppp_synctty.c clear_bit(XMIT_FULL, &ap->xmit_flags); ap 651 drivers/net/ppp/ppp_synctty.c spin_unlock_bh(&ap->xmit_lock); ap 653 drivers/net/ppp/ppp_synctty.c ppp_output_wakeup(&ap->chan); ap 667 drivers/net/ppp/ppp_synctty.c ppp_sync_input(struct syncppp *ap, const unsigned char *buf, ap 676 drivers/net/ppp/ppp_synctty.c if (ap->flags & SC_LOG_INPKT) ap 680 drivers/net/ppp/ppp_synctty.c skb = dev_alloc_skb(ap->mru + PPP_HDRLEN + 2); ap 715 drivers/net/ppp/ppp_synctty.c skb_queue_tail(&ap->rqueue, skb); ap 722 drivers/net/ppp/ppp_synctty.c skb_queue_tail(&ap->rqueue, skb); ap 571 drivers/net/wireless/ath/ath10k/core.h } ap; ap 1492 drivers/net/wireless/ath/ath10k/mac.c arg.ssid = arvif->u.ap.ssid; ap 1493 drivers/net/wireless/ath/ath10k/mac.c arg.ssid_len = arvif->u.ap.ssid_len; ap 1494 drivers/net/wireless/ath/ath10k/mac.c arg.hidden_ssid = arvif->u.ap.hidden_ssid; ap 3566 drivers/net/wireless/ath/ath10k/mac.c if (arvif->u.ap.noa_data) ap 3567 drivers/net/wireless/ath/ath10k/mac.c if (!pskb_expand_head(skb, 0, arvif->u.ap.noa_len, ap 3569 drivers/net/wireless/ath/ath10k/mac.c skb_put_data(skb, arvif->u.ap.noa_data, ap 3570 drivers/net/wireless/ath/ath10k/mac.c arvif->u.ap.noa_len); ap 5528 drivers/net/wireless/ath/ath10k/mac.c kfree(arvif->u.ap.noa_data); ap 5693 drivers/net/wireless/ath/ath10k/mac.c strncpy(arvif->u.ap.ssid, "mesh", ap 5694 drivers/net/wireless/ath/ath10k/mac.c sizeof(arvif->u.ap.ssid)); ap 5695 drivers/net/wireless/ath/ath10k/mac.c arvif->u.ap.ssid_len = 4; ap 5723 drivers/net/wireless/ath/ath10k/mac.c arvif->u.ap.ssid_len = info->ssid_len; ap 5725 drivers/net/wireless/ath/ath10k/mac.c memcpy(arvif->u.ap.ssid, info->ssid, info->ssid_len); ap 5726 drivers/net/wireless/ath/ath10k/mac.c arvif->u.ap.hidden_ssid = info->hidden_ssid; ap 77 drivers/net/wireless/ath/ath10k/p2p.c kfree(arvif->u.ap.noa_data); ap 79 drivers/net/wireless/ath/ath10k/p2p.c arvif->u.ap.noa_data = ie; ap 80 drivers/net/wireless/ath/ath10k/p2p.c arvif->u.ap.noa_len = len; ap 3496 drivers/net/wireless/ath/ath10k/wmi.c if (sizeof(arvif->u.ap.tim_bitmap) < tim_len) { ap 3498 drivers/net/wireless/ath/ath10k/wmi.c tim_len, sizeof(arvif->u.ap.tim_bitmap)); ap 3499 drivers/net/wireless/ath/ath10k/wmi.c tim_len = sizeof(arvif->u.ap.tim_bitmap); ap 3505 drivers/net/wireless/ath/ath10k/wmi.c arvif->u.ap.tim_bitmap[i] = (v >> ((i % 4) * 8)) & 0xFF; ap 3511 drivers/net/wireless/ath/ath10k/wmi.c arvif->u.ap.tim_len = 0; ap 3513 drivers/net/wireless/ath/ath10k/wmi.c if (arvif->u.ap.tim_bitmap[i]) ap 3514 drivers/net/wireless/ath/ath10k/wmi.c arvif->u.ap.tim_len = i; ap 3516 drivers/net/wireless/ath/ath10k/wmi.c arvif->u.ap.tim_len++; ap 3535 drivers/net/wireless/ath/ath10k/wmi.c if (pvm_len < arvif->u.ap.tim_len) { ap 3557 drivers/net/wireless/ath/ath10k/wmi.c memcpy(tim->virtual_map, arvif->u.ap.tim_bitmap, pvm_len); ap 3583 drivers/net/wireless/ath/ath10k/wmi.c if (arvif->u.ap.noa_data) ap 3584 drivers/net/wireless/ath/ath10k/wmi.c if (!pskb_expand_head(bcn, 0, arvif->u.ap.noa_len, GFP_ATOMIC)) ap 3585 drivers/net/wireless/ath/ath10k/wmi.c skb_put_data(bcn, arvif->u.ap.noa_data, ap 3586 drivers/net/wireless/ath/ath10k/wmi.c arvif->u.ap.noa_len); ap 823 drivers/net/wireless/ath/ath6kl/main.c struct wmi_ap_mode_stat *ap = &ar->ap_stats; ap 832 drivers/net/wireless/ath/ath6kl/main.c st_ap = &ap->sta[ac]; ap 2885 drivers/net/wireless/atmel/atmel.c u8 ap[ETH_ALEN]; /* nothing after here directly accessible */ ap 2913 drivers/net/wireless/atmel/atmel.c memcpy(body.ap, priv->CurrentBSSID, ETH_ALEN); ap 2917 drivers/net/wireless/atmel/atmel.c ssid_el_p = &body.ap[0]; ap 855 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c s32 ap = 0; ap 910 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ap = 1; ap 917 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (ap) { ap 728 drivers/net/wireless/cisco/airo.c u8 ap[4][ETH_ALEN]; ap 5140 drivers/net/wireless/cisco/airo.c mac_pton(data->wbuffer + i * 6 * 3, APList_rid->ap[i]); ap 5418 drivers/net/wireless/cisco/airo.c if ( !*(int*)APList_rid->ap[i] && ap 5419 drivers/net/wireless/cisco/airo.c !*(int*)&APList_rid->ap[i][2]) break; ap 5420 drivers/net/wireless/cisco/airo.c ptr += sprintf(ptr, "%pM\n", APList_rid->ap[i]); ap 5955 drivers/net/wireless/cisco/airo.c memcpy(APList_rid->ap[0], awrq->sa_data, ETH_ALEN); ap 405 drivers/net/wireless/intel/ipw2x00/libipw_rx.c hostap_update_rx_stats(local->ap, hdr, rx_stats); ap 770 drivers/net/wireless/intel/ipw2x00/libipw_rx.c if (ieee->iw_mode == IW_MODE_MASTER && !wds && ieee->ap->bridge_packets) { ap 774 drivers/net/wireless/intel/ipw2x00/libipw_rx.c ieee->ap->bridged_multicast++; ap 779 drivers/net/wireless/intel/ipw2x00/libipw_rx.c } else if (hostap_is_sta_assoc(ieee->ap, dst)) { ap 782 drivers/net/wireless/intel/ipw2x00/libipw_rx.c ieee->ap->bridged_unicast++; ap 534 drivers/net/wireless/intel/iwlwifi/fw/api/location.h struct iwl_tof_range_req_ap_entry_v2 ap[IWL_MVM_TOF_MAX_APS]; ap 567 drivers/net/wireless/intel/iwlwifi/fw/api/location.h struct iwl_tof_range_req_ap_entry ap[IWL_MVM_TOF_MAX_APS]; ap 817 drivers/net/wireless/intel/iwlwifi/fw/api/location.h struct iwl_tof_range_rsp_ap_entry_ntfy_v3 ap[IWL_MVM_TOF_MAX_APS]; ap 833 drivers/net/wireless/intel/iwlwifi/fw/api/location.h struct iwl_tof_range_rsp_ap_entry_ntfy_v4 ap[IWL_MVM_TOF_MAX_APS]; ap 849 drivers/net/wireless/intel/iwlwifi/fw/api/location.h struct iwl_tof_range_rsp_ap_entry_ntfy ap[IWL_MVM_TOF_MAX_APS]; ap 230 drivers/net/wireless/intel/iwlwifi/fw/api/mac.h struct iwl_mac_data_ap ap; ap 379 drivers/net/wireless/intel/iwlwifi/fw/api/mac.h struct iwl_mac_data_ap ap; ap 2219 drivers/net/wireless/intel/iwlwifi/fw/dbg.c va_list ap; ap 2223 drivers/net/wireless/intel/iwlwifi/fw/dbg.c va_start(ap, fmt); ap 2224 drivers/net/wireless/intel/iwlwifi/fw/dbg.c vsnprintf(buf, sizeof(buf), fmt, ap); ap 2225 drivers/net/wireless/intel/iwlwifi/fw/dbg.c va_end(ap); ap 359 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c err = iwl_mvm_ftm_put_target(mvm, peer, &cmd.ap[i]); ap 362 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c &cmd_v5.ap[i]); ap 540 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c fw_ap = &fw_resp->ap[i]; ap 542 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c fw_ap = (void *)&fw_resp_v6->ap[i]; ap 544 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c result.final = fw_resp->ap[i].last_burst; ap 549 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c fw_ap = (void *)&fw_resp_v5->ap[i]; ap 1164 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c iwl_mvm_mac_ctxt_cmd_fill_ap(mvm, vif, &cmd, &cmd.ap, ap 1183 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c iwl_mvm_mac_ctxt_cmd_fill_ap(mvm, vif, &cmd, &cmd.go.ap, ap 64 drivers/net/wireless/intersil/hostap/hostap.h int ap_control_kick_mac(struct ap_data *ap, struct net_device *dev, u8 *mac); ap 65 drivers/net/wireless/intersil/hostap/hostap.h void ap_control_kickall(struct ap_data *ap); ap 66 drivers/net/wireless/intersil/hostap/hostap.h void * ap_crypt_get_ptrs(struct ap_data *ap, u8 *addr, int permanent, ap 73 drivers/net/wireless/intersil/hostap/hostap.h int prism2_hostapd(struct ap_data *ap, struct prism2_hostapd_param *param); ap 589 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c if (local->ap && local->ap->autom_ap_wds) ap 594 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c if (*wds && !(fc & IEEE80211_FCTL_FROMDS) && local->ap && ap 595 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c hostap_is_sta_assoc(local->ap, hdr->addr2)) { ap 773 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c hostap_update_rx_stats(local->ap, hdr, rx_stats); ap 1069 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c local->ap->bridge_packets) { ap 1073 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c local->ap->bridged_multicast++; ap 1078 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c } else if (hostap_is_sta_authorized(local->ap, dst)) { ap 1081 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c local->ap->bridged_unicast++; ap 473 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c local->ap && local->ap->tx_callback_idx && meta->tx_cb_idx == 0) { ap 474 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c meta->tx_cb_idx = local->ap->tx_callback_idx; ap 56 drivers/net/wireless/intersil/hostap/hostap_ap.c static struct sta_info* ap_get_sta(struct ap_data *ap, u8 *sta); ap 72 drivers/net/wireless/intersil/hostap/hostap_ap.c struct ap_data *ap = PDE_DATA(file_inode(m->file)); ap 74 drivers/net/wireless/intersil/hostap/hostap_ap.c seq_printf(m, "BridgedUnicastFrames=%u\n", ap->bridged_unicast); ap 75 drivers/net/wireless/intersil/hostap/hostap_ap.c seq_printf(m, "BridgedMulticastFrames=%u\n", ap->bridged_multicast); ap 76 drivers/net/wireless/intersil/hostap/hostap_ap.c seq_printf(m, "max_inactivity=%u\n", ap->max_inactivity / HZ); ap 77 drivers/net/wireless/intersil/hostap/hostap_ap.c seq_printf(m, "bridge_packets=%u\n", ap->bridge_packets); ap 78 drivers/net/wireless/intersil/hostap/hostap_ap.c seq_printf(m, "nullfunc_ack=%u\n", ap->nullfunc_ack); ap 79 drivers/net/wireless/intersil/hostap/hostap_ap.c seq_printf(m, "autom_ap_wds=%u\n", ap->autom_ap_wds); ap 80 drivers/net/wireless/intersil/hostap/hostap_ap.c seq_printf(m, "auth_algs=%u\n", ap->local->auth_algs); ap 81 drivers/net/wireless/intersil/hostap/hostap_ap.c seq_printf(m, "tx_drop_nonassoc=%u\n", ap->tx_drop_nonassoc); ap 86 drivers/net/wireless/intersil/hostap/hostap_ap.c static void ap_sta_hash_add(struct ap_data *ap, struct sta_info *sta) ap 88 drivers/net/wireless/intersil/hostap/hostap_ap.c sta->hnext = ap->sta_hash[STA_HASH(sta->addr)]; ap 89 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->sta_hash[STA_HASH(sta->addr)] = sta; ap 92 drivers/net/wireless/intersil/hostap/hostap_ap.c static void ap_sta_hash_del(struct ap_data *ap, struct sta_info *sta) ap 96 drivers/net/wireless/intersil/hostap/hostap_ap.c s = ap->sta_hash[STA_HASH(sta->addr)]; ap 99 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->sta_hash[STA_HASH(sta->addr)] = s->hnext; ap 112 drivers/net/wireless/intersil/hostap/hostap_ap.c static void ap_free_sta(struct ap_data *ap, struct sta_info *sta) ap 114 drivers/net/wireless/intersil/hostap/hostap_ap.c if (sta->ap && sta->local) ap 117 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap->proc != NULL) { ap 120 drivers/net/wireless/intersil/hostap/hostap_ap.c remove_proc_entry(name, ap->proc); ap 131 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->num_sta--; ap 134 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->sta_aid[sta->aid - 1] = NULL; ap 136 drivers/net/wireless/intersil/hostap/hostap_ap.c if (!sta->ap) ap 179 drivers/net/wireless/intersil/hostap/hostap_ap.c struct ap_data *ap; ap 183 drivers/net/wireless/intersil/hostap/hostap_ap.c if (sta == NULL || sta->local == NULL || sta->local->ap == NULL) { ap 189 drivers/net/wireless/intersil/hostap/hostap_ap.c ap = local->ap; ap 195 drivers/net/wireless/intersil/hostap/hostap_ap.c next_time = jiffies + ap->max_inactivity; ap 197 drivers/net/wireless/intersil/hostap/hostap_ap.c if (time_before(jiffies, sta->last_rx + ap->max_inactivity)) { ap 200 drivers/net/wireless/intersil/hostap/hostap_ap.c next_time = sta->last_rx + ap->max_inactivity; ap 205 drivers/net/wireless/intersil/hostap/hostap_ap.c next_time = jiffies + ap->max_inactivity; ap 214 drivers/net/wireless/intersil/hostap/hostap_ap.c if (sta->ap) ap 218 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock(&ap->sta_table_lock); ap 219 drivers/net/wireless/intersil/hostap/hostap_ap.c ap_sta_hash_del(ap, sta); ap 221 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock(&ap->sta_table_lock); ap 226 drivers/net/wireless/intersil/hostap/hostap_ap.c if (was_assoc && !(sta->flags & WLAN_STA_ASSOC) && !sta->ap) ap 235 drivers/net/wireless/intersil/hostap/hostap_ap.c if (sta->ap) { ap 236 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap->autom_ap_wds) { ap 251 drivers/net/wireless/intersil/hostap/hostap_ap.c sta->addr, ap->tx_callback_poll); ap 276 drivers/net/wireless/intersil/hostap/hostap_ap.c ap_free_sta(ap, sta); ap 292 drivers/net/wireless/intersil/hostap/hostap_ap.c void hostap_deauth_all_stas(struct net_device *dev, struct ap_data *ap, ap 313 drivers/net/wireless/intersil/hostap/hostap_ap.c if (!resend || ap->num_sta <= 0) ap 323 drivers/net/wireless/intersil/hostap/hostap_ap.c struct ap_data *ap = PDE_DATA(file_inode(m->file)); ap 328 drivers/net/wireless/intersil/hostap/hostap_ap.c switch (ap->mac_restrictions.policy) { ap 343 drivers/net/wireless/intersil/hostap/hostap_ap.c seq_printf(m, "MAC entries: %u\n", ap->mac_restrictions.entries); ap 355 drivers/net/wireless/intersil/hostap/hostap_ap.c struct ap_data *ap = PDE_DATA(file_inode(m->file)); ap 356 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock_bh(&ap->mac_restrictions.lock); ap 357 drivers/net/wireless/intersil/hostap/hostap_ap.c return seq_list_start_head(&ap->mac_restrictions.mac_list, *_pos); ap 362 drivers/net/wireless/intersil/hostap/hostap_ap.c struct ap_data *ap = PDE_DATA(file_inode(m->file)); ap 363 drivers/net/wireless/intersil/hostap/hostap_ap.c return seq_list_next(v, &ap->mac_restrictions.mac_list, _pos); ap 368 drivers/net/wireless/intersil/hostap/hostap_ap.c struct ap_data *ap = PDE_DATA(file_inode(m->file)); ap 369 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock_bh(&ap->mac_restrictions.lock); ap 467 drivers/net/wireless/intersil/hostap/hostap_ap.c int ap_control_kick_mac(struct ap_data *ap, struct net_device *dev, u8 *mac) ap 472 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock_bh(&ap->sta_table_lock); ap 473 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(ap, mac); ap 475 drivers/net/wireless/intersil/hostap/hostap_ap.c ap_sta_hash_del(ap, sta); ap 478 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock_bh(&ap->sta_table_lock); ap 487 drivers/net/wireless/intersil/hostap/hostap_ap.c if ((sta->flags & WLAN_STA_ASSOC) && !sta->ap) ap 490 drivers/net/wireless/intersil/hostap/hostap_ap.c ap_free_sta(ap, sta); ap 498 drivers/net/wireless/intersil/hostap/hostap_ap.c void ap_control_kickall(struct ap_data *ap) ap 503 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock_bh(&ap->sta_table_lock); ap 504 drivers/net/wireless/intersil/hostap/hostap_ap.c for (ptr = ap->sta_list.next, n = ptr->next; ptr != &ap->sta_list; ap 507 drivers/net/wireless/intersil/hostap/hostap_ap.c ap_sta_hash_del(ap, sta); ap 509 drivers/net/wireless/intersil/hostap/hostap_ap.c if ((sta->flags & WLAN_STA_ASSOC) && !sta->ap && sta->local) ap 511 drivers/net/wireless/intersil/hostap/hostap_ap.c ap_free_sta(ap, sta); ap 513 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock_bh(&ap->sta_table_lock); ap 529 drivers/net/wireless/intersil/hostap/hostap_ap.c if (!sta->ap) ap 534 drivers/net/wireless/intersil/hostap/hostap_ap.c sta->u.ap.channel, sta->last_rx_signal, ap 537 drivers/net/wireless/intersil/hostap/hostap_ap.c for (i = 0; i < sta->u.ap.ssid_len; i++) { ap 538 drivers/net/wireless/intersil/hostap/hostap_ap.c if (sta->u.ap.ssid[i] >= 32 && sta->u.ap.ssid[i] < 127) ap 539 drivers/net/wireless/intersil/hostap/hostap_ap.c seq_putc(m, sta->u.ap.ssid[i]); ap 541 drivers/net/wireless/intersil/hostap/hostap_ap.c seq_printf(m, "<%02x>", sta->u.ap.ssid[i]); ap 557 drivers/net/wireless/intersil/hostap/hostap_ap.c struct ap_data *ap = PDE_DATA(file_inode(m->file)); ap 558 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock_bh(&ap->sta_table_lock); ap 559 drivers/net/wireless/intersil/hostap/hostap_ap.c return seq_list_start_head(&ap->sta_list, *_pos); ap 564 drivers/net/wireless/intersil/hostap/hostap_ap.c struct ap_data *ap = PDE_DATA(file_inode(m->file)); ap 565 drivers/net/wireless/intersil/hostap/hostap_ap.c return seq_list_next(v, &ap->sta_list, _pos); ap 570 drivers/net/wireless/intersil/hostap/hostap_ap.c struct ap_data *ap = PDE_DATA(file_inode(m->file)); ap 571 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock_bh(&ap->sta_table_lock); ap 583 drivers/net/wireless/intersil/hostap/hostap_ap.c void hostap_check_sta_fw_version(struct ap_data *ap, int sta_fw_ver) ap 585 drivers/net/wireless/intersil/hostap/hostap_ap.c if (!ap) ap 591 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->nullfunc_ack = 1; ap 593 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->nullfunc_ack = 0; ap 598 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->local->dev->name); ap 606 drivers/net/wireless/intersil/hostap/hostap_ap.c struct ap_data *ap = data; ap 609 drivers/net/wireless/intersil/hostap/hostap_ap.c if (!ap->local->hostapd || !ap->local->apdev) { ap 621 drivers/net/wireless/intersil/hostap/hostap_ap.c skb->dev = ap->local->apdev; ap 634 drivers/net/wireless/intersil/hostap/hostap_ap.c struct ap_data *ap = data; ap 635 drivers/net/wireless/intersil/hostap/hostap_ap.c struct net_device *dev = ap->local->dev; ap 642 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap->local->hostapd) { ap 666 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock(&ap->sta_table_lock); ap 667 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(ap, hdr->addr1); ap 670 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock(&ap->sta_table_lock); ap 702 drivers/net/wireless/intersil/hostap/hostap_ap.c struct ap_data *ap = data; ap 703 drivers/net/wireless/intersil/hostap/hostap_ap.c struct net_device *dev = ap->local->dev; ap 710 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap->local->hostapd) { ap 730 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock(&ap->sta_table_lock); ap 731 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(ap, hdr->addr1); ap 734 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock(&ap->sta_table_lock); ap 767 drivers/net/wireless/intersil/hostap/hostap_ap.c struct ap_data *ap = data; ap 775 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock(&ap->sta_table_lock); ap 776 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(ap, hdr->addr1); ap 779 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock(&ap->sta_table_lock); ap 783 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->local->dev->name, hdr->addr1); ap 794 drivers/net/wireless/intersil/hostap/hostap_ap.c struct ap_data *ap = local->ap; ap 796 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap == NULL) { ap 800 drivers/net/wireless/intersil/hostap/hostap_ap.c memset(ap, 0, sizeof(struct ap_data)); ap 801 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->local = local; ap 803 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->ap_policy = GET_INT_PARM(other_ap_policy, local->card_idx); ap 804 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->bridge_packets = GET_INT_PARM(ap_bridge_packets, local->card_idx); ap 805 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->max_inactivity = ap 807 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->autom_ap_wds = GET_INT_PARM(autom_ap_wds, local->card_idx); ap 809 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock_init(&ap->sta_table_lock); ap 810 drivers/net/wireless/intersil/hostap/hostap_ap.c INIT_LIST_HEAD(&ap->sta_list); ap 813 drivers/net/wireless/intersil/hostap/hostap_ap.c INIT_WORK(&local->ap->add_sta_proc_queue, handle_add_proc_queue); ap 815 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->tx_callback_idx = ap 816 drivers/net/wireless/intersil/hostap/hostap_ap.c hostap_tx_callback_register(local, hostap_ap_tx_cb, ap); ap 817 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap->tx_callback_idx == 0) ap 821 drivers/net/wireless/intersil/hostap/hostap_ap.c INIT_WORK(&local->ap->wds_oper_queue, handle_wds_oper_queue); ap 823 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->tx_callback_auth = ap 824 drivers/net/wireless/intersil/hostap/hostap_ap.c hostap_tx_callback_register(local, hostap_ap_tx_cb_auth, ap); ap 825 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->tx_callback_assoc = ap 826 drivers/net/wireless/intersil/hostap/hostap_ap.c hostap_tx_callback_register(local, hostap_ap_tx_cb_assoc, ap); ap 827 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->tx_callback_poll = ap 828 drivers/net/wireless/intersil/hostap/hostap_ap.c hostap_tx_callback_register(local, hostap_ap_tx_cb_poll, ap); ap 829 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap->tx_callback_auth == 0 || ap->tx_callback_assoc == 0 || ap 830 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->tx_callback_poll == 0) ap 834 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock_init(&ap->mac_restrictions.lock); ap 835 drivers/net/wireless/intersil/hostap/hostap_ap.c INIT_LIST_HEAD(&ap->mac_restrictions.mac_list); ap 838 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->initialized = 1; ap 844 drivers/net/wireless/intersil/hostap/hostap_ap.c struct ap_data *ap = local->ap; ap 846 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->proc = local->proc; ap 847 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap->proc == NULL) ap 851 drivers/net/wireless/intersil/hostap/hostap_ap.c proc_create_single_data("ap_debug", 0, ap->proc, ap_debug_proc_show, ap); ap 855 drivers/net/wireless/intersil/hostap/hostap_ap.c proc_create_seq_data("ap_control", 0, ap->proc, &ap_control_proc_seqops, ap 856 drivers/net/wireless/intersil/hostap/hostap_ap.c ap); ap 857 drivers/net/wireless/intersil/hostap/hostap_ap.c proc_create_seq_data("ap", 0, ap->proc, &prism2_ap_proc_seqops, ap); ap 863 drivers/net/wireless/intersil/hostap/hostap_ap.c void hostap_free_data(struct ap_data *ap) ap 867 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap == NULL || !ap->initialized) { ap 873 drivers/net/wireless/intersil/hostap/hostap_ap.c flush_work(&ap->add_sta_proc_queue); ap 876 drivers/net/wireless/intersil/hostap/hostap_ap.c flush_work(&ap->wds_oper_queue); ap 877 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap->crypt) ap 878 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->crypt->deinit(ap->crypt_priv); ap 879 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->crypt = ap->crypt_priv = NULL; ap 882 drivers/net/wireless/intersil/hostap/hostap_ap.c list_for_each_entry_safe(sta, n, &ap->sta_list, list) { ap 883 drivers/net/wireless/intersil/hostap/hostap_ap.c ap_sta_hash_del(ap, sta); ap 885 drivers/net/wireless/intersil/hostap/hostap_ap.c if ((sta->flags & WLAN_STA_ASSOC) && !sta->ap && sta->local) ap 887 drivers/net/wireless/intersil/hostap/hostap_ap.c ap_free_sta(ap, sta); ap 891 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap->proc != NULL) { ap 892 drivers/net/wireless/intersil/hostap/hostap_ap.c remove_proc_entry("ap_debug", ap->proc); ap 897 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap->proc != NULL) { ap 898 drivers/net/wireless/intersil/hostap/hostap_ap.c remove_proc_entry("ap", ap->proc); ap 899 drivers/net/wireless/intersil/hostap/hostap_ap.c remove_proc_entry("ap_control", ap->proc); ap 901 drivers/net/wireless/intersil/hostap/hostap_ap.c ap_control_flush_macs(&ap->mac_restrictions); ap 904 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->initialized = 0; ap 909 drivers/net/wireless/intersil/hostap/hostap_ap.c static struct sta_info* ap_get_sta(struct ap_data *ap, u8 *sta) ap 913 drivers/net/wireless/intersil/hostap/hostap_ap.c s = ap->sta_hash[STA_HASH(sta)]; ap 1006 drivers/net/wireless/intersil/hostap/hostap_ap.c sta->ap ? "AP" : "STA", ap 1045 drivers/net/wireless/intersil/hostap/hostap_ap.c if (sta->ap) { ap 1046 drivers/net/wireless/intersil/hostap/hostap_ap.c if (sta->u.ap.channel >= 0) ap 1047 drivers/net/wireless/intersil/hostap/hostap_ap.c seq_printf(m, "channel=%d\n", sta->u.ap.channel); ap 1049 drivers/net/wireless/intersil/hostap/hostap_ap.c for (i = 0; i < sta->u.ap.ssid_len; i++) { ap 1050 drivers/net/wireless/intersil/hostap/hostap_ap.c if (sta->u.ap.ssid[i] >= 32 && sta->u.ap.ssid[i] < 127) ap 1051 drivers/net/wireless/intersil/hostap/hostap_ap.c seq_putc(m, sta->u.ap.ssid[i]); ap 1053 drivers/net/wireless/intersil/hostap/hostap_ap.c seq_printf(m, "<%02x>", sta->u.ap.ssid[i]); ap 1065 drivers/net/wireless/intersil/hostap/hostap_ap.c struct ap_data *ap = container_of(work, struct ap_data, ap 1071 drivers/net/wireless/intersil/hostap/hostap_ap.c entry = ap->add_sta_proc_entries; ap 1072 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->add_sta_proc_entries = NULL; ap 1075 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock_bh(&ap->sta_table_lock); ap 1076 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(ap, entry->addr); ap 1079 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock_bh(&ap->sta_table_lock); ap 1084 drivers/net/wireless/intersil/hostap/hostap_ap.c name, 0, ap->proc, ap 1097 drivers/net/wireless/intersil/hostap/hostap_ap.c static struct sta_info * ap_add_sta(struct ap_data *ap, u8 *addr) ap 1108 drivers/net/wireless/intersil/hostap/hostap_ap.c sta->local = ap->local; ap 1113 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock_bh(&ap->sta_table_lock); ap 1114 drivers/net/wireless/intersil/hostap/hostap_ap.c list_add(&sta->list, &ap->sta_list); ap 1115 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->num_sta++; ap 1116 drivers/net/wireless/intersil/hostap/hostap_ap.c ap_sta_hash_add(ap, sta); ap 1117 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock_bh(&ap->sta_table_lock); ap 1119 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap->proc) { ap 1126 drivers/net/wireless/intersil/hostap/hostap_ap.c entry->next = ap->add_sta_proc_entries; ap 1127 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->add_sta_proc_entries = entry; ap 1128 drivers/net/wireless/intersil/hostap/hostap_ap.c schedule_work(&ap->add_sta_proc_queue); ap 1135 drivers/net/wireless/intersil/hostap/hostap_ap.c sta->timer.expires = jiffies + ap->max_inactivity; ap 1136 drivers/net/wireless/intersil/hostap/hostap_ap.c if (!ap->local->hostapd) ap 1208 drivers/net/wireless/intersil/hostap/hostap_ap.c static void ap_crypt_init(struct ap_data *ap) ap 1210 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->crypt = lib80211_get_crypto_ops("WEP"); ap 1212 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap->crypt) { ap 1213 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap->crypt->init) { ap 1214 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->crypt_priv = ap->crypt->init(0); ap 1215 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap->crypt_priv == NULL) ap 1216 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->crypt = NULL; ap 1220 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->crypt->set_key(key, WEP_KEY_LEN, NULL, ap 1221 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->crypt_priv); ap 1226 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap->crypt == NULL) { ap 1241 drivers/net/wireless/intersil/hostap/hostap_ap.c static char * ap_auth_make_challenge(struct ap_data *ap) ap 1246 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap->crypt == NULL) { ap 1247 drivers/net/wireless/intersil/hostap/hostap_ap.c ap_crypt_init(ap); ap 1248 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap->crypt == NULL) ap 1259 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->crypt->extra_mpdu_prefix_len + ap 1260 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->crypt->extra_mpdu_postfix_len); ap 1266 drivers/net/wireless/intersil/hostap/hostap_ap.c skb_reserve(skb, ap->crypt->extra_mpdu_prefix_len); ap 1268 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap->crypt->encrypt_mpdu(skb, 0, ap->crypt_priv)) { ap 1274 drivers/net/wireless/intersil/hostap/hostap_ap.c skb_copy_from_linear_data_offset(skb, ap->crypt->extra_mpdu_prefix_len, ap 1289 drivers/net/wireless/intersil/hostap/hostap_ap.c struct ap_data *ap = local->ap; ap 1309 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock_bh(&local->ap->sta_table_lock); ap 1310 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(local->ap, hdr->addr2); ap 1313 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock_bh(&local->ap->sta_table_lock); ap 1333 drivers/net/wireless/intersil/hostap/hostap_ap.c ap_control_mac_deny(&ap->mac_restrictions, hdr->addr2)) { ap 1366 drivers/net/wireless/intersil/hostap/hostap_ap.c if (sta && sta->ap) { ap 1367 drivers/net/wireless/intersil/hostap/hostap_ap.c if (time_after(jiffies, sta->u.ap.last_beacon + ap 1372 drivers/net/wireless/intersil/hostap/hostap_ap.c sta->ap = 0; ap 1396 drivers/net/wireless/intersil/hostap/hostap_ap.c if (local->ap->num_sta >= MAX_STA_COUNT) { ap 1403 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_add_sta(local->ap, hdr->addr2); ap 1426 drivers/net/wireless/intersil/hostap/hostap_ap.c ap_auth_make_challenge(local->ap); ap 1478 drivers/net/wireless/intersil/hostap/hostap_ap.c body, olen, hdr->addr2, ap->tx_callback_auth); ap 1519 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock_bh(&local->ap->sta_table_lock); ap 1520 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(local->ap, hdr->addr2); ap 1522 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock_bh(&local->ap->sta_table_lock); ap 1530 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock_bh(&local->ap->sta_table_lock); ap 1611 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock_bh(&local->ap->sta_table_lock); ap 1613 drivers/net/wireless/intersil/hostap/hostap_ap.c if (local->ap->sta_aid[sta->aid - 1] == NULL) ap 1617 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock_bh(&local->ap->sta_table_lock); ap 1621 drivers/net/wireless/intersil/hostap/hostap_ap.c local->ap->sta_aid[sta->aid - 1] = sta; ap 1622 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock_bh(&local->ap->sta_table_lock); ap 1681 drivers/net/wireless/intersil/hostap/hostap_ap.c send_deauth ? 0 : local->ap->tx_callback_assoc); ap 1730 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock_bh(&local->ap->sta_table_lock); ap 1731 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(local->ap, hdr->addr2); ap 1733 drivers/net/wireless/intersil/hostap/hostap_ap.c if ((sta->flags & WLAN_STA_ASSOC) && !sta->ap) ap 1737 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock_bh(&local->ap->sta_table_lock); ap 1772 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock_bh(&local->ap->sta_table_lock); ap 1773 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(local->ap, hdr->addr2); ap 1775 drivers/net/wireless/intersil/hostap/hostap_ap.c if ((sta->flags & WLAN_STA_ASSOC) && !sta->ap) ap 1779 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock_bh(&local->ap->sta_table_lock); ap 1813 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock_bh(&local->ap->sta_table_lock); ap 1814 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(local->ap, hdr->addr2); ap 1817 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock_bh(&local->ap->sta_table_lock); ap 1895 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock_bh(&local->ap->sta_table_lock); ap 1896 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(local->ap, hdr->addr2); ap 1899 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock_bh(&local->ap->sta_table_lock); ap 1953 drivers/net/wireless/intersil/hostap/hostap_ap.c struct ap_data *ap = container_of(work, struct ap_data, ap 1955 drivers/net/wireless/intersil/hostap/hostap_ap.c local_info_t *local = ap->local; ap 1959 drivers/net/wireless/intersil/hostap/hostap_ap.c entry = local->ap->wds_oper_entries; ap 1960 drivers/net/wireless/intersil/hostap/hostap_ap.c local->ap->wds_oper_entries = NULL; ap 2016 drivers/net/wireless/intersil/hostap/hostap_ap.c if (local->ap->ap_policy != AP_OTHER_AP_EVEN_IBSS && ap 2034 drivers/net/wireless/intersil/hostap/hostap_ap.c if (local->ap->ap_policy == AP_OTHER_AP_SAME_SSID && ap 2082 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock_bh(&local->ap->sta_table_lock); ap 2083 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(local->ap, hdr->addr2); ap 2086 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock_bh(&local->ap->sta_table_lock); ap 2091 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_add_sta(local->ap, hdr->addr2); ap 2103 drivers/net/wireless/intersil/hostap/hostap_ap.c if (local->ap->autom_ap_wds) { ap 2108 drivers/net/wireless/intersil/hostap/hostap_ap.c sta->ap = 1; ap 2110 drivers/net/wireless/intersil/hostap/hostap_ap.c sta->u.ap.ssid_len = ssid_len; ap 2111 drivers/net/wireless/intersil/hostap/hostap_ap.c memcpy(sta->u.ap.ssid, ssid, ssid_len); ap 2112 drivers/net/wireless/intersil/hostap/hostap_ap.c sta->u.ap.ssid[ssid_len] = '\0'; ap 2114 drivers/net/wireless/intersil/hostap/hostap_ap.c sta->u.ap.ssid_len = 0; ap 2115 drivers/net/wireless/intersil/hostap/hostap_ap.c sta->u.ap.ssid[0] = '\0'; ap 2117 drivers/net/wireless/intersil/hostap/hostap_ap.c sta->u.ap.channel = channel; ap 2120 drivers/net/wireless/intersil/hostap/hostap_ap.c sta->u.ap.last_beacon = sta->last_rx = jiffies; ap 2177 drivers/net/wireless/intersil/hostap/hostap_ap.c if (local->ap->nullfunc_ack && ap 2275 drivers/net/wireless/intersil/hostap/hostap_ap.c if (local->ap->ap_policy == AP_OTHER_AP_SKIP_ALL && ap 2329 drivers/net/wireless/intersil/hostap/hostap_ap.c struct ap_data *ap = local->ap; ap 2333 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock_bh(&ap->sta_table_lock); ap 2335 drivers/net/wireless/intersil/hostap/hostap_ap.c for (ptr = ap->sta_list.next; ptr != NULL && ptr != &ap->sta_list; ap 2339 drivers/net/wireless/intersil/hostap/hostap_ap.c if (aplist && !sta->ap) ap 2359 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock_bh(&ap->sta_table_lock); ap 2372 drivers/net/wireless/intersil/hostap/hostap_ap.c struct ap_data *ap; ap 2383 drivers/net/wireless/intersil/hostap/hostap_ap.c ap = local->ap; ap 2385 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock_bh(&ap->sta_table_lock); ap 2387 drivers/net/wireless/intersil/hostap/hostap_ap.c for (ptr = ap->sta_list.next; ptr != NULL && ptr != &ap->sta_list; ap 2404 drivers/net/wireless/intersil/hostap/hostap_ap.c if (sta->ap) ap 2429 drivers/net/wireless/intersil/hostap/hostap_ap.c if (sta->ap) { ap 2432 drivers/net/wireless/intersil/hostap/hostap_ap.c iwe.u.data.length = sta->u.ap.ssid_len; ap 2436 drivers/net/wireless/intersil/hostap/hostap_ap.c sta->u.ap.ssid); ap 2447 drivers/net/wireless/intersil/hostap/hostap_ap.c sta->u.ap.ssid); ap 2449 drivers/net/wireless/intersil/hostap/hostap_ap.c if (sta->u.ap.channel > 0 && ap 2450 drivers/net/wireless/intersil/hostap/hostap_ap.c sta->u.ap.channel <= FREQ_COUNT) { ap 2453 drivers/net/wireless/intersil/hostap/hostap_ap.c iwe.u.freq.m = freq_list[sta->u.ap.channel - 1] ap 2476 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock_bh(&ap->sta_table_lock); ap 2482 drivers/net/wireless/intersil/hostap/hostap_ap.c static int prism2_hostapd_add_sta(struct ap_data *ap, ap 2487 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock_bh(&ap->sta_table_lock); ap 2488 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(ap, param->sta_addr); ap 2491 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock_bh(&ap->sta_table_lock); ap 2494 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_add_sta(ap, param->sta_addr); ap 2499 drivers/net/wireless/intersil/hostap/hostap_ap.c if (!(sta->flags & WLAN_STA_ASSOC) && !sta->ap && sta->local) ap 2521 drivers/net/wireless/intersil/hostap/hostap_ap.c static int prism2_hostapd_remove_sta(struct ap_data *ap, ap 2526 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock_bh(&ap->sta_table_lock); ap 2527 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(ap, param->sta_addr); ap 2529 drivers/net/wireless/intersil/hostap/hostap_ap.c ap_sta_hash_del(ap, sta); ap 2532 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock_bh(&ap->sta_table_lock); ap 2537 drivers/net/wireless/intersil/hostap/hostap_ap.c if ((sta->flags & WLAN_STA_ASSOC) && !sta->ap && sta->local) ap 2539 drivers/net/wireless/intersil/hostap/hostap_ap.c ap_free_sta(ap, sta); ap 2545 drivers/net/wireless/intersil/hostap/hostap_ap.c static int prism2_hostapd_get_info_sta(struct ap_data *ap, ap 2550 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock_bh(&ap->sta_table_lock); ap 2551 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(ap, param->sta_addr); ap 2554 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock_bh(&ap->sta_table_lock); ap 2567 drivers/net/wireless/intersil/hostap/hostap_ap.c static int prism2_hostapd_set_flags_sta(struct ap_data *ap, ap 2572 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock_bh(&ap->sta_table_lock); ap 2573 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(ap, param->sta_addr); ap 2578 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock_bh(&ap->sta_table_lock); ap 2587 drivers/net/wireless/intersil/hostap/hostap_ap.c static int prism2_hostapd_sta_clear_stats(struct ap_data *ap, ap 2593 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock_bh(&ap->sta_table_lock); ap 2594 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(ap, param->sta_addr); ap 2603 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock_bh(&ap->sta_table_lock); ap 2612 drivers/net/wireless/intersil/hostap/hostap_ap.c int prism2_hostapd(struct ap_data *ap, struct prism2_hostapd_param *param) ap 2616 drivers/net/wireless/intersil/hostap/hostap_ap.c ap_control_kickall(ap); ap 2619 drivers/net/wireless/intersil/hostap/hostap_ap.c return prism2_hostapd_add_sta(ap, param); ap 2621 drivers/net/wireless/intersil/hostap/hostap_ap.c return prism2_hostapd_remove_sta(ap, param); ap 2623 drivers/net/wireless/intersil/hostap/hostap_ap.c return prism2_hostapd_get_info_sta(ap, param); ap 2625 drivers/net/wireless/intersil/hostap/hostap_ap.c return prism2_hostapd_set_flags_sta(ap, param); ap 2627 drivers/net/wireless/intersil/hostap/hostap_ap.c return prism2_hostapd_sta_clear_stats(ap, param); ap 2692 drivers/net/wireless/intersil/hostap/hostap_ap.c if (local->ap == NULL || skb->len < 10 || ap 2700 drivers/net/wireless/intersil/hostap/hostap_ap.c if (local->ap->num_sta <= 0) ap 2706 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock(&local->ap->sta_table_lock); ap 2707 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(local->ap, hdr->addr1); ap 2710 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock(&local->ap->sta_table_lock); ap 2727 drivers/net/wireless/intersil/hostap/hostap_ap.c local->ap->tx_drop_nonassoc++; ap 2740 drivers/net/wireless/intersil/hostap/hostap_ap.c local->ap->last_tx_rate = meta->rate = ap 2832 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock(&local->ap->sta_table_lock); ap 2833 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(local->ap, hdr->addr1); ap 2835 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock(&local->ap->sta_table_lock); ap 2871 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock(&local->ap->sta_table_lock); ap 2902 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock(&local->ap->sta_table_lock); ap 2903 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(local->ap, hdr->addr2); ap 2906 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock(&local->ap->sta_table_lock); ap 2933 drivers/net/wireless/intersil/hostap/hostap_ap.c if (local->ap == NULL) ap 2942 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock(&local->ap->sta_table_lock); ap 2943 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(local->ap, hdr->addr2); ap 2946 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock(&local->ap->sta_table_lock); ap 3034 drivers/net/wireless/intersil/hostap/hostap_ap.c if (local->ap->nullfunc_ack && stype == IEEE80211_STYPE_NULLFUNC && ap 3069 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock(&local->ap->sta_table_lock); ap 3070 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(local->ap, hdr->addr2); ap 3073 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock(&local->ap->sta_table_lock); ap 3091 drivers/net/wireless/intersil/hostap/hostap_ap.c int hostap_is_sta_assoc(struct ap_data *ap, u8 *sta_addr) ap 3096 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock(&ap->sta_table_lock); ap 3097 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(ap, sta_addr); ap 3098 drivers/net/wireless/intersil/hostap/hostap_ap.c if (sta != NULL && (sta->flags & WLAN_STA_ASSOC) && !sta->ap) ap 3100 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock(&ap->sta_table_lock); ap 3107 drivers/net/wireless/intersil/hostap/hostap_ap.c int hostap_is_sta_authorized(struct ap_data *ap, u8 *sta_addr) ap 3112 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock(&ap->sta_table_lock); ap 3113 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(ap, sta_addr); ap 3114 drivers/net/wireless/intersil/hostap/hostap_ap.c if (sta != NULL && (sta->flags & WLAN_STA_ASSOC) && !sta->ap && ap 3116 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->local->ieee_802_1x == 0)) ap 3118 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock(&ap->sta_table_lock); ap 3125 drivers/net/wireless/intersil/hostap/hostap_ap.c int hostap_add_sta(struct ap_data *ap, u8 *sta_addr) ap 3130 drivers/net/wireless/intersil/hostap/hostap_ap.c if (!ap) ap 3133 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock(&ap->sta_table_lock); ap 3134 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(ap, sta_addr); ap 3137 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock(&ap->sta_table_lock); ap 3140 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_add_sta(ap, sta_addr); ap 3144 drivers/net/wireless/intersil/hostap/hostap_ap.c sta->ap = 1; ap 3164 drivers/net/wireless/intersil/hostap/hostap_ap.c int hostap_update_rx_stats(struct ap_data *ap, ap 3170 drivers/net/wireless/intersil/hostap/hostap_ap.c if (!ap) ap 3173 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock(&ap->sta_table_lock); ap 3174 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(ap, hdr->addr2); ap 3189 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock(&ap->sta_table_lock); ap 3198 drivers/net/wireless/intersil/hostap/hostap_ap.c struct ap_data *ap = local->ap; ap 3200 drivers/net/wireless/intersil/hostap/hostap_ap.c if (!ap) ap 3203 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock_bh(&ap->sta_table_lock); ap 3204 drivers/net/wireless/intersil/hostap/hostap_ap.c list_for_each_entry(sta, &ap->sta_list, list) { ap 3207 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock_bh(&ap->sta_table_lock); ap 3211 drivers/net/wireless/intersil/hostap/hostap_ap.c void * ap_crypt_get_ptrs(struct ap_data *ap, u8 *addr, int permanent, ap 3216 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock_bh(&ap->sta_table_lock); ap 3217 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_get_sta(ap, addr); ap 3220 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock_bh(&ap->sta_table_lock); ap 3223 drivers/net/wireless/intersil/hostap/hostap_ap.c sta = ap_add_sta(ap, addr); ap 3239 drivers/net/wireless/intersil/hostap/hostap_ap.c struct ap_data *ap = local->ap; ap 3242 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_lock_bh(&ap->sta_table_lock); ap 3243 drivers/net/wireless/intersil/hostap/hostap_ap.c list_for_each_entry(sta, &ap->sta_list, list) { ap 3244 drivers/net/wireless/intersil/hostap/hostap_ap.c if (sta->ap) ap 3247 drivers/net/wireless/intersil/hostap/hostap_ap.c spin_unlock_bh(&ap->sta_table_lock); ap 3249 drivers/net/wireless/intersil/hostap/hostap_ap.c schedule_work(&local->ap->wds_oper_queue); ap 3263 drivers/net/wireless/intersil/hostap/hostap_ap.c entry->next = local->ap->wds_oper_entries; ap 3264 drivers/net/wireless/intersil/hostap/hostap_ap.c local->ap->wds_oper_entries = entry; ap 3267 drivers/net/wireless/intersil/hostap/hostap_ap.c schedule_work(&local->ap->wds_oper_queue); ap 80 drivers/net/wireless/intersil/hostap/hostap_ap.h int ap; /* whether this station is an AP */ ap 95 drivers/net/wireless/intersil/hostap/hostap_ap.h } ap; ap 223 drivers/net/wireless/intersil/hostap/hostap_ap.h void hostap_free_data(struct ap_data *ap); ap 224 drivers/net/wireless/intersil/hostap/hostap_ap.h void hostap_check_sta_fw_version(struct ap_data *ap, int sta_fw_ver); ap 250 drivers/net/wireless/intersil/hostap/hostap_ap.h int hostap_is_sta_assoc(struct ap_data *ap, u8 *sta_addr); ap 251 drivers/net/wireless/intersil/hostap/hostap_ap.h int hostap_is_sta_authorized(struct ap_data *ap, u8 *sta_addr); ap 252 drivers/net/wireless/intersil/hostap/hostap_ap.h int hostap_add_sta(struct ap_data *ap, u8 *sta_addr); ap 253 drivers/net/wireless/intersil/hostap/hostap_ap.h int hostap_update_rx_stats(struct ap_data *ap, struct ieee80211_hdr *hdr, ap 260 drivers/net/wireless/intersil/hostap/hostap_ap.h void hostap_deauth_all_stas(struct net_device *dev, struct ap_data *ap, ap 2782 drivers/net/wireless/intersil/hostap/hostap_hw.c hostap_check_sta_fw_version(local->ap, local->sta_fw_ver); ap 3073 drivers/net/wireless/intersil/hostap/hostap_hw.c local->ap = (struct ap_data *) ((((long) (local + 1)) + 3) & ~3); ap 3299 drivers/net/wireless/intersil/hostap/hostap_hw.c if (local->ap != NULL) ap 3300 drivers/net/wireless/intersil/hostap/hostap_hw.c hostap_free_data(local->ap); ap 436 drivers/net/wireless/intersil/hostap/hostap_info.c hostap_add_sta(local->ap, local->bssid); ap 414 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (local->iw_mode == IW_MODE_MASTER && local->ap != NULL && ap 419 drivers/net/wireless/intersil/hostap/hostap_ioctl.c rrq->value = local->ap->last_tx_rate > 0 ? ap 420 drivers/net/wireless/intersil/hostap/hostap_ioctl.c local->ap->last_tx_rate * 100000 : 11000000; ap 2389 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (local->ap != NULL) ap 2390 drivers/net/wireless/intersil/hostap/hostap_ioctl.c local->ap->ap_policy = value; ap 2398 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (local->ap != NULL) ap 2399 drivers/net/wireless/intersil/hostap/hostap_ioctl.c local->ap->max_inactivity = value * HZ; ap 2403 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (local->ap != NULL) ap 2404 drivers/net/wireless/intersil/hostap/hostap_ioctl.c local->ap->bridge_packets = value; ap 2420 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (local->ap != NULL) ap 2421 drivers/net/wireless/intersil/hostap/hostap_ioctl.c local->ap->nullfunc_ack = value; ap 2429 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (local->ap != NULL) { ap 2430 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (!local->ap->autom_ap_wds && value) { ap 2434 drivers/net/wireless/intersil/hostap/hostap_ioctl.c local->ap->autom_ap_wds = value; ap 2701 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (local->ap != NULL) ap 2702 drivers/net/wireless/intersil/hostap/hostap_ioctl.c *param = local->ap->ap_policy; ap 2708 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (local->ap != NULL) ap 2709 drivers/net/wireless/intersil/hostap/hostap_ioctl.c *param = local->ap->max_inactivity / HZ; ap 2715 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (local->ap != NULL) ap 2716 drivers/net/wireless/intersil/hostap/hostap_ioctl.c *param = local->ap->bridge_packets; ap 2726 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (local->ap != NULL) ap 2727 drivers/net/wireless/intersil/hostap/hostap_ioctl.c *param = local->ap->nullfunc_ack; ap 2737 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (local->ap != NULL) ap 2738 drivers/net/wireless/intersil/hostap/hostap_ioctl.c *param = local->ap->autom_ap_wds; ap 3010 drivers/net/wireless/intersil/hostap/hostap_ioctl.c local->ap->mac_restrictions.policy = MAC_POLICY_OPEN; ap 3013 drivers/net/wireless/intersil/hostap/hostap_ioctl.c local->ap->mac_restrictions.policy = MAC_POLICY_ALLOW; ap 3016 drivers/net/wireless/intersil/hostap/hostap_ioctl.c local->ap->mac_restrictions.policy = MAC_POLICY_DENY; ap 3019 drivers/net/wireless/intersil/hostap/hostap_ioctl.c ap_control_flush_macs(&local->ap->mac_restrictions); ap 3022 drivers/net/wireless/intersil/hostap/hostap_ioctl.c ap_control_kickall(local->ap); ap 3023 drivers/net/wireless/intersil/hostap/hostap_ioctl.c hostap_deauth_all_stas(local->dev, local->ap, 0); ap 3228 drivers/net/wireless/intersil/hostap/hostap_ioctl.c sta_ptr = ap_crypt_get_ptrs(local->ap, addr, 0, &crypt); ap 3399 drivers/net/wireless/intersil/hostap/hostap_ioctl.c sta_ptr = ap_crypt_get_ptrs(local->ap, addr, 0, &crypt); ap 3466 drivers/net/wireless/intersil/hostap/hostap_ioctl.c local->ap, param->sta_addr, ap 3597 drivers/net/wireless/intersil/hostap/hostap_ioctl.c sta_ptr = ap_crypt_get_ptrs(local->ap, param->sta_addr, 0, ap 3835 drivers/net/wireless/intersil/hostap/hostap_ioctl.c ret = prism2_hostapd(local->ap, param); ap 4010 drivers/net/wireless/intersil/hostap/hostap_ioctl.c else ret = ap_control_add_mac(&local->ap->mac_restrictions, ap 4015 drivers/net/wireless/intersil/hostap/hostap_ioctl.c else ret = ap_control_del_mac(&local->ap->mac_restrictions, ap 4020 drivers/net/wireless/intersil/hostap/hostap_ioctl.c else ret = ap_control_kick_mac(local->ap, local->dev, ap 172 drivers/net/wireless/intersil/hostap/hostap_main.c hostap_add_sta(local->ap, remote_addr); ap 614 drivers/net/wireless/intersil/hostap/hostap_main.c local->hw_ready && local->ap && local->iw_mode == IW_MODE_MASTER) ap 615 drivers/net/wireless/intersil/hostap/hostap_main.c hostap_deauth_all_stas(dev, local->ap, 1); ap 682 drivers/net/wireless/intersil/hostap/hostap_wlan.h struct ap_data *ap; ap 99 drivers/net/wireless/intersil/orinoco/fw.c int ap) ap 118 drivers/net/wireless/intersil/orinoco/fw.c if (ap) ap 357 drivers/net/wireless/intersil/orinoco/fw.c void orinoco_cache_fw(struct orinoco_private *priv, int ap) ap 364 drivers/net/wireless/intersil/orinoco/fw.c if (ap) ap 14 drivers/net/wireless/intersil/orinoco/fw.h void orinoco_cache_fw(struct orinoco_private *priv, int ap); ap 17 drivers/net/wireless/intersil/orinoco/fw.h #define orinoco_cache_fw(priv, ap) do { } while (0) ap 273 drivers/net/wireless/marvell/libertas/cfg.c int hw, ap, ap_max = ie[1]; ap 287 drivers/net/wireless/marvell/libertas/cfg.c for (ap = 0; ap < ap_max; ap++) { ap 288 drivers/net/wireless/marvell/libertas/cfg.c if (hw_rate == (ie[ap] & 0x7f)) { ap 289 drivers/net/wireless/marvell/libertas/cfg.c *tlv++ = ie[ap]; ap 3436 drivers/net/wireless/marvell/mwl8k.c } ap; ap 3479 drivers/net/wireless/marvell/mwl8k.c cmd->ap.log_cw_max = cpu_to_le32(ilog2(cw_max + 1)); ap 3480 drivers/net/wireless/marvell/mwl8k.c cmd->ap.log_cw_min = cpu_to_le32(ilog2(cw_min + 1)); ap 3481 drivers/net/wireless/marvell/mwl8k.c cmd->ap.aifs = aifs; ap 3482 drivers/net/wireless/marvell/mwl8k.c cmd->ap.txq = qnum; ap 5016 drivers/net/wireless/marvell/mwl8k.c struct ieee80211_sta *ap; ap 5020 drivers/net/wireless/marvell/mwl8k.c ap = ieee80211_find_sta(vif, vif->bss_conf.bssid); ap 5021 drivers/net/wireless/marvell/mwl8k.c if (ap == NULL) { ap 5027 drivers/net/wireless/marvell/mwl8k.c ap_legacy_rates = ap->supp_rates[NL80211_BAND_2GHZ]; ap 5030 drivers/net/wireless/marvell/mwl8k.c ap->supp_rates[NL80211_BAND_5GHZ] << 5; ap 5032 drivers/net/wireless/marvell/mwl8k.c memcpy(ap_mcs_rates, ap->ht_cap.mcs.rx_mask, 16); ap 376 drivers/net/wireless/ti/wlcore/cmd.c *hlid == wlvif->ap.bcast_hlid) { ap 644 drivers/net/wireless/ti/wlcore/cmd.c ret = wl12xx_allocate_link(wl, wlvif, &wlvif->ap.global_hlid); ap 648 drivers/net/wireless/ti/wlcore/cmd.c ret = wl12xx_allocate_link(wl, wlvif, &wlvif->ap.bcast_hlid); ap 653 drivers/net/wireless/ti/wlcore/cmd.c wl->links[wlvif->ap.bcast_hlid].total_freed_pkts = ap 657 drivers/net/wireless/ti/wlcore/cmd.c cmd->ap.aging_period = cpu_to_le16(wl->conf.tx.ap_aging_period); ap 658 drivers/net/wireless/ti/wlcore/cmd.c cmd->ap.bss_index = WL1271_AP_BSS_INDEX; ap 659 drivers/net/wireless/ti/wlcore/cmd.c cmd->ap.global_hlid = wlvif->ap.global_hlid; ap 660 drivers/net/wireless/ti/wlcore/cmd.c cmd->ap.broadcast_hlid = wlvif->ap.bcast_hlid; ap 661 drivers/net/wireless/ti/wlcore/cmd.c cmd->ap.global_session_id = wl->session_ids[wlvif->ap.global_hlid]; ap 662 drivers/net/wireless/ti/wlcore/cmd.c cmd->ap.bcast_session_id = wl->session_ids[wlvif->ap.bcast_hlid]; ap 663 drivers/net/wireless/ti/wlcore/cmd.c cmd->ap.basic_rate_set = cpu_to_le32(wlvif->basic_rate_set); ap 664 drivers/net/wireless/ti/wlcore/cmd.c cmd->ap.beacon_interval = cpu_to_le16(wlvif->beacon_int); ap 665 drivers/net/wireless/ti/wlcore/cmd.c cmd->ap.dtim_interval = bss_conf->dtim_period; ap 666 drivers/net/wireless/ti/wlcore/cmd.c cmd->ap.beacon_expiry = WL1271_AP_DEF_BEACON_EXP; ap 668 drivers/net/wireless/ti/wlcore/cmd.c cmd->ap.reset_tsf = 1; /* By default reset AP TSF */ ap 669 drivers/net/wireless/ti/wlcore/cmd.c cmd->ap.wmm = wlvif->wmm_enabled; ap 675 drivers/net/wireless/ti/wlcore/cmd.c cmd->ap.ssid_type = WL12XX_SSID_TYPE_PUBLIC; ap 676 drivers/net/wireless/ti/wlcore/cmd.c cmd->ap.ssid_len = wlvif->ssid_len; ap 677 drivers/net/wireless/ti/wlcore/cmd.c memcpy(cmd->ap.ssid, wlvif->ssid, wlvif->ssid_len); ap 679 drivers/net/wireless/ti/wlcore/cmd.c cmd->ap.ssid_type = WL12XX_SSID_TYPE_HIDDEN; ap 680 drivers/net/wireless/ti/wlcore/cmd.c cmd->ap.ssid_len = bss_conf->ssid_len; ap 681 drivers/net/wireless/ti/wlcore/cmd.c memcpy(cmd->ap.ssid, bss_conf->ssid, bss_conf->ssid_len); ap 692 drivers/net/wireless/ti/wlcore/cmd.c cmd->ap.local_rates = cpu_to_le32(supported_rates); ap 716 drivers/net/wireless/ti/wlcore/cmd.c wl12xx_free_link(wl, wlvif, &wlvif->ap.bcast_hlid); ap 719 drivers/net/wireless/ti/wlcore/cmd.c wl12xx_free_link(wl, wlvif, &wlvif->ap.global_hlid); ap 749 drivers/net/wireless/ti/wlcore/cmd.c wl12xx_free_link(wl, wlvif, &wlvif->ap.bcast_hlid); ap 750 drivers/net/wireless/ti/wlcore/cmd.c wl12xx_free_link(wl, wlvif, &wlvif->ap.global_hlid); ap 1442 drivers/net/wireless/ti/wlcore/cmd.c if (hlid == wlvif->ap.bcast_hlid) { ap 374 drivers/net/wireless/ti/wlcore/cmd.h } __packed ap; ap 584 drivers/net/wireless/ti/wlcore/debugfs.c VIF_STATE_PRINT_INT(ap.global_hlid); ap 585 drivers/net/wireless/ti/wlcore/debugfs.c VIF_STATE_PRINT_INT(ap.bcast_hlid); ap 586 drivers/net/wireless/ti/wlcore/debugfs.c VIF_STATE_PRINT_LHEX(ap.sta_hlid_map[0]); ap 587 drivers/net/wireless/ti/wlcore/debugfs.c VIF_STATE_PRINT_INT(ap.mgmt_rate_idx); ap 588 drivers/net/wireless/ti/wlcore/debugfs.c VIF_STATE_PRINT_INT(ap.bcast_rate_idx); ap 589 drivers/net/wireless/ti/wlcore/debugfs.c VIF_STATE_PRINT_INT(ap.ucast_rate_idx[0]); ap 590 drivers/net/wireless/ti/wlcore/debugfs.c VIF_STATE_PRINT_INT(ap.ucast_rate_idx[1]); ap 591 drivers/net/wireless/ti/wlcore/debugfs.c VIF_STATE_PRINT_INT(ap.ucast_rate_idx[2]); ap 592 drivers/net/wireless/ti/wlcore/debugfs.c VIF_STATE_PRINT_INT(ap.ucast_rate_idx[3]); ap 138 drivers/net/wireless/ti/wlcore/event.c for_each_set_bit(hlid, wlvif->ap.sta_hlid_map, ap 258 drivers/net/wireless/ti/wlcore/event.c if (!test_bit(h, wlvif->ap.sta_hlid_map)) ap 439 drivers/net/wireless/ti/wlcore/init.c ret = wl1271_acx_ap_rate_policy(wl, &rc, wlvif->ap.mgmt_rate_idx); ap 448 drivers/net/wireless/ti/wlcore/init.c ret = wl1271_acx_ap_rate_policy(wl, &rc, wlvif->ap.bcast_rate_idx); ap 474 drivers/net/wireless/ti/wlcore/init.c wlvif->ap.ucast_rate_idx[i]); ap 382 drivers/net/wireless/ti/wlcore/main.c for_each_set_bit(hlid, wlvif->ap.sta_hlid_map, wl->num_links) ap 2261 drivers/net/wireless/ti/wlcore/main.c wlvif->ap.bcast_hlid = WL12XX_INVALID_LINK_ID; ap 2262 drivers/net/wireless/ti/wlcore/main.c wlvif->ap.global_hlid = WL12XX_INVALID_LINK_ID; ap 2263 drivers/net/wireless/ti/wlcore/main.c wl12xx_allocate_rate_policy(wl, &wlvif->ap.mgmt_rate_idx); ap 2264 drivers/net/wireless/ti/wlcore/main.c wl12xx_allocate_rate_policy(wl, &wlvif->ap.bcast_rate_idx); ap 2267 drivers/net/wireless/ti/wlcore/main.c &wlvif->ap.ucast_rate_idx[i]); ap 2727 drivers/net/wireless/ti/wlcore/main.c wlvif->ap.bcast_hlid = WL12XX_INVALID_LINK_ID; ap 2728 drivers/net/wireless/ti/wlcore/main.c wlvif->ap.global_hlid = WL12XX_INVALID_LINK_ID; ap 2729 drivers/net/wireless/ti/wlcore/main.c wl12xx_free_rate_policy(wl, &wlvif->ap.mgmt_rate_idx); ap 2730 drivers/net/wireless/ti/wlcore/main.c wl12xx_free_rate_policy(wl, &wlvif->ap.bcast_rate_idx); ap 2733 drivers/net/wireless/ti/wlcore/main.c &wlvif->ap.ucast_rate_idx[i]); ap 2742 drivers/net/wireless/ti/wlcore/main.c memset(wlvif->ap.sta_hlid_map, 0, sizeof(wlvif->ap.sta_hlid_map)); ap 3292 drivers/net/wireless/ti/wlcore/main.c if (wlvif->ap.recorded_keys[i] == NULL) ap 3295 drivers/net/wireless/ti/wlcore/main.c if (wlvif->ap.recorded_keys[i]->id == id) { ap 3316 drivers/net/wireless/ti/wlcore/main.c wlvif->ap.recorded_keys[i] = ap_key; ap 3325 drivers/net/wireless/ti/wlcore/main.c kfree(wlvif->ap.recorded_keys[i]); ap 3326 drivers/net/wireless/ti/wlcore/main.c wlvif->ap.recorded_keys[i] = NULL; ap 3338 drivers/net/wireless/ti/wlcore/main.c if (wlvif->ap.recorded_keys[i] == NULL) ap 3341 drivers/net/wireless/ti/wlcore/main.c key = wlvif->ap.recorded_keys[i]; ap 3344 drivers/net/wireless/ti/wlcore/main.c hlid = wlvif->ap.bcast_hlid; ap 3360 drivers/net/wireless/ti/wlcore/main.c wlvif->ap.bcast_hlid); ap 3386 drivers/net/wireless/ti/wlcore/main.c hlid = wlvif->ap.bcast_hlid; ap 3519 drivers/net/wireless/ti/wlcore/main.c hlid = wlvif->ap.bcast_hlid; ap 5041 drivers/net/wireless/ti/wlcore/main.c set_bit(wl_sta->hlid, wlvif->ap.sta_hlid_map); ap 5049 drivers/net/wireless/ti/wlcore/main.c if (!test_bit(hlid, wlvif->ap.sta_hlid_map)) ap 5052 drivers/net/wireless/ti/wlcore/main.c clear_bit(hlid, wlvif->ap.sta_hlid_map); ap 5108 drivers/net/wireless/ti/wlcore/main.c if (WARN_ON(!test_bit(id, wlvif->ap.sta_hlid_map))) ap 122 drivers/net/wireless/ti/wlcore/ps.c if (!test_bit(hlid, wlvif->ap.sta_hlid_map) || ap 38 drivers/net/wireless/ti/wlcore/tx.c wlvif->ap.bcast_hlid); ap 156 drivers/net/wireless/ti/wlcore/tx.c return wlvif->ap.bcast_hlid; ap 158 drivers/net/wireless/ti/wlcore/tx.c return wlvif->ap.global_hlid; ap 328 drivers/net/wireless/ti/wlcore/tx.c if (hlid == wlvif->ap.global_hlid) ap 329 drivers/net/wireless/ti/wlcore/tx.c rate_idx = wlvif->ap.mgmt_rate_idx; ap 330 drivers/net/wireless/ti/wlcore/tx.c else if (hlid == wlvif->ap.bcast_hlid || ap 337 drivers/net/wireless/ti/wlcore/tx.c rate_idx = wlvif->ap.bcast_rate_idx; ap 339 drivers/net/wireless/ti/wlcore/tx.c rate_idx = wlvif->ap.ucast_rate_idx[ac]; ap 1062 drivers/net/wireless/ti/wlcore/tx.c i != wlvif->ap.bcast_hlid && i != wlvif->ap.global_hlid) { ap 377 drivers/net/wireless/ti/wlcore/wlcore_i.h } ap; ap 35 drivers/net/wireless/zydas/zd1201.c static int ap; /* Are we an AP or a normal station? */ ap 43 drivers/net/wireless/zydas/zd1201.c module_param(ap, int, 0); ap 44 drivers/net/wireless/zydas/zd1201.c MODULE_PARM_DESC(ap, "If non-zero Access Point firmware will be loaded"); ap 720 drivers/net/wireless/zydas/zd1201.c if (!zd->ap) { /* Normal station */ ap 949 drivers/net/wireless/zydas/zd1201.c if (zd->ap) { ap 1118 drivers/net/wireless/zydas/zd1201.c if (zd->ap) ap 1610 drivers/net/wireless/zydas/zd1201.c if (!zd->ap) ap 1623 drivers/net/wireless/zydas/zd1201.c if (!zd->ap) ap 1641 drivers/net/wireless/zydas/zd1201.c if (!zd->ap) ap 1657 drivers/net/wireless/zydas/zd1201.c if (!zd->ap) ap 1673 drivers/net/wireless/zydas/zd1201.c if (!zd->ap) ap 1745 drivers/net/wireless/zydas/zd1201.c zd->ap = ap; ap 1751 drivers/net/wireless/zydas/zd1201.c err = zd1201_fw_upload(usb, zd->ap); ap 1798 drivers/net/wireless/zydas/zd1201.c if (zd->ap) ap 41 drivers/net/wireless/zydas/zd1201.h int ap; ap 1972 drivers/of/base.c static void of_alias_add(struct alias_prop *ap, struct device_node *np, ap 1975 drivers/of/base.c ap->np = np; ap 1976 drivers/of/base.c ap->id = id; ap 1977 drivers/of/base.c strncpy(ap->stem, stem, stem_len); ap 1978 drivers/of/base.c ap->stem[stem_len] = 0; ap 1979 drivers/of/base.c list_add_tail(&ap->link, &aliases_lookup); ap 1981 drivers/of/base.c ap->alias, ap->stem, ap->id, np); ap 2023 drivers/of/base.c struct alias_prop *ap; ap 2046 drivers/of/base.c ap = dt_alloc(sizeof(*ap) + len + 1, __alignof__(*ap)); ap 2047 drivers/of/base.c if (!ap) ap 2049 drivers/of/base.c memset(ap, 0, sizeof(*ap) + len + 1); ap 2050 drivers/of/base.c ap->alias = start; ap 2051 drivers/of/base.c of_alias_add(ap, np, id, start, len); ap 86 drivers/pci/irq.c va_list ap; ap 94 drivers/pci/irq.c va_start(ap, fmt); ap 95 drivers/pci/irq.c devname = kvasprintf(GFP_KERNEL, fmt, ap); ap 96 drivers/pci/irq.c va_end(ap); ap 574 drivers/platform/x86/thinkpad_acpi.c va_list ap; ap 595 drivers/platform/x86/thinkpad_acpi.c va_start(ap, fmt); ap 600 drivers/platform/x86/thinkpad_acpi.c in_objs[params.count].integer.value = va_arg(ap, int); ap 607 drivers/platform/x86/thinkpad_acpi.c va_end(ap); ap 611 drivers/platform/x86/thinkpad_acpi.c va_end(ap); ap 56 drivers/s390/crypto/zcrypt_cex2a.c MODULE_DEVICE_TABLE(ap, zcrypt_cex2a_card_ids); ap 66 drivers/s390/crypto/zcrypt_cex2a.c MODULE_DEVICE_TABLE(ap, zcrypt_cex2a_queue_ids); ap 49 drivers/s390/crypto/zcrypt_cex2c.c MODULE_DEVICE_TABLE(ap, zcrypt_cex2c_card_ids); ap 59 drivers/s390/crypto/zcrypt_cex2c.c MODULE_DEVICE_TABLE(ap, zcrypt_cex2c_queue_ids); ap 57 drivers/s390/crypto/zcrypt_cex4.c MODULE_DEVICE_TABLE(ap, zcrypt_cex4_card_ids); ap 71 drivers/s390/crypto/zcrypt_cex4.c MODULE_DEVICE_TABLE(ap, zcrypt_cex4_queue_ids); ap 114 drivers/scsi/aic94xx/aic94xx_dev.c spin_lock_irqsave(dev->sata_dev.ap->lock, flags); ap 116 drivers/scsi/aic94xx/aic94xx_dev.c spin_unlock_irqrestore(dev->sata_dev.ap->lock, flags); ap 290 drivers/scsi/arm/fas216.c fas216_do_log(FAS216_Info *info, char target, char *fmt, va_list ap) ap 294 drivers/scsi/arm/fas216.c vsnprintf(buf, sizeof(buf), fmt, ap); ap 118 drivers/scsi/arm/msgqueue.c va_list ap; ap 124 drivers/scsi/arm/msgqueue.c va_start(ap, length); ap 126 drivers/scsi/arm/msgqueue.c mq->msg.msg[i] = va_arg(ap, unsigned int); ap 127 drivers/scsi/arm/msgqueue.c va_end(ap); ap 732 drivers/scsi/hisi_sas/hisi_sas_main.c struct ata_port *ap = sata_dev->ap; ap 736 drivers/scsi/hisi_sas/hisi_sas_main.c ata_for_each_link(link, ap, EDGE) ap 1313 drivers/scsi/hisi_sas/hisi_sas_main.c struct ata_port *ap = device->sata_dev.ap; ap 1320 drivers/scsi/hisi_sas/hisi_sas_main.c ata_for_each_link(link, ap, EDGE) { ap 1330 drivers/scsi/hisi_sas/hisi_sas_main.c ata_for_each_link(link, ap, EDGE) { ap 1457 drivers/scsi/hisi_sas/hisi_sas_main.c struct ata_port *ap = device->sata_dev.ap; ap 1471 drivers/scsi/hisi_sas/hisi_sas_main.c ata_for_each_link(link, ap, EDGE) { ap 822 drivers/scsi/ipr.c struct ipr_sata_port *sata_port = qc->ap->private_data; ap 4805 drivers/scsi/ipr.c struct ata_port *ap; ap 4819 drivers/scsi/ipr.c ap = ata_sas_port_alloc(&ioa_cfg->ata_host, &sata_port_info, shost); ap 4820 drivers/scsi/ipr.c if (ap) { ap 4823 drivers/scsi/ipr.c sata_port->ap = ap; ap 4827 drivers/scsi/ipr.c ap->private_data = sata_port; ap 4866 drivers/scsi/ipr.c ata_sas_port_destroy(sata_port->ap); ap 4912 drivers/scsi/ipr.c res->sata_port->ap->link.device[0].class = ATA_DEV_NONE; ap 4933 drivers/scsi/ipr.c struct ata_port *ap = NULL; ap 4954 drivers/scsi/ipr.c ap = res->sata_port->ap; ap 4957 drivers/scsi/ipr.c if (ap) { ap 4959 drivers/scsi/ipr.c ata_sas_slave_configure(sdev, ap); ap 4991 drivers/scsi/ipr.c rc = ata_sas_port_init(sata_port->ap); ap 4993 drivers/scsi/ipr.c rc = ata_sas_sync_probe(sata_port->ap); ap 5273 drivers/scsi/ipr.c struct ipr_sata_port *sata_port = link->ap->private_data; ap 5324 drivers/scsi/ipr.c struct ata_port *ap; ap 5366 drivers/scsi/ipr.c ap = res->sata_port->ap; ap 5368 drivers/scsi/ipr.c ata_std_error_handler(ap); ap 6565 drivers/scsi/ipr.c rc = ata_sas_queuecmd(scsi_cmd, res->sata_port->ap); ap 6697 drivers/scsi/ipr.c return ata_sas_scsi_ioctl(res->sata_port->ap, sdev, cmd, arg); ap 6757 drivers/scsi/ipr.c static void ipr_ata_phy_reset(struct ata_port *ap) ap 6760 drivers/scsi/ipr.c struct ipr_sata_port *sata_port = ap->private_data; ap 6779 drivers/scsi/ipr.c ap->link.device[0].class = ATA_DEV_NONE; ap 6783 drivers/scsi/ipr.c ap->link.device[0].class = res->ata_class; ap 6784 drivers/scsi/ipr.c if (ap->link.device[0].class == ATA_DEV_UNKNOWN) ap 6785 drivers/scsi/ipr.c ap->link.device[0].class = ATA_DEV_NONE; ap 6801 drivers/scsi/ipr.c struct ipr_sata_port *sata_port = qc->ap->private_data; ap 6867 drivers/scsi/ipr.c struct ipr_sata_port *sata_port = qc->ap->private_data; ap 6992 drivers/scsi/ipr.c struct ata_port *ap = qc->ap; ap 6993 drivers/scsi/ipr.c struct ipr_sata_port *sata_port = ap->private_data; ap 7034 drivers/scsi/ipr.c struct ata_port *ap = qc->ap; ap 7035 drivers/scsi/ipr.c struct ipr_sata_port *sata_port = ap->private_data; ap 7129 drivers/scsi/ipr.c struct ipr_sata_port *sata_port = qc->ap->private_data; ap 1283 drivers/scsi/ipr.h struct ata_port *ap; ap 1411 drivers/scsi/libfc/fc_exch.c struct fc_ba_acc *ap; ap 1419 drivers/scsi/libfc/fc_exch.c fp = fc_frame_alloc(ep->lp, sizeof(*ap)); ap 1438 drivers/scsi/libfc/fc_exch.c ap = fc_frame_payload_get(fp, sizeof(*ap)); ap 1439 drivers/scsi/libfc/fc_exch.c memset(ap, 0, sizeof(*ap)); ap 1441 drivers/scsi/libfc/fc_exch.c ap->ba_high_seq_cnt = htons(0xffff); ap 1443 drivers/scsi/libfc/fc_exch.c ap->ba_seq_id = sp->id; ap 1444 drivers/scsi/libfc/fc_exch.c ap->ba_seq_id_val = FC_BA_SEQ_ID_VAL; ap 1445 drivers/scsi/libfc/fc_exch.c ap->ba_high_seq_cnt = fh->fh_seq_cnt; ap 1446 drivers/scsi/libfc/fc_exch.c ap->ba_low_seq_cnt = htons(sp->cnt); ap 1681 drivers/scsi/libfc/fc_exch.c struct fc_ba_acc *ap; ap 1699 drivers/scsi/libfc/fc_exch.c ap = fc_frame_payload_get(fp, sizeof(*ap)); ap 1700 drivers/scsi/libfc/fc_exch.c if (!ap) ap 1708 drivers/scsi/libfc/fc_exch.c low = ntohs(ap->ba_low_seq_cnt); ap 1709 drivers/scsi/libfc/fc_exch.c high = ntohs(ap->ba_high_seq_cnt); ap 1711 drivers/scsi/libfc/fc_exch.c (ap->ba_seq_id_val != FC_BA_SEQ_ID_VAL || ap 1712 drivers/scsi/libfc/fc_exch.c ap->ba_seq_id == ep->seq_id) && low != high) { ap 91 drivers/scsi/libsas/sas_ata.c struct ata_port *ap; ap 107 drivers/scsi/libsas/sas_ata.c ap = qc->ap; ap 108 drivers/scsi/libsas/sas_ata.c link = &ap->link; ap 110 drivers/scsi/libsas/sas_ata.c spin_lock_irqsave(ap->lock, flags); ap 112 drivers/scsi/libsas/sas_ata.c if (unlikely(ap->pflags & ATA_PFLAG_FROZEN)) { ap 113 drivers/scsi/libsas/sas_ata.c spin_unlock_irqrestore(ap->lock, flags); ap 156 drivers/scsi/libsas/sas_ata.c spin_unlock_irqrestore(ap->lock, flags); ap 168 drivers/scsi/libsas/sas_ata.c struct ata_port *ap = qc->ap; ap 169 drivers/scsi/libsas/sas_ata.c struct domain_device *dev = ap->private_data; ap 175 drivers/scsi/libsas/sas_ata.c spin_unlock(ap->lock); ap 235 drivers/scsi/libsas/sas_ata.c spin_lock(ap->lock); ap 241 drivers/scsi/libsas/sas_ata.c struct domain_device *dev = qc->ap->private_data; ap 303 drivers/scsi/libsas/sas_ata.c struct ata_port *ap = link->ap; ap 304 drivers/scsi/libsas/sas_ata.c struct domain_device *dev = ap->private_data; ap 334 drivers/scsi/libsas/sas_ata.c struct ata_port *ap = link->ap; ap 335 drivers/scsi/libsas/sas_ata.c struct domain_device *dev = ap->private_data; ap 352 drivers/scsi/libsas/sas_ata.c struct ata_port *ap = ddev->sata_dev.ap; ap 364 drivers/scsi/libsas/sas_ata.c level, ap->print_id, dev_name(dev), &vaf); ap 376 drivers/scsi/libsas/sas_ata.c struct ata_port *ap = link->ap; ap 378 drivers/scsi/libsas/sas_ata.c struct domain_device *dev = ap->private_data; ap 401 drivers/scsi/libsas/sas_ata.c ap->cbl = ATA_CBL_SATA; ap 475 drivers/scsi/libsas/sas_ata.c static void sas_ata_set_dmamode(struct ata_port *ap, struct ata_device *ata_dev) ap 477 drivers/scsi/libsas/sas_ata.c struct domain_device *dev = ap->private_data; ap 484 drivers/scsi/libsas/sas_ata.c static void sas_ata_sched_eh(struct ata_port *ap) ap 486 drivers/scsi/libsas/sas_ata.c struct domain_device *dev = ap->private_data; ap 493 drivers/scsi/libsas/sas_ata.c ata_std_sched_eh(ap); ap 497 drivers/scsi/libsas/sas_ata.c void sas_ata_end_eh(struct ata_port *ap) ap 499 drivers/scsi/libsas/sas_ata.c struct domain_device *dev = ap->private_data; ap 540 drivers/scsi/libsas/sas_ata.c struct ata_port *ap; ap 551 drivers/scsi/libsas/sas_ata.c ap = ata_sas_port_alloc(ata_host, &sata_port_info, shost); ap 552 drivers/scsi/libsas/sas_ata.c if (!ap) { ap 558 drivers/scsi/libsas/sas_ata.c ap->private_data = found_dev; ap 559 drivers/scsi/libsas/sas_ata.c ap->cbl = ATA_CBL_SATA; ap 560 drivers/scsi/libsas/sas_ata.c ap->scsi_host = shost; ap 561 drivers/scsi/libsas/sas_ata.c rc = ata_sas_port_init(ap); ap 565 drivers/scsi/libsas/sas_ata.c rc = ata_sas_tport_add(ata_host->dev, ap); ap 570 drivers/scsi/libsas/sas_ata.c found_dev->sata_dev.ap = ap; ap 575 drivers/scsi/libsas/sas_ata.c ata_sas_port_destroy(ap); ap 623 drivers/scsi/libsas/sas_ata.c ata_sas_async_probe(dev->sata_dev.ap); ap 670 drivers/scsi/libsas/sas_ata.c if (sata->ap->pm_mesg.event == PM_EVENT_SUSPEND) ap 673 drivers/scsi/libsas/sas_ata.c ata_sas_port_suspend(sata->ap); ap 692 drivers/scsi/libsas/sas_ata.c if (sata->ap->pm_mesg.event == PM_EVENT_ON) ap 695 drivers/scsi/libsas/sas_ata.c ata_sas_port_resume(sata->ap); ap 730 drivers/scsi/libsas/sas_ata.c struct ata_port *ap = dev->sata_dev.ap; ap 734 drivers/scsi/libsas/sas_ata.c ata_scsi_port_error_handler(ha->core.shost, ap); ap 803 drivers/scsi/libsas/sas_ata.c struct ata_port *ap = eh_dev->sata_dev.ap; ap 806 drivers/scsi/libsas/sas_ata.c ata_scsi_cmd_error_handler(shost, ap, &sata_q); ap 827 drivers/scsi/libsas/sas_ata.c struct ata_port *ap; ap 833 drivers/scsi/libsas/sas_ata.c ap = dev->sata_dev.ap; ap 834 drivers/scsi/libsas/sas_ata.c ehi = &ap->link.eh_info; ap 836 drivers/scsi/libsas/sas_ata.c spin_lock_irqsave(ap->lock, flags); ap 839 drivers/scsi/libsas/sas_ata.c ata_port_schedule_eh(ap); ap 840 drivers/scsi/libsas/sas_ata.c spin_unlock_irqrestore(ap->lock, flags); ap 846 drivers/scsi/libsas/sas_ata.c struct ata_port *ap; ap 851 drivers/scsi/libsas/sas_ata.c ap = dev->sata_dev.ap; ap 852 drivers/scsi/libsas/sas_ata.c ata_port_wait_eh(ap); ap 308 drivers/scsi/libsas/sas_discover.c if (dev_is_sata(dev) && dev->sata_dev.ap) { ap 309 drivers/scsi/libsas/sas_discover.c ata_sas_tport_delete(dev->sata_dev.ap); ap 310 drivers/scsi/libsas/sas_discover.c ata_sas_port_destroy(dev->sata_dev.ap); ap 313 drivers/scsi/libsas/sas_discover.c dev->sata_dev.ap = NULL; ap 332 drivers/scsi/libsas/sas_discover.c sas_ata_end_eh(dev->sata_dev.ap); ap 177 drivers/scsi/libsas/sas_scsi_host.c spin_lock_irq(dev->sata_dev.ap->lock); ap 178 drivers/scsi/libsas/sas_scsi_host.c res = ata_sas_queuecmd(cmd, dev->sata_dev.ap); ap 179 drivers/scsi/libsas/sas_scsi_host.c spin_unlock_irq(dev->sata_dev.ap->lock); ap 395 drivers/scsi/libsas/sas_scsi_host.c ata_port_wait_eh(dev->sata_dev.ap); ap 789 drivers/scsi/libsas/sas_scsi_host.c return ata_sas_scsi_ioctl(dev->sata_dev.ap, sdev, cmd, arg); ap 845 drivers/scsi/libsas/sas_scsi_host.c ata_sas_slave_configure(scsi_dev, dev->sata_dev.ap); ap 869 drivers/scsi/libsas/sas_scsi_host.c return __ata_change_queue_depth(dev->sata_dev.ap, sdev, depth); ap 2745 drivers/scsi/lpfc/lpfc_els.c ADISC *ap; ap 2763 drivers/scsi/lpfc/lpfc_els.c ap = (ADISC *) pcmd; ap 2764 drivers/scsi/lpfc/lpfc_els.c ap->hardAL_PA = phba->fc_pref_ALPA; ap 2765 drivers/scsi/lpfc/lpfc_els.c memcpy(&ap->portName, &vport->fc_portname, sizeof(struct lpfc_name)); ap 2766 drivers/scsi/lpfc/lpfc_els.c memcpy(&ap->nodeName, &vport->fc_nodename, sizeof(struct lpfc_name)); ap 2767 drivers/scsi/lpfc/lpfc_els.c ap->DID = be32_to_cpu(vport->fc_myDID); ap 4742 drivers/scsi/lpfc/lpfc_els.c ADISC *ap; ap 4772 drivers/scsi/lpfc/lpfc_els.c ap = (ADISC *) (pcmd); ap 4773 drivers/scsi/lpfc/lpfc_els.c ap->hardAL_PA = phba->fc_pref_ALPA; ap 4774 drivers/scsi/lpfc/lpfc_els.c memcpy(&ap->portName, &vport->fc_portname, sizeof(struct lpfc_name)); ap 4775 drivers/scsi/lpfc/lpfc_els.c memcpy(&ap->nodeName, &vport->fc_nodename, sizeof(struct lpfc_name)); ap 4776 drivers/scsi/lpfc/lpfc_els.c ap->DID = be32_to_cpu(vport->fc_myDID); ap 566 drivers/scsi/lpfc/lpfc_nportdisc.c ADISC *ap; ap 576 drivers/scsi/lpfc/lpfc_nportdisc.c ap = (ADISC *) lp; ap 577 drivers/scsi/lpfc/lpfc_nportdisc.c pnn = (struct lpfc_name *) & ap->nodeName; ap 578 drivers/scsi/lpfc/lpfc_nportdisc.c ppn = (struct lpfc_name *) & ap->portName; ap 1515 drivers/scsi/lpfc/lpfc_nportdisc.c ADISC *ap; ap 1521 drivers/scsi/lpfc/lpfc_nportdisc.c ap = (ADISC *)lpfc_check_elscmpl_iocb(phba, cmdiocb, rspiocb); ap 1525 drivers/scsi/lpfc/lpfc_nportdisc.c (!lpfc_check_adisc(vport, ndlp, &ap->nodeName, &ap->portName))) { ap 2136 drivers/scsi/qla2xxx/qla_isr.c uint8_t *ap = &sts24->data[12]; ap 2146 drivers/scsi/qla2xxx/qla_isr.c a_guard = le16_to_cpu(*(uint16_t *)(ap + 2)); ap 2147 drivers/scsi/qla2xxx/qla_isr.c a_app_tag = le16_to_cpu(*(uint16_t *)(ap + 0)); ap 2148 drivers/scsi/qla2xxx/qla_isr.c a_ref_tag = le32_to_cpu(*(uint32_t *)(ap + 4)); ap 3441 drivers/scsi/qla2xxx/qla_target.c uint8_t *ap = &sts->actual_dif[0]; ap 3450 drivers/scsi/qla2xxx/qla_target.c cmd->a_guard = be16_to_cpu(*(uint16_t *)(ap + 0)); ap 3451 drivers/scsi/qla2xxx/qla_target.c cmd->a_app_tag = be16_to_cpu(*(uint16_t *)(ap + 2)); ap 3452 drivers/scsi/qla2xxx/qla_target.c cmd->a_ref_tag = be32_to_cpu(*(uint32_t *)(ap + 4)); ap 2118 drivers/scsi/scsi_debug.c unsigned char *ap; ap 2160 drivers/scsi/scsi_debug.c ap = arr + offset; ap 2166 drivers/scsi/scsi_debug.c put_unaligned_be32(0xffffffff, ap + 0); ap 2168 drivers/scsi/scsi_debug.c put_unaligned_be32(sdebug_capacity, ap + 0); ap 2169 drivers/scsi/scsi_debug.c put_unaligned_be16(sdebug_sector_size, ap + 6); ap 2171 drivers/scsi/scsi_debug.c ap = arr + offset; ap 2173 drivers/scsi/scsi_debug.c put_unaligned_be64((u64)sdebug_capacity, ap + 0); ap 2174 drivers/scsi/scsi_debug.c put_unaligned_be32(sdebug_sector_size, ap + 12); ap 2176 drivers/scsi/scsi_debug.c ap = arr + offset; ap 2188 drivers/scsi/scsi_debug.c len = resp_err_recov_pg(ap, pcontrol, target); ap 2192 drivers/scsi/scsi_debug.c len = resp_disconnect_pg(ap, pcontrol, target); ap 2197 drivers/scsi/scsi_debug.c len = resp_format_pg(ap, pcontrol, target); ap 2204 drivers/scsi/scsi_debug.c len = resp_caching_pg(ap, pcontrol, target); ap 2210 drivers/scsi/scsi_debug.c len = resp_ctrl_m_pg(ap, pcontrol, target); ap 2220 drivers/scsi/scsi_debug.c len += resp_sas_sf_m_pg(ap + len, pcontrol, target); ap 2222 drivers/scsi/scsi_debug.c len += resp_sas_pcd_m_spg(ap + len, pcontrol, target, ap 2225 drivers/scsi/scsi_debug.c len += resp_sas_sha_m_spg(ap + len, pcontrol); ap 2229 drivers/scsi/scsi_debug.c len = resp_iec_m_pg(ap, pcontrol, target); ap 2234 drivers/scsi/scsi_debug.c len = resp_err_recov_pg(ap, pcontrol, target); ap 2235 drivers/scsi/scsi_debug.c len += resp_disconnect_pg(ap + len, pcontrol, target); ap 2237 drivers/scsi/scsi_debug.c len += resp_format_pg(ap + len, pcontrol, ap 2239 drivers/scsi/scsi_debug.c len += resp_caching_pg(ap + len, pcontrol, ap 2242 drivers/scsi/scsi_debug.c len += resp_ctrl_m_pg(ap + len, pcontrol, target); ap 2243 drivers/scsi/scsi_debug.c len += resp_sas_sf_m_pg(ap + len, pcontrol, target); ap 2245 drivers/scsi/scsi_debug.c len += resp_sas_pcd_m_spg(ap + len, pcontrol, ap 2247 drivers/scsi/scsi_debug.c len += resp_sas_sha_m_spg(ap + len, pcontrol); ap 2249 drivers/scsi/scsi_debug.c len += resp_iec_m_pg(ap + len, pcontrol, target); ap 624 drivers/staging/fieldbus/anybuss/host.c struct area_priv *ap; ap 629 drivers/staging/fieldbus/anybuss/host.c ap = &t->area_pd; ap 630 drivers/staging/fieldbus/anybuss/host.c ap->flags = flags; ap 631 drivers/staging/fieldbus/anybuss/host.c ap->addr = addr; ap 632 drivers/staging/fieldbus/anybuss/host.c ap->is_write = false; ap 633 drivers/staging/fieldbus/anybuss/host.c ap->count = count; ap 642 drivers/staging/fieldbus/anybuss/host.c struct area_priv *ap; ap 647 drivers/staging/fieldbus/anybuss/host.c ap = &t->area_pd; ap 648 drivers/staging/fieldbus/anybuss/host.c ap->flags = flags; ap 649 drivers/staging/fieldbus/anybuss/host.c ap->addr = addr; ap 650 drivers/staging/fieldbus/anybuss/host.c ap->is_write = true; ap 651 drivers/staging/fieldbus/anybuss/host.c ap->count = count; ap 652 drivers/staging/fieldbus/anybuss/host.c memcpy(ap->buf, buf, count); ap 661 drivers/staging/fieldbus/anybuss/host.c struct area_priv *ap; ap 666 drivers/staging/fieldbus/anybuss/host.c ap = &t->area_pd; ap 667 drivers/staging/fieldbus/anybuss/host.c ap->flags = flags; ap 668 drivers/staging/fieldbus/anybuss/host.c ap->addr = addr; ap 669 drivers/staging/fieldbus/anybuss/host.c ap->is_write = true; ap 670 drivers/staging/fieldbus/anybuss/host.c ap->count = count; ap 671 drivers/staging/fieldbus/anybuss/host.c if (copy_from_user(ap->buf, buf, count)) { ap 194 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap; ap 196 drivers/staging/isdn/gigaset/capi.c list_for_each_entry(ap, &iif->appls, ctrlist) ap 197 drivers/staging/isdn/gigaset/capi.c if (ap->id == appl) ap 198 drivers/staging/isdn/gigaset/capi.c return ap; ap 371 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap = bcs->ap; ap 378 drivers/staging/isdn/gigaset/capi.c if (!ap) { ap 395 drivers/staging/isdn/gigaset/capi.c send_data_b3_conf(cs, &iif->ctr, ap->id, CAPIMSG_MSGID(req), ap 416 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap = bcs->ap; ap 422 drivers/staging/isdn/gigaset/capi.c if (!ap) { ap 442 drivers/staging/isdn/gigaset/capi.c CAPIMSG_SETAPPID(skb->data, ap->id); ap 445 drivers/staging/isdn/gigaset/capi.c CAPIMSG_SETMSGID(skb->data, ap->nextMessageNumber++); ap 457 drivers/staging/isdn/gigaset/capi.c capi_ctr_handle_message(&iif->ctr, ap->id, skb); ap 497 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap; ap 627 drivers/staging/isdn/gigaset/capi.c if (bcs->ap != NULL || bcs->apconnstate != APCONN_NONE) { ap 629 drivers/staging/isdn/gigaset/capi.c __func__, bcs->ap, bcs->apconnstate); ap 630 drivers/staging/isdn/gigaset/capi.c bcs->ap = NULL; ap 635 drivers/staging/isdn/gigaset/capi.c list_for_each_entry(ap, &iif->appls, ctrlist) ap 636 drivers/staging/isdn/gigaset/capi.c if (actCIPmask & ap->listenCIPmask) { ap 638 drivers/staging/isdn/gigaset/capi.c iif->hcmsg.ApplId = ap->id; ap 639 drivers/staging/isdn/gigaset/capi.c iif->hcmsg.Messagenumber = ap->nextMessageNumber++; ap 658 drivers/staging/isdn/gigaset/capi.c ap->bcnext = bcs->ap; ap 659 drivers/staging/isdn/gigaset/capi.c bcs->ap = ap; ap 665 drivers/staging/isdn/gigaset/capi.c capi_ctr_handle_message(&iif->ctr, ap->id, skb); ap 673 drivers/staging/isdn/gigaset/capi.c return bcs->ap ? ICALL_ACCEPT : ICALL_IGNORE; ap 681 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap, u16 reason) ap 690 drivers/staging/isdn/gigaset/capi.c capi_cmsg_header(&iif->hcmsg, ap->id, CAPI_DISCONNECT, CAPI_IND, ap 691 drivers/staging/isdn/gigaset/capi.c ap->nextMessageNumber++, ap 706 drivers/staging/isdn/gigaset/capi.c capi_ctr_handle_message(&iif->ctr, ap->id, skb); ap 715 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap) ap 726 drivers/staging/isdn/gigaset/capi.c capi_cmsg_header(&iif->hcmsg, ap->id, CAPI_DISCONNECT_B3, CAPI_IND, ap 727 drivers/staging/isdn/gigaset/capi.c ap->nextMessageNumber++, ap 741 drivers/staging/isdn/gigaset/capi.c capi_ctr_handle_message(&iif->ctr, ap->id, skb); ap 755 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap; ap 761 drivers/staging/isdn/gigaset/capi.c ap = bcs->ap; ap 762 drivers/staging/isdn/gigaset/capi.c if (!ap) { ap 770 drivers/staging/isdn/gigaset/capi.c __func__, ap->id); ap 774 drivers/staging/isdn/gigaset/capi.c while (ap->bcnext) { ap 777 drivers/staging/isdn/gigaset/capi.c __func__, ap->bcnext->id); ap 778 drivers/staging/isdn/gigaset/capi.c send_disconnect_ind(bcs, ap->bcnext, ap 780 drivers/staging/isdn/gigaset/capi.c ap->bcnext = ap->bcnext->bcnext; ap 786 drivers/staging/isdn/gigaset/capi.c capi_cmsg_header(&iif->hcmsg, ap->id, CAPI_CONNECT_ACTIVE, CAPI_IND, ap 787 drivers/staging/isdn/gigaset/capi.c ap->nextMessageNumber++, ap 810 drivers/staging/isdn/gigaset/capi.c capi_ctr_handle_message(&iif->ctr, ap->id, skb); ap 822 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap; ap 831 drivers/staging/isdn/gigaset/capi.c while (bcs->ap != NULL) { ap 832 drivers/staging/isdn/gigaset/capi.c ap = bcs->ap; ap 833 drivers/staging/isdn/gigaset/capi.c bcs->ap = ap->bcnext; ap 835 drivers/staging/isdn/gigaset/capi.c send_disconnect_b3_ind(bcs, ap); ap 836 drivers/staging/isdn/gigaset/capi.c send_disconnect_ind(bcs, ap, 0); ap 854 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap; ap 861 drivers/staging/isdn/gigaset/capi.c ap = bcs->ap; ap 862 drivers/staging/isdn/gigaset/capi.c if (!ap) { ap 870 drivers/staging/isdn/gigaset/capi.c __func__, ap->id); ap 891 drivers/staging/isdn/gigaset/capi.c while (ap->bcnext) { ap 894 drivers/staging/isdn/gigaset/capi.c __func__, ap->bcnext->id); ap 895 drivers/staging/isdn/gigaset/capi.c send_disconnect_ind(bcs, ap->bcnext, ap 897 drivers/staging/isdn/gigaset/capi.c ap->bcnext = ap->bcnext->bcnext; ap 900 drivers/staging/isdn/gigaset/capi.c capi_cmsg_header(&iif->hcmsg, ap->id, command, CAPI_IND, ap 901 drivers/staging/isdn/gigaset/capi.c ap->nextMessageNumber++, ap 914 drivers/staging/isdn/gigaset/capi.c capi_ctr_handle_message(&iif->ctr, ap->id, skb); ap 926 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap = bcs->ap; ap 930 drivers/staging/isdn/gigaset/capi.c if (!ap) { ap 935 drivers/staging/isdn/gigaset/capi.c send_disconnect_b3_ind(bcs, ap); ap 1000 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap; ap 1005 drivers/staging/isdn/gigaset/capi.c list_for_each_entry(ap, &iif->appls, ctrlist) ap 1006 drivers/staging/isdn/gigaset/capi.c if (ap->id == appl) { ap 1012 drivers/staging/isdn/gigaset/capi.c ap = kzalloc(sizeof(*ap), GFP_KERNEL); ap 1013 drivers/staging/isdn/gigaset/capi.c if (!ap) { ap 1017 drivers/staging/isdn/gigaset/capi.c ap->id = appl; ap 1018 drivers/staging/isdn/gigaset/capi.c ap->rp = *rp; ap 1020 drivers/staging/isdn/gigaset/capi.c list_add(&ap->ctrlist, &iif->appls); ap 1021 drivers/staging/isdn/gigaset/capi.c dev_info(cs->dev, "application %u registered\n", ap->id); ap 1030 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap) ap 1038 drivers/staging/isdn/gigaset/capi.c bcap = bcs->ap; ap 1045 drivers/staging/isdn/gigaset/capi.c if (bcap == ap) { ap 1046 drivers/staging/isdn/gigaset/capi.c bcs->ap = ap->bcnext; ap 1047 drivers/staging/isdn/gigaset/capi.c if (bcs->ap != NULL) { ap 1069 drivers/staging/isdn/gigaset/capi.c if (bcap->bcnext == ap) { ap 1087 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap, *tmp; ap 1092 drivers/staging/isdn/gigaset/capi.c list_for_each_entry_safe(ap, tmp, &iif->appls, ctrlist) ap 1093 drivers/staging/isdn/gigaset/capi.c if (ap->id == appl) { ap 1096 drivers/staging/isdn/gigaset/capi.c remove_appl_from_channel(&cs->bcs[ch], ap); ap 1099 drivers/staging/isdn/gigaset/capi.c list_del(&ap->ctrlist); ap 1100 drivers/staging/isdn/gigaset/capi.c kfree(ap); ap 1115 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap, ap 1134 drivers/staging/isdn/gigaset/capi.c capi_ctr_handle_message(&iif->ctr, ap->id, skb); ap 1141 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap, ap 1185 drivers/staging/isdn/gigaset/capi.c send_conf(iif, ap, skb, CapiIllMessageParmCoding); ap 1203 drivers/staging/isdn/gigaset/capi.c send_conf(iif, ap, skb, ap 1272 drivers/staging/isdn/gigaset/capi.c capi_ctr_handle_message(&iif->ctr, ap->id, cskb); ap 1281 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap, ap 1295 drivers/staging/isdn/gigaset/capi.c ap->listenInfoMask = iif->acmsg.InfoMask; ap 1296 drivers/staging/isdn/gigaset/capi.c ap->listenCIPmask = iif->acmsg.CIPmask; ap 1297 drivers/staging/isdn/gigaset/capi.c send_conf(iif, ap, skb, CapiSuccess); ap 1305 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap, ap 1317 drivers/staging/isdn/gigaset/capi.c send_conf(iif, ap, skb, CapiAlertAlreadySent); ap 1326 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap, ap 1352 drivers/staging/isdn/gigaset/capi.c send_conf(iif, ap, skb, CapiNoPlciAvailable); ap 1356 drivers/staging/isdn/gigaset/capi.c if (bcs->ap != NULL || bcs->apconnstate != APCONN_NONE) ap 1358 drivers/staging/isdn/gigaset/capi.c __func__, bcs->ap, bcs->apconnstate); ap 1359 drivers/staging/isdn/gigaset/capi.c ap->bcnext = NULL; ap 1360 drivers/staging/isdn/gigaset/capi.c bcs->ap = ap; ap 1364 drivers/staging/isdn/gigaset/capi.c bcs->rx_bufsize = ap->rp.datablklen; ap 1600 drivers/staging/isdn/gigaset/capi.c send_conf(iif, ap, skb, CapiSuccess); ap 1612 drivers/staging/isdn/gigaset/capi.c send_conf(iif, ap, skb, info); ap 1620 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap, ap 1652 drivers/staging/isdn/gigaset/capi.c while (bcs->ap != NULL) { ap 1653 drivers/staging/isdn/gigaset/capi.c oap = bcs->ap; ap 1654 drivers/staging/isdn/gigaset/capi.c bcs->ap = oap->bcnext; ap 1655 drivers/staging/isdn/gigaset/capi.c if (oap != ap) { ap 1662 drivers/staging/isdn/gigaset/capi.c ap->bcnext = NULL; ap 1663 drivers/staging/isdn/gigaset/capi.c bcs->ap = ap; ap 1666 drivers/staging/isdn/gigaset/capi.c bcs->rx_bufsize = ap->rp.datablklen; ap 1733 drivers/staging/isdn/gigaset/capi.c send_disconnect_ind(bcs, ap, 0); ap 1737 drivers/staging/isdn/gigaset/capi.c if (bcs->ap == ap) { ap 1738 drivers/staging/isdn/gigaset/capi.c bcs->ap = ap->bcnext; ap 1739 drivers/staging/isdn/gigaset/capi.c if (bcs->ap == NULL) { ap 1747 drivers/staging/isdn/gigaset/capi.c for (oap = bcs->ap; oap != NULL; oap = oap->bcnext) { ap 1748 drivers/staging/isdn/gigaset/capi.c if (oap->bcnext == ap) { ap 1756 drivers/staging/isdn/gigaset/capi.c __func__, ap->id); ap 1762 drivers/staging/isdn/gigaset/capi.c while (bcs->ap != NULL) { ap 1763 drivers/staging/isdn/gigaset/capi.c oap = bcs->ap; ap 1764 drivers/staging/isdn/gigaset/capi.c bcs->ap = oap->bcnext; ap 1765 drivers/staging/isdn/gigaset/capi.c if (oap != ap) { ap 1772 drivers/staging/isdn/gigaset/capi.c ap->bcnext = NULL; ap 1773 drivers/staging/isdn/gigaset/capi.c bcs->ap = ap; ap 1792 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap, ap 1813 drivers/staging/isdn/gigaset/capi.c send_conf(iif, ap, skb, CapiIllContrPlciNcci); ap 1826 drivers/staging/isdn/gigaset/capi.c send_conf(iif, ap, skb, ap 1839 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap, ap 1891 drivers/staging/isdn/gigaset/capi.c capi_cmsg_header(cmsg, ap->id, command, CAPI_IND, ap 1892 drivers/staging/isdn/gigaset/capi.c ap->nextMessageNumber++, cmsg->adr.adrNCCI); ap 1900 drivers/staging/isdn/gigaset/capi.c capi_ctr_handle_message(&iif->ctr, ap->id, skb); ap 1909 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap, ap 1932 drivers/staging/isdn/gigaset/capi.c send_conf(iif, ap, skb, CapiIllContrPlciNcci); ap 1966 drivers/staging/isdn/gigaset/capi.c send_conf(iif, ap, skb, CAPI_MSGOSRESOURCEERR); ap 1969 drivers/staging/isdn/gigaset/capi.c capi_cmsg_header(b3cmsg, ap->id, CAPI_DISCONNECT_B3, CAPI_IND, ap 1970 drivers/staging/isdn/gigaset/capi.c ap->nextMessageNumber++, ap 1976 drivers/staging/isdn/gigaset/capi.c send_conf(iif, ap, skb, CAPI_MSGOSRESOURCEERR); ap 1990 drivers/staging/isdn/gigaset/capi.c capi_ctr_handle_message(&iif->ctr, ap->id, b3skb); ap 1995 drivers/staging/isdn/gigaset/capi.c send_conf(iif, ap, skb, CAPI_MSGOSRESOURCEERR); ap 2001 drivers/staging/isdn/gigaset/capi.c send_conf(iif, ap, skb, CapiSuccess); ap 2009 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap, ap 2031 drivers/staging/isdn/gigaset/capi.c send_conf(iif, ap, skb, CapiIllContrPlciNcci); ap 2038 drivers/staging/isdn/gigaset/capi.c send_conf(iif, ap, skb, ap 2045 drivers/staging/isdn/gigaset/capi.c send_conf(iif, ap, skb, CAPI_MSGOSRESOURCEERR); ap 2053 drivers/staging/isdn/gigaset/capi.c send_conf(iif, ap, skb, ap 2062 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap, ap 2082 drivers/staging/isdn/gigaset/capi.c send_conf(iif, ap, skb, CapiIllContrPlciNcci); ap 2094 drivers/staging/isdn/gigaset/capi.c send_conf(iif, ap, skb, CapiIllMessageParmCoding); /* ? */ ap 2100 drivers/staging/isdn/gigaset/capi.c send_conf(iif, ap, skb, CapiIllMessageParmCoding); ap 2106 drivers/staging/isdn/gigaset/capi.c send_conf(iif, ap, skb, CapiMessageNotSupportedInCurrentState); ap 2117 drivers/staging/isdn/gigaset/capi.c send_conf(iif, ap, skb, CAPI_MSGOSRESOURCEERR); ap 2126 drivers/staging/isdn/gigaset/capi.c send_data_b3_conf(cs, &iif->ctr, ap->id, msgid, channel, handle, ap 2136 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap, ap 2148 drivers/staging/isdn/gigaset/capi.c send_conf(iif, ap, skb, ap 2156 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap, ap 2168 drivers/staging/isdn/gigaset/capi.c send_conf(iif, ap, skb, CapiMessageNotSupportedInCurrentState); ap 2175 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap, ap 2191 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap, ap 2270 drivers/staging/isdn/gigaset/capi.c struct gigaset_capi_appl *ap; ap 2280 drivers/staging/isdn/gigaset/capi.c ap = get_appl(iif, CAPIMSG_APPID(skb->data)); ap 2281 drivers/staging/isdn/gigaset/capi.c if (!ap) { ap 2305 drivers/staging/isdn/gigaset/capi.c handler(iif, ap, skb); ap 2315 drivers/staging/isdn/gigaset/capi.c ap = get_appl(iif, CAPIMSG_APPID(skb->data)); ap 2316 drivers/staging/isdn/gigaset/capi.c if (!ap) { ap 2329 drivers/staging/isdn/gigaset/capi.c handler(iif, ap, skb); ap 641 drivers/staging/isdn/gigaset/common.c bcs->ap = NULL; ap 397 drivers/staging/isdn/gigaset/gigaset.h void *ap; /* associated LL application */ ap 104 drivers/staging/ks7010/ks_hostif.c struct local_ap *ap; ap 109 drivers/staging/ks7010/ks_hostif.c ap = &priv->current_ap; ap 112 drivers/staging/ks7010/ks_hostif.c memset(ap, 0, sizeof(struct local_ap)); ap 116 drivers/staging/ks7010/ks_hostif.c ether_addr_copy(ap->bssid, ap_info->bssid); ap 117 drivers/staging/ks7010/ks_hostif.c memcpy(ap->ssid.body, priv->reg.ssid.body, ap 119 drivers/staging/ks7010/ks_hostif.c ap->ssid.size = priv->reg.ssid.size; ap 120 drivers/staging/ks7010/ks_hostif.c memcpy(ap->rate_set.body, ap_info->rate_set.body, ap 122 drivers/staging/ks7010/ks_hostif.c ap->rate_set.size = ap_info->rate_set.size; ap 124 drivers/staging/ks7010/ks_hostif.c memcpy(&ap->rate_set.body[ap->rate_set.size], ap 127 drivers/staging/ks7010/ks_hostif.c ap->rate_set.size += ap_info->ext_rate_set.size; ap 129 drivers/staging/ks7010/ks_hostif.c ap->channel = ap_info->ds_parameter.channel; ap 130 drivers/staging/ks7010/ks_hostif.c ap->rssi = ap_info->rssi; ap 131 drivers/staging/ks7010/ks_hostif.c ap->sq = ap_info->sq; ap 132 drivers/staging/ks7010/ks_hostif.c ap->noise = ap_info->noise; ap 133 drivers/staging/ks7010/ks_hostif.c ap->capability = le16_to_cpu(ap_info->capability); ap 138 drivers/staging/ks7010/ks_hostif.c ap->rsn_ie.id = RSN_INFO_ELEM_ID; ap 139 drivers/staging/ks7010/ks_hostif.c ap->rsn_ie.size = size; ap 140 drivers/staging/ks7010/ks_hostif.c memcpy(ap->rsn_ie.body, ap_info->rsn.body, size); ap 143 drivers/staging/ks7010/ks_hostif.c ap->wpa_ie.id = WPA_INFO_ELEM_ID; ap 144 drivers/staging/ks7010/ks_hostif.c ap->wpa_ie.size = size; ap 145 drivers/staging/ks7010/ks_hostif.c memcpy(ap->wpa_ie.body, ap_info->rsn.body, size); ap 147 drivers/staging/ks7010/ks_hostif.c ap->rsn_ie.id = 0; ap 148 drivers/staging/ks7010/ks_hostif.c ap->rsn_ie.size = 0; ap 149 drivers/staging/ks7010/ks_hostif.c ap->wpa_ie.id = 0; ap 150 drivers/staging/ks7010/ks_hostif.c ap->wpa_ie.size = 0; ap 175 drivers/staging/ks7010/ks_hostif.c ap->bssid[0], ap->bssid[1], ap->bssid[2], ap 176 drivers/staging/ks7010/ks_hostif.c ap->bssid[3], ap->bssid[4], ap->bssid[5], ap 177 drivers/staging/ks7010/ks_hostif.c &ap->ssid.body[0], ap 178 drivers/staging/ks7010/ks_hostif.c ap->rate_set.body[0], ap->rate_set.body[1], ap 179 drivers/staging/ks7010/ks_hostif.c ap->rate_set.body[2], ap->rate_set.body[3], ap 180 drivers/staging/ks7010/ks_hostif.c ap->rate_set.body[4], ap->rate_set.body[5], ap 181 drivers/staging/ks7010/ks_hostif.c ap->rate_set.body[6], ap->rate_set.body[7], ap 182 drivers/staging/ks7010/ks_hostif.c ap->channel, ap->rssi, ap->sq, ap->capability, ap 260 drivers/staging/ks7010/ks_hostif.c struct local_ap *ap) ap 265 drivers/staging/ks7010/ks_hostif.c memset(ap, 0, sizeof(struct local_ap)); ap 267 drivers/staging/ks7010/ks_hostif.c ether_addr_copy(ap->bssid, ap_info->bssid); ap 268 drivers/staging/ks7010/ks_hostif.c ap->rssi = ap_info->rssi; ap 269 drivers/staging/ks7010/ks_hostif.c ap->sq = ap_info->sq; ap 270 drivers/staging/ks7010/ks_hostif.c ap->noise = ap_info->noise; ap 271 drivers/staging/ks7010/ks_hostif.c ap->capability = le16_to_cpu(ap_info->capability); ap 272 drivers/staging/ks7010/ks_hostif.c ap->channel = ap_info->ch_info; ap 281 drivers/staging/ks7010/ks_hostif.c ap->ssid.size = read_ie(bp, IEEE80211_MAX_SSID_LEN, ap 282 drivers/staging/ks7010/ks_hostif.c ap->ssid.body); ap 286 drivers/staging/ks7010/ks_hostif.c if ((*(bp + 1) + ap->rate_set.size) <= ap 288 drivers/staging/ks7010/ks_hostif.c memcpy(&ap->rate_set.body[ap->rate_set.size], ap 290 drivers/staging/ks7010/ks_hostif.c ap->rate_set.size += *(bp + 1); ap 292 drivers/staging/ks7010/ks_hostif.c memcpy(&ap->rate_set.body[ap->rate_set.size], ap 294 drivers/staging/ks7010/ks_hostif.c RATE_SET_MAX_SIZE - ap->rate_set.size); ap 295 drivers/staging/ks7010/ks_hostif.c ap->rate_set.size += ap 296 drivers/staging/ks7010/ks_hostif.c (RATE_SET_MAX_SIZE - ap->rate_set.size); ap 300 drivers/staging/ks7010/ks_hostif.c ap->rsn_ie.id = *bp; ap 301 drivers/staging/ks7010/ks_hostif.c ap->rsn_ie.size = read_ie(bp, RSN_IE_BODY_MAX, ap 302 drivers/staging/ks7010/ks_hostif.c ap->rsn_ie.body); ap 307 drivers/staging/ks7010/ks_hostif.c ap->wpa_ie.id = *bp; ap 308 drivers/staging/ks7010/ks_hostif.c ap->wpa_ie.size = read_ie(bp, RSN_IE_BODY_MAX, ap 309 drivers/staging/ks7010/ks_hostif.c ap->wpa_ie.body); ap 787 drivers/staging/ks7010/ks_hostif.c u8 *bssid = priv->aplist.ap[i].bssid; ap 794 drivers/staging/ks7010/ks_hostif.c &priv->aplist.ap[i]); ap 803 drivers/staging/ks7010/ks_hostif.c &priv->aplist.ap[priv->scan_ind_count - 1]); ap 2249 drivers/staging/ks7010/ks_hostif.c memset(&priv->aplist.ap[0], 0, size); ap 228 drivers/staging/ks7010/ks_wlan.h struct local_ap ap[LOCAL_APLIST_MAX + 1]; ap 1100 drivers/staging/ks7010/ks_wlan_net.c ether_addr_copy(address[i].sa_data, priv->aplist.ap[i].bssid); ap 1102 drivers/staging/ks7010/ks_wlan_net.c qual[i].level = 256 - priv->aplist.ap[i].rssi; ap 1103 drivers/staging/ks7010/ks_wlan_net.c qual[i].qual = priv->aplist.ap[i].sq; ap 1180 drivers/staging/ks7010/ks_wlan_net.c struct local_ap *ap) ap 1193 drivers/staging/ks7010/ks_wlan_net.c ether_addr_copy(iwe.u.ap_addr.sa_data, ap->bssid); ap 1200 drivers/staging/ks7010/ks_wlan_net.c iwe.u.data.length = ap->ssid.size; ap 1206 drivers/staging/ks7010/ks_wlan_net.c end_buf, &iwe, ap->ssid.body); ap 1210 drivers/staging/ks7010/ks_wlan_net.c capabilities = ap->capability; ap 1220 drivers/staging/ks7010/ks_wlan_net.c iwe.u.freq.m = ap->channel; ap 1228 drivers/staging/ks7010/ks_wlan_net.c iwe.u.qual.level = 256 - ap->rssi; ap 1229 drivers/staging/ks7010/ks_wlan_net.c iwe.u.qual.qual = ap->sq; ap 1241 drivers/staging/ks7010/ks_wlan_net.c &iwe, ap->ssid.body); ap 1258 drivers/staging/ks7010/ks_wlan_net.c if (i >= ap->rate_set.size) ap 1261 drivers/staging/ks7010/ks_wlan_net.c iwe.u.bitrate.value = ((ap->rate_set.body[i] & 0x7f) * 500000); ap 1271 drivers/staging/ks7010/ks_wlan_net.c if (ap->rsn_ie.id == RSN_INFO_ELEM_ID && ap->rsn_ie.size != 0) ap 1273 drivers/staging/ks7010/ks_wlan_net.c current_ev, &ap->rsn_ie, ap 1276 drivers/staging/ks7010/ks_wlan_net.c if (ap->wpa_ie.id == WPA_INFO_ELEM_ID && ap->wpa_ie.size != 0) ap 1278 drivers/staging/ks7010/ks_wlan_net.c current_ev, &ap->wpa_ie, ap 1318 drivers/staging/ks7010/ks_wlan_net.c &priv->aplist.ap[i]); ap 63 drivers/staging/media/tegra-vde/dmabuf-cache.c struct dma_buf_attachment **ap, ap 143 drivers/staging/media/tegra-vde/dmabuf-cache.c *ap = entry->a; ap 66 drivers/staging/media/tegra-vde/vde.h struct dma_buf_attachment **ap, ap 942 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c hostap_update_rx_stats(local->ap, hdr, rx_stats); ap 1057 drivers/staging/sm750fb/sm750.c struct apertures_struct *ap; ap 1060 drivers/staging/sm750fb/sm750.c ap = alloc_apertures(1); ap 1061 drivers/staging/sm750fb/sm750.c if (!ap) ap 1064 drivers/staging/sm750fb/sm750.c ap->ranges[0].base = pci_resource_start(pdev, 0); ap 1065 drivers/staging/sm750fb/sm750.c ap->ranges[0].size = pci_resource_len(pdev, 0); ap 1070 drivers/staging/sm750fb/sm750.c remove_conflicting_framebuffers(ap, "sm750_fb1", primary); ap 1071 drivers/staging/sm750fb/sm750.c kfree(ap); ap 672 drivers/tty/hvc/hvc_xen.c va_list ap; ap 674 drivers/tty/hvc/hvc_xen.c va_start(ap, fmt); ap 675 drivers/tty/hvc/hvc_xen.c vsnprintf(buf, sizeof(buf), fmt, ap); ap 676 drivers/tty/hvc/hvc_xen.c va_end(ap); ap 1396 drivers/tty/serial/sunsu.c struct device_node *ap = of_find_node_by_path("/aliases"); ap 1399 drivers/tty/serial/sunsu.c if (ap) { ap 1400 drivers/tty/serial/sunsu.c const char *keyb = of_get_property(ap, "keyboard", NULL); ap 1401 drivers/tty/serial/sunsu.c const char *ms = of_get_property(ap, "mouse", NULL); ap 1432 drivers/tty/serial/sunsu.c of_node_put(ap); ap 24 drivers/vhost/vringh.c va_list ap; ap 25 drivers/vhost/vringh.c va_start(ap, fmt); ap 27 drivers/vhost/vringh.c vprintk(fmt, ap); ap 28 drivers/vhost/vringh.c va_end(ap); ap 50 drivers/video/fbdev/asiliantfb.c #define mm_write_ind(num, val, ap, dp) do { \ ap 51 drivers/video/fbdev/asiliantfb.c writeb((num), mmio_base + (ap)); writeb((val), mmio_base + (dp)); \ ap 2258 drivers/video/fbdev/aty/radeon_base.c struct apertures_struct *ap; ap 2260 drivers/video/fbdev/aty/radeon_base.c ap = alloc_apertures(1); ap 2261 drivers/video/fbdev/aty/radeon_base.c if (!ap) ap 2264 drivers/video/fbdev/aty/radeon_base.c ap->ranges[0].base = pci_resource_start(pdev, 0); ap 2265 drivers/video/fbdev/aty/radeon_base.c ap->ranges[0].size = pci_resource_len(pdev, 0); ap 2267 drivers/video/fbdev/aty/radeon_base.c remove_conflicting_framebuffers(ap, KBUILD_MODNAME, false); ap 2269 drivers/video/fbdev/aty/radeon_base.c kfree(ap); ap 39 drivers/video/fbdev/chipsfb.c #define write_ind(num, val, ap, dp) do { \ ap 40 drivers/video/fbdev/chipsfb.c outb((num), (ap)); outb((val), (dp)); \ ap 42 drivers/video/fbdev/chipsfb.c #define read_ind(num, var, ap, dp) do { \ ap 43 drivers/video/fbdev/chipsfb.c outb((num), (ap)); var = inb((dp)); \ ap 1772 drivers/video/fbdev/core/fbmem.c struct apertures_struct *ap; ap 1783 drivers/video/fbdev/core/fbmem.c ap = alloc_apertures(idx); ap 1784 drivers/video/fbdev/core/fbmem.c if (!ap) ap 1790 drivers/video/fbdev/core/fbmem.c ap->ranges[idx].base = pci_resource_start(pdev, bar); ap 1791 drivers/video/fbdev/core/fbmem.c ap->ranges[idx].size = pci_resource_len(pdev, bar); ap 1807 drivers/video/fbdev/core/fbmem.c err = remove_conflicting_framebuffers(ap, name, primary); ap 1808 drivers/video/fbdev/core/fbmem.c kfree(ap); ap 23 drivers/video/fbdev/cyber2000fb.h va_list ap; ap 25 drivers/video/fbdev/cyber2000fb.h va_start(ap, fmt); ap 26 drivers/video/fbdev/cyber2000fb.h vsprintf(buffer, fmt, ap); ap 27 drivers/video/fbdev/cyber2000fb.h va_end(ap); ap 160 drivers/xen/xenbus/xenbus_client.c va_list ap; ap 163 drivers/xen/xenbus/xenbus_client.c va_start(ap, pathfmt); ap 164 drivers/xen/xenbus/xenbus_client.c path = kvasprintf(GFP_NOIO | __GFP_HIGH, pathfmt, ap); ap 165 drivers/xen/xenbus/xenbus_client.c va_end(ap); ap 263 drivers/xen/xenbus/xenbus_client.c const char *fmt, va_list ap) ap 276 drivers/xen/xenbus/xenbus_client.c vsnprintf(printf_buffer + len, PRINTF_BUFFER_SIZE - len, fmt, ap); ap 299 drivers/xen/xenbus/xenbus_client.c va_list ap; ap 301 drivers/xen/xenbus/xenbus_client.c va_start(ap, fmt); ap 302 drivers/xen/xenbus/xenbus_client.c xenbus_va_dev_error(dev, err, fmt, ap); ap 303 drivers/xen/xenbus/xenbus_client.c va_end(ap); ap 320 drivers/xen/xenbus/xenbus_client.c va_list ap; ap 322 drivers/xen/xenbus/xenbus_client.c va_start(ap, fmt); ap 323 drivers/xen/xenbus/xenbus_client.c xenbus_va_dev_error(dev, err, fmt, ap); ap 324 drivers/xen/xenbus/xenbus_client.c va_end(ap); ap 337 drivers/xen/xenbus/xenbus_client.c va_list ap; ap 339 drivers/xen/xenbus/xenbus_client.c va_start(ap, fmt); ap 340 drivers/xen/xenbus/xenbus_client.c xenbus_va_dev_error(dev, err, fmt, ap); ap 341 drivers/xen/xenbus/xenbus_client.c va_end(ap); ap 571 drivers/xen/xenbus/xenbus_xs.c va_list ap; ap 579 drivers/xen/xenbus/xenbus_xs.c va_start(ap, fmt); ap 580 drivers/xen/xenbus/xenbus_xs.c ret = vsscanf(val, fmt, ap); ap 581 drivers/xen/xenbus/xenbus_xs.c va_end(ap); ap 609 drivers/xen/xenbus/xenbus_xs.c va_list ap; ap 613 drivers/xen/xenbus/xenbus_xs.c va_start(ap, fmt); ap 614 drivers/xen/xenbus/xenbus_xs.c buf = kvasprintf(GFP_NOIO | __GFP_HIGH, fmt, ap); ap 615 drivers/xen/xenbus/xenbus_xs.c va_end(ap); ap 631 drivers/xen/xenbus/xenbus_xs.c va_list ap; ap 635 drivers/xen/xenbus/xenbus_xs.c va_start(ap, dir); ap 636 drivers/xen/xenbus/xenbus_xs.c while (ret == 0 && (name = va_arg(ap, char *)) != NULL) { ap 637 drivers/xen/xenbus/xenbus_xs.c const char *fmt = va_arg(ap, char *); ap 638 drivers/xen/xenbus/xenbus_xs.c void *result = va_arg(ap, void *); ap 653 drivers/xen/xenbus/xenbus_xs.c va_end(ap); ap 39 fs/ext4/ioctl.c unsigned char *ap, *bp; ap 41 fs/ext4/ioctl.c ap = (unsigned char *)a; ap 44 fs/ext4/ioctl.c swap(*ap, *bp); ap 45 fs/ext4/ioctl.c ap++; ap 302 fs/fuse/cuse.c struct fuse_args_pages ap; ap 319 fs/fuse/cuse.c struct cuse_init_args *ia = container_of(args, typeof(*ia), ap.args); ap 320 fs/fuse/cuse.c struct fuse_args_pages *ap = &ia->ap; ap 323 fs/fuse/cuse.c struct page *page = ap->pages[0]; ap 340 fs/fuse/cuse.c rc = cuse_parse_devinfo(page_address(page), ap->args.out_args[1].size, ap 429 fs/fuse/cuse.c struct fuse_args_pages *ap; ap 442 fs/fuse/cuse.c ap = &ia->ap; ap 446 fs/fuse/cuse.c ap->args.opcode = CUSE_INIT; ap 447 fs/fuse/cuse.c ap->args.in_numargs = 1; ap 448 fs/fuse/cuse.c ap->args.in_args[0].size = sizeof(ia->in); ap 449 fs/fuse/cuse.c ap->args.in_args[0].value = &ia->in; ap 450 fs/fuse/cuse.c ap->args.out_numargs = 2; ap 451 fs/fuse/cuse.c ap->args.out_args[0].size = sizeof(ia->out); ap 452 fs/fuse/cuse.c ap->args.out_args[0].value = &ia->out; ap 453 fs/fuse/cuse.c ap->args.out_args[1].size = CUSE_INIT_INFO_MAX; ap 454 fs/fuse/cuse.c ap->args.out_argvar = 1; ap 455 fs/fuse/cuse.c ap->args.out_pages = 1; ap 456 fs/fuse/cuse.c ap->num_pages = 1; ap 457 fs/fuse/cuse.c ap->pages = &ia->page; ap 458 fs/fuse/cuse.c ap->descs = &ia->desc; ap 460 fs/fuse/cuse.c ia->desc.length = ap->args.out_args[1].size; ap 461 fs/fuse/cuse.c ap->args.end = cuse_process_init_reply; ap 463 fs/fuse/cuse.c rc = fuse_simple_background(fc, &ap->args, GFP_KERNEL); ap 953 fs/fuse/dev.c struct fuse_args_pages *ap = container_of(req->args, typeof(*ap), args); ap 956 fs/fuse/dev.c for (i = 0; i < ap->num_pages && (nbytes || zeroing); i++) { ap 958 fs/fuse/dev.c unsigned int offset = ap->descs[i].offset; ap 959 fs/fuse/dev.c unsigned int count = min(nbytes, ap->descs[i].length); ap 961 fs/fuse/dev.c err = fuse_copy_page(cs, &ap->pages[i], offset, count, zeroing); ap 1621 fs/fuse/dev.c struct fuse_args_pages ap; ap 1629 fs/fuse/dev.c container_of(args, typeof(*ra), ap.args); ap 1631 fs/fuse/dev.c release_pages(ra->ap.pages, ra->ap.num_pages); ap 1648 fs/fuse/dev.c struct fuse_args_pages *ap; ap 1663 fs/fuse/dev.c args_size += num_pages * (sizeof(ap->pages[0]) + sizeof(ap->descs[0])); ap 1669 fs/fuse/dev.c ap = &ra->ap; ap 1670 fs/fuse/dev.c ap->pages = (void *) (ra + 1); ap 1671 fs/fuse/dev.c ap->descs = (void *) (ap->pages + num_pages); ap 1673 fs/fuse/dev.c args = &ap->args; ap 1682 fs/fuse/dev.c while (num && ap->num_pages < num_pages) { ap 1691 fs/fuse/dev.c ap->pages[ap->num_pages] = page; ap 1692 fs/fuse/dev.c ap->descs[ap->num_pages].offset = offset; ap 1693 fs/fuse/dev.c ap->descs[ap->num_pages].length = this_num; ap 1694 fs/fuse/dev.c ap->num_pages++; ap 1214 fs/fuse/dir.c struct fuse_args_pages ap = { ap 1222 fs/fuse/dir.c ap.args.opcode = FUSE_READLINK; ap 1223 fs/fuse/dir.c ap.args.nodeid = get_node_id(inode); ap 1224 fs/fuse/dir.c ap.args.out_pages = true; ap 1225 fs/fuse/dir.c ap.args.out_argvar = true; ap 1226 fs/fuse/dir.c ap.args.page_zeroing = true; ap 1227 fs/fuse/dir.c ap.args.out_numargs = 1; ap 1228 fs/fuse/dir.c ap.args.out_args[0].size = desc.length; ap 1229 fs/fuse/dir.c res = fuse_simple_request(fc, &ap.args); ap 376 fs/fuse/file.c if (idx_from < curr_index + wpa->ia.ap.num_pages && ap 555 fs/fuse/file.c struct fuse_args *args = &ia->ap.args; ap 571 fs/fuse/file.c static void fuse_release_user_pages(struct fuse_args_pages *ap, ap 576 fs/fuse/file.c for (i = 0; i < ap->num_pages; i++) { ap 578 fs/fuse/file.c set_page_dirty_lock(ap->pages[i]); ap 579 fs/fuse/file.c put_page(ap->pages[i]); ap 657 fs/fuse/file.c ia->ap.pages = fuse_pages_alloc(npages, GFP_KERNEL, ap 658 fs/fuse/file.c &ia->ap.descs); ap 659 fs/fuse/file.c if (!ia->ap.pages) { ap 669 fs/fuse/file.c kfree(ia->ap.pages); ap 676 fs/fuse/file.c struct fuse_io_args *ia = container_of(args, typeof(*ia), ap.args); ap 680 fs/fuse/file.c fuse_release_user_pages(&ia->ap, io->should_dirty); ap 714 fs/fuse/file.c ia->ap.args.end = fuse_aio_complete_req; ap 715 fs/fuse/file.c err = fuse_simple_background(fc, &ia->ap.args, GFP_KERNEL); ap 717 fs/fuse/file.c fuse_aio_complete_req(fc, &ia->ap.args, err); ap 738 fs/fuse/file.c return fuse_simple_request(fc, &ia->ap.args); ap 757 fs/fuse/file.c struct fuse_args_pages *ap) ap 771 fs/fuse/file.c for (i = start_idx; i < ap->num_pages; i++) { ap 772 fs/fuse/file.c zero_user_segment(ap->pages[i], off, PAGE_SIZE); ap 776 fs/fuse/file.c loff_t pos = page_offset(ap->pages[0]) + num_read; ap 788 fs/fuse/file.c .ap.args.page_zeroing = true, ap 789 fs/fuse/file.c .ap.args.out_pages = true, ap 790 fs/fuse/file.c .ap.num_pages = 1, ap 791 fs/fuse/file.c .ap.pages = &page, ap 792 fs/fuse/file.c .ap.descs = &desc, ap 811 fs/fuse/file.c res = fuse_simple_request(fc, &ia.ap.args); ap 818 fs/fuse/file.c fuse_short_read(inode, attr_ver, res, &ia.ap); ap 845 fs/fuse/file.c struct fuse_io_args *ia = container_of(args, typeof(*ia), ap.args); ap 846 fs/fuse/file.c struct fuse_args_pages *ap = &ia->ap; ap 851 fs/fuse/file.c for (i = 0; mapping == NULL && i < ap->num_pages; i++) ap 852 fs/fuse/file.c mapping = ap->pages[i]->mapping; ap 861 fs/fuse/file.c fuse_short_read(inode, ia->read.attr_ver, num_read, ap); ap 866 fs/fuse/file.c for (i = 0; i < ap->num_pages; i++) { ap 867 fs/fuse/file.c struct page *page = ap->pages[i]; ap 886 fs/fuse/file.c struct fuse_args_pages *ap = &ia->ap; ap 887 fs/fuse/file.c loff_t pos = page_offset(ap->pages[0]); ap 888 fs/fuse/file.c size_t count = ap->num_pages << PAGE_SHIFT; ap 892 fs/fuse/file.c ap->args.out_pages = true; ap 893 fs/fuse/file.c ap->args.page_zeroing = true; ap 894 fs/fuse/file.c ap->args.page_replace = true; ap 899 fs/fuse/file.c ap->descs[ap->num_pages - 1].length--; ap 907 fs/fuse/file.c ap->args.end = fuse_readpages_end; ap 908 fs/fuse/file.c err = fuse_simple_background(fc, &ap->args, GFP_KERNEL); ap 912 fs/fuse/file.c res = fuse_simple_request(fc, &ap->args); ap 915 fs/fuse/file.c fuse_readpages_end(fc, &ap->args, err); ap 930 fs/fuse/file.c struct fuse_args_pages *ap = &ia->ap; ap 936 fs/fuse/file.c if (ap->num_pages && ap 937 fs/fuse/file.c (ap->num_pages == fc->max_pages || ap 938 fs/fuse/file.c (ap->num_pages + 1) * PAGE_SIZE > fc->max_read || ap 939 fs/fuse/file.c ap->pages[ap->num_pages - 1]->index + 1 != page->index)) { ap 948 fs/fuse/file.c ap = &ia->ap; ap 951 fs/fuse/file.c if (WARN_ON(ap->num_pages >= data->max_pages)) { ap 958 fs/fuse/file.c ap->pages[ap->num_pages] = page; ap 959 fs/fuse/file.c ap->descs[ap->num_pages].length = PAGE_SIZE; ap 960 fs/fuse/file.c ap->num_pages++; ap 989 fs/fuse/file.c if (data.ia->ap.num_pages) ap 1022 fs/fuse/file.c struct fuse_args *args = &ia->ap.args; ap 1073 fs/fuse/file.c err = fuse_simple_request(fc, &ia->ap.args); ap 1101 fs/fuse/file.c struct fuse_args_pages *ap = &ia->ap; ap 1108 fs/fuse/file.c for (i = 0; i < ap->num_pages; i++) ap 1109 fs/fuse/file.c fuse_wait_on_page_writeback(inode, ap->pages[i]->index); ap 1114 fs/fuse/file.c err = fuse_simple_request(fc, &ap->args); ap 1118 fs/fuse/file.c offset = ap->descs[0].offset; ap 1120 fs/fuse/file.c for (i = 0; i < ap->num_pages; i++) { ap 1121 fs/fuse/file.c struct page *page = ap->pages[i]; ap 1139 fs/fuse/file.c static ssize_t fuse_fill_write_pages(struct fuse_args_pages *ap, ap 1149 fs/fuse/file.c ap->args.in_pages = true; ap 1150 fs/fuse/file.c ap->descs[0].offset = offset; ap 1186 fs/fuse/file.c ap->pages[ap->num_pages] = page; ap 1187 fs/fuse/file.c ap->descs[ap->num_pages].length = tmp; ap 1188 fs/fuse/file.c ap->num_pages++; ap 1199 fs/fuse/file.c ap->num_pages < max_pages && offset == 0); ap 1229 fs/fuse/file.c struct fuse_args_pages *ap = &ia.ap; ap 1233 fs/fuse/file.c ap->pages = fuse_pages_alloc(nr_pages, GFP_KERNEL, &ap->descs); ap 1234 fs/fuse/file.c if (!ap->pages) { ap 1239 fs/fuse/file.c count = fuse_fill_write_pages(ap, mapping, ii, pos, nr_pages); ap 1256 fs/fuse/file.c kfree(ap->pages); ap 1365 fs/fuse/file.c static int fuse_get_user_pages(struct fuse_args_pages *ap, struct iov_iter *ii, ap 1378 fs/fuse/file.c ap->args.in_args[1].value = (void *) user_addr; ap 1380 fs/fuse/file.c ap->args.out_args[0].value = (void *) user_addr; ap 1387 fs/fuse/file.c while (nbytes < *nbytesp && ap->num_pages < max_pages) { ap 1390 fs/fuse/file.c ret = iov_iter_get_pages(ii, &ap->pages[ap->num_pages], ap 1392 fs/fuse/file.c max_pages - ap->num_pages, ap 1403 fs/fuse/file.c ap->descs[ap->num_pages].offset = start; ap 1404 fs/fuse/file.c fuse_page_descs_length_init(ap->descs, ap->num_pages, npages); ap 1406 fs/fuse/file.c ap->num_pages += npages; ap 1407 fs/fuse/file.c ap->descs[ap->num_pages - 1].length -= ap 1412 fs/fuse/file.c ap->args.in_pages = 1; ap 1414 fs/fuse/file.c ap->args.out_pages = 1; ap 1460 fs/fuse/file.c err = fuse_get_user_pages(&ia->ap, iter, &nbytes, write, ap 1475 fs/fuse/file.c fuse_release_user_pages(&ia->ap, io->should_dirty); ap 1595 fs/fuse/file.c struct fuse_args_pages *ap = &wpa->ia.ap; ap 1598 fs/fuse/file.c for (i = 0; i < ap->num_pages; i++) ap 1599 fs/fuse/file.c __free_page(ap->pages[i]); ap 1604 fs/fuse/file.c kfree(ap->pages); ap 1611 fs/fuse/file.c struct fuse_args_pages *ap = &wpa->ia.ap; ap 1618 fs/fuse/file.c for (i = 0; i < ap->num_pages; i++) { ap 1620 fs/fuse/file.c dec_node_page_state(ap->pages[i], NR_WRITEBACK_TEMP); ap 1635 fs/fuse/file.c struct fuse_args *args = &wpa->ia.ap.args; ap 1636 fs/fuse/file.c __u64 data_size = wpa->ia.ap.num_pages * PAGE_SIZE; ap 1709 fs/fuse/file.c container_of(args, typeof(*wpa), ia.ap.args); ap 1798 fs/fuse/file.c struct fuse_args_pages *ap; ap 1802 fs/fuse/file.c ap = &wpa->ia.ap; ap 1803 fs/fuse/file.c ap->num_pages = 0; ap 1804 fs/fuse/file.c ap->pages = fuse_pages_alloc(1, GFP_NOFS, &ap->descs); ap 1805 fs/fuse/file.c if (!ap->pages) { ap 1821 fs/fuse/file.c struct fuse_args_pages *ap; ap 1830 fs/fuse/file.c ap = &wpa->ia.ap; ap 1846 fs/fuse/file.c ap->args.in_pages = true; ap 1847 fs/fuse/file.c ap->num_pages = 1; ap 1848 fs/fuse/file.c ap->pages[0] = tmp_page; ap 1849 fs/fuse/file.c ap->descs[0].offset = 0; ap 1850 fs/fuse/file.c ap->descs[0].length = PAGE_SIZE; ap 1851 fs/fuse/file.c ap->args.end = fuse_writepage_end; ap 1910 fs/fuse/file.c struct fuse_args_pages *ap = &data->wpa->ia.ap; ap 1924 fs/fuse/file.c memcpy(pages, ap->pages, sizeof(struct page *) * ap->num_pages); ap 1925 fs/fuse/file.c memcpy(descs, ap->descs, sizeof(struct fuse_page_desc) * ap->num_pages); ap 1926 fs/fuse/file.c kfree(ap->pages); ap 1927 fs/fuse/file.c ap->pages = pages; ap 1928 fs/fuse/file.c ap->descs = descs; ap 1939 fs/fuse/file.c int num_pages = wpa->ia.ap.num_pages; ap 1965 fs/fuse/file.c struct fuse_args_pages *new_ap = &new_wpa->ia.ap; ap 1985 fs/fuse/file.c WARN_ON(tmp->ia.ap.num_pages != 1); ap 1986 fs/fuse/file.c swap(tmp->ia.ap.pages[0], new_ap->pages[0]); ap 2015 fs/fuse/file.c struct fuse_args_pages *ap = &wpa->ia.ap; ap 2038 fs/fuse/file.c if (wpa && ap->num_pages && ap 2039 fs/fuse/file.c (is_writeback || ap->num_pages == fc->max_pages || ap 2040 fs/fuse/file.c (ap->num_pages + 1) * PAGE_SIZE > fc->max_write || ap 2041 fs/fuse/file.c data->orig_pages[ap->num_pages - 1]->index + 1 != page->index)) { ap 2044 fs/fuse/file.c } else if (wpa && ap->num_pages == data->max_pages) { ap 2078 fs/fuse/file.c ap = &wpa->ia.ap; ap 2082 fs/fuse/file.c ap->args.in_pages = true; ap 2083 fs/fuse/file.c ap->args.end = fuse_writepage_end; ap 2084 fs/fuse/file.c ap->num_pages = 0; ap 2096 fs/fuse/file.c ap->pages[ap->num_pages] = tmp_page; ap 2097 fs/fuse/file.c ap->descs[ap->num_pages].offset = 0; ap 2098 fs/fuse/file.c ap->descs[ap->num_pages].length = PAGE_SIZE; ap 2109 fs/fuse/file.c data->orig_pages[ap->num_pages] = page; ap 2116 fs/fuse/file.c ap->num_pages++; ap 2151 fs/fuse/file.c WARN_ON(!data.wpa->ia.ap.num_pages); ap 2729 fs/fuse/file.c struct fuse_args_pages ap = {}; ap 2747 fs/fuse/file.c ap.pages = fuse_pages_alloc(fc->max_pages, GFP_KERNEL, &ap.descs); ap 2749 fs/fuse/file.c if (!ap.pages || !iov_page) ap 2752 fs/fuse/file.c fuse_page_descs_length_init(ap.descs, 0, fc->max_pages); ap 2790 fs/fuse/file.c while (ap.num_pages < max_pages) { ap 2791 fs/fuse/file.c ap.pages[ap.num_pages] = alloc_page(GFP_KERNEL | __GFP_HIGHMEM); ap 2792 fs/fuse/file.c if (!ap.pages[ap.num_pages]) ap 2794 fs/fuse/file.c ap.num_pages++; ap 2799 fs/fuse/file.c ap.args.opcode = FUSE_IOCTL; ap 2800 fs/fuse/file.c ap.args.nodeid = ff->nodeid; ap 2801 fs/fuse/file.c ap.args.in_numargs = 1; ap 2802 fs/fuse/file.c ap.args.in_args[0].size = sizeof(inarg); ap 2803 fs/fuse/file.c ap.args.in_args[0].value = &inarg; ap 2805 fs/fuse/file.c ap.args.in_numargs++; ap 2806 fs/fuse/file.c ap.args.in_args[1].size = in_size; ap 2807 fs/fuse/file.c ap.args.in_pages = true; ap 2811 fs/fuse/file.c for (i = 0; iov_iter_count(&ii) && !WARN_ON(i >= ap.num_pages); i++) { ap 2812 fs/fuse/file.c c = copy_page_from_iter(ap.pages[i], 0, PAGE_SIZE, &ii); ap 2818 fs/fuse/file.c ap.args.out_numargs = 2; ap 2819 fs/fuse/file.c ap.args.out_args[0].size = sizeof(outarg); ap 2820 fs/fuse/file.c ap.args.out_args[0].value = &outarg; ap 2821 fs/fuse/file.c ap.args.out_args[1].size = out_size; ap 2822 fs/fuse/file.c ap.args.out_pages = true; ap 2823 fs/fuse/file.c ap.args.out_argvar = true; ap 2825 fs/fuse/file.c transferred = fuse_simple_request(fc, &ap.args); ap 2852 fs/fuse/file.c vaddr = kmap_atomic(ap.pages[0]); ap 2880 fs/fuse/file.c for (i = 0; iov_iter_count(&ii) && !WARN_ON(i >= ap.num_pages); i++) { ap 2881 fs/fuse/file.c c = copy_page_to_iter(ap.pages[i], 0, PAGE_SIZE, &ii); ap 2888 fs/fuse/file.c while (ap.num_pages) ap 2889 fs/fuse/file.c __free_page(ap.pages[--ap.num_pages]); ap 2890 fs/fuse/file.c kfree(ap.pages); ap 836 fs/fuse/fuse_i.h struct fuse_args_pages ap; ap 325 fs/fuse/readdir.c struct fuse_args_pages *ap = &ia.ap; ap 335 fs/fuse/readdir.c ap->args.out_pages = 1; ap 336 fs/fuse/readdir.c ap->num_pages = 1; ap 337 fs/fuse/readdir.c ap->pages = &page; ap 338 fs/fuse/readdir.c ap->descs = &desc; ap 348 fs/fuse/readdir.c res = fuse_simple_request(fc, &ap->args); ap 454 fs/fuse/virtio_fs.c struct fuse_args_pages *ap; ap 485 fs/fuse/virtio_fs.c ap = container_of(args, typeof(*ap), args); ap 486 fs/fuse/virtio_fs.c for (i = 0; i < ap->num_pages; i++) { ap 487 fs/fuse/virtio_fs.c thislen = ap->descs[i].length; ap 489 fs/fuse/virtio_fs.c WARN_ON(ap->descs[i].offset); ap 490 fs/fuse/virtio_fs.c page = ap->pages[i]; ap 802 fs/fuse/virtio_fs.c struct fuse_args_pages *ap = container_of(args, typeof(*ap), args); ap 809 fs/fuse/virtio_fs.c total_sgs += ap->num_pages; ap 820 fs/fuse/virtio_fs.c total_sgs += ap->num_pages; ap 854 fs/fuse/virtio_fs.c struct fuse_args_pages *ap = container_of(req->args, typeof(*ap), args); ap 864 fs/fuse/virtio_fs.c ap->pages, ap->descs, ap 865 fs/fuse/virtio_fs.c ap->num_pages, ap 1078 fs/gfs2/bmap.c struct gfs2_alloc_parms ap = {}; ap 1084 fs/gfs2/bmap.c ap.target = data_blocks + ind_blocks; ap 1085 fs/gfs2/bmap.c ret = gfs2_quota_lock_check(ip, &ap); ap 1089 fs/gfs2/bmap.c ret = gfs2_inplace_reserve(ip, &ap); ap 2111 fs/gfs2/bmap.c struct gfs2_alloc_parms ap = { .target = 1, }; ap 2117 fs/gfs2/bmap.c error = gfs2_quota_lock_check(ip, &ap); ap 2121 fs/gfs2/bmap.c error = gfs2_inplace_reserve(ip, &ap); ap 451 fs/gfs2/file.c struct gfs2_alloc_parms ap = { .aflags = 0, }; ap 492 fs/gfs2/file.c ap.target = data_blocks + ind_blocks; ap 493 fs/gfs2/file.c ret = gfs2_quota_lock_check(ip, &ap); ap 496 fs/gfs2/file.c ret = gfs2_inplace_reserve(ip, &ap); ap 991 fs/gfs2/file.c struct gfs2_alloc_parms ap = { .aflags = 0, }; ap 1016 fs/gfs2/file.c ap.min_target = data_blocks + ind_blocks; ap 1038 fs/gfs2/file.c ap.target = data_blocks + ind_blocks; ap 1040 fs/gfs2/file.c error = gfs2_quota_lock_check(ip, &ap); ap 1046 fs/gfs2/file.c if (ap.allowed) ap 1047 fs/gfs2/file.c max_blks = ap.allowed; ap 1049 fs/gfs2/file.c error = gfs2_inplace_reserve(ip, &ap); ap 1054 fs/gfs2/file.c if (ap.allowed && ap.allowed < max_blks) ap 1055 fs/gfs2/file.c max_blks = ap.allowed; ap 375 fs/gfs2/inode.c struct gfs2_alloc_parms ap = { .target = *dblocks, .aflags = flags, }; ap 378 fs/gfs2/inode.c error = gfs2_quota_lock_check(ip, &ap); ap 382 fs/gfs2/inode.c error = gfs2_inplace_reserve(ip, &ap); ap 517 fs/gfs2/inode.c struct gfs2_alloc_parms ap = { .target = da->nr_blocks, }; ap 521 fs/gfs2/inode.c error = gfs2_quota_lock_check(dip, &ap); ap 525 fs/gfs2/inode.c error = gfs2_inplace_reserve(dip, &ap); ap 962 fs/gfs2/inode.c struct gfs2_alloc_parms ap = { .target = da.nr_blocks, }; ap 963 fs/gfs2/inode.c error = gfs2_quota_lock_check(dip, &ap); ap 967 fs/gfs2/inode.c error = gfs2_inplace_reserve(dip, &ap); ap 1512 fs/gfs2/inode.c struct gfs2_alloc_parms ap = { .target = da.nr_blocks, }; ap 1513 fs/gfs2/inode.c error = gfs2_quota_lock_check(ndip, &ap); ap 1517 fs/gfs2/inode.c error = gfs2_inplace_reserve(ndip, &ap); ap 1871 fs/gfs2/inode.c struct gfs2_alloc_parms ap; ap 1895 fs/gfs2/inode.c ap.target = gfs2_get_inode_blocks(&ip->i_inode); ap 1899 fs/gfs2/inode.c error = gfs2_quota_check(ip, nuid, ngid, &ap); ap 1914 fs/gfs2/inode.c gfs2_quota_change(ip, -(s64)ap.target, ouid, ogid); ap 1915 fs/gfs2/inode.c gfs2_quota_change(ip, ap.target, nuid, ngid); ap 869 fs/gfs2/quota.c struct gfs2_alloc_parms ap = { .aflags = 0, }; ap 922 fs/gfs2/quota.c ap.target = reserved; ap 923 fs/gfs2/quota.c error = gfs2_inplace_reserve(ip, &ap); ap 1189 fs/gfs2/quota.c struct gfs2_alloc_parms *ap) ap 1197 fs/gfs2/quota.c ap->allowed = UINT_MAX; /* Assume we are permitted a whole lot */ ap 1218 fs/gfs2/quota.c if (limit > 0 && (limit - value) < ap->allowed) ap 1219 fs/gfs2/quota.c ap->allowed = limit - value; ap 1221 fs/gfs2/quota.c if (limit && limit < (value + (s64)ap->target)) { ap 1224 fs/gfs2/quota.c if (!ap->min_target || ap->min_target > ap->allowed) { ap 1714 fs/gfs2/quota.c struct gfs2_alloc_parms ap = { .aflags = 0, }; ap 1718 fs/gfs2/quota.c ap.target = blocks; ap 1719 fs/gfs2/quota.c error = gfs2_inplace_reserve(ip, &ap); ap 27 fs/gfs2/quota.h struct gfs2_alloc_parms *ap); ap 41 fs/gfs2/quota.h struct gfs2_alloc_parms *ap) ap 46 fs/gfs2/quota.h ap->allowed = UINT_MAX; /* Assume we are permitted a whole lot */ ap 55 fs/gfs2/quota.h ret = gfs2_quota_check(ip, ip->i_inode.i_uid, ip->i_inode.i_gid, ap); ap 1564 fs/gfs2/rgrp.c const struct gfs2_alloc_parms *ap) ap 1577 fs/gfs2/rgrp.c extlen = max_t(u32, atomic_read(&ip->i_sizehint), ap->target); ap 2039 fs/gfs2/rgrp.c int gfs2_inplace_reserve(struct gfs2_inode *ip, struct gfs2_alloc_parms *ap) ap 2051 fs/gfs2/rgrp.c if (gfs2_assert_warn(sdp, ap->target)) ap 2062 fs/gfs2/rgrp.c if (S_ISDIR(ip->i_inode.i_mode) && (ap->aflags & GFS2_AF_ORLOV)) ap 2103 fs/gfs2/rgrp.c (loops == 0 && ap->target > rs->rs_rbm.rgd->rd_extfail_pt)) ap 2111 fs/gfs2/rgrp.c rg_mblk_search(rs->rs_rbm.rgd, ip, ap); ap 2119 fs/gfs2/rgrp.c if (free_blocks >= ap->target || ap 2120 fs/gfs2/rgrp.c (loops == 2 && ap->min_target && ap 2121 fs/gfs2/rgrp.c free_blocks >= ap->min_target)) { ap 2122 fs/gfs2/rgrp.c ap->allowed = free_blocks; ap 42 fs/gfs2/rgrp.h struct gfs2_alloc_parms *ap); ap 727 fs/gfs2/xattr.c struct gfs2_alloc_parms ap = { .target = blks }; ap 734 fs/gfs2/xattr.c error = gfs2_quota_lock_check(ip, &ap); ap 738 fs/gfs2/xattr.c error = gfs2_inplace_reserve(ip, &ap); ap 3043 fs/xfs/libxfs/xfs_bmap.c struct xfs_bmalloca *ap) /* bmap alloc argument struct */ ap 3058 fs/xfs/libxfs/xfs_bmap.c mp = ap->ip->i_mount; ap 3059 fs/xfs/libxfs/xfs_bmap.c nullfb = ap->tp->t_firstblock == NULLFSBLOCK; ap 3060 fs/xfs/libxfs/xfs_bmap.c rt = XFS_IS_REALTIME_INODE(ap->ip) && ap 3061 fs/xfs/libxfs/xfs_bmap.c xfs_alloc_is_userdata(ap->datatype); ap 3063 fs/xfs/libxfs/xfs_bmap.c ap->tp->t_firstblock); ap 3068 fs/xfs/libxfs/xfs_bmap.c if (ap->eof && ap->prev.br_startoff != NULLFILEOFF && ap 3069 fs/xfs/libxfs/xfs_bmap.c !isnullstartblock(ap->prev.br_startblock) && ap 3070 fs/xfs/libxfs/xfs_bmap.c ISVALID(ap->prev.br_startblock + ap->prev.br_blockcount, ap 3071 fs/xfs/libxfs/xfs_bmap.c ap->prev.br_startblock)) { ap 3072 fs/xfs/libxfs/xfs_bmap.c ap->blkno = ap->prev.br_startblock + ap->prev.br_blockcount; ap 3076 fs/xfs/libxfs/xfs_bmap.c adjust = ap->offset - ap 3077 fs/xfs/libxfs/xfs_bmap.c (ap->prev.br_startoff + ap->prev.br_blockcount); ap 3079 fs/xfs/libxfs/xfs_bmap.c ISVALID(ap->blkno + adjust, ap->prev.br_startblock)) ap 3080 fs/xfs/libxfs/xfs_bmap.c ap->blkno += adjust; ap 3087 fs/xfs/libxfs/xfs_bmap.c else if (!ap->eof) { ap 3097 fs/xfs/libxfs/xfs_bmap.c if (ap->prev.br_startoff != NULLFILEOFF && ap 3098 fs/xfs/libxfs/xfs_bmap.c !isnullstartblock(ap->prev.br_startblock) && ap 3099 fs/xfs/libxfs/xfs_bmap.c (prevbno = ap->prev.br_startblock + ap 3100 fs/xfs/libxfs/xfs_bmap.c ap->prev.br_blockcount) && ap 3101 fs/xfs/libxfs/xfs_bmap.c ISVALID(prevbno, ap->prev.br_startblock)) { ap 3105 fs/xfs/libxfs/xfs_bmap.c adjust = prevdiff = ap->offset - ap 3106 fs/xfs/libxfs/xfs_bmap.c (ap->prev.br_startoff + ap 3107 fs/xfs/libxfs/xfs_bmap.c ap->prev.br_blockcount); ap 3116 fs/xfs/libxfs/xfs_bmap.c if (prevdiff <= XFS_ALLOC_GAP_UNITS * ap->length && ap 3118 fs/xfs/libxfs/xfs_bmap.c ap->prev.br_startblock)) ap 3139 fs/xfs/libxfs/xfs_bmap.c if (!isnullstartblock(ap->got.br_startblock)) { ap 3143 fs/xfs/libxfs/xfs_bmap.c adjust = gotdiff = ap->got.br_startoff - ap->offset; ap 3148 fs/xfs/libxfs/xfs_bmap.c gotbno = ap->got.br_startblock; ap 3156 fs/xfs/libxfs/xfs_bmap.c if (gotdiff <= XFS_ALLOC_GAP_UNITS * ap->length && ap 3159 fs/xfs/libxfs/xfs_bmap.c else if (ISVALID(gotbno - ap->length, gotbno)) { ap 3160 fs/xfs/libxfs/xfs_bmap.c gotbno -= ap->length; ap 3161 fs/xfs/libxfs/xfs_bmap.c gotdiff += adjust - ap->length; ap 3182 fs/xfs/libxfs/xfs_bmap.c ap->blkno = prevdiff <= gotdiff ? prevbno : gotbno; ap 3184 fs/xfs/libxfs/xfs_bmap.c ap->blkno = prevbno; ap 3186 fs/xfs/libxfs/xfs_bmap.c ap->blkno = gotbno; ap 3228 fs/xfs/libxfs/xfs_bmap.c struct xfs_bmalloca *ap, ap 3233 fs/xfs/libxfs/xfs_bmap.c if (notinit || *blen < ap->minlen) { ap 3238 fs/xfs/libxfs/xfs_bmap.c args->minlen = ap->minlen; ap 3256 fs/xfs/libxfs/xfs_bmap.c struct xfs_bmalloca *ap, ap 3260 fs/xfs/libxfs/xfs_bmap.c struct xfs_mount *mp = ap->ip->i_mount; ap 3266 fs/xfs/libxfs/xfs_bmap.c args->total = ap->total; ap 3284 fs/xfs/libxfs/xfs_bmap.c xfs_bmap_select_minlen(ap, args, blen, notinit); ap 3290 fs/xfs/libxfs/xfs_bmap.c struct xfs_bmalloca *ap, ap 3294 fs/xfs/libxfs/xfs_bmap.c struct xfs_mount *mp = ap->ip->i_mount; ap 3300 fs/xfs/libxfs/xfs_bmap.c args->total = ap->total; ap 3311 fs/xfs/libxfs/xfs_bmap.c error = xfs_filestream_new_ag(ap, &ag); ap 3322 fs/xfs/libxfs/xfs_bmap.c xfs_bmap_select_minlen(ap, args, blen, notinit); ap 3328 fs/xfs/libxfs/xfs_bmap.c ap->blkno = args->fsbno = XFS_AGB_TO_FSB(mp, ag, 0); ap 3335 fs/xfs/libxfs/xfs_bmap.c struct xfs_bmalloca *ap, ap 3338 fs/xfs/libxfs/xfs_bmap.c if (ap->flags & XFS_BMAPI_COWFORK) { ap 3348 fs/xfs/libxfs/xfs_bmap.c if (ap->wasdel) { ap 3349 fs/xfs/libxfs/xfs_bmap.c xfs_mod_delalloc(ap->ip->i_mount, -(int64_t)args->len); ap 3361 fs/xfs/libxfs/xfs_bmap.c ap->ip->i_delayed_blks += args->len; ap 3362 fs/xfs/libxfs/xfs_bmap.c xfs_trans_mod_dquot_byino(ap->tp, ap->ip, XFS_TRANS_DQ_RES_BLKS, ap 3368 fs/xfs/libxfs/xfs_bmap.c ap->ip->i_d.di_nblocks += args->len; ap 3369 fs/xfs/libxfs/xfs_bmap.c xfs_trans_log_inode(ap->tp, ap->ip, XFS_ILOG_CORE); ap 3370 fs/xfs/libxfs/xfs_bmap.c if (ap->wasdel) { ap 3371 fs/xfs/libxfs/xfs_bmap.c ap->ip->i_delayed_blks -= args->len; ap 3372 fs/xfs/libxfs/xfs_bmap.c xfs_mod_delalloc(ap->ip->i_mount, -(int64_t)args->len); ap 3374 fs/xfs/libxfs/xfs_bmap.c xfs_trans_mod_dquot_byino(ap->tp, ap->ip, ap 3375 fs/xfs/libxfs/xfs_bmap.c ap->wasdel ? XFS_TRANS_DQ_DELBCOUNT : XFS_TRANS_DQ_BCOUNT, ap 3381 fs/xfs/libxfs/xfs_bmap.c struct xfs_bmalloca *ap) /* bmap alloc argument struct */ ap 3399 fs/xfs/libxfs/xfs_bmap.c ASSERT(ap->length); ap 3400 fs/xfs/libxfs/xfs_bmap.c orig_offset = ap->offset; ap 3401 fs/xfs/libxfs/xfs_bmap.c orig_length = ap->length; ap 3403 fs/xfs/libxfs/xfs_bmap.c mp = ap->ip->i_mount; ap 3412 fs/xfs/libxfs/xfs_bmap.c if (ap->flags & XFS_BMAPI_COWFORK) ap 3413 fs/xfs/libxfs/xfs_bmap.c align = xfs_get_cowextsz_hint(ap->ip); ap 3414 fs/xfs/libxfs/xfs_bmap.c else if (xfs_alloc_is_userdata(ap->datatype)) ap 3415 fs/xfs/libxfs/xfs_bmap.c align = xfs_get_extsz_hint(ap->ip); ap 3417 fs/xfs/libxfs/xfs_bmap.c error = xfs_bmap_extsize_align(mp, &ap->got, &ap->prev, ap 3418 fs/xfs/libxfs/xfs_bmap.c align, 0, ap->eof, 0, ap->conv, ap 3419 fs/xfs/libxfs/xfs_bmap.c &ap->offset, &ap->length); ap 3421 fs/xfs/libxfs/xfs_bmap.c ASSERT(ap->length); ap 3425 fs/xfs/libxfs/xfs_bmap.c nullfb = ap->tp->t_firstblock == NULLFSBLOCK; ap 3427 fs/xfs/libxfs/xfs_bmap.c ap->tp->t_firstblock); ap 3429 fs/xfs/libxfs/xfs_bmap.c if (xfs_alloc_is_userdata(ap->datatype) && ap 3430 fs/xfs/libxfs/xfs_bmap.c xfs_inode_is_filestream(ap->ip)) { ap 3431 fs/xfs/libxfs/xfs_bmap.c ag = xfs_filestream_lookup_ag(ap->ip); ap 3433 fs/xfs/libxfs/xfs_bmap.c ap->blkno = XFS_AGB_TO_FSB(mp, ag, 0); ap 3435 fs/xfs/libxfs/xfs_bmap.c ap->blkno = XFS_INO_TO_FSB(mp, ap->ip->i_ino); ap 3438 fs/xfs/libxfs/xfs_bmap.c ap->blkno = ap->tp->t_firstblock; ap 3440 fs/xfs/libxfs/xfs_bmap.c xfs_bmap_adjacent(ap); ap 3446 fs/xfs/libxfs/xfs_bmap.c if (nullfb || XFS_FSB_TO_AGNO(mp, ap->blkno) == fb_agno) ap 3449 fs/xfs/libxfs/xfs_bmap.c ap->blkno = ap->tp->t_firstblock; ap 3455 fs/xfs/libxfs/xfs_bmap.c args.tp = ap->tp; ap 3457 fs/xfs/libxfs/xfs_bmap.c args.fsbno = ap->blkno; ap 3461 fs/xfs/libxfs/xfs_bmap.c args.maxlen = min(ap->length, mp->m_ag_max_usable); ap 3469 fs/xfs/libxfs/xfs_bmap.c if (xfs_alloc_is_userdata(ap->datatype) && ap 3470 fs/xfs/libxfs/xfs_bmap.c xfs_inode_is_filestream(ap->ip)) ap 3471 fs/xfs/libxfs/xfs_bmap.c error = xfs_bmap_btalloc_filestreams(ap, &args, &blen); ap 3473 fs/xfs/libxfs/xfs_bmap.c error = xfs_bmap_btalloc_nullfb(ap, &args, &blen); ap 3476 fs/xfs/libxfs/xfs_bmap.c } else if (ap->tp->t_flags & XFS_TRANS_LOWMODE) { ap 3477 fs/xfs/libxfs/xfs_bmap.c if (xfs_inode_is_filestream(ap->ip)) ap 3481 fs/xfs/libxfs/xfs_bmap.c args.total = args.minlen = ap->minlen; ap 3484 fs/xfs/libxfs/xfs_bmap.c args.total = ap->total; ap 3485 fs/xfs/libxfs/xfs_bmap.c args.minlen = ap->minlen; ap 3490 fs/xfs/libxfs/xfs_bmap.c div_u64_rem(ap->offset, args.prod, &args.mod); ap 3498 fs/xfs/libxfs/xfs_bmap.c div_u64_rem(ap->offset, args.prod, &args.mod); ap 3511 fs/xfs/libxfs/xfs_bmap.c if (!(ap->tp->t_flags & XFS_TRANS_LOWMODE) && ap->aeof) { ap 3512 fs/xfs/libxfs/xfs_bmap.c if (!ap->offset) { ap 3553 fs/xfs/libxfs/xfs_bmap.c args.minleft = ap->minleft; ap 3554 fs/xfs/libxfs/xfs_bmap.c args.wasdel = ap->wasdel; ap 3556 fs/xfs/libxfs/xfs_bmap.c args.datatype = ap->datatype; ap 3557 fs/xfs/libxfs/xfs_bmap.c if (ap->datatype & XFS_ALLOC_USERDATA_ZERO) ap 3558 fs/xfs/libxfs/xfs_bmap.c args.ip = ap->ip; ap 3570 fs/xfs/libxfs/xfs_bmap.c args.fsbno = ap->blkno; ap 3584 fs/xfs/libxfs/xfs_bmap.c args.fsbno = ap->blkno; ap 3590 fs/xfs/libxfs/xfs_bmap.c args.minlen > ap->minlen) { ap 3591 fs/xfs/libxfs/xfs_bmap.c args.minlen = ap->minlen; ap 3593 fs/xfs/libxfs/xfs_bmap.c args.fsbno = ap->blkno; ap 3600 fs/xfs/libxfs/xfs_bmap.c args.total = ap->minlen; ap 3603 fs/xfs/libxfs/xfs_bmap.c ap->tp->t_flags |= XFS_TRANS_LOWMODE; ap 3610 fs/xfs/libxfs/xfs_bmap.c ASSERT(ap->tp->t_firstblock == NULLFSBLOCK || ap 3611 fs/xfs/libxfs/xfs_bmap.c XFS_FSB_TO_AGNO(mp, ap->tp->t_firstblock) <= ap 3614 fs/xfs/libxfs/xfs_bmap.c ap->blkno = args.fsbno; ap 3615 fs/xfs/libxfs/xfs_bmap.c if (ap->tp->t_firstblock == NULLFSBLOCK) ap 3616 fs/xfs/libxfs/xfs_bmap.c ap->tp->t_firstblock = args.fsbno; ap 3618 fs/xfs/libxfs/xfs_bmap.c ap->length = args.len; ap 3631 fs/xfs/libxfs/xfs_bmap.c if (ap->length <= orig_length) ap 3632 fs/xfs/libxfs/xfs_bmap.c ap->offset = orig_offset; ap 3633 fs/xfs/libxfs/xfs_bmap.c else if (ap->offset + ap->length < orig_offset + orig_length) ap 3634 fs/xfs/libxfs/xfs_bmap.c ap->offset = orig_offset + orig_length - ap->length; ap 3635 fs/xfs/libxfs/xfs_bmap.c xfs_bmap_btalloc_accounting(ap, &args); ap 3637 fs/xfs/libxfs/xfs_bmap.c ap->blkno = NULLFSBLOCK; ap 3638 fs/xfs/libxfs/xfs_bmap.c ap->length = 0; ap 3649 fs/xfs/libxfs/xfs_bmap.c struct xfs_bmalloca *ap) /* bmap alloc argument struct */ ap 3651 fs/xfs/libxfs/xfs_bmap.c if (XFS_IS_REALTIME_INODE(ap->ip) && ap 3652 fs/xfs/libxfs/xfs_bmap.c xfs_alloc_is_userdata(ap->datatype)) ap 3653 fs/xfs/libxfs/xfs_bmap.c return xfs_bmap_rtalloc(ap); ap 3654 fs/xfs/libxfs/xfs_bmap.c return xfs_bmap_btalloc(ap); ap 69 fs/xfs/scrub/bitmap.c struct xfs_bitmap_range *ap; ap 72 fs/xfs/scrub/bitmap.c ap = container_of(a, struct xfs_bitmap_range, list); ap 75 fs/xfs/scrub/bitmap.c if (ap->start > bp->start) ap 77 fs/xfs/scrub/bitmap.c if (ap->start < bp->start) ap 73 fs/xfs/xfs_bmap_util.c struct xfs_bmalloca *ap) /* bmap alloc argument struct */ ap 83 fs/xfs/xfs_bmap_util.c mp = ap->ip->i_mount; ap 84 fs/xfs/xfs_bmap_util.c align = xfs_get_extsz_hint(ap->ip); ap 86 fs/xfs/xfs_bmap_util.c error = xfs_bmap_extsize_align(mp, &ap->got, &ap->prev, ap 87 fs/xfs/xfs_bmap_util.c align, 1, ap->eof, 0, ap 88 fs/xfs/xfs_bmap_util.c ap->conv, &ap->offset, &ap->length); ap 91 fs/xfs/xfs_bmap_util.c ASSERT(ap->length); ap 92 fs/xfs/xfs_bmap_util.c ASSERT(ap->length % mp->m_sb.sb_rextsize == 0); ap 98 fs/xfs/xfs_bmap_util.c div_u64_rem(ap->offset, align, &mod); ap 99 fs/xfs/xfs_bmap_util.c if (mod || ap->length % align) ap 104 fs/xfs/xfs_bmap_util.c ralen = ap->length / mp->m_sb.sb_rextsize; ap 119 fs/xfs/xfs_bmap_util.c xfs_trans_ijoin(ap->tp, mp->m_rbmip, XFS_ILOCK_EXCL); ap 121 fs/xfs/xfs_bmap_util.c xfs_trans_ijoin(ap->tp, mp->m_rsumip, XFS_ILOCK_EXCL); ap 127 fs/xfs/xfs_bmap_util.c if (ap->eof && ap->offset == 0) { ap 130 fs/xfs/xfs_bmap_util.c error = xfs_rtpick_extent(mp, ap->tp, ralen, &rtx); ap 133 fs/xfs/xfs_bmap_util.c ap->blkno = rtx * mp->m_sb.sb_rextsize; ap 135 fs/xfs/xfs_bmap_util.c ap->blkno = 0; ap 138 fs/xfs/xfs_bmap_util.c xfs_bmap_adjacent(ap); ap 143 fs/xfs/xfs_bmap_util.c do_div(ap->blkno, mp->m_sb.sb_rextsize); ap 144 fs/xfs/xfs_bmap_util.c rtb = ap->blkno; ap 145 fs/xfs/xfs_bmap_util.c ap->length = ralen; ap 146 fs/xfs/xfs_bmap_util.c error = xfs_rtallocate_extent(ap->tp, ap->blkno, 1, ap->length, ap 147 fs/xfs/xfs_bmap_util.c &ralen, ap->wasdel, prod, &rtb); ap 151 fs/xfs/xfs_bmap_util.c ap->blkno = rtb; ap 152 fs/xfs/xfs_bmap_util.c if (ap->blkno != NULLFSBLOCK) { ap 153 fs/xfs/xfs_bmap_util.c ap->blkno *= mp->m_sb.sb_rextsize; ap 155 fs/xfs/xfs_bmap_util.c ap->length = ralen; ap 156 fs/xfs/xfs_bmap_util.c ap->ip->i_d.di_nblocks += ralen; ap 157 fs/xfs/xfs_bmap_util.c xfs_trans_log_inode(ap->tp, ap->ip, XFS_ILOG_CORE); ap 158 fs/xfs/xfs_bmap_util.c if (ap->wasdel) ap 159 fs/xfs/xfs_bmap_util.c ap->ip->i_delayed_blks -= ralen; ap 164 fs/xfs/xfs_bmap_util.c xfs_trans_mod_dquot_byino(ap->tp, ap->ip, ap 165 fs/xfs/xfs_bmap_util.c ap->wasdel ? XFS_TRANS_DQ_DELRTBCOUNT : ap 169 fs/xfs/xfs_bmap_util.c if (ap->datatype & XFS_ALLOC_USERDATA_ZERO) { ap 170 fs/xfs/xfs_bmap_util.c error = xfs_zero_extent(ap->ip, ap->blkno, ap->length); ap 175 fs/xfs/xfs_bmap_util.c ap->length = 0; ap 20 fs/xfs/xfs_bmap_util.h int xfs_bmap_rtalloc(struct xfs_bmalloca *ap); ap 27 fs/xfs/xfs_bmap_util.h xfs_bmap_rtalloc(struct xfs_bmalloca *ap) ap 52 fs/xfs/xfs_bmap_util.h void xfs_bmap_adjacent(struct xfs_bmalloca *ap); ap 1869 fs/xfs/xfs_buf.c struct xfs_buf *ap = container_of(a, struct xfs_buf, b_list); ap 1873 fs/xfs/xfs_buf.c diff = ap->b_maps[0].bm_bn - bp->b_maps[0].bm_bn; ap 353 fs/xfs/xfs_filestream.c struct xfs_bmalloca *ap, ap 356 fs/xfs/xfs_filestream.c struct xfs_inode *ip = ap->ip, *pip; ap 358 fs/xfs/xfs_filestream.c xfs_extlen_t minlen = ap->length; ap 377 fs/xfs/xfs_filestream.c if (xfs_alloc_is_userdata(ap->datatype)) ap 379 fs/xfs/xfs_filestream.c if (ap->tp->t_flags & XFS_TRANS_LOWMODE) ap 17 fs/xfs/xfs_filestream.h int xfs_filestream_new_ag(struct xfs_bmalloca *ap, xfs_agnumber_t *agp); ap 914 include/linux/device.h va_list ap) __malloc; ap 799 include/linux/kernel.h __ftrace_vbprintk(unsigned long ip, const char *fmt, va_list ap); ap 802 include/linux/kernel.h __ftrace_vprintk(unsigned long ip, const char *fmt, va_list ap); ap 822 include/linux/kernel.h ftrace_vprintk(const char *fmt, va_list ap) ap 23 include/linux/kernelcapi.h void (*recv_message)(struct capi20_appl *ap, struct sk_buff *skb); ap 38 include/linux/kernelcapi.h u16 capi20_register(struct capi20_appl *ap); ap 39 include/linux/kernelcapi.h u16 capi20_release(struct capi20_appl *ap); ap 40 include/linux/kernelcapi.h u16 capi20_put_message(struct capi20_appl *ap, struct sk_buff *skb); ap 60 include/linux/libata.h #define BPRINTK(fmt, args...) if (ap->flags & ATA_FLAG_DEBUGMSG) printk(KERN_ERR "%s: " fmt, __func__, ## args) ap 614 include/linux/libata.h struct ata_port *ap; ap 780 include/linux/libata.h struct ata_port *ap; ap 903 include/linux/libata.h int (*cable_detect)(struct ata_port *ap); ap 905 include/linux/libata.h void (*set_piomode)(struct ata_port *ap, struct ata_device *dev); ap 906 include/linux/libata.h void (*set_dmamode)(struct ata_port *ap, struct ata_device *dev); ap 912 include/linux/libata.h void (*freeze)(struct ata_port *ap); ap 913 include/linux/libata.h void (*thaw)(struct ata_port *ap); ap 922 include/linux/libata.h void (*error_handler)(struct ata_port *ap); ap 923 include/linux/libata.h void (*lost_interrupt)(struct ata_port *ap); ap 925 include/linux/libata.h void (*sched_eh)(struct ata_port *ap); ap 926 include/linux/libata.h void (*end_eh)(struct ata_port *ap); ap 933 include/linux/libata.h void (*pmp_attach)(struct ata_port *ap); ap 934 include/linux/libata.h void (*pmp_detach)(struct ata_port *ap); ap 941 include/linux/libata.h int (*port_suspend)(struct ata_port *ap, pm_message_t mesg); ap 942 include/linux/libata.h int (*port_resume)(struct ata_port *ap); ap 943 include/linux/libata.h int (*port_start)(struct ata_port *ap); ap 944 include/linux/libata.h void (*port_stop)(struct ata_port *ap); ap 951 include/linux/libata.h void (*sff_dev_select)(struct ata_port *ap, unsigned int device); ap 952 include/linux/libata.h void (*sff_set_devctl)(struct ata_port *ap, u8 ctl); ap 953 include/linux/libata.h u8 (*sff_check_status)(struct ata_port *ap); ap 954 include/linux/libata.h u8 (*sff_check_altstatus)(struct ata_port *ap); ap 955 include/linux/libata.h void (*sff_tf_load)(struct ata_port *ap, const struct ata_taskfile *tf); ap 956 include/linux/libata.h void (*sff_tf_read)(struct ata_port *ap, struct ata_taskfile *tf); ap 957 include/linux/libata.h void (*sff_exec_command)(struct ata_port *ap, ap 970 include/linux/libata.h u8 (*bmdma_status)(struct ata_port *ap); ap 974 include/linux/libata.h ssize_t (*em_show)(struct ata_port *ap, char *buf); ap 975 include/linux/libata.h ssize_t (*em_store)(struct ata_port *ap, const char *message, ap 980 include/linux/libata.h ssize_t (*transmit_led_message)(struct ata_port *ap, u32 state, ap 986 include/linux/libata.h void (*phy_reset)(struct ata_port *ap); ap 987 include/linux/libata.h void (*eng_timeout)(struct ata_port *ap); ap 1072 include/linux/libata.h static inline int ata_port_is_dummy(struct ata_port *ap) ap 1074 include/linux/libata.h return ap->ops == &ata_dummy_port_ops; ap 1097 include/linux/libata.h extern int ata_slave_link_init(struct ata_port *ap); ap 1112 include/linux/libata.h extern int ata_sas_scsi_ioctl(struct ata_port *ap, struct scsi_device *dev, ap 1117 include/linux/libata.h extern void ata_sas_async_probe(struct ata_port *ap); ap 1118 include/linux/libata.h extern int ata_sas_sync_probe(struct ata_port *ap); ap 1120 include/linux/libata.h extern int ata_sas_port_start(struct ata_port *ap); ap 1121 include/linux/libata.h extern int ata_sas_tport_add(struct device *parent, struct ata_port *ap); ap 1122 include/linux/libata.h extern void ata_sas_tport_delete(struct ata_port *ap); ap 1123 include/linux/libata.h extern void ata_sas_port_stop(struct ata_port *ap); ap 1125 include/linux/libata.h extern int ata_sas_queuecmd(struct scsi_cmnd *cmd, struct ata_port *ap); ap 1135 include/linux/libata.h extern void ata_sas_port_suspend(struct ata_port *ap); ap 1136 include/linux/libata.h extern void ata_sas_port_resume(struct ata_port *ap); ap 1138 include/linux/libata.h static inline void ata_sas_port_suspend(struct ata_port *ap) ap 1141 include/linux/libata.h static inline void ata_sas_port_resume(struct ata_port *ap) ap 1146 include/linux/libata.h extern void ata_msleep(struct ata_port *ap, unsigned int msecs); ap 1147 include/linux/libata.h extern u32 ata_wait_register(struct ata_port *ap, void __iomem *reg, u32 mask, ap 1176 include/linux/libata.h extern int ata_qc_complete_multiple(struct ata_port *ap, u64 qc_active); ap 1177 include/linux/libata.h extern u64 ata_qc_get_active(struct ata_port *ap); ap 1187 include/linux/libata.h extern int __ata_change_queue_depth(struct ata_port *ap, struct scsi_device *sdev, ap 1191 include/linux/libata.h extern void ata_scsi_port_error_handler(struct Scsi_Host *host, struct ata_port *ap); ap 1192 include/linux/libata.h extern void ata_scsi_cmd_error_handler(struct Scsi_Host *host, struct ata_port *ap, struct list_head *eh_q); ap 1195 include/linux/libata.h extern int ata_cable_40wire(struct ata_port *ap); ap 1196 include/linux/libata.h extern int ata_cable_80wire(struct ata_port *ap); ap 1197 include/linux/libata.h extern int ata_cable_sata(struct ata_port *ap); ap 1198 include/linux/libata.h extern int ata_cable_ignore(struct ata_port *ap); ap 1199 include/linux/libata.h extern int ata_cable_unknown(struct ata_port *ap); ap 1242 include/linux/libata.h static inline const struct ata_acpi_gtm *ata_acpi_init_gtm(struct ata_port *ap) ap 1244 include/linux/libata.h if (ap->pflags & ATA_PFLAG_INIT_GTM_VALID) ap 1245 include/linux/libata.h return &ap->__acpi_init_gtm; ap 1248 include/linux/libata.h int ata_acpi_stm(struct ata_port *ap, const struct ata_acpi_gtm *stm); ap 1249 include/linux/libata.h int ata_acpi_gtm(struct ata_port *ap, struct ata_acpi_gtm *stm); ap 1252 include/linux/libata.h int ata_acpi_cbl_80wire(struct ata_port *ap, const struct ata_acpi_gtm *gtm); ap 1254 include/linux/libata.h static inline const struct ata_acpi_gtm *ata_acpi_init_gtm(struct ata_port *ap) ap 1259 include/linux/libata.h static inline int ata_acpi_stm(const struct ata_port *ap, ap 1265 include/linux/libata.h static inline int ata_acpi_gtm(const struct ata_port *ap, ap 1277 include/linux/libata.h static inline int ata_acpi_cbl_80wire(struct ata_port *ap, ap 1287 include/linux/libata.h extern void ata_port_schedule_eh(struct ata_port *ap); ap 1288 include/linux/libata.h extern void ata_port_wait_eh(struct ata_port *ap); ap 1290 include/linux/libata.h extern int ata_port_abort(struct ata_port *ap); ap 1291 include/linux/libata.h extern int ata_port_freeze(struct ata_port *ap); ap 1292 include/linux/libata.h extern int sata_async_notification(struct ata_port *ap); ap 1294 include/linux/libata.h extern void ata_eh_freeze_port(struct ata_port *ap); ap 1295 include/linux/libata.h extern void ata_eh_thaw_port(struct ata_port *ap); ap 1301 include/linux/libata.h extern void ata_do_eh(struct ata_port *ap, ata_prereset_fn_t prereset, ap 1304 include/linux/libata.h extern void ata_std_error_handler(struct ata_port *ap); ap 1305 include/linux/libata.h extern void ata_std_sched_eh(struct ata_port *ap); ap 1306 include/linux/libata.h extern void ata_std_end_eh(struct ata_port *ap); ap 1364 include/linux/libata.h static inline bool sata_pmp_supported(struct ata_port *ap) ap 1366 include/linux/libata.h return ap->flags & ATA_FLAG_PMP; ap 1369 include/linux/libata.h static inline bool sata_pmp_attached(struct ata_port *ap) ap 1371 include/linux/libata.h return ap->nr_pmp_links != 0; ap 1376 include/linux/libata.h return link == &link->ap->link || link == link->ap->slave_link; ap 1379 include/linux/libata.h static inline bool sata_pmp_supported(struct ata_port *ap) ap 1384 include/linux/libata.h static inline bool sata_pmp_attached(struct ata_port *ap) ap 1397 include/linux/libata.h if (sata_pmp_supported(link->ap) && ata_is_host_link(link)) ap 1406 include/linux/libata.h void ata_port_printk(const struct ata_port *ap, const char *level, ap 1415 include/linux/libata.h #define ata_port_err(ap, fmt, ...) \ ap 1416 include/linux/libata.h ata_port_printk(ap, KERN_ERR, fmt, ##__VA_ARGS__) ap 1417 include/linux/libata.h #define ata_port_warn(ap, fmt, ...) \ ap 1418 include/linux/libata.h ata_port_printk(ap, KERN_WARNING, fmt, ##__VA_ARGS__) ap 1419 include/linux/libata.h #define ata_port_notice(ap, fmt, ...) \ ap 1420 include/linux/libata.h ata_port_printk(ap, KERN_NOTICE, fmt, ##__VA_ARGS__) ap 1421 include/linux/libata.h #define ata_port_info(ap, fmt, ...) \ ap 1422 include/linux/libata.h ata_port_printk(ap, KERN_INFO, fmt, ##__VA_ARGS__) ap 1423 include/linux/libata.h #define ata_port_dbg(ap, fmt, ...) \ ap 1424 include/linux/libata.h ata_port_printk(ap, KERN_DEBUG, fmt, ##__VA_ARGS__) ap 1471 include/linux/libata.h void ata_port_desc(struct ata_port *ap, const char *fmt, ...); ap 1473 include/linux/libata.h extern void ata_port_pbar_desc(struct ata_port *ap, int bar, ssize_t offset, ap 1487 include/linux/libata.h #define __ata_qc_for_each(ap, qc, tag, max_tag, fn) \ ap 1489 include/linux/libata.h ({ qc = fn((ap), (tag)); 1; }); (tag)++) \ ap 1495 include/linux/libata.h #define ata_qc_for_each_raw(ap, qc, tag) \ ap 1496 include/linux/libata.h __ata_qc_for_each(ap, qc, tag, ATA_MAX_QUEUE, __ata_qc_from_tag) ap 1501 include/linux/libata.h #define ata_qc_for_each(ap, qc, tag) \ ap 1502 include/linux/libata.h __ata_qc_for_each(ap, qc, tag, ATA_MAX_QUEUE, ata_qc_from_tag) ap 1507 include/linux/libata.h #define ata_qc_for_each_with_internal(ap, qc, tag) \ ap 1508 include/linux/libata.h __ata_qc_for_each(ap, qc, tag, ATA_MAX_QUEUE + 1, ata_qc_from_tag) ap 1552 include/linux/libata.h if (ata_is_host_link(link) && link->ap->flags & ATA_FLAG_SLAVE_POSS) ap 1590 include/linux/libata.h struct ata_port *ap, ap 1611 include/linux/libata.h #define ata_for_each_link(link, ap, mode) \ ap 1612 include/linux/libata.h for ((link) = ata_link_next(NULL, (ap), ATA_LITER_##mode); (link); \ ap 1613 include/linux/libata.h (link) = ata_link_next((link), (ap), ATA_LITER_##mode)) ap 1667 include/linux/libata.h static inline struct ata_queued_cmd *__ata_qc_from_tag(struct ata_port *ap, ap 1671 include/linux/libata.h return &ap->qcmd[tag]; ap 1675 include/linux/libata.h static inline struct ata_queued_cmd *ata_qc_from_tag(struct ata_port *ap, ap 1678 include/linux/libata.h struct ata_queued_cmd *qc = __ata_qc_from_tag(ap, tag); ap 1680 include/linux/libata.h if (unlikely(!qc) || !ap->ops->error_handler) ap 1700 include/linux/libata.h tf->ctl = dev->link->ap->ctl; ap 1807 include/linux/libata.h extern void sata_pmp_error_handler(struct ata_port *ap); ap 1832 include/linux/libata.h extern void ata_sff_dev_select(struct ata_port *ap, unsigned int device); ap 1833 include/linux/libata.h extern u8 ata_sff_check_status(struct ata_port *ap); ap 1834 include/linux/libata.h extern void ata_sff_pause(struct ata_port *ap); ap 1835 include/linux/libata.h extern void ata_sff_dma_pause(struct ata_port *ap); ap 1836 include/linux/libata.h extern int ata_sff_busy_sleep(struct ata_port *ap, ap 1839 include/linux/libata.h extern void ata_sff_tf_load(struct ata_port *ap, const struct ata_taskfile *tf); ap 1840 include/linux/libata.h extern void ata_sff_tf_read(struct ata_port *ap, struct ata_taskfile *tf); ap 1841 include/linux/libata.h extern void ata_sff_exec_command(struct ata_port *ap, ap 1847 include/linux/libata.h extern void ata_sff_irq_on(struct ata_port *ap); ap 1848 include/linux/libata.h extern void ata_sff_irq_clear(struct ata_port *ap); ap 1849 include/linux/libata.h extern int ata_sff_hsm_move(struct ata_port *ap, struct ata_queued_cmd *qc, ap 1857 include/linux/libata.h extern unsigned int ata_sff_port_intr(struct ata_port *ap, ap 1860 include/linux/libata.h extern void ata_sff_lost_interrupt(struct ata_port *ap); ap 1861 include/linux/libata.h extern void ata_sff_freeze(struct ata_port *ap); ap 1862 include/linux/libata.h extern void ata_sff_thaw(struct ata_port *ap); ap 1874 include/linux/libata.h extern void ata_sff_error_handler(struct ata_port *ap); ap 1901 include/linux/libata.h extern unsigned int ata_bmdma_port_intr(struct ata_port *ap, ap 1904 include/linux/libata.h extern void ata_bmdma_error_handler(struct ata_port *ap); ap 1906 include/linux/libata.h extern void ata_bmdma_irq_clear(struct ata_port *ap); ap 1910 include/linux/libata.h extern u8 ata_bmdma_status(struct ata_port *ap); ap 1911 include/linux/libata.h extern int ata_bmdma_port_start(struct ata_port *ap); ap 1912 include/linux/libata.h extern int ata_bmdma_port_start32(struct ata_port *ap); ap 1940 include/linux/libata.h static inline u8 ata_sff_busy_wait(struct ata_port *ap, unsigned int bits, ap 1947 include/linux/libata.h status = ap->ops->sff_check_status(ap); ap 1964 include/linux/libata.h static inline u8 ata_wait_idle(struct ata_port *ap) ap 1966 include/linux/libata.h u8 status = ata_sff_busy_wait(ap, ATA_BUSY | ATA_DRQ, 1000); ap 1970 include/linux/libata.h ata_port_printk(ap, KERN_DEBUG, "abnormal Status 0x%X\n", ap 377 include/net/ax25.h void ax25_register_pid(struct ax25_protocol *ap); ap 214 include/net/regulatory.h struct ieee80211_wmm_ac ap[IEEE80211_NUM_ACS]; ap 146 include/scsi/libsas.h struct ata_port *ap; ap 420 include/scsi/libsas.h return &dev->sata_dev.ap->link.device[0]; ap 35 include/scsi/sas_ata.h void sas_ata_end_eh(struct ata_port *ap); ap 85 include/scsi/sas_ata.h static inline void sas_ata_end_eh(struct ata_port *ap) ap 179 include/trace/events/libata.h __entry->ata_port = qc->ap->print_id; ap 237 include/trace/events/libata.h __entry->ata_port = qc->ap->print_id; ap 292 include/trace/events/libata.h __entry->ata_port = dev->link->ap->print_id; ap 319 include/trace/events/libata.h __entry->ata_port = qc->ap->print_id; ap 555 kernel/debug/kdb/kdb_io.c int vkdb_printf(enum kdb_msgsrc src, const char *fmt, va_list ap) ap 600 kernel/debug/kdb/kdb_io.c vsnprintf(next_avail, size_avail, fmt, ap); ap 857 kernel/debug/kdb/kdb_io.c va_list ap; ap 860 kernel/debug/kdb/kdb_io.c va_start(ap, fmt); ap 861 kernel/debug/kdb/kdb_io.c r = vkdb_printf(KDB_MSGSRC_INTERNAL, fmt, ap); ap 862 kernel/debug/kdb/kdb_io.c va_end(ap); ap 356 kernel/kprobes.c static inline void copy_kprobe(struct kprobe *ap, struct kprobe *p) ap 358 kernel/kprobes.c memcpy(&p->opcode, &ap->opcode, sizeof(kprobe_opcode_t)); ap 359 kernel/kprobes.c memcpy(&p->ainsn, &ap->ainsn, sizeof(struct arch_specific_insn)); ap 717 kernel/kprobes.c static int reuse_unused_kprobe(struct kprobe *ap) ap 725 kernel/kprobes.c op = container_of(ap, struct optimized_kprobe, kp); ap 728 kernel/kprobes.c ap->flags &= ~KPROBE_FLAG_DISABLED; ap 730 kernel/kprobes.c if (!kprobe_optready(ap)) ap 733 kernel/kprobes.c optimize_kprobe(ap); ap 795 kernel/kprobes.c static void init_aggr_kprobe(struct kprobe *ap, struct kprobe *p); ap 803 kernel/kprobes.c struct kprobe *ap; ap 815 kernel/kprobes.c ap = alloc_aggr_kprobe(p); ap 816 kernel/kprobes.c if (!ap) ap 819 kernel/kprobes.c op = container_of(ap, struct optimized_kprobe, kp); ap 827 kernel/kprobes.c init_aggr_kprobe(ap, p); ap 828 kernel/kprobes.c optimize_kprobe(ap); /* This just kicks optimizer thread */ ap 959 kernel/kprobes.c static int reuse_unused_kprobe(struct kprobe *ap) ap 1305 kernel/kprobes.c static int add_new_kprobe(struct kprobe *ap, struct kprobe *p) ap 1308 kernel/kprobes.c unoptimize_kprobe(ap, true); /* Fall back to normal kprobe */ ap 1310 kernel/kprobes.c list_add_rcu(&p->list, &ap->list); ap 1311 kernel/kprobes.c if (p->post_handler && !ap->post_handler) ap 1312 kernel/kprobes.c ap->post_handler = aggr_post_handler; ap 1321 kernel/kprobes.c static void init_aggr_kprobe(struct kprobe *ap, struct kprobe *p) ap 1324 kernel/kprobes.c copy_kprobe(p, ap); ap 1325 kernel/kprobes.c flush_insn_slot(ap); ap 1326 kernel/kprobes.c ap->addr = p->addr; ap 1327 kernel/kprobes.c ap->flags = p->flags & ~KPROBE_FLAG_OPTIMIZED; ap 1328 kernel/kprobes.c ap->pre_handler = aggr_pre_handler; ap 1329 kernel/kprobes.c ap->fault_handler = aggr_fault_handler; ap 1332 kernel/kprobes.c ap->post_handler = aggr_post_handler; ap 1334 kernel/kprobes.c INIT_LIST_HEAD(&ap->list); ap 1335 kernel/kprobes.c INIT_HLIST_NODE(&ap->hlist); ap 1337 kernel/kprobes.c list_add_rcu(&p->list, &ap->list); ap 1338 kernel/kprobes.c hlist_replace_rcu(&p->hlist, &ap->hlist); ap 1348 kernel/kprobes.c struct kprobe *ap = orig_p; ap 1358 kernel/kprobes.c ap = alloc_aggr_kprobe(orig_p); ap 1359 kernel/kprobes.c if (!ap) { ap 1363 kernel/kprobes.c init_aggr_kprobe(ap, orig_p); ap 1364 kernel/kprobes.c } else if (kprobe_unused(ap)) { ap 1366 kernel/kprobes.c ret = reuse_unused_kprobe(ap); ap 1371 kernel/kprobes.c if (kprobe_gone(ap)) { ap 1378 kernel/kprobes.c ret = arch_prepare_kprobe(ap); ap 1388 kernel/kprobes.c prepare_optimized_kprobe(ap); ap 1394 kernel/kprobes.c ap->flags = (ap->flags & ~KPROBE_FLAG_GONE) ap 1399 kernel/kprobes.c copy_kprobe(ap, p); ap 1400 kernel/kprobes.c ret = add_new_kprobe(ap, p); ap 1407 kernel/kprobes.c if (ret == 0 && kprobe_disabled(ap) && !kprobe_disabled(p)) { ap 1408 kernel/kprobes.c ap->flags &= ~KPROBE_FLAG_DISABLED; ap 1411 kernel/kprobes.c ret = arm_kprobe(ap); ap 1413 kernel/kprobes.c ap->flags |= KPROBE_FLAG_DISABLED; ap 1500 kernel/kprobes.c struct kprobe *ap, *list_p; ap 1502 kernel/kprobes.c ap = get_kprobe(p->addr); ap 1503 kernel/kprobes.c if (unlikely(!ap)) ap 1506 kernel/kprobes.c if (p != ap) { ap 1507 kernel/kprobes.c list_for_each_entry_rcu(list_p, &ap->list, list) ap 1514 kernel/kprobes.c return ap; ap 1668 kernel/kprobes.c static int aggr_kprobe_disabled(struct kprobe *ap) ap 1672 kernel/kprobes.c list_for_each_entry_rcu(kp, &ap->list, list) ap 1725 kernel/kprobes.c struct kprobe *ap, *list_p; ap 1728 kernel/kprobes.c ap = __disable_kprobe(p); ap 1729 kernel/kprobes.c if (IS_ERR(ap)) ap 1730 kernel/kprobes.c return PTR_ERR(ap); ap 1732 kernel/kprobes.c if (ap == p) ap 1740 kernel/kprobes.c WARN_ON(!kprobe_aggrprobe(ap)); ap 1742 kernel/kprobes.c if (list_is_singular(&ap->list) && kprobe_disarmed(ap)) ap 1751 kernel/kprobes.c list_for_each_entry_rcu(list_p, &ap->list, list) { ap 1755 kernel/kprobes.c ap->post_handler = NULL; ap 1763 kernel/kprobes.c if (!kprobe_disabled(ap) && !kprobes_all_disarmed) ap 1768 kernel/kprobes.c optimize_kprobe(ap); ap 1773 kernel/kprobes.c hlist_del_rcu(&ap->hlist); ap 1779 kernel/kprobes.c struct kprobe *ap; ap 1786 kernel/kprobes.c ap = list_entry(p->list.next, struct kprobe, list); ap 1788 kernel/kprobes.c free_aggr_kprobe(ap); ap 2130 kernel/printk/printk.c va_list ap; ap 2137 kernel/printk/printk.c va_start(ap, fmt); ap 2138 kernel/printk/printk.c n = vscnprintf(buf, sizeof(buf), fmt, ap); ap 2139 kernel/printk/printk.c va_end(ap); ap 72 kernel/printk/printk_safe.c va_list ap; ap 91 kernel/printk/printk_safe.c va_copy(ap, args); ap 92 kernel/printk/printk_safe.c add = vscnprintf(s->buffer + len, sizeof(s->buffer) - len, fmt, ap); ap 93 kernel/printk/printk_safe.c va_end(ap); ap 3231 kernel/trace/trace.c va_list ap; ap 3236 kernel/trace/trace.c va_start(ap, fmt); ap 3237 kernel/trace/trace.c ret = trace_array_vprintk(tr, ip, fmt, ap); ap 3238 kernel/trace/trace.c va_end(ap); ap 3248 kernel/trace/trace.c va_list ap; ap 3253 kernel/trace/trace.c va_start(ap, fmt); ap 3254 kernel/trace/trace.c ret = __trace_array_vprintk(buffer, ip, fmt, ap); ap 3255 kernel/trace/trace.c va_end(ap); ap 301 kernel/trace/trace_output.c char *fmt, va_list ap) ap 306 kernel/trace/trace_output.c trace_seq_vprintf(s, fmt, ap); ap 313 kernel/trace/trace_output.c va_list ap; ap 316 kernel/trace/trace_output.c va_start(ap, fmt); ap 317 kernel/trace/trace_output.c ret = trace_output_raw(iter, name, fmt, ap); ap 318 kernel/trace/trace_output.c va_end(ap); ap 203 kernel/trace/trace_printk.c va_list ap; ap 211 kernel/trace/trace_printk.c va_start(ap, fmt); ap 212 kernel/trace/trace_printk.c ret = trace_vbprintk(ip, fmt, ap); ap 213 kernel/trace/trace_printk.c va_end(ap); ap 218 kernel/trace/trace_printk.c int __ftrace_vbprintk(unsigned long ip, const char *fmt, va_list ap) ap 226 kernel/trace/trace_printk.c return trace_vbprintk(ip, fmt, ap); ap 233 kernel/trace/trace_printk.c va_list ap; ap 238 kernel/trace/trace_printk.c va_start(ap, fmt); ap 239 kernel/trace/trace_printk.c ret = trace_vprintk(ip, fmt, ap); ap 240 kernel/trace/trace_printk.c va_end(ap); ap 245 kernel/trace/trace_printk.c int __ftrace_vprintk(unsigned long ip, const char *fmt, va_list ap) ap 250 kernel/trace/trace_printk.c return trace_vprintk(ip, fmt, ap); ap 87 kernel/trace/trace_seq.c va_list ap; ap 94 kernel/trace/trace_seq.c va_start(ap, fmt); ap 95 kernel/trace/trace_seq.c seq_buf_vprintf(&s->seq, fmt, ap); ap 96 kernel/trace/trace_seq.c va_end(ap); ap 15 lib/kasprintf.c char *kvasprintf(gfp_t gfp, const char *fmt, va_list ap) ap 21 lib/kasprintf.c va_copy(aq, ap); ap 29 lib/kasprintf.c second = vsnprintf(p, first+1, fmt, ap); ap 43 lib/kasprintf.c const char *kvasprintf_const(gfp_t gfp, const char *fmt, va_list ap) ap 48 lib/kasprintf.c return kstrdup_const(va_arg(ap, const char*), gfp); ap 49 lib/kasprintf.c return kvasprintf(gfp, fmt, ap); ap 55 lib/kasprintf.c va_list ap; ap 58 lib/kasprintf.c va_start(ap, fmt); ap 59 lib/kasprintf.c p = kvasprintf(gfp, fmt, ap); ap 60 lib/kasprintf.c va_end(ap); ap 98 lib/mpi/mpi-internal.h void mpi_assign_limb_space(MPI a, mpi_ptr_t ap, unsigned nlimbs); ap 75 lib/mpi/mpiutil.c void mpi_assign_limb_space(MPI a, mpi_ptr_t ap, unsigned nlimbs) ap 78 lib/mpi/mpiutil.c a->d = ap; ap 85 lib/seq_buf.c va_list ap; ap 88 lib/seq_buf.c va_start(ap, fmt); ap 89 lib/seq_buf.c ret = seq_buf_vprintf(s, fmt, ap); ap 90 lib/seq_buf.c va_end(ap); ap 38 lib/test_printf.c const char *fmt, va_list ap) ap 46 lib/test_printf.c va_copy(aq, ap); ap 94 lib/test_printf.c va_list ap; ap 105 lib/test_printf.c va_start(ap, fmt); ap 113 lib/test_printf.c failed_tests += do_test(BUF_SIZE, expect, elen, fmt, ap); ap 116 lib/test_printf.c failed_tests += do_test(rand, expect, elen, fmt, ap); ap 117 lib/test_printf.c failed_tests += do_test(0, expect, elen, fmt, ap); ap 119 lib/test_printf.c p = kvasprintf(GFP_KERNEL, fmt, ap); ap 129 lib/test_printf.c va_end(ap); ap 2316 mm/vmscan.c unsigned long ap, fp; ap 2446 mm/vmscan.c ap = anon_prio * (reclaim_stat->recent_scanned[0] + 1); ap 2447 mm/vmscan.c ap /= reclaim_stat->recent_rotated[0] + 1; ap 2453 mm/vmscan.c fraction[0] = ap; ap 2455 mm/vmscan.c denominator = ap + fp + 1; ap 684 net/9p/client.c const char *fmt, va_list ap) ap 705 net/9p/client.c err = p9pdu_vwritef(&req->tc, c->proto_version, fmt, ap); ap 730 net/9p/client.c va_list ap; ap 735 net/9p/client.c va_start(ap, fmt); ap 736 net/9p/client.c req = p9_client_prepare_req(c, type, c->msize, fmt, ap); ap 737 net/9p/client.c va_end(ap); ap 825 net/9p/client.c va_list ap; ap 830 net/9p/client.c va_start(ap, fmt); ap 835 net/9p/client.c req = p9_client_prepare_req(c, type, P9_ZC_HDR_SZ, fmt, ap); ap 836 net/9p/client.c va_end(ap); ap 93 net/9p/protocol.c va_list ap) ap 101 net/9p/protocol.c int8_t *val = va_arg(ap, int8_t *); ap 109 net/9p/protocol.c int16_t *val = va_arg(ap, int16_t *); ap 119 net/9p/protocol.c int32_t *val = va_arg(ap, int32_t *); ap 129 net/9p/protocol.c int64_t *val = va_arg(ap, int64_t *); ap 139 net/9p/protocol.c char **sptr = va_arg(ap, char **); ap 161 net/9p/protocol.c kuid_t *uid = va_arg(ap, kuid_t *); ap 171 net/9p/protocol.c kgid_t *gid = va_arg(ap, kgid_t *); ap 182 net/9p/protocol.c va_arg(ap, struct p9_qid *); ap 191 net/9p/protocol.c va_arg(ap, struct p9_wstat *); ap 214 net/9p/protocol.c uint32_t *count = va_arg(ap, uint32_t *); ap 215 net/9p/protocol.c void **data = va_arg(ap, void **); ap 228 net/9p/protocol.c uint16_t *nwname = va_arg(ap, uint16_t *); ap 229 net/9p/protocol.c char ***wnames = va_arg(ap, char ***); ap 269 net/9p/protocol.c uint16_t *nwqid = va_arg(ap, uint16_t *); ap 271 net/9p/protocol.c va_arg(ap, struct p9_qid **); ap 308 net/9p/protocol.c va_arg(ap, struct p9_stat_dotl *); ap 352 net/9p/protocol.c va_list ap) ap 360 net/9p/protocol.c int8_t val = va_arg(ap, int); ap 366 net/9p/protocol.c __le16 val = cpu_to_le16(va_arg(ap, int)); ap 372 net/9p/protocol.c __le32 val = cpu_to_le32(va_arg(ap, int32_t)); ap 378 net/9p/protocol.c __le64 val = cpu_to_le64(va_arg(ap, int64_t)); ap 384 net/9p/protocol.c const char *sptr = va_arg(ap, const char *); ap 397 net/9p/protocol.c kuid_t uid = va_arg(ap, kuid_t); ap 404 net/9p/protocol.c kgid_t gid = va_arg(ap, kgid_t); ap 412 net/9p/protocol.c va_arg(ap, const struct p9_qid *); ap 420 net/9p/protocol.c va_arg(ap, const struct p9_wstat *); ap 434 net/9p/protocol.c uint32_t count = va_arg(ap, uint32_t); ap 436 net/9p/protocol.c va_arg(ap, struct iov_iter *); ap 444 net/9p/protocol.c uint16_t nwname = va_arg(ap, int); ap 445 net/9p/protocol.c const char **wnames = va_arg(ap, const char **); ap 465 net/9p/protocol.c uint16_t nwqid = va_arg(ap, int); ap 467 net/9p/protocol.c va_arg(ap, struct p9_qid *); ap 487 net/9p/protocol.c struct p9_iattr_dotl *p9attr = va_arg(ap, ap 522 net/9p/protocol.c va_list ap; ap 525 net/9p/protocol.c va_start(ap, fmt); ap 526 net/9p/protocol.c ret = p9pdu_vreadf(pdu, proto_version, fmt, ap); ap 527 net/9p/protocol.c va_end(ap); ap 535 net/9p/protocol.c va_list ap; ap 538 net/9p/protocol.c va_start(ap, fmt); ap 539 net/9p/protocol.c ret = p9pdu_vwritef(pdu, proto_version, fmt, ap); ap 540 net/9p/protocol.c va_end(ap); ap 14 net/9p/protocol.h va_list ap); ap 1113 net/appletalk/ddp.c struct atalk_addr *ap = atalk_find_primary(); ap 1116 net/appletalk/ddp.c if (!ap || ap->s_net == htons(ATADDR_ANYNET)) ap 1119 net/appletalk/ddp.c at->src_net = sat.sat_addr.s_net = ap->s_net; ap 1120 net/appletalk/ddp.c at->src_node = sat.sat_addr.s_node = ap->s_node; ap 1146 net/appletalk/ddp.c struct atalk_addr *ap = atalk_find_primary(); ap 1149 net/appletalk/ddp.c if (!ap) ap 1152 net/appletalk/ddp.c at->src_net = addr->sat_addr.s_net = ap->s_net; ap 1153 net/appletalk/ddp.c at->src_node = addr->sat_addr.s_node = ap->s_node; ap 1517 net/appletalk/ddp.c struct atalk_addr *ap = atalk_find_dev_addr(dev); ap 1519 net/appletalk/ddp.c if (!ap || skb->len < sizeof(__be16) || skb->len > 1023) ap 1543 net/appletalk/ddp.c ddp->deh_dnet = ap->s_net; /* Network number */ ap 1544 net/appletalk/ddp.c ddp->deh_snet = ap->s_net; ap 45 net/ax25/ax25_iface.c void ax25_register_pid(struct ax25_protocol *ap) ap 48 net/ax25/ax25_iface.c ap->next = protocol_list; ap 49 net/ax25/ax25_iface.c protocol_list = ap; ap 25 net/bridge/netfilter/ebt_arpreply.c const struct arphdr *ap; ap 30 net/bridge/netfilter/ebt_arpreply.c ap = skb_header_pointer(skb, 0, sizeof(_ah), &_ah); ap 31 net/bridge/netfilter/ebt_arpreply.c if (ap == NULL) ap 34 net/bridge/netfilter/ebt_arpreply.c if (ap->ar_op != htons(ARPOP_REQUEST) || ap 35 net/bridge/netfilter/ebt_arpreply.c ap->ar_hln != ETH_ALEN || ap 36 net/bridge/netfilter/ebt_arpreply.c ap->ar_pro != htons(ETH_P_IP) || ap 37 net/bridge/netfilter/ebt_arpreply.c ap->ar_pln != 4) ap 159 net/bridge/netfilter/ebt_log.c const struct arppayload *ap; ap 162 net/bridge/netfilter/ebt_log.c ap = skb_header_pointer(skb, sizeof(_arph), ap 164 net/bridge/netfilter/ebt_log.c if (ap == NULL) { ap 169 net/bridge/netfilter/ebt_log.c ap->mac_src, ap->ip_src, ap 170 net/bridge/netfilter/ebt_log.c ap->mac_dst, ap->ip_dst); ap 31 net/bridge/netfilter/ebt_snat.c const struct arphdr *ap; ap 34 net/bridge/netfilter/ebt_snat.c ap = skb_header_pointer(skb, 0, sizeof(_ah), &_ah); ap 35 net/bridge/netfilter/ebt_snat.c if (ap == NULL) ap 37 net/bridge/netfilter/ebt_snat.c if (ap->ar_hln != ETH_ALEN) ap 1941 net/ceph/osdmap.c int oid_printf_vargs(struct ceph_object_id *oid, const char *fmt, va_list ap) ap 1947 net/ceph/osdmap.c len = vsnprintf(oid->inline_name, sizeof(oid->inline_name), fmt, ap); ap 1960 net/ceph/osdmap.c va_list ap; ap 1962 net/ceph/osdmap.c va_start(ap, fmt); ap 1963 net/ceph/osdmap.c BUG_ON(oid_printf_vargs(oid, fmt, ap)); ap 1964 net/ceph/osdmap.c va_end(ap); ap 1970 net/ceph/osdmap.c const char *fmt, va_list ap) ap 1975 net/ceph/osdmap.c va_copy(aq, ap); ap 1987 net/ceph/osdmap.c WARN_ON(vsnprintf(oid->name, len + 1, fmt, ap) != len); ap 2000 net/ceph/osdmap.c va_list ap; ap 2003 net/ceph/osdmap.c va_start(ap, fmt); ap 2004 net/ceph/osdmap.c ret = oid_aprintf_vargs(oid, gfp, fmt, ap); ap 2005 net/ceph/osdmap.c va_end(ap); ap 44 net/ipv4/netfilter/arp_tables.c static inline int arp_devaddr_compare(const struct arpt_devaddr_info *ap, ap 54 net/ipv4/netfilter/arp_tables.c ret |= (hdr_addr[i] ^ ap->addr[i]) & ap->mask[i]; ap 48 net/ipv4/netfilter/nf_log_arp.c const struct arppayload *ap; ap 67 net/ipv4/netfilter/nf_log_arp.c ap = skb_header_pointer(skb, sizeof(_arph), sizeof(_arpp), &_arpp); ap 68 net/ipv4/netfilter/nf_log_arp.c if (ap == NULL) { ap 74 net/ipv4/netfilter/nf_log_arp.c ap->mac_src, ap->ip_src, ap->mac_dst, ap->ip_dst); ap 46 net/ipv6/netfilter/ip6t_rt.c const struct in6_addr *ap; ap 130 net/ipv6/netfilter/ip6t_rt.c ap = skb_header_pointer(skb, ap 137 net/ipv6/netfilter/ip6t_rt.c if (ap == NULL) { ap 142 net/ipv6/netfilter/ip6t_rt.c if (ipv6_addr_equal(ap, &rtinfo->addrs[i])) { ap 163 net/ipv6/netfilter/ip6t_rt.c ap = skb_header_pointer(skb, ap 169 net/ipv6/netfilter/ip6t_rt.c if (ap == NULL) { ap 174 net/ipv6/netfilter/ip6t_rt.c if (!ipv6_addr_equal(ap, &rtinfo->addrs[temp])) ap 1646 net/key/af_key.c struct sadb_alg *ap; ap 1649 net/key/af_key.c ap = (struct sadb_alg *) (sp + 1); ap 1661 net/key/af_key.c *ap++ = aalg->desc; ap 1667 net/key/af_key.c struct sadb_alg *ap; ap 1670 net/key/af_key.c ap = (struct sadb_alg *) (sp + 1); ap 1682 net/key/af_key.c *ap++ = ealg->desc; ap 808 net/mac80211/cfg.c old = sdata_dereference(sdata->u.ap.probe_resp, sdata); ap 822 net/mac80211/cfg.c rcu_assign_pointer(sdata->u.ap.probe_resp, new); ap 880 net/mac80211/cfg.c old = sdata_dereference(sdata->u.ap.beacon, sdata); ap 962 net/mac80211/cfg.c rcu_assign_pointer(sdata->u.ap.beacon, new); ap 988 net/mac80211/cfg.c old = sdata_dereference(sdata->u.ap.beacon, sdata); ap 1005 net/mac80211/cfg.c sdata->u.ap.req_smps = sdata->smps_mode; ap 1038 net/mac80211/cfg.c list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) { ap 1082 net/mac80211/cfg.c old = sdata_dereference(sdata->u.ap.beacon, sdata); ap 1086 net/mac80211/cfg.c RCU_INIT_POINTER(sdata->u.ap.beacon, NULL); ap 1095 net/mac80211/cfg.c list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) ap 1117 net/mac80211/cfg.c old = sdata_dereference(sdata->u.ap.beacon, sdata); ap 1139 net/mac80211/cfg.c old_beacon = sdata_dereference(sdata->u.ap.beacon, sdata); ap 1142 net/mac80211/cfg.c old_probe_resp = sdata_dereference(sdata->u.ap.probe_resp, sdata); ap 1155 net/mac80211/cfg.c kfree(sdata->u.ap.next_beacon); ap 1156 net/mac80211/cfg.c sdata->u.ap.next_beacon = NULL; ap 1159 net/mac80211/cfg.c list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) ap 1164 net/mac80211/cfg.c RCU_INIT_POINTER(sdata->u.ap.beacon, NULL); ap 1165 net/mac80211/cfg.c RCU_INIT_POINTER(sdata->u.ap.probe_resp, NULL); ap 1169 net/mac80211/cfg.c sdata->u.ap.driver_smps_mode = IEEE80211_SMPS_OFF; ap 1193 net/mac80211/cfg.c local->total_ps_buffered -= skb_queue_len(&sdata->u.ap.ps.bc_buf); ap 1194 net/mac80211/cfg.c ieee80211_purge_tx_queue(&local->hw, &sdata->u.ap.ps.bc_buf); ap 2157 net/mac80211/cfg.c if (!sdata_dereference(sdata->u.ap.beacon, sdata)) ap 2321 net/mac80211/cfg.c if (sdata->u.ap.beacon && ap 2651 net/mac80211/cfg.c old_req = sdata->u.ap.req_smps; ap 2652 net/mac80211/cfg.c sdata->u.ap.req_smps = smps_mode; ap 2661 net/mac80211/cfg.c smps_mode, atomic_read(&sdata->u.ap.num_mcast_sta)); ap 2669 net/mac80211/cfg.c if (sta->sdata->bss != &sdata->u.ap) ap 2710 net/mac80211/cfg.c const u8 *ap; ap 2737 net/mac80211/cfg.c ap = sdata->u.mgd.associated->bssid; ap 2759 net/mac80211/cfg.c ap, ap); ap 3066 net/mac80211/cfg.c err = ieee80211_assign_beacon(sdata, sdata->u.ap.next_beacon, ap 3068 net/mac80211/cfg.c kfree(sdata->u.ap.next_beacon); ap 3069 net/mac80211/cfg.c sdata->u.ap.next_beacon = NULL; ap 3197 net/mac80211/cfg.c sdata->u.ap.next_beacon = ap 3199 net/mac80211/cfg.c if (!sdata->u.ap.next_beacon) ap 3235 net/mac80211/cfg.c kfree(sdata->u.ap.next_beacon); ap 3838 net/mac80211/cfg.c sdata->u.ap.multicast_to_unicast = enabled; ap 817 net/mac80211/chan.c list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) ap 1004 net/mac80211/chan.c list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) ap 1765 net/mac80211/chan.c struct ieee80211_sub_if_data *ap; ap 1771 net/mac80211/chan.c ap = container_of(sdata->bss, struct ieee80211_sub_if_data, u.ap); ap 1775 net/mac80211/chan.c conf = rcu_dereference_protected(ap->vif.chanctx_conf, ap 287 net/mac80211/debugfs_netdev.c smps_modes[sdata->u.ap.req_smps], ap 473 net/mac80211/debugfs_netdev.c IEEE80211_IF_FILE(num_mcast_sta, u.ap.num_mcast_sta, ATOMIC); ap 474 net/mac80211/debugfs_netdev.c IEEE80211_IF_FILE(num_sta_ps, u.ap.ps.num_sta_ps, ATOMIC); ap 475 net/mac80211/debugfs_netdev.c IEEE80211_IF_FILE(dtim_count, u.ap.ps.dtim_count, DEC); ap 482 net/mac80211/debugfs_netdev.c skb_queue_len(&sdata->u.ap.ps.bc_buf)); ap 523 net/mac80211/debugfs_netdev.c IEEE80211_IF_FILE(multicast_to_unicast, u.ap.multicast_to_unicast, HEX); ap 27 net/mac80211/driver-ops.h u.ap); ap 551 net/mac80211/ht.c u.ap.request_smps_work); ap 554 net/mac80211/ht.c if (sdata_dereference(sdata->u.ap.beacon, sdata)) ap 556 net/mac80211/ht.c sdata->u.ap.driver_smps_mode); ap 579 net/mac80211/ht.c if (sdata->u.ap.driver_smps_mode == smps_mode) ap 581 net/mac80211/ht.c sdata->u.ap.driver_smps_mode = smps_mode; ap 583 net/mac80211/ht.c &sdata->u.ap.request_smps_work); ap 967 net/mac80211/ieee80211_i.h struct ieee80211_if_ap ap; ap 1584 net/mac80211/ieee80211_i.h return atomic_read(&sdata->u.ap.num_mcast_sta); ap 304 net/mac80211/iface.c sdata->bss = &nsdata->u.ap; ap 515 net/mac80211/iface.c struct ieee80211_sub_if_data, u.ap); ap 535 net/mac80211/iface.c sdata->bss = &sdata->u.ap; ap 828 net/mac80211/iface.c cancel_work_sync(&sdata->u.ap.request_smps_work); ap 916 net/mac80211/iface.c list_for_each_entry_safe(vlan, tmpsdata, &sdata->u.ap.vlans, ap 919 net/mac80211/iface.c WARN_ON(!list_empty(&sdata->u.ap.vlans)); ap 1428 net/mac80211/iface.c skb_queue_head_init(&sdata->u.ap.ps.bc_buf); ap 1429 net/mac80211/iface.c INIT_LIST_HEAD(&sdata->u.ap.vlans); ap 1430 net/mac80211/iface.c INIT_WORK(&sdata->u.ap.request_smps_work, ap 1433 net/mac80211/iface.c sdata->u.ap.req_smps = IEEE80211_SMPS_OFF; ap 2011 net/mac80211/iface.c atomic_inc(&sdata->u.ap.num_mcast_sta); ap 2019 net/mac80211/iface.c atomic_dec(&sdata->u.ap.num_mcast_sta); ap 74 net/mac80211/key.c list_for_each_entry_rcu(vlan, &sdata->u.ap.vlans, u.vlan.list) ap 863 net/mac80211/key.c list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) { ap 997 net/mac80211/key.c list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) ap 1010 net/mac80211/key.c u.ap); ap 1021 net/mac80211/key.c list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) ap 906 net/mac80211/offchannel.c beacon = rcu_dereference(sdata->u.ap.beacon); ap 2868 net/mac80211/rx.c u.ap); ap 1282 net/mac80211/sta_info.c u.ap); ap 301 net/mac80211/tkip.c struct ieee80211_sub_if_data, u.ap); ap 364 net/mac80211/tx.c ps = &sdata->u.ap.ps; ap 1431 net/mac80211/tx.c struct ieee80211_sub_if_data *ap; ap 1436 net/mac80211/tx.c ap = container_of(sdata->bss, struct ieee80211_sub_if_data, u.ap); ap 1438 net/mac80211/tx.c if (!ap->vif.txq) ap 1441 net/mac80211/tx.c txqi = to_txq_info(ap->vif.txq); ap 1609 net/mac80211/tx.c struct ieee80211_sub_if_data, u.ap); ap 1746 net/mac80211/tx.c struct ieee80211_sub_if_data, u.ap); ap 2511 net/mac80211/tx.c u.ap); ap 3544 net/mac80211/tx.c struct ieee80211_sub_if_data, u.ap); ap 3687 net/mac80211/tx.c struct ieee80211_sub_if_data, u.ap); ap 4326 net/mac80211/tx.c resp = rcu_dereference(sdata->u.ap.probe_resp); ap 4363 net/mac80211/tx.c beacon = rcu_dereference(sdata->u.ap.beacon); ap 4388 net/mac80211/tx.c beacon = rcu_dereference(sdata->u.ap.beacon); ap 4418 net/mac80211/tx.c struct ieee80211_if_ap *ap = &sdata->u.ap; ap 4420 net/mac80211/tx.c beacon = rcu_dereference(ap->beacon); ap 4491 net/mac80211/tx.c struct ieee80211_if_ap *ap = &sdata->u.ap; ap 4493 net/mac80211/tx.c beacon = rcu_dereference(ap->beacon); ap 4516 net/mac80211/tx.c ieee80211_beacon_add_tim(sdata, &ap->ps, skb, ap 4696 net/mac80211/tx.c struct ieee80211_if_ap *ap = NULL; ap 4707 net/mac80211/tx.c ap = &sdata->u.ap; ap 4708 net/mac80211/tx.c presp = rcu_dereference(ap->probe_resp); ap 4914 net/mac80211/tx.c rcu_dereference(sdata->u.ap.beacon); ap 4919 net/mac80211/tx.c ps = &sdata->u.ap.ps; ap 1431 net/mac80211/util.c wmm_ac = &rrule->wmm_rule.ap[ac]; ap 2359 net/mac80211/util.c if (rcu_access_pointer(sdata->u.ap.beacon)) ap 249 net/netfilter/nf_conntrack_core.c const __be32 *ap; ap 268 net/netfilter/nf_conntrack_core.c ap = skb_header_pointer(skb, nhoff, size, _addrs); ap 269 net/netfilter/nf_conntrack_core.c if (!ap) ap 274 net/netfilter/nf_conntrack_core.c tuple->src.u3.ip = ap[0]; ap 275 net/netfilter/nf_conntrack_core.c tuple->dst.u3.ip = ap[1]; ap 278 net/netfilter/nf_conntrack_core.c memcpy(tuple->src.u3.ip6, ap, sizeof(tuple->src.u3.ip6)); ap 279 net/netfilter/nf_conntrack_core.c memcpy(tuple->dst.u3.ip6, ap + 4, sizeof(tuple->dst.u3.ip6)); ap 918 net/rds/connection.c va_list ap; ap 920 net/rds/connection.c va_start(ap, fmt); ap 921 net/rds/connection.c vprintk(fmt, ap); ap 922 net/rds/connection.c va_end(ap); ap 1205 net/rds/ib_cm.c va_list ap; ap 1209 net/rds/ib_cm.c va_start(ap, fmt); ap 1210 net/rds/ib_cm.c vprintk(fmt, ap); ap 1211 net/rds/ib_cm.c va_end(ap); ap 614 net/wireless/reg.c struct fwdb_wmm_ac ap[IEEE80211_NUM_ACS]; ap 883 net/wireless/reg.c wmm_rule->ap[i].cw_min = ecw2cw((wmm->ap[i].ecw & 0xf0) >> 4); ap 884 net/wireless/reg.c wmm_rule->ap[i].cw_max = ecw2cw(wmm->ap[i].ecw & 0x0f); ap 885 net/wireless/reg.c wmm_rule->ap[i].aifsn = wmm->ap[i].aifsn; ap 886 net/wireless/reg.c wmm_rule->ap[i].cot = 1000 * be16_to_cpu(wmm->ap[i].cot); ap 1396 net/wireless/reg.c reg_wmm_rules_intersect(&wmm_rule1->ap[ac], ap 1397 net/wireless/reg.c &wmm_rule2->ap[ac], ap 1398 net/wireless/reg.c &wmm_rule->ap[ac]); ap 120 scripts/basic/fixdep.c va_list ap; ap 123 scripts/basic/fixdep.c va_start(ap, format); ap 124 scripts/basic/fixdep.c ret = vprintf(format, ap); ap 129 scripts/basic/fixdep.c va_end(ap); ap 66 scripts/dtc/checks.c va_list ap; ap 99 scripts/dtc/checks.c va_start(ap, fmt); ap 100 scripts/dtc/checks.c xavsprintf_append(&str, fmt, ap); ap 101 scripts/dtc/checks.c va_end(ap); ap 35 scripts/dtc/util.c int xavsprintf_append(char **strp, const char *fmt, va_list ap) ap 45 scripts/dtc/util.c va_copy(ap_copy, ap); ap 51 scripts/dtc/util.c n = vsnprintf(p + size, n, fmt, ap); ap 60 scripts/dtc/util.c va_list ap; ap 62 scripts/dtc/util.c va_start(ap, fmt); ap 63 scripts/dtc/util.c n = xavsprintf_append(strp, fmt, ap); ap 64 scripts/dtc/util.c va_end(ap); ap 72 scripts/dtc/util.c va_list ap; ap 76 scripts/dtc/util.c va_start(ap, fmt); ap 77 scripts/dtc/util.c n = xavsprintf_append(strp, fmt, ap); ap 78 scripts/dtc/util.c va_end(ap); ap 29 scripts/dtc/util.h va_list ap; ap 31 scripts/dtc/util.h va_start(ap, str); ap 33 scripts/dtc/util.h vfprintf(stderr, str, ap); ap 34 scripts/dtc/util.h va_end(ap); ap 62 scripts/dtc/util.h extern int xavsprintf_append(char **strp, const char *fmt, va_list ap); ap 352 scripts/genksyms/genksyms.c va_list ap; ap 357 scripts/genksyms/genksyms.c for (va_start(ap, start); (n = va_arg(ap, struct string_list *));) { ap 363 scripts/genksyms/genksyms.c va_end(ap); ap 182 scripts/kconfig/confdata.c va_list ap; ap 183 scripts/kconfig/confdata.c va_start(ap, fmt); ap 185 scripts/kconfig/confdata.c vfprintf(stderr, fmt, ap); ap 187 scripts/kconfig/confdata.c va_end(ap); ap 207 scripts/kconfig/confdata.c va_list ap; ap 213 scripts/kconfig/confdata.c va_start(ap, fmt); ap 215 scripts/kconfig/confdata.c vsnprintf(buf, sizeof(buf), fmt, ap); ap 217 scripts/kconfig/confdata.c va_end(ap); ap 595 scripts/kconfig/lxdialog/util.c va_list ap; ap 605 scripts/kconfig/lxdialog/util.c va_start(ap, fmt); ap 606 scripts/kconfig/lxdialog/util.c vsnprintf(item_cur->node.str, sizeof(item_cur->node.str), fmt, ap); ap 607 scripts/kconfig/lxdialog/util.c va_end(ap); ap 612 scripts/kconfig/lxdialog/util.c va_list ap; ap 617 scripts/kconfig/lxdialog/util.c va_start(ap, fmt); ap 619 scripts/kconfig/lxdialog/util.c avail, fmt, ap); ap 621 scripts/kconfig/lxdialog/util.c va_end(ap); ap 23 scripts/kconfig/menu.c va_list ap; ap 24 scripts/kconfig/menu.c va_start(ap, fmt); ap 26 scripts/kconfig/menu.c vfprintf(stderr, fmt, ap); ap 28 scripts/kconfig/menu.c va_end(ap); ap 33 scripts/kconfig/menu.c va_list ap; ap 34 scripts/kconfig/menu.c va_start(ap, fmt); ap 36 scripts/kconfig/menu.c vfprintf(stderr, fmt, ap); ap 38 scripts/kconfig/menu.c va_end(ap); ap 526 scripts/kconfig/nconf.c va_list ap; ap 540 scripts/kconfig/nconf.c va_start(ap, fmt); ap 543 scripts/kconfig/nconf.c fmt, ap); ap 544 scripts/kconfig/nconf.c va_end(ap); ap 566 scripts/kconfig/nconf.c va_list ap; ap 574 scripts/kconfig/nconf.c va_start(ap, fmt); ap 575 scripts/kconfig/nconf.c vsnprintf(new_str, sizeof(new_str), fmt, ap); ap 576 scripts/kconfig/nconf.c va_end(ap); ap 243 scripts/kconfig/nconf.gui.c va_list ap; ap 259 scripts/kconfig/nconf.gui.c va_start(ap, btn_num); ap 261 scripts/kconfig/nconf.gui.c btn = va_arg(ap, char *); ap 265 scripts/kconfig/nconf.gui.c va_end(ap); ap 549 scripts/kconfig/parser.y va_list ap; ap 552 scripts/kconfig/parser.y va_start(ap, err); ap 553 scripts/kconfig/parser.y vfprintf(stderr, err, ap); ap 554 scripts/kconfig/parser.y va_end(ap); ap 560 scripts/kconfig/parser.y va_list ap; ap 564 scripts/kconfig/parser.y va_start(ap, err); ap 565 scripts/kconfig/parser.y vfprintf(stderr, err, ap); ap 566 scripts/kconfig/parser.y va_end(ap); ap 22 scripts/kconfig/preprocess.c va_list ap; ap 25 scripts/kconfig/preprocess.c va_start(ap, format); ap 26 scripts/kconfig/preprocess.c vfprintf(stderr, format, ap); ap 27 scripts/kconfig/preprocess.c va_end(ap); ap 68 scripts/kconfig/util.c va_list ap; ap 70 scripts/kconfig/util.c va_start(ap, fmt); ap 71 scripts/kconfig/util.c vsnprintf(s, sizeof(s), fmt, ap); ap 73 scripts/kconfig/util.c va_end(ap); ap 2134 scripts/mod/modpost.c va_list ap; ap 2136 scripts/mod/modpost.c va_start(ap, fmt); ap 2137 scripts/mod/modpost.c len = vsnprintf(tmp, SZ, fmt, ap); ap 2139 scripts/mod/modpost.c va_end(ap); ap 421 scripts/pnmtologo.c va_list ap; ap 423 scripts/pnmtologo.c va_start(ap, fmt); ap 424 scripts/pnmtologo.c vfprintf(stderr, fmt, ap); ap 425 scripts/pnmtologo.c va_end(ap); ap 1206 scripts/unifdef.c va_list ap; ap 1209 scripts/unifdef.c va_start(ap, msg); ap 1210 scripts/unifdef.c vwarnx(msg, ap); ap 1211 scripts/unifdef.c va_end(ap); ap 216 sound/mips/ad1843.c va_list ap; ap 220 sound/mips/ad1843.c va_start(ap, argcount); ap 222 sound/mips/ad1843.c fp = va_arg(ap, const struct ad1843_bitfield *); ap 223 sound/mips/ad1843.c value = va_arg(ap, int *); ap 232 sound/mips/ad1843.c va_end(ap); ap 248 sound/mips/ad1843.c va_list ap; ap 258 sound/mips/ad1843.c va_start(ap, argcount); ap 260 sound/mips/ad1843.c fp = va_arg(ap, const struct ad1843_bitfield *); ap 261 sound/mips/ad1843.c value = va_arg(ap, int); ap 270 sound/mips/ad1843.c va_end(ap); ap 34 sound/pci/hda/hda_auto_parser.c static int compare_seq(const void *ap, const void *bp) ap 36 sound/pci/hda/hda_auto_parser.c const struct auto_out_pin *a = ap; ap 68 sound/pci/hda/hda_auto_parser.c static int compare_input_type(const void *ap, const void *bp) ap 70 sound/pci/hda/hda_auto_parser.c const struct auto_pin_cfg_item *a = ap; ap 4855 sound/pci/hda/hda_generic.c static int compare_attr(const void *ap, const void *bp) ap 4857 sound/pci/hda/hda_generic.c const struct automic_entry *a = ap; ap 101 sound/soc/generic/simple-card-utils.c va_list ap; ap 105 sound/soc/generic/simple-card-utils.c va_start(ap, fmt); ap 106 sound/soc/generic/simple-card-utils.c name = devm_kvasprintf(dev, GFP_KERNEL, fmt, ap); ap 107 sound/soc/generic/simple-card-utils.c va_end(ap); ap 34 tools/bpf/bpftool/common.c va_list ap; ap 36 tools/bpf/bpftool/common.c va_start(ap, fmt); ap 40 tools/bpf/bpftool/common.c jsonw_vprintf_enquote(json_wtr, fmt, ap); ap 44 tools/bpf/bpftool/common.c vfprintf(stderr, fmt, ap); ap 47 tools/bpf/bpftool/common.c va_end(ap); ap 52 tools/bpf/bpftool/common.c va_list ap; ap 57 tools/bpf/bpftool/common.c va_start(ap, fmt); ap 58 tools/bpf/bpftool/common.c vfprintf(stderr, fmt, ap); ap 60 tools/bpf/bpftool/common.c va_end(ap); ap 45 tools/bpf/bpftool/jit_disasm.c va_list ap; ap 48 tools/bpf/bpftool/jit_disasm.c va_start(ap, fmt); ap 49 tools/bpf/bpftool/jit_disasm.c if (vasprintf(&s, fmt, ap) < 0) ap 51 tools/bpf/bpftool/jit_disasm.c va_end(ap); ap 155 tools/bpf/bpftool/json_writer.c void jsonw_vprintf_enquote(json_writer_t *self, const char *fmt, va_list ap) ap 159 tools/bpf/bpftool/json_writer.c vfprintf(self->out, fmt, ap); ap 165 tools/bpf/bpftool/json_writer.c va_list ap; ap 167 tools/bpf/bpftool/json_writer.c va_start(ap, fmt); ap 169 tools/bpf/bpftool/json_writer.c vfprintf(self->out, fmt, ap); ap 170 tools/bpf/bpftool/json_writer.c va_end(ap); ap 35 tools/bpf/bpftool/json_writer.h va_list ap); ap 126 tools/bpf/bpftool/main.c va_list ap; ap 129 tools/bpf/bpftool/main.c va_start(ap, arg); ap 130 tools/bpf/bpftool/main.c while ((ref = va_arg(ap, const char *))) { ap 138 tools/bpf/bpftool/main.c va_end(ap); ap 58 tools/lib/bpf/libbpf.h const char *, va_list ap); ap 911 tools/lib/subcmd/parse-options.c va_list ap; ap 914 tools/lib/subcmd/parse-options.c va_start(ap, fmt); ap 915 tools/lib/subcmd/parse-options.c if (vasprintf(&error_buf, fmt, ap) == -1) ap 917 tools/lib/subcmd/parse-options.c va_end(ap); ap 6656 tools/lib/traceevent/event-parse.c va_list ap; ap 6686 tools/lib/traceevent/event-parse.c va_start(ap, name); ap 6688 tools/lib/traceevent/event-parse.c type = va_arg(ap, enum tep_func_arg_type); ap 6712 tools/lib/traceevent/event-parse.c va_end(ap); ap 6719 tools/lib/traceevent/event-parse.c va_end(ap); ap 14 tools/lib/traceevent/event-utils.h void vpr_stat(const char *fmt, va_list ap); ap 37 tools/lib/traceevent/parse-filter.c va_list ap; ap 55 tools/lib/traceevent/parse-filter.c va_start(ap, fmt); ap 56 tools/lib/traceevent/parse-filter.c vsnprintf(error_buf + len, TEP_FILTER_ERROR_BUFSZ - len, fmt, ap); ap 57 tools/lib/traceevent/parse-filter.c va_end(ap); ap 14 tools/lib/traceevent/parse-utils.c void __vwarning(const char *fmt, va_list ap) ap 21 tools/lib/traceevent/parse-utils.c vfprintf(stderr, fmt, ap); ap 28 tools/lib/traceevent/parse-utils.c va_list ap; ap 30 tools/lib/traceevent/parse-utils.c va_start(ap, fmt); ap 31 tools/lib/traceevent/parse-utils.c __vwarning(fmt, ap); ap 32 tools/lib/traceevent/parse-utils.c va_end(ap); ap 37 tools/lib/traceevent/parse-utils.c va_list ap; ap 39 tools/lib/traceevent/parse-utils.c va_start(ap, fmt); ap 40 tools/lib/traceevent/parse-utils.c __vwarning(fmt, ap); ap 41 tools/lib/traceevent/parse-utils.c va_end(ap); ap 44 tools/lib/traceevent/parse-utils.c void __vpr_stat(const char *fmt, va_list ap) ap 46 tools/lib/traceevent/parse-utils.c vprintf(fmt, ap); ap 52 tools/lib/traceevent/parse-utils.c va_list ap; ap 54 tools/lib/traceevent/parse-utils.c va_start(ap, fmt); ap 55 tools/lib/traceevent/parse-utils.c __vpr_stat(fmt, ap); ap 56 tools/lib/traceevent/parse-utils.c va_end(ap); ap 59 tools/lib/traceevent/parse-utils.c void __weak vpr_stat(const char *fmt, va_list ap) ap 61 tools/lib/traceevent/parse-utils.c __vpr_stat(fmt, ap); ap 66 tools/lib/traceevent/parse-utils.c va_list ap; ap 68 tools/lib/traceevent/parse-utils.c va_start(ap, fmt); ap 69 tools/lib/traceevent/parse-utils.c __vpr_stat(fmt, ap); ap 70 tools/lib/traceevent/parse-utils.c va_end(ap); ap 115 tools/lib/traceevent/trace-seq.c va_list ap; ap 124 tools/lib/traceevent/trace-seq.c va_start(ap, fmt); ap 125 tools/lib/traceevent/trace-seq.c ret = vsnprintf(s->buffer + s->len, len, fmt, ap); ap 126 tools/lib/traceevent/trace-seq.c va_end(ap); ap 18 tools/perf/lib/include/perf/core.h const char *, va_list ap); ap 8 tools/perf/lib/tests/test-cpumap.c const char *fmt, va_list ap) ap 10 tools/perf/lib/tests/test-cpumap.c return vfprintf(stderr, fmt, ap); ap 12 tools/perf/lib/tests/test-evlist.c const char *fmt, va_list ap) ap 14 tools/perf/lib/tests/test-evlist.c return vfprintf(stderr, fmt, ap); ap 11 tools/perf/lib/tests/test-evsel.c const char *fmt, va_list ap) ap 13 tools/perf/lib/tests/test-evsel.c return vfprintf(stderr, fmt, ap); ap 8 tools/perf/lib/tests/test-threadmap.c const char *fmt, va_list ap) ap 10 tools/perf/lib/tests/test-threadmap.c return vfprintf(stderr, fmt, ap); ap 434 tools/perf/perf.c const char *fmt, va_list ap) ap 436 tools/perf/perf.c return eprintf(level, verbose, fmt, ap); ap 280 tools/perf/ui/browser.c va_list ap; ap 293 tools/perf/ui/browser.c va_start(ap, helpline); ap 294 tools/perf/ui/browser.c err = vasprintf(&browser->helpline, helpline, ap); ap 295 tools/perf/ui/browser.c va_end(ap); ap 28 tools/perf/ui/gtk/helpline.c static int gtk_helpline_show(const char *fmt, va_list ap) ap 35 tools/perf/ui/gtk/helpline.c sizeof(ui_helpline__current) - backlog, fmt, ap); ap 20 tools/perf/ui/helpline.c va_list ap __maybe_unused) ap 43 tools/perf/ui/helpline.c void ui_helpline__vpush(const char *fmt, va_list ap) ap 47 tools/perf/ui/helpline.c if (vasprintf(&s, fmt, ap) < 0) ap 48 tools/perf/ui/helpline.c vfprintf(stderr, fmt, ap); ap 57 tools/perf/ui/helpline.c va_list ap; ap 59 tools/perf/ui/helpline.c va_start(ap, fmt); ap 60 tools/perf/ui/helpline.c ui_helpline__vpush(fmt, ap); ap 61 tools/perf/ui/helpline.c va_end(ap); ap 70 tools/perf/ui/helpline.c int ui_helpline__vshow(const char *fmt, va_list ap) ap 72 tools/perf/ui/helpline.c return helpline_fns->show(fmt, ap); ap 77 tools/perf/ui/helpline.c va_list ap; ap 80 tools/perf/ui/helpline.c va_start(ap, fmt); ap 81 tools/perf/ui/helpline.c ui_helpline__vpush(fmt, ap); ap 82 tools/perf/ui/helpline.c va_end(ap); ap 11 tools/perf/ui/helpline.h int (*show)(const char *fmt, va_list ap); ap 20 tools/perf/ui/helpline.h void ui_helpline__vpush(const char *fmt, va_list ap); ap 24 tools/perf/ui/helpline.h int ui_helpline__vshow(const char *fmt, va_list ap); ap 31 tools/perf/ui/tui/helpline.c static int tui_helpline__show(const char *format, va_list ap) ap 38 tools/perf/ui/tui/helpline.c sizeof(ui_helpline__last_msg) - backlog, format, ap); ap 144 tools/perf/util/build-id.c va_list ap; ap 150 tools/perf/util/build-id.c va_start(ap, fmt); ap 152 tools/perf/util/build-id.c ret = vsnprintf(*strp, size, fmt, ap); ap 154 tools/perf/util/build-id.c ret = vasprintf(strp, fmt, ap); ap 155 tools/perf/util/build-id.c va_end(ap); ap 56 tools/perf/util/probe-event.c va_list ap; ap 57 tools/perf/util/probe-event.c va_start(ap, format); ap 58 tools/perf/util/probe-event.c ret = vsnprintf(str, size, format, ap); ap 59 tools/perf/util/probe-event.c va_end(ap); ap 58 tools/perf/util/sort.c va_list ap; ap 60 tools/perf/util/sort.c va_start(ap, fmt); ap 61 tools/perf/util/sort.c n = vsnprintf(bf, size, fmt, ap); ap 72 tools/perf/util/sort.c va_end(ap); ap 94 tools/perf/util/strbuf.c static int strbuf_addv(struct strbuf *sb, const char *fmt, va_list ap) ap 105 tools/perf/util/strbuf.c va_copy(ap_saved, ap); ap 106 tools/perf/util/strbuf.c len = vsnprintf(sb->buf + sb->len, sb->alloc - sb->len, fmt, ap); ap 130 tools/perf/util/strbuf.c va_list ap; ap 133 tools/perf/util/strbuf.c va_start(ap, fmt); ap 134 tools/perf/util/strbuf.c ret = strbuf_addv(sb, fmt, ap); ap 135 tools/perf/util/strbuf.c va_end(ap); ap 34 tools/testing/selftests/capabilities/test_execve.c static void vmaybe_write_file(bool enoent_ok, char *filename, char *fmt, va_list ap) ap 41 tools/testing/selftests/capabilities/test_execve.c buf_len = vsnprintf(buf, sizeof(buf), fmt, ap); ap 73 tools/testing/selftests/capabilities/test_execve.c va_list ap; ap 75 tools/testing/selftests/capabilities/test_execve.c va_start(ap, fmt); ap 76 tools/testing/selftests/capabilities/test_execve.c vmaybe_write_file(true, filename, fmt, ap); ap 77 tools/testing/selftests/capabilities/test_execve.c va_end(ap); ap 82 tools/testing/selftests/capabilities/test_execve.c va_list ap; ap 84 tools/testing/selftests/capabilities/test_execve.c va_start(ap, fmt); ap 85 tools/testing/selftests/capabilities/test_execve.c vmaybe_write_file(false, filename, fmt, ap); ap 86 tools/testing/selftests/capabilities/test_execve.c va_end(ap); ap 67 tools/testing/selftests/kvm/lib/assert.c va_list ap; ap 70 tools/testing/selftests/kvm/lib/assert.c va_start(ap, fmt); ap 80 tools/testing/selftests/kvm/lib/assert.c vfprintf(stderr, fmt, ap); ap 83 tools/testing/selftests/kvm/lib/assert.c va_end(ap); ap 924 tools/testing/selftests/kvm/lib/x86_64/processor.c va_list ap; ap 931 tools/testing/selftests/kvm/lib/x86_64/processor.c va_start(ap, num); ap 935 tools/testing/selftests/kvm/lib/x86_64/processor.c regs.rdi = va_arg(ap, uint64_t); ap 938 tools/testing/selftests/kvm/lib/x86_64/processor.c regs.rsi = va_arg(ap, uint64_t); ap 941 tools/testing/selftests/kvm/lib/x86_64/processor.c regs.rdx = va_arg(ap, uint64_t); ap 944 tools/testing/selftests/kvm/lib/x86_64/processor.c regs.rcx = va_arg(ap, uint64_t); ap 947 tools/testing/selftests/kvm/lib/x86_64/processor.c regs.r8 = va_arg(ap, uint64_t); ap 950 tools/testing/selftests/kvm/lib/x86_64/processor.c regs.r9 = va_arg(ap, uint64_t); ap 953 tools/testing/selftests/kvm/lib/x86_64/processor.c va_end(ap); ap 50 tools/testing/selftests/mount/unprivileged-remount-test.c va_list ap; ap 51 tools/testing/selftests/mount/unprivileged-remount-test.c va_start(ap, fmt); ap 52 tools/testing/selftests/mount/unprivileged-remount-test.c vfprintf(stderr, fmt, ap); ap 53 tools/testing/selftests/mount/unprivileged-remount-test.c va_end(ap); ap 57 tools/testing/selftests/mount/unprivileged-remount-test.c static void vmaybe_write_file(bool enoent_ok, char *filename, char *fmt, va_list ap) ap 64 tools/testing/selftests/mount/unprivileged-remount-test.c buf_len = vsnprintf(buf, sizeof(buf), fmt, ap); ap 97 tools/testing/selftests/mount/unprivileged-remount-test.c va_list ap; ap 99 tools/testing/selftests/mount/unprivileged-remount-test.c va_start(ap, fmt); ap 100 tools/testing/selftests/mount/unprivileged-remount-test.c vmaybe_write_file(true, filename, fmt, ap); ap 101 tools/testing/selftests/mount/unprivileged-remount-test.c va_end(ap); ap 107 tools/testing/selftests/mount/unprivileged-remount-test.c va_list ap; ap 109 tools/testing/selftests/mount/unprivileged-remount-test.c va_start(ap, fmt); ap 110 tools/testing/selftests/mount/unprivileged-remount-test.c vmaybe_write_file(false, filename, fmt, ap); ap 111 tools/testing/selftests/mount/unprivileged-remount-test.c va_end(ap); ap 33 tools/testing/selftests/safesetid/safesetid-test.c va_list ap; ap 34 tools/testing/selftests/safesetid/safesetid-test.c va_start(ap, fmt); ap 35 tools/testing/selftests/safesetid/safesetid-test.c vfprintf(stderr, fmt, ap); ap 36 tools/testing/selftests/safesetid/safesetid-test.c va_end(ap); ap 40 tools/testing/selftests/safesetid/safesetid-test.c static bool vmaybe_write_file(bool enoent_ok, char *filename, char *fmt, va_list ap) ap 47 tools/testing/selftests/safesetid/safesetid-test.c buf_len = vsnprintf(buf, sizeof(buf), fmt, ap); ap 85 tools/testing/selftests/safesetid/safesetid-test.c va_list ap; ap 88 tools/testing/selftests/safesetid/safesetid-test.c va_start(ap, fmt); ap 89 tools/testing/selftests/safesetid/safesetid-test.c ret = vmaybe_write_file(false, filename, fmt, ap); ap 90 tools/testing/selftests/safesetid/safesetid-test.c va_end(ap); ap 114 tools/testing/selftests/vm/thuge-gen.c va_list ap; ap 117 tools/testing/selftests/vm/thuge-gen.c va_start(ap, fmt); ap 118 tools/testing/selftests/vm/thuge-gen.c vsnprintf(buf, sizeof buf, fmt, ap); ap 119 tools/testing/selftests/vm/thuge-gen.c va_end(ap); ap 27 tools/testing/selftests/x86/pkey-helpers.h va_list ap; ap 30 tools/testing/selftests/x86/pkey-helpers.h va_start(ap, format); ap 31 tools/testing/selftests/x86/pkey-helpers.h vprintf(format, ap); ap 32 tools/testing/selftests/x86/pkey-helpers.h va_end(ap); ap 77 tools/usb/ffs-test.c va_list ap; ap 80 tools/usb/ffs-test.c va_start(ap, fmt); ap 81 tools/usb/ffs-test.c vfprintf(stderr, fmt, ap); ap 82 tools/usb/ffs-test.c va_end(ap); ap 228 tools/vm/page-types.c va_list ap; ap 230 tools/vm/page-types.c va_start(ap, x); ap 231 tools/vm/page-types.c vfprintf(stderr, x, ap); ap 232 tools/vm/page-types.c va_end(ap); ap 103 tools/vm/slabinfo.c va_list ap; ap 105 tools/vm/slabinfo.c va_start(ap, x); ap 106 tools/vm/slabinfo.c vfprintf(stderr, x, ap); ap 107 tools/vm/slabinfo.c va_end(ap); ap 588 virt/kvm/arm/hyp/vgic-v3-sr.c u8 pre, ap; ap 593 virt/kvm/arm/hyp/vgic-v3-sr.c ap = pre >> __vgic_v3_bpr_min(); ap 594 virt/kvm/arm/hyp/vgic-v3-sr.c apr = ap / 32; ap 598 virt/kvm/arm/hyp/vgic-v3-sr.c __vgic_v3_write_ap0rn(val | BIT(ap % 32), apr); ap 601 virt/kvm/arm/hyp/vgic-v3-sr.c __vgic_v3_write_ap1rn(val | BIT(ap % 32), apr);