• Home
  • Raw
  • Download

Lines Matching +full:retimer +full:- +full:switch

1 // SPDX-License-Identifier: GPL-2.0
89 return -EOPNOTSUPP; in usb4_native_switch_op()
114 const struct tb_cm_ops *cm_ops = sw->tb->cm_ops; in __usb4_switch_op()
117 return -EINVAL; in __usb4_switch_op()
124 if (cm_ops->usb4_switch_op) { in __usb4_switch_op()
127 ret = cm_ops->usb4_switch_op(sw, opcode, metadata, status, in __usb4_switch_op()
130 if (ret != -EOPNOTSUPP) in __usb4_switch_op()
166 if (!device_may_wakeup(&sw->dev)) in usb4_switch_check_wakes()
185 if (!port->cap_usb4) in usb4_switch_check_wakes()
189 port->cap_usb4 + PORT_CS_18, 1)) in usb4_switch_check_wakes()
200 usb4 = port->usb4; in usb4_switch_check_wakes()
201 if (device_may_wakeup(&usb4->dev) && wakeup_usb4) in usb4_switch_check_wakes()
202 pm_wakeup_event(&usb4->dev, 0); in usb4_switch_check_wakes()
208 pm_wakeup_event(&sw->dev, 0); in usb4_switch_check_wakes()
215 if (!port->cap_usb4) in link_is_usb4()
219 port->cap_usb4 + PORT_CS_18, 1)) in link_is_usb4()
226 * usb4_switch_setup() - Additional setup for USB4 device
231 * enabled (e.g the parent switch also supports them). If USB tunneling
233 * switch upstream) then the internal xHCI controller is enabled
257 sw->link_usb4 = link_is_usb4(down); in usb4_switch_setup()
258 tb_sw_dbg(sw, "link: %s\n", sw->link_usb4 ? "USB4" : "TBT"); in usb4_switch_setup()
270 if (tb_acpi_may_tunnel_usb3() && sw->link_usb4 && in usb4_switch_setup()
299 * usb4_switch_configuration_valid() - Set tunneling configuration to be valid
332 * usb4_switch_read_uid() - Read UID from USB4 router
336 * Reads 64-bit UID from USB4 router config space.
361 return status ? -EIO : 0; in usb4_switch_drom_read_block()
365 * usb4_switch_drom_read() - Read arbitrary bytes from USB4 router DROM
372 * should always work but for hosts it may return %-EOPNOTSUPP in which
383 * usb4_switch_lane_bonding_possible() - Are conditions met for lane bonding
396 ret = tb_port_read(up, &val, TB_CFG_PORT, up->cap_usb4 + PORT_CS_18, 1); in usb4_switch_lane_bonding_possible()
404 * usb4_switch_set_wake() - Enabled/disable wake
428 if (!port->cap_usb4) in usb4_switch_set_wake()
432 port->cap_usb4 + PORT_CS_19, 1); in usb4_switch_set_wake()
442 usb4 = port->usb4; in usb4_switch_set_wake()
445 device_may_wakeup(&usb4->dev)) && !configured) in usb4_switch_set_wake()
448 device_may_wakeup(&usb4->dev)) && configured) in usb4_switch_set_wake()
455 port->cap_usb4 + PORT_CS_19, 1); in usb4_switch_set_wake()
486 * usb4_switch_set_sleep() - Prepare the router to enter sleep
513 * usb4_switch_nvm_sector_size() - Return router NVM sector size
518 * %-EOPNOTSUPP.
532 return status == 0x2 ? -EOPNOTSUPP : -EIO; in usb4_switch_nvm_sector_size()
555 return status ? -EIO : 0; in usb4_switch_nvm_read_block()
559 * usb4_switch_nvm_read() - Read arbitrary bytes from router NVM
566 * %-EOPNOTSUPP.
576 * usb4_switch_nvm_set_offset() - Set NVM write offset
600 return status ? -EIO : 0; in usb4_switch_nvm_set_offset()
615 return status ? -EIO : 0; in usb4_switch_nvm_write_next_block()
619 * usb4_switch_nvm_write() - Write to the router NVM
626 * write is not supported returns %-EOPNOTSUPP.
642 * usb4_switch_nvm_authenticate() - Authenticate new NVM
659 switch (ret) { in usb4_switch_nvm_authenticate()
664 case -EACCES: in usb4_switch_nvm_authenticate()
665 case -ENOTCONN: in usb4_switch_nvm_authenticate()
666 case -ETIMEDOUT: in usb4_switch_nvm_authenticate()
675 * usb4_switch_nvm_authenticate_status() - Read status of last NVM authenticate
688 const struct tb_cm_ops *cm_ops = sw->tb->cm_ops; in usb4_switch_nvm_authenticate_status()
693 if (cm_ops->usb4_switch_nvm_authenticate_status) { in usb4_switch_nvm_authenticate_status()
694 ret = cm_ops->usb4_switch_nvm_authenticate_status(sw, status); in usb4_switch_nvm_authenticate_status()
695 if (ret != -EOPNOTSUPP) in usb4_switch_nvm_authenticate_status()
707 return -EBUSY; in usb4_switch_nvm_authenticate_status()
709 return -EOPNOTSUPP; in usb4_switch_nvm_authenticate_status()
721 * usb4_switch_credits_init() - Read buffer allocation parameters
725 * allocation fields accordingly. Specifically @sw->credits_allocation
745 return -EIO; in usb4_switch_credits_init()
749 return -EMSGSIZE; in usb4_switch_credits_init()
751 max_usb3 = -1; in usb4_switch_credits_init()
752 min_dp_aux = -1; in usb4_switch_credits_init()
753 min_dp_main = -1; in usb4_switch_credits_init()
754 max_pcie = -1; in usb4_switch_credits_init()
755 max_dma = -1; in usb4_switch_credits_init()
765 switch (index) { in usb4_switch_credits_init()
795 * issues, log a warning and fall back using the hard-coded in usb4_switch_credits_init()
843 sw->credit_allocation = true; in usb4_switch_credits_init()
845 sw->max_usb3_credits = max_usb3; in usb4_switch_credits_init()
847 sw->min_dp_aux_credits = min_dp_aux; in usb4_switch_credits_init()
849 sw->min_dp_main_credits = min_dp_main; in usb4_switch_credits_init()
851 sw->max_pcie_credits = max_pcie; in usb4_switch_credits_init()
853 sw->max_dma_credits = max_dma; in usb4_switch_credits_init()
858 return -EINVAL; in usb4_switch_credits_init()
862 * usb4_switch_query_dp_resource() - Query availability of DP IN resource
872 u32 metadata = in->port; in usb4_switch_query_dp_resource()
882 if (ret == -EOPNOTSUPP) in usb4_switch_query_dp_resource()
891 * usb4_switch_alloc_dp_resource() - Allocate DP IN resource
897 * returns negative errno, in particular %-EBUSY if the resource is
902 u32 metadata = in->port; in usb4_switch_alloc_dp_resource()
908 if (ret == -EOPNOTSUPP) in usb4_switch_alloc_dp_resource()
913 return status ? -EBUSY : 0; in usb4_switch_alloc_dp_resource()
917 * usb4_switch_dealloc_dp_resource() - Releases allocated DP IN resource
925 u32 metadata = in->port; in usb4_switch_dealloc_dp_resource()
931 if (ret == -EOPNOTSUPP) in usb4_switch_dealloc_dp_resource()
936 return status ? -EIO : 0; in usb4_switch_dealloc_dp_resource()
950 if (!p->link_nr) { in usb4_port_idx()
961 * usb4_switch_map_pcie_down() - Map USB4 port to a PCIe downstream adapter
992 * usb4_switch_map_usb3_down() - Map USB4 port to a USB3 downstream adapter
1023 * usb4_switch_add_ports() - Add USB4 ports for this router
1043 if (!port->cap_usb4) in usb4_switch_add_ports()
1052 port->usb4 = usb4; in usb4_switch_add_ports()
1059 * usb4_switch_remove_ports() - Removes USB4 ports from this router
1069 if (port->usb4) { in usb4_switch_remove_ports()
1070 usb4_port_device_remove(port->usb4); in usb4_switch_remove_ports()
1071 port->usb4 = NULL; in usb4_switch_remove_ports()
1077 * usb4_port_unlock() - Unlock USB4 downstream port
1097 * usb4_port_hotplug_enable() - Enables hotplug for a port
1101 * to be used on lane, DP-IN, and DP-OUT adapters.
1121 if (!port->cap_usb4) in usb4_port_set_configured()
1122 return -EINVAL; in usb4_port_set_configured()
1125 port->cap_usb4 + PORT_CS_19, 1); in usb4_port_set_configured()
1135 port->cap_usb4 + PORT_CS_19, 1); in usb4_port_set_configured()
1139 * usb4_port_configure() - Set USB4 port configured
1150 * usb4_port_unconfigure() - Set USB4 port unconfigured
1165 if (!port->cap_usb4) in usb4_set_xdomain_configured()
1166 return -EINVAL; in usb4_set_xdomain_configured()
1169 port->cap_usb4 + PORT_CS_19, 1); in usb4_set_xdomain_configured()
1179 port->cap_usb4 + PORT_CS_19, 1); in usb4_set_xdomain_configured()
1183 * usb4_port_configure_xdomain() - Configure port for XDomain
1192 xd->link_usb4 = link_is_usb4(port); in usb4_port_configure_xdomain()
1197 * usb4_port_unconfigure_xdomain() - Unconfigure port for XDomain
1226 return -ETIMEDOUT; in usb4_port_wait_for_bit()
1232 return -EINVAL; in usb4_port_read_data()
1234 return tb_port_read(port, data, TB_CFG_PORT, port->cap_usb4 + PORT_CS_2, in usb4_port_read_data()
1242 return -EINVAL; in usb4_port_write_data()
1244 return tb_port_write(port, data, TB_CFG_PORT, port->cap_usb4 + PORT_CS_2, in usb4_port_write_data()
1255 if (!port->cap_usb4) in usb4_port_sb_read()
1256 return -EINVAL; in usb4_port_sb_read()
1266 port->cap_usb4 + PORT_CS_1, 1); in usb4_port_sb_read()
1270 ret = usb4_port_wait_for_bit(port, port->cap_usb4 + PORT_CS_1, in usb4_port_sb_read()
1276 port->cap_usb4 + PORT_CS_1, 1); in usb4_port_sb_read()
1281 return -ENODEV; in usb4_port_sb_read()
1283 return -EIO; in usb4_port_sb_read()
1295 if (!port->cap_usb4) in usb4_port_sb_write()
1296 return -EINVAL; in usb4_port_sb_write()
1313 port->cap_usb4 + PORT_CS_1, 1); in usb4_port_sb_write()
1317 ret = usb4_port_wait_for_bit(port, port->cap_usb4 + PORT_CS_1, in usb4_port_sb_write()
1323 port->cap_usb4 + PORT_CS_1, 1); in usb4_port_sb_write()
1328 return -ENODEV; in usb4_port_sb_write()
1330 return -EIO; in usb4_port_sb_write()
1337 switch (val) { in usb4_port_sb_opcode_err_to_errno()
1341 return -EAGAIN; in usb4_port_sb_opcode_err_to_errno()
1343 return -EOPNOTSUPP; in usb4_port_sb_opcode_err_to_errno()
1345 return -EIO; in usb4_port_sb_opcode_err_to_errno()
1375 return -ETIMEDOUT; in usb4_port_sb_op()
1394 * usb4_port_router_offline() - Put the USB4 port to offline mode
1399 * called before retimer access is done when the USB4 links is not up.
1410 * usb4_port_router_online() - Put the USB4 port back to online
1421 * usb4_port_enumerate_retimers() - Send RT broadcast transaction
1438 * usb4_port_clx_supported() - Check if CLx is supported by the link
1450 port->cap_usb4 + PORT_CS_18, 1); in usb4_port_clx_supported()
1458 * usb4_port_margining_caps() - Read USB4 port marginig capabilities
1478 * usb4_port_hw_margin() - Run hardware lane margining on port
1521 * usb4_port_sw_margin() - Run software lane margining on port
1557 * usb4_port_sw_margin_errors() - Read the software margining error counters
1586 * usb4_port_retimer_set_inbound_sbtx() - Enable sideband channel transactions
1588 * @index: Retimer index
1600 if (ret != -ENODEV) in usb4_port_retimer_set_inbound_sbtx()
1604 * Per the USB4 retimer spec, the retimer is not required to in usb4_port_retimer_set_inbound_sbtx()
1605 * send an RT (Retimer Transaction) response for the first in usb4_port_retimer_set_inbound_sbtx()
1613 * usb4_port_retimer_unset_inbound_sbtx() - Disable sideband channel transactions
1615 * @index: Retimer index
1627 * usb4_port_retimer_read() - Read from retimer sideband registers
1629 * @index: Retimer index
1634 * Function reads retimer sideband registers starting from @reg. The
1635 * retimer is connected to @port at @index. Returns %0 in case of
1636 * success, and read data is copied to @buf. If there is no retimer
1637 * present at given @index returns %-ENODEV. In any other failure
1648 * usb4_port_retimer_write() - Write to retimer sideband registers
1650 * @index: Retimer index
1655 * Writes retimer sideband registers starting from @reg. The retimer is
1657 * is no retimer present at given @index returns %-ENODEV. In any other
1668 * usb4_port_retimer_is_last() - Is the retimer last on-board retimer
1670 * @index: Retimer index
1672 * If the retimer at @index is last one (connected directly to the
1673 * Type-C port) this function returns %1. If it is not returns %0. If
1674 * the retimer is not present returns %-ENODEV. Otherwise returns
1693 * usb4_port_retimer_nvm_sector_size() - Read retimer NVM sector size
1695 * @index: Retimer index
1697 * Reads NVM sector size (in bytes) of a retimer at @index. This
1698 * operation can be used to determine whether the retimer supports NVM
1700 * in case of error. Specifically returns %-ENODEV if there is no
1701 * retimer at @index.
1719 * usb4_port_retimer_nvm_set_offset() - Set NVM write offset
1721 * @index: Retimer index
1758 struct tb_port *port = info->port; in usb4_port_retimer_nvm_write_next_block()
1759 u8 index = info->index; in usb4_port_retimer_nvm_write_next_block()
1772 * usb4_port_retimer_nvm_write() - Write to retimer NVM
1774 * @index: Retimer index
1779 * Writes @size bytes from @buf to the retimer NVM. Used for NVM
1781 * errno in case of failure. Specifically returns %-ENODEV if there is
1782 * no retimer at @index.
1799 * usb4_port_retimer_nvm_authenticate() - Start retimer NVM upgrade
1801 * @index: Retimer index
1805 * successful the retimer restarts with the new NVM and may not have the
1815 * authentication completes the retimer index is not set anymore in usb4_port_retimer_nvm_authenticate()
1824 * usb4_port_retimer_nvm_authenticate_status() - Read status of NVM upgrade
1826 * @index: Retimer index
1848 switch (ret) { in usb4_port_retimer_nvm_authenticate_status()
1853 case -EAGAIN: in usb4_port_retimer_nvm_authenticate_status()
1871 struct tb_port *port = info->port; in usb4_port_retimer_nvm_read_block()
1872 u8 index = info->index; in usb4_port_retimer_nvm_read_block()
1894 * usb4_port_retimer_nvm_read() - Read contents of retimer NVM
1896 * @index: Retimer index
1901 * Reads retimer NVM and copies the contents to @buf. Returns %0 if the
1903 * Specifically returns %-ENODEV if there is no retimer at @index.
1918 if (port->max_bw) in usb4_usb3_port_max_bandwidth()
1919 return min(bw, port->max_bw); in usb4_usb3_port_max_bandwidth()
1924 * usb4_usb3_port_max_link_rate() - Maximum support USB3 link rate
1936 return -EINVAL; in usb4_usb3_port_max_link_rate()
1939 port->cap_adap + ADP_USB3_CS_4, 1); in usb4_usb3_port_max_link_rate()
1950 * usb4_usb3_port_actual_link_rate() - Established USB3 link rate
1962 return -EINVAL; in usb4_usb3_port_actual_link_rate()
1965 port->cap_adap + ADP_USB3_CS_4, 1); in usb4_usb3_port_actual_link_rate()
1984 return -EINVAL; in usb4_usb3_port_cm_request()
1985 if (tb_route(port->sw)) in usb4_usb3_port_cm_request()
1986 return -EINVAL; in usb4_usb3_port_cm_request()
1989 port->cap_adap + ADP_USB3_CS_2, 1); in usb4_usb3_port_cm_request()
1999 port->cap_adap + ADP_USB3_CS_2, 1); in usb4_usb3_port_cm_request()
2008 return usb4_port_wait_for_bit(port, port->cap_adap + ADP_USB3_CS_1, in usb4_usb3_port_cm_request()
2034 /* 1 uframe is 1/8 ms (125 us) -> 1 / 8000 s */ in mbps_to_usb3_bw()
2047 port->cap_adap + ADP_USB3_CS_2, 1); in usb4_usb3_port_read_allocated_bandwidth()
2052 port->cap_adap + ADP_USB3_CS_3, 1); in usb4_usb3_port_read_allocated_bandwidth()
2068 * usb4_usb3_port_allocated_bandwidth() - Bandwidth allocated for USB3
2101 port->cap_adap + ADP_USB3_CS_1, 1); in usb4_usb3_port_read_consumed_bandwidth()
2106 port->cap_adap + ADP_USB3_CS_3, 1); in usb4_usb3_port_read_consumed_bandwidth()
2138 return -EINVAL; in usb4_usb3_port_write_allocated_bandwidth()
2141 port->cap_adap + ADP_USB3_CS_3, 1); in usb4_usb3_port_write_allocated_bandwidth()
2151 port->cap_adap + ADP_USB3_CS_2, 1); in usb4_usb3_port_write_allocated_bandwidth()
2160 port->cap_adap + ADP_USB3_CS_2, 1); in usb4_usb3_port_write_allocated_bandwidth()
2164 * usb4_usb3_port_allocate_bandwidth() - Allocate bandwidth for USB3
2212 * usb4_usb3_port_release_bandwidth() - Release allocated USB3 bandwidth
2262 if (!tb_switch_is_usb4(port->sw)) in is_usb4_dpin()
2268 * usb4_dp_port_set_cm_id() - Assign CM ID to the DP IN adapter
2273 * otherwise. Speficially returns %-EOPNOTSUPP if the @port does not
2282 return -EOPNOTSUPP; in usb4_dp_port_set_cm_id()
2285 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_set_cm_id()
2293 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_set_cm_id()
2297 * usb4_dp_port_bandwidth_mode_supported() - Is the bandwidth allocation mode
2313 port->cap_adap + DP_LOCAL_CAP, 1); in usb4_dp_port_bandwidth_mode_supported()
2321 * usb4_dp_port_bandwidth_mode_enabled() - Is the bandwidth allocation mode
2337 port->cap_adap + ADP_DP_CS_8, 1); in usb4_dp_port_bandwidth_mode_enabled()
2345 * usb4_dp_port_set_cm_bandwidth_mode_supported() - Set/clear CM support for
2352 * otherwise. Specifically returns %-OPNOTSUPP if the passed in adapter
2362 return -EOPNOTSUPP; in usb4_dp_port_set_cm_bandwidth_mode_supported()
2365 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_set_cm_bandwidth_mode_supported()
2375 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_set_cm_bandwidth_mode_supported()
2379 * usb4_dp_port_group_id() - Return Group ID assigned for the adapter
2384 * %-EOPNOTSUPP is returned.
2392 return -EOPNOTSUPP; in usb4_dp_port_group_id()
2395 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_group_id()
2403 * usb4_dp_port_set_group_id() - Set adapter Group ID
2409 * Specifically returns %-EOPNOTSUPP if the adapter does not support
2418 return -EOPNOTSUPP; in usb4_dp_port_set_group_id()
2421 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_set_group_id()
2429 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_set_group_id()
2433 * usb4_dp_port_nrd() - Read non-reduced rate and lanes
2435 * @rate: Non-reduced rate in Mb/s is placed here
2436 * @lanes: Non-reduced lanes are placed here
2438 * Reads the non-reduced rate and lanes from the DP IN adapter. Returns
2440 * %-EOPNOTSUPP if the adapter does not support this.
2448 return -EOPNOTSUPP; in usb4_dp_port_nrd()
2451 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_nrd()
2456 switch (tmp) { in usb4_dp_port_nrd()
2472 switch (tmp) { in usb4_dp_port_nrd()
2488 * usb4_dp_port_set_nrd() - Set non-reduced rate and lanes
2490 * @rate: Non-reduced rate in Mb/s
2491 * @lanes: Non-reduced lanes
2494 * the non-reduced values for the DP IN adapter. Returns %0 in success
2496 * %-EOPNOTSUPP is returned.
2504 return -EOPNOTSUPP; in usb4_dp_port_set_nrd()
2507 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_set_nrd()
2513 switch (rate) { in usb4_dp_port_set_nrd()
2529 return -EINVAL; in usb4_dp_port_set_nrd()
2534 switch (lanes) { in usb4_dp_port_set_nrd()
2544 return -EINVAL; in usb4_dp_port_set_nrd()
2548 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_set_nrd()
2552 * usb4_dp_port_granularity() - Return granularity for the bandwidth values
2556 * not support bandwidth allocation mode returns %-EOPNOTSUPP and negative
2565 return -EOPNOTSUPP; in usb4_dp_port_granularity()
2568 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_granularity()
2575 switch (val) { in usb4_dp_port_granularity()
2584 return -EINVAL; in usb4_dp_port_granularity()
2588 * usb4_dp_port_set_granularity() - Set granularity for the bandwidth values
2594 * adapter does not support this %-EOPNOTSUPP is returned.
2602 return -EOPNOTSUPP; in usb4_dp_port_set_granularity()
2605 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_set_granularity()
2611 switch (granularity) { in usb4_dp_port_set_granularity()
2622 return -EINVAL; in usb4_dp_port_set_granularity()
2626 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_set_granularity()
2630 * usb4_dp_port_set_estimated_bandwidth() - Set estimated bandwidth
2637 * and negative errno otherwise. Specifically returns %-EOPNOTSUPP if
2646 return -EOPNOTSUPP; in usb4_dp_port_set_estimated_bandwidth()
2654 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_set_estimated_bandwidth()
2662 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_set_estimated_bandwidth()
2666 * usb4_dp_port_allocated_bandwidth() - Return allocated bandwidth
2679 return -EOPNOTSUPP; in usb4_dp_port_allocated_bandwidth()
2687 port->cap_adap + DP_STATUS, 1); in usb4_dp_port_allocated_bandwidth()
2703 port->cap_adap + ADP_DP_CS_2, 1); in __usb4_dp_port_set_cm_ack()
2713 port->cap_adap + ADP_DP_CS_2, 1); in __usb4_dp_port_set_cm_ack()
2735 port->cap_adap + ADP_DP_CS_8, 1); in usb4_dp_port_wait_and_clear_cm_ack()
2746 return -ETIMEDOUT; in usb4_dp_port_wait_and_clear_cm_ack()
2749 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_wait_and_clear_cm_ack()
2755 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_wait_and_clear_cm_ack()
2759 * usb4_dp_port_allocate_bandwidth() - Set allocated bandwidth
2773 return -EOPNOTSUPP; in usb4_dp_port_allocate_bandwidth()
2781 port->cap_adap + DP_STATUS, 1); in usb4_dp_port_allocate_bandwidth()
2789 port->cap_adap + DP_STATUS, 1); in usb4_dp_port_allocate_bandwidth()
2801 * usb4_dp_port_requested_bandwidth() - Read requested bandwidth
2806 * error returns negative errno. Specifically returns %-EOPNOTSUPP if
2816 return -EOPNOTSUPP; in usb4_dp_port_requested_bandwidth()
2824 port->cap_adap + ADP_DP_CS_8, 1); in usb4_dp_port_requested_bandwidth()
2829 return -ENODATA; in usb4_dp_port_requested_bandwidth()
2835 * usb4_pci_port_set_ext_encapsulation() - Enable/disable extended encapsulation
2849 return -EINVAL; in usb4_pci_port_set_ext_encapsulation()
2852 port->cap_adap + ADP_PCIE_CS_1, 1); in usb4_pci_port_set_ext_encapsulation()
2862 port->cap_adap + ADP_PCIE_CS_1, 1); in usb4_pci_port_set_ext_encapsulation()