/linux/tools/perf/util/ |
A D | intel-pt.c | 327 struct intel_pt *pt = ptq->pt; in intel_pt_findnew_vmcs_info() local 1191 ptq->pt = pt; in intel_pt_alloc_queue() 1549 struct intel_pt *pt = ptq->pt; in intel_pt_synth_branch_sample() local 1620 struct intel_pt *pt = ptq->pt; in intel_pt_synth_instruction_sample() local 1652 struct intel_pt *pt = ptq->pt; in intel_pt_synth_transaction_sample() local 1685 struct intel_pt *pt = ptq->pt; in intel_pt_synth_ptwrite_sample() local 1711 struct intel_pt *pt = ptq->pt; in intel_pt_synth_cbr_sample() local 1741 struct intel_pt *pt = ptq->pt; in intel_pt_synth_psb_sample() local 1767 struct intel_pt *pt = ptq->pt; in intel_pt_synth_mwait_sample() local 1792 struct intel_pt *pt = ptq->pt; in intel_pt_synth_pwre_sample() local [all …]
|
/linux/drivers/dma/ptdma/ |
A D | ptdma-pci.c | 38 struct pt_device *pt; in pt_alloc_struct() local 40 pt = devm_kzalloc(dev, sizeof(*pt), GFP_KERNEL); in pt_alloc_struct() 42 if (!pt) in pt_alloc_struct() 44 pt->dev = dev; in pt_alloc_struct() 48 return pt; in pt_alloc_struct() 118 pt->pt_irq = 0; in pt_free_irqs() 131 if (!pt) in pt_pci_probe() 166 pt->io_regs = iomap_table[pt->dev_vdata->bar]; in pt_pci_probe() 191 if (pt->dev_vdata) in pt_pci_probe() 210 if (!pt) in pt_pci_remove() [all …]
|
A D | ptdma-dev.c | 149 struct pt_device *pt = data; in pt_core_irq_handler() local 154 pt->total_interrupts++; in pt_core_irq_handler() 178 struct device *dev = pt->dev; in pt_core_init() 198 cmd_q->pt = pt; in pt_core_init() 231 ret = request_irq(pt->pt_irq, pt_core_irq_handler, 0, dev_name(pt->dev), pt); in pt_core_init() 256 ptdma_debugfs_setup(pt); in pt_core_init() 261 free_irq(pt->pt_irq, pt); in pt_core_init() 275 struct device *dev = pt->dev; in pt_core_destroy() 280 pt_dmaengine_unregister(pt); in pt_core_destroy() 293 free_irq(pt->pt_irq, pt); in pt_core_destroy() [all …]
|
A D | ptdma-dmaengine.c | 43 struct pt_device *pt = desc->pt; in pt_do_cleanup() local 51 struct pt_device *pt; in pt_dma_start_desc() local 58 pt = pt_cmd->pt; in pt_dma_start_desc() 59 cmd_q = &pt->cmd_q; in pt_dma_start_desc() 62 pt->tdata.cmd = pt_cmd; in pt_dma_start_desc() 168 desc->pt = chan->pt; in pt_alloc_dma_desc() 191 pt_cmd->pt = chan->pt; in pt_create_desc() 304 pt->pt_dma_chan = devm_kzalloc(pt->dev, sizeof(*pt->pt_dma_chan), in pt_dmaengine_register() 306 if (!pt->pt_dma_chan) in pt_dmaengine_register() 311 dev_name(pt->dev)); in pt_dmaengine_register() [all …]
|
A D | ptdma-debugfs.c | 25 struct pt_device *pt = s->private; in pt_debugfs_info_show() local 28 seq_printf(s, "Device name: %s\n", dev_name(pt->dev)); in pt_debugfs_info_show() 30 seq_printf(s, " # Cmds: %d\n", pt->cmd_count); in pt_debugfs_info_show() 32 regval = ioread32(pt->io_regs + CMD_PT_VERSION); in pt_debugfs_info_show() 48 struct pt_device *pt = s->private; in pt_debugfs_stats_show() local 50 seq_printf(s, "Total Interrupts Handled: %ld\n", pt->total_interrupts); in pt_debugfs_stats_show() 85 void ptdma_debugfs_setup(struct pt_device *pt) in ptdma_debugfs_setup() argument 93 debugfs_create_file("info", 0400, pt->dma_dev.dbg_dev_root, pt, in ptdma_debugfs_setup() 96 debugfs_create_file("stats", 0400, pt->dma_dev.dbg_dev_root, pt, in ptdma_debugfs_setup() 99 cmd_q = &pt->cmd_q; in ptdma_debugfs_setup() [all …]
|
/linux/sound/i2c/other/ |
A D | pt2258.c | 39 snd_i2c_lock(pt->i2c_bus); in snd_pt2258_reset() 45 pt->mute = 1; in snd_pt2258_reset() 47 snd_i2c_lock(pt->i2c_bus); in snd_pt2258_reset() 54 pt->volume[i] = 0; in snd_pt2258_reset() 57 snd_i2c_lock(pt->i2c_bus); in snd_pt2258_reset() 104 if (val0 == pt->volume[base] && val1 == pt->volume[base + 1]) in pt2258_stereo_volume_put() 107 pt->volume[base] = val0; in pt2258_stereo_volume_put() 150 if (pt->mute == val) in pt2258_switch_put() 153 pt->mute = val; in pt2258_switch_put() 193 err = snd_ctl_add(pt->card, snd_ctl_new1(&knew, pt)); in snd_pt2258_build_controls() [all …]
|
/linux/arch/ia64/kernel/ |
A D | signal.c | 74 scr->pt.cr_iip = ip & ~0x3UL; in restore_sigcontext() 76 scr->pt.cr_ipsr = (scr->pt.cr_ipsr & ~IA64_PSR_UM) | (um & IA64_PSR_UM); in restore_sigcontext() 148 current->comm, current->pid, scr->pt.r12, scr->pt.cr_iip); in ia64_rt_sigreturn() 171 ifs = scr->pt.cr_ifs; in setup_sigcontext() 203 err |= __put_user(scr->pt.cr_iip + ia64_psr(&scr->pt)->ri, &sc->sc_ip); in setup_sigcontext() 234 new_sp = scr->pt.r12; in setup_frame() 291 scr->pt.cr_iip = tramp_addr; in setup_frame() 302 scr->pt.cr_ifs = (1UL << 63); in setup_frame() 336 long errno = scr->pt.r8; in ia64_do_signal() 369 scr->pt.r8 = EINTR; in ia64_do_signal() [all …]
|
A D | ptrace.c | 356 pt->ar_rnat = (pt->ar_rnat & ~umask) | (urnat & umask); in put_rnat() 773 pt->r2 = 0; in convert_to_non_syscall() 774 pt->r3 = 0; in convert_to_non_syscall() 775 pt->r14 = 0; in convert_to_non_syscall() 778 pt->b7 = 0; in convert_to_non_syscall() 779 pt->ar_ccv = 0; in convert_to_non_syscall() 780 pt->ar_csd = 0; in convert_to_non_syscall() 781 pt->ar_ssd = 0; in convert_to_non_syscall() 1325 ptr = &pt->b0; in access_elf_breg() 1331 ptr = &pt->b6; in access_elf_breg() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
A D | base.c | 44 const int slot = pt->base >> pt->ptp->shift; in nvkm_mmu_ptp_put() 61 kfree(pt); in nvkm_mmu_ptp_put() 71 if (!(pt = kzalloc(sizeof(*pt), GFP_KERNEL))) in nvkm_mmu_ptp_get() 106 pt->memory = pt->ptp->pt->memory; in nvkm_mmu_ptp_get() 108 pt->addr = pt->ptp->pt->addr + pt->base; in nvkm_mmu_ptp_get() 109 return pt; in nvkm_mmu_ptp_get() 144 if (pt) { in nvkm_mmu_ptc_put() 156 list_add_tail(&pt->head, &pt->ptc->item); in nvkm_mmu_ptc_put() 191 if (pt) { in nvkm_mmu_ptc_get() 202 if (!(pt = kmalloc(sizeof(*pt), GFP_KERNEL))) in nvkm_mmu_ptc_get() [all …]
|
A D | vmmnv44.c | 33 tmp[0] = nvkm_ro32(pt->memory, pteo + 0x0); in nv44_vmm_pgt_fill() 34 tmp[1] = nvkm_ro32(pt->memory, pteo + 0x4); in nv44_vmm_pgt_fill() 35 tmp[2] = nvkm_ro32(pt->memory, pteo + 0x8); in nv44_vmm_pgt_fill() 36 tmp[3] = nvkm_ro32(pt->memory, pteo + 0xc); in nv44_vmm_pgt_fill() 66 VMM_WO032(pt, vmm, pteo + 0x0, tmp[0]); in nv44_vmm_pgt_fill() 67 VMM_WO032(pt, vmm, pteo + 0x4, tmp[1]); in nv44_vmm_pgt_fill() 68 VMM_WO032(pt, vmm, pteo + 0x8, tmp[2]); in nv44_vmm_pgt_fill() 116 nvkm_kmap(pt->memory); in nv44_vmm_pgt_dma() 140 nvkm_done(pt->memory); in nv44_vmm_pgt_dma() 150 nvkm_kmap(pt->memory); in nv44_vmm_pgt_unmap() [all …]
|
A D | vmmgp100.c | 40 nvkm_kmap(pt->memory); in gp100_vmm_pfn_unmap() 42 u32 datalo = nvkm_ro32(pt->memory, pt->base + ptei * 8 + 0); in gp100_vmm_pfn_unmap() 43 u32 datahi = nvkm_ro32(pt->memory, pt->base + ptei * 8 + 4); in gp100_vmm_pfn_unmap() 61 u32 datalo = nvkm_ro32(pt->memory, pt->base + ptei * 8 + 0); in gp100_vmm_pfn_clear() 62 u32 datahi = nvkm_ro32(pt->memory, pt->base + ptei * 8 + 4); in gp100_vmm_pfn_clear() 242 if (pgt->pt[0] && !gp100_vmm_pde(pgt->pt[0], &data[0])) in gp100_vmm_pd0_pde() 244 if (pgt->pt[1] && !gp100_vmm_pde(pgt->pt[1], &data[1])) in gp100_vmm_pd0_pde() 276 u32 datalo = nvkm_ro32(pt->memory, pt->base + ptei * 16 + 0); in gp100_vmm_pd0_pfn_unmap() 277 u32 datahi = nvkm_ro32(pt->memory, pt->base + ptei * 16 + 4); in gp100_vmm_pd0_pfn_unmap() 297 u32 datalo = nvkm_ro32(pt->memory, pt->base + ptei * 16 + 0); in gp100_vmm_pd0_pfn_clear() [all …]
|
/linux/drivers/gpu/drm/i915/gt/ |
A D | intel_ppgtt.c | 19 pt = kmalloc(sizeof(*pt), I915_GFP_ALLOW_FAIL); in alloc_pt() 25 kfree(pt); in alloc_pt() 30 return pt; in alloc_pt() 75 container_of(pt, typeof(*pd), pt); in free_px() 237 pt->stash = stash->pt[0]; in i915_vm_alloc_pt_stash() 238 stash->pt[0] = pt; in i915_vm_alloc_pt_stash() 253 pd->pt.stash = stash->pt[1]; in i915_vm_alloc_pt_stash() 254 stash->pt[1] = &pd->pt; in i915_vm_alloc_pt_stash() 268 for (pt = stash->pt[n]; pt; pt = pt->stash) { in i915_vm_map_pt_stash() 285 while ((pt = stash->pt[n])) { in i915_vm_free_pt_stash() [all …]
|
A D | gen6_ppgtt.c | 19 dma_addr_t addr = pt ? px_dma(pt) : px_dma(ppgtt->base.vm.scratch[1]); in gen6_write_pde() 99 vaddr = px_vaddr(pt); in gen6_ppgtt_clear_range() 149 struct i915_page_table *pt; in gen6_flush_pd() local 174 struct i915_page_table *pt; in gen6_alloc_va_range() local 183 if (!pt) { in gen6_alloc_va_range() 186 pt = stash->pt[0]; in gen6_alloc_va_range() 194 stash->pt[0] = pt->stash; in gen6_alloc_va_range() 196 pd->entry[pde] = pt; in gen6_alloc_va_range() 198 pt = pd->entry[pde]; in gen6_alloc_va_range() 257 if (pt) in gen6_ppgtt_free_pd() [all …]
|
/linux/arch/sparc/lib/ |
A D | Memcpy_utils.S | 20 ba,pt %xcc, __restore_asi 24 ba,pt %xcc, __restore_asi 28 ba,pt %xcc, __restore_asi 32 ba,pt %xcc, __restore_asi 36 ba,pt %xcc, __restore_asi 40 ba,pt %xcc, __restore_asi 44 ba,pt %xcc, __restore_asi 48 ba,pt %xcc, __restore_asi 52 ba,pt %xcc, __restore_asi 57 ba,pt %xcc, __restore_asi [all …]
|
/linux/drivers/gpu/drm/i915/selftests/ |
A D | scatterlist.c | 50 pfn = pt->start; in expect_pfn_sg() 51 for_each_sg(pt->st.sgl, sg, pt->st.nents, n) { in expect_pfn_sg() 72 if (pfn != pt->end) { in expect_pfn_sg() 88 pfn = pt->start; in expect_pfn_sg_page_iter() 89 for_each_sg_page(pt->st.sgl, &sgiter, pt->st.nents, 0) { in expect_pfn_sg_page_iter() 120 pfn = pt->start; in expect_pfn_sgtiter() 235 pfn = pt->start; in alloc_table() 236 sg = pt->st.sgl; in alloc_table() 259 pt->st.nents = n; in alloc_table() 260 pt->end = pfn; in alloc_table() [all …]
|
/linux/lib/ |
A D | nlattr.c | 118 (pt->min < 0 || pt->max < 0)); in nla_get_range_unsigned() 122 switch (pt->type) { in nla_get_range_unsigned() 376 if (nla_attr_len[pt->type] && attrlen != nla_attr_len[pt->type]) { in validate_nla() 387 if ((pt->type == NLA_NESTED || pt->type == NLA_NESTED_ARRAY) && in validate_nla() 393 if (pt->type != NLA_NESTED && pt->type != NLA_NESTED_ARRAY && in validate_nla() 426 if (pt->len) in validate_nla() 441 if (pt->len) { in validate_nla() 453 if (pt->len && attrlen > pt->len) in validate_nla() 467 pt->len, pt->nested_policy, in validate_nla() 491 pt->len, pt->nested_policy, in validate_nla() [all …]
|
/linux/drivers/gpu/drm/gma500/ |
A D | mmu.c | 226 kfree(pt); in psb_mmu_free_pt() 248 if (pt) in psb_mmu_free_pagedir() 271 if (!pt) in psb_mmu_alloc_pt() 303 return pt; in psb_mmu_alloc_pt() 319 if (!pt) in psb_mmu_pt_alloc_map_lock() 342 pt->v = kmap_atomic(pt->p); in psb_mmu_pt_alloc_map_lock() 343 return pt; in psb_mmu_pt_alloc_map_lock() 355 if (!pt) { in psb_mmu_pt_map_lock() 359 pt->v = kmap_atomic(pt->p); in psb_mmu_pt_map_lock() 360 return pt; in psb_mmu_pt_map_lock() [all …]
|
/linux/drivers/dma-buf/ |
A D | sw_sync.c | 139 list_del(&pt->link); in timeline_fence_release() 236 struct sync_pt *pt; in sync_pt_create() local 238 pt = kzalloc(sizeof(*pt), GFP_KERNEL); in sync_pt_create() 239 if (!pt) in sync_pt_create() 266 kfree(pt); in sync_pt_create() 267 pt = other; in sync_pt_create() 277 list_add_tail(&pt->link, in sync_pt_create() 283 return pt; in sync_pt_create() 332 struct sync_pt *pt; in sw_sync_ioctl_create_fence() local 345 if (!pt) { in sw_sync_ioctl_create_fence() [all …]
|
/linux/net/netlink/ |
A D | policy.c | 204 switch (pt->type) { in netlink_policy_dump_attr_size_estimate() 254 switch (pt->type) { in __netlink_policy_dump_write_attr() 267 if (state && pt->nested_policy && pt->len && in __netlink_policy_dump_write_attr() 271 pt->len)) || in __netlink_policy_dump_write_attr() 273 pt->len))) in __netlink_policy_dump_write_attr() 283 if (pt->type == NLA_U8) in __netlink_policy_dump_write_attr() 294 pt->mask, in __netlink_policy_dump_write_attr() 315 if (pt->type == NLA_S8) in __netlink_policy_dump_write_attr() 336 pt->bitfield32_valid)) in __netlink_policy_dump_write_attr() 364 } else if (pt->len && in __netlink_policy_dump_write_attr() [all …]
|
/linux/arch/alpha/kernel/ |
A D | process.c | 292 dest[ 0] = pt->r0; in dump_elf_thread() 293 dest[ 1] = pt->r1; in dump_elf_thread() 294 dest[ 2] = pt->r2; in dump_elf_thread() 295 dest[ 3] = pt->r3; in dump_elf_thread() 296 dest[ 4] = pt->r4; in dump_elf_thread() 297 dest[ 5] = pt->r5; in dump_elf_thread() 298 dest[ 6] = pt->r6; in dump_elf_thread() 299 dest[ 7] = pt->r7; in dump_elf_thread() 300 dest[ 8] = pt->r8; in dump_elf_thread() 321 dest[29] = pt->gp; in dump_elf_thread() [all …]
|
/linux/drivers/gpu/drm/ttm/ |
A D | ttm_pool.c | 234 spin_lock(&pt->lock); in ttm_pool_type_give() 245 spin_lock(&pt->lock); in ttm_pool_type_take() 260 pt->pool = pool; in ttm_pool_type_init() 261 pt->caching = caching; in ttm_pool_type_init() 262 pt->order = order; in ttm_pool_type_init() 281 ttm_pool_free_page(pt->pool, pt->caching, pt->order, p); in ttm_pool_type_fini() 320 pt = list_first_entry(&shrinker_list, typeof(*pt), shrinker_list); in ttm_pool_shrink() 326 ttm_pool_free_page(pt->pool, pt->caching, pt->order, p); in ttm_pool_shrink() 392 p = pt ? ttm_pool_type_take(pt) : NULL; in ttm_pool_alloc() 473 if (pt) in ttm_pool_free() [all …]
|
/linux/tools/perf/util/intel-pt-decoder/ |
A D | Build | 1 perf-$(CONFIG_AUXTRACE) += intel-pt-pkt-decoder.o intel-pt-insn-decoder.o intel-pt-log.o intel-pt-d… 6 $(OUTPUT)util/intel-pt-decoder/inat-tables.c: $(inat_tables_script) $(inat_tables_maps) 12 $(OUTPUT)util/intel-pt-decoder/intel-pt-insn-decoder.o: util/intel-pt-decoder/intel-pt-insn-decoder… 16 CFLAGS_intel-pt-insn-decoder.o += -I$(OUTPUT)util/intel-pt-decoder 19 CFLAGS_intel-pt-insn-decoder.o += -Wno-override-init 22 CFLAGS_intel-pt-insn-decoder.o += -Wno-packed
|
/linux/arch/x86/events/intel/ |
A D | pt.c | 400 struct pt *pt = this_cpu_ptr(&pt_ctx); in pt_config_start() local 443 struct pt *pt = this_cpu_ptr(&pt_ctx); in pt_config_filters() local 483 struct pt *pt = this_cpu_ptr(&pt_ctx); in pt_config() local 524 struct pt *pt = this_cpu_ptr(&pt_ctx); in pt_config_stop() local 607 struct pt *pt = this_cpu_ptr(&pt_ctx); in pt_config_buffer() local 938 struct pt *pt = this_cpu_ptr(&pt_ctx); in pt_read_offset() local 1422 struct pt *pt = this_cpu_ptr(&pt_ctx); in intel_pt_interrupt() local 1475 struct pt *pt = this_cpu_ptr(&pt_ctx); in intel_pt_handle_vmx() local 1516 struct pt *pt = this_cpu_ptr(&pt_ctx); in pt_event_start() local 1545 struct pt *pt = this_cpu_ptr(&pt_ctx); in pt_event_stop() local [all …]
|
/linux/arch/x86/kernel/ |
A D | vm86_32.c | 156 regs->pt.ax = retval; in save_v86_state() 257 vm86regs.pt.bx = v.regs.ebx; in do_sys_vm86() 258 vm86regs.pt.cx = v.regs.ecx; in do_sys_vm86() 259 vm86regs.pt.dx = v.regs.edx; in do_sys_vm86() 260 vm86regs.pt.si = v.regs.esi; in do_sys_vm86() 261 vm86regs.pt.di = v.regs.edi; in do_sys_vm86() 262 vm86regs.pt.bp = v.regs.ebp; in do_sys_vm86() 265 vm86regs.pt.cs = v.regs.cs; in do_sys_vm86() 268 vm86regs.pt.ss = v.regs.ss; in do_sys_vm86() 502 if (regs->pt.cs == BIOSSEG) in do_int() [all …]
|
/linux/drivers/media/common/saa7146/ |
A D | saa7146_core.c | 184 if (0 != saa7146_pgtable_build_single(pci, pt, pt->slist, slen)) in saa7146_vmalloc_build_pgtable() 190 dma_unmap_sg(&pci->dev, pt->slist, pt->nents, DMA_FROM_DEVICE); in saa7146_vmalloc_build_pgtable() 194 kfree(pt->slist); in saa7146_vmalloc_build_pgtable() 195 pt->slist = NULL; in saa7146_vmalloc_build_pgtable() 204 dma_unmap_sg(&pci->dev, pt->slist, pt->nents, DMA_FROM_DEVICE); in saa7146_vfree_destroy_pgtable() 206 kfree(pt->slist); in saa7146_vfree_destroy_pgtable() 207 pt->slist = NULL; in saa7146_vfree_destroy_pgtable() 215 dma_free_coherent(&pci->dev, pt->size, pt->cpu, pt->dma); in saa7146_pgtable_free() 216 pt->cpu = NULL; in saa7146_pgtable_free() 229 pt->cpu = cpu; in saa7146_pgtable_alloc() [all …]
|