| /src/sys/dev/drm2/ |
| H A D | drm_dma.c | 56 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 D | drm_sysctl.c | 299 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 D | drm_bufs.c | 748 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 …]
|
| /src/contrib/unbound/testcode/ |
| H A D | unitldns.c | 77 size_t bufs) in rr_transform() argument 92 buf_to_hex(b, len, wire1, bufs); in rr_transform() 95 err = sldns_wire2str_rr_buf(b, len, txt_out, bufs); in rr_transform() 96 unit_assert(err < (int)bufs && err > 0); in rr_transform() 108 buf_to_hex(b, len, wire2, bufs); in rr_transform() 145 size_t bufs = 131072; in rr_test_file() local 148 char* txt_in = (char*)malloc(bufs); in rr_test_file() 149 char* txt_out = (char*)malloc(bufs); in rr_test_file() 150 char* txt_chk = (char*)malloc(bufs); in rr_test_file() 151 char* wire_out = (char*)malloc(bufs); in rr_test_file() [all …]
|
| /src/contrib/xz/src/xz/ |
| H A D | util.c | 21 static char bufs[4][128]; variable 57 bufs[slot][0] = '\0'; in check_thousand_sep() 58 snprintf(bufs[slot], sizeof(bufs[slot]), "%'u", 1U); in check_thousand_sep() 59 thousand = bufs[slot][0] == '1' ? WORKS : BROKEN; in check_thousand_sep() 191 assert(slot < ARRAY_SIZE(bufs)); in uint64_to_str() 195 snprintf(bufs[slot], sizeof(bufs[slot]), in uint64_to_str() 198 return bufs[slot]; in uint64_to_str() 209 assert(slot < ARRAY_SIZE(bufs)); in uint64_to_nicestr() 214 char *pos = bufs[slot]; in uint64_to_nicestr() 215 size_t left = sizeof(bufs[slot]); in uint64_to_nicestr() [all …]
|
| /src/stand/i386/libi386/ |
| H A D | biossmap.c | 44 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()
|
| /src/sys/contrib/ncsw/Peripherals/BM/ |
| H A D | bm_pool.c | 80 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 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
|
| /src/lib/libopenbsd/ |
| H A D | imsg-buffer.c | 153 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()
|
| /src/sys/dev/gve/ |
| H A D | gve_rx_dqo.c | 45 buf = &rx->dqo.bufs[i]; in gve_free_rx_mbufs_dqo() 74 if (rx->dqo.bufs != NULL) { in gve_rx_free_ring_dqo() 79 if (rx->dqo.bufs[j].mapped) in gve_rx_free_ring_dqo() 81 rx->dqo.bufs[j].dmamap); in gve_rx_free_ring_dqo() 84 free(rx->dqo.bufs, M_GVE); in gve_rx_free_ring_dqo() 85 rx->dqo.bufs = NULL; in gve_rx_free_ring_dqo() 128 rx->dqo.bufs = malloc(rx->dqo.buf_cnt * sizeof(struct gve_rx_buf_dqo), in gve_rx_alloc_ring_dqo() 167 &rx->dqo.bufs[j].dmamap); in gve_rx_alloc_ring_dqo() 174 rx->dqo.bufs[j].mapped = true; in gve_rx_alloc_ring_dqo() 235 struct gve_rx_buf_dqo *buf = &rx->dqo.bufs[j]; in gve_clear_rx_ring_dqo() [all …]
|
| /src/sys/dev/mlx5/mlx5_fpga/ |
| H A D | mlx5fpga_conn.c | 120 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 D | conn.h | 73 struct mlx5_fpga_dma_buf **bufs; member 80 struct mlx5_fpga_dma_buf **bufs; member
|
| /src/sys/dev/xen/privcmd/ |
| H A D | privcmd.c | 449 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()
|
| /src/usr.bin/tsort/ |
| H A D | tsort.c | 108 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()
|
| /src/cddl/contrib/opensolaris/lib/libdtrace/common/ |
| H A D | dt_link.c | 1141 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 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()
|
| /src/lib/libcasper/services/cap_pwd/tests/ |
| H A D | pwd_test.c | 152 char bufs[1024], bufc[1024]; in runtest_cmds() local 172 getpwent_r(&sts, bufs, sizeof(bufs), &pwds); in runtest_cmds() 176 getpwent_r(&sts, bufs, sizeof(bufs), &pwds); in runtest_cmds() 185 getpwent_r(&sts, bufs, sizeof(bufs), &pwds); in runtest_cmds() 204 getpwnam_r("root", &sts, bufs, sizeof(bufs), &pwds); in runtest_cmds() 207 getpwnam_r("operator", &sts, bufs, sizeof(bufs), &pwds); in runtest_cmds() 223 getpwuid_r(UID_ROOT, &sts, bufs, sizeof(bufs), &pwds); in runtest_cmds() 226 getpwuid_r(UID_OPERATOR, &sts, bufs, sizeof(bufs), &pwds); in runtest_cmds()
|
| /src/lib/libcasper/services/cap_grp/tests/ |
| H A D | grp_test.c | 138 char bufs[1024], bufc[1024]; in runtest_cmds() local 159 getgrent_r(&sts, bufs, sizeof(bufs), &grps); in runtest_cmds() 163 getgrent_r(&sts, bufs, sizeof(bufs), &grps); in runtest_cmds() 173 getgrent_r(&sts, bufs, sizeof(bufs), &grps); in runtest_cmds() 192 getgrnam_r("wheel", &sts, bufs, sizeof(bufs), &grps); in runtest_cmds() 195 getgrnam_r("operator", &sts, bufs, sizeof(bufs), &grps); in runtest_cmds() 211 getgrgid_r(GID_WHEEL, &sts, bufs, sizeof(bufs), &grps); in runtest_cmds() 214 getgrgid_r(GID_OPERATOR, &sts, bufs, sizeof(bufs), &grps); in runtest_cmds()
|
| /src/sys/dev/ice/ |
| H A D | ice_ddp_common.c | 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() 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() 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 + start); in ice_dwnld_cfg_bufs_no_lock() 400 bh = (struct ice_buf_hdr *)(bufs + start + i); in ice_dwnld_cfg_bufs_no_lock() 537 struct ice_buf_table *bufs; in ice_download_pkg_config_seg() local 546 bufs = ice_find_buf_table(seg); in ice_download_pkg_config_seg() [all …]
|
| /src/sbin/routed/ |
| H A D | trace.c | 113 } 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()
|
| /src/cddl/contrib/opensolaris/cmd/dtrace/ |
| H A D | dtrace.c | 1180 } 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,
|
| /src/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()
|
| /src/sys/ofed/include/rdma/ |
| H A D | rdma_sdp.h | 47 __u16 bufs; member
|
| /src/sys/amd64/include/xen/ |
| H A D | hypercall.h | 383 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()
|