Lines Matching defs:tb_ctl
25 struct tb_ctl {
111 static int tb_cfg_request_enqueue(struct tb_ctl *ctl,
131 struct tb_ctl *ctl = req->ctl;
147 tb_cfg_request_find(struct tb_ctl *ctl, struct ctl_pkg *pkg)
222 struct tb_ctl *ctl = response->ctl;
260 static void tb_cfg_print_error(struct tb_ctl *ctl,
316 static struct ctl_pkg *tb_ctl_pkg_alloc(struct tb_ctl *ctl)
348 static int tb_ctl_tx(struct tb_ctl *ctl, const void *data, size_t len,
381 static bool tb_ctl_handle_event(struct tb_ctl *ctl, enum tb_cfg_pkg_type type,
512 int tb_cfg_request(struct tb_ctl *ctl, struct tb_cfg_request *req,
578 struct tb_cfg_result tb_cfg_request_sync(struct tb_ctl *ctl,
610 struct tb_ctl *tb_ctl_alloc(struct tb_nhi *nhi, event_cb cb, void *cb_data)
613 struct tb_ctl *ctl = kzalloc(sizeof(*ctl), GFP_KERNEL);
657 void tb_ctl_free(struct tb_ctl *ctl)
681 void tb_ctl_start(struct tb_ctl *ctl)
701 void tb_ctl_stop(struct tb_ctl *ctl)
728 int tb_cfg_ack_plug(struct tb_ctl *ctl, u64 route, u32 port, bool unplug)
792 struct tb_cfg_result tb_cfg_reset(struct tb_ctl *ctl, u64 route,
827 struct tb_cfg_result tb_cfg_read_raw(struct tb_ctl *ctl, void *buffer,
890 struct tb_cfg_result tb_cfg_write_raw(struct tb_ctl *ctl, const void *buffer,
948 static int tb_cfg_get_error(struct tb_ctl *ctl, enum tb_cfg_space space,
968 int tb_cfg_read(struct tb_ctl *ctl, void *buffer, u64 route, u32 port,
994 int tb_cfg_write(struct tb_ctl *ctl, const void *buffer, u64 route, u32 port,
1029 int tb_cfg_get_upstream_port(struct tb_ctl *ctl, u64 route)