/linux/arch/s390/boot/ |
H A D | vmem.c | 1 // SPDX-License-Identifier: GPL-2.0 5 #include <asm/page-states.h> 40 static void pgtable_populate(unsigned long addr, unsigned long end, enum populate_mode mode); 53 static inline void kasan_populate(unsigned long start, unsigned long end, enum populate_mode mode) in kasan_populate() argument 57 pgtable_populate(start, end, mode); in kasan_populate() 109 static bool kasan_pgd_populate_zero_shadow(pgd_t *pgd, unsigned long addr, in kasan_pgd_populate_zero_shadow() argument 110 unsigned long end, enum populate_mode mode) in kasan_pgd_populate_zero_shadow() argument 112 if (mode == POPULATE_KASAN_ZERO_SHADOW && in kasan_pgd_populate_zero_shadow() 113 IS_ALIGNED(addr, PGDIR_SIZE) && end - addr >= PGDIR_SIZE) { in kasan_pgd_populate_zero_shadow() 120 static bool kasan_p4d_populate_zero_shadow(p4d_t *p4d, unsigned long addr, in kasan_p4d_populate_zero_shadow() argument [all …]
|
/linux/Documentation/devicetree/bindings/leds/ |
H A D | leds-netxbig.txt | 5 - compatible: "lacie,netxbig-leds". 6 - gpio-ext: Phandle for the gpio-ext bus. 9 - timers: Timer array. Each timer entry is represented by three integers: 10 Mode (gpio-ext bus), delay_on and delay_off. 12 Each LED is represented as a sub-node of the netxbig-leds device. 14 Required sub-node properties: 15 - mode-addr: Mode register address on gpio-ext bus. 16 - mode-val: Mode to value mapping. Each entry is represented by two integers: 17 A mode and the corresponding value on the gpio-ext bus. 18 - bright-addr: Brightness register address on gpio-ext bus. [all …]
|
/linux/drivers/isdn/hardware/mISDN/ |
H A D | mISDNinfineon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * - ISAC + HSCX 6 * - IPAC and IPAC-X 7 * - ISAC-SX + HSCX 10 * - Dialogic Diva 2.0 11 * - Dialogic Diva 2.0U 12 * - Dialogic Diva 2.01 13 * - Dialogic Diva 2.02 14 * - Sedlbauer Speedwin 15 * - HST Saphir3 [all …]
|
/linux/include/trace/events/ |
H A D | migrate.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 54 enum migrate_mode mode, int reason), 57 thp_split, large_folio_split, mode, reason), 66 __field( enum migrate_mode, mode) 71 __entry->succeeded = succeeded; 72 __entry->failed = failed; 73 __entry->thp_succeeded = thp_succeeded; 74 __entry->thp_failed = thp_failed; 75 __entry->thp_split = thp_split; 76 __entry->large_folio_split = large_folio_split; [all …]
|
H A D | xen.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 16 TP_PROTO(enum xen_lazy_mode mode), 17 TP_ARGS(mode), 19 __field(enum xen_lazy_mode, mode) 21 TP_fast_assign(__entry->mode = mode), 23 (__entry->mode == XEN_LAZY_MMU) ? "MMU" : 24 (__entry->mode == XEN_LAZY_CPU) ? "CPU" : "NONE") 28 TP_PROTO(enum xen_lazy_mode mode), \ 29 TP_ARGS(mode)) 44 TP_fast_assign(__entry->op = mc->op; [all …]
|
/linux/drivers/net/wan/ |
H A D | slic_ds26522.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 38 static void slic_write(struct spi_device *spi, u16 addr, in slic_write() argument 43 addr = bitrev16(addr) >> 1; in slic_write() 45 temp[0] = (u8)((addr >> 8) & 0x7f); in slic_write() 46 temp[1] = (u8)(addr & 0xfe); in slic_write() 49 /* write spi addr and value */ in slic_write() 53 static u8 slic_read(struct spi_device *spi, u16 addr) in slic_read() argument 58 addr = bitrev16(addr) >> 1; in slic_read() 59 temp[0] = (u8)(((addr >> 8) & 0x7f) | 0x80); in slic_read() 60 temp[1] = (u8)(addr & 0xfe); in slic_read() [all …]
|
/linux/arch/arm/boot/dts/marvell/ |
H A D | kirkwood-net5big.dts | 1 // SPDX-License-Identifier: GPL-2.0 9 * Based on netxbig_v2-setup.c, 14 /dts-v1/; 17 #include "kirkwood-6281.dtsi" 18 #include "kirkwood-netxbig.dtsi" 22 compatible = "lacie,net5big_v2", "lacie,netxbig", "marvell,kirkwood-88f6281", "marvell,kirkwood"; 33 compatible = "regulator-fixed"; 35 regulator-name = "hdd1power"; 36 regulator-min-microvolt = <5000000>; 37 regulator-max-microvolt = <5000000>; [all …]
|
H A D | kirkwood-netxbig.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 9 * Based on netxbig_v2-setup.c, 14 #include <dt-bindings/leds/leds-netxbig.h> 16 #include "kirkwood-6281.dtsi" 21 stdout-path = &uart0; 33 #address-cells = <1>; 34 #size-cells = <1>; 35 compatible = "mxicy,mx25l4005a", "jedec,spi-nor"; 37 spi-max-frequency = <20000000>; 38 mode = <0>; [all …]
|
/linux/arch/sh/kernel/cpu/shmobile/ |
H A D | pm.c | 1 // SPDX-License-Identifier: GPL-2.0 27 * Sleep mode is just plain "sleep" instruction 28 * Sleep Self-Refresh mode is above plus RAM put in Self-Refresh 29 * Standby Self-Refresh mode is above plus stopped clocks 37 * U-standby mode is unsupported since it needs bootloader hacks 46 void sh_mobile_call_standby(unsigned long mode) in sh_mobile_call_standby() argument 56 mode, NULL); in sh_mobile_call_standby() 59 if (mode & SUSP_SH_MMU) in sh_mobile_call_standby() 62 /* Let assembly snippet in on-chip memory handle the rest */ in sh_mobile_call_standby() 63 standby_onchip_mem(mode, RAM_BASE); in sh_mobile_call_standby() [all …]
|
/linux/drivers/leds/ |
H A D | leds-netxbig.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * leds-netxbig.c - Driver for the 2Big and 5Big Network series LEDs 21 struct gpio_desc **addr; member 42 enum netxbig_led_mode mode; member 68 static void gpio_ext_set_addr(struct netxbig_gpio_ext *gpio_ext, int addr) in gpio_ext_set_addr() argument 72 for (pin = 0; pin < gpio_ext->num_addr; pin++) in gpio_ext_set_addr() 73 gpiod_set_value(gpio_ext->addr[pin], (addr >> pin) & 1); in gpio_ext_set_addr() 80 for (pin = 0; pin < gpio_ext->num_data; pin++) in gpio_ext_set_data() 81 gpiod_set_value(gpio_ext->data[pin], (data >> pin) & 1); in gpio_ext_set_data() 87 gpiod_set_value(gpio_ext->enable, 0); in gpio_ext_enable_select() [all …]
|
/linux/Documentation/devicetree/bindings/powerpc/fsl/ |
H A D | mpc5200.txt | 2 ---------------------------- 4 (c) 2006-2009 Secret Lab Technologies Ltd 8 ------------------ 9 For mpc5200 on-chip devices, the format for each compatible value is 10 <chip>-<device>[-<mode>]. The OS should be able to match a device driver 21 "fsl,mpc5200-<device>". 26 devices have extra functions but still have a backwards compatible mode. 29 compatible = "fsl,mpc5200b-<device>","fsl,mpc5200-<device>"; 34 ie. ethernet on mpc5200: compatible = "fsl,mpc5200-fec"; 35 ethernet on mpc5200b: compatible = "fsl,mpc5200b-fec", "fsl,mpc5200-fec"; [all …]
|
/linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
H A D | nfp_target.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 /* Copyright (C) 2015-2018 Netronome Systems, Inc. */ 26 * 32-bit or 64-bit words. All others are not listed. 40 return -EINVAL; in target_rw() 51 return -EINVAL; in nfp6000_nbi_dma() 62 return -EINVAL; in nfp6000_nbi_stats() 73 return -EINVAL; in nfp6000_nbi_tm() 84 return -EINVAL; in nfp6000_nbi_ppc() 102 * 32-bit or 64-bit words. All others are not listed. 150 return -EINVAL; in nfp6000_mu_common() [all …]
|
/linux/arch/microblaze/kernel/ |
H A D | exceptions.c | 4 * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu> 13 * This file handles the architecture-dependent parts of hardware exceptions 56 _exception(SIGTRAP, regs, TRAP_BRKPT, regs->r16); in sw_exception() 57 flush_dcache_range(regs->r16, regs->r16 + 0x4); in sw_exception() 58 flush_icache_range(regs->r16, regs->r16 + 0x4); in sw_exception() 61 void _exception(int signr, struct pt_regs *regs, int code, unsigned long addr) in _exception() argument 64 die("Exception in kernel mode", regs, signr); in _exception() 66 force_sig_fault(signr, code, (void __user *)addr); in _exception() 70 int fsr, int addr) in full_exception() argument 72 addr = regs->pc; in full_exception() [all …]
|
/linux/drivers/crypto/ccree/ |
H A D | cc_hw_queue_defs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright (C) 2012-2019 ARM Limited (or its affiliates). */ 21 #define CC_REG_HIGH(name) (CC_REG_LOW(name) + name ## _BIT_SIZE - 1) 75 DESC_DIRECTION_ILLEGAL = -1, 83 DMA_MODE_NULL = -1, 92 FLOW_MODE_NULL = -1, 180 #define CC_LAST_HW_KEY_SLOT (CC_FIRST_HW_KEY_SLOT + CC_NUM_HW_KEY_SLOTS - 1) 185 CC_NUM_CPP_KEY_SLOTS - 1) 208 * hw_desc_init() - Init a HW descriptor struct 217 * set_queue_last_ind_bit() - Indicate the end of current HW descriptors flow [all …]
|
/linux/arch/parisc/include/asm/ |
H A D | floppy.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 4 * Linux/PA-RISC Project (http://www.parisc-linux.org/) 23 (!(vdma) && ((unsigned long)(a)/K_64 != ((unsigned long)(a) + (s) - 1) / K_64)) 42 #define fd_dma_setup(addr, size, mode, io) SW._dma_setup(addr, size, mode, io) argument 77 for (lcount = virtual_dma_count; lcount; lcount--) { in floppy_hardint() 168 static void _fd_dma_mem_free(unsigned long addr, unsigned long size) in _fd_dma_mem_free() argument 170 if((unsigned int) addr >= (unsigned int) high_memory) in _fd_dma_mem_free() 171 return vfree((void *)addr); in _fd_dma_mem_free() 173 free_pages(addr, get_order(size)); in _fd_dma_mem_free() 176 #define fd_dma_mem_free(addr, size) _fd_dma_mem_free(addr, size) argument [all …]
|
/linux/tools/testing/selftests/net/ |
H A D | gre_gso.sh | 2 # SPDX-License-Identifier: GPL-2.0 8 # all tests in this script. Can be overridden with -t option 23 if [ ${rc} -eq ${expected} ]; then 24 printf " TEST: %-60s [ OK ]\n" "${msg}" 29 printf " TEST: %-60s [FAIL]\n" "${msg}" 48 set -e 50 IP="ip -netns $ns1" 65 rm -rf $TMPFILE 66 [ -n "$PID" ] && kill $PID 76 local addr [all …]
|
H A D | vrf-xfrm-tests.sh | 2 # SPDX-License-Identifier: GPL-2.0 42 if [ ${rc} -eq ${expected} ]; then 43 printf "TEST: %-60s [ OK ]\n" "${msg}" 48 printf "TEST: %-60s [FAIL]\n" "${msg}" 71 if [ -n "$out" ]; then 90 if [ -n "${ns}" ]; then 91 ns="-netns ${ns}" 97 ip ${ns} -6 route add vrf ${vrf} unreachable default metric 8192 99 ip ${ns} addr add 127.0.0.1/8 dev ${vrf} 100 ip ${ns} -6 addr add ::1 dev ${vrf} nodad [all …]
|
H A D | l2tp.sh | 2 # SPDX-License-Identifier: GPL-2.0 6 # host-1 | router | host-2 30 if [ ${rc} -eq ${expected} ]; then 31 printf "TEST: %-60s [ OK ]\n" "${msg}" 36 printf "TEST: %-60s [FAIL]\n" "${msg}" 63 if [ "$VERBOSE" = "1" -a -n "$out" ]; then 78 local addr=$2 81 [ -z "${addr}" ] && addr="-" 82 [ -z "${addr6}" ] && addr6="-" 84 if [ "${addr}" != "-" ]; then [all …]
|
/linux/arch/x86/include/asm/ |
H A D | floppy.h | 25 ((unsigned long)(a)/K_64 != ((unsigned long)(a) + (s) - 1) / K_64)) 44 #define fd_dma_setup(addr, size, mode, io) SW._dma_setup(addr, size, mode, io) argument 78 lcount; lcount--, lptr++) { in floppy_hardint() 168 static void _fd_dma_mem_free(unsigned long addr, unsigned long size) in _fd_dma_mem_free() argument 170 if ((unsigned long)addr >= (unsigned long)high_memory) in _fd_dma_mem_free() 171 vfree((void *)addr); in _fd_dma_mem_free() 173 free_pages(addr, get_order(size)); in _fd_dma_mem_free() 176 #define fd_dma_mem_free(addr, size) _fd_dma_mem_free(addr, size) argument 178 static void _fd_chose_dma_mode(char *addr, unsigned long size) in _fd_chose_dma_mode() argument 181 if ((unsigned long)addr >= (unsigned long)high_memory || in _fd_chose_dma_mode() [all …]
|
/linux/arch/powerpc/include/asm/ |
H A D | floppy.h | 20 #define fd_disable_dma() fd_ops->_disable_dma(FLOPPY_DMA) 21 #define fd_free_dma() fd_ops->_free_dma(FLOPPY_DMA) 23 #define fd_set_dma_mode(mode) set_dma_mode(FLOPPY_DMA, mode) argument 25 #define fd_get_dma_residue() fd_ops->_get_dma_residue(FLOPPY_DMA) 31 #include <asm/ppc-pci.h> /* for isa_bridge_pcidev */ 33 #define fd_dma_setup(addr,size,mode,io) fd_ops->_dma_setup(addr,size,mode,io) argument 41 int (*_dma_setup)(char *addr, unsigned long size, int mode, int io); 63 lcount; lcount--, lptr++) { in floppy_hardint() 117 static int vdma_dma_setup(char *addr, unsigned long size, int mode, int io) in vdma_dma_setup() argument 121 virtual_dma_mode = (mode == DMA_MODE_WRITE); in vdma_dma_setup() [all …]
|
/linux/drivers/net/ |
H A D | macvlan.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * --- 7 * (C) Copyright 2001-2006 9 * Re-worked by Ben Greear <greearb@candelatech.com> 10 * --- 62 unsigned char addr[6+2] __aligned(sizeof(u16)); 70 #define MACVLAN_SKB_CB(__skb) ((struct macvlan_skb_cb *)&((__skb)->cb[0])) 77 return port->flags & MACVLAN_F_PASSTHRU; in macvlan_passthru() 82 port->flags |= MACVLAN_F_PASSTHRU; in macvlan_set_passthru() 87 return port->flags & MACVLAN_F_ADDRCHANGE; in macvlan_addr_change() [all …]
|
/linux/arch/sparc/include/asm/ |
H A D | swift.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 17 #define SWIFT_PMC 0x00180000 /* Page mode control */ 20 #define SWIFT_AP 0x00010000 /* Graphics page mode control (TCX/SX) */ 22 #define SWIFT_BM 0x00004000 /* Boot mode */ 27 #define SWIFT_NF 0x00000002 /* No fault mode */ 31 static inline void swift_inv_insn_tag(unsigned long addr) in swift_inv_insn_tag() argument 35 : "r" (addr), "i" (ASI_M_TXTC_TAG) in swift_inv_insn_tag() 40 static inline void swift_inv_data_tag(unsigned long addr) in swift_inv_data_tag() argument 44 : "r" (addr), "i" (ASI_M_DATAC_TAG) in swift_inv_data_tag() 50 unsigned long addr; in swift_flush_dcache() local [all …]
|
H A D | turbosparc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 16 * ------------------------------------------------------------------- 17 * |impl-vers| RSV| PMC |PE|PC| RSV |BM| RFR |IC|DC|PSO|RSV|ICS|NF|ME| 18 * ------------------------------------------------------------------- 19 * 31 24 23-21 20-19 18 17 16-15 14 13-10 9 8 7 6-3 2 1 0 21 * BM: Boot Mode -- 0 = not in boot mode, 1 = in boot mode 23 * This indicates whether the TurboSparc is in boot-mode or not. 25 * IC: Instruction Cache -- 0 = off, 1 = on 26 * DC: Data Cache -- 0 = off, 1 = 0n 28 * These bits enable the on-cpu TurboSparc split I/D caches. [all …]
|
/linux/arch/alpha/include/asm/ |
H A D | floppy.h | 22 #define fd_set_dma_mode(mode) set_dma_mode(FLOPPY_DMA,mode) argument 23 #define fd_set_dma_addr(addr) set_dma_addr(FLOPPY_DMA,isa_virt_to_bus(addr)) argument 35 #define fd_dma_setup(addr,size,mode,io) alpha_fd_dma_setup(addr,size,mode,io) argument 38 alpha_fd_dma_setup(char *addr, unsigned long size, int mode, int io) in alpha_fd_dma_setup() argument 46 dir = (mode != DMA_MODE_READ) ? DMA_FROM_DEVICE : DMA_TO_DEVICE; in alpha_fd_dma_setup() 49 && (addr != prev_addr || size != prev_size || dir != prev_dir)) { in alpha_fd_dma_setup() 50 /* different from last time -- unmap prev */ in alpha_fd_dma_setup() 51 dma_unmap_single(&isa_bridge->dev, bus_addr, prev_size, in alpha_fd_dma_setup() 57 bus_addr = dma_map_single(&isa_bridge->dev, addr, size, dir); in alpha_fd_dma_setup() 60 prev_addr = addr; in alpha_fd_dma_setup() [all …]
|
/linux/arch/x86/kvm/ |
H A D | i8254.c | 4 * Copyright (c) 2003-2004 Fabrice Bellard 44 #define mod_64(x, y) ((x) - (y) * div64_u64(x, y)) 56 struct kvm_kpit_channel_state *c = &pit->pit_state.channels[channel]; in pit_set_gate() 58 switch (c->mode) { in pit_set_gate() 69 if (c->gate < val) in pit_set_gate() 70 c->count_load_time = ktime_get(); in pit_set_gate() 74 c->gate = val; in pit_set_gate() 79 return pit->pit_state.channels[channel].gate; in pit_get_gate() 86 struct kvm_kpit_state *ps = &pit->pit_state; in __kpit_elapsed() 88 if (!ps->period) in __kpit_elapsed() [all …]
|