Home
last modified time | relevance | path

Searched refs:phy_mask (Results 1 – 25 of 99) sorted by relevance

1234

/openbmc/u-boot/drivers/net/phy/
H A Dphy.c705 uint phy_mask, int devad, in create_phy_by_mask() argument
711 while (phy_mask) { in create_phy_by_mask()
712 int addr = ffs(phy_mask) - 1; in create_phy_by_mask()
720 phy_mask &= ~(1 << addr); in create_phy_by_mask()
726 uint phy_mask, in search_for_existing_phy() argument
730 while (phy_mask) { in search_for_existing_phy()
731 int addr = ffs(phy_mask) - 1; in search_for_existing_phy()
737 phy_mask &= ~(1 << addr); in search_for_existing_phy()
743 uint phy_mask, in get_phy_device_by_mask() argument
749 phydev = search_for_existing_phy(bus, phy_mask, interface); in get_phy_device_by_mask()
[all …]
/openbmc/u-boot/board/freescale/ls1012aqds/
H A Dls1012aqds.c187 &prop_val.phy_mask, PFE_PROP_LEN, 1); in pfe_set_properties()
212 prop_val.phy_mask = cpu_to_fdt32( in fdt_fsl_fixup_of_pfe()
224 prop_val.phy_mask = cpu_to_fdt32( in fdt_fsl_fixup_of_pfe()
239 prop_val.phy_mask = cpu_to_fdt32( in fdt_fsl_fixup_of_pfe()
251 prop_val.phy_mask = cpu_to_fdt32( in fdt_fsl_fixup_of_pfe()
H A Dls1012aqds_pfe.h42 int phy_mask; member
/openbmc/linux/drivers/net/wireless/mediatek/mt76/
H A Dutil.c78 u32 phy_mask = dev->wcid_phy_mask[i]; in mt76_get_min_avg_rssi() local
83 for (j = i * 32; mask; j++, mask >>= 1, phy_mask >>= 1) { in mt76_get_min_avg_rssi()
87 if (!!(phy_mask & 1) != ext_phy) in mt76_get_min_avg_rssi()
/openbmc/linux/drivers/scsi/isci/
H A Dport_config.c245 u32 phy_mask; in sci_mpc_agent_validate_phy_configuration() local
257 phy_mask = ihost->oem_parameters.ports[port_index].phy_mask; in sci_mpc_agent_validate_phy_configuration()
259 if (!phy_mask) in sci_mpc_agent_validate_phy_configuration()
264 if ((phy_mask & ~assigned_phy_mask) == 0) { in sci_mpc_agent_validate_phy_configuration()
270 if ((phy_mask & (1 << phy_index)) == 0) in sci_mpc_agent_validate_phy_configuration()
295 if ((phy_mask & (1 << phy_index)) == 0) in sci_mpc_agent_validate_phy_configuration()
H A Dport.c135 prop->phy_mask = sci_port_get_phys(iport); in sci_port_get_properties()
412 u32 phy_mask) in sci_port_is_phy_mask_valid() argument
415 if (((phy_mask & 0x0F) == 0x0F) in sci_port_is_phy_mask_valid()
416 || ((phy_mask & 0x03) == 0x03) in sci_port_is_phy_mask_valid()
417 || ((phy_mask & 0x01) == 0x01) in sci_port_is_phy_mask_valid()
418 || (phy_mask == 0)) in sci_port_is_phy_mask_valid()
421 if (((phy_mask & 0x02) == 0x02) in sci_port_is_phy_mask_valid()
422 || (phy_mask == 0)) in sci_port_is_phy_mask_valid()
425 if (((phy_mask & 0x0C) == 0x0C) in sci_port_is_phy_mask_valid()
426 || ((phy_mask & 0x04) == 0x04) in sci_port_is_phy_mask_valid()
[all …]
H A Dprobe_roms.h309 uint8_t phy_mask; member
/openbmc/linux/drivers/net/ethernet/ti/
H A Ddavinci_mdio.c296 u32 phy_mask, ver; in davinci_mdio_common_reset() local
322 phy_mask = readl(&data->regs->alive); in davinci_mdio_common_reset()
323 if (phy_mask) { in davinci_mdio_common_reset()
325 dev_info(data->dev, "detected phy mask %x\n", ~phy_mask); in davinci_mdio_common_reset()
326 phy_mask = ~phy_mask; in davinci_mdio_common_reset()
330 phy_mask = 0; in davinci_mdio_common_reset()
332 data->bus->phy_mask = phy_mask; in davinci_mdio_common_reset()
/openbmc/linux/drivers/net/mdio/
H A Dmdio-regmap.c77 mii->phy_mask = ~BIT(config->valid_addr); in devm_mdio_regmap_register()
79 mii->phy_mask = ~0; in devm_mdio_regmap_register()
H A Dmdio-bcm-unimac.c165 read_mask = ~bus->phy_mask; in unimac_mdio_reset()
268 bus->phy_mask = ~pdata->phy_mask; in unimac_mdio_probe()
H A Dmdio-gpio.c131 new_bus->phy_mask = pdata->phy_mask; in mdio_gpio_bus_init()
H A Dacpi_mdio.c39 mdio->phy_mask = GENMASK(31, 0); in __acpi_mdiobus_register()
/openbmc/linux/arch/mips/ar7/
H A Dplatform.c248 .phy_mask = 0x80000000,
254 .phy_mask = 0x7fffffff,
624 cpmac_low_data.phy_mask = 0x40000000; in titan_fixup_devices()
627 cpmac_high_data.phy_mask = 0x80000000; in titan_fixup_devices()
684 cpmac_low_data.phy_mask = 0xffffffff; in ar7_register_devices()
/openbmc/linux/drivers/scsi/libsas/
H A Dsas_port.c77 port->phy_mask |= (1U << phy->id); in sas_form_port_add_phy()
180 port->phy_mask, in sas_form_port()
245 port->phy_mask &= ~(1U << phy->id); in sas_deform_port()
254 port->phy_mask = 0; in sas_deform_port()
/openbmc/linux/drivers/scsi/mpi3mr/
H A Dmpi3mr_transport.c605 mr_sas_port->phy_mask &= ~(1 << mr_sas_phy->phy_id); in mpi3mr_delete_sas_phy()
607 mr_sas_port->lowest_phy = ffs(mr_sas_port->phy_mask) - 1; in mpi3mr_delete_sas_phy()
632 mr_sas_port->phy_mask |= (1 << mr_sas_phy->phy_id); in mpi3mr_add_sas_phy()
634 mr_sas_port->lowest_phy = ffs(mr_sas_port->phy_mask) - 1; in mpi3mr_add_sas_phy()
1358 if (mr_sas_node->num_phys > sizeof(mr_sas_port->phy_mask) * 8) in mpi3mr_sas_port_add()
1368 if (i > sizeof(mr_sas_port->phy_mask) * 8) { in mpi3mr_sas_port_add()
1370 i, sizeof(mr_sas_port->phy_mask) * 8); in mpi3mr_sas_port_add()
1376 mr_sas_port->phy_mask |= (1 << i); in mpi3mr_sas_port_add()
1385 mr_sas_port->lowest_phy = ffs(mr_sas_port->phy_mask) - 1; in mpi3mr_sas_port_add()
1600 u32 phy_mask; member
[all …]
/openbmc/linux/include/linux/platform_data/
H A Dmdio-gpio.h10 u32 phy_mask; member
H A Dmdio-bcm-unimac.h5 u32 phy_mask; member
/openbmc/linux/include/linux/
H A Dsxgbe_platform.h27 unsigned int phy_mask; member
/openbmc/linux/drivers/scsi/aic94xx/
H A Daic94xx_hwi.c105 asd_port->phy_mask = 0; in asd_init_ports()
113 u8 phy_mask = asd_ha->hw_prof.enabled_phys; in asd_init_phys() local
130 for_each_phy(phy_mask, phy_mask, i) { in asd_init_phys()
1332 int asd_enable_phys(struct asd_ha_struct *asd_ha, const u8 phy_mask) in asd_enable_phys() argument
1340 if (!phy_mask) { in asd_enable_phys()
1345 for_each_phy(phy_mask, phy_m, i) { in asd_enable_phys()
1359 for_each_phy(phy_mask, phy_m, i) { in asd_enable_phys()
H A Daic94xx_hwi.h173 u32 phy_mask; member
374 int asd_enable_phys(struct asd_ha_struct *asd_ha, const u8 phy_mask);
/openbmc/u-boot/include/
H A Dphy.h67 u32 phy_mask; member
192 struct phy_device *phy_find_by_mask(struct mii_dev *bus, unsigned phy_mask,
H A Dexports.h42 struct phy_device *phy_find_by_mask(struct mii_dev *bus, unsigned phy_mask,
/openbmc/linux/drivers/scsi/mvsas/
H A Dmv_sas.c154 void mvs_phys_reset(struct mvs_info *mvi, u32 phy_mask, int hard) in mvs_phys_reset() argument
157 for_each_phy(phy_mask, phy_mask, no) { in mvs_phys_reset()
158 if (!(phy_mask & 1)) in mvs_phys_reset()
454 ((sas_port->phy_mask & TXQ_PHY_MASK) << TXQ_PHY_SHIFT) | in mvs_task_prep_ata()
547 MVS_CHIP_DISP->dma_fix(mvi, sas_port->phy_mask, in mvs_task_prep_ata()
572 u32 phy_mask; in mvs_task_prep_ssp() local
576 phy_mask = ((port->wide_port_phymap) ? port->wide_port_phymap : in mvs_task_prep_ssp()
577 sas_port->phy_mask) & TXQ_PHY_MASK; in mvs_task_prep_ssp()
582 (phy_mask << TXQ_PHY_SHIFT)); in mvs_task_prep_ssp()
1095 port->wide_port_phymap = sas_port->phy_mask; in mvs_port_notify_formed()
[all …]
/openbmc/linux/drivers/net/ethernet/samsung/sxgbe/
H A Dsxgbe_mdio.c226 mdio_bus->phy_mask = mdio_data->phy_mask; in sxgbe_mdio_register()
/openbmc/linux/drivers/net/ethernet/broadcom/genet/
H A Dbcmmii.c444 ppd->phy_mask = 1 << pd->phy_address; in bcmgenet_mii_pdata_init()
446 ppd->phy_mask = 0; in bcmgenet_mii_pdata_init()
507 ppd.phy_mask = ~0; in bcmgenet_mii_register()

1234