Searched refs:RT_ARRAY_SIZE (Results 1 – 17 of 17) sorted by relevance
| /components/drivers/core/ |
| A D | numa.c | 45 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 D | dev_pin_ofw.c | 37 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 D | ofw.c | 87 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 D | io.c | 333 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 D | fdt.c | 751 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 D | serial_dm.c | 154 rt_memset(str, 0, RT_ARRAY_SIZE(earlycon_magic)); in serial_cfg_from_args()
|
| /components/drivers/block/ |
| A D | blk_partition.c | 128 for (int i = 0; i < RT_ARRAY_SIZE(partition_list); ++i) in rt_blk_disk_probe_partition()
|
| A D | blk.c | 483 for (size_index = 0; size_index < RT_ARRAY_SIZE(size_name) - 1; ++size_index) in convert_size()
|
| /components/drivers/nvme/ |
| A D | nvme-pci.c | 67 nvme->irqs_nr = RT_ARRAY_SIZE(pci_nvme->msix_entries); in pci_nvme_probe()
|
| /components/drivers/include/drivers/ |
| A D | misc.h | 59 #define RT_ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0])) macro
|
| A D | pci.h | 467 RT_ASSERT(bar_idx < RT_ARRAY_SIZE(pdev->resource)); in rt_pci_iomap()
|
| /components/drivers/pic/ |
| A D | pic.c | 135 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 D | pic-gicv2.c | 121 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 D | pic-gicv3-its.c | 227 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 D | led.c | 71 for (int i = 0; i < RT_ARRAY_SIZE(_led_states); ++i) in _led_write()
|
| /components/drivers/pci/ |
| A D | ofw.c | 533 res = rt_ofw_prop_read_u32_array_index(np, "reg", 0, RT_ARRAY_SIZE(reg), reg); in ofw_pci_devfn()
|
| A D | probe.c | 97 for (int i = 0; i < RT_ARRAY_SIZE(pdev->resource); ++i) in rt_pci_alloc_device()
|
Completed in 31 milliseconds