/linux-6.6.21/security/safesetid/ ! |
D | securityfs.c | 72 struct setid_ruleset *pol = in __release_ruleset() local 78 hash_for_each_safe(pol->rules, bucket, tmp, rule, next) in __release_ruleset() 80 kfree(pol->policy_str); in __release_ruleset() 81 kfree(pol); in __release_ruleset() 84 static void release_ruleset(struct setid_ruleset *pol){ in release_ruleset() argument 85 call_rcu(&pol->rcu, __release_ruleset); in release_ruleset() 88 static void insert_rule(struct setid_ruleset *pol, struct setid_rule *rule) in insert_rule() argument 90 if (pol->type == UID) in insert_rule() 91 hash_add(pol->rules, &rule->next, __kuid_val(rule->src_id.uid)); in insert_rule() 92 else if (pol->type == GID) in insert_rule() [all …]
|
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.6.21/include/linux/ ! |
D | mempolicy.h | 62 extern void __mpol_put(struct mempolicy *pol); 63 static inline void mpol_put(struct mempolicy *pol) in mpol_put() argument 65 if (pol) in mpol_put() 66 __mpol_put(pol); in mpol_put() 73 static inline int mpol_needs_cond_ref(struct mempolicy *pol) in mpol_needs_cond_ref() argument 75 return (pol && (pol->flags & MPOL_F_SHARED)); in mpol_needs_cond_ref() 78 static inline void mpol_cond_put(struct mempolicy *pol) in mpol_cond_put() argument 80 if (mpol_needs_cond_ref(pol)) in mpol_cond_put() 81 __mpol_put(pol); in mpol_cond_put() 84 extern struct mempolicy *__mpol_dup(struct mempolicy *pol); [all …]
|
D | netlink.h | 143 #define NL_SET_BAD_ATTR_POLICY(extack, attr, pol) do { \ argument 146 (extack)->policy = (pol); \ 152 #define NL_SET_ERR_MSG_ATTR_POL(extack, attr, pol, msg) do { \ argument 161 __extack->policy = (pol); \ 165 #define NL_SET_ERR_MSG_ATTR_POL_FMT(extack, attr, pol, fmt, args...) do { \ argument 181 __extack->policy = (pol); \
|
/linux-6.6.21/mm/ ! |
D | mempolicy.c | 167 struct mempolicy *pol = p->mempolicy; in get_task_policy() local 170 if (pol) in get_task_policy() 171 return pol; in get_task_policy() 175 pol = &preferred_node_policy[node]; in get_task_policy() 177 if (pol->mode) in get_task_policy() 178 return pol; in get_task_policy() 185 int (*create)(struct mempolicy *pol, const nodemask_t *nodes); 186 void (*rebind)(struct mempolicy *pol, const nodemask_t *nodes); 189 static inline int mpol_store_user_nodemask(const struct mempolicy *pol) in mpol_store_user_nodemask() argument 191 return pol->flags & MPOL_MODE_FLAGS; in mpol_store_user_nodemask() [all …]
|
/linux-6.6.21/block/ ! |
D | blk-cgroup.c | 114 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 …]
|
D | blk-cgroup.h | 195 int blkcg_policy_register(struct blkcg_policy *pol); 196 void blkcg_policy_unregister(struct blkcg_policy *pol); 197 int blkcg_activate_policy(struct gendisk *disk, const struct blkcg_policy *pol); 199 const struct blkcg_policy *pol); 205 const struct blkcg_policy *pol, int data, 218 int blkg_conf_prep(struct blkcg *blkcg, const struct blkcg_policy *pol, 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() [all …]
|
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.6.21/net/xfrm/ ! |
D | xfrm_policy.c | 169 static void __xfrm_policy_link(struct xfrm_policy *pol, int dir); 170 static struct xfrm_policy *__xfrm_policy_unlink(struct xfrm_policy *pol, 527 struct xfrm_policy *pol; in xfrm_dst_hash_transfer() local 533 hlist_for_each_entry_safe(pol, tmp, list, bydst) { in xfrm_dst_hash_transfer() 536 __get_hash_thresh(net, pol->family, dir, &dbits, &sbits); in xfrm_dst_hash_transfer() 537 h = __addr_hash(&pol->selector.daddr, &pol->selector.saddr, in xfrm_dst_hash_transfer() 538 pol->family, nhashmask, dbits, sbits); in xfrm_dst_hash_transfer() 539 if (!entry0 || pol->xdo.type == XFRM_DEV_OFFLOAD_PACKET) { in xfrm_dst_hash_transfer() 540 hlist_del_rcu(&pol->bydst); in xfrm_dst_hash_transfer() 541 hlist_add_head_rcu(&pol->bydst, ndsttable + h); in xfrm_dst_hash_transfer() [all …]
|
/linux-6.6.21/drivers/net/ethernet/microchip/lan966x/ ! |
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() 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-6.6.21/drivers/net/ethernet/microchip/sparx5/ ! |
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()
|
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.6.21/drivers/media/platform/sunxi/sun4i-csi/ ! |
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.6.21/drivers/cpufreq/ ! |
D | powernow-k8.c | 923 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-6.6.21/net/key/ ! |
D | af_key.c | 1942 parse_ipsecrequest(struct xfrm_policy *xp, struct sadb_x_policy *pol, in parse_ipsecrequest() argument 1963 pol->sadb_x_policy_dir == IPSEC_DIR_OUTBOUND) in parse_ipsecrequest() 1994 parse_ipsecrequests(struct xfrm_policy *xp, struct sadb_x_policy *pol) in parse_ipsecrequests() argument 1997 int len = pol->sadb_x_policy_len*8 - sizeof(struct sadb_x_policy); in parse_ipsecrequests() 1998 struct sadb_x_ipsecrequest *rq = (void*)(pol+1); in parse_ipsecrequests() 2000 if (pol->sadb_x_policy_len * 8 < sizeof(struct sadb_x_policy)) in parse_ipsecrequests() 2008 if ((err = parse_ipsecrequest(xp, pol, rq)) < 0) in parse_ipsecrequests() 2069 struct sadb_x_policy *pol; in pfkey_xfrm_policy2msg() local 2140 pol = skb_put(skb, sizeof(struct sadb_x_policy)); in pfkey_xfrm_policy2msg() 2141 pol->sadb_x_policy_len = sizeof(struct sadb_x_policy)/sizeof(uint64_t); in pfkey_xfrm_policy2msg() [all …]
|
/linux-6.6.21/drivers/irqchip/ ! |
D | irq-tb10x.c | 44 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-6.6.21/drivers/gpu/drm/omapdrm/dss/ ! |
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.6.21/drivers/gpu/drm/fsl-dcu/ ! |
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.6.21/drivers/video/fbdev/omap2/omapfb/dss/ ! |
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.6.21/drivers/mfd/ ! |
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.6.21/drivers/gpio/ ! |
D | gpio-xlp.c | 142 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()
|
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.6.21/drivers/net/ethernet/mscc/ ! |
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.6.21/Documentation/devicetree/bindings/hwmon/ ! |
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.6.21/drivers/media/pci/zoran/ ! |
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()
|