| /kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce/ |
| D | dce_mem_input.h | 158 #define MI_GFX6_TILE_MASK_SH_LIST(mask_sh, blk)\ argument 159 SFB(blk, GRPH_CONTROL, GRPH_NUM_BANKS, mask_sh),\ 160 SFB(blk, GRPH_CONTROL, GRPH_BANK_WIDTH, mask_sh),\ 161 SFB(blk, GRPH_CONTROL, GRPH_BANK_HEIGHT, mask_sh),\ 162 SFB(blk, GRPH_CONTROL, GRPH_MACRO_TILE_ASPECT, mask_sh),\ 163 SFB(blk, GRPH_CONTROL, GRPH_TILE_SPLIT, mask_sh),\ 164 SFB(blk, GRPH_CONTROL, GRPH_PIPE_CONFIG, mask_sh),\ 165 SFB(blk, GRPH_CONTROL, GRPH_ARRAY_MODE, mask_sh),\ 166 SFB(blk, GRPH_CONTROL, GRPH_COLOR_EXPANSION_MODE, mask_sh) 169 #define MI_GFX8_TILE_MASK_SH_LIST(mask_sh, blk)\ argument [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dce/ |
| D | dce_mem_input.h | 158 #define MI_GFX6_TILE_MASK_SH_LIST(mask_sh, blk)\ argument 159 SFB(blk, GRPH_CONTROL, GRPH_NUM_BANKS, mask_sh),\ 160 SFB(blk, GRPH_CONTROL, GRPH_BANK_WIDTH, mask_sh),\ 161 SFB(blk, GRPH_CONTROL, GRPH_BANK_HEIGHT, mask_sh),\ 162 SFB(blk, GRPH_CONTROL, GRPH_MACRO_TILE_ASPECT, mask_sh),\ 163 SFB(blk, GRPH_CONTROL, GRPH_TILE_SPLIT, mask_sh),\ 164 SFB(blk, GRPH_CONTROL, GRPH_PIPE_CONFIG, mask_sh),\ 165 SFB(blk, GRPH_CONTROL, GRPH_ARRAY_MODE, mask_sh),\ 166 SFB(blk, GRPH_CONTROL, GRPH_COLOR_EXPANSION_MODE, mask_sh) 169 #define MI_GFX8_TILE_MASK_SH_LIST(mask_sh, blk)\ argument [all …]
|
| /kernel/linux/linux-6.6/block/ |
| D | Makefile | 6 obj-y := bdev.o fops.o 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-merge.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 \ 11 genhd.o ioprio.o badblocks.o partitions/ blk-rq-qos.o \ 12 disk-events.o blk-ia-ranges.o early-lookup.o 17 obj-$(CONFIG_BLK_CGROUP) += blk-cgroup.o 18 obj-$(CONFIG_BLK_CGROUP_RWSTAT) += blk-cgroup-rwstat.o 19 obj-$(CONFIG_BLK_CGROUP_FC_APPID) += blk-cgroup-fc-appid.o [all …]
|
| /kernel/linux/linux-5.10/sound/pci/ctxfi/ |
| D | cthardware.h | 87 int (*src_rsc_put_ctrl_blk)(void *blk); 88 int (*src_set_state)(void *blk, unsigned int state); 89 int (*src_set_bm)(void *blk, unsigned int bm); 90 int (*src_set_rsr)(void *blk, unsigned int rsr); 91 int (*src_set_sf)(void *blk, unsigned int sf); 92 int (*src_set_wr)(void *blk, unsigned int wr); 93 int (*src_set_pm)(void *blk, unsigned int pm); 94 int (*src_set_rom)(void *blk, unsigned int rom); 95 int (*src_set_vo)(void *blk, unsigned int vo); 96 int (*src_set_st)(void *blk, unsigned int st); [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(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 | 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 …]
|
| /kernel/linux/linux-6.6/sound/pci/ctxfi/ |
| D | cthardware.h | 87 int (*src_rsc_put_ctrl_blk)(void *blk); 88 int (*src_set_state)(void *blk, unsigned int state); 89 int (*src_set_bm)(void *blk, unsigned int bm); 90 int (*src_set_rsr)(void *blk, unsigned int rsr); 91 int (*src_set_sf)(void *blk, unsigned int sf); 92 int (*src_set_wr)(void *blk, unsigned int wr); 93 int (*src_set_pm)(void *blk, unsigned int pm); 94 int (*src_set_rom)(void *blk, unsigned int rom); 95 int (*src_set_vo)(void *blk, unsigned int vo); 96 int (*src_set_st)(void *blk, unsigned int st); [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(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 | 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 …]
|
| /kernel/linux/linux-5.10/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-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 \ 11 genhd.o ioprio.o badblocks.o partitions/ blk-rq-qos.o 17 obj-$(CONFIG_BLK_CGROUP) += blk-cgroup.o 18 obj-$(CONFIG_BLK_CGROUP_RWSTAT) += blk-cgroup-rwstat.o 19 obj-$(CONFIG_BLK_DEV_THROTTLING) += blk-throttle.o 20 obj-$(CONFIG_BLK_CGROUP_IOLATENCY) += blk-iolatency.o [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/ |
| D | ice_flex_pipe.c | 78 * @blk: block type 84 static u32 ice_sect_id(enum ice_block blk, enum ice_sect sect) in ice_sect_id() argument 86 return ice_sect_lkup[blk][sect]; in ice_sect_id() 623 * @blk: hardware block 630 ice_find_prot_off(struct ice_hw *hw, enum ice_block blk, u8 prof, u16 fv_idx, in ice_find_prot_off() argument 635 if (prof >= hw->blk[blk].es.count) in ice_find_prot_off() 638 if (fv_idx >= hw->blk[blk].es.fvw) in ice_find_prot_off() 641 fv_ext = hw->blk[blk].es.t + (prof * hw->blk[blk].es.fvw); in ice_find_prot_off() 654 * @blk: HW block 663 ice_ptg_find_ptype(struct ice_hw *hw, enum ice_block blk, u16 ptype, u8 *ptg) in ice_ptg_find_ptype() argument [all …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/ |
| D | ice_flex_pipe.c | 86 * @blk: block type 92 static u32 ice_sect_id(enum ice_block blk, enum ice_sect sect) in ice_sect_id() argument 94 return ice_sect_lkup[blk][sect]; in ice_sect_id() 1872 * @blk: HW block 1881 ice_ptg_find_ptype(struct ice_hw *hw, enum ice_block blk, u16 ptype, u8 *ptg) in ice_ptg_find_ptype() argument 1886 *ptg = hw->blk[blk].xlt1.ptypes[ptype].ptg; in ice_ptg_find_ptype() 1893 * @blk: HW block 1899 static void ice_ptg_alloc_val(struct ice_hw *hw, enum ice_block blk, u8 ptg) in ice_ptg_alloc_val() argument 1901 hw->blk[blk].xlt1.ptg_tbl[ptg].in_use = true; in ice_ptg_alloc_val() 1907 * @blk: HW block [all …]
|
| /kernel/linux/linux-6.6/drivers/i2c/busses/ |
| D | i2c-qup.c | 245 struct qup_i2c_block blk; member 291 struct qup_i2c_block *blk = &qup->blk; in qup_i2c_interrupt() local 342 blk->tx_fifo_free += qup->out_blk_sz; in qup_i2c_interrupt() 353 if (!blk->is_rx_blk_mode) { in qup_i2c_interrupt() 354 blk->fifo_available += qup->in_fifo_sz; in qup_i2c_interrupt() 357 blk->fifo_available += qup->in_blk_sz; in qup_i2c_interrupt() 363 if (!blk->rx_bytes_read) in qup_i2c_interrupt() 373 if (blk->is_tx_blk_mode && !(opflags & QUP_MX_OUTPUT_DONE)) in qup_i2c_interrupt() 485 struct qup_i2c_block *blk = &qup->blk; in qup_i2c_write_tx_fifo_v1() local 495 blk->tx_fifo_free--; in qup_i2c_write_tx_fifo_v1() [all …]
|
| /kernel/linux/linux-5.10/drivers/i2c/busses/ |
| D | i2c-qup.c | 241 struct qup_i2c_block blk; member 283 struct qup_i2c_block *blk = &qup->blk; in qup_i2c_interrupt() local 334 blk->tx_fifo_free += qup->out_blk_sz; in qup_i2c_interrupt() 345 if (!blk->is_rx_blk_mode) { in qup_i2c_interrupt() 346 blk->fifo_available += qup->in_fifo_sz; in qup_i2c_interrupt() 349 blk->fifo_available += qup->in_blk_sz; in qup_i2c_interrupt() 355 if (!blk->rx_bytes_read) in qup_i2c_interrupt() 365 if (blk->is_tx_blk_mode && !(opflags & QUP_MX_OUTPUT_DONE)) in qup_i2c_interrupt() 458 struct qup_i2c_block *blk = &qup->blk; in qup_i2c_write_tx_fifo_v1() local 468 blk->tx_fifo_free--; in qup_i2c_write_tx_fifo_v1() [all …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/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() 85 struct xfs_da_state_blk *blk = &ds->state->path.blk[level]; in xchk_da_btree_node_entry() local 88 ASSERT(blk->magic == XFS_DA_NODE_MAGIC); in xchk_da_btree_node_entry() 90 xfs_da3_node_hdr_from_disk(ds->sc->mp, &hdr, blk->bp->b_addr); in xchk_da_btree_node_entry() 91 return hdr.btree + blk->index; in xchk_da_btree_node_entry() 252 if (altpath->blk[level].bp) in xchk_da_btree_block_check_sibling() 253 xchk_buffer_recheck(ds->sc, altpath->blk[level].bp); in xchk_da_btree_block_check_sibling() 256 if (altpath->blk[level].blkno != sibling) in xchk_da_btree_block_check_sibling() 262 if (altpath->blk[plevel].bp == NULL || in xchk_da_btree_block_check_sibling() [all …]
|
| /kernel/linux/linux-6.6/sound/pci/trident/ |
| D | trident_memory.c | 101 #define firstpg(blk) (((struct snd_trident_memblk_arg *)snd_util_memblk_argptr(blk))->first_page) argument 102 #define lastpg(blk) (((struct snd_trident_memblk_arg *)snd_util_memblk_argptr(blk))->last_page) argument 110 struct snd_util_memblk *blk; in search_empty() local 117 blk = list_entry(p, struct snd_util_memblk, list); in search_empty() 118 if (page + psize <= firstpg(blk)) in search_empty() 120 page = lastpg(blk) + 1; in search_empty() 127 blk = __snd_util_memblk_new(hdr, psize * ALIGN_PAGE_SIZE, p->prev); in search_empty() 128 if (blk == NULL) in search_empty() 130 blk->offset = aligned_page_offset(page); /* set aligned offset */ in search_empty() 131 firstpg(blk) = page; in search_empty() [all …]
|
| /kernel/linux/linux-6.6/fs/xfs/scrub/ |
| D | dabtree.c | 55 ds->state->path.blk[level].blkno), in xchk_da_process_error() 77 ds->state->path.blk[level].blkno), in xchk_da_set_corrupt() 86 struct xfs_da_state_blk *blk = &ds->state->path.blk[level]; in xchk_da_btree_node_entry() local 89 ASSERT(blk->magic == XFS_DA_NODE_MAGIC); in xchk_da_btree_node_entry() 91 xfs_da3_node_hdr_from_disk(ds->sc->mp, &hdr, blk->bp->b_addr); in xchk_da_btree_node_entry() 92 return hdr.btree + blk->index; in xchk_da_btree_node_entry() 253 if (altpath->blk[level].bp) in xchk_da_btree_block_check_sibling() 254 xchk_buffer_recheck(ds->sc, altpath->blk[level].bp); in xchk_da_btree_block_check_sibling() 257 if (altpath->blk[level].blkno != sibling) in xchk_da_btree_block_check_sibling() 263 if (altpath->blk[plevel].bp == NULL || in xchk_da_btree_block_check_sibling() [all …]
|
| /kernel/linux/linux-5.10/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, (loff_t)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, (loff_t)blk << info->dqi_blocksize_bits); in write_blk() 117 int ret, blk; in get_free_dqblk() local 122 blk = info->dqi_free_blk; in get_free_dqblk() 123 ret = read_blk(info, blk, buf); in get_free_dqblk() 137 blk = info->dqi_blocks++; in get_free_dqblk() 140 ret = blk; in get_free_dqblk() 147 static int put_free_dqblk(struct qtree_mem_dqinfo *info, char *buf, uint blk) in put_free_dqblk() argument [all …]
|
| /kernel/linux/linux-5.10/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 …]
|