| /openbsd/src/sys/dev/pci/drm/amd/display/dc/clk_mgr/ |
| D | clk_mgr.c | 154 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create() 167 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create() 177 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create() 187 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create() 211 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create() 225 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create() 253 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create() 280 struct clk_mgr_vgh *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create() 292 struct clk_mgr_dcn31 *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create() 304 struct clk_mgr_dcn315 *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create() [all …]
|
| /openbsd/src/sys/dev/pci/drm/i915/selftests/ |
| D | i915_sw_fence.c | 50 fence = kmalloc(sizeof(*fence), GFP_KERNEL); in alloc_fence() 109 if (i915_sw_fence_await_sw_fence_gfp(A, A, GFP_KERNEL) != -EINVAL) { in test_dag() 120 i915_sw_fence_await_sw_fence_gfp(A, B, GFP_KERNEL); in test_dag() 121 if (i915_sw_fence_await_sw_fence_gfp(B, A, GFP_KERNEL) != -EINVAL) { in test_dag() 132 if (i915_sw_fence_await_sw_fence_gfp(B, C, GFP_KERNEL) == -EINVAL) { in test_dag() 136 if (i915_sw_fence_await_sw_fence_gfp(C, B, GFP_KERNEL) != -EINVAL) { in test_dag() 140 if (i915_sw_fence_await_sw_fence_gfp(C, A, GFP_KERNEL) != -EINVAL) { in test_dag() 144 if (i915_sw_fence_await_sw_fence_gfp(A, C, GFP_KERNEL) == -EINVAL) { in test_dag() 190 ret = i915_sw_fence_await_sw_fence_gfp(A, B, GFP_KERNEL); in test_AB() 245 ret = i915_sw_fence_await_sw_fence_gfp(A, B, GFP_KERNEL); in test_ABC() [all …]
|
| /openbsd/src/sys/dev/pci/drm/amd/display/dc/basics/ |
| D | amdgpu_vector.c | 43 vector->container = kcalloc(capacity, struct_size, GFP_KERNEL); in dal_vector_construct() 69 vector->container = kcalloc(count, struct_size, GFP_KERNEL); in dal_vector_presized_costruct() 97 struct vector *vector = kzalloc(sizeof(struct vector), GFP_KERNEL); in dal_vector_presized_create() 116 struct vector *vector = kzalloc(sizeof(struct vector), GFP_KERNEL); in dal_vector_create() 293 capacity * vector->struct_size, GFP_KERNEL); in dal_vector_reserve() 301 new_container = kmalloc(capacity * vector->struct_size, GFP_KERNEL); in dal_vector_reserve()
|
| /openbsd/src/sys/dev/pci/drm/i915/gem/selftests/ |
| D | mock_dmabuf.c | 18 st = kmalloc(sizeof(*st), GFP_KERNEL); in mock_map_dma_buf() 22 err = sg_alloc_table(st, mock->npages, GFP_KERNEL); in mock_map_dma_buf() 107 GFP_KERNEL); in mock_dmabuf() 113 mock->pages[i] = alloc_page(GFP_KERNEL); in mock_dmabuf()
|
| D | mock_context.c | 20 ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); in mock_context() 54 INIT_RADIX_TREE(&ctx->handles_vma, GFP_KERNEL); in mock_context() 97 err = xa_alloc(&fpriv->context_xa, &id, NULL, xa_limit_32b, GFP_KERNEL); in live_context()
|
| /openbsd/src/sys/dev/pci/drm/i915/ |
| D | i915_scatterlist.c | 24 if (sg_alloc_table(&new_st, orig_st->nents, GFP_KERNEL | __GFP_NOWARN)) in i915_sg_trim() 93 rsgt = kmalloc(sizeof(*rsgt), GFP_KERNEL | __GFP_NOWARN); in i915_rsgt_from_mm_node() 107 GFP_KERNEL | __GFP_NOWARN)) { in i915_rsgt_from_mm_node() 181 rsgt = kmalloc(sizeof(*rsgt), GFP_KERNEL | __GFP_NOWARN); in i915_rsgt_from_buddy_resource() 193 if (sg_alloc_table(st, PFN_UP(res->size), GFP_KERNEL | __GFP_NOWARN)) { in i915_rsgt_from_buddy_resource()
|
| D | i915_pmu.c | 1034 i915_attr = kcalloc(count, sizeof(*i915_attr), GFP_KERNEL); in create_event_attributes() 1038 pmu_attr = kcalloc(count, sizeof(*pmu_attr), GFP_KERNEL); in create_event_attributes() 1043 attr = kcalloc(count * 2 + 1, sizeof(*attr), GFP_KERNEL); in create_event_attributes() 1061 str = kstrdup(events[i].name, GFP_KERNEL); in create_event_attributes() 1063 str = kasprintf(GFP_KERNEL, "%s-gt%u", in create_event_attributes() 1073 str = kasprintf(GFP_KERNEL, "%s.unit", in create_event_attributes() 1076 str = kasprintf(GFP_KERNEL, "%s-gt%u.unit", in create_event_attributes() 1097 str = kasprintf(GFP_KERNEL, "%s-%s", in create_event_attributes() 1109 str = kasprintf(GFP_KERNEL, "%s-%s.unit", in create_event_attributes() 1270 pmu->name = kasprintf(GFP_KERNEL, in i915_pmu_register() [all …]
|
| /openbsd/src/sys/dev/pci/drm/amd/amdgpu/ |
| D | amdgpu_bios.c | 119 adev->bios = kmalloc(size, GFP_KERNEL); in amdgpu_read_bios_from_vram() 158 adev->bios = kmalloc(size, GFP_KERNEL); in amdgpu_read_bios_from_vram() 188 adev->bios = kzalloc(size, GFP_KERNEL); in amdgpu_read_bios() 230 adev->bios = kzalloc(size, GFP_KERNEL); in amdgpu_read_bios() 266 adev->bios = kmalloc(len, GFP_KERNEL); in amdgpu_read_bios_from_rom() 296 adev->bios = kzalloc(romlen, GFP_KERNEL); in amdgpu_read_platform_bios() 328 adev->bios = kzalloc(size, GFP_KERNEL); in amdgpu_read_platform_bios() 443 adev->bios = kmalloc(size, GFP_KERNEL); in amdgpu_atrm_get_bios() 521 GFP_KERNEL); in amdgpu_acpi_vfct_bios()
|
| D | isp_v4_1_1.c | 53 isp->isp_cell = kcalloc(2, sizeof(struct mfd_cell), GFP_KERNEL); in isp_v4_1_1_hw_init() 63 GFP_KERNEL); in isp_v4_1_1_hw_init() 70 isp->isp_pdata = kzalloc(sizeof(*isp->isp_pdata), GFP_KERNEL); in isp_v4_1_1_hw_init() 114 isp->isp_i2c_res = kcalloc(1, sizeof(struct resource), GFP_KERNEL); in isp_v4_1_1_hw_init()
|
| D | isp_v4_1_0.c | 53 isp->isp_cell = kcalloc(2, sizeof(struct mfd_cell), GFP_KERNEL); in isp_v4_1_0_hw_init() 62 GFP_KERNEL); in isp_v4_1_0_hw_init() 69 isp->isp_pdata = kzalloc(sizeof(*isp->isp_pdata), GFP_KERNEL); in isp_v4_1_0_hw_init() 114 GFP_KERNEL); in isp_v4_1_0_hw_init()
|
| D | amdgpu_acp.c | 255 adev->acp.acp_genpd = kzalloc(sizeof(struct acp_pm_domain), GFP_KERNEL); in acp_hw_init() 270 GFP_KERNEL); in acp_hw_init() 276 adev->acp.acp_res = kcalloc(3, sizeof(struct resource), GFP_KERNEL); in acp_hw_init() 282 i2s_pdata = kcalloc(1, sizeof(struct i2s_platform_data), GFP_KERNEL); in acp_hw_init() 332 GFP_KERNEL); in acp_hw_init() 339 adev->acp.acp_res = kcalloc(5, sizeof(struct resource), GFP_KERNEL); in acp_hw_init() 345 i2s_pdata = kcalloc(3, sizeof(struct i2s_platform_data), GFP_KERNEL); in acp_hw_init()
|
| D | amdgpu_pmu.c | 450 GFP_KERNEL); in amdgpu_pmu_alloc_pmu_attrs() 456 sizeof(*fmt_attr_group->attrs), GFP_KERNEL); in amdgpu_pmu_alloc_pmu_attrs() 461 *evt_attr = kcalloc(config->num_events, sizeof(**evt_attr), GFP_KERNEL); in amdgpu_pmu_alloc_pmu_attrs() 467 sizeof(*evt_attr_group->attrs), GFP_KERNEL); in amdgpu_pmu_alloc_pmu_attrs() 538 GFP_KERNEL); in init_pmu_entry_by_type_and_add() 602 pmu_entry = kzalloc(sizeof(struct amdgpu_pmu_entry), GFP_KERNEL); in create_pmu_entry()
|
| /openbsd/src/sys/dev/pci/drm/ |
| D | drm_atomic_state_helper.c | 116 kzalloc(sizeof(*crtc->state), GFP_KERNEL); in drm_atomic_helper_crtc_reset() 177 state = kmalloc(sizeof(*state), GFP_KERNEL); in drm_atomic_helper_crtc_duplicate_state() 330 plane->state = kzalloc(sizeof(*plane->state), GFP_KERNEL); in drm_atomic_helper_plane_reset() 374 state = kmalloc(sizeof(*state), GFP_KERNEL); in drm_atomic_helper_plane_duplicate_state() 471 kzalloc(sizeof(*conn_state), GFP_KERNEL); in drm_atomic_helper_connector_reset() 663 state = kmalloc(sizeof(*state), GFP_KERNEL); in drm_atomic_helper_connector_duplicate_state() 760 new = kzalloc(sizeof(*new), GFP_KERNEL); in drm_atomic_helper_bridge_duplicate_state() 818 bridge_state = kzalloc(sizeof(*bridge_state), GFP_KERNEL); in drm_atomic_helper_bridge_reset()
|
| D | drm_exec.c | 85 exec->objects = kvmalloc_array(nr, sizeof(void *), GFP_KERNEL); in drm_exec_init() 149 tmp = kvrealloc(exec->objects, size + PAGE_SIZE, GFP_KERNEL); in drm_exec_obj_locked() 153 tmp = kvmalloc(size + PAGE_SIZE, GFP_KERNEL); in drm_exec_obj_locked()
|
| D | drm_client_modeset.c | 45 client->modesets = kcalloc(num_crtc + 1, sizeof(*client->modesets), GFP_KERNEL); in drm_client_modeset_create() 60 sizeof(*modeset->connectors), GFP_KERNEL); in drm_client_modeset_create() 525 crtcs = kcalloc(connector_count, sizeof(*crtcs), GFP_KERNEL); in drm_client_pick_crtcs() 600 save_enabled = kcalloc(count, sizeof(bool), GFP_KERNEL); in drm_client_firmware_config() 809 tmp = krealloc(connectors, (connector_count + 1) * sizeof(*connectors), GFP_KERNEL); in drm_client_modeset_probe() 815 tmp = kmalloc((connector_count + 1) * sizeof(*connectors), GFP_KERNEL); in drm_client_modeset_probe() 833 crtcs = kcalloc(connector_count, sizeof(*crtcs), GFP_KERNEL); in drm_client_modeset_probe() 834 modes = kcalloc(connector_count, sizeof(*modes), GFP_KERNEL); in drm_client_modeset_probe() 835 offsets = kcalloc(connector_count, sizeof(*offsets), GFP_KERNEL); in drm_client_modeset_probe() 836 enabled = kcalloc(connector_count, sizeof(bool), GFP_KERNEL); in drm_client_modeset_probe()
|
| D | drm_syncobj.c | 569 syncobj = kzalloc(sizeof(struct drm_syncobj), GFP_KERNEL); in drm_syncobj_create() 613 idr_preload(GFP_KERNEL); in drm_syncobj_get_handle() 749 idr_preload(GFP_KERNEL); in drm_syncobj_fd_to_handle() 958 fences = kmalloc_array(count, sizeof(*fences), GFP_KERNEL); in drm_syncobj_flatten_chain() 1114 points = kmalloc_array(count, sizeof(*points), GFP_KERNEL); in drm_syncobj_array_wait_timeout() 1127 entries = kcalloc(count, sizeof(*entries), GFP_KERNEL); in drm_syncobj_array_wait_timeout() 1338 handles = kmalloc_array(count_handles, sizeof(*handles), GFP_KERNEL); in drm_syncobj_array_find() 1348 syncobjs = kmalloc_array(count_handles, sizeof(*syncobjs), GFP_KERNEL); in drm_syncobj_array_find() 1556 entry = kzalloc(sizeof(*entry), GFP_KERNEL); in drm_syncobj_eventfd_ioctl() 1676 GFP_KERNEL); in drm_syncobj_timeline_signal_ioctl() [all …]
|
| /openbsd/src/sys/dev/pci/drm/ttm/ |
| D | ttm_tt.c | 115 ttm->pages = kvcalloc(ttm->num_pages, sizeof(void*), GFP_KERNEL); in ttm_tt_alloc_page_directory() 119 sizeof(unsigned long), GFP_KERNEL | __GFP_ZERO); in ttm_tt_alloc_page_directory() 128 sizeof(*ttm->dma_address), GFP_KERNEL); in ttm_dma_tt_alloc_page_directory() 136 GFP_KERNEL | __GFP_ZERO); in ttm_dma_tt_alloc_page_directory() 145 GFP_KERNEL); in ttm_sg_tt_alloc_page_directory() 382 ret = ttm_global_swapout(ctx, GFP_KERNEL); in ttm_tt_populate() 446 seq_printf(m, "%d\n", ttm_global_swapout(&ctx, GFP_KERNEL)); in ttm_tt_debugfs_shrink_show()
|
| /openbsd/src/sys/dev/pci/drm/amd/display/dc/core/ |
| D | dc_surface.c | 96 GFP_KERNEL); in dc_create_plane_state() 203 struct dc_gamma *gamma = kvzalloc(sizeof(*gamma), GFP_KERNEL); in dc_create_gamma() 233 struct dc_transfer_func *tf = kvzalloc(sizeof(*tf), GFP_KERNEL); in dc_create_transfer_func() 255 struct dc_3dlut *lut = kvzalloc(sizeof(*lut), GFP_KERNEL); in dc_create_3dlut_func()
|
| /openbsd/src/sys/dev/pci/drm/amd/display/dc/dce60/ |
| D | dce60_resource.c | 500 kzalloc(sizeof(struct dce110_timing_generator), GFP_KERNEL); in dce60_timing_generator_create() 514 kzalloc(sizeof(struct dce110_opp), GFP_KERNEL); in dce60_opp_create() 529 kzalloc(sizeof(struct aux_engine_dce110), GFP_KERNEL); in dce60_aux_engine_create() 567 kzalloc(sizeof(struct dce_i2c_hw), GFP_KERNEL); in dce60_i2c_hw_create() 582 kzalloc(sizeof(struct dce_i2c_sw), GFP_KERNEL); in dce60_i2c_sw_create() 596 kzalloc(sizeof(struct dce110_stream_encoder), GFP_KERNEL); in dce60_stream_encoder_create() 625 struct dce_hwseq *hws = kzalloc(sizeof(struct dce_hwseq), GFP_KERNEL); in dce60_hwseq_create() 671 GFP_KERNEL); in dce60_mem_input_create() 694 kzalloc(sizeof(struct dce_transform), GFP_KERNEL); in dce60_transform_create() 717 kzalloc(sizeof(struct dce110_link_encoder), GFP_KERNEL); in dce60_link_encoder_create() [all …]
|
| /openbsd/src/sys/dev/pci/drm/i915/gem/ |
| D | i915_gem_internal.c | 51 gfp = GFP_KERNEL | __GFP_HIGHMEM | __GFP_RECLAIMABLE; in i915_gem_object_get_pages_internal() 59 st = kmalloc(sizeof(*st), GFP_KERNEL); in i915_gem_object_get_pages_internal() 63 if (sg_alloc_table(st, npages, GFP_KERNEL)) { in i915_gem_object_get_pages_internal()
|
| /openbsd/src/sys/dev/pci/drm/amd/amdkfd/ |
| D | kfd_events.c | 70 page = kzalloc(sizeof(*page), GFP_KERNEL); in allocate_signal_page() 74 backing_store = (void *) __get_free_pages(GFP_KERNEL, in allocate_signal_page() 111 GFP_KERNEL); in allocate_event_notification_slot() 120 GFP_KERNEL); in allocate_event_notification_slot() 224 GFP_KERNEL); in create_other_event() 233 GFP_KERNEL); in create_other_event() 253 id = idr_alloc(&p->event_idr, NULL, 0, 1, GFP_KERNEL); in kfd_event_init_process() 334 page = kzalloc(sizeof(*page), GFP_KERNEL); in kfd_event_page_set() 402 struct kfd_event *ev = kzalloc(sizeof(*ev), GFP_KERNEL); in kfd_event_create() 455 ev_priv = kmalloc(sizeof(*ev_priv), GFP_KERNEL); in kfd_criu_restore_event() [all …]
|
| /openbsd/src/sys/dev/pci/drm/i915/gt/ |
| D | shmem_utils.c | 67 pages = kvmalloc_array(n_pages, sizeof(*pages), GFP_KERNEL); in shmem_pin_map() 73 GFP_KERNEL); in shmem_pin_map() 109 GFP_KERNEL); in __shmem_rw() 144 GFP_KERNEL); in shmem_read_to_iosys_map()
|
| /openbsd/src/sys/dev/pci/drm/radeon/ |
| D | radeon_bios.c | 80 rdev->bios = kmalloc(size, GFP_KERNEL); in igp_read_bios_from_vram() 105 rdev->bios = kmalloc(size, GFP_KERNEL); in igp_read_bios_from_vram() 139 rdev->bios = kzalloc(size, GFP_KERNEL); in radeon_read_bios() 174 rdev->bios = kmalloc(size, GFP_KERNEL); in radeon_read_bios() 200 rdev->bios = kzalloc(romlen, GFP_KERNEL); in radeon_read_platform_bios() 254 rdev->bios = kmalloc(size, GFP_KERNEL); in radeon_read_platform_bios() 362 rdev->bios = kmalloc(size, GFP_KERNEL); in radeon_atrm_get_bios() 793 GFP_KERNEL); in radeon_acpi_vfct_bios()
|
| /openbsd/src/sys/dev/pci/drm/i915/display/ |
| D | intel_dsi.c | 89 host = kzalloc(sizeof(*host), GFP_KERNEL); in intel_dsi_host_init() 104 device = kzalloc(sizeof(*device), GFP_KERNEL); in intel_dsi_host_init()
|
| /openbsd/src/sys/dev/pci/drm/amd/display/amdgpu_dm/ |
| D | amdgpu_dm_debugfs.c | 201 rd_buf = kcalloc(rd_buf_size, sizeof(char), GFP_KERNEL); in dp_link_settings_read() 273 wr_buf = kcalloc(wr_buf_size, sizeof(char), GFP_KERNEL); in dp_link_settings_write() 407 wr_buf = kcalloc(wr_buf_size, sizeof(char), GFP_KERNEL); in dp_mst_link_setting() 542 rd_buf = kcalloc(rd_buf_size, sizeof(char), GFP_KERNEL); in dp_phy_settings_read() 625 wr_buf = kcalloc(wr_buf_size, sizeof(char), GFP_KERNEL); in dp_phy_settings_write() 777 wr_buf = kcalloc(wr_buf_size, sizeof(char), GFP_KERNEL); in dp_phy_test_pattern_debugfs_write() 1185 wr_buf = kcalloc(wr_buf_size, sizeof(char), GFP_KERNEL); in dp_dsc_passthrough_set() 1429 wr_buf = kcalloc(wr_buf_size, sizeof(char), GFP_KERNEL); in trigger_hotplug() 1541 rd_buf = kcalloc(rd_buf_size, sizeof(char), GFP_KERNEL); in dp_dsc_clock_en_read() 1630 wr_buf = kcalloc(wr_buf_size, sizeof(char), GFP_KERNEL); in dp_dsc_clock_en_write() [all …]
|