Projectname large_stringclasses 15
values | Filepath large_stringlengths 4 106 ⌀ | Function large_stringlengths 11 3.45k | Label list |
|---|---|---|---|
Linux Kernel | arch/s390/hypfs/inode.c |
struct dentry *hypfs_mkdir(struct dentry *parent, const char *name) {
struct dentry *dentry;
dentry = hypfs_create_file(parent, name, NULL, S_IFDIR | DIR_MODE);
if (IS_ERR(dentry))
return dentry;
hypfs_add_dentry(dentry);
return dentry;
} | [
0,
0
] |
Linux Kernel | arch/s390/hypfs/inode.c | static struct dentry *hypfs_create_update_file(struct dentry *dir) {
struct dentry *dentry;
dentry = hypfs_create_file(dir, "update", NULL, S_IFREG | UPDATE_FILE_MODE);
return dentry;
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/airq.h |
static inline unsigned long airq_iv_alloc_bit(struct airq_iv *iv) {
return airq_iv_alloc(iv, 1);
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/airq.h |
static inline void airq_iv_free_bit(struct airq_iv *iv, unsigned long bit) {
airq_iv_free(iv, bit, 1);
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/airq.h |
static inline void airq_iv_lock(struct airq_iv *iv, unsigned long bit) {
const unsigned long be_to_le = BITS_PER_LONG - 1;
bit_spin_lock(bit ^ be_to_le, iv->bitlock);
} | [
1,
0
] |
Linux Kernel | arch/s390/include/asm/airq.h |
static inline void airq_iv_set_data(struct airq_iv *iv, unsigned long bit,
unsigned int data) {
iv->data[bit] = data;
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/airq.h |
static inline void airq_iv_set_ptr(struct airq_iv *iv, unsigned long bit,
unsigned long ptr) {
iv->ptr[bit] = ptr;
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/airq.h | static inline unsigned long airq_iv_get_ptr(struct airq_iv *iv,
unsigned long bit) {
return iv->ptr[bit];
}
#endif | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/ap.h | static inline struct ap_queue_status
ap_aqic(ap_qid_t qid, struct ap_qirq_ctrl qirqctrl, phys_addr_t pa_ind) {
unsigned long reg0 = qid | (3UL << 24);
union {
unsigned long value;
struct ap_qirq_ctrl qirqctrl;
struct ap_queue_status status;
} reg1;
unsigned long reg2 = pa_ind;
reg1.qirqctrl = qir... | [
1,
0
] |
Linux Kernel | arch/s390/include/asm/ap.h | static inline struct ap_queue_status
ap_nqap(ap_qid_t qid, unsigned long long psmid, void *msg, size_t length) {
unsigned long reg0 = qid | 0x40000000UL;
union register_pair nqap_r1, nqap_r2;
struct ap_queue_status reg1;
nqap_r1.even = (unsigned int)(psmid >> 32);
nqap_r1.odd = psmid & 0xffffffff;
nqap_r2.... | [
1,
0
] |
Linux Kernel | arch/s390/include/asm/atomic.h |
static inline int arch_atomic_fetch_add(int i, atomic_t *v) {
return __atomic_add_barrier(i, &v->counter);
}
#define arch_atomic_fetch_add arch_atomic_fetch_add | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/atomic.h |
static inline void arch_atomic_add(int i, atomic_t *v) {
__atomic_add(i, &v->counter);
}
#define arch_atomic_add arch_atomic_add
#define arch_atomic_sub(_i, _v) arch_atomic_add(-(int)(_i), _v)
#define arch_atomic_sub_return(_i, _v) arch_atomic_add_return(-(int)(_i), _v)
#define arch_atomic_fetch_sub(_i, _v) arch_at... | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/atomic.h |
static inline void arch_atomic64_add(s64 i, atomic64_t *v) {
__atomic64_add(i, (long *)&v->counter);
}
#define arch_atomic64_add arch_atomic64_add | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/atomic_ops.h |
static inline s64 __atomic64_read(const atomic64_t *v) {
s64 c;
asm volatile(" lg %0,%1\n" : "=d"(c) : "RT"(v->counter));
return c;
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/atomic_ops.h |
static inline bool __atomic_cmpxchg_bool(int *ptr, int old, int new) {
int old_expected = old;
asm volatile(" cs %[old],%[new],%[ptr]"
: [old] "+d"(old), [ptr] "+Q"(*ptr)
: [new] "d"(new)
: "cc", "memory");
return old == old_expected;
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/barrier.h | static __always_inline void bcr_serialize(void) {
asm volatile(__ASM_BCR_SERIALIZE : : : "memory");
}
#define __mb() bcr_serialize()
#define __rmb() barrier()
#define __wmb() barrier()
#define __dma_rmb() __mb()
#define __dma_wmb() __mb()
#define __smp_mb() __mb()
#define __smp_rmb() __rmb()
#define __smp_wmb() __wm... | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/bitops.h |
static inline unsigned long __bitops_mask(unsigned long nr) {
return 1UL << (nr & (BITS_PER_LONG - 1));
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/bitops.h |
static __always_inline void arch_set_bit(unsigned long nr,
volatile unsigned long *ptr) {
unsigned long *addr = __bitops_word(nr, ptr);
unsigned long mask = __bitops_mask(nr);
__atomic64_or(mask, (long *)addr);
} | [
1,
0
] |
Linux Kernel | arch/s390/include/asm/bitops.h |
static inline bool arch_test_and_set_bit(unsigned long nr,
volatile unsigned long *ptr) {
unsigned long *addr = __bitops_word(nr, ptr);
unsigned long mask = __bitops_mask(nr);
unsigned long old;
old = __atomic64_or_barrier(mask, (long *)addr);
return old & mask;
} | [
1,
0
] |
Linux Kernel | arch/s390/include/asm/bitops.h |
static __always_inline void arch___set_bit(unsigned long nr,
volatile unsigned long *addr) {
unsigned long *p = __bitops_word(nr, addr);
unsigned long mask = __bitops_mask(nr);
*p |= mask;
} | [
1,
0
] |
Linux Kernel | arch/s390/include/asm/bitops.h |
static __always_inline bool
arch___test_and_clear_bit(unsigned long nr, volatile unsigned long *addr) {
unsigned long *p = __bitops_word(nr, addr);
unsigned long mask = __bitops_mask(nr);
unsigned long old;
old = *p;
*p &= ~mask;
return old & mask;
} | [
1,
0
] |
Linux Kernel | arch/s390/include/asm/bitops.h |
static __always_inline bool
arch___test_and_change_bit(unsigned long nr, volatile unsigned long *addr) {
unsigned long *p = __bitops_word(nr, addr);
unsigned long mask = __bitops_mask(nr);
unsigned long old;
old = *p;
*p ^= mask;
return old & mask;
}
#define arch_test_bit generic_test_bit
#define arch_te... | [
1,
0
] |
Linux Kernel | arch/s390/include/asm/bitops.h |
static inline bool arch_test_and_set_bit_lock(unsigned long nr,
volatile unsigned long *ptr) {
if (arch_test_bit(nr, ptr))
return true;
return arch_test_and_set_bit(nr, ptr);
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/bitops.h |
static inline void arch_clear_bit_unlock(unsigned long nr,
volatile unsigned long *ptr) {
smp_mb__before_atomic();
arch_clear_bit(nr, ptr);
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/bitops.h |
static inline void clear_bit_inv(unsigned long nr,
volatile unsigned long *ptr) {
return clear_bit(nr ^ (BITS_PER_LONG - 1), ptr);
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/bitops.h |
static inline void __set_bit_inv(unsigned long nr,
volatile unsigned long *ptr) {
return __set_bit(nr ^ (BITS_PER_LONG - 1), ptr);
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/bitops.h | static inline unsigned char __flogr(unsigned long word) {
if (__builtin_constant_p(word)) {
unsigned long bit = 0;
if (!word)
return 64;
if (!(word & 0xffffffff00000000UL)) {
word <<= 32;
bit += 32;
}
if (!(word & 0xffff000000000000UL)) {
word <<= 16;
bit += 16;
... | [
1,
0
] |
Linux Kernel | arch/s390/include/asm/bitops.h | static inline unsigned long __ffs(unsigned long word) {
return __flogr(-word & word) ^ (BITS_PER_LONG - 1);
} | [
1,
0
] |
Linux Kernel | arch/s390/include/asm/bitops.h | static inline unsigned long __fls(unsigned long word) {
return __flogr(word) ^ (BITS_PER_LONG - 1);
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/bitops.h | static inline int fls(unsigned int word) { return fls64(word); }
#include <asm-generic/bitops/ext2-atomic-setbit.h>
#include <asm-generic/bitops/ffz.h>
#include <asm-generic/bitops/hweight.h>
#include <asm-generic/bitops/le.h>
#include <asm-generic/bitops/sched.h>
#endif | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/checksum.h | static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) {
__u64 csum = 0;
__u32 *ptr = (u32 *)iph;
csum += *ptr++;
csum += *ptr++;
csum += *ptr++;
csum += *ptr++;
ihl -= 4;
while (ihl--)
csum += *ptr++;
csum += (csum >> 32) | (csum << 32);
return csum_fold((__force __wsum)(csum >>... | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/chpid.h |
static inline void chp_id_next(struct chp_id *chpid) {
if (chpid->id < __MAX_CHPID)
chpid->id++;
else {
chpid->id = 0;
chpid->cssid++;
}
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/cio.h | static inline int ccw_dev_id_is_equal(struct ccw_dev_id *dev_id1,
struct ccw_dev_id *dev_id2) {
if ((dev_id1->ssid == dev_id2->ssid) && (dev_id1->devno == dev_id2->devno))
return 1;
return 0;
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/compat.h |
static inline int is_compat_task(void) { return test_thread_flag(TIF_31BIT); } | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/cpu_mf.h | static inline int qctri(struct cpumf_ctr_info *info) {
int rc = -EINVAL;
asm volatile("0: qctri %1\n"
"1: lhi %0,0\n"
"2:\n" EX_TABLE(1b, 2b)
: "+d"(rc), "=Q"(*info));
return rc;
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/cpu_mf.h | static inline unsigned long *trailer_entry_ptr(unsigned long v) {
void *ret;
ret = (void *)v;
ret += PAGE_SIZE;
ret -= sizeof(struct hws_trailer_entry);
return (unsigned long *)ret;
} | [
1,
0
] |
Linux Kernel | arch/s390/include/asm/debug.h | static inline debug_entry_t *debug_long_exception(debug_info_t *id, int level,
unsigned long tag) {
unsigned long t = tag;
if ((!id) || (level > id->level) || (id->pages_per_area == 0))
return NULL;
return debug_exception_common(id, level, &t, sizeof(unsigned... | [
1,
0
] |
Linux Kernel | arch/s390/include/asm/entry-common.h |
static __always_inline void arch_exit_to_user_mode_work(struct pt_regs *regs,
unsigned long ti_work) {
if (ti_work & _TIF_PER_TRAP) {
clear_thread_flag(TIF_PER_TRAP);
do_per_trap(regs);
}
if (ti_work & _TIF_GUARDED_STORAGE)
gs_load_bc_cb(regs);... | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/extable.h |
static inline void swap_ex_entry_fixup(struct exception_table_entry *a,
struct exception_table_entry *b,
struct exception_table_entry tmp,
int delta) {
a->fixup = b->fixup + delta;
b->fixup = tmp.fi... | [
1,
0
] |
Linux Kernel | arch/s390/include/asm/facility.h |
static inline void __set_facility(unsigned long nr, void *facilities) {
unsigned char *ptr = (unsigned char *)facilities;
if (nr >= MAX_FACILITY_BIT)
return;
ptr[nr >> 3] |= 0x80 >> (nr & 7);
} | [
1,
0
] |
Linux Kernel | arch/s390/include/asm/facility.h |
static inline void __clear_facility(unsigned long nr, void *facilities) {
unsigned char *ptr = (unsigned char *)facilities;
if (nr >= MAX_FACILITY_BIT)
return;
ptr[nr >> 3] &= ~(0x80 >> (nr & 7));
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/fpu/api.h | static inline void kernel_fpu_end(struct kernel_fpu *state, u32 flags) {
S390_lowcore.fpu_flags = state->mask;
if (state->mask & flags)
__kernel_fpu_end(state, flags);
preempt_enable();
}
#endif /* _ASM_S390_FPU_API_H */ | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/fpu/internal.h |
static inline void convert_vx_to_fp(freg_t *fprs, __vector128 *vxrs) {
int i;
for (i = 0; i < __NUM_FPRS; i++)
fprs[i] = *(freg_t *)(vxrs + i);
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/fpu/internal.h |
static inline void convert_fp_to_vx(__vector128 *vxrs, freg_t *fprs) {
int i;
for (i = 0; i < __NUM_FPRS; i++)
*(freg_t *)(vxrs + i) = fprs[i];
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/fpu/internal.h |
static inline void fpregs_load(_s390_fp_regs *fpregs, struct fpu *fpu) {
fpu->fpc = fpregs->fpc;
if (MACHINE_HAS_VX)
convert_fp_to_vx(fpu->vxrs, (freg_t *)&fpregs->fprs);
else
memcpy(fpu->fprs, (freg_t *)&fpregs->fprs, sizeof(fpregs->fprs));
} | [
1,
0
] |
Linux Kernel | arch/s390/include/asm/ftrace.h |
static inline unsigned long ftrace_call_adjust(unsigned long addr) {
return addr;
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/ftrace.h |
static __always_inline void
ftrace_regs_set_instruction_pointer(struct ftrace_regs *fregs,
unsigned long ip) {
fregs->regs.psw.addr = ip;
}
#define ftrace_regs_get_argument(fregs, n) \
regs_get_kernel_argument(&(fregs)->regs, n)
#define ftrac... | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/ftrace.h | static inline bool arch_syscall_match_sym_name(const char *sym,
const char *name) {
return !strcmp(sym + 7, name) || !strcmp(sym + 8, name);
}
#endif /* __ASSEMBLY__ */
#ifdef CONFIG_FUNCTION_TRACER
#define FTRACE_NOP_INSN .word 0xc004, 0x0000, 0x0000 /* brcl 0,0 */
... | [
1,
0
] |
Linux Kernel | arch/s390/include/asm/futex.h |
static inline int futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr,
u32 oldval, u32 newval) {
int ret;
asm volatile(" sacf 256\n"
"0: cs %1,%4,0(%5)\n"
"1: la %0,0\n"
"2: sacf 768\n" EX_TABLE(0b, 2b) EX_TA... | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/hardirq.h | static inline void ack_bad_irq(unsigned int irq) {
printk(KERN_CRIT "unexpected IRQ trap at vector %02x\n", irq);
}
#endif | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/hugetlb.h |
static inline void arch_clear_hugepage_flags(struct page *page) {
clear_bit(PG_arch_1, &page->flags);
}
#define arch_clear_hugepage_flags arch_clear_hugepage_flags | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/hugetlb.h |
static inline void huge_pte_clear(struct mm_struct *mm, unsigned long addr,
pte_t *ptep, unsigned long sz) {
if ((pte_val(*ptep) & _REGION_ENTRY_TYPE_MASK) == _REGION_ENTRY_TYPE_R3)
set_pte(ptep, __pte(_REGION3_ENTRY_EMPTY));
else
set_pte(ptep, __pte(_SEGMENT_ENTRY_EMPTY))... | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/hugetlb.h |
static inline int huge_pte_write(pte_t pte) { return pte_write(pte); } | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/hugetlb.h |
static inline pte_t huge_pte_wrprotect(pte_t pte) { return pte_wrprotect(pte); } | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/hugetlb.h |
static inline pte_t huge_pte_modify(pte_t pte, pgprot_t newprot) {
return pte_modify(pte, newprot);
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/idals.h | static inline int set_normalized_cda(struct ccw1 *ccw, void *vaddr) {
unsigned int nridaws;
unsigned long *idal;
if (ccw->flags & CCW_FLAG_IDA)
return -EINVAL;
nridaws = idal_nr_words(vaddr, ccw->count);
if (nridaws > 0) {
idal = kmalloc(nridaws * sizeof(unsigned long), GFP_ATOMIC | GFP_DMA);
if ... | [
1,
0
] |
Linux Kernel | arch/s390/include/asm/idals.h | static inline void clear_normalized_cda(struct ccw1 *ccw) {
if (ccw->flags & CCW_FLAG_IDA) {
kfree((void *)(unsigned long)ccw->cda);
ccw->flags &= ~CCW_FLAG_IDA;
}
ccw->cda = 0;
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/idals.h | static inline size_t idal_buffer_to_user(struct idal_buffer *ib,
void __user *to, size_t count) {
size_t left;
int i;
BUG_ON(count > ib->size);
for (i = 0; count > IDA_BLOCK_SIZE; i++) {
left = copy_to_user(to, ib->data[i], IDA_BLOCK_SIZE);
if (left)
retur... | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/io.h | static inline void ioport_unmap(void __iomem *p) {}
#ifdef CONFIG_PCI
#define pci_iomap pci_iomap
#define pci_iomap_range pci_iomap_range
#define pci_iounmap pci_iounmap
#define pci_iomap_wc pci_iomap_wc
#define pci_iomap_wc_range pci_iomap_wc_range
#define ioremap ioremap
#define ioremap_wt ioremap_wt
#define iorem... | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/irqflags.h |
static __always_inline unsigned long arch_local_irq_save(void) {
return __arch_local_irq_stnsm(0xfc);
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/irqflags.h | static __always_inline void arch_local_irq_restore(unsigned long flags) {
if (flags & ARCH_IRQ_ENABLED)
arch_local_irq_enable();
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/irqflags.h |
static __always_inline bool arch_irqs_disabled(void) {
return arch_irqs_disabled_flags(arch_local_save_flags());
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/kasan.h | static inline void kasan_copy_shadow_mapping(void) {} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/kfence.h | static __always_inline void kfence_split_mapping(void) {
#ifdef CONFIG_KFENCE
unsigned long pool_pages = KFENCE_POOL_SIZE >> PAGE_SHIFT;
set_memory_4k((unsigned long)__kfence_pool, pool_pages);
#endif
} | [
1,
0
] |
Linux Kernel | arch/s390/include/asm/kvm_host.h | static inline void kvm_arch_sync_events(struct kvm *kvm) {} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/kvm_host.h | static inline void kvm_arch_free_memslot(struct kvm *kvm,
struct kvm_memory_slot *slot) {} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/kvm_host.h | static inline void kvm_arch_memslots_updated(struct kvm *kvm, u64 gen) {} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/lowcore.h |
static inline void set_prefix(__u32 address) {
asm volatile("spx %0" : : "Q"(address) : "memory");
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/mem_detect.h |
static inline void get_mem_detect_reserved(unsigned long *start,
unsigned long *size) {
*start = (unsigned long)mem_detect.entries_extended;
if (mem_detect.count > MEM_INLINED_ENTRIES)
*size = (mem_detect.count - MEM_INLINED_ENTRIES) *
sizeof(struct mem_de... | [
1,
0
] |
Linux Kernel | arch/s390/include/asm/mmu_context.h | static inline void finish_arch_post_lock_switch(void) {
struct task_struct *tsk = current;
struct mm_struct *mm = tsk->mm;
if (mm) {
preempt_disable();
while (atomic_read(&mm->context.flush_count))
cpu_relax();
cpumask_set_cpu(smp_processor_id(), mm_cpumask(mm));
__tlb_flush_mm_lazy(mm);
... | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/page.h |
static inline void storage_key_init_range(unsigned long start,
unsigned long end) {
if (PAGE_DEFAULT_KEY != 0)
__storage_key_init_range(start, end);
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/page.h |
static inline unsigned long pte_val(pte_t pte) { return pte.pte; } | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/page.h |
static inline unsigned long pgd_val(pgd_t pgd) { return pgd.pgd; } | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/pci.h | static inline bool zpci_use_mio(struct zpci_dev *zdev) {
return static_branch_likely(&have_mio) && zdev->mio_capable;
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/pci.h |
static inline struct zpci_dev *to_zpci_dev(struct device *dev) {
return to_zpci(to_pci_dev(dev));
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/pci.h | static inline int __pcibus_to_node(const struct pci_bus *bus) {
return NUMA_NO_NODE;
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/pci_dma.h |
static inline unsigned int calc_sx(dma_addr_t ptr) {
return ((unsigned long)ptr >> ZPCI_ST_SHIFT) & ZPCI_INDEX_MASK;
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/pci_dma.h |
static inline void set_rt_sto(unsigned long *entry, phys_addr_t sto) {
*entry &= ZPCI_RTE_FLAG_MASK;
*entry |= (sto & ZPCI_RTE_ADDR_MASK);
*entry |= ZPCI_TABLE_TYPE_RTX;
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/pci_dma.h |
static inline void set_st_pto(unsigned long *entry, phys_addr_t pto) {
*entry &= ZPCI_STE_FLAG_MASK;
*entry |= (pto & ZPCI_STE_ADDR_MASK);
*entry |= ZPCI_TABLE_TYPE_SX;
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/pci_dma.h |
static inline void validate_rt_entry(unsigned long *entry) {
*entry &= ~ZPCI_TABLE_VALID_MASK;
*entry &= ~ZPCI_TABLE_OFFSET_MASK;
*entry |= ZPCI_TABLE_VALID;
*entry |= ZPCI_TABLE_LEN_RTX;
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/pci_dma.h |
static inline void validate_st_entry(unsigned long *entry) {
*entry &= ~ZPCI_TABLE_VALID_MASK;
*entry |= ZPCI_TABLE_VALID;
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/pci_dma.h |
static inline void validate_pt_entry(unsigned long *entry) {
WARN_ON_ONCE((*entry & ZPCI_PTE_VALID_MASK) == ZPCI_PTE_VALID);
*entry &= ~ZPCI_PTE_VALID_MASK;
*entry |= ZPCI_PTE_VALID;
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/pci_dma.h |
static inline int pt_entry_isvalid(unsigned long entry) {
return (entry & ZPCI_PTE_VALID_MASK) == ZPCI_PTE_VALID;
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/pci_dma.h |
static inline unsigned long *get_rt_sto(unsigned long entry) {
if ((entry & ZPCI_TABLE_TYPE_MASK) == ZPCI_TABLE_TYPE_RTX)
return phys_to_virt(entry & ZPCI_RTE_ADDR_MASK);
else
return NULL;
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/pci_io.h |
static inline u8 zpci_get_max_write_size(u64 src, u64 dst, int len, int max) {
int count = len > max ? max : len, size = 1;
while (!(src & 0x1) && !(dst & 0x1) && ((size << 1) <= count)) {
dst = dst >> 1;
src = src >> 1;
size = size << 1;
}
return size;
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/pci_io.h |
static inline int zpci_memset_io(volatile void __iomem *dst, unsigned char val,
size_t count) {
u8 *src = kmalloc(count, GFP_KERNEL);
int rc;
if (src == NULL)
return -ENOMEM;
memset(src, val, count);
rc = zpci_memcpy_toio(dst, src, count);
kfree(src);
return rc;
} | [
1,
0
] |
Linux Kernel | arch/s390/include/asm/pgalloc.h |
static inline void crst_table_init(unsigned long *crst, unsigned long entry) {
memset64((u64 *)crst, entry, _CRST_ENTRIES);
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/pgalloc.h |
static inline unsigned long
check_asce_limit(struct mm_struct *mm, unsigned long addr, unsigned long len) {
int rc;
if (addr + len > mm->context.asce_limit && addr + len <= TASK_SIZE) {
rc = crst_table_upgrade(mm, addr + len);
if (rc)
return (unsigned long)rc;
}
return addr;
} | [
1,
0
] |
Linux Kernel | arch/s390/include/asm/pgalloc.h |
static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) {
set_pud(pud, __pud(_REGION3_ENTRY | __pa(pmd)));
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/pgtable.h |
static inline pte_t set_pte_bit(pte_t pte, pgprot_t prot) {
return __pte(pte_val(pte) | pgprot_val(prot));
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/pgtable.h |
static inline pmd_t set_pmd_bit(pmd_t pmd, pgprot_t prot) {
return __pmd(pmd_val(pmd) | pgprot_val(prot));
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/pgtable.h |
static inline pud_t clear_pud_bit(pud_t pud, pgprot_t prot) {
return __pud(pud_val(pud) & ~pgprot_val(prot));
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/pgtable.h |
static inline void csp(unsigned int *ptr, unsigned int old, unsigned int new) {
union register_pair r1 = {
.even = old,
.odd = new,
};
unsigned long address = (unsigned long)ptr | 1;
asm volatile(" csp %[r1],%[address]"
: [r1] "+&d"(r1.pair), "+m"(*ptr)
: [address] "d... | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/pgtable.h |
static inline void crdte(unsigned long old, unsigned long new,
unsigned long *table, unsigned long dtt,
unsigned long address, unsigned long asce) {
union register_pair r1 = {
.even = old,
.odd = new,
};
union register_pair r2 = {
.even = __pa(t... | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/pgtable.h |
static inline int pgd_bad(pgd_t pgd) {
if ((pgd_val(pgd) & _REGION_ENTRY_TYPE_MASK) < _REGION_ENTRY_TYPE_R1)
return 0;
return (pgd_val(pgd) & ~_REGION_ENTRY_BITS) != 0;
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/pgtable.h |
static inline unsigned long pgd_pfn(pgd_t pgd) {
unsigned long origin_mask;
origin_mask = _REGION_ENTRY_ORIGIN;
return (pgd_val(pgd) & origin_mask) >> PAGE_SHIFT;
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/pgtable.h |
static inline int pmd_present(pmd_t pmd) {
return pmd_val(pmd) != _SEGMENT_ENTRY_EMPTY;
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/pgtable.h | static inline int pmd_young(pmd_t pmd) {
return (pmd_val(pmd) & _SEGMENT_ENTRY_YOUNG) != 0;
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/pgtable.h | static inline int pte_present(pte_t pte) {
return (pte_val(pte) & _PAGE_PRESENT) != 0;
} | [
0,
0
] |
Linux Kernel | arch/s390/include/asm/pgtable.h | static inline int pte_swap(pte_t pte) {
return (pte_val(pte) & (_PAGE_PROTECT | _PAGE_PRESENT)) == _PAGE_PROTECT;
} | [
0,
0
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.