Lines Matching full:cap

53 	int cap, ret;  in tb_lc_set_port_configured()  local
58 cap = find_port_lc_cap(port); in tb_lc_set_port_configured()
59 if (cap < 0) in tb_lc_set_port_configured()
60 return cap; in tb_lc_set_port_configured()
62 ret = tb_sw_read(sw, &ctrl, TB_CFG_SWITCH, cap + TB_LC_SX_CTRL, 1); in tb_lc_set_port_configured()
82 return tb_sw_write(sw, &ctrl, TB_CFG_SWITCH, cap + TB_LC_SX_CTRL, 1); in tb_lc_set_port_configured()
111 int cap, ret; in tb_lc_set_xdomain_configured() local
116 cap = find_port_lc_cap(port); in tb_lc_set_xdomain_configured()
117 if (cap < 0) in tb_lc_set_xdomain_configured()
118 return cap; in tb_lc_set_xdomain_configured()
120 ret = tb_sw_read(sw, &ctrl, TB_CFG_SWITCH, cap + TB_LC_SX_CTRL, 1); in tb_lc_set_xdomain_configured()
135 return tb_sw_write(sw, &ctrl, TB_CFG_SWITCH, cap + TB_LC_SX_CTRL, 1); in tb_lc_set_xdomain_configured()
174 int ret, cap; in tb_lc_start_lane_initialization() local
183 cap = find_port_lc_cap(port); in tb_lc_start_lane_initialization()
184 if (cap < 0) in tb_lc_start_lane_initialization()
185 return cap; in tb_lc_start_lane_initialization()
187 ret = tb_sw_read(sw, &ctrl, TB_CFG_SWITCH, cap + TB_LC_SX_CTRL, 1); in tb_lc_start_lane_initialization()
193 return tb_sw_write(sw, &ctrl, TB_CFG_SWITCH, cap + TB_LC_SX_CTRL, 1); in tb_lc_start_lane_initialization()
206 int cap, ret; in tb_lc_is_clx_supported() local
209 cap = find_port_lc_cap(port); in tb_lc_is_clx_supported()
210 if (cap < 0) in tb_lc_is_clx_supported()
213 ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, cap + TB_LC_LINK_ATTR, 1); in tb_lc_is_clx_supported()
229 int cap, ret; in tb_lc_is_usb_plugged() local
235 cap = find_port_lc_cap(port); in tb_lc_is_usb_plugged()
236 if (cap < 0) in tb_lc_is_usb_plugged()
239 ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, cap + TB_LC_CS_42, 1); in tb_lc_is_usb_plugged()
255 int cap, ret; in tb_lc_is_xhci_connected() local
261 cap = find_port_lc_cap(port); in tb_lc_is_xhci_connected()
262 if (cap < 0) in tb_lc_is_xhci_connected()
265 ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, cap + TB_LC_LINK_REQ, 1); in tb_lc_is_xhci_connected()
275 int cap, ret; in __tb_lc_xhci_connect() local
281 cap = find_port_lc_cap(port); in __tb_lc_xhci_connect()
282 if (cap < 0) in __tb_lc_xhci_connect()
283 return cap; in __tb_lc_xhci_connect()
285 ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, cap + TB_LC_LINK_REQ, 1); in __tb_lc_xhci_connect()
294 return tb_sw_write(sw, &val, TB_CFG_SWITCH, cap + TB_LC_LINK_REQ, 1); in __tb_lc_xhci_connect()
453 int cap, ret; in tb_lc_lane_bonding_possible() local
460 cap = find_port_lc_cap(up); in tb_lc_lane_bonding_possible()
461 if (cap < 0) in tb_lc_lane_bonding_possible()
464 ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, cap + TB_LC_PORT_ATTR, 1); in tb_lc_lane_bonding_possible()