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()
1179 spin_lock_irqsave(&nc->lock, flags); in ncsi_configure_channel()
1182 if (ndp->flags & NCSI_DEV_RESET) { in ncsi_configure_channel()
1185 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_configure_channel()
1197 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_configure_channel()
1199 spin_lock_irqsave(&ndp->lock, flags); in ncsi_configure_channel()
1201 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_configure_channel()
1216 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_configure_channel()
1219 spin_lock_irqsave(&ndp->lock, flags); in ncsi_configure_channel()
1221 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_configure_channel()
1241 unsigned long flags, cflags; in ncsi_choose_active_channel() local
1245 spin_lock_irqsave(&ndp->lock, flags); in ncsi_choose_active_channel()
1247 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_choose_active_channel()
1288 spin_lock_irqsave(&ndp->lock, flags); in ncsi_choose_active_channel()
1291 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_choose_active_channel()
1312 spin_lock_irqsave(&ndp->lock, flags); in ncsi_choose_active_channel()
1314 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_choose_active_channel()
1343 ndp->flags &= ~NCSI_DEV_HWA; in ncsi_check_hwa()
1350 ndp->flags |= NCSI_DEV_HWA; in ncsi_check_hwa()
1354 ndp->flags &= ~NCSI_DEV_HWA; in ncsi_check_hwa()
1390 ndp->flags |= NCSI_DEV_PROBED; in ncsi_probe_channel()
1520 if (ndp->flags & NCSI_DEV_PROBED) { in ncsi_probe_channel()
1560 unsigned long flags; in ncsi_process_next_channel() local
1562 spin_lock_irqsave(&ndp->lock, flags); in ncsi_process_next_channel()
1566 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_process_next_channel()
1571 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_process_next_channel()
1573 spin_lock_irqsave(&nc->lock, flags); in ncsi_process_next_channel()
1576 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_process_next_channel()
1606 if (ndp->flags & NCSI_DEV_RESHUFFLE) { in ncsi_process_next_channel()
1607 ndp->flags &= ~NCSI_DEV_RESHUFFLE; in ncsi_process_next_channel()
1620 unsigned long flags; in ncsi_kick_channels() local
1625 spin_lock_irqsave(&nc->lock, flags); in ncsi_kick_channels()
1642 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_kick_channels()
1646 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_kick_channels()
1649 spin_lock_irqsave(&nc->lock, flags); in ncsi_kick_channels()
1651 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_kick_channels()
1653 spin_lock_irqsave(&ndp->lock, flags); in ncsi_kick_channels()
1655 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_kick_channels()
1761 unsigned long flags; in ncsi_register_dev() local
1795 spin_lock_irqsave(&ncsi_dev_lock, flags); in ncsi_register_dev()
1797 spin_unlock_irqrestore(&ncsi_dev_lock, flags); in ncsi_register_dev()
1825 if (!(ndp->flags & NCSI_DEV_PROBED)) { in ncsi_start_dev()
1844 unsigned long flags; in ncsi_stop_dev() local
1854 spin_lock_irqsave(&nc->lock, flags); in ncsi_stop_dev()
1857 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_stop_dev()
1874 unsigned long flags; in ncsi_reset_dev() local
1876 spin_lock_irqsave(&ndp->lock, flags); in ncsi_reset_dev()
1878 if (!(ndp->flags & NCSI_DEV_RESET)) { in ncsi_reset_dev()
1884 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_reset_dev()
1892 ndp->flags |= NCSI_DEV_RESET; in ncsi_reset_dev()
1893 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_reset_dev()
1905 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_reset_dev()
1915 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_reset_dev()
1920 spin_lock_irqsave(&nc->lock, flags); in ncsi_reset_dev()
1925 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_reset_dev()
1930 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_reset_dev()
1938 spin_lock_irqsave(&ndp->lock, flags); in ncsi_reset_dev()
1939 ndp->flags &= ~NCSI_DEV_RESET; in ncsi_reset_dev()
1940 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_reset_dev()
1944 spin_lock_irqsave(&ndp->lock, flags); in ncsi_reset_dev()
1945 ndp->flags |= NCSI_DEV_RESET; in ncsi_reset_dev()
1948 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_reset_dev()
1959 unsigned long flags; in ncsi_unregister_dev() local
1966 spin_lock_irqsave(&ncsi_dev_lock, flags); in ncsi_unregister_dev()
1968 spin_unlock_irqrestore(&ncsi_dev_lock, flags); in ncsi_unregister_dev()