Symbol: protect
arch/arm/include/asm/kfence.h
46
static inline bool kfence_protect_page(unsigned long addr, bool protect)
arch/arm/include/asm/kfence.h
48
set_memory_valid(addr, 1, !protect);
arch/arm64/include/asm/kfence.h
13
static inline bool kfence_protect_page(unsigned long addr, bool protect)
arch/arm64/include/asm/kfence.h
15
set_memory_valid(addr, 1, !protect);
arch/loongarch/include/asm/kfence.h
52
static inline bool kfence_protect_page(unsigned long addr, bool protect)
arch/loongarch/include/asm/kfence.h
59
if (protect)
arch/parisc/include/asm/kfence.h
22
static inline bool kfence_protect_page(unsigned long addr, bool protect)
arch/parisc/include/asm/kfence.h
34
if (protect)
arch/powerpc/include/asm/kfence.h
37
static inline bool kfence_protect_page(unsigned long addr, bool protect)
arch/powerpc/include/asm/kfence.h
41
__kernel_map_pages(page, 1, !protect);
arch/powerpc/include/asm/kfence.h
46
static inline bool kfence_protect_page(unsigned long addr, bool protect)
arch/powerpc/include/asm/kfence.h
50
if (protect) {
arch/riscv/include/asm/kfence.h
16
static inline bool kfence_protect_page(unsigned long addr, bool protect)
arch/riscv/include/asm/kfence.h
20
if (protect)
arch/s390/include/asm/kfence.h
25
static inline bool kfence_protect_page(unsigned long addr, bool protect)
arch/s390/include/asm/kfence.h
27
__kernel_map_pages(virt_to_page((void *)addr), 1, !protect);
arch/s390/kernel/machine_kexec.c
152
static void crash_protect_pages(int protect)
arch/s390/kernel/machine_kexec.c
159
if (protect)
arch/x86/include/asm/kfence.h
41
static inline bool kfence_protect_page(unsigned long addr, bool protect)
arch/x86/include/asm/kfence.h
56
if (protect != !!(val & _PAGE_PRESENT))
arch/x86/include/asm/kfence.h
71
if (!protect)
arch/x86/kernel/machine_kexec_64.c
630
kexec_mark_range(unsigned long start, unsigned long end, bool protect)
arch/x86/kernel/machine_kexec_64.c
644
if (protect)
arch/x86/kernel/machine_kexec_64.c
650
static void kexec_mark_crashkres(bool protect)
arch/x86/kernel/machine_kexec_64.c
654
kexec_mark_range(crashk_low_res.start, crashk_low_res.end, protect);
arch/x86/kernel/machine_kexec_64.c
658
kexec_mark_range(crashk_res.start, control - 1, protect);
arch/x86/kernel/machine_kexec_64.c
660
kexec_mark_range(control, crashk_res.end, protect);
arch/x86/kernel/machine_kexec_64.c
664
static void kexec_mark_dm_crypt_keys(bool protect)
arch/x86/kernel/machine_kexec_64.c
673
if (protect)
drivers/gpu/drm/exynos/exynos5433_drm_decon.c
384
static void decon_shadow_protect(struct decon_context *ctx, bool protect)
drivers/gpu/drm/exynos/exynos5433_drm_decon.c
387
protect ? ~0 : 0);
drivers/gpu/drm/exynos/exynos7_drm_decon.c
118
unsigned int win, bool protect)
drivers/gpu/drm/exynos/exynos7_drm_decon.c
126
if (protect)
drivers/gpu/drm/exynos/exynos_drm_fimd.c
775
unsigned int win, bool protect)
drivers/gpu/drm/exynos/exynos_drm_fimd.c
798
if (protect)
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
1009
.protect = &a650_protect,
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
1036
.protect = &a660_protect,
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
1055
.protect = &a660_protect,
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
1080
.protect = &a660_protect,
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
1108
.protect = &a630_protect,
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
1127
.protect = &a690_protect,
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
1469
.protect = &a650_protect,
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
1496
.protect = &a730_protect,
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
1519
.protect = &a730_protect,
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
1554
.protect = &a730_protect,
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
1597
.protect = &a730_protect,
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
1632
.protect = &a730_protect,
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
1908
.protect = &x285_protect,
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
1939
.protect = &a840_protect,
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
696
.protect = &a630_protect,
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
727
.protect = &a630_protect,
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
746
.protect = &a630_protect,
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
777
.protect = &a630_protect,
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
802
.protect = &a630_protect,
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
827
.protect = &a630_protect,
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
852
.protect = &a630_protect,
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
877
.protect = &a630_protect,
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
903
.protect = &a650_protect,
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
926
.protect = &a650_protect,
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
965
.protect = &a630_protect,
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
985
.protect = &a630_protect,
drivers/gpu/drm/msm/adreno/a6xx_gpu.c
710
const struct adreno_protect *protect = adreno_gpu->info->a6xx->protect;
drivers/gpu/drm/msm/adreno/a6xx_gpu.c
723
for (i = 0; i < protect->count - 1; i++) {
drivers/gpu/drm/msm/adreno/a6xx_gpu.c
725
if (protect->regs[i])
drivers/gpu/drm/msm/adreno/a6xx_gpu.c
726
gpu_write(gpu, REG_A6XX_CP_PROTECT(i), protect->regs[i]);
drivers/gpu/drm/msm/adreno/a6xx_gpu.c
729
gpu_write(gpu, REG_A6XX_CP_PROTECT(protect->count_max - 1), protect->regs[i]);
drivers/gpu/drm/msm/adreno/a6xx_gpu.h
46
const struct adreno_protect *protect;
drivers/gpu/drm/msm/adreno/a8xx_gpu.c
228
const struct adreno_protect *protect = adreno_gpu->info->a6xx->protect;
drivers/gpu/drm/msm/adreno/a8xx_gpu.c
246
for (i = 0; i < protect->count; i++) {
drivers/gpu/drm/msm/adreno/a8xx_gpu.c
248
if (protect->regs[i]) {
drivers/gpu/drm/msm/adreno/a8xx_gpu.c
249
gpu_write(gpu, REG_A8XX_CP_PROTECT_GLOBAL(i), protect->regs[i]);
drivers/gpu/drm/msm/adreno/a8xx_gpu.c
250
final_cfg = protect->regs[i];
drivers/gpu/drm/msm/adreno/a8xx_gpu.c
258
a8xx_write_pipe(gpu, PIPE_BR, REG_A8XX_CP_PROTECT_PIPE(protect->count_max), final_cfg);
drivers/gpu/drm/msm/adreno/a8xx_gpu.c
259
a8xx_write_pipe(gpu, PIPE_BV, REG_A8XX_CP_PROTECT_PIPE(protect->count_max), final_cfg);
drivers/gpu/drm/nouveau/dispnv04/hw.h
243
static inline void NVVgaProtect(struct drm_device *dev, int head, bool protect)
drivers/gpu/drm/nouveau/dispnv04/hw.h
247
if (protect) {
drivers/gpu/drm/nouveau/dispnv04/hw.h
255
NVSetEnablePalette(dev, head, protect);
drivers/hwmon/pmbus/tps25990.c
67
u8 protect)
drivers/hwmon/pmbus/tps25990.c
71
switch (protect) {
drivers/input/mouse/psmouse-base.c
1824
if (attr->protect) {
drivers/input/mouse/psmouse-base.c
1841
if (attr->protect) {
drivers/input/mouse/psmouse.h
155
bool protect;
drivers/input/mouse/psmouse.h
177
.protect = _protect, \
drivers/iommu/mtk_iommu.c
1300
void *protect;
drivers/iommu/mtk_iommu.c
1314
protect = devm_kcalloc(dev, 2, MTK_PROTECT_PA_ALIGN, GFP_KERNEL);
drivers/iommu/mtk_iommu.c
1315
if (!protect)
drivers/iommu/mtk_iommu.c
1317
data->protect_base = ALIGN(virt_to_phys(protect), MTK_PROTECT_PA_ALIGN);
drivers/iommu/mtk_iommu_v1.c
615
void *protect;
drivers/iommu/mtk_iommu_v1.c
625
protect = devm_kcalloc(dev, 2, MTK_PROTECT_PA_ALIGN,
drivers/iommu/mtk_iommu_v1.c
627
if (!protect)
drivers/iommu/mtk_iommu_v1.c
629
data->protect_base = ALIGN(virt_to_phys(protect), MTK_PROTECT_PA_ALIGN);
drivers/irqchip/irq-vic.c
111
writel(vic->protect, base + VIC_PROTECT);
drivers/irqchip/irq-vic.c
140
vic->protect = readl(base + VIC_PROTECT);
drivers/irqchip/irq-vic.c
70
u32 protect;
drivers/mtd/devices/docg3.c
1676
int protect, dps0, dps0_low, dps0_high, dps1, dps1_low, dps1_high;
drivers/mtd/devices/docg3.c
1679
protect = doc_register_readb(docg3, DOC_PROTECTION);
drivers/mtd/devices/docg3.c
1688
seq_printf(s, "Protection = 0x%02x (", protect);
drivers/mtd/devices/docg3.c
1689
if (protect & DOC_PROTECT_FOUNDRY_OTP_LOCK)
drivers/mtd/devices/docg3.c
1691
if (protect & DOC_PROTECT_CUSTOMER_OTP_LOCK)
drivers/mtd/devices/docg3.c
1693
if (protect & DOC_PROTECT_LOCK_INPUT)
drivers/mtd/devices/docg3.c
1695
if (protect & DOC_PROTECT_STICKY_LOCK)
drivers/mtd/devices/docg3.c
1697
if (protect & DOC_PROTECT_PROTECTION_ENABLED)
drivers/mtd/devices/docg3.c
1699
if (protect & DOC_PROTECT_IPL_DOWNLOAD_LOCK)
drivers/mtd/devices/docg3.c
1701
if (protect & DOC_PROTECT_PROTECTION_ERROR)
drivers/mtd/ubi/wl.c
662
int err, scrubbing = 0, torture = 0, protect = 0, erroneous = 0;
drivers/mtd/ubi/wl.c
802
protect = 1;
drivers/mtd/ubi/wl.c
844
protect = 1;
drivers/mtd/ubi/wl.c
950
if (protect)
drivers/net/ethernet/aquantia/atlantic/aq_macsec.c
343
sc_rec.protect = secy->protect_frames;
drivers/net/ethernet/aquantia/atlantic/macsec/macsec_api.c
1551
packed_record[5] |= (rec->protect & 0x1) << 1;
drivers/net/ethernet/aquantia/atlantic/macsec/macsec_api.c
1602
rec->protect = (packed_record[5] >> 1) & 0x1;
drivers/net/ethernet/aquantia/atlantic/macsec/macsec_struct.h
262
u32 protect;
drivers/net/ethernet/broadcom/tg3.c
14576
u32 nvcfg1, protect = 0;
drivers/net/ethernet/broadcom/tg3.c
14583
protect = 1;
drivers/net/ethernet/broadcom/tg3.c
14598
tp->nvram_size = (protect ? 0x3e200 :
drivers/net/ethernet/broadcom/tg3.c
14601
tp->nvram_size = (protect ? 0x1f200 :
drivers/net/ethernet/broadcom/tg3.c
14604
tp->nvram_size = (protect ? 0x1f200 :
drivers/net/ethernet/broadcom/tg3.c
14615
tp->nvram_size = (protect ?
drivers/net/ethernet/broadcom/tg3.c
14619
tp->nvram_size = (protect ?
drivers/net/ethernet/broadcom/tg3.c
14623
tp->nvram_size = (protect ?
drivers/net/ethernet/broadcom/tg3.c
14670
u32 nvcfg1, protect = 0;
drivers/net/ethernet/broadcom/tg3.c
14677
protect = 1;
drivers/net/ethernet/broadcom/tg3.c
14711
if (protect) {
drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c
607
bool protect = false;
drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c
650
protect = true;
drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c
655
protect) {
drivers/net/wireless/ti/wl18xx/scan.c
198
cmd->protect = 0;
drivers/net/wireless/ti/wl18xx/scan.c
62
cmd->protect = 0;
drivers/net/wireless/ti/wl18xx/scan.h
54
u8 protect; /* ??? */
drivers/scsi/sd.c
1366
unsigned char protect, fua;
drivers/scsi/sd.c
1414
protect = sd_setup_protect_cmnd(cmd, dix, dif);
drivers/scsi/sd.c
1416
protect = 0;
drivers/scsi/sd.c
1418
if (protect && sdkp->protection_type == T10_PI_TYPE2_PROTECTION) {
drivers/scsi/sd.c
1420
protect | fua, dld);
drivers/scsi/sd.c
1424
protect | fua);
drivers/scsi/sd.c
1427
protect | fua, dld);
drivers/scsi/sd.c
1429
sdp->use_10_for_rw || protect || rq->bio->bi_write_hint) {
drivers/scsi/sd.c
1431
protect | fua);
drivers/scsi/sd.c
1434
protect | fua);
drivers/scsi/sd.c
898
unsigned int protect = 0;
drivers/scsi/sd.c
919
protect = 3 << 5; /* Disable target PI checking */
drivers/scsi/sd.c
921
protect = 1 << 5; /* Enable target PI checking */
drivers/scsi/sd.c
928
return protect;
drivers/target/target_core_sbc.c
606
sbc_set_prot_op_checks(u8 protect, bool fabric_prot, enum target_prot_type prot_type,
drivers/target/target_core_sbc.c
611
protect ? TARGET_PROT_DOUT_PASS :
drivers/target/target_core_sbc.c
613
switch (protect) {
drivers/target/target_core_sbc.c
632
pr_err("Unsupported protect field %d\n", protect);
drivers/target/target_core_sbc.c
637
protect ? TARGET_PROT_DIN_PASS :
drivers/target/target_core_sbc.c
639
switch (protect) {
drivers/target/target_core_sbc.c
658
pr_err("Unsupported protect field %d\n", protect);
drivers/target/target_core_sbc.c
667
sbc_check_prot(struct se_device *dev, struct se_cmd *cmd, unsigned char protect,
drivers/target/target_core_sbc.c
675
if (unlikely(protect &&
drivers/target/target_core_sbc.c
690
if (protect)
drivers/target/target_core_sbc.c
712
if (!protect)
drivers/target/target_core_sbc.c
717
"PROTECT: 0x%02x\n", cmd->t_task_cdb[0], protect);
drivers/target/target_core_sbc.c
721
if (sbc_set_prot_op_checks(protect, fabric_prot, pi_prot_type, is_write, cmd))
drivers/target/target_core_sbc.c
733
if (protect)
drivers/video/fbdev/s3c-fb.c
423
static void shadow_protect_win(struct s3c_fb_win *win, bool protect)
drivers/video/fbdev/s3c-fb.c
428
if (protect) {
fs/affs/amigaffs.h
91
__be32 protect;
fs/affs/inode.c
189
tail->protect = cpu_to_be32(AFFS_I(inode)->i_protect);
fs/affs/inode.c
51
prot = be32_to_cpu(tail->protect);
kernel/sched/fair.c
1010
static struct sched_entity *__pick_eevdf(struct cfs_rq *cfs_rq, bool protect)
kernel/sched/fair.c
1037
if (curr && protect && protect_slice(curr))
sound/isa/msnd/msnd.c
286
int protect = start, nbanks = 0;
sound/isa/msnd/msnd.c
324
if (protect)
tools/laptop/freefall/freefall.c
102
protect(0);
tools/laptop/freefall/freefall.c
162
protect(21);
tools/testing/selftests/powerpc/mm/pkey_siginfo.c
301
FAIL_IF(pthread_create(&prot_thread, &attr, &protect, &r) != 0);
tools/testing/selftests/powerpc/mm/pkey_siginfo.c
309
FAIL_IF(pthread_create(&prot_thread, &attr, &protect, &r) != 0);
tools/testing/selftests/powerpc/mm/pkey_siginfo.c
317
FAIL_IF(pthread_create(&prot_thread, &attr, &protect, &r) != 0);