Home
last modified time | relevance | path

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

12

/linux/drivers/hid/
A Dhid-wiimote-modules.c490 input_set_drvdata(wdata->accel, wdata); in wiimod_accel_probe()
493 wdata->accel->dev.parent = &wdata->hdev->dev; in wiimod_accel_probe()
494 wdata->accel->id.bustype = wdata->hdev->bus; in wiimod_accel_probe()
742 input_set_drvdata(wdata->ir, wdata); in wiimod_ir_probe()
745 wdata->ir->dev.parent = &wdata->hdev->dev; in wiimod_ir_probe()
746 wdata->ir->id.bustype = wdata->hdev->bus; in wiimod_ir_probe()
747 wdata->ir->id.vendor = wdata->hdev->vendor; in wiimod_ir_probe()
748 wdata->ir->id.product = wdata->hdev->product; in wiimod_ir_probe()
2582 input_set_drvdata(wdata->mp, wdata); in wiimod_mp_probe()
2585 wdata->mp->dev.parent = &wdata->hdev->dev; in wiimod_mp_probe()
[all …]
A Dhid-wiimote-core.c52 while (wdata->queue.head != wdata->queue.tail) { 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()
96 wdata->queue.outq[wdata->queue.head].size = count; in wiimote_queue()
99 if (wdata->queue.head == wdata->queue.tail) { in wiimote_queue()
642 input_set_drvdata(wdata->input, wdata); in wiimote_modules_load()
643 wdata->input->dev.parent = &wdata->hdev->dev; in wiimote_modules_load()
644 wdata->input->id.bustype = wdata->hdev->bus; in wiimote_modules_load()
645 wdata->input->id.vendor = wdata->hdev->vendor; in wiimote_modules_load()
1200 wdata->state.mp, wdata->state.exttype); in wiimote_init_hotplug()
[all …]
A Dhid-wiimote.h193 struct wiimote_data *wdata);
195 struct wiimote_data *wdata);
300 return wdata->state.cmd == cmd && wdata->state.opt == opt; in wiimote_cmd_pending()
306 wdata->state.cmd = WIIPROTO_REQ_NULL; in wiimote_cmd_complete()
307 complete(&wdata->state.ready); in wiimote_cmd_complete()
316 wdata->state.cmd = WIIPROTO_REQ_MAX; in wiimote_cmd_abort()
317 complete(&wdata->state.ready); in wiimote_cmd_abort()
327 mutex_lock(&wdata->state.sync); in wiimote_cmd_acquire_noint()
335 wdata->state.cmd = cmd; in wiimote_cmd_set()
336 wdata->state.opt = opt; in wiimote_cmd_set()
[all …]
A 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()
45 wdata->state.cmd_read_size = s; in wiidebug_eeprom_read()
46 wdata->state.cmd_read_buf = buf; in wiidebug_eeprom_read()
51 ret = wiimote_cmd_wait(wdata); in wiidebug_eeprom_read()
59 wiimote_cmd_release(wdata); in wiidebug_eeprom_read()
106 drm = dbg->wdata->state.drm; in wiidebug_drm_show()
182 dbg->wdata = wdata; in wiidebug_init()
195 wdata->debug = dbg; in wiidebug_init()
[all …]
A Dhid-lg4ff.c85 struct lg4ff_wheel_data wdata; member
336 if (entry->wdata.combine) { in lg4ff_raw_event()
911 entry->wdata.real_name); in lg4ff_alternate_modes_store()
1037 if (entry->wdata.set_range && range >= entry->wdata.min_range && range <= entry->wdata.max_range) { in lg4ff_range_store()
1039 entry->wdata.range = range; in lg4ff_range_store()
1065 if (!entry->wdata.real_tag || !entry->wdata.real_name) { in lg4ff_real_id_show()
1383 entry->wdata.range = entry->wdata.max_range; in lg4ff_init()
1384 if (entry->wdata.set_range) in lg4ff_init()
1385 entry->wdata.set_range(hid, entry->wdata.range); in lg4ff_init()
1389 entry->wdata.led_state = 0; in lg4ff_init()
[all …]
/linux/fs/cifs/
A Dfile.c2268 if (!wdata) in wdata_alloc_and_fillpages()
2273 return wdata; in wdata_alloc_and_fillpages()
2363 wdata->offset = page_offset(wdata->pages[0]); in wdata_send_pages()
2368 wdata->bytes = ((nr_pages - 1) * PAGE_SIZE) + wdata->tailsz; in wdata_send_pages()
2369 wdata->pid = wdata->cfile->pid; in wdata_send_pages()
2371 rc = adjust_credits(wdata->server, &wdata->credits, wdata->bytes); in wdata_send_pages()
2378 rc = wdata->server->ops->async_writev(wdata, in wdata_send_pages()
2446 if (!wdata) { in cifs_writepages()
2844 cifs_update_eof(cifsi, wdata->offset, wdata->bytes); in cifs_uncached_writev_complete()
2934 rc = adjust_credits(server, &wdata->credits, wdata->bytes); in cifs_resend_wdata()
[all …]
A Dsmb2pdu.c4308 if (wdata->mr) { in smb2_writev_callback()
4318 wdata->bytes, wdata->result); in smb2_writev_callback()
4326 wdata->offset, wdata->bytes); in smb2_writev_callback()
4372 tcon->tid, tcon->ses->Suid, wdata->offset, wdata->bytes); in smb2_async_writev()
4386 wdata->nr_pages, wdata->page_offset, in smb2_async_writev()
4397 (wdata->nr_pages - 1) * wdata->pagesz - in smb2_async_writev()
4398 wdata->page_offset + wdata->tailsz in smb2_async_writev()
4432 wdata->offset, wdata->bytes); in smb2_async_writev()
4436 if (!wdata->mr) in smb2_async_writev()
4447 rc = adjust_credits(server, &wdata->credits, wdata->bytes); in smb2_async_writev()
[all …]
A Dcifssmb.c1863 if (wdata->mr) { in cifs_writedata_release()
1865 wdata->mr = NULL; in cifs_writedata_release()
1869 if (wdata->cfile) in cifs_writedata_release()
1873 kfree(wdata); in cifs_writedata_release()
1985 cifs_update_eof(CIFS_I(inode), wdata->offset, wdata->bytes); in cifs_writev_complete()
1988 wdata->bytes); in cifs_writev_complete()
1989 } else if (wdata->sync_mode == WB_SYNC_ALL && wdata->result == -EAGAIN) in cifs_writev_complete()
2023 wdata = kzalloc(sizeof(*wdata), GFP_NOFS); in cifs_writedata_direct_alloc()
2024 if (wdata != NULL) { in cifs_writedata_direct_alloc()
2031 return wdata; in cifs_writedata_direct_alloc()
[all …]
/linux/drivers/media/usb/pvrusb2/
A 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/drivers/platform/x86/
A Dmsi-laptop.c160 u8 wdata = 0, rdata; in get_lcd_level() local
173 u8 wdata = 4, rdata; in get_auto_brightness() local
186 u8 wdata[2], rdata; in set_auto_brightness() local
189 wdata[0] = 4; 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()
206 u8 wdata = 0, rdata; in set_device_state() local
223 wdata = rdata & ~mask; in set_device_state()
225 wdata = rdata | mask; in set_device_state()
[all …]
/linux/drivers/net/wireless/realtek/rtw88/
A Dwow.c66 u32 wdata) in rtw_wow_pattern_write_cam() argument
68 rtw_write32(rtwdev, REG_WKFMCAM_RWD, wdata); in rtw_wow_pattern_write_cam()
81 u32 wdata; in rtw_wow_pattern_write_cam_ent() local
85 wdata = rtw_pattern->mask[i * 4]; in rtw_wow_pattern_write_cam_ent()
86 wdata |= rtw_pattern->mask[i * 4 + 1] << 8; in rtw_wow_pattern_write_cam_ent()
87 wdata |= rtw_pattern->mask[i * 4 + 2] << 16; in rtw_wow_pattern_write_cam_ent()
88 wdata |= rtw_pattern->mask[i * 4 + 3] << 24; in rtw_wow_pattern_write_cam_ent()
92 wdata = rtw_pattern->crc; in rtw_wow_pattern_write_cam_ent()
97 wdata |= BIT_WKFMCAM_BC | BIT_WKFMCAM_VALID; in rtw_wow_pattern_write_cam_ent()
100 wdata |= BIT_WKFMCAM_MC | BIT_WKFMCAM_VALID; in rtw_wow_pattern_write_cam_ent()
[all …]
A Dutil.c46 rtw_write32(rtwdev, ltecoex->wdata, value); in ltecoex_reg_write()
/linux/drivers/pinctrl/spear/
A 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()
470 plgpio->regs.wdata = val; in plgpio_probe_dt()
621 plgpio->csave_regs[i].wdata = readl_relaxed(plgpio->regs.wdata + in plgpio_suspend()
665 plgpio_prepare_reg(wdata, off, mask, tmp); in plgpio_resume()
670 writel_relaxed(plgpio->csave_regs[i].wdata, plgpio->regs.wdata + in plgpio_resume()
/linux/drivers/media/pci/cx23885/
A 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/drivers/media/pci/cx25821/
A 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/drivers/misc/
A 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
575 wdata); in xsdfec_reg2_write()
582 u32 wdata; in xsdfec_reg3_write() local
584 wdata = ((qc_off << XSDFEC_REG3_QC_OFF_LSB) | in xsdfec_reg3_write()
[all …]
/linux/drivers/media/usb/dvb-usb-v2/
A 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/drivers/acpi/
A Dec.c154 const u8 *wdata; member
672 acpi_ec_write_data(ec, t->wdata[t->wi++]); in advance_transaction()
809 if (!ec || (!t) || (t->wlen && !t->wdata) || (t->rlen && !t->rdata)) in acpi_ec_transaction()
836 .wdata = NULL, .rdata = &d, in acpi_ec_burst_enable()
845 .wdata = NULL, .rdata = NULL, in acpi_ec_burst_disable()
857 .wdata = &address, .rdata = &d, in acpi_ec_read()
867 u8 wdata[2] = { address, data }; in acpi_ec_write() local
869 .wdata = wdata, .rdata = NULL, in acpi_ec_write()
907 const u8 *wdata, unsigned wdata_len, in ec_transaction() argument
911 .wdata = wdata, .rdata = rdata, in ec_transaction()
/linux/sound/soc/sof/
A Dtopology.c2090 struct sof_widget_data *wdata, in sof_get_control_data() argument
2124 if (!wdata[i].control) { in sof_get_control_data()
2130 wdata[i].pdata = wdata[i].control->control_data->data; in sof_get_control_data()
2131 if (!wdata[i].pdata) in sof_get_control_data()
2139 *size += wdata[i].pdata->size; in sof_get_control_data()
2142 switch (wdata[i].control->cmd) { in sof_get_control_data()
2179 sizeof(*wdata), in sof_process_load()
2182 if (!wdata) in sof_process_load()
2231 wdata[i].pdata->data, in sof_process_load()
2232 wdata[i].pdata->size); in sof_process_load()
[all …]
/linux/drivers/net/usb/
A Dcx82310_eth.c55 u8 *wdata, int wlen, u8 *rdata, int rlen) in cx82310_cmd() argument
66 if (wdata) in cx82310_cmd()
67 memcpy(buf + 4, wdata, min_t(int, wlen, CMD_PACKET_SIZE - 4)); in cx82310_cmd()
/linux/drivers/media/usb/hdpvr/
A 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/drivers/soc/mediatek/
A Dmtk-pmic-wrap.c1103 int (*pwrap_write)(struct pmic_wrapper *wrp, u32 adr, u32 wdata);
1272 static int pwrap_write16(struct pmic_wrapper *wrp, u32 adr, u32 wdata) in pwrap_write16() argument
1283 pwrap_writel(wrp, wdata, PWRAP_SWINF_2_WDATA_31_0); in pwrap_write16()
1286 pwrap_writel(wrp, BIT(31) | ((adr >> 1) << 16) | wdata, in pwrap_write16()
1293 static int pwrap_write32(struct pmic_wrapper *wrp, u32 adr, u32 wdata) in pwrap_write32() argument
1305 ((wdata >> (msb * 16)) & 0xffff), in pwrap_write32()
1322 static int pwrap_write(struct pmic_wrapper *wrp, u32 adr, u32 wdata) in pwrap_write() argument
1324 return wrp->slave->pwrap_write(wrp, adr, wdata); in pwrap_write()
1332 static int pwrap_regmap_write(void *context, u32 adr, u32 wdata) in pwrap_regmap_write() argument
1334 return pwrap_write(context, adr, wdata); in pwrap_regmap_write()
/linux/drivers/iio/imu/st_lsm6dsx/
A Dst_lsm6dsx_buffer.c237 __le16 wdata; in st_lsm6dsx_update_watermark() local
271 wdata = cpu_to_le16(fifo_watermark); in st_lsm6dsx_update_watermark()
274 &wdata, sizeof(wdata)); in st_lsm6dsx_update_watermark()
/linux/sound/ppc/
A Ddaca.c41 unsigned short wdata = 0x00; in daca_init_client() local
48 2, (unsigned char*)&wdata); in daca_init_client()
/linux/drivers/i2c/
A Di2c-core-acpi.c27 u16 wdata; member
680 gsb->wdata = status; in i2c_acpi_space_handler()
685 gsb->wdata); in i2c_acpi_space_handler()

Completed in 116 milliseconds

12