Home
last modified time | relevance | path

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

12345

/linux/security/safesetid/
A Dsecurityfs.c80 kfree(pol->policy_str); in __release_ruleset()
81 kfree(pol); in __release_ruleset()
90 if (pol->type == UID) in insert_rule()
147 if (!pol) in handle_policy_update()
149 pol->policy_str = NULL; in handle_policy_update()
151 hash_init(pol->rules); in handle_policy_update()
213 pol = rcu_replace_pointer(safesetid_setuid_rules, pol, in handle_policy_update()
218 pol = rcu_replace_pointer(safesetid_setgid_rules, pol, in handle_policy_update()
230 if (pol) in handle_policy_update()
231 release_ruleset(pol); in handle_policy_update()
[all …]
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/include/linux/
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 …]
A Dnetlink.h142 #define NL_SET_BAD_ATTR_POLICY(extack, attr, pol) do { \ argument
145 (extack)->policy = (pol); \
151 #define NL_SET_ERR_MSG_ATTR_POL(extack, attr, pol, msg) do { \ argument
160 __extack->policy = (pol); \
164 #define NL_SET_ERR_MSG_ATTR_POL_FMT(extack, attr, pol, fmt, args...) do { \ argument
180 __extack->policy = (pol); \
/linux/mm/
A Dmempolicy.c204 if (pol) in get_task_policy()
205 return pol; in get_task_policy()
272 if (!pol || pol->mode == MPOL_LOCAL) in mpol_set_nodemask()
291 ret = mpol_ops[pol->mode].create(pol, &nsc->mask2); in mpol_set_nodemask()
390 if (!pol || pol->mode == MPOL_LOCAL) in mpol_rebind_policy()
396 mpol_ops[pol->mode].rebind(pol, newmask); in mpol_rebind_policy()
966 if (!pol) in do_get_mempolicy()
1214 struct mempolicy *pol = mmpol->pol; in alloc_migration_target_by_mpol() local
1824 if (!pol) in get_vma_policy()
1843 if (pol && (pol->flags & MPOL_F_MOF)) in vma_policy_mof()
[all …]
/linux/security/ipe/
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 …]
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/block/
A Dblk-cgroup.c116 return pol && test_bit(pol->plid, q->blkcg_pols); in blkcg_policy_enabled()
614 if (pol) in blkg_destroy_all()
1399 if (!pol || !pol->cpd_alloc_fn) in blkcg_css_alloc()
1554 if (WARN_ON_ONCE(!pol->pd_alloc_fn || !pol->pd_free_fn)) in blkcg_activate_policy()
1684 pol->pd_offline_fn(blkg->pd[pol->plid]); in blkcg_deactivate_policy()
1685 pol->pd_free_fn(blkg->pd[pol->plid]); in blkcg_deactivate_policy()
1705 pol->cpd_free_fn(blkcg->cpd[pol->plid]); in blkcg_free_all_cpd()
1740 if ((!pol->cpd_alloc_fn ^ !pol->cpd_free_fn) || in blkcg_policy_register()
1741 (!pol->pd_alloc_fn ^ !pol->pd_free_fn)) in blkcg_policy_register()
1746 blkcg_policy[pol->plid] = pol; in blkcg_policy_register()
[all …]
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,
278 struct blkcg_policy *pol) in blkg_to_pd() argument
280 return blkg ? blkg->pd[pol->plid] : NULL; in blkg_to_pd()
284 struct blkcg_policy *pol) in blkcg_to_cpd() argument
286 return blkcg ? blkcg->cpd[pol->plid] : NULL; in blkcg_to_cpd()
481 const struct blkcg_policy *pol) { return 0; } in blkcg_activate_policy() argument
483 const struct blkcg_policy *pol) { } in blkcg_deactivate_policy() argument
[all …]
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/drivers/net/ethernet/microchip/lan966x/
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/net/xfrm/
A Dxfrm_policy.c1676 if (!pol || tmp->pos < pol->pos) in xfrm_policy_bysel_ctx()
1684 if (pol) { in xfrm_policy_bysel_ctx()
1722 if (pol->type == type && pol->index == id && in xfrm_policy_byid()
1912 error = func(pol, xfrm_policy_id2dir(pol->index), in xfrm_policy_walk()
2192 if (pol) { in xfrm_policy_lookup_bytype()
2355 pol = __xfrm_policy_unlink(pol, dir); in xfrm_policy_delete()
2371 if (pol && pol->type != XFRM_POLICY_TYPE_MAIN) in xfrm_sk_policy_insert()
2385 if (pol) in xfrm_sk_policy_insert()
3726 if (!pol) in __xfrm_policy_check()
4637 err = IS_ERR(pol) ? PTR_ERR(pol) : -ENOENT; in xfrm_migrate()
[all …]
/linux/drivers/net/ethernet/microchip/sparx5/
A Dsparx5_police.c11 struct sparx5_policer *pol) in sparx5_policer_service_conf_set() argument
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()
A Dsparx5_psfp.c193 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->burst); in sparx5_psfp_fm_add()
284 fm->pol.group = ret; in sparx5_psfp_fm_add()
290 *id = fm->pol.idx; in sparx5_psfp_fm_add()
297 struct sparx5_psfp_fm fm = { .pol.idx = id, in sparx5_psfp_fm_del()
298 .pol.type = SPX5_POL_SERVICE }; in sparx5_psfp_fm_del()
[all …]
/linux/drivers/media/platform/sunxi/sun4i-csi/
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/drivers/cpufreq/
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/net/key/
A Daf_key.c2069 struct sadb_x_policy *pol; in pfkey_xfrm_policy2msg() local
2251 struct sadb_x_policy *pol; in pfkey_spdadd() local
2264 if (!pol->sadb_x_policy_dir || pol->sadb_x_policy_dir >= IPSEC_DIR_MAX) in pfkey_spdadd()
2365 struct sadb_x_policy *pol; in pfkey_spddelete() local
2378 if (!pol->sadb_x_policy_dir || pol->sadb_x_policy_dir >= IPSEC_DIR_MAX) in pfkey_spddelete()
2553 struct sadb_x_policy *pol; in pfkey_migrate() local
2651 struct sadb_x_policy *pol; in pfkey_spdget() local
3158 struct sadb_x_policy *pol; in pfkey_send_acquire() local
3298 (!pol->sadb_x_policy_dir || pol->sadb_x_policy_dir > IPSEC_DIR_OUTBOUND)) in pfkey_compile_policy()
3324 char *p = (char *)pol; in pfkey_compile_policy()
[all …]
/linux/drivers/irqchip/
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/drivers/gpu/drm/omapdrm/dss/
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/drivers/gpu/drm/fsl-dcu/
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/drivers/video/fbdev/omap2/omapfb/dss/
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/Documentation/devicetree/bindings/hwmon/
A Dadi,max31827.yaml41 adi,alarm-pol:
72 adi,alarm-pol:
77 adi,alarm-pol:
115 adi,alarm-pol = <0>;
/linux/drivers/mfd/
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/drivers/gpio/
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/drivers/net/ethernet/mscc/
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()

Completed in 70 milliseconds

12345