pi 433 arch/ia64/include/asm/pal.h pi : 1, /* Precise instruction pointer */ pi 531 arch/ia64/include/asm/pal.h pi : 1; /* Precise instruction pointer pi 568 arch/ia64/include/asm/pal.h pi : 1; /* Precise instruction pointer pi 604 arch/ia64/include/asm/pal.h pi : 1; /* Precise instruction pointer pi 626 arch/ia64/include/asm/pal.h pi : 1; /* Precise instruction pointer pi 664 arch/ia64/include/asm/pal.h pi : 1; /* Precise instruction pointer pi 110 arch/ia64/kernel/time.c struct thread_info *pi = task_thread_info(prev); pi 113 arch/ia64/kernel/time.c ni->ac_stamp = pi->ac_stamp; pi 124 arch/powerpc/platforms/embedded6xx/flipper-pic.c struct device_node *pi; pi 130 arch/powerpc/platforms/embedded6xx/flipper-pic.c pi = of_get_parent(np); pi 131 arch/powerpc/platforms/embedded6xx/flipper-pic.c if (!pi) { pi 135 arch/powerpc/platforms/embedded6xx/flipper-pic.c if (!of_device_is_compatible(pi, "nintendo,flipper-pi")) { pi 140 arch/powerpc/platforms/embedded6xx/flipper-pic.c retval = of_address_to_resource(pi, 0, &res); pi 64 arch/powerpc/platforms/pseries/hvcserver.c struct hvcs_partner_info *pi; pi 72 arch/powerpc/platforms/pseries/hvcserver.c pi = list_entry(element, struct hvcs_partner_info, node); pi 74 arch/powerpc/platforms/pseries/hvcserver.c kfree(pi); pi 265 arch/s390/kernel/machine_kexec_file.c int arch_kexec_apply_relocations_add(struct purgatory_info *pi, pi 273 arch/s390/kernel/machine_kexec_file.c relas = (void *)pi->ehdr + relsec->sh_offset; pi 281 arch/s390/kernel/machine_kexec_file.c sym = (void *)pi->ehdr + symtab->sh_offset; pi 290 arch/s390/kernel/machine_kexec_file.c if (sym->st_shndx >= pi->ehdr->e_shnum && pi 294 arch/s390/kernel/machine_kexec_file.c loc = pi->purgatory_buf; pi 300 arch/s390/kernel/machine_kexec_file.c val += pi->sechdrs[sym->st_shndx].sh_addr; pi 42 arch/sparc/include/asm/ide.h u32 *pi; pi 48 arch/sparc/include/asm/ide.h pi = (u32 *)ps; pi 54 arch/sparc/include/asm/ide.h *pi++ = w; pi 57 arch/sparc/include/asm/ide.h ps = (u16 *)pi; pi 72 arch/sparc/include/asm/ide.h const u32 *pi; pi 78 arch/sparc/include/asm/ide.h pi = (const u32 *)ps; pi 82 arch/sparc/include/asm/ide.h w = *pi++; pi 87 arch/sparc/include/asm/ide.h ps = (const u16 *)pi; pi 93 arch/sparc/lib/PeeCeeI.c u32 *pi; pi 98 arch/sparc/lib/PeeCeeI.c pi = (u32 *)pb; pi 106 arch/sparc/lib/PeeCeeI.c *pi++ = w; pi 109 arch/sparc/lib/PeeCeeI.c pb = (u8 *)pi; pi 122 arch/sparc/lib/PeeCeeI.c u32 *pi; pi 128 arch/sparc/lib/PeeCeeI.c pi = (u32 *)ps; pi 134 arch/sparc/lib/PeeCeeI.c *pi++ = w; pi 137 arch/sparc/lib/PeeCeeI.c ps = (u16 *)pi; pi 150 arch/sparc/lib/PeeCeeI.c u32 *pi = dst; pi 152 arch/sparc/lib/PeeCeeI.c *pi++ = __raw_readl(addr); pi 154 arch/sparc/lib/PeeCeeI.c u32 l = 0, l2, *pi; pi 164 arch/sparc/lib/PeeCeeI.c pi = (u32 *)ps; pi 167 arch/sparc/lib/PeeCeeI.c *pi++ = (l << 16) | (l2 >> 16); pi 170 arch/sparc/lib/PeeCeeI.c ps = (u16 *)pi; pi 181 arch/sparc/lib/PeeCeeI.c pi = (u32 *)ps; pi 184 arch/sparc/lib/PeeCeeI.c *pi++ = (l << 24) | (l2 >> 8); pi 187 arch/sparc/lib/PeeCeeI.c pb = (u8 *)pi; pi 196 arch/sparc/lib/PeeCeeI.c pi = (u32 *)pb; pi 199 arch/sparc/lib/PeeCeeI.c *pi++ = (l << 8) | (l2 >> 24); pi 202 arch/sparc/lib/PeeCeeI.c ps = (u16 *)pi; pi 494 arch/x86/kernel/machine_kexec_64.c int arch_kexec_apply_relocations_add(struct purgatory_info *pi, pi 507 arch/x86/kernel/machine_kexec_64.c sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff; pi 508 arch/x86/kernel/machine_kexec_64.c strtab = (char *)pi->ehdr + sechdrs[symtabsec->sh_link].sh_offset; pi 509 arch/x86/kernel/machine_kexec_64.c shstrtab = (char *)pi->ehdr + sechdrs[pi->ehdr->e_shstrndx].sh_offset; pi 511 arch/x86/kernel/machine_kexec_64.c rel = (void *)pi->ehdr + relsec->sh_offset; pi 528 arch/x86/kernel/machine_kexec_64.c location = pi->purgatory_buf; pi 541 arch/x86/kernel/machine_kexec_64.c sym = (void *)pi->ehdr + symtabsec->sh_offset; pi 565 arch/x86/kernel/machine_kexec_64.c else if (sym->st_shndx >= pi->ehdr->e_shnum) { pi 570 arch/x86/kernel/machine_kexec_64.c sec_base = pi->sechdrs[sym->st_shndx].sh_addr; pi 5215 arch/x86/kvm/svm.c static void svm_ir_list_del(struct vcpu_svm *svm, struct amd_iommu_pi_data *pi) pi 5222 arch/x86/kvm/svm.c if (cur->data != pi->ir_data) pi 5231 arch/x86/kvm/svm.c static int svm_ir_list_add(struct vcpu_svm *svm, struct amd_iommu_pi_data *pi) pi 5242 arch/x86/kvm/svm.c if (pi->ir_data && (pi->prev_ga_tag != 0)) { pi 5244 arch/x86/kvm/svm.c u32 vcpu_id = AVIC_GATAG_TO_VCPUID(pi->prev_ga_tag); pi 5254 arch/x86/kvm/svm.c svm_ir_list_del(prev_svm, pi); pi 5266 arch/x86/kvm/svm.c ir->data = pi->ir_data; pi 5354 arch/x86/kvm/svm.c struct amd_iommu_pi_data pi; pi 5357 arch/x86/kvm/svm.c pi.base = __sme_set(page_to_phys(svm->avic_backing_page) & pi 5359 arch/x86/kvm/svm.c pi.ga_tag = AVIC_GATAG(to_kvm_svm(kvm)->avic_vm_id, pi 5361 arch/x86/kvm/svm.c pi.is_guest_mode = true; pi 5362 arch/x86/kvm/svm.c pi.vcpu_data = &vcpu_info; pi 5363 arch/x86/kvm/svm.c ret = irq_set_vcpu_affinity(host_irq, &pi); pi 5372 arch/x86/kvm/svm.c if (!ret && pi.is_guest_mode) pi 5373 arch/x86/kvm/svm.c svm_ir_list_add(svm, &pi); pi 5376 arch/x86/kvm/svm.c struct amd_iommu_pi_data pi; pi 5383 arch/x86/kvm/svm.c pi.is_guest_mode = false; pi 5384 arch/x86/kvm/svm.c ret = irq_set_vcpu_affinity(host_irq, &pi); pi 5392 arch/x86/kvm/svm.c if (!ret && pi.prev_ga_tag) { pi 5393 arch/x86/kvm/svm.c int id = AVIC_GATAG_TO_VCPUID(pi.prev_ga_tag); pi 5398 arch/x86/kvm/svm.c svm_ir_list_del(to_svm(vcpu), &pi); pi 46 arch/x86/mm/numa_emulation.c struct numa_meminfo *pi, pi 50 arch/x86/mm/numa_emulation.c struct numa_memblk *pb = &pi->blk[phys_blk]; pi 68 arch/x86/mm/numa_emulation.c numa_remove_memblk_from(phys_blk, pi); pi 83 arch/x86/mm/numa_emulation.c struct numa_meminfo *pi, pi 131 arch/x86/mm/numa_emulation.c phys_blk = emu_find_memblk_by_nid(i, pi); pi 136 arch/x86/mm/numa_emulation.c start = pi->blk[phys_blk].start; pi 137 arch/x86/mm/numa_emulation.c limit = pi->blk[phys_blk].end; pi 172 arch/x86/mm/numa_emulation.c ret = emu_setup_memblk(ei, pi, nid++ % nr_nodes, pi 216 arch/x86/mm/numa_emulation.c struct numa_meminfo *pi, pi 278 arch/x86/mm/numa_emulation.c phys_blk = emu_find_memblk_by_nid(i, pi); pi 284 arch/x86/mm/numa_emulation.c start = pi->blk[phys_blk].start; pi 285 arch/x86/mm/numa_emulation.c limit = pi->blk[phys_blk].end; pi 309 arch/x86/mm/numa_emulation.c ret = emu_setup_memblk(ei, pi, nid++ % MAX_NUMNODES, pi 320 arch/x86/mm/numa_emulation.c struct numa_meminfo *pi, pi 323 arch/x86/mm/numa_emulation.c return split_nodes_size_interleave_uniform(ei, pi, addr, max_addr, size, pi 373 arch/x86/mm/numa_emulation.c static struct numa_meminfo pi __initdata; pi 384 arch/x86/mm/numa_emulation.c pi = *numa_meminfo; pi 410 arch/x86/mm/numa_emulation.c ret = split_nodes_size_interleave_uniform(&ei, &pi, pi 411 arch/x86/mm/numa_emulation.c pi.blk[0].start, pi.blk[0].end, 0, pi 412 arch/x86/mm/numa_emulation.c n, &pi.blk[0], nid); pi 427 arch/x86/mm/numa_emulation.c ret = split_nodes_size_interleave(&ei, &pi, 0, max_addr, size); pi 432 arch/x86/mm/numa_emulation.c ret = split_nodes_interleave(&ei, &pi, 0, max_addr, n); pi 21 block/partitions/atari.c #define VALID_PARTITION(pi,hdsiz) \ pi 22 block/partitions/atari.c (((pi)->flg & 1) && \ pi 23 block/partitions/atari.c isalnum((pi)->id[0]) && isalnum((pi)->id[1]) && isalnum((pi)->id[2]) && \ pi 24 block/partitions/atari.c be32_to_cpu((pi)->st) <= (hdsiz) && \ pi 25 block/partitions/atari.c be32_to_cpu((pi)->st) + be32_to_cpu((pi)->siz) <= (hdsiz)) pi 38 block/partitions/atari.c struct partition_info *pi; pi 72 block/partitions/atari.c pi = &rs->part[0]; pi 74 block/partitions/atari.c for (slot = 1; pi < &rs->part[4] && slot < state->limit; slot++, pi++) { pi 79 block/partitions/atari.c if ( !(pi->flg & 1) ) pi 82 block/partitions/atari.c if (memcmp (pi->id, "XGM", 3) != 0) { pi 84 block/partitions/atari.c put_partition (state, slot, be32_to_cpu(pi->st), pi 85 block/partitions/atari.c be32_to_cpu(pi->siz)); pi 93 block/partitions/atari.c partsect = extensect = be32_to_cpu(pi->st); pi 135 block/partitions/atari.c pi = &rs->icdpart[0]; pi 137 block/partitions/atari.c if (OK_id(pi->id)) { pi 139 block/partitions/atari.c for (; pi < &rs->icdpart[8] && slot < state->limit; slot++, pi++) { pi 141 block/partitions/atari.c if (!((pi->flg & 1) && OK_id(pi->id))) pi 145 block/partitions/atari.c be32_to_cpu(pi->st), pi 146 block/partitions/atari.c be32_to_cpu(pi->siz)); pi 35 block/t10-pi.c struct t10_pi_tuple *pi = iter->prot_buf; pi 37 block/t10-pi.c pi->guard_tag = fn(iter->data_buf, iter->interval); pi 38 block/t10-pi.c pi->app_tag = 0; pi 41 block/t10-pi.c pi->ref_tag = cpu_to_be32(lower_32_bits(iter->seed)); pi 43 block/t10-pi.c pi->ref_tag = 0; pi 61 block/t10-pi.c struct t10_pi_tuple *pi = iter->prot_buf; pi 66 block/t10-pi.c if (pi->app_tag == T10_PI_APP_ESCAPE) pi 69 block/t10-pi.c if (be32_to_cpu(pi->ref_tag) != pi 74 block/t10-pi.c iter->seed, be32_to_cpu(pi->ref_tag)); pi 78 block/t10-pi.c if (pi->app_tag == T10_PI_APP_ESCAPE && pi 79 block/t10-pi.c pi->ref_tag == T10_PI_REF_ESCAPE) pi 85 block/t10-pi.c if (pi->guard_tag != csum) { pi 89 block/t10-pi.c be16_to_cpu(pi->guard_tag), be16_to_cpu(csum)); pi 155 block/t10-pi.c struct t10_pi_tuple *pi = p; pi 157 block/t10-pi.c if (be32_to_cpu(pi->ref_tag) == virt) pi 158 block/t10-pi.c pi->ref_tag = cpu_to_be32(ref_tag); pi 203 block/t10-pi.c struct t10_pi_tuple *pi = p; pi 205 block/t10-pi.c if (be32_to_cpu(pi->ref_tag) == ref_tag) pi 206 block/t10-pi.c pi->ref_tag = cpu_to_be32(virt); pi 358 drivers/ata/acard-ahci.c struct ata_port_info pi = acard_ahci_port_info[board_id]; pi 359 drivers/ata/acard-ahci.c const struct ata_port_info *ppi[] = { &pi, NULL }; pi 390 drivers/ata/acard-ahci.c hpriv->flags |= (unsigned long)pi.private_data; pi 402 drivers/ata/acard-ahci.c pi.flags |= ATA_FLAG_NCQ; pi 405 drivers/ata/acard-ahci.c pi.flags |= ATA_FLAG_PMP; pi 407 drivers/ata/acard-ahci.c ahci_set_em_messages(hpriv, &pi); pi 1629 drivers/ata/ahci.c struct ata_port_info pi = ahci_port_info[board_id]; pi 1630 drivers/ata/ahci.c const struct ata_port_info *ppi[] = { &pi, NULL }; pi 1706 drivers/ata/ahci.c hpriv->flags |= (unsigned long)pi.private_data; pi 1746 drivers/ata/ahci.c pi.flags |= ATA_FLAG_NCQ; pi 1754 drivers/ata/ahci.c pi.flags |= ATA_FLAG_FPDMA_AA; pi 1762 drivers/ata/ahci.c pi.flags |= ATA_FLAG_FPDMA_AUX; pi 1766 drivers/ata/ahci.c pi.flags |= ATA_FLAG_PMP; pi 1768 drivers/ata/ahci.c ahci_set_em_messages(hpriv, &pi); pi 1771 drivers/ata/ahci.c pi.flags |= ATA_FLAG_NO_POWEROFF_SPINDOWN; pi 1777 drivers/ata/ahci.c pi.flags |= ATA_FLAG_NO_LPM; pi 1821 drivers/ata/ahci.c if (pi.flags & ATA_FLAG_EM) pi 417 drivers/ata/ahci.h struct ata_port_info *pi); pi 2508 drivers/ata/libahci.c struct ata_port_info *pi) pi 2525 drivers/ata/libahci.c pi->flags |= ATA_FLAG_EM; pi 2527 drivers/ata/libahci.c pi->flags |= ATA_FLAG_SW_ACTIVITY; pi 579 drivers/ata/libahci_platform.c struct ata_port_info pi = *pi_template; pi 580 drivers/ata/libahci_platform.c const struct ata_port_info *ppi[] = { &pi, NULL }; pi 594 drivers/ata/libahci_platform.c pi.private_data = (void *)(unsigned long)hpriv->flags; pi 599 drivers/ata/libahci_platform.c pi.flags |= ATA_FLAG_NCQ; pi 602 drivers/ata/libahci_platform.c pi.flags |= ATA_FLAG_PMP; pi 604 drivers/ata/libahci_platform.c ahci_set_em_messages(hpriv, &pi); pi 624 drivers/ata/libahci_platform.c if (pi.flags & ATA_FLAG_EM) pi 6197 drivers/ata/libata-core.c const struct ata_port_info *pi; pi 6205 drivers/ata/libata-core.c for (i = 0, j = 0, pi = NULL; i < host->n_ports; i++) { pi 6209 drivers/ata/libata-core.c pi = ppi[j++]; pi 6211 drivers/ata/libata-core.c ap->pio_mask = pi->pio_mask; pi 6212 drivers/ata/libata-core.c ap->mwdma_mask = pi->mwdma_mask; pi 6213 drivers/ata/libata-core.c ap->udma_mask = pi->udma_mask; pi 6214 drivers/ata/libata-core.c ap->flags |= pi->flags; pi 6215 drivers/ata/libata-core.c ap->link.flags |= pi->link_flags; pi 6216 drivers/ata/libata-core.c ap->ops = pi->port_ops; pi 6218 drivers/ata/libata-core.c if (!host->ops && (pi->port_ops != &ata_dummy_port_ops)) pi 6219 drivers/ata/libata-core.c host->ops = pi->port_ops; pi 2451 drivers/ata/libata-sff.c const struct ata_port_info *pi; pi 2457 drivers/ata/libata-sff.c pi = ata_sff_find_valid_pi(ppi); pi 2458 drivers/ata/libata-sff.c if (!pi) { pi 2580 drivers/ata/libata-sff.c unsigned int si, pi; pi 2582 drivers/ata/libata-sff.c pi = 0; pi 2600 drivers/ata/libata-sff.c prd[pi].addr = cpu_to_le32(addr); pi 2601 drivers/ata/libata-sff.c prd[pi].flags_len = cpu_to_le32(len & 0xffff); pi 2602 drivers/ata/libata-sff.c VPRINTK("PRD[%u] = (0x%X, 0x%X)\n", pi, addr, len); pi 2604 drivers/ata/libata-sff.c pi++; pi 2610 drivers/ata/libata-sff.c prd[pi - 1].flags_len |= cpu_to_le32(ATA_PRD_EOT); pi 2631 drivers/ata/libata-sff.c unsigned int si, pi; pi 2633 drivers/ata/libata-sff.c pi = 0; pi 2652 drivers/ata/libata-sff.c prd[pi].addr = cpu_to_le32(addr); pi 2657 drivers/ata/libata-sff.c prd[pi].flags_len = cpu_to_le32(0x8000); pi 2659 drivers/ata/libata-sff.c prd[++pi].addr = cpu_to_le32(addr + 0x8000); pi 2661 drivers/ata/libata-sff.c prd[pi].flags_len = cpu_to_le32(blen); pi 2662 drivers/ata/libata-sff.c VPRINTK("PRD[%u] = (0x%X, 0x%X)\n", pi, addr, len); pi 2664 drivers/ata/libata-sff.c pi++; pi 2670 drivers/ata/libata-sff.c prd[pi - 1].flags_len |= cpu_to_le32(ATA_PRD_EOT); pi 112 drivers/ata/pata_cs5520.c struct ata_port_info pi = { pi 137 drivers/ata/pata_cs5520.c ppi[0] = π pi 139 drivers/ata/pata_cs5520.c ppi[1] = π pi 146 drivers/ata/pata_cs5520.c pi.mwdma_mask = id->driver_data; pi 351 drivers/ata/pata_ftide010.c struct ata_port_info *pi, pi 376 drivers/ata/pata_ftide010.c pi->flags |= ATA_FLAG_SATA; pi 380 drivers/ata/pata_ftide010.c pi->mwdma_mask = 0; pi 381 drivers/ata/pata_ftide010.c pi->udma_mask = 0; pi 444 drivers/ata/pata_ftide010.c struct ata_port_info *pi, pi 456 drivers/ata/pata_ftide010.c struct ata_port_info pi = ftide010_port_info; pi 457 drivers/ata/pata_ftide010.c const struct ata_port_info *ppi[] = { &pi, NULL }; pi 500 drivers/ata/pata_ftide010.c &pi, pi 520 drivers/ata/pata_macio.c unsigned int si, pi; pi 530 drivers/ata/pata_macio.c pi = 0; pi 543 drivers/ata/pata_macio.c BUG_ON (pi++ >= MAX_DCMDS); pi 559 drivers/ata/pata_macio.c BUG_ON(!pi); pi 570 drivers/ata/pata_macio.c dev_dbgdma(priv->dev, "%s: %d DMA list entries\n", __func__, pi); pi 1207 drivers/ata/sata_dwc_460ex.c struct ata_port_info pi = sata_dwc_port_info[0]; pi 1208 drivers/ata/sata_dwc_460ex.c const struct ata_port_info *ppi[] = { &pi, NULL }; pi 1451 drivers/ata/sata_fsl.c struct ata_port_info pi = sata_fsl_port_info[0]; pi 1452 drivers/ata/sata_fsl.c const struct ata_port_info *ppi[] = { &pi, NULL }; pi 179 drivers/ata/sata_highbank.c struct ata_port_info *pi) pi 211 drivers/ata/sata_highbank.c pi->flags |= ATA_FLAG_EM | ATA_FLAG_SW_ACTIVITY; pi 462 drivers/ata/sata_highbank.c struct ata_port_info pi = ahci_highbank_port_info; pi 463 drivers/ata/sata_highbank.c const struct ata_port_info *ppi[] = { &pi, NULL }; pi 489 drivers/ata/sata_highbank.c hpriv->flags |= (unsigned long)pi.private_data; pi 506 drivers/ata/sata_highbank.c pi.flags |= ATA_FLAG_NCQ; pi 509 drivers/ata/sata_highbank.c pi.flags |= ATA_FLAG_PMP; pi 523 drivers/ata/sata_highbank.c highbank_set_em_messages(dev, hpriv, &pi); pi 1170 drivers/ata/sata_promise.c const struct ata_port_info *pi = &pdc_port_info[ent->driver_data]; pi 1194 drivers/ata/sata_promise.c if (pi->flags & PDC_FLAG_4_PORTS) pi 1197 drivers/ata/sata_promise.c ppi[i] = pi; pi 1199 drivers/ata/sata_promise.c if (pi->flags & PDC_FLAG_SATA_PATA) { pi 1202 drivers/ata/sata_promise.c ppi[n_ports++] = pi + 1; pi 1217 drivers/ata/sata_promise.c is_sataii_tx4 = pdc_is_sataii_tx4(pi->flags); pi 723 drivers/ata/sata_sil.c struct ata_port_info pi = sil_port_info[board_id]; pi 724 drivers/ata/sata_sil.c const struct ata_port_info *ppi[] = { &pi, NULL }; pi 738 drivers/ata/sata_sil.c pi.flags |= ATA_FLAG_NO_POWEROFF_SPINDOWN | pi 1261 drivers/ata/sata_sil24.c struct ata_port_info pi = sil24_port_info[ent->driver_data]; pi 1262 drivers/ata/sata_sil24.c const struct ata_port_info *ppi[] = { &pi, NULL }; pi 1287 drivers/ata/sata_sil24.c if (pi.flags & SIL24_FLAG_PCIX_IRQ_WOC) { pi 1293 drivers/ata/sata_sil24.c pi.flags &= ~SIL24_FLAG_PCIX_IRQ_WOC; pi 183 drivers/ata/sata_sis.c struct ata_port_info pi = sis_port_info; pi 184 drivers/ata/sata_sis.c const struct ata_port_info *ppi[] = { &pi, &pi }; pi 200 drivers/ata/sata_sis.c pi.flags |= SIS_FLAG_CFGSCR; pi 205 drivers/ata/sata_sis.c if ((!(pi.flags & SIS_FLAG_CFGSCR)) && pi 210 drivers/ata/sata_sis.c pi.flags |= SIS_FLAG_CFGSCR; pi 236 drivers/ata/sata_sis.c pi.flags |= ATA_FLAG_SLAVE_POSS; pi 245 drivers/ata/sata_sis.c pi.flags |= ATA_FLAG_SLAVE_POSS; pi 254 drivers/ata/sata_sis.c pi.flags |= ATA_FLAG_SLAVE_POSS; pi 280 drivers/ata/sata_sis.c if (!(pi.flags & SIS_FLAG_CFGSCR)) { pi 323 drivers/ata/sata_vsc.c static const struct ata_port_info pi = { pi 330 drivers/ata/sata_vsc.c const struct ata_port_info *ppi[] = { &pi, NULL }; pi 814 drivers/block/drbd/drbd_receiver.c struct packet_info pi; pi 833 drivers/block/drbd/drbd_receiver.c err = decode_header(connection, connection->data.rbuf, &pi); pi 836 drivers/block/drbd/drbd_receiver.c return pi.cmd; pi 1153 drivers/block/drbd/drbd_receiver.c static int decode_header(struct drbd_connection *connection, void *header, struct packet_info *pi) pi 1164 drivers/block/drbd/drbd_receiver.c pi->vnr = be16_to_cpu(h->volume); pi 1165 drivers/block/drbd/drbd_receiver.c pi->cmd = be16_to_cpu(h->command); pi 1166 drivers/block/drbd/drbd_receiver.c pi->size = be32_to_cpu(h->length); pi 1170 drivers/block/drbd/drbd_receiver.c pi->cmd = be16_to_cpu(h->command); pi 1171 drivers/block/drbd/drbd_receiver.c pi->size = be32_to_cpu(h->length); pi 1172 drivers/block/drbd/drbd_receiver.c pi->vnr = 0; pi 1176 drivers/block/drbd/drbd_receiver.c pi->cmd = be16_to_cpu(h->command); pi 1177 drivers/block/drbd/drbd_receiver.c pi->size = be16_to_cpu(h->length); pi 1178 drivers/block/drbd/drbd_receiver.c pi->vnr = 0; pi 1185 drivers/block/drbd/drbd_receiver.c pi->data = header + header_size; pi 1197 drivers/block/drbd/drbd_receiver.c static int drbd_recv_header(struct drbd_connection *connection, struct packet_info *pi) pi 1206 drivers/block/drbd/drbd_receiver.c err = decode_header(connection, buffer, pi); pi 1212 drivers/block/drbd/drbd_receiver.c static int drbd_recv_header_maybe_unplug(struct drbd_connection *connection, struct packet_info *pi) pi 1237 drivers/block/drbd/drbd_receiver.c err = decode_header(connection, connection->data.rbuf, pi); pi 1769 drivers/block/drbd/drbd_receiver.c static int receive_Barrier(struct drbd_connection *connection, struct packet_info *pi) pi 1772 drivers/block/drbd/drbd_receiver.c struct p_barrier *p = pi->data; pi 1859 drivers/block/drbd/drbd_receiver.c struct packet_info *pi) __must_hold(local) pi 1866 drivers/block/drbd/drbd_receiver.c unsigned int data_size = pi->size, ds; pi 1870 drivers/block/drbd/drbd_receiver.c struct p_trim *trim = (pi->cmd == P_TRIM) ? pi->data : NULL; pi 1871 drivers/block/drbd/drbd_receiver.c struct p_trim *zeroes = (pi->cmd == P_ZEROES) ? pi->data : NULL; pi 1872 drivers/block/drbd/drbd_receiver.c struct p_trim *wsame = (pi->cmd == P_WSAME) ? pi->data : NULL; pi 2086 drivers/block/drbd/drbd_receiver.c struct packet_info *pi) __releases(local) pi 2091 drivers/block/drbd/drbd_receiver.c peer_req = read_in_block(peer_device, ID_SYNCER, sector, pi); pi 2108 drivers/block/drbd/drbd_receiver.c atomic_add(pi->size >> 9, &device->rs_sect_ev); pi 2142 drivers/block/drbd/drbd_receiver.c static int receive_DataReply(struct drbd_connection *connection, struct packet_info *pi) pi 2149 drivers/block/drbd/drbd_receiver.c struct p_data *p = pi->data; pi 2151 drivers/block/drbd/drbd_receiver.c peer_device = conn_peer_device(connection, pi->vnr); pi 2167 drivers/block/drbd/drbd_receiver.c err = recv_dless_read(peer_device, req, sector, pi->size); pi 2177 drivers/block/drbd/drbd_receiver.c static int receive_RSDataReply(struct drbd_connection *connection, struct packet_info *pi) pi 2183 drivers/block/drbd/drbd_receiver.c struct p_data *p = pi->data; pi 2185 drivers/block/drbd/drbd_receiver.c peer_device = conn_peer_device(connection, pi->vnr); pi 2197 drivers/block/drbd/drbd_receiver.c err = recv_resync_read(peer_device, sector, pi); pi 2202 drivers/block/drbd/drbd_receiver.c err = drbd_drain_block(peer_device, pi->size); pi 2204 drivers/block/drbd/drbd_receiver.c drbd_send_ack_dp(peer_device, P_NEG_ACK, p, pi->size); pi 2207 drivers/block/drbd/drbd_receiver.c atomic_add(pi->size >> 9, &device->rs_sect_in); pi 2585 drivers/block/drbd/drbd_receiver.c static int receive_Data(struct drbd_connection *connection, struct packet_info *pi) pi 2592 drivers/block/drbd/drbd_receiver.c struct p_data *p = pi->data; pi 2598 drivers/block/drbd/drbd_receiver.c peer_device = conn_peer_device(connection, pi->vnr); pi 2607 drivers/block/drbd/drbd_receiver.c drbd_send_ack_dp(peer_device, P_NEG_ACK, p, pi->size); pi 2609 drivers/block/drbd/drbd_receiver.c err2 = drbd_drain_block(peer_device, pi->size); pi 2622 drivers/block/drbd/drbd_receiver.c peer_req = read_in_block(peer_device, p->block_id, sector, pi); pi 2635 drivers/block/drbd/drbd_receiver.c if (pi->cmd == P_TRIM) { pi 2643 drivers/block/drbd/drbd_receiver.c } else if (pi->cmd == P_ZEROES) { pi 2835 drivers/block/drbd/drbd_receiver.c static int receive_DataRequest(struct drbd_connection *connection, struct packet_info *pi) pi 2845 drivers/block/drbd/drbd_receiver.c struct p_block_req *p = pi->data; pi 2847 drivers/block/drbd/drbd_receiver.c peer_device = conn_peer_device(connection, pi->vnr); pi 2869 drivers/block/drbd/drbd_receiver.c switch (pi->cmd) { pi 2892 drivers/block/drbd/drbd_receiver.c return drbd_drain_block(peer_device, pi->size); pi 2905 drivers/block/drbd/drbd_receiver.c switch (pi->cmd) { pi 2930 drivers/block/drbd/drbd_receiver.c di = kmalloc(sizeof(*di) + pi->size, GFP_NOIO); pi 2934 drivers/block/drbd/drbd_receiver.c di->digest_size = pi->size; pi 2940 drivers/block/drbd/drbd_receiver.c if (drbd_recv_all(peer_device->connection, di->digest, pi->size)) pi 2943 drivers/block/drbd/drbd_receiver.c if (pi->cmd == P_CSUM_RS_REQUEST) { pi 2950 drivers/block/drbd/drbd_receiver.c } else if (pi->cmd == P_OV_REPLY) { pi 3666 drivers/block/drbd/drbd_receiver.c static int receive_protocol(struct drbd_connection *connection, struct packet_info *pi) pi 3668 drivers/block/drbd/drbd_receiver.c struct p_protocol *p = pi->data; pi 3687 drivers/block/drbd/drbd_receiver.c if (pi->size > sizeof(integrity_alg)) pi 3689 drivers/block/drbd/drbd_receiver.c err = drbd_recv_all(connection, integrity_alg, pi->size); pi 3695 drivers/block/drbd/drbd_receiver.c if (pi->cmd != P_PROTOCOL_UPDATE) { pi 3840 drivers/block/drbd/drbd_receiver.c static int ignore_remaining_packet(struct drbd_connection *connection, struct packet_info *pi) pi 3843 drivers/block/drbd/drbd_receiver.c int size = pi->size; pi 3871 drivers/block/drbd/drbd_receiver.c static int config_unknown_volume(struct drbd_connection *connection, struct packet_info *pi) pi 3874 drivers/block/drbd/drbd_receiver.c cmdname(pi->cmd), pi->vnr); pi 3875 drivers/block/drbd/drbd_receiver.c return ignore_remaining_packet(connection, pi); pi 3878 drivers/block/drbd/drbd_receiver.c static int receive_SyncParam(struct drbd_connection *connection, struct packet_info *pi) pi 3893 drivers/block/drbd/drbd_receiver.c peer_device = conn_peer_device(connection, pi->vnr); pi 3895 drivers/block/drbd/drbd_receiver.c return config_unknown_volume(connection, pi); pi 3904 drivers/block/drbd/drbd_receiver.c if (pi->size > exp_max_sz) { pi 3906 drivers/block/drbd/drbd_receiver.c pi->size, exp_max_sz); pi 3912 drivers/block/drbd/drbd_receiver.c data_size = pi->size - header_size; pi 3915 drivers/block/drbd/drbd_receiver.c data_size = pi->size - header_size; pi 3919 drivers/block/drbd/drbd_receiver.c data_size = pi->size - header_size; pi 3924 drivers/block/drbd/drbd_receiver.c p = pi->data; pi 4103 drivers/block/drbd/drbd_receiver.c static int receive_sizes(struct drbd_connection *connection, struct packet_info *pi) pi 4107 drivers/block/drbd/drbd_receiver.c struct p_sizes *p = pi->data; pi 4115 drivers/block/drbd/drbd_receiver.c peer_device = conn_peer_device(connection, pi->vnr); pi 4117 drivers/block/drbd/drbd_receiver.c return config_unknown_volume(connection, pi); pi 4276 drivers/block/drbd/drbd_receiver.c static int receive_uuids(struct drbd_connection *connection, struct packet_info *pi) pi 4280 drivers/block/drbd/drbd_receiver.c struct p_uuids *p = pi->data; pi 4284 drivers/block/drbd/drbd_receiver.c peer_device = conn_peer_device(connection, pi->vnr); pi 4286 drivers/block/drbd/drbd_receiver.c return config_unknown_volume(connection, pi); pi 4383 drivers/block/drbd/drbd_receiver.c static int receive_req_state(struct drbd_connection *connection, struct packet_info *pi) pi 4387 drivers/block/drbd/drbd_receiver.c struct p_req_state *p = pi->data; pi 4391 drivers/block/drbd/drbd_receiver.c peer_device = conn_peer_device(connection, pi->vnr); pi 4416 drivers/block/drbd/drbd_receiver.c static int receive_req_conn_state(struct drbd_connection *connection, struct packet_info *pi) pi 4418 drivers/block/drbd/drbd_receiver.c struct p_req_state *p = pi->data; pi 4440 drivers/block/drbd/drbd_receiver.c static int receive_state(struct drbd_connection *connection, struct packet_info *pi) pi 4444 drivers/block/drbd/drbd_receiver.c struct p_state *p = pi->data; pi 4450 drivers/block/drbd/drbd_receiver.c peer_device = conn_peer_device(connection, pi->vnr); pi 4452 drivers/block/drbd/drbd_receiver.c return config_unknown_volume(connection, pi); pi 4637 drivers/block/drbd/drbd_receiver.c static int receive_sync_uuid(struct drbd_connection *connection, struct packet_info *pi) pi 4641 drivers/block/drbd/drbd_receiver.c struct p_rs_uuid *p = pi->data; pi 4643 drivers/block/drbd/drbd_receiver.c peer_device = conn_peer_device(connection, pi->vnr); pi 4861 drivers/block/drbd/drbd_receiver.c static int receive_bitmap(struct drbd_connection *connection, struct packet_info *pi) pi 4868 drivers/block/drbd/drbd_receiver.c peer_device = conn_peer_device(connection, pi->vnr); pi 4883 drivers/block/drbd/drbd_receiver.c if (pi->cmd == P_BITMAP) pi 4884 drivers/block/drbd/drbd_receiver.c err = receive_bitmap_plain(peer_device, pi->size, pi->data, &c); pi 4885 drivers/block/drbd/drbd_receiver.c else if (pi->cmd == P_COMPRESSED_BITMAP) { pi 4888 drivers/block/drbd/drbd_receiver.c struct p_compressed_bm *p = pi->data; pi 4890 drivers/block/drbd/drbd_receiver.c if (pi->size > DRBD_SOCKET_BUFFER_SIZE - drbd_header_size(connection)) { pi 4895 drivers/block/drbd/drbd_receiver.c if (pi->size <= sizeof(*p)) { pi 4896 drivers/block/drbd/drbd_receiver.c drbd_err(device, "ReportCBitmap packet too small (l:%u)\n", pi->size); pi 4900 drivers/block/drbd/drbd_receiver.c err = drbd_recv_all(peer_device->connection, p, pi->size); pi 4903 drivers/block/drbd/drbd_receiver.c err = decode_bitmap_c(peer_device, p, &c, pi->size); pi 4905 drivers/block/drbd/drbd_receiver.c drbd_warn(device, "receive_bitmap: cmd neither ReportBitMap nor ReportCBitMap (is 0x%x)", pi->cmd); pi 4910 drivers/block/drbd/drbd_receiver.c c.packets[pi->cmd == P_BITMAP]++; pi 4911 drivers/block/drbd/drbd_receiver.c c.bytes[pi->cmd == P_BITMAP] += drbd_header_size(connection) + pi->size; pi 4918 drivers/block/drbd/drbd_receiver.c err = drbd_recv_header(peer_device->connection, pi); pi 4949 drivers/block/drbd/drbd_receiver.c static int receive_skip(struct drbd_connection *connection, struct packet_info *pi) pi 4952 drivers/block/drbd/drbd_receiver.c pi->cmd, pi->size); pi 4954 drivers/block/drbd/drbd_receiver.c return ignore_remaining_packet(connection, pi); pi 4957 drivers/block/drbd/drbd_receiver.c static int receive_UnplugRemote(struct drbd_connection *connection, struct packet_info *pi) pi 4966 drivers/block/drbd/drbd_receiver.c static int receive_out_of_sync(struct drbd_connection *connection, struct packet_info *pi) pi 4970 drivers/block/drbd/drbd_receiver.c struct p_block_desc *p = pi->data; pi 4972 drivers/block/drbd/drbd_receiver.c peer_device = conn_peer_device(connection, pi->vnr); pi 4992 drivers/block/drbd/drbd_receiver.c static int receive_rs_deallocated(struct drbd_connection *connection, struct packet_info *pi) pi 4995 drivers/block/drbd/drbd_receiver.c struct p_block_desc *p = pi->data; pi 5000 drivers/block/drbd/drbd_receiver.c peer_device = conn_peer_device(connection, pi->vnr); pi 5029 drivers/block/drbd/drbd_receiver.c atomic_add(pi->size >> 9, &device->rs_sect_ev); pi 5098 drivers/block/drbd/drbd_receiver.c struct packet_info pi; pi 5107 drivers/block/drbd/drbd_receiver.c if (drbd_recv_header_maybe_unplug(connection, &pi)) pi 5110 drivers/block/drbd/drbd_receiver.c cmd = &drbd_cmd_handler[pi.cmd]; pi 5111 drivers/block/drbd/drbd_receiver.c if (unlikely(pi.cmd >= ARRAY_SIZE(drbd_cmd_handler) || !cmd->fn)) { pi 5113 drivers/block/drbd/drbd_receiver.c cmdname(pi.cmd), pi.cmd); pi 5118 drivers/block/drbd/drbd_receiver.c if (pi.cmd == P_SIZES && connection->agreed_features & DRBD_FF_WSAME) pi 5120 drivers/block/drbd/drbd_receiver.c if (pi.size > shs && !cmd->expect_payload) { pi 5122 drivers/block/drbd/drbd_receiver.c cmdname(pi.cmd), pi.size); pi 5125 drivers/block/drbd/drbd_receiver.c if (pi.size < shs) { pi 5127 drivers/block/drbd/drbd_receiver.c cmdname(pi.cmd), (int)shs, pi.size); pi 5133 drivers/block/drbd/drbd_receiver.c err = drbd_recv_all_warn(connection, pi.data, shs); pi 5136 drivers/block/drbd/drbd_receiver.c pi.size -= shs; pi 5140 drivers/block/drbd/drbd_receiver.c err = cmd->fn(connection, &pi); pi 5143 drivers/block/drbd/drbd_receiver.c cmdname(pi.cmd), err, pi.size); pi 5333 drivers/block/drbd/drbd_receiver.c struct packet_info pi; pi 5340 drivers/block/drbd/drbd_receiver.c err = drbd_recv_header(connection, &pi); pi 5344 drivers/block/drbd/drbd_receiver.c if (pi.cmd != P_CONNECTION_FEATURES) { pi 5346 drivers/block/drbd/drbd_receiver.c cmdname(pi.cmd), pi.cmd); pi 5350 drivers/block/drbd/drbd_receiver.c if (pi.size != expect) { pi 5352 drivers/block/drbd/drbd_receiver.c expect, pi.size); pi 5356 drivers/block/drbd/drbd_receiver.c p = pi.data; pi 5421 drivers/block/drbd/drbd_receiver.c struct packet_info pi; pi 5461 drivers/block/drbd/drbd_receiver.c err = drbd_recv_header(connection, &pi); pi 5467 drivers/block/drbd/drbd_receiver.c if (pi.cmd != P_AUTH_CHALLENGE) { pi 5469 drivers/block/drbd/drbd_receiver.c cmdname(pi.cmd), pi.cmd); pi 5474 drivers/block/drbd/drbd_receiver.c if (pi.size > CHALLENGE_LEN * 2) { pi 5480 drivers/block/drbd/drbd_receiver.c if (pi.size < CHALLENGE_LEN) { pi 5486 drivers/block/drbd/drbd_receiver.c peers_ch = kmalloc(pi.size, GFP_NOIO); pi 5493 drivers/block/drbd/drbd_receiver.c err = drbd_recv_all_warn(connection, peers_ch, pi.size); pi 5513 drivers/block/drbd/drbd_receiver.c rv = crypto_shash_digest(desc, peers_ch, pi.size, response); pi 5529 drivers/block/drbd/drbd_receiver.c err = drbd_recv_header(connection, &pi); pi 5535 drivers/block/drbd/drbd_receiver.c if (pi.cmd != P_AUTH_RESPONSE) { pi 5537 drivers/block/drbd/drbd_receiver.c cmdname(pi.cmd), pi.cmd); pi 5542 drivers/block/drbd/drbd_receiver.c if (pi.size != resp_size) { pi 5623 drivers/block/drbd/drbd_receiver.c static int got_conn_RqSReply(struct drbd_connection *connection, struct packet_info *pi) pi 5625 drivers/block/drbd/drbd_receiver.c struct p_req_state_reply *p = pi->data; pi 5640 drivers/block/drbd/drbd_receiver.c static int got_RqSReply(struct drbd_connection *connection, struct packet_info *pi) pi 5644 drivers/block/drbd/drbd_receiver.c struct p_req_state_reply *p = pi->data; pi 5647 drivers/block/drbd/drbd_receiver.c peer_device = conn_peer_device(connection, pi->vnr); pi 5654 drivers/block/drbd/drbd_receiver.c return got_conn_RqSReply(connection, pi); pi 5669 drivers/block/drbd/drbd_receiver.c static int got_Ping(struct drbd_connection *connection, struct packet_info *pi) pi 5675 drivers/block/drbd/drbd_receiver.c static int got_PingAck(struct drbd_connection *connection, struct packet_info *pi) pi 5685 drivers/block/drbd/drbd_receiver.c static int got_IsInSync(struct drbd_connection *connection, struct packet_info *pi) pi 5689 drivers/block/drbd/drbd_receiver.c struct p_block_ack *p = pi->data; pi 5693 drivers/block/drbd/drbd_receiver.c peer_device = conn_peer_device(connection, pi->vnr); pi 5737 drivers/block/drbd/drbd_receiver.c static int got_BlockAck(struct drbd_connection *connection, struct packet_info *pi) pi 5741 drivers/block/drbd/drbd_receiver.c struct p_block_ack *p = pi->data; pi 5746 drivers/block/drbd/drbd_receiver.c peer_device = conn_peer_device(connection, pi->vnr); pi 5758 drivers/block/drbd/drbd_receiver.c switch (pi->cmd) { pi 5783 drivers/block/drbd/drbd_receiver.c static int got_NegAck(struct drbd_connection *connection, struct packet_info *pi) pi 5787 drivers/block/drbd/drbd_receiver.c struct p_block_ack *p = pi->data; pi 5792 drivers/block/drbd/drbd_receiver.c peer_device = conn_peer_device(connection, pi->vnr); pi 5819 drivers/block/drbd/drbd_receiver.c static int got_NegDReply(struct drbd_connection *connection, struct packet_info *pi) pi 5823 drivers/block/drbd/drbd_receiver.c struct p_block_ack *p = pi->data; pi 5826 drivers/block/drbd/drbd_receiver.c peer_device = conn_peer_device(connection, pi->vnr); pi 5841 drivers/block/drbd/drbd_receiver.c static int got_NegRSDReply(struct drbd_connection *connection, struct packet_info *pi) pi 5847 drivers/block/drbd/drbd_receiver.c struct p_block_ack *p = pi->data; pi 5849 drivers/block/drbd/drbd_receiver.c peer_device = conn_peer_device(connection, pi->vnr); pi 5863 drivers/block/drbd/drbd_receiver.c switch (pi->cmd) { pi 5877 drivers/block/drbd/drbd_receiver.c static int got_BarrierAck(struct drbd_connection *connection, struct packet_info *pi) pi 5879 drivers/block/drbd/drbd_receiver.c struct p_barrier_ack *p = pi->data; pi 5901 drivers/block/drbd/drbd_receiver.c static int got_OVResult(struct drbd_connection *connection, struct packet_info *pi) pi 5905 drivers/block/drbd/drbd_receiver.c struct p_block_ack *p = pi->data; pi 5910 drivers/block/drbd/drbd_receiver.c peer_device = conn_peer_device(connection, pi->vnr); pi 5953 drivers/block/drbd/drbd_receiver.c static int got_skip(struct drbd_connection *connection, struct packet_info *pi) pi 6014 drivers/block/drbd/drbd_receiver.c struct packet_info pi; pi 6096 drivers/block/drbd/drbd_receiver.c if (decode_header(connection, connection->meta.rbuf, &pi)) pi 6098 drivers/block/drbd/drbd_receiver.c cmd = &ack_receiver_tbl[pi.cmd]; pi 6099 drivers/block/drbd/drbd_receiver.c if (pi.cmd >= ARRAY_SIZE(ack_receiver_tbl) || !cmd->fn) { pi 6101 drivers/block/drbd/drbd_receiver.c cmdname(pi.cmd), pi.cmd); pi 6105 drivers/block/drbd/drbd_receiver.c if (pi.size != expect - header_size) { pi 6107 drivers/block/drbd/drbd_receiver.c pi.cmd, pi.size); pi 6114 drivers/block/drbd/drbd_receiver.c err = cmd->fn(connection, &pi); pi 38 drivers/block/paride/aten.c static void aten_write_regr( PIA *pi, int cont, int regr, int val) pi 47 drivers/block/paride/aten.c static int aten_read_regr( PIA *pi, int cont, int regr ) pi 53 drivers/block/paride/aten.c switch (pi->mode) { pi 70 drivers/block/paride/aten.c static void aten_read_block( PIA *pi, char * buf, int count ) pi 74 drivers/block/paride/aten.c switch (pi->mode) { pi 98 drivers/block/paride/aten.c static void aten_write_block( PIA *pi, char * buf, int count ) pi 110 drivers/block/paride/aten.c static void aten_connect ( PIA *pi ) pi 112 drivers/block/paride/aten.c { pi->saved_r0 = r0(); pi 113 drivers/block/paride/aten.c pi->saved_r2 = r2(); pi 117 drivers/block/paride/aten.c static void aten_disconnect ( PIA *pi ) pi 119 drivers/block/paride/aten.c { w0(pi->saved_r0); pi 120 drivers/block/paride/aten.c w2(pi->saved_r2); pi 123 drivers/block/paride/aten.c static void aten_log_adapter( PIA *pi, char * scratch, int verbose ) pi 128 drivers/block/paride/aten.c pi->device,ATEN_VERSION,pi->port); pi 129 drivers/block/paride/aten.c printk("mode %d (%s), delay %d\n",pi->mode, pi 130 drivers/block/paride/aten.c mode_string[pi->mode],pi->delay); pi 32 drivers/block/paride/bpck.c #define PC pi->private pi 48 drivers/block/paride/bpck.c static int bpck_read_regr( PIA *pi, int cont, int regr ) pi 54 drivers/block/paride/bpck.c switch (pi->mode) { pi 79 drivers/block/paride/bpck.c static void bpck_write_regr( PIA *pi, int cont, int regr, int val ) pi 85 drivers/block/paride/bpck.c switch (pi->mode) { pi 105 drivers/block/paride/bpck.c #define WR(r,v) bpck_write_regr(pi,2,r,v) pi 106 drivers/block/paride/bpck.c #define RR(r) (bpck_read_regr(pi,2,r)) pi 108 drivers/block/paride/bpck.c static void bpck_write_block( PIA *pi, char * buf, int count ) pi 112 drivers/block/paride/bpck.c switch (pi->mode) { pi 149 drivers/block/paride/bpck.c static void bpck_read_block( PIA *pi, char * buf, int count ) pi 153 drivers/block/paride/bpck.c switch (pi->mode) { pi 196 drivers/block/paride/bpck.c static int bpck_probe_unit ( PIA *pi ) pi 201 drivers/block/paride/bpck.c id = pi->unit; pi 219 drivers/block/paride/bpck.c static void bpck_connect ( PIA *pi ) pi 221 drivers/block/paride/bpck.c { pi->saved_r0 = r0(); pi 222 drivers/block/paride/bpck.c w0(0xff-pi->unit); w2(4); w0(pi->unit); pi 226 drivers/block/paride/bpck.c switch (pi->mode) { pi 243 drivers/block/paride/bpck.c if (pi->devtype == PI_PCD) { pi 253 drivers/block/paride/bpck.c static void bpck_disconnect ( PIA *pi ) pi 256 drivers/block/paride/bpck.c if (pi->mode >= 2) { w2(9); w2(0); } else t2(2); pi 257 drivers/block/paride/bpck.c w2(0x4c); w0(pi->saved_r0); pi 260 drivers/block/paride/bpck.c static void bpck_force_spp ( PIA *pi ) pi 264 drivers/block/paride/bpck.c { pi->saved_r0 = r0(); pi 265 drivers/block/paride/bpck.c w0(0xff-pi->unit); w2(4); w0(pi->unit); pi 273 drivers/block/paride/bpck.c w2(0x4c); w0(pi->saved_r0); pi 278 drivers/block/paride/bpck.c static int bpck_test_proto( PIA *pi, char * scratch, int verbose ) pi 283 drivers/block/paride/bpck.c bpck_force_spp(pi); pi 285 drivers/block/paride/bpck.c switch (pi->mode) { pi 287 drivers/block/paride/bpck.c case 0: bpck_connect(pi); pi 295 drivers/block/paride/bpck.c bpck_disconnect(pi); pi 298 drivers/block/paride/bpck.c case 1: bpck_connect(pi); pi 303 drivers/block/paride/bpck.c bpck_disconnect(pi); pi 308 drivers/block/paride/bpck.c case 4: om = pi->mode; pi 309 drivers/block/paride/bpck.c pi->mode = 0; pi 310 drivers/block/paride/bpck.c bpck_connect(pi); pi 313 drivers/block/paride/bpck.c bpck_disconnect(pi); pi 315 drivers/block/paride/bpck.c pi->mode = om; pi 316 drivers/block/paride/bpck.c bpck_connect(pi); pi 319 drivers/block/paride/bpck.c switch (pi->mode) { pi 330 drivers/block/paride/bpck.c bpck_disconnect(pi); pi 338 drivers/block/paride/bpck.c pi->device,pi->port,pi->unit,pi->mode); pi 348 drivers/block/paride/bpck.c static void bpck_read_eeprom ( PIA *pi, char * buf ) pi 352 drivers/block/paride/bpck.c bpck_force_spp(pi); pi 354 drivers/block/paride/bpck.c om = pi->mode; od = pi->delay; pi 355 drivers/block/paride/bpck.c pi->mode = 0; pi->delay = 6; pi 357 drivers/block/paride/bpck.c bpck_connect(pi); pi 387 drivers/block/paride/bpck.c bpck_disconnect(pi); pi 390 drivers/block/paride/bpck.c bpck_connect(pi); pi 393 drivers/block/paride/bpck.c bpck_disconnect(pi); pi 396 drivers/block/paride/bpck.c pi->mode = om; pi->delay = od; pi 399 drivers/block/paride/bpck.c static int bpck_test_port ( PIA *pi ) /* check for 8-bit port */ pi 418 drivers/block/paride/bpck.c static void bpck_log_adapter( PIA *pi, char * scratch, int verbose ) pi 427 drivers/block/paride/bpck.c bpck_read_eeprom(pi,scratch); pi 434 drivers/block/paride/bpck.c printk("%s: bpck EEPROM: %64.64s\n",pi->device,scratch); pi 435 drivers/block/paride/bpck.c printk("%s: %64.64s\n",pi->device,&scratch[64]); pi 440 drivers/block/paride/bpck.c pi->device,BPCK_VERSION,&scratch[110],pi->unit); pi 441 drivers/block/paride/bpck.c printk(" at 0x%x, mode %d (%s), delay %d\n",pi->port, pi 442 drivers/block/paride/bpck.c pi->mode,mode_string[pi->mode],pi->delay); pi 40 drivers/block/paride/bpck6.c #define PPCSTRUCT(pi) ((Interface *)(pi->private)) pi 59 drivers/block/paride/bpck6.c static int bpck6_read_regr(PIA *pi, int cont, int reg) pi 68 drivers/block/paride/bpck6.c out=ppc6_rd_port(PPCSTRUCT(pi),cont?reg|8:reg); pi 72 drivers/block/paride/bpck6.c static void bpck6_write_regr(PIA *pi, int cont, int reg, int val) pi 77 drivers/block/paride/bpck6.c ppc6_wr_port(PPCSTRUCT(pi),cont?reg|8:reg,(u8)val); pi 81 drivers/block/paride/bpck6.c static void bpck6_write_block( PIA *pi, char * buf, int len ) pi 83 drivers/block/paride/bpck6.c ppc6_wr_port16_blk(PPCSTRUCT(pi),ATAPI_DATA,buf,(u32)len>>1); pi 86 drivers/block/paride/bpck6.c static void bpck6_read_block( PIA *pi, char * buf, int len ) pi 88 drivers/block/paride/bpck6.c ppc6_rd_port16_blk(PPCSTRUCT(pi),ATAPI_DATA,buf,(u32)len>>1); pi 91 drivers/block/paride/bpck6.c static void bpck6_connect ( PIA *pi ) pi 98 drivers/block/paride/bpck6.c if(pi->mode >=2) pi 100 drivers/block/paride/bpck6.c PPCSTRUCT(pi)->mode=4+pi->mode-2; pi 102 drivers/block/paride/bpck6.c else if(pi->mode==1) pi 104 drivers/block/paride/bpck6.c PPCSTRUCT(pi)->mode=3; pi 108 drivers/block/paride/bpck6.c PPCSTRUCT(pi)->mode=1; pi 111 drivers/block/paride/bpck6.c ppc6_open(PPCSTRUCT(pi)); pi 112 drivers/block/paride/bpck6.c ppc6_wr_extout(PPCSTRUCT(pi),0x3); pi 115 drivers/block/paride/bpck6.c static void bpck6_disconnect ( PIA *pi ) pi 121 drivers/block/paride/bpck6.c ppc6_wr_extout(PPCSTRUCT(pi),0x0); pi 122 drivers/block/paride/bpck6.c ppc6_close(PPCSTRUCT(pi)); pi 125 drivers/block/paride/bpck6.c static int bpck6_test_port ( PIA *pi ) /* check for 8-bit port */ pi 130 drivers/block/paride/bpck6.c ((struct pardevice*)(pi->pardev))->port->modes, pi 131 drivers/block/paride/bpck6.c ((struct pardevice *)(pi->pardev))->port->base); pi 135 drivers/block/paride/bpck6.c PPCSTRUCT(pi)->ppc_id=pi->unit; pi 136 drivers/block/paride/bpck6.c PPCSTRUCT(pi)->lpt_addr=pi->port; pi 139 drivers/block/paride/bpck6.c if(((struct pardevice *)(pi->pardev))->port->modes & pi 145 drivers/block/paride/bpck6.c else if(((struct pardevice *)(pi->pardev))->port->modes & pi 157 drivers/block/paride/bpck6.c static int bpck6_probe_unit ( PIA *pi ) pi 163 drivers/block/paride/bpck6.c printk(KERN_DEBUG "PROBE UNIT %x on port:%x\n",pi->unit,pi->port); pi 167 drivers/block/paride/bpck6.c PPCSTRUCT(pi)->ppc_id=pi->unit; pi 170 drivers/block/paride/bpck6.c PPCSTRUCT(pi)->mode=1; pi 172 drivers/block/paride/bpck6.c out=ppc6_open(PPCSTRUCT(pi)); pi 181 drivers/block/paride/bpck6.c ppc6_close(PPCSTRUCT(pi)); pi 198 drivers/block/paride/bpck6.c static void bpck6_log_adapter( PIA *pi, char * scratch, int verbose ) pi 203 drivers/block/paride/bpck6.c printk("%s: BACKPACK Protocol Driver V"BACKPACK_VERSION"\n",pi->device); pi 204 drivers/block/paride/bpck6.c printk("%s: Copyright 2001 by Micro Solutions, Inc., DeKalb IL.\n",pi->device); pi 206 drivers/block/paride/bpck6.c pi->device,BACKPACK_VERSION,pi->port); pi 207 drivers/block/paride/bpck6.c printk("%s: Unit: %d Mode:%d (%s) Delay %d\n",pi->device, pi 208 drivers/block/paride/bpck6.c pi->unit,pi->mode,mode_string[pi->mode],pi->delay); pi 211 drivers/block/paride/bpck6.c static int bpck6_init_proto(PIA *pi) pi 216 drivers/block/paride/bpck6.c pi->private = (unsigned long)p; pi 220 drivers/block/paride/bpck6.c printk(KERN_ERR "%s: ERROR COULDN'T ALLOCATE MEMORY\n", pi->device); pi 224 drivers/block/paride/bpck6.c static void bpck6_release_proto(PIA *pi) pi 226 drivers/block/paride/bpck6.c kfree((void *)(pi->private)); pi 45 drivers/block/paride/comm.c static int comm_read_regr( PIA *pi, int cont, int regr ) pi 51 drivers/block/paride/comm.c switch (pi->mode) { pi 71 drivers/block/paride/comm.c static void comm_write_regr( PIA *pi, int cont, int regr, int val ) pi 77 drivers/block/paride/comm.c switch (pi->mode) { pi 90 drivers/block/paride/comm.c static void comm_connect ( PIA *pi ) pi 92 drivers/block/paride/comm.c { pi->saved_r0 = r0(); pi 93 drivers/block/paride/comm.c pi->saved_r2 = r2(); pi 101 drivers/block/paride/comm.c static void comm_disconnect ( PIA *pi ) pi 104 drivers/block/paride/comm.c w0(pi->saved_r0); pi 105 drivers/block/paride/comm.c w2(pi->saved_r2); pi 108 drivers/block/paride/comm.c static void comm_read_block( PIA *pi, char * buf, int count ) pi 112 drivers/block/paride/comm.c switch (pi->mode) { pi 149 drivers/block/paride/comm.c static void comm_write_block( PIA *pi, char * buf, int count ) pi 153 drivers/block/paride/comm.c switch (pi->mode) { pi 179 drivers/block/paride/comm.c static void comm_log_adapter( PIA *pi, char * scratch, int verbose ) pi 184 drivers/block/paride/comm.c pi->device,COMM_VERSION,pi->port); pi 185 drivers/block/paride/comm.c printk("mode %d (%s), delay %d\n",pi->mode, pi 186 drivers/block/paride/comm.c mode_string[pi->mode],pi->delay); pi 47 drivers/block/paride/dstr.c static int dstr_read_regr( PIA *pi, int cont, int regr ) pi 54 drivers/block/paride/dstr.c if (pi->mode) { w0(0x11); } else { w0(1); } pi 57 drivers/block/paride/dstr.c switch (pi->mode) { pi 74 drivers/block/paride/dstr.c static void dstr_write_regr( PIA *pi, int cont, int regr, int val ) pi 81 drivers/block/paride/dstr.c if (pi->mode >= 2) { w0(0x11); } else { w0(1); } pi 84 drivers/block/paride/dstr.c switch (pi->mode) { pi 101 drivers/block/paride/dstr.c static void dstr_connect ( PIA *pi ) pi 103 drivers/block/paride/dstr.c { pi->saved_r0 = r0(); pi 104 drivers/block/paride/dstr.c pi->saved_r2 = r2(); pi 108 drivers/block/paride/dstr.c static void dstr_disconnect ( PIA *pi ) pi 111 drivers/block/paride/dstr.c w0(pi->saved_r0); pi 112 drivers/block/paride/dstr.c w2(pi->saved_r2); pi 115 drivers/block/paride/dstr.c static void dstr_read_block( PIA *pi, char * buf, int count ) pi 120 drivers/block/paride/dstr.c if (pi->mode) { w0(0x19); } else { w0(9); } pi 123 drivers/block/paride/dstr.c switch (pi->mode) { pi 157 drivers/block/paride/dstr.c static void dstr_write_block( PIA *pi, char * buf, int count ) pi 162 drivers/block/paride/dstr.c if (pi->mode) { w0(0x19); } else { w0(9); } pi 165 drivers/block/paride/dstr.c switch (pi->mode) { pi 193 drivers/block/paride/dstr.c static void dstr_log_adapter( PIA *pi, char * scratch, int verbose ) pi 199 drivers/block/paride/dstr.c pi->device,DSTR_VERSION,pi->port); pi 200 drivers/block/paride/dstr.c printk("mode %d (%s), delay %d\n",pi->mode, pi 201 drivers/block/paride/dstr.c mode_string[pi->mode],pi->delay); pi 47 drivers/block/paride/epat.c static void epat_write_regr( PIA *pi, int cont, int regr, int val) pi 53 drivers/block/paride/epat.c switch (pi->mode) { pi 68 drivers/block/paride/epat.c static int epat_read_regr( PIA *pi, int cont, int regr ) pi 74 drivers/block/paride/epat.c switch (pi->mode) { pi 97 drivers/block/paride/epat.c static void epat_read_block( PIA *pi, char * buf, int count ) pi 101 drivers/block/paride/epat.c switch (pi->mode) { pi 162 drivers/block/paride/epat.c static void epat_write_block( PIA *pi, char * buf, int count ) pi 166 drivers/block/paride/epat.c switch (pi->mode) { pi 200 drivers/block/paride/epat.c #define WR(r,v) epat_write_regr(pi,2,r,v) pi 201 drivers/block/paride/epat.c #define RR(r) (epat_read_regr(pi,2,r)) pi 205 drivers/block/paride/epat.c #define WRi(r,v) epat_write_regr(pi,0,r,v) pi 206 drivers/block/paride/epat.c #define RRi(r) (epat_read_regr(pi,0,r)) pi 213 drivers/block/paride/epat.c static void epat_connect ( PIA *pi ) pi 215 drivers/block/paride/epat.c { pi->saved_r0 = r0(); pi 216 drivers/block/paride/epat.c pi->saved_r2 = r2(); pi 234 drivers/block/paride/epat.c if (pi->mode >= 3) { pi 245 drivers/block/paride/epat.c static void epat_disconnect (PIA *pi) pi 247 drivers/block/paride/epat.c w0(pi->saved_r0); pi 248 drivers/block/paride/epat.c w2(pi->saved_r2); pi 251 drivers/block/paride/epat.c static int epat_test_proto( PIA *pi, char * scratch, int verbose ) pi 256 drivers/block/paride/epat.c epat_connect(pi); pi 258 drivers/block/paride/epat.c epat_disconnect(pi); pi 260 drivers/block/paride/epat.c epat_connect(pi); pi 269 drivers/block/paride/epat.c epat_disconnect(pi); pi 272 drivers/block/paride/epat.c epat_connect(pi); pi 274 drivers/block/paride/epat.c epat_read_block(pi,scratch,512); pi 280 drivers/block/paride/epat.c epat_disconnect(pi); pi 284 drivers/block/paride/epat.c pi->device,pi->port,pi->mode,cc,e[0],e[1],f); pi 290 drivers/block/paride/epat.c static void epat_log_adapter( PIA *pi, char * scratch, int verbose ) pi 296 drivers/block/paride/epat.c epat_connect(pi); pi 299 drivers/block/paride/epat.c epat_disconnect(pi); pi 302 drivers/block/paride/epat.c pi->device,EPAT_VERSION,ver,pi->port); pi 303 drivers/block/paride/epat.c printk("mode %d (%s), delay %d\n",pi->mode, pi 304 drivers/block/paride/epat.c mode_string[pi->mode],pi->delay); pi 49 drivers/block/paride/epia.c static int epia_read_regr( PIA *pi, int cont, int regr ) pi 55 drivers/block/paride/epia.c switch (pi->mode) { pi 82 drivers/block/paride/epia.c static void epia_write_regr( PIA *pi, int cont, int regr, int val) pi 88 drivers/block/paride/epia.c switch (pi->mode) { pi 104 drivers/block/paride/epia.c #define WR(r,v) epia_write_regr(pi,0,r,v) pi 105 drivers/block/paride/epia.c #define RR(r) (epia_read_regr(pi,0,r)) pi 113 drivers/block/paride/epia.c static void epia_connect ( PIA *pi ) pi 115 drivers/block/paride/epia.c { pi->saved_r0 = r0(); pi 116 drivers/block/paride/epia.c pi->saved_r2 = r2(); pi 120 drivers/block/paride/epia.c if (pi->mode >= 3) { pi 127 drivers/block/paride/epia.c static void epia_disconnect ( PIA *pi ) pi 130 drivers/block/paride/epia.c w0(pi->saved_r0); pi 132 drivers/block/paride/epia.c w0(pi->saved_r0); pi 133 drivers/block/paride/epia.c w2(pi->saved_r2); pi 136 drivers/block/paride/epia.c static void epia_read_block( PIA *pi, char * buf, int count ) pi 140 drivers/block/paride/epia.c switch (pi->mode) { pi 196 drivers/block/paride/epia.c static void epia_write_block( PIA *pi, char * buf, int count ) pi 200 drivers/block/paride/epia.c switch (pi->mode) { pi 237 drivers/block/paride/epia.c static int epia_test_proto( PIA *pi, char * scratch, int verbose ) pi 242 drivers/block/paride/epia.c epia_connect(pi); pi 252 drivers/block/paride/epia.c epia_disconnect(pi); pi 255 drivers/block/paride/epia.c epia_connect(pi); pi 257 drivers/block/paride/epia.c epia_read_block(pi,scratch,512); pi 263 drivers/block/paride/epia.c epia_disconnect(pi); pi 267 drivers/block/paride/epia.c pi->device,pi->port,pi->mode,e[0],e[1],f); pi 275 drivers/block/paride/epia.c static void epia_log_adapter( PIA *pi, char * scratch, int verbose ) pi 281 drivers/block/paride/epia.c pi->device,EPIA_VERSION,pi->port); pi 282 drivers/block/paride/epia.c printk("mode %d (%s), delay %d\n",pi->mode, pi 283 drivers/block/paride/epia.c mode_string[pi->mode],pi->delay); pi 40 drivers/block/paride/fit2.c static void fit2_write_regr( PIA *pi, int cont, int regr, int val) pi 46 drivers/block/paride/fit2.c static int fit2_read_regr( PIA *pi, int cont, int regr ) pi 64 drivers/block/paride/fit2.c static void fit2_read_block( PIA *pi, char * buf, int count ) pi 90 drivers/block/paride/fit2.c static void fit2_write_block( PIA *pi, char * buf, int count ) pi 103 drivers/block/paride/fit2.c static void fit2_connect ( PIA *pi ) pi 105 drivers/block/paride/fit2.c { pi->saved_r0 = r0(); pi 106 drivers/block/paride/fit2.c pi->saved_r2 = r2(); pi 110 drivers/block/paride/fit2.c static void fit2_disconnect ( PIA *pi ) pi 112 drivers/block/paride/fit2.c { w0(pi->saved_r0); pi 113 drivers/block/paride/fit2.c w2(pi->saved_r2); pi 116 drivers/block/paride/fit2.c static void fit2_log_adapter( PIA *pi, char * scratch, int verbose ) pi 119 drivers/block/paride/fit2.c pi->device,FIT2_VERSION,pi->port,pi->delay); pi 42 drivers/block/paride/fit3.c static void fit3_write_regr( PIA *pi, int cont, int regr, int val) pi 46 drivers/block/paride/fit3.c switch (pi->mode) { pi 62 drivers/block/paride/fit3.c static int fit3_read_regr( PIA *pi, int cont, int regr ) pi 71 drivers/block/paride/fit3.c switch (pi->mode) { pi 95 drivers/block/paride/fit3.c static void fit3_read_block( PIA *pi, char * buf, int count ) pi 99 drivers/block/paride/fit3.c switch (pi->mode) { pi 134 drivers/block/paride/fit3.c static void fit3_write_block( PIA *pi, char * buf, int count ) pi 138 drivers/block/paride/fit3.c switch (pi->mode) { pi 155 drivers/block/paride/fit3.c static void fit3_connect ( PIA *pi ) pi 157 drivers/block/paride/fit3.c { pi->saved_r0 = r0(); pi 158 drivers/block/paride/fit3.c pi->saved_r2 = r2(); pi 160 drivers/block/paride/fit3.c if (pi->mode == 2) { pi 165 drivers/block/paride/fit3.c static void fit3_disconnect ( PIA *pi ) pi 168 drivers/block/paride/fit3.c w0(pi->saved_r0); pi 169 drivers/block/paride/fit3.c w2(pi->saved_r2); pi 172 drivers/block/paride/fit3.c static void fit3_log_adapter( PIA *pi, char * scratch, int verbose ) pi 178 drivers/block/paride/fit3.c pi->device,FIT3_VERSION,pi->port, pi 179 drivers/block/paride/fit3.c pi->mode,mode_string[pi->mode],pi->delay); pi 51 drivers/block/paride/friq.c static int friq_read_regr( PIA *pi, int cont, int regr ) pi 66 drivers/block/paride/friq.c static void friq_write_regr( PIA *pi, int cont, int regr, int val) pi 77 drivers/block/paride/friq.c static void friq_read_block_int( PIA *pi, char * buf, int count, int regr ) pi 81 drivers/block/paride/friq.c switch(pi->mode) { pi 132 drivers/block/paride/friq.c static void friq_read_block( PIA *pi, char * buf, int count) pi 134 drivers/block/paride/friq.c { friq_read_block_int(pi,buf,count,0x08); pi 137 drivers/block/paride/friq.c static void friq_write_block( PIA *pi, char * buf, int count ) pi 141 drivers/block/paride/friq.c switch(pi->mode) { pi 169 drivers/block/paride/friq.c static void friq_connect ( PIA *pi ) pi 171 drivers/block/paride/friq.c { pi->saved_r0 = r0(); pi 172 drivers/block/paride/friq.c pi->saved_r2 = r2(); pi 176 drivers/block/paride/friq.c static void friq_disconnect ( PIA *pi ) pi 179 drivers/block/paride/friq.c w0(pi->saved_r0); pi 180 drivers/block/paride/friq.c w2(pi->saved_r2); pi 183 drivers/block/paride/friq.c static int friq_test_proto( PIA *pi, char * scratch, int verbose ) pi 188 drivers/block/paride/friq.c pi->saved_r0 = r0(); pi 191 drivers/block/paride/friq.c w0(pi->saved_r0); pi 193 drivers/block/paride/friq.c friq_connect(pi); pi 195 drivers/block/paride/friq.c friq_write_regr(pi,0,6,0xa0+j*0x10); pi 197 drivers/block/paride/friq.c friq_write_regr(pi,0,2,k^0xaa); pi 198 drivers/block/paride/friq.c friq_write_regr(pi,0,3,k^0x55); pi 199 drivers/block/paride/friq.c if (friq_read_regr(pi,0,2) != (k^0xaa)) e[j]++; pi 202 drivers/block/paride/friq.c friq_disconnect(pi); pi 204 drivers/block/paride/friq.c friq_connect(pi); pi 205 drivers/block/paride/friq.c friq_read_block_int(pi,scratch,512,0x10); pi 208 drivers/block/paride/friq.c friq_disconnect(pi); pi 212 drivers/block/paride/friq.c pi->device,pi->port,pi->mode,e[0],e[1],r); pi 219 drivers/block/paride/friq.c static void friq_log_adapter( PIA *pi, char * scratch, int verbose ) pi 224 drivers/block/paride/friq.c printk("%s: friq %s, Freecom IQ ASIC-2 adapter at 0x%x, ", pi->device, pi 225 drivers/block/paride/friq.c FRIQ_VERSION,pi->port); pi 226 drivers/block/paride/friq.c printk("mode %d (%s), delay %d\n",pi->mode, pi 227 drivers/block/paride/friq.c mode_string[pi->mode],pi->delay); pi 229 drivers/block/paride/friq.c pi->private = 1; pi 230 drivers/block/paride/friq.c friq_connect(pi); pi 232 drivers/block/paride/friq.c friq_disconnect(pi); pi 236 drivers/block/paride/friq.c static void friq_release_proto( PIA *pi) pi 238 drivers/block/paride/friq.c if (pi->private) { /* turn off the power */ pi 239 drivers/block/paride/friq.c friq_connect(pi); pi 241 drivers/block/paride/friq.c friq_disconnect(pi); pi 242 drivers/block/paride/friq.c pi->private = 0; pi 47 drivers/block/paride/frpw.c static int frpw_read_regr( PIA *pi, int cont, int regr ) pi 63 drivers/block/paride/frpw.c static void frpw_write_regr( PIA *pi, int cont, int regr, int val) pi 74 drivers/block/paride/frpw.c static void frpw_read_block_int( PIA *pi, char * buf, int count, int regr ) pi 78 drivers/block/paride/frpw.c switch(pi->mode) { pi 135 drivers/block/paride/frpw.c static void frpw_read_block( PIA *pi, char * buf, int count) pi 137 drivers/block/paride/frpw.c { frpw_read_block_int(pi,buf,count,0x08); pi 140 drivers/block/paride/frpw.c static void frpw_write_block( PIA *pi, char * buf, int count ) pi 144 drivers/block/paride/frpw.c switch(pi->mode) { pi 173 drivers/block/paride/frpw.c static void frpw_connect ( PIA *pi ) pi 175 drivers/block/paride/frpw.c { pi->saved_r0 = r0(); pi 176 drivers/block/paride/frpw.c pi->saved_r2 = r2(); pi 180 drivers/block/paride/frpw.c static void frpw_disconnect ( PIA *pi ) pi 183 drivers/block/paride/frpw.c w0(pi->saved_r0); pi 184 drivers/block/paride/frpw.c w2(pi->saved_r2); pi 191 drivers/block/paride/frpw.c static int frpw_test_pnp ( PIA *pi ) pi 202 drivers/block/paride/frpw.c olddelay = pi->delay; pi 203 drivers/block/paride/frpw.c pi->delay = 10; pi 205 drivers/block/paride/frpw.c pi->saved_r0 = r0(); pi 206 drivers/block/paride/frpw.c pi->saved_r2 = r2(); pi 212 drivers/block/paride/frpw.c pi->delay = olddelay; pi 213 drivers/block/paride/frpw.c w0(pi->saved_r0); pi 214 drivers/block/paride/frpw.c w2(pi->saved_r2); pi 224 drivers/block/paride/frpw.c static int frpw_test_proto( PIA *pi, char * scratch, int verbose ) pi 229 drivers/block/paride/frpw.c if ((pi->private>>1) != pi->port) pi 230 drivers/block/paride/frpw.c pi->private = frpw_test_pnp(pi) + 2*pi->port; pi 232 drivers/block/paride/frpw.c if (((pi->private%2) == 0) && (pi->mode > 2)) { pi 235 drivers/block/paride/frpw.c pi->device, pi->mode); pi 239 drivers/block/paride/frpw.c if (((pi->private%2) == 1) && (pi->mode == 2)) { pi 242 drivers/block/paride/frpw.c pi->device); pi 246 drivers/block/paride/frpw.c frpw_connect(pi); pi 248 drivers/block/paride/frpw.c frpw_write_regr(pi,0,6,0xa0+j*0x10); pi 250 drivers/block/paride/frpw.c frpw_write_regr(pi,0,2,k^0xaa); pi 251 drivers/block/paride/frpw.c frpw_write_regr(pi,0,3,k^0x55); pi 252 drivers/block/paride/frpw.c if (frpw_read_regr(pi,0,2) != (k^0xaa)) e[j]++; pi 255 drivers/block/paride/frpw.c frpw_disconnect(pi); pi 257 drivers/block/paride/frpw.c frpw_connect(pi); pi 258 drivers/block/paride/frpw.c frpw_read_block_int(pi,scratch,512,0x10); pi 261 drivers/block/paride/frpw.c frpw_disconnect(pi); pi 265 drivers/block/paride/frpw.c pi->device,pi->port,(pi->private%2),pi->mode,e[0],e[1],r); pi 272 drivers/block/paride/frpw.c static void frpw_log_adapter( PIA *pi, char * scratch, int verbose ) pi 277 drivers/block/paride/frpw.c printk("%s: frpw %s, Freecom (%s) adapter at 0x%x, ", pi->device, pi 278 drivers/block/paride/frpw.c FRPW_VERSION,((pi->private%2) == 0)?"Xilinx":"ASIC",pi->port); pi 279 drivers/block/paride/frpw.c printk("mode %d (%s), delay %d\n",pi->mode, pi 280 drivers/block/paride/frpw.c mode_string[pi->mode],pi->delay); pi 33 drivers/block/paride/kbic.c #define r12w() (delay_p,inw(pi->port+1)&0xffff) pi 45 drivers/block/paride/kbic.c static int kbic_read_regr( PIA *pi, int cont, int regr ) pi 51 drivers/block/paride/kbic.c switch (pi->mode) { pi 75 drivers/block/paride/kbic.c static void kbic_write_regr( PIA *pi, int cont, int regr, int val) pi 81 drivers/block/paride/kbic.c switch (pi->mode) { pi 99 drivers/block/paride/kbic.c static void k951_connect ( PIA *pi ) pi 101 drivers/block/paride/kbic.c { pi->saved_r0 = r0(); pi 102 drivers/block/paride/kbic.c pi->saved_r2 = r2(); pi 106 drivers/block/paride/kbic.c static void k951_disconnect ( PIA *pi ) pi 108 drivers/block/paride/kbic.c { w0(pi->saved_r0); pi 109 drivers/block/paride/kbic.c w2(pi->saved_r2); pi 115 drivers/block/paride/kbic.c static void k971_connect ( PIA *pi ) pi 117 drivers/block/paride/kbic.c { pi->saved_r0 = r0(); pi 118 drivers/block/paride/kbic.c pi->saved_r2 = r2(); pi 123 drivers/block/paride/kbic.c static void k971_disconnect ( PIA *pi ) pi 126 drivers/block/paride/kbic.c w0(pi->saved_r0); pi 127 drivers/block/paride/kbic.c w2(pi->saved_r2); pi 134 drivers/block/paride/kbic.c static void kbic_read_block( PIA *pi, char * buf, int count ) pi 138 drivers/block/paride/kbic.c switch (pi->mode) { pi 192 drivers/block/paride/kbic.c static void kbic_write_block( PIA *pi, char * buf, int count ) pi 196 drivers/block/paride/kbic.c switch (pi->mode) { pi 229 drivers/block/paride/kbic.c static void kbic_log_adapter( PIA *pi, char * scratch, pi 236 drivers/block/paride/kbic.c pi->device,KBIC_VERSION,chip,pi->port); pi 237 drivers/block/paride/kbic.c printk("mode %d (%s), delay %d\n",pi->mode, pi 238 drivers/block/paride/kbic.c mode_string[pi->mode],pi->delay); pi 242 drivers/block/paride/kbic.c static void k951_log_adapter( PIA *pi, char * scratch, int verbose ) pi 244 drivers/block/paride/kbic.c { kbic_log_adapter(pi,scratch,verbose,"KBIC-951A"); pi 247 drivers/block/paride/kbic.c static void k971_log_adapter( PIA *pi, char * scratch, int verbose ) pi 249 drivers/block/paride/kbic.c { kbic_log_adapter(pi,scratch,verbose,"KBIC-971A"); pi 32 drivers/block/paride/ktti.c static void ktti_write_regr( PIA *pi, int cont, int regr, int val) pi 42 drivers/block/paride/ktti.c static int ktti_read_regr( PIA *pi, int cont, int regr ) pi 54 drivers/block/paride/ktti.c static void ktti_read_block( PIA *pi, char * buf, int count ) pi 67 drivers/block/paride/ktti.c static void ktti_write_block( PIA *pi, char * buf, int count ) pi 79 drivers/block/paride/ktti.c static void ktti_connect ( PIA *pi ) pi 81 drivers/block/paride/ktti.c { pi->saved_r0 = r0(); pi 82 drivers/block/paride/ktti.c pi->saved_r2 = r2(); pi 86 drivers/block/paride/ktti.c static void ktti_disconnect ( PIA *pi ) pi 89 drivers/block/paride/ktti.c w0(pi->saved_r0); pi 90 drivers/block/paride/ktti.c w2(pi->saved_r2); pi 93 drivers/block/paride/ktti.c static void ktti_log_adapter( PIA *pi, char * scratch, int verbose ) pi 96 drivers/block/paride/ktti.c pi->device,KTTI_VERSION,pi->port,pi->delay); pi 36 drivers/block/paride/on20.c static int on20_read_regr( PIA *pi, int cont, int regr ) pi 44 drivers/block/paride/on20.c switch (pi->mode) { pi 59 drivers/block/paride/on20.c static void on20_write_regr( PIA *pi, int cont, int regr, int val ) pi 70 drivers/block/paride/on20.c static void on20_connect ( PIA *pi) pi 72 drivers/block/paride/on20.c { pi->saved_r0 = r0(); pi 73 drivers/block/paride/on20.c pi->saved_r2 = r2(); pi 76 drivers/block/paride/on20.c if (pi->mode) { op(2); vl(8); op(2); vl(9); } pi 80 drivers/block/paride/on20.c static void on20_disconnect ( PIA *pi ) pi 83 drivers/block/paride/on20.c w0(pi->saved_r0); pi 84 drivers/block/paride/on20.c w2(pi->saved_r2); pi 87 drivers/block/paride/on20.c static void on20_read_block( PIA *pi, char * buf, int count ) pi 94 drivers/block/paride/on20.c if (pi->mode) { pi 104 drivers/block/paride/on20.c static void on20_write_block( PIA *pi, char * buf, int count ) pi 114 drivers/block/paride/on20.c static void on20_log_adapter( PIA *pi, char * scratch, int verbose ) pi 119 drivers/block/paride/on20.c pi->device,ON20_VERSION,pi->port); pi 120 drivers/block/paride/on20.c printk("mode %d (%s), delay %d\n",pi->mode, pi 121 drivers/block/paride/on20.c mode_string[pi->mode],pi->delay); pi 47 drivers/block/paride/on26.c static int on26_read_regr( PIA *pi, int cont, int regr ) pi 53 drivers/block/paride/on26.c switch (pi->mode) { pi 76 drivers/block/paride/on26.c static void on26_write_regr( PIA *pi, int cont, int regr, int val ) pi 82 drivers/block/paride/on26.c switch (pi->mode) { pi 102 drivers/block/paride/on26.c static void on26_connect ( PIA *pi ) pi 106 drivers/block/paride/on26.c pi->saved_r0 = r0(); pi 107 drivers/block/paride/on26.c pi->saved_r2 = r2(); pi 110 drivers/block/paride/on26.c x = 8; if (pi->mode) x = 9; pi 116 drivers/block/paride/on26.c static void on26_disconnect ( PIA *pi ) pi 118 drivers/block/paride/on26.c { if (pi->mode >= 2) { w3(4); w3(4); w3(4); w3(4); } pi 121 drivers/block/paride/on26.c w0(pi->saved_r0); pi 122 drivers/block/paride/on26.c w2(pi->saved_r2); pi 127 drivers/block/paride/on26.c static int on26_test_port( PIA *pi) /* hard reset */ pi 131 drivers/block/paride/on26.c pi->saved_r0 = r0(); pi 132 drivers/block/paride/on26.c pi->saved_r2 = r2(); pi 134 drivers/block/paride/on26.c d = pi->delay; pi 135 drivers/block/paride/on26.c m = pi->mode; pi 136 drivers/block/paride/on26.c pi->delay = 5; pi 137 drivers/block/paride/on26.c pi->mode = 0; pi 158 drivers/block/paride/on26.c on26_write_regr(pi,0,6,0xa0); pi 161 drivers/block/paride/on26.c on26_write_regr(pi,0,6,0xa0); pi 162 drivers/block/paride/on26.c x = on26_read_regr(pi,0,7); pi 163 drivers/block/paride/on26.c on26_write_regr(pi,0,6,0xb0); pi 164 drivers/block/paride/on26.c y = on26_read_regr(pi,0,7); pi 177 drivers/block/paride/on26.c pi->delay = d; pi 178 drivers/block/paride/on26.c pi->mode = m; pi 179 drivers/block/paride/on26.c w0(pi->saved_r0); pi 180 drivers/block/paride/on26.c w2(pi->saved_r2); pi 186 drivers/block/paride/on26.c static void on26_read_block( PIA *pi, char * buf, int count ) pi 190 drivers/block/paride/on26.c switch (pi->mode) { pi 235 drivers/block/paride/on26.c static void on26_write_block( PIA *pi, char * buf, int count ) pi 239 drivers/block/paride/on26.c switch (pi->mode) { pi 243 drivers/block/paride/on26.c w0(2); P1; w0(0x18+pi->mode); P2; w0(0); P1; pi 250 drivers/block/paride/on26.c w0(2); P1; w0(8+pi->mode); P2; pi 278 drivers/block/paride/on26.c static void on26_log_adapter( PIA *pi, char * scratch, int verbose ) pi 284 drivers/block/paride/on26.c pi->device,ON26_VERSION,pi->port); pi 285 drivers/block/paride/on26.c printk("mode %d (%s), delay %d\n",pi->mode, pi 286 drivers/block/paride/on26.c mode_string[pi->mode],pi->delay); pi 45 drivers/block/paride/paride.c void pi_write_regr(PIA * pi, int cont, int regr, int val) pi 47 drivers/block/paride/paride.c pi->proto->write_regr(pi, cont, regr, val); pi 52 drivers/block/paride/paride.c int pi_read_regr(PIA * pi, int cont, int regr) pi 54 drivers/block/paride/paride.c return pi->proto->read_regr(pi, cont, regr); pi 59 drivers/block/paride/paride.c void pi_write_block(PIA * pi, char *buf, int count) pi 61 drivers/block/paride/paride.c pi->proto->write_block(pi, buf, count); pi 66 drivers/block/paride/paride.c void pi_read_block(PIA * pi, char *buf, int count) pi 68 drivers/block/paride/paride.c pi->proto->read_block(pi, buf, count); pi 75 drivers/block/paride/paride.c PIA *pi = (PIA *) p; pi 81 drivers/block/paride/paride.c if (pi->claim_cont && !parport_claim(pi->pardev)) { pi 82 drivers/block/paride/paride.c cont = pi->claim_cont; pi 83 drivers/block/paride/paride.c pi->claim_cont = NULL; pi 84 drivers/block/paride/paride.c pi->claimed = 1; pi 89 drivers/block/paride/paride.c wake_up(&(pi->parq)); pi 95 drivers/block/paride/paride.c int pi_schedule_claimed(PIA * pi, void (*cont) (void)) pi 100 drivers/block/paride/paride.c if (pi->pardev && parport_claim(pi->pardev)) { pi 101 drivers/block/paride/paride.c pi->claim_cont = cont; pi 105 drivers/block/paride/paride.c pi->claimed = 1; pi 111 drivers/block/paride/paride.c void pi_do_claimed(PIA * pi, void (*cont) (void)) pi 113 drivers/block/paride/paride.c if (pi_schedule_claimed(pi, cont)) pi 119 drivers/block/paride/paride.c static void pi_claim(PIA * pi) pi 121 drivers/block/paride/paride.c if (pi->claimed) pi 123 drivers/block/paride/paride.c pi->claimed = 1; pi 124 drivers/block/paride/paride.c if (pi->pardev) pi 125 drivers/block/paride/paride.c wait_event(pi->parq, pi 126 drivers/block/paride/paride.c !parport_claim((struct pardevice *) pi->pardev)); pi 129 drivers/block/paride/paride.c static void pi_unclaim(PIA * pi) pi 131 drivers/block/paride/paride.c pi->claimed = 0; pi 132 drivers/block/paride/paride.c if (pi->pardev) pi 133 drivers/block/paride/paride.c parport_release((struct pardevice *) (pi->pardev)); pi 136 drivers/block/paride/paride.c void pi_connect(PIA * pi) pi 138 drivers/block/paride/paride.c pi_claim(pi); pi 139 drivers/block/paride/paride.c pi->proto->connect(pi); pi 144 drivers/block/paride/paride.c void pi_disconnect(PIA * pi) pi 146 drivers/block/paride/paride.c pi->proto->disconnect(pi); pi 147 drivers/block/paride/paride.c pi_unclaim(pi); pi 152 drivers/block/paride/paride.c static void pi_unregister_parport(PIA * pi) pi 154 drivers/block/paride/paride.c if (pi->pardev) { pi 155 drivers/block/paride/paride.c parport_unregister_device((struct pardevice *) (pi->pardev)); pi 156 drivers/block/paride/paride.c pi->pardev = NULL; pi 160 drivers/block/paride/paride.c void pi_release(PIA * pi) pi 162 drivers/block/paride/paride.c pi_unregister_parport(pi); pi 163 drivers/block/paride/paride.c if (pi->proto->release_proto) pi 164 drivers/block/paride/paride.c pi->proto->release_proto(pi); pi 165 drivers/block/paride/paride.c module_put(pi->proto->owner); pi 170 drivers/block/paride/paride.c static int default_test_proto(PIA * pi, char *scratch, int verbose) pi 175 drivers/block/paride/paride.c pi->proto->connect(pi); pi 178 drivers/block/paride/paride.c pi_write_regr(pi, 0, 6, 0xa0 + j * 0x10); pi 180 drivers/block/paride/paride.c pi_write_regr(pi, 0, 2, k ^ 0xaa); pi 181 drivers/block/paride/paride.c pi_write_regr(pi, 0, 3, k ^ 0x55); pi 182 drivers/block/paride/paride.c if (pi_read_regr(pi, 0, 2) != (k ^ 0xaa)) pi 186 drivers/block/paride/paride.c pi->proto->disconnect(pi); pi 190 drivers/block/paride/paride.c pi->device, pi->proto->name, pi->port, pi 191 drivers/block/paride/paride.c pi->mode, e[0], e[1]); pi 196 drivers/block/paride/paride.c static int pi_test_proto(PIA * pi, char *scratch, int verbose) pi 200 drivers/block/paride/paride.c pi_claim(pi); pi 201 drivers/block/paride/paride.c if (pi->proto->test_proto) pi 202 drivers/block/paride/paride.c res = pi->proto->test_proto(pi, scratch, verbose); pi 204 drivers/block/paride/paride.c res = default_test_proto(pi, scratch, verbose); pi 205 drivers/block/paride/paride.c pi_unclaim(pi); pi 248 drivers/block/paride/paride.c static int pi_register_parport(PIA *pi, int verbose, int unit) pi 253 drivers/block/paride/paride.c port = parport_find_base(pi->port); pi 258 drivers/block/paride/paride.c par_cb.private = (void *)pi; pi 259 drivers/block/paride/paride.c pi->pardev = parport_register_dev_model(port, pi->device, &par_cb, pi 262 drivers/block/paride/paride.c if (!pi->pardev) pi 265 drivers/block/paride/paride.c init_waitqueue_head(&pi->parq); pi 268 drivers/block/paride/paride.c printk("%s: 0x%x is %s\n", pi->device, pi->port, port->name); pi 270 drivers/block/paride/paride.c pi->parname = (char *) port->name; pi 275 drivers/block/paride/paride.c static int pi_probe_mode(PIA * pi, int max, char *scratch, int verbose) pi 279 drivers/block/paride/paride.c if (pi->mode != -1) { pi 280 drivers/block/paride/paride.c if (pi->mode >= max) pi 283 drivers/block/paride/paride.c if (pi->mode >= pi->proto->epp_first) pi 285 drivers/block/paride/paride.c if ((range == 8) && (pi->port % 8)) pi 287 drivers/block/paride/paride.c pi->reserved = range; pi 288 drivers/block/paride/paride.c return (!pi_test_proto(pi, scratch, verbose)); pi 291 drivers/block/paride/paride.c for (pi->mode = 0; pi->mode < max; pi->mode++) { pi 293 drivers/block/paride/paride.c if (pi->mode >= pi->proto->epp_first) pi 295 drivers/block/paride/paride.c if ((range == 8) && (pi->port % 8)) pi 297 drivers/block/paride/paride.c pi->reserved = range; pi 298 drivers/block/paride/paride.c if (!pi_test_proto(pi, scratch, verbose)) pi 299 drivers/block/paride/paride.c best = pi->mode; pi 301 drivers/block/paride/paride.c pi->mode = best; pi 305 drivers/block/paride/paride.c static int pi_probe_unit(PIA * pi, int unit, char *scratch, int verbose) pi 314 drivers/block/paride/paride.c e = pi->proto->max_units; pi 317 drivers/block/paride/paride.c if (!pi_register_parport(pi, verbose, s)) pi 320 drivers/block/paride/paride.c if (pi->proto->test_port) { pi 321 drivers/block/paride/paride.c pi_claim(pi); pi 322 drivers/block/paride/paride.c max = pi->proto->test_port(pi); pi 323 drivers/block/paride/paride.c pi_unclaim(pi); pi 325 drivers/block/paride/paride.c max = pi->proto->max_mode; pi 327 drivers/block/paride/paride.c if (pi->proto->probe_unit) { pi 328 drivers/block/paride/paride.c pi_claim(pi); pi 329 drivers/block/paride/paride.c for (pi->unit = s; pi->unit < e; pi->unit++) pi 330 drivers/block/paride/paride.c if (pi->proto->probe_unit(pi)) { pi 331 drivers/block/paride/paride.c pi_unclaim(pi); pi 332 drivers/block/paride/paride.c if (pi_probe_mode(pi, max, scratch, verbose)) pi 334 drivers/block/paride/paride.c pi_unregister_parport(pi); pi 337 drivers/block/paride/paride.c pi_unclaim(pi); pi 338 drivers/block/paride/paride.c pi_unregister_parport(pi); pi 342 drivers/block/paride/paride.c if (!pi_probe_mode(pi, max, scratch, verbose)) { pi 343 drivers/block/paride/paride.c pi_unregister_parport(pi); pi 350 drivers/block/paride/paride.c int pi_init(PIA * pi, int autoprobe, int port, int mode, pi 380 drivers/block/paride/paride.c pi->proto = proto; pi 381 drivers/block/paride/paride.c pi->private = 0; pi 382 drivers/block/paride/paride.c if (proto->init_proto && proto->init_proto(pi) < 0) { pi 383 drivers/block/paride/paride.c pi->proto = NULL; pi 388 drivers/block/paride/paride.c pi->delay = pi->proto->default_delay; pi 390 drivers/block/paride/paride.c pi->delay = delay; pi 391 drivers/block/paride/paride.c pi->devtype = devtype; pi 392 drivers/block/paride/paride.c pi->device = device; pi 394 drivers/block/paride/paride.c pi->parname = NULL; pi 395 drivers/block/paride/paride.c pi->pardev = NULL; pi 396 drivers/block/paride/paride.c init_waitqueue_head(&pi->parq); pi 397 drivers/block/paride/paride.c pi->claimed = 0; pi 398 drivers/block/paride/paride.c pi->claim_cont = NULL; pi 400 drivers/block/paride/paride.c pi->mode = mode; pi 402 drivers/block/paride/paride.c pi->port = port; pi 403 drivers/block/paride/paride.c if (pi_probe_unit(pi, unit, scratch, verbose)) pi 405 drivers/block/paride/paride.c pi->port = 0; pi 408 drivers/block/paride/paride.c while ((pi->port = lpts[k++])) pi 410 drivers/block/paride/paride.c (pi, unit, scratch, verbose)) pi 412 drivers/block/paride/paride.c if (pi->port) pi 415 drivers/block/paride/paride.c if (pi->proto->release_proto) pi 416 drivers/block/paride/paride.c pi->proto->release_proto(pi); pi 420 drivers/block/paride/paride.c if (!pi->port) { pi 428 drivers/block/paride/paride.c if (pi->parname) pi 429 drivers/block/paride/paride.c printk("%s: Sharing %s at 0x%x\n", pi->device, pi 430 drivers/block/paride/paride.c pi->parname, pi->port); pi 432 drivers/block/paride/paride.c pi->proto->log_adapter(pi, scratch, verbose); pi 61 drivers/block/paride/paride.h extern int pi_init(PIA *pi, pi 74 drivers/block/paride/paride.h extern void pi_release(PIA *pi); pi 83 drivers/block/paride/paride.h extern void pi_write_regr(PIA *pi, int cont, int regr, int val); pi 85 drivers/block/paride/paride.h extern int pi_read_regr(PIA *pi, int cont, int regr); pi 87 drivers/block/paride/paride.h extern void pi_write_block(PIA *pi, char * buf, int count); pi 89 drivers/block/paride/paride.h extern void pi_read_block(PIA *pi, char * buf, int count); pi 91 drivers/block/paride/paride.h extern void pi_connect(PIA *pi); pi 93 drivers/block/paride/paride.h extern void pi_disconnect(PIA *pi); pi 95 drivers/block/paride/paride.h extern void pi_do_claimed(PIA *pi, void (*cont)(void)); pi 96 drivers/block/paride/paride.h extern int pi_schedule_claimed(PIA *pi, void (*cont)(void)); pi 100 drivers/block/paride/paride.h #define delay_p (pi->delay?udelay(pi->delay):(void)0) pi 101 drivers/block/paride/paride.h #define out_p(offs,byte) outb(byte,pi->port+offs); delay_p; pi 102 drivers/block/paride/paride.h #define in_p(offs) (delay_p,inb(pi->port+offs)) pi 113 drivers/block/paride/paride.h #define w4w(data) {outw(data,pi->port+4); delay_p;} pi 114 drivers/block/paride/paride.h #define w4l(data) {outl(data,pi->port+4); delay_p;} pi 115 drivers/block/paride/paride.h #define r4w() (delay_p,inw(pi->port+4)&0xffff) pi 116 drivers/block/paride/paride.h #define r4l() (delay_p,inl(pi->port+4)&0xffffffff) pi 195 drivers/block/paride/pcd.c struct pi_adapter *pi; pi 326 drivers/block/paride/pcd.c cd->pi = &cd->pia; pi 364 drivers/block/paride/pcd.c return pi_read_regr(cd->pi, 1, 6); pi 369 drivers/block/paride/pcd.c return pi_read_regr(cd->pi, 0, reg); pi 374 drivers/block/paride/pcd.c pi_write_regr(cd->pi, 0, reg, val); pi 403 drivers/block/paride/pcd.c pi_connect(cd->pi); pi 408 drivers/block/paride/pcd.c pi_disconnect(cd->pi); pi 417 drivers/block/paride/pcd.c pi_disconnect(cd->pi); pi 423 drivers/block/paride/pcd.c pi_disconnect(cd->pi); pi 427 drivers/block/paride/pcd.c pi_write_block(cd->pi, cmd, 12); pi 449 drivers/block/paride/pcd.c pi_read_block(cd->pi, buf, n); pi 479 drivers/block/paride/pcd.c pi_disconnect(cd->pi); pi 567 drivers/block/paride/pcd.c pi_connect(cd->pi); pi 590 drivers/block/paride/pcd.c pi_disconnect(cd->pi); pi 726 drivers/block/paride/pcd.c if (cd->disk && pi_init(cd->pi, 1, -1, -1, -1, -1, -1, pi 732 drivers/block/paride/pcd.c pi_release(cd->pi); pi 741 drivers/block/paride/pcd.c if (!pi_init(cd->pi, 0, conf[D_PRT], conf[D_MOD], pi 749 drivers/block/paride/pcd.c pi_release(cd->pi); pi 895 drivers/block/paride/pcd.c pi_do_claimed(pcd_current->pi, pcd_start); pi 906 drivers/block/paride/pcd.c pi_do_claimed(pcd_current->pi, pcd_start); pi 1052 drivers/block/paride/pcd.c pi_release(cd->pi); pi 225 drivers/block/paride/pd.c struct pi_adapter *pi; pi 261 drivers/block/paride/pd.c return pi_read_regr(disk->pi, 1, 6); pi 266 drivers/block/paride/pd.c return pi_read_regr(disk->pi, 0, reg); pi 271 drivers/block/paride/pd.c pi_write_regr(disk->pi, 1, 6, val); pi 276 drivers/block/paride/pd.c pi_write_regr(disk->pi, 0, reg, val); pi 434 drivers/block/paride/pd.c pi_current = pd_current->pi; pi 576 drivers/block/paride/pd.c pi_write_block(pd_current->pi, pd_buf, 512); pi 604 drivers/block/paride/pd.c pi_read_block(pd_current->pi, pd_buf, 512); pi 718 drivers/block/paride/pd.c pi_read_block(disk->pi, pd_scratch, 512); pi 945 drivers/block/paride/pd.c disk->pi = &disk->pia; pi 966 drivers/block/paride/pd.c if (pi_init(disk->pi, 1, -1, -1, -1, -1, -1, pd_scratch, pi 970 drivers/block/paride/pd.c pi_release(disk->pi); pi 978 drivers/block/paride/pd.c if (pi_init(disk->pi, 0, parm[D_PRT], parm[D_MOD], pi 983 drivers/block/paride/pd.c pi_release(disk->pi); pi 1035 drivers/block/paride/pd.c pi_release(disk->pi); pi 233 drivers/block/paride/pf.c struct pi_adapter *pi; pi 313 drivers/block/paride/pf.c pf->pi = &pf->pia; pi 413 drivers/block/paride/pf.c return pi_read_regr(pf->pi, 1, 6); pi 418 drivers/block/paride/pf.c return pi_read_regr(pf->pi, 0, reg); pi 423 drivers/block/paride/pf.c pi_write_regr(pf->pi, 0, reg, val); pi 452 drivers/block/paride/pf.c pi_connect(pf->pi); pi 457 drivers/block/paride/pf.c pi_disconnect(pf->pi); pi 466 drivers/block/paride/pf.c pi_disconnect(pf->pi); pi 472 drivers/block/paride/pf.c pi_disconnect(pf->pi); pi 476 drivers/block/paride/pf.c pi_write_block(pf->pi, cmd, 12); pi 491 drivers/block/paride/pf.c pi_read_block(pf->pi, buf, n); pi 496 drivers/block/paride/pf.c pi_disconnect(pf->pi); pi 564 drivers/block/paride/pf.c pi_connect(pf->pi); pi 587 drivers/block/paride/pf.c pi_disconnect(pf->pi); pi 737 drivers/block/paride/pf.c if (pi_init(pf->pi, 1, -1, -1, -1, -1, -1, pf_scratch, PI_PF, pi 743 drivers/block/paride/pf.c pi_release(pf->pi); pi 751 drivers/block/paride/pf.c if (pi_init(pf->pi, 0, conf[D_PRT], conf[D_MOD], pi 758 drivers/block/paride/pf.c pi_release(pf->pi); pi 861 drivers/block/paride/pf.c pi_do_claimed(pf_current->pi, do_pf_read); pi 863 drivers/block/paride/pf.c pi_do_claimed(pf_current->pi, do_pf_write); pi 928 drivers/block/paride/pf.c pi_disconnect(pf_current->pi); pi 931 drivers/block/paride/pf.c pi_do_claimed(pf_current->pi, do_pf_read_start); pi 946 drivers/block/paride/pf.c pi_disconnect(pf_current->pi); pi 950 drivers/block/paride/pf.c pi_do_claimed(pf_current->pi, do_pf_read_start); pi 956 drivers/block/paride/pf.c pi_read_block(pf_current->pi, pf_buf, 512); pi 960 drivers/block/paride/pf.c pi_disconnect(pf_current->pi); pi 974 drivers/block/paride/pf.c pi_disconnect(pf_current->pi); pi 977 drivers/block/paride/pf.c pi_do_claimed(pf_current->pi, do_pf_write_start); pi 987 drivers/block/paride/pf.c pi_disconnect(pf_current->pi); pi 990 drivers/block/paride/pf.c pi_do_claimed(pf_current->pi, do_pf_write_start); pi 996 drivers/block/paride/pf.c pi_write_block(pf_current->pi, pf_buf, 512); pi 1007 drivers/block/paride/pf.c pi_disconnect(pf_current->pi); pi 1010 drivers/block/paride/pf.c pi_do_claimed(pf_current->pi, do_pf_write_start); pi 1016 drivers/block/paride/pf.c pi_disconnect(pf_current->pi); pi 1073 drivers/block/paride/pf.c pi_release(pf->pi); pi 210 drivers/block/paride/pg.c struct pi_adapter *pi; pi 251 drivers/block/paride/pg.c dev->pi = &dev->pia; pi 265 drivers/block/paride/pg.c return pi_read_regr(dev->pi, 1, 6); pi 270 drivers/block/paride/pg.c return pi_read_regr(dev->pi, 0, reg); pi 275 drivers/block/paride/pg.c pi_write_regr(dev->pi, 0, reg, val); pi 324 drivers/block/paride/pg.c pi_connect(dev->pi); pi 343 drivers/block/paride/pg.c pi_write_block(dev->pi, cmd, 12); pi 353 drivers/block/paride/pg.c pi_disconnect(dev->pi); pi 371 drivers/block/paride/pg.c pi_write_block(dev->pi, buf, n); pi 373 drivers/block/paride/pg.c pi_read_block(dev->pi, buf, n); pi 383 drivers/block/paride/pg.c pi_disconnect(dev->pi); pi 394 drivers/block/paride/pg.c pi_connect(dev->pi); pi 418 drivers/block/paride/pg.c pi_disconnect(dev->pi); pi 493 drivers/block/paride/pg.c if (pi_init(dev->pi, 1, -1, -1, -1, -1, -1, pg_scratch, pi 499 drivers/block/paride/pg.c pi_release(dev->pi); pi 507 drivers/block/paride/pg.c if (pi_init(dev->pi, 0, parm[D_PRT], parm[D_MOD], pi 514 drivers/block/paride/pg.c pi_release(dev->pi); pi 688 drivers/block/paride/pg.c pi_release(dev->pi); pi 728 drivers/block/paride/pg.c pi_release(dev->pi); pi 218 drivers/block/paride/pt.c struct pi_adapter *pi; pi 252 drivers/block/paride/pt.c static inline int status_reg(struct pi_adapter *pi) pi 254 drivers/block/paride/pt.c return pi_read_regr(pi, 1, 6); pi 257 drivers/block/paride/pt.c static inline int read_reg(struct pi_adapter *pi, int reg) pi 259 drivers/block/paride/pt.c return pi_read_regr(pi, 0, reg); pi 262 drivers/block/paride/pt.c static inline void write_reg(struct pi_adapter *pi, int reg, int val) pi 264 drivers/block/paride/pt.c pi_write_regr(pi, 0, reg, val); pi 275 drivers/block/paride/pt.c struct pi_adapter *pi = tape->pi; pi 278 drivers/block/paride/pt.c while ((((r = status_reg(pi)) & go) || (stop && (!(r & stop)))) pi 283 drivers/block/paride/pt.c s = read_reg(pi, 7); pi 284 drivers/block/paride/pt.c e = read_reg(pi, 1); pi 285 drivers/block/paride/pt.c p = read_reg(pi, 2); pi 299 drivers/block/paride/pt.c struct pi_adapter *pi = tape->pi; pi 300 drivers/block/paride/pt.c pi_connect(pi); pi 302 drivers/block/paride/pt.c write_reg(pi, 6, DRIVE(tape)); pi 305 drivers/block/paride/pt.c pi_disconnect(pi); pi 309 drivers/block/paride/pt.c write_reg(pi, 4, dlen % 256); pi 310 drivers/block/paride/pt.c write_reg(pi, 5, dlen / 256); pi 311 drivers/block/paride/pt.c write_reg(pi, 7, 0xa0); /* ATAPI packet command */ pi 314 drivers/block/paride/pt.c pi_disconnect(pi); pi 318 drivers/block/paride/pt.c if (read_reg(pi, 2) != 1) { pi 320 drivers/block/paride/pt.c pi_disconnect(pi); pi 324 drivers/block/paride/pt.c pi_write_block(pi, cmd, 12); pi 331 drivers/block/paride/pt.c struct pi_adapter *pi = tape->pi; pi 337 drivers/block/paride/pt.c if (read_reg(pi, 7) & STAT_DRQ) { pi 338 drivers/block/paride/pt.c n = (((read_reg(pi, 4) + 256 * read_reg(pi, 5)) + pi 340 drivers/block/paride/pt.c p = read_reg(pi, 2) & 3; pi 342 drivers/block/paride/pt.c pi_write_block(pi, buf, n); pi 344 drivers/block/paride/pt.c pi_read_block(pi, buf, n); pi 349 drivers/block/paride/pt.c pi_disconnect(pi); pi 396 drivers/block/paride/pt.c struct pi_adapter *pi = tape->pi; pi 405 drivers/block/paride/pt.c pi_connect(pi); pi 406 drivers/block/paride/pt.c write_reg(pi, 6, DRIVE(tape)); pi 407 drivers/block/paride/pt.c s = read_reg(pi, 7); pi 408 drivers/block/paride/pt.c e = read_reg(pi, 1); pi 409 drivers/block/paride/pt.c pi_disconnect(pi); pi 431 drivers/block/paride/pt.c pi_disconnect(tape->pi); pi 453 drivers/block/paride/pt.c struct pi_adapter *pi = tape->pi; pi 457 drivers/block/paride/pt.c pi_connect(pi); pi 458 drivers/block/paride/pt.c write_reg(pi, 6, DRIVE(tape)); pi 459 drivers/block/paride/pt.c write_reg(pi, 7, 8); pi 464 drivers/block/paride/pt.c while ((k++ < PT_RESET_TMO) && (status_reg(pi) & STAT_BUSY)) pi 469 drivers/block/paride/pt.c flg &= (read_reg(pi, i + 1) == expect[i]); pi 474 drivers/block/paride/pt.c printk("%3x", read_reg(pi, i + 1)); pi 480 drivers/block/paride/pt.c pi_disconnect(pi); pi 618 drivers/block/paride/pt.c tape->pi = &tape->pia; pi 629 drivers/block/paride/pt.c if (pi_init(tape->pi, 0, DU[D_PRT], DU[D_MOD], DU[D_UNI], pi 636 drivers/block/paride/pt.c pi_release(tape->pi); pi 641 drivers/block/paride/pt.c if (pi_init(tape->pi, 1, -1, -1, -1, -1, -1, pt_scratch, pi 647 drivers/block/paride/pt.c pi_release(tape->pi); pi 768 drivers/block/paride/pt.c struct pi_adapter *pi = tape->pi; pi 813 drivers/block/paride/pt.c pi_disconnect(pi); pi 821 drivers/block/paride/pt.c s = read_reg(pi, 7); pi 826 drivers/block/paride/pt.c n = (read_reg(pi, 4) + 256 * read_reg(pi, 5)); pi 827 drivers/block/paride/pt.c p = (read_reg(pi, 2) & 3); pi 829 drivers/block/paride/pt.c pi_disconnect(pi); pi 839 drivers/block/paride/pt.c pi_read_block(pi, tape->bufptr, k); pi 845 drivers/block/paride/pt.c pi_disconnect(pi); pi 853 drivers/block/paride/pt.c pi_disconnect(pi); pi 865 drivers/block/paride/pt.c struct pi_adapter *pi = tape->pi; pi 914 drivers/block/paride/pt.c pi_disconnect(pi); pi 922 drivers/block/paride/pt.c s = read_reg(pi, 7); pi 927 drivers/block/paride/pt.c n = (read_reg(pi, 4) + 256 * read_reg(pi, 5)); pi 928 drivers/block/paride/pt.c p = (read_reg(pi, 2) & 3); pi 930 drivers/block/paride/pt.c pi_disconnect(pi); pi 944 drivers/block/paride/pt.c pi_disconnect(pi); pi 947 drivers/block/paride/pt.c pi_write_block(pi, tape->bufptr, k); pi 954 drivers/block/paride/pt.c pi_disconnect(pi); pi 982 drivers/block/paride/pt.c pi_release(pt[unit].pi); pi 1019 drivers/block/paride/pt.c pi_release(pt[unit].pi); pi 385 drivers/crypto/chelsio/chcr_ipsec.c struct port_info *pi; pi 393 drivers/crypto/chelsio/chcr_ipsec.c pi = netdev_priv(dev); pi 394 drivers/crypto/chelsio/chcr_ipsec.c adap = pi->adapter; pi 396 drivers/crypto/chelsio/chcr_ipsec.c q = &adap->sge.ethtxq[qidx + pi->first_qset]; pi 436 drivers/crypto/chelsio/chcr_ipsec.c struct port_info *pi; pi 441 drivers/crypto/chelsio/chcr_ipsec.c pi = netdev_priv(dev); pi 442 drivers/crypto/chelsio/chcr_ipsec.c adap = pi->adapter; pi 444 drivers/crypto/chelsio/chcr_ipsec.c q = &adap->sge.ethtxq[qidx + pi->first_qset]; pi 453 drivers/crypto/chelsio/chcr_ipsec.c ctrl0 = TXPKT_OPCODE_V(CPL_TX_PKT_XT) | TXPKT_INTF_V(pi->tx_chan) | pi 481 drivers/crypto/chelsio/chcr_ipsec.c struct port_info *pi; pi 484 drivers/crypto/chelsio/chcr_ipsec.c pi = netdev_priv(dev); pi 485 drivers/crypto/chelsio/chcr_ipsec.c adap = pi->adapter; pi 487 drivers/crypto/chelsio/chcr_ipsec.c q = &adap->sge.ethtxq[qidx + pi->first_qset]; pi 526 drivers/crypto/chelsio/chcr_ipsec.c struct port_info *pi = netdev_priv(dev); pi 527 drivers/crypto/chelsio/chcr_ipsec.c struct adapter *adap = pi->adapter; pi 543 drivers/crypto/chelsio/chcr_ipsec.c struct sge_eth_txq *q = &adap->sge.ethtxq[qidx + pi->first_qset]; pi 578 drivers/crypto/chelsio/chcr_ipsec.c wr->req.ulptx.cmd_dest = FILL_ULPTX_CMD_DEST(pi->port_id, qid); pi 682 drivers/crypto/chelsio/chcr_ipsec.c struct port_info *pi; pi 698 drivers/crypto/chelsio/chcr_ipsec.c pi = netdev_priv(dev); pi 699 drivers/crypto/chelsio/chcr_ipsec.c adap = pi->adapter; pi 701 drivers/crypto/chelsio/chcr_ipsec.c q = &adap->sge.ethtxq[qidx + pi->first_qset]; pi 601 drivers/crypto/chelsio/chtls/chtls_cm.c struct port_info *pi; pi 614 drivers/crypto/chelsio/chtls/chtls_cm.c pi = netdev_priv(ndev); pi 615 drivers/crypto/chelsio/chtls/chtls_cm.c adap = pi->adapter; pi 1005 drivers/crypto/chelsio/chtls/chtls_cm.c struct port_info *pi = netdev_priv(ndev); pi 1009 drivers/crypto/chelsio/chtls/chtls_cm.c linkspeed = pi->link_cfg.speed; pi 156 drivers/firmware/arm_scmi/perf.c struct scmi_perf_info *pi) pi 173 drivers/firmware/arm_scmi/perf.c pi->num_domains = le16_to_cpu(attr->num_domains); pi 174 drivers/firmware/arm_scmi/perf.c pi->power_scale_mw = POWER_SCALE_IN_MILLIWATT(flags); pi 175 drivers/firmware/arm_scmi/perf.c pi->stats_addr = le32_to_cpu(attr->stats_addr_low) | pi 177 drivers/firmware/arm_scmi/perf.c pi->stats_size = le32_to_cpu(attr->stats_size); pi 357 drivers/firmware/arm_scmi/perf.c struct scmi_perf_info *pi = handle->perf_priv; pi 358 drivers/firmware/arm_scmi/perf.c struct perf_dom_info *dom = pi->dom_info + domain; pi 399 drivers/firmware/arm_scmi/perf.c struct scmi_perf_info *pi = handle->perf_priv; pi 400 drivers/firmware/arm_scmi/perf.c struct perf_dom_info *dom = pi->dom_info + domain; pi 437 drivers/firmware/arm_scmi/perf.c struct scmi_perf_info *pi = handle->perf_priv; pi 438 drivers/firmware/arm_scmi/perf.c struct perf_dom_info *dom = pi->dom_info + domain; pi 474 drivers/firmware/arm_scmi/perf.c struct scmi_perf_info *pi = handle->perf_priv; pi 475 drivers/firmware/arm_scmi/perf.c struct perf_dom_info *dom = pi->dom_info + domain; pi 602 drivers/firmware/arm_scmi/perf.c struct scmi_perf_info *pi = handle->perf_priv; pi 608 drivers/firmware/arm_scmi/perf.c dom = pi->dom_info + domain; pi 631 drivers/firmware/arm_scmi/perf.c struct scmi_perf_info *pi = handle->perf_priv; pi 637 drivers/firmware/arm_scmi/perf.c dom = pi->dom_info + domain; pi 645 drivers/firmware/arm_scmi/perf.c struct scmi_perf_info *pi = handle->perf_priv; pi 646 drivers/firmware/arm_scmi/perf.c struct perf_dom_info *dom = pi->dom_info + domain; pi 657 drivers/firmware/arm_scmi/perf.c struct scmi_perf_info *pi = handle->perf_priv; pi 658 drivers/firmware/arm_scmi/perf.c struct perf_dom_info *dom = pi->dom_info + domain; pi 670 drivers/firmware/arm_scmi/perf.c struct scmi_perf_info *pi = handle->perf_priv; pi 676 drivers/firmware/arm_scmi/perf.c dom = pi->dom_info + domain; pi 60 drivers/firmware/arm_scmi/power.c struct scmi_power_info *pi) pi 75 drivers/firmware/arm_scmi/power.c pi->num_domains = le16_to_cpu(attr->num_domains); pi 76 drivers/firmware/arm_scmi/power.c pi->stats_addr = le32_to_cpu(attr->stats_addr_low) | pi 78 drivers/firmware/arm_scmi/power.c pi->stats_size = le32_to_cpu(attr->stats_size); pi 162 drivers/firmware/arm_scmi/power.c struct scmi_power_info *pi = handle->power_priv; pi 164 drivers/firmware/arm_scmi/power.c return pi->num_domains; pi 169 drivers/firmware/arm_scmi/power.c struct scmi_power_info *pi = handle->power_priv; pi 170 drivers/firmware/arm_scmi/power.c struct power_dom_info *dom = pi->dom_info + domain; pi 56 drivers/firmware/arm_scmi/reset.c struct scmi_reset_info *pi) pi 70 drivers/firmware/arm_scmi/reset.c pi->num_domains = attr & NUM_RESET_DOMAIN_MASK; pi 112 drivers/firmware/arm_scmi/reset.c struct scmi_reset_info *pi = handle->reset_priv; pi 114 drivers/firmware/arm_scmi/reset.c return pi->num_domains; pi 119 drivers/firmware/arm_scmi/reset.c struct scmi_reset_info *pi = handle->reset_priv; pi 120 drivers/firmware/arm_scmi/reset.c struct reset_dom_info *dom = pi->dom_info + domain; pi 127 drivers/firmware/arm_scmi/reset.c struct scmi_reset_info *pi = handle->reset_priv; pi 128 drivers/firmware/arm_scmi/reset.c struct reset_dom_info *dom = pi->dom_info + domain; pi 139 drivers/firmware/arm_scmi/reset.c struct scmi_reset_info *pi = handle->reset_priv; pi 140 drivers/firmware/arm_scmi/reset.c struct reset_dom_info *rdom = pi->dom_info + domain; pi 30 drivers/gpio/gpio-ml-ioh.c u32 pi; pi 113 drivers/gpio/gpio-ml-ioh.c return !!(ioread32(&chip->reg->regs[chip->ch].pi) & (1 << nr)); pi 30 drivers/gpio/gpio-pch.c u32 pi; pi 118 drivers/gpio/gpio-pch.c return (ioread32(&chip->reg->pi) >> nr) & 1; pi 379 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = adev->pm.dpm.priv; pi 381 drivers/gpu/drm/amd/amdgpu/kv_dpm.c return pi; pi 461 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 464 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_sq_ramping) { pi 473 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_db_ramping) { pi 482 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_td_ramping) { pi 491 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_tcp_ramping) { pi 503 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 506 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_sq_ramping || pi 507 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->caps_db_ramping || pi 508 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->caps_td_ramping || pi 509 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->caps_tcp_ramping) { pi 531 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 533 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_cac) { pi 563 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 566 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_cac) { pi 570 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->cac_enabled = false; pi 572 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->cac_enabled = true; pi 573 drivers/gpu/drm/amd/amdgpu/kv_dpm.c } else if (pi->cac_enabled) { pi 575 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->cac_enabled = false; pi 584 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 590 drivers/gpu/drm/amd/amdgpu/kv_dpm.c &tmp, pi->sram_end); pi 593 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->dpm_table_start = tmp; pi 597 drivers/gpu/drm/amd/amdgpu/kv_dpm.c &tmp, pi->sram_end); pi 600 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->soft_regs_start = tmp; pi 607 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 610 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_voltage_change_enable = 1; pi 613 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->dpm_table_start + pi 615 drivers/gpu/drm/amd/amdgpu/kv_dpm.c &pi->graphics_voltage_change_enable, pi 616 drivers/gpu/drm/amd/amdgpu/kv_dpm.c sizeof(u8), pi->sram_end); pi 623 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 626 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_interval = 1; pi 629 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->dpm_table_start + pi 631 drivers/gpu/drm/amd/amdgpu/kv_dpm.c &pi->graphics_interval, pi 632 drivers/gpu/drm/amd/amdgpu/kv_dpm.c sizeof(u8), pi->sram_end); pi 639 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 643 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->dpm_table_start + pi 645 drivers/gpu/drm/amd/amdgpu/kv_dpm.c &pi->graphics_boot_level, pi 646 drivers/gpu/drm/amd/amdgpu/kv_dpm.c sizeof(u8), pi->sram_end); pi 664 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 673 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[index].SclkDid = (u8)dividers.post_div; pi 674 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[index].SclkFrequency = cpu_to_be32(sclk); pi 688 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 690 drivers/gpu/drm/amd/amdgpu/kv_dpm.c &pi->sys_info.vid_mapping_table, pi 699 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 701 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[index].VoltageDownH = (u8)pi->voltage_drop_t; pi 702 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[index].MinVddNb = pi 710 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 712 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[index].AT = cpu_to_be16((u16)at); pi 720 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 722 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[index].EnabledForActivity = enable ? 1 : 0; pi 782 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 786 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_sclk_throttle_low_notification) { pi 787 drivers/gpu/drm/amd/amdgpu/kv_dpm.c low_sclk_interrupt_t = cpu_to_be32(pi->low_sclk_interrupt_t); pi 790 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->dpm_table_start + pi 793 drivers/gpu/drm/amd/amdgpu/kv_dpm.c sizeof(u32), pi->sram_end); pi 800 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 806 drivers/gpu/drm/amd/amdgpu/kv_dpm.c for (i = pi->graphics_dpm_level_count - 1; i > 0; i--) { pi 807 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (table->entries[i].clk == pi->boot_pl.sclk) pi 811 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_boot_level = (u8)i; pi 815 drivers/gpu/drm/amd/amdgpu/kv_dpm.c &pi->sys_info.sclk_voltage_mapping_table; pi 820 drivers/gpu/drm/amd/amdgpu/kv_dpm.c for (i = pi->graphics_dpm_level_count - 1; i > 0; i--) { pi 821 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (table->entries[i].sclk_frequency == pi->boot_pl.sclk) pi 825 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_boot_level = (u8)i; pi 833 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 836 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_therm_throttle_enable = 1; pi 839 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->dpm_table_start + pi 841 drivers/gpu/drm/amd/amdgpu/kv_dpm.c &pi->graphics_therm_throttle_enable, pi 842 drivers/gpu/drm/amd/amdgpu/kv_dpm.c sizeof(u8), pi->sram_end); pi 849 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 853 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->dpm_table_start + pi 855 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (u8 *)&pi->graphics_level, pi 857 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sram_end); pi 863 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->dpm_table_start + pi 865 drivers/gpu/drm/amd/amdgpu/kv_dpm.c &pi->graphics_dpm_level_count, pi 866 drivers/gpu/drm/amd/amdgpu/kv_dpm.c sizeof(u8), pi->sram_end); pi 878 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 881 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_enable_dfs_bypass) { pi 903 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 913 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->uvd_level_count = 0; pi 915 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->high_voltage_t && pi 916 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (pi->high_voltage_t < table->entries[i].v)) pi 919 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->uvd_level[i].VclkFrequency = cpu_to_be32(table->entries[i].vclk); pi 920 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->uvd_level[i].DclkFrequency = cpu_to_be32(table->entries[i].dclk); pi 921 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->uvd_level[i].MinVddNb = cpu_to_be16(table->entries[i].v); pi 923 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->uvd_level[i].VClkBypassCntl = pi 925 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->uvd_level[i].DClkBypassCntl = pi 932 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->uvd_level[i].VclkDivider = (u8)dividers.post_div; pi 938 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->uvd_level[i].DclkDivider = (u8)dividers.post_div; pi 940 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->uvd_level_count++; pi 944 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->dpm_table_start + pi 946 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (u8 *)&pi->uvd_level_count, pi 947 drivers/gpu/drm/amd/amdgpu/kv_dpm.c sizeof(u8), pi->sram_end); pi 951 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->uvd_interval = 1; pi 954 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->dpm_table_start + pi 956 drivers/gpu/drm/amd/amdgpu/kv_dpm.c &pi->uvd_interval, pi 957 drivers/gpu/drm/amd/amdgpu/kv_dpm.c sizeof(u8), pi->sram_end); pi 962 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->dpm_table_start + pi 964 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (u8 *)&pi->uvd_level, pi 966 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sram_end); pi 974 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 984 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->vce_level_count = 0; pi 986 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->high_voltage_t && pi 987 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->high_voltage_t < table->entries[i].v) pi 990 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->vce_level[i].Frequency = cpu_to_be32(table->entries[i].evclk); pi 991 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->vce_level[i].MinVoltage = cpu_to_be16(table->entries[i].v); pi 993 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->vce_level[i].ClkBypassCntl = pi 1000 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->vce_level[i].Divider = (u8)dividers.post_div; pi 1002 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->vce_level_count++; pi 1006 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->dpm_table_start + pi 1008 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (u8 *)&pi->vce_level_count, pi 1010 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sram_end); pi 1014 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->vce_interval = 1; pi 1017 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->dpm_table_start + pi 1019 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (u8 *)&pi->vce_interval, pi 1021 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sram_end); pi 1026 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->dpm_table_start + pi 1028 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (u8 *)&pi->vce_level, pi 1030 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sram_end); pi 1037 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1047 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->samu_level_count = 0; pi 1049 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->high_voltage_t && pi 1050 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->high_voltage_t < table->entries[i].v) pi 1053 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->samu_level[i].Frequency = cpu_to_be32(table->entries[i].clk); pi 1054 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->samu_level[i].MinVoltage = cpu_to_be16(table->entries[i].v); pi 1056 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->samu_level[i].ClkBypassCntl = pi 1063 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->samu_level[i].Divider = (u8)dividers.post_div; pi 1065 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->samu_level_count++; pi 1069 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->dpm_table_start + pi 1071 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (u8 *)&pi->samu_level_count, pi 1073 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sram_end); pi 1077 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->samu_interval = 1; pi 1080 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->dpm_table_start + pi 1082 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (u8 *)&pi->samu_interval, pi 1084 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sram_end); pi 1089 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->dpm_table_start + pi 1091 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (u8 *)&pi->samu_level, pi 1093 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sram_end); pi 1103 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1113 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->acp_level_count = 0; pi 1115 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->acp_level[i].Frequency = cpu_to_be32(table->entries[i].clk); pi 1116 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->acp_level[i].MinVoltage = cpu_to_be16(table->entries[i].v); pi 1122 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->acp_level[i].Divider = (u8)dividers.post_div; pi 1124 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->acp_level_count++; pi 1128 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->dpm_table_start + pi 1130 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (u8 *)&pi->acp_level_count, pi 1132 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sram_end); pi 1136 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->acp_interval = 1; pi 1139 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->dpm_table_start + pi 1141 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (u8 *)&pi->acp_interval, pi 1143 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sram_end); pi 1148 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->dpm_table_start + pi 1150 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (u8 *)&pi->acp_level, pi 1152 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sram_end); pi 1161 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1167 drivers/gpu/drm/amd/amdgpu/kv_dpm.c for (i = 0; i < pi->graphics_dpm_level_count; i++) { pi 1168 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_enable_dfs_bypass) { pi 1170 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 3; pi 1172 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 2; pi 1174 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 7; pi 1176 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 6; pi 1178 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 8; pi 1180 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 0; pi 1182 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 0; pi 1187 drivers/gpu/drm/amd/amdgpu/kv_dpm.c &pi->sys_info.sclk_voltage_mapping_table; pi 1188 drivers/gpu/drm/amd/amdgpu/kv_dpm.c for (i = 0; i < pi->graphics_dpm_level_count; i++) { pi 1189 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_enable_dfs_bypass) { pi 1191 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 3; pi 1193 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 2; pi 1195 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 7; pi 1197 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 6; pi 1199 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 8; pi 1201 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 0; pi 1203 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 0; pi 1217 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1219 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->acp_boot_level = 0xff; pi 1226 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1228 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->current_rps = *rps; pi 1229 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->current_ps = *new_ps; pi 1230 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->current_rps.ps_priv = &pi->current_ps; pi 1231 drivers/gpu/drm/amd/amdgpu/kv_dpm.c adev->pm.dpm.current_ps = &pi->current_rps; pi 1238 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1240 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->requested_rps = *rps; pi 1241 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->requested_ps = *new_ps; pi 1242 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->requested_rps.ps_priv = &pi->requested_ps; pi 1243 drivers/gpu/drm/amd/amdgpu/kv_dpm.c adev->pm.dpm.requested_ps = &pi->requested_rps; pi 1249 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1252 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->bapm_enable) { pi 1261 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1307 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->enable_auto_thermal_throttling) { pi 1372 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1387 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_vce_pg) /* power on the VCE block */ pi 1389 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_uvd_pg) /* power on the UVD block */ pi 1406 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1408 drivers/gpu/drm/amd/amdgpu/kv_dpm.c return amdgpu_kv_copy_bytes_to_smc(adev, pi->soft_regs_start + reg_offset, pi 1409 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (u8 *)&value, sizeof(u16), pi->sram_end); pi 1415 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1417 drivers/gpu/drm/amd/amdgpu/kv_dpm.c return amdgpu_kv_read_smc_sram_dword(adev, pi->soft_regs_start + reg_offset, pi 1418 drivers/gpu/drm/amd/amdgpu/kv_dpm.c value, pi->sram_end); pi 1424 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1426 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->low_sclk_interrupt_t = 0; pi 1431 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1434 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_fps) { pi 1438 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->fps_high_t = cpu_to_be16(tmp); pi 1440 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->dpm_table_start + pi 1442 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (u8 *)&pi->fps_high_t, pi 1443 drivers/gpu/drm/amd/amdgpu/kv_dpm.c sizeof(u16), pi->sram_end); pi 1446 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->fps_low_t = cpu_to_be16(tmp); pi 1449 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->dpm_table_start + pi 1451 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (u8 *)&pi->fps_low_t, pi 1452 drivers/gpu/drm/amd/amdgpu/kv_dpm.c sizeof(u16), pi->sram_end); pi 1460 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1462 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->uvd_power_gated = false; pi 1463 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->vce_power_gated = false; pi 1464 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->samu_power_gated = false; pi 1465 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->acp_power_gated = false; pi 1495 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1503 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->uvd_boot_level = table->count - 1; pi 1505 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->uvd_boot_level = 0; pi 1507 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (!pi->caps_uvd_dpm || pi->caps_stable_p_state) { pi 1508 drivers/gpu/drm/amd/amdgpu/kv_dpm.c mask = 1 << pi->uvd_boot_level; pi 1514 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->dpm_table_start + pi 1516 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (uint8_t *)&pi->uvd_boot_level, pi 1517 drivers/gpu/drm/amd/amdgpu/kv_dpm.c sizeof(u8), pi->sram_end); pi 1547 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1553 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_stable_p_state) pi 1554 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->vce_boot_level = table->count - 1; pi 1556 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->vce_boot_level = kv_get_vce_boot_level(adev, amdgpu_new_state->evclk); pi 1559 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->dpm_table_start + pi 1561 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (u8 *)&pi->vce_boot_level, pi 1563 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sram_end); pi 1567 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_stable_p_state) pi 1570 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (1 << pi->vce_boot_level)); pi 1581 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1587 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_stable_p_state) pi 1588 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->samu_boot_level = table->count - 1; pi 1590 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->samu_boot_level = 0; pi 1593 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->dpm_table_start + pi 1595 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (u8 *)&pi->samu_boot_level, pi 1597 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sram_end); pi 1601 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_stable_p_state) pi 1604 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (1 << pi->samu_boot_level)); pi 1629 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1632 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (!pi->caps_stable_p_state) { pi 1634 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (acp_boot_level != pi->acp_boot_level) { pi 1635 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->acp_boot_level = acp_boot_level; pi 1638 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (1 << pi->acp_boot_level)); pi 1645 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1651 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_stable_p_state) pi 1652 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->acp_boot_level = table->count - 1; pi 1654 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->acp_boot_level = kv_get_acp_boot_level(adev); pi 1657 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->dpm_table_start + pi 1659 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (u8 *)&pi->acp_boot_level, pi 1661 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sram_end); pi 1665 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_stable_p_state) pi 1668 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (1 << pi->acp_boot_level)); pi 1677 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1680 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->uvd_power_gated = gate; pi 1687 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_uvd_pg) pi 1691 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_uvd_pg) pi 1705 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1708 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->vce_power_gated = gate; pi 1715 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_vce_pg) /* power off the VCE block */ pi 1718 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_vce_pg) /* power on the VCE block */ pi 1730 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1732 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->samu_power_gated == gate) pi 1735 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->samu_power_gated = gate; pi 1739 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_samu_pg) pi 1742 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_samu_pg) pi 1750 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1752 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->acp_power_gated == gate) pi 1758 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->acp_power_gated = gate; pi 1762 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_acp_pg) pi 1765 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_acp_pg) pi 1775 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1781 drivers/gpu/drm/amd/amdgpu/kv_dpm.c for (i = 0; i < pi->graphics_dpm_level_count; i++) { pi 1783 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (i == (pi->graphics_dpm_level_count - 1))) { pi 1784 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->lowest_valid = i; pi 1789 drivers/gpu/drm/amd/amdgpu/kv_dpm.c for (i = pi->graphics_dpm_level_count - 1; i > 0; i--) { pi 1793 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->highest_valid = i; pi 1795 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->lowest_valid > pi->highest_valid) { pi 1796 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if ((new_ps->levels[0].sclk - table->entries[pi->highest_valid].clk) > pi 1797 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (table->entries[pi->lowest_valid].clk - new_ps->levels[new_ps->num_levels - 1].sclk)) pi 1798 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->highest_valid = pi->lowest_valid; pi 1800 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->lowest_valid = pi->highest_valid; pi 1804 drivers/gpu/drm/amd/amdgpu/kv_dpm.c &pi->sys_info.sclk_voltage_mapping_table; pi 1806 drivers/gpu/drm/amd/amdgpu/kv_dpm.c for (i = 0; i < (int)pi->graphics_dpm_level_count; i++) { pi 1808 drivers/gpu/drm/amd/amdgpu/kv_dpm.c i == (int)(pi->graphics_dpm_level_count - 1)) { pi 1809 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->lowest_valid = i; pi 1814 drivers/gpu/drm/amd/amdgpu/kv_dpm.c for (i = pi->graphics_dpm_level_count - 1; i > 0; i--) { pi 1819 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->highest_valid = i; pi 1821 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->lowest_valid > pi->highest_valid) { pi 1823 drivers/gpu/drm/amd/amdgpu/kv_dpm.c table->entries[pi->highest_valid].sclk_frequency) > pi 1824 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (table->entries[pi->lowest_valid].sclk_frequency - pi 1826 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->highest_valid = pi->lowest_valid; pi 1828 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->lowest_valid = pi->highest_valid; pi 1837 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1841 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_enable_dfs_bypass) { pi 1843 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[pi->graphics_boot_level].ClkBypassCntl : 0; pi 1845 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (pi->dpm_table_start + pi 1847 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (pi->graphics_boot_level * sizeof(SMU7_Fusion_GraphicsLevel)) + pi 1850 drivers/gpu/drm/amd/amdgpu/kv_dpm.c sizeof(u8), pi->sram_end); pi 1859 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1863 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->enable_nb_dpm && !pi->nb_dpm_enabled) { pi 1866 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->nb_dpm_enabled = true; pi 1869 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->enable_nb_dpm && pi->nb_dpm_enabled) { pi 1872 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->nb_dpm_enabled = false; pi 1907 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1914 drivers/gpu/drm/amd/amdgpu/kv_dpm.c &pi->requested_rps, pi 1915 drivers/gpu/drm/amd/amdgpu/kv_dpm.c &pi->current_rps); pi 1923 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1924 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct amdgpu_ps *new_ps = &pi->requested_rps; pi 1925 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct amdgpu_ps *old_ps = &pi->current_rps; pi 1928 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->bapm_enable) { pi 1937 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->enable_dpm) { pi 1966 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->enable_dpm) { pi 1998 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 1999 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct amdgpu_ps *new_ps = &pi->requested_rps; pi 2014 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 2029 drivers/gpu/drm/amd/amdgpu/kv_dpm.c kv_set_enabled_level(adev, pi->graphics_boot_level); pi 2037 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 2039 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->sys_info.sclk_voltage_mapping_table.num_max_dpm_entries > 0) { pi 2040 drivers/gpu/drm/amd/amdgpu/kv_dpm.c int idx = pi->sys_info.sclk_voltage_mapping_table.num_max_dpm_entries - 1; pi 2042 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sys_info.sclk_voltage_mapping_table.entries[idx].sclk_frequency; pi 2045 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sys_info.sclk_voltage_mapping_table.entries[idx].vid_2bit); pi 2048 drivers/gpu/drm/amd/amdgpu/kv_dpm.c table->mclk = pi->sys_info.nbp_memory_clock[0]; pi 2095 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 2097 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->boot_pl.sclk = pi->sys_info.bootup_sclk; pi 2098 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->boot_pl.vddc_index = pi->sys_info.bootup_nb_voltage_index; pi 2099 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->boot_pl.ds_divider_index = 0; pi 2100 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->boot_pl.ss_divider_index = 0; pi 2101 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->boot_pl.allow_gnb_slow = 1; pi 2102 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->boot_pl.force_nbp_state = 0; pi 2103 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->boot_pl.display_wm = 0; pi 2104 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->boot_pl.vce_wm = 0; pi 2150 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 2158 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (!pi->caps_sclk_ds) pi 2172 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 2179 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->high_voltage_t && pi 2181 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->high_voltage_t)) { pi 2188 drivers/gpu/drm/amd/amdgpu/kv_dpm.c &pi->sys_info.sclk_voltage_mapping_table; pi 2191 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->high_voltage_t && pi 2193 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->high_voltage_t)) { pi 2209 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 2231 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_stable_p_state) { pi 2261 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->high_voltage_t && pi 2262 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (pi->high_voltage_t < pi 2270 drivers/gpu/drm/amd/amdgpu/kv_dpm.c &pi->sys_info.sclk_voltage_mapping_table; pi 2273 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->high_voltage_t && pi 2274 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (pi->high_voltage_t < pi 2282 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_stable_p_state) { pi 2288 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->video_start = new_rps->dclk || new_rps->vclk || pi 2293 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->battery_state = true; pi 2295 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->battery_state = false; pi 2308 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->sys_info.nb_dpm_enable) { pi 2309 drivers/gpu/drm/amd/amdgpu/kv_dpm.c force_high = (mclk >= pi->sys_info.nbp_memory_clock[3]) || pi 2310 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->video_start || (adev->pm.dpm.new_active_crtc_count >= 3) || pi 2311 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->disable_nb_ps3_in_battery; pi 2323 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 2325 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[index].EnabledForThrottle = enable ? 1 : 0; pi 2330 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 2334 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->lowest_valid > pi->highest_valid) pi 2337 drivers/gpu/drm/amd/amdgpu/kv_dpm.c for (i = pi->lowest_valid; i <= pi->highest_valid; i++) { pi 2338 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[i].DeepSleepDivId = pi 2340 drivers/gpu/drm/amd/amdgpu/kv_dpm.c be32_to_cpu(pi->graphics_level[i].SclkFrequency), pi 2348 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 2355 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->lowest_valid > pi->highest_valid) pi 2359 drivers/gpu/drm/amd/amdgpu/kv_dpm.c for (i = pi->lowest_valid; i <= pi->highest_valid; i++) { pi 2360 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[i].GnbSlow = 1; pi 2361 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[i].ForceNbPs1 = 0; pi 2362 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[i].UpH = 0; pi 2365 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (!pi->sys_info.nb_dpm_enable) pi 2368 drivers/gpu/drm/amd/amdgpu/kv_dpm.c force_high = ((mclk >= pi->sys_info.nbp_memory_clock[3]) || pi 2369 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (adev->pm.dpm.new_active_crtc_count >= 3) || pi->video_start); pi 2372 drivers/gpu/drm/amd/amdgpu/kv_dpm.c for (i = pi->lowest_valid; i <= pi->highest_valid; i++) pi 2373 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[i].GnbSlow = 0; pi 2375 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->battery_state) pi 2376 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[0].ForceNbPs1 = 1; pi 2378 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[1].GnbSlow = 0; pi 2379 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[2].GnbSlow = 0; pi 2380 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[3].GnbSlow = 0; pi 2381 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[4].GnbSlow = 0; pi 2384 drivers/gpu/drm/amd/amdgpu/kv_dpm.c for (i = pi->lowest_valid; i <= pi->highest_valid; i++) { pi 2385 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[i].GnbSlow = 1; pi 2386 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[i].ForceNbPs1 = 0; pi 2387 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[i].UpH = 0; pi 2390 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->sys_info.nb_dpm_enable && pi->battery_state) { pi 2391 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[pi->lowest_valid].UpH = 0x28; pi 2392 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[pi->lowest_valid].GnbSlow = 0; pi 2393 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->lowest_valid != pi->highest_valid) pi 2394 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[pi->lowest_valid].ForceNbPs1 = 1; pi 2402 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 2405 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->lowest_valid > pi->highest_valid) pi 2408 drivers/gpu/drm/amd/amdgpu/kv_dpm.c for (i = pi->lowest_valid; i <= pi->highest_valid; i++) pi 2409 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[i].DisplayWatermark = (i == pi->highest_valid) ? 1 : 0; pi 2416 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 2424 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_dpm_level_count = 0; pi 2426 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->high_voltage_t && pi 2427 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (pi->high_voltage_t < pi 2433 drivers/gpu/drm/amd/amdgpu/kv_dpm.c &pi->sys_info.vid_mapping_table, pi 2436 drivers/gpu/drm/amd/amdgpu/kv_dpm.c kv_set_at(adev, i, pi->at[i]); pi 2438 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_dpm_level_count++; pi 2442 drivers/gpu/drm/amd/amdgpu/kv_dpm.c &pi->sys_info.sclk_voltage_mapping_table; pi 2444 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_dpm_level_count = 0; pi 2446 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->high_voltage_t && pi 2447 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->high_voltage_t < pi 2453 drivers/gpu/drm/amd/amdgpu/kv_dpm.c kv_set_at(adev, i, pi->at[i]); pi 2455 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_dpm_level_count++; pi 2465 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 2469 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (i >= pi->lowest_valid && i <= pi->highest_valid) pi 2485 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 2488 drivers/gpu/drm/amd/amdgpu/kv_dpm.c for (i = pi->lowest_valid; i <= pi->highest_valid; i++) pi 2500 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 2506 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->sys_info.nb_dpm_enable) { pi 2560 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 2577 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sys_info.bootup_sclk = le32_to_cpu(igp_info->info_8.ulBootUpEngineClock); pi 2578 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sys_info.bootup_uma_clk = le32_to_cpu(igp_info->info_8.ulBootUpUMAClock); pi 2579 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sys_info.bootup_nb_voltage_index = pi 2582 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sys_info.htc_tmp_lmt = 203; pi 2584 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sys_info.htc_tmp_lmt = igp_info->info_8.ucHtcTmpLmt; pi 2586 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sys_info.htc_hyst_lmt = 5; pi 2588 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sys_info.htc_hyst_lmt = igp_info->info_8.ucHtcHystLmt; pi 2589 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->sys_info.htc_tmp_lmt <= pi->sys_info.htc_hyst_lmt) { pi 2594 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sys_info.nb_dpm_enable = true; pi 2596 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sys_info.nb_dpm_enable = false; pi 2599 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sys_info.nbp_memory_clock[i] = pi 2601 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sys_info.nbp_n_clock[i] = pi 2606 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->caps_enable_dfs_bypass = true; pi 2609 drivers/gpu/drm/amd/amdgpu/kv_dpm.c &pi->sys_info.sclk_voltage_mapping_table, pi 2613 drivers/gpu/drm/amd/amdgpu/kv_dpm.c &pi->sys_info.vid_mapping_table, pi 2646 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 2649 drivers/gpu/drm/amd/amdgpu/kv_dpm.c ps->levels[0] = pi->boot_pl; pi 2683 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 2695 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->caps_sclk_ds) { pi 2793 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi; pi 2796 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi = kzalloc(sizeof(struct kv_power_info), GFP_KERNEL); pi 2797 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi == NULL) pi 2799 drivers/gpu/drm/amd/amdgpu/kv_dpm.c adev->pm.dpm.priv = pi; pi 2810 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->at[i] = TRINITY_AT_DFLT; pi 2812 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->sram_end = SMC_RAM_END; pi 2814 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->enable_nb_dpm = true; pi 2816 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->caps_power_containment = true; pi 2817 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->caps_cac = true; pi 2818 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->enable_didt = false; pi 2819 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (pi->enable_didt) { pi 2820 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->caps_sq_ramping = true; pi 2821 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->caps_db_ramping = true; pi 2822 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->caps_td_ramping = true; pi 2823 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->caps_tcp_ramping = true; pi 2827 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->caps_sclk_ds = true; pi 2829 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->caps_sclk_ds = false; pi 2831 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->enable_auto_thermal_throttling = true; pi 2832 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->disable_nb_ps3_in_battery = false; pi 2834 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->bapm_enable = false; pi 2836 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->bapm_enable = true; pi 2837 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->voltage_drop_t = 0; pi 2838 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->caps_sclk_throttle_low_notification = false; pi 2839 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->caps_fps = false; /* true? */ pi 2840 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->caps_uvd_pg = (adev->pg_flags & AMD_PG_SUPPORT_UVD) ? true : false; pi 2841 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->caps_uvd_dpm = true; pi 2842 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->caps_vce_pg = (adev->pg_flags & AMD_PG_SUPPORT_VCE) ? true : false; pi 2843 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->caps_samu_pg = (adev->pg_flags & AMD_PG_SUPPORT_SAMU) ? true : false; pi 2844 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->caps_acp_pg = (adev->pg_flags & AMD_PG_SUPPORT_ACP) ? true : false; pi 2845 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->caps_stable_p_state = false; pi 2858 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->enable_dpm = true; pi 2868 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 2879 drivers/gpu/drm/amd/amdgpu/kv_dpm.c sclk = be32_to_cpu(pi->graphics_level[current_index].SclkFrequency); pi 2884 drivers/gpu/drm/amd/amdgpu/kv_dpm.c seq_printf(m, "uvd %sabled\n", pi->uvd_power_gated ? "dis" : "en"); pi 2885 drivers/gpu/drm/amd/amdgpu/kv_dpm.c seq_printf(m, "vce %sabled\n", pi->vce_power_gated ? "dis" : "en"); pi 2931 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 2932 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_ps *requested_state = kv_get_ps(&pi->requested_rps); pi 2943 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 2945 drivers/gpu/drm/amd/amdgpu/kv_dpm.c return pi->sys_info.bootup_uma_clk; pi 3284 drivers/gpu/drm/amd/amdgpu/kv_dpm.c struct kv_power_info *pi = kv_get_pi(adev); pi 3299 drivers/gpu/drm/amd/amdgpu/kv_dpm.c pi->graphics_level[pl_index].SclkFrequency); pi 1859 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct si_power_info *pi = adev->pm.dpm.priv; pi 1860 drivers/gpu/drm/amd/amdgpu/si_dpm.c return pi; pi 1961 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct rv7xx_power_info *pi = adev->pm.dpm.priv; pi 1963 drivers/gpu/drm/amd/amdgpu/si_dpm.c return pi; pi 1968 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct ni_power_info *pi = adev->pm.dpm.priv; pi 1970 drivers/gpu/drm/amd/amdgpu/si_dpm.c return pi; pi 2380 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct evergreen_power_info *pi = adev->pm.dpm.priv; pi 2382 drivers/gpu/drm/amd/amdgpu/si_dpm.c return pi; pi 3401 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(adev); pi 3405 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->max_vddc = 0; pi 3407 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->max_vddc = vddc; pi 3412 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(adev); pi 3415 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->sclk_ss = amdgpu_atombios_get_asic_ss_info(adev, &ss, pi 3417 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->mclk_ss = amdgpu_atombios_get_asic_ss_info(adev, &ss, pi 3420 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pi->sclk_ss || pi->mclk_ss) pi 3421 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->dynamic_ss = true; pi 3423 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->dynamic_ss = false; pi 3740 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(adev); pi 3766 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pi->thermal_protection) pi 3777 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(adev); pi 3780 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (!(pi->active_auto_throttle_sources & (1 << source))) { pi 3781 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->active_auto_throttle_sources |= 1 << source; pi 3782 drivers/gpu/drm/amd/amdgpu/si_dpm.c si_set_dpm_event_sources(adev, pi->active_auto_throttle_sources); pi 3785 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pi->active_auto_throttle_sources & (1 << source)) { pi 3786 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->active_auto_throttle_sources &= ~(1 << source); pi 3787 drivers/gpu/drm/amd/amdgpu/si_dpm.c si_set_dpm_event_sources(adev, pi->active_auto_throttle_sources); pi 4194 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(adev); pi 4197 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pi->sclk_ss) pi 4207 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(adev); pi 4210 drivers/gpu/drm/amd/amdgpu/si_dpm.c r600_calculate_u_and_p(pi->asi, pi 4213 drivers/gpu/drm/amd/amdgpu/si_dpm.c &pi->bsp, pi 4214 drivers/gpu/drm/amd/amdgpu/si_dpm.c &pi->bsu); pi 4216 drivers/gpu/drm/amd/amdgpu/si_dpm.c r600_calculate_u_and_p(pi->pasi, pi 4219 drivers/gpu/drm/amd/amdgpu/si_dpm.c &pi->pbsp, pi 4220 drivers/gpu/drm/amd/amdgpu/si_dpm.c &pi->pbsu); pi 4223 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->dsp = BSP(pi->bsp) | BSU(pi->bsu); pi 4224 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->psp = BSP(pi->pbsp) | BSU(pi->pbsu); pi 4226 drivers/gpu/drm/amd/amdgpu/si_dpm.c WREG32(CG_BSP, pi->dsp); pi 4280 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(adev); pi 4282 drivers/gpu/drm/amd/amdgpu/si_dpm.c WREG32(CG_FTV, pi->vrc); pi 4327 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(adev); pi 4331 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (mclk <= pi->mclk_strobe_mode_threshold) pi 4422 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(adev); pi 4427 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pi->voltage_control) { pi 4466 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pi->mvdd_control) { pi 4471 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->mvdd_control = false; pi 4476 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->mvdd_control = false; pi 4513 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(adev); pi 4532 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pi->max_vddc_in_table <= eg_pi->vddc_voltage_table.entries[i].value) { pi 4596 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(adev); pi 4599 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pi->mvdd_control) { pi 4600 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (mclk <= pi->mvdd_split_frequency) pi 4820 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(adev); pi 4823 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pi->mvdd_control) pi 4835 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(adev); pi 4918 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->initialState.levels[0].bSP = cpu_to_be32(pi->dsp); pi 4926 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (initial_state->performance_levels[0].mclk > pi->mclk_edc_enable_threshold) pi 4954 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(adev); pi 4975 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pi->acpi_vddc) { pi 4977 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->acpi_vddc, &table->ACPIState.levels[0].vddc); pi 4993 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->acpi_vddc, pi 5000 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->min_vddc_in_table, &table->ACPIState.levels[0].vddc); pi 5021 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->min_vddc_in_table, pi 5027 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pi->acpi_vddc) { pi 5152 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(adev); pi 5154 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->mvdd_split_frequency = 30000; pi 5248 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(adev); pi 5285 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pi->sclk_ss) { pi 5342 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(adev); pi 5376 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pi->mclk_ss) { pi 5429 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(adev); pi 5433 drivers/gpu/drm/amd/amdgpu/si_dpm.c smc_state->levels[i].bSP = cpu_to_be32(pi->dsp); pi 5436 drivers/gpu/drm/amd/amdgpu/si_dpm.c cpu_to_be32(pi->psp); pi 5443 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(adev); pi 5463 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pi->mclk_stutter_mode_threshold && pi 5464 drivers/gpu/drm/amd/amdgpu/si_dpm.c (pl->mclk <= pi->mclk_stutter_mode_threshold) && pi 5475 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pl->mclk > pi->mclk_edc_enable_threshold) pi 5552 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(adev); pi 5585 drivers/gpu/drm/amd/amdgpu/si_dpm.c a_t |= CG_R(t_l * pi->bsp / 20000); pi 5589 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->pbsp : pi->bsp; pi 6783 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(adev); pi 6791 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pi->voltage_control || si_pi->voltage_control_svi2) pi 6793 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pi->mvdd_control) pi 6795 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pi->voltage_control || si_pi->voltage_control_svi2) { pi 6807 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pi->dynamic_ss) pi 6809 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pi->thermal_protection) pi 6916 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(adev); pi 6924 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pi->thermal_protection) pi 7136 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(adev); pi 7166 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->acpi_vddc = pl->vddc; pi 7182 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pi->min_vddc_in_table > pl->vddc) pi 7183 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->min_vddc_in_table = pl->vddc; pi 7185 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (pi->max_vddc_in_table < pl->vddc) pi 7186 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->max_vddc_in_table = pl->vddc; pi 7307 drivers/gpu/drm/amd/amdgpu/si_dpm.c struct rv7xx_power_info *pi; pi 7320 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi = &eg_pi->rv7xx; pi 7333 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->acpi_vddc = 0; pi 7335 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->min_vddc_in_table = 0; pi 7336 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->max_vddc_in_table = 0; pi 7376 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->ref_div = dividers.ref_div + 1; pi 7378 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->ref_div = R600_REFERENCEDIVIDER_DFLT; pi 7382 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->mclk_strobe_mode_threshold = 40000; pi 7384 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->mclk_stutter_mode_threshold = 0; pi 7386 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->mclk_stutter_mode_threshold = pi->mclk_strobe_mode_threshold; pi 7387 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->mclk_edc_enable_threshold = 40000; pi 7392 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->voltage_control = pi 7395 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (!pi->voltage_control) { pi 7404 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->mvdd_control = pi 7422 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->asi = RV770_ASI_DFLT; pi 7423 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->pasi = CYPRESS_HASI_DFLT; pi 7424 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->vrc = SISLANDS_VRC_DFLT; pi 7426 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->gfx_clock_gating = true; pi 7432 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->thermal_protection = true; pi 7434 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->thermal_protection = false; pi 98 drivers/gpu/drm/gma500/mdfld_tmd_vid.c struct panel_info *pi) pi 100 drivers/gpu/drm/gma500/mdfld_tmd_vid.c if (!dev || !pi) pi 103 drivers/gpu/drm/gma500/mdfld_tmd_vid.c pi->width_mm = TMD_PANEL_WIDTH; pi 104 drivers/gpu/drm/gma500/mdfld_tmd_vid.c pi->height_mm = TMD_PANEL_HEIGHT; pi 58 drivers/gpu/drm/gma500/mdfld_tpo_vid.c struct panel_info *pi) pi 60 drivers/gpu/drm/gma500/mdfld_tpo_vid.c if (!dev || !pi) pi 63 drivers/gpu/drm/gma500/mdfld_tpo_vid.c pi->width_mm = TPO_PANEL_WIDTH; pi 64 drivers/gpu/drm/gma500/mdfld_tpo_vid.c pi->height_mm = TPO_PANEL_HEIGHT; pi 624 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c struct panel_info *pi) pi 626 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c if (!dev || !pi) pi 629 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c pi->width_mm = DV1_PANEL_WIDTH; pi 630 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c pi->height_mm = DV1_PANEL_HEIGHT; pi 1893 drivers/gpu/drm/i915/i915_drv.h const unsigned int pi = __platform_mask_index(info, p); pi 1895 drivers/gpu/drm/i915/i915_drv.h return info->platform_mask[pi] & INTEL_SUBPLATFORM_BITS; pi 1902 drivers/gpu/drm/i915/i915_drv.h const unsigned int pi = __platform_mask_index(info, p); pi 1907 drivers/gpu/drm/i915/i915_drv.h return info->platform_mask[pi] & BIT(pb); pi 1915 drivers/gpu/drm/i915/i915_drv.h const unsigned int pi = __platform_mask_index(info, p); pi 1918 drivers/gpu/drm/i915/i915_drv.h const u32 mask = info->platform_mask[pi]; pi 814 drivers/gpu/drm/i915/intel_device_info.c const unsigned int pi = __platform_mask_index(rinfo, info->platform); pi 820 drivers/gpu/drm/i915/intel_device_info.c RUNTIME_INFO(i915)->platform_mask[pi] = BIT(pb); pi 840 drivers/gpu/drm/i915/intel_device_info.c RUNTIME_INFO(i915)->platform_mask[pi] |= mask; pi 471 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c int i, ret, pi = 0, ci = 0; pi 520 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c primary[pi++] = plane; pi 202 drivers/gpu/drm/nouveau/nouveau_bo.c int i, pi = -1; pi 271 drivers/gpu/drm/nouveau/nouveau_bo.c if (pi < 0 || !nvbo->comp || vmm->page[i].comp) pi 272 drivers/gpu/drm/nouveau/nouveau_bo.c pi = i; pi 279 drivers/gpu/drm/nouveau/nouveau_bo.c if (WARN_ON(pi < 0)) pi 283 drivers/gpu/drm/nouveau/nouveau_bo.c if (nvbo->comp && !vmm->page[pi].comp) { pi 288 drivers/gpu/drm/nouveau/nouveau_bo.c nvbo->page = vmm->page[pi].shift; pi 543 drivers/gpu/drm/nouveau/nouveau_svm.c int fi, fn, pi, fill; pi 643 drivers/gpu/drm/nouveau/nouveau_svm.c for (fn = fi, pi = 0;;) { pi 650 drivers/gpu/drm/nouveau/nouveau_svm.c args.phys[pi++] = NVIF_VMM_PFNMAP_V0_V | pi 653 drivers/gpu/drm/nouveau/nouveau_svm.c args.phys[pi++] = NVIF_VMM_PFNMAP_V0_V; pi 655 drivers/gpu/drm/nouveau/nouveau_svm.c args.i.p.size = pi << PAGE_SHIFT; pi 681 drivers/gpu/drm/nouveau/nouveau_svm.c args.phys[pi++] = NVIF_VMM_PFNMAP_V0_NONE; pi 709 drivers/gpu/drm/nouveau/nouveau_svm.c pi * sizeof(args.phys[0]), pi 723 drivers/gpu/drm/nouveau/nouveau_svm.c pi = (fault->addr - range.start) >> PAGE_SHIFT; pi 725 drivers/gpu/drm/nouveau/nouveau_svm.c !(range.pfns[pi] & NVIF_VMM_PFNMAP_V0_V) || pi 726 drivers/gpu/drm/nouveau/nouveau_svm.c (!(range.pfns[pi] & NVIF_VMM_PFNMAP_V0_W) && pi 1218 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c int pi = 0; pi 1239 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c bool map = !!(pfn[pi] & NVKM_VMM_PFN_V); pi 1248 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c for (pn = 0; pi + pn < pm; pn++) { pi 1249 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c if (map != !!(pfn[pi + pn] & NVKM_VMM_PFN_V)) pi 1294 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c args.pfn = &pfn[pi]; pi 1322 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c pfn[pi++] = NVKM_VMM_PFN_NONE; pi 1326 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c pi += size >> page->shift; pi 1337 drivers/gpu/drm/radeon/btc_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1344 drivers/gpu/drm/radeon/btc_dpm.c if (!pi->boot_in_gen2) { pi 1363 drivers/gpu/drm/radeon/btc_dpm.c if (!pi->boot_in_gen2) { pi 1631 drivers/gpu/drm/radeon/btc_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1633 drivers/gpu/drm/radeon/btc_dpm.c RV770_SMC_STATETABLE *table = &pi->smc_statetable; pi 1662 drivers/gpu/drm/radeon/btc_dpm.c if (pi->mem_gddr5) pi 1686 drivers/gpu/drm/radeon/btc_dpm.c pi->state_table_start, pi 1689 drivers/gpu/drm/radeon/btc_dpm.c pi->sram_end); pi 1695 drivers/gpu/drm/radeon/btc_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1703 drivers/gpu/drm/radeon/btc_dpm.c pi->rlp = 10; pi 1704 drivers/gpu/drm/radeon/btc_dpm.c pi->rmp = 100; pi 1705 drivers/gpu/drm/radeon/btc_dpm.c pi->lhp = 100; pi 1706 drivers/gpu/drm/radeon/btc_dpm.c pi->lmp = 10; pi 1708 drivers/gpu/drm/radeon/btc_dpm.c pi->rlp = eg_pi->ats[idx].rlp; pi 1709 drivers/gpu/drm/radeon/btc_dpm.c pi->rmp = eg_pi->ats[idx].rmp; pi 1710 drivers/gpu/drm/radeon/btc_dpm.c pi->lhp = eg_pi->ats[idx].lhp; pi 1711 drivers/gpu/drm/radeon/btc_dpm.c pi->lmp = eg_pi->ats[idx].lmp; pi 1920 drivers/gpu/drm/radeon/btc_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1947 drivers/gpu/drm/radeon/btc_dpm.c if (!pi->mem_gddr5) pi 2069 drivers/gpu/drm/radeon/btc_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 2072 drivers/gpu/drm/radeon/btc_dpm.c if (pi->mclk_stutter_mode_threshold) { pi 2073 drivers/gpu/drm/radeon/btc_dpm.c if (pi->mem_gddr5) { pi 2085 drivers/gpu/drm/radeon/btc_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 2087 drivers/gpu/drm/radeon/btc_dpm.c u32 switch_limit = pi->mem_gddr5 ? 450 : 100; pi 2379 drivers/gpu/drm/radeon/btc_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 2384 drivers/gpu/drm/radeon/btc_dpm.c if (pi->gfx_clock_gating) pi 2390 drivers/gpu/drm/radeon/btc_dpm.c if (pi->mg_clock_gating) pi 2396 drivers/gpu/drm/radeon/btc_dpm.c if (pi->voltage_control) { pi 2405 drivers/gpu/drm/radeon/btc_dpm.c if (pi->mvdd_control) { pi 2422 drivers/gpu/drm/radeon/btc_dpm.c if (pi->dynamic_ss) pi 2425 drivers/gpu/drm/radeon/btc_dpm.c if (pi->thermal_protection) pi 2437 drivers/gpu/drm/radeon/btc_dpm.c if (pi->dynamic_pcie_gen2) pi 2476 drivers/gpu/drm/radeon/btc_dpm.c if (pi->gfx_clock_gating) pi 2479 drivers/gpu/drm/radeon/btc_dpm.c if (pi->mg_clock_gating) pi 2496 drivers/gpu/drm/radeon/btc_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 2504 drivers/gpu/drm/radeon/btc_dpm.c if (pi->thermal_protection) pi 2507 drivers/gpu/drm/radeon/btc_dpm.c if (pi->dynamic_pcie_gen2) pi 2516 drivers/gpu/drm/radeon/btc_dpm.c if (pi->gfx_clock_gating) pi 2519 drivers/gpu/drm/radeon/btc_dpm.c if (pi->mg_clock_gating) pi 2555 drivers/gpu/drm/radeon/btc_dpm.c struct rv7xx_power_info *pi; pi 2564 drivers/gpu/drm/radeon/btc_dpm.c pi = &eg_pi->rv7xx; pi 2569 drivers/gpu/drm/radeon/btc_dpm.c pi->acpi_vddc = 0; pi 2571 drivers/gpu/drm/radeon/btc_dpm.c pi->min_vddc_in_table = 0; pi 2572 drivers/gpu/drm/radeon/btc_dpm.c pi->max_vddc_in_table = 0; pi 2611 drivers/gpu/drm/radeon/btc_dpm.c pi->ref_div = dividers.ref_div + 1; pi 2613 drivers/gpu/drm/radeon/btc_dpm.c pi->ref_div = R600_REFERENCEDIVIDER_DFLT; pi 2615 drivers/gpu/drm/radeon/btc_dpm.c pi->mclk_strobe_mode_threshold = 40000; pi 2616 drivers/gpu/drm/radeon/btc_dpm.c pi->mclk_edc_enable_threshold = 40000; pi 2619 drivers/gpu/drm/radeon/btc_dpm.c pi->rlp = RV770_RLP_DFLT; pi 2620 drivers/gpu/drm/radeon/btc_dpm.c pi->rmp = RV770_RMP_DFLT; pi 2621 drivers/gpu/drm/radeon/btc_dpm.c pi->lhp = RV770_LHP_DFLT; pi 2622 drivers/gpu/drm/radeon/btc_dpm.c pi->lmp = RV770_LMP_DFLT; pi 2636 drivers/gpu/drm/radeon/btc_dpm.c pi->voltage_control = pi 2639 drivers/gpu/drm/radeon/btc_dpm.c pi->mvdd_control = pi 2647 drivers/gpu/drm/radeon/btc_dpm.c pi->asi = RV770_ASI_DFLT; pi 2648 drivers/gpu/drm/radeon/btc_dpm.c pi->pasi = CYPRESS_HASI_DFLT; pi 2649 drivers/gpu/drm/radeon/btc_dpm.c pi->vrc = CYPRESS_VRC_DFLT; pi 2651 drivers/gpu/drm/radeon/btc_dpm.c pi->power_gating = false; pi 2653 drivers/gpu/drm/radeon/btc_dpm.c pi->gfx_clock_gating = true; pi 2655 drivers/gpu/drm/radeon/btc_dpm.c pi->mg_clock_gating = true; pi 2656 drivers/gpu/drm/radeon/btc_dpm.c pi->mgcgtssm = true; pi 2660 drivers/gpu/drm/radeon/btc_dpm.c pi->dynamic_pcie_gen2 = true; pi 2663 drivers/gpu/drm/radeon/btc_dpm.c pi->thermal_protection = true; pi 2665 drivers/gpu/drm/radeon/btc_dpm.c pi->thermal_protection = false; pi 2667 drivers/gpu/drm/radeon/btc_dpm.c pi->display_gap = true; pi 2670 drivers/gpu/drm/radeon/btc_dpm.c pi->dcodt = true; pi 2672 drivers/gpu/drm/radeon/btc_dpm.c pi->dcodt = false; pi 2674 drivers/gpu/drm/radeon/btc_dpm.c pi->ulps = true; pi 2695 drivers/gpu/drm/radeon/btc_dpm.c pi->mclk_stutter_mode_threshold = 30000; pi 2697 drivers/gpu/drm/radeon/btc_dpm.c pi->mclk_stutter_mode_threshold = 0; pi 2699 drivers/gpu/drm/radeon/btc_dpm.c pi->sram_end = SMC_RAM_END; pi 198 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = rdev->pm.dpm.priv; pi 200 drivers/gpu/drm/radeon/ci_dpm.c return pi; pi 212 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 222 drivers/gpu/drm/radeon/ci_dpm.c pi->powertune_defaults = &defaults_bonaire_xt; pi 228 drivers/gpu/drm/radeon/ci_dpm.c pi->powertune_defaults = &defaults_saturn_xt; pi 232 drivers/gpu/drm/radeon/ci_dpm.c pi->powertune_defaults = &defaults_hawaii_xt; pi 236 drivers/gpu/drm/radeon/ci_dpm.c pi->powertune_defaults = &defaults_hawaii_pro; pi 246 drivers/gpu/drm/radeon/ci_dpm.c pi->powertune_defaults = &defaults_bonaire_xt; pi 250 drivers/gpu/drm/radeon/ci_dpm.c pi->dte_tj_offset = 0; pi 252 drivers/gpu/drm/radeon/ci_dpm.c pi->caps_power_containment = true; pi 253 drivers/gpu/drm/radeon/ci_dpm.c pi->caps_cac = false; pi 254 drivers/gpu/drm/radeon/ci_dpm.c pi->caps_sq_ramping = false; pi 255 drivers/gpu/drm/radeon/ci_dpm.c pi->caps_db_ramping = false; pi 256 drivers/gpu/drm/radeon/ci_dpm.c pi->caps_td_ramping = false; pi 257 drivers/gpu/drm/radeon/ci_dpm.c pi->caps_tcp_ramping = false; pi 259 drivers/gpu/drm/radeon/ci_dpm.c if (pi->caps_power_containment) { pi 260 drivers/gpu/drm/radeon/ci_dpm.c pi->caps_cac = true; pi 262 drivers/gpu/drm/radeon/ci_dpm.c pi->enable_bapm_feature = false; pi 264 drivers/gpu/drm/radeon/ci_dpm.c pi->enable_bapm_feature = true; pi 265 drivers/gpu/drm/radeon/ci_dpm.c pi->enable_tdc_limit_feature = true; pi 266 drivers/gpu/drm/radeon/ci_dpm.c pi->enable_pkg_pwr_tracking_feature = true; pi 277 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 278 drivers/gpu/drm/radeon/ci_dpm.c u8 *hi_vid = pi->smc_powertune_table.BapmVddCVidHiSidd; pi 279 drivers/gpu/drm/radeon/ci_dpm.c u8 *lo_vid = pi->smc_powertune_table.BapmVddCVidLoSidd; pi 280 drivers/gpu/drm/radeon/ci_dpm.c u8 *hi2_vid = pi->smc_powertune_table.BapmVddCVidHiSidd2; pi 306 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 307 drivers/gpu/drm/radeon/ci_dpm.c u8 *vid = pi->smc_powertune_table.VddCVid; pi 310 drivers/gpu/drm/radeon/ci_dpm.c if (pi->vddc_voltage_table.count > 8) pi 313 drivers/gpu/drm/radeon/ci_dpm.c for (i = 0; i < pi->vddc_voltage_table.count; i++) pi 314 drivers/gpu/drm/radeon/ci_dpm.c vid[i] = ci_convert_to_vid(pi->vddc_voltage_table.entries[i].value); pi 321 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 322 drivers/gpu/drm/radeon/ci_dpm.c const struct ci_pt_defaults *pt_defaults = pi->powertune_defaults; pi 324 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_powertune_table.SviLoadLineEn = pt_defaults->svi_load_line_en; pi 325 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_powertune_table.SviLoadLineVddC = pt_defaults->svi_load_line_vddc; pi 326 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_powertune_table.SviLoadLineTrimVddC = 3; pi 327 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_powertune_table.SviLoadLineOffsetVddC = 0; pi 334 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 335 drivers/gpu/drm/radeon/ci_dpm.c const struct ci_pt_defaults *pt_defaults = pi->powertune_defaults; pi 339 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_powertune_table.TDC_VDDC_PkgLimit = cpu_to_be16(tdc_limit); pi 340 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_powertune_table.TDC_VDDC_ThrottleReleaseLimitPerc = pi 342 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_powertune_table.TDC_MAWt = pt_defaults->tdc_mawt; pi 349 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 350 drivers/gpu/drm/radeon/ci_dpm.c const struct ci_pt_defaults *pt_defaults = pi->powertune_defaults; pi 357 drivers/gpu/drm/radeon/ci_dpm.c (u32 *)&pi->smc_powertune_table.TdcWaterfallCtl, pi 358 drivers/gpu/drm/radeon/ci_dpm.c pi->sram_end); pi 362 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_powertune_table.TdcWaterfallCtl = pt_defaults->tdc_waterfall_ctl; pi 369 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 376 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_powertune_table.FuzzyFan_PwmSetDelta = pi 384 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 385 drivers/gpu/drm/radeon/ci_dpm.c u8 *hi_vid = pi->smc_powertune_table.BapmVddCVidHiSidd; pi 386 drivers/gpu/drm/radeon/ci_dpm.c u8 *lo_vid = pi->smc_powertune_table.BapmVddCVidLoSidd; pi 408 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_powertune_table.GnbLPMLMaxVid = (u8)max; pi 409 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_powertune_table.GnbLPMLMinVid = (u8)min; pi 416 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 417 drivers/gpu/drm/radeon/ci_dpm.c u16 hi_sidd = pi->smc_powertune_table.BapmVddCBaseLeakageHiSidd; pi 418 drivers/gpu/drm/radeon/ci_dpm.c u16 lo_sidd = pi->smc_powertune_table.BapmVddCBaseLeakageLoSidd; pi 425 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_powertune_table.BapmVddCBaseLeakageHiSidd = cpu_to_be16(hi_sidd); pi 426 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_powertune_table.BapmVddCBaseLeakageLoSidd = cpu_to_be16(lo_sidd); pi 433 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 434 drivers/gpu/drm/radeon/ci_dpm.c const struct ci_pt_defaults *pt_defaults = pi->powertune_defaults; pi 435 drivers/gpu/drm/radeon/ci_dpm.c SMU7_Discrete_DpmTable *dpm_table = &pi->smc_state_table; pi 446 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->DTETjOffset = (u8)pi->dte_tj_offset; pi 448 drivers/gpu/drm/radeon/ci_dpm.c (u8)(pi->thermal_temp_setting.temperature_high / 1000); pi 481 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 485 drivers/gpu/drm/radeon/ci_dpm.c if (pi->caps_power_containment) { pi 489 drivers/gpu/drm/radeon/ci_dpm.c &pm_fuse_table_offset, pi->sram_end); pi 517 drivers/gpu/drm/radeon/ci_dpm.c (u8 *)&pi->smc_powertune_table, pi 518 drivers/gpu/drm/radeon/ci_dpm.c sizeof(SMU7_Discrete_PmFuses), pi->sram_end); pi 528 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 531 drivers/gpu/drm/radeon/ci_dpm.c if (pi->caps_sq_ramping) { pi 540 drivers/gpu/drm/radeon/ci_dpm.c if (pi->caps_db_ramping) { pi 549 drivers/gpu/drm/radeon/ci_dpm.c if (pi->caps_td_ramping) { pi 558 drivers/gpu/drm/radeon/ci_dpm.c if (pi->caps_tcp_ramping) { pi 618 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 621 drivers/gpu/drm/radeon/ci_dpm.c if (pi->caps_sq_ramping || pi->caps_db_ramping || pi 622 drivers/gpu/drm/radeon/ci_dpm.c pi->caps_td_ramping || pi->caps_tcp_ramping) { pi 643 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 648 drivers/gpu/drm/radeon/ci_dpm.c pi->power_containment_features = 0; pi 649 drivers/gpu/drm/radeon/ci_dpm.c if (pi->caps_power_containment) { pi 650 drivers/gpu/drm/radeon/ci_dpm.c if (pi->enable_bapm_feature) { pi 655 drivers/gpu/drm/radeon/ci_dpm.c pi->power_containment_features |= POWERCONTAINMENT_FEATURE_BAPM; pi 658 drivers/gpu/drm/radeon/ci_dpm.c if (pi->enable_tdc_limit_feature) { pi 663 drivers/gpu/drm/radeon/ci_dpm.c pi->power_containment_features |= POWERCONTAINMENT_FEATURE_TDCLimit; pi 666 drivers/gpu/drm/radeon/ci_dpm.c if (pi->enable_pkg_pwr_tracking_feature) { pi 676 drivers/gpu/drm/radeon/ci_dpm.c pi->power_containment_features |= POWERCONTAINMENT_FEATURE_PkgPwrLimit; pi 683 drivers/gpu/drm/radeon/ci_dpm.c if (pi->caps_power_containment && pi->power_containment_features) { pi 684 drivers/gpu/drm/radeon/ci_dpm.c if (pi->power_containment_features & POWERCONTAINMENT_FEATURE_TDCLimit) pi 687 drivers/gpu/drm/radeon/ci_dpm.c if (pi->power_containment_features & POWERCONTAINMENT_FEATURE_BAPM) pi 690 drivers/gpu/drm/radeon/ci_dpm.c if (pi->power_containment_features & POWERCONTAINMENT_FEATURE_PkgPwrLimit) pi 692 drivers/gpu/drm/radeon/ci_dpm.c pi->power_containment_features = 0; pi 701 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 705 drivers/gpu/drm/radeon/ci_dpm.c if (pi->caps_cac) { pi 710 drivers/gpu/drm/radeon/ci_dpm.c pi->cac_enabled = false; pi 712 drivers/gpu/drm/radeon/ci_dpm.c pi->cac_enabled = true; pi 714 drivers/gpu/drm/radeon/ci_dpm.c } else if (pi->cac_enabled) { pi 716 drivers/gpu/drm/radeon/ci_dpm.c pi->cac_enabled = false; pi 726 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 729 drivers/gpu/drm/radeon/ci_dpm.c if (pi->thermal_sclk_dpm_enabled) { pi 744 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 752 drivers/gpu/drm/radeon/ci_dpm.c if (pi->caps_power_containment) { pi 766 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 768 drivers/gpu/drm/radeon/ci_dpm.c if (pi->uvd_power_gated == gate) pi 771 drivers/gpu/drm/radeon/ci_dpm.c pi->uvd_power_gated = gate; pi 778 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 780 drivers/gpu/drm/radeon/ci_dpm.c u32 switch_limit = pi->mem_gddr5 ? 450 : 300; pi 799 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 820 drivers/gpu/drm/radeon/ci_dpm.c pi->battery_state = true; pi 822 drivers/gpu/drm/radeon/ci_dpm.c pi->battery_state = false; pi 937 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 940 drivers/gpu/drm/radeon/ci_dpm.c if (pi->fan_ctrl_is_in_default_mode) { pi 942 drivers/gpu/drm/radeon/ci_dpm.c pi->fan_ctrl_default_mode = tmp; pi 944 drivers/gpu/drm/radeon/ci_dpm.c pi->t_min = tmp; pi 945 drivers/gpu/drm/radeon/ci_dpm.c pi->fan_ctrl_is_in_default_mode = false; pi 959 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 968 drivers/gpu/drm/radeon/ci_dpm.c if (!pi->fan_table_start) { pi 1021 drivers/gpu/drm/radeon/ci_dpm.c pi->fan_table_start, pi 1024 drivers/gpu/drm/radeon/ci_dpm.c pi->sram_end); pi 1036 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 1039 drivers/gpu/drm/radeon/ci_dpm.c if (pi->caps_od_fuzzy_fan_control_support) { pi 1058 drivers/gpu/drm/radeon/ci_dpm.c pi->fan_is_controlled_by_smc = true; pi 1065 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 1069 drivers/gpu/drm/radeon/ci_dpm.c pi->fan_is_controlled_by_smc = false; pi 1106 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 1111 drivers/gpu/drm/radeon/ci_dpm.c if (pi->fan_is_controlled_by_smc) pi 1151 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 1154 drivers/gpu/drm/radeon/ci_dpm.c if (pi->fan_is_controlled_by_smc) pi 1215 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 1218 drivers/gpu/drm/radeon/ci_dpm.c if (!pi->fan_ctrl_is_in_default_mode) { pi 1220 drivers/gpu/drm/radeon/ci_dpm.c tmp |= FDO_PWM_MODE(pi->fan_ctrl_default_mode); pi 1224 drivers/gpu/drm/radeon/ci_dpm.c tmp |= TMIN(pi->t_min); pi 1226 drivers/gpu/drm/radeon/ci_dpm.c pi->fan_ctrl_is_in_default_mode = true; pi 1284 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 1287 drivers/gpu/drm/radeon/ci_dpm.c pi->soft_regs_start + reg_offset, pi 1288 drivers/gpu/drm/radeon/ci_dpm.c value, pi->sram_end); pi 1295 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 1298 drivers/gpu/drm/radeon/ci_dpm.c pi->soft_regs_start + reg_offset, pi 1299 drivers/gpu/drm/radeon/ci_dpm.c value, pi->sram_end); pi 1304 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 1305 drivers/gpu/drm/radeon/ci_dpm.c SMU7_Discrete_DpmTable *table = &pi->smc_state_table; pi 1307 drivers/gpu/drm/radeon/ci_dpm.c if (pi->caps_fps) { pi 1320 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 1324 drivers/gpu/drm/radeon/ci_dpm.c if (pi->caps_sclk_throttle_low_notification) { pi 1325 drivers/gpu/drm/radeon/ci_dpm.c low_sclk_interrupt_t = cpu_to_be32(pi->low_sclk_interrupt_t); pi 1328 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table_start + pi 1331 drivers/gpu/drm/radeon/ci_dpm.c sizeof(u32), pi->sram_end); pi 1340 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 1345 drivers/gpu/drm/radeon/ci_dpm.c pi->vddc_leakage.count = 0; pi 1346 drivers/gpu/drm/radeon/ci_dpm.c pi->vddci_leakage.count = 0; pi 1354 drivers/gpu/drm/radeon/ci_dpm.c pi->vddc_leakage.actual_voltage[pi->vddc_leakage.count] = vddc; pi 1355 drivers/gpu/drm/radeon/ci_dpm.c pi->vddc_leakage.leakage_id[pi->vddc_leakage.count] = virtual_voltage_id; pi 1356 drivers/gpu/drm/radeon/ci_dpm.c pi->vddc_leakage.count++; pi 1366 drivers/gpu/drm/radeon/ci_dpm.c pi->vddc_leakage.actual_voltage[pi->vddc_leakage.count] = vddc; pi 1367 drivers/gpu/drm/radeon/ci_dpm.c pi->vddc_leakage.leakage_id[pi->vddc_leakage.count] = virtual_voltage_id; pi 1368 drivers/gpu/drm/radeon/ci_dpm.c pi->vddc_leakage.count++; pi 1371 drivers/gpu/drm/radeon/ci_dpm.c pi->vddci_leakage.actual_voltage[pi->vddci_leakage.count] = vddci; pi 1372 drivers/gpu/drm/radeon/ci_dpm.c pi->vddci_leakage.leakage_id[pi->vddci_leakage.count] = virtual_voltage_id; pi 1373 drivers/gpu/drm/radeon/ci_dpm.c pi->vddci_leakage.count++; pi 1382 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 1417 drivers/gpu/drm/radeon/ci_dpm.c if (pi->thermal_protection) pi 1433 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 1436 drivers/gpu/drm/radeon/ci_dpm.c if (!(pi->active_auto_throttle_sources & (1 << source))) { pi 1437 drivers/gpu/drm/radeon/ci_dpm.c pi->active_auto_throttle_sources |= 1 << source; pi 1438 drivers/gpu/drm/radeon/ci_dpm.c ci_set_dpm_event_sources(rdev, pi->active_auto_throttle_sources); pi 1441 drivers/gpu/drm/radeon/ci_dpm.c if (pi->active_auto_throttle_sources & (1 << source)) { pi 1442 drivers/gpu/drm/radeon/ci_dpm.c pi->active_auto_throttle_sources &= ~(1 << source); pi 1443 drivers/gpu/drm/radeon/ci_dpm.c ci_set_dpm_event_sources(rdev, pi->active_auto_throttle_sources); pi 1456 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 1459 drivers/gpu/drm/radeon/ci_dpm.c if (!pi->need_update_smu7_dpm_table) pi 1462 drivers/gpu/drm/radeon/ci_dpm.c if ((!pi->sclk_dpm_key_disabled) && pi 1463 drivers/gpu/drm/radeon/ci_dpm.c (pi->need_update_smu7_dpm_table & (DPMTABLE_OD_UPDATE_SCLK | DPMTABLE_UPDATE_SCLK))) { pi 1469 drivers/gpu/drm/radeon/ci_dpm.c if ((!pi->mclk_dpm_key_disabled) && pi 1470 drivers/gpu/drm/radeon/ci_dpm.c (pi->need_update_smu7_dpm_table & DPMTABLE_OD_UPDATE_MCLK)) { pi 1476 drivers/gpu/drm/radeon/ci_dpm.c pi->need_update_smu7_dpm_table = 0; pi 1482 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 1486 drivers/gpu/drm/radeon/ci_dpm.c if (!pi->sclk_dpm_key_disabled) { pi 1492 drivers/gpu/drm/radeon/ci_dpm.c if (!pi->mclk_dpm_key_disabled) { pi 1510 drivers/gpu/drm/radeon/ci_dpm.c if (!pi->sclk_dpm_key_disabled) { pi 1516 drivers/gpu/drm/radeon/ci_dpm.c if (!pi->mclk_dpm_key_disabled) { pi 1528 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 1553 drivers/gpu/drm/radeon/ci_dpm.c if (!pi->pcie_dpm_key_disabled) { pi 1564 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 1567 drivers/gpu/drm/radeon/ci_dpm.c if (!pi->need_update_smu7_dpm_table) pi 1570 drivers/gpu/drm/radeon/ci_dpm.c if ((!pi->sclk_dpm_key_disabled) && pi 1571 drivers/gpu/drm/radeon/ci_dpm.c (pi->need_update_smu7_dpm_table & (DPMTABLE_OD_UPDATE_SCLK | DPMTABLE_UPDATE_SCLK))) { pi 1577 drivers/gpu/drm/radeon/ci_dpm.c if ((!pi->mclk_dpm_key_disabled) && pi 1578 drivers/gpu/drm/radeon/ci_dpm.c (pi->need_update_smu7_dpm_table & DPMTABLE_OD_UPDATE_MCLK)) { pi 1589 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 1602 drivers/gpu/drm/radeon/ci_dpm.c if (!pi->pcie_dpm_key_disabled) { pi 1634 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 1646 drivers/gpu/drm/radeon/ci_dpm.c if (pi->caps_automatic_dc_transition) { pi 1700 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 1702 drivers/gpu/drm/radeon/ci_dpm.c if (!pi->sclk_dpm_key_disabled) { pi 1714 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 1716 drivers/gpu/drm/radeon/ci_dpm.c if (!pi->mclk_dpm_key_disabled) { pi 1728 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 1730 drivers/gpu/drm/radeon/ci_dpm.c if (!pi->pcie_dpm_key_disabled) { pi 1742 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 1744 drivers/gpu/drm/radeon/ci_dpm.c if (pi->power_containment_features & POWERCONTAINMENT_FEATURE_PkgPwrLimit) { pi 1818 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 1825 drivers/gpu/drm/radeon/ci_dpm.c &tmp, pi->sram_end); pi 1829 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table_start = tmp; pi 1834 drivers/gpu/drm/radeon/ci_dpm.c &tmp, pi->sram_end); pi 1838 drivers/gpu/drm/radeon/ci_dpm.c pi->soft_regs_start = tmp; pi 1843 drivers/gpu/drm/radeon/ci_dpm.c &tmp, pi->sram_end); pi 1847 drivers/gpu/drm/radeon/ci_dpm.c pi->mc_reg_table_start = tmp; pi 1852 drivers/gpu/drm/radeon/ci_dpm.c &tmp, pi->sram_end); pi 1856 drivers/gpu/drm/radeon/ci_dpm.c pi->fan_table_start = tmp; pi 1861 drivers/gpu/drm/radeon/ci_dpm.c &tmp, pi->sram_end); pi 1865 drivers/gpu/drm/radeon/ci_dpm.c pi->arb_table_start = tmp; pi 1872 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 1874 drivers/gpu/drm/radeon/ci_dpm.c pi->clock_registers.cg_spll_func_cntl = pi 1876 drivers/gpu/drm/radeon/ci_dpm.c pi->clock_registers.cg_spll_func_cntl_2 = pi 1878 drivers/gpu/drm/radeon/ci_dpm.c pi->clock_registers.cg_spll_func_cntl_3 = pi 1880 drivers/gpu/drm/radeon/ci_dpm.c pi->clock_registers.cg_spll_func_cntl_4 = pi 1882 drivers/gpu/drm/radeon/ci_dpm.c pi->clock_registers.cg_spll_spread_spectrum = pi 1884 drivers/gpu/drm/radeon/ci_dpm.c pi->clock_registers.cg_spll_spread_spectrum_2 = pi 1886 drivers/gpu/drm/radeon/ci_dpm.c pi->clock_registers.dll_cntl = RREG32(DLL_CNTL); pi 1887 drivers/gpu/drm/radeon/ci_dpm.c pi->clock_registers.mclk_pwrmgt_cntl = RREG32(MCLK_PWRMGT_CNTL); pi 1888 drivers/gpu/drm/radeon/ci_dpm.c pi->clock_registers.mpll_ad_func_cntl = RREG32(MPLL_AD_FUNC_CNTL); pi 1889 drivers/gpu/drm/radeon/ci_dpm.c pi->clock_registers.mpll_dq_func_cntl = RREG32(MPLL_DQ_FUNC_CNTL); pi 1890 drivers/gpu/drm/radeon/ci_dpm.c pi->clock_registers.mpll_func_cntl = RREG32(MPLL_FUNC_CNTL); pi 1891 drivers/gpu/drm/radeon/ci_dpm.c pi->clock_registers.mpll_func_cntl_1 = RREG32(MPLL_FUNC_CNTL_1); pi 1892 drivers/gpu/drm/radeon/ci_dpm.c pi->clock_registers.mpll_func_cntl_2 = RREG32(MPLL_FUNC_CNTL_2); pi 1893 drivers/gpu/drm/radeon/ci_dpm.c pi->clock_registers.mpll_ss1 = RREG32(MPLL_SS1); pi 1894 drivers/gpu/drm/radeon/ci_dpm.c pi->clock_registers.mpll_ss2 = RREG32(MPLL_SS2); pi 1899 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 1901 drivers/gpu/drm/radeon/ci_dpm.c pi->low_sclk_interrupt_t = 0; pi 1965 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 1968 drivers/gpu/drm/radeon/ci_dpm.c if (pi->caps_sclk_ds) { pi 1976 drivers/gpu/drm/radeon/ci_dpm.c if (pi->caps_sclk_ds) { pi 2021 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 2025 drivers/gpu/drm/radeon/ci_dpm.c if (pi->caps_sclk_ss_support) { pi 2095 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 2107 drivers/gpu/drm/radeon/ci_dpm.c ret = ci_load_smc_ucode(rdev, pi->sram_end); pi 2136 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 2139 drivers/gpu/drm/radeon/ci_dpm.c if (pi->voltage_control == CISLANDS_VOLTAGE_CONTROL_BY_GPIO) { pi 2142 drivers/gpu/drm/radeon/ci_dpm.c &pi->vddc_voltage_table); pi 2145 drivers/gpu/drm/radeon/ci_dpm.c } else if (pi->voltage_control == CISLANDS_VOLTAGE_CONTROL_BY_SVID2) { pi 2148 drivers/gpu/drm/radeon/ci_dpm.c &pi->vddc_voltage_table); pi 2153 drivers/gpu/drm/radeon/ci_dpm.c if (pi->vddc_voltage_table.count > SMU7_MAX_LEVELS_VDDC) pi 2155 drivers/gpu/drm/radeon/ci_dpm.c &pi->vddc_voltage_table); pi 2157 drivers/gpu/drm/radeon/ci_dpm.c if (pi->vddci_control == CISLANDS_VOLTAGE_CONTROL_BY_GPIO) { pi 2160 drivers/gpu/drm/radeon/ci_dpm.c &pi->vddci_voltage_table); pi 2163 drivers/gpu/drm/radeon/ci_dpm.c } else if (pi->vddci_control == CISLANDS_VOLTAGE_CONTROL_BY_SVID2) { pi 2166 drivers/gpu/drm/radeon/ci_dpm.c &pi->vddci_voltage_table); pi 2171 drivers/gpu/drm/radeon/ci_dpm.c if (pi->vddci_voltage_table.count > SMU7_MAX_LEVELS_VDDCI) pi 2173 drivers/gpu/drm/radeon/ci_dpm.c &pi->vddci_voltage_table); pi 2175 drivers/gpu/drm/radeon/ci_dpm.c if (pi->mvdd_control == CISLANDS_VOLTAGE_CONTROL_BY_GPIO) { pi 2178 drivers/gpu/drm/radeon/ci_dpm.c &pi->mvdd_voltage_table); pi 2181 drivers/gpu/drm/radeon/ci_dpm.c } else if (pi->mvdd_control == CISLANDS_VOLTAGE_CONTROL_BY_SVID2) { pi 2184 drivers/gpu/drm/radeon/ci_dpm.c &pi->mvdd_voltage_table); pi 2189 drivers/gpu/drm/radeon/ci_dpm.c if (pi->mvdd_voltage_table.count > SMU7_MAX_LEVELS_MVDD) pi 2191 drivers/gpu/drm/radeon/ci_dpm.c &pi->mvdd_voltage_table); pi 2221 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 2224 drivers/gpu/drm/radeon/ci_dpm.c table->VddcLevelCount = pi->vddc_voltage_table.count; pi 2227 drivers/gpu/drm/radeon/ci_dpm.c &pi->vddc_voltage_table.entries[count], pi 2230 drivers/gpu/drm/radeon/ci_dpm.c if (pi->voltage_control == CISLANDS_VOLTAGE_CONTROL_BY_GPIO) pi 2232 drivers/gpu/drm/radeon/ci_dpm.c pi->vddc_voltage_table.entries[count].smio_low; pi 2245 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 2247 drivers/gpu/drm/radeon/ci_dpm.c table->VddciLevelCount = pi->vddci_voltage_table.count; pi 2250 drivers/gpu/drm/radeon/ci_dpm.c &pi->vddci_voltage_table.entries[count], pi 2253 drivers/gpu/drm/radeon/ci_dpm.c if (pi->vddci_control == CISLANDS_VOLTAGE_CONTROL_BY_GPIO) pi 2255 drivers/gpu/drm/radeon/ci_dpm.c pi->vddci_voltage_table.entries[count].smio_low; pi 2267 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 2270 drivers/gpu/drm/radeon/ci_dpm.c table->MvddLevelCount = pi->mvdd_voltage_table.count; pi 2273 drivers/gpu/drm/radeon/ci_dpm.c &pi->mvdd_voltage_table.entries[count], pi 2276 drivers/gpu/drm/radeon/ci_dpm.c if (pi->mvdd_control == CISLANDS_VOLTAGE_CONTROL_BY_GPIO) pi 2278 drivers/gpu/drm/radeon/ci_dpm.c pi->mvdd_voltage_table.entries[count].smio_low; pi 2310 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 2313 drivers/gpu/drm/radeon/ci_dpm.c if (pi->mvdd_control != CISLANDS_VOLTAGE_CONTROL_NONE) { pi 2316 drivers/gpu/drm/radeon/ci_dpm.c voltage->Voltage = pi->mvdd_voltage_table.entries[i].value; pi 2415 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 2419 drivers/gpu/drm/radeon/ci_dpm.c ret = ci_read_smc_sram_dword(rdev, pi->arb_table_start, pi 2420 drivers/gpu/drm/radeon/ci_dpm.c &tmp, pi->sram_end); pi 2427 drivers/gpu/drm/radeon/ci_dpm.c return ci_write_smc_sram_dword(rdev, pi->arb_table_start, pi 2428 drivers/gpu/drm/radeon/ci_dpm.c tmp, pi->sram_end); pi 2548 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 2555 drivers/gpu/drm/radeon/ci_dpm.c for (i = 0; i < pi->dpm_table.sclk_table.count; i++) { pi 2556 drivers/gpu/drm/radeon/ci_dpm.c for (j = 0; j < pi->dpm_table.mclk_table.count; j++) { pi 2558 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.sclk_table.dpm_levels[i].value, pi 2559 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.mclk_table.dpm_levels[j].value, pi 2568 drivers/gpu/drm/radeon/ci_dpm.c pi->arb_table_start, pi 2571 drivers/gpu/drm/radeon/ci_dpm.c pi->sram_end); pi 2578 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 2580 drivers/gpu/drm/radeon/ci_dpm.c if (pi->need_update_smu7_dpm_table == 0) pi 2590 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 2596 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_state_table.GraphicsBootLevel = level; pi 2604 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_state_table.MemoryBootLevel = level; pi 2629 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 2630 drivers/gpu/drm/radeon/ci_dpm.c struct ci_dpm_table *dpm_table = &pi->dpm_table; pi 2643 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_state_table.LinkLevelCount = (u8)dpm_table->pcie_speed_table.count; pi 2644 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.pcie_dpm_enable_mask = pi 2794 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 2795 drivers/gpu/drm/radeon/ci_dpm.c u32 dll_cntl = pi->clock_registers.dll_cntl; pi 2796 drivers/gpu/drm/radeon/ci_dpm.c u32 mclk_pwrmgt_cntl = pi->clock_registers.mclk_pwrmgt_cntl; pi 2797 drivers/gpu/drm/radeon/ci_dpm.c u32 mpll_ad_func_cntl = pi->clock_registers.mpll_ad_func_cntl; pi 2798 drivers/gpu/drm/radeon/ci_dpm.c u32 mpll_dq_func_cntl = pi->clock_registers.mpll_dq_func_cntl; pi 2799 drivers/gpu/drm/radeon/ci_dpm.c u32 mpll_func_cntl = pi->clock_registers.mpll_func_cntl; pi 2800 drivers/gpu/drm/radeon/ci_dpm.c u32 mpll_func_cntl_1 = pi->clock_registers.mpll_func_cntl_1; pi 2801 drivers/gpu/drm/radeon/ci_dpm.c u32 mpll_func_cntl_2 = pi->clock_registers.mpll_func_cntl_2; pi 2802 drivers/gpu/drm/radeon/ci_dpm.c u32 mpll_ss1 = pi->clock_registers.mpll_ss1; pi 2803 drivers/gpu/drm/radeon/ci_dpm.c u32 mpll_ss2 = pi->clock_registers.mpll_ss2; pi 2821 drivers/gpu/drm/radeon/ci_dpm.c if (pi->mem_gddr5) { pi 2827 drivers/gpu/drm/radeon/ci_dpm.c if (pi->caps_mclk_ss_support) { pi 2879 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 2909 drivers/gpu/drm/radeon/ci_dpm.c if (pi->vddc_phase_shed_control) pi 2919 drivers/gpu/drm/radeon/ci_dpm.c memory_level->ActivityLevel = (u16)pi->mclk_activity_target; pi 2929 drivers/gpu/drm/radeon/ci_dpm.c if (pi->mclk_stutter_mode_threshold && pi 2930 drivers/gpu/drm/radeon/ci_dpm.c (memory_clock <= pi->mclk_stutter_mode_threshold) && pi 2931 drivers/gpu/drm/radeon/ci_dpm.c (pi->uvd_enabled == false) && pi 2936 drivers/gpu/drm/radeon/ci_dpm.c if (pi->mclk_strobe_mode_threshold && pi 2937 drivers/gpu/drm/radeon/ci_dpm.c (memory_clock <= pi->mclk_strobe_mode_threshold)) pi 2940 drivers/gpu/drm/radeon/ci_dpm.c if (pi->mem_gddr5) { pi 2943 drivers/gpu/drm/radeon/ci_dpm.c if (pi->mclk_edc_enable_threshold && pi 2944 drivers/gpu/drm/radeon/ci_dpm.c (memory_clock > pi->mclk_edc_enable_threshold)) pi 2947 drivers/gpu/drm/radeon/ci_dpm.c if (pi->mclk_edc_wr_enable_threshold && pi 2948 drivers/gpu/drm/radeon/ci_dpm.c (memory_clock > pi->mclk_edc_wr_enable_threshold)) pi 2958 drivers/gpu/drm/radeon/ci_dpm.c dll_state_on = pi->dll_default_on; pi 2992 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 2995 drivers/gpu/drm/radeon/ci_dpm.c u32 spll_func_cntl = pi->clock_registers.cg_spll_func_cntl; pi 2996 drivers/gpu/drm/radeon/ci_dpm.c u32 spll_func_cntl_2 = pi->clock_registers.cg_spll_func_cntl_2; pi 2997 drivers/gpu/drm/radeon/ci_dpm.c u32 dll_cntl = pi->clock_registers.dll_cntl; pi 2998 drivers/gpu/drm/radeon/ci_dpm.c u32 mclk_pwrmgt_cntl = pi->clock_registers.mclk_pwrmgt_cntl; pi 3003 drivers/gpu/drm/radeon/ci_dpm.c if (pi->acpi_vddc) pi 3004 drivers/gpu/drm/radeon/ci_dpm.c table->ACPILevel.MinVddc = cpu_to_be32(pi->acpi_vddc * VOLTAGE_SCALE); pi 3006 drivers/gpu/drm/radeon/ci_dpm.c table->ACPILevel.MinVddc = cpu_to_be32(pi->min_vddc_in_pp_table * VOLTAGE_SCALE); pi 3008 drivers/gpu/drm/radeon/ci_dpm.c table->ACPILevel.MinVddcPhases = pi->vddc_phase_shed_control ? 0 : 1; pi 3030 drivers/gpu/drm/radeon/ci_dpm.c table->ACPILevel.CgSpllFuncCntl3 = pi->clock_registers.cg_spll_func_cntl_3; pi 3031 drivers/gpu/drm/radeon/ci_dpm.c table->ACPILevel.CgSpllFuncCntl4 = pi->clock_registers.cg_spll_func_cntl_4; pi 3032 drivers/gpu/drm/radeon/ci_dpm.c table->ACPILevel.SpllSpreadSpectrum = pi->clock_registers.cg_spll_spread_spectrum; pi 3033 drivers/gpu/drm/radeon/ci_dpm.c table->ACPILevel.SpllSpreadSpectrum2 = pi->clock_registers.cg_spll_spread_spectrum_2; pi 3052 drivers/gpu/drm/radeon/ci_dpm.c if (pi->vddci_control != CISLANDS_VOLTAGE_CONTROL_NONE) { pi 3053 drivers/gpu/drm/radeon/ci_dpm.c if (pi->acpi_vddci) pi 3055 drivers/gpu/drm/radeon/ci_dpm.c cpu_to_be32(pi->acpi_vddci * VOLTAGE_SCALE); pi 3058 drivers/gpu/drm/radeon/ci_dpm.c cpu_to_be32(pi->min_vddci_in_pp_table * VOLTAGE_SCALE); pi 3075 drivers/gpu/drm/radeon/ci_dpm.c cpu_to_be32(pi->clock_registers.mpll_ad_func_cntl); pi 3077 drivers/gpu/drm/radeon/ci_dpm.c cpu_to_be32(pi->clock_registers.mpll_dq_func_cntl); pi 3079 drivers/gpu/drm/radeon/ci_dpm.c cpu_to_be32(pi->clock_registers.mpll_func_cntl); pi 3081 drivers/gpu/drm/radeon/ci_dpm.c cpu_to_be32(pi->clock_registers.mpll_func_cntl_1); pi 3083 drivers/gpu/drm/radeon/ci_dpm.c cpu_to_be32(pi->clock_registers.mpll_func_cntl_2); pi 3084 drivers/gpu/drm/radeon/ci_dpm.c table->MemoryACPILevel.MpllSs1 = cpu_to_be32(pi->clock_registers.mpll_ss1); pi 3085 drivers/gpu/drm/radeon/ci_dpm.c table->MemoryACPILevel.MpllSs2 = cpu_to_be32(pi->clock_registers.mpll_ss2); pi 3093 drivers/gpu/drm/radeon/ci_dpm.c cpu_to_be16((u16)pi->mclk_activity_target); pi 3107 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 3108 drivers/gpu/drm/radeon/ci_dpm.c struct ci_ulv_parm *ulv = &pi->ulv; pi 3125 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 3132 drivers/gpu/drm/radeon/ci_dpm.c pi->ulv.supported = false; pi 3136 drivers/gpu/drm/radeon/ci_dpm.c if (pi->voltage_control != CISLANDS_VOLTAGE_CONTROL_BY_SVID2) { pi 3150 drivers/gpu/drm/radeon/ci_dpm.c state->VddcPhase = pi->vddc_phase_shed_control ? 0 : 1; pi 3163 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 3165 drivers/gpu/drm/radeon/ci_dpm.c u32 spll_func_cntl_3 = pi->clock_registers.cg_spll_func_cntl_3; pi 3166 drivers/gpu/drm/radeon/ci_dpm.c u32 spll_func_cntl_4 = pi->clock_registers.cg_spll_func_cntl_4; pi 3167 drivers/gpu/drm/radeon/ci_dpm.c u32 cg_spll_spread_spectrum = pi->clock_registers.cg_spll_spread_spectrum; pi 3168 drivers/gpu/drm/radeon/ci_dpm.c u32 cg_spll_spread_spectrum_2 = pi->clock_registers.cg_spll_spread_spectrum_2; pi 3187 drivers/gpu/drm/radeon/ci_dpm.c if (pi->caps_sclk_ss_support) { pi 3220 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 3238 drivers/gpu/drm/radeon/ci_dpm.c if (pi->vddc_phase_shed_control) pi 3254 drivers/gpu/drm/radeon/ci_dpm.c if (pi->caps_sclk_ds) pi 3278 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 3279 drivers/gpu/drm/radeon/ci_dpm.c struct ci_dpm_table *dpm_table = &pi->dpm_table; pi 3280 drivers/gpu/drm/radeon/ci_dpm.c u32 level_array_address = pi->dpm_table_start + pi 3284 drivers/gpu/drm/radeon/ci_dpm.c SMU7_Discrete_GraphicsLevel *levels = pi->smc_state_table.GraphicsLevel; pi 3292 drivers/gpu/drm/radeon/ci_dpm.c (u16)pi->activity_target[i], pi 3293 drivers/gpu/drm/radeon/ci_dpm.c &pi->smc_state_table.GraphicsLevel[i]); pi 3297 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_state_table.GraphicsLevel[i].DeepSleepDivId = 0; pi 3299 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_state_table.GraphicsLevel[i].DisplayWatermark = pi 3302 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_state_table.GraphicsLevel[0].EnabledForActivity = 1; pi 3304 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_state_table.GraphicsDpmLevelCount = (u8)dpm_table->sclk_table.count; pi 3305 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.sclk_dpm_enable_mask = pi 3310 drivers/gpu/drm/radeon/ci_dpm.c pi->sram_end); pi 3325 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 3326 drivers/gpu/drm/radeon/ci_dpm.c struct ci_dpm_table *dpm_table = &pi->dpm_table; pi 3327 drivers/gpu/drm/radeon/ci_dpm.c u32 level_array_address = pi->dpm_table_start + pi 3331 drivers/gpu/drm/radeon/ci_dpm.c SMU7_Discrete_MemoryLevel *levels = pi->smc_state_table.MemoryLevel; pi 3341 drivers/gpu/drm/radeon/ci_dpm.c &pi->smc_state_table.MemoryLevel[i]); pi 3346 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_state_table.MemoryLevel[0].EnabledForActivity = 1; pi 3350 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_state_table.MemoryLevel[1].MinVddc = pi 3351 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_state_table.MemoryLevel[0].MinVddc; pi 3352 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_state_table.MemoryLevel[1].MinVddcPhases = pi 3353 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_state_table.MemoryLevel[0].MinVddcPhases; pi 3356 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_state_table.MemoryLevel[0].ActivityLevel = cpu_to_be16(0x1F); pi 3358 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_state_table.MemoryDpmLevelCount = (u8)dpm_table->mclk_table.count; pi 3359 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.mclk_dpm_enable_mask = pi 3362 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_state_table.MemoryLevel[dpm_table->mclk_table.count - 1].DisplayWatermark = pi 3367 drivers/gpu/drm/radeon/ci_dpm.c pi->sram_end); pi 3395 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 3397 drivers/gpu/drm/radeon/ci_dpm.c if (!pi->use_pcie_performance_levels && !pi->use_pcie_powersaving_levels) pi 3400 drivers/gpu/drm/radeon/ci_dpm.c if (pi->use_pcie_performance_levels && !pi->use_pcie_powersaving_levels) { pi 3401 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_gen_powersaving = pi->pcie_gen_performance; pi 3402 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_lane_powersaving = pi->pcie_lane_performance; pi 3403 drivers/gpu/drm/radeon/ci_dpm.c } else if (!pi->use_pcie_performance_levels && pi->use_pcie_powersaving_levels) { pi 3404 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_gen_performance = pi->pcie_gen_powersaving; pi 3405 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_lane_performance = pi->pcie_lane_powersaving; pi 3409 drivers/gpu/drm/radeon/ci_dpm.c &pi->dpm_table.pcie_speed_table, pi 3413 drivers/gpu/drm/radeon/ci_dpm.c ci_setup_pcie_table_entry(&pi->dpm_table.pcie_speed_table, 0, pi 3414 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_gen_powersaving.min, pi 3415 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_lane_powersaving.max); pi 3417 drivers/gpu/drm/radeon/ci_dpm.c ci_setup_pcie_table_entry(&pi->dpm_table.pcie_speed_table, 0, pi 3418 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_gen_powersaving.min, pi 3419 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_lane_powersaving.min); pi 3420 drivers/gpu/drm/radeon/ci_dpm.c ci_setup_pcie_table_entry(&pi->dpm_table.pcie_speed_table, 1, pi 3421 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_gen_performance.min, pi 3422 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_lane_performance.min); pi 3423 drivers/gpu/drm/radeon/ci_dpm.c ci_setup_pcie_table_entry(&pi->dpm_table.pcie_speed_table, 2, pi 3424 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_gen_powersaving.min, pi 3425 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_lane_powersaving.max); pi 3426 drivers/gpu/drm/radeon/ci_dpm.c ci_setup_pcie_table_entry(&pi->dpm_table.pcie_speed_table, 3, pi 3427 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_gen_performance.min, pi 3428 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_lane_performance.max); pi 3429 drivers/gpu/drm/radeon/ci_dpm.c ci_setup_pcie_table_entry(&pi->dpm_table.pcie_speed_table, 4, pi 3430 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_gen_powersaving.max, pi 3431 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_lane_powersaving.max); pi 3432 drivers/gpu/drm/radeon/ci_dpm.c ci_setup_pcie_table_entry(&pi->dpm_table.pcie_speed_table, 5, pi 3433 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_gen_performance.max, pi 3434 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_lane_performance.max); pi 3436 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.pcie_speed_table.count = 6; pi 3443 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 3461 drivers/gpu/drm/radeon/ci_dpm.c memset(&pi->dpm_table, 0, sizeof(struct ci_dpm_table)); pi 3464 drivers/gpu/drm/radeon/ci_dpm.c &pi->dpm_table.sclk_table, pi 3467 drivers/gpu/drm/radeon/ci_dpm.c &pi->dpm_table.mclk_table, pi 3470 drivers/gpu/drm/radeon/ci_dpm.c &pi->dpm_table.vddc_table, pi 3473 drivers/gpu/drm/radeon/ci_dpm.c &pi->dpm_table.vddci_table, pi 3476 drivers/gpu/drm/radeon/ci_dpm.c &pi->dpm_table.mvdd_table, pi 3479 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.sclk_table.count = 0; pi 3482 drivers/gpu/drm/radeon/ci_dpm.c (pi->dpm_table.sclk_table.dpm_levels[pi->dpm_table.sclk_table.count-1].value != pi 3484 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.sclk_table.dpm_levels[pi->dpm_table.sclk_table.count].value = pi 3486 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.sclk_table.dpm_levels[pi->dpm_table.sclk_table.count].enabled = pi 3488 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.sclk_table.count++; pi 3492 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.mclk_table.count = 0; pi 3495 drivers/gpu/drm/radeon/ci_dpm.c (pi->dpm_table.mclk_table.dpm_levels[pi->dpm_table.mclk_table.count-1].value != pi 3497 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.mclk_table.dpm_levels[pi->dpm_table.mclk_table.count].value = pi 3499 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.mclk_table.dpm_levels[pi->dpm_table.mclk_table.count].enabled = pi 3501 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.mclk_table.count++; pi 3506 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.vddc_table.dpm_levels[i].value = pi 3508 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.vddc_table.dpm_levels[i].param1 = pi 3510 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.vddc_table.dpm_levels[i].enabled = true; pi 3512 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.vddc_table.count = allowed_sclk_vddc_table->count; pi 3517 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.vddci_table.dpm_levels[i].value = pi 3519 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.vddci_table.dpm_levels[i].enabled = true; pi 3521 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.vddci_table.count = allowed_mclk_table->count; pi 3527 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.mvdd_table.dpm_levels[i].value = pi 3529 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.mvdd_table.dpm_levels[i].enabled = true; pi 3531 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.mvdd_table.count = allowed_mclk_table->count; pi 3557 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 3558 drivers/gpu/drm/radeon/ci_dpm.c struct ci_ulv_parm *ulv = &pi->ulv; pi 3560 drivers/gpu/drm/radeon/ci_dpm.c SMU7_Discrete_DpmTable *table = &pi->smc_state_table; pi 3567 drivers/gpu/drm/radeon/ci_dpm.c if (pi->voltage_control != CISLANDS_VOLTAGE_CONTROL_NONE) pi 3578 drivers/gpu/drm/radeon/ci_dpm.c if (pi->mem_gddr5) pi 3582 drivers/gpu/drm/radeon/ci_dpm.c ret = ci_populate_ulv_state(rdev, &pi->smc_state_table.Ulv); pi 3629 drivers/gpu/drm/radeon/ci_dpm.c ret = ci_find_boot_level(&pi->dpm_table.sclk_table, pi 3630 drivers/gpu/drm/radeon/ci_dpm.c pi->vbios_boot_state.sclk_bootup_value, pi 3631 drivers/gpu/drm/radeon/ci_dpm.c (u32 *)&pi->smc_state_table.GraphicsBootLevel); pi 3633 drivers/gpu/drm/radeon/ci_dpm.c ret = ci_find_boot_level(&pi->dpm_table.mclk_table, pi 3634 drivers/gpu/drm/radeon/ci_dpm.c pi->vbios_boot_state.mclk_bootup_value, pi 3635 drivers/gpu/drm/radeon/ci_dpm.c (u32 *)&pi->smc_state_table.MemoryBootLevel); pi 3637 drivers/gpu/drm/radeon/ci_dpm.c table->BootVddc = pi->vbios_boot_state.vddc_bootup_value; pi 3638 drivers/gpu/drm/radeon/ci_dpm.c table->BootVddci = pi->vbios_boot_state.vddci_bootup_value; pi 3639 drivers/gpu/drm/radeon/ci_dpm.c table->BootMVdd = pi->vbios_boot_state.mvdd_bootup_value; pi 3656 drivers/gpu/drm/radeon/ci_dpm.c table->TemperatureLimitHigh = (u16)((pi->thermal_temp_setting.temperature_high * pi 3658 drivers/gpu/drm/radeon/ci_dpm.c table->TemperatureLimitLow = (u16)((pi->thermal_temp_setting.temperature_low * pi 3666 drivers/gpu/drm/radeon/ci_dpm.c table->PCIeBootLinkLevel = pi->dpm_table.pcie_speed_table.count - 1; pi 3668 drivers/gpu/drm/radeon/ci_dpm.c if (pi->voltage_control == CISLANDS_VOLTAGE_CONTROL_BY_SVID2) pi 3692 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table_start + pi 3696 drivers/gpu/drm/radeon/ci_dpm.c pi->sram_end); pi 3722 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 3723 drivers/gpu/drm/radeon/ci_dpm.c struct ci_single_dpm_table *pcie_table = &pi->dpm_table.pcie_speed_table; pi 3753 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 3765 drivers/gpu/drm/radeon/ci_dpm.c &pi->dpm_table.sclk_table, pi 3770 drivers/gpu/drm/radeon/ci_dpm.c &pi->dpm_table.mclk_table, pi 3817 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 3822 drivers/gpu/drm/radeon/ci_dpm.c if (!pi->sclk_dpm_key_disabled) { pi 3823 drivers/gpu/drm/radeon/ci_dpm.c if (pi->dpm_level_enable_mask.sclk_dpm_enable_mask) { pi 3826 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.sclk_dpm_enable_mask); pi 3832 drivers/gpu/drm/radeon/ci_dpm.c if (!pi->mclk_dpm_key_disabled) { pi 3833 drivers/gpu/drm/radeon/ci_dpm.c if (pi->dpm_level_enable_mask.mclk_dpm_enable_mask) { pi 3836 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.mclk_dpm_enable_mask); pi 3842 drivers/gpu/drm/radeon/ci_dpm.c if (!pi->pcie_dpm_key_disabled) { pi 3843 drivers/gpu/drm/radeon/ci_dpm.c if (pi->dpm_level_enable_mask.pcie_dpm_enable_mask) { pi 3846 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.pcie_dpm_enable_mask); pi 3858 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 3860 drivers/gpu/drm/radeon/ci_dpm.c struct ci_single_dpm_table *sclk_table = &pi->dpm_table.sclk_table; pi 3862 drivers/gpu/drm/radeon/ci_dpm.c struct ci_single_dpm_table *mclk_table = &pi->dpm_table.mclk_table; pi 3866 drivers/gpu/drm/radeon/ci_dpm.c pi->need_update_smu7_dpm_table = 0; pi 3874 drivers/gpu/drm/radeon/ci_dpm.c pi->need_update_smu7_dpm_table |= DPMTABLE_OD_UPDATE_SCLK; pi 3881 drivers/gpu/drm/radeon/ci_dpm.c pi->need_update_smu7_dpm_table |= DPMTABLE_UPDATE_SCLK; pi 3890 drivers/gpu/drm/radeon/ci_dpm.c pi->need_update_smu7_dpm_table |= DPMTABLE_OD_UPDATE_MCLK; pi 3894 drivers/gpu/drm/radeon/ci_dpm.c pi->need_update_smu7_dpm_table |= DPMTABLE_UPDATE_MCLK; pi 3900 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 3904 drivers/gpu/drm/radeon/ci_dpm.c struct ci_dpm_table *dpm_table = &pi->dpm_table; pi 3907 drivers/gpu/drm/radeon/ci_dpm.c if (!pi->need_update_smu7_dpm_table) pi 3910 drivers/gpu/drm/radeon/ci_dpm.c if (pi->need_update_smu7_dpm_table & DPMTABLE_OD_UPDATE_SCLK) pi 3913 drivers/gpu/drm/radeon/ci_dpm.c if (pi->need_update_smu7_dpm_table & DPMTABLE_OD_UPDATE_MCLK) pi 3916 drivers/gpu/drm/radeon/ci_dpm.c if (pi->need_update_smu7_dpm_table & (DPMTABLE_OD_UPDATE_SCLK | DPMTABLE_UPDATE_SCLK)) { pi 3922 drivers/gpu/drm/radeon/ci_dpm.c if (pi->need_update_smu7_dpm_table & (DPMTABLE_OD_UPDATE_MCLK | DPMTABLE_UPDATE_MCLK)) { pi 3933 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 3943 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.uvd_dpm_enable_mask = 0; pi 3947 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.uvd_dpm_enable_mask |= 1 << i; pi 3949 drivers/gpu/drm/radeon/ci_dpm.c if (!pi->caps_uvd_dpm) pi 3956 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.uvd_dpm_enable_mask); pi 3958 drivers/gpu/drm/radeon/ci_dpm.c if (pi->last_mclk_dpm_enable_mask & 0x1) { pi 3959 drivers/gpu/drm/radeon/ci_dpm.c pi->uvd_enabled = true; pi 3960 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.mclk_dpm_enable_mask &= 0xFFFFFFFE; pi 3963 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.mclk_dpm_enable_mask); pi 3966 drivers/gpu/drm/radeon/ci_dpm.c if (pi->last_mclk_dpm_enable_mask & 0x1) { pi 3967 drivers/gpu/drm/radeon/ci_dpm.c pi->uvd_enabled = false; pi 3968 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.mclk_dpm_enable_mask |= 1; pi 3971 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.mclk_dpm_enable_mask); pi 3982 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 3992 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.vce_dpm_enable_mask = 0; pi 3995 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.vce_dpm_enable_mask |= 1 << i; pi 3997 drivers/gpu/drm/radeon/ci_dpm.c if (!pi->caps_vce_dpm) pi 4004 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.vce_dpm_enable_mask); pi 4015 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 4025 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.samu_dpm_enable_mask = 0; pi 4028 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.samu_dpm_enable_mask |= 1 << i; pi 4030 drivers/gpu/drm/radeon/ci_dpm.c if (!pi->caps_samu_dpm) pi 4037 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.samu_dpm_enable_mask); pi 4046 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 4056 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.acp_dpm_enable_mask = 0; pi 4059 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.acp_dpm_enable_mask |= 1 << i; pi 4061 drivers/gpu/drm/radeon/ci_dpm.c if (!pi->caps_acp_dpm) pi 4068 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.acp_dpm_enable_mask); pi 4079 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 4083 drivers/gpu/drm/radeon/ci_dpm.c if (pi->caps_uvd_dpm || pi 4085 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_state_table.UvdBootLevel = 0; pi 4087 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_state_table.UvdBootLevel = pi 4092 drivers/gpu/drm/radeon/ci_dpm.c tmp |= UvdBootLevel(pi->smc_state_table.UvdBootLevel); pi 4118 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 4127 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_state_table.VceBootLevel = ci_get_vce_boot_level(rdev); pi 4130 drivers/gpu/drm/radeon/ci_dpm.c tmp |= VceBootLevel(pi->smc_state_table.VceBootLevel); pi 4152 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 4156 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_state_table.AcpBootLevel = 0; pi 4160 drivers/gpu/drm/radeon/ci_dpm.c tmp |= AcpBootLevel(pi->smc_state_table.AcpBootLevel); pi 4171 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 4178 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.sclk_dpm_enable_mask = pi 4179 drivers/gpu/drm/radeon/ci_dpm.c ci_get_dpm_level_enable_mask_value(&pi->dpm_table.sclk_table); pi 4180 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.mclk_dpm_enable_mask = pi 4181 drivers/gpu/drm/radeon/ci_dpm.c ci_get_dpm_level_enable_mask_value(&pi->dpm_table.mclk_table); pi 4182 drivers/gpu/drm/radeon/ci_dpm.c pi->last_mclk_dpm_enable_mask = pi 4183 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.mclk_dpm_enable_mask; pi 4184 drivers/gpu/drm/radeon/ci_dpm.c if (pi->uvd_enabled) { pi 4185 drivers/gpu/drm/radeon/ci_dpm.c if (pi->dpm_level_enable_mask.mclk_dpm_enable_mask & 1) pi 4186 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.mclk_dpm_enable_mask &= 0xFFFFFFFE; pi 4188 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.pcie_dpm_enable_mask = pi 4189 drivers/gpu/drm/radeon/ci_dpm.c ci_get_dpm_level_enable_mask_value(&pi->dpm_table.pcie_speed_table); pi 4209 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 4214 drivers/gpu/drm/radeon/ci_dpm.c if ((!pi->pcie_dpm_key_disabled) && pi 4215 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.pcie_dpm_enable_mask) { pi 4217 drivers/gpu/drm/radeon/ci_dpm.c tmp = pi->dpm_level_enable_mask.pcie_dpm_enable_mask; pi 4233 drivers/gpu/drm/radeon/ci_dpm.c if ((!pi->sclk_dpm_key_disabled) && pi 4234 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.sclk_dpm_enable_mask) { pi 4236 drivers/gpu/drm/radeon/ci_dpm.c tmp = pi->dpm_level_enable_mask.sclk_dpm_enable_mask; pi 4252 drivers/gpu/drm/radeon/ci_dpm.c if ((!pi->mclk_dpm_key_disabled) && pi 4253 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.mclk_dpm_enable_mask) { pi 4255 drivers/gpu/drm/radeon/ci_dpm.c tmp = pi->dpm_level_enable_mask.mclk_dpm_enable_mask; pi 4272 drivers/gpu/drm/radeon/ci_dpm.c if ((!pi->sclk_dpm_key_disabled) && pi 4273 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.sclk_dpm_enable_mask) { pi 4275 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.sclk_dpm_enable_mask); pi 4287 drivers/gpu/drm/radeon/ci_dpm.c if ((!pi->mclk_dpm_key_disabled) && pi 4288 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.mclk_dpm_enable_mask) { pi 4290 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.mclk_dpm_enable_mask); pi 4302 drivers/gpu/drm/radeon/ci_dpm.c if ((!pi->pcie_dpm_key_disabled) && pi 4303 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.pcie_dpm_enable_mask) { pi 4305 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_level_enable_mask.pcie_dpm_enable_mask); pi 4318 drivers/gpu/drm/radeon/ci_dpm.c if (!pi->pcie_dpm_key_disabled) { pi 4339 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 4365 drivers/gpu/drm/radeon/ci_dpm.c if (!pi->mem_gddr5) pi 4372 drivers/gpu/drm/radeon/ci_dpm.c if (!pi->mem_gddr5) { pi 4626 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 4628 drivers/gpu/drm/radeon/ci_dpm.c struct ci_mc_reg_table *ci_table = &pi->mc_reg_table; pi 4686 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 4689 drivers/gpu/drm/radeon/ci_dpm.c for (i = 0, j = 0; j < pi->mc_reg_table.last; j++) { pi 4690 drivers/gpu/drm/radeon/ci_dpm.c if (pi->mc_reg_table.valid_flag & (1 << j)) { pi 4693 drivers/gpu/drm/radeon/ci_dpm.c mc_reg_table->address[i].s0 = cpu_to_be16(pi->mc_reg_table.mc_reg_address[j].s0); pi 4694 drivers/gpu/drm/radeon/ci_dpm.c mc_reg_table->address[i].s1 = cpu_to_be16(pi->mc_reg_table.mc_reg_address[j].s1); pi 4722 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 4725 drivers/gpu/drm/radeon/ci_dpm.c for(i = 0; i < pi->mc_reg_table.num_entries; i++) { pi 4726 drivers/gpu/drm/radeon/ci_dpm.c if (memory_clock <= pi->mc_reg_table.mc_reg_table_entry[i].mclk_max) pi 4730 drivers/gpu/drm/radeon/ci_dpm.c if ((i == pi->mc_reg_table.num_entries) && (i > 0)) pi 4733 drivers/gpu/drm/radeon/ci_dpm.c ci_convert_mc_registers(&pi->mc_reg_table.mc_reg_table_entry[i], pi 4734 drivers/gpu/drm/radeon/ci_dpm.c mc_reg_table_data, pi->mc_reg_table.last, pi 4735 drivers/gpu/drm/radeon/ci_dpm.c pi->mc_reg_table.valid_flag); pi 4741 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 4744 drivers/gpu/drm/radeon/ci_dpm.c for (i = 0; i < pi->dpm_table.mclk_table.count; i++) pi 4746 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.mclk_table.dpm_levels[i].value, pi 4752 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 4755 drivers/gpu/drm/radeon/ci_dpm.c memset(&pi->smc_mc_reg_table, 0, sizeof(SMU7_Discrete_MCRegisters)); pi 4757 drivers/gpu/drm/radeon/ci_dpm.c ret = ci_populate_mc_reg_addresses(rdev, &pi->smc_mc_reg_table); pi 4760 drivers/gpu/drm/radeon/ci_dpm.c ci_convert_mc_reg_table_to_smc(rdev, &pi->smc_mc_reg_table); pi 4763 drivers/gpu/drm/radeon/ci_dpm.c pi->mc_reg_table_start, pi 4764 drivers/gpu/drm/radeon/ci_dpm.c (u8 *)&pi->smc_mc_reg_table, pi 4766 drivers/gpu/drm/radeon/ci_dpm.c pi->sram_end); pi 4771 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 4773 drivers/gpu/drm/radeon/ci_dpm.c if (!(pi->need_update_smu7_dpm_table & DPMTABLE_OD_UPDATE_MCLK)) pi 4776 drivers/gpu/drm/radeon/ci_dpm.c memset(&pi->smc_mc_reg_table, 0, sizeof(SMU7_Discrete_MCRegisters)); pi 4778 drivers/gpu/drm/radeon/ci_dpm.c ci_convert_mc_reg_table_to_smc(rdev, &pi->smc_mc_reg_table); pi 4781 drivers/gpu/drm/radeon/ci_dpm.c pi->mc_reg_table_start + pi 4783 drivers/gpu/drm/radeon/ci_dpm.c (u8 *)&pi->smc_mc_reg_table.data[0], pi 4785 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.mclk_table.count, pi 4786 drivers/gpu/drm/radeon/ci_dpm.c pi->sram_end); pi 4853 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 4858 drivers/gpu/drm/radeon/ci_dpm.c if (pi->force_pcie_gen == RADEON_PCIE_GEN_INVALID) pi 4861 drivers/gpu/drm/radeon/ci_dpm.c current_link_speed = pi->force_pcie_gen; pi 4863 drivers/gpu/drm/radeon/ci_dpm.c pi->force_pcie_gen = RADEON_PCIE_GEN_INVALID; pi 4864 drivers/gpu/drm/radeon/ci_dpm.c pi->pspp_notify_required = false; pi 4871 drivers/gpu/drm/radeon/ci_dpm.c pi->force_pcie_gen = RADEON_PCIE_GEN2; pi 4881 drivers/gpu/drm/radeon/ci_dpm.c pi->force_pcie_gen = ci_get_current_pcie_speed(rdev); pi 4886 drivers/gpu/drm/radeon/ci_dpm.c pi->pspp_notify_required = true; pi 4894 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 4899 drivers/gpu/drm/radeon/ci_dpm.c if (pi->pspp_notify_required) { pi 4919 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 4940 drivers/gpu/drm/radeon/ci_dpm.c pi->min_vddc_in_pp_table = allowed_sclk_vddc_table->entries[0].v; pi 4941 drivers/gpu/drm/radeon/ci_dpm.c pi->max_vddc_in_pp_table = pi 4944 drivers/gpu/drm/radeon/ci_dpm.c pi->min_vddci_in_pp_table = allowed_mclk_vddci_table->entries[0].v; pi 4945 drivers/gpu/drm/radeon/ci_dpm.c pi->max_vddci_in_pp_table = pi 4962 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 4963 drivers/gpu/drm/radeon/ci_dpm.c struct ci_leakage_voltage *leakage_table = &pi->vddc_leakage; pi 4976 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 4977 drivers/gpu/drm/radeon/ci_dpm.c struct ci_leakage_voltage *leakage_table = &pi->vddci_leakage; pi 5095 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 5102 drivers/gpu/drm/radeon/ci_dpm.c pi->mem_gddr5 = true; pi 5104 drivers/gpu/drm/radeon/ci_dpm.c pi->mem_gddr5 = false; pi 5112 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 5114 drivers/gpu/drm/radeon/ci_dpm.c pi->current_rps = *rps; pi 5115 drivers/gpu/drm/radeon/ci_dpm.c pi->current_ps = *new_ps; pi 5116 drivers/gpu/drm/radeon/ci_dpm.c pi->current_rps.ps_priv = &pi->current_ps; pi 5123 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 5125 drivers/gpu/drm/radeon/ci_dpm.c pi->requested_rps = *rps; pi 5126 drivers/gpu/drm/radeon/ci_dpm.c pi->requested_ps = *new_ps; pi 5127 drivers/gpu/drm/radeon/ci_dpm.c pi->requested_rps.ps_priv = &pi->requested_ps; pi 5132 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 5138 drivers/gpu/drm/radeon/ci_dpm.c ci_apply_state_adjust_rules(rdev, &pi->requested_rps); pi 5145 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 5146 drivers/gpu/drm/radeon/ci_dpm.c struct radeon_ps *new_ps = &pi->requested_rps; pi 5167 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 5173 drivers/gpu/drm/radeon/ci_dpm.c if (pi->voltage_control != CISLANDS_VOLTAGE_CONTROL_NONE) { pi 5181 drivers/gpu/drm/radeon/ci_dpm.c if (pi->caps_dynamic_ac_timing) { pi 5184 drivers/gpu/drm/radeon/ci_dpm.c pi->caps_dynamic_ac_timing = false; pi 5186 drivers/gpu/drm/radeon/ci_dpm.c if (pi->dynamic_ss) pi 5188 drivers/gpu/drm/radeon/ci_dpm.c if (pi->thermal_protection) pi 5218 drivers/gpu/drm/radeon/ci_dpm.c if (pi->caps_dynamic_ac_timing) { pi 5322 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 5332 drivers/gpu/drm/radeon/ci_dpm.c if (pi->thermal_protection) pi 5353 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 5354 drivers/gpu/drm/radeon/ci_dpm.c struct radeon_ps *new_ps = &pi->requested_rps; pi 5355 drivers/gpu/drm/radeon/ci_dpm.c struct radeon_ps *old_ps = &pi->current_rps; pi 5359 drivers/gpu/drm/radeon/ci_dpm.c if (pi->pcie_performance_request) pi 5388 drivers/gpu/drm/radeon/ci_dpm.c if (pi->caps_dynamic_ac_timing) { pi 5410 drivers/gpu/drm/radeon/ci_dpm.c if (pi->pcie_performance_request) pi 5478 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 5490 drivers/gpu/drm/radeon/ci_dpm.c pi->sys_pcie_mask, pi 5491 drivers/gpu/drm/radeon/ci_dpm.c pi->vbios_boot_state.pcie_gen_bootup_value, pi 5494 drivers/gpu/drm/radeon/ci_dpm.c pi->vbios_boot_state.pcie_lane_bootup_value, pi 5498 drivers/gpu/drm/radeon/ci_dpm.c pi->acpi_pcie_gen = pl->pcie_gen; pi 5502 drivers/gpu/drm/radeon/ci_dpm.c pi->ulv.supported = true; pi 5503 drivers/gpu/drm/radeon/ci_dpm.c pi->ulv.pl = *pl; pi 5504 drivers/gpu/drm/radeon/ci_dpm.c pi->ulv.cg_ulv_parameter = CISLANDS_CGULVPARAMETER_DFLT; pi 5509 drivers/gpu/drm/radeon/ci_dpm.c pl->mclk = pi->vbios_boot_state.mclk_bootup_value; pi 5510 drivers/gpu/drm/radeon/ci_dpm.c pl->sclk = pi->vbios_boot_state.sclk_bootup_value; pi 5511 drivers/gpu/drm/radeon/ci_dpm.c pl->pcie_gen = pi->vbios_boot_state.pcie_gen_bootup_value; pi 5512 drivers/gpu/drm/radeon/ci_dpm.c pl->pcie_lane = pi->vbios_boot_state.pcie_lane_bootup_value; pi 5517 drivers/gpu/drm/radeon/ci_dpm.c pi->use_pcie_powersaving_levels = true; pi 5518 drivers/gpu/drm/radeon/ci_dpm.c if (pi->pcie_gen_powersaving.max < pl->pcie_gen) pi 5519 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_gen_powersaving.max = pl->pcie_gen; pi 5520 drivers/gpu/drm/radeon/ci_dpm.c if (pi->pcie_gen_powersaving.min > pl->pcie_gen) pi 5521 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_gen_powersaving.min = pl->pcie_gen; pi 5522 drivers/gpu/drm/radeon/ci_dpm.c if (pi->pcie_lane_powersaving.max < pl->pcie_lane) pi 5523 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_lane_powersaving.max = pl->pcie_lane; pi 5524 drivers/gpu/drm/radeon/ci_dpm.c if (pi->pcie_lane_powersaving.min > pl->pcie_lane) pi 5525 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_lane_powersaving.min = pl->pcie_lane; pi 5528 drivers/gpu/drm/radeon/ci_dpm.c pi->use_pcie_performance_levels = true; pi 5529 drivers/gpu/drm/radeon/ci_dpm.c if (pi->pcie_gen_performance.max < pl->pcie_gen) pi 5530 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_gen_performance.max = pl->pcie_gen; pi 5531 drivers/gpu/drm/radeon/ci_dpm.c if (pi->pcie_gen_performance.min > pl->pcie_gen) pi 5532 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_gen_performance.min = pl->pcie_gen; pi 5533 drivers/gpu/drm/radeon/ci_dpm.c if (pi->pcie_lane_performance.max < pl->pcie_lane) pi 5534 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_lane_performance.max = pl->pcie_lane; pi 5535 drivers/gpu/drm/radeon/ci_dpm.c if (pi->pcie_lane_performance.min > pl->pcie_lane) pi 5536 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_lane_performance.min = pl->pcie_lane; pi 5682 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi; pi 5687 drivers/gpu/drm/radeon/ci_dpm.c pi = kzalloc(sizeof(struct ci_power_info), GFP_KERNEL); pi 5688 drivers/gpu/drm/radeon/ci_dpm.c if (pi == NULL) pi 5690 drivers/gpu/drm/radeon/ci_dpm.c rdev->pm.dpm.priv = pi; pi 5695 drivers/gpu/drm/radeon/ci_dpm.c pi->sys_pcie_mask = 0; pi 5698 drivers/gpu/drm/radeon/ci_dpm.c pi->sys_pcie_mask = RADEON_PCIE_SPEED_25 | pi 5702 drivers/gpu/drm/radeon/ci_dpm.c pi->sys_pcie_mask = RADEON_PCIE_SPEED_25 | pi 5705 drivers/gpu/drm/radeon/ci_dpm.c pi->sys_pcie_mask = RADEON_PCIE_SPEED_25; pi 5707 drivers/gpu/drm/radeon/ci_dpm.c pi->force_pcie_gen = RADEON_PCIE_GEN_INVALID; pi 5709 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_gen_performance.max = RADEON_PCIE_GEN1; pi 5710 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_gen_performance.min = RADEON_PCIE_GEN3; pi 5711 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_gen_powersaving.max = RADEON_PCIE_GEN1; pi 5712 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_gen_powersaving.min = RADEON_PCIE_GEN3; pi 5714 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_lane_performance.max = 0; pi 5715 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_lane_performance.min = 16; pi 5716 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_lane_powersaving.max = 0; pi 5717 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_lane_powersaving.min = 16; pi 5719 drivers/gpu/drm/radeon/ci_dpm.c ret = ci_get_vbios_boot_values(rdev, &pi->vbios_boot_state); pi 5743 drivers/gpu/drm/radeon/ci_dpm.c pi->dll_default_on = false; pi 5744 drivers/gpu/drm/radeon/ci_dpm.c pi->sram_end = SMC_RAM_END; pi 5746 drivers/gpu/drm/radeon/ci_dpm.c pi->activity_target[0] = CISLAND_TARGETACTIVITY_DFLT; pi 5747 drivers/gpu/drm/radeon/ci_dpm.c pi->activity_target[1] = CISLAND_TARGETACTIVITY_DFLT; pi 5748 drivers/gpu/drm/radeon/ci_dpm.c pi->activity_target[2] = CISLAND_TARGETACTIVITY_DFLT; pi 5749 drivers/gpu/drm/radeon/ci_dpm.c pi->activity_target[3] = CISLAND_TARGETACTIVITY_DFLT; pi 5750 drivers/gpu/drm/radeon/ci_dpm.c pi->activity_target[4] = CISLAND_TARGETACTIVITY_DFLT; pi 5751 drivers/gpu/drm/radeon/ci_dpm.c pi->activity_target[5] = CISLAND_TARGETACTIVITY_DFLT; pi 5752 drivers/gpu/drm/radeon/ci_dpm.c pi->activity_target[6] = CISLAND_TARGETACTIVITY_DFLT; pi 5753 drivers/gpu/drm/radeon/ci_dpm.c pi->activity_target[7] = CISLAND_TARGETACTIVITY_DFLT; pi 5755 drivers/gpu/drm/radeon/ci_dpm.c pi->mclk_activity_target = CISLAND_MCLK_TARGETACTIVITY_DFLT; pi 5757 drivers/gpu/drm/radeon/ci_dpm.c pi->sclk_dpm_key_disabled = 0; pi 5758 drivers/gpu/drm/radeon/ci_dpm.c pi->mclk_dpm_key_disabled = 0; pi 5759 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_dpm_key_disabled = 0; pi 5760 drivers/gpu/drm/radeon/ci_dpm.c pi->thermal_sclk_dpm_enabled = 0; pi 5765 drivers/gpu/drm/radeon/ci_dpm.c pi->mclk_dpm_key_disabled = 1; pi 5768 drivers/gpu/drm/radeon/ci_dpm.c pi->caps_sclk_ds = true; pi 5770 drivers/gpu/drm/radeon/ci_dpm.c pi->mclk_strobe_mode_threshold = 40000; pi 5771 drivers/gpu/drm/radeon/ci_dpm.c pi->mclk_stutter_mode_threshold = 40000; pi 5772 drivers/gpu/drm/radeon/ci_dpm.c pi->mclk_edc_enable_threshold = 40000; pi 5773 drivers/gpu/drm/radeon/ci_dpm.c pi->mclk_edc_wr_enable_threshold = 40000; pi 5777 drivers/gpu/drm/radeon/ci_dpm.c pi->caps_fps = false; pi 5779 drivers/gpu/drm/radeon/ci_dpm.c pi->caps_sclk_throttle_low_notification = false; pi 5781 drivers/gpu/drm/radeon/ci_dpm.c pi->caps_uvd_dpm = true; pi 5782 drivers/gpu/drm/radeon/ci_dpm.c pi->caps_vce_dpm = true; pi 5816 drivers/gpu/drm/radeon/ci_dpm.c pi->thermal_temp_setting.temperature_low = 94500; pi 5817 drivers/gpu/drm/radeon/ci_dpm.c pi->thermal_temp_setting.temperature_high = 95000; pi 5818 drivers/gpu/drm/radeon/ci_dpm.c pi->thermal_temp_setting.temperature_shutdown = 104000; pi 5820 drivers/gpu/drm/radeon/ci_dpm.c pi->thermal_temp_setting.temperature_low = 99500; pi 5821 drivers/gpu/drm/radeon/ci_dpm.c pi->thermal_temp_setting.temperature_high = 100000; pi 5822 drivers/gpu/drm/radeon/ci_dpm.c pi->thermal_temp_setting.temperature_shutdown = 104000; pi 5825 drivers/gpu/drm/radeon/ci_dpm.c pi->uvd_enabled = false; pi 5827 drivers/gpu/drm/radeon/ci_dpm.c dpm_table = &pi->smc_state_table; pi 5876 drivers/gpu/drm/radeon/ci_dpm.c pi->voltage_control = CISLANDS_VOLTAGE_CONTROL_NONE; pi 5877 drivers/gpu/drm/radeon/ci_dpm.c pi->vddci_control = CISLANDS_VOLTAGE_CONTROL_NONE; pi 5878 drivers/gpu/drm/radeon/ci_dpm.c pi->mvdd_control = CISLANDS_VOLTAGE_CONTROL_NONE; pi 5880 drivers/gpu/drm/radeon/ci_dpm.c pi->voltage_control = CISLANDS_VOLTAGE_CONTROL_BY_GPIO; pi 5882 drivers/gpu/drm/radeon/ci_dpm.c pi->voltage_control = CISLANDS_VOLTAGE_CONTROL_BY_SVID2; pi 5886 drivers/gpu/drm/radeon/ci_dpm.c pi->vddci_control = CISLANDS_VOLTAGE_CONTROL_BY_GPIO; pi 5888 drivers/gpu/drm/radeon/ci_dpm.c pi->vddci_control = CISLANDS_VOLTAGE_CONTROL_BY_SVID2; pi 5895 drivers/gpu/drm/radeon/ci_dpm.c pi->mvdd_control = CISLANDS_VOLTAGE_CONTROL_BY_GPIO; pi 5897 drivers/gpu/drm/radeon/ci_dpm.c pi->mvdd_control = CISLANDS_VOLTAGE_CONTROL_BY_SVID2; pi 5902 drivers/gpu/drm/radeon/ci_dpm.c pi->vddc_phase_shed_control = true; pi 5905 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_performance_request = pi 5908 drivers/gpu/drm/radeon/ci_dpm.c pi->pcie_performance_request = false; pi 5913 drivers/gpu/drm/radeon/ci_dpm.c pi->caps_sclk_ss_support = true; pi 5914 drivers/gpu/drm/radeon/ci_dpm.c pi->caps_mclk_ss_support = true; pi 5915 drivers/gpu/drm/radeon/ci_dpm.c pi->dynamic_ss = true; pi 5917 drivers/gpu/drm/radeon/ci_dpm.c pi->caps_sclk_ss_support = false; pi 5918 drivers/gpu/drm/radeon/ci_dpm.c pi->caps_mclk_ss_support = false; pi 5919 drivers/gpu/drm/radeon/ci_dpm.c pi->dynamic_ss = true; pi 5923 drivers/gpu/drm/radeon/ci_dpm.c pi->thermal_protection = true; pi 5925 drivers/gpu/drm/radeon/ci_dpm.c pi->thermal_protection = false; pi 5927 drivers/gpu/drm/radeon/ci_dpm.c pi->caps_dynamic_ac_timing = true; pi 5929 drivers/gpu/drm/radeon/ci_dpm.c pi->uvd_power_gated = false; pi 5937 drivers/gpu/drm/radeon/ci_dpm.c pi->fan_ctrl_is_in_default_mode = true; pi 5945 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 5946 drivers/gpu/drm/radeon/ci_dpm.c struct radeon_ps *rps = &pi->current_rps; pi 5950 drivers/gpu/drm/radeon/ci_dpm.c seq_printf(m, "uvd %sabled\n", pi->uvd_enabled ? "en" : "dis"); pi 5990 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 5991 drivers/gpu/drm/radeon/ci_dpm.c struct ci_ps *requested_state = ci_get_ps(&pi->requested_rps); pi 6001 drivers/gpu/drm/radeon/ci_dpm.c struct ci_power_info *pi = ci_get_pi(rdev); pi 6002 drivers/gpu/drm/radeon/ci_dpm.c struct ci_ps *requested_state = ci_get_ps(&pi->requested_rps); pi 53 drivers/gpu/drm/radeon/cypress_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 60 drivers/gpu/drm/radeon/cypress_dpm.c if (!pi->boot_in_gen2) { pi 77 drivers/gpu/drm/radeon/cypress_dpm.c if (!pi->boot_in_gen2) { pi 101 drivers/gpu/drm/radeon/cypress_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 103 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->gfx_clock_gating) { pi 175 drivers/gpu/drm/radeon/cypress_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 195 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->mgcgtssm) pi 216 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->mgcgtssm) pi 224 drivers/gpu/drm/radeon/cypress_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 227 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->sclk_ss) pi 230 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->mclk_ss) pi 331 drivers/gpu/drm/radeon/cypress_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 342 drivers/gpu/drm/radeon/cypress_dpm.c pi->pcie_gen2 = true; pi 344 drivers/gpu/drm/radeon/cypress_dpm.c pi->pcie_gen2 = false; pi 346 drivers/gpu/drm/radeon/cypress_dpm.c if (!pi->pcie_gen2) pi 426 drivers/gpu/drm/radeon/cypress_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 430 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->mem_gddr5) { pi 431 drivers/gpu/drm/radeon/cypress_dpm.c if (mclk <= pi->mclk_strobe_mode_threshold) pi 479 drivers/gpu/drm/radeon/cypress_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 482 drivers/gpu/drm/radeon/cypress_dpm.c pi->clk_regs.rv770.mpll_ad_func_cntl; pi 484 drivers/gpu/drm/radeon/cypress_dpm.c pi->clk_regs.rv770.mpll_ad_func_cntl_2; pi 486 drivers/gpu/drm/radeon/cypress_dpm.c pi->clk_regs.rv770.mpll_dq_func_cntl; pi 488 drivers/gpu/drm/radeon/cypress_dpm.c pi->clk_regs.rv770.mpll_dq_func_cntl_2; pi 490 drivers/gpu/drm/radeon/cypress_dpm.c pi->clk_regs.rv770.mclk_pwrmgt_cntl; pi 492 drivers/gpu/drm/radeon/cypress_dpm.c pi->clk_regs.rv770.dll_cntl; pi 493 drivers/gpu/drm/radeon/cypress_dpm.c u32 mpll_ss1 = pi->clk_regs.rv770.mpll_ss1; pi 494 drivers/gpu/drm/radeon/cypress_dpm.c u32 mpll_ss2 = pi->clk_regs.rv770.mpll_ss2; pi 531 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->mem_gddr5) { pi 554 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->mclk_ss) { pi 574 drivers/gpu/drm/radeon/cypress_dpm.c dll_speed = rv740_get_dll_speed(pi->mem_gddr5, pi 656 drivers/gpu/drm/radeon/cypress_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 659 drivers/gpu/drm/radeon/cypress_dpm.c if (!pi->mvdd_control) { pi 665 drivers/gpu/drm/radeon/cypress_dpm.c if (mclk <= pi->mvdd_split_frequency) { pi 681 drivers/gpu/drm/radeon/cypress_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 686 drivers/gpu/drm/radeon/cypress_dpm.c level->gen2PCIE = pi->pcie_gen2 ? pi 697 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->mclk_stutter_mode_threshold && pi 698 drivers/gpu/drm/radeon/cypress_dpm.c (pl->mclk <= pi->mclk_stutter_mode_threshold) && pi 707 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->mem_gddr5) { pi 708 drivers/gpu/drm/radeon/cypress_dpm.c if (pl->mclk > pi->mclk_edc_enable_threshold) pi 870 drivers/gpu/drm/radeon/cypress_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 871 drivers/gpu/drm/radeon/cypress_dpm.c u16 address = pi->state_table_start + pi 882 drivers/gpu/drm/radeon/cypress_dpm.c pi->sram_end); pi 888 drivers/gpu/drm/radeon/cypress_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 901 drivers/gpu/drm/radeon/cypress_dpm.c pi->sram_end); pi 907 drivers/gpu/drm/radeon/cypress_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 908 drivers/gpu/drm/radeon/cypress_dpm.c u32 multiplier = pi->mem_gddr5 ? 1 : 2; pi 1073 drivers/gpu/drm/radeon/cypress_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1079 drivers/gpu/drm/radeon/cypress_dpm.c pi->mem_gddr5, pi 1240 drivers/gpu/drm/radeon/cypress_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1245 drivers/gpu/drm/radeon/cypress_dpm.c cpu_to_be32(pi->clk_regs.rv770.mpll_ad_func_cntl); pi 1247 drivers/gpu/drm/radeon/cypress_dpm.c cpu_to_be32(pi->clk_regs.rv770.mpll_ad_func_cntl_2); pi 1249 drivers/gpu/drm/radeon/cypress_dpm.c cpu_to_be32(pi->clk_regs.rv770.mpll_dq_func_cntl); pi 1251 drivers/gpu/drm/radeon/cypress_dpm.c cpu_to_be32(pi->clk_regs.rv770.mpll_dq_func_cntl_2); pi 1253 drivers/gpu/drm/radeon/cypress_dpm.c cpu_to_be32(pi->clk_regs.rv770.mclk_pwrmgt_cntl); pi 1255 drivers/gpu/drm/radeon/cypress_dpm.c cpu_to_be32(pi->clk_regs.rv770.dll_cntl); pi 1258 drivers/gpu/drm/radeon/cypress_dpm.c cpu_to_be32(pi->clk_regs.rv770.mpll_ss1); pi 1260 drivers/gpu/drm/radeon/cypress_dpm.c cpu_to_be32(pi->clk_regs.rv770.mpll_ss2); pi 1266 drivers/gpu/drm/radeon/cypress_dpm.c cpu_to_be32(pi->clk_regs.rv770.cg_spll_func_cntl); pi 1268 drivers/gpu/drm/radeon/cypress_dpm.c cpu_to_be32(pi->clk_regs.rv770.cg_spll_func_cntl_2); pi 1270 drivers/gpu/drm/radeon/cypress_dpm.c cpu_to_be32(pi->clk_regs.rv770.cg_spll_func_cntl_3); pi 1272 drivers/gpu/drm/radeon/cypress_dpm.c cpu_to_be32(pi->clk_regs.rv770.cg_spll_spread_spectrum); pi 1274 drivers/gpu/drm/radeon/cypress_dpm.c cpu_to_be32(pi->clk_regs.rv770.cg_spll_spread_spectrum_2); pi 1300 drivers/gpu/drm/radeon/cypress_dpm.c table->initialState.levels[0].bSP = cpu_to_be32(pi->dsp); pi 1303 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->boot_in_gen2) pi 1312 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->mem_gddr5) { pi 1317 drivers/gpu/drm/radeon/cypress_dpm.c if (initial_state->low.mclk > pi->mclk_edc_enable_threshold) pi 1334 drivers/gpu/drm/radeon/cypress_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1337 drivers/gpu/drm/radeon/cypress_dpm.c pi->clk_regs.rv770.mpll_ad_func_cntl; pi 1339 drivers/gpu/drm/radeon/cypress_dpm.c pi->clk_regs.rv770.mpll_ad_func_cntl_2; pi 1341 drivers/gpu/drm/radeon/cypress_dpm.c pi->clk_regs.rv770.mpll_dq_func_cntl; pi 1343 drivers/gpu/drm/radeon/cypress_dpm.c pi->clk_regs.rv770.mpll_dq_func_cntl_2; pi 1345 drivers/gpu/drm/radeon/cypress_dpm.c pi->clk_regs.rv770.cg_spll_func_cntl; pi 1347 drivers/gpu/drm/radeon/cypress_dpm.c pi->clk_regs.rv770.cg_spll_func_cntl_2; pi 1349 drivers/gpu/drm/radeon/cypress_dpm.c pi->clk_regs.rv770.cg_spll_func_cntl_3; pi 1351 drivers/gpu/drm/radeon/cypress_dpm.c pi->clk_regs.rv770.mclk_pwrmgt_cntl; pi 1353 drivers/gpu/drm/radeon/cypress_dpm.c pi->clk_regs.rv770.dll_cntl; pi 1359 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->acpi_vddc) { pi 1362 drivers/gpu/drm/radeon/cypress_dpm.c pi->acpi_vddc, pi 1364 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->pcie_gen2) { pi 1365 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->acpi_pcie_gen2) pi 1371 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->acpi_pcie_gen2) pi 1378 drivers/gpu/drm/radeon/cypress_dpm.c pi->min_vddc_in_table, pi 1396 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->mem_gddr5) pi 1527 drivers/gpu/drm/radeon/cypress_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1541 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->max_vddc_in_table <= pi 1573 drivers/gpu/drm/radeon/cypress_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1582 drivers/gpu/drm/radeon/cypress_dpm.c pi->mvdd_control = false; pi 1597 drivers/gpu/drm/radeon/cypress_dpm.c pi->mvdd_control = false; pi 1601 drivers/gpu/drm/radeon/cypress_dpm.c pi->mvdd_split_frequency = pi 1604 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->mvdd_split_frequency == 0) { pi 1605 drivers/gpu/drm/radeon/cypress_dpm.c pi->mvdd_control = false; pi 1615 drivers/gpu/drm/radeon/cypress_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1616 drivers/gpu/drm/radeon/cypress_dpm.c RV770_SMC_STATETABLE *table = &pi->smc_statetable; pi 1645 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->mem_gddr5) pi 1659 drivers/gpu/drm/radeon/cypress_dpm.c pi->state_table_start, pi 1661 drivers/gpu/drm/radeon/cypress_dpm.c pi->sram_end); pi 1667 drivers/gpu/drm/radeon/cypress_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1689 drivers/gpu/drm/radeon/cypress_dpm.c pi->sram_end); pi 1694 drivers/gpu/drm/radeon/cypress_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1702 drivers/gpu/drm/radeon/cypress_dpm.c &tmp, pi->sram_end); pi 1706 drivers/gpu/drm/radeon/cypress_dpm.c pi->state_table_start = (u16)tmp; pi 1711 drivers/gpu/drm/radeon/cypress_dpm.c &tmp, pi->sram_end); pi 1715 drivers/gpu/drm/radeon/cypress_dpm.c pi->soft_regs_start = (u16)tmp; pi 1720 drivers/gpu/drm/radeon/cypress_dpm.c &tmp, pi->sram_end); pi 1806 drivers/gpu/drm/radeon/cypress_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1811 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->gfx_clock_gating) pi 1817 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->voltage_control) { pi 1826 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->mvdd_control) { pi 1846 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->dynamic_ss) pi 1849 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->thermal_protection) pi 1861 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->dynamic_pcie_gen2) pi 1904 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->gfx_clock_gating) pi 1907 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->mg_clock_gating) pi 1917 drivers/gpu/drm/radeon/cypress_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1926 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->thermal_protection) pi 1929 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->dynamic_pcie_gen2) pi 1938 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->gfx_clock_gating) pi 1941 drivers/gpu/drm/radeon/cypress_dpm.c if (pi->mg_clock_gating) pi 2024 drivers/gpu/drm/radeon/cypress_dpm.c struct rv7xx_power_info *pi; pi 2033 drivers/gpu/drm/radeon/cypress_dpm.c pi = &eg_pi->rv7xx; pi 2038 drivers/gpu/drm/radeon/cypress_dpm.c pi->acpi_vddc = 0; pi 2040 drivers/gpu/drm/radeon/cypress_dpm.c pi->min_vddc_in_table = 0; pi 2041 drivers/gpu/drm/radeon/cypress_dpm.c pi->max_vddc_in_table = 0; pi 2059 drivers/gpu/drm/radeon/cypress_dpm.c pi->ref_div = dividers.ref_div + 1; pi 2061 drivers/gpu/drm/radeon/cypress_dpm.c pi->ref_div = R600_REFERENCEDIVIDER_DFLT; pi 2063 drivers/gpu/drm/radeon/cypress_dpm.c pi->mclk_strobe_mode_threshold = 40000; pi 2064 drivers/gpu/drm/radeon/cypress_dpm.c pi->mclk_edc_enable_threshold = 40000; pi 2067 drivers/gpu/drm/radeon/cypress_dpm.c pi->rlp = RV770_RLP_DFLT; pi 2068 drivers/gpu/drm/radeon/cypress_dpm.c pi->rmp = RV770_RMP_DFLT; pi 2069 drivers/gpu/drm/radeon/cypress_dpm.c pi->lhp = RV770_LHP_DFLT; pi 2070 drivers/gpu/drm/radeon/cypress_dpm.c pi->lmp = RV770_LMP_DFLT; pi 2072 drivers/gpu/drm/radeon/cypress_dpm.c pi->voltage_control = pi 2075 drivers/gpu/drm/radeon/cypress_dpm.c pi->mvdd_control = pi 2083 drivers/gpu/drm/radeon/cypress_dpm.c pi->asi = RV770_ASI_DFLT; pi 2084 drivers/gpu/drm/radeon/cypress_dpm.c pi->pasi = CYPRESS_HASI_DFLT; pi 2085 drivers/gpu/drm/radeon/cypress_dpm.c pi->vrc = CYPRESS_VRC_DFLT; pi 2087 drivers/gpu/drm/radeon/cypress_dpm.c pi->power_gating = false; pi 2091 drivers/gpu/drm/radeon/cypress_dpm.c pi->gfx_clock_gating = false; pi 2093 drivers/gpu/drm/radeon/cypress_dpm.c pi->gfx_clock_gating = true; pi 2095 drivers/gpu/drm/radeon/cypress_dpm.c pi->mg_clock_gating = true; pi 2096 drivers/gpu/drm/radeon/cypress_dpm.c pi->mgcgtssm = true; pi 2100 drivers/gpu/drm/radeon/cypress_dpm.c pi->dynamic_pcie_gen2 = true; pi 2103 drivers/gpu/drm/radeon/cypress_dpm.c pi->thermal_protection = true; pi 2105 drivers/gpu/drm/radeon/cypress_dpm.c pi->thermal_protection = false; pi 2107 drivers/gpu/drm/radeon/cypress_dpm.c pi->display_gap = true; pi 2110 drivers/gpu/drm/radeon/cypress_dpm.c pi->dcodt = true; pi 2112 drivers/gpu/drm/radeon/cypress_dpm.c pi->dcodt = false; pi 2114 drivers/gpu/drm/radeon/cypress_dpm.c pi->ulps = true; pi 2136 drivers/gpu/drm/radeon/cypress_dpm.c pi->mclk_stutter_mode_threshold = 0; pi 2138 drivers/gpu/drm/radeon/cypress_dpm.c pi->sram_end = SMC_RAM_END; pi 2156 drivers/gpu/drm/radeon/cypress_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 2159 drivers/gpu/drm/radeon/cypress_dpm.c u32 switch_limit = pi->mem_gddr5 ? 450 : 0; pi 253 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = rdev->pm.dpm.priv; pi 255 drivers/gpu/drm/radeon/kv_dpm.c return pi; pi 335 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 338 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_sq_ramping) { pi 347 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_db_ramping) { pi 356 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_td_ramping) { pi 365 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_tcp_ramping) { pi 377 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 380 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_sq_ramping || pi 381 drivers/gpu/drm/radeon/kv_dpm.c pi->caps_db_ramping || pi 382 drivers/gpu/drm/radeon/kv_dpm.c pi->caps_td_ramping || pi 383 drivers/gpu/drm/radeon/kv_dpm.c pi->caps_tcp_ramping) { pi 405 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 407 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_cac) { pi 437 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 440 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_cac) { pi 444 drivers/gpu/drm/radeon/kv_dpm.c pi->cac_enabled = false; pi 446 drivers/gpu/drm/radeon/kv_dpm.c pi->cac_enabled = true; pi 447 drivers/gpu/drm/radeon/kv_dpm.c } else if (pi->cac_enabled) { pi 449 drivers/gpu/drm/radeon/kv_dpm.c pi->cac_enabled = false; pi 458 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 464 drivers/gpu/drm/radeon/kv_dpm.c &tmp, pi->sram_end); pi 467 drivers/gpu/drm/radeon/kv_dpm.c pi->dpm_table_start = tmp; pi 471 drivers/gpu/drm/radeon/kv_dpm.c &tmp, pi->sram_end); pi 474 drivers/gpu/drm/radeon/kv_dpm.c pi->soft_regs_start = tmp; pi 481 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 484 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_voltage_change_enable = 1; pi 487 drivers/gpu/drm/radeon/kv_dpm.c pi->dpm_table_start + pi 489 drivers/gpu/drm/radeon/kv_dpm.c &pi->graphics_voltage_change_enable, pi 490 drivers/gpu/drm/radeon/kv_dpm.c sizeof(u8), pi->sram_end); pi 497 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 500 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_interval = 1; pi 503 drivers/gpu/drm/radeon/kv_dpm.c pi->dpm_table_start + pi 505 drivers/gpu/drm/radeon/kv_dpm.c &pi->graphics_interval, pi 506 drivers/gpu/drm/radeon/kv_dpm.c sizeof(u8), pi->sram_end); pi 513 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 517 drivers/gpu/drm/radeon/kv_dpm.c pi->dpm_table_start + pi 519 drivers/gpu/drm/radeon/kv_dpm.c &pi->graphics_boot_level, pi 520 drivers/gpu/drm/radeon/kv_dpm.c sizeof(u8), pi->sram_end); pi 538 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 547 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[index].SclkDid = (u8)dividers.post_div; pi 548 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[index].SclkFrequency = cpu_to_be32(sclk); pi 608 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 610 drivers/gpu/drm/radeon/kv_dpm.c &pi->sys_info.vid_mapping_table, pi 619 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 621 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[index].VoltageDownH = (u8)pi->voltage_drop_t; pi 622 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[index].MinVddNb = pi 630 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 632 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[index].AT = cpu_to_be16((u16)at); pi 640 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 642 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[index].EnabledForActivity = enable ? 1 : 0; pi 700 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 704 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_sclk_throttle_low_notification) { pi 705 drivers/gpu/drm/radeon/kv_dpm.c low_sclk_interrupt_t = cpu_to_be32(pi->low_sclk_interrupt_t); pi 708 drivers/gpu/drm/radeon/kv_dpm.c pi->dpm_table_start + pi 711 drivers/gpu/drm/radeon/kv_dpm.c sizeof(u32), pi->sram_end); pi 718 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 724 drivers/gpu/drm/radeon/kv_dpm.c for (i = pi->graphics_dpm_level_count - 1; i > 0; i--) { pi 725 drivers/gpu/drm/radeon/kv_dpm.c if (table->entries[i].clk == pi->boot_pl.sclk) pi 729 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_boot_level = (u8)i; pi 733 drivers/gpu/drm/radeon/kv_dpm.c &pi->sys_info.sclk_voltage_mapping_table; pi 738 drivers/gpu/drm/radeon/kv_dpm.c for (i = pi->graphics_dpm_level_count - 1; i > 0; i--) { pi 739 drivers/gpu/drm/radeon/kv_dpm.c if (table->entries[i].sclk_frequency == pi->boot_pl.sclk) pi 743 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_boot_level = (u8)i; pi 751 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 754 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_therm_throttle_enable = 1; pi 757 drivers/gpu/drm/radeon/kv_dpm.c pi->dpm_table_start + pi 759 drivers/gpu/drm/radeon/kv_dpm.c &pi->graphics_therm_throttle_enable, pi 760 drivers/gpu/drm/radeon/kv_dpm.c sizeof(u8), pi->sram_end); pi 767 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 771 drivers/gpu/drm/radeon/kv_dpm.c pi->dpm_table_start + pi 773 drivers/gpu/drm/radeon/kv_dpm.c (u8 *)&pi->graphics_level, pi 775 drivers/gpu/drm/radeon/kv_dpm.c pi->sram_end); pi 781 drivers/gpu/drm/radeon/kv_dpm.c pi->dpm_table_start + pi 783 drivers/gpu/drm/radeon/kv_dpm.c &pi->graphics_dpm_level_count, pi 784 drivers/gpu/drm/radeon/kv_dpm.c sizeof(u8), pi->sram_end); pi 796 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 799 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_enable_dfs_bypass) { pi 821 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 831 drivers/gpu/drm/radeon/kv_dpm.c pi->uvd_level_count = 0; pi 833 drivers/gpu/drm/radeon/kv_dpm.c if (pi->high_voltage_t && pi 834 drivers/gpu/drm/radeon/kv_dpm.c (pi->high_voltage_t < table->entries[i].v)) pi 837 drivers/gpu/drm/radeon/kv_dpm.c pi->uvd_level[i].VclkFrequency = cpu_to_be32(table->entries[i].vclk); pi 838 drivers/gpu/drm/radeon/kv_dpm.c pi->uvd_level[i].DclkFrequency = cpu_to_be32(table->entries[i].dclk); pi 839 drivers/gpu/drm/radeon/kv_dpm.c pi->uvd_level[i].MinVddNb = cpu_to_be16(table->entries[i].v); pi 841 drivers/gpu/drm/radeon/kv_dpm.c pi->uvd_level[i].VClkBypassCntl = pi 843 drivers/gpu/drm/radeon/kv_dpm.c pi->uvd_level[i].DClkBypassCntl = pi 850 drivers/gpu/drm/radeon/kv_dpm.c pi->uvd_level[i].VclkDivider = (u8)dividers.post_div; pi 856 drivers/gpu/drm/radeon/kv_dpm.c pi->uvd_level[i].DclkDivider = (u8)dividers.post_div; pi 858 drivers/gpu/drm/radeon/kv_dpm.c pi->uvd_level_count++; pi 862 drivers/gpu/drm/radeon/kv_dpm.c pi->dpm_table_start + pi 864 drivers/gpu/drm/radeon/kv_dpm.c (u8 *)&pi->uvd_level_count, pi 865 drivers/gpu/drm/radeon/kv_dpm.c sizeof(u8), pi->sram_end); pi 869 drivers/gpu/drm/radeon/kv_dpm.c pi->uvd_interval = 1; pi 872 drivers/gpu/drm/radeon/kv_dpm.c pi->dpm_table_start + pi 874 drivers/gpu/drm/radeon/kv_dpm.c &pi->uvd_interval, pi 875 drivers/gpu/drm/radeon/kv_dpm.c sizeof(u8), pi->sram_end); pi 880 drivers/gpu/drm/radeon/kv_dpm.c pi->dpm_table_start + pi 882 drivers/gpu/drm/radeon/kv_dpm.c (u8 *)&pi->uvd_level, pi 884 drivers/gpu/drm/radeon/kv_dpm.c pi->sram_end); pi 892 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 902 drivers/gpu/drm/radeon/kv_dpm.c pi->vce_level_count = 0; pi 904 drivers/gpu/drm/radeon/kv_dpm.c if (pi->high_voltage_t && pi 905 drivers/gpu/drm/radeon/kv_dpm.c pi->high_voltage_t < table->entries[i].v) pi 908 drivers/gpu/drm/radeon/kv_dpm.c pi->vce_level[i].Frequency = cpu_to_be32(table->entries[i].evclk); pi 909 drivers/gpu/drm/radeon/kv_dpm.c pi->vce_level[i].MinVoltage = cpu_to_be16(table->entries[i].v); pi 911 drivers/gpu/drm/radeon/kv_dpm.c pi->vce_level[i].ClkBypassCntl = pi 918 drivers/gpu/drm/radeon/kv_dpm.c pi->vce_level[i].Divider = (u8)dividers.post_div; pi 920 drivers/gpu/drm/radeon/kv_dpm.c pi->vce_level_count++; pi 924 drivers/gpu/drm/radeon/kv_dpm.c pi->dpm_table_start + pi 926 drivers/gpu/drm/radeon/kv_dpm.c (u8 *)&pi->vce_level_count, pi 928 drivers/gpu/drm/radeon/kv_dpm.c pi->sram_end); pi 932 drivers/gpu/drm/radeon/kv_dpm.c pi->vce_interval = 1; pi 935 drivers/gpu/drm/radeon/kv_dpm.c pi->dpm_table_start + pi 937 drivers/gpu/drm/radeon/kv_dpm.c (u8 *)&pi->vce_interval, pi 939 drivers/gpu/drm/radeon/kv_dpm.c pi->sram_end); pi 944 drivers/gpu/drm/radeon/kv_dpm.c pi->dpm_table_start + pi 946 drivers/gpu/drm/radeon/kv_dpm.c (u8 *)&pi->vce_level, pi 948 drivers/gpu/drm/radeon/kv_dpm.c pi->sram_end); pi 955 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 965 drivers/gpu/drm/radeon/kv_dpm.c pi->samu_level_count = 0; pi 967 drivers/gpu/drm/radeon/kv_dpm.c if (pi->high_voltage_t && pi 968 drivers/gpu/drm/radeon/kv_dpm.c pi->high_voltage_t < table->entries[i].v) pi 971 drivers/gpu/drm/radeon/kv_dpm.c pi->samu_level[i].Frequency = cpu_to_be32(table->entries[i].clk); pi 972 drivers/gpu/drm/radeon/kv_dpm.c pi->samu_level[i].MinVoltage = cpu_to_be16(table->entries[i].v); pi 974 drivers/gpu/drm/radeon/kv_dpm.c pi->samu_level[i].ClkBypassCntl = pi 981 drivers/gpu/drm/radeon/kv_dpm.c pi->samu_level[i].Divider = (u8)dividers.post_div; pi 983 drivers/gpu/drm/radeon/kv_dpm.c pi->samu_level_count++; pi 987 drivers/gpu/drm/radeon/kv_dpm.c pi->dpm_table_start + pi 989 drivers/gpu/drm/radeon/kv_dpm.c (u8 *)&pi->samu_level_count, pi 991 drivers/gpu/drm/radeon/kv_dpm.c pi->sram_end); pi 995 drivers/gpu/drm/radeon/kv_dpm.c pi->samu_interval = 1; pi 998 drivers/gpu/drm/radeon/kv_dpm.c pi->dpm_table_start + pi 1000 drivers/gpu/drm/radeon/kv_dpm.c (u8 *)&pi->samu_interval, pi 1002 drivers/gpu/drm/radeon/kv_dpm.c pi->sram_end); pi 1007 drivers/gpu/drm/radeon/kv_dpm.c pi->dpm_table_start + pi 1009 drivers/gpu/drm/radeon/kv_dpm.c (u8 *)&pi->samu_level, pi 1011 drivers/gpu/drm/radeon/kv_dpm.c pi->sram_end); pi 1021 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1031 drivers/gpu/drm/radeon/kv_dpm.c pi->acp_level_count = 0; pi 1033 drivers/gpu/drm/radeon/kv_dpm.c pi->acp_level[i].Frequency = cpu_to_be32(table->entries[i].clk); pi 1034 drivers/gpu/drm/radeon/kv_dpm.c pi->acp_level[i].MinVoltage = cpu_to_be16(table->entries[i].v); pi 1040 drivers/gpu/drm/radeon/kv_dpm.c pi->acp_level[i].Divider = (u8)dividers.post_div; pi 1042 drivers/gpu/drm/radeon/kv_dpm.c pi->acp_level_count++; pi 1046 drivers/gpu/drm/radeon/kv_dpm.c pi->dpm_table_start + pi 1048 drivers/gpu/drm/radeon/kv_dpm.c (u8 *)&pi->acp_level_count, pi 1050 drivers/gpu/drm/radeon/kv_dpm.c pi->sram_end); pi 1054 drivers/gpu/drm/radeon/kv_dpm.c pi->acp_interval = 1; pi 1057 drivers/gpu/drm/radeon/kv_dpm.c pi->dpm_table_start + pi 1059 drivers/gpu/drm/radeon/kv_dpm.c (u8 *)&pi->acp_interval, pi 1061 drivers/gpu/drm/radeon/kv_dpm.c pi->sram_end); pi 1066 drivers/gpu/drm/radeon/kv_dpm.c pi->dpm_table_start + pi 1068 drivers/gpu/drm/radeon/kv_dpm.c (u8 *)&pi->acp_level, pi 1070 drivers/gpu/drm/radeon/kv_dpm.c pi->sram_end); pi 1079 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1085 drivers/gpu/drm/radeon/kv_dpm.c for (i = 0; i < pi->graphics_dpm_level_count; i++) { pi 1086 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_enable_dfs_bypass) { pi 1088 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 3; pi 1090 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 2; pi 1092 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 7; pi 1094 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 6; pi 1096 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 8; pi 1098 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 0; pi 1100 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 0; pi 1105 drivers/gpu/drm/radeon/kv_dpm.c &pi->sys_info.sclk_voltage_mapping_table; pi 1106 drivers/gpu/drm/radeon/kv_dpm.c for (i = 0; i < pi->graphics_dpm_level_count; i++) { pi 1107 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_enable_dfs_bypass) { pi 1109 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 3; pi 1111 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 2; pi 1113 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 7; pi 1115 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 6; pi 1117 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 8; pi 1119 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 0; pi 1121 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[i].ClkBypassCntl = 0; pi 1135 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1137 drivers/gpu/drm/radeon/kv_dpm.c pi->acp_boot_level = 0xff; pi 1144 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1146 drivers/gpu/drm/radeon/kv_dpm.c pi->current_rps = *rps; pi 1147 drivers/gpu/drm/radeon/kv_dpm.c pi->current_ps = *new_ps; pi 1148 drivers/gpu/drm/radeon/kv_dpm.c pi->current_rps.ps_priv = &pi->current_ps; pi 1155 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1157 drivers/gpu/drm/radeon/kv_dpm.c pi->requested_rps = *rps; pi 1158 drivers/gpu/drm/radeon/kv_dpm.c pi->requested_ps = *new_ps; pi 1159 drivers/gpu/drm/radeon/kv_dpm.c pi->requested_rps.ps_priv = &pi->requested_ps; pi 1164 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1167 drivers/gpu/drm/radeon/kv_dpm.c if (pi->bapm_enable) { pi 1189 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1235 drivers/gpu/drm/radeon/kv_dpm.c if (pi->enable_auto_thermal_throttling) { pi 1338 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1340 drivers/gpu/drm/radeon/kv_dpm.c return kv_copy_bytes_to_smc(rdev, pi->soft_regs_start + reg_offset, pi 1341 drivers/gpu/drm/radeon/kv_dpm.c (u8 *)&value, sizeof(u16), pi->sram_end); pi 1347 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1349 drivers/gpu/drm/radeon/kv_dpm.c return kv_read_smc_sram_dword(rdev, pi->soft_regs_start + reg_offset, pi 1350 drivers/gpu/drm/radeon/kv_dpm.c value, pi->sram_end); pi 1356 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1358 drivers/gpu/drm/radeon/kv_dpm.c pi->low_sclk_interrupt_t = 0; pi 1363 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1366 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_fps) { pi 1370 drivers/gpu/drm/radeon/kv_dpm.c pi->fps_high_t = cpu_to_be16(tmp); pi 1372 drivers/gpu/drm/radeon/kv_dpm.c pi->dpm_table_start + pi 1374 drivers/gpu/drm/radeon/kv_dpm.c (u8 *)&pi->fps_high_t, pi 1375 drivers/gpu/drm/radeon/kv_dpm.c sizeof(u16), pi->sram_end); pi 1378 drivers/gpu/drm/radeon/kv_dpm.c pi->fps_low_t = cpu_to_be16(tmp); pi 1381 drivers/gpu/drm/radeon/kv_dpm.c pi->dpm_table_start + pi 1383 drivers/gpu/drm/radeon/kv_dpm.c (u8 *)&pi->fps_low_t, pi 1384 drivers/gpu/drm/radeon/kv_dpm.c sizeof(u16), pi->sram_end); pi 1392 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1394 drivers/gpu/drm/radeon/kv_dpm.c pi->uvd_power_gated = false; pi 1395 drivers/gpu/drm/radeon/kv_dpm.c pi->vce_power_gated = false; pi 1396 drivers/gpu/drm/radeon/kv_dpm.c pi->samu_power_gated = false; pi 1397 drivers/gpu/drm/radeon/kv_dpm.c pi->acp_power_gated = false; pi 1427 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1435 drivers/gpu/drm/radeon/kv_dpm.c pi->uvd_boot_level = table->count - 1; pi 1437 drivers/gpu/drm/radeon/kv_dpm.c pi->uvd_boot_level = 0; pi 1439 drivers/gpu/drm/radeon/kv_dpm.c if (!pi->caps_uvd_dpm || pi->caps_stable_p_state) { pi 1440 drivers/gpu/drm/radeon/kv_dpm.c mask = 1 << pi->uvd_boot_level; pi 1446 drivers/gpu/drm/radeon/kv_dpm.c pi->dpm_table_start + pi 1448 drivers/gpu/drm/radeon/kv_dpm.c (uint8_t *)&pi->uvd_boot_level, pi 1449 drivers/gpu/drm/radeon/kv_dpm.c sizeof(u8), pi->sram_end); pi 1479 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1488 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_stable_p_state) pi 1489 drivers/gpu/drm/radeon/kv_dpm.c pi->vce_boot_level = table->count - 1; pi 1491 drivers/gpu/drm/radeon/kv_dpm.c pi->vce_boot_level = kv_get_vce_boot_level(rdev, radeon_new_state->evclk); pi 1494 drivers/gpu/drm/radeon/kv_dpm.c pi->dpm_table_start + pi 1496 drivers/gpu/drm/radeon/kv_dpm.c (u8 *)&pi->vce_boot_level, pi 1498 drivers/gpu/drm/radeon/kv_dpm.c pi->sram_end); pi 1502 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_stable_p_state) pi 1505 drivers/gpu/drm/radeon/kv_dpm.c (1 << pi->vce_boot_level)); pi 1520 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1526 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_stable_p_state) pi 1527 drivers/gpu/drm/radeon/kv_dpm.c pi->samu_boot_level = table->count - 1; pi 1529 drivers/gpu/drm/radeon/kv_dpm.c pi->samu_boot_level = 0; pi 1532 drivers/gpu/drm/radeon/kv_dpm.c pi->dpm_table_start + pi 1534 drivers/gpu/drm/radeon/kv_dpm.c (u8 *)&pi->samu_boot_level, pi 1536 drivers/gpu/drm/radeon/kv_dpm.c pi->sram_end); pi 1540 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_stable_p_state) pi 1543 drivers/gpu/drm/radeon/kv_dpm.c (1 << pi->samu_boot_level)); pi 1568 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1571 drivers/gpu/drm/radeon/kv_dpm.c if (!pi->caps_stable_p_state) { pi 1573 drivers/gpu/drm/radeon/kv_dpm.c if (acp_boot_level != pi->acp_boot_level) { pi 1574 drivers/gpu/drm/radeon/kv_dpm.c pi->acp_boot_level = acp_boot_level; pi 1577 drivers/gpu/drm/radeon/kv_dpm.c (1 << pi->acp_boot_level)); pi 1584 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1590 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_stable_p_state) pi 1591 drivers/gpu/drm/radeon/kv_dpm.c pi->acp_boot_level = table->count - 1; pi 1593 drivers/gpu/drm/radeon/kv_dpm.c pi->acp_boot_level = kv_get_acp_boot_level(rdev); pi 1596 drivers/gpu/drm/radeon/kv_dpm.c pi->dpm_table_start + pi 1598 drivers/gpu/drm/radeon/kv_dpm.c (u8 *)&pi->acp_boot_level, pi 1600 drivers/gpu/drm/radeon/kv_dpm.c pi->sram_end); pi 1604 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_stable_p_state) pi 1607 drivers/gpu/drm/radeon/kv_dpm.c (1 << pi->acp_boot_level)); pi 1615 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1617 drivers/gpu/drm/radeon/kv_dpm.c if (pi->uvd_power_gated == gate) pi 1620 drivers/gpu/drm/radeon/kv_dpm.c pi->uvd_power_gated = gate; pi 1623 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_uvd_pg) { pi 1628 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_uvd_pg) pi 1631 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_uvd_pg) { pi 1643 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1645 drivers/gpu/drm/radeon/kv_dpm.c if (pi->vce_power_gated == gate) pi 1648 drivers/gpu/drm/radeon/kv_dpm.c pi->vce_power_gated = gate; pi 1651 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_vce_pg) { pi 1656 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_vce_pg) { pi 1666 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1668 drivers/gpu/drm/radeon/kv_dpm.c if (pi->samu_power_gated == gate) pi 1671 drivers/gpu/drm/radeon/kv_dpm.c pi->samu_power_gated = gate; pi 1675 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_samu_pg) pi 1678 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_samu_pg) pi 1686 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1688 drivers/gpu/drm/radeon/kv_dpm.c if (pi->acp_power_gated == gate) pi 1694 drivers/gpu/drm/radeon/kv_dpm.c pi->acp_power_gated = gate; pi 1698 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_acp_pg) pi 1701 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_acp_pg) pi 1711 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1717 drivers/gpu/drm/radeon/kv_dpm.c for (i = 0; i < pi->graphics_dpm_level_count; i++) { pi 1719 drivers/gpu/drm/radeon/kv_dpm.c (i == (pi->graphics_dpm_level_count - 1))) { pi 1720 drivers/gpu/drm/radeon/kv_dpm.c pi->lowest_valid = i; pi 1725 drivers/gpu/drm/radeon/kv_dpm.c for (i = pi->graphics_dpm_level_count - 1; i > 0; i--) { pi 1729 drivers/gpu/drm/radeon/kv_dpm.c pi->highest_valid = i; pi 1731 drivers/gpu/drm/radeon/kv_dpm.c if (pi->lowest_valid > pi->highest_valid) { pi 1732 drivers/gpu/drm/radeon/kv_dpm.c if ((new_ps->levels[0].sclk - table->entries[pi->highest_valid].clk) > pi 1733 drivers/gpu/drm/radeon/kv_dpm.c (table->entries[pi->lowest_valid].clk - new_ps->levels[new_ps->num_levels - 1].sclk)) pi 1734 drivers/gpu/drm/radeon/kv_dpm.c pi->highest_valid = pi->lowest_valid; pi 1736 drivers/gpu/drm/radeon/kv_dpm.c pi->lowest_valid = pi->highest_valid; pi 1740 drivers/gpu/drm/radeon/kv_dpm.c &pi->sys_info.sclk_voltage_mapping_table; pi 1742 drivers/gpu/drm/radeon/kv_dpm.c for (i = 0; i < (int)pi->graphics_dpm_level_count; i++) { pi 1744 drivers/gpu/drm/radeon/kv_dpm.c i == (int)(pi->graphics_dpm_level_count - 1)) { pi 1745 drivers/gpu/drm/radeon/kv_dpm.c pi->lowest_valid = i; pi 1750 drivers/gpu/drm/radeon/kv_dpm.c for (i = pi->graphics_dpm_level_count - 1; i > 0; i--) { pi 1755 drivers/gpu/drm/radeon/kv_dpm.c pi->highest_valid = i; pi 1757 drivers/gpu/drm/radeon/kv_dpm.c if (pi->lowest_valid > pi->highest_valid) { pi 1759 drivers/gpu/drm/radeon/kv_dpm.c table->entries[pi->highest_valid].sclk_frequency) > pi 1760 drivers/gpu/drm/radeon/kv_dpm.c (table->entries[pi->lowest_valid].sclk_frequency - pi 1762 drivers/gpu/drm/radeon/kv_dpm.c pi->highest_valid = pi->lowest_valid; pi 1764 drivers/gpu/drm/radeon/kv_dpm.c pi->lowest_valid = pi->highest_valid; pi 1773 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1777 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_enable_dfs_bypass) { pi 1779 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[pi->graphics_boot_level].ClkBypassCntl : 0; pi 1781 drivers/gpu/drm/radeon/kv_dpm.c (pi->dpm_table_start + pi 1783 drivers/gpu/drm/radeon/kv_dpm.c (pi->graphics_boot_level * sizeof(SMU7_Fusion_GraphicsLevel)) + pi 1786 drivers/gpu/drm/radeon/kv_dpm.c sizeof(u8), pi->sram_end); pi 1795 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1799 drivers/gpu/drm/radeon/kv_dpm.c if (pi->enable_nb_dpm && !pi->nb_dpm_enabled) { pi 1802 drivers/gpu/drm/radeon/kv_dpm.c pi->nb_dpm_enabled = true; pi 1805 drivers/gpu/drm/radeon/kv_dpm.c if (pi->enable_nb_dpm && pi->nb_dpm_enabled) { pi 1808 drivers/gpu/drm/radeon/kv_dpm.c pi->nb_dpm_enabled = false; pi 1841 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1848 drivers/gpu/drm/radeon/kv_dpm.c &pi->requested_rps, pi 1849 drivers/gpu/drm/radeon/kv_dpm.c &pi->current_rps); pi 1856 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1857 drivers/gpu/drm/radeon/kv_dpm.c struct radeon_ps *new_ps = &pi->requested_rps; pi 1858 drivers/gpu/drm/radeon/kv_dpm.c struct radeon_ps *old_ps = &pi->current_rps; pi 1861 drivers/gpu/drm/radeon/kv_dpm.c if (pi->bapm_enable) { pi 1870 drivers/gpu/drm/radeon/kv_dpm.c if (pi->enable_dpm) { pi 1899 drivers/gpu/drm/radeon/kv_dpm.c if (pi->enable_dpm) { pi 1930 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1931 drivers/gpu/drm/radeon/kv_dpm.c struct radeon_ps *new_ps = &pi->requested_rps; pi 1946 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1961 drivers/gpu/drm/radeon/kv_dpm.c kv_set_enabled_level(rdev, pi->graphics_boot_level); pi 1971 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 1973 drivers/gpu/drm/radeon/kv_dpm.c if (pi->sys_info.sclk_voltage_mapping_table.num_max_dpm_entries > 0) { pi 1974 drivers/gpu/drm/radeon/kv_dpm.c int idx = pi->sys_info.sclk_voltage_mapping_table.num_max_dpm_entries - 1; pi 1976 drivers/gpu/drm/radeon/kv_dpm.c pi->sys_info.sclk_voltage_mapping_table.entries[idx].sclk_frequency; pi 1979 drivers/gpu/drm/radeon/kv_dpm.c pi->sys_info.sclk_voltage_mapping_table.entries[idx].vid_2bit); pi 1982 drivers/gpu/drm/radeon/kv_dpm.c table->mclk = pi->sys_info.nbp_memory_clock[0]; pi 2029 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 2031 drivers/gpu/drm/radeon/kv_dpm.c pi->boot_pl.sclk = pi->sys_info.bootup_sclk; pi 2032 drivers/gpu/drm/radeon/kv_dpm.c pi->boot_pl.vddc_index = pi->sys_info.bootup_nb_voltage_index; pi 2033 drivers/gpu/drm/radeon/kv_dpm.c pi->boot_pl.ds_divider_index = 0; pi 2034 drivers/gpu/drm/radeon/kv_dpm.c pi->boot_pl.ss_divider_index = 0; pi 2035 drivers/gpu/drm/radeon/kv_dpm.c pi->boot_pl.allow_gnb_slow = 1; pi 2036 drivers/gpu/drm/radeon/kv_dpm.c pi->boot_pl.force_nbp_state = 0; pi 2037 drivers/gpu/drm/radeon/kv_dpm.c pi->boot_pl.display_wm = 0; pi 2038 drivers/gpu/drm/radeon/kv_dpm.c pi->boot_pl.vce_wm = 0; pi 2084 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 2093 drivers/gpu/drm/radeon/kv_dpm.c if (!pi->caps_sclk_ds) pi 2107 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 2114 drivers/gpu/drm/radeon/kv_dpm.c if (pi->high_voltage_t && pi 2116 drivers/gpu/drm/radeon/kv_dpm.c pi->high_voltage_t)) { pi 2123 drivers/gpu/drm/radeon/kv_dpm.c &pi->sys_info.sclk_voltage_mapping_table; pi 2126 drivers/gpu/drm/radeon/kv_dpm.c if (pi->high_voltage_t && pi 2128 drivers/gpu/drm/radeon/kv_dpm.c pi->high_voltage_t)) { pi 2144 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 2166 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_stable_p_state) { pi 2196 drivers/gpu/drm/radeon/kv_dpm.c if (pi->high_voltage_t && pi 2197 drivers/gpu/drm/radeon/kv_dpm.c (pi->high_voltage_t < pi 2205 drivers/gpu/drm/radeon/kv_dpm.c &pi->sys_info.sclk_voltage_mapping_table; pi 2208 drivers/gpu/drm/radeon/kv_dpm.c if (pi->high_voltage_t && pi 2209 drivers/gpu/drm/radeon/kv_dpm.c (pi->high_voltage_t < pi 2217 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_stable_p_state) { pi 2223 drivers/gpu/drm/radeon/kv_dpm.c pi->video_start = new_rps->dclk || new_rps->vclk || pi 2228 drivers/gpu/drm/radeon/kv_dpm.c pi->battery_state = true; pi 2230 drivers/gpu/drm/radeon/kv_dpm.c pi->battery_state = false; pi 2243 drivers/gpu/drm/radeon/kv_dpm.c if (pi->sys_info.nb_dpm_enable) { pi 2244 drivers/gpu/drm/radeon/kv_dpm.c force_high = (mclk >= pi->sys_info.nbp_memory_clock[3]) || pi 2245 drivers/gpu/drm/radeon/kv_dpm.c pi->video_start || (rdev->pm.dpm.new_active_crtc_count >= 3) || pi 2246 drivers/gpu/drm/radeon/kv_dpm.c pi->disable_nb_ps3_in_battery; pi 2258 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 2260 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[index].EnabledForThrottle = enable ? 1 : 0; pi 2265 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 2269 drivers/gpu/drm/radeon/kv_dpm.c if (pi->lowest_valid > pi->highest_valid) pi 2272 drivers/gpu/drm/radeon/kv_dpm.c for (i = pi->lowest_valid; i <= pi->highest_valid; i++) { pi 2273 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[i].DeepSleepDivId = pi 2275 drivers/gpu/drm/radeon/kv_dpm.c be32_to_cpu(pi->graphics_level[i].SclkFrequency), pi 2283 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 2290 drivers/gpu/drm/radeon/kv_dpm.c if (pi->lowest_valid > pi->highest_valid) pi 2294 drivers/gpu/drm/radeon/kv_dpm.c for (i = pi->lowest_valid; i <= pi->highest_valid; i++) { pi 2295 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[i].GnbSlow = 1; pi 2296 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[i].ForceNbPs1 = 0; pi 2297 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[i].UpH = 0; pi 2300 drivers/gpu/drm/radeon/kv_dpm.c if (!pi->sys_info.nb_dpm_enable) pi 2303 drivers/gpu/drm/radeon/kv_dpm.c force_high = ((mclk >= pi->sys_info.nbp_memory_clock[3]) || pi 2304 drivers/gpu/drm/radeon/kv_dpm.c (rdev->pm.dpm.new_active_crtc_count >= 3) || pi->video_start); pi 2307 drivers/gpu/drm/radeon/kv_dpm.c for (i = pi->lowest_valid; i <= pi->highest_valid; i++) pi 2308 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[i].GnbSlow = 0; pi 2310 drivers/gpu/drm/radeon/kv_dpm.c if (pi->battery_state) pi 2311 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[0].ForceNbPs1 = 1; pi 2313 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[1].GnbSlow = 0; pi 2314 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[2].GnbSlow = 0; pi 2315 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[3].GnbSlow = 0; pi 2316 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[4].GnbSlow = 0; pi 2319 drivers/gpu/drm/radeon/kv_dpm.c for (i = pi->lowest_valid; i <= pi->highest_valid; i++) { pi 2320 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[i].GnbSlow = 1; pi 2321 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[i].ForceNbPs1 = 0; pi 2322 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[i].UpH = 0; pi 2325 drivers/gpu/drm/radeon/kv_dpm.c if (pi->sys_info.nb_dpm_enable && pi->battery_state) { pi 2326 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[pi->lowest_valid].UpH = 0x28; pi 2327 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[pi->lowest_valid].GnbSlow = 0; pi 2328 drivers/gpu/drm/radeon/kv_dpm.c if (pi->lowest_valid != pi->highest_valid) pi 2329 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[pi->lowest_valid].ForceNbPs1 = 1; pi 2337 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 2340 drivers/gpu/drm/radeon/kv_dpm.c if (pi->lowest_valid > pi->highest_valid) pi 2343 drivers/gpu/drm/radeon/kv_dpm.c for (i = pi->lowest_valid; i <= pi->highest_valid; i++) pi 2344 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_level[i].DisplayWatermark = (i == pi->highest_valid) ? 1 : 0; pi 2351 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 2359 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_dpm_level_count = 0; pi 2361 drivers/gpu/drm/radeon/kv_dpm.c if (pi->high_voltage_t && pi 2362 drivers/gpu/drm/radeon/kv_dpm.c (pi->high_voltage_t < pi 2368 drivers/gpu/drm/radeon/kv_dpm.c &pi->sys_info.vid_mapping_table, pi 2371 drivers/gpu/drm/radeon/kv_dpm.c kv_set_at(rdev, i, pi->at[i]); pi 2373 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_dpm_level_count++; pi 2377 drivers/gpu/drm/radeon/kv_dpm.c &pi->sys_info.sclk_voltage_mapping_table; pi 2379 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_dpm_level_count = 0; pi 2381 drivers/gpu/drm/radeon/kv_dpm.c if (pi->high_voltage_t && pi 2382 drivers/gpu/drm/radeon/kv_dpm.c pi->high_voltage_t < pi 2388 drivers/gpu/drm/radeon/kv_dpm.c kv_set_at(rdev, i, pi->at[i]); pi 2390 drivers/gpu/drm/radeon/kv_dpm.c pi->graphics_dpm_level_count++; pi 2400 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 2404 drivers/gpu/drm/radeon/kv_dpm.c if (i >= pi->lowest_valid && i <= pi->highest_valid) pi 2420 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 2423 drivers/gpu/drm/radeon/kv_dpm.c for (i = pi->lowest_valid; i <= pi->highest_valid; i++) pi 2435 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 2441 drivers/gpu/drm/radeon/kv_dpm.c if (pi->sys_info.nb_dpm_enable) { pi 2492 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 2509 drivers/gpu/drm/radeon/kv_dpm.c pi->sys_info.bootup_sclk = le32_to_cpu(igp_info->info_8.ulBootUpEngineClock); pi 2510 drivers/gpu/drm/radeon/kv_dpm.c pi->sys_info.bootup_uma_clk = le32_to_cpu(igp_info->info_8.ulBootUpUMAClock); pi 2511 drivers/gpu/drm/radeon/kv_dpm.c pi->sys_info.bootup_nb_voltage_index = pi 2514 drivers/gpu/drm/radeon/kv_dpm.c pi->sys_info.htc_tmp_lmt = 203; pi 2516 drivers/gpu/drm/radeon/kv_dpm.c pi->sys_info.htc_tmp_lmt = igp_info->info_8.ucHtcTmpLmt; pi 2518 drivers/gpu/drm/radeon/kv_dpm.c pi->sys_info.htc_hyst_lmt = 5; pi 2520 drivers/gpu/drm/radeon/kv_dpm.c pi->sys_info.htc_hyst_lmt = igp_info->info_8.ucHtcHystLmt; pi 2521 drivers/gpu/drm/radeon/kv_dpm.c if (pi->sys_info.htc_tmp_lmt <= pi->sys_info.htc_hyst_lmt) { pi 2526 drivers/gpu/drm/radeon/kv_dpm.c pi->sys_info.nb_dpm_enable = true; pi 2528 drivers/gpu/drm/radeon/kv_dpm.c pi->sys_info.nb_dpm_enable = false; pi 2531 drivers/gpu/drm/radeon/kv_dpm.c pi->sys_info.nbp_memory_clock[i] = pi 2533 drivers/gpu/drm/radeon/kv_dpm.c pi->sys_info.nbp_n_clock[i] = pi 2538 drivers/gpu/drm/radeon/kv_dpm.c pi->caps_enable_dfs_bypass = true; pi 2541 drivers/gpu/drm/radeon/kv_dpm.c &pi->sys_info.sclk_voltage_mapping_table, pi 2545 drivers/gpu/drm/radeon/kv_dpm.c &pi->sys_info.vid_mapping_table, pi 2578 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 2581 drivers/gpu/drm/radeon/kv_dpm.c ps->levels[0] = pi->boot_pl; pi 2615 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 2627 drivers/gpu/drm/radeon/kv_dpm.c if (pi->caps_sclk_ds) { pi 2725 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi; pi 2728 drivers/gpu/drm/radeon/kv_dpm.c pi = kzalloc(sizeof(struct kv_power_info), GFP_KERNEL); pi 2729 drivers/gpu/drm/radeon/kv_dpm.c if (pi == NULL) pi 2731 drivers/gpu/drm/radeon/kv_dpm.c rdev->pm.dpm.priv = pi; pi 2742 drivers/gpu/drm/radeon/kv_dpm.c pi->at[i] = TRINITY_AT_DFLT; pi 2744 drivers/gpu/drm/radeon/kv_dpm.c pi->sram_end = SMC_RAM_END; pi 2748 drivers/gpu/drm/radeon/kv_dpm.c pi->enable_nb_dpm = false; pi 2750 drivers/gpu/drm/radeon/kv_dpm.c pi->enable_nb_dpm = true; pi 2752 drivers/gpu/drm/radeon/kv_dpm.c pi->caps_power_containment = true; pi 2753 drivers/gpu/drm/radeon/kv_dpm.c pi->caps_cac = true; pi 2754 drivers/gpu/drm/radeon/kv_dpm.c pi->enable_didt = false; pi 2755 drivers/gpu/drm/radeon/kv_dpm.c if (pi->enable_didt) { pi 2756 drivers/gpu/drm/radeon/kv_dpm.c pi->caps_sq_ramping = true; pi 2757 drivers/gpu/drm/radeon/kv_dpm.c pi->caps_db_ramping = true; pi 2758 drivers/gpu/drm/radeon/kv_dpm.c pi->caps_td_ramping = true; pi 2759 drivers/gpu/drm/radeon/kv_dpm.c pi->caps_tcp_ramping = true; pi 2762 drivers/gpu/drm/radeon/kv_dpm.c pi->caps_sclk_ds = true; pi 2763 drivers/gpu/drm/radeon/kv_dpm.c pi->enable_auto_thermal_throttling = true; pi 2764 drivers/gpu/drm/radeon/kv_dpm.c pi->disable_nb_ps3_in_battery = false; pi 2768 drivers/gpu/drm/radeon/kv_dpm.c pi->bapm_enable = true; pi 2770 drivers/gpu/drm/radeon/kv_dpm.c pi->bapm_enable = false; pi 2772 drivers/gpu/drm/radeon/kv_dpm.c pi->bapm_enable = false; pi 2774 drivers/gpu/drm/radeon/kv_dpm.c pi->bapm_enable = true; pi 2776 drivers/gpu/drm/radeon/kv_dpm.c pi->voltage_drop_t = 0; pi 2777 drivers/gpu/drm/radeon/kv_dpm.c pi->caps_sclk_throttle_low_notification = false; pi 2778 drivers/gpu/drm/radeon/kv_dpm.c pi->caps_fps = false; /* true? */ pi 2779 drivers/gpu/drm/radeon/kv_dpm.c pi->caps_uvd_pg = true; pi 2780 drivers/gpu/drm/radeon/kv_dpm.c pi->caps_uvd_dpm = true; pi 2781 drivers/gpu/drm/radeon/kv_dpm.c pi->caps_vce_pg = false; /* XXX true */ pi 2782 drivers/gpu/drm/radeon/kv_dpm.c pi->caps_samu_pg = false; pi 2783 drivers/gpu/drm/radeon/kv_dpm.c pi->caps_acp_pg = false; pi 2784 drivers/gpu/drm/radeon/kv_dpm.c pi->caps_stable_p_state = false; pi 2797 drivers/gpu/drm/radeon/kv_dpm.c pi->enable_dpm = true; pi 2805 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 2815 drivers/gpu/drm/radeon/kv_dpm.c sclk = be32_to_cpu(pi->graphics_level[current_index].SclkFrequency); pi 2819 drivers/gpu/drm/radeon/kv_dpm.c seq_printf(m, "uvd %sabled\n", pi->uvd_power_gated ? "dis" : "en"); pi 2820 drivers/gpu/drm/radeon/kv_dpm.c seq_printf(m, "vce %sabled\n", pi->vce_power_gated ? "dis" : "en"); pi 2828 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 2837 drivers/gpu/drm/radeon/kv_dpm.c sclk = be32_to_cpu(pi->graphics_level[current_index].SclkFrequency); pi 2844 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 2846 drivers/gpu/drm/radeon/kv_dpm.c return pi->sys_info.bootup_uma_clk; pi 2886 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 2887 drivers/gpu/drm/radeon/kv_dpm.c struct kv_ps *requested_state = kv_get_ps(&pi->requested_rps); pi 2897 drivers/gpu/drm/radeon/kv_dpm.c struct kv_power_info *pi = kv_get_pi(rdev); pi 2899 drivers/gpu/drm/radeon/kv_dpm.c return pi->sys_info.bootup_uma_clk; pi 730 drivers/gpu/drm/radeon/ni_dpm.c struct ni_power_info *pi = rdev->pm.dpm.priv; pi 732 drivers/gpu/drm/radeon/ni_dpm.c return pi; pi 775 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 778 drivers/gpu/drm/radeon/ni_dpm.c u32 switch_limit = pi->mem_gddr5 ? 450 : 0; pi 994 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1000 drivers/gpu/drm/radeon/ni_dpm.c if (pi->max_vddc == 0) pi 1002 drivers/gpu/drm/radeon/ni_dpm.c table->entries[i].v = pi->max_vddc; pi 1101 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1110 drivers/gpu/drm/radeon/ni_dpm.c &tmp, pi->sram_end); pi 1115 drivers/gpu/drm/radeon/ni_dpm.c pi->state_table_start = (u16)tmp; pi 1120 drivers/gpu/drm/radeon/ni_dpm.c &tmp, pi->sram_end); pi 1125 drivers/gpu/drm/radeon/ni_dpm.c pi->soft_regs_start = (u16)tmp; pi 1130 drivers/gpu/drm/radeon/ni_dpm.c &tmp, pi->sram_end); pi 1140 drivers/gpu/drm/radeon/ni_dpm.c &tmp, pi->sram_end); pi 1150 drivers/gpu/drm/radeon/ni_dpm.c &tmp, pi->sram_end); pi 1160 drivers/gpu/drm/radeon/ni_dpm.c &tmp, pi->sram_end); pi 1170 drivers/gpu/drm/radeon/ni_dpm.c &tmp, pi->sram_end); pi 1204 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1206 drivers/gpu/drm/radeon/ni_dpm.c if (pi->gfx_clock_gating) { pi 1274 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1285 drivers/gpu/drm/radeon/ni_dpm.c if (pi->max_vddc_in_table <= eg_pi->vddc_voltage_table.entries[i].value) { pi 1326 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1329 drivers/gpu/drm/radeon/ni_dpm.c if (!pi->mvdd_control) { pi 1335 drivers/gpu/drm/radeon/ni_dpm.c if (mclk <= pi->mvdd_split_frequency) { pi 1457 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1495 drivers/gpu/drm/radeon/ni_dpm.c (u16)(pi->state_table_start + offsetof(NISLANDS_SMC_STATETABLE, dpm2Params) + pi 1498 drivers/gpu/drm/radeon/ni_dpm.c sizeof(u32) * 4, pi->sram_end); pi 1573 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1579 drivers/gpu/drm/radeon/ni_dpm.c &tmp, pi->sram_end); pi 1587 drivers/gpu/drm/radeon/ni_dpm.c tmp, pi->sram_end); pi 1597 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1603 drivers/gpu/drm/radeon/ni_dpm.c &tmp, pi->sram_end); pi 1641 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1658 drivers/gpu/drm/radeon/ni_dpm.c pi->sram_end); pi 1686 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1756 drivers/gpu/drm/radeon/ni_dpm.c table->initialState.levels[0].bSP = cpu_to_be32(pi->dsp); pi 1758 drivers/gpu/drm/radeon/ni_dpm.c if (pi->boot_in_gen2) pi 1763 drivers/gpu/drm/radeon/ni_dpm.c if (pi->mem_gddr5) { pi 1768 drivers/gpu/drm/radeon/ni_dpm.c if (initial_state->performance_levels[0].mclk > pi->mclk_edc_enable_threshold) pi 1795 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1815 drivers/gpu/drm/radeon/ni_dpm.c if (pi->acpi_vddc) { pi 1818 drivers/gpu/drm/radeon/ni_dpm.c pi->acpi_vddc, &table->ACPIState.levels[0].vddc); pi 1830 drivers/gpu/drm/radeon/ni_dpm.c if (pi->pcie_gen2) { pi 1831 drivers/gpu/drm/radeon/ni_dpm.c if (pi->acpi_pcie_gen2) pi 1841 drivers/gpu/drm/radeon/ni_dpm.c pi->min_vddc_in_table, pi 1870 drivers/gpu/drm/radeon/ni_dpm.c if (pi->mem_gddr5) pi 1942 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1974 drivers/gpu/drm/radeon/ni_dpm.c if (pi->mem_gddr5) pi 1994 drivers/gpu/drm/radeon/ni_dpm.c return rv770_copy_bytes_to_smc(rdev, pi->state_table_start, (u8 *)table, pi 1995 drivers/gpu/drm/radeon/ni_dpm.c sizeof(NISLANDS_SMC_STATETABLE), pi->sram_end); pi 2002 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 2040 drivers/gpu/drm/radeon/ni_dpm.c if (pi->sclk_ss) { pi 2092 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 2153 drivers/gpu/drm/radeon/ni_dpm.c sizeof(SMC_NISLANDS_SPLL_DIV_TABLE), pi->sram_end); pi 2167 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 2213 drivers/gpu/drm/radeon/ni_dpm.c if (pi->mem_gddr5) { pi 2236 drivers/gpu/drm/radeon/ni_dpm.c if (pi->mclk_ss) { pi 2256 drivers/gpu/drm/radeon/ni_dpm.c dll_speed = rv740_get_dll_speed(pi->mem_gddr5, pi 2299 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 2303 drivers/gpu/drm/radeon/ni_dpm.c smc_state->levels[i].bSP = cpu_to_be32(pi->dsp); pi 2306 drivers/gpu/drm/radeon/ni_dpm.c cpu_to_be32(pi->psp); pi 2313 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 2321 drivers/gpu/drm/radeon/ni_dpm.c level->gen2PCIE = pi->pcie_gen2 ? pi 2329 drivers/gpu/drm/radeon/ni_dpm.c if (pi->mclk_stutter_mode_threshold && pi 2330 drivers/gpu/drm/radeon/ni_dpm.c (pl->mclk <= pi->mclk_stutter_mode_threshold) && pi 2336 drivers/gpu/drm/radeon/ni_dpm.c if (pi->mem_gddr5) { pi 2337 drivers/gpu/drm/radeon/ni_dpm.c if (pl->mclk > pi->mclk_edc_enable_threshold) pi 2394 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 2437 drivers/gpu/drm/radeon/ni_dpm.c a_t |= CG_R(t_l * pi->bsp / 20000); pi 2441 drivers/gpu/drm/radeon/ni_dpm.c pi->pbsp : pi->bsp; pi 2454 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 2487 drivers/gpu/drm/radeon/ni_dpm.c pi->state_table_start + pi 2491 drivers/gpu/drm/radeon/ni_dpm.c pi->sram_end); pi 2686 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 2687 drivers/gpu/drm/radeon/ni_dpm.c u16 address = pi->state_table_start + pi 2701 drivers/gpu/drm/radeon/ni_dpm.c ret = rv770_copy_bytes_to_smc(rdev, address, (u8 *)smc_state, state_size, pi->sram_end); pi 2712 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 2739 drivers/gpu/drm/radeon/ni_dpm.c if (!pi->mem_gddr5) pi 2995 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 3020 drivers/gpu/drm/radeon/ni_dpm.c pi->sram_end); pi 3026 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 3043 drivers/gpu/drm/radeon/ni_dpm.c pi->sram_end); pi 3141 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 3195 drivers/gpu/drm/radeon/ni_dpm.c sizeof(PP_NIslands_CACTABLES), pi->sram_end); pi 3441 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 3448 drivers/gpu/drm/radeon/ni_dpm.c pi->pcie_gen2 = true; pi 3450 drivers/gpu/drm/radeon/ni_dpm.c pi->pcie_gen2 = false; pi 3452 drivers/gpu/drm/radeon/ni_dpm.c if (!pi->pcie_gen2) pi 3461 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 3469 drivers/gpu/drm/radeon/ni_dpm.c if (!pi->boot_in_gen2) { pi 3484 drivers/gpu/drm/radeon/ni_dpm.c if (!pi->boot_in_gen2) { pi 3587 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 3592 drivers/gpu/drm/radeon/ni_dpm.c if (pi->gfx_clock_gating) pi 3596 drivers/gpu/drm/radeon/ni_dpm.c if (pi->mg_clock_gating) pi 3600 drivers/gpu/drm/radeon/ni_dpm.c if (pi->voltage_control) { pi 3613 drivers/gpu/drm/radeon/ni_dpm.c if (pi->dynamic_ss) pi 3615 drivers/gpu/drm/radeon/ni_dpm.c if (pi->thermal_protection) pi 3624 drivers/gpu/drm/radeon/ni_dpm.c if (pi->dynamic_pcie_gen2) pi 3689 drivers/gpu/drm/radeon/ni_dpm.c if (pi->gfx_clock_gating) pi 3691 drivers/gpu/drm/radeon/ni_dpm.c if (pi->mg_clock_gating) pi 3705 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 3712 drivers/gpu/drm/radeon/ni_dpm.c if (pi->thermal_protection) pi 3718 drivers/gpu/drm/radeon/ni_dpm.c if (pi->dynamic_pcie_gen2) pi 3727 drivers/gpu/drm/radeon/ni_dpm.c if (pi->gfx_clock_gating) pi 3729 drivers/gpu/drm/radeon/ni_dpm.c if (pi->mg_clock_gating) pi 3924 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 3942 drivers/gpu/drm/radeon/ni_dpm.c if (pi->max_vddc) pi 3943 drivers/gpu/drm/radeon/ni_dpm.c pl->vddc = pi->max_vddc; pi 3947 drivers/gpu/drm/radeon/ni_dpm.c pi->acpi_vddc = pl->vddc; pi 3950 drivers/gpu/drm/radeon/ni_dpm.c pi->acpi_pcie_gen2 = true; pi 3952 drivers/gpu/drm/radeon/ni_dpm.c pi->acpi_pcie_gen2 = false; pi 3960 drivers/gpu/drm/radeon/ni_dpm.c if (pi->min_vddc_in_table > pl->vddc) pi 3961 drivers/gpu/drm/radeon/ni_dpm.c pi->min_vddc_in_table = pl->vddc; pi 3963 drivers/gpu/drm/radeon/ni_dpm.c if (pi->max_vddc_in_table < pl->vddc) pi 3964 drivers/gpu/drm/radeon/ni_dpm.c pi->max_vddc_in_table = pl->vddc; pi 4048 drivers/gpu/drm/radeon/ni_dpm.c struct rv7xx_power_info *pi; pi 4059 drivers/gpu/drm/radeon/ni_dpm.c pi = &eg_pi->rv7xx; pi 4064 drivers/gpu/drm/radeon/ni_dpm.c pi->acpi_vddc = 0; pi 4066 drivers/gpu/drm/radeon/ni_dpm.c pi->min_vddc_in_table = 0; pi 4067 drivers/gpu/drm/radeon/ni_dpm.c pi->max_vddc_in_table = 0; pi 4108 drivers/gpu/drm/radeon/ni_dpm.c pi->ref_div = dividers.ref_div + 1; pi 4110 drivers/gpu/drm/radeon/ni_dpm.c pi->ref_div = R600_REFERENCEDIVIDER_DFLT; pi 4112 drivers/gpu/drm/radeon/ni_dpm.c pi->rlp = RV770_RLP_DFLT; pi 4113 drivers/gpu/drm/radeon/ni_dpm.c pi->rmp = RV770_RMP_DFLT; pi 4114 drivers/gpu/drm/radeon/ni_dpm.c pi->lhp = RV770_LHP_DFLT; pi 4115 drivers/gpu/drm/radeon/ni_dpm.c pi->lmp = RV770_LMP_DFLT; pi 4130 drivers/gpu/drm/radeon/ni_dpm.c pi->mclk_strobe_mode_threshold = 55000; pi 4131 drivers/gpu/drm/radeon/ni_dpm.c pi->mclk_edc_enable_threshold = 55000; pi 4134 drivers/gpu/drm/radeon/ni_dpm.c pi->mclk_strobe_mode_threshold = 40000; pi 4135 drivers/gpu/drm/radeon/ni_dpm.c pi->mclk_edc_enable_threshold = 40000; pi 4140 drivers/gpu/drm/radeon/ni_dpm.c pi->voltage_control = pi 4143 drivers/gpu/drm/radeon/ni_dpm.c pi->mvdd_control = pi 4151 drivers/gpu/drm/radeon/ni_dpm.c pi->asi = RV770_ASI_DFLT; pi 4152 drivers/gpu/drm/radeon/ni_dpm.c pi->pasi = CYPRESS_HASI_DFLT; pi 4153 drivers/gpu/drm/radeon/ni_dpm.c pi->vrc = CYPRESS_VRC_DFLT; pi 4155 drivers/gpu/drm/radeon/ni_dpm.c pi->power_gating = false; pi 4157 drivers/gpu/drm/radeon/ni_dpm.c pi->gfx_clock_gating = true; pi 4159 drivers/gpu/drm/radeon/ni_dpm.c pi->mg_clock_gating = true; pi 4160 drivers/gpu/drm/radeon/ni_dpm.c pi->mgcgtssm = true; pi 4164 drivers/gpu/drm/radeon/ni_dpm.c pi->dynamic_pcie_gen2 = true; pi 4167 drivers/gpu/drm/radeon/ni_dpm.c pi->thermal_protection = true; pi 4169 drivers/gpu/drm/radeon/ni_dpm.c pi->thermal_protection = false; pi 4171 drivers/gpu/drm/radeon/ni_dpm.c pi->display_gap = true; pi 4173 drivers/gpu/drm/radeon/ni_dpm.c pi->dcodt = true; pi 4175 drivers/gpu/drm/radeon/ni_dpm.c pi->ulps = true; pi 4193 drivers/gpu/drm/radeon/ni_dpm.c pi->mclk_stutter_mode_threshold = 0; pi 4195 drivers/gpu/drm/radeon/ni_dpm.c pi->sram_end = SMC_RAM_END; pi 45 drivers/gpu/drm/radeon/rs780_dpm.c struct igp_power_info *pi = rdev->pm.dpm.priv; pi 47 drivers/gpu/drm/radeon/rs780_dpm.c return pi; pi 52 drivers/gpu/drm/radeon/rs780_dpm.c struct igp_power_info *pi = rs780_get_pi(rdev); pi 59 drivers/gpu/drm/radeon/rs780_dpm.c pi->crtc_id = 0; pi 60 drivers/gpu/drm/radeon/rs780_dpm.c pi->refresh_rate = 60; pi 66 drivers/gpu/drm/radeon/rs780_dpm.c pi->crtc_id = radeon_crtc->crtc_id; pi 68 drivers/gpu/drm/radeon/rs780_dpm.c pi->refresh_rate = drm_mode_vrefresh(&crtc->mode); pi 226 drivers/gpu/drm/radeon/rs780_dpm.c struct igp_power_info *pi = rs780_get_pi(rdev); pi 246 drivers/gpu/drm/radeon/rs780_dpm.c if (pi->pwm_voltage_control) { pi 247 drivers/gpu/drm/radeon/rs780_dpm.c fv_throt_pwm_range[0] = pi->min_voltage; pi 248 drivers/gpu/drm/radeon/rs780_dpm.c fv_throt_pwm_range[1] = pi->min_voltage; pi 249 drivers/gpu/drm/radeon/rs780_dpm.c fv_throt_pwm_range[2] = pi->max_voltage; pi 250 drivers/gpu/drm/radeon/rs780_dpm.c fv_throt_pwm_range[3] = pi->max_voltage; pi 252 drivers/gpu/drm/radeon/rs780_dpm.c fv_throt_pwm_range[0] = pi->invert_pwm_required ? pi 254 drivers/gpu/drm/radeon/rs780_dpm.c fv_throt_pwm_range[1] = pi->invert_pwm_required ? pi 256 drivers/gpu/drm/radeon/rs780_dpm.c fv_throt_pwm_range[2] = pi->invert_pwm_required ? pi 258 drivers/gpu/drm/radeon/rs780_dpm.c fv_throt_pwm_range[3] = pi->invert_pwm_required ? pi 263 drivers/gpu/drm/radeon/rs780_dpm.c STARTING_PWM_HIGHTIME(pi->max_voltage), pi 267 drivers/gpu/drm/radeon/rs780_dpm.c NUMBER_OF_CYCLES_IN_PERIOD(pi->num_of_cycles_in_period), pi 273 drivers/gpu/drm/radeon/rs780_dpm.c if (pi->invert_pwm_required) pi 281 drivers/gpu/drm/radeon/rs780_dpm.c (MIN_PWM_HIGHTIME(pi->min_voltage) | pi 282 drivers/gpu/drm/radeon/rs780_dpm.c MAX_PWM_HIGHTIME(pi->max_voltage))); pi 366 drivers/gpu/drm/radeon/rs780_dpm.c struct igp_power_info *pi = rs780_get_pi(rdev); pi 368 drivers/gpu/drm/radeon/rs780_dpm.c WREG32(FVTHROT_TARGET_REG, 30000000 / pi->refresh_rate); pi 369 drivers/gpu/drm/radeon/rs780_dpm.c WREG32(FVTHROT_CB1, 1000000 * 5 / pi->refresh_rate); pi 370 drivers/gpu/drm/radeon/rs780_dpm.c WREG32(FVTHROT_CB2, 1000000 * 10 / pi->refresh_rate); pi 371 drivers/gpu/drm/radeon/rs780_dpm.c WREG32(FVTHROT_CB3, 1000000 * 30 / pi->refresh_rate); pi 372 drivers/gpu/drm/radeon/rs780_dpm.c WREG32(FVTHROT_CB4, 1000000 * 50 / pi->refresh_rate); pi 481 drivers/gpu/drm/radeon/rs780_dpm.c struct igp_power_info *pi = rs780_get_pi(rdev); pi 487 drivers/gpu/drm/radeon/rs780_dpm.c if (pi->crtc_id == 0) pi 514 drivers/gpu/drm/radeon/rs780_dpm.c struct igp_power_info *pi = rs780_get_pi(rdev); pi 517 drivers/gpu/drm/radeon/rs780_dpm.c return pi->max_voltage; pi 519 drivers/gpu/drm/radeon/rs780_dpm.c return pi->min_voltage; pi 521 drivers/gpu/drm/radeon/rs780_dpm.c return pi->max_voltage; pi 528 drivers/gpu/drm/radeon/rs780_dpm.c struct igp_power_info *pi = rs780_get_pi(rdev); pi 551 drivers/gpu/drm/radeon/rs780_dpm.c if (pi->max_voltage != vddc_high) { pi 601 drivers/gpu/drm/radeon/rs780_dpm.c struct igp_power_info *pi = rs780_get_pi(rdev); pi 617 drivers/gpu/drm/radeon/rs780_dpm.c if (pi->voltage_control) pi 626 drivers/gpu/drm/radeon/rs780_dpm.c if (pi->gfx_clock_gating) pi 634 drivers/gpu/drm/radeon/rs780_dpm.c struct igp_power_info *pi = rs780_get_pi(rdev); pi 641 drivers/gpu/drm/radeon/rs780_dpm.c if (pi->gfx_clock_gating) pi 653 drivers/gpu/drm/radeon/rs780_dpm.c struct igp_power_info *pi = rs780_get_pi(rdev); pi 662 drivers/gpu/drm/radeon/rs780_dpm.c if (pi->voltage_control) { pi 663 drivers/gpu/drm/radeon/rs780_dpm.c rs780_force_voltage(rdev, pi->max_voltage); pi 674 drivers/gpu/drm/radeon/rs780_dpm.c if (pi->voltage_control) pi 851 drivers/gpu/drm/radeon/rs780_dpm.c struct igp_power_info *pi; pi 858 drivers/gpu/drm/radeon/rs780_dpm.c pi = kzalloc(sizeof(struct igp_power_info), GFP_KERNEL); pi 859 drivers/gpu/drm/radeon/rs780_dpm.c if (pi == NULL) pi 861 drivers/gpu/drm/radeon/rs780_dpm.c rdev->pm.dpm.priv = pi; pi 871 drivers/gpu/drm/radeon/rs780_dpm.c pi->voltage_control = false; pi 872 drivers/gpu/drm/radeon/rs780_dpm.c pi->gfx_clock_gating = true; pi 881 drivers/gpu/drm/radeon/rs780_dpm.c pi->num_of_cycles_in_period = pi 883 drivers/gpu/drm/radeon/rs780_dpm.c pi->num_of_cycles_in_period |= pi 885 drivers/gpu/drm/radeon/rs780_dpm.c pi->invert_pwm_required = pi 886 drivers/gpu/drm/radeon/rs780_dpm.c (pi->num_of_cycles_in_period & 0x8000) ? true : false; pi 887 drivers/gpu/drm/radeon/rs780_dpm.c pi->boot_voltage = info->info.ucStartingPWM_HighTime; pi 888 drivers/gpu/drm/radeon/rs780_dpm.c pi->max_voltage = info->info.ucMaxNBVoltage; pi 889 drivers/gpu/drm/radeon/rs780_dpm.c pi->max_voltage |= info->info.ucMaxNBVoltageHigh << 8; pi 890 drivers/gpu/drm/radeon/rs780_dpm.c pi->min_voltage = info->info.ucMinNBVoltage; pi 891 drivers/gpu/drm/radeon/rs780_dpm.c pi->min_voltage |= info->info.ucMinNBVoltageHigh << 8; pi 892 drivers/gpu/drm/radeon/rs780_dpm.c pi->inter_voltage_low = pi 894 drivers/gpu/drm/radeon/rs780_dpm.c pi->inter_voltage_high = pi 896 drivers/gpu/drm/radeon/rs780_dpm.c pi->voltage_control = true; pi 897 drivers/gpu/drm/radeon/rs780_dpm.c pi->bootup_uma_clk = info->info.usK8MemoryClock * 100; pi 900 drivers/gpu/drm/radeon/rs780_dpm.c pi->num_of_cycles_in_period = pi 902 drivers/gpu/drm/radeon/rs780_dpm.c pi->invert_pwm_required = pi 903 drivers/gpu/drm/radeon/rs780_dpm.c (pi->num_of_cycles_in_period & 0x8000) ? true : false; pi 904 drivers/gpu/drm/radeon/rs780_dpm.c pi->boot_voltage = pi 906 drivers/gpu/drm/radeon/rs780_dpm.c pi->max_voltage = pi 908 drivers/gpu/drm/radeon/rs780_dpm.c pi->min_voltage = pi 910 drivers/gpu/drm/radeon/rs780_dpm.c pi->system_config = pi 912 drivers/gpu/drm/radeon/rs780_dpm.c pi->pwm_voltage_control = pi 913 drivers/gpu/drm/radeon/rs780_dpm.c (pi->system_config & 0x4) ? true : false; pi 914 drivers/gpu/drm/radeon/rs780_dpm.c pi->voltage_control = true; pi 915 drivers/gpu/drm/radeon/rs780_dpm.c pi->bootup_uma_clk = le32_to_cpu(info->info_2.ulBootUpUMAClock); pi 921 drivers/gpu/drm/radeon/rs780_dpm.c if (pi->min_voltage > pi->max_voltage) pi 922 drivers/gpu/drm/radeon/rs780_dpm.c pi->voltage_control = false; pi 923 drivers/gpu/drm/radeon/rs780_dpm.c if (pi->pwm_voltage_control) { pi 924 drivers/gpu/drm/radeon/rs780_dpm.c if ((pi->num_of_cycles_in_period == 0) || pi 925 drivers/gpu/drm/radeon/rs780_dpm.c (pi->max_voltage == 0) || pi 926 drivers/gpu/drm/radeon/rs780_dpm.c (pi->min_voltage == 0)) pi 927 drivers/gpu/drm/radeon/rs780_dpm.c pi->voltage_control = false; pi 929 drivers/gpu/drm/radeon/rs780_dpm.c if ((pi->num_of_cycles_in_period == 0) || pi 930 drivers/gpu/drm/radeon/rs780_dpm.c (pi->max_voltage == 0)) pi 931 drivers/gpu/drm/radeon/rs780_dpm.c pi->voltage_control = false; pi 978 drivers/gpu/drm/radeon/rs780_dpm.c struct igp_power_info *pi = rs780_get_pi(rdev); pi 980 drivers/gpu/drm/radeon/rs780_dpm.c return pi->bootup_uma_clk; pi 1024 drivers/gpu/drm/radeon/rs780_dpm.c struct igp_power_info *pi = rs780_get_pi(rdev); pi 1026 drivers/gpu/drm/radeon/rs780_dpm.c return pi->bootup_uma_clk; pi 1032 drivers/gpu/drm/radeon/rs780_dpm.c struct igp_power_info *pi = rs780_get_pi(rdev); pi 1042 drivers/gpu/drm/radeon/rs780_dpm.c if (pi->voltage_control) pi 1043 drivers/gpu/drm/radeon/rs780_dpm.c rs780_force_voltage(rdev, pi->max_voltage); pi 1059 drivers/gpu/drm/radeon/rs780_dpm.c if (pi->voltage_control) pi 1060 drivers/gpu/drm/radeon/rs780_dpm.c rs780_force_voltage(rdev, pi->min_voltage); pi 1062 drivers/gpu/drm/radeon/rs780_dpm.c if (pi->voltage_control) pi 1063 drivers/gpu/drm/radeon/rs780_dpm.c rs780_force_voltage(rdev, pi->max_voltage); pi 1070 drivers/gpu/drm/radeon/rs780_dpm.c if (pi->voltage_control) { pi 45 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rdev->pm.dpm.priv; pi 47 drivers/gpu/drm/radeon/rv6xx_dpm.c return pi; pi 162 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 167 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->spll_ref_div, pi 183 drivers/gpu/drm/radeon/rv6xx_dpm.c fb_divider = ((step->vco_frequency * pi->spll_ref_div) / ref_clk) >> pi 184 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->fb_div_scale; pi 187 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->spll_ref_div - 1); pi 436 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 438 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.sclks[R600_POWER_LEVEL_LOW] = pi 440 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.sclks[R600_POWER_LEVEL_MEDIUM] = pi 442 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.sclks[R600_POWER_LEVEL_HIGH] = pi 445 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.low_sclk_index = R600_POWER_LEVEL_LOW; pi 446 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.medium_sclk_index = R600_POWER_LEVEL_MEDIUM; pi 447 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.high_sclk_index = R600_POWER_LEVEL_HIGH; pi 453 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 455 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.mclks[R600_POWER_LEVEL_CTXSW] = pi 457 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.mclks[R600_POWER_LEVEL_HIGH] = pi 459 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.mclks[R600_POWER_LEVEL_MEDIUM] = pi 461 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.mclks[R600_POWER_LEVEL_LOW] = pi 464 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.high_mclk_index = R600_POWER_LEVEL_HIGH; pi 467 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.medium_mclk_index = pi 468 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.high_mclk_index; pi 470 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.medium_mclk_index = R600_POWER_LEVEL_MEDIUM; pi 474 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.low_mclk_index = pi 475 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.medium_mclk_index; pi 477 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.low_mclk_index = R600_POWER_LEVEL_LOW; pi 483 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 485 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.vddc[R600_POWER_LEVEL_CTXSW] = state->high.vddc; pi 486 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.vddc[R600_POWER_LEVEL_HIGH] = state->high.vddc; pi 487 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.vddc[R600_POWER_LEVEL_MEDIUM] = state->medium.vddc; pi 488 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.vddc[R600_POWER_LEVEL_LOW] = state->low.vddc; pi 490 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.backbias[R600_POWER_LEVEL_CTXSW] = pi 492 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.backbias[R600_POWER_LEVEL_HIGH] = pi 494 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.backbias[R600_POWER_LEVEL_MEDIUM] = pi 496 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.backbias[R600_POWER_LEVEL_LOW] = pi 499 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.pcie_gen2[R600_POWER_LEVEL_HIGH] = pi 501 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.pcie_gen2[R600_POWER_LEVEL_MEDIUM] = pi 503 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.pcie_gen2[R600_POWER_LEVEL_LOW] = pi 506 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.high_vddc_index = R600_POWER_LEVEL_HIGH; pi 511 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.medium_vddc_index = pi 512 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.high_vddc_index; pi 514 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.medium_vddc_index = R600_POWER_LEVEL_MEDIUM; pi 519 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.low_vddc_index = pi 520 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.medium_vddc_index; pi 522 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.medium_vddc_index = R600_POWER_LEVEL_LOW; pi 552 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 559 drivers/gpu/drm/radeon/rv6xx_dpm.c if (clock && pi->sclk_ss) { pi 562 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->fb_div_scale); pi 570 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->fb_div_scale); pi 585 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 588 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.sclks[R600_POWER_LEVEL_HIGH], pi 592 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.sclks[R600_POWER_LEVEL_MEDIUM], pi 620 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 624 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->hw.mclks[i]) pi 626 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.mclks[i]); pi 636 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 643 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->fb_div_scale); pi 654 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 662 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->mclk_ss) { pi 664 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.mclks[pi->hw.high_mclk_index], pi 670 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.mclks[pi->hw.medium_mclk_index], pi 676 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.mclks[pi->hw.low_mclk_index], pi 688 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->fb_div_scale); pi 720 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 725 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.vddc[i]); pi 731 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 733 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->hw.backbias[1]) pi 738 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->hw.backbias[2]) pi 746 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 749 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.sclks[R600_POWER_LEVEL_LOW], pi 755 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 757 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->hw.mclks[0]) pi 759 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.mclks[0]); pi 764 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 767 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.vddc[0]); pi 773 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 775 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->hw.backbias[0]) pi 796 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 801 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->hw.sclks[R600_POWER_LEVEL_HIGH] < pi 802 drivers/gpu/drm/radeon/rv6xx_dpm.c (pi->hw.sclks[R600_POWER_LEVEL_LOW] * 0xFF / 0x40)) pi 803 drivers/gpu/drm/radeon/rv6xx_dpm.c high_clock = pi->hw.sclks[R600_POWER_LEVEL_HIGH]; pi 806 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.sclks[R600_POWER_LEVEL_LOW] * 0xFF / 0x40; pi 810 drivers/gpu/drm/radeon/rv6xx_dpm.c sqm_ratio = (STATE0(64 * high_clock / pi->hw.sclks[R600_POWER_LEVEL_LOW]) | pi 811 drivers/gpu/drm/radeon/rv6xx_dpm.c STATE1(64 * high_clock / pi->hw.sclks[R600_POWER_LEVEL_MEDIUM]) | pi 812 drivers/gpu/drm/radeon/rv6xx_dpm.c STATE2(64 * high_clock / pi->hw.sclks[R600_POWER_LEVEL_HIGH]) | pi 813 drivers/gpu/drm/radeon/rv6xx_dpm.c STATE3(64 * high_clock / pi->hw.sclks[R600_POWER_LEVEL_HIGH])); pi 818 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.sclks[R600_POWER_LEVEL_LOW])) | pi 820 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.sclks[R600_POWER_LEVEL_MEDIUM])) | pi 822 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.sclks[R600_POWER_LEVEL_HIGH])) | pi 824 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.sclks[R600_POWER_LEVEL_HIGH]))); pi 830 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 833 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->mpll_ref_div); pi 839 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 844 drivers/gpu/drm/radeon/rv6xx_dpm.c &pi->bsp, pi 845 drivers/gpu/drm/radeon/rv6xx_dpm.c &pi->bsu); pi 847 drivers/gpu/drm/radeon/rv6xx_dpm.c r600_set_bsp(rdev, pi->bsu, pi->bsp); pi 852 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 855 drivers/gpu/drm/radeon/rv6xx_dpm.c (pi->hw.rp[0] * pi->bsp) / 200, pi 856 drivers/gpu/drm/radeon/rv6xx_dpm.c (pi->hw.rp[1] * pi->bsp) / 200, pi 857 drivers/gpu/drm/radeon/rv6xx_dpm.c (pi->hw.lp[2] * pi->bsp) / 200, pi 858 drivers/gpu/drm/radeon/rv6xx_dpm.c (pi->hw.lp[1] * pi->bsp) / 200); pi 939 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 948 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.vddc[i], pi 1021 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 1023 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.lp[0] = 0; pi 1024 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.rp[R600_PM_NUMBER_OF_ACTIVITY_LEVELS - 1] pi 1032 drivers/gpu/drm/radeon/rv6xx_dpm.c &pi->hw.lp[1], pi 1033 drivers/gpu/drm/radeon/rv6xx_dpm.c &pi->hw.rp[0]); pi 1040 drivers/gpu/drm/radeon/rv6xx_dpm.c &pi->hw.lp[2], pi 1041 drivers/gpu/drm/radeon/rv6xx_dpm.c &pi->hw.rp[1]); pi 1058 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 1061 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->voltage_control) pi 1071 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 1074 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->voltage_control) pi 1082 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 1085 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.low_vddc_index); pi 1087 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.low_mclk_index); pi 1089 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.low_sclk_index); pi 1093 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.pcie_gen2[R600_POWER_LEVEL_LOW]); pi 1098 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 1108 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.pcie_gen2[R600_POWER_LEVEL_LOW]); pi 1114 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 1117 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.medium_vddc_index); pi 1119 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.medium_mclk_index); pi 1121 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.medium_sclk_index); pi 1125 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.pcie_gen2[R600_POWER_LEVEL_MEDIUM]); pi 1130 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 1134 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.mclks[pi->hw.low_mclk_index]); pi 1141 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.medium_sclk_index); pi 1149 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.pcie_gen2[R600_POWER_LEVEL_LOW]); pi 1154 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 1157 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.high_vddc_index); pi 1159 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.high_mclk_index); pi 1161 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.high_sclk_index); pi 1167 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.pcie_gen2[R600_POWER_LEVEL_HIGH]); pi 1336 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 1338 drivers/gpu/drm/radeon/rv6xx_dpm.c if ((pi->restricted_levels < 1) || pi 1339 drivers/gpu/drm/radeon/rv6xx_dpm.c (pi->restricted_levels == 3)) pi 1345 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 1347 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->restricted_levels < 2) pi 1353 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 1381 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->thermal_protection) pi 1392 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 1395 drivers/gpu/drm/radeon/rv6xx_dpm.c if (!(pi->active_auto_throttle_sources & (1 << source))) { pi 1396 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->active_auto_throttle_sources |= 1 << source; pi 1397 drivers/gpu/drm/radeon/rv6xx_dpm.c rv6xx_set_dpm_event_sources(rdev, pi->active_auto_throttle_sources); pi 1400 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->active_auto_throttle_sources & (1 << source)) { pi 1401 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->active_auto_throttle_sources &= ~(1 << source); pi 1402 drivers/gpu/drm/radeon/rv6xx_dpm.c rv6xx_set_dpm_event_sources(rdev, pi->active_auto_throttle_sources); pi 1411 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 1413 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->active_auto_throttle_sources) pi 1423 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 1428 drivers/gpu/drm/radeon/rv6xx_dpm.c 0, &pi->hw.medium_sclk_index); pi 1435 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 1437 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.low_sclk_index = 0; pi 1445 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 1448 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.medium_sclk_index); pi 1455 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 1457 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.low_sclk_index = 0; pi 1463 drivers/gpu/drm/radeon/rv6xx_dpm.c &pi->hw.medium_sclk_index); pi 1467 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->hw.medium_sclk_index, pi 1468 drivers/gpu/drm/radeon/rv6xx_dpm.c &pi->hw.high_sclk_index); pi 1547 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 1556 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->dynamic_ss) pi 1571 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->display_gap == false) pi 1578 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->voltage_control) pi 1600 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->voltage_control) pi 1603 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->dynamic_pcie_gen2) pi 1606 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->gfx_clock_gating) pi 1614 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 1626 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->thermal_protection) pi 1638 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->voltage_control) pi 1641 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->dynamic_pcie_gen2) pi 1650 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->gfx_clock_gating) pi 1658 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 1663 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->restricted_levels = 0; pi 1671 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->thermal_protection) pi 1681 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->voltage_control) { pi 1690 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->dynamic_pcie_gen2) pi 1693 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->voltage_control) pi 1699 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->voltage_control) { pi 1719 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->voltage_control) { pi 1731 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->dynamic_pcie_gen2) pi 1744 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->thermal_protection) pi 1936 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi; pi 1939 drivers/gpu/drm/radeon/rv6xx_dpm.c pi = kzalloc(sizeof(struct rv6xx_power_info), GFP_KERNEL); pi 1940 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi == NULL) pi 1942 drivers/gpu/drm/radeon/rv6xx_dpm.c rdev->pm.dpm.priv = pi; pi 1960 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->spll_ref_div = dividers.ref_div + 1; pi 1962 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->spll_ref_div = R600_REFERENCEDIVIDER_DFLT; pi 1967 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->mpll_ref_div = dividers.ref_div + 1; pi 1969 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->mpll_ref_div = R600_REFERENCEDIVIDER_DFLT; pi 1972 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->fb_div_scale = 1; pi 1974 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->fb_div_scale = 0; pi 1976 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->voltage_control = pi 1979 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->gfx_clock_gating = true; pi 1981 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->sclk_ss = radeon_atombios_get_asic_ss_info(rdev, &ss, pi 1983 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->mclk_ss = radeon_atombios_get_asic_ss_info(rdev, &ss, pi 1987 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->sclk_ss = false; pi 1989 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->sclk_ss || pi->mclk_ss) pi 1990 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->dynamic_ss = true; pi 1992 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->dynamic_ss = false; pi 1994 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->dynamic_pcie_gen2 = true; pi 1996 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->gfx_clock_gating && pi 1998 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->thermal_protection = true; pi 2000 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->thermal_protection = false; pi 2002 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->display_gap = true; pi 2133 drivers/gpu/drm/radeon/rv6xx_dpm.c struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); pi 2136 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->restricted_levels = 3; pi 2138 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->restricted_levels = 2; pi 2140 drivers/gpu/drm/radeon/rv6xx_dpm.c pi->restricted_levels = 0; pi 2151 drivers/gpu/drm/radeon/rv6xx_dpm.c if (pi->restricted_levels == 3) pi 43 drivers/gpu/drm/radeon/rv730_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 45 drivers/gpu/drm/radeon/rv730_dpm.c u32 spll_func_cntl = pi->clk_regs.rv730.cg_spll_func_cntl; pi 46 drivers/gpu/drm/radeon/rv730_dpm.c u32 spll_func_cntl_2 = pi->clk_regs.rv730.cg_spll_func_cntl_2; pi 47 drivers/gpu/drm/radeon/rv730_dpm.c u32 spll_func_cntl_3 = pi->clk_regs.rv730.cg_spll_func_cntl_3; pi 48 drivers/gpu/drm/radeon/rv730_dpm.c u32 cg_spll_spread_spectrum = pi->clk_regs.rv730.cg_spll_spread_spectrum; pi 49 drivers/gpu/drm/radeon/rv730_dpm.c u32 cg_spll_spread_spectrum_2 = pi->clk_regs.rv730.cg_spll_spread_spectrum_2; pi 90 drivers/gpu/drm/radeon/rv730_dpm.c if (pi->sclk_ss) { pi 122 drivers/gpu/drm/radeon/rv730_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 123 drivers/gpu/drm/radeon/rv730_dpm.c u32 mclk_pwrmgt_cntl = pi->clk_regs.rv730.mclk_pwrmgt_cntl; pi 124 drivers/gpu/drm/radeon/rv730_dpm.c u32 dll_cntl = pi->clk_regs.rv730.dll_cntl; pi 125 drivers/gpu/drm/radeon/rv730_dpm.c u32 mpll_func_cntl = pi->clk_regs.rv730.mpll_func_cntl; pi 126 drivers/gpu/drm/radeon/rv730_dpm.c u32 mpll_func_cntl_2 = pi->clk_regs.rv730.mpll_func_cntl2; pi 127 drivers/gpu/drm/radeon/rv730_dpm.c u32 mpll_func_cntl_3 = pi->clk_regs.rv730.mpll_func_cntl3; pi 128 drivers/gpu/drm/radeon/rv730_dpm.c u32 mpll_ss = pi->clk_regs.rv730.mpll_ss; pi 129 drivers/gpu/drm/radeon/rv730_dpm.c u32 mpll_ss2 = pi->clk_regs.rv730.mpll_ss2; pi 165 drivers/gpu/drm/radeon/rv730_dpm.c if (pi->mclk_ss) { pi 199 drivers/gpu/drm/radeon/rv730_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 201 drivers/gpu/drm/radeon/rv730_dpm.c pi->clk_regs.rv730.cg_spll_func_cntl = pi 203 drivers/gpu/drm/radeon/rv730_dpm.c pi->clk_regs.rv730.cg_spll_func_cntl_2 = pi 205 drivers/gpu/drm/radeon/rv730_dpm.c pi->clk_regs.rv730.cg_spll_func_cntl_3 = pi 207 drivers/gpu/drm/radeon/rv730_dpm.c pi->clk_regs.rv730.cg_spll_spread_spectrum = pi 209 drivers/gpu/drm/radeon/rv730_dpm.c pi->clk_regs.rv730.cg_spll_spread_spectrum_2 = pi 212 drivers/gpu/drm/radeon/rv730_dpm.c pi->clk_regs.rv730.mclk_pwrmgt_cntl = pi 214 drivers/gpu/drm/radeon/rv730_dpm.c pi->clk_regs.rv730.dll_cntl = pi 216 drivers/gpu/drm/radeon/rv730_dpm.c pi->clk_regs.rv730.mpll_func_cntl = pi 218 drivers/gpu/drm/radeon/rv730_dpm.c pi->clk_regs.rv730.mpll_func_cntl2 = pi 220 drivers/gpu/drm/radeon/rv730_dpm.c pi->clk_regs.rv730.mpll_func_cntl3 = pi 222 drivers/gpu/drm/radeon/rv730_dpm.c pi->clk_regs.rv730.mpll_ss = pi 224 drivers/gpu/drm/radeon/rv730_dpm.c pi->clk_regs.rv730.mpll_ss2 = pi 231 drivers/gpu/drm/radeon/rv730_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 244 drivers/gpu/drm/radeon/rv730_dpm.c if (pi->acpi_vddc) { pi 245 drivers/gpu/drm/radeon/rv730_dpm.c rv770_populate_vddc_value(rdev, pi->acpi_vddc, pi 247 drivers/gpu/drm/radeon/rv730_dpm.c table->ACPIState.levels[0].gen2PCIE = pi->pcie_gen2 ? pi 248 drivers/gpu/drm/radeon/rv730_dpm.c pi->acpi_pcie_gen2 : 0; pi 250 drivers/gpu/drm/radeon/rv730_dpm.c pi->acpi_pcie_gen2; pi 252 drivers/gpu/drm/radeon/rv730_dpm.c rv770_populate_vddc_value(rdev, pi->min_vddc_in_table, pi 257 drivers/gpu/drm/radeon/rv730_dpm.c mpll_func_cntl = pi->clk_regs.rv730.mpll_func_cntl; pi 258 drivers/gpu/drm/radeon/rv730_dpm.c mpll_func_cntl_2 = pi->clk_regs.rv730.mpll_func_cntl2; pi 259 drivers/gpu/drm/radeon/rv730_dpm.c mpll_func_cntl_3 = pi->clk_regs.rv730.mpll_func_cntl3; pi 286 drivers/gpu/drm/radeon/rv730_dpm.c spll_func_cntl = pi->clk_regs.rv730.cg_spll_func_cntl; pi 287 drivers/gpu/drm/radeon/rv730_dpm.c spll_func_cntl_2 = pi->clk_regs.rv730.cg_spll_func_cntl_2; pi 288 drivers/gpu/drm/radeon/rv730_dpm.c spll_func_cntl_3 = pi->clk_regs.rv730.cg_spll_func_cntl_3; pi 323 drivers/gpu/drm/radeon/rv730_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 327 drivers/gpu/drm/radeon/rv730_dpm.c cpu_to_be32(pi->clk_regs.rv730.mpll_func_cntl); pi 329 drivers/gpu/drm/radeon/rv730_dpm.c cpu_to_be32(pi->clk_regs.rv730.mpll_func_cntl2); pi 331 drivers/gpu/drm/radeon/rv730_dpm.c cpu_to_be32(pi->clk_regs.rv730.mpll_func_cntl3); pi 333 drivers/gpu/drm/radeon/rv730_dpm.c cpu_to_be32(pi->clk_regs.rv730.mclk_pwrmgt_cntl); pi 335 drivers/gpu/drm/radeon/rv730_dpm.c cpu_to_be32(pi->clk_regs.rv730.dll_cntl); pi 337 drivers/gpu/drm/radeon/rv730_dpm.c cpu_to_be32(pi->clk_regs.rv730.mpll_ss); pi 339 drivers/gpu/drm/radeon/rv730_dpm.c cpu_to_be32(pi->clk_regs.rv730.mpll_ss2); pi 345 drivers/gpu/drm/radeon/rv730_dpm.c cpu_to_be32(pi->clk_regs.rv730.cg_spll_func_cntl); pi 347 drivers/gpu/drm/radeon/rv730_dpm.c cpu_to_be32(pi->clk_regs.rv730.cg_spll_func_cntl_2); pi 349 drivers/gpu/drm/radeon/rv730_dpm.c cpu_to_be32(pi->clk_regs.rv730.cg_spll_func_cntl_3); pi 351 drivers/gpu/drm/radeon/rv730_dpm.c cpu_to_be32(pi->clk_regs.rv730.cg_spll_spread_spectrum); pi 353 drivers/gpu/drm/radeon/rv730_dpm.c cpu_to_be32(pi->clk_regs.rv730.cg_spll_spread_spectrum_2); pi 373 drivers/gpu/drm/radeon/rv730_dpm.c table->initialState.levels[0].bSP = cpu_to_be32(pi->dsp); pi 375 drivers/gpu/drm/radeon/rv730_dpm.c if (pi->boot_in_gen2) pi 477 drivers/gpu/drm/radeon/rv730_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 483 drivers/gpu/drm/radeon/rv730_dpm.c mc4_io_pad_cntl |= pi->odt_value_0[i]; pi 489 drivers/gpu/drm/radeon/rv730_dpm.c mc4_io_pad_cntl |= pi->odt_value_1[i]; pi 496 drivers/gpu/drm/radeon/rv730_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 499 drivers/gpu/drm/radeon/rv730_dpm.c pi->odt_value_0[0] = (u8)0; pi 500 drivers/gpu/drm/radeon/rv730_dpm.c pi->odt_value_1[0] = (u8)0x80; pi 503 drivers/gpu/drm/radeon/rv730_dpm.c pi->odt_value_0[1] = (u8)(mc4_io_pad_cntl & 0xff); pi 506 drivers/gpu/drm/radeon/rv730_dpm.c pi->odt_value_1[1] = (u8)(mc4_io_pad_cntl & 0xff); pi 123 drivers/gpu/drm/radeon/rv740_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 125 drivers/gpu/drm/radeon/rv740_dpm.c u32 spll_func_cntl = pi->clk_regs.rv770.cg_spll_func_cntl; pi 126 drivers/gpu/drm/radeon/rv740_dpm.c u32 spll_func_cntl_2 = pi->clk_regs.rv770.cg_spll_func_cntl_2; pi 127 drivers/gpu/drm/radeon/rv740_dpm.c u32 spll_func_cntl_3 = pi->clk_regs.rv770.cg_spll_func_cntl_3; pi 128 drivers/gpu/drm/radeon/rv740_dpm.c u32 cg_spll_spread_spectrum = pi->clk_regs.rv770.cg_spll_spread_spectrum; pi 129 drivers/gpu/drm/radeon/rv740_dpm.c u32 cg_spll_spread_spectrum_2 = pi->clk_regs.rv770.cg_spll_spread_spectrum_2; pi 158 drivers/gpu/drm/radeon/rv740_dpm.c if (pi->sclk_ss) { pi 190 drivers/gpu/drm/radeon/rv740_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 191 drivers/gpu/drm/radeon/rv740_dpm.c u32 mpll_ad_func_cntl = pi->clk_regs.rv770.mpll_ad_func_cntl; pi 192 drivers/gpu/drm/radeon/rv740_dpm.c u32 mpll_ad_func_cntl_2 = pi->clk_regs.rv770.mpll_ad_func_cntl_2; pi 193 drivers/gpu/drm/radeon/rv740_dpm.c u32 mpll_dq_func_cntl = pi->clk_regs.rv770.mpll_dq_func_cntl; pi 194 drivers/gpu/drm/radeon/rv740_dpm.c u32 mpll_dq_func_cntl_2 = pi->clk_regs.rv770.mpll_dq_func_cntl_2; pi 195 drivers/gpu/drm/radeon/rv740_dpm.c u32 mclk_pwrmgt_cntl = pi->clk_regs.rv770.mclk_pwrmgt_cntl; pi 196 drivers/gpu/drm/radeon/rv740_dpm.c u32 dll_cntl = pi->clk_regs.rv770.dll_cntl; pi 197 drivers/gpu/drm/radeon/rv740_dpm.c u32 mpll_ss1 = pi->clk_regs.rv770.mpll_ss1; pi 198 drivers/gpu/drm/radeon/rv740_dpm.c u32 mpll_ss2 = pi->clk_regs.rv770.mpll_ss2; pi 227 drivers/gpu/drm/radeon/rv740_dpm.c if (pi->mem_gddr5) { pi 245 drivers/gpu/drm/radeon/rv740_dpm.c if (pi->mclk_ss) { pi 265 drivers/gpu/drm/radeon/rv740_dpm.c dll_speed = rv740_get_dll_speed(pi->mem_gddr5, pi 286 drivers/gpu/drm/radeon/rv740_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 288 drivers/gpu/drm/radeon/rv740_dpm.c pi->clk_regs.rv770.cg_spll_func_cntl = pi 290 drivers/gpu/drm/radeon/rv740_dpm.c pi->clk_regs.rv770.cg_spll_func_cntl_2 = pi 292 drivers/gpu/drm/radeon/rv740_dpm.c pi->clk_regs.rv770.cg_spll_func_cntl_3 = pi 294 drivers/gpu/drm/radeon/rv740_dpm.c pi->clk_regs.rv770.cg_spll_spread_spectrum = pi 296 drivers/gpu/drm/radeon/rv740_dpm.c pi->clk_regs.rv770.cg_spll_spread_spectrum_2 = pi 299 drivers/gpu/drm/radeon/rv740_dpm.c pi->clk_regs.rv770.mpll_ad_func_cntl = pi 301 drivers/gpu/drm/radeon/rv740_dpm.c pi->clk_regs.rv770.mpll_ad_func_cntl_2 = pi 303 drivers/gpu/drm/radeon/rv740_dpm.c pi->clk_regs.rv770.mpll_dq_func_cntl = pi 305 drivers/gpu/drm/radeon/rv740_dpm.c pi->clk_regs.rv770.mpll_dq_func_cntl_2 = pi 307 drivers/gpu/drm/radeon/rv740_dpm.c pi->clk_regs.rv770.mclk_pwrmgt_cntl = pi 309 drivers/gpu/drm/radeon/rv740_dpm.c pi->clk_regs.rv770.dll_cntl = RREG32(DLL_CNTL); pi 310 drivers/gpu/drm/radeon/rv740_dpm.c pi->clk_regs.rv770.mpll_ss1 = RREG32(MPLL_SS1); pi 311 drivers/gpu/drm/radeon/rv740_dpm.c pi->clk_regs.rv770.mpll_ss2 = RREG32(MPLL_SS2); pi 317 drivers/gpu/drm/radeon/rv740_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 318 drivers/gpu/drm/radeon/rv740_dpm.c u32 mpll_ad_func_cntl = pi->clk_regs.rv770.mpll_ad_func_cntl; pi 319 drivers/gpu/drm/radeon/rv740_dpm.c u32 mpll_ad_func_cntl_2 = pi->clk_regs.rv770.mpll_ad_func_cntl_2; pi 320 drivers/gpu/drm/radeon/rv740_dpm.c u32 mpll_dq_func_cntl = pi->clk_regs.rv770.mpll_dq_func_cntl; pi 321 drivers/gpu/drm/radeon/rv740_dpm.c u32 mpll_dq_func_cntl_2 = pi->clk_regs.rv770.mpll_dq_func_cntl_2; pi 322 drivers/gpu/drm/radeon/rv740_dpm.c u32 spll_func_cntl = pi->clk_regs.rv770.cg_spll_func_cntl; pi 323 drivers/gpu/drm/radeon/rv740_dpm.c u32 spll_func_cntl_2 = pi->clk_regs.rv770.cg_spll_func_cntl_2; pi 324 drivers/gpu/drm/radeon/rv740_dpm.c u32 spll_func_cntl_3 = pi->clk_regs.rv770.cg_spll_func_cntl_3; pi 325 drivers/gpu/drm/radeon/rv740_dpm.c u32 mclk_pwrmgt_cntl = pi->clk_regs.rv770.mclk_pwrmgt_cntl; pi 326 drivers/gpu/drm/radeon/rv740_dpm.c u32 dll_cntl = pi->clk_regs.rv770.dll_cntl; pi 332 drivers/gpu/drm/radeon/rv740_dpm.c if (pi->acpi_vddc) { pi 333 drivers/gpu/drm/radeon/rv740_dpm.c rv770_populate_vddc_value(rdev, pi->acpi_vddc, pi 336 drivers/gpu/drm/radeon/rv740_dpm.c pi->pcie_gen2 ? pi 337 drivers/gpu/drm/radeon/rv740_dpm.c pi->acpi_pcie_gen2 : 0; pi 339 drivers/gpu/drm/radeon/rv740_dpm.c pi->acpi_pcie_gen2; pi 341 drivers/gpu/drm/radeon/rv740_dpm.c rv770_populate_vddc_value(rdev, pi->min_vddc_in_table, pi 56 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rdev->pm.dpm.priv; pi 58 drivers/gpu/drm/radeon/rv770_dpm.c return pi; pi 63 drivers/gpu/drm/radeon/rv770_dpm.c struct evergreen_power_info *pi = rdev->pm.dpm.priv; pi 65 drivers/gpu/drm/radeon/rv770_dpm.c return pi; pi 71 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 80 drivers/gpu/drm/radeon/rv770_dpm.c if (!pi->boot_in_gen2) { pi 145 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 158 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->mgcgtssm) pi 237 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 240 drivers/gpu/drm/radeon/rv770_dpm.c pi->soft_regs_start + reg_offset, pi 241 drivers/gpu/drm/radeon/rv770_dpm.c value, pi->sram_end); pi 248 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 251 drivers/gpu/drm/radeon/rv770_dpm.c pi->soft_regs_start + reg_offset, pi 252 drivers/gpu/drm/radeon/rv770_dpm.c value, pi->sram_end); pi 260 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 271 drivers/gpu/drm/radeon/rv770_dpm.c a_n = (int)state->medium.sclk * pi->lmp + pi 272 drivers/gpu/drm/radeon/rv770_dpm.c (int)state->low.sclk * (R600_AH_DFLT - pi->rlp); pi 273 drivers/gpu/drm/radeon/rv770_dpm.c a_d = (int)state->low.sclk * (100 - (int)pi->rlp) + pi 274 drivers/gpu/drm/radeon/rv770_dpm.c (int)state->medium.sclk * pi->lmp; pi 276 drivers/gpu/drm/radeon/rv770_dpm.c l[1] = (u8)(pi->lmp - (int)pi->lmp * a_n / a_d); pi 277 drivers/gpu/drm/radeon/rv770_dpm.c r[0] = (u8)(pi->rlp + (100 - (int)pi->rlp) * a_n / a_d); pi 279 drivers/gpu/drm/radeon/rv770_dpm.c a_n = (int)state->high.sclk * pi->lhp + (int)state->medium.sclk * pi 280 drivers/gpu/drm/radeon/rv770_dpm.c (R600_AH_DFLT - pi->rmp); pi 281 drivers/gpu/drm/radeon/rv770_dpm.c a_d = (int)state->medium.sclk * (100 - (int)pi->rmp) + pi 282 drivers/gpu/drm/radeon/rv770_dpm.c (int)state->high.sclk * pi->lhp; pi 284 drivers/gpu/drm/radeon/rv770_dpm.c l[2] = (u8)(pi->lhp - (int)pi->lhp * a_n / a_d); pi 285 drivers/gpu/drm/radeon/rv770_dpm.c r[1] = (u8)(pi->rmp + (100 - (int)pi->rmp) * a_n / a_d); pi 288 drivers/gpu/drm/radeon/rv770_dpm.c a_t = CG_R(r[i] * pi->bsp / 200) | CG_L(l[i] * pi->bsp / 200); pi 292 drivers/gpu/drm/radeon/rv770_dpm.c a_t = CG_R(r[RV770_SMC_PERFORMANCE_LEVELS_PER_SWSTATE - 1] * pi->pbsp / 200) | pi 293 drivers/gpu/drm/radeon/rv770_dpm.c CG_L(l[RV770_SMC_PERFORMANCE_LEVELS_PER_SWSTATE - 1] * pi->pbsp / 200); pi 305 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 309 drivers/gpu/drm/radeon/rv770_dpm.c smc_state->levels[i].bSP = cpu_to_be32(pi->dsp); pi 312 drivers/gpu/drm/radeon/rv770_dpm.c cpu_to_be32(pi->psp); pi 389 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 392 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.mpll_ad_func_cntl; pi 394 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.mpll_ad_func_cntl_2; pi 396 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.mpll_dq_func_cntl; pi 398 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.mpll_dq_func_cntl_2; pi 400 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.mclk_pwrmgt_cntl; pi 401 drivers/gpu/drm/radeon/rv770_dpm.c u32 dll_cntl = pi->clk_regs.rv770.dll_cntl; pi 418 drivers/gpu/drm/radeon/rv770_dpm.c pi->mem_gddr5, pi 443 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->mem_gddr5) { pi 446 drivers/gpu/drm/radeon/rv770_dpm.c pi->mem_gddr5, pi 487 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 490 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.cg_spll_func_cntl; pi 492 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.cg_spll_func_cntl_2; pi 494 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.cg_spll_func_cntl_3; pi 496 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.cg_spll_spread_spectrum; pi 498 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.cg_spll_spread_spectrum_2; pi 537 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->sclk_ss) { pi 568 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 571 drivers/gpu/drm/radeon/rv770_dpm.c if (!pi->voltage_control) { pi 577 drivers/gpu/drm/radeon/rv770_dpm.c for (i = 0; i < pi->valid_vddc_entries; i++) { pi 578 drivers/gpu/drm/radeon/rv770_dpm.c if (vddc <= pi->vddc_table[i].vddc) { pi 579 drivers/gpu/drm/radeon/rv770_dpm.c voltage->index = pi->vddc_table[i].vddc_index; pi 585 drivers/gpu/drm/radeon/rv770_dpm.c if (i == pi->valid_vddc_entries) pi 594 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 596 drivers/gpu/drm/radeon/rv770_dpm.c if (!pi->mvdd_control) { pi 602 drivers/gpu/drm/radeon/rv770_dpm.c if (mclk <= pi->mvdd_split_frequency) { pi 618 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 621 drivers/gpu/drm/radeon/rv770_dpm.c level->gen2PCIE = pi->pcie_gen2 ? pi 640 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->mem_gddr5) { pi 641 drivers/gpu/drm/radeon/rv770_dpm.c if (pl->mclk <= pi->mclk_strobe_mode_threshold) pi 647 drivers/gpu/drm/radeon/rv770_dpm.c if (pl->mclk > pi->mclk_edc_enable_threshold) pi 742 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 756 drivers/gpu/drm/radeon/rv770_dpm.c STATE0(64 * high_clock / pi->boot_sclk) | pi 763 drivers/gpu/drm/radeon/rv770_dpm.c POWERMODE0(rv770_calculate_memory_refresh_rate(rdev, pi->boot_sclk)) | pi 782 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 785 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->sclk_ss) pi 788 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->mclk_ss) { pi 806 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 808 drivers/gpu/drm/radeon/rv770_dpm.c if ((rdev->family == CHIP_RV770) && !pi->mem_gddr5) { pi 810 drivers/gpu/drm/radeon/rv770_dpm.c (MPLL_LOCK_TIME(R600_MPLLLOCKTIME_DFLT * pi->ref_div) | pi 817 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 820 drivers/gpu/drm/radeon/rv770_dpm.c r600_calculate_u_and_p(pi->asi, pi 823 drivers/gpu/drm/radeon/rv770_dpm.c &pi->bsp, pi 824 drivers/gpu/drm/radeon/rv770_dpm.c &pi->bsu); pi 826 drivers/gpu/drm/radeon/rv770_dpm.c r600_calculate_u_and_p(pi->pasi, pi 829 drivers/gpu/drm/radeon/rv770_dpm.c &pi->pbsp, pi 830 drivers/gpu/drm/radeon/rv770_dpm.c &pi->pbsu); pi 832 drivers/gpu/drm/radeon/rv770_dpm.c pi->dsp = BSP(pi->bsp) | BSU(pi->bsu); pi 833 drivers/gpu/drm/radeon/rv770_dpm.c pi->psp = BSP(pi->pbsp) | BSU(pi->pbsu); pi 835 drivers/gpu/drm/radeon/rv770_dpm.c WREG32(CG_BSP, pi->dsp); pi 889 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 891 drivers/gpu/drm/radeon/rv770_dpm.c WREG32(CG_FTV, pi->vrc); pi 901 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 907 drivers/gpu/drm/radeon/rv770_dpm.c ret = rv770_load_smc_ucode(rdev, pi->sram_end); pi 917 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 920 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.mpll_ad_func_cntl; pi 922 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.mpll_ad_func_cntl_2; pi 924 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.mpll_dq_func_cntl; pi 926 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.mpll_dq_func_cntl_2; pi 928 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.cg_spll_func_cntl; pi 930 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.cg_spll_func_cntl_2; pi 932 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.cg_spll_func_cntl_3; pi 940 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->acpi_vddc) { pi 941 drivers/gpu/drm/radeon/rv770_dpm.c rv770_populate_vddc_value(rdev, pi->acpi_vddc, pi 943 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->pcie_gen2) { pi 944 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->acpi_pcie_gen2) pi 950 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->acpi_pcie_gen2) pi 955 drivers/gpu/drm/radeon/rv770_dpm.c rv770_populate_vddc_value(rdev, pi->min_vddc_in_table, pi 1008 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1010 drivers/gpu/drm/radeon/rv770_dpm.c if ((pi->s0_vid_lower_smio_cntl & pi->mvdd_mask_low) == pi 1011 drivers/gpu/drm/radeon/rv770_dpm.c (pi->mvdd_low_smio[MVDD_LOW_INDEX] & pi->mvdd_mask_low) ) { pi 1027 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1031 drivers/gpu/drm/radeon/rv770_dpm.c cpu_to_be32(pi->clk_regs.rv770.mpll_ad_func_cntl); pi 1033 drivers/gpu/drm/radeon/rv770_dpm.c cpu_to_be32(pi->clk_regs.rv770.mpll_ad_func_cntl_2); pi 1035 drivers/gpu/drm/radeon/rv770_dpm.c cpu_to_be32(pi->clk_regs.rv770.mpll_dq_func_cntl); pi 1037 drivers/gpu/drm/radeon/rv770_dpm.c cpu_to_be32(pi->clk_regs.rv770.mpll_dq_func_cntl_2); pi 1039 drivers/gpu/drm/radeon/rv770_dpm.c cpu_to_be32(pi->clk_regs.rv770.mclk_pwrmgt_cntl); pi 1041 drivers/gpu/drm/radeon/rv770_dpm.c cpu_to_be32(pi->clk_regs.rv770.dll_cntl); pi 1044 drivers/gpu/drm/radeon/rv770_dpm.c cpu_to_be32(pi->clk_regs.rv770.mpll_ss1); pi 1046 drivers/gpu/drm/radeon/rv770_dpm.c cpu_to_be32(pi->clk_regs.rv770.mpll_ss2); pi 1052 drivers/gpu/drm/radeon/rv770_dpm.c cpu_to_be32(pi->clk_regs.rv770.cg_spll_func_cntl); pi 1054 drivers/gpu/drm/radeon/rv770_dpm.c cpu_to_be32(pi->clk_regs.rv770.cg_spll_func_cntl_2); pi 1056 drivers/gpu/drm/radeon/rv770_dpm.c cpu_to_be32(pi->clk_regs.rv770.cg_spll_func_cntl_3); pi 1058 drivers/gpu/drm/radeon/rv770_dpm.c cpu_to_be32(pi->clk_regs.rv770.cg_spll_spread_spectrum); pi 1060 drivers/gpu/drm/radeon/rv770_dpm.c cpu_to_be32(pi->clk_regs.rv770.cg_spll_spread_spectrum_2); pi 1079 drivers/gpu/drm/radeon/rv770_dpm.c table->initialState.levels[0].bSP = cpu_to_be32(pi->dsp); pi 1081 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->boot_in_gen2) pi 1091 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->mem_gddr5) { pi 1092 drivers/gpu/drm/radeon/rv770_dpm.c if (initial_state->low.mclk <= pi->mclk_strobe_mode_threshold) pi 1098 drivers/gpu/drm/radeon/rv770_dpm.c if (initial_state->low.mclk >= pi->mclk_edc_enable_threshold) pi 1116 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1119 drivers/gpu/drm/radeon/rv770_dpm.c for (i = 0; i < pi->valid_vddc_entries; i++) { pi 1120 drivers/gpu/drm/radeon/rv770_dpm.c table->highSMIO[pi->vddc_table[i].vddc_index] = pi 1121 drivers/gpu/drm/radeon/rv770_dpm.c pi->vddc_table[i].high_smio; pi 1122 drivers/gpu/drm/radeon/rv770_dpm.c table->lowSMIO[pi->vddc_table[i].vddc_index] = pi 1123 drivers/gpu/drm/radeon/rv770_dpm.c cpu_to_be32(pi->vddc_table[i].low_smio); pi 1128 drivers/gpu/drm/radeon/rv770_dpm.c cpu_to_be32(pi->vddc_mask_low); pi 1131 drivers/gpu/drm/radeon/rv770_dpm.c ((i < pi->valid_vddc_entries) && pi 1132 drivers/gpu/drm/radeon/rv770_dpm.c (pi->max_vddc_in_table > pi 1133 drivers/gpu/drm/radeon/rv770_dpm.c pi->vddc_table[i].vddc)); pi 1137 drivers/gpu/drm/radeon/rv770_dpm.c pi->vddc_table[i].vddc_index; pi 1145 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1147 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->mvdd_control) { pi 1149 drivers/gpu/drm/radeon/rv770_dpm.c cpu_to_be32(pi->mvdd_low_smio[MVDD_HIGH_INDEX]); pi 1151 drivers/gpu/drm/radeon/rv770_dpm.c cpu_to_be32(pi->mvdd_low_smio[MVDD_LOW_INDEX]); pi 1155 drivers/gpu/drm/radeon/rv770_dpm.c cpu_to_be32(pi->mvdd_mask_low); pi 1164 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1166 drivers/gpu/drm/radeon/rv770_dpm.c RV770_SMC_STATETABLE *table = &pi->smc_statetable; pi 1171 drivers/gpu/drm/radeon/rv770_dpm.c pi->boot_sclk = boot_state->low.sclk; pi 1203 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->mem_gddr5) pi 1225 drivers/gpu/drm/radeon/rv770_dpm.c pi->state_table_start, pi 1228 drivers/gpu/drm/radeon/rv770_dpm.c pi->sram_end); pi 1233 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1251 drivers/gpu/drm/radeon/rv770_dpm.c pi->vddc_table[i].vddc = (u16)(min + i * step); pi 1253 drivers/gpu/drm/radeon/rv770_dpm.c pi->vddc_table[i].vddc, pi 1256 drivers/gpu/drm/radeon/rv770_dpm.c pi->vddc_table[i].low_smio = gpio_pins & gpio_mask; pi 1257 drivers/gpu/drm/radeon/rv770_dpm.c pi->vddc_table[i].high_smio = 0; pi 1258 drivers/gpu/drm/radeon/rv770_dpm.c pi->vddc_mask_low = gpio_mask; pi 1260 drivers/gpu/drm/radeon/rv770_dpm.c if ((pi->vddc_table[i].low_smio != pi 1261 drivers/gpu/drm/radeon/rv770_dpm.c pi->vddc_table[i - 1].low_smio ) || pi 1262 drivers/gpu/drm/radeon/rv770_dpm.c (pi->vddc_table[i].high_smio != pi 1263 drivers/gpu/drm/radeon/rv770_dpm.c pi->vddc_table[i - 1].high_smio)) pi 1266 drivers/gpu/drm/radeon/rv770_dpm.c pi->vddc_table[i].vddc_index = vddc_index; pi 1269 drivers/gpu/drm/radeon/rv770_dpm.c pi->valid_vddc_entries = (u8)steps; pi 1284 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1290 drivers/gpu/drm/radeon/rv770_dpm.c pi->mvdd_mask_low = gpio_mask; pi 1291 drivers/gpu/drm/radeon/rv770_dpm.c pi->mvdd_low_smio[MVDD_HIGH_INDEX] = pi 1297 drivers/gpu/drm/radeon/rv770_dpm.c pi->mvdd_low_smio[MVDD_LOW_INDEX] = pi 1310 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1317 drivers/gpu/drm/radeon/rv770_dpm.c pi->mvdd_control = false; pi 1321 drivers/gpu/drm/radeon/rv770_dpm.c pi->mvdd_split_frequency = pi 1324 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->mvdd_split_frequency == 0) { pi 1325 drivers/gpu/drm/radeon/rv770_dpm.c pi->mvdd_control = false; pi 1384 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1385 drivers/gpu/drm/radeon/rv770_dpm.c u16 address = pi->state_table_start + pi 1396 drivers/gpu/drm/radeon/rv770_dpm.c pi->sram_end); pi 1518 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1520 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.cg_spll_func_cntl = pi 1522 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.cg_spll_func_cntl_2 = pi 1524 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.cg_spll_func_cntl_3 = pi 1526 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.cg_spll_spread_spectrum = pi 1528 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.cg_spll_spread_spectrum_2 = pi 1530 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.mpll_ad_func_cntl = pi 1532 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.mpll_ad_func_cntl_2 = pi 1534 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.mpll_dq_func_cntl = pi 1536 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.mpll_dq_func_cntl_2 = pi 1538 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.mclk_pwrmgt_cntl = pi 1540 drivers/gpu/drm/radeon/rv770_dpm.c pi->clk_regs.rv770.dll_cntl = RREG32(DLL_CNTL); pi 1555 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1557 drivers/gpu/drm/radeon/rv770_dpm.c pi->s0_vid_lower_smio_cntl = pi 1563 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1581 drivers/gpu/drm/radeon/rv770_dpm.c vid_smio_cntl = pi->s0_vid_lower_smio_cntl; pi 1591 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1598 drivers/gpu/drm/radeon/rv770_dpm.c pi->mem_gddr5 = true; pi 1600 drivers/gpu/drm/radeon/rv770_dpm.c pi->mem_gddr5 = false; pi 1606 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1613 drivers/gpu/drm/radeon/rv770_dpm.c pi->pcie_gen2 = true; pi 1615 drivers/gpu/drm/radeon/rv770_dpm.c pi->pcie_gen2 = false; pi 1617 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->pcie_gen2) { pi 1619 drivers/gpu/drm/radeon/rv770_dpm.c pi->boot_in_gen2 = true; pi 1621 drivers/gpu/drm/radeon/rv770_dpm.c pi->boot_in_gen2 = false; pi 1623 drivers/gpu/drm/radeon/rv770_dpm.c pi->boot_in_gen2 = false; pi 1629 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1631 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->gfx_clock_gating) { pi 1648 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1662 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->gfx_clock_gating) pi 1671 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1675 drivers/gpu/drm/radeon/rv770_dpm.c pi->mclk_odt_threshold = 0; pi 1685 drivers/gpu/drm/radeon/rv770_dpm.c pi->mclk_odt_threshold = 30000; pi 1691 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1695 drivers/gpu/drm/radeon/rv770_dpm.c pi->max_vddc = 0; pi 1697 drivers/gpu/drm/radeon/rv770_dpm.c pi->max_vddc = vddc; pi 1747 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1753 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->mclk_odt_threshold == 0) pi 1756 drivers/gpu/drm/radeon/rv770_dpm.c if (current_state->high.mclk <= pi->mclk_odt_threshold) pi 1759 drivers/gpu/drm/radeon/rv770_dpm.c if (new_state->high.mclk <= pi->mclk_odt_threshold) pi 1776 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1782 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->mclk_odt_threshold == 0) pi 1785 drivers/gpu/drm/radeon/rv770_dpm.c if (current_state->high.mclk <= pi->mclk_odt_threshold) pi 1788 drivers/gpu/drm/radeon/rv770_dpm.c if (new_state->high.mclk <= pi->mclk_odt_threshold) pi 1803 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1805 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->mclk_odt_threshold == 0) pi 1814 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1842 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->thermal_protection) pi 1853 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1856 drivers/gpu/drm/radeon/rv770_dpm.c if (!(pi->active_auto_throttle_sources & (1 << source))) { pi 1857 drivers/gpu/drm/radeon/rv770_dpm.c pi->active_auto_throttle_sources |= 1 << source; pi 1858 drivers/gpu/drm/radeon/rv770_dpm.c rv770_set_dpm_event_sources(rdev, pi->active_auto_throttle_sources); pi 1861 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->active_auto_throttle_sources & (1 << source)) { pi 1862 drivers/gpu/drm/radeon/rv770_dpm.c pi->active_auto_throttle_sources &= ~(1 << source); pi 1863 drivers/gpu/drm/radeon/rv770_dpm.c rv770_set_dpm_event_sources(rdev, pi->active_auto_throttle_sources); pi 1895 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 1899 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->gfx_clock_gating) pi 1905 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->voltage_control) { pi 1914 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->dcodt) pi 1917 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->mvdd_control) { pi 1930 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->thermal_protection) pi 1943 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->dynamic_pcie_gen2) pi 1965 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->gfx_clock_gating) pi 1968 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->mg_clock_gating) pi 2000 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 2007 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->thermal_protection) pi 2012 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->dynamic_pcie_gen2) pi 2021 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->gfx_clock_gating) pi 2024 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->mg_clock_gating) pi 2038 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 2060 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->dcodt) pi 2072 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->dcodt) pi 2082 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 2086 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->dcodt) pi 2089 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->dcodt) pi 2096 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 2101 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->dcodt) pi 2177 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 2220 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->max_vddc) pi 2221 drivers/gpu/drm/radeon/rv770_dpm.c pl->vddc = pi->max_vddc; pi 2225 drivers/gpu/drm/radeon/rv770_dpm.c pi->acpi_vddc = pl->vddc; pi 2229 drivers/gpu/drm/radeon/rv770_dpm.c pi->acpi_pcie_gen2 = true; pi 2231 drivers/gpu/drm/radeon/rv770_dpm.c pi->acpi_pcie_gen2 = false; pi 2241 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->min_vddc_in_table > pl->vddc) pi 2242 drivers/gpu/drm/radeon/rv770_dpm.c pi->min_vddc_in_table = pl->vddc; pi 2244 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->max_vddc_in_table < pl->vddc) pi 2245 drivers/gpu/drm/radeon/rv770_dpm.c pi->max_vddc_in_table = pl->vddc; pi 2329 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 2332 drivers/gpu/drm/radeon/rv770_dpm.c pi->sclk_ss = radeon_atombios_get_asic_ss_info(rdev, &ss, pi 2334 drivers/gpu/drm/radeon/rv770_dpm.c pi->mclk_ss = radeon_atombios_get_asic_ss_info(rdev, &ss, pi 2337 drivers/gpu/drm/radeon/rv770_dpm.c if (pi->sclk_ss || pi->mclk_ss) pi 2338 drivers/gpu/drm/radeon/rv770_dpm.c pi->dynamic_ss = true; pi 2340 drivers/gpu/drm/radeon/rv770_dpm.c pi->dynamic_ss = false; pi 2345 drivers/gpu/drm/radeon/rv770_dpm.c struct rv7xx_power_info *pi; pi 2349 drivers/gpu/drm/radeon/rv770_dpm.c pi = kzalloc(sizeof(struct rv7xx_power_info), GFP_KERNEL); pi 2350 drivers/gpu/drm/radeon/rv770_dpm.c if (pi == NULL) pi 2352 drivers/gpu/drm/radeon/rv770_dpm.c rdev->pm.dpm.priv = pi; pi 2356 drivers/gpu/drm/radeon/rv770_dpm.c pi->acpi_vddc = 0; pi 2357 drivers/gpu/drm/radeon/rv770_dpm.c pi->min_vddc_in_table = 0; pi 2358 drivers/gpu/drm/radeon/rv770_dpm.c pi->max_vddc_in_table = 0; pi 2376 drivers/gpu/drm/radeon/rv770_dpm.c pi->ref_div = dividers.ref_div + 1; pi 2378 drivers/gpu/drm/radeon/rv770_dpm.c pi->ref_div = R600_REFERENCEDIVIDER_DFLT; pi 2380 drivers/gpu/drm/radeon/rv770_dpm.c pi->mclk_strobe_mode_threshold = 30000; pi 2381 drivers/gpu/drm/radeon/rv770_dpm.c pi->mclk_edc_enable_threshold = 30000; pi 2383 drivers/gpu/drm/radeon/rv770_dpm.c pi->rlp = RV770_RLP_DFLT; pi 2384 drivers/gpu/drm/radeon/rv770_dpm.c pi->rmp = RV770_RMP_DFLT; pi 2385 drivers/gpu/drm/radeon/rv770_dpm.c pi->lhp = RV770_LHP_DFLT; pi 2386 drivers/gpu/drm/radeon/rv770_dpm.c pi->lmp = RV770_LMP_DFLT; pi 2388 drivers/gpu/drm/radeon/rv770_dpm.c pi->voltage_control = pi 2391 drivers/gpu/drm/radeon/rv770_dpm.c pi->mvdd_control = pi 2396 drivers/gpu/drm/radeon/rv770_dpm.c pi->asi = RV770_ASI_DFLT; pi 2397 drivers/gpu/drm/radeon/rv770_dpm.c pi->pasi = RV770_HASI_DFLT; pi 2398 drivers/gpu/drm/radeon/rv770_dpm.c pi->vrc = RV770_VRC_DFLT; pi 2400 drivers/gpu/drm/radeon/rv770_dpm.c pi->power_gating = false; pi 2402 drivers/gpu/drm/radeon/rv770_dpm.c pi->gfx_clock_gating = true; pi 2404 drivers/gpu/drm/radeon/rv770_dpm.c pi->mg_clock_gating = true; pi 2405 drivers/gpu/drm/radeon/rv770_dpm.c pi->mgcgtssm = true; pi 2407 drivers/gpu/drm/radeon/rv770_dpm.c pi->dynamic_pcie_gen2 = true; pi 2410 drivers/gpu/drm/radeon/rv770_dpm.c pi->thermal_protection = true; pi 2412 drivers/gpu/drm/radeon/rv770_dpm.c pi->thermal_protection = false; pi 2414 drivers/gpu/drm/radeon/rv770_dpm.c pi->display_gap = true; pi 2417 drivers/gpu/drm/radeon/rv770_dpm.c pi->dcodt = true; pi 2419 drivers/gpu/drm/radeon/rv770_dpm.c pi->dcodt = false; pi 2421 drivers/gpu/drm/radeon/rv770_dpm.c pi->ulps = true; pi 2423 drivers/gpu/drm/radeon/rv770_dpm.c pi->mclk_stutter_mode_threshold = 0; pi 2425 drivers/gpu/drm/radeon/rv770_dpm.c pi->sram_end = SMC_RAM_END; pi 2426 drivers/gpu/drm/radeon/rv770_dpm.c pi->state_table_start = RV770_SMC_TABLE_ADDRESS; pi 2427 drivers/gpu/drm/radeon/rv770_dpm.c pi->soft_regs_start = RV770_SMC_SOFT_REGISTERS_START; pi 1767 drivers/gpu/drm/radeon/si_dpm.c struct si_power_info *pi = rdev->pm.dpm.priv; pi 1769 drivers/gpu/drm/radeon/si_dpm.c return pi; pi 3281 drivers/gpu/drm/radeon/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 3307 drivers/gpu/drm/radeon/si_dpm.c if (pi->thermal_protection) pi 3318 drivers/gpu/drm/radeon/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 3321 drivers/gpu/drm/radeon/si_dpm.c if (!(pi->active_auto_throttle_sources & (1 << source))) { pi 3322 drivers/gpu/drm/radeon/si_dpm.c pi->active_auto_throttle_sources |= 1 << source; pi 3323 drivers/gpu/drm/radeon/si_dpm.c si_set_dpm_event_sources(rdev, pi->active_auto_throttle_sources); pi 3326 drivers/gpu/drm/radeon/si_dpm.c if (pi->active_auto_throttle_sources & (1 << source)) { pi 3327 drivers/gpu/drm/radeon/si_dpm.c pi->active_auto_throttle_sources &= ~(1 << source); pi 3328 drivers/gpu/drm/radeon/si_dpm.c si_set_dpm_event_sources(rdev, pi->active_auto_throttle_sources); pi 3729 drivers/gpu/drm/radeon/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 3732 drivers/gpu/drm/radeon/si_dpm.c if (pi->sclk_ss) pi 3742 drivers/gpu/drm/radeon/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 3745 drivers/gpu/drm/radeon/si_dpm.c r600_calculate_u_and_p(pi->asi, pi 3748 drivers/gpu/drm/radeon/si_dpm.c &pi->bsp, pi 3749 drivers/gpu/drm/radeon/si_dpm.c &pi->bsu); pi 3751 drivers/gpu/drm/radeon/si_dpm.c r600_calculate_u_and_p(pi->pasi, pi 3754 drivers/gpu/drm/radeon/si_dpm.c &pi->pbsp, pi 3755 drivers/gpu/drm/radeon/si_dpm.c &pi->pbsu); pi 3758 drivers/gpu/drm/radeon/si_dpm.c pi->dsp = BSP(pi->bsp) | BSU(pi->bsu); pi 3759 drivers/gpu/drm/radeon/si_dpm.c pi->psp = BSP(pi->pbsp) | BSU(pi->pbsu); pi 3761 drivers/gpu/drm/radeon/si_dpm.c WREG32(CG_BSP, pi->dsp); pi 3815 drivers/gpu/drm/radeon/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 3817 drivers/gpu/drm/radeon/si_dpm.c WREG32(CG_FTV, pi->vrc); pi 3862 drivers/gpu/drm/radeon/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 3866 drivers/gpu/drm/radeon/si_dpm.c if (mclk <= pi->mclk_strobe_mode_threshold) pi 3869 drivers/gpu/drm/radeon/si_dpm.c if (pi->mem_gddr5) pi 3960 drivers/gpu/drm/radeon/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 3965 drivers/gpu/drm/radeon/si_dpm.c if (pi->voltage_control) { pi 4004 drivers/gpu/drm/radeon/si_dpm.c if (pi->mvdd_control) { pi 4009 drivers/gpu/drm/radeon/si_dpm.c pi->mvdd_control = false; pi 4014 drivers/gpu/drm/radeon/si_dpm.c pi->mvdd_control = false; pi 4051 drivers/gpu/drm/radeon/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 4070 drivers/gpu/drm/radeon/si_dpm.c if (pi->max_vddc_in_table <= eg_pi->vddc_voltage_table.entries[i].value) { pi 4134 drivers/gpu/drm/radeon/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 4137 drivers/gpu/drm/radeon/si_dpm.c if (pi->mvdd_control) { pi 4138 drivers/gpu/drm/radeon/si_dpm.c if (mclk <= pi->mvdd_split_frequency) pi 4356 drivers/gpu/drm/radeon/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 4359 drivers/gpu/drm/radeon/si_dpm.c if (pi->mvdd_control) pi 4371 drivers/gpu/drm/radeon/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 4455 drivers/gpu/drm/radeon/si_dpm.c table->initialState.levels[0].bSP = cpu_to_be32(pi->dsp); pi 4459 drivers/gpu/drm/radeon/si_dpm.c if (pi->mem_gddr5) { pi 4464 drivers/gpu/drm/radeon/si_dpm.c if (initial_state->performance_levels[0].mclk > pi->mclk_edc_enable_threshold) pi 4492 drivers/gpu/drm/radeon/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 4513 drivers/gpu/drm/radeon/si_dpm.c if (pi->acpi_vddc) { pi 4515 drivers/gpu/drm/radeon/si_dpm.c pi->acpi_vddc, &table->ACPIState.levels[0].vddc); pi 4531 drivers/gpu/drm/radeon/si_dpm.c pi->acpi_vddc, pi 4538 drivers/gpu/drm/radeon/si_dpm.c pi->min_vddc_in_table, &table->ACPIState.levels[0].vddc); pi 4558 drivers/gpu/drm/radeon/si_dpm.c pi->min_vddc_in_table, pi 4564 drivers/gpu/drm/radeon/si_dpm.c if (pi->acpi_vddc) { pi 4689 drivers/gpu/drm/radeon/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 4691 drivers/gpu/drm/radeon/si_dpm.c pi->mvdd_split_frequency = 30000; pi 4696 drivers/gpu/drm/radeon/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 4731 drivers/gpu/drm/radeon/si_dpm.c if (pi->mem_gddr5) pi 4786 drivers/gpu/drm/radeon/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 4823 drivers/gpu/drm/radeon/si_dpm.c if (pi->sclk_ss) { pi 4880 drivers/gpu/drm/radeon/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 4908 drivers/gpu/drm/radeon/si_dpm.c if (pi->mem_gddr5) { pi 4914 drivers/gpu/drm/radeon/si_dpm.c if (pi->mclk_ss) { pi 4920 drivers/gpu/drm/radeon/si_dpm.c if (pi->mem_gddr5) pi 4967 drivers/gpu/drm/radeon/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 4971 drivers/gpu/drm/radeon/si_dpm.c smc_state->levels[i].bSP = cpu_to_be32(pi->dsp); pi 4974 drivers/gpu/drm/radeon/si_dpm.c cpu_to_be32(pi->psp); pi 4981 drivers/gpu/drm/radeon/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 5001 drivers/gpu/drm/radeon/si_dpm.c if (pi->mclk_stutter_mode_threshold && pi 5002 drivers/gpu/drm/radeon/si_dpm.c (pl->mclk <= pi->mclk_stutter_mode_threshold) && pi 5012 drivers/gpu/drm/radeon/si_dpm.c if (pi->mem_gddr5) { pi 5013 drivers/gpu/drm/radeon/si_dpm.c if (pl->mclk > pi->mclk_edc_enable_threshold) pi 5090 drivers/gpu/drm/radeon/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 5123 drivers/gpu/drm/radeon/si_dpm.c a_t |= CG_R(t_l * pi->bsp / 20000); pi 5127 drivers/gpu/drm/radeon/si_dpm.c pi->pbsp : pi->bsp; pi 5359 drivers/gpu/drm/radeon/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 5386 drivers/gpu/drm/radeon/si_dpm.c if (!pi->mem_gddr5) pi 5393 drivers/gpu/drm/radeon/si_dpm.c if (!pi->mem_gddr5) { pi 6351 drivers/gpu/drm/radeon/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 6359 drivers/gpu/drm/radeon/si_dpm.c if (pi->voltage_control || si_pi->voltage_control_svi2) pi 6361 drivers/gpu/drm/radeon/si_dpm.c if (pi->mvdd_control) pi 6363 drivers/gpu/drm/radeon/si_dpm.c if (pi->voltage_control || si_pi->voltage_control_svi2) { pi 6375 drivers/gpu/drm/radeon/si_dpm.c if (pi->dynamic_ss) pi 6377 drivers/gpu/drm/radeon/si_dpm.c if (pi->thermal_protection) pi 6498 drivers/gpu/drm/radeon/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 6506 drivers/gpu/drm/radeon/si_dpm.c if (pi->thermal_protection) pi 6736 drivers/gpu/drm/radeon/si_dpm.c struct rv7xx_power_info *pi = rv770_get_pi(rdev); pi 6766 drivers/gpu/drm/radeon/si_dpm.c pi->acpi_vddc = pl->vddc; pi 6782 drivers/gpu/drm/radeon/si_dpm.c if (pi->min_vddc_in_table > pl->vddc) pi 6783 drivers/gpu/drm/radeon/si_dpm.c pi->min_vddc_in_table = pl->vddc; pi 6785 drivers/gpu/drm/radeon/si_dpm.c if (pi->max_vddc_in_table < pl->vddc) pi 6786 drivers/gpu/drm/radeon/si_dpm.c pi->max_vddc_in_table = pl->vddc; pi 6902 drivers/gpu/drm/radeon/si_dpm.c struct rv7xx_power_info *pi; pi 6917 drivers/gpu/drm/radeon/si_dpm.c pi = &eg_pi->rv7xx; pi 6943 drivers/gpu/drm/radeon/si_dpm.c pi->acpi_vddc = 0; pi 6945 drivers/gpu/drm/radeon/si_dpm.c pi->min_vddc_in_table = 0; pi 6946 drivers/gpu/drm/radeon/si_dpm.c pi->max_vddc_in_table = 0; pi 6986 drivers/gpu/drm/radeon/si_dpm.c pi->ref_div = dividers.ref_div + 1; pi 6988 drivers/gpu/drm/radeon/si_dpm.c pi->ref_div = R600_REFERENCEDIVIDER_DFLT; pi 6992 drivers/gpu/drm/radeon/si_dpm.c pi->mclk_strobe_mode_threshold = 40000; pi 6994 drivers/gpu/drm/radeon/si_dpm.c pi->mclk_stutter_mode_threshold = 0; pi 6996 drivers/gpu/drm/radeon/si_dpm.c pi->mclk_stutter_mode_threshold = pi->mclk_strobe_mode_threshold; pi 6997 drivers/gpu/drm/radeon/si_dpm.c pi->mclk_edc_enable_threshold = 40000; pi 7002 drivers/gpu/drm/radeon/si_dpm.c pi->voltage_control = pi 7005 drivers/gpu/drm/radeon/si_dpm.c if (!pi->voltage_control) { pi 7014 drivers/gpu/drm/radeon/si_dpm.c pi->mvdd_control = pi 7032 drivers/gpu/drm/radeon/si_dpm.c pi->asi = RV770_ASI_DFLT; pi 7033 drivers/gpu/drm/radeon/si_dpm.c pi->pasi = CYPRESS_HASI_DFLT; pi 7034 drivers/gpu/drm/radeon/si_dpm.c pi->vrc = SISLANDS_VRC_DFLT; pi 7036 drivers/gpu/drm/radeon/si_dpm.c pi->gfx_clock_gating = true; pi 7042 drivers/gpu/drm/radeon/si_dpm.c pi->thermal_protection = true; pi 7044 drivers/gpu/drm/radeon/si_dpm.c pi->thermal_protection = false; pi 83 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = rdev->pm.dpm.priv; pi 85 drivers/gpu/drm/radeon/sumo_dpm.c return pi; pi 286 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 288 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_gfx_clock_gating) pi 290 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_gfx_power_gating) pi 292 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_mg_clock_gating) pi 294 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_gfx_clock_gating) pi 296 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_gfx_power_gating) pi 304 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 306 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_gfx_clock_gating) pi 308 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_gfx_power_gating) pi 310 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_mg_clock_gating) pi 317 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 320 drivers/gpu/drm/radeon/sumo_dpm.c pi->pasi = 65535 * 100 / high_clk; pi 321 drivers/gpu/drm/radeon/sumo_dpm.c pi->asi = 65535 * 100 / high_clk; pi 323 drivers/gpu/drm/radeon/sumo_dpm.c r600_calculate_u_and_p(pi->asi, pi 324 drivers/gpu/drm/radeon/sumo_dpm.c xclk, 16, &pi->bsp, &pi->bsu); pi 326 drivers/gpu/drm/radeon/sumo_dpm.c r600_calculate_u_and_p(pi->pasi, pi 327 drivers/gpu/drm/radeon/sumo_dpm.c xclk, 16, &pi->pbsp, &pi->pbsu); pi 329 drivers/gpu/drm/radeon/sumo_dpm.c pi->dsp = BSP(pi->bsp) | BSU(pi->bsu); pi 330 drivers/gpu/drm/radeon/sumo_dpm.c pi->psp = BSP(pi->pbsp) | BSU(pi->pbsu); pi 335 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 337 drivers/gpu/drm/radeon/sumo_dpm.c WREG32(CG_BSP_0, pi->psp); pi 344 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 350 drivers/gpu/drm/radeon/sumo_dpm.c highest_engine_clock = pi->boost_pl.sclk; pi 355 drivers/gpu/drm/radeon/sumo_dpm.c WREG32(CG_BSP_0 + (i * 4), pi->dsp); pi 357 drivers/gpu/drm/radeon/sumo_dpm.c WREG32(CG_BSP_0 + (i * 4), pi->psp); pi 360 drivers/gpu/drm/radeon/sumo_dpm.c WREG32(CG_BSP_0 + (BOOST_DPM_LEVEL * 4), pi->psp); pi 387 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 409 drivers/gpu/drm/radeon/sumo_dpm.c asi = (i == ps->num_levels - 1) ? pi->pasi : pi->asi; pi 419 drivers/gpu/drm/radeon/sumo_dpm.c asi = pi->pasi; pi 421 drivers/gpu/drm/radeon/sumo_dpm.c m_a = asi * pi->boost_pl.sclk / 100; pi 496 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 498 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_sclk_ds) { pi 510 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 512 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_sclk_ds) { pi 532 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 536 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->driver_nbps_policy_disable) pi 549 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 576 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_boost) pi 666 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 670 drivers/gpu/drm/radeon/sumo_dpm.c pi->boost_pl = new_ps->levels[new_ps->num_levels - 1]; pi 671 drivers/gpu/drm/radeon/sumo_dpm.c pi->boost_pl.sclk = pi->sys_info.boost_sclk; pi 672 drivers/gpu/drm/radeon/sumo_dpm.c pi->boost_pl.vddc_index = pi->sys_info.boost_vid_2bit; pi 673 drivers/gpu/drm/radeon/sumo_dpm.c pi->boost_pl.sclk_dpm_tdp_limit = pi->sys_info.sclk_dpm_tdp_limit_boost; pi 755 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 770 drivers/gpu/drm/radeon/sumo_dpm.c sumo_program_power_level(rdev, &pi->boost_pl, BOOST_DPM_LEVEL); pi 785 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 790 drivers/gpu/drm/radeon/sumo_dpm.c pi->acpi_pl.sclk, pi 801 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 805 drivers/gpu/drm/radeon/sumo_dpm.c sumo_program_power_level(rdev, &pi->boot_pl, 0); pi 818 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 820 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_gfx_power_gating) { pi 826 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_gfx_power_gating) { pi 827 drivers/gpu/drm/radeon/sumo_dpm.c if (!pi->disable_gfx_power_gating_in_uvd || pi 943 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 946 drivers/gpu/drm/radeon/sumo_dpm.c cg_sclk_dpm_ctrl_3 |= GNB_TT(pi->thermal_auto_throttling + 49); pi 987 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 990 drivers/gpu/drm/radeon/sumo_dpm.c if (!pi->driver_nbps_policy_disable) { pi 1007 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 1016 drivers/gpu/drm/radeon/sumo_dpm.c if (!pi->enable_sclk_ds) pi 1031 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 1034 drivers/gpu/drm/radeon/sumo_dpm.c for (i = 0; i < pi->sys_info.sclk_voltage_mapping_table.num_max_dpm_entries; i++) { pi 1035 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->sys_info.sclk_voltage_mapping_table.entries[i].sclk_frequency >= lower_limit) pi 1036 drivers/gpu/drm/radeon/sumo_dpm.c return pi->sys_info.sclk_voltage_mapping_table.entries[i].sclk_frequency; pi 1039 drivers/gpu/drm/radeon/sumo_dpm.c return pi->sys_info.sclk_voltage_mapping_table.entries[pi->sys_info.sclk_voltage_mapping_table.num_max_dpm_entries - 1].sclk_frequency; pi 1046 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 1047 drivers/gpu/drm/radeon/sumo_dpm.c u32 sclk_in_sr = pi->sys_info.min_sclk; /* ??? */ pi 1056 drivers/gpu/drm/radeon/sumo_dpm.c current_vddc = pi->boot_pl.vddc_index; pi 1057 drivers/gpu/drm/radeon/sumo_dpm.c current_sclk = pi->boot_pl.sclk; pi 1092 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 1094 drivers/gpu/drm/radeon/sumo_dpm.c u32 min_sclk = pi->sys_info.min_sclk; /* XXX check against disp reqs */ pi 1095 drivers/gpu/drm/radeon/sumo_dpm.c u32 sclk_in_sr = pi->sys_info.min_sclk; /* ??? */ pi 1101 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_boost) { pi 1184 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 1186 drivers/gpu/drm/radeon/sumo_dpm.c pi->current_rps = *rps; pi 1187 drivers/gpu/drm/radeon/sumo_dpm.c pi->current_ps = *new_ps; pi 1188 drivers/gpu/drm/radeon/sumo_dpm.c pi->current_rps.ps_priv = &pi->current_ps; pi 1195 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 1197 drivers/gpu/drm/radeon/sumo_dpm.c pi->requested_rps = *rps; pi 1198 drivers/gpu/drm/radeon/sumo_dpm.c pi->requested_ps = *new_ps; pi 1199 drivers/gpu/drm/radeon/sumo_dpm.c pi->requested_rps.ps_priv = &pi->requested_ps; pi 1204 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 1215 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_auto_thermal_throttling) { pi 1227 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_sclk_ds) pi 1229 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_boost) pi 1259 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 1264 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_sclk_ds) pi 1282 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 1288 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_dynamic_patch_ps) pi 1290 drivers/gpu/drm/radeon/sumo_dpm.c &pi->requested_rps, pi 1291 drivers/gpu/drm/radeon/sumo_dpm.c &pi->current_rps); pi 1298 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 1299 drivers/gpu/drm/radeon/sumo_dpm.c struct radeon_ps *new_ps = &pi->requested_rps; pi 1300 drivers/gpu/drm/radeon/sumo_dpm.c struct radeon_ps *old_ps = &pi->current_rps; pi 1302 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_dpm) pi 1304 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_boost) { pi 1308 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_dpm) { pi 1324 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_boost) pi 1326 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_dpm) pi 1334 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 1335 drivers/gpu/drm/radeon/sumo_dpm.c struct radeon_ps *new_ps = &pi->requested_rps; pi 1356 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 1359 drivers/gpu/drm/radeon/sumo_dpm.c pi->fw_version = sumo_get_running_fw_version(rdev); pi 1360 drivers/gpu/drm/radeon/sumo_dpm.c DRM_INFO("Found smc ucode version: 0x%08x\n", pi->fw_version); pi 1395 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 1399 drivers/gpu/drm/radeon/sumo_dpm.c ps->levels[0] = pi->boot_pl; pi 1433 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 1446 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_sclk_ds) { pi 1561 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 1562 drivers/gpu/drm/radeon/sumo_dpm.c u32 vid_7bit = sumo_convert_vid2_to_vid7(rdev, &pi->sys_info.vid_mapping_table, vid_2bit); pi 1657 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 1674 drivers/gpu/drm/radeon/sumo_dpm.c pi->sys_info.bootup_sclk = le32_to_cpu(igp_info->info_6.ulBootUpEngineClock); pi 1675 drivers/gpu/drm/radeon/sumo_dpm.c pi->sys_info.min_sclk = le32_to_cpu(igp_info->info_6.ulMinEngineClock); pi 1676 drivers/gpu/drm/radeon/sumo_dpm.c pi->sys_info.bootup_uma_clk = le32_to_cpu(igp_info->info_6.ulBootUpUMAClock); pi 1677 drivers/gpu/drm/radeon/sumo_dpm.c pi->sys_info.bootup_nb_voltage_index = pi 1680 drivers/gpu/drm/radeon/sumo_dpm.c pi->sys_info.htc_tmp_lmt = 203; pi 1682 drivers/gpu/drm/radeon/sumo_dpm.c pi->sys_info.htc_tmp_lmt = igp_info->info_6.ucHtcTmpLmt; pi 1684 drivers/gpu/drm/radeon/sumo_dpm.c pi->sys_info.htc_hyst_lmt = 5; pi 1686 drivers/gpu/drm/radeon/sumo_dpm.c pi->sys_info.htc_hyst_lmt = igp_info->info_6.ucHtcHystLmt; pi 1687 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->sys_info.htc_tmp_lmt <= pi->sys_info.htc_hyst_lmt) { pi 1691 drivers/gpu/drm/radeon/sumo_dpm.c pi->sys_info.csr_m3_arb_cntl_default[i] = pi 1693 drivers/gpu/drm/radeon/sumo_dpm.c pi->sys_info.csr_m3_arb_cntl_uvd[i] = pi 1695 drivers/gpu/drm/radeon/sumo_dpm.c pi->sys_info.csr_m3_arb_cntl_fs3d[i] = pi 1698 drivers/gpu/drm/radeon/sumo_dpm.c pi->sys_info.sclk_dpm_boost_margin = pi 1700 drivers/gpu/drm/radeon/sumo_dpm.c pi->sys_info.sclk_dpm_throttle_margin = pi 1702 drivers/gpu/drm/radeon/sumo_dpm.c pi->sys_info.sclk_dpm_tdp_limit_pg = pi 1704 drivers/gpu/drm/radeon/sumo_dpm.c pi->sys_info.gnb_tdp_limit = le16_to_cpu(igp_info->info_6.GnbTdpLimit); pi 1705 drivers/gpu/drm/radeon/sumo_dpm.c pi->sys_info.sclk_dpm_tdp_limit_boost = pi 1707 drivers/gpu/drm/radeon/sumo_dpm.c pi->sys_info.boost_sclk = le32_to_cpu(igp_info->info_6.ulBoostEngineCLock); pi 1708 drivers/gpu/drm/radeon/sumo_dpm.c pi->sys_info.boost_vid_2bit = igp_info->info_6.ulBoostVid_2bit; pi 1710 drivers/gpu/drm/radeon/sumo_dpm.c pi->sys_info.enable_boost = true; pi 1712 drivers/gpu/drm/radeon/sumo_dpm.c pi->sys_info.enable_boost = false; pi 1714 drivers/gpu/drm/radeon/sumo_dpm.c &pi->sys_info.disp_clk_voltage_mapping_table, pi 1717 drivers/gpu/drm/radeon/sumo_dpm.c &pi->sys_info.sclk_voltage_mapping_table, pi 1719 drivers/gpu/drm/radeon/sumo_dpm.c sumo_construct_vid_mapping_table(rdev, &pi->sys_info.vid_mapping_table, pi 1728 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 1730 drivers/gpu/drm/radeon/sumo_dpm.c pi->boot_pl.sclk = pi->sys_info.bootup_sclk; pi 1731 drivers/gpu/drm/radeon/sumo_dpm.c pi->boot_pl.vddc_index = pi->sys_info.bootup_nb_voltage_index; pi 1732 drivers/gpu/drm/radeon/sumo_dpm.c pi->boot_pl.ds_divider_index = 0; pi 1733 drivers/gpu/drm/radeon/sumo_dpm.c pi->boot_pl.ss_divider_index = 0; pi 1734 drivers/gpu/drm/radeon/sumo_dpm.c pi->boot_pl.allow_gnb_slow = 1; pi 1735 drivers/gpu/drm/radeon/sumo_dpm.c pi->acpi_pl = pi->boot_pl; pi 1736 drivers/gpu/drm/radeon/sumo_dpm.c pi->current_ps.num_levels = 1; pi 1737 drivers/gpu/drm/radeon/sumo_dpm.c pi->current_ps.levels[0] = pi->boot_pl; pi 1742 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi; pi 1746 drivers/gpu/drm/radeon/sumo_dpm.c pi = kzalloc(sizeof(struct sumo_power_info), GFP_KERNEL); pi 1747 drivers/gpu/drm/radeon/sumo_dpm.c if (pi == NULL) pi 1749 drivers/gpu/drm/radeon/sumo_dpm.c rdev->pm.dpm.priv = pi; pi 1751 drivers/gpu/drm/radeon/sumo_dpm.c pi->driver_nbps_policy_disable = false; pi 1753 drivers/gpu/drm/radeon/sumo_dpm.c pi->disable_gfx_power_gating_in_uvd = true; pi 1755 drivers/gpu/drm/radeon/sumo_dpm.c pi->disable_gfx_power_gating_in_uvd = false; pi 1756 drivers/gpu/drm/radeon/sumo_dpm.c pi->enable_alt_vddnb = true; pi 1757 drivers/gpu/drm/radeon/sumo_dpm.c pi->enable_sclk_ds = true; pi 1758 drivers/gpu/drm/radeon/sumo_dpm.c pi->enable_dynamic_m3_arbiter = false; pi 1759 drivers/gpu/drm/radeon/sumo_dpm.c pi->enable_dynamic_patch_ps = true; pi 1764 drivers/gpu/drm/radeon/sumo_dpm.c pi->enable_gfx_power_gating = false; pi 1766 drivers/gpu/drm/radeon/sumo_dpm.c pi->enable_gfx_power_gating = true; pi 1767 drivers/gpu/drm/radeon/sumo_dpm.c pi->enable_gfx_clock_gating = true; pi 1768 drivers/gpu/drm/radeon/sumo_dpm.c pi->enable_mg_clock_gating = true; pi 1769 drivers/gpu/drm/radeon/sumo_dpm.c pi->enable_auto_thermal_throttling = true; pi 1785 drivers/gpu/drm/radeon/sumo_dpm.c pi->pasi = CYPRESS_HASI_DFLT; pi 1786 drivers/gpu/drm/radeon/sumo_dpm.c pi->asi = RV770_ASI_DFLT; pi 1787 drivers/gpu/drm/radeon/sumo_dpm.c pi->thermal_auto_throttling = pi->sys_info.htc_tmp_lmt; pi 1788 drivers/gpu/drm/radeon/sumo_dpm.c pi->enable_boost = pi->sys_info.enable_boost; pi 1789 drivers/gpu/drm/radeon/sumo_dpm.c pi->enable_dpm = true; pi 1815 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 1816 drivers/gpu/drm/radeon/sumo_dpm.c struct radeon_ps *rps = &pi->current_rps; pi 1824 drivers/gpu/drm/radeon/sumo_dpm.c pl = &pi->boost_pl; pi 1842 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 1843 drivers/gpu/drm/radeon/sumo_dpm.c struct radeon_ps *rps = &pi->current_rps; pi 1851 drivers/gpu/drm/radeon/sumo_dpm.c pl = &pi->boost_pl; pi 1863 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 1865 drivers/gpu/drm/radeon/sumo_dpm.c return pi->sys_info.bootup_uma_clk; pi 1883 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 1884 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_ps *requested_state = sumo_get_ps(&pi->requested_rps); pi 1894 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 1896 drivers/gpu/drm/radeon/sumo_dpm.c return pi->sys_info.bootup_uma_clk; pi 1902 drivers/gpu/drm/radeon/sumo_dpm.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 1903 drivers/gpu/drm/radeon/sumo_dpm.c struct radeon_ps *rps = &pi->current_rps; pi 1911 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_boost) pi 1923 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_boost) pi 1938 drivers/gpu/drm/radeon/sumo_dpm.c if (pi->enable_boost) pi 73 drivers/gpu/drm/radeon/sumo_smc.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 76 drivers/gpu/drm/radeon/sumo_smc.c if (!pi->enable_dynamic_m3_arbiter) pi 81 drivers/gpu/drm/radeon/sumo_smc.c pi->sys_info.csr_m3_arb_cntl_default[i]); pi 85 drivers/gpu/drm/radeon/sumo_smc.c pi->sys_info.csr_m3_arb_cntl_uvd[i % NUMBER_OF_M3ARB_PARAM_SETS]); pi 89 drivers/gpu/drm/radeon/sumo_smc.c pi->sys_info.csr_m3_arb_cntl_fs3d[i % NUMBER_OF_M3ARB_PARAM_SETS]); pi 94 drivers/gpu/drm/radeon/sumo_smc.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 97 drivers/gpu/drm/radeon/sumo_smc.c if (!pi->enable_alt_vddnb) pi 101 drivers/gpu/drm/radeon/sumo_smc.c if (pi->fw_version >= 0x00010C00) pi 145 drivers/gpu/drm/radeon/sumo_smc.c struct sumo_power_info *pi = sumo_get_pi(rdev); pi 157 drivers/gpu/drm/radeon/sumo_smc.c WREG32_RCU(RCU_BOOST_MARGIN, pi->sys_info.sclk_dpm_boost_margin); pi 158 drivers/gpu/drm/radeon/sumo_smc.c WREG32_RCU(RCU_THROTTLE_MARGIN, pi->sys_info.sclk_dpm_throttle_margin); pi 159 drivers/gpu/drm/radeon/sumo_smc.c WREG32_RCU(GNB_TDP_LIMIT, pi->sys_info.gnb_tdp_limit); pi 160 drivers/gpu/drm/radeon/sumo_smc.c WREG32_RCU(RCU_SclkDpmTdpLimitPG, pi->sys_info.sclk_dpm_tdp_limit_pg); pi 358 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = rdev->pm.dpm.priv; pi 360 drivers/gpu/drm/radeon/trinity_dpm.c return pi; pi 365 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 393 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->override_dynamic_mgpg && (hw_rev == 0)) pi 548 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 550 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->enable_gfx_clock_gating) pi 552 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->enable_mg_clock_gating) pi 554 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->enable_gfx_power_gating) pi 556 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->enable_mg_clock_gating) { pi 560 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->enable_gfx_clock_gating) pi 562 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->enable_gfx_dynamic_mgpg) pi 564 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->enable_gfx_power_gating) pi 570 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 572 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->enable_gfx_power_gating) pi 574 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->enable_gfx_dynamic_mgpg) pi 576 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->enable_gfx_clock_gating) pi 578 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->enable_mg_clock_gating) { pi 639 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 640 drivers/gpu/drm/radeon/trinity_dpm.c u32 vid_7bit = sumo_convert_vid2_to_vid7(rdev, &pi->sys_info.vid_mapping_table, vid); pi 718 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 731 drivers/gpu/drm/radeon/trinity_dpm.c trinity_set_at(rdev, index, pi->at[index]); pi 860 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 863 drivers/gpu/drm/radeon/trinity_dpm.c trinity_program_power_level(rdev, &pi->boot_pl, 0); pi 926 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 928 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->enable_gfx_power_gating) { pi 932 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->uvd_dpm) { pi 958 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->enable_gfx_power_gating) { pi 1008 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 1012 drivers/gpu/drm/radeon/trinity_dpm.c value |= HT((pi->thermal_auto_throttling + 49) * 8); pi 1013 drivers/gpu/drm/radeon/trinity_dpm.c value |= LT((pi->thermal_auto_throttling + 49 - pi->sys_info.htc_hyst_lmt) * 8); pi 1072 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 1074 drivers/gpu/drm/radeon/trinity_dpm.c pi->current_rps = *rps; pi 1075 drivers/gpu/drm/radeon/trinity_dpm.c pi->current_ps = *new_ps; pi 1076 drivers/gpu/drm/radeon/trinity_dpm.c pi->current_rps.ps_priv = &pi->current_ps; pi 1083 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 1085 drivers/gpu/drm/radeon/trinity_dpm.c pi->requested_rps = *rps; pi 1086 drivers/gpu/drm/radeon/trinity_dpm.c pi->requested_ps = *new_ps; pi 1087 drivers/gpu/drm/radeon/trinity_dpm.c pi->requested_rps.ps_priv = &pi->requested_ps; pi 1092 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 1094 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->enable_bapm) { pi 1103 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 1115 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->enable_auto_thermal_throttling) { pi 1178 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 1180 drivers/gpu/drm/radeon/trinity_dpm.c pi->min_sclk_did = pi 1187 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 1191 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->sys_info.nb_dpm_enable) { pi 1205 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 1206 drivers/gpu/drm/radeon/trinity_dpm.c struct radeon_ps *rps = &pi->current_rps; pi 1235 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 1242 drivers/gpu/drm/radeon/trinity_dpm.c &pi->requested_rps, pi 1243 drivers/gpu/drm/radeon/trinity_dpm.c &pi->current_rps); pi 1250 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 1251 drivers/gpu/drm/radeon/trinity_dpm.c struct radeon_ps *new_ps = &pi->requested_rps; pi 1252 drivers/gpu/drm/radeon/trinity_dpm.c struct radeon_ps *old_ps = &pi->current_rps; pi 1255 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->enable_dpm) { pi 1256 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->enable_bapm) pi 1276 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 1277 drivers/gpu/drm/radeon/trinity_dpm.c struct radeon_ps *new_ps = &pi->requested_rps; pi 1294 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 1297 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->enable_dpm) { pi 1312 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 1313 drivers/gpu/drm/radeon/trinity_dpm.c u32 vid_7bit = sumo_convert_vid2_to_vid7(rdev, &pi->sys_info.vid_mapping_table, vid_2bit); pi 1327 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 1332 drivers/gpu/drm/radeon/trinity_dpm.c ps->levels[0] = pi->boot_pl; pi 1344 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 1346 drivers/gpu/drm/radeon/trinity_dpm.c pi->boot_pl.sclk = pi->sys_info.bootup_sclk; pi 1347 drivers/gpu/drm/radeon/trinity_dpm.c pi->boot_pl.vddc_index = pi->sys_info.bootup_nb_voltage_index; pi 1348 drivers/gpu/drm/radeon/trinity_dpm.c pi->boot_pl.ds_divider_index = 0; pi 1349 drivers/gpu/drm/radeon/trinity_dpm.c pi->boot_pl.ss_divider_index = 0; pi 1350 drivers/gpu/drm/radeon/trinity_dpm.c pi->boot_pl.allow_gnb_slow = 1; pi 1351 drivers/gpu/drm/radeon/trinity_dpm.c pi->boot_pl.force_nbp_state = 0; pi 1352 drivers/gpu/drm/radeon/trinity_dpm.c pi->boot_pl.display_wm = 0; pi 1353 drivers/gpu/drm/radeon/trinity_dpm.c pi->boot_pl.vce_wm = 0; pi 1354 drivers/gpu/drm/radeon/trinity_dpm.c pi->current_ps.num_levels = 1; pi 1355 drivers/gpu/drm/radeon/trinity_dpm.c pi->current_ps.levels[0] = pi->boot_pl; pi 1361 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 1370 drivers/gpu/drm/radeon/trinity_dpm.c if (!pi->enable_sclk_ds) pi 1385 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 1388 drivers/gpu/drm/radeon/trinity_dpm.c for (i = 0; i < pi->sys_info.sclk_voltage_mapping_table.num_max_dpm_entries; i++) { pi 1389 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->sys_info.sclk_voltage_mapping_table.entries[i].sclk_frequency >= lower_limit) pi 1390 drivers/gpu/drm/radeon/trinity_dpm.c return pi->sys_info.sclk_voltage_mapping_table.entries[i].sclk_frequency; pi 1393 drivers/gpu/drm/radeon/trinity_dpm.c if (i == pi->sys_info.sclk_voltage_mapping_table.num_max_dpm_entries) pi 1403 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 1404 drivers/gpu/drm/radeon/trinity_dpm.c u32 sclk_in_sr = pi->sys_info.min_sclk; /* ??? */ pi 1413 drivers/gpu/drm/radeon/trinity_dpm.c current_vddc = pi->boot_pl.vddc_index; pi 1414 drivers/gpu/drm/radeon/trinity_dpm.c current_sclk = pi->boot_pl.sclk; pi 1455 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 1459 drivers/gpu/drm/radeon/trinity_dpm.c if ((rps->vclk == pi->sys_info.uvd_clock_table_entries[i].vclk) && pi 1460 drivers/gpu/drm/radeon/trinity_dpm.c (rps->dclk == pi->sys_info.uvd_clock_table_entries[i].dclk)) pi 1475 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 1479 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->uvd_dpm && r600_is_uvd_state(rps->class, rps->class2)) { pi 1495 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.uvd_clock_table_entries[high_index].vclk_did; pi 1497 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.uvd_clock_table_entries[high_index].dclk_did; pi 1499 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.uvd_clock_table_entries[low_index].vclk_did; pi 1501 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.uvd_clock_table_entries[low_index].dclk_did; pi 1541 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 1543 drivers/gpu/drm/radeon/trinity_dpm.c u32 min_sclk = pi->sys_info.min_sclk; /* XXX check against disp reqs */ pi 1544 drivers/gpu/drm/radeon/trinity_dpm.c u32 sclk_in_sr = pi->sys_info.min_sclk; /* ??? */ pi 1599 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->sys_info.nb_dpm_enable) { pi 1609 drivers/gpu/drm/radeon/trinity_dpm.c (pi->sys_info.uma_channel_number == 1))); pi 1628 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 1630 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->voltage_drop_in_dce) pi 1653 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 1655 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->voltage_drop_in_dce) pi 1712 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 1724 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->enable_sclk_ds) { pi 1830 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 1844 drivers/gpu/drm/radeon/trinity_dpm.c return ((pi->sys_info.dentist_vco_freq * 100) + (divider - 1)) / divider; pi 1849 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 1866 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.bootup_sclk = le32_to_cpu(igp_info->info_7.ulBootUpEngineClock); pi 1867 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.min_sclk = le32_to_cpu(igp_info->info_7.ulMinEngineClock); pi 1868 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.bootup_uma_clk = le32_to_cpu(igp_info->info_7.ulBootUpUMAClock); pi 1869 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.dentist_vco_freq = le32_to_cpu(igp_info->info_7.ulDentistVCOFreq); pi 1870 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.bootup_nb_voltage_index = pi 1873 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.htc_tmp_lmt = 203; pi 1875 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.htc_tmp_lmt = igp_info->info_7.ucHtcTmpLmt; pi 1877 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.htc_hyst_lmt = 5; pi 1879 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.htc_hyst_lmt = igp_info->info_7.ucHtcHystLmt; pi 1880 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->sys_info.htc_tmp_lmt <= pi->sys_info.htc_hyst_lmt) { pi 1884 drivers/gpu/drm/radeon/trinity_dpm.c if (pi->enable_nbps_policy) pi 1885 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.nb_dpm_enable = igp_info->info_7.ucNBDPMEnable; pi 1887 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.nb_dpm_enable = 0; pi 1890 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.nbp_mclk[i] = le32_to_cpu(igp_info->info_7.ulNbpStateMemclkFreq[i]); pi 1891 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.nbp_nclk[i] = le32_to_cpu(igp_info->info_7.ulNbpStateNClkFreq[i]); pi 1894 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.nbp_voltage_index[0] = le16_to_cpu(igp_info->info_7.usNBP0Voltage); pi 1895 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.nbp_voltage_index[1] = le16_to_cpu(igp_info->info_7.usNBP1Voltage); pi 1896 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.nbp_voltage_index[2] = le16_to_cpu(igp_info->info_7.usNBP2Voltage); pi 1897 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.nbp_voltage_index[3] = le16_to_cpu(igp_info->info_7.usNBP3Voltage); pi 1899 drivers/gpu/drm/radeon/trinity_dpm.c if (!pi->sys_info.nb_dpm_enable) { pi 1901 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.nbp_mclk[i] = pi->sys_info.nbp_mclk[0]; pi 1902 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.nbp_nclk[i] = pi->sys_info.nbp_nclk[0]; pi 1903 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.nbp_voltage_index[i] = pi->sys_info.nbp_voltage_index[0]; pi 1907 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.uma_channel_number = igp_info->info_7.ucUMAChannelNumber; pi 1910 drivers/gpu/drm/radeon/trinity_dpm.c &pi->sys_info.sclk_voltage_mapping_table, pi 1912 drivers/gpu/drm/radeon/trinity_dpm.c sumo_construct_vid_mapping_table(rdev, &pi->sys_info.vid_mapping_table, pi 1915 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.uvd_clock_table_entries[0].vclk_did = pi 1917 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.uvd_clock_table_entries[1].vclk_did = pi 1919 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.uvd_clock_table_entries[2].vclk_did = pi 1921 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.uvd_clock_table_entries[3].vclk_did = pi 1924 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.uvd_clock_table_entries[0].dclk_did = pi 1926 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.uvd_clock_table_entries[1].dclk_did = pi 1928 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.uvd_clock_table_entries[2].dclk_did = pi 1930 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.uvd_clock_table_entries[3].dclk_did = pi 1934 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.uvd_clock_table_entries[i].vclk = pi 1936 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.uvd_clock_table_entries[i].vclk_did); pi 1937 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.uvd_clock_table_entries[i].dclk = pi 1939 drivers/gpu/drm/radeon/trinity_dpm.c pi->sys_info.uvd_clock_table_entries[i].dclk_did); pi 1950 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi; pi 1953 drivers/gpu/drm/radeon/trinity_dpm.c pi = kzalloc(sizeof(struct trinity_power_info), GFP_KERNEL); pi 1954 drivers/gpu/drm/radeon/trinity_dpm.c if (pi == NULL) pi 1956 drivers/gpu/drm/radeon/trinity_dpm.c rdev->pm.dpm.priv = pi; pi 1959 drivers/gpu/drm/radeon/trinity_dpm.c pi->at[i] = TRINITY_AT_DFLT; pi 1969 drivers/gpu/drm/radeon/trinity_dpm.c pi->enable_bapm = true; pi 1971 drivers/gpu/drm/radeon/trinity_dpm.c pi->enable_bapm = false; pi 1973 drivers/gpu/drm/radeon/trinity_dpm.c pi->enable_bapm = false; pi 1975 drivers/gpu/drm/radeon/trinity_dpm.c pi->enable_bapm = true; pi 1977 drivers/gpu/drm/radeon/trinity_dpm.c pi->enable_nbps_policy = true; pi 1978 drivers/gpu/drm/radeon/trinity_dpm.c pi->enable_sclk_ds = true; pi 1979 drivers/gpu/drm/radeon/trinity_dpm.c pi->enable_gfx_power_gating = true; pi 1980 drivers/gpu/drm/radeon/trinity_dpm.c pi->enable_gfx_clock_gating = true; pi 1981 drivers/gpu/drm/radeon/trinity_dpm.c pi->enable_mg_clock_gating = false; pi 1982 drivers/gpu/drm/radeon/trinity_dpm.c pi->enable_gfx_dynamic_mgpg = false; pi 1983 drivers/gpu/drm/radeon/trinity_dpm.c pi->override_dynamic_mgpg = false; pi 1984 drivers/gpu/drm/radeon/trinity_dpm.c pi->enable_auto_thermal_throttling = true; pi 1985 drivers/gpu/drm/radeon/trinity_dpm.c pi->voltage_drop_in_dce = false; /* need to restructure dpm/modeset interaction */ pi 1986 drivers/gpu/drm/radeon/trinity_dpm.c pi->uvd_dpm = true; /* ??? */ pi 2006 drivers/gpu/drm/radeon/trinity_dpm.c pi->thermal_auto_throttling = pi->sys_info.htc_tmp_lmt; pi 2007 drivers/gpu/drm/radeon/trinity_dpm.c pi->enable_dpm = true; pi 2033 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 2034 drivers/gpu/drm/radeon/trinity_dpm.c struct radeon_ps *rps = &pi->current_rps; pi 2054 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 2055 drivers/gpu/drm/radeon/trinity_dpm.c struct radeon_ps *rps = &pi->current_rps; pi 2072 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 2074 drivers/gpu/drm/radeon/trinity_dpm.c return pi->sys_info.bootup_uma_clk; pi 2093 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 2094 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_ps *requested_state = trinity_get_ps(&pi->requested_rps); pi 2104 drivers/gpu/drm/radeon/trinity_dpm.c struct trinity_power_info *pi = trinity_get_pi(rdev); pi 2106 drivers/gpu/drm/radeon/trinity_dpm.c return pi->sys_info.bootup_uma_clk; pi 2058 drivers/infiniband/hw/cxgb4/cm.c static void set_tcp_window(struct c4iw_ep *ep, struct port_info *pi) pi 4070 drivers/infiniband/hw/cxgb4/cm.c struct port_info *pi; pi 4154 drivers/infiniband/hw/cxgb4/cm.c pi = (struct port_info *)netdev_priv(pdev); pi 4160 drivers/infiniband/hw/cxgb4/cm.c pi = (struct port_info *)netdev_priv(pdev); pi 4170 drivers/infiniband/hw/cxgb4/cm.c rss_qid = dev->rdev.lldi.rxq_ids[pi->port_id * step]; pi 4186 drivers/infiniband/hw/cxgb4/cm.c rss_qid, pi->port_id); pi 325 drivers/infiniband/hw/efa/efa_com.c u16 pi; pi 328 drivers/infiniband/hw/efa/efa_com.c pi = aq->sq.pc & queue_size_mask; pi 354 drivers/infiniband/hw/efa/efa_com.c aqe = &aq->sq.entries[pi]; pi 804 drivers/infiniband/hw/hfi1/mad.c struct opa_port_info *pi = (struct opa_port_info *)data; pi 814 drivers/infiniband/hw/hfi1/mad.c if (num_ports != 1 || smp_length_check(sizeof(*pi), max_len)) { pi 824 drivers/infiniband/hw/hfi1/mad.c if (ppd->vls_supported / 2 > ARRAY_SIZE(pi->neigh_mtu.pvlx_to_mtu) || pi 830 drivers/infiniband/hw/hfi1/mad.c pi->lid = cpu_to_be32(ppd->lid); pi 836 drivers/infiniband/hw/hfi1/mad.c pi->mkey = ibp->rvp.mkey; pi 838 drivers/infiniband/hw/hfi1/mad.c pi->subnet_prefix = ibp->rvp.gid_prefix; pi 839 drivers/infiniband/hw/hfi1/mad.c pi->sm_lid = cpu_to_be32(ibp->rvp.sm_lid); pi 840 drivers/infiniband/hw/hfi1/mad.c pi->ib_cap_mask = cpu_to_be32(ibp->rvp.port_cap_flags); pi 841 drivers/infiniband/hw/hfi1/mad.c pi->mkey_lease_period = cpu_to_be16(ibp->rvp.mkey_lease_period); pi 842 drivers/infiniband/hw/hfi1/mad.c pi->sm_trap_qp = cpu_to_be32(ppd->sm_trap_qp); pi 843 drivers/infiniband/hw/hfi1/mad.c pi->sa_qp = cpu_to_be32(ppd->sa_qp); pi 845 drivers/infiniband/hw/hfi1/mad.c pi->link_width.enabled = cpu_to_be16(ppd->link_width_enabled); pi 846 drivers/infiniband/hw/hfi1/mad.c pi->link_width.supported = cpu_to_be16(ppd->link_width_supported); pi 847 drivers/infiniband/hw/hfi1/mad.c pi->link_width.active = cpu_to_be16(ppd->link_width_active); pi 849 drivers/infiniband/hw/hfi1/mad.c pi->link_width_downgrade.supported = pi 851 drivers/infiniband/hw/hfi1/mad.c pi->link_width_downgrade.enabled = pi 853 drivers/infiniband/hw/hfi1/mad.c pi->link_width_downgrade.tx_active = pi 855 drivers/infiniband/hw/hfi1/mad.c pi->link_width_downgrade.rx_active = pi 858 drivers/infiniband/hw/hfi1/mad.c pi->link_speed.supported = cpu_to_be16(ppd->link_speed_supported); pi 859 drivers/infiniband/hw/hfi1/mad.c pi->link_speed.active = cpu_to_be16(ppd->link_speed_active); pi 860 drivers/infiniband/hw/hfi1/mad.c pi->link_speed.enabled = cpu_to_be16(ppd->link_speed_enabled); pi 867 drivers/infiniband/hw/hfi1/mad.c pi->port_phys_conf = (ppd->port_type & 0xf); pi 869 drivers/infiniband/hw/hfi1/mad.c pi->port_states.ledenable_offlinereason = ppd->neighbor_normal << 4; pi 870 drivers/infiniband/hw/hfi1/mad.c pi->port_states.ledenable_offlinereason |= pi 879 drivers/infiniband/hw/hfi1/mad.c pi->port_states.ledenable_offlinereason |= is_beaconing_active << 6; pi 880 drivers/infiniband/hw/hfi1/mad.c pi->port_states.ledenable_offlinereason |= pi 883 drivers/infiniband/hw/hfi1/mad.c pi->port_states.portphysstate_portstate = pi 886 drivers/infiniband/hw/hfi1/mad.c pi->mkeyprotect_lmc = (ibp->rvp.mkeyprot << 6) | ppd->lmc; pi 888 drivers/infiniband/hw/hfi1/mad.c memset(pi->neigh_mtu.pvlx_to_mtu, 0, sizeof(pi->neigh_mtu.pvlx_to_mtu)); pi 892 drivers/infiniband/hw/hfi1/mad.c pi->neigh_mtu.pvlx_to_mtu[i / 2] |= (mtu << 4); pi 894 drivers/infiniband/hw/hfi1/mad.c pi->neigh_mtu.pvlx_to_mtu[i / 2] |= mtu; pi 898 drivers/infiniband/hw/hfi1/mad.c pi->neigh_mtu.pvlx_to_mtu[15 / 2] |= mtu; pi 899 drivers/infiniband/hw/hfi1/mad.c pi->smsl = ibp->rvp.sm_sl & OPA_PI_MASK_SMSL; pi 900 drivers/infiniband/hw/hfi1/mad.c pi->operational_vls = hfi1_get_ib_cfg(ppd, HFI1_IB_CFG_OP_VLS); pi 901 drivers/infiniband/hw/hfi1/mad.c pi->partenforce_filterraw |= pi 904 drivers/infiniband/hw/hfi1/mad.c pi->partenforce_filterraw |= OPA_PI_MASK_PARTITION_ENFORCE_IN; pi 906 drivers/infiniband/hw/hfi1/mad.c pi->partenforce_filterraw |= OPA_PI_MASK_PARTITION_ENFORCE_OUT; pi 907 drivers/infiniband/hw/hfi1/mad.c pi->mkey_violations = cpu_to_be16(ibp->rvp.mkey_violations); pi 909 drivers/infiniband/hw/hfi1/mad.c pi->pkey_violations = cpu_to_be16(ibp->rvp.pkey_violations); pi 910 drivers/infiniband/hw/hfi1/mad.c pi->qkey_violations = cpu_to_be16(ibp->rvp.qkey_violations); pi 912 drivers/infiniband/hw/hfi1/mad.c pi->vl.cap = ppd->vls_supported; pi 913 drivers/infiniband/hw/hfi1/mad.c pi->vl.high_limit = cpu_to_be16(ibp->rvp.vl_high_limit); pi 914 drivers/infiniband/hw/hfi1/mad.c pi->vl.arb_high_cap = (u8)hfi1_get_ib_cfg(ppd, HFI1_IB_CFG_VL_HIGH_CAP); pi 915 drivers/infiniband/hw/hfi1/mad.c pi->vl.arb_low_cap = (u8)hfi1_get_ib_cfg(ppd, HFI1_IB_CFG_VL_LOW_CAP); pi 917 drivers/infiniband/hw/hfi1/mad.c pi->clientrereg_subnettimeout = ibp->rvp.subnet_timeout; pi 919 drivers/infiniband/hw/hfi1/mad.c pi->port_link_mode = cpu_to_be16(OPA_PORT_LINK_MODE_OPA << 10 | pi 923 drivers/infiniband/hw/hfi1/mad.c pi->port_ltp_crc_mode = cpu_to_be16(ppd->port_ltp_crc_mode); pi 925 drivers/infiniband/hw/hfi1/mad.c pi->port_mode = cpu_to_be16( pi 929 drivers/infiniband/hw/hfi1/mad.c pi->port_packet_format.supported = pi 932 drivers/infiniband/hw/hfi1/mad.c pi->port_packet_format.enabled = pi 949 drivers/infiniband/hw/hfi1/mad.c pi->flit_control.interleave = cpu_to_be16(0x1400); pi 951 drivers/infiniband/hw/hfi1/mad.c pi->link_down_reason = ppd->local_link_down_reason.sma; pi 952 drivers/infiniband/hw/hfi1/mad.c pi->neigh_link_down_reason = ppd->neigh_link_down_reason.sma; pi 953 drivers/infiniband/hw/hfi1/mad.c pi->port_error_action = cpu_to_be32(ppd->port_error_action); pi 954 drivers/infiniband/hw/hfi1/mad.c pi->mtucap = mtu_to_enum(hfi1_max_mtu, IB_MTU_4096); pi 957 drivers/infiniband/hw/hfi1/mad.c pi->resptimevalue = 3; pi 959 drivers/infiniband/hw/hfi1/mad.c pi->local_port_num = port; pi 962 drivers/infiniband/hw/hfi1/mad.c pi->overall_buffer_space = cpu_to_be16(dd->link_credits); pi 964 drivers/infiniband/hw/hfi1/mad.c pi->neigh_node_guid = cpu_to_be64(ppd->neighbor_guid); pi 965 drivers/infiniband/hw/hfi1/mad.c pi->neigh_port_num = ppd->neighbor_port_number; pi 966 drivers/infiniband/hw/hfi1/mad.c pi->port_neigh_mode = pi 981 drivers/infiniband/hw/hfi1/mad.c pi->buffer_units = cpu_to_be32(buffer_units); pi 983 drivers/infiniband/hw/hfi1/mad.c pi->opa_cap_mask = cpu_to_be16(ibp->rvp.port_cap3_flags); pi 984 drivers/infiniband/hw/hfi1/mad.c pi->collectivemask_multicastmask = ((OPA_COLLECTIVE_NR & 0x7) pi 988 drivers/infiniband/hw/hfi1/mad.c pi->replay_depth.buffer = 0x80; pi 998 drivers/infiniband/hw/hfi1/mad.c pi->replay_depth.wire = tmp; pi 1355 drivers/infiniband/hw/hfi1/mad.c struct opa_port_info *pi = (struct opa_port_info *)data; pi 1375 drivers/infiniband/hw/hfi1/mad.c smp_length_check(sizeof(*pi), max_len)) { pi 1380 drivers/infiniband/hw/hfi1/mad.c lid = be32_to_cpu(pi->lid); pi 1388 drivers/infiniband/hw/hfi1/mad.c smlid = be32_to_cpu(pi->sm_lid); pi 1395 drivers/infiniband/hw/hfi1/mad.c clientrereg = (pi->clientrereg_subnettimeout & pi 1407 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.mkey = pi->mkey; pi 1408 drivers/infiniband/hw/hfi1/mad.c if (ibp->rvp.gid_prefix != pi->subnet_prefix) { pi 1409 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.gid_prefix = pi->subnet_prefix; pi 1413 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.mkey_lease_period = be16_to_cpu(pi->mkey_lease_period); pi 1422 drivers/infiniband/hw/hfi1/mad.c ppd->lmc != (pi->mkeyprotect_lmc & OPA_PI_MASK_LMC)) { pi 1425 drivers/infiniband/hw/hfi1/mad.c if (ppd->lmc != (pi->mkeyprotect_lmc & OPA_PI_MASK_LMC)) pi 1427 drivers/infiniband/hw/hfi1/mad.c hfi1_set_lid(ppd, lid, pi->mkeyprotect_lmc & OPA_PI_MASK_LMC); pi 1442 drivers/infiniband/hw/hfi1/mad.c msl = pi->smsl & OPA_PI_MASK_SMSL; pi 1443 drivers/infiniband/hw/hfi1/mad.c if (pi->partenforce_filterraw & OPA_PI_MASK_LINKINIT_REASON) pi 1445 drivers/infiniband/hw/hfi1/mad.c (pi->partenforce_filterraw & pi 1471 drivers/infiniband/hw/hfi1/mad.c if (pi->link_down_reason == 0) { pi 1476 drivers/infiniband/hw/hfi1/mad.c if (pi->neigh_link_down_reason == 0) { pi 1481 drivers/infiniband/hw/hfi1/mad.c ppd->sm_trap_qp = be32_to_cpu(pi->sm_trap_qp); pi 1482 drivers/infiniband/hw/hfi1/mad.c ppd->sa_qp = be32_to_cpu(pi->sa_qp); pi 1484 drivers/infiniband/hw/hfi1/mad.c ppd->port_error_action = be32_to_cpu(pi->port_error_action); pi 1485 drivers/infiniband/hw/hfi1/mad.c lwe = be16_to_cpu(pi->link_width.enabled); pi 1495 drivers/infiniband/hw/hfi1/mad.c lwe = be16_to_cpu(pi->link_width_downgrade.enabled); pi 1512 drivers/infiniband/hw/hfi1/mad.c lse = be16_to_cpu(pi->link_speed.enabled); pi 1514 drivers/infiniband/hw/hfi1/mad.c if (lse & be16_to_cpu(pi->link_speed.supported)) pi 1521 drivers/infiniband/hw/hfi1/mad.c (pi->mkeyprotect_lmc & OPA_PI_MASK_MKEY_PROT_BIT) >> 6; pi 1522 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.vl_high_limit = be16_to_cpu(pi->vl.high_limit) & 0xFF; pi 1526 drivers/infiniband/hw/hfi1/mad.c if (ppd->vls_supported / 2 > ARRAY_SIZE(pi->neigh_mtu.pvlx_to_mtu) || pi 1533 drivers/infiniband/hw/hfi1/mad.c mtu = enum_to_mtu((pi->neigh_mtu.pvlx_to_mtu[i / 2] >> pi 1536 drivers/infiniband/hw/hfi1/mad.c mtu = enum_to_mtu(pi->neigh_mtu.pvlx_to_mtu[i / 2] & pi 1541 drivers/infiniband/hw/hfi1/mad.c (pi->neigh_mtu.pvlx_to_mtu[0] >> 4) & 0xF); pi 1556 drivers/infiniband/hw/hfi1/mad.c mtu = enum_to_mtu(pi->neigh_mtu.pvlx_to_mtu[15 / 2] & 0xF); pi 1570 drivers/infiniband/hw/hfi1/mad.c vls = pi->operational_vls & OPA_PI_MASK_OPERATIONAL_VL; pi 1574 drivers/infiniband/hw/hfi1/mad.c pi->operational_vls); pi 1583 drivers/infiniband/hw/hfi1/mad.c if (pi->mkey_violations == 0) pi 1586 drivers/infiniband/hw/hfi1/mad.c if (pi->pkey_violations == 0) pi 1589 drivers/infiniband/hw/hfi1/mad.c if (pi->qkey_violations == 0) pi 1593 drivers/infiniband/hw/hfi1/mad.c pi->clientrereg_subnettimeout & OPA_PI_MASK_SUBNET_TIMEOUT; pi 1595 drivers/infiniband/hw/hfi1/mad.c crc_enabled = be16_to_cpu(pi->port_ltp_crc_mode); pi 1603 drivers/infiniband/hw/hfi1/mad.c !!(be16_to_cpu(pi->port_mode) pi 1606 drivers/infiniband/hw/hfi1/mad.c ls_new = pi->port_states.portphysstate_portstate & pi 1608 drivers/infiniband/hw/hfi1/mad.c ps_new = (pi->port_states.portphysstate_portstate & pi 1646 drivers/infiniband/hw/hfi1/mad.c pi->clientrereg_subnettimeout |= clientrereg; pi 391 drivers/infiniband/hw/hfi1/pio.c struct mem_pool_info *pi = &mem_pool_info[i]; pi 394 drivers/infiniband/hw/hfi1/pio.c if (pi->centipercent >= 0) pi 395 drivers/infiniband/hw/hfi1/pio.c pi->blocks = (pool_blocks * pi->centipercent) / 10000; pi 397 drivers/infiniband/hw/hfi1/pio.c if (pi->blocks == 0 && pi->count != 0) { pi 401 drivers/infiniband/hw/hfi1/pio.c i, pi->count); pi 404 drivers/infiniband/hw/hfi1/pio.c if (pi->count == 0) { pi 406 drivers/infiniband/hw/hfi1/pio.c if (pi->blocks != 0) pi 410 drivers/infiniband/hw/hfi1/pio.c i, pi->blocks); pi 411 drivers/infiniband/hw/hfi1/pio.c pi->size = 0; pi 413 drivers/infiniband/hw/hfi1/pio.c pi->size = pi->blocks / pi->count; pi 68 drivers/md/dm-queue-length.c struct path_info *pi, *next; pi 70 drivers/md/dm-queue-length.c list_for_each_entry_safe(pi, next, paths, list) { pi 71 drivers/md/dm-queue-length.c list_del(&pi->list); pi 72 drivers/md/dm-queue-length.c kfree(pi); pi 90 drivers/md/dm-queue-length.c struct path_info *pi; pi 96 drivers/md/dm-queue-length.c pi = path->pscontext; pi 100 drivers/md/dm-queue-length.c DMEMIT("%d ", atomic_read(&pi->qlen)); pi 103 drivers/md/dm-queue-length.c DMEMIT("%u ", pi->repeat_count); pi 115 drivers/md/dm-queue-length.c struct path_info *pi; pi 141 drivers/md/dm-queue-length.c pi = kmalloc(sizeof(*pi), GFP_KERNEL); pi 142 drivers/md/dm-queue-length.c if (!pi) { pi 147 drivers/md/dm-queue-length.c pi->path = path; pi 148 drivers/md/dm-queue-length.c pi->repeat_count = repeat_count; pi 149 drivers/md/dm-queue-length.c atomic_set(&pi->qlen, 0); pi 151 drivers/md/dm-queue-length.c path->pscontext = pi; pi 154 drivers/md/dm-queue-length.c list_add_tail(&pi->list, &s->valid_paths); pi 163 drivers/md/dm-queue-length.c struct path_info *pi = path->pscontext; pi 167 drivers/md/dm-queue-length.c list_move(&pi->list, &s->failed_paths); pi 174 drivers/md/dm-queue-length.c struct path_info *pi = path->pscontext; pi 178 drivers/md/dm-queue-length.c list_move_tail(&pi->list, &s->valid_paths); pi 190 drivers/md/dm-queue-length.c struct path_info *pi = NULL, *best = NULL; pi 198 drivers/md/dm-queue-length.c list_for_each_entry(pi, &s->valid_paths, list) { pi 200 drivers/md/dm-queue-length.c (atomic_read(&pi->qlen) < atomic_read(&best->qlen))) pi 201 drivers/md/dm-queue-length.c best = pi; pi 222 drivers/md/dm-queue-length.c struct path_info *pi = path->pscontext; pi 224 drivers/md/dm-queue-length.c atomic_inc(&pi->qlen); pi 232 drivers/md/dm-queue-length.c struct path_info *pi = path->pscontext; pi 234 drivers/md/dm-queue-length.c atomic_dec(&pi->qlen); pi 34 drivers/md/dm-round-robin.c struct path_info *pi, *next; pi 36 drivers/md/dm-round-robin.c list_for_each_entry_safe(pi, next, paths, list) { pi 37 drivers/md/dm-round-robin.c list_del(&pi->list); pi 38 drivers/md/dm-round-robin.c kfree(pi); pi 90 drivers/md/dm-round-robin.c struct path_info *pi; pi 100 drivers/md/dm-round-robin.c pi = path->pscontext; pi 101 drivers/md/dm-round-robin.c DMEMIT("%u ", pi->repeat_count); pi 117 drivers/md/dm-round-robin.c struct path_info *pi; pi 139 drivers/md/dm-round-robin.c pi = kmalloc(sizeof(*pi), GFP_KERNEL); pi 140 drivers/md/dm-round-robin.c if (!pi) { pi 145 drivers/md/dm-round-robin.c pi->path = path; pi 146 drivers/md/dm-round-robin.c pi->repeat_count = repeat_count; pi 148 drivers/md/dm-round-robin.c path->pscontext = pi; pi 151 drivers/md/dm-round-robin.c list_add_tail(&pi->list, &s->valid_paths); pi 161 drivers/md/dm-round-robin.c struct path_info *pi = p->pscontext; pi 164 drivers/md/dm-round-robin.c list_move(&pi->list, &s->invalid_paths); pi 172 drivers/md/dm-round-robin.c struct path_info *pi = p->pscontext; pi 175 drivers/md/dm-round-robin.c list_move(&pi->list, &s->valid_paths); pi 185 drivers/md/dm-round-robin.c struct path_info *pi = NULL; pi 189 drivers/md/dm-round-robin.c pi = list_entry(s->valid_paths.next, struct path_info, list); pi 190 drivers/md/dm-round-robin.c list_move_tail(&pi->list, &s->valid_paths); pi 194 drivers/md/dm-round-robin.c return pi ? pi->path : NULL; pi 64 drivers/md/dm-service-time.c struct path_info *pi, *next; pi 66 drivers/md/dm-service-time.c list_for_each_entry_safe(pi, next, paths, list) { pi 67 drivers/md/dm-service-time.c list_del(&pi->list); pi 68 drivers/md/dm-service-time.c kfree(pi); pi 86 drivers/md/dm-service-time.c struct path_info *pi; pi 91 drivers/md/dm-service-time.c pi = path->pscontext; pi 95 drivers/md/dm-service-time.c DMEMIT("%d %u ", atomic_read(&pi->in_flight_size), pi 96 drivers/md/dm-service-time.c pi->relative_throughput); pi 99 drivers/md/dm-service-time.c DMEMIT("%u %u ", pi->repeat_count, pi 100 drivers/md/dm-service-time.c pi->relative_throughput); pi 112 drivers/md/dm-service-time.c struct path_info *pi; pi 153 drivers/md/dm-service-time.c pi = kmalloc(sizeof(*pi), GFP_KERNEL); pi 154 drivers/md/dm-service-time.c if (!pi) { pi 159 drivers/md/dm-service-time.c pi->path = path; pi 160 drivers/md/dm-service-time.c pi->repeat_count = repeat_count; pi 161 drivers/md/dm-service-time.c pi->relative_throughput = relative_throughput; pi 162 drivers/md/dm-service-time.c atomic_set(&pi->in_flight_size, 0); pi 164 drivers/md/dm-service-time.c path->pscontext = pi; pi 167 drivers/md/dm-service-time.c list_add_tail(&pi->list, &s->valid_paths); pi 176 drivers/md/dm-service-time.c struct path_info *pi = path->pscontext; pi 180 drivers/md/dm-service-time.c list_move(&pi->list, &s->failed_paths); pi 187 drivers/md/dm-service-time.c struct path_info *pi = path->pscontext; pi 191 drivers/md/dm-service-time.c list_move_tail(&pi->list, &s->valid_paths); pi 277 drivers/md/dm-service-time.c struct path_info *pi = NULL, *best = NULL; pi 285 drivers/md/dm-service-time.c list_for_each_entry(pi, &s->valid_paths, list) pi 286 drivers/md/dm-service-time.c if (!best || (st_compare_load(pi, best, nr_bytes) < 0)) pi 287 drivers/md/dm-service-time.c best = pi; pi 304 drivers/md/dm-service-time.c struct path_info *pi = path->pscontext; pi 306 drivers/md/dm-service-time.c atomic_add(nr_bytes, &pi->in_flight_size); pi 314 drivers/md/dm-service-time.c struct path_info *pi = path->pscontext; pi 316 drivers/md/dm-service-time.c atomic_sub(nr_bytes, &pi->in_flight_size); pi 115 drivers/md/raid1.c struct pool_info *pi = data; pi 116 drivers/md/raid1.c int size = offsetof(struct r1bio, bios[pi->raid_disks]); pi 131 drivers/md/raid1.c struct pool_info *pi = data; pi 138 drivers/md/raid1.c r1_bio = r1bio_pool_alloc(gfp_flags, pi); pi 142 drivers/md/raid1.c rps = kmalloc_array(pi->raid_disks, sizeof(struct resync_pages), pi 150 drivers/md/raid1.c for (j = pi->raid_disks ; j-- ; ) { pi 162 drivers/md/raid1.c if (test_bit(MD_RECOVERY_REQUESTED, &pi->mddev->recovery)) pi 163 drivers/md/raid1.c need_pages = pi->raid_disks; pi 166 drivers/md/raid1.c for (j = 0; j < pi->raid_disks; j++) { pi 192 drivers/md/raid1.c while (++j < pi->raid_disks) pi 203 drivers/md/raid1.c struct pool_info *pi = data; pi 208 drivers/md/raid1.c for (i = pi->raid_disks; i--; ) { pi 81 drivers/media/radio/wl128x/fmdrv.h u16 pi[2]; pi 940 drivers/mfd/si476x-cmd.c report->pi = get_unaligned_be16(resp + 4); pi 2713 drivers/misc/habanalabs/goya/goya.c void goya_ring_doorbell(struct hl_device *hdev, u32 hw_queue_id, u32 pi) pi 2785 drivers/misc/habanalabs/goya/goya.c db_value = pi; pi 4919 drivers/misc/habanalabs/goya/goya.c u32 status, timeout_usec, inv_data, pi; pi 4946 drivers/misc/habanalabs/goya/goya.c pi = ((inv_data & STLB_CACHE_INV_PRODUCER_INDEX_MASK) + 1) & 0xFF; pi 4948 drivers/misc/habanalabs/goya/goya.c (inv_data & STLB_CACHE_INV_INDEX_MASK_MASK) | pi); pi 4954 drivers/misc/habanalabs/goya/goya.c status == pi, pi 182 drivers/misc/habanalabs/goya/goyaP.h void goya_ring_doorbell(struct hl_device *hdev, u32 hw_queue_id, u32 pi); pi 348 drivers/misc/habanalabs/habanalabs.h u32 pi; pi 371 drivers/misc/habanalabs/habanalabs.h u32 pi; pi 520 drivers/misc/habanalabs/habanalabs.h void (*ring_doorbell)(struct hl_device *hdev, u32 hw_queue_id, u32 pi); pi 1443 drivers/misc/habanalabs/habanalabs.h #define hl_pi_2_offset(pi) ((pi) & (HL_QUEUE_LENGTH - 1)) pi 29 drivers/misc/habanalabs/hw_queue.c int delta = (q->pi - q->ci); pi 82 drivers/misc/habanalabs/hw_queue.c bd += hl_pi_2_offset(q->pi); pi 87 drivers/misc/habanalabs/hw_queue.c q->pi = hl_queue_inc_ptr(q->pi); pi 88 drivers/misc/habanalabs/hw_queue.c hdev->asic_funcs->ring_doorbell(hdev, q->hw_queue_id, q->pi); pi 246 drivers/misc/habanalabs/hw_queue.c ctl = ((q->pi << BD_CTL_SHADOW_INDEX_SHIFT) & BD_CTL_SHADOW_INDEX_MASK); pi 253 drivers/misc/habanalabs/hw_queue.c ((q->pi << CQ_ENTRY_SHADOW_INDEX_SHIFT) pi 266 drivers/misc/habanalabs/hw_queue.c cq_addr = cq->bus_address + cq->pi * sizeof(struct hl_cq_entry); pi 273 drivers/misc/habanalabs/hw_queue.c q->shadow_queue[hl_pi_2_offset(q->pi)] = job; pi 275 drivers/misc/habanalabs/hw_queue.c cq->pi = hl_cq_inc_ptr(cq->pi); pi 293 drivers/misc/habanalabs/hw_queue.c __le64 *pi; pi 299 drivers/misc/habanalabs/hw_queue.c pi = (__le64 *) (uintptr_t) (q->kernel_address + pi 300 drivers/misc/habanalabs/hw_queue.c ((q->pi & (q->int_queue_len - 1)) * sizeof(bd))); pi 302 drivers/misc/habanalabs/hw_queue.c q->pi++; pi 303 drivers/misc/habanalabs/hw_queue.c q->pi &= ((q->int_queue_len << 1) - 1); pi 305 drivers/misc/habanalabs/hw_queue.c hdev->asic_funcs->pqe_write(hdev, pi, &bd); pi 307 drivers/misc/habanalabs/hw_queue.c hdev->asic_funcs->ring_doorbell(hdev, q->hw_queue_id, q->pi); pi 450 drivers/misc/habanalabs/hw_queue.c q->pi = 0; pi 482 drivers/misc/habanalabs/hw_queue.c q->pi = 0; pi 654 drivers/misc/habanalabs/hw_queue.c q->pi = q->ci = 0; pi 233 drivers/misc/habanalabs/irq.c q->pi = 0; pi 257 drivers/misc/habanalabs/irq.c q->pi = 0; pi 525 drivers/net/ethernet/brocade/bna/bnad.c u32 ci, pi, totlen = 0; pi 528 drivers/net/ethernet/brocade/bna/bnad.c pi = ccb->producer_index; pi 529 drivers/net/ethernet/brocade/bna/bnad.c cmpl = &cq[pi]; pi 561 drivers/net/ethernet/brocade/bna/bnad.c BNA_QE_INDX_INC(pi, ccb->q_depth); pi 562 drivers/net/ethernet/brocade/bna/bnad.c cmpl = &cq[pi]; pi 597 drivers/net/ethernet/brocade/bna/bnad.c u32 pi, vec, sop_ci = 0, nvecs = 0; pi 649 drivers/net/ethernet/brocade/bna/bnad.c pi = ccb->producer_index; pi 651 drivers/net/ethernet/brocade/bna/bnad.c BNA_QE_INDX_INC(pi, ccb->q_depth); pi 652 drivers/net/ethernet/brocade/bna/bnad.c next_cmpl = &cq[pi]; pi 985 drivers/net/ethernet/chelsio/cxgb/cxgb2.c struct port_info *pi; pi 1073 drivers/net/ethernet/chelsio/cxgb/cxgb2.c pi = &adapter->port[i]; pi 1074 drivers/net/ethernet/chelsio/cxgb/cxgb2.c pi->dev = netdev; pi 62 drivers/net/ethernet/chelsio/cxgb3/adapter.h int (*send)(struct port_info *pi, struct sk_buff **skb); pi 63 drivers/net/ethernet/chelsio/cxgb3/adapter.h int (*recv)(struct port_info *pi, struct sk_buff *skb); pi 183 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi) pi 185 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_set_reg_field(adapter, A_XGM_TXFIFO_CFG + pi->mac.offset, 0, pi 187 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_write_reg(adapter, A_XGM_RX_CTRL + pi->mac.offset, 0); pi 188 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_write_reg(adapter, A_XGM_TX_CTRL + pi->mac.offset, F_TXEN); pi 189 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_write_reg(adapter, A_XGM_RX_CTRL + pi->mac.offset, F_RXEN); pi 193 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi) pi 195 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_set_reg_field(adapter, A_XGM_TXFIFO_CFG + pi->mac.offset, pi 202 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 208 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct cmac *mac = &pi->mac; pi 212 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c disable_tx_fifo_drain(adap, pi); pi 215 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_xgm_intr_disable(adap, pi->port_id); pi 217 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c pi->mac.offset); pi 219 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c A_XGM_INT_CAUSE + pi->mac.offset, pi 224 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c pi->mac.offset, pi 226 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_xgm_intr_enable(adap, pi->port_id); pi 233 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c enable_tx_fifo_drain(adap, pi); pi 255 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 256 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct cmac *mac = &pi->mac; pi 264 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c disable_tx_fifo_drain(adapter, pi); pi 269 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_xgm_intr_disable(adapter, pi->port_id); pi 271 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c pi->mac.offset); pi 273 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c A_XGM_INT_CAUSE + pi->mac.offset, pi 277 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c A_XGM_INT_ENABLE + pi->mac.offset, pi 279 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_xgm_intr_enable(adapter, pi->port_id); pi 285 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_xgm_intr_disable(adapter, pi->port_id); pi 286 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_read_reg(adapter, A_XGM_INT_STATUS + pi->mac.offset); pi 288 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c A_XGM_INT_ENABLE + pi->mac.offset, pi 292 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c pi->phy.ops->power_down(&pi->phy, 1); pi 294 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_read_reg(adapter, A_XGM_INT_STATUS + pi->mac.offset); pi 296 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_link_start(&pi->phy, mac, &pi->link_config); pi 299 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c enable_tx_fifo_drain(adapter, pi); pi 322 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c const struct port_info *pi = netdev_priv(dev); pi 324 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c if (pi->phy.modtype == phy_modtype_none) pi 328 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c mod_str[pi->phy.modtype]); pi 333 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 335 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_mac_set_rx_mode(&pi->mac, dev); pi 346 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 347 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct cmac *mac = &pi->mac; pi 353 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_mac_set_address(mac, SAN_MAC_IDX, pi->iscsic.mac_addr); pi 355 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_link_start(&pi->phy, mac, &pi->link_config); pi 391 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c const struct port_info *pi = netdev_priv(d); pi 393 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c for (i = 0; i < pi->nqsets; i++, msi_idx++) { pi 395 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c "%s-%d", d->name, pi->first_qset + i); pi 665 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 667 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c pi->qs = &adap->sge.qs[pi->first_qset]; pi 668 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c for (j = 0; j < pi->nqsets; ++j, ++qset_idx) { pi 724 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); \ pi 725 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *adap = pi->adapter; \ pi 736 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 737 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *adap = pi->adapter; pi 759 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 760 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *adap = pi->adapter; pi 803 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(to_net_dev(d)); pi 804 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *adap = pi->adapter; pi 829 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(to_net_dev(d)); pi 830 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *adap = pi->adapter; pi 906 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(adapter->port[idx]); pi 918 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c memcpy(req->src_mac1, pi->iscsic.mac_addr, ETH_ALEN); pi 979 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c const struct port_info *pi = adap2pinfo(adap, i); pi 981 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c for (j = 0; j < pi->nqsets; ++j) { pi 983 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c pi->first_qset + j, -1, pi 1182 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 1183 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *adapter = pi->adapter; pi 1186 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_set_vlan_accel(adapter, 1 << pi->port_id, pi 1199 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_synchronize_rx(adapter, pi); pi 1350 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 1351 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *adapter = pi->adapter; pi 1421 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 1422 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *adapter = pi->adapter; pi 1429 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c set_bit(pi->port_id, &adapter->open_device_map); pi 1436 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c netif_set_real_num_tx_queues(dev, pi->nqsets); pi 1437 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c err = netif_set_real_num_rx_queues(dev, pi->nqsets); pi 1441 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_port_intr_enable(adapter, pi->port_id); pi 1446 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c cxgb3_event_notify(&adapter->tdev, OFFLOAD_PORT_UP, pi->port_id); pi 1452 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 1453 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *adapter = pi->adapter; pi 1460 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_xgm_intr_disable(adapter, pi->port_id); pi 1461 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_read_reg(adapter, A_XGM_INT_STATUS + pi->mac.offset); pi 1463 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_port_intr_disable(adapter, pi->port_id); pi 1465 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c pi->phy.ops->power_down(&pi->phy, 1); pi 1467 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_mac_disable(&pi->mac, MAC_DIRECTION_TX | MAC_DIRECTION_RX); pi 1470 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c clear_bit(pi->port_id, &adapter->open_device_map); pi 1479 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c cxgb3_event_notify(&adapter->tdev, OFFLOAD_PORT_DOWN, pi->port_id); pi 1490 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 1491 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *adapter = pi->adapter; pi 1496 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c pstats = t3_mac_update_stats(&pi->mac); pi 1529 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 1530 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *adapter = pi->adapter; pi 1537 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 1538 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *adapter = pi->adapter; pi 1621 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 1622 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *adapter = pi->adapter; pi 1667 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 1668 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *adapter = pi->adapter; pi 1672 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c s = t3_mac_update_stats(&pi->mac); pi 1711 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c *data++ = pi->phy.fifo_errors; pi 1713 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c *data++ = collect_sge_port_stats(adapter, pi, SGE_PSTAT_TSO); pi 1714 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c *data++ = collect_sge_port_stats(adapter, pi, SGE_PSTAT_VLANEX); pi 1715 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c *data++ = collect_sge_port_stats(adapter, pi, SGE_PSTAT_VLANINS); pi 1716 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c *data++ = collect_sge_port_stats(adapter, pi, SGE_PSTAT_TX_CSUM); pi 1717 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c *data++ = collect_sge_port_stats(adapter, pi, SGE_PSTAT_RX_CSUM_GOOD); pi 1741 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 1742 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *ap = pi->adapter; pi 1784 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 1785 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *adapter = pi->adapter; pi 1955 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 1956 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *adapter = pi->adapter; pi 1957 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c const struct qset_params *q = &adapter->params.sge.qset[pi->first_qset]; pi 1971 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 1972 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *adapter = pi->adapter; pi 1989 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c q = &adapter->params.sge.qset[pi->first_qset]; pi 1990 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c for (i = 0; i < pi->nqsets; ++i, ++q) { pi 2003 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 2004 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *adapter = pi->adapter; pi 2012 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c for (i = 0; i < pi->nqsets; i++) { pi 2024 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 2025 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *adapter = pi->adapter; pi 2035 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 2036 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *adapter = pi->adapter; pi 2056 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 2057 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *adapter = pi->adapter; pi 2141 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 2142 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *adapter = pi->adapter; pi 2154 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c int q1 = pi->first_qset; pi 2155 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c int nqsets = pi->nqsets; pi 2192 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c pi = adap2pinfo(adapter, i); pi 2193 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c nqsets += pi->first_qset + pi->nqsets; pi 2255 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c int q1 = pi->first_qset; pi 2256 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c int nqsets = pi->nqsets; pi 2269 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c pi = adap2pinfo(adapter, i); pi 2270 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c nqsets = pi->first_qset + pi->nqsets; pi 2323 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c pi->nqsets = edata.val; pi 2327 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c pi = adap2pinfo(adapter, i); pi 2328 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c pi->first_qset = first_qset; pi 2329 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c first_qset += pi->nqsets; pi 2339 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c edata.val = pi->nqsets; pi 2534 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 2535 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *adapter = pi->adapter; pi 2549 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c return mdio_mii_ioctl(&pi->phy.mdio, data, cmd); pi 2559 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 2560 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *adapter = pi->adapter; pi 2563 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c if ((ret = t3_mac_set_mtu(&pi->mac, new_mtu))) pi 2576 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 2577 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *adapter = pi->adapter; pi 2584 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_mac_set_address(&pi->mac, LAN_MAC_IDX, dev->dev_addr); pi 2586 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c write_smt_entry(adapter, pi->port_id); pi 2618 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 2619 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct adapter *adapter = pi->adapter; pi 2622 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c for (qidx = pi->first_qset; qidx < pi->first_qset + pi->nqsets; qidx++) { pi 2892 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(netdev); pi 2895 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c pi->link_fault = 1; pi 3106 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = adap2pinfo(adap, i); pi 3108 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c pi->first_qset = j; pi 3109 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c pi->nqsets = nqsets; pi 3110 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c j = pi->first_qset + nqsets; pi 3159 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c const struct port_info *pi = netdev_priv(dev); pi 3164 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c ai->desc, pi->phy.desc, pi 3196 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi = netdev_priv(dev); pi 3198 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c memcpy(pi->iscsic.mac_addr, dev->dev_addr, ETH_ALEN); pi 3199 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c pi->iscsic.mac_addr[3] |= 0x80; pi 3211 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct port_info *pi; pi 3308 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c pi = netdev_priv(netdev); pi 3309 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c pi->adapter = adapter; pi 3310 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c pi->port_id = i; pi 3327 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c netdev->dev_port = pi->port_id; pi 456 drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c struct port_info *pi = netdev_priv(p->dev); pi 457 drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c p->ipv4addr = pi->iscsi_ipv4addr; pi 699 drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c const struct port_info *pi = netdev_priv(dev); pi 701 drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c return (struct t3cdev *)pi->adapter; pi 1180 drivers/net/ethernet/chelsio/cxgb3/sge.c const struct port_info *pi, pi 1191 drivers/net/ethernet/chelsio/cxgb3/sge.c cntrl = V_TXPKT_INTF(pi->port_id); pi 1267 drivers/net/ethernet/chelsio/cxgb3/sge.c const struct port_info *pi = netdev_priv(dev); pi 1268 drivers/net/ethernet/chelsio/cxgb3/sge.c struct adapter *adap = pi->adapter; pi 1284 drivers/net/ethernet/chelsio/cxgb3/sge.c qs = &pi->qs[qidx]; pi 1366 drivers/net/ethernet/chelsio/cxgb3/sge.c write_tx_pkt_wr(adap, skb, pi, pidx, gen, q, ndesc, compl, addr); pi 1745 drivers/net/ethernet/chelsio/cxgb3/sge.c const struct port_info *pi = netdev_priv(qs->netdev); pi 1746 drivers/net/ethernet/chelsio/cxgb3/sge.c struct adapter *adap = pi->adapter; pi 2016 drivers/net/ethernet/chelsio/cxgb3/sge.c static void cxgb3_arp_process(struct port_info *pi, struct sk_buff *skb) pi 2041 drivers/net/ethernet/chelsio/cxgb3/sge.c if (tip != pi->iscsi_ipv4addr) pi 2045 drivers/net/ethernet/chelsio/cxgb3/sge.c pi->iscsic.mac_addr, sha); pi 2054 drivers/net/ethernet/chelsio/cxgb3/sge.c static void cxgb3_process_iscsi_prov_pack(struct port_info *pi, pi 2058 drivers/net/ethernet/chelsio/cxgb3/sge.c cxgb3_arp_process(pi, skb); pi 2062 drivers/net/ethernet/chelsio/cxgb3/sge.c if (pi->iscsic.recv) pi 2063 drivers/net/ethernet/chelsio/cxgb3/sge.c pi->iscsic.recv(pi, skb); pi 2083 drivers/net/ethernet/chelsio/cxgb3/sge.c struct port_info *pi; pi 2087 drivers/net/ethernet/chelsio/cxgb3/sge.c pi = netdev_priv(skb->dev); pi 2094 drivers/net/ethernet/chelsio/cxgb3/sge.c skb_record_rx_queue(skb, qs - &adap->sge.qs[pi->first_qset]); pi 2104 drivers/net/ethernet/chelsio/cxgb3/sge.c if (unlikely(pi->iscsic.flags)) pi 2105 drivers/net/ethernet/chelsio/cxgb3/sge.c cxgb3_process_iscsi_prov_pack(pi, skb); pi 2132 drivers/net/ethernet/chelsio/cxgb3/sge.c struct port_info *pi = netdev_priv(qs->netdev); pi 2196 drivers/net/ethernet/chelsio/cxgb3/sge.c skb_record_rx_queue(skb, qs - &adap->sge.qs[pi->first_qset]); pi 2924 drivers/net/ethernet/chelsio/cxgb3/sge.c struct port_info *pi = netdev_priv(qs->netdev); pi 2925 drivers/net/ethernet/chelsio/cxgb3/sge.c struct adapter *adap = pi->adapter; pi 2965 drivers/net/ethernet/chelsio/cxgb3/sge.c struct port_info *pi = netdev_priv(qs->netdev); pi 2966 drivers/net/ethernet/chelsio/cxgb3/sge.c struct adapter *adap = pi->adapter; pi 212 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c struct port_info *pi = netdev_priv(dev); pi 213 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c struct adapter *adapter = pi->adapter; pi 231 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c struct port_info *pi = netdev_priv(dev); pi 232 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c struct adapter *adapter = pi->adapter; pi 275 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c struct port_info *pi = netdev_priv(dev); pi 276 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c struct adapter *adapter = pi->adapter; pi 295 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c struct port_info *pi = netdev_priv(dev); pi 296 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c struct adapter *adapter = pi->adapter; pi 1243 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c struct port_info *pi = adap2pinfo(adapter, port_id); pi 1244 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c struct cphy *phy = &pi->phy; pi 1245 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c struct cmac *mac = &pi->mac; pi 1246 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c struct link_config *lc = &pi->link_config; pi 1262 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c pi->link_fault = 1; pi 1293 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c t3_os_link_changed(adapter, port_id, link_ok && !pi->link_fault, pi 1299 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c struct port_info *pi = adap2pinfo(adapter, port_id); pi 1300 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c struct cmac *mac = &pi->mac; pi 1301 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c struct cphy *phy = &pi->phy; pi 1302 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c struct link_config *lc = &pi->link_config; pi 1342 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c pi->link_fault = 0; pi 2094 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c struct port_info *pi = adap2pinfo(adapter, idx); pi 2096 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c t3_write_reg(adapter, A_XGM_XGM_INT_ENABLE + pi->mac.offset, pi 2102 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c struct port_info *pi = adap2pinfo(adapter, idx); pi 2104 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c t3_write_reg(adapter, A_XGM_XGM_INT_DISABLE + pi->mac.offset, pi 1437 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int cxgb4_write_rss(const struct port_info *pi, const u16 *queues); pi 1682 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_init_portinfo(struct port_info *pi, int mbox, pi 1821 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h struct port_info *pi, pi 1846 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h void t4_handle_get_port_info(struct port_info *pi, const __be64 *rpl); pi 1847 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_update_port_info(struct port_info *pi); pi 1848 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_get_link_params(struct port_info *pi, unsigned int *link_okp, pi 1915 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int cxgb4_change_mac(struct port_info *pi, unsigned int viid, pi 1949 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int cxgb4_update_mac_filt(struct port_info *pi, unsigned int viid, pi 35 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev2pinfo(dev); pi 36 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_dcb_info *dcb = &pi->dcb; pi 45 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c __func__, pi->port_id); pi 50 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev2pinfo(dev); pi 51 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_dcb_info *dcb = &pi->dcb; pi 61 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev2pinfo(dev); pi 62 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct adapter *adap = pi->adapter; pi 63 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_dcb_info *dcb = &pi->dcb; pi 128 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev2pinfo(dev); pi 129 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_dcb_info *dcb = &pi->dcb; pi 130 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct adapter *adap = pi->adapter; pi 279 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev_priv(dev); pi 280 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_dcb_info *dcb = &pi->dcb; pi 413 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev2pinfo(dev); pi 415 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c return pi->dcb.enabled; pi 422 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev2pinfo(dev); pi 425 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (pi->dcb.state == CXGB4_DCB_STATE_HOST) { pi 426 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pi->dcb.enabled = enabled; pi 432 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (enabled != (pi->dcb.state == CXGB4_DCB_STATE_FW_ALLSYNCED)) pi 443 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev2pinfo(dev); pi 444 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct adapter *adap = pi->adapter; pi 450 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); pi 452 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c INIT_PORT_DCB_READ_PEER_CMD(pcmd, pi->port_id); pi 463 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); pi 465 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c INIT_PORT_DCB_READ_PEER_CMD(pcmd, pi->port_id); pi 506 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev2pinfo(dev); pi 507 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct adapter *adap = pi->adapter; pi 517 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); pi 531 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c INIT_PORT_DCB_WRITE_CMD(pcmd, pi->port_id); pi 542 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); pi 554 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c INIT_PORT_DCB_WRITE_CMD(pcmd, pi->port_id); pi 555 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (pi->dcb.state == CXGB4_DCB_STATE_HOST) pi 568 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev2pinfo(dev); pi 569 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct adapter *adap = pi->adapter; pi 573 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); pi 575 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c INIT_PORT_DCB_READ_PEER_CMD(pcmd, pi->port_id); pi 602 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev2pinfo(dev); pi 603 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct adapter *adap = pi->adapter; pi 606 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); pi 618 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c INIT_PORT_DCB_WRITE_CMD(pcmd, pi->port_id); pi 619 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (pi->dcb.state == CXGB4_DCB_STATE_HOST) pi 634 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev2pinfo(dev); pi 635 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_dcb_info *dcb = &pi->dcb; pi 641 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c *pfccfg = (pi->dcb.pfcen >> (7 - priority)) & 1; pi 650 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev2pinfo(dev); pi 651 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct adapter *adap = pi->adapter; pi 654 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (!cxgb4_dcb_state_synced(pi->dcb.state) || pi 658 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c INIT_PORT_DCB_WRITE_CMD(pcmd, pi->port_id); pi 659 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (pi->dcb.state == CXGB4_DCB_STATE_HOST) pi 663 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.pfc.pfcen = pi->dcb.pfcen; pi 676 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pi->dcb.pfcen = pcmd.u.dcb.pfc.pfcen; pi 688 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev2pinfo(dev); pi 716 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c *caps = pi->dcb.supported; pi 730 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev2pinfo(dev); pi 734 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (pi->dcb.msgs & CXGB4_DCB_FW_PGRATE) pi 735 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c *num = pi->dcb.pg_num_tcs_supported; pi 764 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev2pinfo(dev); pi 766 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (!cxgb4_dcb_state_synced(pi->dcb.state)) pi 769 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c return pi->dcb.pfcen != 0; pi 786 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev2pinfo(dev); pi 787 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct adapter *adap = pi->adapter; pi 790 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (!cxgb4_dcb_state_synced(pi->dcb.state)) pi 798 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c INIT_PORT_DCB_READ_PEER_CMD(pcmd, pi->port_id); pi 800 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); pi 839 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev2pinfo(dev); pi 840 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct adapter *adap = pi->adapter; pi 844 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (!cxgb4_dcb_state_synced(pi->dcb.state)) pi 852 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); pi 879 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c INIT_PORT_DCB_WRITE_CMD(pcmd, pi->port_id); pi 880 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (pi->dcb.state == CXGB4_DCB_STATE_HOST) pi 929 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev2pinfo(dev); pi 930 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_dcb_info *dcb = &pi->dcb; pi 943 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev2pinfo(dev); pi 944 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_dcb_info *dcb = &pi->dcb; pi 945 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct adapter *adap = pi->adapter; pi 957 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); pi 959 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c INIT_PORT_DCB_READ_PEER_CMD(pcmd, pi->port_id); pi 972 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); pi 974 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c INIT_PORT_DCB_READ_PEER_CMD(pcmd, pi->port_id); pi 1003 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev2pinfo(dev); pi 1004 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_dcb_info *dcb = &pi->dcb; pi 1074 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev2pinfo(dev); pi 1077 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c return pi->dcb.supported; pi 1084 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev2pinfo(dev); pi 1094 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (!cxgb4_dcb_state_synced(pi->dcb.state)) pi 1102 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (dcb_request != pi->dcb.supported) pi 1105 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pi->dcb.supported = dcb_request; pi 1113 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev2pinfo(dev); pi 1114 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct adapter *adap = pi->adapter; pi 1117 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (!cxgb4_dcb_state_synced(pi->dcb.state)) pi 1125 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c INIT_PORT_DCB_READ_PEER_CMD(pcmd, pi->port_id); pi 1147 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev2pinfo(dev); pi 1148 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct adapter *adap = pi->adapter; pi 1151 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (!cxgb4_dcb_state_synced(pi->dcb.state)) pi 1155 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c INIT_PORT_DCB_READ_PEER_CMD(pcmd, pi->port_id); pi 1184 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev2pinfo(dev); pi 1185 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct adapter *adap = pi->adapter; pi 1194 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c INIT_PORT_DCB_READ_PEER_CMD(pcmd, pi->port_id); pi 1206 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c INIT_PORT_DCB_READ_PEER_CMD(pcmd, pi->port_id); pi 1227 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_info *pi = netdev2pinfo(dev); pi 1235 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pfc->pfc_en = bitswap_1(pi->dcb.pfcen); pi 1237 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pfc->tcs_supported = pi->dcb.pfc_num_tcs_supported; pi 2402 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c struct port_info *pi = netdev2pinfo(dev); pi 2403 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c struct port_dcb_info *dcb = &pi->dcb; pi 2614 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c struct port_info *pi = adap2pinfo(adap, pidx); pi 2616 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (qset >= pi->first_qset && pi 2617 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c qset < pi->first_qset + pi->nqsets) pi 2618 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c return pi; pi 285 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct port_info *pi = netdev_priv(dev); pi 286 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct adapter *adapter = pi->adapter; pi 291 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c t4_get_port_stats_offset(adapter, pi->tx_chan, pi 293 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c &pi->stats_base); pi 296 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c collect_sge_port_stats(adapter, pi, (struct queue_port_stats *)data); pi 301 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c *data++ = (u64)pi->port_id; pi 303 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c t4_get_lb_stats(adapter, pi->port_id, &s); pi 595 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct port_info *pi = netdev_priv(dev); pi 603 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c (void)t4_update_port_info(pi); pi 609 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c base->port = from_fw_port_mod_type(pi->port_type, pi->mod_type); pi 611 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c if (pi->mdio_addr >= 0) { pi 612 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c base->phy_address = pi->mdio_addr; pi 613 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c base->mdio_support = (pi->port_type == FW_PORT_TYPE_BT_SGMII pi 621 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c fw_caps_to_lmm(pi->port_type, pi->link_cfg.pcaps, pi 623 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c fw_caps_to_lmm(pi->port_type, pi 624 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c t4_link_acaps(pi->adapter, pi 625 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c pi->lport, pi 626 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c &pi->link_cfg), pi 628 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c fw_caps_to_lmm(pi->port_type, pi->link_cfg.lpacaps, pi 632 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c ? pi->link_cfg.speed pi 636 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c base->autoneg = pi->link_cfg.autoneg; pi 637 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c if (pi->link_cfg.pcaps & FW_PORT_CAP32_ANEG) pi 640 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c if (pi->link_cfg.autoneg) pi 650 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct port_info *pi = netdev_priv(dev); pi 651 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct link_config *lc = &pi->link_cfg; pi 685 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c ret = t4_link_l1cfg(pi->adapter, pi->adapter->mbox, pi->tx_chan, lc); pi 748 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c const struct port_info *pi = netdev_priv(dev); pi 749 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c const struct link_config *lc = &pi->link_cfg; pi 769 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct port_info *pi = netdev_priv(dev); pi 770 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct link_config *lc = &pi->link_cfg; pi 783 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c ret = t4_link_l1cfg(pi->adapter, pi->adapter->mbox, pi 784 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c pi->tx_chan, lc); pi 825 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c const struct port_info *pi = netdev_priv(dev); pi 826 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c const struct sge *s = &pi->adapter->sge; pi 833 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c e->rx_pending = s->ethrxq[pi->first_qset].fl.size - 8; pi 834 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c e->rx_mini_pending = s->ethrxq[pi->first_qset].rspq.size; pi 836 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c e->tx_pending = s->ethtxq[pi->first_qset].q.size; pi 842 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c const struct port_info *pi = netdev_priv(dev); pi 843 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct adapter *adapter = pi->adapter; pi 856 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c for (i = 0; i < pi->nqsets; ++i) { pi 857 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c s->ethtxq[pi->first_qset + i].q.size = e->tx_pending; pi 858 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c s->ethrxq[pi->first_qset + i].fl.size = e->rx_pending + 8; pi 859 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c s->ethrxq[pi->first_qset + i].rspq.size = e->rx_mini_pending; pi 876 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct port_info *pi = netdev_priv(dev); pi 877 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct adapter *adap = pi->adapter; pi 878 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct sge_eth_rxq *q = &adap->sge.ethrxq[pi->first_qset]; pi 880 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c for (i = 0; i < pi->nqsets; i++, q++) { pi 891 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct port_info *pi = netdev_priv(dev); pi 892 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct adapter *adap = pi->adapter; pi 893 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct sge_eth_rxq *q = &adap->sge.ethrxq[pi->first_qset]; pi 895 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c for (i = 0; i < pi->nqsets; i++, q++) pi 903 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct port_info *pi = netdev_priv(dev); pi 904 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct adapter *adap = pi->adapter; pi 905 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct sge_eth_rxq *q = &adap->sge.ethrxq[pi->first_qset]; pi 915 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct port_info *pi = netdev_priv(dev); pi 916 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct adapter *adap = pi->adapter; pi 929 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct port_info *pi = netdev_priv(dev); pi 930 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct adapter *adap = pi->adapter; pi 933 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c txq = &adap->sge.ethtxq[pi->first_qset]; pi 951 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct port_info *pi = netdev_priv(dev); pi 952 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct adapter *adap = pi->adapter; pi 986 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct port_info *pi = netdev_priv(dev); pi 987 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct adapter *adap = pi->adapter; pi 1015 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c txq = &s->ethtxq[pi->first_qset]; pi 1019 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c for (qix = 0; qix < pi->nqsets; qix++, txq++) { pi 1049 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct port_info *pi = netdev_priv(dev); pi 1050 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct adapter *adap = pi->adapter; pi 1059 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c if (port == pi->port_id) pi 1098 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c const struct port_info *pi = netdev_priv(dev); pi 1099 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c const struct adapter *adap = pi->adapter; pi 1100 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c const struct sge_rspq *rq = &adap->sge.ethrxq[pi->first_qset].rspq; pi 1254 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct port_info *pi = netdev_priv(dev); pi 1255 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct adapter *adapter = pi->adapter; pi 1285 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c const struct port_info *pi = netdev_priv(dev); pi 1287 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c return pi->rss_size; pi 1292 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c const struct port_info *pi = netdev_priv(dev); pi 1293 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c unsigned int n = pi->rss_size; pi 1300 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c p[n] = pi->rss[n]; pi 1308 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct port_info *pi = netdev_priv(dev); pi 1320 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c if (pi->adapter->flags & CXGB4_FULL_INIT_DONE) { pi 1321 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c for (i = 0; i < pi->rss_size; i++) pi 1322 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c pi->rss[i] = p[i]; pi 1324 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c return cxgb4_write_rss(pi, pi->rss); pi 1333 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c const struct port_info *pi = netdev_priv(dev); pi 1337 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c unsigned int v = pi->rss_mode; pi 1387 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c info->data = pi->nqsets; pi 1446 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct port_info *pi = netdev_priv(dev); pi 1448 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct adapter *adapter = pi->adapter; pi 1451 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c if (!t4_is_inserted_mod_type(pi->mod_type)) pi 1454 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c switch (pi->port_type) { pi 1458 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c ret = t4_i2c_rd(adapter, adapter->mbox, pi->tx_chan, pi 1463 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c ret = t4_i2c_rd(adapter, adapter->mbox, pi->tx_chan, pi 1483 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c ret = t4_i2c_rd(adapter, adapter->mbox, pi->tx_chan, pi 1511 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct port_info *pi = netdev_priv(dev); pi 1512 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct adapter *adapter = pi->adapter; pi 1516 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c return t4_i2c_rd(adapter, adapter->mbox, pi->tx_chan, pi 1523 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c ret = t4_i2c_rd(adapter, adapter->mbox, pi->tx_chan, pi 1534 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c return t4_i2c_rd(adapter, adapter->mbox, pi->tx_chan, I2C_DEV_ADDR_A2, pi 1540 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct port_info *pi = netdev_priv(netdev); pi 1541 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct adapter *adapter = pi->adapter; pi 1543 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c return (adapter->eth_flags | pi->eth_flags); pi 1559 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct port_info *pi = netdev_priv(netdev); pi 1560 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct adapter *adapter = pi->adapter; pi 1563 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c set_flags(&pi->eth_flags, flags, PRIV_FLAGS_PORT); pi 70 drivers/net/ethernet/chelsio/cxgb4/cxgb4_fcoe.c struct port_info *pi = netdev_priv(netdev); pi 71 drivers/net/ethernet/chelsio/cxgb4/cxgb4_fcoe.c struct adapter *adap = pi->adapter; pi 72 drivers/net/ethernet/chelsio/cxgb4/cxgb4_fcoe.c struct cxgb_fcoe *fcoe = &pi->fcoe; pi 102 drivers/net/ethernet/chelsio/cxgb4/cxgb4_fcoe.c struct port_info *pi = netdev_priv(netdev); pi 103 drivers/net/ethernet/chelsio/cxgb4/cxgb4_fcoe.c struct adapter *adap = pi->adapter; pi 104 drivers/net/ethernet/chelsio/cxgb4/cxgb4_fcoe.c struct cxgb_fcoe *fcoe = &pi->fcoe; pi 338 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct port_info *pi = netdev_priv(dev); pi 343 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs->iq < pi->nqsets) pi 344 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c iq = adapter->sge.ethrxq[pi->first_qset + pi 717 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct port_info *pi = netdev_priv(f->dev); pi 730 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c t4_free_encap_mac_filt(adap, pi->viid, pi 1096 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct port_info *pi = netdev_priv(dev); pi 1165 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct port_info *pi = netdev_priv(f->dev); pi 1169 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ret = t4_alloc_encap_mac_filt(adapter, pi->viid, pi 1222 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c t4_free_encap_mac_filt(adapter, pi->viid, f->fs.val.ovlan, 1); pi 1407 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct port_info *pi = netdev_priv(f->dev); pi 1411 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ret = t4_alloc_encap_mac_filt(adapter, pi->viid, pi 234 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = netdev_priv(dev); pi 235 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct adapter *adap = pi->adapter; pi 236 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct sge_eth_txq *txq = &adap->sge.ethtxq[pi->first_qset]; pi 242 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c for (i = 0; i < pi->nqsets; i++, txq++) { pi 263 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c enable ? "set" : "unset", pi->port_id, i, -err); pi 271 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = netdev_priv(dev); pi 273 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (!pi->dcb.enabled) pi 276 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c return ((pi->dcb.state == CXGB4_DCB_STATE_FW_ALLSYNCED) || pi 277 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c (pi->dcb.state == CXGB4_DCB_STATE_HOST)); pi 310 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = netdev_priv(dev); pi 312 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (pi->mod_type == FW_PORT_MOD_TYPE_NONE) pi 314 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c else if (pi->mod_type < ARRAY_SIZE(mod_str)) pi 315 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c netdev_info(dev, "%s module inserted\n", mod_str[pi->mod_type]); pi 316 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c else if (pi->mod_type == FW_PORT_MOD_TYPE_NOTSUPPORTED) pi 319 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c else if (pi->mod_type == FW_PORT_MOD_TYPE_UNKNOWN) pi 322 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c else if (pi->mod_type == FW_PORT_MOD_TYPE_ERROR) pi 326 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c dev->name, pi->mod_type); pi 331 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->link_cfg.redo_l1cfg = netif_running(dev); pi 346 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c static inline int cxgb4_set_addr_hash(struct port_info *pi) pi 348 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct adapter *adap = pi->adapter; pi 358 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c return t4_set_addr_hash(adap, adap->mbox, pi->viid, ucast, pi 364 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = netdev_priv(netdev); pi 365 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct adapter *adap = pi->adapter; pi 380 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = cxgb4_alloc_mac_filt(adap, pi->viid, free, 1, maclist, pi 394 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = cxgb4_set_addr_hash(pi); pi 402 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = netdev_priv(netdev); pi 403 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct adapter *adap = pi->adapter; pi 415 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c return cxgb4_set_addr_hash(pi); pi 419 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = cxgb4_free_mac_filt(adap, pi->viid, 1, maclist, false); pi 429 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = netdev_priv(dev); pi 430 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct adapter *adapter = pi->adapter; pi 435 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c return t4_set_rxmode(adapter, adapter->mbox, pi->viid, mtu, pi 458 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c int cxgb4_change_mac(struct port_info *pi, unsigned int viid, pi 462 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct adapter *adapter = pi->adapter; pi 486 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = cxgb4_set_addr_hash(pi); pi 504 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = netdev_priv(dev); pi 505 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c unsigned int mb = pi->adapter->pf; pi 511 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_set_rxmode(pi->adapter, mb, pi->viid, dev->mtu, -1, -1, -1, pi 514 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = cxgb4_update_mac_filt(pi, pi->viid, &pi->xact_addr_filt, pi 515 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c dev->dev_addr, true, &pi->smt_idx); pi 517 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_link_l1cfg(pi->adapter, mb, pi->tx_chan, pi 518 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c &pi->link_cfg); pi 521 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_enable_pi_params(pi->adapter, mb, pi, true, pi 703 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c const struct port_info *pi = netdev_priv(d); pi 705 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c for (i = 0; i < pi->nqsets; i++, msi_idx++) pi 834 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c int cxgb4_write_rss(const struct port_info *pi, const u16 *queues) pi 838 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct adapter *adapter = pi->adapter; pi 841 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c rxq = &adapter->sge.ethrxq[pi->first_qset]; pi 842 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c rss = kmalloc_array(pi->rss_size, sizeof(u16), GFP_KERNEL); pi 847 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c for (i = 0; i < pi->rss_size; i++, queues++) pi 850 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c err = t4_config_rss_range(adapter, adapter->pf, pi->viid, 0, pi 851 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->rss_size, rss, pi->rss_size); pi 858 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c err = t4_config_vi_rss(adapter, adapter->mbox, pi->viid, pi 880 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c const struct port_info *pi = adap2pinfo(adap, i); pi 883 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c for (j = 0; j < pi->rss_size; j++) pi 884 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->rss[j] = j % pi->nqsets; pi 886 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c err = cxgb4_write_rss(pi, pi->rss); pi 998 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = netdev_priv(dev); pi 999 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct sge_eth_rxq *q = &s->ethrxq[pi->first_qset]; pi 1000 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct sge_eth_txq *t = &s->ethtxq[pi->first_qset]; pi 1002 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c for (j = 0; j < pi->nqsets; j++, q++) { pi 1010 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->tx_chan)); pi 1017 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c q = &s->ethrxq[pi->first_qset]; pi 1018 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c for (j = 0; j < pi->nqsets; j++, t++, q++) { pi 1182 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c const struct port_info *pi = netdev_priv(dev); pi 1189 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c err = t4_set_rxmode(pi->adapter, pi->adapter->pf, pi->viid, -1, pi 2435 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = netdev_priv(dev); pi 2436 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct adapter *adapter = pi->adapter; pi 2449 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c err = t4_update_port_info(pi); pi 2461 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = netdev_priv(dev); pi 2462 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct adapter *adapter = pi->adapter; pi 2467 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_enable_pi_params(adapter, adapter->pf, pi, pi 2620 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = netdev_priv(dev); pi 2621 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct adapter *adapter = pi->adapter; pi 2626 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (pi->mdio_addr < 0) pi 2628 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c data->phy_id = pi->mdio_addr; pi 2642 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c mbox = pi->adapter->pf; pi 2644 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_mdio_rd(pi->adapter, mbox, prtad, devad, pi 2647 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_mdio_wr(pi->adapter, mbox, prtad, devad, pi 2651 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c return copy_to_user(req->ifr_data, &pi->tstamp_config, pi 2652 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c sizeof(pi->tstamp_config)) ? pi 2655 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (copy_from_user(&pi->tstamp_config, req->ifr_data, pi 2656 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c sizeof(pi->tstamp_config))) pi 2660 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c switch (pi->tstamp_config.tx_type) { pi 2668 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c switch (pi->tstamp_config.rx_filter) { pi 2670 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->rxtstamp = false; pi 2674 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c cxgb4_ptprx_timestamping(pi, pi->port_id, pi 2678 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c cxgb4_ptprx_timestamping(pi, pi->port_id, pi 2686 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->rxtstamp = true; pi 2689 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->tstamp_config.rx_filter = pi 2694 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if ((pi->tstamp_config.tx_type == HWTSTAMP_TX_OFF) && pi 2695 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c (pi->tstamp_config.rx_filter == pi 2697 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (cxgb4_ptp_txtype(adapter, pi->port_id) >= 0) pi 2698 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->ptp_enable = false; pi 2701 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (pi->tstamp_config.rx_filter != pi 2704 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi) >= 0) pi 2705 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->ptp_enable = true; pi 2709 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c switch (pi->tstamp_config.rx_filter) { pi 2711 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->rxtstamp = false; pi 2714 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->rxtstamp = true; pi 2717 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->tstamp_config.rx_filter = pi 2722 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c return copy_to_user(req->ifr_data, &pi->tstamp_config, pi 2723 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c sizeof(pi->tstamp_config)) ? pi 2740 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = netdev_priv(dev); pi 2742 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_set_rxmode(pi->adapter, pi->adapter->pf, pi->viid, new_mtu, -1, pi 2799 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = netdev_priv(dev); pi 2800 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct adapter *adap = pi->adapter; pi 2805 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c dev_err(pi->adapter->pdev_dev, pi 2811 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c dev_info(pi->adapter->pdev_dev, pi 2822 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = netdev_priv(dev); pi 2823 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct adapter *adap = pi->adapter; pi 2842 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = netdev_priv(dev); pi 2845 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c phy_port_id = pi->adapter->adap_idx * 10 + pi->port_id; pi 2854 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = netdev_priv(dev); pi 2855 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct adapter *adap = pi->adapter; pi 2893 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_get_link_params(pi, &link_ok, &speed, &mtu); pi 2923 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->tx_chan, class_id, 0, pi 2955 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = netdev_priv(dev); pi 2956 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct adapter *adap = pi->adapter; pi 2979 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = netdev_priv(dev); pi 2980 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct adapter *adap = pi->adapter; pi 3024 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = netdev_priv(dev); pi 3029 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = cxgb4_update_mac_filt(pi, pi->viid, &pi->xact_addr_filt, pi 3030 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c addr->sa_data, true, &pi->smt_idx); pi 3041 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = netdev_priv(dev); pi 3042 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct adapter *adap = pi->adapter; pi 3046 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct sge_eth_rxq *rx = &adap->sge.ethrxq[pi->first_qset]; pi 3048 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c for (i = pi->nqsets; i; i--, rx++) pi 3057 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = netdev_priv(dev); pi 3058 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct adapter *adap = pi->adapter; pi 3068 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (index < 0 || index > pi->nqsets - 1) pi 3098 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c index, pi->port_id, err); pi 3113 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c p.u.params.channel = pi->tx_chan; pi 3169 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = netdev2pinfo(dev); pi 3175 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->port_id); pi 3197 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = netdev2pinfo(dev); pi 3204 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi, dev, true); pi 3213 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = netdev_priv(netdev); pi 3214 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct adapter *adapter = pi->adapter; pi 3257 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi = adap2pinfo(adapter, i); pi 3258 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_free_raw_mac_filt(adapter, pi->viid, pi 3261 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->port_id, pi 3262 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 1, pi->port_id, false); pi 3274 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = netdev_priv(netdev); pi 3275 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct adapter *adapter = pi->adapter; pi 3342 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi = adap2pinfo(adapter, i); pi 3344 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_alloc_raw_mac_filt(adapter, pi->viid, pi 3348 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->port_id, pi 3349 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 1, pi->port_id, false); pi 3363 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = netdev_priv(dev); pi 3364 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct adapter *adapter = pi->adapter; pi 5000 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = adap2pinfo(adap, i); pi 5003 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_alloc_vi(adap, adap->mbox, pi->tx_chan, adap->pf, 0, 1, pi 5007 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->viid = ret; pi 5008 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->xact_addr_filt = -1; pi 5013 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->vivld = vivld; pi 5014 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->vin = vin; pi 5017 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->vivld = FW_VIID_VIVLD_G(pi->viid); pi 5018 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->vin = FW_VIID_VIN_G(pi->viid); pi 5137 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = adap2pinfo(adap, i); pi 5139 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->first_qset = qidx; pi 5140 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->nqsets = is_kdump_kernel() ? 1 : 8; pi 5141 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c qidx += pi->nqsets; pi 5157 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = adap2pinfo(adap, i); pi 5159 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->first_qset = qidx; pi 5160 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->nqsets = is_x_10g_port(&pi->link_cfg) ? q10g : 1; pi 5161 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c qidx += pi->nqsets; pi 5211 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi; pi 5215 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi = adap2pinfo(adap, i); pi 5216 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (pi->nqsets > 1) { pi 5217 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->nqsets--; pi 5226 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi = adap2pinfo(adap, i); pi 5227 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->first_qset = n; pi 5228 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c n += pi->nqsets; pi 5371 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = adap2pinfo(adap, i); pi 5373 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->rss = kcalloc(pi->rss_size, sizeof(u16), GFP_KERNEL); pi 5374 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (!pi->rss) pi 5398 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c const struct port_info *pi = netdev_priv(dev); pi 5399 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c const struct adapter *adap = pi->adapter; pi 5401 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_100M) pi 5403 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_1G) pi 5405 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_10G) pi 5407 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_25G) pi 5409 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_40G) pi 5411 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_50G) pi 5413 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_100G) pi 5415 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_200G) pi 5417 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_400G) pi 5421 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c sprintf(bufp, "BASE-%s", t4_get_port_type_description(pi->port_type)); pi 5456 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi = adap2pinfo(adapter, i); pi 5458 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (pi->viid != 0) pi 5460 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 0, pi->viid); pi 5559 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi; pi 5605 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi = netdev_priv(netdev); pi 5606 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->adapter = adap; pi 5607 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->lport = port; pi 5608 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->tx_chan = port; pi 5612 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->port_id = 0; pi 5657 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct port_info *pi; pi 5867 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi = netdev_priv(netdev); pi 5868 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->adapter = adapter; pi 5869 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->xact_addr_filt = -1; pi 5870 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->port_id = i; pi 5985 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi = adap2pinfo(adapter, i); pi 5986 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->sched_tbl = t4_init_sched(adapter->params.nsched_cls); pi 5987 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (!pi->sched_tbl) pi 6057 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi = adap2pinfo(adapter, i); pi 6058 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c adapter->port[i]->dev_port = pi->lport; pi 6059 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c netif_set_real_num_tx_queues(adapter->port[i], pi->nqsets); pi 6060 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c netif_set_real_num_rx_queues(adapter->port[i], pi->nqsets); pi 6067 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c adapter->chan_map[pi->tx_chan] = i; pi 129 drivers/net/ethernet/chelsio/cxgb4/cxgb4_mps.c int cxgb4_update_mac_filt(struct port_info *pi, unsigned int viid, pi 135 drivers/net/ethernet/chelsio/cxgb4/cxgb4_mps.c ret = cxgb4_change_mac(pi, viid, tcam_idx, pi 140 drivers/net/ethernet/chelsio/cxgb4/cxgb4_mps.c cxgb4_mps_ref_inc(pi->adapter, addr, *tcam_idx, NULL); pi 72 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c struct port_info *pi; pi 74 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c pi = netdev_priv(dev); pi 75 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c return (pi->ptp_enable && cxgb4_xmit_with_hwtstamp(skb) && pi 99 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c void cxgb4_ptp_read_hwstamp(struct adapter *adapter, struct port_info *pi) pi 107 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c T5_PORT_REG(pi->port_id, MAC_PORT_TX_TS_VAL_LO)); pi 110 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c T5_PORT_REG(pi->port_id, pi 127 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c int cxgb4_ptprx_timestamping(struct port_info *pi, u8 port, u16 mode) pi 129 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c struct adapter *adapter = pi->adapter; pi 171 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c int cxgb4_ptp_redirect_rx_packet(struct adapter *adapter, struct port_info *pi) pi 174 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c struct sge_eth_rxq *receive_q = &s->ethrxq[pi->first_qset]; pi 182 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c FW_PTP_CMD_PORTID_V(pi->port_id)); pi 186 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c c.u.init.txchan = pi->tx_chan; pi 69 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.h int cxgb4_ptprx_timestamping(struct port_info *pi, u8 port, u16 mode); pi 70 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.h int cxgb4_ptp_redirect_rx_packet(struct adapter *adap, struct port_info *pi); pi 72 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.h void cxgb4_ptp_read_hwstamp(struct adapter *adap, struct port_info *pi); pi 399 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c struct port_info *pi = netdev_priv(out); pi 402 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->eport = pi->port_id; pi 498 drivers/net/ethernet/chelsio/cxgb4/l2t.c struct port_info *pi = (struct port_info *)netdev_priv(dev); pi 500 drivers/net/ethernet/chelsio/cxgb4/l2t.c ntuple |= (u64)(FT_VNID_ID_VF_V(pi->vin) | pi 502 drivers/net/ethernet/chelsio/cxgb4/l2t.c FT_VNID_ID_VLD_V(pi->vivld)) << tp->vnic_shift; pi 41 drivers/net/ethernet/chelsio/cxgb4/sched.c static int t4_sched_class_fw_cmd(struct port_info *pi, pi 45 drivers/net/ethernet/chelsio/cxgb4/sched.c struct adapter *adap = pi->adapter; pi 46 drivers/net/ethernet/chelsio/cxgb4/sched.c struct sched_table *s = pi->sched_tbl; pi 69 drivers/net/ethernet/chelsio/cxgb4/sched.c static int t4_sched_bind_unbind_op(struct port_info *pi, void *arg, pi 72 drivers/net/ethernet/chelsio/cxgb4/sched.c struct adapter *adap = pi->adapter; pi 108 drivers/net/ethernet/chelsio/cxgb4/sched.c static struct sched_class *t4_sched_queue_lookup(struct port_info *pi, pi 112 drivers/net/ethernet/chelsio/cxgb4/sched.c struct sched_table *s = pi->sched_tbl; pi 143 drivers/net/ethernet/chelsio/cxgb4/sched.c static int t4_sched_queue_unbind(struct port_info *pi, struct ch_sched_queue *p) pi 145 drivers/net/ethernet/chelsio/cxgb4/sched.c struct adapter *adap = pi->adapter; pi 153 drivers/net/ethernet/chelsio/cxgb4/sched.c if (p->queue < 0 || p->queue >= pi->nqsets) pi 156 drivers/net/ethernet/chelsio/cxgb4/sched.c txq = &adap->sge.ethtxq[pi->first_qset + p->queue]; pi 160 drivers/net/ethernet/chelsio/cxgb4/sched.c e = t4_sched_queue_lookup(pi, qid, &index); pi 169 drivers/net/ethernet/chelsio/cxgb4/sched.c err = t4_sched_bind_unbind_op(pi, (void *)qe, SCHED_QUEUE, pi 184 drivers/net/ethernet/chelsio/cxgb4/sched.c static int t4_sched_queue_bind(struct port_info *pi, struct ch_sched_queue *p) pi 186 drivers/net/ethernet/chelsio/cxgb4/sched.c struct adapter *adap = pi->adapter; pi 187 drivers/net/ethernet/chelsio/cxgb4/sched.c struct sched_table *s = pi->sched_tbl; pi 194 drivers/net/ethernet/chelsio/cxgb4/sched.c if (p->queue < 0 || p->queue >= pi->nqsets) pi 201 drivers/net/ethernet/chelsio/cxgb4/sched.c txq = &adap->sge.ethtxq[pi->first_qset + p->queue]; pi 205 drivers/net/ethernet/chelsio/cxgb4/sched.c err = t4_sched_queue_unbind(pi, p); pi 214 drivers/net/ethernet/chelsio/cxgb4/sched.c err = t4_sched_bind_unbind_op(pi, (void *)qe, SCHED_QUEUE, true); pi 227 drivers/net/ethernet/chelsio/cxgb4/sched.c static void t4_sched_class_unbind_all(struct port_info *pi, pi 239 drivers/net/ethernet/chelsio/cxgb4/sched.c t4_sched_queue_unbind(pi, &qe->param); pi 247 drivers/net/ethernet/chelsio/cxgb4/sched.c static int t4_sched_class_bind_unbind_op(struct port_info *pi, void *arg, pi 260 drivers/net/ethernet/chelsio/cxgb4/sched.c err = t4_sched_queue_bind(pi, qe); pi 262 drivers/net/ethernet/chelsio/cxgb4/sched.c err = t4_sched_queue_unbind(pi, qe); pi 286 drivers/net/ethernet/chelsio/cxgb4/sched.c struct port_info *pi = netdev2pinfo(dev); pi 312 drivers/net/ethernet/chelsio/cxgb4/sched.c return t4_sched_class_bind_unbind_op(pi, arg, type, true); pi 327 drivers/net/ethernet/chelsio/cxgb4/sched.c struct port_info *pi = netdev2pinfo(dev); pi 350 drivers/net/ethernet/chelsio/cxgb4/sched.c return t4_sched_class_bind_unbind_op(pi, arg, type, false); pi 354 drivers/net/ethernet/chelsio/cxgb4/sched.c static struct sched_class *t4_sched_class_lookup(struct port_info *pi, pi 357 drivers/net/ethernet/chelsio/cxgb4/sched.c struct sched_table *s = pi->sched_tbl; pi 400 drivers/net/ethernet/chelsio/cxgb4/sched.c static struct sched_class *t4_sched_class_alloc(struct port_info *pi, pi 421 drivers/net/ethernet/chelsio/cxgb4/sched.c e = t4_sched_class_lookup(pi, p); pi 426 drivers/net/ethernet/chelsio/cxgb4/sched.c e = t4_sched_class_lookup(pi, NULL); pi 433 drivers/net/ethernet/chelsio/cxgb4/sched.c err = t4_sched_class_fw_cmd(pi, &np, SCHED_FW_OP_ADD); pi 457 drivers/net/ethernet/chelsio/cxgb4/sched.c struct port_info *pi = netdev2pinfo(dev); pi 467 drivers/net/ethernet/chelsio/cxgb4/sched.c return t4_sched_class_alloc(pi, p); pi 470 drivers/net/ethernet/chelsio/cxgb4/sched.c static void t4_sched_class_free(struct port_info *pi, struct sched_class *e) pi 472 drivers/net/ethernet/chelsio/cxgb4/sched.c t4_sched_class_unbind_all(pi, e, SCHED_QUEUE); pi 502 drivers/net/ethernet/chelsio/cxgb4/sched.c struct port_info *pi = netdev2pinfo(adap->port[j]); pi 504 drivers/net/ethernet/chelsio/cxgb4/sched.c s = pi->sched_tbl; pi 513 drivers/net/ethernet/chelsio/cxgb4/sched.c t4_sched_class_free(pi, e); pi 82 drivers/net/ethernet/chelsio/cxgb4/sched.h struct port_info *pi = netdev2pinfo(dev); pi 84 drivers/net/ethernet/chelsio/cxgb4/sched.h return !pi->sched_tbl ? false : true; pi 89 drivers/net/ethernet/chelsio/cxgb4/sched.h struct port_info *pi = netdev2pinfo(dev); pi 91 drivers/net/ethernet/chelsio/cxgb4/sched.h if ((class_id > pi->sched_tbl->sched_size - 1) && pi 1184 drivers/net/ethernet/chelsio/cxgb4/sge.c const struct port_info *pi, u64 *cntrl) pi 1186 drivers/net/ethernet/chelsio/cxgb4/sge.c const struct cxgb_fcoe *fcoe = &pi->fcoe; pi 1220 drivers/net/ethernet/chelsio/cxgb4/sge.c struct port_info *pi = netdev_priv(skb->dev); pi 1221 drivers/net/ethernet/chelsio/cxgb4/sge.c struct adapter *adapter = pi->adapter; pi 1371 drivers/net/ethernet/chelsio/cxgb4/sge.c const struct port_info *pi; pi 1402 drivers/net/ethernet/chelsio/cxgb4/sge.c pi = netdev_priv(dev); pi 1403 drivers/net/ethernet/chelsio/cxgb4/sge.c adap = pi->adapter; pi 1422 drivers/net/ethernet/chelsio/cxgb4/sge.c q = &adap->sge.ethtxq[qidx + pi->first_qset]; pi 1430 drivers/net/ethernet/chelsio/cxgb4/sge.c err = cxgb_fcoe_offload(skb, adap, pi, &cntrl); pi 1585 drivers/net/ethernet/chelsio/cxgb4/sge.c ctrl0 = TXPKT_OPCODE_V(CPL_TX_PKT_XT) | TXPKT_INTF_V(pi->tx_chan) | pi 1712 drivers/net/ethernet/chelsio/cxgb4/sge.c const struct port_info *pi; pi 1739 drivers/net/ethernet/chelsio/cxgb4/sge.c pi = netdev_priv(dev); pi 1740 drivers/net/ethernet/chelsio/cxgb4/sge.c adapter = pi->adapter; pi 1742 drivers/net/ethernet/chelsio/cxgb4/sge.c WARN_ON(qidx >= pi->nqsets); pi 1743 drivers/net/ethernet/chelsio/cxgb4/sge.c txq = &adapter->sge.ethtxq[pi->first_qset + qidx]; pi 1888 drivers/net/ethernet/chelsio/cxgb4/sge.c TXPKT_INTF_V(pi->port_id) | pi 1984 drivers/net/ethernet/chelsio/cxgb4/sge.c struct port_info *pi = netdev_priv(dev); pi 1986 drivers/net/ethernet/chelsio/cxgb4/sge.c if (unlikely(pi->eth_flags & PRIV_FLAG_PORT_TX_VM)) pi 2744 drivers/net/ethernet/chelsio/cxgb4/sge.c struct port_info *pi; pi 2763 drivers/net/ethernet/chelsio/cxgb4/sge.c pi = netdev_priv(skb->dev); pi 2764 drivers/net/ethernet/chelsio/cxgb4/sge.c if (pi->rxtstamp) pi 2860 drivers/net/ethernet/chelsio/cxgb4/sge.c struct port_info *pi = netdev_priv(dev); pi 2863 drivers/net/ethernet/chelsio/cxgb4/sge.c cxgb4_ptp_read_hwstamp(adapter, pi); pi 2890 drivers/net/ethernet/chelsio/cxgb4/sge.c struct port_info *pi = netdev_priv(rspq->netdev); pi 2914 drivers/net/ethernet/chelsio/cxgb4/sge.c txq = &s->ethtxq[pi->first_qset + rspq->idx]; pi 2938 drivers/net/ethernet/chelsio/cxgb4/sge.c struct port_info *pi; pi 2981 drivers/net/ethernet/chelsio/cxgb4/sge.c pi = netdev_priv(q->netdev); pi 2984 drivers/net/ethernet/chelsio/cxgb4/sge.c if (unlikely(pi->ptp_enable)) { pi 2993 drivers/net/ethernet/chelsio/cxgb4/sge.c if (unlikely(pi->ptp_enable && !ret && pi 3008 drivers/net/ethernet/chelsio/cxgb4/sge.c if (pi->rxtstamp) pi 3035 drivers/net/ethernet/chelsio/cxgb4/sge.c (pi->fcoe.flags & CXGB_FCOE_ENABLED)) { pi 3519 drivers/net/ethernet/chelsio/cxgb4/sge.c struct port_info *pi = netdev_priv(dev); pi 3538 drivers/net/ethernet/chelsio/cxgb4/sge.c FW_IQ_CMD_IQASYNCH_V(fwevtq) | FW_IQ_CMD_VIID_V(pi->viid) | pi 3543 drivers/net/ethernet/chelsio/cxgb4/sge.c c.iqdroprss_to_iqesize = htons(FW_IQ_CMD_IQPCIECH_V(pi->tx_chan) | pi 3733 drivers/net/ethernet/chelsio/cxgb4/sge.c struct port_info *pi = netdev_priv(dev); pi 3763 drivers/net/ethernet/chelsio/cxgb4/sge.c FW_EQ_ETH_CMD_VIID_V(pi->viid)); pi 3767 drivers/net/ethernet/chelsio/cxgb4/sge.c FW_EQ_ETH_CMD_PCIECHN_V(pi->tx_chan) | pi 3818 drivers/net/ethernet/chelsio/cxgb4/sge.c struct port_info *pi = netdev_priv(dev); pi 3842 drivers/net/ethernet/chelsio/cxgb4/sge.c FW_EQ_CTRL_CMD_PCIECHN_V(pi->tx_chan) | pi 3891 drivers/net/ethernet/chelsio/cxgb4/sge.c struct port_info *pi = netdev_priv(dev); pi 3915 drivers/net/ethernet/chelsio/cxgb4/sge.c FW_EQ_OFLD_CMD_PCIECHN_V(pi->tx_chan) | pi 8265 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c struct port_info *pi, pi 8268 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int ret = t4_enable_vi_params(adap, mbox, pi->viid, pi 8272 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c t4_os_link_changed(adap, pi->port_id, pi 8273 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c rx_en && tx_en && pi->link_cfg.link_ok); pi 8564 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c void t4_handle_get_port_info(struct port_info *pi, const __be64 *rpl) pi 8568 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c struct link_config *lc = &pi->link_cfg; pi 8569 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c struct adapter *adapter = pi->adapter; pi 8626 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c if (mod_type != pi->mod_type) { pi 8657 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c pi->port_type = port_type; pi 8661 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c pi->mod_type = mod_type; pi 8668 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c t4_os_portmod_changed(adapter, pi->port_id); pi 8679 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c pi->tx_chan, pi 8710 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c t4_os_link_changed(adapter, pi->port_id, link_ok); pi 8727 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_link_l1cfg_ns(adapter, adapter->mbox, pi->lport, lc); pi 8746 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_update_port_info(struct port_info *pi) pi 8748 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c unsigned int fw_caps = pi->adapter->params.fw_caps_support; pi 8755 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c FW_PORT_CMD_PORTID_V(pi->tx_chan)); pi 8761 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_wr_mbox(pi->adapter, pi->adapter->mbox, pi 8766 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c t4_handle_get_port_info(pi, (__be64 *)&port_cmd); pi 8781 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_get_link_params(struct port_info *pi, unsigned int *link_okp, pi 8784 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c unsigned int fw_caps = pi->adapter->params.fw_caps_support; pi 8793 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c FW_PORT_CMD_PORTID_V(pi->tx_chan)); pi 8800 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_wr_mbox(pi->adapter, pi->adapter->mbox, pi 8853 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c struct port_info *pi = NULL; pi 8856 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c pi = adap2pinfo(adap, i); pi 8857 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c if (pi->tx_chan == chan) pi 8861 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c t4_handle_get_port_info(pi, rpl); pi 9593 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_init_portinfo(struct port_info *pi, int mbox, pi 9596 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c struct adapter *adapter = pi->adapter; pi 9632 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_wr_mbox(pi->adapter, mbox, &cmd, sizeof(cmd), &cmd); pi 9658 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_alloc_vi(pi->adapter, mbox, port, pf, vf, 1, mac, &rss_size, pi 9663 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c pi->viid = ret; pi 9664 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c pi->tx_chan = port; pi 9665 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c pi->lport = port; pi 9666 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c pi->rss_size = rss_size; pi 9667 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c pi->rx_cchan = t4_get_tp_e2c_map(pi->adapter, port); pi 9673 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c pi->vivld = vivld; pi 9674 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c pi->vin = vin; pi 9677 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c pi->vivld = FW_VIID_VIVLD_G(pi->viid); pi 9678 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c pi->vin = FW_VIID_VIN_G(pi->viid); pi 9681 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c pi->port_type = port_type; pi 9682 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c pi->mdio_addr = mdio_addr; pi 9683 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c pi->mod_type = FW_PORT_MOD_TYPE_NA; pi 9685 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c init_link_config(&pi->link_cfg, pcaps, acaps); pi 9695 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c struct port_info *pi = adap2pinfo(adap, i); pi 9700 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_init_portinfo(pi, mbox, j, pf, vf, addr); pi 156 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c const struct port_info *pi = netdev_priv(dev); pi 160 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c switch (pi->link_cfg.speed) { pi 185 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c switch ((int)pi->link_cfg.fc) { pi 220 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c const struct port_info *pi = netdev_priv(dev); pi 222 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c if (pi->mod_type == FW_PORT_MOD_TYPE_NONE) pi 225 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c else if (pi->mod_type < ARRAY_SIZE(mod_str)) pi 227 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c dev->name, mod_str[pi->mod_type]); pi 228 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c else if (pi->mod_type == FW_PORT_MOD_TYPE_NOTSUPPORTED) pi 231 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c else if (pi->mod_type == FW_PORT_MOD_TYPE_UNKNOWN) pi 234 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c else if (pi->mod_type == FW_PORT_MOD_TYPE_ERROR) pi 239 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c "inserted\n", dev->name, pi->mod_type); pi 242 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c static int cxgb4vf_set_addr_hash(struct port_info *pi) pi 244 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct adapter *adapter = pi->adapter; pi 254 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c return t4vf_set_addr_hash(adapter, pi->viid, ucast, vec, false); pi 274 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c static int cxgb4vf_change_mac(struct port_info *pi, unsigned int viid, pi 278 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct adapter *adapter = pi->adapter; pi 300 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c ret = cxgb4vf_set_addr_hash(pi); pi 324 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi = netdev_priv(dev); pi 330 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c ret = t4vf_set_rxmode(pi->adapter, pi->viid, dev->mtu, -1, -1, -1, 1, pi 333 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c ret = cxgb4vf_change_mac(pi, pi->viid, pi 334 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c &pi->xact_addr_filt, pi 343 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c ret = t4vf_enable_pi(pi->adapter, pi, true, true); pi 368 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c const struct port_info *pi = netdev_priv(dev); pi 371 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c for (qs = 0, msi = MSIX_IQFLINT; qs < pi->nqsets; qs++, msi++) { pi 633 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi = netdev_priv(dev); pi 634 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct sge_eth_rxq *rxq = &s->ethrxq[pi->first_qset]; pi 635 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct sge_eth_txq *txq = &s->ethtxq[pi->first_qset]; pi 638 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c for (qs = 0; qs < pi->nqsets; qs++, rxq++, txq++) { pi 664 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi = netdev_priv(dev); pi 665 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct sge_eth_rxq *rxq = &s->ethrxq[pi->first_qset]; pi 666 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct sge_eth_txq *txq = &s->ethtxq[pi->first_qset]; pi 669 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c for (qs = 0; qs < pi->nqsets; qs++, rxq++, txq++) { pi 706 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi = adap2pinfo(adapter, pidx); pi 707 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct sge_eth_rxq *rxq = &adapter->sge.ethrxq[pi->first_qset]; pi 711 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c for (qs = 0; qs < pi->nqsets; qs++) pi 714 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c err = t4vf_config_rss_range(adapter, pi->viid, pi 715 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 0, pi->rss_size, rss, pi->nqsets); pi 734 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c pi->viid, pi 741 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c pi->viid, pi 838 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi = netdev_priv(dev); pi 839 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct adapter *adapter = pi->adapter; pi 861 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c err = t4vf_update_port_info(pi); pi 872 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c pi->vlan_id = t4vf_get_vf_vlan_acl(adapter); pi 875 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c set_bit(pi->port_id, &adapter->open_device_map); pi 890 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi = netdev_priv(dev); pi 891 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct adapter *adapter = pi->adapter; pi 895 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c t4vf_enable_pi(adapter, pi, false, false); pi 897 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c clear_bit(pi->port_id, &adapter->open_device_map); pi 909 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi = netdev2pinfo(dev); pi 910 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct adapter *adapter = pi->adapter; pi 915 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c err = t4vf_get_port_stats(adapter, pi->pidx, &stats); pi 939 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi = netdev_priv(netdev); pi 940 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct adapter *adapter = pi->adapter; pi 949 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c ret = t4vf_alloc_mac_filt(adapter, pi->viid, free, 1, maclist, pi 963 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c ret = cxgb4vf_set_addr_hash(pi); pi 971 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi = netdev_priv(netdev); pi 972 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct adapter *adapter = pi->adapter; pi 984 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c return cxgb4vf_set_addr_hash(pi); pi 988 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c ret = t4vf_free_mac_filt(adapter, pi->viid, 1, maclist, false); pi 998 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi = netdev_priv(dev); pi 1002 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c return t4vf_set_rxmode(pi->adapter, pi->viid, -1, pi 1169 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi = netdev_priv(dev); pi 1171 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c ret = t4vf_set_rxmode(pi->adapter, pi->viid, new_mtu, pi 1196 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi = netdev_priv(dev); pi 1200 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c t4vf_set_rxmode(pi->adapter, pi->viid, -1, -1, -1, -1, pi 1213 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi = netdev_priv(dev); pi 1218 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c ret = cxgb4vf_change_mac(pi, pi->viid, &pi->xact_addr_filt, pi 1234 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi = netdev_priv(dev); pi 1235 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct adapter *adapter = pi->adapter; pi 1241 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c rxq = &adapter->sge.ethrxq[pi->first_qset]; pi 1242 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c for (nqsets = pi->nqsets; nqsets; nqsets--) { pi 1441 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi = netdev_priv(dev); pi 1449 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c (void)t4vf_update_port_info(pi); pi 1455 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c base->port = from_fw_port_mod_type(pi->port_type, pi->mod_type); pi 1457 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c if (pi->mdio_addr >= 0) { pi 1458 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c base->phy_address = pi->mdio_addr; pi 1459 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c base->mdio_support = (pi->port_type == FW_PORT_TYPE_BT_SGMII pi 1467 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c fw_caps_to_lmm(pi->port_type, pi->link_cfg.pcaps, pi 1469 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c fw_caps_to_lmm(pi->port_type, pi->link_cfg.acaps, pi 1471 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c fw_caps_to_lmm(pi->port_type, pi->link_cfg.lpacaps, pi 1475 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c base->speed = pi->link_cfg.speed; pi 1482 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c base->autoneg = pi->link_cfg.autoneg; pi 1483 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c if (pi->link_cfg.pcaps & FW_PORT_CAP32_ANEG) pi 1486 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c if (pi->link_cfg.autoneg) pi 1532 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c const struct port_info *pi = netdev_priv(dev); pi 1533 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c const struct link_config *lc = &pi->link_cfg; pi 1599 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c const struct port_info *pi = netdev_priv(dev); pi 1600 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c const struct sge *s = &pi->adapter->sge; pi 1607 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c rp->rx_pending = s->ethrxq[pi->first_qset].fl.size - MIN_FL_RESID; pi 1608 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c rp->rx_mini_pending = s->ethrxq[pi->first_qset].rspq.size; pi 1610 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c rp->tx_pending = s->ethtxq[pi->first_qset].q.size; pi 1622 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c const struct port_info *pi = netdev_priv(dev); pi 1623 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct adapter *adapter = pi->adapter; pi 1639 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c for (qs = pi->first_qset; qs < pi->first_qset + pi->nqsets; qs++) { pi 1655 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c const struct port_info *pi = netdev_priv(dev); pi 1656 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c const struct adapter *adapter = pi->adapter; pi 1657 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c const struct sge_rspq *rspq = &adapter->sge.ethrxq[pi->first_qset].rspq; pi 1675 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c const struct port_info *pi = netdev_priv(dev); pi 1676 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct adapter *adapter = pi->adapter; pi 1679 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c &adapter->sge.ethrxq[pi->first_qset].rspq, pi 1690 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi = netdev_priv(dev); pi 1692 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c pauseparam->autoneg = (pi->link_cfg.requested_fc & PAUSE_AUTONEG) != 0; pi 1693 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c pauseparam->rx_pause = (pi->link_cfg.advertised_fc & PAUSE_RX) != 0; pi 1694 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c pauseparam->tx_pause = (pi->link_cfg.advertised_fc & PAUSE_TX) != 0; pi 1704 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi = netdev_priv(dev); pi 1713 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c return t4vf_identify_port(pi->adapter, pi->viid, val); pi 1801 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c const struct port_info *pi, pi 1804 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c const struct sge_eth_txq *txq = &adapter->sge.ethtxq[pi->first_qset]; pi 1805 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c const struct sge_eth_rxq *rxq = &adapter->sge.ethrxq[pi->first_qset]; pi 1809 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c for (qs = 0; qs < pi->nqsets; qs++, rxq++, txq++) { pi 1827 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi = netdev2pinfo(dev); pi 1828 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct adapter *adapter = pi->adapter; pi 1829 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c int err = t4vf_get_port_stats(adapter, pi->pidx, pi 1835 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c collect_sge_port_stats(adapter, pi, (struct queue_port_stats *)data); pi 2387 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi = netdev_priv(dev); pi 2390 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c dev->name, pi->port_id, pi->viid); pi 2772 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi = adap2pinfo(adapter, pidx); pi 2774 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c pi->first_qset = qidx; pi 2775 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c pi->nqsets = is_x_10g_port(&pi->link_cfg) ? q10g : 1; pi 2776 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c qidx += pi->nqsets; pi 2830 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi; pi 2839 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c pi = adap2pinfo(adapter, i); pi 2840 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c if (pi->nqsets > 1) { pi 2841 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c pi->nqsets--; pi 2853 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c pi = adap2pinfo(adapter, i); pi 2854 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c pi->first_qset = n; pi 2855 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c n += pi->nqsets; pi 2932 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi; pi 3112 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c pi = netdev_priv(netdev); pi 3113 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c pi->adapter = adapter; pi 3114 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c pi->pidx = pidx; pi 3115 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c pi->port_id = port_id; pi 3121 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c pi->xact_addr_filt = -1; pi 3138 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c netdev->dev_port = pi->port_id; pi 3155 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c pi->viid = viid; pi 3229 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi = netdev_priv(adapter->port[pidx]); pi 3234 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c netif_set_real_num_tx_queues(netdev, pi->nqsets); pi 3235 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c netif_set_real_num_rx_queues(netdev, pi->nqsets); pi 3296 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c pi = netdev_priv(netdev); pi 3297 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c if (pi->viid) pi 3298 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c t4vf_free_vi(adapter, pi->viid); pi 3370 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi; pi 3375 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c pi = netdev_priv(netdev); pi 3376 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c if (pi->viid) pi 3377 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c t4vf_free_vi(adapter, pi->viid); pi 1165 drivers/net/ethernet/chelsio/cxgb4vf/sge.c const struct port_info *pi; pi 1194 drivers/net/ethernet/chelsio/cxgb4vf/sge.c pi = netdev_priv(dev); pi 1195 drivers/net/ethernet/chelsio/cxgb4vf/sge.c adapter = pi->adapter; pi 1197 drivers/net/ethernet/chelsio/cxgb4vf/sge.c BUG_ON(qidx >= pi->nqsets); pi 1198 drivers/net/ethernet/chelsio/cxgb4vf/sge.c txq = &adapter->sge.ethtxq[pi->first_qset + qidx]; pi 1200 drivers/net/ethernet/chelsio/cxgb4vf/sge.c if (pi->vlan_id && !skb_vlan_tag_present(skb)) pi 1202 drivers/net/ethernet/chelsio/cxgb4vf/sge.c pi->vlan_id); pi 1358 drivers/net/ethernet/chelsio/cxgb4vf/sge.c TXPKT_INTF_V(pi->port_id) | pi 1572 drivers/net/ethernet/chelsio/cxgb4vf/sge.c struct port_info *pi; pi 1589 drivers/net/ethernet/chelsio/cxgb4vf/sge.c pi = netdev_priv(skb->dev); pi 1591 drivers/net/ethernet/chelsio/cxgb4vf/sge.c if (pkt->vlan_ex && !pi->vlan_id) { pi 1624 drivers/net/ethernet/chelsio/cxgb4vf/sge.c struct port_info *pi; pi 1649 drivers/net/ethernet/chelsio/cxgb4vf/sge.c pi = netdev_priv(skb->dev); pi 1666 drivers/net/ethernet/chelsio/cxgb4vf/sge.c if (pkt->vlan_ex && !pi->vlan_id) { pi 2210 drivers/net/ethernet/chelsio/cxgb4vf/sge.c struct port_info *pi = netdev_priv(dev); pi 2259 drivers/net/ethernet/chelsio/cxgb4vf/sge.c FW_IQ_CMD_VIID_V(pi->viid) | pi 2265 drivers/net/ethernet/chelsio/cxgb4vf/sge.c cpu_to_be16(FW_IQ_CMD_IQPCIECH_V(pi->port_id) | pi 2417 drivers/net/ethernet/chelsio/cxgb4vf/sge.c struct port_info *pi = netdev_priv(dev); pi 2455 drivers/net/ethernet/chelsio/cxgb4vf/sge.c FW_EQ_ETH_CMD_VIID_V(pi->viid)); pi 2458 drivers/net/ethernet/chelsio/cxgb4vf/sge.c FW_EQ_ETH_CMD_PCIECHN_V(pi->port_id) | pi 397 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h int t4vf_enable_pi(struct adapter *adapter, struct port_info *pi, bool rx_en, pi 415 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h int t4vf_update_port_info(struct port_info *pi); pi 499 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c struct port_info *pi = adap2pinfo(adapter, pidx); pi 534 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c vi_cmd.type_viid = cpu_to_be16(FW_VI_CMD_VIID_V(pi->viid)); pi 539 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c BUG_ON(pi->port_id != FW_VI_CMD_PORTID_G(vi_rpl.portid_pkd)); pi 540 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c pi->rss_size = FW_VI_CMD_RSSSIZE_G(be16_to_cpu(vi_rpl.rsssize_pkd)); pi 554 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c FW_PORT_CMD_PORTID_V(pi->port_id)); pi 586 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c pi->port_type = port_type; pi 587 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c pi->mdio_addr = mdio_addr; pi 588 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c pi->mod_type = FW_PORT_MOD_TYPE_NA; pi 590 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c init_link_config(&pi->link_cfg, pcaps, acaps); pi 1424 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c int t4vf_enable_pi(struct adapter *adapter, struct port_info *pi, pi 1427 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c int ret = t4vf_enable_vi(adapter, pi->viid, rx_en, tx_en); pi 1431 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c t4vf_os_link_changed(adapter, pi->pidx, pi 1432 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c rx_en && tx_en && pi->link_cfg.link_ok); pi 1767 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c struct port_info *pi = adap2pinfo(adapter, pidx); pi 1788 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c FW_VI_STATS_CMD_VIID_V(pi->viid) | pi 1913 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c static void t4vf_handle_get_port_info(struct port_info *pi, pi 1917 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c struct link_config *lc = &pi->link_cfg; pi 1918 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c struct adapter *adapter = pi->adapter; pi 1989 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c if (mod_type != pi->mod_type) { pi 2009 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c pi->port_type = port_type; pi 2011 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c pi->mod_type = mod_type; pi 2012 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c t4vf_os_portmod_changed(adapter, pi->pidx); pi 2023 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c pi->port_id, pi 2055 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c t4vf_os_link_changed(adapter, pi->pidx, link_ok); pi 2067 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c int t4vf_update_port_info(struct port_info *pi) pi 2069 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c unsigned int fw_caps = pi->adapter->params.fw_caps_support; pi 2076 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c FW_PORT_CMD_PORTID_V(pi->port_id)); pi 2082 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c ret = t4vf_wr_mbox(pi->adapter, &port_cmd, sizeof(port_cmd), pi 2086 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c t4vf_handle_get_port_info(pi, &port_cmd); pi 2124 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c struct port_info *pi = adap2pinfo(adapter, pidx); pi 2126 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c if (pi->port_id != port_id) pi 2128 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c t4vf_handle_get_port_info(pi, port_cmd); pi 302 drivers/net/ethernet/freescale/enetc/enetc.c int pi = enetc_rd_reg(tx_ring->tcir) & ENETC_TBCIR_IDX_MASK; pi 304 drivers/net/ethernet/freescale/enetc/enetc.c return pi >= ci ? pi - ci : tx_ring->bd_count - ci + pi; pi 50 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c #define CMDQ_DB_PI_OFF(pi) (((u16)LOWER_8_BITS(pi)) << 3) pi 52 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c #define CMDQ_DB_ADDR(db_base, pi) ((db_base) + CMDQ_DB_PI_OFF(pi)) pi 59 drivers/net/ethernet/huawei/hinic/hinic_hw_qp.c #define SQ_DB_ADDR(sq, pi) ((u64 *)((sq)->db_base) + SQ_DB_PI_LOW(pi)) pi 445 drivers/net/ethernet/intel/ice/ice.h struct ice_vsi *ice_lb_vsi_setup(struct ice_pf *pf, struct ice_port_info *pi); pi 143 drivers/net/ethernet/intel/ice/ice_common.c ice_aq_get_phy_caps(struct ice_port_info *pi, bool qual_mods, u8 report_mode, pi 154 drivers/net/ethernet/intel/ice/ice_common.c if (!pcaps || (report_mode & ~ICE_AQC_REPORT_MODE_M) || !pi) pi 163 drivers/net/ethernet/intel/ice/ice_common.c status = ice_aq_send_cmd(pi->hw, &desc, pcaps, pcaps_size, cd); pi 166 drivers/net/ethernet/intel/ice/ice_common.c pi->phy.phy_type_low = le64_to_cpu(pcaps->phy_type_low); pi 167 drivers/net/ethernet/intel/ice/ice_common.c pi->phy.phy_type_high = le64_to_cpu(pcaps->phy_type_high); pi 177 drivers/net/ethernet/intel/ice/ice_common.c static enum ice_media_type ice_get_media_type(struct ice_port_info *pi) pi 181 drivers/net/ethernet/intel/ice/ice_common.c if (!pi) pi 184 drivers/net/ethernet/intel/ice/ice_common.c hw_link_info = &pi->phy.link_info; pi 263 drivers/net/ethernet/intel/ice/ice_common.c ice_aq_get_link_info(struct ice_port_info *pi, bool ena_lse, pi 277 drivers/net/ethernet/intel/ice/ice_common.c if (!pi) pi 279 drivers/net/ethernet/intel/ice/ice_common.c hw = pi->hw; pi 280 drivers/net/ethernet/intel/ice/ice_common.c li_old = &pi->phy.link_info_old; pi 281 drivers/net/ethernet/intel/ice/ice_common.c hw_media_type = &pi->phy.media_type; pi 282 drivers/net/ethernet/intel/ice/ice_common.c li = &pi->phy.link_info; pi 283 drivers/net/ethernet/intel/ice/ice_common.c hw_fc_info = &pi->fc; pi 289 drivers/net/ethernet/intel/ice/ice_common.c resp->lport_num = pi->lport; pi 303 drivers/net/ethernet/intel/ice/ice_common.c *hw_media_type = ice_get_media_type(pi); pi 345 drivers/net/ethernet/intel/ice/ice_common.c pi->phy.get_link_info = false; pi 2225 drivers/net/ethernet/intel/ice/ice_common.c enum ice_status ice_update_link_info(struct ice_port_info *pi) pi 2230 drivers/net/ethernet/intel/ice/ice_common.c if (!pi) pi 2233 drivers/net/ethernet/intel/ice/ice_common.c li = &pi->phy.link_info; pi 2235 drivers/net/ethernet/intel/ice/ice_common.c status = ice_aq_get_link_info(pi, true, NULL, NULL); pi 2243 drivers/net/ethernet/intel/ice/ice_common.c hw = pi->hw; pi 2249 drivers/net/ethernet/intel/ice/ice_common.c status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_TOPO_CAP, pi 2270 drivers/net/ethernet/intel/ice/ice_common.c ice_set_fc(struct ice_port_info *pi, u8 *aq_failures, bool ena_auto_link_update) pi 2278 drivers/net/ethernet/intel/ice/ice_common.c if (!pi) pi 2280 drivers/net/ethernet/intel/ice/ice_common.c hw = pi->hw; pi 2283 drivers/net/ethernet/intel/ice/ice_common.c switch (pi->fc.req_mode) { pi 2303 drivers/net/ethernet/intel/ice/ice_common.c status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_SW_CFG, pcaps, pi 2332 drivers/net/ethernet/intel/ice/ice_common.c status = ice_aq_set_phy_cfg(hw, pi->lport, &cfg, NULL); pi 2344 drivers/net/ethernet/intel/ice/ice_common.c status = ice_update_link_info(pi); pi 2435 drivers/net/ethernet/intel/ice/ice_common.c enum ice_status ice_get_link_status(struct ice_port_info *pi, bool *link_up) pi 2440 drivers/net/ethernet/intel/ice/ice_common.c if (!pi || !link_up) pi 2443 drivers/net/ethernet/intel/ice/ice_common.c phy_info = &pi->phy; pi 2446 drivers/net/ethernet/intel/ice/ice_common.c status = ice_update_link_info(pi); pi 2449 drivers/net/ethernet/intel/ice/ice_common.c ice_debug(pi->hw, ICE_DBG_LINK, pi 2468 drivers/net/ethernet/intel/ice/ice_common.c ice_aq_set_link_restart_an(struct ice_port_info *pi, bool ena_link, pi 2479 drivers/net/ethernet/intel/ice/ice_common.c cmd->lport_num = pi->lport; pi 2485 drivers/net/ethernet/intel/ice/ice_common.c return ice_aq_send_cmd(pi->hw, &desc, NULL, 0, cd); pi 2546 drivers/net/ethernet/intel/ice/ice_common.c ice_aq_set_port_id_led(struct ice_port_info *pi, bool is_orig_mode, pi 2550 drivers/net/ethernet/intel/ice/ice_common.c struct ice_hw *hw = pi->hw; pi 3189 drivers/net/ethernet/intel/ice/ice_common.c ice_ena_vsi_txq(struct ice_port_info *pi, u16 vsi_handle, u8 tc, u16 q_handle, pi 3199 drivers/net/ethernet/intel/ice/ice_common.c if (!pi || pi->port_state != ICE_SCHED_PORT_STATE_READY) pi 3205 drivers/net/ethernet/intel/ice/ice_common.c hw = pi->hw; pi 3210 drivers/net/ethernet/intel/ice/ice_common.c mutex_lock(&pi->sched_lock); pi 3221 drivers/net/ethernet/intel/ice/ice_common.c parent = ice_sched_get_free_qparent(pi, vsi_handle, tc, pi 3257 drivers/net/ethernet/intel/ice/ice_common.c status = ice_sched_add_node(pi, hw->num_tx_sched_layers - 1, &node); pi 3260 drivers/net/ethernet/intel/ice/ice_common.c mutex_unlock(&pi->sched_lock); pi 3280 drivers/net/ethernet/intel/ice/ice_common.c ice_dis_vsi_txq(struct ice_port_info *pi, u16 vsi_handle, u8 tc, u8 num_queues, pi 3290 drivers/net/ethernet/intel/ice/ice_common.c if (!pi || pi->port_state != ICE_SCHED_PORT_STATE_READY) pi 3299 drivers/net/ethernet/intel/ice/ice_common.c return ice_aq_dis_lan_txq(pi->hw, 0, NULL, 0, rst_src, pi 3304 drivers/net/ethernet/intel/ice/ice_common.c mutex_lock(&pi->sched_lock); pi 3309 drivers/net/ethernet/intel/ice/ice_common.c node = ice_sched_find_node_by_teid(pi->root, q_teids[i]); pi 3312 drivers/net/ethernet/intel/ice/ice_common.c q_ctx = ice_get_lan_q_ctx(pi->hw, vsi_handle, tc, q_handles[i]); pi 3314 drivers/net/ethernet/intel/ice/ice_common.c ice_debug(pi->hw, ICE_DBG_SCHED, "invalid queue handle%d\n", pi 3319 drivers/net/ethernet/intel/ice/ice_common.c ice_debug(pi->hw, ICE_DBG_SCHED, "Err:handles %d %d\n", pi 3326 drivers/net/ethernet/intel/ice/ice_common.c status = ice_aq_dis_lan_txq(pi->hw, 1, &qg_list, pi 3332 drivers/net/ethernet/intel/ice/ice_common.c ice_free_sched_node(pi, node); pi 3335 drivers/net/ethernet/intel/ice/ice_common.c mutex_unlock(&pi->sched_lock); pi 3350 drivers/net/ethernet/intel/ice/ice_common.c ice_cfg_vsi_qs(struct ice_port_info *pi, u16 vsi_handle, u8 tc_bitmap, pi 3356 drivers/net/ethernet/intel/ice/ice_common.c if (!pi || pi->port_state != ICE_SCHED_PORT_STATE_READY) pi 3359 drivers/net/ethernet/intel/ice/ice_common.c if (!ice_is_vsi_valid(pi->hw, vsi_handle)) pi 3362 drivers/net/ethernet/intel/ice/ice_common.c mutex_lock(&pi->sched_lock); pi 3366 drivers/net/ethernet/intel/ice/ice_common.c if (!ice_sched_get_tc_node(pi, i)) pi 3369 drivers/net/ethernet/intel/ice/ice_common.c status = ice_sched_cfg_vsi(pi, vsi_handle, i, maxqs[i], owner, pi 3375 drivers/net/ethernet/intel/ice/ice_common.c mutex_unlock(&pi->sched_lock); pi 3389 drivers/net/ethernet/intel/ice/ice_common.c ice_cfg_vsi_lan(struct ice_port_info *pi, u16 vsi_handle, u8 tc_bitmap, pi 3392 drivers/net/ethernet/intel/ice/ice_common.c return ice_cfg_vsi_qs(pi, vsi_handle, tc_bitmap, max_lanqs, pi 29 drivers/net/ethernet/intel/ice/ice_common.h ice_get_link_status(struct ice_port_info *pi, bool *link_up); pi 30 drivers/net/ethernet/intel/ice/ice_common.h enum ice_status ice_update_link_info(struct ice_port_info *pi); pi 84 drivers/net/ethernet/intel/ice/ice_common.h ice_aq_get_phy_caps(struct ice_port_info *pi, bool qual_mods, u8 report_mode, pi 98 drivers/net/ethernet/intel/ice/ice_common.h ice_set_fc(struct ice_port_info *pi, u8 *aq_failures, pi 106 drivers/net/ethernet/intel/ice/ice_common.h ice_aq_set_link_restart_an(struct ice_port_info *pi, bool ena_link, pi 109 drivers/net/ethernet/intel/ice/ice_common.h ice_aq_get_link_info(struct ice_port_info *pi, bool ena_lse, pi 118 drivers/net/ethernet/intel/ice/ice_common.h ice_aq_set_port_id_led(struct ice_port_info *pi, bool is_orig_mode, pi 122 drivers/net/ethernet/intel/ice/ice_common.h ice_dis_vsi_txq(struct ice_port_info *pi, u16 vsi_handle, u8 tc, u8 num_queues, pi 127 drivers/net/ethernet/intel/ice/ice_common.h ice_cfg_vsi_lan(struct ice_port_info *pi, u16 vsi_handle, u8 tc_bitmap, pi 130 drivers/net/ethernet/intel/ice/ice_common.h ice_ena_vsi_txq(struct ice_port_info *pi, u16 vsi_handle, u8 tc, u16 q_handle, pi 877 drivers/net/ethernet/intel/ice/ice_dcb.c ice_get_ieee_or_cee_dcb_cfg(struct ice_port_info *pi, u8 dcbx_mode) pi 882 drivers/net/ethernet/intel/ice/ice_dcb.c if (!pi) pi 886 drivers/net/ethernet/intel/ice/ice_dcb.c dcbx_cfg = &pi->local_dcbx_cfg; pi 888 drivers/net/ethernet/intel/ice/ice_dcb.c dcbx_cfg = &pi->desired_dcbx_cfg; pi 893 drivers/net/ethernet/intel/ice/ice_dcb.c ret = ice_aq_get_dcb_cfg(pi->hw, ICE_AQ_LLDP_MIB_LOCAL, pi 899 drivers/net/ethernet/intel/ice/ice_dcb.c dcbx_cfg = &pi->remote_dcbx_cfg; pi 900 drivers/net/ethernet/intel/ice/ice_dcb.c ret = ice_aq_get_dcb_cfg(pi->hw, ICE_AQ_LLDP_MIB_REMOTE, pi 903 drivers/net/ethernet/intel/ice/ice_dcb.c if (pi->hw->adminq.sq_last_status == ICE_AQ_RC_ENOENT) pi 916 drivers/net/ethernet/intel/ice/ice_dcb.c enum ice_status ice_get_dcb_cfg(struct ice_port_info *pi) pi 922 drivers/net/ethernet/intel/ice/ice_dcb.c if (!pi) pi 925 drivers/net/ethernet/intel/ice/ice_dcb.c ret = ice_aq_get_cee_dcb_cfg(pi->hw, &cee_cfg, NULL); pi 928 drivers/net/ethernet/intel/ice/ice_dcb.c dcbx_cfg = &pi->local_dcbx_cfg; pi 932 drivers/net/ethernet/intel/ice/ice_dcb.c ret = ice_get_ieee_or_cee_dcb_cfg(pi, ICE_DCBX_MODE_CEE); pi 933 drivers/net/ethernet/intel/ice/ice_dcb.c } else if (pi->hw->adminq.sq_last_status == ICE_AQ_RC_ENOENT) { pi 935 drivers/net/ethernet/intel/ice/ice_dcb.c dcbx_cfg = &pi->local_dcbx_cfg; pi 937 drivers/net/ethernet/intel/ice/ice_dcb.c ret = ice_get_ieee_or_cee_dcb_cfg(pi, ICE_DCBX_MODE_IEEE); pi 952 drivers/net/ethernet/intel/ice/ice_dcb.c struct ice_port_info *pi = hw->port_info; pi 958 drivers/net/ethernet/intel/ice/ice_dcb.c pi->is_sw_lldp = true; pi 961 drivers/net/ethernet/intel/ice/ice_dcb.c pi->dcbx_status = ice_get_dcbx_status(hw); pi 963 drivers/net/ethernet/intel/ice/ice_dcb.c if (pi->dcbx_status == ICE_DCBX_STATUS_DONE || pi 964 drivers/net/ethernet/intel/ice/ice_dcb.c pi->dcbx_status == ICE_DCBX_STATUS_IN_PROGRESS || pi 965 drivers/net/ethernet/intel/ice/ice_dcb.c pi->dcbx_status == ICE_DCBX_STATUS_NOT_STARTED) { pi 967 drivers/net/ethernet/intel/ice/ice_dcb.c ret = ice_get_dcb_cfg(pi); pi 968 drivers/net/ethernet/intel/ice/ice_dcb.c pi->is_sw_lldp = (hw->adminq.sq_last_status == ICE_AQ_RC_EPERM); pi 971 drivers/net/ethernet/intel/ice/ice_dcb.c } else if (pi->dcbx_status == ICE_DCBX_STATUS_DIS) { pi 979 drivers/net/ethernet/intel/ice/ice_dcb.c pi->is_sw_lldp = false; pi 994 drivers/net/ethernet/intel/ice/ice_dcb.c struct ice_port_info *pi = hw->port_info; pi 1001 drivers/net/ethernet/intel/ice/ice_dcb.c pi->dcbx_status = ice_get_dcbx_status(hw); pi 1003 drivers/net/ethernet/intel/ice/ice_dcb.c if (pi->dcbx_status == ICE_DCBX_STATUS_DIS) pi 1008 drivers/net/ethernet/intel/ice/ice_dcb.c pi->is_sw_lldp = !ena_mib; pi 1292 drivers/net/ethernet/intel/ice/ice_dcb.c enum ice_status ice_set_dcb_cfg(struct ice_port_info *pi) pi 1300 drivers/net/ethernet/intel/ice/ice_dcb.c if (!pi) pi 1303 drivers/net/ethernet/intel/ice/ice_dcb.c hw = pi->hw; pi 1306 drivers/net/ethernet/intel/ice/ice_dcb.c dcbcfg = &pi->local_dcbx_cfg; pi 1335 drivers/net/ethernet/intel/ice/ice_dcb.c ice_aq_query_port_ets(struct ice_port_info *pi, pi 1343 drivers/net/ethernet/intel/ice/ice_dcb.c if (!pi) pi 1347 drivers/net/ethernet/intel/ice/ice_dcb.c cmd->port_teid = pi->root->info.node_teid; pi 1349 drivers/net/ethernet/intel/ice/ice_dcb.c status = ice_aq_send_cmd(pi->hw, &desc, buf, buf_size, cd); pi 1361 drivers/net/ethernet/intel/ice/ice_dcb.c ice_update_port_tc_tree_cfg(struct ice_port_info *pi, pi 1370 drivers/net/ethernet/intel/ice/ice_dcb.c if (!pi) pi 1373 drivers/net/ethernet/intel/ice/ice_dcb.c for (i = 0; i < pi->root->num_children; i++) { pi 1374 drivers/net/ethernet/intel/ice/ice_dcb.c teid1 = le32_to_cpu(pi->root->children[i]->info.node_teid); pi 1383 drivers/net/ethernet/intel/ice/ice_dcb.c pi->root->children[i]->in_use = false; pi 1391 drivers/net/ethernet/intel/ice/ice_dcb.c for (i = 0; i < pi->root->num_children; i++) { pi 1392 drivers/net/ethernet/intel/ice/ice_dcb.c tc_node = pi->root->children[i]; pi 1402 drivers/net/ethernet/intel/ice/ice_dcb.c if (i < pi->root->num_children) pi 1405 drivers/net/ethernet/intel/ice/ice_dcb.c status = ice_sched_query_elem(pi->hw, teid2, &elem); pi 1407 drivers/net/ethernet/intel/ice/ice_dcb.c status = ice_sched_add_node(pi, 1, &elem.generic[0]); pi 1411 drivers/net/ethernet/intel/ice/ice_dcb.c node = ice_sched_find_node_by_teid(pi->root, teid2); pi 1429 drivers/net/ethernet/intel/ice/ice_dcb.c ice_query_port_ets(struct ice_port_info *pi, pi 1435 drivers/net/ethernet/intel/ice/ice_dcb.c mutex_lock(&pi->sched_lock); pi 1436 drivers/net/ethernet/intel/ice/ice_dcb.c status = ice_aq_query_port_ets(pi, buf, buf_size, cd); pi 1438 drivers/net/ethernet/intel/ice/ice_dcb.c status = ice_update_port_tc_tree_cfg(pi, buf); pi 1439 drivers/net/ethernet/intel/ice/ice_dcb.c mutex_unlock(&pi->sched_lock); pi 126 drivers/net/ethernet/intel/ice/ice_dcb.h enum ice_status ice_get_dcb_cfg(struct ice_port_info *pi); pi 127 drivers/net/ethernet/intel/ice/ice_dcb.h enum ice_status ice_set_dcb_cfg(struct ice_port_info *pi); pi 130 drivers/net/ethernet/intel/ice/ice_dcb.h ice_query_port_ets(struct ice_port_info *pi, pi 252 drivers/net/ethernet/intel/ice/ice_dcb_lib.c static void ice_cfg_etsrec_defaults(struct ice_port_info *pi) pi 254 drivers/net/ethernet/intel/ice/ice_dcb_lib.c struct ice_dcbx_cfg *dcbcfg = &pi->local_dcbx_cfg; pi 417 drivers/net/ethernet/intel/ice/ice_dcb_lib.c struct ice_port_info *pi; pi 420 drivers/net/ethernet/intel/ice/ice_dcb_lib.c pi = pf->hw.port_info; pi 425 drivers/net/ethernet/intel/ice/ice_dcb_lib.c memcpy(newcfg, &pi->local_dcbx_cfg, sizeof(*newcfg)); pi 426 drivers/net/ethernet/intel/ice/ice_dcb_lib.c memset(&pi->local_dcbx_cfg, 0, sizeof(*newcfg)); pi 446 drivers/net/ethernet/intel/ice/ice_dcb_lib.c struct ice_port_info *pi; pi 451 drivers/net/ethernet/intel/ice/ice_dcb_lib.c pi = hw->port_info; pi 455 drivers/net/ethernet/intel/ice/ice_dcb_lib.c memset(&pi->local_dcbx_cfg, 0, sizeof(*dcbcfg)); pi 479 drivers/net/ethernet/intel/ice/ice_dcb_lib.c return ice_query_port_ets(pi, &buf, sizeof(buf), NULL); pi 629 drivers/net/ethernet/intel/ice/ice_dcb_lib.c struct ice_port_info *pi; pi 643 drivers/net/ethernet/intel/ice/ice_dcb_lib.c pi = pf->hw.port_info; pi 658 drivers/net/ethernet/intel/ice/ice_dcb_lib.c ret = ice_aq_get_dcb_cfg(pi->hw, ICE_AQ_LLDP_MIB_REMOTE, pi 660 drivers/net/ethernet/intel/ice/ice_dcb_lib.c &pi->remote_dcbx_cfg); pi 671 drivers/net/ethernet/intel/ice/ice_dcb_lib.c memset(&pi->local_dcbx_cfg, 0, sizeof(pi->local_dcbx_cfg)); pi 681 drivers/net/ethernet/intel/ice/ice_dcb_lib.c if (!memcmp(&tmp_dcbx_cfg, &pi->local_dcbx_cfg, sizeof(tmp_dcbx_cfg))) { pi 688 drivers/net/ethernet/intel/ice/ice_dcb_lib.c &pi->local_dcbx_cfg); pi 693 drivers/net/ethernet/intel/ice/ice_dcb_lib.c if (ice_dcb_get_num_tc(&pi->local_dcbx_cfg) > 1) { pi 949 drivers/net/ethernet/intel/ice/ice_ethtool.c struct ice_port_info *pi; pi 953 drivers/net/ethernet/intel/ice/ice_ethtool.c pi = vsi->port_info; pi 954 drivers/net/ethernet/intel/ice/ice_ethtool.c if (!pi) pi 968 drivers/net/ethernet/intel/ice/ice_ethtool.c status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_SW_CFG, pi 983 drivers/net/ethernet/intel/ice/ice_ethtool.c status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_TOPO_CAP, pi 1002 drivers/net/ethernet/intel/ice/ice_ethtool.c status = ice_aq_set_phy_cfg(pi->hw, pi->lport, &config, NULL); pi 1060 drivers/net/ethernet/intel/ice/ice_ethtool.c struct ice_port_info *pi; pi 1064 drivers/net/ethernet/intel/ice/ice_ethtool.c pi = vsi->port_info; pi 1066 drivers/net/ethernet/intel/ice/ice_ethtool.c if (!pi) pi 1068 drivers/net/ethernet/intel/ice/ice_ethtool.c link_info = &pi->phy.link_info; pi 1089 drivers/net/ethernet/intel/ice/ice_ethtool.c status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_TOPO_CAP, pi 1703 drivers/net/ethernet/intel/ice/ice_ethtool.c struct ice_port_info *pi = np->vsi->port_info; pi 2034 drivers/net/ethernet/intel/ice/ice_ethtool.c switch (pi->fc.current_mode) { pi 2762 drivers/net/ethernet/intel/ice/ice_ethtool.c struct ice_port_info *pi; pi 2765 drivers/net/ethernet/intel/ice/ice_ethtool.c pi = vsi->port_info; pi 2768 drivers/net/ethernet/intel/ice/ice_ethtool.c status = ice_aq_set_link_restart_an(pi, true, NULL); pi 2770 drivers/net/ethernet/intel/ice/ice_ethtool.c status = ice_aq_set_link_restart_an(pi, false, NULL); pi 2774 drivers/net/ethernet/intel/ice/ice_ethtool.c status, pi->hw->adminq.sq_last_status); pi 2795 drivers/net/ethernet/intel/ice/ice_ethtool.c struct ice_port_info *pi = np->vsi->port_info; pi 2805 drivers/net/ethernet/intel/ice/ice_ethtool.c dcbx_cfg = &pi->local_dcbx_cfg; pi 2813 drivers/net/ethernet/intel/ice/ice_ethtool.c status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_SW_CFG, pcaps, pi 2849 drivers/net/ethernet/intel/ice/ice_ethtool.c struct ice_port_info *pi; pi 2856 drivers/net/ethernet/intel/ice/ice_ethtool.c pi = vsi->port_info; pi 2857 drivers/net/ethernet/intel/ice/ice_ethtool.c hw_link_info = &pi->phy.link_info; pi 2858 drivers/net/ethernet/intel/ice/ice_ethtool.c dcbx_cfg = &pi->local_dcbx_cfg; pi 2880 drivers/net/ethernet/intel/ice/ice_ethtool.c status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_SW_CFG, pcaps, pi 2909 drivers/net/ethernet/intel/ice/ice_ethtool.c pi->fc.req_mode = ICE_FC_FULL; pi 2911 drivers/net/ethernet/intel/ice/ice_ethtool.c pi->fc.req_mode = ICE_FC_RX_PAUSE; pi 2913 drivers/net/ethernet/intel/ice/ice_ethtool.c pi->fc.req_mode = ICE_FC_TX_PAUSE; pi 2915 drivers/net/ethernet/intel/ice/ice_ethtool.c pi->fc.req_mode = ICE_FC_NONE; pi 2920 drivers/net/ethernet/intel/ice/ice_ethtool.c status = ice_set_fc(pi, &aq_failures, link_up); pi 2514 drivers/net/ethernet/intel/ice/ice_lib.c ice_vsi_setup(struct ice_pf *pf, struct ice_port_info *pi, pi 2533 drivers/net/ethernet/intel/ice/ice_lib.c vsi->port_info = pi; pi 83 drivers/net/ethernet/intel/ice/ice_lib.h ice_vsi_setup(struct ice_pf *pf, struct ice_port_info *pi, pi 815 drivers/net/ethernet/intel/ice/ice_main.c ice_link_event(struct ice_pf *pf, struct ice_port_info *pi, bool link_up, pi 824 drivers/net/ethernet/intel/ice/ice_main.c phy_info = &pi->phy; pi 833 drivers/net/ethernet/intel/ice/ice_main.c result = ice_update_link_info(pi); pi 837 drivers/net/ethernet/intel/ice/ice_main.c pi->lport); pi 849 drivers/net/ethernet/intel/ice/ice_main.c !(pi->phy.link_info.link_info & ICE_AQ_MEDIA_AVAILABLE)) { pi 852 drivers/net/ethernet/intel/ice/ice_main.c result = ice_aq_set_link_restart_an(pi, false, NULL); pi 905 drivers/net/ethernet/intel/ice/ice_main.c static int ice_init_link_events(struct ice_port_info *pi) pi 912 drivers/net/ethernet/intel/ice/ice_main.c if (ice_aq_set_event_mask(pi->hw, pi->lport, mask, NULL)) { pi 913 drivers/net/ethernet/intel/ice/ice_main.c dev_dbg(ice_hw_to_dev(pi->hw), pi 915 drivers/net/ethernet/intel/ice/ice_main.c pi->lport); pi 919 drivers/net/ethernet/intel/ice/ice_main.c if (ice_aq_get_link_info(pi, true, NULL, NULL)) { pi 920 drivers/net/ethernet/intel/ice/ice_main.c dev_dbg(ice_hw_to_dev(pi->hw), pi 922 drivers/net/ethernet/intel/ice/ice_main.c pi->lport); pi 1383 drivers/net/ethernet/intel/ice/ice_main.c struct ice_port_info *pi; pi 1394 drivers/net/ethernet/intel/ice/ice_main.c pi = vsi->port_info; pi 1400 drivers/net/ethernet/intel/ice/ice_main.c retcode = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_SW_CFG, pcaps, pi 1412 drivers/net/ethernet/intel/ice/ice_main.c link_up == !!(pi->phy.link_info.link_info & ICE_AQ_LINK_UP)) pi 1433 drivers/net/ethernet/intel/ice/ice_main.c retcode = ice_aq_set_phy_cfg(&vsi->back->hw, pi->lport, cfg, NULL); pi 1452 drivers/net/ethernet/intel/ice/ice_main.c struct ice_port_info *pi; pi 1468 drivers/net/ethernet/intel/ice/ice_main.c pi = vsi->port_info; pi 1469 drivers/net/ethernet/intel/ice/ice_main.c err = ice_update_link_info(pi); pi 1473 drivers/net/ethernet/intel/ice/ice_main.c if (pi->phy.link_info.link_info & ICE_AQ_MEDIA_AVAILABLE) { pi 2098 drivers/net/ethernet/intel/ice/ice_main.c ice_pf_vsi_setup(struct ice_pf *pf, struct ice_port_info *pi) pi 2100 drivers/net/ethernet/intel/ice/ice_main.c return ice_vsi_setup(pf, pi, ICE_VSI_PF, ICE_INVAL_VFID); pi 2112 drivers/net/ethernet/intel/ice/ice_main.c ice_lb_vsi_setup(struct ice_pf *pf, struct ice_port_info *pi) pi 2114 drivers/net/ethernet/intel/ice/ice_main.c return ice_vsi_setup(pf, pi, ICE_VSI_LB, ICE_INVAL_VFID); pi 3253 drivers/net/ethernet/intel/ice/ice_main.c static int ice_set_mac_address(struct net_device *netdev, void *pi) pi 3259 drivers/net/ethernet/intel/ice/ice_main.c struct sockaddr *addr = pi; pi 4742 drivers/net/ethernet/intel/ice/ice_main.c struct ice_port_info *pi; pi 4752 drivers/net/ethernet/intel/ice/ice_main.c pi = vsi->port_info; pi 4753 drivers/net/ethernet/intel/ice/ice_main.c err = ice_update_link_info(pi); pi 4761 drivers/net/ethernet/intel/ice/ice_main.c if (pi->phy.link_info.link_info & ICE_AQ_MEDIA_AVAILABLE) { pi 4770 drivers/net/ethernet/intel/ice/ice_main.c err = ice_aq_set_link_restart_an(pi, false, NULL); pi 15 drivers/net/ethernet/intel/ice/ice_sched.c ice_sched_add_root_node(struct ice_port_info *pi, pi 21 drivers/net/ethernet/intel/ice/ice_sched.c if (!pi) pi 24 drivers/net/ethernet/intel/ice/ice_sched.c hw = pi->hw; pi 39 drivers/net/ethernet/intel/ice/ice_sched.c pi->root = root; pi 149 drivers/net/ethernet/intel/ice/ice_sched.c ice_sched_add_node(struct ice_port_info *pi, u8 layer, pi 158 drivers/net/ethernet/intel/ice/ice_sched.c if (!pi) pi 161 drivers/net/ethernet/intel/ice/ice_sched.c hw = pi->hw; pi 164 drivers/net/ethernet/intel/ice/ice_sched.c parent = ice_sched_find_node_by_teid(pi->root, pi 270 drivers/net/ethernet/intel/ice/ice_sched.c ice_sched_get_first_node(struct ice_port_info *pi, pi 273 drivers/net/ethernet/intel/ice/ice_sched.c return pi->sib_head[parent->tc_num][layer]; pi 283 drivers/net/ethernet/intel/ice/ice_sched.c struct ice_sched_node *ice_sched_get_tc_node(struct ice_port_info *pi, u8 tc) pi 287 drivers/net/ethernet/intel/ice/ice_sched.c if (!pi || !pi->root) pi 289 drivers/net/ethernet/intel/ice/ice_sched.c for (i = 0; i < pi->root->num_children; i++) pi 290 drivers/net/ethernet/intel/ice/ice_sched.c if (pi->root->children[i]->tc_num == tc) pi 291 drivers/net/ethernet/intel/ice/ice_sched.c return pi->root->children[i]; pi 304 drivers/net/ethernet/intel/ice/ice_sched.c void ice_free_sched_node(struct ice_port_info *pi, struct ice_sched_node *node) pi 307 drivers/net/ethernet/intel/ice/ice_sched.c struct ice_hw *hw = pi->hw; pi 315 drivers/net/ethernet/intel/ice/ice_sched.c ice_free_sched_node(pi, node->children[0]); pi 341 drivers/net/ethernet/intel/ice/ice_sched.c p = ice_sched_get_first_node(pi, node, node->tx_sched_layer); pi 351 drivers/net/ethernet/intel/ice/ice_sched.c if (pi->sib_head[node->tc_num][node->tx_sched_layer] == node) pi 352 drivers/net/ethernet/intel/ice/ice_sched.c pi->sib_head[node->tc_num][node->tx_sched_layer] = pi 591 drivers/net/ethernet/intel/ice/ice_sched.c static void ice_sched_clear_tx_topo(struct ice_port_info *pi) pi 593 drivers/net/ethernet/intel/ice/ice_sched.c if (!pi) pi 595 drivers/net/ethernet/intel/ice/ice_sched.c if (pi->root) { pi 596 drivers/net/ethernet/intel/ice/ice_sched.c ice_free_sched_node(pi, pi->root); pi 597 drivers/net/ethernet/intel/ice/ice_sched.c pi->root = NULL; pi 607 drivers/net/ethernet/intel/ice/ice_sched.c void ice_sched_clear_port(struct ice_port_info *pi) pi 609 drivers/net/ethernet/intel/ice/ice_sched.c if (!pi || pi->port_state != ICE_SCHED_PORT_STATE_READY) pi 612 drivers/net/ethernet/intel/ice/ice_sched.c pi->port_state = ICE_SCHED_PORT_STATE_INIT; pi 613 drivers/net/ethernet/intel/ice/ice_sched.c mutex_lock(&pi->sched_lock); pi 614 drivers/net/ethernet/intel/ice/ice_sched.c ice_sched_clear_tx_topo(pi); pi 615 drivers/net/ethernet/intel/ice/ice_sched.c mutex_unlock(&pi->sched_lock); pi 616 drivers/net/ethernet/intel/ice/ice_sched.c mutex_destroy(&pi->sched_lock); pi 657 drivers/net/ethernet/intel/ice/ice_sched.c ice_sched_add_elems(struct ice_port_info *pi, struct ice_sched_node *tc_node, pi 665 drivers/net/ethernet/intel/ice/ice_sched.c struct ice_hw *hw = pi->hw; pi 705 drivers/net/ethernet/intel/ice/ice_sched.c status = ice_sched_add_node(pi, layer, &buf->generic[i]); pi 726 drivers/net/ethernet/intel/ice/ice_sched.c prev = ice_sched_get_first_node(pi, tc_node, layer); pi 734 drivers/net/ethernet/intel/ice/ice_sched.c if (!pi->sib_head[tc_node->tc_num][layer]) pi 735 drivers/net/ethernet/intel/ice/ice_sched.c pi->sib_head[tc_node->tc_num][layer] = new_node; pi 758 drivers/net/ethernet/intel/ice/ice_sched.c ice_sched_add_nodes_to_layer(struct ice_port_info *pi, pi 767 drivers/net/ethernet/intel/ice/ice_sched.c struct ice_hw *hw = pi->hw; pi 794 drivers/net/ethernet/intel/ice/ice_sched.c status = ice_sched_add_nodes_to_layer(pi, tc_node, pi 821 drivers/net/ethernet/intel/ice/ice_sched.c status = ice_sched_add_nodes_to_layer(pi, tc_node, parent, pi 829 drivers/net/ethernet/intel/ice/ice_sched.c status = ice_sched_add_elems(pi, tc_node, parent, layer, num_nodes, pi 876 drivers/net/ethernet/intel/ice/ice_sched.c static void ice_rm_dflt_leaf_node(struct ice_port_info *pi) pi 880 drivers/net/ethernet/intel/ice/ice_sched.c node = pi->root; pi 891 drivers/net/ethernet/intel/ice/ice_sched.c status = ice_sched_remove_elems(pi->hw, node->parent, 1, &teid); pi 893 drivers/net/ethernet/intel/ice/ice_sched.c ice_free_sched_node(pi, node); pi 904 drivers/net/ethernet/intel/ice/ice_sched.c static void ice_sched_rm_dflt_nodes(struct ice_port_info *pi) pi 908 drivers/net/ethernet/intel/ice/ice_sched.c ice_rm_dflt_leaf_node(pi); pi 911 drivers/net/ethernet/intel/ice/ice_sched.c node = pi->root; pi 913 drivers/net/ethernet/intel/ice/ice_sched.c if (node->tx_sched_layer >= pi->hw->sw_entry_point_layer && pi 916 drivers/net/ethernet/intel/ice/ice_sched.c ice_free_sched_node(pi, node); pi 934 drivers/net/ethernet/intel/ice/ice_sched.c enum ice_status ice_sched_init_port(struct ice_port_info *pi) pi 943 drivers/net/ethernet/intel/ice/ice_sched.c if (!pi) pi 945 drivers/net/ethernet/intel/ice/ice_sched.c hw = pi->hw; pi 953 drivers/net/ethernet/intel/ice/ice_sched.c status = ice_aq_get_dflt_topo(hw, pi->lport, buf, ICE_AQ_MAX_BUF_LEN, pi 982 drivers/net/ethernet/intel/ice/ice_sched.c pi->last_node_teid = pi 985 drivers/net/ethernet/intel/ice/ice_sched.c pi->last_node_teid = pi 989 drivers/net/ethernet/intel/ice/ice_sched.c status = ice_sched_add_root_node(pi, &buf[0].generic[0]); pi 1004 drivers/net/ethernet/intel/ice/ice_sched.c status = ice_sched_add_node(pi, j, &buf[i].generic[j]); pi 1011 drivers/net/ethernet/intel/ice/ice_sched.c if (pi->root) pi 1012 drivers/net/ethernet/intel/ice/ice_sched.c ice_sched_rm_dflt_nodes(pi); pi 1015 drivers/net/ethernet/intel/ice/ice_sched.c pi->port_state = ICE_SCHED_PORT_STATE_READY; pi 1016 drivers/net/ethernet/intel/ice/ice_sched.c mutex_init(&pi->sched_lock); pi 1019 drivers/net/ethernet/intel/ice/ice_sched.c if (status && pi->root) { pi 1020 drivers/net/ethernet/intel/ice/ice_sched.c ice_free_sched_node(pi, pi->root); pi 1021 drivers/net/ethernet/intel/ice/ice_sched.c pi->root = NULL; pi 1127 drivers/net/ethernet/intel/ice/ice_sched.c ice_sched_get_free_qparent(struct ice_port_info *pi, u16 vsi_handle, u8 tc, pi 1135 drivers/net/ethernet/intel/ice/ice_sched.c qgrp_layer = ice_sched_get_qgrp_layer(pi->hw); pi 1136 drivers/net/ethernet/intel/ice/ice_sched.c max_children = pi->hw->max_children[qgrp_layer]; pi 1138 drivers/net/ethernet/intel/ice/ice_sched.c vsi_ctx = ice_get_vsi_ctx(pi->hw, vsi_handle); pi 1147 drivers/net/ethernet/intel/ice/ice_sched.c qgrp_node = ice_sched_get_first_node(pi, vsi_node, qgrp_layer); pi 1150 drivers/net/ethernet/intel/ice/ice_sched.c if (ice_sched_find_node_in_subtree(pi->hw, vsi_node, qgrp_node)) pi 1230 drivers/net/ethernet/intel/ice/ice_sched.c ice_sched_add_vsi_child_nodes(struct ice_port_info *pi, u16 vsi_handle, pi 1235 drivers/net/ethernet/intel/ice/ice_sched.c struct ice_hw *hw = pi->hw; pi 1248 drivers/net/ethernet/intel/ice/ice_sched.c status = ice_sched_add_nodes_to_layer(pi, tc_node, parent, i, pi 1334 drivers/net/ethernet/intel/ice/ice_sched.c ice_sched_add_vsi_support_nodes(struct ice_port_info *pi, u16 vsi_handle, pi 1343 drivers/net/ethernet/intel/ice/ice_sched.c if (!pi) pi 1346 drivers/net/ethernet/intel/ice/ice_sched.c vsil = ice_sched_get_vsi_layer(pi->hw); pi 1347 drivers/net/ethernet/intel/ice/ice_sched.c for (i = pi->hw->sw_entry_point_layer; i <= vsil; i++) { pi 1348 drivers/net/ethernet/intel/ice/ice_sched.c status = ice_sched_add_nodes_to_layer(pi, tc_node, parent, pi 1383 drivers/net/ethernet/intel/ice/ice_sched.c ice_sched_add_vsi_to_topo(struct ice_port_info *pi, u16 vsi_handle, u8 tc) pi 1387 drivers/net/ethernet/intel/ice/ice_sched.c struct ice_hw *hw = pi->hw; pi 1389 drivers/net/ethernet/intel/ice/ice_sched.c tc_node = ice_sched_get_tc_node(pi, tc); pi 1397 drivers/net/ethernet/intel/ice/ice_sched.c return ice_sched_add_vsi_support_nodes(pi, vsi_handle, tc_node, pi 1412 drivers/net/ethernet/intel/ice/ice_sched.c ice_sched_update_vsi_child_nodes(struct ice_port_info *pi, u16 vsi_handle, pi 1420 drivers/net/ethernet/intel/ice/ice_sched.c struct ice_hw *hw = pi->hw; pi 1423 drivers/net/ethernet/intel/ice/ice_sched.c tc_node = ice_sched_get_tc_node(pi, tc); pi 1452 drivers/net/ethernet/intel/ice/ice_sched.c status = ice_sched_add_vsi_child_nodes(pi, vsi_handle, tc_node, pi 1475 drivers/net/ethernet/intel/ice/ice_sched.c ice_sched_cfg_vsi(struct ice_port_info *pi, u16 vsi_handle, u8 tc, u16 maxqs, pi 1481 drivers/net/ethernet/intel/ice/ice_sched.c struct ice_hw *hw = pi->hw; pi 1483 drivers/net/ethernet/intel/ice/ice_sched.c ice_debug(pi->hw, ICE_DBG_SCHED, "add/config VSI %d\n", vsi_handle); pi 1484 drivers/net/ethernet/intel/ice/ice_sched.c tc_node = ice_sched_get_tc_node(pi, tc); pi 1507 drivers/net/ethernet/intel/ice/ice_sched.c status = ice_sched_add_vsi_to_topo(pi, vsi_handle, tc); pi 1525 drivers/net/ethernet/intel/ice/ice_sched.c status = ice_sched_update_vsi_child_nodes(pi, vsi_handle, tc, maxqs, pi 1551 drivers/net/ethernet/intel/ice/ice_sched.c ice_sched_rm_agg_vsi_info(struct ice_port_info *pi, u16 vsi_handle) pi 1556 drivers/net/ethernet/intel/ice/ice_sched.c list_for_each_entry_safe(agg_info, atmp, &pi->hw->agg_list, pi 1565 drivers/net/ethernet/intel/ice/ice_sched.c devm_kfree(ice_hw_to_dev(pi->hw), pi 1599 drivers/net/ethernet/intel/ice/ice_sched.c ice_sched_rm_vsi_cfg(struct ice_port_info *pi, u16 vsi_handle, u8 owner) pi 1605 drivers/net/ethernet/intel/ice/ice_sched.c ice_debug(pi->hw, ICE_DBG_SCHED, "removing VSI %d\n", vsi_handle); pi 1606 drivers/net/ethernet/intel/ice/ice_sched.c if (!ice_is_vsi_valid(pi->hw, vsi_handle)) pi 1608 drivers/net/ethernet/intel/ice/ice_sched.c mutex_lock(&pi->sched_lock); pi 1609 drivers/net/ethernet/intel/ice/ice_sched.c vsi_ctx = ice_get_vsi_ctx(pi->hw, vsi_handle); pi 1617 drivers/net/ethernet/intel/ice/ice_sched.c tc_node = ice_sched_get_tc_node(pi, i); pi 1621 drivers/net/ethernet/intel/ice/ice_sched.c vsi_node = ice_sched_get_vsi_node(pi->hw, tc_node, vsi_handle); pi 1626 drivers/net/ethernet/intel/ice/ice_sched.c ice_debug(pi->hw, ICE_DBG_SCHED, pi 1633 drivers/net/ethernet/intel/ice/ice_sched.c ice_free_sched_node(pi, vsi_node->children[j]); pi 1645 drivers/net/ethernet/intel/ice/ice_sched.c ice_free_sched_node(pi, vsi_node); pi 1649 drivers/net/ethernet/intel/ice/ice_sched.c ice_sched_rm_agg_vsi_info(pi, vsi_handle); pi 1657 drivers/net/ethernet/intel/ice/ice_sched.c mutex_unlock(&pi->sched_lock); pi 1669 drivers/net/ethernet/intel/ice/ice_sched.c enum ice_status ice_rm_vsi_lan_cfg(struct ice_port_info *pi, u16 vsi_handle) pi 1671 drivers/net/ethernet/intel/ice/ice_sched.c return ice_sched_rm_vsi_cfg(pi, vsi_handle, ICE_SCHED_NODE_OWNER_LAN); pi 31 drivers/net/ethernet/intel/ice/ice_sched.h enum ice_status ice_sched_init_port(struct ice_port_info *pi); pi 33 drivers/net/ethernet/intel/ice/ice_sched.h void ice_sched_clear_port(struct ice_port_info *pi); pi 40 drivers/net/ethernet/intel/ice/ice_sched.h ice_sched_add_node(struct ice_port_info *pi, u8 layer, pi 42 drivers/net/ethernet/intel/ice/ice_sched.h void ice_free_sched_node(struct ice_port_info *pi, struct ice_sched_node *node); pi 43 drivers/net/ethernet/intel/ice/ice_sched.h struct ice_sched_node *ice_sched_get_tc_node(struct ice_port_info *pi, u8 tc); pi 45 drivers/net/ethernet/intel/ice/ice_sched.h ice_sched_get_free_qparent(struct ice_port_info *pi, u16 vsi_handle, u8 tc, pi 48 drivers/net/ethernet/intel/ice/ice_sched.h ice_sched_cfg_vsi(struct ice_port_info *pi, u16 vsi_handle, u8 tc, u16 maxqs, pi 50 drivers/net/ethernet/intel/ice/ice_sched.h enum ice_status ice_rm_vsi_lan_cfg(struct ice_port_info *pi, u16 vsi_handle); pi 566 drivers/net/ethernet/intel/ice/ice_switch.c ice_init_port_info(struct ice_port_info *pi, u16 vsi_port_num, u8 type, pi 571 drivers/net/ethernet/intel/ice/ice_switch.c pi->lport = (u8)(vsi_port_num & ICE_LPORT_MASK); pi 572 drivers/net/ethernet/intel/ice/ice_switch.c pi->sw_id = swid; pi 573 drivers/net/ethernet/intel/ice/ice_switch.c pi->pf_vf_num = pf_vf_num; pi 574 drivers/net/ethernet/intel/ice/ice_switch.c pi->is_vf = is_vf; pi 575 drivers/net/ethernet/intel/ice/ice_switch.c pi->dflt_tx_vsi_num = ICE_DFLT_VSI_INVAL; pi 576 drivers/net/ethernet/intel/ice/ice_switch.c pi->dflt_rx_vsi_num = ICE_DFLT_VSI_INVAL; pi 579 drivers/net/ethernet/intel/ice/ice_switch.c ice_debug(pi->hw, ICE_DBG_SW, pi 501 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c ice_vf_vsi_setup(struct ice_pf *pf, struct ice_port_info *pi, u16 vf_id) pi 503 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c return ice_vsi_setup(pf, pi, ICE_VSI_VF, vf_id); pi 911 drivers/net/ethernet/mellanox/mlx5/core/en.h struct mlx5e_tx_wqe *wqe, u16 pi, bool xmit_more); pi 37 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h mlx5e_sq_fetch_wqe(struct mlx5e_txqsq *sq, size_t size, u16 *pi) pi 42 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h *pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pi 43 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h wqe = mlx5_wq_cyc_get_wqe(wq, *pi); pi 52 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h u16 pi = mlx5_wq_cyc_ctr2ix(wq, *pc); pi 53 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h struct mlx5e_tx_wqe *wqe = mlx5_wq_cyc_get_wqe(wq, pi); pi 69 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h u16 pi = mlx5_wq_cyc_ctr2ix(wq, *pc); pi 70 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h struct mlx5e_tx_wqe *wqe = mlx5_wq_cyc_get_wqe(wq, pi); pi 86 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h u16 pi, u16 nnops) pi 88 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h struct mlx5e_tx_wqe_info *edge_wi, *wi = &sq->db.wqe_info[pi]; pi 186 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c u16 pi, contig_wqebbs; pi 188 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pi 189 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c contig_wqebbs = mlx5_wq_cyc_get_contig_wqebbs(wq, pi); pi 192 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c mlx5e_fill_xdpsq_frag_edge(sq, wq, pi, contig_wqebbs); pi 194 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c session->wqe = mlx5e_xdpsq_fetch_wqe(sq, &pi); pi 211 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c u16 pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pi 212 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c struct mlx5e_xdp_wqe_info *wi = &sq->db.wqe_info[pi]; pi 305 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c u16 pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pi 306 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c struct mlx5e_tx_wqe *wqe = mlx5_wq_cyc_get_wqe(wq, pi); pi 142 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h u16 pi, u16 nnops) pi 144 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h struct mlx5e_xdp_wqe_info *edge_wi, *wi = &sq->db.wqe_info[pi]; pi 190 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h mlx5e_xdpsq_fetch_wqe(struct mlx5e_xdpsq *sq, u16 *pi) pi 195 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h *pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pi 196 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h wqe = mlx5_wq_cyc_get_wqe(wq, *pi); pi 55 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/tx.c u16 pi = mlx5_wq_cyc_ctr2ix(&sq->wq, sq->pc); pi 56 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/tx.c struct mlx5e_xdp_wqe_info *wi = &sq->db.wqe_info[pi]; pi 108 drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h u16 *pi) pi 112 drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h skb = mlx5e_tls_handle_tx_skb(dev, sq, skb, wqe, pi); pi 93 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.h struct mlx5e_tx_wqe **wqe, u16 *pi); pi 106 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c u16 pi, u8 num_wqebbs, u32 num_bytes, pi 109 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c struct mlx5e_tx_wqe_info *wi = &sq->db.wqe_info[pi]; pi 138 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c u16 pi; pi 140 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c umr_wqe = mlx5e_sq_fetch_wqe(sq, MLX5E_KTLS_STATIC_UMR_WQE_SZ, &pi); pi 142 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c tx_fill_wi(sq, pi, MLX5E_KTLS_STATIC_WQEBBS, 0, NULL); pi 152 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c u16 pi; pi 154 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c wqe = mlx5e_sq_fetch_wqe(sq, MLX5E_KTLS_PROGRESS_WQE_SZ, &pi); pi 156 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c tx_fill_wi(sq, pi, MLX5E_KTLS_PROGRESS_WQEBBS, 0, NULL); pi 167 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c u16 contig_wqebbs_room, pi; pi 169 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pi 170 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c contig_wqebbs_room = mlx5_wq_cyc_get_contig_wqebbs(wq, pi); pi 173 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c mlx5e_fill_sq_frag_edge(sq, wq, pi, contig_wqebbs_room); pi 279 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c u16 pi; pi 281 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c wqe = mlx5e_sq_fetch_wqe(sq, sizeof(*wqe), &pi); pi 304 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c tx_fill_wi(sq, pi, MLX5E_KTLS_DUMP_WQEBBS, fsz, skb_frag_page(frag)); pi 332 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c u16 pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pi 334 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c tx_fill_wi(sq, pi, 1, 0, NULL); pi 349 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c u16 contig_wqebbs_room, pi; pi 380 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pi 381 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c contig_wqebbs_room = mlx5_wq_cyc_get_contig_wqebbs(wq, pi); pi 384 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c mlx5e_fill_sq_frag_edge(sq, wq, pi, contig_wqebbs_room); pi 428 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c struct mlx5e_tx_wqe **wqe, u16 *pi) pi 452 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c *wqe = mlx5e_sq_fetch_wqe(sq, sizeof(**wqe), pi); pi 463 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c *wqe = mlx5e_sq_fetch_wqe(sq, sizeof(**wqe), pi); pi 191 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c u16 *pi, pi 250 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c mlx5e_sq_xmit(sq, nskb, *wqe, *pi, true); pi 251 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c *wqe = mlx5e_sq_fetch_wqe(sq, sizeof(**wqe), pi); pi 263 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c u16 *pi) pi 273 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c skb = mlx5e_ktls_handle_tx_skb(netdev, sq, skb, wqe, pi); pi 293 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c skb = mlx5e_tls_handle_ooo(context, sq, skb, wqe, pi, priv->tls); pi 47 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.h u16 *pi); pi 1376 drivers/net/ethernet/mellanox/mlx5/core/en_main.c u16 pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pi 1380 drivers/net/ethernet/mellanox/mlx5/core/en_main.c wi = &sq->db.wqe_info[pi]; pi 471 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c u16 pi, u16 nnops) pi 473 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c struct mlx5e_sq_wqe_info *edge_wi, *wi = &sq->db.ico_wqe[pi]; pi 493 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c u16 pi, contig_wqebbs_room; pi 503 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pi 504 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c contig_wqebbs_room = mlx5_wq_cyc_get_contig_wqebbs(wq, pi); pi 506 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c mlx5e_fill_icosq_frag_edge(sq, wq, pi, contig_wqebbs_room); pi 507 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pi 510 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c umr_wqe = mlx5_wq_cyc_get_wqe(wq, pi); pi 528 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c sq->db.ico_wqe[pi].opcode = MLX5_OPCODE_UMR; pi 529 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c sq->db.ico_wqe[pi].num_wqebbs = MLX5E_UMR_WQEBBS; pi 530 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c sq->db.ico_wqe[pi].umr.rq = rq; pi 270 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c struct mlx5e_tx_wqe *wqe, u16 pi, bool xmit_more) pi 319 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c contig_wqebbs_room = mlx5_wq_cyc_get_contig_wqebbs(wq, pi); pi 327 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c mlx5e_fill_sq_frag_edge(sq, wq, pi, contig_wqebbs_room); pi 328 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c wqe = mlx5e_sq_fetch_wqe(sq, sizeof(*wqe), &pi); pi 338 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c wi = &sq->db.wqe_info[pi]; pi 390 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c u16 pi; pi 393 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c wqe = mlx5e_sq_fetch_wqe(sq, sizeof(*wqe), &pi); pi 396 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c skb = mlx5e_accel_handle_tx(skb, sq, dev, &wqe, &pi); pi 400 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c return mlx5e_sq_xmit(sq, skb, wqe, pi, netdev_xmit_more()); pi 602 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c u16 headlen, ihs, pi, contig_wqebbs_room; pi 640 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pi 641 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c contig_wqebbs_room = mlx5_wq_cyc_get_contig_wqebbs(wq, pi); pi 643 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c mlx5e_fill_sq_frag_edge(sq, wq, pi, contig_wqebbs_room); pi 644 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pi 647 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c mlx5i_sq_fetch_wqe(sq, &wqe, pi); pi 650 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c wi = &sq->db.wqe_info[pi]; pi 78 drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c u16 pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pi 80 drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c sq->db.ico_wqe[pi].opcode = MLX5_OPCODE_NOP; pi 81 drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c sq->db.ico_wqe[pi].num_wqebbs = 1; pi 115 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.h u16 pi) pi 119 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.h *wqe = mlx5_wq_cyc_get_wqe(wq, pi); pi 5354 drivers/net/ethernet/micrel/ksz884x.c int pi; pi 5366 drivers/net/ethernet/micrel/ksz884x.c pi = 1 << port->first_port; pi 5367 drivers/net/ethernet/micrel/ksz884x.c if (hw->ksz_switch->member & pi) { pi 5368 drivers/net/ethernet/micrel/ksz884x.c hw->ksz_switch->member &= ~pi; pi 5912 drivers/net/ethernet/micrel/ksz884x.c int pi; pi 5914 drivers/net/ethernet/micrel/ksz884x.c for (i = 0, pi = port->first_port; i < port->port_cnt; i++, pi++) pi 5915 drivers/net/ethernet/micrel/ksz884x.c hw_w_phy(hw, pi, reg_num << 1, val); pi 6926 drivers/net/ethernet/micrel/ksz884x.c int pi; pi 7079 drivers/net/ethernet/micrel/ksz884x.c for (cnt = 0, pi = i; cnt < port_count; cnt++, pi++) { pi 7080 drivers/net/ethernet/micrel/ksz884x.c hw->port_info[pi].port_id = pi; pi 7081 drivers/net/ethernet/micrel/ksz884x.c hw->port_info[pi].pdev = dev; pi 7082 drivers/net/ethernet/micrel/ksz884x.c hw->port_info[pi].state = media_disconnected; pi 1291 drivers/net/ethernet/qlogic/qed/qed_int.c int pi; pi 1294 drivers/net/ethernet/qlogic/qed/qed_int.c for (pi = 0; pi < arr_size; pi++) { pi 1295 drivers/net/ethernet/qlogic/qed/qed_int.c pi_info = &p_hwfn->p_sp_sb->pi_info_arr[pi]; pi 1771 drivers/net/ethernet/qlogic/qed/qed_int.c u8 pi; pi 1774 drivers/net/ethernet/qlogic/qed/qed_int.c for (pi = 0; pi < ARRAY_SIZE(p_sp_sb->pi_info_arr); pi++) { pi 1775 drivers/net/ethernet/qlogic/qed/qed_int.c if (p_sp_sb->pi_info_arr[pi].comp_cb) pi 1778 drivers/net/ethernet/qlogic/qed/qed_int.c p_sp_sb->pi_info_arr[pi].comp_cb = comp_cb; pi 1779 drivers/net/ethernet/qlogic/qed/qed_int.c p_sp_sb->pi_info_arr[pi].cookie = cookie; pi 1780 drivers/net/ethernet/qlogic/qed/qed_int.c *sb_idx = pi; pi 1781 drivers/net/ethernet/qlogic/qed/qed_int.c *p_fw_cons = &p_sp_sb->sb_info.sb_virt->pi_array[pi]; pi 1789 drivers/net/ethernet/qlogic/qed/qed_int.c int qed_int_unregister_cb(struct qed_hwfn *p_hwfn, u8 pi) pi 1793 drivers/net/ethernet/qlogic/qed/qed_int.c if (p_sp_sb->pi_info_arr[pi].comp_cb == NULL) pi 1796 drivers/net/ethernet/qlogic/qed/qed_int.c p_sp_sb->pi_info_arr[pi].comp_cb = NULL; pi 1797 drivers/net/ethernet/qlogic/qed/qed_int.c p_sp_sb->pi_info_arr[pi].cookie = NULL; pi 1934 drivers/net/ethernet/qlogic/qed/qed_int.c int pi, i; pi 1968 drivers/net/ethernet/qlogic/qed/qed_int.c for (pi = 0; pi < 12; pi++) pi 1970 drivers/net/ethernet/qlogic/qed/qed_int.c CAU_REG_PI_MEMORY + (igu_sb_id * 12 + pi) * 4, 0); pi 330 drivers/net/ethernet/qlogic/qed/qed_int.h u8 pi); pi 266 drivers/net/hippi/rrunner.c idx = rrpriv->info->cmd_ctrl.pi; pi 272 drivers/net/hippi/rrunner.c rrpriv->info->cmd_ctrl.pi = idx; pi 363 drivers/net/hippi/rrunner.c rrpriv->info->evt_ctrl.pi = 0; pi 584 drivers/net/hippi/rrunner.c rrpriv->info->evt_ctrl.pi = 0; pi 590 drivers/net/hippi/rrunner.c rrpriv->info->cmd_ctrl.pi = 15; pi 604 drivers/net/hippi/rrunner.c rrpriv->info->tx_ctrl.pi = 0; pi 667 drivers/net/hippi/rrunner.c rrpriv->rx_ctrl[4].pi = 0; pi 918 drivers/net/hippi/rrunner.c rrpriv->info->evt_ctrl.pi = eidx; pi 1039 drivers/net/hippi/rrunner.c prodidx, rrpriv->info->evt_ctrl.pi); pi 1047 drivers/net/hippi/rrunner.c eidx = rrpriv->info->evt_ctrl.pi; pi 1087 drivers/net/hippi/rrunner.c (((rrpriv->info->tx_ctrl.pi + 1) % TX_RING_ENTRIES) pi 1272 drivers/net/hippi/rrunner.c rrpriv->info->tx_ctrl.pi); pi 1361 drivers/net/hippi/rrunner.c rrpriv->info->cmd_ctrl.pi = 0; pi 1362 drivers/net/hippi/rrunner.c rrpriv->info->evt_ctrl.pi = 0; pi 1430 drivers/net/hippi/rrunner.c index = txctrl->pi; pi 1437 drivers/net/hippi/rrunner.c txctrl->pi = (index + 1) % TX_RING_ENTRIES; pi 1439 drivers/net/hippi/rrunner.c writel(txctrl->pi, ®s->TxPi); pi 1441 drivers/net/hippi/rrunner.c if (txctrl->pi == rrpriv->dirty_tx){ pi 770 drivers/net/hippi/rrunner.h u16 pi; pi 777 drivers/net/hippi/rrunner.h u16 pi; pi 1748 drivers/net/tun.c struct tun_pi pi = { 0, cpu_to_be16(ETH_P_IP) }; pi 1763 drivers/net/tun.c if (len < sizeof(pi)) pi 1765 drivers/net/tun.c len -= sizeof(pi); pi 1767 drivers/net/tun.c if (!copy_from_iter_full(&pi, sizeof(pi), from)) pi 1894 drivers/net/tun.c pi.proto = htons(ETH_P_IP); pi 1897 drivers/net/tun.c pi.proto = htons(ETH_P_IPV6); pi 1907 drivers/net/tun.c skb->protocol = pi.proto; pi 2082 drivers/net/tun.c struct tun_pi pi = { 0, skb->protocol }; pi 2098 drivers/net/tun.c if (iov_iter_count(iter) < sizeof(pi)) pi 2101 drivers/net/tun.c total += sizeof(pi); pi 2104 drivers/net/tun.c pi.flags |= TUN_PKT_STRIP; pi 2107 drivers/net/tun.c if (copy_to_iter(&pi, sizeof(pi), iter) != sizeof(pi)) pi 851 drivers/net/wan/farsync.c int pi; pi 855 drivers/net/wan/farsync.c pi = port->index; pi 859 drivers/net/wan/farsync.c FST_WRB(card, rxDescrRing[pi][rxp].bits, DMA_OWN); pi 1008 drivers/net/wan/farsync.c int pi; pi 1013 drivers/net/wan/farsync.c pi = port->index; pi 1017 drivers/net/wan/farsync.c offset = BUF_OFFSET(rxBuffer[pi][i][0]); pi 1019 drivers/net/wan/farsync.c FST_WRW(card, rxDescrRing[pi][i].ladr, (u16) offset); pi 1020 drivers/net/wan/farsync.c FST_WRB(card, rxDescrRing[pi][i].hadr, (u8) (offset >> 16)); pi 1021 drivers/net/wan/farsync.c FST_WRW(card, rxDescrRing[pi][i].bcnt, cnv_bcnt(LEN_RX_BUFFER)); pi 1022 drivers/net/wan/farsync.c FST_WRW(card, rxDescrRing[pi][i].mcnt, LEN_RX_BUFFER); pi 1023 drivers/net/wan/farsync.c FST_WRB(card, rxDescrRing[pi][i].bits, DMA_OWN); pi 1036 drivers/net/wan/farsync.c int pi; pi 1041 drivers/net/wan/farsync.c pi = port->index; pi 1045 drivers/net/wan/farsync.c offset = BUF_OFFSET(txBuffer[pi][i][0]); pi 1047 drivers/net/wan/farsync.c FST_WRW(card, txDescrRing[pi][i].ladr, (u16) offset); pi 1048 drivers/net/wan/farsync.c FST_WRB(card, txDescrRing[pi][i].hadr, (u8) (offset >> 16)); pi 1049 drivers/net/wan/farsync.c FST_WRW(card, txDescrRing[pi][i].bcnt, 0); pi 1050 drivers/net/wan/farsync.c FST_WRB(card, txDescrRing[pi][i].bits, 0); pi 1168 drivers/net/wan/farsync.c int pi; pi 1170 drivers/net/wan/farsync.c pi = port->index; pi 1178 drivers/net/wan/farsync.c FST_WRB(card, rxDescrRing[pi][rxp].bits, DMA_OWN); pi 1185 drivers/net/wan/farsync.c dmabits = FST_RDB(card, rxDescrRing[pi][rxp].bits); pi 1192 drivers/net/wan/farsync.c FST_WRB(card, rxDescrRing[pi][rxp].bits, DMA_OWN); pi 1206 drivers/net/wan/farsync.c int pi; pi 1214 drivers/net/wan/farsync.c pi = port->index; pi 1216 drivers/net/wan/farsync.c dmabits = FST_RDB(card, rxDescrRing[pi][rxp].bits); pi 1219 drivers/net/wan/farsync.c pi, rxp); pi 1227 drivers/net/wan/farsync.c len = FST_RDW(card, rxDescrRing[pi][rxp].mcnt); pi 1238 drivers/net/wan/farsync.c FST_WRB(card, rxDescrRing[pi][rxp].bits, DMA_OWN); pi 1249 drivers/net/wan/farsync.c dbg(DBG_RX, "intr_rx: %d,%d: flags %x len %d\n", pi, rxp, dmabits, len); pi 1263 drivers/net/wan/farsync.c FST_WRB(card, rxDescrRing[pi][rxp].bits, DMA_OWN); pi 1278 drivers/net/wan/farsync.c card->mem + BUF_OFFSET(rxBuffer[pi][rxp][0]), pi 1282 drivers/net/wan/farsync.c FST_WRB(card, rxDescrRing[pi][rxp].bits, DMA_OWN); pi 1304 drivers/net/wan/farsync.c BUF_OFFSET(rxBuffer[pi][rxp][0]), len); pi 1323 drivers/net/wan/farsync.c int pi; pi 1335 drivers/net/wan/farsync.c for (pi = 0, port = card->ports; pi < card->nports; pi++, port++) { pi 1340 drivers/net/wan/farsync.c while (!(FST_RDB(card, txDescrRing[pi][port->txpos].bits) & pi 1372 drivers/net/wan/farsync.c FST_WRW(card, txDescrRing[pi][port->txpos].bcnt, pi 1378 drivers/net/wan/farsync.c BUF_OFFSET(txBuffer[pi] pi 1383 drivers/net/wan/farsync.c txDescrRing[pi][port->txpos]. pi 1398 drivers/net/wan/farsync.c BUF_OFFSET(txBuffer[pi] pi 1429 drivers/net/wan/farsync.c int pi; pi 1434 drivers/net/wan/farsync.c for (pi = 0, port = card->ports; pi < card->nports; pi++, port++) { pi 1438 drivers/net/wan/farsync.c while (!(FST_RDB(card, rxDescrRing[pi][port->rxpos].bits) pi 40 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c static int brcmf_pno_store_request(struct brcmf_pno_info *pi, pi 43 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c if (WARN(pi->n_reqs == BRCMF_PNO_MAX_BUCKETS, pi 48 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c mutex_lock(&pi->req_lock); pi 49 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c pi->reqs[pi->n_reqs++] = req; pi 50 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c mutex_unlock(&pi->req_lock); pi 54 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c static int brcmf_pno_remove_request(struct brcmf_pno_info *pi, u64 reqid) pi 58 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c mutex_lock(&pi->req_lock); pi 61 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c for (i = 0; i < pi->n_reqs; i++) { pi 62 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c if (pi->reqs[i]->reqid == reqid) pi 66 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c if (WARN(i == pi->n_reqs, "reqid not found\n")) { pi 72 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c pi->n_reqs--; pi 75 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c if (!pi->n_reqs || i == pi->n_reqs) pi 79 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c while (i <= pi->n_reqs - 1) { pi 80 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c pi->reqs[i] = pi->reqs[i + 1]; pi 85 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c mutex_unlock(&pi->req_lock); pi 151 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c static int brcmf_pno_set_random(struct brcmf_if *ifp, struct brcmf_pno_info *pi) pi 159 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c for (i = 0; i < pi->n_reqs; i++) pi 160 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c if (pi->reqs[i]->flags & NL80211_SCAN_FLAG_RANDOM_ADDR) { pi 161 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c mac_addr = pi->reqs[i]->mac_addr; pi 162 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c mac_mask = pi->reqs[i]->mac_addr_mask; pi 184 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c pi->reqs[i]->reqid, pfn_mac.mac); pi 292 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c static int brcmf_pno_prep_fwconfig(struct brcmf_pno_info *pi, pi 301 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c brcmf_dbg(SCAN, "n_reqs=%d\n", pi->n_reqs); pi 302 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c if (WARN_ON(!pi->n_reqs)) pi 309 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c *scan_freq = pi->reqs[0]->scan_plans[0].interval; pi 310 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c for (i = 1; i < pi->n_reqs; i++) { pi 311 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c sr = pi->reqs[i]; pi 320 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c fw_buckets = kcalloc(pi->n_reqs, sizeof(*fw_buckets), GFP_KERNEL); pi 325 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c for (i = 0; i < pi->n_reqs; i++) { pi 326 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c sr = pi->reqs[i]; pi 343 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c for (i = 0; i < pi->n_reqs; i++) { pi 352 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c return pi->n_reqs; pi 360 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c struct brcmf_pno_info *pi) pi 367 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c for (i = 0; i < pi->n_reqs; i++) { pi 368 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c r = pi->reqs[i]; pi 390 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c struct brcmf_pno_info *pi; pi 398 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c pi = ifp_to_pno(ifp); pi 399 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c n_buckets = brcmf_pno_prep_fwconfig(pi, &pno_cfg, &buckets, pi 442 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c err = brcmf_pno_set_random(ifp, pi); pi 446 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c err = brcmf_pno_config_networks(ifp, pi); pi 466 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c struct brcmf_pno_info *pi; pi 471 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c pi = ifp_to_pno(ifp); pi 472 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c ret = brcmf_pno_store_request(pi, req); pi 478 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c brcmf_pno_remove_request(pi, req->reqid); pi 479 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c if (pi->n_reqs) pi 488 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c struct brcmf_pno_info *pi; pi 493 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c pi = ifp_to_pno(ifp); pi 496 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c if (!pi->n_reqs) pi 499 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c err = brcmf_pno_remove_request(pi, reqid); pi 505 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c if (pi->n_reqs) pi 513 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c struct brcmf_pno_info *pi; pi 516 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c pi = kzalloc(sizeof(*pi), GFP_KERNEL); pi 517 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c if (!pi) pi 520 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c cfg->pno = pi; pi 521 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c mutex_init(&pi->req_lock); pi 527 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c struct brcmf_pno_info *pi; pi 530 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c pi = cfg->pno; pi 533 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c WARN_ON(pi->n_reqs); pi 534 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c mutex_destroy(&pi->req_lock); pi 535 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c kfree(pi); pi 548 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c u64 brcmf_pno_find_reqid_by_bucket(struct brcmf_pno_info *pi, u32 bucket) pi 552 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c mutex_lock(&pi->req_lock); pi 554 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c if (bucket < pi->n_reqs) pi 555 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c reqid = pi->reqs[bucket]->reqid; pi 557 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c mutex_unlock(&pi->req_lock); pi 561 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c u32 brcmf_pno_get_bucket_map(struct brcmf_pno_info *pi, pi 569 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c mutex_lock(&pi->req_lock); pi 570 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c for (i = 0; i < pi->n_reqs; i++) { pi 571 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c req = pi->reqs[i]; pi 589 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c mutex_unlock(&pi->req_lock); pi 61 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.h u64 brcmf_pno_find_reqid_by_bucket(struct brcmf_pno_info *pi, u32 bucket); pi 69 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.h u32 brcmf_pno_get_bucket_map(struct brcmf_pno_info *pi, pi 719 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c if (CHSPEC_SB_UPPER(wlc_phy_chanspec_get(wlc->band->pi))) pi 735 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c wlc_phy_chanspec_ch14_widefilter_set(wlc->band->pi, pi 753 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c wlc_phy_chanspec_band_validch(band->pi, band->bandtype, pi 93 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.c hw->band->phytype, hw->band->phyrev, hw->band->pi->ana_rev, pi 823 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_switch_radio(wlc_hw->band->pi, OFF); pi 1592 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_bw_state_set(wlc_hw->band->pi, bw); pi 1595 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_init(wlc_hw->band->pi, wlc_phy_chanspec_get(wlc_hw->band->pi)); pi 1713 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_init(wlc_hw->band->pi, chanspec); pi 1784 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c struct brcms_phy_pub *pih = wlc_hw->band->pi; pi 1793 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c phy_bw_clkbits = wlc_phy_clk_bwbits(wlc_hw->band->pi); pi 1934 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (wlc_hw->band && wlc_hw->band->pi) pi 1935 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_hw_clk_state_upd(wlc_hw->band->pi, false); pi 2009 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c flags = (wlc_hw->band->pi ? wlc_hw->band->core_flags : 0); pi 2060 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (wlc_hw->band && wlc_hw->band->pi) pi 2061 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_hw_clk_state_upd(wlc_hw->band->pi, true); pi 2225 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_antsel_init(wlc_hw->band->pi, false); pi 2333 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_antsel_type_set(wlc_hw->band->pi, antsel_type); pi 2520 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_mute_upd(wlc_hw->band->pi, mute_tx, 0); pi 2886 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_switch_radio(wlc_hw->band->pi, OFF); pi 2889 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_anacore(wlc_hw->band->pi, OFF); pi 2896 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_hw_clk_state_upd(wlc_hw->band->pi, false); pi 3369 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_chanspec_radio_set(wlc_hw->band->pi, chanspec); pi 3372 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_cal_init(wlc_hw->band->pi); pi 3602 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (wlc->home_chanspec == wlc_phy_chanspec_get(wlc->band->pi)) { pi 3870 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c pi, chanspec); pi 3878 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_initcal_enable(wlc_hw->band->pi, !mute_tx); pi 3882 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_txpower_limit_set(wlc_hw->band->pi, txpwr, pi 3884 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_chanspec_radio_set(wlc_hw->band->pi, chanspec); pi 3886 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_chanspec_set(wlc_hw->band->pi, chanspec); pi 3887 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_txpower_limit_set(wlc_hw->band->pi, txpwr, chanspec); pi 4055 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_ldpc_override_set(wlc->band->pi, (val ? true : false)); pi 4233 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_watchdog(wlc_hw->band->pi); pi 4597 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_hw->band->pi = pi 4601 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (wlc_hw->band->pi == NULL) { pi 4608 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_machwcap_set(wlc_hw->band->pi, wlc_hw->machwcap); pi 4610 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_get_phyversion(wlc_hw->band->pi, &wlc_hw->band->phytype, pi 4615 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_get_encore(wlc_hw->band->pi); pi 4616 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->band->abgphy_encore = wlc_phy_get_encore(wlc_hw->band->pi); pi 4618 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_get_coreflags(wlc_hw->band->pi); pi 4650 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->band->pi = wlc_hw->band->pi; pi 4846 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (band->pi) { pi 4848 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_detach(band->pi); pi 4849 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c band->pi = NULL; pi 4933 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_por_inform(wlc_hw->band->pi); pi 4989 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_hw_state_upd(wlc_hw->band->pi, true); pi 5137 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c callbacks += wlc_phy_down(wlc_hw->band->pi); pi 5151 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_hw_state_upd(wlc_hw->band->pi, false); pi 5158 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_hw_clk_state_upd(wlc_hw->band->pi, false); pi 5231 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_mute_upd(wlc->band->pi, false, PHY_MUTE_ALL); pi 5412 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_ofdm_rateset_war(wlc->band->pi, war); pi 5436 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (wlc->pub->up && (wlc_phy_chanspec_get(wlc->band->pi) != chspec)) { pi 6389 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->band->pi)) pi 6543 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (CHSPEC_IS40(wlc_phy_chanspec_get(wlc->band->pi))) pi 6704 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c xfts |= CHSPEC_CHANNEL(wlc_phy_chanspec_get(wlc->band->pi)) << pi 7071 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c rx_status->signal = wlc_phy_rssi_compute(wlc->hw->band->pi, rxh); pi 7543 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_hold_upd(wlc->band->pi, PHY_HOLD_FOR_SCAN, true); pi 7548 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_hold_upd(wlc->band->pi, PHY_HOLD_FOR_SCAN, false); pi 7634 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c return wlc_phy_txpower_set(wlc->band->pi, qdbm, false); pi 7642 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_txpower_get(wlc->band->pi, &qdbm, &override); pi 7817 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_noise_sample_intr(wlc_hw->band->pi); pi 8010 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_phy_stf_chain_init(wlc->band->pi, wlc->stf->hw_txchain, pi 257 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.h struct brcms_phy_pub *pi; /* pointer to phy specific information */ pi 308 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.h struct brcms_phy_pub *pi; /* pointer to phy specific information */ pi 26 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c #define VALID_RADIO(pi, radioid) ( \ pi 27 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (ISNPHY(pi) ? VALID_N_RADIO(radioid) : false) || \ pi 28 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (ISLCNPHY(pi) ? VALID_LCN_RADIO(radioid) : false)) pi 120 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 121 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_ucode_wake_override_phyreg_set(pi->sh->physhim); pi 126 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 127 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_ucode_wake_override_phyreg_clear(pi->sh->physhim); pi 132 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 133 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_mctrl(pi->sh->physhim, MCTL_LOCK_RADIO, MCTL_LOCK_RADIO); pi 140 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 142 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (void)bcma_read16(pi->d11core, D11REGOFFS(phyversion)); pi 143 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phy_wreg = 0; pi 144 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_mctrl(pi->sh->physhim, MCTL_LOCK_RADIO, 0); pi 147 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c u16 read_radio_reg(struct brcms_phy *pi, u16 addr) pi 154 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c switch (pi->pubpi.phy_type) { pi 158 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 174 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if ((D11REV_GE(pi->sh->corerev, 24)) || pi 175 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (D11REV_IS(pi->sh->corerev, 22) pi 176 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c && (pi->pubpi.phy_type != PHY_TYPE_SSN))) { pi 177 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_wflush16(pi->d11core, D11REGOFFS(radioregaddr), addr); pi 178 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c data = bcma_read16(pi->d11core, D11REGOFFS(radioregdata)); pi 180 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_wflush16(pi->d11core, D11REGOFFS(phy4waddr), addr); pi 181 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c data = bcma_read16(pi->d11core, D11REGOFFS(phy4wdatalo)); pi 183 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phy_wreg = 0; pi 188 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c void write_radio_reg(struct brcms_phy *pi, u16 addr, u16 val) pi 190 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if ((D11REV_GE(pi->sh->corerev, 24)) || pi 191 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (D11REV_IS(pi->sh->corerev, 22) pi 192 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c && (pi->pubpi.phy_type != PHY_TYPE_SSN))) { pi 194 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_wflush16(pi->d11core, D11REGOFFS(radioregaddr), addr); pi 195 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_write16(pi->d11core, D11REGOFFS(radioregdata), val); pi 197 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_wflush16(pi->d11core, D11REGOFFS(phy4waddr), addr); pi 198 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_write16(pi->d11core, D11REGOFFS(phy4wdatalo), val); pi 201 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if ((pi->d11core->bus->hosttype == BCMA_HOSTTYPE_PCI) && pi 202 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (++pi->phy_wreg >= pi->phy_wreg_limit)) { pi 203 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (void)bcma_read32(pi->d11core, D11REGOFFS(maccontrol)); pi 204 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phy_wreg = 0; pi 208 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c static u32 read_radio_id(struct brcms_phy *pi) pi 212 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (D11REV_GE(pi->sh->corerev, 24)) { pi 215 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_wflush16(pi->d11core, D11REGOFFS(radioregaddr), 0); pi 216 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c b0 = (u32) bcma_read16(pi->d11core, D11REGOFFS(radioregdata)); pi 217 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_wflush16(pi->d11core, D11REGOFFS(radioregaddr), 1); pi 218 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c b1 = (u32) bcma_read16(pi->d11core, D11REGOFFS(radioregdata)); pi 219 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_wflush16(pi->d11core, D11REGOFFS(radioregaddr), 2); pi 220 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c b2 = (u32) bcma_read16(pi->d11core, D11REGOFFS(radioregdata)); pi 225 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_wflush16(pi->d11core, D11REGOFFS(phy4waddr), RADIO_IDCODE); pi 226 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c id = (u32) bcma_read16(pi->d11core, D11REGOFFS(phy4wdatalo)); pi 227 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c id |= (u32) bcma_read16(pi->d11core, pi 230 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phy_wreg = 0; pi 234 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c void and_radio_reg(struct brcms_phy *pi, u16 addr, u16 val) pi 238 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c rval = read_radio_reg(pi, addr); pi 239 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_radio_reg(pi, addr, (rval & val)); pi 242 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c void or_radio_reg(struct brcms_phy *pi, u16 addr, u16 val) pi 246 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c rval = read_radio_reg(pi, addr); pi 247 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_radio_reg(pi, addr, (rval | val)); pi 250 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c void xor_radio_reg(struct brcms_phy *pi, u16 addr, u16 mask) pi 254 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c rval = read_radio_reg(pi, addr); pi 255 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_radio_reg(pi, addr, (rval ^ mask)); pi 258 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c void mod_radio_reg(struct brcms_phy *pi, u16 addr, u16 mask, u16 val) pi 262 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c rval = read_radio_reg(pi, addr); pi 263 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_radio_reg(pi, addr, (rval & ~mask) | (val & mask)); pi 266 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c void write_phy_channel_reg(struct brcms_phy *pi, uint val) pi 268 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_write16(pi->d11core, D11REGOFFS(phychannel), val); pi 271 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c u16 read_phy_reg(struct brcms_phy *pi, u16 addr) pi 273 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_wflush16(pi->d11core, D11REGOFFS(phyregaddr), addr); pi 275 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phy_wreg = 0; pi 276 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c return bcma_read16(pi->d11core, D11REGOFFS(phyregdata)); pi 279 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c void write_phy_reg(struct brcms_phy *pi, u16 addr, u16 val) pi 282 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_wflush16(pi->d11core, D11REGOFFS(phyregaddr), addr); pi 283 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_write16(pi->d11core, D11REGOFFS(phyregdata), val); pi 285 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (void)bcma_read16(pi->d11core, D11REGOFFS(phyregdata)); pi 287 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_write32(pi->d11core, D11REGOFFS(phyregaddr), addr | (val << 16)); pi 288 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if ((pi->d11core->bus->hosttype == BCMA_HOSTTYPE_PCI) && pi 289 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (++pi->phy_wreg >= pi->phy_wreg_limit)) { pi 290 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phy_wreg = 0; pi 291 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (void)bcma_read16(pi->d11core, D11REGOFFS(phyversion)); pi 296 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c void and_phy_reg(struct brcms_phy *pi, u16 addr, u16 val) pi 298 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_wflush16(pi->d11core, D11REGOFFS(phyregaddr), addr); pi 299 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_mask16(pi->d11core, D11REGOFFS(phyregdata), val); pi 300 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phy_wreg = 0; pi 303 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c void or_phy_reg(struct brcms_phy *pi, u16 addr, u16 val) pi 305 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_wflush16(pi->d11core, D11REGOFFS(phyregaddr), addr); pi 306 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_set16(pi->d11core, D11REGOFFS(phyregdata), val); pi 307 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phy_wreg = 0; pi 310 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c void mod_phy_reg(struct brcms_phy *pi, u16 addr, u16 mask, u16 val) pi 313 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_wflush16(pi->d11core, D11REGOFFS(phyregaddr), addr); pi 314 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_maskset16(pi->d11core, D11REGOFFS(phyregdata), ~mask, val); pi 315 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phy_wreg = 0; pi 318 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c static void wlc_set_phy_uninitted(struct brcms_phy *pi) pi 322 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->initialized = false; pi 324 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tx_vos = 0xffff; pi 325 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nrssi_table_delta = 0x7fffffff; pi 326 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->rc_cal = 0xffff; pi 327 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->mintxbias = 0xffff; pi 328 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->txpwridx = -1; pi 329 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi)) { pi 330 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phy_spuravoid = SPURAVOID_DISABLE; pi 332 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (NREV_GE(pi->pubpi.phy_rev, 3) pi 333 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c && NREV_LT(pi->pubpi.phy_rev, 7)) pi 334 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phy_spuravoid = SPURAVOID_AUTO; pi 336 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_papd_skip = 0; pi 337 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_papd_epsilon_offset[0] = 0xf588; pi 338 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_papd_epsilon_offset[1] = 0xf588; pi 339 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_txpwr_idx[0] = 128; pi 340 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_txpwr_idx[1] = 128; pi 341 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_txpwrindex[0].index_internal = 40; pi 342 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_txpwrindex[1].index_internal = 40; pi 343 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phy_pabias = 0; pi 345 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phy_spuravoid = SPURAVOID_AUTO; pi 347 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->radiopwr = 0xffff; pi 350 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->stats_11b_txpower[i][j] = -1; pi 386 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c static void wlc_phy_timercb_phycal(struct brcms_phy *pi) pi 390 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (PHY_PERICAL_MPHASE_PENDING(pi)) { pi 391 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!pi->sh->up) { pi 392 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_cal_perical_mphase_reset(pi); pi 396 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (SCAN_RM_IN_PROGRESS(pi) || PLT_INPROG_PHY(pi)) { pi 399 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_cal_perical_mphase_restart(pi); pi 401 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_cal_perical_nphy_run(pi, PHY_PERICAL_AUTO); pi 402 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_add_timer(pi->phycal_timer, delay, 0); pi 408 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c static u32 wlc_phy_get_radio_ver(struct brcms_phy *pi) pi 412 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c ver = read_radio_id(pi); pi 421 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi; pi 437 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi = sh->phy_head; pi 438 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if ((sflags & SISF_DB_PHY) && pi) { pi 439 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_corereset(pi->sh->physhim, pi->pubpi.coreflags); pi 440 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->refcnt++; pi 441 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c return &pi->pubpi_ro; pi 444 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi = kzalloc(sizeof(struct brcms_phy), GFP_ATOMIC); pi 445 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi == NULL) pi 447 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->wiphy = wiphy; pi 448 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->d11core = d11core; pi 449 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->sh = sh; pi 450 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phy_init_por = true; pi 451 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phy_wreg_limit = PHY_WREG_LIMIT; pi 453 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->txpwr_percent = 100; pi 455 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->do_initcal = true; pi 457 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phycal_tempdelta = 0; pi 460 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->pubpi.coreflags = SICF_GMODE; pi 462 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_corereset(pi->sh->physhim, pi->pubpi.coreflags); pi 463 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c phyversion = bcma_read16(pi->d11core, D11REGOFFS(phyversion)); pi 465 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->pubpi.phy_type = PHY_TYPE(phyversion); pi 466 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->pubpi.phy_rev = phyversion & PV_PV_MASK; pi 468 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->pubpi.phy_type == PHY_TYPE_LCNXN) { pi 469 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->pubpi.phy_type = PHY_TYPE_N; pi 470 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->pubpi.phy_rev += LCNXN_BASEREV; pi 472 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->pubpi.phy_corenum = PHY_CORE_NUM_2; pi 473 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->pubpi.ana_rev = (phyversion & PV_AV_MASK) >> PV_AV_SHIFT; pi 475 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->pubpi.phy_type != PHY_TYPE_N && pi 476 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->pubpi.phy_type != PHY_TYPE_LCN) pi 480 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!ISNPHY(pi)) pi 482 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c } else if (!ISNPHY(pi) && !ISLCNPHY(pi)) { pi 486 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_anacore((struct brcms_phy_pub *) pi, ON); pi 488 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c idcode = wlc_phy_get_radio_ver(pi); pi 489 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->pubpi.radioid = pi 491 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->pubpi.radiorev = pi 493 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->pubpi.radiover = pi 495 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!VALID_RADIO(pi, pi->pubpi.radioid)) pi 498 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_switch_radio((struct brcms_phy_pub *) pi, OFF); pi 500 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_set_phy_uninitted(pi); pi 502 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->bw = WL_CHANSPEC_BW_20; pi 503 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->radio_chanspec = (bandtype == BRCM_BAND_2G) ? pi 506 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->rxiq_samps = PHY_NOISE_SAMPLE_LOG_NUM_NPHY; pi 507 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->rxiq_antsel = ANT_RX_DIV_DEF; pi 509 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->watchdog_override = true; pi 511 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->cal_type_override = PHY_PERICAL_AUTO; pi 513 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_saved_noisevars.bufcount = 0; pi 515 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi)) pi 516 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->min_txpower = PHY_TXPWR_MIN_NPHY; pi 518 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->min_txpower = PHY_TXPWR_MIN; pi 520 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->sh->phyrxchain = 0x3; pi 522 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->rx2tx_biasentry = -1; pi 524 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phy_txcore_disable_temp = PHY_CHAIN_TX_DISABLE_TEMP; pi 525 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phy_txcore_enable_temp = pi 527 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phy_tempsense_offset = 0; pi 528 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phy_txcore_heatedup = false; pi 530 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_lastcal_temp = -50; pi 532 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phynoise_polling = true; pi 533 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi) || ISLCNPHY(pi)) pi 534 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phynoise_polling = false; pi 537 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->txpwr_limit[i] = BRCMS_TXPWR_MAX; pi 538 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->txpwr_env_limit[i] = BRCMS_TXPWR_MAX; pi 539 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tx_user_target[i] = BRCMS_TXPWR_MAX; pi 542 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->radiopwr_override = RADIOPWR_OVERRIDE_DEF; pi 544 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->user_txpwr_at_rfport = false; pi 546 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi)) { pi 548 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phycal_timer = wlapi_init_timer(pi->sh->physhim, pi 550 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi, "phycal"); pi 551 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!pi->phycal_timer) pi 554 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!wlc_phy_attach_nphy(pi)) pi 557 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c } else if (ISLCNPHY(pi)) { pi 558 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!wlc_phy_attach_lcnphy(pi)) pi 563 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->refcnt++; pi 564 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->next = pi->sh->phy_head; pi 565 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c sh->phy_head = pi; pi 567 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c memcpy(&pi->pubpi_ro, &pi->pubpi, sizeof(struct brcms_phy_pub)); pi 569 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c return &pi->pubpi_ro; pi 572 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c kfree(pi); pi 578 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 581 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (--pi->refcnt) pi 584 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->phycal_timer) { pi 585 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_free_timer(pi->phycal_timer); pi 586 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phycal_timer = NULL; pi 589 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->sh->phy_head == pi) pi 590 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->sh->phy_head = pi->next; pi 591 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c else if (pi->sh->phy_head->next == pi) pi 592 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->sh->phy_head->next = NULL; pi 594 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->pi_fptr.detach) pi 595 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (pi->pi_fptr.detach)(pi); pi 597 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c kfree(pi); pi 605 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 606 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c *phytype = (u16) pi->pubpi.phy_type; pi 607 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c *phyrev = (u16) pi->pubpi.phy_rev; pi 608 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c *radioid = pi->pubpi.radioid; pi 609 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c *radiover = pi->pubpi.radiorev; pi 616 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 617 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c return pi->pubpi.abgphy_encore; pi 622 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 623 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c return pi->pubpi.coreflags; pi 628 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 630 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi)) { pi 632 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 633 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, 0xa6, 0x0d); pi 634 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, 0x8f, 0x0); pi 635 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, 0xa7, 0x0d); pi 636 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, 0xa5, 0x0); pi 638 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, 0xa5, 0x0); pi 641 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 642 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, 0x8f, 0x07ff); pi 643 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, 0xa6, 0x0fd); pi 644 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, 0xa5, 0x07ff); pi 645 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, 0xa7, 0x0fd); pi 647 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, 0xa5, 0x7fff); pi 650 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c } else if (ISLCNPHY(pi)) { pi 652 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c and_phy_reg(pi, 0x43b, pi 655 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c or_phy_reg(pi, 0x43c, pi 657 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c or_phy_reg(pi, 0x43b, pi 665 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 669 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi && (ISNPHY(pi) || ISLCNPHY(pi))) { pi 670 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c switch (pi->bw) { pi 690 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 692 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phy_init_por = true; pi 697 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 699 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->edcrs_threshold_lock = lock; pi 701 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, 0x22c, 0x46b); pi 702 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, 0x22d, 0x46b); pi 703 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, 0x22e, 0x3c0); pi 704 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, 0x22f, 0x3c0); pi 709 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 711 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->do_initcal = initcal; pi 716 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 718 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!pi || !pi->sh) pi 721 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->sh->clk = newstate; pi 726 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 728 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!pi || !pi->sh) pi 731 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->sh->up = newstate; pi 738 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 740 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->init_in_progress) pi 743 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->init_in_progress = true; pi 745 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->radio_chanspec = chanspec; pi 747 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c mc = bcma_read32(pi->d11core, D11REGOFFS(maccontrol)); pi 751 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!(pi->measure_hold & PHY_HOLD_FOR_SCAN)) pi 752 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->measure_hold |= PHY_HOLD_FOR_NOT_ASSOC; pi 754 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (WARN(!(bcma_aread32(pi->d11core, BCMA_IOST) & SISF_FCLKA), pi 758 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c phy_init = pi->pi_fptr.init; pi 765 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (CHSPEC_BW(pi->radio_chanspec) != pi->bw) pi 766 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_bw_set(pi->sh->physhim, pi 767 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c CHSPEC_BW(pi->radio_chanspec)); pi 769 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_gain_boost = true; pi 771 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_switch_radio((struct brcms_phy_pub *) pi, ON); pi 773 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (*phy_init)(pi); pi 775 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phy_init_por = false; pi 777 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (D11REV_IS(pi->sh->corerev, 11) || D11REV_IS(pi->sh->corerev, 12)) pi 778 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_do_dummy_tx(pi, true, OFF); pi 780 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!(ISNPHY(pi))) pi 781 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_txpower_update_shm(pi); pi 783 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_ant_rxdiv_set((struct brcms_phy_pub *) pi, pi->sh->rx_antdiv); pi 785 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->init_in_progress = false; pi 790 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 793 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (WARN((bcma_read32(pi->d11core, D11REGOFFS(maccontrol)) & pi 797 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!pi->initialized) { pi 798 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c cal_init = pi->pi_fptr.calinit; pi 800 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (*cal_init)(pi); pi 802 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->initialized = true; pi 808 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 811 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->phycal_timer pi 812 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c && !wlapi_del_timer(pi->phycal_timer)) pi 815 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_iqcal_chanspec_2G = 0; pi 816 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_iqcal_chanspec_5G = 0; pi 822 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_table_addr(struct brcms_phy *pi, uint tbl_id, uint tbl_offset, pi 825 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, tblAddr, (tbl_id << 10) | tbl_offset); pi 827 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tbl_data_hi = tblDataHi; pi 828 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tbl_data_lo = tblDataLo; pi 830 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->sh->chip == BCMA_CHIP_ID_BCM43224 && pi 831 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->sh->chiprev == 1) { pi 832 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tbl_addr = tblAddr; pi 833 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tbl_save_id = tbl_id; pi 834 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tbl_save_offset = tbl_offset; pi 838 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c void wlc_phy_table_data_write(struct brcms_phy *pi, uint width, u32 val) pi 840 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if ((pi->sh->chip == BCMA_CHIP_ID_BCM43224) && pi 841 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (pi->sh->chiprev == 1) && pi 842 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (pi->tbl_save_id == NPHY_TBL_ID_ANTSWCTRLLUT)) { pi 843 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c read_phy_reg(pi, pi->tbl_data_lo); pi 845 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, pi->tbl_addr, pi 846 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (pi->tbl_save_id << 10) | pi->tbl_save_offset); pi 847 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tbl_save_offset++; pi 851 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, pi->tbl_data_hi, (u16) (val >> 16)); pi 852 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, pi->tbl_data_lo, (u16) val); pi 854 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, pi->tbl_data_lo, (u16) val); pi 859 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_write_table(struct brcms_phy *pi, const struct phytbl_info *ptbl_info, pi 870 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, tblAddr, (tbl_id << 10) | tbl_offset); pi 874 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if ((pi->sh->chip == BCMA_CHIP_ID_BCM43224) && pi 875 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (pi->sh->chiprev == 1) && pi 877 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c read_phy_reg(pi, tblDataLo); pi 879 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, tblAddr, pi 884 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, tblDataHi, pi 886 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, tblDataLo, (u16) ptbl_32b[idx]); pi 888 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, tblDataLo, ptbl_16b[idx]); pi 890 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, tblDataLo, ptbl_8b[idx]); pi 896 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_read_table(struct brcms_phy *pi, const struct phytbl_info *ptbl_info, pi 907 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, tblAddr, (tbl_id << 10) | tbl_offset); pi 911 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if ((pi->sh->chip == BCMA_CHIP_ID_BCM43224) && pi 912 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (pi->sh->chiprev == 1)) { pi 913 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (void)read_phy_reg(pi, tblDataLo); pi 915 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_phy_reg(pi, tblAddr, pi 920 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c ptbl_32b[idx] = read_phy_reg(pi, tblDataLo); pi 921 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c ptbl_32b[idx] |= (read_phy_reg(pi, tblDataHi) << 16); pi 923 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c ptbl_16b[idx] = read_phy_reg(pi, tblDataLo); pi 925 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c ptbl_8b[idx] = (u8) read_phy_reg(pi, tblDataLo); pi 931 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_init_radio_regs_allbands(struct brcms_phy *pi, pi 938 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_radio_reg(pi, radioregs[i].address, pi 948 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_init_radio_regs(struct brcms_phy *pi, pi 956 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 958 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_radio_reg(pi, pi 962 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi) && (++count % 4 == 0)) pi 963 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c BRCMS_PHY_WAR_PR51571(pi); pi 967 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c write_radio_reg(pi, pi 971 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi) && (++count % 4 == 0)) pi 972 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c BRCMS_PHY_WAR_PR51571(pi); pi 982 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c void wlc_phy_do_dummy_tx(struct brcms_phy *pi, bool ofdm, bool pa_on) pi 985 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct bcma_device *core = pi->d11core; pi 998 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_write_template_ram(pi->sh->physhim, 0, DUMMY_PKT_LEN, pi 1003 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (D11REV_GE(pi->sh->corerev, 11)) pi 1010 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi) || ISLCNPHY(pi)) pi 1025 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi)) pi 1026 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_pa_override_nphy(pi, OFF); pi 1029 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi) || ISLCNPHY(pi)) pi 1055 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi)) pi 1056 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_pa_override_nphy(pi, ON); pi 1062 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 1065 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c mboolset(pi->measure_hold, id); pi 1067 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c mboolclr(pi->measure_hold, id); pi 1074 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 1077 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c mboolset(pi->measure_hold, PHY_HOLD_FOR_MUTE); pi 1079 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c mboolclr(pi->measure_hold, PHY_HOLD_FOR_MUTE); pi 1082 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_perical_last = pi->sh->now - pi->sh->glacial_timer; pi 1088 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 1090 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi)) { pi 1093 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_write_shm(pi->sh->physhim, M_B_TSSI_0, NULL_TSSI_W); pi 1094 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_write_shm(pi->sh->physhim, M_B_TSSI_1, NULL_TSSI_W); pi 1095 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_write_shm(pi->sh->physhim, M_G_TSSI_0, NULL_TSSI_W); pi 1096 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_write_shm(pi->sh->physhim, M_G_TSSI_1, NULL_TSSI_W); pi 1100 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c static bool wlc_phy_cal_txpower_recalc_sw(struct brcms_phy *pi) pi 1107 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 1108 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (void)bcma_read32(pi->d11core, D11REGOFFS(maccontrol)); pi 1110 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi)) { pi 1111 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_switch_radio_nphy(pi, on); pi 1112 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c } else if (ISLCNPHY(pi)) { pi 1114 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c and_phy_reg(pi, 0x44c, pi 1118 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c and_phy_reg(pi, 0x4b0, ~((0x1 << 3) | (0x1 << 11))); pi 1119 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c and_phy_reg(pi, 0x4f9, ~(0x1 << 3)); pi 1121 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c and_phy_reg(pi, 0x44d, pi 1125 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c or_phy_reg(pi, 0x44c, pi 1130 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c and_phy_reg(pi, 0x4b7, ~((0x7f << 8))); pi 1131 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c and_phy_reg(pi, 0x4b1, ~((0x1 << 13))); pi 1132 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c or_phy_reg(pi, 0x4b0, (0x1 << 3) | (0x1 << 11)); pi 1133 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c and_phy_reg(pi, 0x4fa, ~((0x1 << 3))); pi 1134 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c or_phy_reg(pi, 0x4f9, (0x1 << 3)); pi 1141 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 1143 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c return pi->bw; pi 1148 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 1150 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->bw = bw; pi 1155 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 1156 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->radio_chanspec = newch; pi 1162 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 1164 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c return pi->radio_chanspec; pi 1169 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 1177 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_write_shm(pi->sh->physhim, M_CURCHANNEL, m_cur_channel); pi 1179 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c chanspec_set = pi->pi_fptr.chanset; pi 1181 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (*chanspec_set)(pi, chanspec); pi 1201 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c int wlc_phy_chanspec_bandrange_get(struct brcms_phy *pi, u16 chanspec) pi 1207 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi)) pi 1208 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c range = wlc_phy_get_chan_freq_range_nphy(pi, channel); pi 1209 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c else if (ISLCNPHY(pi)) pi 1218 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 1220 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->channel_14_wide_filter = wide_filter; pi 1238 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 1247 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if ((pi->a_band_high_disable) && (channel >= FIRST_REF5_CHANNUM) pi 1259 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 1267 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi) && pi->bw == WL_CHANSPEC_BW_40) { pi 1289 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if ((pi->a_band_high_disable) && (channel >= FIRST_REF5_CHANNUM) pi 1303 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 1305 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c *qdbm = pi->tx_user_target[0]; pi 1307 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c *override = pi->txpwroverride; pi 1315 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 1317 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c memcpy(&pi->tx_user_target[TXP_FIRST_CCK], pi 1320 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c memcpy(&pi->tx_user_target[TXP_FIRST_OFDM], pi 1322 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c memcpy(&pi->tx_user_target[TXP_FIRST_OFDM_20_CDD], pi 1325 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c memcpy(&pi->tx_user_target[TXP_FIRST_OFDM_40_SISO], pi 1327 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c memcpy(&pi->tx_user_target[TXP_FIRST_OFDM_40_CDD], pi 1330 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c memcpy(&pi->tx_user_target[TXP_FIRST_MCS_20_SISO], pi 1332 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c memcpy(&pi->tx_user_target[TXP_FIRST_MCS_20_CDD], pi 1334 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c memcpy(&pi->tx_user_target[TXP_FIRST_MCS_20_STBC], pi 1336 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c memcpy(&pi->tx_user_target[TXP_FIRST_MCS_20_SDM], pi 1339 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c memcpy(&pi->tx_user_target[TXP_FIRST_MCS_40_SISO], pi 1341 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c memcpy(&pi->tx_user_target[TXP_FIRST_MCS_40_CDD], pi 1343 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c memcpy(&pi->tx_user_target[TXP_FIRST_MCS_40_STBC], pi 1345 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c memcpy(&pi->tx_user_target[TXP_FIRST_MCS_40_SDM], pi 1348 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (bcma_read32(pi->d11core, D11REGOFFS(maccontrol)) & MCTL_EN_MAC) pi 1352 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_suspend_mac_and_wait(pi->sh->physhim); pi 1354 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_txpower_recalc_target(pi); pi 1355 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_cal_txpower_recalc_sw(pi); pi 1358 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_enable_mac(pi->sh->physhim); pi 1363 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 1370 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tx_user_target[i] = (u8) qdbm; pi 1372 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->txpwroverride = false; pi 1374 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->sh->up) { pi 1375 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!SCAN_INPROG_PHY(pi)) { pi 1378 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c suspend = (0 == (bcma_read32(pi->d11core, pi 1383 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_suspend_mac_and_wait(pi->sh->physhim); pi 1385 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_txpower_recalc_target(pi); pi 1386 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_cal_txpower_recalc_sw(pi); pi 1389 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_enable_mac(pi->sh->physhim); pi 1399 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 1402 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c *min_pwr = pi->min_txpower * BRCMS_TXPWR_DB_FACTOR; pi 1404 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi)) { pi 1407 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_txpower_sromlimit_get_nphy(pi, channel, max_pwr, pi 1413 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c *max_pwr = pi->tx_srom_max_rate_2g[txp_rate_idx]; pi 1426 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->hwtxpwr) { pi 1427 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c *max_pwr = pi->hwtxpwr[i]; pi 1432 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tx_srom_max_rate_5g_mid[txp_rate_idx]; pi 1436 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tx_srom_max_rate_5g_hi[txp_rate_idx]; pi 1439 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tx_srom_max_rate_5g_low[txp_rate_idx]; pi 1448 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 1456 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c max_num_rate = ISNPHY(pi) ? TXP_NUM_RATES : pi 1457 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c ISLCNPHY(pi) ? (TXP_LAST_SISO_MCS_20 + pi 1485 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 1487 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c return pi->tx_power_min; pi 1492 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 1494 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c return pi->tx_power_max; pi 1497 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c static s8 wlc_phy_env_measure_vbat(struct brcms_phy *pi) pi 1499 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISLCNPHY(pi)) pi 1500 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c return wlc_lcnphy_vbatsense(pi, 0); pi 1505 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c static s8 wlc_phy_env_measure_temperature(struct brcms_phy *pi) pi 1507 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISLCNPHY(pi)) pi 1508 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c return wlc_lcnphy_tempsense_degree(pi, 0); pi 1513 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c static void wlc_phy_upd_env_txpwr_rate_limits(struct brcms_phy *pi, u32 band) pi 1519 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->txpwr_env_limit[i] = BRCMS_TXPWR_MAX; pi 1521 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c vbat = wlc_phy_env_measure_vbat(pi); pi 1522 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c temp = wlc_phy_env_measure_temperature(pi); pi 1527 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_user_txpwr_antport_to_rfport(struct brcms_phy *pi, uint chan, u32 band, pi 1533 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c void wlc_phy_txpower_recalc_target(struct brcms_phy *pi) pi 1544 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c u32 band = CHSPEC2BAND(pi->radio_chanspec); pi 1547 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c chspec = pi->radio_chanspec; pi 1556 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISLCNPHY(pi)) { pi 1559 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (CHSPEC_IS40(pi->radio_chanspec)) { pi 1560 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c offset_mcs = pi->mcs40_po; pi 1563 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tx_srom_max_rate_2g[i - 8] = pi 1564 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tx_srom_max_2g - pi 1569 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c offset_mcs = pi->mcs20_po; pi 1572 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tx_srom_max_rate_2g[i - 8] = pi 1573 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tx_srom_max_2g - pi 1580 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c max_num_rate = ((ISNPHY(pi)) ? (TXP_NUM_RATES) : pi 1581 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c ((ISLCNPHY(pi)) ? pi 1584 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_upd_env_txpwr_rate_limits(pi, band); pi 1588 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c tx_pwr_target[rate] = pi->tx_user_target[rate]; pi 1590 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->user_txpwr_at_rfport) pi 1592 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_user_txpwr_antport_to_rfport(pi, pi 1597 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_txpower_sromlimit((struct brcms_phy_pub *) pi, pi 1601 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c maxtxpwr = min(maxtxpwr, pi->txpwr_limit[rate]); pi 1609 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->txpwr_percent <= 100) pi 1610 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c maxtxpwr = (maxtxpwr * pi->txpwr_percent) / 100; pi 1615 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c min(tx_pwr_target[rate], pi->txpwr_env_limit[rate]); pi 1624 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c memset(pi->tx_power_offset, 0, sizeof(pi->tx_power_offset)); pi 1625 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tx_power_max = tx_pwr_max; pi 1626 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tx_power_min = tx_pwr_min; pi 1627 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tx_power_max_rate_ind = tx_pwr_max_rate_ind; pi 1630 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tx_power_target[rate] = tx_pwr_target[rate]; pi 1632 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!pi->hwpwrctrl || ISNPHY(pi)) pi 1633 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tx_power_offset[rate] = pi 1634 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tx_power_max - pi->tx_power_target[rate]; pi 1636 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tx_power_offset[rate] = pi 1637 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tx_power_target[rate] - pi->tx_power_min; pi 1640 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c txpwr_recalc_fn = pi->pi_fptr.txpwrrecalc; pi 1642 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (*txpwr_recalc_fn)(pi); pi 1646 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_txpower_reg_limit_calc(struct brcms_phy *pi, struct txpwr_limits *txpwr, pi 1655 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->txpwr_limit[rate1] = txpwr->cck[rate2]; pi 1659 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->txpwr_limit[rate1] = txpwr->ofdm[rate2]; pi 1661 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi)) { pi 1704 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->txpwr_limit[rate1] = pi 1749 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->txpwr_limit[rate1] = pi 1770 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->txpwr_limit[rate1] = txpwr_ptr1[rate2]; pi 1789 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->txpwr_limit[rate1] = txpwr_ptr1[rate2]; pi 1792 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->txpwr_limit[WL_TX_POWER_MCS_32] = txpwr->mcs32; pi 1794 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->txpwr_limit[WL_TX_POWER_MCS40_CDD_FIRST] = pi 1795 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c min(pi->txpwr_limit[WL_TX_POWER_MCS40_CDD_FIRST], pi 1796 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->txpwr_limit[WL_TX_POWER_MCS_32]); pi 1797 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->txpwr_limit[WL_TX_POWER_MCS_32] = pi 1798 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->txpwr_limit[WL_TX_POWER_MCS40_CDD_FIRST]; pi 1804 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 1806 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->txpwr_percent = txpwr_percent; pi 1811 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 1813 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->sh->machwcap = machwcap; pi 1818 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 1823 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!ISNPHY(pi)) pi 1826 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (NREV_IS(pi->pubpi.phy_rev, 3) pi 1827 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c || NREV_IS(pi->pubpi.phy_rev, 4)) { pi 1828 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_wflush16(pi->d11core, D11REGOFFS(phyregaddr), pi 1830 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_set16(pi->d11core, D11REGOFFS(phyregdata), pi 1834 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (NREV_IS(pi->pubpi.phy_rev, 3) pi 1835 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c || NREV_IS(pi->pubpi.phy_rev, 4)) { pi 1836 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_wflush16(pi->d11core, D11REGOFFS(phyregaddr), pi 1838 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_write16(pi->d11core, D11REGOFFS(phyregdata), rxc); pi 1849 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 1851 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_txpower_reg_limit_calc(pi, txpwr, chanspec); pi 1853 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISLCNPHY(pi)) { pi 1858 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->txpwr_limit[i] = txpwr->mcs_20_siso[j]; pi 1860 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->txpwr_limit[i] = txpwr->ofdm[j]; pi 1864 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_suspend_mac_and_wait(pi->sh->physhim); pi 1866 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_txpower_recalc_target(pi); pi 1867 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_cal_txpower_recalc_sw(pi); pi 1868 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_enable_mac(pi->sh->physhim); pi 1873 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 1875 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->ofdm_rateset_war = war; pi 1880 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 1882 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->bf_preempt_4306 = bf_preempt; pi 1885 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c void wlc_phy_txpower_update_shm(struct brcms_phy *pi) pi 1888 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi)) pi 1891 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!pi->sh->clk) pi 1894 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->hwpwrctrl) { pi 1897 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_write_shm(pi->sh->physhim, M_TXPWR_MAX, 63); pi 1898 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_write_shm(pi->sh->physhim, M_TXPWR_N, pi 1901 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_write_shm(pi->sh->physhim, M_TXPWR_TARGET, pi 1902 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tx_power_min << NUM_TSSI_FRAMES); pi 1904 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_write_shm(pi->sh->physhim, M_TXPWR_CUR, pi 1905 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->hwpwr_txcur); pi 1912 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->sh->physhim, pi 1914 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_write_shm(pi->sh->physhim, offset + 6, pi 1915 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tx_power_offset[j]); pi 1916 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_write_shm(pi->sh->physhim, offset + 14, pi 1917 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c -(pi->tx_power_offset[j] / 2)); pi 1920 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_mhf(pi->sh->physhim, MHF2, MHF2_HWPWRCTL, pi 1926 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tx_power_offset[i] = pi 1927 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (u8) roundup(pi->tx_power_offset[i], 8); pi 1928 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_write_shm(pi->sh->physhim, M_OFDM_OFFSET, pi 1930 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c ((pi->tx_power_offset[TXP_FIRST_OFDM] pi 1937 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 1939 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi)) pi 1940 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c return pi->nphy_txpwrctrl; pi 1942 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c return pi->hwpwrctrl; pi 1947 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 1950 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!pi->hwpwrctrl_capable) pi 1953 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->hwpwrctrl = hwpwrctrl; pi 1954 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_txpwrctrl = hwpwrctrl; pi 1955 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->txpwrctrl = hwpwrctrl; pi 1957 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi)) { pi 1958 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c suspend = (0 == (bcma_read32(pi->d11core, pi 1962 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_suspend_mac_and_wait(pi->sh->physhim); pi 1964 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_txpwrctrl_enable_nphy(pi, pi->nphy_txpwrctrl); pi 1965 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->nphy_txpwrctrl == PHY_TPC_HW_OFF) pi 1966 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_txpwr_fixpower_nphy(pi); pi 1968 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c mod_phy_reg(pi, 0x1e7, (0x7f << 0), pi 1969 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->saved_txpwr_idx); pi 1972 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_enable_mac(pi->sh->physhim); pi 1976 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c void wlc_phy_txpower_ipa_upd(struct brcms_phy *pi) pi 1979 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 1980 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->ipa2g_on = (pi->srom_fem2g.extpagain == 2); pi 1981 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->ipa5g_on = (pi->srom_fem5g.extpagain == 2); pi 1983 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->ipa2g_on = false; pi 1984 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->ipa5g_on = false; pi 1988 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c static u32 wlc_phy_txpower_est_power_nphy(struct brcms_phy *pi) pi 1995 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c estPower1 = read_phy_reg(pi, 0x118); pi 1996 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c estPower2 = read_phy_reg(pi, 0x119); pi 2008 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c tx0_status = read_phy_reg(pi, 0x1ed); pi 2009 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c tx1_status = read_phy_reg(pi, 0x1ee); pi 2030 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 2038 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi)) { pi 2041 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->nphy_txpwrctrl == PHY_TPC_HW_ON) pi 2044 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c } else if (ISLCNPHY(pi)) { pi 2047 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->radiopwr_override == RADIOPWR_OVERRIDE_DEF) pi 2049 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->hwpwrctrl) pi 2053 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c num_rates = ((ISNPHY(pi)) ? (TXP_NUM_RATES) : pi 2054 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c ((ISLCNPHY(pi)) ? pi 2058 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c power->user_limit[rate] = pi->tx_user_target[rate]; pi 2062 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c power->target[rate] = pi->tx_power_target[rate]; pi 2065 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi)) { pi 2068 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_suspend_mac_and_wait(pi->sh->physhim); pi 2069 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phyreg_enter((struct brcms_phy_pub *) pi); pi 2070 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c est_pout = wlc_phy_txpower_est_power_nphy(pi); pi 2071 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phyreg_exit((struct brcms_phy_pub *) pi); pi 2072 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_enable_mac(pi->sh->physhim); pi 2092 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c power->tx_power_max[0] = pi->tx_power_max; pi 2093 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c power->tx_power_max[1] = pi->tx_power_max; pi 2095 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c power->tx_power_max_rate_ind[0] = pi->tx_power_max_rate_ind; pi 2096 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c power->tx_power_max_rate_ind[1] = pi->tx_power_max_rate_ind; pi 2097 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c } else if (pi->hwpwrctrl && pi->sh->up) { pi 2100 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISLCNPHY(pi)) { pi 2102 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c power->tx_power_max[0] = pi->tx_power_max; pi 2103 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c power->tx_power_max[1] = pi->tx_power_max; pi 2106 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tx_power_max_rate_ind; pi 2108 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tx_power_max_rate_ind; pi 2110 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (wlc_phy_tpc_isenabled_lcnphy(pi)) pi 2119 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_lcnphy_get_tssi(pi, (s8 *) &power->est_Pout[0], pi 2128 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 2130 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->antsel_type = antsel_type; pi 2135 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 2137 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c return pi->phytest_on; pi 2142 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 2145 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->sh->rx_antdiv = val; pi 2147 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!(ISNPHY(pi) && D11REV_IS(pi->sh->corerev, 16))) { pi 2149 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_mhf(pi->sh->physhim, MHF1, MHF1_ANTDIV, pi 2152 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_mhf(pi->sh->physhim, MHF1, MHF1_ANTDIV, 0, pi 2156 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi)) pi 2159 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!pi->sh->clk) pi 2162 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c suspend = (0 == (bcma_read32(pi->d11core, D11REGOFFS(maccontrol)) & pi 2165 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_suspend_mac_and_wait(pi->sh->physhim); pi 2167 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISLCNPHY(pi)) { pi 2169 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c mod_phy_reg(pi, 0x410, (0x1 << 1), 0x01 << 1); pi 2170 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c mod_phy_reg(pi, 0x410, pi 2174 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c mod_phy_reg(pi, 0x410, (0x1 << 1), 0x00 << 1); pi 2175 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c mod_phy_reg(pi, 0x410, (0x1 << 0), (u16) val << 0); pi 2180 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_enable_mac(pi->sh->physhim); pi 2186 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_noise_calc_phy(struct brcms_phy *pi, u32 *cmplx_pwr, s8 *pwr_ant) pi 2192 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_compute_dB(cmplx_pwr, cmplx_pwr_dbm, pi->pubpi.phy_corenum); pi 2194 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c for (i = 0; i < pi->pubpi.phy_corenum; i++) { pi 2195 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (NREV_GE(pi->pubpi.phy_rev, 3)) pi 2202 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c for (i = 0; i < pi->pubpi.phy_corenum; i++) { pi 2203 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_noise_win[i][pi->nphy_noise_index] = cmplx_pwr_dbm[i]; pi 2206 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_noise_index = pi 2207 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c MODINC_POW2(pi->nphy_noise_index, PHY_NOISE_WINDOW_SZ); pi 2211 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c static void wlc_phy_noise_cb(struct brcms_phy *pi, u8 channel, s8 noise_dbm) pi 2213 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!pi->phynoise_state) pi 2216 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->phynoise_state & PHY_NOISE_STATE_MON) { pi 2217 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->phynoise_chan_watchdog == channel) { pi 2218 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->sh->phy_noise_window[pi->sh->phy_noise_index] = pi 2220 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->sh->phy_noise_index = pi 2221 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c MODINC(pi->sh->phy_noise_index, MA_WINDOW_SZ); pi 2223 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phynoise_state &= ~PHY_NOISE_STATE_MON; pi 2226 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->phynoise_state & PHY_NOISE_STATE_EXTERNAL) pi 2227 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phynoise_state &= ~PHY_NOISE_STATE_EXTERNAL; pi 2231 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c static s8 wlc_phy_noise_read_shmem(struct brcms_phy *pi) pi 2243 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c for (idx = 0, core = 0; core < pi->pubpi.phy_corenum; idx += 2, pi 2245 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c lo = wlapi_bmac_read_shm(pi->sh->physhim, M_PWRIND_MAP(idx)); pi 2246 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c hi = wlapi_bmac_read_shm(pi->sh->physhim, pi 2257 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_noise_calc_phy(pi, cmplx_pwr, noise_dbm_ant); pi 2259 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c for (core = 0; core < pi->pubpi.phy_corenum; core++) { pi 2260 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_noise_win[core][pi->nphy_noise_index] = pi 2266 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_noise_index = pi 2267 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c MODINC_POW2(pi->nphy_noise_index, PHY_NOISE_WINDOW_SZ); pi 2275 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 2280 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISLCNPHY(pi)) { pi 2286 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c jssi_aux = wlapi_bmac_read_shm(pi->sh->physhim, M_JSSI_AUX); pi 2289 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c lo = wlapi_bmac_read_shm(pi->sh->physhim, M_PWRIND_MAP0); pi 2290 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c hi = wlapi_bmac_read_shm(pi->sh->physhim, M_PWRIND_MAP1); pi 2293 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c lo = wlapi_bmac_read_shm(pi->sh->physhim, M_PWRIND_MAP2); pi 2294 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c hi = wlapi_bmac_read_shm(pi->sh->physhim, M_PWRIND_MAP3); pi 2299 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c status_1 = wlapi_bmac_read_shm(pi->sh->physhim, M_JSSI_0); pi 2304 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->pubpi.phy_corenum); pi 2305 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pwr_offset_dB = (read_phy_reg(pi, 0x434) & 0xFF); pi 2316 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c } else if (ISNPHY(pi)) { pi 2318 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c jssi_aux = wlapi_bmac_read_shm(pi->sh->physhim, M_JSSI_AUX); pi 2321 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c noise_dbm = wlc_phy_noise_read_shmem(pi); pi 2324 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_noise_cb(pi, channel, noise_dbm); pi 2331 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 2333 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bool sampling_in_progress = (pi->phynoise_state != 0); pi 2338 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phynoise_chan_watchdog = ch; pi 2339 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phynoise_state |= PHY_NOISE_STATE_MON; pi 2343 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phynoise_state |= PHY_NOISE_STATE_EXTERNAL; pi 2353 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phynoise_now = pi->sh->now; pi 2355 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->phy_fixed_noise) { pi 2356 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi)) { pi 2357 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_noise_win[WL_ANT_IDX_1][pi->nphy_noise_index] = pi 2359 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_noise_win[WL_ANT_IDX_2][pi->nphy_noise_index] = pi 2361 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_noise_index = MODINC_POW2(pi->nphy_noise_index, pi 2372 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISLCNPHY(pi)) { pi 2373 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!pi->phynoise_polling pi 2375 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_write_shm(pi->sh->physhim, M_JSSI_0, 0); pi 2376 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_write_shm(pi->sh->physhim, M_PWRIND_MAP0, 0); pi 2377 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_write_shm(pi->sh->physhim, M_PWRIND_MAP1, 0); pi 2378 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_write_shm(pi->sh->physhim, M_PWRIND_MAP2, 0); pi 2379 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_write_shm(pi->sh->physhim, M_PWRIND_MAP3, 0); pi 2381 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_set32(pi->d11core, D11REGOFFS(maccommand), pi 2384 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_suspend_mac_and_wait(pi->sh->physhim); pi 2385 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_lcnphy_deaf_mode(pi, (bool) 0); pi 2386 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c noise_dbm = (s8) wlc_lcnphy_rx_signal_power(pi, 20); pi 2387 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_lcnphy_deaf_mode(pi, (bool) 1); pi 2388 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_enable_mac(pi->sh->physhim); pi 2391 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c } else if (ISNPHY(pi)) { pi 2392 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!pi->phynoise_polling pi 2395 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_write_shm(pi->sh->physhim, M_PWRIND_MAP0, 0); pi 2396 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_write_shm(pi->sh->physhim, M_PWRIND_MAP1, 0); pi 2397 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_write_shm(pi->sh->physhim, M_PWRIND_MAP2, 0); pi 2398 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_bmac_write_shm(pi->sh->physhim, M_PWRIND_MAP3, 0); pi 2400 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_set32(pi->d11core, D11REGOFFS(maccommand), pi 2418 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_suspend_mac_and_wait(pi->sh->physhim); pi 2419 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c classif_state = wlc_phy_classifier_nphy(pi, 0, 0); pi 2420 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_classifier_nphy(pi, 3, 0); pi 2421 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_rx_iq_est_nphy(pi, est, num_samps, wait_time, pi 2423 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_classifier_nphy(pi, (0x7 << 0), classif_state); pi 2424 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_enable_mac(pi->sh->physhim); pi 2426 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c for (i = 0; i < pi->pubpi.phy_corenum; i++) pi 2430 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_noise_calc_phy(pi, cmplx_pwr, noise_dbm_ant); pi 2432 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c for (i = 0; i < pi->pubpi.phy_corenum; i++) { pi 2433 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_noise_win[i][pi->nphy_noise_index] = pi 2439 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_noise_index = MODINC_POW2(pi->nphy_noise_index, pi 2449 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_noise_cb(pi, ch, noise_dbm); pi 2523 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 2525 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if ((pi->sh->corerev >= 11) pi 2531 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISLCNPHY(pi)) { pi 2533 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 2548 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISLCNPHY(pi)) { pi 2553 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c rssi = wlc_phy_rssi_compute_nphy(pi, rxh); pi 2572 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi; pi 2573 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi = (struct brcms_phy *) ppi; pi 2575 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISLCNPHY(pi)) pi 2576 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_lcnphy_deaf_mode(pi, true); pi 2577 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c else if (ISNPHY(pi)) pi 2578 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_nphy_deaf_mode(pi, true); pi 2583 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 2585 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->sh->now++; pi 2587 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!pi->watchdog_override) pi 2590 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!(SCAN_RM_IN_PROGRESS(pi) || PLT_INPROG_PHY(pi))) pi 2591 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_noise_sample_request((struct brcms_phy_pub *) pi, pi 2593 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c CHSPEC_CHANNEL(pi-> pi 2596 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->phynoise_state && (pi->sh->now - pi->phynoise_now) > 5) pi 2597 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phynoise_state = 0; pi 2599 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if ((!pi->phycal_txpower) || pi 2600 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c ((pi->sh->now - pi->phycal_txpower) >= pi->sh->fast_timer)) { pi 2602 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!SCAN_INPROG_PHY(pi) && wlc_phy_cal_txpower_recalc_sw(pi)) pi 2603 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phycal_txpower = pi->sh->now; pi 2606 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if ((SCAN_RM_IN_PROGRESS(pi) || PLT_INPROG_PHY(pi) pi 2607 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c || ASSOC_INPROG_PHY(pi))) pi 2610 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi) && !pi->disable_percal && !delay_phy_cal) { pi 2612 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if ((pi->nphy_perical != PHY_PERICAL_DISABLE) && pi 2613 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (pi->nphy_perical != PHY_PERICAL_MANUAL) && pi 2614 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c ((pi->sh->now - pi->nphy_perical_last) >= pi 2615 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->sh->glacial_timer)) pi 2616 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_cal_perical((struct brcms_phy_pub *) pi, pi 2619 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_txpwr_papd_cal_nphy(pi); pi 2622 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISLCNPHY(pi)) { pi 2623 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->phy_forcecal || pi 2624 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c ((pi->sh->now - pi->phy_lastcal) >= pi 2625 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->sh->glacial_timer)) { pi 2626 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!(SCAN_RM_IN_PROGRESS(pi) || ASSOC_INPROG_PHY(pi))) pi 2628 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi, pi 2631 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (SCAN_RM_IN_PROGRESS(pi) || PLT_INPROG_PHY(pi) pi 2632 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c || ASSOC_INPROG_PHY(pi) pi 2633 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c || pi->carrier_suppr_disable pi 2634 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c || pi->disable_percal)) pi 2635 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_lcnphy_calib_modes(pi, pi 2643 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 2648 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->sh->phy_noise_window[i] = (s8) (rssi & 0xff); pi 2649 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISLCNPHY(pi)) { pi 2651 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->sh->phy_noise_window[i] = pi 2654 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->sh->phy_noise_index = 0; pi 2658 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_noise_win[k][i] = PHY_NOISE_FIXED_VAL_NPHY; pi 2660 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_noise_index = 0; pi 2675 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c void wlc_phy_cal_perical_mphase_reset(struct brcms_phy *pi) pi 2677 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_del_timer(pi->phycal_timer); pi 2679 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->cal_type_override = PHY_PERICAL_AUTO; pi 2680 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->mphase_cal_phase_id = MPHASE_CAL_STATE_IDLE; pi 2681 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->mphase_txcal_cmdidx = 0; pi 2685 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_cal_perical_mphase_schedule(struct brcms_phy *pi, uint delay) pi 2688 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if ((pi->nphy_perical != PHY_PERICAL_MPHASE) && pi 2689 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (pi->nphy_perical != PHY_PERICAL_MANUAL)) pi 2692 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_del_timer(pi->phycal_timer); pi 2694 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->mphase_cal_phase_id = MPHASE_CAL_STATE_INIT; pi 2695 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_add_timer(pi->phycal_timer, delay, 0); pi 2703 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 2705 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!ISNPHY(pi)) pi 2708 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if ((pi->nphy_perical == PHY_PERICAL_DISABLE) || pi 2709 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (pi->nphy_perical == PHY_PERICAL_MANUAL)) pi 2717 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->nphy_perical == PHY_PERICAL_MPHASE) { pi 2718 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (PHY_PERICAL_MPHASE_PENDING(pi)) pi 2719 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_cal_perical_mphase_reset(pi); pi 2722 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi, pi 2730 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if ((pi->nphy_perical == PHY_PERICAL_MPHASE) && pi 2731 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c PHY_PERICAL_MPHASE_PENDING(pi)) pi 2732 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_cal_perical_mphase_reset(pi); pi 2734 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->first_cal_after_assoc = true; pi 2736 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->cal_type_override = PHY_PERICAL_FULL; pi 2738 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->phycal_tempdelta) pi 2739 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_lastcal_temp = wlc_phy_tempsense_nphy(pi); pi 2741 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_cal_perical_nphy_run(pi, PHY_PERICAL_FULL); pi 2745 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->phycal_tempdelta) { pi 2746 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c nphy_currtemp = wlc_phy_tempsense_nphy(pi); pi 2748 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (nphy_currtemp > pi->nphy_lastcal_temp) ? pi 2749 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c nphy_currtemp - pi->nphy_lastcal_temp : pi 2750 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_lastcal_temp - nphy_currtemp; pi 2752 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if ((delta_temp < (s16) pi->phycal_tempdelta) && pi 2753 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (pi->nphy_txiqlocal_chanspec == pi 2754 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->radio_chanspec)) pi 2757 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->nphy_lastcal_temp = nphy_currtemp; pi 2761 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->nphy_perical == PHY_PERICAL_MPHASE) { pi 2762 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!PHY_PERICAL_MPHASE_PENDING(pi)) pi 2764 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi, pi 2766 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c } else if (pi->nphy_perical == PHY_PERICAL_SPHASE) pi 2767 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_cal_perical_nphy_run(pi, pi 2776 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c void wlc_phy_cal_perical_mphase_restart(struct brcms_phy *pi) pi 2778 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->mphase_cal_phase_id = MPHASE_CAL_STATE_INIT; pi 2779 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->mphase_txcal_cmdidx = 0; pi 2796 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 2798 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->sh->hw_phytxchain = txchain; pi 2799 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->sh->hw_phyrxchain = rxchain; pi 2800 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->sh->phytxchain = txchain; pi 2801 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->sh->phyrxchain = rxchain; pi 2802 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->pubpi.phy_corenum = (u8)hweight8(pi->sh->phyrxchain); pi 2807 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 2809 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->sh->phytxchain = txchain; pi 2811 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi)) pi 2814 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->pubpi.phy_corenum = (u8)hweight8(pi->sh->phyrxchain); pi 2819 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 2821 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c *txchain = pi->sh->phytxchain; pi 2822 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c *rxchain = pi->sh->phyrxchain; pi 2829 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 2831 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c active_bitmap = (pi->phy_txcore_heatedup) ? 0x31 : 0x33; pi 2833 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!pi->watchdog_override) pi 2836 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (NREV_GE(pi->pubpi.phy_rev, 6)) { pi 2837 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_suspend_mac_and_wait(pi->sh->physhim); pi 2838 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c nphy_currtemp = wlc_phy_tempsense_nphy(pi); pi 2839 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlapi_enable_mac(pi->sh->physhim); pi 2841 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!pi->phy_txcore_heatedup) { pi 2842 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (nphy_currtemp >= pi->phy_txcore_disable_temp) { pi 2844 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phy_txcore_heatedup = true; pi 2847 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (nphy_currtemp <= pi->phy_txcore_enable_temp) { pi 2849 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->phy_txcore_heatedup = false; pi 2859 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 2869 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->tx_power_target[siso_mcs_id] > pi 2870 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (pi->tx_power_target[cdd_mcs_id] + 12)) pi 2881 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c void wlc_lcnphy_epa_switch(struct brcms_phy *pi, bool mode) pi 2883 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if ((pi->sh->chip == BCMA_CHIP_ID_BCM4313) && pi 2884 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c (pi->sh->boardflags & BFL_FEM)) { pi 2887 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c txant = wlapi_bmac_get_txant(pi->sh->physhim); pi 2889 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c mod_phy_reg(pi, 0x44d, (0x1 << 2), (1) << 2); pi 2891 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c mod_phy_reg(pi, 0x44c, (0x1 << 2), (1) << 2); pi 2895 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_chipco_gpio_control(&pi->d11core->bus->drv_cc, pi 2897 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_chipco_gpio_out(&pi->d11core->bus->drv_cc, pi 2899 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_chipco_gpio_outen(&pi->d11core->bus->drv_cc, pi 2902 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c mod_phy_reg(pi, 0x44c, (0x1 << 2), (0) << 2); pi 2904 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c mod_phy_reg(pi, 0x44d, (0x1 << 2), (0) << 2); pi 2906 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_chipco_gpio_out(&pi->d11core->bus->drv_cc, pi 2908 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_chipco_gpio_outen(&pi->d11core->bus->drv_cc, pi 2910 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_chipco_gpio_control(&pi->d11core->bus->drv_cc, pi 2922 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c wlc_phy_get_pwrdet_offsets(struct brcms_phy *pi, s8 *cckoffset, s8 *ofdmoffset) pi 2928 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c s8 wlc_phy_upd_rssi_offset(struct brcms_phy *pi, s8 rssi, u16 chanspec) pi 2936 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 2938 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (ISNPHY(pi)) pi 2939 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c return wlc_phy_n_txpower_ipa_ison(pi); pi 32 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h #define ISNPHY(pi) PHYTYPE_IS((pi)->pubpi.phy_type, PHY_TYPE_N) pi 33 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h #define ISLCNPHY(pi) PHYTYPE_IS((pi)->pubpi.phy_type, PHY_TYPE_LCN) pi 169 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h #define PHY_PERICAL_MPHASE_PENDING(pi) \ pi 170 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h (pi->mphase_cal_phase_id > MPHASE_CAL_STATE_IDLE) pi 215 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h #define SCAN_INPROG_PHY(pi) \ pi 216 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h (mboolisset(pi->measure_hold, PHY_HOLD_FOR_SCAN)) pi 218 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h #define PLT_INPROG_PHY(pi) (mboolisset(pi->measure_hold, PHY_HOLD_FOR_PLT)) pi 220 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h #define ASSOC_INPROG_PHY(pi) \ pi 221 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h (mboolisset(pi->measure_hold, PHY_HOLD_FOR_ASSOC)) pi 223 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h #define SCAN_RM_IN_PROGRESS(pi) \ pi 224 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h (mboolisset(pi->measure_hold, PHY_HOLD_FOR_SCAN | PHY_HOLD_FOR_RM)) pi 226 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h #define PHY_MUTED(pi) \ pi 227 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h (mboolisset(pi->measure_hold, PHY_HOLD_FOR_MUTE)) pi 229 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h #define PUB_NOT_ASSOC(pi) \ pi 230 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h (mboolisset(pi->measure_hold, PHY_HOLD_FOR_NOT_ASSOC)) pi 895 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h u16 read_phy_reg(struct brcms_phy *pi, u16 addr); pi 896 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void write_phy_reg(struct brcms_phy *pi, u16 addr, u16 val); pi 897 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void and_phy_reg(struct brcms_phy *pi, u16 addr, u16 val); pi 898 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void or_phy_reg(struct brcms_phy *pi, u16 addr, u16 val); pi 899 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void mod_phy_reg(struct brcms_phy *pi, u16 addr, u16 mask, u16 val); pi 901 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h u16 read_radio_reg(struct brcms_phy *pi, u16 addr); pi 902 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void or_radio_reg(struct brcms_phy *pi, u16 addr, u16 val); pi 903 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void and_radio_reg(struct brcms_phy *pi, u16 addr, u16 val); pi 904 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void mod_radio_reg(struct brcms_phy *pi, u16 addr, u16 mask, u16 val); pi 905 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void xor_radio_reg(struct brcms_phy *pi, u16 addr, u16 mask); pi 907 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void write_radio_reg(struct brcms_phy *pi, u16 addr, u16 val); pi 914 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_read_table(struct brcms_phy *pi, pi 917 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_write_table(struct brcms_phy *pi, pi 920 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_table_addr(struct brcms_phy *pi, uint tbl_id, uint tbl_offset, pi 922 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_table_data_write(struct brcms_phy *pi, uint width, u32 val); pi 924 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void write_phy_channel_reg(struct brcms_phy *pi, uint val); pi 925 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_txpower_update_shm(struct brcms_phy *pi); pi 930 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h uint wlc_phy_init_radio_regs_allbands(struct brcms_phy *pi, pi 932 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h uint wlc_phy_init_radio_regs(struct brcms_phy *pi, pi 936 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_txpower_ipa_upd(struct brcms_phy *pi); pi 938 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_do_dummy_tx(struct brcms_phy *pi, bool ofdm, bool pa_on); pi 941 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_cal_perical_mphase_reset(struct brcms_phy *pi); pi 942 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_cal_perical_mphase_restart(struct brcms_phy *pi); pi 944 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h bool wlc_phy_attach_nphy(struct brcms_phy *pi); pi 945 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h bool wlc_phy_attach_lcnphy(struct brcms_phy *pi); pi 947 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_detach_lcnphy(struct brcms_phy *pi); pi 949 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_init_nphy(struct brcms_phy *pi); pi 950 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_init_lcnphy(struct brcms_phy *pi); pi 952 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_cal_init_nphy(struct brcms_phy *pi); pi 953 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_cal_init_lcnphy(struct brcms_phy *pi); pi 955 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_chanspec_set_nphy(struct brcms_phy *pi, u16 chanspec); pi 956 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_chanspec_set_lcnphy(struct brcms_phy *pi, u16 chanspec); pi 957 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_chanspec_set_fixup_lcnphy(struct brcms_phy *pi, u16 chanspec); pi 962 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_lcnphy_set_tx_pwr_ctrl(struct brcms_phy *pi, u16 mode); pi 963 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h s8 wlc_lcnphy_get_current_tx_pwr_idx(struct brcms_phy *pi); pi 965 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_txpower_recalc_target_nphy(struct brcms_phy *pi); pi 966 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_lcnphy_txpower_recalc_target(struct brcms_phy *pi); pi 967 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_txpower_recalc_target_lcnphy(struct brcms_phy *pi); pi 969 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_lcnphy_set_tx_pwr_by_index(struct brcms_phy *pi, int index); pi 970 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_lcnphy_tx_pu(struct brcms_phy *pi, bool bEnable); pi 971 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_lcnphy_stop_tx_tone(struct brcms_phy *pi); pi 972 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_lcnphy_start_tx_tone(struct brcms_phy *pi, s32 f_kHz, u16 max_val, pi 975 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_txpower_sromlimit_get_nphy(struct brcms_phy *pi, uint chan, pi 982 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h u16 wlc_lcnphy_tempsense(struct brcms_phy *pi, bool mode); pi 983 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h s16 wlc_lcnphy_tempsense_new(struct brcms_phy *pi, bool mode); pi 984 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h s8 wlc_lcnphy_tempsense_degree(struct brcms_phy *pi, bool mode); pi 985 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h s8 wlc_lcnphy_vbatsense(struct brcms_phy *pi, bool mode); pi 986 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_carrier_suppress_lcnphy(struct brcms_phy *pi); pi 987 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_lcnphy_crsuprs(struct brcms_phy *pi, int channel); pi 988 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_lcnphy_epa_switch(struct brcms_phy *pi, bool mode); pi 989 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_2064_vco_cal(struct brcms_phy *pi); pi 991 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_txpower_recalc_target(struct brcms_phy *pi); pi 1005 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_lcnphy_write_table(struct brcms_phy *pi, pi 1007 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_lcnphy_read_table(struct brcms_phy *pi, struct phytbl_info *pti); pi 1008 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_lcnphy_set_tx_iqcc(struct brcms_phy *pi, u16 a, u16 b); pi 1009 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_lcnphy_set_tx_locc(struct brcms_phy *pi, u16 didq); pi 1010 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_lcnphy_get_tx_iqcc(struct brcms_phy *pi, u16 *a, u16 *b); pi 1011 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h u16 wlc_lcnphy_get_tx_locc(struct brcms_phy *pi); pi 1012 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_lcnphy_get_radio_loft(struct brcms_phy *pi, u8 *ei0, u8 *eq0, u8 *fi0, pi 1014 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_lcnphy_calib_modes(struct brcms_phy *pi, uint mode); pi 1015 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_lcnphy_deaf_mode(struct brcms_phy *pi, bool mode); pi 1016 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h bool wlc_phy_tpc_isenabled_lcnphy(struct brcms_phy *pi); pi 1017 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_lcnphy_tx_pwr_update_npt(struct brcms_phy *pi); pi 1019 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_lcnphy_get_tssi(struct brcms_phy *pi, s8 *ofdm_pwr, s8 *cck_pwr); pi 1022 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h s32 wlc_lcnphy_rx_signal_power(struct brcms_phy *pi, s32 gain_index); pi 1033 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_stay_in_carriersearch_nphy(struct brcms_phy *pi, bool enable); pi 1034 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_nphy_deaf_mode(struct brcms_phy *pi, bool mode); pi 1036 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h #define wlc_phy_write_table_nphy(pi, pti) \ pi 1037 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h wlc_phy_write_table(pi, pti, 0x72, 0x74, 0x73) pi 1039 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h #define wlc_phy_read_table_nphy(pi, pti) \ pi 1040 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h wlc_phy_read_table(pi, pti, 0x72, 0x74, 0x73) pi 1042 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h #define wlc_nphy_table_addr(pi, id, off) \ pi 1043 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h wlc_phy_table_addr((pi), (id), (off), 0x72, 0x74, 0x73) pi 1045 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h #define wlc_nphy_table_data_write(pi, w, v) \ pi 1046 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h wlc_phy_table_data_write((pi), (w), (v)) pi 1048 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_table_read_nphy(struct brcms_phy *pi, u32, u32 l, u32 o, u32 w, pi 1050 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_table_write_nphy(struct brcms_phy *pi, u32, u32, u32, u32, pi 1053 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h #define PHY_IPA(pi) \ pi 1054 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h ((pi->ipa2g_on && CHSPEC_IS2G(pi->radio_chanspec)) || \ pi 1055 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h (pi->ipa5g_on && CHSPEC_IS5G(pi->radio_chanspec))) pi 1057 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h #define BRCMS_PHY_WAR_PR51571(pi) \ pi 1058 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h if (NREV_LT((pi)->pubpi.phy_rev, 3)) \ pi 1059 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h (void)bcma_read32(pi->d11core, D11REGOFFS(maccontrol)) pi 1061 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_cal_perical_nphy_run(struct brcms_phy *pi, u8 caltype); pi 1062 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_aci_reset_nphy(struct brcms_phy *pi); pi 1063 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_pa_override_nphy(struct brcms_phy *pi, bool en); pi 1065 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h u8 wlc_phy_get_chan_freq_range_nphy(struct brcms_phy *pi, uint chan); pi 1066 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_switch_radio_nphy(struct brcms_phy *pi, bool on); pi 1068 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_stf_chain_upd_nphy(struct brcms_phy *pi); pi 1070 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_force_rfseq_nphy(struct brcms_phy *pi, u8 cmd); pi 1071 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h s16 wlc_phy_tempsense_nphy(struct brcms_phy *pi); pi 1073 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h u16 wlc_phy_classifier_nphy(struct brcms_phy *pi, u16 mask, u16 val); pi 1075 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_rx_iq_est_nphy(struct brcms_phy *pi, struct phy_iq_est *est, pi 1078 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_rx_iq_coeffs_nphy(struct brcms_phy *pi, u8 write, pi 1080 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_aci_and_noise_reduction_nphy(struct brcms_phy *pi); pi 1085 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_txpwrctrl_enable_nphy(struct brcms_phy *pi, u8 ctrl_type); pi 1086 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_txpwr_fixpower_nphy(struct brcms_phy *pi); pi 1087 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_txpwr_apply_nphy(struct brcms_phy *pi); pi 1088 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_txpwr_papd_cal_nphy(struct brcms_phy *pi); pi 1089 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h u16 wlc_phy_txpwr_idx_get_nphy(struct brcms_phy *pi); pi 1091 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h struct nphy_txgains wlc_phy_get_tx_gain_nphy(struct brcms_phy *pi); pi 1092 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h int wlc_phy_cal_txiqlo_nphy(struct brcms_phy *pi, pi 1094 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h int wlc_phy_cal_rxiq_nphy(struct brcms_phy *pi, struct nphy_txgains target_gain, pi 1096 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_txpwr_index_nphy(struct brcms_phy *pi, u8 core_mask, pi 1098 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_rssisel_nphy(struct brcms_phy *pi, u8 core, u8 rssi_type); pi 1099 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h int wlc_phy_poll_rssi_nphy(struct brcms_phy *pi, u8 rssi_type, pi 1101 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_rssi_cal_nphy(struct brcms_phy *pi); pi 1102 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h int wlc_phy_aci_scan_nphy(struct brcms_phy *pi); pi 1103 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_cal_txgainctrl_nphy(struct brcms_phy *pi, s32 dBm_targetpower, pi 1105 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h int wlc_phy_tx_tone_nphy(struct brcms_phy *pi, u32 f_kHz, u16 max_val, u8 mode, pi 1107 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_stopplayback_nphy(struct brcms_phy *pi); pi 1108 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_est_tonepwr_nphy(struct brcms_phy *pi, s32 *qdBm_pwrbuf, pi 1110 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_radio205x_vcocal_nphy(struct brcms_phy *pi); pi 1112 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h int wlc_phy_rssi_compute_nphy(struct brcms_phy *pi, struct d11rxhdr *rxh); pi 1117 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_nphy_tkip_rifs_war(struct brcms_phy *pi, u8 rifs); pi 1119 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_get_pwrdet_offsets(struct brcms_phy *pi, s8 *cckoffset, pi 1121 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h s8 wlc_phy_upd_rssi_offset(struct brcms_phy *pi, s8 rssi, u16 chanspec); pi 79 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c #define wlc_lcnphy_enable_tx_gain_override(pi) \ pi 80 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_gain_override(pi, true) pi 81 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c #define wlc_lcnphy_disable_tx_gain_override(pi) \ pi 82 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_gain_override(pi, false) pi 84 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c #define wlc_lcnphy_iqcal_active(pi) \ pi 85 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c (read_phy_reg((pi), 0x451) & \ pi 88 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c #define txpwrctrl_off(pi) (0x7 != ((read_phy_reg(pi, 0x4a4) & 0xE000) >> 13)) pi 89 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c #define wlc_lcnphy_tempsense_based_pwr_ctrl_enabled(pi) \ pi 90 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c (pi->temppwrctrl_capable) pi 91 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c #define wlc_lcnphy_tssi_based_pwr_ctrl_enabled(pi) \ pi 92 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c (pi->hwpwrctrl_capable) pi 134 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c #define wlc_lcnphy_tx_gain_override_enabled(pi) \ pi 135 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c (0 != (read_phy_reg((pi), 0x43b) & (0x1 << 6))) pi 137 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c #define wlc_lcnphy_total_tx_frames(pi) \ pi 138 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlapi_bmac_read_shm((pi)->sh->physhim, M_UCODE_MACSTAT + \ pi 919 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c #define wlc_lcnphy_set_start_tx_pwr_idx(pi, idx) \ pi 920 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a4, \ pi 924 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c #define wlc_lcnphy_set_tx_pwr_npt(pi, npt) \ pi 925 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a5, \ pi 929 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c #define wlc_lcnphy_get_tx_pwr_ctrl(pi) \ pi 930 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c (read_phy_reg((pi), 0x4a4) & \ pi 935 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c #define wlc_lcnphy_get_tx_pwr_npt(pi) \ pi 936 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c ((read_phy_reg(pi, 0x4a5) & \ pi 940 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c #define wlc_lcnphy_get_current_tx_pwr_idx_if_pwrctrl_on(pi) \ pi 941 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c (read_phy_reg(pi, 0x473) & 0x1ff) pi 943 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c #define wlc_lcnphy_get_target_tx_pwr(pi) \ pi 944 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c ((read_phy_reg(pi, 0x4a7) & \ pi 948 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c #define wlc_lcnphy_set_target_tx_pwr(pi, target) \ pi 949 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a7, \ pi 953 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c #define wlc_radio_2064_rcal_done(pi) \ pi 954 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c (0 != (read_radio_reg(pi, RADIO_2064_REG05C) & 0x20)) pi 956 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c #define tempsense_done(pi) \ pi 957 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c (0x8000 == (read_phy_reg(pi, 0x476) & 0x8000)) pi 965 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c void wlc_lcnphy_write_table(struct brcms_phy *pi, const struct phytbl_info *pti) pi 967 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_phy_write_table(pi, pti, 0x455, 0x457, 0x456); pi 970 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c void wlc_lcnphy_read_table(struct brcms_phy *pi, struct phytbl_info *pti) pi 972 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_phy_read_table(pi, pti, 0x455, 0x457, 0x456); pi 976 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_common_read_table(struct brcms_phy *pi, u32 tbl_id, pi 986 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_read_table(pi, &tab); pi 990 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_common_write_table(struct brcms_phy *pi, u32 tbl_id, pi 1001 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &tab); pi 1051 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_get_tx_gain(struct brcms_phy *pi, struct lcnphy_txgains *gains) pi 1055 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c dac_gain = read_phy_reg(pi, 0x439) >> 0; pi 1058 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c rfgain0 = (read_phy_reg(pi, 0x4b5) & (0xffff << 0)) >> 0; pi 1059 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c rfgain1 = (read_phy_reg(pi, 0x4fb) & (0x7fff << 0)) >> 0; pi 1067 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_set_dac_gain(struct brcms_phy *pi, u16 dac_gain) pi 1071 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c dac_ctrl = (read_phy_reg(pi, 0x439) >> 0); pi 1074 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x439, (0xfff << 0), (dac_ctrl) << 0); pi 1078 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_set_tx_gain_override(struct brcms_phy *pi, bool bEnable) pi 1082 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4b0, (0x1 << 7), bit << 7); pi 1084 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4b0, (0x1 << 14), bit << 14); pi 1086 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x43b, (0x1 << 6), bit << 6); pi 1090 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_rx_gain_override_enable(struct brcms_phy *pi, bool enable) pi 1094 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4b0, (0x1 << 8), ebit << 8); pi 1096 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44c, (0x1 << 0), ebit << 0); pi 1098 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (LCNREV_LT(pi->pubpi.phy_rev, 2)) { pi 1099 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44c, (0x1 << 4), ebit << 4); pi 1100 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44c, (0x1 << 6), ebit << 6); pi 1101 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4b0, (0x1 << 5), ebit << 5); pi 1102 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4b0, (0x1 << 6), ebit << 6); pi 1104 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4b0, (0x1 << 12), ebit << 12); pi 1105 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4b0, (0x1 << 13), ebit << 13); pi 1106 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4b0, (0x1 << 5), ebit << 5); pi 1109 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 1110 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4b0, (0x1 << 10), ebit << 10); pi 1111 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4e5, (0x1 << 3), ebit << 3); pi 1116 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_rx_gain_by_distribution(struct brcms_phy *pi, pi 1133 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4b6, (0xffff << 0), gain0_15 << 0); pi 1134 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4b7, (0xf << 0), gain16_19 << 0); pi 1135 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4b1, (0x3 << 11), lna1 << 11); pi 1137 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (LCNREV_LT(pi->pubpi.phy_rev, 2)) { pi 1138 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4b1, (0x1 << 9), ext_lna << 9); pi 1139 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4b1, (0x1 << 10), ext_lna << 10); pi 1141 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4b1, (0x1 << 10), 0 << 10); pi 1143 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4b1, (0x1 << 15), 0 << 15); pi 1145 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4b1, (0x1 << 9), ext_lna << 9); pi 1148 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44d, (0x1 << 0), (!trsw) << 0); pi 1152 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_set_trsw_override(struct brcms_phy *pi, bool tx, bool rx) pi 1155 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44d, pi 1159 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_phy_reg(pi, 0x44c, (0x1 << 1) | (0x1 << 0)); pi 1162 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_clear_trsw_override(struct brcms_phy *pi) pi 1165 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c and_phy_reg(pi, 0x44c, (u16) ~((0x1 << 1) | (0x1 << 0))); pi 1168 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_set_rx_iq_comp(struct brcms_phy *pi, u16 a, u16 b) pi 1170 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x645, (0x3ff << 0), (a) << 0); pi 1172 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x646, (0x3ff << 0), (b) << 0); pi 1174 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x647, (0x3ff << 0), (a) << 0); pi 1176 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x648, (0x3ff << 0), (b) << 0); pi 1178 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x649, (0x3ff << 0), (a) << 0); pi 1180 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x64a, (0x3ff << 0), (b) << 0); pi 1185 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_rx_iq_est(struct brcms_phy *pi, pi 1192 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x6da, (0x1 << 5), (1) << 5); pi 1194 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x410, (0x1 << 3), (0) << 3); pi 1196 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x482, (0xffff << 0), (num_samps) << 0); pi 1198 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x481, (0xff << 0), ((u16) wait_time) << 0); pi 1200 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x481, (0x1 << 8), (0) << 8); pi 1202 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x481, (0x1 << 9), (1) << 9); pi 1204 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c while (read_phy_reg(pi, 0x481) & (0x1 << 9)) { pi 1214 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c iq_est->iq_prod = ((u32) read_phy_reg(pi, 0x483) << 16) | pi 1215 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c (u32) read_phy_reg(pi, 0x484); pi 1216 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c iq_est->i_pwr = ((u32) read_phy_reg(pi, 0x485) << 16) | pi 1217 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c (u32) read_phy_reg(pi, 0x486); pi 1218 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c iq_est->q_pwr = ((u32) read_phy_reg(pi, 0x487) << 16) | pi 1219 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c (u32) read_phy_reg(pi, 0x488); pi 1222 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x410, (0x1 << 3), (1) << 3); pi 1224 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x6da, (0x1 << 5), (0) << 5); pi 1229 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static bool wlc_lcnphy_calc_rx_iq_comp(struct brcms_phy *pi, u16 num_samps) pi 1239 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 1241 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c a0_new = ((read_phy_reg(pi, 0x645) & (0x3ff << 0)) >> 0); pi 1242 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c b0_new = ((read_phy_reg(pi, 0x646) & (0x3ff << 0)) >> 0); pi 1243 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x6d1, (0x1 << 2), (0) << 2); pi 1245 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x64b, (0x1 << 6), (1) << 6); pi 1247 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_rx_iq_comp(pi, 0, 0); pi 1249 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c result = wlc_lcnphy_rx_iq_est(pi, num_samps, 32, &iq_est); pi 1298 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_rx_iq_comp(pi, a0_new, b0_new); pi 1300 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x64b, (0x1 << 0), (1) << 0); pi 1302 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x64b, (0x1 << 3), (1) << 3); pi 1310 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static u32 wlc_lcnphy_measure_digital_power(struct brcms_phy *pi, u16 nsamples) pi 1314 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (!wlc_lcnphy_rx_iq_est(pi, nsamples, 32, &iq_est)) pi 1319 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static bool wlc_lcnphy_rx_iq_cal_gain(struct brcms_phy *pi, u16 biq1_gain, pi 1326 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_rx_gain_by_distribution(pi, 0, 0, 0, biq1_gain, tia_gain, pi 1329 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_rx_gain_override_enable(pi, true); pi 1330 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_start_tx_tone(pi, 2000, (40 >> 1), 0); pi 1332 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG112, 0); pi 1333 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (!wlc_lcnphy_rx_iq_est(pi, 1024, 32, &iq_est_l)) pi 1336 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_start_tx_tone(pi, 2000, 40, 0); pi 1338 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG112, 0); pi 1339 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (!wlc_lcnphy_rx_iq_est(pi, 1024, 32, &iq_est_h)) pi 1357 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_rx_iq_cal(struct brcms_phy *pi, pi 1375 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 1383 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c CHSPEC_CHANNEL(pi->radio_chanspec)) { pi 1384 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_rx_iq_comp(pi, pi 1397 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c tx_pwr_ctrl = wlc_lcnphy_get_tx_pwr_ctrl(pi); pi 1398 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_ctrl(pi, LCNPHY_TX_PWR_CTRL_OFF); pi 1402 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c read_radio_reg(pi, rxiq_cal_rf_reg[i]); pi 1403 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c Core1TxControl_old = read_phy_reg(pi, 0x631); pi 1405 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_phy_reg(pi, 0x631, 0x0015); pi 1407 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c RFOverride0_old = read_phy_reg(pi, 0x44c); pi 1408 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c RFOverrideVal0_old = read_phy_reg(pi, 0x44d); pi 1409 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c rfoverride2_old = read_phy_reg(pi, 0x4b0); pi 1410 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c rfoverride2val_old = read_phy_reg(pi, 0x4b1); pi 1411 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c rfoverride3_old = read_phy_reg(pi, 0x4f9); pi 1412 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c rfoverride3val_old = read_phy_reg(pi, 0x4fa); pi 1413 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c rfoverride4_old = read_phy_reg(pi, 0x938); pi 1414 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c rfoverride4val_old = read_phy_reg(pi, 0x939); pi 1415 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c afectrlovr_old = read_phy_reg(pi, 0x43b); pi 1416 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c afectrlovrval_old = read_phy_reg(pi, 0x43c); pi 1417 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c old_sslpnCalibClkEnCtrl = read_phy_reg(pi, 0x6da); pi 1418 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c old_sslpnRxFeClkEnCtrl = read_phy_reg(pi, 0x6db); pi 1420 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c tx_gain_override_old = wlc_lcnphy_tx_gain_override_enabled(pi); pi 1422 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_get_tx_gain(pi, &old_gains); pi 1426 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_by_index(pi, tx_gain_idx); pi 1428 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4f9, (0x1 << 0), 1 << 0); pi 1429 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4fa, (0x1 << 0), 0 << 0); pi 1431 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x43b, (0x1 << 1), 1 << 1); pi 1432 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x43c, (0x1 << 1), 0 << 1); pi 1434 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG116, 0x06); pi 1435 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG12C, 0x07); pi 1436 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG06A, 0xd3); pi 1437 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG098, 0x03); pi 1438 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG00B, 0x7); pi 1439 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG113, 1 << 4, 1 << 4); pi 1440 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG01D, 0x01); pi 1441 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG114, 0x01); pi 1442 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG02E, 0x10); pi 1443 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG12A, 0x08); pi 1445 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x938, (0x1 << 0), 1 << 0); pi 1446 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x939, (0x1 << 0), 0 << 0); pi 1447 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x938, (0x1 << 1), 1 << 1); pi 1448 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x939, (0x1 << 1), 1 << 1); pi 1449 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x938, (0x1 << 2), 1 << 2); pi 1450 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x939, (0x1 << 2), 1 << 2); pi 1451 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x938, (0x1 << 3), 1 << 3); pi 1452 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x939, (0x1 << 3), 1 << 3); pi 1453 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x938, (0x1 << 5), 1 << 5); pi 1454 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x939, (0x1 << 5), 0 << 5); pi 1456 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x43b, (0x1 << 0), 1 << 0); pi 1457 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x43c, (0x1 << 0), 0 << 0); pi 1459 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x6da, 0xffff); pi 1460 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_phy_reg(pi, 0x6db, 0x3); pi 1462 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_trsw_override(pi, tx_switch, rx_switch); pi 1466 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c set_gain = wlc_lcnphy_rx_iq_cal_gain(pi, pi 1476 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c result = wlc_lcnphy_calc_rx_iq_comp(pi, 1024); pi 1483 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_stop_tx_tone(pi); pi 1485 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x631, Core1TxControl_old); pi 1487 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x44c, RFOverrideVal0_old); pi 1488 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x44d, RFOverrideVal0_old); pi 1489 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x4b0, rfoverride2_old); pi 1490 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x4b1, rfoverride2val_old); pi 1491 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x4f9, rfoverride3_old); pi 1492 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x4fa, rfoverride3val_old); pi 1493 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x938, rfoverride4_old); pi 1494 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x939, rfoverride4val_old); pi 1495 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x43b, afectrlovr_old); pi 1496 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x43c, afectrlovrval_old); pi 1497 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x6da, old_sslpnCalibClkEnCtrl); pi 1498 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x6db, old_sslpnRxFeClkEnCtrl); pi 1500 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_clear_trsw_override(pi); pi 1502 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44c, (0x1 << 2), 0 << 2); pi 1505 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, rxiq_cal_rf_reg[i], pi 1509 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_by_index(pi, tx_gain_index_old); pi 1511 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_disable_tx_gain_override(pi); pi 1513 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_ctrl(pi, tx_pwr_ctrl); pi 1514 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_rx_gain_override_enable(pi, false); pi 1521 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c s8 wlc_lcnphy_get_current_tx_pwr_idx(struct brcms_phy *pi) pi 1524 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 1526 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (txpwrctrl_off(pi)) pi 1528 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c else if (wlc_lcnphy_tssi_based_pwr_ctrl_enabled(pi)) pi 1530 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi) / 2); pi 1536 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c void wlc_lcnphy_crsuprs(struct brcms_phy *pi, int channel) pi 1539 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c afectrlovr = read_phy_reg(pi, 0x43b); pi 1540 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c afectrlovrval = read_phy_reg(pi, 0x43c); pi 1542 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x43b, (0x1 << 1), (1) << 1); pi 1544 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x43c, (0x1 << 1), (0) << 1); pi 1546 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x43b, (0x1 << 4), (1) << 4); pi 1548 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x43c, (0x1 << 6), (0) << 6); pi 1550 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x44b, 0xffff); pi 1551 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_tx_pu(pi, 1); pi 1553 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x634, (0xff << 8), (0) << 8); pi 1555 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_phy_reg(pi, 0x6da, 0x0080); pi 1557 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_phy_reg(pi, 0x00a, 0x228); pi 1559 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c and_phy_reg(pi, 0x00a, ~(0x228)); pi 1561 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c and_phy_reg(pi, 0x6da, 0xFF7F); pi 1562 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x43b, afectrlovr); pi 1563 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x43c, afectrlovrval); pi 1567 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_toggle_afe_pwdn(struct brcms_phy *pi) pi 1571 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c save_AfeCtrlOvrVal = read_phy_reg(pi, 0x43c); pi 1572 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c save_AfeCtrlOvr = read_phy_reg(pi, 0x43b); pi 1574 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x43c, save_AfeCtrlOvrVal | 0x1); pi 1575 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x43b, save_AfeCtrlOvr | 0x1); pi 1577 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x43c, save_AfeCtrlOvrVal & 0xfffe); pi 1578 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x43b, save_AfeCtrlOvr & 0xfffe); pi 1580 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x43c, save_AfeCtrlOvrVal); pi 1581 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x43b, save_AfeCtrlOvr); pi 1585 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_txrx_spur_avoidance_mode(struct brcms_phy *pi, bool enable) pi 1588 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x942, 0x7); pi 1589 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x93b, ((1 << 13) + 23)); pi 1590 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x93c, ((1 << 13) + 1989)); pi 1592 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x44a, 0x084); pi 1593 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x44a, 0x080); pi 1594 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x6d3, 0x2222); pi 1595 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x6d3, 0x2220); pi 1597 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x942, 0x0); pi 1598 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x93b, ((0 << 13) + 23)); pi 1599 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x93c, ((0 << 13) + 1989)); pi 1601 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlapi_switch_macfreq(pi->sh->physhim, enable); pi 1605 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_chanspec_tweaks(struct brcms_phy *pi, u16 chanspec) pi 1608 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 1611 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x448, (0x3 << 8), (2) << 8); pi 1613 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x448, (0x3 << 8), (1) << 8); pi 1622 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_chipco_pll_write(&pi->d11core->bus->drv_cc, 0x2, pi 1624 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_chipco_pll_maskset(&pi->d11core->bus->drv_cc, 0x3, pi 1626 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_chipco_pll_write(&pi->d11core->bus->drv_cc, 0x4, pi 1629 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_cc_set32(&pi->d11core->bus->drv_cc, BCMA_CC_PMU_CTL, pi 1631 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x942, 0); pi 1632 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_txrx_spur_avoidance_mode(pi, false); pi 1634 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x424, (0xff << 8), (0x1b) << 8); pi 1636 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x425, 0x5907); pi 1638 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_chipco_pll_write(&pi->d11core->bus->drv_cc, 0x2, pi 1640 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_chipco_pll_maskset(&pi->d11core->bus->drv_cc, 0x3, pi 1642 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_chipco_pll_write(&pi->d11core->bus->drv_cc, 0x4, pi 1645 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_cc_set32(&pi->d11core->bus->drv_cc, BCMA_CC_PMU_CTL, pi 1647 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x942, 0); pi 1648 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_txrx_spur_avoidance_mode(pi, true); pi 1651 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x424, (0xff << 8), (0x1f) << 8); pi 1653 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x425, 0x590a); pi 1656 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_phy_reg(pi, 0x44a, 0x44); pi 1657 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x44a, 0x80); pi 1661 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_radio_2064_channel_tune_4313(struct brcms_phy *pi, u8 channel) pi 1678 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG09D, 0x4, 0x1 << 2); pi 1680 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG09E, 0xf); pi 1689 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 1700 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG02A, ci->logen_buftune); pi 1702 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG030, 0x3, ci->logen_rccr_tx); pi 1704 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG091, 0x3, ci->txrf_mix_tune_ctrl); pi 1706 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG038, 0xf, ci->pa_input_tune_g); pi 1708 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG030, 0x3 << 2, pi 1711 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG05E, 0xf, ci->pa_rxrf_lna1_freq_tune); pi 1713 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG05E, (0xf) << 4, pi 1716 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG06C, ci->rxrf_rxrf_spare1); pi 1718 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pll_pwrup = (u8) read_radio_reg(pi, RADIO_2064_REG044); pi 1719 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pll_pwrup_ovr = (u8) read_radio_reg(pi, RADIO_2064_REG12B); pi 1721 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_radio_reg(pi, RADIO_2064_REG044, 0x07); pi 1723 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_radio_reg(pi, RADIO_2064_REG12B, (0x07) << 1); pi 1727 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c fpfd = rfpll_doubler ? (pi->xtalfreq << 1) : (pi->xtalfreq); pi 1728 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (pi->xtalfreq > 26000000) pi 1730 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (pi->xtalfreq > 52000000) pi 1741 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c qFxtal = wlc_lcnphy_qdiv_roundup(pi->xtalfreq, PLL_2064_MHZ, 16); pi 1743 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c qFcal = pi->xtalfreq * fcal_div / PLL_2064_MHZ; pi 1746 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG04F, 0x02); pi 1748 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c d15 = (pi->xtalfreq * fcal_div * 4 / 5) / PLL_2064_MHZ - 1; pi 1749 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG052, (0x07 & (d15 >> 2))); pi 1750 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG053, (d15 & 0x3) << 5); pi 1753 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG051, d16); pi 1757 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG053, (0x0f << 0), pi 1760 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_radio_reg(pi, RADIO_2064_REG053, 0x10); pi 1761 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG054, (u8) (setCount & 0xff)); pi 1772 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG045, (0x1f << 0), pi 1774 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG046, (0x1f << 4), pi 1776 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG046, (0x0f << 0), pi 1778 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG047, (u8) (div_frac >> 8) & 0xff); pi 1779 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG048, (u8) div_frac & 0xff); pi 1781 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG040, 0xfb); pi 1783 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG041, 0x9A); pi 1784 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG042, 0xA3); pi 1785 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG043, 0x0C); pi 1797 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG03C, 0x3f, cp_current); pi 1800 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG03C, 0x8); pi 1802 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG03C, 0x7); pi 1803 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG03D, 0x3); pi 1805 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG044, 0x0c, 0x0c); pi 1808 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_2064_vco_cal(pi); pi 1810 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG044, pll_pwrup); pi 1811 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG12B, pll_pwrup_ovr); pi 1812 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (LCNREV_IS(pi->pubpi.phy_rev, 1)) { pi 1813 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG038, 3); pi 1814 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG091, 7); pi 1817 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (!(pi->sh->boardflags & BFL_FEM)) { pi 1823 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG02A, 0xf); pi 1824 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG091, 0x3); pi 1825 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG038, 0x3); pi 1827 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG038, reg038[channel - 1]); pi 1832 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_load_tx_iir_filter(struct brcms_phy *pi, bool is_ofdm, s16 filt_type) pi 1885 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, addr[j], pi 1899 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, addr_ofdm[j], pi 1908 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static u16 wlc_lcnphy_get_pa_gain(struct brcms_phy *pi) pi 1912 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pa_gain = (read_phy_reg(pi, 0x4fb) & pi 1919 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_set_tx_gain(struct brcms_phy *pi, pi 1922 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c u16 pa_gain = wlc_lcnphy_get_pa_gain(pi); pi 1925 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi, 0x4b5, pi 1930 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4fb, pi 1935 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi, 0x4fc, pi 1940 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4fd, pi 1944 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_dac_gain(pi, target_gains->dac_gain); pi 1946 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_enable_tx_gain_override(pi); pi 1949 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static u8 wlc_lcnphy_get_bbmult(struct brcms_phy *pi) pi 1959 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_read_table(pi, &tab); pi 1964 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_set_bbmult(struct brcms_phy *pi, u8 m0) pi 1974 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &tab); pi 1977 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_clear_tx_power_offsets(struct brcms_phy *pi) pi 1988 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (!wlc_lcnphy_tempsense_based_pwr_ctrl_enabled(pi)) { pi 1992 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &tab); pi 1997 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &tab); pi 2007 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tssi_mux(struct brcms_phy *pi, enum lcnphy_tssi_mode pos) pi 2009 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d7, (0x1 << 0), (0x1) << 0); pi 2011 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d7, (0x1 << 6), (1) << 6); pi 2014 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d9, (0x1 << 2), (0) << 2); pi 2016 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d9, (0x1 << 3), (1) << 3); pi 2018 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (LCNREV_IS(pi->pubpi.phy_rev, 2)) { pi 2019 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG086, 0x4, 0x4); pi 2021 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG03A, 1, 0x1); pi 2022 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG11A, 0x8, 0x8); pi 2023 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG028, 0x1, 0x0); pi 2024 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG11A, 0x4, 1<<2); pi 2025 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG036, 0x10, 0x0); pi 2026 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG11A, 0x10, 1<<4); pi 2027 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG036, 0x3, 0x0); pi 2028 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG035, 0xff, 0x77); pi 2029 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG028, 0x1e, 0xe<<1); pi 2030 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG112, 0x80, 1<<7); pi 2031 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG005, 0x7, 1<<1); pi 2032 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG029, 0xf0, 0<<4); pi 2035 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d9, (0x1 << 2), (0x1) << 2); pi 2037 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d9, (0x1 << 3), (0) << 3); pi 2039 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (LCNREV_IS(pi->pubpi.phy_rev, 2)) { pi 2040 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG086, 0x4, 0x4); pi 2042 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG03A, 1, 0); pi 2043 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG11A, 0x8, 0x8); pi 2046 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x637, (0x3 << 14), (0) << 14); pi 2049 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG07F, 1); pi 2050 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG005, 0x7, 0x2); pi 2051 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG112, 0x80, 0x1 << 7); pi 2052 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG028, 0x1f, 0x3); pi 2056 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static u16 wlc_lcnphy_rfseq_tbl_adc_pwrup(struct brcms_phy *pi) pi 2059 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c N1 = ((read_phy_reg(pi, 0x4a5) & (0xff << 0)) pi 2061 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c N2 = 1 << ((read_phy_reg(pi, 0x4a5) & (0x7 << 12)) pi 2063 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c N3 = ((read_phy_reg(pi, 0x40d) & (0xff << 0)) pi 2065 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c N4 = 1 << ((read_phy_reg(pi, 0x40d) & (0x7 << 8)) pi 2067 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c N5 = ((read_phy_reg(pi, 0x4a2) & (0xff << 0)) pi 2069 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c N6 = 1 << ((read_phy_reg(pi, 0x4a2) & (0x7 << 8)) pi 2077 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_pwrctrl_rssiparams(struct brcms_phy *pi) pi 2080 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 2087 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d8, (0x1 << 0), (0) << 0); pi 2089 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d8, (0x1 << 1), (0) << 1); pi 2091 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d7, (0x1 << 3), (0) << 3); pi 2093 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4db, pi 2098 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4dc, pi 2103 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x40a, pi 2108 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x40b, pi 2113 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x40c, pi 2118 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG082, (1 << 5), (1 << 5)); pi 2119 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG07C, (1 << 0), (1 << 0)); pi 2122 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_tssi_setup(struct brcms_phy *pi) pi 2129 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (pi->sh->boardflags & BFL_FEM) { pi 2142 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &tab); pi 2147 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &tab); pi 2150 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x503, (0x1 << 0), (0) << 0); pi 2152 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x503, (0x1 << 2), (0) << 2); pi 2154 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x503, (0x1 << 4), (1) << 4); pi 2156 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tssi_mux(pi, mode); pi 2157 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a4, (0x1 << 14), (0) << 14); pi 2159 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a4, (0x1 << 15), (1) << 15); pi 2161 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d0, (0x1 << 5), (0) << 5); pi 2163 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a4, (0x1ff << 0), (0) << 0); pi 2165 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a5, (0xff << 0), (255) << 0); pi 2167 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a5, (0x7 << 12), (5) << 12); pi 2169 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a5, (0x7 << 8), (0) << 8); pi 2171 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x40d, (0xff << 0), (64) << 0); pi 2173 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x40d, (0x7 << 8), (4) << 8); pi 2175 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a2, (0xff << 0), (64) << 0); pi 2177 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a2, (0x7 << 8), (4) << 8); pi 2179 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d0, (0x1ff << 6), (0) << 6); pi 2181 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a8, (0xff << 0), (0x1) << 0); pi 2183 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_clear_tx_power_offsets(pi); pi 2185 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a6, (0x1 << 15), (1) << 15); pi 2187 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a6, (0x1ff << 0), (0xff) << 0); pi 2189 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x49a, (0x1ff << 0), (0xff) << 0); pi 2191 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (LCNREV_IS(pi->pubpi.phy_rev, 2)) { pi 2192 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG028, 0xf, tssi_sel); pi 2193 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG086, 0x4, 0x4); pi 2195 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG028, 0x1e, tssi_sel << 1); pi 2196 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG03A, 0x1, 1); pi 2197 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG11A, 0x8, 1 << 3); pi 2200 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG025, 0xc); pi 2202 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (LCNREV_IS(pi->pubpi.phy_rev, 2)) { pi 2203 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG03A, 0x1, 1); pi 2205 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (CHSPEC_IS2G(pi->radio_chanspec)) pi 2206 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG03A, 0x2, 1 << 1); pi 2208 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG03A, 0x2, 0 << 1); pi 2211 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (LCNREV_IS(pi->pubpi.phy_rev, 2)) pi 2212 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG03A, 0x2, 1 << 1); pi 2214 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG03A, 0x4, 1 << 2); pi 2216 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG11A, 0x1, 1 << 0); pi 2218 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG005, 0x8, 1 << 3); pi 2220 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (!wlc_lcnphy_tempsense_based_pwr_ctrl_enabled(pi)) pi 2221 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d7, pi 2224 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c rfseq = wlc_lcnphy_rfseq_tbl_adc_pwrup(pi); pi 2230 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &tab); pi 2232 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x938, (0x1 << 2), (1) << 2); pi 2234 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x939, (0x1 << 2), (1) << 2); pi 2236 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a4, (0x1 << 12), (1) << 12); pi 2238 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d7, (0x1 << 2), (1) << 2); pi 2240 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d7, (0xf << 8), (0) << 8); pi 2242 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG035, 0xff, 0x0); pi 2243 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG036, 0x3, 0x0); pi 2244 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG11A, 0x8, 0x8); pi 2246 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_pwrctrl_rssiparams(pi); pi 2249 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c void wlc_lcnphy_tx_pwr_update_npt(struct brcms_phy *pi) pi 2252 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 2254 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c tx_total = wlc_lcnphy_total_tx_frames(pi); pi 2256 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c npt = wlc_lcnphy_get_tx_pwr_npt(pi); pi 2262 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi_lcn->lcnphy_tssi_idx = wlc_lcnphy_get_current_tx_pwr_idx(pi); pi 2279 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_txpower_reset_npt(struct brcms_phy *pi) pi 2281 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 2282 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (wlc_lcnphy_tempsense_based_pwr_ctrl_enabled(pi)) pi 2289 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c void wlc_lcnphy_txpower_recalc_target(struct brcms_phy *pi) pi 2295 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (wlc_lcnphy_tempsense_based_pwr_ctrl_enabled(pi)) pi 2303 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c rate_table[i] = (u32) ((s32) (-pi->tx_power_offset[j])); pi 2311 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &tab); pi 2313 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (wlc_lcnphy_get_target_tx_pwr(pi) != pi->tx_power_min) { pi 2314 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_target_tx_pwr(pi, pi->tx_power_min); pi 2316 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_txpower_reset_npt(pi); pi 2320 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_set_tx_pwr_soft_ctrl(struct brcms_phy *pi, s8 index) pi 2328 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (wlc_lcnphy_tssi_based_pwr_ctrl_enabled(pi)) pi 2331 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a4, (0x1 << 14), (0x1) << 14); pi 2333 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a4, (0x1 << 14), (0x0) << 14); pi 2335 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_phy_reg(pi, 0x6da, 0x0040); pi 2345 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &tab); pi 2351 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &tab); pi 2354 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a4, (0x1 << 15), (0x1) << 15); pi 2356 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a4, (0x1 << 14), (0x1) << 14); pi 2358 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a4, (0x1 << 13), (0x1) << 13); pi 2360 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4b0, (0x1 << 7), (0) << 7); pi 2362 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x43b, (0x1 << 6), (0) << 6); pi 2364 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a9, (0x1 << 15), (1) << 15); pi 2367 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a9, (0x1ff << 0), (index2) << 0); pi 2369 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x6a3, (0x1 << 4), (0) << 4); pi 2373 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static s8 wlc_lcnphy_tempcompensated_txpwrctrl(struct brcms_phy *pi) pi 2379 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 2381 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (wlc_lcnphy_tssi_based_pwr_ctrl_enabled(pi)) pi 2389 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c temp = (u16) wlc_lcnphy_tempsense(pi, 0); pi 2392 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (pi->tx_power_min != 0) pi 2393 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c delta_brd = (pi_lcn->lcnphy_measPower - pi->tx_power_min); pi 2412 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c && LCNREV_IS(pi->pubpi.phy_rev, 0)) pi 2418 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (LCNREV_IS(pi->pubpi.phy_rev, 1)) pi 2424 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (LCNREV_IS(pi->pubpi.phy_rev, 1)) pi 2433 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static u16 wlc_lcnphy_set_tx_pwr_ctrl_mode(struct brcms_phy *pi, u16 mode) pi 2437 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (wlc_lcnphy_tempsense_based_pwr_ctrl_enabled(pi) && pi 2440 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (wlc_lcnphy_tssi_based_pwr_ctrl_enabled(pi) && pi 2446 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c void wlc_lcnphy_set_tx_pwr_ctrl(struct brcms_phy *pi, u16 mode) pi 2448 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c u16 old_mode = wlc_lcnphy_get_tx_pwr_ctrl(pi); pi 2450 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 2452 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mode = wlc_lcnphy_set_tx_pwr_ctrl_mode(pi, mode); pi 2453 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c old_mode = wlc_lcnphy_set_tx_pwr_ctrl_mode(pi, old_mode); pi 2455 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x6da, (0x1 << 6), pi 2458 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x6a3, (0x1 << 4), pi 2464 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_tx_pwr_update_npt(pi); pi 2466 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_clear_tx_power_offsets(pi); pi 2470 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_txpower_recalc_target(pi); pi 2472 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_start_tx_pwr_idx(pi, pi 2475 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_npt(pi, pi_lcn->lcnphy_tssi_npt); pi 2476 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG11F, 0x4, 0); pi 2479 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_total_tx_frames(pi); pi 2481 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_disable_tx_gain_override(pi); pi 2484 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_enable_tx_gain_override(pi); pi 2486 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a4, pi 2489 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c index = wlc_lcnphy_tempcompensated_txpwrctrl(pi); pi 2490 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_soft_ctrl(pi, index); pi 2492 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c ((read_phy_reg(pi, pi 2500 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_tx_iqlo_loopback(struct brcms_phy *pi, u16 *values_to_save) pi 2506 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c read_radio_reg(pi, iqlo_loopback_rf_regs[i]); pi 2508 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44c, (0x1 << 12), 1 << 12); pi 2509 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44d, (0x1 << 14), 1 << 14); pi 2511 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44c, (0x1 << 11), 1 << 11); pi 2512 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44d, (0x1 << 13), 0 << 13); pi 2514 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x43b, (0x1 << 1), 1 << 1); pi 2515 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x43c, (0x1 << 1), 0 << 1); pi 2517 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x43b, (0x1 << 0), 1 << 0); pi 2518 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x43c, (0x1 << 0), 0 << 0); pi 2520 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (LCNREV_IS(pi->pubpi.phy_rev, 2)) pi 2521 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c and_radio_reg(pi, RADIO_2064_REG03A, 0xFD); pi 2523 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c and_radio_reg(pi, RADIO_2064_REG03A, 0xF9); pi 2524 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_radio_reg(pi, RADIO_2064_REG11A, 0x1); pi 2526 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_radio_reg(pi, RADIO_2064_REG036, 0x01); pi 2527 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_radio_reg(pi, RADIO_2064_REG11A, 0x18); pi 2530 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (LCNREV_IS(pi->pubpi.phy_rev, 2)) { pi 2531 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (CHSPEC_IS5G(pi->radio_chanspec)) pi 2532 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG03A, 1, 0); pi 2534 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_radio_reg(pi, RADIO_2064_REG03A, 1); pi 2536 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (CHSPEC_IS5G(pi->radio_chanspec)) pi 2537 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG03A, 3, 1); pi 2539 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_radio_reg(pi, RADIO_2064_REG03A, 0x3); pi 2544 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG025, 0xF); pi 2545 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (LCNREV_IS(pi->pubpi.phy_rev, 2)) { pi 2546 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (CHSPEC_IS5G(pi->radio_chanspec)) pi 2547 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG028, 0xF, 0x4); pi 2549 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG028, 0xF, 0x6); pi 2551 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (CHSPEC_IS5G(pi->radio_chanspec)) pi 2552 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG028, 0x1e, 0x4 << 1); pi 2554 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG028, 0x1e, 0x6 << 1); pi 2559 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG005, 0x8); pi 2560 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_radio_reg(pi, RADIO_2064_REG112, 0x80); pi 2563 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_radio_reg(pi, RADIO_2064_REG0FF, 0x10); pi 2564 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_radio_reg(pi, RADIO_2064_REG11F, 0x44); pi 2567 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_radio_reg(pi, RADIO_2064_REG00B, 0x7); pi 2568 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_radio_reg(pi, RADIO_2064_REG113, 0x10); pi 2571 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG007, 0x1); pi 2575 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG0FC, 0x3 << 0, (vmid >> 8) & 0x3); pi 2576 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG0FD, (vmid & 0xff)); pi 2577 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_radio_reg(pi, RADIO_2064_REG11F, 0x44); pi 2580 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_radio_reg(pi, RADIO_2064_REG0FF, 0x10); pi 2582 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG012, 0x02); pi 2583 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_radio_reg(pi, RADIO_2064_REG112, 0x06); pi 2584 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG036, 0x11); pi 2585 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG059, 0xcc); pi 2586 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG05C, 0x2e); pi 2587 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG078, 0xd7); pi 2588 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG092, 0x15); pi 2591 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static bool wlc_lcnphy_iqcal_wait(struct brcms_phy *pi) pi 2595 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c while (wlc_lcnphy_iqcal_active(pi)) { pi 2603 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c return (0 == wlc_lcnphy_iqcal_active(pi)); pi 2607 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_tx_iqlo_loopback_cleanup(struct brcms_phy *pi, u16 *values_to_save) pi 2611 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c and_phy_reg(pi, 0x44c, 0x0 >> 11); pi 2613 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c and_phy_reg(pi, 0x43b, 0xC); pi 2616 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, iqlo_loopback_rf_regs[i], pi 2621 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_tx_iqlo_cal(struct brcms_phy *pi, pi 2658 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 2664 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c save_sslpnRxFeClkEnCtrl = read_phy_reg(pi, 0x6db); pi 2665 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c save_sslpnCalibClkEnCtrl = read_phy_reg(pi, 0x6da); pi 2667 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_phy_reg(pi, 0x6da, 0x40); pi 2668 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_phy_reg(pi, 0x6db, 0x3); pi 2688 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_common_write_table(pi, LCNPHY_TBL_ID_IQLOCAL, pi 2691 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x6da, 0xffff); pi 2692 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x503, (0x1 << 3), (1) << 3); pi 2694 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c tx_pwr_ctrl_old = wlc_lcnphy_get_tx_pwr_ctrl(pi); pi 2696 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a4, (0x1 << 12), (1) << 12); pi 2698 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_ctrl(pi, LCNPHY_TX_PWR_CTRL_OFF); pi 2700 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c save_txpwrctrlrfctrl2 = read_phy_reg(pi, 0x4db); pi 2702 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4db, (0x3ff << 0), (0x2a6) << 0); pi 2704 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4db, (0x7 << 12), (2) << 12); pi 2706 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_tx_iqlo_loopback(pi, values_to_save); pi 2708 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c tx_gain_override_old = wlc_lcnphy_tx_gain_override_enabled(pi); pi 2710 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_get_tx_gain(pi, &old_gains); pi 2714 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_by_index(pi, pi 2716 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_get_tx_gain(pi, &temp_gains); pi 2723 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c band_idx = (CHSPEC_IS5G(pi->radio_chanspec) ? 1 : 0); pi 2742 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_gain(pi, &cal_gains); pi 2744 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x453, 0xaa9); pi 2745 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x93d, 0xc0); pi 2747 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_common_write_table(pi, LCNPHY_TBL_ID_IQLOCAL, pi 2752 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_common_write_table(pi, LCNPHY_TBL_ID_IQLOCAL, pi 2758 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (pi->phy_tx_tone_freq) { pi 2760 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_stop_tx_tone(pi); pi 2762 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_start_tx_tone(pi, 3750, 88, 1); pi 2764 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_start_tx_tone(pi, 3750, 88, 1); pi 2767 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x6da, 0xffff); pi 2782 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x452, command_num); pi 2785 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_common_read_table(pi, LCNPHY_TBL_ID_IQLOCAL, pi 2788 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_common_write_table(pi, LCNPHY_TBL_ID_IQLOCAL, pi 2792 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x451, cal_cmds[i]); pi 2794 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (!wlc_lcnphy_iqcal_wait(pi)) pi 2797 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_common_read_table(pi, LCNPHY_TBL_ID_IQLOCAL, pi 2800 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_common_write_table(pi, LCNPHY_TBL_ID_IQLOCAL, pi 2805 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_common_write_table(pi, LCNPHY_TBL_ID_IQLOCAL, pi 2807 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_common_read_table(pi, LCNPHY_TBL_ID_IQLOCAL, pi 2816 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_common_read_table(pi, LCNPHY_TBL_ID_IQLOCAL, pi 2823 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_common_write_table(pi, LCNPHY_TBL_ID_IQLOCAL, pi 2827 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_common_write_table(pi, LCNPHY_TBL_ID_IQLOCAL, pi 2832 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_tx_iqlo_loopback_cleanup(pi, values_to_save); pi 2836 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_stop_tx_tone(pi); pi 2838 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x4db, save_txpwrctrlrfctrl2); pi 2840 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x453, 0); pi 2843 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_gain(pi, &old_gains); pi 2844 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_ctrl(pi, tx_pwr_ctrl_old); pi 2846 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x6da, save_sslpnCalibClkEnCtrl); pi 2847 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x6db, save_sslpnRxFeClkEnCtrl); pi 2855 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 2858 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c u16 SAVE_txpwrctrl = wlc_lcnphy_get_tx_pwr_ctrl(pi); pi 2859 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c u16 SAVE_lpfgain = read_radio_reg(pi, RADIO_2064_REG112); pi 2861 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c read_radio_reg(pi, RADIO_2064_REG007) & 1; pi 2862 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c u16 SAVE_jtag_auxpga = read_radio_reg(pi, RADIO_2064_REG0FF) & 0x10; pi 2863 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c u16 SAVE_iqadc_aux_en = read_radio_reg(pi, RADIO_2064_REG11F) & 4; pi 2864 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c u8 SAVE_bbmult = wlc_lcnphy_get_bbmult(pi); pi 2866 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c idleTssi = read_phy_reg(pi, 0x4ab); pi 2867 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c suspend = (0 == (bcma_read32(pi->d11core, D11REGOFFS(maccontrol)) & pi 2870 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlapi_suspend_mac_and_wait(pi->sh->physhim); pi 2871 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_ctrl(pi, LCNPHY_TX_PWR_CTRL_OFF); pi 2873 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c tx_gain_override_old = wlc_lcnphy_tx_gain_override_enabled(pi); pi 2874 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_get_tx_gain(pi, &old_gains); pi 2876 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_enable_tx_gain_override(pi); pi 2877 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_by_index(pi, 127); pi 2878 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG112, 0x6); pi 2879 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG007, 0x1, 1); pi 2880 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG0FF, 0x10, 1 << 4); pi 2881 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG11F, 0x4, 1 << 2); pi 2882 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_tssi_setup(pi); pi 2884 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d7, (0x1 << 0), (1 << 0)); pi 2885 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d7, (0x1 << 6), (1 << 6)); pi 2887 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_bbmult(pi, 0x0); pi 2889 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_phy_do_dummy_tx(pi, true, OFF); pi 2890 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c idleTssi = ((read_phy_reg(pi, 0x4ab) & (0x1ff << 0)) pi 2893 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c idleTssi0_2C = ((read_phy_reg(pi, 0x63e) & (0x1ff << 0)) pi 2906 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a6, (0x1ff << 0), (idleTssi0_regvalue_2C) << 0); pi 2908 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44c, (0x1 << 12), (0) << 12); pi 2910 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_bbmult(pi, SAVE_bbmult); pi 2911 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_gain_override(pi, tx_gain_override_old); pi 2912 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_gain(pi, &old_gains); pi 2913 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_ctrl(pi, SAVE_txpwrctrl); pi 2915 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG112, SAVE_lpfgain); pi 2916 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG007, 0x1, SAVE_jtag_bb_afe_switch); pi 2917 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG0FF, 0x10, SAVE_jtag_auxpga); pi 2918 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG11F, 0x4, SAVE_iqadc_aux_en); pi 2919 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG112, 0x80, 1 << 7); pi 2921 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlapi_enable_mac(pi->sh->physhim); pi 2924 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_vbat_temp_sense_setup(struct brcms_phy *pi, u8 mode) pi 2937 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 2940 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c save_reg007 = (u8) read_radio_reg(pi, RADIO_2064_REG007); pi 2941 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c save_reg0FF = (u8) read_radio_reg(pi, RADIO_2064_REG0FF); pi 2942 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c save_reg11F = (u8) read_radio_reg(pi, RADIO_2064_REG11F); pi 2943 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c save_reg005 = (u8) read_radio_reg(pi, RADIO_2064_REG005); pi 2944 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c save_reg025 = (u8) read_radio_reg(pi, RADIO_2064_REG025); pi 2945 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c save_reg112 = (u8) read_radio_reg(pi, RADIO_2064_REG112); pi 2948 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c values_to_save[i] = read_phy_reg(pi, tempsense_phy_regs[i]); pi 2949 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c suspend = (0 == (bcma_read32(pi->d11core, D11REGOFFS(maccontrol)) & pi 2952 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlapi_suspend_mac_and_wait(pi->sh->physhim); pi 2953 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c save_txpwrCtrlEn = read_radio_reg(pi, 0x4a4); pi 2955 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_ctrl(pi, LCNPHY_TX_PWR_CTRL_OFF); pi 2957 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_by_index(pi, 127); pi 2958 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG007, 0x1, 0x1); pi 2959 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG0FF, 0x10, 0x1 << 4); pi 2960 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG11F, 0x4, 0x1 << 2); pi 2961 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x503, (0x1 << 0), (0) << 0); pi 2963 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x503, (0x1 << 2), (0) << 2); pi 2965 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a4, (0x1 << 14), (0) << 14); pi 2967 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a4, (0x1 << 15), (0) << 15); pi 2969 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d0, (0x1 << 5), (0) << 5); pi 2971 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a5, (0xff << 0), (255) << 0); pi 2973 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a5, (0x7 << 12), (5) << 12); pi 2975 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a5, (0x7 << 8), (0) << 8); pi 2977 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x40d, (0xff << 0), (64) << 0); pi 2979 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x40d, (0x7 << 8), (6) << 8); pi 2981 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a2, (0xff << 0), (64) << 0); pi 2983 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a2, (0x7 << 8), (6) << 8); pi 2985 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d9, (0x7 << 4), (2) << 4); pi 2987 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d9, (0x7 << 8), (3) << 8); pi 2989 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d9, (0x7 << 12), (1) << 12); pi 2991 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4da, (0x1 << 12), (0) << 12); pi 2993 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4da, (0x1 << 13), (1) << 13); pi 2995 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a6, (0x1 << 15), (1) << 15); pi 2997 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG025, 0xC); pi 2999 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG005, 0x8, 0x1 << 3); pi 3001 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x938, (0x1 << 2), (1) << 2); pi 3003 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x939, (0x1 << 2), (1) << 2); pi 3005 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a4, (0x1 << 12), (1) << 12); pi 3007 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c val = wlc_lcnphy_rfseq_tbl_adc_pwrup(pi); pi 3013 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &tab); pi 3015 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d7, (0x1 << 3), (1) << 3); pi 3017 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d7, (0x7 << 12), (1) << 12); pi 3022 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG082, 0x20, 1 << 5); pi 3024 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d7, (0x1 << 3), (1) << 3); pi 3026 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d7, (0x7 << 12), (3) << 12); pi 3034 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d8, (0x1 << 0), (1) << 0); pi 3036 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d8, (0x3ff << 2), (auxpga_vmid) << 2); pi 3038 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d8, (0x1 << 1), (1) << 1); pi 3040 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d8, (0x7 << 12), (auxpga_gain) << 12); pi 3042 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d0, (0x1 << 5), (1) << 5); pi 3044 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG112, 0x6); pi 3046 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_phy_do_dummy_tx(pi, true, OFF); pi 3047 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (!tempsense_done(pi)) pi 3050 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG007, (u16) save_reg007); pi 3051 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG0FF, (u16) save_reg0FF); pi 3052 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG11F, (u16) save_reg11F); pi 3053 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG005, (u16) save_reg005); pi 3054 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG025, (u16) save_reg025); pi 3055 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG112, (u16) save_reg112); pi 3057 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, tempsense_phy_regs[i], values_to_save[i]); pi 3058 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_by_index(pi, (int)index); pi 3060 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, 0x4a4, save_txpwrCtrlEn); pi 3062 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlapi_enable_mac(pi->sh->physhim); pi 3074 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 3076 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c suspend = (0 == (bcma_read32(pi->d11core, D11REGOFFS(maccontrol)) & pi 3079 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlapi_suspend_mac_and_wait(pi->sh->physhim); pi 3081 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (!pi->hwpwrctrl_capable) { pi 3082 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 3097 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_gain(pi, &tx_gains); pi 3098 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_bbmult(pi, bbmult); pi 3099 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_vbat_temp_sense_setup(pi, TEMPSENSE); pi 3104 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_clear_tx_power_offsets(pi); pi 3106 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c b0 = pi->txpa_2g[0]; pi 3107 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c b1 = pi->txpa_2g[1]; pi 3108 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c a1 = pi->txpa_2g[2]; pi 3120 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &tab); pi 3123 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d0, (0x1 << 0), (0) << 0); pi 3124 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d3, (0xff << 0), (0) << 0); pi 3125 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d3, (0xff << 8), (0) << 8); pi 3126 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d0, (0x1 << 4), (0) << 4); pi 3127 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d0, (0x1 << 2), (0) << 2); pi 3129 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x410, (0x1 << 7), (0) << 7); pi 3131 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x4a8, 10); pi 3133 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_target_tx_pwr(pi, LCN_TARGET_PWR); pi 3135 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_ctrl(pi, LCNPHY_TX_PWR_CTRL_HW); pi 3138 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlapi_enable_mac(pi->sh->physhim); pi 3141 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_set_pa_gain(struct brcms_phy *pi, u16 gain) pi 3143 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4fb, pi 3146 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4fd, pi 3152 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_get_radio_loft(struct brcms_phy *pi, pi 3155 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c *ei0 = LCNPHY_IQLOCC_READ(read_radio_reg(pi, RADIO_2064_REG089)); pi 3156 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c *eq0 = LCNPHY_IQLOCC_READ(read_radio_reg(pi, RADIO_2064_REG08A)); pi 3157 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c *fi0 = LCNPHY_IQLOCC_READ(read_radio_reg(pi, RADIO_2064_REG08B)); pi 3158 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c *fq0 = LCNPHY_IQLOCC_READ(read_radio_reg(pi, RADIO_2064_REG08C)); pi 3161 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c void wlc_lcnphy_set_tx_iqcc(struct brcms_phy *pi, u16 a, u16 b) pi 3174 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &tab); pi 3177 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c void wlc_lcnphy_set_tx_locc(struct brcms_phy *pi, u16 didq) pi 3186 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &tab); pi 3189 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c void wlc_lcnphy_set_tx_pwr_by_index(struct brcms_phy *pi, int index) pi 3196 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 3205 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_ctrl(pi, LCNPHY_TX_PWR_CTRL_OFF); pi 3209 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_read_table(pi, &tab); pi 3214 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_read_table(pi, &tab); pi 3220 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_gain(pi, &gains); pi 3221 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_pa_gain(pi, (u16) (txgain >> 24) & 0x7f); pi 3224 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_bbmult(pi, bb_mult); pi 3226 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_enable_tx_gain_override(pi); pi 3228 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (!wlc_lcnphy_tempsense_based_pwr_ctrl_enabled(pi)) { pi 3232 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_iqcc(pi, a, b); pi 3236 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_read_table(pi, &tab); pi 3238 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_locc(pi, (u16) locoeffs); pi 3242 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_read_table(pi, &tab); pi 3243 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x6a6, (0x1fff << 0), (rfpower * 8) << 0); pi 3248 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_clear_papd_comptable(struct brcms_phy *pi) pi 3263 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &tab); pi 3267 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c void wlc_lcnphy_tx_pu(struct brcms_phy *pi, bool bEnable) pi 3271 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c and_phy_reg(pi, 0x43b, ~(u16) ((0x1 << 1) | (0x1 << 4))); pi 3273 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x43c, (0x1 << 1), 1 << 1); pi 3275 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c and_phy_reg(pi, 0x44c, pi 3281 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c and_phy_reg(pi, 0x44d, pi 3283 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44d, (0x1 << 2), 1 << 2); pi 3285 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44d, (0x1 << 1) | (0x1 << 0), (0x1 << 0)); pi 3287 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c and_phy_reg(pi, 0x4f9, pi 3290 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c and_phy_reg(pi, 0x4fa, pi 3294 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x43b, (0x1 << 1), 1 << 1); pi 3295 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x43c, (0x1 << 1), 0 << 1); pi 3297 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x43b, (0x1 << 4), 1 << 4); pi 3298 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x43c, (0x1 << 6), 0 << 6); pi 3300 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44c, (0x1 << 12), 1 << 12); pi 3301 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44d, (0x1 << 14), 1 << 14); pi 3303 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_trsw_override(pi, true, false); pi 3305 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44d, (0x1 << 2), 0 << 2); pi 3306 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44c, (0x1 << 2), 1 << 2); pi 3308 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 3310 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44c, (0x1 << 3), 1 << 3); pi 3311 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44d, (0x1 << 3), 1 << 3); pi 3313 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44c, (0x1 << 5), 1 << 5); pi 3314 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44d, (0x1 << 5), 0 << 5); pi 3316 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4f9, (0x1 << 1), 1 << 1); pi 3317 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4fa, (0x1 << 1), 1 << 1); pi 3319 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4f9, (0x1 << 2), 1 << 2); pi 3320 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4fa, (0x1 << 2), 1 << 2); pi 3322 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4f9, (0x1 << 0), 1 << 0); pi 3323 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4fa, (0x1 << 0), 1 << 0); pi 3326 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44c, (0x1 << 3), 1 << 3); pi 3327 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44d, (0x1 << 3), 0 << 3); pi 3329 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44c, (0x1 << 5), 1 << 5); pi 3330 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44d, (0x1 << 5), 1 << 5); pi 3332 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4f9, (0x1 << 1), 1 << 1); pi 3333 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4fa, (0x1 << 1), 0 << 1); pi 3335 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4f9, (0x1 << 2), 1 << 2); pi 3336 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4fa, (0x1 << 2), 0 << 2); pi 3338 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4f9, (0x1 << 0), 1 << 0); pi 3339 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4fa, (0x1 << 0), 0 << 0); pi 3345 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_run_samples(struct brcms_phy *pi, pi 3350 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_phy_reg(pi, 0x6da, 0x8080); pi 3352 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x642, (0x7f << 0), (num_samps - 1) << 0); pi 3355 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x640, (0xffff << 0), num_loops << 0); pi 3357 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x641, (0xffff << 0), wait << 0); pi 3361 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c and_phy_reg(pi, 0x453, (u16) ~(0x1 << 15)); pi 3362 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_phy_reg(pi, 0x453, (0x1 << 15)); pi 3364 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x63f, 1); pi 3365 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_tx_pu(pi, 1); pi 3368 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_radio_reg(pi, RADIO_2064_REG112, 0x6); pi 3371 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c void wlc_lcnphy_deaf_mode(struct brcms_phy *pi, bool mode) pi 3375 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c phybw40 = CHSPEC_IS40(pi->radio_chanspec); pi 3377 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4b0, (0x1 << 5), (mode) << 5); pi 3378 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4b1, (0x1 << 9), 0 << 9); pi 3381 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg((pi), 0x410, pi 3385 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->radio_chanspec)) ? (!mode) : 0) << pi 3387 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x410, (0x1 << 7), (mode) << 7); pi 3392 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_start_tx_tone(struct brcms_phy *pi, s32 f_kHz, u16 max_val, pi 3403 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 3405 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->phy_tx_tone_freq = f_kHz; pi 3407 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_deaf_mode(pi, true); pi 3411 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x942, 0x2); pi 3412 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x93b, 0x0); pi 3413 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x93c, 0x0); pi 3414 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_txrx_spur_avoidance_mode(pi, false); pi 3441 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x6d6, (0x3 << 0), 0 << 0); pi 3443 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x6da, (0x1 << 3), 1 << 3); pi 3450 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &tab); pi 3452 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_run_samples(pi, num_samps, 0xffff, 0, iqcalmode); pi 3455 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c void wlc_lcnphy_stop_tx_tone(struct brcms_phy *pi) pi 3458 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 3460 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->phy_tx_tone_freq = 0; pi 3462 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x942, 0x7); pi 3463 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x93b, 0x2017); pi 3464 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x93c, 0x27c5); pi 3465 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_txrx_spur_avoidance_mode(pi, true); pi 3468 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c playback_status = read_phy_reg(pi, 0x644); pi 3470 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_tx_pu(pi, 0); pi 3471 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x63f, (0x1 << 1), 1 << 1); pi 3473 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x453, (0x1 << 15), 0 << 15); pi 3475 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x6d6, (0x3 << 0), 1 << 0); pi 3477 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x6da, (0x1 << 3), 0 << 3); pi 3479 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x6da, (0x1 << 7), 0 << 7); pi 3481 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c and_radio_reg(pi, RADIO_2064_REG112, 0xFFF9); pi 3483 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_deaf_mode(pi, false); pi 3487 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_cc(struct brcms_phy *pi, int cal_type, s16 coeff_x, s16 coeff_y) pi 3494 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_iqcc(pi, coeff_x, coeff_y); pi 3498 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_locc(pi, di0dq0); pi 3506 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG089, data_rf); pi 3512 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG08A, data_rf); pi 3520 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG08B, data_rf); pi 3526 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG08C, data_rf); pi 3532 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_get_cc(struct brcms_phy *pi, int cal_type) pi 3541 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_get_tx_iqcc(pi, &a, &b); pi 3546 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c didq = wlc_lcnphy_get_tx_locc(pi); pi 3553 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_get_radio_loft(pi, &ei, &eq, &fi, &fq); pi 3558 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_get_radio_loft(pi, &ei, &eq, &fi, &fq); pi 3567 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_samp_cap(struct brcms_phy *pi, int clip_detect_algo, u16 thresh, pi 3574 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 3577 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c old_sslpnCalibClkEnCtrl = read_phy_reg(pi, 0x6da); pi 3579 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c curval1 = bcma_read16(pi->d11core, D11REGOFFS(psm_corectlsts)); pi 3581 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_write16(pi->d11core, D11REGOFFS(psm_corectlsts), pi 3584 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_write16(pi->d11core, D11REGOFFS(smpl_clct_strptr), 0x7E00); pi 3585 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_write16(pi->d11core, D11REGOFFS(smpl_clct_stpptr), 0x8000); pi 3587 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c curval2 = bcma_read16(pi->d11core, D11REGOFFS(psm_phy_hdr_param)); pi 3588 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_write16(pi->d11core, D11REGOFFS(psm_phy_hdr_param), pi 3591 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x555, 0x0); pi 3592 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x5a6, 0x5); pi 3594 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x5a2, (u16) (mode | mode << 6)); pi 3595 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x5cf, 3); pi 3596 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x5a5, 0x3); pi 3597 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x583, 0x0); pi 3598 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x584, 0x0); pi 3599 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x585, 0x0fff); pi 3600 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x586, 0x0000); pi 3602 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x580, 0x4501); pi 3604 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c sslpnCalibClkEnCtrl = read_phy_reg(pi, 0x6da); pi 3605 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x6da, (u32) (sslpnCalibClkEnCtrl | 0x2008)); pi 3606 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c stpptr = bcma_read16(pi->d11core, D11REGOFFS(smpl_clct_stpptr)); pi 3607 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c curptr = bcma_read16(pi->d11core, D11REGOFFS(smpl_clct_curptr)); pi 3610 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c curptr = bcma_read16(pi->d11core, D11REGOFFS(smpl_clct_curptr)); pi 3614 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_write16(pi->d11core, D11REGOFFS(psm_phy_hdr_param), 0x2); pi 3616 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_write32(pi->d11core, D11REGOFFS(tplatewrptr), strptr); pi 3618 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c val = bcma_read32(pi->d11core, D11REGOFFS(tplatewrdata)); pi 3642 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x6da, old_sslpnCalibClkEnCtrl); pi 3643 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_write16(pi->d11core, D11REGOFFS(psm_phy_hdr_param), curval2); pi 3644 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_write16(pi->d11core, D11REGOFFS(psm_corectlsts), curval1); pi 3648 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_a1(struct brcms_phy *pi, int cal_type, int num_levels, pi 3676 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c phy_c26 = read_phy_reg(pi, 0x6da); pi 3677 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c phy_c27 = read_phy_reg(pi, 0x6db); pi 3678 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c phy_c31 = read_radio_reg(pi, RADIO_2064_REG026); pi 3679 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x93d, 0xC0); pi 3681 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_start_tx_tone(pi, 3750, 88, 0); pi 3682 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x6da, 0xffff); pi 3683 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_phy_reg(pi, 0x6db, 0x3); pi 3685 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_tx_iqlo_loopback(pi, phy_c32); pi 3687 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c phy_c28 = read_phy_reg(pi, 0x938); pi 3688 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c phy_c29 = read_phy_reg(pi, 0x4d7); pi 3689 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c phy_c30 = read_phy_reg(pi, 0x4d8); pi 3690 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_phy_reg(pi, 0x938, 0x1 << 2); pi 3691 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_phy_reg(pi, 0x4d7, 0x1 << 2); pi 3692 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_phy_reg(pi, 0x4d7, 0x1 << 3); pi 3693 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d7, (0x7 << 12), 0x2 << 12); pi 3694 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_phy_reg(pi, 0x4d8, 1 << 0); pi 3695 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_phy_reg(pi, 0x4d8, 1 << 1); pi 3696 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d8, (0x3ff << 2), 0x23A << 2); pi 3697 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d8, (0x7 << 12), 0x7 << 12); pi 3715 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c phy_c3 = wlc_lcnphy_get_cc(pi, cal_type); pi 3724 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_cc(pi, cal_type, phy_c15, phy_c16); pi 3744 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c phy_c9 = read_phy_reg(pi, 0x93d); pi 3750 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG026, pi 3755 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_samp_cap(pi, 1, phy_c9, &ptr[0], 2); pi 3788 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_cc(pi, cal_type, phy_c11, pi 3791 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_samp_cap(pi, 0, 0, ptr, 2); pi 3825 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_cc(pi, cal_type, phy_c15, phy_c16); pi 3830 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_tx_iqlo_loopback_cleanup(pi, phy_c32); pi 3831 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_stop_tx_tone(pi); pi 3832 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x6da, phy_c26); pi 3833 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x6db, phy_c27); pi 3834 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x938, phy_c28); pi 3835 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x4d7, phy_c29); pi 3836 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x4d8, phy_c30); pi 3837 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG026, phy_c31); pi 3843 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c void wlc_lcnphy_get_tx_iqcc(struct brcms_phy *pi, u16 *a, u16 *b) pi 3853 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_read_table(pi, &tab); pi 3859 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_tx_iqlo_soft_cal_full(struct brcms_phy *pi) pi 3863 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_cc(pi, 0, 0, 0); pi 3864 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_cc(pi, 2, 0, 0); pi 3865 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_cc(pi, 3, 0, 0); pi 3866 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_cc(pi, 4, 0, 0); pi 3868 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_a1(pi, 4, 0, 0); pi 3869 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_a1(pi, 3, 0, 0); pi 3870 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_a1(pi, 2, 3, 2); pi 3871 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_a1(pi, 0, 5, 8); pi 3872 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_a1(pi, 2, 2, 1); pi 3873 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_a1(pi, 0, 4, 3); pi 3875 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c iqcc0 = wlc_lcnphy_get_cc(pi, 0); pi 3876 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c locc2 = wlc_lcnphy_get_cc(pi, 2); pi 3877 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c locc3 = wlc_lcnphy_get_cc(pi, 3); pi 3878 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c locc4 = wlc_lcnphy_get_cc(pi, 4); pi 3881 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c u16 wlc_lcnphy_get_tx_locc(struct brcms_phy *pi) pi 3891 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_read_table(pi, &tab); pi 3896 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_txpwrtbl_iqlo_cal(struct brcms_phy *pi) pi 3904 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c u16 SAVE_txpwrctrl = wlc_lcnphy_get_tx_pwr_ctrl(pi); pi 3907 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 3909 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_get_tx_gain(pi, &old_gains); pi 3910 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c save_pa_gain = wlc_lcnphy_get_pa_gain(pi); pi 3912 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c save_bb_mult = wlc_lcnphy_get_bbmult(pi); pi 3915 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c SAVE_txpwrindex = wlc_lcnphy_get_current_tx_pwr_idx(pi); pi 3917 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_ctrl(pi, LCNPHY_TX_PWR_CTRL_OFF); pi 3923 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_gain(pi, &target_gains); pi 3925 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (LCNREV_IS(pi->pubpi.phy_rev, 1) || pi_lcn->lcnphy_hw_iqcal_en) { pi 3927 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_by_index(pi, 30); pi 3929 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_tx_iqlo_cal(pi, &target_gains, pi 3934 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_by_index(pi, 16); pi 3935 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_tx_iqlo_soft_cal_full(pi); pi 3938 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_get_radio_loft(pi, &ei0, &eq0, &fi0, &fq0); pi 3940 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 3952 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (LCNREV_IS(pi->pubpi.phy_rev, 1) pi 3957 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_by_index(pi, 16); pi 3958 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_tx_iqlo_cal(pi, &target_gains, pi 3961 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_tx_iqlo_soft_cal_full(pi); pi 3965 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_get_tx_iqcc(pi, &a, &b); pi 3967 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c didq = wlc_lcnphy_get_tx_locc(pi); pi 3979 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_read_table(pi, &tab); pi 3982 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &tab); pi 3986 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &tab); pi 3997 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_bbmult(pi, save_bb_mult); pi 3998 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_pa_gain(pi, save_pa_gain); pi 3999 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_gain(pi, &old_gains); pi 4002 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_ctrl(pi, SAVE_txpwrctrl); pi 4004 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_by_index(pi, SAVE_txpwrindex); pi 4007 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c s16 wlc_lcnphy_tempsense_new(struct brcms_phy *pi, bool mode) pi 4014 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c suspend = (0 == (bcma_read32(pi->d11core, pi 4018 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlapi_suspend_mac_and_wait(pi->sh->physhim); pi 4019 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_vbat_temp_sense_setup(pi, TEMPSENSE); pi 4021 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c tempsenseval1 = read_phy_reg(pi, 0x476) & 0x1FF; pi 4022 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c tempsenseval2 = read_phy_reg(pi, 0x477) & 0x1FF; pi 4038 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x448, (0x1 << 14), (1) << 14); pi 4041 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x448, (0x1 << 14), (0) << 14); pi 4044 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlapi_enable_mac(pi->sh->physhim); pi 4049 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c u16 wlc_lcnphy_tempsense(struct brcms_phy *pi, bool mode) pi 4054 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c u16 SAVE_txpwrctrl = wlc_lcnphy_get_tx_pwr_ctrl(pi); pi 4055 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 4058 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c suspend = (0 == (bcma_read32(pi->d11core, pi 4062 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlapi_suspend_mac_and_wait(pi->sh->physhim); pi 4063 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_vbat_temp_sense_setup(pi, TEMPSENSE); pi 4065 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c tempsenseval1 = read_phy_reg(pi, 0x476) & 0x1FF; pi 4066 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c tempsenseval2 = read_phy_reg(pi, 0x477) & 0x1FF; pi 4073 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (pi_lcn->lcnphy_tempsense_option == 1 || pi->hwpwrctrl_capable) { pi 4092 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_ctrl(pi, SAVE_txpwrctrl); pi 4096 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x448, (0x1 << 14), (1) << 14); pi 4099 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x448, (0x1 << 14), (0) << 14); pi 4102 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlapi_enable_mac(pi->sh->physhim); pi 4107 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c s8 wlc_lcnphy_tempsense_degree(struct brcms_phy *pi, bool mode) pi 4109 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c s32 degree = wlc_lcnphy_tempsense_new(pi, mode); pi 4117 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c s8 wlc_lcnphy_vbatsense(struct brcms_phy *pi, bool mode) pi 4124 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c suspend = (0 == (bcma_read32(pi->d11core, pi 4128 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlapi_suspend_mac_and_wait(pi->sh->physhim); pi 4129 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_vbat_temp_sense_setup(pi, VBATSENSE); pi 4132 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c vbatsenseval = read_phy_reg(pi, 0x475) & 0x1FF; pi 4144 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlapi_enable_mac(pi->sh->physhim); pi 4149 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_afe_clk_init(struct brcms_phy *pi, u8 mode) pi 4152 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c phybw40 = CHSPEC_IS40(pi->radio_chanspec); pi 4154 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x6d1, (0x1 << 7), (1) << 7); pi 4158 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x6d0, 0x7); pi 4160 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_toggle_afe_pwdn(pi); pi 4163 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_temp_adj(struct brcms_phy *pi) pi 4167 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_glacial_timer_based_cal(struct brcms_phy *pi) pi 4171 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c u16 SAVE_pwrctrl = wlc_lcnphy_get_tx_pwr_ctrl(pi); pi 4172 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 4173 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c suspend = (0 == (bcma_read32(pi->d11core, D11REGOFFS(maccontrol)) & pi 4176 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlapi_suspend_mac_and_wait(pi->sh->physhim); pi 4177 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_deaf_mode(pi, true); pi 4178 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->phy_lastcal = pi->sh->now; pi 4179 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->phy_forcecal = false; pi 4182 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_txpwrtbl_iqlo_cal(pi); pi 4184 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_by_index(pi, index); pi 4185 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_ctrl(pi, SAVE_pwrctrl); pi 4186 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_deaf_mode(pi, false); pi 4188 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlapi_enable_mac(pi->sh->physhim); pi 4192 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_periodic_cal(struct brcms_phy *pi) pi 4197 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c u16 SAVE_pwrctrl = wlc_lcnphy_get_tx_pwr_ctrl(pi); pi 4202 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 4204 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->phy_lastcal = pi->sh->now; pi 4205 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->phy_forcecal = false; pi 4208 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c CHSPEC_CHANNEL(pi->radio_chanspec)); pi 4209 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi_lcn->lcnphy_full_cal_channel = CHSPEC_CHANNEL(pi->radio_chanspec); pi 4212 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c suspend = (0 == (bcma_read32(pi->d11core, D11REGOFFS(maccontrol)) & pi 4215 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlapi_bmac_write_shm(pi->sh->physhim, M_CTS_DURATION, 10000); pi 4216 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlapi_suspend_mac_and_wait(pi->sh->physhim); pi 4219 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_deaf_mode(pi, true); pi 4221 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_txpwrtbl_iqlo_cal(pi); pi 4226 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (LCNREV_IS(pi->pubpi.phy_rev, 1)) pi 4227 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_rx_iq_cal(pi, NULL, 0, true, false, 1, 40); pi 4229 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_rx_iq_cal(pi, NULL, 0, true, false, 1, 127); pi 4231 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (wlc_lcnphy_tssi_based_pwr_ctrl_enabled(pi)) { pi 4233 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_idle_tssi_est((struct brcms_phy_pub *) pi); pi 4235 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c b0 = pi->txpa_2g[0]; pi 4236 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c b1 = pi->txpa_2g[1]; pi 4237 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c a1 = pi->txpa_2g[2]; pi 4248 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &tab); pi 4253 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_by_index(pi, index); pi 4254 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_ctrl(pi, SAVE_pwrctrl); pi 4255 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_deaf_mode(pi, false); pi 4257 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlapi_enable_mac(pi->sh->physhim); pi 4260 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c void wlc_lcnphy_calib_modes(struct brcms_phy *pi, uint mode) pi 4264 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 4270 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_periodic_cal(pi); pi 4273 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_periodic_cal(pi); pi 4276 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (wlc_lcnphy_tempsense_based_pwr_ctrl_enabled(pi)) { pi 4277 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c temp_new = wlc_lcnphy_tempsense(pi, 0); pi 4283 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_glacial_timer_based_cal(pi); pi 4284 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_2064_vco_cal(pi); pi 4292 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (wlc_lcnphy_tempsense_based_pwr_ctrl_enabled(pi)) pi 4294 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c (struct brcms_phy_pub *) pi); pi 4299 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c void wlc_lcnphy_get_tssi(struct brcms_phy *pi, s8 *ofdm_pwr, s8 *cck_pwr) pi 4303 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c status = (read_phy_reg(pi, 0x4ab)); pi 4304 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (wlc_lcnphy_tssi_based_pwr_ctrl_enabled(pi) && pi 4306 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c *ofdm_pwr = (s8) (((read_phy_reg(pi, 0x4ab) & (0x1ff << 0)) pi 4309 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (wlc_phy_tpc_isenabled_lcnphy(pi)) pi 4310 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c cck_offset = pi->tx_power_offset[TXP_FIRST_CCK]; pi 4321 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c void wlc_phy_cal_init_lcnphy(struct brcms_phy *pi) pi 4331 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 4332 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 4333 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c u16 SAVE_txpwrctrl = wlc_lcnphy_get_tx_pwr_ctrl(pi); pi 4334 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (wlc_lcnphy_tempsense_based_pwr_ctrl_enabled(pi) && pi 4336 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c index = wlc_lcnphy_tempcompensated_txpwrctrl(pi); pi 4338 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4a9, (0x1ff << 0), (index2) << 0); pi 4341 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c (s8)((read_phy_reg(pi, 0x4a9) & 0xFF) / 2); pi 4346 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_load_tx_gain_table(struct brcms_phy *pi, pi 4355 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (pi->sh->boardflags & BFL_FEM) pi 4367 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (pi->sh->boardflags & BFL_FEM) pi 4374 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &tab); pi 4378 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &tab); pi 4382 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_load_rfpower(struct brcms_phy *pi) pi 4397 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_read_table(pi, &tab); pi 4402 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_read_table(pi, &tab); pi 4427 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &tab); pi 4431 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_bu_tweaks(struct brcms_phy *pi) pi 4433 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_phy_reg(pi, 0x805, 0x1); pi 4435 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x42f, (0x7 << 0), (0x3) << 0); pi 4437 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x030, (0x7 << 0), (0x3) << 0); pi 4439 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x414, 0x1e10); pi 4440 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x415, 0x0640); pi 4442 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4df, (0xff << 8), -9 << 8); pi 4444 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_phy_reg(pi, 0x44a, 0x44); pi 4445 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x44a, 0x80); pi 4446 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x434, (0xff << 0), (0xFD) << 0); pi 4448 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x420, (0xff << 0), (16) << 0); pi 4450 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (!(pi->sh->boardrev < 0x1204)) pi 4451 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG09B, 0xF0, 0xF0); pi 4453 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x7d6, 0x0902); pi 4454 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x429, (0xf << 0), (0x9) << 0); pi 4456 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x429, (0x3f << 4), (0xe) << 4); pi 4458 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (LCNREV_IS(pi->pubpi.phy_rev, 1)) { pi 4459 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x423, (0xff << 0), (0x46) << 0); pi 4461 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x411, (0xff << 0), (1) << 0); pi 4463 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x434, (0xff << 0), (0xFF) << 0); pi 4465 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x656, (0xf << 0), (2) << 0); pi 4467 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44d, (0x1 << 2), (1) << 2); pi 4469 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG0F7, 0x4, 0x4); pi 4470 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG0F1, 0x3, 0); pi 4471 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG0F2, 0xF8, 0x90); pi 4472 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG0F3, 0x3, 0x2); pi 4473 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG0F3, 0xf0, 0xa0); pi 4475 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG11F, 0x2, 0x2); pi 4477 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_clear_tx_power_offsets(pi); pi 4478 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4d0, (0x1ff << 6), (10) << 6); pi 4483 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_rcal(struct brcms_phy *pi) pi 4487 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c and_radio_reg(pi, RADIO_2064_REG05B, 0xfD); pi 4489 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_radio_reg(pi, RADIO_2064_REG004, 0x40); pi 4490 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_radio_reg(pi, RADIO_2064_REG120, 0x10); pi 4492 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_radio_reg(pi, RADIO_2064_REG078, 0x80); pi 4493 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_radio_reg(pi, RADIO_2064_REG129, 0x02); pi 4495 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_radio_reg(pi, RADIO_2064_REG057, 0x01); pi 4497 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_radio_reg(pi, RADIO_2064_REG05B, 0x02); pi 4499 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c SPINWAIT(!wlc_radio_2064_rcal_done(pi), 10 * 1000 * 1000); pi 4501 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (wlc_radio_2064_rcal_done(pi)) { pi 4502 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c rcal_value = (u8) read_radio_reg(pi, RADIO_2064_REG05C); pi 4506 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c and_radio_reg(pi, RADIO_2064_REG05B, 0xfD); pi 4508 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c and_radio_reg(pi, RADIO_2064_REG057, 0xFE); pi 4511 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_rc_cal(struct brcms_phy *pi) pi 4517 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (LCNREV_IS(pi->pubpi.phy_rev, 1)) pi 4522 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x933, flt_val); pi 4523 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x934, flt_val); pi 4524 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x935, flt_val); pi 4525 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x936, flt_val); pi 4526 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x937, (flt_val & 0x1FF)); pi 4531 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_radio_2064_init(struct brcms_phy *pi) pi 4539 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (CHSPEC_IS5G(pi->radio_chanspec) && lcnphyregs[i].do_init_a) pi 4540 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, pi 4545 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, pi 4550 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG032, 0x62); pi 4551 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG033, 0x19); pi 4553 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG090, 0x10); pi 4555 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG010, 0x00); pi 4557 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (LCNREV_IS(pi->pubpi.phy_rev, 1)) { pi 4559 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG060, 0x7f); pi 4560 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG061, 0x72); pi 4561 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG062, 0x7f); pi 4564 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG01D, 0x02); pi 4565 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG01E, 0x06); pi 4567 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4ea, (0x7 << 0), 0 << 0); pi 4569 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4ea, (0x7 << 3), 1 << 3); pi 4571 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4ea, (0x7 << 6), 2 << 6); pi 4573 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4ea, (0x7 << 9), 3 << 9); pi 4575 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4ea, (0x7 << 12), 4 << 12); pi 4577 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x4ea, 0x4688); pi 4579 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (pi->sh->boardflags & BFL_FEM) pi 4580 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4eb, (0x7 << 0), 2 << 0); pi 4582 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4eb, (0x7 << 0), 3 << 0); pi 4584 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4eb, (0x7 << 6), 0 << 6); pi 4586 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x46a, (0xffff << 0), 25 << 0); pi 4588 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_locc(pi, 0); pi 4590 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_rcal(pi); pi 4592 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_rc_cal(pi); pi 4594 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (!(pi->sh->boardflags & BFL_FEM)) { pi 4595 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG032, 0x6f); pi 4596 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG033, 0x19); pi 4597 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG039, 0xe); pi 4602 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_radio_init(struct brcms_phy *pi) pi 4604 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_radio_2064_init(pi); pi 4607 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_tbl_init(struct brcms_phy *pi) pi 4615 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &dot11lcnphytbl_info_rev0[idx]); pi 4617 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (pi->sh->boardflags & BFL_FEM_BT) { pi 4624 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &tab); pi 4627 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (!(pi->sh->boardflags & BFL_FEM)) { pi 4635 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &tab); pi 4639 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &tab); pi 4642 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 4643 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (pi->sh->boardflags & BFL_FEM) pi 4645 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi, pi 4649 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi, pi 4653 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (LCNREV_IS(pi->pubpi.phy_rev, 2)) { pi 4656 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 4658 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (pi->sh->boardflags & BFL_EXTLNA) pi 4664 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (pi->sh->boardflags & BFL_EXTLNA_5GHz) pi 4671 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, &tb[idx]); pi 4674 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (pi->sh->boardflags & BFL_FEM) { pi 4675 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (pi->sh->boardflags & BFL_FEM_BT) { pi 4676 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (pi->sh->boardrev < 0x1250) pi 4684 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (pi->sh->boardflags & BFL_FEM_BT) pi 4689 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_write_table(pi, tb); pi 4690 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_load_rfpower(pi); pi 4692 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_clear_papd_comptable(pi); pi 4695 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_rev0_baseband_init(struct brcms_phy *pi) pi 4698 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 4700 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG11C, 0x0); pi 4702 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x43b, 0x0); pi 4703 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x43c, 0x0); pi 4704 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x44c, 0x0); pi 4705 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x4e6, 0x0); pi 4706 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x4f9, 0x0); pi 4707 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x4b0, 0x0); pi 4708 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x938, 0x0); pi 4709 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x4b0, 0x0); pi 4710 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x44e, 0); pi 4712 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_phy_reg(pi, 0x567, 0x03); pi 4714 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_phy_reg(pi, 0x44a, 0x44); pi 4715 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x44a, 0x80); pi 4717 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (!(pi->sh->boardflags & BFL_FEM)) pi 4718 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_by_index(pi, 52); pi 4725 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x43e, afectrl1); pi 4728 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x634, (0xff << 0), 0xC << 0); pi 4729 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (pi->sh->boardflags & BFL_FEM) { pi 4730 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x634, (0xff << 0), 0xA << 0); pi 4732 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x910, 0x1); pi 4735 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x448, (0x3 << 8), 1 << 8); pi 4736 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x608, (0xff << 0), 0x17 << 0); pi 4737 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x604, (0x7ff << 0), 0x3EA << 0); pi 4741 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_rev2_baseband_init(struct brcms_phy *pi) pi 4743 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 4744 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x416, (0xff << 0), 80 << 0); pi 4745 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x416, (0xff << 8), 80 << 8); pi 4749 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_agc_temp_init(struct brcms_phy *pi) pi 4754 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 4756 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c temp = (s16) read_phy_reg(pi, 0x4df); pi 4772 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_read_table(pi, &tab); pi 4782 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c temp = (s16) (read_phy_reg(pi, 0x434) & (0xff << 0)); pi 4788 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c (read_phy_reg(pi, 0x424) & (0xff << 8)) >> 8; pi 4790 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c (read_phy_reg(pi, 0x425) & (0xff << 0)) >> 0; pi 4797 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_read_table(pi, &tab); pi 4804 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_baseband_init(struct brcms_phy *pi) pi 4807 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_tbl_init(pi); pi 4808 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_rev0_baseband_init(pi); pi 4809 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (LCNREV_IS(pi->pubpi.phy_rev, 2)) pi 4810 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_rev2_baseband_init(pi); pi 4811 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_bu_tweaks(pi); pi 4814 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c void wlc_phy_init_lcnphy(struct brcms_phy *pi) pi 4816 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 4821 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_phy_reg(pi, 0x44a, 0x80); pi 4822 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c and_phy_reg(pi, 0x44a, 0x7f); pi 4824 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_afe_clk_init(pi, AFE_CLK_INIT_MODE_TXRX2X); pi 4826 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x60a, 160); pi 4828 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x46a, 25); pi 4830 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_baseband_init(pi); pi 4832 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_radio_init(pi); pi 4834 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (CHSPEC_IS2G(pi->radio_chanspec)) pi 4835 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_tx_pwr_ctrl_init((struct brcms_phy_pub *) pi); pi 4837 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_phy_chanspec_set((struct brcms_phy_pub *) pi, pi->radio_chanspec); pi 4839 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_chipco_regctl_maskset(&pi->d11core->bus->drv_cc, 0, ~0xf, 0x9); pi 4841 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_chipco_chipctl_maskset(&pi->d11core->bus->drv_cc, 0, 0x0, pi 4844 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if ((pi->sh->boardflags & BFL_FEM) pi 4845 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c && wlc_lcnphy_tempsense_based_pwr_ctrl_enabled(pi)) pi 4846 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_by_index(pi, FIXED_TXPWR); pi 4848 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_agc_temp_init(pi); pi 4850 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_temp_adj(pi); pi 4852 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x448, (0x1 << 14), (1) << 14); pi 4855 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x448, (0x1 << 14), (0) << 14); pi 4857 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_ctrl(pi, LCNPHY_TX_PWR_CTRL_HW); pi 4859 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_calib_modes(pi, PHY_PERICAL_PHYINIT); pi 4862 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static bool wlc_phy_txpwr_srom_read_lcnphy(struct brcms_phy *pi) pi 4866 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 4867 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct ssb_sprom *sprom = &pi->d11core->bus->sprom; pi 4869 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 4877 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->txpa_2g[0] = sprom->pa0b0; pi 4878 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->txpa_2g[1] = sprom->pa0b1; pi 4879 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->txpa_2g[2] = sprom->pa0b2; pi 4894 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->tx_srom_max_2g = txpwr; pi 4897 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->txpa_2g_low_temp[i] = pi->txpa_2g[i]; pi 4898 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->txpa_2g_high_temp[i] = pi->txpa_2g[i]; pi 4907 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->tx_srom_max_rate_2g[i] = pi 4913 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->tx_srom_max_rate_2g[i] = pi 4924 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->tx_srom_max_rate_2g[i] = txpwr; pi 4927 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->tx_srom_max_rate_2g[i] = txpwr - pi 4936 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->tx_srom_max_rate_2g[i] = pi 4951 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_phy_ant_rxdiv_set((struct brcms_phy_pub *) pi, pi 4959 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c void wlc_2064_vco_cal(struct brcms_phy *pi) pi 4963 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG057, 1 << 3, 1 << 3); pi 4964 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c calnrst = (u8) read_radio_reg(pi, RADIO_2064_REG056) & 0xf8; pi 4965 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG056, calnrst); pi 4967 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG056, calnrst | 0x03); pi 4969 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG056, calnrst | 0x07); pi 4971 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG057, 1 << 3, 0); pi 4974 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bool wlc_phy_tpc_isenabled_lcnphy(struct brcms_phy *pi) pi 4976 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (wlc_lcnphy_tempsense_based_pwr_ctrl_enabled(pi)) pi 4980 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_get_tx_pwr_ctrl((pi))); pi 4983 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c void wlc_phy_txpower_recalc_target_lcnphy(struct brcms_phy *pi) pi 4986 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (wlc_lcnphy_tempsense_based_pwr_ctrl_enabled(pi)) { pi 4987 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_calib_modes(pi, LCNPHY_PERICAL_TEMPBASED_TXPWRCTRL); pi 4988 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c } else if (wlc_lcnphy_tssi_based_pwr_ctrl_enabled(pi)) { pi 4989 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pwr_ctrl = wlc_lcnphy_get_tx_pwr_ctrl(pi); pi 4990 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_ctrl(pi, LCNPHY_TX_PWR_CTRL_OFF); pi 4991 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_txpower_recalc_target(pi); pi 4992 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tx_pwr_ctrl(pi, pwr_ctrl); pi 4996 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c void wlc_phy_chanspec_set_lcnphy(struct brcms_phy *pi, u16 chanspec) pi 5000 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_phy_chanspec_radio_set((struct brcms_phy_pub *)pi, chanspec); pi 5002 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_chanspec_tweaks(pi, pi->radio_chanspec); pi 5004 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c or_phy_reg(pi, 0x44a, 0x44); pi 5005 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x44a, 0x80); pi 5007 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_radio_2064_channel_tune_4313(pi, channel); pi 5010 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_toggle_afe_pwdn(pi); pi 5012 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x657, lcnphy_sfo_cfg[channel - 1].ptcentreTs20); pi 5013 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x658, lcnphy_sfo_cfg[channel - 1].ptcentreFactor); pi 5015 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (CHSPEC_CHANNEL(pi->radio_chanspec) == 14) { pi 5016 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x448, (0x3 << 8), (2) << 8); pi 5018 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_load_tx_iir_filter(pi, false, 3); pi 5020 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x448, (0x3 << 8), (1) << 8); pi 5022 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_load_tx_iir_filter(pi, false, 2); pi 5025 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (pi->sh->boardflags & BFL_FEM) pi 5026 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_load_tx_iir_filter(pi, true, 0); pi 5028 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_load_tx_iir_filter(pi, true, 3); pi 5030 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4eb, (0x7 << 3), (1) << 3); pi 5031 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (wlc_lcnphy_tssi_based_pwr_ctrl_enabled(pi)) pi 5032 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_tssi_setup(pi); pi 5035 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c void wlc_phy_detach_lcnphy(struct brcms_phy *pi) pi 5037 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c kfree(pi->u.pi_lcnphy); pi 5040 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bool wlc_phy_attach_lcnphy(struct brcms_phy *pi) pi 5044 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->u.pi_lcnphy = kzalloc(sizeof(struct brcms_phy_lcnphy), GFP_ATOMIC); pi 5045 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (pi->u.pi_lcnphy == NULL) pi 5048 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi_lcn = pi->u.pi_lcnphy; pi 5050 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (0 == (pi->sh->boardflags & BFL_NOPA)) { pi 5051 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->hwpwrctrl = true; pi 5052 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->hwpwrctrl_capable = true; pi 5055 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->xtalfreq = bcma_chipco_get_alp_clock(&pi->d11core->bus->drv_cc); pi 5058 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->pi_fptr.init = wlc_phy_init_lcnphy; pi 5059 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->pi_fptr.calinit = wlc_phy_cal_init_lcnphy; pi 5060 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->pi_fptr.chanset = wlc_phy_chanspec_set_lcnphy; pi 5061 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->pi_fptr.txpwrrecalc = wlc_phy_txpower_recalc_target_lcnphy; pi 5062 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->pi_fptr.txiqccget = wlc_lcnphy_get_tx_iqcc; pi 5063 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->pi_fptr.txiqccset = wlc_lcnphy_set_tx_iqcc; pi 5064 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->pi_fptr.txloccget = wlc_lcnphy_get_tx_locc; pi 5065 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->pi_fptr.radioloftget = wlc_lcnphy_get_radio_loft; pi 5066 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->pi_fptr.detach = wlc_phy_detach_lcnphy; pi 5068 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (!wlc_phy_txpwr_srom_read_lcnphy(pi)) pi 5071 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (LCNREV_IS(pi->pubpi.phy_rev, 1)) { pi 5073 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->hwpwrctrl = true; pi 5074 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->hwpwrctrl_capable = true; pi 5075 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->temppwrctrl_capable = false; pi 5077 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->hwpwrctrl = false; pi 5078 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->hwpwrctrl_capable = false; pi 5079 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->temppwrctrl_capable = true; pi 5086 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_set_rx_gain(struct brcms_phy *pi, u32 gain) pi 5103 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x44d, (0x1 << 0), trsw << 0); pi 5104 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4b1, (0x1 << 9), ext_lna << 9); pi 5105 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4b1, (0x1 << 10), ext_lna << 10); pi 5106 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4b6, (0xffff << 0), gain0_15 << 0); pi 5107 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4b7, (0xf << 0), gain16_19 << 0); pi 5109 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 5110 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4b1, (0x3 << 11), lna1 << 11); pi 5111 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4e6, (0x3 << 3), lna1 << 3); pi 5113 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_rx_gain_override_enable(pi, true); pi 5116 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static u32 wlc_lcnphy_get_receive_power(struct brcms_phy *pi, s32 *gain_index) pi 5121 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 5131 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_rx_gain(pi, pi 5136 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi, pi 5143 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_rx_gain(pi, gain_code); pi 5145 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_measure_digital_power(pi, pi 5153 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c s32 wlc_lcnphy_rx_signal_power(struct brcms_phy *pi, s32 gain_index) pi 5163 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; pi 5165 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c received_power = wlc_lcnphy_get_receive_power(pi, &gain_index); pi 5169 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c nominal_power_db = read_phy_reg(pi, 0x425) >> 8; pi 5189 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c input_power_offset_db = read_phy_reg(pi, 0x434) & 0xFF; pi 5199 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c freq = wlc_phy_channel2freq(CHSPEC_CHANNEL(pi->radio_chanspec)); pi 5219 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_rx_gain_override_enable(pi, 0); pi 25 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c #define READ_RADIO_REG2(pi, radio_type, jspace, core, reg_name) \ pi 26 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, radio_type##_##jspace##_##reg_name | \ pi 31 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c #define WRITE_RADIO_REG2(pi, radio_type, jspace, core, reg_name, value) \ pi 32 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, radio_type##_##jspace##_##reg_name | \ pi 37 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c #define WRITE_RADIO_SYN(pi, radio_type, reg_name, value) \ pi 38 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, radio_type##_##SYN##_##reg_name, value) pi 40 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c #define READ_RADIO_REG3(pi, radio_type, jspace, core, reg_name) \ pi 41 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, ((core == PHY_CORE_0) ? \ pi 45 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c #define WRITE_RADIO_REG3(pi, radio_type, jspace, core, reg_name, value) \ pi 46 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, ((core == PHY_CORE_0) ? \ pi 51 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c #define READ_RADIO_REG4(pi, radio_type, jspace, core, reg_name) \ pi 52 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, ((core == PHY_CORE_0) ? \ pi 56 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c #define WRITE_RADIO_REG4(pi, radio_type, jspace, core, reg_name, value) \ pi 57 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, ((core == PHY_CORE_0) ? \ pi 97 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c #define NPHY_IS_SROM_REINTERPRET NREV_GE(pi->pubpi.phy_rev, 5) pi 256 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c #define wlc_phy_get_papd_nphy(pi) \ pi 257 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (read_phy_reg((pi), 0x1e7) & \ pi 14113 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 14116 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 16)) pi 14119 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c phybist0 = read_phy_reg(pi, 0x0e); pi 14120 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c phybist1 = read_phy_reg(pi, 0x0f); pi 14121 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c phybist2 = read_phy_reg(pi, 0xea); pi 14122 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c phybist3 = read_phy_reg(pi, 0xeb); pi 14123 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c phybist4 = read_phy_reg(pi, 0x156); pi 14132 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_bphy_init_nphy(struct brcms_phy *pi) pi 14139 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, addr, val); pi 14146 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, NPHY_TO_BPHY_OFF + BPHY_STEP, 0x668); pi 14150 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(struct brcms_phy *pi, u32 id, u32 len, u32 offset, pi 14160 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_write_table_nphy(pi, &tbl); pi 14164 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(struct brcms_phy *pi, u32 id, u32 len, u32 offset, pi 14174 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_read_table_nphy(pi, &tbl); pi 14178 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_static_table_download_nphy(struct brcms_phy *pi) pi 14182 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 16)) { pi 14184 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_write_table_nphy(pi, pi 14186 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 14188 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_write_table_nphy(pi, pi 14190 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 14192 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_write_table_nphy(pi, pi 14196 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_write_table_nphy(pi, pi 14201 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_tbl_init_nphy(struct brcms_phy *pi) pi 14206 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phy_init_por) pi 14207 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_static_table_download_nphy(pi); pi 14209 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 14211 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c antswctrllut = CHSPEC_IS2G(pi->radio_chanspec) ? pi 14212 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->srom_fem2g.antswctrllut : pi->srom_fem5g. pi 14222 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->aa2g == 7) pi 14224 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 14230 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 14236 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_ANTSWCTRLLUT, pi 14239 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_ANTSWCTRLLUT, pi 14247 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, NPHY_TBL_ID_ANTSWCTRLLUT, pi 14251 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, NPHY_TBL_ID_ANTSWCTRLLUT, pi 14255 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, NPHY_TBL_ID_ANTSWCTRLLUT, pi 14260 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, NPHY_TBL_ID_ANTSWCTRLLUT, pi 14264 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, NPHY_TBL_ID_ANTSWCTRLLUT, pi 14268 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, NPHY_TBL_ID_ANTSWCTRLLUT, pi 14277 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 14282 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c CHSPEC_IS2G(pi->radio_chanspec) ? pi 14283 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->srom_fem2g.antswctrllut : pi 14284 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->srom_fem5g.antswctrllut; pi 14288 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 14294 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 14300 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 14306 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 14315 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 14321 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_write_table_nphy(pi, pi 14328 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_write_txmacreg_nphy(struct brcms_phy *pi, u16 holdoff, u16 delay) pi 14330 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x77, holdoff); pi 14331 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xb4, delay); pi 14334 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c void wlc_phy_nphy_tkip_rifs_war(struct brcms_phy *pi, u8 rifs) pi 14348 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_write_txmacreg_nphy(pi, holdoff, delay); pi 14350 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->sh && (pi->sh->_rifs_phy != rifs)) pi 14351 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->sh->_rifs_phy = rifs; pi 14354 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_txpwrctrl_config_nphy(struct brcms_phy *pi) pi 14357 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 14358 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrctrl = PHY_TPC_HW_ON; pi 14359 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->phy_5g_pwrgain = true; pi 14363 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrctrl = PHY_TPC_HW_OFF; pi 14364 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->phy_5g_pwrgain = false; pi 14366 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->sh->boardflags2 & BFL2_TXPWRCTRL_EN) && pi 14367 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NREV_GE(pi->pubpi.phy_rev, 2) && (pi->sh->sromrev >= 4)) pi 14368 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrctrl = PHY_TPC_HW_ON; pi 14369 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if ((pi->sh->sromrev >= 4) pi 14370 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c && (pi->sh->boardflags2 & BFL2_5G_PWRGAIN)) pi 14371 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->phy_5g_pwrgain = true; pi 14374 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_txpwr_srom_read_ppr_nphy(struct brcms_phy *pi) pi 14378 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c struct ssb_sprom *sprom = &pi->d11core->bus->sprom; pi 14380 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->sh->sromrev >= 9) pi 14384 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->bw402gpo = bw40po & 0xf; pi 14385 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->bw405gpo = (bw40po & 0xf0) >> 4; pi 14386 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->bw405glpo = (bw40po & 0xf00) >> 8; pi 14387 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->bw405ghpo = (bw40po & 0xf000) >> 12; pi 14390 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->cdd2gpo = cddpo & 0xf; pi 14391 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->cdd5gpo = (cddpo & 0xf0) >> 4; pi 14392 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->cdd5glpo = (cddpo & 0xf00) >> 8; pi 14393 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->cdd5ghpo = (cddpo & 0xf000) >> 12; pi 14396 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->stbc2gpo = stbcpo & 0xf; pi 14397 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->stbc5gpo = (stbcpo & 0xf0) >> 4; pi 14398 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->stbc5glpo = (stbcpo & 0xf00) >> 8; pi 14399 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->stbc5ghpo = (stbcpo & 0xf000) >> 12; pi 14402 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->bwdup2gpo = bwduppo & 0xf; pi 14403 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->bwdup5gpo = (bwduppo & 0xf0) >> 4; pi 14404 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->bwdup5glpo = (bwduppo & 0xf00) >> 8; pi 14405 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->bwdup5ghpo = (bwduppo & 0xf000) >> 12; pi 14411 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_0].max_pwr_2g = pi 14413 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_1].max_pwr_2g = pi 14415 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_0].pwrdet_2g_a1 = pi 14417 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_1].pwrdet_2g_a1 = pi 14419 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_0].pwrdet_2g_b0 = pi 14421 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_1].pwrdet_2g_b0 = pi 14423 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_0].pwrdet_2g_b1 = pi 14425 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_1].pwrdet_2g_b1 = pi 14427 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_0].idle_targ_2g = pi 14429 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_1].idle_targ_2g = pi 14432 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->cck2gpo = sprom->cck2gpo; pi 14434 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->ofdm2gpo = sprom->ofdm2gpo; pi 14436 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs2gpo[0] = sprom->mcs2gpo[0]; pi 14437 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs2gpo[1] = sprom->mcs2gpo[1]; pi 14438 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs2gpo[2] = sprom->mcs2gpo[2]; pi 14439 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs2gpo[3] = sprom->mcs2gpo[3]; pi 14440 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs2gpo[4] = sprom->mcs2gpo[4]; pi 14441 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs2gpo[5] = sprom->mcs2gpo[5]; pi 14442 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs2gpo[6] = sprom->mcs2gpo[6]; pi 14443 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs2gpo[7] = sprom->mcs2gpo[7]; pi 14447 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_0].max_pwr_5gm = pi 14449 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_1].max_pwr_5gm = pi 14451 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_0].pwrdet_5gm_a1 = pi 14453 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_1].pwrdet_5gm_a1 = pi 14455 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_0].pwrdet_5gm_b0 = pi 14457 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_1].pwrdet_5gm_b0 = pi 14459 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_0].pwrdet_5gm_b1 = pi 14461 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_1].pwrdet_5gm_b1 = pi 14463 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_0].idle_targ_5gm = pi 14465 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_1].idle_targ_5gm = pi 14468 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->ofdm5gpo = sprom->ofdm5gpo; pi 14470 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs5gpo[0] = sprom->mcs5gpo[0]; pi 14471 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs5gpo[1] = sprom->mcs5gpo[1]; pi 14472 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs5gpo[2] = sprom->mcs5gpo[2]; pi 14473 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs5gpo[3] = sprom->mcs5gpo[3]; pi 14474 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs5gpo[4] = sprom->mcs5gpo[4]; pi 14475 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs5gpo[5] = sprom->mcs5gpo[5]; pi 14476 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs5gpo[6] = sprom->mcs5gpo[6]; pi 14477 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs5gpo[7] = sprom->mcs5gpo[7]; pi 14481 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[0].max_pwr_5gl = pi 14483 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[1].max_pwr_5gl = pi 14485 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[0].pwrdet_5gl_a1 = pi 14487 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[1].pwrdet_5gl_a1 = pi 14489 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[0].pwrdet_5gl_b0 = pi 14491 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[1].pwrdet_5gl_b0 = pi 14493 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[0].pwrdet_5gl_b1 = pi 14495 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[1].pwrdet_5gl_b1 = pi 14497 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[0].idle_targ_5gl = 0; pi 14498 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[1].idle_targ_5gl = 0; pi 14500 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->ofdm5glpo = sprom->ofdm5glpo; pi 14502 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs5glpo[0] = sprom->mcs5glpo[0]; pi 14503 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs5glpo[1] = sprom->mcs5glpo[1]; pi 14504 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs5glpo[2] = sprom->mcs5glpo[2]; pi 14505 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs5glpo[3] = sprom->mcs5glpo[3]; pi 14506 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs5glpo[4] = sprom->mcs5glpo[4]; pi 14507 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs5glpo[5] = sprom->mcs5glpo[5]; pi 14508 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs5glpo[6] = sprom->mcs5glpo[6]; pi 14509 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs5glpo[7] = sprom->mcs5glpo[7]; pi 14513 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[0].max_pwr_5gh = pi 14515 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[1].max_pwr_5gh = pi 14517 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[0].pwrdet_5gh_a1 = pi 14519 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[1].pwrdet_5gh_a1 = pi 14521 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[0].pwrdet_5gh_b0 = pi 14523 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[1].pwrdet_5gh_b0 = pi 14525 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[0].pwrdet_5gh_b1 = pi 14527 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[1].pwrdet_5gh_b1 = pi 14529 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[0].idle_targ_5gh = 0; pi 14530 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[1].idle_targ_5gh = 0; pi 14532 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->ofdm5ghpo = sprom->ofdm5ghpo; pi 14534 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs5ghpo[0] = sprom->mcs5ghpo[0]; pi 14535 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs5ghpo[1] = sprom->mcs5ghpo[1]; pi 14536 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs5ghpo[2] = sprom->mcs5ghpo[2]; pi 14537 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs5ghpo[3] = sprom->mcs5ghpo[3]; pi 14538 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs5ghpo[4] = sprom->mcs5ghpo[4]; pi 14539 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs5ghpo[5] = sprom->mcs5ghpo[5]; pi 14540 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs5ghpo[6] = sprom->mcs5ghpo[6]; pi 14541 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mcs5ghpo[7] = sprom->mcs5ghpo[7]; pi 14546 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_apply_nphy(pi); pi 14549 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static bool wlc_phy_txpwr_srom_read_nphy(struct brcms_phy *pi) pi 14551 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c struct ssb_sprom *sprom = &pi->d11core->bus->sprom; pi 14553 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->antswitch = sprom->antswitch; pi 14554 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->aa2g = sprom->ant_available_bg; pi 14555 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->aa5g = sprom->ant_available_a; pi 14557 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->srom_fem2g.tssipos = sprom->fem.ghz2.tssipos; pi 14558 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->srom_fem2g.extpagain = sprom->fem.ghz2.extpa_gain; pi 14559 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->srom_fem2g.pdetrange = sprom->fem.ghz2.pdet_range; pi 14560 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->srom_fem2g.triso = sprom->fem.ghz2.tr_iso; pi 14561 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->srom_fem2g.antswctrllut = sprom->fem.ghz2.antswlut; pi 14563 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->srom_fem5g.tssipos = sprom->fem.ghz5.tssipos; pi 14564 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->srom_fem5g.extpagain = sprom->fem.ghz5.extpa_gain; pi 14565 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->srom_fem5g.pdetrange = sprom->fem.ghz5.pdet_range; pi 14566 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->srom_fem5g.triso = sprom->fem.ghz5.tr_iso; pi 14568 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->srom_fem5g.antswctrllut = sprom->fem.ghz5.antswlut; pi 14570 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->srom_fem5g.antswctrllut = sprom->fem.ghz2.antswlut; pi 14572 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpower_ipa_upd(pi); pi 14574 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->phy_txcore_disable_temp = sprom->tempthresh; pi 14575 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phy_txcore_disable_temp == 0) pi 14576 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->phy_txcore_disable_temp = PHY_CHAIN_TX_DISABLE_TEMP; pi 14578 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->phy_tempsense_offset = sprom->tempoffset; pi 14579 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phy_tempsense_offset != 0) { pi 14580 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phy_tempsense_offset > pi 14582 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->phy_tempsense_offset = NPHY_SROM_MAXTEMPOFFSET; pi 14583 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if (pi->phy_tempsense_offset < (NPHY_SROM_TEMPSHIFT + pi 14585 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->phy_tempsense_offset = NPHY_SROM_MINTEMPOFFSET; pi 14587 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->phy_tempsense_offset -= NPHY_SROM_TEMPSHIFT; pi 14590 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->phy_txcore_enable_temp = pi 14591 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->phy_txcore_disable_temp - PHY_HYSTERESIS_DELTATEMP; pi 14593 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->phycal_tempdelta = sprom->phycal_tempdelta; pi 14594 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phycal_tempdelta > NPHY_CAL_MAXTEMPDELTA) pi 14595 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->phycal_tempdelta = 0; pi 14597 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_srom_read_ppr_nphy(pi); pi 14602 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bool wlc_phy_attach_nphy(struct brcms_phy *pi) pi 14606 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3) && NREV_LT(pi->pubpi.phy_rev, 6)) pi 14607 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->phyhang_avoid = true; pi 14609 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3) && NREV_LT(pi->pubpi.phy_rev, 7)) { pi 14610 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_gband_spurwar_en = true; pi 14611 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->sh->boardflags2 & BFL2_SPUR_WAR) pi 14612 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_aband_spurwar_en = true; pi 14614 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 6) && NREV_LT(pi->pubpi.phy_rev, 7)) { pi 14615 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->sh->boardflags2 & BFL2_2G_SPUR_WAR) pi 14616 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_gband_spurwar2_en = true; pi 14619 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->n_preamble_override = AUTO; pi 14620 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_IS(pi->pubpi.phy_rev, 3) || NREV_IS(pi->pubpi.phy_rev, 4)) pi 14621 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->n_preamble_override = BRCMS_N_PREAMBLE_MIXEDMODE; pi 14623 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txrx_chain = AUTO; pi 14624 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->phy_scraminit = AUTO; pi 14626 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_rxcalparams = 0x010100B5; pi 14628 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_perical = PHY_PERICAL_MPHASE; pi 14629 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mphase_cal_phase_id = MPHASE_CAL_STATE_IDLE; pi 14630 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mphase_txcal_numcmds = MPHASE_TXCAL_NUMCMDS; pi 14632 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_gain_boost = true; pi 14633 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_elna_gain_config = false; pi 14634 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->radio_is_on = false; pi 14636 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (i = 0; i < pi->pubpi.phy_corenum; i++) pi 14637 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrindex[i].index = AUTO; pi 14639 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwrctrl_config_nphy(pi); pi 14640 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_txpwrctrl == PHY_TPC_HW_ON) pi 14641 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->hwpwrctrl_capable = true; pi 14643 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->pi_fptr.init = wlc_phy_init_nphy; pi 14644 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->pi_fptr.calinit = wlc_phy_cal_init_nphy; pi 14645 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->pi_fptr.chanset = wlc_phy_chanspec_set_nphy; pi 14646 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->pi_fptr.txpwrrecalc = wlc_phy_txpower_recalc_target_nphy; pi 14648 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (!wlc_phy_txpwr_srom_read_nphy(pi)) pi 14654 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static s32 get_rf_pwr_offset(struct brcms_phy *pi, s16 pga_gn, s16 pad_gn) pi 14658 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 14659 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->pubpi.radiorev == 3) || pi 14660 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->pubpi.radiorev == 4) || pi 14661 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->pubpi.radiorev == 6)) pi 14665 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if (pi->pubpi.radiorev == 5) pi 14669 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if ((pi->pubpi.radiorev == 7) pi 14670 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == pi 14676 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->pubpi.radiorev == 3) || pi 14677 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->pubpi.radiorev == 4) || pi 14678 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->pubpi.radiorev == 6)) pi 14682 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if ((pi->pubpi.radiorev == 7) pi 14683 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == pi 14692 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_update_mimoconfig_nphy(struct brcms_phy *pi, s32 preamble) pi 14700 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c val = read_phy_reg(pi, 0xed); pi 14707 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xed, val); pi 14710 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_ipa_set_tx_digi_filts_nphy(struct brcms_phy *pi) pi 14717 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, addr_offset[type] + j, pi 14721 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->bw == WL_CHANSPEC_BW_40) { pi 14723 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x186 + j, pi 14726 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 14728 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x186 + j, pi 14732 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_CHANNEL(pi->radio_chanspec) == 14) { pi 14734 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2c5 + j, pi 14740 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_ipa_restore_tx_digi_filts_nphy(struct brcms_phy *pi) pi 14744 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->bw == WL_CHANSPEC_BW_40) { pi 14746 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x195 + j, pi 14750 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x186 + j, pi 14756 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_set_rfseq_nphy(struct brcms_phy *pi, u8 cmd, const u8 *events, pi 14762 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NREV_GE(pi->pubpi.phy_rev, pi 14766 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 14767 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, true); pi 14770 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, len, t1_offset, 8, pi 14773 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, len, t2_offset, 8, pi 14777 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, 1, pi 14779 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, 1, pi 14783 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 14784 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, false); pi 14787 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static u16 wlc_phy_read_lpf_bw_ctl_nphy(struct brcms_phy *pi, u16 offset) pi 14793 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS40(pi->radio_chanspec)) pi 14800 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_RFSEQ, 1, pi 14810 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(struct brcms_phy *pi, u16 field, u16 value, pi 14817 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 15061 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, en_addr, ~en_mask); pi 15062 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, val_addr, ~val_mask); pi 15067 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, en_addr, en_mask); pi 15070 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, val_addr, pi 15080 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_adjust_lnagaintbl_nphy(struct brcms_phy *pi) pi 15089 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 15090 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, true); pi 15092 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_gain_boost) { pi 15093 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((CHSPEC_IS2G(pi->radio_chanspec))) { pi 15099 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c curr_channel = CHSPEC_CHANNEL(pi->radio_chanspec); pi 15117 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (core = 0; core < pi->pubpi.phy_corenum; core++) { pi 15118 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_elna_gain_config) { pi 15130 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, core, 4, 8, 16, regval); pi 15136 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x1e, (0xff << 0), (minmax_gain[0] << 0)); pi 15137 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x34, (0xff << 0), (minmax_gain[1] << 0)); pi 15139 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 15140 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, false); pi 15144 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_war_force_trsw_to_R_cliplo_nphy(struct brcms_phy *pi, u8 core) pi 15147 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x38, 0x4); pi 15148 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) pi 15149 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x37, 0x0060); pi 15151 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x37, 0x1080); pi 15153 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2ae, 0x4); pi 15154 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) pi 15155 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2ad, 0x0060); pi 15157 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2ad, 0x1080); pi 15161 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_war_txchain_upd_nphy(struct brcms_phy *pi, u8 txchain) pi 15168 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_war_force_trsw_to_R_cliplo_nphy(pi, PHY_CORE_0); pi 15171 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_war_force_trsw_to_R_cliplo_nphy(pi, PHY_CORE_1); pi 15174 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_workarounds_nphy_gainctrl_2057_rev5(struct brcms_phy *pi) pi 15182 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x1c, (0x1 << 13), (1 << 13)); pi 15183 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x32, (0x1 << 13), (1 << 13)); pi 15185 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x289, (0xff << 0), (0x46 << 0)); pi 15187 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x283, (0xff << 0), (0x3c << 0)); pi 15188 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x280, (0xff << 0), (0x3c << 0)); pi 15190 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAIN1, 4, 0x8, 8, pi 15192 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAIN2, 4, 0x8, 8, pi 15195 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAIN1, 4, 0x10, 8, pi 15197 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAIN2, 4, 0x10, 8, pi 15200 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAIN1, 10, 0x20, 8, pi 15202 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAIN2, 10, 0x20, 8, pi 15205 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAINBITS1, 10, 0x20, 8, pi 15207 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAINBITS2, 10, 0x20, 8, pi 15210 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x37, 0x74); pi 15211 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2ad, 0x74); pi 15212 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x38, 0x18); pi 15213 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2ae, 0x18); pi 15215 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2b, 0xe8); pi 15216 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x41, 0xe8); pi 15218 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS20(pi->radio_chanspec)) { pi 15220 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x300, (0x3f << 0), (0x12 << 0)); pi 15221 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x301, (0x3f << 0), (0x12 << 0)); pi 15224 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x300, (0x3f << 0), (0x10 << 0)); pi 15225 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x301, (0x3f << 0), (0x10 << 0)); pi 15229 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_workarounds_nphy_gainctrl_2057_rev6(struct brcms_phy *pi) pi 15256 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x1c, (0x1 << 13), (1 << 13)); pi 15257 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x32, (0x1 << 13), (1 << 13)); pi 15259 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c currband = read_phy_reg(pi, 0x09) & NPHY_BandControl_currentBand; pi 15264 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAIN1, 4, 8, 8, pi 15266 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAIN2, 4, 8, 8, pi 15269 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x283, (0xff << 0), (0x40 << 0)); pi 15271 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS40(pi->radio_chanspec)) { pi 15272 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x280, (0xff << 0), (0x3e << 0)); pi 15273 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x283, (0xff << 0), (0x3e << 0)); pi 15276 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x289, (0xff << 0), (0x46 << 0)); pi 15278 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS20(pi->radio_chanspec)) { pi 15279 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x300, (0x3f << 0), (13 << 0)); pi 15280 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x301, (0x3f << 0), (13 << 0)); pi 15294 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c freq = CHAN5G_FREQ(CHSPEC_CHANNEL(pi->radio_chanspec)); pi 15295 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS20(pi->radio_chanspec)) { pi 15366 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x20, init_gaincode); pi 15367 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2a7, init_gaincode); pi 15369 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, pi 15370 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->pubpi.phy_corenum, 0x106, 16, pi 15373 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x22, clip1hi_gaincode); pi 15374 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2a9, clip1hi_gaincode); pi 15376 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x36, clip1md_gaincode_B); pi 15377 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2ac, clip1md_gaincode_B); pi 15379 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x37, clip1lo_gaincode); pi 15380 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2ad, clip1lo_gaincode); pi 15381 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x38, clip1lo_gaincode_B); pi 15382 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2ae, clip1lo_gaincode_B); pi 15384 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAIN1, 10, 0x20, 8, pi 15386 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAIN2, 10, 0x20, 8, pi 15389 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAINBITS1, 10, 0x20, 8, pi 15391 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAINBITS2, 10, 0x20, 8, pi 15394 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x283, (0xff << 0), (crsminu_th << 0)); pi 15397 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2b, nbclip_th); pi 15398 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x41, nbclip_th); pi 15401 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x300, (0x3f << 0), (w1clip_th << 0)); pi 15402 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x301, (0x3f << 0), (w1clip_th << 0)); pi 15404 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x2e4, pi 15407 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x2e4, pi 15410 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS20(pi->radio_chanspec)) { pi 15412 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAIN1, 4, 8, 8, pi 15414 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAIN2, 4, 8, 8, pi 15417 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAIN1, 4, 0x10, pi 15419 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAIN2, 4, 0x10, pi 15422 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x24, clip1md_gaincode); pi 15423 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2ab, clip1md_gaincode); pi 15425 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x280, (0xff << 0), (crsminl_th << 0)); pi 15430 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_workarounds_nphy_gainctrl(struct brcms_phy *pi) pi 15585 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c triso = (CHSPEC_IS5G(pi->radio_chanspec)) ? pi->srom_fem5g.triso : pi 15586 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->srom_fem2g.triso; pi 15588 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 15589 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev == 5) { pi 15590 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_workarounds_nphy_gainctrl_2057_rev5(pi); pi 15591 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (pi->pubpi.radiorev == 7) { pi 15592 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_workarounds_nphy_gainctrl_2057_rev6(pi); pi 15594 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x283, (0xff << 0), (0x44 << 0)); pi 15595 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x280, (0xff << 0), (0x44 << 0)); pi 15597 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if ((pi->pubpi.radiorev == 3) pi 15598 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 8)) { pi 15599 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_workarounds_nphy_gainctrl_2057_rev6(pi); pi 15601 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev == 8) { pi 15602 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x283, pi 15604 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x280, pi 15608 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_workarounds_nphy_gainctrl_2057_rev6(pi); pi 15610 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 15612 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa0, (0x1 << 6), (1 << 6)); pi 15614 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x1c, (0x1 << 13), (1 << 13)); pi 15615 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x32, (0x1 << 13), (1 << 13)); pi 15618 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, 0x09) & NPHY_BandControl_currentBand; pi 15620 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 6)) { pi 15621 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev == 11) { pi 15641 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->sh->boardflags & BFL_EXTLNA) { pi 15706 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_IS(pi->pubpi.phy_rev, 5)) { pi 15709 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->sh->boardflags & BFL_EXTLNA) { pi 15765 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_IS(pi->pubpi.phy_rev, 4)) { pi 15796 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 6)) { pi 15808 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->pubpi.radiorev == 11) && pi 15809 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (CHSPEC_IS40(pi->radio_chanspec) == 0)) pi 15816 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_IS(pi->pubpi.phy_rev, 5)) { pi 15831 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_IS(pi->pubpi.phy_rev, 4)) { pi 15836 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->sh->boardflags & BFL_EXTLNA_5GHz) { pi 15873 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 15876 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 15880 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, (RADIO_2056_RX_LNAG2_IDAC | RADIO_2056_RX0), pi 15882 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, (RADIO_2056_RX_LNAG2_IDAC | RADIO_2056_RX1), pi 15885 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, (RADIO_2056_RX_RSSI_POLE | RADIO_2056_RX0), pi 15887 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, (RADIO_2056_RX_RSSI_POLE | RADIO_2056_RX1), pi 15890 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, (RADIO_2056_RX_RSSI_GAIN | RADIO_2056_RX0), pi 15892 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, (RADIO_2056_RX_RSSI_GAIN | RADIO_2056_RX1), pi 15895 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 15898 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 15902 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, (RADIO_2056_RX_LNAA2_IDAC | RADIO_2056_RX0), pi 15904 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, (RADIO_2056_RX_LNAA2_IDAC | RADIO_2056_RX1), pi 15907 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAIN1, 4, 8, pi 15909 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAIN2, 4, 8, pi 15912 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAIN1, 4, 0x10, pi 15914 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAIN2, 4, 0x10, pi 15917 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAIN1, 10, 0x20, pi 15919 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAIN2, 10, 0x20, pi 15922 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAINBITS1, 10, 0x20, pi 15924 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAINBITS2, 10, 0x20, pi 15927 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAIN1, 6, 0x40, pi 15929 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAIN2, 6, 0x40, pi 15931 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAINBITS1, 6, 0x40, pi 15933 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_GAINBITS2, 6, 0x40, pi 15936 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x20, init_gaincode); pi 15937 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2a7, init_gaincode); pi 15939 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, pi 15940 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->pubpi.phy_corenum, 0x106, 16, pi 15943 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x22, clip1hi_gaincode); pi 15944 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2a9, clip1hi_gaincode); pi 15946 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x24, clip1md_gaincode); pi 15947 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2ab, clip1md_gaincode); pi 15949 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x37, clip1lo_gaincode); pi 15950 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2ad, clip1lo_gaincode); pi 15952 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x27d, (0xff << 0), (crsmin_th << 0)); pi 15953 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x280, (0xff << 0), (crsminl_th << 0)); pi 15954 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x283, (0xff << 0), (crsminu_th << 0)); pi 15956 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2b, nbclip_th); pi 15957 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x41, nbclip_th); pi 15959 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x27, (0x3f << 0), (w1clip_th << 0)); pi 15960 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x3d, (0x3f << 0), (w1clip_th << 0)); pi 15962 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x150, 0x809c); pi 15966 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x1c, (0x1 << 13), (1 << 13)); pi 15967 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x32, (0x1 << 13), (1 << 13)); pi 15969 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2b, 0x84); pi 15970 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x41, 0x84); pi 15972 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS20(pi->radio_chanspec)) { pi 15973 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x6b, 0x2b); pi 15974 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x6c, 0x2b); pi 15975 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x6d, 0x9); pi 15976 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x6e, 0x9); pi 15980 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x27, (0x3f << 0), (w1th << 0)); pi 15981 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x3d, (0x3f << 0), (w1th << 0)); pi 15983 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS20(pi->radio_chanspec)) { pi 15984 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x1c, (0x1f << 0), (0x1 << 0)); pi 15985 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x32, (0x1f << 0), (0x1 << 0)); pi 15987 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x1d, (0x1f << 0), (0x1 << 0)); pi 15988 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x33, (0x1f << 0), (0x1 << 0)); pi 15991 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x150, 0x809c); pi 15993 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_gain_boost) pi 15994 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((CHSPEC_IS2G(pi->radio_chanspec)) && pi 15995 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (CHSPEC_IS40(pi->radio_chanspec))) pi 15999 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if (CHSPEC_IS40(pi->radio_chanspec)) pi 16004 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x20, (0x1f << 7), (hpf_code << 7)); pi 16005 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x36, (0x1f << 7), (hpf_code << 7)); pi 16009 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 7, 4, 0x106, 16, regval); pi 16011 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_adjust_lnagaintbl_nphy(pi); pi 16013 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_elna_gain_config) { pi 16018 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 2, 4, 8, 16, regval); pi 16019 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 3, 4, 8, 16, regval); pi 16023 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 7, 4, 0x106, 16, regval); pi 16026 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_IS(pi->pubpi.phy_rev, 2)) { pi 16029 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 0, 21, 32, 16, regval); pi 16030 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 1, 21, 32, 16, regval); pi 16034 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 2, 21, 32, 16, regval); pi 16035 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 3, 21, 32, 16, regval); pi 16038 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_set_rfseq_nphy(pi, NPHY_RFSEQ_UPDATEGAINU, pi 16043 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x153, (0xff << 8), (90 << 8)); pi 16045 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) pi 16046 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 16052 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_workarounds_nphy_rev7(struct brcms_phy *pi) pi 16106 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_IS(pi->pubpi.phy_rev, 7)) { pi 16107 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x221, (0x1 << 4), (1 << 4)); pi 16109 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x160, (0x7f << 0), (32 << 0)); pi 16110 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x160, (0x7f << 8), (39 << 8)); pi 16111 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x161, (0x7f << 0), (46 << 0)); pi 16112 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x161, (0x7f << 8), (51 << 8)); pi 16113 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x162, (0x7f << 0), (55 << 0)); pi 16114 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x162, (0x7f << 8), (58 << 8)); pi 16115 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x163, (0x7f << 0), (60 << 0)); pi 16116 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x163, (0x7f << 8), (62 << 8)); pi 16117 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x164, (0x7f << 0), (62 << 0)); pi 16118 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x164, (0x7f << 8), (63 << 8)); pi 16119 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x165, (0x7f << 0), (63 << 0)); pi 16120 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x165, (0x7f << 8), (64 << 8)); pi 16121 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x166, (0x7f << 0), (64 << 0)); pi 16122 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x166, (0x7f << 8), (64 << 8)); pi 16123 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x167, (0x7f << 0), (64 << 0)); pi 16124 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x167, (0x7f << 8), (64 << 8)); pi 16127 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LE(pi->pubpi.phy_rev, 8)) { pi 16128 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x23f, 0x1b0); pi 16129 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x240, 0x1b0); pi 16132 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 8)) pi 16133 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xbd, (0xff << 0), (114 << 0)); pi 16135 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 0x00, 16, pi 16137 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 0x10, 16, pi 16140 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_CMPMETRICDATAWEIGHTTBL, pi 16143 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_CMPMETRICDATAWEIGHTTBL, pi 16146 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, pi 16148 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, 2, 0x16e, 16, pi 16151 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi)) pi 16152 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_set_rfseq_nphy(pi, NPHY_RFSEQ_RX2TX, pi 16158 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x299, (0x3 << 14), (0x1 << 14)); pi 16159 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x29d, (0x3 << 14), (0x1 << 14)); pi 16161 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tx_lpf_bw_ofdm_20mhz = wlc_phy_read_lpf_bw_ctl_nphy(pi, 0x154); pi 16162 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tx_lpf_bw_ofdm_40mhz = wlc_phy_read_lpf_bw_ctl_nphy(pi, 0x159); pi 16163 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tx_lpf_bw_11b = wlc_phy_read_lpf_bw_ctl_nphy(pi, 0x152); pi 16165 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi)) { pi 16167 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (((pi->pubpi.radiorev == 5) pi 16168 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c && (CHSPEC_IS40(pi->radio_chanspec) == 1)) pi 16169 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 7) pi 16170 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 8)) { pi 16173 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2057_RCCAL_BCAP_VAL); pi 16175 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2057_RCCAL_SCAP_VAL); pi 16180 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->pubpi.radiorev == 5) && pi 16181 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (CHSPEC_IS40(pi->radio_chanspec) == 1)) { pi 16190 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if ((pi->pubpi.radiorev == 7) pi 16191 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 8)) { pi 16196 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 16214 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev == 5) { pi 16220 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2057_RCCAL_BCAP_VAL); pi 16222 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2057_RCCAL_SCAP_VAL); pi 16249 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, 1, pi 16252 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, 1, pi 16255 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, 1, pi 16258 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, 1, pi 16261 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, 1, pi 16264 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, 1, pi 16267 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, 1, pi 16270 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, 1, pi 16275 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 4), 1, 0x3, 0, pi 16279 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x32f, 0x3); pi 16281 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->pubpi.radiorev == 4) || (pi->pubpi.radiorev == 6)) pi 16282 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 2), 1, 0x3, 0, pi 16285 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->pubpi.radiorev == 3) || (pi->pubpi.radiorev == 4) || pi 16286 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->pubpi.radiorev == 6)) { pi 16287 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->sh->sromrev >= 8) pi 16288 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c && (pi->sh->boardflags2 & BFL2_IPALVLSHIFT_3P3)) pi 16292 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_GPAIO_CONFIG, 0x5); pi 16293 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_GPAIO_SEL1, 0x30); pi 16294 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_GPAIO_SEL0, 0x0); pi 16295 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_radio_reg(pi, RADIO_2057_RXTXBIAS_CONFIG_CORE0, 0x1); pi 16296 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_radio_reg(pi, RADIO_2057_RXTXBIAS_CONFIG_CORE1, 0x1); pi 16312 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 16314 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG4(pi, RADIO_2057, CORE, pi 16317 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG4(pi, RADIO_2057, CORE, pi 16320 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG4(pi, RADIO_2057, CORE, pi 16328 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi)) { pi 16329 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 16330 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->pubpi.radiorev == 3) pi 16331 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 4) pi 16332 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 6)) pi 16337 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG4(pi, RADIO_2057, pi 16343 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev == 5) { pi 16345 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG4(pi, RADIO_2057, pi 16349 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG4(pi, RADIO_2057, pi 16353 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG4(pi, RADIO_2057, pi 16357 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG4(pi, RADIO_2057, pi 16361 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG4(pi, RADIO_2057, pi 16366 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if ((pi->pubpi.radiorev == 7) || pi 16367 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->pubpi.radiorev == 8)) { pi 16369 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS40(pi->radio_chanspec) == 0) { pi 16370 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG4(pi, RADIO_2057, CORE, pi 16372 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG4(pi, RADIO_2057, CORE, pi 16375 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG4(pi, RADIO_2057, CORE, pi 16377 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG4(pi, RADIO_2057, CORE, pi 16385 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->radio_chanspec)); pi 16388 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG4(pi, RADIO_2057, CORE, pi 16390 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG4(pi, RADIO_2057, CORE, pi 16396 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev != 5) { pi 16398 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG4(pi, RADIO_2057, CORE, coreNum, pi 16400 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG4(pi, RADIO_2057, CORE, coreNum, pi 16406 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev == 4) { pi 16407 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 0x05, 16, pi 16409 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 0x15, 16, pi 16413 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG4(pi, RADIO_2057, CORE, coreNum, pi 16415 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG4(pi, RADIO_2057, CORE, coreNum, pi 16417 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG4(pi, RADIO_2057, CORE, coreNum, pi 16421 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa6, (0x1 << 2), (0x1 << 2)); pi 16422 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x8f, (0x1 << 2), (0x1 << 2)); pi 16423 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa7, (0x1 << 2), (0x1 << 2)); pi 16424 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa5, (0x1 << 2), (0x1 << 2)); pi 16426 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa6, (0x1 << 0), 0); pi 16427 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x8f, (0x1 << 0), (0x1 << 0)); pi 16428 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa7, (0x1 << 0), 0); pi 16429 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa5, (0x1 << 0), (0x1 << 0)); pi 16431 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 0x05, 16, pi 16433 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 0x15, 16, pi 16436 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa6, (0x1 << 2), 0); pi 16437 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x8f, (0x1 << 2), 0); pi 16438 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa7, (0x1 << 2), 0); pi 16439 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa5, (0x1 << 2), 0); pi 16442 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x6a, 0x2); pi 16444 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_NOISEVAR, 1, 256, 32, pi 16447 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, 2, 0x138, 16, pi 16450 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, 1, 0x141, 16, pi 16453 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, 3, 0x133, 16, pi 16456 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, 2, 0x146, 16, pi 16459 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, 1, 0x123, 16, pi 16462 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, 1, 0x12A, 16, pi 16465 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS40(pi->radio_chanspec) == 0) { pi 16466 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_NOISEVAR, 1, 3, pi 16468 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_NOISEVAR, 1, pi 16472 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_NOISEVAR, 1, 3, pi 16476 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_NOISEVAR, 1, pi 16480 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_workarounds_nphy_gainctrl(pi); pi 16482 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pdetrange = (CHSPEC_IS5G(pi->radio_chanspec)) ? pi 16483 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->srom_fem5g.pdetrange : pi->srom_fem2g.pdetrange; pi 16486 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c chan_freq_range = wlc_phy_get_chan_freq_range_nphy(pi, 0); pi 16507 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radioid == BCM2057_ID) { pi 16508 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->pubpi.radiorev == 5) pi 16509 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 7) pi 16510 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 8)) { pi 16544 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 4, 0x08, 16, pi 16546 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 4, 0x18, 16, pi 16548 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 4, 0x0c, 16, pi 16550 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 4, 0x1c, 16, pi 16554 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_workarounds_nphy_rev3(struct brcms_phy *pi) pi 16610 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x23f, 0x1f8); pi 16611 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x240, 0x1f8); pi 16613 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_CMPMETRICDATAWEIGHTTBL, pi 16616 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_CMPMETRICDATAWEIGHTTBL, pi 16625 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x145, alpha0); pi 16626 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x146, alpha1); pi 16627 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x147, alpha2); pi 16628 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x148, beta0); pi 16629 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x149, beta1); pi 16630 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x14a, beta2); pi 16632 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x38, 0xC); pi 16633 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2ae, 0xC); pi 16635 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_set_rfseq_nphy(pi, NPHY_RFSEQ_TX2RX, pi 16640 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi)) pi 16641 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_set_rfseq_nphy(pi, NPHY_RFSEQ_RX2TX, pi 16646 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->sh->hw_phyrxchain != 0x3) && pi 16647 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->sh->hw_phyrxchain != pi->sh->hw_phytxchain)) { pi 16649 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi)) { pi 16655 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_set_rfseq_nphy(pi, NPHY_RFSEQ_RX2TX, pi 16661 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) pi 16662 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x6a, 0x2); pi 16664 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x6a, 0x9c40); pi 16666 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x294, (0xf << 8), (7 << 8)); pi 16668 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS40(pi->radio_chanspec) == 0) { pi 16669 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_NOISEVAR, 1, 3, pi 16671 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_NOISEVAR, 1, pi 16675 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_NOISEVAR, 1, 3, pi 16679 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_NOISEVAR, 1, pi 16683 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_workarounds_nphy_gainctrl(pi); pi 16685 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 0x00, 16, pi 16687 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 0x10, 16, pi 16690 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pdetrange = (CHSPEC_IS5G(pi->radio_chanspec)) ? pi 16691 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->srom_fem5g.pdetrange : pi->srom_fem2g.pdetrange; pi 16694 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 4)) { pi 16701 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c chan_freq_range = wlc_phy_get_chan_freq_range_nphy(pi, 0); pi 16720 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 4, pi 16722 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 4, pi 16724 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 4, pi 16726 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 4, pi 16729 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 4, pi 16731 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 4, pi 16733 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 4, pi 16735 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 4, pi 16742 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 6)) { pi 16744 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_get_chan_freq_range_nphy(pi, 0); pi 16752 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_IS(pi->pubpi.phy_rev, 5)) { pi 16757 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 4, pi 16759 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 4, pi 16761 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 4, pi 16763 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 4, pi 16766 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c chan_freq_range = wlc_phy_get_chan_freq_range_nphy(pi, 0); pi 16767 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((NREV_GE(pi->pubpi.phy_rev, 4)) && pi 16772 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 4, pi 16774 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 4, pi 16776 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 4, pi 16778 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 4, pi 16786 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c chan_freq_range = wlc_phy_get_chan_freq_range_nphy(pi, 0); pi 16801 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 4, pi 16803 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 4, pi 16808 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 4, pi 16810 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 4, pi 16814 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, (RADIO_2056_RX_MIXA_MAST_BIAS | RADIO_2056_RX0), 0x0); pi 16815 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, (RADIO_2056_RX_MIXA_MAST_BIAS | RADIO_2056_RX1), 0x0); pi 16817 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, (RADIO_2056_RX_MIXA_BIAS_MAIN | RADIO_2056_RX0), 0x6); pi 16818 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, (RADIO_2056_RX_MIXA_BIAS_MAIN | RADIO_2056_RX1), 0x6); pi 16820 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, (RADIO_2056_RX_MIXA_BIAS_AUX | RADIO_2056_RX0), 0x7); pi 16821 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, (RADIO_2056_RX_MIXA_BIAS_AUX | RADIO_2056_RX1), 0x7); pi 16823 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, (RADIO_2056_RX_MIXA_LOB_BIAS | RADIO_2056_RX0), 0x88); pi 16824 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, (RADIO_2056_RX_MIXA_LOB_BIAS | RADIO_2056_RX1), 0x88); pi 16826 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, (RADIO_2056_RX_MIXA_CMFB_IDAC | RADIO_2056_RX0), 0x0); pi 16827 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, (RADIO_2056_RX_MIXA_CMFB_IDAC | RADIO_2056_RX1), 0x0); pi 16829 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, (RADIO_2056_RX_MIXG_CMFB_IDAC | RADIO_2056_RX0), 0x0); pi 16830 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, (RADIO_2056_RX_MIXG_CMFB_IDAC | RADIO_2056_RX1), 0x0); pi 16832 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c triso = (CHSPEC_IS5G(pi->radio_chanspec)) ? pi 16833 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->srom_fem5g.triso : pi->srom_fem2g.triso; pi 16835 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_war_force_trsw_to_R_cliplo_nphy(pi, PHY_CORE_0); pi 16836 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_war_force_trsw_to_R_cliplo_nphy(pi, PHY_CORE_1); pi 16839 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_war_txchain_upd_nphy(pi, pi->sh->hw_phytxchain); pi 16841 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (((pi->sh->boardflags2 & BFL2_APLL_WAR) && pi 16842 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (CHSPEC_IS5G(pi->radio_chanspec))) || pi 16843 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (((pi->sh->boardflags2 & BFL2_GPLL_WAR) || pi 16844 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->sh->boardflags2 & BFL2_GPLL_WAR2)) && pi 16845 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (CHSPEC_IS2G(pi->radio_chanspec)))) { pi 16854 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_CMPMETRICDATAWEIGHTTBL, pi 16856 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_CMPMETRICDATAWEIGHTTBL, pi 16858 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_CMPMETRICDATAWEIGHTTBL, pi 16861 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_IS(pi->pubpi.phy_rev, 4)) { pi 16862 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 16863 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 16866 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 16872 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (!pi->edcrs_threshold_lock) { pi 16873 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x224, 0x3eb); pi 16874 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x225, 0x3eb); pi 16875 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x226, 0x341); pi 16876 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x227, 0x341); pi 16877 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x228, 0x42b); pi 16878 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x229, 0x42b); pi 16879 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x22a, 0x381); pi 16880 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x22b, 0x381); pi 16881 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x22c, 0x42b); pi 16882 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x22d, 0x42b); pi 16883 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x22e, 0x381); pi 16884 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x22f, 0x381); pi 16887 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 6)) { pi 16889 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->sh->boardflags2 & BFL2_SINGLEANT_CCK) pi 16890 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_mhf(pi->sh->physhim, MHF4, pi 16896 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_workarounds_nphy_rev1(struct brcms_phy *pi) pi 16922 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->sh->boardflags2 & BFL2_SKWRKFEM_BRD || pi 16923 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->sh->boardtype == 0x8b)) { pi 16930 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec) && pi->phy_5g_pwrgain) { pi 16931 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_radio_reg(pi, RADIO_2055_CORE1_TX_RF_SPARE, 0xf7); pi 16932 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_radio_reg(pi, RADIO_2055_CORE2_TX_RF_SPARE, 0xf7); pi 16934 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_radio_reg(pi, RADIO_2055_CORE1_TX_RF_SPARE, 0x8); pi 16935 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_radio_reg(pi, RADIO_2055_CORE2_TX_RF_SPARE, 0x8); pi 16939 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 8, 1, 0, 16, ®val); pi 16940 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 8, 1, 0x10, 16, ®val); pi 16942 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 3)) { pi 16944 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 8, 1, 0x02, 16, ®val); pi 16945 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 8, 1, 0x12, 16, ®val); pi 16948 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 2)) { pi 16950 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 8, 1, 0x08, 16, ®val); pi 16951 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 8, 1, 0x18, 16, ®val); pi 16954 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 8, 1, 0x07, 16, ®val); pi 16955 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 8, 1, 0x17, 16, ®val); pi 16958 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 8, 1, 0x06, 16, ®val); pi 16959 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 8, 1, 0x16, 16, ®val); pi 16962 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xf8, 0x02d8); pi 16963 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xf9, 0x0301); pi 16964 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xfa, 0x02d8); pi 16965 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xfb, 0x0301); pi 16967 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_set_rfseq_nphy(pi, NPHY_RFSEQ_RX2TX, rfseq_rx2tx_events, pi 16971 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_set_rfseq_nphy(pi, NPHY_RFSEQ_TX2RX, rfseq_tx2rx_events, pi 16975 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_workarounds_nphy_gainctrl(pi); pi 16977 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 2)) { pi 16979 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (read_phy_reg(pi, 0xa0) & NPHY_MLenable) pi 16980 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_mhf(pi->sh->physhim, MHF3, pi 16984 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_IS(pi->pubpi.phy_rev, 2)) { pi 16985 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1e3, 0x0); pi 16986 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1e4, 0x0); pi 16989 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 2)) pi 16990 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x90, (0x1 << 7), 0); pi 16998 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x145, alpha0); pi 16999 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x146, alpha1); pi 17000 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x147, alpha2); pi 17001 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x148, beta0); pi 17002 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x149, beta1); pi 17003 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x14a, beta2); pi 17005 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 3)) { pi 17006 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x142, (0xf << 12), 0); pi 17008 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x192, 0xb5); pi 17009 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x193, 0xa4); pi 17010 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x194, 0x0); pi 17013 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_IS(pi->pubpi.phy_rev, 2)) pi 17014 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x221, pi 17019 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_workarounds_nphy(struct brcms_phy *pi) pi 17021 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) pi 17022 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_classifier_nphy(pi, NPHY_ClassifierCtrl_cck_en, 0); pi 17024 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_classifier_nphy(pi, NPHY_ClassifierCtrl_cck_en, 1); pi 17026 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 17027 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, true); pi 17029 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0xb1, NPHY_IQFlip_ADC1 | NPHY_IQFlip_ADC2); pi 17031 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 17032 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_workarounds_nphy_rev7(pi); pi 17033 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if (NREV_GE(pi->pubpi.phy_rev, 3)) pi 17034 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_workarounds_nphy_rev3(pi); pi 17036 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_workarounds_nphy_rev1(pi); pi 17038 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 17039 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, false); pi 17042 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_extpa_set_tx_digi_filts_nphy(struct brcms_phy *pi) pi 17048 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, addr_offset + j, pi 17052 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_clip_det_nphy(struct brcms_phy *pi, u8 write, u16 *vals) pi 17056 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c vals[0] = read_phy_reg(pi, 0x2c); pi 17057 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c vals[1] = read_phy_reg(pi, 0x42); pi 17059 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2c, vals[0]); pi 17060 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x42, vals[1]); pi 17064 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_ipa_internal_tssi_setup_nphy(struct brcms_phy *pi) pi 17068 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 17069 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (core = 0; core < pi->pubpi.phy_corenum; core++) { pi 17070 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 17071 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 17073 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 17076 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev != 5) pi 17077 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, pi 17080 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (!NREV_IS(pi->pubpi.phy_rev, 7)) pi 17081 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, pi 17084 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, pi 17087 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 17089 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 17091 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 17094 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev != 5) { pi 17095 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (!NREV_IS(pi->pubpi.phy_rev, 7)) pi 17096 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, pi 17100 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, pi 17105 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, IQCAL_VCM_HG, pi 17107 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, IQCAL_IDAC, pi 17109 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, TSSI_VCM, pi 17111 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, TSSI_MISC1, pi 17115 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_SYN(pi, RADIO_2056, RESERVED_ADDR31, pi 17116 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (CHSPEC_IS2G(pi->radio_chanspec)) ? 0x128 : pi 17118 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_SYN(pi, RADIO_2056, RESERVED_ADDR30, 0x0); pi 17119 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_SYN(pi, RADIO_2056, GPIO_MASTER1, 0x29); pi 17121 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (core = 0; core < pi->pubpi.phy_corenum; core++) { pi 17122 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, IQCAL_VCM_HG, pi 17124 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, IQCAL_IDAC, pi 17126 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, TSSI_VCM, pi 17128 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, TX_AMP_DET, pi 17130 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, TSSI_MISC1, pi 17132 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, TSSI_MISC2, pi 17134 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, TSSI_MISC3, pi 17137 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 17138 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 17141 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev != 5) pi 17142 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, pi 17144 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 5)) pi 17145 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, pi 17148 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, pi 17150 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 17153 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 17155 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 17157 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 17159 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 17167 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(struct brcms_phy *pi, u16 field, u16 value, pi 17175 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3) && NREV_LT(pi->pubpi.phy_rev, 7)) { pi 17280 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, en_addr, ~en_mask); pi 17281 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, val_addr, ~val_mask); pi 17286 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, en_addr, en_mask); pi 17289 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, val_addr, pi 17299 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, 0xec, ~field); pi 17302 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0xec, field); pi 17400 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, addr, mask, (value << shift)); pi 17403 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0xec, (0x1 << 0)); pi 17404 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0x78, (0x1 << 0)); pi 17406 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, 0xec, ~(0x1 << 0)); pi 17410 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_txpwrctrl_idle_tssi_nphy(struct brcms_phy *pi) pi 17415 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (SCAN_RM_IN_PROGRESS(pi) || PLT_INPROG_PHY(pi) || PHY_MUTED(pi)) pi 17419 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi)) pi 17420 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_ipa_internal_tssi_setup_nphy(pi); pi 17422 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 17423 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 12), pi 17426 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if (NREV_GE(pi->pubpi.phy_rev, 3)) pi 17427 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 13), 0, 3, 0); pi 17429 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stopplayback_nphy(pi); pi 17431 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_tx_tone_nphy(pi, 4000, 0, 0, 0, false); pi 17435 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_poll_rssi_nphy(pi, (u8) NPHY_RSSI_SEL_TSSI_2G, rssi_buf, pi 17437 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stopplayback_nphy(pi); pi 17438 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rssisel_nphy(pi, RADIO_MIMO_CORESEL_OFF, 0); pi 17440 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 17441 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 12), pi 17444 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if (NREV_GE(pi->pubpi.phy_rev, 3)) pi 17445 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 13), 0, 3, 1); pi 17447 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 17449 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_0].idle_tssi_2g = pi 17451 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_0].idle_tssi_5g = pi 17454 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_1].idle_tssi_2g = pi 17456 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_1].idle_tssi_5g = pi 17459 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_0].idle_tssi_2g = pi 17462 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_1].idle_tssi_2g = pi 17465 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_0].idle_tssi_5g = pi 17467 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[PHY_CORE_1].idle_tssi_5g = pi 17473 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_txpwr_limit_to_tbl_nphy(struct brcms_phy *pi) pi 17478 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->adj_pwr_tbl_nphy[idx] = pi->tx_power_offset[idx]; pi 17488 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS40(pi->radio_chanspec) pi 17492 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c idx = (CHSPEC_IS40(pi->radio_chanspec)) ? pi 17500 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c idx = (CHSPEC_IS40(pi->radio_chanspec)) ? pi 17506 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c idx = (CHSPEC_IS40(pi->radio_chanspec)) ? pi 17512 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c idx = (CHSPEC_IS40(pi->radio_chanspec)) ? pi 17517 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->adj_pwr_tbl_nphy[4 + 4 * (idx2++) + i] = pi 17518 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_power_offset[idx]; pi 17520 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->adj_pwr_tbl_nphy[4 + 4 * (idx2++) + i] = pi 17521 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_power_offset[idx]; pi 17522 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->adj_pwr_tbl_nphy[4 + 4 * (idx2++) + i] = pi 17523 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_power_offset[idx]; pi 17524 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->adj_pwr_tbl_nphy[4 + 4 * (idx2++) + i] = pi 17525 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_power_offset[idx++]; pi 17527 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->adj_pwr_tbl_nphy[4 + 4 * (idx2++) + i] = pi 17528 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_power_offset[idx++]; pi 17529 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->adj_pwr_tbl_nphy[4 + 4 * (idx2++) + i] = pi 17530 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_power_offset[idx]; pi 17531 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->adj_pwr_tbl_nphy[4 + 4 * (idx2++) + i] = pi 17532 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_power_offset[idx]; pi 17533 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->adj_pwr_tbl_nphy[4 + 4 * (idx2++) + i] = pi 17534 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_power_offset[idx++]; pi 17536 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->adj_pwr_tbl_nphy[4 + 4 * (idx2++) + i] = pi 17537 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_power_offset[idx++]; pi 17538 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->adj_pwr_tbl_nphy[4 + 4 * (idx2++) + i] = pi 17539 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_power_offset[idx]; pi 17540 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->adj_pwr_tbl_nphy[4 + 4 * (idx2++) + i] = pi 17541 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_power_offset[idx]; pi 17542 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->adj_pwr_tbl_nphy[4 + 4 * (idx2++) + i] = pi 17543 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_power_offset[idx++]; pi 17545 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->adj_pwr_tbl_nphy[4 + 4 * (idx2++) + i] = pi 17546 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_power_offset[idx]; pi 17547 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->adj_pwr_tbl_nphy[4 + 4 * (idx2++) + i] = pi 17548 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_power_offset[idx++]; pi 17549 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->adj_pwr_tbl_nphy[4 + 4 * (idx2++) + i] = pi 17550 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_power_offset[idx]; pi 17552 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->adj_pwr_tbl_nphy[4 + 4 * (idx2++) + i] = pi 17553 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_power_offset[idx]; pi 17555 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->adj_pwr_tbl_nphy[4 + 4 * (idx2++) + i] = pi 17556 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_power_offset[idx]; pi 17557 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->adj_pwr_tbl_nphy[4 + 4 * (idx2++) + i] = pi 17558 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_power_offset[idx]; pi 17559 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->adj_pwr_tbl_nphy[4 + 4 * (idx2++) + i] = pi 17560 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_power_offset[idx]; pi 17561 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->adj_pwr_tbl_nphy[4 + 4 * (idx2++) + i] = pi 17562 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_power_offset[idx]; pi 17566 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_txpwrctrl_pwr_setup_nphy(struct brcms_phy *pi) pi 17578 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (D11REV_IS(pi->sh->corerev, 11) || D11REV_IS(pi->sh->corerev, 12)) { pi 17579 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_mctrl(pi->sh->physhim, MCTL_PHYLOCK, MCTL_PHYLOCK); pi 17580 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (void)bcma_read32(pi->d11core, D11REGOFFS(maccontrol)); pi 17584 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 17585 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, true); pi 17587 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0x122, (0x1 << 0)); pi 17589 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) pi 17590 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, 0x1e7, (u16) (~(0x1 << 15))); pi 17592 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0x1e7, (0x1 << 15)); pi 17594 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (D11REV_IS(pi->sh->corerev, 11) || D11REV_IS(pi->sh->corerev, 12)) pi 17595 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_mctrl(pi->sh->physhim, MCTL_PHYLOCK, 0); pi 17597 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->sh->sromrev < 4) { pi 17598 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c idle_tssi[0] = pi->nphy_pwrctrl_info[0].idle_tssi_2g; pi 17599 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c idle_tssi[1] = pi->nphy_pwrctrl_info[1].idle_tssi_2g; pi 17608 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c chan_freq_range = wlc_phy_get_chan_freq_range_nphy(pi, 0); pi 17611 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c idle_tssi[0] = pi->nphy_pwrctrl_info[0].idle_tssi_2g; pi 17612 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c idle_tssi[1] = pi->nphy_pwrctrl_info[1].idle_tssi_2g; pi 17613 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c a1[0] = pi->nphy_pwrctrl_info[0].pwrdet_2g_a1; pi 17614 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c a1[1] = pi->nphy_pwrctrl_info[1].pwrdet_2g_a1; pi 17615 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c b0[0] = pi->nphy_pwrctrl_info[0].pwrdet_2g_b0; pi 17616 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c b0[1] = pi->nphy_pwrctrl_info[1].pwrdet_2g_b0; pi 17617 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c b1[0] = pi->nphy_pwrctrl_info[0].pwrdet_2g_b1; pi 17618 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c b1[1] = pi->nphy_pwrctrl_info[1].pwrdet_2g_b1; pi 17621 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c idle_tssi[0] = pi->nphy_pwrctrl_info[0].idle_tssi_5g; pi 17622 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c idle_tssi[1] = pi->nphy_pwrctrl_info[1].idle_tssi_5g; pi 17623 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c a1[0] = pi->nphy_pwrctrl_info[0].pwrdet_5gl_a1; pi 17624 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c a1[1] = pi->nphy_pwrctrl_info[1].pwrdet_5gl_a1; pi 17625 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c b0[0] = pi->nphy_pwrctrl_info[0].pwrdet_5gl_b0; pi 17626 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c b0[1] = pi->nphy_pwrctrl_info[1].pwrdet_5gl_b0; pi 17627 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c b1[0] = pi->nphy_pwrctrl_info[0].pwrdet_5gl_b1; pi 17628 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c b1[1] = pi->nphy_pwrctrl_info[1].pwrdet_5gl_b1; pi 17631 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c idle_tssi[0] = pi->nphy_pwrctrl_info[0].idle_tssi_5g; pi 17632 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c idle_tssi[1] = pi->nphy_pwrctrl_info[1].idle_tssi_5g; pi 17633 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c a1[0] = pi->nphy_pwrctrl_info[0].pwrdet_5gm_a1; pi 17634 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c a1[1] = pi->nphy_pwrctrl_info[1].pwrdet_5gm_a1; pi 17635 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c b0[0] = pi->nphy_pwrctrl_info[0].pwrdet_5gm_b0; pi 17636 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c b0[1] = pi->nphy_pwrctrl_info[1].pwrdet_5gm_b0; pi 17637 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c b1[0] = pi->nphy_pwrctrl_info[0].pwrdet_5gm_b1; pi 17638 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c b1[1] = pi->nphy_pwrctrl_info[1].pwrdet_5gm_b1; pi 17641 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c idle_tssi[0] = pi->nphy_pwrctrl_info[0].idle_tssi_5g; pi 17642 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c idle_tssi[1] = pi->nphy_pwrctrl_info[1].idle_tssi_5g; pi 17643 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c a1[0] = pi->nphy_pwrctrl_info[0].pwrdet_5gh_a1; pi 17644 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c a1[1] = pi->nphy_pwrctrl_info[1].pwrdet_5gh_a1; pi 17645 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c b0[0] = pi->nphy_pwrctrl_info[0].pwrdet_5gh_b0; pi 17646 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c b0[1] = pi->nphy_pwrctrl_info[1].pwrdet_5gh_b0; pi 17647 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c b1[0] = pi->nphy_pwrctrl_info[0].pwrdet_5gh_b1; pi 17648 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c b1[1] = pi->nphy_pwrctrl_info[1].pwrdet_5gh_b1; pi 17651 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c idle_tssi[0] = pi->nphy_pwrctrl_info[0].idle_tssi_2g; pi 17652 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c idle_tssi[1] = pi->nphy_pwrctrl_info[1].idle_tssi_2g; pi 17664 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c target_pwr_qtrdbm[0] = (s8) pi->tx_power_max; pi 17665 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c target_pwr_qtrdbm[1] = (s8) pi->tx_power_max; pi 17667 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 17668 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->srom_fem2g.tssipos) pi 17669 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0x1e9, (0x1 << 14)); pi 17671 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 17673 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi)) { pi 17674 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) pi 17675 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, pi 17680 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, pi 17687 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi)) { pi 17689 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_TX_TX_SSI_MUX | pi 17692 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->radio_chanspec)) ? pi 17694 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 17698 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->radio_chanspec)) ? pi 17702 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_TX_TX_SSI_MUX | pi 17704 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_TX_TX_SSI_MUX | pi 17710 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (D11REV_IS(pi->sh->corerev, 11) || D11REV_IS(pi->sh->corerev, 12)) { pi 17711 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_mctrl(pi->sh->physhim, MCTL_PHYLOCK, MCTL_PHYLOCK); pi 17712 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (void)bcma_read32(pi->d11core, D11REGOFFS(maccontrol)); pi 17716 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 17717 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x1e7, (0x7f << 0), pi 17720 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x1e7, (0x7f << 0), pi 17723 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 17724 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x222, (0xff << 0), pi 17726 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if (NREV_GT(pi->pubpi.phy_rev, 1)) pi 17727 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x222, (0xff << 0), pi 17730 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (D11REV_IS(pi->sh->corerev, 11) || D11REV_IS(pi->sh->corerev, 12)) pi 17731 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_mctrl(pi->sh->physhim, MCTL_PHYLOCK, 0); pi 17733 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1e8, (0x3 << 8) | (240 << 0)); pi 17735 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1e9, pi 17738 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1ea, pi 17752 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 3)) { pi 17762 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, tbl_id, tbl_len, tbl_offset, 32, pi 17766 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_limit_to_tbl_nphy(pi); pi 17767 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_CORE1TXPWRCTL, 84, 64, 8, pi 17768 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->adj_pwr_tbl_nphy); pi 17769 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_CORE2TXPWRCTL, 84, 64, 8, pi 17770 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->adj_pwr_tbl_nphy); pi 17772 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 17773 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, false); pi 17776 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static u32 *wlc_phy_get_ipa_gaintbl_nphy(struct brcms_phy *pi) pi 17780 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 17781 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 17782 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->pubpi.radiorev == 4) pi 17783 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 6)) pi 17786 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if (pi->pubpi.radiorev == 3) pi 17789 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if (pi->pubpi.radiorev == 5) pi 17792 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if ((pi->pubpi.radiorev == 7) pi 17793 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 8)) pi 17796 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_IS(pi->pubpi.phy_rev, 6)) { pi 17798 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->sh->chip == BCMA_CHIP_ID_BCM47162) pi 17800 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_IS(pi->pubpi.phy_rev, 5)) { pi 17807 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 17808 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->pubpi.radiorev == 3) || pi 17809 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->pubpi.radiorev == 4) || pi 17810 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->pubpi.radiorev == 6)) pi 17812 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if ((pi->pubpi.radiorev == 7) pi 17813 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 8)) pi 17824 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_restore_rssical_nphy(struct brcms_phy *pi) pi 17826 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 17827 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_rssical_chanspec_2G == 0) pi 17830 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 17831 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057_NB_MASTER_CORE0, pi 17833 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache. pi 17835 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057_NB_MASTER_CORE1, pi 17837 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache. pi 17840 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, pi 17843 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache. pi 17845 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, pi 17848 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache. pi 17852 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1a6, pi 17853 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_2G[0]); pi 17854 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1ac, pi 17855 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_2G[1]); pi 17856 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1b2, pi 17857 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_2G[2]); pi 17858 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1b8, pi 17859 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_2G[3]); pi 17860 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1a4, pi 17861 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_2G[4]); pi 17862 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1aa, pi 17863 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_2G[5]); pi 17864 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1b0, pi 17865 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_2G[6]); pi 17866 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1b6, pi 17867 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_2G[7]); pi 17868 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1a5, pi 17869 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_2G[8]); pi 17870 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1ab, pi 17871 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_2G[9]); pi 17872 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1b1, pi 17873 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_2G[10]); pi 17874 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1b7, pi 17875 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_2G[11]); pi 17878 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_rssical_chanspec_5G == 0) pi 17881 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 17882 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057_NB_MASTER_CORE0, pi 17884 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache. pi 17886 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057_NB_MASTER_CORE1, pi 17888 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache. pi 17891 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, pi 17894 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache. pi 17896 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, pi 17899 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache. pi 17903 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1a6, pi 17904 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_5G[0]); pi 17905 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1ac, pi 17906 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_5G[1]); pi 17907 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1b2, pi 17908 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_5G[2]); pi 17909 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1b8, pi 17910 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_5G[3]); pi 17911 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1a4, pi 17912 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_5G[4]); pi 17913 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1aa, pi 17914 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_5G[5]); pi 17915 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1b0, pi 17916 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_5G[6]); pi 17917 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1b6, pi 17918 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_5G[7]); pi 17919 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1a5, pi 17920 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_5G[8]); pi 17921 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1ab, pi 17922 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_5G[9]); pi 17923 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1b1, pi 17924 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_5G[10]); pi 17925 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1b7, pi 17926 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_5G[11]); pi 17930 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_internal_cal_txgain_nphy(struct brcms_phy *pi) pi 17934 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txcal_pwr_idx[0] = pi->nphy_cal_orig_pwr_idx[0]; pi 17935 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txcal_pwr_idx[1] = pi->nphy_cal_orig_pwr_idx[0]; pi 17936 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_index_nphy(pi, 1, pi->nphy_cal_orig_pwr_idx[0], true); pi 17937 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_index_nphy(pi, 2, pi->nphy_cal_orig_pwr_idx[1], true); pi 17939 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_RFSEQ, 2, 0x110, 16, pi 17942 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 17950 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, 2, 0x110, 16, pi 17954 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_precal_txgain_nphy(struct brcms_phy *pi) pi 17960 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->use_int_tx_iqlo_cal_nphy) { pi 17961 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 17962 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->pubpi.radiorev == 3) || pi 17963 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->pubpi.radiorev == 4) || pi 17964 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->pubpi.radiorev == 6)) { pi 17966 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txcal_pwr_idx[0] = pi 17968 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txcal_pwr_idx[1] = pi 17971 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, 3, pi 17976 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txcal_pwr_idx[0] = pi 17978 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txcal_pwr_idx[1] = pi 17981 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, 3, pi 17987 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_LT(pi->pubpi.phy_rev, 5)) { pi 17988 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_cal_txgainctrl_nphy(pi, 11, false); pi 17989 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->sh->hw_phytxchain != 3) { pi 17990 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txcal_pwr_idx[1] = pi 17991 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txcal_pwr_idx[0]; pi 17992 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_index_nphy(pi, 3, pi 17993 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 17999 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_IS(pi->pubpi.phy_rev, 5)) { pi 18000 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi)) { pi 18001 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 18002 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_cal_txgainctrl_nphy(pi, 12, pi 18005 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txcal_pwr_idx[0] = 80; pi 18006 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txcal_pwr_idx[1] = 80; pi 18007 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_index_nphy(pi, 3, 80, pi 18012 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_internal_cal_txgain_nphy(pi); pi 18016 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_IS(pi->pubpi.phy_rev, 6)) { pi 18017 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi)) { pi 18018 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) pi 18019 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_cal_txgainctrl_nphy(pi, 12, pi 18022 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_cal_txgainctrl_nphy(pi, 14, pi 18025 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_internal_cal_txgain_nphy(pi); pi 18031 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_cal_txgainctrl_nphy(pi, 10, false); pi 18035 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, 15, 1, 87, 16, pi 18036 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c &pi->nphy_txcal_bbmult); pi 18040 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrlintc_override_nphy(struct brcms_phy *pi, u8 field, u16 value, pi 18047 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 18048 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (core = 0; core < pi->pubpi.phy_corenum; core++) { pi 18056 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 7)) { pi 18060 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x91 : pi 18066 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, (core == PHY_CORE_0) ? 0x91 : pi 18069 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_force_rfseq_nphy(pi, pi 18073 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 18078 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 18083 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, pi 18088 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, 0x2ff, (u16) pi 18090 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0x2ff, (0x1 << 13)); pi 18091 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0x2ff, (0x1 << 0)); pi 18098 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 18105 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 18114 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x78, mask, val); pi 18116 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c SPINWAIT(((read_phy_reg(pi, 0x78) & val) pi 18118 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (WARN(read_phy_reg(pi, 0x78) & val, pi 18124 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 18130 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 18134 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) pi 18139 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 18144 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, pi 18150 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 18157 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 18164 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 18165 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 18169 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 18175 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 18183 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 18189 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 18197 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 18203 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 18210 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 18217 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 18218 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 18222 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 18228 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 18236 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 18242 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 18250 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 18256 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 18263 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 18274 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_cal_txgainctrl_nphy(struct brcms_phy *pi, s32 dBm_targetpower, pi 18290 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 18295 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS40(pi->radio_chanspec)) pi 18300 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_index_nphy(pi, 1, pi->nphy_cal_orig_pwr_idx[0], true); pi 18301 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_index_nphy(pi, 2, pi->nphy_cal_orig_pwr_idx[1], true); pi 18303 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 18304 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, true); pi 18306 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c phyhang_avoid_state = pi->phyhang_avoid; pi 18307 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->phyhang_avoid = false; pi 18309 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c phy_saveregs[0] = read_phy_reg(pi, 0x91); pi 18310 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c phy_saveregs[1] = read_phy_reg(pi, 0x92); pi 18311 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c phy_saveregs[2] = read_phy_reg(pi, 0xe7); pi 18312 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c phy_saveregs[3] = read_phy_reg(pi, 0xec); pi 18313 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrlintc_override_nphy(pi, NPHY_RfctrlIntc_override_PA, 1, pi 18318 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrlintc_override_nphy(pi, pi 18321 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrlintc_override_nphy(pi, pi 18325 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrlintc_override_nphy(pi, pi 18328 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrlintc_override_nphy(pi, pi 18333 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c orig_BBConfig = read_phy_reg(pi, 0x01); pi 18334 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x01, (0x1 << 15), 0); pi 18336 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, 15, 1, 87, 16, &m0m1); pi 18338 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (core = 0; core < pi->pubpi.phy_corenum; core++) { pi 18339 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c txpwrindex = (s32) pi->nphy_cal_orig_pwr_idx[core]; pi 18343 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_tx_tone_nphy(pi, freq_test, ampl_test, 0, 0, pi 18351 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 15, 1, 87, 16, &curr_m0m1); pi 18352 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 15, 1, 95, 16, &curr_m0m1); pi 18356 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_est_tonepwr_nphy(pi, qdBm_power, pi 18359 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_bb_mult_save = 0; pi 18360 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stopplayback_nphy(pi); pi 18370 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 18371 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_IS(pi->pubpi.phy_rev, 4) && pi 18372 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->srom_fem5g.extpagain == 3)) { pi 18377 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 5) && pi 18378 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->srom_fem2g.extpagain == 3)) { pi 18384 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_index_nphy(pi, (1 << core), pi 18388 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txcal_pwr_idx[core] = (u8) txpwrindex; pi 18394 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, 15, 1, 87, 16, &dbg_m0m1); pi 18396 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_tx_tone_nphy(pi, freq_test, ampl_test, 0, 0, pi 18399 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 15, 1, 87, 16, &dbg_m0m1); pi 18400 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 15, 1, 95, 16, &dbg_m0m1); pi 18404 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_est_tonepwr_nphy(pi, qdBm_power, pi 18407 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, 7, 1, (0x110 + core), 16, pi 18411 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_bb_mult_save = 0; pi 18412 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stopplayback_nphy(pi); pi 18416 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_index_nphy(pi, 1, pi->nphy_txcal_pwr_idx[0], true); pi 18417 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_index_nphy(pi, 2, pi->nphy_txcal_pwr_idx[1], true); pi 18419 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, 15, 1, 87, 16, &pi->nphy_txcal_bbmult); pi 18421 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x01, orig_BBConfig); pi 18423 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x91, phy_saveregs[0]); pi 18424 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x92, phy_saveregs[1]); pi 18425 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xe7, phy_saveregs[2]); pi 18426 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xec, phy_saveregs[3]); pi 18428 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->phyhang_avoid = phyhang_avoid_state; pi 18430 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 18431 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, false); pi 18434 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_savecal_nphy(struct brcms_phy *pi) pi 18440 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 18441 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, true); pi 18443 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 18445 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rx_iq_coeffs_nphy(pi, 0, pi 18446 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c &pi->calibration_cache. pi 18449 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 18451 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_2G; pi 18452 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 18454 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_2G[0] = pi 18455 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 18458 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_2G[1] = pi 18459 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 18462 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_2G[2] = pi 18463 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 18466 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_2G[3] = pi 18467 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 18471 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_2G[4] = pi 18472 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 18475 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_2G[5] = pi 18476 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 18479 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_2G[6] = pi 18480 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 18483 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_2G[7] = pi 18484 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 18488 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_2G[0] = pi 18489 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2055_CORE1_TX_VOS_CNCL); pi 18490 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_2G[1] = pi 18491 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2055_CORE2_TX_VOS_CNCL); pi 18492 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_2G[2] = pi 18493 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2055_CORE1_TX_BB_MXGM); pi 18494 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_2G[3] = pi 18495 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2055_CORE2_TX_BB_MXGM); pi 18498 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_iqcal_chanspec_2G = pi->radio_chanspec; pi 18499 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tbl_ptr = pi->calibration_cache.txcal_coeffs_2G; pi 18502 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rx_iq_coeffs_nphy(pi, 0, pi 18503 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c &pi->calibration_cache. pi 18506 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 18508 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_5G; pi 18509 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 18511 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_5G[0] = pi 18512 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 18515 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_5G[1] = pi 18516 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 18519 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_5G[2] = pi 18520 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 18523 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_5G[3] = pi 18524 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 18528 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_5G[4] = pi 18529 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 18532 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_5G[5] = pi 18533 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 18536 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_5G[6] = pi 18537 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 18540 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_5G[7] = pi 18541 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 18545 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_5G[0] = pi 18546 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2055_CORE1_TX_VOS_CNCL); pi 18547 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_5G[1] = pi 18548 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2055_CORE2_TX_VOS_CNCL); pi 18549 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_5G[2] = pi 18550 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2055_CORE1_TX_BB_MXGM); pi 18551 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_5G[3] = pi 18552 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2055_CORE2_TX_BB_MXGM); pi 18555 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_iqcal_chanspec_5G = pi->radio_chanspec; pi 18556 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tbl_ptr = pi->calibration_cache.txcal_coeffs_5G; pi 18558 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 18562 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c READ_RADIO_REG3(pi, RADIO_2057, TX, coreNum, pi 18565 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c READ_RADIO_REG3(pi, RADIO_2057, TX, coreNum, pi 18569 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c READ_RADIO_REG3(pi, RADIO_2057, TX, coreNum, pi 18572 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c READ_RADIO_REG3(pi, RADIO_2057, TX, coreNum, pi 18577 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_IQLOCAL, 8, 80, 16, tbl_ptr); pi 18579 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 18580 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, false); pi 18583 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_tx_iq_war_nphy(struct brcms_phy *pi) pi 18587 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, 15, 4, 0x50, 16, &tx_comp); pi 18589 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_write_shm(pi->sh->physhim, M_20IN40_IQ, tx_comp.a0); pi 18590 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_write_shm(pi->sh->physhim, M_20IN40_IQ + 2, tx_comp.b0); pi 18591 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_write_shm(pi->sh->physhim, M_20IN40_IQ + 4, tx_comp.a1); pi 18592 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_write_shm(pi->sh->physhim, M_20IN40_IQ + 6, tx_comp.b1); pi 18595 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_restorecal_nphy(struct brcms_phy *pi) pi 18603 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 18604 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_iqcal_chanspec_2G == 0) pi 18607 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tbl_ptr = pi->calibration_cache.txcal_coeffs_2G; pi 18608 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c loft_comp = &pi->calibration_cache.txcal_coeffs_2G[5]; pi 18610 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_iqcal_chanspec_5G == 0) pi 18613 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tbl_ptr = pi->calibration_cache.txcal_coeffs_5G; pi 18614 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c loft_comp = &pi->calibration_cache.txcal_coeffs_5G[5]; pi 18617 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_IQLOCAL, 4, 80, 16, tbl_ptr); pi 18619 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 18631 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_IQLOCAL, 4, 88, 16, pi 18634 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_IQLOCAL, 2, 85, 16, loft_comp); pi 18636 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_IQLOCAL, 2, 93, 16, loft_comp); pi 18638 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 2)) pi 18639 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_tx_iq_war_nphy(pi); pi 18641 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 18642 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 18644 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_2G; pi 18645 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 18647 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 18650 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache. pi 18652 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 18655 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache. pi 18657 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 18660 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache. pi 18662 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 18665 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache. pi 18668 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 18671 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache. pi 18673 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 18676 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache. pi 18678 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 18681 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache. pi 18683 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 18686 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache. pi 18689 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE1_TX_VOS_CNCL, pi 18690 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache. pi 18692 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE2_TX_VOS_CNCL, pi 18693 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache. pi 18695 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE1_TX_BB_MXGM, pi 18696 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache. pi 18698 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE2_TX_BB_MXGM, pi 18699 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache. pi 18703 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rx_iq_coeffs_nphy(pi, 1, pi 18704 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c &pi->calibration_cache. pi 18707 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 18709 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache.txcal_radio_regs_5G; pi 18710 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 18712 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 18715 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache. pi 18717 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 18720 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache. pi 18722 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 18725 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache. pi 18727 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 18730 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache. pi 18733 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 18736 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache. pi 18738 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 18741 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache. pi 18743 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 18746 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache. pi 18748 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 18751 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache. pi 18754 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE1_TX_VOS_CNCL, pi 18755 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache. pi 18757 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE2_TX_VOS_CNCL, pi 18758 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache. pi 18760 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE1_TX_BB_MXGM, pi 18761 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache. pi 18763 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE2_TX_BB_MXGM, pi 18764 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->calibration_cache. pi 18768 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rx_iq_coeffs_nphy(pi, 1, pi 18769 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c &pi->calibration_cache. pi 18773 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 18776 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, coreNum, pi 18779 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, coreNum, pi 18783 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, coreNum, pi 18786 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, coreNum, pi 18793 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_txpwrctrl_coeff_setup_nphy(struct brcms_phy *pi) pi 18803 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 18804 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, true); pi 18806 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, 15, 7, 80, 16, iqloCalbuf); pi 18821 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, tbl_id, tbl_len, tbl_offset, 32, pi 18834 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 18850 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, tbl_id, tbl_len, tbl_offset, 32, pi 18854 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 2)) { pi 18856 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_write_shm(pi->sh->physhim, M_CURR_IDX1, 0xFFFF); pi 18857 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_write_shm(pi->sh->physhim, M_CURR_IDX2, 0xFFFF); pi 18860 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 18861 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, false); pi 18864 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_txlpfbw_nphy(struct brcms_phy *pi) pi 18868 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3) && NREV_LT(pi->pubpi.phy_rev, 7)) { pi 18869 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS40(pi->radio_chanspec)) pi 18874 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi)) { pi 18875 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS40(pi->radio_chanspec)) pi 18881 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xe8, pi 18886 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi)) { pi 18888 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS40(pi->radio_chanspec)) pi 18893 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xe9, pi 18902 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_adjust_rx_analpfbw_nphy(struct brcms_phy *pi, u16 reduction_factr) pi 18904 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3) && NREV_LT(pi->pubpi.phy_rev, 7)) { pi 18905 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((CHSPEC_CHANNEL(pi->radio_chanspec) == 11) && pi 18906 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c CHSPEC_IS40(pi->radio_chanspec)) { pi 18907 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (!pi->nphy_anarxlpf_adjusted) { pi 18908 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 18911 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ((pi->nphy_rccal_value + pi 18914 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_anarxlpf_adjusted = true; pi 18917 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_anarxlpf_adjusted) { pi 18918 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 18921 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->nphy_rccal_value | 0x80)); pi 18923 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_anarxlpf_adjusted = false; pi 18930 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_adjust_min_noisevar_nphy(struct brcms_phy *pi, int ntones, pi 18937 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c CHSPEC_IS40(pi->radio_chanspec) ? pi 18940 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_noisevars_adjusted) { pi 18941 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (i = 0; i < pi->nphy_saved_noisevars.bufcount; i++) { pi 18942 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tone_id = pi->nphy_saved_noisevars.tone_id[i]; pi 18947 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, NPHY_TBL_ID_NOISEVAR, 1, pi 18949 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c &pi->nphy_saved_noisevars.min_noise_vars[i]); pi 18952 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_saved_noisevars.bufcount = 0; pi 18953 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_noisevars_adjusted = false; pi 18957 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_saved_noisevars.bufcount = 0; pi 18964 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_saved_noisevars.tone_id[i] = tone_id; pi 18965 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_NOISEVAR, 1, pi 18967 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c &pi->nphy_saved_noisevars. pi 18969 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_NOISEVAR, 1, pi 18971 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_saved_noisevars.bufcount++; pi 18974 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_noisevars_adjusted = true; pi 18978 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_adjust_crsminpwr_nphy(struct brcms_phy *pi, u8 minpwr) pi 18982 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 18983 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((CHSPEC_CHANNEL(pi->radio_chanspec) == 11) && pi 18984 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c CHSPEC_IS40(pi->radio_chanspec)) { pi 18985 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (!pi->nphy_crsminpwr_adjusted) { pi 18986 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c regval = read_phy_reg(pi, 0x27d); pi 18987 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_crsminpwr[0] = regval & 0xff; pi 18990 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x27d, regval); pi 18992 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c regval = read_phy_reg(pi, 0x280); pi 18993 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_crsminpwr[1] = regval & 0xff; pi 18996 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x280, regval); pi 18998 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c regval = read_phy_reg(pi, 0x283); pi 18999 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_crsminpwr[2] = regval & 0xff; pi 19002 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x283, regval); pi 19004 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_crsminpwr_adjusted = true; pi 19007 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_crsminpwr_adjusted) { pi 19008 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c regval = read_phy_reg(pi, 0x27d); pi 19010 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c regval |= pi->nphy_crsminpwr[0]; pi 19011 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x27d, regval); pi 19013 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c regval = read_phy_reg(pi, 0x280); pi 19015 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c regval |= pi->nphy_crsminpwr[1]; pi 19016 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x280, regval); pi 19018 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c regval = read_phy_reg(pi, 0x283); pi 19020 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c regval |= pi->nphy_crsminpwr[2]; pi 19021 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x283, regval); pi 19023 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_crsminpwr_adjusted = false; pi 19029 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_spurwar_nphy(struct brcms_phy *pi) pi 19038 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 19039 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 19040 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, true); pi 19042 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c cur_channel = CHSPEC_CHANNEL(pi->radio_chanspec); pi 19044 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_gband_spurwar_en) { pi 19047 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 19050 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 19052 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c && CHSPEC_IS40(pi->radio_chanspec)) pi 19054 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, 2, pi 19058 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_adjust_min_noisevar_nphy(pi, 0, pi 19063 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_adjust_crsminpwr_nphy(pi, pi 19067 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->nphy_gband_spurwar2_en) pi 19068 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c && CHSPEC_IS2G(pi->radio_chanspec)) { pi 19070 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS40(pi->radio_chanspec)) { pi 19138 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 19146 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_adjust_min_noisevar_nphy(pi, 0, NULL, pi 19151 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->nphy_aband_spurwar_en) && pi 19152 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (CHSPEC_IS5G(pi->radio_chanspec))) { pi 19161 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->sh->chip == BCMA_CHIP_ID_BCM4716) && pi 19162 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->sh->chippkg == BCMA_PKG_ID_BCM4717)) { pi 19192 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, 1, pi 19196 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_adjust_min_noisevar_nphy(pi, 0, NULL, pi 19200 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 19201 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, false); pi 19205 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c void wlc_phy_init_nphy(struct brcms_phy *pi) pi 19218 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (!(pi->measure_hold & PHY_HOLD_FOR_SCAN)) pi 19219 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->measure_hold |= PHY_HOLD_FOR_NOT_ASSOC; pi 19221 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((ISNPHY(pi)) && (NREV_GE(pi->pubpi.phy_rev, 5)) && pi 19222 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ((pi->sh->chippkg == BCMA_PKG_ID_BCM4717) || pi 19223 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->sh->chippkg == BCMA_PKG_ID_BCM4718))) { pi 19224 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->sh->boardflags & BFL_EXTLNA) && pi 19225 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (CHSPEC_IS2G(pi->radio_chanspec))) pi 19226 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bcma_cc_set32(&pi->d11core->bus->drv_cc, pi 19230 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((!PHY_IPA(pi)) && (pi->sh->chip == BCMA_CHIP_ID_BCM5357)) pi 19231 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bcma_chipco_chipctl_maskset(&pi->d11core->bus->drv_cc, 1, pi 19234 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->nphy_gband_spurwar2_en) && CHSPEC_IS2G(pi->radio_chanspec) && pi 19235 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c CHSPEC_IS40(pi->radio_chanspec)) { pi 19237 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c d11_clk_ctl_st = bcma_read32(pi->d11core, pi 19239 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bcma_mask32(pi->d11core, D11REGOFFS(clk_ctl_st), pi 19242 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bcma_write32(pi->d11core, D11REGOFFS(clk_ctl_st), pi 19246 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->use_int_tx_iqlo_cal_nphy = pi 19247 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (PHY_IPA(pi) || pi 19248 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (NREV_GE(pi->pubpi.phy_rev, 7) || pi 19249 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (NREV_GE(pi->pubpi.phy_rev, 5) pi 19250 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c && pi->sh->boardflags2 & BFL2_INTERNDET_TXIQCAL))); pi 19252 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->internal_tx_iqlo_cal_tapoff_intpa_nphy = false; pi 19254 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_deaf_count = 0; pi 19256 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_tbl_init_nphy(pi); pi 19258 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_crsminpwr_adjusted = false; pi 19259 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_noisevars_adjusted = false; pi 19261 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 19262 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xe7, 0); pi 19263 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xec, 0); pi 19264 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 19265 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x342, 0); pi 19266 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x343, 0); pi 19267 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x346, 0); pi 19268 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x347, 0); pi 19270 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xe5, 0); pi 19271 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xe6, 0); pi 19273 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xec, 0); pi 19276 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x91, 0); pi 19277 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x92, 0); pi 19278 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 6)) { pi 19279 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x93, 0); pi 19280 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x94, 0); pi 19283 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, 0xa1, ~3); pi 19285 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 19286 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x8f, 0); pi 19287 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa5, 0); pi 19289 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa5, 0); pi 19292 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_IS(pi->pubpi.phy_rev, 2)) pi 19293 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xdc, 0x00ff, 0x3b); pi 19294 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if (NREV_LT(pi->pubpi.phy_rev, 2)) pi 19295 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xdc, 0x00ff, 0x40); pi 19297 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x203, 32); pi 19298 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x201, 32); pi 19300 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->sh->boardflags2 & BFL2_SKWRKFEM_BRD) pi 19301 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x20d, 160); pi 19303 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x20d, 184); pi 19305 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x13a, 200); pi 19307 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x70, 80); pi 19309 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1ff, 48); pi 19311 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 8)) pi 19312 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_update_mimoconfig_nphy(pi, pi->n_preamble_override); pi 19314 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stf_chain_upd_nphy(pi); pi 19316 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 2)) { pi 19317 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x180, 0xaa8); pi 19318 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x181, 0x9a4); pi 19321 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi)) { pi 19322 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (core = 0; core < pi->pubpi.phy_corenum; core++) { pi 19324 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x297 : pi 19327 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x298 : pi 19329 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->nphy_papd_epsilon_offset[core]) << 7); pi 19333 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_ipa_set_tx_digi_filts_nphy(pi); pi 19334 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_GE(pi->pubpi.phy_rev, 5)) { pi 19335 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_extpa_set_tx_digi_filts_nphy(pi); pi 19338 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_workarounds_nphy(pi); pi 19340 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_phyclk_fgc(pi->sh->physhim, ON); pi 19342 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c val = read_phy_reg(pi, 0x01); pi 19343 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x01, val | BBCFG_RESETCCA); pi 19344 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x01, val & (~BBCFG_RESETCCA)); pi 19345 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_phyclk_fgc(pi->sh->physhim, OFF); pi 19347 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_macphyclk_set(pi->sh->physhim, ON); pi 19349 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_pa_override_nphy(pi, OFF); pi 19350 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_force_rfseq_nphy(pi, NPHY_RFSEQ_RX2TX); pi 19351 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_force_rfseq_nphy(pi, NPHY_RFSEQ_RESET2RX); pi 19352 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_pa_override_nphy(pi, ON); pi 19354 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_classifier_nphy(pi, 0, 0); pi 19355 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_clip_det_nphy(pi, 0, clip1_ths); pi 19357 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) pi 19358 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_bphy_init_nphy(pi); pi 19360 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tx_pwr_ctrl_state = pi->nphy_txpwrctrl; pi 19361 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwrctrl_enable_nphy(pi, PHY_TPC_HW_OFF); pi 19363 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_fixpower_nphy(pi); pi 19365 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwrctrl_idle_tssi_nphy(pi); pi 19367 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwrctrl_pwr_setup_nphy(pi); pi 19369 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 19376 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi)) { pi 19377 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tx_pwrctrl_tbl = wlc_phy_get_ipa_gaintbl_nphy(pi); pi 19379 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 19380 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_IS(pi->pubpi.phy_rev, 3)) pi 19383 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if (NREV_IS(pi->pubpi.phy_rev, 4)) pi 19385 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->srom_fem5g.extpagain == pi 19393 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 19394 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev == 5) pi 19397 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if (pi->pubpi.radiorev == 3) pi 19401 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 5) && pi 19402 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->srom_fem2g.extpagain == 3)) pi 19412 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_CORE1TXPWRCTL, 128, pi 19414 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_CORE2TXPWRCTL, 128, pi 19417 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_gmval = (u16) ((*tx_pwrctrl_tbl >> 16) & 0x7000); pi 19419 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 19424 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c rfpwr_offset = get_rf_pwr_offset(pi, pga_gn, pi 19427 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 19432 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 19441 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) pi 19451 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 19456 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 19465 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_CORE1TXPWRCTL, 128, pi 19467 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_CORE2TXPWRCTL, 128, pi 19471 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->sh->phyrxchain != 0x3) pi 19472 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rxcore_setstate_nphy((struct brcms_phy_pub *) pi, pi 19473 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->sh->phyrxchain); pi 19475 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_PERICAL_MPHASE_PENDING(pi)) pi 19476 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_cal_perical_mphase_restart(pi); pi 19478 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 19479 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c do_rssi_cal = (CHSPEC_IS2G(pi->radio_chanspec)) ? pi 19480 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->nphy_rssical_chanspec_2G == 0) : pi 19481 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->nphy_rssical_chanspec_5G == 0); pi 19484 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rssi_cal_nphy(pi); pi 19486 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_restore_rssical_nphy(pi); pi 19488 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rssi_cal_nphy(pi); pi 19491 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (!SCAN_RM_IN_PROGRESS(pi)) pi 19492 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c do_nphy_cal = (CHSPEC_IS2G(pi->radio_chanspec)) ? pi 19493 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->nphy_iqcal_chanspec_2G == 0) : pi 19494 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->nphy_iqcal_chanspec_5G == 0); pi 19496 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (!pi->do_initcal) pi 19501 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c target_gain = wlc_phy_get_tx_gain_nphy(pi); pi 19503 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->antsel_type == ANTSEL_2x3) pi 19504 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_antsel_init((struct brcms_phy_pub *) pi, pi 19507 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_perical != PHY_PERICAL_MPHASE) { pi 19508 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rssi_cal_nphy(pi); pi 19510 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 19511 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_cal_orig_pwr_idx[0] = pi 19512 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrindex[PHY_CORE_0] pi 19515 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_cal_orig_pwr_idx[1] = pi 19516 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrindex[PHY_CORE_1] pi 19520 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_precal_txgain_nphy(pi); pi 19522 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_get_tx_gain_nphy(pi); pi 19526 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi, target_gain, true, pi 19529 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi, target_gain, 2, pi 19531 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_savecal_nphy(pi); pi 19534 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (pi->mphase_cal_phase_id == pi 19536 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_cal_perical((struct brcms_phy_pub *) pi, pi 19540 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_restorecal_nphy(pi); pi 19543 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwrctrl_coeff_setup_nphy(pi); pi 19545 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwrctrl_enable_nphy(pi, tx_pwr_ctrl_state); pi 19547 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_nphy_tkip_rifs_war(pi, pi->sh->_rifs_phy); pi 19549 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3) && NREV_LE(pi->pubpi.phy_rev, 6)) pi 19551 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x70, 50); pi 19553 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txlpfbw_nphy(pi); pi 19555 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_spurwar_nphy(pi); pi 19559 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_resetcca_nphy(struct brcms_phy *pi) pi 19563 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_phyclk_fgc(pi->sh->physhim, ON); pi 19565 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c val = read_phy_reg(pi, 0x01); pi 19566 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x01, val | BBCFG_RESETCCA); pi 19568 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x01, val & (~BBCFG_RESETCCA)); pi 19570 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_phyclk_fgc(pi->sh->physhim, OFF); pi 19572 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_force_rfseq_nphy(pi, NPHY_RFSEQ_RESET2RX); pi 19575 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c void wlc_phy_pa_override_nphy(struct brcms_phy *pi, bool en) pi 19581 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rfctrlIntc1_save = read_phy_reg(pi, 0x91); pi 19582 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rfctrlIntc2_save = read_phy_reg(pi, 0x92); pi 19584 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 19586 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if (NREV_GE(pi->pubpi.phy_rev, 3)) pi 19588 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c CHSPEC_IS5G(pi->radio_chanspec) ? 0x600 : 0x480; pi 19591 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c CHSPEC_IS5G(pi->radio_chanspec) ? 0x180 : 0x120; pi 19593 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x91, rfctrlintc_override_val); pi 19594 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x92, rfctrlintc_override_val); pi 19596 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x91, pi->rfctrlIntc1_save); pi 19597 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x92, pi->rfctrlIntc2_save); pi 19602 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c void wlc_phy_stf_chain_upd_nphy(struct brcms_phy *pi) pi 19609 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_txrx_chain == BRCMS_N_TXRX_CHAIN0) { pi 19613 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LE(pi->pubpi.phy_rev, 2)) pi 19614 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, 0xa0, ~0x20); pi 19615 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (pi->nphy_txrx_chain == BRCMS_N_TXRX_CHAIN1) { pi 19619 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LE(pi->pubpi.phy_rev, 2)) pi 19620 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0xa0, 0x20); pi 19623 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa2, ((0xf << 0) | (0xf << 4)), txrx_chain); pi 19626 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_perical = PHY_PERICAL_DISABLE; pi 19627 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0xa1, NPHY_RfseqMode_CoreActv_override); pi 19629 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_perical = PHY_PERICAL_MPHASE; pi 19630 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, 0xa1, ~NPHY_RfseqMode_CoreActv_override); pi 19639 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 19643 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->sh->phyrxchain = rxcore_bitmask; pi 19645 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (!pi->sh->clk) pi 19648 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c suspend = (0 == (bcma_read32(pi->d11core, D11REGOFFS(maccontrol)) & pi 19651 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_suspend_mac_and_wait(pi->sh->physhim); pi 19653 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 19654 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, true); pi 19656 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c regval = read_phy_reg(pi, 0xa2); pi 19659 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa2, regval); pi 19663 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x20e, 1); pi 19665 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 19666 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->rx2tx_biasentry == -1) { pi 19667 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_RFSEQ, pi 19674 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rx2tx_biasentry = (u8) i; pi 19678 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 19692 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x20e, 30); pi 19694 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 19695 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->rx2tx_biasentry != -1) { pi 19697 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, pi 19698 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 1, pi->rx2tx_biasentry, pi 19700 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rx2tx_biasentry = -1; pi 19705 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_force_rfseq_nphy(pi, NPHY_RFSEQ_RESET2RX); pi 19707 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 19708 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, false); pi 19711 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_enable_mac(pi->sh->physhim); pi 19717 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); pi 19719 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c regval = read_phy_reg(pi, 0xa2); pi 19725 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bool wlc_phy_n_txpower_ipa_ison(struct brcms_phy *pi) pi 19727 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c return PHY_IPA(pi); pi 19730 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c void wlc_phy_cal_init_nphy(struct brcms_phy *pi) pi 19734 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_radio_preinit_205x(struct brcms_phy *pi) pi 19737 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, 0x78, ~RFCC_CHIP0_PU); pi 19738 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, 0x78, RFCC_OE_POR_FORCE); pi 19740 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0x78, ~RFCC_OE_POR_FORCE); pi 19741 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0x78, RFCC_CHIP0_PU); pi 19745 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_radio_init_2057(struct brcms_phy *pi) pi 19749 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_IS(pi->pubpi.phy_rev, 7)) { pi 19751 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_IS(pi->pubpi.phy_rev, 8) pi 19752 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || NREV_IS(pi->pubpi.phy_rev, 9)) { pi 19753 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c switch (pi->pubpi.radiorev) { pi 19756 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_IS(pi->pubpi.phy_rev, 8)) pi 19758 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if (NREV_IS(pi->pubpi.phy_rev, 9)) pi 19777 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_init_radio_regs_allbands(pi, regs_2057_ptr); pi 19780 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static u16 wlc_phy_radio205x_rcal(struct brcms_phy *pi) pi 19785 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 19787 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev == 5) { pi 19789 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, 0x342, ~(0x1 << 1)); pi 19793 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057_IQTEST_SEL_PU, 0x1, 0x1); pi 19794 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057v7_IQTEST_SEL_PU2, 0x2, pi 19797 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057_RCAL_CONFIG, 0x1, 0x1); pi 19801 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057_RCAL_CONFIG, 0x3, 0x3); pi 19804 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c rcal_reg = read_radio_reg(pi, RADIO_2057_RCAL_STATUS); pi 19815 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057_RCAL_CONFIG, 0x2, 0x0); pi 19817 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c rcal_reg = read_radio_reg(pi, RADIO_2057_RCAL_STATUS) & 0x3e; pi 19819 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057_RCAL_CONFIG, 0x1, 0x0); pi 19820 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev == 5) { pi 19822 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057_IQTEST_SEL_PU, 0x1, 0x0); pi 19823 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057v7_IQTEST_SEL_PU2, 0x2, pi 19827 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->pubpi.radiorev <= 4) || (pi->pubpi.radiorev == 6)) { pi 19829 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057_TEMPSENSE_CONFIG, 0x3c, pi 19831 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057_BANDGAP_RCAL_TRIM, 0xf0, pi 19835 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_IS(pi->pubpi.phy_rev, 3)) { pi 19840 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 19843 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_PLL_MAST2 | RADIO_2056_SYN, pi 19847 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_RCAL_MASTER | RADIO_2056_SYN, pi 19851 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_RCAL_MASTER | RADIO_2056_SYN, pi 19856 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 19869 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_RCAL_MASTER | RADIO_2056_SYN, pi 19873 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 19877 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_RCAL_MASTER | RADIO_2056_SYN, pi 19880 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_PLL_MAST2 | RADIO_2056_SYN, pi 19888 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static u16 wlc_phy_radio2057_rccal(struct brcms_phy *pi) pi 19894 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c chip43226_6362A0 = ((pi->pubpi.radiorev == 3) pi 19895 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 4) pi 19896 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 6)); pi 19900 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RCCAL_MASTER, 0x61); pi 19901 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RCCAL_TRC0, 0xc0); pi 19903 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057v7_RCCAL_MASTER, 0x61); pi 19905 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RCCAL_TRC0, 0xe9); pi 19907 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RCCAL_X1, 0x6e); pi 19908 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RCCAL_START_R1_Q1_P1, 0x55); pi 19911 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c rccal_valid = read_radio_reg(pi, RADIO_2057_RCCAL_DONE_OSCCAP); pi 19918 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RCCAL_START_R1_Q1_P1, 0x15); pi 19922 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RCCAL_MASTER, 0x69); pi 19923 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RCCAL_TRC0, 0xb0); pi 19925 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057v7_RCCAL_MASTER, 0x69); pi 19927 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RCCAL_TRC0, 0xd5); pi 19929 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RCCAL_X1, 0x6e); pi 19930 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RCCAL_START_R1_Q1_P1, 0x55); pi 19933 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c rccal_valid = read_radio_reg(pi, RADIO_2057_RCCAL_DONE_OSCCAP); pi 19940 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RCCAL_START_R1_Q1_P1, 0x15); pi 19944 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RCCAL_MASTER, 0x73); pi 19946 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RCCAL_X1, 0x28); pi 19947 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RCCAL_TRC0, 0xb0); pi 19949 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057v7_RCCAL_MASTER, 0x73); pi 19950 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RCCAL_X1, 0x6e); pi 19951 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RCCAL_TRC0, 0x99); pi 19953 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RCCAL_START_R1_Q1_P1, 0x55); pi 19956 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c rccal_valid = read_radio_reg(pi, RADIO_2057_RCCAL_DONE_OSCCAP); pi 19966 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RCCAL_START_R1_Q1_P1, 0x15); pi 19971 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_radio_postinit_2057(struct brcms_phy *pi) pi 19974 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057_XTALPUOVR_PINCTRL, 0x1, 0x1); pi 19976 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057_RFPLL_MISC_CAL_RESETN, 0x78, 0x78); pi 19977 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057_XTAL_CONFIG2, 0x80, 0x80); pi 19979 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057_RFPLL_MISC_CAL_RESETN, 0x78, 0x0); pi 19980 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057_XTAL_CONFIG2, 0x80, 0x0); pi 19982 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phy_init_por) { pi 19983 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_radio205x_rcal(pi); pi 19984 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_radio2057_rccal(pi); pi 19987 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057_RFPLL_MASTER, 0x8, 0x0); pi 19990 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_radio_init_2056(struct brcms_phy *pi) pi 19996 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_IS(pi->pubpi.phy_rev, 3)) { pi 20000 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_IS(pi->pubpi.phy_rev, 4)) { pi 20005 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c switch (pi->pubpi.radiorev) { pi 20042 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_init_radio_regs(pi, regs_SYN_2056_ptr, (u16) RADIO_2056_SYN); pi 20044 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_init_radio_regs(pi, regs_TX_2056_ptr, (u16) RADIO_2056_TX0); pi 20046 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_init_radio_regs(pi, regs_TX_2056_ptr, (u16) RADIO_2056_TX1); pi 20048 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_init_radio_regs(pi, regs_RX_2056_ptr, (u16) RADIO_2056_RX0); pi 20050 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_init_radio_regs(pi, regs_RX_2056_ptr, (u16) RADIO_2056_RX1); pi 20053 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_radio_postinit_2056(struct brcms_phy *pi) pi 20055 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2056_SYN_COM_CTRL, 0xb, 0xb); pi 20057 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2056_SYN_COM_PU, 0x2, 0x2); pi 20058 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2056_SYN_COM_RESET, 0x2, 0x2); pi 20060 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2056_SYN_COM_RESET, 0x2, 0x0); pi 20062 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->sh->boardflags2 & BFL2_LEGACY) pi 20063 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->sh->boardflags2 & BFL2_XTALBUFOUTEN)) pi 20064 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2056_SYN_PLL_MAST2, 0xf4, 0x0); pi 20066 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2056_SYN_PLL_MAST2, 0xfc, 0x0); pi 20068 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2056_SYN_RCCAL_CTRL0, 0x1, 0x0); pi 20070 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phy_init_por) pi 20071 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_radio205x_rcal(pi); pi 20074 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_radio_preinit_2055(struct brcms_phy *pi) pi 20077 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, 0x78, ~RFCC_POR_FORCE); pi 20078 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0x78, RFCC_CHIP0_PU | RFCC_OE_POR_FORCE); pi 20080 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0x78, RFCC_POR_FORCE); pi 20083 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_radio_init_2055(struct brcms_phy *pi) pi 20085 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_init_radio_regs(pi, regs_2055, RADIO_DEFAULT_CORE); pi 20088 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_radio_postinit_2055(struct brcms_phy *pi) pi 20091 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_radio_reg(pi, RADIO_2055_MASTER_CNTRL1, pi 20094 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (((pi->sh->sromrev >= 4) pi 20095 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c && !(pi->sh->boardflags2 & BFL2_RXBB_INT_REG_DIS)) pi 20096 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || ((pi->sh->sromrev < 4))) { pi 20097 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_radio_reg(pi, RADIO_2055_CORE1_RXBB_REGULATOR, 0x7F); pi 20098 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_radio_reg(pi, RADIO_2055_CORE2_RXBB_REGULATOR, 0x7F); pi 20101 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2055_RRCCAL_N_OPT_SEL, 0x3F, 0x2C); pi 20102 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CAL_MISC, 0x3C); pi 20104 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_radio_reg(pi, RADIO_2055_CAL_MISC, pi 20107 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_radio_reg(pi, RADIO_2055_CAL_LPO_CNTRL, RADIO_2055_CAL_LPO_ENABLE); pi 20109 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_radio_reg(pi, RADIO_2055_CAL_MISC, RADIO_2055_RRCAL_RST_N); pi 20113 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_radio_reg(pi, RADIO_2055_CAL_MISC, RADIO_2055_RRCAL_START); pi 20115 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c SPINWAIT(((read_radio_reg(pi, RADIO_2055_CAL_COUNTER_OUT2) & pi 20118 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (WARN((read_radio_reg(pi, RADIO_2055_CAL_COUNTER_OUT2) & pi 20123 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_radio_reg(pi, RADIO_2055_CAL_LPO_CNTRL, pi 20126 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_chanspec_set((struct brcms_phy_pub *) pi, pi->radio_chanspec); pi 20128 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE1_RXBB_LPF, 9); pi 20129 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE2_RXBB_LPF, 9); pi 20131 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE1_RXBB_MIDAC_HIPAS, 0x83); pi 20132 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE2_RXBB_MIDAC_HIPAS, 0x83); pi 20134 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2055_CORE1_LNA_GAINBST, pi 20136 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2055_CORE2_LNA_GAINBST, pi 20138 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_gain_boost) { pi 20139 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_radio_reg(pi, RADIO_2055_CORE1_RXRF_SPC1, pi 20141 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_radio_reg(pi, RADIO_2055_CORE2_RXRF_SPC1, pi 20144 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_radio_reg(pi, RADIO_2055_CORE1_RXRF_SPC1, pi 20146 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_radio_reg(pi, RADIO_2055_CORE2_RXRF_SPC1, pi 20153 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c void wlc_phy_switch_radio_nphy(struct brcms_phy *pi, bool on) pi 20156 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 20157 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (!pi->radio_is_on) { pi 20158 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_radio_preinit_205x(pi); pi 20159 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_radio_init_2057(pi); pi 20160 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_radio_postinit_2057(pi); pi 20163 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_chanspec_set((struct brcms_phy_pub *) pi, pi 20164 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->radio_chanspec); pi 20165 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 20166 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_radio_preinit_205x(pi); pi 20167 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_radio_init_2056(pi); pi 20168 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_radio_postinit_2056(pi); pi 20170 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_chanspec_set((struct brcms_phy_pub *) pi, pi 20171 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->radio_chanspec); pi 20173 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_radio_preinit_2055(pi); pi 20174 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_radio_init_2055(pi); pi 20175 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_radio_postinit_2055(pi); pi 20178 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->radio_is_on = true; pi 20182 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3) pi 20183 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c && NREV_LT(pi->pubpi.phy_rev, 7)) { pi 20184 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, 0x78, ~RFCC_CHIP0_PU); pi 20185 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2056_SYN_COM_PU, 0x2, 0x0); pi 20187 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20190 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20193 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20196 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20199 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, pi 20202 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20206 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20209 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20212 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20215 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20218 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, pi 20221 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20225 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->radio_is_on = false; pi 20228 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 8)) { pi 20229 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, 0x78, ~RFCC_CHIP0_PU); pi 20230 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->radio_is_on = false; pi 20237 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_chan2freq_nphy(struct brcms_phy *pi, uint channel, int *f, pi 20251 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 20253 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_IS(pi->pubpi.phy_rev, 7)) { pi 20258 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_IS(pi->pubpi.phy_rev, 8) pi 20259 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || NREV_IS(pi->pubpi.phy_rev, 9)) { pi 20260 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c switch (pi->pubpi.radiorev) { pi 20264 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiover == 0x0) { pi 20271 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (pi->pubpi.radiover == 0x1) { pi 20298 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_IS(pi->pubpi.phy_rev, 16)) { pi 20307 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev == 5) { pi 20321 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev == 5) { pi 20329 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 20330 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_IS(pi->pubpi.phy_rev, 3)) { pi 20333 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_IS(pi->pubpi.phy_rev, 4)) { pi 20336 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_IS(pi->pubpi.phy_rev, 5) pi 20337 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || NREV_IS(pi->pubpi.phy_rev, 6)) { pi 20338 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c switch (pi->pubpi.radiorev) { pi 20398 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c u8 wlc_phy_get_chan_freq_range_nphy(struct brcms_phy *pi, uint channel) pi 20407 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c channel = CHSPEC_CHANNEL(pi->radio_chanspec); pi 20409 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_chan2freq_nphy(pi, channel, &freq, &t0, &t1, &t2, &t3); pi 20411 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) pi 20423 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_chanspec_radio2055_setup(struct brcms_phy *pi, pi 20427 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_PLL_REF, ci->RF_pll_ref); pi 20428 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_RF_PLL_MOD0, ci->RF_rf_pll_mod0); pi 20429 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_RF_PLL_MOD1, ci->RF_rf_pll_mod1); pi 20430 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_VCO_CAP_TAIL, ci->RF_vco_cap_tail); pi 20432 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c BRCMS_PHY_WAR_PR51571(pi); pi 20434 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_VCO_CAL1, ci->RF_vco_cal1); pi 20435 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_VCO_CAL2, ci->RF_vco_cal2); pi 20436 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_PLL_LF_C1, ci->RF_pll_lf_c1); pi 20437 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_PLL_LF_R1, ci->RF_pll_lf_r1); pi 20439 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c BRCMS_PHY_WAR_PR51571(pi); pi 20441 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_PLL_LF_C2, ci->RF_pll_lf_c2); pi 20442 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_LGBUF_CEN_BUF, ci->RF_lgbuf_cen_buf); pi 20443 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_LGEN_TUNE1, ci->RF_lgen_tune1); pi 20444 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_LGEN_TUNE2, ci->RF_lgen_tune2); pi 20446 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c BRCMS_PHY_WAR_PR51571(pi); pi 20448 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE1_LGBUF_A_TUNE, pi 20450 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE1_LGBUF_G_TUNE, pi 20452 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE1_RXRF_REG1, ci->RF_core1_rxrf_reg1); pi 20453 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE1_TX_PGA_PAD_TN, pi 20456 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c BRCMS_PHY_WAR_PR51571(pi); pi 20458 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE1_TX_MX_BGTRIM, pi 20460 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE2_LGBUF_A_TUNE, pi 20462 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE2_LGBUF_G_TUNE, pi 20464 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE2_RXRF_REG1, ci->RF_core2_rxrf_reg1); pi 20466 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c BRCMS_PHY_WAR_PR51571(pi); pi 20468 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE2_TX_PGA_PAD_TN, pi 20470 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE2_TX_MX_BGTRIM, pi 20475 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_VCO_CAL10, 0x05); pi 20476 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_VCO_CAL10, 0x45); pi 20478 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c BRCMS_PHY_WAR_PR51571(pi); pi 20480 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_VCO_CAL10, 0x65); pi 20486 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_chanspec_radio2056_setup(struct brcms_phy *pi, pi 20491 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20494 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_PLL_VCOCAL2 | RADIO_2056_SYN, pi 20496 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_PLL_REFDIV | RADIO_2056_SYN, pi 20498 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_PLL_MMD2 | RADIO_2056_SYN, pi 20500 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_PLL_MMD1 | RADIO_2056_SYN, pi 20502 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_PLL_LOOPFILTER1 | RADIO_2056_SYN, pi 20504 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_PLL_LOOPFILTER2 | RADIO_2056_SYN, pi 20506 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_PLL_LOOPFILTER3 | RADIO_2056_SYN, pi 20508 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_PLL_LOOPFILTER4 | RADIO_2056_SYN, pi 20510 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_PLL_LOOPFILTER5 | RADIO_2056_SYN, pi 20512 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_RESERVED_ADDR27 | RADIO_2056_SYN, pi 20514 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_RESERVED_ADDR28 | RADIO_2056_SYN, pi 20516 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_RESERVED_ADDR29 | RADIO_2056_SYN, pi 20518 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_LOGEN_VCOBUF1 | RADIO_2056_SYN, pi 20520 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_LOGEN_MIXER2 | RADIO_2056_SYN, pi 20522 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_LOGEN_BUF3 | RADIO_2056_SYN, pi 20524 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_LOGEN_BUF4 | RADIO_2056_SYN, pi 20527 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20530 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_RX_LNAG_TUNE | RADIO_2056_RX0, pi 20532 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_TX_INTPAA_BOOST_TUNE | RADIO_2056_TX0, pi 20534 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_TX_INTPAG_BOOST_TUNE | RADIO_2056_TX0, pi 20536 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_TX_PADA_BOOST_TUNE | RADIO_2056_TX0, pi 20538 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_TX_PADG_BOOST_TUNE | RADIO_2056_TX0, pi 20540 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_TX_PGAA_BOOST_TUNE | RADIO_2056_TX0, pi 20542 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_TX_PGAG_BOOST_TUNE | RADIO_2056_TX0, pi 20544 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_TX_MIXA_BOOST_TUNE | RADIO_2056_TX0, pi 20546 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_TX_MIXG_BOOST_TUNE | RADIO_2056_TX0, pi 20549 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20552 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_RX_LNAG_TUNE | RADIO_2056_RX1, pi 20554 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_TX_INTPAA_BOOST_TUNE | RADIO_2056_TX1, pi 20556 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_TX_INTPAG_BOOST_TUNE | RADIO_2056_TX1, pi 20558 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_TX_PADA_BOOST_TUNE | RADIO_2056_TX1, pi 20560 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_TX_PADG_BOOST_TUNE | RADIO_2056_TX1, pi 20562 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_TX_PGAA_BOOST_TUNE | RADIO_2056_TX1, pi 20564 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_TX_PGAG_BOOST_TUNE | RADIO_2056_TX1, pi 20566 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_TX_MIXA_BOOST_TUNE | RADIO_2056_TX1, pi 20568 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_TX_MIXG_BOOST_TUNE | RADIO_2056_TX1, pi 20571 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_IS(pi->pubpi.phy_rev, 3)) pi 20573 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if (NREV_IS(pi->pubpi.phy_rev, 4)) pi 20576 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c switch (pi->pubpi.radiorev) { pi 20595 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) pi 20596 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_PLL_CP2 | pi 20600 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_PLL_CP2 | pi 20604 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->sh->boardflags2 & BFL2_GPLL_WAR) { pi 20605 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 20606 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_PLL_LOOPFILTER1 | pi 20608 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_PLL_LOOPFILTER2 | pi 20611 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->sh->chip == BCMA_CHIP_ID_BCM4716) || pi 20612 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->sh->chip == BCMA_CHIP_ID_BCM47162)) { pi 20613 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20616 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20620 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20623 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20630 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->sh->boardflags2 & BFL2_GPLL_WAR2) && pi 20631 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (CHSPEC_IS2G(pi->radio_chanspec))) { pi 20632 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20635 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20638 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20641 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_PLL_CP2 | RADIO_2056_SYN, pi 20645 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->sh->boardflags2 & BFL2_APLL_WAR) { pi 20646 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 20647 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_PLL_LOOPFILTER1 | pi 20649 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_PLL_LOOPFILTER2 | pi 20651 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_PLL_LOOPFILTER4 | pi 20653 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_PLL_CP2 | pi 20658 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi) && CHSPEC_IS2G(pi->radio_chanspec)) { pi 20666 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (core = 0; core < pi->pubpi.phy_corenum; core++) { pi 20668 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 5)) { pi 20670 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 20673 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->sh->chip == BCMA_CHIP_ID_BCM4716) || pi 20674 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->sh->chip == BCMA_CHIP_ID_BCM47162)) { pi 20685 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->sh->chip == BCMA_CHIP_ID_BCM43224 || pi 20686 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->sh->chip == BCMA_CHIP_ID_BCM43225) && pi 20687 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->sh->chippkg == BCMA_PKG_ID_BCM43224_FAB_SMIC) { pi 20698 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 20700 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 20702 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 20705 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 20708 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 20711 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 20714 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 20719 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bias = (pi->bw == WL_CHANSPEC_BW_40) ? pi 20722 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 20724 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 20726 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 20729 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, PA_SPARE1, pi 20734 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi) && NREV_IS(pi->pubpi.phy_rev, 6) pi 20735 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c && CHSPEC_IS5G(pi->radio_chanspec)) { pi 20743 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c freq = CHAN5G_FREQ(CHSPEC_CHANNEL(pi->radio_chanspec)); pi 20775 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (core = 0; core < pi->pubpi.phy_corenum; core++) { pi 20776 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 20778 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 20780 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 20782 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 20785 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 20787 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 20790 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 20795 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->sh->chip == BCMA_CHIP_ID_BCM43224 || pi 20796 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->sh->chip == BCMA_CHIP_ID_BCM43225) && pi 20797 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->sh->chippkg == BCMA_PKG_ID_BCM43224_FAB_SMIC) pi 20800 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pabias = (pi->phy_pabias == 0) ? 0x30 : pi->phy_pabias; pi 20802 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 20804 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 20806 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 20813 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_radio205x_vcocal_nphy(pi); pi 20816 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c void wlc_phy_radio205x_vcocal_nphy(struct brcms_phy *pi) pi 20818 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 20819 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057_RFPLL_MISC_EN, 0x01, 0x0); pi 20820 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057_RFPLL_MISC_CAL_RESETN, 0x04, 0x0); pi 20821 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057_RFPLL_MISC_CAL_RESETN, 0x04, pi 20823 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057_RFPLL_MISC_EN, 0x01, 0x01); pi 20824 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 20825 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_PLL_VCOCAL12, 0x0); pi 20826 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_PLL_MAST3, 0x38); pi 20827 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_PLL_MAST3, 0x18); pi 20828 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_PLL_MAST3, 0x38); pi 20829 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_PLL_MAST3, 0x39); pi 20837 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c struct brcms_phy *pi, pi 20846 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev == 5) { pi 20848 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20851 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_VCOCAL_COUNTVAL1, pi 20853 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RFPLL_REFMASTER_SPAREXTALSIZE, pi 20855 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RFPLL_LOOPFILTER_R1, pi 20857 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RFPLL_LOOPFILTER_C2, pi 20859 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RFPLL_LOOPFILTER_C1, pi 20861 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_CP_KPD_IDAC, pi 20863 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RFPLL_MMD0, ci2->RF_rfpll_mmd0); pi 20864 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RFPLL_MMD1, ci2->RF_rfpll_mmd1); pi 20865 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20867 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20870 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_LOGEN_INDBUF2G_TUNE, pi 20873 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20876 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20879 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_LNA2G_TUNE_CORE0, pi 20882 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20885 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20888 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_LNA2G_TUNE_CORE1, pi 20893 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20896 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_VCOCAL_COUNTVAL1, pi 20898 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RFPLL_REFMASTER_SPAREXTALSIZE, pi 20900 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RFPLL_LOOPFILTER_R1, pi 20902 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RFPLL_LOOPFILTER_C2, pi 20904 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RFPLL_LOOPFILTER_C1, pi 20906 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_CP_KPD_IDAC, ci->RF_cp_kpd_idac); pi 20907 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RFPLL_MMD0, ci->RF_rfpll_mmd0); pi 20908 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RFPLL_MMD1, ci->RF_rfpll_mmd1); pi 20909 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_VCOBUF_TUNE, ci->RF_vcobuf_tune); pi 20910 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20913 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_LOGEN_MX5G_TUNE, pi 20915 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_LOGEN_INDBUF2G_TUNE, pi 20917 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_LOGEN_INDBUF5G_TUNE, pi 20920 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20923 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20926 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_PGA_BOOST_TUNE_CORE0, pi 20928 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_TXMIX5G_BOOST_TUNE_CORE0, pi 20930 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_PAD5G_TUNE_MISC_PUS_CORE0, pi 20932 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_LNA2G_TUNE_CORE0, pi 20934 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_LNA5G_TUNE_CORE0, pi 20937 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20940 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 20943 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_PGA_BOOST_TUNE_CORE1, pi 20945 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_TXMIX5G_BOOST_TUNE_CORE1, pi 20947 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_PAD5G_TUNE_MISC_PUS_CORE1, pi 20949 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_LNA2G_TUNE_CORE1, pi 20951 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_LNA5G_TUNE_CORE1, pi 20955 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->pubpi.radiorev <= 4) || (pi->pubpi.radiorev == 6)) { pi 20957 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 20958 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RFPLL_LOOPFILTER_R1, pi 20960 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_CP_KPD_IDAC, 0x3f); pi 20961 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RFPLL_LOOPFILTER_C1, pi 20963 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RFPLL_LOOPFILTER_C2, pi 20966 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RFPLL_LOOPFILTER_R1, pi 20968 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_CP_KPD_IDAC, 0x3f); pi 20969 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RFPLL_LOOPFILTER_C1, pi 20971 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RFPLL_LOOPFILTER_C2, pi 20974 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if ((pi->pubpi.radiorev == 5) || (pi->pubpi.radiorev == 7) || pi 20975 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->pubpi.radiorev == 8)) { pi 20977 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 20978 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RFPLL_LOOPFILTER_R1, pi 20980 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_CP_KPD_IDAC, 0x30); pi 20981 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RFPLL_LOOPFILTER_C1, pi 20983 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RFPLL_LOOPFILTER_C2, pi 20986 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RFPLL_LOOPFILTER_R1, pi 20988 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_CP_KPD_IDAC, 0x3f); pi 20989 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RFPLL_LOOPFILTER_C1, pi 20991 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_RFPLL_LOOPFILTER_C2, pi 20997 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 20998 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi)) { pi 20999 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev == 3) pi 21002 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev == 5) pi 21006 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev != 5) { pi 21016 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG4(pi, RADIO_2057, CORE, coreNum, pi 21021 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG4(pi, RADIO_2057, CORE, coreNum, pi 21029 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_radio205x_vcocal_nphy(pi); pi 21033 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_chanspec_nphy_setup(struct brcms_phy *pi, u16 chanspec, pi 21038 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c val = read_phy_reg(pi, 0x09) & NPHY_BandControl_currentBand; pi 21041 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c val = bcma_read16(pi->d11core, D11REGOFFS(psm_phy_hdr_param)); pi 21042 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bcma_write16(pi->d11core, D11REGOFFS(psm_phy_hdr_param), pi 21045 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, (NPHY_TO_BPHY_OFF + BPHY_BB_CONFIG), pi 21048 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bcma_write16(pi->d11core, D11REGOFFS(psm_phy_hdr_param), val); pi 21050 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0x09, NPHY_BandControl_currentBand); pi 21053 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, 0x09, ~NPHY_BandControl_currentBand); pi 21055 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c val = bcma_read16(pi->d11core, D11REGOFFS(psm_phy_hdr_param)); pi 21056 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bcma_write16(pi->d11core, D11REGOFFS(psm_phy_hdr_param), pi 21059 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, (NPHY_TO_BPHY_OFF + BPHY_BB_CONFIG), pi 21062 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bcma_write16(pi->d11core, D11REGOFFS(psm_phy_hdr_param), val); pi 21065 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1ce, ci->PHY_BW1a); pi 21066 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1cf, ci->PHY_BW2); pi 21067 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1d0, ci->PHY_BW3); pi 21069 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1d1, ci->PHY_BW4); pi 21070 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1d2, ci->PHY_BW5); pi 21071 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1d3, ci->PHY_BW6); pi 21073 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_CHANNEL(pi->radio_chanspec) == 14) { pi 21074 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_classifier_nphy(pi, NPHY_ClassifierCtrl_ofdm_en, 0); pi 21076 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, NPHY_TO_BPHY_OFF + BPHY_TEST, 0x800); pi 21078 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_classifier_nphy(pi, NPHY_ClassifierCtrl_ofdm_en, pi 21082 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, NPHY_TO_BPHY_OFF + BPHY_TEST, ~0x840); pi 21085 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_txpwrctrl == PHY_TPC_HW_OFF) pi 21086 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_fixpower_nphy(pi); pi 21088 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 3)) pi 21089 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_adjust_lnagaintbl_nphy(pi); pi 21091 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txlpfbw_nphy(pi); pi 21093 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3) pi 21094 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c && (pi->phy_spuravoid != SPURAVOID_DISABLE)) { pi 21098 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (!CHSPEC_IS40(pi->radio_chanspec)) { pi 21099 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 21106 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 21109 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (pi->nphy_aband_spurwar_en && pi 21111 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->sh->chip == BCMA_CHIP_ID_BCM4716) pi 21112 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c && (pi->sh->chippkg == BCMA_PKG_ID_BCM4717)) { pi 21119 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phy_spuravoid == SPURAVOID_FORCEON) pi 21122 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->sh->chip == BCMA_CHIP_ID_BCM4716) || pi 21123 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->sh->chip == BCMA_CHIP_ID_BCM43225)) { pi 21124 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bcma_pmu_spuravoid_pllupdate(&pi->d11core->bus->drv_cc, pi 21127 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_core_phypll_ctl(pi->sh->physhim, false); pi 21128 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bcma_pmu_spuravoid_pllupdate(&pi->d11core->bus->drv_cc, pi 21130 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_core_phypll_ctl(pi->sh->physhim, true); pi 21133 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->sh->chip == BCMA_CHIP_ID_BCM43224) || pi 21134 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->sh->chip == BCMA_CHIP_ID_BCM43225)) { pi 21136 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bcma_write16(pi->d11core, pi 21139 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bcma_write16(pi->d11core, pi 21142 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bcma_write16(pi->d11core, pi 21145 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bcma_write16(pi->d11core, pi 21150 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (!((pi->sh->chip == BCMA_CHIP_ID_BCM4716) || pi 21151 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->sh->chip == BCMA_CHIP_ID_BCM47162))) pi 21152 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_core_phypll_reset(pi->sh->physhim); pi 21154 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x01, (0x1 << 15), pi 21157 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_resetcca_nphy(pi); pi 21159 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->phy_isspuravoid = (spuravoid > 0); pi 21162 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 7)) pi 21163 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x17e, 0x3830); pi 21165 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_spurwar_nphy(pi); pi 21168 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c void wlc_phy_chanspec_set_nphy(struct brcms_phy *pi, u16 chanspec) pi 21177 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi, CHSPEC_CHANNEL(chanspec), &freq, &t0, &t1, &t2, &t3)) pi 21180 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_chanspec_radio_set((struct brcms_phy_pub *) pi, chanspec); pi 21182 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_BW(chanspec) != pi->bw) pi 21183 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_bw_set(pi->sh->physhim, CHSPEC_BW(chanspec)); pi 21187 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0xa0, BPHY_BAND_SEL_UP20); pi 21188 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 21189 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0x310, PRIM_SEL_UP20); pi 21191 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, 0xa0, ~BPHY_BAND_SEL_UP20); pi 21192 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 21193 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, 0x310, pi 21198 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 21199 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 21201 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->pubpi.radiorev <= 4) pi 21202 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 6)) { pi 21203 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057_TIA_CONFIG_CORE0, pi 21207 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057_TIA_CONFIG_CORE1, pi 21213 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_chanspec_radio2057_setup(pi, t0, t2); pi 21214 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_chanspec_nphy_setup(pi, chanspec, pi 21215 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->pubpi.radiorev == 5) ? pi 21221 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, pi 21225 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_chanspec_radio2056_setup(pi, t1); pi 21227 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_chanspec_nphy_setup(pi, chanspec, pi 21233 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2055_MASTER_CNTRL1, 0x70, pi 21237 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_chanspec_radio2055_setup(pi, t3); pi 21238 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_chanspec_nphy_setup(pi, chanspec, pi 21247 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c struct brcms_phy *pi = container_of(ppi, struct brcms_phy, pubpi_ro); pi 21251 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 21254 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 21260 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->srom_fem2g.antswctrllut == 0) { pi 21261 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_ANTSWCTRLLUT, pi 21263 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_ANTSWCTRLLUT, pi 21265 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_ANTSWCTRLLUT, pi 21267 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_ANTSWCTRLLUT, pi 21271 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->srom_fem5g.antswctrllut == 0) { pi 21272 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_ANTSWCTRLLUT, pi 21274 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_ANTSWCTRLLUT, pi 21276 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_ANTSWCTRLLUT, pi 21278 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_ANTSWCTRLLUT, pi 21283 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xc8, 0x0); pi 21284 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xc9, 0x0); pi 21286 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bcma_chipco_gpio_control(&pi->d11core->bus->drv_cc, mask, mask); pi 21288 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mc = bcma_read32(pi->d11core, D11REGOFFS(maccontrol)); pi 21290 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bcma_write32(pi->d11core, D11REGOFFS(maccontrol), mc); pi 21292 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bcma_set16(pi->d11core, D11REGOFFS(psm_gpio_oe), mask); pi 21294 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bcma_mask16(pi->d11core, D11REGOFFS(psm_gpio_out), ~mask); pi 21297 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xf8, 0x02d8); pi 21298 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xf9, 0x0301); pi 21299 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xfa, 0x02d8); pi 21300 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xfb, 0x0301); pi 21305 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c u16 wlc_phy_classifier_nphy(struct brcms_phy *pi, u16 mask, u16 val) pi 21310 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (D11REV_IS(pi->sh->corerev, 16)) { pi 21311 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c suspended = (bcma_read32(pi->d11core, D11REGOFFS(maccontrol)) & pi 21314 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_suspend_mac_and_wait(pi->sh->physhim); pi 21317 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c curr_ctl = read_phy_reg(pi, 0xb0) & (0x7 << 0); pi 21321 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xb0, (0x7 << 0), new_ctl); pi 21323 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (D11REV_IS(pi->sh->corerev, 16) && !suspended) pi 21324 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_enable_mac(pi->sh->physhim); pi 21329 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c void wlc_phy_force_rfseq_nphy(struct brcms_phy *pi, u8 cmd) pi 21363 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c orig_RfseqCoreActv = read_phy_reg(pi, 0xa1); pi 21364 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0xa1, pi 21367 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0xa3, trigger_mask); pi 21368 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c SPINWAIT((read_phy_reg(pi, 0xa4) & status_mask), 200000); pi 21369 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa1, orig_RfseqCoreActv); pi 21370 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WARN(read_phy_reg(pi, 0xa4) & status_mask, "HW error in rf"); pi 21374 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_1tomany_nphy(struct brcms_phy *pi, u16 cmd, u16 value, pi 21380 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 21385 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x1 << 5), pi 21389 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x1 << 4), value, pi 21393 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x1 << 3), value, pi 21399 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x1 << 2), pi 21403 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x1 << 1), value, pi 21407 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x1 << 0), value, pi 21411 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x1 << 1), value, pi 21415 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x1 << 11), 0, pi 21421 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x1 << 2), pi 21425 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x1 << 1), value, pi 21429 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x1 << 0), value, pi 21433 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x1 << 2), value, pi 21437 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x1 << 11), 1, pi 21447 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x1 << 11), pi 21452 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x3 << 13), pi 21463 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x1 << 12), pi 21467 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x1 << 13), pi 21477 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_scale_offset_rssi_nphy(struct brcms_phy *pi, u16 scale, s8 offset, pi 21492 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1a6, valuetostuff); pi 21497 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1ac, valuetostuff); pi 21502 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1b2, valuetostuff); pi 21507 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1b8, valuetostuff); pi 21512 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1a4, valuetostuff); pi 21517 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1aa, valuetostuff); pi 21522 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1b0, valuetostuff); pi 21527 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1b6, valuetostuff); pi 21532 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1a5, valuetostuff); pi 21536 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1ab, valuetostuff); pi 21541 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1b1, valuetostuff); pi 21546 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1b7, valuetostuff); pi 21551 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1a7, valuetostuff); pi 21555 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1ad, valuetostuff); pi 21559 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1b3, valuetostuff); pi 21563 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1b9, valuetostuff); pi 21568 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1a8, valuetostuff); pi 21573 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1ae, valuetostuff); pi 21578 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1b4, valuetostuff); pi 21583 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1ba, valuetostuff); pi 21588 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1a9, valuetostuff); pi 21592 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1b5, valuetostuff); pi 21597 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1af, valuetostuff); pi 21602 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1bb, valuetostuff); pi 21605 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void brcms_phy_wr_tx_mux(struct brcms_phy *pi, u8 core) pi 21607 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi)) { pi 21608 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 21609 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 21613 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (CHSPEC_IS5G(pi->radio_chanspec) ? pi 21616 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 21620 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (CHSPEC_IS5G(pi->radio_chanspec) ? pi 21623 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 21624 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 21630 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radioid == BCM2057_ID) pi 21631 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 21635 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 21644 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c void wlc_phy_rssisel_nphy(struct brcms_phy *pi, u8 core_code, u8 rssi_type) pi 21655 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 21657 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x8f, (0x1 << 9), 0); pi 21658 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa5, (0x1 << 9), 0); pi 21660 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa6, (0x3 << 8), 0); pi 21661 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa7, (0x3 << 8), 0); pi 21663 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xe5, (0x1 << 5), 0); pi 21664 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xe6, (0x1 << 5), 0); pi 21668 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xf9, mask, 0); pi 21669 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xfb, mask, 0); pi 21672 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (core = 0; core < pi->pubpi.phy_corenum; core++) { pi 21680 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core == PHY_CORE_0) ? pi 21686 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 21694 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 21701 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->radio_chanspec)) { pi 21716 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 21723 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core == PHY_CORE_0) ? pi 21729 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 21735 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 21743 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 21749 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 21756 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 21762 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 21766 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c brcms_phy_wr_tx_mux(pi, core); pi 21768 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, pi 21792 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa6, mask, val); pi 21793 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa7, mask, val); pi 21807 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x7a, mask, val); pi 21808 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x7d, mask, val); pi 21834 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa5, afectrlovr_rssi_mask, pi 21853 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x78, rfctrlcmd_mask, rfctrlcmd_val); pi 21854 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xec, rfctrlovr_mask, rfctrlovr_val); pi 21856 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x78, (0x1 << 0), (startseq << 0)); pi 21859 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xec, (0x1 << 0), 0); pi 21865 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_poll_rssi_nphy(struct brcms_phy *pi, u8 rssi_type, s32 *rssi_buf, pi 21886 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c afectrlCore1_save = read_phy_reg(pi, 0xa6); pi 21887 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c afectrlCore2_save = read_phy_reg(pi, 0xa7); pi 21888 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 21889 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c rfctrlMiscReg1_save = read_phy_reg(pi, 0xf9); pi 21890 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c rfctrlMiscReg2_save = read_phy_reg(pi, 0xfb); pi 21891 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c afectrlOverride1_save = read_phy_reg(pi, 0x8f); pi 21892 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c afectrlOverride2_save = read_phy_reg(pi, 0xa5); pi 21893 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c rfctrlOverrideAux0_save = read_phy_reg(pi, 0xe5); pi 21894 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c rfctrlOverrideAux1_save = read_phy_reg(pi, 0xe6); pi 21896 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c afectrlOverride1_save = read_phy_reg(pi, 0xa5); pi 21897 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c rfctrlcmd_save = read_phy_reg(pi, 0x78); pi 21898 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c rfctrloverride_save = read_phy_reg(pi, 0xec); pi 21899 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c rfctrlrssiothers1_save = read_phy_reg(pi, 0x7a); pi 21900 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c rfctrlrssiothers2_save = read_phy_reg(pi, 0x7d); pi 21903 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rssisel_nphy(pi, RADIO_MIMO_CORESEL_ALLRX, rssi_type); pi 21905 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c gpiosel_orig = read_phy_reg(pi, 0xca); pi 21906 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 2)) pi 21907 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xca, 5); pi 21913 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 2)) { pi 21914 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c rssi0 = read_phy_reg(pi, 0x1c9); pi 21915 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c rssi1 = read_phy_reg(pi, 0x1ca); pi 21917 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c rssi0 = read_phy_reg(pi, 0x219); pi 21918 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c rssi1 = read_phy_reg(pi, 0x21a); pi 21937 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 2)) pi 21938 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xca, gpiosel_orig); pi 21940 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa6, afectrlCore1_save); pi 21941 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa7, afectrlCore2_save); pi 21942 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 21943 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xf9, rfctrlMiscReg1_save); pi 21944 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xfb, rfctrlMiscReg2_save); pi 21945 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x8f, afectrlOverride1_save); pi 21946 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa5, afectrlOverride2_save); pi 21947 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xe5, rfctrlOverrideAux0_save); pi 21948 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xe6, rfctrlOverrideAux1_save); pi 21950 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa5, afectrlOverride1_save); pi 21951 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x78, rfctrlcmd_save); pi 21952 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xec, rfctrloverride_save); pi 21953 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x7a, rfctrlrssiothers1_save); pi 21954 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x7d, rfctrlrssiothers2_save); pi 21960 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c s16 wlc_phy_tempsense_nphy(struct brcms_phy *pi) pi 21977 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 21988 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2057_TEMPSENSE_CONFIG); pi 21990 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c afectrlCore1_save = read_phy_reg(pi, 0xa6); pi 21991 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c afectrlCore2_save = read_phy_reg(pi, 0xa7); pi 21992 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c afectrlOverride_save = read_phy_reg(pi, 0x8f); pi 21993 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c afectrlOverride2_save = read_phy_reg(pi, 0xa5); pi 21994 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c RSSIMultCoef0QPowerDet_save = read_phy_reg(pi, 0x1ae); pi 21995 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c RfctrlOverride5_save = read_phy_reg(pi, 0x346); pi 21996 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c RfctrlOverride6_save = read_phy_reg(pi, 0x347); pi 21997 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c RfctrlMiscReg5_save = read_phy_reg(pi, 0x344); pi 21998 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c RfctrlMiscReg6_save = read_phy_reg(pi, 0x345); pi 22000 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 0x0A, 16, pi 22002 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 0x0E, 16, pi 22004 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 0x02, 16, pi 22006 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 0x03, 16, pi 22009 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1ae, 0x0); pi 22013 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 0x02, 16, pi 22015 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 0x03, 16, pi 22020 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_TEMPSENSE_CONFIG, pi 22023 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 1), pi 22026 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa6, (0x1 << 7), 0); pi 22027 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa7, (0x1 << 7), 0); pi 22028 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x8f, (0x1 << 7), (0x1 << 7)); pi 22029 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa5, (0x1 << 7), (0x1 << 7)); pi 22031 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa6, (0x1 << 2), (0x1 << 2)); pi 22032 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa7, (0x1 << 2), (0x1 << 2)); pi 22033 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x8f, (0x1 << 2), (0x1 << 2)); pi 22034 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa5, (0x1 << 2), (0x1 << 2)); pi 22036 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa6, (0x1 << 2), 0); pi 22037 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa7, (0x1 << 2), 0); pi 22038 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa6, (0x1 << 3), 0); pi 22039 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa7, (0x1 << 3), 0); pi 22040 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x8f, (0x1 << 3), (0x1 << 3)); pi 22041 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa5, (0x1 << 3), (0x1 << 3)); pi 22042 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa6, (0x1 << 6), 0); pi 22043 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa7, (0x1 << 6), 0); pi 22044 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x8f, (0x1 << 6), (0x1 << 6)); pi 22045 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa5, (0x1 << 6), (0x1 << 6)); pi 22049 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 0x0A, 16, pi 22051 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 0x0E, 16, pi 22056 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_poll_rssi_nphy(pi, NPHY_RSSI_SEL_IQ, radio_temp, 1); pi 22057 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_TEMPSENSE_CONFIG, pi 22061 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_poll_rssi_nphy(pi, NPHY_RSSI_SEL_IQ, radio_temp2, 1); pi 22078 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 0x0A, 16, pi 22080 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 0x0E, 16, pi 22085 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_poll_rssi_nphy(pi, NPHY_RSSI_SEL_IQ, radio_temp2, 1); pi 22086 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_TEMPSENSE_CONFIG, pi 22090 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_poll_rssi_nphy(pi, NPHY_RSSI_SEL_IQ, radio_temp, 1); pi 22092 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_TEMPSENSE_CONFIG, pi 22095 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa6, afectrlCore1_save); pi 22096 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa7, afectrlCore2_save); pi 22097 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x8f, afectrlOverride_save); pi 22098 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa5, afectrlOverride2_save); pi 22099 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x1ae, RSSIMultCoef0QPowerDet_save); pi 22100 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x346, RfctrlOverride5_save); pi 22101 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x347, RfctrlOverride6_save); pi 22102 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x344, RfctrlMiscReg5_save); pi 22103 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x345, RfctrlMiscReg5_save); pi 22105 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 0x0A, 16, pi 22107 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 0x0E, 16, pi 22109 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 0x02, 16, pi 22111 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 0x03, 16, pi 22114 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->sh->chip == BCMA_CHIP_ID_BCM5357) { pi 22124 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c offset = (s16) pi->phy_tempsense_offset; pi 22126 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 22128 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2056_SYN_TEMPPROCSENSE); pi 22130 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c afectrlCore1_save = read_phy_reg(pi, 0xa6); pi 22131 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c afectrlCore2_save = read_phy_reg(pi, 0xa7); pi 22132 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c afectrlOverride_save = read_phy_reg(pi, 0x8f); pi 22133 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c afectrlOverride2_save = read_phy_reg(pi, 0xa5); pi 22134 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c gpioSel_save = read_phy_reg(pi, 0xca); pi 22136 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_TEMPPROCSENSE, 0x01); pi 22138 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_poll_rssi_nphy(pi, NPHY_RSSI_SEL_IQ, radio_temp, 1); pi 22139 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 7)) pi 22140 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_TEMPPROCSENSE, 0x05); pi 22142 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_poll_rssi_nphy(pi, NPHY_RSSI_SEL_IQ, radio_temp2, 1); pi 22143 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 22144 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2057_TEMPSENSE_CONFIG, 0x01); pi 22146 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_TEMPPROCSENSE, 0x01); pi 22151 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_SYN_TEMPPROCSENSE, pi 22154 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xca, gpioSel_save); pi 22155 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa6, afectrlCore1_save); pi 22156 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa7, afectrlCore2_save); pi 22157 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x8f, afectrlOverride_save); pi 22158 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa5, afectrlOverride2_save); pi 22160 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c offset = (s16) pi->phy_tempsense_offset; pi 22164 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2055_PWRDET_RXTX_CORE1); pi 22166 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2055_PWRDET_RXTX_CORE2); pi 22168 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2055_CORE1_TXRF_IQCAL1); pi 22170 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2055_CORE1_TXRF_IQCAL2); pi 22172 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2055_CORE2_TXRF_IQCAL1); pi 22174 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2055_CORE2_TXRF_IQCAL2); pi 22175 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pd_pll_ts_save = read_radio_reg(pi, RADIO_2055_PD_PLL_TS); pi 22177 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c afectrlCore1_save = read_phy_reg(pi, 0xa6); pi 22178 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c afectrlCore2_save = read_phy_reg(pi, 0xa7); pi 22179 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c afectrlOverride_save = read_phy_reg(pi, 0xa5); pi 22180 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c gpioSel_save = read_phy_reg(pi, 0xca); pi 22182 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE1_TXRF_IQCAL1, 0x01); pi 22183 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE2_TXRF_IQCAL1, 0x01); pi 22184 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE1_TXRF_IQCAL2, 0x08); pi 22185 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE2_TXRF_IQCAL2, 0x08); pi 22186 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_PWRDET_RXTX_CORE1, 0x04); pi 22187 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_PWRDET_RXTX_CORE2, 0x04); pi 22188 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_PD_PLL_TS, 0x00); pi 22190 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_poll_rssi_nphy(pi, NPHY_RSSI_SEL_IQ, radio_temp, 1); pi 22191 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c xor_radio_reg(pi, RADIO_2055_CAL_TS, 0x80); pi 22193 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_poll_rssi_nphy(pi, NPHY_RSSI_SEL_IQ, radio_temp, 1); pi 22194 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c xor_radio_reg(pi, RADIO_2055_CAL_TS, 0x80); pi 22196 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_poll_rssi_nphy(pi, NPHY_RSSI_SEL_IQ, radio_temp2, 1); pi 22197 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c xor_radio_reg(pi, RADIO_2055_CAL_TS, 0x80); pi 22214 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_PWRDET_RXTX_CORE1, pi 22216 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_PWRDET_RXTX_CORE2, pi 22218 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE1_TXRF_IQCAL1, pi 22220 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE2_TXRF_IQCAL1, pi 22222 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE1_TXRF_IQCAL2, pi 22224 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE2_TXRF_IQCAL2, pi 22226 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_PD_PLL_TS, pd_pll_ts_save); pi 22228 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xca, gpioSel_save); pi 22229 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa6, afectrlCore1_save); pi 22230 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa7, afectrlCore2_save); pi 22231 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa5, afectrlOverride_save); pi 22238 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_set_rssi_2055_vcm(struct brcms_phy *pi, u8 rssi_type, u8 *vcm_buf) pi 22242 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (core = 0; core < pi->pubpi.phy_corenum; core++) { pi 22245 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, pi 22251 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, pi 22258 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, pi 22264 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, pi 22273 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, pi 22280 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, pi 22290 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_rssi_cal_nphy_rev3(struct brcms_phy *pi) pi 22341 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c classif_state = wlc_phy_classifier_nphy(pi, 0, 0); pi 22342 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_classifier_nphy(pi, (0x7 << 0), 4); pi 22343 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_clip_det_nphy(pi, 0, clip_state); pi 22344 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_clip_det_nphy(pi, 1, clip_off); pi 22346 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_Rfctrlintc1_save = read_phy_reg(pi, 0x91); pi 22347 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_Rfctrlintc2_save = read_phy_reg(pi, 0x92); pi 22348 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_AfectrlOverride1_save = read_phy_reg(pi, 0x8f); pi 22349 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_AfectrlOverride2_save = read_phy_reg(pi, 0xa5); pi 22350 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_AfectrlCore1_save = read_phy_reg(pi, 0xa6); pi 22351 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_AfectrlCore2_save = read_phy_reg(pi, 0xa7); pi 22352 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_RfctrlOverride0_save = read_phy_reg(pi, 0xe7); pi 22353 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_RfctrlOverride1_save = read_phy_reg(pi, 0xec); pi 22354 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 22355 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_REV7_RfctrlOverride3_save = read_phy_reg(pi, 0x342); pi 22356 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_REV7_RfctrlOverride4_save = read_phy_reg(pi, 0x343); pi 22357 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_REV7_RfctrlOverride5_save = read_phy_reg(pi, 0x346); pi 22358 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_REV7_RfctrlOverride6_save = read_phy_reg(pi, 0x347); pi 22360 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_RfctrlOverrideAux0_save = read_phy_reg(pi, 0xe5); pi 22361 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_RfctrlOverrideAux1_save = read_phy_reg(pi, 0xe6); pi 22362 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_RfctrlCmd_save = read_phy_reg(pi, 0x78); pi 22363 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_RfctrlMiscReg1_save = read_phy_reg(pi, 0xf9); pi 22364 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_RfctrlMiscReg2_save = read_phy_reg(pi, 0xfb); pi 22365 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 22366 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_REV7_RfctrlMiscReg3_save = read_phy_reg(pi, 0x340); pi 22367 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_REV7_RfctrlMiscReg4_save = read_phy_reg(pi, 0x341); pi 22368 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_REV7_RfctrlMiscReg5_save = read_phy_reg(pi, 0x344); pi 22369 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_REV7_RfctrlMiscReg6_save = read_phy_reg(pi, 0x345); pi 22371 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_RfctrlRSSIOTHERS1_save = read_phy_reg(pi, 0x7a); pi 22372 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_RfctrlRSSIOTHERS2_save = read_phy_reg(pi, 0x7d); pi 22374 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrlintc_override_nphy(pi, NPHY_RfctrlIntc_override_OFF, 0, pi 22376 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrlintc_override_nphy(pi, NPHY_RfctrlIntc_override_TRSW, 1, pi 22379 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 22381 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 22385 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 0), 0, 0, 0); pi 22387 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 22389 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 22393 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 1), 1, 0, 0); pi 22395 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 22396 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 7), pi 22399 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 6), 1, 0, 0, pi 22402 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 7), 1, 0, 0); pi 22403 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 6), 1, 0, 0); pi 22406 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 22407 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 22409 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x1 << 5), pi 22413 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x1 << 4), 1, 0, pi 22417 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 5), 0, 0, 0); pi 22418 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 4), 1, 0, 0); pi 22422 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 22424 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x1 << 4), pi 22428 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x1 << 5), 1, 0, pi 22432 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 4), 0, 0, 0); pi 22433 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 5), 1, 0, 0); pi 22438 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (struct brcms_phy_pub *) pi); pi 22442 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (core = 0; core < pi->pubpi.phy_corenum; core++) { pi 22447 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_scale_offset_rssi_nphy(pi, 0x0, 0x0, pi 22453 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_scale_offset_rssi_nphy(pi, 0x0, 0x0, pi 22461 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 22462 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, (core == PHY_CORE_0) ? pi 22467 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2056_RX_RSSI_MISC | pi 22474 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_poll_rssi_nphy(pi, NPHY_RSSI_SEL_NB, pi 22511 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 22512 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, (core == PHY_CORE_0) ? pi 22517 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2056_RX_RSSI_MISC | pi 22554 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, 0x0, pi 22569 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (core = 0; core < pi->pubpi.phy_corenum; core++) { pi 22583 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_scale_offset_rssi_nphy(pi, 0x0, 0x0, pi 22590 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_scale_offset_rssi_nphy(pi, 0x0, 0x0, pi 22598 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_poll_rssi_nphy(pi, rssi_type, poll_result_core, pi 22630 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, 0x0, pi 22648 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x91, NPHY_Rfctrlintc1_save); pi 22649 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x92, NPHY_Rfctrlintc2_save); pi 22651 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_force_rfseq_nphy(pi, NPHY_RFSEQ_RESET2RX); pi 22653 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xe7, (0x1 << 0), 1 << 0); pi 22654 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x78, (0x1 << 0), 1 << 0); pi 22655 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xe7, (0x1 << 0), 0); pi 22657 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xec, (0x1 << 0), 1 << 0); pi 22658 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x78, (0x1 << 1), 1 << 1); pi 22659 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xec, (0x1 << 0), 0); pi 22661 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x8f, NPHY_AfectrlOverride1_save); pi 22662 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa5, NPHY_AfectrlOverride2_save); pi 22663 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa6, NPHY_AfectrlCore1_save); pi 22664 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa7, NPHY_AfectrlCore2_save); pi 22665 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xe7, NPHY_RfctrlOverride0_save); pi 22666 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xec, NPHY_RfctrlOverride1_save); pi 22667 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 22668 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x342, NPHY_REV7_RfctrlOverride3_save); pi 22669 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x343, NPHY_REV7_RfctrlOverride4_save); pi 22670 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x346, NPHY_REV7_RfctrlOverride5_save); pi 22671 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x347, NPHY_REV7_RfctrlOverride6_save); pi 22673 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xe5, NPHY_RfctrlOverrideAux0_save); pi 22674 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xe6, NPHY_RfctrlOverrideAux1_save); pi 22675 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x78, NPHY_RfctrlCmd_save); pi 22676 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xf9, NPHY_RfctrlMiscReg1_save); pi 22677 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xfb, NPHY_RfctrlMiscReg2_save); pi 22678 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 22679 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x340, NPHY_REV7_RfctrlMiscReg3_save); pi 22680 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x341, NPHY_REV7_RfctrlMiscReg4_save); pi 22681 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x344, NPHY_REV7_RfctrlMiscReg5_save); pi 22682 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x345, NPHY_REV7_RfctrlMiscReg6_save); pi 22684 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x7a, NPHY_RfctrlRSSIOTHERS1_save); pi 22685 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x7d, NPHY_RfctrlRSSIOTHERS2_save); pi 22687 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 22688 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 22689 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_radio_regs_2G[0] = pi 22690 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2057_NB_MASTER_CORE0); pi 22691 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_radio_regs_2G[1] = pi 22692 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2057_NB_MASTER_CORE1); pi 22694 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_radio_regs_2G[0] = pi 22695 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 22698 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_radio_regs_2G[1] = pi 22699 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 22704 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_2G[0] = pi 22705 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, 0x1a6); pi 22706 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_2G[1] = pi 22707 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, 0x1ac); pi 22708 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_2G[2] = pi 22709 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, 0x1b2); pi 22710 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_2G[3] = pi 22711 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, 0x1b8); pi 22712 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_2G[4] = pi 22713 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, 0x1a4); pi 22714 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_2G[5] = pi 22715 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, 0x1aa); pi 22716 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_2G[6] = pi 22717 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, 0x1b0); pi 22718 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_2G[7] = pi 22719 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, 0x1b6); pi 22720 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_2G[8] = pi 22721 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, 0x1a5); pi 22722 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_2G[9] = pi 22723 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, 0x1ab); pi 22724 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_2G[10] = pi 22725 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, 0x1b1); pi 22726 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_2G[11] = pi 22727 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, 0x1b7); pi 22729 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_rssical_chanspec_2G = pi->radio_chanspec; pi 22731 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 22732 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_radio_regs_5G[0] = pi 22733 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2057_NB_MASTER_CORE0); pi 22734 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_radio_regs_5G[1] = pi 22735 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2057_NB_MASTER_CORE1); pi 22737 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_radio_regs_5G[0] = pi 22738 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 22741 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_radio_regs_5G[1] = pi 22742 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 22747 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_5G[0] = pi 22748 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, 0x1a6); pi 22749 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_5G[1] = pi 22750 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, 0x1ac); pi 22751 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_5G[2] = pi 22752 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, 0x1b2); pi 22753 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_5G[3] = pi 22754 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, 0x1b8); pi 22755 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_5G[4] = pi 22756 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, 0x1a4); pi 22757 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_5G[5] = pi 22758 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, 0x1aa); pi 22759 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_5G[6] = pi 22760 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, 0x1b0); pi 22761 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_5G[7] = pi 22762 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, 0x1b6); pi 22763 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_5G[8] = pi 22764 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, 0x1a5); pi 22765 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_5G[9] = pi 22766 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, 0x1ab); pi 22767 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_5G[10] = pi 22768 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, 0x1b1); pi 22769 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->rssical_cache.rssical_phyregs_5G[11] = pi 22770 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, 0x1b7); pi 22772 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_rssical_chanspec_5G = pi->radio_chanspec; pi 22775 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_classifier_nphy(pi, (0x7 << 0), classif_state); pi 22776 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_clip_det_nphy(pi, 1, clip_state); pi 22779 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_rssi_cal_nphy_rev2(struct brcms_phy *pi, u8 rssi_type) pi 22823 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c classif_state = wlc_phy_classifier_nphy(pi, 0, 0); pi 22824 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_classifier_nphy(pi, (0x7 << 0), 4); pi 22825 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_clip_det_nphy(pi, 0, clip_state); pi 22826 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_clip_det_nphy(pi, 1, clip_off); pi 22830 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c CHSPEC_IS5G(pi->radio_chanspec) ? 0x140 : 0x110; pi 22832 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c rfctrlintc_state[0] = read_phy_reg(pi, 0x91); pi 22833 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c rfpdcorerxtx_state[0] = read_radio_reg(pi, RADIO_2055_PD_CORE1_RXTX); pi 22834 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x91, rfctrlintc_override_val); pi 22835 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_PD_CORE1_RXTX, rf_pd_val); pi 22837 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c rfctrlintc_state[1] = read_phy_reg(pi, 0x92); pi 22838 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c rfpdcorerxtx_state[1] = read_radio_reg(pi, RADIO_2055_PD_CORE2_RXTX); pi 22839 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x92, rfctrlintc_override_val); pi 22840 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_PD_CORE2_RXTX, rf_pd_val); pi 22845 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2055_PD_CORE1_RSSI_MISC) & pd_mask; pi 22847 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2055_PD_CORE2_RSSI_MISC) & pd_mask; pi 22848 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2055_PD_CORE1_RSSI_MISC, pd_mask, 0); pi 22849 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2055_PD_CORE2_RSSI_MISC, pd_mask, 0); pi 22853 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2055_SP_RSSI_CORE1) & rssi_ctrl_mask; pi 22855 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2055_SP_RSSI_CORE2) & rssi_ctrl_mask; pi 22856 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rssisel_nphy(pi, RADIO_MIMO_CORESEL_ALLRX, rssi_type); pi 22858 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_scale_offset_rssi_nphy(pi, 0x0, 0x0, RADIO_MIMO_CORESEL_ALLRX, pi 22860 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_scale_offset_rssi_nphy(pi, 0x0, 0x0, RADIO_MIMO_CORESEL_ALLRX, pi 22867 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_set_rssi_2055_vcm(pi, rssi_type, vcm_tmp); pi 22869 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_poll_rssi_nphy(pi, rssi_type, &poll_results[vcm][0], pi 22902 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_set_rssi_2055_vcm(pi, rssi_type, vcm_final); pi 22927 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_scale_offset_rssi_nphy(pi, 0x0, pi 22938 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2055_PD_CORE1_RSSI_MISC, pd_mask, pd_state[0]); pi 22939 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2055_PD_CORE2_RSSI_MISC, pd_mask, pd_state[1]); pi 22941 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rssisel_nphy(pi, RADIO_MIMO_CORESEL_CORE1, pi 22944 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rssisel_nphy(pi, RADIO_MIMO_CORESEL_CORE1, pi 22947 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rssisel_nphy(pi, RADIO_MIMO_CORESEL_CORE1, pi 22950 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rssisel_nphy(pi, RADIO_MIMO_CORESEL_CORE2, pi 22953 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rssisel_nphy(pi, RADIO_MIMO_CORESEL_CORE2, pi 22956 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rssisel_nphy(pi, RADIO_MIMO_CORESEL_CORE2, pi 22958 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rssisel_nphy(pi, RADIO_MIMO_CORESEL_OFF, rssi_type); pi 22960 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x91, rfctrlintc_state[0]); pi 22961 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_PD_CORE1_RXTX, rfpdcorerxtx_state[0]); pi 22962 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x92, rfctrlintc_state[1]); pi 22963 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_PD_CORE2_RXTX, rfpdcorerxtx_state[1]); pi 22965 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_classifier_nphy(pi, (0x7 << 0), classif_state); pi 22966 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_clip_det_nphy(pi, 1, clip_state); pi 22968 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_resetcca_nphy(pi); pi 22971 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c void wlc_phy_rssi_cal_nphy(struct brcms_phy *pi) pi 22973 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 22974 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rssi_cal_nphy_rev3(pi); pi 22976 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rssi_cal_nphy_rev2(pi, NPHY_RSSI_SEL_NB); pi 22977 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rssi_cal_nphy_rev2(pi, NPHY_RSSI_SEL_W1); pi 22978 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rssi_cal_nphy_rev2(pi, NPHY_RSSI_SEL_W2); pi 22983 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rssi_compute_nphy(struct brcms_phy *pi, struct d11rxhdr *rxh) pi 23007 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->sh->rssi_mode == RSSI_ANT_MERGE_MAX) pi 23009 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if (pi->sh->rssi_mode == RSSI_ANT_MERGE_MIN) pi 23011 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if (pi->sh->rssi_mode == RSSI_ANT_MERGE_AVG) pi 23018 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_loadsampletable_nphy(struct brcms_phy *pi, struct cordic_iq *tone_buf, pi 23028 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 23029 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, true); pi 23034 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_SAMPLEPLAY, num_samps, 0, 32, pi 23039 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 23040 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, false); pi 23044 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_gen_load_samples_nphy(struct brcms_phy *pi, u32 f_kHz, u16 max_val, pi 23053 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c is_phybw40 = CHSPEC_IS40(pi->radio_chanspec); pi 23058 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c spur = read_phy_reg(pi, 0x01); pi 23085 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_loadsampletable_nphy(pi, tone_buf, num_samps); pi 23093 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_runsamples_nphy(struct brcms_phy *pi, u16 num_samps, u16 loops, pi 23103 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 23104 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, true); pi 23107 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS40(pi->radio_chanspec)) pi 23110 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 23112 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c lpf_bw_ctl_override3 = read_phy_reg(pi, 0x342) & (0x1 << 7); pi 23113 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c lpf_bw_ctl_override4 = read_phy_reg(pi, 0x343) & (0x1 << 7); pi 23115 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c lpf_bw_ctl_miscreg3 = read_phy_reg(pi, 0x340) & pi 23117 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c lpf_bw_ctl_miscreg4 = read_phy_reg(pi, 0x341) & pi 23121 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 23124 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi, pi 23128 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_sample_play_lpf_bw_ctl_ovr = true; pi 23130 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c lpf_bw_ctl_miscreg3 = read_phy_reg(pi, 0x340) & pi 23132 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c lpf_bw_ctl_miscreg4 = read_phy_reg(pi, 0x341) & pi 23137 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->nphy_bb_mult_save & BB_MULT_VALID_MASK) == 0) { pi 23139 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_IQLOCAL, 1, 87, 16, pi 23141 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_bb_mult_save = pi 23148 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_IQLOCAL, 1, 87, 16, pi 23152 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 23153 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, false); pi 23155 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xc6, num_samps - 1); pi 23158 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xc4, loops - 1); pi 23160 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xc4, loops); pi 23162 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xc5, wait); pi 23164 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c orig_RfseqCoreActv = read_phy_reg(pi, 0xa1); pi 23165 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0xa1, NPHY_RfseqMode_CoreActv_override); pi 23168 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, 0xc2, 0x7FFF); pi 23170 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0xc2, 0x8000); pi 23174 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xc3, sample_cmd); pi 23177 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c SPINWAIT(((read_phy_reg(pi, 0xa4) & 0x1) == 1), 1000); pi 23179 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa1, orig_RfseqCoreActv); pi 23183 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_tx_tone_nphy(struct brcms_phy *pi, u32 f_kHz, u16 max_val, pi 23190 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c num_samps = wlc_phy_gen_load_samples_nphy(pi, f_kHz, max_val, pi 23195 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_runsamples_nphy(pi, num_samps, loops, wait, iqmode, pi 23201 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c void wlc_phy_stopplayback_nphy(struct brcms_phy *pi) pi 23206 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 23207 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, true); pi 23209 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c playback_status = read_phy_reg(pi, 0xc7); pi 23211 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0xc3, NPHY_sampleCmd_STOP); pi 23213 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, 0xc2, pi 23216 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, 0xc3, (u16) ~(0x1 << 2)); pi 23218 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->nphy_bb_mult_save & BB_MULT_VALID_MASK) != 0) { pi 23220 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bb_mult = pi->nphy_bb_mult_save & BB_MULT_MASK; pi 23221 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_IQLOCAL, 1, 87, 16, pi 23224 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_bb_mult_save = 0; pi 23227 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_IS(pi->pubpi.phy_rev, 7) || NREV_GE(pi->pubpi.phy_rev, 8)) { pi 23228 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_sample_play_lpf_bw_ctl_ovr) { pi 23230 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 23234 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_sample_play_lpf_bw_ctl_ovr = false; pi 23238 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 23239 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, false); pi 23242 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static u32 *brcms_phy_get_tx_pwrctrl_tbl(struct brcms_phy *pi) pi 23245 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c uint phyrev = pi->pubpi.phy_rev; pi 23247 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi)) { pi 23249 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_get_ipa_gaintbl_nphy(pi); pi 23251 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 23256 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->srom_fem5g.extpagain == 3) ? pi 23263 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev == 3) pi 23266 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if (pi->pubpi.radiorev == 5) pi 23271 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->srom_fem2g.extpagain == 3)) pi 23283 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c struct nphy_txgains wlc_phy_get_tx_gain_nphy(struct brcms_phy *pi) pi 23290 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_txpwrctrl == PHY_TPC_HW_OFF) { pi 23291 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 23292 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, true); pi 23294 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_RFSEQ, 2, 0x110, 16, pi 23297 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 23298 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, false); pi 23301 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 23312 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 23333 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c uint phyrev = pi->pubpi.phy_rev; pi 23335 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c base_idx[0] = (read_phy_reg(pi, 0x1ed) >> 8) & 0x7f; pi 23336 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c base_idx[1] = (read_phy_reg(pi, 0x1ee) >> 8) & 0x7f; pi 23340 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c brcms_phy_get_tx_pwrctrl_tbl(pi); pi 23401 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_iqcal_gainparams_nphy(struct brcms_phy *pi, u16 core_no, pi 23408 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c u8 band_idx = (CHSPEC_IS5G(pi->radio_chanspec) ? 1 : 0); pi 23410 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 23411 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 23418 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 23460 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_txcal_radio_setup_nphy(struct brcms_phy *pi) pi 23464 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 23468 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[(core * 11) + 0] = pi 23469 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c READ_RADIO_REG3(pi, RADIO_2057, TX, core, pi 23472 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[(core * 11) + 1] = pi 23473 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c READ_RADIO_REG3(pi, RADIO_2057, TX, core, pi 23476 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[(core * 11) + 2] = pi 23477 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c READ_RADIO_REG3(pi, RADIO_2057, TX, core, pi 23480 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[(core * 11) + 3] = pi 23481 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c READ_RADIO_REG3(pi, RADIO_2057, TX, core, pi 23484 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[(core * 11) + 4] = 0; pi 23486 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[(core * 11) + 5] = pi 23487 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c READ_RADIO_REG3(pi, RADIO_2057, TX, core, pi 23490 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev != 5) pi 23491 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[(core * 11) + 6] = pi 23492 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c READ_RADIO_REG3(pi, RADIO_2057, TX, pi 23496 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[(core * 11) + 7] = pi 23497 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c READ_RADIO_REG3(pi, RADIO_2057, TX, core, TSSIG); pi 23499 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[(core * 11) + 8] = pi 23500 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c READ_RADIO_REG3(pi, RADIO_2057, TX, core, pi 23503 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 23504 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 23506 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 23508 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 23510 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 23512 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 23514 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->use_int_tx_iqlo_cal_nphy) { pi 23515 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, pi 23517 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (!(pi-> pi 23519 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, pi 23523 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, pi 23527 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 23530 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 23532 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 23534 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 23536 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 23539 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev != 5) pi 23540 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, pi 23542 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->use_int_tx_iqlo_cal_nphy) { pi 23543 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, pi 23546 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (!(pi-> pi 23548 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, pi 23552 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, pi 23556 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 23560 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 23567 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[(core * 11) + 0] = pi 23568 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 23572 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[(core * 11) + 1] = pi 23573 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 23577 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[(core * 11) + 2] = pi 23578 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 23582 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[(core * 11) + 3] = pi 23584 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 23588 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[(core * 11) + 4] = pi 23589 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 23593 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[(core * 11) + 5] = pi 23594 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 23598 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[(core * 11) + 6] = pi 23599 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 23602 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[(core * 11) + 7] = pi 23603 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 23606 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[(core * 11) + 8] = pi 23607 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 23611 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[(core * 11) + 9] = pi 23612 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 23616 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[(core * 11) + 10] = pi 23617 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 23621 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 23622 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23625 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23628 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23631 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23634 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23638 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi)) { pi 23640 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 23643 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23648 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 23651 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23655 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23658 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23662 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23665 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23669 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23672 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23675 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23678 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23681 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23684 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23688 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi)) { pi 23691 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 23694 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 5)) pi 23696 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 23702 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 23708 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 23711 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23716 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23719 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23722 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23729 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[0] = pi 23730 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2055_CORE1_TXRF_IQCAL1); pi 23731 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE1_TXRF_IQCAL1, 0x29); pi 23732 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[1] = pi 23733 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2055_CORE1_TXRF_IQCAL2); pi 23734 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE1_TXRF_IQCAL2, 0x54); pi 23736 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[2] = pi 23737 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2055_CORE2_TXRF_IQCAL1); pi 23738 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE2_TXRF_IQCAL1, 0x29); pi 23739 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[3] = pi 23740 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2055_CORE2_TXRF_IQCAL2); pi 23741 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE2_TXRF_IQCAL2, 0x54); pi 23743 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[4] = pi 23744 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2055_PWRDET_RXTX_CORE1); pi 23745 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[5] = pi 23746 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, RADIO_2055_PWRDET_RXTX_CORE2); pi 23748 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((read_phy_reg(pi, 0x09) & NPHY_BandControl_currentBand) == pi 23751 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_PWRDET_RXTX_CORE1, 0x04); pi 23752 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_PWRDET_RXTX_CORE2, 0x04); pi 23755 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_PWRDET_RXTX_CORE1, 0x20); pi 23756 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_PWRDET_RXTX_CORE2, 0x20); pi 23759 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 2)) { pi 23761 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_radio_reg(pi, RADIO_2055_CORE1_TX_BB_MXGM, 0x20); pi 23762 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_radio_reg(pi, RADIO_2055_CORE2_TX_BB_MXGM, 0x20); pi 23765 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_radio_reg(pi, RADIO_2055_CORE1_TX_BB_MXGM, 0xdf); pi 23766 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_radio_reg(pi, RADIO_2055_CORE2_TX_BB_MXGM, 0xdf); pi 23771 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_txcal_radio_cleanup_nphy(struct brcms_phy *pi) pi 23775 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 23778 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 23780 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 23784 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, IQCAL_VCM_HG, pi 23785 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 23789 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, IQCAL_IDAC, pi 23790 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 23794 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, TSSI_VCM, pi 23795 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 23799 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, TX_SSI_MUX, pi 23800 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 23804 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev != 5) pi 23805 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 23807 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs pi 23810 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, TSSIG, pi 23811 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 23815 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, TSSI_MISC1, pi 23816 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 23820 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 23825 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23827 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 23831 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23833 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 23837 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23839 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 23843 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_TX_TSSI_VCM | jtag_core, pi 23844 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 23848 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23850 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 23854 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23856 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 23860 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_TX_TSSIA | jtag_core, pi 23861 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 23865 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2056_TX_TSSIG | jtag_core, pi 23866 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 23870 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23872 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 23876 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23878 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 23882 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 23884 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 23890 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE1_TXRF_IQCAL1, pi 23891 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[0]); pi 23892 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE1_TXRF_IQCAL2, pi 23893 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[1]); pi 23894 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE2_TXRF_IQCAL1, pi 23895 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[2]); pi 23896 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_CORE2_TXRF_IQCAL2, pi 23897 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[3]); pi 23898 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_PWRDET_RXTX_CORE1, pi 23899 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[4]); pi 23900 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, RADIO_2055_PWRDET_RXTX_CORE2, pi 23901 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[5]); pi 23905 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_txcal_physetup_nphy(struct brcms_phy *pi) pi 23909 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 23910 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[0] = read_phy_reg(pi, 0xa6); pi 23911 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[1] = read_phy_reg(pi, 0xa7); pi 23916 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa6, mask, val); pi 23917 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa7, mask, val); pi 23919 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c val = read_phy_reg(pi, 0x8f); pi 23920 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[2] = val; pi 23922 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x8f, val); pi 23924 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c val = read_phy_reg(pi, 0xa5); pi 23925 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[3] = val; pi 23927 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa5, val); pi 23929 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[4] = read_phy_reg(pi, 0x01); pi 23930 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x01, (0x1 << 15), 0); pi 23932 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 3, 16, pi 23934 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[5] = val; pi 23936 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 3, 16, pi 23939 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 19, 16, pi 23941 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[6] = val; pi 23943 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 19, 16, pi 23946 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[7] = read_phy_reg(pi, 0x91); pi 23947 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[8] = read_phy_reg(pi, 0x92); pi 23949 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (!(pi->use_int_tx_iqlo_cal_nphy)) pi 23951 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 23959 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 23966 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrlintc_override_nphy(pi, pi 23969 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrlintc_override_nphy(pi, pi 23973 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[9] = read_phy_reg(pi, 0x297); pi 23974 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[10] = read_phy_reg(pi, 0x29b); pi 23975 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (0 == PHY_CORE_0) ? 0x297 : pi 23978 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (1 == PHY_CORE_0) ? 0x297 : pi 23981 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_IS(pi->pubpi.phy_rev, 7) pi 23982 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || NREV_GE(pi->pubpi.phy_rev, 8)) pi 23984 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x1 << 7), pi 23986 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi, pi 23990 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->use_int_tx_iqlo_cal_nphy pi 23991 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c && !(pi->internal_tx_iqlo_cal_tapoff_intpa_nphy)) { pi 23993 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_IS(pi->pubpi.phy_rev, 7)) { pi 23995 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057_OVR_REG0, 1 << 4, pi 23998 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 24000 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 24004 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 24009 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 24013 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 24017 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_GE(pi->pubpi.phy_rev, 8)) { pi 24019 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 24026 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[0] = read_phy_reg(pi, 0xa6); pi 24027 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[1] = read_phy_reg(pi, 0xa7); pi 24032 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa6, mask, val); pi 24033 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa7, mask, val); pi 24035 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c val = read_phy_reg(pi, 0xa5); pi 24036 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[2] = val; pi 24038 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa5, val); pi 24040 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 2, 16, pi 24042 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[3] = val; pi 24044 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 2, 16, pi 24047 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 18, 16, pi 24049 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[4] = val; pi 24051 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 18, 16, pi 24054 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[5] = read_phy_reg(pi, 0x91); pi 24055 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[6] = read_phy_reg(pi, 0x92); pi 24056 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c val = CHSPEC_IS5G(pi->radio_chanspec) ? 0x180 : 0x120; pi 24057 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x91, val); pi 24058 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x92, val); pi 24062 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_txcal_phycleanup_nphy(struct brcms_phy *pi) pi 24066 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 24067 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa6, pi->tx_rx_cal_phy_saveregs[0]); pi 24068 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa7, pi->tx_rx_cal_phy_saveregs[1]); pi 24069 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x8f, pi->tx_rx_cal_phy_saveregs[2]); pi 24070 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa5, pi->tx_rx_cal_phy_saveregs[3]); pi 24071 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x01, pi->tx_rx_cal_phy_saveregs[4]); pi 24073 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 3, 16, pi 24074 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c &pi->tx_rx_cal_phy_saveregs[5]); pi 24075 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 19, 16, pi 24076 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c &pi->tx_rx_cal_phy_saveregs[6]); pi 24078 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x91, pi->tx_rx_cal_phy_saveregs[7]); pi 24079 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x92, pi->tx_rx_cal_phy_saveregs[8]); pi 24081 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x297, pi->tx_rx_cal_phy_saveregs[9]); pi 24082 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x29b, pi->tx_rx_cal_phy_saveregs[10]); pi 24084 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_IS(pi->pubpi.phy_rev, 7) pi 24085 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || NREV_GE(pi->pubpi.phy_rev, 8)) pi 24087 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x1 << 7), 0, 0, pi 24091 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_resetcca_nphy(pi); pi 24093 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->use_int_tx_iqlo_cal_nphy pi 24094 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c && !(pi->internal_tx_iqlo_cal_tapoff_intpa_nphy)) { pi 24096 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_IS(pi->pubpi.phy_rev, 7)) { pi 24097 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 24099 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 24103 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 24108 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 24112 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 24117 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2057_OVR_REG0, 1 << 4, pi 24119 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_GE(pi->pubpi.phy_rev, 8)) { pi 24121 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 24129 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa6, mask, pi->tx_rx_cal_phy_saveregs[0]); pi 24130 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa7, mask, pi->tx_rx_cal_phy_saveregs[1]); pi 24131 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa5, pi->tx_rx_cal_phy_saveregs[2]); pi 24133 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 2, 16, pi 24134 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c &pi->tx_rx_cal_phy_saveregs[3]); pi 24136 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_AFECTRL, 1, 18, 16, pi 24137 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c &pi->tx_rx_cal_phy_saveregs[4]); pi 24139 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x91, pi->tx_rx_cal_phy_saveregs[5]); pi 24140 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x92, pi->tx_rx_cal_phy_saveregs[6]); pi 24145 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_est_tonepwr_nphy(struct brcms_phy *pi, s32 *qdBm_pwrbuf, u8 num_samps) pi 24154 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tssi_reg = read_phy_reg(pi, 0x1e9); pi 24163 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c CHSPEC_IS5G(pi->radio_chanspec) ? pi 24166 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_poll_rssi_nphy(pi, tssi_type, rssi_buf, num_samps); pi 24184 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_CORE1TXPWRCTL, 1, pi 24186 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_CORE2TXPWRCTL, 1, pi 24190 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_update_txcal_ladder_nphy(struct brcms_phy *pi, u16 core) pi 24210 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ((pi->nphy_txcal_bbmult >> 8) & 0xff) : pi 24211 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->nphy_txcal_bbmult & 0xff); pi 24219 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_IQLOCAL, 1, index, 16, pi 24227 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_IQLOCAL, 1, index + 32, pi 24232 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static u8 wlc_phy_txpwr_idx_cur_get_nphy(struct brcms_phy *pi, u8 core) pi 24235 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tmp = read_phy_reg(pi, ((core == PHY_CORE_0) ? 0x1ed : 0x1ee)); pi 24242 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_idx_cur_set_nphy(struct brcms_phy *pi, u8 idx0, u8 idx1) pi 24244 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x1e7, (0x7f << 0), idx0); pi 24246 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GT(pi->pubpi.phy_rev, 1)) pi 24247 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x222, (0xff << 0), idx1); pi 24250 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static u16 wlc_phy_ipa_get_bbmult_nphy(struct brcms_phy *pi) pi 24254 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, 15, 1, 87, 16, &m0m1); pi 24259 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_ipa_set_bbmult_nphy(struct brcms_phy *pi, u8 m0, u8 m1) pi 24263 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 15, 1, 87, 16, &m0m1); pi 24264 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 15, 1, 95, 16, &m0m1); pi 24268 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_papd_cal_setup_nphy(struct brcms_phy *pi, pi 24276 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 24278 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_IS(pi->pubpi.phy_rev, 7) pi 24279 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || NREV_GE(pi->pubpi.phy_rev, 8)) pi 24281 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x1 << 7), pi 24283 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi, pi 24287 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 24288 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev == 5) pi 24290 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if ((pi->pubpi.radiorev == 7) pi 24291 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 8)) pi 24293 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if ((pi->pubpi.radiorev <= 4) pi 24294 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 6)) pi 24297 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->pubpi.radiorev == 4) || pi 24298 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->pubpi.radiorev == 6)) pi 24300 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if ((pi->pubpi.radiorev == 3) pi 24301 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 7) pi 24302 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 8)) pi 24306 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 11), pi 24311 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 24315 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 24319 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 3), pi 24322 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 2), 1, pi 24325 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 0), 0, pi 24328 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 1), 1, pi 24331 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 8), 0, pi 24334 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 9), 1, pi 24337 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 10), 0, pi 24340 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 3), 1, pi 24344 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 5), pi 24347 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 4), 0, pi 24351 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c state->afectrl[core] = read_phy_reg(pi, (core == PHY_CORE_0) ? pi 24354 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, (core == PHY_CORE_0) ? 0x8f : 0xa5); pi 24356 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, (core == PHY_CORE_0) ? 0xa7 : 0xa6); pi 24358 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, (core == PHY_CORE_0) ? 0xa5 : 0x8f); pi 24360 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, ((core == PHY_CORE_0) ? 0xa6 : 0xa7), pi 24362 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, ((core == PHY_CORE_0) ? 0x8f : pi 24365 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, ((core == PHY_CORE_0) ? 0xa7 : 0xa6), pi 24367 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, ((core == PHY_CORE_0) ? 0xa5 : pi 24370 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 24372 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c READ_RADIO_REG3(pi, RADIO_2057, TX, core, pi 24375 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c READ_RADIO_REG3(pi, RADIO_2057, TX, core, pi 24378 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c READ_RADIO_REG3(pi, RADIO_2057, TX, off_core, pi 24381 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c READ_RADIO_REG3(pi, RADIO_2057, TX, off_core, pi 24384 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 24387 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->pubpi.radiorev == 3) || pi 24388 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->pubpi.radiorev == 4) || pi 24389 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->pubpi.radiorev == 6)) pi 24390 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 24392 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if (pi->pubpi.radiorev == 5) pi 24393 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 24396 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if ((pi->pubpi.radiorev == 7) pi 24397 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 8)) pi 24398 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 24401 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, off_core, pi 24403 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, off_core, pi 24407 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c READ_RADIO_REG3(pi, RADIO_2057, TX, core, pi 24410 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c READ_RADIO_REG3(pi, RADIO_2057, TX, core, pi 24413 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c READ_RADIO_REG3(pi, RADIO_2057, TX, off_core, pi 24416 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c READ_RADIO_REG3(pi, RADIO_2057, TX, off_core, pi 24419 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 24422 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->pubpi.radiorev == 7) pi 24423 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 8)) pi 24424 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 24428 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 24431 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, off_core, pi 24433 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, off_core, pi 24439 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_tx_tone_nphy(pi, tone_freq, 181, 0, 0, false); pi 24441 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x297 : pi 24444 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x2a3 : pi 24447 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (off_core == PHY_CORE_0) ? 0x297 : pi 24450 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (off_core == PHY_CORE_0) ? 0x2a3 : pi 24455 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 12), 0, 0x3, 0); pi 24457 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 3), 1, 0, 0); pi 24459 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 0), 0, 0x3, 0); pi 24461 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 2), 1, 0x3, 0); pi 24462 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 1), 1, 0x3, 0); pi 24464 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c state->afectrl[core] = read_phy_reg(pi, (core == PHY_CORE_0) ? pi 24467 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, (core == PHY_CORE_0) ? 0x8f : 0xa5); pi 24469 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, ((core == PHY_CORE_0) ? 0xa6 : 0xa7), pi 24471 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, ((core == PHY_CORE_0) ? 0x8f : pi 24478 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c READ_RADIO_REG2(pi, RADIO_2056, RX, core, VGA_MASTER); pi 24479 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, RX, core, VGA_MASTER, 0x2b); pi 24480 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 24482 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c READ_RADIO_REG2(pi, RADIO_2056, RX, core, pi 24485 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c READ_RADIO_REG2(pi, RADIO_2056, TX, core, pi 24488 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, RX, core, TXFBMIX_G, pi 24490 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 24494 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c READ_RADIO_REG2(pi, RADIO_2056, RX, core, pi 24497 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c READ_RADIO_REG2(pi, RADIO_2056, TX, core, pi 24500 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, RX, core, TXFBMIX_A, pi 24502 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 24509 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_tx_tone_nphy(pi, tone_freq, 181, 0, 0, false); pi 24511 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x297 : pi 24514 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (off_core == PHY_CORE_0) ? 0x297 : pi 24517 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 3), 0, 0x3, 0); pi 24522 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_papd_cal_cleanup_nphy(struct brcms_phy *pi, pi 24527 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stopplayback_nphy(pi); pi 24529 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 24531 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (core = 0; core < pi->pubpi.phy_corenum; core++) { pi 24533 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 24534 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 24536 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 24540 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 24542 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG3(pi, RADIO_2057, TX, core, pi 24548 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->pubpi.radiorev == 4) || (pi->pubpi.radiorev == 6)) pi 24550 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x1 << 2), pi 24555 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x1 << 2), pi 24559 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 1), pi 24562 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 0), 0, 0x3, 1, pi 24564 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 2), 0, 0x3, 1, pi 24566 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 11), 1, 0x3, 1, pi 24568 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 3), 0, 0x3, 1, pi 24570 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 11), 0, 0x3, 1, pi 24572 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 12), 0, 0x3, 1, pi 24574 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 2), 1, 0x3, 1, pi 24576 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 0), 0, 0x3, 1, pi 24578 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 1), 1, 0x3, 1, pi 24580 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 8), 0, 0x3, 1, pi 24582 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 9), 1, 0x3, 1, pi 24584 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 10), 0, 0x3, 1, pi 24586 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 3), 1, 0x3, 1, pi 24588 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 5), 0, 0x3, 1, pi 24590 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 4), 0, 0x3, 1, pi 24593 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (core = 0; core < pi->pubpi.phy_corenum; core++) { pi 24595 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, (core == PHY_CORE_0) ? pi 24597 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, (core == PHY_CORE_0) ? 0x8f : pi 24601 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_ipa_set_bbmult_nphy(pi, (state->mm >> 8) & 0xff, pi 24604 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_IS(pi->pubpi.phy_rev, 7) pi 24605 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || NREV_GE(pi->pubpi.phy_rev, 8)) pi 24607 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, (0x1 << 7), 0, 0, pi 24611 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 12), 0, 0x3, 1); pi 24612 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 13), 0, 0x3, 1); pi 24613 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 0), 0, 0x3, 1); pi 24615 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 2), 0, 0x3, 1); pi 24616 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 1), 0, 0x3, 1); pi 24618 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (core = 0; core < pi->pubpi.phy_corenum; core++) { pi 24620 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, RX, core, VGA_MASTER, pi 24622 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 24623 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, RX, core, pi 24625 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 24629 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, RX, core, pi 24631 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, core, pi 24636 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, (core == PHY_CORE_0) ? pi 24638 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, (core == PHY_CORE_0) ? 0x8f : pi 24642 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_ipa_set_bbmult_nphy(pi, (state->mm >> 8) & 0xff, pi 24645 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 3), 0, 0x3, 1); pi 24650 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_a1_nphy(struct brcms_phy *pi, u8 core, u32 winsz, u32 start, pi 24664 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, pi 24693 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, pi 24702 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_a2_nphy(struct brcms_phy *pi, struct nphy_ipa_txcalgains *txgains, pi 24712 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 3)) pi 24720 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 24722 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c phy_a9 = wlc_phy_get_tx_gain_nphy(pi); pi 24724 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) pi 24737 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 24741 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 24742 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->pubpi.radiorev <= 4) pi 24743 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 6)) pi 24744 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c m[core] = (pi->bw == WL_CHANSPEC_BW_40) ? pi 24747 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c m[core] = (pi->bw == WL_CHANSPEC_BW_40) ? pi 24750 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c m[core] = (pi->bw == WL_CHANSPEC_BW_40) ? 75 : 107; pi 24754 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_ipa_set_bbmult_nphy(pi, m[0], m[1]); pi 24758 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 24759 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->pubpi.radiorev == 4) pi 24760 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 6)) { pi 24768 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->pubpi.radiorev == 5) pi 24769 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 7) pi 24770 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 8)) { pi 24780 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->pubpi.radiorev == 5) pi 24781 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c && (CHSPEC_IS2G(pi->radio_chanspec))) pi 24783 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if (((pi->pubpi.radiorev == 7) && pi 24784 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (CHSPEC_IS2G(pi->radio_chanspec))) || pi 24785 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c ((pi->pubpi.radiorev == 8) && pi 24786 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (CHSPEC_IS2G(pi->radio_chanspec)))) pi 24797 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x297 : pi 24800 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (phy_a7 == PHY_CORE_0) ? 0x297 : pi 24803 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x2a3 : pi 24806 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (phy_a7 == PHY_CORE_0) ? 0x2a3 : pi 24809 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2a1, 0x80); pi 24810 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2a2, 0x100); pi 24812 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x2a3 : pi 24815 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x2a3 : pi 24818 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x2a3 : pi 24821 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2e5, 0x20); pi 24823 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x2a0, (0x3f << 0), (phy_a3) << 0); pi 24825 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x29f, (0x3f << 0), (phy_a1) << 0); pi 24827 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x29f, (0x3f << 8), (phy_a2) << 8); pi 24829 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 3), pi 24832 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 3), pi 24836 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2be, 1); pi 24837 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c SPINWAIT(read_phy_reg(pi, 0x2be), 10 * 1000 * 1000); pi 24839 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 3), pi 24843 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, pi 24850 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) pi 24851 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_a1_nphy(pi, core, 5, 0, 35); pi 24855 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 24864 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 24865 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 6) && pi 24866 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->sh->chip == BCMA_CHIP_ID_BCM47162) { pi 24868 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_GE(pi->pubpi.phy_rev, 6)) { pi 24870 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (NREV_IS(pi->pubpi.phy_rev, 5)) { pi 24878 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, pi 24883 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, pi 24890 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) pi 24891 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c m[core] = (pi->bw == WL_CHANSPEC_BW_40) ? 45 : 64; pi 24893 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c m[core] = (pi->bw == WL_CHANSPEC_BW_40) ? 75 : 107; pi 24896 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_ipa_set_bbmult_nphy(pi, m[0], m[1]); pi 24915 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x297 : pi 24918 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (phy_a7 == PHY_CORE_0) ? 0x297 : pi 24921 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 6)) { pi 24922 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x2a3 : pi 24925 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (phy_a7 == PHY_CORE_0) ? 0x2a3 : pi 24928 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2a1, 0x20); pi 24929 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2a2, 0x60); pi 24931 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x2a3 : pi 24934 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x2a3 : pi 24937 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x2a3 : pi 24940 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2e5, 0x20); pi 24942 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x2a3 : pi 24945 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (phy_a7 == PHY_CORE_0) ? 0x2a3 : pi 24948 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2a1, 0x80); pi 24949 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2a2, 0x600); pi 24951 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x2a3 : pi 24954 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x2a3 : pi 24957 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x2a3 : pi 24960 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x2a0, (0x3f << 8), (0x20) << 8); pi 24964 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x2a0, (0x3f << 0), (phy_a3) << 0); pi 24966 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x29f, (0x3f << 0), (phy_a1) << 0); pi 24968 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x29f, (0x3f << 8), (phy_a2) << 8); pi 24970 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 3), 1, 0x3, 0); pi 24972 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2be, 1); pi 24973 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c SPINWAIT(read_phy_reg(pi, 0x2be), 10 * 1000 * 1000); pi 24975 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 3), 0, 0x3, 0); pi 24977 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, pi 24984 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_a1_nphy(pi, core, 5, 0, 40); pi 24988 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static u8 wlc_phy_a3_nphy(struct brcms_phy *pi, u8 start_gain, u8 core) pi 25008 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 25013 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 25014 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev == 5) { pi 25020 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if ((pi->pubpi.radiorev == 7) pi 25021 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 8)) { pi 25043 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) pi 25050 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_a2_nphy(pi, &phy_a4, CAL_GCTRL, core); pi 25052 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, pi 25096 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_a2_nphy(pi, &phy_a4, CAL_GCTRL, core); pi 25098 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, pi 25139 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 25146 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_a4(struct brcms_phy *pi, bool full_cal) pi 25163 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_papd_skip == 1) pi 25166 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c phy_b3 = (0 == (bcma_read32(pi->d11core, D11REGOFFS(maccontrol)) & pi 25169 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_suspend_mac_and_wait(pi->sh->physhim); pi 25171 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, true); pi 25173 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_force_papd_cal = false; pi 25175 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (phy_b5 = 0; phy_b5 < pi->pubpi.phy_corenum; phy_b5++) pi 25176 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_papd_tx_gain_at_last_cal[phy_b5] = pi 25177 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_idx_cur_get_nphy(pi, phy_b5); pi 25179 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_papd_last_cal = pi->sh->now; pi 25180 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_papd_recal_counter++; pi 25182 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c phy_b4 = pi->nphy_txpwrctrl; pi 25183 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwrctrl_enable_nphy(pi, PHY_TPC_HW_OFF); pi 25185 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_SCALARTBL0, 64, 0, 32, pi 25187 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_SCALARTBL1, 64, 0, 32, pi 25190 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c phy_b9 = read_phy_reg(pi, 0x01); pi 25191 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x01, (0x1 << 15), 0); pi 25193 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (phy_b5 = 0; phy_b5 < pi->pubpi.phy_corenum; phy_b5++) { pi 25196 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, pi 25204 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_ipa_restore_tx_digi_filts_nphy(pi); pi 25206 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c phy_b2.mm = wlc_phy_ipa_get_bbmult_nphy(pi); pi 25207 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (phy_b5 = 0; phy_b5 < pi->pubpi.phy_corenum; phy_b5++) { pi 25208 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_papd_cal_setup_nphy(pi, &phy_b2, phy_b5); pi 25210 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 25211 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 25212 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->pubpi.radiorev == 3) pi 25213 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 4) pi 25214 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 6)) { pi 25215 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_papd_cal_gain_index[phy_b5] = pi 25217 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (pi->pubpi.radiorev == 5) { pi 25218 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_papd_cal_gain_index[phy_b5] = pi 25220 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_papd_cal_gain_index[phy_b5] = pi 25222 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 25223 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 25228 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if ((pi->pubpi.radiorev == 7) pi 25229 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 8)) { pi 25231 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_papd_cal_gain_index[phy_b5] = pi 25233 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_papd_cal_gain_index[phy_b5] = pi 25235 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 25236 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 25244 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_papd_cal_gain_index[phy_b5]; pi 25247 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_papd_cal_gain_index[phy_b5] = 0; pi 25248 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_papd_cal_gain_index[phy_b5] = pi 25250 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 25251 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 25255 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_papd_cal_gain_index[phy_b5]; pi 25261 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_a3_nphy(pi, phy_b1[phy_b5].index, pi 25264 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_papd_cal_gain_index[phy_b5] = pi 25268 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c switch (pi->nphy_papd_cal_type) { pi 25270 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_a2_nphy(pi, &phy_b1[phy_b5], CAL_FULL, phy_b5); pi 25273 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_a2_nphy(pi, &phy_b1[phy_b5], CAL_SOFT, phy_b5); pi 25277 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 25278 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_papd_cal_cleanup_nphy(pi, &phy_b2); pi 25281 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 7)) pi 25282 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_papd_cal_cleanup_nphy(pi, &phy_b2); pi 25284 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (phy_b5 = 0; phy_b5 < pi->pubpi.phy_corenum; phy_b5++) { pi 25287 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 25288 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 25289 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev == 3) pi 25291 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if (pi->pubpi.radiorev == 5) pi 25299 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 25302 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->pubpi.radiorev == 3) || pi 25303 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->pubpi.radiorev == 4) || pi 25304 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->pubpi.radiorev == 6)) { pi 25309 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (pi->pubpi.radiorev == 5) { pi 25313 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if ((pi->pubpi.radiorev == 7) || pi 25314 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->pubpi.radiorev == 8)) { pi 25321 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->pubpi.radiorev == 3) || pi 25322 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->pubpi.radiorev == 4) || pi 25323 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->pubpi.radiorev == 6)) pi 25328 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if ((pi->pubpi.radiorev == 7) pi 25329 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->pubpi.radiorev == 8)) pi 25337 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) pi 25346 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (phy_b5 == PHY_CORE_0) ? 0x298 : pi 25349 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_papd_epsilon_offset[phy_b5] = phy_b6; pi 25351 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 5)) pi 25358 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS2G(pi->radio_chanspec)) { pi 25374 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (phy_b5 == PHY_CORE_0) ? 0x298 : pi 25377 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_papd_epsilon_offset[phy_b5] = phy_b6; pi 25381 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (0 == PHY_CORE_0) ? 0x297 : pi 25384 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (1 == PHY_CORE_0) ? 0x297 : pi 25387 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 6)) { pi 25388 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (0 == PHY_CORE_0) ? 0x2a3 : pi 25391 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (1 == PHY_CORE_0) ? 0x2a3 : pi 25395 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (0 == PHY_CORE_0) ? 0x2a3 : pi 25398 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (1 == PHY_CORE_0) ? 0x2a3 : pi 25402 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_papdcomp = NPHY_PAPD_COMP_ON; pi 25404 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x01, phy_b9); pi 25406 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_ipa_set_tx_digi_filts_nphy(pi); pi 25408 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwrctrl_enable_nphy(pi, phy_b4); pi 25410 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_index_nphy(pi, (1 << 0), pi 25411 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (s8) (pi->nphy_txpwrindex[0]. pi 25413 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_index_nphy(pi, (1 << 1), pi 25414 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (s8) (pi->nphy_txpwrindex[1]. pi 25418 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, false); pi 25421 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_enable_mac(pi->sh->physhim); pi 25424 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c void wlc_phy_cal_perical_nphy_run(struct brcms_phy *pi, u8 caltype) pi 25432 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_MUTED(pi)) pi 25436 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c fullcal = (pi->radio_chanspec != pi->nphy_txiqlocal_chanspec); pi 25440 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->cal_type_override != PHY_PERICAL_AUTO) pi 25442 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->cal_type_override == pi 25445 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->mphase_cal_phase_id > MPHASE_CAL_STATE_INIT) { pi 25446 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_txiqlocal_chanspec != pi->radio_chanspec) pi 25447 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_cal_perical_mphase_restart(pi); pi 25450 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->mphase_cal_phase_id == MPHASE_CAL_STATE_RXCAL) pi 25451 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_write_shm(pi->sh->physhim, M_CTS_DURATION, 10000); pi 25453 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_suspend_mac_and_wait(pi->sh->physhim); pi 25455 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phyreg_enter((struct brcms_phy_pub *) pi); pi 25457 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->mphase_cal_phase_id == MPHASE_CAL_STATE_IDLE) || pi 25458 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->mphase_cal_phase_id == MPHASE_CAL_STATE_INIT)) { pi 25459 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_cal_orig_pwr_idx[0] = pi 25460 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (u8) ((read_phy_reg(pi, 0x1ed) >> 8) & 0x7f); pi 25461 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_cal_orig_pwr_idx[1] = pi 25462 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (u8) ((read_phy_reg(pi, 0x1ee) >> 8) & 0x7f); pi 25464 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_txpwrctrl != PHY_TPC_HW_OFF) { pi 25465 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_RFSEQ, 2, pi 25467 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_cal_orig_tx_gain); pi 25469 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_cal_orig_tx_gain[0] = 0; pi 25470 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_cal_orig_tx_gain[1] = 0; pi 25473 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c target_gain = wlc_phy_get_tx_gain_nphy(pi); pi 25474 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tx_pwr_ctrl_state = pi->nphy_txpwrctrl; pi 25475 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwrctrl_enable_nphy(pi, PHY_TPC_HW_OFF); pi 25477 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->antsel_type == ANTSEL_2x3) pi 25478 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_antsel_init((struct brcms_phy_pub *) pi, true); pi 25480 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mphase = (pi->mphase_cal_phase_id != MPHASE_CAL_STATE_IDLE); pi 25483 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 25484 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_precal_txgain_nphy(pi); pi 25485 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_cal_target_gain = wlc_phy_get_tx_gain_nphy(pi); pi 25488 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c target_gain = pi->nphy_cal_target_gain; pi 25491 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_cal_txiqlo_nphy(pi, target_gain, fullcal, pi 25493 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi)) pi 25494 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_a4(pi, true); pi 25496 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phyreg_exit((struct brcms_phy_pub *) pi); pi 25497 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_enable_mac(pi->sh->physhim); pi 25498 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_write_shm(pi->sh->physhim, M_CTS_DURATION, pi 25500 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_suspend_mac_and_wait(pi->sh->physhim); pi 25501 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phyreg_enter((struct brcms_phy_pub *) pi); pi 25503 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (0 == wlc_phy_cal_rxiq_nphy(pi, target_gain, pi 25504 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->first_cal_after_assoc || pi 25505 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->cal_type_override == pi 25507 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_savecal_nphy(pi); pi 25509 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwrctrl_coeff_setup_nphy(pi); pi 25511 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_perical_last = pi->sh->now; pi 25515 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rssi_cal_nphy(pi); pi 25517 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->first_cal_after_assoc pi 25518 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->cal_type_override == PHY_PERICAL_FULL)) { pi 25519 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->first_cal_after_assoc = false; pi 25520 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwrctrl_idle_tssi_nphy(pi); pi 25521 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwrctrl_pwr_setup_nphy(pi); pi 25524 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) pi 25525 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_radio205x_vcocal_nphy(pi); pi 25527 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c switch (pi->mphase_cal_phase_id) { pi 25529 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_perical_last = pi->sh->now; pi 25530 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txiqlocal_chanspec = pi->radio_chanspec; pi 25532 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) pi 25533 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_precal_txgain_nphy(pi); pi 25535 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_cal_target_gain = wlc_phy_get_tx_gain_nphy(pi); pi 25536 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mphase_cal_phase_id++; pi 25545 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->radar_percal_mask & 0x10) != 0) pi 25546 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_rxcal_active = true; pi 25549 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi, pi->nphy_cal_target_gain, fullcal, pi 25552 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_cal_perical_mphase_reset(pi); pi 25556 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LE(pi->pubpi.phy_rev, 2) && pi 25557 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->mphase_cal_phase_id == pi 25559 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mphase_cal_phase_id += 2; pi 25561 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mphase_cal_phase_id++; pi 25565 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->radar_percal_mask & 0x2) != 0) pi 25566 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_rxcal_active = true; pi 25568 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi)) pi 25569 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_a4(pi, true); pi 25571 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mphase_cal_phase_id++; pi 25575 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->radar_percal_mask & 0x1) != 0) pi 25576 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_rxcal_active = true; pi 25577 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (wlc_phy_cal_rxiq_nphy(pi, target_gain, pi 25578 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->first_cal_after_assoc || pi 25579 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->cal_type_override == pi 25582 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_savecal_nphy(pi); pi 25584 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mphase_cal_phase_id++; pi 25588 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->radar_percal_mask & 0x4) != 0) pi 25589 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_rxcal_active = true; pi 25590 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwrctrl_coeff_setup_nphy(pi); pi 25591 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rssi_cal_nphy(pi); pi 25593 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) pi 25594 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_radio205x_vcocal_nphy(pi); pi 25598 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->first_cal_after_assoc) pi 25599 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mphase_cal_phase_id++; pi 25601 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_cal_perical_mphase_reset(pi); pi 25606 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->radar_percal_mask & 0x8) != 0) pi 25607 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_rxcal_active = true; pi 25609 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->first_cal_after_assoc) { pi 25610 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->first_cal_after_assoc = false; pi 25611 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwrctrl_idle_tssi_nphy(pi); pi 25612 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwrctrl_pwr_setup_nphy(pi); pi 25615 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_cal_perical_mphase_reset(pi); pi 25619 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_cal_perical_mphase_reset(pi); pi 25624 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 25628 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_index_nphy(pi, 1, pi 25629 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 25632 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_index_nphy(pi, 2, pi 25633 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 25637 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrindex[0].index = -1; pi 25638 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrindex[1].index = -1; pi 25640 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_index_nphy(pi, (1 << 0), pi 25641 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (s8) (pi-> pi 25646 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_index_nphy(pi, (1 << 1), pi 25647 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (s8) (pi-> pi 25656 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwrctrl_enable_nphy(pi, tx_pwr_ctrl_state); pi 25657 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phyreg_exit((struct brcms_phy_pub *) pi); pi 25658 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_enable_mac(pi->sh->physhim); pi 25662 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_cal_txiqlo_nphy(struct brcms_phy *pi, struct nphy_txgains target_gain, pi 25744 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, true); pi 25746 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 4)) { pi 25747 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c phyhang_avoid_state = pi->phyhang_avoid; pi 25748 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->phyhang_avoid = false; pi 25751 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS40(pi->radio_chanspec)) pi 25756 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_RFSEQ, 2, 0x110, 16, gain_save); pi 25759 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_iqcal_gainparams_nphy(pi, core_no, target_gain, pi 25764 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, 2, 0x110, 16, cal_gain); pi 25766 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txcal_radio_setup_nphy(pi); pi 25768 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txcal_physetup_nphy(pi); pi 25771 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (!(NREV_GE(pi->pubpi.phy_rev, 6) || pi 25772 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (NREV_IS(pi->pubpi.phy_rev, 5) && PHY_IPA(pi) pi 25773 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c && (CHSPEC_IS2G(pi->radio_chanspec))))) { pi 25782 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_IQLOCAL, tbl_len, 0, pi 25792 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_IQLOCAL, tbl_len, 32, pi 25796 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 25797 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xc2, 0x8ad9); pi 25799 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xc2, 0x8aa9); pi 25804 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->mphase_cal_phase_id > MPHASE_CAL_STATE_TXPHASE0) { pi 25805 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_runsamples_nphy(pi, phy_bw * 8, 0xffff, 0, 1, 0, false); pi 25809 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_tx_tone_nphy(pi, tone_freq, max_val, 1, 0, pi 25815 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->mphase_cal_phase_id > MPHASE_CAL_STATE_TXPHASE0) { pi 25816 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tbl_ptr = pi->mphase_txcal_bestcoeffs; pi 25817 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tbl_len = ARRAY_SIZE(pi->mphase_txcal_bestcoeffs); pi 25818 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 3)) pi 25821 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((!fullcal) && (pi->nphy_txiqlocal_coeffsvalid)) { pi 25823 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tbl_ptr = pi->nphy_txiqlocal_bestc; pi 25824 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tbl_len = ARRAY_SIZE(pi->nphy_txiqlocal_bestc); pi 25825 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 3)) pi 25831 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 25843 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_IQLOCAL, tbl_len, 64, pi 25847 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c max_cal_cmds = (NREV_GE(pi->pubpi.phy_rev, 3)) ? pi 25852 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c max_cal_cmds = (NREV_GE(pi->pubpi.phy_rev, 3)) ? pi 25859 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c cal_cnt = pi->mphase_txcal_cmdidx; pi 25860 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((cal_cnt + pi->mphase_txcal_numcmds) < max_cal_cmds) pi 25861 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c num_cals = cal_cnt + pi->mphase_txcal_numcmds; pi 25872 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c cal_cmd = (NREV_GE(pi->pubpi.phy_rev, 3)) ? pi 25877 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c cal_cmd = (NREV_GE(pi->pubpi.phy_rev, 3)) ? pi 25886 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 6) || pi 25887 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (NREV_IS(pi->pubpi.phy_rev, 5) && pi 25888 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c PHY_IPA(pi) pi 25889 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c && (CHSPEC_IS2G(pi->radio_chanspec)))) { pi 25892 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 25901 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xc1, val); pi 25906 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_IQLOCAL, pi 25913 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, pi 25919 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xc0, cal_cmd); pi 25921 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c SPINWAIT(((read_phy_reg(pi, 0xc0) & 0xc000) != 0), pi 25923 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (WARN(read_phy_reg(pi, 0xc0) & 0xc000, pi 25927 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_IQLOCAL, pi 25929 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_IQLOCAL, pi 25942 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mphase_txcal_cmdidx = num_cals; pi 25943 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->mphase_txcal_cmdidx >= max_cal_cmds) pi 25944 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mphase_txcal_cmdidx = 0; pi 25948 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (NREV_LE(pi->pubpi.phy_rev, 2)) ? pi 25952 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->mphase_cal_phase_id == mphase_cal_lastphase)) { pi 25954 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_IQLOCAL, 4, 96, pi 25956 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_IQLOCAL, 4, 80, pi 25959 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 2)) { pi 25967 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_IQLOCAL, 4, 88, pi 25970 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_IQLOCAL, 2, 101, pi 25972 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_IQLOCAL, 2, 85, pi 25975 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_IQLOCAL, 2, 93, pi 25978 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tbl_len = ARRAY_SIZE(pi->nphy_txiqlocal_bestc); pi 25979 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 3)) pi 25982 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_IQLOCAL, pi 25984 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txiqlocal_bestc); pi 25986 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txiqlocal_coeffsvalid = true; pi 25987 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txiqlocal_chanspec = pi->radio_chanspec; pi 25989 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tbl_len = ARRAY_SIZE(pi->mphase_txcal_bestcoeffs); pi 25990 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 3)) pi 25993 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_IQLOCAL, pi 25995 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->mphase_txcal_bestcoeffs); pi 25998 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stopplayback_nphy(pi); pi 26000 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xc2, 0x0000); pi 26004 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txcal_phycleanup_nphy(pi); pi 26006 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, 2, 0x110, 16, pi 26009 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txcal_radio_cleanup_nphy(pi); pi 26011 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 2)) { pi 26013 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (pi->mphase_cal_phase_id == mphase_cal_lastphase)) pi 26014 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_tx_iq_war_nphy(pi); pi 26017 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 4)) pi 26018 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->phyhang_avoid = phyhang_avoid_state; pi 26020 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, false); pi 26025 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_reapply_txcal_coeffs_nphy(struct brcms_phy *pi) pi 26029 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->nphy_txiqlocal_chanspec == pi->radio_chanspec) && pi 26030 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->nphy_txiqlocal_coeffsvalid)) { pi 26031 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_IQLOCAL, pi 26034 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->nphy_txiqlocal_bestc[0] != tbl_buf[0]) || pi 26035 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->nphy_txiqlocal_bestc[1] != tbl_buf[1]) || pi 26036 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->nphy_txiqlocal_bestc[2] != tbl_buf[2]) || pi 26037 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->nphy_txiqlocal_bestc[3] != tbl_buf[3])) { pi 26039 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_IQLOCAL, 4, 80, pi 26040 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 16, pi->nphy_txiqlocal_bestc); pi 26046 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_IQLOCAL, 4, 88, pi 26049 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_IQLOCAL, 2, 85, pi 26051 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c &pi->nphy_txiqlocal_bestc[5]); pi 26053 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_IQLOCAL, 2, 93, pi 26055 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c &pi->nphy_txiqlocal_bestc[5]); pi 26061 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rx_iq_coeffs_nphy(struct brcms_phy *pi, u8 write, pi 26065 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x9a, pcomp->a0); pi 26066 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x9b, pcomp->b0); pi 26067 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x9c, pcomp->a1); pi 26068 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x9d, pcomp->b1); pi 26070 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pcomp->a0 = read_phy_reg(pi, 0x9a); pi 26071 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pcomp->b0 = read_phy_reg(pi, 0x9b); pi 26072 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pcomp->a1 = read_phy_reg(pi, 0x9c); pi 26073 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pcomp->b1 = read_phy_reg(pi, 0x9d); pi 26078 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rx_iq_est_nphy(struct brcms_phy *pi, struct phy_iq_est *est, pi 26083 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x12b, num_samps); pi 26084 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x12a, (0xff << 0), (wait_time << 0)); pi 26085 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x129, NPHY_IqestCmd_iqMode, pi 26088 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x129, NPHY_IqestCmd_iqstart, NPHY_IqestCmd_iqstart); pi 26090 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c SPINWAIT(((read_phy_reg(pi, 0x129) & NPHY_IqestCmd_iqstart) != 0), pi 26092 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (WARN(read_phy_reg(pi, 0x129) & NPHY_IqestCmd_iqstart, pi 26096 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((read_phy_reg(pi, 0x129) & NPHY_IqestCmd_iqstart) == 0) { pi 26097 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (core = 0; core < pi->pubpi.phy_corenum; core++) { pi 26099 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (read_phy_reg(pi, pi 26101 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c | read_phy_reg(pi, NPHY_IqestipwrAccLo(core)); pi 26103 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (read_phy_reg(pi, pi 26105 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c | read_phy_reg(pi, NPHY_IqestqpwrAccLo(core)); pi 26107 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (read_phy_reg(pi, pi 26109 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, NPHY_IqestIqAccLo(core)); pi 26115 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_calc_rx_iq_comp_nphy(struct brcms_phy *pi, u8 core_mask) pi 26130 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rx_iq_coeffs_nphy(pi, 0, &old_comp); pi 26132 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rx_iq_coeffs_nphy(pi, 1, &new_comp); pi 26135 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rx_iq_est_nphy(pi, est, 0x4000, 32, 0); pi 26139 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (curr_core = 0; curr_core < pi->pubpi.phy_corenum; curr_core++) { pi 26202 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 26212 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 26234 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rx_iq_coeffs_nphy(pi, 1, &new_comp); pi 26237 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_rxcal_radio_setup_nphy(struct brcms_phy *pi, u8 rx_core) pi 26243 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 26245 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 26246 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[0] = pi 26247 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 26249 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[1] = pi 26250 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 26253 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 26256 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 26261 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[0] = pi 26262 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 26264 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[1] = pi 26265 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 26269 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26273 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26279 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 26280 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[0] = pi 26281 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 26283 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[1] = pi 26284 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 26288 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26292 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26297 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[0] = pi 26298 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 26300 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[1] = pi 26301 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 26304 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 26307 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 26315 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[0] = pi 26316 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 26319 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[1] = pi 26320 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 26324 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev >= 5) { pi 26325 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[2] = pi 26326 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 26329 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[3] = pi 26330 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 26335 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 26337 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev >= 5) { pi 26338 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[4] = pi 26339 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 26344 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26348 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 26352 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 26356 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[4] = pi 26357 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 26362 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->tx_rx_cal_radio_saveregs pi 26367 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, pi 26373 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 26376 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 26380 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev >= 5) { pi 26381 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[4] = pi 26383 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26388 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26393 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26399 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26405 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[4] = pi 26407 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26412 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi-> pi 26418 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, pi 26424 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 26427 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 26433 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[0] = pi 26434 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 26437 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[1] = pi 26438 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 26442 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev >= 5) { pi 26443 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[2] = pi 26444 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 26447 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[3] = pi 26448 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 26453 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 26455 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev >= 5) { pi 26456 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[4] = pi 26458 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26463 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26468 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26474 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26479 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[4] = pi 26481 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26486 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi-> pi 26492 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, pi 26498 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 26501 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 26505 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev >= 5) { pi 26506 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[4] = pi 26508 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26513 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26518 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26524 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26529 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[4] = pi 26531 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26536 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi-> pi 26542 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, pi 26548 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 26551 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 26559 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_rxcal_radio_cleanup_nphy(struct brcms_phy *pi, u8 rx_core) pi 26561 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 26563 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 26565 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26567 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 26570 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26572 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 26577 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26579 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 26582 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26584 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 26589 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 26591 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26593 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 26596 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26598 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 26603 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26605 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 26608 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26610 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 26617 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 26620 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[0]); pi 26622 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 26625 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[1]); pi 26627 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev >= 5) { pi 26628 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 26631 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 26634 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 26637 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 26641 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 26642 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev >= 5) pi 26644 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26647 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 26652 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26655 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 26659 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev >= 5) pi 26661 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26664 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 26669 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26672 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 26678 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 26681 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[0]); pi 26683 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 26686 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_radio_saveregs[1]); pi 26688 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev >= 5) { pi 26689 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 26692 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 26695 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 26698 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 26702 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 26703 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev >= 5) pi 26705 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26708 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 26713 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26716 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 26720 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->pubpi.radiorev >= 5) pi 26722 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26725 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 26730 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26733 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 26741 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_rxcal_physetup_nphy(struct brcms_phy *pi, u8 rx_core) pi 26746 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 26751 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[0] = read_phy_reg(pi, 0xa2); pi 26752 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[1] = pi 26753 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, (rx_core == PHY_CORE_0) ? 0xa6 : 0xa7); pi 26754 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[2] = pi 26755 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, (rx_core == PHY_CORE_0) ? 0x8f : 0xa5); pi 26756 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[3] = read_phy_reg(pi, 0x91); pi 26757 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[4] = read_phy_reg(pi, 0x92); pi 26758 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[5] = read_phy_reg(pi, 0x7a); pi 26759 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[6] = read_phy_reg(pi, 0x7d); pi 26760 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[7] = read_phy_reg(pi, 0xe7); pi 26761 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[8] = read_phy_reg(pi, 0xec); pi 26762 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 26763 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[11] = read_phy_reg(pi, 0x342); pi 26764 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[12] = read_phy_reg(pi, 0x343); pi 26765 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[13] = read_phy_reg(pi, 0x346); pi 26766 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[14] = read_phy_reg(pi, 0x347); pi 26769 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[9] = read_phy_reg(pi, 0x297); pi 26770 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[10] = read_phy_reg(pi, 0x29b); pi 26771 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (0 == PHY_CORE_0) ? 0x297 : pi 26774 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (1 == PHY_CORE_0) ? 0x297 : pi 26777 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 26779 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa2, (0xf << 0), (1 << tx_core) << 0); pi 26781 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa2, (0xf << 12), (1 << (1 - rx_core)) << 12); pi 26785 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa2, (0xf << 12), (1 << tx_core) << 12); pi 26786 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa2, (0xf << 0), (1 << tx_core) << 0); pi 26787 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa2, (0xf << 4), (1 << rx_core) << 4); pi 26788 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa2, (0xf << 8), (1 << rx_core) << 8); pi 26791 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, ((rx_core == PHY_CORE_0) ? 0xa6 : 0xa7), (0x1 << 2), 0); pi 26792 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (rx_core == PHY_CORE_0) ? 0x8f : 0xa5, pi 26794 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 7)) { pi 26795 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, ((rx_core == PHY_CORE_0) ? 0xa6 : 0xa7), pi 26797 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (rx_core == PHY_CORE_0) ? pi 26802 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrlintc_override_nphy(pi, NPHY_RfctrlIntc_override_PA, 0, pi 26806 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 26807 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 3), pi 26810 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 9), 0, 0, 0, pi 26812 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 10), 1, 0, 0, pi 26814 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 0), 1, 0, 0, pi 26816 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 1), 1, 0, 0, pi 26818 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 11), 0, 0, 0, pi 26820 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS40(pi->radio_chanspec)) pi 26822 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26828 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26833 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 7), pi 26836 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy_rev7(pi, (0x1 << 5), 0, 0, 0, pi 26839 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 3), 0, 3, 0); pi 26842 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_force_rfseq_nphy(pi, NPHY_RFSEQ_RX2TX); pi 26844 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 26846 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrlintc_override_nphy(pi, pi 26859 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrlintc_override_nphy(pi, pi 26862 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrlintc_override_nphy(pi, pi 26868 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static void wlc_phy_rxcal_phycleanup_nphy(struct brcms_phy *pi, u8 rx_core) pi 26871 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa2, pi->tx_rx_cal_phy_saveregs[0]); pi 26872 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, (rx_core == PHY_CORE_0) ? 0xa6 : 0xa7, pi 26873 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[1]); pi 26874 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, (rx_core == PHY_CORE_0) ? 0x8f : 0xa5, pi 26875 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->tx_rx_cal_phy_saveregs[2]); pi 26876 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x91, pi->tx_rx_cal_phy_saveregs[3]); pi 26877 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x92, pi->tx_rx_cal_phy_saveregs[4]); pi 26879 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x7a, pi->tx_rx_cal_phy_saveregs[5]); pi 26880 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x7d, pi->tx_rx_cal_phy_saveregs[6]); pi 26881 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xe7, pi->tx_rx_cal_phy_saveregs[7]); pi 26882 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xec, pi->tx_rx_cal_phy_saveregs[8]); pi 26883 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 26884 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x342, pi->tx_rx_cal_phy_saveregs[11]); pi 26885 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x343, pi->tx_rx_cal_phy_saveregs[12]); pi 26886 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x346, pi->tx_rx_cal_phy_saveregs[13]); pi 26887 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x347, pi->tx_rx_cal_phy_saveregs[14]); pi 26890 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x297, pi->tx_rx_cal_phy_saveregs[9]); pi 26891 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x29b, pi->tx_rx_cal_phy_saveregs[10]); pi 26895 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rxcal_gainctrl_nphy_rev5(struct brcms_phy *pi, u8 rx_core, pi 26917 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 26925 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rx_iq_coeffs_nphy(pi, 0, &save_comp); pi 26927 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rx_iq_coeffs_nphy(pi, 1, &zero_comp); pi 26929 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 26930 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 26932 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if (NREV_GE(pi->pubpi.phy_rev, 4)) pi 26936 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 26941 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 26949 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c hpvga = (NREV_GE(pi->pubpi.phy_rev, 7)) ? pi 26957 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 26959 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 26966 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 12), pi 26974 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_rxcal_pwr_idx[tx_core] = txpwrindex; pi 26977 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c nphy_rxcal_txgain[0] = 0x8ff0 | pi->nphy_gmval; pi 26978 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c nphy_rxcal_txgain[1] = 0x8ff0 | pi->nphy_gmval; pi 26979 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, pi 26983 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_index_nphy(pi, tx_core + 1, txpwrindex, pi 26987 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_tx_tone_nphy(pi, (CHSPEC_IS40(pi->radio_chanspec)) ? pi 26992 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rx_iq_est_nphy(pi, est, num_samps, 32, 0); pi 27045 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stopplayback_nphy(pi); pi 27058 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 27067 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 27076 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 12), pi 27094 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rx_iq_coeffs_nphy(pi, 1, &save_comp); pi 27098 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rxcal_gainctrl_nphy(struct brcms_phy *pi, u8 rx_core, u16 *rxgain, pi 27101 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rxcal_gainctrl_nphy_rev5(pi, rx_core, rxgain, cal_type); pi 27105 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rc_sweep_nphy(struct brcms_phy *pi, u8 core_idx, u8 loopback_type) pi 27139 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 27144 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS40(pi->radio_chanspec)) { pi 27167 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 27171 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_radio_reg(pi, pi 27175 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c orig_dcBypass = ((read_phy_reg(pi, 0x48) >> 8) & 1); pi 27177 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c orig_RxStrnFilt40Num[0] = read_phy_reg(pi, 0x267); pi 27178 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c orig_RxStrnFilt40Num[1] = read_phy_reg(pi, 0x268); pi 27179 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c orig_RxStrnFilt40Num[2] = read_phy_reg(pi, 0x269); pi 27180 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c orig_RxStrnFilt40Den[0] = read_phy_reg(pi, 0x26a); pi 27181 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c orig_RxStrnFilt40Den[1] = read_phy_reg(pi, 0x26b); pi 27182 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c orig_RxStrnFilt40Num[3] = read_phy_reg(pi, 0x26c); pi 27183 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c orig_RxStrnFilt40Num[4] = read_phy_reg(pi, 0x26d); pi 27184 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c orig_RxStrnFilt40Num[5] = read_phy_reg(pi, 0x26e); pi 27185 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c orig_RxStrnFilt40Den[2] = read_phy_reg(pi, 0x26f); pi 27186 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c orig_RxStrnFilt40Den[3] = read_phy_reg(pi, 0x270); pi 27188 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c orig_rfctrloverride[0] = read_phy_reg(pi, 0xe7); pi 27189 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c orig_rfctrloverride[1] = read_phy_reg(pi, 0xec); pi 27190 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c orig_rfctrlauxreg[0] = read_phy_reg(pi, 0xf8); pi 27191 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c orig_rfctrlauxreg[1] = read_phy_reg(pi, 0xfa); pi 27192 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c orig_rfctrlrssiothers = read_phy_reg(pi, (core_idx == 0) ? 0x7a : 0x7d); pi 27194 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, (RADIO_2056_TX_TXLPF_RCCAL | radio_addr_offset_tx), pi 27197 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 27201 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x48, (0x1 << 8), (0x1 << 8)); pi 27203 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x267, 0x02d4); pi 27204 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x268, 0x0000); pi 27205 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x269, 0x0000); pi 27206 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x26a, 0x0000); pi 27207 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x26b, 0x0000); pi 27208 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x26c, 0x02d4); pi 27209 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x26d, 0x0000); pi 27210 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x26e, 0x0000); pi 27211 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x26f, 0x0000); pi 27212 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x270, 0x0000); pi 27214 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, (core_idx == 0) ? 0xe7 : 0xec, (0x1 << 8)); pi 27215 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, (core_idx == 0) ? 0xec : 0xe7, (0x1 << 15)); pi 27216 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, (core_idx == 0) ? 0xe7 : 0xec, (0x1 << 9)); pi 27217 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, (core_idx == 0) ? 0xe7 : 0xec, (0x1 << 10)); pi 27219 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core_idx == 0) ? 0xfa : 0xf8, pi 27221 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core_idx == 0) ? 0xf8 : 0xfa, pi 27223 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core_idx == 0) ? 0xf8 : 0xfa, pi 27225 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core_idx == 0) ? 0x7a : 0x7d, pi 27232 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 27238 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_tx_tone_nphy(pi, ref_tone, NPHY_RXCAL_TONEAMP, pi 27242 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rx_iq_est_nphy(pi, est, num_samps, 32, 0); pi 27257 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_tx_tone_nphy(pi, target_bw, NPHY_RXCAL_TONEAMP, pi 27262 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rx_iq_est_nphy(pi, est, num_samps, 32, 0); pi 27295 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS40(pi->radio_chanspec)) { pi 27305 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 27311 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stopplayback_nphy(pi); pi 27313 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, (RADIO_2056_TX_TXLPF_RCCAL | radio_addr_offset_tx), pi 27315 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 27319 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x48, (0x1 << 8), (orig_dcBypass << 8)); pi 27321 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x267, orig_RxStrnFilt40Num[0]); pi 27322 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x268, orig_RxStrnFilt40Num[1]); pi 27323 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x269, orig_RxStrnFilt40Num[2]); pi 27324 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x26a, orig_RxStrnFilt40Den[0]); pi 27325 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x26b, orig_RxStrnFilt40Den[1]); pi 27326 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x26c, orig_RxStrnFilt40Num[3]); pi 27327 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x26d, orig_RxStrnFilt40Num[4]); pi 27328 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x26e, orig_RxStrnFilt40Num[5]); pi 27329 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x26f, orig_RxStrnFilt40Den[2]); pi 27330 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x270, orig_RxStrnFilt40Den[3]); pi 27332 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xe7, orig_rfctrloverride[0]); pi 27333 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xec, orig_rfctrloverride[1]); pi 27334 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xf8, orig_rfctrlauxreg[0]); pi 27335 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xfa, orig_rfctrlauxreg[1]); pi 27336 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, (core_idx == 0) ? 0x7a : 0x7d, orig_rfctrlrssiothers); pi 27338 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_anarxlpf_adjusted = false; pi 27344 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static int wlc_phy_cal_rxiq_nphy_rev3(struct brcms_phy *pi, pi 27360 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c orig_BBConfig = read_phy_reg(pi, 0x01); pi 27361 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x01, (0x1 << 15), 0); pi 27363 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, true); pi 27365 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 4)) { pi 27366 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c phyhang_avoid_state = pi->phyhang_avoid; pi 27367 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->phyhang_avoid = false; pi 27370 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_RFSEQ, 2, 0x110, 16, gain_save); pi 27373 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_iqcal_gainparams_nphy(pi, core_no, target_gain, pi 27378 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, 2, 0x110, 16, cal_gain); pi 27381 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (struct brcms_phy_pub *) pi); pi 27383 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (rx_core = 0; rx_core < pi->pubpi.phy_corenum; rx_core++) { pi 27388 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rxcal_physetup_nphy(pi, rx_core); pi 27390 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rxcal_radio_setup_nphy(pi, rx_core); pi 27394 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rxcal_gainctrl_nphy(pi, rx_core, NULL, 0); pi 27396 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_tx_tone_nphy(pi, pi 27398 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->radio_chanspec)) ? pi 27407 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_calc_rx_iq_comp_nphy(pi, rx_core + 1); pi 27408 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stopplayback_nphy(pi); pi 27412 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c && NREV_LT(pi->pubpi.phy_rev, 7)) { pi 27418 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (struct brcms_phy_pub *) pi, 3); pi 27420 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rxcal_gainctrl_nphy(pi, rx_core, NULL, pi 27424 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rc_sweep_nphy(pi, rx_core, 1); pi 27425 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_rccal_value = best_rccal[rx_core]; pi 27429 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (struct brcms_phy_pub *) pi, pi 27434 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rxcal_radio_cleanup_nphy(pi, rx_core); pi 27436 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rxcal_phycleanup_nphy(pi, rx_core); pi 27437 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_force_rfseq_nphy(pi, NPHY_RFSEQ_RESET2RX); pi 27443 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, pi 27447 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (rx_core = 0; rx_core < pi->pubpi.phy_corenum; rx_core++) { pi 27452 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi)) { pi 27454 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->bw == WL_CHANSPEC_BW_40) ? 24 : 12; pi 27455 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c txlpf_idac = (pi->bw == WL_CHANSPEC_BW_40) ? pi 27457 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c WRITE_RADIO_REG2(pi, RADIO_2056, TX, rx_core, pi 27466 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, (RADIO_2056_RX_RXLPF_RCCAL_HPC | pi 27472 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_radio_reg(pi, (RADIO_2056_TX_TXLPF_RCCAL | pi 27480 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x01, orig_BBConfig); pi 27482 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_resetcca_nphy(pi); pi 27484 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 27486 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 27490 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 12), 0, 0x3, 1); pi 27492 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_force_rfseq_nphy(pi, NPHY_RFSEQ_RESET2RX); pi 27494 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, 2, 0x110, 16, pi 27497 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 4)) pi 27498 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->phyhang_avoid = phyhang_avoid_state; pi 27500 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, false); pi 27506 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_cal_rxiq_nphy_rev2(struct brcms_phy *pi, pi 27530 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, true); pi 27532 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 2)) pi 27533 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_reapply_txcal_coeffs_nphy(pi); pi 27535 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, NPHY_TBL_ID_RFSEQ, 2, 0x110, 16, gain_save); pi 27538 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_iqcal_gainparams_nphy(pi, core_no, target_gain, pi 27543 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, 2, 0x110, 16, cal_gain); pi 27553 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c orig_RfseqCoreActv = read_phy_reg(pi, 0xa2); pi 27554 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c orig_AfectrlCore = read_phy_reg(pi, (rx_core == PHY_CORE_0) ? pi 27556 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c orig_AfectrlOverride = read_phy_reg(pi, 0xa5); pi 27557 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c orig_RfctrlIntcRx = read_phy_reg(pi, (rx_core == PHY_CORE_0) ? pi 27559 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c orig_RfctrlIntcTx = read_phy_reg(pi, (tx_core == PHY_CORE_0) ? pi 27562 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa2, (0xf << 12), (1 << tx_core) << 12); pi 27563 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa2, (0xf << 0), (1 << tx_core) << 0); pi 27565 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, ((rx_core == PHY_CORE_0) ? 0xa6 : 0xa7), pi 27567 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0xa5, ((0x1 << 1) | (0x1 << 2))); pi 27569 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (((pi->nphy_rxcalparams) & 0xff000000)) pi 27570 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, pi 27572 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (CHSPEC_IS5G(pi->radio_chanspec) ? pi 27575 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, pi 27577 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (CHSPEC_IS5G(pi->radio_chanspec) ? pi 27580 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, (tx_core == PHY_CORE_0) ? 0x91 : 0x92, pi 27581 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (CHSPEC_IS5G(pi->radio_chanspec) ? 0x148 : pi 27593 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->nphy_rxcalparams & 0x10000)) { pi 27594 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2055_CORE1_GEN_SPARE2, mask, pi 27596 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_radio_reg(pi, RADIO_2055_CORE2_GEN_SPARE2, mask, pi 27650 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 10), pi 27654 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_force_rfseq_nphy(pi, NPHY_RFSEQ_RESET2RX); pi 27656 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stopplayback_nphy(pi); pi 27659 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bcmerror = wlc_phy_tx_tone_nphy(pi, 4000, pi 27660 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (u16) (pi->nphy_rxcalparams & pi 27664 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c phy_bw = (CHSPEC_IS40(pi->radio_chanspec)) ? pi 27666 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_runsamples_nphy(pi, phy_bw * 8, 0xffff, pi 27673 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rx_iq_est_nphy(pi, est, pi 27683 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_calc_rx_iq_comp_nphy(pi, pi 27688 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stopplayback_nphy(pi); pi 27695 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_radio_reg(pi, RADIO_2055_CORE1_GEN_SPARE2, ~mask); pi 27696 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_radio_reg(pi, RADIO_2055_CORE2_GEN_SPARE2, ~mask); pi 27698 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, (tx_core == PHY_CORE_0) ? 0x91 : pi 27700 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, (rx_core == PHY_CORE_0) ? 0x91 : pi 27702 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa5, orig_AfectrlOverride); pi 27703 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, (rx_core == PHY_CORE_0) ? 0xa6 : pi 27705 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0xa2, orig_RfseqCoreActv); pi 27711 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_rfctrl_override_nphy(pi, (0x1 << 10), 0, 0x3, 1); pi 27712 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_force_rfseq_nphy(pi, NPHY_RFSEQ_RESET2RX); pi 27714 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_RFSEQ, 2, 0x110, 16, pi 27717 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, false); pi 27723 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_cal_rxiq_nphy(struct brcms_phy *pi, struct nphy_txgains target_gain, pi 27726 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 27729 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) pi 27730 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c return wlc_phy_cal_rxiq_nphy_rev3(pi, target_gain, cal_type, pi 27733 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c return wlc_phy_cal_rxiq_nphy_rev2(pi, target_gain, debug); pi 27736 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c void wlc_phy_txpwr_fixpower_nphy(struct brcms_phy *pi) pi 27744 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 27745 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, true); pi 27747 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->sh->sromrev < 4) { pi 27751 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c chan_freq_range = wlc_phy_get_chan_freq_range_nphy(pi, 0); pi 27766 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) pi 27768 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if (NREV_GE(pi->pubpi.phy_rev, 3)) pi 27771 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 7)) { pi 27778 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrindex[PHY_CORE_0].index_internal = txpi[0]; pi 27779 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrindex[PHY_CORE_1].index_internal = txpi[1]; pi 27780 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrindex[PHY_CORE_0].index_internal_save = txpi[0]; pi 27781 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrindex[PHY_CORE_1].index_internal_save = txpi[1]; pi 27783 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (core = 0; core < pi->pubpi.phy_corenum; core++) { pi 27784 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c uint phyrev = pi->pubpi.phy_rev; pi 27787 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi)) { pi 27789 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_get_ipa_gaintbl_nphy(pi); pi 27792 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 27799 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->srom_fem5g.extpagain == pi 27812 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->srom_fem2g.extpagain == 3)) { pi 27839 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, ((core == PHY_CORE_0) ? 0x8f : pi 27842 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa5, (0x1 << 14), (0x1 << 14)); pi 27844 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, (core == PHY_CORE_0) ? 0xaa : 0xab, dac_gain); pi 27846 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 7, 1, (0x110 + core), 16, pi 27849 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, 15, 1, 87, 16, &m1m2); pi 27852 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 15, 1, 87, 16, &m1m2); pi 27854 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi)) { pi 27855 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, pi 27863 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x297 : pi 27867 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x297 : pi 27873 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, 0xbf, (u16) (~(0x1f << 0))); pi 27875 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 27876 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, false); pi 27935 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c void wlc_phy_txpwr_apply_nphy(struct brcms_phy *pi) pi 27948 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tmp_max_pwr = min(pi->nphy_pwrctrl_info[0].max_pwr_2g, pi 27949 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[1].max_pwr_2g); pi 27951 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pwr_offsets1[0] = pi->cck2gpo; pi 27952 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_nphy_srom_convert(pi->tx_srom_max_rate_2g, pi 27958 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pwr_offsets1[0] = (u16) (pi->ofdm2gpo & 0xffff); pi 27960 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (u16) (pi->ofdm2gpo >> 16) & 0xffff; pi 27962 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pwr_offsets2 = pi->mcs2gpo; pi 27964 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tmp_cddpo = pi->cdd2gpo; pi 27965 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tmp_stbcpo = pi->stbc2gpo; pi 27966 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tmp_bw40po = pi->bw402gpo; pi 27968 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tx_srom_max_rate = pi->tx_srom_max_rate_2g; pi 27972 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tmp_max_pwr = min(pi->nphy_pwrctrl_info[0].max_pwr_5gm, pi 27973 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[1].max_pwr_5gm); pi 27975 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pwr_offsets1[0] = (u16) (pi->ofdm5gpo & 0xffff); pi 27977 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (u16) (pi->ofdm5gpo >> 16) & 0xffff; pi 27979 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pwr_offsets2 = pi->mcs5gpo; pi 27981 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tmp_cddpo = pi->cdd5gpo; pi 27982 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tmp_stbcpo = pi->stbc5gpo; pi 27983 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tmp_bw40po = pi->bw405gpo; pi 27985 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tx_srom_max_rate = pi->tx_srom_max_rate_5g_mid; pi 27989 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tmp_max_pwr = min(pi->nphy_pwrctrl_info[0].max_pwr_5gl, pi 27990 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[1].max_pwr_5gl); pi 27992 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pwr_offsets1[0] = (u16) (pi->ofdm5glpo & 0xffff); pi 27994 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (u16) (pi->ofdm5glpo >> 16) & 0xffff; pi 27996 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pwr_offsets2 = pi->mcs5glpo; pi 27998 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tmp_cddpo = pi->cdd5glpo; pi 27999 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tmp_stbcpo = pi->stbc5glpo; pi 28000 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tmp_bw40po = pi->bw405glpo; pi 28002 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tx_srom_max_rate = pi->tx_srom_max_rate_5g_low; pi 28006 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tmp_max_pwr = min(pi->nphy_pwrctrl_info[0].max_pwr_5gh, pi 28007 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_pwrctrl_info[1].max_pwr_5gh); pi 28009 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pwr_offsets1[0] = (u16) (pi->ofdm5ghpo & 0xffff); pi 28011 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (u16) (pi->ofdm5ghpo >> 16) & 0xffff; pi 28013 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pwr_offsets2 = pi->mcs5ghpo; pi 28015 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tmp_cddpo = pi->cdd5ghpo; pi 28016 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tmp_stbcpo = pi->stbc5ghpo; pi 28017 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tmp_bw40po = pi->bw405ghpo; pi 28019 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tx_srom_max_rate = pi->tx_srom_max_rate_5g_hi; pi 28037 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) pi 28052 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) pi 28117 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) pi 28130 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c void wlc_phy_txpower_recalc_target_nphy(struct brcms_phy *pi) pi 28133 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_limit_to_tbl_nphy(pi); pi 28134 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwrctrl_pwr_setup_nphy(pi); pi 28136 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tx_pwr_ctrl_state = pi->nphy_txpwrctrl; pi 28138 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (D11REV_IS(pi->sh->corerev, 11) || D11REV_IS(pi->sh->corerev, 12)) { pi 28139 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_mctrl(pi->sh->physhim, MCTL_PHYLOCK, MCTL_PHYLOCK); pi 28140 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (void)bcma_read32(pi->d11core, D11REGOFFS(maccontrol)); pi 28144 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwrctrl_enable_nphy(pi, tx_pwr_ctrl_state); pi 28146 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (D11REV_IS(pi->sh->corerev, 11) || D11REV_IS(pi->sh->corerev, 12)) pi 28147 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_mctrl(pi->sh->physhim, MCTL_PHYLOCK, 0); pi 28150 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c static bool wlc_phy_txpwr_ison_nphy(struct brcms_phy *pi) pi 28152 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c return read_phy_reg((pi), 0x1e7) & ((0x1 << 15) | pi 28156 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c u16 wlc_phy_txpwr_idx_get_nphy(struct brcms_phy *pi) pi 28161 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (wlc_phy_txpwr_ison_nphy(pi)) { pi 28162 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pwr_idx[0] = wlc_phy_txpwr_idx_cur_get_nphy(pi, PHY_CORE_0); pi 28163 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pwr_idx[1] = wlc_phy_txpwr_idx_cur_get_nphy(pi, PHY_CORE_1); pi 28167 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tmp = ((pi->nphy_txpwrindex[PHY_CORE_0].index_internal & 0xff) pi 28169 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->nphy_txpwrindex[PHY_CORE_1].index_internal & 0xff); pi 28175 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c void wlc_phy_txpwr_papd_cal_nphy(struct brcms_phy *pi) pi 28177 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi) pi 28178 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c && (pi->nphy_force_papd_cal pi 28179 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c || (wlc_phy_txpwr_ison_nphy(pi) pi 28182 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c abs(wlc_phy_txpwr_idx_cur_get_nphy(pi, 0) - pi 28183 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_papd_tx_gain_at_last_cal[0]) >= 4) pi 28185 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c abs(wlc_phy_txpwr_idx_cur_get_nphy(pi, 1) - pi 28186 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_papd_tx_gain_at_last_cal[1]) >= 4))))) pi 28187 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_a4(pi, true); pi 28190 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c void wlc_phy_txpwrctrl_enable_nphy(struct brcms_phy *pi, u8 ctrl_type) pi 28199 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 28200 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, true); pi 28205 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrctrl = ctrl_type; pi 28212 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 28214 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (wlc_phy_txpwr_ison_nphy(pi)) { pi 28215 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (core = 0; core < pi->pubpi.phy_corenum; pi 28217 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwr_idx[core] = pi 28219 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, pi 28229 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 26, tbl_len, tbl_offset, 16, pi 28231 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 27, tbl_len, tbl_offset, 16, pi 28234 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) pi 28235 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, 0x1e7, pi 28239 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, 0x1e7, pi 28242 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 28243 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0x8f, (0x1 << 8)); pi 28244 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0xa5, (0x1 << 8)); pi 28246 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c or_phy_reg(pi, 0xa5, (0x1 << 14)); pi 28249 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_IS(pi->pubpi.phy_rev, 2)) pi 28250 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xdc, 0x00ff, 0x53); pi 28251 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if (NREV_LT(pi->pubpi.phy_rev, 2)) pi 28252 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xdc, 0x00ff, 0x5a); pi 28254 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 2) && pi 28255 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->bw == WL_CHANSPEC_BW_40) pi 28256 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_mhf(pi->sh->physhim, MHF1, MHF1_IQSWAP_WAR, pi 28261 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_CORE1TXPWRCTL, 84, 64, pi 28262 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 8, pi->adj_pwr_tbl_nphy); pi 28263 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, NPHY_TBL_ID_CORE2TXPWRCTL, 84, 64, pi 28264 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 8, pi->adj_pwr_tbl_nphy); pi 28270 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 28275 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x1e7, mask, val); pi 28277 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (CHSPEC_IS5G(pi->radio_chanspec)) { pi 28278 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 7)) { pi 28279 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x1e7, (0x7f << 0), 0x32); pi 28280 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x222, (0xff << 0), 0x32); pi 28282 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x1e7, (0x7f << 0), 0x64); pi 28283 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GT(pi->pubpi.phy_rev, 1)) pi 28284 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x222, pi 28289 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 28290 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if ((pi->nphy_txpwr_idx[0] != 128) pi 28291 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c && (pi->nphy_txpwr_idx[1] != 128)) pi 28292 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_idx_cur_set_nphy(pi, pi 28293 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 28296 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi-> pi 28301 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 28302 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, 0x8f, ~(0x1 << 8)); pi 28303 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, 0xa5, ~(0x1 << 8)); pi 28305 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c and_phy_reg(pi, 0xa5, ~(0x1 << 14)); pi 28308 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_IS(pi->pubpi.phy_rev, 2)) pi 28309 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xdc, 0x00ff, 0x3b); pi 28310 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c else if (NREV_LT(pi->pubpi.phy_rev, 2)) pi 28311 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xdc, 0x00ff, 0x40); pi 28313 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_LT(pi->pubpi.phy_rev, 2) && pi 28314 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->bw == WL_CHANSPEC_BW_40) pi 28315 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_mhf(pi->sh->physhim, MHF1, MHF1_IQSWAP_WAR, pi 28318 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi)) { pi 28319 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (0 == PHY_CORE_0) ? 0x297 : pi 28322 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (1 == PHY_CORE_0) ? 0x297 : pi 28329 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 28330 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, false); pi 28334 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwr_index_nphy(struct brcms_phy *pi, u8 core_mask, s8 txpwrindex, pi 28351 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 28352 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, true); pi 28358 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (core = 0; core < pi->pubpi.phy_corenum; core++) { pi 28366 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_txpwrindex[core].index < 0) pi 28369 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 28370 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x8f, pi 28372 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrindex[core]. pi 28374 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa5, (0x1 << 8), pi 28375 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrindex[core]. pi 28378 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa5, pi 28380 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrindex[core]. pi 28384 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, (core == PHY_CORE_0) ? pi 28386 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrindex[core].AfeCtrlDacGain); pi 28388 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 7, 1, (0x110 + core), 16, pi 28389 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c &pi->nphy_txpwrindex[core]. pi 28392 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, 15, 1, 87, 16, &m1m2); pi 28395 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->nphy_txpwrindex[core].bbmult << 8) : pi 28396 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (pi->nphy_txpwrindex[core].bbmult << 0)); pi 28397 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 15, 1, 87, 16, &m1m2); pi 28401 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, 15, 2, (80 + 2 * core), 16, pi 28402 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c &pi->nphy_txpwrindex[core].iqcomp_a); pi 28404 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, 15, 1, (85 + core), 16, pi 28405 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c &pi->nphy_txpwrindex[core].locomp); pi 28407 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi, 15, 1, (93 + core), 16, pi 28408 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c &pi->nphy_txpwrindex[core].locomp); pi 28411 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwrctrl_enable_nphy(pi, pi->nphy_txpwrctrl); pi 28413 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrindex[core].index_internal = pi 28414 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrindex[core].index_internal_save; pi 28417 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_txpwrindex[core].index < 0) { pi 28419 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) { pi 28420 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0x8f, pi 28422 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrindex[core]. pi 28424 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa5, (0x1 << 8), pi 28425 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrindex[core]. pi 28428 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrindex[core]. pi 28430 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, 0xa5); pi 28433 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrindex[core].AfeCtrlDacGain = pi 28434 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c read_phy_reg(pi, (core == PHY_CORE_0) ? pi 28437 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, 7, 1, pi 28439 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c &pi-> pi 28443 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, 15, 1, 87, 16, pi 28447 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrindex[core].bbmult = (u8) tmpval; pi 28449 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, 15, 2, pi 28451 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c &pi-> pi 28455 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, 15, 1, (85 + core), pi 28457 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c &pi-> pi 28461 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrindex[core].index_internal_save = pi 28462 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrindex[core]. pi 28466 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tx_pwr_ctrl_state = pi->nphy_txpwrctrl; pi 28467 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwrctrl_enable_nphy(pi, PHY_TPC_HW_OFF); pi 28469 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_IS(pi->pubpi.phy_rev, 1)) pi 28470 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_phyclk_fgc(pi->sh->physhim, ON); pi 28472 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, txpwrctl_tbl, 1, pi 28476 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) pi 28486 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_GE(pi->pubpi.phy_rev, 3)) pi 28487 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, ((core == PHY_CORE_0) ? 0x8f : pi 28490 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, 0xa5, (0x1 << 14), (0x1 << 14)); pi 28492 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, (core == PHY_CORE_0) ? pi 28495 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 7, 1, (0x110 + core), 16, pi 28498 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, 15, 1, 87, 16, &m1m2); pi 28503 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 15, 1, 87, 16, &m1m2); pi 28505 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, txpwrctl_tbl, 1, pi 28514 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 15, 2, pi 28519 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, txpwrctl_tbl, 1, pi 28523 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_write_nphy(pi, 15, 1, (85 + core), pi 28526 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (NREV_IS(pi->pubpi.phy_rev, 1)) pi 28527 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_bmac_phyclk_fgc(pi->sh->physhim, OFF); pi 28529 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (PHY_IPA(pi)) { pi 28530 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_table_read_nphy(pi, pi 28537 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x297 : pi 28541 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c mod_phy_reg(pi, (core == PHY_CORE_0) ? 0x297 : pi 28546 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpwrctrl_enable_nphy(pi, tx_pwr_ctrl_state); pi 28549 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_txpwrindex[core].index = txpwrindex; pi 28552 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->phyhang_avoid) pi 28553 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, false); pi 28557 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_txpower_sromlimit_get_nphy(struct brcms_phy *pi, uint chan, u8 *max_pwr, pi 28562 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c chan_freq_range = wlc_phy_get_chan_freq_range_nphy(pi, chan); pi 28565 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c *max_pwr = pi->tx_srom_max_rate_2g[txp_rate_idx]; pi 28568 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c *max_pwr = pi->tx_srom_max_rate_5g_mid[txp_rate_idx]; pi 28571 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c *max_pwr = pi->tx_srom_max_rate_5g_low[txp_rate_idx]; pi 28574 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c *max_pwr = pi->tx_srom_max_rate_5g_hi[txp_rate_idx]; pi 28577 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c *max_pwr = pi->tx_srom_max_rate_2g[txp_rate_idx]; pi 28584 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c void wlc_phy_stay_in_carriersearch_nphy(struct brcms_phy *pi, bool enable) pi 28589 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_deaf_count == 0) { pi 28590 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->classifier_state = pi 28591 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_classifier_nphy(pi, 0, 0); pi 28592 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_classifier_nphy(pi, (0x7 << 0), 4); pi 28593 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_clip_det_nphy(pi, 0, pi->clip_state); pi 28594 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_clip_det_nphy(pi, 1, clip_off); pi 28597 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_deaf_count++; pi 28599 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_resetcca_nphy(pi); pi 28602 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->nphy_deaf_count--; pi 28604 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_deaf_count == 0) { pi 28605 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_classifier_nphy(pi, (0x7 << 0), pi 28606 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c pi->classifier_state); pi 28607 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_clip_det_nphy(pi, 1, pi->clip_state); pi 28612 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c void wlc_nphy_deaf_mode(struct brcms_phy *pi, bool mode) pi 28614 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_suspend_mac_and_wait(pi->sh->physhim); pi 28617 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (pi->nphy_deaf_count == 0) pi 28618 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, true); pi 28619 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c } else if (pi->nphy_deaf_count > 0) { pi 28620 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_stay_in_carriersearch_nphy(pi, false); pi 28623 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlapi_enable_mac(pi->sh->physhim); pi 60 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy_shim.c void (*fn)(struct brcms_phy *pi), pi 134 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy_shim.h void (*fn)(struct brcms_phy *pi), pi 67 drivers/net/wireless/broadcom/brcm80211/brcmsmac/stf.c struct brcms_phy_pub *pi = wlc->band->pi; pi 72 drivers/net/wireless/broadcom/brcm80211/brcmsmac/stf.c active_chains = wlc_phy_stf_chain_active_get(pi); pi 101 drivers/net/wireless/broadcom/brcm80211/brcmsmac/stf.c wlc_phy_txpower_get_current(wlc->band->pi, &power, pi 294 drivers/net/wireless/broadcom/brcm80211/brcmsmac/stf.c wlc_phy_stf_chain_set(wlc->band->pi, wlc->stf->txchain, pi 346 drivers/net/wireless/broadcom/brcm80211/brcmsmac/stf.c (wlc_phy_txpower_hw_ctrl_get(wlc->band->pi) != PHY_TPC_HW_ON)) pi 450 drivers/pci/hotplug/shpchp_hpc.c u8 pi, pcix_cap; pi 452 drivers/pci/hotplug/shpchp_hpc.c retval = hpc_get_prog_int(slot, &pi); pi 456 drivers/pci/hotplug/shpchp_hpc.c switch (pi) { pi 502 drivers/pci/hotplug/shpchp_hpc.c u8 pi = shpc_readb(ctrl, PROG_INTERFACE); pi 504 drivers/pci/hotplug/shpchp_hpc.c if (pi == 2) { pi 643 drivers/pci/hotplug/shpchp_hpc.c u8 pi = shpc_readb(ctrl, PROG_INTERFACE); pi 644 drivers/pci/hotplug/shpchp_hpc.c u8 speed_mode = (pi == 2) ? (sec_bus_reg & 0xF) : (sec_bus_reg & 0x7); pi 646 drivers/pci/hotplug/shpchp_hpc.c if ((pi == 1) && (speed_mode > 4)) { pi 710 drivers/pci/hotplug/shpchp_hpc.c u8 pi, cmd; pi 712 drivers/pci/hotplug/shpchp_hpc.c pi = shpc_readb(ctrl, PROG_INTERFACE); pi 713 drivers/pci/hotplug/shpchp_hpc.c if ((pi == 1) && (value > PCI_SPEED_133MHz_PCIX)) pi 856 drivers/pci/hotplug/shpchp_hpc.c u8 pi = shpc_readb(ctrl, PROG_INTERFACE); pi 860 drivers/pci/hotplug/shpchp_hpc.c if (pi == 2) { pi 581 drivers/pci/switch/switchtec.c struct partition_info __iomem *pi) pi 583 drivers/pci/switch/switchtec.c info->address = ioread32(&pi->address); pi 584 drivers/pci/switch/switchtec.c info->length = ioread32(&pi->length); pi 1716 drivers/scsi/be2iscsi/be_main.c u16 prod, pi; pi 1722 drivers/scsi/be2iscsi/be_main.c pi = pasync_ctx->async_header.pi; pi 1728 drivers/scsi/be2iscsi/be_main.c pi = pasync_ctx->async_data.pi; pi 1736 drivers/scsi/be2iscsi/be_main.c pasync_handle = pasync_ctx->async_entry[pi].header; pi 1738 drivers/scsi/be2iscsi/be_main.c pasync_handle = pasync_ctx->async_entry[pi].data; pi 1740 drivers/scsi/be2iscsi/be_main.c WARN_ON(pasync_handle->index != pi); pi 1744 drivers/scsi/be2iscsi/be_main.c pasync_sge[pi].hi = pasync_handle->pa.u.a32.address_lo; pi 1745 drivers/scsi/be2iscsi/be_main.c pasync_sge[pi].lo = pasync_handle->pa.u.a32.address_hi; pi 1747 drivers/scsi/be2iscsi/be_main.c if (++pi == pasync_ctx->num_entries) pi 1748 drivers/scsi/be2iscsi/be_main.c pi = 0; pi 1752 drivers/scsi/be2iscsi/be_main.c pasync_ctx->async_header.pi = pi; pi 1754 drivers/scsi/be2iscsi/be_main.c pasync_ctx->async_data.pi = pi; pi 2749 drivers/scsi/be2iscsi/be_main.c pasync_ctx->async_header.pi = 0; pi 2856 drivers/scsi/be2iscsi/be_main.c pasync_ctx->async_data.pi = 0; pi 584 drivers/scsi/be2iscsi/be_main.h u16 pi; pi 715 drivers/scsi/bfa/bfa_core.c u32 pi, ci; pi 720 drivers/scsi/bfa/bfa_core.c pi = bfa_rspq_pi(bfa, qid); pi 722 drivers/scsi/bfa/bfa_core.c ret = (ci != pi); pi 724 drivers/scsi/bfa/bfa_core.c while (ci != pi) { pi 538 drivers/scsi/bfa/bfi.h #define BFI_MSGQ_FULL(_q) (((_q->pi + 1) % _q->q_depth) == _q->ci) pi 539 drivers/scsi/bfa/bfi.h #define BFI_MSGQ_EMPTY(_q) (_q->pi == _q->ci) pi 541 drivers/scsi/bfa/bfi.h #define BFI_MSGQ_UPDATE_PI(_q) (_q->pi = (_q->pi + 1) % _q->q_depth) pi 544 drivers/scsi/bfa/bfi.h #define BFI_MSGQ_FREE_CNT(_q) ((_q->ci - _q->pi - 1) & (_q->q_depth - 1)) pi 35 drivers/scsi/cxgbi/cxgb3i/cxgb3i.h struct port_info *pi = (struct port_info *)netdev_priv(ndev); pi 37 drivers/scsi/cxgbi/cxgb3i/cxgb3i.h pi->iscsic.flags = addr ? 1 : 0; pi 38 drivers/scsi/cxgbi/cxgb3i/cxgb3i.h pi->iscsi_ipv4addr = addr; pi 40 drivers/scsi/cxgbi/cxgb3i/cxgb3i.h memcpy(pi->iscsic.mac_addr, ndev->dev_addr, ETH_ALEN); pi 2120 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c struct port_info *pi; pi 2172 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c pi = netdev_priv(lldi->ports[i]); pi 2173 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c cdev->hbas[i]->port_id = pi->port_id; pi 246 drivers/scsi/esas2r/esas2r_flash.c struct esas2r_pc_image *pi; pi 249 drivers/scsi/esas2r/esas2r_flash.c pi = (struct esas2r_pc_image *)((u8 *)fi + ch->image_offset); pi 251 drivers/scsi/esas2r/esas2r_flash.c (struct esas2r_boot_header *)((u8 *)pi + pi 252 drivers/scsi/esas2r/esas2r_flash.c le16_to_cpu(pi->header_offset)); pi 256 drivers/scsi/esas2r/esas2r_flash.c if (pi->pnp_offset) { pi 258 drivers/scsi/esas2r/esas2r_flash.c ((u8 *)pi + le16_to_cpu(pi->pnp_offset)); pi 271 drivers/scsi/esas2r/esas2r_flash.c pi->checksum = pi->checksum - pi 272 drivers/scsi/esas2r/esas2r_flash.c esas2r_calc_byte_cksum((u8 *)pi, ch->length, 0); pi 2991 drivers/scsi/smartpqi/smartpqi_init.c static inline unsigned int pqi_num_elements_free(unsigned int pi, pi 2996 drivers/scsi/smartpqi/smartpqi_init.c if (pi >= ci) pi 2997 drivers/scsi/smartpqi/smartpqi_init.c num_elements_used = pi - ci; pi 2999 drivers/scsi/smartpqi/smartpqi_init.c num_elements_used = elements_in_queue - ci + pi; pi 719 drivers/soc/fsl/dpio/qbman-portal.c u8 pi = qbman_read_register(s, QBMAN_CINH_SWP_DQPI) & pi 723 drivers/soc/fsl/dpio/qbman-portal.c if (pi == s->dqrr.next_idx) pi 736 drivers/soc/fsl/dpio/qbman-portal.c s->dqrr.next_idx, pi); pi 385 drivers/soc/fsl/qbman/bman.c u8 pi; pi 389 drivers/soc/fsl/qbman/bman.c pi = bm_in(portal, BM_REG_RCR_PI_CINH) & (BM_RCR_SIZE - 1); pi 390 drivers/soc/fsl/qbman/bman.c rcr->cursor = rcr->ring + pi; pi 394 drivers/soc/fsl/qbman/bman.c - dpaa_cyc_diff(BM_RCR_SIZE, rcr->ci, pi); pi 208 drivers/soc/fsl/qbman/qman.c u8 pi, ci, fill, ithresh, vbit; pi 218 drivers/soc/fsl/qbman/qman.c u8 pi, ci, fill, ithresh, vbit; pi 428 drivers/soc/fsl/qbman/qman.c u8 pi; pi 433 drivers/soc/fsl/qbman/qman.c pi = qm_in(portal, QM_REG_EQCR_PI_CINH) & (QM_EQCR_SIZE - 1); pi 434 drivers/soc/fsl/qbman/qman.c eqcr->cursor = eqcr->ring + pi; pi 438 drivers/soc/fsl/qbman/qman.c dpaa_cyc_diff(QM_EQCR_SIZE, eqcr->ci, pi); pi 460 drivers/soc/fsl/qbman/qman.c u8 pi = qm_in(portal, QM_REG_EQCR_PI_CINH) & (QM_EQCR_SIZE - 1); pi 464 drivers/soc/fsl/qbman/qman.c if (pi != eqcr_ptr2idx(eqcr->cursor)) pi 620 drivers/soc/fsl/qbman/qman.c dqrr->pi = qm_in(portal, QM_REG_DQRR_PI_CINH) & (QM_DQRR_SIZE - 1); pi 623 drivers/soc/fsl/qbman/qman.c dqrr->fill = dpaa_cyc_diff(QM_DQRR_SIZE, dqrr->ci, dqrr->pi); pi 680 drivers/soc/fsl/qbman/qman.c struct qm_dqrr_entry *res = qm_cl(dqrr->ring, dqrr->pi); pi 691 drivers/soc/fsl/qbman/qman.c dqrr->pi = (dqrr->pi + 1) & (QM_DQRR_SIZE - 1); pi 692 drivers/soc/fsl/qbman/qman.c if (!dqrr->pi) pi 774 drivers/soc/fsl/qbman/qman.c mr->pi = qm_in(portal, QM_REG_MR_PI_CINH) & (QM_MR_SIZE - 1); pi 777 drivers/soc/fsl/qbman/qman.c mr->fill = dpaa_cyc_diff(QM_MR_SIZE, mr->ci, mr->pi); pi 820 drivers/soc/fsl/qbman/qman.c union qm_mr_entry *res = qm_cl(mr->ring, mr->pi); pi 825 drivers/soc/fsl/qbman/qman.c mr->pi = (mr->pi + 1) & (QM_MR_SIZE - 1); pi 826 drivers/soc/fsl/qbman/qman.c if (!mr->pi) pi 2385 drivers/soc/fsl/qbman/qman.c static void qm_cgr_cscn_targ_set(struct __qm_mc_cgr *cgr, int pi, u32 val) pi 2388 drivers/soc/fsl/qbman/qman.c cgr->cscn_targ_upd_ctrl = cpu_to_be16(pi | pi 2391 drivers/soc/fsl/qbman/qman.c cgr->cscn_targ = cpu_to_be32(val | QM_CGR_TARG_PORTAL(pi)); pi 2394 drivers/soc/fsl/qbman/qman.c static void qm_cgr_cscn_targ_clear(struct __qm_mc_cgr *cgr, int pi, u32 val) pi 2397 drivers/soc/fsl/qbman/qman.c cgr->cscn_targ_upd_ctrl = cpu_to_be16(pi); pi 2399 drivers/soc/fsl/qbman/qman.c cgr->cscn_targ = cpu_to_be32(val & ~QM_CGR_TARG_PORTAL(pi)); pi 768 drivers/soc/ti/knav_qmss_queue.c struct knav_pool *pool, *pi; pi 828 drivers/soc/ti/knav_qmss_queue.c list_for_each_entry(pi, ®ion->pools, region_inst) { pi 829 drivers/soc/ti/knav_qmss_queue.c if ((pi->region_offset - last_offset) >= num_desc) { pi 833 drivers/soc/ti/knav_qmss_queue.c last_offset = pi->region_offset + pi->num_desc; pi 835 drivers/soc/ti/knav_qmss_queue.c node = &pi->region_inst; pi 200 drivers/spi/spi-pxa2xx-pci.c struct platform_device_info pi; pi 250 drivers/spi/spi-pxa2xx-pci.c memset(&pi, 0, sizeof(pi)); pi 251 drivers/spi/spi-pxa2xx-pci.c pi.fwnode = dev->dev.fwnode; pi 252 drivers/spi/spi-pxa2xx-pci.c pi.parent = &dev->dev; pi 253 drivers/spi/spi-pxa2xx-pci.c pi.name = "pxa2xx-spi"; pi 254 drivers/spi/spi-pxa2xx-pci.c pi.id = ssp->port_id; pi 255 drivers/spi/spi-pxa2xx-pci.c pi.data = &spi_pdata; pi 256 drivers/spi/spi-pxa2xx-pci.c pi.size_data = sizeof(spi_pdata); pi 258 drivers/spi/spi-pxa2xx-pci.c pdev = platform_device_register_full(&pi); pi 827 drivers/target/iscsi/cxgbit/cxgbit_cm.c static void cxgbit_set_tcp_window(struct cxgbit_sock *csk, struct port_info *pi) pi 832 drivers/target/iscsi/cxgbit/cxgbit_cm.c linkspeed = pi->link_cfg.speed; pi 305 drivers/tty/hvc/hvcs.c static void hvcs_set_pi(struct hvcs_partner_info *pi, pi 868 drivers/tty/hvc/hvcs.c static void hvcs_set_pi(struct hvcs_partner_info *pi, struct hvcs_struct *hvcsd) pi 870 drivers/tty/hvc/hvcs.c hvcsd->p_unit_address = pi->unit_address; pi 871 drivers/tty/hvc/hvcs.c hvcsd->p_partition_ID = pi->partition_ID; pi 874 drivers/tty/hvc/hvcs.c strlcpy(hvcsd->p_location_code, pi->location_code, pi 893 drivers/tty/hvc/hvcs.c struct hvcs_partner_info *pi; pi 915 drivers/tty/hvc/hvcs.c list_for_each_entry(pi, &head, node) pi 916 drivers/tty/hvc/hvcs.c hvcs_set_pi(pi, hvcsd); pi 809 drivers/tty/serial/8250/8250_pci.c unsigned int pi; pi 812 drivers/tty/serial/8250/8250_pci.c pi = c & 0xff; pi 814 drivers/tty/serial/8250/8250_pci.c if (pi == 2) pi 817 drivers/tty/serial/8250/8250_pci.c if ((pi == 0) && (dev->device == PCI_DEVICE_ID_NETMOS_9900)) { pi 285 drivers/uio/uio.c int mi, pi; pi 322 drivers/uio/uio.c for (pi = 0; pi < MAX_UIO_PORT_REGIONS; pi++) { pi 323 drivers/uio/uio.c port = &idev->info->port[pi]; pi 344 drivers/uio/uio.c "port%d", pi); pi 355 drivers/uio/uio.c pi--; pi 357 drivers/uio/uio.c for (; pi >= 0; pi--) { pi 358 drivers/uio/uio.c port = &idev->info->port[pi]; pi 31 drivers/usb/typec/mux/pi3usb30532.c static int pi3usb30532_set_conf(struct pi3usb30532 *pi, u8 new_conf) pi 35 drivers/usb/typec/mux/pi3usb30532.c if (pi->conf == new_conf) pi 38 drivers/usb/typec/mux/pi3usb30532.c ret = i2c_smbus_write_byte_data(pi->client, PI3USB30532_CONF, new_conf); pi 40 drivers/usb/typec/mux/pi3usb30532.c dev_err(&pi->client->dev, "Error writing conf: %d\n", ret); pi 44 drivers/usb/typec/mux/pi3usb30532.c pi->conf = new_conf; pi 51 drivers/usb/typec/mux/pi3usb30532.c struct pi3usb30532 *pi = typec_switch_get_drvdata(sw); pi 55 drivers/usb/typec/mux/pi3usb30532.c mutex_lock(&pi->lock); pi 56 drivers/usb/typec/mux/pi3usb30532.c new_conf = pi->conf; pi 70 drivers/usb/typec/mux/pi3usb30532.c ret = pi3usb30532_set_conf(pi, new_conf); pi 71 drivers/usb/typec/mux/pi3usb30532.c mutex_unlock(&pi->lock); pi 78 drivers/usb/typec/mux/pi3usb30532.c struct pi3usb30532 *pi = typec_mux_get_drvdata(mux); pi 82 drivers/usb/typec/mux/pi3usb30532.c mutex_lock(&pi->lock); pi 83 drivers/usb/typec/mux/pi3usb30532.c new_conf = pi->conf; pi 107 drivers/usb/typec/mux/pi3usb30532.c ret = pi3usb30532_set_conf(pi, new_conf); pi 108 drivers/usb/typec/mux/pi3usb30532.c mutex_unlock(&pi->lock); pi 118 drivers/usb/typec/mux/pi3usb30532.c struct pi3usb30532 *pi; pi 121 drivers/usb/typec/mux/pi3usb30532.c pi = devm_kzalloc(dev, sizeof(*pi), GFP_KERNEL); pi 122 drivers/usb/typec/mux/pi3usb30532.c if (!pi) pi 125 drivers/usb/typec/mux/pi3usb30532.c pi->client = client; pi 126 drivers/usb/typec/mux/pi3usb30532.c mutex_init(&pi->lock); pi 133 drivers/usb/typec/mux/pi3usb30532.c pi->conf = ret; pi 135 drivers/usb/typec/mux/pi3usb30532.c sw_desc.drvdata = pi; pi 139 drivers/usb/typec/mux/pi3usb30532.c pi->sw = typec_switch_register(dev, &sw_desc); pi 140 drivers/usb/typec/mux/pi3usb30532.c if (IS_ERR(pi->sw)) { pi 142 drivers/usb/typec/mux/pi3usb30532.c PTR_ERR(pi->sw)); pi 143 drivers/usb/typec/mux/pi3usb30532.c return PTR_ERR(pi->sw); pi 146 drivers/usb/typec/mux/pi3usb30532.c mux_desc.drvdata = pi; pi 150 drivers/usb/typec/mux/pi3usb30532.c pi->mux = typec_mux_register(dev, &mux_desc); pi 151 drivers/usb/typec/mux/pi3usb30532.c if (IS_ERR(pi->mux)) { pi 152 drivers/usb/typec/mux/pi3usb30532.c typec_switch_unregister(pi->sw); pi 154 drivers/usb/typec/mux/pi3usb30532.c PTR_ERR(pi->mux)); pi 155 drivers/usb/typec/mux/pi3usb30532.c return PTR_ERR(pi->mux); pi 158 drivers/usb/typec/mux/pi3usb30532.c i2c_set_clientdata(client, pi); pi 164 drivers/usb/typec/mux/pi3usb30532.c struct pi3usb30532 *pi = i2c_get_clientdata(client); pi 166 drivers/usb/typec/mux/pi3usb30532.c typec_mux_unregister(pi->mux); pi 167 drivers/usb/typec/mux/pi3usb30532.c typec_switch_unregister(pi->sw); pi 56 drivers/video/fbdev/matrox/g450_pll.c const struct matrox_pll_limits *pi, pi 77 drivers/video/fbdev/matrox/g450_pll.c if (tvco < pi->vcomin) { pi 105 drivers/video/fbdev/matrox/g450_pll.c const struct matrox_pll_limits *pi, pi 111 drivers/video/fbdev/matrox/g450_pll.c vcomax = pi->vcomax; pi 128 drivers/video/fbdev/matrox/g450_pll.c if (tvco < pi->vcomin) { pi 129 drivers/video/fbdev/matrox/g450_pll.c tvco = pi->vcomin; pi 133 drivers/video/fbdev/matrox/g450_pll.c return g450_nextpll(minfo, pi, vco, 0xFF0000 | p); pi 337 drivers/video/fbdev/matrox/g450_pll.c const struct matrox_pll_limits* pi; pi 394 drivers/video/fbdev/matrox/g450_pll.c pi = &minfo->limits.pixel; pi 406 drivers/video/fbdev/matrox/g450_pll.c pi = &minfo->limits.system; pi 426 drivers/video/fbdev/matrox/g450_pll.c pi = &minfo->limits.video; pi 438 drivers/video/fbdev/matrox/g450_pll.c for (mnp = g450_firstpll(minfo, pi, &xvco, fout); mnp != NO_MORE_MNP; mnp = g450_nextpll(minfo, pi, &xvco, mnp)) { pi 476 drivers/video/fbdev/matrox/g450_pll.c && vco < (pi->vcomin * 17 / 16)) { pi 764 drivers/video/fbdev/omap/omapfb_main.c static int omapfb_setup_plane(struct fb_info *fbi, struct omapfb_plane_info *pi) pi 772 drivers/video/fbdev/omap/omapfb_main.c if (pi->pos_x + pi->out_width > panel->x_res || pi 773 drivers/video/fbdev/omap/omapfb_main.c pi->pos_y + pi->out_height > panel->y_res) pi 777 drivers/video/fbdev/omap/omapfb_main.c if (pi->enabled && !fbdev->mem_desc.region[plane->idx].size) { pi 786 drivers/video/fbdev/omap/omapfb_main.c plane->info = *pi; pi 787 drivers/video/fbdev/omap/omapfb_main.c if (pi->enabled) { pi 794 drivers/video/fbdev/omap/omapfb_main.c r = fbdev->ctrl->enable_plane(plane->idx, pi->enabled); pi 804 drivers/video/fbdev/omap/omapfb_main.c static int omapfb_query_plane(struct fb_info *fbi, struct omapfb_plane_info *pi) pi 808 drivers/video/fbdev/omap/omapfb_main.c *pi = plane->info; pi 300 drivers/video/fbdev/omap2/omapfb/dss/hdmi.h unsigned long target_tmds, struct dss_pll_clock_info *pi); pi 40 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c unsigned long target_tmds, struct dss_pll_clock_info *pi) pi 88 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c pi->n = n; pi 89 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c pi->m = m; pi 90 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c pi->mf = mf; pi 91 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c pi->mX[0] = m2; pi 92 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c pi->sd = sd; pi 94 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c pi->fint = fint; pi 95 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c pi->clkdco = clkdco; pi 96 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c pi->clkout[0] = clkout; pi 51 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c static int omapfb_setup_plane(struct fb_info *fbi, struct omapfb_plane_info *pi) pi 71 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c new_rg = get_mem_region(ofbi, pi->mem_idx); pi 87 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c if (pi->enabled && !new_rg->size) { pi 103 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c if (!pi->enabled) { pi 109 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c if (pi->enabled) { pi 110 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c r = omapfb_setup_overlay(fbi, ovl, pi->pos_x, pi->pos_y, pi 111 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c pi->out_width, pi->out_height); pi 119 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c info.pos_x = pi->pos_x; pi 120 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c info.pos_y = pi->pos_y; pi 121 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c info.out_width = pi->out_width; pi 122 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c info.out_height = pi->out_height; pi 135 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c if (pi->enabled) { pi 176 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c static int omapfb_query_plane(struct fb_info *fbi, struct omapfb_plane_info *pi) pi 181 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c memset(pi, 0, sizeof(*pi)); pi 189 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c pi->pos_x = ovli.pos_x; pi 190 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c pi->pos_y = ovli.pos_y; pi 191 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c pi->enabled = ovl->is_enabled(ovl); pi 192 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c pi->channel_out = 0; /* xxx */ pi 193 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c pi->mirror = 0; pi 194 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c pi->mem_idx = get_mem_idx(ofbi); pi 195 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c pi->out_width = ovli.out_width; pi 196 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c pi->out_height = ovli.out_height; pi 308 fs/nfs/internal.h dst->pi = src->pi; pi 5890 fs/nfs/nfs4proc.c ilabel.pi = 0; pi 1179 fs/nfs/nfs4xdr.c *p++ = cpu_to_be32(label->pi); pi 4146 fs/nfs/nfs4xdr.c uint32_t pi = 0; pi 4162 fs/nfs/nfs4xdr.c pi = be32_to_cpup(p++); pi 4174 fs/nfs/nfs4xdr.c label->pi = pi; pi 4185 fs/nfs/nfs4xdr.c (char *)label->label, label->len, label->pi, label->lfs); pi 284 include/linux/ceph/osdmap.h void __ceph_object_locator_to_pg(struct ceph_pg_pool_info *pi, pi 294 include/linux/ceph/osdmap.h struct ceph_pg_pool_info *pi, pi 299 include/linux/ceph/osdmap.h struct ceph_pg_pool_info *pi, pi 189 include/linux/kexec.h int __weak arch_kexec_apply_relocations_add(struct purgatory_info *pi, pi 193 include/linux/kexec.h int __weak arch_kexec_apply_relocations(struct purgatory_info *pi, pi 330 include/linux/mfd/si476x-core.h u16 pi; pi 47 include/linux/nfs4.h uint32_t pi; pi 131 kernel/bpf/tnum.c u64 pi; pi 133 kernel/bpf/tnum.c pi = a.value * b.value; pi 134 kernel/bpf/tnum.c acc = hma(TNUM(pi, 0), a.mask, b.mask | b.value); pi 3567 kernel/futex.c bool pi, bool pending_op) pi 3611 kernel/futex.c if (pending_op && !pi && !uval) { pi 3664 kernel/futex.c if (!pi && (uval & FUTEX_WAITERS)) pi 3675 kernel/futex.c unsigned int *pi) pi 3683 kernel/futex.c *pi = uentry & 1; pi 3698 kernel/futex.c unsigned int limit = ROBUST_LIST_LIMIT, pi, pip; pi 3710 kernel/futex.c if (fetch_robust_entry(&entry, &head->list.next, &pi)) pi 3737 kernel/futex.c curr, pi, HANDLE_DEATH_LIST)) pi 3743 kernel/futex.c pi = next_pi; pi 3968 kernel/futex.c compat_uptr_t __user *head, unsigned int *pi) pi 3974 kernel/futex.c *pi = (unsigned int)(*uentry) & 1; pi 3998 kernel/futex.c unsigned int limit = ROBUST_LIST_LIMIT, pi, pip; pi 4011 kernel/futex.c if (compat_fetch_robust_entry(&uentry, &entry, &head->list.next, &pi)) pi 4041 kernel/futex.c if (handle_futex_death(uaddr, curr, pi, pi 4049 kernel/futex.c pi = next_pi; pi 120 kernel/kexec_file.c arch_kexec_apply_relocations_add(struct purgatory_info *pi, Elf_Shdr *section, pi 137 kernel/kexec_file.c arch_kexec_apply_relocations(struct purgatory_info *pi, Elf_Shdr *section, pi 151 kernel/kexec_file.c struct purgatory_info *pi = &image->purgatory_info; pi 162 kernel/kexec_file.c vfree(pi->purgatory_buf); pi 163 kernel/kexec_file.c pi->purgatory_buf = NULL; pi 165 kernel/kexec_file.c vfree(pi->sechdrs); pi 166 kernel/kexec_file.c pi->sechdrs = NULL; pi 715 kernel/kexec_file.c struct purgatory_info *pi = &image->purgatory_info; pi 761 kernel/kexec_file.c if (ksegment->kbuf == pi->purgatory_buf) pi 831 kernel/kexec_file.c static int kexec_purgatory_setup_kbuf(struct purgatory_info *pi, pi 840 kernel/kexec_file.c sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff; pi 844 kernel/kexec_file.c for (i = 0; i < pi->ehdr->e_shnum; i++) { pi 869 kernel/kexec_file.c pi->purgatory_buf = kbuf->buffer; pi 877 kernel/kexec_file.c vfree(pi->purgatory_buf); pi 878 kernel/kexec_file.c pi->purgatory_buf = NULL; pi 892 kernel/kexec_file.c static int kexec_purgatory_setup_sechdrs(struct purgatory_info *pi, pi 904 kernel/kexec_file.c sechdrs = vzalloc(array_size(sizeof(Elf_Shdr), pi->ehdr->e_shnum)); pi 907 kernel/kexec_file.c memcpy(sechdrs, (void *)pi->ehdr + pi->ehdr->e_shoff, pi 908 kernel/kexec_file.c pi->ehdr->e_shnum * sizeof(Elf_Shdr)); pi 909 kernel/kexec_file.c pi->sechdrs = sechdrs; pi 913 kernel/kexec_file.c kbuf->image->start = pi->ehdr->e_entry; pi 915 kernel/kexec_file.c for (i = 0; i < pi->ehdr->e_shnum; i++) { pi 932 kernel/kexec_file.c pi->ehdr->e_entry >= sechdrs[i].sh_addr && pi 933 kernel/kexec_file.c pi->ehdr->e_entry < (sechdrs[i].sh_addr pi 939 kernel/kexec_file.c src = (void *)pi->ehdr + sechdrs[i].sh_offset; pi 940 kernel/kexec_file.c dst = pi->purgatory_buf + offset; pi 954 kernel/kexec_file.c struct purgatory_info *pi = &image->purgatory_info; pi 957 kernel/kexec_file.c sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff; pi 959 kernel/kexec_file.c for (i = 0; i < pi->ehdr->e_shnum; i++) { pi 976 kernel/kexec_file.c if (relsec->sh_info >= pi->ehdr->e_shnum || pi 977 kernel/kexec_file.c relsec->sh_link >= pi->ehdr->e_shnum) pi 980 kernel/kexec_file.c section = pi->sechdrs + relsec->sh_info; pi 990 kernel/kexec_file.c if (symtab->sh_link >= pi->ehdr->e_shnum) pi 999 kernel/kexec_file.c ret = arch_kexec_apply_relocations_add(pi, section, pi 1002 kernel/kexec_file.c ret = arch_kexec_apply_relocations(pi, section, pi 1024 kernel/kexec_file.c struct purgatory_info *pi = &image->purgatory_info; pi 1030 kernel/kexec_file.c pi->ehdr = (const Elf_Ehdr *)kexec_purgatory; pi 1032 kernel/kexec_file.c ret = kexec_purgatory_setup_kbuf(pi, kbuf); pi 1036 kernel/kexec_file.c ret = kexec_purgatory_setup_sechdrs(pi, kbuf); pi 1046 kernel/kexec_file.c vfree(pi->sechdrs); pi 1047 kernel/kexec_file.c pi->sechdrs = NULL; pi 1049 kernel/kexec_file.c vfree(pi->purgatory_buf); pi 1050 kernel/kexec_file.c pi->purgatory_buf = NULL; pi 1061 kernel/kexec_file.c static const Elf_Sym *kexec_purgatory_find_symbol(struct purgatory_info *pi, pi 1070 kernel/kexec_file.c if (!pi->ehdr) pi 1073 kernel/kexec_file.c ehdr = pi->ehdr; pi 1111 kernel/kexec_file.c struct purgatory_info *pi = &image->purgatory_info; pi 1115 kernel/kexec_file.c sym = kexec_purgatory_find_symbol(pi, name); pi 1119 kernel/kexec_file.c sechdr = &pi->sechdrs[sym->st_shndx]; pi 1135 kernel/kexec_file.c struct purgatory_info *pi = &image->purgatory_info; pi 1140 kernel/kexec_file.c sym = kexec_purgatory_find_symbol(pi, name); pi 1150 kernel/kexec_file.c sec = pi->sechdrs + sym->st_shndx; pi 1158 kernel/kexec_file.c sym_buf = (char *)pi->purgatory_buf + sec->sh_offset + sym->st_value; pi 2328 kernel/kprobes.c static void report_probe(struct seq_file *pi, struct kprobe *p, pi 2343 kernel/kprobes.c seq_printf(pi, "%px %s %s+0x%x %s ", pi 2347 kernel/kprobes.c seq_printf(pi, "%px %s %pS ", pi 2352 kernel/kprobes.c seq_printf(pi, "%s%s%s%s\n", pi 2377 kernel/kprobes.c static int show_kprobe_addr(struct seq_file *pi, void *v) pi 2393 kernel/kprobes.c report_probe(pi, kp, sym, offset, modname, p); pi 2395 kernel/kprobes.c report_probe(pi, p, sym, offset, modname, NULL); pi 4751 kernel/sched/core.c bool user, bool pi) pi 4764 kernel/sched/core.c BUG_ON(pi && in_interrupt()); pi 4859 kernel/sched/core.c if (pi) pi 4936 kernel/sched/core.c if (pi) pi 4954 kernel/sched/core.c if (pi) { pi 4976 kernel/sched/core.c __setscheduler(rq, p, attr, pi); pi 4998 kernel/sched/core.c if (pi) { pi 5011 kernel/sched/core.c if (pi) pi 395 kernel/workqueue.c #define for_each_pool(pool, pi) \ pi 396 kernel/workqueue.c idr_for_each_entry(&worker_pool_idr, pool, pi) \ pi 4737 kernel/workqueue.c int pi; pi 4772 kernel/workqueue.c for_each_pool(pool, pi) { pi 5026 kernel/workqueue.c int pi; pi 5030 kernel/workqueue.c for_each_pool(pool, pi) { pi 5732 kernel/workqueue.c int pi; pi 5739 kernel/workqueue.c for_each_pool(pool, pi) { pi 760 mm/memcontrol.c struct mem_cgroup_per_node *pi; pi 762 mm/memcontrol.c for (pi = pn; pi; pi = parent_nodeinfo(pi, pgdat->node_id)) pi 763 mm/memcontrol.c atomic_long_add(x, &pi->lruvec_stat[idx]); pi 3489 mm/memcontrol.c struct mem_cgroup_per_node *pi; pi 3499 mm/memcontrol.c for (pi = pn; pi; pi = parent_nodeinfo(pi, node)) pi 3501 mm/memcontrol.c atomic_long_add(stat[i], &pi->lruvec_stat[i]); pi 987 net/bluetooth/l2cap_sock.c struct l2cap_pinfo *pi = l2cap_pi(sk); pi 994 net/bluetooth/l2cap_sock.c if (bdaddr_type_is_le(pi->chan->src_type)) { pi 996 net/bluetooth/l2cap_sock.c pi->chan->state = BT_CONNECTED; pi 997 net/bluetooth/l2cap_sock.c __l2cap_le_connect_rsp_defer(pi->chan); pi 1000 net/bluetooth/l2cap_sock.c pi->chan->state = BT_CONFIG; pi 1001 net/bluetooth/l2cap_sock.c __l2cap_connect_rsp_defer(pi->chan); pi 1015 net/bluetooth/l2cap_sock.c if (pi->chan->mode != L2CAP_MODE_ERTM) pi 1022 net/bluetooth/l2cap_sock.c if (!test_bit(CONN_LOCAL_BUSY, &pi->chan->conn_state)) pi 1025 net/bluetooth/l2cap_sock.c if (pi->rx_busy_skb) { pi 1026 net/bluetooth/l2cap_sock.c if (!__sock_queue_rcv_skb(sk, pi->rx_busy_skb)) pi 1027 net/bluetooth/l2cap_sock.c pi->rx_busy_skb = NULL; pi 1037 net/bluetooth/l2cap_sock.c l2cap_chan_busy(pi->chan, 0); pi 244 net/bluetooth/rfcomm/sock.c struct rfcomm_pinfo *pi = rfcomm_pi(sk); pi 250 net/bluetooth/rfcomm/sock.c pi->dlc->defer_setup = test_bit(BT_SK_DEFER_SETUP, pi 253 net/bluetooth/rfcomm/sock.c pi->sec_level = rfcomm_pi(parent)->sec_level; pi 254 net/bluetooth/rfcomm/sock.c pi->role_switch = rfcomm_pi(parent)->role_switch; pi 258 net/bluetooth/rfcomm/sock.c pi->dlc->defer_setup = 0; pi 260 net/bluetooth/rfcomm/sock.c pi->sec_level = BT_SECURITY_LOW; pi 261 net/bluetooth/rfcomm/sock.c pi->role_switch = 0; pi 264 net/bluetooth/rfcomm/sock.c pi->dlc->sec_level = pi->sec_level; pi 265 net/bluetooth/rfcomm/sock.c pi->dlc->role_switch = pi->role_switch; pi 775 net/bluetooth/sco.c struct sco_pinfo *pi = sco_pi(sk); pi 781 net/bluetooth/sco.c sco_conn_defer_accept(pi->conn->hcon, pi->setting); pi 70 net/ceph/debugfs.c struct ceph_pg_pool_info *pi = pi 74 net/ceph/debugfs.c pi->id, pi->name, pi->type, pi->size, pi->min_size, pi 75 net/ceph/debugfs.c pi->pg_num, pi->pg_num_mask, pi->flags, pi 76 net/ceph/debugfs.c pi->last_force_request_resend, pi->read_tier, pi 77 net/ceph/debugfs.c pi->write_tier); pi 1450 net/ceph/osd_client.c static bool __pool_full(struct ceph_pg_pool_info *pi) pi 1452 net/ceph/osd_client.c return pi->flags & CEPH_POOL_FLAG_FULL; pi 1460 net/ceph/osd_client.c struct ceph_pg_pool_info *pi = pi 1463 net/ceph/osd_client.c if (__pool_full(pi)) pi 1472 net/ceph/osd_client.c struct ceph_pg_pool_info *pi; pi 1474 net/ceph/osd_client.c pi = ceph_pg_pool_by_id(osdc->osdmap, pool_id); pi 1475 net/ceph/osd_client.c if (!pi) pi 1478 net/ceph/osd_client.c return __pool_full(pi); pi 1487 net/ceph/osd_client.c struct ceph_pg_pool_info *pi) pi 1492 net/ceph/osd_client.c __pool_full(pi); pi 1494 net/ceph/osd_client.c WARN_ON(pi->id != t->target_oloc.pool); pi 1510 net/ceph/osd_client.c struct ceph_pg_pool_info *pi; pi 1523 net/ceph/osd_client.c pi = ceph_pg_pool_by_id(osdc->osdmap, t->base_oloc.pool); pi 1524 net/ceph/osd_client.c if (!pi) { pi 1530 net/ceph/osd_client.c if (osdc->osdmap->epoch == pi->last_force_request_resend) { pi 1531 net/ceph/osd_client.c if (t->last_force_resend < pi->last_force_request_resend) { pi 1532 net/ceph/osd_client.c t->last_force_resend = pi->last_force_request_resend; pi 1543 net/ceph/osd_client.c if (t->flags & CEPH_OSD_FLAG_READ && pi->read_tier >= 0) pi 1544 net/ceph/osd_client.c t->target_oloc.pool = pi->read_tier; pi 1545 net/ceph/osd_client.c if (t->flags & CEPH_OSD_FLAG_WRITE && pi->write_tier >= 0) pi 1546 net/ceph/osd_client.c t->target_oloc.pool = pi->write_tier; pi 1548 net/ceph/osd_client.c pi = ceph_pg_pool_by_id(osdc->osdmap, t->target_oloc.pool); pi 1549 net/ceph/osd_client.c if (!pi) { pi 1556 net/ceph/osd_client.c __ceph_object_locator_to_pg(pi, &t->target_oid, &t->target_oloc, &pgid); pi 1560 net/ceph/osd_client.c ceph_pg_to_up_acting_osds(osdc->osdmap, pi, &pgid, &up, &acting); pi 1567 net/ceph/osd_client.c pi->size, pi 1569 net/ceph/osd_client.c pi->min_size, pi 1571 net/ceph/osd_client.c pi->pg_num, pi 1579 net/ceph/osd_client.c if (t->paused && !target_should_be_paused(osdc, t, pi)) { pi 1586 net/ceph/osd_client.c split = ceph_pg_is_split(&last_pgid, t->pg_num, pi->pg_num); pi 1590 net/ceph/osd_client.c ceph_pg_to_primary_shard(osdc->osdmap, pi, &pgid, &t->spgid); pi 1593 net/ceph/osd_client.c t->size = pi->size; pi 1594 net/ceph/osd_client.c t->min_size = pi->min_size; pi 1595 net/ceph/osd_client.c t->pg_num = pi->pg_num; pi 1596 net/ceph/osd_client.c t->pg_num_mask = pi->pg_num_mask; pi 3709 net/ceph/osd_client.c struct ceph_pg_pool_info *pi = pi 3712 net/ceph/osd_client.c pi->was_full = __pool_full(pi); pi 3718 net/ceph/osd_client.c struct ceph_pg_pool_info *pi; pi 3720 net/ceph/osd_client.c pi = ceph_pg_pool_by_id(osdc->osdmap, pool_id); pi 3721 net/ceph/osd_client.c if (!pi) pi 3724 net/ceph/osd_client.c return pi->was_full && !__pool_full(pi); pi 3856 net/ceph/osd_client.c struct ceph_pg_pool_info *pi = pi 3860 net/ceph/osd_client.c old_pi = ceph_pg_pool_by_id(osdc->osdmap, pi->id); pi 3862 net/ceph/osd_client.c pi->was_full = old_pi->was_full; pi 3864 net/ceph/osd_client.c WARN_ON(pi->was_full); pi 46 net/ceph/osdmap.c static void calc_pg_masks(struct ceph_pg_pool_info *pi) pi 48 net/ceph/osdmap.c pi->pg_num_mask = (1 << calc_bits_of(pi->pg_num-1)) - 1; pi 49 net/ceph/osdmap.c pi->pgp_num_mask = (1 << calc_bits_of(pi->pgp_num-1)) - 1; pi 643 net/ceph/osdmap.c struct ceph_pg_pool_info *pi = NULL; pi 647 net/ceph/osdmap.c pi = rb_entry(parent, struct ceph_pg_pool_info, node); pi 648 net/ceph/osdmap.c if (new->id < pi->id) pi 650 net/ceph/osdmap.c else if (new->id > pi->id) pi 663 net/ceph/osdmap.c struct ceph_pg_pool_info *pi; pi 667 net/ceph/osdmap.c pi = rb_entry(n, struct ceph_pg_pool_info, node); pi 668 net/ceph/osdmap.c if (id < pi->id) pi 670 net/ceph/osdmap.c else if (id > pi->id) pi 673 net/ceph/osdmap.c return pi; pi 685 net/ceph/osdmap.c struct ceph_pg_pool_info *pi; pi 693 net/ceph/osdmap.c pi = __lookup_pg_pool(&map->pg_pools, (int) id); pi 695 net/ceph/osdmap.c return pi ? pi->name : NULL; pi 704 net/ceph/osdmap.c struct ceph_pg_pool_info *pi = pi 706 net/ceph/osdmap.c if (pi->name && strcmp(pi->name, name) == 0) pi 707 net/ceph/osdmap.c return pi->id; pi 715 net/ceph/osdmap.c struct ceph_pg_pool_info *pi; pi 717 net/ceph/osdmap.c pi = __lookup_pg_pool(&map->pg_pools, id); pi 718 net/ceph/osdmap.c return pi ? pi->flags : 0; pi 722 net/ceph/osdmap.c static void __remove_pg_pool(struct rb_root *root, struct ceph_pg_pool_info *pi) pi 724 net/ceph/osdmap.c rb_erase(&pi->node, root); pi 725 net/ceph/osdmap.c kfree(pi->name); pi 726 net/ceph/osdmap.c kfree(pi); pi 729 net/ceph/osdmap.c static int decode_pool(void **p, void *end, struct ceph_pg_pool_info *pi) pi 750 net/ceph/osdmap.c pi->type = ceph_decode_8(p); pi 751 net/ceph/osdmap.c pi->size = ceph_decode_8(p); pi 752 net/ceph/osdmap.c pi->crush_ruleset = ceph_decode_8(p); pi 753 net/ceph/osdmap.c pi->object_hash = ceph_decode_8(p); pi 755 net/ceph/osdmap.c pi->pg_num = ceph_decode_32(p); pi 756 net/ceph/osdmap.c pi->pgp_num = ceph_decode_32(p); pi 776 net/ceph/osdmap.c pi->flags = ceph_decode_64(p); pi 780 net/ceph/osdmap.c pi->min_size = ceph_decode_8(p); pi 782 net/ceph/osdmap.c pi->min_size = pi->size - pi->size / 2; pi 795 net/ceph/osdmap.c pi->read_tier = ceph_decode_64(p); pi 796 net/ceph/osdmap.c pi->write_tier = ceph_decode_64(p); pi 798 net/ceph/osdmap.c pi->read_tier = -1; pi 799 net/ceph/osdmap.c pi->write_tier = -1; pi 846 net/ceph/osdmap.c pi->last_force_request_resend = ceph_decode_32(p); pi 848 net/ceph/osdmap.c pi->last_force_request_resend = 0; pi 881 net/ceph/osdmap.c pi->last_force_request_resend = ceph_decode_32(p); pi 886 net/ceph/osdmap.c calc_pg_masks(pi); pi 895 net/ceph/osdmap.c struct ceph_pg_pool_info *pi; pi 906 net/ceph/osdmap.c pi = __lookup_pg_pool(&map->pg_pools, pool); pi 907 net/ceph/osdmap.c if (pi) { pi 912 net/ceph/osdmap.c kfree(pi->name); pi 913 net/ceph/osdmap.c pi->name = name; pi 914 net/ceph/osdmap.c dout(" name is %s\n", pi->name); pi 980 net/ceph/osdmap.c struct ceph_pg_pool_info *pi = pi 983 net/ceph/osdmap.c __remove_pg_pool(&map->pg_pools, pi); pi 1151 net/ceph/osdmap.c struct ceph_pg_pool_info *pi; pi 1157 net/ceph/osdmap.c pi = __lookup_pg_pool(&map->pg_pools, pool); pi 1158 net/ceph/osdmap.c if (!incremental || !pi) { pi 1159 net/ceph/osdmap.c pi = kzalloc(sizeof(*pi), GFP_NOFS); pi 1160 net/ceph/osdmap.c if (!pi) pi 1163 net/ceph/osdmap.c pi->id = pool; pi 1165 net/ceph/osdmap.c ret = __insert_pg_pool(&map->pg_pools, pi); pi 1167 net/ceph/osdmap.c kfree(pi); pi 1172 net/ceph/osdmap.c ret = decode_pool(p, end, pi); pi 1829 net/ceph/osdmap.c struct ceph_pg_pool_info *pi; pi 1832 net/ceph/osdmap.c pi = __lookup_pg_pool(&map->pg_pools, pool); pi 1833 net/ceph/osdmap.c if (pi) pi 1834 net/ceph/osdmap.c __remove_pg_pool(&map->pg_pools, pi); pi 2179 net/ceph/osdmap.c void __ceph_object_locator_to_pg(struct ceph_pg_pool_info *pi, pi 2184 net/ceph/osdmap.c WARN_ON(pi->id != oloc->pool); pi 2188 net/ceph/osdmap.c raw_pgid->seed = ceph_str_hash(pi->object_hash, oid->name, pi 2204 net/ceph/osdmap.c raw_pgid->seed = ceph_str_hash(pi->object_hash, buf, total); pi 2218 net/ceph/osdmap.c struct ceph_pg_pool_info *pi; pi 2220 net/ceph/osdmap.c pi = ceph_pg_pool_by_id(osdmap, oloc->pool); pi 2221 net/ceph/osdmap.c if (!pi) pi 2224 net/ceph/osdmap.c __ceph_object_locator_to_pg(pi, oid, oloc, raw_pgid); pi 2232 net/ceph/osdmap.c static void raw_pg_to_pg(struct ceph_pg_pool_info *pi, pi 2237 net/ceph/osdmap.c pgid->seed = ceph_stable_mod(raw_pgid->seed, pi->pg_num, pi 2238 net/ceph/osdmap.c pi->pg_num_mask); pi 2246 net/ceph/osdmap.c static u32 raw_pg_to_pps(struct ceph_pg_pool_info *pi, pi 2249 net/ceph/osdmap.c if (pi->flags & CEPH_POOL_FLAG_HASHPSPOOL) { pi 2253 net/ceph/osdmap.c pi->pgp_num, pi 2254 net/ceph/osdmap.c pi->pgp_num_mask), pi 2263 net/ceph/osdmap.c return ceph_stable_mod(raw_pgid->seed, pi->pgp_num, pi 2264 net/ceph/osdmap.c pi->pgp_num_mask) + pi 2302 net/ceph/osdmap.c struct ceph_pg_pool_info *pi, pi 2307 net/ceph/osdmap.c if (ceph_can_shift_osds(pi)) { pi 2336 net/ceph/osdmap.c struct ceph_pg_pool_info *pi, pi 2341 net/ceph/osdmap.c u32 pps = raw_pg_to_pps(pi, raw_pgid); pi 2349 net/ceph/osdmap.c ruleno = crush_find_rule(osdmap->crush, pi->crush_ruleset, pi->type, pi 2350 net/ceph/osdmap.c pi->size); pi 2353 net/ceph/osdmap.c pi->id, pi->crush_ruleset, pi->type, pi->size); pi 2357 net/ceph/osdmap.c if (pi->size > ARRAY_SIZE(raw->osds)) { pi 2359 net/ceph/osdmap.c pi->id, pi->crush_ruleset, pi->type, pi->size, pi 2364 net/ceph/osdmap.c len = do_crush(osdmap, ruleno, pps, raw->osds, pi->size, pi 2365 net/ceph/osdmap.c osdmap->osd_weight, osdmap->max_osd, pi->id); pi 2368 net/ceph/osdmap.c len, ruleno, pi->id, pi->crush_ruleset, pi->type, pi 2369 net/ceph/osdmap.c pi->size); pi 2374 net/ceph/osdmap.c remove_nonexistent_osds(osdmap, pi, raw); pi 2446 net/ceph/osdmap.c struct ceph_pg_pool_info *pi, pi 2454 net/ceph/osdmap.c if (ceph_can_shift_osds(pi)) { pi 2481 net/ceph/osdmap.c struct ceph_pg_pool_info *pi, pi 2540 net/ceph/osdmap.c if (ceph_can_shift_osds(pi) && pos > 0) { pi 2557 net/ceph/osdmap.c struct ceph_pg_pool_info *pi, pi 2571 net/ceph/osdmap.c if (ceph_can_shift_osds(pi)) pi 2603 net/ceph/osdmap.c struct ceph_pg_pool_info *pi, pi 2611 net/ceph/osdmap.c WARN_ON(pi->id != raw_pgid->pool); pi 2612 net/ceph/osdmap.c raw_pg_to_pg(pi, raw_pgid, &pgid); pi 2614 net/ceph/osdmap.c pg_to_raw_osds(osdmap, pi, raw_pgid, up, &pps); pi 2616 net/ceph/osdmap.c raw_to_up_osds(osdmap, pi, up); pi 2617 net/ceph/osdmap.c apply_primary_affinity(osdmap, pi, pps, up); pi 2618 net/ceph/osdmap.c get_temp_osds(osdmap, pi, &pgid, acting); pi 2629 net/ceph/osdmap.c struct ceph_pg_pool_info *pi, pi 2637 net/ceph/osdmap.c WARN_ON(pi->id != raw_pgid->pool); pi 2638 net/ceph/osdmap.c raw_pg_to_pg(pi, raw_pgid, &pgid); pi 2640 net/ceph/osdmap.c if (ceph_can_shift_osds(pi)) { pi 2646 net/ceph/osdmap.c ceph_pg_to_up_acting_osds(osdmap, pi, &pgid, &up, &acting); pi 2664 net/ceph/osdmap.c struct ceph_pg_pool_info *pi; pi 2667 net/ceph/osdmap.c pi = ceph_pg_pool_by_id(osdmap, raw_pgid->pool); pi 2668 net/ceph/osdmap.c if (!pi) pi 2671 net/ceph/osdmap.c ceph_pg_to_up_acting_osds(osdmap, pi, raw_pgid, &up, &acting); pi 3510 net/xfrm/xfrm_policy.c int pi; pi 3614 net/xfrm/xfrm_policy.c for (pi = 0; pi < npols; pi++) { pi 3615 net/xfrm/xfrm_policy.c if (pols[pi] != pol && pi 3616 net/xfrm/xfrm_policy.c pols[pi]->action != XFRM_POLICY_ALLOW) { pi 3620 net/xfrm/xfrm_policy.c if (ti + pols[pi]->xfrm_nr >= XFRM_MAX_DEPTH) { pi 3624 net/xfrm/xfrm_policy.c for (i = 0; i < pols[pi]->xfrm_nr; i++) pi 3625 net/xfrm/xfrm_policy.c tpp[ti++] = &pols[pi]->xfrm_vec[i]; pi 2365 net/xfrm/xfrm_user.c struct xfrm_userpolicy_id *pi = nlmsg_data(nlh); pi 2397 net/xfrm/xfrm_user.c err = xfrm_migrate(&pi->sel, pi->dir, type, m, n, kmp, net, encap); pi 19 sound/aoa/soundbus/i2sbus/pcm.c struct pcm_info **pi, struct pcm_info **other) pi 22 sound/aoa/soundbus/i2sbus/pcm.c if (pi) pi 23 sound/aoa/soundbus/i2sbus/pcm.c *pi = &i2sdev->in; pi 27 sound/aoa/soundbus/i2sbus/pcm.c if (pi) pi 28 sound/aoa/soundbus/i2sbus/pcm.c *pi = &i2sdev->out; pi 74 sound/aoa/soundbus/i2sbus/pcm.c struct pcm_info *pi, *other; pi 88 sound/aoa/soundbus/i2sbus/pcm.c get_pcm_info(i2sdev, in, &pi, &other); pi 90 sound/aoa/soundbus/i2sbus/pcm.c hw = &pi->substream->runtime->hw; pi 93 sound/aoa/soundbus/i2sbus/pcm.c if (pi->active) { pi 195 sound/aoa/soundbus/i2sbus/pcm.c err = snd_pcm_hw_constraint_integer(pi->substream->runtime, pi 203 sound/aoa/soundbus/i2sbus/pcm.c err = cii->codec->open(cii, pi->substream); pi 212 sound/aoa/soundbus/i2sbus/pcm.c pi->substream); pi 232 sound/aoa/soundbus/i2sbus/pcm.c struct pcm_info *pi; pi 237 sound/aoa/soundbus/i2sbus/pcm.c get_pcm_info(i2sdev, in, &pi, NULL); pi 241 sound/aoa/soundbus/i2sbus/pcm.c tmp = cii->codec->close(cii, pi->substream); pi 247 sound/aoa/soundbus/i2sbus/pcm.c pi->substream = NULL; pi 248 sound/aoa/soundbus/i2sbus/pcm.c pi->active = 0; pi 254 sound/aoa/soundbus/i2sbus/pcm.c struct pcm_info *pi) pi 261 sound/aoa/soundbus/i2sbus/pcm.c if (pi->dbdma_ring.stopping) { pi 263 sound/aoa/soundbus/i2sbus/pcm.c pi->stop_completion = &done; pi 267 sound/aoa/soundbus/i2sbus/pcm.c pi->stop_completion = NULL; pi 272 sound/aoa/soundbus/i2sbus/pcm.c out_le32(&pi->dbdma->control, (RUN | PAUSE | 1) << 16); pi 273 sound/aoa/soundbus/i2sbus/pcm.c pi->dbdma_ring.stopping = 0; pi 275 sound/aoa/soundbus/i2sbus/pcm.c while (in_le32(&pi->dbdma->status) & ACTIVE) { pi 288 sound/aoa/soundbus/i2sbus/pcm.c struct pcm_info *pi; pi 290 sound/aoa/soundbus/i2sbus/pcm.c get_pcm_info(i2sdev, 0, &pi, NULL); pi 291 sound/aoa/soundbus/i2sbus/pcm.c i2sbus_wait_for_stop(i2sdev, pi); pi 292 sound/aoa/soundbus/i2sbus/pcm.c get_pcm_info(i2sdev, 1, &pi, NULL); pi 293 sound/aoa/soundbus/i2sbus/pcm.c i2sbus_wait_for_stop(i2sdev, pi); pi 306 sound/aoa/soundbus/i2sbus/pcm.c struct pcm_info *pi; pi 308 sound/aoa/soundbus/i2sbus/pcm.c get_pcm_info(i2sdev, in, &pi, NULL); pi 309 sound/aoa/soundbus/i2sbus/pcm.c if (pi->dbdma_ring.stopping) pi 310 sound/aoa/soundbus/i2sbus/pcm.c i2sbus_wait_for_stop(i2sdev, pi); pi 339 sound/aoa/soundbus/i2sbus/pcm.c struct pcm_info *pi, *other; pi 346 sound/aoa/soundbus/i2sbus/pcm.c get_pcm_info(i2sdev, in, &pi, &other); pi 348 sound/aoa/soundbus/i2sbus/pcm.c if (pi->dbdma_ring.running) { pi 352 sound/aoa/soundbus/i2sbus/pcm.c if (pi->dbdma_ring.stopping) pi 353 sound/aoa/soundbus/i2sbus/pcm.c i2sbus_wait_for_stop(i2sdev, pi); pi 355 sound/aoa/soundbus/i2sbus/pcm.c if (!pi->substream || !pi->substream->runtime) { pi 360 sound/aoa/soundbus/i2sbus/pcm.c runtime = pi->substream->runtime; pi 361 sound/aoa/soundbus/i2sbus/pcm.c pi->active = 1; pi 372 sound/aoa/soundbus/i2sbus/pcm.c periodsize = snd_pcm_lib_period_bytes(pi->substream); pi 373 sound/aoa/soundbus/i2sbus/pcm.c nperiods = pi->substream->runtime->periods; pi 374 sound/aoa/soundbus/i2sbus/pcm.c pi->current_period = 0; pi 377 sound/aoa/soundbus/i2sbus/pcm.c command = pi->dbdma_ring.cmds; pi 394 sound/aoa/soundbus/i2sbus/pcm.c stopaddr = pi->dbdma_ring.bus_cmd_start + pi 405 sound/aoa/soundbus/i2sbus/pcm.c command->cmd_dep = cpu_to_le32(pi->dbdma_ring.bus_cmd_start); pi 467 sound/aoa/soundbus/i2sbus/pcm.c err = cii->codec->prepare(cii, &bi, pi->substream); pi 541 sound/aoa/soundbus/i2sbus/pcm.c struct pcm_info *pi; pi 547 sound/aoa/soundbus/i2sbus/pcm.c get_pcm_info(i2sdev, in, &pi, NULL); pi 552 sound/aoa/soundbus/i2sbus/pcm.c if (pi->dbdma_ring.running) { pi 558 sound/aoa/soundbus/i2sbus/pcm.c cii->codec->start(cii, pi->substream); pi 559 sound/aoa/soundbus/i2sbus/pcm.c pi->dbdma_ring.running = 1; pi 561 sound/aoa/soundbus/i2sbus/pcm.c if (pi->dbdma_ring.stopping) { pi 563 sound/aoa/soundbus/i2sbus/pcm.c out_le32(&pi->dbdma->control, 1 << 16); pi 564 sound/aoa/soundbus/i2sbus/pcm.c if (in_le32(&pi->dbdma->status) & ACTIVE) { pi 567 sound/aoa/soundbus/i2sbus/pcm.c if (in_le32(&pi->dbdma->status) & ACTIVE) { pi 568 sound/aoa/soundbus/i2sbus/pcm.c pi->dbdma_ring.stopping = 0; pi 575 sound/aoa/soundbus/i2sbus/pcm.c out_le32(&pi->dbdma->control, (RUN | PAUSE | 1) << 16); pi 578 sound/aoa/soundbus/i2sbus/pcm.c out_le32(&pi->dbdma->br_sel, (1 << 16) | 1); pi 581 sound/aoa/soundbus/i2sbus/pcm.c out_le32(&pi->dbdma->cmdptr, pi->dbdma_ring.bus_cmd_start); pi 584 sound/aoa/soundbus/i2sbus/pcm.c pi->current_period = 0; pi 585 sound/aoa/soundbus/i2sbus/pcm.c pi->frame_count = in_le32(&i2sdev->intfregs->frame_count); pi 588 sound/aoa/soundbus/i2sbus/pcm.c out_le32(&pi->dbdma->control, (RUN << 16) | RUN); pi 595 sound/aoa/soundbus/i2sbus/pcm.c if (!pi->dbdma_ring.running) { pi 599 sound/aoa/soundbus/i2sbus/pcm.c pi->dbdma_ring.running = 0; pi 602 sound/aoa/soundbus/i2sbus/pcm.c out_le32(&pi->dbdma->control, (1 << 16) | 1); pi 603 sound/aoa/soundbus/i2sbus/pcm.c pi->dbdma_ring.stopping = 1; pi 607 sound/aoa/soundbus/i2sbus/pcm.c cii->codec->stop(cii, pi->substream); pi 621 sound/aoa/soundbus/i2sbus/pcm.c struct pcm_info *pi; pi 624 sound/aoa/soundbus/i2sbus/pcm.c get_pcm_info(i2sdev, in, &pi, NULL); pi 627 sound/aoa/soundbus/i2sbus/pcm.c fc = fc - pi->frame_count; pi 629 sound/aoa/soundbus/i2sbus/pcm.c if (fc >= pi->substream->runtime->buffer_size) pi 630 sound/aoa/soundbus/i2sbus/pcm.c fc %= pi->substream->runtime->buffer_size; pi 636 sound/aoa/soundbus/i2sbus/pcm.c struct pcm_info *pi; pi 644 sound/aoa/soundbus/i2sbus/pcm.c get_pcm_info(i2sdev, in, &pi, NULL); pi 645 sound/aoa/soundbus/i2sbus/pcm.c if (!pi->dbdma_ring.running && !pi->dbdma_ring.stopping) pi 648 sound/aoa/soundbus/i2sbus/pcm.c i = pi->current_period; pi 649 sound/aoa/soundbus/i2sbus/pcm.c runtime = pi->substream->runtime; pi 650 sound/aoa/soundbus/i2sbus/pcm.c while (pi->dbdma_ring.cmds[i].xfer_status) { pi 651 sound/aoa/soundbus/i2sbus/pcm.c if (le16_to_cpu(pi->dbdma_ring.cmds[i].xfer_status) & BT) pi 658 sound/aoa/soundbus/i2sbus/pcm.c pi->dbdma_ring.cmds[i].xfer_status = 0; pi 662 sound/aoa/soundbus/i2sbus/pcm.c pi->frame_count += runtime->buffer_size; pi 664 sound/aoa/soundbus/i2sbus/pcm.c pi->current_period = i; pi 672 sound/aoa/soundbus/i2sbus/pcm.c if (fc < pi->frame_count + nframes) pi 673 sound/aoa/soundbus/i2sbus/pcm.c pi->frame_count = fc - nframes; pi 679 sound/aoa/soundbus/i2sbus/pcm.c status = in_le32(&pi->dbdma->status); pi 691 sound/aoa/soundbus/i2sbus/pcm.c out_le32(&pi->dbdma->control, (RUN | PAUSE | 1) << 16); pi 693 sound/aoa/soundbus/i2sbus/pcm.c pi->dbdma_ring.stopping = 0; pi 694 sound/aoa/soundbus/i2sbus/pcm.c if (pi->stop_completion) pi 695 sound/aoa/soundbus/i2sbus/pcm.c complete(pi->stop_completion); pi 698 sound/aoa/soundbus/i2sbus/pcm.c if (!pi->dbdma_ring.running) pi 702 sound/aoa/soundbus/i2sbus/pcm.c snd_pcm_period_elapsed(pi->substream); pi 589 sound/pci/hda/patch_hdmi.c int pi, bi; pi 599 sound/pci/hda/patch_hdmi.c hdmi_get_dip_index(codec, pin_nid, &pi, &bi); pi 600 sound/pci/hda/patch_hdmi.c if (pi != i) pi 602 sound/pci/hda/patch_hdmi.c bi, pi, i); pi 72 sound/usb/line6/playback.c short *pi = (short *)line6pcm->prev_fbuf; pi 76 sound/usb/line6/playback.c po[0] = pi[0]; pi 78 sound/usb/line6/playback.c pi += 2; pi 83 sound/usb/line6/playback.c unsigned char *pi = line6pcm->prev_fbuf; pi 88 sound/usb/line6/playback.c po[j] = pi[j]; pi 93 sound/usb/line6/playback.c pi += bytes_per_frame; pi 115 sound/usb/line6/playback.c __le16 *pi, *po, *buf_end; pi 117 sound/usb/line6/playback.c pi = (__le16 *)signal; pi 121 sound/usb/line6/playback.c for (; po < buf_end; ++pi, ++po) { pi 123 sound/usb/line6/playback.c short piv = le16_to_cpu(*pi); pi 8 tools/build/feature/test-libunwind-aarch64.c unw_proc_info_t *pi, pi 8 tools/build/feature/test-libunwind-arm.c unw_proc_info_t *pi, pi 8 tools/build/feature/test-libunwind-x86.c unw_proc_info_t *pi, pi 8 tools/build/feature/test-libunwind-x86_64.c unw_proc_info_t *pi, pi 8 tools/build/feature/test-libunwind.c unw_proc_info_t *pi, pi 687 tools/firewire/nosy-dump.c const struct packet_info *pi; pi 691 tools/firewire/nosy-dump.c pi = &packet_info[packet->common.tcode]; pi 693 tools/firewire/nosy-dump.c for (i = 0; i < pi->field_count; i++) { pi 694 tools/firewire/nosy-dump.c const struct packet_field *f = &pi->fields[i]; pi 738 tools/firewire/nosy-dump.c if (i < pi->field_count - 1) pi 446 tools/lib/bpf/libbpf.c size_t pi, si; pi 448 tools/lib/bpf/libbpf.c for (pi = 0; pi < obj->nr_programs; pi++) { pi 451 tools/lib/bpf/libbpf.c prog = &obj->programs[pi]; pi 48 tools/perf/util/unwind-libunwind-local.c unw_proc_info_t *pi, pi 374 tools/perf/util/unwind-libunwind-local.c find_proc_info(unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi, pi 400 tools/perf/util/unwind-libunwind-local.c ret = dwarf_search_unwind_table(as, ip, &di, pi, pi 421 tools/perf/util/unwind-libunwind-local.c return dwarf_search_unwind_table(as, ip, &di, pi, pi 566 tools/perf/util/unwind-libunwind-local.c unw_proc_info_t *pi __maybe_unused, pi 594 tools/testing/selftests/net/nettest.c struct in_pktinfo *pi; pi 596 tools/testing/selftests/net/nettest.c pi = (struct in_pktinfo *)(CMSG_DATA(cm)); pi 597 tools/testing/selftests/net/nettest.c inet_ntop(AF_INET, &pi->ipi_addr, buf, sizeof(buf)); pi 598 tools/testing/selftests/net/nettest.c ifindex = pi->ipi_ifindex; pi 658 tools/testing/selftests/net/nettest.c struct in_pktinfo *pi; pi 663 tools/testing/selftests/net/nettest.c pi = (struct in_pktinfo *)(CMSG_DATA(cm)); pi 664 tools/testing/selftests/net/nettest.c pi->ipi_ifindex = ifindex;