| /linux/arch/s390/boot/ |
| H A D | vmem.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <asm/page-states.h> 64 static bool is_kasan_populate_mode(enum populate_mode mode) in is_kasan_populate_mode() argument 67 return mode >= POPULATE_KASAN_MAP_SHADOW; in is_kasan_populate_mode() 73 static void pgtable_populate(unsigned long addr, unsigned long end, enum populate_mode mode); 86 static inline void kasan_populate(unsigned long start, unsigned long end, enum populate_mode mode) in kasan_populate() argument 91 boot_debug("%-17s 0x%016lx-0x%016lx >> 0x%016lx-0x%016lx\n", get_populate_mode_name(mode), in kasan_populate() 93 pgtable_populate(sha_start, sha_end, mode); in kasan_populate() 137 static bool kasan_pgd_populate_zero_shadow(pgd_t *pgd, unsigned long addr, in kasan_pgd_populate_zero_shadow() argument 138 unsigned long end, enum populate_mode mode) in kasan_pgd_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/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 */ 21 TP_fast_assign(__entry->flags = flags), 22 TP_printk("start batch lazy flags %lx", __entry->flags) 32 TP_fast_assign(__entry->flush = flush; 33 __entry->flags = flags; 36 __entry->flush ? "yes" : "no", __entry->flags) 49 TP_fast_assign(__entry->o [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/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/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/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/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/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 …]
|
| /linux/arch/arm/mm/ |
| H A D | fault.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Modifications for ARM processor (c) 1995-2004 Russell King 15 #include <linux/page-flags.h> 32 unsigned long addr = (unsigned long)unsafe_src; in copy_from_kernel_nofault_allowed() local 34 return addr >= TASK_SIZE && ULONG_MAX - addr >= size; in copy_from_kernel_nofault_allowed() 39 * 'addr' in mm 'mm'. 41 void show_pte(const char *lvl, struct mm_struct *mm, unsigned long addr) in show_pte() argument 48 pgd = pgd_offset(mm, addr); in show_pte() 49 printk("%s[%08lx] *pgd=%08llx", lvl, addr, (long long)pgd_val(*pgd)); in show_pte() 57 p4d = p4d_offset(pgd, addr); in show_pte() [all …]
|
| /linux/net/ieee802154/ |
| H A D | header_ops.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 ieee802154_hdr_push_addr(u8 *buf, const struct ieee802154_addr *addr, in ieee802154_hdr_push_addr() argument 20 if (addr->mode == IEEE802154_ADDR_NONE) in ieee802154_hdr_push_addr() 24 memcpy(buf + pos, &addr->pan_id, 2); in ieee802154_hdr_push_addr() 28 switch (addr->mode) { in ieee802154_hdr_push_addr() 30 memcpy(buf + pos, &addr->short_addr, 2); in ieee802154_hdr_push_addr() 35 memcpy(buf + pos, &addr->extended_addr, IEEE802154_ADDR_LEN); in ieee802154_hdr_push_addr() 40 return -EINVAL; in ieee802154_hdr_push_addr() 52 memcpy(buf + 1, &hdr->frame_counter, 4); in ieee802154_hdr_push_sechdr() 54 switch (hdr->key_id_mode) { in ieee802154_hdr_push_sechdr() [all …]
|
| /linux/drivers/media/i2c/ |
| H A D | sony-btf-mpx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2005-2006 Micronas USA Inc. 11 #include <media/v4l2-common.h> 12 #include <media/v4l2-ioctl.h> 13 #include <media/v4l2-device.h> 16 MODULE_DESCRIPTION("sony-btf-mp 47 mpx_write(struct i2c_client * client,int dev,int addr,int val) mpx_write() argument 163 int mode = t->mpxmode; mpx_setup() local [all...] |
| /linux/drivers/media/v4l2-core/ |
| H A D | tuner-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Copyright(c) 2005-2011 by Mauro Carvalho Chehab 9 * - Added support for a separate Radio tuner 10 * - Major rework and cleanups at the code 31 #include <media/tuner-types.h> 32 #include <media/v4l2-device.h> 33 #include <media/v4l2-ioct 52 static unsigned int addr; global() variable 161 enum v4l2_tuner_type mode; global() member 816 check_mode(struct tuner * t,enum v4l2_tuner_type mode) check_mode() argument 839 set_mode(struct tuner * t,enum v4l2_tuner_type mode) set_mode() argument [all...] |
| /linux/drivers/media/dvb-frontends/drx39xyj/ |
| H A D | drx_dap_fasi.h | 2 Copyright (c), 2004-2005,2007-2010 Trident Microsystems, Inc. 37 * Fast access, because of short addressing format (16 instead of 32 bits addr) 48 /*-------- compilation control switches --------------------------------------*/ 53 /*-------- Required includes -------------------------------------------------*/ 57 /*-------- Defines, configuring the API --------------------------------------*/ 98 #error At least one of short- or long-addressing format must be allowed. 112 * + single master mode means no use of repeated starts 113 * + multi master mode means use of repeated starts 121 * Default is single master, DAP FASI changes multi-master setting silently 131 * Chunk/mode checking [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 …]
|
| /linux/drivers/video/fbdev/mmp/fb/ |
| H A D | mmpfb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 #include <linux/dma-mapping.h> 17 * Pseudocolor mode? in var_to_pixfmt() 19 if (var->bits_per_pixel == 8) in var_to_pixfmt() 25 if (var->bits_per_pixel == 16 && var->re in var_to_pixfmt() 223 fbmode_to_mmpmode(struct mmp_mode * mode,struct fb_videomode * videomode,int output_fmt) fbmode_to_mmpmode() argument 249 mmpmode_to_fbmode(struct fb_videomode * videomode,struct mmp_mode * mode) mmpmode_to_fbmode() argument 337 struct mmp_addr addr; mmpfb_pan_display() local 402 struct mmp_addr addr; mmpfb_set_par() local 403 struct mmp_mode mode; mmpfb_set_par() local 428 struct mmp_addr addr; mmpfb_power() local [all...] |
| /linux/tools/testing/selftests/kvm/ |
| H A D | dirty_log_test.c | 1 // SPDX-License-Identifier: GPL-2.0 48 # define BITOP_LE_SWIZZLE ((BITS_PER_LONG-1) & ~0x7) 49 # define test_bit_le(nr, addr) \ argument 50 test_bit((nr) ^ BITOP_LE_SWIZZLE, addr) 51 # define __set_bit_le(nr, addr) \ argument 52 __set_bit((nr) ^ BITOP_LE_SWIZZLE, addr) 53 # define __clear_bit_le(nr, addr) \ argument 54 __clear_bit((nr) ^ BITOP_LE_SWIZZLE, addr) 55 __test_and_set_bit_le(nr,addr) global() argument 57 __test_and_clear_bit_le(nr,addr) global() argument 103 u64 addr; guest_code() local 445 struct log_mode *mode = &log_modes[host_log_mode]; log_mode_supported() local 455 struct log_mode *mode = &log_modes[host_log_mode]; log_mode_create_vm_done() local 465 struct log_mode *mode = &log_modes[host_log_mode]; log_mode_collect_dirty_pages() local 474 struct log_mode *mode = &log_modes[host_log_mode]; log_mode_after_vcpu_run() local 495 vm_dirty_log_verify(enum vm_guest_mode mode,unsigned long ** bmap) vm_dirty_log_verify() argument 577 create_vm(enum vm_guest_mode mode,struct kvm_vcpu ** vcpu,u64 extra_mem_pages,void * guest_code) create_vm() argument 598 run_test(enum vm_guest_mode mode,void * arg) run_test() argument [all...] |
| /linux/drivers/net/ipvlan/ |
| H A D | ipvlan_main.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 18 if (port->mode != nval) { in ipvlan_set_port_mode() 19 list_for_each_entry(ipvlan, &port->ipvlans, pnode) { in ipvlan_set_port_mode() 20 flags = ipvlan->dev->flags; in ipvlan_set_port_mode() 22 err = dev_change_flags(ipvlan->dev, in ipvlan_set_port_mode() 26 err = dev_change_flags(ipvlan->dev, in ipvlan_set_port_mode() 34 /* New mode is L3S */ in ipvlan_set_port_mode() 38 } else if (port->mode == IPVLAN_MODE_L3S) { in ipvlan_set_port_mode() 39 /* Old mode was L3S */ in ipvlan_set_port_mode() 42 port->mode = nval; in ipvlan_set_port_mode() [all …]
|
| /linux/arch/x86/kernel/ |
| H A D | step.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * x86 single-step support code, common to 32-bit and 64-bit. 16 unsigned long addr, seg; in convert_ip_to_linear() local 18 addr = regs->ip; in convert_ip_to_linear() 19 seg = regs->cs; in convert_ip_to_linear() 21 addr = (addr & 0xffff) + (seg << 4); in convert_ip_to_linear() 22 return addr; in convert_ip_to_linear() 28 * are all zero-based. That is largely true: the in convert_ip_to_linear() 38 mutex_lock(&child->mm->context.lock); in convert_ip_to_linear() 39 if (unlikely(!child->mm->context.ldt || in convert_ip_to_linear() [all …]
|