/external/libxkbcommon/xkbcommon/src/xkbcomp/ |
D | keymap-dump.c | 118 #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/ |
D | epoll_wait01.c | 130 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/ |
D | pwrite01.c | 94 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/ |
D | pread01.c | 92 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()
|
D | pread02.c | 84 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/ |
D | msync02.c | 83 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()
|
D | msync01.c | 84 char write_buf[BUF_SIZE]; /* buffer to hold data to be written */ variable 171 nwrite = write(fildes, write_buf, sizeof(write_buf)); in setup()
|
D | msync03.c | 104 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/ |
D | shared_ring_buffer_write_fuzzer.cc | 83 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/ |
D | lan75xx.c | 169 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()
|
D | smsc95xx.c | 475 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 …]
|
D | lan78xx.c | 341 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/ |
D | poll01.c | 47 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/ |
D | epoll_ctl01.c | 79 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/ |
D | mmap01.c | 147 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/ |
D | zynq_nand.c | 458 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 …]
|
D | mxc_nand.c | 560 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 …]
|
D | kmeter1_nand.c | 114 nand->write_buf = kpn_nand_write_buf; in board_nand_init()
|
D | denali.c | 649 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()
|
D | lpc32xx_nand_slc.c | 537 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/ |
D | 2003-11-19-BitFieldArray.c | 4 int write_buf; member
|
/external/grpc-grpc/test/core/iomgr/ |
D | fd_posix_test.cc | 272 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/ |
D | cras_hfp_info.c | 94 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/ |
D | nand.c | 156 nand->write_buf = sc_nand_write_buf; in board_nand_init()
|
/external/e2fsprogs/lib/ext2fs/ |
D | ext_attr.c | 202 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()
|