Lines Matching refs:ctx
39 struct context *ctx = info; in mxm_match_tmds_partner() local
44 desc.dig_conn == ctx->desc.dig_conn) in mxm_match_tmds_partner()
53 struct context *ctx = info; in mxm_match_dcb() local
56 mxms_output_device(mxm, data, &ctx->desc); in mxm_match_dcb()
59 if ((ctx->outp[0] & 0x0000000f) != ctx->desc.outp_type) in mxm_match_dcb()
68 u8 link = mxm_sor_map(bios, ctx->desc.dig_conn); in mxm_match_dcb()
69 if ((ctx->outp[0] & 0x0f000000) != (link & 0x0f) << 24) in mxm_match_dcb()
74 if ((link & ((ctx->outp[1] & 0x00000030) >> 4)) != link) in mxm_match_dcb()
84 if (ctx->desc.outp_type == 6 && ctx->desc.conn_type == 6 && in mxm_match_dcb()
85 mxms_foreach(mxm, 0x01, mxm_match_tmds_partner, ctx)) { in mxm_match_dcb()
98 struct context ctx = { .outp = (u32 *)(bios->data + pdcb) }; in mxm_dcb_sanitise_entry() local
105 if (mxms_foreach(mxm, 0x01, mxm_match_dcb, &ctx)) { in mxm_dcb_sanitise_entry()
107 idx, ctx.outp[0], ctx.outp[1]); in mxm_dcb_sanitise_entry()
108 ctx.outp[0] |= 0x0000000f; in mxm_dcb_sanitise_entry()
116 i2cidx = mxm_ddc_map(bios, ctx.desc.ddc_port); in mxm_dcb_sanitise_entry()
117 if ((ctx.outp[0] & 0x0000000f) != DCB_OUTPUT_DP) in mxm_dcb_sanitise_entry()
123 ctx.outp[0] &= ~0x000000f0; in mxm_dcb_sanitise_entry()
124 ctx.outp[0] |= i2cidx; in mxm_dcb_sanitise_entry()
128 switch (ctx.desc.outp_type) { in mxm_dcb_sanitise_entry()
133 link = mxm_sor_map(bios, ctx.desc.dig_conn) & 0x30; in mxm_dcb_sanitise_entry()
134 ctx.outp[1] &= ~0x00000030; in mxm_dcb_sanitise_entry()
135 ctx.outp[1] |= link; in mxm_dcb_sanitise_entry()
147 conn += nvbios_connEe(bios, (ctx.outp[0] & 0x0000f000) >> 12, &ver, &len); in mxm_dcb_sanitise_entry()
149 switch (ctx.desc.conn_type) { in mxm_dcb_sanitise_entry()
151 ctx.outp[1] |= 0x00000004; /* use_power_scripts */ in mxm_dcb_sanitise_entry()
161 ctx.outp[1] |= 0x00010000; in mxm_dcb_sanitise_entry()
163 ctx.outp[1] |= 0x00000004; /* use_power_scripts? */ in mxm_dcb_sanitise_entry()