Searched refs:bufs (Results 1 - 25 of 59) sorted by relevance

123

/freebsd-11-stable/sys/dev/drm2/
H A Ddrm_dma.c58 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 Ddrm_sysctl.c50 {"bufs", drm_bufs_info},
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[
[all...]
/freebsd-11-stable/contrib/xz/src/xz/
H A Dutil.c18 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-11-stable/sys/dev/drm/
H A Ddrm_dma.c66 if (dma->bufs[i].seg_count) {
68 " seg_count = %d\n", i, dma->bufs[i].buf_count,
69 dma->bufs[i].seg_count);
70 for (j = 0; j < dma->bufs[i].seg_count; j++) {
71 drm_pci_free(dev, dma->bufs[i].seglist[j]);
73 free(dma->bufs[i].seglist, DRM_MEM_SEGS);
76 if (dma->bufs[i].buf_count) {
77 for (j = 0; j < dma->bufs[i].buf_count; j++) {
78 free(dma->bufs[i].buflist[j].dev_private,
81 free(dma->bufs[
[all...]
H A Ddrm_sysctl.c50 {"bufs", drm_bufs_info},
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[
[all...]
H A Ddrm_bufs.c467 entry = &dma->bufs[order];
569 entry = &dma->bufs[order];
726 entry = &dma->bufs[order];
819 if (dev->dma->bufs[order].buf_count != 0) {
853 if (dev->dma->bufs[order].buf_count != 0) {
887 if (dev->dma->bufs[order].buf_count != 0) {
927 if (dma->bufs[i].buf_count)
935 if (dma->bufs[i].buf_count) {
939 from.count = dma->bufs[i].buf_count;
940 from.size = dma->bufs[
[all...]
/freebsd-11-stable/contrib/xz/src/liblzma/common/
H A Doutqueue.c77 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 Doutqueue.h39 lzma_outbuf *bufs; member in struct:__anon5874
50 /// Position in the bufs array. The next buffer to be taken
51 /// into use is bufs[bufs_pos].
/freebsd-11-stable/stand/i386/libi386/
H A Dbiossmap.c47 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-11-stable/sys/dev/mlx5/mlx5_fpga/
H A Dconn.h75 struct mlx5_fpga_dma_buf **bufs; member in struct:mlx5_fpga_conn::__anon4927::__anon4928
82 struct mlx5_fpga_dma_buf **bufs; member in struct:mlx5_fpga_conn::__anon4927::__anon4929
H A Dmlx5fpga_conn.c122 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-11-stable/lib/libopenbsd/
H A Dimsg-buffer.c155 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 Dimsg.h41 TAILQ_HEAD(, ibuf) bufs; member in struct:msgbuf
/freebsd-11-stable/sys/contrib/ncsw/Peripherals/BM/
H A Dbm_portal.c351 * @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 Dbm_pool.c80 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-11-stable/sys/contrib/octeon-sdk/
H A Dcvmx-wqe.h83 uint64_t bufs : 8; /**< HW sets this to the number of buffers used by this packet */ member in struct:__anon8812::__anon8813
139 uint64_t bufs : 8; /**< HW sets this to the number of buffers used by this packet */ member in struct:__anon8812::__anon8814
197 uint64_t bufs : 8; /**< HW sets this to the number of buffers used by this packet */ member in struct:__anon8812::__anon8815
266 uint64_t bufs : 8; /**< HW sets this to the number of buffers used by this packet */ member in struct:__anon8812::__anon8817
321 uint64_t bufs : 8; /**< HW sets this to the number of buffers used by this packet */ member in struct:__anon8812::__anon8818
376 uint64_t bufs : 8; /**< HW sets this to the number of buffers used by this packet */ member in struct:__anon8812::__anon8819
H A Dcvmx-helper-util.h275 number_buffers = work->word2.s.bufs;
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_strtab.c45 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 Ddt_link.c1165 dt_link_error(dtrace_hdl_t *dtp, Elf *elf, int fd, dt_link_pair_t *bufs, argument
1181 while ((pair = bufs) != NULL) {
1182 bufs = pair->dlp_next;
1214 dt_link_pair_t *pair, *bufs = NULL; local
1218 return (dt_link_error(dtp, elf, fd, bufs,
1223 return (dt_link_error(dtp, elf, fd, bufs,
1231 return (dt_link_error(dtp, elf, fd, bufs, "archives are not "
1235 return (dt_link_error(dtp, elf, fd, bufs,
1240 return (dt_link_error(dtp, elf, fd, bufs, "corrupt file: %s",
1274 return (dt_link_error(dtp, elf, fd, bufs,
[all...]
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
H A Ddmu_impl.h243 struct arc_buf **bufs; member in struct:dmu_xuio
/freebsd-11-stable/usr.bin/tsort/
H A Dtsort.c119 BUF bufs[2]; local
152 for (b = bufs, n = 2; --n >= 0; b++)
163 b = &bufs[n];
175 add_arc(bufs[0].b_buf, bufs[1].b_buf);
/freebsd-11-stable/sys/mips/cavium/octe/
H A Dethernet-rx.c197 mbuf_in_hw = work->word2.s.bufs == 1;
241 if ((work->word2.s.bufs == 0)) {
255 int segments = work->word2.s.bufs;
/freebsd-11-stable/lib/libcasper/services/cap_grp/tests/
H A Dgrp_test.c139 char bufs[1024], bufc[1024]; local
160 getgrent_r(&sts, bufs, sizeof(bufs), &grps);
164 getgrent_r(&sts, bufs, sizeof(bufs), &grps);
174 getgrent_r(&sts, bufs, sizeof(bufs), &grps);
193 getgrnam_r("wheel", &sts, bufs, sizeof(bufs), &grps);
196 getgrnam_r("operator", &sts, bufs, sizeo
[all...]
/freebsd-11-stable/lib/libcasper/services/cap_pwd/tests/
H A Dpwd_test.c153 char bufs[1024], bufc[1024]; local
173 getpwent_r(&sts, bufs, sizeof(bufs), &pwds);
177 getpwent_r(&sts, bufs, sizeof(bufs), &pwds);
186 getpwent_r(&sts, bufs, sizeof(bufs), &pwds);
205 getpwnam_r("root", &sts, bufs, sizeof(bufs), &pwds);
208 getpwnam_r("operator", &sts, bufs, sizeo
[all...]
/freebsd-11-stable/sys/ofed/drivers/infiniband/ulp/sdp/
H A Dsdp_cma.c171 ssk->max_bufs = ntohs(h->bsdh.bufs);
203 ssk->max_bufs = ntohs(h->bsdh.bufs);
320 hh.bsdh.bufs = htons(rx_ring_posted(sdp_sk(sk)));
350 hah.bsdh.bufs = htons(rx_ring_posted(ssk));

Completed in 177 milliseconds

123