| /linux/security/safesetid/ |
| H A D | securityfs.c | 72 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 D | lsm.c | 70 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 D | mempolicy.h | 66 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/security/ipe/ |
| H A D | policy_tests.c | 250 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 D | eval.c | 319 struct ipe_policy *pol = NULL; in ipe_evaluate_event() local 328 pol = rcu_dereference(ipe_active_policy); in ipe_evaluate_event() 329 if (!pol) { in ipe_evaluate_event() 335 if (pol->parsed->global_default_action == IPE_ACTION_INVALID) { in ipe_evaluate_event() 339 action = pol->parsed->global_default_action; in ipe_evaluate_event() 345 rules = &pol->parsed->rules[ctx->op]; in ipe_evaluate_event() 367 action = pol->parsed->global_default_action; in ipe_evaluate_event()
|
| /linux/block/ |
| H A D | blk-cgroup.c | 344 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_alloc() local 347 if (!blkcg_policy_enabled(disk->queue, pol)) in blkg_alloc() 351 pd = pol->pd_alloc_fn(disk, blkcg, gfp_mask); in blkg_alloc() 418 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_create() local 420 if (blkg->pd[i] && pol->pd_init_fn) in blkg_create() 421 pol->pd_init_fn(blkg->pd[i]); in blkg_create() 432 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_create() local 435 if (pol->pd_online_fn) in blkg_create() 436 pol->pd_online_fn(blkg->pd[i]); in blkg_create() 538 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_destroy() local [all …]
|
| H A D | blk-cgroup.h | 201 int blkcg_policy_register(struct blkcg_policy *pol); 202 void blkcg_policy_unregister(struct blkcg_policy *pol); 203 int blkcg_activate_policy(struct gendisk *disk, const struct blkcg_policy *pol); 205 const struct blkcg_policy *pol); 211 const struct blkcg_policy *pol, int data, 225 int blkg_conf_prep(struct blkcg *blkcg, const struct blkcg_policy *pol, 287 const struct blkcg_policy *pol) in blkg_to_pd() argument 289 return blkg ? READ_ONCE(blkg->pd[pol->plid]) : NULL; in blkg_to_pd() 293 struct blkcg_policy *pol) in blkcg_to_cpd() argument 295 return blkcg ? blkcg->cpd[pol->plid] : NULL; in blkcg_to_cpd() [all …]
|
| H A D | blk-cgroup-rwstat.c | 96 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/drivers/net/ethernet/microchip/lan966x/ |
| H A D | lan966x_police.c | 19 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/net/xfrm/ |
| H A D | xfrm_policy.c | 190 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->bydst); in xfrm_dst_hash_transfer() 596 hlist_add_head_rcu(&pol->bydst, ndsttable + h); in xfrm_dst_hash_transfer() [all …]
|
| /linux/drivers/media/platform/sunxi/sun4i-csi/ |
| H A D | sun4i_csi.h | 25 #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 D | powernow-k8.c | 925 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/net/key/ |
| H A D | af_key.c | 1960 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->sadb_x_policy_len = sizeof(struct sadb_x_policy)/sizeof(uint64_t); in pfkey_xfrm_policy2msg() [all …]
|
| /linux/drivers/irqchip/ |
| H A D | irq-tb10x.c | 44 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()
|
| H A D | irq-mips-gic.c | 310 unsigned int irq, pol, trig, dual; in gic_set_type() local 318 pol = GIC_POL_FALLING_EDGE; in gic_set_type() 323 pol = GIC_POL_RISING_EDGE; in gic_set_type() 328 pol = 0; /* Doesn't matter */ in gic_set_type() 333 pol = GIC_POL_ACTIVE_LOW; in gic_set_type() 339 pol = GIC_POL_ACTIVE_HIGH; in gic_set_type() 346 change_gic_redir_pol(irq, pol); in gic_set_type() 351 change_gic_pol(irq, pol); in gic_set_type()
|
| /linux/drivers/gpu/drm/omapdrm/dss/ |
| H A D | hdmi_phy.c | 37 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 D | hdmi_phy.c | 46 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 D | gpio-xlp.c | 142 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 D | wm8350-gpio.c | 162 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 D | pcs-mtk-lynxi.c | 131 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 D | ocelot_police.c | 203 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 D | cli.py | 283 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 D | zr36060.c | 484 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 D | avtab.c | 306 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...] |
| /linux/Documentation/devicetree/bindings/phy/ |
| H A D | phy-miphy365x.txt | 36 - 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;
|