Lines Matching refs:sw

10 static void quirk_force_power_link(struct tb_switch *sw)  in quirk_force_power_link()  argument
12 sw->quirks |= QUIRK_FORCE_POWER_LINK_CONTROLLER; in quirk_force_power_link()
13 tb_sw_dbg(sw, "forcing power to link controller\n"); in quirk_force_power_link()
16 static void quirk_dp_credit_allocation(struct tb_switch *sw) in quirk_dp_credit_allocation() argument
18 if (sw->credit_allocation && sw->min_dp_main_credits == 56) { in quirk_dp_credit_allocation()
19 sw->min_dp_main_credits = 18; in quirk_dp_credit_allocation()
20 tb_sw_dbg(sw, "quirked DP main: %u\n", sw->min_dp_main_credits); in quirk_dp_credit_allocation()
24 static void quirk_clx_disable(struct tb_switch *sw) in quirk_clx_disable() argument
26 sw->quirks |= QUIRK_NO_CLX; in quirk_clx_disable()
27 tb_sw_dbg(sw, "disabling CL states\n"); in quirk_clx_disable()
30 static void quirk_usb3_maximum_bandwidth(struct tb_switch *sw) in quirk_usb3_maximum_bandwidth() argument
34 if (tb_switch_is_icm(sw)) in quirk_usb3_maximum_bandwidth()
37 tb_switch_for_each_port(sw, port) { in quirk_usb3_maximum_bandwidth()
46 static void quirk_block_rpm_in_redrive(struct tb_switch *sw) in quirk_block_rpm_in_redrive() argument
48 sw->quirks |= QUIRK_KEEP_POWER_IN_DP_REDRIVE; in quirk_block_rpm_in_redrive()
49 tb_sw_dbg(sw, "preventing runtime PM in DP redrive mode\n"); in quirk_block_rpm_in_redrive()
57 void (*hook)(struct tb_switch *sw);
118 void tb_check_quirks(struct tb_switch *sw) in tb_check_quirks() argument
125 if (q->hw_vendor_id && q->hw_vendor_id != sw->config.vendor_id) in tb_check_quirks()
127 if (q->hw_device_id && q->hw_device_id != sw->config.device_id) in tb_check_quirks()
129 if (q->vendor && q->vendor != sw->vendor) in tb_check_quirks()
131 if (q->device && q->device != sw->device) in tb_check_quirks()
134 tb_sw_dbg(sw, "running %ps\n", q->hook); in tb_check_quirks()
135 q->hook(sw); in tb_check_quirks()