/Linux-v4.19/include/linux/ |
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 …]
|
D | blk-cgroup.h | 194 int blkcg_policy_register(struct blkcg_policy *pol); 195 void blkcg_policy_unregister(struct blkcg_policy *pol); 197 const struct blkcg_policy *pol); 199 const struct blkcg_policy *pol); 205 const struct blkcg_policy *pol, int data, 219 struct blkcg_policy *pol, int off); 221 struct blkcg_policy *pol, int off); 229 int blkg_conf_prep(struct blkcg *blkcg, const struct blkcg_policy *pol, 363 struct blkcg_policy *pol) in blkg_to_pd() argument 365 return blkg ? blkg->pd[pol->plid] : NULL; in blkg_to_pd() [all …]
|
/Linux-v4.19/block/ |
D | blk-cgroup.c | 57 const struct blkcg_policy *pol) in blkcg_policy_enabled() argument 59 return pol && test_bit(pol->plid, q->blkcg_pols); in blkcg_policy_enabled() 123 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_alloc() local 126 if (!blkcg_policy_enabled(q, pol)) in blkg_alloc() 130 pd = pol->pd_alloc_fn(gfp_mask, q->node); in blkg_alloc() 222 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_create() local 224 if (blkg->pd[i] && pol->pd_init_fn) in blkg_create() 225 pol->pd_init_fn(blkg->pd[i]); in blkg_create() 236 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_create() local 238 if (blkg->pd[i] && pol->pd_online_fn) in blkg_create() [all …]
|
/Linux-v4.19/mm/ |
D | mempolicy.c | 132 struct mempolicy *pol = p->mempolicy; in get_task_policy() local 135 if (pol) in get_task_policy() 136 return pol; in get_task_policy() 140 pol = &preferred_node_policy[node]; in get_task_policy() 142 if (pol->mode) in get_task_policy() 143 return pol; in get_task_policy() 150 int (*create)(struct mempolicy *pol, const nodemask_t *nodes); 151 void (*rebind)(struct mempolicy *pol, const nodemask_t *nodes); 154 static inline int mpol_store_user_nodemask(const struct mempolicy *pol) in mpol_store_user_nodemask() argument 156 return pol->flags & MPOL_MODE_FLAGS; in mpol_store_user_nodemask() [all …]
|
/Linux-v4.19/net/xfrm/ |
D | xfrm_policy.c | 63 static void __xfrm_policy_link(struct xfrm_policy *pol, int dir); 64 static struct xfrm_policy *__xfrm_policy_unlink(struct xfrm_policy *pol, 398 struct xfrm_policy *pol; in xfrm_dst_hash_transfer() local 404 hlist_for_each_entry_safe(pol, tmp, list, bydst) { in xfrm_dst_hash_transfer() 407 __get_hash_thresh(net, pol->family, dir, &dbits, &sbits); in xfrm_dst_hash_transfer() 408 h = __addr_hash(&pol->selector.daddr, &pol->selector.saddr, in xfrm_dst_hash_transfer() 409 pol->family, nhashmask, dbits, sbits); in xfrm_dst_hash_transfer() 411 hlist_del_rcu(&pol->bydst); in xfrm_dst_hash_transfer() 412 hlist_add_head_rcu(&pol->bydst, ndsttable + h); in xfrm_dst_hash_transfer() 417 hlist_del_rcu(&pol->bydst); in xfrm_dst_hash_transfer() [all …]
|
/Linux-v4.19/drivers/cpufreq/ |
D | powernow-k8.c | 929 struct cpufreq_policy *pol; member 936 struct cpufreq_policy *pol = pta->pol; in powernowk8_target_fn() local 938 struct powernow_k8_data *data = per_cpu(powernow_data, pol->cpu); in powernowk8_target_fn() 955 pol->cpu, data->powernow_table[newstate].frequency, pol->min, in powernowk8_target_fn() 956 pol->max); in powernowk8_target_fn() 984 pol->cur = find_khz_freq_from_fid(data->currfid); in powernowk8_target_fn() 990 static int powernowk8_target(struct cpufreq_policy *pol, unsigned index) in powernowk8_target() argument 992 struct powernowk8_target_arg pta = { .pol = pol, .newstate = index }; in powernowk8_target() 994 return work_on_cpu(pol->cpu, powernowk8_target_fn, &pta); in powernowk8_target() 1028 static int powernowk8_cpu_init(struct cpufreq_policy *pol) in powernowk8_cpu_init() argument [all …]
|
/Linux-v4.19/drivers/irqchip/ |
D | irq-tb10x.c | 57 uint32_t im, mod, pol; in tb10x_irq_set_type() local 64 pol = ab_irqctl_readreg(gc, AB_IRQCTL_SRC_POLARITY) | im; in tb10x_irq_set_type() 68 pol ^= im; in tb10x_irq_set_type() 77 pol ^= im; in tb10x_irq_set_type() 92 ab_irqctl_writereg(gc, AB_IRQCTL_SRC_POLARITY, pol); in tb10x_irq_set_type()
|
D | irq-mips-gic.c | 205 unsigned int irq, pol, trig, dual; in gic_set_type() local 213 pol = GIC_POL_FALLING_EDGE; in gic_set_type() 218 pol = GIC_POL_RISING_EDGE; in gic_set_type() 223 pol = 0; /* Doesn't matter */ in gic_set_type() 228 pol = GIC_POL_ACTIVE_LOW; in gic_set_type() 234 pol = GIC_POL_ACTIVE_HIGH; in gic_set_type() 240 change_gic_pol(irq, pol); in gic_set_type()
|
/Linux-v4.19/net/key/ |
D | af_key.c | 1999 parse_ipsecrequests(struct xfrm_policy *xp, struct sadb_x_policy *pol) in parse_ipsecrequests() argument 2002 int len = pol->sadb_x_policy_len*8 - sizeof(struct sadb_x_policy); in parse_ipsecrequests() 2003 struct sadb_x_ipsecrequest *rq = (void*)(pol+1); in parse_ipsecrequests() 2005 if (pol->sadb_x_policy_len * 8 < sizeof(struct sadb_x_policy)) in parse_ipsecrequests() 2074 struct sadb_x_policy *pol; in pfkey_xfrm_policy2msg() local 2145 pol = skb_put(skb, sizeof(struct sadb_x_policy)); in pfkey_xfrm_policy2msg() 2146 pol->sadb_x_policy_len = sizeof(struct sadb_x_policy)/sizeof(uint64_t); in pfkey_xfrm_policy2msg() 2147 pol->sadb_x_policy_exttype = SADB_X_EXT_POLICY; in pfkey_xfrm_policy2msg() 2148 pol->sadb_x_policy_type = IPSEC_POLICY_DISCARD; in pfkey_xfrm_policy2msg() 2151 pol->sadb_x_policy_type = IPSEC_POLICY_IPSEC; in pfkey_xfrm_policy2msg() [all …]
|
/Linux-v4.19/drivers/gpu/drm/omapdrm/dss/ |
D | hdmi_phy.c | 40 u8 lane, pol; in hdmi_phy_parse_lanes() local 55 pol = 1; in hdmi_phy_parse_lanes() 59 pol = 0; in hdmi_phy_parse_lanes() 65 phy->lane_polarity[lane] = pol; in hdmi_phy_parse_lanes()
|
/Linux-v4.19/drivers/video/fbdev/omap2/omapfb/dss/ |
D | hdmi_phy.c | 49 u8 lane, pol; in hdmi_phy_parse_lanes() local 64 pol = 1; in hdmi_phy_parse_lanes() 68 pol = 0; in hdmi_phy_parse_lanes() 74 phy->lane_polarity[lane] = pol; in hdmi_phy_parse_lanes()
|
/Linux-v4.19/drivers/gpu/drm/fsl-dcu/ |
D | fsl_dcu_drm_crtc.c | 88 unsigned int hbp, hfp, hsw, vbp, vfp, vsw, index, pol = 0; in fsl_dcu_drm_crtc_mode_set_nofb() local 103 pol |= DCU_SYN_POL_INV_PXCK; in fsl_dcu_drm_crtc_mode_set_nofb() 106 pol |= DCU_SYN_POL_INV_HS_LOW; in fsl_dcu_drm_crtc_mode_set_nofb() 109 pol |= DCU_SYN_POL_INV_VS_LOW; in fsl_dcu_drm_crtc_mode_set_nofb() 122 regmap_write(fsl_dev->regmap, DCU_SYN_POL, pol); in fsl_dcu_drm_crtc_mode_set_nofb()
|
/Linux-v4.19/drivers/mfd/ |
D | wm8350-gpio.c | 167 static int gpio_set_polarity(struct wm8350 *wm8350, int gpio, int pol) in gpio_set_polarity() argument 169 if (pol == WM8350_GPIO_ACTIVE_HIGH) in gpio_set_polarity() 189 int pol, int pull, int invert, int debounce) in wm8350_gpio_config() argument 211 if (gpio_set_polarity(wm8350, gpio, pol)) in wm8350_gpio_config()
|
/Linux-v4.19/drivers/staging/media/zoran/ |
D | zr36060.c | 593 struct vfe_polarity *pol) in zr36060_set_video() argument 615 reg = (!pol->vsync_pol ? ZR060_VPR_VSPol : 0) in zr36060_set_video() 616 | (!pol->hsync_pol ? ZR060_VPR_HSPol : 0) in zr36060_set_video() 617 | (pol->field_pol ? ZR060_VPR_FIPol : 0) in zr36060_set_video() 618 | (pol->blank_pol ? ZR060_VPR_BLPol : 0) in zr36060_set_video() 619 | (pol->subimg_pol ? ZR060_VPR_SImgPol : 0) in zr36060_set_video() 620 | (pol->poe_pol ? ZR060_VPR_PoePol : 0) in zr36060_set_video() 621 | (pol->pvalid_pol ? ZR060_VPR_PValPol : 0) in zr36060_set_video() 622 | (pol->vclk_pol ? ZR060_VPR_VCLKPol : 0); in zr36060_set_video()
|
/Linux-v4.19/drivers/gpio/ |
D | gpio-xlp.c | 171 int pol, irq_type; in xlp_gpio_set_irq_type() local 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() 184 pol = XLP_GPIO_IRQ_POL_HIGH; in xlp_gpio_set_irq_type() 188 pol = XLP_GPIO_IRQ_POL_LOW; in xlp_gpio_set_irq_type() 195 xlp_gpio_set_reg(priv->gpio_intr_pol, d->hwirq, pol); in xlp_gpio_set_irq_type()
|
D | gpio-grgpio.c | 129 u32 pol; in grgpio_irq_set_type() local 134 pol = 0; in grgpio_irq_set_type() 138 pol = mask; in grgpio_irq_set_type() 142 pol = 0; in grgpio_irq_set_type() 146 pol = mask; in grgpio_irq_set_type() 158 priv->gc.write_reg(priv->regs + GRGPIO_IPOL, ipol | pol); in grgpio_irq_set_type()
|
/Linux-v4.19/drivers/staging/media/omap4iss/ |
D | iss_csiphy.c | 40 reg |= (phy->lanes.data[i].pol ? in csiphy_lanes_config() 48 reg |= phy->lanes.clk.pol ? CSI2_COMPLEXIO_CFG_CLOCK_POL : 0; in csiphy_lanes_config() 182 if (lanes->data[i].pol > 1 || in omap4iss_csiphy_config() 193 if (lanes->clk.pol > 1 || in omap4iss_csiphy_config()
|
/Linux-v4.19/security/selinux/ss/ |
D | avtab.h | 101 int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol, 106 int avtab_read(struct avtab *a, void *fp, struct policydb *pol);
|
D | avtab.c | 389 int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol, in avtab_read_item() argument 396 u32 items, items2, val, vers = pol->policyvers; in avtab_read_item() 492 if (!policydb_type_isvalid(pol, key.source_type) || in avtab_read_item() 493 !policydb_type_isvalid(pol, key.target_type) || in avtab_read_item() 494 !policydb_class_isvalid(pol, key.target_class)) { in avtab_read_item() 544 !policydb_type_isvalid(pol, datum.u.data)) { in avtab_read_item() 557 int avtab_read(struct avtab *a, void *fp, struct policydb *pol) in avtab_read() argument 581 rc = avtab_read_item(a, fp, pol, avtab_insertf, NULL); in avtab_read()
|
D | mls.c | 236 int mls_context_to_sid(struct policydb *pol, in mls_context_to_sid() argument 250 if (!pol->mls_enabled) { in mls_context_to_sid() 284 levdatum = hashtab_search(pol->p_levels.table, scontextp); in mls_context_to_sid() 309 catdatum = hashtab_search(pol->p_cats.table, in mls_context_to_sid() 325 rngdatum = hashtab_search(pol->p_cats.table, rngptr); in mls_context_to_sid()
|
/Linux-v4.19/Documentation/devicetree/bindings/phy/ |
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-v4.19/drivers/media/platform/omap3isp/ |
D | ispcsiphy.c | 189 if (lanes->data[i].pol > 1 || lanes->data[i].pos > 3) in omap3isp_csiphy_config() 198 if (lanes->clk.pol > 1 || lanes->clk.pos > 3) in omap3isp_csiphy_config() 247 reg |= (lanes->data[i].pol << in omap3isp_csiphy_config() 255 reg |= lanes->clk.pol << ISPCSI2_PHY_CFG_CLOCK_POL_SHIFT; in omap3isp_csiphy_config()
|
/Linux-v4.19/Documentation/devicetree/bindings/extcon/ |
D | extcon-arizona.txt | 27 - wlf,micd-pol-gpio : GPIO specifier for the GPIO controlling the headset 47 The third cell represents the value of the micd-pol-gpio pin. 65 wlf,micd-pol-gpio = <&codec 2 0>;
|
/Linux-v4.19/drivers/input/touchscreen/ |
D | wm97xx-core.c | 233 enum wm97xx_gpio_pol pol, enum wm97xx_gpio_sticky sticky, in wm97xx_config_gpio() argument 241 if (pol == WM97XX_GPIO_POL_HIGH) in wm97xx_config_gpio() 308 u16 status, pol; in wm97xx_pen_irq_worker() local 311 pol = wm97xx_reg_read(wm, AC97_GPIO_POLARITY); in wm97xx_pen_irq_worker() 313 if (WM97XX_GPIO_13 & pol & status) { in wm97xx_pen_irq_worker() 315 wm97xx_reg_write(wm, AC97_GPIO_POLARITY, pol & in wm97xx_pen_irq_worker() 319 wm97xx_reg_write(wm, AC97_GPIO_POLARITY, pol | in wm97xx_pen_irq_worker()
|
/Linux-v4.19/tools/power/cpupower/lib/ |
D | cpufreq.c | 614 struct cpufreq_policy *pol = cpufreq_get_policy(cpu); in cpufreq_set_frequency() local 619 if (!pol) in cpufreq_set_frequency() 622 if (strncmp(pol->governor, userspace_gov, 9) != 0) { in cpufreq_set_frequency() 625 cpufreq_put_policy(pol); in cpufreq_set_frequency() 630 cpufreq_put_policy(pol); in cpufreq_set_frequency()
|