Searched refs:index (Results 26 - 50 of 603) sorted by relevance

1234567891011>>

/u-boot/arch/arm/mach-zynqmp/
H A Dhandoff.c75 u32 index = 0;
87 atfhandoffparams->partition[index].entry_point = bl32_entry;
88 atfhandoffparams->partition[index].flags = FSBL_FLAGS_EL1 << FSBL_FLAGS_EL_SHIFT |
90 index++;
95 atfhandoffparams->partition[index].entry_point = bl33_entry;
96 atfhandoffparams->partition[index].flags = FSBL_FLAGS_EL2 <<
98 index++;
101 atfhandoffparams->num_entries = index;
74 u32 index = 0; local
/u-boot/drivers/hwspinlock/
H A Dstm32_hwspinlock.c24 static int stm32mp1_lock(struct udevice *dev, int index)
29 if (index >= STM32_MUTEX_NUM_LOCKS)
32 status = readl(priv->base + index * sizeof(u32));
37 priv->base + index * sizeof(u32));
39 status = readl(priv->base + index * sizeof(u32));
46 static int stm32mp1_unlock(struct udevice *dev, int index)
50 if (index >= STM32_MUTEX_NUM_LOCKS)
53 writel(STM32_MUTEX_COREID, priv->base + index * sizeof(u32));
23 stm32mp1_lock(struct udevice *dev, int index) argument
45 stm32mp1_unlock(struct udevice *dev, int index) argument
/u-boot/include/dm/
H A Dfdtaddr.h49 * @index: the 'reg' property can hold a list of <addr, size> pairs
50 * and @index is used to select which one is required
56 void *devfdt_remap_addr_index(const struct udevice *dev, int index);
87 * @index: the 'reg' property can hold a list of <addr, size> pairs
88 * and @index is used to select which one is required
92 fdt_addr_t devfdt_get_addr_index(const struct udevice *dev, int index);
99 * @index: the 'reg' property can hold a list of <addr, size> pairs
100 * and @index is used to select which one is required
104 void *devfdt_get_addr_index_ptr(const struct udevice *dev, int index);
112 * @index
[all...]
H A Dof_addr.h68 * index.
71 * @index: Index of address to read (0 = first)
76 const __be32 *of_get_address(const struct device_node *np, int index,
90 * @index: index of address to read (0 = first)
94 int of_address_to_resource(const struct device_node *np, int index,
/u-boot/drivers/ddr/marvell/a38x/
H A Dmv_ddr4_training_db.c43 /* non-dbi mode - table for cl values per frequency for each speed bin index */
74 u32 mv_ddr_cl_val_get(u32 index, u32 freq) argument
76 return cl_table[index].cl_val[freq];
79 /* dbi mode - table for cl values per frequency for each speed bin index */
109 /* table for cwl values per speed bin index */
139 u32 mv_ddr_cwl_val_get(u32 index, u32 freq) argument
141 return cwl_table[index].cl_val[freq];
361 /* return speed bin value for selected index and element */
362 unsigned int mv_ddr_speed_bin_timing_get(enum mv_ddr_speed_bin index, enum mv_ddr_speed_bin_timing element) argument
377 result = speed_bin_table_t_rcd_t_rp[index];
[all...]
H A Dmv_ddr_training_db.h36 unsigned int mv_ddr_speed_bin_timing_get(enum mv_ddr_speed_bin index, enum mv_ddr_speed_bin_timing element);
37 u32 mv_ddr_cl_val_get(u32 index, u32 freq);
38 u32 mv_ddr_cwl_val_get(u32 index, u32 freq);
/u-boot/arch/x86/include/asm/
H A Dpnp_def.h67 static inline void pnp_set_iobase(uint16_t dev, uint8_t index, uint16_t iobase) argument
69 pnp_write_config(dev, index + 0, (iobase >> 8) & 0xff);
70 pnp_write_config(dev, index + 1, iobase & 0xff);
73 static inline uint16_t pnp_read_iobase(uint16_t dev, uint8_t index) argument
75 return ((uint16_t)(pnp_read_config(dev, index)) << 8) |
76 pnp_read_config(dev, index + 1);
79 static inline void pnp_set_irq(uint16_t dev, uint8_t index, unsigned irq) argument
81 pnp_write_config(dev, index, irq);
84 static inline void pnp_set_drq(uint16_t dev, uint8_t index, unsigned drq) argument
86 pnp_write_config(dev, index, dr
[all...]
/u-boot/arch/mips/mach-octeon/include/mach/
H A Dcvmx-helper-bgx.h167 cvmx_helper_interface_mode_t cvmx_helper_bgx_get_mode(int xiface, int index);
214 void cvmx_helper_bgx_tx_options(unsigned int node, unsigned int interface, unsigned int index,
231 void cvmx_helper_bgx_set_jabber(int xiface, unsigned int index, unsigned int size);
232 int cvmx_helper_bgx_shutdown_port(int xiface, int index);
240 * @param index port index (must be 0 for rgmii)
244 static inline bool cvmx_helper_bgx_is_rgmii(int xiface, int index) argument
248 if (!OCTEON_IS_MODEL(OCTEON_CN73XX) || index != 0)
250 cmr_config.u64 = csr_rd(CVMX_BGXX_CMRX_CONFIG(index, xiface));
258 * @param index interfac
[all...]
/u-boot/arch/mips/mach-octeon/
H A Dcvmx-helper-rgmii.c149 int index = cvmx_helper_get_interface_index_num(ipd_port); local
153 if (asxx_prt_loop.s.int_loop & (1 << index)) {
181 int index = cvmx_helper_get_interface_index_num(ipd_port); local
183 if (index == 0) {
212 int index = cvmx_helper_get_interface_index_num(ipd_port); local
222 original_gmx_cfg.u64 = csr_rd(CVMX_GMXX_PRTX_CFG(index, interface));
227 csr_rd(CVMX_ASXX_RX_PRT_EN(interface)) & ~(1 << index));
246 gmx_tx_ovr_bp.s.bp &= ~(1 << index);
247 gmx_tx_ovr_bp.s.en |= 1 << index;
258 csr_wr(CVMX_NPI_DBG_SELECT, interface * 0x800 + index *
350 int index = cvmx_helper_get_interface_index_num(ipd_port); local
[all...]
/u-boot/arch/arm/mach-stm32mp/
H A Dsoc.c65 int nb_eth, nb_otp, index; local
91 for (index = 0; index < nb_eth; index++) {
93 if (eth_env_get_enetaddr_by_index("eth", index, enetaddr))
97 enetaddr[i] = ((uint8_t *)&otp)[i + ARP_HLEN * index];
105 index, enetaddr);
108 log_debug("OTP MAC address %d = %pM\n", index, enetaddr);
109 ret = eth_env_set_enetaddr_by_index("eth", index, enetaddr);
/u-boot/net/
H A Deth_common.c16 int eth_env_get_enetaddr_by_index(const char *base_name, int index,
20 sprintf(enetvar, index ? "%s%daddr" : "%saddr", base_name, index);
24 int eth_env_set_enetaddr_by_index(const char *base_name, int index,
28 sprintf(enetvar, index ? "%s%daddr" : "%saddr", base_name, index);
42 int eth_mac_skip(int index)
47 sprintf(enetvar, index ? "eth%dmacskip" : "ethmacskip", index);
15 eth_env_get_enetaddr_by_index(const char *base_name, int index, uchar *enetaddr) argument
23 eth_env_set_enetaddr_by_index(const char *base_name, int index, uchar *enetaddr) argument
41 eth_mac_skip(int index) argument
/u-boot/arch/sandbox/include/asm/
H A Deth.h14 void sandbox_eth_disable_response(int index, bool disable);
102 void sandbox_eth_set_tx_handler(int index, sandbox_eth_tx_hand_f *handler);
109 void sandbox_eth_set_priv(int index, void *priv);
/u-boot/arch/arm/mach-keystone/include/mach/
H A Dmux-k2g.h37 #define MUX_CFG(value, index) \
40 (__raw_readl(K2G_PADCFG_REG + (index << 2)) & \
42 (K2G_PADCFG_REG + (index << 2))\
/u-boot/include/linux/usb/
H A Datmel_usba_udc.h11 int index; member in struct:usba_ep_data
/u-boot/arch/arm/mach-s5pc1xx/include/mach/
H A Dmmc.h55 int s5p_sdhci_init(u32 regbase, int index, int bus_width);
57 static inline int s5p_mmc_init(int index, int bus_width) argument
60 (S5P_MMC_DEV_OFFSET * index);
62 return s5p_sdhci_init(base, index, bus_width);
/u-boot/arch/arm/mach-exynos/include/mach/
H A Dmmc.h57 int s5p_sdhci_init(u32 regbase, int index, int bus_width);
59 static inline int s5p_mmc_init(int index, int bus_width) argument
62 (S5P_MMC_DEV_OFFSET * index);
64 return s5p_sdhci_init(base, index, bus_width);
/u-boot/include/
H A Dhwspinlock.h34 * hwspinlock_get_by_index - Get a hardware spinlock by integer index
36 * This looks up and request a hardware spinlock. The index is relative to the
41 * @index: The index of the hardware spinlock to request, within the
47 int index, struct hwspinlock *hws);
71 int index,
117 * @index: index of the lock to be used
120 int (*lock)(struct udevice *dev, int index);
126 * @index
70 hwspinlock_get_by_index(struct udevice *dev, int index, struct hwspinlock *hws) argument
[all...]
/u-boot/board/st/stih410-b2260/
H A Dboard.c50 .index = 0,
53 int board_usb_init(int index, enum usb_init_type init)
66 int board_usb_cleanup(int index, enum usb_init_type init)
68 dwc3_uboot_exit(index);
52 board_usb_init(int index, enum usb_init_type init) argument
65 board_usb_cleanup(int index, enum usb_init_type init) argument
/u-boot/arch/riscv/include/asm/arch-fu540/
H A Dgpio.h35 #define SIFIVE_GENERIC_GPIO_NR(port, index) \
36 (((port) * NR_GPIOS) + ((index) & (NR_GPIOS - 1)))
/u-boot/arch/riscv/include/asm/arch-fu740/
H A Dgpio.h35 #define SIFIVE_GENERIC_GPIO_NR(port, index) \
36 (((port) * NR_GPIOS) + ((index) & (NR_GPIOS - 1)))
/u-boot/drivers/clk/ti/
H A Dclk-mux.c29 int index)
31 if (index < 0 || !parents)
34 if (index >= parents->count)
37 return &parents->clks[index];
80 int index;
83 index = clk_ti_mux_get_parent_index(&priv->parents, parent);
84 if (index < 0) {
86 return index;
89 index = clk_mux_index_to_val(NULL, priv->flags, index);
27 clk_ti_mux_get_parent_by_index(struct clk_bulk *parents, int index) argument
79 int index; local
107 int index; local
125 int index; local
143 int index; local
162 int index; local
[all...]
/u-boot/drivers/video/nexell/soc/
H A Ds5pxx18_soc_disptop_clk.c151 void nx_disp_top_clkgen_set_clock_source(u32 module_index, u32 index, argument
162 read_value = pregister->CLKGEN[index << 1];
166 writel(read_value, &pregister->CLKGEN[index << 1]);
169 u32 nx_disp_top_clkgen_get_clock_source(u32 module_index, u32 index) argument
177 return (pregister->CLKGEN[index << 1] &
181 void nx_disp_top_clkgen_set_clock_divisor(u32 module_index, u32 index, argument
191 read_value = pregister->CLKGEN[index << 1];
194 writel(read_value, &pregister->CLKGEN[index << 1]);
197 u32 nx_disp_top_clkgen_get_clock_divisor(u32 module_index, u32 index) argument
205 return ((pregister->CLKGEN[index <<
237 nx_disp_top_clkgen_set_clock_out_inv(u32 module_index, u32 index, int out_clk_inv) argument
254 nx_disp_top_clkgen_get_clock_out_inv(u32 module_index, u32 index) argument
266 nx_disp_top_clkgen_set_input_inv(u32 module_index, u32 index, int in_clk_inv) argument
284 nx_disp_top_clkgen_get_input_inv(u32 module_index, u32 index) argument
296 nx_disp_top_clkgen_set_clock_out_select(u32 module_index, u32 index, int bbypass) argument
[all...]
/u-boot/drivers/clk/at91/
H A Dclk-sam9x60-usb.c35 int index; local
38 index = at91_clk_mux_val_to_index(usb->clk_mux_table, usb->num_parents,
40 if (index < 0)
41 return index;
43 index = at91_clk_mux_index_to_val(usb->mux_table, usb->num_parents,
44 index);
45 if (index < 0)
46 return index;
50 val |= index << (ffs(usb->layout->usbs_mask - 1));
106 int ret, index; local
[all...]
/u-boot/test/lib/
H A Dgetopt.c65 ut_asserteq(4, gs.index);
71 ut_asserteq(4, gs.index);
90 ut_asserteq(2, gs.index);
96 ut_asserteq(2, gs.index);
103 ut_asserteq(3, gs.index);
110 ut_asserteq(2, gs.index);
117 ut_asserteq(3, gs.index);
/u-boot/drivers/core/
H A Dfdtaddr.c22 fdt_addr_t devfdt_get_addr_index(const struct udevice *dev, int index)
47 if (!reg || (len <= (index * sizeof(fdt32_t) * (na + ns)))) {
48 debug("Req index out of range\n");
52 reg += index * (na + ns);
71 offset, "reg", index,
97 void *devfdt_get_addr_index_ptr(const struct udevice *dev, int index)
99 fdt_addr_t addr = devfdt_get_addr_index(dev, index);
107 fdt_addr_t devfdt_get_addr_size_index(const struct udevice *dev, int index,
117 "reg", index, size, false);
123 return devfdt_get_addr_index(dev, index);
21 devfdt_get_addr_index(const struct udevice *dev, int index) argument
96 devfdt_get_addr_index_ptr(const struct udevice *dev, int index) argument
106 devfdt_get_addr_size_index(const struct udevice *dev, int index, fdt_size_t *size) argument
128 devfdt_get_addr_size_index_ptr(const struct udevice *dev, int index, fdt_size_t *size) argument
142 int index; local
169 int index; local
203 devfdt_remap_addr_index(const struct udevice *dev, int index) argument
[all...]

Completed in 183 milliseconds

1234567891011>>