Home
last modified time | relevance | path

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

12345

/linux-3.4.99/sound/pci/ctxfi/
Dcthardware.h89 int (*src_rsc_put_ctrl_blk)(void *blk);
90 int (*src_set_state)(void *blk, unsigned int state);
91 int (*src_set_bm)(void *blk, unsigned int bm);
92 int (*src_set_rsr)(void *blk, unsigned int rsr);
93 int (*src_set_sf)(void *blk, unsigned int sf);
94 int (*src_set_wr)(void *blk, unsigned int wr);
95 int (*src_set_pm)(void *blk, unsigned int pm);
96 int (*src_set_rom)(void *blk, unsigned int rom);
97 int (*src_set_vo)(void *blk, unsigned int vo);
98 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-3.4.99/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-3.4.99/sound/pci/emu10k1/
Dmemory.c76 static int synth_alloc_pages(struct snd_emu10k1 *hw, struct snd_emu10k1_memblk *blk);
77 static int synth_free_pages(struct snd_emu10k1 *hw, struct snd_emu10k1_memblk *blk);
83 static void emu10k1_memblk_init(struct snd_emu10k1_memblk *blk) in emu10k1_memblk_init() argument
85 blk->mapped_page = -1; in emu10k1_memblk_init()
86 INIT_LIST_HEAD(&blk->mapped_link); in emu10k1_memblk_init()
87 INIT_LIST_HEAD(&blk->mapped_order_link); in emu10k1_memblk_init()
88 blk->map_locked = 0; in emu10k1_memblk_init()
90 blk->first_page = get_aligned_page(blk->mem.offset); in emu10k1_memblk_init()
91 blk->last_page = get_aligned_page(blk->mem.offset + blk->mem.size - 1); in emu10k1_memblk_init()
92 blk->pages = blk->last_page - blk->first_page + 1; in emu10k1_memblk_init()
[all …]
/linux-3.4.99/block/
DMakefile5 obj-$(CONFIG_BLOCK) := 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 ioctl.o genhd.o scsi_ioctl.o \
13 obj-$(CONFIG_BLK_CGROUP) += blk-cgroup.o
14 obj-$(CONFIG_BLK_DEV_THROTTLING) += blk-throttle.o
20 obj-$(CONFIG_BLK_DEV_INTEGRITY) += blk-integrity.o
/linux-3.4.99/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-3.4.99/fs/quota/
Dquota_tree.c51 static ssize_t read_blk(struct qtree_mem_dqinfo *info, uint blk, char *buf) in read_blk() argument
57 info->dqi_usable_bs, blk << info->dqi_blocksize_bits); in read_blk()
60 static ssize_t write_blk(struct qtree_mem_dqinfo *info, uint blk, char *buf) in write_blk() argument
66 info->dqi_usable_bs, blk << info->dqi_blocksize_bits); in write_blk()
80 int ret, blk; in get_free_dqblk() local
85 blk = info->dqi_free_blk; in get_free_dqblk()
86 ret = read_blk(info, blk, buf); in get_free_dqblk()
97 blk = info->dqi_blocks++; in get_free_dqblk()
100 ret = blk; in get_free_dqblk()
107 static int put_free_dqblk(struct qtree_mem_dqinfo *info, char *buf, uint blk) in put_free_dqblk() argument
[all …]
/linux-3.4.99/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, *prev; in search_empty() local
150 blk = list_entry(p, struct snd_util_memblk, list); in search_empty()
151 if (page + psize <= firstpg(blk)) in search_empty()
153 page = lastpg(blk) + 1; in search_empty()
160 blk = __snd_util_memblk_new(hdr, psize * ALIGN_PAGE_SIZE, p->prev); in search_empty()
161 if (blk == NULL) in search_empty()
163 blk->offset = aligned_page_offset(page); /* set aligned offset */ in search_empty()
164 firstpg(blk) = page; in search_empty()
[all …]
/linux-3.4.99/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-3.4.99/block/partitions/
Damiga.c32 int start_sect, nr_sects, blk, part, res = 0; in amiga_partition() local
37 for (blk = 0; ; blk++, put_dev_sector(sect)) { in amiga_partition()
38 if (blk == RDB_ALLOCATION_LIMIT) in amiga_partition()
40 data = read_part_sector(state, blk, &sect); in amiga_partition()
44 bdevname(state->bdev, b), blk); in amiga_partition()
61 "ignored in checksum calculation\n",blk); in amiga_partition()
66 bdevname(state->bdev, b), blk); in amiga_partition()
79 blk = be32_to_cpu(rdb->rdb_PartitionList); in amiga_partition()
81 for (part = 1; blk>0 && part<=16; part++, put_dev_sector(sect)) { in amiga_partition()
82 blk *= blksize; /* Read in terms partition table understands */ in amiga_partition()
[all …]
Dibm.c196 sector_t blk; in ibm_partition() local
210 blk = cchhb2blk(&label->vol.vtoc, geo) + 1; in ibm_partition()
212 data = read_part_sector(state, blk * (blocksize/512), in ibm_partition()
226 blk++; in ibm_partition()
228 blk * (blocksize/512), &sect); in ibm_partition()
247 blk++; in ibm_partition()
249 blk * (blocksize/512), &sect); in ibm_partition()
/linux-3.4.99/fs/affs/
Dbitmap.c67 u32 blk, bmap, bit, mask, tmp; in affs_free_block() local
75 blk = block - sbi->s_reserved; in affs_free_block()
76 bmap = blk / sbi->s_bmap_bits; in affs_free_block()
77 bit = blk % sbi->s_bmap_bits; in affs_free_block()
146 u32 blk, bmap, bit, mask, mask2, tmp; in affs_alloc_block() local
168 blk = goal - sbi->s_reserved; in affs_alloc_block()
169 bmap = blk / sbi->s_bmap_bits; in affs_alloc_block()
191 blk = bmap * sbi->s_bmap_bits; in affs_alloc_block()
206 bit = blk % sbi->s_bmap_bits; in affs_alloc_block()
210 blk &= ~31UL; in affs_alloc_block()
[all …]
/linux-3.4.99/arch/x86/mm/
Dnuma.c154 mi->blk[mi->nr_blks].start = start; in numa_add_memblk_to()
155 mi->blk[mi->nr_blks].end = end; in numa_add_memblk_to()
156 mi->blk[mi->nr_blks].nid = nid; in numa_add_memblk_to()
172 memmove(&mi->blk[idx], &mi->blk[idx + 1], in numa_remove_memblk_from()
173 (mi->nr_blks - idx) * sizeof(mi->blk[0])); in numa_remove_memblk_from()
258 struct numa_memblk *bi = &mi->blk[i]; in numa_cleanup_meminfo()
271 struct numa_memblk *bi = &mi->blk[i]; in numa_cleanup_meminfo()
274 struct numa_memblk *bj = &mi->blk[j]; in numa_cleanup_meminfo()
304 struct numa_memblk *bk = &mi->blk[k]; in numa_cleanup_meminfo()
323 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()
/linux-3.4.99/fs/xfs/
Dxfs_da_btree.c155 ASSERT(state->path.blk[max].magic == XFS_ATTR_LEAF_MAGIC || in xfs_da_split()
156 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da_split()
158 addblk = &state->path.blk[max]; /* initial dummy value */ in xfs_da_split()
160 oldblk = &state->path.blk[i]; in xfs_da_split()
161 newblk = &state->altpath.blk[i]; in xfs_da_split()
240 oldblk = &state->path.blk[0]; in xfs_da_split()
639 drop_blk = &state->path.blk[ state->path.active-1 ]; in xfs_da_join()
640 save_blk = &state->altpath.blk[ state->path.active-1 ]; in xfs_da_join()
641 ASSERT(state->path.blk[0].magic == XFS_DA_NODE_MAGIC); in xfs_da_join()
707 error = xfs_da_root_join(state, &state->path.blk[0]); in xfs_da_join()
[all …]
Dxfs_attr.c1230 xfs_da_state_blk_t *blk; in xfs_attr_node_addname() local
1256 blk = &state->path.blk[ state->path.active-1 ]; in xfs_attr_node_addname()
1257 ASSERT(blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_attr_node_addname()
1275 retval = xfs_attr_leaf_add(blk->bp, state->args); in xfs_attr_node_addname()
1424 blk = &state->path.blk[ state->path.active-1 ]; in xfs_attr_node_addname()
1425 ASSERT(blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_attr_node_addname()
1426 error = xfs_attr_leaf_remove(blk->bp, args); in xfs_attr_node_addname()
1492 xfs_da_state_blk_t *blk; in xfs_attr_node_removename() local
1524 blk = &state->path.blk[ state->path.active-1 ]; in xfs_attr_node_removename()
1525 ASSERT(blk->bp != NULL); in xfs_attr_node_removename()
[all …]
/linux-3.4.99/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 …]
Drgrp.c330 struct gfs2_rgrpd *gfs2_blk2rgrpd(struct gfs2_sbd *sdp, u64 blk, bool exact) in gfs2_blk2rgrpd() argument
340 if (blk < cur->rd_addr) in gfs2_blk2rgrpd()
342 else if (blk >= cur->rd_data0 + cur->rd_data) in gfs2_blk2rgrpd()
347 if (blk < cur->rd_addr) in gfs2_blk2rgrpd()
349 if (blk >= cur->rd_data0 + cur->rd_data) in gfs2_blk2rgrpd()
829 u64 blk; in gfs2_rgrp_send_discards() local
850 blk = offset + ((bi->bi_start + x) * GFS2_NBBY); in gfs2_rgrp_send_discards()
851 blk *= sects_per_blk; /* convert to sectors */ in gfs2_rgrp_send_discards()
856 if ((start + nr_sects) != blk) { in gfs2_rgrp_send_discards()
867 start = blk; in gfs2_rgrp_send_discards()
[all …]
/linux-3.4.99/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);
/linux-3.4.99/fs/adfs/
Ddir_fplus.c21 unsigned int blk, size; in adfs_fplus_read() local
73 for (blk = 1; blk < size; blk++) { in adfs_fplus_read()
74 block = __adfs_block_map(sb, id, blk); in adfs_fplus_read()
76 adfs_error(sb, "dir object %X has a hole at offset %d", id, blk); in adfs_fplus_read()
80 dir->bh_fplus[blk] = sb_bread(sb, block); in adfs_fplus_read()
81 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-3.4.99/drivers/edac/
Dedac_device.c77 struct edac_device_block *dev_blk, *blk_p, *blk; in edac_device_alloc_ctl_info() local
181 blk = &blk_p[block]; in edac_device_alloc_ctl_info()
182 blk->instance = inst; in edac_device_alloc_ctl_info()
183 snprintf(blk->name, sizeof(blk->name), in edac_device_alloc_ctl_info()
189 blk, blk->name); in edac_device_alloc_ctl_info()
198 blk->nr_attribs = nr_attrib; in edac_device_alloc_ctl_info()
200 blk->block_attributes = attrib_p; in edac_device_alloc_ctl_info()
203 __func__, blk->block_attributes); in edac_device_alloc_ctl_info()
220 attrib->block = blk; /* up link */ in edac_device_alloc_ctl_info()
/linux-3.4.99/arch/arm/mach-ixp4xx/
Dixp4xx_npe.c511 } *blk; in npe_load_firmware() local
615 for (i = 0, blk = image->blocks; i < blocks; i++, blk++) { in npe_load_firmware()
616 if (blk->offset > image->size - sizeof(struct dl_codeblock) / 4 in npe_load_firmware()
617 || blk->offset < table_end) { in npe_load_firmware()
619 "firmware block #%i\n", blk->offset, i); in npe_load_firmware()
623 cb = (struct dl_codeblock*)&image->data[blk->offset]; in npe_load_firmware()
624 if (blk->type == FW_BLOCK_TYPE_INSTR) { in npe_load_firmware()
628 } else if (blk->type == FW_BLOCK_TYPE_DATA) { in npe_load_firmware()
634 "type 0x%X\n", i, blk->type); in npe_load_firmware()
637 if (blk->offset + sizeof(*cb) / 4 + cb->size > image->size) { in npe_load_firmware()
[all …]

12345