| /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 | 65 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 …]
|
| /linux/mm/ |
| H A D | mempolicy.c | 342 struct mempolicy *pol = p->mempolicy; in get_task_policy() local 345 if (pol) in get_task_policy() 346 return pol; in get_task_policy() 350 pol = &preferred_node_policy[node]; in get_task_policy() 352 if (pol->mode) in get_task_policy() 353 return pol; in get_task_policy() 361 int (*create)(struct mempolicy *pol, const nodemask_t *nodes); 362 void (*rebind)(struct mempolicy *pol, const nodemask_t *nodes); 365 static inline int mpol_store_user_nodemask(const struct mempolicy *pol) in mpol_store_user_nodemask() argument 367 return pol->flags & MPOL_USER_NODEMASK_FLAGS; in mpol_store_user_nodemask() [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 | 333 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_alloc() local 336 if (!blkcg_policy_enabled(disk->queue, pol)) in blkg_alloc() 340 pd = pol->pd_alloc_fn(disk, blkcg, gfp_mask); in blkg_alloc() 411 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_create() local 413 if (blkg->pd[i] && pol->pd_init_fn) in blkg_create() 414 pol->pd_init_fn(blkg->pd[i]); in blkg_create() 425 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_create() local 428 if (pol->pd_online_fn) in blkg_create() 429 pol->pd_online_fn(blkg->pd[i]); in blkg_create() 540 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_destroy() local [all …]
|
| H A D | blk-cgroup-rwstat.c | 97 void blkg_rwstat_recursive_sum(struct blkcg_gq *blkg, struct blkcg_policy *pol, in blkg_rwstat_recursive_sum() argument 114 if (pol) in blkg_rwstat_recursive_sum() 115 rwstat = (void *)blkg_to_pd(pos_blkg, pol) + off; in blkg_rwstat_recursive_sum()
|
| /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, 579 struct xfrm_policy *pol; in xfrm_dst_hash_transfer() local 585 hlist_for_each_entry_safe(pol, tmp, list, bydst) { in xfrm_dst_hash_transfer() 588 __get_hash_thresh(net, pol->family, dir, &dbits, &sbits); in xfrm_dst_hash_transfer() 589 h = __addr_hash(&pol->selector.daddr, &pol->selector.saddr, in xfrm_dst_hash_transfer() 590 pol->family, nhashmask, dbits, sbits); in xfrm_dst_hash_transfer() 591 if (!entry0 || pol->xdo.type == XFRM_DEV_OFFLOAD_PACKET) { in xfrm_dst_hash_transfer() 592 hlist_del_rcu(&pol->bydst); in xfrm_dst_hash_transfer() 593 hlist_add_head_rcu(&pol->bydst, ndsttable + h); in xfrm_dst_hash_transfer() [all …]
|
| /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/drivers/cpufreq/ |
| H A D | powernow-k8.c | 923 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/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/net/key/ |
| H A D | af_key.c | 1943 parse_ipsecrequest(struct xfrm_policy *xp, struct sadb_x_policy *pol, in parse_ipsecrequest() argument 1964 pol->sadb_x_policy_dir == IPSEC_DIR_OUTBOUND) in parse_ipsecrequest() 1995 parse_ipsecrequests(struct xfrm_policy *xp, struct sadb_x_policy *pol) in parse_ipsecrequests() argument 1998 int len = pol->sadb_x_policy_len*8 - sizeof(struct sadb_x_policy); in parse_ipsecrequests() 1999 struct sadb_x_ipsecrequest *rq = (void*)(pol+1); in parse_ipsecrequests() 2001 if (pol->sadb_x_policy_len * 8 < sizeof(struct sadb_x_policy)) in parse_ipsecrequests() 2009 if ((err = parse_ipsecrequest(xp, pol, rq)) < 0) in parse_ipsecrequests() 2070 struct sadb_x_policy *pol; in pfkey_xfrm_policy2msg() local 2141 pol = skb_put(skb, sizeof(struct sadb_x_policy)); in pfkey_xfrm_policy2msg() 2142 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/fsl-dcu/ |
| H A D | fsl_dcu_drm_crtc.c | 88 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/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 | 128 unsigned int pol, default_pol = PHY_POL_NORMAL; in mtk_pcs_config_polarity() local 139 default_pol, &pol); in mtk_pcs_config_polarity() 144 if (pol == PHY_POL_INVERT) in mtk_pcs_config_polarity() 149 default_pol, &pol); in mtk_pcs_config_polarity() 153 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/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 set, vers = pol->policyvers; in avtab_read_item() 407 if (!policydb_type_isvalid(pol, key.source_type) || in avtab_read_item() 408 !policydb_type_isvalid(pol, key.target_type) || in avtab_read_item() 409 !policydb_class_isvalid(pol, key.target_class)) { in avtab_read_item() 464 !policydb_type_isvalid(pol, datum.u.data)) { in avtab_read_item() 477 int avtab_read(struct avtab *a, struct policy_file *fp, struct policydb *pol) in avtab_read() argument 500 rc = avtab_read_item(a, fp, pol, avtab_insertf, NULL, false); in avtab_read()
|
| /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;
|