Home
last modified time | relevance | path

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

123

/openbmc/linux/drivers/hid/
H 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()
646 input_set_drvdata(wdata->input, wdata); in wiimote_modules_load()
647 wdata->input->dev.parent = &wdata->hdev->dev; in wiimote_modules_load()
648 wdata->input->id.bustype = wdata->hdev->bus; in wiimote_modules_load()
649 wdata->input->id.vendor = wdata->hdev->vendor; in wiimote_modules_load()
1205 wdata->state.mp, wdata->state.exttype); in wiimote_init_hotplug()
[all …]
H 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()
749 wdata->ir->id.version = wdata->hdev->version; in wiimod_ir_probe()
2806 input_set_drvdata(wdata->mp, wdata); in wiimod_mp_probe()
[all …]
H A Dhid-wiimote.h194 struct wiimote_data *wdata);
196 struct wiimote_data *wdata);
301 return wdata->state.cmd == cmd && wdata->state.opt == opt; in wiimote_cmd_pending()
307 wdata->state.cmd = WIIPROTO_REQ_NULL; in wiimote_cmd_complete()
308 complete(&wdata->state.ready); in wiimote_cmd_complete()
317 wdata->state.cmd = WIIPROTO_REQ_MAX; in wiimote_cmd_abort()
318 complete(&wdata->state.ready); in wiimote_cmd_abort()
328 mutex_lock(&wdata->state.sync); in wiimote_cmd_acquire_noint()
336 wdata->state.cmd = cmd; in wiimote_cmd_set()
337 wdata->state.opt = opt; in wiimote_cmd_set()
[all …]
H 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()
181 dbg->wdata = wdata; in wiidebug_init()
190 wdata->debug = dbg; in wiidebug_init()
[all …]
H A Dhid-lg4ff.c85 struct lg4ff_wheel_data wdata; member
336 if (entry->wdata.combine) { in lg4ff_raw_event()
917 entry->wdata.real_name); in lg4ff_alternate_modes_store()
1043 if (entry->wdata.set_range && range >= entry->wdata.min_range && range <= entry->wdata.max_range) { in lg4ff_range_store()
1045 entry->wdata.range = range; in lg4ff_range_store()
1071 if (!entry->wdata.real_tag || !entry->wdata.real_name) { in lg4ff_real_id_show()
1389 entry->wdata.range = entry->wdata.max_range; in lg4ff_init()
1390 if (entry->wdata.set_range) in lg4ff_init()
1391 entry->wdata.set_range(hid, entry->wdata.range); in lg4ff_init()
1395 entry->wdata.led_state = 0; in lg4ff_init()
[all …]
/openbmc/linux/drivers/firmware/efi/
H A Defibc.c41 efi_char16_t *wdata; in efibc_reboot_notifier_call() local
50 wdata = kmalloc(MAX_DATA_LEN * sizeof(efi_char16_t), GFP_KERNEL); in efibc_reboot_notifier_call()
51 if (!wdata) in efibc_reboot_notifier_call()
55 wdata[l] = str[l]; in efibc_reboot_notifier_call()
56 wdata[l] = L'\0'; in efibc_reboot_notifier_call()
58 efibc_set_variable(L"LoaderEntryOneShot", wdata, l); in efibc_reboot_notifier_call()
60 kfree(wdata); in efibc_reboot_notifier_call()
/openbmc/linux/fs/smb/client/
H A Dfile.c2523 kfree(wdata); in cifs_writedata_release()
2621 cifs_update_eof(CIFS_I(inode), wdata->offset, wdata->bytes); in cifs_writev_complete()
2644 wdata = kzalloc(sizeof(*wdata), GFP_NOFS); in cifs_writedata_alloc()
2651 return wdata; in cifs_writedata_alloc()
2868 if (!wdata) { in cifs_write_back_from_locked_folio()
2921 rc = adjust_credits(wdata->server, &wdata->credits, wdata->bytes); in cifs_write_back_from_locked_folio()
2928 rc = wdata->server->ops->async_writev(wdata, in cifs_write_back_from_locked_folio()
3380 cifs_update_eof(cifsi, wdata->offset, wdata->bytes); in cifs_uncached_writev_complete()
3428 rc = adjust_credits(server, &wdata->credits, wdata->bytes); in cifs_resend_wdata()
3568 if (!wdata) { in cifs_write_from_iter()
[all …]
H A Dsmb2pdu.c4801 if (wdata->mr) { in smb2_writev_callback()
4803 wdata->mr = NULL; in smb2_writev_callback()
4811 wdata->bytes, wdata->result); in smb2_writev_callback()
4819 wdata->offset, wdata->bytes); in smb2_writev_callback()
4843 if (!wdata->server || wdata->replay) in smb2_async_writev()
4899 wdata->mr = smbd_register_mr(server->smbd_conn, &wdata->iter, in smb2_async_writev()
4901 if (!wdata->mr) { in smb2_async_writev()
4928 if (wdata->replay) in smb2_async_writev()
4931 if (wdata->mr) in smb2_async_writev()
4939 if (!wdata->mr) in smb2_async_writev()
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/utils/
H A Dftools.py15 wdata = data.rstrip() + "\n"
17 f.write(wdata)
23 wdata = data.rstrip() + "\n"
25 f.write(wdata)
/openbmc/linux/drivers/platform/x86/
H A Dmsi-laptop.c158 u8 wdata = 0, rdata; in get_lcd_level() local
171 u8 wdata = 4, rdata; in get_auto_brightness() local
184 u8 wdata[2], rdata; in set_auto_brightness() local
187 wdata[0] = 4; in set_auto_brightness()
194 wdata[0] = 0x84; in set_auto_brightness()
195 wdata[1] = (rdata & 0xF7) | (enable ? 8 : 0); in set_auto_brightness()
197 return ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, wdata, 2, in set_auto_brightness()
204 u8 wdata = 0, rdata; in set_device_state() local
221 wdata = rdata & ~mask; in set_device_state()
223 wdata = rdata | mask; in set_device_state()
[all …]
H A Dmsi-ec.c739 u8 wdata; in charge_control_threshold_store() local
742 result = kstrtou8(buf, 10, &wdata); in charge_control_threshold_store()
746 wdata += offset; in charge_control_threshold_store()
747 if (wdata < conf.charge_control.range_min || in charge_control_threshold_store()
748 wdata > conf.charge_control.range_max) in charge_control_threshold_store()
751 result = ec_write(conf.charge_control.address, wdata); in charge_control_threshold_store()
/openbmc/linux/drivers/media/usb/pvrusb2/
H 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 …]
/openbmc/ipmitool/lib/
H A Dipmi_raw.c66 uint8_t * wdata, uint8_t wsize, uint8_t rsize) in ipmi_master_write_read() argument
94 memcpy(rqdata+3, wdata, wsize); in ipmi_master_write_read()
197 uint8_t wdata[IPMI_I2C_MASTER_MAX_SIZE]; in ipmi_rawi2c_main() local
246 memset(wdata, 0, IPMI_I2C_MASTER_MAX_SIZE); in ipmi_rawi2c_main()
253 wdata[wsize] = val; in ipmi_rawi2c_main()
259 printbuf(wdata, wsize, "WRITE DATA"); in ipmi_rawi2c_main()
261 rsp = ipmi_master_write_read(intf, bus, i2caddr, wdata, wsize, rsize); in ipmi_rawi2c_main()
/openbmc/linux/drivers/net/wireless/realtek/rtw88/
H 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 …]
/openbmc/linux/drivers/pinctrl/spear/
H A Dpinctrl-plgpio.c45 u32 wdata; /* write data register */ member
156 plgpio->regs.wdata); in plgpio_direction_output()
159 plgpio->regs.wdata); in plgpio_direction_output()
199 plgpio_reg_set(plgpio->regmap, offset, plgpio->regs.wdata); in plgpio_set_value()
201 plgpio_reg_reset(plgpio->regmap, offset, plgpio->regs.wdata); in plgpio_set_value()
483 plgpio->regs.wdata = val; in plgpio_probe_dt()
649 regmap_read(plgpio->regmap, plgpio->regs.wdata + off, in plgpio_suspend()
650 &plgpio->csave_regs[i].wdata); in plgpio_suspend()
694 plgpio_prepare_reg(wdata, off, mask, tmp); in plgpio_resume()
699 regmap_write(plgpio->regmap, plgpio->regs.wdata + off, in plgpio_resume()
[all …]
/openbmc/u-boot/cmd/aspeed/
H A Ddptest.c1146 int temp = 0, wdata = 0; in Apply_Auto_Mesument() local
1167 writel(wdata, DP_TX_INT_CLEAR); in Apply_Auto_Mesument()
1575 int wdata = 0, temp = 0; in AUX_R() local
1585 wdata = (int)((len << 24) | aux_addr); in AUX_R()
1586 writel(wdata, DP_AUX_ADDR_LEN); in AUX_R()
1599 wdata = (readl(DP_TX_INT_CLEAR) | (temp >> 8)); in AUX_R()
1600 writel(wdata, DP_TX_INT_CLEAR); in AUX_R()
1635 int wdata = 0, temp = 0; in AUX_W() local
1645 wdata = (int)((len << 24) | aux_addr); in AUX_W()
1646 writel(wdata, DP_AUX_ADDR_LEN); in AUX_W()
[all …]
/openbmc/linux/drivers/media/pci/cx23885/
H 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()
/openbmc/linux/drivers/iio/pressure/
H A Dmprls0025pa.c175 u8 wdata[] = {0xAA, 0x00, 0x00}; in mpr_read_pressure() local
182 ret = i2c_master_send(data->client, wdata, sizeof(wdata)); in mpr_read_pressure()
187 if (ret != sizeof(wdata)) { in mpr_read_pressure()
189 (u32)sizeof(wdata)); in mpr_read_pressure()
/openbmc/linux/drivers/media/pci/cx25821/
H 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()
/openbmc/u-boot/drivers/mtd/
H A Drenesas_rpc_hf.c204 static int rpc_hf_xfer(void *addr, u64 wdata, u64 *rdata, in rpc_hf_xfer() argument
230 writeq(cpu_to_be64(wdata), rpc_base + RPC_SMWDR0); in rpc_hf_xfer()
232 writel(cpu_to_be32(wdata), rpc_base + RPC_SMWDR0); in rpc_hf_xfer()
257 static void rpc_hf_write_cmd(void *addr, u64 wdata, enum rpc_hf_size size) in rpc_hf_write_cmd() argument
261 ret = rpc_hf_xfer(addr, wdata, NULL, size, 1); in rpc_hf_write_cmd()
/openbmc/linux/drivers/spmi/
H A Dspmi-mtk-pmif.c34 u32 wdata; member
384 u32 data, wdata, cmd; in pmif_spmi_write_cmd() local
404 memcpy(&wdata, buf, len); in pmif_spmi_write_cmd()
421 pmif_writel(arb, wdata, inf_reg->wdata); in pmif_spmi_write_cmd()
496 arb->chan.wdata = PMIF_SWINF_0_WDATA_31_0 + chan_offset; in mtk_spmi_probe()
/openbmc/linux/sound/soc/sof/
H A Dipc3-topology.c809 if (!wdata[i].control) { in sof_get_control_data()
825 wdata[i].pdata = cdata->chanv; in sof_get_control_data()
830 wdata[i].pdata_size = wdata[i].control->size - in sof_get_control_data()
834 *size += wdata[i].pdata_size; in sof_get_control_data()
870 wdata = kcalloc(widget->num_kcontrols, sizeof(*wdata), GFP_KERNEL); in sof_process_load()
871 if (!wdata) in sof_process_load()
917 if (!wdata[i].pdata_size) in sof_process_load()
921 wdata[i].pdata_size); in sof_process_load()
922 offset += wdata[i].pdata_size; in sof_process_load()
928 kfree(wdata); in sof_process_load()
[all …]
/openbmc/u-boot/include/
H A Dvirtex2.h26 xilinx_wdata_fn wdata; member
37 xilinx_wdata_fn wdata; member
/openbmc/linux/drivers/misc/
H A Dxilinx_sdfec.c462 u32 wdata; in xsdfec_reg0_write() local
477 wdata = k | n; in xsdfec_reg0_write()
489 wdata); in xsdfec_reg0_write()
496 u32 wdata; in xsdfec_reg1_write() local
512 wdata = nm | no_packing | psize; in xsdfec_reg1_write()
523 wdata); in xsdfec_reg1_write()
531 u32 wdata; in xsdfec_reg2_write() local
576 wdata); in xsdfec_reg2_write()
583 u32 wdata; in xsdfec_reg3_write() local
585 wdata = ((qc_off << XSDFEC_REG3_QC_OFF_LSB) | in xsdfec_reg3_write()
[all …]
/openbmc/linux/drivers/acpi/
H A Dec.c153 const u8 *wdata; member
848 .wdata = NULL, .rdata = &d, in acpi_ec_burst_enable()
857 .wdata = NULL, .rdata = NULL, in acpi_ec_burst_disable()
869 .wdata = &address, .rdata = &d, in acpi_ec_read()
882 .wdata = &address, .rdata = &d, in acpi_ec_read_unlocked()
892 u8 wdata[2] = { address, data }; in acpi_ec_write() local
894 .wdata = wdata, .rdata = NULL, in acpi_ec_write()
902 u8 wdata[2] = { address, data }; in acpi_ec_write_unlocked() local
904 .wdata = wdata, .rdata = NULL, in acpi_ec_write_unlocked()
938 const u8 *wdata, unsigned wdata_len, in ec_transaction() argument
[all …]

123