Searched refs:CVAL (Results 1 – 3 of 3) sorted by relevance
/linux-2.6.39/fs/cifs/ |
D | smbencrypt.c | 46 #define CVAL(buf,pos) (((unsigned char *)(buf))[pos]) macro 47 #define SSVALX(buf,pos,val) (CVAL(buf,pos)=(val)&0xFF,CVAL(buf,pos+1)=(val)>>8)
|
/linux-2.6.39/drivers/video/omap/ |
D | dispc.c | 730 #define CVAL(x, y) (((x & 2047) << 16) | (y & 2047)) in setup_color_conv_coef() macro 734 MOD_REG_FLD(cf1_reg, mask, CVAL(ct->rcr, ct->ry)); in setup_color_conv_coef() 735 MOD_REG_FLD(cf1_reg + 4, mask, CVAL(ct->gy, ct->rcb)); in setup_color_conv_coef() 736 MOD_REG_FLD(cf1_reg + 8, mask, CVAL(ct->gcb, ct->gcr)); in setup_color_conv_coef() 737 MOD_REG_FLD(cf1_reg + 12, mask, CVAL(ct->bcr, ct->by)); in setup_color_conv_coef() 738 MOD_REG_FLD(cf1_reg + 16, mask, CVAL(0, ct->bcb)); in setup_color_conv_coef() 740 MOD_REG_FLD(cf2_reg, mask, CVAL(ct->rcr, ct->ry)); in setup_color_conv_coef() 741 MOD_REG_FLD(cf2_reg + 4, mask, CVAL(ct->gy, ct->rcb)); in setup_color_conv_coef() 742 MOD_REG_FLD(cf2_reg + 8, mask, CVAL(ct->gcb, ct->gcr)); in setup_color_conv_coef() 743 MOD_REG_FLD(cf2_reg + 12, mask, CVAL(ct->bcr, ct->by)); in setup_color_conv_coef() [all …]
|
/linux-2.6.39/drivers/video/omap2/dss/ |
D | dispc.c | 778 #define CVAL(x, y) (FLD_VAL(x, 26, 16) | FLD_VAL(y, 10, 0)) in _dispc_setup_color_conv_coef() macro 782 dispc_write_reg(DISPC_VID_CONV_COEF(0, 0), CVAL(ct->rcr, ct->ry)); in _dispc_setup_color_conv_coef() 783 dispc_write_reg(DISPC_VID_CONV_COEF(0, 1), CVAL(ct->gy, ct->rcb)); in _dispc_setup_color_conv_coef() 784 dispc_write_reg(DISPC_VID_CONV_COEF(0, 2), CVAL(ct->gcb, ct->gcr)); in _dispc_setup_color_conv_coef() 785 dispc_write_reg(DISPC_VID_CONV_COEF(0, 3), CVAL(ct->bcr, ct->by)); in _dispc_setup_color_conv_coef() 786 dispc_write_reg(DISPC_VID_CONV_COEF(0, 4), CVAL(0, ct->bcb)); in _dispc_setup_color_conv_coef() 788 dispc_write_reg(DISPC_VID_CONV_COEF(1, 0), CVAL(ct->rcr, ct->ry)); in _dispc_setup_color_conv_coef() 789 dispc_write_reg(DISPC_VID_CONV_COEF(1, 1), CVAL(ct->gy, ct->rcb)); in _dispc_setup_color_conv_coef() 790 dispc_write_reg(DISPC_VID_CONV_COEF(1, 2), CVAL(ct->gcb, ct->gcr)); in _dispc_setup_color_conv_coef() 791 dispc_write_reg(DISPC_VID_CONV_COEF(1, 3), CVAL(ct->bcr, ct->by)); in _dispc_setup_color_conv_coef() [all …]
|