/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/ |
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->consts = NULL; in nv30_vertprog_destroy() [all …]
|
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->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/ |
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, vn, hash(vn)); in array_index_calc() 196 if (vp && (vp->flag & (DEFINED | ASSOC | ARRAY)) == in array_index_calc() [all …]
|
D | expr.c | 121 v_evaluate(struct tbl *vp, const char *expr, volatile int error_ok, in v_evaluate() argument 161 vp->flag |= INT_U; in v_evaluate() 162 if (vp->flag & INTEGER) in v_evaluate() 163 setint_v(vp, v, es->arith); in v_evaluate() 166 setstr(vp, str_val(v), error_ok); in v_evaluate() 664 struct tbl *vp; in tempvar() local 668 vp = alloc(offsetof(struct tbl, name[0]) + vsize, ATEMP); in tempvar() 669 memcpy(vp->name, vname, vsize); in tempvar() 670 vp->flag = ISSET|INTEGER; in tempvar() 671 vp->type = 0; in tempvar() [all …]
|
/third_party/NuttX/fs/dirent/ |
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() 125 if (vp->vop != NULL && vp->vop->Opendir != NULL) in opendir() 127 ret = vp->vop->Opendir(vp, dir); in opendir() 139 dir->fd_root = vp; in opendir() 147 vp->useCount--; in opendir() 158 struct Vnode *vp = NULL; in do_opendir() local [all …]
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/ |
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->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 …]
|
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.attrs[0] |= 0xf; in nv50_vertprog_assign_slots() [all …]
|
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_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/ltp/tools/sparse/sparse-src/validation/backend/ |
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 = &fun; in global()
|
/third_party/NuttX/fs/tmpfs/ |
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->vop = dvp->vop; in tmpfs_create() [all …]
|
/third_party/mesa3d/src/gallium/drivers/r600/ |
D | r600_viewport.c | 75 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/mesa3d/src/gallium/auxiliary/util/ |
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/ltp/testcases/kernel/mem/shmt/ |
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() 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/gallium/drivers/radeonsi/ |
D | si_state_viewport.c | 170 const struct pipe_viewport_state *vp, in si_get_scissor_from_viewport() argument 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 323 vp.translate[0] = (vp_as_scissor.minx + vp_as_scissor.maxx) / 2.0; in si_emit_guardband() 324 vp.translate[1] = (vp_as_scissor.miny + vp_as_scissor.maxy) / 2.0; in si_emit_guardband() 325 vp.scale[0] = vp_as_scissor.maxx - vp.translate[0]; in si_emit_guardband() 326 vp.scale[1] = vp_as_scissor.maxy - vp.translate[1]; in si_emit_guardband() [all …]
|
/third_party/NuttX/fs/vfs/ |
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/drivers/nouveau/nvc0/ |
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->translate[1] - fabsf(vp->scale[1]))); in nvc0_validate_viewport() 418 w = util_iround(vp->translate[0] + fabsf(vp->scale[0])) - x; in nvc0_validate_viewport() [all …]
|
D | nvc0_program.c | 202 nvc0_vtgp_hdr_update_oread(struct nvc0_program *vp, uint8_t slot) in nvc0_vtgp_hdr_update_oread() argument 204 uint8_t min = (vp->hdr[4] >> 12) & 0xff; in nvc0_vtgp_hdr_update_oread() 205 uint8_t max = (vp->hdr[4] >> 24); in nvc0_vtgp_hdr_update_oread() 210 vp->hdr[4] = (max << 24) | (min << 12); in nvc0_vtgp_hdr_update_oread() 215 nvc0_vtgp_gen_header(struct nvc0_program *vp, struct nv50_ir_prog_info_out *info) in nvc0_vtgp_gen_header() argument 225 vp->hdr[5 + a / 32] |= 1 << (a % 32); in nvc0_vtgp_gen_header() 237 vp->hdr[13 + a / 32] |= 1 << (a % 32); in nvc0_vtgp_gen_header() 239 nvc0_vtgp_hdr_update_oread(vp, info->out[i].slot[c]); in nvc0_vtgp_gen_header() 246 vp->hdr[5] |= 1 << 24; in nvc0_vtgp_gen_header() 249 vp->hdr[10] |= 1 << 30; in nvc0_vtgp_gen_header() [all …]
|
/third_party/mesa3d/src/gallium/tests/graw/ |
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.swizzle_z = PIPE_VIEWPORT_SWIZZLE_POSITIVE_Z; in set_viewport() [all …]
|
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.swizzle_z = PIPE_VIEWPORT_SWIZZLE_POSITIVE_Z; in set_viewport() [all …]
|
D | tri-instanced.c | 89 struct pipe_viewport_state vp; in set_viewport() local 91 vp.scale[0] = half_width; in set_viewport() 92 vp.scale[1] = half_height; in set_viewport() 93 vp.scale[2] = half_depth; in set_viewport() 95 vp.translate[0] = half_width + x; in set_viewport() 96 vp.translate[1] = half_height + y; in set_viewport() 97 vp.translate[2] = half_depth + z; in set_viewport() 99 vp.swizzle_x = PIPE_VIEWPORT_SWIZZLE_POSITIVE_X; in set_viewport() 100 vp.swizzle_y = PIPE_VIEWPORT_SWIZZLE_POSITIVE_Y; in set_viewport() 101 vp.swizzle_z = PIPE_VIEWPORT_SWIZZLE_POSITIVE_Z; in set_viewport() [all …]
|
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.swizzle_z = PIPE_VIEWPORT_SWIZZLE_POSITIVE_Z; in graw_util_viewport() [all …]
|
/third_party/mesa3d/src/gallium/drivers/r300/compiler/ |
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, src), in t_src_scalar() [all …]
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/ |
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->constlen) | in fd3_program_emit() [all …]
|
/third_party/mesa3d/src/gallium/drivers/nouveau/ |
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.translated; in nv30_vp()
|
/third_party/mesa3d/src/mesa/state_tracker/ |
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->result_to_output)); in st_deserialise_nir_program()
|