Searched refs:BITS_PER_BYTE (Results 1 - 67 of 67) sorted by relevance

/linux-4.1.27/tools/include/linux/
H A Dbitops.h16 #define BITS_PER_BYTE 8 macro
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)
/linux-4.1.27/fs/ext3/
H A Dbitmap.c16 return numchars * BITS_PER_BYTE - memweight(map->b_data, numchars); ext3_count_free()
/linux-4.1.27/fs/qnx4/
H A Dbitmap.c36 total_free += bytes * BITS_PER_BYTE - qnx4_count_free_blocks()
/linux-4.1.27/include/net/netfilter/
H A Dnf_conntrack_labels.h10 #define NF_CT_LABELS_MAX_SIZE ((XT_CONNLABEL_MAXBIT + 1) / BITS_PER_BYTE)
H A Dnf_tables_core.h23 data) * BITS_PER_BYTE - len)); nft_cmp_fast_mask()
H A Dnf_tables.h945 #define NFT_SET_ELEM_BUSY_BIT (BITS_PER_LONG - BITS_PER_BYTE + 2)
/linux-4.1.27/arch/sh/include/asm/
H A Dbitops-op32.h11 #define BYTE_NUMBER(nr) ((nr ^ BITOP_LE_SWIZZLE) / BITS_PER_BYTE)
12 #define BYTE_OFFSET(nr) ((nr ^ BITOP_LE_SWIZZLE) % BITS_PER_BYTE)
14 #define BYTE_NUMBER(nr) ((nr) / BITS_PER_BYTE)
15 #define BYTE_OFFSET(nr) ((nr) % BITS_PER_BYTE)
/linux-4.1.27/drivers/mtd/tests/
H A Dmtd_nandecctest.c49 unsigned int offset = prandom_u32() % (size * BITS_PER_BYTE); single_bit_error_data()
60 offset[0] = prandom_u32() % (size * BITS_PER_BYTE); double_bit_error_data()
62 offset[1] = prandom_u32() % (size * BITS_PER_BYTE); double_bit_error_data()
73 unsigned int offset = prandom_u32() % (3 * BITS_PER_BYTE); random_ecc_bit()
81 offset = prandom_u32() % (3 * BITS_PER_BYTE); random_ecc_bit()
/linux-4.1.27/include/linux/
H A Df2fs_fs.h422 #define SIZE_OF_DENTRY_BITMAP ((NR_DENTRY_IN_BLOCK + BITS_PER_BYTE - 1) / \
423 BITS_PER_BYTE)
446 #define NR_INLINE_DENTRY (MAX_INLINE_DATA * BITS_PER_BYTE / \
448 BITS_PER_BYTE + 1))
450 BITS_PER_BYTE - 1) / BITS_PER_BYTE)
H A Dbitops.h12 #define BITS_PER_BYTE 8 macro
13 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long))
/linux-4.1.27/arch/mips/kvm/
H A Dinterrupt.c221 BITS_PER_BYTE * sizeof(*pending_clr), kvm_mips_deliver_interrupts()
233 BITS_PER_BYTE * sizeof(*pending), kvm_mips_deliver_interrupts()
/linux-4.1.27/net/netfilter/
H A Dnft_cmp.c138 desc.len *= BITS_PER_BYTE; nft_cmp_fast_init()
158 NFT_DATA_VALUE, priv->len / BITS_PER_BYTE) < 0) nft_cmp_fast_dump()
H A Dnf_tables_api.c2355 if (tmp < min || tmp >= min + BITS_PER_BYTE * PAGE_SIZE) nf_tables_set_alloc_name()
2361 n = find_first_zero_bit(inuse, BITS_PER_BYTE * PAGE_SIZE); nf_tables_set_alloc_name()
2362 if (n >= BITS_PER_BYTE * PAGE_SIZE) { nf_tables_set_alloc_name()
2363 min += BITS_PER_BYTE * PAGE_SIZE; nf_tables_set_alloc_name()
/linux-4.1.27/fs/ext4/
H A Dbitmap.c15 return numchars * BITS_PER_BYTE - memweight(bitmap, numchars); ext4_count_free()
/linux-4.1.27/drivers/gpio/
H A Dgpio-msic.c246 for (i = 0; i < (mg->chip.ngpio / BITS_PER_BYTE); i++) { msic_gpio_irq_handler()
251 for_each_set_bit(bitnr, &pending, BITS_PER_BYTE) msic_gpio_irq_handler()
253 (i * BITS_PER_BYTE) + bitnr); msic_gpio_irq_handler()
/linux-4.1.27/drivers/net/ipvlan/
H A Dipvlan.h35 #define IPVLAN_HASH_SIZE (1 << BITS_PER_BYTE)
/linux-4.1.27/arch/x86/kernel/
H A Dtce_64.c113 bitmapsz = tbl->it_size / BITS_PER_BYTE; tce_table_setparms()
H A Dpci-calgary_64.c817 bitmapsz = tbl->it_size / BITS_PER_BYTE; calgary_free_bus()
/linux-4.1.27/mm/
H A Dcma_debug.c188 u32s = DIV_ROUND_UP(cma_bitmap_maxno(cma), BITS_PER_BYTE * sizeof(u32)); cma_debugfs_add_one()
H A Dslab.c160 #define FREELIST_BYTE_INDEX (((PAGE_SIZE >> BITS_PER_BYTE) \
169 #define SLAB_OBJ_MAX_NUM ((1 << sizeof(freelist_idx_t) * BITS_PER_BYTE) - 1)
H A Dmempolicy.c1250 if (maxnode > PAGE_SIZE*BITS_PER_BYTE) get_nodes()
/linux-4.1.27/drivers/pinctrl/
H A Dpinctrl-single.c353 mux_bytes = pcs->width / BITS_PER_BYTE; pcs_pin_dbg_show()
509 mux_bytes = pcs->width / BITS_PER_BYTE; pcs_request_gpio()
581 offset = pin * (pcs->width / BITS_PER_BYTE); pcs_pinconf_get()
639 offset = pin * (pcs->width / BITS_PER_BYTE); pcs_pinconf_set()
806 mux_bytes = pcs->width / BITS_PER_BYTE; pcs_allocate_pin_table()
810 nr_pins = (pcs->size * BITS_PER_BYTE) / pcs->bits_per_pin; pcs_allocate_pin_table()
839 byte_num = (pcs->bits_per_pin * i) / BITS_PER_BYTE; pcs_allocate_pin_table()
963 index = (offset * BITS_PER_BYTE) / pcs->bits_per_pin; pcs_get_pin_by_offset()
965 index = offset / (pcs->width / BITS_PER_BYTE); pcs_get_pin_by_offset()
/linux-4.1.27/drivers/gpu/drm/atmel-hlcdc/
H A Datmel_hlcdc_layer.c402 BITS_PER_BYTE * sizeof(unsigned long)) * atmel_hlcdc_layer_update_start()
577 BITS_PER_BYTE * atmel_hlcdc_layer_update_init()
/linux-4.1.27/drivers/mfd/
H A Dpm8921-core.c318 rev |= val << BITS_PER_BYTE; pm8921_probe()
/linux-4.1.27/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_process_queue_manager.c80 BITS_PER_BYTE), GFP_KERNEL); pqm_init()
H A Dkfd_device.c353 num_of_bits = kfd->gtt_sa_num_of_chunks / BITS_PER_BYTE; kfd_gtt_sa_init()
/linux-4.1.27/drivers/bus/
H A Dbrcmstb_gisb.c97 const char *master_names[sizeof(u32) * BITS_PER_BYTE];
/linux-4.1.27/crypto/
H A Dlrw.c43 BITS_PER_BYTE setbit128_bbe()
/linux-4.1.27/fs/
H A Dfile.c74 cpy = ofdt->max_fds / BITS_PER_BYTE; copy_fdtable()
75 set = (nfdt->max_fds - ofdt->max_fds) / BITS_PER_BYTE; copy_fdtable()
118 2 * nr / BITS_PER_BYTE, L1_CACHE_BYTES)); alloc_fdtable()
122 data += nr / BITS_PER_BYTE; alloc_fdtable()
/linux-4.1.27/lib/
H A Drandom32.c115 rem >>= BITS_PER_BYTE; prandom_bytes_state() local
/linux-4.1.27/drivers/infiniband/hw/ipath/
H A Dipath_verbs.c814 data <<= ((sizeof(u32) - n) * BITS_PER_BYTE); clear_upper_bytes()
815 data >>= ((sizeof(u32) - n - off) * BITS_PER_BYTE); clear_upper_bytes()
831 data >>= ((sizeof(u32) - n) * BITS_PER_BYTE); clear_upper_bytes()
832 data <<= ((sizeof(u32) - n - off) * BITS_PER_BYTE); clear_upper_bytes()
858 u32 v = get_upper_bits(*addr, off * BITS_PER_BYTE); copy_io()
866 BITS_PER_BYTE); copy_io()
888 int shift = extra * BITS_PER_BYTE; copy_io()
H A Dipath_init_chip.c742 dd->ipath_pioavregs = ALIGN(piobufs, sizeof(u64) * BITS_PER_BYTE / 2) ipath_init_chip()
743 / (sizeof(u64) * BITS_PER_BYTE / 2); ipath_init_chip()
H A Dipath_qp.c42 #define BITS_PER_PAGE (PAGE_SIZE*BITS_PER_BYTE)
H A Dipath_verbs.h50 #define QPNMAP_ENTRIES (QPN_MAX / PAGE_SIZE / BITS_PER_BYTE)
H A Dipath_file_ops.c442 limit = sizeof(tidmap) * BITS_PER_BYTE; ipath_tid_update()
548 limit = sizeof(tidmap) * BITS_PER_BYTE; ipath_tid_free()
/linux-4.1.27/drivers/infiniband/hw/qib/
H A Dqib_verbs.c769 data <<= ((sizeof(u32) - n) * BITS_PER_BYTE); clear_upper_bytes()
770 data >>= ((sizeof(u32) - n - off) * BITS_PER_BYTE); clear_upper_bytes()
786 data >>= ((sizeof(u32) - n) * BITS_PER_BYTE); clear_upper_bytes()
787 data <<= ((sizeof(u32) - n - off) * BITS_PER_BYTE); clear_upper_bytes()
813 u32 v = get_upper_bits(*addr, off * BITS_PER_BYTE); copy_io()
821 BITS_PER_BYTE); copy_io()
843 int shift = extra * BITS_PER_BYTE; copy_io()
H A Dqib_qp.c44 #define BITS_PER_PAGE (PAGE_SIZE*BITS_PER_BYTE)
H A Dqib_verbs.h58 #define QPNMAP_ENTRIES (QPN_MAX / PAGE_SIZE / BITS_PER_BYTE)
H A Dqib_file_ops.c409 limit = sizeof(tidmap) * BITS_PER_BYTE; qib_tid_update()
514 limit = sizeof(tidmap) * BITS_PER_BYTE; qib_tid_free()
H A Dqib_iba7322.c5848 dd->pioavregs = ALIGN(piobufs, sizeof(u64) * BITS_PER_BYTE / 2) / get_7322_chip_params()
5849 (sizeof(u64) * BITS_PER_BYTE / 2); get_7322_chip_params()
8409 #define BIT2BYTE(x) (((x) + BITS_PER_BYTE - 1) / BITS_PER_BYTE)
H A Dqib_iba6120.c3163 dd->pioavregs = ALIGN(piobufs, sizeof(u64) * BITS_PER_BYTE / 2) / get_6120_chip_params()
3164 (sizeof(u64) * BITS_PER_BYTE / 2); get_6120_chip_params()
H A Dqib_iba7220.c3872 dd->pioavregs = ALIGN(piobufs, sizeof(u64) * BITS_PER_BYTE / 2) / get_7220_chip_params()
3873 (sizeof(u64) * BITS_PER_BYTE / 2); get_7220_chip_params()
/linux-4.1.27/drivers/spi/
H A Dspi-qup.c239 shift = BITS_PER_BYTE; spi_qup_fifo_read()
270 word |= data << (BITS_PER_BYTE * (3 - idx)); spi_qup_fifo_write()
/linux-4.1.27/drivers/net/ethernet/ibm/emac/
H A Dcore.h398 ((crc) >> ((sizeof (u32) * BITS_PER_BYTE) - \
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp5/
H A Dmdp5_smp.c165 u32 smp_entries_per_blk = smp->blk_size / (128 / BITS_PER_BYTE); set_fifo_thresholds()
/linux-4.1.27/drivers/clk/bcm/
H A Dclk-kona-setup.c184 u32 limit = BITS_PER_BYTE * sizeof(u32) - 1; bit_posn_valid()
204 u32 limit = BITS_PER_BYTE * sizeof(u32); bitfield_valid()
387 limit = BITS_PER_BYTE * sizeof(u32); kona_dividers_valid()
/linux-4.1.27/fs/ocfs2/dlm/
H A Ddlmcommon.h716 #define BITS_PER_BYTE 8 macro
717 #define BITS_TO_BYTES(bits) (((bits)+BITS_PER_BYTE-1)/BITS_PER_BYTE)
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
H A Dsta.c255 for_each_set_bit(i, &sta_msk, sizeof(sta_msk) * BITS_PER_BYTE) iwl_mvm_tdls_sta_deinit()
469 for_each_set_bit(i, &msk, sizeof(msk) * BITS_PER_BYTE) iwl_mvm_sta_drained_wk()
988 BUILD_BUG_ON((sizeof(mvmsta->agg_tids) * BITS_PER_BYTE) iwl_mvm_sta_tx_agg_oper()
/linux-4.1.27/drivers/misc/sgi-xp/
H A Dxpc_partition.c177 BITS_PER_BYTE); xpc_setup_rsvd_page()
/linux-4.1.27/net/mac80211/
H A Dmesh.c771 for_each_set_bit(bit, &bits, sizeof(changed) * BITS_PER_BYTE) ieee80211_mbss_info_change_notify()
1254 sizeof(changed) * BITS_PER_BYTE) { mesh_bss_info_changed()
/linux-4.1.27/sound/soc/
H A Dsoc-ops.c839 unsigned int regwshift = component->val_bytes * BITS_PER_BYTE; snd_soc_get_xr_sx()
888 unsigned int regwshift = component->val_bytes * BITS_PER_BYTE; snd_soc_put_xr_sx()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
H A Dmlx4_en.h487 #define MLX4_EN_MAC_HASH_SIZE (1 << BITS_PER_BYTE)
/linux-4.1.27/drivers/net/wireless/ath/carl9170/
H A Dcarl9170.h112 #define CARL9170_BAW_LEN (DIV_ROUND_UP(CARL9170_BAW_BITS, BITS_PER_BYTE))
/linux-4.1.27/fs/hpfs/
H A Dsuper.c141 count = bitmap_weight(bits, 2048 * BITS_PER_BYTE); hpfs_count_one_bitmap()
/linux-4.1.27/arch/powerpc/kvm/
H A Dbook3s.c356 BITS_PER_BYTE * sizeof(*pending), kvmppc_core_prepare_to_enter()
H A Dbooke.c663 BITS_PER_BYTE * sizeof(*pending), kvmppc_core_check_exceptions()
/linux-4.1.27/net/sched/
H A Dsch_hhf.c652 BITS_PER_BYTE); hhf_init()
/linux-4.1.27/drivers/s390/kvm/
H A Dvirtio_ccw.c1022 sizeof(vcdev->indicators) * BITS_PER_BYTE) { virtio_ccw_int_handler()
/linux-4.1.27/kernel/
H A Dcompat.c642 if ((len * BITS_PER_BYTE) < nr_cpu_ids) COMPAT_SYSCALL_DEFINE3()
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
H A Dxmit.c21 #define BITS_PER_BYTE 8 macro
860 minlen = (nsymbols * nsymbits) / BITS_PER_BYTE; ath_compute_num_delims()
/linux-4.1.27/fs/ext2/
H A Dballoc.c1441 return numchars * BITS_PER_BYTE - memweight(map->b_data, numchars); ext2_count_free()
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
H A Dmain.c1236 WARN_ON(sizeof(priv->transport_queue_stop) * BITS_PER_BYTE < iwl_op_mode_dvm_start()
/linux-4.1.27/arch/arm/mm/
H A Ddma-mapping.c1925 mapping->bits = BITS_PER_BYTE * bitmap_size; arm_iommu_create_mapping()
/linux-4.1.27/fs/ntfs/
H A Dsuper.c2513 PAGE_CACHE_SIZE * BITS_PER_BYTE); get_nr_free_clusters()
2584 PAGE_CACHE_SIZE * BITS_PER_BYTE); __get_nr_free_mft_records()
/linux-4.1.27/kernel/power/
H A Dsnapshot.c267 #define BM_BITS_PER_BLOCK (PAGE_SIZE * BITS_PER_BYTE)
/linux-4.1.27/kernel/events/
H A Dcore.c4868 sizeof(mask) * BITS_PER_BYTE) { sizeof()
/linux-4.1.27/kernel/sched/
H A Dcore.c4182 if ((len * BITS_PER_BYTE) < nr_cpu_ids) SYSCALL_DEFINE3()

Completed in 5724 milliseconds