Home
last modified time | relevance | path

Searched refs:speed (Results 1 – 25 of 598) sorted by relevance

12345678910>>...24

/u-boot/drivers/clk/
A Dmpc83xx_clk.c31 u32 speed[MPC83XX_CLK_COUNT]; member
132 priv->speed[clk] = 0; in init_single_clk()
135 priv->speed[clk] = csb_clk; in init_single_clk()
144 priv->speed[clk] = 0; in init_single_clk()
169 priv->speed[clk] = qe_clk; in init_single_clk()
171 priv->speed[clk] = qe_clk / 2; in init_single_clk()
182 priv->speed[clk] = lbiu_clk; in init_single_clk()
192 priv->speed[clk] = 0; in init_single_clk()
212 priv->speed[clk] = csb_clk; in init_single_clk()
228 priv->speed[clk] = 0; in init_single_clk()
[all …]
/u-boot/drivers/net/phy/
A Dlxt.c24 int speed; in lxt971_parse_status() local
27 speed = mii_reg & MIIM_LXT971_SR2_SPEED_MASK; in lxt971_parse_status()
29 switch (speed) { in lxt971_parse_status()
31 phydev->speed = SPEED_10; in lxt971_parse_status()
35 phydev->speed = SPEED_10; in lxt971_parse_status()
39 phydev->speed = SPEED_100; in lxt971_parse_status()
43 phydev->speed = SPEED_100; in lxt971_parse_status()
A Det1011c.c44 int speed; in et1011c_parse_status() local
53 speed = mii_reg & ET1011C_SPEED_MASK; in et1011c_parse_status()
54 switch (speed) { in et1011c_parse_status()
56 phydev->speed = SPEED_1000; in et1011c_parse_status()
69 phydev->speed = SPEED_100; in et1011c_parse_status()
72 phydev->speed = SPEED_10; in et1011c_parse_status()
A Dxilinx_phy.c58 phydev->speed = SPEED_1000; in xilinxphy_startup()
62 phydev->speed = SPEED_100; in xilinxphy_startup()
66 phydev->speed = SPEED_10; in xilinxphy_startup()
81 phydev->speed = SPEED_1000; in xilinxphy_startup()
83 phydev->speed = SPEED_100; in xilinxphy_startup()
85 phydev->speed = SPEED_10; in xilinxphy_startup()
94 phydev->speed = SPEED_1000; in xilinxphy_startup()
A Dbroadcom.c75 phydev->speed = SPEED_10; in bcm54xx_parse_status()
79 phydev->speed = SPEED_10; in bcm54xx_parse_status()
83 phydev->speed = SPEED_100; in bcm54xx_parse_status()
87 phydev->speed = SPEED_100; in bcm54xx_parse_status()
91 phydev->speed = SPEED_1000; in bcm54xx_parse_status()
95 phydev->speed = SPEED_1000; in bcm54xx_parse_status()
100 phydev->speed = SPEED_10; in bcm54xx_parse_status()
288 phydev->speed = 10; in bcm5482_parse_serdes_sr()
291 phydev->speed = 100; in bcm5482_parse_serdes_sr()
294 phydev->speed = 1000; in bcm5482_parse_serdes_sr()
A Drealtek.c258 unsigned int speed; in rtl8211x_parse_status() local
297 speed = (mii_reg & MIIM_RTL8211x_PHYSTAT_SPEED); in rtl8211x_parse_status()
299 switch (speed) { in rtl8211x_parse_status()
301 phydev->speed = SPEED_1000; in rtl8211x_parse_status()
304 phydev->speed = SPEED_100; in rtl8211x_parse_status()
307 phydev->speed = SPEED_10; in rtl8211x_parse_status()
315 unsigned int speed; in rtl8211f_parse_status() local
344 switch (speed) { in rtl8211f_parse_status()
346 phydev->speed = SPEED_1000; in rtl8211f_parse_status()
349 phydev->speed = SPEED_100; in rtl8211f_parse_status()
[all …]
A Dnatsemi.c73 phydev->speed = SPEED_1000; in dp83865_parse_status()
77 phydev->speed = SPEED_100; in dp83865_parse_status()
81 phydev->speed = SPEED_10; in dp83865_parse_status()
124 phydev->speed = SPEED_100; in dp83848_parse_status()
126 phydev->speed = SPEED_10; in dp83848_parse_status()
/u-boot/doc/device-tree-bindings/usb/
A Dgeneric.txt4 - maximum-speed: tells USB controllers we want to work up to a certain
5 speed. Valid arguments are "super-speed-plus",
6 "super-speed", "high-speed", "full-speed" and
7 "low-speed". In case this isn't passed via DT, USB
28 maximum-speed = "super-speed";
/u-boot/board/ti/ks2_evm/
A Dboard_k2l.c67 int speed; in get_pll_init_data() local
72 speed = get_max_dev_speed(speeds); in get_pll_init_data()
73 data = &core_pll_config[speed]; in get_pll_init_data()
76 speed = get_max_arm_speed(speeds); in get_pll_init_data()
77 data = &tetris_pll_config[speed]; in get_pll_init_data()
A Dboard_k2hk.c79 int speed; in get_pll_init_data() local
84 speed = get_max_dev_speed(speeds); in get_pll_init_data()
85 data = &core_pll_config[speed]; in get_pll_init_data()
88 speed = get_max_arm_speed(speeds); in get_pll_init_data()
89 data = &tetris_pll_config[speed]; in get_pll_init_data()
/u-boot/drivers/net/
A Dgmac_rockchip.c85 int speed, ret; in px30_gmac_fix_mac_speed() local
98 switch (priv->phydev->speed) { in px30_gmac_fix_mac_speed()
100 speed = PX30_GMAC_SPEED_10M; in px30_gmac_fix_mac_speed()
106 speed = PX30_GMAC_SPEED_100M; in px30_gmac_fix_mac_speed()
134 switch (priv->phydev->speed) { in rk3228_gmac_fix_mac_speed()
160 switch (priv->phydev->speed) { in rk3288_gmac_fix_mac_speed()
185 int speed, ret; in rk3308_gmac_fix_mac_speed() local
198 switch (priv->phydev->speed) { in rk3308_gmac_fix_mac_speed()
234 switch (priv->phydev->speed) { in rk3328_gmac_fix_mac_speed()
316 int clk, speed; in rv1108_set_rmii_speed() local
[all …]
/u-boot/drivers/qe/
A Duec_phy.c275 switch (mii_info->speed) { in genmii_setup_forced()
282 mii_info->speed = SPEED_100; in genmii_setup_forced()
289 mii_info->speed = SPEED_10; in genmii_setup_forced()
501 int speed = uec->uec_info->speed; in uec_marvell_init() local
503 if (speed == SPEED_1000 && in uec_marvell_init()
548 int speed; in marvell_read_status() local
560 switch (speed) { in marvell_read_status()
568 mii_info->speed = SPEED_10; in marvell_read_status()
683 mii_info->speed = fixed_phy_port[i].speed; in fixed_phy_read_status()
872 int speed) in marvell_phy_interface_mode() argument
[all …]
/u-boot/drivers/i2c/
A Di2c_core.c174 static void i2c_init_bus(unsigned int bus_no, int speed, int slaveaddr) in i2c_init_bus() argument
179 I2C_ADAP->init(I2C_ADAP, speed, slaveaddr); in i2c_init_bus()
183 I2C_ADAP->speed = speed; in i2c_init_bus()
263 i2c_init_bus(bus, I2C_ADAP->speed, I2C_ADAP->slaveaddr); in i2c_set_bus_num()
304 unsigned int i2c_set_bus_speed(unsigned int speed) in i2c_set_bus_speed() argument
310 ret = I2C_ADAP->set_bus_speed(I2C_ADAP, speed); in i2c_set_bus_speed()
312 I2C_ADAP->speed = (ret == 0) ? speed : 0; in i2c_set_bus_speed()
320 return cur->speed; in i2c_get_bus_speed()
347 __weak void i2c_init(int speed, int slaveaddr) in i2c_init() argument
349 i2c_init_bus(i2c_get_bus_num(), speed, slaveaddr); in i2c_init()
A Ddavinci_i2c.c28 uint speed; member
90 uint speed) in _davinci_i2c_setspeed() argument
105 uint speed, int slaveadd) in _davinci_i2c_init() argument
112 _davinci_i2c_setspeed(i2c_base, speed); in _davinci_i2c_init()
370 adap->speed = speed; in davinci_i2c_setspeed()
371 ret = _davinci_i2c_setspeed(i2c_base, speed); in davinci_i2c_setspeed()
381 adap->speed = speed; in davinci_i2c_init()
382 _davinci_i2c_init(i2c_base, speed, slaveadd); in davinci_i2c_init()
465 i2c_bus->speed = speed;
466 return _davinci_i2c_setspeed(i2c_bus->regs, speed);
[all …]
A Domap24xx_i2c.c140 unsigned int speed; member
185 speed /= 1000; /* convert speed to kHz */ in omap24_i2c_findpsc()
187 if (speed > 100) in omap24_i2c_findpsc()
196 if (speed > 100) { in omap24_i2c_findpsc()
200 scl = internal_clk / speed; in omap24_i2c_findpsc()
311 if (speed >= I2C_SPEED_HIGH_RATE) { in __omap24_i2c_setspeed()
349 psc = omap24_i2c_findpsc(&scll, &sclh, speed); in __omap24_i2c_setspeed()
357 *waitdelay = (10000000 / speed) * 2; in __omap24_i2c_setspeed()
917 adap->speed = speed; in omap24_i2c_setspeed()
1034 priv->speed = speed;
[all …]
A Dfsl_i2c.c124 uint i2c_clk, uint speed) in set_i2c_bus_speed() argument
126 ushort divider = min(i2c_clk / speed, (uint)USHRT_MAX); in set_i2c_bus_speed()
148 speed = i2c_clk / divider; /* Fake something */ in set_i2c_bus_speed()
166 speed = i2c_clk / est_div; in set_i2c_bus_speed()
171 debug("a: %d, b: %d, speed: %d\n", a, b, speed); in set_i2c_bus_speed()
185 debug("FDR: 0x%.2x, speed: %d\n", fdr, speed); in set_i2c_bus_speed()
197 speed = i2c_clk / fsl_i2c_speed_map[i].divider; in set_i2c_bus_speed()
203 return speed; in set_i2c_bus_speed()
279 set_i2c_bus_speed(base, i2c_clk, speed); in __i2c_init()
491 uint speed, int i2c_clk) in __i2c_set_bus_speed() argument
[all …]
A Dlpc32xx_i2c.c55 unsigned int speed, unsigned int chip) in __i2c_set_bus_speed() argument
59 if (speed == 0) in __i2c_set_bus_speed()
64 half_period = (get_periph_clk_rate() / speed) / 2; in __i2c_set_bus_speed()
68 half_period = (get_hclk_clk_rate() / speed) / 2; in __i2c_set_bus_speed()
255 unsigned int speed) in lpc32xx_i2c_set_bus_speed() argument
257 return __i2c_set_bus_speed(lpc32xx_i2c[adap->hwadapnr], speed, in lpc32xx_i2c_set_bus_speed()
291 __i2c_init(dev->base, dev->speed, 0, dev->index);
335 static int lpc32xx_i2c_set_bus_speed(struct udevice *bus, unsigned int speed)
338 return __i2c_set_bus_speed(dev->base, speed, dev->index);
345 __i2c_init(dev->base, dev->speed, 0, dev->index);
A Ddesignware_i2c.c91 int speed; member
153 period_cnt = ic_clk / info->speed; in dw_i2c_calc_timing()
229 if (speed >= I2C_SPEED_HIGH_RATE) in calc_bus_speed()
231 else if (speed >= I2C_SPEED_FAST_PLUS_RATE) in calc_bus_speed()
233 else if (speed >= I2C_SPEED_FAST_RATE) in calc_bus_speed()
288 unsigned int speed, unsigned int bus_clk) in _dw_i2c_set_bus_speed() argument
602 _dw_i2c_set_bus_speed(NULL, i2c_base, speed, IC_CLK); in __dw_i2c_init()
644 unsigned int speed) in dw_i2c_set_bus_speed() argument
646 adap->speed = speed; in dw_i2c_set_bus_speed()
652 __dw_i2c_init(i2c_get_base(adap), speed, slaveaddr); in dw_i2c_init()
[all …]
/u-boot/drivers/usb/common/
A Dcommon.c53 const char *usb_speed_string(enum usb_device_speed speed) in usb_speed_string() argument
55 if (speed < 0 || speed >= ARRAY_SIZE(speed_names)) in usb_speed_string()
56 speed = USB_SPEED_UNKNOWN; in usb_speed_string()
57 return speed_names[speed]; in usb_speed_string()
/u-boot/drivers/spi/
A Dspi-uclass.c58 uint speed, mode; in dm_spi_claim_bus() local
60 speed = slave->max_hz; in dm_spi_claim_bus()
64 if (speed) in dm_spi_claim_bus()
65 speed = min(speed, spi->max_hz); in dm_spi_claim_bus()
67 speed = spi->max_hz; in dm_spi_claim_bus()
69 if (!speed) in dm_spi_claim_bus()
72 if (speed != spi->speed || mode != spi->mode) { in dm_spi_claim_bus()
78 spi->speed = speed; in dm_spi_claim_bus()
370 if (speed) { in spi_get_bus_and_cs()
371 plat->max_hz = speed; in spi_get_bus_and_cs()
[all …]
/u-boot/drivers/phy/marvell/
A Dcomphy_core.c24 static const char *get_speed_string(u32 speed) in get_speed_string() argument
32 if (speed < 0 || speed > PHY_SPEED_MAX) in get_speed_string()
35 return speed_strings[speed]; in get_speed_string()
62 if (comphy_map_data->speed == PHY_SPEED_INVALID) { in comphy_print()
68 get_speed_string(comphy_map_data->speed)); in comphy_print()
138 comphy_map_data[lane].speed = fdtdec_get_int( in comphy_probe()
/u-boot/board/theadorable/
A Dtheadorable.c340 static int pcie_get_link_speed_width(pci_dev_t bdf, int *speed, int *width) in pcie_get_link_speed_width() argument
365 *speed = lnksta & PCI_EXP_LNKSTA_CLS; in pcie_get_link_speed_width()
391 int speed; in do_pcie_test() local
405 ret = pcie_get_link_speed_width(bdf, &speed, &width); in do_pcie_test()
413 printf("Established speed=%d width=%d\n", speed, width); in do_pcie_test()
414 if ((speed != 1 || width != 1)) { in do_pcie_test()
421 ret = pcie_get_link_speed_width(bdf, &speed, &width); in do_pcie_test()
429 printf("Established speed=%d width=%d\n", speed, width); in do_pcie_test()
430 if ((speed != 2 || width != 4)) { in do_pcie_test()
/u-boot/tools/gdb/
A Dgdbcont.c16 speed_t speed = B230400; variable
33 if ((speed = cvtspeed(optarg)) == B0) in main()
56 if ((sfd = serialopen(serialdev, speed)) < 0) in main()
/u-boot/test/dm/
A Dspi.c26 const int busnum = 0, cs = 0, mode = 0, speed = 1000000, cs_b = 2; in dm_test_spi_find() local
49 ut_asserteq(-ENODEV, spi_get_bus_and_cs(busnum, cs, speed, mode, in dm_test_spi_find()
59 ut_asserteq(-ENOENT, spi_get_bus_and_cs(busnum, cs, speed, mode, in dm_test_spi_find()
70 ut_assertok(spi_get_bus_and_cs(busnum, cs, speed, mode, in dm_test_spi_find()
79 ut_asserteq(-EINVAL, spi_get_bus_and_cs(busnum, cs_b, speed, mode, in dm_test_spi_find()
120 ut_asserteq(slave_a->max_hz, bus_data->speed); in dm_test_spi_switch_slaves()
126 ut_asserteq(slave_b->max_hz, bus_data->speed); in dm_test_spi_switch_slaves()
132 ut_asserteq(slave_a->max_hz, bus_data->speed); in dm_test_spi_switch_slaves()
/u-boot/drivers/net/octeontx/
A Dxcv.c82 int speed = 2; in xcv_setup_link() local
86 speed = 1; in xcv_setup_link()
88 speed = 0; in xcv_setup_link()
93 xcv_ctl.s.speed = speed; in xcv_setup_link()

Completed in 46 milliseconds

12345678910>>...24