Home
last modified time | relevance | path

Searched refs:wdata (Results 1 – 25 of 41) sorted by relevance

12

/Linux-v5.4/drivers/hid/
Dhid-wiimote-modules.c62 static void wiimod_keys_in_keys(struct wiimote_data *wdata, const __u8 *keys) in wiimod_keys_in_keys() argument
64 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_LEFT], in wiimod_keys_in_keys()
66 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_RIGHT], in wiimod_keys_in_keys()
68 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_DOWN], in wiimod_keys_in_keys()
70 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_UP], in wiimod_keys_in_keys()
72 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_PLUS], in wiimod_keys_in_keys()
74 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_TWO], in wiimod_keys_in_keys()
76 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_ONE], in wiimod_keys_in_keys()
78 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_B], in wiimod_keys_in_keys()
80 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_A], in wiimod_keys_in_keys()
[all …]
Dhid-wiimote-core.c45 struct wiimote_data *wdata = container_of(queue, struct wiimote_data, in wiimote_queue_worker() local
50 spin_lock_irqsave(&wdata->queue.lock, flags); in wiimote_queue_worker()
52 while (wdata->queue.head != wdata->queue.tail) { in wiimote_queue_worker()
53 spin_unlock_irqrestore(&wdata->queue.lock, flags); in wiimote_queue_worker()
54 ret = wiimote_hid_send(wdata->hdev, in wiimote_queue_worker()
55 wdata->queue.outq[wdata->queue.tail].data, in wiimote_queue_worker()
56 wdata->queue.outq[wdata->queue.tail].size); in wiimote_queue_worker()
58 spin_lock_irqsave(&wdata->state.lock, flags); in wiimote_queue_worker()
59 wiimote_cmd_abort(wdata); in wiimote_queue_worker()
60 spin_unlock_irqrestore(&wdata->state.lock, flags); in wiimote_queue_worker()
[all …]
Dhid-wiimote.h191 struct wiimote_data *wdata);
193 struct wiimote_data *wdata);
195 void (*in_keys) (struct wiimote_data *wdata, const __u8 *keys);
196 void (*in_accel) (struct wiimote_data *wdata, const __u8 *accel);
197 void (*in_ir) (struct wiimote_data *wdata, const __u8 *ir, bool packed,
199 void (*in_mp) (struct wiimote_data *wdata, const __u8 *mp);
200 void (*in_ext) (struct wiimote_data *wdata, const __u8 *ext);
261 void __wiimote_schedule(struct wiimote_data *wdata);
263 extern void wiiproto_req_drm(struct wiimote_data *wdata, __u8 drm);
264 extern void wiiproto_req_rumble(struct wiimote_data *wdata, __u8 rumble);
[all …]
Dhid-wiimote-debug.c18 struct wiimote_data *wdata; member
27 struct wiimote_data *wdata = dbg->wdata; in wiidebug_eeprom_read() local
40 ret = wiimote_cmd_acquire(wdata); in wiidebug_eeprom_read()
44 spin_lock_irqsave(&wdata->state.lock, flags); in wiidebug_eeprom_read()
45 wdata->state.cmd_read_size = s; in wiidebug_eeprom_read()
46 wdata->state.cmd_read_buf = buf; in wiidebug_eeprom_read()
47 wiimote_cmd_set(wdata, WIIPROTO_REQ_RMEM, *off & 0xffff); in wiidebug_eeprom_read()
48 wiiproto_req_reeprom(wdata, *off, s); in wiidebug_eeprom_read()
49 spin_unlock_irqrestore(&wdata->state.lock, flags); in wiidebug_eeprom_read()
51 ret = wiimote_cmd_wait(wdata); in wiidebug_eeprom_read()
[all …]
Dhid-lg4ff.c85 struct lg4ff_wheel_data wdata; member
311 switch (entry->wdata.product_id) { in lg4ff_adjust_input_event()
315 new_value = lg4ff_adjust_dfp_x_axis(value, entry->wdata.range); in lg4ff_adjust_input_event()
336 if (entry->wdata.combine) { in lg4ff_raw_event()
337 switch (entry->wdata.product_id) { in lg4ff_raw_event()
377 static void lg4ff_init_wheel_data(struct lg4ff_wheel_data * const wdata, const struct lg4ff_wheel *… in lg4ff_init_wheel_data() argument
402 memcpy(wdata, &t_wdata, sizeof(t_wdata)); in lg4ff_init_wheel_data()
515 switch (entry->wdata.product_id) { in lg4ff_set_autocenter_default()
818 if (!entry->wdata.real_name) { in lg4ff_alternate_modes_show()
824 if (entry->wdata.alternate_modes & BIT(i)) { in lg4ff_alternate_modes_show()
[all …]
/Linux-v5.4/fs/cifs/
Dfile.c2119 struct cifs_writedata *wdata; in wdata_alloc_and_fillpages() local
2121 wdata = cifs_writedata_alloc((unsigned int)tofind, in wdata_alloc_and_fillpages()
2123 if (!wdata) in wdata_alloc_and_fillpages()
2127 PAGECACHE_TAG_DIRTY, tofind, wdata->pages); in wdata_alloc_and_fillpages()
2128 return wdata; in wdata_alloc_and_fillpages()
2132 wdata_prepare_pages(struct cifs_writedata *wdata, unsigned int found_pages, in wdata_prepare_pages() argument
2141 page = wdata->pages[i]; in wdata_prepare_pages()
2192 wdata->pages[i] = page; in wdata_prepare_pages()
2199 *index = wdata->pages[0]->index + 1; in wdata_prepare_pages()
2203 put_page(wdata->pages[i]); in wdata_prepare_pages()
[all …]
Dsmb2pdu.c3822 struct cifs_writedata *wdata = mid->callback_data; in smb2_writev_callback() local
3823 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in smb2_writev_callback()
3833 wdata->result = smb2_check_receive(mid, server, 0); in smb2_writev_callback()
3834 if (wdata->result != 0) in smb2_writev_callback()
3844 if (written > wdata->bytes) in smb2_writev_callback()
3847 if (written < wdata->bytes) in smb2_writev_callback()
3848 wdata->result = -ENOSPC; in smb2_writev_callback()
3850 wdata->bytes = written; in smb2_writev_callback()
3854 wdata->result = -EAGAIN; in smb2_writev_callback()
3861 wdata->result = -EIO; in smb2_writev_callback()
[all …]
Dcifssmb.c2046 struct cifs_writedata *wdata = container_of(refcount, in cifs_writedata_release() local
2049 if (wdata->mr) { in cifs_writedata_release()
2050 smbd_deregister_mr(wdata->mr); in cifs_writedata_release()
2051 wdata->mr = NULL; in cifs_writedata_release()
2055 if (wdata->cfile) in cifs_writedata_release()
2056 cifsFileInfo_put(wdata->cfile); in cifs_writedata_release()
2058 kvfree(wdata->pages); in cifs_writedata_release()
2059 kfree(wdata); in cifs_writedata_release()
2067 cifs_writev_requeue(struct cifs_writedata *wdata) in cifs_writev_requeue() argument
2070 struct inode *inode = d_inode(wdata->cfile->dentry); in cifs_writev_requeue()
[all …]
/Linux-v5.4/drivers/media/usb/pvrusb2/
Dpvrusb2-i2c-core.c164 u8 *wdata, in pvr2_i2c_basic_op() argument
170 if (!wdata) wlen = 0; in pvr2_i2c_basic_op()
172 return pvr2_i2c_read(hdw,i2c_addr,wdata,wlen,rdata,rlen); in pvr2_i2c_basic_op()
174 return pvr2_i2c_write(hdw,i2c_addr,wdata,wlen); in pvr2_i2c_basic_op()
186 u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) in i2c_24xxx_ir() argument
256 u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) in i2c_hack_wm8775() argument
262 return pvr2_i2c_basic_op(hdw,i2c_addr,wdata,wlen,rdata,rlen); in i2c_hack_wm8775()
269 u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) in i2c_black_hole() argument
282 u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) in i2c_hack_cx25840() argument
297 return pvr2_i2c_basic_op(hdw,i2c_addr,wdata,wlen,rdata,rlen); in i2c_hack_cx25840()
[all …]
/Linux-v5.4/drivers/platform/x86/
Dmsi-laptop.c160 u8 wdata = 0, rdata; in get_lcd_level() local
163 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, &wdata, 1, in get_lcd_level()
173 u8 wdata = 4, rdata; in get_auto_brightness() local
176 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, &wdata, 1, in get_auto_brightness()
186 u8 wdata[2], rdata; in set_auto_brightness() local
189 wdata[0] = 4; in set_auto_brightness()
191 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, wdata, 1, in set_auto_brightness()
196 wdata[0] = 0x84; in set_auto_brightness()
197 wdata[1] = (rdata & 0xF7) | (enable ? 8 : 0); in set_auto_brightness()
199 return ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, wdata, 2, in set_auto_brightness()
[all …]
/Linux-v5.4/drivers/pinctrl/spear/
Dpinctrl-plgpio.c43 u32 wdata; /* write data register */ member
149 plgpio->regs.wdata); in plgpio_direction_output()
152 plgpio->regs.wdata); in plgpio_direction_output()
192 plgpio_reg_set(plgpio->base, offset, plgpio->regs.wdata); in plgpio_set_value()
194 plgpio_reg_reset(plgpio->base, offset, plgpio->regs.wdata); in plgpio_set_value()
471 plgpio->regs.wdata = val; in plgpio_probe_dt()
629 plgpio->csave_regs[i].wdata = readl_relaxed(plgpio->regs.wdata + in plgpio_suspend()
673 plgpio_prepare_reg(wdata, off, mask, tmp); in plgpio_resume()
678 writel_relaxed(plgpio->csave_regs[i].wdata, plgpio->regs.wdata + in plgpio_resume()
/Linux-v5.4/drivers/media/pci/cx23885/
Dcx23885-i2c.c72 u32 wdata, addr, ctrl; in i2c_sendbytes() local
97 wdata = msg->buf[0]; in i2c_sendbytes()
106 cx_write(bus->reg_wdata, wdata); in i2c_sendbytes()
119 wdata = msg->buf[cnt]; in i2c_sendbytes()
128 cx_write(bus->reg_wdata, wdata); in i2c_sendbytes()
/Linux-v5.4/drivers/media/pci/cx25821/
Dcx25821-i2c.c71 u32 wdata, addr, ctrl; in i2c_sendbytes() local
97 wdata = msg->buf[0]; in i2c_sendbytes()
107 cx_write(bus->reg_wdata, wdata); in i2c_sendbytes()
124 wdata = msg->buf[cnt]; in i2c_sendbytes()
133 cx_write(bus->reg_wdata, wdata); in i2c_sendbytes()
/Linux-v5.4/sound/soc/sof/
Dtopology.c1760 struct sof_widget_data *wdata, in sof_get_control_data() argument
1777 wdata[i].control = sm->dobj.private; in sof_get_control_data()
1781 wdata[i].control = sbe->dobj.private; in sof_get_control_data()
1785 wdata[i].control = se->dobj.private; in sof_get_control_data()
1794 if (!wdata[i].control) { in sof_get_control_data()
1800 wdata[i].pdata = wdata[i].control->control_data->data; in sof_get_control_data()
1801 if (!wdata[i].pdata) in sof_get_control_data()
1805 if (wdata[i].pdata->magic != SOF_ABI_MAGIC) in sof_get_control_data()
1808 *size += wdata[i].pdata->size; in sof_get_control_data()
1811 switch (wdata[i].control->cmd) { in sof_get_control_data()
[all …]
/Linux-v5.4/drivers/misc/
Dxilinx_sdfec.c461 u32 wdata; in xsdfec_reg0_write() local
476 wdata = k | n; in xsdfec_reg0_write()
488 wdata); in xsdfec_reg0_write()
495 u32 wdata; in xsdfec_reg1_write() local
511 wdata = nm | no_packing | psize; in xsdfec_reg1_write()
522 wdata); in xsdfec_reg1_write()
530 u32 wdata; in xsdfec_reg2_write() local
562 wdata = (max_schedule | no_final_parity | special_qc | norm_type | in xsdfec_reg2_write()
575 wdata); in xsdfec_reg2_write()
582 u32 wdata; in xsdfec_reg3_write() local
[all …]
/Linux-v5.4/drivers/media/usb/dvb-usb-v2/
Dmxl111sf-i2c.c308 u8 index, u8 *wdata) in mxl111sf_i2c_send_data() argument
310 int ret = mxl111sf_ctrl_msg(state, wdata[0], in mxl111sf_i2c_send_data()
311 &wdata[1], 25, NULL, 0); in mxl111sf_i2c_send_data()
318 u8 index, u8 *wdata, u8 *rdata) in mxl111sf_i2c_get_data() argument
320 int ret = mxl111sf_ctrl_msg(state, wdata[0], in mxl111sf_i2c_get_data()
321 &wdata[1], 25, rdata, 24); in mxl111sf_i2c_get_data()
/Linux-v5.4/drivers/net/usb/
Dcx82310_eth.c50 u8 *wdata, int wlen, u8 *rdata, int rlen) in cx82310_cmd() argument
61 if (wdata) in cx82310_cmd()
62 memcpy(buf + 4, wdata, min_t(int, wlen, CMD_PACKET_SIZE - 4)); in cx82310_cmd()
/Linux-v5.4/drivers/acpi/
Dec.c155 const u8 *wdata; member
671 acpi_ec_write_data(ec, t->wdata[t->wi++]); in advance_transaction()
834 if (!ec || (!t) || (t->wlen && !t->wdata) || (t->rlen && !t->rdata)) in acpi_ec_transaction()
861 .wdata = NULL, .rdata = &d, in acpi_ec_burst_enable()
870 .wdata = NULL, .rdata = NULL, in acpi_ec_burst_disable()
882 .wdata = &address, .rdata = &d, in acpi_ec_read()
892 u8 wdata[2] = { address, data }; in acpi_ec_write() local
894 .wdata = wdata, .rdata = NULL, in acpi_ec_write()
932 const u8 *wdata, unsigned wdata_len, in ec_transaction() argument
936 .wdata = wdata, .rdata = rdata, in ec_transaction()
/Linux-v5.4/drivers/media/usb/hdpvr/
Dhdpvr-i2c.c51 unsigned char addr, char *wdata, int wlen, in hdpvr_i2c_read() argument
60 memcpy(dev->i2c_buf, wdata, wlen); in hdpvr_i2c_read()
/Linux-v5.4/sound/ppc/
Ddaca.c41 unsigned short wdata = 0x00; in daca_init_client() local
48 2, (unsigned char*)&wdata); in daca_init_client()
/Linux-v5.4/drivers/staging/rtl8723bs/os_dep/
Dioctl_linux.c4463 union iwreq_data *wdata, char *extra) in rtw_mp_efuse_get() argument
4471 union iwreq_data *wdata, char *extra) in rtw_mp_efuse_set() argument
4916 union iwreq_data wdata; in rtw_ioctl_wext_private() local
4919 memcpy(&wdata, wrq_data, sizeof(wdata)); in rtw_ioctl_wext_private()
4925 if (copy_from_user(input, wdata.data.pointer, input_len)) { in rtw_ioctl_wext_private()
5009 wdata.data.length = count; in rtw_ioctl_wext_private()
5010 if (wdata.data.length > (priv_args[k].set_args & IW_PRIV_SIZE_MASK)) in rtw_ioctl_wext_private()
5011 wdata.data.length = priv_args[k].set_args & IW_PRIV_SIZE_MASK; in rtw_ioctl_wext_private()
5027 wdata.data.length = count; in rtw_ioctl_wext_private()
5028 if (wdata.data.length > (priv_args[k].set_args & IW_PRIV_SIZE_MASK)) in rtw_ioctl_wext_private()
[all …]
/Linux-v5.4/drivers/soc/mediatek/
Dmtk-pmic-wrap.c969 int (*pwrap_write)(struct pmic_wrapper *wrp, u32 adr, u32 wdata);
1122 static int pwrap_write16(struct pmic_wrapper *wrp, u32 adr, u32 wdata) in pwrap_write16() argument
1132 pwrap_writel(wrp, (1 << 31) | ((adr >> 1) << 16) | wdata, in pwrap_write16()
1138 static int pwrap_write32(struct pmic_wrapper *wrp, u32 adr, u32 wdata) in pwrap_write32() argument
1150 ((wdata >> (msb * 16)) & 0xffff), in pwrap_write32()
1167 static int pwrap_write(struct pmic_wrapper *wrp, u32 adr, u32 wdata) in pwrap_write() argument
1169 return wrp->slave->pwrap_write(wrp, adr, wdata); in pwrap_write()
1177 static int pwrap_regmap_write(void *context, u32 adr, u32 wdata) in pwrap_regmap_write() argument
1179 return pwrap_write(context, adr, wdata); in pwrap_regmap_write()
/Linux-v5.4/drivers/iio/imu/st_lsm6dsx/
Dst_lsm6dsx_buffer.c238 __le16 wdata; in st_lsm6dsx_update_watermark() local
272 wdata = cpu_to_le16(fifo_watermark); in st_lsm6dsx_update_watermark()
275 &wdata, sizeof(wdata)); in st_lsm6dsx_update_watermark()
/Linux-v5.4/arch/m68k/include/asm/
Dmac_iop.h102 __u8 wdata; /* write a data byte */ member
/Linux-v5.4/drivers/i2c/
Di2c-core-acpi.c27 u16 wdata; member
645 gsb->wdata = status; in i2c_acpi_space_handler()
650 gsb->wdata); in i2c_acpi_space_handler()

12