/dports/audio/sndio/sndio-1.8.1/libsndio/ |
H A D | sio.c | 111 hdl->ops->close(hdl); in sio_close() 131 hdl->rused = hdl->wused = 0; in sio_start() 139 hdl->rdrop = hdl->wsil = 0; in sio_start() 140 if (!hdl->ops->start(hdl)) in sio_start() 158 if (!hdl->ops->stop(hdl)) in sio_stop() 162 hdl->pollcnt, hdl->cpos); in sio_stop() 381 return hdl->ops->nfds(hdl); in sio_nfds() 499 hdl->rused += delta * (hdl->par.bps * hdl->par.rchan); in _sio_onmove_cb() 501 hdl->wused -= delta * (hdl->par.bps * hdl->par.pchan); in _sio_onmove_cb() 524 hdl->ops->getvol(hdl); in sio_setvol() [all …]
|
H A D | sio_aucat.c | 113 _sio_onmove_cb(&hdl->sio, hdl->delta); in sio_aucat_runmsg() 119 hdl->curvol = hdl->reqvol = ctl; in sio_aucat_runmsg() 141 if (hdl->curvol != hdl->reqvol) { in sio_aucat_buildmsg() 146 hdl->curvol = hdl->reqvol; in sio_aucat_buildmsg() 178 if (!hdl->sio.eof && hdl->sio.started) in sio_aucat_close() 189 hdl->wbpf = hdl->sio.par.bps * hdl->sio.par.pchan; in sio_aucat_start() 190 hdl->rbpf = hdl->sio.par.bps * hdl->sio.par.rchan; in sio_aucat_start() 192 hdl->round = hdl->sio.par.round; in sio_aucat_start() 205 hdl->walign = hdl->round * hdl->wbpf; in sio_aucat_start() 428 n = _aucat_wdata(&hdl->aucat, buf, len, hdl->wbpf, &hdl->sio.eof); in sio_aucat_write() [all …]
|
H A D | sio_alsa.c | 390 hdl->ibpf = hdl->par.rchan * hdl->par.bps; in sio_alsa_start() 391 hdl->obpf = hdl->par.pchan * hdl->par.bps; in sio_alsa_start() 407 hdl->otmpbuf = malloc(hdl->obpf); in sio_alsa_start() 421 hdl->itmpbuf = malloc(hdl->ibpf); in sio_alsa_start() 825 &hdl->par.bits, &hdl->par.sig, &hdl->par.le)) in sio_alsa_setpar() 949 memcpy(buf, hdl->itmpbuf + hdl->ibpf - hdl->ipartial, todo); in sio_alsa_read() 981 hdl->ipartial = hdl->ibpf; in sio_alsa_read() 1046 hdl->odelta : hdl->idelta; in sio_alsa_onmove() 1086 hdl->onfds = hdl->infds = 0; in sio_alsa_pollfd() 1105 pfd + hdl->onfds, hdl->nfds - hdl->onfds); in sio_alsa_pollfd() [all …]
|
H A D | sioctl_aucat.c | 70 while (hdl->buf_wpos < sizeof(hdl->buf) && in sioctl_aucat_rdata() 73 (unsigned char *)hdl->buf + hdl->buf_wpos, in sioctl_aucat_rdata() 74 sizeof(hdl->buf) - hdl->buf_wpos, in sioctl_aucat_rdata() 110 if (!_aucat_rmsg(&hdl->aucat, &hdl->sioctl.eof)) in sioctl_aucat_runmsg() 156 free(hdl); in _sioctl_aucat_open() 166 _aucat_setfl(&hdl->aucat, 0, &hdl->sioctl.eof); in sioctl_aucat_close() 167 _aucat_close(&hdl->aucat, hdl->sioctl.eof); in sioctl_aucat_close() 168 free(hdl); in sioctl_aucat_close() 185 if (!_aucat_wmsg(&hdl->aucat, &hdl->sioctl.eof)) in sioctl_aucat_ondesc() 212 if (!_aucat_wmsg(&hdl->aucat, &hdl->sioctl.eof)) in sioctl_aucat_onval() [all …]
|
H A D | sio_oss.c | 472 hdl->bpf = formats[i].bps * hdl->chan; in sio_oss_setpar() 641 if (hdl->filling && hdl->sio.wused == hdl->sio.par.bufsz * in sio_oss_pollfd() 642 hdl->sio.par.pchan * hdl->sio.par.bps) { in sio_oss_pollfd() 687 clk = hdl->sio.cpos % hdl->sio.par.round; in sio_oss_xrun() 701 hdl->odelta -= cmove * hdl->bpf; in sio_oss_xrun() 705 hdl->idelta -= cmove * hdl->bpf; in sio_oss_xrun() 746 hdl->odelta -= oused - hdl->oused; in sio_oss_revents() 749 hdl->idelta = hdl->odelta; in sio_oss_revents() 759 hdl->idelta += iused - hdl->iused; in sio_oss_revents() 762 hdl->odelta = hdl->idelta; in sio_oss_revents() [all …]
|
H A D | mio_alsa.c | 99 free(hdl); in _mio_alsa_open() 104 hdl->in = hdl->out = NULL; in _mio_alsa_open() 105 rc = snd_rawmidi_open(&hdl->in, &hdl->out, in _mio_alsa_open() 110 free(hdl); in _mio_alsa_open() 114 if (hdl->in) in _mio_alsa_open() 133 free(hdl); in mio_alsa_close() 201 hdl->infds = snd_rawmidi_poll_descriptors(hdl->in, in mio_alsa_pollfd() 206 hdl->onfds += snd_rawmidi_poll_descriptors(hdl->out, in mio_alsa_pollfd() 207 pfd + hdl->infds, hdl->nfds - hdl->infds); in mio_alsa_pollfd() 210 return hdl->infds + hdl->onfds; in mio_alsa_pollfd() [all …]
|
H A D | sioctl.c | 46 return hdl; 72 hdl->eof = 0; 107 hdl->ops->close(hdl); 113 return hdl->ops->nfds(hdl); 121 return hdl->ops->pollfd(hdl, pfd, events); 129 return hdl->ops->revents(hdl, pfd); 144 return hdl->ops->ondesc(hdl); 153 return hdl->ops->onctl(hdl); 169 hdl->desc_cb(hdl->desc_arg, desc, val); 177 hdl->ctl_cb(hdl->ctl_arg, addr, val); [all …]
|
H A D | mio_aucat.c | 66 if (!_aucat_rmsg(&hdl->aucat, &hdl->mio.eof)) 80 hdl->mio.eof = 1; 94 if (hdl == NULL) 99 if (!_aucat_setfl(&hdl->aucat, 1, &hdl->mio.eof)) 103 free(hdl); 113 _aucat_setfl(&hdl->aucat, 0, &hdl->mio.eof); 114 _aucat_close(&hdl->aucat, hdl->mio.eof); 115 free(hdl); 127 return _aucat_rdata(&hdl->aucat, buf, len, &hdl->mio.eof); 140 n = _aucat_wdata(&hdl->aucat, buf, len, 1, &hdl->mio.eof); [all …]
|
H A D | mio.c | 54 return hdl; in mio_open() 86 hdl->eof = 0; in _mio_create() 92 hdl->ops->close(hdl); in mio_close() 145 n = hdl->ops->read(hdl, data, todo); in mio_read() 175 n = hdl->ops->write(hdl, data, todo); in mio_write() 177 if (hdl->nbio || hdl->eof) in mio_write() 192 return hdl->ops->nfds(hdl); in mio_nfds() 198 if (hdl->eof) in mio_pollfd() 200 return hdl->ops->pollfd(hdl, pfd, events); in mio_pollfd() 206 if (hdl->eof) in mio_revents() [all …]
|
H A D | sio_sun.c | 370 hdl->obpf = hdl->sio.par.pchan * hdl->sio.par.bps; in sio_sun_start() 371 hdl->ibpf = hdl->sio.par.rchan * hdl->sio.par.bps; in sio_sun_start() 532 if (hdl->filling && hdl->sio.wused == hdl->sio.par.bufsz * in sio_sun_pollfd() 533 hdl->sio.par.pchan * hdl->sio.par.bps) { in sio_sun_pollfd() 562 delta = (ap.play_pos - hdl->obytes) / hdl->obpf; in sio_sun_revents() 563 doerr = (ap.play_xrun - hdl->oerr) / hdl->obpf; in sio_sun_revents() 575 delta = (ap.rec_pos - hdl->ibytes) / hdl->ibpf; in sio_sun_revents() 576 dierr = (ap.rec_xrun - hdl->ierr) / hdl->ibpf; in sio_sun_revents() 597 hdl->sio.rdrop += offset * hdl->ibpf; in sio_sun_revents() 601 hdl->sio.wsil += -offset * hdl->obpf; in sio_sun_revents() [all …]
|
H A D | aucat.c | 95 while ((n = read(hdl->fd, data, hdl->rtodo)) == -1) { in _aucat_rmsg() 109 hdl->rtodo -= n; in _aucat_rmsg() 112 hdl->rtodo = ntohl(hdl->rmsg.u.data.size); in _aucat_rmsg() 141 while ((n = write(hdl->fd, data, hdl->wtodo)) == -1) { in _aucat_wmsg() 150 hdl->wtodo -= n; in _aucat_wmsg() 153 hdl->wtodo = ntohl(hdl->wmsg.u.data.size); in _aucat_wmsg() 172 len = hdl->rtodo; in _aucat_rdata() 187 hdl->rtodo -= n; in _aucat_rdata() 236 hdl->wtodo -= n; in _aucat_wdata() 405 hdl->fd = s; in aucat_connect_tcp() [all …]
|
/dports/net/freerdp/freerdp-2.5.0/channels/tsmf/client/gstreamer/ |
H A D | tsmf_X11.c | 129 if (hdl->subwinWidth != -1 && hdl->subwinHeight != -1 && hdl->subwinX != -1 && in tsmf_platform_bus_sync_handler() 150 XMoveResizeWindow(hdl->disp, hdl->subwin, hdl->subwinX, hdl->subwinY, hdl->subwinWidth, in tsmf_platform_bus_sync_handler() 187 if (!hdl) in tsmf_platform_create() 270 if (!hdl) in tsmf_platform_free() 310 hdl->subwin = XCreateSimpleWindow(hdl->disp, *(int*)hdl->xfwin, 0, 0, 1, 1, 0, 0, 0); in tsmf_window_create() 380 XMoveResizeWindow(hdl->disp, hdl->subwin, hdl->subwinX, hdl->subwinY, hdl->subwinWidth, in tsmf_window_resize() 440 if ((hdl->subwin) && (!hdl->subwinMapped)) in tsmf_window_map() 443 XMapWindow(hdl->disp, hdl->subwin); in tsmf_window_map() 461 if ((hdl->subwin) && (hdl->subwinMapped)) in tsmf_window_unmap() 464 XUnmapWindow(hdl->disp, hdl->subwin); in tsmf_window_unmap() [all …]
|
/dports/devel/ga/ga-5.8/global/src/ |
H A D | iterator.c | 218 if(!pnga_locate_region(g_a, lo, hi, hdl->map, hdl->proclist, &hdl->nproc )) in gai_iterator_init() 241 hdl->blk_inc[j] = GA[handle].dims[j]-hdl->blk_num[j]*hdl->blk_dim[j]; in gai_iterator_init() 411 hdl->lobuf[i] += hdl->blk_inc[i]*hdl->blk_size[i]; in gai_iterator_next() 463 if (hdl->iblock == hdl->iproc) hdl->offset = 0; in gai_iterator_next() 502 hdl->iblock = hdl->iproc; in gai_iterator_next() 549 hdl->iblock = hdl->iproc; in gai_iterator_next() 888 hdl->index[0] += hdl->blk_inc[0]; in pnga_local_iterator_next() 891 hdl->index[i] = hdl->proc_index[i]; in pnga_local_iterator_next() 892 hdl->index[i+1] += hdl->blk_inc[i+1]; in pnga_local_iterator_next() 910 hdl->index[0] += hdl->blk_inc[0]; in pnga_local_iterator_next() [all …]
|
/dports/math/osi/Osi-0.108.6/CoinUtils/test/ |
H A D | CoinMessageHandlerTest.cpp | 73 hdl.message() in testsWithoutMessages() 80 hdl.message() in testsWithoutMessages() 83 hdl.setLogLevel(0) ; in testsWithoutMessages() 88 hdl.message() in testsWithoutMessages() 95 hdl.message() in testsWithoutMessages() 98 hdl.message(1) in testsWithoutMessages() 100 hdl.message() in testsWithoutMessages() 116 hdl.message() in testsWithoutMessages() 205 hdl.finish() ; in basicTestsWithMessages() 234 hdl2 = hdl ; in advTestsWithMessages() [all …]
|
/dports/math/coinutils/CoinUtils-2.11.4/CoinUtils/test/ |
H A D | CoinMessageHandlerTest.cpp | 73 hdl.message() in testsWithoutMessages() 80 hdl.message() in testsWithoutMessages() 83 hdl.setLogLevel(0) ; in testsWithoutMessages() 88 hdl.message() in testsWithoutMessages() 95 hdl.message() in testsWithoutMessages() 98 hdl.message(1) in testsWithoutMessages() 100 hdl.message() in testsWithoutMessages() 116 hdl.message() in testsWithoutMessages() 205 hdl.finish() ; in basicTestsWithMessages() 234 hdl2 = hdl ; in advTestsWithMessages() [all …]
|
/dports/math/clp/Clp-1.17.3/CoinUtils/test/ |
H A D | CoinMessageHandlerTest.cpp | 73 hdl.message() in testsWithoutMessages() 80 hdl.message() in testsWithoutMessages() 83 hdl.setLogLevel(0) ; in testsWithoutMessages() 88 hdl.message() in testsWithoutMessages() 95 hdl.message() in testsWithoutMessages() 98 hdl.message(1) in testsWithoutMessages() 100 hdl.message() in testsWithoutMessages() 116 hdl.message() in testsWithoutMessages() 205 hdl.finish() ; in basicTestsWithMessages() 234 hdl2 = hdl ; in advTestsWithMessages() [all …]
|
/dports/net/mpich/mpich-3.4.3/test/mpi/rma/ |
H A D | mcs_mutex.c | 28 MCS_Mutex hdl; in MCS_Mutex_create() local 31 assert(hdl != NULL); in MCS_Mutex_create() 42 hdl->comm, &hdl->base, &hdl->window); in MCS_Mutex_create() 51 MPI_Win_allocate(2 * sizeof(int), sizeof(int), hdl->win_info, hdl->comm, in MCS_Mutex_create() 52 &hdl->base, &hdl->window); in MCS_Mutex_create() 61 MPI_Barrier(hdl->comm); in MCS_Mutex_create() 63 *hdl_out = hdl; in MCS_Mutex_create() 86 free(hdl); in MCS_Mutex_free() 113 MPI_Win_flush(hdl->tail_rank, hdl->window); in MCS_Mutex_lock() 157 MPI_Win_flush(hdl->tail_rank, hdl->window); in MCS_Mutex_trylock() [all …]
|
/dports/cad/yosys/yosys-yosys-0.12/tests/arch/ice40/ |
H A D | bug1626.ys | 4 attribute \src "../hdl/mem/ahb_async_sram_halfwidth.v:9" 14 attribute \src "../hdl/mem/ahb_async_sram_halfwidth.v:71" 16 attribute \src "../hdl/mem/ahb_async_sram_halfwidth.v:71" 18 attribute \src "../hdl/mem/ahb_async_sram_halfwidth.v:71" 20 attribute \src "../hdl/mem/ahb_async_sram_halfwidth.v:71" 22 attribute \src "../hdl/mem/ahb_async_sram_halfwidth.v:71" 24 attribute \src "../hdl/mem/ahb_async_sram_halfwidth.v:71" 26 attribute \src "../hdl/mem/ahb_async_sram_halfwidth.v:63" 28 attribute \src "../hdl/mem/ahb_async_sram_halfwidth.v:62" 30 attribute \src "../hdl/mem/ahb_async_sram_halfwidth.v:56" [all …]
|
/dports/multimedia/kvazaar/kvazaar-2.1.0/src/extras/ |
H A D | crypto.cpp | 49 hdl->cipher = new cipher_t(hdl->key, CryptoPP::AES::DEFAULT_KEYLENGTH, hdl->iv); in kvz_crypto_create() 55 return hdl; in kvz_crypto_create() 60 if (*hdl) { in kvz_crypto_delete() 61 delete (*hdl)->cipher; in kvz_crypto_delete() 62 (*hdl)->cipher = NULL; in kvz_crypto_delete() 64 FREE_POINTER(*hdl); in kvz_crypto_delete() 75 hdl->cipher->SetKeyWithIV(hdl->key, CryptoPP::AES::DEFAULT_KEYLENGTH, hdl->iv); in kvz_crypto_decrypt() 86 hdl->cipher->ProcessData(hdl->out_stream_counter, hdl->counter, 16); in decrypt_counter() 121 key += hdl->out_stream_counter[hdl->counter_index] & ((1 << nb) - 1); in kvz_crypto_get_key() 122 hdl->out_stream_counter[hdl->counter_index] >>= nb; in kvz_crypto_get_key() [all …]
|
/dports/devel/jwasm/JWasm-f0a2fdd/src/ |
H A D | trmem.c | 287 hdl->prt_line( hdl->prt_parm, buff, ptr - buff ); in trPrt() 303 hdl->free( tr ); in freeEntry() 373 return( hdl ); in _trmem_open() 424 hdl->free( hdl ); in _trmem_close() 459 if( hdl->mem_used > hdl->max_mem ) { in _trmem_alloc() 460 hdl->max_mem = hdl->mem_used; in _trmem_alloc() 591 if( hdl->mem_used > hdl->max_mem ) { in ChangeAlloc() 592 hdl->max_mem = hdl->mem_used; in ChangeAlloc() 620 if( hdl->mem_used > hdl->max_mem ) { in ChangeAlloc() 621 hdl->max_mem = hdl->mem_used; in ChangeAlloc() [all …]
|
/dports/net/mpich2/mpich2-1.5/src/armci/src/ |
H A D | mutex_hdl_spin.c | 50 armcix_mutex_hdl_t hdl; in ARMCIX_Create_mutexes_hdl() local 53 ARMCII_Assert(hdl != NULL); in ARMCIX_Create_mutexes_hdl() 61 hdl->base = NULL; in ARMCIX_Create_mutexes_hdl() 64 hdl->count = count; in ARMCIX_Create_mutexes_hdl() 68 hdl->base[i] = 0; in ARMCIX_Create_mutexes_hdl() 71 MPI_INFO_NULL, hdl->comm, &hdl->window); in ARMCIX_Create_mutexes_hdl() 74 return hdl; in ARMCIX_Create_mutexes_hdl() 85 if (hdl->base) in ARMCIX_Destroy_mutexes_hdl() 86 MPI_Free_mem(hdl->base); in ARMCIX_Destroy_mutexes_hdl() 88 MPI_Comm_free(&hdl->comm); in ARMCIX_Destroy_mutexes_hdl() [all …]
|
H A D | mutex_hdl_queue.c | 26 armcix_mutex_hdl_t hdl; in ARMCIX_Create_mutexes_hdl() local 29 ARMCII_Assert(hdl != NULL); in ARMCIX_Create_mutexes_hdl() 36 hdl->my_count = my_count; in ARMCIX_Create_mutexes_hdl() 42 hdl->max_count = max_count; in ARMCIX_Create_mutexes_hdl() 48 hdl->bases = NULL; in ARMCIX_Create_mutexes_hdl() 62 base = hdl->bases[i]; in ARMCIX_Create_mutexes_hdl() 69 return hdl; in ARMCIX_Create_mutexes_hdl() 85 if (hdl->bases != NULL) { in ARMCIX_Destroy_mutexes_hdl() 89 free(hdl->bases); in ARMCIX_Destroy_mutexes_hdl() 93 free(hdl->windows); in ARMCIX_Destroy_mutexes_hdl() [all …]
|
/dports/audio/tosha/tosha-0.6/ |
H A D | toscsi.c | 66 if ((result = cam_send_ccb(hdl->cam_dev, hdl->ccb)) < 0) { in toscsi_request() 68 cam_freeccb (hdl->ccb); in toscsi_request() 87 result = scsireq_enter(hdl->scsifd, hdl->sreq); in toscsi_request() 159 if ((result = cam_send_ccb(hdl->cam_dev, hdl->ccb)) < 0) { in toscsi_readsectors() 190 result = scsireq_enter (hdl->scsifd, hdl->sreq); in toscsi_readsectors() 239 if ((result = cam_send_ccb(hdl->cam_dev, hdl->ccb)) < 0) { in toscsi_readmode() 263 result = scsireq_enter (hdl->scsifd, hdl->sreq); in toscsi_readmode() 275 toscsi_handle *hdl; in toscsi_open() local 285 if (!(hdl->ccb = cam_getccb(hdl->cam_dev))) { in toscsi_open() 299 return hdl; in toscsi_open() [all …]
|
/dports/misc/rump/buildrump.sh-b914579/src/external/cddl/osnet/dist/lib/libzfs/common/ |
H A D | libzfs_util.c | 243 (void) vsnprintf(hdl->libzfs_desc, sizeof (hdl->libzfs_desc), in zfs_error_aux() 253 (void) vsnprintf(hdl->libzfs_action, sizeof (hdl->libzfs_action), in zfs_verror() 588 free(hdl); in libzfs_init() 594 free(hdl); in libzfs_init() 604 return (hdl); in libzfs_init() 624 free(hdl); in libzfs_fini() 1047 if (hdl) in zfs_nicestrtonum() 1062 if (hdl) in zfs_nicestrtonum() 1081 if (hdl) in zfs_nicestrtonum() 1094 if (hdl) in zfs_nicestrtonum() [all …]
|
/dports/multimedia/transcode/transcode-1.1.7/libtc/ |
H A D | libxio.c | 269 ret = lorsQuery(hdl->ex, &set, hdl->begin, hdl->end, in ibp_flush() 316 hdl->begin += hdl->b_pos; in ibp_flush() 341 if(!hdl || !buffer || hdl->mode == O_RDONLY || !hdl->buffer) { in ibp_write() 360 if(hdl->end < hdl->b_pos) in ibp_write() 361 hdl->end = hdl->b_pos; in ibp_write() 388 if(hdl->b_pos < hdl->lors_blocksize && !hdl->fill_buffer) { in ibp_read() 397 ret = lorsQuery(hdl->ex, &set, hdl->begin + hdl->b_pos, in ibp_read() 404 ret = lorsSetLoad(set, hdl->buffer, hdl->begin + hdl->b_pos, in ibp_read() 416 hdl->begin += hdl->b_pos; in ibp_read() 458 hdl->begin = hdl->begin + hdl->b_pos + offs; in ibp_lseek() [all …]
|