/freebsd-13-stable/sys/dev/drm2/ |
H A D | drm_dma.c | 58 memset(&dev->dma->bufs[i], 0, sizeof(dev->dma->bufs[0])); 81 if (dma->bufs[i].seg_count) { 85 dma->bufs[i].buf_count, 86 dma->bufs[i].seg_count); 87 for (j = 0; j < dma->bufs[i].seg_count; j++) { 88 if (dma->bufs[i].seglist[j]) { 89 drm_pci_free(dev, dma->bufs[i].seglist[j]); 92 free(dma->bufs[i].seglist, DRM_MEM_SEGS); 94 if (dma->bufs[ [all...] |
H A D | drm_sysctl.c | 50 {"bufs", drm_bufs_info}, 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[ [all...] |
/freebsd-13-stable/contrib/xz/src/xz/ |
H A D | util.c | 18 static char bufs[4][128]; variable 159 bufs[slot][0] = '\0'; 161 snprintf(bufs[slot], sizeof(bufs[slot]), "%'u", 1U); 163 thousand = bufs[slot][0] == '1' ? WORKS : BROKEN; 173 assert(slot < ARRAY_SIZE(bufs)); 178 snprintf(bufs[slot], sizeof(bufs[slot]), "%'" PRIu64, value); 180 snprintf(bufs[slot], sizeof(bufs[slo [all...] |
/freebsd-13-stable/contrib/xz/src/liblzma/common/ |
H A D | outqueue.c | 77 outq->bufs = lzma_alloc(bufs_count * sizeof(lzma_outbuf), 82 if (outq->bufs == NULL || outq->bufs_mem == NULL) { 89 // outq->bufs[] is done when they are actually needed. 103 lzma_free(outq->bufs, allocator); 104 outq->bufs = NULL; 120 lzma_outbuf *buf = &outq->bufs[outq->bufs_pos]; 142 return outq->bufs[i].finished; 161 lzma_outbuf *buf = &outq->bufs[i];
|
H A D | outqueue.h | 39 lzma_outbuf *bufs; member in struct:__anon6632 50 /// Position in the bufs array. The next buffer to be taken 51 /// into use is bufs[bufs_pos].
|
/freebsd-13-stable/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); 99 STAILQ_FOREACH(cur, &head, bufs) 106 STAILQ_FOREACH(cur, &head, bufs) 114 next = STAILQ_NEXT(cur, bufs);
|
/freebsd-13-stable/sys/dev/mlx5/mlx5_fpga/ |
H A D | conn.h | 75 struct mlx5_fpga_dma_buf **bufs; member in struct:mlx5_fpga_conn::__anon12988::__anon12989 82 struct mlx5_fpga_dma_buf **bufs; member in struct:mlx5_fpga_conn::__anon12988::__anon12990
|
H A D | mlx5fpga_conn.c | 122 conn->qp.rq.bufs[ix] = buf; 171 conn->qp.sq.bufs[ix] = buf; 256 buf = conn->qp.rq.bufs[ix]; 257 conn->qp.rq.bufs[ix] = NULL; 300 buf = conn->qp.sq.bufs[ix]; 301 conn->qp.sq.bufs[ix] = NULL; 552 conn->qp.rq.bufs = kvzalloc(sizeof(conn->qp.rq.bufs[0]) * 554 if (!conn->qp.rq.bufs) { 559 conn->qp.sq.bufs [all...] |
/freebsd-13-stable/lib/libopenbsd/ |
H A D | imsg-buffer.c | 155 TAILQ_FOREACH(buf, &msgbuf->bufs, entry) { 194 TAILQ_INIT(&msgbuf->bufs); 202 for (buf = TAILQ_FIRST(&msgbuf->bufs); buf != NULL && n > 0; 220 while ((buf = TAILQ_FIRST(&msgbuf->bufs)) != NULL) 241 TAILQ_FOREACH(buf, &msgbuf->bufs, entry) { 295 TAILQ_INSERT_TAIL(&msgbuf->bufs, buf, entry); 302 TAILQ_REMOVE(&msgbuf->bufs, buf, entry);
|
H A D | imsg.h | 41 TAILQ_HEAD(, ibuf) bufs; member in struct:msgbuf
|
/freebsd-13-stable/sys/ofed/include/rdma/ |
H A D | rdma_sdp.h | 49 __u16 bufs; member in struct:sdp_bsdh
|
/freebsd-13-stable/sys/contrib/ncsw/Peripherals/BM/ |
H A D | bm_portal.c | 351 * @bufs: an array of buffers to release 352 * @num: the number of buffers in @bufs (1-8) 370 struct bm_buffer *bufs, 392 r->bufs[i].hi = bufs[i].hi; 393 r->bufs[i].lo = bufs[i].lo; 406 struct bm_buffer *bufs, 425 bufs[num].bpid = bpid; 426 bufs[nu 368 BmPortalRelease(t_Handle h_BmPortal, uint8_t bpid, struct bm_buffer *bufs, uint8_t num, uint32_t flags) argument 404 BmPortalAcquire(t_Handle h_BmPortal, uint8_t bpid, struct bm_buffer *bufs, uint8_t num) argument [all...] |
H A D | bm_pool.c | 80 struct bm_buffer *bufs, 90 return BmPortalRelease(h_BmPortal, p_BmPool->bpid, bufs, num, flags); 101 * at least 8 bufs already in the stockpile, so all release-to-hw ops 102 * are for 8 bufs. Despite all this, the API must indicate whether the 111 bufs, 134 struct bm_buffer *bufs, uint8_t num, uint32_t flags) 142 return BmPortalAcquire(h_BmPortal, p_BmPool->bpid, bufs, num); 156 memcpy(bufs, 405 struct bm_buffer bufs[1]; local 426 retBufsNum = (uint8_t)BmPoolAcquire(p_BmPool, h_BmPortal, bufs, 78 BmPoolRelease(t_BmPool *p_BmPool, t_Handle h_BmPortal, struct bm_buffer *bufs, uint8_t num, uint32_t flags) argument 133 BmPoolAcquire(t_BmPool *p_BmPool,t_Handle h_BmPortal, struct bm_buffer *bufs, uint8_t num, uint32_t flags) argument 445 struct bm_buffer bufs[1]; local [all...] |
/freebsd-13-stable/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 packet */ member in struct:__anon10392::__anon10393 139 uint64_t bufs : 8; /**< HW sets this to the number of buffers used by this packet */ member in struct:__anon10392::__anon10394 197 uint64_t bufs : 8; /**< HW sets this to the number of buffers used by this packet */ member in struct:__anon10392::__anon10395 266 uint64_t bufs : 8; /**< HW sets this to the number of buffers used by this packet */ member in struct:__anon10392::__anon10397 321 uint64_t bufs : 8; /**< HW sets this to the number of buffers used by this packet */ member in struct:__anon10392::__anon10398 376 uint64_t bufs : 8; /**< HW sets this to the number of buffers used by this packet */ member in struct:__anon10392::__anon10399
|
H A D | cvmx-helper-util.h | 275 number_buffers = work->word2.s.bufs;
|
/freebsd-13-stable/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_strtab.c | 45 char *ptr, **bufs; local 50 bufs = realloc(sp->str_bufs, (sp->str_nbufs + 1) * sizeof (char *)); 52 if (bufs == NULL) { 58 sp->str_bufs = bufs;
|
H A D | dt_link.c | 1068 dt_link_error(dtrace_hdl_t *dtp, Elf *elf, int fd, dt_link_pair_t *bufs, argument 1084 while ((pair = bufs) != NULL) { 1085 bufs = pair->dlp_next; 1137 dt_link_pair_t *pair, *bufs = NULL; local 1142 return (dt_link_error(dtp, elf, fd, bufs, 1147 return (dt_link_error(dtp, elf, fd, bufs, 1155 return (dt_link_error(dtp, elf, fd, bufs, "archives are not " 1159 return (dt_link_error(dtp, elf, fd, bufs, 1164 return (dt_link_error(dtp, elf, fd, bufs, "corrupt file: %s", 1198 return (dt_link_error(dtp, elf, fd, bufs, [all...] |
/freebsd-13-stable/usr.bin/tsort/ |
H A D | tsort.c | 121 BUF bufs[2]; local 154 for (b = bufs, n = 2; --n >= 0; b++) 165 b = &bufs[n]; 177 add_arc(bufs[0].b_buf, bufs[1].b_buf);
|
/freebsd-13-stable/sys/dev/xen/privcmd/ |
H A D | privcmd.c | 466 struct privcmd_dmop_buf *bufs; local 484 bufs = malloc(sizeof(*bufs) * dmop->num, M_PRIVCMD, M_WAITOK); 486 error = copyin(dmop->ubufs, bufs, sizeof(*bufs) * dmop->num); 488 free(bufs, M_PRIVCMD); 494 set_xen_guest_handle(hbufs[i].h, bufs[i].uptr); 495 hbufs[i].size = bufs[i].size; 510 free(bufs, M_PRIVCMD);
|
/freebsd-13-stable/sys/mips/cavium/octe/ |
H A D | ethernet-rx.c | 191 mbuf_in_hw = work->word2.s.bufs == 1; 233 if ((work->word2.s.bufs == 0)) { 247 int segments = work->word2.s.bufs;
|
/freebsd-13-stable/lib/libcasper/services/cap_grp/tests/ |
H A D | grp_test.c | 142 char bufs[1024], bufc[1024]; local 163 getgrent_r(&sts, bufs, sizeof(bufs), &grps); 167 getgrent_r(&sts, bufs, sizeof(bufs), &grps); 177 getgrent_r(&sts, bufs, sizeof(bufs), &grps); 196 getgrnam_r("wheel", &sts, bufs, sizeof(bufs), &grps); 199 getgrnam_r("operator", &sts, bufs, sizeo [all...] |
/freebsd-13-stable/lib/libcasper/services/cap_pwd/tests/ |
H A D | pwd_test.c | 156 char bufs[1024], bufc[1024]; local 176 getpwent_r(&sts, bufs, sizeof(bufs), &pwds); 180 getpwent_r(&sts, bufs, sizeof(bufs), &pwds); 189 getpwent_r(&sts, bufs, sizeof(bufs), &pwds); 208 getpwnam_r("root", &sts, bufs, sizeof(bufs), &pwds); 211 getpwnam_r("operator", &sts, bufs, sizeo [all...] |
/freebsd-13-stable/contrib/mandoc/ |
H A D | html.c | 335 char *buf, *bufs, *cp; local 365 bufs = NULL; 371 free(bufs); 376 mandoc_asprintf(&bufs, "%s_%d", buf, suffix); 377 slot = ohash_qlookup(&id_unique, bufs); 381 buf = bufs;
|
/freebsd-13-stable/sys/ofed/drivers/infiniband/ulp/sdp/ |
H A D | sdp_cma.c | 178 ssk->max_bufs = ntohs(h->bsdh.bufs); 210 ssk->max_bufs = ntohs(h->bsdh.bufs); 327 hh.bsdh.bufs = htons(rx_ring_posted(sdp_sk(sk))); 357 hah.bsdh.bufs = htons(rx_ring_posted(ssk));
|
/freebsd-13-stable/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[ [all...] |