/kernel/linux/linux-5.10/security/safesetid/ |
H A D | securityfs.c | 72 struct setid_ruleset *pol = in __release_ruleset() local 78 hash_for_each_safe(pol->rules, bucket, tmp, rule, next) in __release_ruleset() 80 kfree(pol->policy_str); in __release_ruleset() 81 kfree(pol); in __release_ruleset() 84 static void release_ruleset(struct setid_ruleset *pol){ in release_ruleset() argument 85 call_rcu(&pol->rcu, __release_ruleset); in release_ruleset() 88 static void insert_rule(struct setid_ruleset *pol, struct setid_rule *rule) in insert_rule() argument 90 if (pol->type == UID) in insert_rule() 91 hash_add(pol->rules, &rule->next, __kuid_val(rule->src_id.uid)); in insert_rule() 92 else if (pol in insert_rule() 98 verify_ruleset(struct setid_ruleset *pol) verify_ruleset() argument 142 struct setid_ruleset *pol; handle_policy_update() local 267 struct setid_ruleset *pol; safesetid_file_read() local [all...] |
H A D | lsm.c | 69 struct setid_ruleset *pol; in setid_policy_lookup() local 73 pol = rcu_dereference(safesetid_setuid_rules); in setid_policy_lookup() 75 pol = rcu_dereference(safesetid_setgid_rules); in setid_policy_lookup() 82 if (pol) { in setid_policy_lookup() 83 pol->type = new_type; in setid_policy_lookup() 84 result = _setid_policy_lookup(pol, src, dst); in setid_policy_lookup()
|
/kernel/linux/linux-6.6/security/safesetid/ |
H A D | securityfs.c | 72 struct setid_ruleset *pol = in __release_ruleset() local 78 hash_for_each_safe(pol->rules, bucket, tmp, rule, next) in __release_ruleset() 80 kfree(pol->policy_str); in __release_ruleset() 81 kfree(pol); in __release_ruleset() 84 static void release_ruleset(struct setid_ruleset *pol){ in release_ruleset() argument 85 call_rcu(&pol->rcu, __release_ruleset); in release_ruleset() 88 static void insert_rule(struct setid_ruleset *pol, struct setid_rule *rule) in insert_rule() argument 90 if (pol->type == UID) in insert_rule() 91 hash_add(pol->rules, &rule->next, __kuid_val(rule->src_id.uid)); in insert_rule() 92 else if (pol in insert_rule() 98 verify_ruleset(struct setid_ruleset *pol) verify_ruleset() argument 142 struct setid_ruleset *pol; handle_policy_update() local 267 struct setid_ruleset *pol; safesetid_file_read() local [all...] |
H A D | lsm.c | 69 struct setid_ruleset *pol; in setid_policy_lookup() local 73 pol = rcu_dereference(safesetid_setuid_rules); in setid_policy_lookup() 75 pol = rcu_dereference(safesetid_setgid_rules); in setid_policy_lookup() 82 if (pol) { in setid_policy_lookup() 83 pol->type = new_type; in setid_policy_lookup() 84 result = _setid_policy_lookup(pol, src, dst); in setid_policy_lookup()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | mempolicy.h | 62 extern void __mpol_put(struct mempolicy *pol); 63 static inline void mpol_put(struct mempolicy *pol) in mpol_put() argument 65 if (pol) in mpol_put() 66 __mpol_put(pol); in mpol_put() 70 * Does mempolicy pol need explicit unref after use? 73 static inline int mpol_needs_cond_ref(struct mempolicy *pol) in mpol_needs_cond_ref() argument 75 return (pol && (pol->flags & MPOL_F_SHARED)); in mpol_needs_cond_ref() 78 static inline void mpol_cond_put(struct mempolicy *pol) in mpol_cond_put() argument 80 if (mpol_needs_cond_ref(pol)) in mpol_cond_put() 85 mpol_dup(struct mempolicy *pol) mpol_dup() argument 94 mpol_get(struct mempolicy *pol) mpol_get() argument 180 mpol_is_preferred_many(struct mempolicy *pol) mpol_is_preferred_many() argument 200 mpol_cond_put(struct mempolicy *pol) mpol_cond_put() argument 204 mpol_get(struct mempolicy *pol) mpol_get() argument 291 mpol_is_preferred_many(struct mempolicy *pol) mpol_is_preferred_many() argument [all...] |
/kernel/linux/linux-5.10/mm/ |
H A D | mempolicy.c | 158 struct mempolicy *pol = p->mempolicy; in get_task_policy() local 161 if (pol) in get_task_policy() 162 return pol; in get_task_policy() 166 pol = &preferred_node_policy[node]; in get_task_policy() 168 if (pol->mode) in get_task_policy() 169 return pol; in get_task_policy() 176 int (*create)(struct mempolicy *pol, const nodemask_t *nodes); 177 void (*rebind)(struct mempolicy *pol, const nodemask_t *nodes); 180 static inline int mpol_store_user_nodemask(const struct mempolicy *pol) in mpol_store_user_nodemask() argument 182 return pol in mpol_store_user_nodemask() 193 mpol_new_interleave(struct mempolicy *pol, const nodemask_t *nodes) mpol_new_interleave() argument 201 mpol_new_preferred(struct mempolicy *pol, const nodemask_t *nodes) mpol_new_preferred() argument 212 mpol_new_bind(struct mempolicy *pol, const nodemask_t *nodes) mpol_new_bind() argument 229 mpol_set_nodemask(struct mempolicy *pol, const nodemask_t *nodes, struct nodemask_scratch *nsc) mpol_set_nodemask() argument 320 mpol_rebind_default(struct mempolicy *pol, const nodemask_t *nodes) mpol_rebind_default() argument 324 mpol_rebind_nodemask(struct mempolicy *pol, const nodemask_t *nodes) mpol_rebind_nodemask() argument 344 mpol_rebind_preferred(struct mempolicy *pol, const nodemask_t *nodes) mpol_rebind_preferred() argument 375 mpol_rebind_policy(struct mempolicy *pol, const nodemask_t *newmask) mpol_rebind_policy() argument 770 vma_replace_policy(struct vm_area_struct *vma, struct mempolicy *pol) vma_replace_policy() argument 941 struct mempolicy *pol = current->mempolicy, *pol_refcount = NULL; do_get_mempolicy() local 1778 struct mempolicy *pol = NULL; __get_vma_policy() local 1815 struct mempolicy *pol = __get_vma_policy(vma, addr); get_vma_policy() local 1825 struct mempolicy *pol; vma_policy_mof() local 1960 offset_il_node(struct mempolicy *pol, unsigned long n) offset_il_node() argument 1977 interleave_nid(struct mempolicy *pol, struct vm_area_struct *vma, unsigned long addr, int shift) interleave_nid() argument 2172 struct mempolicy *pol; alloc_pages_vma() local 2254 struct mempolicy *pol = &default_policy; alloc_pages_current() local 2277 struct mempolicy *pol = mpol_dup(vma_policy(src)); vma_dup_policy() local 2421 struct mempolicy *pol = NULL; mpol_shared_policy_lookup() local 2461 struct mempolicy *pol; mpol_misplaced() local 2533 struct mempolicy *pol; mpol_put_task_policy() local 2549 sp_node_init(struct sp_node *node, unsigned long start, unsigned long end, struct mempolicy *pol) sp_node_init() argument 2557 sp_alloc(unsigned long start, unsigned long end, struct mempolicy *pol) sp_alloc() argument 3003 mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol) mpol_to_str() argument [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | mempolicy.h | 65 extern void __mpol_put(struct mempolicy *pol); 66 static inline void mpol_put(struct mempolicy *pol) in mpol_put() argument 68 if (pol) in mpol_put() 69 __mpol_put(pol); in mpol_put() 73 * Does mempolicy pol need explicit unref after use? 76 static inline int mpol_needs_cond_ref(struct mempolicy *pol) in mpol_needs_cond_ref() argument 78 return (pol && (pol->flags & MPOL_F_SHARED)); in mpol_needs_cond_ref() 81 static inline void mpol_cond_put(struct mempolicy *pol) in mpol_cond_put() argument 83 if (mpol_needs_cond_ref(pol)) in mpol_cond_put() 88 mpol_dup(struct mempolicy *pol) mpol_dup() argument 97 mpol_get(struct mempolicy *pol) mpol_get() argument 203 mpol_cond_put(struct mempolicy *pol) mpol_cond_put() argument 207 mpol_get(struct mempolicy *pol) mpol_get() argument [all...] |
H A D | blk-cgroup.h | 185 int blkcg_policy_register(struct blkcg_policy *pol); 186 void blkcg_policy_unregister(struct blkcg_policy *pol); 188 const struct blkcg_policy *pol); 190 const struct blkcg_policy *pol); 196 const struct blkcg_policy *pol, int data, 207 int blkg_conf_prep(struct blkcg *blkcg, const struct blkcg_policy *pol, 372 * @pol: policy of interest 374 * Return pointer to private data associated with the @blkg-@pol pair. 377 struct blkcg_policy *pol) in blkg_to_pd() 379 return blkg ? blkg->pd[pol in blkg_to_pd() 376 blkg_to_pd(struct blkcg_gq *blkg, struct blkcg_policy *pol) blkg_to_pd() argument 382 blkcg_to_cpd(struct blkcg *blkcg, struct blkcg_policy *pol) blkcg_to_cpd() argument 653 blkcg_policy_register(struct blkcg_policy *pol) blkcg_policy_register() argument 654 blkcg_policy_unregister(struct blkcg_policy *pol) blkcg_policy_unregister() argument 655 blkcg_activate_policy(struct request_queue *q, const struct blkcg_policy *pol) blkcg_activate_policy() argument 657 blkcg_deactivate_policy(struct request_queue *q, const struct blkcg_policy *pol) blkcg_deactivate_policy() argument 663 blkg_to_pd(struct blkcg_gq *blkg, struct blkcg_policy *pol) blkg_to_pd() argument [all...] |
/kernel/linux/linux-6.6/mm/ |
H A D | mempolicy.c | 167 struct mempolicy *pol = p->mempolicy; in get_task_policy() local 170 if (pol) in get_task_policy() 171 return pol; in get_task_policy() 175 pol = &preferred_node_policy[node]; in get_task_policy() 177 if (pol->mode) in get_task_policy() 178 return pol; in get_task_policy() 185 int (*create)(struct mempolicy *pol, const nodemask_t *nodes); 186 void (*rebind)(struct mempolicy *pol, const nodemask_t *nodes); 189 static inline int mpol_store_user_nodemask(const struct mempolicy *pol) in mpol_store_user_nodemask() argument 191 return pol in mpol_store_user_nodemask() 202 mpol_new_nodemask(struct mempolicy *pol, const nodemask_t *nodes) mpol_new_nodemask() argument 210 mpol_new_preferred(struct mempolicy *pol, const nodemask_t *nodes) mpol_new_preferred() argument 228 mpol_set_nodemask(struct mempolicy *pol, const nodemask_t *nodes, struct nodemask_scratch *nsc) mpol_set_nodemask() argument 319 mpol_rebind_default(struct mempolicy *pol, const nodemask_t *nodes) mpol_rebind_default() argument 323 mpol_rebind_nodemask(struct mempolicy *pol, const nodemask_t *nodes) mpol_rebind_nodemask() argument 343 mpol_rebind_preferred(struct mempolicy *pol, const nodemask_t *nodes) mpol_rebind_preferred() argument 356 mpol_rebind_policy(struct mempolicy *pol, const nodemask_t *newmask) mpol_rebind_policy() argument 779 vma_replace_policy(struct vm_area_struct *vma, struct mempolicy *pol) vma_replace_policy() argument 944 struct mempolicy *pol = current->mempolicy, *pol_refcount = NULL; do_get_mempolicy() local 1772 struct mempolicy *pol = NULL; __get_vma_policy() local 1809 struct mempolicy *pol = __get_vma_policy(vma, addr); get_vma_policy() local 1819 struct mempolicy *pol; vma_policy_mof() local 1971 offset_il_node(struct mempolicy *pol, unsigned long n) offset_il_node() argument 1997 interleave_nid(struct mempolicy *pol, struct vm_area_struct *vma, unsigned long addr, int shift) interleave_nid() argument 2148 alloc_pages_preferred_many(gfp_t gfp, unsigned int order, int nid, struct mempolicy *pol) alloc_pages_preferred_many() argument 2187 struct mempolicy *pol; vma_alloc_folio() local 2287 struct mempolicy *pol = &default_policy; alloc_pages() local 2322 alloc_pages_bulk_array_interleave(gfp_t gfp, struct mempolicy *pol, unsigned long nr_pages, struct page **page_array) alloc_pages_bulk_array_interleave() argument 2357 alloc_pages_bulk_array_preferred_many(gfp_t gfp, int nid, struct mempolicy *pol, unsigned long nr_pages, struct page **page_array) alloc_pages_bulk_array_preferred_many() argument 2386 struct mempolicy *pol = &default_policy; alloc_pages_bulk_array_mempolicy() local 2406 struct mempolicy *pol = mpol_dup(vma_policy(src)); vma_dup_policy() local 2551 struct mempolicy *pol = NULL; mpol_shared_policy_lookup() local 2588 struct mempolicy *pol; mpol_misplaced() local 2670 struct mempolicy *pol; mpol_put_task_policy() local 2686 sp_node_init(struct sp_node *node, unsigned long start, unsigned long end, struct mempolicy *pol) sp_node_init() argument 2694 sp_alloc(unsigned long start, unsigned long end, struct mempolicy *pol) sp_alloc() argument 3140 mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol) mpol_to_str() argument [all...] |
/kernel/linux/linux-5.10/block/ |
H A D | blk-cgroup.c | 61 const struct blkcg_policy *pol) in blkcg_policy_enabled() 63 return pol && test_bit(pol->plid, q->blkcg_pols); in blkcg_policy_enabled() 180 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_alloc() local 183 if (!blkcg_policy_enabled(q, pol)) in blkg_alloc() 187 pd = pol->pd_alloc_fn(gfp_mask, q, blkcg); in blkg_alloc() 275 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_create() local 277 if (blkg->pd[i] && pol->pd_init_fn) in blkg_create() 278 pol->pd_init_fn(blkg->pd[i]); in blkg_create() 289 struct blkcg_policy *pol in blkg_create() local 60 blkcg_policy_enabled(struct request_queue *q, const struct blkcg_policy *pol) blkcg_policy_enabled() argument 390 struct blkcg_policy *pol = blkcg_policy[i]; blkg_destroy() local 464 struct blkcg_policy *pol = blkcg_policy[i]; blkcg_reset_stats() local 502 blkcg_print_blkgs(struct seq_file *sf, struct blkcg *blkcg, u64 (*prfill)(struct seq_file *, struct blkg_policy_data *, int), const struct blkcg_policy *pol, int data, bool show_total) blkcg_print_blkgs() argument 546 blkg_lookup_check(struct blkcg *blkcg, const struct blkcg_policy *pol, struct request_queue *q) blkg_lookup_check() argument 934 struct blkcg_policy *pol = blkcg_policy[i]; blkcg_print_stat() local 1097 struct blkcg_policy *pol = blkcg_policy[i]; blkcg_css_alloc() local 1262 struct blkcg_policy *pol = blkcg_policy[i]; blkcg_bind() local 1321 blkcg_activate_policy(struct request_queue *q, const struct blkcg_policy *pol) blkcg_activate_policy() argument 1428 blkcg_deactivate_policy(struct request_queue *q, const struct blkcg_policy *pol) blkcg_deactivate_policy() argument 1470 blkcg_policy_register(struct blkcg_policy *pol) blkcg_policy_register() argument 1549 blkcg_policy_unregister(struct blkcg_policy *pol) blkcg_policy_unregister() argument [all...] |
/kernel/linux/linux-6.6/net/xfrm/ |
H A D | xfrm_policy.c | 169 static void __xfrm_policy_link(struct xfrm_policy *pol, int dir); 170 static struct xfrm_policy *__xfrm_policy_unlink(struct xfrm_policy *pol, 527 struct xfrm_policy *pol; in xfrm_dst_hash_transfer() local 533 hlist_for_each_entry_safe(pol, tmp, list, bydst) { in xfrm_dst_hash_transfer() 536 __get_hash_thresh(net, pol->family, dir, &dbits, &sbits); in xfrm_dst_hash_transfer() 537 h = __addr_hash(&pol->selector.daddr, &pol->selector.saddr, in xfrm_dst_hash_transfer() 538 pol->family, nhashmask, dbits, sbits); in xfrm_dst_hash_transfer() 539 if (!entry0 || pol->xdo.type == XFRM_DEV_OFFLOAD_PACKET) { in xfrm_dst_hash_transfer() 540 hlist_del_rcu(&pol in xfrm_dst_hash_transfer() 562 struct xfrm_policy *pol; xfrm_idx_hash_transfer() local 697 xfrm_policy_inexact_alloc_bin(const struct xfrm_policy *pol, u8 dir) xfrm_policy_inexact_alloc_bin() argument 1227 struct xfrm_policy *pol; xfrm_hash_rebuild() local 1449 xfrm_policy_mark_match(const struct xfrm_mark *mark, struct xfrm_policy *pol) xfrm_policy_mark_match() argument 1507 struct xfrm_policy *pol, *delpol = NULL; xfrm_policy_insert_inexact_list() local 1544 struct xfrm_policy *pol, *newpos = NULL, *delpol = NULL; xfrm_policy_insert_list() local 1629 struct xfrm_policy *pol; __xfrm_policy_bysel_ctx() local 1652 struct xfrm_policy *pol, *ret = NULL; xfrm_policy_bysel_ctx() local 1720 struct xfrm_policy *pol, *ret; xfrm_policy_byid() local 1760 struct xfrm_policy *pol; xfrm_policy_flush_secctx_check() local 1782 struct xfrm_policy *pol; xfrm_dev_policy_flush_secctx_check() local 1817 struct xfrm_policy *pol; xfrm_policy_flush() local 1858 struct xfrm_policy *pol; xfrm_dev_policy_flush() local 1899 struct xfrm_policy *pol; xfrm_policy_walk() local 1968 xfrm_policy_match(const struct xfrm_policy *pol, const struct flowi *fl, u8 type, u16 family, u32 if_id) xfrm_policy_match() argument 2098 struct xfrm_policy *pol; __xfrm_policy_eval_candidates() local 2162 struct xfrm_policy *pol, *ret; xfrm_policy_lookup_bytype() local 2227 struct xfrm_policy *pol; xfrm_policy_lookup() local 2242 struct xfrm_policy *pol; xfrm_sk_policy_lookup() local 2281 __xfrm_policy_link(struct xfrm_policy *pol, int dir) __xfrm_policy_link() argument 2290 __xfrm_policy_unlink(struct xfrm_policy *pol, int dir) __xfrm_policy_unlink() argument 2311 xfrm_sk_policy_link(struct xfrm_policy *pol, int dir) xfrm_sk_policy_link() argument 2316 xfrm_sk_policy_unlink(struct xfrm_policy *pol, int dir) xfrm_sk_policy_unlink() argument 2321 xfrm_policy_delete(struct xfrm_policy *pol, int dir) xfrm_policy_delete() argument 2337 xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol) xfrm_sk_policy_insert() argument 2844 struct xfrm_policy *pol = from_timer(pol, t, polq.hold_timer); xfrm_policy_queue_process() local 2931 struct xfrm_policy *pol = xdst->pols[0]; xdst_queue_output() local 3600 struct xfrm_policy *pol; __xfrm_policy_check() local 4364 struct xfrm_policy *pol, *ret = NULL; xfrm_migrate_policy_find() local 4429 xfrm_policy_migrate(struct xfrm_policy *pol, struct xfrm_migrate *m, int num_migrate, struct netlink_ext_ack *extack) xfrm_policy_migrate() argument 4514 struct xfrm_policy *pol = NULL; xfrm_migrate() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_police.c | 19 struct lan966x_tc_policer *pol, in lan966x_police_add() 25 pol->rate = DIV_ROUND_UP(pol->rate * 3, 100); in lan966x_police_add() 27 pol->burst = pol->burst ?: 1; in lan966x_police_add() 29 pol->burst = DIV_ROUND_UP(pol->burst, 4096); in lan966x_police_add() 31 if (pol->rate > GENMASK(15, 0) || in lan966x_police_add() 32 pol->burst > GENMASK(6, 0)) in lan966x_police_add() 45 lan_wr(ANA_POL_PIR_CFG_PIR_RATE_SET(pol in lan966x_police_add() 18 lan966x_police_add(struct lan966x_port *port, struct lan966x_tc_policer *pol, u16 pol_idx) lan966x_police_add() argument 141 struct lan966x_tc_policer pol; lan966x_police_port_add() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_police.c | 11 struct sparx5_policer *pol) in sparx5_policer_service_conf_set() 17 g = &sdlb_groups[pol->group]; in sparx5_policer_service_conf_set() 18 idx = pol->idx; in sparx5_policer_service_conf_set() 20 rate = pol->rate * 1000; in sparx5_policer_service_conf_set() 21 burst = pol->burst; in sparx5_policer_service_conf_set() 42 int sparx5_policer_conf_set(struct sparx5 *sparx5, struct sparx5_policer *pol) in sparx5_policer_conf_set() argument 45 switch (pol->type) { in sparx5_policer_conf_set() 47 return sparx5_policer_service_conf_set(sparx5, pol); in sparx5_policer_conf_set() 10 sparx5_policer_service_conf_set(struct sparx5 *sparx5, struct sparx5_policer *pol) sparx5_policer_service_conf_set() argument
|
H A D | sparx5_psfp.c | 193 if (!fm->pol.rate && !fm->pol.burst) in sparx5_sdlb_conf_set() 198 sparx5_policer_conf_set(sparx5, &fm->pol); in sparx5_sdlb_conf_set() 200 return sparx5_sdlb_group_action(sparx5, fm->pol.group, fm->pol.idx); in sparx5_sdlb_conf_set() 269 struct sparx5_policer *pol = &fm->pol; in sparx5_psfp_fm_add() local 273 ret = sparx5_psfp_fm_get(uidx, &fm->pol.idx); in sparx5_psfp_fm_add() 280 ret = sparx5_sdlb_group_get_by_rate(sparx5, pol->rate, pol in sparx5_psfp_fm_add() [all...] |
/kernel/linux/linux-6.6/block/ |
H A D | blk-cgroup.c | 114 const struct blkcg_policy *pol) in blkcg_policy_enabled() 116 return pol && test_bit(pol->plid, q->blkcg_pols); in blkcg_policy_enabled() 339 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_alloc() local 342 if (!blkcg_policy_enabled(disk->queue, pol)) in blkg_alloc() 346 pd = pol->pd_alloc_fn(disk, blkcg, gfp_mask); in blkg_alloc() 417 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_create() local 419 if (blkg->pd[i] && pol->pd_init_fn) in blkg_create() 420 pol->pd_init_fn(blkg->pd[i]); in blkg_create() 431 struct blkcg_policy *pol in blkg_create() local 113 blkcg_policy_enabled(struct request_queue *q, const struct blkcg_policy *pol) blkcg_policy_enabled() argument 546 struct blkcg_policy *pol = blkcg_policy[i]; blkg_destroy() local 612 struct blkcg_policy *pol = blkcg_policy[i]; blkg_destroy_all() local 651 struct blkcg_policy *pol = blkcg_policy[i]; blkcg_reset_stats() local 688 blkcg_print_blkgs(struct seq_file *sf, struct blkcg *blkcg, u64 (*prfill)(struct seq_file *, struct blkg_policy_data *, int), const struct blkcg_policy *pol, int data, bool show_total) blkcg_print_blkgs() argument 1146 struct blkcg_policy *pol = blkcg_policy[i]; blkcg_print_one_stat() local 1352 struct blkcg_policy *pol = blkcg_policy[i]; blkcg_css_alloc() local 1512 blkcg_activate_policy(struct gendisk *disk, const struct blkcg_policy *pol) blkcg_activate_policy() argument 1626 blkcg_deactivate_policy(struct gendisk *disk, const struct blkcg_policy *pol) blkcg_deactivate_policy() argument 1664 blkcg_free_all_cpd(struct blkcg_policy *pol) blkcg_free_all_cpd() argument 1683 blkcg_policy_register(struct blkcg_policy *pol) blkcg_policy_register() argument 1755 blkcg_policy_unregister(struct blkcg_policy *pol) blkcg_policy_unregister() argument [all...] |
H A D | blk-cgroup.h | 195 int blkcg_policy_register(struct blkcg_policy *pol); 196 void blkcg_policy_unregister(struct blkcg_policy *pol); 197 int blkcg_activate_policy(struct gendisk *disk, const struct blkcg_policy *pol); 199 const struct blkcg_policy *pol); 205 const struct blkcg_policy *pol, int data, 218 int blkg_conf_prep(struct blkcg *blkcg, const struct blkcg_policy *pol, 269 * @pol: policy of interest 271 * Return pointer to private data associated with the @blkg-@pol pair. 274 struct blkcg_policy *pol) in blkg_to_pd() 276 return blkg ? blkg->pd[pol in blkg_to_pd() 273 blkg_to_pd(struct blkcg_gq *blkg, struct blkcg_policy *pol) blkg_to_pd() argument 279 blkcg_to_cpd(struct blkcg *blkcg, struct blkcg_policy *pol) blkcg_to_cpd() argument 486 blkcg_policy_register(struct blkcg_policy *pol) blkcg_policy_register() argument 487 blkcg_policy_unregister(struct blkcg_policy *pol) blkcg_policy_unregister() argument 488 blkcg_activate_policy(struct gendisk *disk, const struct blkcg_policy *pol) blkcg_activate_policy() argument 490 blkcg_deactivate_policy(struct gendisk *disk, const struct blkcg_policy *pol) blkcg_deactivate_policy() argument 493 blkg_to_pd(struct blkcg_gq *blkg, struct blkcg_policy *pol) blkg_to_pd() argument [all...] |
/kernel/linux/linux-5.10/net/xfrm/ |
H A D | xfrm_policy.c | 169 static void __xfrm_policy_link(struct xfrm_policy *pol, int dir); 170 static struct xfrm_policy *__xfrm_policy_unlink(struct xfrm_policy *pol, 526 struct xfrm_policy *pol; in xfrm_dst_hash_transfer() local 532 hlist_for_each_entry_safe(pol, tmp, list, bydst) { in xfrm_dst_hash_transfer() 535 __get_hash_thresh(net, pol->family, dir, &dbits, &sbits); in xfrm_dst_hash_transfer() 536 h = __addr_hash(&pol->selector.daddr, &pol->selector.saddr, in xfrm_dst_hash_transfer() 537 pol->family, nhashmask, dbits, sbits); in xfrm_dst_hash_transfer() 539 hlist_del_rcu(&pol->bydst); in xfrm_dst_hash_transfer() 540 hlist_add_head_rcu(&pol in xfrm_dst_hash_transfer() 561 struct xfrm_policy *pol; xfrm_idx_hash_transfer() local 696 xfrm_policy_inexact_alloc_bin(const struct xfrm_policy *pol, u8 dir) xfrm_policy_inexact_alloc_bin() argument 1226 struct xfrm_policy *pol; xfrm_hash_rebuild() local 1445 xfrm_policy_mark_match(const struct xfrm_mark *mark, struct xfrm_policy *pol) xfrm_policy_mark_match() argument 1503 struct xfrm_policy *pol, *delpol = NULL; xfrm_policy_insert_inexact_list() local 1540 struct xfrm_policy *pol, *newpos = NULL, *delpol = NULL; xfrm_policy_insert_list() local 1622 struct xfrm_policy *pol; __xfrm_policy_bysel_ctx() local 1645 struct xfrm_policy *pol, *ret = NULL; xfrm_policy_bysel_ctx() local 1713 struct xfrm_policy *pol, *ret; xfrm_policy_byid() local 1753 struct xfrm_policy *pol; xfrm_policy_flush_secctx_check() local 1781 struct xfrm_policy *pol; xfrm_policy_flush() local 1819 struct xfrm_policy *pol; xfrm_policy_walk() local 1888 xfrm_policy_match(const struct xfrm_policy *pol, const struct flowi *fl, u8 type, u16 family, int dir, u32 if_id) xfrm_policy_match() argument 2019 struct xfrm_policy *pol; __xfrm_policy_eval_candidates() local 2084 struct xfrm_policy *pol, *ret; xfrm_policy_lookup_bytype() local 2146 struct xfrm_policy *pol; xfrm_policy_lookup() local 2161 struct xfrm_policy *pol; xfrm_sk_policy_lookup() local 2201 __xfrm_policy_link(struct xfrm_policy *pol, int dir) __xfrm_policy_link() argument 2210 __xfrm_policy_unlink(struct xfrm_policy *pol, int dir) __xfrm_policy_unlink() argument 2231 xfrm_sk_policy_link(struct xfrm_policy *pol, int dir) xfrm_sk_policy_link() argument 2236 xfrm_sk_policy_unlink(struct xfrm_policy *pol, int dir) xfrm_sk_policy_unlink() argument 2241 xfrm_policy_delete(struct xfrm_policy *pol, int dir) xfrm_policy_delete() argument 2256 xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol) xfrm_sk_policy_insert() argument 2761 struct xfrm_policy *pol = from_timer(pol, t, polq.hold_timer); xfrm_policy_queue_process() local 2848 struct xfrm_policy *pol = xdst->pols[0]; xdst_queue_output() local 3557 struct xfrm_policy *pol; __xfrm_policy_check() local 4316 struct xfrm_policy *pol, *ret = NULL; xfrm_migrate_policy_find() local 4381 xfrm_policy_migrate(struct xfrm_policy *pol, struct xfrm_migrate *m, int num_migrate) xfrm_policy_migrate() argument 4456 struct xfrm_policy *pol = NULL; xfrm_migrate() local [all...] |
/kernel/linux/linux-5.10/drivers/cpufreq/ |
H A D | powernow-k8.c | 923 struct cpufreq_policy *pol; member 930 struct cpufreq_policy *pol = pta->pol; in powernowk8_target_fn() local 932 struct powernow_k8_data *data = per_cpu(powernow_data, pol->cpu); in powernowk8_target_fn() 949 pol->cpu, data->powernow_table[newstate].frequency, pol->min, in powernowk8_target_fn() 950 pol->max); in powernowk8_target_fn() 969 ret = transition_frequency_fidvid(data, newstate, pol); in powernowk8_target_fn() 978 pol->cur = find_khz_freq_from_fid(data->currfid); in powernowk8_target_fn() 984 static int powernowk8_target(struct cpufreq_policy *pol, unsigne argument 1022 powernowk8_cpu_init(struct cpufreq_policy *pol) powernowk8_cpu_init() argument 1092 powernowk8_cpu_exit(struct cpufreq_policy *pol) powernowk8_cpu_exit() argument [all...] |
/kernel/linux/linux-6.6/drivers/cpufreq/ |
H A D | powernow-k8.c | 923 struct cpufreq_policy *pol; member 930 struct cpufreq_policy *pol = pta->pol; in powernowk8_target_fn() local 932 struct powernow_k8_data *data = per_cpu(powernow_data, pol->cpu); in powernowk8_target_fn() 949 pol->cpu, data->powernow_table[newstate].frequency, pol->min, in powernowk8_target_fn() 950 pol->max); in powernowk8_target_fn() 969 ret = transition_frequency_fidvid(data, newstate, pol); in powernowk8_target_fn() 978 pol->cur = find_khz_freq_from_fid(data->currfid); in powernowk8_target_fn() 984 static int powernowk8_target(struct cpufreq_policy *pol, unsigne argument 1022 powernowk8_cpu_init(struct cpufreq_policy *pol) powernowk8_cpu_init() argument 1092 powernowk8_cpu_exit(struct cpufreq_policy *pol) powernowk8_cpu_exit() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/sunxi/sun4i-csi/ |
H A D | sun4i_csi.h | 25 #define CSI_CFG_VREF_POL(pol) ((pol) << 2) 26 #define CSI_CFG_HREF_POL(pol) ((pol) << 1) 27 #define CSI_CFG_PCLK_POL(pol) ((pol) << 0)
|
/kernel/linux/linux-6.6/drivers/media/platform/sunxi/sun4i-csi/ |
H A D | sun4i_csi.h | 25 #define CSI_CFG_VREF_POL(pol) ((pol) << 2) 26 #define CSI_CFG_HREF_POL(pol) ((pol) << 1) 27 #define CSI_CFG_PCLK_POL(pol) ((pol) << 0)
|
/kernel/linux/linux-6.6/drivers/gpu/drm/omapdrm/dss/ |
H A D | hdmi_phy.c | 37 u8 lane, pol; in hdmi_phy_parse_lanes() local 52 pol = 1; in hdmi_phy_parse_lanes() 56 pol = 0; in hdmi_phy_parse_lanes() 62 phy->lane_polarity[lane] = pol; in hdmi_phy_parse_lanes()
|
/kernel/linux/linux-5.10/net/key/ |
H A D | af_key.c | 1947 parse_ipsecrequest(struct xfrm_policy *xp, struct sadb_x_policy *pol, in parse_ipsecrequest() argument 1968 pol->sadb_x_policy_dir == IPSEC_DIR_OUTBOUND) in parse_ipsecrequest() 1999 parse_ipsecrequests(struct xfrm_policy *xp, struct sadb_x_policy *pol) in parse_ipsecrequests() argument 2002 int len = pol->sadb_x_policy_len*8 - sizeof(struct sadb_x_policy); in parse_ipsecrequests() 2003 struct sadb_x_ipsecrequest *rq = (void*)(pol+1); in parse_ipsecrequests() 2005 if (pol->sadb_x_policy_len * 8 < sizeof(struct sadb_x_policy)) in parse_ipsecrequests() 2013 if ((err = parse_ipsecrequest(xp, pol, rq)) < 0) in parse_ipsecrequests() 2074 struct sadb_x_policy *pol; in pfkey_xfrm_policy2msg() local 2145 pol = skb_put(skb, sizeof(struct sadb_x_policy)); in pfkey_xfrm_policy2msg() 2146 pol in pfkey_xfrm_policy2msg() 2256 struct sadb_x_policy *pol; pfkey_spdadd() local 2370 struct sadb_x_policy *pol; pfkey_spddelete() local 2558 struct sadb_x_policy *pol; pfkey_migrate() local 2656 struct sadb_x_policy *pol; pfkey_spdget() local 3163 struct sadb_x_policy *pol; pfkey_send_acquire() local 3275 struct sadb_x_policy *pol = (struct sadb_x_policy*)data; pfkey_compile_policy() local 3564 struct sadb_x_policy *pol; pfkey_send_migrate() local [all...] |
/kernel/linux/linux-6.6/net/key/ |
H A D | af_key.c | 1942 parse_ipsecrequest(struct xfrm_policy *xp, struct sadb_x_policy *pol, in parse_ipsecrequest() argument 1963 pol->sadb_x_policy_dir == IPSEC_DIR_OUTBOUND) in parse_ipsecrequest() 1994 parse_ipsecrequests(struct xfrm_policy *xp, struct sadb_x_policy *pol) in parse_ipsecrequests() argument 1997 int len = pol->sadb_x_policy_len*8 - sizeof(struct sadb_x_policy); in parse_ipsecrequests() 1998 struct sadb_x_ipsecrequest *rq = (void*)(pol+1); in parse_ipsecrequests() 2000 if (pol->sadb_x_policy_len * 8 < sizeof(struct sadb_x_policy)) in parse_ipsecrequests() 2008 if ((err = parse_ipsecrequest(xp, pol, rq)) < 0) in parse_ipsecrequests() 2069 struct sadb_x_policy *pol; in pfkey_xfrm_policy2msg() local 2140 pol = skb_put(skb, sizeof(struct sadb_x_policy)); in pfkey_xfrm_policy2msg() 2141 pol in pfkey_xfrm_policy2msg() 2251 struct sadb_x_policy *pol; pfkey_spdadd() local 2365 struct sadb_x_policy *pol; pfkey_spddelete() local 2553 struct sadb_x_policy *pol; pfkey_migrate() local 2651 struct sadb_x_policy *pol; pfkey_spdget() local 3158 struct sadb_x_policy *pol; pfkey_send_acquire() local 3270 struct sadb_x_policy *pol = (struct sadb_x_policy*)data; pfkey_compile_policy() local 3559 struct sadb_x_policy *pol; pfkey_send_migrate() local [all...] |
/kernel/linux/linux-5.10/drivers/irqchip/ |
H A D | irq-tb10x.c | 45 uint32_t im, mod, pol; in tb10x_irq_set_type() local 52 pol = ab_irqctl_readreg(gc, AB_IRQCTL_SRC_POLARITY) | im; in tb10x_irq_set_type() 56 pol ^= im; in tb10x_irq_set_type() 65 pol ^= im; in tb10x_irq_set_type() 80 ab_irqctl_writereg(gc, AB_IRQCTL_SRC_POLARITY, pol); in tb10x_irq_set_type()
|