• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /xnu-2782.1.97/tools/tests/xnu_quick_test/

Lines Matching refs:buf_size

783 	int buf_size = current_buf_size / 2;
785 assert(buf_size == pipe_write_data(p, &data[0], buf_size ), 1, "cycle write failed");
786 assert(buf_size == pipe_read_data(p, &readbuf[0], buf_size+200), 1, "reading from cycle read failed");
787 assert(verify_data(data, readbuf, buf_size), 1, "data verification failed");
789 assert(buf_size == pipe_write_data(p, &data[0], buf_size ), 1, "cycle write failed");
790 assert(buf_size == pipe_read_data(p, &readbuf[0], buf_size+200), 1, "reading from cycle read failed");
791 assert(verify_data(data, readbuf, buf_size), 1, "data verification failed");
793 assert(buf_size == pipe_write_data(p, &data[0], buf_size ), 1, "cycle write failed");
794 assert(buf_size == pipe_read_data(p, &readbuf[0], buf_size+200), 1, "reading from cycle read failed");
795 assert(verify_data(data, readbuf, buf_size), 1, "data verification failed");
808 int buf_size = current_buf_size / 2;
809 if (buf_size > PAGE_SIZE)
810 buf_size = PAGE_SIZE;
812 assert(buf_size == pipe_write_data(p, &data[0], buf_size ), 1, "cycle write failed");
813 logv("write of size =%d\n", buf_size);
814 assert(buf_size == pipe_write_data(p, &data[buf_size/sizeof(int)], buf_size ), 1, "cycle write failed");
815 logv("write of size =%d\n", buf_size*2);
816 assert(buf_size == pipe_write_data(p, &data[(buf_size*2)/sizeof(int)], buf_size ), 1, "cycle write failed");
817 logv("write of size =%d\n", buf_size*3);
818 assert((3*buf_size) == pipe_read_data(p, &readbuf[0], (3*buf_size)+200), 1, "reading from cycle read failed");
819 assert(verify_data(data, readbuf, (3*buf_size)/sizeof(int)), 1, "data verification failed");