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.c142 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/
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/epoll_ctl/
Depoll_ctl01.c89 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/
Dpoll01.c60 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/
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/
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 …]
Dnand_base.c210 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 …]
Dkmeter1_nand.c114 nand->write_buf = kpn_nand_write_buf; in board_nand_init()
Ddenali.c646 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/
Dtest-soft-image.cpp111 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/
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/clang/test/CodeGen/
D2003-11-19-BitFieldArray.c4 int write_buf; member
/external/libxcam/xcore/
Dimage_file_handle.h39 XCamReturn write_buf (const SmartPtr<VideoBuffer> &buf);
Dimage_file_handle.cpp71 ImageFileHandle::write_buf (const SmartPtr<VideoBuffer> &buf) in write_buf() function in XCam::ImageFileHandle

123