Lines Matching +full:edge +full:- +full:offset

1 // SPDX-License-Identifier: GPL-2.0
20 release_firmware(ast->dp501_fw); in ast_release_firmware()
21 ast->dp501_fw = NULL; in ast_release_firmware()
29 ret = request_firmware(&ast->dp501_fw, "ast_dp501_fw.bin", dev->dev); in ast_load_dp501_microcode()
33 return devm_add_action_or_reset(dev->dev, ast_release_firmware, ast); in ast_load_dp501_microcode()
197 if (ast->config_mode != ast_use_p2a) in ast_backup_fw()
218 if (ast->config_mode != ast_use_p2a) in ast_launch_m68k()
224 if (ast->dp501_fw_addr) { in ast_launch_m68k()
225 fw_addr = ast->dp501_fw_addr; in ast_launch_m68k()
228 if (!ast->dp501_fw && in ast_launch_m68k()
232 fw_addr = (u8 *)ast->dp501_fw->data; in ast_launch_m68k()
233 len = ast->dp501_fw->size; in ast_launch_m68k()
253 boot_address -= 0x200000; /* -2MB */ in ast_launch_m68k()
282 u32 boot_address, offset, data; in ast_dp501_is_connected() local
284 if (ast->config_mode == ast_use_p2a) { in ast_dp501_is_connected()
288 offset = AST_DP501_GBL_VERSION; in ast_dp501_is_connected()
289 data = ast_mindwm(ast, boot_address + offset); in ast_dp501_is_connected()
294 offset = AST_DP501_PNPMONITOR; in ast_dp501_is_connected()
295 data = ast_mindwm(ast, boot_address + offset); in ast_dp501_is_connected()
299 if (!ast->dp501_fw_buf) in ast_dp501_is_connected()
303 offset = 0x0000; in ast_dp501_is_connected()
304 data = readl(ast->dp501_fw_buf + offset); in ast_dp501_is_connected()
307 offset = AST_DP501_GBL_VERSION; in ast_dp501_is_connected()
308 data = readl(ast->dp501_fw_buf + offset); in ast_dp501_is_connected()
313 offset = AST_DP501_PNPMONITOR; in ast_dp501_is_connected()
314 data = readl(ast->dp501_fw_buf + offset); in ast_dp501_is_connected()
325 u32 i, boot_address, offset, ediddata; in ast_dp512_read_edid_block() local
328 return -EIO; in ast_dp512_read_edid_block()
330 offset = AST_DP501_EDID_DATA + block * EDID_LENGTH; in ast_dp512_read_edid_block()
332 if (ast->config_mode == ast_use_p2a) { in ast_dp512_read_edid_block()
336 ediddata = ast_mindwm(ast, boot_address + offset + i); in ast_dp512_read_edid_block()
337 memcpy(buf, &ediddata, min((len - i), 4)); in ast_dp512_read_edid_block()
342 ediddata = readl(ast->dp501_fw_buf + offset + i); in ast_dp512_read_edid_block()
343 memcpy(buf, &ediddata, min((len - i), 4)); in ast_dp512_read_edid_block()
371 /* multi-pins for DVO single-edge */ in ast_init_dvo()
376 /* multi-pins for DVO single-edge */ in ast_init_dvo()
381 /* multi-pins for DVO single-edge */ in ast_init_dvo()
387 /* multi-pins for DVO single-edge */ in ast_init_dvo()
392 /* multi-pins for DVO single-edge */ in ast_init_dvo()
397 /* multi-pins for DVO single-edge */ in ast_init_dvo()
402 /* multi-pins for DVO single-edge */ in ast_init_dvo()
407 /* multi-pins for DVO single-edge */ in ast_init_dvo()
469 if (ast->tx_chip_types & BIT(AST_TX_SIL164)) in ast_init_3rdtx()
488 struct drm_device *dev = encoder->dev; in ast_dp501_encoder_helper_atomic_enable()
496 struct drm_device *dev = encoder->dev; in ast_dp501_encoder_helper_atomic_disable()
515 if (ast_connector->physical_status == connector_status_connected) { in ast_dp501_connector_helper_get_modes()
516 struct ast_device *ast = to_ast_device(connector->dev); in ast_dp501_connector_helper_get_modes()
527 * There's no EDID data without a connected monitor. Set BMC- in ast_dp501_connector_helper_get_modes()
544 struct ast_device *ast = to_ast_device(connector->dev); in ast_dp501_connector_helper_detect_ctx()
550 if (status != ast_connector->physical_status) in ast_dp501_connector_helper_detect_ctx()
551 ++connector->epoch_counter; in ast_dp501_connector_helper_detect_ctx()
552 ast_connector->physical_status = status; in ast_dp501_connector_helper_detect_ctx()
581 connector->interlace_allowed = 0; in ast_dp501_connector_init()
582 connector->doublescan_allowed = 0; in ast_dp501_connector_init()
584 connector->polled = DRM_CONNECTOR_POLL_CONNECT | DRM_CONNECTOR_POLL_DISCONNECT; in ast_dp501_connector_init()
591 struct drm_device *dev = &ast->base; in ast_dp501_output_init()
592 struct drm_crtc *crtc = &ast->crtc; in ast_dp501_output_init()
593 struct drm_encoder *encoder = &ast->output.dp501.encoder; in ast_dp501_output_init()
594 struct ast_connector *ast_connector = &ast->output.dp501.connector; in ast_dp501_output_init()
595 struct drm_connector *connector = &ast_connector->base; in ast_dp501_output_init()
604 encoder->possible_crtcs = drm_crtc_mask(crtc); in ast_dp501_output_init()
609 ast_connector->physical_status = connector->status; in ast_dp501_output_init()