Home
last modified time | relevance | path

Searched full:block (Results 1 – 25 of 3480) sorted by relevance

12345678910>>...140

/linux-3.3/fs/lockd/
Dsvclock.c42 static void nlmsvc_release_block(struct nlm_block *block);
43 static void nlmsvc_insert_block(struct nlm_block *block, unsigned long);
44 static void nlmsvc_remove_block(struct nlm_block *block);
61 nlmsvc_insert_block_locked(struct nlm_block *block, unsigned long when) in nlmsvc_insert_block_locked() argument
66 dprintk("lockd: nlmsvc_insert_block(%p, %ld)\n", block, when); in nlmsvc_insert_block_locked()
67 if (list_empty(&block->b_list)) { in nlmsvc_insert_block_locked()
68 kref_get(&block->b_count); in nlmsvc_insert_block_locked()
70 list_del_init(&block->b_list); in nlmsvc_insert_block_locked()
87 list_add_tail(&block->b_list, pos); in nlmsvc_insert_block_locked()
88 block->b_when = when; in nlmsvc_insert_block_locked()
[all …]
Dclntlock.c92 struct nlm_wait *block; in nlmclnt_prepare_block() local
94 block = kmalloc(sizeof(*block), GFP_KERNEL); in nlmclnt_prepare_block()
95 if (block != NULL) { in nlmclnt_prepare_block()
96 block->b_host = host; in nlmclnt_prepare_block()
97 block->b_lock = fl; in nlmclnt_prepare_block()
98 init_waitqueue_head(&block->b_wait); in nlmclnt_prepare_block()
99 block->b_status = nlm_lck_blocked; in nlmclnt_prepare_block()
102 list_add(&block->b_list, &nlm_blocked); in nlmclnt_prepare_block()
105 return block; in nlmclnt_prepare_block()
108 void nlmclnt_finish_block(struct nlm_wait *block) in nlmclnt_finish_block() argument
[all …]
/linux-3.3/sound/isa/gus/
Dgus_mem.c43 struct snd_gf1_mem_block * block) in snd_gf1_mem_xalloc() argument
50 *nblock = *block; in snd_gf1_mem_xalloc()
78 int snd_gf1_mem_xfree(struct snd_gf1_mem * alloc, struct snd_gf1_mem_block * block) in snd_gf1_mem_xfree() argument
80 if (block->share) { /* ok.. shared block */ in snd_gf1_mem_xfree()
81 block->share--; in snd_gf1_mem_xfree()
85 if (alloc->first == block) { in snd_gf1_mem_xfree()
86 alloc->first = block->next; in snd_gf1_mem_xfree()
87 if (block->next) in snd_gf1_mem_xfree()
88 block->next->prev = NULL; in snd_gf1_mem_xfree()
90 block->prev->next = block->next; in snd_gf1_mem_xfree()
[all …]
Dgus_dma.c97 struct snd_gf1_dma_block *block; in snd_gf1_dma_next_block() local
99 /* PCM block have bigger priority than synthesizer one */ in snd_gf1_dma_next_block()
101 block = gus->gf1.dma_data_pcm; in snd_gf1_dma_next_block()
102 if (gus->gf1.dma_data_pcm_last == block) { in snd_gf1_dma_next_block()
106 gus->gf1.dma_data_pcm = block->next; in snd_gf1_dma_next_block()
109 block = gus->gf1.dma_data_synth; in snd_gf1_dma_next_block()
110 if (gus->gf1.dma_data_synth_last == block) { in snd_gf1_dma_next_block()
114 gus->gf1.dma_data_synth = block->next; in snd_gf1_dma_next_block()
117 block = NULL; in snd_gf1_dma_next_block()
119 if (block) { in snd_gf1_dma_next_block()
[all …]
/linux-3.3/drivers/staging/zram/
Dxvmalloc.c39 static int test_flag(struct block_header *block, enum blockflags flag) in test_flag() argument
41 return block->prev & BIT(flag); in test_flag()
44 static void set_flag(struct block_header *block, enum blockflags flag) in set_flag() argument
46 block->prev |= BIT(flag); in set_flag()
49 static void clear_flag(struct block_header *block, enum blockflags flag) in clear_flag() argument
51 block->prev &= ~BIT(flag); in clear_flag()
72 static u32 get_blockprev(struct block_header *block) in get_blockprev() argument
74 return block->prev & PREV_MASK; in get_blockprev()
77 static void set_blockprev(struct block_header *block, u16 new_offset) in set_blockprev() argument
79 block->prev = new_offset | (block->prev & FLAGS_MASK); in set_blockprev()
[all …]
/linux-3.3/drivers/mtd/
Dnftlmount.c41 unsigned int block, boot_record_count = 0; in find_boot_record() local
61 for (block = 0; block < nftl->nb_blocks; block++) { in find_boot_record()
66 ret = mtd_read(mtd, block * nftl->EraseSize, SECTORSIZE, in find_boot_record()
74 printk(KERN_WARNING "Block read at 0x%x of mtd%d failed: %d\n", in find_boot_record()
75 block * nftl->EraseSize, nftl->mbd.mtd->index, ret); in find_boot_record()
77 printk(KERN_WARNING "Further failures for this block will not be printed\n"); in find_boot_record()
86 block * nftl->EraseSize, nftl->mbd.mtd->index); in find_boot_record()
92 if ((ret = nftl_read_oob(mtd, block * nftl->EraseSize + in find_boot_record()
96 block * nftl->EraseSize, nftl->mbd.mtd->index, ret); in find_boot_record()
106 block * nftl->EraseSize, nftl->mbd.mtd->index, in find_boot_record()
[all …]
Dinftlmount.c49 unsigned int i, block; in find_boot_record() local
69 for (block = 0; block < inftl->nb_blocks; block++) { in find_boot_record()
76 ret = mtd_read(mtd, block * inftl->EraseSize, SECTORSIZE, in find_boot_record()
84 printk(KERN_WARNING "INFTL: block read at 0x%x " in find_boot_record()
86 block * inftl->EraseSize, in find_boot_record()
90 "failures for this block will " in find_boot_record()
103 block * inftl->EraseSize + SECTORSIZE + 8, in find_boot_record()
108 "(err %d)\n", block * inftl->EraseSize, in find_boot_record()
121 mtd_read(mtd, block * inftl->EraseSize + 4096, SECTORSIZE, in find_boot_record()
186 block >>= mh->BlockMultiplierBits; in find_boot_record()
[all …]
Drfd_ftl.c27 MODULE_PARM_DESC(block_size, "Block size to use by RFD, defaults to erase unit size");
56 struct block { struct
79 int reserved_block; /* block next up for reclaim */ argument
80 int current_block; /* block to write to */
87 struct block *blocks;
94 struct block *block = &part->blocks[block_no]; in build_block_map() local
97 block->offset = part->block_size * block_no; in build_block_map()
100 block->state = BLOCK_UNUSED; in build_block_map()
104 block->state = BLOCK_OK; in build_block_map()
115 block->free_sectors++; in build_block_map()
[all …]
Dinftlcore.c42 * Maximum number of loops while examining next block, to have a
229 /* Scan for a free block */ in INFTL_findfreeblock()
255 int block, silly; in INFTL_foldchain() local
276 * 512-byte block within the Chain. in INFTL_foldchain()
280 for (block = 0; block < inftl->EraseSize/SECTORSIZE; block ++) { in INFTL_foldchain()
281 if ((BlockMap[block] != BLOCK_NIL) || in INFTL_foldchain()
282 BlockDeleted[block]) in INFTL_foldchain()
286 + (block * SECTORSIZE), 16, &retlen, in INFTL_foldchain()
297 BlockMap[block] = thisEUN; in INFTL_foldchain()
300 BlockDeleted[block] = 1; in INFTL_foldchain()
[all …]
Dsm_ftl.c150 * Read LBA associated with block
151 * returns -1, if block is erased
162 /* First test for erased block */ in sm_read_lba()
198 static loff_t sm_mkoffset(struct sm_ftl *ftl, int zone, int block, int boffset) in sm_mkoffset() argument
202 WARN_ON(block >= ftl->zone_size); in sm_mkoffset()
205 if (block == -1) in sm_mkoffset()
208 return (zone * SM_MAX_ZONE_SIZE + block) * ftl->block_size + boffset; in sm_mkoffset()
213 int *zone, int *block, int *boffset) in sm_break_offset() argument
216 *block = do_div(offset, ftl->max_lba); in sm_break_offset()
240 int zone, int block, int boffset, in sm_read_sector() argument
[all …]
/linux-3.3/sound/pci/ctxfi/
Dctvmem.c28 * Find or create vm block based on requested @size.
34 struct ct_vm_block *block = NULL, *entry; in get_vm_block() local
48 break; /* found a block that is big enough */ in get_vm_block()
57 block = entry; in get_vm_block()
61 block = kzalloc(sizeof(*block), GFP_KERNEL); in get_vm_block()
62 if (!block) in get_vm_block()
65 block->addr = entry->addr; in get_vm_block()
66 block->size = size; in get_vm_block()
67 list_add(&block->list, &vm->used); in get_vm_block()
74 return block; in get_vm_block()
[all …]
/linux-3.3/fs/xfs/
Dxfs_btree.c54 struct xfs_btree_block *block, /* btree long form block pointer */ in xfs_btree_check_lblock() argument
55 int level, /* level of the btree block */ in xfs_btree_check_lblock()
56 struct xfs_buf *bp) /* buffer for block, if any */ in xfs_btree_check_lblock()
58 int lblock_ok; /* block passes checks */ in xfs_btree_check_lblock()
63 be32_to_cpu(block->bb_magic) == xfs_magics[cur->bc_btnum] && in xfs_btree_check_lblock()
64 be16_to_cpu(block->bb_level) == level && in xfs_btree_check_lblock()
65 be16_to_cpu(block->bb_numrecs) <= in xfs_btree_check_lblock()
67 block->bb_u.l.bb_leftsib && in xfs_btree_check_lblock()
68 (block->bb_u.l.bb_leftsib == cpu_to_be64(NULLDFSBNO) || in xfs_btree_check_lblock()
70 be64_to_cpu(block->bb_u.l.bb_leftsib))) && in xfs_btree_check_lblock()
[all …]
/linux-3.3/arch/mips/include/asm/octeon/
Dcvmx-bootmem.h45 /* Allocate from end of block instead of beginning */
51 /* First bytes of each free physical block of memory contain this structure,
76 /* Base address of named block */
79 * Size actually allocated for named block (may differ from
83 /* name of named block */
121 /* address of named memory block descriptors */
135 * Allocate a block of memory from the free list that was passed
139 * @size: Size in bytes of block to allocate
142 * Returns pointer to block of memory, NULL on error
147 * Allocate a block of memory from the free list that was
[all …]
/linux-3.3/drivers/video/
Dedid.h72 #define PIXEL_CLOCK_LO (unsigned)block[ 0 ]
73 #define PIXEL_CLOCK_HI (unsigned)block[ 1 ]
75 #define H_ACTIVE_LO (unsigned)block[ 2 ]
76 #define H_BLANKING_LO (unsigned)block[ 3 ]
77 #define H_ACTIVE_HI UPPER_NIBBLE( (unsigned)block[ 4 ] )
79 #define H_BLANKING_HI LOWER_NIBBLE( (unsigned)block[ 4 ] )
82 #define V_ACTIVE_LO (unsigned)block[ 5 ]
83 #define V_BLANKING_LO (unsigned)block[ 6 ]
84 #define V_ACTIVE_HI UPPER_NIBBLE( (unsigned)block[ 7 ] )
86 #define V_BLANKING_HI LOWER_NIBBLE( (unsigned)block[ 7 ] )
[all …]
/linux-3.3/block/
DKconfig2 # Block layer core configuration
4 menuconfig BLOCK config
5 bool "Enable the block layer" if EXPERT
8 Provide block layer support for the kernel.
10 Disable this option to remove the block layer support from the
15 - block device files will become unusable
19 they make use of various block layer definitions and facilities.
24 if BLOCK
27 bool "Support for large (2TB+) block devices and files"
31 Enable block devices or files of size 2TB and larger.
[all …]
/linux-3.3/Documentation/ABI/testing/
Dsysfs-block1 What: /sys/block/<disk>/stat
5 The /sys/block/<disk>/stat files displays the I/O
21 What: /sys/block/<disk>/<part>/stat
25 The /sys/block/<disk>/<part>/stat files display the
27 same as the above-written /sys/block/<disk>/stat
31 What: /sys/block/<disk>/integrity/format
35 Metadata format for integrity capable block device.
39 What: /sys/block/<disk>/integrity/read_verify
43 Indicates whether the block layer should verify the
48 What: /sys/block/<disk>/integrity/tag_size
[all …]
/linux-3.3/fs/btrfs/
Dcheck-integrity.c26 * Code is added that examines all block write requests during
27 * runtime (including writes of the super block). Three rules
30 * 1. It is not allowed to write a disk block which is
31 * currently referenced by the super block (either directly
33 * 2. When a super block is written, it is verified that all
38 * referenced by the super block) or they have been
49 * block.
67 * the tree that the super block references to kernel messages
68 * each time after a super block was written:
76 * the integrity of (super)-block write requests, do not
[all …]
/linux-3.3/fs/ext3/
Dballoc.c9 * Enhanced block allocation by Stephen Tweedie (sct@redhat.com), 1993
32 * blocks groups. Each group contains 1 bitmap block for blocks, 1 bitmap
33 * block for inodes, N blocks for the inode table and data blocks.
36 * super block. Each descriptor contains the number of the bitmap block and
37 * the free blocks count in the block. The descriptors are loaded in memory
45 * Calculate the block group number and offset, given a block number
61 * @sb: super block
62 * @block_group: given block group
63 * @bh: pointer to the buffer head to store the block
113 /* check whether block bitmap block number is set */ in ext3_valid_block_bitmap()
[all …]
/linux-3.3/fs/ext2/
Dballoc.c9 * Enhanced block allocation by Stephen Tweedie (sct@redhat.com), 1993
27 * blocks groups. Each group contains 1 bitmap block for blocks, 1 bitmap
28 * block for inodes, N blocks for the inode table and data blocks.
31 * super block. Each descriptor contains the number of the bitmap block and
32 * the free blocks count in the block. The descriptors are loaded in memory
85 /* check whether block bitmap block number is set */ in ext2_valid_block_bitmap()
89 /* bad block bitmap */ in ext2_valid_block_bitmap()
92 /* check whether the inode bitmap block number is set */ in ext2_valid_block_bitmap()
96 /* bad block bitmap */ in ext2_valid_block_bitmap()
99 /* check whether the inode table block number is set */ in ext2_valid_block_bitmap()
[all …]
/linux-3.3/fs/sysv/
Dballoc.c40 /* NOTE NOTE NOTE: nr is a block number _as_ _stored_ _on_ _disk_ */
48 unsigned block = fs32_to_cpu(sbi, nr); in sysv_free_block() local
58 if (block < sbi->s_firstdatazone || block >= sbi->s_nzones) { in sysv_free_block()
59 printk("sysv_free_block: trying to free block not in datazone\n"); in sysv_free_block()
71 /* If the free list head in super-block is full, it is copied in sysv_free_block()
72 * into this block being freed, ditto if it's completely empty in sysv_free_block()
76 block += sbi->s_block_base; in sysv_free_block()
77 bh = sb_getblk(sb, block); in sysv_free_block()
102 unsigned int block; in sysv_new_block() local
116 block = fs32_to_cpu(sbi, nr); in sysv_new_block()
[all …]
/linux-3.3/fs/befs/
Ddatastream.c53 befs_blocknr_t block; /* block coresponding to pos */ in befs_read_datastream() local
56 block = pos >> BEFS_SB(sb)->block_shift; in befs_read_datastream()
58 *off = pos - (block << BEFS_SB(sb)->block_shift); in befs_read_datastream()
60 if (befs_fblock2brun(sb, ds, block, &run) != BEFS_OK) { in befs_read_datastream()
61 befs_error(sb, "BeFS: Error finding disk addr of block %lu", in befs_read_datastream()
62 block); in befs_read_datastream()
68 befs_error(sb, "BeFS: Error reading block %lu from datastream", in befs_read_datastream()
69 block); in befs_read_datastream()
80 * Takes a file position and gives back a brun who's starting block
81 * is block number fblock of the file.
[all …]
/linux-3.3/fs/minix/
Ditree_v2.c26 static int block_to_path(struct inode * inode, long block, int offsets[DEPTH]) in block_to_path() argument
32 if (block < 0) { in block_to_path()
33 printk("MINIX-fs: block_to_path: block %ld < 0 on dev %s\n", in block_to_path()
34 block, bdevname(sb->s_bdev, b)); in block_to_path()
35 } else if (block >= (minix_sb(inode->i_sb)->s_max_size/sb->s_blocksize)) { in block_to_path()
38 "block %ld too big on dev %s\n", in block_to_path()
39 block, bdevname(sb->s_bdev, b)); in block_to_path()
40 } else if (block < DIRCOUNT) { in block_to_path()
41 offsets[n++] = block; in block_to_path()
42 } else if ((block -= DIRCOUNT) < INDIRCOUNT(sb)) { in block_to_path()
[all …]
/linux-3.3/drivers/s390/block/
Ddasd_ioctl.c2 * File...........: linux/drivers/s390/block/dasd_ioctl.c
59 (loff_t)get_capacity(base->block->gdp) << 9); in dasd_ioctl_enable()
83 * BIODASDDISABLE to disable accesses to the device via the block in dasd_ioctl_disable()
103 static int dasd_ioctl_quiesce(struct dasd_block *block) in dasd_ioctl_quiesce() argument
108 base = block->base; in dasd_ioctl_quiesce()
124 static int dasd_ioctl_resume(struct dasd_block *block) in dasd_ioctl_resume() argument
129 base = block->base; in dasd_ioctl_resume()
139 dasd_schedule_block_bh(block); in dasd_ioctl_resume()
149 static int dasd_format(struct dasd_block *block, struct format_data_t *fdata) in dasd_format() argument
155 base = block->base; in dasd_format()
[all …]
/linux-3.3/Documentation/filesystems/
Dsysv-fs.txt36 * Size of a block or zone (data allocation unit on disk)
42 * General layout: all have one boot block, one super block and
45 all the block numbers (including the super block) are offset by one track.
74 There is a cache of a certain number of free inodes in the super-block.
77 * Free block management:
81 since it is not true that every free block contains a pointer to
82 the next free block. Rather, the free blocks are organized in chunks
83 of limited size, and every now and then a free block contains pointers
85 contains pointers and so on. The list terminates with a "block number"
86 0 on Xenix FS and SystemV FS, with a block zeroed out on Coherent FS.
[all …]
/linux-3.3/drivers/mtd/onenand/
Donenand_bbt.c4 * Bad Block Table support for the OneNAND driver
27 * Check for a pattern at the given place. Used to search bad block
28 * tables and good / bad block identifiers. Same as check_pattern, but
47 * create_bbt - [GENERIC] Create a bad block table by scanning the device
50 * @param bd descriptor for the good/bad block search pattern
54 * Create a bad block table by scanning the device
55 * for the given good/bad block identify pattern
98 /* If it is a initial bad block, just ignore it */ in create_bbt()
106 "initial bad block\n", i >> 1); in create_bbt()
125 * onenand_memory_bbt - [GENERIC] create a memory based bad block table
[all …]

12345678910>>...140