/u-boot/drivers/mailbox/ |
H A D | mailbox-uclass.c | 36 int mbox_get_by_index(struct udevice *dev, int index, struct mbox_chan *chan) argument 43 debug("%s(dev=%p, index=%d, chan=%p)\n", __func__, dev, index, chan); 45 ret = dev_read_phandle_with_args(dev, "mboxes", "#mbox-cells", 0, index, 93 int index; local 97 index = dev_read_stringlist_search(dev, "mbox-names", name); 98 if (index < 0) { 99 debug("fdt_stringlist_search() failed: %d\n", index); 100 return index; 103 return mbox_get_by_index(dev, index, cha [all...] |
/u-boot/arch/arm/mach-imx/mx7ulp/ |
H A D | clock.c | 47 int index = 0; local 67 for (index = 0; index < 8; index++) { 68 if (lpuart_array[index] == LPUART_BASE) 72 if (index < 4 || index > 7) 75 return pcc_clock_get_rate(lpuart_pcc_clks[index - 4]); 147 void init_clk_usdhc(u32 index) argument 149 switch (index) { 224 lpuart_set_clk(uint32_t index, enum scg_clk clk) argument 245 u32 index = 0, i; local [all...] |
/u-boot/drivers/tpm/ |
H A D | tpm_tis_sandbox.c | 104 static void handle_cap_flag_space(u8 **datap, uint index) argument 110 pub.nv_index = __cpu_to_be32(index); 124 uint32_t code, index, length, type; local 140 index = get_unaligned_be32(sendbuf + 18); 141 printf("Get flags index %#02x\n", index); 145 switch (index) { 149 handle_cap_flag_space(&data, index); 164 printf(" ** Unknown flags index %x\n", index); [all...] |
H A D | sandbox_common.c | 18 int sb_tpm_index_to_seq(u32 index) argument 20 index &= ~HR_NV_INDEX; 21 switch (index) { 38 printf("Invalid nv index %#x\n", index);
|
/u-boot/arch/mips/mach-octeon/ |
H A D | cvmx-helper-cfg.c | 104 int __cvmx_helper_cfg_pknd(int xiface, int index) argument 114 * if more than 8 channels are configured, fix the index accordingly. 119 index %= 8; 122 pkind = cvmx_cfg_port[xi.node][xi.interface][index].ccpp_pknd; 126 int __cvmx_helper_cfg_bpid(int xiface, int index) argument 135 * if more than 8 channels are configured, fix the index accordingly. 140 index %= 8; 143 return cvmx_cfg_port[xi.node][xi.interface][index].ccpp_bpid; 146 int __cvmx_helper_cfg_pko_port_base(int xiface, int index) argument 153 return cvmx_cfg_port[xi.node][xi.interface][index] 156 __cvmx_helper_cfg_pko_port_num(int xiface, int index) argument 567 cvmx_helper_is_port_valid(int xiface, int index) argument 576 cvmx_helper_set_port_valid(int xiface, int index, bool valid) argument 585 cvmx_helper_set_mac_phy_mode(int xiface, int index, bool valid) argument 594 cvmx_helper_get_mac_phy_mode(int xiface, int index) argument 603 cvmx_helper_set_1000x_mode(int xiface, int index, bool valid) argument 612 cvmx_helper_get_1000x_mode(int xiface, int index) argument 621 cvmx_helper_set_agl_rx_clock_delay_bypass(int xiface, int index, bool valid) argument 630 cvmx_helper_get_agl_rx_clock_delay_bypass(int xiface, int index) argument 639 cvmx_helper_set_agl_rx_clock_skew(int xiface, int index, uint8_t value) argument 648 cvmx_helper_get_agl_rx_clock_skew(int xiface, int index) argument 657 cvmx_helper_set_agl_refclk_sel(int xiface, int index, uint8_t value) argument 666 cvmx_helper_get_agl_refclk_sel(int xiface, int index) argument 675 cvmx_helper_set_port_force_link_up(int xiface, int index, bool value) argument 684 cvmx_helper_get_port_force_link_up(int xiface, int index) argument 693 cvmx_helper_set_port_phy_present(int xiface, int index, bool value) argument 702 cvmx_helper_get_port_phy_present(int xiface, int index) argument 1020 cvmx_helper_set_port_fdt_node_offset(int xiface, int index, int node_offset) argument 1037 cvmx_helper_get_port_fdt_node_offset(int xiface, int index) argument 1054 cvmx_helper_set_phy_fdt_node_offset(int xiface, int index, int node_offset) argument 1071 cvmx_helper_get_phy_fdt_node_offset(int xiface, int index) argument 1089 cvmx_helper_set_port_autonegotiation(int xiface, int index, bool enable) argument 1107 cvmx_helper_get_port_autonegotiation(int xiface, int index) argument 1125 cvmx_helper_get_port_fec(int xiface, int index) argument 1142 cvmx_helper_set_port_phy_info(int xiface, int index, struct cvmx_phy_info *phy_info) argument 1160 cvmx_helper_get_port_phy_info(int xiface, int index) argument 1179 cvmx_helper_get_port_phy_leds(int xiface, int index) argument 1199 cvmx_helper_cfg_set_rgmii_tx_clk_delay(int xiface, int index, bool bypass, int clk_delay) argument 1220 cvmx_helper_cfg_get_rgmii_tx_clk_delay(int xiface, int index, bool *bypass, int *clk_delay) argument 1238 cvmx_helper_cfg_set_vsc7224_chan_info(int xiface, int index, struct cvmx_vsc7224_chan *vsc7224_chan_info) argument 1256 cvmx_helper_cfg_get_sfp_info(int xiface, int index) argument 1272 cvmx_helper_cfg_set_sfp_info(int xiface, int index, struct cvmx_fdt_sfp_info *sfp_info) argument [all...] |
H A D | cvmx-helper-loop.c | 77 int num_ports, index; local 86 for (index = 0; index < num_ports; index++) { 88 cvmx_helper_get_pknd(xiface, index) : 89 cvmx_helper_get_ipd_port(xiface, index)); 119 for (index = 0; index < num_ports; index++) { 120 int pknd = cvmx_helper_get_pknd(xiface, index); [all...] |
H A D | cvmx-cmd-queue.c | 139 unsigned int index; local 146 index = __cvmx_cmd_queue_get_index(queue_id); 147 if (index >= NUM_ELEMENTS(__cvmx_cmd_queue_state_ptrs[node]->state)) { 227 index = (pool_size >> 3) - 1; 228 qstate->pool_size_m1 = index; 229 qstate->max_depth = (max_depth + index - 1) / index; 230 qstate->index = 0; 288 qptr->index = 0; 308 unsigned int index; local [all...] |
/u-boot/cmd/ |
H A D | eeprom.c | 340 #define NEXT_PARAM(argc, index) { (argc)--; (index)++; } 345 int i2c_bus = -1, index = 0; local 354 NEXT_PARAM(argc, index); /* Skip program name */ 356 action = parse_action(argv[index]); 357 NEXT_PARAM(argc, index); 364 if (!strcmp(argv[index], "-l")) { 365 NEXT_PARAM(argc, index); 366 layout_ver = eeprom_parse_layout_version(argv[index]); 367 NEXT_PARAM(argc, index); [all...] |
H A D | bind.c | 14 static int bind_by_class_index(const char *uclass, int index, argument 35 ret = uclass_find_device(uclass_id, index, &parent); 37 printf("Cannot find device %d of class %s\n", index, uclass); 51 static int find_dev(const char *uclass, int index, struct udevice **devp) argument 62 rc = uclass_find_device(uclass_id, index, devp); 64 printf("Cannot find device %d of class %s\n", index, uclass); 71 static int unbind_by_class_index(const char *uclass, int index) argument 76 ret = find_dev(uclass, index, &dev); 95 static int unbind_child_by_class_index(const char *uclass, int index, argument 108 ret = find_dev(uclass, index, 221 int index = (argc > 2) ? dectoul(argv[2], NULL) : 0; local 227 int index = (argc > 2) ? dectoul(argv[2], NULL) : 0; local [all...] |
/u-boot/drivers/core/ |
H A D | read.c | 48 int dev_read_u32_index(struct udevice *dev, const char *propname, int index, argument 51 return ofnode_read_u32_index(dev_ofnode(dev), propname, index, outp); 55 int index, u32 def) 57 return ofnode_read_u32_index_default(dev_ofnode(dev), propname, index, 126 fdt_addr_t dev_read_addr_index(const struct udevice *dev, int index) argument 129 return ofnode_get_addr_index(dev_ofnode(dev), index); 131 return devfdt_get_addr_index(dev, index); 134 void *dev_read_addr_index_ptr(const struct udevice *dev, int index) argument 136 fdt_addr_t addr = dev_read_addr_index(dev, index); 144 fdt_addr_t dev_read_addr_size_index(const struct udevice *dev, int index, argument 54 dev_read_u32_index_default(struct udevice *dev, const char *propname, int index, u32 def) argument 153 dev_read_addr_size_index_ptr(const struct udevice *dev, int index, fdt_size_t *size) argument 164 dev_remap_addr_index(const struct udevice *dev, int index) argument 176 int index = dev_read_stringlist_search(dev, "reg-names", name); local 197 int index = dev_read_stringlist_search(dev, "reg-names", name); local 262 dev_read_string_index(const struct udevice *dev, const char *propname, int index, const char **outp) argument 279 dev_read_phandle_with_args(const struct udevice *dev, const char *list_name, const char *cells_name, int cell_count, int index, struct ofnode_phandle_args *out_args) argument 393 dev_read_resource(const struct udevice *dev, uint index, struct resource *res) argument 463 dev_decode_display_timing(const struct udevice *dev, int index, struct display_timing *config) argument [all...] |
/u-boot/board/gdsys/a38x/ |
H A D | hydra.h | 12 void print_hydra_version(uint index);
|
/u-boot/include/ |
H A D | image-android-dt.h | 13 bool android_dt_get_fdt_by_index(ulong hdr_addr, u32 index, ulong *addr,
|
/u-boot/arch/mips/mach-octeon/include/mach/ |
H A D | cvmx-helper-pko3.h | 36 int __cvmx_pko3_helper_dqs_activate(int xiface, int index, bool min_pad);
|
H A D | cvmx-cmd-queue.h | 105 s32 index; member in struct:__anon22 203 * Get the index into the state arrays for the supplied queue id. 205 * @param queue_id Queue ID to get an index for 260 unsigned int index = __cvmx_cmd_queue_get_index(queue_id); local 263 __cvmx_cmd_queue_state_ptrs[node]->lock[index] = (__cvmx_cmd_queue_lock_t){ 0, 0 }; 277 unsigned int index; local 282 index = __cvmx_cmd_queue_get_index(queue_id); 287 qptr = &__cvmx_cmd_queue_state_ptrs[node]->state[index]; 319 if (cvmx_unlikely((qptr->index + cmd_count) >= qptr->pool_size_m1)) { 326 cmd_ptr[qptr->index [all...] |
/u-boot/arch/arm/mach-apple/ |
H A D | sart.c | 46 void (*get_entry)(struct apple_sart *sart, int index, u8 *flags, void **paddr, 48 bool (*set_entry)(struct apple_sart *sart, int index, u8 flags, void *paddr, 52 static void sart2_get_entry(struct apple_sart *sart, int index, u8 *flags, void **paddr, argument 55 u32 cfg = readl(sart->base + APPLE_SART2_CONFIG(index)); 59 ((u64)readl(sart->base + APPLE_SART2_PADDR(index)) << APPLE_SART2_PADDR_SHIFT); 62 static bool sart2_set_entry(struct apple_sart *sart, int index, u8 flags, void *paddr_, argument 82 writel(paddr, sart->base + APPLE_SART2_PADDR(index)); 83 writel(cfg, sart->base + APPLE_SART2_CONFIG(index)); 88 static void sart3_get_entry(struct apple_sart *sart, int index, u8 *flags, void **paddr, argument 91 *flags = readl(sart->base + APPLE_SART3_CONFIG(index)); 97 sart3_set_entry(struct apple_sart *sart, int index, u8 flags, void *paddr_, size_t size) argument [all...] |
/u-boot/board/compulab/imx8mm-cl-iot-gate/ddr/ |
H A D | ddr.h | 22 unsigned int index; member in struct:lpddr4_tcm_desc
|
/u-boot/board/samsung/origen/ |
H A D | origen.c | 15 int board_usb_init(int index, enum usb_init_type init) argument
|
/u-boot/drivers/usb/host/ |
H A D | ehci-vf.c | 53 static void usb_internal_phy_clock_gate(int index) argument 57 phy_reg = (void __iomem *)phy_bases[index]; 61 static void usb_power_config(int index) argument 67 switch (index) { 87 static void usb_phy_enable(int index, struct usb_ehci *ehci) argument 93 phy_reg = (void __iomem *)phy_bases[index]; 122 static void usb_oc_config(int index) argument 126 ctrl = (void __iomem *)(nc_reg_bases[index] + USB_NC_REG_OFFSET); 142 int ehci_vf_common_init(struct usb_ehci *ehci, int index) argument 147 ret = board_ehci_hcd_init(index); 160 ehci_hcd_init(int index, enum usb_init_type init, struct ehci_hccr **hccr, struct ehci_hcor **hcor) argument 197 ehci_hcd_stop(int index) argument [all...] |
/u-boot/lib/ |
H A D | tpm_api.c | 126 u32 tpm_nv_read_value(struct udevice *dev, u32 index, void *data, u32 count) argument 129 return tpm1_nv_read_value(dev, index, data, count); 131 return tpm2_nv_read_value(dev, index, data, count); 136 u32 tpm_nv_write_value(struct udevice *dev, u32 index, const void *data, argument 140 return tpm1_nv_write_value(dev, index, data, count); 142 return tpm2_nv_write_value(dev, index, data, count); 152 u32 tpm_write_lock(struct udevice *dev, u32 index) argument 157 return tpm2_write_lock(dev, index); 162 u32 tpm_pcr_extend(struct udevice *dev, u32 index, const void *in_digest, argument 166 return tpm1_extend(dev, index, in_diges 176 tpm_pcr_read(struct udevice *dev, u32 index, void *data, size_t count) argument 279 tpm_get_permissions(struct udevice *dev, u32 index, u32 *perm) argument [all...] |
/u-boot/drivers/clk/at91/ |
H A D | clk-generic.c | 66 int index; local 68 index = at91_clk_mux_val_to_index(gck->clk_mux_table, gck->num_parents, 70 if (index < 0) 71 return index; 73 index = at91_clk_mux_index_to_val(gck->mux_table, gck->num_parents, 74 index); 75 if (index < 0) 76 return index; 82 (index << (ffs(gck->layout->gckcss_mask) - 1)) | 151 int ret, index; local [all...] |
/u-boot/drivers/clk/ |
H A D | clk-uclass.c | 76 const char *list_name, int index, 109 debug("%s: Node '%s', property '%s', failed to request CLK index %d: %d\n", 110 __func__, ofnode_get_name(node), list_name, index, ret); 116 int index, struct clk *clk) 121 debug("%s(dev=%p, index=%d, clk=%p)\n", __func__, dev, index, clk); 127 index, &args); 136 index, clk); 139 int clk_get_by_index(struct udevice *dev, int index, struct clk *clk) argument 141 return clk_get_by_index_nodev(dev_ofnode(dev), index, cl 74 clk_get_by_index_tail(int ret, ofnode node, struct ofnode_phandle_args *args, const char *list_name, int index, struct clk *clk) argument 115 clk_get_by_indexed_prop(struct udevice *dev, const char *prop_name, int index, struct clk *clk) argument 144 clk_get_by_index_nodev(ofnode node, int index, struct clk *clk) argument 210 int index; local 293 int index; local 408 int index = 0; local [all...] |
/u-boot/drivers/video/nexell/ |
H A D | s5pxx18_dp_mipi.c | 208 int index = MIPI_INDEX; local 229 nx_mipi_dsi_set_pll(index, 1, 0xFFFFFFFF, 232 nx_mipi_dsi_set_pll(index, 1, 0xFFFFFFFF, 240 nx_mipi_dsi_set_clock(index, 0, 0, 1, 1, 1, 0, 0, 0, 0, 10); 244 nx_mipi_dsi_software_reset(index); 245 nx_mipi_dsi_set_clock(index, 0, 0, 1, 1, 1, 0, 0, 0, 1, esc_pre_value); 246 nx_mipi_dsi_set_phy(index, 0, 1, 1, 0, 0, 0, 0, 0); 249 nx_mipi_dsi_set_escape_lp(index, nx_mipi_dsi_lpmode_lp, 252 nx_mipi_dsi_set_escape_lp(index, nx_mipi_dsi_lpmode_hs, 265 int index local 381 int size, index = 0; local 423 int index = 0, count = 100; local 443 int index = 0, rx_len = 0; local [all...] |
/u-boot/lib/efi_selftest/ |
H A D | efi_selftest_events.c | 110 efi_uintn_t index; local 129 index = 5; 130 ret = boottime->wait_for_event(1, &event_wait, &index); 141 if (index != 0) { 142 efi_st_error("WaitForEvent returned wrong index\n"); 169 ret = boottime->wait_for_event(1, &event_wait, &index); 180 ret = boottime->wait_for_event(1, &event_wait, &index);
|
/u-boot/drivers/clk/ti/ |
H A D | clk.c | 52 struct clk_iomap *io = &clk_memmaps[reg->index]; 59 struct clk_iomap *io = &clk_memmaps[reg->index]; 80 int clk_ti_get_reg_addr(struct udevice *dev, int index, struct clk_ti_reg *reg) argument 86 ret = ofnode_read_u32_index(dev_ofnode(dev), "reg", index, &val); 89 index); 117 reg->index = i;
|
/u-boot/drivers/video/ |
H A D | bochs.c | 20 static void bochs_write(void *mmio, int index, int val) argument 22 writew(val, mmio + MMIO_BASE + index * 2); 25 static int bochs_read(void *mmio, int index) argument 27 return readw(mmio + MMIO_BASE + index * 2); 30 static void bochs_vga_write(void *mmio, int index, uint8_t val) argument 32 writeb(val, mmio + VGA_BASE + index);
|