| /linux-6.15/drivers/video/fbdev/core/ |
| H A D | cfbmem.h | 20 ptr.address = PTR_ALIGN_DOWN(base, BITS_PER_LONG / BITS_PER_BYTE); in fb_address_init() 21 ptr.bits = (base - ptr.address) * BITS_PER_BYTE; in fb_address_init() 29 fb_writel(val, dst->address + offset * (BITS_PER_LONG / BITS_PER_BYTE)); in fb_write_offset() 31 fb_writeq(val, dst->address + offset * (BITS_PER_LONG / BITS_PER_BYTE)); in fb_write_offset() 39 return fb_readl(src->address + offset * (BITS_PER_LONG / BITS_PER_BYTE)); in fb_read_offset() 41 return fb_readq(src->address + offset * (BITS_PER_LONG / BITS_PER_BYTE)); in fb_read_offset()
|
| H A D | fb_imageblit.h | 42 int bit = ~iter->i & (BITS_PER_BYTE-1); in fb_bitmap_image() 43 int byte = iter->i++ / BITS_PER_BYTE; in fb_bitmap_image() 96 if (iter->i >= BITS_PER_BYTE/2) { in fb_bitmap4x_image() 97 iter->i -= BITS_PER_BYTE/2; in fb_bitmap4x_image() 100 data = *iter->data++ >> BITS_PER_BYTE/2; in fb_bitmap4x_image() 108 data = *iter->data++ >> BITS_PER_BYTE/2; in fb_bitmap4x_image() 110 data >>= BITS_PER_BYTE/2 - iter->i; in fb_bitmap4x_image() 114 *bits = iter->bpp * BITS_PER_BYTE/2; in fb_bitmap4x_image() 180 iter.shift = BITS_PER_BYTE - bpp; in fb_color_imageblit() 219 static const u32 mul[BITS_PER_BYTE] = { in fb_bitmap4x_imageblit() [all …]
|
| H A D | fb_draw.h | 18 adr->address += offset * (BITS_PER_LONG / BITS_PER_BYTE); in fb_address_move_long() 27 adr->address += (bits & ~(BITS_PER_LONG - 1u)) / BITS_PER_BYTE; in fb_address_forward() 37 adr->address -= (adr->bits - bits) / BITS_PER_BYTE; in fb_address_backward() 39 adr->address += (bits - adr->bits) / BITS_PER_BYTE; in fb_address_backward() 155 reverse.pixel = info->var.bits_per_pixel < BITS_PER_BYTE in fb_reverse_init()
|
| H A D | sysmem.h | 20 ptr.address = PTR_ALIGN_DOWN(base, BITS_PER_LONG / BITS_PER_BYTE); in fb_address_init() 21 ptr.bits = (base - ptr.address) * BITS_PER_BYTE; in fb_address_init()
|
| /linux-6.15/lib/ |
| H A D | packing.c | 87 int plogical_first_u8 = startbit / BITS_PER_BYTE; in __pack() 88 int plogical_last_u8 = endbit / BITS_PER_BYTE; in __pack() 118 box_start_bit = startbit % BITS_PER_BYTE; in __pack() 122 box_end_bit = endbit % BITS_PER_BYTE; in __pack() 134 proj_end_bit = ((box * BITS_PER_BYTE) + box_end_bit) - endbit; in __pack() 204 int plogical_first_u8 = startbit / BITS_PER_BYTE; in __unpack() 205 int plogical_last_u8 = endbit / BITS_PER_BYTE; in __unpack() 229 box_start_bit = startbit % BITS_PER_BYTE; in __unpack() 233 box_end_bit = endbit % BITS_PER_BYTE; in __unpack() 245 proj_end_bit = ((box * BITS_PER_BYTE) + box_end_bit) - endbit; in __unpack() [all …]
|
| /linux-6.15/fs/btrfs/tests/ |
| H A D | extent-io-tests.c | 346 for (i = 0; i < eb->len * BITS_PER_BYTE; i++) { in check_eb_bitmap() 360 i, i / BITS_PER_BYTE, has, expect); in check_eb_bitmap() 365 i % BITS_PER_BYTE); in check_eb_bitmap() 375 i / BITS_PER_BYTE, i % BITS_PER_BYTE, in check_eb_bitmap() 376 i / BITS_PER_BYTE, has, expect); in check_eb_bitmap() 420 byte_len * BITS_PER_BYTE); in __test_eb_bitmaps() 429 byte_len * BITS_PER_BYTE); in __test_eb_bitmaps() 461 sizeof(long) * BITS_PER_BYTE); in __test_eb_bitmaps() 466 byte_len * BITS_PER_BYTE); in __test_eb_bitmaps() 472 sizeof(long) * BITS_PER_BYTE); in __test_eb_bitmaps() [all …]
|
| /linux-6.15/arch/openrisc/include/asm/ |
| H A 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-6.15/drivers/md/dm-vdo/indexer/ |
| H A D | delta-index.c | 97 ((U16_MAX + BITS_PER_BYTE) / BITS_PER_BYTE + POST_FIELD_GUARD_BYTES) 144 return delta_list->start / BITS_PER_BYTE; in get_delta_list_byte_start() 415 int shift = offset % BITS_PER_BYTE; in set_field() 458 BITS_PER_BYTE / IMMUTABLE_HEADER_SIZE)) in verify_delta_index_page() 573 u8 shift = offset % BITS_PER_BYTE; in set_big_field() 586 u8 shift = offset % BITS_PER_BYTE; in set_zero() 587 u32 count = size + shift > BITS_PER_BYTE ? (u32) BITS_PER_BYTE - shift : size; in set_zero() 590 for (size -= count; size > BITS_PER_BYTE; size -= BITS_PER_BYTE) in set_zero() 730 free_bits = memory_size * BITS_PER_BYTE; in uds_pack_delta_index_page() 1418 int shift = offset % BITS_PER_BYTE; in get_collision_name() [all …]
|
| /linux-6.15/drivers/net/ethernet/intel/ice/ |
| H A D | ice_parser.c | 352 idd = (ICE_IM_ALU_BA_S + off) / BITS_PER_BYTE; in ice_imem_alu_init() 353 off = (ICE_IM_ALU_BA_S + off) % BITS_PER_BYTE; in ice_imem_alu_init() 1062 for (i = 0; i < BITS_PER_BYTE; i++) { in ice_ternary_match_byte() 1234 idd = (ICE_BST_ALU_BA_S + off) / BITS_PER_BYTE; in ice_bst_alu_init() 1235 off = (ICE_BST_ALU_BA_S + off) % BITS_PER_BYTE; in ice_bst_alu_init() 1292 #define ICE_BT_KEY_IDD (ICE_BT_KEY_S / BITS_PER_BYTE) 1294 #define ICE_BT_KIV_IDD (ICE_BT_KIV_S / BITS_PER_BYTE) 1296 #define ICE_BT_HIG_IDD (ICE_BT_HIG_S / BITS_PER_BYTE) 1298 #define ICE_BT_PGP_IDD (ICE_BT_PGP_S / BITS_PER_BYTE) 1623 idd = (ICE_PROTO_GRP_ITEM_SIZE * i) / BITS_PER_BYTE; in ice_proto_grp_parse_item() [all …]
|
| /linux-6.15/drivers/firmware/efi/libstub/ |
| H A D | unaccepted_memory.c | 63 EFI_UNACCEPTED_UNIT_SIZE * BITS_PER_BYTE); in allocate_unaccepted_bitmap() 161 if (end > bitmap_size * unit_size * BITS_PER_BYTE) { in process_unaccepted_memory() 164 phys_start = bitmap_size * unit_size * BITS_PER_BYTE + in process_unaccepted_memory() 169 end = bitmap_size * unit_size * BITS_PER_BYTE; in process_unaccepted_memory() 206 if (end > unaccepted_table->size * unit_size * BITS_PER_BYTE) in accept_memory() 207 end = unaccepted_table->size * unit_size * BITS_PER_BYTE; in accept_memory()
|
| /linux-6.15/arch/mips/kernel/ |
| H A 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-6.15/arch/sh/include/asm/ |
| H A D | bitops-op32.h | 14 #define BYTE_NUMBER(nr) ((nr ^ BITOP_LE_SWIZZLE) / BITS_PER_BYTE) 15 #define BYTE_OFFSET(nr) ((nr ^ BITOP_LE_SWIZZLE) % BITS_PER_BYTE) 17 #define BYTE_NUMBER(nr) ((nr) / BITS_PER_BYTE) 18 #define BYTE_OFFSET(nr) ((nr) % BITS_PER_BYTE)
|
| H A 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-6.15/drivers/infiniband/hw/hfi1/ |
| H A D | fault.h | 23 u64 n_rxfaults[(1U << BITS_PER_BYTE)]; 24 u64 n_txfaults[(1U << BITS_PER_BYTE)]; 29 unsigned long opcodes[(1U << BITS_PER_BYTE) / BITS_PER_LONG];
|
| /linux-6.15/mm/ |
| H A D | page_idle.c | 19 #define BITMAP_CHUNK_BITS (BITMAP_CHUNK_SIZE * BITS_PER_BYTE) 131 pfn = pos * BITS_PER_BYTE; in page_idle_bitmap_read() 135 end_pfn = pfn + count * BITS_PER_BYTE; in page_idle_bitmap_read() 176 pfn = pos * BITS_PER_BYTE; in page_idle_bitmap_write() 180 end_pfn = pfn + count * BITS_PER_BYTE; in page_idle_bitmap_write()
|
| /linux-6.15/drivers/base/regmap/ |
| H A D | regmap-sdw-mbq.c | 77 int shift = mbq_size * BITS_PER_BYTE; in regmap_sdw_mbq_write_impl() 81 shift -= BITS_PER_BYTE; in regmap_sdw_mbq_write_impl() 131 int shift = BITS_PER_BYTE; in regmap_sdw_mbq_read_impl() 150 shift += BITS_PER_BYTE; in regmap_sdw_mbq_read_impl() 196 if (config->val_bits > (sizeof(unsigned int) * BITS_PER_BYTE)) in regmap_sdw_mbq_config_check() 225 ctx->val_size = config->val_bits / BITS_PER_BYTE; in regmap_sdw_mbq_gen_context()
|
| /linux-6.15/drivers/reset/ |
| H A D | reset-simple.c | 35 int bank = id / (reg_width * BITS_PER_BYTE); in reset_simple_update() 36 int offset = id % (reg_width * BITS_PER_BYTE); in reset_simple_update() 89 int bank = id / (reg_width * BITS_PER_BYTE); in reset_simple_status() 90 int offset = id % (reg_width * BITS_PER_BYTE); in reset_simple_status() 181 data->rcdev.nr_resets = resource_size(res) * BITS_PER_BYTE; in reset_simple_probe()
|
| /linux-6.15/net/netfilter/ |
| H A D | nft_set_pipapo.h | 16 #define NFT_PIPAPO_MAX_BITS (NFT_PIPAPO_MAX_BYTES * BITS_PER_BYTE) 25 #define NFT_PIPAPO_GROUPS_PER_BYTE(f) (BITS_PER_BYTE / (f)->bb) 196 for (group = 0; group < f->groups; group += BITS_PER_BYTE / 4, data++) { in pipapo_and_field_buckets_4bit() 262 rules = ilog2(desc->field_len[i] * BITS_PER_BYTE) * 2; in pipapo_estimate_size() 265 BITS_PER_BYTE; in pipapo_estimate_size()
|
| H A D | nft_cmp.c | 204 data) * BITS_PER_BYTE - len)); in nft_cmp_fast_mask() 229 desc.len *= BITS_PER_BYTE; in nft_cmp_fast_init() 250 .len = priv->len / BITS_PER_BYTE, in nft_cmp_fast_offload() 271 NFT_DATA_VALUE, priv->len / BITS_PER_BYTE) < 0) in nft_cmp_fast_dump() 291 return (__force u32)cpu_to_le32(~0U >> (sizeof(u32) * BITS_PER_BYTE - bitlen)); in nft_cmp_mask() 296 int len = bitlen / BITS_PER_BYTE; in nft_cmp16_fast_mask() 301 bitlen -= sizeof(u32) * BITS_PER_BYTE; in nft_cmp16_fast_mask() 330 nft_cmp16_fast_mask(&priv->mask, desc.len * BITS_PER_BYTE); in nft_cmp16_fast_init()
|
| H A D | nft_set_pipapo.c | 988 v = k[group / (BITS_PER_BYTE / f->bb)]; in pipapo_insert() 990 v >>= (BITS_PER_BYTE - bit_offset) - f->bb; in pipapo_insert() 993 bit_offset %= BITS_PER_BYTE; in pipapo_insert() 1032 return !(BIT(step % BITS_PER_BYTE) & base[step / BITS_PER_BYTE]); in pipapo_step_diff() 1034 return !(BIT(step % BITS_PER_BYTE) & in pipapo_step_diff() 1035 base[len - 1 - step / BITS_PER_BYTE]); in pipapo_step_diff() 1061 tmp[i / BITS_PER_BYTE] |= BIT(i % BITS_PER_BYTE); in pipapo_step_after_end() 1063 tmp[len - 1 - i / BITS_PER_BYTE] |= BIT(i % BITS_PER_BYTE); in pipapo_step_after_end() 1089 base[i] += 1 << (step % BITS_PER_BYTE); 1990 if (bit_offset >= BITS_PER_BYTE) { [all …]
|
| /linux-6.15/include/linux/ |
| H A D | units.h | 38 #define BYTES_PER_KBIT (KILO / BITS_PER_BYTE) 39 #define BYTES_PER_MBIT (MEGA / BITS_PER_BYTE) 40 #define BYTES_PER_GBIT (GIGA / BITS_PER_BYTE)
|
| /linux-6.15/drivers/firmware/efi/ |
| H A D | unaccepted_memory.c | 90 if (end > unaccepted->size * unit_size * BITS_PER_BYTE) in accept_memory() 91 end = unaccepted->size * unit_size * BITS_PER_BYTE; in accept_memory() 195 if (end > unaccepted->size * unit_size * BITS_PER_BYTE) in range_contains_unaccepted_memory() 196 end = unaccepted->size * unit_size * BITS_PER_BYTE; in range_contains_unaccepted_memory()
|
| /linux-6.15/arch/loongarch/include/asm/ |
| H A D | cmpxchg.h | 33 mask = GENMASK((size * BITS_PER_BYTE) - 1, 0); in __xchg_small() 42 shift *= BITS_PER_BYTE; in __xchg_small() 122 mask = GENMASK((size * BITS_PER_BYTE) - 1, 0); in __cmpxchg_small() 132 shift *= BITS_PER_BYTE; in __cmpxchg_small()
|
| /linux-6.15/include/linux/can/ |
| H A D | length.h | 187 (data_len) * BITS_PER_BYTE + \ 199 (data_len) * BITS_PER_BYTE) + \ 243 BITS_PER_BYTE)
|
| /linux-6.15/drivers/mtd/tests/ |
| H A D | mtd_nandecctest.c | 50 unsigned int offset = get_random_u32_below(size * BITS_PER_BYTE); in single_bit_error_data() 61 offset[0] = get_random_u32_below(size * BITS_PER_BYTE); in double_bit_error_data() 63 offset[1] = get_random_u32_below(size * BITS_PER_BYTE); in double_bit_error_data() 74 unsigned int offset = get_random_u32_below(3 * BITS_PER_BYTE); in random_ecc_bit() 82 offset = get_random_u32_below(3 * BITS_PER_BYTE); in random_ecc_bit()
|