/linux-master/include/linux/mtd/ |
H A D | blktrans.h | 49 unsigned long block, char *buffer); 51 unsigned long block, char *buffer); 53 unsigned long block, unsigned nr_blocks);
|
/linux-master/crypto/ |
H A D | md5.c | 125 le32_to_cpu_array(ctx->block, sizeof(ctx->block) / sizeof(u32)); 126 md5_transform(ctx->hash, ctx->block); 145 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); 150 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), 155 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), 162 while (len >= sizeof(mctx->block)) { 163 memcpy(mctx->block, dat [all...] |
/linux-master/drivers/edac/ |
H A D | edac_device.c | 66 unsigned instance, block, attr; local 126 /* Initialize every block in each instance */ 127 for (block = 0; block < nr_blocks; block++) { 128 blk = &blk_p[block]; 131 "%s%d", blk_name, block + off_val); 133 edac_dbg(4, "instance=%d inst_p=%p block=#%d block_p=%p name='%s'\n", 134 instance, inst, block, blk, blk->name); 137 * then continue on to next block iteratio 531 struct edac_device_block *block = NULL; local 577 struct edac_device_block *block = NULL; local [all...] |
H A D | edac_device_sysfs.c | 406 /* edac_dev -> instance -> block information */ 413 * Set of low-level block attribute show functions 418 struct edac_device_block *block = to_block(kobj); local 420 return sprintf(data, "%u\n", block->counters.ue_count); 426 struct edac_device_block *block = to_block(kobj); local 428 return sprintf(data, "%u\n", block->counters.ce_count); 431 /* DEVICE block kobject release() function */ 434 struct edac_device_block *block; local 439 block = to_block(kobj); 441 /* map from 'block kob 510 edac_device_create_block(struct edac_device_ctl_info *edac_dev, struct edac_device_instance *instance, struct edac_device_block *block) argument 580 edac_device_delete_block(struct edac_device_ctl_info *edac_dev, struct edac_device_block *block) argument [all...] |
/linux-master/fs/squashfs/ |
H A D | inode.c | 15 * location of the compressed metadata block containing the inode, and the byte 16 * offset into that block where the inode is placed (<block, offset>). 107 u64 block = SQUASHFS_INODE_BLK(ino) + msblk->inode_table; local 118 err = squashfs_read_metadata(sb, sqshb_ino, &block, 127 block = SQUASHFS_INODE_BLK(ino) + msblk->inode_table; 138 err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset, 166 squashfs_i(inode)->block_list_start = block; 172 offset, squashfs_i(inode)->start, block, offset); 181 err = squashfs_read_metadata(sb, sqsh_ino, &block, [all...] |
H A D | cache.c | 49 * Look-up block in cache, and increment usage count. If not in cache, read 53 struct squashfs_cache *cache, u64 block, int length) 62 if (cache->entry[i].block == block) { 103 entry->block = block; 110 entry->length = squashfs_read_data(sb, block, length, 160 TRACE("Got %s %d, start block %lld, refcount %d, error %d\n", 161 cache->name, i, entry->block, entry->refcount, entry->error); 165 block); 52 squashfs_cache_get(struct super_block *sb, struct squashfs_cache *cache, u64 block, int length) argument 331 squashfs_read_metadata(struct super_block *sb, void *buffer, u64 *block, int *offset, int length) argument 406 squashfs_read_table(struct super_block *sb, u64 block, int length) argument [all...] |
H A D | dir.c | 32 * metadata block containing it. 101 u64 block = squashfs_i(inode)->start + msblk->directory_table; local 107 TRACE("Entered squashfs_readdir [%llx:%x]\n", block, offset); 144 length = get_dir_index_using_offset(inode->i_sb, &block, &offset, 154 err = squashfs_read_metadata(inode->i_sb, &dirh, &block, 170 err = squashfs_read_metadata(inode->i_sb, dire, &block, 182 &block, &offset, size); 213 ERROR("Unable to read directory block [%llx:%x]\n", block, offset);
|
/linux-master/mm/ |
H A D | percpu.c | 48 * map is only updated on allocation. Each metadata block contains 309 * @block: block of interest 313 * Check to see if the allocation can fit in the block's contig hint. 314 * Note, a chunk uses the same hints as a block so this can also check against 317 static bool pcpu_check_block_hint(struct pcpu_block_md *block, int bits, argument 320 int bit_off = ALIGN(block->contig_hint_start, align) - 321 block->contig_hint_start; 323 return bit_off + bits <= block->contig_hint; 328 * @block 337 pcpu_next_hint(struct pcpu_block_md *block, int alloc_bits) argument 370 struct pcpu_block_md *block; local 425 struct pcpu_block_md *block; local 630 pcpu_block_update(struct pcpu_block_md *block, int start, int end) argument 718 struct pcpu_block_md *block; local 776 struct pcpu_block_md *block = chunk->md_blocks + index; local 813 struct pcpu_block_md *s_block, *e_block, *block; local 967 struct pcpu_block_md *s_block, *e_block, *block; local 1309 pcpu_init_md_block(struct pcpu_block_md *block, int nr_bits) argument 2129 struct pcpu_block_md *block; local [all...] |
/linux-master/drivers/s390/block/ |
H A D | dasd_fba.c | 118 struct dasd_block *block; local 133 block = dasd_alloc_block(); 134 if (IS_ERR(block)) { 136 "dasd block structure"); 139 return PTR_ERR(block); 141 device->block = block; 142 block->base = device; 150 device->block = NULL; 151 dasd_free_block(block); 182 dasd_fba_do_analysis(struct dasd_block *block) argument 201 dasd_fba_fill_geometry(struct dasd_block *block, struct hd_geometry *geo) argument 311 dasd_fba_build_cp_discard( struct dasd_device *memdev, struct dasd_block *block, struct request *req) argument 424 dasd_fba_build_cp_regular( struct dasd_device *memdev, struct dasd_block *block, struct request *req) argument 551 dasd_fba_build_cp(struct dasd_device *memdev, struct dasd_block *block, struct request *req) argument 751 dasd_fba_max_sectors(struct dasd_block *block) argument [all...] |
/linux-master/fs/xfs/scrub/ |
H A D | btree.c | 83 /* Record btree block corruption. */ 145 struct xfs_btree_block *block; local 149 block = xfs_btree_get_block(cur, 0, &bp); 150 rec = xfs_btree_rec_addr(cur, cur->bc_levels[0].ptr, block); 193 struct xfs_btree_block *block; local 197 block = xfs_btree_get_block(cur, level, &bp); 198 key = xfs_btree_key_addr(cur, cur->bc_levels[level].ptr, block); 212 /* Is this block's low key at least as large as the parent low key? */ 221 /* Is this block's high key no larger than the parent high key? */ 222 key = xfs_btree_high_key_addr(cur, cur->bc_levels[level].ptr, block); 318 xchk_btree_block_check_siblings( struct xchk_btree *bs, struct xfs_btree_block *block) argument 490 xchk_btree_check_minrecs( struct xchk_btree *bs, int level, struct xfs_btree_block *block) argument 538 xchk_btree_block_check_keys( struct xchk_btree *bs, int level, struct xfs_btree_block *block) argument 632 xchk_btree_block_keys( struct xchk_btree *bs, int level, struct xfs_btree_block *block) argument 688 struct xfs_btree_block *block; local [all...] |
/linux-master/drivers/gpu/drm/amd/display/dc/dce/ |
H A D | dce_panel_cntl.h | 32 #define DCE_PANEL_CNTL_SR(reg_name, block)\ 33 .reg_name = mm ## block ## _ ## reg_name 45 #define DCN_PANEL_CNTL_SR(reg_name, block)\ 46 .reg_name = BASE(mm ## block ## _ ## reg_name ## _BASE_IDX) + \ 47 mm ## block ## _ ## reg_name
|
/linux-master/drivers/gpu/drm/omapdrm/ |
H A D | omap_dmm_tiler.h | 29 struct list_head alloc_node; /* node for global block list */ 34 /* bits representing the same slot in DMM-TILER hw-block */ 38 /* bits reserved to describe coordinates in DMM-TILER hw-block */ 82 int tiler_pin(struct tiler_block *block, struct page **pages, 84 int tiler_unpin(struct tiler_block *block); 90 int tiler_release(struct tiler_block *block); 93 dma_addr_t tiler_ssptr(struct tiler_block *block); 94 dma_addr_t tiler_tsptr(struct tiler_block *block, u32 orient,
|
H A D | omap_dmm_tiler.c | 507 int tiler_pin(struct tiler_block *block, struct page **pages, argument 512 ret = fill(&block->area, pages, npages, roll, wait); 515 tiler_unpin(block); 520 int tiler_unpin(struct tiler_block *block) argument 522 return fill(&block->area, NULL, 0, 0, false); 531 struct tiler_block *block; local 537 block = kzalloc(sizeof(*block), GFP_KERNEL); 538 if (!block) 553 block 572 struct tiler_block *block = kzalloc(sizeof(*block), GFP_KERNEL); local 595 tiler_release(struct tiler_block *block) argument 667 tiler_ssptr(struct tiler_block *block) argument 676 tiler_tsptr(struct tiler_block *block, u32 orient, u32 x, u32 y) argument 728 struct tiler_block *block, *_block; local 1066 struct tiler_block *block; local [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_acl.c | 50 struct mlxsw_sp_flow_block *block; member in struct:mlxsw_sp_acl_ruleset_ht_key 107 struct mlxsw_sp_flow_block *block, 110 struct mlxsw_sp_acl_ruleset *ruleset = block->ruleset_zero; 118 struct mlxsw_sp_flow_block *block, 121 struct mlxsw_sp_acl_ruleset *ruleset = block->ruleset_zero; 131 struct mlxsw_sp_flow_block *block) 136 block->ruleset_zero = ruleset; 137 list_for_each_entry(binding, &block->binding_list, list) { 138 err = mlxsw_sp_acl_ruleset_bind(mlxsw_sp, block, binding); 145 list_for_each_entry_continue_reverse(binding, &block 106 mlxsw_sp_acl_ruleset_bind(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_flow_block *block, struct mlxsw_sp_flow_block_binding *binding) argument 117 mlxsw_sp_acl_ruleset_unbind(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_flow_block *block, struct mlxsw_sp_flow_block_binding *binding) argument 129 mlxsw_sp_acl_ruleset_block_bind(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_ruleset *ruleset, struct mlxsw_sp_flow_block *block) argument 154 mlxsw_sp_acl_ruleset_block_unbind(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_ruleset *ruleset, struct mlxsw_sp_flow_block *block) argument 166 mlxsw_sp_acl_ruleset_create(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_flow_block *block, u32 chain_index, const struct mlxsw_sp_acl_profile_ops *ops, struct mlxsw_afk_element_usage *tmplt_elusage) argument 238 __mlxsw_sp_acl_ruleset_lookup(struct mlxsw_sp_acl *acl, struct mlxsw_sp_flow_block *block, u32 chain_index, const struct mlxsw_sp_acl_profile_ops *ops) argument 253 mlxsw_sp_acl_ruleset_lookup(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_flow_block *block, u32 chain_index, enum mlxsw_sp_acl_profile profile) argument 271 mlxsw_sp_acl_ruleset_get(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_flow_block *block, u32 chain_index, enum mlxsw_sp_acl_profile profile, struct mlxsw_afk_element_usage *tmplt_elusage) argument 448 mlxsw_sp_acl_rulei_act_mirror(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, struct mlxsw_sp_flow_block *block, struct net_device *out_dev, struct netlink_ext_ack *extack) argument 788 mlxsw_sp_acl_rulei_act_sample(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, struct mlxsw_sp_flow_block *block, struct psample_group *psample_group, u32 rate, u32 trunc_size, bool truncate, struct netlink_ext_ack *extack) argument 864 struct mlxsw_sp_flow_block *block = ruleset->ht_key.block; local 908 struct mlxsw_sp_flow_block *block = ruleset->ht_key.block; local [all...] |
/linux-master/drivers/acpi/arm64/ |
H A D | gtdt.c | 191 static int __init gtdt_parse_timer_block(struct acpi_gtdt_timer_block *block, argument 198 if (!block->timer_count) { 199 pr_err(FW_BUG "GT block present, but frame count is zero.\n"); 203 if (block->timer_count > ARCH_TIMER_MEM_MAX_FRAMES) { 204 pr_err(FW_BUG "GT block lists %d frames, ACPI spec only allows 8\n", 205 block->timer_count); 209 timer_mem->cntctlbase = (phys_addr_t)block->block_address; 217 gtdt_frame = (void *)block + block->timer_offset; 218 if (gtdt_frame + block [all...] |
/linux-master/drivers/gpu/drm/msm/disp/ |
H A D | msm_disp_snapshot_util.c | 76 struct msm_disp_state_block *block, *tmp; local 90 list_for_each_entry_safe(block, tmp, &state->blocks, node) { 91 drm_printf(p, "====================%s================\n", block->name); 92 msm_disp_state_print_regs(&block->state, block->size, block->base_addr, p); 155 struct msm_disp_state_block *block, *tmp; local 162 list_for_each_entry_safe(block, tmp, &disp_state->blocks, node) { 163 list_del(&block->node); 164 kfree(block [all...] |
/linux-master/fs/minix/ |
H A D | bitmap.c | 13 /* bitmap.c contains the code that handles the inode and block bitmaps */ 42 void minix_free_block(struct inode *inode, unsigned long block) argument 50 if (block < sbi->s_firstdatazone || block >= sbi->s_nzones) { 51 printk("Trying to free block not in datazone\n"); 54 zone = block - sbi->s_firstdatazone + 1; 65 sb->s_id, block); 109 int block; local 119 block = 2 + sbi->s_imap_blocks + sbi->s_zmap_blocks + 121 *bh = sb_bread(sb, block); 133 int block; local [all...] |
/linux-master/drivers/gpu/drm/amd/display/dc/irq/dcn201/ |
H A D | irq_service_dcn201.c | 148 #define SRI(reg_name, block, id)\ 149 BASE(mm ## block ## id ## _ ## reg_name ## _BASE_IDX) + \ 150 mm ## block ## id ## _ ## reg_name 152 #define IRQ_REG_ENTRY(block, reg_num, reg1, mask1, reg2, mask2)\ 153 .enable_reg = SRI(reg1, block, reg_num),\ 155 block ## reg_num ## _ ## reg1 ## __ ## mask1 ## _MASK,\ 157 block ## reg_num ## _ ## reg1 ## __ ## mask1 ## _MASK,\ 158 ~block ## reg_num ## _ ## reg1 ## __ ## mask1 ## _MASK \ 160 .ack_reg = SRI(reg2, block, reg_num),\ 162 block ## reg_nu [all...] |
/linux-master/drivers/gpu/drm/amd/display/dc/irq/dcn303/ |
H A D | irq_service_dcn303.c | 133 #define SRI(reg_name, block, id)\ 134 BASE(mm ## block ## id ## _ ## reg_name ## _BASE_IDX) + \ 135 mm ## block ## id ## _ ## reg_name 138 #define IRQ_REG_ENTRY(block, reg_num, reg1, mask1, reg2, mask2)\ 139 .enable_reg = SRI(reg1, block, reg_num),\ 140 .enable_mask = block ## reg_num ## _ ## reg1 ## __ ## mask1 ## _MASK,\ 142 block ## reg_num ## _ ## reg1 ## __ ## mask1 ## _MASK,\ 143 ~block ## reg_num ## _ ## reg1 ## __ ## mask1 ## _MASK \ 145 .ack_reg = SRI(reg2, block, reg_num),\ 146 .ack_mask = block ## reg_nu [all...] |
/linux-master/drivers/gpu/drm/amd/display/dc/irq/dcn10/ |
H A D | irq_service_dcn10.c | 195 #define SRI(reg_name, block, id)\ 196 BASE(mm ## block ## id ## _ ## reg_name ## _BASE_IDX) + \ 197 mm ## block ## id ## _ ## reg_name 200 #define IRQ_REG_ENTRY(block, reg_num, reg1, mask1, reg2, mask2)\ 201 .enable_reg = SRI(reg1, block, reg_num),\ 203 block ## reg_num ## _ ## reg1 ## __ ## mask1 ## _MASK,\ 205 block ## reg_num ## _ ## reg1 ## __ ## mask1 ## _MASK,\ 206 ~block ## reg_num ## _ ## reg1 ## __ ## mask1 ## _MASK \ 208 .ack_reg = SRI(reg2, block, reg_num),\ 210 block ## reg_nu [all...] |
/linux-master/drivers/gpu/drm/amd/display/dc/irq/dce120/ |
H A D | irq_service_dce120.c | 98 #define SRI(reg_name, block, id)\ 99 BASE(mm ## block ## id ## _ ## reg_name ## _BASE_IDX) + \ 100 mm ## block ## id ## _ ## reg_name 103 #define IRQ_REG_ENTRY(block, reg_num, reg1, mask1, reg2, mask2)\ 104 .enable_reg = SRI(reg1, block, reg_num),\ 106 block ## reg_num ## _ ## reg1 ## __ ## mask1 ## _MASK,\ 108 block ## reg_num ## _ ## reg1 ## __ ## mask1 ## _MASK,\ 109 ~block ## reg_num ## _ ## reg1 ## __ ## mask1 ## _MASK \ 111 .ack_reg = SRI(reg2, block, reg_num),\ 113 block ## reg_nu [all...] |
/linux-master/drivers/gpu/drm/amd/display/dc/irq/dcn20/ |
H A D | irq_service_dcn20.c | 198 #define SRI(reg_name, block, id)\ 199 BASE(mm ## block ## id ## _ ## reg_name ## _BASE_IDX) + \ 200 mm ## block ## id ## _ ## reg_name 203 #define IRQ_REG_ENTRY(block, reg_num, reg1, mask1, reg2, mask2)\ 204 .enable_reg = SRI(reg1, block, reg_num),\ 206 block ## reg_num ## _ ## reg1 ## __ ## mask1 ## _MASK,\ 208 block ## reg_num ## _ ## reg1 ## __ ## mask1 ## _MASK,\ 209 ~block ## reg_num ## _ ## reg1 ## __ ## mask1 ## _MASK \ 211 .ack_reg = SRI(reg2, block, reg_num),\ 213 block ## reg_nu [all...] |
/linux-master/fs/bcachefs/ |
H A D | ec.h | 72 unsigned block, unsigned csum_idx) 74 EBUG_ON(block >= s->nr_blocks); 77 return (void *) s + stripe_csum_offset(s, block, csum_idx); 81 unsigned block, unsigned csum_idx) 85 memcpy(&csum, stripe_csum(s, block, csum_idx), bch_crc_bytes[s->csum_type]); 90 unsigned block, unsigned csum_idx, 93 memcpy(stripe_csum(s, block, csum_idx), &csum, bch_crc_bytes[s->csum_type]); 113 if (p.ec.block >= nr_data) 116 return __bch2_ptr_matches_stripe(&s->ptrs[p.ec.block], &p.ptr, 127 if (p.ec.block > 71 stripe_csum(struct bch_stripe *s, unsigned block, unsigned csum_idx) argument 80 stripe_csum_get(struct bch_stripe *s, unsigned block, unsigned csum_idx) argument 89 stripe_csum_set(struct bch_stripe *s, unsigned block, unsigned csum_idx, struct bch_csum csum) argument [all...] |
/linux-master/arch/powerpc/crypto/ |
H A D | md5-glue.c | 54 memcpy((char *)sctx->block + offset, src, len); 59 memcpy((char *)sctx->block + offset, src, avail); 60 ppc_md5_transform(sctx->hash, (const u8 *)sctx->block, 1); 71 memcpy((char *)sctx->block, src, len); 79 const u8 *src = (const u8 *)sctx->block; 82 __le64 *pbits = (__le64 *)((char *)sctx->block + 56); 90 p = (char *)sctx->block;
|
/linux-master/drivers/media/test-drivers/vivid/ |
H A D | vivid-rds-gen.c | 39 * All remaining groups use a filler group 15B block that just repeats 55 data[0].block = V4L2_RDS_BLOCK_A | (V4L2_RDS_BLOCK_A << 3); 58 data[1].block = V4L2_RDS_BLOCK_B | (V4L2_RDS_BLOCK_B << 3); 59 data[3].block = V4L2_RDS_BLOCK_D | (V4L2_RDS_BLOCK_D << 3); 71 data[2].block = V4L2_RDS_BLOCK_C_ALT | (V4L2_RDS_BLOCK_C_ALT << 3); 82 data[2].block = V4L2_RDS_BLOCK_C | (V4L2_RDS_BLOCK_C << 3); 108 data[2].block = V4L2_RDS_BLOCK_C | (V4L2_RDS_BLOCK_C << 3); 118 data[2].block = V4L2_RDS_BLOCK_C_ALT | (V4L2_RDS_BLOCK_C_ALT << 3);
|