| /kernel/linux/linux-5.10/tools/testing/selftests/powerpc/mm/ |
| D | pkey_siginfo.c | 1 // SPDX-License-Identifier: GPL-2.0 44 if (sinfo->si_code != SEGV_PKUERR) { in segv_handler() 50 if (sinfo->si_addr != (void *) fault_addr) { in segv_handler() 68 pgstart = (void *) ((unsigned long) fault_addr & ~(pgsize - 1)); in segv_handler() 72 * reassociate the page with the exec-only pkey since execute in segv_handler() 77 * read-write rights, change the AMR permission bits for the in segv_handler() 97 static void *protect(void *p) in protect() function 105 base = ((struct region *) p)->base; in protect() 106 size = ((struct region *) p)->size; in protect() 109 /* No read, write and execute restrictions */ in protect() [all …]
|
| /kernel/linux/linux-4.19/Documentation/misc-devices/ |
| D | eeprom | 7 Addresses scanned: I2C 0x50 - 0x57 20 24C01 1K 0x50 (shadows at 0x51 - 0x57) 21 24C01A 1K 0x50 - 0x57 (Typical device on DIMMs) 22 24C02 2K 0x50 - 0x57 27 24C16 16K 0x50 (additional data at 0x51 - 0x57) 30 Atmel 34C02B 2K 0x50 - 0x57, SW write protect at 0x30-37 31 Catalyst 34FC02 2K 0x50 - 0x57, SW write protect at 0x30-37 32 Catalyst 34RC02 2K 0x50 - 0x57, SW write protect at 0x30-37 33 Fairchild 34W02 2K 0x50 - 0x57, SW write protect at 0x30-37 34 Microchip 24AA52 2K 0x50 - 0x57, SW write protect at 0x30-37 [all …]
|
| /kernel/linux/linux-5.10/Documentation/misc-devices/ |
| D | eeprom.rst | 11 Addresses scanned: I2C 0x50 - 0x57 28 24C01 1K 0x50 (shadows at 0x51 - 0x57) 29 24C01A 1K 0x50 - 0x57 (Typical device on DIMMs) 30 24C02 2K 0x50 - 0x57 35 24C16 16K 0x50 (additional data at 0x51 - 0x57) 38 Atmel 34C02B 2K 0x50 - 0x57, SW write protect at 0x30-37 39 Catalyst 34FC02 2K 0x50 - 0x57, SW write protect at 0x30-37 40 Catalyst 34RC02 2K 0x50 - 0x57, SW write protect at 0x30-37 41 Fairchild 34W02 2K 0x50 - 0x57, SW write protect at 0x30-37 42 Microchip 24AA52 2K 0x50 - 0x57, SW write protect at 0x30-37 [all …]
|
| /kernel/linux/linux-5.10/include/soc/at91/ |
| D | at91sam9_ddrsdr.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 46 #define AT91_DDRSDRC_OCD (1 << 12) /* Off-Chip Driver [SAM9 Only] */ 53 #define AT91_DDRSDRC_TWR (0xf << 8) /* Write recovery delay */ 57 #define AT91_DDRSDRC_TWTR (0x7 << 24) /* Internal Write to Read delay */ 58 #define AT91_DDRSDRC_RED_WRRD (0x1 << 27) /* Reduce Write to Read Delay [SAM9 Only] */ 63 #define AT91_DDRSDRC_TXSNR (0xff << 8) /* Exit self-refresh to non-read */ 64 #define AT91_DDRSDRC_TXSRD (0xff << 16) /* Exit self-refresh to read */ 65 #define AT91_DDRSDRC_TXP (0xf << 24) /* Exit power-down delay */ 74 #define AT91_DDRSDRC_LPCB (3 << 0) /* Low-power Configurations */ 114 #define AT91_DDRSDRC_WPMR 0xE4 /* Write Protect Mode Register [SAM9 Only] */ [all …]
|
| /kernel/linux/linux-4.19/include/linux/platform_data/ |
| D | mmc-s3cmci.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * struct s3c24xx_mci_pdata - sd/mmc controller platform data 7 * @no_wprotect: Set this to indicate there is no write-protect switch. 9 * @wprotect_invert: Invert the default sense of the write protect switch. 10 * @detect_invert: Invert the default sense of the write protect switch. 13 * @gpio_wprotect: GPIO number for the write protect line. 14 * @ocr_avail: The mask of the available power states, non-zero to use. 22 * The driver will use @gpio_wprotect to signal whether the card is write 24 * means the card is read/write, and 1 means read-only. The @wprotect_invert 28 * to a non-zero value, otherwise the default of 3.2-3.4V is used. [all …]
|
| /kernel/linux/linux-4.19/include/soc/at91/ |
| D | at91sam9_ddrsdr.h | 50 #define AT91_DDRSDRC_OCD (1 << 12) /* Off-Chip Driver [SAM9 Only] */ 57 #define AT91_DDRSDRC_TWR (0xf << 8) /* Write recovery delay */ 61 #define AT91_DDRSDRC_TWTR (0x7 << 24) /* Internal Write to Read delay */ 62 #define AT91_DDRSDRC_RED_WRRD (0x1 << 27) /* Reduce Write to Read Delay [SAM9 Only] */ 67 #define AT91_DDRSDRC_TXSNR (0xff << 8) /* Exit self-refresh to non-read */ 68 #define AT91_DDRSDRC_TXSRD (0xff << 16) /* Exit self-refresh to read */ 69 #define AT91_DDRSDRC_TXP (0xf << 24) /* Exit power-down delay */ 78 #define AT91_DDRSDRC_LPCB (3 << 0) /* Low-power Configurations */ 118 #define AT91_DDRSDRC_WPMR 0xE4 /* Write Protect Mode Register [SAM9 Only] */ 119 #define AT91_DDRSDRC_WP (1 << 0) /* Write protect enable */ [all …]
|
| /kernel/linux/linux-5.10/arch/mips/sgi-ip22/ |
| D | ip22-nvram.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * ip22-nvram.c: NVRAM and serial EEPROM handling. 5 * Copyright (C) 2003 Ladislav Michl (ladis@linux-mips.org) 14 #define EEPROM_WEN 0x9800 /* write enable before prog modes */ 15 #define EEPROM_WRITE 0xa000 /* serial memory write */ 16 #define EEPROM_WRALL 0x8800 /* write all registers */ 18 #define EEPROM_PRREAD 0xc000 /* read protect register */ 19 #define EEPROM_PREN 0x9800 /* enable protect register mode */ 20 #define EEPROM_PRCLEAR 0xffff /* clear protect register */ 21 #define EEPROM_PRWRITE 0xa000 /* write protect register */ [all …]
|
| /kernel/linux/linux-4.19/arch/mips/sgi-ip22/ |
| D | ip22-nvram.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * ip22-nvram.c: NVRAM and serial EEPROM handling. 5 * Copyright (C) 2003 Ladislav Michl (ladis@linux-mips.org) 14 #define EEPROM_WEN 0x9800 /* write enable before prog modes */ 15 #define EEPROM_WRITE 0xa000 /* serial memory write */ 16 #define EEPROM_WRALL 0x8800 /* write all registers */ 18 #define EEPROM_PRREAD 0xc000 /* read protect register */ 19 #define EEPROM_PREN 0x9800 /* enable protect register mode */ 20 #define EEPROM_PRCLEAR 0xffff /* clear protect register */ 21 #define EEPROM_PRWRITE 0xa000 /* write protect register */ [all …]
|
| /kernel/linux/linux-5.10/include/linux/platform_data/ |
| D | mmc-s3cmci.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * struct s3c24xx_mci_pdata - sd/mmc controller platform data 7 * @no_wprotect: Set this to indicate there is no write-protect switch. 9 * @wprotect_invert: Invert the default sense of the write protect switch. 12 * @gpio_wprotect: GPIO number for the write protect line. 13 * @ocr_avail: The mask of the available power states, non-zero to use. 21 * The driver will use @gpio_wprotect to signal whether the card is write 23 * means the card is read/write, and 1 means read-only. The @wprotect_invert 27 * to a non-zero value, otherwise the default of 3.2-3.4V is used. 42 * s3c24xx_mci_set_platdata - set platform data for mmc/sdi device
|
| /kernel/linux/linux-4.19/security/ |
| D | min_addr.c | 1 // SPDX-License-Identifier: GPL-2.0 7 /* amount of vm to protect from userspace access by both DAC and the LSM*/ 9 /* amount of vm to protect from userspace using CAP_SYS_RAWIO (DAC) */ 11 /* amount of vm to protect from userspace using the LSM = CONFIG_LSM_MMAP_MIN_ADDR */ 32 int mmap_min_addr_handler(struct ctl_table *table, int write, in mmap_min_addr_handler() argument 37 if (write && !capable(CAP_SYS_RAWIO)) in mmap_min_addr_handler() 38 return -EPERM; in mmap_min_addr_handler() 40 ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in mmap_min_addr_handler()
|
| /kernel/linux/linux-5.10/security/ |
| D | min_addr.c | 1 // SPDX-License-Identifier: GPL-2.0 7 /* amount of vm to protect from userspace access by both DAC and the LSM*/ 9 /* amount of vm to protect from userspace using CAP_SYS_RAWIO (DAC) */ 11 /* amount of vm to protect from userspace using the LSM = CONFIG_LSM_MMAP_MIN_ADDR */ 32 int mmap_min_addr_handler(struct ctl_table *table, int write, in mmap_min_addr_handler() argument 37 if (write && !capable(CAP_SYS_RAWIO)) in mmap_min_addr_handler() 38 return -EPERM; in mmap_min_addr_handler() 40 ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in mmap_min_addr_handler()
|
| /kernel/linux/linux-4.19/drivers/lightnvm/ |
| D | pblk-rb.c | 16 * pblk-rb.c - pblk's write buffer 30 list_for_each_entry_safe(p, t, &rb->pages, list) { in pblk_rb_data_free() 31 free_pages((unsigned long)page_address(p->pages), p->order); in pblk_rb_data_free() 32 list_del(&p->list); in pblk_rb_data_free() 41 * (Documentation/core-api/circular-buffers.rst) 49 unsigned int max_order = MAX_ORDER - 1; in pblk_rb_init() 53 rb->entries = rb_entry_base; in pblk_rb_init() 54 rb->seg_size = (1 << power_seg_sz); in pblk_rb_init() 55 rb->nr_entries = (1 << power_size); in pblk_rb_init() 56 rb->mem = rb->subm = rb->sync = rb->l2p_update = 0; in pblk_rb_init() [all …]
|
| /kernel/linux/linux-5.10/drivers/lightnvm/ |
| D | pblk-rb.c | 1 // SPDX-License-Identifier: GPL-2.0 17 * pblk-rb.c - pblk's write buffer 31 list_for_each_entry_safe(p, t, &rb->pages, list) { in pblk_rb_data_free() 32 free_pages((unsigned long)page_address(p->pages), p->order); in pblk_rb_data_free() 33 list_del(&p->list); in pblk_rb_data_free() 42 vfree(rb->entries); in pblk_rb_free() 46 * pblk_rb_calculate_size -- calculate the size of the write buffer 55 /* Alloc a write buffer that can (i) fit at least two split bios in pblk_rb_calculate_size() 70 * (Documentation/core-api/circular-buffers.rst) 78 unsigned int max_order = MAX_ORDER - 1; in pblk_rb_init() [all …]
|
| /kernel/linux/linux-5.10/include/linux/mtd/ |
| D | spi-nor.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 12 #include <linux/spi/spi-mem.h> 19 * requires a 4-byte (32-bit) address. 23 #define SPINOR_OP_WRDI 0x04 /* Write disable */ 24 #define SPINOR_OP_WREN 0x06 /* Write enable */ 26 #define SPINOR_OP_WRSR 0x01 /* Write status register 1 byte */ 28 #define SPINOR_OP_WRSR2 0x3e /* Write status register 2 */ 53 #define SPINOR_OP_WREAR 0xc5 /* Write Extended Address Register */ 55 /* 4-byte address opcodes - used on Spansion and some Macronix flashes. */ 73 /* Double Transfer Rate opcodes - defined in JEDEC JESD216B. */ [all …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/mmc/ |
| D | synopsys-dw-mshc.txt | 11 - snps,dw-mshc: for controllers compliant with synopsys dw-mshc. 12 * #address-cells: should be 1. 13 * #size-cells: should be 0. 16 child-nodes with each child-node representing a supported slot. There should 23 property is 0 to (num-slots -1), where num-slots is the value 24 specified by the num-slots property. 26 * bus-width: as documented in mmc core bindings. 28 * wp-gpios: specifies the write protect gpio line. The format of the 30 for write-protect, this property is optional. 32 * disable-wp: If the wp-gpios property isn't present then (by default) [all …]
|
| /kernel/linux/linux-4.19/drivers/usb/gadget/function/ |
| D | g_zero.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * interfaces to its two single-configuration function drivers. 41 * Read/write access to configfs attributes is handled by configfs. 43 * This is to protect the data from concurrent access by read/write 56 * Read/write access to configfs attributes is handled by configfs. 58 * This is to protect the data from concurrent access by read/write
|
| /kernel/linux/linux-5.10/drivers/usb/gadget/function/ |
| D | g_zero.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * interfaces to its two single-configuration function drivers. 41 * Read/write access to configfs attributes is handled by configfs. 43 * This is to protect the data from concurrent access by read/write 56 * Read/write access to configfs attributes is handled by configfs. 58 * This is to protect the data from concurrent access by read/write
|
| /kernel/linux/linux-4.19/fs/jffs2/ |
| D | jffs2_fs_sb.h | 2 * JFFS2 -- Journalling Flash File System, Version 2. 4 * Copyright © 2001-2007 Red Hat, Inc. 5 * Copyright © 2004-2010 David Woodhouse <dwmw2@infradead.org> 39 * latter users to write to the file system if the amount if the 60 struct mutex alloc_sem; /* Used to protect all the following 61 fields, and also to protect against 62 out-of-order writing of nodes. And GC. */ 80 uint8_t resv_blocks_write; /* ... allow a normal filesystem write */ 95 struct jffs2_eraseblock *gcblock; /* The block we're currently garbage-collecting */ 110 spinlock_t erase_completion_lock; /* Protect free_list and erasing_list [all …]
|
| /kernel/linux/linux-5.10/fs/jffs2/ |
| D | jffs2_fs_sb.h | 2 * JFFS2 -- Journalling Flash File System, Version 2. 4 * Copyright © 2001-2007 Red Hat, Inc. 5 * Copyright © 2004-2010 David Woodhouse <dwmw2@infradead.org> 39 * latter users to write to the file system if the amount if the 61 struct mutex alloc_sem; /* Used to protect all the following 62 fields, and also to protect against 63 out-of-order writing of nodes. And GC. */ 81 uint8_t resv_blocks_write; /* ... allow a normal filesystem write */ 96 struct jffs2_eraseblock *gcblock; /* The block we're currently garbage-collecting */ 111 spinlock_t erase_completion_lock; /* Protect free_list and erasing_list [all …]
|
| /kernel/linux/linux-4.19/Documentation/device-mapper/ |
| D | dm-integrity.txt | 1 The dm-integrity target emulates a block device that has additional 2 per-sector tags that can be used for storing integrity information. 5 writing the sector and the integrity tag must be atomic - i.e. in case of 8 To guarantee write atomicity, the dm-integrity target uses journal, it 12 The dm-integrity target can be used with the dm-crypt target - in this 13 situation the dm-crypt target creates the integrity data and passes them 14 to the dm-integrity target via bio_integrity_payload attached to the bio. 15 In this mode, the dm-crypt and dm-integrity targets provide authenticated 16 disk encryption - if the attacker modifies the encrypted device, an I/O 19 The dm-integrity target can also be used as a standalone target, in this [all …]
|
| /kernel/linux/linux-4.19/include/linux/clk/ |
| D | at91_pmc.h | 7 * Power Management Controller (PMC) - System peripherals registers. 43 #define AT91_PMC_UPLLCOUNT (0xf << 20) /* UTMI PLL Start-up Time */ 45 #define AT91_PMC_BIASCOUNT (0xf << 28) /* UTMI BIAS Start-up Time */ 51 #define AT91_PMC_MOSCRCEN (1 << 3) /* Main On-Chip RC Oscillator Enable [some SAM9] */ 52 #define AT91_PMC_OSCOUNT (0xff << 8) /* Main Oscillator Start-up Time */ 134 #define AT91_PMC_PCKR(n) (0x40 + ((n) * 4)) /* Programmable Clock 0-N Registers */ 155 #define AT91_PMC_MOSCRCS (1 << 17) /* Main On-Chip RC [some SAM9] */ 165 #define AT91_PMC_LPM BIT(20) /* Low-power Mode */ 175 #define AT91_PMC_PROT 0xe4 /* Write Protect Mode Register [some SAM9] */ 176 #define AT91_PMC_WPEN (0x1 << 0) /* Write Protect Enable */ [all …]
|
| /kernel/linux/linux-4.19/drivers/target/ |
| D | target_core_sbc.c | 4 * (c) Copyright 2002-2013 Datera, Inc. 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 26 #include <linux/crc-t10dif.h> 27 #include <linux/t10-pi.h> 47 struct se_device *dev = cmd->se_dev; in sbc_emulate_readcapacity() 48 unsigned char *cdb = cmd->t_task_cdb; in sbc_emulate_readcapacity() 49 unsigned long long blocks_long = dev->transport->get_blocks(dev); in sbc_emulate_readcapacity() 55 * SBC-2 says: in sbc_emulate_readcapacity() 62 * In SBC-3, these fields are obsolete, but some SCSI in sbc_emulate_readcapacity() [all …]
|
| /kernel/linux/linux-5.10/Documentation/admin-guide/device-mapper/ |
| D | dm-integrity.rst | 2 dm-integrity 5 The dm-integrity target emulates a block device that has additional 6 per-sector tags that can be used for storing integrity information. 9 writing the sector and the integrity tag must be atomic - i.e. in case of 12 To guarantee write atomicity, the dm-integrity target uses journal, it 16 The dm-integrity target can be used with the dm-crypt target - in this 17 situation the dm-crypt target creates the integrity data and passes them 18 to the dm-integrity target via bio_integrity_payload attached to the bio. 19 In this mode, the dm-crypt and dm-integrity targets provide authenticated 20 disk encryption - if the attacker modifies the encrypted device, an I/O [all …]
|
| /kernel/linux/linux-4.19/Documentation/locking/ |
| D | spinlocks.txt | 15 there is only one thread-of-control within the region(s) protected by that 21 Documentation/memory-barriers.txt 26 spinlock for most things - using more than one spinlock can make things a 33 before, because you have to make sure the spinlocks correctly protect the 38 NOTE! The spin-lock is safe only when you _also_ use the lock itself 43 ---- 45 Lesson 2: reader-writer spinlocks. 48 to mostly read from the shared variables, the reader-writer locks 51 to change the variables it has to get an exclusive write lock. 53 NOTE! reader-writer locks require more atomic memory operations than [all …]
|
| /kernel/linux/linux-4.19/drivers/rtc/ |
| D | rtc-max6900.c | 23 #define MAX6900_REG_SC 0 /* seconds 00-59 */ 24 #define MAX6900_REG_MN 1 /* minutes 00-59 */ 25 #define MAX6900_REG_HR 2 /* hours 00-23 */ 26 #define MAX6900_REG_DT 3 /* day of month 00-31 */ 27 #define MAX6900_REG_MO 4 /* month 01-12 */ 28 #define MAX6900_REG_DW 5 /* day of week 1-7 */ 29 #define MAX6900_REG_YR 6 /* year 00-99 */ 37 #define MAX6900_REG_CT_WP (1 << 7) /* Write Protect */ 40 * register read/write commands 59 .addr = client->addr, in max6900_i2c_read_regs() [all …]
|