Home
last modified time | relevance | path

Searched refs:first_bit (Results 1 – 13 of 13) sorted by relevance

/linux-6.12.1/fs/xfs/
Dxfs_buf_item.c64 int first_bit, in xfs_buf_item_straddle() argument
69 first = xfs_buf_offset(bp, offset + (first_bit << XFS_BLF_SHIFT)); in xfs_buf_item_straddle()
71 offset + ((first_bit + nbits) << XFS_BLF_SHIFT)); in xfs_buf_item_straddle()
95 int first_bit; in xfs_buf_item_size_segment() local
100 first_bit = xfs_next_bit(blfp->blf_data_map, blfp->blf_map_size, 0); in xfs_buf_item_size_segment()
101 if (first_bit == -1) in xfs_buf_item_size_segment()
109 blfp->blf_map_size, first_bit); in xfs_buf_item_size_segment()
117 xfs_buf_item_straddle(bp, offset, first_bit, nbits)) in xfs_buf_item_size_segment()
129 first_bit = xfs_next_bit(blfp->blf_data_map, blfp->blf_map_size, in xfs_buf_item_size_segment()
130 (uint)first_bit + nbits + 1); in xfs_buf_item_size_segment()
[all …]
/linux-6.12.1/sound/soc/codecs/
Drt1019.c394 int ret = 0, first_bit; in rt1019_set_tdm_slot() local
443 first_bit = __ffs(rx_mask); in rt1019_set_tdm_slot()
444 switch (first_bit) { in rt1019_set_tdm_slot()
453 (first_bit << RT1019_TDM_I2S_TX_L_DAC1_1_SFT) | in rt1019_set_tdm_slot()
454 ((first_bit + 1) << RT1019_TDM_I2S_TX_R_DAC1_1_SFT)); in rt1019_set_tdm_slot()
464 ((first_bit - 1) << RT1019_TDM_I2S_TX_L_DAC1_1_SFT) | in rt1019_set_tdm_slot()
465 (first_bit << RT1019_TDM_I2S_TX_R_DAC1_1_SFT)); in rt1019_set_tdm_slot()
Drt1015.c906 int ret = 0, first_bit; in rt1015_set_tdm_slot() local
956 first_bit = __ffs(rx_mask); in rt1015_set_tdm_slot()
957 switch (first_bit) { in rt1015_set_tdm_slot()
966 (first_bit << RT1015_TDM_I2S_TX_L_DAC1_1_SFT) | in rt1015_set_tdm_slot()
967 ((first_bit+1) << RT1015_TDM_I2S_TX_R_DAC1_1_SFT)); in rt1015_set_tdm_slot()
977 ((first_bit-1) << RT1015_TDM_I2S_TX_L_DAC1_1_SFT) | in rt1015_set_tdm_slot()
978 (first_bit << RT1015_TDM_I2S_TX_R_DAC1_1_SFT)); in rt1015_set_tdm_slot()
Drt1011.c1851 int ret = 0, first_bit, last_bit; in rt1011_set_tdm_slot() local
1905 first_bit = __ffs(rx_mask); in rt1011_set_tdm_slot()
1906 switch (first_bit) { in rt1011_set_tdm_slot()
1918 (first_bit << RT1011_TDM_I2S_TX_L_DAC1_1_SFT) | in rt1011_set_tdm_slot()
1919 ((first_bit+1) << RT1011_TDM_I2S_TX_R_DAC1_1_SFT)); in rt1011_set_tdm_slot()
1932 ((first_bit-1) << RT1011_TDM_I2S_TX_L_DAC1_1_SFT) | in rt1011_set_tdm_slot()
1933 (first_bit << RT1011_TDM_I2S_TX_R_DAC1_1_SFT)); in rt1011_set_tdm_slot()
1948 first_bit = __ffs(tx_mask); in rt1011_set_tdm_slot()
1950 if (last_bit - first_bit > 1) { in rt1011_set_tdm_slot()
1959 RT1011_TDM_ADCDAT1_DATA_LOCATION, first_bit); in rt1011_set_tdm_slot()
[all …]
Drt1318.c955 int ret = 0, first_bit; in rt1318_set_tdm_slot() local
1007 first_bit = __ffs(rx_mask); in rt1318_set_tdm_slot()
1008 switch (first_bit) { in rt1318_set_tdm_slot()
1017 (first_bit << RT1318_TDM_I2S_TX_L_DAC1_1_SFT) | in rt1318_set_tdm_slot()
1018 ((first_bit + 1) << RT1318_TDM_I2S_TX_R_DAC1_1_SFT)); in rt1318_set_tdm_slot()
1028 ((first_bit - 1) << RT1318_TDM_I2S_TX_L_DAC1_1_SFT) | in rt1318_set_tdm_slot()
1029 (first_bit << RT1318_TDM_I2S_TX_R_DAC1_1_SFT)); in rt1318_set_tdm_slot()
/linux-6.12.1/mm/
Dswap.h95 bool first_bit; in swap_zeromap_batch() local
97 first_bit = test_bit(start, sis->zeromap); in swap_zeromap_batch()
99 *is_zeromap = first_bit; in swap_zeromap_batch()
103 if (first_bit) in swap_zeromap_batch()
/linux-6.12.1/arch/x86/kernel/cpu/resctrl/
Dctrlmondata.c107 unsigned long first_bit, zero_bit, val; in cbm_validate() local
122 first_bit = find_first_bit(&val, cbm_len); in cbm_validate()
123 zero_bit = find_next_zero_bit(&val, cbm_len, first_bit); in cbm_validate()
132 if ((zero_bit - first_bit) < r->cache.min_cbm_bits) { in cbm_validate()
Dpseudo_lock.c129 unsigned long first_bit; in pseudo_lock_minor_get() local
131 first_bit = find_first_bit(&pseudo_lock_minor_avail, MINORBITS); in pseudo_lock_minor_get()
133 if (first_bit == MINORBITS) in pseudo_lock_minor_get()
136 __clear_bit(first_bit, &pseudo_lock_minor_avail); in pseudo_lock_minor_get()
137 *minor = first_bit; in pseudo_lock_minor_get()
Drdtgroup.c3249 unsigned long first_bit, zero_bit; in cbm_ensure_valid() local
3255 first_bit = find_first_bit(&val, cbm_len); in cbm_ensure_valid()
3256 zero_bit = find_next_zero_bit(&val, cbm_len, first_bit); in cbm_ensure_valid()
/linux-6.12.1/tools/perf/util/
Dperf_event_attr_fprintf.c21 bool first_bit = true; in __p_bits() local
26 buf += scnprintf(buf, size, "%s%s", first_bit ? "" : "|", bits[i].name); in __p_bits()
27 first_bit = false; in __p_bits()
/linux-6.12.1/fs/bcachefs/
Dbkey.c408 unsigned first_bit, offset; in bkey_packed_successor() local
418 first_bit = high_bit_offset + nr_key_bits - 1; in bkey_packed_successor()
419 p = nth_word(high_word(f, out), first_bit >> 6); in bkey_packed_successor()
420 offset = 63 - (first_bit & 63); in bkey_packed_successor()
/linux-6.12.1/drivers/net/wireless/ath/ath5k/
Dphy.c200 u32 mask, data, last_bit, bits_shifted, first_bit; in ath5k_hw_rfb_op() local
223 first_bit = rfreg->field.pos; in ath5k_hw_rfb_op()
233 if (!(col <= 3 && num_bits <= 32 && first_bit + num_bits <= 319)) { in ath5k_hw_rfb_op()
238 entry = ((first_bit - 1) / 8) + offset; in ath5k_hw_rfb_op()
239 position = (first_bit - 1) % 8; in ath5k_hw_rfb_op()
/linux-6.12.1/fs/ocfs2/
Dalloc.c7538 u32 first_bit, last_bit, minlen; in ocfs2_trim_mainbm() local
7591 first_bit = start; in ocfs2_trim_mainbm()
7593 first_bit = start - ocfs2_blocks_to_clusters(sb, in ocfs2_trim_mainbm()
7601 if (first_bit + len >= osb->bitmap_cpg) in ocfs2_trim_mainbm()
7604 last_bit = first_bit + len; in ocfs2_trim_mainbm()
7616 first_bit, last_bit, minlen); in ocfs2_trim_mainbm()
7626 len -= osb->bitmap_cpg - first_bit; in ocfs2_trim_mainbm()
7627 first_bit = 0; in ocfs2_trim_mainbm()