Home
last modified time | relevance | path

Searched refs:wb (Results 1 – 25 of 218) sorted by relevance

123456789

/external/vboot_reference/tests/
Dvb2_common_tests.c68 struct vb2_workbuf wb; in test_workbuf() local
74 vb2_workbuf_init(&wb, p0, 64); in test_workbuf()
75 TEST_EQ(vb2_offset_of(p0, wb.buf), 0, "Workbuf init aligned"); in test_workbuf()
76 TEST_EQ(wb.size, 64, " size"); in test_workbuf()
78 vb2_workbuf_init(&wb, p0 + 4, 64); in test_workbuf()
79 TEST_EQ(vb2_offset_of(p0, wb.buf), VB2_WORKBUF_ALIGN, in test_workbuf()
81 TEST_EQ(wb.size, 64 - VB2_WORKBUF_ALIGN + 4, " size"); in test_workbuf()
83 vb2_workbuf_init(&wb, p0 + 2, 5); in test_workbuf()
84 TEST_EQ(wb.size, 0, "Workbuf init tiny unaligned size"); in test_workbuf()
87 vb2_workbuf_init(&wb, p0, 64); in test_workbuf()
[all …]
Dvb20_common3_tests.c38 struct vb2_workbuf wb; in test_verify_keyblock() local
44 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_keyblock()
60 TEST_SUCC(vb2_verify_keyblock(h, hsize, &key, &wb), in test_verify_keyblock()
64 TEST_EQ(vb2_verify_keyblock(h, hsize - 1, &key, &wb), in test_verify_keyblock()
69 TEST_SUCC(vb2_verify_keyblock(h, hsize + 1, &key, &wb), in test_verify_keyblock()
74 TEST_EQ(vb2_verify_keyblock(h, hsize, &key, &wb), in test_verify_keyblock()
81 TEST_EQ(vb2_verify_keyblock(h, hsize, &key, &wb), in test_verify_keyblock()
88 TEST_EQ(vb2_verify_keyblock(h, hsize, &key, &wb), in test_verify_keyblock()
95 TEST_SUCC(vb2_verify_keyblock(h, hsize, &key, &wb), in test_verify_keyblock()
101 TEST_SUCC(vb2_verify_keyblock(h, hsize, &key, &wb), in test_verify_keyblock()
[all …]
Dvb20_rsa_padding_tests.c48 struct vb2_workbuf wb; in test_signatures() local
52 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_signatures()
56 TEST_SUCC(vb2_rsa_verify_digest(key, sig, test_message_sha1_hash, &wb), in test_signatures()
64 test_message_sha1_hash, &wb)) { in test_signatures()
81 struct vb2_workbuf wb; in test_verify_digest() local
84 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_digest()
87 TEST_SUCC(vb2_rsa_verify_digest(key, sig, test_message_sha1_hash, &wb), in test_verify_digest()
91 vb2_workbuf_init(&wb, workbuf, sizeof(sig) * 3 - 1); in test_verify_digest()
92 TEST_EQ(vb2_rsa_verify_digest(key, sig, test_message_sha1_hash, &wb), in test_verify_digest()
95 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_digest()
[all …]
Dvb21_common_tests.c225 struct vb2_workbuf wb; in test_verify_hash() local
227 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_hash()
239 sig, &pubk, &wb), in test_verify_hash()
243 TEST_EQ(vb2_verify_data(test_data, sizeof(test_data), sig, &pubk, &wb), in test_verify_hash()
264 struct vb2_workbuf wb; in test_verify_keyblock() local
289 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_keyblock()
292 TEST_SUCC(vb2_verify_keyblock(kbuf, buf_size, &pubk, &wb), in test_verify_keyblock()
296 TEST_SUCC(vb2_verify_keyblock(kbuf, buf_size, &pubk2, &wb), in test_verify_keyblock()
300 TEST_EQ(vb2_verify_keyblock(kbuf, buf_size, &pubk3, &wb), in test_verify_keyblock()
306 TEST_EQ(vb2_verify_keyblock(kbuf, buf_size, &pubk, &wb), in test_verify_keyblock()
[all …]
Dvb20_common2_tests.c82 struct vb2_workbuf wb; in test_verify_data() local
89 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_data()
100 TEST_NEQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
106 TEST_NEQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
110 vb2_workbuf_init(&wb, workbuf, 4); in test_verify_data()
112 TEST_NEQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
114 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_data()
117 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
122 TEST_NEQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
126 TEST_NEQ(vb2_verify_data(test_data, test_size - 1, sig2, &pubk, &wb), in test_verify_data()
[all …]
Dvb21_common2_tests.c174 struct vb2_workbuf wb; in test_verify_data() local
181 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_data()
192 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
198 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
203 vb2_workbuf_init(&wb, workbuf, 4); in test_verify_data()
205 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
208 vb2_workbuf_init(&wb, workbuf, sizeof(workbuf)); in test_verify_data()
211 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
216 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
220 TEST_EQ(vb2_verify_data(test_data, test_size - 1, sig2, &pubk, &wb), in test_verify_data()
[all …]
/external/libvpx/libvpx/vpx_dsp/
Dbitwriter_buffer.c17 size_t vpx_wb_bytes_written(const struct vpx_write_bit_buffer *wb) { in vpx_wb_bytes_written() argument
18 return wb->bit_offset / CHAR_BIT + (wb->bit_offset % CHAR_BIT > 0); in vpx_wb_bytes_written()
21 void vpx_wb_write_bit(struct vpx_write_bit_buffer *wb, int bit) { in vpx_wb_write_bit() argument
22 const int off = (int)wb->bit_offset; in vpx_wb_write_bit()
26 wb->bit_buffer[p] = bit << q; in vpx_wb_write_bit()
28 wb->bit_buffer[p] &= ~(1 << q); in vpx_wb_write_bit()
29 wb->bit_buffer[p] |= bit << q; in vpx_wb_write_bit()
31 wb->bit_offset = off + 1; in vpx_wb_write_bit()
34 void vpx_wb_write_literal(struct vpx_write_bit_buffer *wb, int data, int bits) { in vpx_wb_write_literal() argument
37 vpx_wb_write_bit(wb, (data >> bit) & 1); in vpx_wb_write_literal()
[all …]
Dbitwriter_buffer.h25 size_t vpx_wb_bytes_written(const struct vpx_write_bit_buffer *wb);
27 void vpx_wb_write_bit(struct vpx_write_bit_buffer *wb, int bit);
29 void vpx_wb_write_literal(struct vpx_write_bit_buffer *wb, int data, int bits);
31 void vpx_wb_write_inv_signed_literal(struct vpx_write_bit_buffer *wb, int data,
/external/vboot_reference/firmware/2lib/
D2common.c54 void vb2_workbuf_init(struct vb2_workbuf *wb, uint8_t *buf, uint32_t size) in vb2_workbuf_init() argument
56 wb->buf = buf; in vb2_workbuf_init()
57 wb->size = size; in vb2_workbuf_init()
60 if (vb2_align(&wb->buf, &wb->size, VB2_WORKBUF_ALIGN, 0)) in vb2_workbuf_init()
61 wb->size = 0; in vb2_workbuf_init()
75 void *vb2_workbuf_alloc(struct vb2_workbuf *wb, uint32_t size) in vb2_workbuf_alloc() argument
77 uint8_t *ptr = wb->buf; in vb2_workbuf_alloc()
82 if (size > wb->size) in vb2_workbuf_alloc()
85 wb->buf += size; in vb2_workbuf_alloc()
86 wb->size -= size; in vb2_workbuf_alloc()
[all …]
/external/libvpx/libvpx/vp9/encoder/
Dvp9_bitstream.c60 static void encode_unsigned_max(struct vpx_write_bit_buffer *wb, in encode_unsigned_max() argument
62 vpx_wb_write_literal(wb, data, get_unsigned_bits(max)); in encode_unsigned_max()
695 struct vpx_write_bit_buffer *wb) { in encode_loopfilter() argument
699 vpx_wb_write_literal(wb, lf->filter_level, 6); in encode_loopfilter()
700 vpx_wb_write_literal(wb, lf->sharpness_level, 3); in encode_loopfilter()
704 vpx_wb_write_bit(wb, lf->mode_ref_delta_enabled); in encode_loopfilter()
707 vpx_wb_write_bit(wb, lf->mode_ref_delta_update); in encode_loopfilter()
712 vpx_wb_write_bit(wb, changed); in encode_loopfilter()
715 vpx_wb_write_literal(wb, abs(delta) & 0x3F, 6); in encode_loopfilter()
716 vpx_wb_write_bit(wb, delta < 0); in encode_loopfilter()
[all …]
/external/llvm/test/Transforms/InstCombine/
Dfpextend_x86.ll6 %wb = fpext double %b to x86_fp80
7 %wr = fadd x86_fp80 %wa, %wb
17 %wb = fpext double %b to x86_fp80
18 %wr = fsub x86_fp80 %wa, %wb
28 %wb = fpext double %b to x86_fp80
29 %wr = fmul x86_fp80 %wa, %wb
39 %wb = fpext half %b to x86_fp80
40 %wr = fmul x86_fp80 %wa, %wb
50 %wb = fpext double %b to x86_fp80
51 %wr = fdiv x86_fp80 %wa, %wb
/external/vboot_reference/firmware/lib21/
Dmisc.c34 struct vb2_workbuf *wb, in vb2_read_resource_object() argument
49 buf = vb2_workbuf_alloc(wb, c.total_size); in vb2_read_resource_object()
56 vb2_workbuf_free(wb, c.total_size); in vb2_read_resource_object()
68 struct vb2_workbuf wb; in vb2_load_fw_keyblock() local
78 vb2_workbuf_from_ctx(ctx, &wb); in vb2_load_fw_keyblock()
82 key_data = vb2_workbuf_alloc(&wb, key_size); in vb2_load_fw_keyblock()
100 rv = vb2_read_resource_object(ctx, VB2_RES_FW_VBLOCK, 0, &wb, in vb2_load_fw_keyblock()
106 rv = vb2_verify_keyblock(kb, kb->c.total_size, &root_key, &wb); in vb2_load_fw_keyblock()
156 struct vb2_workbuf wb; in vb2_load_fw_preamble() local
167 vb2_workbuf_from_ctx(ctx, &wb); in vb2_load_fw_preamble()
[all …]
/external/vboot_reference/firmware/lib20/
Dmisc.c20 struct vb2_workbuf wb; in vb2_load_fw_keyblock() local
32 vb2_workbuf_from_ctx(ctx, &wb); in vb2_load_fw_keyblock()
36 key_data = vb2_workbuf_alloc(&wb, key_size); in vb2_load_fw_keyblock()
51 kb = vb2_workbuf_alloc(&wb, sizeof(*kb)); in vb2_load_fw_keyblock()
67 kb = vb2_workbuf_realloc(&wb, sizeof(*kb), block_size); in vb2_load_fw_keyblock()
76 rv = vb2_verify_keyblock(kb, block_size, &root_key, &wb); in vb2_load_fw_keyblock()
133 struct vb2_workbuf wb; in vb2_load_fw_preamble() local
145 vb2_workbuf_from_ctx(ctx, &wb); in vb2_load_fw_preamble()
156 pre = vb2_workbuf_alloc(&wb, sizeof(*pre)); in vb2_load_fw_preamble()
169 pre = vb2_workbuf_realloc(&wb, sizeof(*pre), pre_size); in vb2_load_fw_preamble()
[all …]
Dapi.c45 struct vb2_workbuf wb; in vb2api_init_hash() local
48 vb2_workbuf_from_ctx(ctx, &wb); in vb2api_init_hash()
70 dc = vb2_workbuf_alloc(&wb, dig_size); in vb2api_init_hash()
129 struct vb2_workbuf wb; in vb2api_check_hash() local
138 vb2_workbuf_from_ctx(ctx, &wb); in vb2api_check_hash()
155 digest = vb2_workbuf_alloc(&wb, digest_size); in vb2api_check_hash()
190 rv = vb2_verify_digest(&key, &pre->body_signature, digest, &wb); in vb2api_check_hash()
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/model/property/editor/string/
DStringPropertyEditor.java11 package org.eclipse.wb.internal.core.model.property.editor.string;
13 import org.eclipse.wb.internal.core.model.property.Property;
14 import org.eclipse.wb.internal.core.model.property.editor.AbstractTextPropertyEditor;
15 import org.eclipse.wb.internal.core.model.property.editor.PropertyEditor;
16 import org.eclipse.wb.internal.core.model.property.editor.presentation.ButtonPropertyEditorPresenta…
17 import org.eclipse.wb.internal.core.model.property.editor.presentation.PropertyEditorPresentation;
18 import org.eclipse.wb.internal.core.model.property.table.PropertyTable;
DStringPropertyDialog.java11 package org.eclipse.wb.internal.core.model.property.editor.string;
21 import org.eclipse.wb.internal.core.DesignerPlugin;
22 import org.eclipse.wb.internal.core.model.ModelMessages;
23 import org.eclipse.wb.internal.core.model.property.Property;
24 import org.eclipse.wb.internal.core.utils.execution.ExecutionUtils;
25 import org.eclipse.wb.internal.core.utils.execution.RunnableEx;
26 import org.eclipse.wb.internal.core.utils.ui.GridDataFactory;
27 import org.eclipse.wb.internal.core.utils.ui.dialogs.ResizableDialog;
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/model/property/editor/
DTextDialogPropertyEditor.java11 package org.eclipse.wb.internal.core.model.property.editor;
13 import org.eclipse.wb.internal.core.model.property.Property;
14 import org.eclipse.wb.internal.core.model.property.editor.presentation.ButtonPropertyEditorPresenta…
15 import org.eclipse.wb.internal.core.model.property.editor.presentation.PropertyEditorPresentation;
16 import org.eclipse.wb.internal.core.model.property.table.PropertyTable;
DTextDisplayPropertyEditor.java11 package org.eclipse.wb.internal.core.model.property.editor;
14 import org.eclipse.wb.internal.core.model.property.Property;
15 import org.eclipse.wb.internal.core.model.property.table.PropertyTable;
16 import org.eclipse.wb.internal.core.model.property.table.PropertyTooltipProvider;
17 import org.eclipse.wb.internal.core.utils.ui.DrawUtils;
DCharacterPropertyEditor.java11 package org.eclipse.wb.internal.core.model.property.editor;
13 import org.eclipse.wb.internal.core.DesignerPlugin;
14 import org.eclipse.wb.internal.core.model.ModelMessages;
15 import org.eclipse.wb.internal.core.model.property.Property;
16 import org.eclipse.wb.internal.core.utils.ui.UiUtils;
DShortPropertyEditor.java11 package org.eclipse.wb.internal.core.model.property.editor;
13 import org.eclipse.wb.internal.core.DesignerPlugin;
14 import org.eclipse.wb.internal.core.model.ModelMessages;
15 import org.eclipse.wb.internal.core.model.property.Property;
16 import org.eclipse.wb.internal.core.utils.ui.UiUtils;
DIntegerPropertyEditor.java11 package org.eclipse.wb.internal.core.model.property.editor;
13 import org.eclipse.wb.internal.core.DesignerPlugin;
14 import org.eclipse.wb.internal.core.model.ModelMessages;
15 import org.eclipse.wb.internal.core.model.property.Property;
16 import org.eclipse.wb.internal.core.utils.ui.UiUtils;
DLongPropertyEditor.java11 package org.eclipse.wb.internal.core.model.property.editor;
13 import org.eclipse.wb.internal.core.DesignerPlugin;
14 import org.eclipse.wb.internal.core.model.ModelMessages;
15 import org.eclipse.wb.internal.core.model.property.Property;
16 import org.eclipse.wb.internal.core.utils.ui.UiUtils;
DFloatPropertyEditor.java11 package org.eclipse.wb.internal.core.model.property.editor;
13 import org.eclipse.wb.internal.core.DesignerPlugin;
14 import org.eclipse.wb.internal.core.model.ModelMessages;
15 import org.eclipse.wb.internal.core.model.property.Property;
16 import org.eclipse.wb.internal.core.utils.ui.UiUtils;
DIntegerObjectPropertyEditor.java11 package org.eclipse.wb.internal.core.model.property.editor;
13 import org.eclipse.wb.internal.core.DesignerPlugin;
14 import org.eclipse.wb.internal.core.model.ModelMessages;
15 import org.eclipse.wb.internal.core.model.property.Property;
16 import org.eclipse.wb.internal.core.utils.ui.UiUtils;
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/model/property/
DComplexProperty.java11 package org.eclipse.wb.internal.core.model.property;
13 import org.eclipse.wb.internal.core.model.property.editor.TextDisplayPropertyEditor;
14 import org.eclipse.wb.internal.core.model.property.editor.complex.IComplexPropertyEditor;
15 import org.eclipse.wb.internal.core.model.property.editor.presentation.PropertyEditorPresentation;
16 import org.eclipse.wb.internal.core.model.property.table.PropertyTable;
17 import org.eclipse.wb.internal.core.model.property.table.PropertyTooltipProvider;
18 import org.eclipse.wb.internal.core.model.property.table.PropertyTooltipTextProvider;

123456789