| /Linux-v5.4/fs/btrfs/tests/ |
| D | extent-io-tests.c | 276 for (i = 0; i < len * BITS_PER_BYTE; i++) { in check_eb_bitmap() 286 bit1 = !!extent_buffer_test_bit(eb, i / BITS_PER_BYTE, in check_eb_bitmap() 287 i % BITS_PER_BYTE); in check_eb_bitmap() 310 bitmap_set(bitmap, 0, len * BITS_PER_BYTE); in __test_eb_bitmaps() 311 extent_buffer_bitmap_set(eb, 0, 0, len * BITS_PER_BYTE); in __test_eb_bitmaps() 318 bitmap_clear(bitmap, 0, len * BITS_PER_BYTE); in __test_eb_bitmaps() 319 extent_buffer_bitmap_clear(eb, 0, 0, len * BITS_PER_BYTE); in __test_eb_bitmaps() 329 (PAGE_SIZE - sizeof(long) / 2) * BITS_PER_BYTE, in __test_eb_bitmaps() 330 sizeof(long) * BITS_PER_BYTE); in __test_eb_bitmaps() 332 sizeof(long) * BITS_PER_BYTE); in __test_eb_bitmaps() [all …]
|
| /Linux-v5.4/arch/openrisc/include/asm/ |
| D | cmpxchg.h | 65 int bitoff = (sizeof(u32) - size - off) * BITS_PER_BYTE; in cmpxchg_small() 67 int bitoff = off * BITS_PER_BYTE; in cmpxchg_small() 69 u32 bitmask = ((0x1 << size * BITS_PER_BYTE) - 1) << bitoff; in cmpxchg_small() 97 int bitoff = (sizeof(u32) - size - off) * BITS_PER_BYTE; in xchg_small() 99 int bitoff = off * BITS_PER_BYTE; in xchg_small() 101 u32 bitmask = ((0x1 << size * BITS_PER_BYTE) - 1) << bitoff; in xchg_small()
|
| /Linux-v5.4/drivers/reset/ |
| D | reset-stm32mp1.c | 32 int bank = id / (reg_width * BITS_PER_BYTE); in stm32_reset_update() 33 int offset = id % (reg_width * BITS_PER_BYTE); in stm32_reset_update() 62 int bank = id / (reg_width * BITS_PER_BYTE); in stm32_reset_status() 63 int offset = id % (reg_width * BITS_PER_BYTE); in stm32_reset_status() 100 data->rcdev.nr_resets = resource_size(res) * BITS_PER_BYTE; in stm32_reset_probe()
|
| D | reset-simple.c | 36 int bank = id / (reg_width * BITS_PER_BYTE); in reset_simple_update() 37 int offset = id % (reg_width * BITS_PER_BYTE); in reset_simple_update() 72 int bank = id / (reg_width * BITS_PER_BYTE); in reset_simple_status() 73 int offset = id % (reg_width * BITS_PER_BYTE); in reset_simple_status() 159 data->rcdev.nr_resets = resource_size(res) * BITS_PER_BYTE; in reset_simple_probe()
|
| /Linux-v5.4/tools/include/linux/ |
| D | bitops.h | 17 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long)) 18 #define BITS_TO_U64(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(u64)) 19 #define BITS_TO_U32(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(u32)) 20 #define BITS_TO_BYTES(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE)
|
| D | bits.h | 14 #define BITS_PER_BYTE 8 macro
|
| /Linux-v5.4/arch/mips/kernel/ |
| D | cmpxchg.c | 20 mask = GENMASK((size * BITS_PER_BYTE) - 1, 0); in __xchg_small() 31 shift *= BITS_PER_BYTE; in __xchg_small() 61 mask = GENMASK((size * BITS_PER_BYTE) - 1, 0); in __cmpxchg_small() 73 shift *= BITS_PER_BYTE; in __cmpxchg_small()
|
| /Linux-v5.4/arch/sh/include/asm/ |
| D | bitops-op32.h | 12 #define BYTE_NUMBER(nr) ((nr ^ BITOP_LE_SWIZZLE) / BITS_PER_BYTE) 13 #define BYTE_OFFSET(nr) ((nr ^ BITOP_LE_SWIZZLE) % BITS_PER_BYTE) 15 #define BYTE_NUMBER(nr) ((nr) / BITS_PER_BYTE) 16 #define BYTE_OFFSET(nr) ((nr) % BITS_PER_BYTE)
|
| D | cmpxchg-xchg.h | 23 int bitoff = (sizeof(u32) - size - off) * BITS_PER_BYTE; in __xchg_cmpxchg() 25 int bitoff = off * BITS_PER_BYTE; in __xchg_cmpxchg() 27 u32 bitmask = ((0x1 << size * BITS_PER_BYTE) - 1) << bitoff; in __xchg_cmpxchg()
|
| /Linux-v5.4/drivers/infiniband/hw/hfi1/ |
| D | fault.h | 63 u64 n_rxfaults[(1U << BITS_PER_BYTE)]; 64 u64 n_txfaults[(1U << BITS_PER_BYTE)]; 69 unsigned long opcodes[(1U << BITS_PER_BYTE) / BITS_PER_LONG];
|
| D | fault.c | 158 unsigned long bound = 1U << BITS_PER_BYTE; in fault_opcodes_write() 181 BITS_PER_BYTE); in fault_opcodes_write() 213 size_t bitsize = sizeof(fault->opcodes) * BITS_PER_BYTE; in fault_opcodes_read() 280 sizeof(ibd->fault->opcodes) * BITS_PER_BYTE); in hfi1_fault_init_debugfs() 328 BITS_PER_BYTE))) in __hfi1_should_fault()
|
| /Linux-v5.4/mm/ |
| D | page_idle.c | 16 #define BITMAP_CHUNK_BITS (BITMAP_CHUNK_SIZE * BITS_PER_BYTE) 133 pfn = pos * BITS_PER_BYTE; in page_idle_bitmap_read() 137 end_pfn = pfn + count * BITS_PER_BYTE; in page_idle_bitmap_read() 178 pfn = pos * BITS_PER_BYTE; in page_idle_bitmap_write() 182 end_pfn = pfn + count * BITS_PER_BYTE; in page_idle_bitmap_write()
|
| /Linux-v5.4/tools/testing/selftests/kvm/lib/ |
| D | kvm_util_internal.h | 15 #ifndef BITS_PER_BYTE 16 #define BITS_PER_BYTE 8 macro 20 #define BITS_PER_LONG (BITS_PER_BYTE * sizeof(long))
|
| /Linux-v5.4/lib/ |
| D | test_kasan.c | 705 test_and_set_bit(BITS_PER_LONG + BITS_PER_BYTE, bits); in kasan_bitops() 708 __test_and_set_bit(BITS_PER_LONG + BITS_PER_BYTE, bits); in kasan_bitops() 711 test_and_set_bit_lock(BITS_PER_LONG + BITS_PER_BYTE, bits); in kasan_bitops() 714 test_and_clear_bit(BITS_PER_LONG + BITS_PER_BYTE, bits); in kasan_bitops() 717 __test_and_clear_bit(BITS_PER_LONG + BITS_PER_BYTE, bits); in kasan_bitops() 720 test_and_change_bit(BITS_PER_LONG + BITS_PER_BYTE, bits); in kasan_bitops() 723 __test_and_change_bit(BITS_PER_LONG + BITS_PER_BYTE, bits); in kasan_bitops() 726 (void)test_bit(BITS_PER_LONG + BITS_PER_BYTE, bits); in kasan_bitops() 730 clear_bit_unlock_is_negative_byte(BITS_PER_LONG + BITS_PER_BYTE, bits); in kasan_bitops()
|
| /Linux-v5.4/drivers/mtd/tests/ |
| D | mtd_nandecctest.c | 50 unsigned int offset = prandom_u32() % (size * BITS_PER_BYTE); in single_bit_error_data() 61 offset[0] = prandom_u32() % (size * BITS_PER_BYTE); in double_bit_error_data() 63 offset[1] = prandom_u32() % (size * BITS_PER_BYTE); in double_bit_error_data() 74 unsigned int offset = prandom_u32() % (3 * BITS_PER_BYTE); in random_ecc_bit() 82 offset = prandom_u32() % (3 * BITS_PER_BYTE); in random_ecc_bit()
|
| /Linux-v5.4/drivers/soc/qcom/ |
| D | qcom-geni-se.c | 387 int idx_delta = msb_to_lsb ? -BITS_PER_BYTE : BITS_PER_BYTE; in geni_se_config_packing() 388 int ceil_bpw = ALIGN(bpw, BITS_PER_BYTE); in geni_se_config_packing() 389 int iter = (ceil_bpw * pack_words) / BITS_PER_BYTE; in geni_se_config_packing() 396 len = min_t(int, temp_bpw, BITS_PER_BYTE) - 1; in geni_se_config_packing() 401 if (temp_bpw <= BITS_PER_BYTE) { in geni_se_config_packing() 402 idx = ((i + 1) * BITS_PER_BYTE) + idx_start; in geni_se_config_packing() 406 temp_bpw = temp_bpw - BITS_PER_BYTE; in geni_se_config_packing()
|
| /Linux-v5.4/arch/xtensa/include/asm/ |
| D | cmpxchg.h | 179 int bitoff = (sizeof(u32) - size - off) * BITS_PER_BYTE; in xchg_small() 181 int bitoff = off * BITS_PER_BYTE; in xchg_small() 183 u32 bitmask = ((0x1 << size * BITS_PER_BYTE) - 1) << bitoff; in xchg_small()
|
| /Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| D | fs.h | 37 #define MLX5E_L2_ADDR_HASH_SIZE BIT(BITS_PER_BYTE) 158 #define ARFS_HASH_SHIFT BITS_PER_BYTE 159 #define ARFS_HASH_SIZE BIT(BITS_PER_BYTE)
|
| /Linux-v5.4/net/netfilter/ |
| D | nft_set_bitmap.c | 63 *idx = k / BITS_PER_BYTE; in nft_bitmap_location() 64 *off = k % BITS_PER_BYTE; in nft_bitmap_location() 245 return ((2 << ((klen * BITS_PER_BYTE) - 1)) / BITS_PER_BYTE) << 1; in nft_bitmap_size()
|
| D | nft_cmp.c | 171 desc.len *= BITS_PER_BYTE; in nft_cmp_fast_init() 191 .len = priv->len / BITS_PER_BYTE, in nft_cmp_fast_offload() 210 NFT_DATA_VALUE, priv->len / BITS_PER_BYTE) < 0) in nft_cmp_fast_dump()
|
| /Linux-v5.4/drivers/input/rmi4/ |
| D | rmi_driver.h | 49 #define RMI_REG_DESC_PRESENSE_BITS (32 * BITS_PER_BYTE) 50 #define RMI_REG_DESC_SUBPACKET_BITS (37 * BITS_PER_BYTE)
|
| /Linux-v5.4/drivers/gpio/ |
| D | gpio-msic.c | 232 for (i = 0; i < (mg->chip.ngpio / BITS_PER_BYTE); i++) { in msic_gpio_irq_handler() 236 for_each_set_bit(bitnr, &pending, BITS_PER_BYTE) in msic_gpio_irq_handler() 237 generic_handle_irq(mg->irq_base + i * BITS_PER_BYTE + bitnr); in msic_gpio_irq_handler()
|
| /Linux-v5.4/drivers/nvmem/ |
| D | core.c | 147 BITS_PER_BYTE); in nvmem_cell_info_to_nvmem_cell() 324 BITS_PER_BYTE); in nvmem_add_cells_from_of() 918 *p |= *b << (BITS_PER_BYTE - bit_offset); in nvmem_shift_read_buffer_in_place() 929 extra = cell->bytes - DIV_ROUND_UP(cell->nbits, BITS_PER_BYTE); in nvmem_shift_read_buffer_in_place() 934 *p &= GENMASK((cell->nbits%BITS_PER_BYTE) - 1, 0); in nvmem_shift_read_buffer_in_place() 1019 pbits = pbyte >> (BITS_PER_BYTE - 1 - bit_offset); in nvmem_cell_prepare_write_buffer() 1028 if ((nbits + bit_offset) % BITS_PER_BYTE) { in nvmem_cell_prepare_write_buffer() 1034 *p |= GENMASK(7, (nbits + bit_offset) % BITS_PER_BYTE) & v; in nvmem_cell_prepare_write_buffer()
|
| /Linux-v5.4/arch/mips/kvm/ |
| D | interrupt.c | 221 BITS_PER_BYTE * sizeof(*pending_clr), in kvm_mips_deliver_interrupts() 233 BITS_PER_BYTE * sizeof(*pending), in kvm_mips_deliver_interrupts()
|
| /Linux-v5.4/drivers/pinctrl/ |
| D | pinctrl-single.c | 281 mux_bytes = pcs->width / BITS_PER_BYTE; in pcs_pin_dbg_show() 396 mux_bytes = pcs->width / BITS_PER_BYTE; in pcs_request_gpio() 401 byte_num = (pcs->bits_per_pin * pin) / BITS_PER_BYTE; in pcs_request_gpio() 484 offset = pin * (pcs->width / BITS_PER_BYTE); in pcs_pinconf_get() 542 offset = pin * (pcs->width / BITS_PER_BYTE); in pcs_pinconf_set() 704 mux_bytes = pcs->width / BITS_PER_BYTE; in pcs_allocate_pin_table() 708 nr_pins = (pcs->size * BITS_PER_BYTE) / pcs->bits_per_pin; in pcs_allocate_pin_table() 731 byte_num = (pcs->bits_per_pin * i) / BITS_PER_BYTE; in pcs_allocate_pin_table() 808 index = (offset * BITS_PER_BYTE) / pcs->bits_per_pin; in pcs_get_pin_by_offset() 810 index = offset / (pcs->width / BITS_PER_BYTE); in pcs_get_pin_by_offset() [all …]
|