/openbmc/u-boot/drivers/net/ldpaa_eth/ |
H A D | ldpaa_wriop.c | 25 int phy_num; in wriop_init_dpmac() local 37 for (phy_num = 0; phy_num < WRIOP_MAX_PHY_NUM; phy_num++) { in wriop_init_dpmac() 45 int phy_num; in wriop_init_dpmac_enet_if() local 50 for (phy_num = 0; phy_num < WRIOP_MAX_PHY_NUM; phy_num++) { in wriop_init_dpmac_enet_if() 135 if (phy_num < 0 || phy_num >= WRIOP_MAX_PHY_NUM) in wriop_set_phy_address() 149 if (phy_num < 0 || phy_num >= WRIOP_MAX_PHY_NUM) in wriop_get_phy_address() 152 return dpmac_info[i].phy_addr[phy_num]; in wriop_get_phy_address() 161 if (phy_num < 0 || phy_num >= WRIOP_MAX_PHY_NUM) in wriop_set_phy_dev() 164 dpmac_info[i].phydev[phy_num] = phydev; in wriop_set_phy_dev() 175 if (phy_num < 0 || phy_num >= WRIOP_MAX_PHY_NUM) in wriop_get_phy_dev() [all …]
|
H A D | ldpaa_eth.c | 26 int phy_addr, phy_num; in init_phy() local 33 for (phy_num = 0; phy_num < WRIOP_MAX_PHY_NUM; phy_num++) { in init_phy() 34 phy_addr = wriop_get_phy_address(priv->dpmac_id, phy_num); in init_phy() 45 wriop_set_phy_dev(priv->dpmac_id, phy_num, phydev); in init_phy() 52 for (phy_num = 0; phy_num < WRIOP_MAX_PHY_NUM; phy_num++) { in init_phy() 53 phydev = wriop_get_phy_dev(priv->dpmac_id, phy_num); in init_phy() 58 wriop_set_phy_dev(priv->dpmac_id, phy_num, NULL); in init_phy() 409 int err, phy_num; in ldpaa_get_dpmac_state() local 429 for (phy_num = 0; phy_num < WRIOP_MAX_PHY_NUM; phy_num++) { in ldpaa_get_dpmac_state() 597 int phy_num; in ldpaa_eth_stop() local [all …]
|
/openbmc/linux/drivers/usb/gadget/udc/bdc/ |
H A D | bdc_core.c | 449 int phy_num; in bdc_phy_init() local 452 for (phy_num = 0; phy_num < bdc->num_phys; phy_num++) { in bdc_phy_init() 458 phy_exit(bdc->phys[phy_num]); in bdc_phy_init() 466 while (--phy_num >= 0) { in bdc_phy_init() 468 phy_exit(bdc->phys[phy_num]); in bdc_phy_init() 476 int phy_num; in bdc_phy_exit() local 478 for (phy_num = 0; phy_num < bdc->num_phys; phy_num++) { in bdc_phy_exit() 480 phy_exit(bdc->phys[phy_num]); in bdc_phy_exit() 491 int phy_num; in bdc_probe() local 524 for (phy_num = 0; phy_num < bdc->num_phys; phy_num++) { in bdc_probe() [all …]
|
/openbmc/u-boot/include/fsl-mc/ |
H A D | ldpaa_wriop.h | 62 int wriop_set_phy_address(int dpmac_id, int phy_num, int address); 63 int wriop_get_phy_address(int dpmac_id, int phy_num); 64 int wriop_set_phy_dev(int dpmac_id, int phy_num, struct phy_device *phydev); 65 struct phy_device *wriop_get_phy_dev(int dpmac_id, int phy_num);
|
/openbmc/u-boot/board/freescale/lx2160a/ |
H A D | eth_lx2160aqds.c | 354 int i, phy_num, phy_address; in do_phy_config() local 360 for (phy_num = 0; in do_phy_config() 362 phy_num++) { in do_phy_config() 363 phy_address = phy_config[i].phy_address[phy_num]; in do_phy_config() 367 phy_num, phy_address); in do_phy_config() 388 int phy_num; in do_dpmac_config() local 392 for (phy_num = 0; phy_num < WRIOP_MAX_PHY_NUM; phy_num++) { in do_dpmac_config() 393 sprintf(phystr, "phy%d", phy_num + 1); in do_dpmac_config() 397 if (!phy_num) in do_dpmac_config() 407 env_dpmac, phy_num + 1, arg_dpmacid); in do_dpmac_config() [all …]
|
/openbmc/linux/drivers/phy/rockchip/ |
H A D | phy-rockchip-pcie.c | 355 u32 phy_num; in rockchip_pcie_phy_probe() local 391 if (of_property_read_u32(dev->of_node, "#phy-cells", &phy_num)) in rockchip_pcie_phy_probe() 394 phy_num = (phy_num == 0) ? 1 : PHY_MAX_LANE_NUM; in rockchip_pcie_phy_probe() 395 dev_dbg(dev, "phy number is %d\n", phy_num); in rockchip_pcie_phy_probe() 397 for (i = 0; i < phy_num; i++) { in rockchip_pcie_phy_probe()
|
/openbmc/linux/drivers/usb/serial/ |
H A D | f81534.c | 169 u8 phy_num; member 474 int phy_num = port_priv->phy_num; in f81534_prepare_write_buffer() local 494 &buf[phy_num * F81534_RECEIVE_BLOCK_SIZE + 4], in f81534_prepare_write_buffer() 497 buf[phy_num * F81534_RECEIVE_BLOCK_SIZE + 2] = tx_len; in f81534_prepare_write_buffer() 1036 __func__, port_priv->phy_num, old_msr, msr); in f81534_msr_changed() 1147 int phy_num = data[0]; in f81534_process_per_serial_block() local 1185 __func__, phy_num, read_size, in f81534_process_per_serial_block() 1339 pins = &f81534_port_out_pins[port_priv->phy_num]; in f81534_set_port_output_pin() 1380 port_priv->phy_num = ret; in f81534_port_probe() 1384 port->port_number, port_priv->phy_num); in f81534_port_probe() [all …]
|
H A D | mos7840.c | 1571 u8 phy_num = mos7840_port->port_num; in mos7840_port_probe() local 1575 phy_num = 3; in mos7840_port_probe() 1577 mos7840_port->SpRegOffset = 0x8 + 2 * (phy_num - 2); in mos7840_port_probe() 1578 mos7840_port->ControlRegOffset = 0x9 + 2 * (phy_num - 2); in mos7840_port_probe() 1579 mos7840_port->DcrRegOffset = 0x16 + 3 * (phy_num - 2); in mos7840_port_probe()
|
/openbmc/linux/drivers/net/ethernet/dec/tulip/ |
H A D | media.c | 246 int phy_num = p[0]; in tulip_select_media() local 271 (tulip_mdio_read (dev, phy_num, MII_BMCR) & BMCR_RESET)) in tulip_select_media() 298 (tulip_mdio_read (dev, phy_num, MII_BMCR) & BMCR_RESET)) in tulip_select_media() 309 tp->advertising[phy_num] = tmp_info | 1; in tulip_select_media() 312 tp->mii_advertise = tp->advertising[phy_num]; in tulip_select_media() 316 tp->phys[phy_num]); in tulip_select_media() 317 tulip_mdio_write(dev, tp->phys[phy_num], 4, tp->mii_advertise); in tulip_select_media()
|
/openbmc/linux/drivers/net/ethernet/ti/ |
H A D | tlan.c | 2213 if (priv->phy_num == 0 || in tlan_reset_adapter() 2249 if (priv->phy_num == 0) in tlan_finish_reset() 2298 if (priv->phy_num == 0) { in tlan_finish_reset() 2460 priv->phy_num = 0xffff; in tlan_phy_detect() 2489 priv->phy_num = 1; in tlan_phy_detect() 2491 priv->phy_num = 0; in tlan_phy_detect() 2635 priv->phy_num = 0; in tlan_phy_start_link() 2704 (priv->phy_num != 0)) { in tlan_phy_finish_auto_neg() 2705 priv->phy_num = 0; in tlan_phy_finish_auto_neg() 2710 if (priv->phy_num == 0) { in tlan_phy_finish_auto_neg() [all …]
|
H A D | tlan.h | 205 u32 phy_num; member
|
/openbmc/qemu/hw/net/ |
H A D | imx_fec.c | 289 if (phy != s->phy_num) { in imx_phy_read() 290 if (s->phy_consumer && phy == s->phy_consumer->phy_num) { in imx_phy_read() 293 trace_imx_phy_read_num(phy, s->phy_num); in imx_phy_read() 358 if (phy != s->phy_num) { in imx_phy_write() 359 if (s->phy_consumer && phy == s->phy_consumer->phy_num) { in imx_phy_write() 362 trace_imx_phy_write_num(phy, s->phy_num); in imx_phy_write() 1345 DEFINE_PROP_UINT32("phy-num", IMXFECState, phy_num, 0),
|
/openbmc/qemu/include/hw/arm/ |
H A D | fsl-imx25.h | 68 uint32_t phy_num; member
|
H A D | fsl-imx7.h | 95 uint32_t phy_num[FSL_IMX7_NUM_ETHS]; member
|
H A D | fsl-imx6ul.h | 92 uint32_t phy_num[FSL_IMX6UL_NUM_ETHS]; member
|
H A D | fsl-imx6.h | 80 uint32_t phy_num; member
|
/openbmc/qemu/hw/arm/ |
H A D | fsl-imx25.c | 172 object_property_set_uint(OBJECT(&s->fec), "phy-num", s->phy_num, in fsl_imx25_realize() 313 DEFINE_PROP_UINT32("fec-phy-num", FslIMX25State, phy_num, 0),
|
H A D | fsl-imx6ul.c | 473 s->phy_num[i], &error_abort); in fsl_imx6ul_realize() 722 DEFINE_PROP_UINT32("fec1-phy-num", FslIMX6ULState, phy_num[0], 0), 723 DEFINE_PROP_UINT32("fec2-phy-num", FslIMX6ULState, phy_num[1], 1),
|
H A D | fsl-imx7.c | 447 s->phy_num[i], &error_abort); in fsl_imx7_realize() 740 DEFINE_PROP_UINT32("fec1-phy-num", FslIMX7State, phy_num[0], 0), 741 DEFINE_PROP_UINT32("fec2-phy-num", FslIMX7State, phy_num[1], 1),
|
H A D | fsl-imx6.c | 389 object_property_set_uint(OBJECT(&s->eth), "phy-num", s->phy_num, in fsl_imx6_realize() 485 DEFINE_PROP_UINT32("fec-phy-num", FslIMX6State, phy_num, 0),
|
/openbmc/qemu/include/hw/net/ |
H A D | imx_fec.h | 272 uint32_t phy_num; member
|
/openbmc/linux/drivers/scsi/mpi3mr/mpi/ |
H A D | mpi30_ioc.h | 426 u8 phy_num; member 441 u8 phy_num; member 505 u8 phy_num; member
|
H A D | mpi30_transport.h | 234 u8 phy_num; member
|
/openbmc/linux/drivers/dma/ |
H A D | ste_dma40.c | 1905 int phy_num = j + event_group * 2; in d40_allocate_channel() local 1906 for (i = phy_num; i < phy_num + 2; i++) { in d40_allocate_channel() 1926 int phy_num = j + event_group * 2; in d40_allocate_channel() local 1931 if ((i != phy_num) && (i != phy_num + 1)) { in d40_allocate_channel() 1952 for (i = phy_num; i < phy_num + 2; i++) { in d40_allocate_channel() 1959 for (i = phy_num + 1; i >= phy_num; i--) { in d40_allocate_channel()
|
/openbmc/linux/drivers/scsi/mpi3mr/ |
H A D | mpi3mr_transport.c | 815 identify->phy_identifier = sasinf->phy_num; in mpi3mr_set_identify() 1742 h_port[port_idx].lowest_phy = sasinf->phy_num; in mpi3mr_refresh_sas_ports()
|