Home
last modified time | relevance | path

Searched refs:supported_speeds (Results 1 – 11 of 11) sorted by relevance

/linux/drivers/pci/pcie/
H A Dbwctrl.c83 static inline u16 pcie_supported_speeds2target_speed(u8 supported_speeds) in pcie_supported_speeds2target_speed() argument
85 return __fls(supported_speeds); in pcie_supported_speeds2target_speed()
101 u8 desired_speeds, supported_speeds; in pcie_bwctrl_select_speed() local
107 supported_speeds = port->supported_speeds; in pcie_bwctrl_select_speed()
112 supported_speeds &= dev->supported_speeds; in pcie_bwctrl_select_speed()
115 if (!supported_speeds) in pcie_bwctrl_select_speed()
118 return pcie_supported_speeds2target_speed(supported_speeds & desired_speeds); in pcie_bwctrl_select_speed()
H A Dportdrv.c275 hweight8(dev->supported_speeds) > 1) in get_port_device_capability()
/linux/drivers/i2c/busses/
H A Di2c-amd-mp2-plat.c203 static const u32 supported_speeds[] = { variable
218 for (i = 0; i < ARRAY_SIZE(supported_speeds); i++) { in i2c_amd_get_bus_speed()
219 if (acpi_speed >= supported_speeds[i]) in i2c_amd_get_bus_speed()
222 acpi_speed = i < ARRAY_SIZE(supported_speeds) ? supported_speeds[i] : 0; in i2c_amd_get_bus_speed()
H A Di2c-designware-common.c192 static const u32 supported_speeds[] = { variable
208 for (i = 0; i < ARRAY_SIZE(supported_speeds); i++) { in i2c_dw_validate_speed()
209 if (t->bus_freq_hz == supported_speeds[i]) in i2c_dw_validate_speed()
345 for (i = 0; i < ARRAY_SIZE(supported_speeds); i++) { in i2c_dw_acpi_round_bus_speed()
346 if (acpi_speed >= supported_speeds[i]) in i2c_dw_acpi_round_bus_speed()
347 return supported_speeds[i]; in i2c_dw_acpi_round_bus_speed()
/linux/tools/testing/selftests/drivers/net/hw/
H A Dethtool.sh161 local supported_speeds=("$@"); shift
166 for speed in ${supported_speeds[@]}; do
/linux/drivers/scsi/elx/efct/
H A Defct_xport.c347 u32 supported_speeds = 0; in efct_get_link_supported_speeds() local
368 supported_speeds |= supported_speed_list[i].speed; in efct_get_link_supported_speeds()
371 return supported_speeds; in efct_get_link_supported_speeds()
/linux/include/scsi/
H A Dscsi_transport_fc.h534 u32 supported_speeds; member
602 (((struct fc_host_attrs *)(x)->shost_data)->supported_speeds)
/linux/drivers/scsi/qla2xxx/
H A Dqla_attr.c3350 uint supported_speeds = FC_PORTSPEED_UNKNOWN; in qla2x00_get_host_supported_speeds() local
3353 supported_speeds |= FC_PORTSPEED_64GBIT; in qla2x00_get_host_supported_speeds()
3355 supported_speeds |= FC_PORTSPEED_32GBIT; in qla2x00_get_host_supported_speeds()
3357 supported_speeds |= FC_PORTSPEED_16GBIT; in qla2x00_get_host_supported_speeds()
3359 supported_speeds |= FC_PORTSPEED_8GBIT; in qla2x00_get_host_supported_speeds()
3361 supported_speeds |= FC_PORTSPEED_4GBIT; in qla2x00_get_host_supported_speeds()
3363 supported_speeds |= FC_PORTSPEED_2GBIT; in qla2x00_get_host_supported_speeds()
3365 supported_speeds |= FC_PORTSPEED_1GBIT; in qla2x00_get_host_supported_speeds()
3367 return supported_speeds; in qla2x00_get_host_supported_speeds()
/linux/drivers/scsi/
H A Dscsi_transport_fc.c403 fc_host->supported_speeds = FC_PORTSPEED_UNKNOWN; in fc_host_setup()
1914 static FC_DEVICE_ATTR(host, supported_speeds, S_IRUGO,
2679 SETUP_HOST_ATTRIBUTE_RD(supported_speeds); in fc_attach_transport()
/linux/drivers/pci/
H A Dprobe.c2013 dev->supported_speeds = pcie_get_supported_speeds(dev); in pci_setup_device()
H A Dpci.c6131 return PCIE_LNKCAP2_SLS2SPEED(dev->supported_speeds); in pcie_get_speed_cap()