Home
last modified time | relevance | path

Searched refs:pol (Results 1 – 25 of 120) sorted by relevance

12345

/linux-6.15/security/safesetid/
H A Dsecurityfs.c80 kfree(pol->policy_str); in __release_ruleset()
81 kfree(pol); in __release_ruleset()
90 if (pol->type == UID) in insert_rule()
150 if (!pol) in handle_policy_update()
152 pol->policy_str = NULL; in handle_policy_update()
154 hash_init(pol->rules); in handle_policy_update()
216 pol = rcu_replace_pointer(safesetid_setuid_rules, pol, in handle_policy_update()
221 pol = rcu_replace_pointer(safesetid_setgid_rules, pol, in handle_policy_update()
233 if (pol) in handle_policy_update()
234 release_ruleset(pol); in handle_policy_update()
[all …]
H A Dlsm.c70 struct setid_ruleset *pol; in setid_policy_lookup() local
74 pol = rcu_dereference(safesetid_setuid_rules); in setid_policy_lookup()
76 pol = rcu_dereference(safesetid_setgid_rules); in setid_policy_lookup()
83 if (pol) { in setid_policy_lookup()
84 pol->type = new_type; in setid_policy_lookup()
85 result = _setid_policy_lookup(pol, src, dst); in setid_policy_lookup()
/linux-6.15/include/linux/
H A Dmempolicy.h64 extern void __mpol_put(struct mempolicy *pol);
67 if (pol) in mpol_put()
68 __mpol_put(pol); in mpol_put()
77 return (pol && (pol->flags & MPOL_F_SHARED)); in mpol_needs_cond_ref()
82 if (mpol_needs_cond_ref(pol)) in mpol_cond_put()
83 __mpol_put(pol); in mpol_cond_put()
89 if (pol) in mpol_dup()
90 pol = __mpol_dup(pol); in mpol_dup()
91 return pol; in mpol_dup()
96 if (pol) in mpol_get()
[all …]
H A Dnetlink.h143 #define NL_SET_BAD_ATTR_POLICY(extack, attr, pol) do { \ argument
146 (extack)->policy = (pol); \
152 #define NL_SET_ERR_MSG_ATTR_POL(extack, attr, pol, msg) do { \ argument
161 __extack->policy = (pol); \
165 #define NL_SET_ERR_MSG_ATTR_POL_FMT(extack, attr, pol, fmt, args...) do { \ argument
181 __extack->policy = (pol); \
/linux-6.15/mm/
H A Dmempolicy.c235 if (pol) in get_task_policy()
236 return pol; in get_task_policy()
303 if (!pol || pol->mode == MPOL_LOCAL) in mpol_set_nodemask()
322 ret = mpol_ops[pol->mode].create(pol, &nsc->mask2); in mpol_set_nodemask()
421 if (!pol || pol->mode == MPOL_LOCAL) in mpol_rebind_policy()
427 mpol_ops[pol->mode].rebind(pol, newmask); in mpol_rebind_policy()
997 if (!pol) in do_get_mempolicy()
1249 struct mempolicy *pol = mmpol->pol; in alloc_migration_target_by_mpol() local
1859 if (!pol) in get_vma_policy()
1878 if (pol && (pol->flags & MPOL_F_MOF)) in vma_policy_mof()
[all …]
/linux-6.15/security/ipe/
H A Dpolicy_tests.c250 struct ipe_policy *pol; in ipe_parser_unsigned_test() local
255 KUNIT_EXPECT_EQ(test, PTR_ERR(pol), p->errno); in ipe_parser_unsigned_test()
259 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, pol); in ipe_parser_unsigned_test()
260 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, pol->parsed); in ipe_parser_unsigned_test()
261 KUNIT_EXPECT_STREQ(test, pol->text, p->policy); in ipe_parser_unsigned_test()
262 KUNIT_EXPECT_PTR_EQ(test, NULL, pol->pkcs7); in ipe_parser_unsigned_test()
263 KUNIT_EXPECT_EQ(test, 0, pol->pkcs7len); in ipe_parser_unsigned_test()
265 ipe_free_policy(pol); in ipe_parser_unsigned_test()
278 struct ipe_policy *pol = NULL; in ipe_parser_widestring_test() local
281 KUNIT_EXPECT_TRUE(test, IS_ERR_OR_NULL(pol)); in ipe_parser_widestring_test()
[all …]
H A Deval.c319 struct ipe_policy *pol = NULL; in ipe_evaluate_event() local
328 pol = rcu_dereference(ipe_active_policy); in ipe_evaluate_event()
329 if (!pol) { in ipe_evaluate_event()
335 if (pol->parsed->global_default_action == IPE_ACTION_INVALID) { in ipe_evaluate_event()
339 action = pol->parsed->global_default_action; in ipe_evaluate_event()
345 rules = &pol->parsed->rules[ctx->op]; in ipe_evaluate_event()
367 action = pol->parsed->global_default_action; in ipe_evaluate_event()
/linux-6.15/block/
H A Dblk-cgroup.c116 return pol && test_bit(pol->plid, q->blkcg_pols); in blkcg_policy_enabled()
614 if (pol) in blkg_destroy_all()
1456 if (!pol || !pol->cpd_alloc_fn) in blkcg_css_alloc()
1743 pol->pd_offline_fn(blkg->pd[pol->plid]); in blkcg_deactivate_policy()
1744 pol->pd_free_fn(blkg->pd[pol->plid]); in blkcg_deactivate_policy()
1764 pol->cpd_free_fn(blkcg->cpd[pol->plid]); in blkcg_free_all_cpd()
1786 if ((!pol->cpd_alloc_fn ^ !pol->cpd_free_fn) || in blkcg_policy_register()
1787 (!pol->pd_alloc_fn ^ !pol->pd_free_fn)) in blkcg_policy_register()
1805 blkcg_policy[pol->plid] = pol; in blkcg_policy_register()
1827 if (pol->dfl_cftypes == pol->legacy_cftypes) { in blkcg_policy_register()
[all …]
H A Dblk-cgroup.h199 int blkcg_policy_register(struct blkcg_policy *pol);
200 void blkcg_policy_unregister(struct blkcg_policy *pol);
203 const struct blkcg_policy *pol);
209 const struct blkcg_policy *pol, int data,
282 struct blkcg_policy *pol) in blkg_to_pd() argument
284 return blkg ? blkg->pd[pol->plid] : NULL; in blkg_to_pd()
288 struct blkcg_policy *pol) in blkcg_to_cpd() argument
290 return blkcg ? blkcg->cpd[pol->plid] : NULL; in blkcg_to_cpd()
485 const struct blkcg_policy *pol) { return 0; } in blkcg_activate_policy() argument
487 const struct blkcg_policy *pol) { } in blkcg_deactivate_policy() argument
[all …]
H A Dblk-cgroup-rwstat.c97 void blkg_rwstat_recursive_sum(struct blkcg_gq *blkg, struct blkcg_policy *pol, in blkg_rwstat_recursive_sum() argument
114 if (pol) in blkg_rwstat_recursive_sum()
115 rwstat = (void *)blkg_to_pd(pos_blkg, pol) + off; in blkg_rwstat_recursive_sum()
/linux-6.15/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_police.c19 struct lan966x_tc_policer *pol, in lan966x_police_add() argument
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->rate) | in lan966x_police_add()
46 ANA_POL_PIR_CFG_PIR_BURST_SET(pol->burst), in lan966x_police_add()
141 struct lan966x_tc_policer pol; in lan966x_police_port_add() local
150 memset(&pol, 0, sizeof(pol)); in lan966x_police_port_add()
[all …]
/linux-6.15/net/xfrm/
H A Dxfrm_policy.c1690 if (!pol || tmp->pos < pol->pos) in xfrm_policy_bysel_ctx()
1698 if (pol) { in xfrm_policy_bysel_ctx()
1736 if (pol->type == type && pol->index == id && in xfrm_policy_byid()
1926 error = func(pol, xfrm_policy_id2dir(pol->index), in xfrm_policy_walk()
2206 if (pol) { in xfrm_policy_lookup_bytype()
2369 pol = __xfrm_policy_unlink(pol, dir); in xfrm_policy_delete()
2385 if (pol && pol->type != XFRM_POLICY_TYPE_MAIN) in xfrm_sk_policy_insert()
2399 if (pol) in xfrm_sk_policy_insert()
3747 if (!pol) in __xfrm_policy_check()
4660 err = IS_ERR(pol) ? PTR_ERR(pol) : -ENOENT; in xfrm_migrate()
[all …]
/linux-6.15/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_police.c11 struct sparx5_policer *pol) in sparx5_policer_service_conf_set() argument
18 g = ops->get_sdlb_group(pol->group); in sparx5_policer_service_conf_set()
19 idx = pol->idx; in sparx5_policer_service_conf_set()
21 rate = pol->rate * 1000; in sparx5_policer_service_conf_set()
22 burst = pol->burst; in sparx5_policer_service_conf_set()
43 int sparx5_policer_conf_set(struct sparx5 *sparx5, struct sparx5_policer *pol) in sparx5_policer_conf_set() argument
46 switch (pol->type) { in sparx5_policer_conf_set()
48 return sparx5_policer_service_conf_set(sparx5, pol); in sparx5_policer_conf_set()
H A Dsparx5_psfp.c197 if (!fm->pol.rate && !fm->pol.burst) in sparx5_sdlb_conf_set()
202 sparx5_policer_conf_set(sparx5, &fm->pol); in sparx5_sdlb_conf_set()
204 return sparx5_sdlb_group_action(sparx5, fm->pol.group, fm->pol.idx); in sparx5_sdlb_conf_set()
273 struct sparx5_policer *pol = &fm->pol; in sparx5_psfp_fm_add() local
277 ret = sparx5_psfp_fm_get(sparx5, uidx, &fm->pol.idx); in sparx5_psfp_fm_add()
284 ret = sparx5_sdlb_group_get_by_rate(sparx5, pol->rate, pol->burst); in sparx5_psfp_fm_add()
288 fm->pol.group = ret; in sparx5_psfp_fm_add()
294 *id = fm->pol.idx; in sparx5_psfp_fm_add()
301 struct sparx5_psfp_fm fm = { .pol.idx = id, in sparx5_psfp_fm_del()
302 .pol.type = SPX5_POL_SERVICE }; in sparx5_psfp_fm_del()
[all …]
/linux-6.15/drivers/media/platform/sunxi/sun4i-csi/
H A Dsun4i_csi.h25 #define CSI_CFG_VREF_POL(pol) ((pol) << 2) argument
26 #define CSI_CFG_HREF_POL(pol) ((pol) << 1) argument
27 #define CSI_CFG_PCLK_POL(pol) ((pol) << 0) argument
/linux-6.15/drivers/cpufreq/
H A Dpowernow-k8.c923 struct cpufreq_policy *pol; member
930 struct cpufreq_policy *pol = pta->pol; in powernowk8_target_fn() local
949 pol->cpu, data->powernow_table[newstate].frequency, pol->min, in powernowk8_target_fn()
950 pol->max); in powernowk8_target_fn()
986 struct powernowk8_target_arg pta = { .pol = pol, .newstate = index }; in powernowk8_target()
1036 data->cpu = pol->cpu; in powernowk8_cpu_init()
1047 if (pol->cpu != 0) { in powernowk8_cpu_init()
1057 pol->cpuinfo.transition_latency = ( in powernowk8_cpu_init()
1071 cpumask_copy(pol->cpus, topology_core_cpumask(pol->cpu)); in powernowk8_cpu_init()
1072 data->available_cores = pol->cpus; in powernowk8_cpu_init()
[all …]
/linux-6.15/net/key/
H A Daf_key.c2070 struct sadb_x_policy *pol; in pfkey_xfrm_policy2msg() local
2252 struct sadb_x_policy *pol; in pfkey_spdadd() local
2265 if (!pol->sadb_x_policy_dir || pol->sadb_x_policy_dir >= IPSEC_DIR_MAX) in pfkey_spdadd()
2366 struct sadb_x_policy *pol; in pfkey_spddelete() local
2379 if (!pol->sadb_x_policy_dir || pol->sadb_x_policy_dir >= IPSEC_DIR_MAX) in pfkey_spddelete()
2554 struct sadb_x_policy *pol; in pfkey_migrate() local
2652 struct sadb_x_policy *pol; in pfkey_spdget() local
3159 struct sadb_x_policy *pol; in pfkey_send_acquire() local
3299 (!pol->sadb_x_policy_dir || pol->sadb_x_policy_dir > IPSEC_DIR_OUTBOUND)) in pfkey_compile_policy()
3325 char *p = (char *)pol; in pfkey_compile_policy()
[all …]
/linux-6.15/drivers/irqchip/
H A Dirq-tb10x.c44 uint32_t im, mod, pol; in tb10x_irq_set_type() local
51 pol = ab_irqctl_readreg(gc, AB_IRQCTL_SRC_POLARITY) | im; in tb10x_irq_set_type()
55 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()
/linux-6.15/drivers/gpu/drm/omapdrm/dss/
H A Dhdmi_phy.c37 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()
/linux-6.15/drivers/gpu/drm/fsl-dcu/
H A Dfsl_dcu_drm_crtc.c88 unsigned int pol = 0; in fsl_dcu_drm_crtc_mode_set_nofb() local
97 pol |= DCU_SYN_POL_INV_PXCK; in fsl_dcu_drm_crtc_mode_set_nofb()
100 pol |= DCU_SYN_POL_INV_HS_LOW; in fsl_dcu_drm_crtc_mode_set_nofb()
103 pol |= DCU_SYN_POL_INV_VS_LOW; in fsl_dcu_drm_crtc_mode_set_nofb()
116 regmap_write(fsl_dev->regmap, DCU_SYN_POL, pol); in fsl_dcu_drm_crtc_mode_set_nofb()
/linux-6.15/drivers/video/fbdev/omap2/omapfb/dss/
H A Dhdmi_phy.c46 u8 lane, pol; in hdmi_phy_parse_lanes() local
61 pol = 1; in hdmi_phy_parse_lanes()
65 pol = 0; in hdmi_phy_parse_lanes()
71 phy->lane_polarity[lane] = pol; in hdmi_phy_parse_lanes()
/linux-6.15/Documentation/devicetree/bindings/hwmon/
H A Dadi,max31827.yaml41 adi,alarm-pol:
72 adi,alarm-pol:
77 adi,alarm-pol:
115 adi,alarm-pol = <0>;
/linux-6.15/drivers/mfd/
H A Dwm8350-gpio.c162 static int gpio_set_polarity(struct wm8350 *wm8350, int gpio, int pol) in gpio_set_polarity() argument
164 if (pol == WM8350_GPIO_ACTIVE_HIGH) in gpio_set_polarity()
184 int pol, int pull, int invert, int debounce) in wm8350_gpio_config() argument
206 if (gpio_set_polarity(wm8350, gpio, pol)) in wm8350_gpio_config()
/linux-6.15/drivers/gpio/
H A Dgpio-xlp.c142 int pol, irq_type; in xlp_gpio_set_irq_type() local
147 pol = XLP_GPIO_IRQ_POL_HIGH; in xlp_gpio_set_irq_type()
151 pol = XLP_GPIO_IRQ_POL_LOW; in xlp_gpio_set_irq_type()
155 pol = XLP_GPIO_IRQ_POL_HIGH; in xlp_gpio_set_irq_type()
159 pol = XLP_GPIO_IRQ_POL_LOW; in xlp_gpio_set_irq_type()
166 xlp_gpio_set_reg(priv->gpio_intr_pol, d->hwirq, pol); in xlp_gpio_set_irq_type()
/linux-6.15/drivers/net/ethernet/mscc/
H A Docelot_police.c203 struct ocelot_policer *pol) in ocelot_port_policer_add() argument
208 if (!pol) in ocelot_port_policer_add()
212 pp.pir = pol->rate; in ocelot_port_policer_add()
213 pp.pbs = pol->burst; in ocelot_port_policer_add()

12345