/openbmc/linux/include/net/netfilter/ |
H A D | nf_tables_core.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 98 const u32 *key, const struct nft_set_ext **ext); 100 const u32 *key, const struct nft_set_ext **ext); 102 const u32 *key, const struct nft_set_ext **ext); 105 const u32 *key, const struct nft_set_ext **ext); 107 const u32 *key, const struct nft_set_ext **ext); 109 const u32 *key, const struct nft_set_ext **ext); 113 const u32 *key, const struct nft_set_ext **ext) in nft_set_do_lookup() argument 115 return set->ops->lookup(net, set, key, ext); in nft_set_do_lookup() 121 const u32 *key, const struct nft_set_ext **ext); [all …]
|
H A D | nf_tables.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 42 return pkt->state->sk; in nft_sk() 47 return pkt->thoff; in nft_thoff() 52 return pkt->state->net; in nft_net() 57 return pkt->state->hook; in nft_hook() 62 return pkt->state->pf; in nft_pf() 67 return pkt->state->in; in nft_in() 72 return pkt->state->out; in nft_out() 79 pkt->skb = skb; in nft_set_pktinfo() 80 pkt->state = state; in nft_set_pktinfo() [all …]
|
/openbmc/linux/arch/s390/kernel/ |
H A D | irq.c | 1 // SPDX-License-Identifier: GPL-2.0 24 #include <linux/entry-common.h> 54 {.irq = EXT_INTERRUPT, .name = "EXT"}, 65 {.irq = IRQEXT_CLK, .name = "CLK", .desc = "[EXT] Clock Comparator"}, 66 {.irq = IRQEXT_EXC, .name = "EXC", .desc = "[EXT] External Call"}, 67 {.irq = IRQEXT_EMS, .name = "EMS", .desc = "[EXT] Emergency Signal"}, 68 {.irq = IRQEXT_TMR, .name = "TMR", .desc = "[EXT] CPU Timer"}, 69 {.irq = IRQEXT_TLA, .name = "TAL", .desc = "[EXT] Timing Alert"}, 70 {.irq = IRQEXT_PFL, .name = "PFL", .desc = "[EXT] Pseudo Page Fault"}, 71 {.irq = IRQEXT_DSD, .name = "DSD", .desc = "[EXT] DASD Diag"}, [all …]
|
H A D | dumpstack.c | 1 // SPDX-License-Identifier: GPL-2.0 48 info->type = type; in in_stack() 49 info->begin = stack; in in_stack() 50 info->end = stack + THREAD_SIZE; in in_stack() 64 unsigned long stack = S390_lowcore.async_stack - STACK_INIT_OFFSET; in in_irq_stack() 71 unsigned long stack = S390_lowcore.nodat_stack - STACK_INIT_OFFSET; in in_nodat_stack() 78 unsigned long stack = S390_lowcore.mcck_stack - STACK_INIT_OFFSET; in in_mcck_stack() 85 unsigned long stack = S390_lowcore.restart_stack - STACK_INIT_OFFSET; in in_restart_stack() 100 /* Check per-task stack */ in get_stack_info() 107 /* Check per-cpu stacks */ in get_stack_info() [all …]
|
/openbmc/linux/net/netfilter/ |
H A D | nft_lookup.c | 1 // SPDX-License-Identifier: GPL-2.0-only 29 const u32 *key, const struct nft_set_ext **ext) in nft_set_do_lookup() argument 31 if (set->ops == &nft_set_hash_fast_type.ops) in nft_set_do_lookup() 32 return nft_hash_lookup_fast(net, set, key, ext); in nft_set_do_lookup() 33 if (set->ops == &nft_set_hash_type.ops) in nft_set_do_lookup() 34 return nft_hash_lookup(net, set, key, ext); in nft_set_do_lookup() 36 if (set->ops == &nft_set_rhash_type.ops) in nft_set_do_lookup() 37 return nft_rhash_lookup(net, set, key, ext); in nft_set_do_lookup() 39 if (set->ops == &nft_set_bitmap_type.ops) in nft_set_do_lookup() 40 return nft_bitmap_lookup(net, set, key, ext); in nft_set_do_lookup() [all …]
|
H A D | nft_dynset.c | 1 // SPDX-License-Identifier: GPL-2.0-only 30 const struct nft_set_ext *ext) in nft_dynset_expr_setup() argument 32 struct nft_set_elem_expr *elem_expr = nft_set_ext_expr(ext); in nft_dynset_expr_setup() 36 for (i = 0; i < priv->num_exprs; i++) { in nft_dynset_expr_setup() 37 expr = nft_setelem_expr_at(elem_expr, elem_expr->size); in nft_dynset_expr_setup() 38 if (nft_expr_clone(expr, priv->expr_array[i]) < 0) in nft_dynset_expr_setup() 39 return -1; in nft_dynset_expr_setup() 41 elem_expr->size += priv->expr_array[i]->ops->size; in nft_dynset_expr_setup() 48 struct nft_regs *regs) in nft_dynset_new() argument 51 struct nft_set_ext *ext; in nft_dynset_new() local [all …]
|
H A D | nft_objref.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2012-2016 Pablo Neira Ayuso <pablo@netfilter.org> 17 struct nft_regs *regs, in nft_objref_eval() argument 22 obj->ops->eval(obj, regs, pkt); in nft_objref_eval() 30 u8 genmask = nft_genmask_next(ctx->net); in nft_objref_init() 35 return -EINVAL; in nft_objref_init() 38 obj = nft_obj_lookup(ctx->net, ctx->table, in nft_objref_init() 42 return -ENOENT; in nft_objref_init() 44 if (!nft_use_inc(&obj->use)) in nft_objref_init() 45 return -EMFILE; in nft_objref_init() [all …]
|
H A D | nft_set_hash.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2008-2014 Patrick McHardy <kaber@trash.net> 33 struct nft_set_ext ext; member 46 return jhash(arg->key, len, seed); in nft_rhash_key() 53 return jhash(nft_set_ext_key(&he->ext), len, seed); in nft_rhash_obj() 59 const struct nft_rhash_cmp_arg *x = arg->key; in nft_rhash_cmp() 62 if (memcmp(nft_set_ext_key(&he->ext), x->key, x->set->klen)) in nft_rhash_cmp() 64 if (nft_set_elem_is_dead(&he->ext)) in nft_rhash_cmp() 66 if (nft_set_elem_expired(&he->ext)) in nft_rhash_cmp() 68 if (!nft_set_elem_active(&he->ext, x->genmask)) in nft_rhash_cmp() [all …]
|
/openbmc/qemu/linux-user/s390x/ |
H A D | signal.c | 21 #include "user-internals.h" 22 #include "signal-common.h" 23 #include "linux-user/trace.h" 24 #include "vdso-asmoffset.h" 31 #define _SIGCONTEXT_NSIG_BPW 64 /* FIXME: 31-bit mode -> 32 */ 49 target_s390_regs_common regs; member 80 uint8_t reserved[128 - sizeof(target_sigset_t)]; 104 if (ka->sa_flags & TARGET_SA_ONSTACK) { in get_sigframe() 109 else if (/* FIXME !user_mode(regs) */ 0 && in get_sigframe() 110 !(ka->sa_flags & TARGET_SA_RESTORER) && in get_sigframe() [all …]
|
/openbmc/qemu/target/microblaze/ |
H A D | mmu.c | 5 * Copyright (c) 2009-2012 PetaLogix Qld Pty Ltd. 24 #include "exec/exec-all.h" 25 #include "exec/page-protection.h" 40 MicroBlazeMMU *mmu = &env->mmu; in mmu_flush_idx() 44 t = mmu->rams[RAM_TAG][idx]; in mmu_flush_idx() 60 MicroBlazeMMU *mmu = &env->mmu; in mmu_change_pid() 67 for (i = 0; i < ARRAY_SIZE(mmu->rams[RAM_TAG]); i++) { in mmu_change_pid() 69 t = mmu->rams[RAM_TAG][i]; in mmu_change_pid() 71 if (mmu->tids[i] && ((mmu->regs[MMU_R_PID] & 0xff) == mmu->tids[i])) in mmu_change_pid() 77 /* rw - 0 = read, 1 = write, 2 = fetch. */ [all …]
|
/openbmc/linux/arch/mips/kernel/ |
H A D | signal.c | 7 * Copyright (C) 1994 - 2000 Ralf Baechle 37 #include <asm/cpu-features.h> 42 #include "signal-common.h" 72 struct mips_abi *abi = current->thread.abi; in copy_fp_to_sigcontext() 73 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; in copy_fp_to_sigcontext() 74 uint32_t __user *csr = sc + abi->off_sc_fpc_csr; in copy_fp_to_sigcontext() 81 __put_user(get_fpr64(¤t->thread.fpu.fpr[i], 0), in copy_fp_to_sigcontext() 84 err |= __put_user(current->thread.fpu.fcr31, csr); in copy_fp_to_sigcontext() 91 struct mips_abi *abi = current->thread.abi; in copy_fp_from_sigcontext() 92 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; in copy_fp_from_sigcontext() [all …]
|
H A D | mips-r2-to-r6-emul.c | 28 #include <asm/mips-r2-to-r6-emul.h> 37 #define EXT "dext " macro 41 #define EXT "ext " macro 65 pr_info("MIPS R2-to-R6 Emulator Enabled!"); in mipsr2emu_enable() 72 * mipsr6_emul - Emulate some frequent R2/R5/R6 instructions in delay slot 75 * @regs: Process register set 78 static inline int mipsr6_emul(struct pt_regs *regs, u32 ir) in mipsr6_emul() argument 83 regs->regs[MIPSInst_RT(ir)] = in mipsr6_emul() 84 (s32)regs->regs[MIPSInst_RS(ir)] + in mipsr6_emul() 92 regs->regs[MIPSInst_RT(ir)] = in mipsr6_emul() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/remoteproc/ |
H A D | qcom,sc7280-mss-pil.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/remoteproc/qcom,sc7280-mss-pil.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sibi Sankar <quic_sibis@quicinc.com> 19 - qcom,sc7280-mss-pil 23 - description: MSS QDSP6 registers 24 - description: RMB registers 26 reg-names: 28 - const: qdsp6 [all …]
|
/openbmc/linux/drivers/net/ethernet/altera/ |
H A D | altera_tse_ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* Ethtool support for Altera Triple-Speed Ethernet MAC driver 3 * Copyright (C) 2008-2014 Altera Corporation. All rights reserved 67 u32 rev = ioread32(&priv->mac_dev->megacore_revision); in tse_get_drvinfo() 69 strcpy(info->driver, "altera_tse"); in tse_get_drvinfo() 70 snprintf(info->fw_version, ETHTOOL_FWVERS_LEN, "v%d.%d", in tse_get_drvinfo() 72 sprintf(info->bus_info, "platform"); in tse_get_drvinfo() 87 u64 ext; in tse_fill_stats() local 89 buf[0] = csrrd32(priv->mac_dev, in tse_fill_stats() 91 buf[1] = csrrd32(priv->mac_dev, in tse_fill_stats() [all …]
|
/openbmc/linux/arch/powerpc/platforms/cell/ |
H A D | interrupt.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 13 * - Fix various assumptions related to HW CPU numbers vs. linux CPU numbers 15 * - Implement proper handling of maxcpus=1/2 (that is, routing of irqs from 16 * a non-active node to the active node) 33 #include <asm/cell-regs.h> 38 struct cbe_iic_thread_regs __iomem *regs; member 74 out_be64(&iic->regs->prio, iic->eoi_stack[--iic->eoi_ptr]); in iic_eoi() 75 BUG_ON(iic->eoi_ptr < 0); in iic_eoi() 79 .name = "CELL-IIC", 101 bits = in_be64(&node_iic->iic_is); in iic_ioexc_cascade() [all …]
|
/openbmc/u-boot/arch/arm/mach-omap2/omap5/ |
H A D | sdram.c | 1 // SPDX-License-Identifier: GPL-2.0+ 21 * exported are weakly linked so that they can be over-ridden in the board 25 * For any new board with different memory devices over-ride one or more 27 * - emif_get_reg_dump() 28 * - emif_get_dmm_regs() 29 * - emif_get_device_details() 30 * - emif_get_device_timings() 147 static void emif_get_reg_dump_sdp(u32 emif_nr, const struct emif_regs **regs) in emif_get_reg_dump_sdp() argument 151 *regs = &emif_regs_532_mhz_2cs; in emif_get_reg_dump_sdp() 154 *regs = &emif_regs_ddr3_532_mhz_1cs; in emif_get_reg_dump_sdp() [all …]
|
/openbmc/linux/drivers/video/fbdev/riva/ |
H A D | fbdev.c | 2 * linux/drivers/video/riva/fbdev.c - nVidia RIVA 128/TNT/TNT2 fb driver 6 * Copyright 1999-2000 Jeff Garzik 56 /* ------------------------------------------------------------------------- * 60 * ------------------------------------------------------------------------- */ 91 /* ------------------------------------------------------------------------- * 95 * ------------------------------------------------------------------------- */ 99 /* ------------------------------------------------------------------------- * 103 * ------------------------------------------------------------------------- */ 195 /* ------------------------------------------------------------------------- * 199 * ------------------------------------------------------------------------- */ [all …]
|
/openbmc/linux/arch/riscv/kvm/ |
H A D | vcpu_onereg.c | 1 // SPDX-License-Identifier: GPL-2.0 22 #define KVM_ISA_EXT_ARR(ext) \ argument 23 [KVM_RISCV_ISA_EXT_##ext] = RISCV_ISA_EXT_##ext 66 static bool kvm_riscv_vcpu_isa_enable_allowed(unsigned long ext) in kvm_riscv_vcpu_isa_enable_allowed() argument 68 switch (ext) { in kvm_riscv_vcpu_isa_enable_allowed() 80 static bool kvm_riscv_vcpu_isa_disable_allowed(unsigned long ext) in kvm_riscv_vcpu_isa_disable_allowed() argument 82 switch (ext) { in kvm_riscv_vcpu_isa_disable_allowed() 115 set_bit(host_isa, vcpu->arch.isa); in kvm_riscv_vcpu_setup_isa() 123 (unsigned long __user *)(unsigned long)reg->addr; in kvm_riscv_vcpu_get_reg_config() 124 unsigned long reg_num = reg->id & ~(KVM_REG_ARCH_MASK | in kvm_riscv_vcpu_get_reg_config() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A D | sc7280-herobrine-lte-sku.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 10 reserved-memory { 13 no-map; 18 no-map; 21 mdata_mem: mpss-metadata { 22 alloc-ranges = <0x0 0xa0000000 0x0 0x20000000>; 24 no-map; 30 qcom,gsi-loader = "modem"; 35 compatible = "qcom,sc7280-mss-pil"; 42 clock-names = "iface", "offline", "snoc_axi", "pka", "xo"; [all …]
|
/openbmc/linux/sound/pci/ac97/ |
H A D | ac97_proc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 46 snd_iprintf(buffer, "%-17s: %3d.%d dBV %c %2d/fs %s\n", in snd_ac97_proc_read_functions() 48 (info & 0x8000 ? -1 : 1) * ((info & 0x7000) >> 12) * 3 / 2, in snd_ac97_proc_read_functions() 50 info & 0x0400 ? 'X' : '-', in snd_ac97_proc_read_functions() 95 unsigned short val, tmp, ext, mext; in snd_ac97_proc_read_main() local 101 snd_ac97_get_name(NULL, ac97->id, name, 0); in snd_ac97_proc_read_main() 102 snd_iprintf(buffer, "%d-%d/%d: %s\n\n", ac97->addr, ac97->num, subidx, name); in snd_ac97_proc_read_main() 104 if ((ac97->scaps & AC97_SCAP_AUDIO) == 0) in snd_ac97_proc_read_main() 108 ac97->subsystem_vendor); in snd_ac97_proc_read_main() 110 ac97->subsystem_device); in snd_ac97_proc_read_main() [all …]
|
/openbmc/u-boot/arch/arm/mach-omap2/am33xx/ |
H A D | ddr.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ 22 * Base addresses for DDR PHY cmd/data regs 43 writel(mr_addr, &emif_reg[nr]->emif_lpddr2_mode_reg_cfg); in get_mr() 45 mr = readl(&emif_reg[nr]->emif_lpddr2_mode_reg_data); in get_mr() 58 writel(mr_addr, &emif_reg[nr]->emif_lpddr2_mode_reg_cfg); in set_mr() 59 writel(mr_val, &emif_reg[nr]->emif_lpddr2_mode_reg_data); in set_mr() 81 void config_sdram_emif4d5(const struct emif_regs *regs, int nr) in config_sdram_emif4d5() argument 83 writel(0xA0, &emif_reg[nr]->emif_pwr_mgmt_ctrl); in config_sdram_emif4d5() 84 writel(0xA0, &emif_reg[nr]->emif_pwr_mgmt_ctrl_shdw); in config_sdram_emif4d5() [all …]
|
/openbmc/linux/drivers/tty/serial/8250/ |
H A D | 8250_ingenic.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2010 Lars-Peter Clausen <lars@metafoo.de> 46 return readl(port->membase + (offset << 2)); in early_in() 51 writel(value, port->membase + (offset << 2)); in early_out() 68 uart_console_write(&early_device->port, s, count, in ingenic_early_console_write() 78 offset = fdt_path_offset(fdt, "/ext"); in ingenic_early_console_setup_clock() 82 prop = fdt_getprop(fdt, offset, "clock-frequency", NULL); in ingenic_early_console_setup_clock() 86 dev->port.uartclk = be32_to_cpup(prop); in ingenic_early_console_setup_clock() 92 struct uart_port *port = &dev->port; in ingenic_earlycon_setup_tail() 96 if (!dev->port.membase) in ingenic_earlycon_setup_tail() [all …]
|
/openbmc/linux/tools/testing/selftests/kvm/riscv/ |
H A D | get-reg-list.c | 1 // SPDX-License-Identifier: GPL-2.0 27 * Based on above, we should filter-out all ISA_EXT registers. in filter_reg() 74 static inline bool vcpu_has_ext(struct kvm_vcpu *vcpu, int ext) in vcpu_has_ext() argument 79 ret = __vcpu_get_reg(vcpu, RISCV_ISA_EXT_REG(ext), &value); in vcpu_has_ext() 94 * if they were available in the risc-v host. in finalize_vcpu() 103 if (!s->feature) in finalize_vcpu() 107 __vcpu_set_reg(vcpu, RISCV_ISA_EXT_REG(s->feature), 1); in finalize_vcpu() 110 __TEST_REQUIRE(vcpu_has_ext(vcpu, s->feature), in finalize_vcpu() 111 "%s not available, skipping tests\n", s->name); in finalize_vcpu() 138 * Config regs would grow regularly with new pseudo reg added, so in config_id_to_str() [all …]
|
/openbmc/linux/samples/vfio-mdev/ |
H A D | mbochs.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Emulate enough of qemu stdvga to make bochs-drm.ko happy. That is 8 * include any legacy vga stuff. Device looks a lot like "qemu -device 9 * secondary-vga". 33 #include <linux/dma-buf.h> 110 .type.pretty_name = MBOCHS_CLASS_NAME "-" MBOCHS_TYPE_1, 116 .type.pretty_name = MBOCHS_CLASS_NAME "-" MBOCHS_TYPE_2, 122 .type.pretty_name = MBOCHS_CLASS_NAME "-" MBOCHS_TYPE_3, 199 [VBE_DISPI_INDEX_VIRT_WIDTH] = "virt-width", 200 [VBE_DISPI_INDEX_VIRT_HEIGHT] = "virt-height", [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/gt/uc/ |
H A D | intel_guc_capture.c | 1 // SPDX-License-Identifier: MIT 3 * Copyright © 2021-2022 Intel Corporation 27 * NOTE: For engine-registers, GuC only needs the register offsets 28 * from the engine-mmio-base 106 /* XE_LP Render / Compute Per-Class */ 113 /* GEN8+ Render / Compute Per-Engine-Instance */ 118 /* GEN8+ Media Decode/Encode Per-Engine-Instance */ 123 /* XE_LP Video Enhancement Per-Class */ 128 /* GEN8+ Video Enhancement Per-Engine-Instance */ 133 /* GEN8+ Blitter Per-Engine-Instance */ [all …]
|