Lines Matching refs:shifts
524 const u8 *shifts; in ksz8_r_dyn_mac_table() local
533 shifts = dev->info->shifts; in ksz8_r_dyn_mac_table()
562 cnt <<= shifts[DYNAMIC_MAC_ENTRIES_H]; in ksz8_r_dyn_mac_table()
564 shifts[DYNAMIC_MAC_ENTRIES]; in ksz8_r_dyn_mac_table()
568 shifts[DYNAMIC_MAC_FID]; in ksz8_r_dyn_mac_table()
570 shifts[DYNAMIC_MAC_SRC_PORT]; in ksz8_r_dyn_mac_table()
590 const u8 *shifts; in ksz8_r_sta_mac_table() local
595 shifts = dev->info->shifts; in ksz8_r_sta_mac_table()
619 shifts[STATIC_MAC_FWD_PORTS]; in ksz8_r_sta_mac_table()
631 shifts[STATIC_MAC_FID]; in ksz8_r_sta_mac_table()
642 const u8 *shifts; in ksz8_w_sta_mac_table() local
646 shifts = dev->info->shifts; in ksz8_w_sta_mac_table()
653 data_hi |= (u32)alu->port_forward << shifts[STATIC_MAC_FWD_PORTS]; in ksz8_w_sta_mac_table()
659 data_hi |= (u32)alu->fid << shifts[STATIC_MAC_FID]; in ksz8_w_sta_mac_table()
674 const u8 *shifts; in ksz8_from_vlan() local
677 shifts = dev->info->shifts; in ksz8_from_vlan()
682 shifts[VLAN_TABLE_MEMBERSHIP_S]; in ksz8_from_vlan()
689 const u8 *shifts; in ksz8_to_vlan() local
692 shifts = dev->info->shifts; in ksz8_to_vlan()
696 *vlan |= (u16)member << shifts[VLAN_TABLE_MEMBERSHIP_S]; in ksz8_to_vlan()
703 const u8 *shifts; in ksz8_r_vlan_entries() local
707 shifts = dev->info->shifts; in ksz8_r_vlan_entries()
713 data >>= shifts[VLAN_TABLE]; in ksz8_r_vlan_entries()