Home
last modified time | relevance | path

Searched refs:block (Results 1 – 200 of 1272) sorted by relevance

1234567

/linux-4.4.14/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
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()
120 gus->gf1.dma_ack = block->ack; in snd_gf1_dma_next_block()
[all …]
/linux-4.4.14/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);
89 nlmsvc_insert_block_locked(struct nlm_block *block, unsigned long when) in nlmsvc_insert_block_locked() argument
94 dprintk("lockd: nlmsvc_insert_block(%p, %ld)\n", block, when); in nlmsvc_insert_block_locked()
95 if (list_empty(&block->b_list)) { in nlmsvc_insert_block_locked()
96 kref_get(&block->b_count); in nlmsvc_insert_block_locked()
98 list_del_init(&block->b_list); in nlmsvc_insert_block_locked()
115 list_add_tail(&block->b_list, pos); in nlmsvc_insert_block_locked()
116 block->b_when = when; in nlmsvc_insert_block_locked()
[all …]
Dclntlock.c100 struct nlm_wait *block; in nlmclnt_prepare_block() local
102 block = kmalloc(sizeof(*block), GFP_KERNEL); in nlmclnt_prepare_block()
103 if (block != NULL) { in nlmclnt_prepare_block()
104 block->b_host = host; in nlmclnt_prepare_block()
105 block->b_lock = fl; in nlmclnt_prepare_block()
106 init_waitqueue_head(&block->b_wait); in nlmclnt_prepare_block()
107 block->b_status = nlm_lck_blocked; in nlmclnt_prepare_block()
110 list_add(&block->b_list, &nlm_blocked); in nlmclnt_prepare_block()
113 return block; in nlmclnt_prepare_block()
116 void nlmclnt_finish_block(struct nlm_wait *block) in nlmclnt_finish_block() argument
[all …]
/linux-4.4.14/drivers/video/fbdev/
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-4.4.14/drivers/w1/
Dw1_netlink.c60 struct w1_cb_block *block; member
74 static u16 w1_reply_len(struct w1_cb_block *block) in w1_reply_len() argument
76 if (!block->cn) in w1_reply_len()
78 return (u8 *)block->cn - (u8 *)block->first_cn + block->cn->len; in w1_reply_len()
81 static void w1_unref_block(struct w1_cb_block *block) in w1_unref_block() argument
83 if (atomic_sub_return(1, &block->refcnt) == 0) { in w1_unref_block()
84 u16 len = w1_reply_len(block); in w1_unref_block()
86 cn_netlink_send_mult(block->first_cn, len, in w1_unref_block()
87 block->portid, 0, GFP_KERNEL); in w1_unref_block()
89 kfree(block); in w1_unref_block()
[all …]
/linux-4.4.14/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()
75 block * nftl->EraseSize, nftl->mbd.mtd->index, ret); in find_boot_record()
86 block * nftl->EraseSize, nftl->mbd.mtd->index); in find_boot_record()
92 ret = nftl_read_oob(mtd, block * nftl->EraseSize + in find_boot_record()
97 block * nftl->EraseSize, nftl->mbd.mtd->index, ret); in find_boot_record()
107 block * nftl->EraseSize, nftl->mbd.mtd->index, in find_boot_record()
113 ret = mtd->read(mtd, block * nftl->EraseSize, SECTORSIZE, in find_boot_record()
117 block * nftl->EraseSize, nftl->mbd.mtd->index, ret); in find_boot_record()
[all …]
Dinftlmount.c48 unsigned int i, block; in find_boot_record() local
68 for (block = 0; block < inftl->nb_blocks; block++) { in find_boot_record()
75 ret = mtd_read(mtd, block * inftl->EraseSize, SECTORSIZE, in find_boot_record()
85 block * inftl->EraseSize, in find_boot_record()
102 block * inftl->EraseSize + SECTORSIZE + 8, in find_boot_record()
107 "(err %d)\n", block * inftl->EraseSize, in find_boot_record()
120 mtd_read(mtd, block * inftl->EraseSize + 4096, SECTORSIZE, in find_boot_record()
185 block >>= mh->BlockMultiplierBits; in find_boot_record()
300 inftl->PUtable[block] = BLOCK_RESERVED; in find_boot_record()
314 inftl->MediaUnit = block; in find_boot_record()
[all …]
Drfd_ftl.c56 struct block { struct
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()
138 part->sector_map[entry] = block->offset + in build_block_map()
141 block->used_sectors++; in build_block_map()
144 if (block->free_sectors == part->data_sectors_per_block) in build_block_map()
[all …]
Dinftlcore.c255 int block, silly; in INFTL_foldchain() local
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()
305 block, thisEUN, status); in INFTL_foldchain()
326 for (block = 0; block < inftl->EraseSize/SECTORSIZE ; block++) { in INFTL_foldchain()
334 if (BlockMap[block] == targetEUN || (pendingblock == in INFTL_foldchain()
[all …]
Dsm_ftl.c195 static loff_t sm_mkoffset(struct sm_ftl *ftl, int zone, int block, int boffset) in sm_mkoffset() argument
199 WARN_ON(block >= ftl->zone_size); in sm_mkoffset()
202 if (block == -1) in sm_mkoffset()
205 return (zone * SM_MAX_ZONE_SIZE + block) * ftl->block_size + boffset; in sm_mkoffset()
210 int *zone, int *block, int *boffset) in sm_break_offset() argument
213 *block = do_div(offset, ftl->max_lba); in sm_break_offset()
237 int zone, int block, int boffset, in sm_read_sector() argument
247 if (block == -1) { in sm_read_sector()
267 if (zone == 0 && block == ftl->cis_block && boffset == in sm_read_sector()
278 ret = mtd_read_oob(mtd, sm_mkoffset(ftl, zone, block, boffset), &ops); in sm_read_sector()
[all …]
Dnftlcore.c251 int block; in NFTL_foldchain() local
278 for (block = 0; block < nftl->EraseSize / 512; block ++) { in NFTL_foldchain()
280 (block * 512), 16 , &retlen, in NFTL_foldchain()
282 if (block == 2) { in NFTL_foldchain()
295 BlockLastState[block] = status; in NFTL_foldchain()
299 BlockFreeFound[block] = 1; in NFTL_foldchain()
303 if (!BlockFreeFound[block]) in NFTL_foldchain()
304 BlockMap[block] = thisEUN; in NFTL_foldchain()
309 thisVUC, block); in NFTL_foldchain()
312 if (!BlockFreeFound[block]) in NFTL_foldchain()
[all …]
Dmtdblock_ro.c30 unsigned long block, char *buf) in mtdblock_readsect() argument
34 if (mtd_read(dev->mtd, (block * 512), 512, &retlen, buf)) in mtdblock_readsect()
40 unsigned long block, char *buf) in mtdblock_writesect() argument
44 if (mtd_write(dev->mtd, (block * 512), 512, &retlen, buf)) in mtdblock_writesect()
/linux-4.4.14/drivers/gpio/
Dgpio-sch311x.c145 struct sch311x_gpio_block *block = to_sch311x_gpio_block(chip); in sch311x_gpio_request() local
147 if (block->config_regs[offset] == 0) /* GPIO is not available */ in sch311x_gpio_request()
150 if (!request_region(block->runtime_reg + block->config_regs[offset], in sch311x_gpio_request()
153 block->runtime_reg + block->config_regs[offset]); in sch311x_gpio_request()
161 struct sch311x_gpio_block *block = to_sch311x_gpio_block(chip); in sch311x_gpio_free() local
163 if (block->config_regs[offset] == 0) /* GPIO is not available */ in sch311x_gpio_free()
166 release_region(block->runtime_reg + block->config_regs[offset], 1); in sch311x_gpio_free()
171 struct sch311x_gpio_block *block = to_sch311x_gpio_block(chip); in sch311x_gpio_get() local
174 spin_lock(&block->lock); in sch311x_gpio_get()
175 data = inb(block->runtime_reg + block->data_reg); in sch311x_gpio_get()
[all …]
Dgpio-etraxfs.c71 struct etraxfs_gpio_block *block; member
230 struct etraxfs_gpio_block *block = chip->block; in etraxfs_gpio_irq_ack() local
233 writel(BIT(grpirq), block->regs + block->info->rw_ack_intr); in etraxfs_gpio_irq_ack()
240 struct etraxfs_gpio_block *block = chip->block; in etraxfs_gpio_irq_mask() local
243 spin_lock(&block->lock); in etraxfs_gpio_irq_mask()
244 block->mask &= ~BIT(grpirq); in etraxfs_gpio_irq_mask()
245 writel(block->mask, block->regs + block->info->rw_intr_mask); in etraxfs_gpio_irq_mask()
246 spin_unlock(&block->lock); in etraxfs_gpio_irq_mask()
253 struct etraxfs_gpio_block *block = chip->block; in etraxfs_gpio_irq_unmask() local
256 spin_lock(&block->lock); in etraxfs_gpio_irq_unmask()
[all …]
/linux-4.4.14/crypto/
Dcast6_generic.c165 static inline void Q(u32 *block, u8 *Kr, u32 *Km) in Q() argument
168 block[2] ^= F1(block[3], Kr[0], Km[0]); in Q()
169 block[1] ^= F2(block[2], Kr[1], Km[1]); in Q()
170 block[0] ^= F3(block[1], Kr[2], Km[2]); in Q()
171 block[3] ^= F1(block[0], Kr[3], Km[3]); in Q()
175 static inline void QBAR(u32 *block, u8 *Kr, u32 *Km) in QBAR() argument
178 block[3] ^= F1(block[0], Kr[3], Km[3]); in QBAR()
179 block[0] ^= F3(block[1], Kr[2], Km[2]); in QBAR()
180 block[1] ^= F2(block[2], Kr[1], Km[1]); in QBAR()
181 block[2] ^= F1(block[3], Kr[0], Km[0]); in QBAR()
[all …]
Dmd5.c46 le32_to_cpu_array(ctx->block, sizeof(ctx->block) / sizeof(u32)); in md5_transform_helper()
47 md5_transform(ctx->hash, ctx->block); in md5_transform_helper()
66 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in md5_update()
71 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in md5_update()
76 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in md5_update()
83 while (len >= sizeof(mctx->block)) { in md5_update()
84 memcpy(mctx->block, data, sizeof(mctx->block)); in md5_update()
86 data += sizeof(mctx->block); in md5_update()
87 len -= sizeof(mctx->block); in md5_update()
90 memcpy(mctx->block, data, len); in md5_update()
[all …]
Dmd4.c38 u32 block[MD4_BLOCK_WORDS]; member
152 le32_to_cpu_array(ctx->block, ARRAY_SIZE(ctx->block)); in md4_transform_helper()
153 md4_transform(ctx->hash, ctx->block); in md4_transform_helper()
172 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in md4_update()
177 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in md4_update()
182 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in md4_update()
189 while (len >= sizeof(mctx->block)) { in md4_update()
190 memcpy(mctx->block, data, sizeof(mctx->block)); in md4_update()
192 data += sizeof(mctx->block); in md4_update()
193 len -= sizeof(mctx->block); in md4_update()
[all …]
Dkeywrap.c148 struct crypto_kw_block *block = (struct crypto_kw_block *) in crypto_kw_decrypt() local
163 memcpy(block->A, desc->info, SEMIBSIZE); in crypto_kw_decrypt()
184 scatterwalk_copychunks(block->R, &src_walk, SEMIBSIZE, in crypto_kw_decrypt()
190 crypto_xor(block->A, tbe, SEMIBSIZE); in crypto_kw_decrypt()
193 crypto_cipher_decrypt_one(child, (u8*)block, in crypto_kw_decrypt()
194 (u8*)block); in crypto_kw_decrypt()
199 scatterwalk_copychunks(block->R, &dst_walk, SEMIBSIZE, in crypto_kw_decrypt()
211 if (crypto_memneq("\xA6\xA6\xA6\xA6\xA6\xA6\xA6\xA6", block->A, in crypto_kw_decrypt()
215 memzero_explicit(block, sizeof(struct crypto_kw_block)); in crypto_kw_decrypt()
233 struct crypto_kw_block *block = (struct crypto_kw_block *) in crypto_kw_encrypt() local
[all …]
Dwp512.c785 u64 block[8]; /* mu(buffer) */ in wp512_process_buffer() local
791 block[i] = be64_to_cpu(buffer[i]); in wp512_process_buffer()
793 state[0] = block[0] ^ (K[0] = wctx->hash[0]); in wp512_process_buffer()
794 state[1] = block[1] ^ (K[1] = wctx->hash[1]); in wp512_process_buffer()
795 state[2] = block[2] ^ (K[2] = wctx->hash[2]); in wp512_process_buffer()
796 state[3] = block[3] ^ (K[3] = wctx->hash[3]); in wp512_process_buffer()
797 state[4] = block[4] ^ (K[4] = wctx->hash[4]); in wp512_process_buffer()
798 state[5] = block[5] ^ (K[5] = wctx->hash[5]); in wp512_process_buffer()
799 state[6] = block[6] ^ (K[6] = wctx->hash[6]); in wp512_process_buffer()
800 state[7] = block[7] ^ (K[7] = wctx->hash[7]); in wp512_process_buffer()
[all …]
/linux-4.4.14/sound/pci/ctxfi/
Dctvmem.c35 struct ct_vm_block *block = NULL, *entry; in get_vm_block() local
58 block = entry; in get_vm_block()
62 block = kzalloc(sizeof(*block), GFP_KERNEL); in get_vm_block()
63 if (!block) in get_vm_block()
66 block->addr = entry->addr; in get_vm_block()
67 block->size = size; in get_vm_block()
68 list_add(&block->list, &vm->used); in get_vm_block()
75 return block; in get_vm_block()
78 static void put_vm_block(struct ct_vm *vm, struct ct_vm_block *block) in put_vm_block() argument
83 block->size = CT_PAGE_ALIGN(block->size); in put_vm_block()
[all …]
/linux-4.4.14/drivers/s390/block/
Ddasd_ioctl.c59 (loff_t)get_capacity(base->block->gdp) << 9); in dasd_ioctl_enable()
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()
146 static int dasd_ioctl_abortio(struct dasd_block *block) in dasd_ioctl_abortio() argument
152 base = block->base; in dasd_ioctl_abortio()
160 spin_lock_irqsave(&block->request_queue_lock, flags); in dasd_ioctl_abortio()
161 spin_lock(&block->queue_lock); in dasd_ioctl_abortio()
[all …]
Ddasd_genhd.c29 int dasd_gendisk_alloc(struct dasd_block *block) in dasd_gendisk_alloc() argument
36 base = block->base; in dasd_gendisk_alloc()
76 gdp->queue = block->request_queue; in dasd_gendisk_alloc()
77 block->gdp = gdp; in dasd_gendisk_alloc()
78 set_capacity(block->gdp, 0); in dasd_gendisk_alloc()
79 add_disk(block->gdp); in dasd_gendisk_alloc()
86 void dasd_gendisk_free(struct dasd_block *block) in dasd_gendisk_free() argument
88 if (block->gdp) { in dasd_gendisk_free()
89 del_gendisk(block->gdp); in dasd_gendisk_free()
90 block->gdp->private_data = NULL; in dasd_gendisk_free()
[all …]
Ddasd.c149 struct dasd_block *block; in dasd_alloc_block() local
151 block = kzalloc(sizeof(*block), GFP_ATOMIC); in dasd_alloc_block()
152 if (!block) in dasd_alloc_block()
155 atomic_set(&block->open_count, -1); in dasd_alloc_block()
157 spin_lock_init(&block->request_queue_lock); in dasd_alloc_block()
158 atomic_set(&block->tasklet_scheduled, 0); in dasd_alloc_block()
159 tasklet_init(&block->tasklet, in dasd_alloc_block()
161 (unsigned long) block); in dasd_alloc_block()
162 INIT_LIST_HEAD(&block->ccw_queue); in dasd_alloc_block()
163 spin_lock_init(&block->queue_lock); in dasd_alloc_block()
[all …]
Ddasd_proc.c38 struct dasd_block *block; in dasd_devices_show() local
44 if (device->block) in dasd_devices_show()
45 block = device->block; in dasd_devices_show()
58 if (block->gdp) in dasd_devices_show()
60 MAJOR(disk_devt(block->gdp)), in dasd_devices_show()
61 MINOR(disk_devt(block->gdp))); in dasd_devices_show()
65 if (block->gdp) in dasd_devices_show()
66 seq_printf(m, " is %-8s", block->gdp->disk_name); in dasd_devices_show()
89 if (dasd_check_blocksize(block->bp_block)) in dasd_devices_show()
94 block->bp_block, block->blocks, in dasd_devices_show()
[all …]
Ddasd_diag.c153 rc = mdsk_init_io(device, device->block->bp_block, 0, NULL); in dasd_diag_erp()
230 mdsk_init_io(device, device->block->bp_block, 0, NULL); in dasd_diag_term_IO()
323 struct dasd_block *block; in dasd_diag_check_device() local
344 block = dasd_alloc_block(); in dasd_diag_check_device()
345 if (IS_ERR(block)) { in dasd_diag_check_device()
350 return PTR_ERR(block); in dasd_diag_check_device()
352 device->block = block; in dasd_diag_check_device()
353 block->base = device; in dasd_diag_check_device()
444 block->blocks = (unsigned long) label->block_count; in dasd_diag_check_device()
446 block->blocks = end_block; in dasd_diag_check_device()
[all …]
Ddasd_fba.c128 struct dasd_block *block; in dasd_fba_check_characteristics() local
147 block = dasd_alloc_block(); in dasd_fba_check_characteristics()
148 if (IS_ERR(block)) { in dasd_fba_check_characteristics()
153 return PTR_ERR(block); in dasd_fba_check_characteristics()
155 device->block = block; in dasd_fba_check_characteristics()
156 block->base = device; in dasd_fba_check_characteristics()
164 device->block = NULL; in dasd_fba_check_characteristics()
165 dasd_free_block(block); in dasd_fba_check_characteristics()
193 static int dasd_fba_do_analysis(struct dasd_block *block) in dasd_fba_do_analysis() argument
198 private = (struct dasd_fba_private *) block->base->private; in dasd_fba_do_analysis()
[all …]
/linux-4.4.14/Documentation/DocBook/
Dtracepoint.xml.db8 API-trace-block-touch-buffer
9 API-trace-block-dirty-buffer
10 API-trace-block-rq-abort
11 API-trace-block-rq-requeue
12 API-trace-block-rq-complete
13 API-trace-block-rq-insert
14 API-trace-block-rq-issue
15 API-trace-block-bio-bounce
16 API-trace-block-bio-complete
17 API-trace-block-bio-backmerge
[all …]
D.kernel-api.xml.cmd2block/blk-core.c block/blk-core.c block/blk-map.c block/blk-sysfs.c block/blk-settings.c block/blk…
Dmtdnand.xml.db35 API-nand-block-bad
36 API-nand-default-block-markbad
37 API-nand-block-markbad-lowlevel
39 API-nand-block-isreserved
40 API-nand-block-checkbad
85 API-nand-block-isbad
86 API-nand-block-markbad
/linux-4.4.14/drivers/md/
Ddm-log-writes.c128 struct pending_block *block; member
176 struct pending_block *block) in free_pending_block() argument
180 for (i = 0; i < block->vec_cnt; i++) { in free_pending_block()
181 if (block->vecs[i].bv_page) in free_pending_block()
182 __free_page(block->vecs[i].bv_page); in free_pending_block()
184 kfree(block->data); in free_pending_block()
185 kfree(block); in free_pending_block()
240 struct pending_block *block, sector_t sector) in log_one_block() argument
247 entry.sector = cpu_to_le64(block->sector); in log_one_block()
248 entry.nr_sectors = cpu_to_le64(block->nr_sectors); in log_one_block()
[all …]
Ddm-bufio.c139 sector_t block; member
259 static struct dm_buffer *__find(struct dm_bufio_client *c, sector_t block) in __find() argument
267 if (b->block == block) in __find()
270 n = (b->block < block) ? n->rb_left : n->rb_right; in __find()
284 if (found->block == b->block) { in __insert()
290 new = (found->block < b->block) ? in __insert()
476 static void __link_buffer(struct dm_buffer *b, sector_t block, int dirty) in __link_buffer() argument
481 b->block = block; in __link_buffer()
552 static void use_dmio(struct dm_buffer *b, int rw, sector_t block, in use_dmio() argument
564 .sector = block << b->c->sectors_per_block_bits, in use_dmio()
[all …]
Ddm-bufio.h48 void *dm_bufio_read(struct dm_bufio_client *c, sector_t block,
55 void *dm_bufio_get(struct dm_bufio_client *c, sector_t block,
62 void *dm_bufio_new(struct dm_bufio_client *c, sector_t block,
71 sector_t block, unsigned n_blocks);
116 void dm_bufio_forget(struct dm_bufio_client *c, sector_t block);
Ddm-verity.c90 sector_t block; member
111 sector_t block; member
170 static sector_t verity_position_at_level(struct dm_verity *v, sector_t block, in verity_position_at_level() argument
173 return block >> (level * v->hash_per_block_bits); in verity_position_at_level()
176 static void verity_hash_at_level(struct dm_verity *v, sector_t block, int level, in verity_hash_at_level() argument
179 sector_t position = verity_position_at_level(v, block, level); in verity_hash_at_level()
198 unsigned long long block) in verity_handle_err() argument
225 block); in verity_handle_err()
231 DM_VERITY_ENV_VAR_NAME, type, block); in verity_handle_err()
256 static int verity_verify_level(struct dm_verity_io *io, sector_t block, in verity_verify_level() argument
[all …]
/linux-4.4.14/arch/arm/mach-cns3xxx/
Dpm.c18 void cns3xxx_pwr_clk_en(unsigned int block) in cns3xxx_pwr_clk_en() argument
22 reg |= (block & PM_CLK_GATE_REG_MASK); in cns3xxx_pwr_clk_en()
27 void cns3xxx_pwr_clk_dis(unsigned int block) in cns3xxx_pwr_clk_dis() argument
31 reg &= ~(block & PM_CLK_GATE_REG_MASK); in cns3xxx_pwr_clk_dis()
36 void cns3xxx_pwr_power_up(unsigned int block) in cns3xxx_pwr_power_up() argument
40 reg &= ~(block & CNS3XXX_PWR_PLL_ALL); in cns3xxx_pwr_power_up()
48 void cns3xxx_pwr_power_down(unsigned int block) in cns3xxx_pwr_power_down() argument
53 reg |= (block & CNS3XXX_PWR_PLL_ALL); in cns3xxx_pwr_power_down()
58 static void cns3xxx_pwr_soft_rst_force(unsigned int block) in cns3xxx_pwr_soft_rst_force() argument
66 if (block & 0x30000001) { in cns3xxx_pwr_soft_rst_force()
[all …]
Dpm.h16 void cns3xxx_pwr_clk_en(unsigned int block);
17 void cns3xxx_pwr_clk_dis(unsigned int block);
18 void cns3xxx_pwr_power_up(unsigned int block);
19 void cns3xxx_pwr_power_down(unsigned int block);
/linux-4.4.14/drivers/misc/
Dsram.c89 static int sram_add_pool(struct sram_dev *sram, struct sram_reserve *block, in sram_add_pool() argument
95 NUMA_NO_NODE, block->label); in sram_add_pool()
100 block->size, NUMA_NO_NODE); in sram_add_pool()
109 static int sram_add_export(struct sram_dev *sram, struct sram_reserve *block, in sram_add_export() argument
122 part->battr.size = block->size; in sram_add_export()
127 static int sram_add_partition(struct sram_dev *sram, struct sram_reserve *block, in sram_add_partition() argument
134 part->base = sram->virt_base + block->start; in sram_add_partition()
136 if (block->pool) { in sram_add_partition()
137 ret = sram_add_pool(sram, block, start, part); in sram_add_partition()
141 if (block->export) { in sram_add_partition()
[all …]
/linux-4.4.14/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()
34 block, bdevname(sb->s_bdev, b)); in block_to_path()
35 } else if ((u64)block * (u64)sb->s_blocksize >= in block_to_path()
40 block, bdevname(sb->s_bdev, b)); in block_to_path()
41 } else if (block < DIRCOUNT) { in block_to_path()
42 offsets[n++] = block; in block_to_path()
43 } else if ((block -= DIRCOUNT) < INDIRCOUNT(sb)) { in block_to_path()
45 offsets[n++] = block; in block_to_path()
46 } else if ((block -= INDIRCOUNT(sb)) < INDIRCOUNT(sb) * INDIRCOUNT(sb)) { in block_to_path()
[all …]
Ditree_v1.c24 static int block_to_path(struct inode * inode, long block, int offsets[DEPTH]) in block_to_path() argument
29 if (block < 0) { in block_to_path()
31 block, bdevname(inode->i_sb->s_bdev, b)); in block_to_path()
32 } else if (block >= (minix_sb(inode->i_sb)->s_max_size/BLOCK_SIZE)) { in block_to_path()
36 block, bdevname(inode->i_sb->s_bdev, b)); in block_to_path()
37 } else if (block < 7) { in block_to_path()
38 offsets[n++] = block; in block_to_path()
39 } else if ((block -= 7) < 512) { in block_to_path()
41 offsets[n++] = block; in block_to_path()
43 block -= 512; in block_to_path()
[all …]
Dbitmap.c41 void minix_free_block(struct inode *inode, unsigned long block) in minix_free_block() argument
49 if (block < sbi->s_firstdatazone || block >= sbi->s_nzones) { in minix_free_block()
53 zone = block - sbi->s_firstdatazone + 1; in minix_free_block()
64 sb->s_id, block); in minix_free_block()
108 int block; in minix_V1_raw_inode() local
118 block = 2 + sbi->s_imap_blocks + sbi->s_zmap_blocks + in minix_V1_raw_inode()
120 *bh = sb_bread(sb, block); in minix_V1_raw_inode()
132 int block; in minix_V2_raw_inode() local
144 block = 2 + sbi->s_imap_blocks + sbi->s_zmap_blocks + in minix_V2_raw_inode()
146 *bh = sb_bread(sb, block); in minix_V2_raw_inode()
/linux-4.4.14/arch/mips/cavium-octeon/crypto/
Docteon-md5.c56 const u64 *block = _block; in octeon_md5_transform() local
58 write_octeon_64bit_block_dword(block[0], 0); in octeon_md5_transform()
59 write_octeon_64bit_block_dword(block[1], 1); in octeon_md5_transform()
60 write_octeon_64bit_block_dword(block[2], 2); in octeon_md5_transform()
61 write_octeon_64bit_block_dword(block[3], 3); in octeon_md5_transform()
62 write_octeon_64bit_block_dword(block[4], 4); in octeon_md5_transform()
63 write_octeon_64bit_block_dword(block[5], 5); in octeon_md5_transform()
64 write_octeon_64bit_block_dword(block[6], 6); in octeon_md5_transform()
65 octeon_md5_start(block[7]); in octeon_md5_transform()
85 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in octeon_md5_update()
[all …]
Docteon-sha512.c61 const u64 *block = _block; in octeon_sha512_transform() local
63 write_octeon_64bit_block_sha512(block[0], 0); in octeon_sha512_transform()
64 write_octeon_64bit_block_sha512(block[1], 1); in octeon_sha512_transform()
65 write_octeon_64bit_block_sha512(block[2], 2); in octeon_sha512_transform()
66 write_octeon_64bit_block_sha512(block[3], 3); in octeon_sha512_transform()
67 write_octeon_64bit_block_sha512(block[4], 4); in octeon_sha512_transform()
68 write_octeon_64bit_block_sha512(block[5], 5); in octeon_sha512_transform()
69 write_octeon_64bit_block_sha512(block[6], 6); in octeon_sha512_transform()
70 write_octeon_64bit_block_sha512(block[7], 7); in octeon_sha512_transform()
71 write_octeon_64bit_block_sha512(block[8], 8); in octeon_sha512_transform()
[all …]
Docteon-sha1.c66 const u64 *block = _block; in octeon_sha1_transform() local
68 write_octeon_64bit_block_dword(block[0], 0); in octeon_sha1_transform()
69 write_octeon_64bit_block_dword(block[1], 1); in octeon_sha1_transform()
70 write_octeon_64bit_block_dword(block[2], 2); in octeon_sha1_transform()
71 write_octeon_64bit_block_dword(block[3], 3); in octeon_sha1_transform()
72 write_octeon_64bit_block_dword(block[4], 4); in octeon_sha1_transform()
73 write_octeon_64bit_block_dword(block[5], 5); in octeon_sha1_transform()
74 write_octeon_64bit_block_dword(block[6], 6); in octeon_sha1_transform()
75 octeon_sha1_start(block[7]); in octeon_sha1_transform()
Docteon-sha256.c58 const u64 *block = _block; in octeon_sha256_transform() local
60 write_octeon_64bit_block_dword(block[0], 0); in octeon_sha256_transform()
61 write_octeon_64bit_block_dword(block[1], 1); in octeon_sha256_transform()
62 write_octeon_64bit_block_dword(block[2], 2); in octeon_sha256_transform()
63 write_octeon_64bit_block_dword(block[3], 3); in octeon_sha256_transform()
64 write_octeon_64bit_block_dword(block[4], 4); in octeon_sha256_transform()
65 write_octeon_64bit_block_dword(block[5], 5); in octeon_sha256_transform()
66 write_octeon_64bit_block_dword(block[6], 6); in octeon_sha256_transform()
67 octeon_sha256_start(block[7]); in octeon_sha256_transform()
/linux-4.4.14/drivers/video/fbdev/core/
Dfbmon.c96 static int edid_is_serial_block(unsigned char *block) in edid_is_serial_block() argument
98 if ((block[0] == 0x00) && (block[1] == 0x00) && in edid_is_serial_block()
99 (block[2] == 0x00) && (block[3] == 0xff) && in edid_is_serial_block()
100 (block[4] == 0x00)) in edid_is_serial_block()
106 static int edid_is_ascii_block(unsigned char *block) in edid_is_ascii_block() argument
108 if ((block[0] == 0x00) && (block[1] == 0x00) && in edid_is_ascii_block()
109 (block[2] == 0x00) && (block[3] == 0xfe) && in edid_is_ascii_block()
110 (block[4] == 0x00)) in edid_is_ascii_block()
116 static int edid_is_limits_block(unsigned char *block) in edid_is_limits_block() argument
118 if ((block[0] == 0x00) && (block[1] == 0x00) && in edid_is_limits_block()
[all …]
/linux-4.4.14/sound/soc/intel/common/
Dsst-firmware.c117 struct sst_mem_block *block, *tmp; in block_list_remove() local
121 list_for_each_entry(block, block_list, module_list) { in block_list_remove()
123 if (block->ops && block->ops->disable) { in block_list_remove()
124 err = block->ops->disable(block); in block_list_remove()
128 block->type, block->index); in block_list_remove()
133 list_for_each_entry_safe(block, tmp, block_list, module_list) { in block_list_remove()
134 list_del(&block->module_list); in block_list_remove()
135 list_move(&block->list, &dsp->free_block_list); in block_list_remove()
137 block->type, block->index, block->offset); in block_list_remove()
145 struct sst_mem_block *block; in block_list_prepare() local
[all …]
/linux-4.4.14/fs/btrfs/
Dcheck-integrity.c239 struct btrfsic_block *block; member
305 struct btrfsic_block *block,
313 struct btrfsic_block *block,
324 struct btrfsic_block *block,
344 struct btrfsic_block *const block,
349 const struct btrfsic_block *block,
352 struct btrfsic_block *const block,
359 const struct btrfsic_block *block);
362 const struct btrfsic_block *block,
991 sf->block = first_block; in btrfsic_process_metablock()
[all …]
/linux-4.4.14/fs/sysv/
Dballoc.c48 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()
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()
120 if (block < sbi->s_firstdatazone || block >= sbi->s_nzones) { in sysv_new_block()
122 block); in sysv_new_block()
129 block += sbi->s_block_base; in sysv_new_block()
130 if (!(bh = sb_bread(sb, block))) { in sysv_new_block()
[all …]
Ditree.c22 static int block_to_path(struct inode *inode, long block, int offsets[DEPTH]) in block_to_path() argument
31 if (block < 0) { in block_to_path()
33 } else if (block < DIRECT) { in block_to_path()
34 offsets[n++] = block; in block_to_path()
35 } else if ( (block -= DIRECT) < indirect_blocks) { in block_to_path()
37 offsets[n++] = block; in block_to_path()
38 } else if ((block -= indirect_blocks) < double_blocks) { in block_to_path()
40 offsets[n++] = block >> ptrs_bits; in block_to_path()
41 offsets[n++] = block & (indirect_blocks - 1); in block_to_path()
42 } else if (((block -= double_blocks) >> (ptrs_bits * 2)) < indirect_blocks) { in block_to_path()
[all …]
Dinode.c178 unsigned int block; in sysv_iget() local
213 for (block = 0; block < 10+1+1+1; block++) in sysv_iget()
214 read3byte(sbi, &raw_inode->i_data[3*block], in sysv_iget()
215 (u8 *)&si->i_data[block]); in sysv_iget()
238 unsigned int ino, block; in __sysv_write_inode() local
265 for (block = 0; block < 10+1+1+1; block++) in __sysv_write_inode()
266 write3byte(sbi, (u8 *)&si->i_data[block], in __sysv_write_inode()
267 &raw_inode->i_data[3*block]); in __sysv_write_inode()
/linux-4.4.14/fs/xfs/libxfs/
Dxfs_btree.c58 struct xfs_btree_block *block, /* btree long form block pointer */ in xfs_btree_check_lblock() argument
69 uuid_equal(&block->bb_u.l.bb_uuid, in xfs_btree_check_lblock()
71 block->bb_u.l.bb_blkno == cpu_to_be64( in xfs_btree_check_lblock()
76 be32_to_cpu(block->bb_magic) == xfs_btree_magic(cur) && in xfs_btree_check_lblock()
77 be16_to_cpu(block->bb_level) == level && in xfs_btree_check_lblock()
78 be16_to_cpu(block->bb_numrecs) <= in xfs_btree_check_lblock()
80 block->bb_u.l.bb_leftsib && in xfs_btree_check_lblock()
81 (block->bb_u.l.bb_leftsib == cpu_to_be64(NULLFSBLOCK) || in xfs_btree_check_lblock()
83 be64_to_cpu(block->bb_u.l.bb_leftsib))) && in xfs_btree_check_lblock()
84 block->bb_u.l.bb_rightsib && in xfs_btree_check_lblock()
[all …]
Dxfs_bmap_btree.h42 #define XFS_BMBT_REC_ADDR(mp, block, index) \ argument
44 ((char *)(block) + \
48 #define XFS_BMBT_KEY_ADDR(mp, block, index) \ argument
50 ((char *)(block) + \
54 #define XFS_BMBT_PTR_ADDR(mp, block, index, maxrecs) \ argument
56 ((char *)(block) + \
61 #define XFS_BMDR_REC_ADDR(block, index) \ argument
63 ((char *)(block) + \
67 #define XFS_BMDR_KEY_ADDR(block, index) \ argument
69 ((char *)(block) + \
[all …]
Dxfs_alloc_btree.h41 #define XFS_ALLOC_REC_ADDR(mp, block, index) \ argument
43 ((char *)(block) + \
47 #define XFS_ALLOC_KEY_ADDR(mp, block, index) \ argument
49 ((char *)(block) + \
53 #define XFS_ALLOC_PTR_ADDR(mp, block, index, maxrecs) \ argument
55 ((char *)(block) + \
Dxfs_ialloc_btree.h41 #define XFS_INOBT_REC_ADDR(mp, block, index) \ argument
43 ((char *)(block) + \
47 #define XFS_INOBT_KEY_ADDR(mp, block, index) \ argument
49 ((char *)(block) + \
53 #define XFS_INOBT_PTR_ADDR(mp, block, index, maxrecs) \ argument
55 ((char *)(block) + \
Dxfs_alloc_btree.c132 struct xfs_btree_block *block, in xfs_allocbt_update_lastrec() argument
151 if (ptr != xfs_btree_get_numrecs(block)) in xfs_allocbt_update_lastrec()
162 numrecs = xfs_btree_get_numrecs(block); in xfs_allocbt_update_lastrec()
170 rrp = XFS_ALLOC_REC_ADDR(cur->bc_mp, block, numrecs); in xfs_allocbt_update_lastrec()
277 struct xfs_btree_block *block = XFS_BUF_TO_BLOCK(bp); in xfs_allocbt_verify() local
293 level = be16_to_cpu(block->bb_level); in xfs_allocbt_verify()
294 switch (block->bb_magic) { in xfs_allocbt_verify()
298 if (!uuid_equal(&block->bb_u.s.bb_uuid, &mp->m_sb.sb_meta_uuid)) in xfs_allocbt_verify()
300 if (block->bb_u.s.bb_blkno != cpu_to_be64(bp->b_bn)) in xfs_allocbt_verify()
303 be32_to_cpu(block->bb_u.s.bb_owner) != pag->pag_agno) in xfs_allocbt_verify()
[all …]
Dxfs_rtbitmap.c52 xfs_rtblock_t block, /* block number in bitmap or summary */ in xfs_rtbuf_get() argument
64 error = xfs_bmapi_read(ip, block, 1, &map, &nmap, XFS_DATA_FORK); in xfs_rtbuf_get()
92 xfs_rtblock_t block; /* bitmap block number */ in xfs_rtfind_back() local
107 block = XFS_BITTOBLOCK(mp, start); in xfs_rtfind_back()
108 error = xfs_rtbuf_get(mp, tp, block, 0, &bp); in xfs_rtfind_back()
160 error = xfs_rtbuf_get(mp, tp, --block, 0, &bp); in xfs_rtfind_back()
206 error = xfs_rtbuf_get(mp, tp, --block, 0, &bp); in xfs_rtfind_back()
267 xfs_rtblock_t block; /* bitmap block number */ in xfs_rtfind_forw() local
282 block = XFS_BITTOBLOCK(mp, start); in xfs_rtfind_forw()
283 error = xfs_rtbuf_get(mp, tp, block, 0, &bp); in xfs_rtfind_forw()
[all …]
Dxfs_ialloc_btree.c223 struct xfs_btree_block *block = XFS_BUF_TO_BLOCK(bp); in xfs_inobt_verify() local
237 switch (block->bb_magic) { in xfs_inobt_verify()
242 if (!uuid_equal(&block->bb_u.s.bb_uuid, &mp->m_sb.sb_meta_uuid)) in xfs_inobt_verify()
244 if (block->bb_u.s.bb_blkno != cpu_to_be64(bp->b_bn)) in xfs_inobt_verify()
247 be32_to_cpu(block->bb_u.s.bb_owner) != pag->pag_agno) in xfs_inobt_verify()
258 level = be16_to_cpu(block->bb_level); in xfs_inobt_verify()
261 if (be16_to_cpu(block->bb_numrecs) > mp->m_inobt_mxr[level != 0]) in xfs_inobt_verify()
265 if (!block->bb_u.s.bb_leftsib || in xfs_inobt_verify()
266 (be32_to_cpu(block->bb_u.s.bb_leftsib) >= mp->m_sb.sb_agblocks && in xfs_inobt_verify()
267 block->bb_u.s.bb_leftsib != cpu_to_be32(NULLAGBLOCK))) in xfs_inobt_verify()
[all …]
/linux-4.4.14/drivers/platform/x86/
Dwmi.c201 struct guid_block *block; in find_guid() local
209 block = &wblock->gblock; in find_guid()
211 if (memcmp(block->guid, guid_input, 16) == 0) { in find_guid()
222 struct guid_block *block = NULL; in wmi_method_enable() local
227 block = &wblock->gblock; in wmi_method_enable()
230 snprintf(method, 5, "WE%02X", block->notify_id); in wmi_method_enable()
255 struct guid_block *block = NULL; in wmi_evaluate_method() local
266 block = &wblock->gblock; in wmi_evaluate_method()
269 if (!(block->flags & ACPI_WMI_METHOD)) in wmi_evaluate_method()
272 if (block->instance_count < instance) in wmi_evaluate_method()
[all …]
/linux-4.4.14/sound/soc/intel/haswell/
Dsst-haswell-dsp.c91 struct dma_block_info *block; in hsw_parse_module() local
124 block = (void *)module + sizeof(*module); in hsw_parse_module()
128 if (block->size <= 0) { in hsw_parse_module()
135 switch (block->type) { in hsw_parse_module()
139 block->ram_offset + dsp->addr.iram_offset; in hsw_parse_module()
145 mod->offset = block->ram_offset; in hsw_parse_module()
150 block->type, count); in hsw_parse_module()
155 mod->size = block->size; in hsw_parse_module()
156 mod->data = (void *)block + sizeof(*block); in hsw_parse_module()
161 count, mod->type, block->size, ram, in hsw_parse_module()
[all …]
/linux-4.4.14/sound/soc/intel/atom/sst/
Dsst_pvt.c91 struct sst_block *block) in sst_wait_interruptible() argument
96 block->condition)) { in sst_wait_interruptible()
98 if (block->ret_code < 0) { in sst_wait_interruptible()
100 "stream failed %d\n", block->ret_code); in sst_wait_interruptible()
123 int sst_wait_timeout(struct intel_sst_drv *sst_drv_ctx, struct sst_block *block) in sst_wait_timeout() argument
134 block->condition, block->msg_id, block->drv_id); in sst_wait_timeout()
136 block->condition, in sst_wait_timeout()
140 block->condition); in sst_wait_timeout()
142 block->ret_code); in sst_wait_timeout()
143 retval = -block->ret_code; in sst_wait_timeout()
[all …]
Dsst_loader.c183 struct fw_block_info *block; in sst_parse_module_memcpy() local
193 block = (void *)module + sizeof(*module); in sst_parse_module_memcpy()
196 if (block->size <= 0) { in sst_parse_module_memcpy()
200 switch (block->type) { in sst_parse_module_memcpy()
211 block = (void *)block + sizeof(*block) + block->size; in sst_parse_module_memcpy()
215 block->type, count); in sst_parse_module_memcpy()
220 ram_iomem + block->ram_offset, in sst_parse_module_memcpy()
221 (void *)block + sizeof(*block), block->size, 1); in sst_parse_module_memcpy()
225 block = (void *)block + sizeof(*block) + block->size; in sst_parse_module_memcpy()
403 struct sst_block *block; in sst_load_fw() local
[all …]
Dsst_ipc.c75 struct sst_block *block = NULL; in sst_wake_up_block() local
80 list_for_each_entry(block, &ctx->block_list, node) { in sst_wake_up_block()
81 dev_dbg(ctx->dev, "Block ipc %d, drv_id %d\n", block->msg_id, in sst_wake_up_block()
82 block->drv_id); in sst_wake_up_block()
83 if (block->msg_id == ipc && block->drv_id == drv_id) { in sst_wake_up_block()
85 block->ret_code = result; in sst_wake_up_block()
86 block->data = data; in sst_wake_up_block()
87 block->size = size; in sst_wake_up_block()
88 block->condition = true; in sst_wake_up_block()
103 struct sst_block *block = NULL, *__block; in sst_free_block() local
[all …]
Dsst_stream.c168 struct sst_block *block = NULL; in sst_send_byte_stream_mrfld() local
172 bytes->type, bytes->ipc_msg, bytes->block, bytes->task_id, in sst_send_byte_stream_mrfld()
181 msg->mrfld_header.p.header_high.part.res_rqd = bytes->block; in sst_send_byte_stream_mrfld()
186 if (bytes->block) { in sst_send_byte_stream_mrfld()
187 block = sst_create_block(sst_drv_ctx, bytes->ipc_msg, pvt_id); in sst_send_byte_stream_mrfld()
188 if (block == NULL) { in sst_send_byte_stream_mrfld()
199 if (bytes->block) { in sst_send_byte_stream_mrfld()
200 ret = sst_wait_timeout(sst_drv_ctx, block); in sst_send_byte_stream_mrfld()
203 sst_free_block(sst_drv_ctx, block); in sst_send_byte_stream_mrfld()
212 if (bytes->block) { in sst_send_byte_stream_mrfld()
[all …]
/linux-4.4.14/fs/befs/
Dio.c30 befs_blocknr_t block = 0; in befs_bread_iaddr() local
43 block = iaddr2blockno(sb, &iaddr); in befs_bread_iaddr()
45 befs_debug(sb, "%s: offset = %lu", __func__, (unsigned long)block); in befs_bread_iaddr()
47 bh = sb_bread(sb, block); in befs_bread_iaddr()
51 (unsigned long)block); in befs_bread_iaddr()
64 befs_bread(struct super_block *sb, befs_blocknr_t block) in befs_bread() argument
68 befs_debug(sb, "---> Enter %s %lu", __func__, (unsigned long)block); in befs_bread()
70 bh = sb_bread(sb, block); in befs_bread()
74 (unsigned long)block); in befs_bread()
/linux-4.4.14/sound/pci/emu10k1/
Demu10k1_patch.c94 sp->block = snd_emu10k1_synth_alloc(emu, blocksize); in snd_emu10k1_sample_new()
95 if (sp->block == NULL) { in snd_emu10k1_sample_new()
111 snd_emu10k1_synth_bzero(emu, sp->block, offset, size); in snd_emu10k1_sample_new()
120 if (snd_emu10k1_synth_copy_from_user(emu, sp->block, offset, data, size)) { in snd_emu10k1_sample_new()
121 snd_emu10k1_synth_free(emu, sp->block); in snd_emu10k1_sample_new()
122 sp->block = NULL; in snd_emu10k1_sample_new()
134 unsigned short *wblock = (unsigned short*)block; in snd_emu10k1_sample_new()
145 block[offset + i] = block[offset - i -1]; in snd_emu10k1_sample_new()
167 if (snd_emu10k1_synth_copy_from_user(emu, sp->block, offset, data, size)) { in snd_emu10k1_sample_new()
168 snd_emu10k1_synth_free(emu, sp->block); in snd_emu10k1_sample_new()
[all …]
/linux-4.4.14/include/linux/
Dbuffer_head.h171 void unmap_underlying_metadata(struct block_device *bdev, sector_t block);
176 struct buffer_head *__find_get_block(struct block_device *bdev, sector_t block,
178 struct buffer_head *__getblk_gfp(struct block_device *bdev, sector_t block,
182 void __breadahead(struct block_device *, sector_t block, unsigned int size);
184 sector_t block, unsigned size, gfp_t gfp);
295 sb_bread(struct super_block *sb, sector_t block) in sb_bread() argument
297 return __bread_gfp(sb->s_bdev, block, sb->s_blocksize, __GFP_MOVABLE); in sb_bread()
301 sb_bread_unmovable(struct super_block *sb, sector_t block) in sb_bread_unmovable() argument
303 return __bread_gfp(sb->s_bdev, block, sb->s_blocksize, 0); in sb_bread_unmovable()
307 sb_breadahead(struct super_block *sb, sector_t block) in sb_breadahead() argument
[all …]
/linux-4.4.14/fs/udf/
Dpartition.c29 uint32_t udf_get_pblock(struct super_block *sb, uint32_t block, in udf_get_pblock() argument
36 block, partition, offset); in udf_get_pblock()
41 return map->s_partition_func(sb, block, partition, offset); in udf_get_pblock()
43 return map->s_partition_root + block + offset; in udf_get_pblock()
46 uint32_t udf_get_pblock_virt15(struct super_block *sb, uint32_t block, in udf_get_pblock_virt15() argument
61 if (block > vdata->s_num_entries) { in udf_get_pblock_virt15()
63 block, vdata->s_num_entries); in udf_get_pblock_virt15()
69 vdata->s_start_offset))[block]); in udf_get_pblock_virt15()
73 if (block >= index) { in udf_get_pblock_virt15()
74 block -= index; in udf_get_pblock_virt15()
[all …]
Dballoc.c35 struct udf_bitmap *bitmap, unsigned int block, in read_block_bitmap() argument
45 bh = udf_tread(sb, udf_get_lb_pblock(sb, &loc, block)); in read_block_bitmap()
114 unsigned long block; in udf_bitmap_free_blocks() local
132 block = bloc->logicalBlockNum + offset + in udf_bitmap_free_blocks()
137 block_group = block >> (sb->s_blocksize_bits + 3); in udf_bitmap_free_blocks()
138 bit = block % (sb->s_blocksize << 3); in udf_bitmap_free_blocks()
162 block += count; in udf_bitmap_free_blocks()
178 int bit, block, block_group, group_start; in udf_bitmap_prealloc_blocks() local
193 block = first_block + (sizeof(struct spaceBitmapDesc) << 3); in udf_bitmap_prealloc_blocks()
194 block_group = block >> (sb->s_blocksize_bits + 3); in udf_bitmap_prealloc_blocks()
[all …]
Dmisc.c31 struct buffer_head *udf_tgetblk(struct super_block *sb, int block) in udf_tgetblk() argument
34 return sb_getblk(sb, udf_fixed_to_variable(block)); in udf_tgetblk()
36 return sb_getblk(sb, block); in udf_tgetblk()
39 struct buffer_head *udf_tread(struct super_block *sb, int block) in udf_tread() argument
42 return sb_bread(sb, udf_fixed_to_variable(block)); in udf_tread()
44 return sb_bread(sb, block); in udf_tread()
201 struct buffer_head *udf_read_tagged(struct super_block *sb, uint32_t block, in udf_read_tagged() argument
209 if (block == 0xFFFFFFFF) in udf_read_tagged()
212 bh = udf_tread(sb, block); in udf_read_tagged()
215 block, location); in udf_read_tagged()
[all …]
Dsuper.c891 static int udf_load_pvoldesc(struct super_block *sb, sector_t block) in udf_load_pvoldesc() argument
907 bh = udf_read_tagged(sb, block, block, &ident); in udf_load_pvoldesc()
1269 static int udf_load_partdesc(struct super_block *sb, sector_t block) in udf_load_partdesc() argument
1280 bh = udf_read_tagged(sb, block, block, &ident); in udf_load_partdesc()
1416 static int udf_load_logicalvol(struct super_block *sb, sector_t block, in udf_load_logicalvol() argument
1429 bh = udf_read_tagged(sb, block, block, &ident); in udf_load_logicalvol()
1599 sector_t block, sector_t lastblock, in udf_process_sequence() argument
1619 for (; (!done && block <= lastblock); block++) { in udf_process_sequence()
1621 bh = udf_read_tagged(sb, block, block, &ident); in udf_process_sequence()
1625 (unsigned long long)block); in udf_process_sequence()
[all …]
Dnamei.c167 int block, flen; in udf_find_entry() local
194 block = udf_get_lb_pblock(sb, &eloc, offset); in udf_find_entry()
203 fibh->sbh = fibh->ebh = udf_tread(sb, block); in udf_find_entry()
346 int block; in udf_add_entry() local
384 block = udf_get_lb_pblock(dir->i_sb, in udf_add_entry()
389 block = udf_get_lb_pblock(dir->i_sb, &eloc, offset); in udf_add_entry()
398 fibh->sbh = fibh->ebh = udf_tread(dir->i_sb, block); in udf_add_entry()
404 block = dinfo->i_location.logicalBlockNum; in udf_add_entry()
452 udf_expand_dir_adinicb(dir, &block, err); in udf_add_entry()
455 epos.block = dinfo->i_location; in udf_add_entry()
[all …]
Ddirectory.c28 int i, num, block; in udf_fileident_read() local
60 block = udf_get_lb_pblock(dir->i_sb, eloc, *offset); in udf_fileident_read()
70 fibh->sbh = fibh->ebh = udf_tread(dir->i_sb, block); in udf_fileident_read()
80 block = udf_get_lb_pblock(dir->i_sb, eloc, in udf_fileident_read()
82 tmp = udf_tgetblk(dir->i_sb, block); in udf_fileident_read()
118 block = udf_get_lb_pblock(dir->i_sb, eloc, *offset); in udf_fileident_read()
130 fibh->ebh = udf_tread(dir->i_sb, block); in udf_fileident_read()
/linux-4.4.14/drivers/md/persistent-data/
Ddm-array.c154 struct dm_block **block, struct array_block **ab) in alloc_ablock() argument
158 r = dm_tm_new_block(info->btree_info.tm, &array_validator, block); in alloc_ablock()
162 (*ab) = dm_block_data(*block); in alloc_ablock()
221 struct dm_block **block, struct array_block **ab) in get_ablock() argument
225 r = dm_tm_read_lock(info->btree_info.tm, b, &array_validator, block); in get_ablock()
229 *ab = dm_block_data(*block); in get_ablock()
236 static void unlock_ablock(struct dm_array_info *info, struct dm_block *block) in unlock_ablock() argument
238 dm_tm_unlock(info->btree_info.tm, block); in unlock_ablock()
254 unsigned index, struct dm_block **block, in lookup_ablock() argument
265 return get_ablock(info, le64_to_cpu(block_le), block, ab); in lookup_ablock()
[all …]
/linux-4.4.14/fs/logfs/
Dreadwrite.c389 static void indirect_write_block(struct logfs_block *block) in indirect_write_block() argument
395 page = block->page; in indirect_write_block()
416 static void inode_write_block(struct logfs_block *block) in inode_write_block() argument
421 inode = block->inode; in inode_write_block()
462 struct logfs_block *block, write_alias_t *write_one_alias) in inode_write_alias() argument
464 struct inode *inode = block->inode; in inode_write_alias()
473 pos = fnb(block->alias_map, LOGFS_BLOCK_FACTOR, pos); in inode_write_alias()
504 struct logfs_block *block, write_alias_t *write_one_alias) in indirect_write_alias() argument
507 struct page *page = block->page; in indirect_write_alias()
514 pos = fnb(block->alias_map, LOGFS_BLOCK_FACTOR, pos); in indirect_write_alias()
[all …]
Dsegment.c185 static int btree_write_alias(struct super_block *sb, struct logfs_block *block, in btree_write_alias() argument
191 list_for_each_entry(item, &block->item_list, list) { in btree_write_alias()
192 err = write_alias_journal(sb, block->ino, block->bix, in btree_write_alias()
193 block->level, item->child_no, item->val); in btree_write_alias()
210 struct logfs_block *block; in logfs_load_object_aliases() local
235 block = alias_tree_lookup(sb, ino, bix, level); in logfs_load_object_aliases()
236 if (!block) { in logfs_load_object_aliases()
237 block = __alloc_block(sb, ino, bix, level); in logfs_load_object_aliases()
238 block->ops = &btree_block_ops; in logfs_load_object_aliases()
239 err = alias_tree_insert(sb, ino, bix, level, block); in logfs_load_object_aliases()
[all …]
/linux-4.4.14/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 …]
Dsysfs-block-zram1 What: /sys/block/zram<id>/disksize
10 What: /sys/block/zram<id>/initstate
17 What: /sys/block/zram<id>/reset
25 What: /sys/block/zram<id>/num_reads
32 What: /sys/block/zram<id>/num_writes
39 What: /sys/block/zram<id>/invalid_io
46 What: /sys/block/zram<id>/failed_reads
53 What: /sys/block/zram<id>/failed_writes
60 What: /sys/block/zram<id>/max_comp_streams
68 What: /sys/block/zram<id>/comp_algorithm
[all …]
Dsysfs-block-bcache1 What: /sys/block/<disk>/bcache/unregister
11 What: /sys/block/<disk>/bcache/clear_stats
17 What: /sys/block/<disk>/bcache/cache
24 What: /sys/block/<disk>/bcache/cache_hits
31 What: /sys/block/<disk>/bcache/cache_misses
37 What: /sys/block/<disk>/bcache/cache_hit_ratio
43 What: /sys/block/<disk>/bcache/sequential_cutoff
51 What: /sys/block/<disk>/bcache/bypassed
59 What: /sys/block/<disk>/bcache/writeback
68 What: /sys/block/<disk>/bcache/writeback_running
[all …]
Dsysfs-dev7 stat(2). There are two directories, 'block' and 'char',
13 $ readlink /sys/dev/block/8:32
14 ../../block/sdc
16 Entries in /sys/dev/char and /sys/dev/block will be
Dsysfs-cfq-target-latency1 What: /sys/block/<device>/iosched/target_latency
5 The /sys/block/<device>/iosched/target_latency only exists
6 when the user sets cfq to /sys/block/<device>/scheduler.
Dsysfs-block-dm1 What: /sys/block/dm-<num>/dm/name
9 What: /sys/block/dm-<num>/dm/uuid
18 What: /sys/block/dm-<num>/dm/suspended
27 What: /sys/block/dm-<num>/dm/rq_based_seq_io_merge_deadline
41 What: /sys/block/dm-<num>/dm/use_blk_mq
/linux-4.4.14/drivers/net/wireless/ath/wil6210/
Dfw_inc.c206 const struct wil_fw_data_dwrite *block = d->data; in fw_handle_direct_write() local
209 if (size % sizeof(*block)) { in fw_handle_direct_write()
211 sizeof(*block), size); in fw_handle_direct_write()
214 n = size / sizeof(*block); in fw_handle_direct_write()
218 u32 m = le32_to_cpu(block[i].mask); in fw_handle_direct_write()
219 u32 v = le32_to_cpu(block[i].value); in fw_handle_direct_write()
222 FW_ADDR_CHECK(dst, block[i].addr, "address"); in fw_handle_direct_write()
228 le32_to_cpu(block[i].addr), y, x, v, m); in fw_handle_direct_write()
262 const struct wil_fw_data_gw *block = d->data; in fw_handle_gateway_data() local
270 if (size < sizeof(*d) + sizeof(*block)) { in fw_handle_gateway_data()
[all …]
Dioctl.c105 void *block; in wil_ioc_memio_block() local
128 block = kmalloc(io.size, GFP_USER); in wil_ioc_memio_block()
129 if (!block) in wil_ioc_memio_block()
135 wil_memcpy_fromio_32(block, a, io.size); in wil_ioc_memio_block()
136 wil_hex_dump_ioctl("Read ", block, io.size); in wil_ioc_memio_block()
137 if (copy_to_user(io.block, block, io.size)) { in wil_ioc_memio_block()
143 if (copy_from_user(block, io.block, io.size)) { in wil_ioc_memio_block()
147 wil_memcpy_toio_32(a, block, io.size); in wil_ioc_memio_block()
149 wil_hex_dump_ioctl("Write ", block, io.size); in wil_ioc_memio_block()
158 kfree(block); in wil_ioc_memio_block()
/linux-4.4.14/fs/efs/
Ddir.c25 efs_block_t block; in efs_readdir() local
33 block = ctx->pos >> EFS_DIRBSIZE_BITS; in efs_readdir()
39 while (block < inode->i_blocks) { in efs_readdir()
44 bh = sb_bread(inode->i_sb, efs_bmap(inode, block)); in efs_readdir()
48 __func__, block); in efs_readdir()
75 __func__, block, slot, dirblock->slots-1, in efs_readdir()
80 ctx->pos = (block << EFS_DIRBSIZE_BITS) | slot; in efs_readdir()
98 block++; in efs_readdir()
100 ctx->pos = (block << EFS_DIRBSIZE_BITS) | slot; in efs_readdir()
Dinode.c20 static sector_t _efs_bmap(struct address_space *mapping, sector_t block) in _efs_bmap() argument
22 return generic_block_bmap(mapping,block,efs_get_block); in _efs_bmap()
55 efs_block_t block, offset; in efs_iget() local
82 block = sb->fs_start + sb->first_block + in efs_iget()
90 bh = sb_bread(inode->i_sb, block); in efs_iget()
92 pr_warn("%s() failed at block %d\n", __func__, block); in efs_iget()
177 efs_extent_check(efs_extent *ptr, efs_block_t block, struct efs_sb_info *sb) { in efs_extent_check() argument
190 if ((block >= offset) && (block < offset+length)) { in efs_extent_check()
191 return(sb->fs_start + start + block - offset); in efs_extent_check()
197 efs_block_t efs_map_block(struct inode *inode, efs_block_t block) { in efs_map_block() argument
[all …]
Dfile.c26 __func__, block, inode->i_blocks, inode->i_size); in efs_get_block()
36 int efs_bmap(struct inode *inode, efs_block_t block) { in efs_bmap() argument
38 if (block < 0) { in efs_bmap()
44 if (!(block < inode->i_blocks)) { in efs_bmap()
50 __func__, block, inode->i_blocks, inode->i_size); in efs_bmap()
55 return efs_map_block(inode, block); in efs_bmap()
Dnamei.c24 efs_block_t block; in efs_find_entry() local
30 for(block = 0; block < inode->i_blocks; block++) { in efs_find_entry()
32 bh = sb_bread(inode->i_sb, efs_bmap(inode, block)); in efs_find_entry()
35 __func__, block); in efs_find_entry()
/linux-4.4.14/drivers/gpu/drm/omapdrm/
Domap_dmm_tiler.c338 int tiler_pin(struct tiler_block *block, struct page **pages, in tiler_pin() argument
343 ret = fill(&block->area, pages, npages, roll, wait); in tiler_pin()
346 tiler_unpin(block); in tiler_pin()
351 int tiler_unpin(struct tiler_block *block) in tiler_unpin() argument
353 return fill(&block->area, NULL, 0, 0, false); in tiler_unpin()
362 struct tiler_block *block = kzalloc(sizeof(*block), GFP_KERNEL); in tiler_reserve_2d() local
378 block->fmt = fmt; in tiler_reserve_2d()
380 ret = tcm_reserve_2d(containers[fmt], w, h, align, &block->area); in tiler_reserve_2d()
382 kfree(block); in tiler_reserve_2d()
388 list_add(&block->alloc_node, &omap_dmm->alloc_head); in tiler_reserve_2d()
[all …]
Domap_gem.c82 struct tiler_block *block; member
138 struct tiler_block *block; /* the reserved tiler block */ member
469 ret = tiler_pin(entry->block, pages, ARRAY_SIZE(pages), 0, true); in fault_2d()
677 if (omap_obj->block) { in omap_gem_roll()
682 ret = tiler_pin(omap_obj->block, pages, npages, roll, true); in omap_gem_roll()
753 struct tiler_block *block; in omap_gem_get_paddr() local
755 BUG_ON(omap_obj->block); in omap_gem_get_paddr()
762 block = tiler_reserve_2d(fmt, in omap_gem_get_paddr()
766 block = tiler_reserve_1d(obj->size); in omap_gem_get_paddr()
769 if (IS_ERR(block)) { in omap_gem_get_paddr()
[all …]
Domap_dmm_tiler.h91 int tiler_pin(struct tiler_block *block, struct page **pages,
93 int tiler_unpin(struct tiler_block *block);
99 int tiler_release(struct tiler_block *block);
102 dma_addr_t tiler_ssptr(struct tiler_block *block);
103 dma_addr_t tiler_tsptr(struct tiler_block *block, uint32_t orient,
/linux-4.4.14/fs/affs/
Daffs.h158 extern void affs_free_block(struct super_block *sb, u32 block);
221 affs_bread(struct super_block *sb, int block) in affs_bread() argument
223 pr_debug("%s: %d\n", __func__, block); in affs_bread()
224 if (block >= AFFS_SB(sb)->s_reserved && block < AFFS_SB(sb)->s_partition_size) in affs_bread()
225 return sb_bread(sb, block); in affs_bread()
229 affs_getblk(struct super_block *sb, int block) in affs_getblk() argument
231 pr_debug("%s: %d\n", __func__, block); in affs_getblk()
232 if (block >= AFFS_SB(sb)->s_reserved && block < AFFS_SB(sb)->s_partition_size) in affs_getblk()
233 return sb_getblk(sb, block); in affs_getblk()
237 affs_getzeroblk(struct super_block *sb, int block) in affs_getzeroblk() argument
[all …]
Dinode.c22 u32 block; in affs_iget() local
35 block = inode->i_ino; in affs_iget()
36 bh = affs_bread(sb, block); in affs_iget()
38 affs_warning(sb, "read_inode", "Cannot read block %d", block); in affs_iget()
44 AFFS_HEAD(bh)->ptype, block); in affs_iget()
292 u32 block; in affs_new_inode() local
298 if (!(block = affs_alloc_block(dir, dir->i_ino))) in affs_new_inode()
301 bh = affs_getzeroblk(sb, block); in affs_new_inode()
309 inode->i_ino = block; in affs_new_inode()
332 affs_free_block(sb, block); in affs_new_inode()
[all …]
/linux-4.4.14/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 …]
Dsquashfs.txt8 maximum of 1Mbytes (default block size 128K).
12 block device/memory systems (e.g. embedded systems) where low overhead is
30 Max block size: 1 MiB 4 KiB
47 file type, i.e. regular file, directory, symbolic link, and block/char device
110 compressed block is prefixed by a two byte length, the top bit is set if the
111 block is uncompressed. A block will be uncompressed if the -noI option is set,
112 or if the compressed block was larger than the uncompressed block.
114 Inodes are packed into the metadata blocks, and are not aligned to block
116 by a 48-bit number which encodes the location of the compressed metadata block
117 containing the inode, and the byte offset into that block where the inode is
[all …]
Ddax.txt11 For block devices that are memory-like, the page cache pages would be
20 If you have a block device which supports DAX, you can make a filesystem
21 on it as usual. The DAX code currently only supports files with a block
22 size equal to your kernel's PAGE_SIZE, so you may need to specify a block
30 To support DAX in your block driver, implement the 'direct_access'
31 block device operation. It is used to translate the sector number
48 These block devices may be used for inspiration:
50 - brd: RAM backed block device driver
51 - dcssblk: s390 dcss block device driver
86 DAX on a block device that supports DAX, they will still be copied into RAM.
Dlogfs.txt15 Superblock locations may differ for MTD and block devices. On MTD the
16 first non-bad block contains a superblock in the first 4096 Bytes and
17 the last non-bad block contains a superblock in the last 4096 Bytes.
18 On block devices, the first 4096 Bytes of the device contain the first
19 superblock and the last aligned 4096 Byte-block contains the second
84 implementation would require that for each write or a block, all
85 parent blocks are written as well, since the block pointers have
88 In LogFS, the block pointer changes are cached in the journal by means
90 number, block index, level and child number (index into block) - and
93 Currently aliases are used for block pointers, file size, file used
[all …]
/linux-4.4.14/fs/ocfs2/
Duptodate.c224 sector_t block) in ocfs2_search_cache_tree() argument
232 if (block < item->c_block) in ocfs2_search_cache_tree()
234 else if (block > item->c_block) in ocfs2_search_cache_tree()
304 sector_t block) in ocfs2_append_cache_array() argument
310 (unsigned long long)block, ci->ci_num_cached); in ocfs2_append_cache_array()
312 ci->ci_cache.ci_array[ci->ci_num_cached] = block; in ocfs2_append_cache_array()
322 sector_t block = new->c_block; in __ocfs2_insert_cache_tree() local
329 (unsigned long long)block, ci->ci_num_cached); in __ocfs2_insert_cache_tree()
336 if (block < tmp->c_block) in __ocfs2_insert_cache_tree()
338 else if (block > tmp->c_block) in __ocfs2_insert_cache_tree()
[all …]
Dbuffer_head_io.c101 int ocfs2_read_blocks_sync(struct ocfs2_super *osb, u64 block, in ocfs2_read_blocks_sync() argument
108 trace_ocfs2_read_blocks_sync((unsigned long long)block, nr); in ocfs2_read_blocks_sync()
115 bhs[i] = sb_getblk(osb->sb, block++); in ocfs2_read_blocks_sync()
176 int ocfs2_read_blocks(struct ocfs2_caching_info *ci, u64 block, int nr, in ocfs2_read_blocks() argument
186 trace_ocfs2_read_blocks_begin(ci, (unsigned long long)block, nr, flags); in ocfs2_read_blocks()
213 bhs[i] = sb_getblk(sb, block++); in ocfs2_read_blocks()
366 trace_ocfs2_read_blocks_end((unsigned long long)block, nr, in ocfs2_read_blocks()
/linux-4.4.14/fs/isofs/
Disofs.h122 unsigned long block,
127 unsigned long block, in isofs_iget() argument
130 return __isofs_iget(sb, block, offset, 0); in isofs_iget()
134 unsigned long block, in isofs_iget_reloc() argument
137 return __isofs_iget(sb, block, offset, 1); in isofs_iget_reloc()
144 static inline unsigned long isofs_get_ino(unsigned long block, in isofs_get_ino() argument
148 return (block << (bufbits - 5)) | (offset >> 5); in isofs_get_ino()
184 unsigned long *block, in isofs_normalize_block_and_offset() argument
190 *block = (unsigned long)isonum_733(de->extent) in isofs_normalize_block_and_offset()
Dnamei.c41 unsigned long block, f_pos, offset, block_saved, offset_saved; in isofs_find_entry() local
50 block = 0; in isofs_find_entry()
58 bh = isofs_bread(dir, block); in isofs_find_entry()
70 block = f_pos >> bufbits; in isofs_find_entry()
85 block++; in isofs_find_entry()
89 bh = isofs_bread(dir, block); in isofs_find_entry()
102 " in block %lu of inode %lu\n", block, in isofs_find_entry()
154 unsigned long uninitialized_var(block); in isofs_lookup()
164 &block, &offset, in isofs_lookup()
169 inode = found ? isofs_iget(dir->i_sb, block, offset) : NULL; in isofs_lookup()
Ddir.c87 unsigned long block, offset, block_saved, offset_saved; in do_isofs_readdir() local
98 block = ctx->pos >> bufbits; in do_isofs_readdir()
104 bh = isofs_bread(inode, block); in do_isofs_readdir()
123 block = ctx->pos >> bufbits; in do_isofs_readdir()
128 block_saved = block; in do_isofs_readdir()
137 block++; in do_isofs_readdir()
141 bh = isofs_bread(inode, block); in do_isofs_readdir()
152 " in block %lu of inode %lu\n", block, in do_isofs_readdir()
Dinode.c544 static bool rootdir_empty(struct super_block *sb, unsigned long block) in rootdir_empty() argument
550 bh = sb_bread(sb, block); in rootdir_empty()
583 int iso_blknum, block; in isofs_fill_super() local
619 block = iso_blknum << (ISOFS_BLOCK_BITS - s->s_blocksize_bits); in isofs_fill_super()
620 if (!(bh = sb_bread(s, block))) in isofs_fill_super()
943 __func__, s->s_id, iso_blknum, block); in isofs_fill_super()
1096 static int isofs_bmap(struct inode *inode, sector_t block) in isofs_bmap() argument
1103 error = isofs_get_block(inode, block, &dummy, 0); in isofs_bmap()
1109 struct buffer_head *isofs_bread(struct inode *inode, sector_t block) in isofs_bread() argument
1111 sector_t blknr = isofs_bmap(inode, block); in isofs_bread()
[all …]
Dexport.c20 unsigned long block, in isofs_export_iget() argument
26 if (block == 0) in isofs_export_iget()
28 inode = isofs_iget(sb, block, offset); in isofs_export_iget()
153 u32 block; member
169 return isofs_export_iget(sb, ifid->block, ifid->offset, in isofs_fh_to_dentry()
/linux-4.4.14/drivers/edac/
Dedac_device_sysfs.c425 struct edac_device_block *block = to_block(kobj); in block_ue_count_show() local
427 return sprintf(data, "%u\n", block->counters.ue_count); in block_ue_count_show()
433 struct edac_device_block *block = to_block(kobj); in block_ce_count_show() local
435 return sprintf(data, "%u\n", block->counters.ce_count); in block_ce_count_show()
441 struct edac_device_block *block; in edac_device_ctrl_block_release() local
446 block = to_block(kobj); in edac_device_ctrl_block_release()
451 kobject_put(&block->instance->ctl->kobj); in edac_device_ctrl_block_release()
518 struct edac_device_block *block) in edac_device_create_block() argument
526 instance->name, instance, block->name, block); in edac_device_create_block()
528 &block->kobj, &block->kobj.parent); in edac_device_create_block()
[all …]
Dedac_device.c82 unsigned instance, block, attr; in edac_device_alloc_ctl_info() local
175 for (block = 0; block < nr_blocks; block++) { in edac_device_alloc_ctl_info()
176 blk = &blk_p[block]; in edac_device_alloc_ctl_info()
179 "%s%d", edac_block_name, block+offset_value); in edac_device_alloc_ctl_info()
182 instance, inst, block, blk, blk->name); in edac_device_alloc_ctl_info()
192 attrib_p = &dev_attrib[block*nr_instances*nr_attrib]; in edac_device_alloc_ctl_info()
213 attrib->block = blk; /* up link */ in edac_device_alloc_ctl_info()
625 struct edac_device_block *block = NULL; in edac_device_handle_ce() local
647 block = instance->blocks + block_nr; in edac_device_handle_ce()
648 block->counters.ce_count++; in edac_device_handle_ce()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
Dnv50.c82 u32 block, target; in nv50_vm_map() local
102 block = 1 << (i + 3); in nv50_vm_map()
103 if (cnt >= block && !(pte & (block - 1))) in nv50_vm_map()
108 phys += block << (vma->node->type - 3); in nv50_vm_map()
109 cnt -= block; in nv50_vm_map()
113 delta += block << (vma->node->type - 3); in nv50_vm_map()
116 while (block) { in nv50_vm_map()
120 block -= 8; in nv50_vm_map()
205 u32 block = (1 << (mmu->func->pgt_bits + 12)); in nv50_vm_create() local
206 if (block > length) in nv50_vm_create()
[all …]
/linux-4.4.14/arch/mips/alchemy/common/
Dvss.c22 static inline void __enable_block(int block) in __enable_block() argument
24 void __iomem *base = (void __iomem *)VSS_ADDR(block); in __enable_block()
53 static inline void __disable_block(int block) in __disable_block() argument
55 void __iomem *base = (void __iomem *)VSS_ADDR(block); in __disable_block()
69 void au1300_vss_block_control(int block, int enable) in au1300_vss_block_control() argument
79 __enable_block(block); in au1300_vss_block_control()
81 __disable_block(block); in au1300_vss_block_control()
Dusb.c264 static inline int au1300_usb_control(int block, int enable) in au1300_usb_control() argument
270 switch (block) { in au1300_usb_control()
359 static inline int au1200_usb_control(int block, int enable) in au1200_usb_control() argument
364 switch (block) { in au1200_usb_control()
457 static inline int au1000_usb_control(int block, int enable, unsigned long rb, in au1000_usb_control() argument
462 switch (block) { in au1000_usb_control()
477 int alchemy_usb_control(int block, int enable) in alchemy_usb_control() argument
487 ret = au1000_usb_control(block, enable, in alchemy_usb_control()
491 ret = au1000_usb_control(block, enable, in alchemy_usb_control()
495 ret = au1200_usb_control(block, enable); in alchemy_usb_control()
[all …]
/linux-4.4.14/fs/ufs/
Dutil.h470 #define ubh_isblockclear(ubh,begin,block) (!_ubh_isblockset_(uspi,ubh,begin,block)) argument
472 #define ubh_isblockset(ubh,begin,block) _ubh_isblockset_(uspi,ubh,begin,block) argument
474 struct ufs_buffer_head * ubh, unsigned begin, unsigned block) in _ubh_isblockset_() argument
478 return (*ubh_get_addr (ubh, begin + block) == 0xff); in _ubh_isblockset_()
480 return (*ubh_get_addr (ubh, begin + (block >> 1)) == (0x0f << ((block & 0x01) << 2))); in _ubh_isblockset_()
482 return (*ubh_get_addr (ubh, begin + (block >> 2)) == (0x03 << ((block & 0x03) << 1))); in _ubh_isblockset_()
484 return (*ubh_get_addr (ubh, begin + (block >> 3)) == (0x01 << (block & 0x07))); in _ubh_isblockset_()
489 #define ubh_clrblock(ubh,begin,block) _ubh_clrblock_(uspi,ubh,begin,block) argument
491 struct ufs_buffer_head * ubh, unsigned begin, unsigned block) in _ubh_clrblock_() argument
495 *ubh_get_addr (ubh, begin + block) = 0x00; in _ubh_clrblock_()
[all …]
/linux-4.4.14/fs/freevxfs/
Dvxfs_lookup.c109 u_long npages, page, nblocks, pblocks, block; in vxfs_find_entry() local
127 for (block = 0; block <= nblocks && block <= pblocks; block++) { in vxfs_find_entry()
132 baddr = kaddr + (block * bsize); in vxfs_find_entry()
236 u_long page, npages, block, pblocks, nblocks, offset; in vxfs_readdir() local
260 block = (u_long)(pos >> sbp->s_blocksize_bits) % pblocks; in vxfs_readdir()
262 for (; page < npages; page++, block = 0) { in vxfs_readdir()
271 for (; block <= nblocks && block <= pblocks; block++) { in vxfs_readdir()
276 baddr = kaddr + (block * bsize); in vxfs_readdir()
Dvxfs_subr.c102 vxfs_bread(struct inode *ip, int block) in vxfs_bread() argument
107 pblock = vxfs_bmap1(ip, block); in vxfs_bread()
180 vxfs_bmap(struct address_space *mapping, sector_t block) in vxfs_bmap() argument
182 return generic_block_bmap(mapping, block, vxfs_getblk); in vxfs_bmap()
/linux-4.4.14/drivers/mfd/
Dpm8921-core.c109 static int pm8xxx_irq_block_handler(struct pm_irq_chip *chip, int block) in pm8xxx_irq_block_handler() argument
114 ret = pm8xxx_read_block_irq(chip, block, &bits); in pm8xxx_irq_block_handler()
116 pr_err("Failed reading %d block ret=%d", block, ret); in pm8xxx_irq_block_handler()
120 pr_err("block bit set in master but no irqs: %d", block); in pm8xxx_irq_block_handler()
127 pmirq = block * 8 + i; in pm8xxx_irq_block_handler()
189 u8 block, config; in pm8xxx_irq_mask_ack() local
191 block = pmirq / 8; in pm8xxx_irq_mask_ack()
194 pm8xxx_config_irq(chip, block, config); in pm8xxx_irq_mask_ack()
201 u8 block, config; in pm8xxx_irq_unmask() local
203 block = pmirq / 8; in pm8xxx_irq_unmask()
[all …]
Dstmpe.c245 int stmpe_set_altfunc(struct stmpe *stmpe, u32 pins, enum stmpe_block block) in stmpe_set_altfunc() argument
269 af = variant->get_altfunc(stmpe, block); in stmpe_set_altfunc()
355 .block = STMPE_BLOCK_GPIO,
362 .block = STMPE_BLOCK_GPIO,
445 .block = STMPE_BLOCK_GPIO,
450 .block = STMPE_BLOCK_TOUCHSCREEN,
472 static int stmpe811_get_altfunc(struct stmpe *stmpe, enum stmpe_block block) in stmpe811_get_altfunc() argument
475 return block != STMPE_BLOCK_TOUCHSCREEN; in stmpe811_get_altfunc()
533 .block = STMPE_BLOCK_GPIO,
538 .block = STMPE_BLOCK_KEYPAD,
[all …]
/linux-4.4.14/Documentation/block/
Dnull_blk.txt1 Null block device driver
6 The null block device (/dev/nullb*) is used for benchmarking the various
7 block-layer implementations. It emulates a block device of X gigabytes in size.
10 Single-queue block-layer
14 Multi-queue block-layer
17 No block-layer (Known as bio-based)
26 Selects which block-layer the module should instantiate with.
39 The block size reported to the system.
42 Number of block devices instantiated. They are instantiated as /dev/nullb0,
46 The completion mode used for completing IOs to the block-layer.
[all …]
Dcmdline-partition.txt4 Support for reading the block device partition table from the command line.
5 It is typically used for fixed block (eMMC) embedded devices.
7 by absolute address of data on the block device.
17 block device disk name, embedded device used fixed block device,
28 a link to block device partition with the name "PARTNAME".
Dswitching-sched.txt9 /sys/block/<device>/queue/iosched
17 IO scheduler for a given block device on the fly (thus making it possible,
24 echo SCHEDNAME > /sys/block/DEV/queue/scheduler
30 a "cat /sys/block/DEV/queue/scheduler" - the list of valid names
33 # cat /sys/block/hda/queue/scheduler
35 # echo deadline > /sys/block/hda/queue/scheduler
36 # cat /sys/block/hda/queue/scheduler
Dqueue-sysfs.txt5 for each block device. Note that stacked devices typically do not export
7 These files are the ones found in the /sys/block/xxx/queue/ directory.
42 When read, this file will show if the discarded block are zeroed by the
56 This is the logcal block size of the device, in bytes.
65 set by block layer which a hardware controller can handle.
69 This is the maximum number of kilobytes that the block layer will allow
88 merging requests in the block layer. By default (0) all merges are
95 This controls how many requests may be allocated in the block layer for
103 per-block-cgroup request pool. IOW, if there are N block cgroups,
113 This is the physical block size of device, in bytes.
[all …]
D00-INDEX6 - Generic Block Device Capability (/sys/block/<device>/capability)
10 - how to specify block device partitions on kernel command line
18 - Null block for block-layer benchmarking.
24 - Block layer statistics in /sys/block/<device>/stat
Dwriteback_cache_control.txt15 The Linux block layer provides two simple mechanisms that let filesystems
50 Implementation details for make_request_fn based block drivers
61 flags themselves without any help from the block layer.
64 Implementation details for request_fn based block drivers
68 support required, the block layer completes empty REQ_FLUSH requests before
71 driver needs to tell the block layer that it supports flushing caches by
78 of an empty REQ_FLUSH request followed by the actual write by the block
79 layer. For devices that also support the FUA bit the block layer needs
85 in prep_fn/request_fn. If the FUA bit is not natively supported the block
Dstat.txt1 Block layer statistics in /sys/block/<dev>/stat
4 This file documents the contents of the /sys/block/<dev>/stat file.
6 The stat file provides several statistics about the state of block
32 io_ticks milliseconds total time this block device has been active
50 block device. The "sectors" in question are the standard UNIX 512-byte
51 sectors, not any device- or filesystem-specific block size. The
58 waited on this block device. If there are multiple I/O requests waiting,
80 on this block device. If there are multiple I/O requests waiting, this
/linux-4.4.14/lib/xz/
Dxz_dec_stream.c94 } block; member
232 s->block.compressed += b->in_pos - s->in_start; in dec_block()
233 s->block.uncompressed += b->out_pos - s->out_start; in dec_block()
239 if (s->block.compressed > s->block_header.compressed in dec_block()
240 || s->block.uncompressed in dec_block()
251 != s->block.compressed) in dec_block()
256 != s->block.uncompressed) in dec_block()
259 s->block.hash.unpadded += s->block_header.size in dec_block()
260 + s->block.compressed; in dec_block()
263 s->block.hash.unpadded += check_sizes[s->check_type]; in dec_block()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/powerpc/fsl/
Dmpic-msgr.txt10 block. The type shall be <string-list> and the value shall be of the form
15 message register block's addressable register space. The type shall be
25 - mpic-msgr-receive-mask: Specifies what registers in the containing block
29 be <u32>. If not present, then all of the message registers in the block
34 An alias should be created for every message register block. They are not
37 'mpic-msgr-block<n>', where <n> is an integer specifying the block's number.
47 mpic_msgr_block0: mpic-msgr-block@41400 {
50 // Message registers 0 and 2 in this block can receive interrupts on
56 mpic_msgr_block1: mpic-msgr-block@42400 {
59 // Message registers 0 and 2 in this block can receive interrupts on
/linux-4.4.14/fs/squashfs/
Dinode.c116 u64 block = SQUASHFS_INODE_BLK(ino) + msblk->inode_table; in squashfs_read_inode() local
127 err = squashfs_read_metadata(sb, sqshb_ino, &block, in squashfs_read_inode()
136 block = SQUASHFS_INODE_BLK(ino) + msblk->inode_table; in squashfs_read_inode()
147 err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset, in squashfs_read_inode()
175 squashfs_i(inode)->block_list_start = block; in squashfs_read_inode()
181 offset, squashfs_i(inode)->start, block, offset); in squashfs_read_inode()
190 err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset, in squashfs_read_inode()
222 squashfs_i(inode)->block_list_start = block; in squashfs_read_inode()
228 offset, squashfs_i(inode)->start, block, offset); in squashfs_read_inode()
234 err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset, in squashfs_read_inode()
[all …]
Dcache.c66 struct squashfs_cache *cache, u64 block, int length) in squashfs_cache_get() argument
75 if (cache->entry[i].block == block) { in squashfs_cache_get()
116 entry->block = block; in squashfs_cache_get()
123 entry->length = squashfs_read_data(sb, block, length, in squashfs_cache_get()
174 cache->name, i, entry->block, entry->refcount, entry->error); in squashfs_cache_get()
178 block); in squashfs_cache_get()
270 entry->block = SQUASHFS_INVALID_BLK; in squashfs_cache_init()
345 u64 *block, int *offset, int length) in squashfs_read_metadata() argument
351 TRACE("Entered squashfs_read_metadata [%llx:%x]\n", *block, *offset); in squashfs_read_metadata()
354 entry = squashfs_cache_get(sb, msblk->block_cache, *block, 0); in squashfs_read_metadata()
[all …]
Ddir.c114 u64 block = squashfs_i(inode)->start + msblk->directory_table; in squashfs_readdir() local
120 TRACE("Entered squashfs_readdir [%llx:%x]\n", block, offset); in squashfs_readdir()
157 length = get_dir_index_using_offset(inode->i_sb, &block, &offset, in squashfs_readdir()
167 err = squashfs_read_metadata(inode->i_sb, &dirh, &block, in squashfs_readdir()
183 err = squashfs_read_metadata(inode->i_sb, dire, &block, in squashfs_readdir()
195 &block, &offset, size); in squashfs_readdir()
226 ERROR("Unable to read directory block [%llx:%x]\n", block, offset); in squashfs_readdir()
Dsymlink.c52 u64 block = squashfs_i(inode)->start; in squashfs_symlink_readpage() local
60 "%llx, offset %x\n", page->index, block, offset); in squashfs_symlink_readpage()
66 bytes = squashfs_read_metadata(sb, NULL, &block, &offset, in squashfs_symlink_readpage()
84 entry = squashfs_cache_get(sb, msblk->block_cache, block, 0); in squashfs_symlink_readpage()
99 block = entry->next_index; in squashfs_symlink_readpage()
Dfile_direct.c23 static int squashfs_read_cache(struct page *target_page, u64 block, int bsize,
27 int squashfs_readpage_block(struct page *target_page, u64 block, int bsize) in squashfs_readpage_block() argument
85 res = squashfs_read_cache(target_page, block, bsize, pages, in squashfs_readpage_block()
94 res = squashfs_read_data(inode->i_sb, block, bsize, NULL, actor); in squashfs_readpage_block()
140 static int squashfs_read_cache(struct page *target_page, u64 block, int bsize, in squashfs_read_cache() argument
145 block, bsize); in squashfs_read_cache()
150 ERROR("Unable to read page, block %llx, size %x\n", block, in squashfs_read_cache()
Dfile_cache.c23 int squashfs_readpage_block(struct page *page, u64 block, int bsize) in squashfs_readpage_block() argument
27 block, bsize); in squashfs_readpage_block()
31 ERROR("Unable to read page, block %llx, size %x\n", block, in squashfs_readpage_block()
Dnamei.c148 u64 block = squashfs_i(dir)->start + msblk->directory_table; in squashfs_lookup() local
153 TRACE("Entered squashfs_lookup [%llx:%x]\n", block, offset); in squashfs_lookup()
166 length = get_dir_index_using_name(dir->i_sb, &block, &offset, in squashfs_lookup()
175 err = squashfs_read_metadata(dir->i_sb, &dirh, &block, in squashfs_lookup()
191 err = squashfs_read_metadata(dir->i_sb, dire, &block, in squashfs_lookup()
203 &block, &offset, size); in squashfs_lookup()
Dfile.c177 long long block = 0; in read_indexes() local
198 block += SQUASHFS_COMPRESSED_SIZE_BLOCK(size); in read_indexes()
204 return block; in read_indexes()
335 static int read_blocklist(struct inode *inode, int index, u64 *block) in read_blocklist() argument
341 int res = fill_meta_index(inode, index, &start, &offset, block); in read_blocklist()
345 *block); in read_blocklist()
360 *block += blks; in read_blocklist()
471 u64 block = 0; in squashfs_readpage() local
472 int bsize = read_blocklist(inode, index, &block); in squashfs_readpage()
479 res = squashfs_readpage_block(page, block, bsize); in squashfs_readpage()
/linux-4.4.14/fs/bfs/
Dfile.c63 static int bfs_get_block(struct inode *inode, sector_t block, in bfs_get_block() argument
72 phys = bi->i_sblock + block; in bfs_get_block()
76 create, (unsigned long)block, phys); in bfs_get_block()
88 create, (unsigned long)block, phys); in bfs_get_block()
107 create, (unsigned long)block, phys); in bfs_get_block()
118 if (phys + block >= info->si_blocks) { in bfs_get_block()
135 create, (unsigned long)block, phys); in bfs_get_block()
137 phys += block; in bfs_get_block()
184 static sector_t bfs_bmap(struct address_space *mapping, sector_t block) in bfs_bmap() argument
186 return generic_block_bmap(mapping, block, bfs_get_block); in bfs_bmap()
Ddir.c35 int block; in bfs_readdir() local
46 block = BFS_I(dir)->i_sblock + (ctx->pos >> BFS_BSIZE_BITS); in bfs_readdir()
47 bh = sb_bread(dir->i_sb, block); in bfs_readdir()
281 int block, sblock, eblock, off, pos; in bfs_add_entry() local
293 for (block = sblock; block <= eblock; block++) { in bfs_add_entry()
294 bh = sb_bread(dir->i_sb, block); in bfs_add_entry()
300 pos = (block - sblock) * BFS_BSIZE + off; in bfs_add_entry()
333 unsigned long block = 0, offset = 0; in bfs_find_entry() local
341 while (block * BFS_BSIZE + offset < dir->i_size) { in bfs_find_entry()
343 bh = sb_bread(dir->i_sb, BFS_I(dir)->i_sblock + block); in bfs_find_entry()
[all …]
/linux-4.4.14/block/
DKconfig5 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.
27 bool "Support for large (2TB+) block devices and files"
31 Enable block devices or files of size 2TB and larger.
34 (2TB+) block devices, including RAID, disk, Network Block Device,
55 for any block device.
57 Unlike SG v3 (aka block/scsi_ioctl.c drivers/scsi/sg.c), SG v4
[all …]
/linux-4.4.14/sound/soc/intel/baytrail/
Dsst-baytrail-dsp.c68 struct dma_block_info *block; in sst_byt_parse_module() local
81 block = (void *)module + sizeof(*module); in sst_byt_parse_module()
85 if (block->size <= 0) { in sst_byt_parse_module()
90 switch (block->type) { in sst_byt_parse_module()
92 mod->offset = block->ram_offset + in sst_byt_parse_module()
97 mod->offset = block->ram_offset + in sst_byt_parse_module()
102 mod->offset = block->ram_offset + in sst_byt_parse_module()
108 block->type, count); in sst_byt_parse_module()
112 mod->size = block->size; in sst_byt_parse_module()
113 mod->data = (void *)block + sizeof(*block); in sst_byt_parse_module()
[all …]
/linux-4.4.14/Documentation/blockdev/
Dzram.txt1 zram: Compressed RAM based block devices
6 The zram module creates RAM based block devices named /dev/zram<id>
13 /sys/block/zram<id>/
47 echo 3 > /sys/block/zram0/max_comp_streams
68 cat /sys/block/zram0/max_comp_streams
71 echo 3 > /sys/block/zram0/max_comp_streams
91 cat /sys/block/zram0/comp_algorithm
95 echo lzo > /sys/block/zram0/comp_algorithm
102 echo $((50*1024*1024)) > /sys/block/zram0/disksize
105 echo 256K > /sys/block/zram0/disksize
[all …]
/linux-4.4.14/fs/hfs/
Dextent.c21 static void hfs_ext_build_key(hfs_btree_key *key, u32 cnid, u16 block, u8 type) in hfs_ext_build_key() argument
26 key->ext.FABN = cpu_to_be16(block); in hfs_ext_build_key()
82 return be16_to_cpu(ext->block) + off; in hfs_ext_find_block()
107 return be16_to_cpu(ext->block) + be16_to_cpu(ext->count); in hfs_ext_lastblock()
147 u32 cnid, u32 block, u8 type) in __hfs_ext_read_extent() argument
151 hfs_ext_build_key(fd->search_key, cnid, block, type); in __hfs_ext_read_extent()
165 static inline int __hfs_ext_cache_extent(struct hfs_find_data *fd, struct inode *inode, u32 block) in __hfs_ext_cache_extent() argument
176 block, HFS_IS_RSRC(inode) ? HFS_FK_RSRC : HFS_FK_DATA); in __hfs_ext_cache_extent()
187 static int hfs_ext_read_extent(struct inode *inode, u16 block) in hfs_ext_read_extent() argument
192 if (block >= HFS_I(inode)->cached_start && in hfs_ext_read_extent()
[all …]
/linux-4.4.14/Documentation/video4linux/cx2341x/
DREADME.hm1213 and from top to bottom. Each block is transmitted in turn, line-by-line.
15 So the first 16 bytes are the first line of the top-left block, the
16 second 16 bytes are the second line of the top-left block, etc. After
17 transmitting this block the first line of the block on the right to the
18 first block is transmitted, etc.
21 to right, top to bottom. Each block is transmitted in turn, line-by-line.
23 So the first 16 bytes are the first line of the top-left block and
25 second line of 8 UV pairs of the top-left block, etc. After transmitting
26 this block the first line of the block on the right to the first block is
57 // Each block in transmitted in turn, line-by-line.
[all …]
/linux-4.4.14/fs/omfs/
Domfs.h29 static inline sector_t clus_to_blk(struct omfs_sb_info *sbi, sector_t block) in clus_to_blk() argument
31 return block << sbi->s_block_shift; in clus_to_blk()
41 extern int omfs_allocate_block(struct super_block *sb, u64 block);
44 extern int omfs_clear_range(struct super_block *sb, u64 block, int count);
61 extern struct buffer_head *omfs_bread(struct super_block *sb, sector_t block);
64 extern int omfs_reserve_block(struct super_block *sb, sector_t block);
Ddir.c34 static struct buffer_head *omfs_scan_list(struct inode *dir, u64 block, in omfs_scan_list() argument
43 while (block != ~0) { in omfs_scan_list()
44 bh = omfs_bread(dir->i_sb, block); in omfs_scan_list()
51 if (omfs_is_bad(OMFS_SB(dir->i_sb), &oi->i_head, block)) { in omfs_scan_list()
59 *prev_block = block; in omfs_scan_list()
60 block = be64_to_cpu(oi->i_sibling); in omfs_scan_list()
72 u64 block, dummy; in omfs_find_entry() local
78 block = be64_to_cpu(*((__be64 *) &bh->b_data[ofs])); in omfs_find_entry()
81 return omfs_scan_list(dir, block, name, namelen, &dummy); in omfs_find_entry()
118 u64 block; in omfs_add_link() local
[all …]
Dfile.c192 sector_t block, int count, int *left) in find_block() argument
200 if (block >= searched && in find_block()
201 block < searched + numblocks) { in find_block()
206 *left = numblocks - (block - searched); in find_block()
209 block - searched; in find_block()
217 static int omfs_get_block(struct inode *inode, sector_t block, in omfs_get_block() argument
253 offset = find_block(inode, entry, block, extent_count, &remain); in omfs_get_block()
333 static sector_t omfs_bmap(struct address_space *mapping, sector_t block) in omfs_bmap() argument
335 return generic_block_bmap(mapping, block, omfs_get_block); in omfs_bmap()
/linux-4.4.14/scripts/mod/
Dsumversion.c42 uint32_t block[MD4_BLOCK_WORDS]; member
156 le32_to_cpu_array(ctx->block, sizeof(ctx->block) / sizeof(uint32_t)); in md4_transform_helper()
157 md4_transform(ctx->hash, ctx->block); in md4_transform_helper()
172 const uint32_t avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in md4_update()
177 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in md4_update()
182 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in md4_update()
189 while (len >= sizeof(mctx->block)) { in md4_update()
190 memcpy(mctx->block, data, sizeof(mctx->block)); in md4_update()
192 data += sizeof(mctx->block); in md4_update()
193 len -= sizeof(mctx->block); in md4_update()
[all …]
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_init.h43 #define BLOCK_OPS_IDX(block, stage, end) \ argument
44 (2*(((block)*NUM_OF_INIT_PHASES) + (stage)) + (end))
492 #define BLOCK_OPS_IDX(block, stage, end) \ argument
493 (2*(((block)*NUM_OF_INIT_PHASES) + (stage)) + (end))
540 #define BLOCK_PRTY_INFO(block, en_mask, m1, m1h, m2, m3) \ argument
542 block##_REG_##block##_PRTY_MASK, \
543 block##_REG_##block##_PRTY_STS_CLR, \
544 en_mask, {m1, m1h, m2, m3}, #block \
547 #define BLOCK_PRTY_INFO_0(block, en_mask, m1, m1h, m2, m3) \ argument
549 block##_REG_##block##_PRTY_MASK_0, \
[all …]
/linux-4.4.14/arch/x86/kernel/cpu/mcheck/
Dmce_amd.c133 b->bank, b->block, b->address, hi, lo); in lvt_off_valid()
140 b->cpu, apic, b->bank, b->block, b->address, hi, lo); in lvt_off_valid()
256 unsigned int bank, block; in mce_amd_feature_init() local
260 for (block = 0; block < NR_BLOCKS; ++block) { in mce_amd_feature_init()
261 if (block == 0) in mce_amd_feature_init()
263 else if (block == 1) { in mce_amd_feature_init()
282 if (!block) in mce_amd_feature_init()
288 b.block = block; in mce_amd_feature_init()
390 unsigned int bank, block; in amd_threshold_interrupt() local
396 for (block = 0; block < NR_BLOCKS; ++block) { in amd_threshold_interrupt()
[all …]
/linux-4.4.14/fs/ext4/
Dext4_extents.h222 ext4_fsblk_t block; in ext4_ext_pblock() local
224 block = le32_to_cpu(ex->ee_start_lo); in ext4_ext_pblock()
225 block |= ((ext4_fsblk_t) le16_to_cpu(ex->ee_start_hi) << 31) << 1; in ext4_ext_pblock()
226 return block; in ext4_ext_pblock()
235 ext4_fsblk_t block; in ext4_idx_pblock() local
237 block = le32_to_cpu(ix->ei_leaf_lo); in ext4_idx_pblock()
238 block |= ((ext4_fsblk_t) le16_to_cpu(ix->ei_leaf_hi) << 31) << 1; in ext4_idx_pblock()
239 return block; in ext4_idx_pblock()
/linux-4.4.14/Documentation/
Dmemory-hotplug.txt97 size of a memory block is architecture dependent and represents the logical
99 default size of a memory block is the same as memory section size unless an
102 To determine the size (in bytes) of a memory block please read this file:
135 All memory blocks have their device information in sysfs. Each memory block
139 (XXX is the memory block id.)
141 For the memory block covered by the sysfs directory. It is expected that all
145 block.
147 For example, assume 1GiB memory block size. A device for a memory starting at
152 Under each memory block, you can see 5 files:
160 'phys_index' : read-only and contains memory block id, same as XXX.
[all …]
Dlzo.txt33 The first byte of the block follows a different encoding from other bytes, it
66 End of stream is declared when a block copy of distance 0 is seen. Only one
81 noting that codes 16 and 17 will represent a block copy from
108 2-byte block from the dictionary within a 1kB distance. It is worth
115 state = S (copy S literals after this block)
120 state == 4), the instruction becomes a copy of a 3-byte block from the
125 state = S (copy S literals after this block)
130 Copy of a block within 16..48kB distance (preferably less than 10B)
134 state = S (copy S literals after this block)
138 Copy of small block within 16kB distance (preferably less than 34B)
[all …]
Ddevices.txt88 See block major 144, 145, 146 for expansion areas.
105 1 block RAM disk
134 2 block Floppy disks
200 3 block First MFM, RLL and IDE hard disk/CD-ROM interface
232 4 block Aliases for dynamically allocated major devices to be used
272 7 block Loopback devices
278 associated with block devices. The binding to the
281 8 block SCSI disk devices (0-15)
323 9 block Metadisk (RAID) devices
427 210 = /dev/impi/bt IMPI coprocessor block transfer
[all …]
/linux-4.4.14/Documentation/device-mapper/
Dcache.txt7 It aims to improve performance of a block device (eg, a spindle) by
27 Migration - Movement of the primary copy of a logical block from one
32 The origin device always contains a copy of the logical block, which
56 Fixed block size
59 The origin is divided up into blocks of a fixed size. This block size
61 using block sizes of 256KB - 1024KB. The block size must be between 64
64 Having a fixed block size simplifies the target a lot. But it is
65 something of a compromise. For instance, a small part of a block may be
66 getting hit a lot, yet the whole block will be promoted to the cache.
67 So large block sizes are bad because they waste cache space. And small
[all …]
Dera.txt17 era <metadata dev> <origin dev> <block size>
21 block size : block size of origin data device, granularity that is
49 <metadata block size> <#used metadata blocks>/<#total metadata blocks>
52 metadata block size : Fixed block size for each metadata block in
82 by checking each block's era
99 block is performed. As such dm-era should not be effected by a hard
Dverity.txt5 block devices using a cryptographic digest provided by the kernel crypto API.
21 the rest of the block is padded with zeros.
39 The block size on a data device in bytes.
40 Each block corresponds to one digest on the hash device.
43 The size of a hash block in bytes.
52 to the root block of the hash tree.
59 The hexadecimal encoding of the cryptographic hash of the root hash block
78 Restart the system when a corrupted block is discovered. This option is
97 per-block basis. This allows for a lightweight hash computation on first read
99 block size.
[all …]
Ddm-uevent.txt68 UEVENT[1192521009.711215] change@/block/dm-3
70 DEVPATH=/block/dm-3
71 SUBSYSTEM=block
84 UEVENT[1192521132.989927] change@/block/dm-3
86 DEVPATH=/block/dm-3
87 SUBSYSTEM=block
/linux-4.4.14/Documentation/nvdimm/
Dbtt.txt10 storage as traditional block devices. The block drivers for persistent memory
13 using stored energy in capacitors to complete in-flight block writes, or perhaps
15 progress, and we experience a power failure, the block will contain a mix of old
20 being torn can continue to do so. The BTT manifests itself as a stacked block
41 | | | | Arena info block |
66 | Info block copy |
79 block. Each map entry is 32 bits. The two most significant bits are special
80 flags, and the remaining form the internal block number.
100 Premap ABA : The block offset into an arena, which was decided upon by range
102 Postmap ABA : The block number in the "Data Blocks" area obtained after
[all …]
/linux-4.4.14/fs/qnx4/
Dnamei.c59 unsigned long block, offset, blkofs; in qnx4_find_entry() local
64 block = offset = blkofs = 0; in qnx4_find_entry()
67 block = qnx4_block_map(dir, blkofs); in qnx4_find_entry()
68 if (block) in qnx4_find_entry()
69 bh = sb_bread(dir->i_sb, block); in qnx4_find_entry()
77 *ino = block * QNX4_INODES_PER_BLOCK + in qnx4_find_entry()
Dinode.c86 u32 block = try_extent(&qnx4_inode->di_first_xtnt, &offset); in qnx4_block_map() local
88 if (block) { in qnx4_block_map()
108 block = try_extent(&xblk->xblk_xtnts[ix], &offset); in qnx4_block_map()
109 if (block) { in qnx4_block_map()
124 QNX4DEBUG((KERN_INFO "qnx4: mapping block %ld of inode %ld = %ld\n",iblock,inode->i_ino,block)); in qnx4_block_map()
125 return block; in qnx4_block_map()
251 static sector_t qnx4_bmap(struct address_space *mapping, sector_t block) in qnx4_bmap() argument
253 return generic_block_bmap(mapping,block,qnx4_get_block); in qnx4_bmap()
264 int block; in qnx4_iget() local
285 block = ino / QNX4_INODES_PER_BLOCK; in qnx4_iget()
[all …]
/linux-4.4.14/drivers/mtd/nand/
Dnand_bbt.c81 static inline uint8_t bbt_get_entry(struct nand_chip *chip, int block) in bbt_get_entry() argument
83 uint8_t entry = chip->bbt[block >> BBT_ENTRY_SHIFT]; in bbt_get_entry()
84 entry >>= (block & BBT_ENTRY_MASK) * 2; in bbt_get_entry()
88 static inline void bbt_mark_entry(struct nand_chip *chip, int block, in bbt_mark_entry() argument
91 uint8_t msk = (mark & BBT_ENTRY_MASK) << ((block & BBT_ENTRY_MASK) * 2); in bbt_mark_entry()
92 chip->bbt[block >> BBT_ENTRY_SHIFT] |= msk; in bbt_mark_entry()
528 int startblock, block, dir; in search_bbt() local
557 for (block = 0; block < td->maxblocks; block++) { in search_bbt()
559 int actblock = startblock + dir * block; in search_bbt()
679 int block = startblock + dir * i; in write_bbt() local
[all …]
/linux-4.4.14/drivers/hwtracing/intel_th/
Dmsu.c59 struct msc_block block[0]; member
82 int block; member
174 if (win->block[0].addr == win_addr) in msc_oldest_window()
178 if (msc_block_is_empty(win->block[0].bdesc)) in msc_oldest_window()
197 struct msc_block_desc *bdesc = win->block[0].bdesc; in msc_win_oldest_block()
208 bdesc = win->block[blk].bdesc; in msc_win_oldest_block()
244 return iter->win->block[iter->block].bdesc; in msc_iter_bdesc()
251 iter->block = -1; in msc_iter_init()
287 iter->block = iter->start_block; in msc_iter_block_start()
337 if (iter->wrap_count && iter->block == iter->start_block) { in msc_iter_block_advance()
[all …]
/linux-4.4.14/drivers/i2c/
Di2c-stub.c74 u8 block[I2C_SMBUS_BLOCK_MAX]; member
225 if (data->block[0] > 256 - command) /* Avoid overrun */ in stub_xfer()
226 data->block[0] = 256 - command; in stub_xfer()
227 len = data->block[0]; in stub_xfer()
231 chip->words[command + i] |= data->block[1 + i]; in stub_xfer()
238 data->block[1 + i] = in stub_xfer()
256 len = data->block[0]; in stub_xfer()
273 b->block[i] = data->block[i + 1]; in stub_xfer()
275 chip->words[command] = (b->block[0] << 8) | b->len; in stub_xfer()
287 data->block[0] = len; in stub_xfer()
[all …]
/linux-4.4.14/arch/powerpc/crypto/
Dmd5-glue.c60 memcpy((char *)sctx->block + offset, src, len); in ppc_md5_update()
65 memcpy((char *)sctx->block + offset, src, avail); in ppc_md5_update()
66 ppc_md5_transform(sctx->hash, (const u8 *)sctx->block, 1); in ppc_md5_update()
77 memcpy((char *)sctx->block, src, len); in ppc_md5_update()
85 const u8 *src = (const u8 *)sctx->block; in ppc_md5_final()
88 __le64 *pbits = (__le64 *)((char *)sctx->block + 56); in ppc_md5_final()
96 p = (char *)sctx->block; in ppc_md5_final()
/linux-4.4.14/drivers/block/
DKconfig10 Say Y here to get to see options for various different block device
19 tristate "Null test block driver"
107 source "drivers/block/paride/Kconfig"
109 source "drivers/block/mtip32xx/Kconfig"
111 source "drivers/block/zram/Kconfig"
169 The cards appear as block devices that can be partitioned into
179 bool "Virtual block device"
183 you access arbitrary files on the host computer as block devices.
184 Unless you know that you do not need such virtual block devices say
191 Writes to the virtual block device are not immediately written to the
[all …]
/linux-4.4.14/fs/nilfs2/
Dmdt.c42 nilfs_mdt_insert_new_block(struct inode *inode, unsigned long block, in nilfs_mdt_insert_new_block() argument
56 ret = nilfs_bmap_insert(ii->i_bmap, block, (unsigned long)bh); in nilfs_mdt_insert_new_block()
73 trace_nilfs2_mdt_insert_new_block(inode, inode->i_ino, block); in nilfs_mdt_insert_new_block()
78 static int nilfs_mdt_create_block(struct inode *inode, unsigned long block, in nilfs_mdt_create_block() argument
92 bh = nilfs_grab_buffer(inode, inode->i_mapping, block, 0); in nilfs_mdt_create_block()
105 err = nilfs_mdt_insert_new_block(inode, block, bh, init_block); in nilfs_mdt_create_block()
179 static int nilfs_mdt_read_block(struct inode *inode, unsigned long block, in nilfs_mdt_read_block() argument
187 err = nilfs_mdt_submit_block(inode, block, READ, &first_bh); in nilfs_mdt_read_block()
195 blkoff = block + 1; in nilfs_mdt_read_block()
335 int nilfs_mdt_delete_block(struct inode *inode, unsigned long block) in nilfs_mdt_delete_block() argument
[all …]
/linux-4.4.14/arch/powerpc/lib/
Drheap.c47 rh_block_t *block, *blk; in grow() local
57 block = kmalloc(sizeof(rh_block_t) * max_blocks, GFP_ATOMIC); in grow()
58 if (block == NULL) in grow()
64 memcpy(block, info->block, in grow()
67 delta = (char *)block - (char *)info->block; in grow()
70 blks = (unsigned long)info->block; in grow()
71 blke = (unsigned long)(info->block + info->max_blocks); in grow()
73 for (i = 0, blk = block; i < info->max_blocks; i++, blk++) in grow()
82 kfree(info->block); in grow()
85 info->block = block; in grow()
[all …]
/linux-4.4.14/drivers/gpu/drm/udl/
Dudl_connector.c24 u8 *block; in udl_get_edid() local
28 block = kmalloc(EDID_LENGTH, GFP_KERNEL); in udl_get_edid()
29 if (block == NULL) in udl_get_edid()
45 block[i] = rbuf[1]; in udl_get_edid()
49 return block; in udl_get_edid()
52 kfree(block); in udl_get_edid()
/linux-4.4.14/arch/x86/platform/intel-mid/device_libs/
Dplatform_msic.c79 void *msic_generic_platform_data(void *info, enum intel_msic_block block) in msic_generic_platform_data() argument
83 BUG_ON(block < 0 || block >= INTEL_MSIC_BLOCK_LAST); in msic_generic_platform_data()
84 msic_pdata.irq[block] = entry->irq; in msic_generic_platform_data()
/linux-4.4.14/drivers/media/platform/vivid/
Dvivid-rds-gen.c66 data[0].block = V4L2_RDS_BLOCK_A | (V4L2_RDS_BLOCK_A << 3); in vivid_rds_generate()
69 data[1].block = V4L2_RDS_BLOCK_B | (V4L2_RDS_BLOCK_B << 3); in vivid_rds_generate()
70 data[3].block = V4L2_RDS_BLOCK_D | (V4L2_RDS_BLOCK_D << 3); in vivid_rds_generate()
81 data[2].block = V4L2_RDS_BLOCK_C_ALT | (V4L2_RDS_BLOCK_C_ALT << 3); in vivid_rds_generate()
91 data[2].block = V4L2_RDS_BLOCK_C | (V4L2_RDS_BLOCK_C << 3); in vivid_rds_generate()
117 data[2].block = V4L2_RDS_BLOCK_C | (V4L2_RDS_BLOCK_C << 3); in vivid_rds_generate()
127 data[2].block = V4L2_RDS_BLOCK_C_ALT | (V4L2_RDS_BLOCK_C_ALT << 3); in vivid_rds_generate()
/linux-4.4.14/Documentation/ABI/obsolete/
Dsysfs-block-zram1 What: /sys/block/zram<id>/num_reads
9 What: /sys/block/zram<id>/num_writes
17 What: /sys/block/zram<id>/invalid_io
25 What: /sys/block/zram<id>/failed_reads
33 What: /sys/block/zram<id>/failed_writes
41 What: /sys/block/zram<id>/notify_free
49 are sent to a swap block device when a swap slot is freed, which
55 What: /sys/block/zram<id>/zero_pages
64 What: /sys/block/zram<id>/orig_data_size
74 What: /sys/block/zram<id>/compr_data_size
[all …]
/linux-4.4.14/fs/reiserfs/
Dbitmap.c49 b_blocknr_t block, in get_bit_address() argument
57 *bmap_nr = block >> (s->s_blocksize_bits + 3); in get_bit_address()
59 *offset = block & ((s->s_blocksize << 3) - 1); in get_bit_address()
62 int is_reusable(struct super_block *s, b_blocknr_t block, int bit_value) in is_reusable() argument
67 if (block == 0 || block >= SB_BLOCK_COUNT(s)) { in is_reusable()
70 block, SB_BLOCK_COUNT(s)); in is_reusable()
74 get_bit_address(s, block, &bmap, &offset); in is_reusable()
83 if (block >= bmap1 && in is_reusable()
84 block <= bmap1 + bmap_count) { in is_reusable()
87 block, bmap_count); in is_reusable()
[all …]
/linux-4.4.14/fs/pstore/
Dram_core.c160 uint8_t *block; in persistent_ram_update_ecc() local
169 block = buffer->data + (start & ~(ecc_block_size - 1)); in persistent_ram_update_ecc()
173 if (block + ecc_block_size > buffer_end) in persistent_ram_update_ecc()
174 size = buffer_end - block; in persistent_ram_update_ecc()
175 persistent_ram_encode_rs8(prz, block, size, par); in persistent_ram_update_ecc()
176 block += ecc_block_size; in persistent_ram_update_ecc()
178 } while (block < buffer->data + start + count); in persistent_ram_update_ecc()
195 uint8_t *block; in persistent_ram_ecc_old() local
201 block = buffer->data; in persistent_ram_ecc_old()
203 while (block < buffer->data + buffer_size(prz)) { in persistent_ram_ecc_old()
[all …]
/linux-4.4.14/net/mac80211/
Dmichael.c60 size_t block, blocks, left; in michael_mic() local
69 for (block = 0; block < blocks; block++) in michael_mic()
70 michael_block(&mctx, get_unaligned_le32(&data[block * 4])); in michael_mic()
/linux-4.4.14/drivers/gpu/drm/radeon/
Dradeon_mem.c224 struct mem_block *block, **heap; in radeon_mem_alloc() local
241 block = alloc_block(*heap, alloc->size, alloc->alignment, file_priv); in radeon_mem_alloc()
243 if (!block) in radeon_mem_alloc()
246 if (copy_to_user(alloc->region_offset, &block->start, in radeon_mem_alloc()
259 struct mem_block *block, **heap; in radeon_mem_free() local
270 block = find_block(*heap, memfree->region_offset); in radeon_mem_free()
271 if (!block) in radeon_mem_free()
274 if (block->file_priv != file_priv) in radeon_mem_free()
277 free_block(block); in radeon_mem_free()
Dradeon_audio.h30 #define RREG32_ENDPOINT(block, reg) \ argument
31 radeon_audio_endpoint_rreg(rdev, (block), (reg))
32 #define WREG32_ENDPOINT(block, reg, v) \ argument
33 radeon_audio_endpoint_wreg(rdev, (block), (reg), (v))
/linux-4.4.14/drivers/pinctrl/qcom/
DKconfig16 Qualcomm TLMM block found in the Qualcomm APQ8064 platform.
24 Qualcomm TLMM block found in the Qualcomm APQ8084 platform.
32 Qualcomm TLMM block found in the Qualcomm IPQ8064 platform.
40 Qualcomm TLMM block found in the Qualcomm 8660 platform.
48 Qualcomm TLMM block found in the Qualcomm 8960 platform.
56 Qualcomm TLMM block found in the Qualcomm 8974 platform.
64 Qualcomm TLMM block found on the Qualcomm 8916 platform.
71 This is the GPIO driver for the TLMM block found on the
/linux-4.4.14/drivers/ide/
Dide-disk.c82 sector_t block) in __ide_do_rw_disk() argument
93 if (block + blk_rq_sectors(rq) > 1ULL << 28) in __ide_do_rw_disk()
106 (unsigned long long)block); in __ide_do_rw_disk()
109 tf->lbal = (u8) block; in __ide_do_rw_disk()
110 tf->lbam = (u8)(block >> 8); in __ide_do_rw_disk()
111 tf->lbah = (u8)(block >> 16); in __ide_do_rw_disk()
116 tf->lbal = (u8)(block >> 24); in __ide_do_rw_disk()
117 if (sizeof(block) != 4) { in __ide_do_rw_disk()
118 tf->lbam = (u8)((u64)block >> 32); in __ide_do_rw_disk()
119 tf->lbah = (u8)((u64)block >> 40); in __ide_do_rw_disk()
[all …]
/linux-4.4.14/mm/
Dslob.c340 static void slob_free(void *block, int size) in slob_free() argument
343 slob_t *prev, *next, *b = (slob_t *)block; in slob_free()
348 if (unlikely(ZERO_OR_NULL_PTR(block))) in slob_free()
352 sp = virt_to_page(block); in slob_free()
484 void kfree(const void *block) in kfree() argument
488 trace_kfree(_RET_IP_, block); in kfree()
490 if (unlikely(ZERO_OR_NULL_PTR(block))) in kfree()
492 kmemleak_free(block); in kfree()
494 sp = virt_to_page(block); in kfree()
497 unsigned int *m = (unsigned int *)(block - align); in kfree()
[all …]
/linux-4.4.14/drivers/media/rc/img-ir/
DKconfig34 NEC protocols in the ImgTec infrared decoder block.
41 infrared decoder block.
48 infrared decoder block.
55 infrared decoder block.
62 Aiwa, Chinon remotes) in the ImgTec infrared decoder block.
69 infrared decoder block.
76 infrared decoder block.
/linux-4.4.14/arch/mips/cavium-octeon/executive/
Dcvmx-interrupt-rsl.c42 void __cvmx_interrupt_gmxx_rxx_int_en_enable(int index, int block);
50 void __cvmx_interrupt_asxx_enable(int block) in __cvmx_interrupt_asxx_enable() argument
65 csr.u64 = cvmx_read_csr(CVMX_ASXX_INT_EN(block)); in __cvmx_interrupt_asxx_enable()
69 cvmx_write_csr(CVMX_ASXX_INT_EN(block), csr.u64); in __cvmx_interrupt_asxx_enable()
Dcvmx-interrupt-decodes.c51 void __cvmx_interrupt_gmxx_rxx_int_en_enable(int index, int block) in __cvmx_interrupt_gmxx_rxx_int_en_enable() argument
54 cvmx_write_csr(CVMX_GMXX_RXX_INT_REG(index, block), in __cvmx_interrupt_gmxx_rxx_int_en_enable()
55 cvmx_read_csr(CVMX_GMXX_RXX_INT_REG(index, block))); in __cvmx_interrupt_gmxx_rxx_int_en_enable()
227 cvmx_write_csr(CVMX_GMXX_RXX_INT_EN(index, block), gmx_rx_int_en.u64); in __cvmx_interrupt_gmxx_rxx_int_en_enable()
232 void __cvmx_interrupt_pcsx_intx_en_reg_enable(int index, int block) in __cvmx_interrupt_pcsx_intx_en_reg_enable() argument
235 cvmx_write_csr(CVMX_PCSX_INTX_REG(index, block), in __cvmx_interrupt_pcsx_intx_en_reg_enable()
236 cvmx_read_csr(CVMX_PCSX_INTX_REG(index, block))); in __cvmx_interrupt_pcsx_intx_en_reg_enable()
268 cvmx_write_csr(CVMX_PCSX_INTX_EN_REG(index, block), pcs_int_en_reg.u64); in __cvmx_interrupt_pcsx_intx_en_reg_enable()
/linux-4.4.14/drivers/i2c/busses/
Di2c-sis630.c244 len = data->block[0]; in sis630_block_data()
252 "set data 0x%02x\n", data->block[i]); in sis630_block_data()
254 sis630_write(SMB_BYTE + (i - 1) % 8, data->block[i]); in sis630_block_data()
288 data->block[0] = len = 0; in sis630_block_data()
301 data->block[0] = sis630_read(SMB_COUNT); in sis630_block_data()
304 if (data->block[0] > 32) in sis630_block_data()
305 data->block[0] = 32; in sis630_block_data()
308 "block data read len=0x%x\n", data->block[0]); in sis630_block_data()
310 for (i = 0; i < 8 && len < data->block[0]; i++, len++) { in sis630_block_data()
313 data->block[len + 1] = sis630_read(SMB_BYTE + in sis630_block_data()
[all …]
Di2c-isch.c204 len = data->block[0]; in sch_access()
209 outb(data->block[i], SMBBLKDAT+i-1); in sch_access()
236 data->block[0] = inb(SMBHSTDAT0); in sch_access()
237 if (data->block[0] == 0 || data->block[0] > I2C_SMBUS_BLOCK_MAX) in sch_access()
239 for (i = 1; i <= data->block[0]; i++) in sch_access()
240 data->block[i] = inb(SMBBLKDAT+i-1); in sch_access()
Di2c-ali1535.c415 len = data->block[0]; in ali1535_access()
418 data->block[0] = len; in ali1535_access()
422 data->block[0] = len; in ali1535_access()
428 outb_p(data->block[i], SMBBLKDAT); in ali1535_access()
460 data->block[0] = len; in ali1535_access()
463 for (i = 1; i <= data->block[0]; i++) { in ali1535_access()
464 data->block[i] = inb_p(SMBBLKDAT); in ali1535_access()
466 len, i, data->block[i]); in ali1535_access()
Di2c-ali15x3.c398 len = data->block[0]; in ali15x3_access()
401 data->block[0] = len; in ali15x3_access()
405 data->block[0] = len; in ali15x3_access()
411 outb_p(data->block[i], SMBBLKDAT); in ali15x3_access()
444 data->block[0] = len; in ali15x3_access()
447 for (i = 1; i <= data->block[0]; i++) { in ali15x3_access()
448 data->block[i] = inb_p(SMBBLKDAT); in ali15x3_access()
450 len, i, data->block[i]); in ali15x3_access()
/linux-4.4.14/Documentation/filesystems/nfs/
Dpnfs-block-server.txt1 pNFS block layout server user guide
3 The Linux NFS server now supports the pNFS block layout extension. In this
6 to the clients to directly access the underlying block devices that are
9 To use pNFS block layouts with with the Linux NFS server the exported file
10 system needs to support the pNFS block layouts (currently just XFS), and the
16 On the server, pNFS block volume support is automatically if the file system
/linux-4.4.14/include/trace/events/
Dnilfs2.h168 unsigned long block),
170 TP_ARGS(inode, ino, block),
175 __field(unsigned long, block)
181 __entry->block = block;
187 __entry->block)
/linux-4.4.14/fs/adfs/
Ddir_fplus.c20 unsigned long block; in adfs_fplus_read() local
29 block = __adfs_block_map(sb, id, 0); in adfs_fplus_read()
30 if (!block) { in adfs_fplus_read()
35 dir->bh_fplus[0] = sb_bread(sb, block); in adfs_fplus_read()
75 block = __adfs_block_map(sb, id, blk); in adfs_fplus_read()
76 if (!block) { in adfs_fplus_read()
81 dir->bh_fplus[blk] = sb_bread(sb, block); in adfs_fplus_read()
84 id, blk, block); in adfs_fplus_read()
Dinode.c19 adfs_get_block(struct inode *inode, sector_t block, struct buffer_head *bh, in adfs_get_block() argument
23 if (block >= inode->i_blocks) in adfs_get_block()
26 block = __adfs_block_map(inode->i_sb, inode->i_ino, block); in adfs_get_block()
27 if (block) in adfs_get_block()
28 map_bh(bh, inode->i_sb, block); in adfs_get_block()
72 static sector_t _adfs_bmap(struct address_space *mapping, sector_t block) in _adfs_bmap() argument
74 return generic_block_bmap(mapping, block, adfs_get_block); in _adfs_bmap()
/linux-4.4.14/drivers/usb/storage/
Djumpshot.c489 unsigned long block, blocks; in jumpshot_transport() local
541 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in jumpshot_transport()
547 block, blocks); in jumpshot_transport()
548 return jumpshot_read_data(us, info, block, blocks); in jumpshot_transport()
554 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in jumpshot_transport()
561 block, blocks); in jumpshot_transport()
562 return jumpshot_read_data(us, info, block, blocks); in jumpshot_transport()
566 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in jumpshot_transport()
572 block, blocks); in jumpshot_transport()
573 return jumpshot_write_data(us, info, block, blocks); in jumpshot_transport()
[all …]
Ddatafab.c563 unsigned long block, blocks; in datafab_transport() local
613 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in datafab_transport()
619 block, blocks); in datafab_transport()
620 return datafab_read_data(us, info, block, blocks); in datafab_transport()
626 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in datafab_transport()
633 block, blocks); in datafab_transport()
634 return datafab_read_data(us, info, block, blocks); in datafab_transport()
638 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in datafab_transport()
644 block, blocks); in datafab_transport()
645 return datafab_write_data(us, info, block, blocks); in datafab_transport()
[all …]
/linux-4.4.14/drivers/mtd/onenand/
Donenand_base.c196 static int onenand_block_address(struct onenand_chip *this, int block) in onenand_block_address() argument
199 if (block & this->density_mask) in onenand_block_address()
200 return ONENAND_DDP_CHIP1 | (block ^ this->density_mask); in onenand_block_address()
202 return block; in onenand_block_address()
213 static int onenand_bufferram_address(struct onenand_chip *this, int block) in onenand_bufferram_address() argument
216 if (block & this->density_mask) in onenand_bufferram_address()
306 static loff_t flexonenand_addr(struct onenand_chip *this, int block) in flexonenand_addr() argument
311 if (ONENAND_IS_DDP(this) && block >= this->density_mask) { in flexonenand_addr()
312 block -= this->density_mask; in flexonenand_addr()
318 ofs += (loff_t)block << (this->erase_shift - 1); in flexonenand_addr()
[all …]
DKconfig48 The OTP block can be read, programmed and locked using the same
49 operations as any other NAND Flash Array memory block.
50 OTP block cannot be erased.
52 OTP block is fully-guaranteed to be a valid block.
62 So MTD regards it as 4KiB page size and 256KiB block size
/linux-4.4.14/Documentation/devicetree/bindings/rng/
Datmel-trng.txt1 Atmel TRNG (True Random Number Generator) block
5 - reg : Offset and length of the register set of this block
6 - interrupts : the interrupt number for the TRNG block
/linux-4.4.14/sound/synth/
Dutil_mem.c47 INIT_LIST_HEAD(&hdr->block); in snd_util_memhdr_new()
62 while ((p = hdr->block.next) != &hdr->block) { in snd_util_memhdr_free()
91 list_for_each(p, &hdr->block) { in __snd_util_mem_alloc()
120 if (prev == &hdr->block) in __snd_util_memblk_new()
/linux-4.4.14/Documentation/devicetree/bindings/pwm/
Datmel-tcb-pwm.txt8 - tc-block: The Timer Counter block to use as a PWM chip.
15 tc-block = <1>;
/linux-4.4.14/sound/isa/sb/
Demu8000_patch.c179 sp->block = snd_util_mem_alloc(hdr, truesize * 2); in snd_emu8000_sample_new()
180 if (sp->block == NULL) { in snd_emu8000_sample_new()
201 dram_offset = EMU8000_DRAM_OFFSET + (sp->block->offset >> 1); in snd_emu8000_sample_new()
219 if (! sp->block->offset) { in snd_emu8000_sample_new()
290 if (sp->block) { in snd_emu8000_sample_free()
291 snd_util_mem_free(hdr, sp->block); in snd_emu8000_sample_free()
292 sp->block = NULL; in snd_emu8000_sample_free()
/linux-4.4.14/tools/testing/selftests/zram/
DREADME1 zram: Compressed RAM based block devices
5 The zram module creates RAM based block devices named /dev/zram<id>
12 /sys/block/zram<id>/
27 zram02.sh: creates block device for swap
/linux-4.4.14/Documentation/devicetree/bindings/clock/
Dux500.txt18 The first cell indicates which PRCC block the consumer
20 cell indicates which clock inside the PRCC block it wants,
24 The first cell indicates which PRCC block the consumer
26 cell indicates which clock inside the PRCC block it wants,
38 * Registers for the CLKRST block on peripheral
/linux-4.4.14/fs/xfs/
Dxfs_sysfs.c203 int block; in log_head_lsn_show() local
208 block = log->l_curr_block; in log_head_lsn_show()
211 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, block); in log_head_lsn_show()
221 int block; in log_tail_lsn_show() local
224 xlog_crack_atomic_lsn(&log->l_tail_lsn, &cycle, &block); in log_tail_lsn_show()
225 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, block); in log_tail_lsn_show()
/linux-4.4.14/drivers/mmc/card/
DKconfig8 tristate "MMC block device driver"
12 Say Y here to enable the MMC block device driver support.
13 This provides a block device driver, which you can use to
18 int "Number of minors per block device"
23 Number of minors per block device. One is needed for every
27 of supported block devices will be limited to 256 divided
/linux-4.4.14/fs/cramfs/
DREADME43 nblocks * <block>
47 *end* of the i'th <block> (i.e. one past the last byte, which is the
48 same as the start of the (i+1)'th <block> if there is one). The first
49 <block> immediately follows the last <block_pointer> for the file.
57 <block>: The i'th <block> is the output of zlib's compress function
59 (For the last <block> of the file, the input may of course be smaller.)
60 Each <block> may be a different size. (See <block_pointer> above.)
61 <block>s are merely byte-aligned, not generally u32-aligned.
91 The superblock ought to indicate the block size that the fs was
120 data, only the superblock, inodes and block pointers.
[all …]
/linux-4.4.14/arch/arm/kernel/
Dsetup.c380 int block; in cpuid_init_hwcaps() local
386 block = cpuid_feature_extract(CPUID_EXT_ISAR0, 24); in cpuid_init_hwcaps()
387 if (block >= 2) in cpuid_init_hwcaps()
389 if (block >= 1) in cpuid_init_hwcaps()
393 block = cpuid_feature_extract(CPUID_EXT_MMFR0, 0); in cpuid_init_hwcaps()
394 if (block >= 5) in cpuid_init_hwcaps()
400 block = cpuid_feature_extract_field(isar5, 4); in cpuid_init_hwcaps()
401 if (block >= 2) in cpuid_init_hwcaps()
403 if (block >= 1) in cpuid_init_hwcaps()
406 block = cpuid_feature_extract_field(isar5, 8); in cpuid_init_hwcaps()
[all …]
/linux-4.4.14/arch/sparc/crypto/
Dmd5_glue.c53 memcpy((u8 *)sctx->block + partial, data, done); in __md5_sparc64_update()
54 md5_sparc64_transform(sctx->hash, (u8 *)sctx->block, 1); in __md5_sparc64_update()
63 memcpy(sctx->block, data + done, len - done); in __md5_sparc64_update()
75 memcpy((u8 *)sctx->block + partial, data, len); in md5_sparc64_update()
100 memcpy((u8 *)sctx->block + index, padding, padlen); in md5_sparc64_final()
/linux-4.4.14/drivers/scsi/
Dsd.c904 sector_t block = blk_rq_pos(rq); in sd_setup_read_write_cmnd() local
924 __func__, (unsigned long long)block, this_count)); in sd_setup_read_write_cmnd()
927 block + blk_rq_sectors(rq) > get_capacity(disk)) { in sd_setup_read_write_cmnd()
952 if (unlikely(sdp->last_sector_bug && block + this_count > threshold)) { in sd_setup_read_write_cmnd()
953 if (block < threshold) { in sd_setup_read_write_cmnd()
955 this_count = threshold - block; in sd_setup_read_write_cmnd()
963 (unsigned long long)block)); in sd_setup_read_write_cmnd()
977 if ((block & 1) || (blk_rq_sectors(rq) & 1)) { in sd_setup_read_write_cmnd()
982 block = block >> 1; in sd_setup_read_write_cmnd()
987 if ((block & 3) || (blk_rq_sectors(rq) & 3)) { in sd_setup_read_write_cmnd()
[all …]

1234567