Home
last modified time | relevance | path

Searched refs:avail (Results 1 – 25 of 344) sorted by relevance

12345678910>>...14

/third_party/gstreamer/gstreamer/tests/check/libs/
Dadapter.c41 guint avail; in GST_START_TEST() local
60 avail = gst_adapter_available (adapter); in GST_START_TEST()
61 fail_if (avail != 512); in GST_START_TEST()
62 avail = gst_adapter_available_fast (adapter); in GST_START_TEST()
63 fail_if (avail != 512); in GST_START_TEST()
93 avail = gst_adapter_available (adapter); in GST_START_TEST()
94 fail_if (avail != 502); in GST_START_TEST()
95 avail = gst_adapter_available_fast (adapter); in GST_START_TEST()
96 fail_if (avail != 502); in GST_START_TEST()
114 avail = gst_adapter_available (adapter); in GST_START_TEST()
[all …]
/third_party/node/src/
Dnode_crypto_clienthello.cc28 void ClientHelloParser::Parse(const uint8_t* data, size_t avail) { in Parse() argument
31 if (!ParseRecordHeader(data, avail)) in Parse()
35 ParseHeader(data, avail); in Parse()
48 bool ClientHelloParser::ParseRecordHeader(const uint8_t* data, size_t avail) { in ParseRecordHeader() argument
50 if (avail < 5) in ParseRecordHeader()
76 void ClientHelloParser::ParseHeader(const uint8_t* data, size_t avail) { in ParseHeader() argument
80 if (body_offset_ + frame_len_ > avail) in ParseHeader()
99 if (!ParseTLSClientHello(data, avail)) in ParseHeader()
109 session_id_ + session_size_ > data + avail) { in ParseHeader()
165 bool ClientHelloParser::ParseTLSClientHello(const uint8_t* data, size_t avail) { in ParseTLSClientHello() argument
[all …]
Dnode_crypto_bio.cc271 size_t avail = read_head_->write_pos_ - read_head_->read_pos_; in Read() local
272 if (avail > left) in Read()
273 avail = left; in Read()
277 memcpy(out + offset, read_head_->data_ + read_head_->read_pos_, avail); in Read()
278 read_head_->read_pos_ += avail; in Read()
281 bytes_read += avail; in Read()
282 offset += avail; in Read()
283 left -= avail; in Read()
328 size_t avail = current->write_pos_ - current->read_pos_; in IndexOf() local
329 if (avail > left) in IndexOf()
[all …]
/third_party/gettext/libtextstyle/gnulib-local/lib/
Dfd-ostream.oo.c45 size_t avail; /* Number of bytes available in the buffer. */ member
80 assert (stream->avail > 0); in write_mem()
84 size_t n = (len <= stream->avail ? len : stream->avail); in write_mem()
87 memcpy (stream->buffer + BUFSIZE - stream->avail, data, n); in write_mem()
89 stream->avail -= n; in write_mem()
92 if (stream->avail == 0) in write_mem()
97 stream->avail = BUFSIZE; in write_mem()
102 if (len < stream->avail) in write_mem()
105 memcpy (stream->buffer + BUFSIZE - stream->avail, data, len); in write_mem()
106 stream->avail -= len; in write_mem()
[all …]
/third_party/gstreamer/gstplugins_good/gst/rtp/
Dgstrtpmpvpay.c179 guint avail; in gst_rtp_mpv_pay_flush() local
185 avail = gst_adapter_available (rtpmpvpay->adapter); in gst_rtp_mpv_pay_flush()
189 GST_DEBUG_OBJECT (rtpmpvpay, "available %u", avail); in gst_rtp_mpv_pay_flush()
190 if (avail == 0) in gst_rtp_mpv_pay_flush()
194 gst_buffer_list_new_sized (avail / (GST_RTP_BASE_PAYLOAD_MTU (rtpmpvpay) - in gst_rtp_mpv_pay_flush()
197 while (avail > 0) { in gst_rtp_mpv_pay_flush()
204 packet_len = gst_rtp_buffer_calc_packet_len (avail + 4, 0, 0); in gst_rtp_mpv_pay_flush()
234 avail -= payload_len; in gst_rtp_mpv_pay_flush()
236 gst_rtp_buffer_set_marker (&rtp, avail == 0); in gst_rtp_mpv_pay_flush()
259 guint avail, packet_len; in gst_rtp_mpv_pay_handle_buffer() local
[all …]
Dgstrtpj2kdepay.c249 guint avail, MHF, mh_id; in gst_rtp_j2k_depay_flush_pu() local
254 avail = gst_adapter_available (rtpj2kdepay->pu_adapter); in gst_rtp_j2k_depay_flush_pu()
255 if (avail == 0) in gst_rtp_j2k_depay_flush_pu()
261 GST_DEBUG_OBJECT (rtpj2kdepay, "flushing PU of size %u", avail); in gst_rtp_j2k_depay_flush_pu()
266 packets = gst_adapter_take_list (rtpj2kdepay->pu_adapter, avail); in gst_rtp_j2k_depay_flush_pu()
281 mheader = gst_adapter_take_buffer (rtpj2kdepay->pu_adapter, avail); in gst_rtp_j2k_depay_flush_pu()
296 guint avail, mh_id; in gst_rtp_j2k_depay_flush_tile() local
309 avail = gst_adapter_available (rtpj2kdepay->t_adapter); in gst_rtp_j2k_depay_flush_tile()
310 if (avail == 0) in gst_rtp_j2k_depay_flush_tile()
315 GST_DEBUG_OBJECT (rtpj2kdepay, "flushing tile of size %u", avail); in gst_rtp_j2k_depay_flush_tile()
[all …]
Dgstrtpac3pay.c241 guint avail, FT, NF, mtu; in gst_rtp_ac3_pay_flush() local
250 avail = gst_adapter_available (rtpac3pay->adapter); in gst_rtp_ac3_pay_flush()
260 GST_LOG_OBJECT (rtpac3pay, "flushing %u bytes", avail); in gst_rtp_ac3_pay_flush()
262 while (avail > 0) { in gst_rtp_ac3_pay_flush()
271 packet_len = gst_rtp_buffer_calc_packet_len (2 + avail, 0, 0); in gst_rtp_ac3_pay_flush()
292 if ((avail * 5) / 8 >= (payload_len - 2)) in gst_rtp_ac3_pay_flush()
298 NF = (avail + maxlen - 1) / maxlen; in gst_rtp_ac3_pay_flush()
325 if (avail == payload_len) in gst_rtp_ac3_pay_flush()
336 avail -= payload_len; in gst_rtp_ac3_pay_flush()
353 gsize avail, left, NF; in gst_rtp_ac3_pay_handle_buffer() local
[all …]
Dgstrtpmpapay.c180 guint avail; in gst_rtp_mpa_pay_flush() local
192 avail = gst_adapter_available (rtpmpapay->adapter); in gst_rtp_mpa_pay_flush()
197 gst_buffer_list_new_sized (avail / (GST_RTP_BASE_PAYLOAD_MTU (rtpmpapay) - in gst_rtp_mpa_pay_flush()
201 while (avail > 0) { in gst_rtp_mpa_pay_flush()
210 packet_len = gst_rtp_buffer_calc_packet_len (4 + avail, 0, 0); in gst_rtp_mpa_pay_flush()
242 avail -= payload_len; in gst_rtp_mpa_pay_flush()
245 if (avail == 0) in gst_rtp_mpa_pay_flush()
270 guint size, avail; in gst_rtp_mpa_pay_handle_buffer() local
285 avail = gst_adapter_available (rtpmpapay->adapter); in gst_rtp_mpa_pay_handle_buffer()
289 packet_len = gst_rtp_buffer_calc_packet_len (4 + avail + size, 0, 0); in gst_rtp_mpa_pay_handle_buffer()
[all …]
Dgstrtpmp2tpay.c129 guint avail, mtu; in gst_rtp_mp2t_pay_flush() local
133 avail = gst_adapter_available (rtpmp2tpay->adapter); in gst_rtp_mp2t_pay_flush()
137 while (avail > 0 && (ret == GST_FLOW_OK)) { in gst_rtp_mp2t_pay_flush()
144 packet_len = gst_rtp_buffer_calc_packet_len (avail, 0, 0); in gst_rtp_mp2t_pay_flush()
166 avail -= payload_len; in gst_rtp_mp2t_pay_flush()
185 guint size, avail, packet_len; in gst_rtp_mp2t_pay_handle_buffer() local
197 avail = gst_adapter_available (rtpmp2tpay->adapter); in gst_rtp_mp2t_pay_handle_buffer()
200 if (avail == 0) { in gst_rtp_mp2t_pay_handle_buffer()
206 packet_len = gst_rtp_buffer_calc_packet_len (avail + size, 0, 0); in gst_rtp_mp2t_pay_handle_buffer()
Dgstrtpklvdepay.c218 gsize avail, data_len, len_size; in gst_rtp_klv_depay_process_data() local
223 avail = gst_adapter_available (klvdepay->adapter); in gst_rtp_klv_depay_process_data()
225 GST_TRACE_OBJECT (klvdepay, "%" G_GSIZE_FORMAT " bytes in adapter", avail); in gst_rtp_klv_depay_process_data()
227 if (avail == 0) in gst_rtp_klv_depay_process_data()
231 if (avail < 16 + 1) in gst_rtp_klv_depay_process_data()
235 data_len = MIN (avail - 16, 1 + 8); in gst_rtp_klv_depay_process_data()
241 "have %" G_GSIZE_FORMAT " bytes", 16 + len_size + v_len, avail); in gst_rtp_klv_depay_process_data()
243 if (avail < 16 + len_size + v_len) in gst_rtp_klv_depay_process_data()
247 if (avail > 16 + len_size + v_len) in gst_rtp_klv_depay_process_data()
250 outbuf = gst_adapter_take_buffer (klvdepay->adapter, avail); in gst_rtp_klv_depay_process_data()
[all …]
Dgstrtpmp4vpay.c242 guint avail, mtu; in gst_rtp_mp4v_pay_flush() local
253 avail = gst_adapter_available (rtpmp4vpay->adapter); in gst_rtp_mp4v_pay_flush()
257 gst_adapter_flush (rtpmp4vpay->adapter, avail); in gst_rtp_mp4v_pay_flush()
258 avail = 0; in gst_rtp_mp4v_pay_flush()
261 if (!avail) in gst_rtp_mp4v_pay_flush()
269 list = gst_buffer_list_new_sized ((avail / (mtu - RTP_HEADER_LEN)) + 1); in gst_rtp_mp4v_pay_flush()
271 while (avail > 0) { in gst_rtp_mp4v_pay_flush()
278 packet_len = gst_rtp_buffer_calc_packet_len (avail, 0, 0); in gst_rtp_mp4v_pay_flush()
296 avail -= payload_len; in gst_rtp_mp4v_pay_flush()
299 gst_rtp_buffer_set_marker (&rtp, avail == 0); in gst_rtp_mp4v_pay_flush()
[all …]
/third_party/alsa-utils/axfer/
Dxfer-libasound-irq-rw.c113 snd_pcm_sframes_t avail; in r_process_frames_blocking() local
119 avail = snd_pcm_avail(state->handle); in r_process_frames_blocking()
120 if (avail < 0) { in r_process_frames_blocking()
121 err = avail; in r_process_frames_blocking()
124 avail_count = (snd_pcm_uframes_t)avail; in r_process_frames_blocking()
161 snd_pcm_sframes_t avail; in r_process_frames_nonblocking() local
178 avail = snd_pcm_avail(state->handle); in r_process_frames_nonblocking()
179 if (avail < 0) { in r_process_frames_nonblocking()
180 err = avail; in r_process_frames_nonblocking()
183 avail_count = (snd_pcm_uframes_t)avail; in r_process_frames_nonblocking()
[all …]
Dxfer-libasound-irq-mmap.c24 snd_pcm_uframes_t avail = 0; in irq_mmap_pre_process() local
51 &avail); in irq_mmap_pre_process()
78 snd_pcm_uframes_t avail; in irq_mmap_process_frames() local
130 avail = snd_pcm_avail_update(state->handle); in irq_mmap_process_frames()
131 if ((snd_pcm_sframes_t)avail < 0) in irq_mmap_process_frames()
132 return (int)avail; in irq_mmap_process_frames()
133 if (*frame_count < avail) in irq_mmap_process_frames()
134 avail = *frame_count; in irq_mmap_process_frames()
136 err = snd_pcm_mmap_begin(state->handle, &areas, &frame_offset, &avail); in irq_mmap_process_frames()
141 if (*frame_count < avail) in irq_mmap_process_frames()
[all …]
Dxfer-libasound-timer-mmap.c27 snd_pcm_uframes_t avail = 0; in timer_mmap_pre_process() local
76 &avail); in timer_mmap_pre_process()
126 snd_pcm_sframes_t avail; in timer_mmap_process_frames() local
137 avail = snd_pcm_avail_update(state->handle); in timer_mmap_process_frames()
138 if (avail < 0) in timer_mmap_process_frames()
139 return (int)avail; in timer_mmap_process_frames()
142 avail_count = (snd_pcm_uframes_t)avail; in timer_mmap_process_frames()
188 avail = snd_pcm_avail(state->handle); in timer_mmap_process_frames()
189 if (avail < 0) in timer_mmap_process_frames()
190 return (int)avail; in timer_mmap_process_frames()
[all …]
/third_party/gstreamer/gstplugins_bad/gst/mpegdemux/
Dgstpesfilter.c119 gint avail, datalen; in gst_pes_filter_parse() local
122 avail = gst_adapter_available (filter->adapter); in gst_pes_filter_parse()
124 if (avail < 6) in gst_pes_filter_parse()
146 filter->length, avail, filter->start_code); in gst_pes_filter_parse()
164 if (filter->gather_pes && avail < filter->length + 6) { in gst_pes_filter_parse()
166 filter->id, filter->length + 6, avail); in gst_pes_filter_parse()
171 avail = MIN (avail, filter->length + 6); in gst_pes_filter_parse()
174 if (avail < 6) in gst_pes_filter_parse()
181 data = gst_adapter_map (filter->adapter, avail); in gst_pes_filter_parse()
188 datalen = avail - 6; in gst_pes_filter_parse()
[all …]
/third_party/gstreamer/gstplugins_bad/ext/resindvd/
Dgstpesfilter.c119 gint avail, datalen; in gst_pes_filter_parse() local
122 avail = gst_adapter_available (filter->adapter); in gst_pes_filter_parse()
124 if (avail < 6) in gst_pes_filter_parse()
146 filter->length, avail, filter->start_code); in gst_pes_filter_parse()
164 if (filter->gather_pes && avail < filter->length + 6) { in gst_pes_filter_parse()
166 filter->id, filter->length + 6, avail); in gst_pes_filter_parse()
171 avail = MIN (avail, filter->length + 6); in gst_pes_filter_parse()
174 if (avail < 6) in gst_pes_filter_parse()
181 data = gst_adapter_map (filter->adapter, avail); in gst_pes_filter_parse()
188 datalen = avail - 6; in gst_pes_filter_parse()
[all …]
/third_party/mesa3d/src/compiler/glsl/
Dbuiltin_functions.h60 udiv64(void *mem_ctx, builtin_available_predicate avail);
63 idiv64(void *mem_ctx, builtin_available_predicate avail);
66 umod64(void *mem_ctx, builtin_available_predicate avail);
69 imod64(void *mem_ctx, builtin_available_predicate avail);
72 umul64(void *mem_ctx, builtin_available_predicate avail);
75 sign64(void *mem_ctx, builtin_available_predicate avail);
78 udivmod64(void *mem_ctx, builtin_available_predicate avail);
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dbasictz.cpp147 UBool avail; in getSimpleRulesNear() local
150 avail = getNextTransition(date, FALSE, tr); in getSimpleRulesNear()
151 if (avail) { in getSimpleRulesNear()
185 avail = getNextTransition(nextTransitionTime, FALSE, tr); in getSimpleRulesNear()
186 if (avail) { in getSimpleRulesNear()
204avail = ar2->getPreviousStart(date, tr.getFrom()->getRawOffset(), tr.getFrom()->getDSTSavings(), T… in getSimpleRulesNear()
205 if (!avail || d > date in getSimpleRulesNear()
217 avail = getPreviousTransition(date, TRUE, tr); in getSimpleRulesNear()
218 if (avail) { in getSimpleRulesNear()
237avail = ar2->getNextStart(date, tr.getFrom()->getRawOffset(), tr.getFrom()->getDSTSavings(), FALSE… in getSimpleRulesNear()
[all …]
/third_party/icu/icu4c/source/i18n/
Dbasictz.cpp147 UBool avail; in getSimpleRulesNear() local
150 avail = getNextTransition(date, FALSE, tr); in getSimpleRulesNear()
151 if (avail) { in getSimpleRulesNear()
185 avail = getNextTransition(nextTransitionTime, FALSE, tr); in getSimpleRulesNear()
186 if (avail) { in getSimpleRulesNear()
204avail = ar2->getPreviousStart(date, tr.getFrom()->getRawOffset(), tr.getFrom()->getDSTSavings(), T… in getSimpleRulesNear()
205 if (!avail || d > date in getSimpleRulesNear()
217 avail = getPreviousTransition(date, TRUE, tr); in getSimpleRulesNear()
218 if (avail) { in getSimpleRulesNear()
237avail = ar2->getNextStart(date, tr.getFrom()->getRawOffset(), tr.getFrom()->getDSTSavings(), FALSE… in getSimpleRulesNear()
[all …]
/third_party/node/deps/icu-small/source/i18n/
Dbasictz.cpp147 UBool avail; in getSimpleRulesNear() local
150 avail = getNextTransition(date, FALSE, tr); in getSimpleRulesNear()
151 if (avail) { in getSimpleRulesNear()
185 avail = getNextTransition(nextTransitionTime, FALSE, tr); in getSimpleRulesNear()
186 if (avail) { in getSimpleRulesNear()
204avail = ar2->getPreviousStart(date, tr.getFrom()->getRawOffset(), tr.getFrom()->getDSTSavings(), T… in getSimpleRulesNear()
205 if (!avail || d > date in getSimpleRulesNear()
217 avail = getPreviousTransition(date, TRUE, tr); in getSimpleRulesNear()
218 if (avail) { in getSimpleRulesNear()
237avail = ar2->getNextStart(date, tr.getFrom()->getRawOffset(), tr.getFrom()->getDSTSavings(), FALSE… in getSimpleRulesNear()
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/
Dbasictz.cpp147 UBool avail; in getSimpleRulesNear() local
150 avail = getNextTransition(date, FALSE, tr); in getSimpleRulesNear()
151 if (avail) { in getSimpleRulesNear()
185 avail = getNextTransition(nextTransitionTime, FALSE, tr); in getSimpleRulesNear()
186 if (avail) { in getSimpleRulesNear()
204avail = ar2->getPreviousStart(date, tr.getFrom()->getRawOffset(), tr.getFrom()->getDSTSavings(), T… in getSimpleRulesNear()
205 if (!avail || d > date in getSimpleRulesNear()
217 avail = getPreviousTransition(date, TRUE, tr); in getSimpleRulesNear()
218 if (avail) { in getSimpleRulesNear()
237avail = ar2->getNextStart(date, tr.getFrom()->getRawOffset(), tr.getFrom()->getDSTSavings(), FALSE… in getSimpleRulesNear()
[all …]
/third_party/pulseaudio/src/tests/
Dalsa-time-test.c157 snd_pcm_sframes_t avail, delay; in main() local
176 avail = snd_pcm_avail(pcm); in main()
177 assert(avail >= 0); in main()
193 assert(!revents || avail > 0); in main()
195 if ((!cap && (avail >= fillrate)) || (cap && (unsigned)avail >= buffer_size)) { in main()
210 avail == last_avail && in main()
233 (signed long) avail, in main()
242 assert((unsigned) avail <= buffer_size); in main()
244 last_avail = avail; in main()
/third_party/libwebsockets/lib/roles/ws/
Dserver-ws.c808 unsigned int avail = (unsigned int)len; in lws_ws_frame_rest_is_payload() local
828 avail = (unsigned int)wsi->a.protocol->rx_buffer_size; in lws_ws_frame_rest_is_payload()
830 avail = wsi->a.context->pt_serv_buf_size; in lws_ws_frame_rest_is_payload()
834 if (avail > wsi->ws->rx_packet_length) in lws_ws_frame_rest_is_payload()
835 avail = (unsigned int)wsi->ws->rx_packet_length; in lws_ws_frame_rest_is_payload()
838 if (avail > len) in lws_ws_frame_rest_is_payload()
839 avail = (unsigned int)len; in lws_ws_frame_rest_is_payload()
841 if (!avail) in lws_ws_frame_rest_is_payload()
845 pmdrx.eb_in.len = (int)avail; in lws_ws_frame_rest_is_payload()
847 pmdrx.eb_out.len = (int)avail; in lws_ws_frame_rest_is_payload()
[all …]
/third_party/toybox/toys/posix/
Ddf.c100 unsigned long long size, used, avail, percent, block; in show_mt() local
124 avail = getuid() ? mt->statvfs.f_favail : mt->statvfs.f_ffree; in show_mt()
129 avail= (block*(getuid()?mt->statvfs.f_bavail:mt->statvfs.f_bfree))/TT.units; in show_mt()
131 if (!(used+avail)) percent = 0; in show_mt()
133 percent = (used*100)/(used+avail); in show_mt()
134 if (used*100 != percent*(used+avail)) percent++; in show_mt()
144 measure_numeric_column(3, avail); in show_mt()
155 human_readable(avail_str, avail, hr_flags); in show_mt()
163 TT.column_widths[3], avail, in show_mt()
/third_party/alsa-lib/src/pcm/
Dpcm_dshare.c164 snd_pcm_uframes_t old_slave_hw_ptr, avail; in snd_pcm_dshare_sync_ptr0() local
181 avail = snd_pcm_mmap_playback_avail(pcm); in snd_pcm_dshare_sync_ptr0()
182 if (avail > dshare->avail_max) in snd_pcm_dshare_sync_ptr0()
183 dshare->avail_max = avail; in snd_pcm_dshare_sync_ptr0()
184 if (avail >= pcm->stop_threshold) { in snd_pcm_dshare_sync_ptr0()
249 status->avail = snd_pcm_mmap_playback_avail(pcm); in snd_pcm_dshare_status()
250 status->avail_max = status->avail > dshare->avail_max ? status->avail : dshare->avail_max; in snd_pcm_dshare_status()
352 snd_pcm_sframes_t avail; in snd_pcm_dshare_start() local
357 avail = snd_pcm_mmap_playback_hw_avail(pcm); in snd_pcm_dshare_start()
358 if (avail == 0) in snd_pcm_dshare_start()
[all …]

12345678910>>...14