Home
last modified time | relevance | path

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

12345

/linux-6.1.9/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-6.1.9/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 …]
Dnetlink.h108 #define NL_SET_BAD_ATTR_POLICY(extack, attr, pol) do { \ argument
111 (extack)->policy = (pol); \
117 #define NL_SET_ERR_MSG_ATTR_POL(extack, attr, pol, msg) do { \ argument
126 __extack->policy = (pol); \
/linux-6.1.9/mm/
Dmempolicy.c163 struct mempolicy *pol = p->mempolicy; in get_task_policy() local
166 if (pol) in get_task_policy()
167 return pol; in get_task_policy()
171 pol = &preferred_node_policy[node]; in get_task_policy()
173 if (pol->mode) in get_task_policy()
174 return pol; in get_task_policy()
181 int (*create)(struct mempolicy *pol, const nodemask_t *nodes);
182 void (*rebind)(struct mempolicy *pol, const nodemask_t *nodes);
185 static inline int mpol_store_user_nodemask(const struct mempolicy *pol) in mpol_store_user_nodemask() argument
187 return pol->flags & MPOL_MODE_FLAGS; in mpol_store_user_nodemask()
[all …]
/linux-6.1.9/block/
Dblk-cgroup.c81 const struct blkcg_policy *pol) in blkcg_policy_enabled() argument
83 return pol && test_bit(pol->plid, q->blkcg_pols); in blkcg_policy_enabled()
244 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_alloc() local
247 if (!blkcg_policy_enabled(disk->queue, pol)) in blkg_alloc()
251 pd = pol->pd_alloc_fn(gfp_mask, disk->queue, blkcg); in blkg_alloc()
313 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_create() local
315 if (blkg->pd[i] && pol->pd_init_fn) in blkg_create()
316 pol->pd_init_fn(blkg->pd[i]); in blkg_create()
327 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_create() local
329 if (blkg->pd[i] && pol->pd_online_fn) in blkg_create()
[all …]
Dblk-cgroup.h185 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,
264 struct blkcg_policy *pol) in blkg_to_pd() argument
266 return blkg ? blkg->pd[pol->plid] : NULL; in blkg_to_pd()
270 struct blkcg_policy *pol) in blkcg_to_cpd() argument
272 return blkcg ? blkcg->cpd[pol->plid] : NULL; in blkcg_to_cpd()
[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-6.1.9/net/xfrm/
Dxfrm_policy.c169 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->bydst, ndsttable + h); in xfrm_dst_hash_transfer()
545 hlist_del_rcu(&pol->bydst); in xfrm_dst_hash_transfer()
[all …]
/linux-6.1.9/drivers/net/ethernet/microchip/lan966x/
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()
144 struct lan966x_tc_policer pol; in lan966x_police_port_add() local
153 memset(&pol, 0, sizeof(pol)); in lan966x_police_port_add()
[all …]
/linux-6.1.9/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-6.1.9/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-6.1.9/net/key/
Daf_key.c1991 parse_ipsecrequests(struct xfrm_policy *xp, struct sadb_x_policy *pol) in parse_ipsecrequests() argument
1994 int len = pol->sadb_x_policy_len*8 - sizeof(struct sadb_x_policy); in parse_ipsecrequests()
1995 struct sadb_x_ipsecrequest *rq = (void*)(pol+1); in parse_ipsecrequests()
1997 if (pol->sadb_x_policy_len * 8 < sizeof(struct sadb_x_policy)) in parse_ipsecrequests()
2066 struct sadb_x_policy *pol; in pfkey_xfrm_policy2msg() local
2137 pol = skb_put(skb, sizeof(struct sadb_x_policy)); in pfkey_xfrm_policy2msg()
2138 pol->sadb_x_policy_len = sizeof(struct sadb_x_policy)/sizeof(uint64_t); in pfkey_xfrm_policy2msg()
2139 pol->sadb_x_policy_exttype = SADB_X_EXT_POLICY; in pfkey_xfrm_policy2msg()
2140 pol->sadb_x_policy_type = IPSEC_POLICY_DISCARD; in pfkey_xfrm_policy2msg()
2143 pol->sadb_x_policy_type = IPSEC_POLICY_IPSEC; in pfkey_xfrm_policy2msg()
[all …]
/linux-6.1.9/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()
/linux-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/drivers/gpio/
Dgpio-xlp.c134 int pol, irq_type; in xlp_gpio_set_irq_type() local
139 pol = XLP_GPIO_IRQ_POL_HIGH; in xlp_gpio_set_irq_type()
143 pol = XLP_GPIO_IRQ_POL_LOW; in xlp_gpio_set_irq_type()
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()
158 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-6.1.9/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-6.1.9/drivers/net/ethernet/mscc/
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()
/linux-6.1.9/Documentation/devicetree/bindings/hwmon/
Dadi,ltc2947.yaml33 adi,accumulator-ctl-pol:
55 adi,gpio-out-pol:
72 adi,gpio-out-pol.
98 adi,accumulator-ctl-pol = <0 1>;
/linux-6.1.9/drivers/media/pci/zoran/
Dzr36060.c484 struct vfe_settings *cap, struct vfe_polarity *pol) in zr36060_set_video() argument
508 reg = (!pol->vsync_pol ? ZR060_VPR_VS_POL : 0) in zr36060_set_video()
509 | (!pol->hsync_pol ? ZR060_VPR_HS_POL : 0) in zr36060_set_video()
510 | (pol->field_pol ? ZR060_VPR_FI_POL : 0) in zr36060_set_video()
511 | (pol->blank_pol ? ZR060_VPR_BL_POL : 0) in zr36060_set_video()
512 | (pol->subimg_pol ? ZR060_VPR_S_IMG_POL : 0) in zr36060_set_video()
513 | (pol->poe_pol ? ZR060_VPR_POE_POL : 0) in zr36060_set_video()
514 | (pol->pvalid_pol ? ZR060_VPR_P_VAL_POL : 0) in zr36060_set_video()
515 | (pol->vclk_pol ? ZR060_VPR_VCLK_POL : 0); in zr36060_set_video()
/linux-6.1.9/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-6.1.9/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;

12345