| /freebsd-11-stable/sys/dev/drm2/ |
| HD | drm_dma.c | 58 memset(&dev->dma->bufs[i], 0, sizeof(dev->dma->bufs[0])); in drm_dma_setup() 81 if (dma->bufs[i].seg_count) { in drm_dma_takedown() 85 dma->bufs[i].buf_count, in drm_dma_takedown() 86 dma->bufs[i].seg_count); in drm_dma_takedown() 87 for (j = 0; j < dma->bufs[i].seg_count; j++) { in drm_dma_takedown() 88 if (dma->bufs[i].seglist[j]) { in drm_dma_takedown() 89 drm_pci_free(dev, dma->bufs[i].seglist[j]); in drm_dma_takedown() 92 free(dma->bufs[i].seglist, DRM_MEM_SEGS); in drm_dma_takedown() 94 if (dma->bufs[i].buf_count) { in drm_dma_takedown() 95 for (j = 0; j < dma->bufs[i].buf_count; j++) { in drm_dma_takedown() [all …]
|
| HD | drm_sysctl.c | 307 if (dma->bufs[i].buf_count) 310 dma->bufs[i].buf_size, 311 dma->bufs[i].buf_count, 312 atomic_read(&dma->bufs[i] 314 dma->bufs[i].seg_count, 315 dma->bufs[i].seg_count 316 *(1 << dma->bufs[i].page_order), 317 (dma->bufs[i].seg_count 318 * (1 << dma->bufs[i].page_order))
|
| HD | drm_bufs.c | 751 entry = &dma->bufs[order]; in drm_addbufs_agp() 902 entry = &dma->bufs[order]; in drm_addbufs_pci() 1114 entry = &dma->bufs[order]; in drm_addbufs_sg() 1270 entry = &dma->bufs[order]; in drm_addbufs_fb() 1446 if (dma->bufs[i].buf_count) in drm_infobufs() 1454 if (dma->bufs[i].buf_count) { in drm_infobufs() 1457 struct drm_buf_entry *from = &dma->bufs[i]; in drm_infobufs() 1458 struct drm_freelist *list = &dma->bufs[i].freelist; in drm_infobufs() 1475 dma->bufs[i].buf_count, in drm_infobufs() 1476 dma->bufs[i].buf_size, in drm_infobufs() [all …]
|
| /freebsd-11-stable/contrib/xz/src/xz/ |
| HD | util.c | 18 static char bufs[4][128]; variable 159 bufs[slot][0] = '\0'; in check_thousand_sep() 161 snprintf(bufs[slot], sizeof(bufs[slot]), "%'u", 1U); in check_thousand_sep() 163 thousand = bufs[slot][0] == '1' ? WORKS : BROKEN; in check_thousand_sep() 173 assert(slot < ARRAY_SIZE(bufs)); in uint64_to_str() 178 snprintf(bufs[slot], sizeof(bufs[slot]), "%'" PRIu64, value); in uint64_to_str() 180 snprintf(bufs[slot], sizeof(bufs[slot]), "%" PRIu64, value); in uint64_to_str() 182 return bufs[slot]; in uint64_to_str() 193 assert(slot < ARRAY_SIZE(bufs)); in uint64_to_nicestr() 198 char *pos = bufs[slot]; in uint64_to_nicestr() [all …]
|
| /freebsd-11-stable/sys/dev/drm/ |
| HD | drm_dma.c | 66 if (dma->bufs[i].seg_count) { in drm_dma_takedown() 68 " seg_count = %d\n", i, dma->bufs[i].buf_count, in drm_dma_takedown() 69 dma->bufs[i].seg_count); in drm_dma_takedown() 70 for (j = 0; j < dma->bufs[i].seg_count; j++) { in drm_dma_takedown() 71 drm_pci_free(dev, dma->bufs[i].seglist[j]); in drm_dma_takedown() 73 free(dma->bufs[i].seglist, DRM_MEM_SEGS); in drm_dma_takedown() 76 if (dma->bufs[i].buf_count) { in drm_dma_takedown() 77 for (j = 0; j < dma->bufs[i].buf_count; j++) { in drm_dma_takedown() 78 free(dma->bufs[i].buflist[j].dev_private, in drm_dma_takedown() 81 free(dma->bufs[i].buflist, DRM_MEM_BUFS); in drm_dma_takedown()
|
| HD | drm_sysctl.c | 251 if (dma->bufs[i].buf_count) 254 dma->bufs[i].buf_size, 255 dma->bufs[i].buf_count, 256 atomic_read(&dma->bufs[i] 258 dma->bufs[i].seg_count, 259 dma->bufs[i].seg_count 260 *(1 << dma->bufs[i].page_order), 261 (dma->bufs[i].seg_count 262 * (1 << dma->bufs[i].page_order))
|
| HD | drm_bufs.c | 467 entry = &dma->bufs[order]; in drm_do_addbufs_agp() 569 entry = &dma->bufs[order]; in drm_do_addbufs_pci() 726 entry = &dma->bufs[order]; in drm_do_addbufs_sg() 819 if (dev->dma->bufs[order].buf_count != 0) { in drm_addbufs_agp() 853 if (dev->dma->bufs[order].buf_count != 0) { in drm_addbufs_sg() 887 if (dev->dma->bufs[order].buf_count != 0) { in drm_addbufs_pci() 927 if (dma->bufs[i].buf_count) in drm_infobufs() 935 if (dma->bufs[i].buf_count) { in drm_infobufs() 939 from.count = dma->bufs[i].buf_count; in drm_infobufs() 940 from.size = dma->bufs[i].buf_size; in drm_infobufs() [all …]
|
| /freebsd-11-stable/contrib/xz/src/liblzma/common/ |
| HD | outqueue.c | 77 outq->bufs = lzma_alloc(bufs_count * sizeof(lzma_outbuf), in lzma_outq_init() 82 if (outq->bufs == NULL || outq->bufs_mem == NULL) { in lzma_outq_init() 103 lzma_free(outq->bufs, allocator); in lzma_outq_end() 104 outq->bufs = NULL; in lzma_outq_end() 120 lzma_outbuf *buf = &outq->bufs[outq->bufs_pos]; in lzma_outq_get_buf() 142 return outq->bufs[i].finished; in lzma_outq_is_readable() 161 lzma_outbuf *buf = &outq->bufs[i]; in lzma_outq_read()
|
| /freebsd-11-stable/stand/i386/libi386/ |
| HD | biossmap.c | 47 STAILQ_ENTRY(smap_buf) bufs; 50 #define SMAP_BUFSIZE offsetof(struct smap_buf, bufs) 90 STAILQ_INSERT_TAIL(&head, next, bufs); in bios_getsmap() 99 STAILQ_FOREACH(cur, &head, bufs) in bios_getsmap() 106 STAILQ_FOREACH(cur, &head, bufs) in bios_getsmap() 114 next = STAILQ_NEXT(cur, bufs); in bios_getsmap()
|
| /freebsd-11-stable/sys/contrib/ncsw/Peripherals/BM/ |
| HD | bm_pool.c | 80 struct bm_buffer *bufs, in BmPoolRelease() argument 90 return BmPortalRelease(h_BmPortal, p_BmPool->bpid, bufs, num, flags); in BmPoolRelease() 111 bufs, in BmPoolRelease() 134 struct bm_buffer *bufs, uint8_t num, uint32_t flags) in BmPoolAcquire() argument 142 return BmPortalAcquire(h_BmPortal, p_BmPool->bpid, bufs, num); in BmPoolAcquire() 156 memcpy(bufs, in BmPoolAcquire() 405 struct bm_buffer bufs[1]; in BM_POOL_GetBuf() local 426 retBufsNum = (uint8_t)BmPoolAcquire(p_BmPool, h_BmPortal, bufs, 1, flags); in BM_POOL_GetBuf() 432 physAddr = (uint64_t)bufs[0].lo; in BM_POOL_GetBuf() 433 physAddr |= (uint64_t)(((uint64_t)bufs[0].hi << 32) & 0x000000ff00000000LL); in BM_POOL_GetBuf() [all …]
|
| HD | bm_portal.c | 370 struct bm_buffer *bufs, in BmPortalRelease() argument 392 r->bufs[i].hi = bufs[i].hi; in BmPortalRelease() 393 r->bufs[i].lo = bufs[i].lo; in BmPortalRelease() 406 struct bm_buffer *bufs, in BmPortalAcquire() argument 425 bufs[num].bpid = bpid; in BmPortalAcquire() 426 bufs[num].hi = mcr->acquire.bufs[num].hi; in BmPortalAcquire() 427 bufs[num].lo = mcr->acquire.bufs[num].lo; in BmPortalAcquire()
|
| /freebsd-11-stable/lib/libopenbsd/ |
| HD | imsg-buffer.c | 155 TAILQ_FOREACH(buf, &msgbuf->bufs, entry) { in ibuf_write() 194 TAILQ_INIT(&msgbuf->bufs); in msgbuf_init() 202 for (buf = TAILQ_FIRST(&msgbuf->bufs); buf != NULL && n > 0; in msgbuf_drain() 220 while ((buf = TAILQ_FIRST(&msgbuf->bufs)) != NULL) in msgbuf_clear() 241 TAILQ_FOREACH(buf, &msgbuf->bufs, entry) { in msgbuf_write() 295 TAILQ_INSERT_TAIL(&msgbuf->bufs, buf, entry); in ibuf_enqueue() 302 TAILQ_REMOVE(&msgbuf->bufs, buf, entry); in ibuf_dequeue()
|
| /freebsd-11-stable/sys/dev/mlx5/mlx5_fpga/ |
| HD | mlx5fpga_conn.c | 122 conn->qp.rq.bufs[ix] = buf; in mlx5_fpga_conn_post_recv() 171 conn->qp.sq.bufs[ix] = buf; in mlx5_fpga_conn_post_send() 256 buf = conn->qp.rq.bufs[ix]; in mlx5_fpga_conn_rq_cqe() 257 conn->qp.rq.bufs[ix] = NULL; in mlx5_fpga_conn_rq_cqe() 300 buf = conn->qp.sq.bufs[ix]; in mlx5_fpga_conn_sq_cqe() 301 conn->qp.sq.bufs[ix] = NULL; in mlx5_fpga_conn_sq_cqe() 552 conn->qp.rq.bufs = kvzalloc(sizeof(conn->qp.rq.bufs[0]) * in mlx5_fpga_conn_create_qp() 554 if (!conn->qp.rq.bufs) { in mlx5_fpga_conn_create_qp() 559 conn->qp.sq.bufs = kvzalloc(sizeof(conn->qp.sq.bufs[0]) * in mlx5_fpga_conn_create_qp() 561 if (!conn->qp.sq.bufs) { in mlx5_fpga_conn_create_qp() [all …]
|
| HD | conn.h | 75 struct mlx5_fpga_dma_buf **bufs; member 82 struct mlx5_fpga_dma_buf **bufs; member
|
| /freebsd-11-stable/sys/contrib/octeon-sdk/ |
| HD | cvmx-wqe.h | 83 …uint64_t bufs : 8; /**< HW sets this to the number of buffers used by this … member 139 …uint64_t bufs : 8; /**< HW sets this to the number of buffers used by this … member 197 …uint64_t bufs : 8; /**< HW sets this to the number of buffers used by this … member 266 …uint64_t bufs : 8; /**< HW sets this to the number of buffers used by this … member 321 …uint64_t bufs : 8; /**< HW sets this to the number of buffers used by this … member 376 …uint64_t bufs : 8; /**< HW sets this to the number of buffers used by this … member
|
| /freebsd-11-stable/cddl/contrib/opensolaris/lib/libdtrace/common/ |
| HD | dt_link.c | 1165 dt_link_error(dtrace_hdl_t *dtp, Elf *elf, int fd, dt_link_pair_t *bufs, in dt_link_error() argument 1181 while ((pair = bufs) != NULL) { in dt_link_error() 1182 bufs = pair->dlp_next; in dt_link_error() 1214 dt_link_pair_t *pair, *bufs = NULL; in process_obj() local 1218 return (dt_link_error(dtp, elf, fd, bufs, in process_obj() 1223 return (dt_link_error(dtp, elf, fd, bufs, in process_obj() 1231 return (dt_link_error(dtp, elf, fd, bufs, "archives are not " in process_obj() 1235 return (dt_link_error(dtp, elf, fd, bufs, in process_obj() 1240 return (dt_link_error(dtp, elf, fd, bufs, "corrupt file: %s", in process_obj() 1274 return (dt_link_error(dtp, elf, fd, bufs, in process_obj() [all …]
|
| HD | dt_strtab.c | 45 char *ptr, **bufs; in dt_strtab_grow() local 50 bufs = realloc(sp->str_bufs, (sp->str_nbufs + 1) * sizeof (char *)); in dt_strtab_grow() 52 if (bufs == NULL) { in dt_strtab_grow() 58 sp->str_bufs = bufs; in dt_strtab_grow()
|
| /freebsd-11-stable/lib/libcasper/services/cap_pwd/tests/ |
| HD | pwd_test.c | 153 char bufs[1024], bufc[1024]; in runtest_cmds() local 173 getpwent_r(&sts, bufs, sizeof(bufs), &pwds); in runtest_cmds() 177 getpwent_r(&sts, bufs, sizeof(bufs), &pwds); in runtest_cmds() 186 getpwent_r(&sts, bufs, sizeof(bufs), &pwds); in runtest_cmds() 205 getpwnam_r("root", &sts, bufs, sizeof(bufs), &pwds); in runtest_cmds() 208 getpwnam_r("operator", &sts, bufs, sizeof(bufs), &pwds); in runtest_cmds() 224 getpwuid_r(UID_ROOT, &sts, bufs, sizeof(bufs), &pwds); in runtest_cmds() 227 getpwuid_r(UID_OPERATOR, &sts, bufs, sizeof(bufs), &pwds); in runtest_cmds()
|
| /freebsd-11-stable/lib/libcasper/services/cap_grp/tests/ |
| HD | grp_test.c | 139 char bufs[1024], bufc[1024]; in runtest_cmds() local 160 getgrent_r(&sts, bufs, sizeof(bufs), &grps); in runtest_cmds() 164 getgrent_r(&sts, bufs, sizeof(bufs), &grps); in runtest_cmds() 174 getgrent_r(&sts, bufs, sizeof(bufs), &grps); in runtest_cmds() 193 getgrnam_r("wheel", &sts, bufs, sizeof(bufs), &grps); in runtest_cmds() 196 getgrnam_r("operator", &sts, bufs, sizeof(bufs), &grps); in runtest_cmds() 212 getgrgid_r(GID_WHEEL, &sts, bufs, sizeof(bufs), &grps); in runtest_cmds() 215 getgrgid_r(GID_OPERATOR, &sts, bufs, sizeof(bufs), &grps); in runtest_cmds()
|
| /freebsd-11-stable/usr.bin/tsort/ |
| HD | tsort.c | 119 BUF bufs[2]; in main() local 152 for (b = bufs, n = 2; --n >= 0; b++) in main() 163 b = &bufs[n]; in main() 175 add_arc(bufs[0].b_buf, bufs[1].b_buf); in main()
|
| /freebsd-11-stable/sys/mips/cavium/octe/ |
| HD | ethernet-rx.c | 197 mbuf_in_hw = work->word2.s.bufs == 1; in cvm_oct_tasklet_rx() 241 if ((work->word2.s.bufs == 0)) { in cvm_oct_tasklet_rx() 255 int segments = work->word2.s.bufs; in cvm_oct_tasklet_rx()
|
| /freebsd-11-stable/sbin/routed/ |
| HD | trace.c | 127 } bufs[NUM_BUFS]; in naddr_ntoa() local 132 s = strcpy(bufs[bufno].str, inet_ntoa(addr)); in naddr_ntoa() 441 } bufs[NUM_BUFS]; in addrname() local 447 strlcpy(bufs[bufno].str, naddr_ntoa(addr), sizeof(bufs[bufno].str)); in addrname() 448 s = bufs[bufno].str; in addrname() 449 l = sizeof(bufs[bufno].str); in addrname()
|
| /freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/ |
| HD | dtrace.c | 1168 } bufs[] = { local 1180 for (i = 0; bufs[i].name != NULL; i++) { 1181 if (dtrace_getopt(g_dtp, bufs[i].optname, &bufs[i].val) == -1) 1182 fatal("couldn't get option %s", bufs[i].optname); 1193 for (i = 0; bufs[i].name != NULL; i++) { 1197 if (bufs[i].val == DTRACEOPT_UNSET) 1200 (void) dtrace_getopt(g_dtp, bufs[i].optname, &nsize); 1205 if (nsize >= bufs[i].val - sizeof (uint64_t)) 1212 error("%s lowered to %lld%c\n", bufs[i].name, 1215 error("%s lowered to %lld bytes\n", bufs[i].name,
|
| /freebsd-11-stable/crypto/openssl/crypto/idea/ |
| HD | ideatest.c | 217 static char bufs[10][20]; in pt() local 223 ret = &(bufs[bnum++][0]); in pt()
|
| /freebsd-11-stable/crypto/openssl/crypto/rc2/ |
| HD | rc2test.c | 257 static char bufs[10][20]; in pt() local 263 ret = &(bufs[bnum++][0]); in pt()
|