| /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-6.6/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-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-6.6/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-6.6/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-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-6.6/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-6.6/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-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-6.6/include/linux/mtd/ |
| D | spi-nor.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 11 #include <linux/spi/spi-mem.h> 18 * requires a 4-byte (32-bit) address. 22 #define SPINOR_OP_WRDI 0x04 /* Write disable */ 23 #define SPINOR_OP_WREN 0x06 /* Write enable */ 25 #define SPINOR_OP_WRSR 0x01 /* Write status register 1 byte */ 27 #define SPINOR_OP_WRSR2 0x3e /* Write status register 2 */ 53 /* 4-byte address opcodes - used on Spansion and some Macronix flashes. */ 71 /* Double Transfer Rate opcodes - defined in JEDEC JESD216B. */ 85 #define SPINOR_OP_EN4B 0xb7 /* Enter 4-byte mode */ [all …]
|
| /kernel/linux/linux-6.6/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-6.6/drivers/rtc/ |
| D | rtc-max6900.c | 1 // SPDX-License-Identifier: GPL-2.0-only 21 #define MAX6900_REG_SC 0 /* seconds 00-59 */ 22 #define MAX6900_REG_MN 1 /* minutes 00-59 */ 23 #define MAX6900_REG_HR 2 /* hours 00-23 */ 24 #define MAX6900_REG_DT 3 /* day of month 00-31 */ 25 #define MAX6900_REG_MO 4 /* month 01-12 */ 26 #define MAX6900_REG_DW 5 /* day of week 1-7 */ 27 #define MAX6900_REG_YR 6 /* year 00-99 */ 35 #define MAX6900_REG_CT_WP (1 << 7) /* Write Protect */ 38 * register read/write commands [all …]
|
| /kernel/linux/linux-6.6/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-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-6.6/Documentation/devicetree/bindings/mmc/ |
| D | mmc-controller.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/mmc/mmc-controller.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ulf Hansson <ulf.hansson@linaro.org> 25 "#address-cells": 30 "#size-cells": 37 broken-cd: 42 cd-gpios: 47 non-removable: [all …]
|
| /kernel/linux/linux-6.6/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-5.10/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 …]
|
| /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-5.10/Documentation/devicetree/bindings/mmc/ |
| D | mmc-controller.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/mmc/mmc-controller.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ulf Hansson <ulf.hansson@linaro.org> 25 "#address-cells": 30 "#size-cells": 37 broken-cd: 42 cd-gpios: 46 non-removable: [all …]
|
| /kernel/linux/linux-6.6/drivers/pinctrl/ |
| D | pinctrl-equilibrium.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 108 * @lock: spin lock to protect gpio register write. 117 raw_spinlock_t lock; /* protect gpio register */ 130 * @lock: protect pinctrl register write 141 raw_spinlock_t lock; /* protect pinpad register */
|