Home
last modified time | relevance | path

Searched refs:my_buf (Results 1 – 25 of 70) sorted by relevance

123

/dports/graphics/weston/weston-1.9.0/clients/
H A Dsimple-dmabuf.c106 if (my_buf->drm_fd < 0) in drm_connect()
109 my_buf->bufmgr = drm_intel_bufmgr_gem_init(my_buf->drm_fd, 32); in drm_connect()
110 if (!my_buf->bufmgr) in drm_connect()
120 close(my_buf->drm_fd); in drm_shutdown()
131 my_buf->bo = drm_intel_bo_alloc_tiled(my_buf->bufmgr, "test", in alloc_bo()
132 my_buf->width, my_buf->height, in alloc_bo()
137 my_buf->width, my_buf->height, my_buf->stride, my_buf->bo->size); in alloc_bo()
139 if (!my_buf->bo) in alloc_bo()
160 my_buf->mmap = my_buf->bo->virtual; in map_bo()
171 assert(my_buf->mmap); in fill_content()
[all …]
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/weston/src/clients/
H A Dsimple-dmabuf-drm.c172 assert(my_buf->bufmgr); in intel_alloc_bo()
174 my_buf->intel_bo = drm_intel_bo_alloc_tiled(my_buf->bufmgr, "test", in intel_alloc_bo()
175 my_buf->width, my_buf->height, in intel_alloc_bo()
180 my_buf->width, my_buf->height, my_buf->stride, my_buf->intel_bo->size); in intel_alloc_bo()
182 if (!my_buf->intel_bo) in intel_alloc_bo()
203 my_buf->mmap = my_buf->intel_bo->virtual; in intel_map_bo()
334 assert(my_buf->mmap); in fill_content()
348 pix8 = my_buf->mmap + y * my_buf->stride; in fill_content()
354 for (y = my_buf->height * 2/3; y < my_buf->height; y++) { in fill_content()
355 pix8 = my_buf->mmap + y * my_buf->stride; in fill_content()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/weston/src/clients/
H A Dsimple-dmabuf-drm.c172 assert(my_buf->bufmgr); in intel_alloc_bo()
174 my_buf->intel_bo = drm_intel_bo_alloc_tiled(my_buf->bufmgr, "test", in intel_alloc_bo()
175 my_buf->width, my_buf->height, in intel_alloc_bo()
180 my_buf->width, my_buf->height, my_buf->stride, my_buf->intel_bo->size); in intel_alloc_bo()
182 if (!my_buf->intel_bo) in intel_alloc_bo()
203 my_buf->mmap = my_buf->intel_bo->virtual; in intel_map_bo()
334 assert(my_buf->mmap); in fill_content()
348 pix8 = my_buf->mmap + y * my_buf->stride; in fill_content()
354 for (y = my_buf->height * 2/3; y < my_buf->height; y++) { in fill_content()
355 pix8 = my_buf->mmap + y * my_buf->stride; in fill_content()
[all …]
/dports/sysutils/nut/nut-2.7.4/drivers/
H A Dbcmxcp_ser.c89 res = ser_get_char(upsfd, my_buf, 1, 0); in get_answer()
106 res = ser_get_char(upsfd, my_buf+1, 1, 0); in get_answer()
113 block_number = (unsigned char)my_buf[1]; in get_answer()
135 res = ser_get_char(upsfd, my_buf+2, 1, 0); in get_answer()
142 length = (unsigned char)my_buf[2]; in get_answer()
150 res = ser_get_char(upsfd, my_buf+3, 1, 0); in get_answer()
157 sequence = (unsigned char)my_buf[3]; in get_answer()
171 res = ser_get_buf_len(upsfd, my_buf+4, length, 1, 0); in get_answer()
179 res = ser_get_char(upsfd, my_buf+(4+length), 1, 0); in get_answer()
187 if (!checksum_test(my_buf)) { in get_answer()
[all …]
H A Dbcmxcp_usb.c136 unsigned char buf[PW_CMD_BUFSIZE], *my_buf = buf; in get_answer() local
198 if ( my_buf[0] != PW_COMMAND_START_BYTE ) { in get_answer()
201 my_buf = memchr(my_buf, PW_COMMAND_START_BYTE, bytes_read); in get_answer()
202 if (!my_buf) in get_answer()
207 block_number = my_buf[1]; in get_answer()
211 length = my_buf[2]; in get_answer()
227 sequence = my_buf[3]; in get_answer()
237 if (!checksum_test(my_buf)) { in get_answer()
257 memcpy(data+end_length, my_buf + 4, length); in get_answer()
262 my_buf = memmove(&buf[0], my_buf + length + PW_HEADER_SIZE, tail); in get_answer()
[all …]
/dports/devel/llvm-cheri/llvm-project-37c49ff00e3eadce5d8703fdc4497f28458c64a8/openmp/runtime/test/affinity/format/
H A Dapi2.c46 char my_buf[512]; in main() local
54 needed = omp_capture_affinity(my_buf, 512, NULL); in main()
56 check(streqls(my_buf, supposed)); in main()
60 omp_capture_affinity(my_buf, 5, NULL); in main()
61 check(streqls(my_buf, supposed)); in main()
63 needed = omp_capture_affinity(my_buf, 512, second_format); in main()
65 check(streqls(my_buf, supposed)); in main()
70 omp_capture_affinity(my_buf, 26, second_format); in main()
71 check(streqls(my_buf, supposed)); in main()
H A Dapi.c39 char my_buf[512]; in main() local
40 size_t needed = omp_capture_affinity(my_buf, 512, NULL); in main()
41 check(streqls(my_buf, "0123456789")); in main()
44 omp_capture_affinity(my_buf, 5, NULL); in main()
45 check(streqls(my_buf, "0123")); in main()
/dports/devel/llvm10/llvm-10.0.1.src/projects/openmp/runtime/test/affinity/format/
H A Dapi2.c46 char my_buf[512]; in main() local
54 needed = omp_capture_affinity(my_buf, 512, NULL); in main()
56 check(streqls(my_buf, supposed)); in main()
60 omp_capture_affinity(my_buf, 5, NULL); in main()
61 check(streqls(my_buf, supposed)); in main()
63 needed = omp_capture_affinity(my_buf, 512, second_format); in main()
65 check(streqls(my_buf, supposed)); in main()
70 omp_capture_affinity(my_buf, 26, second_format); in main()
71 check(streqls(my_buf, supposed)); in main()
H A Dapi.c39 char my_buf[512]; in main() local
40 size_t needed = omp_capture_affinity(my_buf, 512, NULL); in main()
41 check(streqls(my_buf, "0123456789")); in main()
44 omp_capture_affinity(my_buf, 5, NULL); in main()
45 check(streqls(my_buf, "0123")); in main()
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/openmp/runtime/test/affinity/format/
H A Dapi2.c46 char my_buf[512]; in main() local
54 needed = omp_capture_affinity(my_buf, 512, NULL); in main()
56 check(streqls(my_buf, supposed)); in main()
60 omp_capture_affinity(my_buf, 5, NULL); in main()
61 check(streqls(my_buf, supposed)); in main()
63 needed = omp_capture_affinity(my_buf, 512, second_format); in main()
65 check(streqls(my_buf, supposed)); in main()
70 omp_capture_affinity(my_buf, 26, second_format); in main()
71 check(streqls(my_buf, supposed)); in main()
H A Dapi.c39 char my_buf[512]; in main() local
40 size_t needed = omp_capture_affinity(my_buf, 512, NULL); in main()
41 check(streqls(my_buf, "0123456789")); in main()
44 omp_capture_affinity(my_buf, 5, NULL); in main()
45 check(streqls(my_buf, "0123")); in main()
/dports/devel/llvm12/llvm-project-12.0.1.src/openmp/runtime/test/affinity/format/
H A Dapi2.c46 char my_buf[512]; in main() local
54 needed = omp_capture_affinity(my_buf, 512, NULL); in main()
56 check(streqls(my_buf, supposed)); in main()
60 omp_capture_affinity(my_buf, 5, NULL); in main()
61 check(streqls(my_buf, supposed)); in main()
63 needed = omp_capture_affinity(my_buf, 512, second_format); in main()
65 check(streqls(my_buf, supposed)); in main()
70 omp_capture_affinity(my_buf, 26, second_format); in main()
71 check(streqls(my_buf, supposed)); in main()
/dports/devel/llvm11/llvm-11.0.1.src/projects/openmp/runtime/test/affinity/format/
H A Dapi2.c46 char my_buf[512]; in main() local
54 needed = omp_capture_affinity(my_buf, 512, NULL); in main()
56 check(streqls(my_buf, supposed)); in main()
60 omp_capture_affinity(my_buf, 5, NULL); in main()
61 check(streqls(my_buf, supposed)); in main()
63 needed = omp_capture_affinity(my_buf, 512, second_format); in main()
65 check(streqls(my_buf, supposed)); in main()
70 omp_capture_affinity(my_buf, 26, second_format); in main()
71 check(streqls(my_buf, supposed)); in main()
/dports/devel/wasi-compiler-rt12/llvm-project-12.0.1.src/openmp/runtime/test/affinity/format/
H A Dapi2.c46 char my_buf[512]; in main() local
54 needed = omp_capture_affinity(my_buf, 512, NULL); in main()
56 check(streqls(my_buf, supposed)); in main()
60 omp_capture_affinity(my_buf, 5, NULL); in main()
61 check(streqls(my_buf, supposed)); in main()
63 needed = omp_capture_affinity(my_buf, 512, second_format); in main()
65 check(streqls(my_buf, supposed)); in main()
70 omp_capture_affinity(my_buf, 26, second_format); in main()
71 check(streqls(my_buf, supposed)); in main()
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/openmp/runtime/test/affinity/format/
H A Dapi2.c46 char my_buf[512]; in main() local
54 needed = omp_capture_affinity(my_buf, 512, NULL); in main()
56 check(streqls(my_buf, supposed)); in main()
60 omp_capture_affinity(my_buf, 5, NULL); in main()
61 check(streqls(my_buf, supposed)); in main()
63 needed = omp_capture_affinity(my_buf, 512, second_format); in main()
65 check(streqls(my_buf, supposed)); in main()
70 omp_capture_affinity(my_buf, 26, second_format); in main()
71 check(streqls(my_buf, supposed)); in main()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/llvm/openmp/runtime/test/affinity/format/
H A Dapi2.c46 char my_buf[512]; in main() local
54 needed = omp_capture_affinity(my_buf, 512, NULL); in main()
56 check(streqls(my_buf, supposed)); in main()
60 omp_capture_affinity(my_buf, 5, NULL); in main()
61 check(streqls(my_buf, supposed)); in main()
63 needed = omp_capture_affinity(my_buf, 512, second_format); in main()
65 check(streqls(my_buf, supposed)); in main()
70 omp_capture_affinity(my_buf, 26, second_format); in main()
71 check(streqls(my_buf, supposed)); in main()
/dports/devel/tinygo/tinygo-0.14.1/llvm-project/openmp/runtime/test/affinity/format/
H A Dapi2.c46 char my_buf[512]; in main() local
54 needed = omp_capture_affinity(my_buf, 512, NULL); in main()
56 check(streqls(my_buf, supposed)); in main()
60 omp_capture_affinity(my_buf, 5, NULL); in main()
61 check(streqls(my_buf, supposed)); in main()
63 needed = omp_capture_affinity(my_buf, 512, second_format); in main()
65 check(streqls(my_buf, supposed)); in main()
70 omp_capture_affinity(my_buf, 26, second_format); in main()
71 check(streqls(my_buf, supposed)); in main()
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/openmp/runtime/test/affinity/format/
H A Dapi2.c46 char my_buf[512]; in main() local
54 needed = omp_capture_affinity(my_buf, 512, NULL); in main()
56 check(streqls(my_buf, supposed)); in main()
60 omp_capture_affinity(my_buf, 5, NULL); in main()
61 check(streqls(my_buf, supposed)); in main()
63 needed = omp_capture_affinity(my_buf, 512, second_format); in main()
65 check(streqls(my_buf, supposed)); in main()
70 omp_capture_affinity(my_buf, 26, second_format); in main()
71 check(streqls(my_buf, supposed)); in main()
/dports/devel/llvm90/llvm-9.0.1.src/projects/openmp/runtime/test/affinity/format/
H A Dapi2.c46 char my_buf[512]; in main() local
54 needed = omp_capture_affinity(my_buf, 512, NULL); in main()
56 check(streqls(my_buf, supposed)); in main()
60 omp_capture_affinity(my_buf, 5, NULL); in main()
61 check(streqls(my_buf, supposed)); in main()
63 needed = omp_capture_affinity(my_buf, 512, second_format); in main()
65 check(streqls(my_buf, supposed)); in main()
70 omp_capture_affinity(my_buf, 26, second_format); in main()
71 check(streqls(my_buf, supposed)); in main()
/dports/devel/llvm80/llvm-8.0.1.src/projects/openmp/runtime/test/affinity/format/
H A Dapi2.c46 char my_buf[512]; in main() local
54 needed = omp_capture_affinity(my_buf, 512, NULL); in main()
56 check(streqls(my_buf, supposed)); in main()
60 omp_capture_affinity(my_buf, 5, NULL); in main()
61 check(streqls(my_buf, supposed)); in main()
63 needed = omp_capture_affinity(my_buf, 512, second_format); in main()
65 check(streqls(my_buf, supposed)); in main()
70 omp_capture_affinity(my_buf, 26, second_format); in main()
71 check(streqls(my_buf, supposed)); in main()
/dports/devel/llvm13/llvm-project-13.0.1.src/openmp/runtime/test/affinity/format/
H A Dapi2.c46 char my_buf[512]; in main() local
54 needed = omp_capture_affinity(my_buf, 512, NULL); in main()
56 check(streqls(my_buf, supposed)); in main()
60 omp_capture_affinity(my_buf, 5, NULL); in main()
61 check(streqls(my_buf, supposed)); in main()
63 needed = omp_capture_affinity(my_buf, 512, second_format); in main()
65 check(streqls(my_buf, supposed)); in main()
70 omp_capture_affinity(my_buf, 26, second_format); in main()
71 check(streqls(my_buf, supposed)); in main()
/dports/sysutils/slurm-wlm/slurm-20.02.7/src/common/
H A Dpack.c118 Buf my_buf; in create_buf() local
133 return my_buf; in create_buf()
142 Buf my_buf; in create_mmap_buf() local
174 return my_buf; in create_mmap_buf()
181 if (!my_buf) in free_buf()
184 if (my_buf->mmaped) in free_buf()
185 munmap(my_buf->head, my_buf->size); in free_buf()
189 xfree(my_buf); in free_buf()
210 Buf my_buf; in init_buf() local
225 return my_buf; in init_buf()
[all …]
/dports/sysutils/nut-devel/nut-9e6a5ab2/drivers/
H A Dbcmxcp_ser.c101 res = ser_get_char(upsfd, my_buf, 1, 0); in get_answer()
120 res = ser_get_char(upsfd, my_buf + 1, 1, 0); in get_answer()
127 block_number = (unsigned char)my_buf[1]; in get_answer()
149 res = ser_get_char(upsfd, my_buf + 2, 1, 0); in get_answer()
156 length = (unsigned char)my_buf[2]; in get_answer()
164 res = ser_get_char(upsfd, my_buf + 3, 1, 0); in get_answer()
171 sequence = (unsigned char)my_buf[3]; in get_answer()
185 res = ser_get_buf_len(upsfd, my_buf + 4, length, 1, 0); in get_answer()
197 res = ser_get_char(upsfd, my_buf + (4 + length), 1, 0); in get_answer()
205 if (!checksum_test(my_buf)) { in get_answer()
[all …]
H A Dbcmxcp_usb.c142 unsigned char buf[PW_CMD_BUFSIZE], *my_buf = buf; in get_answer() local
211 if ( my_buf[0] != PW_COMMAND_START_BYTE ) { in get_answer()
214 my_buf = memchr(my_buf, PW_COMMAND_START_BYTE, bytes_read); in get_answer()
215 if (!my_buf) in get_answer()
220 block_number = my_buf[1]; in get_answer()
224 length = my_buf[2]; in get_answer()
245 sequence = my_buf[3]; in get_answer()
255 if (!checksum_test(my_buf)) { in get_answer()
275 memcpy(data+end_length, my_buf + 4, length); in get_answer()
283 my_buf = memmove(&buf[0], my_buf + length + PW_HEADER_SIZE, (size_t)tail); in get_answer()
[all …]
/dports/devel/libqb/libqb-2.0.3/tests/
H A Dcheck_rb.c38 char my_buf[512]; in START_TEST() local
51 memcpy(&hdr, my_buf, sizeof(struct qb_ipc_request_header)); in START_TEST()
52 str = my_buf + sizeof(struct qb_ipc_request_header); in START_TEST()
61 memcpy(my_buf, &hdr, sizeof(struct qb_ipc_request_header)); in START_TEST()
63 actual = qb_rb_chunk_write(rb, my_buf, hdr.size); in START_TEST()
71 memset(my_buf, 0, sizeof(my_buf)); in START_TEST()
73 memcpy(&hdr, my_buf, sizeof(struct qb_ipc_request_header)); in START_TEST()
74 str = my_buf + sizeof(struct qb_ipc_request_header); in START_TEST()
77 actual = qb_rb_chunk_read(rb, my_buf, 512, 0); in START_TEST()
82 memcpy(&hdr, my_buf, sizeof(struct qb_ipc_request_header)); in START_TEST()

123