| /freebsd-13.1/sys/dev/drm2/ |
| H A D | 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() 96 free(dma->bufs[i].buflist[j].dev_private, in drm_dma_takedown() [all …]
|
| H A D | drm_sysctl.c | 301 if (dma->bufs[i].buf_count) 304 dma->bufs[i].buf_size, 305 dma->bufs[i].buf_count, 306 atomic_read(&dma->bufs[i] 308 dma->bufs[i].seg_count, 309 dma->bufs[i].seg_count 310 *(1 << dma->bufs[i].page_order), 311 (dma->bufs[i].seg_count 312 * (1 << dma->bufs[i].page_order))
|
| H A D | 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() 1475 dma->bufs[i].buf_count, in drm_infobufs() 1476 dma->bufs[i].buf_size, in drm_infobufs() 1477 dma->bufs[i].freelist.low_mark, in drm_infobufs() 1478 dma->bufs[i].freelist.high_mark); in drm_infobufs() [all …]
|
| /freebsd-13.1/contrib/xz/src/xz/ |
| H A D | 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() 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() 199 size_t left = sizeof(bufs[slot]); in uint64_to_nicestr() [all …]
|
| /freebsd-13.1/contrib/xz/src/liblzma/common/ |
| H A D | 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-13.1/stand/i386/libi386/ |
| H A D | 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-13.1/sys/contrib/ncsw/Peripherals/BM/ |
| H A D | bm_pool.c | 80 struct bm_buffer *bufs, in BmPoolRelease() argument 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 432 physAddr = (uint64_t)bufs[0].lo; in BM_POOL_GetBuf() 445 struct bm_buffer bufs[1]; in BM_POOL_PutBuf() local 453 bufs[0].bpid = p_BmPool->bpid; in BM_POOL_PutBuf() 454 bufs[0].hi = (uint8_t)((physAddress & 0x000000ff00000000LL) >> 32); in BM_POOL_PutBuf() [all …]
|
| H A D | 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()
|
| H A D | fsl_bman.h | 251 volatile struct bm_buffer bufs[8]; member 284 volatile struct bm_buffer bufs[8]; member
|
| /freebsd-13.1/lib/libopenbsd/ |
| H A D | 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-13.1/sys/dev/mlx5/mlx5_fpga/ |
| H A D | 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() 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() 607 kvfree(conn->qp.sq.bufs); in mlx5_fpga_conn_create_qp() 609 kvfree(conn->qp.rq.bufs); in mlx5_fpga_conn_create_qp() 658 kvfree(conn->qp.sq.bufs); in mlx5_fpga_conn_destroy_qp() [all …]
|
| H A D | conn.h | 75 struct mlx5_fpga_dma_buf **bufs; member 82 struct mlx5_fpga_dma_buf **bufs; member
|
| /freebsd-13.1/sys/dev/xen/privcmd/ |
| H A D | privcmd.c | 466 struct privcmd_dmop_buf *bufs; in privcmd_ioctl() local 484 bufs = malloc(sizeof(*bufs) * dmop->num, M_PRIVCMD, M_WAITOK); in privcmd_ioctl() 486 error = copyin(dmop->ubufs, bufs, sizeof(*bufs) * dmop->num); in privcmd_ioctl() 488 free(bufs, M_PRIVCMD); in privcmd_ioctl() 494 set_xen_guest_handle(hbufs[i].h, bufs[i].uptr); in privcmd_ioctl() 495 hbufs[i].size = bufs[i].size; in privcmd_ioctl() 510 free(bufs, M_PRIVCMD); in privcmd_ioctl()
|
| /freebsd-13.1/sys/contrib/octeon-sdk/ |
| H A D | 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-13.1/usr.bin/tsort/ |
| H A D | tsort.c | 121 BUF bufs[2]; in main() local 154 for (b = bufs, n = 2; --n >= 0; b++) in main() 165 b = &bufs[n]; in main() 177 add_arc(bufs[0].b_buf, bufs[1].b_buf); in main()
|
| /freebsd-13.1/cddl/contrib/opensolaris/lib/libdtrace/common/ |
| H A D | dt_link.c | 1084 while ((pair = bufs) != NULL) { in dt_link_error() 1085 bufs = pair->dlp_next; in dt_link_error() 1137 dt_link_pair_t *pair, *bufs = NULL; in process_obj() local 1142 return (dt_link_error(dtp, elf, fd, bufs, in process_obj() 1147 return (dt_link_error(dtp, elf, fd, bufs, in process_obj() 1159 return (dt_link_error(dtp, elf, fd, bufs, in process_obj() 1416 pair->dlp_next = bufs; in process_obj() 1417 bufs = pair; in process_obj() 1627 while ((pair = bufs) != NULL) { in process_obj() 1628 bufs = pair->dlp_next; in process_obj() [all …]
|
| H A D | 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-13.1/lib/libcasper/services/cap_grp/tests/ |
| H A D | grp_test.c | 142 char bufs[1024], bufc[1024]; in runtest_cmds() local 163 getgrent_r(&sts, bufs, sizeof(bufs), &grps); in runtest_cmds() 167 getgrent_r(&sts, bufs, sizeof(bufs), &grps); in runtest_cmds() 177 getgrent_r(&sts, bufs, sizeof(bufs), &grps); in runtest_cmds() 196 getgrnam_r("wheel", &sts, bufs, sizeof(bufs), &grps); in runtest_cmds() 199 getgrnam_r("operator", &sts, bufs, sizeof(bufs), &grps); in runtest_cmds() 215 getgrgid_r(GID_WHEEL, &sts, bufs, sizeof(bufs), &grps); in runtest_cmds() 218 getgrgid_r(GID_OPERATOR, &sts, bufs, sizeof(bufs), &grps); in runtest_cmds()
|
| /freebsd-13.1/lib/libcasper/services/cap_pwd/tests/ |
| H A D | pwd_test.c | 156 char bufs[1024], bufc[1024]; in runtest_cmds() local 176 getpwent_r(&sts, bufs, sizeof(bufs), &pwds); in runtest_cmds() 180 getpwent_r(&sts, bufs, sizeof(bufs), &pwds); in runtest_cmds() 189 getpwent_r(&sts, bufs, sizeof(bufs), &pwds); in runtest_cmds() 208 getpwnam_r("root", &sts, bufs, sizeof(bufs), &pwds); in runtest_cmds() 211 getpwnam_r("operator", &sts, bufs, sizeof(bufs), &pwds); in runtest_cmds() 227 getpwuid_r(UID_ROOT, &sts, bufs, sizeof(bufs), &pwds); in runtest_cmds() 230 getpwuid_r(UID_OPERATOR, &sts, bufs, sizeof(bufs), &pwds); in runtest_cmds()
|
| /freebsd-13.1/sys/mips/cavium/octe/ |
| H A D | ethernet-rx.c | 191 mbuf_in_hw = work->word2.s.bufs == 1; in cvm_oct_tasklet_rx() 233 if ((work->word2.s.bufs == 0)) { in cvm_oct_tasklet_rx() 247 int segments = work->word2.s.bufs; in cvm_oct_tasklet_rx()
|
| /freebsd-13.1/contrib/mandoc/ |
| H A D | html.c | 335 char *buf, *bufs, *cp; in html_make_id() local 365 bufs = NULL; in html_make_id() 371 free(bufs); in html_make_id() 376 mandoc_asprintf(&bufs, "%s_%d", buf, suffix); in html_make_id() 377 slot = ohash_qlookup(&id_unique, bufs); in html_make_id() 381 buf = bufs; in html_make_id()
|
| /freebsd-13.1/sbin/routed/ |
| H A D | trace.c | 118 } bufs[NUM_BUFS]; in naddr_ntoa() local 123 s = strcpy(bufs[bufno].str, inet_ntoa(addr)); in naddr_ntoa() 428 } bufs[NUM_BUFS]; in addrname() local 434 strlcpy(bufs[bufno].str, naddr_ntoa(addr), sizeof(bufs[bufno].str)); in addrname() 435 s = bufs[bufno].str; in addrname() 436 l = sizeof(bufs[bufno].str); in addrname()
|
| /freebsd-13.1/cddl/contrib/opensolaris/cmd/dtrace/ |
| H A D | dtrace.c | 1169 } bufs[] = { local 1181 for (i = 0; bufs[i].name != NULL; i++) { 1182 if (dtrace_getopt(g_dtp, bufs[i].optname, &bufs[i].val) == -1) 1183 fatal("couldn't get option %s", bufs[i].optname); 1194 for (i = 0; bufs[i].name != NULL; i++) { 1198 if (bufs[i].val == DTRACEOPT_UNSET) 1201 (void) dtrace_getopt(g_dtp, bufs[i].optname, &nsize); 1206 if (nsize >= bufs[i].val - sizeof (uint64_t)) 1213 error("%s lowered to %lld%c\n", bufs[i].name, 1216 error("%s lowered to %lld bytes\n", bufs[i].name,
|
| /freebsd-13.1/sys/ofed/drivers/infiniband/ulp/sdp/ |
| H A D | sdp_cma.c | 178 ssk->max_bufs = ntohs(h->bsdh.bufs); in sdp_connect_handler() 210 ssk->max_bufs = ntohs(h->bsdh.bufs); in sdp_response_handler() 327 hh.bsdh.bufs = htons(rx_ring_posted(sdp_sk(sk))); in sdp_cma_handler() 357 hah.bsdh.bufs = htons(rx_ring_posted(ssk)); in sdp_cma_handler()
|
| /freebsd-13.1/sys/ofed/include/rdma/ |
| H A D | rdma_sdp.h | 49 __u16 bufs; member
|