Lines Matching defs:cmd
295 #define SDVO_CMD_NAME_ENTRY(cmd) {cmd, #cmd}
298 u8 cmd;
416 static void intel_sdvo_debug_write(struct intel_sdvo *intel_sdvo, u8 cmd,
422 SDVO_NAME(intel_sdvo), cmd);
428 if (cmd == sdvo_cmd_names[i].cmd) {
434 DRM_LOG_KMS("(%02X)", cmd);
448 static bool intel_sdvo_write_cmd(struct intel_sdvo *intel_sdvo, u8 cmd,
466 intel_sdvo_debug_write(intel_sdvo, cmd, args, args_len);
481 buf[2*i + 1] = cmd;
599 static bool intel_sdvo_set_value(struct intel_sdvo *intel_sdvo, u8 cmd, const void *data, int len)
601 if (!intel_sdvo_write_cmd(intel_sdvo, cmd, data, len))
608 intel_sdvo_get_value(struct intel_sdvo *intel_sdvo, u8 cmd, void *value, int len)
610 if (!intel_sdvo_write_cmd(intel_sdvo, cmd, NULL, 0))
708 static bool intel_sdvo_set_timing(struct intel_sdvo *intel_sdvo, u8 cmd,
711 return intel_sdvo_set_value(intel_sdvo, cmd, &dtd->part1, sizeof(dtd->part1)) &&
712 intel_sdvo_set_value(intel_sdvo, cmd + 1, &dtd->part2, sizeof(dtd->part2));
715 static bool intel_sdvo_get_timing(struct intel_sdvo *intel_sdvo, u8 cmd,
718 return intel_sdvo_get_value(intel_sdvo, cmd, &dtd->part1, sizeof(dtd->part1)) &&
719 intel_sdvo_get_value(intel_sdvo, cmd + 1, &dtd->part2, sizeof(dtd->part2));
2013 uint8_t cmd;
2074 cmd = SDVO_CMD_SET_##NAME; \
2101 cmd = SDVO_CMD_SET_OVERSCAN_H;
2113 cmd = SDVO_CMD_SET_OVERSCAN_H;
2125 cmd = SDVO_CMD_SET_OVERSCAN_V;
2137 cmd = SDVO_CMD_SET_OVERSCAN_V;
2158 if (!intel_sdvo_set_value(intel_sdvo, cmd, &temp_value, 2))