Lines Matching full:tc6
39 struct oa_tc6 *tc6; member
42 static int lan865x_set_hw_macaddr_low_bytes(struct oa_tc6 *tc6, const u8 *mac) in lan865x_set_hw_macaddr_low_bytes() argument
48 return oa_tc6_write_register(tc6, LAN865X_REG_MAC_L_SADDR1, regval); in lan865x_set_hw_macaddr_low_bytes()
58 ret = lan865x_set_hw_macaddr_low_bytes(priv->tc6, mac); in lan865x_set_hw_macaddr()
64 ret = oa_tc6_write_register(priv->tc6, LAN865X_REG_MAC_H_SADDR1, in lan865x_set_hw_macaddr()
72 restore_ret = lan865x_set_hw_macaddr_low_bytes(priv->tc6, in lan865x_set_hw_macaddr()
145 ret = oa_tc6_write_register(priv->tc6, LAN865X_REG_MAC_H_HASH, hash_hi); in lan865x_set_specific_multicast_addr()
152 ret = oa_tc6_write_register(priv->tc6, LAN865X_REG_MAC_L_HASH, hash_lo); in lan865x_set_specific_multicast_addr()
165 ret = oa_tc6_write_register(priv->tc6, LAN865X_REG_MAC_H_HASH, in lan865x_set_all_multicast_addr()
173 ret = oa_tc6_write_register(priv->tc6, LAN865X_REG_MAC_L_HASH, in lan865x_set_all_multicast_addr()
186 ret = oa_tc6_write_register(priv->tc6, LAN865X_REG_MAC_H_HASH, 0); in lan865x_clear_all_multicast_addr()
193 ret = oa_tc6_write_register(priv->tc6, LAN865X_REG_MAC_L_HASH, 0); in lan865x_clear_all_multicast_addr()
234 ret = oa_tc6_write_register(priv->tc6, LAN865X_REG_MAC_NET_CFG, regval); in lan865x_multicast_work_handler()
252 return oa_tc6_start_xmit(priv->tc6, skb); in lan865x_send_packet()
259 if (oa_tc6_read_register(priv->tc6, LAN865X_REG_MAC_NET_CTL, ®val)) in lan865x_hw_disable()
264 if (oa_tc6_write_register(priv->tc6, LAN865X_REG_MAC_NET_CTL, regval)) in lan865x_hw_disable()
290 if (oa_tc6_read_register(priv->tc6, LAN865X_REG_MAC_NET_CTL, ®val)) in lan865x_hw_enable()
295 if (oa_tc6_write_register(priv->tc6, LAN865X_REG_MAC_NET_CTL, regval)) in lan865x_hw_enable()
341 priv->tc6 = oa_tc6_init(spi, netdev); in lan865x_probe()
342 if (!priv->tc6) { in lan865x_probe()
359 ret = oa_tc6_zero_align_receive_frame_enable(priv->tc6); in lan865x_probe()
389 oa_tc6_exit(priv->tc6); in lan865x_probe()
401 oa_tc6_exit(priv->tc6); in lan865x_remove()