id
stringlengths
4
63
text
stringlengths
153
8.81M
tb_port_lane_bonding_enable(9)
NAME tb_port_lane_bonding_enable - Enable bonding on port SYNOPSIS int tb_port_lane_bonding_enable (struct tb_port *port ); ARGUMENTS port port to enable DESCRIPTION Enable bonding by setting the link width of the port and the other port in case of dual link port. Does not wait for the link to actually reac...
tb_port_next_cap(9)
NAME tb_port_next_cap - Return next capability in the linked list SYNOPSIS int tb_port_next_cap (struct tb_port *port , unsigned int offset ); ARGUMENTS port Port to find the capability for offset Previous capability offset (0 for start) DESCRIPTION Finds dword offset of the next capability in po...
tb_port_path_direction_downstream(9)
NAME tb_port_path_direction_downstream - Checks if path is directed downstream SYNOPSIS bool tb_port_path_direction_downstream (const struct tb_port *src , const struct tb_port *dst ); ARGUMENTS src Source adapter dst Destination adapter RETURN true only if the specified path from source adap...
tb_port_release_in_hopid(9)
NAME tb_port_release_in_hopid - Release allocated input HopID from port SYNOPSIS void tb_port_release_in_hopid (struct tb_port *port , int hopid ); ARGUMENTS port Port whose HopID to release hopid HopID to release SEE ALSO Kernel file ./drivers/thunderbolt/switch.c tb_switch_nvm_read(9), tb_...
tb_port_release_out_hopid(9)
NAME tb_port_release_out_hopid - Release allocated output HopID from port SYNOPSIS void tb_port_release_out_hopid (struct tb_port *port , int hopid ); ARGUMENTS port Port whose HopID to release hopid HopID to release SEE ALSO Kernel file ./drivers/thunderbolt/switch.c tb_switch_nvm_read(9), ...
tb_port_set_lane_bonding(9)
NAME tb_port_set_lane_bonding - Enable/disable lane bonding SYNOPSIS int tb_port_set_lane_bonding (struct tb_port *port , bool bonding ); ARGUMENTS port Lane adapter bonding enable/disable bonding DESCRIPTION Enables or disables lane bonding. This should be called after target link width has been ...
tb_port_set_link_width(9)
NAME tb_port_set_link_width - Set target link width of the lane adapter SYNOPSIS int tb_port_set_link_width (struct tb_port *port , enum tb_link_width width ); ARGUMENTS port Lane adapter width Target link width DESCRIPTION Sets the target link width of the lane adapter to width. Does not enable...
tb_port_state(9)
NAME tb_port_state - get connectedness state of a port SYNOPSIS int tb_port_state (struct tb_port *port ); ARGUMENTS port the port to check DESCRIPTION The port must have a TB_CAP_PHY (i.e. it should be a real port). RETURN enum tb_port_state or negative error code on failure. SEE ALSO Kernel file ./driv...
tb_port_unlock(9)
NAME tb_port_unlock - Unlock downstream port SYNOPSIS int tb_port_unlock (struct tb_port *port ); ARGUMENTS port Port to unlock DESCRIPTION Needed for USB4 but can be called for any CIO/USB4 ports. Makes the downstream router accessible for CM. RETURN 0 on success, negative errno otherwise. SEE ALSO Kernel ...
tb_port_update_credits(9)
NAME tb_port_update_credits - Re-read port total credits SYNOPSIS int tb_port_update_credits (struct tb_port *port ); ARGUMENTS port Port to update DESCRIPTION After the link is bonded (or bonding was disabled) the port total credits may change, so this function needs to be called to re-read the credits. Upda...
tb_port_wait_for_link_width(9)
NAME tb_port_wait_for_link_width - Wait until link reaches specific width SYNOPSIS int tb_port_wait_for_link_width (struct tb_port *port , unsigned int width , int timeout_msec ); ARGUMENTS port Port to wait for width Expected link width (bitmask) timeout_msec Timeout i...
tb_port_width_supported(9)
NAME tb_port_width_supported - Is the given link width supported SYNOPSIS bool tb_port_width_supported (struct tb_port *port , unsigned int width ); ARGUMENTS port Port to check width Widths to check (bitmask) DESCRIPTION Can be called to any lane adapter. Checks if given width is supported by t...
tb_property_add_data(9)
NAME tb_property_add_data - Adds arbitrary data property to directory SYNOPSIS int tb_property_add_data (struct tb_property_dir *parent , const char *key , const void *buf , size_t buflen ); ARGUMENTS parent Directory to add the property key Key for the property buf Data buffer to...
tb_property_add_dir(9)
NAME tb_property_add_dir - Adds a directory to the parent directory SYNOPSIS int tb_property_add_dir (struct tb_property_dir *parent , const char *key , struct tb_property_dir *dir ); ARGUMENTS parent Directory to add the property key Key for the property dir Directory to add RET...
tb_property_add_immediate(9)
NAME tb_property_add_immediate - Add immediate property to directory SYNOPSIS int tb_property_add_immediate (struct tb_property_dir *parent , const char *key , u32 value ); ARGUMENTS parent Directory to add the property key Key for the property value Immediate value to store with th...
tb_property_add_text(9)
NAME tb_property_add_text - Adds string property to directory SYNOPSIS int tb_property_add_text (struct tb_property_dir *parent , const char *key , const char *text ); ARGUMENTS parent Directory to add the property key Key for the property text String to add DESCRIPTION Function t...
tb_property_copy_dir(9)
NAME tb_property_copy_dir - Take a deep copy of directory SYNOPSIS struct tb_property_dir * tb_property_copy_dir (const struct tb_property_dir *dir ); ARGUMENTS dir Directory to copy DESCRIPTION The resulting directory needs to be released by calling tb_property_free_dir. RETURN Pointer to struct tb_propert...
tb_property_create_dir(9)
NAME tb_property_create_dir - Creates new property directory SYNOPSIS struct tb_property_dir * tb_property_create_dir (const uuid_t *uuid ); ARGUMENTS uuid UUID used to identify the particular directory DESCRIPTION Creates new, empty property directory. If uuid is NULL then the directory is assumed to be root...
tb_property_find(9)
NAME tb_property_find - Find a property from a directory SYNOPSIS struct tb_property * tb_property_find (struct tb_property_dir *dir , const char *key , enum tb_property_type type ); ARGUMENTS dir Directory where the property is searched key Key to look for type Type of the prop...
tb_property_format_dir(9)
NAME tb_property_format_dir - Formats directory to the packed XDomain format SYNOPSIS ssize_t tb_property_format_dir (const struct tb_property_dir *dir , u32 *block , size_t block_len ); ARGUMENTS dir Directory to format block Property block where the packed data is placed block_len Le...
tb_property_free_dir(9)
NAME tb_property_free_dir - Release memory allocated for property directory SYNOPSIS void tb_property_free_dir (struct tb_property_dir *dir ); ARGUMENTS dir Directory to release DESCRIPTION This will release all the memory the directory occupies including all descendants. It is OK to pass NULL dir, then the ...
tb_property_get_next(9)
NAME tb_property_get_next - Get next property from directory SYNOPSIS struct tb_property * tb_property_get_next (struct tb_property_dir *dir , struct tb_property *prev ); ARGUMENTS dir Directory holding properties prev Previous property in the directory (NULL returns the first) RETURN Pointer ...
tb_property_parse_dir(9)
NAME tb_property_parse_dir - Parses properties from given property block SYNOPSIS struct tb_property_dir * tb_property_parse_dir (const u32 *block , size_t block_len ); ARGUMENTS block Property block to parse block_len Number of dword elements in the property block DESCRIPTION This function parses ...
tb_property_remove(9)
NAME tb_property_remove - Removes property from a parent directory SYNOPSIS void tb_property_remove (struct tb_property *property ); ARGUMENTS property Property to remove DESCRIPTION Note memory for property is released as well so it is not allowed to touch the object after call to this function. SEE ALSO Kernel...
tb_register_property_dir(9)
NAME tb_register_property_dir - Register property directory to the host SYNOPSIS int tb_register_property_dir (const char *key , struct tb_property_dir *dir ); ARGUMENTS key Key (name) of the directory to add dir Directory to add DESCRIPTION Service drivers can use this function to add new pr...
tb_register_protocol_handler(9)
NAME tb_register_protocol_handler - Register protocol handler SYNOPSIS int tb_register_protocol_handler (struct tb_protocol_handler *handler ); ARGUMENTS handler Handler to register DESCRIPTION This allows XDomain service drivers to hook into incoming XDomain messages. After this function is called the service ...
tb_register_service_driver(9)
NAME tb_register_service_driver - Register XDomain service driver SYNOPSIS int tb_register_service_driver (struct tb_service_driver *drv ); ARGUMENTS drv Driver to register DESCRIPTION Registers new service driver from drv to the bus. RETURN 0 on success, negative errno otherwise. SEE ALSO Kernel file ./d...
tb_retimer_debugfs_init(9)
NAME tb_retimer_debugfs_init - Add debugfs directory for retimer SYNOPSIS void tb_retimer_debugfs_init (struct tb_retimer *rt ); ARGUMENTS rt Pointer to retimer structure DESCRIPTION Adds and populates retimer debugfs directory. SEE ALSO Kernel file ./drivers/thunderbolt/debugfs.c struct tb_margining(9), t...
tb_retimer_debugfs_remove(9)
NAME tb_retimer_debugfs_remove - Remove retimer debugfs directory SYNOPSIS void tb_retimer_debugfs_remove (struct tb_retimer *rt ); ARGUMENTS rt Pointer to retimer structure DESCRIPTION Removes the retimer debugfs directory along with its contents. SEE ALSO Kernel file ./drivers/thunderbolt/debugfs.c struc...
tb_retimer_nvm_read(9)
NAME tb_retimer_nvm_read - Read contents of retimer NVM SYNOPSIS int tb_retimer_nvm_read (struct tb_retimer *rt , unsigned int address , void *buf , size_t size ); ARGUMENTS rt Retimer device address NVM address (in bytes) to start reading buf Data read from NVM is stored here ...
tb_retimer_remove_all(9)
NAME tb_retimer_remove_all - Remove all retimers under port SYNOPSIS void tb_retimer_remove_all (struct tb_port *port ); ARGUMENTS port USB4 port whose retimers to remove DESCRIPTION This removes all previously added retimers under port. SEE ALSO Kernel file ./drivers/thunderbolt/retimer.c tb_retimer_nvm_rea...
tb_retimer_scan(9)
NAME tb_retimer_scan - Scan for on-board retimers under port SYNOPSIS int tb_retimer_scan (struct tb_port *port , bool add ); ARGUMENTS port USB4 port to scan add If true also registers found retimers DESCRIPTION Brings the sideband into a state where retimers can be accessed. Then tries to ...
tb_ring_alloc_rx(9)
NAME tb_ring_alloc_rx - Allocate DMA ring for receive SYNOPSIS struct tb_ring * tb_ring_alloc_rx (struct tb_nhi *nhi , int hop , int size , unsigned int flags , int e2e_tx_hop , u16 sof_mask , u16 eof_mask , void (*start_poll)(void *) , void *poll_data ); ARGUMENTS nhi Pointer to the NHI the ring is to be all...
tb_ring_alloc_tx(9)
NAME tb_ring_alloc_tx - Allocate DMA ring for transmit SYNOPSIS struct tb_ring * tb_ring_alloc_tx (struct tb_nhi *nhi , int hop , int size , unsigned int flags ); ARGUMENTS nhi Pointer to the NHI the ring is to be allocated hop HopID (ring) to allocate size Number of entries in ...
tb_ring_dma_device(9)
NAME tb_ring_dma_device - Return device used for DMA mapping SYNOPSIS struct device * tb_ring_dma_device (struct tb_ring *ring ); ARGUMENTS ring Ring whose DMA device is retrieved DESCRIPTION Use this function when you are mapping DMA for buffers that are passed to the ring for sending/receiving. RETURN Poin...
tb_ring_poll(9)
NAME tb_ring_poll - Poll one completed frame from the ring SYNOPSIS struct ring_frame * tb_ring_poll (struct tb_ring *ring ); ARGUMENTS ring Ring to poll DESCRIPTION This function can be called when start_poll callback of the ring has been called. It will read one completed frame from the ring and return it t...
tb_ring_poll_complete(9)
NAME tb_ring_poll_complete - Re-start interrupt for the ring SYNOPSIS void tb_ring_poll_complete (struct tb_ring *ring ); ARGUMENTS ring Ring to re-start the interrupt DESCRIPTION This will re-start (unmask) the ring interrupt once the user is done with polling. SEE ALSO Kernel file ./drivers/thunderbolt/nhi...
tb_ring_rx(9)
NAME tb_ring_rx - enqueue a frame on an RX ring SYNOPSIS int tb_ring_rx (struct tb_ring *ring , struct ring_frame *frame ); ARGUMENTS ring Ring to enqueue the frame frame Frame to enqueue DESCRIPTION frame->buffer, frame->buffer_phy have to be set. The buffer must contain at least TB_FRAME_SI...
tb_ring_start(9)
NAME tb_ring_start - enable a ring SYNOPSIS void tb_ring_start (struct tb_ring *ring ); ARGUMENTS ring Ring to start DESCRIPTION Must not be invoked in parallel with tb_ring_stop. SEE ALSO Kernel file ./drivers/thunderbolt/nhi.c tb_ring_poll(9), tb_ring_poll_complete(9), tb_ring_alloc_tx(9), tb_ring_alloc_rx...
tb_ring_stop(9)
NAME tb_ring_stop - shutdown a ring SYNOPSIS void tb_ring_stop (struct tb_ring *ring ); ARGUMENTS ring Ring to stop DESCRIPTION Must not be invoked from a callback. This method will disable the ring. Further calls to tb_ring_tx/tb_ring_rx will return -ESHUTDOWN until ring_stop has been called. All enqueued ...
tb_ring_tx(9)
NAME tb_ring_tx - enqueue a frame on an TX ring SYNOPSIS int tb_ring_tx (struct tb_ring *ring , struct ring_frame *frame ); ARGUMENTS ring Ring the enqueue the frame frame Frame to enqueue DESCRIPTION frame->buffer, frame->buffer_phy, frame->size, frame->eof and frame->sof have to be set. f...
tb_service_debugfs_init(9)
NAME tb_service_debugfs_init - Add debugfs directory for service SYNOPSIS void tb_service_debugfs_init (struct tb_service *svc ); ARGUMENTS svc Thunderbolt service pointer DESCRIPTION Adds debugfs directory for service. SEE ALSO Kernel file ./drivers/thunderbolt/debugfs.c struct tb_margining(9), tb_switch_d...
tb_service_debugfs_remove(9)
NAME tb_service_debugfs_remove - Remove service debugfs directory SYNOPSIS void tb_service_debugfs_remove (struct tb_service *svc ); ARGUMENTS svc Thunderbolt service pointer DESCRIPTION Removes the previously created debugfs directory for svc. SEE ALSO Kernel file ./drivers/thunderbolt/debugfs.c struct tb_...
tb_sw_set_unplugged(9)
NAME tb_sw_set_unplugged - set is_unplugged on switch and downstream switches SYNOPSIS void tb_sw_set_unplugged (struct tb_switch *sw ); ARGUMENTS sw Router to mark unplugged SEE ALSO Kernel file ./drivers/thunderbolt/switch.c tb_switch_nvm_read(9), tb_port_state(9), tb_wait_for_port(9), tb_port_add_nf...
tb_switch_add(9)
NAME tb_switch_add - Add a switch to the domain SYNOPSIS int tb_switch_add (struct tb_switch *sw ); ARGUMENTS sw Switch to add DESCRIPTION This is the last step in adding switch to the domain. It will read identification information from DROM and initializes ports so that they can be used to connect other s...
tb_switch_alloc(9)
NAME tb_switch_alloc - allocate a switch SYNOPSIS struct tb_switch * tb_switch_alloc (struct tb *tb , struct device *parent , u64 route ); ARGUMENTS tb Pointer to the owning domain parent Parent device for this switch route Route string for this switch DESCRIPTION Allocates and in...
tb_switch_alloc_dp_resource(9)
NAME tb_switch_alloc_dp_resource - Allocate available DP resource SYNOPSIS int tb_switch_alloc_dp_resource (struct tb_switch *sw , struct tb_port *in ); ARGUMENTS sw Switch whose DP resource is allocated in DP IN port DESCRIPTION Allocates DP resource for DP tunneling. The resource must be ...
tb_switch_alloc_safe_mode(9)
NAME tb_switch_alloc_safe_mode - allocate a switch that is in safe mode SYNOPSIS struct tb_switch * tb_switch_alloc_safe_mode (struct tb *tb , struct device *parent , u64 route ); ARGUMENTS tb Pointer to the owning domain parent Parent device for this switch route Route string for ...
tb_switch_clx_disable(9)
NAME tb_switch_clx_disable - Disable CLx on upstream port of specified router SYNOPSIS int tb_switch_clx_disable (struct tb_switch *sw ); ARGUMENTS sw Router to disable CLx for DESCRIPTION Disables all CL states of the given router. Can be called on any router and if the states were not enabled already does...
tb_switch_clx_enable(9)
NAME tb_switch_clx_enable - Enable CLx on upstream port of specified router SYNOPSIS int tb_switch_clx_enable (struct tb_switch *sw , unsigned int clx ); ARGUMENTS sw Router to enable CLx for clx The CLx state to enable DESCRIPTION CLx is enabled only if both sides of the link support CL...
tb_switch_clx_init(9)
NAME tb_switch_clx_init - Initialize router CL states SYNOPSIS int tb_switch_clx_init (struct tb_switch *sw ); ARGUMENTS sw Router DESCRIPTION Can be called for any router. Initializes the current CL state by reading it from the hardware. RETURN 0 on success, negative errno otherwise. SEE ALSO Kernel file...
tb_switch_clx_is_enabled(9)
NAME tb_switch_clx_is_enabled - Checks if the CLx is enabled SYNOPSIS bool tb_switch_clx_is_enabled (const struct tb_switch *sw , unsigned int clx ); ARGUMENTS sw Router to check for the CLx clx The CLx states to check for DESCRIPTION Checks if the specified CLx is enabled on the router upst...
tb_switch_clx_is_supported(9)
NAME tb_switch_clx_is_supported - Is CLx supported on this type of router SYNOPSIS bool tb_switch_clx_is_supported (const struct tb_switch *sw ); ARGUMENTS sw The router to check CLx support for RETURN true if CLx is supported, false otherwise. SEE ALSO Kernel file ./drivers/thunderbolt/clx.c tb_port_clx_i...
tb_switch_configuration_valid(9)
NAME tb_switch_configuration_valid - Set the tunneling configuration to be valid SYNOPSIS int tb_switch_configuration_valid (struct tb_switch *sw ); ARGUMENTS sw Router to configure DESCRIPTION Needs to be called before any tunnels can be setup through the router. Can be called to any router. RETURN 0 on s...
tb_switch_configure(9)
NAME tb_switch_configure - Uploads configuration to the switch SYNOPSIS int tb_switch_configure (struct tb_switch *sw ); ARGUMENTS sw Switch to configure DESCRIPTION Call this function before the switch is added to the system. It will upload configuration to the switch and makes it available for the conn...
tb_switch_configure_link(9)
NAME tb_switch_configure_link - Set link configured SYNOPSIS int tb_switch_configure_link (struct tb_switch *sw ); ARGUMENTS sw Switch whose link is configured DESCRIPTION Sets the link upstream from sw configured (from both ends) so that it will not be disconnected when the domain exits sleep. Can be ca...
tb_switch_dealloc_dp_resource(9)
NAME tb_switch_dealloc_dp_resource - De-allocate DP resource SYNOPSIS void tb_switch_dealloc_dp_resource (struct tb_switch *sw , struct tb_port *in ); ARGUMENTS sw Switch whose DP resource is de-allocated in DP IN port DESCRIPTION De-allocates DP resource that was previously allocated for D...
tb_switch_debugfs_init(9)
NAME tb_switch_debugfs_init - Add debugfs entries for router SYNOPSIS void tb_switch_debugfs_init (struct tb_switch *sw ); ARGUMENTS sw Pointer to the router DESCRIPTION Adds debugfs directories and files for given router. SEE ALSO Kernel file ./drivers/thunderbolt/debugfs.c struct tb_margining(9), tb_swit...
tb_switch_debugfs_remove(9)
NAME tb_switch_debugfs_remove - Remove all router debugfs entries SYNOPSIS void tb_switch_debugfs_remove (struct tb_switch *sw ); ARGUMENTS sw Pointer to the router DESCRIPTION Removes all previously added debugfs entries under this router. SEE ALSO Kernel file ./drivers/thunderbolt/debugfs.c struct tb_mar...
tb_switch_depth(9)
NAME tb_switch_depth - Returns depth of the connected router SYNOPSIS int tb_switch_depth (const struct tb_switch *sw ); ARGUMENTS sw Router RETURN Router depth level as a number. SEE ALSO Kernel file ./drivers/thunderbolt/tb.h struct tb_nvm(9), enum tb_switch_tmu_mode(9), struct tb_switch_tmu(9), s...
tb_switch_downstream_port(9)
NAME tb_switch_downstream_port - Return downstream facing port of parent router SYNOPSIS struct tb_port * tb_switch_downstream_port (struct tb_switch *sw ); ARGUMENTS sw Device router pointer DESCRIPTION Call only for device routers. RETURN Pointer to struct tb_port or NULL in case of failure. SEE ALSO Ke...
tb_switch_find_by_link_depth(9)
NAME tb_switch_find_by_link_depth - Find switch by link and depth SYNOPSIS struct tb_switch * tb_switch_find_by_link_depth (struct tb *tb , u8 link , u8 depth ); ARGUMENTS tb Domain the switch belongs link Link number the switch is connected depth Depth of the switch in link DES...
tb_switch_find_by_route(9)
NAME tb_switch_find_by_route - Find switch by route string SYNOPSIS struct tb_switch * tb_switch_find_by_route (struct tb *tb , u64 route ); ARGUMENTS tb Domain the switch belongs route Route string to look for DESCRIPTION Returned switch has reference count increased so the caller needs to ca...
tb_switch_find_by_uuid(9)
NAME tb_switch_find_by_uuid - Find switch by UUID SYNOPSIS struct tb_switch * tb_switch_find_by_uuid (struct tb *tb , const uuid_t *uuid ); ARGUMENTS tb Domain the switch belongs uuid UUID to look for DESCRIPTION Returned switch has reference count increased so the caller needs to call tb_swi...
tb_switch_find_cap(9)
NAME tb_switch_find_cap - Find switch capability SYNOPSIS int tb_switch_find_cap (struct tb_switch *sw , enum tb_switch_cap cap ); ARGUMENTS sw Switch to find the capability for cap Capability to look RETURN * Offset to the start of capability - On success. * -ENOENT - If no such capability...
tb_switch_find_port(9)
NAME tb_switch_find_port - return the first port of @type on @sw or NULL SYNOPSIS struct tb_port * tb_switch_find_port (struct tb_switch *sw , enum tb_port_type type ); ARGUMENTS sw Switch to find the port from type Port type to look for RETURN Pointer to struct tb_port, NULL if not found. S...
tb_switch_find_vse_cap(9)
NAME tb_switch_find_vse_cap - Find switch vendor specific capability SYNOPSIS int tb_switch_find_vse_cap (struct tb_switch *sw , enum tb_switch_vse_cap vsec ); ARGUMENTS sw Switch to find the capability for vsec Vendor specific capability to look DESCRIPTION This function enumerates vendor sp...
tb_switch_for_each_port(9)
NAME tb_switch_for_each_port - Iterate over each switch port SYNOPSIS tb_switch_for_each_port (sw , p ); ARGUMENTS sw Switch whose ports to iterate p Port used as iterator DESCRIPTION Iterates over each switch port skipping the control port (port 0). SEE ALSO Kernel file ./drivers/thund...
tb_switch_is_icm(9)
NAME tb_switch_is_icm - Is the switch handled by ICM firmware SYNOPSIS bool tb_switch_is_icm (const struct tb_switch *sw ); ARGUMENTS sw Switch to check DESCRIPTION In case there is a need to differentiate whether ICM firmware or SW CM is handling sw this function can be called. It is valid to call this aft...
tb_switch_is_usb4(9)
NAME tb_switch_is_usb4 - Is the switch USB4 compliant SYNOPSIS bool tb_switch_is_usb4 (const struct tb_switch *sw ); ARGUMENTS sw Switch to check RETURN true if the sw is USB4 compliant router, false otherwise. SEE ALSO Kernel file ./drivers/thunderbolt/tb.h struct tb_nvm(9), enum tb_switch_tmu_mode(...
tb_switch_lane_bonding_disable(9)
NAME tb_switch_lane_bonding_disable - Disable lane bonding SYNOPSIS int tb_switch_lane_bonding_disable (struct tb_switch *sw ); ARGUMENTS sw Switch whose lane bonding to disable DESCRIPTION Disables lane bonding between sw and parent. This can be called even if lanes were not bonded originally. RETURN 0 on...
tb_switch_lane_bonding_enable(9)
NAME tb_switch_lane_bonding_enable - Enable lane bonding SYNOPSIS int tb_switch_lane_bonding_enable (struct tb_switch *sw ); ARGUMENTS sw Switch to enable lane bonding DESCRIPTION Connection manager can call this function to enable lane bonding of a switch. If conditions are correct and both switches suppor...
tb_switch_next_cap(9)
NAME tb_switch_next_cap - Return next capability in the linked list SYNOPSIS int tb_switch_next_cap (struct tb_switch *sw , unsigned int offset ); ARGUMENTS sw Switch to find the capability for offset Previous capability offset (0 for start) DESCRIPTION Finds dword offset of the next capability...
tb_switch_nvm_read(9)
NAME tb_switch_nvm_read - Read router NVM SYNOPSIS int tb_switch_nvm_read (struct tb_switch *sw , unsigned int address , void *buf , size_t size ); ARGUMENTS sw Router whose NVM to read address Start address on the NVM buf Buffer where the read data is copied size S...
tb_switch_pcie_l1_enable(9)
NAME tb_switch_pcie_l1_enable - Enable PCIe link to enter L1 state SYNOPSIS int tb_switch_pcie_l1_enable (struct tb_switch *sw ); ARGUMENTS sw Router to enable PCIe L1 DESCRIPTION For Titan Ridge switch to enter CLx state, its PCIe bridges shall enable entry to PCIe L1 state. Shall be called after the ups...
tb_switch_query_dp_resource(9)
NAME tb_switch_query_dp_resource - Query availability of DP resource SYNOPSIS bool tb_switch_query_dp_resource (struct tb_switch *sw , struct tb_port *in ); ARGUMENTS sw Switch whose DP resource is queried in DP IN port DESCRIPTION Queries availability of DP resource for DP tunneling using ...
tb_switch_remove(9)
NAME tb_switch_remove - Remove and release a switch SYNOPSIS void tb_switch_remove (struct tb_switch *sw ); ARGUMENTS sw Switch to remove DESCRIPTION This will remove the switch from the domain and release it after last reference count drops to zero. If there are switches connected below this switch, they w...
tb_switch_reset(9)
NAME tb_switch_reset - Perform reset to the router SYNOPSIS int tb_switch_reset (struct tb_switch *sw ); ARGUMENTS sw Router to reset DESCRIPTION Issues reset to the router sw. Can be used for any router. For host routers, resets all the downstream ports and cleans up path config spaces accordingly. For dev...
tb_switch_resume(9)
NAME tb_switch_resume - Resume a switch after sleep SYNOPSIS int tb_switch_resume (struct tb_switch *sw , bool runtime ); ARGUMENTS sw Switch to resume runtime Is this resume from runtime suspend or system sleep DESCRIPTION Resumes and re-enumerates router (and all its children), if still plugg...
tb_switch_set_link_width(9)
NAME tb_switch_set_link_width - Configure router link width SYNOPSIS int tb_switch_set_link_width (struct tb_switch *sw , enum tb_link_width width ); ARGUMENTS sw Router to configure width The new link width DESCRIPTION Set device router link width to width from router upstream port perspectiv...
tb_switch_suspend(9)
NAME tb_switch_suspend - Put a switch to sleep SYNOPSIS void tb_switch_suspend (struct tb_switch *sw , bool runtime ); ARGUMENTS sw Switch to suspend runtime Is this runtime suspend or system sleep DESCRIPTION Suspends router and all its children. Enables wakes according to value of runtime and ...
tb_switch_tmu_configure(9)
NAME tb_switch_tmu_configure - Configure the TMU mode SYNOPSIS int tb_switch_tmu_configure (struct tb_switch *sw , enum tb_switch_tmu_mode mode ); ARGUMENTS sw Router whose mode to change mode Mode to configure DESCRIPTION Selects the TMU mode that is enabled when tb_switch_tmu_enable is next...
tb_switch_tmu_disable(9)
NAME tb_switch_tmu_disable - Disable TMU of a switch SYNOPSIS int tb_switch_tmu_disable (struct tb_switch *sw ); ARGUMENTS sw Switch whose TMU to disable DESCRIPTION Turns off TMU of sw if it is enabled. If not enabled does nothing. RETURN 0 on success, negative errno otherwise. SEE ALSO Kernel file ./dri...
tb_switch_tmu_enable(9)
NAME tb_switch_tmu_enable - Enable TMU on a router SYNOPSIS int tb_switch_tmu_enable (struct tb_switch *sw ); ARGUMENTS sw Router whose TMU to enable DESCRIPTION Enables TMU of a router to be in uni-directional Normal/HiFi or bi-directional HiFi mode. Calling tb_switch_tmu_configure is required before calli...
tb_switch_tmu_init(9)
NAME tb_switch_tmu_init - Initialize switch TMU structures SYNOPSIS int tb_switch_tmu_init (struct tb_switch *sw ); ARGUMENTS sw Switch to be initialized DESCRIPTION This function must be called before other TMU related functions to make sure the internal structures are filled in correctly. Does not change ...
tb_switch_tmu_is_configured(9)
NAME tb_switch_tmu_is_configured - Is given TMU mode configured SYNOPSIS bool tb_switch_tmu_is_configured (const struct tb_switch *sw , enum tb_switch_tmu_mode mode ); ARGUMENTS sw Router whose mode to check mode Mode to check DESCRIPTION Checks if given router TMU mode is configured to mode....
tb_switch_tmu_is_enabled(9)
NAME tb_switch_tmu_is_enabled - Checks if the specified TMU mode is enabled SYNOPSIS bool tb_switch_tmu_is_enabled (const struct tb_switch *sw ); ARGUMENTS sw Router whose TMU mode to check RETURN true if hardware TMU configuration matches the requested configuration (and is not TB_SWITCH_TMU_MODE_OFF), fal...
tb_switch_tmu_post_time(9)
NAME tb_switch_tmu_post_time - Update switch local time SYNOPSIS int tb_switch_tmu_post_time (struct tb_switch *sw ); ARGUMENTS sw Switch whose time to update DESCRIPTION Updates switch local time using time posting procedure. RETURN 0 on success, negative errno otherwise. SEE ALSO Kernel file ./drivers/t...
tb_switch_unconfigure_link(9)
NAME tb_switch_unconfigure_link - Unconfigure link SYNOPSIS void tb_switch_unconfigure_link (struct tb_switch *sw ); ARGUMENTS sw Switch whose link is unconfigured DESCRIPTION Sets the link unconfigured so the sw will be disconnected if the domain exits sleep. SEE ALSO Kernel file ./drivers/thunderbolt/s...
tb_switch_wait_for_bit(9)
NAME tb_switch_wait_for_bit - Wait for specified value of bits in offset SYNOPSIS int tb_switch_wait_for_bit (struct tb_switch *sw , u32 offset , u32 bit , u32 value , int timeout_msec ); ARGUMENTS sw Router to read the offset value from offset Offset in the router config space to read from ...
tb_switch_xhci_connect(9)
NAME tb_switch_xhci_connect - Connect internal xHCI SYNOPSIS int tb_switch_xhci_connect (struct tb_switch *sw ); ARGUMENTS sw Router whose xHCI to connect DESCRIPTION Can be called to any router. For Alpine Ridge and Titan Ridge performs special flows that bring the xHCI functional for any device connected...
tb_switch_xhci_disconnect(9)
NAME tb_switch_xhci_disconnect - Disconnect internal xHCI SYNOPSIS void tb_switch_xhci_disconnect (struct tb_switch *sw ); ARGUMENTS sw Router whose xHCI to disconnect DESCRIPTION The opposite of tb_switch_xhci_connect. Disconnects xHCI on both ports. SEE ALSO Kernel file ./drivers/thunderbolt/switch.c ...
tb_tunnel_activate(9)
NAME tb_tunnel_activate - activate a tunnel SYNOPSIS int tb_tunnel_activate (struct tb_tunnel *tunnel ); ARGUMENTS tunnel Tunnel to activate RETURN * 0 - On success. * -EINPROGRESS - If the tunnel activation is still in progress (that's for DP tunnels to complete DPRX capabilities read). * Negative errno - An...
tb_tunnel_alloc_bandwidth(9)
NAME tb_tunnel_alloc_bandwidth - Change tunnel bandwidth allocation SYNOPSIS int tb_tunnel_alloc_bandwidth (struct tb_tunnel *tunnel , int *alloc_up , int *alloc_down ); ARGUMENTS tunnel Tunnel whose bandwidth allocation to change alloc_up New upstream bandwidth in Mb/s alloc_down New downstr...
tb_tunnel_alloc_dma(9)
NAME tb_tunnel_alloc_dma - allocate a DMA tunnel SYNOPSIS struct tb_tunnel * tb_tunnel_alloc_dma (struct tb *tb , struct tb_port *nhi , struct tb_port *dst , int transmit_path , int transmit_ring , int receive_path , int receive_ring ); ARGUMENTS tb Pointer to the domain structure nhi Host co...
tb_tunnel_alloc_dp(9)
NAME tb_tunnel_alloc_dp - allocate a Display Port tunnel SYNOPSIS struct tb_tunnel * tb_tunnel_alloc_dp (struct tb *tb , struct tb_port *in , struct tb_port *out , int link_nr , int max_up , int max_down , void (*callback)(struct tb_tunnel *, void *) , void *callback_data ); ARGUMENTS tb Pointer to the domai...
tb_tunnel_alloc_pci(9)
NAME tb_tunnel_alloc_pci - allocate a pci tunnel SYNOPSIS struct tb_tunnel * tb_tunnel_alloc_pci (struct tb *tb , struct tb_port *up , struct tb_port *down ); ARGUMENTS tb Pointer to the domain structure up PCIe upstream adapter port down PCIe downstream adapter port DESCRIPT...
tb_tunnel_alloc_usb3(9)
NAME tb_tunnel_alloc_usb3 - allocate a USB3 tunnel SYNOPSIS struct tb_tunnel * tb_tunnel_alloc_usb3 (struct tb *tb , struct tb_port *up , struct tb_port *down , int max_up , int max_down ); ARGUMENTS tb Pointer to the domain structure up USB3 upstream adapter port down USB3 do...
tb_tunnel_allocated_bandwidth(9)
NAME tb_tunnel_allocated_bandwidth - Return bandwidth allocated for the tunnel SYNOPSIS int tb_tunnel_allocated_bandwidth (struct tb_tunnel *tunnel , int *allocated_up , int *allocated_down ); ARGUMENTS tunnel Tunnel to check allocated_up Currently allocated upstream bandwidth in Mb/s ...
tb_tunnel_consumed_bandwidth(9)
NAME tb_tunnel_consumed_bandwidth - Return bandwidth consumed by the tunnel SYNOPSIS int tb_tunnel_consumed_bandwidth (struct tb_tunnel *tunnel , int *consumed_up , int *consumed_down ); ARGUMENTS tunnel Tunnel to check consumed_up Consumed bandwidth in Mb/s from dst_port to src_port. Can be NULL. ...