Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/arm64/fp/
H A Dsve-ptrace.c454 void *write_buf; in ptrace_set_sve_get_sve_data() local
465 write_buf = malloc(data_size); in ptrace_set_sve_get_sve_data()
466 if (!write_buf) { in ptrace_set_sve_get_sve_data()
471 write_sve = write_buf; in ptrace_set_sve_get_sve_data()
480 fill_buf(write_buf + SVE_PT_SVE_ZREG_OFFSET(vq, i), in ptrace_set_sve_get_sve_data()
484 fill_buf(write_buf + SVE_PT_SVE_PREG_OFFSET(vq, i), in ptrace_set_sve_get_sve_data()
487 fill_buf(write_buf + SVE_PT_SVE_FPSR_OFFSET(vq), SVE_PT_SVE_FPSR_SIZE); in ptrace_set_sve_get_sve_data()
488 fill_buf(write_buf + SVE_PT_SVE_FPCR_OFFSET(vq), SVE_PT_SVE_FPCR_SIZE); in ptrace_set_sve_get_sve_data()
516 if (memcmp(write_buf + SVE_PT_SVE_ZREG_OFFSET(vq, i), in ptrace_set_sve_get_sve_data()
525 if (memcmp(write_buf + SVE_PT_SVE_PREG_OFFSET(vq, i), in ptrace_set_sve_get_sve_data()
[all …]
H A Dza-ptrace.c194 void *write_buf; in ptrace_set_get_data() local
204 write_buf = malloc(data_size); in ptrace_set_get_data()
205 if (!write_buf) { in ptrace_set_get_data()
210 write_za = write_buf; in ptrace_set_get_data()
217 fill_buf(write_buf + ZA_PT_ZA_OFFSET, ZA_PT_ZA_SIZE(vq)); in ptrace_set_get_data()
239 ksft_test_result(memcmp(write_buf + ZA_PT_ZA_OFFSET, in ptrace_set_get_data()
247 free(write_buf); in ptrace_set_get_data()
/linux/drivers/input/joystick/
H A Dadafruit-seesaw.c117 u8 write_buf[sizeof(reg) + sizeof(value)]; in seesaw_register_write_u8() local
120 put_unaligned_be16(reg, write_buf); in seesaw_register_write_u8()
121 write_buf[sizeof(reg)] = value; in seesaw_register_write_u8()
123 ret = i2c_master_send(client, write_buf, sizeof(write_buf)); in seesaw_register_write_u8()
133 u8 write_buf[sizeof(reg) + sizeof(value)]; in seesaw_register_write_u32() local
136 put_unaligned_be16(reg, write_buf); in seesaw_register_write_u32()
137 put_unaligned_be32(value, write_buf + sizeof(reg)); in seesaw_register_write_u32()
138 ret = i2c_master_send(client, write_buf, sizeof(write_buf)); in seesaw_register_write_u32()
/linux/drivers/hid/intel-thc-hid/intel-quicki2c/
H A Dquicki2c-protocol.c18 u8 *write_buf, int write_buf_len) in quicki2c_init_write_buf() argument
33 memcpy(write_buf, &qcdev->dev_desc.cmd_reg, HIDI2C_REG_LEN); in quicki2c_init_write_buf()
35 memcpy(write_buf + offset, &cmd, cmd_len); in quicki2c_init_write_buf()
39 memcpy(write_buf + offset, &qcdev->dev_desc.data_reg, HIDI2C_REG_LEN); in quicki2c_init_write_buf()
46 memcpy(write_buf + offset, &len, HIDI2C_LENGTH_LEN); in quicki2c_init_write_buf()
48 memcpy(write_buf + offset, data, data_len); in quicki2c_init_write_buf()
/linux/drivers/hid/intel-thc-hid/intel-quickspi/
H A Dquickspi-protocol.c27 struct output_report *write_buf; in write_cmd_to_txdma() local
31 write_buf = (struct output_report *)qsdev->report_buf; in write_cmd_to_txdma()
33 write_buf->output_hdr.report_type = report_type; in write_cmd_to_txdma()
34 write_buf->output_hdr.content_len = cpu_to_le16(report_buf_len); in write_cmd_to_txdma()
35 write_buf->output_hdr.content_id = report_id; in write_cmd_to_txdma()
38 memcpy(write_buf->content, report_buf, report_buf_len); in write_cmd_to_txdma()
42 ret = thc_dma_write(qsdev->thc_hw, write_buf, write_buf_len); in write_cmd_to_txdma()
/linux/drivers/hwmon/pmbus/
H A 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/samples/seccomp/
H A 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/drivers/gnss/
H A 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()
217 kfree(gdev->write_buf); in gnss_device_release()
260 gdev->write_buf = kzalloc(GNSS_WRITE_BUF_SIZE, GFP_KERNEL); in gnss_allocate_device()
261 if (!gdev->write_buf) in gnss_allocate_device()
/linux/drivers/mtd/lpddr/
H A 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/drivers/platform/x86/intel/telemetry/
H A 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/drivers/mtd/nand/raw/
H A 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()
H A Dplat_nand.c79 data->chip.legacy.write_buf = pdata->ctrl.write_buf; in plat_nand_probe()
H A Dsocrates_nand.c171 nand_chip->legacy.write_buf = socrates_nand_write_buf; in socrates_nand_probe()
H A Dpasemi_nand.c159 chip->legacy.write_buf = pasemi_write_buf; in pasemi_nand_probe()
H A Dxway_nand.c190 data->chip.legacy.write_buf = xway_write_buf; in xway_nand_probe()
H A Dndfc.c148 chip->legacy.write_buf = ndfc_write_buf; in ndfc_chip_init()
/linux/drivers/misc/
H A Dpci_endpoint_test.c280 resource_size_t offset, void *write_buf, in pci_endpoint_test_bar_memcmp() argument
283 memset(write_buf, bar_test_pattern[barno], size); in pci_endpoint_test_bar_memcmp()
284 memcpy_toio(test->bar[barno] + offset, write_buf, size); in pci_endpoint_test_bar_memcmp()
288 return memcmp(write_buf, read_buf, size); in pci_endpoint_test_bar_memcmp()
295 void *write_buf __free(kfree) = NULL; in pci_endpoint_test_bar()
316 write_buf = kmalloc(buf_size, GFP_KERNEL); in pci_endpoint_test_bar()
317 if (!write_buf) in pci_endpoint_test_bar()
325 if (pci_endpoint_test_bar_memcmp(test, barno, offset, write_buf, in pci_endpoint_test_bar()
/linux/drivers/media/i2c/
H A Dthp7312.c1443 const u8 *write_buf, u16 write_size) in thp7312_write_buf() argument
1448 ret = i2c_master_send(client, write_buf, write_size); in thp7312_write_buf()
1453 const u8 *write_buf, u16 write_size) in __thp7312_flash_reg_write() argument
1475 memcpy((temp_write_buf + 2), write_buf, write_size); in __thp7312_flash_reg_write()
1487 const u8 *write_buf, u16 write_size, in __thp7312_flash_reg_read() argument
1494 ret = __thp7312_flash_reg_write(thp7312, write_buf, write_size); in __thp7312_flash_reg_read()
1628 u8 *write_buf = thp7312->fw_write_buf; in thp7312_write_download_data_by_unit() local
1634 write_buf[0] = (addr >> 8) & 0xff; in thp7312_write_download_data_by_unit()
1635 write_buf[1] = (addr >> 0) & 0xff; in thp7312_write_download_data_by_unit()
1636 memcpy(&write_buf[2], data, size); in thp7312_write_download_data_by_unit()
[all …]
/linux/include/linux/mtd/
H A Dplatnand.h59 void (*write_buf)(struct nand_chip *chip, const uint8_t *buf, int len); member
/linux/include/linux/
H A Dgnss.h55 char *write_buf; member
/linux/security/tomoyo/
H A 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()
2366 char *data = head->write_buf; in tomoyo_write_answer()
2497 char *data = head->write_buf; in tomoyo_write_stat()
2596 head->write_buf = kzalloc(head->writebuf_size, GFP_NOFS); in tomoyo_open_control()
2597 if (!head->write_buf) { in tomoyo_open_control()
2768 cp0 = head->write_buf; in tomoyo_write_control()
[all …]
H A 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/drivers/mtd/spi-nor/controllers/
H A 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()
/linux/net/sunrpc/
H A Dcache.c937 char *write_buf; in cache_downcall() local
945 write_buf = kvmalloc(count + 1, GFP_KERNEL); in cache_downcall()
946 if (!write_buf) in cache_downcall()
949 ret = cache_do_downcall(write_buf, buf, count, cd); in cache_downcall()
950 kvfree(write_buf); in cache_downcall()
/linux/drivers/hid/
H A Dhid-ft260.c241 u8 write_buf[FT260_REPORT_MAX_LENGTH]; member
423 (struct ft260_i2c_write_request_report *)dev->write_buf; in ft260_i2c_write()
472 (struct ft260_i2c_write_request_report *)dev->write_buf; in ft260_smbus_write()

12