/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 | 142 char write_buf[write_size]; in verify_epollin() local 143 char read_buf[sizeof(write_buf)]; in verify_epollin() 146 memset(write_buf, 'a', sizeof(write_buf)); in verify_epollin() 148 SAFE_WRITE(1, fds[1], write_buf, sizeof(write_buf)); in verify_epollin() 178 SAFE_READ(1, fds[0], read_buf, sizeof(write_buf)); in verify_epollin() 183 char write_buf[] = "Testing"; in verify_epollio() local 184 char read_buf[sizeof(write_buf)]; in verify_epollio() 188 SAFE_WRITE(1, fds[1], write_buf, sizeof(write_buf)); in verify_epollio() 225 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/epoll_ctl/ |
D | epoll_ctl01.c | 89 char write_buf[] = "test"; in check_epoll_ctl() local 90 char read_buf[sizeof(write_buf)]; in check_epoll_ctl() 97 SAFE_WRITE(1, fd[1], write_buf, sizeof(write_buf)); in check_epoll_ctl() 132 SAFE_READ(1, fd[0], read_buf, sizeof(write_buf)); in check_epoll_ctl()
|
/external/ltp/testcases/kernel/syscalls/poll/ |
D | poll01.c | 60 char write_buf[] = "Testing"; in verify_pollin() local 67 SAFE_WRITE(1, fildes[1], write_buf, sizeof(write_buf)); in verify_pollin() 85 SAFE_READ(1, fildes[0], read_buf, sizeof(write_buf)); in verify_pollin()
|
/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/ |
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 | nand_base.c | 210 chip->write_buf(mtd, &byte, 1); in nand_write_byte() 241 chip->write_buf(mtd, (uint8_t *)&word, 2); in nand_write_byte16() 1958 chip->write_buf(mtd, buf, length); in nand_write_oob_std() 2002 chip->write_buf(mtd, (uint8_t *)&fill, in nand_write_oob_syndrome() 2013 chip->write_buf(mtd, bufpoi, len); in nand_write_oob_syndrome() 2018 chip->write_buf(mtd, bufpoi, length); in nand_write_oob_syndrome() 2182 chip->write_buf(mtd, buf, mtd->writesize); in nand_write_page_raw() 2184 chip->write_buf(mtd, chip->oob_poi, mtd->oobsize); in nand_write_page_raw() 2210 chip->write_buf(mtd, buf, eccsize); in nand_write_page_raw_syndrome() 2214 chip->write_buf(mtd, oob, chip->ecc.prepad); in nand_write_page_raw_syndrome() [all …]
|
D | kmeter1_nand.c | 114 nand->write_buf = kpn_nand_write_buf; in board_nand_init()
|
D | denali.c | 646 chip->write_buf(mtd, bufpoi, oob_skip); in denali_oob_xfer() 663 chip->write_buf(mtd, bufpoi, len); in denali_oob_xfer() 671 chip->write_buf(mtd, bufpoi, len); in denali_oob_xfer() 682 chip->write_buf(mtd, bufpoi, len); in denali_oob_xfer() 1325 chip->write_buf = denali_write_buf16; in denali_init() 1328 chip->write_buf = denali_write_buf; in denali_init()
|
/external/libxcam/tests/ |
D | test-soft-image.cpp | 111 XCamReturn write_buf (); 205 SoftElement::write_buf () { in write_buf() function in SoftElement 206 return _file.write_buf (_buf); in write_buf() 384 outs[i]->write_buf (); in write_image() 718 outs[0]->write_buf (); in main() 731 outs[0]->write_buf (); in main()
|
/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/clang/test/CodeGen/ |
D | 2003-11-19-BitFieldArray.c | 4 int write_buf; member
|
/external/libxcam/xcore/ |
D | image_file_handle.h | 39 XCamReturn write_buf (const SmartPtr<VideoBuffer> &buf);
|
D | image_file_handle.cpp | 71 ImageFileHandle::write_buf (const SmartPtr<VideoBuffer> &buf) in write_buf() function in XCam::ImageFileHandle
|