Home
last modified time | relevance | path

Searched refs:max_speed (Results 1 – 25 of 161) sorted by relevance

1234567

/linux/tools/testing/selftests/drivers/net/mlxsw/
A Dethtool_lanes.sh41 local max_speed=$1; shift
54 local max_speed=$1; shift
74 local max_speed
109 local max_speed
114 max_speed=${max_values[0]}
122 ethtool_set $swp1 speed $max_speed lanes $lanes
128 check_lanes $swp1 $lanes $max_speed
134 check_unsupported_lanes $swp1 $max_speed $max_lanes 1
146 local max_speed
151 max_speed=${max_values[0]}
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/pci/
A Dgk104.c114 u32 max_speed = nvkm_rd32(pci->subdev.device, 0x8c1c0) & 0x300000; in gk104_pcie_max_speed() local
115 switch (max_speed) { in gk104_pcie_max_speed()
152 enum nvkm_pcie_speed lnkctl_speed, max_speed, cap_speed; in gk104_pcie_init() local
159 max_speed = gk104_pcie_max_speed(pci); in gk104_pcie_init()
162 if (cap_speed != max_speed) { in gk104_pcie_init()
164 gk104_pcie_set_cap_speed(pci, max_speed); in gk104_pcie_init()
166 if (cap_speed != max_speed) in gk104_pcie_init()
170 if (lnkctl_speed != max_speed) { in gk104_pcie_init()
172 gk104_pcie_set_lnkctl_speed(pci, max_speed); in gk104_pcie_init()
174 if (lnkctl_speed != max_speed) in gk104_pcie_init()
[all …]
A Dpcie.c82 if (pci->func->pcie.max_speed) in nvkm_pcie_oneinit()
84 nvkm_pcie_speeds[pci->func->pcie.max_speed(pci)]); in nvkm_pcie_oneinit()
118 enum nvkm_pcie_speed cur_speed, max_speed; in nvkm_pcie_set_link() local
137 max_speed = min(nvkm_pcie_speed(pbus->max_bus_speed), in nvkm_pcie_set_link()
138 pci->func->pcie.max_speed(pci)); in nvkm_pcie_set_link()
142 if (speed > max_speed) { in nvkm_pcie_set_link()
145 nvkm_pcie_speeds[max_speed]); in nvkm_pcie_set_link()
146 speed = max_speed; in nvkm_pcie_set_link()
A Dg94.c37 .pcie.max_speed = g84_pcie_max_speed,
/linux/tools/testing/selftests/net/forwarding/
A Dethtool.sh226 local max_speed
239 max_speed=${speeds_arr[0]}
241 if [[ $current -gt $max_speed ]]; then
242 max_speed=$current
251 ((chosen_speed == max_speed))
/linux/drivers/firewire/
A Dcore-device.c487 generation, device->max_speed, offset, data, 4); in read_rom()
523 device->max_speed = SCODE_100; in read_config_rom()
544 device->max_speed = device->node->max_speed; in read_config_rom()
555 if ((rom[2] & 0x7) < device->max_speed || in read_config_rom()
556 device->max_speed == SCODE_BETA || in read_config_rom()
561 if (device->max_speed == SCODE_BETA) in read_config_rom()
562 device->max_speed = card->link_speed; in read_config_rom()
564 while (device->max_speed > SCODE_100) { in read_config_rom()
568 device->max_speed--; in read_config_rom()
902 old->max_speed = new->max_speed; in lookup_existing_device()
[all …]
A Dcore-topology.c364 node->max_speed = parent->max_speed < node->phy_speed ? in report_found_node()
365 parent->max_speed : node->phy_speed; in report_found_node()
368 node->max_speed = node->phy_speed; in report_found_node()
/linux/drivers/net/phy/
A Dphy-core.c246 static int __set_linkmode_max_speed(u32 max_speed, unsigned long *addr) in __set_linkmode_max_speed() argument
252 if (p->speed > max_speed) in __set_linkmode_max_speed()
261 static int __set_phy_supported(struct phy_device *phydev, u32 max_speed) in __set_phy_supported() argument
263 return __set_linkmode_max_speed(max_speed, phydev->supported); in __set_phy_supported()
276 int phy_set_max_speed(struct phy_device *phydev, u32 max_speed) in phy_set_max_speed() argument
280 err = __set_phy_supported(phydev, max_speed); in phy_set_max_speed()
293 u32 max_speed; in of_set_phy_supported() local
301 if (!of_property_read_u32(node, "max-speed", &max_speed)) in of_set_phy_supported()
302 __set_phy_supported(phydev, max_speed); in of_set_phy_supported()
/linux/sound/firewire/
A Dcmp.c147 c->max_speed = (mpr & MPR_SPEED_MASK) >> MPR_SPEED_SHIFT; in cmp_connection_init()
148 if (c->max_speed == SCODE_BETA) in cmp_connection_init()
149 c->max_speed += (mpr & MPR_XSPEED_MASK) >> MPR_XSPEED_SHIFT; in cmp_connection_init()
200 c->speed = min(c->max_speed, in cmp_connection_reserve()
201 fw_parent_device(c->resources.unit)->max_speed); in cmp_connection_reserve()
/linux/drivers/usb/cdns3/
A Dcdnsp-gadget.c1319 enum usb_device_speed max_speed = driver->max_speed; in cdnsp_gadget_udc_start() local
1328 max_speed = min(driver->max_speed, g->max_speed); in cdnsp_gadget_udc_start()
1329 ret = cdnsp_run(pdev, max_speed); in cdnsp_gadget_udc_start()
1862 u32 max_speed; in __cdnsp_gadget_init() local
1878 switch (max_speed) { in __cdnsp_gadget_init()
1889 max_speed = USB_SPEED_SUPER_PLUS; in __cdnsp_gadget_init()
1897 pdev->gadget.max_speed = max_speed; in __cdnsp_gadget_init()
1987 enum usb_device_speed max_speed; in cdnsp_gadget_resume() local
1995 max_speed = pdev->gadget_driver->max_speed; in cdnsp_gadget_resume()
1998 max_speed = min(max_speed, pdev->gadget.max_speed); in cdnsp_gadget_resume()
[all …]
A Dcdns3-gadget.c2888 enum usb_device_speed max_speed = driver->max_speed; in cdns3_gadget_udc_start() local
2894 max_speed = min(driver->max_speed, gadget->max_speed); in cdns3_gadget_udc_start()
2896 switch (max_speed) { in cdns3_gadget_udc_start()
2909 max_speed); in cdns3_gadget_udc_start()
2913 max_speed = USB_SPEED_SUPER; in cdns3_gadget_udc_start()
3127 u32 max_speed; in cdns3_gadget_start() local
3153 max_speed = usb_get_maximum_speed(cdns->dev); in cdns3_gadget_start()
3156 switch (max_speed) { in cdns3_gadget_start()
3163 max_speed); in cdns3_gadget_start()
3167 max_speed = USB_SPEED_SUPER; in cdns3_gadget_start()
[all …]
/linux/include/linux/usb/
A Dgadget.h416 enum usb_device_speed max_speed; member
560 return g->max_speed >= USB_SPEED_HIGH; in gadget_is_dualspeed()
569 return g->max_speed >= USB_SPEED_SUPER; in gadget_is_superspeed()
579 return g->max_speed >= USB_SPEED_SUPER_PLUS; in gadget_is_superspeed_plus()
717 enum usb_device_speed max_speed; member
/linux/drivers/usb/mtu3/
A Dmtu3_core.c236 if (speed > mtu->max_speed) in mtu3_set_speed()
237 speed = mtu->max_speed; in mtu3_set_speed()
825 switch (mtu->max_speed) { in mtu3_check_params()
833 usb_speed_string(mtu->max_speed)); in mtu3_check_params()
837 mtu->max_speed = USB_SPEED_SUPER_PLUS; in mtu3_check_params()
841 if (!mtu->is_u3_ip && (mtu->max_speed > USB_SPEED_HIGH)) in mtu3_check_params()
842 mtu->max_speed = USB_SPEED_HIGH; in mtu3_check_params()
844 mtu->speed = mtu->max_speed; in mtu3_check_params()
847 usb_speed_string(mtu->max_speed)); in mtu3_check_params()
951 mtu->max_speed = usb_get_maximum_speed(dev); in ssusb_gadget_init()
/linux/drivers/usb/gadget/udc/
A Dtrace.h25 __field(enum usb_device_speed, max_speed)
46 __entry->max_speed = g->max_speed;
66 __entry->speed, __entry->max_speed, __entry->state, __entry->mA,
/linux/drivers/usb/gadget/udc/aspeed-vhub/
A Dcore.c299 enum usb_device_speed max_speed; in ast_vhub_probe() local
356 max_speed = usb_get_maximum_speed(&pdev->dev); in ast_vhub_probe()
357 if (max_speed != USB_SPEED_UNKNOWN && max_speed < USB_SPEED_HIGH) in ast_vhub_probe()
A Ddev.c230 if (d->gadget.speed > d->driver->max_speed) in ast_vhub_std_dev_request()
231 d->gadget.speed = d->driver->max_speed; in ast_vhub_std_dev_request()
578 d->gadget.max_speed = USB_SPEED_FULL; in ast_vhub_init_dev()
580 d->gadget.max_speed = USB_SPEED_HIGH; in ast_vhub_init_dev()
/linux/drivers/net/ethernet/freescale/fman/
A Dmac.c67 u16 max_speed; member
106 params->max_speed = priv->max_speed; in set_fman_mac_params()
223 if (priv->max_speed == SPEED_10000) in memac_initialization()
785 priv->max_speed = priv->speed; in mac_probe()
793 if (priv->max_speed == 1000) in mac_probe()
/linux/sound/firewire/dice/
A Ddice-stream.c192 fw_parent_device(dice->unit)->max_speed); in keep_resources()
327 unsigned int max_speed = fw_parent_device(dice->unit)->max_speed; in start_streams() local
358 reg = cpu_to_be32(max_speed); in start_streams()
367 resources->channel, max_speed); in start_streams()
/linux/sound/firewire/fireface/
A Dff-protocol-former.c357 fw_parent_device(ff->unit)->max_speed); in ff800_allocate_resources()
388 if (fw_parent_device(ff->unit)->max_speed == SCODE_800) in ff800_begin_session()
473 fw_parent_device(ff->unit)->max_speed); in ff400_allocate_resources()
481 fw_parent_device(ff->unit)->max_speed); in ff400_allocate_resources()
/linux/drivers/usb/gadget/
A Dconfigfs.c308 enum usb_device_speed speed = to_gadget_info(item)->composite.max_speed; in gadget_dev_desc_max_speed_show()
325 gi->composite.max_speed = USB_SPEED_SUPER_PLUS; in gadget_dev_desc_max_speed_store()
327 gi->composite.max_speed = USB_SPEED_SUPER; in gadget_dev_desc_max_speed_store()
329 gi->composite.max_speed = USB_SPEED_HIGH; in gadget_dev_desc_max_speed_store()
331 gi->composite.max_speed = USB_SPEED_FULL; in gadget_dev_desc_max_speed_store()
333 gi->composite.max_speed = USB_SPEED_LOW; in gadget_dev_desc_max_speed_store()
337 gi->composite.gadget_driver.max_speed = gi->composite.max_speed; in gadget_dev_desc_max_speed_store()
355 CONFIGFS_ATTR(gadget_dev_desc_, max_speed);
1586 .max_speed = USB_SPEED_SUPER_PLUS,
1626 gi->composite.max_speed = USB_SPEED_SUPER_PLUS; in gadgets_make()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dport.c219 u32 max_speed = 0; in mlx5e_port_max_linkspeed() local
234 max_speed = max(max_speed, table[i]); in mlx5e_port_max_linkspeed()
236 *speed = max_speed; in mlx5e_port_max_linkspeed()
/linux/include/linux/platform_data/
A Dpxa_sdhci.h44 unsigned int max_speed; member
/linux/sound/firewire/motu/
A Dmotu-stream.c59 fw_parent_device(motu->unit)->max_speed); in keep_resources()
220 data |= fw_parent_device(motu->unit)->max_speed; in ensure_packet_formats()
252 int spd = fw_parent_device(motu->unit)->max_speed; in snd_motu_stream_start_duplex()
/linux/drivers/ntb/hw/intel/
A Dntb_hw_gen3.c418 int intel_ntb3_link_enable(struct ntb_dev *ntb, enum ntb_speed max_speed, in intel_ntb3_link_enable() argument
428 max_speed, max_width); in intel_ntb3_link_enable()
430 if (max_speed != NTB_SPEED_AUTO) in intel_ntb3_link_enable()
431 dev_dbg(&ntb->pdev->dev, "ignoring max_speed %d\n", max_speed); in intel_ntb3_link_enable()
A Dntb_hw_gen4.c417 enum ntb_speed max_speed, enum ntb_width max_width) in intel_ntb4_link_enable() argument
427 max_speed, max_width); in intel_ntb4_link_enable()
429 if (max_speed != NTB_SPEED_AUTO) in intel_ntb4_link_enable()
431 "ignoring max_speed %d\n", max_speed); in intel_ntb4_link_enable()

Completed in 64 milliseconds

1234567