Home
last modified time | relevance | path

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

12

/linux-6.12.1/kernel/bpf/
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-6.12.1/drivers/iio/adc/
Dad7944.c167 xfers[2].len = BITS_TO_BYTES(chan->scan_type.storagebits); in ad7944_3wire_cs_mode_init_msg()
196 xfers[1].len = BITS_TO_BYTES(chan->scan_type.storagebits); in ad7944_4wire_mode_init_msg()
231 xfers[1].len = BITS_TO_BYTES(chan->scan_type.storagebits) * n_chain_dev; in ad7944_chain_mode_init_msg()
412 BITS_TO_BYTES(chan[0].scan_type.storagebits), sizeof(u64)) in ad7944_chain_mode_alloc()
Dltc2497.c121 st->recv_size = BITS_TO_BYTES(resolution) + 1; in ltc2497_probe()
Dad4000.c497 xfers[1].len = BITS_TO_BYTES(chan->scan_type.storagebits); in ad4000_prepare_3wire_mode_message()
528 xfers[1].len = BITS_TO_BYTES(chan->scan_type.storagebits); in ad4000_prepare_4wire_mode_message()
Dad7380.c683 BITS_TO_BYTES(scan_type->storagebits) * in ad7380_update_xfers()
696 xfer[1].len = BITS_TO_BYTES(scan_type->storagebits) * in ad7380_update_xfers()
Dad7173.c57 #define AD7173_RESET_LENGTH BITS_TO_BYTES(64)
/linux-6.12.1/tools/perf/util/
Dpmu.y36 memset(bits, 0, BITS_TO_BYTES(PERF_PMU_FORMAT_BITS)); in perf_pmu__set_format()
/linux-6.12.1/drivers/platform/x86/intel/
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-6.12.1/tools/include/linux/
Dbitops.h21 #define BITS_TO_BYTES(nr) DIV_ROUND_UP(nr, BITS_PER_TYPE(char)) macro
/linux-6.12.1/drivers/firmware/efi/
Dearlycon.c131 bytes = BITS_TO_BYTES(font->width); in efi_earlycon_write_char()
/linux-6.12.1/include/linux/
Dbitops.h15 #define BITS_TO_BYTES(nr) __KERNEL_DIV_ROUND_UP(nr, BITS_PER_TYPE(char)) macro
/linux-6.12.1/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_fw_defs.h385 (PAGE_SIZE / BITS_TO_BYTES(STRUCT_SIZE(event_ring_elem)))
Dbnx2x_init.h481 r_param = BITS_TO_BYTES(input_data->port_rate); in bnx2x_init_cmng()
/linux-6.12.1/drivers/md/dm-vdo/indexer/
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-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
Dmeter.c287 meters_obj = kzalloc(sizeof(*meters_obj) + BITS_TO_BYTES(total), in __mlx5e_flow_meter_alloc()
/linux-6.12.1/drivers/staging/media/atomisp/pci/runtime/isys/src/
Dvirtual_isys.c701 bytes_per_pixel = BITS_TO_BYTES(bits_per_pixel); in calculate_ibuf_ctrl_cfg()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dcrypto.c575 memset(bulk->need_sync, 0, BITS_TO_BYTES(bulk->num_deks)); in mlx5_crypto_dek_pool_reset_synced()
/linux-6.12.1/drivers/spi/
Dspi-dw-core.c426 dws->n_bytes = roundup_pow_of_two(BITS_TO_BYTES(transfer->bits_per_word)); in dw_spi_transfer_one()
Dspi.c3806 maxsize = maxwords * roundup_pow_of_two(BITS_TO_BYTES(xfer->bits_per_word)); in spi_split_transfers_maxwords()
/linux-6.12.1/fs/ocfs2/dlm/
Ddlmcommon.h694 u8 node_map[BITS_TO_BYTES(O2NM_MAX_NODES)];
/linux-6.12.1/kernel/time/
Dtimekeeping.c1261 if (BITS_TO_BYTES(fls64(*delta) + tkr->shift) >= sizeof(*delta)) in convert_ns_to_cs()
/linux-6.12.1/drivers/base/regmap/
Dregmap-kunit.c1602 size = array_size(config->max_register + 1, BITS_TO_BYTES(config->reg_bits)); in gen_raw_regmap()
/linux-6.12.1/net/netlink/
Daf_netlink.c1752 if (put_user(ALIGN(BITS_TO_BYTES(nlk->ngroups), sizeof(u32)), optlen)) in netlink_getsockopt()
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_err.c3435 BITS_TO_BYTES(HCLGE_VPORT_NUM)); in hclge_get_vf_fault_bitmap()
/linux-6.12.1/drivers/staging/media/atomisp/pci/
Datomisp_cmd.c3550 bytes = BITS_TO_BYTES(br_fmt->depth * width); in atomisp_fill_pix_format()

12