Lines Matching refs:clx

29 module_param_named(clx, clx_enabled, bool, 0444);
30 MODULE_PARM_DESC(clx, "allow low power states on the high-speed lanes (default: true)");
1242 static int __tb_port_clx_set(struct tb_port *port, enum tb_clx clx, bool enable) in __tb_port_clx_set() argument
1248 if (clx == TB_CL1) in __tb_port_clx_set()
1268 static int tb_port_clx_disable(struct tb_port *port, enum tb_clx clx) in tb_port_clx_disable() argument
1270 return __tb_port_clx_set(port, clx, false); in tb_port_clx_disable()
1273 static int tb_port_clx_enable(struct tb_port *port, enum tb_clx clx) in tb_port_clx_enable() argument
1275 return __tb_port_clx_set(port, clx, true); in tb_port_clx_enable()
3486 static int __tb_switch_enable_clx(struct tb_switch *sw, enum tb_clx clx) in __tb_switch_enable_clx() argument
3514 up_clx_support = tb_port_clx_supported(up, clx); in __tb_switch_enable_clx()
3515 down_clx_support = tb_port_clx_supported(down, clx); in __tb_switch_enable_clx()
3517 tb_port_dbg(up, "%s %ssupported\n", tb_switch_clx_name(clx), in __tb_switch_enable_clx()
3519 tb_port_dbg(down, "%s %ssupported\n", tb_switch_clx_name(clx), in __tb_switch_enable_clx()
3525 ret = tb_port_clx_enable(up, clx); in __tb_switch_enable_clx()
3529 ret = tb_port_clx_enable(down, clx); in __tb_switch_enable_clx()
3531 tb_port_clx_disable(up, clx); in __tb_switch_enable_clx()
3537 tb_port_clx_disable(up, clx); in __tb_switch_enable_clx()
3538 tb_port_clx_disable(down, clx); in __tb_switch_enable_clx()
3542 sw->clx = clx; in __tb_switch_enable_clx()
3544 tb_port_dbg(up, "%s enabled\n", tb_switch_clx_name(clx)); in __tb_switch_enable_clx()
3562 int tb_switch_enable_clx(struct tb_switch *sw, enum tb_clx clx) in tb_switch_enable_clx() argument
3576 switch (clx) { in tb_switch_enable_clx()
3579 return __tb_switch_enable_clx(sw, clx); in tb_switch_enable_clx()
3586 static int __tb_switch_disable_clx(struct tb_switch *sw, enum tb_clx clx) in __tb_switch_disable_clx() argument
3608 ret = tb_port_clx_disable(up, clx); in __tb_switch_disable_clx()
3612 ret = tb_port_clx_disable(down, clx); in __tb_switch_disable_clx()
3616 sw->clx = TB_CLX_DISABLE; in __tb_switch_disable_clx()
3618 tb_port_dbg(up, "%s disabled\n", tb_switch_clx_name(clx)); in __tb_switch_disable_clx()
3629 int tb_switch_disable_clx(struct tb_switch *sw, enum tb_clx clx) in tb_switch_disable_clx() argument
3634 switch (clx) { in tb_switch_disable_clx()
3637 return __tb_switch_disable_clx(sw, clx); in tb_switch_disable_clx()