• Home
  • Raw
  • Download

Lines Matching refs:flags

56 	unsigned long flags;  in ncsi_report_link()  local
67 spin_lock_irqsave(&nc->lock, flags); in ncsi_report_link()
71 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_report_link()
76 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_report_link()
81 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_report_link()
98 unsigned long flags; in ncsi_channel_monitor() local
101 spin_lock_irqsave(&nc->lock, flags); in ncsi_channel_monitor()
106 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_channel_monitor()
119 spin_lock_irqsave(&nc->lock, flags); in ncsi_channel_monitor()
121 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_channel_monitor()
144 ndp->flags |= NCSI_DEV_RESHUFFLE; in ncsi_channel_monitor()
147 spin_lock_irqsave(&nc->lock, flags); in ncsi_channel_monitor()
151 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_channel_monitor()
153 spin_lock_irqsave(&ndp->lock, flags); in ncsi_channel_monitor()
156 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_channel_monitor()
161 spin_lock_irqsave(&nc->lock, flags); in ncsi_channel_monitor()
163 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_channel_monitor()
169 unsigned long flags; in ncsi_start_channel_monitor() local
171 spin_lock_irqsave(&nc->lock, flags); in ncsi_start_channel_monitor()
175 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_start_channel_monitor()
182 unsigned long flags; in ncsi_stop_channel_monitor() local
184 spin_lock_irqsave(&nc->lock, flags); in ncsi_stop_channel_monitor()
186 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_stop_channel_monitor()
190 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_stop_channel_monitor()
212 unsigned long flags; in ncsi_add_channel() local
230 spin_lock_irqsave(&np->lock, flags); in ncsi_add_channel()
233 spin_unlock_irqrestore(&np->lock, flags); in ncsi_add_channel()
240 spin_unlock_irqrestore(&np->lock, flags); in ncsi_add_channel()
248 unsigned long flags; in ncsi_remove_channel() local
250 spin_lock_irqsave(&nc->lock, flags); in ncsi_remove_channel()
257 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_remove_channel()
261 spin_lock_irqsave(&np->lock, flags); in ncsi_remove_channel()
264 spin_unlock_irqrestore(&np->lock, flags); in ncsi_remove_channel()
286 unsigned long flags; in ncsi_add_package() local
298 spin_lock_irqsave(&ndp->lock, flags); in ncsi_add_package()
301 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_add_package()
308 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_add_package()
317 unsigned long flags; in ncsi_remove_package() local
324 spin_lock_irqsave(&ndp->lock, flags); in ncsi_remove_package()
327 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_remove_package()
358 unsigned long flags; in ncsi_alloc_request() local
361 spin_lock_irqsave(&ndp->lock, flags); in ncsi_alloc_request()
368 nr->flags = req_flags; in ncsi_alloc_request()
380 nr->flags = req_flags; in ncsi_alloc_request()
386 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_alloc_request()
394 unsigned long flags; in ncsi_free_request() local
402 spin_lock_irqsave(&ndp->lock, flags); in ncsi_free_request()
408 driven = !!(nr->flags & NCSI_REQ_FLAG_EVENT_DRIVEN); in ncsi_free_request()
409 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_free_request()
438 unsigned long flags; in ncsi_request_timeout() local
443 spin_lock_irqsave(&ndp->lock, flags); in ncsi_request_timeout()
446 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_request_timeout()
449 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_request_timeout()
451 if (nr->flags == NCSI_REQ_FLAG_NETLINK_DRIVEN) { in ncsi_request_timeout()
473 unsigned long flags; in ncsi_suspend_channel() local
490 if (ndp->flags & NCSI_DEV_HWA) in ncsi_suspend_channel()
503 if (ndp->flags & NCSI_DEV_RESHUFFLE) in ncsi_suspend_channel()
579 spin_lock_irqsave(&nc->lock, flags); in ncsi_suspend_channel()
581 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_suspend_channel()
582 if (ndp->flags & NCSI_DEV_RESET) in ncsi_suspend_channel()
604 unsigned long flags; in clear_one_vid() local
612 spin_lock_irqsave(&nc->lock, flags); in clear_one_vid()
615 spin_unlock_irqrestore(&nc->lock, flags); in clear_one_vid()
622 spin_unlock_irqrestore(&nc->lock, flags); in clear_one_vid()
640 unsigned long flags; in set_one_vid() local
651 spin_lock_irqsave(&nc->lock, flags); in set_one_vid()
668 spin_unlock_irqrestore(&nc->lock, flags); in set_one_vid()
677 spin_unlock_irqrestore(&nc->lock, flags); in set_one_vid()
683 spin_unlock_irqrestore(&nc->lock, flags); in set_one_vid()
995 unsigned long flags; in ncsi_configure_channel() local
1007 if (ndp->flags & NCSI_DEV_HWA) in ncsi_configure_channel()
1162 spin_lock_irqsave(&nc->lock, flags); in ncsi_configure_channel()
1165 if (ndp->flags & NCSI_DEV_RESET) { in ncsi_configure_channel()
1168 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_configure_channel()
1180 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_configure_channel()
1182 spin_lock_irqsave(&ndp->lock, flags); in ncsi_configure_channel()
1184 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_configure_channel()
1199 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_configure_channel()
1202 spin_lock_irqsave(&ndp->lock, flags); in ncsi_configure_channel()
1204 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_configure_channel()
1224 unsigned long flags, cflags; in ncsi_choose_active_channel() local
1228 spin_lock_irqsave(&ndp->lock, flags); in ncsi_choose_active_channel()
1230 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_choose_active_channel()
1271 spin_lock_irqsave(&ndp->lock, flags); in ncsi_choose_active_channel()
1274 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_choose_active_channel()
1295 spin_lock_irqsave(&ndp->lock, flags); in ncsi_choose_active_channel()
1297 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_choose_active_channel()
1326 ndp->flags &= ~NCSI_DEV_HWA; in ncsi_check_hwa()
1333 ndp->flags |= NCSI_DEV_HWA; in ncsi_check_hwa()
1337 ndp->flags &= ~NCSI_DEV_HWA; in ncsi_check_hwa()
1491 ndp->flags |= NCSI_DEV_PROBED; in ncsi_probe_channel()
1502 if (ndp->flags & NCSI_DEV_PROBED) { in ncsi_probe_channel()
1542 unsigned long flags; in ncsi_process_next_channel() local
1544 spin_lock_irqsave(&ndp->lock, flags); in ncsi_process_next_channel()
1548 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_process_next_channel()
1553 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_process_next_channel()
1555 spin_lock_irqsave(&nc->lock, flags); in ncsi_process_next_channel()
1558 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_process_next_channel()
1588 if (ndp->flags & NCSI_DEV_RESHUFFLE) { in ncsi_process_next_channel()
1589 ndp->flags &= ~NCSI_DEV_RESHUFFLE; in ncsi_process_next_channel()
1602 unsigned long flags; in ncsi_kick_channels() local
1607 spin_lock_irqsave(&nc->lock, flags); in ncsi_kick_channels()
1624 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_kick_channels()
1628 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_kick_channels()
1631 spin_lock_irqsave(&nc->lock, flags); in ncsi_kick_channels()
1633 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_kick_channels()
1635 spin_lock_irqsave(&ndp->lock, flags); in ncsi_kick_channels()
1637 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_kick_channels()
1743 unsigned long flags; in ncsi_register_dev() local
1777 spin_lock_irqsave(&ncsi_dev_lock, flags); in ncsi_register_dev()
1779 spin_unlock_irqrestore(&ncsi_dev_lock, flags); in ncsi_register_dev()
1807 if (!(ndp->flags & NCSI_DEV_PROBED)) { in ncsi_start_dev()
1826 unsigned long flags; in ncsi_stop_dev() local
1836 spin_lock_irqsave(&nc->lock, flags); in ncsi_stop_dev()
1839 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_stop_dev()
1856 unsigned long flags; in ncsi_reset_dev() local
1858 spin_lock_irqsave(&ndp->lock, flags); in ncsi_reset_dev()
1860 if (!(ndp->flags & NCSI_DEV_RESET)) { in ncsi_reset_dev()
1866 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_reset_dev()
1874 ndp->flags |= NCSI_DEV_RESET; in ncsi_reset_dev()
1875 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_reset_dev()
1887 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_reset_dev()
1897 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_reset_dev()
1902 spin_lock_irqsave(&nc->lock, flags); in ncsi_reset_dev()
1907 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_reset_dev()
1912 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_reset_dev()
1920 spin_lock_irqsave(&ndp->lock, flags); in ncsi_reset_dev()
1921 ndp->flags &= ~NCSI_DEV_RESET; in ncsi_reset_dev()
1922 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_reset_dev()
1926 spin_lock_irqsave(&ndp->lock, flags); in ncsi_reset_dev()
1927 ndp->flags |= NCSI_DEV_RESET; in ncsi_reset_dev()
1930 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_reset_dev()
1941 unsigned long flags; in ncsi_unregister_dev() local
1948 spin_lock_irqsave(&ncsi_dev_lock, flags); in ncsi_unregister_dev()
1950 spin_unlock_irqrestore(&ncsi_dev_lock, flags); in ncsi_unregister_dev()