/Linux-v5.4/sound/pci/ctxfi/ |
D | cthardware.h | 86 int (*src_rsc_put_ctrl_blk)(void *blk); 87 int (*src_set_state)(void *blk, unsigned int state); 88 int (*src_set_bm)(void *blk, unsigned int bm); 89 int (*src_set_rsr)(void *blk, unsigned int rsr); 90 int (*src_set_sf)(void *blk, unsigned int sf); 91 int (*src_set_wr)(void *blk, unsigned int wr); 92 int (*src_set_pm)(void *blk, unsigned int pm); 93 int (*src_set_rom)(void *blk, unsigned int rom); 94 int (*src_set_vo)(void *blk, unsigned int vo); 95 int (*src_set_st)(void *blk, unsigned int st); [all …]
|
D | cthw20k2.c | 157 struct src_rsc_ctrl_blk *blk; in src_get_rsc_ctrl_blk() local 160 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in src_get_rsc_ctrl_blk() 161 if (!blk) in src_get_rsc_ctrl_blk() 164 *rblk = blk; in src_get_rsc_ctrl_blk() 169 static int src_put_rsc_ctrl_blk(void *blk) in src_put_rsc_ctrl_blk() argument 171 kfree(blk); in src_put_rsc_ctrl_blk() 176 static int src_set_state(void *blk, unsigned int state) in src_set_state() argument 178 struct src_rsc_ctrl_blk *ctl = blk; in src_set_state() 185 static int src_set_bm(void *blk, unsigned int bm) in src_set_bm() argument 187 struct src_rsc_ctrl_blk *ctl = blk; in src_set_bm() [all …]
|
D | cthw20k1.c | 157 struct src_rsc_ctrl_blk *blk; in src_get_rsc_ctrl_blk() local 160 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in src_get_rsc_ctrl_blk() 161 if (!blk) in src_get_rsc_ctrl_blk() 164 *rblk = blk; in src_get_rsc_ctrl_blk() 169 static int src_put_rsc_ctrl_blk(void *blk) in src_put_rsc_ctrl_blk() argument 171 kfree((struct src_rsc_ctrl_blk *)blk); in src_put_rsc_ctrl_blk() 176 static int src_set_state(void *blk, unsigned int state) in src_set_state() argument 178 struct src_rsc_ctrl_blk *ctl = blk; in src_set_state() 185 static int src_set_bm(void *blk, unsigned int bm) in src_set_bm() argument 187 struct src_rsc_ctrl_blk *ctl = blk; in src_set_bm() [all …]
|
/Linux-v5.4/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-v5.4/block/ |
D | Makefile | 6 obj-$(CONFIG_BLOCK) := bio.o elevator.o blk-core.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 21 obj-$(CONFIG_BLK_CGROUP_IOCOST) += blk-iocost.o [all …]
|
/Linux-v5.4/sound/pci/emu10k1/ |
D | memory.c | 69 static int synth_alloc_pages(struct snd_emu10k1 *hw, struct snd_emu10k1_memblk *blk); 70 static int synth_free_pages(struct snd_emu10k1 *hw, struct snd_emu10k1_memblk *blk); 76 static void emu10k1_memblk_init(struct snd_emu10k1_memblk *blk) in emu10k1_memblk_init() argument 78 blk->mapped_page = -1; in emu10k1_memblk_init() 79 INIT_LIST_HEAD(&blk->mapped_link); in emu10k1_memblk_init() 80 INIT_LIST_HEAD(&blk->mapped_order_link); in emu10k1_memblk_init() 81 blk->map_locked = 0; in emu10k1_memblk_init() 83 blk->first_page = get_aligned_page(blk->mem.offset); in emu10k1_memblk_init() 84 blk->last_page = get_aligned_page(blk->mem.offset + blk->mem.size - 1); in emu10k1_memblk_init() 85 blk->pages = blk->last_page - blk->first_page + 1; in emu10k1_memblk_init() [all …]
|
/Linux-v5.4/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 HSWEQ_DCN_PIXEL_RATE_REG_LIST(blk, inst) \ argument 66 SRII(PIXEL_RATE_CNTL, blk, inst), \ 67 SRII(PHYPLL_PIXEL_RATE_CNTL, blk, inst) 69 #define HWSEQ_PIXEL_RATE_REG_LIST(blk) \ argument 70 SRII(PIXEL_RATE_CNTL, blk, 0), \ 71 SRII(PIXEL_RATE_CNTL, blk, 1), \ 72 SRII(PIXEL_RATE_CNTL, blk, 2), \ 73 SRII(PIXEL_RATE_CNTL, blk, 3), \ 74 SRII(PIXEL_RATE_CNTL, blk, 4), \ 75 SRII(PIXEL_RATE_CNTL, blk, 5) [all …]
|
/Linux-v5.4/drivers/net/ethernet/intel/ice/ |
D | ice_flex_pipe.c | 784 ice_ptg_find_ptype(struct ice_hw *hw, enum ice_block blk, u16 ptype, u8 *ptg) in ice_ptg_find_ptype() argument 789 *ptg = hw->blk[blk].xlt1.ptypes[ptype].ptg; in ice_ptg_find_ptype() 802 static void ice_ptg_alloc_val(struct ice_hw *hw, enum ice_block blk, u8 ptg) in ice_ptg_alloc_val() argument 804 hw->blk[blk].xlt1.ptg_tbl[ptg].in_use = true; in ice_ptg_alloc_val() 818 ice_ptg_remove_ptype(struct ice_hw *hw, enum ice_block blk, u16 ptype, u8 ptg) in ice_ptg_remove_ptype() argument 826 if (!hw->blk[blk].xlt1.ptg_tbl[ptg].in_use) in ice_ptg_remove_ptype() 830 if (!hw->blk[blk].xlt1.ptg_tbl[ptg].first_ptype) in ice_ptg_remove_ptype() 834 p = hw->blk[blk].xlt1.ptg_tbl[ptg].first_ptype; in ice_ptg_remove_ptype() 835 ch = &hw->blk[blk].xlt1.ptg_tbl[ptg].first_ptype; in ice_ptg_remove_ptype() 837 if (ptype == (p - hw->blk[blk].xlt1.ptypes)) { in ice_ptg_remove_ptype() [all …]
|
/Linux-v5.4/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-v5.4/sound/synth/ |
D | util_mem.c | 62 struct snd_util_memblk *blk; in __snd_util_mem_alloc() local 79 blk = get_memblk(p); in __snd_util_mem_alloc() 80 if (blk->offset - prev_offset >= units) in __snd_util_mem_alloc() 82 prev_offset = blk->offset + blk->size; in __snd_util_mem_alloc() 100 struct snd_util_memblk *blk; in __snd_util_memblk_new() local 102 blk = kmalloc(sizeof(struct snd_util_memblk) + hdr->block_extra_size, in __snd_util_memblk_new() 104 if (blk == NULL) in __snd_util_memblk_new() 108 blk->offset = 0; in __snd_util_memblk_new() 111 blk->offset = p->offset + p->size; in __snd_util_memblk_new() 113 blk->size = units; in __snd_util_memblk_new() [all …]
|
/Linux-v5.4/fs/xfs/scrub/ |
D | dabtree.c | 54 ds->state->path.blk[level].blkno), in xchk_da_process_error() 76 ds->state->path.blk[level].blkno), in xchk_da_set_corrupt() 88 struct xfs_da_state_blk *blk; in xchk_da_btree_entry() local 92 blk = &ds->state->path.blk[level]; in xchk_da_btree_entry() 93 baddr = blk->bp->b_addr; in xchk_da_btree_entry() 94 switch (blk->magic) { in xchk_da_btree_entry() 138 blks = ds->state->path.blk; in xchk_da_btree_hash() 274 if (ds->state->altpath.blk[level].bp) in xchk_da_btree_block_check_sibling() 276 ds->state->altpath.blk[level].bp); in xchk_da_btree_block_check_sibling() 279 if (ds->state->altpath.blk[level].blkno != sibling) in xchk_da_btree_block_check_sibling() [all …]
|
/Linux-v5.4/sound/pci/trident/ |
D | trident_memory.c | 118 #define firstpg(blk) (((struct snd_trident_memblk_arg *)snd_util_memblk_argptr(blk))->first_page) argument 119 #define lastpg(blk) (((struct snd_trident_memblk_arg *)snd_util_memblk_argptr(blk))->last_page) argument 127 struct snd_util_memblk *blk; in search_empty() local 134 blk = list_entry(p, struct snd_util_memblk, list); in search_empty() 135 if (page + psize <= firstpg(blk)) in search_empty() 137 page = lastpg(blk) + 1; in search_empty() 144 blk = __snd_util_memblk_new(hdr, psize * ALIGN_PAGE_SIZE, p->prev); in search_empty() 145 if (blk == NULL) in search_empty() 147 blk->offset = aligned_page_offset(page); /* set aligned offset */ in search_empty() 148 firstpg(blk) = page; in search_empty() [all …]
|
/Linux-v5.4/fs/quota/ |
D | quota_tree.c | 59 static ssize_t read_blk(struct qtree_mem_dqinfo *info, uint blk, char *buf) in read_blk() argument 65 info->dqi_usable_bs, blk << info->dqi_blocksize_bits); in read_blk() 68 static ssize_t write_blk(struct qtree_mem_dqinfo *info, uint blk, char *buf) in write_blk() argument 74 info->dqi_usable_bs, blk << info->dqi_blocksize_bits); in write_blk() 88 int ret, blk; in get_free_dqblk() local 93 blk = info->dqi_free_blk; in get_free_dqblk() 94 ret = read_blk(info, blk, buf); in get_free_dqblk() 105 blk = info->dqi_blocks++; in get_free_dqblk() 108 ret = blk; in get_free_dqblk() 115 static int put_free_dqblk(struct qtree_mem_dqinfo *info, char *buf, uint blk) in put_free_dqblk() argument [all …]
|
/Linux-v5.4/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-v5.4/fs/xfs/libxfs/ |
D | xfs_attr.c | 849 struct xfs_da_state_blk *blk; in xfs_attr_node_addname() local 873 blk = &state->path.blk[ state->path.active-1 ]; in xfs_attr_node_addname() 874 ASSERT(blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_attr_node_addname() 901 retval = xfs_attr3_leaf_add(blk->bp, state->args); in xfs_attr_node_addname() 1022 blk = &state->path.blk[ state->path.active-1 ]; in xfs_attr_node_addname() 1023 ASSERT(blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_attr_node_addname() 1024 error = xfs_attr3_leaf_remove(blk->bp, args); in xfs_attr_node_addname() 1076 struct xfs_da_state_blk *blk; in xfs_attr_node_removename() local 1106 blk = &state->path.blk[ state->path.active-1 ]; in xfs_attr_node_removename() 1107 ASSERT(blk->bp != NULL); in xfs_attr_node_removename() [all …]
|
D | xfs_da_btree.c | 96 state->altpath.blk[i].bp = NULL; in xfs_da_state_kill_altpath() 401 ASSERT(state->path.blk[max].magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_split() 402 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split() 404 addblk = &state->path.blk[max]; /* initial dummy value */ in xfs_da3_split() 406 oldblk = &state->path.blk[i]; in xfs_da3_split() 407 newblk = &state->altpath.blk[i]; in xfs_da3_split() 482 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split() 488 oldblk = &state->path.blk[0]; in xfs_da3_split() 977 drop_blk = &state->path.blk[ state->path.active-1 ]; in xfs_da3_join() 978 save_blk = &state->altpath.blk[ state->path.active-1 ]; in xfs_da3_join() [all …]
|
/Linux-v5.4/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_rm.c | 65 if (i->blk && (&i->blk->list == blk_list)) { in _dpu_rm_get_hw_locked() 70 i->blk = list_prepare_entry(i->blk, blk_list, list); in _dpu_rm_get_hw_locked() 72 list_for_each_entry_continue(i->blk, blk_list, list) { in _dpu_rm_get_hw_locked() 73 if (i->enc_id == i->blk->enc_id) { in _dpu_rm_get_hw_locked() 74 i->hw = i->blk->hw; in _dpu_rm_get_hw_locked() 76 i->type, i->blk->id, i->enc_id); in _dpu_rm_get_hw_locked() 150 struct dpu_rm_hw_blk *blk; in _dpu_rm_hw_blk_create() local 182 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in _dpu_rm_hw_blk_create() 183 if (!blk) { in _dpu_rm_hw_blk_create() 188 blk->id = id; in _dpu_rm_hw_blk_create() [all …]
|
/Linux-v5.4/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-v5.4/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-v5.4/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() 238 struct numa_memblk *bi = &mi->blk[i]; in numa_cleanup_meminfo() 253 struct numa_memblk *bi = &mi->blk[i]; in numa_cleanup_meminfo() 256 struct numa_memblk *bj = &mi->blk[j]; in numa_cleanup_meminfo() 286 struct numa_memblk *bk = &mi->blk[k]; in numa_cleanup_meminfo() 305 for (i = mi->nr_blks; i < ARRAY_SIZE(mi->blk); i++) { in numa_cleanup_meminfo() [all …]
|
D | numa_emulation.c | 26 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() 136 start = pi->blk[phys_blk].start; in split_nodes_interleave() 137 limit = pi->blk[phys_blk].end; in split_nodes_interleave() 284 start = pi->blk[phys_blk].start; in split_nodes_size_interleave_uniform() 285 limit = pi->blk[phys_blk].end; in split_nodes_size_interleave_uniform() 411 pi.blk[0].start, pi.blk[0].end, 0, in numa_emulation() 412 n, &pi.blk[0], nid); in numa_emulation() 475 for (i = 0; i < ARRAY_SIZE(ei.blk); i++) in numa_emulation() [all …]
|
/Linux-v5.4/drivers/gpu/drm/arm/display/komeda/d71/ |
D | d71_component.c | 58 static u32 get_valid_inputs(struct block_header *blk) in get_valid_inputs() argument 63 for (i = 0; i < PIPELINE_INFO_N_VALID_INPUTS(blk->pipeline_info); i++) { in get_valid_inputs() 64 get_resources_id(blk->input_ids[i], NULL, &comp_id); in get_valid_inputs() 342 struct block_header *blk, u32 __iomem *reg) in d71_layer_init() argument 348 get_resources_id(blk->block_info, &pipe_id, &layer_id); in d71_layer_init() 351 BLOCK_INFO_INPUT_ID(blk->block_info), in d71_layer_init() 353 get_valid_inputs(blk), in d71_layer_init() 439 struct block_header *blk, u32 __iomem *reg) in d71_wb_layer_init() argument 445 get_resources_id(blk->block_info, &pipe_id, &layer_id); in d71_wb_layer_init() 448 layer_id, BLOCK_INFO_INPUT_ID(blk->block_info), in d71_wb_layer_init() [all …]
|
/Linux-v5.4/fs/gfs2/ |
D | recovery.h | 14 static inline void gfs2_replay_incr_blk(struct gfs2_jdesc *jd, u32 *blk) in gfs2_replay_incr_blk() argument 16 if (++*blk == jd->jd_blocks) in gfs2_replay_incr_blk() 17 *blk = 0; in gfs2_replay_incr_blk() 20 extern int gfs2_replay_read_block(struct gfs2_jdesc *jd, unsigned int blk,
|
/Linux-v5.4/include/sound/ |
D | util_mem.h | 21 #define snd_util_memblk_argptr(blk) (void*)((char*)(blk) + sizeof(struct snd_util_memblk)) argument 41 int snd_util_mem_free(struct snd_util_memhdr *hdr, struct snd_util_memblk *blk); 46 void __snd_util_mem_free(struct snd_util_memhdr *hdr, struct snd_util_memblk *blk);
|