Home
last modified time | relevance | path

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

/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_buffers.c153 tlm_buffer_advance_in_idx(tlm_buffers_t *bufs) in tlm_buffer_advance_in_idx() argument
155 if (bufs == NULL) in tlm_buffer_advance_in_idx()
158 (void) mutex_lock(&bufs->tbs_mtx); in tlm_buffer_advance_in_idx()
159 if (++bufs->tbs_buffer_in >= TLM_TAPE_BUFFERS) in tlm_buffer_advance_in_idx()
160 bufs->tbs_buffer_in = 0; in tlm_buffer_advance_in_idx()
162 (void) mutex_unlock(&bufs->tbs_mtx); in tlm_buffer_advance_in_idx()
163 return (&bufs->tbs_buffer[bufs->tbs_buffer_in]); in tlm_buffer_advance_in_idx()
174 tlm_buffer_advance_out_idx(tlm_buffers_t *bufs) in tlm_buffer_advance_out_idx() argument
176 if (bufs == NULL) in tlm_buffer_advance_out_idx()
179 (void) mutex_lock(&bufs->tbs_mtx); in tlm_buffer_advance_out_idx()
[all …]
H A Dtlm_backup_reader.c1165 tlm_buffers_t *bufs; in write_tar_eof() local
1180 bufs = local_commands->tc_buffers; in write_tar_eof()
1181 (void) get_write_buffer(bufs->tbs_data_transfer_size, in write_tar_eof()
1190 (void) get_write_buffer(bufs->tbs_data_transfer_size, in write_tar_eof()
1194 bufs->tbs_buffer[bufs->tbs_buffer_in].tb_full = TRUE; in write_tar_eof()
1195 tlm_buffer_release_in_buf(bufs); in write_tar_eof()
/illumos-gate/usr/src/cmd/audio/audioconvert/
H A Dconvert.cc136 unsigned int bufs; in free_conv_list() local
141 bufs = list->bufcnt; in free_conv_list()
143 for (i = 0; i < bufs; i++) { in free_conv_list()
164 unsigned int bufs, // number of buffers involved in append_conv_list() argument
173 nlp = new struct conv_list[bufs]; in append_conv_list()
180 for (i = 0; i < bufs; i++) { in append_conv_list()
184 nlp[i].bufcnt = bufs; in append_conv_list()
214 unsigned int& bufs) in add_mux_convert() argument
228 if (bufs == 1) { in add_mux_convert()
235 ihdr.channels = bufs; // set the target interleave in add_mux_convert()
[all …]
/illumos-gate/usr/src/uts/common/fs/hsfs/
H A Dhsfs_vnops.c670 wbuf = &(info->bufs[count]); in hsfs_ra_task()
681 biofini(&(info->bufs[count])); in hsfs_ra_task()
689 kmem_free(info->bufs, info->bufcnt * sizeof (struct buf)); in hsfs_ra_task()
715 struct buf *bufs; in hsfs_getpage_ra() local
814 bufs = kmem_alloc(bufcnt * sizeof (struct buf), KM_SLEEP); in hsfs_getpage_ra()
843 bioinit(&bufs[count]); in hsfs_getpage_ra()
844 bufs[count].b_edev = devvp->v_rdev; in hsfs_getpage_ra()
845 bufs[count].b_dev = cmpdev(devvp->v_rdev); in hsfs_getpage_ra()
846 bufs[count].b_flags = B_NOCACHE|B_BUSY|B_READ; in hsfs_getpage_ra()
847 bufs[count].b_iodone = hsfs_iodone; in hsfs_getpage_ra()
[all …]
/illumos-gate/usr/src/boot/i386/libi386/
H A Dbiossmap.c46 STAILQ_ENTRY(smap_buf) bufs;
49 #define SMAP_BUFSIZE offsetof(struct smap_buf, bufs)
89 STAILQ_INSERT_TAIL(&head, next, bufs); in bios_getsmap()
98 STAILQ_FOREACH(cur, &head, bufs) in bios_getsmap()
105 STAILQ_FOREACH(cur, &head, bufs) in bios_getsmap()
113 next = STAILQ_NEXT(cur, bufs); in bios_getsmap()
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_link.c982 dt_link_error(dtrace_hdl_t *dtp, Elf *elf, int fd, dt_link_pair_t *bufs, in dt_link_error() argument
998 while ((pair = bufs) != NULL) { in dt_link_error()
999 bufs = pair->dlp_next; in dt_link_error()
1031 dt_link_pair_t *pair, *bufs = NULL; in process_obj() local
1035 return (dt_link_error(dtp, elf, fd, bufs, in process_obj()
1040 return (dt_link_error(dtp, elf, fd, bufs, in process_obj()
1048 return (dt_link_error(dtp, elf, fd, bufs, "archives are not " in process_obj()
1052 return (dt_link_error(dtp, elf, fd, bufs, in process_obj()
1057 return (dt_link_error(dtp, elf, fd, bufs, "corrupt file: %s", in process_obj()
1081 return (dt_link_error(dtp, elf, fd, bufs, in process_obj()
[all …]
H A Ddt_strtab.c39 char *ptr, **bufs; in dt_strtab_grow() local
44 bufs = realloc(sp->str_bufs, (sp->str_nbufs + 1) * sizeof (char *)); in dt_strtab_grow()
46 if (bufs == NULL) { in dt_strtab_grow()
52 sp->str_bufs = bufs; in dt_strtab_grow()
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_tar.c959 tlm_buffers_t *bufs; in ndmp_tar_writer() local
978 bufs = lcmd->tc_buffers; in ndmp_tar_writer()
984 buf = tlm_buffer_out_buf(bufs, &bidx); in ndmp_tar_writer()
1000 (void) tlm_buffer_advance_out_idx(bufs); in ndmp_tar_writer()
1001 buf = tlm_buffer_out_buf(bufs, &bidx); in ndmp_tar_writer()
1002 tlm_buffer_release_out_buf(bufs); in ndmp_tar_writer()
1012 tlm_buffer_in_buf_timed_wait(bufs, 100); in ndmp_tar_writer()
1043 read_one_buf(ndmpd_module_params_t *mod_params, tlm_buffers_t *bufs, in read_one_buf() argument
1049 bufs->tbs_data_transfer_size)) == 0) { in read_one_buf()
1052 buf->tb_buffer_size = bufs->tbs_data_transfer_size; in read_one_buf()
[all …]
H A Dndmpd_mover.c2513 tlm_buffers_t *bufs; in mover_tape_reader() local
2525 bufs = lcmd->tc_buffers; in mover_tape_reader()
2535 buf = tlm_buffer_in_buf(bufs, &bidx); in mover_tape_reader()
2538 buf = tlm_buffer_in_buf(bufs, NULL); in mover_tape_reader()
2546 tlm_buffer_out_buf_timed_wait(bufs, 100); in mover_tape_reader()
2571 (void) tlm_buffer_advance_in_idx(bufs); in mover_tape_reader()
2572 tlm_buffer_release_in_buf(bufs); in mover_tape_reader()
2573 bidx = bufs->tbs_buffer_in; in mover_tape_reader()
2578 tlm_buffer_release_in_buf(bufs); in mover_tape_reader()
2662 tlm_buffers_t *bufs; in mover_socket_writer() local
[all …]
/illumos-gate/usr/src/uts/common/io/usb/clients/video/usbvc/
H A Dusbvc.c2925 usbvc_buf_t *bufs; in usbvc_alloc_map_bufs() local
2938 bufs = (usbvc_buf_t *) kmem_zalloc(sizeof (usbvc_buf_t) * buf_cnt, in usbvc_alloc_map_bufs()
2942 strm_if->buf_map.buf_head = bufs; in usbvc_alloc_map_bufs()
2946 bufs[0].data = ddi_umem_alloc(buf_len * buf_cnt, DDI_UMEM_SLEEP, in usbvc_alloc_map_bufs()
2947 &bufs[0].umem_cookie); in usbvc_alloc_map_bufs()
2951 bufs[i].len = buf_len; in usbvc_alloc_map_bufs()
2952 bufs[i].data = bufs[0].data + (buf_len * i); in usbvc_alloc_map_bufs()
2953 bufs[i].umem_cookie = bufs[0].umem_cookie; in usbvc_alloc_map_bufs()
2954 bufs[i].status = USBVC_BUF_INIT; in usbvc_alloc_map_bufs()
2956 bufs[i].v4l2_buf.index = i; in usbvc_alloc_map_bufs()
[all …]
/illumos-gate/usr/src/cmd/dtrace/
H A Ddtrace.c1062 } bufs[] = { in go() local
1074 for (i = 0; bufs[i].name != NULL; i++) { in go()
1075 if (dtrace_getopt(g_dtp, bufs[i].optname, &bufs[i].val) == -1) in go()
1076 fatal("couldn't get option %s", bufs[i].optname); in go()
1087 for (i = 0; bufs[i].name != NULL; i++) { in go()
1091 if (bufs[i].val == DTRACEOPT_UNSET) in go()
1094 (void) dtrace_getopt(g_dtp, bufs[i].optname, &nsize); in go()
1099 if (nsize >= bufs[i].val - sizeof (uint64_t)) in go()
1106 error("%s lowered to %lld%c\n", bufs[i].name, in go()
1109 error("%s lowered to %lld bytes\n", bufs[i].name, in go()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dtrace.c88 } bufs[NUM_BUFS]; in naddr_ntoa() local
93 s = strcpy(bufs[bufno].str, inet_ntoa(addr)); in naddr_ntoa()
470 } bufs[NUM_BUFS]; in addrname() local
477 len = strlcpy(bufs[bufno].str, inet_ntoa(tmp_addr), in addrname()
478 sizeof (bufs[bufno].str)); in addrname()
479 s = bufs[bufno].str; in addrname()
489 (sizeof (bufs[bufno].str) - len), "/%d", in addrname()
494 (sizeof (bufs[bufno].str) - len), " (mask %s)", in addrname()
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs.conf114 ub-bufs=1000;
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Ddmu_impl.h244 struct arc_buf **bufs; member
/illumos-gate/usr/src/uts/common/os/
H A Dpool.c1226 void **bufs; in pool_change_class() local
1249 bufs = kmem_zalloc(nlwp * sizeof (void *), KM_SLEEP); in pool_change_class()
1250 for (i = 0, buf = bufs; i < nlwp; i++, buf++) { in pool_change_class()
1262 buf = bufs; in pool_change_class()
1280 for (i = 0, buf = bufs; i < nlwp; i++, buf++) { in pool_change_class()
1286 kmem_free(bufs, nlwp * sizeof (void *)); in pool_change_class()
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_ckpt.c639 fcf_buf_t *bufs = ckp->ckp_arg = fmd_alloc(size, FMD_SLEEP); in fmd_ckpt_save_case() local
644 bufsec = fmd_ckpt_section(ckp, bufs, FCF_SECT_BUFS, size); in fmd_ckpt_save_case()
645 fmd_free(bufs, size); in fmd_ckpt_save_case()
744 fcf_buf_t *bufs = ckp->ckp_arg = fmd_alloc(size, FMD_SLEEP); in fmd_ckpt_save_module() local
749 bufsec = fmd_ckpt_section(ckp, bufs, FCF_SECT_BUFS, size); in fmd_ckpt_save_module()
750 fmd_free(bufs, size); in fmd_ckpt_save_module()
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev_raidz.c1356 abd_t **bufs = NULL; in vdev_raidz_reconstruct_general() local
1365 bufs = kmem_alloc(rm->rm_cols * sizeof (abd_t *), KM_PUSHPAGE); in vdev_raidz_reconstruct_general()
1370 bufs[c] = col->rc_abd; in vdev_raidz_reconstruct_general()
1373 ASSERT3S(bufs[c]->abd_size, >=, col->rc_size); in vdev_raidz_reconstruct_general()
1374 abd_copy_off(col->rc_abd, bufs[c], 0, 0, col->rc_size); in vdev_raidz_reconstruct_general()
1466 if (bufs) { in vdev_raidz_reconstruct_general()
1470 ASSERT3S(bufs[c]->abd_size, >=, col->rc_size); in vdev_raidz_reconstruct_general()
1472 abd_copy_off(bufs[c], col->rc_abd, 0, 0, col->rc_size); in vdev_raidz_reconstruct_general()
1474 col->rc_abd = bufs[c]; in vdev_raidz_reconstruct_general()
1476 kmem_free(bufs, rm->rm_cols * sizeof (abd_t *)); in vdev_raidz_reconstruct_general()
H A Ddmu.c1306 priv->bufs = kmem_zalloc(nblk * sizeof (arc_buf_t *), KM_SLEEP); in dmu_xuio_init()
1325 kmem_free(priv->bufs, nblk * sizeof (arc_buf_t *)); in dmu_xuio_fini()
1351 priv->bufs[i] = abuf; in dmu_xuio_add()
1368 return (priv->bufs[i]); in dmu_xuio_arcbuf()
1377 priv->bufs[i] = NULL; in dmu_xuio_clear()
/illumos-gate/usr/src/cmd/cron/
H A Dcron.c2167 } bufs; in ex() local
2340 (void *)&bufs.p.buf, in ex()
2341 sizeof (bufs.p.buf))) == NULL || in ex()
2343 bufs.p.buf2, sizeof (bufs.p.buf2))) { in ex()
2492 snprintf(bufs.error, sizeof (bufs.error), CANTCDHOME, home); in ex()
2493 mail((e->u)->name, bufs.error, in ex()
2534 snprintf(bufs.error, sizeof (bufs.error), CANTEXECSH, sh); in ex()
2535 mail((e->u)->name, bufs.error, in ex()
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_subr.c1243 char *bufs; in ufs_construct_si() local
1250 bufs = kmem_alloc(NSIBUF * SI_BUFSZ, KM_SLEEP); in ufs_construct_si()
1260 bp->b_un.b_addr = bufs + (i * SI_BUFSZ); in ufs_construct_si()
1301 kmem_free(bufs, NSIBUF * SI_BUFSZ); in ufs_construct_si()
/illumos-gate/usr/src/uts/common/sys/fs/
H A Dhsfs_node.h200 struct buf *bufs; /* array of bufs issued for this R/A */ member
/illumos-gate/usr/src/uts/common/io/mlxcx/
H A Dmlxcx_ring.c1724 mlxcx_buffer_t **bufs, size_t nbufs) in mlxcx_rq_add_buffers() argument
1740 buf = bufs[bi]; in mlxcx_rq_add_buffers()
1741 bufs[bi] = NULL; in mlxcx_rq_add_buffers()
/illumos-gate/usr/src/uts/common/dtrace/
H A Ddtrace.c11610 dtrace_buffer_alloc(dtrace_buffer_t *bufs, size_t size, int flags, in dtrace_buffer_alloc() argument
11632 buf = &bufs[cp->cpu_id]; in dtrace_buffer_alloc()
11672 buf = &bufs[cp->cpu_id]; in dtrace_buffer_alloc()
12003 dtrace_buffer_consumed(dtrace_buffer_t *bufs, hrtime_t when) in dtrace_buffer_consumed() argument
12008 dtrace_buffer_t *buf = &bufs[i]; in dtrace_buffer_consumed()
12027 dtrace_buffer_free(dtrace_buffer_t *bufs) in dtrace_buffer_free() argument
12032 dtrace_buffer_t *buf = &bufs[i]; in dtrace_buffer_free()
/illumos-gate/usr/src/uts/common/io/ib/clients/ibd/
H A Dibd.c7930 uint32_t bufs; in ibd_process_rx() local
7935 bufs = atomic_inc_32_nv(&state->id_rx_list.dl_bufs_outstanding); in ibd_process_rx()
7938 if (bufs >= state->id_rx_bufs_outstanding_limit) { in ibd_process_rx()