Home
last modified time | relevance | path

Searched refs:BITS_TO_BYTES (Results 1 – 24 of 24) sorted by relevance

/linux/kernel/bpf/
H A Dbloom_filter.c134 bitset_bytes = BITS_TO_BYTES(U32_MAX); in bloom_map_alloc()
141 bitset_bytes = BITS_TO_BYTES(nr_bits); in bloom_map_alloc()
198 bitset_bytes = BITS_TO_BYTES((u64)bloom->bitset_mask + 1); in bloom_map_mem_usage()
/linux/tools/perf/util/
H A Dpmu.y36 memset(bits, 0, BITS_TO_BYTES(PERF_PMU_FORMAT_BITS)); in perf_pmu__set_format()
/linux/drivers/platform/x86/intel/
H A Dishtp_eclite.c42 #ifndef BITS_TO_BYTES
43 #define BITS_TO_BYTES(x) ((x) / 8) macro
258 unsigned int bytes = BITS_TO_BYTES(bits); in ecl_opregion_data_handler()
/linux/tools/include/linux/
H A Dbitops.h21 #define BITS_TO_BYTES(nr) DIV_ROUND_UP(nr, BITS_PER_TYPE(char)) macro
/linux/drivers/iio/adc/
H A Dltc2497.c121 st->recv_size = BITS_TO_BYTES(resolution) + 1; in ltc2497_probe()
H A Dad_sigma_delta.c234 unsigned int data_read_len = BITS_TO_BYTES(sigma_delta->info->num_resetclks); in ad_sigma_delta_clear_pending_event()
H A Dad7173.c57 #define AD7173_RESET_LENGTH BITS_TO_BYTES(64)
/linux/drivers/firmware/efi/
H A Dearlycon.c131 bytes = BITS_TO_BYTES(font->width); in efi_earlycon_write_char()
/linux/include/linux/
H A Dbitops.h15 #define BITS_TO_BYTES(nr) __KERNEL_DIV_ROUND_UP(nr, BITS_PER_TYPE(char)) macro
/linux/drivers/irqchip/
H A Dqcom-pdc.c28 #define IRQ_ENABLE_BANK_MAX (IRQ_ENABLE_BANK + BITS_TO_BYTES(PDC_MAX_GPIO_IRQS))
/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_fw_defs.h385 (PAGE_SIZE / BITS_TO_BYTES(STRUCT_SIZE(event_ring_elem)))
H A Dbnx2x_init.h481 r_param = BITS_TO_BYTES(input_data->port_rate); in bnx2x_init_cmng()
/linux/drivers/md/dm-vdo/indexer/
H A Ddelta-index.c151 return BITS_TO_BYTES(bit_offset + delta_list->size); in get_delta_list_byte_size()
977 byte_count = BITS_TO_BYTES(bit_count); in restore_delta_list_to_zone()
1636 BITS_TO_BYTES(size)); in insert_bits()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dmeter.c287 meters_obj = kzalloc(sizeof(*meters_obj) + BITS_TO_BYTES(total), in __mlx5e_flow_meter_alloc()
/linux/drivers/staging/media/atomisp/pci/runtime/isys/src/
H A Dvirtual_isys.c692 bytes_per_pixel = BITS_TO_BYTES(bits_per_pixel); in calculate_ibuf_ctrl_cfg()
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dcrypto.c575 memset(bulk->need_sync, 0, BITS_TO_BYTES(bulk->num_deks)); in mlx5_crypto_dek_pool_reset_synced()
/linux/drivers/base/regmap/
H A Dregmap.c776 map->format.reg_bytes = BITS_TO_BYTES(config->reg_bits); in __regmap_init()
777 map->format.val_bytes = BITS_TO_BYTES(config->val_bits); in __regmap_init()
778 map->format.buf_size = BITS_TO_BYTES(config->reg_bits + config->val_bits + config->pad_bits); in __regmap_init()
H A Dregmap-kunit.c1644 size = array_size(config->max_register + 1, BITS_TO_BYTES(config->reg_bits)); in gen_raw_regmap()
/linux/fs/ocfs2/dlm/
H A Ddlmcommon.h694 u8 node_map[BITS_TO_BYTES(O2NM_MAX_NODES)];
/linux/drivers/spi/
H A Dspi-dw-core.c426 dws->n_bytes = roundup_pow_of_two(BITS_TO_BYTES(transfer->bits_per_word)); in dw_spi_transfer_one()
/linux/kernel/time/
H A Dtimekeeping.c1175 if (BITS_TO_BYTES(fls64(*delta) + tkr->shift) >= sizeof(*delta)) in convert_ns_to_cs()
/linux/drivers/usb/typec/ucsi/
H A Ducsi.c1782 BITS_TO_BYTES(UCSI_GET_CAPABILITY_SIZE)); in ucsi_init()
/linux/net/netlink/
H A Daf_netlink.c1748 if (put_user(ALIGN(BITS_TO_BYTES(nlk->ngroups), sizeof(u32)), optlen)) in netlink_getsockopt()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_err.c3435 BITS_TO_BYTES(HCLGE_VPORT_NUM)); in hclge_get_vf_fault_bitmap()