Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/pinctrl/
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
154 if ((reg & (3 << bit_off)) != 0) in dc_pmx_request_gpio()
178 drive &= ~BIT(bit_off); in dc_gpio_direction_input()
200 drive |= BIT(bit_off); in dc_gpio_direction_output()
216 return !!(input & BIT(bit_off)); in dc_gpio_get()
230 output |= BIT(bit_off); in dc_gpio_set()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/msm/disp/dpu1/
A Ddpu_hw_catalog.c542 .reg_off = 0x2AC, .bit_off = 0},
544 .reg_off = 0x2AC, .bit_off = 8},
546 .reg_off = 0x2B4, .bit_off = 8},
548 .reg_off = 0x2C4, .bit_off = 8},
587 .reg_off = 0x2ac, .bit_off = 0},
589 .reg_off = 0x2ac, .bit_off = 8},
685 .reg_off = 0x2AC, .bit_off = 0},
687 .reg_off = 0x2AC, .bit_off = 8},
689 .reg_off = 0x2B4, .bit_off = 8},
691 .reg_off = 0x2C4, .bit_off = 8},
[all …]
A Ddpu_hw_vbif.c60 u32 bit_off; in dpu_hw_set_mem_type() local
78 bit_off = (xin_id & 0x7) * 4; in dpu_hw_set_mem_type()
80 reg_val &= ~(0x7 << bit_off); in dpu_hw_set_mem_type()
81 reg_val |= (value & 0x7) << bit_off; in dpu_hw_set_mem_type()
91 u32 bit_off; in dpu_hw_set_limit_conf() local
99 bit_off = (xin_id % 4) * 8; in dpu_hw_set_limit_conf()
101 reg_val &= ~(0xFF << bit_off); in dpu_hw_set_limit_conf()
102 reg_val |= (limit) << bit_off; in dpu_hw_set_limit_conf()
112 u32 bit_off; in dpu_hw_get_limit_conf() local
121 bit_off = (xin_id % 4) * 8; in dpu_hw_get_limit_conf()
[all …]
A Ddpu_hw_top.c70 u32 reg_off, bit_off; in dpu_hw_setup_clk_force_ctrl() local
83 bit_off = mdp->caps->clk_ctrls[clk_ctrl].bit_off; in dpu_hw_setup_clk_force_ctrl()
88 new_val = reg_val | BIT(bit_off); in dpu_hw_setup_clk_force_ctrl()
90 new_val = reg_val & ~BIT(bit_off); in dpu_hw_setup_clk_force_ctrl()
94 clk_forced_on = !(reg_val & BIT(bit_off)); in dpu_hw_setup_clk_force_ctrl()
A Ddpu_hw_catalog.h534 u32 bit_off; member
/linux-6.3-rc2/mm/
A Dpercpu.c462 *bit_off = pcpu_block_off_to_off(i, *bit_off); in pcpu_next_fit_region()
748 int bit_off, bits; in pcpu_chunk_refresh_hint() local
763 pcpu_block_update(chunk_md, bit_off, bit_off + bits); in pcpu_chunk_refresh_hint()
928 bit_off, in pcpu_block_update_hint_alloc()
929 bit_off + bits)) in pcpu_block_update_hint_alloc()
940 bit_off, in pcpu_block_update_hint_alloc()
941 bit_off + bits)) in pcpu_block_update_hint_alloc()
1131 bit_off = next_off; in pcpu_find_block_fit()
1138 return bit_off; in pcpu_find_block_fit()
1235 if (bit_off >= end) in pcpu_alloc_area()
[all …]
/linux-6.3-rc2/drivers/pinctrl/sunplus/
A Dsppctl.c114 u32 bit_off; in sppctl_get_reg_and_bit_offset() local
118 bit_off = offset % 32; in sppctl_get_reg_and_bit_offset()
120 return bit_off; in sppctl_get_reg_and_bit_offset()
125 u32 bit_off; in sppctl_get_moon_reg_and_bit_offset() local
134 bit_off = offset % 16; in sppctl_get_moon_reg_and_bit_offset()
136 return bit_off; in sppctl_get_moon_reg_and_bit_offset()
141 u32 bit_off; in sppctl_prep_moon_reg_and_offset() local
264 u32 reg_off, bit_off, reg; in sppctl_first_get() local
299 u32 reg_off, bit_off, reg; in sppctl_master_get() local
322 reg |= BIT(bit_off); in sppctl_first_master_set()
[all …]
/linux-6.3-rc2/fs/ocfs2/
A Dlocalalloc.h39 u32 *bit_off,
45 u32 bit_off,
A Dlocalalloc.c717 u32 *bit_off, in ocfs2_claim_local_alloc_bits() argument
742 *bit_off = le32_to_cpu(la->la_bm_off) + start; in ocfs2_claim_local_alloc_bits()
772 u32 bit_off, in ocfs2_free_local_alloc_bits() argument
789 start = bit_off - le32_to_cpu(la->la_bm_off); in ocfs2_free_local_alloc_bits()
954 int bit_off, left, count, start; in ocfs2_sync_local_to_main() local
976 start = count = bit_off = 0; in ocfs2_sync_local_to_main()
979 while ((bit_off = ocfs2_find_next_zero_bit(bitmap, left, start)) in ocfs2_sync_local_to_main()
981 if ((bit_off < left) && (bit_off == start)) { in ocfs2_sync_local_to_main()
1005 if (bit_off >= left) in ocfs2_sync_local_to_main()
1008 start = bit_off + 1; in ocfs2_sync_local_to_main()
A Dsuballoc.c423 u32 bit_off, num_bits; in ocfs2_block_group_alloc_contig() local
429 le16_to_cpu(cl->cl_cpg), &bit_off, in ocfs2_block_group_alloc_contig()
465 u32 *bit_off, u32 *num_bits) in ocfs2_block_group_claim_bits() argument
471 bit_off, num_bits); in ocfs2_block_group_claim_bits()
580 u32 bit_off, num_bits; in ocfs2_block_group_alloc_discontig() local
609 &bit_off, &num_bits); in ocfs2_block_group_alloc_discontig()
1339 unsigned int bit_off, in ocfs2_block_group_set_bits() argument
1374 ocfs2_set_bit(bit_off++, bitmap); in ocfs2_block_group_set_bits()
2383 unsigned int bit_off, in ocfs2_block_group_clear_bits() argument
2419 ocfs2_clear_bit((bit_off + tmp), in ocfs2_block_group_clear_bits()
[all …]
A Dsuballoc.h86 unsigned int bit_off,
A Dalloc.c4782 u32 bit_off, num_bits; in ocfs2_add_clusters_in_btree() local
4820 clusters_to_add, &bit_off, &num_bits); in ocfs2_add_clusters_in_btree()
4838 block = ocfs2_clusters_to_blocks(osb->sb, bit_off); in ocfs2_add_clusters_in_btree()
4841 bit_off, num_bits); in ocfs2_add_clusters_in_btree()
4865 bit_off, num_bits); in ocfs2_add_clusters_in_btree()
4870 ocfs2_clusters_to_blocks(osb->sb, bit_off), in ocfs2_add_clusters_in_btree()
7057 u32 bit_off, num; in ocfs2_convert_inline_data_to_extents() local
7106 ret = ocfs2_claim_clusters(handle, data_ac, 1, &bit_off, in ocfs2_convert_inline_data_to_extents()
7117 block = phys = ocfs2_clusters_to_blocks(inode->i_sb, bit_off); in ocfs2_convert_inline_data_to_extents()
7181 bit_off, num); in ocfs2_convert_inline_data_to_extents()
[all …]
A Ddir.c2769 u32 alloc, dx_alloc, bit_off, len, num_dx_entries = 0; in ocfs2_expand_inline_dir() local
2878 ret = ocfs2_claim_clusters(handle, data_ac, 1, &bit_off, &len); in ocfs2_expand_inline_dir()
2890 blkno = ocfs2_clusters_to_blocks(dir->i_sb, bit_off); in ocfs2_expand_inline_dir()
3019 ret = ocfs2_claim_clusters(handle, data_ac, 1, &bit_off, in ocfs2_expand_inline_dir()
3025 blkno = ocfs2_clusters_to_blocks(dir->i_sb, bit_off); in ocfs2_expand_inline_dir()
A Dxattr.c4275 u32 bit_off, len; in ocfs2_xattr_create_index_block() local
4306 1, 1, &bit_off, &len); in ocfs2_xattr_create_index_block()
4317 blkno = ocfs2_clusters_to_blocks(inode->i_sb, bit_off); in ocfs2_xattr_create_index_block()
5105 u32 clusters_to_add = 1, bit_off, num_bits, v_start = 0; in ocfs2_add_new_xattr_cluster() local
5126 clusters_to_add, &bit_off, &num_bits); in ocfs2_add_new_xattr_cluster()
5135 block = ocfs2_clusters_to_blocks(osb->sb, bit_off); in ocfs2_add_new_xattr_cluster()
/linux-6.3-rc2/tools/testing/selftests/bpf/
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-6.3-rc2/drivers/thermal/samsung/
A Dexynos_tmu.c515 unsigned int reg_off, bit_off; in exynos7_tmu_set_trip_temp() local
519 bit_off = ((8 - trip) % 2); in exynos7_tmu_set_trip_temp()
522 th &= ~(EXYNOS7_TMU_TEMP_MASK << (16 * bit_off)); in exynos7_tmu_set_trip_temp()
523 th |= temp_to_code(data, temp) << (16 * bit_off); in exynos7_tmu_set_trip_temp()
530 unsigned int reg_off, bit_off; in exynos7_tmu_set_trip_hyst() local
534 bit_off = ((8 - trip) % 2); in exynos7_tmu_set_trip_hyst()
537 th &= ~(EXYNOS7_TMU_TEMP_MASK << (16 * bit_off)); in exynos7_tmu_set_trip_hyst()
538 th |= temp_to_code(data, temp - hyst) << (16 * bit_off); in exynos7_tmu_set_trip_hyst()
/linux-6.3-rc2/tools/bpf/bpftool/
A Dbtf.c177 __u32 bit_off, bit_sz; in dump_btf_type() local
180 bit_off = BTF_MEMBER_BIT_OFFSET(m->offset); in dump_btf_type()
183 bit_off = m->offset; in dump_btf_type()
191 jsonw_uint_field(w, "bits_offset", bit_off); in dump_btf_type()
199 name, m->type, bit_off); in dump_btf_type()
/linux-6.3-rc2/tools/lib/bpf/
A Drelo_core.c686 __u32 byte_off, byte_sz, bit_off, bit_sz, field_type_id; in bpf_core_calc_field_relo() local
732 bit_off = spec->bit_offset; in bpf_core_calc_field_relo()
738 byte_off = bit_off / 8 / byte_sz * byte_sz; in bpf_core_calc_field_relo()
740 while (bit_off + bit_sz - byte_off * 8 > byte_sz * 8) { in bpf_core_calc_field_relo()
748 byte_off = bit_off / 8 / byte_sz * byte_sz; in bpf_core_calc_field_relo()
785 *val = 64 - (bit_off + bit_sz - byte_off * 8); in bpf_core_calc_field_relo()
787 *val = (8 - byte_sz) * 8 + (bit_off - byte_off * 8); in bpf_core_calc_field_relo()
/linux-6.3-rc2/fs/btrfs/
A Dfree-space-cache.c4260 u64 bit_off, bit_bytes; in test_check_exists() local
4264 bit_off = offset; in test_check_exists()
4266 ret = search_bitmap(ctl, info, &bit_off, &bit_bytes, false); in test_check_exists()
4268 if (bit_off == offset) { in test_check_exists()
4271 } else if (bit_off > offset && in test_check_exists()
4272 offset + bytes > bit_off) { in test_check_exists()
/linux-6.3-rc2/drivers/gpu/drm/
A Ddrm_fb_helper.c639 off_t bit_off = (off % info->fix.line_length) * 8; in drm_fb_helper_memory_range_to_clip() local
642 x1 = bit_off / info->var.bits_per_pixel; in drm_fb_helper_memory_range_to_clip()

Completed in 78 milliseconds