Home
last modified time | relevance | path

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

1234

/linux/security/safesetid/
H A 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 …]
H 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/
H A Dmempolicy.h66 extern void __mpol_put(struct mempolicy *pol);
67 static inline void mpol_put(struct mempolicy *pol) in mpol_put() argument
69 if (pol) in mpol_put()
70 __mpol_put(pol); in mpol_put()
77 static inline int mpol_needs_cond_ref(struct mempolicy *pol) in mpol_needs_cond_ref() argument
79 return (pol && (pol->flags & MPOL_F_SHARED)); in mpol_needs_cond_ref()
82 static inline void mpol_cond_put(struct mempolicy *pol) in mpol_cond_put() argument
84 if (mpol_needs_cond_ref(pol)) in mpol_cond_put()
85 __mpol_put(pol); in mpol_cond_put()
88 extern struct mempolicy *__mpol_dup(struct mempolicy *pol);
[all …]
/linux/mm/
H A Dmempolicy.c367 struct mempolicy *pol = p->mempolicy; in mpol_store_user_nodemask()
370 if (pol)
371 return pol; in mpol_relative_nodemask()
375 pol = &preferred_node_policy[node]; in mpol_relative_nodemask()
377 if (pol->mode) in mpol_relative_nodemask()
378 return pol;
386 int (*create)(struct mempolicy *pol, const nodemask_t *nodes);
387 void (*rebind)(struct mempolicy *pol, const nodemask_t *nodes); in mpol_new_preferred() argument
390 static inline int mpol_store_user_nodemask(const struct mempolicy *pol) in mpol_new_preferred()
392 return pol in mpol_new_preferred()
343 struct mempolicy *pol = p->mempolicy; get_task_policy() local
366 mpol_store_user_nodemask(const struct mempolicy * pol) mpol_store_user_nodemask() argument
379 mpol_new_nodemask(struct mempolicy * pol,const nodemask_t * nodes) mpol_new_nodemask() argument
405 mpol_set_nodemask(struct mempolicy * pol,const nodemask_t * nodes,struct nodemask_scratch * nsc) mpol_set_nodemask() argument
487 __mpol_put(struct mempolicy * pol) __mpol_put() argument
501 mpol_rebind_default(struct mempolicy * pol,const nodemask_t * nodes) mpol_rebind_default() argument
505 mpol_rebind_nodemask(struct mempolicy * pol,const nodemask_t * nodes) mpol_rebind_nodemask() argument
525 mpol_rebind_preferred(struct mempolicy * pol,const nodemask_t * nodes) mpol_rebind_preferred() argument
538 mpol_rebind_policy(struct mempolicy * pol,const nodemask_t * newmask) mpol_rebind_policy() argument
623 struct mempolicy *pol; global() member
1013 vma_replace_policy(struct vm_area_struct * vma,struct mempolicy * pol) vma_replace_policy() argument
1114 get_policy_nodemask(struct mempolicy * pol,nodemask_t * nodes) get_policy_nodemask() argument
1156 struct mempolicy *pol = current->mempolicy, *pol_refcount = NULL; do_get_mempolicy() local
1441 struct mempolicy *pol = mmpol->pol; alloc_migration_target_by_mpol() local
2047 struct mempolicy *pol; get_vma_policy() local
2062 struct mempolicy *pol; vma_policy_mof() local
2183 read_once_policy_nodemask(struct mempolicy * pol,nodemask_t * mask) read_once_policy_nodemask() argument
2197 weighted_interleave_nid(struct mempolicy * pol,pgoff_t ilx) weighted_interleave_nid() argument
2242 interleave_nid(struct mempolicy * pol,pgoff_t ilx) interleave_nid() argument
2263 policy_nodemask(gfp_t gfp,struct mempolicy * pol,pgoff_t ilx,int * nid) policy_nodemask() argument
2442 alloc_pages_mpol(gfp_t gfp,unsigned int order,struct mempolicy * pol,pgoff_t ilx,int nid) alloc_pages_mpol() argument
2503 folio_alloc_mpol_noprof(gfp_t gfp,unsigned int order,struct mempolicy * pol,pgoff_t ilx,int nid) folio_alloc_mpol_noprof() argument
2532 struct mempolicy *pol; vma_alloc_folio_noprof() local
2548 struct mempolicy *pol = &default_policy; alloc_frozen_pages_noprof() local
2592 alloc_pages_bulk_interleave(gfp_t gfp,struct mempolicy * pol,unsigned long nr_pages,struct page ** page_array) alloc_pages_bulk_interleave() argument
2627 alloc_pages_bulk_weighted_interleave(gfp_t gfp,struct mempolicy * pol,unsigned long nr_pages,struct page ** page_array) alloc_pages_bulk_weighted_interleave() argument
2745 alloc_pages_bulk_preferred_many(gfp_t gfp,int nid,struct mempolicy * pol,unsigned long nr_pages,struct page ** page_array) alloc_pages_bulk_preferred_many() argument
2773 struct mempolicy *pol = &default_policy; alloc_pages_bulk_mempolicy_noprof() local
2800 struct mempolicy *pol = mpol_dup(src->vm_policy); vma_dup_policy() local
2944 struct mempolicy *pol = NULL; mpol_shared_policy_lookup() local
2983 struct mempolicy *pol; mpol_misplaced() local
3085 struct mempolicy *pol; mpol_put_task_policy() local
3101 sp_node_init(struct sp_node * node,unsigned long start,unsigned long end,struct mempolicy * pol) sp_node_init() argument
3109 sp_alloc(unsigned long start,unsigned long end,struct mempolicy * pol) sp_alloc() argument
3247 mpol_set_shared_policy(struct shared_policy * sp,struct vm_area_struct * vma,struct mempolicy * pol) mpol_set_shared_policy() argument
3552 mpol_to_str(char * buffer,int maxlen,struct mempolicy * pol) mpol_to_str() argument
[all...]
/linux/security/ipe/
H A Dpolicy_tests.c250 struct ipe_policy *pol; in ipe_parser_unsigned_test() local
252 pol = ipe_new_policy(p->policy, strlen(p->policy), NULL, 0); in ipe_parser_unsigned_test()
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
[all …]
H A Deval.c323 struct ipe_policy *pol = NULL; in ipe_evaluate_event() local
332 pol = rcu_dereference(ipe_active_policy); in ipe_evaluate_event()
333 if (!pol) { in ipe_evaluate_event()
339 if (pol->parsed->global_default_action == IPE_ACTION_INVALID) { in ipe_evaluate_event()
343 action = pol->parsed->global_default_action; in ipe_evaluate_event()
349 rules = &pol->parsed->rules[ctx->op]; in ipe_evaluate_event()
371 action = pol->parsed->global_default_action; in ipe_evaluate_event()
/linux/block/
H A Dblk-cgroup.c355 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_alloc()
358 if (!blkcg_policy_enabled(disk->queue, pol)) in blkg_alloc()
362 pd = pol->pd_alloc_fn(disk, blkcg, gfp_mask); in blkg_alloc()
429 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_create()
431 if (blkg->pd[i] && pol->pd_init_fn) in blkg_create()
432 pol->pd_init_fn(blkg->pd[i]); in blkg_create() local
443 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_create()
446 if (pol->pd_online_fn) in blkg_create()
447 pol->pd_online_fn(blkg->pd[i]); in blkg_create()
549 struct blkcg_policy *pol in blkg_destroy()
344 struct blkcg_policy *pol = blkcg_policy[i]; blkg_alloc() local
418 struct blkcg_policy *pol = blkcg_policy[i]; blkg_create() local
538 struct blkcg_policy *pol = blkcg_policy[i]; blkg_destroy() local
606 struct blkcg_policy *pol = blkcg_policy[i]; blkg_destroy_all() local
671 struct blkcg_policy *pol = blkcg_policy[i]; blkcg_reset_stats() local
711 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) blkcg_print_blkgs() argument
834 blkg_conf_prep(struct blkcg * blkcg,const struct blkcg_policy * pol,struct blkg_conf_ctx * ctx) blkg_conf_prep() argument
1176 struct blkcg_policy *pol = blkcg_policy[i]; blkcg_print_one_stat() local
1400 struct blkcg_policy *pol = blkcg_policy[i]; blkcg_css_alloc() local
1549 blkcg_policy_teardown_pds(struct request_queue * q,const struct blkcg_policy * pol) blkcg_policy_teardown_pds() argument
1586 blkcg_activate_policy(struct gendisk * disk,const struct blkcg_policy * pol) blkcg_activate_policy() argument
1701 blkcg_deactivate_policy(struct gendisk * disk,const struct blkcg_policy * pol) blkcg_deactivate_policy() argument
1725 blkcg_free_all_cpd(struct blkcg_policy * pol) blkcg_free_all_cpd() argument
1744 blkcg_policy_register(struct blkcg_policy * pol) blkcg_policy_register() argument
1824 blkcg_policy_unregister(struct blkcg_policy * pol) blkcg_policy_unregister() argument
[all...]
H A Dblk-cgroup.h199 int blkcg_policy_register(struct blkcg_policy *pol);
200 void blkcg_policy_unregister(struct blkcg_policy *pol);
201 int blkcg_activate_policy(struct gendisk *disk, const struct blkcg_policy *pol);
203 const struct blkcg_policy *pol);
209 const struct blkcg_policy *pol, int data,
223 int blkg_conf_prep(struct blkcg *blkcg, const struct blkcg_policy *pol,
280 * @pol: policy of interest
282 * Return pointer to private data associated with the @blkg-@pol pair.
285 const struct blkcg_policy *pol)
287 return blkg ? READ_ONCE(blkg->pd[pol in blkg_to_pd() argument
293 blkcg_to_cpd(struct blkcg * blkcg,struct blkcg_policy * pol) blkcg_to_cpd() argument
480 blkcg_policy_enabled(struct request_queue * q,const struct blkcg_policy * pol) blkcg_policy_enabled() argument
505 blkcg_policy_register(struct blkcg_policy * pol) blkcg_policy_register() argument
506 blkcg_policy_unregister(struct blkcg_policy * pol) blkcg_policy_unregister() argument
508 blkcg_activate_policy(struct gendisk * disk,const struct blkcg_policy * pol) blkcg_activate_policy() argument
510 blkcg_deactivate_policy(struct gendisk * disk,const struct blkcg_policy * pol) blkcg_deactivate_policy() argument
513 blkg_to_pd(struct blkcg_gq * blkg,const struct blkcg_policy * pol) blkg_to_pd() argument
[all...]
H A Dblk-cgroup-rwstat.c96 void blkg_rwstat_recursive_sum(struct blkcg_gq *blkg, struct blkcg_policy *pol, in blkg_rwstat_recursive_sum() argument
112 if (pol) { in blkg_rwstat_recursive_sum()
113 struct blkg_policy_data *pd = blkg_to_pd(pos_blkg, pol); in blkg_rwstat_recursive_sum()
/linux/net/xfrm/
H A Dxfrm_policy.c190 static void __xfrm_policy_link(struct xfrm_policy *pol, int dir);
191 static struct xfrm_policy *__xfrm_policy_unlink(struct xfrm_policy *pol,
582 struct xfrm_policy *pol; in xfrm_dst_hash_transfer() local
588 hlist_for_each_entry_safe(pol, tmp, list, bydst) { in xfrm_dst_hash_transfer()
591 __get_hash_thresh(net, pol->family, dir, &dbits, &sbits); in xfrm_dst_hash_transfer()
592 h = __addr_hash(&pol->selector.daddr, &pol->selector.saddr, in xfrm_dst_hash_transfer()
593 pol->family, nhashmask, dbits, sbits); in xfrm_dst_hash_transfer()
594 if (!entry0 || pol->xdo.type == XFRM_DEV_OFFLOAD_PACKET) { in xfrm_dst_hash_transfer()
595 hlist_del_rcu(&pol in xfrm_dst_hash_transfer()
617 struct xfrm_policy *pol; xfrm_idx_hash_transfer() local
752 xfrm_policy_inexact_alloc_bin(const struct xfrm_policy * pol,u8 dir) xfrm_policy_inexact_alloc_bin() argument
1280 struct xfrm_policy *pol; xfrm_hash_rebuild() local
1481 xfrm_policy_mark_match(const struct xfrm_mark * mark,struct xfrm_policy * pol) xfrm_policy_mark_match() argument
1539 struct xfrm_policy *pol, *newpos = NULL, *delpol = NULL; xfrm_policy_insert_list() local
1627 struct xfrm_policy *pol; __xfrm_policy_bysel_ctx() local
1650 struct xfrm_policy *pol, *ret = NULL; xfrm_policy_bysel_ctx() local
1718 struct xfrm_policy *pol, *ret; xfrm_policy_byid() local
1758 struct xfrm_policy *pol; xfrm_policy_flush_secctx_check() local
1780 struct xfrm_policy *pol; xfrm_dev_policy_flush_secctx_check() local
1815 struct xfrm_policy *pol; xfrm_policy_flush() local
1855 struct xfrm_policy *pol; xfrm_dev_policy_flush() local
1895 struct xfrm_policy *pol; xfrm_policy_walk() local
1964 xfrm_policy_match(const struct xfrm_policy * pol,const struct flowi * fl,u8 type,u16 family,u32 if_id) xfrm_policy_match() argument
2094 struct xfrm_policy *pol; __xfrm_policy_eval_candidates() local
2158 struct xfrm_policy *pol, *ret; xfrm_policy_lookup_bytype() local
2223 struct xfrm_policy *pol; xfrm_policy_lookup() local
2238 struct xfrm_policy *pol; xfrm_sk_policy_lookup() local
2311 __xfrm_policy_link(struct xfrm_policy * pol,int dir) __xfrm_policy_link() argument
2328 __xfrm_policy_unlink(struct xfrm_policy * pol,int dir) __xfrm_policy_unlink() argument
2348 xfrm_sk_policy_link(struct xfrm_policy * pol,int dir) xfrm_sk_policy_link() argument
2353 xfrm_sk_policy_unlink(struct xfrm_policy * pol,int dir) xfrm_sk_policy_unlink() argument
2358 xfrm_policy_delete(struct xfrm_policy * pol,int dir) xfrm_policy_delete() argument
2373 xfrm_sk_policy_insert(struct sock * sk,int dir,struct xfrm_policy * pol) xfrm_sk_policy_insert() argument
2901 struct xfrm_policy *pol = timer_container_of(pol, t, polq.hold_timer); xfrm_policy_queue_process() local
2988 struct xfrm_policy *pol = xdst->pols[0]; xdst_queue_output() local
3633 struct xfrm_policy *pol = NULL; xfrm_in_fwd_icmp() local
3684 struct xfrm_policy *pol; __xfrm_policy_check() local
4501 struct xfrm_policy *pol; xfrm_migrate_policy_find() local
4572 xfrm_policy_migrate(struct xfrm_policy * pol,struct xfrm_migrate * m,int num_migrate,struct netlink_ext_ack * extack) xfrm_policy_migrate() argument
4673 struct xfrm_policy *pol = NULL; xfrm_migrate() local
[all...]
/linux/drivers/net/ethernet/microchip/lan966x/
H 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/drivers/media/platform/sunxi/sun4i-csi/
H 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/
H A Dpowernow-k8.c925 struct cpufreq_policy *pol; member
932 struct cpufreq_policy *pol = pta->pol; in powernowk8_target_fn() local
934 struct powernow_k8_data *data = per_cpu(powernow_data, pol->cpu); in powernowk8_target_fn()
951 pol->cpu, data->powernow_table[newstate].frequency, pol->min, in powernowk8_target_fn()
952 pol->max); in powernowk8_target_fn()
971 ret = transition_frequency_fidvid(data, newstate, pol); in powernowk8_target_fn()
980 pol->cur = find_khz_freq_from_fid(data->currfid); in powernowk8_target_fn()
986 static int powernowk8_target(struct cpufreq_policy *pol, unsigned index) in powernowk8_target() argument
988 struct powernowk8_target_arg pta = { .pol = pol, .newstate = index }; in powernowk8_target()
990 return work_on_cpu(pol->cpu, powernowk8_target_fn, &pta); in powernowk8_target()
[all …]
/linux/tools/testing/selftests/net/
H A Dnl_nlctrl.py116 pol = ndev.get_policy('dev-get', 'do')
117 ksft_in('ifindex', pol, comment="dev-get do policy should have ifindex")
118 ksft_eq(pol['ifindex'].type, 'u32')
192 pol = ndev.get_policy('dev-get', 'do')
193 ksft_ge(len(pol), 1)
195 for name in pol:
/linux/net/key/
H A Daf_key.c1960 parse_ipsecrequest(struct xfrm_policy *xp, struct sadb_x_policy *pol, in parse_ipsecrequest() argument
1981 pol->sadb_x_policy_dir == IPSEC_DIR_OUTBOUND) in parse_ipsecrequest()
2012 parse_ipsecrequests(struct xfrm_policy *xp, struct sadb_x_policy *pol) in parse_ipsecrequests() argument
2015 int len = pol->sadb_x_policy_len*8 - sizeof(struct sadb_x_policy); in parse_ipsecrequests()
2016 struct sadb_x_ipsecrequest *rq = (void*)(pol+1); in parse_ipsecrequests()
2018 if (pol->sadb_x_policy_len * 8 < sizeof(struct sadb_x_policy)) in parse_ipsecrequests()
2026 if ((err = parse_ipsecrequest(xp, pol, rq)) < 0) in parse_ipsecrequests()
2087 struct sadb_x_policy *pol; in pfkey_xfrm_policy2msg() local
2158 pol = skb_put(skb, sizeof(struct sadb_x_policy)); in pfkey_xfrm_policy2msg()
2159 pol in pfkey_xfrm_policy2msg()
2269 struct sadb_x_policy *pol; pfkey_spdadd() local
2383 struct sadb_x_policy *pol; pfkey_spddelete() local
2571 struct sadb_x_policy *pol; pfkey_migrate() local
2669 struct sadb_x_policy *pol; pfkey_spdget() local
3176 struct sadb_x_policy *pol; pfkey_send_acquire() local
3288 struct sadb_x_policy *pol = (struct sadb_x_policy*)data; pfkey_compile_policy() local
3577 struct sadb_x_policy *pol; pfkey_send_migrate() local
[all...]
/linux/drivers/irqchip/
H A Dirq-tb10x.c44 uint32_t mod, pol, im = data->mask; in tb10x_irq_set_type() local
49 pol = ab_irqctl_readreg(gc, AB_IRQCTL_SRC_POLARITY) | im; in tb10x_irq_set_type()
53 pol ^= im; in tb10x_irq_set_type()
63 pol ^= im; in tb10x_irq_set_type()
76 ab_irqctl_writereg(gc, AB_IRQCTL_SRC_POLARITY, pol); in tb10x_irq_set_type()
/linux/drivers/gpu/drm/omapdrm/dss/
H 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/video/fbdev/omap2/omapfb/dss/
H 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/drivers/gpio/
H 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/mfd/
H 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/net/pcs/
H A Dpcs-mtk-lynxi.c131 unsigned int pol, default_pol = PHY_POL_NORMAL; in mtk_pcs_config_polarity() local
145 default_pol, &pol); in mtk_pcs_config_polarity()
150 if (pol == PHY_POL_INVERT) in mtk_pcs_config_polarity()
155 default_pol, &pol); in mtk_pcs_config_polarity()
159 if (pol == PHY_POL_INVERT) in mtk_pcs_config_polarity()
/linux/drivers/net/ethernet/mscc/
H 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()
/linux/tools/net/ynl/pyynl/
H A Dcli.py283 pol = ynl.get_policy(args.do, 'do')
284 output(pol.to_dict() if pol else None)
287 pol = ynl.get_policy(args.dump, 'dump')
288 output(pol.to_dict() if pol else None)
/linux/drivers/media/pci/zoran/
H A 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/security/selinux/ss/
H A Davtab.c306 int avtab_read_item(struct avtab *a, struct policy_file *fp, struct policydb *pol, in avtab_read_item() argument
319 unsigned int vers = pol->policyvers; in avtab_read_item()
364 if (!policydb_type_isvalid(pol, key.source_type) || in avtab_read_item()
365 !policydb_type_isvalid(pol, key.target_type) || in avtab_read_item()
366 !policydb_class_isvalid(pol, key.target_class)) { in avtab_read_item()
398 !policydb_simpletype_isvalid(pol, datum.u.data)) { in avtab_read_item()
429 if (!policydb_type_isvalid(pol, key.source_type) || in avtab_read_item()
430 !policydb_type_isvalid(pol, key.target_type) || in avtab_read_item()
431 !policydb_class_isvalid(pol, key.target_class)) { in avtab_read_item()
468 pr_warn_once_policyload(pol, in avtab_read_item()
477 avtab_read(struct avtab * a,struct policy_file * fp,struct policydb * pol) avtab_read() argument
[all...]

1234