/linux-6.3-rc2/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-6.3-rc2/include/linux/ |
A D | mempolicy.h | 62 extern void __mpol_put(struct mempolicy *pol); 65 if (pol) in mpol_put() 66 __mpol_put(pol); in mpol_put() 75 return (pol && (pol->flags & MPOL_F_SHARED)); in mpol_needs_cond_ref() 80 if (mpol_needs_cond_ref(pol)) in mpol_cond_put() 81 __mpol_put(pol); in mpol_cond_put() 87 if (pol) in mpol_dup() 88 pol = __mpol_dup(pol); in mpol_dup() 89 return pol; in mpol_dup() 96 if (pol) in mpol_get() [all …]
|
/linux-6.3-rc2/mm/ |
A D | mempolicy.c | 166 if (pol) in get_task_policy() 167 return pol; in get_task_policy() 234 if (!pol || pol->mode == MPOL_LOCAL) in mpol_set_nodemask() 253 ret = mpol_ops[pol->mode].create(pol, &nsc->mask2); in mpol_set_nodemask() 354 if (!pol || pol->mode == MPOL_LOCAL) in mpol_rebind_policy() 360 mpol_ops[pol->mode].rebind(pol, newmask); in mpol_rebind_policy() 968 if (!pol) in do_get_mempolicy() 1791 if (!pol) in get_vma_policy() 1805 if (pol && (pol->flags & MPOL_F_MOF)) in vma_policy_mof() 1813 if (!pol) in vma_policy_mof() [all …]
|
/linux-6.3-rc2/block/ |
A D | blk-cgroup.c | 114 return pol && test_bit(pol->plid, q->blkcg_pols); in blkcg_policy_enabled() 1242 if (!pol || !pol->cpd_alloc_fn) in blkcg_css_alloc() 1368 if (!pol || !pol->cpd_bind_fn) in blkcg_bind() 1373 pol->cpd_bind_fn(blkcg->cpd[pol->plid]); in blkcg_bind() 1485 pol->pd_init_fn(blkg->pd[pol->plid]); in blkcg_activate_policy() 1489 pol->pd_online_fn(blkg->pd[pol->plid]); in blkcg_activate_policy() 1514 pol->pd_free_fn(blkg->pd[pol->plid]); in blkcg_activate_policy() 1557 pol->pd_free_fn(blkg->pd[pol->plid]); in blkcg_deactivate_policy() 1577 pol->cpd_free_fn(blkcg->cpd[pol->plid]); in blkcg_free_all_cpd() 1610 (!pol->pd_alloc_fn ^ !pol->pd_free_fn)) in blkcg_policy_register() [all …]
|
A D | blk-cgroup.h | 196 int blkcg_policy_register(struct blkcg_policy *pol); 197 void blkcg_policy_unregister(struct blkcg_policy *pol); 200 const struct blkcg_policy *pol); 206 const struct blkcg_policy *pol, int data, 274 struct blkcg_policy *pol) in blkg_to_pd() argument 276 return blkg ? blkg->pd[pol->plid] : NULL; in blkg_to_pd() 280 struct blkcg_policy *pol) in blkcg_to_cpd() argument 282 return blkcg ? blkcg->cpd[pol->plid] : NULL; in blkcg_to_cpd() 499 const struct blkcg_policy *pol) { return 0; } in blkcg_activate_policy() argument 501 const struct blkcg_policy *pol) { } in blkcg_deactivate_policy() argument [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-6.3-rc2/net/xfrm/ |
A D | xfrm_policy.c | 1685 if (!pol || tmp->pos < pol->pos) in xfrm_policy_bysel_ctx() 1693 if (pol) { in xfrm_policy_bysel_ctx() 1731 if (pol->type == type && pol->index == id && in xfrm_policy_byid() 1917 error = func(pol, xfrm_policy_id2dir(pol->index), in xfrm_policy_walk() 2197 if (pol) { in xfrm_policy_lookup_bytype() 2251 if ((sk->sk_mark & pol->mark.m) != pol->mark.v || in xfrm_sk_policy_lookup() 2319 pol = __xfrm_policy_unlink(pol, dir); in xfrm_policy_delete() 2336 if (pol && pol->type != XFRM_POLICY_TYPE_MAIN) in xfrm_sk_policy_insert() 2350 if (pol) in xfrm_sk_policy_insert() 3642 if (!pol) in __xfrm_policy_check() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/microchip/lan966x/ |
A D | lan966x_police.c | 19 struct lan966x_tc_policer *pol, in lan966x_police_add() argument 25 pol->rate = DIV_ROUND_UP(pol->rate * 3, 100); in lan966x_police_add() 27 pol->burst = pol->burst ?: 1; in lan966x_police_add() 29 pol->burst = DIV_ROUND_UP(pol->burst, 4096); in lan966x_police_add() 31 if (pol->rate > GENMASK(15, 0) || in lan966x_police_add() 32 pol->burst > GENMASK(6, 0)) in lan966x_police_add() 45 lan_wr(ANA_POL_PIR_CFG_PIR_RATE_SET(pol->rate) | in lan966x_police_add() 46 ANA_POL_PIR_CFG_PIR_BURST_SET(pol->burst), in lan966x_police_add() 144 struct lan966x_tc_policer pol; in lan966x_police_port_add() local 153 memset(&pol, 0, sizeof(pol)); in lan966x_police_port_add() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/microchip/sparx5/ |
A D | sparx5_police.c | 11 struct sparx5_policer *pol) in sparx5_policer_service_conf_set() argument 17 g = &sdlb_groups[pol->group]; in sparx5_policer_service_conf_set() 18 idx = pol->idx; in sparx5_policer_service_conf_set() 20 rate = pol->rate * 1000; in sparx5_policer_service_conf_set() 21 burst = pol->burst; in sparx5_policer_service_conf_set() 42 int sparx5_policer_conf_set(struct sparx5 *sparx5, struct sparx5_policer *pol) in sparx5_policer_conf_set() argument 45 switch (pol->type) { in sparx5_policer_conf_set() 47 return sparx5_policer_service_conf_set(sparx5, pol); in sparx5_policer_conf_set()
|
A D | sparx5_psfp.c | 193 if (!fm->pol.rate && !fm->pol.burst) in sparx5_sdlb_conf_set() 198 sparx5_policer_conf_set(sparx5, &fm->pol); in sparx5_sdlb_conf_set() 200 return sparx5_sdlb_group_action(sparx5, fm->pol.group, fm->pol.idx); in sparx5_sdlb_conf_set() 269 struct sparx5_policer *pol = &fm->pol; in sparx5_psfp_fm_add() local 273 ret = sparx5_psfp_fm_get(uidx, &fm->pol.idx); in sparx5_psfp_fm_add() 280 ret = sparx5_sdlb_group_get_by_rate(sparx5, pol->rate, pol->burst); in sparx5_psfp_fm_add() 284 fm->pol.group = ret; in sparx5_psfp_fm_add() 290 *id = fm->pol.idx; in sparx5_psfp_fm_add() 297 struct sparx5_psfp_fm fm = { .pol.idx = id, in sparx5_psfp_fm_del() 298 .pol.type = SPX5_POL_SERVICE }; in sparx5_psfp_fm_del() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
A D | ipsec_fs.c | 20 struct mlx5_flow_table *pol; member 33 struct mlx5e_ipsec_miss pol; member 41 struct mlx5e_ipsec_miss pol; member 173 mlx5_del_flow_rules(rx->pol.rule); in rx_destroy() 247 rx->ft.pol = ft; in rx_create() 251 err = ipsec_miss_create(mdev, rx->ft.pol, &rx->pol, dest); in rx_create() 298 dest.ft = rx->ft.pol; in rx_ft_get() 355 tx->ft.pol = ft; in tx_create() 358 err = ipsec_miss_create(mdev, tx->ft.pol, &tx->pol, &dest); in tx_create() 368 mlx5_del_flow_rules(tx->pol.rule); in tx_create() [all …]
|
/linux-6.3-rc2/net/key/ |
A D | af_key.c | 2066 struct sadb_x_policy *pol; in pfkey_xfrm_policy2msg() local 2248 struct sadb_x_policy *pol; in pfkey_spdadd() local 2261 if (!pol->sadb_x_policy_dir || pol->sadb_x_policy_dir >= IPSEC_DIR_MAX) in pfkey_spdadd() 2362 struct sadb_x_policy *pol; in pfkey_spddelete() local 2375 if (!pol->sadb_x_policy_dir || pol->sadb_x_policy_dir >= IPSEC_DIR_MAX) in pfkey_spddelete() 2550 struct sadb_x_policy *pol; in pfkey_migrate() local 2648 struct sadb_x_policy *pol; in pfkey_spdget() local 3155 struct sadb_x_policy *pol; in pfkey_send_acquire() local 3295 (!pol->sadb_x_policy_dir || pol->sadb_x_policy_dir > IPSEC_DIR_OUTBOUND)) in pfkey_compile_policy() 3321 char *p = (char *)pol; in pfkey_compile_policy() [all …]
|
/linux-6.3-rc2/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()
|
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/drivers/gpio/ |
A D | gpio-xlp.c | 134 int pol, irq_type; in xlp_gpio_set_irq_type() local 139 pol = XLP_GPIO_IRQ_POL_HIGH; in xlp_gpio_set_irq_type() 143 pol = XLP_GPIO_IRQ_POL_LOW; in xlp_gpio_set_irq_type() 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() 158 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-6.3-rc2/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-6.3-rc2/drivers/net/ethernet/mscc/ |
A D | ocelot_police.c | 203 struct ocelot_policer *pol) in ocelot_port_policer_add() argument 208 if (!pol) in ocelot_port_policer_add() 212 pp.pir = pol->rate; in ocelot_port_policer_add() 213 pp.pbs = pol->burst; in ocelot_port_policer_add()
|
/linux-6.3-rc2/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-6.3-rc2/drivers/media/pci/zoran/ |
A D | zr36060.c | 484 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()
|