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()
15 static void quirk_dp_credit_allocation(struct tb_switch *sw) in quirk_dp_credit_allocation() argument
17 if (sw->credit_allocation && sw->min_dp_main_credits == 56) { in quirk_dp_credit_allocation()
18 sw->min_dp_main_credits = 18; in quirk_dp_credit_allocation()
19 tb_sw_dbg(sw, "quirked DP main: %u\n", sw->min_dp_main_credits); in quirk_dp_credit_allocation()
28 void (*hook)(struct tb_switch *sw);
48 void tb_check_quirks(struct tb_switch *sw) in tb_check_quirks() argument
55 if (q->hw_vendor_id && q->hw_vendor_id != sw->config.vendor_id) in tb_check_quirks()
57 if (q->hw_device_id && q->hw_device_id != sw->config.device_id) in tb_check_quirks()
59 if (q->vendor && q->vendor != sw->vendor) in tb_check_quirks()
61 if (q->device && q->device != sw->device) in tb_check_quirks()
64 q->hook(sw); in tb_check_quirks()