/linux-2.6.39/include/linux/ |
D | mempolicy.h | 118 extern void __mpol_put(struct mempolicy *pol); 119 static inline void mpol_put(struct mempolicy *pol) in mpol_put() argument 121 if (pol) in mpol_put() 122 __mpol_put(pol); in mpol_put() 129 static inline int mpol_needs_cond_ref(struct mempolicy *pol) in mpol_needs_cond_ref() argument 131 return (pol && (pol->flags & MPOL_F_SHARED)); in mpol_needs_cond_ref() 134 static inline void mpol_cond_put(struct mempolicy *pol) in mpol_cond_put() argument 136 if (mpol_needs_cond_ref(pol)) in mpol_cond_put() 137 __mpol_put(pol); in mpol_cond_put() 150 extern struct mempolicy *__mpol_dup(struct mempolicy *pol); [all …]
|
/linux-2.6.39/net/xfrm/ |
D | xfrm_policy.c | 56 static struct xfrm_policy *__xfrm_policy_unlink(struct xfrm_policy *pol, 227 struct xfrm_policy *pol = container_of(flo, struct xfrm_policy, flo); in xfrm_policy_flo_get() local 229 if (unlikely(pol->walk.dead)) in xfrm_policy_flo_get() 232 xfrm_pol_hold(pol); in xfrm_policy_flo_get() 239 struct xfrm_policy *pol = container_of(flo, struct xfrm_policy, flo); in xfrm_policy_flo_check() local 241 return !pol->walk.dead; in xfrm_policy_flo_check() 345 struct xfrm_policy *pol; in xfrm_dst_hash_transfer() local 349 hlist_for_each_entry_safe(pol, entry, tmp, list, bydst) { in xfrm_dst_hash_transfer() 352 h = __addr_hash(&pol->selector.daddr, &pol->selector.saddr, in xfrm_dst_hash_transfer() 353 pol->family, nhashmask); in xfrm_dst_hash_transfer() [all …]
|
D | xfrm_state.c | 168 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol); 750 static void xfrm_state_look_at(struct xfrm_policy *pol, struct xfrm_state *x, in xfrm_state_look_at() argument 769 !security_xfrm_state_pol_flow_match(x, pol, fl)) in xfrm_state_look_at() 782 security_xfrm_state_pol_flow_match(x, pol, fl)) in xfrm_state_look_at() 790 struct xfrm_policy *pol, int *err, in xfrm_state_find() argument 794 struct net *net = xp_net(pol); in xfrm_state_find() 801 u32 mark = pol->mark.v & pol->mark.m; in xfrm_state_find() 817 xfrm_state_look_at(pol, x, fl, encap_family, in xfrm_state_find() 833 xfrm_state_look_at(pol, x, fl, encap_family, in xfrm_state_find() 855 memcpy(&x->mark, &pol->mark, sizeof(x->mark)); in xfrm_state_find() [all …]
|
/linux-2.6.39/mm/ |
D | mempolicy.c | 121 int (*create)(struct mempolicy *pol, const nodemask_t *nodes); 136 void (*rebind)(struct mempolicy *pol, const nodemask_t *nodes, 158 static inline int mpol_store_user_nodemask(const struct mempolicy *pol) in mpol_store_user_nodemask() argument 160 return pol->flags & MPOL_MODE_FLAGS; in mpol_store_user_nodemask() 171 static int mpol_new_interleave(struct mempolicy *pol, const nodemask_t *nodes) in mpol_new_interleave() argument 175 pol->v.nodes = *nodes; in mpol_new_interleave() 179 static int mpol_new_preferred(struct mempolicy *pol, const nodemask_t *nodes) in mpol_new_preferred() argument 182 pol->flags |= MPOL_F_LOCAL; /* local allocation */ in mpol_new_preferred() 186 pol->v.preferred_node = first_node(*nodes); in mpol_new_preferred() 190 static int mpol_new_bind(struct mempolicy *pol, const nodemask_t *nodes) in mpol_new_bind() argument [all …]
|
D | mmap.c | 1974 struct mempolicy *pol; in __split_vma() local 1998 pol = mpol_dup(vma_policy(vma)); in __split_vma() 1999 if (IS_ERR(pol)) { in __split_vma() 2000 err = PTR_ERR(pol); in __split_vma() 2003 vma_set_policy(new, pol); in __split_vma() 2037 mpol_put(pol); in __split_vma() 2365 struct mempolicy *pol; in copy_vma() local 2388 pol = mpol_dup(vma_policy(vma)); in copy_vma() 2389 if (IS_ERR(pol)) in copy_vma() 2394 vma_set_policy(new_vma, pol); in copy_vma() [all …]
|
/linux-2.6.39/arch/x86/kernel/cpu/cpufreq/ |
D | powernow-k8.c | 1125 static int powernowk8_target(struct cpufreq_policy *pol, in powernowk8_target() argument 1129 struct powernow_k8_data *data = per_cpu(powernow_data, pol->cpu); in powernowk8_target() 1147 set_cpus_allowed_ptr(current, cpumask_of(pol->cpu)); in powernowk8_target() 1149 if (smp_processor_id() != pol->cpu) { in powernowk8_target() 1150 printk(KERN_ERR PFX "limiting to cpu %u failed\n", pol->cpu); in powernowk8_target() 1160 pol->cpu, targfreq, pol->min, pol->max, relation); in powernowk8_target() 1179 if (cpufreq_frequency_table_target(pol, data->powernow_table, in powernowk8_target() 1200 pol->cur = find_khz_freq_from_pstate(data->powernow_table, in powernowk8_target() 1203 pol->cur = find_khz_freq_from_fid(data->currfid); in powernowk8_target() 1213 static int powernowk8_verify(struct cpufreq_policy *pol) in powernowk8_verify() argument [all …]
|
/linux-2.6.39/net/key/ |
D | af_key.c | 1920 parse_ipsecrequests(struct xfrm_policy *xp, struct sadb_x_policy *pol) in parse_ipsecrequests() argument 1923 int len = pol->sadb_x_policy_len*8 - sizeof(struct sadb_x_policy); in parse_ipsecrequests() 1924 struct sadb_x_ipsecrequest *rq = (void*)(pol+1); in parse_ipsecrequests() 1988 struct sadb_x_policy *pol; in pfkey_xfrm_policy2msg() local 2064 pol = (struct sadb_x_policy *) skb_put(skb, sizeof(struct sadb_x_policy)); in pfkey_xfrm_policy2msg() 2065 pol->sadb_x_policy_len = sizeof(struct sadb_x_policy)/sizeof(uint64_t); in pfkey_xfrm_policy2msg() 2066 pol->sadb_x_policy_exttype = SADB_X_EXT_POLICY; in pfkey_xfrm_policy2msg() 2067 pol->sadb_x_policy_type = IPSEC_POLICY_DISCARD; in pfkey_xfrm_policy2msg() 2070 pol->sadb_x_policy_type = IPSEC_POLICY_IPSEC; in pfkey_xfrm_policy2msg() 2072 pol->sadb_x_policy_type = IPSEC_POLICY_NONE; in pfkey_xfrm_policy2msg() [all …]
|
/linux-2.6.39/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-2.6.39/drivers/media/video/omap3isp/ |
D | ispcsiphy.c | 51 reg |= (phy->lanes.data[i].pol << in csiphy_lanes_config() 59 reg |= phy->lanes.clk.pol << ISPCSI2_PHY_CFG_CLOCK_POL_SHIFT; in csiphy_lanes_config() 150 if (lanes->data[i].pol > 1 || lanes->data[i].pos > 3) in csiphy_config() 159 if (lanes->clk.pol > 1 || lanes->clk.pos > 3) in csiphy_config()
|
D | ispcsiphy.h | 35 u8 pol; member
|
/linux-2.6.39/drivers/media/video/zoran/ |
D | zr36060.c | 597 struct vfe_polarity *pol) in zr36060_set_video() argument 619 reg = (!pol->vsync_pol ? ZR060_VPR_VSPol : 0) in zr36060_set_video() 620 | (!pol->hsync_pol ? ZR060_VPR_HSPol : 0) in zr36060_set_video() 621 | (pol->field_pol ? ZR060_VPR_FIPol : 0) in zr36060_set_video() 622 | (pol->blank_pol ? ZR060_VPR_BLPol : 0) in zr36060_set_video() 623 | (pol->subimg_pol ? ZR060_VPR_SImgPol : 0) in zr36060_set_video() 624 | (pol->poe_pol ? ZR060_VPR_PoePol : 0) in zr36060_set_video() 625 | (pol->pvalid_pol ? ZR060_VPR_PValPol : 0) in zr36060_set_video() 626 | (pol->vclk_pol ? ZR060_VPR_VCLKPol : 0); in zr36060_set_video()
|
/linux-2.6.39/security/selinux/ss/ |
D | avtab.c | 326 int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol, in avtab_read_item() argument 334 u32 items, items2, val, vers = pol->policyvers; in avtab_read_item() 423 if (!policydb_type_isvalid(pol, key.source_type) || in avtab_read_item() 424 !policydb_type_isvalid(pol, key.target_type) || in avtab_read_item() 425 !policydb_class_isvalid(pol, key.target_class)) { in avtab_read_item() 447 !policydb_type_isvalid(pol, datum.data)) { in avtab_read_item() 460 int avtab_read(struct avtab *a, void *fp, struct policydb *pol) in avtab_read() argument 484 rc = avtab_read_item(a, fp, pol, avtab_insertf, NULL); in avtab_read()
|
D | avtab.h | 68 int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol, 73 int avtab_read(struct avtab *a, void *fp, struct policydb *pol);
|
D | mls.c | 242 int mls_context_to_sid(struct policydb *pol, in mls_context_to_sid() argument 256 if (!pol->mls_enabled) { in mls_context_to_sid() 290 levdatum = hashtab_search(pol->p_levels.table, scontextp); in mls_context_to_sid() 315 catdatum = hashtab_search(pol->p_cats.table, in mls_context_to_sid() 331 rngdatum = hashtab_search(pol->p_cats.table, rngptr); in mls_context_to_sid()
|
D | services.c | 110 static int selinux_set_mapping(struct policydb *pol, in selinux_set_mapping() argument 145 p_out->value = string_to_security_class(pol, p_in->name); in selinux_set_mapping() 150 if (pol->reject_unknown) in selinux_set_mapping() 164 p_out->perms[k] = string_to_av_perm(pol, p_out->value, in selinux_set_mapping() 170 if (pol->reject_unknown) in selinux_set_mapping() 182 pol->allow_unknown ? "allowed" : "denied"); in selinux_set_mapping() 1144 static int string_to_context_struct(struct policydb *pol, in string_to_context_struct() argument 1174 usrdatum = hashtab_search(pol->p_users.table, scontextp); in string_to_context_struct() 1190 role = hashtab_search(pol->p_roles.table, scontextp); in string_to_context_struct() 1202 typdatum = hashtab_search(pol->p_types.table, scontextp); in string_to_context_struct() [all …]
|
/linux-2.6.39/arch/arm/mach-msm/ |
D | gpio.c | 94 unsigned pol, val, val2, intstat; in msm_gpio_update_both_edge_detect() local 97 pol = readl(msm_chip->regs.int_pos); in msm_gpio_update_both_edge_detect() 98 pol = (pol & ~msm_chip->both_edge_detect) | in msm_gpio_update_both_edge_detect() 100 writel(pol, msm_chip->regs.int_pos); in msm_gpio_update_both_edge_detect()
|
/linux-2.6.39/drivers/input/touchscreen/ |
D | wm97xx-core.c | 232 enum wm97xx_gpio_pol pol, enum wm97xx_gpio_sticky sticky, in wm97xx_config_gpio() argument 240 if (pol == WM97XX_GPIO_POL_HIGH) in wm97xx_config_gpio() 307 u16 status, pol; in wm97xx_pen_irq_worker() local 310 pol = wm97xx_reg_read(wm, AC97_GPIO_POLARITY); in wm97xx_pen_irq_worker() 312 if (WM97XX_GPIO_13 & pol & status) { in wm97xx_pen_irq_worker() 314 wm97xx_reg_write(wm, AC97_GPIO_POLARITY, pol & in wm97xx_pen_irq_worker() 318 wm97xx_reg_write(wm, AC97_GPIO_POLARITY, pol | in wm97xx_pen_irq_worker()
|
/linux-2.6.39/arch/mips/include/asm/ |
D | txx9pio.h | 20 __u32 pol; member
|
D | gic.h | 168 #define GIC_SET_POLARITY(intr, pol) \ argument 170 GIC_INTR_OFS(intr)), (pol) << GIC_INTR_BIT(intr))
|
/linux-2.6.39/arch/arm/mach-s3c2410/include/mach/ |
D | spi.h | 24 void (*set_cs)(struct s3c2410_spi_info *spi, int cs, int pol);
|
/linux-2.6.39/fs/sysfs/ |
D | bin.c | 286 struct mempolicy *pol; in bin_get_policy() local 294 pol = vma->vm_policy; in bin_get_policy() 296 pol = bb->vm_ops->get_policy(vma, addr); in bin_get_policy() 299 return pol; in bin_get_policy()
|
/linux-2.6.39/net/netfilter/ |
D | xt_policy.c | 72 e = &info->pol[pos]; in match_policy_in() 100 e = &info->pol[pos]; in match_policy_out()
|
/linux-2.6.39/include/linux/netfilter/ |
D | xt_policy.h | 64 struct xt_policy_elem pol[XT_POLICY_MAX_ELEM]; member
|
/linux-2.6.39/arch/ia64/kernel/ |
D | iosapic.c | 220 unsigned long pol, trigger, dmode; in set_rte() local 234 pol = iosapic_intr_info[irq].polarity; in set_rte() 244 low32 = ((pol << IOSAPIC_POLARITY_SHIFT) | in set_rte() 486 static int iosapic_find_sharable_irq(unsigned long trigger, unsigned long pol) in iosapic_find_sharable_irq() argument 500 if (info->trigger == trigger && info->polarity == pol && in iosapic_find_sharable_irq()
|
/linux-2.6.39/drivers/staging/gma500/ |
D | psb_bl.c | 102 blc_pol = dev_priv->lvds_bl->pol; in device_backlight_init()
|