Lines Matching defs:flags

765 /* rtl8152 flags */
868 unsigned long flags;
1216 set_bit(RTL8152_INACCESSIBLE, &tp->flags);
1222 clear_bit(RTL8152_INACCESSIBLE, &tp->flags);
1234 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
1270 if (!test_bit(PROBED_WITH_NO_ERRORS, &tp->flags)) {
1271 set_bit(PROBE_SHOULD_RETRY, &tp->flags);
1283 if (test_bit(IN_PRE_RESET, &tp->flags))
1353 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
1397 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
1634 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
1650 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
1845 unsigned long flags;
1855 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
1858 if (!test_bit(WORK_ENABLE, &tp->flags))
1875 spin_lock_irqsave(&tp->rx_lock, flags);
1877 spin_unlock_irqrestore(&tp->rx_lock, flags);
1886 spin_lock_irqsave(&tp->rx_lock, flags);
1888 spin_unlock_irqrestore(&tp->rx_lock, flags);
1889 set_bit(RX_EPROTO, &tp->flags);
1913 unsigned long flags;
1935 spin_lock_irqsave(&tp->tx_lock, flags);
1937 spin_unlock_irqrestore(&tp->tx_lock, flags);
1944 if (!test_bit(WORK_ENABLE, &tp->flags))
1947 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
1965 if (!test_bit(WORK_ENABLE, &tp->flags))
1968 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
1997 set_bit(RTL8152_LINK_CHG, &tp->flags);
2003 set_bit(RTL8152_LINK_CHG, &tp->flags);
2046 unsigned long flags;
2066 spin_lock_irqsave(&tp->rx_lock, flags);
2068 spin_unlock_irqrestore(&tp->rx_lock, flags);
2084 unsigned long flags;
2087 spin_lock_irqsave(&tp->rx_lock, flags);
2092 spin_unlock_irqrestore(&tp->rx_lock, flags);
2190 unsigned long flags;
2195 spin_lock_irqsave(&tp->tx_lock, flags);
2203 spin_unlock_irqrestore(&tp->tx_lock, flags);
2494 unsigned long flags;
2496 spin_lock_irqsave(&tp->rx_lock, flags);
2513 spin_unlock_irqrestore(&tp->rx_lock, flags);
2523 unsigned long flags;
2549 clear_bit(RX_EPROTO, &tp->flags);
2551 spin_lock_irqsave(&tp->rx_lock, flags);
2553 spin_unlock_irqrestore(&tp->rx_lock, flags);
2648 spin_lock_irqsave(&tp->rx_lock, flags);
2656 spin_unlock_irqrestore(&tp->rx_lock, flags);
2670 spin_lock_irqsave(&tp->rx_lock, flags);
2672 spin_unlock_irqrestore(&tp->rx_lock, flags);
2703 unsigned long flags;
2709 spin_lock_irqsave(&tp->tx_lock, flags);
2711 spin_unlock_irqrestore(&tp->tx_lock, flags);
2720 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
2723 if (!test_bit(WORK_ENABLE, &tp->flags))
2731 clear_bit(SCHEDULE_TASKLET, &tp->flags);
2763 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags) ||
2764 !test_bit(WORK_ENABLE, &tp->flags) || !netif_carrier_ok(tp->netdev))
2777 unsigned long flags;
2780 spin_lock_irqsave(&tp->rx_lock, flags);
2782 spin_unlock_irqrestore(&tp->rx_lock, flags);
2827 set_bit(RTL8152_SET_RX_MODE, &tp->flags);
2844 if (netdev->flags & IFF_PROMISC) {
2850 } else if ((netdev->flags & IFF_MULTICAST &&
2852 (netdev->flags & IFF_ALLMULTI)) {
2861 if (netdev->flags & IFF_MULTICAST) {
2907 if (test_bit(SELECTIVE_SUSPEND, &tp->flags)) {
2908 set_bit(SCHEDULE_TASKLET, &tp->flags);
2970 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
3026 unsigned long flags;
3031 spin_lock_irqsave(&tp->rx_lock, flags);
3038 spin_unlock_irqrestore(&tp->rx_lock, flags);
3045 spin_lock_irqsave(&tp->rx_lock, flags);
3047 spin_unlock_irqrestore(&tp->rx_lock, flags);
3049 spin_lock_irqsave(&tp->rx_lock, flags);
3051 spin_unlock_irqrestore(&tp->rx_lock, flags);
3057 spin_lock_irqsave(&tp->rx_lock, flags);
3060 spin_unlock_irqrestore(&tp->rx_lock, flags);
3069 unsigned long flags;
3079 spin_lock_irqsave(&tp->rx_lock, flags);
3081 spin_unlock_irqrestore(&tp->rx_lock, flags);
3094 spin_lock_irqsave(&tp->rx_lock, flags);
3097 spin_unlock_irqrestore(&tp->rx_lock, flags);
3165 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
3252 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
3284 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags)) {
3301 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
3310 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
3742 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
3774 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
3816 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
4161 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
5466 set_bit(PHY_RESET, &tp->flags);
5475 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
5491 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
5615 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
5773 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
5843 set_bit(PHY_RESET, &tp->flags);
5895 r8153b_green_en(tp, test_bit(GREEN_ETHERNET, &tp->flags));
5960 set_bit(PHY_RESET, &tp->flags);
6128 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
6186 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
6351 if (test_and_clear_bit(PHY_RESET, &tp->flags))
6372 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
6382 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags)) {
6397 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
6437 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags)) {
6458 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
6482 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags)) {
6519 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
6600 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
6673 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags)) {
6782 clear_bit(RTL8152_SET_RX_MODE, &tp->flags);
6811 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags) || !netif_running(tp->netdev))
6817 if (!test_bit(WORK_ENABLE, &tp->flags))
6825 if (test_and_clear_bit(RTL8152_LINK_CHG, &tp->flags))
6828 if (test_and_clear_bit(RTL8152_SET_RX_MODE, &tp->flags))
6832 if (test_and_clear_bit(SCHEDULE_TASKLET, &tp->flags) &&
6836 if (test_and_clear_bit(RX_EPROTO, &tp->flags) &&
6850 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
6930 set_bit(WORK_ENABLE, &tp->flags);
6970 clear_bit(WORK_ENABLE, &tp->flags);
6977 if (res < 0 || test_bit(RTL8152_INACCESSIBLE, &tp->flags)) {
7010 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
7054 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
7065 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
7194 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
7205 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
7258 set_bit(GREEN_ETHERNET, &tp->flags);
7276 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
7296 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
7340 set_bit(GREEN_ETHERNET, &tp->flags);
7682 rtl_green_en(tp, test_bit(GREEN_ETHERNET, &tp->flags));
7699 set_bit(PHY_RESET, &tp->flags);
8099 rtl_green_en(tp, test_bit(GREEN_ETHERNET, &tp->flags));
8116 set_bit(PHY_RESET, &tp->flags);
8125 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
8146 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
8198 set_bit(GREEN_ETHERNET, &tp->flags);
8221 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
8255 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
8332 set_bit(GREEN_ETHERNET, &tp->flags);
8383 if (!tp || !test_bit(PROBED_WITH_NO_ERRORS, &tp->flags))
8392 clear_bit(WORK_ENABLE, &tp->flags);
8398 set_bit(IN_PRE_RESET, &tp->flags);
8400 clear_bit(IN_PRE_RESET, &tp->flags);
8413 if (!tp || !test_bit(PROBED_WITH_NO_ERRORS, &tp->flags))
8426 set_bit(WORK_ENABLE, &tp->flags);
8475 if (netif_running(netdev) && netdev->flags & IFF_UP) {
8480 set_bit(WORK_ENABLE, &tp->flags);
8493 clear_bit(SELECTIVE_SUSPEND, &tp->flags);
8501 if (netdev->flags & IFF_UP)
8504 clear_bit(SELECTIVE_SUSPEND, &tp->flags);
8516 if (netif_running(netdev) && (netdev->flags & IFF_UP)) {
8519 set_bit(WORK_ENABLE, &tp->flags);
8534 set_bit(SELECTIVE_SUSPEND, &tp->flags);
8537 if (netif_running(netdev) && test_bit(WORK_ENABLE, &tp->flags)) {
8552 clear_bit(SELECTIVE_SUSPEND, &tp->flags);
8559 clear_bit(WORK_ENABLE, &tp->flags);
8590 if (netif_running(netdev) && test_bit(WORK_ENABLE, &tp->flags)) {
8593 clear_bit(WORK_ENABLE, &tp->flags);
8632 if (test_bit(SELECTIVE_SUSPEND, &tp->flags))
8646 clear_bit(SELECTIVE_SUSPEND, &tp->flags);
9083 clear_bit(RTL8152_SET_RX_MODE, &tp->flags);
9130 if (netdev->flags & IFF_UP) {
9170 if (netdev->flags & IFF_UP) {
9289 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
9391 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
9400 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
9408 if (test_bit(RTL8152_INACCESSIBLE, &tp->flags))
9912 if (test_bit(PROBE_SHOULD_RETRY, &tp->flags))
9915 set_bit(PROBED_WITH_NO_ERRORS, &tp->flags);
9931 if (test_bit(PROBE_SHOULD_RETRY, &tp->flags))