Lines Matching full:masks
275 const u32 *masks; in ksz8_r_mib_cnt() local
282 masks = dev->info->masks; in ksz8_r_mib_cnt()
297 if (check & masks[MIB_COUNTER_VALID]) { in ksz8_r_mib_cnt()
299 if (check & masks[MIB_COUNTER_OVERFLOW]) in ksz8_r_mib_cnt()
311 const u32 *masks; in ksz8795_r_mib_pkt() local
318 masks = dev->info->masks; in ksz8795_r_mib_pkt()
335 if (check & masks[MIB_COUNTER_VALID]) { in ksz8795_r_mib_pkt()
344 if (check & masks[MIB_COUNTER_OVERFLOW]) { in ksz8795_r_mib_pkt()
350 if (check & masks[MIB_COUNTER_OVERFLOW]) in ksz8795_r_mib_pkt()
497 const u32 *masks; in ksz8_valid_dyn_entry() local
501 masks = dev->info->masks; in ksz8_valid_dyn_entry()
510 } while ((*data & masks[DYNAMIC_MAC_TABLE_NOT_READY]) && timeout); in ksz8_valid_dyn_entry()
513 if (*data & masks[DYNAMIC_MAC_TABLE_NOT_READY]) in ksz8_valid_dyn_entry()
525 const u32 *masks; in ksz8_r_dyn_mac_table() local
534 masks = dev->info->masks; in ksz8_r_dyn_mac_table()
548 if (data & masks[DYNAMIC_MAC_TABLE_MAC_EMPTY]) { in ksz8_r_dyn_mac_table()
561 cnt = data & masks[DYNAMIC_MAC_TABLE_ENTRIES_H]; in ksz8_r_dyn_mac_table()
563 cnt |= (data_hi & masks[DYNAMIC_MAC_TABLE_ENTRIES]) >> in ksz8_r_dyn_mac_table()
567 *fid = (data_hi & masks[DYNAMIC_MAC_TABLE_FID]) >> in ksz8_r_dyn_mac_table()
569 *src_port = (data_hi & masks[DYNAMIC_MAC_TABLE_SRC_PORT]) >> in ksz8_r_dyn_mac_table()
591 const u32 *masks; in ksz8_r_sta_mac_table() local
596 masks = dev->info->masks; in ksz8_r_sta_mac_table()
605 if (!(data_hi & (masks[STATIC_MAC_TABLE_VALID] | in ksz8_r_sta_mac_table()
606 masks[STATIC_MAC_TABLE_OVERRIDE]))) { in ksz8_r_sta_mac_table()
618 (data_hi & masks[STATIC_MAC_TABLE_FWD_PORTS]) >> in ksz8_r_sta_mac_table()
620 alu->is_override = (data_hi & masks[STATIC_MAC_TABLE_OVERRIDE]) ? 1 : 0; in ksz8_r_sta_mac_table()
629 alu->is_use_fid = (data_hi & masks[STATIC_MAC_TABLE_USE_FID]) ? 1 : 0; in ksz8_r_sta_mac_table()
630 alu->fid = (data_hi & masks[STATIC_MAC_TABLE_FID]) >> in ksz8_r_sta_mac_table()
643 const u32 *masks; in ksz8_w_sta_mac_table() local
647 masks = dev->info->masks; in ksz8_w_sta_mac_table()
656 data_hi |= masks[STATIC_MAC_TABLE_OVERRIDE]; in ksz8_w_sta_mac_table()
658 data_hi |= masks[STATIC_MAC_TABLE_USE_FID]; in ksz8_w_sta_mac_table()
662 data_hi |= masks[STATIC_MAC_TABLE_VALID]; in ksz8_w_sta_mac_table()
664 data_hi &= ~masks[STATIC_MAC_TABLE_OVERRIDE]; in ksz8_w_sta_mac_table()
675 const u32 *masks; in ksz8_from_vlan() local
678 masks = dev->info->masks; in ksz8_from_vlan()
680 *fid = vlan & masks[VLAN_TABLE_FID]; in ksz8_from_vlan()
681 *member = (vlan & masks[VLAN_TABLE_MEMBERSHIP]) >> in ksz8_from_vlan()
683 *valid = !!(vlan & masks[VLAN_TABLE_VALID]); in ksz8_from_vlan()
690 const u32 *masks; in ksz8_to_vlan() local
693 masks = dev->info->masks; in ksz8_to_vlan()
698 *vlan |= masks[VLAN_TABLE_VALID]; in ksz8_to_vlan()
1627 const u32 *masks; in ksz8_port_setup() local
1631 masks = dev->info->masks; in ksz8_port_setup()
1648 masks[PORT_802_1P_REMAPPING], false); in ksz8_port_setup()
1684 const u32 *masks; in ksz8_config_cpu_port() local
1689 masks = dev->info->masks; in ksz8_config_cpu_port()
1692 ksz_cfg(dev, regs[S_TAIL_TAG_CTRL], masks[SW_TAIL_TAG_ENABLE], true); in ksz8_config_cpu_port()