Home
last modified time | relevance | path

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

1234

/Linux-v5.4/security/safesetid/
Dsecurityfs.c62 struct setuid_ruleset *pol = in __release_ruleset() local
68 hash_for_each_safe(pol->rules, bucket, tmp, rule, next) in __release_ruleset()
70 kfree(pol->policy_str); in __release_ruleset()
71 kfree(pol); in __release_ruleset()
74 static void release_ruleset(struct setuid_ruleset *pol) in release_ruleset() argument
76 call_rcu(&pol->rcu, __release_ruleset); in release_ruleset()
79 static void insert_rule(struct setuid_ruleset *pol, struct setuid_rule *rule) in insert_rule() argument
81 hash_add(pol->rules, &rule->next, __kuid_val(rule->src_uid)); in insert_rule()
84 static int verify_ruleset(struct setuid_ruleset *pol) in verify_ruleset() argument
90 hash_for_each(pol->rules, bucket, rule, next) { in verify_ruleset()
[all …]
Dlsm.c53 struct setuid_ruleset *pol; in setuid_policy_lookup() local
56 pol = rcu_dereference(safesetid_setuid_rules); in setuid_policy_lookup()
57 if (pol) in setuid_policy_lookup()
58 result = _setuid_policy_lookup(pol, src, dst); in setuid_policy_lookup()
/Linux-v5.4/include/linux/
Dmempolicy.h65 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()
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()
84 __mpol_put(pol); in mpol_cond_put()
87 extern struct mempolicy *__mpol_dup(struct mempolicy *pol);
[all …]
Dblk-cgroup.h198 int blkcg_policy_register(struct blkcg_policy *pol);
199 void blkcg_policy_unregister(struct blkcg_policy *pol);
201 const struct blkcg_policy *pol);
203 const struct blkcg_policy *pol);
216 const struct blkcg_policy *pol, int data,
228 void blkg_rwstat_recursive_sum(struct blkcg_gq *blkg, struct blkcg_policy *pol,
238 int blkg_conf_prep(struct blkcg *blkcg, const struct blkcg_policy *pol,
408 struct blkcg_policy *pol) in blkg_to_pd() argument
410 return blkg ? blkg->pd[pol->plid] : NULL; in blkg_to_pd()
414 struct blkcg_policy *pol) in blkcg_to_cpd() argument
[all …]
/Linux-v5.4/block/
Dblk-cgroup.c61 const struct blkcg_policy *pol) in blkcg_policy_enabled() argument
63 return pol && test_bit(pol->plid, q->blkcg_pols); in blkcg_policy_enabled()
171 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_alloc() local
174 if (!blkcg_policy_enabled(q, pol)) in blkg_alloc()
178 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 …]
/Linux-v5.4/mm/
Dmempolicy.c132 struct mempolicy *pol = p->mempolicy; in get_task_policy() local
135 if (pol) in get_task_policy()
136 return pol; in get_task_policy()
140 pol = &preferred_node_policy[node]; in get_task_policy()
142 if (pol->mode) in get_task_policy()
143 return pol; in get_task_policy()
150 int (*create)(struct mempolicy *pol, const nodemask_t *nodes);
151 void (*rebind)(struct mempolicy *pol, const nodemask_t *nodes);
154 static inline int mpol_store_user_nodemask(const struct mempolicy *pol) in mpol_store_user_nodemask() argument
156 return pol->flags & MPOL_MODE_FLAGS; in mpol_store_user_nodemask()
[all …]
/Linux-v5.4/net/xfrm/
Dxfrm_policy.c165 static void __xfrm_policy_link(struct xfrm_policy *pol, int dir);
166 static struct xfrm_policy *__xfrm_policy_unlink(struct xfrm_policy *pol,
520 struct xfrm_policy *pol; in xfrm_dst_hash_transfer() local
526 hlist_for_each_entry_safe(pol, tmp, list, bydst) { in xfrm_dst_hash_transfer()
529 __get_hash_thresh(net, pol->family, dir, &dbits, &sbits); in xfrm_dst_hash_transfer()
530 h = __addr_hash(&pol->selector.daddr, &pol->selector.saddr, in xfrm_dst_hash_transfer()
531 pol->family, nhashmask, dbits, sbits); in xfrm_dst_hash_transfer()
533 hlist_del_rcu(&pol->bydst); in xfrm_dst_hash_transfer()
534 hlist_add_head_rcu(&pol->bydst, ndsttable + h); in xfrm_dst_hash_transfer()
539 hlist_del_rcu(&pol->bydst); in xfrm_dst_hash_transfer()
[all …]
/Linux-v5.4/drivers/media/platform/sunxi/sun4i-csi/
Dsun4i_csi.h25 #define CSI_CFG_VSYNC_POL(pol) ((pol) << 2) argument
26 #define CSI_CFG_HSYNC_POL(pol) ((pol) << 1) argument
27 #define CSI_CFG_PCLK_POL(pol) ((pol) << 0) argument
/Linux-v5.4/drivers/cpufreq/
Dpowernow-k8.c926 struct cpufreq_policy *pol; member
933 struct cpufreq_policy *pol = pta->pol; in powernowk8_target_fn() local
935 struct powernow_k8_data *data = per_cpu(powernow_data, pol->cpu); in powernowk8_target_fn()
952 pol->cpu, data->powernow_table[newstate].frequency, pol->min, in powernowk8_target_fn()
953 pol->max); in powernowk8_target_fn()
981 pol->cur = find_khz_freq_from_fid(data->currfid); in powernowk8_target_fn()
987 static int powernowk8_target(struct cpufreq_policy *pol, unsigned index) in powernowk8_target() argument
989 struct powernowk8_target_arg pta = { .pol = pol, .newstate = index }; in powernowk8_target()
991 return work_on_cpu(pol->cpu, powernowk8_target_fn, &pta); in powernowk8_target()
1025 static int powernowk8_cpu_init(struct cpufreq_policy *pol) in powernowk8_cpu_init() argument
[all …]
/Linux-v5.4/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()
65 pol ^= im; in tb10x_irq_set_type()
80 ab_irqctl_writereg(gc, AB_IRQCTL_SRC_POLARITY, pol); in tb10x_irq_set_type()
Dirq-mips-gic.c205 unsigned int irq, pol, trig, dual; in gic_set_type() local
213 pol = GIC_POL_FALLING_EDGE; in gic_set_type()
218 pol = GIC_POL_RISING_EDGE; in gic_set_type()
223 pol = 0; /* Doesn't matter */ in gic_set_type()
228 pol = GIC_POL_ACTIVE_LOW; in gic_set_type()
234 pol = GIC_POL_ACTIVE_HIGH; in gic_set_type()
240 change_gic_pol(irq, pol); in gic_set_type()
/Linux-v5.4/net/key/
Daf_key.c1985 parse_ipsecrequests(struct xfrm_policy *xp, struct sadb_x_policy *pol) in parse_ipsecrequests() argument
1988 int len = pol->sadb_x_policy_len*8 - sizeof(struct sadb_x_policy); in parse_ipsecrequests()
1989 struct sadb_x_ipsecrequest *rq = (void*)(pol+1); in parse_ipsecrequests()
1991 if (pol->sadb_x_policy_len * 8 < sizeof(struct sadb_x_policy)) in parse_ipsecrequests()
2060 struct sadb_x_policy *pol; in pfkey_xfrm_policy2msg() local
2131 pol = skb_put(skb, sizeof(struct sadb_x_policy)); in pfkey_xfrm_policy2msg()
2132 pol->sadb_x_policy_len = sizeof(struct sadb_x_policy)/sizeof(uint64_t); in pfkey_xfrm_policy2msg()
2133 pol->sadb_x_policy_exttype = SADB_X_EXT_POLICY; in pfkey_xfrm_policy2msg()
2134 pol->sadb_x_policy_type = IPSEC_POLICY_DISCARD; in pfkey_xfrm_policy2msg()
2137 pol->sadb_x_policy_type = IPSEC_POLICY_IPSEC; in pfkey_xfrm_policy2msg()
[all …]
/Linux-v5.4/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.4/drivers/gpu/drm/fsl-dcu/
Dfsl_dcu_drm_crtc.c86 unsigned int pol = 0; in fsl_dcu_drm_crtc_mode_set_nofb() local
95 pol |= DCU_SYN_POL_INV_PXCK; in fsl_dcu_drm_crtc_mode_set_nofb()
98 pol |= DCU_SYN_POL_INV_HS_LOW; in fsl_dcu_drm_crtc_mode_set_nofb()
101 pol |= DCU_SYN_POL_INV_VS_LOW; in fsl_dcu_drm_crtc_mode_set_nofb()
114 regmap_write(fsl_dev->regmap, DCU_SYN_POL, pol); in fsl_dcu_drm_crtc_mode_set_nofb()
/Linux-v5.4/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.4/drivers/net/ethernet/mscc/
Docelot_tc.c17 struct ocelot_policer pol = { 0 }; in ocelot_setup_tc_cls_matchall() local
56 pol.rate = (u32)div_u64(action->police.rate_bytes_ps, 1000) * 8; in ocelot_setup_tc_cls_matchall()
57 pol.burst = (u32)div_u64(action->police.rate_bytes_ps * in ocelot_setup_tc_cls_matchall()
61 err = ocelot_port_policer_add(port, &pol); in ocelot_setup_tc_cls_matchall()
Docelot_police.c175 struct ocelot_policer *pol) in ocelot_port_policer_add() argument
181 if (!pol) in ocelot_port_policer_add()
185 pp.pir = pol->rate; in ocelot_port_policer_add()
186 pp.pbs = pol->burst; in ocelot_port_policer_add()
/Linux-v5.4/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.4/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.4/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.4/security/selinux/ss/
Davtab.h97 int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol,
102 int avtab_read(struct avtab *a, void *fp, struct policydb *pol);
Davtab.c387 int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol, in avtab_read_item() argument
394 u32 items, items2, val, vers = pol->policyvers; in avtab_read_item()
490 if (!policydb_type_isvalid(pol, key.source_type) || in avtab_read_item()
491 !policydb_type_isvalid(pol, key.target_type) || in avtab_read_item()
492 !policydb_class_isvalid(pol, key.target_class)) { in avtab_read_item()
542 !policydb_type_isvalid(pol, datum.u.data)) { in avtab_read_item()
555 int avtab_read(struct avtab *a, void *fp, struct policydb *pol) in avtab_read() argument
579 rc = avtab_read_item(a, fp, pol, avtab_insertf, NULL); in avtab_read()
/Linux-v5.4/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.4/drivers/media/platform/omap3isp/
Dispcsiphy.c186 if (lanes->data[i].pol > 1 || lanes->data[i].pos > 3) in omap3isp_csiphy_config()
195 if (lanes->clk.pol > 1 || lanes->clk.pos > 3) in omap3isp_csiphy_config()
244 reg |= (lanes->data[i].pol << in omap3isp_csiphy_config()
252 reg |= lanes->clk.pol << ISPCSI2_PHY_CFG_CLOCK_POL_SHIFT; in omap3isp_csiphy_config()

1234