| /linux/security/safesetid/ |
| A D | securityfs.c | 80 kfree(pol->policy_str); in __release_ruleset() 81 kfree(pol); in __release_ruleset() 90 if (pol->type == UID) in insert_rule() 147 if (!pol) in handle_policy_update() 149 pol->policy_str = NULL; in handle_policy_update() 151 hash_init(pol->rules); in handle_policy_update() 213 pol = rcu_replace_pointer(safesetid_setuid_rules, pol, in handle_policy_update() 218 pol = rcu_replace_pointer(safesetid_setgid_rules, pol, in handle_policy_update() 230 if (pol) in handle_policy_update() 231 release_ruleset(pol); in handle_policy_update() [all …]
|
| A D | lsm.c | 69 struct setid_ruleset *pol; in setid_policy_lookup() local 73 pol = rcu_dereference(safesetid_setuid_rules); in setid_policy_lookup() 75 pol = rcu_dereference(safesetid_setgid_rules); in setid_policy_lookup() 82 if (pol) { in setid_policy_lookup() 83 pol->type = new_type; in setid_policy_lookup() 84 result = _setid_policy_lookup(pol, src, dst); in setid_policy_lookup()
|
| /linux/include/linux/ |
| A D | mempolicy.h | 61 extern void __mpol_put(struct mempolicy *pol); 64 if (pol) in mpol_put() 65 __mpol_put(pol); in mpol_put() 74 return (pol && (pol->flags & MPOL_F_SHARED)); in mpol_needs_cond_ref() 79 if (mpol_needs_cond_ref(pol)) in mpol_cond_put() 80 __mpol_put(pol); in mpol_cond_put() 86 if (pol) in mpol_dup() 87 pol = __mpol_dup(pol); in mpol_dup() 88 return pol; in mpol_dup() 95 if (pol) in mpol_get() [all …]
|
| A D | blk-cgroup.h | 189 int blkcg_policy_register(struct blkcg_policy *pol); 192 const struct blkcg_policy *pol); 194 const struct blkcg_policy *pol); 200 const struct blkcg_policy *pol, int data, 381 struct blkcg_policy *pol) in blkg_to_pd() argument 383 return blkg ? blkg->pd[pol->plid] : NULL; in blkg_to_pd() 387 struct blkcg_policy *pol) in blkcg_to_cpd() argument 389 return blkcg ? blkcg->cpd[pol->plid] : NULL; in blkcg_to_cpd() 645 const struct blkcg_policy *pol) { return 0; } in blkcg_activate_policy() argument 647 const struct blkcg_policy *pol) { } in blkcg_deactivate_policy() argument [all …]
|
| A D | netlink.h | 104 #define NL_SET_BAD_ATTR_POLICY(extack, attr, pol) do { \ argument 107 (extack)->policy = (pol); \ 113 #define NL_SET_ERR_MSG_ATTR_POL(extack, attr, pol, msg) do { \ argument 122 __extack->policy = (pol); \
|
| /linux/mm/ |
| A D | mempolicy.c | 163 if (pol) in get_task_policy() 164 return pol; in get_task_policy() 231 if (!pol || pol->mode == MPOL_LOCAL) in mpol_set_nodemask() 250 ret = mpol_ops[pol->mode].create(pol, &nsc->mask2); in mpol_set_nodemask() 350 if (!pol) in mpol_rebind_policy() 356 mpol_ops[pol->mode].rebind(pol, newmask); in mpol_rebind_policy() 961 if (!pol) in do_get_mempolicy() 1716 if (!pol) in get_vma_policy() 1730 if (pol && (pol->flags & MPOL_F_MOF)) in vma_policy_mof() 1738 if (!pol) in vma_policy_mof() [all …]
|
| /linux/block/ |
| A D | blk-cgroup.c | 65 return pol && test_bit(pol->plid, q->blkcg_pols); in blkcg_policy_enabled() 1108 if (!pol || !pol->cpd_alloc_fn) in blkcg_css_alloc() 1246 if (!pol || !pol->cpd_bind_fn) in blkcg_bind() 1251 pol->cpd_bind_fn(blkcg->cpd[pol->plid]); in blkcg_bind() 1362 pol->pd_init_fn(blkg->pd[pol->plid]); in blkcg_activate_policy() 1385 pol->pd_free_fn(blkg->pd[pol->plid]); in blkcg_activate_policy() 1425 pol->pd_offline_fn(blkg->pd[pol->plid]); in blkcg_deactivate_policy() 1426 pol->pd_free_fn(blkg->pd[pol->plid]); in blkcg_deactivate_policy() 1466 (!pol->pd_alloc_fn ^ !pol->pd_free_fn)) in blkcg_policy_register() 1471 blkcg_policy[pol->plid] = pol; in blkcg_policy_register() [all …]
|
| A D | blk-cgroup-rwstat.c | 103 void blkg_rwstat_recursive_sum(struct blkcg_gq *blkg, struct blkcg_policy *pol, in blkg_rwstat_recursive_sum() argument 120 if (pol) in blkg_rwstat_recursive_sum() 121 rwstat = (void *)blkg_to_pd(pos_blkg, pol) + off; in blkg_rwstat_recursive_sum()
|
| /linux/net/xfrm/ |
| A D | xfrm_policy.c | 1679 if (!pol || tmp->pos < pol->pos) in xfrm_policy_bysel_ctx() 1687 if (pol) { in xfrm_policy_bysel_ctx() 1725 if (pol->type == type && pol->index == id && in xfrm_policy_byid() 1844 error = func(pol, xfrm_policy_id2dir(pol->index), in xfrm_policy_walk() 2122 if (pol) { in xfrm_policy_lookup_bytype() 2176 if ((sk->sk_mark & pol->mark.m) != pol->mark.v || in xfrm_sk_policy_lookup() 2244 pol = __xfrm_policy_unlink(pol, dir); in xfrm_policy_delete() 2260 if (pol && pol->type != XFRM_POLICY_TYPE_MAIN) in xfrm_sk_policy_insert() 2274 if (pol) in xfrm_sk_policy_insert() 3542 if (!pol) in __xfrm_policy_check() [all …]
|
| /linux/drivers/cpufreq/ |
| A D | powernow-k8.c | 923 struct cpufreq_policy *pol; member 930 struct cpufreq_policy *pol = pta->pol; in powernowk8_target_fn() local 949 pol->cpu, data->powernow_table[newstate].frequency, pol->min, in powernowk8_target_fn() 950 pol->max); in powernowk8_target_fn() 986 struct powernowk8_target_arg pta = { .pol = pol, .newstate = index }; in powernowk8_target() 1036 data->cpu = pol->cpu; in powernowk8_cpu_init() 1047 if (pol->cpu != 0) { in powernowk8_cpu_init() 1071 cpumask_copy(pol->cpus, topology_core_cpumask(pol->cpu)); in powernowk8_cpu_init() 1072 data->available_cores = pol->cpus; in powernowk8_cpu_init() 1079 for_each_cpu(cpu, pol->cpus) in powernowk8_cpu_init() [all …]
|
| /linux/drivers/media/platform/sunxi/sun4i-csi/ |
| 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/ |
| A D | af_key.c | 2063 struct sadb_x_policy *pol; in pfkey_xfrm_policy2msg() local 2245 struct sadb_x_policy *pol; in pfkey_spdadd() local 2258 if (!pol->sadb_x_policy_dir || pol->sadb_x_policy_dir >= IPSEC_DIR_MAX) in pfkey_spdadd() 2359 struct sadb_x_policy *pol; in pfkey_spddelete() local 2372 if (!pol->sadb_x_policy_dir || pol->sadb_x_policy_dir >= IPSEC_DIR_MAX) in pfkey_spddelete() 2547 struct sadb_x_policy *pol; in pfkey_migrate() local 2645 struct sadb_x_policy *pol; in pfkey_spdget() local 3140 struct sadb_x_policy *pol; in pfkey_send_acquire() local 3276 (!pol->sadb_x_policy_dir || pol->sadb_x_policy_dir > IPSEC_DIR_OUTBOUND)) in pfkey_compile_policy() 3302 char *p = (char *)pol; in pfkey_compile_policy() [all …]
|
| /linux/drivers/irqchip/ |
| A D | irq-tb10x.c | 45 uint32_t im, mod, pol; in tb10x_irq_set_type() local 52 pol = ab_irqctl_readreg(gc, AB_IRQCTL_SRC_POLARITY) | im; in tb10x_irq_set_type() 56 pol ^= im; in tb10x_irq_set_type() 66 pol ^= im; in tb10x_irq_set_type() 81 ab_irqctl_writereg(gc, AB_IRQCTL_SRC_POLARITY, pol); in tb10x_irq_set_type()
|
| A D | irq-mips-gic.c | 207 unsigned int irq, pol, trig, dual; in gic_set_type() local 215 pol = GIC_POL_FALLING_EDGE; in gic_set_type() 220 pol = GIC_POL_RISING_EDGE; in gic_set_type() 225 pol = 0; /* Doesn't matter */ in gic_set_type() 230 pol = GIC_POL_ACTIVE_LOW; in gic_set_type() 236 pol = GIC_POL_ACTIVE_HIGH; in gic_set_type() 242 change_gic_pol(irq, pol); in gic_set_type()
|
| /linux/drivers/gpu/drm/fsl-dcu/ |
| 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/ |
| 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/ |
| 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/mfd/ |
| 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/ |
| A D | ocelot_police.c | 158 struct ocelot_policer *pol) in ocelot_port_policer_add() argument 163 if (!pol) in ocelot_port_policer_add() 167 pp.pir = pol->rate; in ocelot_port_policer_add() 168 pp.pbs = pol->burst; in ocelot_port_policer_add()
|
| /linux/drivers/staging/media/zoran/ |
| A D | zr36060.c | 481 struct vfe_settings *cap, struct vfe_polarity *pol) in zr36060_set_video() argument 504 reg = (!pol->vsync_pol ? ZR060_VPR_VS_POL : 0) in zr36060_set_video() 505 | (!pol->hsync_pol ? ZR060_VPR_HS_POL : 0) in zr36060_set_video() 506 | (pol->field_pol ? ZR060_VPR_FI_POL : 0) in zr36060_set_video() 507 | (pol->blank_pol ? ZR060_VPR_BL_POL : 0) in zr36060_set_video() 508 | (pol->subimg_pol ? ZR060_VPR_S_IMG_POL : 0) in zr36060_set_video() 509 | (pol->poe_pol ? ZR060_VPR_POE_POL : 0) in zr36060_set_video() 510 | (pol->pvalid_pol ? ZR060_VPR_P_VAL_POL : 0) in zr36060_set_video() 511 | (pol->vclk_pol ? ZR060_VPR_VCLK_POL : 0); in zr36060_set_video()
|
| /linux/drivers/gpio/ |
| A D | gpio-xlp.c | 163 int pol, irq_type; in xlp_gpio_set_irq_type() local 168 pol = XLP_GPIO_IRQ_POL_HIGH; in xlp_gpio_set_irq_type() 172 pol = XLP_GPIO_IRQ_POL_LOW; in xlp_gpio_set_irq_type() 176 pol = XLP_GPIO_IRQ_POL_HIGH; in xlp_gpio_set_irq_type() 180 pol = XLP_GPIO_IRQ_POL_LOW; in xlp_gpio_set_irq_type() 187 xlp_gpio_set_reg(priv->gpio_intr_pol, d->hwirq, pol); in xlp_gpio_set_irq_type()
|
| A D | gpio-grgpio.c | 124 u32 pol; in grgpio_irq_set_type() local 129 pol = 0; in grgpio_irq_set_type() 133 pol = mask; in grgpio_irq_set_type() 137 pol = 0; in grgpio_irq_set_type() 141 pol = mask; in grgpio_irq_set_type() 153 priv->gc.write_reg(priv->regs + GRGPIO_IPOL, ipol | pol); in grgpio_irq_set_type()
|
| /linux/Documentation/devicetree/bindings/hwmon/ |
| A D | adi,ltc2947.yaml | 33 adi,accumulator-ctl-pol: 55 adi,gpio-out-pol: 72 adi,gpio-out-pol. 98 adi,accumulator-ctl-pol = <0 1>;
|
| /linux/drivers/staging/media/omap4iss/ |
| A D | iss_csiphy.c | 36 reg |= (phy->lanes.data[i].pol ? in csiphy_lanes_config() 44 reg |= phy->lanes.clk.pol ? CSI2_COMPLEXIO_CFG_CLOCK_POL : 0; in csiphy_lanes_config() 178 if (lanes->data[i].pol > 1 || in omap4iss_csiphy_config() 189 if (lanes->clk.pol > 1 || in omap4iss_csiphy_config()
|
| /linux/security/selinux/ss/ |
| A D | avtab.c | 400 int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol, in avtab_read_item() argument 407 u32 items, items2, val, vers = pol->policyvers; in avtab_read_item() 503 if (!policydb_type_isvalid(pol, key.source_type) || in avtab_read_item() 504 !policydb_type_isvalid(pol, key.target_type) || in avtab_read_item() 505 !policydb_class_isvalid(pol, key.target_class)) { in avtab_read_item() 555 !policydb_type_isvalid(pol, datum.u.data)) { in avtab_read_item() 568 int avtab_read(struct avtab *a, void *fp, struct policydb *pol) in avtab_read() argument 592 rc = avtab_read_item(a, fp, pol, avtab_insertf, NULL); in avtab_read()
|