Searched refs:index (Results 226 - 250 of 603) sorted by relevance

1234567891011>>

/u-boot/arch/arm/cpu/armv8/fsl-layerscape/
H A Dls1088a_serdes.c66 int i, j, index, lnk; local
80 index = (serdes == FSL_SRDS_1) ? j : i;
82 if (ptr->rcw_lanes[index] == lnk && is_found)
/u-boot/board/ti/common/
H A Dboard_detect.c636 board_ti_get_eth_mac_addr(int index,
644 if (index < 0 || index >= TI_EEPROM_HDR_NO_OF_MAC_ADDR)
647 memcpy(mac_addr, ep->mac_addr[index], TI_EEPROM_HDR_ETH_ALEN);
655 board_ti_am6_get_eth_mac_addr(int index,
663 if (index < 0 || index >= ep->mac_addr_cnt)
666 memcpy(mac_addr, ep->mac_addr[index], TI_EEPROM_HDR_ETH_ALEN);
767 void board_ti_set_ethaddr(int index)
799 eth_env_set_enetaddr_by_index("eth", i + index,
635 board_ti_get_eth_mac_addr(int index, u8 mac_addr[TI_EEPROM_HDR_ETH_ALEN]) argument
654 board_ti_am6_get_eth_mac_addr(int index, u8 mac_addr[TI_EEPROM_HDR_ETH_ALEN]) argument
766 board_ti_set_ethaddr(int index) argument
805 board_ti_am6_set_ethaddr(int index, int count) argument
[all...]
/u-boot/include/
H A Dtpm-v1.h312 * to specify TPM_NV_ATTRIBUTES and size of the area. The area index
316 * @param index index of the area
321 u32 tpm1_nv_define_space(struct udevice *dev, u32 index, u32 perm, u32 size);
325 * to read the area from offset 0. The area index could be one of
329 * @param index index of the area
334 u32 tpm1_nv_read_value(struct udevice *dev, u32 index, void *data, u32 count);
338 * to write the area from offset 0. The area index could be one of
342 * @param index inde
[all...]
H A Dvirtio_ring.h38 * The Guest publishes the used index for which it expects an interrupt
41 * The Host publishes the avail index for which it expects a kick
101 * @index: the zero-based ordinal number for this queue
108 * @last_used_idx: last used index we've seen
115 unsigned int index; member in struct:virtqueue
136 * We publish the used event index at the end of the available ring,
165 * incremented index from old to new_idx, should we trigger an event?
233 * @index: the index of the queue
246 struct virtqueue *vring_create_virtqueue(unsigned int index, unsigne
[all...]
/u-boot/drivers/phy/rockchip/
H A Dphy-rockchip-inno-usb2.c232 int index, ret; local
263 index = 0;
265 if (phy_cfgs[index].reg == reg) {
266 priv->phy_cfg = &phy_cfgs[index];
270 ++index;
271 } while (phy_cfgs[index].reg);
/u-boot/lib/efi_loader/
H A Defi_helper.c211 bool efi_varname_is_load_option(u16 *var_name16, int *index) argument
225 if (index)
226 *index = id;
268 * efi_search_bootorder() - search the boot option index in BootOrder
272 * @target: target boot option index to search
273 * @index: pointer to store the index of BootOrder variable
276 bool efi_search_bootorder(u16 *bootorder, efi_uintn_t num, u32 target, u32 *index) argument
282 if (index)
283 *index
[all...]
/u-boot/drivers/clk/at91/
H A Dclk-main.c319 unsigned int tmp, index;
321 index = at91_clk_mux_val_to_index(main->clk_mux_table,
323 if (index < 0)
324 return index;
330 if (index && !(tmp & AT91_PMC_MOSCSEL))
332 else if (!index && (tmp & AT91_PMC_MOSCSEL))
318 unsigned int tmp, index; local
/u-boot/cmd/
H A Dcros_ec.c498 uint8_t index, state;
503 index = dectoul(argv[2], &endp);
510 ret = cros_ec_set_ldo(dev, index, state);
512 ret = cros_ec_get_ldo(dev, index, &state);
514 printf("LDO%d: %s\n", index,
521 debug("%s: Could not access LDO%d\n", __func__, index);
497 uint8_t index, state; local
H A Dlog.c110 if (gs.index != argc)
228 if (gs.index != argc)
271 if (gs.index != argc)
287 if (gs.index + 1 != argc)
290 if (strict_strtoul(argv[gs.index], 10, &filter_num)) {
291 printf("Invalid filter number \"%s\"\n", argv[gs.index]);
/u-boot/drivers/usb/dwc3/
H A Ddwc3-omap.c135 u32 index;
387 omap->index = omap_dev->index;
406 * @index: index of this controller
409 * (equivalent to dwc3_omap_remove in linux). index of _this_ controller
410 * should be passed and should match with the index passed in
415 void dwc3_omap_uboot_exit(int index)
420 if (omap->index != index)
134 u32 index; member in struct:dwc3_omap
414 dwc3_omap_uboot_exit(int index) argument
[all...]
/u-boot/lib/efi_selftest/
H A Defi_selftest_textinputex.c121 efi_uintn_t index; local
146 &index);
H A Defi_selftest_watchdog.c174 size_t index; local
200 ret = boottime->wait_for_event(1, &efi_st_event_wait, &index);
/u-boot/drivers/rtc/
H A Dmax313xx.c371 int index, reg; local
397 index = find_closest(ohms, max313xx_trickle_ohms,
403 FIELD_PREP(MAX31329_43_TRICKLE_RES_MASK, index) |
410 FIELD_PREP(MAX3133X_TRICKLE_RES_MASK, index);
413 if (index == 1)
414 index = 0;
417 FIELD_PREP(MAX31341_TRICKLE_RES_MASK, index);
426 reg = FIELD_PREP(MAX31329_43_TRICKLE_RES_MASK, index) |
/u-boot/drivers/ufs/
H A Dufs-renesas.c43 { .mode = MODE_RESTORE, .reg = _reg, .index = _index }
45 { .mode = MODE_SET, .index = _index, .u.set = _set }
48 .index = _index }
144 u32 index; member in struct:ufs_renesas_init_param
283 WARN_ON(p->index >= MAX_INDEX);
287 ufshcd_writel(hba, save[p->index], p->reg);
290 save[p->index] |= p->u.set;
293 save[p->index] = ufshcd_readl(hba, p->reg) & p->mask;
/u-boot/include/dm/
H A Dpinctrl.h298 * @index: GPIO index within the bank
309 int (*get_gpio_mux)(struct udevice *dev, int banknum, int index);
561 * @index: GPIO index within the bank
571 int pinctrl_get_gpio_mux(struct udevice *dev, int banknum, int index);
576 * @selector: Pin index within pin-controller
601 * @selector: Pin index within pin-controller
/u-boot/arch/arm/mach-k3/include/mach/
H A Dam62_hardware.h83 #define CTRLMMR_DBOUNCE_CFG(index) (MCU_CTRL_MMR0_BASE + 0x4080 + (index * 4))
/u-boot/drivers/usb/eth/
H A Dmcs7830.c99 * @idx: index of the register to start reading from
129 * @idx: index of the register to start writing to
160 * @index: number of the PHY register to read or write
164 uint8_t rwflag, uint8_t index)
172 cmd[1] = PHY_CMD2_PEND | (index & 0x1f);
195 * @index: index of the PHY register to read from
198 static int mcs7830_read_phy(struct usb_device *udev, uint8_t index)
204 rc = mcs7830_phy_emit_wait(udev, PHY_CMD1_READ, index);
213 debug("%s(%d) => 0x%04X\n", __func__, index, r
162 mcs7830_phy_emit_wait(struct usb_device *udev, uint8_t rwflag, uint8_t index) argument
197 mcs7830_read_phy(struct usb_device *udev, uint8_t index) argument
223 mcs7830_write_phy(struct usb_device *udev, uint8_t index, uint16_t val) argument
[all...]
/u-boot/drivers/net/
H A Dpcnet.c101 static u16 pcnet_read_csr(struct pcnet_priv *lp, int index)
103 writew(index, lp->iobase + PCNET_RAP);
107 static void pcnet_write_csr(struct pcnet_priv *lp, int index, u16 val)
109 writew(index, lp->iobase + PCNET_RAP);
113 static u16 pcnet_read_bcr(struct pcnet_priv *lp, int index)
115 writew(index, lp->iobase + PCNET_RAP);
119 static void pcnet_write_bcr(struct pcnet_priv *lp, int index, u16 val)
121 writew(index, lp->iobase + PCNET_RAP);
100 pcnet_read_csr(struct pcnet_priv *lp, int index) argument
106 pcnet_write_csr(struct pcnet_priv *lp, int index, u16 val) argument
112 pcnet_read_bcr(struct pcnet_priv *lp, int index) argument
118 pcnet_write_bcr(struct pcnet_priv *lp, int index, u16 val) argument
H A Ddwmac_socfpga.c73 u32 index = ((u64)pdata->phy_intf - socfpga_get_sysmgr_addr() -
76 u32 id = SOCFPGA_SECURE_REG_SYSMGR_SOC64_EMAC0 + index;
72 u32 index = ((u64)pdata->phy_intf - socfpga_get_sysmgr_addr() - local
/u-boot/drivers/pinctrl/broadcom/
H A Dpinctrl-bcm283x.c93 int index)
98 return bcm2835_gpio_get_func_id(dev, index);
91 bcm283x_pinctrl_get_gpio_mux(struct udevice *dev, int banknum, int index) argument
/u-boot/drivers/hwspinlock/
H A Dhwspinlock-uclass.c40 int hwspinlock_get_by_index(struct udevice *dev, int index,
52 index, &args);
39 hwspinlock_get_by_index(struct udevice *dev, int index, struct hwspinlock *hws) argument
/u-boot/drivers/fpga/
H A Divm_core.c1367 unsigned short index = 0;
1410 for (index = 0; index < size; index++) {
1411 ByteData[index] = 0x00;
1419 ByteData[index] = compr_char;
1428 ByteData[index] |=
1435 for (index = 0; index < size; index
1366 unsigned short index = 0; local
[all...]
/u-boot/drivers/gpio/
H A Dgpio-uclass.c1115 * index: gpio index in gpio list
1120 * add_index: should index added to gpio label name
1134 const char *list_name, int index,
1177 nodename, list_name, index);
1193 debug("%s: Node '%s', property '%s', failed to request GPIO index %d: %d\n",
1194 __func__, nodename, list_name, index, ret);
1200 int index, struct gpio_desc *desc,
1207 index, &args);
1210 index, des
1131 gpio_request_tail(int ret, const char *nodename, struct ofnode_phandle_args *args, const char *list_name, int index, struct gpio_desc *desc, int flags, bool add_index, struct udevice *gpio_dev) argument
1198 _gpio_request_by_name_nodev(ofnode node, const char *list_name, int index, struct gpio_desc *desc, int flags, bool add_index) argument
1212 gpio_request_by_name_nodev(ofnode node, const char *list_name, int index, struct gpio_desc *desc, int flags) argument
1219 gpio_request_by_name(struct udevice *dev, const char *list_name, int index, struct gpio_desc *desc, int flags) argument
1326 const int index = 0; local
1434 gpio_dev_request_index(struct udevice *dev, const char *nodename, char *list_name, int index, int flags, int dtflags, struct gpio_desc *desc) argument
1459 devm_gpiod_get_index(struct udevice *dev, const char *id, unsigned int index, int flags) argument
1497 devm_gpiod_get_index_optional(struct udevice *dev, const char *id, unsigned int index, int flags) argument
[all...]
/u-boot/drivers/bios_emulator/x86emu/
H A Ddecode.c728 index - index value of SIB byte
731 Value of scale * index
734 Decodes scale/index of SIB byte and returns relevant offset part of
739 int index)
747 switch (index) {
750 return M.x86.R_EAX * index;
753 return M.x86.R_ECX * index;
756 return M.x86.R_EDX * index;
759 return M.x86.R_EBX * index;
736 decode_sib_si( int scale, int index) argument
791 int index = (sib >> 3) & 0x07; local
[all...]
/u-boot/arch/arm/mach-imx/
H A Dhab.c91 enum hab_status hab_rvt_report_event(enum hab_status status, u32 index,
102 arm_smccc_smc(FSL_SIP_HAB, FSL_SIP_HAB_REPORT_EVENT, (unsigned long)index,
109 ret = hab_rvt_report_event_func(status, index, event, bytes);
452 uint32_t index = 0; /* Loop index */
469 while (hab_rvt_report_event(HAB_STS_ANY, index, event_data,
473 index + 1);
478 index++;
499 unsigned int index = 0;
541 index
90 hab_rvt_report_event(enum hab_status status, u32 index, u8 *event, size_t *bytes) argument
451 uint32_t index = 0; /* Loop index */ local
498 unsigned int index = 0; local
[all...]

Completed in 185 milliseconds

1234567891011>>