Lines Matching +full:160 +full:md

51   { 100, 129, 159, 156, 244, 148, 197, 77, 160},
55 { 119, 156, 176, 248, 244, 229, 84, 74, 160},
135 static int* get_ctrl_ptr(struct maven_data* md, int idx) { in get_ctrl_ptr() argument
136 return (int*)((char*)(md->primary_head) + maven_controls[idx].control); in get_ctrl_ptr()
340 static unsigned char maven_compute_deflicker (const struct maven_data* md) { in maven_compute_deflicker() argument
343 df = (md->version == MGATVO_B?0x40:0x00); in maven_compute_deflicker()
344 switch (md->primary_head->altout.tvo_params.deflicker) { in maven_compute_deflicker()
358 static void maven_compute_bwlevel (const struct maven_data* md, in maven_compute_bwlevel() argument
360 const int b = md->primary_head->altout.tvo_params.brightness + BLMIN; in maven_compute_bwlevel()
361 const int c = md->primary_head->altout.tvo_params.contrast; in maven_compute_bwlevel()
367 static const struct maven_gamma* maven_compute_gamma (const struct maven_data* md) { in maven_compute_gamma() argument
368 return maven_gamma + md->primary_head->altout.tvo_params.gamma; in maven_compute_gamma()
372 static void maven_init_TVdata(const struct maven_data* md, struct mavenregs* data) { in maven_init_TVdata() argument
477 struct matrox_fb_info *minfo = md->primary_head; in maven_init_TVdata()
485 data->regs[0x93] = maven_compute_deflicker(md); in maven_init_TVdata()
490 g = maven_compute_gamma(md); in maven_init_TVdata()
505 maven_compute_bwlevel (md, &bl, &wl); in maven_init_TVdata()
755 static inline int maven_compute_timming(struct maven_data* md, in maven_compute_timming() argument
760 struct matrox_fb_info *minfo = md->primary_head; in maven_compute_timming()
770 maven_init_TVdata(md, m); in maven_compute_timming()
807 if (md->version == MGATVO_B) { in maven_compute_timming()
989 static int maven_program_timming(struct maven_data* md, in maven_program_timming() argument
991 struct i2c_client *c = md->client; in maven_program_timming()
1027 static inline int maven_resync(struct maven_data* md) { in maven_resync() argument
1028 struct i2c_client *c = md->client; in maven_resync()
1033 static int maven_get_queryctrl (struct maven_data* md, in maven_get_queryctrl() argument
1055 static int maven_set_control (struct maven_data* md, in maven_set_control() argument
1065 if (p->value == *get_ctrl_ptr(md, i)) return 0; in maven_set_control()
1076 *get_ctrl_ptr(md, i) = p->value; in maven_set_control()
1083 maven_compute_bwlevel(md, &blacklevel, &whitelevel); in maven_set_control()
1086 maven_set_reg_pair(md->client, 0x0e, blacklevel); in maven_set_control()
1087 maven_set_reg_pair(md->client, 0x1e, whitelevel); in maven_set_control()
1092 maven_set_reg(md->client, 0x20, p->value); in maven_set_control()
1093 maven_set_reg(md->client, 0x22, p->value); in maven_set_control()
1098 maven_set_reg(md->client, 0x25, p->value); in maven_set_control()
1104 g = maven_compute_gamma(md); in maven_set_control()
1105 maven_set_reg(md->client, 0x83, g->reg83); in maven_set_control()
1106 maven_set_reg(md->client, 0x84, g->reg84); in maven_set_control()
1107 maven_set_reg(md->client, 0x85, g->reg85); in maven_set_control()
1108 maven_set_reg(md->client, 0x86, g->reg86); in maven_set_control()
1109 maven_set_reg(md->client, 0x87, g->reg87); in maven_set_control()
1110 maven_set_reg(md->client, 0x88, g->reg88); in maven_set_control()
1111 maven_set_reg(md->client, 0x89, g->reg89); in maven_set_control()
1112 maven_set_reg(md->client, 0x8a, g->reg8a); in maven_set_control()
1113 maven_set_reg(md->client, 0x8b, g->reg8b); in maven_set_control()
1119 = maven_get_reg(md->client, 0x8d); in maven_set_control()
1122 maven_set_reg(md->client, 0x8d, val); in maven_set_control()
1127 maven_set_reg(md->client, 0x93, maven_compute_deflicker(md)); in maven_set_control()
1136 static int maven_get_control (struct maven_data* md, in maven_get_control() argument
1142 p->value = *get_ctrl_ptr(md, i); in maven_get_control()
1148 static int maven_out_compute(void* md, struct my_timming* mt) { in maven_out_compute() argument
1149 #define mdinfo ((struct maven_data*)md) in maven_out_compute()
1151 return maven_compute_timming(md, mt, &minfo->hw.maven); in maven_out_compute()
1156 static int maven_out_program(void* md) { in maven_out_program() argument
1157 #define mdinfo ((struct maven_data*)md) in maven_out_program()
1159 return maven_program_timming(md, &minfo->hw.maven); in maven_out_program()
1164 static int maven_out_start(void* md) { in maven_out_start() argument
1165 return maven_resync(md); in maven_out_start()
1168 static int maven_out_verify_mode(void* md, u_int32_t arg) { in maven_out_verify_mode() argument
1178 static int maven_out_get_queryctrl(void* md, struct v4l2_queryctrl* p) { in maven_out_get_queryctrl() argument
1179 return maven_get_queryctrl(md, p); in maven_out_get_queryctrl()
1182 static int maven_out_get_ctrl(void* md, struct v4l2_control* p) { in maven_out_get_ctrl() argument
1183 return maven_get_control(md, p); in maven_out_get_ctrl()
1186 static int maven_out_set_ctrl(void* md, struct v4l2_control* p) { in maven_out_set_ctrl() argument
1187 return maven_set_control(md, p); in maven_out_set_ctrl()
1202 struct maven_data* md = i2c_get_clientdata(clnt); in maven_init_client() local
1207 md->primary_head = minfo; in maven_init_client()
1208 md->client = clnt; in maven_init_client()
1212 minfo->outputs[1].data = md; in maven_init_client()
1216 md->version = MGATVO_B; in maven_init_client()
1219 md->version = MGATVO_C; in maven_init_client()
1228 *get_ctrl_ptr(md, i) = maven_controls[i].desc.default_value; in maven_init_client()
1236 struct maven_data* md = i2c_get_clientdata(clnt); in maven_shutdown_client() local
1238 if (md->primary_head) { in maven_shutdown_client()
1239 struct matrox_fb_info *minfo = md->primary_head; in maven_shutdown_client()
1247 md->primary_head = NULL; in maven_shutdown_client()