Home
last modified time | relevance | path

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

12

/freebsd/sys/dev/drm2/
H A Ddrm_dma.c56 memset(&dev->dma->bufs[i], 0, sizeof(dev->dma->bufs[0])); in drm_dma_setup()
79 if (dma->bufs[i].seg_count) { in drm_dma_takedown()
83 dma->bufs[i].buf_count, in drm_dma_takedown()
84 dma->bufs[i].seg_count); in drm_dma_takedown()
85 for (j = 0; j < dma->bufs[i].seg_count; j++) { in drm_dma_takedown()
86 if (dma->bufs[i].seglist[j]) { in drm_dma_takedown()
87 drm_pci_free(dev, dma->bufs[i].seglist[j]); in drm_dma_takedown()
90 free(dma->bufs[i].seglist, DRM_MEM_SEGS); in drm_dma_takedown()
92 if (dma->bufs[i].buf_count) { in drm_dma_takedown()
93 for (j = 0; j < dma->bufs[i].buf_count; j++) { in drm_dma_takedown()
[all …]
H A Ddrm_sysctl.c299 if (dma->bufs[i].buf_count)
302 dma->bufs[i].buf_size,
303 dma->bufs[i].buf_count,
304 atomic_read(&dma->bufs[i]
306 dma->bufs[i].seg_count,
307 dma->bufs[i].seg_count
308 *(1 << dma->bufs[i].page_order),
309 (dma->bufs[i].seg_count
310 * (1 << dma->bufs[i].page_order))
H A Ddrm_bufs.c748 entry = &dma->bufs[order]; in drm_addbufs_agp()
899 entry = &dma->bufs[order]; in drm_addbufs_pci()
1111 entry = &dma->bufs[order]; in drm_addbufs_sg()
1267 entry = &dma->bufs[order]; in drm_addbufs_fb()
1443 if (dma->bufs[i].buf_count) in drm_infobufs()
1451 if (dma->bufs[i].buf_count) { in drm_infobufs()
1454 struct drm_buf_entry *from = &dma->bufs[i]; in drm_infobufs()
1455 struct drm_freelist *list = &dma->bufs[i].freelist; in drm_infobufs()
1472 dma->bufs[i].buf_count, in drm_infobufs()
1473 dma->bufs[i].buf_size, in drm_infobufs()
[all …]
/freebsd/stand/i386/libi386/
H A Dbiossmap.c44 STAILQ_ENTRY(smap_buf) bufs;
47 #define SMAP_BUFSIZE offsetof(struct smap_buf, bufs)
87 STAILQ_INSERT_TAIL(&head, next, bufs); in bios_getsmap()
96 STAILQ_FOREACH(cur, &head, bufs) in bios_getsmap()
103 STAILQ_FOREACH(cur, &head, bufs) in bios_getsmap()
111 next = STAILQ_NEXT(cur, bufs); in bios_getsmap()
/freebsd/sys/contrib/ncsw/Peripherals/BM/
H A Dbm_pool.c80 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 …]
H A Dbm_portal.c370 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 Dfsl_bman.h251 volatile struct bm_buffer bufs[8]; member
284 volatile struct bm_buffer bufs[8]; member
H A Dbm.h448 uint8_t BmPortalAcquire(t_Handle h_BmPortal, uint8_t bpid, struct bm_buffer *bufs, uint8_t num);
449 t_Error BmPortalRelease(t_Handle h_BmPortal, uint8_t bpid, struct bm_buffer *bufs, uint8_t num, uin…
/freebsd/lib/libopenbsd/
H A Dimsg-buffer.c153 TAILQ_FOREACH(buf, &msgbuf->bufs, entry) { in ibuf_write()
192 TAILQ_INIT(&msgbuf->bufs); in msgbuf_init()
200 for (buf = TAILQ_FIRST(&msgbuf->bufs); buf != NULL && n > 0; in msgbuf_drain()
218 while ((buf = TAILQ_FIRST(&msgbuf->bufs)) != NULL) in msgbuf_clear()
239 TAILQ_FOREACH(buf, &msgbuf->bufs, entry) { in msgbuf_write()
293 TAILQ_INSERT_TAIL(&msgbuf->bufs, buf, entry); in ibuf_enqueue()
300 TAILQ_REMOVE(&msgbuf->bufs, buf, entry); in ibuf_dequeue()
H A Dimsg.h39 TAILQ_HEAD(, ibuf) bufs;
/freebsd/sys/dev/gve/
H A Dgve_rx_dqo.c45 buf = &rx->dqo.bufs[i]; in gve_free_rx_mbufs_dqo()
73 if (rx->dqo.bufs != NULL) { in gve_rx_free_ring_dqo()
78 if (rx->dqo.bufs[j].mapped) in gve_rx_free_ring_dqo()
80 rx->dqo.bufs[j].dmamap); in gve_rx_free_ring_dqo()
83 free(rx->dqo.bufs, M_GVE); in gve_rx_free_ring_dqo()
84 rx->dqo.bufs = NULL; in gve_rx_free_ring_dqo()
122 rx->dqo.bufs = malloc(rx->dqo.buf_cnt * sizeof(struct gve_rx_buf_dqo), in gve_rx_alloc_ring_dqo()
156 &rx->dqo.bufs[j].dmamap); in gve_rx_alloc_ring_dqo()
163 rx->dqo.bufs[j].mapped = true; in gve_rx_alloc_ring_dqo()
224 struct gve_rx_buf_dqo *buf = &rx->dqo.bufs[j]; in gve_clear_rx_ring_dqo()
[all …]
/freebsd/sys/dev/mlx5/mlx5_fpga/
H A Dmlx5fpga_conn.c120 conn->qp.rq.bufs[ix] = buf; in mlx5_fpga_conn_post_recv()
169 conn->qp.sq.bufs[ix] = buf; in mlx5_fpga_conn_post_send()
254 buf = conn->qp.rq.bufs[ix]; in mlx5_fpga_conn_rq_cqe()
255 conn->qp.rq.bufs[ix] = NULL; in mlx5_fpga_conn_rq_cqe()
298 buf = conn->qp.sq.bufs[ix]; in mlx5_fpga_conn_sq_cqe()
299 conn->qp.sq.bufs[ix] = NULL; in mlx5_fpga_conn_sq_cqe()
550 conn->qp.rq.bufs = kvzalloc(sizeof(conn->qp.rq.bufs[0]) * in mlx5_fpga_conn_create_qp()
552 if (!conn->qp.rq.bufs) { in mlx5_fpga_conn_create_qp()
557 conn->qp.sq.bufs = kvzalloc(sizeof(conn->qp.sq.bufs[0]) * in mlx5_fpga_conn_create_qp()
559 if (!conn->qp.sq.bufs) { in mlx5_fpga_conn_create_qp()
[all …]
H A Dconn.h73 struct mlx5_fpga_dma_buf **bufs; member
80 struct mlx5_fpga_dma_buf **bufs; member
/freebsd/sys/dev/xen/privcmd/
H A Dprivcmd.c449 struct privcmd_dmop_buf *bufs; in privcmd_ioctl() local
467 bufs = malloc(sizeof(*bufs) * dmop->num, M_PRIVCMD, M_WAITOK); in privcmd_ioctl()
469 error = copyin(dmop->ubufs, bufs, sizeof(*bufs) * dmop->num); in privcmd_ioctl()
471 free(bufs, M_PRIVCMD); in privcmd_ioctl()
477 set_xen_guest_handle(hbufs[i].h, bufs[i].uptr); in privcmd_ioctl()
478 hbufs[i].size = bufs[i].size; in privcmd_ioctl()
493 free(bufs, M_PRIVCMD); in privcmd_ioctl()
/freebsd/usr.bin/tsort/
H A Dtsort.c108 BUF bufs[2]; in main() local
141 for (b = bufs, n = 2; --n >= 0; b++) in main()
152 b = &bufs[n]; in main()
164 add_arc(bufs[0].b_buf, bufs[1].b_buf); in main()
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_link.c1141 dt_link_error(dtrace_hdl_t *dtp, Elf *elf, int fd, dt_link_pair_t *bufs, in dt_link_error() argument
1157 while ((pair = bufs) != NULL) { in dt_link_error()
1158 bufs = pair->dlp_next; in dt_link_error()
1210 dt_link_pair_t *pair, *bufs = NULL; in process_obj() local
1215 return (dt_link_error(dtp, elf, fd, bufs, in process_obj()
1220 return (dt_link_error(dtp, elf, fd, bufs, in process_obj()
1228 return (dt_link_error(dtp, elf, fd, bufs, "archives are not " in process_obj()
1232 return (dt_link_error(dtp, elf, fd, bufs, in process_obj()
1237 return (dt_link_error(dtp, elf, fd, bufs, "corrupt file: %s", in process_obj()
1269 return (dt_link_error(dtp, elf, fd, bufs, in process_obj()
[all …]
H A Ddt_strtab.c45 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/sys/dev/ice/
H A Dice_ddp_common.c255 * @bufs: pointer to an array of buffers
259 ice_update_pkg_no_lock(struct ice_hw *hw, struct ice_buf *bufs, u32 count) in ice_update_pkg_no_lock() argument
265 struct ice_buf_hdr *bh = (struct ice_buf_hdr *)(bufs + i); in ice_update_pkg_no_lock()
285 * @bufs: pointer to an array of buffers
291 ice_update_pkg(struct ice_hw *hw, struct ice_buf *bufs, u32 count) in ice_update_pkg() argument
299 status = ice_update_pkg_no_lock(hw, bufs, count); in ice_update_pkg()
367 * @bufs: pointer to an array of buffers
377 ice_dwnld_cfg_bufs_no_lock(struct ice_hw *hw, struct ice_buf *bufs, u32 start, in ice_dwnld_cfg_bufs_no_lock() argument
385 if (!bufs || !count) in ice_dwnld_cfg_bufs_no_lock()
392 bh = (struct ice_buf_hdr *)(bufs in ice_dwnld_cfg_bufs_no_lock()
545 struct ice_buf_table *bufs; ice_download_pkg_config_seg() local
701 ice_dwnld_cfg_bufs(struct ice_hw * hw,struct ice_buf * bufs,u32 count) ice_dwnld_cfg_bufs() argument
[all...]
H A Dice_ddp_common.h438 ice_update_pkg(struct ice_hw *hw, struct ice_buf *bufs, u32 count);
440 ice_update_pkg_no_lock(struct ice_hw *hw, struct ice_buf *bufs, u32 count);
/freebsd/sbin/routed/
H A Dtrace.c113 } bufs[NUM_BUFS]; in naddr_ntoa() local
118 s = strcpy(bufs[bufno].str, inet_ntoa(addr)); in naddr_ntoa()
423 } bufs[NUM_BUFS]; in addrname() local
429 strlcpy(bufs[bufno].str, naddr_ntoa(addr), sizeof(bufs[bufno].str)); in addrname()
430 s = bufs[bufno].str; in addrname()
431 l = sizeof(bufs[bufno].str); in addrname()
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/
H A Ddtrace.c1180 } bufs[] = { local
1192 for (i = 0; bufs[i].name != NULL; i++) {
1193 if (dtrace_getopt(g_dtp, bufs[i].optname, &bufs[i].val) == -1)
1194 fatal("couldn't get option %s", bufs[i].optname);
1205 for (i = 0; bufs[i].name != NULL; i++) {
1209 if (bufs[i].val == DTRACEOPT_UNSET)
1212 (void) dtrace_getopt(g_dtp, bufs[i].optname, &nsize);
1217 if (nsize >= bufs[i].val - sizeof (uint64_t))
1224 error("%s lowered to %lld%c\n", bufs[i].name,
1227 error("%s lowered to %lld bytes\n", bufs[i].name,
/freebsd/sys/ofed/drivers/infiniband/ulp/sdp/
H A Dsdp_cma.c178 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/sys/ofed/include/rdma/
H A Drdma_sdp.h47 __u16 bufs; member
/freebsd/sys/amd64/include/xen/
H A Dhypercall.h383 domid_t domid, unsigned int nr_bufs, const void *bufs) in HYPERVISOR_dm_op() argument
385 return _hypercall3(int, dm_op, domid, nr_bufs, bufs); in HYPERVISOR_dm_op()
/freebsd/sys/i386/include/xen/
H A Dhypercall.h369 domid_t domid, unsigned int nr_bufs, const void *bufs) in HYPERVISOR_dm_op() argument
371 return _hypercall3(int, dm_op, domid, nr_bufs, bufs); in HYPERVISOR_dm_op()

12