Lines Matching refs:nic_active
145 u32 nic_active; in nes_netdev_open() local
180 nic_active = nes_read_indexed(nesdev, NES_IDX_NIC_ACTIVE); in nes_netdev_open()
181 nic_active |= nic_active_bit; in nes_netdev_open()
182 nes_write_indexed(nesdev, NES_IDX_NIC_ACTIVE, nic_active); in nes_netdev_open()
183 nic_active = nes_read_indexed(nesdev, NES_IDX_NIC_MULTICAST_ENABLE); in nes_netdev_open()
184 nic_active |= nic_active_bit; in nes_netdev_open()
185 nes_write_indexed(nesdev, NES_IDX_NIC_MULTICAST_ENABLE, nic_active); in nes_netdev_open()
186 nic_active = nes_read_indexed(nesdev, NES_IDX_NIC_BROADCAST_ON); in nes_netdev_open()
187 nic_active |= nic_active_bit; in nes_netdev_open()
188 nes_write_indexed(nesdev, NES_IDX_NIC_BROADCAST_ON, nic_active); in nes_netdev_open()
281 u32 nic_active; in nes_netdev_stop() local
321 nic_active = nes_read_indexed(nesdev, NES_IDX_NIC_ACTIVE); in nes_netdev_stop()
322 nic_active &= nic_active_mask; in nes_netdev_stop()
323 nes_write_indexed(nesdev, NES_IDX_NIC_ACTIVE, nic_active); in nes_netdev_stop()
324 nic_active = nes_read_indexed(nesdev, NES_IDX_NIC_MULTICAST_ALL); in nes_netdev_stop()
325 nic_active &= nic_active_mask; in nes_netdev_stop()
326 nes_write_indexed(nesdev, NES_IDX_NIC_MULTICAST_ALL, nic_active); in nes_netdev_stop()
327 nic_active = nes_read_indexed(nesdev, NES_IDX_NIC_MULTICAST_ENABLE); in nes_netdev_stop()
328 nic_active &= nic_active_mask; in nes_netdev_stop()
329 nes_write_indexed(nesdev, NES_IDX_NIC_MULTICAST_ENABLE, nic_active); in nes_netdev_stop()
330 nic_active = nes_read_indexed(nesdev, NES_IDX_NIC_UNICAST_ALL); in nes_netdev_stop()
331 nic_active &= nic_active_mask; in nes_netdev_stop()
332 nes_write_indexed(nesdev, NES_IDX_NIC_UNICAST_ALL, nic_active); in nes_netdev_stop()
333 nic_active = nes_read_indexed(nesdev, NES_IDX_NIC_BROADCAST_ON); in nes_netdev_stop()
334 nic_active &= nic_active_mask; in nes_netdev_stop()
335 nes_write_indexed(nesdev, NES_IDX_NIC_BROADCAST_ON, nic_active); in nes_netdev_stop()
841 u32 nic_active; in set_allmulti() local
843 nic_active = nes_read_indexed(nesdev, NES_IDX_NIC_MULTICAST_ALL); in set_allmulti()
844 nic_active |= nic_active_bit; in set_allmulti()
845 nes_write_indexed(nesdev, NES_IDX_NIC_MULTICAST_ALL, nic_active); in set_allmulti()
846 nic_active = nes_read_indexed(nesdev, NES_IDX_NIC_UNICAST_ALL); in set_allmulti()
847 nic_active &= ~nic_active_bit; in set_allmulti()
848 nes_write_indexed(nesdev, NES_IDX_NIC_UNICAST_ALL, nic_active); in set_allmulti()
862 u32 nic_active; in nes_netdev_set_multicast_list() local
879 nic_active = nes_read_indexed(nesdev, NES_IDX_NIC_MULTICAST_ALL); in nes_netdev_set_multicast_list()
880 nic_active |= nic_active_bit; in nes_netdev_set_multicast_list()
881 nes_write_indexed(nesdev, NES_IDX_NIC_MULTICAST_ALL, nic_active); in nes_netdev_set_multicast_list()
882 nic_active = nes_read_indexed(nesdev, NES_IDX_NIC_UNICAST_ALL); in nes_netdev_set_multicast_list()
883 nic_active |= nic_active_bit; in nes_netdev_set_multicast_list()
884 nes_write_indexed(nesdev, NES_IDX_NIC_UNICAST_ALL, nic_active); in nes_netdev_set_multicast_list()
891 nic_active = nes_read_indexed(nesdev, NES_IDX_NIC_MULTICAST_ALL); in nes_netdev_set_multicast_list()
892 nic_active &= ~nic_active_bit; in nes_netdev_set_multicast_list()
893 nes_write_indexed(nesdev, NES_IDX_NIC_MULTICAST_ALL, nic_active); in nes_netdev_set_multicast_list()
894 nic_active = nes_read_indexed(nesdev, NES_IDX_NIC_UNICAST_ALL); in nes_netdev_set_multicast_list()
895 nic_active &= ~nic_active_bit; in nes_netdev_set_multicast_list()
896 nes_write_indexed(nesdev, NES_IDX_NIC_UNICAST_ALL, nic_active); in nes_netdev_set_multicast_list()
988 u32 nic_active; in nes_netdev_change_mtu() local
1011 nic_active = nes_read_indexed(nesdev, in nes_netdev_change_mtu()
1013 nic_active |= mc_all_active; in nes_netdev_change_mtu()
1015 nic_active); in nes_netdev_change_mtu()
1017 nic_active = nes_read_indexed(nesdev, NES_IDX_NIC_UNICAST_ALL); in nes_netdev_change_mtu()
1018 nic_active |= uc_all_active; in nes_netdev_change_mtu()
1019 nes_write_indexed(nesdev, NES_IDX_NIC_UNICAST_ALL, nic_active); in nes_netdev_change_mtu()