Home
last modified time | relevance | path

Searched refs:find_msb_set (Results 1 – 25 of 38) sorted by relevance

12

/Zephyr-latest/include/zephyr/arch/common/
Dffs.h31 static ALWAYS_INLINE unsigned int find_msb_set(uint32_t op) in find_msb_set() function
66 return find_msb_set(op); in find_lsb_set()
/Zephyr-latest/drivers/serial/
Duart_ite_it8xxx2.c51 (void)gpio_pin_interrupt_configure(gpio, (find_msb_set(pins) - 1), in uart1_wui_isr()
71 (void)gpio_pin_interrupt_configure(gpio, (find_msb_set(pins) - 1), in uart2_wui_isr()
/Zephyr-latest/include/zephyr/math/
Dilog2.h97 find_msb_set(n) - 1 \
/Zephyr-latest/drivers/dma/
Ddma_andes_atcdmac300.c166 channel = find_msb_set(int_ch_status) - 1; in dma_atcdmac300_isr()
179 channel = find_msb_set(int_ch_status) - 1; in dma_atcdmac300_isr()
280 src_width = find_msb_set(cfg->source_data_size) - 1; in dma_atcdmac300_config()
281 dst_width = find_msb_set(cfg->dest_data_size) - 1; in dma_atcdmac300_config()
282 src_burst_size = find_msb_set(cfg->source_burst_length) - 1; in dma_atcdmac300_config()
Ddma_si32.c233 cfg->source_burst_length ? find_msb_set(cfg->source_burst_length) - 3 : 0; in dma_si32_config()
239 cfg->source_burst_length ? find_msb_set(cfg->source_burst_length) - 2 : 0; in dma_si32_config()
245 cfg->source_burst_length ? find_msb_set(cfg->source_burst_length) - 1 : 0; in dma_si32_config()
Ddma_sam_xdmac.c207 burst_size = find_msb_set(cfg->source_burst_length) - 1; in sam_xdmac_config()
209 data_size = find_msb_set(cfg->source_data_size) - 1; in sam_xdmac_config()
/Zephyr-latest/drivers/interrupt_controller/
Dintc_mtk_adsp.c45 uint32_t irq = find_msb_set(irqs) - 1; in intc_isr()
Dintc_ite_it8xxx2_v2.c217 find_msb_set(int_pending) - 1; in get_irq()
Dintc_loapic.c323 return (block * 32) + (find_msb_set(pReg) - 1); in z_irq_controller_isr_vector_get()
Dintc_ite_it8xxx2.c230 find_msb_set(int_pending) - 1; in get_irq()
/Zephyr-latest/arch/arc/core/mpu/
Darc_mpu_v2_internal.h57 uint8_t bits = find_msb_set(size) - 1; in _region_init()
Darc_mpu_v6_internal.h83 uint8_t bits = find_msb_set(size) - 1; in _region_init()
/Zephyr-latest/tests/kernel/common/src/
Dbitarray.c1026 zassert_equal(find_msb_set(value), 0, "MSB is not matched"); in ZTEST()
1031 zassert_equal(find_msb_set(value), 1, "MSB is not matched"); in ZTEST()
1036 zassert_equal(find_msb_set(value), 32, "MSB is not matched"); in ZTEST()
1041 zassert_equal(find_msb_set(value), 20, "MSB is not matched"); in ZTEST()
1046 zassert_equal(find_msb_set(value), 32, "MSB is not matched"); in ZTEST()
1051 zassert_equal(find_msb_set(value), 32, "MSB is not matched"); in ZTEST()
1057 zassert_equal(find_msb_set(value), bit + 1, "MSB is not matched"); in ZTEST()
/Zephyr-latest/include/zephyr/drivers/
Ddma.h746 return find_msb_set(size); in dma_width_index()
775 return find_msb_set(burst); in dma_burst_index()
/Zephyr-latest/drivers/watchdog/
Dwdt_sam0.c84 return find_msb_set(next_pow2 >> 4); in wdt_sam0_timeout_to_wdt_period()
/Zephyr-latest/subsys/bluetooth/controller/util/
Dutil.c270 bits = find_msb_set(CONFIG_BT_CTLR_ADV_ISO_SET * 0x03); in util_saa_le32()
/Zephyr-latest/drivers/flash/
Dflash_cadence_nand_ll.c103 params->page_size_bit = find_msb_set((params->npages_per_block) - 1); in cdns_nand_device_info()
104 params->block_size_bit = find_msb_set((params->nblocks_per_lun) - 1); in cdns_nand_device_info()
105 params->lun_size_bit = find_msb_set((params->nluns) - 1); in cdns_nand_device_info()
424 params->total_bit_row = find_msb_set(((params->npages_per_block) - 1)) + in cdns_nand_init()
425 find_msb_set((params->nblocks_per_lun) - 1); in cdns_nand_init()
/Zephyr-latest/drivers/adc/
Dadc_ad559x.c90 if (find_msb_set(sequence->channels) > AD559X_PIN_MAX) { in adc_ad559x_start_read()
Dadc_ads7052.c121 if (find_msb_set(sequence->channels) > config->channels) { in ads7052_start_read()
Dadc_rpi_pico.c188 if (find_msb_set(sequence->channels) > config->num_channels) { in adc_rpi_start_read()
Dadc_mcp320x.c118 if (find_msb_set(sequence->channels) > config->channels) { in mcp320x_start_read()
Dadc_renesas_ra.c205 if (find_msb_set(sequence->channels) > config->num_channels) { in adc_ra_start_read()
Dadc_nxp_s32_adc_sar.c211 if (find_msb_set(sequence->channels) > data->num_channels) { in adc_nxp_s32_start_read_async()
Dadc_tla202x.c240 if (find_msb_set(seq->channels) > config->channel_count) { in tla202x_start_read()
/Zephyr-latest/subsys/bluetooth/mesh/
Dprovisioner.c744 prov_set_method(AUTH_METHOD_INPUT, find_msb_set(action) - 1, size); in bt_mesh_auth_method_set_input()
754 prov_set_method(AUTH_METHOD_OUTPUT, find_msb_set(action) - 1, size); in bt_mesh_auth_method_set_output()

12