Lines Matching defs:mbox
16 struct event_mailbox *mbox)
21 mbox->scheduled_scan_status,
22 mbox->scheduled_scan_channels);
41 struct event_mailbox *mbox)
45 wl1251_debug(DEBUG_EVENT, "ps status: %x", mbox->ps_status);
47 switch (mbox->ps_status) {
76 static void wl1251_event_mbox_dump(struct event_mailbox *mbox)
79 wl1251_debug(DEBUG_EVENT, "\tvector: 0x%x", mbox->events_vector);
80 wl1251_debug(DEBUG_EVENT, "\tmask: 0x%x", mbox->events_mask);
83 static int wl1251_event_process(struct wl1251 *wl, struct event_mailbox *mbox)
88 wl1251_event_mbox_dump(mbox);
90 vector = mbox->events_vector & ~(mbox->events_mask);
94 ret = wl1251_event_scan_complete(wl, mbox);
112 ret = wl1251_event_ps_report(wl, mbox);
203 struct event_mailbox *mbox;
206 wl1251_debug(DEBUG_EVENT, "EVENT on mbox %d", mbox_num);
211 mbox = kmalloc(sizeof(*mbox), GFP_KERNEL);
212 if (!mbox) {
213 wl1251_error("can not allocate mbox buffer");
217 /* first we read the mbox descriptor */
218 wl1251_mem_read(wl, wl->mbox_ptr[mbox_num], mbox,
219 sizeof(*mbox));
222 ret = wl1251_event_process(wl, mbox);
223 kfree(mbox);