| /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 | 343 struct mempolicy *pol = p->mempolicy; in get_task_policy() local 346 if (pol) in get_task_policy() 347 return pol; in get_task_policy() 351 pol = &preferred_node_policy[node]; in get_task_policy() 353 if (pol->mode) in get_task_policy() 354 return pol; in get_task_policy() 362 int (*create)(struct mempolicy *pol, const nodemask_t *nodes); 363 void (*rebind)(struct mempolicy *pol, const nodemask_t *nodes); 366 static inline int mpol_store_user_nodemask(const struct mempolicy *pol) in mpol_store_user_nodemask() argument 368 return pol->flags & MPOL_MODE_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/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/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 | 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/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 in pfkey_xfrm_policy2msg() 2252 struct sadb_x_policy *pol; pfkey_spdadd() local 2366 struct sadb_x_policy *pol; pfkey_spddelete() local 2554 struct sadb_x_policy *pol; pfkey_migrate() local 2652 struct sadb_x_policy *pol; pfkey_spdget() local 3159 struct sadb_x_policy *pol; pfkey_send_acquire() local 3271 struct sadb_x_policy *pol = (struct sadb_x_policy*)data; pfkey_compile_policy() local 3560 struct sadb_x_policy *pol; pfkey_send_migrate() local [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/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/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;
|
| /linux/net/xfrm/ |
| H A D | xfrm_state.c | 232 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol); 1301 static void xfrm_state_look_at(struct xfrm_policy *pol, struct xfrm_state *x, in xfrm_state_look_at() argument 1321 !security_xfrm_state_pol_flow_match(x, pol, in xfrm_state_look_at() 1342 security_xfrm_state_pol_flow_match(x, pol, in xfrm_state_look_at() 1351 struct xfrm_policy *pol, int *err, in xfrm_state_find() argument 1356 struct net *net = xp_net(pol); in xfrm_state_find() 1362 u32 mark = pol->mark.v & pol->mark.m; in xfrm_state_find() 1381 hlist_for_each_entry_rcu(x, &pol->state_cache_list, state_cache) { in xfrm_state_find() 1391 xfrm_state_look_at(pol, x, fl, encap_family, in xfrm_state_find() 1398 hlist_for_each_entry_rcu(x, &pol->state_cache_list, state_cache) { in xfrm_state_find() [all …]
|
| /linux/drivers/media/platform/ti/omap3isp/ |
| H A D | ispcsiphy.c | 191 if (lanes->data[i].pol > 1 || lanes->data[i].pos > 3) in omap3isp_csiphy_config() 200 if (lanes->clk.pol > 1 || lanes->clk.pos > 3) in omap3isp_csiphy_config() 249 reg |= (lanes->data[i].pol << in omap3isp_csiphy_config() 257 reg |= lanes->clk.pol << ISPCSI2_PHY_CFG_CLOCK_POL_SHIFT; in omap3isp_csiphy_config()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
| H A D | ipsec_fs.c | 36 struct mlx5e_ipsec_miss pol; member 55 struct mlx5e_ipsec_miss pol; member 524 pol_dest[0].ft = rx->ft.pol; in mlx5_ipsec_rx_status_create() 652 mlx5_ipsec_fs_roce_tx_create(ipsec->mdev, ipsec->roce, ipsec->tx->ft.pol, in ipsec_mpv_work_handler() 702 mlx5_del_flow_rules(rx->pol.rule); in ipsec_rx_policy_destroy() 703 mlx5_destroy_flow_group(rx->pol.group); in ipsec_rx_policy_destroy() 704 mlx5_destroy_flow_table(rx->ft.pol); in ipsec_rx_policy_destroy() 906 &rx->ft.pol); in ipsec_rx_policy_create() 916 rx->ft.pol = ft; in ipsec_rx_policy_create() 918 err = ipsec_miss_create(mdev, rx->ft.pol, &rx->pol, in ipsec_rx_policy_create() [all …]
|