/drivers/hid/ |
H A D | hid-wiimote-debug.c | 21 struct wiimote_data *wdata; member in struct:wiimote_debug 30 struct wiimote_data *wdata = dbg->wdata; local 43 ret = wiimote_cmd_acquire(wdata); 47 spin_lock_irqsave(&wdata->state.lock, flags); 48 wdata->state.cmd_read_size = s; 49 wdata->state.cmd_read_buf = buf; 50 wiimote_cmd_set(wdata, WIIPROTO_REQ_RMEM, *off & 0xffff); 51 wiiproto_req_reeprom(wdata, *off, s); 52 spin_unlock_irqrestore(&wdata 171 wiidebug_init(struct wiimote_data *wdata) argument 206 wiidebug_deinit(struct wiimote_data *wdata) argument [all...] |
H A D | hid-wacom.c | 71 struct wacom_data *wdata = container_of(psy, local 73 int power_state = batcap[wdata->battery_capacity]; 101 struct wacom_data *wdata = container_of(psy, struct wacom_data, ac); local 102 int power_state = batcap[wdata->battery_capacity]; 140 struct wacom_data *wdata = hid_get_drvdata(hdev); local 165 wdata->high_speed = speed; 183 struct wacom_data *wdata = dev_get_drvdata(dev); local 185 return snprintf(buf, PAGE_SIZE, "%i\n", wdata->high_speed); 209 struct wacom_data *wdata, 242 if (wdata 208 wacom_gr_parse_report(struct hid_device *hdev, struct wacom_data *wdata, struct input_dev *input, unsigned char *data) argument 322 wacom_i4_parse_button_report(struct wacom_data *wdata, struct input_dev *input, unsigned char *data) argument 367 wacom_i4_parse_pen_report(struct wacom_data *wdata, struct input_dev *input, unsigned char *data) argument 428 wacom_i4_parse_report(struct hid_device *hdev, struct wacom_data *wdata, struct input_dev *input, unsigned char *data) argument 453 struct wacom_data *wdata = hid_get_drvdata(hdev); local 558 struct wacom_data *wdata; local 650 struct wacom_data *wdata = hid_get_drvdata(hdev); local [all...] |
H A D | hid-wiimote-ext.c | 20 struct wiimote_data *wdata; member in struct:wiimote_ext 86 if (!wiimote_cmd_acquire(ext->wdata)) { 87 wiimote_cmd_write(ext->wdata, 0xa400f0, &wmem, sizeof(wmem)); 88 wiimote_cmd_release(ext->wdata); 91 spin_lock_irqsave(&ext->wdata->state.lock, flags); 94 wiiproto_req_drm(ext->wdata, WIIPROTO_REQ_NULL); 95 spin_unlock_irqrestore(&ext->wdata->state.lock, flags); 107 if (wiimote_cmd_acquire(ext->wdata)) 112 ret = wiimote_cmd_write(ext->wdata, 0xa600f0, &wmem, sizeof(wmem)); 117 ret = wiimote_cmd_read(ext->wdata, 218 wiiext_event(struct wiimote_data *wdata, bool plugged) argument 245 wiiext_active(struct wiimote_data *wdata) argument 513 wiiext_handle(struct wiimote_data *wdata, const __u8 *payload) argument 532 struct wiimote_data *wdata = dev_to_wii(dev); local 613 wiiext_init(struct wiimote_data *wdata) argument 726 wiiext_deinit(struct wiimote_data *wdata) argument [all...] |
H A D | hid-wiimote.h | 119 extern void wiiproto_req_drm(struct wiimote_data *wdata, __u8 drm); 120 extern int wiimote_cmd_write(struct wiimote_data *wdata, __u32 offset, 122 extern ssize_t wiimote_cmd_read(struct wiimote_data *wdata, __u32 offset, 125 #define wiiproto_req_rreg(wdata, os, sz) \ 126 wiiproto_req_rmem((wdata), false, (os), (sz)) 127 #define wiiproto_req_reeprom(wdata, os, sz) \ 128 wiiproto_req_rmem((wdata), true, (os), (sz)) 129 extern void wiiproto_req_rmem(struct wiimote_data *wdata, bool eeprom, 134 extern int wiiext_init(struct wiimote_data *wdata); 135 extern void wiiext_deinit(struct wiimote_data *wdata); 163 wiimote_cmd_pending(struct wiimote_data *wdata, int cmd, __u32 opt) argument 170 wiimote_cmd_complete(struct wiimote_data *wdata) argument 176 wiimote_cmd_acquire(struct wiimote_data *wdata) argument 182 wiimote_cmd_set(struct wiimote_data *wdata, int cmd, __u32 opt) argument 190 wiimote_cmd_release(struct wiimote_data *wdata) argument 195 wiimote_cmd_wait(struct wiimote_data *wdata) argument [all...] |
H A D | hid-wiimote-core.c | 80 struct wiimote_data *wdata = container_of(work, struct wiimote_data, local 84 spin_lock_irqsave(&wdata->qlock, flags); 86 while (wdata->head != wdata->tail) { 87 spin_unlock_irqrestore(&wdata->qlock, flags); 88 wiimote_hid_send(wdata->hdev, wdata->outq[wdata->tail].data, 89 wdata->outq[wdata 98 wiimote_queue(struct wiimote_data *wdata, const __u8 *buffer, size_t count) argument 144 wiiproto_keep_rumble(struct wiimote_data *wdata, __u8 *cmd1) argument 150 wiiproto_req_rumble(struct wiimote_data *wdata, __u8 rumble) argument 170 wiiproto_req_leds(struct wiimote_data *wdata, int leds) argument 200 select_drm(struct wiimote_data *wdata) argument 229 wiiproto_req_drm(struct wiimote_data *wdata, __u8 drm) argument 245 wiiproto_req_status(struct wiimote_data *wdata) argument 256 wiiproto_req_accel(struct wiimote_data *wdata, __u8 accel) argument 270 wiiproto_req_ir1(struct wiimote_data *wdata, __u8 flags) argument 281 wiiproto_req_ir2(struct wiimote_data *wdata, __u8 flags) argument 298 wiiproto_req_wmem(struct wiimote_data *wdata, bool eeprom, __u32 offset, const __u8 *buf, __u8 size) argument 323 wiiproto_req_rmem(struct wiimote_data *wdata, bool eeprom, __u32 offset, __u16 size) argument 349 wiimote_cmd_write(struct wiimote_data *wdata, __u32 offset, const __u8 *wmem, __u8 size) argument 368 wiimote_cmd_read(struct wiimote_data *wdata, __u32 offset, __u8 *rmem, __u8 size) argument 401 struct wiimote_data *wdata = container_of(psy, local 439 wiimote_init_ir(struct wiimote_data *wdata, __u16 mode) argument 553 struct wiimote_data *wdata; local 576 struct wiimote_data *wdata; local 602 struct wiimote_data *wdata = input_get_drvdata(dev); local 626 struct wiimote_data *wdata = input_get_drvdata(dev); local 633 struct wiimote_data *wdata = input_get_drvdata(dev); local 640 struct wiimote_data *wdata = input_get_drvdata(dev); local 657 struct wiimote_data *wdata = input_get_drvdata(dev); local 669 struct wiimote_data *wdata = input_get_drvdata(dev); local 687 struct wiimote_data *wdata = input_get_drvdata(dev); local 693 handler_keys(struct wiimote_data *wdata, const __u8 *payload) argument 720 handler_accel(struct wiimote_data *wdata, const __u8 *payload) argument 762 __ir_to_input(struct wiimote_data *wdata, const __u8 *ir, bool packed, __u8 xid, __u8 yid) argument 792 handler_status(struct wiimote_data *wdata, const __u8 *payload) argument 807 handler_data(struct wiimote_data *wdata, const __u8 *payload) argument 828 handler_return(struct wiimote_data *wdata, const __u8 *payload) argument 844 handler_drm_KA(struct wiimote_data *wdata, const __u8 *payload) argument 850 handler_drm_KE(struct wiimote_data *wdata, const __u8 *payload) argument 856 handler_drm_KAI(struct wiimote_data *wdata, const __u8 *payload) argument 867 handler_drm_KEE(struct wiimote_data *wdata, const __u8 *payload) argument 873 handler_drm_KIE(struct wiimote_data *wdata, const __u8 *payload) argument 884 handler_drm_KAE(struct wiimote_data *wdata, const __u8 *payload) argument 891 handler_drm_KAIE(struct wiimote_data *wdata, const __u8 *payload) argument 903 handler_drm_E(struct wiimote_data *wdata, const __u8 *payload) argument 908 handler_drm_SKAI1(struct wiimote_data *wdata, const __u8 *payload) argument 921 handler_drm_SKAI2(struct wiimote_data *wdata, const __u8 *payload) argument 969 struct wiimote_data *wdata = hid_get_drvdata(hdev); local 997 wiimote_leds_destroy(struct wiimote_data *wdata) argument 1012 wiimote_leds_create(struct wiimote_data *wdata) argument 1051 struct wiimote_data *wdata; local 1156 wiimote_destroy(struct wiimote_data *wdata) argument 1175 struct wiimote_data *wdata; local 1277 struct wiimote_data *wdata = hid_get_drvdata(hdev); local [all...] |
/drivers/media/video/hdpvr/ |
H A D | hdpvr-i2c.c | 67 unsigned char addr, char *wdata, int wlen, 76 memcpy(&dev->i2c_buf, wdata, wlen); 66 hdpvr_i2c_read(struct hdpvr_device *dev, int bus, unsigned char addr, char *wdata, int wlen, char *data, int len) argument
|
/drivers/media/dvb/dvb-usb/ |
H A D | mxl111sf-i2c.c | 321 u8 index, u8 *wdata) 323 int ret = mxl111sf_ctrl_msg(state->d, wdata[0], 324 &wdata[1], 25, NULL, 0); 331 u8 index, u8 *wdata, u8 *rdata) 333 int ret = mxl111sf_ctrl_msg(state->d, wdata[0], 334 &wdata[1], 25, rdata, 24); 320 mxl111sf_i2c_send_data(struct mxl111sf_state *state, u8 index, u8 *wdata) argument 330 mxl111sf_i2c_get_data(struct mxl111sf_state *state, u8 index, u8 *wdata, u8 *rdata) argument
|
/drivers/media/video/cx23885/ |
H A D | cx23885-i2c.c | 86 u32 wdata, addr, ctrl; local 111 wdata = msg->buf[0]; 120 cx_write(bus->reg_wdata, wdata); 133 wdata = msg->buf[cnt]; 142 cx_write(bus->reg_wdata, wdata);
|
/drivers/media/video/cx25821/ |
H A D | cx25821-i2c.c | 84 u32 wdata, addr, ctrl; local 110 wdata = msg->buf[0]; 120 cx_write(bus->reg_wdata, wdata); 137 wdata = msg->buf[cnt]; 146 cx_write(bus->reg_wdata, wdata);
|
/drivers/media/video/pvrusb2/ |
H A D | pvrusb2-i2c-core.c | 183 u8 *wdata, 189 if (!wdata) wlen = 0; 191 return pvr2_i2c_read(hdw,i2c_addr,wdata,wlen,rdata,rlen); 193 return pvr2_i2c_write(hdw,i2c_addr,wdata,wlen); 205 u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) 275 u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) 281 return pvr2_i2c_basic_op(hdw,i2c_addr,wdata,wlen,rdata,rlen); 288 u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) 301 u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) 316 return pvr2_i2c_basic_op(hdw,i2c_addr,wdata,wle 181 pvr2_i2c_basic_op(struct pvr2_hdw *hdw, u8 i2c_addr, u8 *wdata, u16 wlen, u8 *rdata, u16 rlen) argument 204 i2c_24xxx_ir(struct pvr2_hdw *hdw, u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) argument 274 i2c_hack_wm8775(struct pvr2_hdw *hdw, u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) argument 287 i2c_black_hole(struct pvr2_hdw *hdw, u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) argument 300 i2c_hack_cx25840(struct pvr2_hdw *hdw, u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) argument [all...] |
/drivers/net/usb/ |
H A D | cx82310_eth.c | 65 u8 *wdata, int wlen, u8 *rdata, int rlen) 76 if (wdata) 77 memcpy(buf + 4, wdata, min_t(int, wlen, CMD_PACKET_SIZE - 4)); 64 cx82310_cmd(struct usbnet *dev, enum cx82310_cmd cmd, bool reply, u8 *wdata, int wlen, u8 *rdata, int rlen) argument
|
/drivers/platform/x86/ |
H A D | msi-laptop.c | 143 u8 wdata = 0, rdata; local 146 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, &wdata, 1, 156 u8 wdata = 4, rdata; local 159 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, &wdata, 1, 169 u8 wdata[2], rdata; local 172 wdata[0] = 4; 174 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, wdata, 1, 179 wdata[0] = 0x84; 180 wdata[1] = (rdata & 0xF7) | (enable ? 8 : 0); 182 return ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, wdata, 189 u8 wdata = 0, rdata; local 217 u8 wdata = 0, rdata; local [all...] |
/drivers/staging/cxt1e1/ |
H A D | pmcc4_drv.c | 519 u_int32_t wdata, rdata; local 521 wdata = COMET_MDIAG_LBOFF; /* take port out of any loopback mode */ 527 pci_write_32 ((u_int32_t *) &comet->mdiag, wdata); 529 if (wdata == rdata)
|
/drivers/acpi/ |
H A D | ec.c | 103 const u8 *wdata; member in struct:transaction 178 ec->curr->wdata[ec->curr->wi++]); 285 if (!ec || (!t) || (t->wlen && !t->wdata) || (t->rlen && !t->rdata)) 340 .wdata = NULL, .rdata = &d, 349 .wdata = NULL, .rdata = NULL, 361 .wdata = &address, .rdata = &d, 371 u8 wdata[2] = { address, data }; local 373 .wdata = wdata, .rdata = NULL, 434 const u8 * wdata, unsigne 433 ec_transaction(u8 command, const u8 * wdata, unsigned wdata_len, u8 * rdata, unsigned rdata_len) argument [all...] |
/drivers/staging/comedi/drivers/ |
H A D | s626.c | 324 static void DEBIwrite(struct comedi_device *dev, uint16_t addr, uint16_t wdata); 326 uint16_t wdata); 2806 static void DEBIwrite(struct comedi_device *dev, uint16_t addr, uint16_t wdata) argument 2811 WR7146(P_DEBIAD, wdata); 2818 * specifies bits that are to be preserved, wdata is new value to be 2822 uint16_t wdata) 2834 WR7146(P_DEBIAD, wdata | ((uint16_t) RR7146(P_DEBIAD) & mask)); 2821 DEBIreplace(struct comedi_device *dev, uint16_t addr, uint16_t mask, uint16_t wdata) argument
|
/drivers/usb/atm/ |
H A D | cxacru.c | 210 u8 *wdata, int wsize, u8 *rdata, int rsize); 585 u8 *wdata, int wsize, u8 *rdata, int rsize) 620 memcpy(wbuf + offb + 4, wdata + offd, min_t(int, stride, wsize - offd)); 584 cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm, u8 *wdata, int wsize, u8 *rdata, int rsize) argument
|
/drivers/staging/telephony/ |
H A D | ixj.c | 4856 IXJ_WORD wdata; local 4898 wdata.word = inw_p(j->XILINXbase + 0x02); 4902 j->m_DAAShadowRegs.SOP_REGS.SOP.cr5.reg = wdata.bytes.high; 4905 j->m_DAAShadowRegs.SOP_REGS.SOP.cr4.reg = wdata.bytes.high; 4908 j->m_DAAShadowRegs.SOP_REGS.SOP.cr3.reg = wdata.bytes.high; 4911 j->m_DAAShadowRegs.SOP_REGS.SOP.cr2.reg = wdata.bytes.high; 4914 j->m_DAAShadowRegs.SOP_REGS.SOP.cr1.reg = wdata.bytes.high; 4917 j->m_DAAShadowRegs.SOP_REGS.SOP.cr0.reg = wdata.bytes.high;
|
/drivers/media/video/ |
H A D | vino.c | 1613 void (*wdata)(void *data, unsigned val); member in struct:i2c_algo_sgi_data 1678 adap->wdata(adap->data, addr); 1709 adap->wdata(adap->data, buf[i]); 1771 .wdata = &i2c_vino_wdata,
|
/drivers/scsi/qla4xxx/ |
H A D | ql4_os.c | 116 static void qla4xxx_task_work(struct work_struct *wdata); 1711 static void qla4xxx_task_work(struct work_struct *wdata) argument 1724 task_data = container_of(wdata, struct ql4_task_data, task_work);
|