rtwpci 46 drivers/net/wireless/realtek/rtw88/pci.c struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; rtwpci 48 drivers/net/wireless/realtek/rtw88/pci.c return readb(rtwpci->mmap + addr); rtwpci 53 drivers/net/wireless/realtek/rtw88/pci.c struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; rtwpci 55 drivers/net/wireless/realtek/rtw88/pci.c return readw(rtwpci->mmap + addr); rtwpci 60 drivers/net/wireless/realtek/rtw88/pci.c struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; rtwpci 62 drivers/net/wireless/realtek/rtw88/pci.c return readl(rtwpci->mmap + addr); rtwpci 67 drivers/net/wireless/realtek/rtw88/pci.c struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; rtwpci 69 drivers/net/wireless/realtek/rtw88/pci.c writeb(val, rtwpci->mmap + addr); rtwpci 74 drivers/net/wireless/realtek/rtw88/pci.c struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; rtwpci 76 drivers/net/wireless/realtek/rtw88/pci.c writew(val, rtwpci->mmap + addr); rtwpci 81 drivers/net/wireless/realtek/rtw88/pci.c struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; rtwpci 83 drivers/net/wireless/realtek/rtw88/pci.c writel(val, rtwpci->mmap + addr); rtwpci 162 drivers/net/wireless/realtek/rtw88/pci.c struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; rtwpci 168 drivers/net/wireless/realtek/rtw88/pci.c tx_ring = &rtwpci->tx_rings[i]; rtwpci 173 drivers/net/wireless/realtek/rtw88/pci.c rx_ring = &rtwpci->rx_rings[i]; rtwpci 312 drivers/net/wireless/realtek/rtw88/pci.c struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; rtwpci 324 drivers/net/wireless/realtek/rtw88/pci.c tx_ring = &rtwpci->tx_rings[i]; rtwpci 334 drivers/net/wireless/realtek/rtw88/pci.c rx_ring = &rtwpci->rx_rings[j]; rtwpci 346 drivers/net/wireless/realtek/rtw88/pci.c tx_ring = &rtwpci->tx_rings[i]; rtwpci 352 drivers/net/wireless/realtek/rtw88/pci.c rx_ring = &rtwpci->rx_rings[j]; rtwpci 366 drivers/net/wireless/realtek/rtw88/pci.c struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; rtwpci 369 drivers/net/wireless/realtek/rtw88/pci.c rtwpci->irq_mask[0] = IMR_HIGHDOK | rtwpci 378 drivers/net/wireless/realtek/rtw88/pci.c rtwpci->irq_mask[1] = IMR_TXFOVW | rtwpci 380 drivers/net/wireless/realtek/rtw88/pci.c rtwpci->irq_mask[3] = IMR_H2CDOK | rtwpci 382 drivers/net/wireless/realtek/rtw88/pci.c spin_lock_init(&rtwpci->irq_lock); rtwpci 390 drivers/net/wireless/realtek/rtw88/pci.c struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; rtwpci 398 drivers/net/wireless/realtek/rtw88/pci.c dma = rtwpci->tx_rings[RTW_TX_QUEUE_BCN].r.dma; rtwpci 401 drivers/net/wireless/realtek/rtw88/pci.c len = rtwpci->tx_rings[RTW_TX_QUEUE_H2C].r.len; rtwpci 402 drivers/net/wireless/realtek/rtw88/pci.c dma = rtwpci->tx_rings[RTW_TX_QUEUE_H2C].r.dma; rtwpci 403 drivers/net/wireless/realtek/rtw88/pci.c rtwpci->tx_rings[RTW_TX_QUEUE_H2C].r.rp = 0; rtwpci 404 drivers/net/wireless/realtek/rtw88/pci.c rtwpci->tx_rings[RTW_TX_QUEUE_H2C].r.wp = 0; rtwpci 408 drivers/net/wireless/realtek/rtw88/pci.c len = rtwpci->tx_rings[RTW_TX_QUEUE_BK].r.len; rtwpci 409 drivers/net/wireless/realtek/rtw88/pci.c dma = rtwpci->tx_rings[RTW_TX_QUEUE_BK].r.dma; rtwpci 410 drivers/net/wireless/realtek/rtw88/pci.c rtwpci->tx_rings[RTW_TX_QUEUE_BK].r.rp = 0; rtwpci 411 drivers/net/wireless/realtek/rtw88/pci.c rtwpci->tx_rings[RTW_TX_QUEUE_BK].r.wp = 0; rtwpci 415 drivers/net/wireless/realtek/rtw88/pci.c len = rtwpci->tx_rings[RTW_TX_QUEUE_BE].r.len; rtwpci 416 drivers/net/wireless/realtek/rtw88/pci.c dma = rtwpci->tx_rings[RTW_TX_QUEUE_BE].r.dma; rtwpci 417 drivers/net/wireless/realtek/rtw88/pci.c rtwpci->tx_rings[RTW_TX_QUEUE_BE].r.rp = 0; rtwpci 418 drivers/net/wireless/realtek/rtw88/pci.c rtwpci->tx_rings[RTW_TX_QUEUE_BE].r.wp = 0; rtwpci 422 drivers/net/wireless/realtek/rtw88/pci.c len = rtwpci->tx_rings[RTW_TX_QUEUE_VO].r.len; rtwpci 423 drivers/net/wireless/realtek/rtw88/pci.c dma = rtwpci->tx_rings[RTW_TX_QUEUE_VO].r.dma; rtwpci 424 drivers/net/wireless/realtek/rtw88/pci.c rtwpci->tx_rings[RTW_TX_QUEUE_VO].r.rp = 0; rtwpci 425 drivers/net/wireless/realtek/rtw88/pci.c rtwpci->tx_rings[RTW_TX_QUEUE_VO].r.wp = 0; rtwpci 429 drivers/net/wireless/realtek/rtw88/pci.c len = rtwpci->tx_rings[RTW_TX_QUEUE_VI].r.len; rtwpci 430 drivers/net/wireless/realtek/rtw88/pci.c dma = rtwpci->tx_rings[RTW_TX_QUEUE_VI].r.dma; rtwpci 431 drivers/net/wireless/realtek/rtw88/pci.c rtwpci->tx_rings[RTW_TX_QUEUE_VI].r.rp = 0; rtwpci 432 drivers/net/wireless/realtek/rtw88/pci.c rtwpci->tx_rings[RTW_TX_QUEUE_VI].r.wp = 0; rtwpci 436 drivers/net/wireless/realtek/rtw88/pci.c len = rtwpci->tx_rings[RTW_TX_QUEUE_MGMT].r.len; rtwpci 437 drivers/net/wireless/realtek/rtw88/pci.c dma = rtwpci->tx_rings[RTW_TX_QUEUE_MGMT].r.dma; rtwpci 438 drivers/net/wireless/realtek/rtw88/pci.c rtwpci->tx_rings[RTW_TX_QUEUE_MGMT].r.rp = 0; rtwpci 439 drivers/net/wireless/realtek/rtw88/pci.c rtwpci->tx_rings[RTW_TX_QUEUE_MGMT].r.wp = 0; rtwpci 443 drivers/net/wireless/realtek/rtw88/pci.c len = rtwpci->tx_rings[RTW_TX_QUEUE_HI0].r.len; rtwpci 444 drivers/net/wireless/realtek/rtw88/pci.c dma = rtwpci->tx_rings[RTW_TX_QUEUE_HI0].r.dma; rtwpci 445 drivers/net/wireless/realtek/rtw88/pci.c rtwpci->tx_rings[RTW_TX_QUEUE_HI0].r.rp = 0; rtwpci 446 drivers/net/wireless/realtek/rtw88/pci.c rtwpci->tx_rings[RTW_TX_QUEUE_HI0].r.wp = 0; rtwpci 450 drivers/net/wireless/realtek/rtw88/pci.c len = rtwpci->rx_rings[RTW_RX_QUEUE_MPDU].r.len; rtwpci 451 drivers/net/wireless/realtek/rtw88/pci.c dma = rtwpci->rx_rings[RTW_RX_QUEUE_MPDU].r.dma; rtwpci 452 drivers/net/wireless/realtek/rtw88/pci.c rtwpci->rx_rings[RTW_RX_QUEUE_MPDU].r.rp = 0; rtwpci 453 drivers/net/wireless/realtek/rtw88/pci.c rtwpci->rx_rings[RTW_RX_QUEUE_MPDU].r.wp = 0; rtwpci 471 drivers/net/wireless/realtek/rtw88/pci.c struct rtw_pci *rtwpci) rtwpci 473 drivers/net/wireless/realtek/rtw88/pci.c rtw_write32(rtwdev, RTK_PCI_HIMR0, rtwpci->irq_mask[0]); rtwpci 474 drivers/net/wireless/realtek/rtw88/pci.c rtw_write32(rtwdev, RTK_PCI_HIMR1, rtwpci->irq_mask[1]); rtwpci 475 drivers/net/wireless/realtek/rtw88/pci.c rtw_write32(rtwdev, RTK_PCI_HIMR3, rtwpci->irq_mask[3]); rtwpci 476 drivers/net/wireless/realtek/rtw88/pci.c rtwpci->irq_enabled = true; rtwpci 480 drivers/net/wireless/realtek/rtw88/pci.c struct rtw_pci *rtwpci) rtwpci 485 drivers/net/wireless/realtek/rtw88/pci.c rtwpci->irq_enabled = false; rtwpci 495 drivers/net/wireless/realtek/rtw88/pci.c static void rtw_pci_dma_reset(struct rtw_dev *rtwdev, struct rtw_pci *rtwpci) rtwpci 500 drivers/net/wireless/realtek/rtw88/pci.c rtwpci->rx_tag = 0; rtwpci 503 drivers/net/wireless/realtek/rtw88/pci.c static void rtw_pci_dma_release(struct rtw_dev *rtwdev, struct rtw_pci *rtwpci) rtwpci 509 drivers/net/wireless/realtek/rtw88/pci.c tx_ring = &rtwpci->tx_rings[queue]; rtwpci 516 drivers/net/wireless/realtek/rtw88/pci.c struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; rtwpci 519 drivers/net/wireless/realtek/rtw88/pci.c rtw_pci_dma_reset(rtwdev, rtwpci); rtwpci 521 drivers/net/wireless/realtek/rtw88/pci.c spin_lock_irqsave(&rtwpci->irq_lock, flags); rtwpci 522 drivers/net/wireless/realtek/rtw88/pci.c rtw_pci_enable_interrupt(rtwdev, rtwpci); rtwpci 523 drivers/net/wireless/realtek/rtw88/pci.c spin_unlock_irqrestore(&rtwpci->irq_lock, flags); rtwpci 530 drivers/net/wireless/realtek/rtw88/pci.c struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; rtwpci 533 drivers/net/wireless/realtek/rtw88/pci.c spin_lock_irqsave(&rtwpci->irq_lock, flags); rtwpci 534 drivers/net/wireless/realtek/rtw88/pci.c rtw_pci_disable_interrupt(rtwdev, rtwpci); rtwpci 535 drivers/net/wireless/realtek/rtw88/pci.c rtw_pci_dma_release(rtwdev, rtwpci); rtwpci 536 drivers/net/wireless/realtek/rtw88/pci.c spin_unlock_irqrestore(&rtwpci->irq_lock, flags); rtwpci 565 drivers/net/wireless/realtek/rtw88/pci.c static void rtw_pci_release_rsvd_page(struct rtw_pci *rtwpci, rtwpci 577 drivers/net/wireless/realtek/rtw88/pci.c pci_unmap_single(rtwpci->pdev, dma, prev->len, rtwpci 586 drivers/net/wireless/realtek/rtw88/pci.c struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; rtwpci 597 drivers/net/wireless/realtek/rtw88/pci.c if (total_pkt_size != rtwpci->rx_tag) rtwpci 600 drivers/net/wireless/realtek/rtw88/pci.c rtwpci->rx_tag = (rtwpci->rx_tag + 1) % RX_TAG_MAX; rtwpci 607 drivers/net/wireless/realtek/rtw88/pci.c struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; rtwpci 620 drivers/net/wireless/realtek/rtw88/pci.c ring = &rtwpci->tx_rings[queue]; rtwpci 625 drivers/net/wireless/realtek/rtw88/pci.c rtw_pci_release_rsvd_page(rtwpci, ring); rtwpci 633 drivers/net/wireless/realtek/rtw88/pci.c dma = pci_map_single(rtwpci->pdev, skb->data, skb->len, rtwpci 635 drivers/net/wireless/realtek/rtw88/pci.c if (pci_dma_mapping_error(rtwpci->pdev, dma)) rtwpci 721 drivers/net/wireless/realtek/rtw88/pci.c struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; rtwpci 730 drivers/net/wireless/realtek/rtw88/pci.c ring = &rtwpci->tx_rings[queue]; rtwpci 739 drivers/net/wireless/realtek/rtw88/pci.c static void rtw_pci_tx_isr(struct rtw_dev *rtwdev, struct rtw_pci *rtwpci, rtwpci 752 drivers/net/wireless/realtek/rtw88/pci.c ring = &rtwpci->tx_rings[hw_queue]; rtwpci 771 drivers/net/wireless/realtek/rtw88/pci.c pci_unmap_single(rtwpci->pdev, tx_data->dma, skb->len, rtwpci 810 drivers/net/wireless/realtek/rtw88/pci.c static void rtw_pci_rx_isr(struct rtw_dev *rtwdev, struct rtw_pci *rtwpci, rtwpci 827 drivers/net/wireless/realtek/rtw88/pci.c ring = &rtwpci->rx_rings[RTW_RX_QUEUE_MPDU]; rtwpci 889 drivers/net/wireless/realtek/rtw88/pci.c struct rtw_pci *rtwpci, u32 *irq_status) rtwpci 894 drivers/net/wireless/realtek/rtw88/pci.c irq_status[0] &= rtwpci->irq_mask[0]; rtwpci 895 drivers/net/wireless/realtek/rtw88/pci.c irq_status[1] &= rtwpci->irq_mask[1]; rtwpci 896 drivers/net/wireless/realtek/rtw88/pci.c irq_status[3] &= rtwpci->irq_mask[3]; rtwpci 905 drivers/net/wireless/realtek/rtw88/pci.c struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; rtwpci 907 drivers/net/wireless/realtek/rtw88/pci.c spin_lock(&rtwpci->irq_lock); rtwpci 908 drivers/net/wireless/realtek/rtw88/pci.c if (!rtwpci->irq_enabled) rtwpci 919 drivers/net/wireless/realtek/rtw88/pci.c rtw_pci_disable_interrupt(rtwdev, rtwpci); rtwpci 921 drivers/net/wireless/realtek/rtw88/pci.c spin_unlock(&rtwpci->irq_lock); rtwpci 929 drivers/net/wireless/realtek/rtw88/pci.c struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; rtwpci 933 drivers/net/wireless/realtek/rtw88/pci.c spin_lock_irqsave(&rtwpci->irq_lock, flags); rtwpci 934 drivers/net/wireless/realtek/rtw88/pci.c rtw_pci_irq_recognized(rtwdev, rtwpci, irq_status); rtwpci 937 drivers/net/wireless/realtek/rtw88/pci.c rtw_pci_tx_isr(rtwdev, rtwpci, RTW_TX_QUEUE_MGMT); rtwpci 939 drivers/net/wireless/realtek/rtw88/pci.c rtw_pci_tx_isr(rtwdev, rtwpci, RTW_TX_QUEUE_HI0); rtwpci 941 drivers/net/wireless/realtek/rtw88/pci.c rtw_pci_tx_isr(rtwdev, rtwpci, RTW_TX_QUEUE_BE); rtwpci 943 drivers/net/wireless/realtek/rtw88/pci.c rtw_pci_tx_isr(rtwdev, rtwpci, RTW_TX_QUEUE_BK); rtwpci 945 drivers/net/wireless/realtek/rtw88/pci.c rtw_pci_tx_isr(rtwdev, rtwpci, RTW_TX_QUEUE_VO); rtwpci 947 drivers/net/wireless/realtek/rtw88/pci.c rtw_pci_tx_isr(rtwdev, rtwpci, RTW_TX_QUEUE_VI); rtwpci 949 drivers/net/wireless/realtek/rtw88/pci.c rtw_pci_tx_isr(rtwdev, rtwpci, RTW_TX_QUEUE_H2C); rtwpci 951 drivers/net/wireless/realtek/rtw88/pci.c rtw_pci_rx_isr(rtwdev, rtwpci, RTW_RX_QUEUE_MPDU); rtwpci 954 drivers/net/wireless/realtek/rtw88/pci.c rtw_pci_enable_interrupt(rtwdev, rtwpci); rtwpci 955 drivers/net/wireless/realtek/rtw88/pci.c spin_unlock_irqrestore(&rtwpci->irq_lock, flags); rtwpci 963 drivers/net/wireless/realtek/rtw88/pci.c struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; rtwpci 975 drivers/net/wireless/realtek/rtw88/pci.c rtwpci->mmap = pci_iomap(pdev, bar_id, len); rtwpci 976 drivers/net/wireless/realtek/rtw88/pci.c if (!rtwpci->mmap) { rtwpci 987 drivers/net/wireless/realtek/rtw88/pci.c struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; rtwpci 989 drivers/net/wireless/realtek/rtw88/pci.c if (rtwpci->mmap) { rtwpci 990 drivers/net/wireless/realtek/rtw88/pci.c pci_iounmap(pdev, rtwpci->mmap); rtwpci 1109 drivers/net/wireless/realtek/rtw88/pci.c struct rtw_pci *rtwpci; rtwpci 1112 drivers/net/wireless/realtek/rtw88/pci.c rtwpci = (struct rtw_pci *)rtwdev->priv; rtwpci 1113 drivers/net/wireless/realtek/rtw88/pci.c rtwpci->pdev = pdev; rtwpci 1274 drivers/net/wireless/realtek/rtw88/pci.c struct rtw_pci *rtwpci; rtwpci 1280 drivers/net/wireless/realtek/rtw88/pci.c rtwpci = (struct rtw_pci *)rtwdev->priv; rtwpci 1283 drivers/net/wireless/realtek/rtw88/pci.c rtw_pci_disable_interrupt(rtwdev, rtwpci);