Home
last modified time | relevance | path

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

123

/external/libxkbcommon/xkbcommon/src/xkbcomp/
Dkeymap-dump.c118 #define write_buf(buf, ...) do { \ macro
134 write_buf(buf, "\tvirtual_modifiers "); in write_vmods()
136 write_buf(buf, ","); in write_vmods()
137 write_buf(buf, "%s", xkb_atom_text(keymap->ctx, mod->name)); in write_vmods()
142 write_buf(buf, ";\n\n"); in write_vmods()
155 write_buf(buf, "xkb_keycodes \"%s\" {\n", in write_keycodes()
158 write_buf(buf, "xkb_keycodes {\n"); in write_keycodes()
164 write_buf(buf, "\tminimum = %u;\n", min(keymap->min_key_code, 8)); in write_keycodes()
165 write_buf(buf, "\tmaximum = %u;\n", max(keymap->max_key_code, 255)); in write_keycodes()
171 write_buf(buf, "\t%-20s = %u;\n", in write_keycodes()
[all …]
/external/ltp/testcases/kernel/syscalls/epoll_wait/
Depoll_wait01.c130 char write_buf[write_size]; in verify_epollin() local
131 char read_buf[sizeof(write_buf)]; in verify_epollin()
134 memset(write_buf, 'a', sizeof(write_buf)); in verify_epollin()
136 SAFE_WRITE(1, fds[1], write_buf, sizeof(write_buf)); in verify_epollin()
166 SAFE_READ(1, fds[0], read_buf, sizeof(write_buf)); in verify_epollin()
171 char write_buf[] = "Testing"; in verify_epollio() local
172 char read_buf[sizeof(write_buf)]; in verify_epollio()
176 SAFE_WRITE(1, fds[1], write_buf, sizeof(write_buf)); in verify_epollio()
213 SAFE_READ(1, fds[0], read_buf, sizeof(write_buf)); in verify_epollio()
/external/ltp/testcases/kernel/syscalls/pwrite/
Dpwrite01.c94 char *write_buf[NBUFS]; /* buffer to hold data to be written */ variable
119 nwrite = pwrite(fildes, write_buf[0], K1, 0); in main()
141 nwrite = pwrite(fildes, write_buf[2], K1, K2); in main()
160 nwrite = write(fildes, write_buf[3], K1); in main()
171 nwrite = pwrite(fildes, write_buf[1], K1, K1); in main()
235 write_buf[count] = malloc(K1); in init_buffers()
237 if (write_buf[count] == NULL) { in init_buffers()
240 memset(write_buf[count], count, K1); in init_buffers()
299 if (memcmp(write_buf[count], read_buf, K1) != 0) { in check_file_contents()
328 free(write_buf[count]); in cleanup()
/external/ltp/testcases/kernel/syscalls/pread/
Dpread01.c92 char *write_buf[NBUFS]; /* buffer to hold data to be written */ variable
210 if ((nwrite = pwrite(fildes, write_buf[0], K1, 0)) != K1) { in setup()
222 if ((nwrite = pwrite(fildes, write_buf[2], K1, K2)) != K1) { in setup()
238 if ((nwrite = write(fildes, write_buf[3], K1)) != K1) { in setup()
247 if ((nwrite = pwrite(fildes, write_buf[1], K1, K1)) != K1) { in setup()
268 write_buf[count] = malloc(K1); in init_buffers()
271 if ((write_buf[count] == NULL) || (read_buf[count] == NULL)) { in init_buffers()
275 memset(write_buf[count], count, K1); in init_buffers()
313 if (memcmp(write_buf[count], read_buf[count], K1) != 0) { in compare_bufers()
339 free(write_buf[count]); in cleanup()
Dpread02.c84 char *write_buf[NBUFS]; /* buffer to hold data to be written */ variable
218 if (write(pfd[1], write_buf[0], K1) != K1) { in setup1()
261 write_buf[count] = malloc(K1); in init_buffers()
264 if ((write_buf[count] == NULL) || (read_buf[count] == NULL)) { in init_buffers()
268 memset(write_buf[count], count, K1); in init_buffers()
286 free(write_buf[count]); in cleanup()
/external/ltp/testcases/kernel/syscalls/msync/
Dmsync02.c83 char write_buf[10] = "Testing"; /* buffer to hold data to be written */ variable
98 else if (memcmp(addr + 100, write_buf, strlen(write_buf)) != 0) in main()
143 if (write(fildes, write_buf, strlen(write_buf)) != strlen(write_buf)) in setup()
Dmsync01.c84 char write_buf[BUF_SIZE]; /* buffer to hold data to be written */ variable
171 nwrite = write(fildes, write_buf, sizeof(write_buf)); in setup()
Dmsync03.c104 char write_buf[BUF_SIZE]; in setup() local
117 memset(write_buf, 'a', BUF_SIZE); in setup()
119 SAFE_WRITE(cleanup, 1, fd, write_buf, BUF_SIZE); in setup()
/external/perfetto/src/profiling/memory/
Dshared_ring_buffer_write_fuzzer.cc83 SharedRingBuffer::Buffer write_buf; in FuzzRingBufferWrite() local
87 write_buf = buf->BeginWrite(lock, header.write_size); in FuzzRingBufferWrite()
89 if (!write_buf) in FuzzRingBufferWrite()
92 memset(write_buf.data, '\0', write_buf.size); in FuzzRingBufferWrite()
93 buf->EndWrite(std::move(write_buf)); in FuzzRingBufferWrite()
/external/u-boot/drivers/usb/eth/
Dlan75xx.c169 u32 write_buf; in lan75xx_eth_start() local
189 write_buf = (MAX_RX_FIFO_SIZE - 512) / 512; in lan75xx_eth_start()
190 ret = lan7x_write_reg(udev, LAN75XX_FCT_RX_FIFO_END, write_buf); in lan75xx_eth_start()
194 write_buf = (MAX_TX_FIFO_SIZE - 512) / 512; in lan75xx_eth_start()
195 ret = lan7x_write_reg(udev, LAN75XX_FCT_TX_FIFO_END, write_buf); in lan75xx_eth_start()
226 ret = lan7x_read_reg(udev, MAC_CR, &write_buf); in lan75xx_eth_start()
229 write_buf |= MAC_CR_AUTO_DUPLEX | MAC_CR_AUTO_SPEED | MAC_CR_ADP; in lan75xx_eth_start()
230 ret = lan7x_write_reg(udev, MAC_CR, write_buf); in lan75xx_eth_start()
Dsmsc95xx.c475 u32 write_buf; in smsc95xx_init_common() local
485 write_buf = HW_CFG_LRST_; in smsc95xx_init_common()
486 ret = smsc95xx_write_reg(udev, HW_CFG, write_buf); in smsc95xx_init_common()
504 write_buf = PM_CTL_PHY_RST_; in smsc95xx_init_common()
505 ret = smsc95xx_write_reg(udev, PM_CTRL, write_buf); in smsc95xx_init_common()
590 write_buf = 0xFFFFFFFF; in smsc95xx_init_common()
591 ret = smsc95xx_write_reg(udev, INT_STS, write_buf); in smsc95xx_init_common()
601 write_buf = LED_GPIO_CFG_SPD_LED | LED_GPIO_CFG_LNK_LED | in smsc95xx_init_common()
603 ret = smsc95xx_write_reg(udev, LED_GPIO_CFG, write_buf); in smsc95xx_init_common()
609 write_buf = 0; in smsc95xx_init_common()
[all …]
Dlan78xx.c341 u32 write_buf; in lan78xx_eth_start() local
393 ret = lan7x_read_reg(udev, MAC_CR, &write_buf); in lan78xx_eth_start()
396 write_buf |= MAC_CR_AUTO_DUPLEX | MAC_CR_AUTO_SPEED | MAC_CR_ADP; in lan78xx_eth_start()
397 ret = lan7x_write_reg(udev, MAC_CR, write_buf); in lan78xx_eth_start()
/external/ltp/testcases/kernel/syscalls/poll/
Dpoll01.c47 char write_buf[] = "Testing"; in verify_pollin() local
54 SAFE_WRITE(1, fildes[1], write_buf, sizeof(write_buf)); in verify_pollin()
72 SAFE_READ(1, fildes[0], read_buf, sizeof(write_buf)); in verify_pollin()
/external/ltp/testcases/kernel/syscalls/epoll_ctl/
Depoll_ctl01.c79 char write_buf[] = "test"; in check_epoll_ctl() local
80 char read_buf[sizeof(write_buf)]; in check_epoll_ctl()
87 SAFE_WRITE(1, fd[1], write_buf, sizeof(write_buf)); in check_epoll_ctl()
122 SAFE_READ(1, fd[0], read_buf, sizeof(write_buf)); in check_epoll_ctl()
/external/ltp/testcases/kernel/syscalls/mmap/
Dmmap01.c147 char write_buf[] = "hello world\n"; in setup() local
167 if (write(fildes, write_buf, strlen(write_buf)) != strlen(write_buf)) { in setup()
/external/u-boot/drivers/mtd/nand/raw/
Dzynq_nand.c458 chip->write_buf(mtd, buf, (mtd->oobsize - data_width)); in zynq_nand_write_oob()
465 chip->write_buf(mtd, buf, data_width); in zynq_nand_write_oob()
537 chip->write_buf(mtd, buf, mtd->writesize); in zynq_nand_write_page_raw()
540 chip->write_buf(mtd, p, (mtd->oobsize - data_width)); in zynq_nand_write_page_raw()
548 chip->write_buf(mtd, p, data_width); in zynq_nand_write_page_raw()
574 chip->write_buf(mtd, p, eccsize); in zynq_nand_write_page_hwecc()
577 chip->write_buf(mtd, p, (eccsize - data_width)); in zynq_nand_write_page_hwecc()
584 chip->write_buf(mtd, p, data_width); in zynq_nand_write_page_hwecc()
600 chip->write_buf(mtd, oob_ptr, (mtd->oobsize - data_width)); in zynq_nand_write_page_hwecc()
607 chip->write_buf(mtd, oob_ptr, data_width); in zynq_nand_write_page_hwecc()
[all …]
Dmxc_nand.c560 chip->write_buf(mtd, bufpoi, len);
566 chip->write_buf(mtd, bufpoi, length);
588 chip->write_buf(mtd, buf, eccsize);
594 chip->write_buf(mtd, oob, chip->ecc.prepad);
602 chip->write_buf(mtd, oob, chip->ecc.postpad);
609 chip->write_buf(mtd, oob, size);
633 chip->write_buf(mtd, p, eccsize);
638 chip->write_buf(mtd, oob, chip->ecc.prepad);
642 chip->write_buf(mtd, oob, eccbytes);
646 chip->write_buf(mtd, oob, chip->ecc.postpad);
[all …]
Dkmeter1_nand.c114 nand->write_buf = kpn_nand_write_buf; in board_nand_init()
Ddenali.c649 chip->write_buf(mtd, bufpoi, oob_skip); in denali_oob_xfer()
666 chip->write_buf(mtd, bufpoi, len); in denali_oob_xfer()
674 chip->write_buf(mtd, bufpoi, len); in denali_oob_xfer()
685 chip->write_buf(mtd, bufpoi, len); in denali_oob_xfer()
1335 chip->write_buf = denali_write_buf16; in denali_init()
1338 chip->write_buf = denali_write_buf; in denali_init()
Dlpc32xx_nand_slc.c537 lpc32xx_chip->write_buf = lpc32xx_dma_write_buf; in board_nand_init()
561 lpc32xx_chip->write_buf = lpc32xx_write_buf; in board_nand_init()
/external/clang/test/CodeGen/
D2003-11-19-BitFieldArray.c4 int write_buf; member
/external/grpc-grpc/test/core/iomgr/
Dfd_posix_test.cc272 char write_buf[CLIENT_WRITE_BUF_SIZE]; member
283 memset(cl->write_buf, 0, sizeof(cl->write_buf)); in client_init()
313 write_once = write(fd, cl->write_buf, CLIENT_WRITE_BUF_SIZE); in client_session_write()
/external/adhd/cras/src/server/
Dcras_hfp_info.c94 uint8_t write_buf[WRITE_BUF_SIZE_BYTES]; member
247 wp = info->write_buf; in hfp_write_msbc()
268 err = send(info->fd, info->write_buf, MSBC_PKT_SIZE, 0); in hfp_write_msbc()
/external/u-boot/board/socrates/
Dnand.c156 nand->write_buf = sc_nand_write_buf; in board_nand_init()
/external/e2fsprogs/lib/ext2fs/
Dext_attr.c202 char *write_buf; in ext2fs_write_ext_attr3() local
205 retval = ext2fs_get_mem(fs->blocksize, &write_buf); in ext2fs_write_ext_attr3()
208 ext2fs_swap_ext_attr(write_buf, inbuf, fs->blocksize, 1); in ext2fs_write_ext_attr3()
210 write_buf = (char *) inbuf; in ext2fs_write_ext_attr3()
214 (struct ext2_ext_attr_header *)write_buf); in ext2fs_write_ext_attr3()
218 retval = io_channel_write_blk64(fs->io, block, 1, write_buf); in ext2fs_write_ext_attr3()
220 ext2fs_free_mem(&write_buf); in ext2fs_write_ext_attr3()

123