• Home
  • Raw
  • Download

Lines Matching refs:vt

42 void printVarType(FILE *f, const VarType *vt) {  in printVarType()  argument
44 if (vt->isConst) { in printVarType()
48 switch (vt->type) { in printVarType()
53 fprintf(f, "int%i_t", vt->bits); in printVarType()
56 fprintf(f, "uint%i_t", vt->bits); in printVarType()
59 if (vt->bits == 32) in printVarType()
65 fprintf(f, "%s", vt->typeName); in printVarType()
69 if (vt->ptrLevel) { in printVarType()
71 for (ct=0; ct < vt->ptrLevel; ct++) { in printVarType()
77 void printVarTypeAndName(FILE *f, const VarType *vt) { in printVarTypeAndName() argument
78 printVarType(f, vt); in printVarTypeAndName()
80 if (vt->name[0]) { in printVarTypeAndName()
81 fprintf(f, " %s", vt->name); in printVarTypeAndName()
175 const VarType *vt = &api->params[ct]; in hasInlineDataPointers() local
177 if (!vt->isConst && vt->ptrLevel) { in hasInlineDataPointers()
181 if (vt->ptrLevel > 1) { in hasInlineDataPointers()
186 if (vt->isConst && vt->ptrLevel) { in hasInlineDataPointers()
229 const VarType *vt = &api->params[ct2]; in printApiCpp() local
233 fprintf(f, "%s", vt->name); in printApiCpp()
243 const VarType *vt = &api->params[ct2]; in printApiCpp() local
247 fprintf(f, "%s", vt->name); in printApiCpp()
263 const VarType *vt = &api->params[ct2]; in printApiCpp() local
267 fprintf(f, "%s", vt->name); in printApiCpp()
280 const VarType *vt = &api->params[ct2]; in printApiCpp() local
281 if (vt->isConst && vt->ptrLevel) { in printApiCpp()
282 fprintf(f, " dataSize += %s_length;\n", vt->name); in printApiCpp()
301 const VarType *vt = &api->params[ct2]; in printApiCpp() local
302 needFlush += vt->ptrLevel; in printApiCpp()
303 if (vt->ptrLevel && hasInlineDataPointers(api)) { in printApiCpp()
304 fprintf(f, " if (%s_length == 0) {\n", vt->name); in printApiCpp()
305 fprintf(f, " cmd->%s = NULL;\n", vt->name); in printApiCpp()
307 fprintf(f, " memcpy(payload, %s, %s_length);\n", vt->name, vt->name); in printApiCpp()
308 fprintf(f, " cmd->%s = (", vt->name); in printApiCpp()
309 printVarType(f, vt); in printApiCpp()
311 fprintf(f, " payload += %s_length;\n", vt->name); in printApiCpp()
313 fprintf(f, " cmd->%s = %s;\n", vt->name, vt->name); in printApiCpp()
317 fprintf(f, " cmd->%s = %s;\n", vt->name, vt->name); in printApiCpp()
362 const VarType *vt = &api->params[ct2]; in printApiCpp() local
366 fprintf(f, "%s", vt->name); in printApiCpp()
417 const VarType *vt = &api->params[ct2]; in printPlaybackCpp() local
418 needFlush += vt->ptrLevel; in printPlaybackCpp()
420 if (hasInlineDataPointers(api) && vt->ptrLevel) { in printPlaybackCpp()
422 vt->name, vt->typeName, vt->name); in printPlaybackCpp()
424 fprintf(f, ",\n cmd->%s", vt->name); in printPlaybackCpp()