Searched defs:block (Results 1 - 25 of 117) sorted by relevance

12345

/drivers/md/
H A Ddm-thin-metadata.h10 #include "persistent-data/dm-block-manager.h"
101 dm_block_t block; member in struct:dm_thin_lookup_result
107 * -EWOULDBLOCK iff @can_block is set and would block.
111 int dm_thin_find_block(struct dm_thin_device *td, dm_block_t block,
115 * Obtain an unused block.
120 * Insert or remove block.
122 int dm_thin_insert_block(struct dm_thin_device *td, dm_block_t block,
125 int dm_thin_remove_block(struct dm_thin_device *td, dm_block_t block);
/drivers/misc/
H A Datmel_tclib.c38 * atmel_tc_alloc - allocate a specified TC block
39 * @block: which block to allocate
42 * Caller allocates a block. If it is available, a pointer to a
46 struct atmel_tc *atmel_tc_alloc(unsigned block, const char *name) argument
54 if (tc->pdev->id == block) {
87 * atmel_tc_free - release a specified TC block
88 * @tc: Timer/counter block that was returned by atmel_tc_alloc()
/drivers/mtd/
H A Dmtdblock_ro.c29 unsigned long block, char *buf)
33 if (mtd_read(dev->mtd, (block * 512), 512, &retlen, buf))
39 unsigned long block, char *buf)
43 if (mtd_write(dev->mtd, (block * 512), 512, &retlen, buf))
98 MODULE_DESCRIPTION("Simple read-only block device emulation access to MTD devices");
28 mtdblock_readsect(struct mtd_blktrans_dev *dev, unsigned long block, char *buf) argument
38 mtdblock_writesect(struct mtd_blktrans_dev *dev, unsigned long block, char *buf) argument
H A Dinftlmount.c49 unsigned int i, block; local
69 for (block = 0; block < inftl->nb_blocks; block++) {
76 ret = mtd_read(mtd, block * inftl->EraseSize, SECTORSIZE,
84 printk(KERN_WARNING "INFTL: block read at 0x%x "
86 block * inftl->EraseSize,
90 "failures for this block will "
103 block * inftl->EraseSize + SECTORSIZE + 8,
108 "(err %d)\n", block * inft
373 INFTL_formatblock(struct INFTLrecord *inftl, int block) argument
441 unsigned int block = first_block, block1; local
514 int logical, block, i; local
541 unsigned int block, first_block, prev_block, last_block; local
[all...]
H A Dmtd_blkdevs.c2 * Interface to Linux block layer for MTD 'translation layers'.
82 unsigned long block, nsect; local
85 block = blk_rq_pos(req) << 9 >> tr->blkshift;
98 return tr->discard(dev, block, nsect);
102 for (; nsect > 0; nsect--, block++, buf += tr->blksize)
103 if (tr->readsect(dev, block, buf))
112 for (; nsect > 0; nsect--, block++, buf += tr->blksize)
113 if (tr->writesect(dev, block, buf))
555 printk(KERN_WARNING "Unable to register %s block device on major %d: %d\n",
613 MODULE_DESCRIPTION("Common interface to block laye
[all...]
H A Dmtdblock.c2 * Direct MTD block device access
54 * sectors for each block write requests. To avoid over-erasing flash sectors
75 * First, let's erase the flash block.
260 unsigned long block, char *buf)
263 return do_cached_read(mtdblk, block<<9, 512, buf);
267 unsigned long block, char *buf)
279 return do_cached_write(mtdblk, block<<9, 512, buf);
403 MODULE_DESCRIPTION("Caching read/erase/writeback block device emulation access to MTD devices");
259 mtdblock_readsect(struct mtd_blktrans_dev *dev, unsigned long block, char *buf) argument
266 mtdblock_writesect(struct mtd_blktrans_dev *dev, unsigned long block, char *buf) argument
H A Dnftlcore.c41 /* maximum number of loops while examining next block, to have a
212 /* For a given Virtual Unit Chain: find or create a free block and
225 /* Scan for a free block */
258 int block; local
277 512-byte block within the Chain.
285 for (block = 0; block < nftl->EraseSize / 512; block ++) {
287 (block * 512), 16 , &retlen,
289 if (block
542 NFTL_findwriteunit(struct NFTLrecord *nftl, unsigned block) argument
694 nftl_writeblock(struct mtd_blktrans_dev *mbd, unsigned long block, char *buffer) argument
721 nftl_readblock(struct mtd_blktrans_dev *mbd, unsigned long block, char *buffer) argument
[all...]
H A Dnftlmount.c41 unsigned int block, boot_record_count = 0; local
61 for (block = 0; block < nftl->nb_blocks; block++) {
66 ret = mtd_read(mtd, block * nftl->EraseSize, SECTORSIZE,
75 block * nftl->EraseSize, nftl->mbd.mtd->index, ret);
77 printk(KERN_WARNING "Further failures for this block will not be printed\n");
86 block * nftl->EraseSize, nftl->mbd.mtd->index);
92 if ((ret = nftl_read_oob(mtd, block * nftl->EraseSize +
96 block * nft
303 NFTL_formatblock(struct NFTLrecord *nftl, int block) argument
375 unsigned int block, i, status; local
428 unsigned int length = 0, block = first_block; local
460 unsigned int block = first_block, block1; local
491 check_and_mark_free_block(struct NFTLrecord *nftl, int block) argument
552 get_fold_mark(struct NFTLrecord *nftl, unsigned int block) argument
569 unsigned int block, first_block, is_first_block; local
[all...]
/drivers/s390/block/
H A Ddasd_genhd.c2 * File...........: linux/drivers/s390/block/dasd_genhd.c
30 int dasd_gendisk_alloc(struct dasd_block *block) argument
37 base = block->base;
77 gdp->queue = block->request_queue;
78 block->gdp = gdp;
79 set_capacity(block->gdp, 0);
80 add_disk(block->gdp);
87 void dasd_gendisk_free(struct dasd_block *block) argument
89 if (block->gdp) {
90 del_gendisk(block
101 dasd_scan_partitions(struct dasd_block *block) argument
131 dasd_destroy_partitions(struct dasd_block *block) argument
[all...]
H A Ddasd_ioctl.c2 * File...........: linux/drivers/s390/block/dasd_ioctl.c
59 (loff_t)get_capacity(base->block->gdp) << 9);
83 * BIODASDDISABLE to disable accesses to the device via the block
103 static int dasd_ioctl_quiesce(struct dasd_block *block) argument
108 base = block->base;
124 static int dasd_ioctl_resume(struct dasd_block *block) argument
129 base = block->base;
139 dasd_schedule_block_bh(block);
149 static int dasd_format(struct dasd_block *block, struct format_data_t *fdata) argument
155 base = block
241 dasd_ioctl_reset_profile(struct dasd_block *block) argument
250 dasd_ioctl_read_profile(struct dasd_block *block, void __user *argp) argument
294 dasd_ioctl_reset_profile(struct dasd_block *block) argument
299 dasd_ioctl_read_profile(struct dasd_block *block, void __user *argp) argument
308 dasd_ioctl_information(struct dasd_block *block, unsigned int cmd, void __user *argp) argument
421 dasd_ioctl_readall_cmb(struct dasd_block *block, unsigned int cmd, struct cmbdata __user *argp) argument
437 struct dasd_block *block; local
[all...]
H A Ddasd_proc.c2 * File...........: linux/drivers/s390/block/dasd_proc.c
39 struct dasd_block *block; local
45 if (device->block)
46 block = device->block;
59 if (block->gdp)
61 MAJOR(disk_devt(block->gdp)),
62 MINOR(disk_devt(block->gdp)));
66 if (block->gdp)
67 seq_printf(m, " is %-8s", block
[all...]
/drivers/misc/cb710/
H A Ddebug.c25 static inline int allow_reg_read(unsigned block, unsigned offset, unsigned bits) argument
29 return ((allow[block] >> offset) & mask) == mask;
/drivers/gpu/drm/nouveau/
H A Dnouveau_mm.c130 nouveau_mm_init(struct nouveau_mm *mm, u32 offset, u32 length, u32 block) argument
134 if (block) {
138 mm->block_size = block;
H A Dnv50_vm.c89 u32 block; local
101 block = 1 << (i + 3);
102 if (cnt >= block && !(pte & (block - 1)))
107 phys += block << (vma->node->type - 3);
108 cnt -= block;
112 delta += block << (vma->node->type - 3);
115 while (block) {
119 block -= 8;
H A Dnouveau_vm.c288 u32 block, pgt_bits; local
305 block = (1 << pgt_bits);
306 if (length < block)
307 block = length;
319 block = 4096;
339 block >> 12);
/drivers/gpu/drm/radeon/
H A Dradeon_mem.c44 /* Maybe cut off the start of an existing block */
61 /* Maybe cut off the end of an existing block */
78 /* Our block is in the middle */
223 struct mem_block *block, **heap; local
240 block = alloc_block(*heap, alloc->size, alloc->alignment, file_priv);
242 if (!block)
245 if (DRM_COPY_TO_USER(alloc->region_offset, &block->start,
258 struct mem_block *block, **heap; local
269 block = find_block(*heap, memfree->region_offset);
270 if (!block)
[all...]
/drivers/gpu/drm/ttm/
H A Dttm_lock.c98 bool block = true; local
110 block = false;
113 block = false;
117 return !block;
/drivers/md/persistent-data/
H A Ddm-btree-spine.c169 struct dm_block *block; local
172 block = s->nodes[s->count - 1];
174 return dm_block_data(block);
H A Ddm-btree-remove.c147 struct dm_block *block; member in struct:child
169 &result->block, &inc);
173 result->n = dm_block_data(result->block);
179 cpu_to_le64(dm_block_location(result->block));
186 return dm_tm_unlock(info->tm, c->block);
228 * We need to decrement the right block, but not it's
231 dm_tm_dec(info->tm, dm_block_location(r->block));
318 dm_tm_dec(info->tm, dm_block_location(c->block));
396 struct dm_block *block; local
399 r = dm_tm_read_lock(tm, b, &btree_node_validator, &block);
[all...]
/drivers/mtd/onenand/
H A Donenand_bbt.c27 * 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 */
106 "initial bad block\n", i >> 1);
125 * onenand_memory_bbt - [GENERIC] create a memory based bad block table
127 * @param bd descriptor for the good/bad block searc
150 int block; local
[all...]
/drivers/base/regmap/
H A Dregcache-rbtree.c25 /* the actual rbtree node holding this block */
27 /* base register handled by this block */
29 /* block of adjacent registers */
30 void *block; member in struct:regcache_rbtree_node
31 /* number of registers available in the block */
52 return regcache_get_val(rbnode->block, idx, word_size);
59 regcache_set_val(rbnode->block, idx, val, word_size);
232 kfree(rbtree_node->block);
268 blk = krealloc(rbnode->block,
273 /* insert the register value in the correct place in the rbnode block */
[all...]
/drivers/edac/
H A Dedac_device.c81 unsigned instance, block, attr; local
90 * (instance,block,attrib) from the start of an allocated structure.
91 * We want the alignment of each item (instance,block,attrib)
103 * which will become the start of the block array
179 /* Initialize every block in each instance */
180 for (block = 0; block < nr_blocks; block++) {
181 blk = &blk_p[block];
184 "%s%d", edac_block_name, block
636 struct edac_device_block *block = NULL; local
682 struct edac_device_block *block = NULL; local
[all...]
/drivers/gpu/drm/i915/
H A Di915_mem.c43 * block to allocate, and the ring is drained prior to allocations --
95 /* Maybe cut off the start of an existing block */
112 /* Maybe cut off the end of an existing block */
129 /* Our block is in the middle */
277 struct mem_block *block, **heap; local
294 block = alloc_block(*heap, alloc->size, alloc->alignment, file_priv);
296 if (!block)
299 mark_block(dev, block, 1);
301 if (DRM_COPY_TO_USER(alloc->region_offset, &block->start,
315 struct mem_block *block, **hea local
[all...]
/drivers/ide/
H A Dide-floppy.c195 int block = sector / floppy->bs_factor; local
199 ide_debug_log(IDE_DBG_FUNC, "block: %d, blocks: %d", block, blocks);
204 put_unaligned(cpu_to_be32(block), (unsigned int *) &pc->c[2]);
229 struct request *rq, sector_t block)
266 idefloppy_create_rw_cmd(drive, pc, rq, (unsigned long)block);
434 printk(KERN_NOTICE PFX "%s: %d bytes block size"
442 "non 512 bytes block size not "
228 ide_floppy_do_request(ide_drive_t *drive, struct request *rq, sector_t block) argument
/drivers/media/video/em28xx/
H A Dem28xx-i2c.c340 int i, err, size = len, block; local
375 block = 16;
377 block = size;
379 if (block !=
380 (err = i2c_master_recv(&dev->i2c_client, p, block))) {
386 size -= block;
387 p += block;

Completed in 412 milliseconds

12345