| /linux/fs/xfs/scrub/ |
| H A D | rcbag_btree.c | 224 unsigned int blocklen, in rcbagbt_block_maxrecs() argument 228 return blocklen / sizeof(struct rcbag_rec); in rcbagbt_block_maxrecs() 229 return blocklen / in rcbagbt_block_maxrecs() 239 unsigned int blocklen, in rcbagbt_maxrecs() argument 242 blocklen -= RCBAG_BLOCK_LEN; in rcbagbt_maxrecs() 243 return rcbagbt_block_maxrecs(blocklen, leaf); in rcbagbt_maxrecs() 251 unsigned int blocklen; in rcbagbt_maxlevels_possible() local 253 blocklen = XFBNO_BLOCKSIZE - XFS_BTREE_LBLOCK_CRC_LEN; in rcbagbt_maxlevels_possible() 255 minrecs[0] = rcbagbt_block_maxrecs(blocklen, true) / 2; in rcbagbt_maxlevels_possible() 256 minrecs[1] = rcbagbt_block_maxrecs(blocklen, false) / 2; in rcbagbt_maxlevels_possible() [all …]
|
| H A D | rcbag_btree.h | 54 unsigned int rcbagbt_maxrecs(struct xfs_mount *mp, unsigned int blocklen,
|
| /linux/drivers/mtd/maps/ |
| H A D | vmu-flash.c | 40 u32 blocklen; member 69 if (src_ofs >= card->parts[partition].numblocks * card->blocklen) in ofs_to_block() 72 num = src_ofs / card->blocklen; in ofs_to_block() 81 vblock->ofs = src_ofs % card->blocklen; in ofs_to_block() 102 card->blocklen/card->readcnt); in vmu_blockread() 129 pcache->buffer = kmalloc(card->blocklen, GFP_KERNEL); in maple_vmu_read_block() 159 blockread = kmalloc(card->blocklen/card->readcnt, GFP_KERNEL); in maple_vmu_read_block() 205 memcpy(buf + (card->blocklen/card->readcnt) * x, blockread, in maple_vmu_read_block() 206 card->blocklen/card->readcnt); in maple_vmu_read_block() 208 memcpy(pcache->buffer + (card->blocklen/card->readcnt) * x, in maple_vmu_read_block() [all …]
|
| /linux/include/crypto/ |
| H A D | df_sp80090a.h | 13 static inline int crypto_drbg_ctr_df_datalen(u8 statelen, u8 blocklen) in crypto_drbg_ctr_df_datalen() argument 16 blocklen + /* pad */ in crypto_drbg_ctr_df_datalen() 17 blocklen + /* iv */ in crypto_drbg_ctr_df_datalen() 18 statelen + blocklen; /* temp */ in crypto_drbg_ctr_df_datalen()
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_rmap_btree.c | 534 unsigned int blocklen, in xfs_rmapbt_mem_block_maxrecs() argument 538 return blocklen / sizeof(struct xfs_rmap_rec); in xfs_rmapbt_mem_block_maxrecs() 539 return blocklen / in xfs_rmapbt_mem_block_maxrecs() 657 unsigned int blocklen; in xfs_rmapbt_mem_maxlevels() local 659 blocklen = XFBNO_BLOCKSIZE - XFS_BTREE_LBLOCK_CRC_LEN; in xfs_rmapbt_mem_maxlevels() 661 minrecs[0] = xfs_rmapbt_mem_block_maxrecs(blocklen, true) / 2; in xfs_rmapbt_mem_maxlevels() 662 minrecs[1] = xfs_rmapbt_mem_block_maxrecs(blocklen, false) / 2; in xfs_rmapbt_mem_maxlevels() 701 unsigned int blocklen, in xfs_rmapbt_block_maxrecs() argument 705 return blocklen / sizeof(struct xfs_rmap_rec); in xfs_rmapbt_block_maxrecs() 706 return blocklen / in xfs_rmapbt_block_maxrecs() [all …]
|
| H A D | xfs_rtrefcount_btree.c | 86 unsigned int blocklen, in xfs_rtrefcountbt_droot_maxrecs() argument 89 blocklen -= sizeof(struct xfs_rtrefcount_root); in xfs_rtrefcountbt_droot_maxrecs() 92 return blocklen / sizeof(struct xfs_refcount_rec); in xfs_rtrefcountbt_droot_maxrecs() 93 return blocklen / (2 * sizeof(struct xfs_refcount_key) + in xfs_rtrefcountbt_droot_maxrecs() 457 unsigned int blocklen, in xfs_rtrefcountbt_block_maxrecs() argument 462 return blocklen / sizeof(struct xfs_refcount_rec); in xfs_rtrefcountbt_block_maxrecs() 463 return blocklen / (sizeof(struct xfs_refcount_key) + in xfs_rtrefcountbt_block_maxrecs() 473 unsigned int blocklen, in xfs_rtrefcountbt_maxrecs() argument 476 blocklen -= XFS_RTREFCOUNT_BLOCK_LEN; in xfs_rtrefcountbt_maxrecs() 477 return xfs_rtrefcountbt_block_maxrecs(blocklen, leaf); in xfs_rtrefcountbt_maxrecs() [all …]
|
| H A D | xfs_bmap_btree.c | 693 unsigned int blocklen, in xfs_bmbt_block_maxrecs() argument 697 return blocklen / sizeof(xfs_bmbt_rec_t); in xfs_bmbt_block_maxrecs() 698 return blocklen / (sizeof(xfs_bmbt_key_t) + sizeof(xfs_bmbt_ptr_t)); in xfs_bmbt_block_maxrecs() 750 unsigned int blocklen, in xfs_bmbt_maxrecs() argument 753 blocklen -= xfs_bmbt_block_len(mp); in xfs_bmbt_maxrecs() 754 return xfs_bmbt_block_maxrecs(blocklen, leaf); in xfs_bmbt_maxrecs() 766 unsigned int blocklen; in xfs_bmbt_maxlevels_ondisk() local 768 blocklen = min(XFS_MIN_BLOCKSIZE - XFS_BTREE_SBLOCK_LEN, in xfs_bmbt_maxlevels_ondisk() 771 minrecs[0] = xfs_bmbt_block_maxrecs(blocklen, true) / 2; in xfs_bmbt_maxlevels_ondisk() 772 minrecs[1] = xfs_bmbt_block_maxrecs(blocklen, false) / 2; in xfs_bmbt_maxlevels_ondisk() [all …]
|
| H A D | xfs_ialloc_btree.c | 565 unsigned int blocklen, in xfs_inobt_block_maxrecs() argument 569 return blocklen / sizeof(xfs_inobt_rec_t); in xfs_inobt_block_maxrecs() 570 return blocklen / (sizeof(xfs_inobt_key_t) + sizeof(xfs_inobt_ptr_t)); in xfs_inobt_block_maxrecs() 579 unsigned int blocklen, in xfs_inobt_maxrecs() argument 582 blocklen -= XFS_INOBT_BLOCK_LEN(mp); in xfs_inobt_maxrecs() 583 return xfs_inobt_block_maxrecs(blocklen, leaf); in xfs_inobt_maxrecs() 599 unsigned int blocklen; in xfs_inobt_maxlevels_ondisk() local 601 blocklen = min(XFS_MIN_BLOCKSIZE - XFS_BTREE_SBLOCK_LEN, in xfs_inobt_maxlevels_ondisk() 604 minrecs[0] = xfs_inobt_block_maxrecs(blocklen, true) / 2; in xfs_inobt_maxlevels_ondisk() 605 minrecs[1] = xfs_inobt_block_maxrecs(blocklen, false) / 2; in xfs_inobt_maxlevels_ondisk() [all …]
|
| H A D | xfs_refcount_btree.c | 407 unsigned int blocklen, in xfs_refcountbt_block_maxrecs() argument 411 return blocklen / sizeof(struct xfs_refcount_rec); in xfs_refcountbt_block_maxrecs() 412 return blocklen / (sizeof(struct xfs_refcount_key) + in xfs_refcountbt_block_maxrecs() 422 unsigned int blocklen, in xfs_refcountbt_maxrecs() argument 425 blocklen -= XFS_REFCOUNT_BLOCK_LEN; in xfs_refcountbt_maxrecs() 426 return xfs_refcountbt_block_maxrecs(blocklen, leaf); in xfs_refcountbt_maxrecs() 434 unsigned int blocklen; in xfs_refcountbt_maxlevels_ondisk() local 436 blocklen = XFS_MIN_CRC_BLOCKSIZE - XFS_BTREE_SBLOCK_CRC_LEN; in xfs_refcountbt_maxlevels_ondisk() 438 minrecs[0] = xfs_refcountbt_block_maxrecs(blocklen, true) / 2; in xfs_refcountbt_maxlevels_ondisk() 439 minrecs[1] = xfs_refcountbt_block_maxrecs(blocklen, false) / 2; in xfs_refcountbt_maxlevels_ondisk()
|
| H A D | xfs_alloc_btree.c | 553 unsigned int blocklen, in xfs_allocbt_block_maxrecs() argument 557 return blocklen / sizeof(xfs_alloc_rec_t); in xfs_allocbt_block_maxrecs() 558 return blocklen / (sizeof(xfs_alloc_key_t) + sizeof(xfs_alloc_ptr_t)); in xfs_allocbt_block_maxrecs() 567 unsigned int blocklen, in xfs_allocbt_maxrecs() argument 570 blocklen -= XFS_ALLOC_BLOCK_LEN(mp); in xfs_allocbt_maxrecs() 571 return xfs_allocbt_block_maxrecs(blocklen, leaf); in xfs_allocbt_maxrecs() 582 unsigned int blocklen; in xfs_allocbt_maxlevels_ondisk() local 584 blocklen = min(XFS_MIN_BLOCKSIZE - XFS_BTREE_SBLOCK_LEN, in xfs_allocbt_maxlevels_ondisk() 587 minrecs[0] = xfs_allocbt_block_maxrecs(blocklen, true) / 2; in xfs_allocbt_maxlevels_ondisk() 588 minrecs[1] = xfs_allocbt_block_maxrecs(blocklen, false) / 2; in xfs_allocbt_maxlevels_ondisk()
|
| H A D | xfs_rtrmap_btree.c | 86 unsigned int blocklen, in xfs_rtrmapbt_droot_maxrecs() argument 89 blocklen -= sizeof(struct xfs_rtrmap_root); in xfs_rtrmapbt_droot_maxrecs() 92 return blocklen / sizeof(struct xfs_rmap_rec); in xfs_rtrmapbt_droot_maxrecs() 93 return blocklen / (2 * sizeof(struct xfs_rmap_key) + in xfs_rtrmapbt_droot_maxrecs() 674 unsigned int blocklen, in xfs_rtrmapbt_block_maxrecs() argument 678 return blocklen / sizeof(struct xfs_rmap_rec); in xfs_rtrmapbt_block_maxrecs() 679 return blocklen / in xfs_rtrmapbt_block_maxrecs() 689 unsigned int blocklen, in xfs_rtrmapbt_maxrecs() argument 692 blocklen -= XFS_RTRMAP_BLOCK_LEN; in xfs_rtrmapbt_maxrecs() 693 return xfs_rtrmapbt_block_maxrecs(blocklen, leaf); in xfs_rtrmapbt_maxrecs() [all …]
|
| H A D | xfs_btree_mem.c | 120 unsigned int blocklen = xfbtree_rec_bytes(mp, ops); in xfbtree_init() local 139 xfbt->maxrecs[0] = blocklen / ops->rec_len; in xfbtree_init() 140 xfbt->maxrecs[1] = blocklen / keyptr_len; in xfbtree_init()
|
| H A D | xfs_rtrefcount_btree.h | 26 unsigned int blocklen, bool leaf); 28 unsigned int xfs_rtrefcountbt_droot_maxrecs(unsigned int blocklen, bool leaf);
|
| H A D | xfs_bmap_btree.h | 37 extern int xfs_bmdr_maxrecs(int blocklen, int leaf); 38 unsigned int xfs_bmbt_maxrecs(struct xfs_mount *mp, unsigned int blocklen,
|
| H A D | xfs_rtrmap_btree.h | 26 unsigned int xfs_rtrmapbt_maxrecs(struct xfs_mount *mp, unsigned int blocklen, 29 unsigned int xfs_rtrmapbt_droot_maxrecs(unsigned int blocklen, bool leaf);
|
| H A D | xfs_refcount_btree.h | 51 unsigned int xfs_refcountbt_maxrecs(struct xfs_mount *mp, unsigned int blocklen,
|
| H A D | xfs_alloc_btree.h | 56 unsigned int xfs_allocbt_maxrecs(struct xfs_mount *mp, unsigned int blocklen,
|
| H A D | xfs_ialloc_btree.h | 53 unsigned int xfs_inobt_maxrecs(struct xfs_mount *mp, unsigned int blocklen,
|
| H A D | xfs_rmap_btree.h | 50 unsigned int xfs_rmapbt_maxrecs(struct xfs_mount *mp, unsigned int blocklen,
|
| /linux/crypto/ |
| H A D | df_sp80090a.c | 206 short blocklen = 0; in crypto_drbg_ctr_df() local 213 blocklen = (blocklen_bytes < in crypto_drbg_ctr_df() 218 memcpy(df_data + generated_len, X, blocklen); in crypto_drbg_ctr_df() 219 generated_len += blocklen; in crypto_drbg_ctr_df()
|
| H A D | drbg.c | 614 short blocklen = 0; in drbg_hash_df() local 621 blocklen = (drbg_blocklen(drbg) < (outlen - len)) ? in drbg_hash_df() 623 memcpy(outval + len, tmp, blocklen); in drbg_hash_df() 624 len += blocklen; in drbg_hash_df()
|
| /linux/drivers/i2c/busses/ |
| H A D | i2c-imx-lpi2c.c | 464 unsigned int blocklen, remaining; in lpi2c_imx_read_rxfifo() local 480 blocklen = lpi2c_imx->rx_buf[0]; in lpi2c_imx_read_rxfifo() 481 lpi2c_imx->msglen += blocklen; in lpi2c_imx_read_rxfifo()
|