/linux/sound/pci/ctxfi/ |
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
/linux/arch/powerpc/lib/ |
H A 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/drivers/net/ethernet/intel/ice/ |
H A D | ice_flex_pipe.c | 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() 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() 663 ice_ptg_find_ptype(struct ice_hw *hw, enum ice_block blk, u16 ptype, u8 *ptg) in ice_ptg_find_ptype() argument 668 *ptg = hw->blk[blk].xlt1.ptypes[ptype].ptg; in ice_ptg_find_ptype() 681 static void ice_ptg_alloc_val(struct ice_hw *hw, enum ice_block blk, u8 ptg) in ice_ptg_alloc_val() argument 683 hw->blk[blk].xlt1.ptg_tbl[ptg].in_use = true; in ice_ptg_alloc_val() [all …]
|
H A D | ice_flow.c | 612 enum ice_block blk; member 927 u8 fv_words = hw->blk[params->blk].es.fvw; in ice_flow_xtract_fld() 1099 if (hw->blk[params->blk].es.reverse) in ice_flow_xtract_fld() 1142 fv_words = hw->blk[params->blk].es.fvw; in ice_flow_xtract_raws() 1171 if (params->es_cnt >= hw->blk[params->blk].es.count || in ice_flow_xtract_raws() 1176 if (hw->blk[params->blk].es.reverse) in ice_flow_xtract_raws() 1246 switch (params->blk) { in ice_flow_proc_segs() 1275 ice_flow_find_prof_conds(struct ice_hw *hw, enum ice_block blk, in ice_flow_find_prof_conds() argument 1281 mutex_lock(&hw->fl_profs_locks[blk]); in ice_flow_find_prof_conds() 1282 list_for_each_entry(p, &hw->fl_profs[blk], l_entry) in ice_flow_find_prof_conds() [all …]
|
H A D | ice_flex_pipe.h | 15 ice_find_prot_off(struct ice_hw *hw, enum ice_block blk, u8 prof, u16 fv_idx, 42 ice_add_prof(struct ice_hw *hw, enum ice_block blk, u64 id, 47 ice_search_prof_id(struct ice_hw *hw, enum ice_block blk, u64 id); 49 ice_add_prof_id_flow(struct ice_hw *hw, enum ice_block blk, u16 vsi, u64 hdl); 51 ice_rem_prof_id_flow(struct ice_hw *hw, enum ice_block blk, u16 vsi, u64 hdl); 53 ice_flow_assoc_fdir_prof(struct ice_hw *hw, enum ice_block blk, 64 int ice_rem_prof(struct ice_hw *hw, enum ice_block blk, u64 id);
|
/linux/block/ |
H A 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 blk-lib.o blk-mq.o \ 9 blk-mq-tag.o blk-mq-dma.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 16 obj-$(CONFIG_BLK_CGROUP) += blk-cgroup.o 17 obj-$(CONFIG_BLK_CGROUP_RWSTAT) += blk-cgroup-rwstat.o 18 obj-$(CONFIG_BLK_CGROUP_FC_APPID) += blk-cgroup-fc-appid.o [all …]
|
/linux/sound/pci/emu10k1/ |
H A 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/drivers/i2c/busses/ |
H A 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 …]
|
/linux/sound/synth/ |
H A 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/fs/xfs/scrub/ |
H A 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() 92 ds->state->path.blk[level].blkno), in xchk_da_set_preen() 102 struct xfs_da_state_blk *blk = &ds->state->path.blk[level]; in xchk_da_btree_node_entry() local 105 ASSERT(blk->magic == XFS_DA_NODE_MAGIC); in xchk_da_btree_node_entry() 107 xfs_da3_node_hdr_from_disk(ds->sc->mp, &hdr, blk->bp->b_addr); in xchk_da_btree_node_entry() 108 return hdr.btree + blk->index; in xchk_da_btree_node_entry() 269 if (altpath->blk[level].bp) in xchk_da_btree_block_check_sibling() 270 xchk_buffer_recheck(ds->sc, altpath->blk[level].bp); in xchk_da_btree_block_check_sibling() 273 if (altpath->blk[level].blkno != sibling) in xchk_da_btree_block_check_sibling() [all …]
|
/linux/mm/ |
H A D | numa_memblks.c | 26 for (i = 0; i < ARRAY_SIZE(mi->blk); i++) in numa_nodemask_from_meminfo() 27 if (mi->blk[i].start != mi->blk[i].end && in numa_nodemask_from_meminfo() 28 mi->blk[i].nid != NUMA_NO_NODE) in numa_nodemask_from_meminfo() 29 node_set(mi->blk[i].nid, *nodemask); in numa_nodemask_from_meminfo() 152 mi->blk[mi->nr_blks].start = start; in numa_add_memblk_to() 153 mi->blk[mi->nr_blks].end = end; in numa_add_memblk_to() 154 mi->blk[mi->nr_blks].nid = nid; in numa_add_memblk_to() 170 memmove(&mi->blk[idx], &mi->blk[idx + 1], in numa_remove_memblk_from() 171 (mi->nr_blks - idx) * sizeof(mi->blk[0])); in numa_remove_memblk_from() 183 dst->blk[dst->nr_blks++] = src->blk[idx]; in numa_move_tail_memblk() [all …]
|
H A D | numa_emulation.c | 30 if (mi->blk[i].nid == nid) in emu_find_memblk_by_nid() 53 struct numa_memblk *eb = &ei->blk[ei->nr_blks]; in emu_setup_memblk() 54 struct numa_memblk *pb = &pi->blk[phys_blk]; in emu_setup_memblk() 140 start = pi->blk[phys_blk].start; in split_nodes_interleave() 141 limit = pi->blk[phys_blk].end; in split_nodes_interleave() 288 start = pi->blk[phys_blk].start; in split_nodes_size_interleave_uniform() 289 limit = pi->blk[phys_blk].end; in split_nodes_size_interleave_uniform() 415 pi.blk[0].start, pi.blk[0].end, 0, in numa_emulation() 416 n, &pi.blk[0], nid); in numa_emulation() 471 for (i = 0; i < ARRAY_SIZE(ei.blk); i++) in numa_emulation() [all …]
|
/linux/drivers/net/phy/mscc/ |
H A D | mscc_ptp.c | 63 static u32 vsc85xx_ts_read_csr(struct phy_device *phydev, enum ts_blk blk, in vsc85xx_ts_read_csr() argument 71 switch (blk) { in vsc85xx_ts_read_csr() 107 static void vsc85xx_ts_write_csr(struct phy_device *phydev, enum ts_blk blk, in vsc85xx_ts_write_csr() argument 118 blk == PROCESSOR; in vsc85xx_ts_write_csr() 121 switch (blk) { in vsc85xx_ts_write_csr() 292 static int vsc85xx_ts_disable_flows(struct phy_device *phydev, enum ts_blk blk) in vsc85xx_ts_disable_flows() argument 296 vsc85xx_ts_write_csr(phydev, blk, MSCC_ANA_IP1_NXT_PROT_NXT_COMP, 0); in vsc85xx_ts_disable_flows() 297 vsc85xx_ts_write_csr(phydev, blk, MSCC_ANA_IP1_NXT_PROT_UDP_CHKSUM, in vsc85xx_ts_disable_flows() 299 vsc85xx_ts_write_csr(phydev, blk, MSCC_ANA_IP2_NXT_PROT_NXT_COMP, 0); in vsc85xx_ts_disable_flows() 300 vsc85xx_ts_write_csr(phydev, blk, MSCC_ANA_IP2_NXT_PROT_UDP_CHKSUM, in vsc85xx_ts_disable_flows() [all …]
|
/linux/fs/quota/ |
H A D | quota_tree.c | 56 static ssize_t read_blk(struct qtree_mem_dqinfo *info, uint blk, char *buf) in read_blk() argument 62 info->dqi_usable_bs, (loff_t)blk << info->dqi_blocksize_bits); in read_blk() 65 static ssize_t write_blk(struct qtree_mem_dqinfo *info, uint blk, char *buf) in write_blk() argument 71 info->dqi_usable_bs, (loff_t)blk << info->dqi_blocksize_bits); in write_blk() 119 int ret, blk; in get_free_dqblk() local 124 blk = info->dqi_free_blk; in get_free_dqblk() 125 ret = read_blk(info, blk, buf); in get_free_dqblk() 139 blk = info->dqi_blocks++; in get_free_dqblk() 142 ret = blk; in get_free_dqblk() 149 static int put_free_dqblk(struct qtree_mem_dqinfo *info, char *buf, uint blk) in put_free_dqblk() argument [all …]
|
/linux/block/partitions/ |
H A D | amiga.c | 43 sector_t blk, end_sect; in amiga_partition() local 50 for (blk = 0; ; blk++, put_dev_sector(sect)) { in amiga_partition() 51 if (blk == RDB_ALLOCATION_LIMIT) in amiga_partition() 53 data = read_part_sector(state, blk, §); in amiga_partition() 56 state->disk->disk_name, blk); in amiga_partition() 73 blk); in amiga_partition() 78 state->disk->disk_name, blk); in amiga_partition() 91 blk = be32_to_cpu(rdb->rdb_PartitionList); in amiga_partition() 93 for (part = 1; (s32) blk>0 && part<=16; part++, put_dev_sector(sect)) { in amiga_partition() 95 if (check_mul_overflow(blk, (sector_t) blksize, &blk)) { in amiga_partition() [all …]
|
/linux/sound/soc/intel/catpt/ |
H A D | loader.c | 240 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/fs/affs/ |
H A 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/drivers/vdpa/vdpa_sim/ |
H A D | vdpa_sim_blk.c | 67 static void vdpasim_blk_buffer_lock(struct vdpasim_blk *blk) in vdpasim_blk_buffer_lock() argument 69 if (blk->shared_backend) in vdpasim_blk_buffer_lock() 73 static void vdpasim_blk_buffer_unlock(struct vdpasim_blk *blk) in vdpasim_blk_buffer_unlock() argument 75 if (blk->shared_backend) in vdpasim_blk_buffer_unlock() 112 struct vdpasim_blk *blk = sim_to_blk(vdpasim); in vdpasim_blk_handle_req() local 178 vdpasim_blk_buffer_lock(blk); in vdpasim_blk_handle_req() 180 blk->buffer + offset, to_push); in vdpasim_blk_handle_req() 181 vdpasim_blk_buffer_unlock(blk); in vdpasim_blk_handle_req() 201 vdpasim_blk_buffer_lock(blk); in vdpasim_blk_handle_req() 203 blk->buffer + offset, to_pull); in vdpasim_blk_handle_req() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/hwss/dce/ |
H A D | dce_hwseq.h | 61 #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/fs/xfs/libxfs/ |
H A D | xfs_da_btree.c | 105 state->altpath.blk[i].bp = NULL; in xfs_da_state_kill_altpath() 579 ASSERT(state->path.blk[max].magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_split() 580 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split() 582 addblk = &state->path.blk[max]; /* initial dummy value */ in xfs_da3_split() 584 oldblk = &state->path.blk[i]; in xfs_da3_split() 585 newblk = &state->altpath.blk[i]; in xfs_da3_split() 661 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split() 667 oldblk = &state->path.blk[0]; in xfs_da3_split() 1138 drop_blk = &state->path.blk[ state->path.active-1 ]; in xfs_da3_join() 1139 save_blk = &state->altpath.blk[ state->path.active-1 ]; in xfs_da3_join() [all …]
|
/linux/fs/gfs2/ |
H A 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 int gfs2_replay_read_block(struct gfs2_jdesc *jd, unsigned int blk,
|
/linux/include/sound/ |
H A 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);
|
/linux/drivers/media/test-drivers/vivid/ |
H A D | vivid-radio-tx.c | 29 unsigned blk; in vivid_radio_tx_write() local 50 blk = ktime_divns(timestamp, VIVID_RDS_NSEC_PER_BLK); in vivid_radio_tx_write() 51 if (blk - VIVID_RDS_GEN_BLOCKS >= dev->radio_tx_rds_last_block) in vivid_radio_tx_write() 52 dev->radio_tx_rds_last_block = blk - VIVID_RDS_GEN_BLOCKS + 1; in vivid_radio_tx_write() 60 if (blk == dev->radio_tx_rds_last_block || in vivid_radio_tx_write() 72 for (i = 0; i < size && blk > dev->radio_tx_rds_last_block; in vivid_radio_tx_write()
|