Lines Matching refs:value
1002 uint64_t value, unsigned size) in sm501_system_config_write() argument
1006 trace_sm501_system_config_write((uint32_t)addr, (uint32_t)value); in sm501_system_config_write()
1010 s->system_control |= value & 0xEF00B8F7; in sm501_system_config_write()
1014 s->misc_control |= value & 0xFF7FFF10; in sm501_system_config_write()
1017 s->gpio_31_0_control = value; in sm501_system_config_write()
1020 s->gpio_63_32_control = value & 0xFF80FFFF; in sm501_system_config_write()
1023 s->local_mem_size_index = (value >> 13) & 0x7; in sm501_system_config_write()
1026 s->dram_control |= value & 0x7FFFFFC3; in sm501_system_config_write()
1029 s->arbitration_control = value & 0x37777777; in sm501_system_config_write()
1032 s->irq_mask = value & 0xFFDF3F5F; in sm501_system_config_write()
1035 s->misc_timing = value & 0xF31F1FFF; in sm501_system_config_write()
1044 s->power_mode_control = value & 0x00000003; in sm501_system_config_write()
1047 if (value & 0x00000001) { in sm501_system_config_write()
1056 ", val=%" PRIx64 "\n", addr, value); in sm501_system_config_write()
1096 static void sm501_i2c_write(void *opaque, hwaddr addr, uint64_t value, in sm501_i2c_write() argument
1101 trace_sm501_i2c_write((uint32_t)addr, (uint32_t)value); in sm501_i2c_write()
1104 s->i2c_byte_count = value & 0xf; in sm501_i2c_write()
1107 if (value & SM501_I2C_CONTROL_ENABLE) { in sm501_i2c_write()
1108 if (value & SM501_I2C_CONTROL_START) { in sm501_i2c_write()
1136 if ((value & SM501_I2C_RESET_ERROR) == 0) { in sm501_i2c_write()
1141 s->i2c_addr = value & 0xff; in sm501_i2c_write()
1144 s->i2c_data[addr - SM501_I2C_DATA] = value & 0xff; in sm501_i2c_write()
1148 "addr=0x%" HWADDR_PRIx " val=%" PRIx64 "\n", addr, value); in sm501_i2c_write()
1180 uint32_t value) in sm501_palette_write() argument
1184 trace_sm501_palette_write((uint32_t)addr, value); in sm501_palette_write()
1190 *(uint32_t *)&s->dc_palette[addr] = value; in sm501_palette_write()
1308 uint64_t value, unsigned size) in sm501_disp_ctrl_write() argument
1312 trace_sm501_disp_ctrl_write((uint32_t)addr, (uint32_t)value); in sm501_disp_ctrl_write()
1315 s->dc_panel_control = value & 0x0FFF73FF; in sm501_disp_ctrl_write()
1318 s->dc_panel_panning_control = value & 0xFF3FFF3F; in sm501_disp_ctrl_write()
1324 s->dc_panel_fb_addr = value & 0x8FFFFFF0; in sm501_disp_ctrl_write()
1325 if (value & 0x8000000) { in sm501_disp_ctrl_write()
1331 s->dc_panel_fb_offset = value & 0x3FF03FF0; in sm501_disp_ctrl_write()
1334 s->dc_panel_fb_width = value & 0x0FFF0FFF; in sm501_disp_ctrl_write()
1337 s->dc_panel_fb_height = value & 0x0FFF0FFF; in sm501_disp_ctrl_write()
1340 s->dc_panel_tl_location = value & 0x07FF07FF; in sm501_disp_ctrl_write()
1343 s->dc_panel_br_location = value & 0x07FF07FF; in sm501_disp_ctrl_write()
1347 s->dc_panel_h_total = value & 0x0FFF0FFF; in sm501_disp_ctrl_write()
1350 s->dc_panel_h_sync = value & 0x00FF0FFF; in sm501_disp_ctrl_write()
1353 s->dc_panel_v_total = value & 0x0FFF0FFF; in sm501_disp_ctrl_write()
1356 s->dc_panel_v_sync = value & 0x003F0FFF; in sm501_disp_ctrl_write()
1360 value &= 0x8FFFFFF0; in sm501_disp_ctrl_write()
1361 if (value != s->dc_panel_hwc_addr) { in sm501_disp_ctrl_write()
1363 s->dc_panel_hwc_addr = value; in sm501_disp_ctrl_write()
1367 value &= 0x0FFF0FFF; in sm501_disp_ctrl_write()
1368 if (value != s->dc_panel_hwc_location) { in sm501_disp_ctrl_write()
1370 s->dc_panel_hwc_location = value; in sm501_disp_ctrl_write()
1374 s->dc_panel_hwc_color_1_2 = value; in sm501_disp_ctrl_write()
1377 s->dc_panel_hwc_color_3 = value & 0x0000FFFF; in sm501_disp_ctrl_write()
1381 s->dc_video_control = value & 0x00037FFF; in sm501_disp_ctrl_write()
1385 s->dc_crt_control = value & 0x0003FFFF; in sm501_disp_ctrl_write()
1388 s->dc_crt_fb_addr = value & 0x8FFFFFF0; in sm501_disp_ctrl_write()
1389 if (value & 0x8000000) { in sm501_disp_ctrl_write()
1395 s->dc_crt_fb_offset = value & 0x3FF03FF0; in sm501_disp_ctrl_write()
1398 s->dc_crt_h_total = value & 0x0FFF0FFF; in sm501_disp_ctrl_write()
1401 s->dc_crt_h_sync = value & 0x00FF0FFF; in sm501_disp_ctrl_write()
1404 s->dc_crt_v_total = value & 0x0FFF0FFF; in sm501_disp_ctrl_write()
1407 s->dc_crt_v_sync = value & 0x003F0FFF; in sm501_disp_ctrl_write()
1411 value &= 0x8FFFFFF0; in sm501_disp_ctrl_write()
1412 if (value != s->dc_crt_hwc_addr) { in sm501_disp_ctrl_write()
1414 s->dc_crt_hwc_addr = value; in sm501_disp_ctrl_write()
1418 value &= 0x0FFF0FFF; in sm501_disp_ctrl_write()
1419 if (value != s->dc_crt_hwc_location) { in sm501_disp_ctrl_write()
1421 s->dc_crt_hwc_location = value; in sm501_disp_ctrl_write()
1425 s->dc_crt_hwc_color_1_2 = value; in sm501_disp_ctrl_write()
1428 s->dc_crt_hwc_color_3 = value & 0x0000FFFF; in sm501_disp_ctrl_write()
1432 sm501_palette_write(opaque, addr - SM501_DC_PANEL_PALETTE, value); in sm501_disp_ctrl_write()
1438 ", val=%" PRIx64 "\n", addr, value); in sm501_disp_ctrl_write()
1531 uint64_t value, unsigned size) in sm501_2d_engine_write() argument
1535 trace_sm501_2d_engine_write((uint32_t)addr, (uint32_t)value); in sm501_2d_engine_write()
1538 s->twoD_source = value; in sm501_2d_engine_write()
1541 s->twoD_destination = value; in sm501_2d_engine_write()
1544 s->twoD_dimension = value; in sm501_2d_engine_write()
1547 s->twoD_control = value; in sm501_2d_engine_write()
1550 if (value & 0x80000000) { in sm501_2d_engine_write()
1557 s->twoD_pitch = value; in sm501_2d_engine_write()
1560 s->twoD_foreground = value; in sm501_2d_engine_write()
1563 s->twoD_background = value; in sm501_2d_engine_write()
1566 if (((value >> 20) & 3) == 3) { in sm501_2d_engine_write()
1567 value &= ~BIT(20); in sm501_2d_engine_write()
1569 s->twoD_stretch = value; in sm501_2d_engine_write()
1572 s->twoD_color_compare = value; in sm501_2d_engine_write()
1575 s->twoD_color_compare_mask = value; in sm501_2d_engine_write()
1578 s->twoD_mask = value; in sm501_2d_engine_write()
1581 s->twoD_clip_tl = value; in sm501_2d_engine_write()
1584 s->twoD_clip_br = value; in sm501_2d_engine_write()
1587 s->twoD_mono_pattern_low = value; in sm501_2d_engine_write()
1590 s->twoD_mono_pattern_high = value; in sm501_2d_engine_write()
1593 s->twoD_window_width = value; in sm501_2d_engine_write()
1596 s->twoD_source_base = value; in sm501_2d_engine_write()
1599 s->twoD_destination_base = value; in sm501_2d_engine_write()
1602 s->twoD_alpha = value; in sm501_2d_engine_write()
1605 s->twoD_wrap = value; in sm501_2d_engine_write()
1613 ", val=%" PRIx64 "\n", addr, value); in sm501_2d_engine_write()