Lines Matching refs:tp_to_dev
666 static inline struct device *tp_to_dev(struct rtl8169_private *tp) in tp_to_dev() function
1454 device_set_wakeup_enable(tp_to_dev(tp), wolopts); in __rtl8169_set_wol()
2437 rtl_fw->dev = tp_to_dev(tp); in rtl_request_firmware()
2522 if (device_may_wakeup(tp_to_dev(tp))) { in rtl_prepare_power_down()
3812 struct device *d = tp_to_dev(tp); in rtl8169_alloc_rx_data()
3839 dma_unmap_page(tp_to_dev(tp), in rtl8169_rx_clear()
3885 dma_unmap_single(tp_to_dev(tp), le64_to_cpu(desc->addr), tx_skb->len, in rtl8169_unmap_tx_skb()
3980 struct device *d = tp_to_dev(tp); in rtl8169_tx_map()
4419 struct device *d = tp_to_dev(tp); in rtl_rx()
4594 struct device *d = tp_to_dev(tp); in r8169_phylink_handler()
4822 if (!device_may_wakeup(tp_to_dev(tp))) in rtl8169_suspend()
4833 if (!device_may_wakeup(tp_to_dev(tp))) in rtl8169_resume()
5141 rc = eth_platform_get_mac_address(tp_to_dev(tp), mac_addr); in rtl_init_mac_address()
5155 dev_warn(tp_to_dev(tp), "can't read MAC address, setting random one\n"); in rtl_init_mac_address()