Home
last modified time | relevance | path

Searched refs:protect (Results 1 – 25 of 355) sorted by relevance

12345678910>>...15

/openbmc/u-boot/drivers/pch/
H A Dsandbox_pch.c11 bool protect; member
18 return priv->protect; in sandbox_get_pch_spi_protect()
28 static int sandbox_pch_set_spi_protect(struct udevice *dev, bool protect) in sandbox_pch_set_spi_protect() argument
32 priv->protect = protect; in sandbox_pch_set_spi_protect()
H A Dpch7.c25 static int pch7_set_spi_protect(struct udevice *dev, bool protect) in pch7_set_spi_protect() argument
31 if (protect) in pch7_set_spi_protect()
H A Dpch-uclass.c22 int pch_set_spi_protect(struct udevice *dev, bool protect) in pch_set_spi_protect() argument
29 return ops->set_spi_protect(dev, protect); in pch_set_spi_protect()
/openbmc/linux/arch/powerpc/include/asm/
H A Dkfence.h24 static inline bool kfence_protect_page(unsigned long addr, bool protect) in kfence_protect_page() argument
28 __kernel_map_pages(page, 1, !protect); in kfence_protect_page()
33 static inline bool kfence_protect_page(unsigned long addr, bool protect) in kfence_protect_page() argument
37 if (protect) { in kfence_protect_page()
/openbmc/linux/Documentation/misc-devices/
H A Deeprom.rst38 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
43 ST M34C02 2K 0x50 - 0x57, SW write protect at 0x30-37
78 software write protect register at 0x30 - 0x37 (0x20 less than the memory
82 this address will write protect the memory array permanently, and the
/openbmc/u-boot/arch/arm/mach-at91/arm926ejs/
H A Deflash.c109 flash_info[0].protect[i] = 0; in flash_init()
120 flash_info[0].protect[i] = (tmp >> (i%32)) & 1; in flash_init()
123 flash_info[0].protect[i] = 1; in flash_init()
144 info->protect[i] ? " (RO)" : " " in flash_print_info()
184 info->protect[i] = (tmp >> (i%32)) & 1; in flash_real_protect()
/openbmc/u-boot/arch/arm/dts/
H A Darmada-385-atl-x530.dts11 nand-protect {
12 compatible = "atl,nand-protect";
13 protect-gpio = <&gpio1 11 GPIO_ACTIVE_HIGH>;
H A Darmada-385-atl-x530DP.dts12 nand-protect {
13 compatible = "atl,nand-protect";
14 protect-gpio = <&gpio1 11 GPIO_ACTIVE_HIGH>;
/openbmc/linux/arch/arm64/include/asm/
H A Dkfence.h15 static inline bool kfence_protect_page(unsigned long addr, bool protect) in kfence_protect_page() argument
17 set_memory_valid(addr, 1, !protect); in kfence_protect_page()
/openbmc/linux/tools/laptop/freefall/
H A Dfreefall.c80 static void protect(int seconds) in protect() function
102 protect(0); in ignore_me()
162 protect(21); in main()
/openbmc/linux/arch/s390/include/asm/
H A Dkfence.h36 static inline bool kfence_protect_page(unsigned long addr, bool protect) in kfence_protect_page() argument
38 __kernel_map_pages(virt_to_page((void *)addr), 1, !protect); in kfence_protect_page()
/openbmc/linux/arch/parisc/include/asm/
H A Dkfence.h22 static inline bool kfence_protect_page(unsigned long addr, bool protect) in kfence_protect_page() argument
34 if (protect) in kfence_protect_page()
/openbmc/linux/arch/riscv/include/asm/
H A Dkfence.h16 static inline bool kfence_protect_page(unsigned long addr, bool protect) in kfence_protect_page() argument
20 if (protect) in kfence_protect_page()
/openbmc/qemu/hw/intc/
H A Dallwinner-a10-pic.c69 return s->protect; in aw_a10_pic_read()
102 s->protect = value; in aw_a10_pic_write()
148 VMSTATE_UINT32(protect, AwA10PICState),
178 s->protect = 0; in aw_a10_pic_reset()
/openbmc/u-boot/board/freescale/m5253demo/
H A Dflash.c63 info->protect[0] = 0; in flash_get_offsets()
67 info->protect[i] = 0; in flash_get_offsets()
120 info->start[i], info->protect[i] ? " (RO)" : " "); in flash_print_info()
207 if (info->protect[sect]) { in flash_erase()
265 if (info->protect[sect] == 0) { /* not protected */ in flash_erase()
/openbmc/linux/arch/x86/include/asm/
H A Dkfence.h41 static inline bool kfence_protect_page(unsigned long addr, bool protect) in kfence_protect_page() argument
56 if (protect) in kfence_protect_page()
/openbmc/linux/arch/arm/include/asm/
H A Dkfence.h46 static inline bool kfence_protect_page(unsigned long addr, bool protect) in kfence_protect_page() argument
48 set_memory_valid(addr, 1, !protect); in kfence_protect_page()
/openbmc/linux/arch/loongarch/include/asm/
H A Dkfence.h42 static inline bool kfence_protect_page(unsigned long addr, bool protect) in kfence_protect_page() argument
49 if (protect) in kfence_protect_page()
/openbmc/u-boot/include/
H A Dpch.h49 int (*set_spi_protect)(struct udevice *dev, bool protect);
106 int pch_set_spi_protect(struct udevice *dev, bool protect);
/openbmc/linux/tools/testing/selftests/powerpc/mm/
H A Dpkey_siginfo.c97 static void *protect(void *p) in protect() function
301 FAIL_IF(pthread_create(&prot_thread, &attr, &protect, &r) != 0); in test()
309 FAIL_IF(pthread_create(&prot_thread, &attr, &protect, &r) != 0); in test()
317 FAIL_IF(pthread_create(&prot_thread, &attr, &protect, &r) != 0); in test()
/openbmc/u-boot/board/cobra5272/
H A Dflash.c47 info->protect[i] ? " (RO)" : " "); in flash_print_info()
69 memset (flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT); in flash_init()
152 if (info->protect[sect]) { in flash_erase()
180 if (info->protect[sect] == 0) { /* not protected */ in flash_erase()
/openbmc/linux/drivers/target/
H A Dtarget_core_sbc.c606 sbc_set_prot_op_checks(u8 protect, bool fabric_prot, enum target_prot_type prot_type, in sbc_set_prot_op_checks() argument
611 protect ? TARGET_PROT_DOUT_PASS : in sbc_set_prot_op_checks()
613 switch (protect) { in sbc_set_prot_op_checks()
632 pr_err("Unsupported protect field %d\n", protect); in sbc_set_prot_op_checks()
637 protect ? TARGET_PROT_DIN_PASS : in sbc_set_prot_op_checks()
639 switch (protect) { in sbc_set_prot_op_checks()
658 pr_err("Unsupported protect field %d\n", protect); in sbc_set_prot_op_checks()
667 sbc_check_prot(struct se_device *dev, struct se_cmd *cmd, unsigned char protect, in sbc_check_prot() argument
675 if (unlikely(protect && in sbc_check_prot()
690 if (protect) in sbc_check_prot()
[all …]
/openbmc/u-boot/common/
H A Dflash.c67 info->protect[i] = 0; in flash_protect()
75 info->protect[i] = 1; in flash_protect()
148 (info->protect[i] != 0) ) { in flash_write()
/openbmc/linux/arch/x86/kernel/
H A Dmachine_kexec_64.c553 kexec_mark_range(unsigned long start, unsigned long end, bool protect) in kexec_mark_range() argument
567 if (protect) in kexec_mark_range()
573 static void kexec_mark_crashkres(bool protect) in kexec_mark_crashkres() argument
577 kexec_mark_range(crashk_low_res.start, crashk_low_res.end, protect); in kexec_mark_crashkres()
581 kexec_mark_range(crashk_res.start, control - 1, protect); in kexec_mark_crashkres()
583 kexec_mark_range(control, crashk_res.end, protect); in kexec_mark_crashkres()
/openbmc/u-boot/arch/x86/cpu/intel_common/
H A Dlpc.c83 int lpc_set_spi_protect(struct udevice *dev, int bios_ctrl, bool protect) in lpc_set_spi_protect() argument
89 if (protect) { in lpc_set_spi_protect()

12345678910>>...15