/Linux-v4.19/sound/pci/ctxfi/ |
D | cthardware.h | 90 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 …]
|
D | cthw20k2.c | 161 struct src_rsc_ctrl_blk *blk; in src_get_rsc_ctrl_blk() local 164 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in src_get_rsc_ctrl_blk() 165 if (!blk) in src_get_rsc_ctrl_blk() 168 *rblk = blk; in src_get_rsc_ctrl_blk() 173 static int src_put_rsc_ctrl_blk(void *blk) in src_put_rsc_ctrl_blk() argument 175 kfree(blk); in src_put_rsc_ctrl_blk() 180 static int src_set_state(void *blk, unsigned int state) in src_set_state() argument 182 struct src_rsc_ctrl_blk *ctl = blk; in src_set_state() 189 static int src_set_bm(void *blk, unsigned int bm) in src_set_bm() argument 191 struct src_rsc_ctrl_blk *ctl = blk; in src_set_bm() [all …]
|
D | cthw20k1.c | 161 struct src_rsc_ctrl_blk *blk; in src_get_rsc_ctrl_blk() local 164 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in src_get_rsc_ctrl_blk() 165 if (!blk) in src_get_rsc_ctrl_blk() 168 *rblk = blk; in src_get_rsc_ctrl_blk() 173 static int src_put_rsc_ctrl_blk(void *blk) in src_put_rsc_ctrl_blk() argument 175 kfree((struct src_rsc_ctrl_blk *)blk); in src_put_rsc_ctrl_blk() 180 static int src_set_state(void *blk, unsigned int state) in src_set_state() argument 182 struct src_rsc_ctrl_blk *ctl = blk; in src_set_state() 189 static int src_set_bm(void *blk, unsigned int bm) in src_set_bm() argument 191 struct src_rsc_ctrl_blk *ctl = blk; in src_set_bm() [all …]
|
/Linux-v4.19/arch/powerpc/lib/ |
D | rheap.c | 47 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-v4.19/sound/pci/emu10k1/ |
D | memory.c | 84 static int synth_alloc_pages(struct snd_emu10k1 *hw, struct snd_emu10k1_memblk *blk); 85 static int synth_free_pages(struct snd_emu10k1 *hw, struct snd_emu10k1_memblk *blk); 91 static void emu10k1_memblk_init(struct snd_emu10k1_memblk *blk) in emu10k1_memblk_init() argument 93 blk->mapped_page = -1; in emu10k1_memblk_init() 94 INIT_LIST_HEAD(&blk->mapped_link); in emu10k1_memblk_init() 95 INIT_LIST_HEAD(&blk->mapped_order_link); in emu10k1_memblk_init() 96 blk->map_locked = 0; in emu10k1_memblk_init() 98 blk->first_page = get_aligned_page(blk->mem.offset); in emu10k1_memblk_init() 99 blk->last_page = get_aligned_page(blk->mem.offset + blk->mem.size - 1); in emu10k1_memblk_init() 100 blk->pages = blk->last_page - blk->first_page + 1; in emu10k1_memblk_init() [all …]
|
/Linux-v4.19/block/ |
D | Makefile | 6 obj-$(CONFIG_BLOCK) := bio.o elevator.o blk-core.o blk-tag.o blk-sysfs.o \ 7 blk-flush.o blk-settings.o blk-ioc.o blk-map.o \ 8 blk-exec.o blk-merge.o blk-softirq.o blk-timeout.o \ 9 blk-lib.o blk-mq.o blk-mq-tag.o blk-stat.o \ 10 blk-mq-sysfs.o blk-mq-cpumap.o blk-mq-sched.o ioctl.o \ 12 badblocks.o partitions/ blk-rq-qos.o 18 obj-$(CONFIG_BLK_CGROUP) += blk-cgroup.o 19 obj-$(CONFIG_BLK_DEV_THROTTLING) += blk-throttle.o 20 obj-$(CONFIG_BLK_CGROUP_IOLATENCY) += blk-iolatency.o 31 obj-$(CONFIG_BLK_DEV_INTEGRITY) += bio-integrity.o blk-integrity.o t10-pi.o [all …]
|
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_mem_input.h | 129 #define MI_GFX8_TILE_MASK_SH_LIST(mask_sh, blk)\ argument 130 SFB(blk, GRPH_CONTROL, GRPH_NUM_BANKS, mask_sh),\ 131 SFB(blk, GRPH_CONTROL, GRPH_BANK_WIDTH, mask_sh),\ 132 SFB(blk, GRPH_CONTROL, GRPH_BANK_HEIGHT, mask_sh),\ 133 SFB(blk, GRPH_CONTROL, GRPH_MACRO_TILE_ASPECT, mask_sh),\ 134 SFB(blk, GRPH_CONTROL, GRPH_TILE_SPLIT, mask_sh),\ 135 SFB(blk, GRPH_CONTROL, GRPH_MICRO_TILE_MODE, mask_sh),\ 136 SFB(blk, GRPH_CONTROL, GRPH_PIPE_CONFIG, mask_sh),\ 137 SFB(blk, GRPH_CONTROL, GRPH_ARRAY_MODE, mask_sh),\ 138 SFB(blk, GRPH_CONTROL, GRPH_COLOR_EXPANSION_MODE, mask_sh) [all …]
|
D | dce_hwseq.h | 65 #define HWSEQ_PIXEL_RATE_REG_LIST(blk) \ argument 66 SRII(PIXEL_RATE_CNTL, blk, 0), \ 67 SRII(PIXEL_RATE_CNTL, blk, 1), \ 68 SRII(PIXEL_RATE_CNTL, blk, 2), \ 69 SRII(PIXEL_RATE_CNTL, blk, 3), \ 70 SRII(PIXEL_RATE_CNTL, blk, 4), \ 71 SRII(PIXEL_RATE_CNTL, blk, 5) 73 #define HWSEQ_PHYPLL_REG_LIST(blk) \ argument 74 SRII(PHYPLL_PIXEL_RATE_CNTL, blk, 0), \ 75 SRII(PHYPLL_PIXEL_RATE_CNTL, blk, 1), \ [all …]
|
/Linux-v4.19/drivers/i2c/busses/ |
D | i2c-qup.c | 246 struct qup_i2c_block blk; member 288 struct qup_i2c_block *blk = &qup->blk; in qup_i2c_interrupt() local 339 blk->tx_fifo_free += qup->out_blk_sz; in qup_i2c_interrupt() 350 if (!blk->is_rx_blk_mode) { in qup_i2c_interrupt() 351 blk->fifo_available += qup->in_fifo_sz; in qup_i2c_interrupt() 354 blk->fifo_available += qup->in_blk_sz; in qup_i2c_interrupt() 360 if (!blk->rx_bytes_read) in qup_i2c_interrupt() 370 if (blk->is_tx_blk_mode && !(opflags & QUP_MX_OUTPUT_DONE)) in qup_i2c_interrupt() 463 struct qup_i2c_block *blk = &qup->blk; in qup_i2c_write_tx_fifo_v1() local 473 blk->tx_fifo_free--; in qup_i2c_write_tx_fifo_v1() [all …]
|
/Linux-v4.19/sound/synth/ |
D | util_mem.c | 75 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-v4.19/sound/pci/trident/ |
D | trident_memory.c | 133 #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 …]
|
/Linux-v4.19/fs/quota/ |
D | quota_tree.c | 58 static ssize_t read_blk(struct qtree_mem_dqinfo *info, uint blk, char *buf) in read_blk() argument 64 info->dqi_usable_bs, blk << info->dqi_blocksize_bits); in read_blk() 67 static ssize_t write_blk(struct qtree_mem_dqinfo *info, uint blk, char *buf) in write_blk() argument 73 info->dqi_usable_bs, blk << info->dqi_blocksize_bits); in write_blk() 87 int ret, blk; in get_free_dqblk() local 92 blk = info->dqi_free_blk; in get_free_dqblk() 93 ret = read_blk(info, blk, buf); in get_free_dqblk() 104 blk = info->dqi_blocks++; in get_free_dqblk() 107 ret = blk; in get_free_dqblk() 114 static int put_free_dqblk(struct qtree_mem_dqinfo *info, char *buf, uint blk) in put_free_dqblk() argument [all …]
|
/Linux-v4.19/fs/xfs/scrub/ |
D | dabtree.c | 62 ds->state->path.blk[level].blkno), in xchk_da_process_error() 84 ds->state->path.blk[level].blkno), in xchk_da_set_corrupt() 96 struct xfs_da_state_blk *blk; in xchk_da_btree_entry() local 100 blk = &ds->state->path.blk[level]; in xchk_da_btree_entry() 101 baddr = blk->bp->b_addr; in xchk_da_btree_entry() 102 switch (blk->magic) { in xchk_da_btree_entry() 146 blks = ds->state->path.blk; in xchk_da_btree_hash() 282 if (ds->state->altpath.blk[level].bp) in xchk_da_btree_block_check_sibling() 284 ds->state->altpath.blk[level].bp); in xchk_da_btree_block_check_sibling() 287 if (ds->state->altpath.blk[level].blkno != sibling) in xchk_da_btree_block_check_sibling() [all …]
|
/Linux-v4.19/drivers/net/wireless/intersil/orinoco/ |
D | hermes_dld.c | 96 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-v4.19/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_rm.c | 119 struct dpu_rm_hw_blk *blk; in _dpu_rm_print_rsvps() local 130 list_for_each_entry(blk, &rm->hw_blks[type], list) { in _dpu_rm_print_rsvps() 131 if (!blk->rsvp && !blk->rsvp_nxt) in _dpu_rm_print_rsvps() 135 (blk->rsvp) ? blk->rsvp->seq : 0, in _dpu_rm_print_rsvps() 136 (blk->rsvp) ? blk->rsvp->enc_id : 0, in _dpu_rm_print_rsvps() 137 (blk->rsvp_nxt) ? blk->rsvp_nxt->seq : 0, in _dpu_rm_print_rsvps() 138 (blk->rsvp_nxt) ? blk->rsvp_nxt->enc_id : 0, in _dpu_rm_print_rsvps() 139 blk->type, blk->id); in _dpu_rm_print_rsvps() 183 if (i->blk && (&i->blk->list == blk_list)) { in _dpu_rm_get_hw_locked() 188 i->blk = list_prepare_entry(i->blk, blk_list, list); in _dpu_rm_get_hw_locked() [all …]
|
/Linux-v4.19/fs/xfs/libxfs/ |
D | xfs_attr.c | 797 struct xfs_da_state_blk *blk; in xfs_attr_node_addname() local 821 blk = &state->path.blk[ state->path.active-1 ]; in xfs_attr_node_addname() 822 ASSERT(blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_attr_node_addname() 849 retval = xfs_attr3_leaf_add(blk->bp, state->args); in xfs_attr_node_addname() 970 blk = &state->path.blk[ state->path.active-1 ]; in xfs_attr_node_addname() 971 ASSERT(blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_attr_node_addname() 972 error = xfs_attr3_leaf_remove(blk->bp, args); in xfs_attr_node_addname() 1024 struct xfs_da_state_blk *blk; in xfs_attr_node_removename() local 1054 blk = &state->path.blk[ state->path.active-1 ]; in xfs_attr_node_removename() 1055 ASSERT(blk->bp != NULL); in xfs_attr_node_removename() [all …]
|
D | xfs_da_btree.c | 102 state->altpath.blk[i].bp = NULL; in xfs_da_state_kill_altpath() 388 ASSERT(state->path.blk[max].magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_split() 389 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split() 391 addblk = &state->path.blk[max]; /* initial dummy value */ in xfs_da3_split() 393 oldblk = &state->path.blk[i]; in xfs_da3_split() 394 newblk = &state->altpath.blk[i]; in xfs_da3_split() 469 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split() 475 oldblk = &state->path.blk[0]; in xfs_da3_split() 959 drop_blk = &state->path.blk[ state->path.active-1 ]; in xfs_da3_join() 960 save_blk = &state->altpath.blk[ state->path.active-1 ]; in xfs_da3_join() [all …]
|
/Linux-v4.19/block/partitions/ |
D | amiga.c | 35 int start_sect, nr_sects, blk, part, res = 0; in amiga_partition() local 40 for (blk = 0; ; blk++, put_dev_sector(sect)) { in amiga_partition() 41 if (blk == RDB_ALLOCATION_LIMIT) in amiga_partition() 43 data = read_part_sector(state, blk, §); in amiga_partition() 47 bdevname(state->bdev, b), blk); in amiga_partition() 64 blk); in amiga_partition() 69 bdevname(state->bdev, b), blk); in amiga_partition() 82 blk = be32_to_cpu(rdb->rdb_PartitionList); in amiga_partition() 84 for (part = 1; blk>0 && part<=16; part++, put_dev_sector(sect)) { in amiga_partition() 85 blk *= blksize; /* Read in terms partition table understands */ in amiga_partition() [all …]
|
/Linux-v4.19/fs/affs/ |
D | bitmap.c | 44 u32 blk, bmap, bit, mask, tmp; in affs_free_block() local 52 blk = block - sbi->s_reserved; in affs_free_block() 53 bmap = blk / sbi->s_bmap_bits; in affs_free_block() 54 bit = blk % sbi->s_bmap_bits; in affs_free_block() 122 u32 blk, bmap, bit, mask, mask2, tmp; in affs_alloc_block() local 144 blk = goal - sbi->s_reserved; in affs_alloc_block() 145 bmap = blk / sbi->s_bmap_bits; in affs_alloc_block() 167 blk = bmap * sbi->s_bmap_bits; in affs_alloc_block() 182 bit = blk % sbi->s_bmap_bits; in affs_alloc_block() 186 blk &= ~31UL; in affs_alloc_block() [all …]
|
/Linux-v4.19/arch/x86/mm/ |
D | numa.c | 149 mi->blk[mi->nr_blks].start = start; in numa_add_memblk_to() 150 mi->blk[mi->nr_blks].end = end; in numa_add_memblk_to() 151 mi->blk[mi->nr_blks].nid = nid; in numa_add_memblk_to() 167 memmove(&mi->blk[idx], &mi->blk[idx + 1], in numa_remove_memblk_from() 168 (mi->nr_blks - idx) * sizeof(mi->blk[0])); in numa_remove_memblk_from() 242 struct numa_memblk *bi = &mi->blk[i]; in numa_cleanup_meminfo() 257 struct numa_memblk *bi = &mi->blk[i]; in numa_cleanup_meminfo() 260 struct numa_memblk *bj = &mi->blk[j]; in numa_cleanup_meminfo() 290 struct numa_memblk *bk = &mi->blk[k]; in numa_cleanup_meminfo() 309 for (i = mi->nr_blks; i < ARRAY_SIZE(mi->blk); i++) { in numa_cleanup_meminfo() [all …]
|
D | numa_emulation.c | 27 if (mi->blk[i].nid == nid) in emu_find_memblk_by_nid() 50 struct numa_memblk *eb = &ei->blk[ei->nr_blks]; in emu_setup_memblk() 51 struct numa_memblk *pb = &pi->blk[phys_blk]; in emu_setup_memblk() 137 start = pi->blk[phys_blk].start; in split_nodes_interleave() 138 limit = pi->blk[phys_blk].end; in split_nodes_interleave() 285 start = pi->blk[phys_blk].start; in split_nodes_size_interleave_uniform() 286 limit = pi->blk[phys_blk].end; in split_nodes_size_interleave_uniform() 404 pi.blk[i].start, pi.blk[i].end, 0, in numa_emulation() 405 n, &pi.blk[i], nid); in numa_emulation() 468 for (i = 0; i < ARRAY_SIZE(ei.blk); i++) in numa_emulation() [all …]
|
/Linux-v4.19/arch/powerpc/platforms/4xx/ |
D | ocm.c | 87 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-v4.19/fs/gfs2/ |
D | recovery.h | 17 static inline void gfs2_replay_incr_blk(struct gfs2_jdesc *jd, unsigned int *blk) in gfs2_replay_incr_blk() argument 19 if (++*blk == jd->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,
|
D | recovery.c | 35 int gfs2_replay_read_block(struct gfs2_jdesc *jd, unsigned int blk, in gfs2_replay_read_block() argument 45 error = gfs2_extent_map(&ip->i_inode, blk, &new, &dblock, &extlen); in gfs2_replay_read_block() 137 static int get_log_header(struct gfs2_jdesc *jd, unsigned int blk, in get_log_header() argument 145 error = gfs2_replay_read_block(jd, blk, &bh); in get_log_header() 158 be32_to_cpu(lh->lh_blkno) != blk || in get_log_header() 186 static int find_good_lh(struct gfs2_jdesc *jd, unsigned int *blk, in find_good_lh() argument 189 unsigned int orig_blk = *blk; in find_good_lh() 193 error = get_log_header(jd, *blk, head); in find_good_lh() 197 if (++*blk == jd->jd_blocks) in find_good_lh() 198 *blk = 0; in find_good_lh() [all …]
|
/Linux-v4.19/include/sound/ |
D | util_mem.h | 34 #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);
|