/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu_cpt.c | 29 reg = rvu_read64(rvu, blkaddr, CPT_AF_EXEX_STS(e)); \ 44 int blkaddr = block->addr; in rvu_cpt_af_flt_intr_handler() local 47 reg0 = rvu_read64(rvu, blkaddr, CPT_AF_FLTX_INT(0)); in rvu_cpt_af_flt_intr_handler() 48 reg1 = rvu_read64(rvu, blkaddr, CPT_AF_FLTX_INT(1)); in rvu_cpt_af_flt_intr_handler() 50 reg2 = rvu_read64(rvu, blkaddr, CPT_AF_FLTX_INT(2)); in rvu_cpt_af_flt_intr_handler() 60 rvu_write64(rvu, blkaddr, CPT_AF_FLTX_INT(0), reg0); in rvu_cpt_af_flt_intr_handler() 61 rvu_write64(rvu, blkaddr, CPT_AF_FLTX_INT(1), reg1); in rvu_cpt_af_flt_intr_handler() 63 rvu_write64(rvu, blkaddr, CPT_AF_FLTX_INT(2), reg2); in rvu_cpt_af_flt_intr_handler() 72 int blkaddr = block->addr; in rvu_cpt_af_rvu_intr_handler() local 75 reg = rvu_read64(rvu, blkaddr, CPT_AF_RVU_INT); in rvu_cpt_af_rvu_intr_handler() [all …]
|
D | rvu_nix.c | 25 struct nix_hw *nix_hw, int blkaddr); 82 int rvu_get_next_nix_blkaddr(struct rvu *rvu, int blkaddr) in rvu_get_next_nix_blkaddr() argument 87 if (blkaddr == 0) in rvu_get_next_nix_blkaddr() 88 return rvu->nix_blkaddr[blkaddr]; in rvu_get_next_nix_blkaddr() 91 if (rvu->nix_blkaddr[i] == blkaddr) in rvu_get_next_nix_blkaddr() 102 int blkaddr; in is_nixlf_attached() local 104 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, pcifunc); in is_nixlf_attached() 105 if (!pfvf->nixlf || blkaddr < 0) in is_nixlf_attached() 112 int blkaddr = 0, max = 0; in rvu_get_nixlf_count() local 115 blkaddr = rvu_get_next_nix_blkaddr(rvu, blkaddr); in rvu_get_nixlf_count() [all …]
|
D | rvu_devlink.c | 71 int blkaddr; in rvu_nix_af_rvu_intr_handler() local 75 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, 0); in rvu_nix_af_rvu_intr_handler() 76 if (blkaddr < 0) in rvu_nix_af_rvu_intr_handler() 80 intr = rvu_read64(rvu, blkaddr, NIX_AF_RVU_INT); in rvu_nix_af_rvu_intr_handler() 84 rvu_write64(rvu, blkaddr, NIX_AF_RVU_INT, intr); in rvu_nix_af_rvu_intr_handler() 85 rvu_write64(rvu, blkaddr, NIX_AF_RVU_INT_ENA_W1C, ~0ULL); in rvu_nix_af_rvu_intr_handler() 106 int blkaddr; in rvu_nix_af_rvu_gen_handler() local 110 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, 0); in rvu_nix_af_rvu_gen_handler() 111 if (blkaddr < 0) in rvu_nix_af_rvu_gen_handler() 115 intr = rvu_read64(rvu, blkaddr, NIX_AF_GEN_INT); in rvu_nix_af_rvu_gen_handler() [all …]
|
D | rvu_npc.c | 33 int blkaddr, u16 pcifunc); 88 int blkaddr; in rvu_npc_set_pkind() local 91 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0); in rvu_npc_set_pkind() 92 if (blkaddr < 0) in rvu_npc_set_pkind() 97 rvu_write64(rvu, blkaddr, NPC_AF_PKINDX_CPI_DEFX(pkind, 0), val); in rvu_npc_set_pkind() 118 int pkind, blkaddr; in npc_config_ts_kpuaction() local 127 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, pcifunc); in npc_config_ts_kpuaction() 128 if (blkaddr < 0) { in npc_config_ts_kpuaction() 133 val = rvu_read64(rvu, blkaddr, NPC_AF_PKINDX_ACTION0(pkind)); in npc_config_ts_kpuaction() 139 rvu_write64(rvu, blkaddr, NPC_AF_PKINDX_ACTION0(pkind), val); in npc_config_ts_kpuaction() [all …]
|
D | rvu_npa.c | 57 int blkaddr, npalf, rc = 0; in rvu_npa_aq_enq_inst() local 69 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, pcifunc); in rvu_npa_aq_enq_inst() 70 if (!pfvf->npalf || blkaddr < 0) in rvu_npa_aq_enq_inst() 73 block = &hw->block[blkaddr]; in rvu_npa_aq_enq_inst() 328 int blkaddr; in rvu_mbox_handler_npa_lf_alloc() local 338 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, pcifunc); in rvu_mbox_handler_npa_lf_alloc() 339 if (!pfvf->npalf || blkaddr < 0) in rvu_mbox_handler_npa_lf_alloc() 342 block = &hw->block[blkaddr]; in rvu_mbox_handler_npa_lf_alloc() 354 ctx_cfg = rvu_read64(rvu, blkaddr, NPA_AF_CONST1); in rvu_mbox_handler_npa_lf_alloc() 380 cfg = rvu_read64(rvu, blkaddr, NPA_AF_CONST); in rvu_mbox_handler_npa_lf_alloc() [all …]
|
D | rvu_cn10k.c | 285 int blkaddr; in rvu_set_channels_base() local 287 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, 0); in rvu_set_channels_base() 288 if (blkaddr < 0) in rvu_set_channels_base() 289 return blkaddr; in rvu_set_channels_base() 291 nix_const = rvu_read64(rvu, blkaddr, NIX_AF_CONST); in rvu_set_channels_base() 292 nix_const1 = rvu_read64(rvu, blkaddr, NIX_AF_CONST1); in rvu_set_channels_base() 434 static void __rvu_nix_set_channels(struct rvu *rvu, int blkaddr) in __rvu_nix_set_channels() argument 436 u64 nix_const1 = rvu_read64(rvu, blkaddr, NIX_AF_CONST1); in __rvu_nix_set_channels() 437 u64 nix_const = rvu_read64(rvu, blkaddr, NIX_AF_CONST); in __rvu_nix_set_channels() 451 cfg = rvu_read64(rvu, blkaddr, NIX_AF_LINKX_CFG(nix_link)); in __rvu_nix_set_channels() [all …]
|
D | rvu_npc_fs.c | 174 static bool npc_check_overlap(struct rvu *rvu, int blkaddr, in npc_check_overlap() argument 194 cfg = rvu_read64(rvu, blkaddr, in npc_check_overlap() 223 static bool npc_check_field(struct rvu *rvu, int blkaddr, enum key_fields type, in npc_check_field() argument 227 npc_check_overlap(rvu, blkaddr, type, 0, intf)) in npc_check_field() 304 static void npc_handle_multi_layer_fields(struct rvu *rvu, int blkaddr, u8 intf) in npc_handle_multi_layer_fields() argument 379 if (npc_check_overlap(rvu, blkaddr, NPC_ETYPE, start_lid, intf)) in npc_handle_multi_layer_fields() 403 if (npc_check_overlap(rvu, blkaddr, NPC_OUTER_VID, start_lid, intf)) in npc_handle_multi_layer_fields() 410 static void npc_scan_ldata(struct rvu *rvu, int blkaddr, u8 lid, in npc_scan_ldata() argument 476 static void npc_set_features(struct rvu *rvu, int blkaddr, u8 intf) in npc_set_features() argument 487 if (npc_check_field(rvu, blkaddr, hdr, intf)) in npc_set_features() [all …]
|
D | rvu.c | 255 int devnum, blkaddr = -ENODEV; in rvu_get_blkaddr() local 261 blkaddr = BLKADDR_NPC; in rvu_get_blkaddr() 264 blkaddr = BLKADDR_NPA; in rvu_get_blkaddr() 269 blkaddr = BLKADDR_NIX0; in rvu_get_blkaddr() 274 blkaddr = BLKADDR_SSO; in rvu_get_blkaddr() 277 blkaddr = BLKADDR_SSOW; in rvu_get_blkaddr() 280 blkaddr = BLKADDR_TIM; in rvu_get_blkaddr() 285 blkaddr = BLKADDR_CPT0; in rvu_get_blkaddr() 308 blkaddr = BLKADDR_NIX0; in rvu_get_blkaddr() 316 blkaddr = BLKADDR_NIX1; in rvu_get_blkaddr() [all …]
|
D | rvu_npc_hash.c | 121 static void npc_program_mkex_hash_rx(struct rvu *rvu, int blkaddr, in npc_program_mkex_hash_rx() argument 158 static void npc_program_mkex_hash_tx(struct rvu *rvu, int blkaddr, in npc_program_mkex_hash_tx() argument 197 void npc_config_secret_key(struct rvu *rvu, int blkaddr) in npc_config_secret_key() argument 209 rvu_write64(rvu, blkaddr, NPC_AF_INTFX_SECRET_KEY0(intf), in npc_config_secret_key() 211 rvu_write64(rvu, blkaddr, NPC_AF_INTFX_SECRET_KEY1(intf), in npc_config_secret_key() 213 rvu_write64(rvu, blkaddr, NPC_AF_INTFX_SECRET_KEY2(intf), in npc_config_secret_key() 218 void npc_program_mkex_hash(struct rvu *rvu, int blkaddr) in npc_program_mkex_hash() argument 230 npc_program_mkex_hash_rx(rvu, blkaddr, intf); in npc_program_mkex_hash() 231 npc_program_mkex_hash_tx(rvu, blkaddr, intf); in npc_program_mkex_hash() 237 int blkaddr, in npc_update_field_hash() argument [all …]
|
D | rvu_debugfs.c | 891 static bool rvu_dbg_is_valid_lf(struct rvu *rvu, int blkaddr, int lf, in rvu_dbg_is_valid_lf() argument 898 block = &hw->block[blkaddr]; in rvu_dbg_is_valid_lf() 956 int blkaddr; in rvu_dbg_qsize_display() local 975 blkaddr = BLKADDR_NPA; in rvu_dbg_qsize_display() 978 blkaddr = (!strcmp(current_dir->d_name.name, "nix1") ? in rvu_dbg_qsize_display() 982 if (!rvu_dbg_is_valid_lf(rvu, blkaddr, qsize_id, &pcifunc)) in rvu_dbg_qsize_display() 1000 int blkaddr; in rvu_dbg_qsize_write() local 1028 blkaddr = BLKADDR_NPA; in rvu_dbg_qsize_write() 1031 blkaddr = (!strcmp(current_dir->d_name.name, "nix1") ? in rvu_dbg_qsize_write() 1035 if (!rvu_dbg_is_valid_lf(rvu, blkaddr, lf, &pcifunc)) { in rvu_dbg_qsize_write() [all …]
|
D | rvu_npc_hash.h | 27 rvu_write64(rvu, blkaddr, \ 31 rvu_write64(rvu, blkaddr, \ 35 rvu_write64(rvu, blkaddr, \ 51 int blkaddr, 57 void npc_config_secret_key(struct rvu *rvu, int blkaddr); 58 void npc_program_mkex_hash(struct rvu *rvu, int blkaddr);
|
D | rvu.h | 54 int blkaddr; member 202 #define MSIX_BLKLF(blkaddr, lf) (((blkaddr) << 8) | ((lf) & 0xFF)) argument 317 int blkaddr; member 682 u16 rvu_get_rsrc_mapcount(struct rvu_pfvf *pfvf, int blkaddr); 686 bool is_block_implemented(struct rvu_hwinfo *hw, int blkaddr); 760 int blkaddr, u32 cfg); 763 void rvu_nix_lf_teardown(struct rvu *rvu, u16 pcifunc, int blkaddr, int npalf); 770 struct nix_hw *get_nix_hw(struct rvu_hwinfo *hw, int blkaddr); 771 int rvu_get_next_nix_blkaddr(struct rvu *rvu, int blkaddr); 774 struct nix_hw **nix_hw, int *blkaddr); [all …]
|
D | rvu_sdp.c | 99 int blkaddr; in rvu_mbox_handler_get_sdp_chan_info() local 105 blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, 0); in rvu_mbox_handler_get_sdp_chan_info() 107 rsp->num_chan = rvu_read64(rvu, blkaddr, NIX_AF_CONST1) & 0xFFFUL; in rvu_mbox_handler_get_sdp_chan_info()
|
/linux-6.1.9/drivers/crypto/marvell/octeontx2/ |
D | otx2_cpt_mbox_common.c | 46 u64 reg, u64 *val, int blkaddr) in otx2_cpt_add_read_af_reg() argument 65 reg_msg->blkaddr = blkaddr; in otx2_cpt_add_read_af_reg() 71 u64 reg, u64 val, int blkaddr) in otx2_cpt_add_write_af_reg() argument 90 reg_msg->blkaddr = blkaddr; in otx2_cpt_add_write_af_reg() 96 u64 reg, u64 *val, int blkaddr) in otx2_cpt_read_af_reg() argument 100 ret = otx2_cpt_add_read_af_reg(mbox, pdev, reg, val, blkaddr); in otx2_cpt_read_af_reg() 108 u64 reg, u64 val, int blkaddr) in otx2_cpt_write_af_reg() argument 112 ret = otx2_cpt_add_write_af_reg(mbox, pdev, reg, val, blkaddr); in otx2_cpt_write_af_reg()
|
D | otx2_cpt_common.h | 149 u64 reg, u64 *val, int blkaddr); 151 u64 reg, u64 val, int blkaddr); 153 u64 reg, u64 *val, int blkaddr); 155 u64 reg, u64 val, int blkaddr);
|
D | otx2_cptpf_ucode.c | 159 dma_addr_t dma_addr, int blkaddr) in __write_ucode_base() argument 163 (u64)dma_addr, blkaddr); in __write_ucode_base() 167 struct otx2_cptpf_dev *cptpf, int blkaddr) in cptx_set_ucode_base() argument 176 cptpf->pf_id << RVU_PFVF_PF_SHIFT, blkaddr); in cptx_set_ucode_base() 194 blkaddr); in cptx_set_ucode_base() 218 int blkaddr) in cptx_detach_and_disable_cores() argument 227 CPT_AF_EXEX_CTL2(i), ®, blkaddr); in cptx_detach_and_disable_cores() 238 blkaddr); in cptx_detach_and_disable_cores() 255 blkaddr); in cptx_detach_and_disable_cores() 272 blkaddr); in cptx_detach_and_disable_cores() [all …]
|
/linux-6.1.9/fs/f2fs/ |
D | recovery.c | 351 unsigned int ra_blocks, unsigned int blkaddr, in adjust_por_ra_blocks() argument 354 if (blkaddr + 1 == next_blkaddr) in adjust_por_ra_blocks() 368 block_t blkaddr; in find_fsync_dnodes() local 377 blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); in find_fsync_dnodes() 382 if (!f2fs_is_valid_blkaddr(sbi, blkaddr, META_POR)) in find_fsync_dnodes() 385 page = f2fs_get_tmp_page(sbi, blkaddr); in find_fsync_dnodes() 429 entry->blkaddr = blkaddr; in find_fsync_dnodes() 432 entry->last_dentry = blkaddr; in find_fsync_dnodes() 436 blkaddr == next_blkaddr_of_node(page)) { in find_fsync_dnodes() 438 __func__, blkaddr, in find_fsync_dnodes() [all …]
|
D | compress.c | 803 block_t blkaddr, bool in_task) in f2fs_end_read_compressed_page() argument 813 else if (blkaddr && in_task) in f2fs_end_read_compressed_page() 815 dic->inode->i_ino, blkaddr); in f2fs_end_read_compressed_page() 908 block_t blkaddr = data_blkaddr(dn->inode, dn->node_page, in f2fs_sanity_check_cluster() local 912 if (blkaddr == COMPRESS_ADDR) { in f2fs_sanity_check_cluster() 916 if (!__is_valid_data_blkaddr(blkaddr)) { in f2fs_sanity_check_cluster() 963 block_t blkaddr; in __f2fs_cluster_blocks() local 965 blkaddr = data_blkaddr(dn.inode, in __f2fs_cluster_blocks() 968 if (__is_valid_data_blkaddr(blkaddr)) in __f2fs_cluster_blocks() 971 if (blkaddr != NULL_ADDR) in __f2fs_cluster_blocks() [all …]
|
D | extent_cache.c | 532 pgoff_t fofs, block_t blkaddr, unsigned int len) in f2fs_update_extent_tree_range() argument 548 trace_f2fs_update_extent_tree_range(inode, fofs, blkaddr, len, 0); in f2fs_update_extent_tree_range() 635 if (blkaddr) { in f2fs_update_extent_tree_range() 637 set_extent_info(&ei, fofs, blkaddr, len); in f2fs_update_extent_tree_range() 668 pgoff_t fofs, block_t blkaddr, unsigned int llen, in f2fs_update_extent_tree_range_compressed() argument 679 trace_f2fs_update_extent_tree_range(inode, fofs, blkaddr, llen, c_len); in f2fs_update_extent_tree_range_compressed() 696 set_extent_info(&ei, fofs, blkaddr, llen); in f2fs_update_extent_tree_range_compressed() 866 block_t blkaddr; in f2fs_update_extent_cache() local 872 blkaddr = NULL_ADDR; in f2fs_update_extent_cache() 874 blkaddr = dn->data_blkaddr; in f2fs_update_extent_cache() [all …]
|
D | data.c | 234 block_t blkaddr = ctx->fs_blkaddr; in f2fs_handle_step_decompress() local 240 f2fs_end_read_compressed_page(page, false, blkaddr, in f2fs_handle_step_decompress() 245 blkaddr++; in f2fs_handle_step_decompress() 397 int f2fs_target_device_index(struct f2fs_sb_info *sbi, block_t blkaddr) in f2fs_target_device_index() argument 405 if (FDEV(i).start_blk <= blkaddr && FDEV(i).end_blk >= blkaddr) in f2fs_target_device_index() 1025 static struct bio *f2fs_grab_read_bio(struct inode *inode, block_t blkaddr, in f2fs_grab_read_bio() argument 1034 struct block_device *bdev = f2fs_target_device(sbi, blkaddr, §or); in f2fs_grab_read_bio() 1064 ctx->fs_blkaddr = blkaddr; in f2fs_grab_read_bio() 1074 block_t blkaddr, blk_opf_t op_flags, in f2fs_submit_page_read() argument 1080 bio = f2fs_grab_read_bio(inode, blkaddr, 1, op_flags, in f2fs_submit_page_read() [all …]
|
D | file.c | 396 static bool __found_offset(struct address_space *mapping, block_t blkaddr, in __found_offset() argument 401 if (__is_valid_data_blkaddr(blkaddr)) in __found_offset() 403 if (blkaddr == NEW_ADDR && in __found_offset() 408 if (blkaddr == NULL_ADDR) in __found_offset() 465 block_t blkaddr; in f2fs_seek_block() local 467 blkaddr = f2fs_data_blkaddr(&dn); in f2fs_seek_block() 469 if (__is_valid_data_blkaddr(blkaddr) && in f2fs_seek_block() 471 blkaddr, DATA_GENERIC_ENHANCE)) { in f2fs_seek_block() 476 if (__found_offset(file->f_mapping, blkaddr, in f2fs_seek_block() 576 block_t blkaddr = le32_to_cpu(*addr); in f2fs_truncate_data_blocks_range() local [all …]
|
D | checkpoint.c | 140 static bool __is_bitmap_valid(struct f2fs_sb_info *sbi, block_t blkaddr, in __is_bitmap_valid() argument 150 segno = GET_SEGNO(sbi, blkaddr); in __is_bitmap_valid() 151 offset = GET_BLKOFF_FROM_SEG0(sbi, blkaddr); in __is_bitmap_valid() 157 blkaddr, exist); in __is_bitmap_valid() 164 blkaddr, exist); in __is_bitmap_valid() 172 block_t blkaddr, int type) in f2fs_is_valid_blkaddr() argument 178 if (unlikely(blkaddr >= SIT_BLK_CNT(sbi))) in f2fs_is_valid_blkaddr() 182 if (unlikely(blkaddr >= MAIN_BLKADDR(sbi) || in f2fs_is_valid_blkaddr() 183 blkaddr < SM_I(sbi)->ssa_blkaddr)) in f2fs_is_valid_blkaddr() 187 if (unlikely(blkaddr >= SIT_I(sbi)->sit_base_addr || in f2fs_is_valid_blkaddr() [all …]
|
/linux-6.1.9/fs/erofs/ |
D | xattr.c | 15 erofs_blk_t blkaddr; member 75 it.blkaddr = erofs_blknr(iloc(sbi, vi->nid) + vi->inode_isize); in init_inode_xattrs() 79 it.kaddr = erofs_read_metabuf(&it.buf, sb, it.blkaddr, EROFS_KMAP); in init_inode_xattrs() 103 it.kaddr = erofs_read_metabuf(&it.buf, sb, ++it.blkaddr, in init_inode_xattrs() 149 it->blkaddr += erofs_blknr(it->ofs); in xattr_iter_fixup() 150 it->kaddr = erofs_read_metabuf(&it->buf, it->sb, it->blkaddr, in xattr_iter_fixup() 173 it->blkaddr = erofs_blknr(iloc(sbi, vi->nid) + inline_xattr_ofs); in inline_xattr_iter_begin() 176 it->kaddr = erofs_read_metabuf(&it->buf, inode->i_sb, it->blkaddr, in inline_xattr_iter_begin() 366 erofs_blk_t blkaddr = in shared_getxattr() local 370 it->it.kaddr = erofs_read_metabuf(&it->it.buf, sb, blkaddr, in shared_getxattr() [all …]
|
D | data.c | 33 erofs_blk_t blkaddr, enum erofs_kmap_type type) in erofs_bread() argument 36 erofs_off_t offset = blknr_to_addr(blkaddr); in erofs_bread() 71 erofs_blk_t blkaddr, enum erofs_kmap_type type) in erofs_read_metabuf() argument 75 blkaddr, type); in erofs_read_metabuf() 77 return erofs_bread(buf, sb->s_bdev->bd_inode, blkaddr, type); in erofs_read_metabuf() 171 __le32 *blkaddr = kaddr + erofs_blkoff(pos); in erofs_map_blocks() local 173 if (le32_to_cpu(*blkaddr) == EROFS_NULL_ADDR) { in erofs_map_blocks() 176 map->m_pa = blknr_to_addr(le32_to_cpu(*blkaddr)); in erofs_map_blocks() 183 switch (le32_to_cpu(idx->blkaddr)) { in erofs_map_blocks() 190 map->m_pa = blknr_to_addr(le32_to_cpu(idx->blkaddr)); in erofs_map_blocks()
|
/linux-6.1.9/drivers/net/wireless/intersil/orinoco/ |
D | hermes_dld.c | 280 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()
|