Home
last modified time | relevance | path

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

12345678910>>...12

/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_vertprog.c37 nv30_vertprog_destroy(struct nv30_vertprog *vp) in nv30_vertprog_destroy() argument
39 util_dynarray_fini(&vp->branch_relocs); in nv30_vertprog_destroy()
40 nouveau_heap_free(&vp->exec); in nv30_vertprog_destroy()
41 FREE(vp->insns); in nv30_vertprog_destroy()
42 vp->insns = NULL; in nv30_vertprog_destroy()
43 vp->nr_insns = 0; in nv30_vertprog_destroy()
45 util_dynarray_fini(&vp->const_relocs); in nv30_vertprog_destroy()
46 nouveau_heap_free(&vp->data); in nv30_vertprog_destroy()
47 FREE(vp->consts); in nv30_vertprog_destroy()
48 vp->consts = NULL; in nv30_vertprog_destroy()
[all …]
Dnvfx_vertprog.c44 struct nv30_vertprog *vp; member
94 struct nv30_vertprog *vp = vpc->vp; in constant() local
99 for (idx = 0; idx < vp->nr_consts; idx++) { in constant()
100 if (vp->consts[idx].index == pipe) in constant()
105 idx = vp->nr_consts++; in constant()
106 vp->consts = realloc(vp->consts, sizeof(*vpd) * vp->nr_consts); in constant()
107 vpd = &vp->consts[idx]; in constant()
124 struct nv30_vertprog *vp = vpc->vp; in emit_src() local
136 vp->ir |= (1 << src.reg.index); in emit_src()
143 reloc.location = vp->nr_insns - 1; in emit_src()
[all …]
/third_party/mksh/
Dvar.c99 struct tbl *vp, **vpp = l->vars.tbls, *vq; in popblock() local
106 if ((vp = *vpp++) != NULL && (vp->flag&SPECIAL)) { in popblock()
107 if ((vq = global(vp->name))->flag & ISSET) in popblock()
155 register struct tbl *vp; in varsearch() local
159 if ((vp = ktsearch(&l->vars, vn, h)) != NULL) in varsearch()
166 vp = NULL; in varsearch()
168 *vpp = vp; in varsearch()
189 struct tbl *vp; in array_index_calc() local
194 varsearch(e->loc, &vp, vn, hash(vn)); in array_index_calc()
196 if (vp && (vp->flag & (DEFINED | ASSOC | ARRAY)) == in array_index_calc()
[all …]
/third_party/NuttX/fs/dirent/
Dfs_opendir.c83 struct Vnode *vp = NULL; in opendir() local
89 ret = VnodeLookup(path, &vp, 0); in opendir()
90 if (vp == NULL || ret != OK) in opendir()
95 if (vp->type != VNODE_TYPE_DIR) in opendir()
103 vp->useCount++; in opendir()
122 if (vp->vop != NULL && vp->vop->Opendir != NULL) in opendir()
124 ret = vp->vop->Opendir(vp, dir); in opendir()
136 dir->fd_root = vp; in opendir()
144 vp->useCount--; in opendir()
155 struct Vnode *vp = NULL; in do_opendir() local
[all …]
/third_party/gstreamer/gstplugins_bad/gst/rawparse/
Dgstvideoparse.c152 gst_video_parse_init (GstVideoParse * vp) in gst_video_parse_init() argument
157 vp->rawvideoparse = in gst_video_parse_init()
159 g_assert (vp->rawvideoparse != NULL); in gst_video_parse_init()
161 gst_bin_add (GST_BIN (vp), vp->rawvideoparse); in gst_video_parse_init()
163 inner_pad = gst_element_get_static_pad (vp->rawvideoparse, "sink"); in gst_video_parse_init()
166 gst_element_class_get_pad_template (GST_ELEMENT_GET_CLASS (vp), "sink")); in gst_video_parse_init()
167 gst_element_add_pad (GST_ELEMENT (vp), ghostpad); in gst_video_parse_init()
170 inner_pad = gst_element_get_static_pad (vp->rawvideoparse, "src"); in gst_video_parse_init()
173 gst_element_class_get_pad_template (GST_ELEMENT_GET_CLASS (vp), "src")); in gst_video_parse_init()
174 gst_element_add_pad (GST_ELEMENT (vp), ghostpad); in gst_video_parse_init()
[all …]
/third_party/mesa3d/src/mesa/drivers/dri/r200/
Dr200_vertprog.c104 static GLboolean r200VertexProgUpdateParams(struct gl_context *ctx, struct r200_vertex_program *vp) in r200VertexProgUpdateParams() argument
109 struct gl_program *mesa_vp = &vp->mesa_program; in r200VertexProgUpdateParams()
237 static void vp_dump_inputs(struct r200_vertex_program *vp, char *caller)
241 if(vp == NULL){
248 fprintf(stderr, "%d ", vp->inputs[i]);
254 static unsigned long t_src_index(struct r200_vertex_program *vp, struct prog_src_register *src) in t_src_index() argument
271 assert(vp->inputs[src->Index] != -1); in t_src_index()
272 return vp->inputs[src->Index]; in t_src_index()
282 static unsigned long t_src(struct r200_vertex_program *vp, struct prog_src_register *src) in t_src() argument
285 return MAKE_VSF_SOURCE(t_src_index(vp, src), in t_src()
[all …]
/third_party/f2fs-tools/tools/sg_write_buffer/
Dsg_pt_linux.c432 destruct_scsi_pt_obj(struct sg_pt_base * vp) in destruct_scsi_pt_obj() argument
434 struct sg_pt_linux_scsi * ptp = &vp->impl; in destruct_scsi_pt_obj()
447 clear_scsi_pt_obj(struct sg_pt_base * vp) in clear_scsi_pt_obj() argument
452 struct sg_pt_linux_scsi * ptp = &vp->impl; in clear_scsi_pt_obj()
482 set_pt_file_handle(struct sg_pt_base * vp, int dev_fd, int verbose) in set_pt_file_handle() argument
484 struct sg_pt_linux_scsi * ptp = &vp->impl; in set_pt_file_handle()
510 get_pt_file_handle(const struct sg_pt_base * vp) in get_pt_file_handle() argument
512 const struct sg_pt_linux_scsi * ptp = &vp->impl; in get_pt_file_handle()
518 set_scsi_pt_cdb(struct sg_pt_base * vp, const unsigned char * cdb, in set_scsi_pt_cdb() argument
521 struct sg_pt_linux_scsi * ptp = &vp->impl; in set_scsi_pt_cdb()
[all …]
/third_party/mesa3d/src/mesa/tnl/
Dt_vertex_generic.c53 const GLfloat * const vp = a->vp; in insert_4f_viewport_4() local
55 out[0] = vp[0] * in[0] + vp[12]; in insert_4f_viewport_4()
56 out[1] = vp[5] * in[1] + vp[13]; in insert_4f_viewport_4()
57 out[2] = vp[10] * in[2] + vp[14]; in insert_4f_viewport_4()
65 const GLfloat * const vp = a->vp; in insert_4f_viewport_3() local
67 out[0] = vp[0] * in[0] + vp[12]; in insert_4f_viewport_3()
68 out[1] = vp[5] * in[1] + vp[13]; in insert_4f_viewport_3()
69 out[2] = vp[10] * in[2] + vp[14]; in insert_4f_viewport_3()
77 const GLfloat * const vp = a->vp; in insert_4f_viewport_2() local
79 out[0] = vp[0] * in[0] + vp[12]; in insert_4f_viewport_2()
[all …]
/third_party/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_vs.c112 struct brw_program *vp, in brw_codegen_vs_prog() argument
127 if (vp->program.info.is_arb_asm) in brw_codegen_vs_prog()
132 nir_shader *nir = nir_shader_clone(mem_ctx, vp->program.nir); in brw_codegen_vs_prog()
134 brw_assign_common_binding_table_offsets(devinfo, &vp->program, in brw_codegen_vs_prog()
137 if (!vp->program.info.is_arb_asm) { in brw_codegen_vs_prog()
138 brw_nir_setup_glsl_uniforms(mem_ctx, nir, &vp->program, in brw_codegen_vs_prog()
146 brw_nir_setup_arb_uniforms(mem_ctx, nir, &vp->program, in brw_codegen_vs_prog()
166 _mesa_fprint_program_opt(stderr, &vp->program, PROG_PRINT_DEBUG, true); in brw_codegen_vs_prog()
176 if (vp->program.info.is_arb_asm) in brw_codegen_vs_prog()
177 brw_dump_arb_asm("vertex", &vp->program); in brw_codegen_vs_prog()
[all …]
/third_party/ltp/tools/sparse/sparse-src/validation/backend/
Ddegenerate-ptr.c33 void *vp; in local() local
39 vp = array; in local()
40 vp = matrix; in local()
42 vp = fun; in local()
43 vp = &fun; in local()
51 extern void *vp;
60 vp = array; in global()
61 vp = matrix; in global()
63 vp = fun; in global()
64 vp = &fun; in global()
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_shader_state.c158 struct nv50_program *vp = nv50->vertprog; in nv50_vertprog_validate() local
160 if (!nv50_program_validate(nv50, vp)) in nv50_vertprog_validate()
162 nv50_program_update_context_state(nv50, vp, 0); in nv50_vertprog_validate()
165 PUSH_DATA (push, vp->vp.attrs[0]); in nv50_vertprog_validate()
166 PUSH_DATA (push, vp->vp.attrs[1]); in nv50_vertprog_validate()
168 PUSH_DATA (push, vp->max_out); in nv50_vertprog_validate()
170 PUSH_DATA (push, vp->max_gpr); in nv50_vertprog_validate()
172 PUSH_DATA (push, vp->code_base); in nv50_vertprog_validate()
428 struct nv50_program *vp = nv50->gmtyprog ? nv50->gmtyprog : nv50->vertprog; in nv50_fp_linkage_validate() local
438 uint32_t clpd_nr = util_last_bit(vp->vp.clip_enable | vp->vp.cull_enable); in nv50_fp_linkage_validate()
[all …]
Dnv50_program.c54 prog->vp.attrs[(4 * i) / 32] |= info->in[i].mask << ((4 * i) % 32); in nv50_vertprog_assign_slots()
61 prog->vp.attrs[2] |= NV50_3D_VP_GP_BUILTIN_ATTR_EN_PRIMITIVE_ID; in nv50_vertprog_assign_slots()
68 prog->vp.attrs[2] |= NV50_3D_VP_GP_BUILTIN_ATTR_EN_INSTANCE_ID; in nv50_vertprog_assign_slots()
71 prog->vp.attrs[2] |= NV50_3D_VP_GP_BUILTIN_ATTR_EN_VERTEX_ID; in nv50_vertprog_assign_slots()
72 prog->vp.attrs[2] |= NV50_3D_VP_GP_BUILTIN_ATTR_EN_VERTEX_ID_DRAW_ARRAYS_ADD_START; in nv50_vertprog_assign_slots()
84 if (prog->vp.attrs[0] == 0 && in nv50_vertprog_assign_slots()
85 prog->vp.attrs[1] == 0 && in nv50_vertprog_assign_slots()
86 prog->vp.attrs[2] == 0) in nv50_vertprog_assign_slots()
87 prog->vp.attrs[0] |= 0xf; in nv50_vertprog_assign_slots()
99 prog->vp.psiz = i; in nv50_vertprog_assign_slots()
[all …]
Dnv50_state_validate.c206 struct pipe_viewport_state *vp = &nv50->viewports[i]; in nv50_validate_scissor() local
224 minx = MAX2(minx, (int)(vp->translate[0] - fabsf(vp->scale[0]))); in nv50_validate_scissor()
225 maxx = MIN2(maxx, (int)(vp->translate[0] + fabsf(vp->scale[0]))); in nv50_validate_scissor()
226 miny = MAX2(miny, (int)(vp->translate[1] - fabsf(vp->scale[1]))); in nv50_validate_scissor()
227 maxy = MIN2(maxy, (int)(vp->translate[1] + fabsf(vp->scale[1]))); in nv50_validate_scissor()
314 struct nv50_program *vp, uint8_t mask) in nv50_check_program_ucps() argument
318 if (vp->vp.clpd_nr >= n) in nv50_check_program_ucps()
320 nv50_program_destroy(nv50, vp); in nv50_check_program_ucps()
322 vp->vp.clpd_nr = n; in nv50_check_program_ucps()
323 if (likely(vp == nv50->vertprog)) { in nv50_check_program_ucps()
[all …]
/third_party/mesa3d/src/gallium/auxiliary/util/
Du_viewport.h39 util_viewport_zmin_zmax(const struct pipe_viewport_state *vp, bool halfz, in util_viewport_zmin_zmax() argument
44 a = vp->translate[2]; in util_viewport_zmin_zmax()
45 b = vp->translate[2] + vp->scale[2]; in util_viewport_zmin_zmax()
47 a = vp->translate[2] - vp->scale[2]; in util_viewport_zmin_zmax()
48 b = vp->translate[2] + vp->scale[2]; in util_viewport_zmin_zmax()
/third_party/weston/tests/
Dviewporter-test.c51 set_source(struct wp_viewport *vp, int x, int y, int w, int h) in set_source() argument
53 wp_viewport_set_source(vp, wl_fixed_from_int(x), wl_fixed_from_int(y), in set_source()
92 struct wp_viewport *vp; in TEST_P() local
96 vp = client_create_viewport(client); in TEST_P()
100 set_source(vp, args->x, args->y, args->w, args->h); in TEST_P()
109 struct wp_viewport *vp; in TEST() local
113 vp = client_create_viewport(client); in TEST()
114 set_source(vp, -1, -1, -1, -1); in TEST()
137 struct wp_viewport *vp; in TEST_P() local
141 vp = client_create_viewport(client); in TEST_P()
[all …]
/third_party/NuttX/fs/vfs/
Dfs_stat.c54 struct Vnode *vp = NULL; in stat() local
73 ret = VnodeLookup(path, &vp, 0); in stat()
84 if (vp->vop != NULL && vp->vop->Getattr != NULL) in stat()
86 vp->useCount++; in stat()
88 ret = vp->vop->Getattr(vp, buf); in stat()
90 vp->useCount--; in stat()
/third_party/boost/boost/context/
Dfixedsize_stack.hpp52 … void * vp = ::mmap( 0, size_, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON | MAP_STACK, -1, 0); in allocate() local
53 if ( vp == MAP_FAILED) { in allocate()
57 void * vp = std::malloc( size_); in allocate()
58 if ( ! vp) { in allocate()
64 sctx.sp = static_cast< char * >( vp) + sctx.size; in allocate()
66 sctx.valgrind_stack_id = VALGRIND_STACK_REGISTER( sctx.sp, vp); in allocate()
77 void * vp = static_cast< char * >( sctx.sp) - sctx.size; in deallocate() local
79 ::munmap( vp, sctx.size); in deallocate()
81 std::free( vp); in deallocate()
/third_party/ltp/testcases/kernel/mem/shmt/
Dshmt09.c74 void *vp; in main() local
122 vp = (void *)((char *)sbrk(0) - 2 * K_1); in main()
123 c2 = shmat(shmid, vp, 0); in main()
127 "att_addr = %p", shmid, c2, vp); in main()
143 vp = (void *)((char *)sbrk(0) + 256 * K_1); in main()
145 vp = (void *)((char *)sbrk(0) + getpagesize()); in main()
148 vp = (void *)SHMALIGN((char *)sbrk(0) + 1); in main()
151 c3 = shmat(shmid, vp, SHM_RND); in main()
165 while ((vp = sbrk(INCREMENT)) != (void *)-1) ; in main()
172 if ((vp = sbrk(INCREMENT)) != (void *)-1) { in main()
[all …]
/third_party/mesa3d/src/mesa/drivers/dri/nouveau/
Dnouveau_util.h146 struct gl_viewport_attrib *vp = &ctx->ViewportArray[0]; in get_viewport_scale() local
149 a[MAT_SX] = (float)vp->Width / 2; in get_viewport_scale()
152 a[MAT_SY] = (float)vp->Height / 2; in get_viewport_scale()
155 a[MAT_SY] = - (float)vp->Height / 2; in get_viewport_scale()
157 a[MAT_SZ] = fb->_DepthMaxF * (vp->Far - vp->Near) / 2; in get_viewport_scale()
163 struct gl_viewport_attrib *vp = &ctx->ViewportArray[0]; in get_viewport_translate() local
166 a[0] = (float)vp->Width / 2 + vp->X; in get_viewport_translate()
169 a[1] = (float)vp->Height / 2 + vp->Y; in get_viewport_translate()
172 a[1] = fb->Height - (float)vp->Height / 2 - vp->Y; in get_viewport_translate()
174 a[2] = fb->_DepthMaxF * (vp->Far + vp->Near) / 2; in get_viewport_translate()
/third_party/NuttX/fs/tmpfs/
Dfs_tmpfs.c116 int tmpfs_rewinddir(struct Vnode *vp, struct fs_dirent_s *dir);
117 int tmpfs_truncate(struct Vnode *vp, off_t len);
126 int tmpfs_stat(struct Vnode *vp, struct stat *st);
127 int tmpfs_opendir(struct Vnode *vp, struct fs_dirent_s *dir);
128 int tmpfs_readdir(struct Vnode *vp, struct fs_dirent_s *dir);
134 int tmpfs_reclaim(struct Vnode *vp);
1167 struct Vnode *vp = NULL; in tmpfs_create() local
1197 ret = VnodeAlloc(&tmpfs_vops, &vp); in tmpfs_create()
1203 vp->parent = dvp; in tmpfs_create()
1204 vp->vop = dvp->vop; in tmpfs_create()
[all …]
/third_party/mesa3d/src/gallium/drivers/r600/
Dr600_viewport.c75 const struct pipe_viewport_state *vp, in r600_get_scissor_from_viewport() argument
81 minx = -vp->scale[0] + vp->translate[0]; in r600_get_scissor_from_viewport()
82 miny = -vp->scale[1] + vp->translate[1]; in r600_get_scissor_from_viewport()
83 maxx = vp->scale[0] + vp->translate[0]; in r600_get_scissor_from_viewport()
84 maxy = vp->scale[1] + vp->translate[1]; in r600_get_scissor_from_viewport()
189 struct pipe_viewport_state vp; in r600_emit_guardband() local
193 vp.translate[0] = (vp_as_scissor->minx + vp_as_scissor->maxx) / 2.0; in r600_emit_guardband()
194 vp.translate[1] = (vp_as_scissor->miny + vp_as_scissor->maxy) / 2.0; in r600_emit_guardband()
195 vp.scale[0] = vp_as_scissor->maxx - vp.translate[0]; in r600_emit_guardband()
196 vp.scale[1] = vp_as_scissor->maxy - vp.translate[1]; in r600_emit_guardband()
[all …]
/third_party/boost/boost/context/posix/
Dprotected_fixedsize_stack.hpp62 … void * vp = ::mmap( 0, size__, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON | MAP_STACK, -1, 0); in allocate() local
64 void * vp = ::mmap( 0, size__, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in allocate() local
66 void * vp = ::mmap( 0, size__, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in allocate() local
68 if ( MAP_FAILED == vp) throw std::bad_alloc(); in allocate()
71 const int result( ::mprotect( vp, traits_type::page_size(), PROT_NONE) ); in allocate()
77 sctx.sp = static_cast< char * >( vp) + sctx.size; in allocate()
79 sctx.valgrind_stack_id = VALGRIND_STACK_REGISTER( sctx.sp, vp); in allocate()
91 void * vp = static_cast< char * >( sctx.sp) - sctx.size; in deallocate() local
93 ::munmap( vp, sctx.size); in deallocate()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state_viewport.c146 const struct pipe_viewport_state *vp, in si_get_scissor_from_viewport() argument
152 minx = -vp->scale[0] + vp->translate[0]; in si_get_scissor_from_viewport()
153 miny = -vp->scale[1] + vp->translate[1]; in si_get_scissor_from_viewport()
154 maxx = vp->scale[0] + vp->translate[0]; in si_get_scissor_from_viewport()
155 maxy = vp->scale[1] + vp->translate[1]; in si_get_scissor_from_viewport()
242 struct pipe_viewport_state vp; in si_emit_guardband() local
298 vp.translate[0] = (vp_as_scissor.minx + vp_as_scissor.maxx) / 2.0; in si_emit_guardband()
299 vp.translate[1] = (vp_as_scissor.miny + vp_as_scissor.maxy) / 2.0; in si_emit_guardband()
300 vp.scale[0] = vp_as_scissor.maxx - vp.translate[0]; in si_emit_guardband()
301 vp.scale[1] = vp_as_scissor.maxy - vp.translate[1]; in si_emit_guardband()
[all …]
/third_party/mesa3d/src/gallium/tests/graw/
Dshader-leak.c59 struct pipe_viewport_state vp; in set_viewport() local
61 vp.scale[0] = half_width; in set_viewport()
62 vp.scale[1] = half_height; in set_viewport()
63 vp.scale[2] = half_depth; in set_viewport()
65 vp.translate[0] = half_width + x; in set_viewport()
66 vp.translate[1] = half_height + y; in set_viewport()
67 vp.translate[2] = half_depth + z; in set_viewport()
69 vp.swizzle_x = PIPE_VIEWPORT_SWIZZLE_POSITIVE_X; in set_viewport()
70 vp.swizzle_y = PIPE_VIEWPORT_SWIZZLE_POSITIVE_Y; in set_viewport()
71 vp.swizzle_z = PIPE_VIEWPORT_SWIZZLE_POSITIVE_Z; in set_viewport()
[all …]
Dtri-gs.c60 struct pipe_viewport_state vp; in set_viewport() local
62 vp.scale[0] = half_width; in set_viewport()
63 vp.scale[1] = half_height; in set_viewport()
64 vp.scale[2] = half_depth; in set_viewport()
66 vp.translate[0] = half_width + x; in set_viewport()
67 vp.translate[1] = half_height + y; in set_viewport()
68 vp.translate[2] = half_depth + z; in set_viewport()
70 vp.swizzle_x = PIPE_VIEWPORT_SWIZZLE_POSITIVE_X; in set_viewport()
71 vp.swizzle_y = PIPE_VIEWPORT_SWIZZLE_POSITIVE_Y; in set_viewport()
72 vp.swizzle_z = PIPE_VIEWPORT_SWIZZLE_POSITIVE_Z; in set_viewport()
[all …]

12345678910>>...12