| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_resource.c | 133 struct ttm_validate_buffer val_buf; in vmw_resource_release() local 135 val_buf.bo = bo; in vmw_resource_release() 136 val_buf.num_shared = 0; in vmw_resource_release() 137 res->func->unbind(res, false, &val_buf); in vmw_resource_release() 373 struct ttm_validate_buffer *val_buf, in vmw_resource_do_validate() argument 387 val_buf->bo) || in vmw_resource_do_validate() 388 (!func->needs_guest_memory && val_buf->bo))) { in vmw_resource_do_validate() 389 ret = func->bind(res, val_buf); in vmw_resource_do_validate() 520 struct ttm_validate_buffer *val_buf) in vmw_resource_check_buffer() argument 534 val_buf->bo = &res->guest_memory_bo->tbo; in vmw_resource_check_buffer() [all …]
|
| H A D | vmwgfx_streamoutput.c | 58 struct ttm_validate_buffer *val_buf); 60 struct ttm_validate_buffer *val_buf); 139 struct ttm_validate_buffer *val_buf) in vmw_dx_streamoutput_bind() argument 142 struct ttm_buffer_object *bo = val_buf->bo; in vmw_dx_streamoutput_bind() 194 struct ttm_validate_buffer *val_buf) in vmw_dx_streamoutput_unbind() argument 211 vmw_bo_fence_single(val_buf->bo, fence); in vmw_dx_streamoutput_unbind()
|
| H A D | vmwgfx_context.c | 51 struct ttm_validate_buffer *val_buf); 54 struct ttm_validate_buffer *val_buf); 58 struct ttm_validate_buffer *val_buf); 61 struct ttm_validate_buffer *val_buf); 342 struct ttm_validate_buffer *val_buf) in vmw_gb_context_bind() argument 349 struct ttm_buffer_object *bo = val_buf->bo; in vmw_gb_context_bind() 370 struct ttm_validate_buffer *val_buf) in vmw_gb_context_unbind() argument 373 struct ttm_buffer_object *bo = val_buf->bo; in vmw_gb_context_unbind() 509 struct ttm_validate_buffer *val_buf) in vmw_dx_context_bind() argument 516 struct ttm_buffer_object *bo = val_buf->bo; in vmw_dx_context_bind() [all …]
|
| H A D | vmwgfx_shader.c | 65 struct ttm_validate_buffer *val_buf); 68 struct ttm_validate_buffer *val_buf); 73 struct ttm_validate_buffer *val_buf); 76 struct ttm_validate_buffer *val_buf); 248 struct ttm_validate_buffer *val_buf) in vmw_gb_shader_bind() argument 255 struct ttm_buffer_object *bo = val_buf->bo; in vmw_gb_shader_bind() 276 struct ttm_validate_buffer *val_buf) in vmw_gb_shader_unbind() argument 305 vmw_bo_fence_single(val_buf->bo, fence); in vmw_gb_shader_unbind() 448 struct ttm_validate_buffer *val_buf) in vmw_dx_shader_bind() argument 451 struct ttm_buffer_object *bo = val_buf->bo; in vmw_dx_shader_bind() [all …]
|
| H A D | vmwgfx_cotable.c | 125 struct ttm_validate_buffer *val_buf); 128 struct ttm_validate_buffer *val_buf); 224 struct ttm_validate_buffer *val_buf) in vmw_cotable_bind() argument 233 val_buf->bo = &res->guest_memory_bo->tbo; in vmw_cotable_bind() 323 struct ttm_validate_buffer *val_buf) in vmw_cotable_unbind() argument 327 struct ttm_buffer_object *bo = val_buf->bo; in vmw_cotable_unbind()
|
| H A D | vmwgfx_resource_priv.h | 96 struct ttm_validate_buffer *val_buf); 99 struct ttm_validate_buffer *val_buf);
|
| H A D | vmwgfx_validation.c | 253 struct ttm_validate_buffer *val_buf; in vmw_validation_add_bo() local 264 val_buf = &bo_node->base; in vmw_validation_add_bo() 266 val_buf->bo = &vbo->tbo; in vmw_validation_add_bo() 267 val_buf->num_shared = 0; in vmw_validation_add_bo() 268 list_add_tail(&val_buf->head, &ctx->bo_list); in vmw_validation_add_bo()
|
| H A D | vmwgfx_surface.c | 66 struct ttm_validate_buffer *val_buf); 69 struct ttm_validate_buffer *val_buf); 74 struct ttm_validate_buffer *val_buf); 77 struct ttm_validate_buffer *val_buf); 458 struct ttm_validate_buffer *val_buf, in vmw_legacy_srf_dma() argument 468 BUG_ON(!val_buf->bo); in vmw_legacy_srf_dma() 474 vmw_bo_get_guest_ptr(val_buf->bo, &ptr); in vmw_legacy_srf_dma() 486 vmw_bo_fence_single(val_buf->bo, fence); in vmw_legacy_srf_dma() 507 struct ttm_validate_buffer *val_buf) in vmw_legacy_srf_bind() argument 512 return vmw_legacy_srf_dma(res, val_buf, true); in vmw_legacy_srf_bind() [all …]
|
| /linux/drivers/base/regmap/ |
| H A D | regmap-sdw.c | 12 static int regmap_sdw_write(void *context, const void *val_buf, size_t val_size) in regmap_sdw_write() argument 17 u32 addr = le32_to_cpu(*(const __le32 *)val_buf); in regmap_sdw_write() 18 const u8 *val = val_buf; in regmap_sdw_write() 25 const void *val_buf, size_t val_size) in regmap_sdw_gather_write() argument 31 return sdw_nwrite_no_pm(slave, addr, val_size, val_buf); in regmap_sdw_gather_write() 36 void *val_buf, size_t val_size) in regmap_sdw_read() argument 42 return sdw_nread_no_pm(slave, addr, val_size, val_buf); in regmap_sdw_read()
|
| H A D | regmap-spi-avmm.c | 580 const void *val_buf, size_t val_len) in regmap_spi_avmm_gather_write() argument 588 return do_reg_access(context, false, *(u32 *)reg_buf, (u32 *)val_buf, in regmap_spi_avmm_gather_write() 604 void *val_buf, size_t val_len) in regmap_spi_avmm_read() argument 612 return do_reg_access(context, true, *(u32 *)reg_buf, val_buf, in regmap_spi_avmm_read()
|
| /linux/drivers/iio/temperature/ |
| H A D | iqs620at-temp.c | 28 __le16 val_buf; in iqs620_temp_read_raw() local 33 &val_buf, sizeof(val_buf)); in iqs620_temp_read_raw() 37 *val = le16_to_cpu(val_buf); in iqs620_temp_read_raw()
|
| /linux/drivers/iio/accel/ |
| H A D | adxl367_spi.c | 52 void *val_buf, size_t val_size) in adxl367_read() argument 58 st->reg_read_xfer[1].rx_buf = val_buf; in adxl367_read() 64 static int adxl367_write(void *context, const void *val_buf, size_t val_size) in adxl367_write() argument 68 st->reg_write_xfer[1].tx_buf = val_buf; in adxl367_write()
|
| /linux/drivers/hwmon/ |
| H A D | lm75.c | 119 u8 val_buf[3]; member 654 .data.in = data->val_buf, in lm75_i3c_reg_read() 669 *val = data->val_buf[0]; in lm75_i3c_reg_read() 671 *val = data->val_buf[0] | (data->val_buf[1] << 8); in lm75_i3c_reg_read() 673 *val = data->val_buf[1] | (data->val_buf[0] << 8); in lm75_i3c_reg_read() 686 .data.out = data->val_buf, in lm75_i3c_reg_write() 690 data->val_buf[0] = reg; in lm75_i3c_reg_write() 695 data->val_buf[1] = val & 0xff; in lm75_i3c_reg_write() 697 data->val_buf[1] = val & 0xff; in lm75_i3c_reg_write() 698 data->val_buf[2] = (val >> 8) & 0xff; in lm75_i3c_reg_write() [all …]
|
| H A D | tmp108.c | 369 u8 reg_buf[1], val_buf[2]; in tmp108_i3c_reg_read() local 379 .data.in = val_buf, in tmp108_i3c_reg_read() 393 *val = val_buf[0] << 8; in tmp108_i3c_reg_read() 395 *val |= val_buf[1]; in tmp108_i3c_reg_read() 404 u8 val_buf[3]; in tmp108_i3c_reg_write() local 409 .data.out = val_buf, in tmp108_i3c_reg_write() 413 val_buf[0] = reg; in tmp108_i3c_reg_write() 414 val_buf[1] = (val >> 8) & 0xff; in tmp108_i3c_reg_write() 419 val_buf[2] = val & 0xff; in tmp108_i3c_reg_write()
|
| /linux/drivers/net/can/m_can/ |
| H A D | tcan4x5x-regmap.c | 48 void *val_buf, size_t val_len) in tcan4x5x_regmap_read() argument 72 xfer[1].rx_buf = val_buf; in tcan4x5x_regmap_read() 88 memcpy(val_buf, buf_rx->data, val_len); in tcan4x5x_regmap_read()
|
| /linux/drivers/iio/imu/bmi270/ |
| H A D | bmi270_spi.c | 17 size_t reg_size, void *val_buf, in bmi270_regmap_spi_read() argument 20 return spi_write_then_read(spi, reg_buf, reg_size, val_buf, val_size); in bmi270_regmap_spi_read()
|
| /linux/drivers/iio/imu/smi330/ |
| H A D | smi330_spi.c | 12 size_t reg_size, void *val_buf, in smi330_regmap_spi_read() argument 25 return spi_write_then_read(spi, reg, ARRAY_SIZE(reg), val_buf, in smi330_regmap_spi_read()
|
| H A D | smi330_i2c.c | 21 size_t reg_size, void *val_buf, in smi330_regmap_i2c_read() argument 56 memcpy(val_buf, priv->rx_buffer + SMI330_NUM_DUMMY_BYTES, val_size); in smi330_regmap_i2c_read()
|
| /linux/drivers/iio/imu/bmi323/ |
| H A D | bmi323_spi.c | 20 size_t reg_size, void *val_buf, in bmi323_regmap_spi_read() argument 25 return spi_write_then_read(spi, reg_buf, reg_size, val_buf, val_size); in bmi323_regmap_spi_read()
|
| H A D | bmi323_i2c.c | 25 size_t reg_size, void *val_buf, in bmi323_regmap_i2c_read() argument 46 memcpy(val_buf, priv->i2c_rx_buffer + BMI323_I2C_DUMMY, val_size); in bmi323_regmap_i2c_read()
|
| /linux/drivers/iio/chemical/ |
| H A D | sunrise_co2.c | 49 size_t reg_size, void *val_buf, size_t val_size) in sunrise_regmap_read() argument 80 memcpy(val_buf, &data.block[1], data.block[0]); in sunrise_regmap_read() 85 static int sunrise_regmap_write(void *context, const void *val_buf, size_t count) in sunrise_regmap_write() argument 97 memcpy(&data.block[1], (u8 *)val_buf + 1, count); in sunrise_regmap_write() 106 I2C_SMBUS_WRITE, ((u8 *)val_buf)[0], in sunrise_regmap_write()
|
| /linux/sound/soc/codecs/ |
| H A D | rtq9124.c | 376 static int rtq9124_regmap_read(void *context, const void *reg_buf, size_t reg_size, void *val_buf, in rtq9124_regmap_read() argument 382 u32 *val = val_buf; in rtq9124_regmap_read() 385 ret = i2c_smbus_read_i2c_block_data(i2c, reg, size, val_buf); in rtq9124_regmap_read() 391 *val = size == 4 ? be32_to_cpup(val_buf) : be16_to_cpup(val_buf); in rtq9124_regmap_read()
|
| /linux/drivers/mfd/ |
| H A D | acer-ec-a500.c | 37 void *val_buf, size_t val_sizel) in a500_ec_read() argument 41 u16 *ret_val = val_buf; in a500_ec_read()
|
| /linux/drivers/input/touchscreen/ |
| H A D | iqs5xx.c | 172 __be16 val_buf; in iqs5xx_read_word() local 175 error = iqs5xx_read_burst(client, reg, &val_buf, sizeof(val_buf)); in iqs5xx_read_word() 179 *val = be16_to_cpu(val_buf); in iqs5xx_read_word() 221 __be16 val_buf = cpu_to_be16(val); in iqs5xx_write_word() local 223 return iqs5xx_write_burst(client, reg, &val_buf, sizeof(val_buf)); in iqs5xx_write_word()
|
| /linux/drivers/input/misc/ |
| H A D | iqs7222.c | 1687 __le16 val_buf; in iqs7222_read_word() local 1690 error = iqs7222_read_burst(iqs7222, reg, &val_buf, sizeof(val_buf)); in iqs7222_read_word() 1694 *val = le16_to_cpu(val_buf); in iqs7222_read_word() 1759 __le16 val_buf = cpu_to_le16(val); in iqs7222_write_word() local 1761 return iqs7222_write_burst(iqs7222, reg, &val_buf, sizeof(val_buf)); in iqs7222_write_word() 1880 __le16 *val_buf; in iqs7222_dev_init() local 1881 u16 val_len = dev_desc->reg_grps[i].val_len ? : num_col * sizeof(*val_buf); in iqs7222_dev_init() 1891 val_buf = kcalloc(num_col, sizeof(__le16), GFP_KERNEL); in iqs7222_dev_init() 1892 if (!val_buf) in iqs7222_dev_init() 1899 val_buf, val_len); in iqs7222_dev_init() [all …]
|