Home
last modified time | relevance | path

Searched refs:write_val (Results 1 – 24 of 24) sorted by relevance

/linux/tools/testing/selftests/arm64/abi/
H A Dptrace.c35 uint64_t write_val[MAX_TPIDRS]; in test_tpidr() local
41 write_iov.iov_base = write_val; in test_tpidr()
50 write_val[0] = read_val[0] + 1; in test_tpidr()
56 ksft_test_result(ret == 0 && write_val[0] == read_val[0], in test_tpidr()
79 write_iov.iov_len = sizeof(write_val); in test_tpidr()
81 write_val[i] = read_val[i] + 1; in test_tpidr()
85 write_iov.iov_len == sizeof(write_val), in test_tpidr()
96 memcmp(read_val, write_val, in test_tpidr()
103 read_val[0] == write_val[0] && in test_tpidr()
110 memcpy(write_val, read_val, sizeof(read_val)); in test_tpidr()
[all …]
/linux/tools/testing/selftests/kvm/x86_64/
H A Dhyperv_features.c28 u64 write_val; member
50 vector = wrmsr_safe(msr->idx, msr->write_val); in guest_msr()
70 msr->idx, msr->write_val, msr_val); in guest_msr()
185 msr->write_val = HYPERV_LINUX_OS_ID; in guest_test_msrs_access()
214 msr->write_val = 1; in guest_test_msrs_access()
233 msr->write_val = 1; in guest_test_msrs_access()
252 msr->write_val = 1; in guest_test_msrs_access()
276 msr->write_val = 0; in guest_test_msrs_access()
294 msr->write_val = 0; in guest_test_msrs_access()
321 msr->write_val = 0; in guest_test_msrs_access()
[all …]
/linux/drivers/iio/dac/
H A Dmcp4821.c139 u16 write_val; in mcp4821_write_raw() local
152 write_val = MCP4821_ACTIVE_MODE | val << chan->scan_type.shift; in mcp4821_write_raw()
154 write_val |= MCP4802_SECOND_CHAN; in mcp4821_write_raw()
156 write_buffer = cpu_to_be16(write_val); in mcp4821_write_raw()
H A Dad7293.c638 unsigned int write_val, in ad7293_reg_access() argument
649 ret = ad7293_spi_write(st, reg, (u16)write_val); in ad7293_reg_access()
/linux/drivers/net/dsa/qca/
H A Dqca8k-8xxx.c413 qca8k_regmap_update_bits_eth(struct qca8k_priv *priv, u32 reg, u32 mask, u32 write_val) in qca8k_regmap_update_bits_eth() argument
423 val |= write_val; in qca8k_regmap_update_bits_eth()
474 uint32_t mask, uint32_t write_val) in qca8k_regmap_update_bits_mii() argument
494 val |= write_val; in qca8k_regmap_update_bits_mii()
558 qca8k_regmap_update_bits(void *ctx, uint32_t reg, uint32_t mask, uint32_t write_val) in qca8k_regmap_update_bits() argument
562 if (!qca8k_regmap_update_bits_eth(priv, reg, mask, write_val)) in qca8k_regmap_update_bits()
565 return qca8k_regmap_update_bits_mii(priv, reg, mask, write_val); in qca8k_regmap_update_bits()
628 u32 write_val, clear_val = 0, val; in qca8k_phy_eth_command() local
638 write_val = QCA8K_MDIO_MASTER_BUSY | QCA8K_MDIO_MASTER_EN | in qca8k_phy_eth_command()
643 write_val |= QCA8K_MDIO_MASTER_READ; in qca8k_phy_eth_command()
[all …]
H A Dqca8k-common.c76 int qca8k_rmw(struct qca8k_priv *priv, u32 reg, u32 mask, u32 write_val) in qca8k_rmw() argument
78 return regmap_update_bits(priv->regmap, reg, mask, write_val); in qca8k_rmw()
H A Dqca8k.h510 int qca8k_rmw(struct qca8k_priv *priv, u32 reg, u32 mask, u32 write_val);
/linux/drivers/pci/controller/
H A Dpci-thunder-pem.c218 u64 write_val, read_val; in thunder_pem_bridge_write() local
281 write_val = (((u64)val) << 32) | where_aligned; in thunder_pem_bridge_write()
282 writeq(write_val, pem_pci->pem_reg_base + PEM_CFG_WR); in thunder_pem_bridge_write()
/linux/sound/soc/intel/keembay/
H A Dkmb_platform.c585 u32 write_val; in kmb_dai_hw_params() local
630 write_val = ((config->chan_nr / 2) << TDM_CHANNEL_CONFIG_BIT) | in kmb_dai_hw_params()
634 writel(write_val, kmb_i2s->pss_base + I2S_GEN_CFG_0); in kmb_dai_hw_params()
644 write_val = ((config->chan_nr / 2) << TDM_CHANNEL_CONFIG_BIT) | in kmb_dai_hw_params()
648 writel(write_val, kmb_i2s->pss_base + I2S_GEN_CFG_0); in kmb_dai_hw_params()
/linux/drivers/phy/qualcomm/
H A Dphy-qcom-ipq806x-usb.c146 u32 write_val, tmp = readl(phy_dwc3->base + offset); in usb_phy_write_readback() local
149 write_val = tmp | val; in usb_phy_write_readback()
151 writel(write_val, phy_dwc3->base + offset); in usb_phy_write_readback()
/linux/include/media/drv-intf/
H A Dtea575x.h28 void (*write_val)(struct snd_tea575x *tea, u32 val); member
/linux/drivers/iio/amplifiers/
H A Dada4250.c262 unsigned int write_val, in ada4250_reg_access() argument
270 return regmap_write(st->regmap, reg, write_val); in ada4250_reg_access()
/linux/drivers/hid/
H A Dhid-alps.c166 u8 *read_val, u8 write_val, bool read_flag) in t4_read_write_register() argument
183 input[8] = write_val; in t4_read_write_register()
253 u8 *read_val, u8 write_val, bool read_flag) in u1_read_write_register() argument
270 input[6] = write_val; in u1_read_write_register()
/linux/drivers/iio/frequency/
H A Dadrf6780.c296 unsigned int write_val, in adrf6780_reg_access() argument
304 return adrf6780_spi_write(st, reg, write_val); in adrf6780_reg_access()
H A Dadmv1013.c362 unsigned int write_val, in admv1013_reg_access() argument
370 return admv1013_spi_write(st, reg, write_val); in admv1013_reg_access()
H A Dadmv1014.c468 unsigned int write_val, in admv1014_reg_access() argument
476 return admv1014_spi_write(st, reg, write_val); in admv1014_reg_access()
H A Dadf4377.c476 unsigned int write_val, in adf4377_reg_access() argument
484 return regmap_write(st->regmap, reg, write_val); in adf4377_reg_access()
/linux/drivers/media/radio/
H A Dtea575x.c87 if (tea->ops->write_val) in snd_tea575x_write()
88 return tea->ops->write_val(tea, val); in snd_tea575x_write()
H A Dradio-shark.c150 .write_val = shark_write_val,
/linux/drivers/iio/filter/
H A Dadmv8818.c388 unsigned int write_val, in admv8818_reg_access() argument
396 return regmap_write(st->regmap, reg, write_val); in admv8818_reg_access()
/linux/tools/testing/selftests/alsa/
H A Dmixer-test.c588 snd_ctl_elem_value_t *write_val, in write_and_verify() argument
603 snd_ctl_elem_value_copy(w_val, write_val); in write_and_verify()
609 snd_ctl_elem_value_copy(expected_val, write_val); in write_and_verify()
/linux/drivers/net/ethernet/adi/
H A Dadin1110.c269 u32 write_val; in adin1110_set_bits() local
272 ret = adin1110_read_reg(priv, reg, &write_val); in adin1110_set_bits()
276 set_mask_bits(&write_val, mask, val); in adin1110_set_bits()
278 return adin1110_write_reg(priv, reg, write_val); in adin1110_set_bits()
/linux/drivers/pinctrl/
H A Dpinctrl-cy8c95x0.c614 int write_val; in cy8c95x0_write_regs_mask() local
634 write_val = bitmap_get_value8(tval, i * BANK_SZ); in cy8c95x0_write_regs_mask()
636 ret = cy8c95x0_regmap_update_bits(chip, reg, i, bits, write_val); in cy8c95x0_write_regs_mask()
/linux/sound/pci/hda/
H A Dpatch_ca0132.c3667 unsigned int write_val; in ca0113_mmio_command_set() local
3679 write_val = (target & 0xff); in ca0113_mmio_command_set()
3680 write_val |= (value << 8); in ca0113_mmio_command_set()
3683 writel(write_val, spec->mem_base + 0x204); in ca0113_mmio_command_set()
3706 unsigned int write_val; in ca0113_mmio_command_set_type2() local
3718 write_val = (target & 0xff); in ca0113_mmio_command_set_type2()
3719 write_val |= (value << 8); in ca0113_mmio_command_set_type2()
3722 writel(write_val, spec->mem_base + 0x204); in ca0113_mmio_command_set_type2()