Lines Matching refs:metromem_cmd
320 if (par->metromem_cmd->opcode == 0xCC40) in metronome_display_cmd()
327 par->metromem_cmd->args[i] = 1 << 3 /* border update */ in metronome_display_cmd()
330 cs += par->metromem_cmd->args[i++]; in metronome_display_cmd()
333 memset((u8 *) (par->metromem_cmd->args + i), 0, (32-i)*2); in metronome_display_cmd()
335 par->metromem_cmd->csum = cs; in metronome_display_cmd()
336 par->metromem_cmd->opcode = opcode; /* display cmd */ in metronome_display_cmd()
347 par->metromem_cmd->opcode = 0x1234; /* pwr up pseudo cmd */ in metronome_powerup_cmd()
348 cs = par->metromem_cmd->opcode; in metronome_powerup_cmd()
352 par->metromem_cmd->args[i] = 1024; in metronome_powerup_cmd()
353 cs += par->metromem_cmd->args[i]; in metronome_powerup_cmd()
357 memset(&par->metromem_cmd->args[i], 0, in metronome_powerup_cmd()
358 (ARRAY_SIZE(par->metromem_cmd->args) - i) * 2); in metronome_powerup_cmd()
360 par->metromem_cmd->csum = cs; in metronome_powerup_cmd()
377 memcpy(par->metromem_cmd->args, epd_frame_table[par->dt].config, in metronome_config_cmd()
380 memset(&par->metromem_cmd->args[4], 0, in metronome_config_cmd()
381 (ARRAY_SIZE(par->metromem_cmd->args) - 4) * 2); in metronome_config_cmd()
383 par->metromem_cmd->csum = 0xCC10; in metronome_config_cmd()
384 par->metromem_cmd->csum += calc_img_cksum(par->metromem_cmd->args, 4); in metronome_config_cmd()
385 par->metromem_cmd->opcode = 0xCC10; /* config cmd */ in metronome_config_cmd()
404 par->metromem_cmd->args[i] = 0; in metronome_init_cmd()
405 cs += par->metromem_cmd->args[i++]; in metronome_init_cmd()
408 memset((u8 *) (par->metromem_cmd->args + i), 0, (32-i)*2); in metronome_init_cmd()
410 par->metromem_cmd->csum = cs; in metronome_init_cmd()
411 par->metromem_cmd->opcode = 0xCC20; /* init cmd */ in metronome_init_cmd()