/openbmc/linux/fs/xfs/ |
H A D | xfs_buf_item.c | 63 int first_bit, in xfs_buf_item_straddle() argument 94 int first_bit; in xfs_buf_item_size_segment() local 100 if (first_bit == -1) in xfs_buf_item_size_segment() 138 last_bit = first_bit; in xfs_buf_item_size_segment() 158 first_bit = next_bit; in xfs_buf_item_size_segment() 259 int first_bit, in xfs_buf_item_copy_iovec() argument 278 int first_bit; in xfs_buf_item_format_segment() local 335 first_bit, nbits); in xfs_buf_item_format_segment() 352 last_bit = first_bit; in xfs_buf_item_format_segment() 372 first_bit, nbits); in xfs_buf_item_format_segment() [all …]
|
/openbmc/qemu/hw/virtio/ |
H A D | virtio-mem.c | 217 unsigned long first_bit, last_bit; in virtio_mem_for_each_plugged_range() local 222 while (first_bit < vmem->bitmap_size) { in virtio_mem_for_each_plugged_range() 223 offset = first_bit * vmem->block_size; in virtio_mem_for_each_plugged_range() 267 unsigned long first_bit, last_bit; in virtio_mem_for_each_plugged_section() local 272 first_bit = find_next_bit(vmem->bitmap, vmem->bitmap_size, first_bit); in virtio_mem_for_each_plugged_section() 273 while (first_bit < vmem->bitmap_size) { in virtio_mem_for_each_plugged_section() 276 offset = first_bit * vmem->block_size; in virtio_mem_for_each_plugged_section() 299 unsigned long first_bit, last_bit; in virtio_mem_for_each_unplugged_section() local 304 first_bit = find_next_zero_bit(vmem->bitmap, vmem->bitmap_size, first_bit); in virtio_mem_for_each_unplugged_section() 305 while (first_bit < vmem->bitmap_size) { in virtio_mem_for_each_unplugged_section() [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | rt1019.c | 394 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()
|
H A D | rt1015.c | 893 int ret = 0, first_bit; in rt1015_set_tdm_slot() local 943 first_bit = __ffs(rx_mask); in rt1015_set_tdm_slot() 944 switch (first_bit) { in rt1015_set_tdm_slot() 953 (first_bit << RT1015_TDM_I2S_TX_L_DAC1_1_SFT) | in rt1015_set_tdm_slot() 954 ((first_bit+1) << RT1015_TDM_I2S_TX_R_DAC1_1_SFT)); in rt1015_set_tdm_slot() 964 ((first_bit-1) << RT1015_TDM_I2S_TX_L_DAC1_1_SFT) | in rt1015_set_tdm_slot() 965 (first_bit << RT1015_TDM_I2S_TX_R_DAC1_1_SFT)); in rt1015_set_tdm_slot()
|
H A D | rt1011.c | 1851 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() 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() 1960 switch (first_bit) { in rt1011_set_tdm_slot() 2012 switch (first_bit) { in rt1011_set_tdm_slot() [all …]
|
/openbmc/qemu/scripts/kvm/ |
H A D | vmxcap | 92 def first_bit(key): function 97 for bits in sorted(self.bits.keys(), key = first_bit):
|
/openbmc/linux/arch/x86/kernel/cpu/resctrl/ |
H A D | ctrlmondata.c | 103 unsigned long first_bit, zero_bit, val; in cbm_validate() local 118 first_bit = find_first_bit(&val, cbm_len); in cbm_validate() 119 zero_bit = find_next_zero_bit(&val, cbm_len, first_bit); in cbm_validate() 128 if ((zero_bit - first_bit) < r->cache.min_cbm_bits) { in cbm_validate()
|
H A D | pseudo_lock.c | 130 unsigned long first_bit; in pseudo_lock_minor_get() local 132 first_bit = find_first_bit(&pseudo_lock_minor_avail, MINORBITS); in pseudo_lock_minor_get() 134 if (first_bit == MINORBITS) in pseudo_lock_minor_get() 137 __clear_bit(first_bit, &pseudo_lock_minor_avail); in pseudo_lock_minor_get() 138 *minor = first_bit; in pseudo_lock_minor_get()
|
H A D | rdtgroup.c | 3003 unsigned long first_bit, zero_bit; in cbm_ensure_valid() local 3009 first_bit = find_first_bit(&val, cbm_len); in cbm_ensure_valid() 3010 zero_bit = find_next_zero_bit(&val, cbm_len, first_bit); in cbm_ensure_valid()
|
/openbmc/linux/tools/perf/util/ |
H A D | perf_event_attr_fprintf.c | 21 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()
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 257 | 114 def first_bit(self): member in EmulatedBitmap 392 ebitmap.clear_bit(ebitmap.first_bit) 396 fail_bit = ebitmap.first_bit
|
/openbmc/qemu/hw/core/ |
H A D | numa.c | 211 int i, first_bit, last_bit; in parse_numa_hmat_lb() local 353 first_bit = ctz64(bitmap_copy); in parse_numa_hmat_lb() 354 temp_base = UINT64_C(1) << first_bit; in parse_numa_hmat_lb() 363 if ((last_bit - first_bit) > UINT16_BITS || in parse_numa_hmat_lb()
|
/openbmc/qemu/tests/unit/ |
H A D | test-hbitmap.c | 828 bool first_bit = hbitmap_get(data->hb, start); in test_hbitmap_next_x_check_range() local 831 next < end && hbitmap_get(data->hb, next) == first_bit; in test_hbitmap_next_x_check_range() 841 g_assert_cmpint(next_dirty, ==, first_bit ? start : next); in test_hbitmap_next_x_check_range() 842 g_assert_cmpint(next_zero, ==, first_bit ? next : start); in test_hbitmap_next_x_check_range()
|
/openbmc/qemu/hw/pci/ |
H A D | pcie_aer.c | 424 uint8_t first_bit = ctz32(err->status); in pcie_aer_update_log() local 432 errcap |= PCI_ERR_CAP_FEP(first_bit); in pcie_aer_update_log()
|
/openbmc/linux/drivers/net/wireless/ath/ath5k/ |
H A D | phy.c | 200 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()
|
/openbmc/linux/fs/ocfs2/ |
H A D | alloc.c | 7531 u32 first_bit, last_bit, minlen; in ocfs2_trim_mainbm() local 7584 first_bit = start; in ocfs2_trim_mainbm() 7586 first_bit = start - ocfs2_blocks_to_clusters(sb, in ocfs2_trim_mainbm() 7594 if (first_bit + len >= osb->bitmap_cpg) in ocfs2_trim_mainbm() 7597 last_bit = first_bit + len; in ocfs2_trim_mainbm() 7609 first_bit, last_bit, minlen); in ocfs2_trim_mainbm() 7619 len -= osb->bitmap_cpg - first_bit; in ocfs2_trim_mainbm() 7620 first_bit = 0; in ocfs2_trim_mainbm()
|