/kernel/linux/linux-5.10/security/safesetid/ |
H A D | lsm.c | 66 static enum sid_policy_type setid_policy_lookup(kid_t src, kid_t dst, enum setid_type new_type) in setid_policy_lookup() argument 72 if (new_type == UID) in setid_policy_lookup() 74 else if (new_type == GID) in setid_policy_lookup() 83 pol->type = new_type; in setid_policy_lookup() 156 static bool id_permitted_for_cred(const struct cred *old, kid_t new_id, enum setid_type new_type) in id_permitted_for_cred() argument 161 if (new_type == UID) { in id_permitted_for_cred() 165 } else if (new_type == GID){ in id_permitted_for_cred() 169 } else /* Error, new_type is an invalid type */ in id_permitted_for_cred() 177 setid_policy_lookup((kid_t){.uid = old->uid}, new_id, new_type) != SIDPOL_CONSTRAINED; in id_permitted_for_cred() 180 if (new_type in id_permitted_for_cred() [all...] |
/kernel/linux/linux-6.6/security/safesetid/ |
H A D | lsm.c | 66 static enum sid_policy_type setid_policy_lookup(kid_t src, kid_t dst, enum setid_type new_type) in setid_policy_lookup() argument 72 if (new_type == UID) in setid_policy_lookup() 74 else if (new_type == GID) in setid_policy_lookup() 83 pol->type = new_type; in setid_policy_lookup() 147 static bool id_permitted_for_cred(const struct cred *old, kid_t new_id, enum setid_type new_type) in id_permitted_for_cred() argument 152 if (new_type == UID) { in id_permitted_for_cred() 156 } else if (new_type == GID){ in id_permitted_for_cred() 160 } else /* Error, new_type is an invalid type */ in id_permitted_for_cred() 168 setid_policy_lookup((kid_t){.uid = old->uid}, new_id, new_type) != SIDPOL_CONSTRAINED; in id_permitted_for_cred() 171 if (new_type in id_permitted_for_cred() [all...] |
/kernel/linux/linux-5.10/arch/x86/mm/pat/ |
H A D | memtype.c | 494 enum page_cache_mode *new_type) in reserve_ram_pages_type() 500 if (new_type) in reserve_ram_pages_type() 501 *new_type = _PAGE_CACHE_MODE_UC_MINUS; in reserve_ram_pages_type() 519 if (new_type) in reserve_ram_pages_type() 520 *new_type = type; in reserve_ram_pages_type() 526 if (new_type) in reserve_ram_pages_type() 527 *new_type = req_type; in reserve_ram_pages_type() 572 * If new_type is NULL, function will return an error if it cannot reserve the 573 * region with req_type. If new_type is non-NULL, function will return 574 * available type in new_type i 492 reserve_ram_pages_type(u64 start, u64 end, enum page_cache_mode req_type, enum page_cache_mode *new_type) reserve_ram_pages_type() argument 577 memtype_reserve(u64 start, u64 end, enum page_cache_mode req_type, enum page_cache_mode *new_type) memtype_reserve() argument 773 enum page_cache_mode new_type; memtype_reserve_io() local [all...] |
H A D | memtype.h | 33 enum page_cache_mode *new_type); 39 enum page_cache_mode *new_type) in memtype_check_insert() 38 memtype_check_insert(struct memtype *entry_new, enum page_cache_mode *new_type) memtype_check_insert() argument
|
/kernel/linux/linux-6.6/arch/x86/mm/pat/ |
H A D | memtype.c | 455 enum page_cache_mode *new_type) in reserve_ram_pages_type() 461 if (new_type) in reserve_ram_pages_type() 462 *new_type = _PAGE_CACHE_MODE_UC_MINUS; in reserve_ram_pages_type() 480 if (new_type) in reserve_ram_pages_type() 481 *new_type = type; in reserve_ram_pages_type() 487 if (new_type) in reserve_ram_pages_type() 488 *new_type = req_type; in reserve_ram_pages_type() 533 * If new_type is NULL, function will return an error if it cannot reserve the 534 * region with req_type. If new_type is non-NULL, function will return 535 * available type in new_type i 453 reserve_ram_pages_type(u64 start, u64 end, enum page_cache_mode req_type, enum page_cache_mode *new_type) reserve_ram_pages_type() argument 538 memtype_reserve(u64 start, u64 end, enum page_cache_mode req_type, enum page_cache_mode *new_type) memtype_reserve() argument 734 enum page_cache_mode new_type; memtype_reserve_io() local [all...] |
H A D | memtype.h | 33 enum page_cache_mode *new_type); 39 enum page_cache_mode *new_type) in memtype_check_insert() 38 memtype_check_insert(struct memtype *entry_new, enum page_cache_mode *new_type) memtype_check_insert() argument
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | branch.c | 25 st->new_counts[flags->new_type]++; in branch_type_count() 42 const char *branch_new_type_name(int new_type) in branch_new_type_name() argument 68 if (new_type >= 0 && new_type < PERF_BR_NEW_MAX) in branch_new_type_name() 69 return branch_new_names[new_type]; in branch_new_type_name() 107 return branch_new_type_name(e->flags.new_type); in get_branch_type()
|
H A D | branch.h | 26 u64 new_type:4; member 87 const char *branch_new_type_name(int new_type);
|
/kernel/linux/linux-5.10/drivers/gpio/ |
H A D | gpio-tqmx86.c | 152 u8 new_type, gpiic; in tqmx86_gpio_irq_set_type() local 156 new_type = TQMX86_GPII_RISING; in tqmx86_gpio_irq_set_type() 159 new_type = TQMX86_GPII_FALLING; in tqmx86_gpio_irq_set_type() 162 new_type = TQMX86_GPII_FALLING | TQMX86_GPII_RISING; in tqmx86_gpio_irq_set_type() 168 gpio->irq_type[offset] = new_type; in tqmx86_gpio_irq_set_type() 173 gpiic |= new_type << (offset * TQMX86_GPII_BITS); in tqmx86_gpio_irq_set_type()
|
/kernel/linux/linux-6.6/drivers/gpio/ |
H A D | gpio-tqmx86.c | 154 u8 new_type, gpiic; in tqmx86_gpio_irq_set_type() local 158 new_type = TQMX86_GPII_RISING; in tqmx86_gpio_irq_set_type() 161 new_type = TQMX86_GPII_FALLING; in tqmx86_gpio_irq_set_type() 164 new_type = TQMX86_GPII_FALLING | TQMX86_GPII_RISING; in tqmx86_gpio_irq_set_type() 170 gpio->irq_type[offset] = new_type; in tqmx86_gpio_irq_set_type() 175 gpiic |= new_type << (offset * TQMX86_GPII_BITS); in tqmx86_gpio_irq_set_type()
|
/kernel/linux/linux-5.10/arch/x86/kernel/ |
H A D | e820.c | 463 __e820__range_update(struct e820_table *table, u64 start, u64 size, enum e820_type old_type, enum e820_type new_type) in __e820__range_update() argument 469 BUG_ON(old_type == new_type); in __e820__range_update() 478 e820_print_type(new_type); in __e820__range_update() 493 entry->type = new_type; in __e820__range_update() 500 __e820__range_add(table, start, size, new_type); in __e820__range_update() 513 __e820__range_add(table, final_start, final_end - final_start, new_type); in __e820__range_update() 530 u64 __init e820__range_update(u64 start, u64 size, enum e820_type old_type, enum e820_type new_type) in e820__range_update() argument 532 return __e820__range_update(e820_table, start, size, old_type, new_type); in e820__range_update() 535 static u64 __init e820__range_update_kexec(u64 start, u64 size, enum e820_type old_type, enum e820_type new_type) in e820__range_update_kexec() argument 537 return __e820__range_update(e820_table_kexec, start, size, old_type, new_type); in e820__range_update_kexec() [all...] |
/kernel/linux/linux-6.6/arch/x86/kernel/ |
H A D | e820.c | 463 __e820__range_update(struct e820_table *table, u64 start, u64 size, enum e820_type old_type, enum e820_type new_type) in __e820__range_update() argument 469 BUG_ON(old_type == new_type); in __e820__range_update() 478 e820_print_type(new_type); in __e820__range_update() 493 entry->type = new_type; in __e820__range_update() 500 __e820__range_add(table, start, size, new_type); in __e820__range_update() 513 __e820__range_add(table, final_start, final_end - final_start, new_type); in __e820__range_update() 530 u64 __init e820__range_update(u64 start, u64 size, enum e820_type old_type, enum e820_type new_type) in e820__range_update() argument 532 return __e820__range_update(e820_table, start, size, old_type, new_type); in e820__range_update() 535 static u64 __init e820__range_update_kexec(u64 start, u64 size, enum e820_type old_type, enum e820_type new_type) in e820__range_update_kexec() argument 537 return __e820__range_update(e820_table_kexec, start, size, old_type, new_type); in e820__range_update_kexec() [all...] |
/kernel/linux/linux-5.10/drivers/net/wan/ |
H A D | pc300too.c | 196 int new_type; in pc300_ioctl() local 223 new_type = IF_IFACE_X21; in pc300_ioctl() 228 new_type = IF_IFACE_V35; in pc300_ioctl() 232 new_type = IF_IFACE_V24; in pc300_ioctl() 253 port->iface = new_type; in pc300_ioctl()
|
/kernel/linux/linux-6.6/drivers/net/wan/ |
H A D | pc300too.c | 194 int new_type; in pc300_ioctl() local 211 new_type = IF_IFACE_X21; in pc300_ioctl() 216 new_type = IF_IFACE_V35; in pc300_ioctl() 220 new_type = IF_IFACE_V24; in pc300_ioctl() 241 port->iface = new_type; in pc300_ioctl()
|
/kernel/linux/linux-5.10/kernel/sched/rtg/ |
H A D | rtg_ctrl.c | 162 static int do_update_rt_frame_num(struct frame_info *frame_info, int new_type) in do_update_rt_frame_num() argument 169 if (is_rt_type(new_type) == is_rt_type(old_type)) in do_update_rt_frame_num() 175 } else if (is_rt_type(new_type)) { in do_update_rt_frame_num() 190 static int update_rt_frame_num(struct frame_info *frame_info, int new_type, int cmd) in update_rt_frame_num() argument 196 ret = do_update_rt_frame_num(frame_info, new_type); in update_rt_frame_num() 199 if (is_rt_type(new_type)) { in update_rt_frame_num() 209 if ((atomic_read(&g_rt_frame_num) > 0) && is_rt_type(new_type)) in update_rt_frame_num()
|
/kernel/linux/linux-6.6/arch/x86/kernel/cpu/mtrr/ |
H A D | generic.c | 264 u8 new_type, old_type; in add_map_entry() local 280 new_type = get_effective_type(type, cache_map[i].type); in add_map_entry() 283 if (cache_map[i].fixed || new_type == old_type) { in add_map_entry() 292 i -= add_map_entry_at(start, tmp, new_type, i); in add_map_entry() 478 static u8 type_merge(u8 type, u8 new_type, u8 *uniform) in type_merge() argument 483 return new_type; in type_merge() 485 effective_type = get_effective_type(type, new_type); in type_merge()
|
/kernel/linux/linux-6.6/kernel/sched/rtg/ |
H A D | rtg_ctrl.c | 162 static int do_update_rt_frame_num(struct frame_info *frame_info, int new_type) in do_update_rt_frame_num() argument 169 if (is_rt_type(new_type) == is_rt_type(old_type)) in do_update_rt_frame_num() 175 } else if (is_rt_type(new_type)) { in do_update_rt_frame_num() 190 static int update_rt_frame_num(struct frame_info *frame_info, int new_type, int cmd) in update_rt_frame_num() argument 196 ret = do_update_rt_frame_num(frame_info, new_type); in update_rt_frame_num() 199 if (is_rt_type(new_type)) { in update_rt_frame_num() 209 if ((atomic_read(&g_rt_frame_num) > 0) && is_rt_type(new_type)) in update_rt_frame_num()
|
/kernel/linux/linux-5.10/kernel/events/ |
H A D | hw_breakpoint.c | 351 static int __modify_bp_slot(struct perf_event *bp, u64 old_type, u64 new_type) in __modify_bp_slot() argument 357 err = __reserve_bp_slot(bp, new_type); in __modify_bp_slot() 373 static int modify_bp_slot(struct perf_event *bp, u64 old_type, u64 new_type) in modify_bp_slot() argument 378 ret = __modify_bp_slot(bp, old_type, new_type); in modify_bp_slot()
|
/kernel/linux/linux-5.10/arch/x86/include/asm/e820/ |
H A D | api.h | 18 extern u64 e820__range_update(u64 start, u64 size, enum e820_type old_type, enum e820_type new_type);
|
/kernel/linux/linux-6.6/arch/x86/include/asm/e820/ |
H A D | api.h | 18 extern u64 e820__range_update(u64 start, u64 size, enum e820_type old_type, enum e820_type new_type);
|
/kernel/linux/linux-6.6/kernel/events/ |
H A D | hw_breakpoint.c | 625 static int __modify_bp_slot(struct perf_event *bp, u64 old_type, u64 new_type) in __modify_bp_slot() argument 631 err = __reserve_bp_slot(bp, new_type); in __modify_bp_slot() 647 static int modify_bp_slot(struct perf_event *bp, u64 old_type, u64 new_type) in modify_bp_slot() argument 650 int ret = __modify_bp_slot(bp, old_type, new_type); in modify_bp_slot()
|
/kernel/linux/linux-5.10/net/smc/ |
H A D | smc_core.h | 412 void smcr_lgr_set_type(struct smc_link_group *lgr, enum smc_lgr_type new_type); 414 enum smc_lgr_type new_type, int asym_lnk_idx);
|
/kernel/linux/linux-5.10/fs/gfs2/ |
H A D | dir.h | 42 const struct gfs2_inode *nip, unsigned int new_type);
|
/kernel/linux/linux-5.10/drivers/net/wireless/st/cw1200/ |
H A D | sta.h | 23 enum nl80211_iftype new_type,
|
/kernel/linux/linux-6.6/fs/gfs2/ |
H A D | dir.h | 42 const struct gfs2_inode *nip, unsigned int new_type);
|