Lines Matching refs:tp_to_dev
696 static inline struct device *tp_to_dev(struct rtl8169_private *tp) in tp_to_dev() function
1519 device_set_wakeup_enable(tp_to_dev(tp), wolopts); in __rtl8169_set_wol()
2506 rtl_fw->dev = tp_to_dev(tp); in rtl_request_firmware()
2591 if (device_may_wakeup(tp_to_dev(tp))) { in rtl_prepare_power_down()
3883 struct device *d = tp_to_dev(tp); in rtl8169_alloc_rx_data()
3910 dma_unmap_page(tp_to_dev(tp), in rtl8169_rx_clear()
3956 dma_unmap_single(tp_to_dev(tp), le64_to_cpu(desc->addr), tx_skb->len, in rtl8169_unmap_tx_skb()
4051 struct device *d = tp_to_dev(tp); in rtl8169_tx_map()
4493 struct device *d = tp_to_dev(tp); in rtl_rx()
4670 struct device *d = tp_to_dev(tp); in r8169_phylink_handler()
4908 if (!device_may_wakeup(tp_to_dev(tp))) in rtl8169_suspend()
4919 if (!device_may_wakeup(tp_to_dev(tp))) in rtl8169_resume()
5237 rc = eth_platform_get_mac_address(tp_to_dev(tp), mac_addr); in rtl_init_mac_address()
5251 dev_warn(tp_to_dev(tp), "can't read MAC address, setting random one\n"); in rtl_init_mac_address()