cp_read
if (cp_read(state, ADV748X_CP_PAT_GEN) & ADV748X_CP_PAT_GEN_EN) {
#define cp_clrset(s, r, m, v) cp_write(s, r, (cp_read(s, r) & ~(m)) | (v))
offset_buf[0] = (cp_read(sd, 0x77) & 0xc0) | ((offset_a & 0x3f0) >> 4);
return ((cp_read(sd, 0xb5) & 0xd0) != 0xd0);
return !(cp_read(sd, 0xb1) & 0x80);
return cp_read(sd, 0xff) & 0x10;
stdi->lcvs = cp_read(sd, 0xb3) >> 3;
polarity = cp_read(sd, 0xb5);
csc_coeff_sel_rb[cp_read(sd, info->cp_csc) >> 4]);
return ((cp_read(sd, reg) << 8) | cp_read(sd, reg + 1)) & mask;
return cp_write(sd, reg, (cp_read(sd, reg) & ~mask) | val);
offset_buf[0]= (cp_read(sd, 0x77) & 0xc0) | ((offset_a & 0x3f0) >> 4);
return ((cp_read(sd, 0xb5) & 0xd0) != 0xd0) || !(cp_read(sd, 0xb1) & 0x80);
if ((cp_read(sd, 0xb5) & 0xd0) != 0xd0 ||
!(cp_read(sd, 0xb1) & 0x80))
stdi->bl = ((cp_read(sd, 0xb1) & 0x3f) << 8) | cp_read(sd, 0xb2);
stdi->lcf = ((cp_read(sd, 0xb3) & 0x7) << 8) | cp_read(sd, 0xb4);
stdi->lcvs = cp_read(sd, 0xb3) >> 3;
if ((cp_read(sd, 0xb5) & 0x80) && ((cp_read(sd, 0xb5) & 0x03) == 0x01)) {
stdi->hs_pol = ((cp_read(sd, 0xb5) & 0x10) ?
((cp_read(sd, 0xb5) & 0x08) ? '+' : '-') : 'x');
stdi->vs_pol = ((cp_read(sd, 0xb5) & 0x40) ?
((cp_read(sd, 0xb5) & 0x20) ? '+' : '-') : 'x');
stdi->interlaced = (cp_read(sd, 0xb1) & 0x40) ? true : false;
(!!(cp_read(sd, 0xff) & 0x10) ? "on" : "off"));
u32 bl = ((cp_read(sd, 0xb1) & 0x3f) << 8) | cp_read(sd, 0xb2);
u32 lcf = ((cp_read(sd, 0xb3) & 0x7) << 8) | cp_read(sd, 0xb4);
u32 lcvs = cp_read(sd, 0xb3) >> 3;
u32 fcl = ((cp_read(sd, 0xb8) & 0x1f) << 8) | cp_read(sd, 0xb9);
char hs_pol = ((cp_read(sd, 0xb5) & 0x10) ?
((cp_read(sd, 0xb5) & 0x08) ? '+' : '-') : 'x');
char vs_pol = ((cp_read(sd, 0xb5) & 0x40) ?
((cp_read(sd, 0xb5) & 0x20) ? '+' : '-') : 'x');
(cp_read(sd, 0xb1) & 0x40) ?
temp = cp_read(sd, 0xf4) >> 4;
return cp_write(sd, reg, (cp_read(sd, reg) & mask) | val);
reg->val = cp_read(sd, reg->reg & 0xff);