Home
last modified time | relevance | path

Searched refs:blk_addr (Results 1 – 19 of 19) sorted by relevance

/kernel/linux/linux-5.10/fs/f2fs/
Dsegment.h92 #define GET_SEGOFF_FROM_SEG0(sbi, blk_addr) ((blk_addr) - SEG0_BLKADDR(sbi)) argument
93 #define GET_SEGNO_FROM_SEG0(sbi, blk_addr) \ argument
94 (GET_SEGOFF_FROM_SEG0(sbi, blk_addr) >> (sbi)->log_blocks_per_seg)
95 #define GET_BLKOFF_FROM_SEG0(sbi, blk_addr) \ argument
96 (GET_SEGOFF_FROM_SEG0(sbi, blk_addr) & ((sbi)->blocks_per_seg - 1))
98 #define GET_SEGNO(sbi, blk_addr) \ argument
99 ((!__is_valid_data_blkaddr(blk_addr)) ? \
101 GET_SEGNO_FROM_SEG0(sbi, blk_addr)))
130 #define SECTOR_FROM_BLOCK(blk_addr) \ argument
131 (((sector_t)blk_addr) << F2FS_LOG_SECTORS_PER_BLOCK)
[all …]
Dnode.h56 block_t blk_addr; /* block address of the node */ member
68 #define nat_get_blkaddr(nat) ((nat)->ni.blk_addr)
69 #define nat_set_blkaddr(nat, b) ((nat)->ni.blk_addr = (b))
82 dst->blk_addr = src->blk_addr; in copy_node_info()
115 ni->blk_addr = le32_to_cpu(raw_ne->block_addr); in node_info_from_raw_nat()
123 raw_ne->block_addr = cpu_to_le32(ni->blk_addr); in raw_nat_from_node_info()
Dnode.c440 f2fs_bug_on(sbi, ni->blk_addr == NEW_ADDR); in set_node_addr()
448 f2fs_bug_on(sbi, ni->blk_addr != NULL_ADDR); in set_node_addr()
455 f2fs_bug_on(sbi, nat_get_blkaddr(e) != ni->blk_addr); in set_node_addr()
539 ni->blk_addr = nat_get_blkaddr(e); in f2fs_get_node_info()
842 f2fs_invalidate_blocks(sbi, ni.blk_addr); in truncate_node()
862 trace_f2fs_truncate_node(dn->inode, dn->nid, ni.blk_addr); in truncate_node()
1241 if (unlikely(new_ni.blk_addr != NULL_ADDR)) { in f2fs_new_node_page()
1249 new_ni.blk_addr = NULL_ADDR; in f2fs_new_node_page()
1306 if (unlikely(ni.blk_addr == NULL_ADDR) || in read_node_page()
1312 fio.new_blkaddr = fio.old_blkaddr = ni.blk_addr; in read_node_page()
[all …]
Dcheckpoint.c665 if (ni.blk_addr != NULL_ADDR) { in recover_orphan_inode()
789 orphan_blk->blk_addr = cpu_to_le16(index); in write_orphan_inodes()
801 orphan_blk->blk_addr = cpu_to_le16(index); in write_orphan_inodes()
1368 void *src, block_t blk_addr) in commit_checkpoint() argument
1379 struct page *page = f2fs_grab_meta_page(sbi, blk_addr); in commit_checkpoint()
Ddata.c395 block_t blk_addr, struct bio *bio) in f2fs_target_device() argument
402 if (FDEV(i).start_blk <= blk_addr && in f2fs_target_device()
403 FDEV(i).end_blk >= blk_addr) { in f2fs_target_device()
404 blk_addr -= FDEV(i).start_blk; in f2fs_target_device()
412 bio->bi_iter.bi_sector = SECTOR_FROM_BLOCK(blk_addr); in f2fs_target_device()
434 block_t blk_addr, struct bio *bio) in __same_bdev() argument
436 struct block_device *b = f2fs_target_device(sbi, blk_addr, NULL); in __same_bdev()
1865 phys = (__u64)blk_to_logical(inode, ni.blk_addr); in f2fs_xattr_fiemap()
1897 phys = (__u64)blk_to_logical(inode, ni.blk_addr); in f2fs_xattr_fiemap()
3339 block_t *blk_addr, bool *node_changed) in prepare_write_begin() argument
[all …]
Dsegment.c2545 void *src, block_t blk_addr) in f2fs_update_meta_page() argument
2547 struct page *page = f2fs_grab_meta_page(sbi, blk_addr); in f2fs_update_meta_page()
2555 struct f2fs_summary_block *sum_blk, block_t blk_addr) in write_sum_page() argument
2557 f2fs_update_meta_page(sbi, (void *)sum_blk, blk_addr); in write_sum_page()
2561 int type, block_t blk_addr) in write_current_sum_page() argument
2564 struct page *page = f2fs_grab_meta_page(sbi, blk_addr); in write_current_sum_page()
3972 block_t blk_addr = 0; in read_normal_summaries() local
3981 blk_addr = sum_blk_addr(sbi, NR_CURSEG_PERSIST_TYPE, type); in read_normal_summaries()
3983 blk_addr = sum_blk_addr(sbi, NR_CURSEG_DATA_TYPE, type); in read_normal_summaries()
3990 blk_addr = sum_blk_addr(sbi, NR_CURSEG_NODE_TYPE, in read_normal_summaries()
[all …]
Dinline.c805 byteaddr = (__u64)ni.blk_addr << inode->i_sb->s_blocksize_bits; in f2fs_inline_data_fiemap()
Dinode.c869 if (ni.blk_addr != NULL_ADDR) { in f2fs_handle_failed_inode()
Df2fs.h3384 block_t blk_addr);
3488 block_t blk_addr, struct bio *bio);
Dgc.c948 if (ni.blk_addr != start_addr + off) { in gc_node_segment()
/kernel/linux/linux-5.10/include/trace/events/
Dmmc.h33 __field(unsigned int, blk_addr)
62 __entry->blk_addr = mrq->data ? mrq->data->blk_addr : 0;
90 __entry->blk_addr, __entry->data_flags, __entry->tag,
Df2fs.h462 TP_PROTO(struct inode *inode, nid_t nid, block_t blk_addr),
464 TP_ARGS(inode, nid, blk_addr),
470 __field(block_t, blk_addr)
477 __entry->blk_addr = blk_addr;
483 (unsigned long long)__entry->blk_addr)
488 TP_PROTO(struct inode *inode, nid_t nid, block_t blk_addr),
490 TP_ARGS(inode, nid, blk_addr)
502 TP_PROTO(struct inode *inode, nid_t nid, block_t blk_addr),
504 TP_ARGS(inode, nid, blk_addr)
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_debugfs.c112 #define NDC_MAX_BANK(rvu, blk_addr) (rvu_read64(rvu, \ argument
113 blk_addr, NDC_AF_CONST) & 0xFF)
791 static void ndc_cache_stats(struct seq_file *s, int blk_addr, in ndc_cache_stats() argument
799 req = rvu_read64(rvu, blk_addr, NDC_AF_PORTX_RTX_RWX_REQ_PC in ndc_cache_stats()
801 lat = rvu_read64(rvu, blk_addr, NDC_AF_PORTX_RTX_RWX_LAT_PC in ndc_cache_stats()
803 out_req = rvu_read64(rvu, blk_addr, in ndc_cache_stats()
806 cant_alloc = rvu_read64(rvu, blk_addr, in ndc_cache_stats()
818 static int ndc_blk_cache_stats(struct seq_file *s, int idx, int blk_addr) in ndc_blk_cache_stats() argument
821 ndc_cache_stats(s, blk_addr, CACHING, NDC_READ_TRANS); in ndc_blk_cache_stats()
823 ndc_cache_stats(s, blk_addr, CACHING, NDC_WRITE_TRANS); in ndc_blk_cache_stats()
[all …]
/kernel/linux/linux-5.10/include/linux/mmc/
Dcore.h119 unsigned int blk_addr; /* block address */ member
/kernel/linux/linux-5.10/include/linux/
Df2fs_fs.h189 __le16 blk_addr; /* block index in current CP */ member
/kernel/linux/linux-5.10/drivers/mmc/host/
Dcqhci.c429 CQHCI_BLK_ADDR((u64)mrq->data->blk_addr); in cqhci_prep_task_desc()
/kernel/linux/linux-5.10/drivers/mmc/core/
Dcore.c279 mmc_hostname(host), mrq->tag, mrq->data->blk_addr); in mmc_mrq_pr_debug()
Dblock.c1290 brq->data.blk_addr = blk_rq_pos(req); in mmc_blk_data_prep()
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0030_linux_drivers_pci_misc_nvmem_of_mtd_mmc.patch5309 CQHCI_BLK_ADDR((u64)mrq->data->blk_addr);