Lines Matching refs:i
60 int i; in decode_vps() local
62 for (i = 0; i < 2 * 13; i += 2) { in decode_vps()
63 err |= biphase_tbl[p[i]] | biphase_tbl[p[i + 1]]; in decode_vps()
64 c = (biphase_tbl[p[i + 1]] & 0xf) | in decode_vps()
65 ((biphase_tbl[p[i]] & 0xf) << 4); in decode_vps()
66 dst[i / 2] = c; in decode_vps()
84 int i; in cx25840_g_sliced_fmt() local
94 for (i = 7; i <= 23; i++) { in cx25840_g_sliced_fmt()
96 state->vbi_regs_offset + 0x424 + i - 7); in cx25840_g_sliced_fmt()
98 svbi->service_lines[0][i] = lcr2vbi[v >> 4]; in cx25840_g_sliced_fmt()
99 svbi->service_lines[1][i] = lcr2vbi[v & 0xf]; in cx25840_g_sliced_fmt()
100 svbi->service_set |= svbi->service_lines[0][i] | in cx25840_g_sliced_fmt()
101 svbi->service_lines[1][i]; in cx25840_g_sliced_fmt()
104 for (i = 10; i <= 21; i++) { in cx25840_g_sliced_fmt()
106 state->vbi_regs_offset + 0x424 + i - 10); in cx25840_g_sliced_fmt()
108 svbi->service_lines[0][i] = lcr2vbi[v >> 4]; in cx25840_g_sliced_fmt()
109 svbi->service_lines[1][i] = lcr2vbi[v & 0xf]; in cx25840_g_sliced_fmt()
110 svbi->service_set |= svbi->service_lines[0][i] | in cx25840_g_sliced_fmt()
111 svbi->service_lines[1][i]; in cx25840_g_sliced_fmt()
143 int i, x; in cx25840_s_sliced_fmt() local
162 for (i = 0; i <= 6; i++) in cx25840_s_sliced_fmt()
163 svbi->service_lines[0][i] = in cx25840_s_sliced_fmt()
164 svbi->service_lines[1][i] = 0; in cx25840_s_sliced_fmt()
166 for (i = 0; i <= 9; i++) in cx25840_s_sliced_fmt()
167 svbi->service_lines[0][i] = in cx25840_s_sliced_fmt()
168 svbi->service_lines[1][i] = 0; in cx25840_s_sliced_fmt()
170 for (i = 22; i <= 23; i++) in cx25840_s_sliced_fmt()
171 svbi->service_lines[0][i] = in cx25840_s_sliced_fmt()
172 svbi->service_lines[1][i] = 0; in cx25840_s_sliced_fmt()
175 for (i = 7; i <= 23; i++) { in cx25840_s_sliced_fmt()
177 switch (svbi->service_lines[1-x][i]) { in cx25840_s_sliced_fmt()
179 lcr[i] |= 1 << (4 * x); in cx25840_s_sliced_fmt()
182 lcr[i] |= 4 << (4 * x); in cx25840_s_sliced_fmt()
185 lcr[i] |= 6 << (4 * x); in cx25840_s_sliced_fmt()
188 lcr[i] |= 9 << (4 * x); in cx25840_s_sliced_fmt()
195 for (x = 1, i = state->vbi_regs_offset + 0x424; in cx25840_s_sliced_fmt()
196 i <= state->vbi_regs_offset + 0x434; i++, x++) in cx25840_s_sliced_fmt()
197 cx25840_write(client, i, lcr[6 + x]); in cx25840_s_sliced_fmt()
199 for (x = 1, i = state->vbi_regs_offset + 0x424; in cx25840_s_sliced_fmt()
200 i <= state->vbi_regs_offset + 0x430; i++, x++) in cx25840_s_sliced_fmt()
201 cx25840_write(client, i, lcr[9 + x]); in cx25840_s_sliced_fmt()
202 for (i = state->vbi_regs_offset + 0x431; in cx25840_s_sliced_fmt()
203 i <= state->vbi_regs_offset + 0x434; i++) in cx25840_s_sliced_fmt()
204 cx25840_write(client, i, 0); in cx25840_s_sliced_fmt()