Lines Matching defs:wdata

18 	struct wiimote_data *wdata;
27 struct wiimote_data *wdata = dbg->wdata;
40 ret = wiimote_cmd_acquire(wdata);
44 spin_lock_irqsave(&wdata->state.lock, flags);
45 wdata->state.cmd_read_size = s;
46 wdata->state.cmd_read_buf = buf;
47 wiimote_cmd_set(wdata, WIIPROTO_REQ_RMEM, *off & 0xffff);
48 wiiproto_req_reeprom(wdata, *off, s);
49 spin_unlock_irqrestore(&wdata->state.lock, flags);
51 ret = wiimote_cmd_wait(wdata);
53 size = wdata->state.cmd_read_size;
55 spin_lock_irqsave(&wdata->state.lock, flags);
56 wdata->state.cmd_read_buf = NULL;
57 spin_unlock_irqrestore(&wdata->state.lock, flags);
59 wiimote_cmd_release(wdata);
105 spin_lock_irqsave(&dbg->wdata->state.lock, flags);
106 drm = dbg->wdata->state.drm;
107 spin_unlock_irqrestore(&dbg->wdata->state.lock, flags);
153 spin_lock_irqsave(&dbg->wdata->state.lock, flags);
154 dbg->wdata->state.flags &= ~WIIPROTO_FLAG_DRM_LOCKED;
155 wiiproto_req_drm(dbg->wdata, (__u8) i);
157 dbg->wdata->state.flags |= WIIPROTO_FLAG_DRM_LOCKED;
158 spin_unlock_irqrestore(&dbg->wdata->state.lock, flags);
172 int wiidebug_init(struct wiimote_data *wdata)
181 dbg->wdata = wdata;
184 dbg->wdata->hdev->debug_dir, dbg, &wiidebug_eeprom_fops);
187 dbg->wdata->hdev->debug_dir, dbg, &wiidebug_drm_fops);
189 spin_lock_irqsave(&wdata->state.lock, flags);
190 wdata->debug = dbg;
191 spin_unlock_irqrestore(&wdata->state.lock, flags);
197 void wiidebug_deinit(struct wiimote_data *wdata)
199 struct wiimote_debug *dbg = wdata->debug;
205 spin_lock_irqsave(&wdata->state.lock, flags);
206 wdata->debug = NULL;
207 spin_unlock_irqrestore(&wdata->state.lock, flags);