Home
last modified time | relevance | path

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

/Linux-v4.19/mm/
Dpercpu.c332 static void pcpu_next_md_free_region(struct pcpu_chunk *chunk, int *bit_off, in pcpu_next_md_free_region() argument
335 int i = pcpu_off_to_block_index(*bit_off); in pcpu_next_md_free_region()
336 int block_off = pcpu_off_to_block_off(*bit_off); in pcpu_next_md_free_region()
361 *bit_off = pcpu_block_off_to_off(i, in pcpu_next_md_free_region()
369 *bit_off = (i + 1) * PCPU_BITMAP_BLOCK_BITS - block->right_free; in pcpu_next_md_free_region()
388 int align, int *bit_off, int *bits) in pcpu_next_fit_region() argument
390 int i = pcpu_off_to_block_index(*bit_off); in pcpu_next_fit_region()
391 int block_off = pcpu_off_to_block_off(*bit_off); in pcpu_next_fit_region()
418 *bit_off = pcpu_block_off_to_off(i, block->first_free); in pcpu_next_fit_region()
424 *bit_off = ALIGN(PCPU_BITMAP_BLOCK_BITS - block->right_free, in pcpu_next_fit_region()
[all …]
/Linux-v4.19/drivers/pinctrl/
Dpinctrl-digicolor.c134 int bit_off, reg_off; in dc_set_mux() local
137 dc_client_sel(group, &reg_off, &bit_off); in dc_set_mux()
140 reg &= ~(3 << bit_off); in dc_set_mux()
141 reg |= (selector << bit_off); in dc_set_mux()
152 int bit_off, reg_off; in dc_pmx_request_gpio() local
155 dc_client_sel(offset, &reg_off, &bit_off); in dc_pmx_request_gpio()
158 if ((reg & (3 << bit_off)) != 0) in dc_pmx_request_gpio()
176 int bit_off = gpio % PINS_PER_COLLECTION; in dc_gpio_direction_input() local
182 drive &= ~BIT(bit_off); in dc_gpio_direction_input()
196 int bit_off = gpio % PINS_PER_COLLECTION; in dc_gpio_direction_output() local
[all …]
/Linux-v4.19/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_hw_vbif.c69 u32 bit_off; in dpu_hw_set_mem_type() local
87 bit_off = (xin_id & 0x7) * 4; in dpu_hw_set_mem_type()
89 reg_val &= ~(0x7 << bit_off); in dpu_hw_set_mem_type()
90 reg_val |= (value & 0x7) << bit_off; in dpu_hw_set_mem_type()
100 u32 bit_off; in dpu_hw_set_limit_conf() local
108 bit_off = (xin_id % 4) * 8; in dpu_hw_set_limit_conf()
110 reg_val &= ~(0xFF << bit_off); in dpu_hw_set_limit_conf()
111 reg_val |= (limit) << bit_off; in dpu_hw_set_limit_conf()
121 u32 bit_off; in dpu_hw_get_limit_conf() local
130 bit_off = (xin_id % 4) * 8; in dpu_hw_get_limit_conf()
[all …]
Ddpu_hw_catalog.c76 .reg_off = 0x2AC, .bit_off = 0},
78 .reg_off = 0x2B4, .bit_off = 0},
80 .reg_off = 0x2BC, .bit_off = 0},
82 .reg_off = 0x2C4, .bit_off = 0},
84 .reg_off = 0x2AC, .bit_off = 8},
86 .reg_off = 0x2B4, .bit_off = 8},
88 .reg_off = 0x2BC, .bit_off = 8},
90 .reg_off = 0x2C4, .bit_off = 8},
Ddpu_hw_top.c122 u32 reg_off, bit_off; in dpu_hw_setup_clk_force_ctrl() local
135 bit_off = mdp->caps->clk_ctrls[clk_ctrl].bit_off; in dpu_hw_setup_clk_force_ctrl()
140 new_val = reg_val | BIT(bit_off); in dpu_hw_setup_clk_force_ctrl()
142 new_val = reg_val & ~BIT(bit_off); in dpu_hw_setup_clk_force_ctrl()
146 clk_forced_on = !(reg_val & BIT(bit_off)); in dpu_hw_setup_clk_force_ctrl()
Ddpu_hw_catalog.h421 u32 bit_off; member
/Linux-v4.19/fs/ocfs2/
Dlocalalloc.h55 u32 *bit_off,
61 u32 bit_off,
Dlocalalloc.c728 u32 *bit_off, in ocfs2_claim_local_alloc_bits() argument
753 *bit_off = le32_to_cpu(la->la_bm_off) + start; in ocfs2_claim_local_alloc_bits()
783 u32 bit_off, in ocfs2_free_local_alloc_bits() argument
800 start = bit_off - le32_to_cpu(la->la_bm_off); in ocfs2_free_local_alloc_bits()
966 int bit_off, left, count, start; in ocfs2_sync_local_to_main() local
988 start = count = bit_off = 0; in ocfs2_sync_local_to_main()
991 while ((bit_off = ocfs2_find_next_zero_bit(bitmap, left, start)) in ocfs2_sync_local_to_main()
993 if ((bit_off < left) && (bit_off == start)) { in ocfs2_sync_local_to_main()
1017 if (bit_off >= left) in ocfs2_sync_local_to_main()
1020 start = bit_off + 1; in ocfs2_sync_local_to_main()
Dsuballoc.c439 u32 bit_off, num_bits; in ocfs2_block_group_alloc_contig() local
445 le16_to_cpu(cl->cl_cpg), &bit_off, in ocfs2_block_group_alloc_contig()
454 bg_blkno = ocfs2_clusters_to_blocks(osb->sb, bit_off); in ocfs2_block_group_alloc_contig()
481 u32 *bit_off, u32 *num_bits) in ocfs2_block_group_claim_bits() argument
487 bit_off, num_bits); in ocfs2_block_group_claim_bits()
596 u32 bit_off, num_bits; in ocfs2_block_group_alloc_discontig() local
625 &bit_off, &num_bits); in ocfs2_block_group_alloc_discontig()
634 bg_blkno = ocfs2_clusters_to_blocks(osb->sb, bit_off); in ocfs2_block_group_alloc_discontig()
1352 unsigned int bit_off, in ocfs2_block_group_set_bits() argument
1364 trace_ocfs2_block_group_set_bits(bit_off, num_bits); in ocfs2_block_group_set_bits()
[all …]
Dsuballoc.h102 unsigned int bit_off,
Dalloc.c4799 u32 bit_off, num_bits; in ocfs2_add_clusters_in_btree() local
4837 clusters_to_add, &bit_off, &num_bits); in ocfs2_add_clusters_in_btree()
4855 block = ocfs2_clusters_to_blocks(osb->sb, bit_off); in ocfs2_add_clusters_in_btree()
4858 bit_off, num_bits); in ocfs2_add_clusters_in_btree()
4882 bit_off, num_bits); in ocfs2_add_clusters_in_btree()
4887 ocfs2_clusters_to_blocks(osb->sb, bit_off), in ocfs2_add_clusters_in_btree()
7053 u32 bit_off, num; in ocfs2_convert_inline_data_to_extents() local
7110 ret = ocfs2_claim_clusters(handle, data_ac, 1, &bit_off, in ocfs2_convert_inline_data_to_extents()
7121 block = phys = ocfs2_clusters_to_blocks(inode->i_sb, bit_off); in ocfs2_convert_inline_data_to_extents()
7197 bit_off, num); in ocfs2_convert_inline_data_to_extents()
[all …]
Ddir.c2798 u32 alloc, dx_alloc, bit_off, len, num_dx_entries = 0; in ocfs2_expand_inline_dir() local
2907 ret = ocfs2_claim_clusters(handle, data_ac, 1, &bit_off, &len); in ocfs2_expand_inline_dir()
2919 blkno = ocfs2_clusters_to_blocks(dir->i_sb, bit_off); in ocfs2_expand_inline_dir()
3048 ret = ocfs2_claim_clusters(handle, data_ac, 1, &bit_off, in ocfs2_expand_inline_dir()
3054 blkno = ocfs2_clusters_to_blocks(dir->i_sb, bit_off); in ocfs2_expand_inline_dir()
Dxattr.c4288 u32 bit_off, len; in ocfs2_xattr_create_index_block() local
4319 1, 1, &bit_off, &len); in ocfs2_xattr_create_index_block()
4330 blkno = ocfs2_clusters_to_blocks(inode->i_sb, bit_off); in ocfs2_xattr_create_index_block()
5118 u32 clusters_to_add = 1, bit_off, num_bits, v_start = 0; in ocfs2_add_new_xattr_cluster() local
5139 clusters_to_add, &bit_off, &num_bits); in ocfs2_add_new_xattr_cluster()
5148 block = ocfs2_clusters_to_blocks(osb->sb, bit_off); in ocfs2_add_new_xattr_cluster()
/Linux-v4.19/drivers/thermal/samsung/
Dexynos_tmu.c536 unsigned int reg_off, bit_off; in exynos7_tmu_set_trip_temp() local
540 bit_off = ((8 - trip) % 2); in exynos7_tmu_set_trip_temp()
543 th &= ~(EXYNOS7_TMU_TEMP_MASK << (16 * bit_off)); in exynos7_tmu_set_trip_temp()
544 th |= temp_to_code(data, temp) << (16 * bit_off); in exynos7_tmu_set_trip_temp()
551 unsigned int reg_off, bit_off; in exynos7_tmu_set_trip_hyst() local
555 bit_off = ((8 - trip) % 2); in exynos7_tmu_set_trip_hyst()
558 th &= ~(EXYNOS7_TMU_TEMP_MASK << (16 * bit_off)); in exynos7_tmu_set_trip_hyst()
559 th |= temp_to_code(data, temp - hyst) << (16 * bit_off); in exynos7_tmu_set_trip_hyst()
/Linux-v4.19/fs/btrfs/
Dfree-space-cache.c3632 u64 bit_off, bit_bytes; in test_check_exists() local
3636 bit_off = offset; in test_check_exists()
3638 ret = search_bitmap(ctl, info, &bit_off, &bit_bytes, false); in test_check_exists()
3640 if (bit_off == offset) { in test_check_exists()
3643 } else if (bit_off > offset && in test_check_exists()
3644 offset + bytes > bit_off) { in test_check_exists()