Lines Matching +full:non +full:- +full:negative

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
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
307 * Returns %0 in success and negative errno otherwise.
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
583 * Returns %0 in success and negative errno if there was a failure.
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
648 * running. In case of failure returns negative errno.
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
681 * and the status code is placed in @status. Returns negative errno in case
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
728 * Returns %0 on success and negative errno otherwise.
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()
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
1029 * Return %0 in case of success and negative errno in case of failure.
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
1188 * the link type. Returns %0 in success and negative errno in failure.
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()
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
1401 * Returns %0 in case of success and negative errno if there was an
1410 * usb4_port_router_online() - Put the USB4 port back to online
1421 * usb4_port_enumerate_retimers() - Send RT broadcast transaction
1426 * %0 in case of success and negative errno if there was an error.
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_asym_supported() - If the port supports asymmetric link
1468 if (!port->cap_usb4) in usb4_port_asym_supported()
1471 if (tb_port_read(port, &val, TB_CFG_PORT, port->cap_usb4 + PORT_CS_18, 1)) in usb4_port_asym_supported()
1478 * usb4_port_asym_set_link_width() - Set link width to asymmetric or symmetric
1490 if (!port->cap_phy) in usb4_port_asym_set_link_width()
1491 return -EINVAL; in usb4_port_asym_set_link_width()
1494 port->cap_phy + LANE_ADP_CS_1, 1); in usb4_port_asym_set_link_width()
1513 return -EINVAL; in usb4_port_asym_set_link_width()
1517 port->cap_phy + LANE_ADP_CS_1, 1); in usb4_port_asym_set_link_width()
1521 * usb4_port_asym_start() - Start symmetry change and wait for completion
1528 * Returns %0 in case of success, %-ETIMEDOUT if case of timeout or
1529 * a negative errno in case of a failure.
1537 port->cap_usb4 + PORT_CS_19, 1); in usb4_port_asym_start()
1545 port->cap_usb4 + PORT_CS_19, 1); in usb4_port_asym_start()
1553 ret = usb4_port_wait_for_bit(port, port->cap_usb4 + PORT_CS_19, in usb4_port_asym_start()
1559 return usb4_port_wait_for_bit(port, port->cap_usb4 + PORT_CS_18, in usb4_port_asym_start()
1564 * usb4_port_margining_caps() - Read USB4 port marginig capabilities
1584 * usb4_port_hw_margin() - Run hardware lane margining on port
1627 * usb4_port_sw_margin() - Run software lane margining on port
1637 * success and negative errno otherwise.
1663 * usb4_port_sw_margin_errors() - Read the software margining error counters
1668 * Returns %0 in success and negative errno otherwise.
1692 * usb4_port_retimer_set_inbound_sbtx() - Enable sideband channel transactions
1706 if (ret != -ENODEV) in usb4_port_retimer_set_inbound_sbtx()
1719 * usb4_port_retimer_unset_inbound_sbtx() - Disable sideband channel transactions
1733 * usb4_port_retimer_read() - Read from retimer sideband registers
1743 * present at given @index returns %-ENODEV. In any other failure
1744 * returns negative errno.
1754 * usb4_port_retimer_write() - Write to retimer sideband registers
1763 * is no retimer present at given @index returns %-ENODEV. In any other
1764 * failure returns negative errno.
1774 * usb4_port_retimer_is_last() - Is the retimer last on-board retimer
1779 * Type-C port) this function returns %1. If it is not returns %0. If
1780 * the retimer is not present returns %-ENODEV. Otherwise returns
1781 * negative errno.
1799 * usb4_port_retimer_nvm_sector_size() - Read retimer NVM sector size
1805 * upgrade for example. Returns sector size in bytes or negative errno
1806 * in case of error. Specifically returns %-ENODEV if there is no
1825 * usb4_port_retimer_nvm_set_offset() - Set NVM write offset
1833 * Returns %0 in success and negative errno if there was a failure.
1864 struct tb_port *port = info->port; in usb4_port_retimer_nvm_write_next_block()
1865 u8 index = info->index; in usb4_port_retimer_nvm_write_next_block()
1878 * usb4_port_retimer_nvm_write() - Write to retimer NVM
1886 * upgrade. Returns %0 if the data was written successfully and negative
1887 * errno in case of failure. Specifically returns %-ENODEV if there is
1905 * usb4_port_retimer_nvm_authenticate() - Start retimer NVM upgrade
1930 * usb4_port_retimer_nvm_authenticate_status() - Read status of NVM upgrade
1940 * reading the status fails, returns negative errno.
1959 case -EAGAIN: in usb4_port_retimer_nvm_authenticate_status()
1977 struct tb_port *port = info->port; in usb4_port_retimer_nvm_read_block()
1978 u8 index = info->index; in usb4_port_retimer_nvm_read_block()
2000 * usb4_port_retimer_nvm_read() - Read contents of retimer NVM
2008 * read was successful and negative errno in case of failure.
2009 * Specifically returns %-ENODEV if there is no retimer at @index.
2024 if (port->max_bw) in usb4_usb3_port_max_bandwidth()
2025 return min(bw, port->max_bw); in usb4_usb3_port_max_bandwidth()
2030 * usb4_usb3_port_max_link_rate() - Maximum support USB3 link rate
2034 * Negative errno in case of error.
2042 return -EINVAL; in usb4_usb3_port_max_link_rate()
2045 port->cap_adap + ADP_USB3_CS_4, 1); in usb4_usb3_port_max_link_rate()
2061 return -EINVAL; in usb4_usb3_port_cm_request()
2062 if (tb_route(port->sw)) in usb4_usb3_port_cm_request()
2063 return -EINVAL; in usb4_usb3_port_cm_request()
2066 port->cap_adap + ADP_USB3_CS_2, 1); in usb4_usb3_port_cm_request()
2076 port->cap_adap + ADP_USB3_CS_2, 1); in usb4_usb3_port_cm_request()
2085 return usb4_port_wait_for_bit(port, port->cap_adap + ADP_USB3_CS_1, in usb4_usb3_port_cm_request()
2111 /* 1 uframe is 1/8 ms (125 us) -> 1 / 8000 s */ in mbps_to_usb3_bw()
2124 port->cap_adap + ADP_USB3_CS_2, 1); in usb4_usb3_port_read_allocated_bandwidth()
2129 port->cap_adap + ADP_USB3_CS_3, 1); in usb4_usb3_port_read_allocated_bandwidth()
2145 * usb4_usb3_port_allocated_bandwidth() - Bandwidth allocated for USB3
2151 * @downstream_bw in Mb/s. Returns %0 in case of success and negative
2178 port->cap_adap + ADP_USB3_CS_1, 1); in usb4_usb3_port_read_consumed_bandwidth()
2183 port->cap_adap + ADP_USB3_CS_3, 1); in usb4_usb3_port_read_consumed_bandwidth()
2215 return -EINVAL; in usb4_usb3_port_write_allocated_bandwidth()
2218 port->cap_adap + ADP_USB3_CS_3, 1); in usb4_usb3_port_write_allocated_bandwidth()
2228 port->cap_adap + ADP_USB3_CS_2, 1); in usb4_usb3_port_write_allocated_bandwidth()
2237 port->cap_adap + ADP_USB3_CS_2, 1); in usb4_usb3_port_write_allocated_bandwidth()
2241 * usb4_usb3_port_allocate_bandwidth() - Allocate bandwidth for USB3
2254 * Returns %0 in case of success and negative errno if there was a
2289 * usb4_usb3_port_release_bandwidth() - Release allocated USB3 bandwidth
2297 * Returns 0% in success and negative errno in case of failure.
2339 if (!tb_switch_is_usb4(port->sw)) in is_usb4_dpin()
2345 * usb4_dp_port_set_cm_id() - Assign CM ID to the DP IN adapter
2349 * Sets CM ID for the @port. Returns %0 on success and negative errno
2350 * otherwise. Speficially returns %-EOPNOTSUPP if the @port does not
2359 return -EOPNOTSUPP; in usb4_dp_port_set_cm_id()
2362 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_set_cm_id()
2370 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_set_cm_id()
2374 * usb4_dp_port_bandwidth_mode_supported() - Is the bandwidth allocation mode
2390 port->cap_adap + DP_LOCAL_CAP, 1); in usb4_dp_port_bandwidth_mode_supported()
2398 * usb4_dp_port_bandwidth_mode_enabled() - Is the bandwidth allocation mode
2414 port->cap_adap + ADP_DP_CS_8, 1); in usb4_dp_port_bandwidth_mode_enabled()
2422 * usb4_dp_port_set_cm_bandwidth_mode_supported() - Set/clear CM support for
2428 * of the DP IN adapter. Returns %0 in success and negative errno
2429 * otherwise. Specifically returns %-OPNOTSUPP if the passed in adapter
2439 return -EOPNOTSUPP; in usb4_dp_port_set_cm_bandwidth_mode_supported()
2442 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_set_cm_bandwidth_mode_supported()
2452 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_set_cm_bandwidth_mode_supported()
2456 * usb4_dp_port_group_id() - Return Group ID assigned for the adapter
2461 * %-EOPNOTSUPP is returned.
2469 return -EOPNOTSUPP; in usb4_dp_port_group_id()
2472 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_group_id()
2480 * usb4_dp_port_set_group_id() - Set adapter Group ID
2485 * Returns %0 in case of success and negative errno otherwise.
2486 * Specifically returns %-EOPNOTSUPP if the adapter does not support
2495 return -EOPNOTSUPP; in usb4_dp_port_set_group_id()
2498 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_set_group_id()
2506 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_set_group_id()
2510 * usb4_dp_port_nrd() - Read non-reduced rate and lanes
2512 * @rate: Non-reduced rate in Mb/s is placed here
2513 * @lanes: Non-reduced lanes are placed here
2515 * Reads the non-reduced rate and lanes from the DP IN adapter. Returns
2516 * %0 in success and negative errno otherwise. Specifically returns
2517 * %-EOPNOTSUPP if the adapter does not support this.
2525 return -EOPNOTSUPP; in usb4_dp_port_nrd()
2528 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_nrd()
2565 * usb4_dp_port_set_nrd() - Set non-reduced rate and lanes
2567 * @rate: Non-reduced rate in Mb/s
2568 * @lanes: Non-reduced lanes
2571 * the non-reduced values for the DP IN adapter. Returns %0 in success
2572 * and negative errno otherwise. If the adapter does not support this
2573 * %-EOPNOTSUPP is returned.
2581 return -EOPNOTSUPP; in usb4_dp_port_set_nrd()
2584 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_set_nrd()
2606 return -EINVAL; in usb4_dp_port_set_nrd()
2621 return -EINVAL; in usb4_dp_port_set_nrd()
2625 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_set_nrd()
2629 * usb4_dp_port_granularity() - Return granularity for the bandwidth values
2633 * not support bandwidth allocation mode returns %-EOPNOTSUPP and negative
2642 return -EOPNOTSUPP; in usb4_dp_port_granularity()
2645 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_granularity()
2661 return -EINVAL; in usb4_dp_port_granularity()
2665 * usb4_dp_port_set_granularity() - Set granularity for the bandwidth values
2670 * bandwidth. Returns %0 in success and negative errno otherwise. If the
2671 * adapter does not support this %-EOPNOTSUPP is returned.
2679 return -EOPNOTSUPP; in usb4_dp_port_set_granularity()
2682 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_set_granularity()
2699 return -EINVAL; in usb4_dp_port_set_granularity()
2703 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_set_granularity()
2707 * usb4_dp_port_set_estimated_bandwidth() - Set estimated bandwidth
2714 * and negative errno otherwise. Specifically returns %-EOPNOTSUPP if
2723 return -EOPNOTSUPP; in usb4_dp_port_set_estimated_bandwidth()
2731 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_set_estimated_bandwidth()
2739 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_set_estimated_bandwidth()
2743 * usb4_dp_port_allocated_bandwidth() - Return allocated bandwidth
2747 * account the programmed granularity). Returns negative errno in case
2756 return -EOPNOTSUPP; in usb4_dp_port_allocated_bandwidth()
2764 port->cap_adap + DP_STATUS, 1); in usb4_dp_port_allocated_bandwidth()
2780 port->cap_adap + ADP_DP_CS_2, 1); in __usb4_dp_port_set_cm_ack()
2790 port->cap_adap + ADP_DP_CS_2, 1); in __usb4_dp_port_set_cm_ack()
2812 port->cap_adap + ADP_DP_CS_8, 1); in usb4_dp_port_wait_and_clear_cm_ack()
2823 return -ETIMEDOUT; in usb4_dp_port_wait_and_clear_cm_ack()
2826 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_wait_and_clear_cm_ack()
2832 port->cap_adap + ADP_DP_CS_2, 1); in usb4_dp_port_wait_and_clear_cm_ack()
2836 * usb4_dp_port_allocate_bandwidth() - Set allocated bandwidth
2842 * success and negative errno in case of error.
2850 return -EOPNOTSUPP; in usb4_dp_port_allocate_bandwidth()
2858 port->cap_adap + DP_STATUS, 1); in usb4_dp_port_allocate_bandwidth()
2866 port->cap_adap + DP_STATUS, 1); in usb4_dp_port_allocate_bandwidth()
2878 * usb4_dp_port_requested_bandwidth() - Read requested bandwidth
2883 * error returns negative errno. Specifically returns %-EOPNOTSUPP if
2893 return -EOPNOTSUPP; in usb4_dp_port_requested_bandwidth()
2901 port->cap_adap + ADP_DP_CS_8, 1); in usb4_dp_port_requested_bandwidth()
2906 return -ENODATA; in usb4_dp_port_requested_bandwidth()
2912 * usb4_pci_port_set_ext_encapsulation() - Enable/disable extended encapsulation
2918 * success and negative errno otherwise.
2926 return -EINVAL; in usb4_pci_port_set_ext_encapsulation()
2929 port->cap_adap + ADP_PCIE_CS_1, 1); in usb4_pci_port_set_ext_encapsulation()
2939 port->cap_adap + ADP_PCIE_CS_1, 1); in usb4_pci_port_set_ext_encapsulation()