protect
static inline bool kfence_protect_page(unsigned long addr, bool protect)
set_memory_valid(addr, 1, !protect);
static inline bool kfence_protect_page(unsigned long addr, bool protect)
set_memory_valid(addr, 1, !protect);
static inline bool kfence_protect_page(unsigned long addr, bool protect)
if (protect)
static inline bool kfence_protect_page(unsigned long addr, bool protect)
if (protect)
static inline bool kfence_protect_page(unsigned long addr, bool protect)
__kernel_map_pages(page, 1, !protect);
static inline bool kfence_protect_page(unsigned long addr, bool protect)
if (protect) {
static inline bool kfence_protect_page(unsigned long addr, bool protect)
if (protect)
static inline bool kfence_protect_page(unsigned long addr, bool protect)
__kernel_map_pages(virt_to_page((void *)addr), 1, !protect);
static void crash_protect_pages(int protect)
if (protect)
static inline bool kfence_protect_page(unsigned long addr, bool protect)
if (protect != !!(val & _PAGE_PRESENT))
if (!protect)
kexec_mark_range(unsigned long start, unsigned long end, bool protect)
if (protect)
static void kexec_mark_crashkres(bool protect)
kexec_mark_range(crashk_low_res.start, crashk_low_res.end, protect);
kexec_mark_range(crashk_res.start, control - 1, protect);
kexec_mark_range(control, crashk_res.end, protect);
static void kexec_mark_dm_crypt_keys(bool protect)
if (protect)
static void decon_shadow_protect(struct decon_context *ctx, bool protect)
protect ? ~0 : 0);
unsigned int win, bool protect)
if (protect)
unsigned int win, bool protect)
if (protect)
.protect = &a650_protect,
.protect = &a660_protect,
.protect = &a660_protect,
.protect = &a660_protect,
.protect = &a630_protect,
.protect = &a690_protect,
.protect = &a650_protect,
.protect = &a730_protect,
.protect = &a730_protect,
.protect = &a730_protect,
.protect = &a730_protect,
.protect = &a730_protect,
.protect = &x285_protect,
.protect = &a840_protect,
.protect = &a630_protect,
.protect = &a630_protect,
.protect = &a630_protect,
.protect = &a630_protect,
.protect = &a630_protect,
.protect = &a630_protect,
.protect = &a630_protect,
.protect = &a630_protect,
.protect = &a650_protect,
.protect = &a650_protect,
.protect = &a630_protect,
.protect = &a630_protect,
const struct adreno_protect *protect = adreno_gpu->info->a6xx->protect;
for (i = 0; i < protect->count - 1; i++) {
if (protect->regs[i])
gpu_write(gpu, REG_A6XX_CP_PROTECT(i), protect->regs[i]);
gpu_write(gpu, REG_A6XX_CP_PROTECT(protect->count_max - 1), protect->regs[i]);
const struct adreno_protect *protect;
const struct adreno_protect *protect = adreno_gpu->info->a6xx->protect;
for (i = 0; i < protect->count; i++) {
if (protect->regs[i]) {
gpu_write(gpu, REG_A8XX_CP_PROTECT_GLOBAL(i), protect->regs[i]);
final_cfg = protect->regs[i];
a8xx_write_pipe(gpu, PIPE_BR, REG_A8XX_CP_PROTECT_PIPE(protect->count_max), final_cfg);
a8xx_write_pipe(gpu, PIPE_BV, REG_A8XX_CP_PROTECT_PIPE(protect->count_max), final_cfg);
static inline void NVVgaProtect(struct drm_device *dev, int head, bool protect)
if (protect) {
NVSetEnablePalette(dev, head, protect);
u8 protect)
switch (protect) {
if (attr->protect) {
if (attr->protect) {
bool protect;
.protect = _protect, \
void *protect;
protect = devm_kcalloc(dev, 2, MTK_PROTECT_PA_ALIGN, GFP_KERNEL);
if (!protect)
data->protect_base = ALIGN(virt_to_phys(protect), MTK_PROTECT_PA_ALIGN);
void *protect;
protect = devm_kcalloc(dev, 2, MTK_PROTECT_PA_ALIGN,
if (!protect)
data->protect_base = ALIGN(virt_to_phys(protect), MTK_PROTECT_PA_ALIGN);
writel(vic->protect, base + VIC_PROTECT);
vic->protect = readl(base + VIC_PROTECT);
u32 protect;
int protect, dps0, dps0_low, dps0_high, dps1, dps1_low, dps1_high;
protect = doc_register_readb(docg3, DOC_PROTECTION);
seq_printf(s, "Protection = 0x%02x (", protect);
if (protect & DOC_PROTECT_FOUNDRY_OTP_LOCK)
if (protect & DOC_PROTECT_CUSTOMER_OTP_LOCK)
if (protect & DOC_PROTECT_LOCK_INPUT)
if (protect & DOC_PROTECT_STICKY_LOCK)
if (protect & DOC_PROTECT_PROTECTION_ENABLED)
if (protect & DOC_PROTECT_IPL_DOWNLOAD_LOCK)
if (protect & DOC_PROTECT_PROTECTION_ERROR)
int err, scrubbing = 0, torture = 0, protect = 0, erroneous = 0;
protect = 1;
protect = 1;
if (protect)
sc_rec.protect = secy->protect_frames;
packed_record[5] |= (rec->protect & 0x1) << 1;
rec->protect = (packed_record[5] >> 1) & 0x1;
u32 protect;
u32 nvcfg1, protect = 0;
protect = 1;
tp->nvram_size = (protect ? 0x3e200 :
tp->nvram_size = (protect ? 0x1f200 :
tp->nvram_size = (protect ? 0x1f200 :
tp->nvram_size = (protect ?
tp->nvram_size = (protect ?
tp->nvram_size = (protect ?
u32 nvcfg1, protect = 0;
protect = 1;
if (protect) {
bool protect = false;
protect = true;
protect) {
cmd->protect = 0;
cmd->protect = 0;
u8 protect; /* ??? */
unsigned char protect, fua;
protect = sd_setup_protect_cmnd(cmd, dix, dif);
protect = 0;
if (protect && sdkp->protection_type == T10_PI_TYPE2_PROTECTION) {
protect | fua, dld);
protect | fua);
protect | fua, dld);
sdp->use_10_for_rw || protect || rq->bio->bi_write_hint) {
protect | fua);
protect | fua);
unsigned int protect = 0;
protect = 3 << 5; /* Disable target PI checking */
protect = 1 << 5; /* Enable target PI checking */
return protect;
sbc_set_prot_op_checks(u8 protect, bool fabric_prot, enum target_prot_type prot_type,
protect ? TARGET_PROT_DOUT_PASS :
switch (protect) {
pr_err("Unsupported protect field %d\n", protect);
protect ? TARGET_PROT_DIN_PASS :
switch (protect) {
pr_err("Unsupported protect field %d\n", protect);
sbc_check_prot(struct se_device *dev, struct se_cmd *cmd, unsigned char protect,
if (unlikely(protect &&
if (protect)
if (!protect)
"PROTECT: 0x%02x\n", cmd->t_task_cdb[0], protect);
if (sbc_set_prot_op_checks(protect, fabric_prot, pi_prot_type, is_write, cmd))
if (protect)
static void shadow_protect_win(struct s3c_fb_win *win, bool protect)
if (protect) {
__be32 protect;
tail->protect = cpu_to_be32(AFFS_I(inode)->i_protect);
prot = be32_to_cpu(tail->protect);
static struct sched_entity *__pick_eevdf(struct cfs_rq *cfs_rq, bool protect)
if (curr && protect && protect_slice(curr))
int protect = start, nbanks = 0;
if (protect)
protect(0);
protect(21);
FAIL_IF(pthread_create(&prot_thread, &attr, &protect, &r) != 0);
FAIL_IF(pthread_create(&prot_thread, &attr, &protect, &r) != 0);
FAIL_IF(pthread_create(&prot_thread, &attr, &protect, &r) != 0);