/third_party/python/Lib/ctypes/test/ |
H A D | test_wintypes.py | 17 vb = wintypes.VARIANT_BOOL() 18 self.assertIs(vb.value, False) 19 vb.value = True 20 self.assertIs(vb.value, True) 21 vb.value = true_value 22 self.assertIs(vb.value, True) 31 vb = wintypes.VARIANT_BOOL() 32 vb.value = set_value 33 self.assertIs(vb.value, True) 35 vb [all...] |
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_setup_analysis.c | 215 check_elts24(struct lp_setup_context *setup, const void *vb, int stride) in check_elts24() argument 229 const_float4_ptr v0 = get_vert(vb, stride, 0); in check_elts24() 230 const_float4_ptr v1 = get_vert(vb, stride, 1); in check_elts24() 231 const_float4_ptr v2 = get_vert(vb, stride, 2); in check_elts24() 232 const_float4_ptr v3 = get_vert(vb, stride, 3); in check_elts24() 233 const_float4_ptr v6 = get_vert(vb, stride, 6); in check_elts24() 234 const_float4_ptr v9 = get_vert(vb, stride, 9); in check_elts24() 235 const_float4_ptr v12 = get_vert(vb, stride, 12); in check_elts24() 236 const_float4_ptr v18 = get_vert(vb, stride, 18); in check_elts24() 268 if (memcmp(get_vert(vb, in check_elts24() 320 lp_setup_analyse_triangles(struct lp_setup_context *setup, const void *vb, int stride, int nr) lp_setup_analyse_triangles() argument [all...] |
/third_party/node/deps/openssl/openssl/crypto/srp/ |
H A D | srp_vfy.c | 280 SRP_VBASE *vb = OPENSSL_malloc(sizeof(*vb)); in SRP_VBASE_new() local 282 if (vb == NULL) in SRP_VBASE_new() 284 if ((vb->users_pwd = sk_SRP_user_pwd_new_null()) == NULL in SRP_VBASE_new() 285 || (vb->gN_cache = sk_SRP_gN_cache_new_null()) == NULL) { in SRP_VBASE_new() 286 sk_SRP_user_pwd_free(vb->users_pwd); in SRP_VBASE_new() 287 OPENSSL_free(vb); in SRP_VBASE_new() 290 vb->default_g = NULL; in SRP_VBASE_new() 291 vb->default_N = NULL; in SRP_VBASE_new() 292 vb in SRP_VBASE_new() 302 SRP_VBASE_free(SRP_VBASE *vb) SRP_VBASE_free() argument 395 SRP_VBASE_init(SRP_VBASE *vb, char *verifier_file) SRP_VBASE_init() argument 508 find_user(SRP_VBASE *vb, char *username) find_user() argument 525 SRP_VBASE_add0_user(SRP_VBASE *vb, SRP_user_pwd *user_pwd) SRP_VBASE_add0_user() argument 539 SRP_VBASE_get_by_user(SRP_VBASE *vb, char *username) SRP_VBASE_get_by_user() argument 549 SRP_VBASE_get1_by_user(SRP_VBASE *vb, char *username) SRP_VBASE_get1_by_user() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/svga/ |
H A D | svga_state_vdecl.c | 70 const struct pipe_vertex_buffer *vb = in emit_hw_vs_vdecl() local 71 &svga->curr.vb[ve[i].vertex_buffer_index]; in emit_hw_vs_vdecl() 73 unsigned int offset = vb->buffer_offset + ve[i].src_offset; in emit_hw_vs_vdecl() 76 if (!vb->buffer.resource) in emit_hw_vs_vdecl() 79 buffer = svga_buffer(vb->buffer.resource); in emit_hw_vs_vdecl() 82 if (vb->stride) in emit_hw_vs_vdecl() 83 tmp_neg_bias = (tmp_neg_bias + vb->stride - 1) / vb->stride; in emit_hw_vs_vdecl() 89 const struct pipe_vertex_buffer *vb = in emit_hw_vs_vdecl() local 90 &svga->curr.vb[v in emit_hw_vs_vdecl() [all...] |
H A D | svga_swtnl_backend.c | 251 struct pipe_vertex_buffer vb; in svga_vbuf_submit_state() local 252 vb.is_user_buffer = false; in svga_vbuf_submit_state() 253 vb.buffer.resource = svga_render->vbuf; in svga_vbuf_submit_state() 254 vb.buffer_offset = svga_render->vdecl_offset; in svga_vbuf_submit_state() 255 vb.stride = vdecl[0].array.stride; in svga_vbuf_submit_state() 256 svga_hwtnl_vertex_buffers(svga->hwtnl, 1, &vb); in svga_vbuf_submit_state()
|
/third_party/openssl/crypto/srp/ |
H A D | srp_vfy.c | 282 SRP_VBASE *vb = OPENSSL_malloc(sizeof(*vb)); in SRP_VBASE_new() local 284 if (vb == NULL) in SRP_VBASE_new() 286 if ((vb->users_pwd = sk_SRP_user_pwd_new_null()) == NULL in SRP_VBASE_new() 287 || (vb->gN_cache = sk_SRP_gN_cache_new_null()) == NULL) { in SRP_VBASE_new() 288 OPENSSL_free(vb); in SRP_VBASE_new() 291 vb->default_g = NULL; in SRP_VBASE_new() 292 vb->default_N = NULL; in SRP_VBASE_new() 293 vb->seed_key = NULL; in SRP_VBASE_new() 294 if ((seed_key != NULL) && (vb in SRP_VBASE_new() 303 SRP_VBASE_free(SRP_VBASE *vb) SRP_VBASE_free() argument 396 SRP_VBASE_init(SRP_VBASE *vb, char *verifier_file) SRP_VBASE_init() argument 509 find_user(SRP_VBASE *vb, char *username) find_user() argument 526 SRP_VBASE_add0_user(SRP_VBASE *vb, SRP_user_pwd *user_pwd) SRP_VBASE_add0_user() argument 540 SRP_VBASE_get_by_user(SRP_VBASE *vb, char *username) SRP_VBASE_get_by_user() argument 550 SRP_VBASE_get1_by_user(SRP_VBASE *vb, char *username) SRP_VBASE_get1_by_user() argument [all...] |
/third_party/mesa3d/src/gallium/frontends/d3d10umd/ |
H A D | InputAssembly.cpp | 136 struct pipe_vertex_buffer *vb = &pDevice->vertex_buffers[StartBuffer + i]; in IaSetVertexBuffers() local 151 vb->stride = pStrides[i]; in IaSetVertexBuffers() 152 vb->buffer_offset = pOffsets[i]; in IaSetVertexBuffers() 153 if (vb->is_user_buffer) { in IaSetVertexBuffers() 154 vb->buffer.resource = NULL; in IaSetVertexBuffers() 155 vb->is_user_buffer = FALSE; in IaSetVertexBuffers() 157 pipe_resource_reference(&vb->buffer.resource, resource); in IaSetVertexBuffers() 160 vb->stride = 0; in IaSetVertexBuffers() 161 vb->buffer_offset = 0; in IaSetVertexBuffers() 162 if (!vb in IaSetVertexBuffers() 171 struct pipe_vertex_buffer *vb = &pDevice->vertex_buffers[i]; IaSetVertexBuffers() local [all...] |
/third_party/mesa3d/src/gallium/auxiliary/vl/ |
H A D | vl_compositor_gfx.c | 471 gen_rect_verts(struct vertex2f *vb, struct vl_compositor_layer *layer) in gen_rect_verts() argument 475 assert(vb && layer); in gen_rect_verts() 513 vb[ 0].x = tl.x; in gen_rect_verts() 514 vb[ 0].y = tl.y; in gen_rect_verts() 515 vb[ 1].x = layer->src.tl.x; in gen_rect_verts() 516 vb[ 1].y = layer->src.tl.y; in gen_rect_verts() 517 vb[ 2] = layer->zw; in gen_rect_verts() 518 vb[ 3].x = layer->colors[0].x; in gen_rect_verts() 519 vb[ 3].y = layer->colors[0].y; in gen_rect_verts() 520 vb[ in gen_rect_verts() 604 struct vertex2f *vb; gen_vertex_data() local [all...] |
/third_party/lwip/src/apps/snmp/ |
H A D | snmp_msg.c | 304 struct snmp_varbind vb; in snmp_receive() local 306 vb.next = NULL; in snmp_receive() 307 vb.prev = NULL; in snmp_receive() 308 vb.type = SNMP_ASN1_TYPE_COUNTER32; in snmp_receive() 309 vb.value_len = sizeof(u32_t); in snmp_receive() 314 snmp_oid_assign(&vb.oid, oid, LWIP_ARRAYSIZE(oid)); in snmp_receive() 315 vb.value = &snmp_stats.wrongdigests; in snmp_receive() 320 snmp_oid_assign(&vb.oid, oid, LWIP_ARRAYSIZE(oid)); in snmp_receive() 321 vb.value = &snmp_stats.unknownengineids; in snmp_receive() 326 snmp_oid_assign(&vb in snmp_receive() 403 snmp_process_varbind(struct snmp_request *request, struct snmp_varbind *vb, u8_t get_next) snmp_process_varbind() argument 487 struct snmp_varbind vb; snmp_process_get_request() local 523 struct snmp_varbind vb; snmp_process_getnext_request() local 563 struct snmp_varbind vb; snmp_process_getbulk_request() local 657 struct snmp_varbind vb; snmp_process_set_request() local 1838 struct snmp_varbind vb; snmp_execute_write_callbacks() local [all...] |
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/ |
H A D | nv30_vbo.c | 39 nv30_emit_vtxattr(struct nv30_context *nv30, struct pipe_vertex_buffer *vb, in nv30_emit_vtxattr() argument 44 struct nv04_resource *res = nv04_resource(vb->buffer.resource); in nv30_emit_vtxattr() 48 data = nouveau_resource_map_offset(&nv30->base, res, vb->buffer_offset + in nv30_emit_vtxattr() 95 struct pipe_vertex_buffer *vb; in nv30_prevalidate_vbufs() local 103 vb = &nv30->vtxbuf[i]; in nv30_prevalidate_vbufs() 104 if (!vb->stride || !vb->buffer.resource) /* NOTE: user_buffer not implemented */ in nv30_prevalidate_vbufs() 106 buf = nv04_resource(vb->buffer.resource); in nv30_prevalidate_vbufs() 109 if (!nouveau_resource_mapped_by_gpu(vb->buffer.resource)) { in nv30_prevalidate_vbufs() 116 assert(vb in nv30_prevalidate_vbufs() 139 struct pipe_vertex_buffer *vb = &nv30->vtxbuf[b]; nv30_update_user_vbufs() local 187 struct pipe_vertex_buffer *vb; global() local [all...] |
H A D | nv30_push.c | 212 struct pipe_vertex_buffer *vb = &nv30->vtxbuf[i]; in nv30_push_vbo() local 213 struct nv04_resource *res = nv04_resource(vb->buffer.resource); in nv30_push_vbo() 215 if (!vb->buffer.resource) { in nv30_push_vbo() 220 vb->buffer_offset, NOUVEAU_BO_RD); in nv30_push_vbo() 223 data += draw->index_bias * vb->stride; in nv30_push_vbo() 225 ctx.translate->set_buffer(ctx.translate, i, data, vb->stride, ~0); in nv30_push_vbo()
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_vbuf.c | 478 struct pipe_vertex_buffer *vb; in u_vbuf_translate_buffers() local 483 vb = &mgr->vertex_buffer[i]; in u_vbuf_translate_buffers() 484 offset = vb->buffer_offset + vb->stride * start_vertex; in u_vbuf_translate_buffers() 486 if (vb->is_user_buffer) { in u_vbuf_translate_buffers() 487 map = (uint8_t*)vb->buffer.user + offset; in u_vbuf_translate_buffers() 489 unsigned size = vb->stride ? num_vertices * vb->stride in u_vbuf_translate_buffers() 492 if (!vb->buffer.resource) { in u_vbuf_translate_buffers() 498 if (vb in u_vbuf_translate_buffers() 853 unsigned vb = mgr->fallback_vbs[i]; u_vbuf_translate_end() local 1023 const struct pipe_vertex_buffer *vb = &bufs[i]; u_vbuf_set_vertex_buffers() local 1118 get_upload_offset_size(struct u_vbuf *mgr, const struct pipe_vertex_buffer *vb, struct u_vbuf_elements *ve, const struct pipe_vertex_element *velem, unsigned vb_index, unsigned velem_index, int start_vertex, unsigned num_vertices, int start_instance, unsigned num_instances, unsigned *offset, unsigned *size) get_upload_offset_size() argument 1176 struct pipe_vertex_buffer *vb = &mgr->vertex_buffer[index]; u_vbuf_upload_buffers() local 1208 struct pipe_vertex_buffer *vb = &mgr->vertex_buffer[index]; u_vbuf_upload_buffers() local [all...] |
/third_party/mesa3d/src/gallium/drivers/r600/ |
H A D | r600_pipe_common.c | 141 float *vb; in r600_draw_rectangle() local 164 &offset, &buf, (void**)&vb); in r600_draw_rectangle() 168 vb[0] = x1; in r600_draw_rectangle() 169 vb[1] = y1; in r600_draw_rectangle() 170 vb[2] = depth; in r600_draw_rectangle() 171 vb[3] = 1; in r600_draw_rectangle() 173 vb[8] = x1; in r600_draw_rectangle() 174 vb[9] = y2; in r600_draw_rectangle() 175 vb[10] = depth; in r600_draw_rectangle() 176 vb[1 in r600_draw_rectangle() [all...] |
/third_party/skia/src/gpu/ops/ |
H A D | QuadPerEdgeAA.cpp | 37 void write_quad_generic(VertexWriter* vb, in write_quad_generic() argument 53 *vb << deviceQuad->x(i) in write_quad_generic() 61 *vb << GrVertexColor(color * (mode == CoverageMode::kWithColor ? coverage[i] : 1.f), in write_quad_generic() 67 *vb << localQuad->x(i) in write_quad_generic() 74 *vb << geomSubset; in write_quad_generic() 79 *vb << texSubset; in write_quad_generic() 89 void write_2d_color(VertexWriter* vb, in write_2d_color() argument 113 *vb << deviceQuad->x(i) in write_2d_color() 121 void write_2d_uv(VertexWriter* vb, in write_2d_uv() argument 139 *vb << deviceQua in write_2d_uv() 148 write_2d_color_uv(VertexWriter* vb, const VertexSpec& spec, const GrQuad* deviceQuad, const GrQuad* localQuad, const float coverage[4], const SkPMColor4f& color, const SkRect& geomSubset, const SkRect& texSubset) write_2d_color_uv() argument 180 write_2d_cov_uv(VertexWriter* vb, const VertexSpec& spec, const GrQuad* deviceQuad, const GrQuad* localQuad, const float coverage[4], const SkPMColor4f& color, const SkRect& geomSubset, const SkRect& texSubset) write_2d_cov_uv() argument 214 write_2d_uv_strict(VertexWriter* vb, const VertexSpec& spec, const GrQuad* deviceQuad, const GrQuad* localQuad, const float coverage[4], const SkPMColor4f& color, const SkRect& geomSubset, const SkRect& texSubset) write_2d_uv_strict() argument 242 write_2d_color_uv_strict(VertexWriter* vb, const VertexSpec& spec, const GrQuad* deviceQuad, const GrQuad* localQuad, const float coverage[4], const SkPMColor4f& color, const SkRect& geomSubset, const SkRect& texSubset) write_2d_color_uv_strict() argument 275 write_2d_cov_uv_strict(VertexWriter* vb, const VertexSpec& spec, const GrQuad* deviceQuad, const GrQuad* localQuad, const float coverage[4], const SkPMColor4f& color, const SkRect& geomSubset, const SkRect& texSubset) write_2d_cov_uv_strict() argument [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | qoienc.c | 80 int8_t vb = px[2] - px_prev[2]; in qoi_encode_frame() local 83 int8_t vg_b = vb - vg; in qoi_encode_frame() 87 vb > -3 && vb < 2) { in qoi_encode_frame() 88 bytestream_put_byte(&buf, QOI_OP_DIFF | (vr + 2) << 4 | (vg + 2) << 2 | (vb + 2)); in qoi_encode_frame()
|
H A D | libvorbisdec.c | 31 vorbis_block vb; /**< vorbis_block used for analysis */ member 124 vorbis_block_init(&context->vd, &context->vb); in oggvorbis_decode_init() 182 if(vorbis_synthesis(&context->vb, op) == 0) in oggvorbis_decode_frame() 183 vorbis_synthesis_blockin(&context->vd, &context->vb) ; in oggvorbis_decode_frame() 204 vorbis_block_clear(&context->vb); in oggvorbis_decode_close()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/ |
H A D | freedreno_state.c | 372 const struct pipe_vertex_buffer *vb) in_dt 384 bool new_enabled = vb && vb[i].buffer.resource; 385 bool old_enabled = so->vb[start_slot + i].buffer.resource != NULL; 386 uint32_t new_stride = vb ? vb[i].stride : 0; 387 uint32_t old_stride = so->vb[start_slot + i].stride; 395 util_set_vertex_buffers_mask(so->vb, &so->enabled_mask, vb, start_slot, 400 if (!vb) [all...] |
/third_party/mesa3d/src/gallium/drivers/r300/ |
H A D | r300_context.c | 478 struct pipe_resource vb; local 479 memset(&vb, 0, sizeof(vb)); 480 vb.target = PIPE_BUFFER; 481 vb.format = PIPE_FORMAT_R8_UNORM; 482 vb.usage = PIPE_USAGE_DEFAULT; 483 vb.width0 = sizeof(float) * 16; 484 vb.height0 = 1; 485 vb.depth0 = 1; 487 r300->dummy_vb.buffer.resource = screen->resource_create(screen, &vb); [all...] |
/third_party/skia/src/gpu/ |
H A D | GrGeometryProcessor.cpp | 100 ProgramImpl::FPCoordsMap ProgramImpl::collectTransforms(GrGLSLVertexBuilder* vb, in collectTransforms() argument 121 vb->codeAppendf("%s = %s;\n", baseLocalCoord.vsOut(), localCoordsVar.getName().c_str()); in collectTransforms() 223 void ProgramImpl::emitTransformCode(GrGLSLVertexBuilder* vb, GrGLSLUniformHandler* uniformHandler) { in emitTransformCode() argument 282 vb->codeAppend("{\n"); in emitTransformCode() 284 if (vb->getProgramBuilder()->shaderCaps()->nonsquareMatrixSupport()) { in emitTransformCode() 285 vb->codeAppendf("%s = float3x2(%s) * %s", in emitTransformCode() 290 vb->codeAppendf("%s = (%s * %s).xy", in emitTransformCode() 297 vb->codeAppendf("%s = %s * %s", in emitTransformCode() 302 vb->codeAppend(";\n"); in emitTransformCode() 303 vb in emitTransformCode() [all...] |
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/ |
H A D | nv50_vbo.c | 142 nv50_emit_vtxattr(struct nv50_context *nv50, struct pipe_vertex_buffer *vb, in nv50_emit_vtxattr() argument 146 const void *data = (const uint8_t *)vb->buffer.user + ve->src_offset; in nv50_emit_vtxattr() 150 assert(vb->is_user_buffer); in nv50_emit_vtxattr() 215 const struct pipe_vertex_buffer *vb = &nv50->vtxbuf[b]; in nv50_upload_user_buffers() local 218 if (!(nv50->vbo_user & (1 << b)) || !vb->stride) in nv50_upload_user_buffers() 223 addrs[b] = nouveau_scratch_data(&nv50->base, vb->buffer.user, base, size, in nv50_upload_user_buffers() 243 struct pipe_vertex_buffer *vb; in nv50_update_user_vbufs() local 247 vb = &nv50->vtxbuf[b]; in nv50_update_user_vbufs() 252 if (!vb->stride) { in nv50_update_user_vbufs() 253 nv50_emit_vtxattr(nv50, vb, v in nv50_update_user_vbufs() 294 struct pipe_vertex_buffer *vb; nv50_vertex_arrays_validate() local [all...] |
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/ |
H A D | nvc0_vbo_translate.c | 71 const struct pipe_vertex_buffer *vb = &nvc0->vtxbuf[i]; in nvc0_vertex_configure_translate() local 73 if (likely(vb->is_user_buffer)) in nvc0_vertex_configure_translate() 74 map = (const uint8_t *)vb->buffer.user; in nvc0_vertex_configure_translate() 76 if (!vb->buffer.resource) in nvc0_vertex_configure_translate() 80 nv04_resource(vb->buffer.resource), vb->buffer_offset, NOUVEAU_BO_RD); in nvc0_vertex_configure_translate() 84 map += (intptr_t)index_bias * vb->stride; in nvc0_vertex_configure_translate() 86 translate->set_buffer(translate, i, map, vb->stride, ~0); in nvc0_vertex_configure_translate() 109 struct pipe_vertex_buffer *vb = &nvc0->vtxbuf[ve->vertex_buffer_index]; in nvc0_push_map_edgeflag() local 110 struct nv04_resource *buf = nv04_resource(vb in nvc0_push_map_edgeflag() [all...] |
H A D | nvc0_vbo.c | 176 struct pipe_vertex_buffer *vb = &nvc0->vtxbuf[ve->vertex_buffer_index]; in nvc0_set_constant_vertex_attrib() local 180 const void *src = (const uint8_t *)vb->buffer.user + ve->src_offset; in nvc0_set_constant_vertex_attrib() 181 assert(vb->is_user_buffer); in nvc0_set_constant_vertex_attrib() 241 struct pipe_vertex_buffer *vb = &nvc0->vtxbuf[b]; in nvc0_update_user_vbufs() local 256 address[b] = nouveau_scratch_data(&nvc0->base, vb->buffer.user, in nvc0_update_user_vbufs() 325 const struct pipe_vertex_buffer *vb; in nvc0_validate_vertex_buffers() local 334 vb = &nvc0->vtxbuf[b]; in nvc0_validate_vertex_buffers() 343 PUSH_DATA (push, (1 << 12) | vb->stride); in nvc0_validate_vertex_buffers() 348 res = nv04_resource(vb->buffer.resource); in nvc0_validate_vertex_buffers() 349 offset = ve->pipe.src_offset + vb in nvc0_validate_vertex_buffers() 390 struct pipe_vertex_buffer *vb = &nvc0->vtxbuf[b]; nvc0_validate_vertex_buffers_shared() local [all...] |
/third_party/mesa3d/src/gallium/drivers/asahi/ |
H A D | agx_uniforms.c | 75 struct pipe_vertex_buffer vb = ctx->vertex_buffers[i]; in agx_push_location_direct() local 76 assert(!vb.is_user_buffer); in agx_push_location_direct() 78 struct agx_bo *bo = agx_resource(vb.buffer.resource)->bo; in agx_push_location_direct() 81 addresses[i] = bo->ptr.gpu + vb.buffer_offset; in agx_push_location_direct()
|
/third_party/openssl/ohos_lite/include/openssl/ |
H A D | srp.h | 75 void SRP_VBASE_free(SRP_VBASE *vb); 76 int SRP_VBASE_init(SRP_VBASE *vb, char *verifier_file); 79 DEPRECATEDIN_1_1_0(SRP_user_pwd *SRP_VBASE_get_by_user(SRP_VBASE *vb, char *username)) 81 SRP_user_pwd *SRP_VBASE_get1_by_user(SRP_VBASE *vb, char *username);
|
/third_party/ffmpeg/libavformat/ |
H A D | nut.c | 275 const Syncpoint *va = a, *vb = b; in ff_nut_sp_pos_cmp() local 276 return ((va->pos - vb->pos) >> 32) - ((vb->pos - va->pos) >> 32); in ff_nut_sp_pos_cmp() 281 const Syncpoint *va = a, *vb = b; in ff_nut_sp_pts_cmp() local 282 return ((va->ts - vb->ts) >> 32) - ((vb->ts - va->ts) >> 32); in ff_nut_sp_pts_cmp()
|