/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/ |
H A D | nv30_vertprog.c | 38 nv30_vertprog_destroy(struct nv30_vertprog *vp) in nv30_vertprog_destroy() argument 40 util_dynarray_fini(&vp->branch_relocs); in nv30_vertprog_destroy() 41 nouveau_heap_free(&vp->exec); in nv30_vertprog_destroy() 42 FREE(vp->insns); in nv30_vertprog_destroy() 43 vp->insns = NULL; in nv30_vertprog_destroy() 44 vp->nr_insns = 0; in nv30_vertprog_destroy() 46 util_dynarray_fini(&vp->const_relocs); in nv30_vertprog_destroy() 47 nouveau_heap_free(&vp->data); in nv30_vertprog_destroy() 48 FREE(vp->consts); in nv30_vertprog_destroy() 49 vp in nv30_vertprog_destroy() 60 struct nv30_vertprog *vp = nv30->vertprog.program; nv30_vertprog_validate() local 226 struct nv30_vertprog *vp = CALLOC_STRUCT(nv30_vertprog); nv30_vp_state_create() local 245 struct nv30_vertprog *vp = hwcso; nv30_vp_state_delete() local [all...] |
H A D | nvfx_vertprog.c | 44 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 in constant() 124 struct nv30_vertprog *vp = vpc->vp; emit_src() local 208 struct nv30_vertprog *vp = vpc->vp; emit_dst() local 297 struct nv30_vertprog *vp = vpc->vp; nvfx_vp_emit() local 958 _nvfx_vertprog_translate(uint16_t oclass, struct nv30_vertprog *vp) _nvfx_vertprog_translate() argument [all...] |
/third_party/mksh/ |
H A D | var.c | 99 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, v in array_index_calc() 245 struct tbl *vp; isglobal() local 337 struct tbl *vp; local() local 385 str_val(struct tbl *vp) str_val() argument 528 getint(struct tbl *vp, mksh_ari_u *nump, bool arith) getint() argument 626 setint_v(struct tbl *vq, struct tbl *vp, bool arith) setint_v() argument 658 formatstr(struct tbl *vp, const char *s) formatstr() argument 741 exportprep(struct tbl *vp, const char *val, size_t cursz) exportprep() argument 770 struct tbl *vp; vtypeset() local 1065 unset(struct tbl *vp, int flags) unset() argument 1174 struct tbl *vp, **vpp; makenv() local 1250 getspec(struct tbl *vp) getspec() argument 1326 setspec(struct tbl *vp) setspec() argument 1477 unsetspec(struct tbl *vp, bool dounset) unsetspec() argument 1549 arraysearch(struct tbl *vp, uint32_t val) arraysearch() argument 1634 struct tbl *vp, *vq; set_array() local 1857 struct tbl *vp; record_match() local 1869 struct tbl *vp, **p; c_typeset() local 2129 struct tbl **blockvars, *vp; c_typeset_vardump_recursive() local 2140 c_typeset_vardump(struct tbl *vp, uint32_t flag, int thing, int any_set, bool pflag, bool istset) c_typeset_vardump() argument [all...] |
/third_party/NuttX/fs/dirent/ |
H A D | fs_opendir.c | 86 struct Vnode *vp = NULL; in opendir() local 92 ret = VnodeLookup(path, &vp, 0); in opendir() 93 if (vp == NULL || ret != OK) in opendir() 98 if (vp->type != VNODE_TYPE_DIR) in opendir() 106 vp->useCount++; in opendir() 109 /* Allocate a type DIR -- which is little more than an vp container. */ in opendir() 120 * vp or a file system mountpoint. in opendir() 125 if (vp->vop != NULL && vp->vop->Opendir != NULL) in opendir() 127 ret = vp in opendir() 158 struct Vnode *vp = NULL; do_opendir() local [all...] |
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/ |
H A D | nv50_shader_state.c | 158 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 in nv50_vertprog_validate() 428 struct nv50_program *vp = nv50->gmtyprog ? nv50->gmtyprog : nv50->vertprog; nv50_fp_linkage_validate() local 603 nv50_vp_gp_mapping(uint8_t *map, int m, struct nv50_program *vp, struct nv50_program *gp) nv50_vp_gp_mapping() argument 638 struct nv50_program *vp = nv50->vertprog; nv50_gp_linkage_validate() local [all...] |
H A D | nv50_program.c | 54 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() 75 prog->vp.attrs[2] |= NV50_3D_VP_GP_BUILTIN_ATTR_EN_PRIMITIVE_ID; in nv50_vertprog_assign_slots() 87 if (prog->vp.attrs[0] == 0 && in nv50_vertprog_assign_slots() 88 prog->vp.attrs[1] == 0 && in nv50_vertprog_assign_slots() 89 prog->vp.attrs[2] == 0) in nv50_vertprog_assign_slots() 90 prog->vp in nv50_vertprog_assign_slots() [all...] |
H A D | nv50_state_validate.c | 206 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_ in nv50_check_program_ucps() 313 nv50_check_program_ucps(struct nv50_context *nv50, struct nv50_program *vp, uint8_t mask) nv50_check_program_ucps() argument 354 struct nv50_program *vp; nv50_validate_clip() local [all...] |
/third_party/ltp/tools/sparse/sparse-src/validation/backend/ |
H A D | degenerate-ptr.c | 33 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 in global() [all...] |
/third_party/mesa3d/src/gallium/drivers/r600/ |
H A D | r600_viewport.c | 75 const struct pipe_viewport_state *vp, in r600_get_scissor_from_viewport() 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 74 r600_get_scissor_from_viewport(struct r600_common_context *rctx, const struct pipe_viewport_state *vp, struct r600_signed_scissor *scissor) r600_get_scissor_from_viewport() argument 247 struct r600_signed_scissor *vp = &rctx->viewports.as_scissor[0]; r600_emit_scissors() local [all...] |
/third_party/NuttX/fs/vfs/ |
H A D | fs_stat.c | 54 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/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_viewport.h | 38 util_viewport_zmin_zmax(const struct pipe_viewport_state *vp, bool halfz, in util_viewport_zmin_zmax() argument 43 a = vp->translate[2]; in util_viewport_zmin_zmax() 44 b = vp->translate[2] + vp->scale[2]; in util_viewport_zmin_zmax() 46 a = vp->translate[2] - vp->scale[2]; in util_viewport_zmin_zmax() 47 b = vp->translate[2] + vp->scale[2]; in util_viewport_zmin_zmax()
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
H A D | si_state_viewport.c | 170 const struct pipe_viewport_state *vp, in si_get_scissor_from_viewport() 176 minx = -vp->scale[0] + vp->translate[0]; in si_get_scissor_from_viewport() 177 miny = -vp->scale[1] + vp->translate[1]; in si_get_scissor_from_viewport() 178 maxx = vp->scale[0] + vp->translate[0]; in si_get_scissor_from_viewport() 179 maxy = vp->scale[1] + vp->translate[1]; in si_get_scissor_from_viewport() 266 struct pipe_viewport_state vp; in si_emit_guardband() local 169 si_get_scissor_from_viewport(struct si_context *ctx, const struct pipe_viewport_state *vp, struct si_signed_scissor *scissor) si_get_scissor_from_viewport() argument 407 struct si_signed_scissor *vp = &ctx->viewports.as_scissor[0]; si_emit_scissors() local 535 si_viewport_zmin_zmax(const struct pipe_viewport_state *vp, bool halfz, bool window_space_position, float *zmin, float *zmax) si_viewport_zmin_zmax() argument [all...] |
/third_party/ltp/testcases/kernel/mem/shmt/ |
H A D | shmt09.c | 74 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() 147 /* SHM_RND rounds vp on the nearest multiple of SHMLBA */ in main() 148 vp = (void *)SHMALIGN((char *)sbrk(0) + 1); in main() 151 c3 = shmat(shmid, vp, SHM_RND); in main() 165 while ((vp in main() [all...] |
/third_party/NuttX/fs/tmpfs/ |
H A D | fs_tmpfs.c | 117 int tmpfs_rewinddir(struct Vnode *vp, struct fs_dirent_s *dir); 118 int tmpfs_truncate(struct Vnode *vp, off_t len); 127 int tmpfs_stat(struct Vnode *vp, struct stat *st); 128 int tmpfs_opendir(struct Vnode *vp, struct fs_dirent_s *dir); 129 int tmpfs_readdir(struct Vnode *vp, struct fs_dirent_s *dir); 135 int tmpfs_reclaim(struct Vnode *vp); 1168 struct Vnode *vp = NULL; in tmpfs_create() local 1198 ret = VnodeAlloc(&tmpfs_vops, &vp); in tmpfs_create() 1204 vp->parent = dvp; in tmpfs_create() 1205 vp in tmpfs_create() 1418 tmpfs_opendir(struct Vnode *vp, struct fs_dirent_s *dir) tmpfs_opendir() argument 1482 tmpfs_closedir(struct Vnode *vp, struct fs_dirent_s *dir) tmpfs_closedir() argument 1536 tmpfs_readdir(struct Vnode *vp, struct fs_dirent_s *dir) tmpfs_readdir() argument 1634 tmpfs_rewinddir(struct Vnode *vp, struct fs_dirent_s *dir) tmpfs_rewinddir() argument 1647 tmpfs_truncate(struct Vnode *vp, off_t len) tmpfs_truncate() argument 1671 struct Vnode *vp = NULL; tmpfs_mount() local 1793 struct Vnode *vp = NULL; tmpfs_lookup() local 1883 tmpfs_reclaim(struct Vnode *vp) tmpfs_reclaim() argument 2034 struct Vnode *vp = NULL; tmpfs_mkdir() local 2473 tmpfs_stat(struct Vnode *vp, struct stat *st) tmpfs_stat() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/ |
H A D | nvc0_state_validate.c | 399 struct pipe_viewport_state *vp = &nvc0->viewports[i]; in nvc0_validate_viewport() local 405 PUSH_DATAf(push, vp->translate[0]); in nvc0_validate_viewport() 406 PUSH_DATAf(push, vp->translate[1]); in nvc0_validate_viewport() 407 PUSH_DATAf(push, vp->translate[2]); in nvc0_validate_viewport() 410 PUSH_DATAf(push, vp->scale[0]); in nvc0_validate_viewport() 411 PUSH_DATAf(push, vp->scale[1]); in nvc0_validate_viewport() 412 PUSH_DATAf(push, vp->scale[2]); in nvc0_validate_viewport() 416 x = util_iround(MAX2(0.0f, vp->translate[0] - fabsf(vp->scale[0]))); in nvc0_validate_viewport() 417 y = util_iround(MAX2(0.0f, vp in nvc0_validate_viewport() 487 nvc0_check_program_ucps(struct nvc0_context *nvc0, struct nvc0_program *vp, uint8_t mask) nvc0_check_program_ucps() argument 510 struct nvc0_program *vp; nvc0_validate_clip() local [all...] |
/third_party/mesa3d/src/gallium/tests/graw/ |
H A D | tri-gs.c | 60 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 in set_viewport() [all...] |
H A D | shader-leak.c | 59 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 in set_viewport() [all...] |
H A D | graw_util.h | 194 struct pipe_viewport_state vp; in graw_util_viewport() local 196 vp.scale[0] = half_width; in graw_util_viewport() 197 vp.scale[1] = half_height; in graw_util_viewport() 198 vp.scale[2] = half_depth; in graw_util_viewport() 200 vp.translate[0] = half_width + x; in graw_util_viewport() 201 vp.translate[1] = half_height + y; in graw_util_viewport() 202 vp.translate[2] = half_depth + z; in graw_util_viewport() 204 vp.swizzle_x = PIPE_VIEWPORT_SWIZZLE_POSITIVE_X; in graw_util_viewport() 205 vp.swizzle_y = PIPE_VIEWPORT_SWIZZLE_POSITIVE_Y; in graw_util_viewport() 206 vp in graw_util_viewport() [all...] |
H A D | quad-sample.c | 69 struct pipe_viewport_state vp; in set_viewport() local 71 vp.scale[0] = half_width; in set_viewport() 72 vp.scale[1] = half_height; in set_viewport() 73 vp.scale[2] = half_depth; in set_viewport() 75 vp.translate[0] = half_width + x; in set_viewport() 76 vp.translate[1] = half_height + y; in set_viewport() 77 vp.translate[2] = half_depth + z; in set_viewport() 79 vp.swizzle_x = PIPE_VIEWPORT_SWIZZLE_POSITIVE_X; in set_viewport() 80 vp.swizzle_y = PIPE_VIEWPORT_SWIZZLE_POSITIVE_Y; in set_viewport() 81 vp in set_viewport() [all...] |
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/ |
H A D | fd3_program.c | 97 const struct ir3_shader_variant *vp, *fp; in fd3_program_emit() local 109 vp = fd3_emit_get_vp(emit); in fd3_program_emit() 112 vsi = &vp->info; in fd3_program_emit() 118 vpbuffersz = vp->instrlen; in fd3_program_emit() 156 constmode = ((vp->constlen + fp->constlen) > 256) ? 1 : 0; in fd3_program_emit() 158 pos_regid = ir3_find_output_regid(vp, VARYING_SLOT_POS); in fd3_program_emit() 160 psize_regid = ir3_find_output_regid(vp, VARYING_SLOT_PSIZ); in fd3_program_emit() 216 OUT_RING(ring, A3XX_HLSQ_VS_CONTROL_REG_CONSTLENGTH(vp->constlen) | in fd3_program_emit() 230 OUT_RING(ring, A3XX_SP_VS_LENGTH_REG_SHADERLENGTH(vp->instrlen)); in fd3_program_emit() 243 A3XX_SP_VS_CTRL_REG1_CONSTLENGTH(vp in fd3_program_emit() [all...] |
/third_party/NuttX/fs/driver/ |
H A D | fs_registerblockdriver.c | 66 struct Vnode *vp = NULL; in register_blockdriver() local 87 ret = VnodeLookup(path, &vp, V_CREATE | V_DUMMY); in register_blockdriver() 92 vp->type = VNODE_TYPE_BLK; in register_blockdriver() 93 vp->data = data; in register_blockdriver() 94 vp->mode = mode; in register_blockdriver()
|
H A D | fs_findblockdriver.c | 61 struct Vnode *vp = NULL; in find_blockdriver() local 67 ret = VnodeLookup(pathname, &vp, V_DUMMY); in find_blockdriver() 75 if (vp->type != VNODE_TYPE_BLK) in find_blockdriver() 84 struct block_operations *i_bops = (struct block_operations *)((struct drv_data *)vp->data)->ops; in find_blockdriver() 93 *vpp = vp; in find_blockdriver()
|
/third_party/mesa3d/src/mesa/state_tracker/ |
H A D | st_shader_cache.c | 84 struct gl_vertex_program *vp = (struct gl_vertex_program *)prog; in st_serialise_nir_program() local 86 blob_write_uint32(&blob, vp->num_inputs); in st_serialise_nir_program() 87 blob_write_uint32(&blob, vp->vert_attrib_mask); in st_serialise_nir_program() 88 blob_write_bytes(&blob, vp->result_to_output, in st_serialise_nir_program() 89 sizeof(vp->result_to_output)); in st_serialise_nir_program() 165 struct gl_vertex_program *vp = (struct gl_vertex_program *)prog; in st_deserialise_nir_program() local 166 vp->num_inputs = blob_read_uint32(&blob_reader); in st_deserialise_nir_program() 167 vp->vert_attrib_mask = blob_read_uint32(&blob_reader); in st_deserialise_nir_program() 168 blob_copy_bytes(&blob_reader, (uint8_t *) vp->result_to_output, in st_deserialise_nir_program() 169 sizeof(vp in st_deserialise_nir_program() [all...] |
/third_party/mesa3d/src/gallium/drivers/nouveau/ |
H A D | nouveau_compiler.c | 53 struct nv30_vertprog vp; in nv30_vp() local 54 memset(&vp, 0, sizeof(vp)); in nv30_vp() 56 vp.pipe.tokens = tokens; in nv30_vp() 57 tgsi_scan_shader(vp.pipe.tokens, &vp.info); in nv30_vp() 58 _nvfx_vertprog_translate(chipset >= 0x40 ? 0x4097 : 0x3097, &vp); in nv30_vp() 59 *size = vp.nr_insns * 16; in nv30_vp() 60 *code = (unsigned *)vp.insns; in nv30_vp() 61 return !vp in nv30_vp() [all...] |
/third_party/mesa3d/src/gallium/drivers/r300/compiler/ |
H A D | r3xx_vertprog.c | 45 (PVS_SRC_OPERAND(t_src_index(vp, &vpi->SrcReg[x]), \ 75 static unsigned long t_dst_index(struct r300_vertex_program_code *vp, in t_dst_index() argument 79 return vp->outputs[dst->Index]; in t_dst_index() 124 static unsigned long t_src_index(struct r300_vertex_program_code *vp, in t_src_index() argument 128 assert(vp->inputs[src->Index] != -1); in t_src_index() 129 return vp->inputs[src->Index]; in t_src_index() 142 static unsigned long t_src(struct r300_vertex_program_code *vp, in t_src() argument 148 return PVS_SRC_OPERAND(t_src_index(vp, src), in t_src() 158 static unsigned long t_src_scalar(struct r300_vertex_program_code *vp, in t_src_scalar() argument 166 return PVS_SRC_OPERAND(t_src_index(vp, sr in t_src_scalar() 176 valid_dst(struct r300_vertex_program_code *vp, struct rc_dst_register *dst) valid_dst() argument 188 ei_vector1(struct r300_vertex_program_code *vp, unsigned int hw_opcode, struct rc_sub_instruction *vpi, unsigned int * inst) ei_vector1() argument 205 ei_vector2(struct r300_vertex_program_code *vp, unsigned int hw_opcode, struct rc_sub_instruction *vpi, unsigned int * inst) ei_vector2() argument 222 ei_math1(struct r300_vertex_program_code *vp, unsigned int hw_opcode, struct rc_sub_instruction *vpi, unsigned int * inst) ei_math1() argument 239 ei_lit(struct r300_vertex_program_code *vp, struct rc_sub_instruction *vpi, unsigned int * inst) ei_lit() argument 276 ei_mad(struct r300_vertex_program_code *vp, struct rc_sub_instruction *vpi, unsigned int * inst) ei_mad() argument 351 ei_pow(struct r300_vertex_program_code *vp, struct rc_sub_instruction *vpi, unsigned int * inst) ei_pow() argument [all...] |