Home
last modified time | relevance | path

Searched refs:RT_ARRAY_SIZE (Results 1 – 17 of 17) sorted by relevance

/components/drivers/core/
A Dnuma.c45 return cpuid < RT_ARRAY_SIZE(cpu_numa_map) ? cpu_numa_map[cpuid] : -RT_EINVAL; in rt_numa_cpu_id()
83 for (int i = 0; i < RT_ARRAY_SIZE(cpu_numa_map); ++i) in rt_numa_memory_affinity()
115 for (int i = 0; i < RT_ARRAY_SIZE(cpu_numa_map); ++i) in numa_ofw_init()
/components/drivers/pin/
A Ddev_pin_ofw.c37 for (int i = 0; i < RT_ARRAY_SIZE(gpio_suffixes); ++i) in rt_ofw_get_named_pin()
162 for (int i = 0; i < RT_ARRAY_SIZE(gpio_suffixes); ++i) in rt_ofw_get_named_pin_count()
/components/drivers/ofw/
A Dofw.c87 RT_BITMAP_DECLARE(idx_mask, RT_ARRAY_SIZE(ofw_obj_cmp_list)) = {}; in ofw_parse_object()
89 for (int i = 0; i < RT_ARRAY_SIZE(ofw_obj_cmp_list); ++i) in ofw_parse_object()
109 rt_bitmap_for_each_clear_bit(idx_mask, i, RT_ARRAY_SIZE(ofw_obj_cmp_list)) in ofw_parse_object()
126 if (i >= RT_ARRAY_SIZE(ofw_obj_cmp_list)) in ofw_parse_object()
A Dio.c333 RT_ASSERT(id < RT_ARRAY_SIZE(_bus_ranges)); in ofw_bus_ranges()
363 for (int i = 0; i < RT_ARRAY_SIZE(_bus_ranges); ++i) in rt_ofw_translate_address()
432 for (int i = 0; i < RT_ARRAY_SIZE(_bus_ranges); ++i) in rt_ofw_reverse_address()
A Dfdt.c751 rt_strncpy((void *)options, earlycon_magic, RT_ARRAY_SIZE(earlycon_magic)); in rt_fdt_scan_chosen_stdout()
755 if (rt_strncmp(options, earlycon_magic, RT_ARRAY_SIZE(earlycon_magic))) in rt_fdt_scan_chosen_stdout()
/components/drivers/serial/
A Dserial_dm.c154 rt_memset(str, 0, RT_ARRAY_SIZE(earlycon_magic)); in serial_cfg_from_args()
/components/drivers/block/
A Dblk_partition.c128 for (int i = 0; i < RT_ARRAY_SIZE(partition_list); ++i) in rt_blk_disk_probe_partition()
A Dblk.c483 for (size_index = 0; size_index < RT_ARRAY_SIZE(size_name) - 1; ++size_index) in convert_size()
/components/drivers/nvme/
A Dnvme-pci.c67 nvme->irqs_nr = RT_ARRAY_SIZE(pci_nvme->msix_entries); in pci_nvme_probe()
/components/drivers/include/drivers/
A Dmisc.h59 #define RT_ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0])) macro
A Dpci.h467 RT_ASSERT(bar_idx < RT_ARRAY_SIZE(pdev->resource)); in rt_pci_iomap()
/components/drivers/pic/
A Dpic.c135 if (_pirq_hash_idx + irq_nr <= RT_ARRAY_SIZE(_pirq_hash)) in rt_pic_linear_irq()
1227 for (int i = 0; i < RT_ARRAY_SIZE(_pirq_hash); ++i) in list_irq()
1244 for (int group = 0, id = 0; group < RT_ARRAY_SIZE(pirq->affinity); ++group) in list_irq()
1250 cpumask[RT_ARRAY_SIZE(cpumask) - id - 2] = '0' + ((mask >> idx) & 1); in list_irq()
A Dpic-gicv2.c121 for (int i = 0; i < RT_ARRAY_SIZE(_gicv2_cpumask_map); ++i) in gicv2_cpu_init()
614 rt_ofw_get_address_array(np, RT_ARRAY_SIZE(regs), regs); in gicv2_ofw_init()
A Dpic-gicv3-its.c227 for (int i = 0; i < RT_ARRAY_SIZE(its->tbls); ++i) in its_baser_type()
1122 for (int i = 0; i < RT_ARRAY_SIZE(its->tbls); ++i) in its_table_init()
1374 for (int i = 0; i < RT_ARRAY_SIZE(its->tbls); ++i) in its_init_fail()
/components/drivers/led/
A Dled.c71 for (int i = 0; i < RT_ARRAY_SIZE(_led_states); ++i) in _led_write()
/components/drivers/pci/
A Dofw.c533 res = rt_ofw_prop_read_u32_array_index(np, "reg", 0, RT_ARRAY_SIZE(reg), reg); in ofw_pci_devfn()
A Dprobe.c97 for (int i = 0; i < RT_ARRAY_SIZE(pdev->resource); ++i) in rt_pci_alloc_device()

Completed in 31 milliseconds