Searched refs:m2info (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/video/fbdev/matrox/ |
H A D | matroxfb_crtc2.c | 34 #define m2info (container_of(info, struct matroxfb_dh_fb_info, fbcon)) in matroxfb_dh_setcolreg() macro 38 if (m2info->fbcon.var.grayscale) { in matroxfb_dh_setcolreg() 42 red = CNVT_TOHW(red, m2info->fbcon.var.red.length); in matroxfb_dh_setcolreg() 43 green = CNVT_TOHW(green, m2info->fbcon.var.green.length); in matroxfb_dh_setcolreg() 44 blue = CNVT_TOHW(blue, m2info->fbcon.var.blue.length); in matroxfb_dh_setcolreg() 45 transp = CNVT_TOHW(transp, m2info->fbcon.var.transp.length); in matroxfb_dh_setcolreg() 47 col = (red << m2info->fbcon.var.red.offset) | in matroxfb_dh_setcolreg() 48 (green << m2info->fbcon.var.green.offset) | in matroxfb_dh_setcolreg() 49 (blue << m2info->fbcon.var.blue.offset) | in matroxfb_dh_setcolreg() 50 (transp << m2info->fbcon.var.transp.offset); in matroxfb_dh_setcolreg() [all …]
|
H A D | i2c-matroxfb.c | 145 struct matroxfb_dh_maven_info* m2info; in i2c_matroxfb_probe() local 147 m2info = kzalloc(sizeof(*m2info), GFP_KERNEL); in i2c_matroxfb_probe() 148 if (!m2info) in i2c_matroxfb_probe() 159 err = i2c_bus_reg(&m2info->ddc1, minfo, in i2c_matroxfb_probe() 164 err = i2c_bus_reg(&m2info->ddc1, minfo, in i2c_matroxfb_probe() 172 err = i2c_bus_reg(&m2info->ddc2, minfo, DDC2_DATA, DDC2_CLK, "DDC:fb%u #1"); in i2c_matroxfb_probe() 178 err = i2c_bus_reg(&m2info->maven, minfo, MAT_DATA, MAT_CLK, "MAVEN:fb%u"); in i2c_matroxfb_probe() 189 i2c_new_scanned_device(&m2info->maven.adapter, in i2c_matroxfb_probe() 193 return m2info; in i2c_matroxfb_probe() 195 kfree(m2info); in i2c_matroxfb_probe() [all …]
|