Lines Matching refs: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()
282 int cap, ret; in tb_lc_lane_bonding_possible() local
289 cap = find_port_lc_cap(up); in tb_lc_lane_bonding_possible()
290 if (cap < 0) in tb_lc_lane_bonding_possible()
293 ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, cap + TB_LC_PORT_ATTR, 1); in tb_lc_lane_bonding_possible()