Lines Matching refs:mac
384 struct zd_mac *mac = zd_hw_mac(zd_usb_to_hw(urb->context)); in handle_regs_int() local
385 spin_lock(&mac->lock); in handle_regs_int()
386 memcpy(&mac->intr_buffer, urb->transfer_buffer, in handle_regs_int()
388 spin_unlock(&mac->lock); in handle_regs_int()
389 schedule_work(&mac->process_intr); in handle_regs_int()
1130 struct zd_mac *mac = zd_usb_to_mac(usb); in zd_rx_idle_timer_handler() local
1132 if (!test_bit(ZD_DEVICE_RUNNING, &mac->flags)) in zd_rx_idle_timer_handler()
1318 struct zd_mac *mac = zd_usb_to_mac(usb); in zd_usb_init_hw() local
1336 r = zd_mac_init_hw(mac->hw); in zd_usb_init_hw()
1415 struct zd_mac *mac; in disconnect() local
1423 mac = zd_hw_mac(hw); in disconnect()
1424 usb = &mac->chip.usb; in disconnect()
1442 zd_mac_clear(mac); in disconnect()
1449 struct zd_mac *mac = zd_usb_to_mac(usb); in zd_usb_resume() local
1459 set_bit(ZD_DEVICE_RUNNING, &mac->flags); in zd_usb_resume()
1464 if (mac->type != NL80211_IFTYPE_UNSPECIFIED) { in zd_usb_resume()
1465 r = zd_restore_settings(mac); in zd_usb_resume()
1490 struct zd_mac *mac; in pre_reset() local
1496 mac = zd_hw_mac(hw); in pre_reset()
1497 usb = &mac->chip.usb; in pre_reset()
1499 usb->was_running = test_bit(ZD_DEVICE_RUNNING, &mac->flags); in pre_reset()
1503 mutex_lock(&mac->chip.mutex); in pre_reset()
1510 struct zd_mac *mac; in post_reset() local
1516 mac = zd_hw_mac(hw); in post_reset()
1517 usb = &mac->chip.usb; in post_reset()
1519 mutex_unlock(&mac->chip.mutex); in post_reset()