| /openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn10/ |
| H A D | dcn10_dwb.c | 45 static bool dwb1_get_caps(struct dwbc *dwbc, struct dwb_caps *caps) in dwb1_get_caps() argument 47 if (caps) { in dwb1_get_caps() 48 caps->adapter_id = 0; /* we only support 1 adapter currently */ in dwb1_get_caps() 49 caps->hw_version = DCN_VERSION_1_0; in dwb1_get_caps() 50 caps->num_pipes = 2; in dwb1_get_caps() 51 memset(&caps->reserved, 0, sizeof(caps->reserved)); in dwb1_get_caps() 52 memset(&caps->reserved2, 0, sizeof(caps->reserved2)); in dwb1_get_caps() 53 caps->sw_version = dwb_ver_1_0; in dwb1_get_caps() 54 caps->caps.support_dwb = true; in dwb1_get_caps() 55 caps->caps.support_ogam = false; in dwb1_get_caps() [all …]
|
| H A D | dcn10_resource.c | 638 ctx->dc->caps.extended_aux_timeout_support); in dcn10_aux_engine_create() 1150 …enum dc_status dcn10_validate_plane(const struct dc_plane_state *plane_state, struct dc_caps *caps) in dcn10_validate_plane() argument 1153 && caps->max_video_width != 0 in dcn10_validate_plane() 1154 && plane_state->src_rect.width > caps->max_video_width) in dcn10_validate_plane() 1342 dc->caps.max_video_width = 3840; in dcn10_resource_construct() 1343 dc->caps.max_downscale_ratio = 200; in dcn10_resource_construct() 1344 dc->caps.i2c_speed_in_khz = 100; in dcn10_resource_construct() 1345 dc->caps.i2c_speed_in_khz_hdcp = 100; /*1.4 w/a not applied by default*/ in dcn10_resource_construct() 1346 dc->caps.max_cursor_size = 256; in dcn10_resource_construct() 1347 dc->caps.min_horizontal_blanking_period = 80; in dcn10_resource_construct() [all …]
|
| /openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn30/ |
| H A D | dcn30_dwb.c | 46 static bool dwb3_get_caps(struct dwbc *dwbc, struct dwb_caps *caps) in dwb3_get_caps() argument 48 if (caps) { in dwb3_get_caps() 49 caps->adapter_id = 0; /* we only support 1 adapter currently */ in dwb3_get_caps() 50 caps->hw_version = DCN_VERSION_3_0; in dwb3_get_caps() 51 caps->num_pipes = 2; in dwb3_get_caps() 52 memset(&caps->reserved, 0, sizeof(caps->reserved)); in dwb3_get_caps() 53 memset(&caps->reserved2, 0, sizeof(caps->reserved2)); in dwb3_get_caps() 54 caps->sw_version = dwb_ver_2_0; in dwb3_get_caps() 55 caps->caps.support_dwb = true; in dwb3_get_caps() 56 caps->caps.support_ogam = true; in dwb3_get_caps() [all …]
|
| H A D | dcn30_resource.c | 796 ctx->dc->caps.extended_aux_timeout_support); in dcn30_aux_engine_create() 1974 if (!dc->caps.dmub_caps.mclk_sw) in dcn30_can_support_mclk_switch_using_fw_based_vblank_stretch() 2282 dc->caps.max_downscale_ratio = 600; in dcn30_resource_construct() 2283 dc->caps.i2c_speed_in_khz = 100; in dcn30_resource_construct() 2284 dc->caps.i2c_speed_in_khz_hdcp = 100; /*1.4 w/a not applied by default*/ in dcn30_resource_construct() 2285 dc->caps.max_cursor_size = 256; in dcn30_resource_construct() 2286 dc->caps.min_horizontal_blanking_period = 80; in dcn30_resource_construct() 2287 dc->caps.dmdata_alloc_size = 2048; in dcn30_resource_construct() 2288 dc->caps.mall_size_per_mem_channel = 8; in dcn30_resource_construct() 2290 dc->caps in dcn30_resource_construct() [all...] |
| /openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn20/ |
| H A D | dcn20_dwb.c | 50 static bool dwb2_get_caps(struct dwbc *dwbc, struct dwb_caps *caps) in dwb2_get_caps() argument 53 if (caps) { in dwb2_get_caps() 54 caps->adapter_id = 0; /* we only support 1 adapter currently */ in dwb2_get_caps() 55 caps->hw_version = DCN_VERSION_2_0; in dwb2_get_caps() 56 caps->num_pipes = 1; in dwb2_get_caps() 57 memset(&caps->reserved, 0, sizeof(caps->reserved)); in dwb2_get_caps() 58 memset(&caps->reserved2, 0, sizeof(caps->reserved2)); in dwb2_get_caps() 59 caps->sw_version = dwb_ver_1_0; in dwb2_get_caps() 60 caps->caps.support_dwb = true; in dwb2_get_caps() 61 caps->caps.support_ogam = false; in dwb2_get_caps() [all …]
|
| /openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn302/ |
| H A D | dcn302_resource.c | 792 &aux_engine_regs[inst], &aux_mask, &aux_shift, ctx->dc->caps.extended_aux_timeout_support); in dcn302_aux_engine_create() 1215 dc->caps.max_downscale_ratio = 600; in dcn302_resource_construct() 1216 dc->caps.i2c_speed_in_khz = 100; in dcn302_resource_construct() 1217 dc->caps.i2c_speed_in_khz_hdcp = 5; /*1.4 w/a applied by derfault*/ in dcn302_resource_construct() 1218 dc->caps.max_cursor_size = 256; in dcn302_resource_construct() 1219 dc->caps.min_horizontal_blanking_period = 80; in dcn302_resource_construct() 1220 dc->caps.dmdata_alloc_size = 2048; in dcn302_resource_construct() 1221 dc->caps.mall_size_per_mem_channel = 4; in dcn302_resource_construct() 1223 …dc->caps.mall_size_total = dc->caps.mall_size_per_mem_channel * dc->ctx->dc_bios->vram_info.num_ch… in dcn302_resource_construct() 1224 dc->caps.cursor_cache_size = dc->caps.max_cursor_size * dc->caps.max_cursor_size * 8; in dcn302_resource_construct() [all …]
|
| /openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn201/ |
| H A D | dcn201_resource.c | 688 ctx->dc->caps.extended_aux_timeout_support); in dcn201_aux_engine_create() 1098 dc->caps.max_downscale_ratio = 200; in dcn201_resource_construct() 1099 dc->caps.i2c_speed_in_khz = 100; in dcn201_resource_construct() 1100 dc->caps.i2c_speed_in_khz_hdcp = 5; /*1.5 w/a applied by default*/ in dcn201_resource_construct() 1101 dc->caps.max_cursor_size = 256; in dcn201_resource_construct() 1102 dc->caps.min_horizontal_blanking_period = 80; in dcn201_resource_construct() 1103 dc->caps.dmdata_alloc_size = 2048; in dcn201_resource_construct() 1105 dc->caps.max_slave_planes = 1; in dcn201_resource_construct() 1106 dc->caps.max_slave_yuv_planes = 1; in dcn201_resource_construct() 1107 dc->caps.max_slave_rgb_planes = 1; in dcn201_resource_construct() [all …]
|
| /openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn303/ |
| H A D | dcn303_resource.c | 732 &aux_engine_regs[inst], &aux_mask, &aux_shift, ctx->dc->caps.extended_aux_timeout_support); in dcn303_aux_engine_create() 1138 dc->caps.max_downscale_ratio = 600; in dcn303_resource_construct() 1139 dc->caps.i2c_speed_in_khz = 100; in dcn303_resource_construct() 1140 dc->caps.i2c_speed_in_khz_hdcp = 5; /*1.4 w/a applied by derfault*/ in dcn303_resource_construct() 1141 dc->caps.max_cursor_size = 256; in dcn303_resource_construct() 1142 dc->caps.min_horizontal_blanking_period = 80; in dcn303_resource_construct() 1143 dc->caps.dmdata_alloc_size = 2048; in dcn303_resource_construct() 1144 dc->caps.mall_size_per_mem_channel = 4; in dcn303_resource_construct() 1146 dc->caps.mall_size_total = dc->caps.mall_size_per_mem_channel * in dcn303_resource_construct() 1149 dc->caps.cursor_cache_size = in dcn303_resource_construct() [all …]
|
| /openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn321/ |
| H A D | dcn321_resource.c | 760 ctx->dc->caps.extended_aux_timeout_support); in dcn321_aux_engine_create() 1689 dc->caps.max_downscale_ratio = 600; in dcn321_resource_construct() 1690 dc->caps.i2c_speed_in_khz = 100; in dcn321_resource_construct() 1691 dc->caps.i2c_speed_in_khz_hdcp = 100; /*1.4 w/a applied by default*/ in dcn321_resource_construct() 1693 dc->caps.max_cursor_size = 64; in dcn321_resource_construct() 1694 dc->caps.min_horizontal_blanking_period = 80; in dcn321_resource_construct() 1695 dc->caps.dmdata_alloc_size = 2048; in dcn321_resource_construct() 1696 dc->caps.mall_size_per_mem_channel = 4; in dcn321_resource_construct() 1697 dc->caps.mall_size_total = 0; in dcn321_resource_construct() 1698 dc->caps in dcn321_resource_construct() [all...] |
| /openbsd-src/sys/dev/gpio/ |
| H A D | gpioiic.c | 113 int caps; in gpioiic_attach() local 139 caps = gpio_pin_caps(sc->sc_gpio, &sc->sc_map, sc->sc_pin_sda); in gpioiic_attach() 140 if (!(caps & GPIO_PIN_OUTPUT)) { in gpioiic_attach() 144 if (!(caps & GPIO_PIN_INPUT)) { in gpioiic_attach() 150 if (caps & GPIO_PIN_OPENDRAIN) { in gpioiic_attach() 153 } else if ((caps & GPIO_PIN_PUSHPULL) && (caps & GPIO_PIN_TRISTATE)) { in gpioiic_attach() 157 if (caps & GPIO_PIN_PULLUP) { in gpioiic_attach() 164 caps = gpio_pin_caps(sc->sc_gpio, &sc->sc_map, sc->sc_pin_scl); in gpioiic_attach() 165 if (!(caps & GPIO_PIN_OUTPUT)) { in gpioiic_attach() 171 if (caps & GPIO_PIN_OPENDRAIN) { in gpioiic_attach() [all …]
|
| H A D | gpioow.c | 99 int caps; in gpioow_attach() local 117 caps = gpio_pin_caps(sc->sc_gpio, &sc->sc_map, GPIOOW_PIN_DATA); in gpioow_attach() 118 if (!(caps & GPIO_PIN_OUTPUT)) { in gpioow_attach() 122 if (!(caps & GPIO_PIN_INPUT)) { in gpioow_attach() 128 if (caps & GPIO_PIN_OPENDRAIN) { in gpioow_attach() 131 } else if ((caps & GPIO_PIN_PUSHPULL) && (caps & GPIO_PIN_TRISTATE)) { in gpioow_attach() 135 if (caps & GPIO_PIN_PULLUP) { in gpioow_attach()
|
| /openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn301/ |
| H A D | dcn301_resource.c | 756 ctx->dc->caps.extended_aux_timeout_support); in dcn301_aux_engine_create() 1422 dc->caps.max_downscale_ratio = 600; in dcn301_resource_construct() 1423 dc->caps.i2c_speed_in_khz = 100; in dcn301_resource_construct() 1424 dc->caps.i2c_speed_in_khz_hdcp = 5; /*1.4 w/a enabled by default*/ in dcn301_resource_construct() 1425 dc->caps.max_cursor_size = 256; in dcn301_resource_construct() 1426 dc->caps.min_horizontal_blanking_period = 80; in dcn301_resource_construct() 1427 dc->caps.dmdata_alloc_size = 2048; in dcn301_resource_construct() 1428 dc->caps.max_slave_planes = 2; in dcn301_resource_construct() 1429 dc->caps.max_slave_yuv_planes = 2; in dcn301_resource_construct() 1430 dc->caps.max_slave_rgb_planes = 2; in dcn301_resource_construct() [all …]
|
| /openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn21/ |
| H A D | dcn21_resource.c | 533 ctx->dc->caps.extended_aux_timeout_support); in dcn21_aux_engine_create() 1430 dc->caps.max_downscale_ratio = 200; in dcn21_resource_construct() 1431 dc->caps.i2c_speed_in_khz = 100; in dcn21_resource_construct() 1432 dc->caps.i2c_speed_in_khz_hdcp = 5; /*1.4 w/a applied by default*/ in dcn21_resource_construct() 1433 dc->caps.max_cursor_size = 256; in dcn21_resource_construct() 1434 dc->caps.min_horizontal_blanking_period = 80; in dcn21_resource_construct() 1435 dc->caps.dmdata_alloc_size = 2048; in dcn21_resource_construct() 1437 dc->caps.max_slave_planes = 1; in dcn21_resource_construct() 1438 dc->caps.max_slave_yuv_planes = 1; in dcn21_resource_construct() 1439 dc->caps.max_slave_rgb_planes = 1; in dcn21_resource_construct() [all …]
|
| /openbsd-src/sys/arch/loongson/dev/ |
| H A D | gdiumiic.c | 148 int caps; in gdiumiic_attach() local 166 caps = gpio_pin_caps(sc->sc_gpio, &sc->sc_map, GPIOIIC_PIN_SDA); in gdiumiic_attach() 167 if (!(caps & GPIO_PIN_OUTPUT)) { in gdiumiic_attach() 171 if (!(caps & GPIO_PIN_INPUT)) { in gdiumiic_attach() 178 if (caps & GPIO_PIN_OPENDRAIN) { in gdiumiic_attach() 181 } else if ((caps & GPIO_PIN_PUSHPULL) && (caps & GPIO_PIN_TRISTATE)) { in gdiumiic_attach() 185 if (caps & GPIO_PIN_PULLUP) { in gdiumiic_attach() 193 caps = gpio_pin_caps(sc->sc_gpio, &sc->sc_map, GPIOIIC_PIN_SCL); in gdiumiic_attach() 194 if (!(caps & GPIO_PIN_OUTPUT)) { in gdiumiic_attach() 201 if (caps & GPIO_PIN_OPENDRAIN) { in gdiumiic_attach() [all …]
|
| /openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn316/ |
| H A D | dcn316_resource.c | 957 ctx->dc->caps.extended_aux_timeout_support); in dcn31_aux_engine_create() 1745 dc->caps.max_downscale_ratio = 600; in dcn316_resource_construct() 1746 dc->caps.i2c_speed_in_khz = 100; in dcn316_resource_construct() 1747 dc->caps.i2c_speed_in_khz_hdcp = 5; /*1.5 w/a applied by default*/ in dcn316_resource_construct() 1748 dc->caps.max_cursor_size = 256; in dcn316_resource_construct() 1749 dc->caps.min_horizontal_blanking_period = 80; in dcn316_resource_construct() 1750 dc->caps.dmdata_alloc_size = 2048; in dcn316_resource_construct() 1751 dc->caps.max_slave_planes = 2; in dcn316_resource_construct() 1752 dc->caps.max_slave_yuv_planes = 2; in dcn316_resource_construct() 1753 dc->caps in dcn316_resource_construct() [all...] |
| /openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn314/ |
| H A D | dcn314_resource.c | 1013 ctx->dc->caps.extended_aux_timeout_support); in dcn31_aux_engine_create() 1862 dc->caps.max_downscale_ratio = 400; in dcn314_resource_construct() 1863 dc->caps.i2c_speed_in_khz = 100; in dcn314_resource_construct() 1864 dc->caps.i2c_speed_in_khz_hdcp = 100; in dcn314_resource_construct() 1865 dc->caps.max_cursor_size = 256; in dcn314_resource_construct() 1866 dc->caps.min_horizontal_blanking_period = 80; in dcn314_resource_construct() 1867 dc->caps.dmdata_alloc_size = 2048; in dcn314_resource_construct() 1868 dc->caps.max_slave_planes = 2; in dcn314_resource_construct() 1869 dc->caps.max_slave_yuv_planes = 2; in dcn314_resource_construct() 1870 dc->caps in dcn314_resource_construct() [all...] |
| /openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn32/ |
| H A D | dcn32_resource.c | 761 ctx->dc->caps.extended_aux_timeout_support); in dcn32_aux_engine_create() 2146 dc->caps.max_downscale_ratio = 600; in dcn32_resource_construct() 2147 dc->caps.i2c_speed_in_khz = 100; in dcn32_resource_construct() 2148 dc->caps.i2c_speed_in_khz_hdcp = 100; /*1.4 w/a applied by default*/ in dcn32_resource_construct() 2150 dc->caps.max_cursor_size = 64; in dcn32_resource_construct() 2151 dc->caps.min_horizontal_blanking_period = 80; in dcn32_resource_construct() 2152 dc->caps.dmdata_alloc_size = 2048; in dcn32_resource_construct() 2153 dc->caps.mall_size_per_mem_channel = 4; in dcn32_resource_construct() 2154 dc->caps.mall_size_total = 0; in dcn32_resource_construct() 2155 dc->caps in dcn32_resource_construct() [all...] |
| /openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn315/ |
| H A D | dcn315_resource.c | 961 ctx->dc->caps.extended_aux_timeout_support); in dcn31_aux_engine_create() 1858 dc->caps.max_downscale_ratio = 600; in dcn315_resource_construct() 1859 dc->caps.i2c_speed_in_khz = 100; in dcn315_resource_construct() 1860 dc->caps.i2c_speed_in_khz_hdcp = 100; in dcn315_resource_construct() 1861 dc->caps.max_cursor_size = 256; in dcn315_resource_construct() 1862 dc->caps.min_horizontal_blanking_period = 80; in dcn315_resource_construct() 1863 dc->caps.dmdata_alloc_size = 2048; in dcn315_resource_construct() 1864 dc->caps.max_slave_planes = 2; in dcn315_resource_construct() 1865 dc->caps.max_slave_yuv_planes = 2; in dcn315_resource_construct() 1866 dc->caps in dcn315_resource_construct() [all...] |
| /openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn31/ |
| H A D | dcn31_resource.c | 963 ctx->dc->caps.extended_aux_timeout_support); in dcn31_aux_engine_create() 1889 dc->caps.max_downscale_ratio = 600; in dcn31_resource_construct() 1890 dc->caps.i2c_speed_in_khz = 100; in dcn31_resource_construct() 1891 dc->caps.i2c_speed_in_khz_hdcp = 5; /*1.4 w/a applied by default*/ in dcn31_resource_construct() 1892 dc->caps.max_cursor_size = 256; in dcn31_resource_construct() 1893 dc->caps.min_horizontal_blanking_period = 80; in dcn31_resource_construct() 1894 dc->caps.dmdata_alloc_size = 2048; in dcn31_resource_construct() 1896 dc->caps.max_slave_planes = 2; in dcn31_resource_construct() 1897 dc->caps.max_slave_yuv_planes = 2; in dcn31_resource_construct() 1898 dc->caps in dcn31_resource_construct() [all...] |
| /openbsd-src/sys/dev/pci/drm/amd/display/dc/dce80/ |
| H A D | dce80_resource.c | 546 ctx->dc->caps.extended_aux_timeout_support); in dce80_aux_engine_create() 969 dc->caps.max_downscale_ratio = 200; in dce80_construct() 970 dc->caps.i2c_speed_in_khz = 40; in dce80_construct() 971 dc->caps.i2c_speed_in_khz_hdcp = 40; in dce80_construct() 972 dc->caps.max_cursor_size = 128; in dce80_construct() 973 dc->caps.min_horizontal_blanking_period = 80; in dce80_construct() 974 dc->caps.dual_link_dvi = true; in dce80_construct() 975 dc->caps.extended_aux_timeout_support = false; in dce80_construct() 1111 dc->caps.max_planes = pool->base.pipe_count; in dce80_construct() 1113 for (i = 0; i < dc->caps.max_planes; ++i) in dce80_construct() [all …]
|
| /openbsd-src/sys/dev/pci/drm/amd/display/dc/link/ |
| H A D | link_resource.c | 60 if (dc->caps.dp_hpo) { in link_get_cur_res_map() 61 for (i = 0; i < dc->caps.max_links; i++) { in link_get_cur_res_map() 83 if (dc->caps.dp_hpo) { in link_restore_res_map() 86 for (i = 0; i < dc->caps.max_links; i++) { in link_restore_res_map() 100 for (i = 0; i < dc->caps.max_links; i++) { in link_restore_res_map()
|
| /openbsd-src/usr.bin/radioctl/ |
| H A D | radioctl.c | 249 if (o->option == OPTION_SEARCH && !(ri.caps & RADIO_CAPS_HW_SEARCH)) { in do_ioctls() 304 if (ri.caps & RADIO_CAPS_REFERENCE_FREQ) in change_value() 312 if (ri.caps & RADIO_CAPS_SET_MONO) in change_value() 318 if (ri.caps & RADIO_CAPS_LOCK_SENSITIVITY) in change_value() 592 if (ri.caps & RADIO_CAPS_REFERENCE_FREQ) in print_vars() 594 if (ri.caps & RADIO_CAPS_LOCK_SENSITIVITY) in print_vars() 597 if (ri.caps & RADIO_CAPS_DETECT_SIGNAL) { in print_vars() 601 if (ri.caps & RADIO_CAPS_DETECT_STEREO) { in print_vars() 613 if (ri.caps & RADIO_CAPS_SET_MONO) in print_vars() 615 if (ri.caps & RADIO_CAPS_HW_SEARCH) in print_vars() [all …]
|
| /openbsd-src/sys/dev/pci/drm/amd/display/dc/dce60/ |
| H A D | dce60_resource.c | 539 ctx->dc->caps.extended_aux_timeout_support); in dce60_aux_engine_create() 962 dc->caps.max_downscale_ratio = 200; in dce60_construct() 963 dc->caps.i2c_speed_in_khz = 40; in dce60_construct() 964 dc->caps.max_cursor_size = 64; in dce60_construct() 965 dc->caps.dual_link_dvi = true; in dce60_construct() 966 dc->caps.extended_aux_timeout_support = false; in dce60_construct() 1097 dc->caps.max_planes = pool->base.pipe_count; in dce60_construct() 1099 for (i = 0; i < dc->caps.max_planes; ++i) in dce60_construct() 1100 dc->caps.planes[i] = plane_cap; in dce60_construct() 1102 dc->caps.disable_dp_clk_share = true; in dce60_construct() [all …]
|
| /openbsd-src/lib/libcurses/ |
| H A D | MKterminfo.sh | 55 caps= 58 caps="$caps $1"
|
| /openbsd-src/sys/dev/sdmmc/ |
| H A D | sdhc.c | 246 uint32_t caps; in sdhc_host_found() local 273 caps = HREAD4(hp, SDHC_CAPABILITIES); in sdhc_host_found() 274 caps &= ~capmask; in sdhc_host_found() 275 caps |= capset; in sdhc_host_found() 278 if (usedma && ISSET(caps, SDHC_ADMA2_SUPP)) { in sdhc_host_found() 280 if (ISSET(caps, SDHC_64BIT_DMA_SUPP)) in sdhc_host_found() 290 if (SDHC_BASE_FREQ_KHZ_V3(caps) != 0) in sdhc_host_found() 291 hp->clkbase = SDHC_BASE_FREQ_KHZ_V3(caps); in sdhc_host_found() 295 if (SDHC_BASE_FREQ_KHZ(caps) != 0) in sdhc_host_found() 296 hp->clkbase = SDHC_BASE_FREQ_KHZ(caps); in sdhc_host_found() [all...] |