Projectname
large_stringclasses
15 values
Filepath
large_stringlengths
4
106
⌀
Function
large_stringlengths
11
3.45k
Label
list
Linux Kernel
arch/sparc/include/asm/cmpxchg_64.h
static inline unsigned long __xchg(unsigned long x, __volatile__ void *ptr, int size) { switch (size) { case 2: return xchg16(ptr, x); case 4: return xchg32(ptr, x); case 8: return xchg64(ptr, x); } __xchg_called_with_bad_pointer(); return x; }
[ 1, 0 ]
Linux Kernel
arch/sparc/include/asm/cmpxchg_64.h
static inline unsigned long __cmpxchg_u8(volatile unsigned char *m, unsigned char old, unsigned char new) { unsigned long maddr = (unsigned long)m; int bit_shift = (((unsigned long)m & 3) ^ 3) << 3; unsigned int mask = 0xff << bit_shift; unsigned int *ptr = (unsigned int...
[ 1, 0 ]
Linux Kernel
arch/sparc/include/asm/cmpxchg_64.h
static inline unsigned long __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new, int size) { switch (size) { case 4: case 8: return __cmpxchg(ptr, old, new, size); default: return __generic_cmpxc...
[ 1, 0 ]
Linux Kernel
arch/sparc/include/asm/compat.h
static inline int is_compat_task(void) { return test_thread_flag(TIF_32BIT); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/dma-mapping.h
static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) { return IS_ENABLED(CONFIG_SPARC64) ? dma_ops : NULL; } #endif
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/floppy_32.h
static unsigned char sun_82072_fd_inb(int port) { udelay(5); switch (port) { default: printk("floppy: Asked to read unknown port %d\n", port); panic("floppy: Port bolixed."); case FD_STATUS: return sun_fdc->status_82072 & ~STATUS_DMA; case FD_DATA: return sun_fdc->data_82072; case FD_DIR: ...
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/floppy_32.h
static unsigned char sun_82077_fd_inb(int port) { udelay(5); switch (port) { default: printk("floppy: Asked to read unknown port %d\n", port); panic("floppy: Port bolixed."); case FD_SRA: return sun_fdc->status1_82077; case FD_SRB: return sun_fdc->status2_82077; case FD_DOR: return sun_...
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/floppy_32.h
static inline void virtual_dma_init(void) {}
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/floppy_32.h
static inline void sun_fd_set_dma_addr(char *buffer) { pdma_vaddr = buffer; }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/floppy_64.h
static unsigned char sun_82077_fd_inb(unsigned long base, unsigned int reg) { udelay(5); switch (reg) { default: printk("floppy: Asked to read unknown port %x\n", reg); panic("floppy: Port bolixed."); case FD_STATUS: return sbus_readb(&sun_fdc->status_82077) & ~STATUS_DMA; case FD_DATA: return...
[ 0, 1 ]
Linux Kernel
arch/sparc/include/asm/floppy_64.h
static void sun_82077_fd_outb(unsigned char value, unsigned long base, unsigned int reg) { udelay(5); switch (reg) { default: printk("floppy: Asked to write to unknown port %x\n", reg); panic("floppy: Port bolixed."); case FD_DOR: sbus_writeb(value, &sun_fdc->dor_82077...
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/floppy_64.h
static void sun_fd_disable_dma(void) { doing_pdma = 0; pdma_base = NULL; }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/floppy_64.h
irqreturn_t sparc_floppy_irq(int irq, void *dev_cookie) { if (likely(doing_pdma)) { void __iomem *stat = (void __iomem *)fdc_status; unsigned char *vaddr = pdma_vaddr; unsigned long size = pdma_size; u8 val; while (size) { val = readb(stat); if (unlikely(!(val & 0x80))) { pdma...
[ 1, 0 ]
Linux Kernel
arch/sparc/include/asm/floppy_64.h
static unsigned char sun_pci_fd_inb(unsigned long base, unsigned int reg) { udelay(5); return inb(base + reg); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/floppy_64.h
static void sun_pci_fd_broken_outb(unsigned char val, unsigned long base, unsigned int reg) { udelay(5); /* * XXX: Due to SUN's broken floppy connector on AX and AXi * we need to turn on MOTOR_0 also, if the floppy is * jumpered to DS1 (like most PC floppies are...
[ 1, 1 ]
Linux Kernel
arch/sparc/include/asm/floppy_64.h
static void sun_pci_fd_lde_broken_outb(unsigned char val, unsigned long base, unsigned int reg) { udelay(5); /* * XXX: Due to SUN's broken floppy connector on AX and AXi * we need to turn on MOTOR_0 also, if the floppy is * jumpered to DS1 (like most PC flop...
[ 1, 1 ]
Linux Kernel
arch/sparc/include/asm/floppy_64.h
static void sun_pci_fd_disable_dma(void) { ebus_dma_enable(&sun_pci_fd_ebus_dma, 0); if (sun_pci_dma_current.addr != -1U) dma_unmap_single(sun_floppy_dev, sun_pci_dma_current.addr, sun_pci_dma_current.len, sun_pci_dma_current.direction); sun_pci_dma_current.addr = -1U; }
[ 1, 0 ]
Linux Kernel
arch/sparc/include/asm/floppy_64.h
static void sun_pci_fd_set_dma_count(int length) { sun_pci_dma_pending.len = length; }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/floppy_64.h
static void sun_pci_fd_out_byte(unsigned long port, unsigned char val, unsigned long reg) { unsigned char status; int timeout = 1000; while (!((status = inb(MSR)) & 0x80) && --timeout) udelay(100); outb(val, reg); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/hugetlb.h
static inline void huge_ptep_set_wrprotect(struct mm_struct *mm, unsigned long addr, pte_t *ptep) { pte_t old_pte = *ptep; set_huge_pte_at(mm, addr, ptep, pte_wrprotect(old_pte)); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/ide.h
static inline void __ide_outsw(void __iomem *port, const void *src, u32 count) { #if defined(CONFIG_SPARC64) && defined(DCACHE_ALIASING_POSSIBLE) unsigned long end = (unsigned long)src + (count << 1); #endif const u16 *ps = src; const u32 *pi; if (((unsigned long)src) & 0x2) { __raw_writew(*ps++, port); ...
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/io_32.h
static inline u8 sbus_readb(const volatile void __iomem *addr) { return *(__force volatile u8 *)addr; }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/io_32.h
static inline void sbus_writeb(u8 b, volatile void __iomem *addr) { *(__force volatile u8 *)addr = b; }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/io_32.h
static inline int sbus_can_dma_64bit(void) { return 0; }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/io_64.h
static inline u16 __raw_readw(const volatile void __iomem *addr) { u16 ret; __asm__ __volatile__("lduha\t[%1] %2, %0\t" : "=r"(ret) : "r"(addr), "i"(ASI_PHYS_BYPASS_EC_E)); return ret; }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/io_64.h
static inline u64 __raw_readq(const volatile void __iomem *addr) { u64 ret; __asm__ __volatile__("ldxa\t[%1] %2, %0\t" : "=r"(ret) : "r"(addr), "i"(ASI_PHYS_BYPASS_EC_E)); return ret; }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/io_64.h
static inline void __raw_writeq(u64 q, const volatile void __iomem *addr) { __asm__ __volatile__("stxa\t%r0, [%1] %2\t" : /* no outputs */ : "Jr"(q), "r"(addr), "i"(ASI_PHYS_BYPASS_EC_E)); } /* Memory functions, same as I/O accesses on Ultra. * Access memory as little e...
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/io_64.h
static inline u32 inl(unsigned long addr) { return readl((volatile void __iomem *)addr); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/io_64.h
static inline void outb(u8 b, unsigned long addr) { writeb(b, (volatile void __iomem *)addr); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/io_64.h
static inline void writesl(void __iomem *port, const void *buf, unsigned long count) { outsl((unsigned long __force)port, buf, count); } #define writesl writesl #define ioread8_rep(p, d, l) readsb(p, d, l) #define ioread16_rep(p, d, l) readsw(p, d, l) #define ioread32_rep(p, d, l) readsl(p...
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/io_64.h
static inline u8 sbus_readb(const volatile void __iomem *addr) { return __raw_readb(addr); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/io_64.h
static inline void __iomem *ioremap_np(unsigned long offset, unsigned long size) { return NULL; }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/io_64.h
static inline void iounmap(volatile void __iomem *addr) {} #define ioread8 readb #define ioread16 readw #define ioread16be __raw_readw #define ioread32 readl #define ioread32be __raw_readl #define iowrite8 writeb #define iowrite16 writew #define iowrite16be __raw_writew #define iowrite32 writel
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/irqflags_64.h
static inline notrace void arch_local_irq_restore(unsigned long flags) { __asm__ __volatile__("wrpr %0, %%pil" : : "r"(flags) : "memory"); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/irqflags_64.h
static inline notrace int arch_irqs_disabled_flags(unsigned long flags) { return (flags > 0); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/irqflags_64.h
static inline notrace unsigned long arch_local_irq_save(void) { unsigned long flags, tmp; __asm__ __volatile__("rdpr %%pil, %0\n\t" "or %0, %2, %1\n\t" "wrpr %1, 0x0, %%pil" : "=r"(flags), "=r"(tmp) : "i"(PIL_NORMAL_MAX) ...
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/jump_label.h
static __always_inline bool arch_static_branch_jump(struct static_key *key, bool branch) { asm_volatile_goto( "1:\n\t" "b %l[l_yes]\n\t" "nop\n\t" ".pushsection __jump_table, \"aw\"\n\t" ".align 4\n\t" ".word 1b, %l[l_yes], %c0\...
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/ldc.h
static inline int ldc_get_dring_entry(struct ldc_channel *lp, void *buf, unsigned int len, unsigned long offset, struct ldc_trans_cookie *cookies, int ncookies) { return ldc_copy(lp, LDC_COPY_IN, buf, le...
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/leon.h
static inline void sparc_leon3_enable_snooping(void) { __asm__ __volatile__("lda [%%g0] 2, %%l1\n\t" "set 0x800000, %%l2\n\t" "or %%l2, %%l1, %%l2\n\t" "sta %%l2, [%%g0] 2\n\t" : : ...
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/leon.h
static inline unsigned long sparc_leon3_asr17(void) { u32 asr17; __asm__ __volatile__("rd %%asr17, %0\n\t" : "=r"(asr17)); return asr17; }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/mmu_context_64.h
static inline void tsb_context_switch_ctx(struct mm_struct *mm, unsigned long ctx) { __tsb_context_switch(__pa(mm->pgd), &mm->context.tsb_block[MM_TSB_BASE], #if defined(CONFIG_HUGETLB_PAGE) || defined(CONFIG_TRANSPARENT_HUGEPAGE) (mm->context.tsb_bloc...
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/mmu_context_64.h
static inline void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, struct task_struct *tsk) { unsigned long ctx_valid, flags; int cpu = smp_processor_id(); per_cpu(per_cpu_secondary_mm, cpu) = mm; if (unlikely(mm == &init_mm)) return; spin_lock_irqsave(&mm->context...
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/mxcc.h
static inline void mxcc_set_stream_src(unsigned long *paddr) { unsigned long data0 = paddr[0]; unsigned long data1 = paddr[1]; __asm__ __volatile__("or %%g0, %0, %%g2\n\t" "or %%g0, %1, %%g3\n\t" "stda %%g2, [%2] %3\n\t" : ...
[ 1, 0 ]
Linux Kernel
arch/sparc/include/asm/ns87303.h
static inline int ns87303_modify(unsigned long port, unsigned int index, unsigned char clr, unsigned char set) { static unsigned char reserved[] = { FER_RESERVED, FAR_RESERVED, PTR_RESERVED, FCR_RESERVED, PCR_RESERVED, KRR_RESERVED, PMC_RESERVED, TUP_RESERV...
[ 1, 0 ]
Linux Kernel
arch/sparc/include/asm/obio.h
static inline void bw_clear_intr_mask(int sbus_level, int mask) { __asm__ __volatile__( "stha %0, [%1] %2" : : "r"(mask), "r"(BW_LOCAL_BASE + BW_INTR_TABLE_CLEAR + (sbus_level << 3)), "i"(ASI_M_CTL)); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/obio.h
static inline unsigned int bw_get_prof_limit(int cpu) { unsigned int limit; __asm__ __volatile__("lda [%1] %2, %0" : "=r"(limit) : "r"(CSR_BASE(cpu) + BW_PTIMER_LIMIT), "i"(ASI_M_CTL)); return limit; }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/obio.h
static inline unsigned int cc_get_ipen(void) { unsigned int pending; __asm__ __volatile__("lduha [%1] %2, %0" : "=r"(pending) : "r"(CC_IPEN), "i"(ASI_M_MXCC)); return pending; }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/obio.h
static inline unsigned int cc_get_imsk_other(int cpuid) { unsigned int mask; __asm__ __volatile__("lduha [%1] %2, %0" : "=r"(mask) : "r"(ECSR_BASE(cpuid) | CC_IMSK), "i"(ASI_M_CTL)); return mask; }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/obio.h
static inline void cc_set_imsk_other(int cpuid, unsigned int mask) { __asm__ __volatile__("stha %0, [%1] %2" : : "r"(mask), "r"(ECSR_BASE(cpuid) | CC_IMSK), "i"(ASI_M_CTL)); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/parport.h
static inline int request_dma(unsigned int dmanr, const char *device_id) { if (dmanr >= PARPORT_PC_MAX_PORTS) return -EINVAL; if (xchg(&sparc_ebus_dmas[dmanr].lock, 1) != 0) return -EBUSY; return 0; }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/parport.h
static inline void free_dma(unsigned int dmanr) { if (dmanr >= PARPORT_PC_MAX_PORTS) { printk(KERN_WARNING "Trying to free DMA%d\n", dmanr); return; } if (xchg(&sparc_ebus_dmas[dmanr].lock, 0) == 0) { printk(KERN_WARNING "Trying to free free DMA%d\n", dmanr); return; } }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/parport.h
static inline void disable_dma(unsigned int dmanr) { ebus_dma_enable(&sparc_ebus_dmas[dmanr].info, 0); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/parport.h
static inline void set_dma_mode(unsigned int dmanr, char mode) { ebus_dma_prepare(&sparc_ebus_dmas[dmanr].info, (mode != DMA_MODE_WRITE)); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/pcic.h
static inline int pcic_probe(void) { return 0; }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/pgalloc_32.h
static inline void free_pgd_fast(pgd_t *pgd) { srmmu_free_nocache(pgd, SRMMU_PGD_TABLE_SIZE); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/pgalloc_64.h
static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) { kmem_cache_free(pgtable_cache, pgd); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/pgalloc_64.h
static inline void pud_free(struct mm_struct *mm, pud_t *pud) { kmem_cache_free(pgtable_cache, pud); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/pgtable_32.h
static inline int srmmu_device_memory(unsigned long x) { return ((x & 0xF0000000) != 0); }
[ 1, 0 ]
Linux Kernel
arch/sparc/include/asm/pgtable_32.h
static inline pmd_t *pud_pgtable(pud_t pud) { if (srmmu_device_memory(pud_val(pud))) { return (pmd_t *)~0; } else { unsigned long v = pud_val(pud) & SRMMU_PTD_PMASK; return (pmd_t *)__nocache_va(v << 4); } }
[ 1, 0 ]
Linux Kernel
arch/sparc/include/asm/pgtable_32.h
static inline pte_t pte_mkwrite(pte_t pte) { return __pte(pte_val(pte) | SRMMU_WRITE); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/pgtable_32.h
static inline pte_t mk_pte_phys(unsigned long page, pgprot_t pgprot) { return __pte(((page) >> 4) | pgprot_val(pgprot)); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/pgtable_32.h
static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) { return __pte((pte_val(pte) & SRMMU_CHG_MASK) | pgprot_val(newprot)); } #define pud_page(pud) NULL
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/pgtable_64.h
static inline pmd_t pfn_pmd(unsigned long page_nr, pgprot_t pgprot) { pte_t pte = pfn_pte(page_nr, pgprot); return __pmd(pte_val(pte)); } #define mk_pmd(page, pgprot) pfn_pmd(page_to_pfn(page), (pgprot))
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/pgtable_64.h
static inline bool is_hugetlb_pud(pud_t pud) { return !!(pud_val(pud) & _PAGE_PUD_HUGE); } #ifdef CONFIG_TRANSPARENT_HUGEPAGE
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/pgtable_64.h
static inline pmd_t pmd_mkhuge(pmd_t pmd) { pte_t pte = __pte(pmd_val(pmd)); pte = pte_mkhuge(pte); pte_val(pte) |= _PAGE_PMD_HUGE; return __pmd(pte_val(pte)); } #endif #else
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/pgtable_64.h
static inline pte_t pte_mkdirty(pte_t pte) { unsigned long val = pte_val(pte), tmp; __asm__ __volatile__("\n661: or %0, %3, %0\n" " nop\n" "\n662: nop\n" " nop\n" " .section .sun4v_2insn_patch, \"ax\"\n" ...
[ 1, 0 ]
Linux Kernel
arch/sparc/include/asm/pgtable_64.h
static inline pte_t pte_mkclean(pte_t pte) { unsigned long val = pte_val(pte), tmp; __asm__ __volatile__("\n661: andn %0, %3, %0\n" " nop\n" "\n662: nop\n" " nop\n" " .section .sun4v_2insn_patch, \"ax\"\n" ...
[ 1, 0 ]
Linux Kernel
arch/sparc/include/asm/pgtable_64.h
static inline pte_t pte_mkmcd(pte_t pte) { pte_val(pte) |= _PAGE_MCD_4V; return pte; }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/pgtable_64.h
static inline unsigned long pte_young(pte_t pte) { unsigned long mask; __asm__ __volatile__("\n661: mov %1, %0\n" " nop\n" " .section .sun4v_2insn_patch, \"ax\"\n" " .word 661b\n" " sethi %%uhi(%2), %0\n" ...
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/pgtable_64.h
static inline pmd_t pmd_mkold(pmd_t pmd) { pte_t pte = __pte(pmd_val(pmd)); pte = pte_mkold(pte); return __pmd(pte_val(pte)); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/pgtable_64.h
static inline pgprot_t pmd_pgprot(pmd_t entry) { unsigned long val = pmd_val(entry); return __pgprot(val); }
[ 1, 0 ]
Linux Kernel
arch/sparc/include/asm/pgtable_64.h
static inline pmd_t *pud_pgtable(pud_t pud) { pte_t pte = __pte(pud_val(pud)); unsigned long pfn; pfn = pte_pfn(pte); return ((pmd_t *)__va(pfn << PAGE_SHIFT)); } #define pmd_page(pmd) virt_to_page((void *)pmd_page_vaddr(pmd)) #define pud_page(pud) virt_to_page((void *)pud_pgtable(pud)) #define pmd_clear(pmd...
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/pgtable_64.h
static inline unsigned long pud_large(pud_t pud) { pte_t pte = __pte(pud_val(pud)); return pte_val(pte) & _PAGE_PMD_HUGE; }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/pgtable_64.h
static void maybe_tlb_batch_add(struct mm_struct *mm, unsigned long vaddr, pte_t *ptep, pte_t orig, int fullmm, unsigned int hugepage_shift) { if (likely(mm != &init_mm) && pte_accessible(mm, orig)) tlb_batch_add(mm, vaddr, ptep, orig, fullmm, hugep...
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/pgtable_64.h
static inline void arch_do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma, unsigned long addr, pte_t pte, pte_t oldpte) { if (pte_none(oldpte)) return; if (adi_state.enabled && (pte_val(p...
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/processor_64.h
static inline void prefetchw(const void *x) { __asm__ __volatile__("prefetch [%0], #n_writes" : /* no outputs */ : "r"(x)); } #define spin_lock_prefetch(x) prefetchw(x) #define HAVE_ARCH_PICK_MMAP_LAYOUT
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/ptrace.h
static inline bool pt_regs_is_syscall(struct pt_regs *regs) { return (regs->tstate & TSTATE_SYSCALL); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/ptrace.h
static inline unsigned long regs_get_register(struct pt_regs *regs, unsigned long offset) { if (unlikely(offset >= MAX_REG_OFFSET)) return 0; if (offset == PT_V9_Y) return *(unsigned int *)((unsigned long)regs + offset); return *(unsigned long *)((unsigned lon...
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/ptrace.h
static inline bool pt_regs_is_syscall(struct pt_regs *regs) { return (regs->psr & PSR_SYSCALL); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/ross.h
static inline void hyper_flush_whole_icache(void) { __asm__ __volatile__("sta %%g0, [%%g0] %0\n\t" : : "i"(ASI_M_FLUSH_IWHOLE) : "memory"); return; }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/ross.h
static inline void hyper_clear_all_tags(void) { unsigned long addr; for (addr = 0; addr < vac_cache_size; addr += vac_line_size) __asm__ __volatile__("sta %%g0, [%0] %1\n\t" : : "r"(addr), "i"(ASI_M_DATAC_TAG) : "memory"); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/sbi.h
static inline void release_sbi(int devid, int mask) { __asm__ __volatile__("sta %0, [%1] %2" : : "r"(mask), "r"(ECSR_DEV_BASE(devid) | SBI_INTR_STATE), "i"(ASI_M_CTL)); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/smp_32.h
static inline void xc2(void *func, unsigned long arg1, unsigned long arg2) { sparc32_ipi_ops->cross_call(func, *cpu_online_mask, arg1, arg2, 0, 0); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/smp_32.h
static inline void xc4(void *func, unsigned long arg1, unsigned long arg2, unsigned long arg3, unsigned long arg4) { sparc32_ipi_ops->cross_call(func, *cpu_online_mask, arg1, arg2, arg3, arg4); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/spinlock_32.h
static inline int arch_spin_trylock(arch_spinlock_t *lock) { unsigned int result; __asm__ __volatile__("ldstub [%1], %0" : "=r"(result) : "r"(lock) : "memory"); return (result == 0); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/spitfire.h
static inline unsigned long spitfire_get_dtlb_tag(int entry) { unsigned long tag; __asm__ __volatile__("ldxa [%1] %2, %0" : "=r"(tag) : "r"(entry << 3), "i"(ASI_DTLB_TAG_READ)); return tag; }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/spitfire.h
static inline void spitfire_put_dtlb_data(int entry, unsigned long data) { __asm__ __volatile__("stxa %0, [%1] %2\n\t" "membar #Sync" : : "r"(data), "r"(entry << 3), "i"(ASI_DTLB_DATA_ACCESS)); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/spitfire.h
static inline void spitfire_put_itlb_data(int entry, unsigned long data) { __asm__ __volatile__("stxa %0, [%1] %2\n\t" "membar #Sync" : : "r"(data), "r"(entry << 3), "i"(ASI_ITLB_DATA_ACCESS)); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/spitfire.h
static inline void spitfire_flush_dtlb_nucleus_page(unsigned long page) { __asm__ __volatile__("stxa %%g0, [%0] %1\n\t" "membar #Sync" : : "r"(page | 0x20), "i"(ASI_DMMU_DEMAP)); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/spitfire.h
static inline unsigned long cheetah_get_ldtlb_data(int entry) { unsigned long data; __asm__ __volatile__("ldxa [%1] %2, %%g0\n\t" "ldxa [%1] %2, %0" : "=r"(data) : "r"((0 << 16) | (entry << 3)), "i"(ASI_DTLB_DATA_ACCESS))...
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/spitfire.h
static inline void cheetah_put_litlb_data(int entry, unsigned long data) { __asm__ __volatile__("stxa %0, [%1] %2\n\t" "membar #Sync" : : "r"(data), "r"((0 << 16) | (entry << 3)), "i"(ASI_ITLB_DATA_ACCESS)); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/spitfire.h
static inline unsigned long cheetah_get_itlb_tag(int entry) { unsigned long tag; __asm__ __volatile__("ldxa [%1] %2, %0" : "=r"(tag) : "r"((2 << 16) | (entry << 3)), "i"(ASI_ITLB_TAG_READ)); return tag; }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/swift.h
static inline void swift_inv_data_tag(unsigned long addr) { __asm__ __volatile__("sta %%g0, [%0] %1\n\t" : : "r"(addr), "i"(ASI_M_DATAC_TAG) : "memory"); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/swift.h
static inline void swift_flush_icache(void) { unsigned long addr; for (addr = 0; addr < 0x4000; addr += 0x20) swift_inv_insn_tag(addr); }
[ 1, 0 ]
Linux Kernel
arch/sparc/include/asm/swift.h
static inline void swift_idflash_clear(void) { unsigned long addr; for (addr = 0; addr < 0x2000; addr += 0x10) { swift_inv_insn_tag(addr << 1); swift_inv_data_tag(addr); } }
[ 1, 0 ]
Linux Kernel
arch/sparc/include/asm/swift.h
static inline void swift_flush_context(void) { __asm__ __volatile__("sta %%g0, [%%g0] %0\n\t" : : "i"(ASI_M_FLUSH_CTX) : "memory"); } #endif /* !(_SPARC_SWIFT_H) */
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/syscall.h
static inline long syscall_get_nr(struct task_struct *task, struct pt_regs *regs) { int syscall_p = pt_regs_is_syscall(regs); return (syscall_p ? regs->u_regs[UREG_G1] : -1L); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/syscall.h
static inline void syscall_set_error(struct pt_regs *regs) { regs->tstate |= (TSTATE_XCARRY | TSTATE_ICARRY); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/syscall.h
static inline void syscall_clear_error(struct pt_regs *regs) { regs->tstate &= ~(TSTATE_XCARRY | TSTATE_ICARRY); }
[ 0, 0 ]
Linux Kernel
arch/sparc/include/asm/syscall.h
static inline void syscall_set_return_value(struct task_struct *task, struct pt_regs *regs, int error, long val) { if (error) { syscall_set_error(regs); regs->u_regs[UREG_I0] = -error; } else { syscall_clear_error(r...
[ 0, 0 ]