pol 216 arch/ia64/kernel/iosapic.c unsigned long pol, trigger, dmode; pol 230 arch/ia64/kernel/iosapic.c pol = iosapic_intr_info[irq].polarity; pol 240 arch/ia64/kernel/iosapic.c low32 = ((pol << IOSAPIC_POLARITY_SHIFT) | pol 482 arch/ia64/kernel/iosapic.c static int iosapic_find_sharable_irq(unsigned long trigger, unsigned long pol) pol 496 arch/ia64/kernel/iosapic.c if (info->trigger == trigger && info->polarity == pol && pol 689 arch/mips/alchemy/devboards/db1200.c static void db1200_spi_cs_en(struct au1550_spi_info *spi, int cs, int pol) pol 260 arch/mips/alchemy/devboards/db1550.c static void db1550_spi_cs_en(struct au1550_spi_info *spi, int cs, int pol) pol 176 arch/mips/include/asm/mips-gic.h GIC_ACCESSOR_RW_INTR_BIT(0x100, pol) pol 98 arch/mips/include/asm/txx9/tx4939.h struct tx4939_le_reg pol; pol 20 arch/mips/include/asm/txx9pio.h __u32 pol; pol 61 block/blk-cgroup.c const struct blkcg_policy *pol) pol 63 block/blk-cgroup.c return pol && test_bit(pol->plid, q->blkcg_pols); pol 171 block/blk-cgroup.c struct blkcg_policy *pol = blkcg_policy[i]; pol 174 block/blk-cgroup.c if (!blkcg_policy_enabled(q, pol)) pol 178 block/blk-cgroup.c pd = pol->pd_alloc_fn(gfp_mask, q, blkcg); pol 276 block/blk-cgroup.c struct blkcg_policy *pol = blkcg_policy[i]; pol 278 block/blk-cgroup.c if (blkg->pd[i] && pol->pd_init_fn) pol 279 block/blk-cgroup.c pol->pd_init_fn(blkg->pd[i]); pol 290 block/blk-cgroup.c struct blkcg_policy *pol = blkcg_policy[i]; pol 292 block/blk-cgroup.c if (blkg->pd[i] && pol->pd_online_fn) pol 293 block/blk-cgroup.c pol->pd_online_fn(blkg->pd[i]); pol 407 block/blk-cgroup.c struct blkcg_policy *pol = blkcg_policy[i]; pol 409 block/blk-cgroup.c if (blkg->pd[i] && pol->pd_offline_fn) pol 410 block/blk-cgroup.c pol->pd_offline_fn(blkg->pd[i]); pol 482 block/blk-cgroup.c struct blkcg_policy *pol = blkcg_policy[i]; pol 484 block/blk-cgroup.c if (blkg->pd[i] && pol->pd_reset_stats_fn) pol 485 block/blk-cgroup.c pol->pd_reset_stats_fn(blkg->pd[i]); pol 523 block/blk-cgroup.c const struct blkcg_policy *pol, int data, pol 532 block/blk-cgroup.c if (blkcg_policy_enabled(blkg->q, pol)) pol 533 block/blk-cgroup.c total += prfill(sf, blkg->pd[pol->plid], data); pol 715 block/blk-cgroup.c void blkg_rwstat_recursive_sum(struct blkcg_gq *blkg, struct blkcg_policy *pol, pol 731 block/blk-cgroup.c if (pol) pol 732 block/blk-cgroup.c rwstat = (void *)blkg_to_pd(pos_blkg, pol) + off; pol 745 block/blk-cgroup.c const struct blkcg_policy *pol, pol 751 block/blk-cgroup.c if (!blkcg_policy_enabled(q, pol)) pol 806 block/blk-cgroup.c int blkg_conf_prep(struct blkcg *blkcg, const struct blkcg_policy *pol, pol 824 block/blk-cgroup.c blkg = blkg_lookup_check(blkcg, pol, q); pol 861 block/blk-cgroup.c blkg = blkg_lookup_check(pos, pol, q); pol 983 block/blk-cgroup.c struct blkcg_policy *pol = blkcg_policy[i]; pol 986 block/blk-cgroup.c if (!blkg->pd[i] || !pol->pd_stat_fn) pol 989 block/blk-cgroup.c written = pol->pd_stat_fn(blkg->pd[i], buf+off, size-off); pol 1139 block/blk-cgroup.c struct blkcg_policy *pol = blkcg_policy[i]; pol 1148 block/blk-cgroup.c if (!pol || !pol->cpd_alloc_fn) pol 1151 block/blk-cgroup.c cpd = pol->cpd_alloc_fn(GFP_KERNEL); pol 1159 block/blk-cgroup.c if (pol->cpd_init_fn) pol 1160 block/blk-cgroup.c pol->cpd_init_fn(cpd); pol 1307 block/blk-cgroup.c struct blkcg_policy *pol = blkcg_policy[i]; pol 1310 block/blk-cgroup.c if (!pol || !pol->cpd_bind_fn) pol 1314 block/blk-cgroup.c if (blkcg->cpd[pol->plid]) pol 1315 block/blk-cgroup.c pol->cpd_bind_fn(blkcg->cpd[pol->plid]); pol 1365 block/blk-cgroup.c const struct blkcg_policy *pol) pol 1371 block/blk-cgroup.c if (blkcg_policy_enabled(q, pol)) pol 1383 block/blk-cgroup.c if (blkg->pd[pol->plid]) pol 1391 block/blk-cgroup.c pd = pol->pd_alloc_fn(GFP_NOWAIT | __GFP_NOWARN, q, pol 1408 block/blk-cgroup.c pol->pd_free_fn(pd_prealloc); pol 1409 block/blk-cgroup.c pd_prealloc = pol->pd_alloc_fn(GFP_KERNEL, q, pol 1417 block/blk-cgroup.c blkg->pd[pol->plid] = pd; pol 1419 block/blk-cgroup.c pd->plid = pol->plid; pol 1423 block/blk-cgroup.c if (pol->pd_init_fn) pol 1425 block/blk-cgroup.c pol->pd_init_fn(blkg->pd[pol->plid]); pol 1427 block/blk-cgroup.c __set_bit(pol->plid, q->blkcg_pols); pol 1437 block/blk-cgroup.c pol->pd_free_fn(pd_prealloc); pol 1444 block/blk-cgroup.c if (blkg->pd[pol->plid]) { pol 1445 block/blk-cgroup.c pol->pd_free_fn(blkg->pd[pol->plid]); pol 1446 block/blk-cgroup.c blkg->pd[pol->plid] = NULL; pol 1464 block/blk-cgroup.c const struct blkcg_policy *pol) pol 1468 block/blk-cgroup.c if (!blkcg_policy_enabled(q, pol)) pol 1476 block/blk-cgroup.c __clear_bit(pol->plid, q->blkcg_pols); pol 1479 block/blk-cgroup.c if (blkg->pd[pol->plid]) { pol 1480 block/blk-cgroup.c if (pol->pd_offline_fn) pol 1481 block/blk-cgroup.c pol->pd_offline_fn(blkg->pd[pol->plid]); pol 1482 block/blk-cgroup.c pol->pd_free_fn(blkg->pd[pol->plid]); pol 1483 block/blk-cgroup.c blkg->pd[pol->plid] = NULL; pol 1501 block/blk-cgroup.c int blkcg_policy_register(struct blkcg_policy *pol) pol 1520 block/blk-cgroup.c if ((!pol->cpd_alloc_fn ^ !pol->cpd_free_fn) || pol 1521 block/blk-cgroup.c (!pol->pd_alloc_fn ^ !pol->pd_free_fn)) pol 1525 block/blk-cgroup.c pol->plid = i; pol 1526 block/blk-cgroup.c blkcg_policy[pol->plid] = pol; pol 1529 block/blk-cgroup.c if (pol->cpd_alloc_fn) { pol 1533 block/blk-cgroup.c cpd = pol->cpd_alloc_fn(GFP_KERNEL); pol 1537 block/blk-cgroup.c blkcg->cpd[pol->plid] = cpd; pol 1539 block/blk-cgroup.c cpd->plid = pol->plid; pol 1540 block/blk-cgroup.c if (pol->cpd_init_fn) pol 1541 block/blk-cgroup.c pol->cpd_init_fn(cpd); pol 1548 block/blk-cgroup.c if (pol->dfl_cftypes) pol 1550 block/blk-cgroup.c pol->dfl_cftypes)); pol 1551 block/blk-cgroup.c if (pol->legacy_cftypes) pol 1553 block/blk-cgroup.c pol->legacy_cftypes)); pol 1558 block/blk-cgroup.c if (pol->cpd_free_fn) { pol 1560 block/blk-cgroup.c if (blkcg->cpd[pol->plid]) { pol 1561 block/blk-cgroup.c pol->cpd_free_fn(blkcg->cpd[pol->plid]); pol 1562 block/blk-cgroup.c blkcg->cpd[pol->plid] = NULL; pol 1566 block/blk-cgroup.c blkcg_policy[pol->plid] = NULL; pol 1580 block/blk-cgroup.c void blkcg_policy_unregister(struct blkcg_policy *pol) pol 1586 block/blk-cgroup.c if (WARN_ON(blkcg_policy[pol->plid] != pol)) pol 1590 block/blk-cgroup.c if (pol->dfl_cftypes) pol 1591 block/blk-cgroup.c cgroup_rm_cftypes(pol->dfl_cftypes); pol 1592 block/blk-cgroup.c if (pol->legacy_cftypes) pol 1593 block/blk-cgroup.c cgroup_rm_cftypes(pol->legacy_cftypes); pol 1598 block/blk-cgroup.c if (pol->cpd_free_fn) { pol 1600 block/blk-cgroup.c if (blkcg->cpd[pol->plid]) { pol 1601 block/blk-cgroup.c pol->cpd_free_fn(blkcg->cpd[pol->plid]); pol 1602 block/blk-cgroup.c blkcg->cpd[pol->plid] = NULL; pol 1606 block/blk-cgroup.c blkcg_policy[pol->plid] = NULL; pol 413 drivers/acpi/resource.c u8 pol = p ? ACPI_ACTIVE_LOW : ACPI_ACTIVE_HIGH; pol 415 drivers/acpi/resource.c if (triggering != trig || polarity != pol) { pol 419 drivers/acpi/resource.c polarity = pol; pol 108 drivers/bcma/driver_gpio.c u32 pol = bcma_cc_read32(cc, BCMA_CC_GPIOPOL); pol 109 drivers/bcma/driver_gpio.c unsigned long irqs = (val ^ pol) & mask; pol 1055 drivers/cpufreq/cpufreq.c unsigned int pol = CPUFREQ_POLICY_UNKNOWN; pol 1071 drivers/cpufreq/cpufreq.c pol = policy->last_policy; pol 1073 drivers/cpufreq/cpufreq.c pol = cpufreq_parse_policy(def_gov->name); pol 1079 drivers/cpufreq/cpufreq.c if (pol == CPUFREQ_POLICY_UNKNOWN) pol 1080 drivers/cpufreq/cpufreq.c pol = policy->policy; pol 1082 drivers/cpufreq/cpufreq.c if (pol != CPUFREQ_POLICY_PERFORMANCE && pol 1083 drivers/cpufreq/cpufreq.c pol != CPUFREQ_POLICY_POWERSAVE) pol 1087 drivers/cpufreq/cpufreq.c return cpufreq_set_policy(policy, gov, pol); pol 926 drivers/cpufreq/powernow-k8.c struct cpufreq_policy *pol; pol 933 drivers/cpufreq/powernow-k8.c struct cpufreq_policy *pol = pta->pol; pol 935 drivers/cpufreq/powernow-k8.c struct powernow_k8_data *data = per_cpu(powernow_data, pol->cpu); pol 952 drivers/cpufreq/powernow-k8.c pol->cpu, data->powernow_table[newstate].frequency, pol->min, pol 953 drivers/cpufreq/powernow-k8.c pol->max); pol 981 drivers/cpufreq/powernow-k8.c pol->cur = find_khz_freq_from_fid(data->currfid); pol 987 drivers/cpufreq/powernow-k8.c static int powernowk8_target(struct cpufreq_policy *pol, unsigned index) pol 989 drivers/cpufreq/powernow-k8.c struct powernowk8_target_arg pta = { .pol = pol, .newstate = index }; pol 991 drivers/cpufreq/powernow-k8.c return work_on_cpu(pol->cpu, powernowk8_target_fn, &pta); pol 1025 drivers/cpufreq/powernow-k8.c static int powernowk8_cpu_init(struct cpufreq_policy *pol) pol 1031 drivers/cpufreq/powernow-k8.c smp_call_function_single(pol->cpu, check_supported_cpu, &rc, 1); pol 1039 drivers/cpufreq/powernow-k8.c data->cpu = pol->cpu; pol 1050 drivers/cpufreq/powernow-k8.c if (pol->cpu != 0) { pol 1060 drivers/cpufreq/powernow-k8.c pol->cpuinfo.transition_latency = ( pol 1064 drivers/cpufreq/powernow-k8.c pol->cpuinfo.transition_latency = get_transition_latency(data); pol 1074 drivers/cpufreq/powernow-k8.c cpumask_copy(pol->cpus, topology_core_cpumask(pol->cpu)); pol 1075 drivers/cpufreq/powernow-k8.c data->available_cores = pol->cpus; pol 1076 drivers/cpufreq/powernow-k8.c pol->freq_table = data->powernow_table; pol 1082 drivers/cpufreq/powernow-k8.c for_each_cpu(cpu, pol->cpus) pol 1095 drivers/cpufreq/powernow-k8.c static int powernowk8_cpu_exit(struct cpufreq_policy *pol) pol 1097 drivers/cpufreq/powernow-k8.c struct powernow_k8_data *data = per_cpu(powernow_data, pol->cpu); pol 1107 drivers/cpufreq/powernow-k8.c for_each_cpu(cpu, pol->cpus) pol 172 drivers/gpio/gpio-dwapb.c u32 pol; pol 179 drivers/gpio/gpio-dwapb.c pol = dwapb_read(gpio, GPIO_INT_POLARITY); pol 183 drivers/gpio/gpio-dwapb.c pol &= ~BIT(offs); pol 185 drivers/gpio/gpio-dwapb.c pol |= BIT(offs); pol 187 drivers/gpio/gpio-dwapb.c dwapb_write(gpio, GPIO_INT_POLARITY, pol); pol 124 drivers/gpio/gpio-grgpio.c u32 pol; pol 129 drivers/gpio/gpio-grgpio.c pol = 0; pol 133 drivers/gpio/gpio-grgpio.c pol = mask; pol 137 drivers/gpio/gpio-grgpio.c pol = 0; pol 141 drivers/gpio/gpio-grgpio.c pol = mask; pol 153 drivers/gpio/gpio-grgpio.c priv->gc.write_reg(priv->regs + GRGPIO_IPOL, ipol | pol); pol 163 drivers/gpio/gpio-xlp.c int pol, irq_type; pol 168 drivers/gpio/gpio-xlp.c pol = XLP_GPIO_IRQ_POL_HIGH; pol 172 drivers/gpio/gpio-xlp.c pol = XLP_GPIO_IRQ_POL_LOW; pol 176 drivers/gpio/gpio-xlp.c pol = XLP_GPIO_IRQ_POL_HIGH; pol 180 drivers/gpio/gpio-xlp.c pol = XLP_GPIO_IRQ_POL_LOW; pol 187 drivers/gpio/gpio-xlp.c xlp_gpio_set_reg(priv->gpio_intr_pol, d->hwirq, pol); pol 86 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c unsigned int pol = 0; pol 95 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c pol |= DCU_SYN_POL_INV_PXCK; pol 98 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c pol |= DCU_SYN_POL_INV_HS_LOW; pol 101 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c pol |= DCU_SYN_POL_INV_VS_LOW; pol 114 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c regmap_write(fsl_dev->regmap, DCU_SYN_POL, pol); pol 100 drivers/gpu/drm/gma500/cdv_intel_lvds.c if (dev_priv->lvds_bl->pol == BLC_POLARITY_INVERSE) pol 128 drivers/gpu/drm/gma500/cdv_intel_lvds.c if (dev_priv->lvds_bl->pol == BLC_POLARITY_INVERSE) pol 249 drivers/gpu/drm/gma500/intel_bios.h u8 pol:1; pol 109 drivers/gpu/drm/gma500/psb_intel_lvds.c if (dev_priv->lvds_bl->pol == BLC_POLARITY_INVERSE) pol 142 drivers/gpu/drm/gma500/psb_intel_lvds.c if (dev_priv->lvds_bl->pol == BLC_POLARITY_INVERSE) pol 198 drivers/gpu/drm/mediatek/mtk_dpi.c unsigned int pol; pol 200 drivers/gpu/drm/mediatek/mtk_dpi.c pol = (dpi_pol->ck_pol == MTK_DPI_POLARITY_RISING ? 0 : CK_POL) | pol 204 drivers/gpu/drm/mediatek/mtk_dpi.c mtk_dpi_mask(dpi, DPI_OUTPUT_SETTING, pol, pol 3692 drivers/gpu/drm/omapdrm/dss/dsi.c u8 lane, pol; pol 3707 drivers/gpu/drm/omapdrm/dss/dsi.c pol = 1; pol 3711 drivers/gpu/drm/omapdrm/dss/dsi.c pol = 0; pol 3717 drivers/gpu/drm/omapdrm/dss/dsi.c lanes[lane].polarity = pol; pol 37 drivers/gpu/drm/omapdrm/dss/hdmi_phy.c u8 lane, pol; pol 52 drivers/gpu/drm/omapdrm/dss/hdmi_phy.c pol = 1; pol 56 drivers/gpu/drm/omapdrm/dss/hdmi_phy.c pol = 0; pol 62 drivers/gpu/drm/omapdrm/dss/hdmi_phy.c phy->lane_polarity[lane] = pol; pol 363 drivers/gpu/drm/zte/zx_vou.c u32 pol = 0; pol 405 drivers/gpu/drm/zte/zx_vou.c pol |= 1 << POL_VSYNC_SHIFT; pol 407 drivers/gpu/drm/zte/zx_vou.c pol |= 1 << POL_HSYNC_SHIFT; pol 410 drivers/gpu/drm/zte/zx_vou.c pol << bits->polarity_shift); pol 228 drivers/input/touchscreen/wm97xx-core.c enum wm97xx_gpio_pol pol, enum wm97xx_gpio_sticky sticky, pol 236 drivers/input/touchscreen/wm97xx-core.c if (pol == WM97XX_GPIO_POL_HIGH) pol 303 drivers/input/touchscreen/wm97xx-core.c u16 status, pol; pol 306 drivers/input/touchscreen/wm97xx-core.c pol = wm97xx_reg_read(wm, AC97_GPIO_POLARITY); pol 308 drivers/input/touchscreen/wm97xx-core.c if (WM97XX_GPIO_13 & pol & status) { pol 310 drivers/input/touchscreen/wm97xx-core.c wm97xx_reg_write(wm, AC97_GPIO_POLARITY, pol & pol 314 drivers/input/touchscreen/wm97xx-core.c wm97xx_reg_write(wm, AC97_GPIO_POLARITY, pol | pol 205 drivers/irqchip/irq-mips-gic.c unsigned int irq, pol, trig, dual; pol 213 drivers/irqchip/irq-mips-gic.c pol = GIC_POL_FALLING_EDGE; pol 218 drivers/irqchip/irq-mips-gic.c pol = GIC_POL_RISING_EDGE; pol 223 drivers/irqchip/irq-mips-gic.c pol = 0; /* Doesn't matter */ pol 228 drivers/irqchip/irq-mips-gic.c pol = GIC_POL_ACTIVE_LOW; pol 234 drivers/irqchip/irq-mips-gic.c pol = GIC_POL_ACTIVE_HIGH; pol 240 drivers/irqchip/irq-mips-gic.c change_gic_pol(irq, pol); pol 45 drivers/irqchip/irq-tb10x.c uint32_t im, mod, pol; pol 52 drivers/irqchip/irq-tb10x.c pol = ab_irqctl_readreg(gc, AB_IRQCTL_SRC_POLARITY) | im; pol 56 drivers/irqchip/irq-tb10x.c pol ^= im; pol 65 drivers/irqchip/irq-tb10x.c pol ^= im; pol 80 drivers/irqchip/irq-tb10x.c ab_irqctl_writereg(gc, AB_IRQCTL_SRC_POLARITY, pol); pol 2080 drivers/media/platform/omap3isp/isp.c buscfg->bus.csi2.lanecfg.clk.pol = pol 2083 drivers/media/platform/omap3isp/isp.c buscfg->bus.csi2.lanecfg.clk.pol, pol 2091 drivers/media/platform/omap3isp/isp.c buscfg->bus.csi2.lanecfg.data[i].pol = pol 2095 drivers/media/platform/omap3isp/isp.c buscfg->bus.csi2.lanecfg.data[i].pol, pol 2110 drivers/media/platform/omap3isp/isp.c buscfg->bus.ccp2.lanecfg.clk.pol = vep->bus.mipi_csi1.lane_polarity[0]; pol 2112 drivers/media/platform/omap3isp/isp.c buscfg->bus.ccp2.lanecfg.clk.pol, pol 2116 drivers/media/platform/omap3isp/isp.c buscfg->bus.ccp2.lanecfg.data[0].pol = pol 2120 drivers/media/platform/omap3isp/isp.c buscfg->bus.ccp2.lanecfg.data[0].pol, pol 186 drivers/media/platform/omap3isp/ispcsiphy.c if (lanes->data[i].pol > 1 || lanes->data[i].pos > 3) pol 195 drivers/media/platform/omap3isp/ispcsiphy.c if (lanes->clk.pol > 1 || lanes->clk.pos > 3) pol 244 drivers/media/platform/omap3isp/ispcsiphy.c reg |= (lanes->data[i].pol << pol 252 drivers/media/platform/omap3isp/ispcsiphy.c reg |= lanes->clk.pol << ISPCSI2_PHY_CFG_CLOCK_POL_SHIFT; pol 70 drivers/media/platform/omap3isp/omap3isp.h u8 pol; pol 26 drivers/media/platform/qcom/camss/camss-csiphy.h u8 pol; pol 441 drivers/media/platform/qcom/camss/camss.c lncfg->clk.pol = mipi_csi2->lane_polarities[0]; pol 452 drivers/media/platform/qcom/camss/camss.c lncfg->data[i].pol = mipi_csi2->lane_polarities[i + 1]; pol 25 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.h #define CSI_CFG_VREF_POL(pol) ((pol) << 2) pol 26 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.h #define CSI_CFG_HREF_POL(pol) ((pol) << 1) pol 27 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.h #define CSI_CFG_PCLK_POL(pol) ((pol) << 0) pol 162 drivers/mfd/wm8350-gpio.c static int gpio_set_polarity(struct wm8350 *wm8350, int gpio, int pol) pol 164 drivers/mfd/wm8350-gpio.c if (pol == WM8350_GPIO_ACTIVE_HIGH) pol 184 drivers/mfd/wm8350-gpio.c int pol, int pull, int invert, int debounce) pol 206 drivers/mfd/wm8350-gpio.c if (gpio_set_polarity(wm8350, gpio, pol)) pol 932 drivers/net/ethernet/dec/tulip/de4x5.c static int test_mii_reg(struct net_device *dev, int reg, int mask, bool pol, long msec); pol 3445 drivers/net/ethernet/dec/tulip/de4x5.c test_mii_reg(struct net_device *dev, int reg, int mask, bool pol, long msec) pol 3456 drivers/net/ethernet/dec/tulip/de4x5.c test = (reg ^ (pol ? ~0 : 0)) & mask; pol 175 drivers/net/ethernet/mscc/ocelot_police.c struct ocelot_policer *pol) pol 181 drivers/net/ethernet/mscc/ocelot_police.c if (!pol) pol 185 drivers/net/ethernet/mscc/ocelot_police.c pp.pir = pol->rate; pol 186 drivers/net/ethernet/mscc/ocelot_police.c pp.pbs = pol->burst; pol 18 drivers/net/ethernet/mscc/ocelot_police.h struct ocelot_policer *pol); pol 17 drivers/net/ethernet/mscc/ocelot_tc.c struct ocelot_policer pol = { 0 }; pol 56 drivers/net/ethernet/mscc/ocelot_tc.c pol.rate = (u32)div_u64(action->police.rate_bytes_ps, 1000) * 8; pol 57 drivers/net/ethernet/mscc/ocelot_tc.c pol.burst = (u32)div_u64(action->police.rate_bytes_ps * pol 61 drivers/net/ethernet/mscc/ocelot_tc.c err = ocelot_port_policer_add(port, &pol); pol 153 drivers/phy/marvell/phy-mvebu-cp110-comphy.c #define COMPHY_FW_PARAM_FULL(mode, port, speed, pol, width) \ pol 154 drivers/phy/marvell/phy-mvebu-cp110-comphy.c ((((pol) << COMPHY_FW_POL_OFFSET) & COMPHY_FW_POL_MASK) | \ pol 41 drivers/pinctrl/mediatek/mtk-eint.c .pol = 0x300, pol 26 drivers/pinctrl/mediatek/mtk-eint.h unsigned int pol; pol 178 drivers/pinctrl/mediatek/pinctrl-mtk-common.h unsigned int pol; pol 684 drivers/pinctrl/qcom/pinctrl-msm.c unsigned pol; pol 689 drivers/pinctrl/qcom/pinctrl-msm.c pol = msm_readl_intr_cfg(pctrl, g); pol 690 drivers/pinctrl/qcom/pinctrl-msm.c pol ^= BIT(g->intr_polarity_bit); pol 691 drivers/pinctrl/qcom/pinctrl-msm.c msm_writel_intr_cfg(pol, pctrl, g); pol 118 drivers/spi/spi-fsl-spi.c bool pol = spi->mode & SPI_CS_HIGH; pol 125 drivers/spi/spi-fsl-spi.c pdata->cs_control(spi, !pol); pol 137 drivers/spi/spi-fsl-spi.c pdata->cs_control(spi, pol); pol 67 drivers/spi/spi-s3c24xx.c int cs, int pol); pol 88 drivers/spi/spi-s3c24xx.c static void s3c24xx_spi_gpiocs(struct s3c2410_spi_info *spi, int cs, int pol) pol 90 drivers/spi/spi-s3c24xx.c gpio_set_value(spi->pin_cs, pol); pol 127 drivers/ssb/driver_gpio.c u32 pol = chipco_read32(chipco, SSB_CHIPCO_GPIOPOL); pol 128 drivers/ssb/driver_gpio.c unsigned long irqs = (val ^ pol) & mask; pol 324 drivers/ssb/driver_gpio.c u32 pol = ssb_read32(extif->dev, SSB_EXTIF_GPIO_INTPOL); pol 325 drivers/ssb/driver_gpio.c unsigned long irqs = (val ^ pol) & mask; pol 119 drivers/staging/kpc2000/kpc2000_spi.c unsigned int pol : 1; /* spim_clk Polarity */ pol 36 drivers/staging/media/omap4iss/iss_csiphy.c reg |= (phy->lanes.data[i].pol ? pol 44 drivers/staging/media/omap4iss/iss_csiphy.c reg |= phy->lanes.clk.pol ? CSI2_COMPLEXIO_CFG_CLOCK_POL : 0; pol 178 drivers/staging/media/omap4iss/iss_csiphy.c if (lanes->data[i].pol > 1 || pol 189 drivers/staging/media/omap4iss/iss_csiphy.c if (lanes->clk.pol > 1 || pol 318 drivers/usb/typec/tcpm/wcove.c static int wcove_set_polarity(struct tcpc_dev *tcpc, enum typec_cc_polarity pol) pol 322 drivers/usb/typec/tcpm/wcove.c return wcove_typec_func(wcove, WCOVE_FUNC_ORIENTATION, pol); pol 3769 drivers/video/fbdev/omap2/omapfb/dss/dsi.c u8 lane, pol; pol 3784 drivers/video/fbdev/omap2/omapfb/dss/dsi.c pol = 1; pol 3788 drivers/video/fbdev/omap2/omapfb/dss/dsi.c pol = 0; pol 3794 drivers/video/fbdev/omap2/omapfb/dss/dsi.c lanes[lane].polarity = pol; pol 46 drivers/video/fbdev/omap2/omapfb/dss/hdmi_phy.c u8 lane, pol; pol 61 drivers/video/fbdev/omap2/omapfb/dss/hdmi_phy.c pol = 1; pol 65 drivers/video/fbdev/omap2/omapfb/dss/hdmi_phy.c pol = 0; pol 71 drivers/video/fbdev/omap2/omapfb/dss/hdmi_phy.c phy->lane_polarity[lane] = pol; pol 440 fs/kernfs/file.c struct mempolicy *pol; pol 448 fs/kernfs/file.c pol = vma->vm_policy; pol 450 fs/kernfs/file.c pol = of->vm_ops->get_policy(vma, addr); pol 453 fs/kernfs/file.c return pol; pol 1824 fs/proc/task_mmu.c struct mempolicy *pol; pol 1834 fs/proc/task_mmu.c pol = __get_vma_policy(vma, vma->vm_start); pol 1835 fs/proc/task_mmu.c if (pol) { pol 1836 fs/proc/task_mmu.c mpol_to_str(buffer, sizeof(buffer), pol); pol 1837 fs/proc/task_mmu.c mpol_cond_put(pol); pol 198 include/linux/blk-cgroup.h int blkcg_policy_register(struct blkcg_policy *pol); pol 199 include/linux/blk-cgroup.h void blkcg_policy_unregister(struct blkcg_policy *pol); pol 201 include/linux/blk-cgroup.h const struct blkcg_policy *pol); pol 203 include/linux/blk-cgroup.h const struct blkcg_policy *pol); pol 216 include/linux/blk-cgroup.h const struct blkcg_policy *pol, int data, pol 228 include/linux/blk-cgroup.h void blkg_rwstat_recursive_sum(struct blkcg_gq *blkg, struct blkcg_policy *pol, pol 238 include/linux/blk-cgroup.h int blkg_conf_prep(struct blkcg *blkcg, const struct blkcg_policy *pol, pol 408 include/linux/blk-cgroup.h struct blkcg_policy *pol) pol 410 include/linux/blk-cgroup.h return blkg ? blkg->pd[pol->plid] : NULL; pol 414 include/linux/blk-cgroup.h struct blkcg_policy *pol) pol 416 include/linux/blk-cgroup.h return blkcg ? blkcg->cpd[pol->plid] : NULL; pol 850 include/linux/blk-cgroup.h static inline int blkcg_policy_register(struct blkcg_policy *pol) { return 0; } pol 851 include/linux/blk-cgroup.h static inline void blkcg_policy_unregister(struct blkcg_policy *pol) { } pol 853 include/linux/blk-cgroup.h const struct blkcg_policy *pol) { return 0; } pol 855 include/linux/blk-cgroup.h const struct blkcg_policy *pol) { } pol 861 include/linux/blk-cgroup.h struct blkcg_policy *pol) { return NULL; } pol 65 include/linux/mempolicy.h extern void __mpol_put(struct mempolicy *pol); pol 66 include/linux/mempolicy.h static inline void mpol_put(struct mempolicy *pol) pol 68 include/linux/mempolicy.h if (pol) pol 69 include/linux/mempolicy.h __mpol_put(pol); pol 76 include/linux/mempolicy.h static inline int mpol_needs_cond_ref(struct mempolicy *pol) pol 78 include/linux/mempolicy.h return (pol && (pol->flags & MPOL_F_SHARED)); pol 81 include/linux/mempolicy.h static inline void mpol_cond_put(struct mempolicy *pol) pol 83 include/linux/mempolicy.h if (mpol_needs_cond_ref(pol)) pol 84 include/linux/mempolicy.h __mpol_put(pol); pol 87 include/linux/mempolicy.h extern struct mempolicy *__mpol_dup(struct mempolicy *pol); pol 88 include/linux/mempolicy.h static inline struct mempolicy *mpol_dup(struct mempolicy *pol) pol 90 include/linux/mempolicy.h if (pol) pol 91 include/linux/mempolicy.h pol = __mpol_dup(pol); pol 92 include/linux/mempolicy.h return pol; pol 97 include/linux/mempolicy.h static inline void mpol_get(struct mempolicy *pol) pol 99 include/linux/mempolicy.h if (pol) pol 100 include/linux/mempolicy.h atomic_inc(&pol->refcnt); pol 173 include/linux/mempolicy.h extern void mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol); pol 221 include/linux/mempolicy.h static inline void mpol_cond_put(struct mempolicy *pol) pol 225 include/linux/mempolicy.h static inline void mpol_get(struct mempolicy *pol) pol 345 include/linux/mfd/wm8350/gpio.h int pol, int pull, int invert, int debounce); pol 21 include/linux/platform_data/media/omap4iss.h u8 pol; pol 20 include/linux/spi/s3c24xx.h void (*set_cs)(struct s3c2410_spi_info *spi, int cs, int pol); pol 321 include/linux/wm97xx.h enum wm97xx_gpio_pol pol, pol 344 include/net/xfrm.h struct xfrm_policy *pol); pol 1179 include/net/xfrm.h int xfrm_policy_delete(struct xfrm_policy *pol, int dir); pol 1183 include/net/xfrm.h struct xfrm_policy *pol; pol 1185 include/net/xfrm.h pol = rcu_dereference_protected(sk->sk_policy[0], 1); pol 1186 include/net/xfrm.h if (unlikely(pol != NULL)) { pol 1187 include/net/xfrm.h xfrm_policy_delete(pol, XFRM_POLICY_MAX); pol 1190 include/net/xfrm.h pol = rcu_dereference_protected(sk->sk_policy[1], 1); pol 1191 include/net/xfrm.h if (unlikely(pol != NULL)) { pol 1192 include/net/xfrm.h xfrm_policy_delete(pol, XFRM_POLICY_MAX+1); pol 1482 include/net/xfrm.h struct xfrm_policy *pol, int *err, pol 1655 include/net/xfrm.h int xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol); pol 1673 include/net/xfrm.h void km_policy_expired(struct xfrm_policy *pol, int dir, int hard, u32 portid); pol 68 include/uapi/linux/netfilter/xt_policy.h struct xt_policy_elem pol[XT_POLICY_MAX_ELEM]; pol 451 include/uapi/linux/xfrm.h struct xfrm_userpolicy_info pol; pol 476 ipc/shm.c struct mempolicy *pol = NULL; pol 479 ipc/shm.c pol = sfd->vm_ops->get_policy(vma, addr); pol 481 ipc/shm.c pol = vma->vm_policy; pol 483 ipc/shm.c return pol; pol 834 kernel/sched/debug.c struct mempolicy *pol; pol 840 kernel/sched/debug.c pol = p->mempolicy; pol 841 kernel/sched/debug.c if (pol && !(pol->flags & MPOL_F_MORON)) pol 842 kernel/sched/debug.c pol = NULL; pol 843 kernel/sched/debug.c mpol_get(pol); pol 852 kernel/sched/debug.c mpol_put(pol); pol 132 mm/mempolicy.c struct mempolicy *pol = p->mempolicy; pol 135 mm/mempolicy.c if (pol) pol 136 mm/mempolicy.c return pol; pol 140 mm/mempolicy.c pol = &preferred_node_policy[node]; pol 142 mm/mempolicy.c if (pol->mode) pol 143 mm/mempolicy.c return pol; pol 150 mm/mempolicy.c int (*create)(struct mempolicy *pol, const nodemask_t *nodes); pol 151 mm/mempolicy.c void (*rebind)(struct mempolicy *pol, const nodemask_t *nodes); pol 154 mm/mempolicy.c static inline int mpol_store_user_nodemask(const struct mempolicy *pol) pol 156 mm/mempolicy.c return pol->flags & MPOL_MODE_FLAGS; pol 167 mm/mempolicy.c static int mpol_new_interleave(struct mempolicy *pol, const nodemask_t *nodes) pol 171 mm/mempolicy.c pol->v.nodes = *nodes; pol 175 mm/mempolicy.c static int mpol_new_preferred(struct mempolicy *pol, const nodemask_t *nodes) pol 178 mm/mempolicy.c pol->flags |= MPOL_F_LOCAL; /* local allocation */ pol 182 mm/mempolicy.c pol->v.preferred_node = first_node(*nodes); pol 186 mm/mempolicy.c static int mpol_new_bind(struct mempolicy *pol, const nodemask_t *nodes) pol 190 mm/mempolicy.c pol->v.nodes = *nodes; pol 203 mm/mempolicy.c static int mpol_set_nodemask(struct mempolicy *pol, pol 209 mm/mempolicy.c if (pol == NULL) pol 216 mm/mempolicy.c if (pol->mode == MPOL_PREFERRED && nodes_empty(*nodes)) pol 219 mm/mempolicy.c if (pol->flags & MPOL_F_RELATIVE_NODES) pol 224 mm/mempolicy.c if (mpol_store_user_nodemask(pol)) pol 225 mm/mempolicy.c pol->w.user_nodemask = *nodes; pol 227 mm/mempolicy.c pol->w.cpuset_mems_allowed = pol 232 mm/mempolicy.c ret = mpol_ops[pol->mode].create(pol, &nsc->mask2); pol 234 mm/mempolicy.c ret = mpol_ops[pol->mode].create(pol, NULL); pol 294 mm/mempolicy.c static void mpol_rebind_default(struct mempolicy *pol, const nodemask_t *nodes) pol 298 mm/mempolicy.c static void mpol_rebind_nodemask(struct mempolicy *pol, const nodemask_t *nodes) pol 302 mm/mempolicy.c if (pol->flags & MPOL_F_STATIC_NODES) pol 303 mm/mempolicy.c nodes_and(tmp, pol->w.user_nodemask, *nodes); pol 304 mm/mempolicy.c else if (pol->flags & MPOL_F_RELATIVE_NODES) pol 305 mm/mempolicy.c mpol_relative_nodemask(&tmp, &pol->w.user_nodemask, nodes); pol 307 mm/mempolicy.c nodes_remap(tmp, pol->v.nodes,pol->w.cpuset_mems_allowed, pol 309 mm/mempolicy.c pol->w.cpuset_mems_allowed = *nodes; pol 315 mm/mempolicy.c pol->v.nodes = tmp; pol 318 mm/mempolicy.c static void mpol_rebind_preferred(struct mempolicy *pol, pol 323 mm/mempolicy.c if (pol->flags & MPOL_F_STATIC_NODES) { pol 324 mm/mempolicy.c int node = first_node(pol->w.user_nodemask); pol 327 mm/mempolicy.c pol->v.preferred_node = node; pol 328 mm/mempolicy.c pol->flags &= ~MPOL_F_LOCAL; pol 330 mm/mempolicy.c pol->flags |= MPOL_F_LOCAL; pol 331 mm/mempolicy.c } else if (pol->flags & MPOL_F_RELATIVE_NODES) { pol 332 mm/mempolicy.c mpol_relative_nodemask(&tmp, &pol->w.user_nodemask, nodes); pol 333 mm/mempolicy.c pol->v.preferred_node = first_node(tmp); pol 334 mm/mempolicy.c } else if (!(pol->flags & MPOL_F_LOCAL)) { pol 335 mm/mempolicy.c pol->v.preferred_node = node_remap(pol->v.preferred_node, pol 336 mm/mempolicy.c pol->w.cpuset_mems_allowed, pol 338 mm/mempolicy.c pol->w.cpuset_mems_allowed = *nodes; pol 349 mm/mempolicy.c static void mpol_rebind_policy(struct mempolicy *pol, const nodemask_t *newmask) pol 351 mm/mempolicy.c if (!pol) pol 353 mm/mempolicy.c if (!mpol_store_user_nodemask(pol) && !(pol->flags & MPOL_F_LOCAL) && pol 354 mm/mempolicy.c nodes_equal(pol->w.cpuset_mems_allowed, *newmask)) pol 357 mm/mempolicy.c mpol_ops[pol->mode].rebind(pol, newmask); pol 699 mm/mempolicy.c struct mempolicy *pol) pol 710 mm/mempolicy.c new = mpol_dup(pol); pol 877 mm/mempolicy.c struct mempolicy *pol = current->mempolicy, *pol_refcount = NULL; pol 906 mm/mempolicy.c pol = vma->vm_ops->get_policy(vma, addr); pol 908 mm/mempolicy.c pol = vma->vm_policy; pol 912 mm/mempolicy.c if (!pol) pol 913 mm/mempolicy.c pol = &default_policy; /* indicates default behavior */ pol 923 mm/mempolicy.c pol_refcount = pol; pol 925 mm/mempolicy.c mpol_get(pol); pol 930 mm/mempolicy.c } else if (pol == current->mempolicy && pol 931 mm/mempolicy.c pol->mode == MPOL_INTERLEAVE) { pol 932 mm/mempolicy.c *policy = next_node_in(current->il_prev, pol->v.nodes); pol 938 mm/mempolicy.c *policy = pol == &default_policy ? MPOL_DEFAULT : pol 939 mm/mempolicy.c pol->mode; pol 944 mm/mempolicy.c *policy |= (pol->flags & MPOL_MODE_FLAGS); pol 949 mm/mempolicy.c if (mpol_store_user_nodemask(pol)) { pol 950 mm/mempolicy.c *nmask = pol->w.user_nodemask; pol 953 mm/mempolicy.c get_policy_nodemask(pol, nmask); pol 959 mm/mempolicy.c mpol_cond_put(pol); pol 1705 mm/mempolicy.c struct mempolicy *pol = NULL; pol 1709 mm/mempolicy.c pol = vma->vm_ops->get_policy(vma, addr); pol 1711 mm/mempolicy.c pol = vma->vm_policy; pol 1719 mm/mempolicy.c if (mpol_needs_cond_ref(pol)) pol 1720 mm/mempolicy.c mpol_get(pol); pol 1724 mm/mempolicy.c return pol; pol 1742 mm/mempolicy.c struct mempolicy *pol = __get_vma_policy(vma, addr); pol 1744 mm/mempolicy.c if (!pol) pol 1745 mm/mempolicy.c pol = get_task_policy(current); pol 1747 mm/mempolicy.c return pol; pol 1752 mm/mempolicy.c struct mempolicy *pol; pol 1757 mm/mempolicy.c pol = vma->vm_ops->get_policy(vma, vma->vm_start); pol 1758 mm/mempolicy.c if (pol && (pol->flags & MPOL_F_MOF)) pol 1760 mm/mempolicy.c mpol_cond_put(pol); pol 1765 mm/mempolicy.c pol = vma->vm_policy; pol 1766 mm/mempolicy.c if (!pol) pol 1767 mm/mempolicy.c pol = get_task_policy(current); pol 1769 mm/mempolicy.c return pol->flags & MPOL_F_MOF; pol 1888 mm/mempolicy.c static unsigned offset_il_node(struct mempolicy *pol, unsigned long n) pol 1890 mm/mempolicy.c unsigned nnodes = nodes_weight(pol->v.nodes); pol 1898 mm/mempolicy.c nid = first_node(pol->v.nodes); pol 1900 mm/mempolicy.c nid = next_node(nid, pol->v.nodes); pol 1905 mm/mempolicy.c static inline unsigned interleave_nid(struct mempolicy *pol, pol 1921 mm/mempolicy.c return offset_il_node(pol, off); pol 1923 mm/mempolicy.c return interleave_nodes(pol); pol 2101 mm/mempolicy.c struct mempolicy *pol; pol 2106 mm/mempolicy.c pol = get_vma_policy(vma, addr); pol 2108 mm/mempolicy.c if (pol->mode == MPOL_INTERLEAVE) { pol 2111 mm/mempolicy.c nid = interleave_nid(pol, vma, addr, PAGE_SHIFT + order); pol 2112 mm/mempolicy.c mpol_cond_put(pol); pol 2130 mm/mempolicy.c if (pol->mode == MPOL_PREFERRED && !(pol->flags & MPOL_F_LOCAL)) pol 2131 mm/mempolicy.c hpage_node = pol->v.preferred_node; pol 2133 mm/mempolicy.c nmask = policy_nodemask(gfp, pol); pol 2135 mm/mempolicy.c mpol_cond_put(pol); pol 2153 mm/mempolicy.c nmask = policy_nodemask(gfp, pol); pol 2154 mm/mempolicy.c preferred_nid = policy_node(gfp, pol, node); pol 2156 mm/mempolicy.c mpol_cond_put(pol); pol 2179 mm/mempolicy.c struct mempolicy *pol = &default_policy; pol 2183 mm/mempolicy.c pol = get_task_policy(current); pol 2189 mm/mempolicy.c if (pol->mode == MPOL_INTERLEAVE) pol 2190 mm/mempolicy.c page = alloc_page_interleave(gfp, order, interleave_nodes(pol)); pol 2193 mm/mempolicy.c policy_node(gfp, pol, numa_node_id()), pol 2194 mm/mempolicy.c policy_nodemask(gfp, pol)); pol 2202 mm/mempolicy.c struct mempolicy *pol = mpol_dup(vma_policy(src)); pol 2204 mm/mempolicy.c if (IS_ERR(pol)) pol 2205 mm/mempolicy.c return PTR_ERR(pol); pol 2206 mm/mempolicy.c dst->vm_policy = pol; pol 2347 mm/mempolicy.c struct mempolicy *pol = NULL; pol 2356 mm/mempolicy.c pol = sn->policy; pol 2359 mm/mempolicy.c return pol; pol 2387 mm/mempolicy.c struct mempolicy *pol; pol 2396 mm/mempolicy.c pol = get_vma_policy(vma, addr); pol 2397 mm/mempolicy.c if (!(pol->flags & MPOL_F_MOF)) pol 2400 mm/mempolicy.c switch (pol->mode) { pol 2404 mm/mempolicy.c polnid = offset_il_node(pol, pgoff); pol 2408 mm/mempolicy.c if (pol->flags & MPOL_F_LOCAL) pol 2411 mm/mempolicy.c polnid = pol->v.preferred_node; pol 2422 mm/mempolicy.c if (node_isset(curnid, pol->v.nodes)) pol 2427 mm/mempolicy.c &pol->v.nodes); pol 2436 mm/mempolicy.c if (pol->flags & MPOL_F_MORON) { pol 2446 mm/mempolicy.c mpol_cond_put(pol); pol 2459 mm/mempolicy.c struct mempolicy *pol; pol 2462 mm/mempolicy.c pol = task->mempolicy; pol 2465 mm/mempolicy.c mpol_put(pol); pol 2476 mm/mempolicy.c unsigned long end, struct mempolicy *pol) pol 2480 mm/mempolicy.c node->policy = pol; pol 2484 mm/mempolicy.c struct mempolicy *pol) pol 2493 mm/mempolicy.c newpol = mpol_dup(pol); pol 2928 mm/mempolicy.c void mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol) pol 2935 mm/mempolicy.c if (pol && pol != &default_policy && !(pol->flags & MPOL_F_MORON)) { pol 2936 mm/mempolicy.c mode = pol->mode; pol 2937 mm/mempolicy.c flags = pol->flags; pol 2947 mm/mempolicy.c node_set(pol->v.preferred_node, nodes); pol 2951 mm/mempolicy.c nodes = pol->v.nodes; pol 1985 net/key/af_key.c parse_ipsecrequests(struct xfrm_policy *xp, struct sadb_x_policy *pol) pol 1988 net/key/af_key.c int len = pol->sadb_x_policy_len*8 - sizeof(struct sadb_x_policy); pol 1989 net/key/af_key.c struct sadb_x_ipsecrequest *rq = (void*)(pol+1); pol 1991 net/key/af_key.c if (pol->sadb_x_policy_len * 8 < sizeof(struct sadb_x_policy)) pol 2060 net/key/af_key.c struct sadb_x_policy *pol; pol 2131 net/key/af_key.c pol = skb_put(skb, sizeof(struct sadb_x_policy)); pol 2132 net/key/af_key.c pol->sadb_x_policy_len = sizeof(struct sadb_x_policy)/sizeof(uint64_t); pol 2133 net/key/af_key.c pol->sadb_x_policy_exttype = SADB_X_EXT_POLICY; pol 2134 net/key/af_key.c pol->sadb_x_policy_type = IPSEC_POLICY_DISCARD; pol 2137 net/key/af_key.c pol->sadb_x_policy_type = IPSEC_POLICY_IPSEC; pol 2139 net/key/af_key.c pol->sadb_x_policy_type = IPSEC_POLICY_NONE; pol 2141 net/key/af_key.c pol->sadb_x_policy_dir = dir+1; pol 2142 net/key/af_key.c pol->sadb_x_policy_reserved = 0; pol 2143 net/key/af_key.c pol->sadb_x_policy_id = xp->index; pol 2144 net/key/af_key.c pol->sadb_x_policy_priority = xp->priority; pol 2160 net/key/af_key.c pol->sadb_x_policy_len += req_size/8; pol 2242 net/key/af_key.c struct sadb_x_policy *pol; pol 2252 net/key/af_key.c pol = ext_hdrs[SADB_X_EXT_POLICY-1]; pol 2253 net/key/af_key.c if (pol->sadb_x_policy_type > IPSEC_POLICY_IPSEC) pol 2255 net/key/af_key.c if (!pol->sadb_x_policy_dir || pol->sadb_x_policy_dir >= IPSEC_DIR_MAX) pol 2262 net/key/af_key.c xp->action = (pol->sadb_x_policy_type == IPSEC_POLICY_DISCARD ? pol 2264 net/key/af_key.c xp->priority = pol->sadb_x_policy_priority; pol 2321 net/key/af_key.c if (pol->sadb_x_policy_type == IPSEC_POLICY_IPSEC && pol 2322 net/key/af_key.c (err = parse_ipsecrequests(xp, pol)) < 0) pol 2325 net/key/af_key.c err = xfrm_policy_insert(pol->sadb_x_policy_dir-1, xp, pol 2341 net/key/af_key.c km_policy_notify(xp, pol->sadb_x_policy_dir-1, &c); pol 2356 net/key/af_key.c struct sadb_x_policy *pol; pol 2368 net/key/af_key.c pol = ext_hdrs[SADB_X_EXT_POLICY-1]; pol 2369 net/key/af_key.c if (!pol->sadb_x_policy_dir || pol->sadb_x_policy_dir >= IPSEC_DIR_MAX) pol 2404 net/key/af_key.c pol->sadb_x_policy_dir - 1, &sel, pol_ctx, pol 2419 net/key/af_key.c km_policy_notify(xp, pol->sadb_x_policy_dir-1, &c); pol 2544 net/key/af_key.c struct sadb_x_policy *pol; pol 2559 net/key/af_key.c pol = ext_hdrs[SADB_X_EXT_POLICY - 1]; pol 2561 net/key/af_key.c if (pol->sadb_x_policy_dir >= IPSEC_DIR_MAX) { pol 2578 net/key/af_key.c dir = pol->sadb_x_policy_dir - 1; pol 2599 net/key/af_key.c rq = (struct sadb_x_ipsecrequest *)(pol + 1); pol 2603 net/key/af_key.c len = pol->sadb_x_policy_len * 8 - sizeof(struct sadb_x_policy); pol 2642 net/key/af_key.c struct sadb_x_policy *pol; pol 2646 net/key/af_key.c if ((pol = ext_hdrs[SADB_X_EXT_POLICY-1]) == NULL) pol 2649 net/key/af_key.c dir = xfrm_policy_id2dir(pol->sadb_x_policy_id); pol 2655 net/key/af_key.c dir, pol->sadb_x_policy_id, delete, &err); pol 3137 net/key/af_key.c struct sadb_x_policy *pol; pol 3207 net/key/af_key.c pol = skb_put(skb, sizeof(struct sadb_x_policy)); pol 3208 net/key/af_key.c pol->sadb_x_policy_len = sizeof(struct sadb_x_policy)/sizeof(uint64_t); pol 3209 net/key/af_key.c pol->sadb_x_policy_exttype = SADB_X_EXT_POLICY; pol 3210 net/key/af_key.c pol->sadb_x_policy_type = IPSEC_POLICY_IPSEC; pol 3211 net/key/af_key.c pol->sadb_x_policy_dir = XFRM_POLICY_OUT + 1; pol 3212 net/key/af_key.c pol->sadb_x_policy_reserved = 0; pol 3213 net/key/af_key.c pol->sadb_x_policy_id = xp->index; pol 3214 net/key/af_key.c pol->sadb_x_policy_priority = xp->priority; pol 3245 net/key/af_key.c struct sadb_x_policy *pol = (struct sadb_x_policy*)data; pol 3271 net/key/af_key.c pol->sadb_x_policy_len*8 > len || pol 3272 net/key/af_key.c pol->sadb_x_policy_type > IPSEC_POLICY_BYPASS || pol 3273 net/key/af_key.c (!pol->sadb_x_policy_dir || pol->sadb_x_policy_dir > IPSEC_DIR_OUTBOUND)) pol 3282 net/key/af_key.c xp->action = (pol->sadb_x_policy_type == IPSEC_POLICY_DISCARD ? pol 3292 net/key/af_key.c if (pol->sadb_x_policy_type == IPSEC_POLICY_IPSEC && pol 3293 net/key/af_key.c (*dir = parse_ipsecrequests(xp, pol)) < 0) pol 3297 net/key/af_key.c if (len >= (pol->sadb_x_policy_len*8 + pol 3299 net/key/af_key.c char *p = (char *)pol; pol 3302 net/key/af_key.c p += pol->sadb_x_policy_len*8; pol 3304 net/key/af_key.c if (len < pol->sadb_x_policy_len*8 + pol 3319 net/key/af_key.c *dir = pol->sadb_x_policy_dir-1; pol 3534 net/key/af_key.c struct sadb_x_policy *pol; pol 3596 net/key/af_key.c pol = skb_put(skb, sizeof(struct sadb_x_policy)); pol 3597 net/key/af_key.c pol->sadb_x_policy_len = size_pol / 8; pol 3598 net/key/af_key.c pol->sadb_x_policy_exttype = SADB_X_EXT_POLICY; pol 3599 net/key/af_key.c pol->sadb_x_policy_type = IPSEC_POLICY_IPSEC; pol 3600 net/key/af_key.c pol->sadb_x_policy_dir = dir + 1; pol 3601 net/key/af_key.c pol->sadb_x_policy_reserved = 0; pol 3602 net/key/af_key.c pol->sadb_x_policy_id = 0; pol 3603 net/key/af_key.c pol->sadb_x_policy_priority = 0; pol 69 net/netfilter/xt_policy.c e = &info->pol[pos]; pol 98 net/netfilter/xt_policy.c e = &info->pol[pos]; pol 165 net/xfrm/xfrm_policy.c static void __xfrm_policy_link(struct xfrm_policy *pol, int dir); pol 166 net/xfrm/xfrm_policy.c static struct xfrm_policy *__xfrm_policy_unlink(struct xfrm_policy *pol, pol 522 net/xfrm/xfrm_policy.c struct xfrm_policy *pol; pol 528 net/xfrm/xfrm_policy.c hlist_for_each_entry_safe(pol, tmp, list, bydst) { pol 531 net/xfrm/xfrm_policy.c __get_hash_thresh(net, pol->family, dir, &dbits, &sbits); pol 532 net/xfrm/xfrm_policy.c h = __addr_hash(&pol->selector.daddr, &pol->selector.saddr, pol 533 net/xfrm/xfrm_policy.c pol->family, nhashmask, dbits, sbits); pol 535 net/xfrm/xfrm_policy.c hlist_del_rcu(&pol->bydst); pol 536 net/xfrm/xfrm_policy.c hlist_add_head_rcu(&pol->bydst, ndsttable + h); pol 541 net/xfrm/xfrm_policy.c hlist_del_rcu(&pol->bydst); pol 542 net/xfrm/xfrm_policy.c hlist_add_behind_rcu(&pol->bydst, entry0); pol 544 net/xfrm/xfrm_policy.c entry0 = &pol->bydst; pol 557 net/xfrm/xfrm_policy.c struct xfrm_policy *pol; pol 559 net/xfrm/xfrm_policy.c hlist_for_each_entry_safe(pol, tmp, list, byidx) { pol 562 net/xfrm/xfrm_policy.c h = __idx_hash(pol->index, nhashmask); pol 563 net/xfrm/xfrm_policy.c hlist_add_head(&pol->byidx, nidxtable+h); pol 692 net/xfrm/xfrm_policy.c xfrm_policy_inexact_alloc_bin(const struct xfrm_policy *pol, u8 dir) pol 696 net/xfrm/xfrm_policy.c .family = pol->family, pol 697 net/xfrm/xfrm_policy.c .type = pol->type, pol 699 net/xfrm/xfrm_policy.c .if_id = pol->if_id, pol 701 net/xfrm/xfrm_policy.c struct net *net = xp_net(pol); pol 1212 net/xfrm/xfrm_policy.c struct xfrm_policy *pol; pol 1330 net/xfrm/xfrm_policy.c hlist_for_each_entry(pol, chain, bydst) { pol 1331 net/xfrm/xfrm_policy.c if (policy->priority >= pol->priority) pol 1332 net/xfrm/xfrm_policy.c newpos = &pol->bydst; pol 1434 net/xfrm/xfrm_policy.c struct xfrm_policy *pol) pol 1436 net/xfrm/xfrm_policy.c if (policy->mark.v == pol->mark.v && pol 1437 net/xfrm/xfrm_policy.c policy->priority == pol->priority) pol 1495 net/xfrm/xfrm_policy.c struct xfrm_policy *pol, *delpol = NULL; pol 1499 net/xfrm/xfrm_policy.c hlist_for_each_entry(pol, chain, bydst_inexact_list) { pol 1500 net/xfrm/xfrm_policy.c if (pol->type == policy->type && pol 1501 net/xfrm/xfrm_policy.c pol->if_id == policy->if_id && pol 1502 net/xfrm/xfrm_policy.c !selector_cmp(&pol->selector, &policy->selector) && pol 1503 net/xfrm/xfrm_policy.c xfrm_policy_mark_match(policy, pol) && pol 1504 net/xfrm/xfrm_policy.c xfrm_sec_ctx_match(pol->security, policy->security) && pol 1506 net/xfrm/xfrm_policy.c delpol = pol; pol 1507 net/xfrm/xfrm_policy.c if (policy->priority > pol->priority) pol 1509 net/xfrm/xfrm_policy.c } else if (policy->priority >= pol->priority) { pol 1510 net/xfrm/xfrm_policy.c newpos = &pol->bydst_inexact_list; pol 1522 net/xfrm/xfrm_policy.c hlist_for_each_entry(pol, chain, bydst_inexact_list) { pol 1523 net/xfrm/xfrm_policy.c pol->pos = i; pol 1532 net/xfrm/xfrm_policy.c struct xfrm_policy *pol, *newpos = NULL, *delpol = NULL; pol 1534 net/xfrm/xfrm_policy.c hlist_for_each_entry(pol, chain, bydst) { pol 1535 net/xfrm/xfrm_policy.c if (pol->type == policy->type && pol 1536 net/xfrm/xfrm_policy.c pol->if_id == policy->if_id && pol 1537 net/xfrm/xfrm_policy.c !selector_cmp(&pol->selector, &policy->selector) && pol 1538 net/xfrm/xfrm_policy.c xfrm_policy_mark_match(policy, pol) && pol 1539 net/xfrm/xfrm_policy.c xfrm_sec_ctx_match(pol->security, policy->security) && pol 1543 net/xfrm/xfrm_policy.c delpol = pol; pol 1544 net/xfrm/xfrm_policy.c if (policy->priority > pol->priority) pol 1546 net/xfrm/xfrm_policy.c } else if (policy->priority >= pol->priority) { pol 1547 net/xfrm/xfrm_policy.c newpos = pol; pol 1615 net/xfrm/xfrm_policy.c struct xfrm_policy *pol; pol 1620 net/xfrm/xfrm_policy.c hlist_for_each_entry(pol, chain, bydst) { pol 1621 net/xfrm/xfrm_policy.c if (pol->type == type && pol 1622 net/xfrm/xfrm_policy.c pol->if_id == if_id && pol 1623 net/xfrm/xfrm_policy.c (mark & pol->mark.m) == pol->mark.v && pol 1624 net/xfrm/xfrm_policy.c !selector_cmp(sel, &pol->selector) && pol 1625 net/xfrm/xfrm_policy.c xfrm_sec_ctx_match(ctx, pol->security)) pol 1626 net/xfrm/xfrm_policy.c return pol; pol 1639 net/xfrm/xfrm_policy.c struct xfrm_policy *pol, *ret = NULL; pol 1663 net/xfrm/xfrm_policy.c pol = NULL; pol 1673 net/xfrm/xfrm_policy.c if (!pol || tmp->pos < pol->pos) pol 1674 net/xfrm/xfrm_policy.c pol = tmp; pol 1677 net/xfrm/xfrm_policy.c pol = __xfrm_policy_bysel_ctx(chain, mark, if_id, type, dir, pol 1681 net/xfrm/xfrm_policy.c if (pol) { pol 1682 net/xfrm/xfrm_policy.c xfrm_pol_hold(pol); pol 1684 net/xfrm/xfrm_policy.c *err = security_xfrm_policy_delete(pol->security); pol 1687 net/xfrm/xfrm_policy.c return pol; pol 1689 net/xfrm/xfrm_policy.c __xfrm_policy_unlink(pol, dir); pol 1691 net/xfrm/xfrm_policy.c ret = pol; pol 1707 net/xfrm/xfrm_policy.c struct xfrm_policy *pol, *ret; pol 1718 net/xfrm/xfrm_policy.c hlist_for_each_entry(pol, chain, byidx) { pol 1719 net/xfrm/xfrm_policy.c if (pol->type == type && pol->index == id && pol 1720 net/xfrm/xfrm_policy.c pol->if_id == if_id && pol 1721 net/xfrm/xfrm_policy.c (mark & pol->mark.m) == pol->mark.v) { pol 1722 net/xfrm/xfrm_policy.c xfrm_pol_hold(pol); pol 1725 net/xfrm/xfrm_policy.c pol->security); pol 1728 net/xfrm/xfrm_policy.c return pol; pol 1730 net/xfrm/xfrm_policy.c __xfrm_policy_unlink(pol, dir); pol 1732 net/xfrm/xfrm_policy.c ret = pol; pol 1748 net/xfrm/xfrm_policy.c struct xfrm_policy *pol; pol 1751 net/xfrm/xfrm_policy.c list_for_each_entry(pol, &net->xfrm.policy_all, walk.all) { pol 1752 net/xfrm/xfrm_policy.c if (pol->walk.dead || pol 1753 net/xfrm/xfrm_policy.c xfrm_policy_id2dir(pol->index) >= XFRM_POLICY_MAX || pol 1754 net/xfrm/xfrm_policy.c pol->type != type) pol 1757 net/xfrm/xfrm_policy.c err = security_xfrm_policy_delete(pol->security); pol 1759 net/xfrm/xfrm_policy.c xfrm_audit_policy_delete(pol, 0, task_valid); pol 1776 net/xfrm/xfrm_policy.c struct xfrm_policy *pol; pol 1785 net/xfrm/xfrm_policy.c list_for_each_entry(pol, &net->xfrm.policy_all, walk.all) { pol 1786 net/xfrm/xfrm_policy.c dir = xfrm_policy_id2dir(pol->index); pol 1787 net/xfrm/xfrm_policy.c if (pol->walk.dead || pol 1789 net/xfrm/xfrm_policy.c pol->type != type) pol 1792 net/xfrm/xfrm_policy.c __xfrm_policy_unlink(pol, dir); pol 1795 net/xfrm/xfrm_policy.c xfrm_audit_policy_delete(pol, 1, task_valid); pol 1796 net/xfrm/xfrm_policy.c xfrm_policy_kill(pol); pol 1814 net/xfrm/xfrm_policy.c struct xfrm_policy *pol; pol 1835 net/xfrm/xfrm_policy.c pol = container_of(x, struct xfrm_policy, walk); pol 1837 net/xfrm/xfrm_policy.c walk->type != pol->type) pol 1839 net/xfrm/xfrm_policy.c error = func(pol, xfrm_policy_id2dir(pol->index), pol 1883 net/xfrm/xfrm_policy.c static int xfrm_policy_match(const struct xfrm_policy *pol, pol 1887 net/xfrm/xfrm_policy.c const struct xfrm_selector *sel = &pol->selector; pol 1891 net/xfrm/xfrm_policy.c if (pol->family != family || pol 1892 net/xfrm/xfrm_policy.c pol->if_id != if_id || pol 1893 net/xfrm/xfrm_policy.c (fl->flowi_mark & pol->mark.m) != pol->mark.v || pol 1894 net/xfrm/xfrm_policy.c pol->type != type) pol 1899 net/xfrm/xfrm_policy.c ret = security_xfrm_policy_lookup(pol->security, fl->flowi_secid, pol 2014 net/xfrm/xfrm_policy.c struct xfrm_policy *pol; pol 2019 net/xfrm/xfrm_policy.c hlist_for_each_entry_rcu(pol, chain, bydst) { pol 2022 net/xfrm/xfrm_policy.c if (pol->priority > priority) pol 2025 net/xfrm/xfrm_policy.c err = xfrm_policy_match(pol, fl, type, family, dir, if_id); pol 2035 net/xfrm/xfrm_policy.c if (pol->priority == priority && pol 2036 net/xfrm/xfrm_policy.c prefer->pos < pol->pos) pol 2040 net/xfrm/xfrm_policy.c return pol; pol 2079 net/xfrm/xfrm_policy.c struct xfrm_policy *pol, *ret; pol 2097 net/xfrm/xfrm_policy.c hlist_for_each_entry_rcu(pol, chain, bydst) { pol 2098 net/xfrm/xfrm_policy.c err = xfrm_policy_match(pol, fl, type, family, dir, if_id); pol 2107 net/xfrm/xfrm_policy.c ret = pol; pol 2116 net/xfrm/xfrm_policy.c pol = xfrm_policy_eval_candidates(&cand, ret, fl, type, pol 2118 net/xfrm/xfrm_policy.c if (pol) { pol 2119 net/xfrm/xfrm_policy.c ret = pol; pol 2120 net/xfrm/xfrm_policy.c if (IS_ERR(pol)) pol 2141 net/xfrm/xfrm_policy.c struct xfrm_policy *pol; pol 2143 net/xfrm/xfrm_policy.c pol = xfrm_policy_lookup_bytype(net, XFRM_POLICY_TYPE_SUB, fl, family, pol 2145 net/xfrm/xfrm_policy.c if (pol != NULL) pol 2146 net/xfrm/xfrm_policy.c return pol; pol 2156 net/xfrm/xfrm_policy.c struct xfrm_policy *pol; pol 2160 net/xfrm/xfrm_policy.c pol = rcu_dereference(sk->sk_policy[dir]); pol 2161 net/xfrm/xfrm_policy.c if (pol != NULL) { pol 2165 net/xfrm/xfrm_policy.c if (pol->family != family) { pol 2166 net/xfrm/xfrm_policy.c pol = NULL; pol 2170 net/xfrm/xfrm_policy.c match = xfrm_selector_match(&pol->selector, fl, family); pol 2172 net/xfrm/xfrm_policy.c if ((sk->sk_mark & pol->mark.m) != pol->mark.v || pol 2173 net/xfrm/xfrm_policy.c pol->if_id != if_id) { pol 2174 net/xfrm/xfrm_policy.c pol = NULL; pol 2177 net/xfrm/xfrm_policy.c err = security_xfrm_policy_lookup(pol->security, pol 2181 net/xfrm/xfrm_policy.c if (!xfrm_pol_hold_rcu(pol)) pol 2184 net/xfrm/xfrm_policy.c pol = NULL; pol 2186 net/xfrm/xfrm_policy.c pol = ERR_PTR(err); pol 2189 net/xfrm/xfrm_policy.c pol = NULL; pol 2193 net/xfrm/xfrm_policy.c return pol; pol 2196 net/xfrm/xfrm_policy.c static void __xfrm_policy_link(struct xfrm_policy *pol, int dir) pol 2198 net/xfrm/xfrm_policy.c struct net *net = xp_net(pol); pol 2200 net/xfrm/xfrm_policy.c list_add(&pol->walk.all, &net->xfrm.policy_all); pol 2202 net/xfrm/xfrm_policy.c xfrm_pol_hold(pol); pol 2205 net/xfrm/xfrm_policy.c static struct xfrm_policy *__xfrm_policy_unlink(struct xfrm_policy *pol, pol 2208 net/xfrm/xfrm_policy.c struct net *net = xp_net(pol); pol 2210 net/xfrm/xfrm_policy.c if (list_empty(&pol->walk.all)) pol 2214 net/xfrm/xfrm_policy.c if (!hlist_unhashed(&pol->bydst)) { pol 2215 net/xfrm/xfrm_policy.c hlist_del_rcu(&pol->bydst); pol 2216 net/xfrm/xfrm_policy.c hlist_del_init(&pol->bydst_inexact_list); pol 2217 net/xfrm/xfrm_policy.c hlist_del(&pol->byidx); pol 2220 net/xfrm/xfrm_policy.c list_del_init(&pol->walk.all); pol 2223 net/xfrm/xfrm_policy.c return pol; pol 2226 net/xfrm/xfrm_policy.c static void xfrm_sk_policy_link(struct xfrm_policy *pol, int dir) pol 2228 net/xfrm/xfrm_policy.c __xfrm_policy_link(pol, XFRM_POLICY_MAX + dir); pol 2231 net/xfrm/xfrm_policy.c static void xfrm_sk_policy_unlink(struct xfrm_policy *pol, int dir) pol 2233 net/xfrm/xfrm_policy.c __xfrm_policy_unlink(pol, XFRM_POLICY_MAX + dir); pol 2236 net/xfrm/xfrm_policy.c int xfrm_policy_delete(struct xfrm_policy *pol, int dir) pol 2238 net/xfrm/xfrm_policy.c struct net *net = xp_net(pol); pol 2241 net/xfrm/xfrm_policy.c pol = __xfrm_policy_unlink(pol, dir); pol 2243 net/xfrm/xfrm_policy.c if (pol) { pol 2244 net/xfrm/xfrm_policy.c xfrm_policy_kill(pol); pol 2251 net/xfrm/xfrm_policy.c int xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol) pol 2257 net/xfrm/xfrm_policy.c if (pol && pol->type != XFRM_POLICY_TYPE_MAIN) pol 2264 net/xfrm/xfrm_policy.c if (pol) { pol 2265 net/xfrm/xfrm_policy.c pol->curlft.add_time = ktime_get_real_seconds(); pol 2266 net/xfrm/xfrm_policy.c pol->index = xfrm_gen_index(net, XFRM_POLICY_MAX+dir, 0); pol 2267 net/xfrm/xfrm_policy.c xfrm_sk_policy_link(pol, dir); pol 2269 net/xfrm/xfrm_policy.c rcu_assign_pointer(sk->sk_policy[dir], pol); pol 2271 net/xfrm/xfrm_policy.c if (pol) pol 2272 net/xfrm/xfrm_policy.c xfrm_policy_requeue(old_pol, pol); pol 2754 net/xfrm/xfrm_policy.c struct xfrm_policy *pol = from_timer(pol, t, polq.hold_timer); pol 2755 net/xfrm/xfrm_policy.c struct net *net = xp_net(pol); pol 2756 net/xfrm/xfrm_policy.c struct xfrm_policy_queue *pq = &pol->polq; pol 2784 net/xfrm/xfrm_policy.c xfrm_pol_hold(pol); pol 2816 net/xfrm/xfrm_policy.c xfrm_pol_put(pol); pol 2822 net/xfrm/xfrm_policy.c xfrm_pol_put(pol); pol 2830 net/xfrm/xfrm_policy.c struct xfrm_policy *pol = xdst->pols[0]; pol 2831 net/xfrm/xfrm_policy.c struct xfrm_policy_queue *pq = &pol->polq; pol 2855 net/xfrm/xfrm_policy.c xfrm_pol_put(pol); pol 2860 net/xfrm/xfrm_policy.c xfrm_pol_hold(pol); pol 3506 net/xfrm/xfrm_policy.c struct xfrm_policy *pol; pol 3555 net/xfrm/xfrm_policy.c pol = NULL; pol 3558 net/xfrm/xfrm_policy.c pol = xfrm_sk_policy_lookup(sk, dir, &fl, family, if_id); pol 3559 net/xfrm/xfrm_policy.c if (IS_ERR(pol)) { pol 3565 net/xfrm/xfrm_policy.c if (!pol) pol 3566 net/xfrm/xfrm_policy.c pol = xfrm_policy_lookup(net, &fl, family, dir, if_id); pol 3568 net/xfrm/xfrm_policy.c if (IS_ERR(pol)) { pol 3573 net/xfrm/xfrm_policy.c if (!pol) { pol 3582 net/xfrm/xfrm_policy.c pol->curlft.use_time = ktime_get_real_seconds(); pol 3584 net/xfrm/xfrm_policy.c pols[0] = pol; pol 3602 net/xfrm/xfrm_policy.c if (pol->action == XFRM_POLICY_ALLOW) { pol 3615 net/xfrm/xfrm_policy.c if (pols[pi] != pol && pol 4251 net/xfrm/xfrm_policy.c struct xfrm_policy *pol, *ret = NULL; pol 4257 net/xfrm/xfrm_policy.c hlist_for_each_entry(pol, chain, bydst) { pol 4258 net/xfrm/xfrm_policy.c if (xfrm_migrate_selector_match(sel, &pol->selector) && pol 4259 net/xfrm/xfrm_policy.c pol->type == type) { pol 4260 net/xfrm/xfrm_policy.c ret = pol; pol 4266 net/xfrm/xfrm_policy.c hlist_for_each_entry(pol, chain, bydst_inexact_list) { pol 4267 net/xfrm/xfrm_policy.c if ((pol->priority >= priority) && ret) pol 4270 net/xfrm/xfrm_policy.c if (xfrm_migrate_selector_match(sel, &pol->selector) && pol 4271 net/xfrm/xfrm_policy.c pol->type == type) { pol 4272 net/xfrm/xfrm_policy.c ret = pol; pol 4314 net/xfrm/xfrm_policy.c static int xfrm_policy_migrate(struct xfrm_policy *pol, pol 4320 net/xfrm/xfrm_policy.c write_lock_bh(&pol->lock); pol 4321 net/xfrm/xfrm_policy.c if (unlikely(pol->walk.dead)) { pol 4323 net/xfrm/xfrm_policy.c write_unlock_bh(&pol->lock); pol 4327 net/xfrm/xfrm_policy.c for (i = 0; i < pol->xfrm_nr; i++) { pol 4329 net/xfrm/xfrm_policy.c if (!migrate_tmpl_match(mp, &pol->xfrm_vec[i])) pol 4332 net/xfrm/xfrm_policy.c if (pol->xfrm_vec[i].mode != XFRM_MODE_TUNNEL && pol 4333 net/xfrm/xfrm_policy.c pol->xfrm_vec[i].mode != XFRM_MODE_BEET) pol 4336 net/xfrm/xfrm_policy.c memcpy(&pol->xfrm_vec[i].id.daddr, &mp->new_daddr, pol 4337 net/xfrm/xfrm_policy.c sizeof(pol->xfrm_vec[i].id.daddr)); pol 4338 net/xfrm/xfrm_policy.c memcpy(&pol->xfrm_vec[i].saddr, &mp->new_saddr, pol 4339 net/xfrm/xfrm_policy.c sizeof(pol->xfrm_vec[i].saddr)); pol 4340 net/xfrm/xfrm_policy.c pol->xfrm_vec[i].encap_family = mp->new_family; pol 4342 net/xfrm/xfrm_policy.c atomic_inc(&pol->genid); pol 4346 net/xfrm/xfrm_policy.c write_unlock_bh(&pol->lock); pol 4389 net/xfrm/xfrm_policy.c struct xfrm_policy *pol = NULL; pol 4405 net/xfrm/xfrm_policy.c if ((pol = xfrm_migrate_policy_find(sel, dir, type, net)) == NULL) { pol 4427 net/xfrm/xfrm_policy.c if ((err = xfrm_policy_migrate(pol, m, num_migrate)) < 0) pol 4439 net/xfrm/xfrm_policy.c xfrm_pol_put(pol); pol 4446 net/xfrm/xfrm_policy.c if (pol) pol 4447 net/xfrm/xfrm_policy.c xfrm_pol_put(pol); pol 178 net/xfrm/xfrm_state.c int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol); pol 1001 net/xfrm/xfrm_state.c static void xfrm_state_look_at(struct xfrm_policy *pol, struct xfrm_state *x, pol 1020 net/xfrm/xfrm_state.c !security_xfrm_state_pol_flow_match(x, pol, fl)) pol 1033 net/xfrm/xfrm_state.c security_xfrm_state_pol_flow_match(x, pol, fl)) pol 1041 net/xfrm/xfrm_state.c struct xfrm_policy *pol, int *err, pol 1045 net/xfrm/xfrm_state.c struct net *net = xp_net(pol); pol 1051 net/xfrm/xfrm_state.c u32 mark = pol->mark.v & pol->mark.m; pol 1072 net/xfrm/xfrm_state.c xfrm_state_look_at(pol, x, fl, encap_family, pol 1089 net/xfrm/xfrm_state.c xfrm_state_look_at(pol, x, fl, encap_family, pol 1122 net/xfrm/xfrm_state.c memcpy(&x->mark, &pol->mark, sizeof(x->mark)); pol 1125 net/xfrm/xfrm_state.c error = security_xfrm_state_alloc_acquire(x, pol->security, fl->flowi_secid); pol 1133 net/xfrm/xfrm_state.c if (km_query(x, tmpl, pol) == 0) { pol 2159 net/xfrm/xfrm_state.c int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol) pol 2166 net/xfrm/xfrm_state.c acqret = km->acquire(x, t, pol); pol 2192 net/xfrm/xfrm_state.c void km_policy_expired(struct xfrm_policy *pol, int dir, int hard, u32 portid) pol 2199 net/xfrm/xfrm_state.c km_policy_notify(pol, dir, &c); pol 2269 net/xfrm/xfrm_state.c struct xfrm_policy *pol = NULL; pol 2291 net/xfrm/xfrm_state.c pol = km->compile_policy(sk, optname, data, pol 2299 net/xfrm/xfrm_state.c xfrm_sk_policy_insert(sk, err, pol); pol 2300 net/xfrm/xfrm_state.c xfrm_pol_put(pol); pol 1454 net/xfrm/xfrm_user.c static int copy_from_user_sec_ctx(struct xfrm_policy *pol, struct nlattr **attrs) pol 1463 net/xfrm/xfrm_user.c return security_xfrm_policy_alloc(&pol->security, uctx, GFP_KERNEL); pol 1544 net/xfrm/xfrm_user.c static int copy_from_user_tmpl(struct xfrm_policy *pol, struct nlattr **attrs) pol 1549 net/xfrm/xfrm_user.c pol->xfrm_nr = 0; pol 1555 net/xfrm/xfrm_user.c err = validate_tmpl(nr, utmpl, pol->family); pol 1559 net/xfrm/xfrm_user.c copy_templates(pol, utmpl, nr); pol 2165 net/xfrm/xfrm_user.c struct xfrm_userpolicy_info *p = &up->pol; pol 3061 net/xfrm/xfrm_user.c copy_to_user_policy(xp, &upe->pol, dir); pol 53 security/safesetid/lsm.c struct setuid_ruleset *pol; pol 56 security/safesetid/lsm.c pol = rcu_dereference(safesetid_setuid_rules); pol 57 security/safesetid/lsm.c if (pol) pol 58 security/safesetid/lsm.c result = _setuid_policy_lookup(pol, src, dst); pol 62 security/safesetid/securityfs.c struct setuid_ruleset *pol = pol 68 security/safesetid/securityfs.c hash_for_each_safe(pol->rules, bucket, tmp, rule, next) pol 70 security/safesetid/securityfs.c kfree(pol->policy_str); pol 71 security/safesetid/securityfs.c kfree(pol); pol 74 security/safesetid/securityfs.c static void release_ruleset(struct setuid_ruleset *pol) pol 76 security/safesetid/securityfs.c call_rcu(&pol->rcu, __release_ruleset); pol 79 security/safesetid/securityfs.c static void insert_rule(struct setuid_ruleset *pol, struct setuid_rule *rule) pol 81 security/safesetid/securityfs.c hash_add(pol->rules, &rule->next, __kuid_val(rule->src_uid)); pol 84 security/safesetid/securityfs.c static int verify_ruleset(struct setuid_ruleset *pol) pol 90 security/safesetid/securityfs.c hash_for_each(pol->rules, bucket, rule, next) { pol 91 security/safesetid/securityfs.c if (_setuid_policy_lookup(pol, rule->dst_uid, INVALID_UID) == pol 104 security/safesetid/securityfs.c insert_rule(pol, nrule); pol 113 security/safesetid/securityfs.c struct setuid_ruleset *pol; pol 117 security/safesetid/securityfs.c pol = kmalloc(sizeof(struct setuid_ruleset), GFP_KERNEL); pol 118 security/safesetid/securityfs.c if (!pol) pol 120 security/safesetid/securityfs.c pol->policy_str = NULL; pol 121 security/safesetid/securityfs.c hash_init(pol->rules); pol 128 security/safesetid/securityfs.c pol->policy_str = kstrdup(buf, GFP_KERNEL); pol 129 security/safesetid/securityfs.c if (pol->policy_str == NULL) { pol 155 security/safesetid/securityfs.c if (_setuid_policy_lookup(pol, rule->src_uid, rule->dst_uid) == pol 162 security/safesetid/securityfs.c insert_rule(pol, rule); pol 171 security/safesetid/securityfs.c err = verify_ruleset(pol); pol 182 security/safesetid/securityfs.c rcu_swap_protected(safesetid_setuid_rules, pol, pol 190 security/safesetid/securityfs.c if (pol) pol 191 security/safesetid/securityfs.c release_ruleset(pol); pol 213 security/safesetid/securityfs.c struct setuid_ruleset *pol; pol 217 security/safesetid/securityfs.c pol = rcu_dereference_protected(safesetid_setuid_rules, pol 219 security/safesetid/securityfs.c if (pol) { pol 220 security/safesetid/securityfs.c kbuf = pol->policy_str; pol 387 security/selinux/ss/avtab.c int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol, pol 394 security/selinux/ss/avtab.c u32 items, items2, val, vers = pol->policyvers; pol 490 security/selinux/ss/avtab.c if (!policydb_type_isvalid(pol, key.source_type) || pol 491 security/selinux/ss/avtab.c !policydb_type_isvalid(pol, key.target_type) || pol 492 security/selinux/ss/avtab.c !policydb_class_isvalid(pol, key.target_class)) { pol 542 security/selinux/ss/avtab.c !policydb_type_isvalid(pol, datum.u.data)) { pol 555 security/selinux/ss/avtab.c int avtab_read(struct avtab *a, void *fp, struct policydb *pol) pol 579 security/selinux/ss/avtab.c rc = avtab_read_item(a, fp, pol, avtab_insertf, NULL); pol 97 security/selinux/ss/avtab.h int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol, pol 102 security/selinux/ss/avtab.h int avtab_read(struct avtab *a, void *fp, struct policydb *pol); pol 234 security/selinux/ss/mls.c int mls_context_to_sid(struct policydb *pol, pol 247 security/selinux/ss/mls.c if (!pol->mls_enabled) { pol 296 security/selinux/ss/mls.c levdatum = hashtab_search(pol->p_levels.table, sensitivity); pol 315 security/selinux/ss/mls.c catdatum = hashtab_search(pol->p_cats.table, cur_cat); pol 328 security/selinux/ss/mls.c rngdatum = hashtab_search(pol->p_cats.table, rngptr); pol 101 security/selinux/ss/services.c static int selinux_set_mapping(struct policydb *pol, pol 133 security/selinux/ss/services.c p_out->value = string_to_security_class(pol, p_in->name); pol 137 security/selinux/ss/services.c if (pol->reject_unknown) pol 151 security/selinux/ss/services.c p_out->perms[k] = string_to_av_perm(pol, p_out->value, pol 156 security/selinux/ss/services.c if (pol->reject_unknown) pol 168 security/selinux/ss/services.c pol->allow_unknown ? "allowed" : "denied"); pol 1374 security/selinux/ss/services.c static int string_to_context_struct(struct policydb *pol, pol 1403 security/selinux/ss/services.c usrdatum = hashtab_search(pol->p_users.table, scontextp); pol 1419 security/selinux/ss/services.c role = hashtab_search(pol->p_roles.table, scontextp); pol 1431 security/selinux/ss/services.c typdatum = hashtab_search(pol->p_types.table, scontextp); pol 1437 security/selinux/ss/services.c rc = mls_context_to_sid(pol, oldc, p, ctx, sidtabp, def_sid); pol 1443 security/selinux/ss/services.c if (!policydb_context_isvalid(pol, ctx)) pol 4031 sound/pci/hda/patch_realtek.c int pol, pin; pol 4032 sound/pci/hda/patch_realtek.c if (sscanf(dev->name, "HP_Mute_LED_%d_%x", &pol, &pin) != 2) pol 4036 sound/pci/hda/patch_realtek.c spec->mute_led_polarity = pol; pol 674 tools/power/cpupower/lib/cpufreq.c struct cpufreq_policy *pol = cpufreq_get_policy(cpu); pol 679 tools/power/cpupower/lib/cpufreq.c if (!pol) pol 682 tools/power/cpupower/lib/cpufreq.c if (strncmp(pol->governor, userspace_gov, 9) != 0) { pol 685 tools/power/cpupower/lib/cpufreq.c cpufreq_put_policy(pol); pol 690 tools/power/cpupower/lib/cpufreq.c cpufreq_put_policy(pol);