Home
last modified time | relevance | path

Searched refs:virt (Results 1 – 25 of 493) sorted by relevance

12345678910>>...20

/linux-6.3-rc2/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_virt.c134 struct amdgpu_virt *virt = &adev->virt; in amdgpu_virt_request_full_gpu() local
157 struct amdgpu_virt *virt = &adev->virt; in amdgpu_virt_release_full_gpu() local
178 struct amdgpu_virt *virt = &adev->virt; in amdgpu_virt_reset_gpu() local
181 if (virt->ops && virt->ops->reset_gpu) { in amdgpu_virt_reset_gpu()
194 struct amdgpu_virt *virt = &adev->virt; in amdgpu_virt_request_init_data() local
213 struct amdgpu_virt *virt = &adev->virt; in amdgpu_virt_wait_reset() local
291 struct amdgpu_virt *virt = &adev->virt; in amdgpu_virt_init_ras_err_handler_data() local
331 struct amdgpu_virt *virt = &adev->virt; in amdgpu_virt_ras_release_bp() local
349 struct amdgpu_virt *virt = &adev->virt; in amdgpu_virt_release_ras_err_handler_data() local
368 struct amdgpu_virt *virt = &adev->virt; in amdgpu_virt_ras_add_bps() local
[all …]
A Damdgpu_vf_error.c41 mutex_lock(&adev->virt.vf_errors.lock); in amdgpu_vf_error_put()
46 adev->virt.vf_errors.write_count ++; in amdgpu_vf_error_put()
47 mutex_unlock(&adev->virt.vf_errors.lock); in amdgpu_vf_error_put()
58 (!adev->virt.ops) || (!adev->virt.ops->trans_msg)) { in amdgpu_vf_error_trans_all()
69 mutex_lock(&adev->virt.vf_errors.lock); in amdgpu_vf_error_trans_all()
71 …if (adev->virt.vf_errors.write_count - adev->virt.vf_errors.read_count > AMDGPU_VF_ERROR_ENTRY_SIZ… in amdgpu_vf_error_trans_all()
72 adev->virt.vf_errors.read_count = adev->virt.vf_errors.write_count - AMDGPU_VF_ERROR_ENTRY_SIZE; in amdgpu_vf_error_trans_all()
75 while (adev->virt.vf_errors.read_count < adev->virt.vf_errors.write_count) { in amdgpu_vf_error_trans_all()
78 adev->virt.vf_errors.flags[index]); in amdgpu_vf_error_trans_all()
83 adev->virt.vf_errors.read_count ++; in amdgpu_vf_error_trans_all()
[all …]
A Dmxgpu_nv.c188 adev->virt.req_init_data_ver = 0; in xgpu_nv_send_access_requests()
192 adev->virt.req_init_data_ver = in xgpu_nv_send_access_requests()
196 if (adev->virt.req_init_data_ver < 1) in xgpu_nv_send_access_requests()
197 adev->virt.req_init_data_ver = 1; in xgpu_nv_send_access_requests()
203 adev->virt.fw_reserve.checksum_key = in xgpu_nv_send_access_requests()
279 struct amdgpu_device *adev = container_of(virt, struct amdgpu_device, virt); in xgpu_nv_mailbox_flr_work()
352 &adev->virt.flr_work), in xgpu_nv_mailbox_rcv_irq()
382 adev->virt.ack_irq.num_types = 1; in xgpu_nv_mailbox_set_irq_funcs()
384 adev->virt.rcv_irq.num_types = 1; in xgpu_nv_mailbox_set_irq_funcs()
425 amdgpu_irq_put(adev, &adev->virt.ack_irq, 0); in xgpu_nv_mailbox_put_irq()
[all …]
A Dmxgpu_ai.c181 adev->virt.fw_reserve.checksum_key = in xgpu_ai_send_access_requests()
189 adev->virt.req_init_data_ver = 0; in xgpu_ai_send_access_requests()
255 struct amdgpu_device *adev = container_of(virt, struct amdgpu_device, virt); in xgpu_ai_mailbox_flr_work()
322 &adev->virt.flr_work), in xgpu_ai_mailbox_rcv_irq()
355 adev->virt.ack_irq.num_types = 1; in xgpu_ai_mailbox_set_irq_funcs()
357 adev->virt.rcv_irq.num_types = 1; in xgpu_ai_mailbox_set_irq_funcs()
371 amdgpu_irq_put(adev, &adev->virt.rcv_irq, 0); in xgpu_ai_mailbox_add_irq_id()
382 r = amdgpu_irq_get(adev, &adev->virt.rcv_irq, 0); in xgpu_ai_mailbox_get_irq()
387 amdgpu_irq_put(adev, &adev->virt.rcv_irq, 0); in xgpu_ai_mailbox_get_irq()
398 amdgpu_irq_put(adev, &adev->virt.ack_irq, 0); in xgpu_ai_mailbox_put_irq()
[all …]
A Damdgpu_virt.h269 ((adev)->virt.caps & AMDGPU_SRIOV_CAPS_ENABLE_IOV)
272 ((adev)->virt.caps & AMDGPU_SRIOV_CAPS_IS_VF)
275 ((adev)->virt.caps & AMDGPU_SRIOV_CAPS_SRIOV_VBIOS)
278 ((adev)->virt.caps & AMDGPU_SRIOV_CAPS_RUNTIME)
289 ((adev)->virt.reg_access & (AMDGIM_FEATURE_IH_REG_PSP_EN)))
297 ((adev)->virt.reg_access & (AMDGIM_FEATURE_GC_REG_RLC_EN)))
303 ((adev)->virt.caps & AMDGPU_PASSTHROUGH_MODE)
306 ((adev)->virt.caps & AMDGPU_VF_MMIO_ACCESS_PROTECT)
320 ((adev)->virt.gim_feature & AMDGIM_FEATURE_PP_ONE_VF)
322 ((!amdgpu_in_reset(adev)) && adev->virt.tdr_debug)
[all …]
A Dmxgpu_vi.c516 struct amdgpu_device *adev = container_of(virt, struct amdgpu_device, virt); in xgpu_vi_mailbox_flr_work()
565 &adev->virt.flr_work), in xgpu_vi_mailbox_rcv_irq()
585 adev->virt.ack_irq.num_types = 1; in xgpu_vi_mailbox_set_irq_funcs()
586 adev->virt.ack_irq.funcs = &xgpu_vi_mailbox_ack_irq_funcs; in xgpu_vi_mailbox_set_irq_funcs()
587 adev->virt.rcv_irq.num_types = 1; in xgpu_vi_mailbox_set_irq_funcs()
601 amdgpu_irq_put(adev, &adev->virt.rcv_irq, 0); in xgpu_vi_mailbox_add_irq_id()
612 r = amdgpu_irq_get(adev, &adev->virt.rcv_irq, 0); in xgpu_vi_mailbox_get_irq()
615 r = amdgpu_irq_get(adev, &adev->virt.ack_irq, 0); in xgpu_vi_mailbox_get_irq()
617 amdgpu_irq_put(adev, &adev->virt.rcv_irq, 0); in xgpu_vi_mailbox_get_irq()
628 amdgpu_irq_put(adev, &adev->virt.ack_irq, 0); in xgpu_vi_mailbox_put_irq()
[all …]
/linux-6.3-rc2/drivers/staging/media/atomisp/pci/hmm/
A Dhmm.c244 (unsigned int)virt); in hmm_free()
335 src += (virt - bo->start); in load_and_flush()
359 if (!virt) { in hmm_load()
386 if (!virt) { in hmm_store()
447 virt += len; in hmm_store()
509 virt += len; in hmm_set()
531 virt); in hmm_virt_to_phys()
549 virt); in hmm_mmap()
566 virt); in hmm_vmap()
586 virt); in hmm_flush_vmap()
[all …]
/linux-6.3-rc2/arch/m68k/mm/
A Dsun3kmap.c39 sun3_put_pte(virt, pte); in do_page_mapin()
43 print_pte_vaddr(virt); in do_page_mapin()
52 if(sun3_get_segmap(virt & ~SUN3_PMEG_MASK) == SUN3_INVALID_PMEG) in do_pmeg_mapin()
53 mmu_emu_map_pmeg(sun3_get_context(), virt); in do_pmeg_mapin()
56 do_page_mapin(phys, virt, type); in do_pmeg_mapin()
58 virt += PAGE_SIZE; in do_pmeg_mapin()
67 unsigned long offset, virt, ret; in sun3_ioremap() local
88 virt = (unsigned long)area->addr; in sun3_ioremap()
89 ret = virt + offset; in sun3_ioremap()
98 do_pmeg_mapin(phys, virt, type, seg_pages); in sun3_ioremap()
[all …]
/linux-6.3-rc2/drivers/staging/media/atomisp/include/hmm/
A Dhmm.h43 int hmm_load(ia_css_ptr virt, void *data, unsigned int bytes);
44 int hmm_store(ia_css_ptr virt, const void *data, unsigned int bytes);
45 int hmm_set(ia_css_ptr virt, int c, unsigned int bytes);
46 int hmm_flush(ia_css_ptr virt, unsigned int bytes);
51 phys_addr_t hmm_virt_to_phys(ia_css_ptr virt);
60 void *hmm_vmap(ia_css_ptr virt, bool cached);
61 void hmm_vunmap(ia_css_ptr virt);
67 void hmm_flush_vmap(ia_css_ptr virt);
77 int hmm_mmap(struct vm_area_struct *vma, ia_css_ptr virt);
/linux-6.3-rc2/drivers/gpio/
A Dgpio-stp-xway.c81 void __iomem *virt; member
169 xway_stp_w32(chip->virt, 0, XWAY_STP_AR); in xway_stp_hw_init()
170 xway_stp_w32(chip->virt, 0, XWAY_STP_CPU0); in xway_stp_hw_init()
171 xway_stp_w32(chip->virt, 0, XWAY_STP_CPU1); in xway_stp_hw_init()
184 xway_stp_w32_mask(chip->virt, in xway_stp_hw_init()
190 xway_stp_w32_mask(chip->virt, in xway_stp_hw_init()
194 xway_stp_w32_mask(chip->virt, in xway_stp_hw_init()
201 xway_stp_w32_mask(chip->virt, in xway_stp_hw_init()
208 xway_stp_w32_mask(chip->virt, in xway_stp_hw_init()
244 if (IS_ERR(chip->virt)) in xway_stp_probe()
[all …]
/linux-6.3-rc2/drivers/scsi/lpfc/
A Dlpfc_mem.c109 if (!pool->elements[i].virt) in lpfc_mem_alloc()
297 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_mem_free_all()
307 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_mem_free_all()
418 pool->elements[pool->current_count].virt = virt; in __lpfc_mbuf_free()
446 __lpfc_mbuf_free(phba, virt, dma); in lpfc_mbuf_free()
513 if (!hbqbp->dbuf.virt) { in lpfc_els_hbq_alloc()
565 if (!dma_buf->hbuf.virt) { in lpfc_sli4_rb_alloc()
571 if (!dma_buf->dbuf.virt) { in lpfc_sli4_rb_alloc()
623 if (!dma_buf->hbuf.virt) { in lpfc_sli4_nvmet_alloc()
629 if (!dma_buf->dbuf.virt) { in lpfc_sli4_nvmet_alloc()
[all …]
/linux-6.3-rc2/include/asm-generic/
A Dsections.h91 static inline bool memory_contains(void *begin, void *end, void *virt, in memory_contains() argument
94 return virt >= begin && virt + size <= end; in memory_contains()
108 static inline bool memory_intersects(void *begin, void *end, void *virt, in memory_intersects() argument
111 void *vend = virt + size; in memory_intersects()
113 if (virt < end && vend > begin) in memory_intersects()
128 static inline bool init_section_contains(void *virt, size_t size) in init_section_contains() argument
130 return memory_contains(__init_begin, __init_end, virt, size); in init_section_contains()
142 static inline bool init_section_intersects(void *virt, size_t size) in init_section_intersects() argument
144 return memory_intersects(__init_begin, __init_end, virt, size); in init_section_intersects()
/linux-6.3-rc2/drivers/net/ethernet/qlogic/qed/
A Dqed_chain.c73 void *virt, *virt_next; in qed_chain_free_next_ptr() local
77 virt = chain->p_virt_addr; in qed_chain_free_next_ptr()
81 if (!virt) in qed_chain_free_next_ptr()
84 next = virt + size; in qed_chain_free_next_ptr()
90 virt = virt_next; in qed_chain_free_next_ptr()
209 if (!virt) in qed_chain_alloc_next_ptr()
220 virt_prev = virt; in qed_chain_alloc_next_ptr()
236 void *virt; in qed_chain_alloc_single() local
240 if (!virt) in qed_chain_alloc_single()
257 void *virt; in qed_chain_alloc_pbl() local
[all …]
/linux-6.3-rc2/drivers/media/platform/samsung/s5p-mfc/
A Ds5p_mfc_opr.c54 b->virt = dev->mem_virt + offset; in s5p_mfc_alloc_priv_buf()
61 b->virt = dma_alloc_coherent(mem_dev, b->size, &b->dma, GFP_KERNEL); in s5p_mfc_alloc_priv_buf()
62 if (!b->virt) in s5p_mfc_alloc_priv_buf()
67 dma_free_coherent(mem_dev, b->size, b->virt, b->dma); in s5p_mfc_alloc_priv_buf()
72 mfc_debug(3, "Allocated addr %p %pad\n", b->virt, &b->dma); in s5p_mfc_alloc_priv_buf()
88 if (!b->virt) in s5p_mfc_alloc_generic_buf()
91 mfc_debug(3, "Allocated addr %p %pad\n", b->virt, &b->dma); in s5p_mfc_alloc_generic_buf()
109 dma_free_coherent(mem_dev, b->size, b->virt, b->dma); in s5p_mfc_release_priv_buf()
111 b->virt = NULL; in s5p_mfc_release_priv_buf()
120 dma_free_coherent(mem_dev, b->size, b->virt, b->dma); in s5p_mfc_release_generic_buf()
[all …]
/linux-6.3-rc2/drivers/mtd/maps/
A Dnettel.c221 if (!nettel_amd_map.virt) { in nettel_init()
280 iounmap(nettel_amd_map.virt); in nettel_init()
281 nettel_amd_map.virt = NULL; in nettel_init()
307 if (!nettel_intel_map.virt) { in nettel_init()
341 if (!nettel_intel_map.virt) { in nettel_init()
417 iounmap(nettel_amd_map.virt); in nettel_init()
437 if (nettel_amd_map.virt) { in nettel_cleanup()
438 iounmap(nettel_amd_map.virt); in nettel_cleanup()
439 nettel_amd_map.virt = NULL; in nettel_cleanup()
446 if (nettel_intel_map.virt) { in nettel_cleanup()
[all …]
A Ddc21285.c57 val.x[0] = *(uint8_t*)(map->virt + ofs); in dc21285_read8()
64 val.x[0] = *(uint16_t*)(map->virt + ofs); in dc21285_read16()
71 val.x[0] = *(uint32_t*)(map->virt + ofs); in dc21285_read32()
77 memcpy(to, (void*)(map->virt + from), len); in dc21285_copy_from()
86 *(uint8_t*)(map->virt + adr) = d.x[0]; in dc21285_write8()
95 *(uint16_t*)(map->virt + adr) = d.x[0]; in dc21285_write16()
102 *(uint32_t*)(map->virt + adr) = d.x[0]; in dc21285_write32()
179 dc21285_map.virt = ioremap(DC21285_FLASH, 16*1024*1024); in init_dc21285()
180 if (!dc21285_map.virt) { in init_dc21285()
192 iounmap(dc21285_map.virt); in init_dc21285()
[all …]
A Dts5500_flash.c59 ts5500_map.virt = ioremap(ts5500_map.phys, ts5500_map.size); in init_ts5500_map()
61 if (!ts5500_map.virt) { in init_ts5500_map()
84 iounmap(ts5500_map.virt); in init_ts5500_map()
96 if (ts5500_map.virt) { in cleanup_ts5500_map()
97 iounmap(ts5500_map.virt); in cleanup_ts5500_map()
98 ts5500_map.virt = NULL; in cleanup_ts5500_map()
A Dnetsc520.c85 netsc520_map.virt = ioremap(netsc520_map.phys, netsc520_map.size); in init_netsc520()
87 if (!netsc520_map.virt) { in init_netsc520()
101 iounmap(netsc520_map.virt); in init_netsc520()
116 if (netsc520_map.virt) { in cleanup_netsc520()
117 iounmap(netsc520_map.virt); in cleanup_netsc520()
118 netsc520_map.virt = NULL; in cleanup_netsc520()
A Dcfi_flagadm.c97 flagadm_map.virt = ioremap(FLASH_PHYS_ADDR, in init_flagadm()
100 if (!flagadm_map.virt) { in init_flagadm()
115 iounmap((void __iomem *)flagadm_map.virt); in init_flagadm()
125 if (flagadm_map.virt) { in cleanup_flagadm()
126 iounmap((void __iomem *)flagadm_map.virt); in cleanup_flagadm()
127 flagadm_map.virt = NULL; in cleanup_flagadm()
/linux-6.3-rc2/arch/parisc/kernel/
A Dkexec.c79 void *virt = (void *)__fix_to_virt(FIX_TEXT_KEXEC); in machine_kexec() local
88 desc.addr = (long long)virt; in machine_kexec()
90 reloc = (void *)virt; in machine_kexec()
93 memcpy(virt, dereference_function_descriptor(relocate_new_kernel), in machine_kexec()
96 *(unsigned long *)(virt + kexec_cmdline_offset) = arch->cmdline; in machine_kexec()
97 *(unsigned long *)(virt + kexec_initrd_start_offset) = arch->initrd_start; in machine_kexec()
98 *(unsigned long *)(virt + kexec_initrd_end_offset) = arch->initrd_end; in machine_kexec()
99 *(unsigned long *)(virt + kexec_free_mem_offset) = PAGE0->mem_free; in machine_kexec()
/linux-6.3-rc2/arch/powerpc/mm/nohash/
A De500.c111 TLBCAM[index].MAS2 = virt & PAGE_MASK; in settlbcam()
133 tlbcam_addrs[index].start = virt; in settlbcam()
134 tlbcam_addrs[index].limit = virt + size - 1; in settlbcam()
142 unsigned int align = __ffs(virt | phys); in calc_cam_sz()
181 cam_sz = calc_cam_sz(boundary, virt, phys); in map_mem_in_cams_addr()
183 settlbcam(i, virt, phys, cam_sz, pgprot_val(prot), 0); in map_mem_in_cams_addr()
187 virt += cam_sz; in map_mem_in_cams_addr()
194 cam_sz = calc_cam_sz(ram, virt, phys); in map_mem_in_cams_addr()
196 settlbcam(i, virt, phys, cam_sz, pgprot_val(prot), 0); in map_mem_in_cams_addr()
200 virt += cam_sz; in map_mem_in_cams_addr()
[all …]
/linux-6.3-rc2/arch/arm/mach-hisi/
A Dplatsmp.c108 void __iomem *virt; in hix5hd2_set_scu_boot_addr() local
110 virt = ioremap(start_addr, PAGE_SIZE); in hix5hd2_set_scu_boot_addr()
112 writel_relaxed(0xe51ff004, virt); /* ldr pc, [pc, #-4] */ in hix5hd2_set_scu_boot_addr()
113 writel_relaxed(jump_addr, virt + 4); /* pc jump phy address */ in hix5hd2_set_scu_boot_addr()
114 iounmap(virt); in hix5hd2_set_scu_boot_addr()
144 void __iomem *virt; in hip01_set_boot_addr() local
146 virt = phys_to_virt(start_addr); in hip01_set_boot_addr()
148 writel_relaxed(0xe51ff004, virt); in hip01_set_boot_addr()
149 writel_relaxed(jump_addr, virt + 4); in hip01_set_boot_addr()
/linux-6.3-rc2/drivers/media/platform/amphion/
A Dvpu_helpers.c241 void *virt; in vpu_helper_copy_from_stream_buffer() local
252 virt = stream_buffer->virt; in vpu_helper_copy_from_stream_buffer()
258 memcpy(dst, virt + (offset - start), size); in vpu_helper_copy_from_stream_buffer()
275 void *virt; in vpu_helper_copy_to_stream_buffer() local
286 virt = stream_buffer->virt; in vpu_helper_copy_to_stream_buffer()
291 memcpy(virt + (offset - start), src, size); in vpu_helper_copy_to_stream_buffer()
308 void *virt; in vpu_helper_memset_stream_buffer() local
319 virt = stream_buffer->virt; in vpu_helper_memset_stream_buffer()
324 memset(virt + (offset - start), val, size); in vpu_helper_memset_stream_buffer()
327 memset(virt, val, size + offset - end); in vpu_helper_memset_stream_buffer()
[all …]
/linux-6.3-rc2/drivers/net/ipa/
A Dgsi.c245 iowrite32(0, gsi->virt + reg_offset(reg)); in gsi_irq_ev_ctrl_disable()
279 iowrite32(0, gsi->virt + reg_offset(reg)); in gsi_irq_ch_ctrl_disable()
393 iowrite32(val, gsi->virt + reg); in gsi_command()
516 void __iomem *virt = gsi->virt; in gsi_channel_state() local
919 val = ioread32(gsi->virt + offset); in gsi_channel_program()
921 iowrite32(val, gsi->virt + offset); in gsi_channel_program()
1225 val = ioread32(gsi->virt + offset); in gsi_isr_glob_err()
1226 iowrite32(0, gsi->virt + offset); in gsi_isr_glob_err()
1547 if (!ring->virt) in gsi_ring_alloc()
1793 val = ioread32(gsi->virt + offset); in gsi_generic_command()
[all …]
/linux-6.3-rc2/crypto/
A Dcfb.c49 u8 *src = walk->src.virt.addr; in crypto_cfb_final()
50 u8 *dst = walk->dst.virt.addr; in crypto_cfb_final()
63 u8 *src = walk->src.virt.addr; in crypto_cfb_encrypt_segment()
64 u8 *dst = walk->dst.virt.addr; in crypto_cfb_encrypt_segment()
86 u8 *src = walk->src.virt.addr; in crypto_cfb_encrypt_inplace()
113 if (walk.src.virt.addr == walk.dst.virt.addr) in crypto_cfb_encrypt()
133 u8 *src = walk->src.virt.addr; in crypto_cfb_decrypt_segment()
134 u8 *dst = walk->dst.virt.addr; in crypto_cfb_decrypt_segment()
156 u8 *src = walk->src.virt.addr; in crypto_cfb_decrypt_inplace()
173 if (walk->src.virt.addr == walk->dst.virt.addr) in crypto_cfb_decrypt_blocks()

Completed in 45 milliseconds

12345678910>>...20