Home
last modified time | relevance | path

Searched refs:bit_off (Results 1 – 16 of 16) sorted by relevance

/linux/drivers/pinctrl/
H A Dpinctrl-digicolor.c130 int bit_off, reg_off; in dc_set_mux() local
133 dc_client_sel(group, &reg_off, &bit_off); in dc_set_mux()
136 reg &= ~(3 << bit_off); in dc_set_mux()
137 reg |= (selector << bit_off); in dc_set_mux()
148 int bit_off, reg_off; in dc_pmx_request_gpio() local
151 dc_client_sel(offset, &reg_off, &bit_off); in dc_pmx_request_gpio()
154 if ((reg & (3 << bit_off)) != 0) in dc_pmx_request_gpio()
172 int bit_off = gpio % PINS_PER_COLLECTION; in dc_gpio_direction_input() local
178 drive &= ~BIT(bit_off); in dc_gpio_direction_input()
192 int bit_off = gpio % PINS_PER_COLLECTION; in dc_gpio_direction_output() local
[all …]
/linux/mm/
H A Dpercpu.c320 int bit_off = ALIGN(block->contig_hint_start, align) - in pcpu_check_block_hint() local
323 return bit_off + bits <= block->contig_hint; in pcpu_check_block_hint()
365 static void pcpu_next_md_free_region(struct pcpu_chunk *chunk, int *bit_off, in pcpu_next_md_free_region() argument
368 int i = pcpu_off_to_block_index(*bit_off); in pcpu_next_md_free_region()
369 int block_off = pcpu_off_to_block_off(*bit_off); in pcpu_next_md_free_region()
394 *bit_off = pcpu_block_off_to_off(i, in pcpu_next_md_free_region()
402 *bit_off = (i + 1) * PCPU_BITMAP_BLOCK_BITS - block->right_free; in pcpu_next_md_free_region()
421 int align, int *bit_off, int *bits) in pcpu_next_fit_region() argument
423 int i = pcpu_off_to_block_index(*bit_off); in pcpu_next_fit_region()
424 int block_off = pcpu_off_to_block_off(*bit_off); in pcpu_next_fit_region()
[all …]
/linux/fs/ocfs2/
H A Dlocalalloc.h39 u32 *bit_off,
45 u32 bit_off,
H A Dlocalalloc.c718 u32 *bit_off, in ocfs2_claim_local_alloc_bits() argument
743 *bit_off = le32_to_cpu(la->la_bm_off) + start; in ocfs2_claim_local_alloc_bits()
773 u32 bit_off, in ocfs2_free_local_alloc_bits() argument
790 start = bit_off - le32_to_cpu(la->la_bm_off); in ocfs2_free_local_alloc_bits()
949 int bit_off, left, count, start; in ocfs2_sync_local_to_main() local
975 bit_off = ocfs2_find_next_zero_bit(bitmap, left, start); in ocfs2_sync_local_to_main()
976 if ((bit_off < left) && (bit_off == start)) { in ocfs2_sync_local_to_main()
1001 if (bit_off >= left) in ocfs2_sync_local_to_main()
1004 start = bit_off + 1; in ocfs2_sync_local_to_main()
H A Dsuballoc.c428 u32 bit_off, num_bits; in ocfs2_block_group_alloc_contig() local
434 le16_to_cpu(cl->cl_cpg), &bit_off, in ocfs2_block_group_alloc_contig()
443 bg_blkno = ocfs2_clusters_to_blocks(osb->sb, bit_off); in ocfs2_block_group_alloc_contig()
470 u32 *bit_off, u32 *num_bits) in ocfs2_block_group_claim_bits() argument
476 bit_off, num_bits); in ocfs2_block_group_claim_bits()
585 u32 bit_off, num_bits; in ocfs2_block_group_alloc_discontig() local
614 &bit_off, &num_bits); in ocfs2_block_group_alloc_discontig()
623 bg_blkno = ocfs2_clusters_to_blocks(osb->sb, bit_off); in ocfs2_block_group_alloc_discontig()
1368 unsigned int bit_off, in ocfs2_block_group_set_bits() argument
1376 unsigned int start = bit_off + num_bits; in ocfs2_block_group_set_bits()
[all …]
H A Dsuballoc.h89 unsigned int bit_off,
H A Dalloc.c4797 u32 bit_off, num_bits; in ocfs2_add_clusters_in_btree() local
4835 clusters_to_add, &bit_off, &num_bits); in ocfs2_add_clusters_in_btree()
4853 block = ocfs2_clusters_to_blocks(osb->sb, bit_off); in ocfs2_add_clusters_in_btree()
4856 bit_off, num_bits); in ocfs2_add_clusters_in_btree()
4880 bit_off, num_bits); in ocfs2_add_clusters_in_btree()
4885 ocfs2_clusters_to_blocks(osb->sb, bit_off), in ocfs2_add_clusters_in_btree()
7085 u32 bit_off, num; in ocfs2_convert_inline_data_to_extents() local
7134 ret = ocfs2_claim_clusters(handle, data_ac, 1, &bit_off, in ocfs2_convert_inline_data_to_extents()
7145 block = phys = ocfs2_clusters_to_blocks(inode->i_sb, bit_off); in ocfs2_convert_inline_data_to_extents()
7209 bit_off, num); in ocfs2_convert_inline_data_to_extents()
[all …]
H A Ddir.c2823 u32 alloc, dx_alloc, bit_off, len, num_dx_entries = 0; in ocfs2_expand_inline_dir() local
2932 ret = ocfs2_claim_clusters(handle, data_ac, 1, &bit_off, &len); in ocfs2_expand_inline_dir()
2944 blkno = ocfs2_clusters_to_blocks(dir->i_sb, bit_off); in ocfs2_expand_inline_dir()
3073 ret = ocfs2_claim_clusters(handle, data_ac, 1, &bit_off, in ocfs2_expand_inline_dir()
3079 blkno = ocfs2_clusters_to_blocks(dir->i_sb, bit_off); in ocfs2_expand_inline_dir()
H A Dxattr.c4300 u32 bit_off, len; in ocfs2_xattr_create_index_block() local
4331 1, 1, &bit_off, &len); in ocfs2_xattr_create_index_block()
4342 blkno = ocfs2_clusters_to_blocks(inode->i_sb, bit_off); in ocfs2_xattr_create_index_block()
5130 u32 clusters_to_add = 1, bit_off, num_bits, v_start = 0; in ocfs2_add_new_xattr_cluster() local
5151 clusters_to_add, &bit_off, &num_bits); in ocfs2_add_new_xattr_cluster()
5160 block = ocfs2_clusters_to_blocks(osb->sb, bit_off); in ocfs2_add_new_xattr_cluster()
/linux/tools/testing/selftests/bpf/
H A Dbtf_helpers.c130 __u32 bit_off, bit_sz; in fprintf_btf_type_raw() local
132 bit_off = btf_member_bit_offset(t, i); in fprintf_btf_type_raw()
135 btf_str(btf, m->name_off), m->type, bit_off); in fprintf_btf_type_raw()
/linux/drivers/irqchip/
H A Dirq-sg2042-msi.c72 int bit_off = d->hwirq; in sg2042_msi_irq_ack() local
74 writel(1 << bit_off, data->reg_clr); in sg2042_msi_irq_ack()
/linux/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_hw_util.c550 new_val = reg_val | BIT(clk_ctrl_reg->bit_off); in dpu_hw_clk_force_ctrl()
552 new_val = reg_val & ~BIT(clk_ctrl_reg->bit_off); in dpu_hw_clk_force_ctrl()
556 clk_forced_on = !(reg_val & BIT(clk_ctrl_reg->bit_off)); in dpu_hw_clk_force_ctrl()
H A Ddpu_hw_catalog.h370 u32 bit_off; member
/linux/tools/bpf/bpftool/
H A Dbtf.c194 __u32 bit_off, bit_sz; in dump_btf_type() local
197 bit_off = BTF_MEMBER_BIT_OFFSET(m->offset); in dump_btf_type()
200 bit_off = m->offset; in dump_btf_type()
208 jsonw_uint_field(w, "bits_offset", bit_off); in dump_btf_type()
216 name, m->type, bit_off); in dump_btf_type()
/linux/drivers/gpu/drm/msm/disp/dpu1/catalog/
H A Ddpu_12_2_glymur.h24 [DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 },
/linux/drivers/gpu/drm/
H A Ddrm_fb_helper.c607 off_t bit_off = (off % line_length) * 8; in drm_fb_helper_memory_range_to_clip() local
610 x1 = bit_off / info->var.bits_per_pixel; in drm_fb_helper_memory_range_to_clip()