Lines Matching refs:rtw_dev
49 static u8 rtw_pci_read8(struct rtw_dev *rtwdev, u32 addr) in rtw_pci_read8()
56 static u16 rtw_pci_read16(struct rtw_dev *rtwdev, u32 addr) in rtw_pci_read16()
63 static u32 rtw_pci_read32(struct rtw_dev *rtwdev, u32 addr) in rtw_pci_read32()
70 static void rtw_pci_write8(struct rtw_dev *rtwdev, u32 addr, u8 val) in rtw_pci_write8()
77 static void rtw_pci_write16(struct rtw_dev *rtwdev, u32 addr, u16 val) in rtw_pci_write16()
84 static void rtw_pci_write32(struct rtw_dev *rtwdev, u32 addr, u32 val) in rtw_pci_write32()
98 static void rtw_pci_free_tx_ring_skbs(struct rtw_dev *rtwdev, in rtw_pci_free_tx_ring_skbs()
117 static void rtw_pci_free_tx_ring(struct rtw_dev *rtwdev, in rtw_pci_free_tx_ring()
132 static void rtw_pci_free_rx_ring_skbs(struct rtw_dev *rtwdev, in rtw_pci_free_rx_ring_skbs()
153 static void rtw_pci_free_rx_ring(struct rtw_dev *rtwdev, in rtw_pci_free_rx_ring()
165 static void rtw_pci_free_trx_ring(struct rtw_dev *rtwdev) in rtw_pci_free_trx_ring()
183 static int rtw_pci_init_tx_ring(struct rtw_dev *rtwdev, in rtw_pci_init_tx_ring()
214 static int rtw_pci_reset_rx_desc(struct rtw_dev *rtwdev, struct sk_buff *skb, in rtw_pci_reset_rx_desc()
240 static void rtw_pci_sync_rx_desc_device(struct rtw_dev *rtwdev, dma_addr_t dma, in rtw_pci_sync_rx_desc_device()
257 static int rtw_pci_init_rx_ring(struct rtw_dev *rtwdev, in rtw_pci_init_rx_ring()
320 static int rtw_pci_init_trx_ring(struct rtw_dev *rtwdev) in rtw_pci_init_trx_ring()
369 static void rtw_pci_deinit(struct rtw_dev *rtwdev) in rtw_pci_deinit()
374 static int rtw_pci_init(struct rtw_dev *rtwdev) in rtw_pci_init()
400 static void rtw_pci_reset_buf_desc(struct rtw_dev *rtwdev) in rtw_pci_reset_buf_desc()
480 static void rtw_pci_reset_trx_ring(struct rtw_dev *rtwdev) in rtw_pci_reset_trx_ring()
485 static void rtw_pci_enable_interrupt(struct rtw_dev *rtwdev, in rtw_pci_enable_interrupt()
503 static void rtw_pci_disable_interrupt(struct rtw_dev *rtwdev, in rtw_pci_disable_interrupt()
524 static void rtw_pci_dma_reset(struct rtw_dev *rtwdev, struct rtw_pci *rtwpci) in rtw_pci_dma_reset()
532 static int rtw_pci_setup(struct rtw_dev *rtwdev) in rtw_pci_setup()
542 static void rtw_pci_dma_release(struct rtw_dev *rtwdev, struct rtw_pci *rtwpci) in rtw_pci_dma_release()
554 static void rtw_pci_napi_start(struct rtw_dev *rtwdev) in rtw_pci_napi_start()
564 static void rtw_pci_napi_stop(struct rtw_dev *rtwdev) in rtw_pci_napi_stop()
575 static int rtw_pci_start(struct rtw_dev *rtwdev) in rtw_pci_start()
589 static void rtw_pci_stop(struct rtw_dev *rtwdev) in rtw_pci_stop()
607 static void rtw_pci_deep_ps_enter(struct rtw_dev *rtwdev) in rtw_pci_deep_ps_enter()
647 static void rtw_pci_deep_ps_leave(struct rtw_dev *rtwdev) in rtw_pci_deep_ps_leave()
657 static void rtw_pci_deep_ps(struct rtw_dev *rtwdev, bool enter) in rtw_pci_deep_ps()
719 static void rtw_pci_dma_check(struct rtw_dev *rtwdev, in rtw_pci_dma_check()
740 static u32 __pci_get_hw_tx_ring_rp(struct rtw_dev *rtwdev, u8 pci_q) in __pci_get_hw_tx_ring_rp()
748 static void __pci_flush_queue(struct rtw_dev *rtwdev, u8 pci_q, bool drop) in __pci_flush_queue()
772 static void __rtw_pci_flush_queues(struct rtw_dev *rtwdev, u32 pci_queues, in __rtw_pci_flush_queues()
787 static void rtw_pci_flush_queues(struct rtw_dev *rtwdev, u32 queues, bool drop) in rtw_pci_flush_queues()
806 static void rtw_pci_tx_kick_off_queue(struct rtw_dev *rtwdev, u8 queue) in rtw_pci_tx_kick_off_queue()
822 static void rtw_pci_tx_kick_off(struct rtw_dev *rtwdev) in rtw_pci_tx_kick_off()
832 static int rtw_pci_tx_write_data(struct rtw_dev *rtwdev, in rtw_pci_tx_write_data()
901 static int rtw_pci_write_data_rsvd_page(struct rtw_dev *rtwdev, u8 *buf, in rtw_pci_write_data_rsvd_page()
927 static int rtw_pci_write_data_h2c(struct rtw_dev *rtwdev, u8 *buf, u32 size) in rtw_pci_write_data_h2c()
948 static int rtw_pci_tx_write(struct rtw_dev *rtwdev, in rtw_pci_tx_write()
972 static void rtw_pci_tx_isr(struct rtw_dev *rtwdev, struct rtw_pci *rtwpci, in rtw_pci_tx_isr()
1047 static void rtw_pci_rx_isr(struct rtw_dev *rtwdev) in rtw_pci_rx_isr()
1055 static int rtw_pci_get_hw_rx_ring_nr(struct rtw_dev *rtwdev, in rtw_pci_get_hw_rx_ring_nr()
1073 static u32 rtw_pci_rx_napi(struct rtw_dev *rtwdev, struct rtw_pci *rtwpci, in rtw_pci_rx_napi()
1150 static void rtw_pci_irq_recognized(struct rtw_dev *rtwdev, in rtw_pci_irq_recognized()
1176 struct rtw_dev *rtwdev = dev; in rtw_pci_interrupt_handler()
1194 struct rtw_dev *rtwdev = dev; in rtw_pci_interrupt_threadfn()
1231 static int rtw_pci_io_mapping(struct rtw_dev *rtwdev, in rtw_pci_io_mapping()
1256 static void rtw_pci_io_unmapping(struct rtw_dev *rtwdev, in rtw_pci_io_unmapping()
1267 static void rtw_dbi_write8(struct rtw_dev *rtwdev, u16 addr, u8 data) in rtw_dbi_write8()
1291 static int rtw_dbi_read8(struct rtw_dev *rtwdev, u16 addr, u8 *value) in rtw_dbi_read8()
1315 static void rtw_mdio_write(struct rtw_dev *rtwdev, u8 addr, u16 data, bool g1) in rtw_mdio_write()
1341 static void rtw_pci_clkreq_set(struct rtw_dev *rtwdev, bool enable) in rtw_pci_clkreq_set()
1363 static void rtw_pci_clkreq_pad_low(struct rtw_dev *rtwdev, bool enable) in rtw_pci_clkreq_pad_low()
1382 static void rtw_pci_aspm_set(struct rtw_dev *rtwdev, bool enable) in rtw_pci_aspm_set()
1404 static void rtw_pci_link_ps(struct rtw_dev *rtwdev, bool enter) in rtw_pci_link_ps()
1426 static void rtw_pci_link_cfg(struct rtw_dev *rtwdev) in rtw_pci_link_cfg()
1468 static void rtw_pci_interface_cfg(struct rtw_dev *rtwdev) in rtw_pci_interface_cfg()
1483 static void rtw_pci_phy_cfg(struct rtw_dev *rtwdev) in rtw_pci_phy_cfg()
1540 struct rtw_dev *rtwdev = hw->priv; in rtw_pci_suspend()
1552 struct rtw_dev *rtwdev = hw->priv; in rtw_pci_resume()
1564 static int rtw_pci_claim(struct rtw_dev *rtwdev, struct pci_dev *pdev) in rtw_pci_claim()
1581 static void rtw_pci_declaim(struct rtw_dev *rtwdev, struct pci_dev *pdev) in rtw_pci_declaim()
1587 static int rtw_pci_setup_resource(struct rtw_dev *rtwdev, struct pci_dev *pdev) in rtw_pci_setup_resource()
1617 static void rtw_pci_destroy(struct rtw_dev *rtwdev, struct pci_dev *pdev) in rtw_pci_destroy()
1644 static int rtw_pci_request_irq(struct rtw_dev *rtwdev, struct pci_dev *pdev) in rtw_pci_request_irq()
1670 static void rtw_pci_free_irq(struct rtw_dev *rtwdev, struct pci_dev *pdev) in rtw_pci_free_irq()
1679 struct rtw_dev *rtwdev = container_of((void *)rtwpci, struct rtw_dev, in rtw_pci_napi_poll()
1715 static void rtw_pci_napi_init(struct rtw_dev *rtwdev) in rtw_pci_napi_init()
1724 static void rtw_pci_napi_deinit(struct rtw_dev *rtwdev) in rtw_pci_napi_deinit()
1737 struct rtw_dev *rtwdev; in rtw_pci_probe()
1742 drv_data_size = sizeof(struct rtw_dev) + sizeof(struct rtw_pci); in rtw_pci_probe()
1827 struct rtw_dev *rtwdev; in rtw_pci_remove()
1850 struct rtw_dev *rtwdev; in rtw_pci_shutdown()