Lines Matching defs:code
310 typedef void (*dac_read_regs_t)(void *data, u8 *code, int count);
311 typedef void (*dac_write_regs_t)(void *data, u8 *code, int count);
321 static inline void dac_read_regs(struct dac_info *info, u8 *code, int count)
323 info->dac_read_regs(info->data, code, count);
328 u8 code[2] = {reg, val};
329 info->dac_write_regs(info->data, code, 1);
332 static inline void dac_write_regs(struct dac_info *info, u8 *code, int count)
334 info->dac_write_regs(info->data, code, count);
375 u8 code;
380 code = ics5342_mode_table[mode];
382 if (! code)
385 dac_write_reg(info, 6, code & 0xF0);
413 u8 code[6] = {4, 3, 5, m-2, 5, (n-2) | (r << 5)};
414 dac_write_regs(info, code, 3);
453 static void ark_dac_read_regs(void *data, u8 *code, int count)
463 vga_wseq(par->state.vgabase, 0x1C, regval | (code[0] & 4 ? 0x80 : 0));
464 code[1] = vga_r(par->state.vgabase, dac_regs[code[0] & 3]);
466 code += 2;
472 static void ark_dac_write_regs(void *data, u8 *code, int count)
482 vga_wseq(par->state.vgabase, 0x1C, regval | (code[0] & 4 ? 0x80 : 0));
483 vga_w(par->state.vgabase, dac_regs[code[0] & 3], code[1]);
485 code += 2;