Home
last modified time | relevance | path

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

1234

/Linux-v5.15/security/safesetid/
Dsecurityfs.c72 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->type == GID) in insert_rule()
[all …]
Dlsm.c69 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()
/Linux-v5.15/include/linux/
Dmempolicy.h62 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()
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()
81 __mpol_put(pol); in mpol_cond_put()
84 extern struct mempolicy *__mpol_dup(struct mempolicy *pol);
[all …]
Dblk-cgroup.h189 int blkcg_policy_register(struct blkcg_policy *pol);
190 void blkcg_policy_unregister(struct blkcg_policy *pol);
192 const struct blkcg_policy *pol);
194 const struct blkcg_policy *pol);
200 const struct blkcg_policy *pol, int data,
211 int blkg_conf_prep(struct blkcg *blkcg, const struct blkcg_policy *pol,
381 struct blkcg_policy *pol) in blkg_to_pd() argument
383 return blkg ? blkg->pd[pol->plid] : NULL; in blkg_to_pd()
387 struct blkcg_policy *pol) in blkcg_to_cpd() argument
389 return blkcg ? blkcg->cpd[pol->plid] : NULL; in blkcg_to_cpd()
[all …]
Dnetlink.h104 #define NL_SET_BAD_ATTR_POLICY(extack, attr, pol) do { \ argument
107 (extack)->policy = (pol); \
113 #define NL_SET_ERR_MSG_ATTR_POL(extack, attr, pol, msg) do { \ argument
122 __extack->policy = (pol); \
/Linux-v5.15/mm/
Dmempolicy.c160 struct mempolicy *pol = p->mempolicy; in get_task_policy() local
163 if (pol) in get_task_policy()
164 return pol; in get_task_policy()
168 pol = &preferred_node_policy[node]; in get_task_policy()
170 if (pol->mode) in get_task_policy()
171 return pol; in get_task_policy()
178 int (*create)(struct mempolicy *pol, const nodemask_t *nodes);
179 void (*rebind)(struct mempolicy *pol, const nodemask_t *nodes);
182 static inline int mpol_store_user_nodemask(const struct mempolicy *pol) in mpol_store_user_nodemask() argument
184 return pol->flags & MPOL_MODE_FLAGS; in mpol_store_user_nodemask()
[all …]
/Linux-v5.15/block/
Dblk-cgroup.c62 const struct blkcg_policy *pol) in blkcg_policy_enabled() argument
64 return pol && test_bit(pol->plid, q->blkcg_pols); in blkcg_policy_enabled()
181 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_alloc() local
184 if (!blkcg_policy_enabled(q, pol)) in blkg_alloc()
188 pd = pol->pd_alloc_fn(gfp_mask, q, blkcg); in blkg_alloc()
276 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_create() local
278 if (blkg->pd[i] && pol->pd_init_fn) in blkg_create()
279 pol->pd_init_fn(blkg->pd[i]); in blkg_create()
290 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_create() local
292 if (blkg->pd[i] && pol->pd_online_fn) in blkg_create()
[all …]
Dblk-cgroup-rwstat.c103 void blkg_rwstat_recursive_sum(struct blkcg_gq *blkg, struct blkcg_policy *pol, in blkg_rwstat_recursive_sum() argument
120 if (pol) in blkg_rwstat_recursive_sum()
121 rwstat = (void *)blkg_to_pd(pos_blkg, pol) + off; in blkg_rwstat_recursive_sum()
/Linux-v5.15/net/xfrm/
Dxfrm_policy.c167 static void __xfrm_policy_link(struct xfrm_policy *pol, int dir);
168 static struct xfrm_policy *__xfrm_policy_unlink(struct xfrm_policy *pol,
524 struct xfrm_policy *pol; in xfrm_dst_hash_transfer() local
530 hlist_for_each_entry_safe(pol, tmp, list, bydst) { in xfrm_dst_hash_transfer()
533 __get_hash_thresh(net, pol->family, dir, &dbits, &sbits); in xfrm_dst_hash_transfer()
534 h = __addr_hash(&pol->selector.daddr, &pol->selector.saddr, in xfrm_dst_hash_transfer()
535 pol->family, nhashmask, dbits, sbits); in xfrm_dst_hash_transfer()
537 hlist_del_rcu(&pol->bydst); in xfrm_dst_hash_transfer()
538 hlist_add_head_rcu(&pol->bydst, ndsttable + h); in xfrm_dst_hash_transfer()
543 hlist_del_rcu(&pol->bydst); in xfrm_dst_hash_transfer()
[all …]
/Linux-v5.15/drivers/media/platform/sunxi/sun4i-csi/
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-v5.15/drivers/cpufreq/
Dpowernow-k8.c923 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, unsigned index) in powernowk8_target() argument
986 struct powernowk8_target_arg pta = { .pol = pol, .newstate = index }; in powernowk8_target()
988 return work_on_cpu(pol->cpu, powernowk8_target_fn, &pta); in powernowk8_target()
[all …]
/Linux-v5.15/net/key/
Daf_key.c1988 parse_ipsecrequests(struct xfrm_policy *xp, struct sadb_x_policy *pol) in parse_ipsecrequests() argument
1991 int len = pol->sadb_x_policy_len*8 - sizeof(struct sadb_x_policy); in parse_ipsecrequests()
1992 struct sadb_x_ipsecrequest *rq = (void*)(pol+1); in parse_ipsecrequests()
1994 if (pol->sadb_x_policy_len * 8 < sizeof(struct sadb_x_policy)) in parse_ipsecrequests()
2063 struct sadb_x_policy *pol; in pfkey_xfrm_policy2msg() local
2134 pol = skb_put(skb, sizeof(struct sadb_x_policy)); in pfkey_xfrm_policy2msg()
2135 pol->sadb_x_policy_len = sizeof(struct sadb_x_policy)/sizeof(uint64_t); in pfkey_xfrm_policy2msg()
2136 pol->sadb_x_policy_exttype = SADB_X_EXT_POLICY; in pfkey_xfrm_policy2msg()
2137 pol->sadb_x_policy_type = IPSEC_POLICY_DISCARD; in pfkey_xfrm_policy2msg()
2140 pol->sadb_x_policy_type = IPSEC_POLICY_IPSEC; in pfkey_xfrm_policy2msg()
[all …]
/Linux-v5.15/drivers/irqchip/
Dirq-tb10x.c45 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()
66 pol ^= im; in tb10x_irq_set_type()
81 ab_irqctl_writereg(gc, AB_IRQCTL_SRC_POLARITY, pol); in tb10x_irq_set_type()
Dirq-mips-gic.c206 unsigned int irq, pol, trig, dual; in gic_set_type() local
214 pol = GIC_POL_FALLING_EDGE; in gic_set_type()
219 pol = GIC_POL_RISING_EDGE; in gic_set_type()
224 pol = 0; /* Doesn't matter */ in gic_set_type()
229 pol = GIC_POL_ACTIVE_LOW; in gic_set_type()
235 pol = GIC_POL_ACTIVE_HIGH; in gic_set_type()
241 change_gic_pol(irq, pol); in gic_set_type()
/Linux-v5.15/drivers/gpu/drm/omapdrm/dss/
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-v5.15/drivers/gpu/drm/fsl-dcu/
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-v5.15/drivers/video/fbdev/omap2/omapfb/dss/
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-v5.15/drivers/mfd/
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-v5.15/drivers/net/ethernet/mscc/
Docelot_police.c158 struct ocelot_policer *pol) in ocelot_port_policer_add() argument
163 if (!pol) in ocelot_port_policer_add()
167 pp.pir = pol->rate; in ocelot_port_policer_add()
168 pp.pbs = pol->burst; in ocelot_port_policer_add()
/Linux-v5.15/drivers/staging/media/zoran/
Dzr36060.c481 struct vfe_settings *cap, struct vfe_polarity *pol) in zr36060_set_video() argument
504 reg = (!pol->vsync_pol ? ZR060_VPR_VS_POL : 0) in zr36060_set_video()
505 | (!pol->hsync_pol ? ZR060_VPR_HS_POL : 0) in zr36060_set_video()
506 | (pol->field_pol ? ZR060_VPR_FI_POL : 0) in zr36060_set_video()
507 | (pol->blank_pol ? ZR060_VPR_BL_POL : 0) in zr36060_set_video()
508 | (pol->subimg_pol ? ZR060_VPR_S_IMG_POL : 0) in zr36060_set_video()
509 | (pol->poe_pol ? ZR060_VPR_POE_POL : 0) in zr36060_set_video()
510 | (pol->pvalid_pol ? ZR060_VPR_P_VAL_POL : 0) in zr36060_set_video()
511 | (pol->vclk_pol ? ZR060_VPR_VCLK_POL : 0); in zr36060_set_video()
/Linux-v5.15/drivers/gpio/
Dgpio-xlp.c163 int pol, irq_type; in xlp_gpio_set_irq_type() local
168 pol = XLP_GPIO_IRQ_POL_HIGH; in xlp_gpio_set_irq_type()
172 pol = XLP_GPIO_IRQ_POL_LOW; in xlp_gpio_set_irq_type()
176 pol = XLP_GPIO_IRQ_POL_HIGH; in xlp_gpio_set_irq_type()
180 pol = XLP_GPIO_IRQ_POL_LOW; in xlp_gpio_set_irq_type()
187 xlp_gpio_set_reg(priv->gpio_intr_pol, d->hwirq, pol); in xlp_gpio_set_irq_type()
Dgpio-grgpio.c124 u32 pol; in grgpio_irq_set_type() local
129 pol = 0; in grgpio_irq_set_type()
133 pol = mask; in grgpio_irq_set_type()
137 pol = 0; in grgpio_irq_set_type()
141 pol = mask; in grgpio_irq_set_type()
153 priv->gc.write_reg(priv->regs + GRGPIO_IPOL, ipol | pol); in grgpio_irq_set_type()
/Linux-v5.15/drivers/staging/media/omap4iss/
Diss_csiphy.c36 reg |= (phy->lanes.data[i].pol ? in csiphy_lanes_config()
44 reg |= phy->lanes.clk.pol ? CSI2_COMPLEXIO_CFG_CLOCK_POL : 0; in csiphy_lanes_config()
178 if (lanes->data[i].pol > 1 || in omap4iss_csiphy_config()
189 if (lanes->clk.pol > 1 || in omap4iss_csiphy_config()
/Linux-v5.15/Documentation/devicetree/bindings/phy/
Dphy-miphy365x.txt36 - st,pcie-tx-pol-inv : Bool property to invert the polarity PCIe Tx (Txn/Txp)
37 - st,sata-tx-pol-inv : Bool property to invert the polarity SATA Tx (Txn/Txp)
59 st,pcie-tx-pol-inv;
/Linux-v5.15/security/selinux/ss/
Davtab.h98 int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol,
103 int avtab_read(struct avtab *a, void *fp, struct policydb *pol);

1234