Home
last modified time | relevance | path

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

/AliOS-Things-master/components/linkkit/external/nghttp2/
A Dnghttp2_buf.c155 bufs->cur = bufs->head; in nghttp2_bufs_init3()
184 bufs->cur = bufs->head; in nghttp2_bufs_realloc()
186 nghttp2_buf_shift_right(&bufs->cur->buf, bufs->offset); in nghttp2_bufs_realloc()
231 bufs->cur = bufs->head; in nghttp2_bufs_wrap_init()
271 bufs->cur = bufs->head; in nghttp2_bufs_wrap_init2()
289 nghttp2_mem_free(bufs->mem, bufs->head); in nghttp2_bufs_wrap_free()
325 bufs->cur = bufs->cur->next; in bufs_alloc_chain()
330 if (bufs->max_chunk == bufs->chunk_used) { in bufs_alloc_chain()
340 bufs->chunk_length, bufs, bufs->chunk_used); in bufs_alloc_chain()
541 bufs->chunk_used = bufs->chunk_keep; in nghttp2_bufs_reset()
[all …]
A Dnghttp2_hd_huffman.c54 nghttp2_bufs_fast_orb(bufs, (uint8_t)code); in huff_encode_sym()
96 *avail_ptr = nghttp2_bufs_cur_avail(bufs); in huff_encode_sym()
104 *avail_ptr = nghttp2_bufs_cur_avail(bufs); in huff_encode_sym()
111 *avail_ptr = nghttp2_bufs_cur_avail(bufs); in huff_encode_sym()
132 nghttp2_bufs_fast_addb(bufs, (uint8_t)code); in huff_encode_sym()
133 *avail_ptr = nghttp2_bufs_cur_avail(bufs); in huff_encode_sym()
137 nghttp2_bufs_fast_addb_hold(bufs, (uint8_t)code); in huff_encode_sym()
138 *avail_ptr = nghttp2_bufs_cur_avail(bufs); in huff_encode_sym()
162 avail = nghttp2_bufs_cur_avail(bufs); in nghttp2_hd_huff_encode()
168 nghttp2_bufs_fast_addb_hold(bufs, 0); in nghttp2_hd_huff_encode()
[all …]
A Dnghttp2_buf.h196 void nghttp2_bufs_free(nghttp2_bufs *bufs);
240 void nghttp2_bufs_wrap_free(nghttp2_bufs *bufs);
286 int nghttp2_bufs_addb(nghttp2_bufs *bufs, uint8_t b);
292 int nghttp2_bufs_addb_hold(nghttp2_bufs *bufs, uint8_t b);
316 int nghttp2_bufs_orb(nghttp2_bufs *bufs, uint8_t b);
322 int nghttp2_bufs_orb_hold(nghttp2_bufs *bufs, uint8_t b);
367 void nghttp2_bufs_reset(nghttp2_bufs *bufs);
382 int nghttp2_bufs_advance(nghttp2_bufs *bufs);
397 void nghttp2_bufs_seek_last_present(nghttp2_bufs *bufs);
402 int nghttp2_bufs_next_present(nghttp2_bufs *bufs);
[all …]
A Dnghttp2_frame.c304 if (bufs->head != bufs->cur) { in frame_pack_headers_shared()
311 if (bufs->head != bufs->cur) { in frame_pack_headers_shared()
317 ce = bufs->cur; in frame_pack_headers_shared()
351 assert(bufs->head == bufs->cur); in nghttp2_frame_pack_headers()
426 assert(bufs->head == bufs->cur); in nghttp2_frame_pack_priority()
453 assert(bufs->head == bufs->cur); in nghttp2_frame_pack_rst_stream()
479 assert(bufs->head == bufs->cur); in nghttp2_frame_pack_settings()
562 assert(bufs->head == bufs->cur); in nghttp2_frame_pack_push_promise()
604 assert(bufs->head == bufs->cur); in nghttp2_frame_pack_ping()
631 assert(bufs->head == bufs->cur); in nghttp2_frame_pack_goaway()
[all …]
A Dnghttp2_frame.h137 int nghttp2_frame_pack_headers(nghttp2_bufs *bufs, nghttp2_headers *frame,
159 int nghttp2_frame_pack_priority(nghttp2_bufs *bufs, nghttp2_priority *frame);
176 int nghttp2_frame_pack_rst_stream(nghttp2_bufs *bufs,
198 int nghttp2_frame_pack_settings(nghttp2_bufs *bufs, nghttp2_settings *frame);
258 int nghttp2_frame_pack_push_promise(nghttp2_bufs *bufs,
285 int nghttp2_frame_pack_ping(nghttp2_bufs *bufs, nghttp2_ping *frame);
308 int nghttp2_frame_pack_goaway(nghttp2_bufs *bufs, nghttp2_goaway *frame);
347 int nghttp2_frame_pack_window_update(nghttp2_bufs *bufs,
365 int nghttp2_frame_pack_altsvc(nghttp2_bufs *bufs, nghttp2_extension *ext);
572 int nghttp2_frame_add_pad(nghttp2_bufs *bufs, nghttp2_frame_hd *hd,
A Dnghttp2_hd.c956 rv = nghttp2_bufs_add(bufs, sb, blocklen); in emit_table_size()
983 rv = nghttp2_bufs_add(bufs, sb, blocklen); in emit_indexed_block()
1023 rv = nghttp2_bufs_add(bufs, sb, blocklen); in emit_string()
1032 rv = nghttp2_bufs_add(bufs, str, len); in emit_string()
1086 rv = nghttp2_bufs_add(bufs, sb, blocklen); in emit_indname_block()
1529 nghttp2_bufs bufs; in nghttp2_hd_deflate_hd() local
1543 buflen = nghttp2_bufs_len(&bufs); in nghttp2_hd_deflate_hd()
1545 nghttp2_bufs_wrap_free(&bufs); in nghttp2_hd_deflate_hd()
1562 nghttp2_bufs bufs; in nghttp2_hd_deflate_hd_vec() local
1577 buflen = nghttp2_bufs_len(&bufs); in nghttp2_hd_deflate_hd_vec()
[all …]
A Dnghttp2_hd.h333 nghttp2_bufs *bufs, const nghttp2_nv *nva,
363 int nghttp2_hd_emit_indname_block(nghttp2_bufs *bufs, size_t index,
367 int nghttp2_hd_emit_newname_block(nghttp2_bufs *bufs, nghttp2_nv *nv,
371 int nghttp2_hd_emit_table_size(nghttp2_bufs *bufs, size_t table_size);
404 int nghttp2_hd_huff_encode(nghttp2_bufs *bufs, const uint8_t *src,
A Dnghttp2_session.h800 int nghttp2_session_pack_data(nghttp2_session *session, nghttp2_bufs *bufs,
A Dnghttp2_session.c1965 static int session_pack_extension(nghttp2_session *session, nghttp2_bufs *bufs, in session_pack_extension() argument
1975 buf = &bufs->head->buf; in session_pack_extension()
7129 int nghttp2_session_pack_data(nghttp2_session *session, nghttp2_bufs *bufs, in nghttp2_session_pack_data() argument
7141 assert(bufs->head == bufs->cur); in nghttp2_session_pack_data()
7143 buf = &bufs->cur->buf; in nghttp2_session_pack_data()
7178 assert(&session->aob.framebufs == bufs); in nghttp2_session_pack_data()
7180 buf = &bufs->cur->buf; in nghttp2_session_pack_data()
7252 rv = nghttp2_frame_add_pad(bufs, &frame->hd, frame->data.padlen, in nghttp2_session_pack_data()
/AliOS-Things-master/components/py_engine/adapter/haas510/
A Dmachine_hw_i2c.c73 for (; n--; ++bufs) { in machine_hw_i2c_transfer()
76 ret = aos_hal_i2c_master_recv(dev, addr, bufs->buf, bufs->len, timeout); in machine_hw_i2c_transfer()
77 for(int k=0; k<bufs->len; k++) { in machine_hw_i2c_transfer()
78 LOGD(LOG_TAG, "data = 0x%2x\n", bufs->buf[k]); in machine_hw_i2c_transfer()
81 ret = aos_hal_i2c_slave_recv(dev, bufs->buf, bufs->len, timeout); in machine_hw_i2c_transfer()
84 if (bufs->len != 0) { in machine_hw_i2c_transfer()
85 for(int k=0; k<bufs->len; k++) { in machine_hw_i2c_transfer()
86 LOGD(LOG_TAG, "data = 0x%2x\n", bufs->buf[k]); in machine_hw_i2c_transfer()
89 ret = aos_hal_i2c_master_send(dev, addr, bufs->buf, bufs->len, timeout); in machine_hw_i2c_transfer()
91 ret = aos_hal_i2c_slave_send(dev, bufs->buf, bufs->len, timeout); in machine_hw_i2c_transfer()
[all …]
/AliOS-Things-master/components/py_engine/adapter/haas600/
A Dmachine_hw_i2c.c73 for (; n--; ++bufs) { in machine_hw_i2c_transfer()
76 ret = aos_hal_i2c_master_recv(dev, addr, bufs->buf, bufs->len, timeout); in machine_hw_i2c_transfer()
77 for(int k=0; k<bufs->len; k++) { in machine_hw_i2c_transfer()
78 LOGD(LOG_TAG, "data = 0x%2x\n", bufs->buf[k]); in machine_hw_i2c_transfer()
81 ret = aos_hal_i2c_slave_recv(dev, bufs->buf, bufs->len, timeout); in machine_hw_i2c_transfer()
84 if (bufs->len != 0) { in machine_hw_i2c_transfer()
85 for(int k=0; k<bufs->len; k++) { in machine_hw_i2c_transfer()
86 LOGD(LOG_TAG, "data = 0x%2x\n", bufs->buf[k]); in machine_hw_i2c_transfer()
89 ret = aos_hal_i2c_master_send(dev, addr, bufs->buf, bufs->len, timeout); in machine_hw_i2c_transfer()
91 ret = aos_hal_i2c_slave_send(dev, bufs->buf, bufs->len, timeout); in machine_hw_i2c_transfer()
[all …]
/AliOS-Things-master/components/py_engine/engine/extmod/
A Dmachine_i2c.c205 for (; n--; ++bufs) { in mp_machine_soft_i2c_transfer()
206 size_t len = bufs->len; in mp_machine_soft_i2c_transfer()
207 uint8_t *buf = bufs->buf; in mp_machine_soft_i2c_transfer()
252 len = bufs[0].len; in mp_machine_i2c_transfer_adaptor()
253 buf = bufs[0].buf; in mp_machine_i2c_transfer_adaptor()
258 len += bufs[i].len; in mp_machine_i2c_transfer_adaptor()
264 memcpy(buf + len, bufs[i].buf, bufs[i].len); in mp_machine_i2c_transfer_adaptor()
278 memcpy(bufs[i].buf, buf + len, bufs[i].len); in mp_machine_i2c_transfer_adaptor()
485 bufs[0].len = 0; in machine_i2c_writevto()
486 bufs[0].buf = NULL; in machine_i2c_writevto()
[all …]
A Dmachine_i2c.h65 …int (*transfer)(mp_obj_base_t *obj, uint16_t addr, size_t n, mp_machine_i2c_buf_t *bufs, unsigned …
80 …aptor(mp_obj_base_t *self, uint16_t addr, size_t n, mp_machine_i2c_buf_t *bufs, unsigned int flags…
81 …nsfer(mp_obj_base_t *self, uint16_t addr, size_t n, mp_machine_i2c_buf_t *bufs, unsigned int flags…
/AliOS-Things-master/components/epoll/example/
A Dtest_device.c27 dlist_t bufs; member
43 dlist_init(&pdev->bufs); in event_open()
54 while (!dlist_empty(&pdev->bufs)) { in event_close()
55 dlist_t *n = pdev->bufs.next; in event_close()
97 dlist_add(&evt->node, &pdev->bufs); in _event_write()
99 dlist_add_tail(&evt->node, &pdev->bufs); in _event_write()
142 dev_event_t *evt = (dev_event_t *)pdev->bufs.next; in event_read()
/AliOS-Things-master/components/select/example/
A Dtest_device.c27 dlist_t bufs; member
43 dlist_init(&pdev->bufs); in event_open()
54 while (!dlist_empty(&pdev->bufs)) { in event_close()
55 dlist_t *n = pdev->bufs.next; in event_close()
97 dlist_add(&evt->node, &pdev->bufs); in _event_write()
99 dlist_add_tail(&evt->node, &pdev->bufs); in _event_write()
142 dev_event_t *evt = (dev_event_t *)pdev->bufs.next; in event_read()
/AliOS-Things-master/components/py_engine/adapter/haas/
A Dmachine_hw_i2c.c69 …achine_hw_i2c_transfer(mp_obj_base_t *self_in, uint16_t addr, size_t n, mp_machine_i2c_buf_t *bufs, in mp_machine_hw_i2c_transfer() argument
79 for (; n--; ++bufs) { in mp_machine_hw_i2c_transfer()
81 … ret = aos_hal_i2c_mem_read(dev, dev->config.dev_addr, addr, n, bufs->buf, bufs->len, timeout); in mp_machine_hw_i2c_transfer()
83 if (bufs->len != 0) { in mp_machine_hw_i2c_transfer()
84 … ret = aos_hal_i2c_mem_write(dev, dev->config.dev_addr, addr, n, bufs->buf, bufs->len, timeout); in mp_machine_hw_i2c_transfer()
93 data_len += bufs->len; in mp_machine_hw_i2c_transfer()
/AliOS-Things-master/components/a2sa/include/
A Dsound_pcm.h363 aos_pcm_sframes_t aos_pcm_writen(aos_pcm_t *pcm, void **bufs, aos_pcm_uframes_t size);
374 aos_pcm_sframes_t aos_pcm_readn(aos_pcm_t *pcm, void **bufs, aos_pcm_uframes_t size);
/AliOS-Things-master/components/a2sa/src/framework/
A Dsound_pcm.c548 aos_pcm_sframes_t aos_pcm_writen(aos_pcm_t *pcm, void **bufs, aos_pcm_uframes_t size) in aos_pcm_writen() argument
568 x.bufs = bufs; in aos_pcm_writen()
609 aos_pcm_sframes_t aos_pcm_readn(aos_pcm_t *pcm, void **bufs, aos_pcm_uframes_t size) in aos_pcm_readn() argument
629 x.bufs = bufs; in aos_pcm_readn()
/AliOS-Things-master/components/a2sa/internal/driver/core/
A Daudio_drv.h91 void **bufs; /**< data buffer */ member
/AliOS-Things-master/components/ble_host/bt_shell/bt_host/
A Dbt.c184 static char bufs[2][27]; in addr_le_str() local
188 str = bufs[cur++]; in addr_le_str()
189 cur %= ARRAY_SIZE(bufs); in addr_le_str()
190 bt_addr_le_to_str(addr, str, sizeof(bufs[cur])); in addr_le_str()
/AliOS-Things-master/components/ble_host/bt_shell/bt_host/test/
A Dbt.c174 static char bufs[2][27]; in addr_le_str() local
178 str = bufs[cur++]; in addr_le_str()
179 cur %= ARRAY_SIZE(bufs); in addr_le_str()
180 bt_addr_le_to_str(addr, str, sizeof(bufs[cur])); in addr_le_str()
/AliOS-Things-master/components/SDL2/include/
A DSDL_opengles2_gl2ext.h1518 GL_APICALL void GL_APIENTRY glDrawBuffersEXT (GLsizei n, const GLenum *bufs);
1520 typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSEXTPROC) (GLsizei n, const GLenum *bufs);
1812 GL_APICALL void GL_APIENTRY glDrawBuffersNV (GLsizei n, const GLenum *bufs);
1814 typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSNVPROC) (GLsizei n, const GLenum *bufs);
A DSDL_opengl_glext.h658 typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum *bufs);
752 GLAPI void APIENTRY glDrawBuffers (GLsizei n, const GLenum *bufs);
2791 typedef void (APIENTRYP PFNGLDRAWBUFFERSARBPROC) (GLsizei n, const GLenum *bufs);
2793 GLAPI void APIENTRY glDrawBuffersARB (GLsizei n, const GLenum *bufs);
5351 typedef void (APIENTRYP PFNGLDRAWBUFFERSATIPROC) (GLsizei n, const GLenum *bufs);
5353 GLAPI void APIENTRY glDrawBuffersATI (GLsizei n, const GLenum *bufs);
6283 …(APIENTRYP PFNGLFRAMEBUFFERDRAWBUFFERSEXTPROC) (GLuint framebuffer, GLsizei n, const GLenum *bufs);
6539 GLAPI void APIENTRY glFramebufferDrawBuffersEXT (GLuint framebuffer, GLsizei n, const GLenum *bufs);
/AliOS-Things-master/components/ble_mesh/bt_shell/bt_mesh/
A Dshell.c3029 static char bufs[2][27]; in addr_le_str() local
3033 str = bufs[cur++]; in addr_le_str()
3034 cur %= ARRAY_SIZE(bufs); in addr_le_str()
3035 bt_addr_le_to_str(addr, str, sizeof(bufs[cur])); in addr_le_str()
/AliOS-Things-master/components/SDL2/src/video/khronos/GLES2/
A Dgl2ext.h1305 typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSEXTPROC) (GLsizei n, const GLenum *bufs);
1307 GL_APICALL void GL_APIENTRY glDrawBuffersEXT (GLsizei n, const GLenum *bufs);
2577 typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSNVPROC) (GLsizei n, const GLenum *bufs);
2579 GL_APICALL void GL_APIENTRY glDrawBuffersNV (GLsizei n, const GLenum *bufs);

Completed in 142 milliseconds