Home
last modified time | relevance | path

Searched refs:pol (Results 1 – 25 of 76) sorted by relevance

1234

/linux/mm/
H A Dmempolicy.c201 struct mempolicy *pol = p->mempolicy; in get_task_policy() local
204 if (pol) in get_task_policy()
205 return pol; in get_task_policy()
209 pol = &preferred_node_policy[node]; in get_task_policy()
211 if (pol->mode) in get_task_policy()
212 return pol; in get_task_policy()
219 int (*create)(struct mempolicy *pol, const nodemask_t *nodes);
220 void (*rebind)(struct mempolicy *pol, const nodemask_t *nodes);
223 static inline int mpol_store_user_nodemask(const struct mempolicy *pol) in mpol_store_user_nodemask() argument
225 return pol->flags & MPOL_MODE_FLAGS; in mpol_store_user_nodemask()
[all …]
/linux/security/ipe/
H A Dpolicy_tests.c250 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 Deval.c319 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 Dblk-cgroup.c114 const struct blkcg_policy *pol) in blkcg_policy_enabled() argument
116 return pol && test_bit(pol->plid, q->blkcg_pols); in blkcg_policy_enabled()
339 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_alloc() local
342 if (!blkcg_policy_enabled(disk->queue, pol)) in blkg_alloc()
346 pd = pol->pd_alloc_fn(disk, blkcg, gfp_mask); in blkg_alloc()
417 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_create() local
419 if (blkg->pd[i] && pol->pd_init_fn) in blkg_create()
420 pol->pd_init_fn(blkg->pd[i]); in blkg_create()
431 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_create() local
434 if (pol->pd_online_fn) in blkg_create()
[all …]
H A Dblk-cgroup-rwstat.c97 void blkg_rwstat_recursive_sum(struct blkcg_gq *blkg, struct blkcg_policy *pol, in blkg_rwstat_recursive_sum() argument
114 if (pol) in blkg_rwstat_recursive_sum()
115 rwstat = (void *)blkg_to_pd(pos_blkg, pol) + off; in blkg_rwstat_recursive_sum()
/linux/net/xfrm/
H A Dxfrm_policy.c190 static void __xfrm_policy_link(struct xfrm_policy *pol, int dir);
191 static struct xfrm_policy *__xfrm_policy_unlink(struct xfrm_policy *pol,
579 struct xfrm_policy *pol; in xfrm_dst_hash_transfer() local
585 hlist_for_each_entry_safe(pol, tmp, list, bydst) { in xfrm_dst_hash_transfer()
588 __get_hash_thresh(net, pol->family, dir, &dbits, &sbits); in xfrm_dst_hash_transfer()
589 h = __addr_hash(&pol->selector.daddr, &pol->selector.saddr, in xfrm_dst_hash_transfer()
590 pol->family, nhashmask, dbits, sbits); in xfrm_dst_hash_transfer()
591 if (!entry0 || pol->xdo.type == XFRM_DEV_OFFLOAD_PACKET) { in xfrm_dst_hash_transfer()
592 hlist_del_rcu(&pol->bydst); in xfrm_dst_hash_transfer()
593 hlist_add_head_rcu(&pol->bydst, ndsttable + h); in xfrm_dst_hash_transfer()
[all …]
H A Dxfrm_state.c232 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol);
1312 static void xfrm_state_look_at(struct xfrm_policy *pol, struct xfrm_state *x, in xfrm_state_look_at() argument
1338 !security_xfrm_state_pol_flow_match(x, pol, in xfrm_state_look_at()
1359 security_xfrm_state_pol_flow_match(x, pol, in xfrm_state_look_at()
1368 struct xfrm_policy *pol, int *err, in xfrm_state_find() argument
1373 struct net *net = xp_net(pol); in xfrm_state_find()
1379 u32 mark = pol->mark.v & pol->mark.m; in xfrm_state_find()
1397 hlist_for_each_entry_rcu(x, &pol->state_cache_list, state_cache) { in xfrm_state_find()
1407 xfrm_state_look_at(pol, x, fl, encap_family, in xfrm_state_find()
1414 hlist_for_each_entry_rcu(x, &pol->state_cache_list, state_cache) { in xfrm_state_find()
[all …]
/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_police.c19 struct lan966x_tc_policer *pol, in lan966x_police_add() argument
25 pol->rate = DIV_ROUND_UP(pol->rate * 3, 100); in lan966x_police_add()
27 pol->burst = pol->burst ?: 1; in lan966x_police_add()
29 pol->burst = DIV_ROUND_UP(pol->burst, 4096); in lan966x_police_add()
31 if (pol->rate > GENMASK(15, 0) || in lan966x_police_add()
32 pol->burst > GENMASK(6, 0)) in lan966x_police_add()
45 lan_wr(ANA_POL_PIR_CFG_PIR_RATE_SET(pol->rate) | in lan966x_police_add()
46 ANA_POL_PIR_CFG_PIR_BURST_SET(pol->burst), in lan966x_police_add()
141 struct lan966x_tc_policer pol; in lan966x_police_port_add() local
150 memset(&pol, 0, sizeof(pol)); in lan966x_police_port_add()
[all …]
/linux/drivers/cpufreq/
H A Dpowernow-k8.c923 struct cpufreq_policy *pol; member
930 struct cpufreq_policy *pol = pta->pol; in powernowk8_target_fn() local
932 struct powernow_k8_data *data = per_cpu(powernow_data, pol->cpu); in powernowk8_target_fn()
949 pol->cpu, data->powernow_table[newstate].frequency, pol->min, in powernowk8_target_fn()
950 pol->max); in powernowk8_target_fn()
969 ret = transition_frequency_fidvid(data, newstate, pol); in powernowk8_target_fn()
978 pol->cur = find_khz_freq_from_fid(data->currfid); in powernowk8_target_fn()
984 static int powernowk8_target(struct cpufreq_policy *pol, unsigned index) in powernowk8_target() argument
986 struct powernowk8_target_arg pta = { .pol = pol, .newstate = index }; in powernowk8_target()
988 return work_on_cpu(pol->cpu, powernowk8_target_fn, &pta); in powernowk8_target()
[all …]
/linux/drivers/media/platform/sunxi/sun4i-csi/
H A Dsun4i_csi.h25 #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/security/safesetid/
H A Dlsm.c70 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/drivers/irqchip/
H A Dirq-tb10x.c44 uint32_t im, mod, pol; in tb10x_irq_set_type() local
51 pol = ab_irqctl_readreg(gc, AB_IRQCTL_SRC_POLARITY) | im; in tb10x_irq_set_type()
55 pol ^= im; in tb10x_irq_set_type()
65 pol ^= im; in tb10x_irq_set_type()
80 ab_irqctl_writereg(gc, AB_IRQCTL_SRC_POLARITY, pol); in tb10x_irq_set_type()
/linux/drivers/gpu/drm/fsl-dcu/
H A Dfsl_dcu_drm_crtc.c88 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 Dhdmi_phy.c37 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 Dhdmi_phy.c46 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 Dgpio-xlp.c142 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 Dwm8350-gpio.c162 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 Docelot_police.c203 struct ocelot_policer *pol) in ocelot_port_policer_add() argument
208 if (!pol) in ocelot_port_policer_add()
212 pp.pir = pol->rate; in ocelot_port_policer_add()
213 pp.pbs = pol->burst; in ocelot_port_policer_add()
/linux/drivers/media/pci/zoran/
H A Dzr36060.c484 struct vfe_settings *cap, struct vfe_polarity *pol) in zr36060_set_video() argument
508 reg = (!pol->vsync_pol ? ZR060_VPR_VS_POL : 0) in zr36060_set_video()
509 | (!pol->hsync_pol ? ZR060_VPR_HS_POL : 0) in zr36060_set_video()
510 | (pol->field_pol ? ZR060_VPR_FI_POL : 0) in zr36060_set_video()
511 | (pol->blank_pol ? ZR060_VPR_BL_POL : 0) in zr36060_set_video()
512 | (pol->subimg_pol ? ZR060_VPR_S_IMG_POL : 0) in zr36060_set_video()
513 | (pol->poe_pol ? ZR060_VPR_POE_POL : 0) in zr36060_set_video()
514 | (pol->pvalid_pol ? ZR060_VPR_P_VAL_POL : 0) in zr36060_set_video()
515 | (pol->vclk_pol ? ZR060_VPR_VCLK_POL : 0); in zr36060_set_video()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_fs.c26 struct mlx5e_ipsec_miss pol; member
42 struct mlx5e_ipsec_miss pol; member
538 mlx5_ipsec_fs_roce_tx_create(ipsec->mdev, ipsec->roce, ipsec->tx->ft.pol, in ipsec_mpv_work_handler()
590 mlx5_del_flow_rules(rx->pol.rule); in rx_destroy()
591 mlx5_destroy_flow_group(rx->pol.group); in rx_destroy()
592 mlx5_destroy_flow_table(rx->ft.pol); in rx_destroy()
662 dest.ft = rx->ft.pol; in ipsec_rx_ft_connect()
715 &rx->ft.pol); in rx_create()
729 rx->ft.pol = ft; in rx_create()
733 err = ipsec_miss_create(mdev, rx->ft.pol, &rx->pol, dest); in rx_create()
[all …]
/linux/Documentation/devicetree/bindings/phy/
H A Dphy-miphy365x.txt36 - 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/drivers/media/platform/ti/omap3isp/
H A Dispcsiphy.c191 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/input/touchscreen/
H A Dwm97xx-core.c228 enum wm97xx_gpio_pol pol, enum wm97xx_gpio_sticky sticky, in wm97xx_config_gpio() argument
236 if (pol == WM97XX_GPIO_POL_HIGH) in wm97xx_config_gpio()
304 u16 status, pol; in wm97xx_pen_interrupt() local
307 pol = wm97xx_reg_read(wm, AC97_GPIO_POLARITY); in wm97xx_pen_interrupt()
309 if (WM97XX_GPIO_13 & pol & status) { in wm97xx_pen_interrupt()
311 wm97xx_reg_write(wm, AC97_GPIO_POLARITY, pol & in wm97xx_pen_interrupt()
315 wm97xx_reg_write(wm, AC97_GPIO_POLARITY, pol | in wm97xx_pen_interrupt()
/linux/drivers/ssb/
H A Ddriver_gpio.c127 u32 pol = chipco_read32(chipco, SSB_CHIPCO_GPIOPOL); in ssb_gpio_irq_chipco_handler() local
128 unsigned long irqs = (val ^ pol) & mask; in ssb_gpio_irq_chipco_handler()
326 u32 pol = ssb_read32(extif->dev, SSB_EXTIF_GPIO_INTPOL); in ssb_gpio_irq_extif_handler() local
327 unsigned long irqs = (val ^ pol) & mask; in ssb_gpio_irq_extif_handler()
/linux/drivers/counter/
H A Dti-ecap-capture.c237 size_t idx, enum counter_signal_polarity *pol) in ecap_cnt_pol_read() argument
246 *pol = bitval ? COUNTER_SIGNAL_POLARITY_NEGATIVE : COUNTER_SIGNAL_POLARITY_POSITIVE; in ecap_cnt_pol_read()
253 size_t idx, enum counter_signal_polarity pol) in ecap_cnt_pol_write() argument
258 if (pol == COUNTER_SIGNAL_POLARITY_NEGATIVE) in ecap_cnt_pol_write()

1234