/u-boot/drivers/clk/at91/ |
H A D | clk-programmable.c | 61 int index; 63 index = at91_clk_mux_val_to_index(prog->clk_mux_table, 65 if (index < 0) 66 return index; 68 index = at91_clk_mux_index_to_val(prog->mux_table, prog->num_parents, 69 index); 70 if (index < 0) 71 return index; 76 if (index > layout->css_mask) { 77 if (index > PROG_MAX_RM9200_CS 60 int index; local [all...] |
/u-boot/arch/x86/cpu/intel_common/ |
H A D | report_platform.c | 21 u32 index; local 23 index = 0x80000000; 24 cpuidr = cpuid(index);
|
/u-boot/arch/arm/mach-imx/imx8ulp/ |
H A D | cgc.c | 473 u32 index, gate, vld, reg; 482 index = clk - PLL3_PFD0; 490 index = clk - PLL4_PFD0; 499 gate = reg & (BIT(7) << (index * 8)); 500 vld = reg & (BIT(6) << (index * 8)); 505 return (u64)decode_pll(pll) * 18 / ((reg >> (index * 8)) & 0x3F); 511 u32 pfd, index, gate, reg; 518 index = clk - PLL3_PFD0_DIV1; 524 index = clk - PLL3_PFD0_DIV1; 530 index 472 u32 index, gate, vld, reg; local 510 u32 pfd, index, gate, reg; local 618 u32 reg, gate, index; local 647 u32 reg, gate, vld, index; local [all...] |
/u-boot/arch/mips/mach-octeon/include/mach/ |
H A D | cvmx-pip.h | 194 static inline int cvmx_pip_config_watcher(int index, int type, u16 match, u16 mask, int grp, argument 197 if (index >= CVMX_PIP_NUM_WATCHERS) { 198 debug("ERROR: pip watcher %d is > than supported\n", index); 204 qos_watcher[index].field = CVMX_PKI_PCAM_TERM_L3_FLAGS; 205 qos_watcher[index].data = (u32)(match << 16); 206 qos_watcher[index].data_mask = (u32)(mask << 16); 207 qos_watcher[index].advance = 0; 209 qos_watcher[index].field = CVMX_PKI_PCAM_TERM_L4_PORT; 210 qos_watcher[index].data = 0x060000; 211 qos_watcher[index] 324 __cvmx_pip_enable_watcher_78xx(int node, int index, int style) argument 558 int interface, index, pknd; local 632 int index = cvmx_helper_get_interface_index_num(port_num); local 774 u64 index; local 802 u64 index = mask_index * 16 + offset / 8; local 955 int index; local 1017 int index = cvmx_pip_get_bsel_table_index(work); local 1031 int index = cvmx_pip_get_bsel_table_index(work); local 1045 int index = cvmx_pip_get_bsel_table_index(work); local 1059 int index = cvmx_pip_get_bsel_table_index(work); local [all...] |
/u-boot/drivers/reset/ |
H A D | reset-uclass.c | 40 const char *list_name, int index, 80 int reset_get_by_index(struct udevice *dev, int index, 87 index, &args); 90 index > 0, reset_ctl); 93 int reset_get_by_index_nodev(ofnode node, int index, 100 index, &args); 103 index > 0, reset_ctl); 150 int index = 0; 157 index = dev_read_stringlist_search(dev, "reset-names", name); 158 if (index < 37 reset_get_by_index_tail(int ret, ofnode node, struct ofnode_phandle_args *args, const char *list_name, int index, struct reset_ctl *reset_ctl) argument 79 reset_get_by_index(struct udevice *dev, int index, struct reset_ctl *reset_ctl) argument 92 reset_get_by_index_nodev(ofnode node, int index, struct reset_ctl *reset_ctl) argument 149 int index = 0; local 265 devm_reset_control_get_by_index(struct udevice *dev, int index) argument [all...] |
/u-boot/drivers/pci/ |
H A D | pcie_dw_common.c | 32 static void dw_pcie_writel_ob_unroll(struct pcie_dw *pci, u32 index, u32 reg, 35 u32 offset = PCIE_GET_ATU_OUTB_UNR_REG_OFFSET(index); 41 static u32 dw_pcie_readl_ob_unroll(struct pcie_dw *pci, u32 index, u32 reg) 43 u32 offset = PCIE_GET_ATU_OUTB_UNR_REG_OFFSET(index); 53 * @index: ATU region index 61 int pcie_dw_prog_outbound_atu_unroll(struct pcie_dw *pci, int index, 67 dev_dbg(pci->dev, "ATU programmed with: index: %d, type: %d, cpu addr: %8llx, pci addr: %8llx, size: %8x\n", 68 index, type, cpu_addr, pci_addr, size); 70 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_LOWER_BAS 31 dw_pcie_writel_ob_unroll(struct pcie_dw *pci, u32 index, u32 reg, u32 val) argument 40 dw_pcie_readl_ob_unroll(struct pcie_dw *pci, u32 index, u32 reg) argument 60 pcie_dw_prog_outbound_atu_unroll(struct pcie_dw *pci, int index, int type, u64 cpu_addr, u64 pci_addr, u32 size) argument [all...] |
H A D | pcie_layerscape_gen4_fixup.c | 28 * Return next available LUT index. 41 static void ls_pcie_g4_lut_set_mapping(struct ls_pcie_g4 *pcie, int index, 45 lut_writel(pcie, devid << 16, PCIE_LUT_UDR(index)); 46 lut_writel(pcie, streamid | PCIE_LUT_ENABLE, PCIE_LUT_LDR(index)); 145 int index; 162 index = ls_pcie_g4_next_lut_index(pcie); 163 if (index < 0) { 171 ls_pcie_g4_lut_set_mapping(pcie, index, bdf >> 8, streamid); 40 ls_pcie_g4_lut_set_mapping(struct ls_pcie_g4 *pcie, int index, u32 devid, u32 streamid) argument 144 int index; local
|
/u-boot/include/ |
H A D | reset.h | 119 * @index: The index of the reset signal to request, within the client's 129 int index); 180 * reset_get_by_index - Get/request a reset signal by integer index. 182 * This looks up and requests a reset signal. The index is relative to the 190 * @index: The index of the reset signal to request, within the client's 195 int reset_get_by_index(struct udevice *dev, int index, 199 * reset_get_by_index_nodev - Get/request a reset signal by integer index 205 * @index 375 devm_reset_control_get_by_index(struct udevice *dev, int index) argument 403 reset_get_by_index(struct udevice *dev, int index, struct reset_ctl *reset_ctl) argument [all...] |
H A D | generic-phy.h | 278 * generic_phy_get_by_index() - Get a PHY device by integer index. 281 * @index: The index in the list of available PHYs 297 * the USB2 phy can be accessed by passing index '0' and the USB3 phy can 298 * be accessed by passing index '1' 302 int generic_phy_get_by_index(struct udevice *user, int index, 306 * generic_phy_get_by_index_nodev() - Get a PHY device by integer index 310 * @index: The index in the list of available PHYs 328 * the USB2 phy can be accessed by passing index ' 474 generic_phy_get_by_index(struct udevice *user, int index, struct phy *phy) argument 512 generic_setup_phy(struct udevice *dev, struct phy *phy, int index) argument [all...] |
H A D | tpm_api.h | 41 * to specify TPM_NV_ATTRIBUTES and size of the area. The area index 45 * @param index index of the area 50 u32 tpm_nv_define_space(struct udevice *dev, u32 index, u32 perm, u32 size); 54 * to read the area from offset 0. The area index could be one of 58 * @param index index of the area 63 u32 tpm_nv_read_value(struct udevice *dev, u32 index, void *data, u32 count); 67 * to write the area from offset 0. The area index could be one of 71 * @param index inde [all...] |
/u-boot/drivers/mux/ |
H A D | mux-uclass.c | 155 * mux_get_by_indexed_prop() - Get a mux control by integer index 158 * @index: The index of the mux to get 164 int index, struct mux_control **mux) 172 log_debug("%s(dev=%p, index=%d, mux=%p)\n", __func__, dev, index, mux); 175 0, index, &args); 205 int mux_get_by_index(struct udevice *dev, int index, struct mux_control **mux) 207 return mux_get_by_indexed_prop(dev, "mux-controls", index, mux); 213 int index; 162 mux_get_by_indexed_prop(struct udevice *dev, const char *prop_name, int index, struct mux_control **mux) argument 204 mux_get_by_index(struct udevice *dev, int index, struct mux_control **mux) argument 212 int index; local [all...] |
/u-boot/drivers/usb/emul/ |
H A D | usb-emul-uclass.c | 31 static int usb_emul_get_string(struct usb_string *strings, int index, 34 if (index == 0) { 46 if (ptr->id == index) 55 struct usb_generic_descriptor **ptr, int type, int index) 57 debug("%s: type=%x, index=%d\n", __func__, type, index); 66 if (cdesc && cdesc->bConfigurationValue == index) 84 int index = value & 0xff; 87 debug("%s: type=%d, index=%d, plat=%p\n", __func__, type, index, pla 30 usb_emul_get_string(struct usb_string *strings, int index, char *buff, int length) argument 53 usb_emul_find_descriptor( struct usb_generic_descriptor **ptr, int type, int index) argument 83 int index = value & 0xff; local [all...] |
/u-boot/include/dm/ |
H A D | of_access.h | 326 * @index: index of the u32 in the list of values 334 int index, u32 *outp); 342 * @index: index of the u32 in the list of values 353 int index, u64 *outp); 389 * of_property_match_string() - Find string in a list and return index 391 * This function searches a string list property and returns the index 406 size_t sz, int index); 413 * @index 428 of_property_read_string_index(const struct device_node *np, const char *propname, int index, const char **output) argument [all...] |
/u-boot/arch/mips/mach-octeon/ |
H A D | cvmx-helper-pki.c | 168 int index; local 195 index = cvmx_pki_pcam_entry_alloc( 197 if (index < 0) { 213 node, index, cl_mask, pcam_input, 216 index = cvmx_pki_pcam_entry_alloc( 218 if (index < 0) { 224 cvmx_pki_pcam_write_entry(node, index, cl_mask, pcam_input, 227 index = cvmx_pki_pcam_entry_alloc( 229 if (index < 0) { 236 node, index, cl_mas 347 int xiface, index; local 464 int xiface, index, pknd; local 492 int xiface, index, pknd; local 525 int xiface, index; local [all...] |
H A D | cvmx-pki-resources.c | 39 * first available style from style resource. If index is positive 157 * @param index index of pacm entry (0-191), if -1 , 163 int cvmx_pki_pcam_entry_alloc(int node, int index, int bank, u64 cluster_mask) argument 178 if (index >= 0) 181 index, 1); 187 printf("ERROR: PCAM :index %d not available in cluster %d bank %d", 188 (int)index, (int)cluster, bank); 192 index = rs; 194 all clusters will have same base index*/ [all...] |
/u-boot/drivers/net/octeon/ |
H A D | octeon_eth.c | 112 * @param index index of port to set MAC address for 125 int index = priv->index; local 141 xipd_port = cvmx_helper_get_ipd_port(interface, index); 153 gmx_reg = CVMX_GMXX_RXX_INT_REG(index, interface); 154 csr_wr(CVMX_GMXX_SMACX(index, interface), mac); 306 * @param index port index on interface 313 int index, in 312 octeon_eth_initialize(struct udevice *dev, int interface, int index, int port, cvmx_helper_interface_mode_t if_mode) argument 462 octeon_bgx_xcv_rgmii_enable(int interface, int index, bool enable) argument 482 int index, interface; local 930 int index = oct_eth_info->index; local 968 int index = oct_eth_info->index; local [all...] |
/u-boot/drivers/watchdog/ |
H A D | atcwdt200_wdt.c | 68 static inline u8 atcwdt_get_2_power_of_n(u8 index, u8 type) argument 80 if (index >= type) 81 index = type - 1; 83 return pdiv[index]; 90 u8 index; local 93 for (index = 0; index < type; index++) { 94 result = freq_sec >> atcwdt_get_2_power_of_n(index, type); 100 return index; [all...] |
/u-boot/cmd/ |
H A D | smbios.c | 33 * @index: index of the string 36 static const char *smbios_get_string(void *table, int index) argument 42 if (!index) 47 for (--index; *str && index; --index) 75 for (int index = 1; *str; ++index) { 76 printf("\tString %u: %s\n", index, st 82 smbios_print_str(const char *label, void *table, u8 index) argument [all...] |
H A D | tpm-v1.c | 45 u32 index, perm, size; local 55 index = simple_strtoul(argv[1], NULL, 0); 59 return report_return_code(tpm1_nv_define_space(dev, index, perm, size)); 65 u32 index, count, rc; local 75 index = simple_strtoul(argv[1], NULL, 0); 79 rc = tpm_nv_read_value(dev, index, data, count); 92 u32 index, rc; local 102 index = simple_strtoul(argv[1], NULL, 0); 109 rc = tpm_nv_write_value(dev, index, data, count); 120 u32 index, r local 147 u32 index, count, rc; local 291 u32 index, perm, size; local 315 u32 index, count, err; local 350 u32 index, count, err; local [all...] |
H A D | tpm-v2.c | 100 u32 index = simple_strtoul(argv[1], NULL, 0); 116 if (index >= priv->pcr_count) 119 rc = tpm2_pcr_extend(dev, index, TPM2_ALG_SHA256, digest, 132 u32 index, rc; 148 index = simple_strtoul(argv[1], NULL, 0); 149 if (index >= priv->pcr_count) 154 rc = tpm2_pcr_read(dev, index, priv->pcr_select_min, TPM2_ALG_SHA256, 157 printf("PCR #%u content (%u known updates):\n", index, updates); 313 u32 index = simple_strtoul(argv[1], NULL, 0); 330 return report_return_code(tpm2_pcr_setauthpolicy(dev, pw, pw_sz, index, 99 u32 index = simple_strtoul(argv[1], NULL, 0); local 131 u32 index, rc; local 312 u32 index = simple_strtoul(argv[1], NULL, 0); local 336 u32 index = simple_strtoul(argv[1], NULL, 0); local [all...] |
/u-boot/board/compulab/imx8mm-cl-iot-gate/ddr/ |
H A D | ddr.c | 88 lpddr4_tcm_desc->index = 0; 97 lpddr4_tcm_desc->index = 0; 127 * one by one. Save the index at the tcm memory that 133 if (lpddr4_tcm_desc->index < ARRAY_SIZE(lpddr4_array)) { 135 lpddr4_tcm_desc->index + 1, 137 i = lpddr4_tcm_desc->index; 138 lpddr4_tcm_desc->index += 1;
|
/u-boot/arch/arm/include/asm/arch-mx7ulp/ |
H A D | clock.h | 38 void init_clk_usdhc(u32 index);
|
/u-boot/arch/arm/include/asm/arch-lpc32xx/ |
H A D | i2c.h | 32 int index; member in struct:lpc32xx_i2c_dev
|
/u-boot/board/gateworks/venice/ |
H A D | eeprom.h | 31 int eeprom_getmac(int index, uint8_t *enetaddr);
|
/u-boot/drivers/bus/ |
H A D | ti-sysc.c | 40 static int ti_sysc_get_one_clock(struct udevice *dev, enum ti_sysc_clocks index) 46 switch (index) { 55 name = clock_names[index]; 57 err = clk_get_by_name(dev, name, &priv->clocks[index]); 39 ti_sysc_get_one_clock(struct udevice *dev, enum ti_sysc_clocks index) argument
|