Home
last modified time | relevance | path

Searched refs:block_nr (Results 1 – 18 of 18) sorted by relevance

/linux-6.6.21/drivers/edac/
Dedac_device.h299 unsigned int count, int inst_nr, int block_nr,
312 unsigned int count, int inst_nr, int block_nr,
325 int block_nr, const char *msg) in edac_device_handle_ce() argument
327 edac_device_handle_ce_count(edac_dev, 1, inst_nr, block_nr, msg); in edac_device_handle_ce()
340 int block_nr, const char *msg) in edac_device_handle_ue() argument
342 edac_device_handle_ue_count(edac_dev, 1, inst_nr, block_nr, msg); in edac_device_handle_ue()
Dedac_device.c527 unsigned int count, int inst_nr, int block_nr, in edac_device_handle_ce_count() argument
546 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ce_count()
550 inst_nr, block_nr, in edac_device_handle_ce_count()
556 block = instance->blocks + block_nr; in edac_device_handle_ce_count()
573 unsigned int count, int inst_nr, int block_nr, in edac_device_handle_ue_count() argument
592 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ue_count()
596 inst_nr, block_nr, in edac_device_handle_ue_count()
602 block = instance->blocks + block_nr; in edac_device_handle_ue_count()
/linux-6.6.21/fs/hfs/
Dextent.c249 u16 offset, u16 block_nr) in hfs_free_extents() argument
268 if (count <= block_nr) { in hfs_free_extents()
272 block_nr -= count; in hfs_free_extents()
274 count -= block_nr; in hfs_free_extents()
275 hfs_clear_vbm_bits(sb, start + count, block_nr); in hfs_free_extents()
277 block_nr = 0; in hfs_free_extents()
279 if (!block_nr || !i) in hfs_free_extents()
/linux-6.6.21/fs/hfsplus/
Dextents.c339 u32 offset, u32 block_nr) in hfsplus_free_extents() argument
362 if (count <= block_nr) { in hfsplus_free_extents()
371 block_nr -= count; in hfsplus_free_extents()
373 count -= block_nr; in hfsplus_free_extents()
374 err = hfsplus_block_free(sb, start + count, block_nr); in hfsplus_free_extents()
381 block_nr = 0; in hfsplus_free_extents()
383 if (!block_nr || !i) { in hfsplus_free_extents()
/linux-6.6.21/drivers/irqchip/
Dspear-shirq.c220 static int __init shirq_init(struct spear_shirq **shirq_blocks, int block_nr, in shirq_init() argument
233 for (i = 0; i < block_nr; i++) in shirq_init()
249 for (i = 0; i < block_nr; i++) { in shirq_init()
/linux-6.6.21/include/trace/events/
Djbd2.h330 unsigned long block_nr, unsigned long freed),
332 TP_ARGS(journal, first_tid, block_nr, freed),
338 __field(unsigned long, block_nr )
346 __entry->block_nr = block_nr;
353 __entry->block_nr, __entry->freed)
/linux-6.6.21/include/linux/platform_data/
Dsh_mmcif.h123 unsigned int block_nr, in sh_mmcif_boot_do_read_single() argument
135 sh_mmcif_boot_cmd(base, 0x11480000, block_nr * SH_MMCIF_BBS); in sh_mmcif_boot_do_read_single()
/linux-6.6.21/kernel/power/
Dsnapshot.c470 unsigned int levels_needed, block_nr; in add_rtree_block() local
473 block_nr = zone->blocks; in add_rtree_block()
477 while (block_nr) { in add_rtree_block()
479 block_nr >>= BM_RTREE_LEVEL_SHIFT; in add_rtree_block()
502 block_nr = zone->blocks; in add_rtree_block()
514 index = block_nr >> ((i - 1) * BM_RTREE_LEVEL_SHIFT); in add_rtree_block()
751 int i, block_nr; in memory_bm_find_bit() local
788 block_nr = (pfn - zone->start_pfn) >> BM_BLOCK_SHIFT; in memory_bm_find_bit()
793 index = block_nr >> ((i - 1) * BM_RTREE_LEVEL_SHIFT); in memory_bm_find_bit()
/linux-6.6.21/fs/ext4/
Dext4_jbd2.h254 #define ext4_forget(handle, is_metadata, inode, bh, block_nr) \ argument
256 (bh), (block_nr))
Dxattr.c133 sector_t block_nr, in ext4_xattr_block_csum() argument
138 __le64 dsk_block_nr = cpu_to_le64(block_nr); in ext4_xattr_block_csum()
/linux-6.6.21/drivers/md/
Ddm-era-target.c1219 sector_t block_nr = bio->bi_iter.bi_sector; in get_block() local
1222 (void) sector_div(block_nr, era->sectors_per_block); in get_block()
1224 block_nr >>= era->sectors_per_block_shift; in get_block()
1226 return block_nr; in get_block()
Ddm-cache-target.c778 sector_t block_nr = bio->bi_iter.bi_sector; in get_bio_block() local
781 (void) sector_div(block_nr, cache->sectors_per_block); in get_bio_block()
783 block_nr >>= cache->sectors_per_block_shift; in get_bio_block()
785 return to_oblock(block_nr); in get_bio_block()
Ddm-thin.c680 sector_t block_nr = bio->bi_iter.bi_sector; in get_bio_block() local
683 block_nr >>= pool->sectors_per_block_shift; in get_bio_block()
685 (void) sector_div(block_nr, pool->sectors_per_block); in get_bio_block()
687 return block_nr; in get_bio_block()
/linux-6.6.21/drivers/memstick/core/
Dms_block.c1255 static int msb_read_bad_block_table(struct msb_data *msb, int block_nr) in msb_read_bad_block_table() argument
1265 BUG_ON(block_nr > 1); in msb_read_bad_block_table()
1266 boot_block = &msb->boot_page[block_nr]; in msb_read_bad_block_table()
1267 pba = msb->boot_block_locations[block_nr]; in msb_read_bad_block_table()
1269 if (msb->boot_block_locations[block_nr] == MS_BLOCK_INVALID) in msb_read_bad_block_table()
/linux-6.6.21/drivers/s390/block/
Ddasd_fba.c101 int block_nr, int block_ct) in locate_record() argument
114 data->blk_nr = block_nr; in locate_record()
/linux-6.6.21/drivers/net/wireless/realtek/rtw88/
Dmac.c852 u32 block_nr; in write_firmware_page() local
859 block_nr = size >> DLFW_BLK_SIZE_SHIFT_LEGACY; in write_firmware_page()
867 for (block = 0; block < block_nr; block++) { in write_firmware_page()
/linux-6.6.21/fs/f2fs/
Ddata.c2141 sector_t block_nr; in f2fs_read_single_page() local
2174 block_nr = map->m_pblk + block_in_file - map->m_lblk; in f2fs_read_single_page()
2177 if (!f2fs_is_valid_blkaddr(F2FS_I_SB(inode), block_nr, in f2fs_read_single_page()
2203 *last_block_in_bio, block_nr) || in f2fs_read_single_page()
2210 bio = f2fs_grab_read_bio(inode, block_nr, nr_pages, in f2fs_read_single_page()
2224 f2fs_wait_on_block_writeback(inode, block_nr); in f2fs_read_single_page()
2232 *last_block_in_bio = block_nr; in f2fs_read_single_page()
/linux-6.6.21/net/packet/
Daf_packet.c4366 unsigned int block_nr = req->tp_block_nr; in alloc_pg_vec() local
4370 pg_vec = kcalloc(block_nr, sizeof(struct pgv), GFP_KERNEL | __GFP_NOWARN); in alloc_pg_vec()
4374 for (i = 0; i < block_nr; i++) { in alloc_pg_vec()
4384 free_pg_vec(pg_vec, order, block_nr); in alloc_pg_vec()