Home
last modified time | relevance | path

Searched refs:write_buf (Results 1 – 25 of 54) sorted by relevance

123

/linux-6.6.21/sound/soc/codecs/
Drt5514-spi.c323 u8 write_buf[8]; in rt5514_spi_burst_read() local
335 write_buf[0] = spi_cmd; in rt5514_spi_burst_read()
336 write_buf[1] = ((addr + offset) & 0xff000000) >> 24; in rt5514_spi_burst_read()
337 write_buf[2] = ((addr + offset) & 0x00ff0000) >> 16; in rt5514_spi_burst_read()
338 write_buf[3] = ((addr + offset) & 0x0000ff00) >> 8; in rt5514_spi_burst_read()
339 write_buf[4] = ((addr + offset) & 0x000000ff) >> 0; in rt5514_spi_burst_read()
345 x[0].tx_buf = write_buf; in rt5514_spi_burst_read()
349 x[1].tx_buf = write_buf; in rt5514_spi_burst_read()
365 write_buf[0] = rxbuf[i + 0]; in rt5514_spi_burst_read()
366 write_buf[1] = rxbuf[i + 1]; in rt5514_spi_burst_read()
[all …]
/linux-6.6.21/tools/testing/selftests/arm64/fp/
Dsve-ptrace.c330 void *write_buf; in ptrace_set_sve_get_sve_data() local
341 write_buf = malloc(data_size); in ptrace_set_sve_get_sve_data()
342 if (!write_buf) { in ptrace_set_sve_get_sve_data()
347 write_sve = write_buf; in ptrace_set_sve_get_sve_data()
356 fill_buf(write_buf + SVE_PT_SVE_ZREG_OFFSET(vq, i), in ptrace_set_sve_get_sve_data()
360 fill_buf(write_buf + SVE_PT_SVE_PREG_OFFSET(vq, i), in ptrace_set_sve_get_sve_data()
363 fill_buf(write_buf + SVE_PT_SVE_FPSR_OFFSET(vq), SVE_PT_SVE_FPSR_SIZE); in ptrace_set_sve_get_sve_data()
364 fill_buf(write_buf + SVE_PT_SVE_FPCR_OFFSET(vq), SVE_PT_SVE_FPCR_SIZE); in ptrace_set_sve_get_sve_data()
392 if (memcmp(write_buf + SVE_PT_SVE_ZREG_OFFSET(vq, i), in ptrace_set_sve_get_sve_data()
401 if (memcmp(write_buf + SVE_PT_SVE_PREG_OFFSET(vq, i), in ptrace_set_sve_get_sve_data()
[all …]
Dza-ptrace.c192 void *write_buf; in ptrace_set_get_data() local
202 write_buf = malloc(data_size); in ptrace_set_get_data()
203 if (!write_buf) { in ptrace_set_get_data()
208 write_za = write_buf; in ptrace_set_get_data()
215 fill_buf(write_buf + ZA_PT_ZA_OFFSET, ZA_PT_ZA_SIZE(vq)); in ptrace_set_get_data()
237 ksft_test_result(memcmp(write_buf + ZA_PT_ZA_OFFSET, in ptrace_set_get_data()
245 free(write_buf); in ptrace_set_get_data()
/linux-6.6.21/samples/seccomp/
Dbpf-fancy.c55 JEQ(STDOUT_FILENO, JUMP(&l, write_buf)), in main()
56 JEQ(STDERR_FILENO, JUMP(&l, write_buf)), in main()
59 LABEL(&l, write_buf), in main()
/linux-6.6.21/drivers/hwmon/pmbus/
Dadm1266.c62 u8 write_buf[ADM1266_PMBUS_BLOCK_MAX + 1] ____cacheline_aligned; member
90 .buf = data->write_buf, in adm1266_pmbus_block_xfer()
432 char write_buf[6]; in adm1266_set_rtc() local
437 memset(write_buf, 0, sizeof(write_buf)); in adm1266_set_rtc()
440 write_buf[2 + i] = (kt >> (i * 8)) & 0xFF; in adm1266_set_rtc()
442 return i2c_smbus_write_block_data(data->client, ADM1266_SET_RTC, sizeof(write_buf), in adm1266_set_rtc()
443 write_buf); in adm1266_set_rtc()
/linux-6.6.21/drivers/gnss/
Dcore.c151 if (copy_from_user(gdev->write_buf, buf, n)) { in gnss_write()
164 ret = gdev->ops->write_raw(gdev, gdev->write_buf, n); in gnss_write()
218 kfree(gdev->write_buf); in gnss_device_release()
261 gdev->write_buf = kzalloc(GNSS_WRITE_BUF_SIZE, GFP_KERNEL); in gnss_allocate_device()
262 if (!gdev->write_buf) in gnss_allocate_device()
/linux-6.6.21/drivers/mtd/lpddr/
Dlpddr2_nvm.c322 u_char *write_buf = (u_char *)buf; in lpddr2_nvm_write() local
336 my_data = write_buf[tot_len]; in lpddr2_nvm_write()
337 my_data += (write_buf[tot_len+1]) << 8; in lpddr2_nvm_write()
339 my_data += (write_buf[tot_len+2]) << 16; in lpddr2_nvm_write()
340 my_data += (write_buf[tot_len+3]) << 24; in lpddr2_nvm_write()
353 0x00, add, current_len, write_buf + tot_len); in lpddr2_nvm_write()
/linux-6.6.21/drivers/mtd/nand/raw/
Dnand_legacy.c76 chip->legacy.write_buf(chip, &byte, 1); in nand_write_byte()
106 chip->legacy.write_buf(chip, (uint8_t *)&word, 2); in nand_write_byte16()
606 if (!chip->legacy.write_buf || chip->legacy.write_buf == nand_write_buf) in nand_legacy_set_defaults()
607 chip->legacy.write_buf = busw ? nand_write_buf16 : nand_write_buf; in nand_legacy_set_defaults()
Dplat_nand.c79 data->chip.legacy.write_buf = pdata->ctrl.write_buf; in plat_nand_probe()
Dsocrates_nand.c171 nand_chip->legacy.write_buf = socrates_nand_write_buf; in socrates_nand_probe()
Dpasemi_nand.c159 chip->legacy.write_buf = pasemi_write_buf; in pasemi_nand_probe()
Dlpc32xx_slc.c696 chip->legacy.write_buf(chip, chip->oob_poi, mtd->oobsize); in lpc32xx_nand_write_page_syndrome()
714 chip->legacy.write_buf(chip, chip->oob_poi, mtd->oobsize); in lpc32xx_nand_write_page_raw_syndrome()
896 chip->legacy.write_buf = lpc32xx_nand_write_buf; in lpc32xx_nand_probe()
Dxway_nand.c191 data->chip.legacy.write_buf = xway_write_buf; in xway_nand_probe()
/linux-6.6.21/drivers/platform/x86/intel/telemetry/
Dpltdrv.c249 u32 write_buf; in telemetry_plt_config_ioss_event() local
251 write_buf = evt_id | TELEM_EVENT_ENABLE; in telemetry_plt_config_ioss_event()
252 write_buf <<= BITS_PER_BYTE; in telemetry_plt_config_ioss_event()
253 write_buf |= index; in telemetry_plt_config_ioss_event()
256 IOSS_TELEM_EVENT_WRITE, &write_buf, in telemetry_plt_config_ioss_event()
262 u32 write_buf; in telemetry_plt_config_pss_event() local
265 write_buf = evt_id | TELEM_EVENT_ENABLE; in telemetry_plt_config_pss_event()
267 index, 0, &write_buf, NULL); in telemetry_plt_config_pss_event()
/linux-6.6.21/drivers/hid/
Dhid-steelseries.c382 u8 *write_buf; in steelseries_headset_arctis_1_fetch_battery() local
386 write_buf = kmemdup(arctis_1_battery_request, sizeof(arctis_1_battery_request), GFP_KERNEL); in steelseries_headset_arctis_1_fetch_battery()
387 if (!write_buf) in steelseries_headset_arctis_1_fetch_battery()
391 write_buf, sizeof(arctis_1_battery_request), in steelseries_headset_arctis_1_fetch_battery()
397 kfree(write_buf); in steelseries_headset_arctis_1_fetch_battery()
/linux-6.6.21/include/linux/mtd/
Dplatnand.h59 void (*write_buf)(struct nand_chip *chip, const uint8_t *buf, int len); member
/linux-6.6.21/include/linux/
Dgnss.h55 char *write_buf; member
Dserdev.h85 int (*write_buf)(struct serdev_controller *, const unsigned char *, size_t); member
/linux-6.6.21/drivers/tty/serdev/
Dcore.c241 if (!ctrl || !ctrl->ops->write_buf) in serdev_device_write_buf()
244 return ctrl->ops->write_buf(ctrl, buf, count); in serdev_device_write_buf()
278 if (!ctrl || !ctrl->ops->write_buf || !serdev->ops->write_wakeup) in serdev_device_write()
288 ret = ctrl->ops->write_buf(ctrl, buf, count); in serdev_device_write()
/linux-6.6.21/security/tomoyo/
Dcommon.c668 char *data = head->write_buf; in tomoyo_write_profile()
887 char *data = head->write_buf; in tomoyo_write_manager()
1166 char *data = head->write_buf; in tomoyo_write_domain()
1690 char *buf = head->write_buf; in tomoyo_read_pid()
1754 .data = head->write_buf, in tomoyo_write_exception()
2257 char *data = head->write_buf; in tomoyo_write_answer()
2388 char *data = head->write_buf; in tomoyo_write_stat()
2487 head->write_buf = kzalloc(head->writebuf_size, GFP_NOFS); in tomoyo_open_control()
2488 if (!head->write_buf) { in tomoyo_open_control()
2659 cp0 = head->write_buf; in tomoyo_write_control()
[all …]
Dgc.c631 kfree(head->write_buf); in tomoyo_gc_thread()
659 is_write = head->write_buf != NULL; in tomoyo_notify_gc()
663 kfree(head->write_buf); in tomoyo_notify_gc()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/link/protocols/
Dlink_ddc.h59 uint8_t *write_buf,
Dlink_ddc.c318 uint8_t *write_buf, in link_query_ddc_data() argument
355 payload.data = write_buf; in link_query_ddc_data()
384 &payloads, address, write_size, write_buf, true); in link_query_ddc_data()
/linux-6.6.21/drivers/media/radio/
Dradio-wl1273.c79 char *write_buf; member
1066 if (copy_from_user(radio->write_buf + 1, buf, val)) { in wl1273_fm_fops_write()
1072 dev_dbg(radio->dev, "From user: \"%s\"\n", radio->write_buf); in wl1273_fm_fops_write()
1074 radio->write_buf[0] = WL1273_RDS_DATA_SET; in wl1273_fm_fops_write()
1075 core->write_data(core, radio->write_buf, val + 1); in wl1273_fm_fops_write()
2071 radio->write_buf = devm_kzalloc(&pdev->dev, 256, GFP_KERNEL); in wl1273_fm_radio_probe()
2072 if (!radio->write_buf) { in wl1273_fm_radio_probe()
/linux-6.6.21/drivers/mtd/spi-nor/controllers/
Dhisi-sfc.c292 size_t len, const u_char *write_buf) in hisi_spi_nor_write() argument
302 memcpy(host->buffer, write_buf + offset, trans); in hisi_spi_nor_write()

123