/u-boot/drivers/net/ |
H A D | e1000_spi.c | 24 static int e1000_spi_xfer(struct e1000_hw *hw, unsigned int bitlen, argument 35 eecd = E1000_READ_REG(hw, EECD); 50 E1000_WRITE_REG(hw, EECD, eecd); 51 E1000_WRITE_FLUSH(hw); 55 e1000_raise_ee_clk(hw, &eecd); 58 eecd = E1000_READ_REG(hw, EECD); 67 e1000_lower_ee_clk(hw, &eecd); 87 struct e1000_hw *hw = e1000_find_card(bus); local 88 if (!hw) { 94 if (hw 116 __maybe_unused struct e1000_hw *hw = e1000_hw_from_spi(spi); local 122 struct e1000_hw *hw = e1000_hw_from_spi(spi); local 134 struct e1000_hw *hw = e1000_hw_from_spi(spi); local 142 struct e1000_hw *hw = e1000_hw_from_spi(spi); local 172 e1000_spi_eeprom_enable_wr(struct e1000_hw *hw, bool intr) argument 183 e1000_spi_eeprom_disable_wr(struct e1000_hw *hw, bool intr) argument 191 e1000_spi_eeprom_write_status(struct e1000_hw *hw, u8 status, bool intr) argument 199 e1000_spi_eeprom_read_status(struct e1000_hw *hw, bool intr) argument 208 e1000_spi_eeprom_write_page(struct e1000_hw *hw, const void *data, u16 off, u16 len, bool intr) argument 226 e1000_spi_eeprom_read_page(struct e1000_hw *hw, void *data, u16 off, u16 len, bool intr) argument 244 e1000_spi_eeprom_poll_ready(struct e1000_hw *hw, bool intr) argument 254 e1000_spi_eeprom_dump(struct e1000_hw *hw, void *data, u16 off, unsigned int len, bool intr) argument 283 e1000_spi_eeprom_program(struct e1000_hw *hw, const void *data, u16 off, u16 len, bool intr) argument 320 do_e1000_spi_show(struct cmd_tbl *cmdtp, struct e1000_hw *hw, int argc, char *const argv[]) argument 389 do_e1000_spi_dump(struct cmd_tbl *cmdtp, struct e1000_hw *hw, int argc, char *const argv[]) argument 434 do_e1000_spi_program(struct cmd_tbl *cmdtp, struct e1000_hw *hw, int argc, char *const argv[]) argument 469 do_e1000_spi_checksum(struct cmd_tbl *cmdtp, struct e1000_hw *hw, int argc, char *const argv[]) argument 545 do_e1000_spi(struct cmd_tbl *cmdtp, struct e1000_hw *hw, int argc, char *const argv[]) argument [all...] |
H A D | e1000.c | 126 static int e1000_setup_link(struct e1000_hw *hw); 127 static int e1000_setup_fiber_link(struct e1000_hw *hw); 128 static int e1000_setup_copper_link(struct e1000_hw *hw); 129 static int e1000_phy_setup_autoneg(struct e1000_hw *hw); 130 static void e1000_config_collision_dist(struct e1000_hw *hw); 131 static int e1000_config_mac_to_phy(struct e1000_hw *hw); 132 static int e1000_config_fc_after_link_up(struct e1000_hw *hw); 133 static int e1000_check_for_link(struct e1000_hw *hw); 134 static int e1000_wait_autoneg(struct e1000_hw *hw); 135 static int e1000_get_speed_and_duplex(struct e1000_hw *hw, uint16_ 162 e1000_raise_ee_clk(struct e1000_hw *hw, uint32_t * eecd) argument 179 e1000_lower_ee_clk(struct e1000_hw *hw, uint32_t * eecd) argument 198 e1000_shift_out_ee_bits(struct e1000_hw *hw, uint16_t data, uint16_t count) argument 244 e1000_shift_in_ee_bits(struct e1000_hw *hw, uint16_t count) argument 283 e1000_standby_eeprom(struct e1000_hw *hw) argument 331 e1000_is_onboard_nvm_eeprom(struct e1000_hw *hw) argument 361 e1000_acquire_eeprom(struct e1000_hw *hw) argument 420 e1000_init_eeprom_params(struct e1000_hw *hw) argument 601 e1000_poll_eerd_eewr_done(struct e1000_hw *hw, int eerd) argument 639 e1000_read_eeprom_eerd(struct e1000_hw *hw, uint16_t offset, uint16_t words, uint16_t *data) argument 674 e1000_release_eeprom(struct e1000_hw *hw) argument 725 e1000_spi_eeprom_ready(struct e1000_hw *hw) argument 770 e1000_read_eeprom(struct e1000_hw *hw, uint16_t offset, uint16_t words, uint16_t *data) argument 876 e1000_write_eeprom_srwr(struct e1000_hw *hw, uint16_t offset, uint16_t words, uint16_t *data) argument 925 e1000_pool_flash_update_done_i210(struct e1000_hw *hw) argument 947 e1000_update_flash_i210(struct e1000_hw *hw) argument 979 e1000_update_eeprom_checksum_i210(struct e1000_hw *hw) argument 1039 e1000_validate_eeprom_checksum(struct e1000_hw *hw) argument 1087 e1000_set_phy_mode(struct e1000_hw *hw) argument 1132 e1000_get_software_semaphore(struct e1000_hw *hw) argument 1170 e1000_put_hw_eeprom_semaphore(struct e1000_hw *hw) argument 1202 e1000_get_hw_eeprom_semaphore(struct e1000_hw *hw) argument 1247 e1000_swfw_sync_acquire(struct e1000_hw *hw, uint16_t mask) argument 1282 e1000_swfw_sync_release(struct e1000_hw *hw, uint16_t mask) argument 1297 e1000_is_second_port(struct e1000_hw *hw) argument 1318 e1000_read_mac_addr_from_eeprom(struct e1000_hw *hw, unsigned char enetaddr[6]) argument 1344 e1000_read_mac_addr_from_regs(struct e1000_hw *hw, unsigned char enetaddr[6]) argument 1379 e1000_read_mac_addr(struct e1000_hw *hw, unsigned char enetaddr[6]) argument 1410 e1000_init_rx_addrs(struct e1000_hw *hw, unsigned char enetaddr[6]) argument 1443 e1000_clear_vfta(struct e1000_hw *hw) argument 1457 e1000_set_mac_type(struct e1000_hw *hw) argument 1597 e1000_reset_hw(struct e1000_hw *hw) argument 1711 e1000_initialize_hardware_bits(struct e1000_hw *hw) argument 1837 e1000_init_hw(struct e1000_hw *hw, unsigned char enetaddr[6]) argument 2036 e1000_setup_link(struct e1000_hw *hw) argument 2182 e1000_setup_fiber_link(struct e1000_hw *hw) argument 2313 e1000_copper_link_preconfig(struct e1000_hw *hw) argument 2384 e1000_set_d3_lplu_state(struct e1000_hw *hw, bool active) argument 2519 e1000_set_d0_lplu_state(struct e1000_hw *hw, bool active) argument 2628 e1000_copper_link_igp_setup(struct e1000_hw *hw) argument 2778 e1000_check_mng_mode(struct e1000_hw *hw) argument 2797 e1000_write_kmrn_reg(struct e1000_hw *hw, uint32_t reg_addr, uint16_t data) argument 2818 e1000_read_kmrn_reg(struct e1000_hw *hw, uint32_t reg_addr, uint16_t *data) argument 2851 e1000_copper_link_ggp_setup(struct e1000_hw *hw) argument 3000 e1000_copper_link_mgp_setup(struct e1000_hw *hw) argument 3103 e1000_copper_link_autoneg(struct e1000_hw *hw) argument 3179 e1000_copper_link_postconfig(struct e1000_hw *hw) argument 3207 e1000_setup_copper_link(struct e1000_hw *hw) argument 3316 e1000_phy_setup_autoneg(struct e1000_hw *hw) argument 3468 e1000_config_collision_dist(struct e1000_hw *hw) argument 3498 e1000_config_mac_to_phy(struct e1000_hw *hw) argument 3551 e1000_force_mac_fc(struct e1000_hw *hw) argument 3618 e1000_config_fc_after_link_up(struct e1000_hw *hw) argument 3832 e1000_check_for_link(struct e1000_hw *hw) argument 4014 e1000_configure_kmrn_for_10_100(struct e1000_hw *hw, uint16_t duplex) argument 4050 e1000_configure_kmrn_for_1000(struct e1000_hw *hw) argument 4089 e1000_get_speed_and_duplex(struct e1000_hw *hw, uint16_t *speed, uint16_t *duplex) argument 4166 e1000_wait_autoneg(struct e1000_hw *hw) argument 4204 e1000_raise_mdi_clk(struct e1000_hw *hw, uint32_t * ctrl) argument 4221 e1000_lower_mdi_clk(struct e1000_hw *hw, uint32_t * ctrl) argument 4241 e1000_shift_out_mdi_bits(struct e1000_hw *hw, uint32_t data, uint16_t count) argument 4289 e1000_shift_in_mdi_bits(struct e1000_hw *hw) argument 4341 e1000_read_phy_reg(struct e1000_hw *hw, uint32_t reg_addr, uint16_t * phy_data) argument 4419 e1000_write_phy_reg(struct e1000_hw *hw, uint32_t reg_addr, uint16_t phy_data) argument 4489 e1000_check_phy_reset_block(struct e1000_hw *hw) argument 4516 e1000_get_phy_cfg_done(struct e1000_hw *hw) argument 4567 e1000_phy_hw_reset(struct e1000_hw *hw) argument 4651 e1000_phy_init_script(struct e1000_hw *hw) argument 4760 e1000_phy_reset(struct e1000_hw *hw) argument 4804 e1000_set_phy_type(struct e1000_hw *hw) argument 4864 e1000_detect_gig_phy(struct e1000_hw *hw) argument 4979 e1000_set_media_type(struct e1000_hw *hw) argument 5038 e1000_sw_init(struct e1000_hw *hw) argument 5104 fill_rx(struct e1000_hw *hw) argument 5138 e1000_configure_tx(struct e1000_hw *hw) argument 5231 e1000_setup_rctl(struct e1000_hw *hw) argument 5261 e1000_configure_rx(struct e1000_hw *hw) argument 5312 _e1000_poll(struct e1000_hw *hw) argument 5337 _e1000_transmit(struct e1000_hw *hw, void *txpacket, int length) argument 5377 _e1000_disable(struct e1000_hw *hw) argument 5396 e1000_reset(struct e1000_hw *hw, unsigned char enetaddr[6]) argument 5406 _e1000_init(struct e1000_hw *hw, unsigned char enetaddr[6]) argument 5431 e1000_get_bus_type(struct e1000_hw *hw) argument 5457 e1000_init_one(struct e1000_hw *hw, int cardnum, struct udevice *devno, unsigned char enetaddr[6]) argument 5545 struct e1000_hw *hw = dev_get_priv(dev); local 5594 struct e1000_hw *hw; local 5650 struct e1000_hw *hw = dev_get_priv(dev); local 5657 struct e1000_hw *hw = dev_get_priv(dev); local 5664 struct e1000_hw *hw = dev_get_priv(dev); local 5674 struct e1000_hw *hw = dev_get_priv(dev); local 5686 struct e1000_hw *hw = dev_get_priv(dev); local 5696 struct e1000_hw *hw = dev_get_priv(dev); local [all...] |
/u-boot/board/opalkelly/zynq/ |
H A D | Makefile | 5 hw-platform-y :=$(shell echo $(CONFIG_DEFAULT_DEVICE_TREE)) 7 obj-$(CONFIG_SPL_BUILD) += $(hw-platform-y)/ps7_init_gpl.o
|
/u-boot/board/topic/zynq/ |
H A D | Makefile | 7 hw-platform-y :=$(shell echo $(CONFIG_DEFAULT_DEVICE_TREE)) 9 obj-$(CONFIG_SPL_BUILD) += $(hw-platform-y)/ps7_init_gpl.o
|
/u-boot/board/bitmain/antminer_s9/ |
H A D | Makefile | 7 hw-platform-y :=$(shell echo $(CONFIG_DEFAULT_DEVICE_TREE)) 9 obj-$(CONFIG_SPL_BUILD) += $(hw-platform-y)/ps7_init_gpl.o
|
/u-boot/drivers/power/ |
H A D | power_fsl.c | 42 p->hw.spi.cs = CFG_FSL_PMIC_CS; 43 p->hw.spi.clk = CFG_FSL_PMIC_CLK; 44 p->hw.spi.mode = CFG_FSL_PMIC_MODE; 45 p->hw.spi.bitlen = CFG_FSL_PMIC_BITLEN; 46 p->hw.spi.flags = SPI_XFER_BEGIN | SPI_XFER_END; 47 p->hw.spi.prepare_tx = pmic_spi_prepare_tx; 50 p->hw.i2c.addr = CFG_SYS_FSL_PMIC_I2C_ADDR; 51 p->hw.i2c.tx_num = FSL_PMIC_I2C_LENGTH;
|
H A D | power_spi.c | 25 slave = spi_setup_slave(p->bus, p->hw.spi.cs, p->hw.spi.clk, 26 p->hw.spi.mode); 38 pmic_tx = p->hw.spi.prepare_tx(reg, val, write); 47 pmic_tx = p->hw.spi.prepare_tx(reg, val, 0);
|
H A D | power_dialog.c | 27 p->hw.i2c.addr = CFG_SYS_DIALOG_PMIC_I2C_ADDR; 28 p->hw.i2c.tx_num = 1;
|
/u-boot/board/BuR/brppt2/ |
H A D | config.mk | 7 hw-platform-y :=$(shell echo $(CONFIG_DEFAULT_DEVICE_TREE) | sed -e 's/imx6dl-//') 25 ifeq ($(hw-platform-y),brppt2) 27 INPUTS-y += $(hw-platform-y)_prog.bin 28 INPUTS-y += $(hw-platform-y)_prod.zip 32 $(hw-platform-y)_prog.bin: u-boot-dtb.img spl SPL 35 $(hw-platform-y)_prod.zip: $(hw-platform-y)_prog.bin
|
/u-boot/board/BuR/brppt1/ |
H A D | config.mk | 8 hw-platform-y :=$(shell echo $(CONFIG_DEFAULT_DEVICE_TREE) | sed -e 's/am335x-//') 27 ifeq ($(hw-platform-y),brppt1-spi) 28 INPUTS-y += $(hw-platform-y)_prog.bin 29 INPUTS-y += $(hw-platform-y)_prod.zip 32 $(hw-platform-y)_prog.bin: u-boot-dtb.img spl/u-boot-spl.bin 35 $(hw-platform-y)_prod.zip: $(hw-platform-y)_prog.bin
|
/u-boot/drivers/clk/microchip/ |
H A D | mpfs_clk_cfg.c | 57 * @hw: clock instance 63 struct clk hw; member in struct:mpfs_cfg_hw_clock 66 #define to_mpfs_cfg_clk(_hw) container_of(_hw, struct mpfs_cfg_hw_clock, hw) 68 static ulong mpfs_cfg_clk_recalc_rate(struct clk *hw) argument 70 struct mpfs_cfg_hw_clock *cfg_hw = to_mpfs_cfg_clk(hw); 79 hw->rate = rate; 84 static ulong mpfs_cfg_clk_set_rate(struct clk *hw, ulong rate) argument 86 struct mpfs_cfg_hw_clock *cfg_hw = to_mpfs_cfg_clk(hw); 102 return clk_get_rate(hw); 125 struct clk *hw; local [all...] |
H A D | mpfs_clk_msspll.c | 41 * @hw: clock instance 52 struct clk hw; member in struct:mpfs_msspll_hw_clock 55 #define to_mpfs_msspll_clk(_hw) container_of(_hw, struct mpfs_msspll_hw_clock, hw) 57 static unsigned long mpfs_clk_msspll_recalc_rate(struct clk *hw) argument 59 struct mpfs_msspll_hw_clock *msspll_hw = to_mpfs_msspll_clk(hw); 95 struct clk *hw; local 97 hw = &mpfs_msspll_clks[0].hw; 101 ret = clk_register(hw, MPFS_MSSPLL_CLOCK, name, parent->dev->name); 105 clk_dm(id, hw); [all...] |
H A D | mpfs_clk_periph.c | 50 * @hw: clock instance 56 struct clk hw; member in struct:mpfs_periph_hw_clock 59 #define to_mpfs_periph_clk(_hw) container_of(_hw, struct mpfs_periph_hw_clock, hw) 61 static int mpfs_periph_clk_enable(struct clk *hw) argument 63 struct mpfs_periph_hw_clock *periph_hw = to_mpfs_periph_clk(hw); 81 static int mpfs_periph_clk_disable(struct clk *hw) argument 83 struct mpfs_periph_hw_clock *periph_hw = to_mpfs_periph_clk(hw); 101 static ulong mpfs_periph_clk_recalc_rate(struct clk *hw) argument 103 struct mpfs_periph_hw_clock *periph_hw = to_mpfs_periph_clk(hw); 168 struct clk *hw; local [all...] |
/u-boot/board/BuR/brsmarc1/ |
H A D | config.mk | 7 hw-platform-y :=$(shell echo $(CONFIG_DEFAULT_DEVICE_TREE) | sed -e 's/am335x-//') 26 INPUTS-y += $(hw-platform-y)_prog.bin 27 INPUTS-y += $(hw-platform-y)_prod.zip 29 $(hw-platform-y)_prog.bin: u-boot-dtb.img spl/u-boot-spl.bin 32 $(hw-platform-y)_prod.zip: $(hw-platform-y)_prog.bin
|
/u-boot/drivers/power/pmic/ |
H A D | pmic_pfuze3000.c | 26 p->hw.i2c.addr = CFG_POWER_PFUZE3000_I2C_ADDR; 27 p->hw.i2c.tx_num = 1;
|
H A D | pmic_ltc3676.c | 26 p->hw.i2c.addr = CFG_POWER_LTC3676_I2C_ADDR; 27 p->hw.i2c.tx_num = 1;
|
H A D | pmic_pfuze100.c | 26 p->hw.i2c.addr = CFG_POWER_PFUZE100_I2C_ADDR; 27 p->hw.i2c.tx_num = 1;
|
H A D | pmic_mc34vr500.c | 26 p->hw.i2c.addr = MC34VR500_I2C_ADDR; 27 p->hw.i2c.tx_num = 1;
|
H A D | pmic_pca9450.c | 26 p->hw.i2c.addr = addr; 27 p->hw.i2c.tx_num = 1;
|
/u-boot/drivers/net/octeontx/ |
H A D | nic_main.c | 65 if (pass1_silicon(nic->rev_id, nic->hw->model_id)) { 212 if (pass2_silicon(nic->rev_id, nic->hw->model_id)) 365 struct hw_info *hw = nic->hw; local 366 int max_lmac = nic->hw->bgx_cnt * MAX_LMAC_PER_BGX; 373 if (hw->chans_per_rgx) 374 max_lmac = ((nic->hw->bgx_cnt - 1) * MAX_LMAC_PER_BGX) + 1; 402 for (bgx = 0; bgx < nic->hw->bgx_cnt; bgx++) { 428 struct hw_info *hw = nic->hw; local 537 struct hw_info *hw = nic->hw; local 625 struct hw_info *hw = nic->hw; local [all...] |
/u-boot/drivers/phy/ |
H A D | bcm6368-usbh-phy.c | 46 const struct bcm6368_usbh_hw *hw; member in struct:bcm6368_usbh_priv 53 const struct bcm6368_usbh_hw *hw = priv->hw; local 61 if (hw->setup_clr) 62 clrbits_be32(priv->regs + USBH_SETUP_REG, hw->setup_clr); 67 if (hw->pll_clr) 68 clrbits_be32(priv->regs + USBH_PLL_REG, hw->pll_clr); 116 const struct bcm6368_usbh_hw *hw = local 129 priv->hw = hw; [all...] |
/u-boot/drivers/pinctrl/broadcom/ |
H A D | pinctrl-bcm6838.c | 36 const struct bcm6838_test_port_hw *hw; member in struct:bcm6838_pinctrl_priv 75 const struct bcm6838_test_port_hw *hw = priv->hw; local 78 regmap_write(priv->regmap, hw->port_blk_data1, 0); 81 regmap_write(priv->regmap, hw->port_blk_data2, data); 82 regmap_write(priv->regmap, hw->port_command, BCM6838_CMD_LOAD_MUX); 90 const struct bcm6838_test_port_hw *hw = local 132 priv->hw = hw;
|
/u-boot/drivers/clk/ |
H A D | clk_versaclock.c | 158 struct clk hw; member in struct:vc5_hw_data 166 struct clk hw; member in struct:vc5_out_data 247 static unsigned long vc5_mux_get_rate(struct clk *hw) argument 249 return clk_get_rate(clk_get_parent(hw)); 252 static int vc5_mux_set_parent(struct clk *hw, unsigned char index) argument 254 struct vc5_driver_data *vc5 = container_of(hw, struct vc5_driver_data, clk_mux); 285 static unsigned long vc5_pfd_round_rate(struct clk *hw, unsigned long rate) argument 287 struct clk *clk_parent = clk_get_parent(hw); 306 static unsigned long vc5_pfd_recalc_rate(struct clk *hw) argument 309 container_of(hw, struc 329 vc5_pfd_set_rate(struct clk *hw, unsigned long rate) argument 371 vc5_pll_recalc_rate(struct clk *hw) argument 389 vc5_pll_round_rate(struct clk *hw, unsigned long rate) argument 418 vc5_pll_set_rate(struct clk *hw, unsigned long rate) argument 439 vc5_fod_recalc_rate(struct clk *hw) argument 467 vc5_fod_round_rate(struct clk *hw, unsigned long rate) argument 503 vc5_fod_set_rate(struct clk *hw, unsigned long rate) argument 540 vc5_clk_out_prepare(struct clk *hw) argument 585 vc5_clk_out_unprepare(struct clk *hw) argument 621 vc5_clk_out_set_rate(struct clk *hw, unsigned long rate) argument 635 vc5_clk_out_get_rate(struct clk *hw) argument [all...] |
/u-boot/board/xilinx/zynq/ |
H A D | Makefile | 21 hw-platform-y :=$(shell echo $(DEVICE_TREE)) 22 init-objs := $(if $(wildcard $(srctree)/$(src)/$(hw-platform-y)/ps7_init_gpl.c),\ 23 $(hw-platform-y)/ps7_init_gpl.o)
|
/u-boot/board/phytec/phycore_rk3288/ |
H A D | phycore-rk3288.c | 27 int hw = 0; local 30 hw += hweight8(*p); 34 return hw == som->bs;
|