Lines Matching refs:shifts
401 const u8 *shifts; in ksz8_r_dyn_mac_table() local
408 shifts = dev->info->shifts; in ksz8_r_dyn_mac_table()
434 cnt <<= shifts[DYNAMIC_MAC_ENTRIES_H]; in ksz8_r_dyn_mac_table()
436 shifts[DYNAMIC_MAC_ENTRIES]; in ksz8_r_dyn_mac_table()
440 shifts[DYNAMIC_MAC_FID]; in ksz8_r_dyn_mac_table()
442 shifts[DYNAMIC_MAC_SRC_PORT]; in ksz8_r_dyn_mac_table()
444 shifts[DYNAMIC_MAC_TIMESTAMP]; in ksz8_r_dyn_mac_table()
464 const u8 *shifts; in ksz8_r_sta_mac_table() local
468 shifts = dev->info->shifts; in ksz8_r_sta_mac_table()
484 shifts[STATIC_MAC_FWD_PORTS]; in ksz8_r_sta_mac_table()
492 shifts[STATIC_MAC_FID]; in ksz8_r_sta_mac_table()
502 const u8 *shifts; in ksz8_w_sta_mac_table() local
506 shifts = dev->info->shifts; in ksz8_w_sta_mac_table()
513 data_hi |= (u32)alu->port_forward << shifts[STATIC_MAC_FWD_PORTS]; in ksz8_w_sta_mac_table()
519 data_hi |= (u32)alu->fid << shifts[STATIC_MAC_FID]; in ksz8_w_sta_mac_table()
533 const u8 *shifts; in ksz8_from_vlan() local
536 shifts = dev->info->shifts; in ksz8_from_vlan()
541 shifts[VLAN_TABLE_MEMBERSHIP_S]; in ksz8_from_vlan()
548 const u8 *shifts; in ksz8_to_vlan() local
551 shifts = dev->info->shifts; in ksz8_to_vlan()
555 *vlan |= (u16)member << shifts[VLAN_TABLE_MEMBERSHIP_S]; in ksz8_to_vlan()
562 const u8 *shifts; in ksz8_r_vlan_entries() local
566 shifts = dev->info->shifts; in ksz8_r_vlan_entries()
572 data >>= shifts[VLAN_TABLE]; in ksz8_r_vlan_entries()