Home
last modified time | relevance | path

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

/titanic_50/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()
/titanic_50/usr/src/cmd/audio/audioconvert/
H A Dconvert.cc138 unsigned int bufs; in free_conv_list() local
143 bufs = list->bufcnt; in free_conv_list()
145 for (i = 0; i < bufs; i++) { in free_conv_list()
166 unsigned int bufs, // number of buffers involved in append_conv_list() argument
175 nlp = new struct conv_list[bufs]; in append_conv_list()
182 for (i = 0; i < bufs; i++) { in append_conv_list()
186 nlp[i].bufcnt = bufs; in append_conv_list()
216 unsigned int& bufs) in add_mux_convert() argument
230 if (bufs == 1) { in add_mux_convert()
237 ihdr.channels = bufs; // set the target interleave in add_mux_convert()
[all …]
/titanic_50/usr/src/uts/common/io/drm/
H A Ddrm_dma.c55 pbuf = &(dev->dma->bufs[0]); in drm_dma_setup()
73 if (dma->bufs[i].seg_count) { in drm_dma_takedown()
74 drm_free(dma->bufs[i].seglist, in drm_dma_takedown()
75 dma->bufs[i].seg_count * in drm_dma_takedown()
76 sizeof (*dma->bufs[0].seglist), DRM_MEM_SEGS); in drm_dma_takedown()
79 for (j = 0; j < dma->bufs[i].buf_count; j++) { in drm_dma_takedown()
80 if (dma->bufs[i].buflist[j].dev_private) { in drm_dma_takedown()
81 drm_free(dma->bufs[i].buflist[j].dev_private, in drm_dma_takedown()
82 dma->bufs[i].buflist[j].dev_priv_size, in drm_dma_takedown()
86 if (dma->bufs[i].buf_count) in drm_dma_takedown()
[all …]
H A Ddrm_bufs.c425 entry = &dma->bufs[order]; in drm_do_addbufs_agp()
530 entry = &dma->bufs[order]; in drm_do_addbufs_sg()
618 if (dev->dma->bufs[order].buf_count != 0) { in drm_addbufs_agp()
655 if (dev->dma->bufs[order].buf_count != 0) { in drm_addbufs_sg()
H A DdrmP.h528 drm_buf_entry_t bufs[DRM_MAX_ORDER+1]; member
/titanic_50/usr/src/uts/common/fs/hsfs/
H A Dhsfs_vnops.c756 wbuf = &(info->bufs[count]); in hsfs_ra_task()
767 biofini(&(info->bufs[count])); in hsfs_ra_task()
775 kmem_free(info->bufs, info->bufcnt * sizeof (struct buf)); in hsfs_ra_task()
809 struct buf *bufs; in hsfs_getpage_ra() local
908 bufs = kmem_alloc(bufcnt * sizeof (struct buf), KM_SLEEP); in hsfs_getpage_ra()
937 bioinit(&bufs[count]); in hsfs_getpage_ra()
938 bufs[count].b_edev = devvp->v_rdev; in hsfs_getpage_ra()
939 bufs[count].b_dev = cmpdev(devvp->v_rdev); in hsfs_getpage_ra()
940 bufs[count].b_flags = B_NOCACHE|B_BUSY|B_READ; in hsfs_getpage_ra()
941 bufs[count].b_iodone = hsfs_iodone; in hsfs_getpage_ra()
[all …]
/titanic_50/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.c41 char *ptr, **bufs; in dt_strtab_grow() local
46 bufs = realloc(sp->str_bufs, (sp->str_nbufs + 1) * sizeof (char *)); in dt_strtab_grow()
48 if (bufs == NULL) { in dt_strtab_grow()
54 sp->str_bufs = bufs; in dt_strtab_grow()
/titanic_50/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_tar.c960 tlm_buffers_t *bufs; in ndmp_tar_writer() local
979 bufs = lcmd->tc_buffers; in ndmp_tar_writer()
985 buf = tlm_buffer_out_buf(bufs, &bidx); in ndmp_tar_writer()
1001 (void) tlm_buffer_advance_out_idx(bufs); in ndmp_tar_writer()
1002 buf = tlm_buffer_out_buf(bufs, &bidx); in ndmp_tar_writer()
1003 tlm_buffer_release_out_buf(bufs); in ndmp_tar_writer()
1013 tlm_buffer_in_buf_timed_wait(bufs, 100); in ndmp_tar_writer()
1044 read_one_buf(ndmpd_module_params_t *mod_params, tlm_buffers_t *bufs, in read_one_buf() argument
1050 bufs->tbs_data_transfer_size)) == 0) { in read_one_buf()
1053 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
2524 bufs = lcmd->tc_buffers; in mover_tape_reader()
2534 buf = tlm_buffer_in_buf(bufs, &bidx); in mover_tape_reader()
2537 buf = tlm_buffer_in_buf(bufs, NULL); in mover_tape_reader()
2545 tlm_buffer_out_buf_timed_wait(bufs, 100); in mover_tape_reader()
2570 (void) tlm_buffer_advance_in_idx(bufs); in mover_tape_reader()
2571 tlm_buffer_release_in_buf(bufs); in mover_tape_reader()
2572 bidx = bufs->tbs_buffer_in; in mover_tape_reader()
2577 tlm_buffer_release_in_buf(bufs); in mover_tape_reader()
2661 tlm_buffers_t *bufs; in mover_socket_writer() local
[all …]
/titanic_50/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()
/titanic_50/usr/src/uts/common/io/usb/clients/video/usbvc/
H A Dusbvc.c2922 usbvc_buf_t *bufs; in usbvc_alloc_map_bufs() local
2935 bufs = (usbvc_buf_t *) kmem_zalloc(sizeof (usbvc_buf_t) * buf_cnt, in usbvc_alloc_map_bufs()
2939 strm_if->buf_map.buf_head = bufs; in usbvc_alloc_map_bufs()
2943 bufs[0].data = ddi_umem_alloc(buf_len * buf_cnt, DDI_UMEM_SLEEP, in usbvc_alloc_map_bufs()
2944 &bufs[0].umem_cookie); in usbvc_alloc_map_bufs()
2948 bufs[i].len = buf_len; in usbvc_alloc_map_bufs()
2949 bufs[i].data = bufs[0].data + (buf_len * i); in usbvc_alloc_map_bufs()
2950 bufs[i].umem_cookie = bufs[0].umem_cookie; in usbvc_alloc_map_bufs()
2951 bufs[i].status = USBVC_BUF_INIT; in usbvc_alloc_map_bufs()
2953 bufs[i].v4l2_buf.index = i; in usbvc_alloc_map_bufs()
[all …]
/titanic_50/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()
/titanic_50/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs.conf114 ub-bufs=1000;
/titanic_50/usr/src/uts/common/fs/zfs/sys/
H A Ddmu_impl.h243 struct arc_buf **bufs; member
/titanic_50/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()
/titanic_50/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()
/titanic_50/usr/src/cmd/cron/
H A Dcron.c2198 } bufs; in ex() local
2371 (void *)&bufs.p.buf, in ex()
2372 sizeof (bufs.p.buf))) == NULL || in ex()
2374 bufs.p.buf2, sizeof (bufs.p.buf2))) { in ex()
2523 snprintf(bufs.error, sizeof (bufs.error), CANTCDHOME, home); in ex()
2524 mail((e->u)->name, bufs.error, in ex()
2565 snprintf(bufs.error, sizeof (bufs.error), CANTEXECSH, sh); in ex()
2566 mail((e->u)->name, bufs.error, in ex()
/titanic_50/usr/src/uts/common/sys/fs/
H A Dhsfs_node.h202 struct buf *bufs; /* array of bufs issued for this R/A */ member
/titanic_50/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()
/titanic_50/usr/src/uts/common/fs/zfs/
H A Ddmu.c923 priv->bufs = kmem_zalloc(nblk * sizeof (arc_buf_t *), KM_SLEEP); in dmu_xuio_init()
942 kmem_free(priv->bufs, nblk * sizeof (arc_buf_t *)); in dmu_xuio_fini()
968 priv->bufs[i] = abuf; in dmu_xuio_add()
985 return (priv->bufs[i]); in dmu_xuio_arcbuf()
994 priv->bufs[i] = NULL; in dmu_xuio_clear()
/titanic_50/usr/src/uts/common/dtrace/
H A Ddtrace.c11319 dtrace_buffer_alloc(dtrace_buffer_t *bufs, size_t size, int flags, in dtrace_buffer_alloc() argument
11341 buf = &bufs[cp->cpu_id]; in dtrace_buffer_alloc()
11381 buf = &bufs[cp->cpu_id]; in dtrace_buffer_alloc()
11712 dtrace_buffer_consumed(dtrace_buffer_t *bufs, hrtime_t when) in dtrace_buffer_consumed() argument
11717 dtrace_buffer_t *buf = &bufs[i]; in dtrace_buffer_consumed()
11736 dtrace_buffer_free(dtrace_buffer_t *bufs) in dtrace_buffer_free() argument
11741 dtrace_buffer_t *buf = &bufs[i]; in dtrace_buffer_free()
/titanic_50/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()