tb_ctl
struct tb_cfg_result tb_cfg_write_raw(struct tb_ctl *ctl, const void *buffer,
static int tb_cfg_get_error(struct tb_ctl *ctl, enum tb_cfg_space space,
int tb_cfg_read(struct tb_ctl *ctl, void *buffer, u64 route, u32 port,
int tb_cfg_write(struct tb_ctl *ctl, const void *buffer, u64 route, u32 port,
int tb_cfg_get_upstream_port(struct tb_ctl *ctl, u64 route)
static int tb_cfg_request_enqueue(struct tb_ctl *ctl,
struct tb_ctl *ctl = req->ctl;
tb_cfg_request_find(struct tb_ctl *ctl, struct ctl_pkg *pkg)
static void tb_cfg_print_error(struct tb_ctl *ctl, enum tb_cfg_space space,
static struct ctl_pkg *tb_ctl_pkg_alloc(struct tb_ctl *ctl)
static int tb_ctl_tx(struct tb_ctl *ctl, const void *data, size_t len,
static bool tb_ctl_handle_event(struct tb_ctl *ctl, enum tb_cfg_pkg_type type,
int tb_cfg_request(struct tb_ctl *ctl, struct tb_cfg_request *req,
struct tb_cfg_result tb_cfg_request_sync(struct tb_ctl *ctl,
struct tb_ctl *tb_ctl_alloc(struct tb_nhi *nhi, int index, int timeout_msec,
struct tb_ctl *ctl = kzalloc_obj(*ctl);
void tb_ctl_free(struct tb_ctl *ctl)
void tb_ctl_start(struct tb_ctl *ctl)
void tb_ctl_stop(struct tb_ctl *ctl)
int tb_cfg_ack_notification(struct tb_ctl *ctl, u64 route,
int tb_cfg_ack_plug(struct tb_ctl *ctl, u64 route, u32 port, bool unplug)
struct tb_cfg_result tb_cfg_reset(struct tb_ctl *ctl, u64 route)
struct tb_cfg_result tb_cfg_read_raw(struct tb_ctl *ctl, void *buffer,
int tb_cfg_request(struct tb_ctl *ctl, struct tb_cfg_request *req,
struct tb_cfg_result tb_cfg_request_sync(struct tb_ctl *ctl,
int tb_cfg_ack_notification(struct tb_ctl *ctl, u64 route,
int tb_cfg_ack_plug(struct tb_ctl *ctl, u64 route, u32 port, bool unplug);
struct tb_cfg_result tb_cfg_reset(struct tb_ctl *ctl, u64 route);
struct tb_cfg_result tb_cfg_read_raw(struct tb_ctl *ctl, void *buffer,
struct tb_cfg_result tb_cfg_write_raw(struct tb_ctl *ctl, const void *buffer,
int tb_cfg_read(struct tb_ctl *ctl, void *buffer, u64 route, u32 port,
int tb_cfg_write(struct tb_ctl *ctl, const void *buffer, u64 route, u32 port,
int tb_cfg_get_upstream_port(struct tb_ctl *ctl, u64 route);
struct tb_ctl;
struct tb_ctl *tb_ctl_alloc(struct tb_nhi *nhi, int index, int timeout_msec,
void tb_ctl_start(struct tb_ctl *ctl);
void tb_ctl_stop(struct tb_ctl *ctl);
void tb_ctl_free(struct tb_ctl *ctl);
struct tb_ctl *ctl;
struct tb_ctl *ctl;
static int dma_port_write(struct tb_ctl *ctl, const void *buffer, u64 route,
static int dma_port_read(struct tb_ctl *ctl, void *buffer, u64 route,
static int __tb_xdomain_response(struct tb_ctl *ctl, const void *response,
static int __tb_xdomain_request(struct tb_ctl *ctl, const void *request,
static int tb_xdp_uuid_request(struct tb_ctl *ctl, u64 route, int retry,
static int tb_xdp_uuid_response(struct tb_ctl *ctl, u64 route, u8 sequence,
static int tb_xdp_error_response(struct tb_ctl *ctl, u64 route, u8 sequence,
static int tb_xdp_properties_request(struct tb_ctl *ctl, u64 route,
static int tb_xdp_properties_response(struct tb *tb, struct tb_ctl *ctl,
static int tb_xdp_properties_changed_request(struct tb_ctl *ctl, u64 route,
tb_xdp_properties_changed_response(struct tb_ctl *ctl, u64 route, u8 sequence)
static int tb_xdp_link_state_status_request(struct tb_ctl *ctl, u64 route,
static int tb_xdp_link_state_status_response(struct tb *tb, struct tb_ctl *ctl,
static int tb_xdp_link_state_change_request(struct tb_ctl *ctl, u64 route,
static int tb_xdp_link_state_change_response(struct tb_ctl *ctl, u64 route,
struct tb_ctl *ctl = tb->ctl;
struct tb_ctl *ctl;