Lines Matching refs:masks
278 const u32 *masks; in ksz8_r_mib_cnt() local
285 masks = ksz8->masks; in ksz8_r_mib_cnt()
300 if (check & masks[MIB_COUNTER_VALID]) { in ksz8_r_mib_cnt()
302 if (check & masks[MIB_COUNTER_OVERFLOW]) in ksz8_r_mib_cnt()
315 const u32 *masks; in ksz8795_r_mib_pkt() local
322 masks = ksz8->masks; in ksz8795_r_mib_pkt()
339 if (check & masks[MIB_COUNTER_VALID]) { in ksz8795_r_mib_pkt()
348 if (check & masks[MIB_COUNTER_OVERFLOW]) { in ksz8795_r_mib_pkt()
354 if (check & masks[MIB_COUNTER_OVERFLOW]) in ksz8795_r_mib_pkt()
486 const u32 *masks; in ksz8_valid_dyn_entry() local
489 masks = ksz8->masks; in ksz8_valid_dyn_entry()
495 } while ((*data & masks[DYNAMIC_MAC_TABLE_NOT_READY]) && timeout); in ksz8_valid_dyn_entry()
498 if (*data & masks[DYNAMIC_MAC_TABLE_NOT_READY]) { in ksz8_valid_dyn_entry()
505 if (*data & masks[DYNAMIC_MAC_TABLE_MAC_EMPTY]) in ksz8_valid_dyn_entry()
518 const u32 *masks; in ksz8_r_dyn_mac_table() local
525 masks = ksz8->masks; in ksz8_r_dyn_mac_table()
549 cnt = data & masks[DYNAMIC_MAC_TABLE_ENTRIES_H]; in ksz8_r_dyn_mac_table()
551 cnt |= (data_hi & masks[DYNAMIC_MAC_TABLE_ENTRIES]) >> in ksz8_r_dyn_mac_table()
555 *fid = (data_hi & masks[DYNAMIC_MAC_TABLE_FID]) >> in ksz8_r_dyn_mac_table()
557 *src_port = (data_hi & masks[DYNAMIC_MAC_TABLE_SRC_PORT]) >> in ksz8_r_dyn_mac_table()
559 *timestamp = (data_hi & masks[DYNAMIC_MAC_TABLE_TIMESTAMP]) >> in ksz8_r_dyn_mac_table()
582 const u32 *masks; in ksz8_r_sta_mac_table() local
586 masks = ksz8->masks; in ksz8_r_sta_mac_table()
591 if (data_hi & (masks[STATIC_MAC_TABLE_VALID] | in ksz8_r_sta_mac_table()
592 masks[STATIC_MAC_TABLE_OVERRIDE])) { in ksz8_r_sta_mac_table()
600 (data_hi & masks[STATIC_MAC_TABLE_FWD_PORTS]) >> in ksz8_r_sta_mac_table()
603 (data_hi & masks[STATIC_MAC_TABLE_OVERRIDE]) ? 1 : 0; in ksz8_r_sta_mac_table()
607 (data_hi & masks[STATIC_MAC_TABLE_USE_FID]) ? 1 : 0; in ksz8_r_sta_mac_table()
608 alu->fid = (data_hi & masks[STATIC_MAC_TABLE_FID]) >> in ksz8_r_sta_mac_table()
621 const u32 *masks; in ksz8_w_sta_mac_table() local
625 masks = ksz8->masks; in ksz8_w_sta_mac_table()
634 data_hi |= masks[STATIC_MAC_TABLE_OVERRIDE]; in ksz8_w_sta_mac_table()
636 data_hi |= masks[STATIC_MAC_TABLE_USE_FID]; in ksz8_w_sta_mac_table()
640 data_hi |= masks[STATIC_MAC_TABLE_VALID]; in ksz8_w_sta_mac_table()
642 data_hi &= ~masks[STATIC_MAC_TABLE_OVERRIDE]; in ksz8_w_sta_mac_table()
653 const u32 *masks; in ksz8_from_vlan() local
656 masks = ksz8->masks; in ksz8_from_vlan()
658 *fid = vlan & masks[VLAN_TABLE_FID]; in ksz8_from_vlan()
659 *member = (vlan & masks[VLAN_TABLE_MEMBERSHIP]) >> in ksz8_from_vlan()
661 *valid = !!(vlan & masks[VLAN_TABLE_VALID]); in ksz8_from_vlan()
669 const u32 *masks; in ksz8_to_vlan() local
672 masks = ksz8->masks; in ksz8_to_vlan()
677 *vlan |= masks[VLAN_TABLE_VALID]; in ksz8_to_vlan()
1310 const u32 *masks; in ksz8_port_setup() local
1313 masks = ksz8->masks; in ksz8_port_setup()
1326 masks[PORT_802_1P_REMAPPING], false); in ksz8_port_setup()
1349 const u32 *masks; in ksz8_config_cpu_port() local
1353 masks = ksz8->masks; in ksz8_config_cpu_port()
1357 ksz_cfg(dev, regs[S_TAIL_TAG_CTRL], masks[SW_TAIL_TAG_ENABLE], true); in ksz8_config_cpu_port()
1685 ksz8->masks = ksz8863_masks; in ksz8_switch_init()
1691 ksz8->masks = ksz8795_masks; in ksz8_switch_init()