• Home
  • Raw
  • Download

Lines Matching refs:flags

54 	unsigned long flags;  in ncsi_report_link()  local
65 spin_lock_irqsave(&nc->lock, flags); in ncsi_report_link()
69 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_report_link()
74 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_report_link()
79 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_report_link()
96 unsigned long flags; in ncsi_channel_monitor() local
99 spin_lock_irqsave(&nc->lock, flags); in ncsi_channel_monitor()
104 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_channel_monitor()
135 ndp->flags |= NCSI_DEV_RESHUFFLE; in ncsi_channel_monitor()
140 spin_lock_irqsave(&nc->lock, flags); in ncsi_channel_monitor()
143 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_channel_monitor()
145 spin_lock_irqsave(&ndp->lock, flags); in ncsi_channel_monitor()
148 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_channel_monitor()
153 spin_lock_irqsave(&nc->lock, flags); in ncsi_channel_monitor()
155 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_channel_monitor()
161 unsigned long flags; in ncsi_start_channel_monitor() local
163 spin_lock_irqsave(&nc->lock, flags); in ncsi_start_channel_monitor()
167 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_start_channel_monitor()
174 unsigned long flags; in ncsi_stop_channel_monitor() local
176 spin_lock_irqsave(&nc->lock, flags); in ncsi_stop_channel_monitor()
178 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_stop_channel_monitor()
182 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_stop_channel_monitor()
204 unsigned long flags; in ncsi_add_channel() local
222 spin_lock_irqsave(&np->lock, flags); in ncsi_add_channel()
225 spin_unlock_irqrestore(&np->lock, flags); in ncsi_add_channel()
232 spin_unlock_irqrestore(&np->lock, flags); in ncsi_add_channel()
240 unsigned long flags; in ncsi_remove_channel() local
242 spin_lock_irqsave(&nc->lock, flags); in ncsi_remove_channel()
249 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_remove_channel()
253 spin_lock_irqsave(&np->lock, flags); in ncsi_remove_channel()
256 spin_unlock_irqrestore(&np->lock, flags); in ncsi_remove_channel()
278 unsigned long flags; in ncsi_add_package() local
290 spin_lock_irqsave(&ndp->lock, flags); in ncsi_add_package()
293 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_add_package()
300 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_add_package()
309 unsigned long flags; in ncsi_remove_package() local
316 spin_lock_irqsave(&ndp->lock, flags); in ncsi_remove_package()
319 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_remove_package()
350 unsigned long flags; in ncsi_alloc_request() local
353 spin_lock_irqsave(&ndp->lock, flags); in ncsi_alloc_request()
360 nr->flags = req_flags; in ncsi_alloc_request()
372 nr->flags = req_flags; in ncsi_alloc_request()
378 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_alloc_request()
386 unsigned long flags; in ncsi_free_request() local
394 spin_lock_irqsave(&ndp->lock, flags); in ncsi_free_request()
400 driven = !!(nr->flags & NCSI_REQ_FLAG_EVENT_DRIVEN); in ncsi_free_request()
401 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_free_request()
430 unsigned long flags; in ncsi_request_timeout() local
435 spin_lock_irqsave(&ndp->lock, flags); in ncsi_request_timeout()
438 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_request_timeout()
441 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_request_timeout()
443 if (nr->flags == NCSI_REQ_FLAG_NETLINK_DRIVEN) { in ncsi_request_timeout()
465 unsigned long flags; in ncsi_suspend_channel() local
482 if (ndp->flags & NCSI_DEV_HWA) in ncsi_suspend_channel()
495 if (ndp->flags & NCSI_DEV_RESHUFFLE) in ncsi_suspend_channel()
569 spin_lock_irqsave(&nc->lock, flags); in ncsi_suspend_channel()
571 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_suspend_channel()
572 if (ndp->flags & NCSI_DEV_RESET) in ncsi_suspend_channel()
594 unsigned long flags; in clear_one_vid() local
602 spin_lock_irqsave(&nc->lock, flags); in clear_one_vid()
605 spin_unlock_irqrestore(&nc->lock, flags); in clear_one_vid()
612 spin_unlock_irqrestore(&nc->lock, flags); in clear_one_vid()
630 unsigned long flags; in set_one_vid() local
641 spin_lock_irqsave(&nc->lock, flags); in set_one_vid()
658 spin_unlock_irqrestore(&nc->lock, flags); in set_one_vid()
667 spin_unlock_irqrestore(&nc->lock, flags); in set_one_vid()
673 spin_unlock_irqrestore(&nc->lock, flags); in set_one_vid()
916 unsigned long flags; in ncsi_configure_channel() local
928 if (ndp->flags & NCSI_DEV_HWA) in ncsi_configure_channel()
1085 spin_lock_irqsave(&nc->lock, flags); in ncsi_configure_channel()
1088 if (ndp->flags & NCSI_DEV_RESET) { in ncsi_configure_channel()
1091 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_configure_channel()
1103 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_configure_channel()
1105 spin_lock_irqsave(&ndp->lock, flags); in ncsi_configure_channel()
1107 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_configure_channel()
1122 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_configure_channel()
1125 spin_lock_irqsave(&ndp->lock, flags); in ncsi_configure_channel()
1127 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_configure_channel()
1147 unsigned long flags, cflags; in ncsi_choose_active_channel() local
1151 spin_lock_irqsave(&ndp->lock, flags); in ncsi_choose_active_channel()
1153 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_choose_active_channel()
1194 spin_lock_irqsave(&ndp->lock, flags); in ncsi_choose_active_channel()
1197 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_choose_active_channel()
1218 spin_lock_irqsave(&ndp->lock, flags); in ncsi_choose_active_channel()
1220 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_choose_active_channel()
1249 ndp->flags &= ~NCSI_DEV_HWA; in ncsi_check_hwa()
1256 ndp->flags |= NCSI_DEV_HWA; in ncsi_check_hwa()
1260 ndp->flags &= ~NCSI_DEV_HWA; in ncsi_check_hwa()
1377 ndp->flags |= NCSI_DEV_PROBED; in ncsi_probe_channel()
1388 if (ndp->flags & NCSI_DEV_PROBED) { in ncsi_probe_channel()
1428 unsigned long flags; in ncsi_process_next_channel() local
1430 spin_lock_irqsave(&ndp->lock, flags); in ncsi_process_next_channel()
1434 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_process_next_channel()
1439 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_process_next_channel()
1441 spin_lock_irqsave(&nc->lock, flags); in ncsi_process_next_channel()
1444 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_process_next_channel()
1474 if (ndp->flags & NCSI_DEV_RESHUFFLE) { in ncsi_process_next_channel()
1475 ndp->flags &= ~NCSI_DEV_RESHUFFLE; in ncsi_process_next_channel()
1488 unsigned long flags; in ncsi_kick_channels() local
1493 spin_lock_irqsave(&nc->lock, flags); in ncsi_kick_channels()
1510 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_kick_channels()
1514 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_kick_channels()
1517 spin_lock_irqsave(&nc->lock, flags); in ncsi_kick_channels()
1519 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_kick_channels()
1521 spin_lock_irqsave(&ndp->lock, flags); in ncsi_kick_channels()
1523 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_kick_channels()
1627 unsigned long flags; in ncsi_register_dev() local
1660 spin_lock_irqsave(&ncsi_dev_lock, flags); in ncsi_register_dev()
1662 spin_unlock_irqrestore(&ncsi_dev_lock, flags); in ncsi_register_dev()
1685 if (!(ndp->flags & NCSI_DEV_PROBED)) { in ncsi_start_dev()
1703 unsigned long flags; in ncsi_stop_dev() local
1713 spin_lock_irqsave(&nc->lock, flags); in ncsi_stop_dev()
1716 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_stop_dev()
1733 unsigned long flags; in ncsi_reset_dev() local
1735 spin_lock_irqsave(&ndp->lock, flags); in ncsi_reset_dev()
1737 if (!(ndp->flags & NCSI_DEV_RESET)) { in ncsi_reset_dev()
1743 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_reset_dev()
1751 ndp->flags |= NCSI_DEV_RESET; in ncsi_reset_dev()
1752 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_reset_dev()
1764 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_reset_dev()
1774 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_reset_dev()
1779 spin_lock_irqsave(&nc->lock, flags); in ncsi_reset_dev()
1784 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_reset_dev()
1789 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_reset_dev()
1797 spin_lock_irqsave(&ndp->lock, flags); in ncsi_reset_dev()
1798 ndp->flags &= ~NCSI_DEV_RESET; in ncsi_reset_dev()
1799 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_reset_dev()
1803 spin_lock_irqsave(&ndp->lock, flags); in ncsi_reset_dev()
1804 ndp->flags |= NCSI_DEV_RESET; in ncsi_reset_dev()
1807 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_reset_dev()
1818 unsigned long flags; in ncsi_unregister_dev() local
1825 spin_lock_irqsave(&ncsi_dev_lock, flags); in ncsi_unregister_dev()
1827 spin_unlock_irqrestore(&ncsi_dev_lock, flags); in ncsi_unregister_dev()