/external/mesa3d/src/gallium/auxiliary/vl/ |
H A D | vl_mpeg12_bitstream.c | 627 motion_vector(struct vl_mpg12_bs *bs, int r, int s, int dmv, short delta[2], short dmvector[2]) argument 632 int r_size = bs->desc->f_code[s][t]; 634 vl_vlc_fillbits(&bs->vlc); 635 motion_code = vl_vlc_get_vlclbf(&bs->vlc, tbl_B10, 11); 639 int residual = vl_vlc_get_uimsbf(&bs->vlc, r_size) + 1; 646 dmvector[t] = vl_vlc_get_vlclbf(&bs->vlc, tbl_B11, 2); 662 motion_vector_frame(struct vl_mpg12_bs *bs, int s, struct pipe_mpeg12_macroblock *mb) argument 668 mb->motion_vertical_field_select |= vl_vlc_get_uimsbf(&bs->vlc, 1) << s; 669 motion_vector(bs, 0, s, dmv, delta, dmvector); 670 mb->PMV[0][s][0] = wrap(mb->PMV[0][s][0] + delta[0], bs 686 motion_vector_field(struct vl_mpg12_bs *bs, int s, struct pipe_mpeg12_macroblock *mb) argument 705 reset_predictor(struct vl_mpg12_bs *bs) argument 710 decode_dct(struct vl_mpg12_bs *bs, struct pipe_mpeg12_macroblock *mb, int scale) argument 790 decode_slice(struct vl_mpg12_bs *bs, struct pipe_video_buffer *target) argument 939 vl_mpg12_bs_init(struct vl_mpg12_bs *bs, struct pipe_video_decoder *decoder) argument 956 vl_mpg12_bs_decode(struct vl_mpg12_bs *bs, struct pipe_video_buffer *target, struct pipe_mpeg12_picture_desc *picture, unsigned num_buffers, const void * const *buffers, const unsigned *sizes) argument [all...] |
/external/openssl/ssl/ |
H A D | d1_pkt.c | 1482 int bs; local 1543 bs = EVP_CIPHER_block_size(s->enc_write_ctx->cipher); 1545 bs = 0; 1547 wr->data=p + bs; /* make room for IV in case of CBC */ 1575 if(s->method->ssl3_enc->mac(s,&(p[wr->length + bs]),1) < 0) 1586 if (bs) /* bs != 0 in case of CBC */ 1588 RAND_pseudo_bytes(p,bs); 1591 wr->length += bs;
|
H A D | t1_enc.c | 689 int bs,i,j,k,pad=0,ret,mac_size=0; local 755 bs=EVP_CIPHER_block_size(ds->cipher); 793 else if ((bs != 1) && send) 795 i=bs-((int)l%bs); 832 if (l == 0 || l%bs != 0) 860 if ((bs != 1) && !send) 861 ret = tls1_cbc_remove_padding(s, rec, bs, mac_size);
|
/external/qemu/block/ |
H A D | qcow2-cluster.c | 31 int qcow2_grow_l1_table(BlockDriverState *bs, int min_size) argument 33 BDRVQcowState *s = bs->opaque; 57 BLKDBG_EVENT(bs->file, BLKDBG_L1_GROW_ALLOC_TABLE); 58 new_l1_table_offset = qcow2_alloc_clusters(bs, new_l1_size2); 64 BLKDBG_EVENT(bs->file, BLKDBG_L1_GROW_WRITE_TABLE); 67 ret = bdrv_pwrite_sync(bs->file, new_l1_table_offset, new_l1_table, new_l1_size2); 74 BLKDBG_EVENT(bs->file, BLKDBG_L1_GROW_ACTIVATE_TABLE); 77 ret = bdrv_pwrite_sync(bs->file, offsetof(QCowHeader, l1_size), data,sizeof(data)); 82 qcow2_free_clusters(bs, s->l1_table_offset, s->l1_size * sizeof(uint64_t)); 89 qcow2_free_clusters(bs, new_l1_table_offse 93 qcow2_l2_cache_reset(BlockDriverState *bs) argument 102 l2_cache_new_entry(BlockDriverState *bs) argument 160 l2_load(BlockDriverState *bs, uint64_t l2_offset, uint64_t **l2_table) argument 197 write_l1_entry(BlockDriverState *bs, int l1_index) argument 229 l2_allocate(BlockDriverState *bs, int l1_index, uint64_t **table) argument 345 qcow_read(BlockDriverState *bs, int64_t sector_num, uint8_t *buf, int nb_sectors) argument 396 copy_sectors(BlockDriverState *bs, uint64_t start_sect, uint64_t cluster_offset, int n_start, int n_end) argument 440 qcow2_get_cluster_offset(BlockDriverState *bs, uint64_t offset, int *num, uint64_t *cluster_offset) argument 530 get_cluster_table(BlockDriverState *bs, uint64_t offset, uint64_t **new_l2_table, uint64_t *new_l2_offset, int *new_l2_index) argument 595 qcow2_alloc_compressed_cluster_offset(BlockDriverState *bs, uint64_t offset, int compressed_size) argument 648 write_l2_entries(BlockDriverState *bs, uint64_t *l2_table, uint64_t l2_offset, int l2_index, int num) argument 667 qcow2_alloc_cluster_link_l2(BlockDriverState *bs, QCowL2Meta *m) argument 750 qcow2_alloc_cluster_offset(BlockDriverState *bs, uint64_t offset, int n_start, int n_end, int *num, QCowL2Meta *m) argument 900 qcow2_decompress_cluster(BlockDriverState *bs, uint64_t cluster_offset) argument [all...] |
H A D | qcow2-refcount.c | 29 static int64_t alloc_clusters_noref(BlockDriverState *bs, int64_t size); 30 static int QEMU_WARN_UNUSED_RESULT update_refcount(BlockDriverState *bs, 37 static int write_refcount_block(BlockDriverState *bs) argument 39 BDRVQcowState *s = bs->opaque; 46 BLKDBG_EVENT(bs->file, BLKDBG_REFBLOCK_UPDATE); 47 if (bdrv_pwrite_sync(bs->file, s->refcount_block_cache_offset, 59 int qcow2_refcount_init(BlockDriverState *bs) argument 61 BDRVQcowState *s = bs->opaque; 68 BLKDBG_EVENT(bs->file, BLKDBG_REFTABLE_LOAD); 69 ret = bdrv_pread(bs 81 qcow2_refcount_close(BlockDriverState *bs) argument 89 load_refcount_block(BlockDriverState *bs, int64_t refcount_block_offset) argument 118 get_refcount(BlockDriverState *bs, int64_t cluster_index) argument 178 alloc_refcount_block(BlockDriverState *bs, int64_t cluster_index) argument 425 write_refcount_block_entries(BlockDriverState *bs, int64_t refcount_block_offset, int first_index, int last_index) argument 458 update_refcount(BlockDriverState *bs, int64_t offset, int64_t length, int addend) argument 564 update_cluster_refcount(BlockDriverState *bs, int64_t cluster_index, int addend) argument 587 alloc_clusters_noref(BlockDriverState *bs, int64_t size) argument 612 qcow2_alloc_clusters(BlockDriverState *bs, int64_t size) argument 632 qcow2_alloc_bytes(BlockDriverState *bs, int size) argument 677 qcow2_free_clusters(BlockDriverState *bs, int64_t offset, int64_t size) argument 697 qcow2_free_any_clusters(BlockDriverState *bs, uint64_t cluster_offset, int nb_clusters) argument 745 qcow2_update_snapshot_refcount(BlockDriverState *bs, int64_t l1_table_offset, int l1_size, int addend) argument 889 inc_refcounts(BlockDriverState *bs, BdrvCheckResult *res, uint16_t *refcount_table, int refcount_table_size, int64_t offset, int64_t size) argument 934 check_refcounts_l2(BlockDriverState *bs, BdrvCheckResult *res, uint16_t *refcount_table, int refcount_table_size, int64_t l2_offset, int check_copied) argument 1019 check_refcounts_l1(BlockDriverState *bs, BdrvCheckResult *res, uint16_t *refcount_table, int refcount_table_size, int64_t l1_table_offset, int l1_size, int check_copied) argument 1104 qcow2_check_refcounts(BlockDriverState *bs, BdrvCheckResult *res) argument [all...] |
H A D | raw-posix.c | 123 static int fd_open(BlockDriverState *bs); 124 static int64_t raw_getlength(BlockDriverState *bs); 127 static int cdrom_reopen(BlockDriverState *bs); 130 static int raw_open_common(BlockDriverState *bs, const char *filename, argument 133 BDRVRawState *s = bs->opaque; 163 s->aligned_buf = qemu_blockalign(bs, ALIGNED_BUFFER_SIZE); 201 static int raw_open(BlockDriverState *bs, const char *filename, int flags) argument 203 BDRVRawState *s = bs->opaque; 206 return raw_open_common(bs, filename, flags, 0); 233 static int raw_pread_aligned(BlockDriverState *bs, int64_ argument 286 raw_pwrite_aligned(BlockDriverState *bs, int64_t offset, const uint8_t *buf, int count) argument 314 raw_pread(BlockDriverState *bs, int64_t offset, uint8_t *buf, int count) argument 385 raw_read(BlockDriverState *bs, int64_t sector_num, uint8_t *buf, int nb_sectors) argument 402 raw_pwrite(BlockDriverState *bs, int64_t offset, const uint8_t *buf, int count) argument 475 raw_write(BlockDriverState *bs, int64_t sector_num, const uint8_t *buf, int nb_sectors) argument 502 raw_aio_submit(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque, int type) argument 531 raw_aio_readv(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque) argument 539 raw_aio_writev(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque) argument 547 raw_aio_flush(BlockDriverState *bs, BlockDriverCompletionFunc *cb, void *opaque) argument 558 raw_close(BlockDriverState *bs) argument 569 raw_truncate(BlockDriverState *bs, int64_t offset) argument 580 raw_getlength(BlockDriverState *bs) argument 599 raw_getlength(BlockDriverState *bs) argument 625 raw_getlength(BlockDriverState *bs) argument 680 raw_getlength(BlockDriverState *bs) argument 723 raw_flush(BlockDriverState *bs) argument 838 hdev_open(BlockDriverState *bs, const char *filename, int flags) argument 883 fd_open(BlockDriverState *bs) argument 929 hdev_ioctl(BlockDriverState *bs, unsigned long int req, void *buf) argument 936 hdev_aio_ioctl(BlockDriverState *bs, unsigned long int req, void *buf, BlockDriverCompletionFunc *cb, void *opaque) argument 948 fd_open(BlockDriverState *bs) argument 959 fd_open(BlockDriverState *bs) argument 996 hdev_has_zero_init(BlockDriverState *bs) argument 1029 floppy_open(BlockDriverState *bs, const char *filename, int flags) argument 1074 floppy_is_inserted(BlockDriverState *bs) argument 1079 floppy_media_changed(BlockDriverState *bs) argument 1097 floppy_eject(BlockDriverState *bs, int eject_flag) argument 1142 cdrom_open(BlockDriverState *bs, const char *filename, int flags) argument 1175 cdrom_is_inserted(BlockDriverState *bs) argument 1186 cdrom_eject(BlockDriverState *bs, int eject_flag) argument 1201 cdrom_set_locked(BlockDriverState *bs, int locked) argument 1248 cdrom_open(BlockDriverState *bs, const char *filename, int flags) argument 1272 cdrom_reopen(BlockDriverState *bs) argument 1295 cdrom_is_inserted(BlockDriverState *bs) argument 1300 cdrom_eject(BlockDriverState *bs, int eject_flag) argument 1322 cdrom_set_locked(BlockDriverState *bs, int locked) argument [all...] |
/external/qemu/ |
H A D | posix-aio-compat.c | 273 buf = qemu_blockalign(aiocb->common.bs, aiocb->aio_nbytes); 568 BlockDriverAIOCB *paio_submit(BlockDriverState *bs, int fd, argument 574 acb = qemu_aio_get(&raw_aio_pool, bs, cb, opaque); 597 BlockDriverAIOCB *paio_ioctl(BlockDriverState *bs, int fd, argument 603 acb = qemu_aio_get(&raw_aio_pool, bs, cb, opaque);
|
/external/stlport/test/unit/ |
H A D | string_test.cpp | 305 const char* bs = b.c_str(); local 307 CPPUNIT_ASSERT( a.c_str() == bs );
|
/external/tremolo/Tremolo/ |
H A D | bitwise.c | 365 ogg_buffer_state *bs; variable 392 ogg_reference *or=ogg_buffer_alloc(bs,64); 587 bs=ogg_buffer_create(); 603 or=ogg_buffer_alloc(bs,128); 740 or=orl=ogg_buffer_alloc(bs,64);
|
H A D | framing.c | 56 ogg_buffer_state *bs=_ogg_calloc(1,sizeof(*bs)); local 57 return bs; 67 static void _ogg_buffer_destroy(ogg_buffer_state *bs){ argument 71 if(bs->shutdown){ 73 bt=bs->unused_buffers; 74 rt=bs->unused_references; 82 bs->unused_buffers=0; 88 bs->unused_references=0; 90 if(!bs 96 ogg_buffer_destroy(ogg_buffer_state *bs) argument 101 _fetch_buffer(ogg_buffer_state *bs,long bytes) argument 127 _fetch_ref(ogg_buffer_state *bs) argument 148 ogg_buffer_alloc(ogg_buffer_state *bs,long bytes) argument 292 ogg_buffer_state *bs=ob->ptr.owner; local [all...] |
/external/aac/libMpegTPDec/src/ |
H A D | tpdec_lib.cpp | 221 FDK_BITSTREAM bs; local 222 HANDLE_FDK_BITSTREAM hBs = &bs; 352 if (hTp->parser.adts.bs.adts_fullness != 0x7ff) { 353 bufferFullness = hTp->parser.adts.bs.frame_length*8 + hTp->parser.adts.bs.adts_fullness * 32 * getNumberOfEffectiveChannels(hTp->parser.adts.bs.channel_config); 409 if (hTp->parser.adts.bs.protection_absent == 0) 414 offset = hTp->parser.adts.rawDataBlockDist[hTp->parser.adts.bs.num_raw_blocks-hTp->numberOfRawDataBlocks]<<3; 416 offset -= hTp->accessUnitAnchor[0] - FDKgetValidBits(hBs) + 16 + hTp->parser.adts.bs.num_pce_bits; 419 if (hTp->parser.adts.bs [all...] |
/external/chromium_org/third_party/boringssl/src/ssl/ |
H A D | t1_enc.c | 705 int bs,i,j,k,pad=0,ret,mac_size=0; local 898 bs=EVP_CIPHER_block_size(ds->cipher); 900 if ((bs != 1) && send) 902 i=bs-((int)l%bs); 934 if (l == 0 || l%bs != 0) 956 if ((bs != 1) && !send) 957 ret = tls1_cbc_remove_padding(s, rec, bs, mac_size);
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r600/ |
H A D | r600_asm.c | 668 static void init_bank_swizzle(struct alu_bank_swizzle *bs) argument 674 bs->hw_gpr[cycle][component] = -1; 676 bs->hw_cfile_addr[i] = -1; 678 bs->hw_cfile_elem[i] = -1; 681 static int reserve_gpr(struct alu_bank_swizzle *bs, unsigned sel, unsigned chan, unsigned cycle) argument 683 if (bs->hw_gpr[cycle][chan] == -1) 684 bs->hw_gpr[cycle][chan] = sel; 685 else if (bs->hw_gpr[cycle][chan] != (int)sel) { 692 static int reserve_cfile(struct r600_bytecode *bc, struct alu_bank_swizzle *bs, unsigned sel, unsigned chan) argument 700 if (bs 734 check_vector(struct r600_bytecode *bc, struct r600_bytecode_alu *alu, struct alu_bank_swizzle *bs, int bank_swizzle) argument 764 check_scalar(struct r600_bytecode *bc, struct r600_bytecode_alu *alu, struct alu_bank_swizzle *bs, int bank_swizzle) argument 813 struct alu_bank_swizzle bs; local [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/main/ |
H A D | pack.c | 3139 GLfloat rs = 1.0f, gs = 1.0f, bs = 1.0f, as = 1.0f; /* scale factors */ local 3304 bs = 1.0F / 3.0F; 3310 rgba[i][bDst] = ((p ) & 0x3) * bs; 3322 bs = 1.0F / 3.0F; 3328 rgba[i][bDst] = ((p >> 6) ) * bs; 3337 bs = 1.0F / 31.0F; 3347 rgba[i][bDst] = ((p ) & 0x1f) * bs; 3358 rgba[i][bDst] = ((p ) & 0x1f) * bs; 3367 bs = 1.0F / 31.0F; 3377 rgba[i][bDst] = ((p >> 11) ) * bs; [all...] |
/external/chromium_org/third_party/skia/src/utils/ |
H A D | SkDumpCanvas.cpp | 360 SkString bs, rs; local 361 bitmap.toString(&bs); 373 bs.c_str(), rs.c_str()); 378 SkString bs, ms; local 379 bitmap.toString(&bs); 382 bs.c_str(), ms.c_str());
|
/external/fio/ |
H A D | backend.c | 1016 unsigned long bs; local 1018 bs = td->orig_buffer_size + td->o.hugepage_size - 1; 1019 td->orig_buffer_size = bs & ~(td->o.hugepage_size - 1);
|
H A D | filesetup.c | 40 unsigned int bs; local 143 bs = td->o.max_bs[DDIR_WRITE]; 144 if (bs > left) 145 bs = left; 147 fill_io_buffer(td, b, bs, bs); 149 r = write(f->fd, b, bs); 205 unsigned int bs; local 221 bs = td->o.max_bs[DDIR_READ]; 222 b = malloc(bs); 767 const unsigned int bs = td_min_bs(td); local [all...] |
/external/freetype/src/autofit/ |
H A D | afcjk.c | 276 const AF_Blue_StringRec* bs = &af_blue_stringsets[bss]; local 287 for ( ; bs->string != AF_BLUE_STRING_MAX; bs++ ) 289 const char* p = &af_blue_strings[bs->string]; 294 if ( AF_CJK_IS_HORIZ_BLUE( bs ) ) 312 cjk_blue_name[AF_CJK_IS_HORIZ_BLUE( bs ) | 313 AF_CJK_IS_TOP_BLUE( bs ) ] )); 383 if ( AF_CJK_IS_HORIZ_BLUE( bs ) ) 385 if ( AF_CJK_IS_RIGHT_BLUE( bs ) ) 406 if ( AF_CJK_IS_TOP_BLUE( bs ) ) [all...] |
/external/libhevc/common/x86/ |
H A D | ihevc_deblk_ssse3_intr.c | 61 * an appropriate filter is applied. The boundary filter strength, bs should 71 * @param[in] bs 102 WORD32 bs, 125 ASSERT((bs > 0) && (bs <= 3)); 132 /* based on BS, tc index is calcuated by adding 2 * ( bs - 1) to QP and tc_offset */ 134 /* the above desired functionallity is achieved by doing (2*(bs>>1)) */ 136 tc_indx = CLIP3(qp_luma + (2 * (bs >> 1)) + (tc_offset_div2 << 1), 0, 53); 538 WORD32 bs, 565 ASSERT((bs > 100 ihevc_deblk_luma_vert_ssse3(UWORD8 *pu1_src, WORD32 src_strd, WORD32 bs, WORD32 quant_param_p, WORD32 quant_param_q, WORD32 beta_offset_div2, WORD32 tc_offset_div2, WORD32 filter_flag_p, WORD32 filter_flag_q) argument 536 ihevc_deblk_luma_horz_ssse3(UWORD8 *pu1_src, WORD32 src_strd, WORD32 bs, WORD32 quant_param_p, WORD32 quant_param_q, WORD32 beta_offset_div2, WORD32 tc_offset_div2, WORD32 filter_flag_p, WORD32 filter_flag_q) argument [all...] |
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/ |
H A D | machine.c | 1249 struct branch_stack *bs) 1254 bi = calloc(bs->nr, sizeof(struct branch_info)); 1258 for (i = 0; i < bs->nr; i++) { 1259 ip__resolve_ams(machine, thr, &bi[i].to, bs->entries[i].to); 1260 ip__resolve_ams(machine, thr, &bi[i].from, bs->entries[i].from); 1261 bi[i].flags = bs->entries[i].flags; 1247 machine__resolve_bstack(struct machine *machine, struct thread *thr, struct branch_stack *bs) argument
|
/external/mesa3d/src/gallium/drivers/r600/ |
H A D | r600_asm.c | 668 static void init_bank_swizzle(struct alu_bank_swizzle *bs) argument 674 bs->hw_gpr[cycle][component] = -1; 676 bs->hw_cfile_addr[i] = -1; 678 bs->hw_cfile_elem[i] = -1; 681 static int reserve_gpr(struct alu_bank_swizzle *bs, unsigned sel, unsigned chan, unsigned cycle) argument 683 if (bs->hw_gpr[cycle][chan] == -1) 684 bs->hw_gpr[cycle][chan] = sel; 685 else if (bs->hw_gpr[cycle][chan] != (int)sel) { 692 static int reserve_cfile(struct r600_bytecode *bc, struct alu_bank_swizzle *bs, unsigned sel, unsigned chan) argument 700 if (bs 734 check_vector(struct r600_bytecode *bc, struct r600_bytecode_alu *alu, struct alu_bank_swizzle *bs, int bank_swizzle) argument 764 check_scalar(struct r600_bytecode *bc, struct r600_bytecode_alu *alu, struct alu_bank_swizzle *bs, int bank_swizzle) argument 813 struct alu_bank_swizzle bs; local [all...] |
/external/mesa3d/src/mesa/main/ |
H A D | pack.c | 3139 GLfloat rs = 1.0f, gs = 1.0f, bs = 1.0f, as = 1.0f; /* scale factors */ local 3304 bs = 1.0F / 3.0F; 3310 rgba[i][bDst] = ((p ) & 0x3) * bs; 3322 bs = 1.0F / 3.0F; 3328 rgba[i][bDst] = ((p >> 6) ) * bs; 3337 bs = 1.0F / 31.0F; 3347 rgba[i][bDst] = ((p ) & 0x1f) * bs; 3358 rgba[i][bDst] = ((p ) & 0x1f) * bs; 3367 bs = 1.0F / 31.0F; 3377 rgba[i][bDst] = ((p >> 11) ) * bs; [all...] |
/external/openssl/apps/ |
H A D | ocsp.c | 102 static int print_ocsp_summary(BIO *out, OCSP_BASICRESP *bs, OCSP_REQUEST *req, 140 OCSP_BASICRESP *bs = NULL; local 871 bs = OCSP_response_get1_basic(resp); 873 if (!bs) 881 if (req && ((i = OCSP_check_nonce(req, bs)) <= 0)) 892 i = OCSP_basic_verify(bs, verify_other, store, verify_flags); 893 if (i < 0) i = OCSP_basic_verify(bs, NULL, store, 0); 905 if (!print_ocsp_summary(out, bs, req, reqnames, ids, nsec, maxage)) 926 OCSP_BASICRESP_free(bs); 997 static int print_ocsp_summary(BIO *out, OCSP_BASICRESP *bs, OCSP_REQUES argument 1070 OCSP_BASICRESP *bs = NULL; local [all...] |
H A D | x509.c | 1110 ASN1_INTEGER *bs = NULL; local 1139 if (!save_serial(buf, NULL, serial, &bs)) goto end; 1144 return bs; 1155 ASN1_INTEGER *bs=NULL; local 1168 if (sno) bs = sno; 1169 else if (!(bs = x509_load_serial(CAfile, serialfile, create))) 1188 if (!X509_set_serialNumber(x,bs)) goto end; 1218 if (!sno) ASN1_INTEGER_free(bs);
|
/external/pdfium/core/src/fxcodec/lcms2/lcms2-2.6/src/ |
H A D | cmspcs.c | 590 cmsFloat64Number bs = Lab2 ->b; local 591 cmsFloat64Number Cs = sqrt( Sqr(as) + Sqr(bs) ); 602 cmsFloat64Number b_ps = bs;
|