/device/google/contexthub/firmware/inc/algos/ |
D | vec.h | 35 static inline void initVec3(struct Vec3 *v, float x, float y, float z) { in initVec3() argument 36 v->x = x; in initVec3() 37 v->y = y; in initVec3() 38 v->z = z; in initVec3() 41 static inline void vec3Add(struct Vec3 *v, const struct Vec3 *w) { in vec3Add() argument 42 v->x += w->x; in vec3Add() 43 v->y += w->y; in vec3Add() 44 v->z += w->z; in vec3Add() 47 static inline void vec3Sub(struct Vec3 *v, const struct Vec3 *w) { in vec3Sub() argument 48 v->x -= w->x; in vec3Sub() [all …]
|
D | mat.h | 55 void mat33Apply(struct Vec3 *out, const struct Mat33 *A, const struct Vec3 *v); 90 void mat44Apply(struct Vec4 *out, const struct Mat44 *A, const struct Vec4 *v);
|
/device/asus/fugu/recovery/ |
D | fw_version_check.cpp | 167 int get_current_fw_rev(struct firmware_versions *v) in get_current_fw_rev() argument 176 v->scubootstrap.minor = fw_revision[1] << 8 | fw_revision[0]; in get_current_fw_rev() 177 v->scubootstrap.major = fw_revision[3] << 8 | fw_revision[2]; in get_current_fw_rev() 178 v->scu.minor = fw_revision[5] << 8 | fw_revision[4]; in get_current_fw_rev() 179 v->scu.major = fw_revision[7] << 8 | fw_revision[6]; in get_current_fw_rev() 180 v->ia32.minor = fw_revision[9] << 8 | fw_revision[8]; in get_current_fw_rev() 181 v->ia32.major = fw_revision[11] << 8 | fw_revision[10]; in get_current_fw_rev() 182 v->valhooks.minor = fw_revision[13] << 8 | fw_revision[12]; in get_current_fw_rev() 183 v->valhooks.major = fw_revision[15] << 8 | fw_revision[14]; in get_current_fw_rev() 184 v->ifwi.minor = fw_revision[17] << 8 | fw_revision[16]; in get_current_fw_rev() [all …]
|
D | recovery_updater.cpp | 45 static void dump_fw_versions(struct firmware_versions *v) in dump_fw_versions() argument 48 fprintf(stderr, " ifwi: %04X.%04X\n", v->ifwi.major, v->ifwi.minor); in dump_fw_versions() 50 fprintf(stderr, " scu: %04X.%04X\n", v->scu.major, v->scu.minor); in dump_fw_versions() 51 fprintf(stderr, " hooks/oem: %04X.%04X\n", v->valhooks.major, v->valhooks.minor); in dump_fw_versions() 52 fprintf(stderr, " ia32: %04X.%04X\n", v->ia32.major, v->ia32.minor); in dump_fw_versions() 53 fprintf(stderr, " chaabi: %04X.%04X\n", v->chaabi.major, v->chaabi.minor); in dump_fw_versions() 54 fprintf(stderr, " mIA: %04X.%04X\n", v->mia.major, v->mia.minor); in dump_fw_versions()
|
D | fw_version_check.h | 39 int get_current_fw_rev(struct firmware_versions *v); 44 int get_image_fw_rev(void *data, unsigned sz, struct firmware_versions *v);
|
/device/google/contexthub/firmware/inc/ |
D | floatRt.h | 29 float floatFromUint64(uint64_t v); 30 float floatFromInt64(int64_t v); 45 static inline float floatFromUint64(uint64_t v) in floatFromUint64() argument 47 return v; in floatFromUint64() 50 static inline float floatFromInt64(int64_t v) in floatFromInt64() argument 52 return v; in floatFromInt64()
|
/device/generic/goldfish/camera/ |
D | Converters.h | 153 R8G8B8ToYUV(uint8_t r, uint8_t g, uint8_t b, uint8_t* y, uint8_t* u, uint8_t* v) in R8G8B8ToYUV() argument 157 *v = RGB2V((int)r, (int)g, (int)b); in R8G8B8ToYUV() 162 RGB565ToYUV(uint16_t rgb, uint8_t* y, uint8_t* u, uint8_t* v) in RGB565ToYUV() argument 164 R8G8B8ToYUV(R16_32(rgb), G16_32(rgb), B16_32(rgb), y, u, v); in RGB565ToYUV() 169 RGB32ToYUV(uint32_t rgb, uint8_t* y, uint8_t* u, uint8_t* v) in RGB32ToYUV() argument 173 R8G8B8ToYUV(rgb_c.r, rgb_c.g, rgb_c.b, y, u, v); in RGB32ToYUV() 199 #define YUV2R(y, u, v) clamp((298 * ((y)-16) + 409 * ((v)-128) + 128) >> 8) argument 200 #define YUV2G(y, u, v) clamp((298 * ((y)-16) - 100 * ((u)-128) - 208 * ((v)-128) + 128) >> 8) argument 201 #define YUV2B(y, u, v) clamp((298 * ((y)-16) + 516 * ((u)-128) + 128) >> 8) argument 206 YUVToRGB565(int y, int u, int v) in YUVToRGB565() argument [all …]
|
D | EmulatedCamera2.cpp | 343 const vendor_tag_query_ops_t *v, in get_camera_vendor_section_name() argument 345 EmulatedCamera2* ec = static_cast<const TagOps*>(v)->parent; in get_camera_vendor_section_name() 350 const vendor_tag_query_ops_t *v, in get_camera_vendor_tag_name() argument 352 EmulatedCamera2* ec = static_cast<const TagOps*>(v)->parent; in get_camera_vendor_tag_name() 357 const vendor_tag_query_ops_t *v, in get_camera_vendor_tag_type() argument 359 EmulatedCamera2* ec = static_cast<const TagOps*>(v)->parent; in get_camera_vendor_tag_type()
|
D | EmulatedCameraDevice.cpp | 146 uint8_t& v) const { in changeWhiteBalance() 149 int r = static_cast<float>(YUV2R(y, u, v)) / r_scale; in changeWhiteBalance() 150 int g = YUV2G(y, u, v); in changeWhiteBalance() 151 int b = static_cast<float>(YUV2B(y, u, v)) / b_scale; in changeWhiteBalance() 155 v = RGB2V(r, g, b); in changeWhiteBalance()
|
/device/google/contexthub/firmware/src/ |
D | floatRt.c | 126 float floatFromUint64(uint64_t v) in floatFromUint64() argument 128 uint32_t hi = v >> 32, lo = v; in floatFromUint64() 137 float floatFromInt64(int64_t v) in floatFromInt64() argument 139 uint32_t hi = ((uint64_t)v) >> 32, lo = v; in floatFromInt64() 144 return -floatFromUint64(-v); in floatFromInt64() 146 return floatFromUint64(v); in floatFromInt64()
|
/device/google/contexthub/lib/libm/ |
D | kf_sin.c | 38 float z,r,v; local 45 v = z*x; 47 if(iy==0) return x+v*(S1+z*r); 48 else return x-((z*(half*y-v*r)-y)-v*S1);
|
D | ef_pow.c | 67 float y1,t1,t2,r,s,t,u,v,w; local 145 v = t*ivln2_l-w*ivln2; 146 t1 = u+v; 149 t2 = v-(t1-u); 167 v = one/(ax+bp[k]); 168 s = u*v; 175 s_l = v*((u-s_h*t_h)-s_h*t_l); 187 v = s_l*t_h+t_l*s; 189 p_h = u+v; 192 p_l = v-(p_h-u); [all …]
|
D | fdlibm.h | 320 #define SET_HIGH_WORD(d,v) \ argument 324 sh_u.parts.msw = (v); \ 330 #define SET_LOW_WORD(d,v) \ argument 334 sl_u.parts.lsw = (v); \
|
/device/google/contexthub/firmware/external/freebsd/lib/msun/src/ |
D | math_private.h | 147 #define SET_HIGH_WORD(d,v) \ argument 151 sh_u.parts.msw = (v); \ 157 #define SET_LOW_WORD(d,v) \ argument 161 sl_u.parts.lsw = (v); \ 260 #define SET_LDBL_EXPSIGN(d,v) \ argument 264 se_u.xbits.expsign = (v); \ 270 #define LD80C(m, ex, v) { \ argument 272 .xbits.expsign = (0x3fff + (ex)) | ((v) < 0 ? 0x8000 : 0), \ 276 #define LD80C(m, ex, v) { .e = (v), } argument 319 #define RETURNF(v) return (v) argument [all …]
|
/device/google/contexthub/firmware/src/algos/ |
D | mat.c | 59 void mat33Apply(struct Vec3 *out, const struct Mat33 *A, const struct Vec3 *v) in mat33Apply() argument 62 out->x = A->elem[0][0] * v->x + A->elem[0][1] * v->y + A->elem[0][2] * v->z; in mat33Apply() 63 out->y = A->elem[1][0] * v->x + A->elem[1][1] * v->y + A->elem[1][2] * v->z; in mat33Apply() 64 out->z = A->elem[2][0] * v->x + A->elem[2][1] * v->y + A->elem[2][2] * v->z; in mat33Apply() 473 void mat44Apply(struct Vec4 *out, const struct Mat44 *A, const struct Vec4 *v) in mat44Apply() argument 478 A->elem[0][0] * v->x in mat44Apply() 479 + A->elem[0][1] * v->y in mat44Apply() 480 + A->elem[0][2] * v->z in mat44Apply() 481 + A->elem[0][3] * v->w; in mat44Apply() 484 A->elem[1][0] * v->x in mat44Apply() [all …]
|
D | mag_cal.c | 95 struct Vec3 v; in moc_fit() local 96 initVec3(&v, out.x, out.y, out.z); in moc_fit() 97 vec3ScalarMul(&v, -0.5f); in moc_fit() 99 float r = sqrtf(vec3Dot(&v, &v) - out.w); in moc_fit() 101 initVec3(bias, v.x, v.y, v.z); in moc_fit()
|
/device/google/contexthub/firmware/src/platform/stm32f4xx/ |
D | eeData.c | 143 uint32_t v; in eeDataEraseOldVersion() local 149 v = *addr; in eeDataEraseOldVersion() 152 if ((v & EE_DATA_NAME_MAX) != name) in eeDataEraseOldVersion() 156 v &=~ EE_DATA_NAME_MAX; in eeDataEraseOldVersion() 159 return eeWrite(addr, &v, sizeof(v)); in eeDataEraseOldVersion()
|
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/ |
D | ColorLEDController.java | 33 int v = (int) (255 * value); in onPositionChange() local 34 mTarget.setText(String.valueOf(v)); in onPositionChange() 37 mCommandTarget, (byte) v); in onPositionChange() 51 public void onClick(View v) { in onClick() argument
|
D | ServoController.java | 34 byte v = (byte) (value * 255); in onPositionChange() 36 mCommandTarget, v); in onPositionChange()
|
D | DemoKitPhone.java | 64 public void onClick(View v) { in onClick() argument 65 int vId = v.getId(); in onClick()
|
/device/generic/goldfish-opengl/system/GLESv2_enc/ |
D | GL2Encoder.h | 204 static void s_glUniform1fv(void *self , GLint location, GLsizei count, const GLfloat* v); 206 static void s_glUniform1iv(void *self , GLint location, GLsizei count, const GLint* v); 208 static void s_glUniform2fv(void *self , GLint location, GLsizei count, const GLfloat* v); 210 static void s_glUniform2iv(void *self , GLint location, GLsizei count, const GLint* v); 212 static void s_glUniform3fv(void *self , GLint location, GLsizei count, const GLfloat* v); 214 static void s_glUniform3iv(void *self , GLint location, GLsizei count, const GLint* v); 216 static void s_glUniform4fv(void *self , GLint location, GLsizei count, const GLfloat* v); 218 static void s_glUniform4iv(void *self , GLint location, GLsizei count, const GLint* v);
|
D | gl2_entry.cpp | 121 void glUniform1fv(GLint location, GLsizei count, const GLfloat* v); 123 void glUniform1iv(GLint location, GLsizei count, const GLint* v); 125 void glUniform2fv(GLint location, GLsizei count, const GLfloat* v); 127 void glUniform2iv(GLint location, GLsizei count, const GLint* v); 129 void glUniform3fv(GLint location, GLsizei count, const GLfloat* v); 131 void glUniform3iv(GLint location, GLsizei count, const GLint* v); 133 void glUniform4fv(GLint location, GLsizei count, const GLfloat* v); 135 void glUniform4iv(GLint location, GLsizei count, const GLint* v); 906 void glUniform1fv(GLint location, GLsizei count, const GLfloat* v) in glUniform1fv() argument 909 ctx->glUniform1fv(ctx, location, count, v); in glUniform1fv() [all …]
|
/device/google/dragon/recovery/updater/ |
D | vboot_interface.c | 93 char v; in vboot_get_mainfw_act() local 104 v = 'A'; /* RW_A in use */ in vboot_get_mainfw_act() 107 v = 'B'; /* RW_B in use */ in vboot_get_mainfw_act() 110 v = 'R'; /* Recovery/RO in use */ in vboot_get_mainfw_act() 114 v = 'E'; /* Error */ in vboot_get_mainfw_act() 118 return v; in vboot_get_mainfw_act()
|
/device/google/contexthub/lib/nanohub/ |
D | sha2.c | 39 …#define ror(v, b) ({uint32_t ret; if (b) asm("ror %0, #" STRINGIFY(b) :"=r"(ret):"0"(v)); else ret… argument
|
/device/google/contexthub/util/nanoapp_sign/ |
D | nanoapp_sign.c | 86 uint32_t i, v; in rand32_no_zero_bytes() local 97 for (v = 0, i = 0; i < 4; i++) { in rand32_no_zero_bytes() 105 v = (v << 8) | byte; in rand32_no_zero_bytes() 108 return v; in rand32_no_zero_bytes()
|