/external/qemu/distrib/sdl-1.2.15/src/video/fbcon/ |
D | SDL_fbvideo.c | 161 struct fb_var_screeninfo *vinfo); 318 static int read_fbmodes_mode(FILE *f, struct fb_var_screeninfo *vinfo) in read_fbmodes_mode() argument 332 SDL_sscanf(line, "geometry %d %d %d %d %d", &vinfo->xres, &vinfo->yres, in read_fbmodes_mode() 333 &vinfo->xres_virtual, &vinfo->yres_virtual, &vinfo->bits_per_pixel); in read_fbmodes_mode() 337 SDL_sscanf(line, "timings %d %d %d %d %d %d %d", &vinfo->pixclock, in read_fbmodes_mode() 338 &vinfo->left_margin, &vinfo->right_margin, &vinfo->upper_margin, in read_fbmodes_mode() 339 &vinfo->lower_margin, &vinfo->hsync_len, &vinfo->vsync_len); in read_fbmodes_mode() 341 vinfo->sync=0; in read_fbmodes_mode() 342 vinfo->vmode=FB_VMODE_NONINTERLACED; in read_fbmodes_mode() 352 vinfo->sync |= FB_SYNC_HOR_HIGH_ACT; in read_fbmodes_mode() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/i915/ |
D | i915_state_derived.c | 61 struct vertex_info vinfo; in calculate_vertex_layout() local 68 memset(&vinfo, 0, sizeof(vinfo)); in calculate_vertex_layout() 110 draw_emit_vertex_attr(&vinfo, EMIT_4F, INTERP_LINEAR, src); in calculate_vertex_layout() 111 vinfo.hwfmt[0] |= S4_VFMT_XYZW; in calculate_vertex_layout() 112 vinfo.attrib[0].emit = EMIT_4F; in calculate_vertex_layout() 115 draw_emit_vertex_attr(&vinfo, EMIT_3F, INTERP_LINEAR, src); in calculate_vertex_layout() 116 vinfo.hwfmt[0] |= S4_VFMT_XYZ; in calculate_vertex_layout() 117 vinfo.attrib[0].emit = EMIT_3F; in calculate_vertex_layout() 126 draw_emit_vertex_attr(&vinfo, EMIT_4UB_BGRA, colorInterp, src); in calculate_vertex_layout() 127 vinfo.hwfmt[0] |= S4_VFMT_COLOR; in calculate_vertex_layout() [all …]
|
/external/mesa3d/src/gallium/drivers/i915/ |
D | i915_state_derived.c | 61 struct vertex_info vinfo; in calculate_vertex_layout() local 68 memset(&vinfo, 0, sizeof(vinfo)); in calculate_vertex_layout() 110 draw_emit_vertex_attr(&vinfo, EMIT_4F, INTERP_LINEAR, src); in calculate_vertex_layout() 111 vinfo.hwfmt[0] |= S4_VFMT_XYZW; in calculate_vertex_layout() 112 vinfo.attrib[0].emit = EMIT_4F; in calculate_vertex_layout() 115 draw_emit_vertex_attr(&vinfo, EMIT_3F, INTERP_LINEAR, src); in calculate_vertex_layout() 116 vinfo.hwfmt[0] |= S4_VFMT_XYZ; in calculate_vertex_layout() 117 vinfo.attrib[0].emit = EMIT_3F; in calculate_vertex_layout() 126 draw_emit_vertex_attr(&vinfo, EMIT_4UB_BGRA, colorInterp, src); in calculate_vertex_layout() 127 vinfo.hwfmt[0] |= S4_VFMT_COLOR; in calculate_vertex_layout() [all …]
|
/external/mesa3d/src/gallium/state_trackers/egl/fbdev/ |
D | native_fbdev.c | 120 vinfo_to_format(const struct fb_var_screeninfo *vinfo) in vinfo_to_format() argument 125 switch (vinfo->bits_per_pixel) { in vinfo_to_format() 127 if (vinfo->red.length == 8 && in vinfo_to_format() 128 vinfo->green.length == 8 && in vinfo_to_format() 129 vinfo->blue.length == 8) { in vinfo_to_format() 130 format = (vinfo->transp.length == 8) ? in vinfo_to_format() 135 if (vinfo->red.length == 5 && in vinfo_to_format() 136 vinfo->green.length == 6 && in vinfo_to_format() 137 vinfo->blue.length == 5 && in vinfo_to_format() 138 vinfo->transp.length == 0) in vinfo_to_format() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/egl/fbdev/ |
D | native_fbdev.c | 120 vinfo_to_format(const struct fb_var_screeninfo *vinfo) in vinfo_to_format() argument 125 switch (vinfo->bits_per_pixel) { in vinfo_to_format() 127 if (vinfo->red.length == 8 && in vinfo_to_format() 128 vinfo->green.length == 8 && in vinfo_to_format() 129 vinfo->blue.length == 8) { in vinfo_to_format() 130 format = (vinfo->transp.length == 8) ? in vinfo_to_format() 135 if (vinfo->red.length == 5 && in vinfo_to_format() 136 vinfo->green.length == 6 && in vinfo_to_format() 137 vinfo->blue.length == 5 && in vinfo_to_format() 138 vinfo->transp.length == 0) in vinfo_to_format() [all …]
|
/external/qemu/distrib/sdl-1.2.15/src/video/ps2gs/ |
D | SDL_gsvideo.c | 285 struct ps2_screeninfo vinfo; in GS_VideoInit() local 301 if ( ioctl(console_fd, PS2IOC_GSCREENINFO, &vinfo) < 0 ) { in GS_VideoInit() 310 this->info.current_w = vinfo.w; in GS_VideoInit() 311 this->info.current_h = vinfo.h; in GS_VideoInit() 314 switch (vinfo.psm) { in GS_VideoInit() 322 SDL_SetError("Unknown console pixel format: %d", vinfo.psm); in GS_VideoInit() 325 vformat->BitsPerPixel = GS_pixelmasks[vinfo.psm].bpp; in GS_VideoInit() 326 vformat->Rmask = GS_pixelmasks[vinfo.psm].r; in GS_VideoInit() 327 vformat->Gmask = GS_pixelmasks[vinfo.psm].g; in GS_VideoInit() 328 vformat->Bmask = GS_pixelmasks[vinfo.psm].b; in GS_VideoInit() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/draw/ |
D | draw_vertex.c | 46 draw_compute_vertex_size(struct vertex_info *vinfo) in draw_compute_vertex_size() argument 50 vinfo->size = 0; in draw_compute_vertex_size() 51 for (i = 0; i < vinfo->num_attribs; i++) in draw_compute_vertex_size() 52 vinfo->size += draw_translate_vinfo_size(vinfo->attrib[i].emit); in draw_compute_vertex_size() 54 assert(vinfo->size % 4 == 0); in draw_compute_vertex_size() 56 vinfo->size /= 4; in draw_compute_vertex_size() 61 draw_dump_emitted_vertex(const struct vertex_info *vinfo, const uint8_t *data) in draw_dump_emitted_vertex() argument 65 for (i = 0; i < vinfo->num_attribs; i++) { in draw_dump_emitted_vertex() 66 switch (vinfo->attrib[i].emit) { in draw_dump_emitted_vertex()
|
D | draw_vertex.h | 125 draw_emit_vertex_attr(struct vertex_info *vinfo, in draw_emit_vertex_attr() argument 130 const uint n = vinfo->num_attribs; in draw_emit_vertex_attr() 131 assert(n < Elements(vinfo->attrib)); in draw_emit_vertex_attr() 132 vinfo->attrib[n].emit = emit; in draw_emit_vertex_attr() 133 vinfo->attrib[n].interp_mode = interp; in draw_emit_vertex_attr() 134 vinfo->attrib[n].src_index = src_index; in draw_emit_vertex_attr() 135 vinfo->num_attribs++; in draw_emit_vertex_attr() 140 extern void draw_compute_vertex_size(struct vertex_info *vinfo); 142 void draw_dump_emitted_vertex(const struct vertex_info *vinfo,
|
D | draw_pt_fetch_emit.c | 80 const struct vertex_info *vinfo; member 97 const struct vertex_info *vinfo; in fetch_emit_prepare() local 108 vinfo = feme->vinfo = draw->render->get_vertex_info(draw->render); in fetch_emit_prepare() 116 for (i = 0; i < vinfo->num_attribs; i++) { in fetch_emit_prepare() 117 const struct pipe_vertex_element *src = &draw->pt.vertex_element[vinfo->attrib[i].src_index]; in fetch_emit_prepare() 125 output_format = draw_translate_vinfo_format(vinfo->attrib[i].emit); in fetch_emit_prepare() 126 emit_sz = draw_translate_vinfo_size(vinfo->attrib[i].emit); in fetch_emit_prepare() 128 if (vinfo->attrib[i].emit == EMIT_OMIT) in fetch_emit_prepare() 131 if (vinfo->attrib[i].emit == EMIT_1F_PSIZE) { in fetch_emit_prepare() 148 key.nr_elements = vinfo->num_attribs; in fetch_emit_prepare() [all …]
|
D | draw_pt_emit.c | 45 const struct vertex_info *vinfo; member 55 const struct vertex_info *vinfo; in draw_pt_emit_prepare() local 73 emit->vinfo = vinfo = draw->render->get_vertex_info(draw->render); in draw_pt_emit_prepare() 78 for (i = 0; i < vinfo->num_attribs; i++) { in draw_pt_emit_prepare() 82 unsigned src_offset = (vinfo->attrib[i].src_index * 4 * sizeof(float) ); in draw_pt_emit_prepare() 84 output_format = draw_translate_vinfo_format(vinfo->attrib[i].emit); in draw_pt_emit_prepare() 85 emit_sz = draw_translate_vinfo_size(vinfo->attrib[i].emit); in draw_pt_emit_prepare() 90 if (vinfo->attrib[i].emit == EMIT_1F_PSIZE) { in draw_pt_emit_prepare() 106 hw_key.nr_elements = vinfo->num_attribs; in draw_pt_emit_prepare() 107 hw_key.output_stride = vinfo->size * 4; in draw_pt_emit_prepare() [all …]
|
D | draw_pt_fetch_shade_emit.c | 63 const struct vertex_info *vinfo; member 77 const struct vertex_info *vinfo; in fse_prepare() local 89 fse->vinfo = vinfo = draw->render->get_vertex_info(draw->render); in fse_prepare() 91 fse->key.output_stride = vinfo->size * 4; in fse_prepare() 92 fse->key.nr_outputs = vinfo->num_attribs; in fse_prepare() 127 for (i = 0; i < vinfo->num_attribs; i++) { in fse_prepare() 128 unsigned emit_sz = draw_translate_vinfo_size(vinfo->attrib[i].emit); in fse_prepare() 137 fse->key.element[i].out.format = vinfo->attrib[i].emit; in fse_prepare() 138 fse->key.element[i].out.vs_output = vinfo->attrib[i].src_index; in fse_prepare() 169 (vinfo->size * 4)); in fse_prepare() [all …]
|
D | draw_pipe_vbuf.c | 57 const struct vertex_info *vinfo; member 143 if (0) draw_dump_emitted_vertex(vbuf->vinfo, (uint8_t *)vbuf->vertex_ptr); in emit_vertex() 217 vbuf->vinfo = vbuf->render->get_vertex_info(vbuf->render); in vbuf_start_prim() 218 vbuf->vertex_size = vbuf->vinfo->size * sizeof(float); in vbuf_start_prim() 224 for (i = 0; i < vbuf->vinfo->num_attribs; i++) { in vbuf_start_prim() 228 unsigned src_offset = (vbuf->vinfo->attrib[i].src_index * 4 * sizeof(float) ); in vbuf_start_prim() 230 output_format = draw_translate_vinfo_format(vbuf->vinfo->attrib[i].emit); in vbuf_start_prim() 231 emit_sz = draw_translate_vinfo_size(vbuf->vinfo->attrib[i].emit); in vbuf_start_prim() 236 if (vbuf->vinfo->attrib[i].emit == EMIT_1F_PSIZE) { in vbuf_start_prim() 252 hw_key.nr_elements = vbuf->vinfo->num_attribs; in vbuf_start_prim() [all …]
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_vertex.c | 46 draw_compute_vertex_size(struct vertex_info *vinfo) in draw_compute_vertex_size() argument 50 vinfo->size = 0; in draw_compute_vertex_size() 51 for (i = 0; i < vinfo->num_attribs; i++) in draw_compute_vertex_size() 52 vinfo->size += draw_translate_vinfo_size(vinfo->attrib[i].emit); in draw_compute_vertex_size() 54 assert(vinfo->size % 4 == 0); in draw_compute_vertex_size() 56 vinfo->size /= 4; in draw_compute_vertex_size() 61 draw_dump_emitted_vertex(const struct vertex_info *vinfo, const uint8_t *data) in draw_dump_emitted_vertex() argument 65 for (i = 0; i < vinfo->num_attribs; i++) { in draw_dump_emitted_vertex() 66 switch (vinfo->attrib[i].emit) { in draw_dump_emitted_vertex()
|
D | draw_vertex.h | 125 draw_emit_vertex_attr(struct vertex_info *vinfo, in draw_emit_vertex_attr() argument 130 const uint n = vinfo->num_attribs; in draw_emit_vertex_attr() 131 assert(n < Elements(vinfo->attrib)); in draw_emit_vertex_attr() 132 vinfo->attrib[n].emit = emit; in draw_emit_vertex_attr() 133 vinfo->attrib[n].interp_mode = interp; in draw_emit_vertex_attr() 134 vinfo->attrib[n].src_index = src_index; in draw_emit_vertex_attr() 135 vinfo->num_attribs++; in draw_emit_vertex_attr() 140 extern void draw_compute_vertex_size(struct vertex_info *vinfo); 142 void draw_dump_emitted_vertex(const struct vertex_info *vinfo,
|
D | draw_pt_fetch_emit.c | 80 const struct vertex_info *vinfo; member 97 const struct vertex_info *vinfo; in fetch_emit_prepare() local 108 vinfo = feme->vinfo = draw->render->get_vertex_info(draw->render); in fetch_emit_prepare() 116 for (i = 0; i < vinfo->num_attribs; i++) { in fetch_emit_prepare() 117 const struct pipe_vertex_element *src = &draw->pt.vertex_element[vinfo->attrib[i].src_index]; in fetch_emit_prepare() 125 output_format = draw_translate_vinfo_format(vinfo->attrib[i].emit); in fetch_emit_prepare() 126 emit_sz = draw_translate_vinfo_size(vinfo->attrib[i].emit); in fetch_emit_prepare() 128 if (vinfo->attrib[i].emit == EMIT_OMIT) in fetch_emit_prepare() 131 if (vinfo->attrib[i].emit == EMIT_1F_PSIZE) { in fetch_emit_prepare() 148 key.nr_elements = vinfo->num_attribs; in fetch_emit_prepare() [all …]
|
D | draw_pt_emit.c | 45 const struct vertex_info *vinfo; member 55 const struct vertex_info *vinfo; in draw_pt_emit_prepare() local 73 emit->vinfo = vinfo = draw->render->get_vertex_info(draw->render); in draw_pt_emit_prepare() 78 for (i = 0; i < vinfo->num_attribs; i++) { in draw_pt_emit_prepare() 82 unsigned src_offset = (vinfo->attrib[i].src_index * 4 * sizeof(float) ); in draw_pt_emit_prepare() 84 output_format = draw_translate_vinfo_format(vinfo->attrib[i].emit); in draw_pt_emit_prepare() 85 emit_sz = draw_translate_vinfo_size(vinfo->attrib[i].emit); in draw_pt_emit_prepare() 90 if (vinfo->attrib[i].emit == EMIT_1F_PSIZE) { in draw_pt_emit_prepare() 106 hw_key.nr_elements = vinfo->num_attribs; in draw_pt_emit_prepare() 107 hw_key.output_stride = vinfo->size * 4; in draw_pt_emit_prepare() [all …]
|
D | draw_pt_fetch_shade_emit.c | 63 const struct vertex_info *vinfo; member 77 const struct vertex_info *vinfo; in fse_prepare() local 89 fse->vinfo = vinfo = draw->render->get_vertex_info(draw->render); in fse_prepare() 91 fse->key.output_stride = vinfo->size * 4; in fse_prepare() 92 fse->key.nr_outputs = vinfo->num_attribs; in fse_prepare() 127 for (i = 0; i < vinfo->num_attribs; i++) { in fse_prepare() 128 unsigned emit_sz = draw_translate_vinfo_size(vinfo->attrib[i].emit); in fse_prepare() 137 fse->key.element[i].out.format = vinfo->attrib[i].emit; in fse_prepare() 138 fse->key.element[i].out.vs_output = vinfo->attrib[i].src_index; in fse_prepare() 169 (vinfo->size * 4)); in fse_prepare() [all …]
|
D | draw_pipe_vbuf.c | 57 const struct vertex_info *vinfo; member 143 if (0) draw_dump_emitted_vertex(vbuf->vinfo, (uint8_t *)vbuf->vertex_ptr); in emit_vertex() 217 vbuf->vinfo = vbuf->render->get_vertex_info(vbuf->render); in vbuf_start_prim() 218 vbuf->vertex_size = vbuf->vinfo->size * sizeof(float); in vbuf_start_prim() 224 for (i = 0; i < vbuf->vinfo->num_attribs; i++) { in vbuf_start_prim() 228 unsigned src_offset = (vbuf->vinfo->attrib[i].src_index * 4 * sizeof(float) ); in vbuf_start_prim() 230 output_format = draw_translate_vinfo_format(vbuf->vinfo->attrib[i].emit); in vbuf_start_prim() 231 emit_sz = draw_translate_vinfo_size(vbuf->vinfo->attrib[i].emit); in vbuf_start_prim() 236 if (vbuf->vinfo->attrib[i].emit == EMIT_1F_PSIZE) { in vbuf_start_prim() 252 hw_key.nr_elements = vbuf->vinfo->num_attribs; in vbuf_start_prim() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/ |
D | lp_state_derived.c | 52 struct vertex_info *vinfo = &llvmpipe->vertex_info; in compute_vertex_info() local 67 vinfo->num_attribs = 0; in compute_vertex_info() 73 draw_emit_vertex_attr(vinfo, EMIT_4F, INTERP_PERSPECTIVE, vs_index); in compute_vertex_info() 87 llvmpipe->color_slot[idx] = (int)vinfo->num_attribs; in compute_vertex_info() 93 draw_emit_vertex_attr(vinfo, EMIT_4F, INTERP_PERSPECTIVE, vs_index); in compute_vertex_info() 103 llvmpipe->bcolor_slot[i] = (int)vinfo->num_attribs; in compute_vertex_info() 104 draw_emit_vertex_attr(vinfo, EMIT_4F, INTERP_PERSPECTIVE, vs_index); in compute_vertex_info() 115 llvmpipe->psize_slot = vinfo->num_attribs; in compute_vertex_info() 116 draw_emit_vertex_attr(vinfo, EMIT_4F, INTERP_CONSTANT, vs_index); in compute_vertex_info() 119 draw_compute_vertex_size(vinfo); in compute_vertex_info() [all …]
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_state_derived.c | 52 struct vertex_info *vinfo = &llvmpipe->vertex_info; in compute_vertex_info() local 67 vinfo->num_attribs = 0; in compute_vertex_info() 73 draw_emit_vertex_attr(vinfo, EMIT_4F, INTERP_PERSPECTIVE, vs_index); in compute_vertex_info() 87 llvmpipe->color_slot[idx] = (int)vinfo->num_attribs; in compute_vertex_info() 93 draw_emit_vertex_attr(vinfo, EMIT_4F, INTERP_PERSPECTIVE, vs_index); in compute_vertex_info() 103 llvmpipe->bcolor_slot[i] = (int)vinfo->num_attribs; in compute_vertex_info() 104 draw_emit_vertex_attr(vinfo, EMIT_4F, INTERP_PERSPECTIVE, vs_index); in compute_vertex_info() 115 llvmpipe->psize_slot = vinfo->num_attribs; in compute_vertex_info() 116 draw_emit_vertex_attr(vinfo, EMIT_4F, INTERP_CONSTANT, vs_index); in compute_vertex_info() 119 draw_compute_vertex_size(vinfo); in compute_vertex_info() [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_draw_feedback.c | 60 struct vertex_info vinfo; in set_feedback_vertex_format() 63 memset(&vinfo, 0, sizeof(vinfo)); in set_feedback_vertex_format() 67 vinfo.num_attribs = 1; in set_feedback_vertex_format() 68 vinfo.format[0] = FORMAT_4F; in set_feedback_vertex_format() 69 vinfo.interp_mode[0] = INTERP_LINEAR; in set_feedback_vertex_format() 74 vinfo.num_attribs = st->state.vs->cso->state.num_outputs; in set_feedback_vertex_format() 75 for (i = 0; i < vinfo.num_attribs; i++) { in set_feedback_vertex_format() 76 vinfo.format[i] = FORMAT_4F; in set_feedback_vertex_format() 77 vinfo.interp_mode[i] = INTERP_LINEAR; in set_feedback_vertex_format() 81 draw_set_vertex_info(st->draw, &vinfo); in set_feedback_vertex_format()
|
/external/chromium_org/third_party/mesa/src/src/mesa/state_tracker/ |
D | st_draw_feedback.c | 60 struct vertex_info vinfo; in set_feedback_vertex_format() 63 memset(&vinfo, 0, sizeof(vinfo)); in set_feedback_vertex_format() 67 vinfo.num_attribs = 1; in set_feedback_vertex_format() 68 vinfo.format[0] = FORMAT_4F; in set_feedback_vertex_format() 69 vinfo.interp_mode[0] = INTERP_LINEAR; in set_feedback_vertex_format() 74 vinfo.num_attribs = st->state.vs->cso->state.num_outputs; in set_feedback_vertex_format() 75 for (i = 0; i < vinfo.num_attribs; i++) { in set_feedback_vertex_format() 76 vinfo.format[i] = FORMAT_4F; in set_feedback_vertex_format() 77 vinfo.interp_mode[i] = INTERP_LINEAR; in set_feedback_vertex_format() 81 draw_set_vertex_info(st->draw, &vinfo); in set_feedback_vertex_format()
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_swtnl_state.c | 152 struct vertex_info *vinfo = &svga_render->vertex_info; in svga_swtnl_update_vdecl() local 161 memset(vinfo, 0, sizeof(*vinfo)); in svga_swtnl_update_vdecl() 166 draw_emit_vertex_attr(vinfo, EMIT_4F, INTERP_LINEAR, src); in svga_swtnl_update_vdecl() 167 vinfo->attrib[0].emit = EMIT_4F; in svga_swtnl_update_vdecl() 186 draw_emit_vertex_attr(vinfo, EMIT_4F, colorInterp, src); in svga_swtnl_update_vdecl() 193 draw_emit_vertex_attr(vinfo, EMIT_4F, INTERP_PERSPECTIVE, src); in svga_swtnl_update_vdecl() 202 draw_emit_vertex_attr(vinfo, EMIT_1F, INTERP_PERSPECTIVE, src); in svga_swtnl_update_vdecl() 217 draw_compute_vertex_size(vinfo); in svga_swtnl_update_vdecl()
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/svga/ |
D | svga_swtnl_state.c | 152 struct vertex_info *vinfo = &svga_render->vertex_info; in svga_swtnl_update_vdecl() local 161 memset(vinfo, 0, sizeof(*vinfo)); in svga_swtnl_update_vdecl() 166 draw_emit_vertex_attr(vinfo, EMIT_4F, INTERP_LINEAR, src); in svga_swtnl_update_vdecl() 167 vinfo->attrib[0].emit = EMIT_4F; in svga_swtnl_update_vdecl() 186 draw_emit_vertex_attr(vinfo, EMIT_4F, colorInterp, src); in svga_swtnl_update_vdecl() 193 draw_emit_vertex_attr(vinfo, EMIT_4F, INTERP_PERSPECTIVE, src); in svga_swtnl_update_vdecl() 202 draw_emit_vertex_attr(vinfo, EMIT_1F, INTERP_PERSPECTIVE, src); in svga_swtnl_update_vdecl() 217 draw_compute_vertex_size(vinfo); in svga_swtnl_update_vdecl()
|
/external/chromium_org/third_party/openssl/openssl/crypto/srp/ |
D | srp_vfy.c | 207 static void SRP_user_pwd_set_gN(SRP_user_pwd *vinfo, const BIGNUM *g, in SRP_user_pwd_set_gN() argument 210 vinfo->N = N; in SRP_user_pwd_set_gN() 211 vinfo->g = g; in SRP_user_pwd_set_gN() 214 static int SRP_user_pwd_set_ids(SRP_user_pwd *vinfo, const char *id, in SRP_user_pwd_set_ids() argument 217 if (id != NULL && NULL == (vinfo->id = BUF_strdup(id))) in SRP_user_pwd_set_ids() 219 return (info == NULL || NULL != (vinfo->info = BUF_strdup(info))) ; in SRP_user_pwd_set_ids() 222 static int SRP_user_pwd_set_sv(SRP_user_pwd *vinfo, const char *s, in SRP_user_pwd_set_sv() argument 231 if (NULL == (vinfo->v = BN_bin2bn(tmp, len, NULL)) ) in SRP_user_pwd_set_sv() 234 return ((vinfo->s = BN_bin2bn(tmp, len, NULL)) != NULL) ; in SRP_user_pwd_set_sv() 237 static int SRP_user_pwd_set_sv_BN(SRP_user_pwd *vinfo, BIGNUM *s, BIGNUM *v) in SRP_user_pwd_set_sv_BN() argument [all …]
|