Lines Matching refs:ctx

43 	struct context *ctx = info;  in mxm_match_tmds_partner()  local
48 desc.dig_conn == ctx->desc.dig_conn) in mxm_match_tmds_partner()
57 struct context *ctx = info; in mxm_match_dcb() local
60 mxms_output_device(mxm, data, &ctx->desc); in mxm_match_dcb()
63 if ((ctx->outp[0] & 0x0000000f) != ctx->desc.outp_type) in mxm_match_dcb()
72 u8 link = mxm_sor_map(bios, ctx->desc.dig_conn); in mxm_match_dcb()
73 if ((ctx->outp[0] & 0x0f000000) != (link & 0x0f) << 24) in mxm_match_dcb()
78 if ((link & ((ctx->outp[1] & 0x00000030) >> 4)) != link) in mxm_match_dcb()
88 if (ctx->desc.outp_type == 6 && ctx->desc.conn_type == 6 && in mxm_match_dcb()
89 mxms_foreach(mxm, 0x01, mxm_match_tmds_partner, ctx)) { in mxm_match_dcb()
102 struct context ctx = { .outp = (u32 *)(bios->data + pdcb) }; in mxm_dcb_sanitise_entry() local
109 if (mxms_foreach(mxm, 0x01, mxm_match_dcb, &ctx)) { in mxm_dcb_sanitise_entry()
111 idx, ctx.outp[0], ctx.outp[1]); in mxm_dcb_sanitise_entry()
112 ctx.outp[0] |= 0x0000000f; in mxm_dcb_sanitise_entry()
120 i2cidx = mxm_ddc_map(bios, ctx.desc.ddc_port); in mxm_dcb_sanitise_entry()
121 if ((ctx.outp[0] & 0x0000000f) != DCB_OUTPUT_DP) in mxm_dcb_sanitise_entry()
127 ctx.outp[0] &= ~0x000000f0; in mxm_dcb_sanitise_entry()
128 ctx.outp[0] |= i2cidx; in mxm_dcb_sanitise_entry()
132 switch (ctx.desc.outp_type) { in mxm_dcb_sanitise_entry()
137 link = mxm_sor_map(bios, ctx.desc.dig_conn) & 0x30; in mxm_dcb_sanitise_entry()
138 ctx.outp[1] &= ~0x00000030; in mxm_dcb_sanitise_entry()
139 ctx.outp[1] |= link; in mxm_dcb_sanitise_entry()
151 conn += nvbios_connEe(bios, (ctx.outp[0] & 0x0000f000) >> 12, &ver, &len); in mxm_dcb_sanitise_entry()
153 switch (ctx.desc.conn_type) { in mxm_dcb_sanitise_entry()
155 ctx.outp[1] |= 0x00000004; /* use_power_scripts */ in mxm_dcb_sanitise_entry()
165 ctx.outp[1] |= 0x00010000; in mxm_dcb_sanitise_entry()
167 ctx.outp[1] |= 0x00000004; /* use_power_scripts? */ in mxm_dcb_sanitise_entry()