• 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()
117 spin_lock_irqsave(&nc->lock, flags); in ncsi_channel_monitor()
119 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_channel_monitor()
142 ndp->flags |= NCSI_DEV_RESHUFFLE; in ncsi_channel_monitor()
145 spin_lock_irqsave(&nc->lock, flags); in ncsi_channel_monitor()
149 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_channel_monitor()
151 spin_lock_irqsave(&ndp->lock, flags); in ncsi_channel_monitor()
154 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_channel_monitor()
159 spin_lock_irqsave(&nc->lock, flags); in ncsi_channel_monitor()
161 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_channel_monitor()
167 unsigned long flags; in ncsi_start_channel_monitor() local
169 spin_lock_irqsave(&nc->lock, flags); in ncsi_start_channel_monitor()
173 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_start_channel_monitor()
180 unsigned long flags; in ncsi_stop_channel_monitor() local
182 spin_lock_irqsave(&nc->lock, flags); in ncsi_stop_channel_monitor()
184 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_stop_channel_monitor()
188 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_stop_channel_monitor()
210 unsigned long flags; in ncsi_add_channel() local
228 spin_lock_irqsave(&np->lock, flags); in ncsi_add_channel()
231 spin_unlock_irqrestore(&np->lock, flags); in ncsi_add_channel()
238 spin_unlock_irqrestore(&np->lock, flags); in ncsi_add_channel()
246 unsigned long flags; in ncsi_remove_channel() local
248 spin_lock_irqsave(&nc->lock, flags); in ncsi_remove_channel()
255 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_remove_channel()
259 spin_lock_irqsave(&np->lock, flags); in ncsi_remove_channel()
262 spin_unlock_irqrestore(&np->lock, flags); in ncsi_remove_channel()
284 unsigned long flags; in ncsi_add_package() local
296 spin_lock_irqsave(&ndp->lock, flags); in ncsi_add_package()
299 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_add_package()
306 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_add_package()
315 unsigned long flags; in ncsi_remove_package() local
322 spin_lock_irqsave(&ndp->lock, flags); in ncsi_remove_package()
325 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_remove_package()
356 unsigned long flags; in ncsi_alloc_request() local
359 spin_lock_irqsave(&ndp->lock, flags); in ncsi_alloc_request()
366 nr->flags = req_flags; in ncsi_alloc_request()
378 nr->flags = req_flags; in ncsi_alloc_request()
384 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_alloc_request()
392 unsigned long flags; in ncsi_free_request() local
400 spin_lock_irqsave(&ndp->lock, flags); in ncsi_free_request()
406 driven = !!(nr->flags & NCSI_REQ_FLAG_EVENT_DRIVEN); in ncsi_free_request()
407 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_free_request()
436 unsigned long flags; in ncsi_request_timeout() local
441 spin_lock_irqsave(&ndp->lock, flags); in ncsi_request_timeout()
444 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_request_timeout()
447 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_request_timeout()
449 if (nr->flags == NCSI_REQ_FLAG_NETLINK_DRIVEN) { in ncsi_request_timeout()
471 unsigned long flags; in ncsi_suspend_channel() local
488 if (ndp->flags & NCSI_DEV_HWA) in ncsi_suspend_channel()
501 if (ndp->flags & NCSI_DEV_RESHUFFLE) in ncsi_suspend_channel()
575 spin_lock_irqsave(&nc->lock, flags); in ncsi_suspend_channel()
577 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_suspend_channel()
578 if (ndp->flags & NCSI_DEV_RESET) in ncsi_suspend_channel()
600 unsigned long flags; in clear_one_vid() local
608 spin_lock_irqsave(&nc->lock, flags); in clear_one_vid()
611 spin_unlock_irqrestore(&nc->lock, flags); in clear_one_vid()
618 spin_unlock_irqrestore(&nc->lock, flags); in clear_one_vid()
636 unsigned long flags; in set_one_vid() local
647 spin_lock_irqsave(&nc->lock, flags); in set_one_vid()
664 spin_unlock_irqrestore(&nc->lock, flags); in set_one_vid()
673 spin_unlock_irqrestore(&nc->lock, flags); in set_one_vid()
679 spin_unlock_irqrestore(&nc->lock, flags); in set_one_vid()
919 unsigned long flags; in ncsi_configure_channel() local
931 if (ndp->flags & NCSI_DEV_HWA) in ncsi_configure_channel()
1088 spin_lock_irqsave(&nc->lock, flags); in ncsi_configure_channel()
1091 if (ndp->flags & NCSI_DEV_RESET) { in ncsi_configure_channel()
1094 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_configure_channel()
1106 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_configure_channel()
1108 spin_lock_irqsave(&ndp->lock, flags); in ncsi_configure_channel()
1110 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_configure_channel()
1125 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_configure_channel()
1128 spin_lock_irqsave(&ndp->lock, flags); in ncsi_configure_channel()
1130 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_configure_channel()
1150 unsigned long flags, cflags; in ncsi_choose_active_channel() local
1154 spin_lock_irqsave(&ndp->lock, flags); in ncsi_choose_active_channel()
1156 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_choose_active_channel()
1197 spin_lock_irqsave(&ndp->lock, flags); in ncsi_choose_active_channel()
1200 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_choose_active_channel()
1221 spin_lock_irqsave(&ndp->lock, flags); in ncsi_choose_active_channel()
1223 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_choose_active_channel()
1252 ndp->flags &= ~NCSI_DEV_HWA; in ncsi_check_hwa()
1259 ndp->flags |= NCSI_DEV_HWA; in ncsi_check_hwa()
1263 ndp->flags &= ~NCSI_DEV_HWA; in ncsi_check_hwa()
1380 ndp->flags |= NCSI_DEV_PROBED; in ncsi_probe_channel()
1391 if (ndp->flags & NCSI_DEV_PROBED) { in ncsi_probe_channel()
1431 unsigned long flags; in ncsi_process_next_channel() local
1433 spin_lock_irqsave(&ndp->lock, flags); in ncsi_process_next_channel()
1437 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_process_next_channel()
1442 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_process_next_channel()
1444 spin_lock_irqsave(&nc->lock, flags); in ncsi_process_next_channel()
1447 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_process_next_channel()
1477 if (ndp->flags & NCSI_DEV_RESHUFFLE) { in ncsi_process_next_channel()
1478 ndp->flags &= ~NCSI_DEV_RESHUFFLE; in ncsi_process_next_channel()
1491 unsigned long flags; in ncsi_kick_channels() local
1496 spin_lock_irqsave(&nc->lock, flags); in ncsi_kick_channels()
1513 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_kick_channels()
1517 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_kick_channels()
1520 spin_lock_irqsave(&nc->lock, flags); in ncsi_kick_channels()
1522 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_kick_channels()
1524 spin_lock_irqsave(&ndp->lock, flags); in ncsi_kick_channels()
1526 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_kick_channels()
1630 unsigned long flags; in ncsi_register_dev() local
1663 spin_lock_irqsave(&ncsi_dev_lock, flags); in ncsi_register_dev()
1665 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()