Home
last modified time | relevance | path

Searched refs:blk (Results 1 – 133 of 133) sorted by relevance

/linux-4.4.14/sound/pci/ctxfi/
Dcthardware.h90 int (*src_rsc_put_ctrl_blk)(void *blk);
91 int (*src_set_state)(void *blk, unsigned int state);
92 int (*src_set_bm)(void *blk, unsigned int bm);
93 int (*src_set_rsr)(void *blk, unsigned int rsr);
94 int (*src_set_sf)(void *blk, unsigned int sf);
95 int (*src_set_wr)(void *blk, unsigned int wr);
96 int (*src_set_pm)(void *blk, unsigned int pm);
97 int (*src_set_rom)(void *blk, unsigned int rom);
98 int (*src_set_vo)(void *blk, unsigned int vo);
99 int (*src_set_st)(void *blk, unsigned int st);
[all …]
Dcthw20k2.c167 struct src_rsc_ctrl_blk *blk; in src_get_rsc_ctrl_blk() local
170 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in src_get_rsc_ctrl_blk()
171 if (!blk) in src_get_rsc_ctrl_blk()
174 *rblk = blk; in src_get_rsc_ctrl_blk()
179 static int src_put_rsc_ctrl_blk(void *blk) in src_put_rsc_ctrl_blk() argument
181 kfree(blk); in src_put_rsc_ctrl_blk()
186 static int src_set_state(void *blk, unsigned int state) in src_set_state() argument
188 struct src_rsc_ctrl_blk *ctl = blk; in src_set_state()
195 static int src_set_bm(void *blk, unsigned int bm) in src_set_bm() argument
197 struct src_rsc_ctrl_blk *ctl = blk; in src_set_bm()
[all …]
Dcthw20k1.c167 struct src_rsc_ctrl_blk *blk; in src_get_rsc_ctrl_blk() local
170 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in src_get_rsc_ctrl_blk()
171 if (!blk) in src_get_rsc_ctrl_blk()
174 *rblk = blk; in src_get_rsc_ctrl_blk()
179 static int src_put_rsc_ctrl_blk(void *blk) in src_put_rsc_ctrl_blk() argument
181 kfree((struct src_rsc_ctrl_blk *)blk); in src_put_rsc_ctrl_blk()
186 static int src_set_state(void *blk, unsigned int state) in src_set_state() argument
188 struct src_rsc_ctrl_blk *ctl = blk; in src_set_state()
195 static int src_set_bm(void *blk, unsigned int bm) in src_set_bm() argument
197 struct src_rsc_ctrl_blk *ctl = blk; in src_set_bm()
[all …]
/linux-4.4.14/arch/powerpc/lib/
Drheap.c47 rh_block_t *block, *blk; in grow() local
73 for (i = 0, blk = block; i < info->max_blocks; i++, blk++) in grow()
74 fixup(blks, blke, delta, &blk->list); in grow()
91 blk = block + info->max_blocks - new_blocks; in grow()
92 for (i = 0; i < new_blocks; i++, blk++) in grow()
93 list_add(&blk->list, &info->empty_list); in grow()
123 rh_block_t *blk; in get_slot() local
133 blk = list_entry(info->empty_list.next, rh_block_t, list); in get_slot()
134 list_del_init(&blk->list); in get_slot()
138 blk->start = 0; in get_slot()
[all …]
/linux-4.4.14/sound/pci/emu10k1/
Dmemory.c77 static int synth_alloc_pages(struct snd_emu10k1 *hw, struct snd_emu10k1_memblk *blk);
78 static int synth_free_pages(struct snd_emu10k1 *hw, struct snd_emu10k1_memblk *blk);
84 static void emu10k1_memblk_init(struct snd_emu10k1_memblk *blk) in emu10k1_memblk_init() argument
86 blk->mapped_page = -1; in emu10k1_memblk_init()
87 INIT_LIST_HEAD(&blk->mapped_link); in emu10k1_memblk_init()
88 INIT_LIST_HEAD(&blk->mapped_order_link); in emu10k1_memblk_init()
89 blk->map_locked = 0; in emu10k1_memblk_init()
91 blk->first_page = get_aligned_page(blk->mem.offset); in emu10k1_memblk_init()
92 blk->last_page = get_aligned_page(blk->mem.offset + blk->mem.size - 1); in emu10k1_memblk_init()
93 blk->pages = blk->last_page - blk->first_page + 1; in emu10k1_memblk_init()
[all …]
/linux-4.4.14/block/
DMakefile5 obj-$(CONFIG_BLOCK) := bio.o elevator.o blk-core.o blk-tag.o blk-sysfs.o \
6 blk-flush.o blk-settings.o blk-ioc.o blk-map.o \
7 blk-exec.o blk-merge.o blk-softirq.o blk-timeout.o \
8 blk-iopoll.o blk-lib.o blk-mq.o blk-mq-tag.o \
9 blk-mq-sysfs.o blk-mq-cpu.o blk-mq-cpumap.o ioctl.o \
16 obj-$(CONFIG_BLK_CGROUP) += blk-cgroup.o
17 obj-$(CONFIG_BLK_DEV_THROTTLING) += blk-throttle.o
24 obj-$(CONFIG_BLK_DEV_INTEGRITY) += bio-integrity.o blk-integrity.o t10-pi.o
/linux-4.4.14/sound/synth/
Dutil_mem.c75 struct snd_util_memblk *blk; in __snd_util_mem_alloc() local
92 blk = get_memblk(p); in __snd_util_mem_alloc()
93 if (blk->offset - prev_offset >= units) in __snd_util_mem_alloc()
95 prev_offset = blk->offset + blk->size; in __snd_util_mem_alloc()
113 struct snd_util_memblk *blk; in __snd_util_memblk_new() local
115 blk = kmalloc(sizeof(struct snd_util_memblk) + hdr->block_extra_size, in __snd_util_memblk_new()
117 if (blk == NULL) in __snd_util_memblk_new()
121 blk->offset = 0; in __snd_util_memblk_new()
124 blk->offset = p->offset + p->size; in __snd_util_memblk_new()
126 blk->size = units; in __snd_util_memblk_new()
[all …]
/linux-4.4.14/fs/quota/
Dquota_tree.c52 static ssize_t read_blk(struct qtree_mem_dqinfo *info, uint blk, char *buf) in read_blk() argument
58 info->dqi_usable_bs, blk << info->dqi_blocksize_bits); in read_blk()
61 static ssize_t write_blk(struct qtree_mem_dqinfo *info, uint blk, char *buf) in write_blk() argument
67 info->dqi_usable_bs, blk << info->dqi_blocksize_bits); in write_blk()
81 int ret, blk; in get_free_dqblk() local
86 blk = info->dqi_free_blk; in get_free_dqblk()
87 ret = read_blk(info, blk, buf); in get_free_dqblk()
98 blk = info->dqi_blocks++; in get_free_dqblk()
101 ret = blk; in get_free_dqblk()
108 static int put_free_dqblk(struct qtree_mem_dqinfo *info, char *buf, uint blk) in put_free_dqblk() argument
[all …]
/linux-4.4.14/sound/pci/trident/
Dtrident_memory.c133 #define firstpg(blk) (((struct snd_trident_memblk_arg *)snd_util_memblk_argptr(blk))->first_page) argument
134 #define lastpg(blk) (((struct snd_trident_memblk_arg *)snd_util_memblk_argptr(blk))->last_page) argument
142 struct snd_util_memblk *blk; in search_empty() local
149 blk = list_entry(p, struct snd_util_memblk, list); in search_empty()
150 if (page + psize <= firstpg(blk)) in search_empty()
152 page = lastpg(blk) + 1; in search_empty()
159 blk = __snd_util_memblk_new(hdr, psize * ALIGN_PAGE_SIZE, p->prev); in search_empty()
160 if (blk == NULL) in search_empty()
162 blk->offset = aligned_page_offset(page); /* set aligned offset */ in search_empty()
163 firstpg(blk) = page; in search_empty()
[all …]
Dtrident.h438 int snd_trident_free_pages(struct snd_trident *trident, struct snd_util_memblk *blk);
440 int snd_trident_synth_free(struct snd_trident *trident, struct snd_util_memblk *blk);
441 int snd_trident_synth_copy_from_user(struct snd_trident *trident, struct snd_util_memblk *blk,
/linux-4.4.14/drivers/net/wireless/orinoco/
Dhermes_dld.c96 dblock_addr(const struct dblock *blk) in dblock_addr() argument
98 return le32_to_cpu(blk->addr); in dblock_addr()
102 dblock_len(const struct dblock *blk) in dblock_len() argument
104 return le16_to_cpu(blk->len); in dblock_len()
256 const struct dblock *blk = (const struct dblock *) first_block; in hermes_blocks_length() local
260 end -= sizeof(*blk); in hermes_blocks_length()
264 while (((void *) blk <= end) && in hermes_blocks_length()
265 (dblock_addr(blk) != BLOCK_END)) { in hermes_blocks_length()
266 len = dblock_len(blk); in hermes_blocks_length()
267 total_len += sizeof(*blk) + len; in hermes_blocks_length()
[all …]
/linux-4.4.14/Documentation/DocBook/
Dkernel-api.xml.db593 API-blk-get-backing-dev-info
594 API-blk-delay-queue
595 API-blk-start-queue-async
596 API-blk-start-queue
597 API-blk-stop-queue
598 API-blk-sync-queue
599 API---blk-run-queue-uncond
600 API---blk-run-queue
601 API-blk-run-queue-async
602 API-blk-run-queue
[all …]
D.kernel-api.xml.cmd2blk-core.c block/blk-core.c block/blk-map.c block/blk-sysfs.c block/blk-settings.c block/blk-exec.…
/linux-4.4.14/block/partitions/
Damiga.c34 int start_sect, nr_sects, blk, part, res = 0; in amiga_partition() local
39 for (blk = 0; ; blk++, put_dev_sector(sect)) { in amiga_partition()
40 if (blk == RDB_ALLOCATION_LIMIT) in amiga_partition()
42 data = read_part_sector(state, blk, &sect); in amiga_partition()
46 bdevname(state->bdev, b), blk); in amiga_partition()
63 blk); in amiga_partition()
68 bdevname(state->bdev, b), blk); in amiga_partition()
81 blk = be32_to_cpu(rdb->rdb_PartitionList); in amiga_partition()
83 for (part = 1; blk>0 && part<=16; part++, put_dev_sector(sect)) { in amiga_partition()
84 blk *= blksize; /* Read in terms partition table understands */ in amiga_partition()
[all …]
Dibm.c138 sector_t blk; in find_vol1_partitions() local
154 blk = cchhb2blk(&label->vol.vtoc, geo) + 1; in find_vol1_partitions()
156 data = read_part_sector(state, blk * secperblk, &sect); in find_vol1_partitions()
165 blk++; in find_vol1_partitions()
166 data = read_part_sector(state, blk * secperblk, &sect); in find_vol1_partitions()
183 blk++; in find_vol1_partitions()
184 data = read_part_sector(state, blk * secperblk, &sect); in find_vol1_partitions()
/linux-4.4.14/fs/xfs/libxfs/
Dxfs_attr.c877 xfs_da_state_blk_t *blk; in xfs_attr_node_addname() local
901 blk = &state->path.blk[ state->path.active-1 ]; in xfs_attr_node_addname()
902 ASSERT(blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_attr_node_addname()
929 retval = xfs_attr3_leaf_add(blk->bp, state->args); in xfs_attr_node_addname()
1078 blk = &state->path.blk[ state->path.active-1 ]; in xfs_attr_node_addname()
1079 ASSERT(blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_attr_node_addname()
1080 error = xfs_attr3_leaf_remove(blk->bp, args); in xfs_attr_node_addname()
1146 xfs_da_state_blk_t *blk; in xfs_attr_node_removename() local
1176 blk = &state->path.blk[ state->path.active-1 ]; in xfs_attr_node_removename()
1177 ASSERT(blk->bp != NULL); in xfs_attr_node_removename()
[all …]
Dxfs_da_btree.c114 state->altpath.blk[i].bp = NULL; in xfs_da_state_kill_altpath()
375 ASSERT(state->path.blk[max].magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_split()
376 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split()
378 addblk = &state->path.blk[max]; /* initial dummy value */ in xfs_da3_split()
380 oldblk = &state->path.blk[i]; in xfs_da3_split()
381 newblk = &state->altpath.blk[i]; in xfs_da3_split()
452 oldblk = &state->path.blk[0]; in xfs_da3_split()
946 drop_blk = &state->path.blk[ state->path.active-1 ]; in xfs_da3_join()
947 save_blk = &state->altpath.blk[ state->path.active-1 ]; in xfs_da3_join()
948 ASSERT(state->path.blk[0].magic == XFS_DA_NODE_MAGIC); in xfs_da3_join()
[all …]
Dxfs_dir2_node.c1382 xfs_da_state_blk_t *blk; /* leaf block */ in xfs_dir2_leafn_toosmall() local
1401 blk = &state->path.blk[state->path.active - 1]; in xfs_dir2_leafn_toosmall()
1402 leaf = blk->bp->b_addr; in xfs_dir2_leafn_toosmall()
1405 xfs_dir3_leaf_check(dp, blk->bp); in xfs_dir2_leafn_toosmall()
1491 if (blkno < blk->blkno) in xfs_dir2_leafn_toosmall()
1574 xfs_da_state_blk_t *blk; /* leaf block for insert */ in xfs_dir2_node_addname() local
1606 blk = &state->path.blk[state->path.active - 1]; in xfs_dir2_node_addname()
1607 ASSERT(blk->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_node_addname()
1611 rval = xfs_dir2_leafn_add(blk->bp, args, blk->index); in xfs_dir2_node_addname()
2049 xfs_trans_brelse(args->trans, state->path.blk[i].bp); in xfs_dir2_node_lookup()
[all …]
Dxfs_da_btree.h125 xfs_da_state_blk_t blk[XFS_DA_NODE_MAXDEPTH]; member
Dxfs_attr_leaf.c1750 struct xfs_da_state_blk *blk; in xfs_attr3_leaf_toosmall() local
1767 blk = &state->path.blk[ state->path.active-1 ]; in xfs_attr3_leaf_toosmall()
1768 leaf = blk->bp->b_addr; in xfs_attr3_leaf_toosmall()
1848 if (blkno < blk->blkno) { in xfs_attr3_leaf_toosmall()
Dxfs_dir2_leaf.c1742 lbp = state->path.blk[0].bp; in xfs_dir2_node_to_leaf()
1822 state->path.blk[0].bp = NULL; in xfs_dir2_node_to_leaf()
/linux-4.4.14/drivers/lightnvm/
Dgennvm.c75 struct nvm_block *blk; in gennvm_block_bb() local
84 blk = &lun->vlun.blocks[i]; in gennvm_block_bb()
85 if (!blk) { in gennvm_block_bb()
90 list_move_tail(&blk->list, &lun->bb_list); in gennvm_block_bb()
104 struct nvm_block *blk; in gennvm_block_map() local
134 blk = &lun->vlun.blocks[div_u64(pba, dev->sec_per_blk)]; in gennvm_block_map()
136 if (!blk->type) { in gennvm_block_map()
141 list_move_tail(&blk->list, &lun->used_list); in gennvm_block_map()
142 blk->type = 1; in gennvm_block_map()
262 struct nvm_block *blk = NULL; in gennvm_get_blk() local
[all …]
Drrpc.c121 struct nvm_block *blk = rblk->parent; in block_to_addr() local
123 return blk->id * rrpc->dev->pgs_per_blk; in block_to_addr()
144 l.g.blk = blks; in linear_to_generic_addr()
182 struct nvm_block *blk; in rrpc_get_blk() local
185 blk = nvm_get_blk(rrpc->dev, rlun->parent, flags); in rrpc_get_blk()
186 if (!blk) in rrpc_get_blk()
189 rblk = &rlun->blocks[blk->id]; in rrpc_get_blk()
190 blk->priv = rblk; in rrpc_get_blk()
1127 struct nvm_block *blk = &lun->blocks[j]; in rrpc_luns_init() local
1129 rblk->parent = blk; in rrpc_luns_init()
Dcore.c177 void nvm_put_blk(struct nvm_dev *dev, struct nvm_block *blk) in nvm_put_blk() argument
179 return dev->mt->put_blk(dev, blk); in nvm_put_blk()
189 int nvm_erase_blk(struct nvm_dev *dev, struct nvm_block *blk) in nvm_erase_blk() argument
191 return dev->mt->erase_blk(dev, blk, 0); in nvm_erase_blk()
/linux-4.4.14/fs/affs/
Dbitmap.c43 u32 blk, bmap, bit, mask, tmp; in affs_free_block() local
51 blk = block - sbi->s_reserved; in affs_free_block()
52 bmap = blk / sbi->s_bmap_bits; in affs_free_block()
53 bit = blk % sbi->s_bmap_bits; in affs_free_block()
121 u32 blk, bmap, bit, mask, mask2, tmp; in affs_alloc_block() local
143 blk = goal - sbi->s_reserved; in affs_alloc_block()
144 bmap = blk / sbi->s_bmap_bits; in affs_alloc_block()
166 blk = bmap * sbi->s_bmap_bits; in affs_alloc_block()
181 bit = blk % sbi->s_bmap_bits; in affs_alloc_block()
185 blk &= ~31UL; in affs_alloc_block()
[all …]
Dfile.c838 u32 last_blk, blkcnt, blk; in affs_truncate() local
895 blk = last_blk; in affs_truncate()
898 blk++; in affs_truncate()
903 if (size > blkcnt - blk + i) in affs_truncate()
904 size = blkcnt - blk + i; in affs_truncate()
905 for (; i < size; i++, blk++) { in affs_truncate()
941 if (size > blkcnt - blk) in affs_truncate()
942 size = blkcnt - blk; in affs_truncate()
943 for (i = 0; i < size; i++, blk++) in affs_truncate()
Daffs.h18 #define AFFS_BLOCK(sb, bh, blk) (AFFS_HEAD(bh)->table[AFFS_SB(sb)->s_hashsize-1-(blk)]) argument
/linux-4.4.14/arch/x86/mm/
Dnuma.c150 mi->blk[mi->nr_blks].start = start; in numa_add_memblk_to()
151 mi->blk[mi->nr_blks].end = end; in numa_add_memblk_to()
152 mi->blk[mi->nr_blks].nid = nid; in numa_add_memblk_to()
168 memmove(&mi->blk[idx], &mi->blk[idx + 1], in numa_remove_memblk_from()
169 (mi->nr_blks - idx) * sizeof(mi->blk[0])); in numa_remove_memblk_from()
243 struct numa_memblk *bi = &mi->blk[i]; in numa_cleanup_meminfo()
258 struct numa_memblk *bi = &mi->blk[i]; in numa_cleanup_meminfo()
261 struct numa_memblk *bj = &mi->blk[j]; in numa_cleanup_meminfo()
291 struct numa_memblk *bk = &mi->blk[k]; in numa_cleanup_meminfo()
310 for (i = mi->nr_blks; i < ARRAY_SIZE(mi->blk); i++) { in numa_cleanup_meminfo()
[all …]
Dnuma_emulation.c26 if (mi->blk[i].nid == nid) in emu_find_memblk_by_nid()
49 struct numa_memblk *eb = &ei->blk[ei->nr_blks]; in emu_setup_memblk()
50 struct numa_memblk *pb = &pi->blk[phys_blk]; in emu_setup_memblk()
120 node_set(pi->blk[i].nid, physnode_mask); in split_nodes_interleave()
137 start = pi->blk[phys_blk].start; in split_nodes_interleave()
138 limit = pi->blk[phys_blk].end; in split_nodes_interleave()
235 node_set(pi->blk[i].nid, physnode_mask); in split_nodes_size_interleave()
252 start = pi->blk[phys_blk].start; in split_nodes_size_interleave()
253 limit = pi->blk[phys_blk].end; in split_nodes_size_interleave()
Dnuma_internal.h15 struct numa_memblk blk[NR_NODE_MEMBLKS]; member
/linux-4.4.14/drivers/media/platform/vivid/
Dvivid-radio-tx.c40 unsigned blk; in vivid_radio_tx_write() local
62 blk = ts.tv_sec * 100 + ts.tv_nsec / 10000000; in vivid_radio_tx_write()
63 blk = (blk * VIVID_RDS_GEN_BLOCKS) / 500; in vivid_radio_tx_write()
64 if (blk - VIVID_RDS_GEN_BLOCKS >= dev->radio_tx_rds_last_block) in vivid_radio_tx_write()
65 dev->radio_tx_rds_last_block = blk - VIVID_RDS_GEN_BLOCKS + 1; in vivid_radio_tx_write()
73 if (blk == dev->radio_tx_rds_last_block || in vivid_radio_tx_write()
85 for (i = 0; i < size && blk > dev->radio_tx_rds_last_block; in vivid_radio_tx_write()
Dvivid-radio-rx.c42 unsigned blk; in vivid_radio_rx_read() local
74 blk = ts.tv_sec * 100 + ts.tv_nsec / 10000000; in vivid_radio_rx_read()
75 blk = (blk * VIVID_RDS_GEN_BLOCKS) / 500; in vivid_radio_rx_read()
76 if (blk >= dev->radio_rx_rds_last_block + VIVID_RDS_GEN_BLOCKS) in vivid_radio_rx_read()
77 dev->radio_rx_rds_last_block = blk - VIVID_RDS_GEN_BLOCKS + 1; in vivid_radio_rx_read()
85 if (blk == dev->radio_rx_rds_last_block || !dev->radio_rx_rds_enabled || in vivid_radio_rx_read()
101 for (i = 0; i < size && blk > dev->radio_rx_rds_last_block; in vivid_radio_rx_read()
/linux-4.4.14/fs/gfs2/
Drecovery.h17 static inline void gfs2_replay_incr_blk(struct gfs2_sbd *sdp, unsigned int *blk) in gfs2_replay_incr_blk() argument
19 if (++*blk == sdp->sd_jdesc->jd_blocks) in gfs2_replay_incr_blk()
20 *blk = 0; in gfs2_replay_incr_blk()
23 extern int gfs2_replay_read_block(struct gfs2_jdesc *jd, unsigned int blk,
Drecovery.c32 int gfs2_replay_read_block(struct gfs2_jdesc *jd, unsigned int blk, in gfs2_replay_read_block() argument
42 error = gfs2_extent_map(&ip->i_inode, blk, &new, &dblock, &extlen); in gfs2_replay_read_block()
150 static int get_log_header(struct gfs2_jdesc *jd, unsigned int blk, in get_log_header() argument
159 error = gfs2_replay_read_block(jd, blk, &bh); in get_log_header()
170 if (error || lh.lh_blkno != blk || lh.lh_hash != hash) in get_log_header()
191 static int find_good_lh(struct gfs2_jdesc *jd, unsigned int *blk, in find_good_lh() argument
194 unsigned int orig_blk = *blk; in find_good_lh()
198 error = get_log_header(jd, *blk, head); in find_good_lh()
202 if (++*blk == jd->jd_blocks) in find_good_lh()
203 *blk = 0; in find_good_lh()
[all …]
Ddir.c1890 u64 blk, nblk; in leaf_dealloc() local
1916 for (blk = leaf_no; blk; blk = nblk) { in leaf_dealloc()
1917 if (blk != leaf_no) { in leaf_dealloc()
1918 error = get_leaf(dip, blk, &bh); in leaf_dealloc()
1924 if (blk != leaf_no) in leaf_dealloc()
1927 gfs2_rlist_add(dip, &rlist, blk); in leaf_dealloc()
1951 for (blk = leaf_no; blk; blk = nblk) { in leaf_dealloc()
1952 if (blk != leaf_no) { in leaf_dealloc()
1953 error = get_leaf(dip, blk, &bh); in leaf_dealloc()
1959 if (blk != leaf_no) in leaf_dealloc()
[all …]
Drgrp.c186 static inline int rs_cmp(u64 blk, u32 len, struct gfs2_blkreserv *rs) in rs_cmp() argument
190 if (blk >= startblk + rs->rs_free) in rs_cmp()
192 if (blk + len - 1 < startblk) in rs_cmp()
503 struct gfs2_rgrpd *gfs2_blk2rgrpd(struct gfs2_sbd *sdp, u64 blk, bool exact) in gfs2_blk2rgrpd() argument
513 if (blk < cur->rd_addr) in gfs2_blk2rgrpd()
515 else if (blk >= cur->rd_data0 + cur->rd_data) in gfs2_blk2rgrpd()
520 if (blk < cur->rd_addr) in gfs2_blk2rgrpd()
522 if (blk >= cur->rd_data0 + cur->rd_data) in gfs2_blk2rgrpd()
1288 u64 blk; in gfs2_rgrp_send_discards() local
1309 blk = offset + ((bi->bi_start + x) * GFS2_NBBY); in gfs2_rgrp_send_discards()
[all …]
Drgrp.h31 extern struct gfs2_rgrpd *gfs2_blk2rgrpd(struct gfs2_sbd *sdp, u64 blk, bool exact);
Dxattr.c1006 u64 blk; in ea_set_block() local
1008 error = gfs2_alloc_blocks(ip, &blk, &n, 0, NULL); in ea_set_block()
1011 gfs2_trans_add_unrevoke(sdp, blk, 1); in ea_set_block()
1012 indbh = gfs2_meta_new(ip->i_gl, blk); in ea_set_block()
1019 ip->i_eattr = blk; in ea_set_block()
Dquota.c666 u64 blk; in gfs2_write_buf_to_page() local
671 blk = index << (PAGE_CACHE_SHIFT - sdp->sd_sb.sb_bsize_shift); in gfs2_write_buf_to_page()
686 blk++; in gfs2_write_buf_to_page()
690 gfs2_block_map(inode, blk, bh, 1); in gfs2_write_buf_to_page()
/linux-4.4.14/arch/powerpc/sysdev/
Dppc4xx_ocm.c87 struct ocm_block *blk, *tmp; in ocm_free_region() local
93 list_for_each_entry_safe(blk, tmp, &ocm_reg->list, list) { in ocm_free_region()
94 if (blk->addr == addr) { in ocm_free_region()
96 ocm_reg->memfree += blk->size; in ocm_free_region()
98 list_del(&blk->list); in ocm_free_region()
99 kfree(blk); in ocm_free_region()
235 struct ocm_block *blk, *tmp; in ocm_debugfs_show() local
257 list_for_each_entry_safe(blk, tmp, &ocm->nc.list, list) { in ocm_debugfs_show()
259 blk->size, blk->owner); in ocm_debugfs_show()
269 list_for_each_entry_safe(blk, tmp, &ocm->c.list, list) { in ocm_debugfs_show()
[all …]
/linux-4.4.14/sound/soc/codecs/
Dwm_adsp.c936 struct wm_coeff_parsed_alg *blk) in wm_coeff_parse_alg() argument
946 blk->id = le32_to_cpu(raw->id); in wm_coeff_parse_alg()
947 blk->name = raw->name; in wm_coeff_parse_alg()
948 blk->name_len = strlen(raw->name); in wm_coeff_parse_alg()
949 blk->ncoeff = le32_to_cpu(raw->ncoeff); in wm_coeff_parse_alg()
952 blk->id = wm_coeff_parse_int(sizeof(raw->id), data); in wm_coeff_parse_alg()
953 blk->name_len = wm_coeff_parse_string(sizeof(u8), data, in wm_coeff_parse_alg()
954 &blk->name); in wm_coeff_parse_alg()
956 blk->ncoeff = wm_coeff_parse_int(sizeof(raw->ncoeff), data); in wm_coeff_parse_alg()
960 adsp_dbg(dsp, "Algorithm ID: %#x\n", blk->id); in wm_coeff_parse_alg()
[all …]
/linux-4.4.14/include/sound/
Dutil_mem.h34 #define snd_util_memblk_argptr(blk) (void*)((char*)(blk) + sizeof(struct snd_util_memblk)) argument
54 int snd_util_mem_free(struct snd_util_memhdr *hdr, struct snd_util_memblk *blk);
59 void __snd_util_mem_free(struct snd_util_memhdr *hdr, struct snd_util_memblk *blk);
Demu10k1.h1571 #define snd_emu10k1_memblk_offset(blk) (((blk)->mapped_page << PAGE_SHIFT) | ((blk)->mem.offset & (… argument
1879 int snd_emu10k1_free_pages(struct snd_emu10k1 *emu, struct snd_util_memblk *blk);
1881 int snd_emu10k1_synth_free(struct snd_emu10k1 *emu, struct snd_util_memblk *blk);
1882 int snd_emu10k1_synth_bzero(struct snd_emu10k1 *emu, struct snd_util_memblk *blk, int offset, int s…
1883 int snd_emu10k1_synth_copy_from_user(struct snd_emu10k1 *emu, struct snd_util_memblk *blk, int offs…
1884 int snd_emu10k1_memblk_map(struct snd_emu10k1 *emu, struct snd_emu10k1_memblk *blk);
/linux-4.4.14/drivers/gpu/drm/msm/mdp/mdp5/
Dmdp5_smp.c168 int blk = find_first_zero_bit(smp->state, cnt); in smp_request_block() local
169 set_bit(blk, ps->pending); in smp_request_block()
170 set_bit(blk, smp->state); in smp_request_block()
175 int blk = find_first_bit(ps->pending, cnt); in smp_request_block() local
176 clear_bit(blk, ps->pending); in smp_request_block()
181 if (!test_bit(blk, ps->configured)) in smp_request_block()
182 clear_bit(blk, smp->state); in smp_request_block()
308 u32 blk, val; in update_smp_state() local
310 for_each_set_bit(blk, *assigned, cnt) { in update_smp_state()
311 int idx = blk / 3; in update_smp_state()
[all …]
/linux-4.4.14/fs/adfs/
Ddir_fplus.c21 unsigned int blk, size; in adfs_fplus_read() local
74 for (blk = 1; blk < size; blk++) { in adfs_fplus_read()
75 block = __adfs_block_map(sb, id, blk); in adfs_fplus_read()
77 adfs_error(sb, "dir object %X has a hole at offset %d", id, blk); in adfs_fplus_read()
81 dir->bh_fplus[blk] = sb_bread(sb, block); in adfs_fplus_read()
82 if (!dir->bh_fplus[blk]) { in adfs_fplus_read()
84 id, blk, block); in adfs_fplus_read()
Ddir_f.c147 int blk = 0; in adfs_dir_read() local
161 for (blk = 0; blk < size; blk++) { in adfs_dir_read()
164 phys = __adfs_block_map(sb, object_id, blk); in adfs_dir_read()
167 object_id, blk); in adfs_dir_read()
171 dir->bh[blk] = sb_bread(sb, phys); in adfs_dir_read()
172 if (!dir->bh[blk]) in adfs_dir_read()
190 dir->nr_buffers = blk; in adfs_dir_read()
198 for (blk -= 1; blk >= 0; blk -= 1) in adfs_dir_read()
199 brelse(dir->bh[blk]); in adfs_dir_read()
/linux-4.4.14/drivers/staging/wilc1000/
Dlinux_wlan_spi.c125 int blk = len / TXRX_PHASE_SIZE; in linux_spi_write() local
132 if (blk) { in linux_spi_write()
133 while (i < blk) { in linux_spi_write()
162 .tx_buf = b + (blk * TXRX_PHASE_SIZE), in linux_spi_write()
254 int blk = rlen / TXRX_PHASE_SIZE; in linux_spi_read() local
261 if (blk) { in linux_spi_read()
262 while (i < blk) { in linux_spi_read()
289 .rx_buf = rb + (blk * TXRX_PHASE_SIZE), in linux_spi_read()
/linux-4.4.14/drivers/edac/
Dedac_device.c78 struct edac_device_block *dev_blk, *blk_p, *blk; in edac_device_alloc_ctl_info() local
176 blk = &blk_p[block]; in edac_device_alloc_ctl_info()
177 blk->instance = inst; in edac_device_alloc_ctl_info()
178 snprintf(blk->name, sizeof(blk->name), in edac_device_alloc_ctl_info()
182 instance, inst, block, blk, blk->name); in edac_device_alloc_ctl_info()
191 blk->nr_attribs = nr_attrib; in edac_device_alloc_ctl_info()
193 blk->block_attributes = attrib_p; in edac_device_alloc_ctl_info()
196 blk->block_attributes); in edac_device_alloc_ctl_info()
213 attrib->block = blk; /* up link */ in edac_device_alloc_ctl_info()
/linux-4.4.14/arch/arm64/crypto/
DMakefile26 obj-$(CONFIG_CRYPTO_AES_ARM64_CE_BLK) += aes-ce-blk.o
27 aes-ce-blk-y := aes-glue-ce.o aes-ce.o
29 obj-$(CONFIG_CRYPTO_AES_ARM64_NEON_BLK) += aes-neon-blk.o
30 aes-neon-blk-y := aes-glue-neon.o aes-neon.o
/linux-4.4.14/fs/ext4/
Dblock_validity.c227 unsigned int blk; in ext4_check_blockref() local
230 blk = le32_to_cpu(*bref++); in ext4_check_blockref()
231 if (blk && in ext4_check_blockref()
233 blk, 1))) { in ext4_check_blockref()
234 es->s_last_error_block = cpu_to_le64(blk); in ext4_check_blockref()
235 ext4_error_inode(inode, function, line, blk, in ext4_check_blockref()
Dballoc.c322 ext4_fsblk_t blk; in ext4_valid_block_bitmap() local
337 blk = ext4_block_bitmap(sb, desc); in ext4_valid_block_bitmap()
338 offset = blk - group_first_block; in ext4_valid_block_bitmap()
341 return blk; in ext4_valid_block_bitmap()
344 blk = ext4_inode_bitmap(sb, desc); in ext4_valid_block_bitmap()
345 offset = blk - group_first_block; in ext4_valid_block_bitmap()
348 return blk; in ext4_valid_block_bitmap()
351 blk = ext4_inode_table(sb, desc); in ext4_valid_block_bitmap()
352 offset = blk - group_first_block; in ext4_valid_block_bitmap()
359 return blk; in ext4_valid_block_bitmap()
[all …]
Dresize.c355 ext4_fsblk_t blk) in bclean() argument
360 bh = sb_getblk(sb, blk); in bclean()
713 const ext4_fsblk_t blk = primary->b_blocknr; in verify_reserved_gdb() local
723 grp * EXT4_BLOCKS_PER_GROUP(sb) + blk){ in verify_reserved_gdb()
726 blk, grp, in verify_reserved_gdb()
729 blk); in verify_reserved_gdb()
940 ext4_fsblk_t blk; in reserve_backup_gdb() local
957 blk = EXT4_SB(sb)->s_sbh->b_blocknr + 1 + EXT4_SB(sb)->s_gdb_count; in reserve_backup_gdb()
963 for (res = 0; res < reserved_gdb; res++, blk++) { in reserve_backup_gdb()
964 if (le32_to_cpu(*data) != blk) { in reserve_backup_gdb()
[all …]
Dmigrate.c623 ext4_fsblk_t blk; in ext4_ind_migrate() local
659 blk = len = start = end = 0; in ext4_ind_migrate()
662 blk = ext4_ext_pblock(ex); in ext4_ind_migrate()
674 ei->i_data[i] = cpu_to_le32(blk++); in ext4_ind_migrate()
Dext4.h253 #define EXT4_B2C(sbi, blk) ((blk) >> (sbi)->s_cluster_bits) argument
2716 struct ext4_group_desc *bg, ext4_fsblk_t blk);
2718 struct ext4_group_desc *bg, ext4_fsblk_t blk);
2720 struct ext4_group_desc *bg, ext4_fsblk_t blk);
2769 ext4_fsblk_t blk) in ext4_blocks_count_set() argument
2771 es->s_blocks_count_lo = cpu_to_le32((u32)blk); in ext4_blocks_count_set()
2772 es->s_blocks_count_hi = cpu_to_le32(blk >> 32); in ext4_blocks_count_set()
2776 ext4_fsblk_t blk) in ext4_free_blocks_count_set() argument
2778 es->s_free_blocks_count_lo = cpu_to_le32((u32)blk); in ext4_free_blocks_count_set()
2779 es->s_free_blocks_count_hi = cpu_to_le32(blk >> 32); in ext4_free_blocks_count_set()
[all …]
Dialloc.c119 ext4_fsblk_t blk; in ext4_validate_inode_bitmap() local
129 blk = ext4_inode_bitmap(sb, desc); in ext4_validate_inode_bitmap()
134 "inode_bitmap = %llu", block_group, blk); in ext4_validate_inode_bitmap()
1295 ext4_fsblk_t blk; in ext4_init_inode_table() local
1342 blk = ext4_inode_table(sb, gdp) + used_blks; in ext4_init_inode_table()
1361 ret = sb_issue_zeroout(sb, blk, num, GFP_NOFS); in ext4_init_inode_table()
Dsuper.c227 struct ext4_group_desc *bg, ext4_fsblk_t blk) in ext4_block_bitmap_set() argument
229 bg->bg_block_bitmap_lo = cpu_to_le32((u32)blk); in ext4_block_bitmap_set()
231 bg->bg_block_bitmap_hi = cpu_to_le32(blk >> 32); in ext4_block_bitmap_set()
235 struct ext4_group_desc *bg, ext4_fsblk_t blk) in ext4_inode_bitmap_set() argument
237 bg->bg_inode_bitmap_lo = cpu_to_le32((u32)blk); in ext4_inode_bitmap_set()
239 bg->bg_inode_bitmap_hi = cpu_to_le32(blk >> 32); in ext4_inode_bitmap_set()
243 struct ext4_group_desc *bg, ext4_fsblk_t blk) in ext4_inode_table_set() argument
245 bg->bg_inode_table_lo = cpu_to_le32((u32)blk); in ext4_inode_table_set()
247 bg->bg_inode_table_hi = cpu_to_le32(blk >> 32); in ext4_inode_table_set()
5093 ext4_lblk_t blk = off >> EXT4_BLOCK_SIZE_BITS(sb); in ext4_quota_read() local
[all …]
Dindirect.c546 ext4_fsblk_t blk; in ext4_ind_map_blocks() local
548 blk = le32_to_cpu(*(chain[depth-1].p + count)); in ext4_ind_map_blocks()
550 if (blk == first_block + count) in ext4_ind_map_blocks()
Dextents.c1808 ext4_fsblk_t blk; in ext4_ext_try_to_merge_up() local
1826 blk = ext4_idx_pblock(path[0].p_idx); in ext4_ext_try_to_merge_up()
1839 ext4_free_blocks(handle, inode, NULL, blk, 1, in ext4_ext_try_to_merge_up()
/linux-4.4.14/arch/arm/mach-ixp4xx/
Dixp4xx_npe.c515 } *blk; in npe_load_firmware() local
619 for (i = 0, blk = image->blocks; i < blocks; i++, blk++) { in npe_load_firmware()
620 if (blk->offset > image->size - sizeof(struct dl_codeblock) / 4 in npe_load_firmware()
621 || blk->offset < table_end) { in npe_load_firmware()
623 "firmware block #%i\n", blk->offset, i); in npe_load_firmware()
627 cb = (struct dl_codeblock*)&image->data[blk->offset]; in npe_load_firmware()
628 if (blk->type == FW_BLOCK_TYPE_INSTR) { in npe_load_firmware()
632 } else if (blk->type == FW_BLOCK_TYPE_DATA) { in npe_load_firmware()
638 "type 0x%X\n", i, blk->type); in npe_load_firmware()
641 if (blk->offset + sizeof(*cb) / 4 + cb->size > image->size) { in npe_load_firmware()
[all …]
/linux-4.4.14/drivers/mtd/
Dftl.c729 uint32_t blk; in find_free() local
764 for (blk = 0; blk < part->BlocksPerUnit; blk++) in find_free()
765 if (BLOCK_FREE(le32_to_cpu(part->bam_cache[blk]))) break; in find_free()
766 if (blk == part->BlocksPerUnit) { in find_free()
775 pr_debug("ftl_cs: found free block at %d in %d\n", blk, eun); in find_free()
776 return blk; in find_free()
836 uint32_t bsize, blk, le_virt_addr; in set_bam_entry() local
848 blk = (log_addr % bsize) / SECTOR_SIZE; in set_bam_entry()
849 offset = (part->EUNInfo[eun].Offset + blk * sizeof(uint32_t) + in set_bam_entry()
876 if (le32_to_cpu(part->bam_cache[blk]) != old_addr) { in set_bam_entry()
[all …]
/linux-4.4.14/drivers/crypto/
Dgeode-aes.c171 op->fallback.blk->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in geode_setkey_blk()
172 op->fallback.blk->base.crt_flags |= (tfm->crt_flags & CRYPTO_TFM_REQ_MASK); in geode_setkey_blk()
174 ret = crypto_blkcipher_setkey(op->fallback.blk, key, len); in geode_setkey_blk()
177 tfm->crt_flags |= (op->fallback.blk->base.crt_flags & CRYPTO_TFM_RES_MASK); in geode_setkey_blk()
191 desc->tfm = op->fallback.blk; in fallback_blk_dec()
207 desc->tfm = op->fallback.blk; in fallback_blk_enc()
371 op->fallback.blk = crypto_alloc_blkcipher(name, 0, in fallback_init_blk()
374 if (IS_ERR(op->fallback.blk)) { in fallback_init_blk()
376 return PTR_ERR(op->fallback.blk); in fallback_init_blk()
386 crypto_free_blkcipher(op->fallback.blk); in fallback_exit_blk()
[all …]
Dgeode-aes.h67 struct crypto_blkcipher *blk; member
Dmxs-dcp.c487 struct crypto_ablkcipher *blk; in mxs_dcp_aes_fallback_init() local
489 blk = crypto_alloc_ablkcipher(name, 0, flags); in mxs_dcp_aes_fallback_init()
490 if (IS_ERR(blk)) in mxs_dcp_aes_fallback_init()
491 return PTR_ERR(blk); in mxs_dcp_aes_fallback_init()
493 actx->fallback = blk; in mxs_dcp_aes_fallback_init()
/linux-4.4.14/include/linux/
Dlightnvm.h139 u64 blk : NVM_BLK_BITS; member
290 l.ppa = ((u64)r.g.blk) << dev->ppaf.blk_offset; in generic_to_dev_addr()
308 l.g.blk = (r.ppa >> dev->ppaf.blk_offset) & in dev_to_generic_addr()
335 struct nvm_block *blk) in block_to_ppa() argument
338 struct nvm_lun *lun = blk->lun; in block_to_ppa()
341 ppa.g.blk = blk->id % dev->blks_per_lun; in block_to_ppa()
Df2fs_fs.h30 #define F2FS_BLK_TO_BYTES(blk) ((blk) << F2FS_BLKSIZE_BITS) argument
164 __le32 blk; /* start block address of the extent */ member
/linux-4.4.14/drivers/lguest/
Dinterrupts_and_traps.c200 DECLARE_BITMAP(blk, LGUEST_IRQS); in interrupt_pending()
210 if (copy_from_user(&blk, cpu->lg->lguest_data->blocked_interrupts, in interrupt_pending()
211 sizeof(blk))) in interrupt_pending()
213 bitmap_andnot(blk, cpu->irqs_pending, blk, LGUEST_IRQS); in interrupt_pending()
216 irq = find_first_bit(blk, LGUEST_IRQS); in interrupt_pending()
217 *more = find_next_bit(blk, LGUEST_IRQS, irq+1); in interrupt_pending()
/linux-4.4.14/drivers/hwtracing/intel_th/
Dmsu.c196 unsigned int blk; in msc_win_oldest_block() local
207 for (blk = 0; blk < win->nr_blocks; blk++) { in msc_win_oldest_block()
208 bdesc = win->block[blk].bdesc; in msc_win_oldest_block()
211 return blk; in msc_win_oldest_block()
459 unsigned int blk; in msc_buffer_clear_hw_header() local
463 for (blk = 0; blk < win->nr_blocks; blk++) { in msc_buffer_clear_hw_header()
464 struct msc_block_desc *bdesc = win->block[blk].bdesc; in msc_buffer_clear_hw_header()
785 unsigned int blk; in msc_buffer_relink() local
801 for (blk = 0; blk < win->nr_blocks; blk++) { in msc_buffer_relink()
802 struct msc_block_desc *bdesc = win->block[blk].bdesc; in msc_buffer_relink()
[all …]
/linux-4.4.14/fs/squashfs/
Dnamei.c213 unsigned int blk, off, ino_num; in squashfs_lookup() local
215 blk = le32_to_cpu(dirh.start_block); in squashfs_lookup()
219 ino = SQUASHFS_MKINODE(blk, off); in squashfs_lookup()
223 blk, off, ino_num); in squashfs_lookup()
Dexport.c55 int blk = SQUASHFS_LOOKUP_BLOCK(ino_num - 1); in squashfs_inode_lookup() local
57 u64 start = le64_to_cpu(msblk->inode_lookup_table[blk]); in squashfs_inode_lookup()
/linux-4.4.14/drivers/net/ethernet/qlogic/qed/
Dqed_int.c944 struct qed_igu_block *blk; in qed_int_igu_read_cam() local
964 blk = &p_igu_info->igu_map.igu_blocks[sb_id]; in qed_int_igu_read_cam()
974 blk->status = QED_IGU_STATUS_VALID; in qed_int_igu_read_cam()
975 blk->function_id = GET_FIELD(val, in qed_int_igu_read_cam()
977 blk->is_pf = GET_FIELD(val, IGU_MAPPING_LINE_PF_VALID); in qed_int_igu_read_cam()
978 blk->vector_number = GET_FIELD(val, in qed_int_igu_read_cam()
983 val, blk->function_id, blk->is_pf, in qed_int_igu_read_cam()
984 blk->vector_number); in qed_int_igu_read_cam()
986 if (blk->is_pf) { in qed_int_igu_read_cam()
987 if (blk->function_id == p_hwfn->rel_pf_id) { in qed_int_igu_read_cam()
[all …]
/linux-4.4.14/drivers/md/persistent-data/
Ddm-space-map-common.c280 struct dm_block *blk; in sm_ll_lookup_bitmap() local
288 &dm_sm_bitmap_validator, &blk); in sm_ll_lookup_bitmap()
292 *result = sm_lookup_bitmap(dm_bitmap_data(blk), b); in sm_ll_lookup_bitmap()
294 dm_tm_unlock(ll->tm, blk); in sm_ll_lookup_bitmap()
342 struct dm_block *blk; in sm_ll_find_free_block() local
354 &dm_sm_bitmap_validator, &blk); in sm_ll_find_free_block()
360 r = sm_find_free(dm_bitmap_data(blk), in sm_ll_find_free_block()
368 dm_tm_unlock(ll->tm, blk); in sm_ll_find_free_block()
372 dm_tm_unlock(ll->tm, blk); in sm_ll_find_free_block()
376 dm_tm_unlock(ll->tm, blk); in sm_ll_find_free_block()
Ddm-transaction-manager.c330 struct dm_block **blk) in dm_tm_read_lock() argument
333 int r = dm_bm_read_try_lock(tm->real->bm, b, v, blk); in dm_tm_read_lock()
341 return dm_bm_read_lock(tm->bm, b, v, blk); in dm_tm_read_lock()
/linux-4.4.14/arch/mips/alchemy/common/
Dvss.c17 #define VSS_ADDR(blk) (KSEG1ADDR(AU1300_VSS_PHYS_ADDR) + (blk * 0x0c)) argument
/linux-4.4.14/drivers/base/regmap/
Dregcache-rbtree.c287 u8 *blk; in regcache_rbtree_insert_to_block() local
293 blk = krealloc(rbnode->block, in regcache_rbtree_insert_to_block()
296 if (!blk) in regcache_rbtree_insert_to_block()
304 kfree(blk); in regcache_rbtree_insert_to_block()
317 memmove(blk + offset * map->cache_word_size, in regcache_rbtree_insert_to_block()
318 blk, rbnode->blklen * map->cache_word_size); in regcache_rbtree_insert_to_block()
323 rbnode->block = blk; in regcache_rbtree_insert_to_block()
/linux-4.4.14/arch/s390/crypto/
Daes_s390.c46 struct crypto_blkcipher *blk; member
239 sctx->fallback.blk->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in setkey_fallback_blk()
240 sctx->fallback.blk->base.crt_flags |= (tfm->crt_flags & in setkey_fallback_blk()
243 ret = crypto_blkcipher_setkey(sctx->fallback.blk, key, len); in setkey_fallback_blk()
246 tfm->crt_flags |= (sctx->fallback.blk->base.crt_flags & in setkey_fallback_blk()
261 desc->tfm = sctx->fallback.blk; in fallback_blk_dec()
278 desc->tfm = sctx->fallback.blk; in fallback_blk_enc()
372 sctx->fallback.blk = crypto_alloc_blkcipher(name, 0, in fallback_init_blk()
375 if (IS_ERR(sctx->fallback.blk)) { in fallback_init_blk()
378 return PTR_ERR(sctx->fallback.blk); in fallback_init_blk()
[all …]
/linux-4.4.14/tools/perf/util/intel-pt-decoder/
Dintel-pt-decoder.c49 struct intel_pt_blk *blk; member
243 struct intel_pt_blk *blk = stack->blk; in intel_pt_pop_blk() local
245 stack->blk = blk->prev; in intel_pt_pop_blk()
247 stack->spare = blk; in intel_pt_pop_blk()
249 free(blk); in intel_pt_pop_blk()
255 if (!stack->blk) in intel_pt_pop()
258 if (!stack->blk) in intel_pt_pop()
262 return stack->blk->ip[--stack->pos]; in intel_pt_pop()
267 struct intel_pt_blk *blk; in intel_pt_alloc_blk() local
270 blk = stack->spare; in intel_pt_alloc_blk()
[all …]
/linux-4.4.14/drivers/media/platform/omap3isp/
Disph3a_aewb.c34 u32 blk; in h3a_aewb_setup_regs() local
58 blk = conf->blk_ver_win_start << ISPH3A_AEWINBLK_WINSV_SHIFT; in h3a_aewb_setup_regs()
59 blk |= ((conf->blk_win_height >> 1) - 1) << ISPH3A_AEWINBLK_WINH_SHIFT; in h3a_aewb_setup_regs()
69 isp_reg_writel(aewb->isp, blk, OMAP3_ISP_IOMEM_H3A, ISPH3A_AEWINBLK); in h3a_aewb_setup_regs()
/linux-4.4.14/fs/ufs/
Dutil.h342 u64 blk) in ubh_get_data_ptr() argument
345 return ubh_get_addr64(ubh, blk); in ubh_get_data_ptr()
347 return ubh_get_addr32(ubh, blk); in ubh_get_data_ptr()
553 unsigned blk) in ufs_get_direct_data_ptr() argument
555 BUG_ON(blk > UFS_TIND_BLOCK); in ufs_get_direct_data_ptr()
557 (void *)&ufsi->i_u1.u2_i_data[blk] : in ufs_get_direct_data_ptr()
558 (void *)&ufsi->i_u1.i_data[blk]; in ufs_get_direct_data_ptr()
Dufs_fs.h256 #define ufs_lblktosize(blk) ((blk) << uspi->s_bshift) argument
/linux-4.4.14/drivers/staging/lustre/lnet/selftest/
Dbrw_test.c363 srpc_bulk_t *blk = rpc->srpc_bulk; in brw_server_rpc_done() local
365 if (blk == NULL) in brw_server_rpc_done()
370 blk->bk_sink ? "from" : "to", in brw_server_rpc_done()
374 blk->bk_niov, blk->bk_sink ? "from" : "to", in brw_server_rpc_done()
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-block-dm45 Description: Request-based Device-mapper blk-mq I/O path mode.
46 Contains the value 1 if the device is using blk-mq.
/linux-4.4.14/drivers/usb/storage/
Dene_ub6250.c1206 u16 blk, index = 0; in ms_lib_check_disableblock() local
1218 blk = be16_to_cpu(PageBuf[index]); in ms_lib_check_disableblock()
1219 if (blk == MS_LB_NOT_USED) in ms_lib_check_disableblock()
1221 if (blk == info->MS_Lib.Log2PhyMap[0]) { in ms_lib_check_disableblock()
1376 u16 blk; in ms_libsearch_block_from_physical() local
1384 for (blk = phyblk + 1; blk != phyblk; blk++) { in ms_libsearch_block_from_physical()
1385 if ((blk & MS_PHYSICAL_BLOCKS_PER_SEGMENT_MASK) == 0) in ms_libsearch_block_from_physical()
1386 blk -= MS_PHYSICAL_BLOCKS_PER_SEGMENT; in ms_libsearch_block_from_physical()
1388 Newblk = info->MS_Lib.Phy2LogMap[blk]; in ms_libsearch_block_from_physical()
1389 if (info->MS_Lib.Phy2LogMap[blk] == MS_LB_NOT_USED_ERASED) { in ms_libsearch_block_from_physical()
[all …]
/linux-4.4.14/drivers/media/platform/s5p-tv/
Dmixer_video.c264 unsigned long mxr_get_plane_size(const struct mxr_block *blk, in mxr_get_plane_size() argument
267 unsigned int bl_width = divup(width, blk->width); in mxr_get_plane_size()
268 unsigned int bl_height = divup(height, blk->height); in mxr_get_plane_size()
270 return bl_width * bl_height * blk->size; in mxr_get_plane_size()
286 const struct mxr_block *blk = &fmt->plane[i]; in mxr_mplane_fill() local
287 u32 bl_width = divup(width, blk->width); in mxr_mplane_fill()
288 u32 bl_height = divup(height, blk->height); in mxr_mplane_fill()
289 u32 sizeimage = bl_width * bl_height * blk->size; in mxr_mplane_fill()
290 u32 bytesperline = bl_width * blk->size / blk->height; in mxr_mplane_fill()
Dmixer.h311 unsigned long mxr_get_plane_size(const struct mxr_block *blk,
/linux-4.4.14/drivers/scsi/megaraid/
Dmegaraid_sas_fp.c334 u64 blk, debugBlk; in MR_GetSpanBlock() local
335 blk = mega_div64_32((row-le64_to_cpu(quad->logStart)), le32_to_cpu(quad->diff)); in MR_GetSpanBlock()
336 debugBlk = blk; in MR_GetSpanBlock()
338 blk = (blk + le64_to_cpu(quad->offsetInSpan)) << raid->stripeShift; in MR_GetSpanBlock()
339 *span_blk = blk; in MR_GetSpanBlock()
483 u64 blk; in mr_spanset_get_span_block() local
484 blk = mega_div64_32 in mr_spanset_get_span_block()
487 blk = (blk + le64_to_cpu(quad->offsetInSpan)) in mr_spanset_get_span_block()
489 *span_blk = blk; in mr_spanset_get_span_block()
/linux-4.4.14/drivers/block/
Dida_ioctl.h55 __u32 blk; member
Dcpqarray.c158 unsigned int blk,
929 c->req.hdr.blk = blk_rq_pos(creq); in do_ida_request()
1019 cmd->req.hdr.blk, cmd->req.hdr.blk_cnt, in complete_command()
1250 c->req.hdr.blk = io->blk; in ida_ctlr_ioctl()
1263 c->req.hdr.blk = pci_map_single(h->pci_dev, &(io->c), in ida_ctlr_ioctl()
1327 pci_unmap_single(h->pci_dev, c->req.hdr.blk, in ida_ctlr_ioctl()
1412 unsigned int blk, in sendcmd() argument
1443 c->req.hdr.blk = blk; in sendcmd()
Dida_cmd.h64 __u32 blk; member
/linux-4.4.14/drivers/nvdimm/
DMakefile11 nd_blk-y := blk.o
/linux-4.4.14/fs/jfs/
Dsuper.c742 sector_t blk = off >> sb->s_blocksize_bits; in jfs_quota_read() local
762 err = jfs_get_block(inode, blk, &tmp_bh, 0); in jfs_quota_read()
777 blk++; in jfs_quota_read()
787 sector_t blk = off >> sb->s_blocksize_bits; in jfs_quota_write() local
802 err = jfs_get_block(inode, blk, &tmp_bh, 1); in jfs_quota_write()
823 blk++; in jfs_quota_write()
/linux-4.4.14/fs/xfs/
Dxfs_log_recover.c1836 void *blk = bp->b_addr; in xlog_recover_get_buf_lsn() local
1844 magic32 = be32_to_cpu(*(__be32 *)blk); in xlog_recover_get_buf_lsn()
1852 struct xfs_btree_block *btb = blk; in xlog_recover_get_buf_lsn()
1860 struct xfs_btree_block *btb = blk; in xlog_recover_get_buf_lsn()
1867 lsn = be64_to_cpu(((struct xfs_agf *)blk)->agf_lsn); in xlog_recover_get_buf_lsn()
1868 uuid = &((struct xfs_agf *)blk)->agf_uuid; in xlog_recover_get_buf_lsn()
1871 lsn = be64_to_cpu(((struct xfs_agfl *)blk)->agfl_lsn); in xlog_recover_get_buf_lsn()
1872 uuid = &((struct xfs_agfl *)blk)->agfl_uuid; in xlog_recover_get_buf_lsn()
1875 lsn = be64_to_cpu(((struct xfs_agi *)blk)->agi_lsn); in xlog_recover_get_buf_lsn()
1876 uuid = &((struct xfs_agi *)blk)->agi_uuid; in xlog_recover_get_buf_lsn()
[all …]
/linux-4.4.14/fs/f2fs/
Df2fs.h345 u32 blk; /* start block address of the extent */ member
454 ext->blk = le32_to_cpu(i_ext.blk); in get_extent_info()
462 i_ext->blk = cpu_to_le32(ext->blk); in set_raw_extent()
467 u32 blk, unsigned int len) in set_extent_info() argument
470 ei->blk = blk; in set_extent_info()
477 return (ei1->fofs == ei2->fofs && ei1->blk == ei2->blk && in __is_extent_same()
485 back->blk + back->len == front->blk); in __is_extent_mergeable()
Dextent_cache.c191 le32_to_cpu(i_ext->blk), le32_to_cpu(i_ext->len)); in f2fs_init_extent_tree()
348 next_ex->ei.blk = ei->blk; in __try_merge_extent_node()
455 end - dei.fofs + dei.blk, in f2fs_update_extent_tree_range()
462 en->ei.blk += end - dei.fofs; in f2fs_update_extent_tree_range()
Ddata.c271 dn->data_blkaddr = ei.blk + index - ei.fofs; in f2fs_get_block()
301 dn.data_blkaddr = ei.blk + index - ei.fofs; in get_read_data_page()
588 map->m_pblk = ei.blk + pgofs - ei.fofs; in f2fs_map_blocks()
754 static inline loff_t blk_to_logical(struct inode *inode, sector_t blk) in blk_to_logical() argument
756 return (blk << inode->i_blkbits); in blk_to_logical()
/linux-4.4.14/drivers/accessibility/braille/
Dbraille_console.c156 static int keyboard_notifier_call(struct notifier_block *blk, in keyboard_notifier_call() argument
275 static int vt_notifier_call(struct notifier_block *blk, in vt_notifier_call() argument
/linux-4.4.14/include/trace/events/
Df2fs.h1167 __field(u32, blk)
1176 __entry->blk = ei->blk;
1185 __entry->blk,
1200 __field(u32, blk)
1208 __entry->blk = blkaddr;
1216 __entry->blk,
Dext4.h587 TP_PROTO(struct super_block *sb, unsigned long long blk,
590 TP_ARGS(sb, blk, count),
594 __field( __u64, blk )
601 __entry->blk = blk;
607 __entry->blk, __entry->count)
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb/
Dvsc7326_reg.h13 #define CRA(blk,sub,adr) ((((blk) & 0x7) << 13) | (((sub) & 0xf) << 9) | (((adr) & 0xff) << 1)) argument
/linux-4.4.14/drivers/media/platform/ti-vpe/
Dvpdma.c481 struct vpdma_buf *blk, u32 dest_offset) in vpdma_add_cfd_block() argument
484 int len = blk->size; in vpdma_add_cfd_block()
486 WARN_ON(blk->dma_addr & VPDMA_DESC_ALIGN); in vpdma_add_cfd_block()
493 cfd->payload_addr = (u32) blk->dma_addr; in vpdma_add_cfd_block()
Dvpdma.h184 struct vpdma_buf *blk, u32 dest_offset);
/linux-4.4.14/fs/ubifs/
Djournal.c1155 unsigned int blk; in ubifs_jnl_truncate() local
1180 blk = new_size >> UBIFS_BLOCK_SHIFT; in ubifs_jnl_truncate()
1181 data_key_init(c, &key, inum, blk); in ubifs_jnl_truncate()
1244 blk = (new_size >> UBIFS_BLOCK_SHIFT) + (bit ? 1 : 0); in ubifs_jnl_truncate()
1245 data_key_init(c, &key, inum, blk); in ubifs_jnl_truncate()
1248 blk = (old_size >> UBIFS_BLOCK_SHIFT) - (bit ? 0 : 1); in ubifs_jnl_truncate()
1249 data_key_init(c, &to_key, inum, blk); in ubifs_jnl_truncate()
/linux-4.4.14/tools/testing/nvdimm/
DKbuild33 nd_blk-y := $(NVDIMM_SRC)/blk.o
/linux-4.4.14/fs/ocfs2/
Dquota_global.c172 sector_t blk = off >> sb->s_blocksize_bits; in ocfs2_quota_read() local
186 err = ocfs2_extent_map_get_blocks(gqinode, blk, &pblock, in ocfs2_quota_read()
207 blk++; in ocfs2_quota_read()
221 sector_t blk = off >> sb->s_blocksize_bits; in ocfs2_quota_write() local
250 err = ocfs2_extent_map_get_blocks(gqinode, blk, &pblock, &pcount, NULL); in ocfs2_quota_write()
Ddir.c1830 unsigned long offset, blk, last_ra_blk = 0; in ocfs2_dir_foreach_blk_el() local
1843 blk = ctx->pos >> sb->s_blocksize_bits; in ocfs2_dir_foreach_blk_el()
1844 if (ocfs2_read_dir_block(inode, blk, &bh, 0)) { in ocfs2_dir_foreach_blk_el()
1856 || (((last_ra_blk - blk) << 9) <= (ra_sectors / 2))) { in ocfs2_dir_foreach_blk_el()
1860 if (!ocfs2_read_dir_block(inode, ++blk, &tmp, in ocfs2_dir_foreach_blk_el()
1864 last_ra_blk = blk; in ocfs2_dir_foreach_blk_el()
4350 u64 blk; in ocfs2_dx_dir_remove_index() local
4395 blk = le64_to_cpu(dx_root->dr_blkno); in ocfs2_dx_dir_remove_index()
4400 bg_blkno = ocfs2_which_suballoc_group(blk, bit); in ocfs2_dx_dir_remove_index()
Docfs2_trace.h692 TP_PROTO(struct super_block *sb, unsigned long long blk,
694 TP_ARGS(sb, blk, count),
698 __field(unsigned long long, blk)
704 __entry->blk = blk;
709 __entry->blk, __entry->count)
Dxattr.c2475 u64 blk, bg_blkno; in ocfs2_xattr_free_block() local
2491 blk = le64_to_cpu(xb->xb_blkno); in ocfs2_xattr_free_block()
2496 bg_blkno = ocfs2_which_suballoc_group(blk, bit); in ocfs2_xattr_free_block()
4613 u64 blk, in ocfs2_divide_xattr_bucket() argument
4625 trace_ocfs2_divide_xattr_bucket_begin((unsigned long long)blk, in ocfs2_divide_xattr_bucket()
4636 ret = ocfs2_read_xattr_bucket(s_bucket, blk); in ocfs2_divide_xattr_bucket()
Drefcounttree.c775 u64 blk = 0, bg_blkno = 0, ref_blkno = le64_to_cpu(di->i_refcount_loc); in ocfs2_remove_refcount_tree() local
795 blk = le64_to_cpu(rb->rf_blkno); in ocfs2_remove_refcount_tree()
800 bg_blkno = ocfs2_which_suballoc_group(blk, bit); in ocfs2_remove_refcount_tree()
Dsuballoc.c2520 u64 blk = le64_to_cpu(di->i_blkno); in ocfs2_free_dinode() local
2522 u64 bg_blkno = ocfs2_which_suballoc_group(blk, bit); in ocfs2_free_dinode()
/linux-4.4.14/drivers/usb/wusbcore/
Ddevconnect.c141 cack_ie->blk[cnt].CDID = dev_itr->cdid; in wusbhc_fill_cack_ie()
142 cack_ie->blk[cnt].bDeviceAddress = dev_itr->addr; in wusbhc_fill_cack_ie()
147 + cnt * sizeof(cack_ie->blk[0]); in wusbhc_fill_cack_ie()
/linux-4.4.14/fs/ext2/
Dsuper.c1452 sector_t blk = off >> EXT2_BLOCK_SIZE_BITS(sb); in ext2_quota_read() local
1472 err = ext2_get_block(inode, blk, &tmp_bh, 0); in ext2_quota_read()
1487 blk++; in ext2_quota_read()
1497 sector_t blk = off >> EXT2_BLOCK_SIZE_BITS(sb); in ext2_quota_write() local
1511 err = ext2_get_block(inode, blk, &tmp_bh, 1); in ext2_quota_write()
1532 blk++; in ext2_quota_write()
Dinode.c650 ext2_fsblk_t blk; in ext2_get_blocks() local
663 blk = le32_to_cpu(*(chain[depth-1].p + count)); in ext2_get_blocks()
664 if (blk == first_block + count) in ext2_get_blocks()
/linux-4.4.14/scripts/
Dcheckpatch.pl1055 my $blk = '';
1082 $blk .= $lines[$line] . "\n";
1083 $len = length($blk);
1092 if ($level == 0 && substr($blk, $off) =~ /^.\s*#\s*define/) {
1098 $c = substr($blk, $off, 1);
1099 $remainder = substr($blk, $off);
1152 if (substr($blk, $off + 1, 1) eq ';') {
1174 my $statement = substr($blk, $soff, $off - $soff + 1);
1175 my $condition = substr($blk, $soff, $coff - $soff + 1);
1262 my $blk = '';
[all …]
/linux-4.4.14/fs/
Dioctl.c225 static inline loff_t blk_to_logical(struct inode *inode, sector_t blk) in blk_to_logical() argument
227 return (blk << inode->i_blkbits); in blk_to_logical()
/linux-4.4.14/Documentation/block/
Dnull_blk.txt75 Register device with LightNVM. Requires blk-mq to be used.
/linux-4.4.14/include/linux/usb/
Dwusb.h111 } blk[WUIE_ELT_MAX]; member
/linux-4.4.14/fs/reiserfs/
Dsuper.c2407 unsigned long blk = off >> sb->s_blocksize_bits; in reiserfs_quota_read() local
2428 err = reiserfs_get_block(inode, blk, &tmp_bh, 0); in reiserfs_quota_read()
2444 blk++; in reiserfs_quota_read()
2457 unsigned long blk = off >> sb->s_blocksize_bits; in reiserfs_quota_write() local
2473 err = reiserfs_get_block(inode, blk, &tmp_bh, GET_BLOCK_CREATE); in reiserfs_quota_write()
2500 blk++; in reiserfs_quota_write()
/linux-4.4.14/drivers/cdrom/
Dcdrom.c3063 struct cdrom_blk blk; in mmc_ioctl_cdrom_play_blk() local
3065 if (copy_from_user(&blk, (struct cdrom_blk __user *)arg, sizeof(blk))) in mmc_ioctl_cdrom_play_blk()
3068 cgc->cmd[2] = (blk.from >> 24) & 0xff; in mmc_ioctl_cdrom_play_blk()
3069 cgc->cmd[3] = (blk.from >> 16) & 0xff; in mmc_ioctl_cdrom_play_blk()
3070 cgc->cmd[4] = (blk.from >> 8) & 0xff; in mmc_ioctl_cdrom_play_blk()
3071 cgc->cmd[5] = blk.from & 0xff; in mmc_ioctl_cdrom_play_blk()
3072 cgc->cmd[7] = (blk.len >> 8) & 0xff; in mmc_ioctl_cdrom_play_blk()
3073 cgc->cmd[8] = blk.len & 0xff; in mmc_ioctl_cdrom_play_blk()
/linux-4.4.14/drivers/nvme/host/
Dlightnvm.c214 __u8 blk[0]; member
407 ret = update_bbtbl(ppa, nr_blocks, bb_tbl->blk, priv); in nvme_nvm_get_bb_tbl()
/linux-4.4.14/drivers/gpu/drm/i2c/
Dtda998x_drv.c1092 static int read_edid_block(void *data, u8 *buf, unsigned int blk, size_t length) in read_edid_block() argument
1098 offset = (blk & 1) ? 128 : 0; in read_edid_block()
1099 segptr = blk / 2; in read_edid_block()
1141 blk, ret); in read_edid_block()
/linux-4.4.14/drivers/mtd/onenand/
Donenand_base.c275 unsigned boundary, blk, die = 0; in flexonenand_block() local
284 blk = addr >> (this->erase_shift - 1); in flexonenand_block()
285 if (blk > boundary) in flexonenand_block()
286 blk = (blk + boundary + 1) >> 1; in flexonenand_block()
288 blk += die ? this->density_mask : 0; in flexonenand_block()
289 return blk; in flexonenand_block()
/linux-4.4.14/Documentation/scsi/
Dscsi_eh.txt70 scmd is requeued to blk queue.
140 scmd to be issued from blk queue to the host; eventually, all scmds on
188 anyway after it reaches blk queue.)
/linux-4.4.14/drivers/scsi/
Dst.c3164 unsigned int blk; in set_location() local
3184 if (get_location(STp, &blk, &p, 1)) in set_location()
3188 STps->last_block_visited = blk; in set_location()
3191 blk, STp->partition); in set_location()
3407 unsigned int blk; in st_ioctl() local
3714 if ((i = get_location(STp, &blk, &bt, 0)) < 0) { in st_ioctl()
3718 mt_pos.mt_blkno = blk; in st_ioctl()
Dosst.c4941 int i, cmd_nr, cmd_type, blk, retval = 0; in osst_ioctl() local
5248 blk = osst_get_frame_position(STp, &SRpnt); in osst_ioctl()
5250 blk = osst_get_sector(STp, &SRpnt); in osst_ioctl()
5251 if (blk < 0) { in osst_ioctl()
5252 retval = blk; in osst_ioctl()
5255 mt_pos.mt_blkno = blk; in osst_ioctl()
DKconfig49 bool "SCSI: use blk-mq I/O path by default"
52 This option enables the new blk-mq based I/O path for SCSI
/linux-4.4.14/Documentation/ioctl/
Dcdrom.txt553 struct cdrom_blk blk;
554 ioctl(fd, CDROMPLAYBLK, &blk);
/linux-4.4.14/drivers/md/
DKconfig217 bool "request-based DM: use blk-mq I/O path by default"
220 This option enables the blk-mq based I/O path for request-based
/linux-4.4.14/drivers/net/ethernet/neterion/
Ds2io.c2665 static void free_rxd_blk(struct s2io_nic *sp, int ring_no, int blk) in free_rxd_blk() argument
2679 rx_blocks[blk].rxds[j].virt_addr; in free_rxd_blk()
2726 int i, blk = 0, buf_cnt = 0; in free_rx_buffers() local
2733 for (blk = 0; blk < rx_ring_sz[i]; blk++) in free_rx_buffers()
2734 free_rxd_blk(sp, i, blk); in free_rx_buffers()
/linux-4.4.14/drivers/net/ethernet/broadcom/
Dcnic.c1660 int blk = (cid - ethdev->starting_cid) / cp->cids_per_blk; in cnic_get_bnx2x_ctx() local
1669 if (cp->ctx_arr[blk].mapping & mask) in cnic_get_bnx2x_ctx()
1671 (cp->ctx_arr[blk].mapping & mask); in cnic_get_bnx2x_ctx()
1673 ctx_map = cp->ctx_arr[blk].mapping + align_off + in cnic_get_bnx2x_ctx()
1675 ctx = cp->ctx_arr[blk].ctx + align_off + in cnic_get_bnx2x_ctx()
/linux-4.4.14/kernel/trace/
DKconfig395 echo blk > /sys/kernel/debug/tracing/current_tracer
/linux-4.4.14/Documentation/nvdimm/
Dnvdimm.txt698 /* unlike pmem namespaces, blk namespaces have a sector size */
/linux-4.4.14/Documentation/cgroups/
Dunified-hierarchy.txt490 blk-throttle is enabled. The file is of the following format.
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c4571 static void _print_next_block(int idx, const char *blk) in _print_next_block() argument
4573 pr_cont("%s%s", idx ? ", " : "", blk); in _print_next_block()
/linux-4.4.14/
DMAINTAINERS6348 F: drivers/nvdimm/blk.c