Home
last modified time | relevance | path

Searched refs:blkaddr (Results 1 – 25 of 28) sorted by relevance

12

/Linux-v5.10/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_npc.c35 int blkaddr, u16 pcifunc);
41 int blkaddr; in rvu_npc_set_pkind() local
44 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); in rvu_npc_set_pkind()
45 if (blkaddr < 0) in rvu_npc_set_pkind()
50 rvu_write64(rvu, blkaddr, NPC_AF_PKINDX_CPI_DEFX(pkind, 0), val); in rvu_npc_set_pkind()
71 int pkind, blkaddr; in npc_config_ts_kpuaction() local
80 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, pcifunc); in npc_config_ts_kpuaction()
81 if (blkaddr < 0) { in npc_config_ts_kpuaction()
86 val = rvu_read64(rvu, blkaddr, NPC_AF_PKINDX_ACTION0(pkind)); in npc_config_ts_kpuaction()
92 rvu_write64(rvu, blkaddr, NPC_AF_PKINDX_ACTION0(pkind), val); in npc_config_ts_kpuaction()
[all …]
Drvu_nix.c74 int blkaddr; in is_nixlf_attached() local
76 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); in is_nixlf_attached()
77 if (!pfvf->nixlf || blkaddr < 0) in is_nixlf_attached()
85 int blkaddr; in rvu_get_nixlf_count() local
87 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, 0); in rvu_get_nixlf_count()
88 if (blkaddr < 0) in rvu_get_nixlf_count()
90 block = &rvu->hw->block[blkaddr]; in rvu_get_nixlf_count()
98 int blkaddr; in nix_get_nixlf() local
100 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); in nix_get_nixlf()
101 if (!pfvf->nixlf || blkaddr < 0) in nix_get_nixlf()
[all …]
Drvu_npa.c60 int blkaddr, npalf, rc = 0; in rvu_npa_aq_enq_inst() local
72 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, pcifunc); in rvu_npa_aq_enq_inst()
73 if (!pfvf->npalf || blkaddr < 0) in rvu_npa_aq_enq_inst()
76 block = &hw->block[blkaddr]; in rvu_npa_aq_enq_inst()
331 int blkaddr; in rvu_mbox_handler_npa_lf_alloc() local
341 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, pcifunc); in rvu_mbox_handler_npa_lf_alloc()
342 if (!pfvf->npalf || blkaddr < 0) in rvu_mbox_handler_npa_lf_alloc()
345 block = &hw->block[blkaddr]; in rvu_mbox_handler_npa_lf_alloc()
357 ctx_cfg = rvu_read64(rvu, blkaddr, NPA_AF_CONST1); in rvu_mbox_handler_npa_lf_alloc()
383 cfg = rvu_read64(rvu, blkaddr, NPA_AF_CONST); in rvu_mbox_handler_npa_lf_alloc()
[all …]
Drvu.c216 int devnum, blkaddr = -ENODEV; in rvu_get_blkaddr() local
222 blkaddr = BLKADDR_NPC; in rvu_get_blkaddr()
225 blkaddr = BLKADDR_NPA; in rvu_get_blkaddr()
230 blkaddr = BLKADDR_NIX0; in rvu_get_blkaddr()
235 blkaddr = BLKADDR_SSO; in rvu_get_blkaddr()
238 blkaddr = BLKADDR_SSOW; in rvu_get_blkaddr()
241 blkaddr = BLKADDR_TIM; in rvu_get_blkaddr()
246 blkaddr = BLKADDR_CPT0; in rvu_get_blkaddr()
266 blkaddr = BLKADDR_NIX0; in rvu_get_blkaddr()
274 blkaddr = BLKADDR_CPT0; in rvu_get_blkaddr()
[all …]
Drvu.h144 #define MSIX_BLKLF(blkaddr, lf) (((blkaddr) << 8) | ((lf) & 0xFF)) argument
426 bool is_block_implemented(struct rvu_hwinfo *hw, int blkaddr);
482 int blkaddr, u32 cfg);
485 void rvu_nix_lf_teardown(struct rvu *rvu, u16 pcifunc, int blkaddr, int npalf);
511 int blkaddr, int *alloc_cnt,
514 int blkaddr, int *alloc_cnt,
Drvu_debugfs.c232 int blkaddr; in rvu_dbg_is_valid_lf() local
234 blkaddr = rvu_get_blkaddr(rvu, blktype, 0); in rvu_dbg_is_valid_lf()
235 if (blkaddr < 0) { in rvu_dbg_is_valid_lf()
241 block = &hw->block[blkaddr]; in rvu_dbg_is_valid_lf()
1529 u16 pcifunc, int blkaddr) in rvu_print_npc_mcam_info() argument
1538 rvu_npc_get_mcam_entry_alloc_info(rvu, pcifunc, blkaddr, in rvu_print_npc_mcam_info()
1540 rvu_npc_get_mcam_counter_alloc_info(rvu, pcifunc, blkaddr, in rvu_print_npc_mcam_info()
1566 int pf, vf, numvfs, blkaddr; in rvu_dbg_npc_mcam_info_display() local
1571 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); in rvu_dbg_npc_mcam_info_display()
1572 if (blkaddr < 0) in rvu_dbg_npc_mcam_info_display()
[all …]
Drvu_cgx.c665 int blkaddr; in rvu_cgx_nix_cuml_stats() local
682 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); in rvu_cgx_nix_cuml_stats()
683 if (blkaddr < 0) in rvu_cgx_nix_cuml_stats()
685 block = &rvu->hw->block[blkaddr]; in rvu_cgx_nix_cuml_stats()
693 *stat += rvu_read64(rvu, blkaddr, in rvu_cgx_nix_cuml_stats()
696 *stat += rvu_read64(rvu, blkaddr, in rvu_cgx_nix_cuml_stats()
/Linux-v5.10/fs/f2fs/
Drecovery.c335 block_t blkaddr; in find_fsync_dnodes() local
343 blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); in find_fsync_dnodes()
348 if (!f2fs_is_valid_blkaddr(sbi, blkaddr, META_POR)) in find_fsync_dnodes()
351 page = f2fs_get_tmp_page(sbi, blkaddr); in find_fsync_dnodes()
395 entry->blkaddr = blkaddr; in find_fsync_dnodes()
398 entry->last_dentry = blkaddr; in find_fsync_dnodes()
402 blkaddr == next_blkaddr_of_node(page)) { in find_fsync_dnodes()
404 __func__, blkaddr, in find_fsync_dnodes()
412 blkaddr = next_blkaddr_of_node(page); in find_fsync_dnodes()
415 f2fs_ra_meta_pages_cond(sbi, blkaddr); in find_fsync_dnodes()
[all …]
Dfile.c379 static bool __found_offset(struct address_space *mapping, block_t blkaddr, in __found_offset() argument
384 if (__is_valid_data_blkaddr(blkaddr)) in __found_offset()
386 if (blkaddr == NEW_ADDR && in __found_offset()
391 if (blkaddr == NULL_ADDR) in __found_offset()
443 block_t blkaddr; in f2fs_seek_block() local
445 blkaddr = f2fs_data_blkaddr(&dn); in f2fs_seek_block()
447 if (__is_valid_data_blkaddr(blkaddr) && in f2fs_seek_block()
449 blkaddr, DATA_GENERIC_ENHANCE)) { in f2fs_seek_block()
454 if (__found_offset(file->f_mapping, blkaddr, in f2fs_seek_block()
557 block_t blkaddr = le32_to_cpu(*addr); in f2fs_truncate_data_blocks_range() local
[all …]
Dcheckpoint.c132 static bool __is_bitmap_valid(struct f2fs_sb_info *sbi, block_t blkaddr, in __is_bitmap_valid() argument
142 segno = GET_SEGNO(sbi, blkaddr); in __is_bitmap_valid()
143 offset = GET_BLKOFF_FROM_SEG0(sbi, blkaddr); in __is_bitmap_valid()
149 blkaddr, exist); in __is_bitmap_valid()
157 block_t blkaddr, int type) in f2fs_is_valid_blkaddr() argument
163 if (unlikely(blkaddr >= SIT_BLK_CNT(sbi))) in f2fs_is_valid_blkaddr()
167 if (unlikely(blkaddr >= MAIN_BLKADDR(sbi) || in f2fs_is_valid_blkaddr()
168 blkaddr < SM_I(sbi)->ssa_blkaddr)) in f2fs_is_valid_blkaddr()
172 if (unlikely(blkaddr >= SIT_I(sbi)->sit_base_addr || in f2fs_is_valid_blkaddr()
173 blkaddr < __start_cp_addr(sbi))) in f2fs_is_valid_blkaddr()
[all …]
Ddata.c417 int f2fs_target_device_index(struct f2fs_sb_info *sbi, block_t blkaddr) in f2fs_target_device_index() argument
425 if (FDEV(i).start_blk <= blkaddr && FDEV(i).end_blk >= blkaddr) in f2fs_target_device_index()
1028 static struct bio *f2fs_grab_read_bio(struct inode *inode, block_t blkaddr, in f2fs_grab_read_bio() argument
1044 f2fs_target_device(sbi, blkaddr, bio); in f2fs_grab_read_bio()
1076 block_t blkaddr, int op_flags, bool for_write) in f2fs_submit_page_read() argument
1081 bio = f2fs_grab_read_bio(inode, blkaddr, 1, op_flags, in f2fs_submit_page_read()
1087 f2fs_wait_on_block_writeback(inode, blkaddr); in f2fs_submit_page_read()
1128 void f2fs_update_data_blkaddr(struct dnode_of_data *dn, block_t blkaddr) in f2fs_update_data_blkaddr() argument
1130 dn->data_blkaddr = blkaddr; in f2fs_update_data_blkaddr()
1155 block_t blkaddr = f2fs_data_blkaddr(dn); in f2fs_reserve_new_blocks() local
[all …]
Dextent_cache.c530 pgoff_t fofs, block_t blkaddr, unsigned int len) in f2fs_update_extent_tree_range() argument
546 trace_f2fs_update_extent_tree_range(inode, fofs, blkaddr, len); in f2fs_update_extent_tree_range()
633 if (blkaddr) { in f2fs_update_extent_tree_range()
635 set_extent_info(&ei, fofs, blkaddr, len); in f2fs_update_extent_tree_range()
824 block_t blkaddr; in f2fs_update_extent_cache() local
830 blkaddr = NULL_ADDR; in f2fs_update_extent_cache()
832 blkaddr = dn->data_blkaddr; in f2fs_update_extent_cache()
836 f2fs_update_extent_tree_range(dn->inode, fofs, blkaddr, 1); in f2fs_update_extent_cache()
840 pgoff_t fofs, block_t blkaddr, unsigned int len) in f2fs_update_extent_cache_range() argument
846 f2fs_update_extent_tree_range(dn->inode, fofs, blkaddr, len); in f2fs_update_extent_cache_range()
Dcompress.c880 block_t blkaddr; in __f2fs_cluster_blocks() local
882 blkaddr = data_blkaddr(dn.inode, in __f2fs_cluster_blocks()
885 if (__is_valid_data_blkaddr(blkaddr)) in __f2fs_cluster_blocks()
888 if (blkaddr != NULL_ADDR) in __f2fs_cluster_blocks()
1251 block_t blkaddr; in f2fs_write_compressed_pages() local
1253 blkaddr = f2fs_data_blkaddr(&dn); in f2fs_write_compressed_pages()
1255 fio.old_blkaddr = blkaddr; in f2fs_write_compressed_pages()
1259 if (blkaddr == COMPRESS_ADDR) in f2fs_write_compressed_pages()
1261 if (__is_valid_data_blkaddr(blkaddr)) in f2fs_write_compressed_pages()
1262 f2fs_invalidate_blocks(sbi, blkaddr); in f2fs_write_compressed_pages()
[all …]
Dsegment.c1288 struct discard_cmd *dc, block_t blkaddr) in __punch_discard_cmd() argument
1301 if (blkaddr > di.lstart) { in __punch_discard_cmd()
1302 dc->len = blkaddr - dc->lstart; in __punch_discard_cmd()
1308 if (blkaddr < di.lstart + di.len - 1) { in __punch_discard_cmd()
1310 __insert_discard_tree(sbi, dc->bdev, blkaddr + 1, in __punch_discard_cmd()
1311 di.start + blkaddr + 1 - di.lstart, in __punch_discard_cmd()
1312 di.lstart + di.len - 1 - blkaddr, in __punch_discard_cmd()
1677 static void f2fs_wait_discard_bio(struct f2fs_sb_info *sbi, block_t blkaddr) in f2fs_wait_discard_bio() argument
1685 NULL, blkaddr); in f2fs_wait_discard_bio()
1688 __punch_discard_cmd(sbi, dc, blkaddr); in f2fs_wait_discard_bio()
[all …]
Df2fs.h366 block_t blkaddr; /* block address locating the last fsync */ member
3129 block_t blkaddr, int type);
3131 block_t blkaddr, int type) in verify_blkaddr() argument
3133 if (!f2fs_is_valid_blkaddr(sbi, blkaddr, type)) { in verify_blkaddr()
3135 blkaddr, type); in verify_blkaddr()
3140 static inline bool __is_valid_data_blkaddr(block_t blkaddr) in __is_valid_data_blkaddr() argument
3142 if (blkaddr == NEW_ADDR || blkaddr == NULL_ADDR || in __is_valid_data_blkaddr()
3143 blkaddr == COMPRESS_ADDR) in __is_valid_data_blkaddr()
3344 bool f2fs_is_checkpointed_data(struct f2fs_sb_info *sbi, block_t blkaddr);
3390 void f2fs_wait_on_block_writeback(struct inode *inode, block_t blkaddr);
[all …]
Dnode.h296 static inline void fill_node_footer_blkaddr(struct page *page, block_t blkaddr) in fill_node_footer_blkaddr() argument
306 rn->footer.next_blkaddr = cpu_to_le32(blkaddr); in fill_node_footer_blkaddr()
Dgc.c964 struct node_info *dni, block_t blkaddr, unsigned int *nofs) in is_alive() argument
993 if (source_blkaddr != blkaddr) { in is_alive()
995 unsigned int segno = GET_SEGNO(sbi, blkaddr); in is_alive()
996 unsigned long offset = GET_BLKOFF_FROM_SEG0(sbi, blkaddr); in is_alive()
1001 blkaddr, source_blkaddr, segno); in is_alive()
/Linux-v5.10/fs/erofs/
Dxattr.c15 erofs_blk_t blkaddr; member
89 it.blkaddr = erofs_blknr(iloc(sbi, vi->nid) + vi->inode_isize); in init_inode_xattrs()
92 it.page = erofs_get_meta_page(sb, it.blkaddr); in init_inode_xattrs()
122 it.page = erofs_get_meta_page(sb, ++it.blkaddr); in init_inode_xattrs()
170 it->blkaddr += erofs_blknr(it->ofs); in xattr_iter_fixup()
172 it->page = erofs_get_meta_page(it->sb, it->blkaddr); in xattr_iter_fixup()
200 it->blkaddr = erofs_blknr(iloc(sbi, vi->nid) + inline_xattr_ofs); in inline_xattr_iter_begin()
203 it->page = erofs_get_meta_page(inode->i_sb, it->blkaddr); in inline_xattr_iter_begin()
396 erofs_blk_t blkaddr = in shared_getxattr() local
401 if (!i || blkaddr != it->it.blkaddr) { in shared_getxattr()
[all …]
Dinode.c24 erofs_blk_t blkaddr, nblks = 0; in erofs_read_inode() local
31 blkaddr = erofs_blknr(inode_loc); in erofs_read_inode()
35 __func__, vi->nid, *ofs, blkaddr); in erofs_read_inode()
37 page = erofs_get_meta_page(sb, blkaddr); in erofs_read_inode()
74 page = erofs_get_meta_page(sb, blkaddr + 1); in erofs_read_inode()
Ddata.c35 struct page *erofs_get_meta_page(struct super_block *sb, erofs_blk_t blkaddr) in erofs_get_meta_page() argument
40 page = read_cache_page_gfp(mapping, blkaddr, in erofs_get_meta_page()
Derofs_fs.h269 __le32 blkaddr; member
Dinternal.h357 struct page *erofs_get_meta_page(struct super_block *sb, erofs_blk_t blkaddr);
/Linux-v5.10/drivers/net/wireless/intersil/orinoco/
Dhermes_dld.c280 u32 blkaddr; in hermes_program() local
289 blkaddr = dblock_addr(blk); in hermes_program()
292 while ((blkaddr != BLOCK_END) && in hermes_program()
295 "to address 0x%08x\n", blklen, blkaddr); in hermes_program()
297 err = hw->ops->program(hw, blk->data, blkaddr, blklen); in hermes_program()
306 blkaddr = dblock_addr(blk); in hermes_program()
/Linux-v5.10/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_common.h322 u64 blkaddr; in otx2_get_regaddr() local
326 blkaddr = nic->nix_blkaddr; in otx2_get_regaddr()
329 blkaddr = BLKADDR_NPA; in otx2_get_regaddr()
332 blkaddr = BLKADDR_RVUM; in otx2_get_regaddr()
337 offset |= (blkaddr << RVU_FUNC_BLKADDR_SHIFT); in otx2_get_regaddr()
/Linux-v5.10/include/trace/events/
Derofs.h62 __field(erofs_blk_t, blkaddr )
70 __entry->blkaddr = erofs_blknr(iloc(EROFS_I_SB(inode), __entry->nid));
77 __entry->blkaddr, __entry->ofs,

12