Home
last modified time | relevance | path

Searched refs:first_block (Results 1 - 25 of 66) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/mtd/
H A Dnftlmount.c372 static void check_sectors_in_chain(struct NFTLrecord *nftl, unsigned int first_block) in check_sectors_in_chain() argument
381 block = first_block; in check_sectors_in_chain()
426 static int calc_chain_length(struct NFTLrecord *nftl, unsigned int first_block) in calc_chain_length() argument
428 unsigned int length = 0, block = first_block; in calc_chain_length()
452 * if we stop the code, we may see again a valid chain if there was a first_block
458 static void format_chain(struct NFTLrecord *nftl, unsigned int first_block) in format_chain() argument
460 unsigned int block = first_block, block1; in format_chain()
462 printk("Formatting chain at block %d\n", first_block); in format_chain()
569 unsigned int block, first_block, is_first_block; in NFTL_mount() local
589 for (first_block in NFTL_mount()
[all...]
H A Dinftlmount.c434 static void format_chain(struct INFTLrecord *inftl, unsigned int first_block) in format_chain() argument
436 unsigned int block = first_block, block1; in format_chain()
439 first_block); in format_chain()
536 unsigned int block, first_block, prev_block, last_block; in INFTL_mount() local
576 for (first_block = s->firstEUN; first_block <= s->lastEUN; first_block++) { in INFTL_mount()
577 if (s->PUtable[first_block] != BLOCK_NOTEXPLORED) in INFTL_mount()
583 block = first_block; in INFTL_mount()
626 "mark 0x%x?\n", block, first_block, in INFTL_mount()
[all...]
/kernel/linux/linux-6.6/drivers/mtd/
H A Dnftlmount.c369 static void check_sectors_in_chain(struct NFTLrecord *nftl, unsigned int first_block) in check_sectors_in_chain() argument
378 block = first_block; in check_sectors_in_chain()
423 static int calc_chain_length(struct NFTLrecord *nftl, unsigned int first_block) in calc_chain_length() argument
425 unsigned int length = 0, block = first_block; in calc_chain_length()
449 * if we stop the code, we may see again a valid chain if there was a first_block
455 static void format_chain(struct NFTLrecord *nftl, unsigned int first_block) in format_chain() argument
457 unsigned int block = first_block, block1; in format_chain()
459 printk("Formatting chain at block %d\n", first_block); in format_chain()
566 unsigned int block, first_block, is_first_block; in NFTL_mount() local
586 for (first_block in NFTL_mount()
[all...]
H A Dinftlmount.c427 static void format_chain(struct INFTLrecord *inftl, unsigned int first_block) in format_chain() argument
429 unsigned int block = first_block, block1; in format_chain()
432 first_block); in format_chain()
529 unsigned int block, first_block, prev_block, last_block; in INFTL_mount() local
565 for (first_block = s->firstEUN; first_block <= s->lastEUN; first_block++) { in INFTL_mount()
566 if (s->PUtable[first_block] != BLOCK_NOTEXPLORED) in INFTL_mount()
572 block = first_block; in INFTL_mount()
615 "mark 0x%x?\n", block, first_block, in INFTL_mount()
[all...]
/kernel/linux/linux-5.10/mm/
H A Dpage_io.c126 sector_t first_block; in generic_swapfile_activate() local
130 first_block = probe_block; in generic_swapfile_activate()
131 ret = bmap(inode, &first_block); in generic_swapfile_activate()
132 if (ret || !first_block) in generic_swapfile_activate()
138 if (first_block & (blocks_per_page - 1)) { in generic_swapfile_activate()
152 if (block != first_block + block_in_page) { in generic_swapfile_activate()
159 first_block >>= (PAGE_SHIFT - blkbits); in generic_swapfile_activate()
161 if (first_block < lowest_block) in generic_swapfile_activate()
162 lowest_block = first_block; in generic_swapfile_activate()
163 if (first_block > highest_bloc in generic_swapfile_activate()
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/intersil/orinoco/
H A Dfw.c107 const unsigned char *first_block; in orinoco_dl_firmware() local
159 first_block = (fw_entry->data + in orinoco_dl_firmware()
164 err = hermes_program(hw, first_block, end); in orinoco_dl_firmware()
170 first_block = (fw_entry->data + in orinoco_dl_firmware()
174 err = hermes_apply_pda_with_defaults(hw, first_block, end, pda, in orinoco_dl_firmware()
212 const unsigned char *first_block; in symbol_dl_image() local
220 first_block = ptr; in symbol_dl_image()
241 ret = hermes_program(hw, first_block, end); in symbol_dl_image()
247 size_t len = hermes_blocks_length(first_block, end); in symbol_dl_image()
248 ptr = first_block in symbol_dl_image()
[all...]
H A Dhermes_dld.h32 int hermes_program(struct hermes *hw, const char *first_block, const void *end);
50 size_t hermes_blocks_length(const char *first_block, const void *end);
H A Dhermes_dld.c254 hermes_blocks_length(const char *first_block, const void *end) in hermes_blocks_length() argument
256 const struct dblock *blk = (const struct dblock *) first_block; in hermes_blocks_length()
277 int hermes_program(struct hermes *hw, const char *first_block, const void *end) in hermes_program() argument
284 blk = (const struct dblock *) first_block; in hermes_program()
/kernel/linux/linux-6.6/drivers/net/wireless/intersil/orinoco/
H A Dfw.c107 const unsigned char *first_block; in orinoco_dl_firmware() local
159 first_block = (fw_entry->data + in orinoco_dl_firmware()
164 err = hermes_program(hw, first_block, end); in orinoco_dl_firmware()
170 first_block = (fw_entry->data + in orinoco_dl_firmware()
174 err = hermes_apply_pda_with_defaults(hw, first_block, end, pda, in orinoco_dl_firmware()
212 const unsigned char *first_block; in symbol_dl_image() local
220 first_block = ptr; in symbol_dl_image()
241 ret = hermes_program(hw, first_block, end); in symbol_dl_image()
247 size_t len = hermes_blocks_length(first_block, end); in symbol_dl_image()
248 ptr = first_block in symbol_dl_image()
[all...]
H A Dhermes_dld.h32 int hermes_program(struct hermes *hw, const char *first_block, const void *end);
50 size_t hermes_blocks_length(const char *first_block, const void *end);
H A Dhermes_dld.c254 hermes_blocks_length(const char *first_block, const void *end) in hermes_blocks_length() argument
256 const struct dblock *blk = (const struct dblock *) first_block; in hermes_blocks_length()
277 int hermes_program(struct hermes *hw, const char *first_block, const void *end) in hermes_program() argument
284 blk = (const struct dblock *) first_block; in hermes_program()
/kernel/linux/linux-6.6/mm/
H A Dpage_io.c107 sector_t first_block; in generic_swapfile_activate() local
111 first_block = probe_block; in generic_swapfile_activate()
112 ret = bmap(inode, &first_block); in generic_swapfile_activate()
113 if (ret || !first_block) in generic_swapfile_activate()
119 if (first_block & (blocks_per_page - 1)) { in generic_swapfile_activate()
133 if (block != first_block + block_in_page) { in generic_swapfile_activate()
140 first_block >>= (PAGE_SHIFT - blkbits); in generic_swapfile_activate()
142 if (first_block < lowest_block) in generic_swapfile_activate()
143 lowest_block = first_block; in generic_swapfile_activate()
144 if (first_block > highest_bloc in generic_swapfile_activate()
[all...]
/kernel/linux/linux-5.10/fs/udf/
H A Dtruncate.c36 int first_block = (nelen + inode->i_sb->s_blocksize - 1) >> in extent_trunc() local
51 if (last_block > first_block) { in extent_trunc()
57 first_block, in extent_trunc()
58 last_block - first_block); in extent_trunc()
191 sector_t first_block = inode->i_size >> sb->s_blocksize_bits, offset; in udf_truncate_extents() local
203 etype = inode_bmap(inode, first_block, &epos, &eloc, &elen, &offset); in udf_truncate_extents()
H A Dballoc.c196 uint16_t partition, uint32_t first_block, in udf_bitmap_prealloc_blocks()
208 if (first_block >= part_len) in udf_bitmap_prealloc_blocks()
211 if (first_block + block_count > part_len) in udf_bitmap_prealloc_blocks()
212 block_count = part_len - first_block; in udf_bitmap_prealloc_blocks()
215 block = first_block + (sizeof(struct spaceBitmapDesc) << 3); in udf_bitmap_prealloc_blocks()
523 uint32_t first_block, uint32_t block_count) in udf_table_prealloc_blocks()
533 if (first_block >= sbi->s_partmaps[partition].s_partition_len) in udf_table_prealloc_blocks()
550 while (first_block != eloc.logicalBlockNum && in udf_table_prealloc_blocks()
552 udf_debug("eloc=%u, elen=%u, first_block=%u\n", in udf_table_prealloc_blocks()
553 eloc.logicalBlockNum, elen, first_block); in udf_table_prealloc_blocks()
194 udf_bitmap_prealloc_blocks(struct super_block *sb, struct udf_bitmap *bitmap, uint16_t partition, uint32_t first_block, uint32_t block_count) udf_bitmap_prealloc_blocks() argument
521 udf_table_prealloc_blocks(struct super_block *sb, struct inode *table, uint16_t partition, uint32_t first_block, uint32_t block_count) udf_table_prealloc_blocks() argument
695 udf_prealloc_blocks(struct super_block *sb, struct inode *inode, uint16_t partition, uint32_t first_block, uint32_t block_count) udf_prealloc_blocks() argument
[all...]
/kernel/linux/linux-6.6/fs/udf/
H A Dtruncate.c32 int first_block = (nelen + inode->i_sb->s_blocksize - 1) >> in extent_trunc() local
47 if (last_block > first_block) { in extent_trunc()
53 first_block, in extent_trunc()
54 last_block - first_block); in extent_trunc()
187 sector_t first_block = inode->i_size >> sb->s_blocksize_bits, offset; in udf_truncate_extents() local
199 etype = inode_bmap(inode, first_block, &epos, &eloc, &elen, &offset); in udf_truncate_extents()
H A Dballoc.c192 uint16_t partition, uint32_t first_block, in udf_bitmap_prealloc_blocks()
204 if (first_block >= part_len) in udf_bitmap_prealloc_blocks()
207 if (first_block + block_count > part_len) in udf_bitmap_prealloc_blocks()
208 block_count = part_len - first_block; in udf_bitmap_prealloc_blocks()
211 block = first_block + (sizeof(struct spaceBitmapDesc) << 3); in udf_bitmap_prealloc_blocks()
519 uint32_t first_block, uint32_t block_count) in udf_table_prealloc_blocks()
529 if (first_block >= sbi->s_partmaps[partition].s_partition_len) in udf_table_prealloc_blocks()
546 while (first_block != eloc.logicalBlockNum && in udf_table_prealloc_blocks()
548 udf_debug("eloc=%u, elen=%u, first_block=%u\n", in udf_table_prealloc_blocks()
549 eloc.logicalBlockNum, elen, first_block); in udf_table_prealloc_blocks()
190 udf_bitmap_prealloc_blocks(struct super_block *sb, struct udf_bitmap *bitmap, uint16_t partition, uint32_t first_block, uint32_t block_count) udf_bitmap_prealloc_blocks() argument
517 udf_table_prealloc_blocks(struct super_block *sb, struct inode *table, uint16_t partition, uint32_t first_block, uint32_t block_count) udf_table_prealloc_blocks() argument
691 udf_prealloc_blocks(struct super_block *sb, struct inode *inode, uint16_t partition, uint32_t first_block, uint32_t block_count) udf_prealloc_blocks() argument
[all...]
/kernel/linux/linux-6.6/crypto/
H A Dhctr2.c60 u8 first_block[BLOCKCIPHER_BLOCK_SIZE]; member
247 crypto_xor(rctx->first_block, digest, BLOCKCIPHER_BLOCK_SIZE); in hctr2_finish()
250 scatterwalk_map_and_copy(rctx->first_block, req->dst, in hctr2_finish()
279 scatterwalk_map_and_copy(rctx->first_block, req->src, in hctr2_crypt()
296 crypto_xor(digest, rctx->first_block, BLOCKCIPHER_BLOCK_SIZE); in hctr2_crypt()
301 crypto_cipher_encrypt_one(tctx->blockcipher, rctx->first_block, in hctr2_crypt()
304 crypto_cipher_decrypt_one(tctx->blockcipher, rctx->first_block, in hctr2_crypt()
308 crypto_xor(digest, rctx->first_block, BLOCKCIPHER_BLOCK_SIZE); in hctr2_crypt()
/kernel/linux/linux-5.10/block/partitions/
H A Dsgi.c29 __be32 first_block; /* First logical block */ member
77 start = be32_to_cpu(p->first_block); in sgi_partition()
/kernel/linux/linux-6.6/block/partitions/
H A Dsgi.c29 __be32 first_block; /* First logical block */ member
76 start = be32_to_cpu(p->first_block); in sgi_partition()
/kernel/linux/linux-5.10/fs/ext4/
H A Dmigrate.c17 ext4_lblk_t first_block, last_block, curr_block; member
32 newext.ee_block = cpu_to_le32(lb->first_block); in finish_range()
33 newext.ee_len = cpu_to_le16(lb->last_block - lb->first_block + 1); in finish_range()
37 path = ext4_find_extent(inode, lb->first_block, NULL, 0); in finish_range()
51 lb->last_block - lb->first_block + 1, path); in finish_range()
85 lb->first_block = lb->last_block = lb->curr_block; in update_extent_range()
/kernel/linux/linux-6.6/fs/ext4/
H A Dmigrate.c17 ext4_lblk_t first_block, last_block, curr_block; member
32 newext.ee_block = cpu_to_le32(lb->first_block); in finish_range()
33 newext.ee_len = cpu_to_le16(lb->last_block - lb->first_block + 1); in finish_range()
37 path = ext4_find_extent(inode, lb->first_block, NULL, 0); in finish_range()
51 lb->last_block - lb->first_block + 1, path); in finish_range()
84 lb->first_block = lb->last_block = lb->curr_block; in update_extent_range()
/kernel/linux/linux-5.10/include/linux/mmc/
H A Dsh_mmcif.h148 unsigned long first_block, in sh_mmcif_boot_do_read()
170 ret = sh_mmcif_boot_do_read_single(base, first_block + k, in sh_mmcif_boot_do_read()
147 sh_mmcif_boot_do_read(void __iomem *base, unsigned long first_block, unsigned long nr_blocks, void *buf) sh_mmcif_boot_do_read() argument
/kernel/linux/linux-6.6/include/linux/platform_data/
H A Dsh_mmcif.h146 unsigned long first_block, in sh_mmcif_boot_do_read()
168 ret = sh_mmcif_boot_do_read_single(base, first_block + k, in sh_mmcif_boot_do_read()
145 sh_mmcif_boot_do_read(void __iomem *base, unsigned long first_block, unsigned long nr_blocks, void *buf) sh_mmcif_boot_do_read() argument
/kernel/linux/linux-6.6/drivers/bluetooth/
H A Dbtmtk.c117 u8 flag, first_block, retry; in btmtk_setup_firmware_79xx() local
137 first_block = 1; in btmtk_setup_firmware_79xx()
190 if (first_block == 1) { in btmtk_setup_firmware_79xx()
192 first_block = 0; in btmtk_setup_firmware_79xx()
/kernel/linux/linux-5.10/include/uapi/linux/
H A Defs_fs_sb.h53 __u32 first_block; /* first data block in filesystem */ member

Completed in 15 milliseconds

123