/Zephyr-latest/include/zephyr/arch/common/ |
D | ffs.h | 31 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/ |
D | uart_ite_it8xxx2.c | 51 (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/ |
D | ilog2.h | 97 find_msb_set(n) - 1 \
|
/Zephyr-latest/drivers/dma/ |
D | dma_andes_atcdmac300.c | 166 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()
|
D | dma_si32.c | 233 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()
|
D | dma_sam_xdmac.c | 207 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/ |
D | intc_mtk_adsp.c | 45 uint32_t irq = find_msb_set(irqs) - 1; in intc_isr()
|
D | intc_ite_it8xxx2_v2.c | 217 find_msb_set(int_pending) - 1; in get_irq()
|
D | intc_loapic.c | 323 return (block * 32) + (find_msb_set(pReg) - 1); in z_irq_controller_isr_vector_get()
|
D | intc_ite_it8xxx2.c | 230 find_msb_set(int_pending) - 1; in get_irq()
|
/Zephyr-latest/arch/arc/core/mpu/ |
D | arc_mpu_v2_internal.h | 57 uint8_t bits = find_msb_set(size) - 1; in _region_init()
|
D | arc_mpu_v6_internal.h | 83 uint8_t bits = find_msb_set(size) - 1; in _region_init()
|
/Zephyr-latest/tests/kernel/common/src/ |
D | bitarray.c | 1026 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/ |
D | dma.h | 746 return find_msb_set(size); in dma_width_index() 775 return find_msb_set(burst); in dma_burst_index()
|
/Zephyr-latest/drivers/watchdog/ |
D | wdt_sam0.c | 84 return find_msb_set(next_pow2 >> 4); in wdt_sam0_timeout_to_wdt_period()
|
/Zephyr-latest/subsys/bluetooth/controller/util/ |
D | util.c | 270 bits = find_msb_set(CONFIG_BT_CTLR_ADV_ISO_SET * 0x03); in util_saa_le32()
|
/Zephyr-latest/drivers/flash/ |
D | flash_cadence_nand_ll.c | 103 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/ |
D | adc_ad559x.c | 90 if (find_msb_set(sequence->channels) > AD559X_PIN_MAX) { in adc_ad559x_start_read()
|
D | adc_ads7052.c | 121 if (find_msb_set(sequence->channels) > config->channels) { in ads7052_start_read()
|
D | adc_rpi_pico.c | 188 if (find_msb_set(sequence->channels) > config->num_channels) { in adc_rpi_start_read()
|
D | adc_mcp320x.c | 118 if (find_msb_set(sequence->channels) > config->channels) { in mcp320x_start_read()
|
D | adc_renesas_ra.c | 205 if (find_msb_set(sequence->channels) > config->num_channels) { in adc_ra_start_read()
|
D | adc_nxp_s32_adc_sar.c | 211 if (find_msb_set(sequence->channels) > data->num_channels) { in adc_nxp_s32_start_read_async()
|
D | adc_tla202x.c | 240 if (find_msb_set(seq->channels) > config->channel_count) { in tla202x_start_read()
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | provisioner.c | 744 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()
|