| /rk3399_ARM-atf/plat/brcm/board/stingray/driver/ |
| H A D | usb_phy.c | 480 int32_t index; in usb_info_fill() local 494 for (index = MAX_NR_PORTS - 1U; index > -1; index--) { in usb_info_fill() 495 phy_info->phy_port[index].enabled = (phy_info->ports_enabled in usb_info_fill() 496 >> index) & 0x1U; in usb_info_fill() 497 phy_info->phy_port[index].p = phy_info; in usb_info_fill() 498 phy_info->phy_port[index].port_id = index; in usb_info_fill() 508 uint32_t index; in usb_phy_init() local 517 for (index = 0U; index < MAX_NR_PORTS; index++) { in usb_phy_init() 518 if (phy_info->phy_port[index].enabled != 0U) { in usb_phy_init() 523 phy_port[index]); in usb_phy_init() [all …]
|
| /rk3399_ARM-atf/drivers/io/ |
| H A D | io_storage.c | 95 for (unsigned int index = 0; index < MAX_IO_HANDLES; ++index) { in find_first_entity() local 96 if (entity_map[index] == entity) { in find_first_entity() 98 *index_out = index; in find_first_entity() 113 unsigned int index = 0; in allocate_entity() local 114 result = find_first_entity(NULL, &index); in allocate_entity() 116 *entity = &entity_pool[index]; in allocate_entity() 117 entity_map[index] = &entity_pool[index]; in allocate_entity() 129 unsigned int index = 0; in free_entity() local 132 result = find_first_entity(entity, &index); in free_entity() 134 entity_map[index] = NULL; in free_entity()
|
| H A D | io_fip.c | 127 unsigned int index; in find_first_fip_state() local 129 for (index = 0; index < (unsigned int)MAX_FIP_DEVICES; ++index) { in find_first_fip_state() 131 if (state_pool[index].dev_spec == dev_spec) { in find_first_fip_state() 133 *index_out = index; in find_first_fip_state() 149 unsigned int index = 0; in allocate_dev_info() local 151 result = find_first_fip_state(0, &index); in allocate_dev_info() 154 dev_info_pool[index].funcs = &fip_dev_funcs; in allocate_dev_info() 155 dev_info_pool[index].info = in allocate_dev_info() 156 (uintptr_t)&state_pool[index]; in allocate_dev_info() 157 *dev_info = &dev_info_pool[index]; in allocate_dev_info() [all …]
|
| H A D | io_block.c | 72 unsigned int index; in find_first_block_state() local 75 for (index = 0U; index < MAX_IO_BLOCK_DEVICES; ++index) { in find_first_block_state() 77 if (state_pool[index].dev_spec == dev_spec) { in find_first_block_state() 79 *index_out = index; in find_first_block_state() 93 unsigned int index = 0; in allocate_dev_info() local 94 result = find_first_block_state(NULL, &index); in allocate_dev_info() 97 dev_info_pool[index].funcs = &block_dev_funcs; in allocate_dev_info() 98 dev_info_pool[index].info = (uintptr_t)&state_pool[index]; in allocate_dev_info() 99 *dev_info = &dev_info_pool[index]; in allocate_dev_info() 111 unsigned int index = 0; in free_dev_info() local [all …]
|
| /rk3399_ARM-atf/drivers/marvell/mochi/ |
| H A D | ap807_setup.c | 72 #define MVEBU_AXI_ATTR_REG(index) (MVEBU_AXI_ATTR_BASE + \ argument 73 0x4 * index) 200 uint32_t index, data; in ap807_axi_attr_init() local 204 for (index = 0; index < AXI_MAX_ATTR; index++) { in ap807_axi_attr_init() 205 switch (index) { in ap807_axi_attr_init() 217 data = mmio_read_32(MVEBU_AXI_ATTR_REG(index)); in ap807_axi_attr_init() 235 mmio_write_32(MVEBU_AXI_ATTR_REG(index), data); in ap807_axi_attr_init()
|
| /rk3399_ARM-atf/plat/mediatek/drivers/spm/mt8189/ |
| H A D | mt_spm_stats.c | 30 uint64_t mt_spm_get_lp_stat(struct spm_lp_stat *stat, uint32_t index, in mt_spm_get_lp_stat() argument 35 if (!stat || index >= NUM_SPM_STAT) in mt_spm_get_lp_stat() 40 ret = stat->record[index].count; in mt_spm_get_lp_stat() 43 ret = stat->record[index].duration; in mt_spm_get_lp_stat()
|
| /rk3399_ARM-atf/plat/hisilicon/hikey/ |
| H A D | hikey_bl1_setup.c | 134 unsigned int index = 0; in bl1_plat_get_image_desc() local 136 while (bl1_tbbr_image_descs[index].image_id != INVALID_IMAGE_ID) { in bl1_plat_get_image_desc() 137 if (bl1_tbbr_image_descs[index].image_id == image_id) in bl1_plat_get_image_desc() 138 return &bl1_tbbr_image_descs[index]; in bl1_plat_get_image_desc() 140 index++; in bl1_plat_get_image_desc()
|
| /rk3399_ARM-atf/docs/plat/ |
| H A D | index.rst | 11 arm/index 21 marvell/index 37 nxp/index 41 qti/index 50 st/index
|
| /rk3399_ARM-atf/common/ |
| H A D | runtime_svc.c | 41 unsigned int index; in get_handler_for_smc_fid() local 47 index = rt_svc_descs_indices[idx]; in get_handler_for_smc_fid() 49 if (index >= RT_SVC_DECS_NUM) in get_handler_for_smc_fid() 54 *handler = rt_svc_descs[index].handle; in get_handler_for_smc_fid() 345 uint8_t index, start_idx, end_idx; in runtime_svc_init() local 360 for (index = 0U; index < RT_SVC_DECS_NUM; index++) { in runtime_svc_init() 361 rt_svc_desc_t *service = &rt_svc_descs[index]; in runtime_svc_init() 404 rt_svc_descs_indices[start_idx] = index; in runtime_svc_init()
|
| /rk3399_ARM-atf/plat/xilinx/zynqmp/pm_service/ |
| H A D | pm_api_ioctl.c | 453 static enum pm_ret_status pm_ioctl_write_ggs(uint32_t index, in pm_ioctl_write_ggs() argument 459 if (index >= GGS_NUM_REGS) { in pm_ioctl_write_ggs() 462 ret_status = pm_mmio_write((uint64_t)GGS_BASEADDR + (index << 2), in pm_ioctl_write_ggs() 482 static enum pm_ret_status pm_ioctl_read_ggs(uint32_t index, in pm_ioctl_read_ggs() argument 488 if (index >= GGS_NUM_REGS) { in pm_ioctl_read_ggs() 491 ret_status = pm_mmio_read((uint64_t)GGS_BASEADDR + (index << 2), in pm_ioctl_read_ggs() 511 static enum pm_ret_status pm_ioctl_write_pggs(uint32_t index, in pm_ioctl_write_pggs() argument 517 if (index >= PGGS_NUM_REGS) { in pm_ioctl_write_pggs() 520 ret_status = pm_mmio_write((uint64_t)PGGS_BASEADDR + (index << 2), in pm_ioctl_write_pggs() 537 static enum pm_ret_status pm_ioctl_afi(uint32_t index, in pm_ioctl_afi() argument [all …]
|
| /rk3399_ARM-atf/plat/mediatek/drivers/spm/mt8196/ |
| H A D | mt_spm_stats.c | 44 uint32_t index, uint32_t type) in mt_spm_get_lp_stat() argument 49 if (!stat || index >= NUM_SPM_STAT) in mt_spm_get_lp_stat() 54 ret = stat->record[index].count; in mt_spm_get_lp_stat() 57 ret = stat->record[index].duration; in mt_spm_get_lp_stat()
|
| /rk3399_ARM-atf/plat/mediatek/mt8183/ |
| H A D | plat_mt_gic.c | 84 unsigned int index; in mt_gic_rdistif_init() local 95 for (index = 0; index < TOTAL_PCPU_INTR_NUM; index += 4U) in mt_gic_rdistif_init() 96 gicr_write_ipriorityr(gicr_base, index, in mt_gic_rdistif_init()
|
| /rk3399_ARM-atf/plat/imx/common/sci/ |
| H A D | imx8_mu.c | 26 void MU_EnableRxFullInt(uint32_t base, uint32_t index) in MU_EnableRxFullInt() argument 31 reg |= MU_CR_RIE0_MASK1 >> index; in MU_EnableRxFullInt() 35 void MU_EnableGeneralInt(uint32_t base, uint32_t index) in MU_EnableGeneralInt() argument 40 reg |= MU_CR_GIE0_MASK1 >> index; in MU_EnableGeneralInt()
|
| /rk3399_ARM-atf/docs/ |
| H A D | index.rst | 9 about/index 10 getting_started/index 11 process/index 12 components/index 13 design/index 15 plat/index 16 perf/index 17 security_advisories/index 18 design_documents/index 19 threat_model/index [all …]
|
| /rk3399_ARM-atf/plat/xilinx/zynqmp/ |
| H A D | bl31_zynqmp_setup.c | 162 static uint32_t index; in request_intr_type_el3() local 166 if (!handler || index >= MAX_INTR_EL3) { in request_intr_type_el3() 171 for (i = 0; i < index; i++) { in request_intr_type_el3() 177 type_el3_interrupt_table[index].id = id; in request_intr_type_el3() 178 type_el3_interrupt_table[index].handler = handler; in request_intr_type_el3() 180 index++; in request_intr_type_el3()
|
| /rk3399_ARM-atf/docs/components/ |
| H A D | index.rst | 8 spd/index 13 fconf/index 15 measured_boot/index
|
| /rk3399_ARM-atf/plat/arm/board/tc/ |
| H A D | rse_ap_test_stubs.c | 17 tfm_measured_boot_extend_measurement(uint8_t index, in tfm_measured_boot_extend_measurement() argument 29 return rse_measured_boot_extend_measurement(index, in tfm_measured_boot_extend_measurement() 43 tfm_measured_boot_read_measurement(uint8_t index, in tfm_measured_boot_read_measurement() argument 59 return rse_measured_boot_read_measurement(index, in tfm_measured_boot_read_measurement()
|
| /rk3399_ARM-atf/plat/xilinx/versal/ |
| H A D | bl31_versal_setup.c | 155 static uint32_t index; in request_intr_type_el3() local 160 if ((handler == NULL) || (index >= MAX_INTR_EL3)) { in request_intr_type_el3() 166 for (i = 0; i < index; i++) { in request_intr_type_el3() 173 type_el3_interrupt_table[index].id = id; in request_intr_type_el3() 174 type_el3_interrupt_table[index].handler = handler; in request_intr_type_el3() 176 index++; in request_intr_type_el3()
|
| /rk3399_ARM-atf/include/drivers/arm/ |
| H A D | cci.h | 20 #define SLAVE_IFACE_OFFSET(index) (SLAVE_IFACE0_OFFSET + \ argument 21 (UL(0x1000) * (index))) 32 #define EVENT_OFFSET(index) (EVENT_SELECT0_OFFSET + \ argument 33 (UL(0x10000) * (index)))
|
| /rk3399_ARM-atf/plat/amd/versal2/ |
| H A D | bl31_setup.c | 206 static uint32_t index; in request_intr_type_el3() local 211 if ((handler == NULL) || (index >= MAX_INTR_EL3)) { in request_intr_type_el3() 217 for (i = 0; i < index; i++) { in request_intr_type_el3() 224 type_el3_interrupt_table[index].id = id; in request_intr_type_el3() 225 type_el3_interrupt_table[index].handler = handler; in request_intr_type_el3() 227 index++; in request_intr_type_el3()
|
| /rk3399_ARM-atf/plat/xilinx/versal_net/ |
| H A D | bl31_versal_net_setup.c | 196 static uint32_t index; in request_intr_type_el3() local 201 if ((handler == NULL) || (index >= MAX_INTR_EL3)) { in request_intr_type_el3() 207 for (i = 0; i < index; i++) { in request_intr_type_el3() 214 type_el3_interrupt_table[index].id = id; in request_intr_type_el3() 215 type_el3_interrupt_table[index].handler = handler; in request_intr_type_el3() 217 index++; in request_intr_type_el3()
|
| /rk3399_ARM-atf/include/drivers/nxp/clk/s32cc/ |
| H A D | s32cc-clk-modules.h | 72 uint8_t index; /* Mux index in parent module */ member 84 .index = (INDEX), \ 119 uint32_t index; member 129 .index = (INDEX), \ 138 .index = (INDEX), \ 160 uint32_t index; member 170 .index = (INDEX), \ 296 uint32_t index; member 305 .index = (INDEX), \
|
| /rk3399_ARM-atf/lib/pmf/ |
| H A D | pmf_main.c | 124 int index; in get_service() local 134 index = pmf_svc_descs_indices[mid]; in get_service() 136 desc_svc_id = pmf_svc_descs[index].svc_config & PMF_SVC_ID_MASK; in get_service() 147 (pmf_svc_descs[index].svc_config & PMF_TID_MASK))) in get_service() 148 return (pmf_svc_desc_t *)&pmf_svc_descs[index]; in get_service()
|
| /rk3399_ARM-atf/lib/psa/ |
| H A D | measured_boot_private.h | 20 uint8_t index; member 35 uint8_t index; member
|
| /rk3399_ARM-atf/plat/rockchip/common/ |
| H A D | params_setup.c | 25 static struct bl_aux_gpio_info rst_gpio = { .index = UINT_MAX } ; 26 static struct bl_aux_gpio_info poweroff_gpio = { .index = UINT_MAX }; 179 if (rst_gpio.index == UINT_MAX) in plat_get_rockchip_gpio_reset() 187 if (poweroff_gpio.index == UINT_MAX) in plat_get_rockchip_gpio_poweroff()
|