Home
last modified time | relevance | path

Searched +full:write +full:- +full:protect (Results 1 – 25 of 1142) sorted by relevance

12345678910>>...46

/OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/mm/
H A Dpkey_siginfo.c1 // 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 …]
/OK3568_Linux_fs/kernel/Documentation/misc-devices/
H A Deeprom.rst11 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 …]
/OK3568_Linux_fs/u-boot/include/configs/
H A DUCP1020.h2 * Copyright 2013-2015 Arcturus Networks, Inc.
6 * Copyright 2009-2011 Freescale Semiconductor, Inc.
8 * SPDX-License-Identifier: GPL-2.0+
12 * QorIQ uCP1020-xx boards configuration file
22 #define CONFIG_SYS_PCI_64BIT /* enable 64-bit PCI resources */
28 #define CONFIG_BOARDNAME "uCP1020-64EE512-0U1-XR-T1"
58 #define CONFIG_BOARDNAME_LOCAL "uCP1020-64EEE512-OU1-XR"
162 #define CONFIG_SYS_SDRAM_SIZE (1u << (CONFIG_SYS_SDRAM_SIZE_LAW - 19))
210 * 0x8000_0000 0xdfff_ffff PCI Express Mem 1G non-cacheable(PCIe * 2)
211 * 0xec00_0000 0xefff_ffff NOR flash Up to 64M non-cacheable CS0/1
[all …]
/OK3568_Linux_fs/kernel/include/soc/at91/
H A Dat91sam9_ddrsdr.h1 /* 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 …]
/OK3568_Linux_fs/kernel/drivers/lightnvm/
H A Dpblk-rb.c1 // 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 …]
/OK3568_Linux_fs/u-boot/drivers/rtc/
H A Dds1302.c2 * ds1302.c - Support for the Dallas Semiconductor DS1302 Timekeeping Chip
36 while (num--) printf("%x ", *ptr++); in DUMP()
57 unsigned char hr10:2; /* 10 (0-2) or am/pm (am/pm, 0-1) */
74 unsigned char WP:1; /* write protect 1=protect 0=unprot */
178 DPRINTF("WRITE 0x%x bytes @ 0x%x [ ", count, addr); in write_ser_drv()
181 addr&=~1; /* WRITE */ in write_ser_drv()
202 /* disable write protect */ in rtc_init()
229 bbclk.year10=100/10; /* 2000 - why not? ;) */ in rtc_init()
234 /* Write out the changes if needed */ in rtc_init()
236 /* enable write protect */ in rtc_init()
[all …]
/OK3568_Linux_fs/u-boot/arch/arm/mach-at91/arm926ejs/
H A Deflash.c3 * Reinhard Meyer, EMK Elektronik, reinhard.meyer@emk-elektronik.de
5 * SPDX-License-Identifier: GPL-2.0+
18 * Regions can be write/erase protected.
22 * The flash is presented to u-boot with each region being a sector,
24 * Each sector can be hardware protected (protect on/off).
28 * by u-Boot commands.
44 * do a read-modify-write for partially programmed pages
74 if ((readl(&dbu->cidr) & AT91_DBU_CID_ARCH_MASK) != AT91_DBU_CID_ARCH_9XExx) { in flash_init()
80 writel(AT91_EEFC_FCR_KEY | AT91_EEFC_FCR_FCMD_GETD, &eefc->fcr); in flash_init()
81 while ((readl(&eefc->fsr) & AT91_EEFC_FSR_FRDY) == 0) in flash_init()
[all …]
/OK3568_Linux_fs/kernel/arch/mips/sgi-ip22/
H A Dip22-nvram.c1 // 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 …]
/OK3568_Linux_fs/kernel/include/linux/mtd/
H A Dspi-nor.h1 /* 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 */
50 #define SPINOR_OP_WRCR 0x31 /* Write configure register */
54 #define SPINOR_OP_WREAR 0xc5 /* Write Extended Address Register */
56 /* 4-byte address opcodes - used on Spansion and some Macronix flashes. */
[all …]
/OK3568_Linux_fs/u-boot/board/freescale/common/
H A Dzm7300.c4 * SPDX-License-Identifier: GPL-2.0+
7 /* Power-One ZM7300 DPM */
92 i2c_read(I2C_DPM_ADDR, 0, -3, ret, 2); in dpm_rrp()
97 return -1; in dpm_rrp()
101 /* Write Data d into DPM register r (RAM) */
109 i2c_read(I2C_DPM_ADDR, 0, -3, ret, 1); in dpm_wrm()
114 return -1; in dpm_wrm()
118 /* Write Data d into Register r of POL(s) a */
131 i2c_read(I2C_DPM_ADDR, 0, -7, ret, 1); in dpm_wrp()
136 return -1; in dpm_wrp()
[all …]
/OK3568_Linux_fs/u-boot/arch/arm/mach-at91/include/mach/
H A Dat91_matrix.h4 * SPDX-License-Identifier: GPL-2.0+
59 u32 reserve1[16 - AT91_MATRIX_MASTERS];
61 u32 reserve2[16 - AT91_MATRIX_SLAVES];
63 u32 reserve3[32 - (2 * AT91_MATRIX_SLAVES)];
67 u32 ccr[52]; /* 0x110 - 0x1E0 Chip Configuration */
68 u32 womr; /* 0x1E4 Write Protect Mode */
69 u32 wpsr; /* 0x1E8 Write Protect Status */
101 /* Remap Command for AHB Master 0 (ARM926EJ-S Instruction Master) */
103 /* Remap Command for AHB Master 1 (ARM926EJ-S Data Master) */
152 /* Remap Command for AHB Master 0 (ARM926EJ-S Instruction Master) */
[all …]
/OK3568_Linux_fs/kernel/include/linux/platform_data/
H A Dmmc-s3cmci.h1 /* 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
/OK3568_Linux_fs/kernel/security/
H A Dmin_addr.c1 // 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()
/OK3568_Linux_fs/u-boot/arch/x86/cpu/intel_common/
H A Dlpc.c4 * SPDX-License-Identifier: GPL-2.0
38 * lpc_early_init() - set up LPC serial ports and other early things
41 * @return 0 if OK, -ve on error
45 struct udevice *pch = dev->parent; in lpc_common_early_init()
53 count = fdtdec_get_int_array_count(gd->fdt_blob, dev_of_offset(dev), in lpc_common_early_init()
54 "intel,gen-dec", (u32 *)values, in lpc_common_early_init()
57 return -EINVAL; in lpc_common_early_init()
66 /* Write all registers but use 0 if we run out of data */ in lpc_common_early_init()
72 reg = ptr->base | PCI_COMMAND_IO | (ptr->size << 16); in lpc_common_early_init()
84 int lpc_set_spi_protect(struct udevice *dev, int bios_ctrl, bool protect) in lpc_set_spi_protect() argument
[all …]
/OK3568_Linux_fs/u-boot/board/freescale/p2041rdb/
H A DREADME4 with high-performance datapath acceleration architecture(DPAA), CoreNet
19 => tftp 1000000 u-boot.bin
20 => protect off all
26 => protect off all
32 => protect off all
36 5. Change DIP-switch
37 SW1[1-5] = 10110
48 SDCard which contains RCW and U-Boot image.
53 => mmc write 1000000 8 672
57 => mmc write 1000000 690 10
[all …]
/OK3568_Linux_fs/external/xserver/hw/xwin/glx/
H A Dgen_gl_wrappers.py36 protect=True variable
65 if (arg == '-noprotect'):
67 protect = False variable
68 elif (arg == '-registry'):
72 elif (arg == '-outfile'):
75 elif (arg == '-preresolve'):
77 elif (arg == '-wrapper'):
79 elif (arg == '-shim'):
81 elif (arg == '-thunk'):
83 elif (arg == '-thunkdefs'):
[all …]
/OK3568_Linux_fs/kernel/drivers/target/
H A Dtarget_core_sbc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * (c) Copyright 2002-2013 Datera, Inc.
13 #include <linux/crc-t10dif.h>
14 #include <linux/t10-pi.h>
34 struct se_device *dev = cmd->se_dev; in sbc_emulate_readcapacity()
35 unsigned char *cdb = cmd->t_task_cdb; in sbc_emulate_readcapacity()
36 unsigned long long blocks_long = dev->transport->get_blocks(dev); in sbc_emulate_readcapacity()
42 * SBC-2 says: in sbc_emulate_readcapacity()
49 * In SBC-3, these fields are obsolete, but some SCSI in sbc_emulate_readcapacity()
51 * follow SBC-2. in sbc_emulate_readcapacity()
[all …]
/OK3568_Linux_fs/u-boot/drivers/mtd/
H A Dpic32_flash.c6 * SPDX-License-Identifier: GPL-2.0+
53 writel(nvmop, &nvm_regs_p->ctrl.raw); in flash_initiate_operation()
55 /* enable flash write */ in flash_initiate_operation()
56 writel(NVM_WREN, &nvm_regs_p->ctrl.set); in flash_initiate_operation()
59 writel(LOCK_KEY, &nvm_regs_p->key.raw); in flash_initiate_operation()
60 writel(UNLOCK_KEY1, &nvm_regs_p->key.raw); in flash_initiate_operation()
61 writel(UNLOCK_KEY2, &nvm_regs_p->key.raw); in flash_initiate_operation()
64 writel(NVM_WR, &nvm_regs_p->ctrl.set); in flash_initiate_operation()
69 int ret = wait_for_bit_le32(&nvm_regs_p->ctrl.raw, in flash_wait_till_busy()
79 tmp = readl(&nvm_regs_p->ctrl.raw); in flash_complete_operation()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/gadget/function/
H A Dg_zero.h1 /* 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
/OK3568_Linux_fs/kernel/fs/jffs2/
H A Djffs2_fs_sb.h2 * 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 …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mmc/
H A Dmmc-controller.yaml1 # 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 …]
/OK3568_Linux_fs/u-boot/common/
H A Dflash.c5 * SPDX-License-Identifier: GPL-2.0+
17 /*-----------------------------------------------------------------------
21 /*-----------------------------------------------------------------------
35 if (!info || info->sector_count == 0 || info->size == 0 || to < from) { in flash_protect()
39 s_end = info->sector_count - 1; /* index of last sector */ in flash_protect()
40 b_end = info->start[0] + info->size - 1; /* bank end address */ in flash_protect()
48 * or the protect range and flash range don't overlap. in flash_protect()
50 if (info->flash_id == FLASH_UNKNOWN || in flash_protect()
51 to < info->start[0] || from > b_end) { in flash_protect()
55 for (i=0; i<info->sector_count; ++i) { in flash_protect()
[all …]
/OK3568_Linux_fs/kernel/Documentation/admin-guide/device-mapper/
H A Ddm-integrity.rst2 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 …]
/OK3568_Linux_fs/kernel/include/linux/
H A Dfsl_ifc.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
21 * - IFC version 1.0 implements 4 banks.
22 * - IFC version 1.1 onward implements 8 banks.
35 * CSPR - Chip Select Property Register
47 /* Write Protect */
69 (__ilog2(n) - IFC_AMASK_SHIFT))
110 #define CSOR_NAND_PB(n) ((__ilog2(n) - 5) << CSOR_NAND_PB_SHIFT)
123 * Chip Select Option Register - NOR Flash Mode
150 * Chip Select Option Register - GPCM Mode
152 /* GPCM Mode - Normal */
[all …]
/OK3568_Linux_fs/kernel/drivers/rtc/
H A Drtc-max6900.c23 #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 …]

12345678910>>...46