Home
last modified time | relevance | path

Searched refs:bufs (Results 1 – 17 of 17) sorted by relevance

/dragonfly/sys/dev/drm/
HDdrm_dma.c64 memset(&dev->dma->bufs[i], 0, sizeof(dev->dma->bufs[0])); in drm_legacy_dma_setup()
91 if (dma->bufs[i].seg_count) { in drm_legacy_dma_takedown()
95 dma->bufs[i].buf_count, in drm_legacy_dma_takedown()
96 dma->bufs[i].seg_count); in drm_legacy_dma_takedown()
97 for (j = 0; j < dma->bufs[i].seg_count; j++) { in drm_legacy_dma_takedown()
98 if (dma->bufs[i].seglist[j]) { in drm_legacy_dma_takedown()
99 drm_pci_free(dev, dma->bufs[i].seglist[j]); in drm_legacy_dma_takedown()
102 kfree(dma->bufs[i].seglist); in drm_legacy_dma_takedown()
104 if (dma->bufs[i].buf_count) { in drm_legacy_dma_takedown()
105 for (j = 0; j < dma->bufs[i].buf_count; j++) { in drm_legacy_dma_takedown()
[all …]
HDdrm_sysctl.c232 if (dma->bufs[i].buf_count)
235 dma->bufs[i].buf_size,
236 dma->bufs[i].buf_count,
237 dma->bufs[i].seg_count,
238 dma->bufs[i].seg_count
239 *(1 << dma->bufs[i].page_order),
240 (dma->bufs[i].seg_count
241 * (1 << dma->bufs[i].page_order))
HDdrm_bufs.c753 entry = &dma->bufs[order]; in drm_legacy_addbufs_agp()
903 entry = &dma->bufs[order]; in drm_legacy_addbufs_pci()
1115 entry = &dma->bufs[order]; in drm_legacy_addbufs_sg()
1294 if (dma->bufs[i].buf_count) in __drm_legacy_infobufs()
1302 struct drm_buf_entry *from = &dma->bufs[i]; in __drm_legacy_infobufs()
1308 dma->bufs[i].buf_count, in __drm_legacy_infobufs()
1309 dma->bufs[i].buf_size, in __drm_legacy_infobufs()
1310 dma->bufs[i].low_mark, in __drm_legacy_infobufs()
1311 dma->bufs[i].high_mark); in __drm_legacy_infobufs()
1375 entry = &dma->bufs[order]; in drm_legacy_markbufs()
/dragonfly/contrib/xz/src/xz/
HDutil.c18 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 …]
/dragonfly/contrib/cvs-1.12/src/
HDms-buffer.c32 List *bufs; member
74 if (list_isempty (mb->bufs)) return -1; in ms_buffer_input()
77 p = mb->bufs->list->next; in ms_buffer_input()
114 for (p = mb->bufs->list->next; p != mb->bufs->list; p = p->next) in ms_buffer_shutdown()
120 dellist (&mb->bufs); in ms_buffer_shutdown()
149 mb->bufs = getlist (); in ms_buffer_initialize()
153 addnode (mb->bufs, p); in ms_buffer_initialize()
/dragonfly/contrib/xz/src/liblzma/common/
HDoutqueue.c77 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()
HDoutqueue.h39 lzma_outbuf *bufs; member
/dragonfly/sys/dev/video/cxm/
HDcxm.c1232 switch (sc->enc_pool.bufs[current].byte_order) { in cxm_encoder_fixup_byte_order()
1240 ptr = (uint32_t *)sc->enc_pool.bufs[current].vaddr; in cxm_encoder_fixup_byte_order()
1241 nbytes != sc->enc_pool.bufs[current].size; in cxm_encoder_fixup_byte_order()
1262 src = (uint32_t *)sc->enc_pool.bufs[current].vaddr; in cxm_encoder_fixup_byte_order()
1266 strips = sc->enc_pool.bufs[current].size in cxm_encoder_fixup_byte_order()
1270 ptr = (uint32_t *)sc->enc_pool.bufs[scratch].vaddr in cxm_encoder_fixup_byte_order()
1291 sc->enc_pool.bufs[scratch].size in cxm_encoder_fixup_byte_order()
1292 = sc->enc_pool.bufs[current].size; in cxm_encoder_fixup_byte_order()
1301 sc->enc_pool.bufs[current].byte_order = cxm_host_byte_order; in cxm_encoder_fixup_byte_order()
1485 sc->enc_pool.bufs[current].size in cxm_encoder_dma_request()
[all …]
HDcxm.h77 struct cxm_buffer bufs[CXM_SG_BUFFERS]; member
/dragonfly/usr.bin/tsort/
HDtsort.c112 BUF bufs[2]; in main() local
146 for (b = bufs, n = 2; --n >= 0; b++) in main()
157 b = &bufs[n]; in main()
169 add_arc(bufs[0].b_buf, bufs[1].b_buf); in main()
/dragonfly/sbin/routed/
HDtrace.c115 } bufs[NUM_BUFS]; in naddr_ntoa() local
120 s = strcpy(bufs[bufno].str, inet_ntoa(addr)); in naddr_ntoa()
421 } bufs[NUM_BUFS]; in addrname() local
426 s = strcpy(bufs[bufno].str, naddr_ntoa(addr)); in addrname()
/dragonfly/sys/dev/drm/include/drm/
HDdrm_legacy.h105 … struct drm_buf_entry bufs[DRM_MAX_ORDER + 1]; /**< buffers, grouped by their size order */ member
/dragonfly/contrib/file/src/
HDmagic.c329 magic_load_buffers(struct magic_set *ms, void **bufs, size_t *sizes, in magic_load_buffers() argument
334 return buffer_apprentice(ms, RCAST(struct magic **, bufs), in magic_load_buffers()
HDapprentice.c692 buffer_apprentice(struct magic_set *ms, struct magic **bufs, in buffer_apprentice() argument
715 map = apprentice_buf(ms, bufs[i], sizes[i]); in buffer_apprentice()
/dragonfly/sys/dev/virtual/amazon/ena/
HDena.h198 struct ena_com_buf bufs[ENA_PKT_MAX_BUFS]; member
HDena.c2802 ena_buf = tx_info->bufs; in ena_xmit_mbuf()
2836 ena_tx_ctx.ena_bufs = tx_info->bufs; in ena_xmit_mbuf()
/dragonfly/usr.sbin/ppp/
HDmp.c833 int bufs = 0; in mp_ShowStatus() local
839 bufs++; in mp_ShowStatus()
842 prompt_Printf(arg->prompt, "Pending frags: %d", bufs); in mp_ShowStatus()
843 if (bufs) { in mp_ShowStatus()