/linux-6.6.21/drivers/hid/ |
D | hid-wiimote-core.c | 45 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 …]
|
D | hid-wiimote-modules.c | 62 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 …]
|
D | hid-wiimote.h | 194 struct wiimote_data *wdata); 196 struct wiimote_data *wdata); 198 void (*in_keys) (struct wiimote_data *wdata, const __u8 *keys); 199 void (*in_accel) (struct wiimote_data *wdata, const __u8 *accel); 200 void (*in_ir) (struct wiimote_data *wdata, const __u8 *ir, bool packed, 202 void (*in_mp) (struct wiimote_data *wdata, const __u8 *mp); 203 void (*in_ext) (struct wiimote_data *wdata, const __u8 *ext); 264 void __wiimote_schedule(struct wiimote_data *wdata); 266 extern void wiiproto_req_drm(struct wiimote_data *wdata, __u8 drm); 267 extern void wiiproto_req_rumble(struct wiimote_data *wdata, __u8 rumble); [all …]
|
D | hid-wiimote-debug.c | 18 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 …]
|
D | hid-lg4ff.c | 85 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-6.6.21/drivers/firmware/efi/ |
D | efibc.c | 41 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()
|
/linux-6.6.21/fs/smb/client/ |
D | file.c | 2419 struct cifs_writedata *wdata = container_of(refcount, in cifs_writedata_release() local 2422 if (wdata->mr) { in cifs_writedata_release() 2423 smbd_deregister_mr(wdata->mr); in cifs_writedata_release() 2424 wdata->mr = NULL; in cifs_writedata_release() 2428 if (wdata->cfile) in cifs_writedata_release() 2429 cifsFileInfo_put(wdata->cfile); in cifs_writedata_release() 2431 kfree(wdata); in cifs_writedata_release() 2439 cifs_writev_requeue(struct cifs_writedata *wdata) in cifs_writev_requeue() argument 2442 struct inode *inode = d_inode(wdata->cfile->dentry); in cifs_writev_requeue() 2444 unsigned int rest_len = wdata->bytes; in cifs_writev_requeue() [all …]
|
D | smb2pdu.c | 4590 struct cifs_writedata *wdata = mid->callback_data; in smb2_writev_callback() local 4591 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in smb2_writev_callback() 4592 struct TCP_Server_Info *server = wdata->server; in smb2_writev_callback() 4597 WARN_ONCE(wdata->server != mid->server, in smb2_writev_callback() 4599 wdata->server, mid->server); in smb2_writev_callback() 4605 wdata->result = smb2_check_receive(mid, server, 0); in smb2_writev_callback() 4606 if (wdata->result != 0) in smb2_writev_callback() 4616 if (written > wdata->bytes) in smb2_writev_callback() 4619 if (written < wdata->bytes) in smb2_writev_callback() 4620 wdata->result = -ENOSPC; in smb2_writev_callback() [all …]
|
/linux-6.6.21/drivers/platform/x86/ |
D | msi-laptop.c | 158 u8 wdata = 0, rdata; in get_lcd_level() local 161 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, &wdata, 1, in get_lcd_level() 171 u8 wdata = 4, rdata; in get_auto_brightness() local 174 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, &wdata, 1, in get_auto_brightness() 184 u8 wdata[2], rdata; in set_auto_brightness() local 187 wdata[0] = 4; in set_auto_brightness() 189 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, wdata, 1, 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() [all …]
|
D | msi-ec.c | 739 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()
|
/linux-6.6.21/drivers/media/usb/pvrusb2/ |
D | pvrusb2-i2c-core.c | 164 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-6.6.21/drivers/net/wireless/realtek/rtw88/ |
D | wow.c | 66 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() 89 rtw_wow_pattern_write_cam(rtwdev, addr, wdata); 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() [all …]
|
/linux-6.6.21/drivers/pinctrl/spear/ |
D | pinctrl-plgpio.c | 45 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 …]
|
/linux-6.6.21/drivers/media/pci/cx23885/ |
D | cx23885-i2c.c | 72 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-6.6.21/drivers/iio/pressure/ |
D | mprls0025pa.c | 175 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()
|
/linux-6.6.21/drivers/media/pci/cx25821/ |
D | cx25821-i2c.c | 71 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-6.6.21/drivers/spmi/ |
D | spmi-mtk-pmif.c | 34 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()
|
/linux-6.6.21/sound/soc/sof/ |
D | ipc3-topology.c | 776 struct sof_widget_data *wdata, size_t *size) in sof_get_control_data() argument 793 wdata[i].control = sm->dobj.private; in sof_get_control_data() 797 wdata[i].control = sbe->dobj.private; in sof_get_control_data() 801 wdata[i].control = se->dobj.private; in sof_get_control_data() 809 if (!wdata[i].control) { in sof_get_control_data() 814 cdata = wdata[i].control->ipc_control_data; in sof_get_control_data() 821 wdata[i].pdata = cdata->data->data; in sof_get_control_data() 822 wdata[i].pdata_size = cdata->data->size; 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() [all …]
|
/linux-6.6.21/drivers/misc/ |
D | xilinx_sdfec.c | 462 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 563 wdata = (max_schedule | no_final_parity | special_qc | norm_type | in xsdfec_reg2_write() 576 wdata); in xsdfec_reg2_write() 583 u32 wdata; in xsdfec_reg3_write() local [all …]
|
/linux-6.6.21/drivers/media/usb/dvb-usb-v2/ |
D | mxl111sf-i2c.c | 308 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-6.6.21/drivers/net/ethernet/sunplus/ |
D | spl2sw_mdio.c | 18 static int spl2sw_mdio_access(struct spl2sw_common *comm, u8 cmd, u8 addr, u8 regnum, u16 wdata) in spl2sw_mdio_access() argument 31 reg2 = FIELD_PREP(MAC_CPU_PHY_WT_DATA, wdata) | FIELD_PREP(MAC_CPU_PHY_CMD, cmd) | in spl2sw_mdio_access()
|
/linux-6.6.21/drivers/acpi/ |
D | ec.c | 153 const u8 *wdata; member 683 acpi_ec_write_data(ec, t->wdata[t->wi++]); in advance_transaction() 820 if (!ec || (!t) || (t->wlen && !t->wdata) || (t->rlen && !t->rdata)) in acpi_ec_transaction() 847 .wdata = NULL, .rdata = &d, in acpi_ec_burst_enable() 856 .wdata = NULL, .rdata = NULL, in acpi_ec_burst_disable() 868 .wdata = &address, .rdata = &d, in acpi_ec_read() 878 u8 wdata[2] = { address, data }; in acpi_ec_write() local 880 .wdata = wdata, .rdata = NULL, in acpi_ec_write() 914 const u8 *wdata, unsigned wdata_len, in ec_transaction() argument 918 .wdata = wdata, .rdata = rdata, in ec_transaction()
|
/linux-6.6.21/drivers/net/usb/ |
D | cx82310_eth.c | 55 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-6.6.21/drivers/media/usb/hdpvr/ |
D | hdpvr-i2c.c | 51 unsigned char addr, char *wdata, int wlen, in hdpvr_i2c_read() argument 60 memcpy(dev->i2c_buf, wdata, wlen); in hdpvr_i2c_read()
|
/linux-6.6.21/sound/ppc/ |
D | daca.c | 41 unsigned short wdata = 0x00; in daca_init_client() local 48 2, (unsigned char*)&wdata); in daca_init_client()
|