Home
last modified time | relevance | path

Searched refs:bit_off (Results 1 – 18 of 18) 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()
357 * @bit_off: chunk offset
362 * next hint. It modifies bit_off and bits in-place to be consumed in the
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()
411 * @bit_off
421 pcpu_next_fit_region(struct pcpu_chunk * chunk,int alloc_bits,int align,int * bit_off,int * bits) pcpu_next_fit_region() argument
477 pcpu_for_each_md_free_region(chunk,bit_off,bits) global() argument
483 pcpu_for_each_fit_region(chunk,alloc_bits,align,bit_off,bits) global() argument
712 pcpu_block_update_scan(struct pcpu_chunk * chunk,int bit_off,int bits) pcpu_block_update_scan() argument
748 int bit_off, bits; pcpu_chunk_refresh_hint() local
808 pcpu_block_update_hint_alloc(struct pcpu_chunk * chunk,int bit_off,int bits) pcpu_block_update_hint_alloc() argument
963 pcpu_block_update_hint_free(struct pcpu_chunk * chunk,int bit_off,int bits) pcpu_block_update_hint_free() argument
1073 pcpu_is_populated(struct pcpu_chunk * chunk,int bit_off,int bits,int * next_off) pcpu_is_populated() argument
1114 int bit_off, bits, next_off; pcpu_find_block_fit() local
1222 int bit_off, end, oslot; pcpu_alloc_area() local
1279 int bit_off, bits, end, oslot, freed; pcpu_free_area() local
[all...]
/linux/drivers/pinctrl/sunplus/
H 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
143 bit_off = sppctl_get_moon_reg_and_bit_offset(offset, reg_off); in sppctl_prep_moon_reg_and_offset()
145 return SPPCTL_SET_MOON_REG_BIT(bit_off); in sppctl_prep_moon_reg_and_offset()
147 return SPPCTL_CLR_MOON_REG_BIT(bit_off); in sppctl_prep_moon_reg_and_offset()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Ddefiner.c54 #define _HWS_SET32(p, v, byte_off, bit_off, mask) \ argument
60 (~((mask) << (bit_off)))) | \
62 (bit_off))); \
66 #define HWS_SET32(p, v, byte_off, bit_off, mask) \ argument
68 if (unlikely((bit_off) < 0)) { \
69 u32 _bit_off = -1 * (bit_off); \
73 (bit_off + BITS_IN_DW) % BITS_IN_DW, second_dw_mask); \
75 _HWS_SET32(p, v, byte_off, (bit_off), (mask)); \
80 #define HWS_GET32(p, byte_off, bit_off, mask) \ argument
81 ((be32_to_cpu(*((__be32 *)(p) + ((byte_off) / 4))) >> (bit_off)) & (mask))
[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()
947 int bit_off, left, count, start; in ocfs2_sync_local_to_main() local
973 bit_off = ocfs2_find_next_zero_bit(bitmap, left, start); in ocfs2_sync_local_to_main()
974 if ((bit_off < left) && (bit_off == start)) { in ocfs2_sync_local_to_main()
999 if (bit_off >= left) in ocfs2_sync_local_to_main()
1002 start = bit_off + 1; in ocfs2_sync_local_to_main()
H A Dsuballoc.c496 u32 bit_off, num_bits; in ocfs2_block_group_alloc_contig() local
502 le16_to_cpu(cl->cl_cpg), &bit_off, in ocfs2_block_group_alloc_contig()
511 bg_blkno = ocfs2_clusters_to_blocks(osb->sb, bit_off); in ocfs2_block_group_alloc_contig()
538 u32 *bit_off, u32 *num_bits) in ocfs2_block_group_claim_bits() argument
544 bit_off, num_bits); in ocfs2_block_group_claim_bits()
653 u32 bit_off, num_bits; in ocfs2_block_group_alloc_discontig() local
682 &bit_off, &num_bits); in ocfs2_block_group_alloc_discontig()
691 bg_blkno = ocfs2_clusters_to_blocks(osb->sb, bit_off); in ocfs2_block_group_alloc_discontig()
1436 unsigned int bit_off, in ocfs2_block_group_set_bits() argument
1444 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.c2822 u32 alloc, dx_alloc, bit_off, len, num_dx_entries = 0; in ocfs2_expand_inline_dir() local
2931 ret = ocfs2_claim_clusters(handle, data_ac, 1, &bit_off, &len); in ocfs2_expand_inline_dir()
2943 blkno = ocfs2_clusters_to_blocks(dir->i_sb, bit_off); in ocfs2_expand_inline_dir()
3072 ret = ocfs2_claim_clusters(handle, data_ac, 1, &bit_off, in ocfs2_expand_inline_dir()
3078 blkno = ocfs2_clusters_to_blocks(dir->i_sb, bit_off); in ocfs2_expand_inline_dir()
H A Dxattr.c4301 u32 bit_off, len; in ocfs2_xattr_create_index_block() local
4332 1, 1, &bit_off, &len); in ocfs2_xattr_create_index_block()
4343 blkno = ocfs2_clusters_to_blocks(inode->i_sb, bit_off); in ocfs2_xattr_create_index_block()
5131 u32 clusters_to_add = 1, bit_off, num_bits, v_start = 0; in ocfs2_add_new_xattr_cluster() local
5152 clusters_to_add, &bit_off, &num_bits); in ocfs2_add_new_xattr_cluster()
5161 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/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/
H A Ddpu_hw_catalog.h388 u32 bit_off; member
/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/fs/btrfs/
H A Dfree-space-cache.c4327 u64 bit_off, bit_bytes; in test_check_exists() local
4331 bit_off = offset; in test_check_exists()
4333 ret = search_bitmap(ctl, info, &bit_off, &bit_bytes, false); in test_check_exists()
4335 if (bit_off == offset) { in test_check_exists()
4338 } else if (bit_off > offset && in test_check_exists()
4339 offset + bytes > bit_off) { in test_check_exists()
/linux/drivers/gpu/drm/
H A Ddrm_fb_helper.c506 off_t bit_off = (off % line_length) * 8; in drm_fb_helper_memory_range_to_clip() local
509 x1 = bit_off / info->var.bits_per_pixel; in drm_fb_helper_memory_range_to_clip()