Searched refs:m2info (Results 1 – 2 of 2) sorted by relevance
/linux-5.19.10/drivers/video/fbdev/matrox/ |
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 …]
|
D | i2c-matroxfb.c | 147 struct matroxfb_dh_maven_info* m2info; in i2c_matroxfb_probe() local 149 m2info = kzalloc(sizeof(*m2info), GFP_KERNEL); in i2c_matroxfb_probe() 150 if (!m2info) in i2c_matroxfb_probe() 161 err = i2c_bus_reg(&m2info->ddc1, minfo, in i2c_matroxfb_probe() 166 err = i2c_bus_reg(&m2info->ddc1, minfo, in i2c_matroxfb_probe() 174 err = i2c_bus_reg(&m2info->ddc2, minfo, in i2c_matroxfb_probe() 182 err = i2c_bus_reg(&m2info->maven, minfo, in i2c_matroxfb_probe() 194 i2c_new_scanned_device(&m2info->maven.adapter, in i2c_matroxfb_probe() 198 return m2info; in i2c_matroxfb_probe() 200 kfree(m2info); in i2c_matroxfb_probe() [all …]
|