Lines Matching defs:in
55 * Returns %0 in case of success negative errno otherwise. Only supports
188 * about this. Returns %0 in success and negative errno in failure.
214 * Returns %0 in success and negative errno in case of failure.
347 * and negative errno in case of failure. Can be called for Thunderbolt 3
517 struct tb_port *in)
524 return in != port;
561 * @in: DP IN port to check
566 bool tb_lc_dp_sink_query(struct tb_switch *sw, struct tb_port *in)
577 sink = tb_lc_dp_sink_from_port(sw, in);
587 * @in: DP IN port the DP sink is allocated for
589 * Allocate DP sink for @in via LC SNK_ALLOCATION registers. If the
594 int tb_lc_dp_sink_alloc(struct tb_switch *sw, struct tb_port *in)
602 sink = tb_lc_dp_sink_from_port(sw, in);
630 tb_port_dbg(in, "sink %d allocated\n", sink);
637 * @in: DP IN port whose DP sink is de-allocated
639 * De-allocate DP sink from @in using LC SNK_ALLOCATION registers.
641 int tb_lc_dp_sink_dealloc(struct tb_switch *sw, struct tb_port *in)
649 sink = tb_lc_dp_sink_from_port(sw, in);
673 tb_port_dbg(in, "sink %d de-allocated\n", sink);
686 u32 in = 0xffff;
688 return tb_sw_write(sw, &in, TB_CFG_SWITCH, TB_LC_POWER, 1);