Home
last modified time | relevance | path

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

1234567

/Linux-v5.15/sound/pci/ctxfi/
Dcthardware.h86 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 …]
Dcthw20k2.c157 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 …]
Dcthw20k1.c157 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 …]
/Linux-v5.15/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-v5.15/drivers/gpu/drm/amd/display/dc/dce/
Ddce_mem_input.h158 #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 …]
Ddce_hwseq.h61 #define HSWEQ_DCN_PIXEL_RATE_REG_LIST(blk, inst) \ argument
62 SRII(PIXEL_RATE_CNTL, blk, inst), \
63 SRII(PHYPLL_PIXEL_RATE_CNTL, blk, inst)
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)
[all …]
/Linux-v5.15/block/
DMakefile6 obj-$(CONFIG_BLOCK) := 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-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_IOPRIO) += blk-ioprio.o
[all …]
/Linux-v5.15/sound/pci/emu10k1/
Dmemory.c69 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.15/drivers/net/ethernet/intel/ice/
Dice_flex_pipe.c92 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()
1880 ice_ptg_find_ptype(struct ice_hw *hw, enum ice_block blk, u16 ptype, u8 *ptg) in ice_ptg_find_ptype() argument
1885 *ptg = hw->blk[blk].xlt1.ptypes[ptype].ptg; in ice_ptg_find_ptype()
1898 static void ice_ptg_alloc_val(struct ice_hw *hw, enum ice_block blk, u8 ptg) in ice_ptg_alloc_val() argument
1900 hw->blk[blk].xlt1.ptg_tbl[ptg].in_use = true; in ice_ptg_alloc_val()
1914 ice_ptg_remove_ptype(struct ice_hw *hw, enum ice_block blk, u16 ptype, u8 ptg) in ice_ptg_remove_ptype() argument
1922 if (!hw->blk[blk].xlt1.ptg_tbl[ptg].in_use) in ice_ptg_remove_ptype()
1926 if (!hw->blk[blk].xlt1.ptg_tbl[ptg].first_ptype) in ice_ptg_remove_ptype()
1930 p = hw->blk[blk].xlt1.ptg_tbl[ptg].first_ptype; in ice_ptg_remove_ptype()
[all …]
Dice_flow.c588 enum ice_block blk; member
907 u8 fv_words = hw->blk[params->blk].es.fvw; in ice_flow_xtract_fld()
1079 if (hw->blk[params->blk].es.reverse) in ice_flow_xtract_fld()
1122 fv_words = hw->blk[params->blk].es.fvw; in ice_flow_xtract_raws()
1151 if (params->es_cnt >= hw->blk[params->blk].es.count || in ice_flow_xtract_raws()
1156 if (hw->blk[params->blk].es.reverse) in ice_flow_xtract_raws()
1226 switch (params->blk) { in ice_flow_proc_segs()
1253 ice_flow_find_prof_conds(struct ice_hw *hw, enum ice_block blk, in ice_flow_find_prof_conds() argument
1259 mutex_lock(&hw->fl_profs_locks[blk]); in ice_flow_find_prof_conds()
1260 list_for_each_entry(p, &hw->fl_profs[blk], l_entry) in ice_flow_find_prof_conds()
[all …]
/Linux-v5.15/drivers/i2c/busses/
Di2c-qup.c241 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 …]
/Linux-v5.15/sound/synth/
Dutil_mem.c62 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.15/sound/pci/trident/
Dtrident_memory.c101 #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 …]
/Linux-v5.15/fs/xfs/scrub/
Ddabtree.c54 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 …]
/Linux-v5.15/fs/quota/
Dquota_tree.c50 static ssize_t read_blk(struct qtree_mem_dqinfo *info, uint blk, char *buf) in read_blk() argument
56 info->dqi_usable_bs, (loff_t)blk << info->dqi_blocksize_bits); in read_blk()
59 static ssize_t write_blk(struct qtree_mem_dqinfo *info, uint blk, char *buf) in write_blk() argument
65 info->dqi_usable_bs, (loff_t)blk << info->dqi_blocksize_bits); in write_blk()
79 int ret, blk; in get_free_dqblk() local
84 blk = info->dqi_free_blk; in get_free_dqblk()
85 ret = read_blk(info, blk, buf); in get_free_dqblk()
96 blk = info->dqi_blocks++; in get_free_dqblk()
99 ret = blk; in get_free_dqblk()
106 static int put_free_dqblk(struct qtree_mem_dqinfo *info, char *buf, uint blk) in put_free_dqblk() argument
[all …]
/Linux-v5.15/drivers/net/wireless/intersil/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-v5.15/drivers/net/phy/mscc/
Dmscc_ptp.c62 static u32 vsc85xx_ts_read_csr(struct phy_device *phydev, enum ts_blk blk, in vsc85xx_ts_read_csr() argument
70 switch (blk) { in vsc85xx_ts_read_csr()
106 static void vsc85xx_ts_write_csr(struct phy_device *phydev, enum ts_blk blk, in vsc85xx_ts_write_csr() argument
117 blk == PROCESSOR; in vsc85xx_ts_write_csr()
120 switch (blk) { in vsc85xx_ts_write_csr()
291 static int vsc85xx_ts_disable_flows(struct phy_device *phydev, enum ts_blk blk) in vsc85xx_ts_disable_flows() argument
295 vsc85xx_ts_write_csr(phydev, blk, MSCC_ANA_IP1_NXT_PROT_NXT_COMP, 0); in vsc85xx_ts_disable_flows()
296 vsc85xx_ts_write_csr(phydev, blk, MSCC_ANA_IP1_NXT_PROT_UDP_CHKSUM, in vsc85xx_ts_disable_flows()
298 vsc85xx_ts_write_csr(phydev, blk, MSCC_ANA_IP2_NXT_PROT_NXT_COMP, 0); in vsc85xx_ts_disable_flows()
299 vsc85xx_ts_write_csr(phydev, blk, MSCC_ANA_IP2_NXT_PROT_UDP_CHKSUM, in vsc85xx_ts_disable_flows()
[all …]
/Linux-v5.15/block/partitions/
Damiga.c34 int start_sect, nr_sects, blk, part, res = 0; in amiga_partition() local
38 for (blk = 0; ; blk++, put_dev_sector(sect)) { in amiga_partition()
39 if (blk == RDB_ALLOCATION_LIMIT) in amiga_partition()
41 data = read_part_sector(state, blk, &sect); in amiga_partition()
44 state->disk->disk_name, blk); in amiga_partition()
61 blk); in amiga_partition()
66 state->disk->disk_name, 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 …]
/Linux-v5.15/sound/soc/intel/catpt/
Dloader.c240 struct catpt_fw_block_hdr *blk) in catpt_restore_fwimage() argument
246 blk, sizeof(*blk), false); in catpt_restore_fwimage()
248 r1.start = cdev->dram.start + blk->ram_offset; in catpt_restore_fwimage()
249 r1.end = r1.start + blk->size - 1; in catpt_restore_fwimage()
251 paddr += sizeof(*blk); in catpt_restore_fwimage()
291 struct catpt_fw_block_hdr *blk, bool alloc) in catpt_load_block() argument
298 blk, sizeof(*blk), false); in catpt_load_block()
300 switch (blk->ram_type) { in catpt_load_block()
309 dst_addr = sram->start + blk->ram_offset; in catpt_load_block()
311 res = __request_region(sram, dst_addr, blk->size, NULL, 0); in catpt_load_block()
[all …]
/Linux-v5.15/fs/affs/
Dbitmap.c44 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.15/arch/x86/mm/
Dnuma.c144 mi->blk[mi->nr_blks].start = start; in numa_add_memblk_to()
145 mi->blk[mi->nr_blks].end = end; in numa_add_memblk_to()
146 mi->blk[mi->nr_blks].nid = nid; in numa_add_memblk_to()
162 memmove(&mi->blk[idx], &mi->blk[idx + 1], in numa_remove_memblk_from()
163 (mi->nr_blks - idx) * sizeof(mi->blk[0])); in numa_remove_memblk_from()
175 dst->blk[dst->nr_blks++] = src->blk[idx]; in numa_move_tail_memblk()
246 struct numa_memblk *bi = &mi->blk[i]; in numa_cleanup_meminfo()
272 struct numa_memblk *bi = &mi->blk[i]; in numa_cleanup_meminfo()
275 struct numa_memblk *bj = &mi->blk[j]; in numa_cleanup_meminfo()
305 struct numa_memblk *bk = &mi->blk[k]; in numa_cleanup_meminfo()
[all …]
/Linux-v5.15/fs/xfs/libxfs/
Dxfs_attr.c1167 struct xfs_da_state_blk *blk; in xfs_attr_node_addname() local
1172 blk = &state->path.blk[state->path.active-1]; in xfs_attr_node_addname()
1173 ASSERT(blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_attr_node_addname()
1175 error = xfs_attr3_leaf_add(blk->bp, state->args); in xfs_attr_node_addname()
1282 ASSERT(state->path.blk[0].bp); in xfs_attr_node_shrink()
1283 state->path.blk[0].bp = NULL; in xfs_attr_node_shrink()
1343 ASSERT((*state)->path.blk[(*state)->path.active - 1].bp != NULL); in xfs_attr_node_removename_setup()
1344 ASSERT((*state)->path.blk[(*state)->path.active - 1].magic == in xfs_attr_node_removename_setup()
1366 struct xfs_da_state_blk *blk; in xfs_attr_node_removename() local
1372 blk = &state->path.blk[state->path.active-1]; in xfs_attr_node_removename()
[all …]
Dxfs_da_btree.c102 state->altpath.blk[i].bp = NULL; in xfs_da_state_kill_altpath()
493 ASSERT(state->path.blk[max].magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_split()
494 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split()
496 addblk = &state->path.blk[max]; /* initial dummy value */ in xfs_da3_split()
498 oldblk = &state->path.blk[i]; in xfs_da3_split()
499 newblk = &state->altpath.blk[i]; in xfs_da3_split()
574 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split()
580 oldblk = &state->path.blk[0]; in xfs_da3_split()
1072 drop_blk = &state->path.blk[ state->path.active-1 ]; in xfs_da3_join()
1073 save_blk = &state->altpath.blk[ state->path.active-1 ]; in xfs_da3_join()
[all …]
/Linux-v5.15/fs/xfs/
Dxfs_buf_item_recover.c707 void *blk = bp->b_addr; in xlog_recover_get_buf_lsn() local
724 magic32 = be32_to_cpu(*(__be32 *)blk); in xlog_recover_get_buf_lsn()
736 struct xfs_btree_block *btb = blk; in xlog_recover_get_buf_lsn()
744 struct xfs_btree_block *btb = blk; in xlog_recover_get_buf_lsn()
751 lsn = be64_to_cpu(((struct xfs_agf *)blk)->agf_lsn); in xlog_recover_get_buf_lsn()
752 uuid = &((struct xfs_agf *)blk)->agf_uuid; in xlog_recover_get_buf_lsn()
755 lsn = be64_to_cpu(((struct xfs_agfl *)blk)->agfl_lsn); in xlog_recover_get_buf_lsn()
756 uuid = &((struct xfs_agfl *)blk)->agfl_uuid; in xlog_recover_get_buf_lsn()
759 lsn = be64_to_cpu(((struct xfs_agi *)blk)->agi_lsn); in xlog_recover_get_buf_lsn()
760 uuid = &((struct xfs_agi *)blk)->agi_uuid; in xlog_recover_get_buf_lsn()
[all …]
/Linux-v5.15/drivers/gpu/drm/arm/display/komeda/d71/
Dd71_component.c58 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()
408 struct block_header *blk, u32 __iomem *reg) in d71_layer_init() argument
414 get_resources_id(blk->block_info, &pipe_id, &layer_id); in d71_layer_init()
417 BLOCK_INFO_INPUT_ID(blk->block_info), in d71_layer_init()
419 get_valid_inputs(blk), in d71_layer_init()
526 struct block_header *blk, u32 __iomem *reg) in d71_wb_layer_init() argument
532 get_resources_id(blk->block_info, &pipe_id, &layer_id); in d71_wb_layer_init()
535 layer_id, BLOCK_INFO_INPUT_ID(blk->block_info), in d71_wb_layer_init()
[all …]

1234567