Searched refs:pol (Results 1 - 25 of 94) sorted by relevance

1234

/linux-master/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_police.c11 struct sparx5_policer *pol)
17 g = &sdlb_groups[pol->group];
18 idx = pol->idx;
20 rate = pol->rate * 1000;
21 burst = pol->burst;
42 int sparx5_policer_conf_set(struct sparx5 *sparx5, struct sparx5_policer *pol) argument
45 switch (pol->type) {
47 return sparx5_policer_service_conf_set(sparx5, pol);
10 sparx5_policer_service_conf_set(struct sparx5 *sparx5, struct sparx5_policer *pol) argument
H A Dsparx5_psfp.c193 if (!fm->pol.rate && !fm->pol.burst)
198 sparx5_policer_conf_set(sparx5, &fm->pol);
200 return sparx5_sdlb_group_action(sparx5, fm->pol.group, fm->pol.idx);
269 struct sparx5_policer *pol = &fm->pol; local
273 ret = sparx5_psfp_fm_get(uidx, &fm->pol.idx);
280 ret = sparx5_sdlb_group_get_by_rate(sparx5, pol->rate, pol
[all...]
/linux-master/security/safesetid/
H A Dsecurityfs.c72 struct setid_ruleset *pol = local
78 hash_for_each_safe(pol->rules, bucket, tmp, rule, next)
80 kfree(pol->policy_str);
81 kfree(pol);
84 static void release_ruleset(struct setid_ruleset *pol){ argument
85 call_rcu(&pol->rcu, __release_ruleset);
88 static void insert_rule(struct setid_ruleset *pol, struct setid_rule *rule) argument
90 if (pol->type == UID)
91 hash_add(pol->rules, &rule->next, __kuid_val(rule->src_id.uid));
92 else if (pol
98 verify_ruleset(struct setid_ruleset *pol) argument
142 struct setid_ruleset *pol; local
267 struct setid_ruleset *pol; local
[all...]
H A Dlsm.c70 struct setid_ruleset *pol; local
74 pol = rcu_dereference(safesetid_setuid_rules);
76 pol = rcu_dereference(safesetid_setgid_rules);
83 if (pol) {
84 pol->type = new_type;
85 result = _setid_policy_lookup(pol, src, dst);
/linux-master/include/linux/
H A Dmempolicy.h64 extern void __mpol_put(struct mempolicy *pol);
65 static inline void mpol_put(struct mempolicy *pol) argument
67 if (pol)
68 __mpol_put(pol);
72 * Does mempolicy pol need explicit unref after use?
75 static inline int mpol_needs_cond_ref(struct mempolicy *pol) argument
77 return (pol && (pol->flags & MPOL_F_SHARED));
80 static inline void mpol_cond_put(struct mempolicy *pol) argument
82 if (mpol_needs_cond_ref(pol))
87 mpol_dup(struct mempolicy *pol) argument
94 mpol_get(struct mempolicy *pol) argument
173 mpol_is_preferred_many(struct mempolicy *pol) argument
194 mpol_put(struct mempolicy *pol) argument
198 mpol_cond_put(struct mempolicy *pol) argument
202 mpol_get(struct mempolicy *pol) argument
295 mpol_is_preferred_many(struct mempolicy *pol) argument
[all...]
H A Dnetlink.h143 #define NL_SET_BAD_ATTR_POLICY(extack, attr, pol) do { \
146 (extack)->policy = (pol); \
152 #define NL_SET_ERR_MSG_ATTR_POL(extack, attr, pol, msg) do { \
161 __extack->policy = (pol); \
165 #define NL_SET_ERR_MSG_ATTR_POL_FMT(extack, attr, pol, fmt, args...) do { \
181 __extack->policy = (pol); \
/linux-master/mm/
H A Dmempolicy.c201 struct mempolicy *pol = p->mempolicy; local
204 if (pol)
205 return pol;
209 pol = &preferred_node_policy[node];
211 if (pol->mode)
212 return pol;
219 int (*create)(struct mempolicy *pol, const nodemask_t *nodes);
220 void (*rebind)(struct mempolicy *pol, const nodemask_t *nodes);
223 static inline int mpol_store_user_nodemask(const struct mempolicy *pol) argument
225 return pol
236 mpol_new_nodemask(struct mempolicy *pol, const nodemask_t *nodes) argument
244 mpol_new_preferred(struct mempolicy *pol, const nodemask_t *nodes) argument
262 mpol_set_nodemask(struct mempolicy *pol, const nodemask_t *nodes, struct nodemask_scratch *nsc) argument
344 __mpol_put(struct mempolicy *pol) argument
351 mpol_rebind_default(struct mempolicy *pol, const nodemask_t *nodes) argument
355 mpol_rebind_nodemask(struct mempolicy *pol, const nodemask_t *nodes) argument
375 mpol_rebind_preferred(struct mempolicy *pol, const nodemask_t *nodes) argument
388 mpol_rebind_policy(struct mempolicy *pol, const nodemask_t *newmask) argument
473 struct mempolicy *pol; member in struct:migration_mpol
788 vma_replace_policy(struct vm_area_struct *vma, struct mempolicy *pol) argument
890 get_policy_nodemask(struct mempolicy *pol, nodemask_t *nodes) argument
932 struct mempolicy *pol = current->mempolicy, *pol_refcount = NULL; local
1213 struct mempolicy *pol = mmpol->pol; local
1820 struct mempolicy *pol; local
1835 struct mempolicy *pol; local
1965 read_once_policy_nodemask(struct mempolicy *pol, nodemask_t *mask) argument
1979 weighted_interleave_nid(struct mempolicy *pol, pgoff_t ilx) argument
2023 interleave_nid(struct mempolicy *pol, pgoff_t ilx) argument
2044 policy_nodemask(gfp_t gfp, struct mempolicy *pol, pgoff_t ilx, int *nid) argument
2220 alloc_pages_mpol(gfp_t gfp, unsigned int order, struct mempolicy *pol, pgoff_t ilx, int nid) argument
2298 struct mempolicy *pol; local
2326 struct mempolicy *pol = &default_policy; local
2346 alloc_pages_bulk_array_interleave(gfp_t gfp, struct mempolicy *pol, unsigned long nr_pages, struct page **page_array) argument
2381 alloc_pages_bulk_array_weighted_interleave(gfp_t gfp, struct mempolicy *pol, unsigned long nr_pages, struct page **page_array) argument
2496 alloc_pages_bulk_array_preferred_many(gfp_t gfp, int nid, struct mempolicy *pol, unsigned long nr_pages, struct page **page_array) argument
2525 struct mempolicy *pol = &default_policy; local
2552 struct mempolicy *pol = mpol_dup(src->vm_policy); local
2696 struct mempolicy *pol = NULL; local
2734 struct mempolicy *pol; local
2819 struct mempolicy *pol; local
2834 sp_node_init(struct sp_node *node, unsigned long start, unsigned long end, struct mempolicy *pol) argument
2842 sp_alloc(unsigned long start, unsigned long end, struct mempolicy *pol) argument
2979 mpol_set_shared_policy(struct shared_policy *sp, struct vm_area_struct *vma, struct mempolicy *pol) argument
3281 mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol) argument
[all...]
/linux-master/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_police.c19 struct lan966x_tc_policer *pol,
25 pol->rate = DIV_ROUND_UP(pol->rate * 3, 100);
27 pol->burst = pol->burst ?: 1;
29 pol->burst = DIV_ROUND_UP(pol->burst, 4096);
31 if (pol->rate > GENMASK(15, 0) ||
32 pol->burst > GENMASK(6, 0))
45 lan_wr(ANA_POL_PIR_CFG_PIR_RATE_SET(pol
18 lan966x_police_add(struct lan966x_port *port, struct lan966x_tc_policer *pol, u16 pol_idx) argument
141 struct lan966x_tc_policer pol; local
[all...]
/linux-master/arch/mips/include/asm/
H A Dtxx9pio.h20 __u32 pol; member in struct:txx9_pio_reg
/linux-master/block/
H A Dblk-cgroup.c114 const struct blkcg_policy *pol)
116 return pol && test_bit(pol->plid, q->blkcg_pols);
339 struct blkcg_policy *pol = blkcg_policy[i]; local
342 if (!blkcg_policy_enabled(disk->queue, pol))
346 pd = pol->pd_alloc_fn(disk, blkcg, gfp_mask);
417 struct blkcg_policy *pol = blkcg_policy[i]; local
419 if (blkg->pd[i] && pol->pd_init_fn)
420 pol->pd_init_fn(blkg->pd[i]);
431 struct blkcg_policy *pol local
113 blkcg_policy_enabled(struct request_queue *q, const struct blkcg_policy *pol) argument
546 struct blkcg_policy *pol = blkcg_policy[i]; local
612 struct blkcg_policy *pol = blkcg_policy[i]; local
651 struct blkcg_policy *pol = blkcg_policy[i]; local
688 blkcg_print_blkgs(struct seq_file *sf, struct blkcg *blkcg, u64 (*prfill)(struct seq_file *, struct blkg_policy_data *, int), const struct blkcg_policy *pol, int data, bool show_total) argument
1146 struct blkcg_policy *pol = blkcg_policy[i]; local
1352 struct blkcg_policy *pol = blkcg_policy[i]; local
1515 blkcg_activate_policy(struct gendisk *disk, const struct blkcg_policy *pol) argument
1629 blkcg_deactivate_policy(struct gendisk *disk, const struct blkcg_policy *pol) argument
1667 blkcg_free_all_cpd(struct blkcg_policy *pol) argument
1686 blkcg_policy_register(struct blkcg_policy *pol) argument
1758 blkcg_policy_unregister(struct blkcg_policy *pol) argument
[all...]
H A Dblk-cgroup.h197 int blkcg_policy_register(struct blkcg_policy *pol);
198 void blkcg_policy_unregister(struct blkcg_policy *pol);
199 int blkcg_activate_policy(struct gendisk *disk, const struct blkcg_policy *pol);
201 const struct blkcg_policy *pol);
207 const struct blkcg_policy *pol, int data,
220 int blkg_conf_prep(struct blkcg *blkcg, const struct blkcg_policy *pol,
271 * @pol: policy of interest
273 * Return pointer to private data associated with the @blkg-@pol pair.
276 struct blkcg_policy *pol)
278 return blkg ? blkg->pd[pol
275 blkg_to_pd(struct blkcg_gq *blkg, struct blkcg_policy *pol) argument
281 blkcg_to_cpd(struct blkcg *blkcg, struct blkcg_policy *pol) argument
489 blkcg_policy_register(struct blkcg_policy *pol) argument
490 blkcg_policy_unregister(struct blkcg_policy *pol) argument
491 blkcg_activate_policy(struct gendisk *disk, const struct blkcg_policy *pol) argument
493 blkcg_deactivate_policy(struct gendisk *disk, const struct blkcg_policy *pol) argument
496 blkg_to_pd(struct blkcg_gq *blkg, struct blkcg_policy *pol) argument
[all...]
H A Dblk-cgroup-rwstat.c92 * @pol: blkcg_policy which contains the blkg_rwstat
96 * Collect the blkg_rwstat specified by @blkg, @pol and @off and all its
100 * If @pol is NULL, blkg_rwstat is at @off bytes into @blkg; otherwise, it
103 void blkg_rwstat_recursive_sum(struct blkcg_gq *blkg, struct blkcg_policy *pol, argument
120 if (pol)
121 rwstat = (void *)blkg_to_pd(pos_blkg, pol) + off;
/linux-master/drivers/media/platform/sunxi/sun4i-csi/
H A Dsun4i_csi.h25 #define CSI_CFG_VREF_POL(pol) ((pol) << 2)
26 #define CSI_CFG_HREF_POL(pol) ((pol) << 1)
27 #define CSI_CFG_PCLK_POL(pol) ((pol) << 0)
/linux-master/net/xfrm/
H A Dxfrm_policy.c185 static void __xfrm_policy_link(struct xfrm_policy *pol, int dir);
186 static struct xfrm_policy *__xfrm_policy_unlink(struct xfrm_policy *pol,
543 struct xfrm_policy *pol; local
549 hlist_for_each_entry_safe(pol, tmp, list, bydst) {
552 __get_hash_thresh(net, pol->family, dir, &dbits, &sbits);
553 h = __addr_hash(&pol->selector.daddr, &pol->selector.saddr,
554 pol->family, nhashmask, dbits, sbits);
555 if (!entry0 || pol->xdo.type == XFRM_DEV_OFFLOAD_PACKET) {
556 hlist_del_rcu(&pol
578 struct xfrm_policy *pol; local
713 xfrm_policy_inexact_alloc_bin(const struct xfrm_policy *pol, u8 dir) argument
1243 struct xfrm_policy *pol; local
1465 xfrm_policy_mark_match(const struct xfrm_mark *mark, struct xfrm_policy *pol) argument
1523 struct xfrm_policy *pol, *delpol = NULL; local
1560 struct xfrm_policy *pol, *newpos = NULL, *delpol = NULL; local
1645 struct xfrm_policy *pol; local
1668 struct xfrm_policy *pol, *ret = NULL; local
1736 struct xfrm_policy *pol, *ret; local
1776 struct xfrm_policy *pol; local
1798 struct xfrm_policy *pol; local
1833 struct xfrm_policy *pol; local
1874 struct xfrm_policy *pol; local
1915 struct xfrm_policy *pol; local
1984 xfrm_policy_match(const struct xfrm_policy *pol, const struct flowi *fl, u8 type, u16 family, u32 if_id) argument
2114 struct xfrm_policy *pol; local
2178 struct xfrm_policy *pol, *ret; local
2243 struct xfrm_policy *pol; local
2258 struct xfrm_policy *pol; local
2297 __xfrm_policy_link(struct xfrm_policy *pol, int dir) argument
2306 __xfrm_policy_unlink(struct xfrm_policy *pol, int dir) argument
2327 xfrm_sk_policy_link(struct xfrm_policy *pol, int dir) argument
2332 xfrm_sk_policy_unlink(struct xfrm_policy *pol, int dir) argument
2337 xfrm_policy_delete(struct xfrm_policy *pol, int dir) argument
2353 xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol) argument
2860 struct xfrm_policy *pol = from_timer(pol, t, polq.hold_timer); local
2947 struct xfrm_policy *pol = xdst->pols[0]; local
3586 struct xfrm_policy *pol = NULL; local
3635 struct xfrm_policy *pol; local
4452 struct xfrm_policy *pol, *ret = NULL; local
4517 xfrm_policy_migrate(struct xfrm_policy *pol, struct xfrm_migrate *m, int num_migrate, struct netlink_ext_ack *extack) argument
4602 struct xfrm_policy *pol = NULL; local
[all...]
/linux-master/include/linux/platform_data/media/
H A Domap4iss.h17 * @pol: polarity of the lane
21 u8 pol; member in struct:iss_csiphy_lane
/linux-master/drivers/cpufreq/
H A Dpowernow-k8.c923 struct cpufreq_policy *pol; member in struct:powernowk8_target_arg
930 struct cpufreq_policy *pol = pta->pol; local
932 struct powernow_k8_data *data = per_cpu(powernow_data, pol->cpu);
949 pol->cpu, data->powernow_table[newstate].frequency, pol->min,
950 pol->max);
969 ret = transition_frequency_fidvid(data, newstate, pol);
978 pol->cur = find_khz_freq_from_fid(data->currfid);
984 static int powernowk8_target(struct cpufreq_policy *pol, unsigne argument
1022 powernowk8_cpu_init(struct cpufreq_policy *pol) argument
1092 powernowk8_cpu_exit(struct cpufreq_policy *pol) argument
[all...]
/linux-master/include/uapi/linux/netfilter/
H A Dxt_policy.h68 struct xt_policy_elem pol[XT_POLICY_MAX_ELEM]; member in struct:xt_policy_info
/linux-master/drivers/gpu/drm/omapdrm/dss/
H A Dhdmi_phy.c37 u8 lane, pol; local
52 pol = 1;
56 pol = 0;
62 phy->lane_polarity[lane] = pol;
/linux-master/drivers/media/platform/ti/omap3isp/
H A Domap3isp.h66 * @pol: polarity of the lane
70 u8 pol; member in struct:isp_csiphy_lane
/linux-master/drivers/video/fbdev/omap2/omapfb/dss/
H A Dhdmi_phy.c46 u8 lane, pol; local
61 pol = 1;
65 pol = 0;
71 phy->lane_polarity[lane] = pol;
/linux-master/security/selinux/ss/
H A Davtab.h107 int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol,
112 int avtab_read(struct avtab *a, void *fp, struct policydb *pol);
/linux-master/drivers/gpu/drm/fsl-dcu/
H A Dfsl_dcu_drm_crtc.c88 unsigned int pol = 0; local
97 pol |= DCU_SYN_POL_INV_PXCK;
100 pol |= DCU_SYN_POL_INV_HS_LOW;
103 pol |= DCU_SYN_POL_INV_VS_LOW;
116 regmap_write(fsl_dev->regmap, DCU_SYN_POL, pol);
/linux-master/drivers/irqchip/
H A Dirq-tb10x.c44 uint32_t im, mod, pol; local
51 pol = ab_irqctl_readreg(gc, AB_IRQCTL_SRC_POLARITY) | im;
55 pol ^= im;
65 pol ^= im;
80 ab_irqctl_writereg(gc, AB_IRQCTL_SRC_POLARITY, pol);
/linux-master/net/key/
H A Daf_key.c1942 parse_ipsecrequest(struct xfrm_policy *xp, struct sadb_x_policy *pol, argument
1963 pol->sadb_x_policy_dir == IPSEC_DIR_OUTBOUND)
1994 parse_ipsecrequests(struct xfrm_policy *xp, struct sadb_x_policy *pol) argument
1997 int len = pol->sadb_x_policy_len*8 - sizeof(struct sadb_x_policy);
1998 struct sadb_x_ipsecrequest *rq = (void*)(pol+1);
2000 if (pol->sadb_x_policy_len * 8 < sizeof(struct sadb_x_policy))
2008 if ((err = parse_ipsecrequest(xp, pol, rq)) < 0)
2069 struct sadb_x_policy *pol; local
2140 pol = skb_put(skb, sizeof(struct sadb_x_policy));
2141 pol
2251 struct sadb_x_policy *pol; local
2365 struct sadb_x_policy *pol; local
2553 struct sadb_x_policy *pol; local
2651 struct sadb_x_policy *pol; local
3158 struct sadb_x_policy *pol; local
3270 struct sadb_x_policy *pol = (struct sadb_x_policy*)data; local
3559 struct sadb_x_policy *pol; local
[all...]
/linux-master/drivers/gpio/
H A Dgpio-xlp.c142 int pol, irq_type; local
147 pol = XLP_GPIO_IRQ_POL_HIGH;
151 pol = XLP_GPIO_IRQ_POL_LOW;
155 pol = XLP_GPIO_IRQ_POL_HIGH;
159 pol = XLP_GPIO_IRQ_POL_LOW;
166 xlp_gpio_set_reg(priv->gpio_intr_pol, d->hwirq, pol);

Completed in 240 milliseconds

1234