xp 277 arch/arc/include/asm/pgtable.h #define pmd_clear(xp) do { pmd_val(*(xp)) = 0; } while (0) xp 32 arch/c6x/include/asm/pgtable.h #define pmd_clear(xp) do { set_pmd(xp, __pmd(0)); } while (0) xp 324 arch/microblaze/include/asm/pgtable.h #define pgd_clear(xp) do { } while (0) xp 222 arch/openrisc/include/asm/pgtable.h #define pte_clear(mm, addr, xp) do { pte_val(*(xp)) = 0; } while (0) xp 227 arch/openrisc/include/asm/pgtable.h #define pmd_clear(xp) do { pmd_val(*(xp)) = 0; } while (0) xp 316 arch/parisc/include/asm/pgtable.h #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0)) xp 52 arch/sh/include/asm/pgtable-3level.h #define pud_clear(xp) do { set_pud(xp, __pud(0)); } while (0) xp 326 arch/sh/include/asm/pgtable_32.h #define pte_clear(mm,addr,xp) do { set_pte_at(mm, addr, xp, __pte(0)); } while (0) xp 330 arch/sh/include/asm/pgtable_32.h #define pmd_clear(xp) do { set_pmd(xp, __pmd(0)); } while (0) xp 35 arch/sh/include/asm/pgtable_64.h unsigned long long *xp = (unsigned long long *) pteptr; xp 39 arch/sh/include/asm/pgtable_64.h *(xp) = (x & NPHYS_SIGN) ? (x | NPHYS_MASK) : x; xp 227 arch/sh/include/asm/pgtable_64.h #define pte_clear(mm,addr,xp) (set_pte_at(mm, addr, xp, __pte(_PTE_EMPTY))) xp 11 arch/sh/lib/div64-generic.c uint32_t __div64_32(u64 *xp, u32 y) xp 14 arch/sh/lib/div64-generic.c uint64_t q = __xdiv64_32(*xp, y); xp 16 arch/sh/lib/div64-generic.c rem = *xp - q * y; xp 17 arch/sh/lib/div64-generic.c *xp = q; xp 95 arch/um/include/asm/pgtable.h #define pte_clear(mm,addr,xp) pte_set_val(*(xp), (phys_t) 0, __pgprot(_PAGE_NEWPAGE)) xp 101 arch/um/include/asm/pgtable.h #define pmd_clear(xp) do { pmd_val(*(xp)) = _PAGE_NEWPAGE; } while (0) xp 44 arch/x86/include/asm/pgtable-2level.h unsigned long addr, pte_t *xp) xp 46 arch/x86/include/asm/pgtable-2level.h *xp = native_make_pte(0); xp 50 arch/x86/include/asm/pgtable-2level.h static inline pte_t native_ptep_get_and_clear(pte_t *xp) xp 52 arch/x86/include/asm/pgtable-2level.h return __pte(xchg(&xp->pte_low, 0)); xp 55 arch/x86/include/asm/pgtable-2level.h #define native_ptep_get_and_clear(xp) native_local_ptep_get_and_clear(xp) xp 59 arch/x86/include/asm/pgtable-2level.h static inline pmd_t native_pmdp_get_and_clear(pmd_t *xp) xp 61 arch/x86/include/asm/pgtable-2level.h return __pmd(xchg((pmdval_t *)xp, 0)); xp 64 arch/x86/include/asm/pgtable-2level.h #define native_pmdp_get_and_clear(xp) native_local_pmdp_get_and_clear(xp) xp 68 arch/x86/include/asm/pgtable-2level.h static inline pud_t native_pudp_get_and_clear(pud_t *xp) xp 70 arch/x86/include/asm/pgtable-2level.h return __pud(xchg((pudval_t *)xp, 0)); xp 73 arch/x86/include/asm/pgtable-2level.h #define native_pudp_get_and_clear(xp) native_local_pudp_get_and_clear(xp) xp 160 arch/x86/include/asm/pgtable-3level.h #define native_ptep_get_and_clear(xp) native_local_ptep_get_and_clear(xp) xp 184 arch/x86/include/asm/pgtable-3level.h #define native_pmdp_get_and_clear(xp) native_local_pmdp_get_and_clear(xp) xp 246 arch/x86/include/asm/pgtable-3level.h #define native_pudp_get_and_clear(xp) native_local_pudp_get_and_clear(xp) xp 85 arch/x86/include/asm/pgtable_64.h static inline pte_t native_ptep_get_and_clear(pte_t *xp) xp 88 arch/x86/include/asm/pgtable_64.h return native_make_pte(xchg(&xp->pte, 0)); xp 92 arch/x86/include/asm/pgtable_64.h pte_t ret = *xp; xp 93 arch/x86/include/asm/pgtable_64.h native_pte_clear(NULL, 0, xp); xp 98 arch/x86/include/asm/pgtable_64.h static inline pmd_t native_pmdp_get_and_clear(pmd_t *xp) xp 101 arch/x86/include/asm/pgtable_64.h return native_make_pmd(xchg(&xp->pmd, 0)); xp 105 arch/x86/include/asm/pgtable_64.h pmd_t ret = *xp; xp 106 arch/x86/include/asm/pgtable_64.h native_pmd_clear(xp); xp 121 arch/x86/include/asm/pgtable_64.h static inline pud_t native_pudp_get_and_clear(pud_t *xp) xp 124 arch/x86/include/asm/pgtable_64.h return native_make_pud(xchg(&xp->pud, 0)); xp 129 arch/x86/include/asm/pgtable_64.h pud_t ret = *xp; xp 131 arch/x86/include/asm/pgtable_64.h native_pud_clear(xp); xp 523 arch/x86/xen/pmu.c struct xen_pmu_params xp; xp 539 arch/x86/xen/pmu.c xp.val = pfn_to_mfn(pfn); xp 540 arch/x86/xen/pmu.c xp.vcpu = cpu; xp 541 arch/x86/xen/pmu.c xp.version.maj = XENPMU_VER_MAJ; xp 542 arch/x86/xen/pmu.c xp.version.min = XENPMU_VER_MIN; xp 543 arch/x86/xen/pmu.c err = HYPERVISOR_xenpmu_op(XENPMU_init, &xp); xp 568 arch/x86/xen/pmu.c struct xen_pmu_params xp; xp 573 arch/x86/xen/pmu.c xp.vcpu = cpu; xp 574 arch/x86/xen/pmu.c xp.version.maj = XENPMU_VER_MAJ; xp 575 arch/x86/xen/pmu.c xp.version.min = XENPMU_VER_MIN; xp 577 arch/x86/xen/pmu.c (void)HYPERVISOR_xenpmu_op(XENPMU_finish, &xp); xp 249 drivers/bus/qcom-ebi2.c const struct ebi2_xmem_prop *xp = &xmem_props[i]; xp 252 drivers/bus/qcom-ebi2.c ret = of_property_read_u32(np, xp->prop, &val); xp 255 drivers/bus/qcom-ebi2.c xp->prop, csindex); xp 260 drivers/bus/qcom-ebi2.c if (xp->max == 1 && val) { xp 261 drivers/bus/qcom-ebi2.c if (xp->slowreg) xp 262 drivers/bus/qcom-ebi2.c slowcfg |= BIT(xp->shift); xp 264 drivers/bus/qcom-ebi2.c fastcfg |= BIT(xp->shift); xp 265 drivers/bus/qcom-ebi2.c dev_dbg(dev, "set %s flag\n", xp->prop); xp 270 drivers/bus/qcom-ebi2.c if (val > xp->max) { xp 273 drivers/bus/qcom-ebi2.c xp->prop, val, xp->max); xp 274 drivers/bus/qcom-ebi2.c val = xp->max; xp 276 drivers/bus/qcom-ebi2.c if (xp->slowreg) xp 277 drivers/bus/qcom-ebi2.c slowcfg |= (val << xp->shift); xp 279 drivers/bus/qcom-ebi2.c fastcfg |= (val << xp->shift); xp 280 drivers/bus/qcom-ebi2.c dev_dbg(dev, "set %s to %u\n", xp->prop, val); xp 451 drivers/gpu/drm/savage/savage_drv.h #define BCI_LINE_MISC(maj, ym, xp, yp, err) \ xp 454 drivers/gpu/drm/savage/savage_drv.h ((xp) ? 1<<14 : 0) | \ xp 181 drivers/input/joystick/as5011.c error = as5011_i2c_write(client, AS5011_XP, plat_dat->xp); xp 68 drivers/input/touchscreen/s3c2410_ts.c unsigned long xp; xp 105 drivers/input/touchscreen/s3c2410_ts.c ts.xp >>= ts.shift; xp 109 drivers/input/touchscreen/s3c2410_ts.c __func__, ts.xp, ts.yp, ts.count); xp 111 drivers/input/touchscreen/s3c2410_ts.c input_report_abs(ts.input, ABS_X, ts.xp); xp 117 drivers/input/touchscreen/s3c2410_ts.c ts.xp = 0; xp 124 drivers/input/touchscreen/s3c2410_ts.c ts.xp = 0; xp 187 drivers/input/touchscreen/s3c2410_ts.c ts.xp += data0; xp 74 drivers/media/common/saa7146/saa7146_hlp.c u32 xim = 0, xp = 0, xsci =0; xp 137 drivers/media/common/saa7146/saa7146_hlp.c xp = 0; xp 183 drivers/media/common/saa7146/saa7146_hlp.c *hps_h_scale |= (xim << 31) | (xp << 24) | (xsci << 12); xp 57 drivers/misc/cb710/debug.c const char *const xp = &cb710_xes[8 - t/4]; \ xp 74 drivers/misc/cb710/debug.c p += sprintf(p, "%s", xp); \ xp 345 drivers/misc/sgi-xp/xp.h extern struct device *xp; xp 32 drivers/misc/sgi-xp/xp_main.c struct device *xp = &xp_dbg_subname; xp 58 drivers/misc/sgi-xp/xp_uv.c dev_err(xp, "gru_read_gpa() failed, dst_gpa=0x%016lx src_gpa=0x%016lx " xp 77 drivers/misc/sgi-xp/xp_uv.c dev_err(xp, "gru_copy_gpa() failed, dst_gpa=0x%016lx src_gpa=0x%016lx " xp 97 drivers/misc/sgi-xp/xp_uv.c dev_err(xp, "uv_bios_change_memprotect(,, " xp 108 drivers/misc/sgi-xp/xp_uv.c dev_err(xp, "sn_change_memprotect(,, " xp 127 drivers/misc/sgi-xp/xp_uv.c dev_err(xp, "uv_bios_change_memprotect(,, " xp 138 drivers/misc/sgi-xp/xp_uv.c dev_err(xp, "sn_change_memprotect(,, " xp 440 drivers/net/ethernet/dec/tulip/xircom_cb.c struct xircom_private *xp = netdev_priv(dev); xp 441 drivers/net/ethernet/dec/tulip/xircom_cb.c const int irq = xp->pdev->irq; xp 449 drivers/net/ethernet/dec/tulip/xircom_cb.c xircom_up(xp); xp 450 drivers/net/ethernet/dec/tulip/xircom_cb.c xp->open = 1; xp 487 drivers/net/ethernet/dec/tulip/xircom_cb.c struct xircom_private *xp = netdev_priv(dev); xp 488 drivers/net/ethernet/dec/tulip/xircom_cb.c const int irq = xp->pdev->irq; xp 138 drivers/perf/arm-ccn.c } xp; xp 181 drivers/perf/arm-ccn.c struct arm_ccn_component *xp; xp 233 drivers/perf/arm-ccn.c static CCN_FORMAT_ATTR(xp, "config:0-7"); xp 669 drivers/perf/arm-ccn.c source = &ccn->xp[node_xp]; xp 676 drivers/perf/arm-ccn.c bit = arm_ccn_pmu_alloc_bit(source->xp.dt_cmp_mask, xp 708 drivers/perf/arm-ccn.c clear_bit(hw->config_base, source->xp.dt_cmp_mask); xp 893 drivers/perf/arm-ccn.c struct arm_ccn_component *xp; xp 901 drivers/perf/arm-ccn.c xp = &ccn->xp[CCN_CONFIG_XP(event->attr.config)]; xp 903 drivers/perf/arm-ccn.c xp = &ccn->xp[arm_ccn_node_to_xp( xp 913 drivers/perf/arm-ccn.c val = readl(xp->base + CCN_XP_DT_CONFIG); xp 917 drivers/perf/arm-ccn.c writel(val, xp->base + CCN_XP_DT_CONFIG); xp 1058 drivers/perf/arm-ccn.c u32 xp, offset, val; xp 1065 drivers/perf/arm-ccn.c xp = CCN_CONFIG_XP(event->attr.config); xp 1067 drivers/perf/arm-ccn.c xp = arm_ccn_node_to_xp(CCN_CONFIG_NODE(event->attr.config)); xp 1076 drivers/perf/arm-ccn.c val |= xp << CCN_DT_ACTIVE_DSM__DSM_ID__SHIFT(hw->idx % 4); xp 1240 drivers/perf/arm-ccn.c writel(0, ccn->xp[i].base + CCN_XP_DT_CONFIG); xp 1246 drivers/perf/arm-ccn.c ccn->xp[i].base + CCN_XP_DT_CONTROL); xp 1322 drivers/perf/arm-ccn.c writel(0, ccn->xp[i].base + CCN_XP_DT_CONTROL); xp 1336 drivers/perf/arm-ccn.c writel(0, ccn->xp[i].base + CCN_XP_DT_CONTROL); xp 1399 drivers/perf/arm-ccn.c component = &ccn->xp[id]; xp 1516 drivers/perf/arm-ccn.c ccn->xp = devm_kcalloc(ccn->dev, ccn->num_xps, sizeof(*ccn->node), xp 1518 drivers/perf/arm-ccn.c if (!ccn->node || !ccn->xp) xp 527 drivers/spi/spi-bcm-qspi.c const struct bcm_qspi_parms *xp) xp 531 drivers/spi/spi-bcm-qspi.c if (xp->speed_hz) xp 532 drivers/spi/spi-bcm-qspi.c spbr = qspi->base_clk / (2 * xp->speed_hz); xp 539 drivers/spi/spi-bcm-qspi.c if (xp->bits_per_word != 16) xp 540 drivers/spi/spi-bcm-qspi.c spcr |= xp->bits_per_word << 2; xp 541 drivers/spi/spi-bcm-qspi.c spcr |= xp->mode & 3; xp 544 drivers/spi/spi-bcm-qspi.c qspi->last_parms = *xp; xp 551 drivers/spi/spi-bcm-qspi.c struct bcm_qspi_parms xp; xp 553 drivers/spi/spi-bcm-qspi.c xp.speed_hz = trans->speed_hz; xp 554 drivers/spi/spi-bcm-qspi.c xp.bits_per_word = trans->bits_per_word; xp 555 drivers/spi/spi-bcm-qspi.c xp.mode = spi->mode; xp 557 drivers/spi/spi-bcm-qspi.c bcm_qspi_hw_set_parms(qspi, &xp); xp 562 drivers/spi/spi-bcm-qspi.c struct bcm_qspi_parms *xp; xp 567 drivers/spi/spi-bcm-qspi.c xp = spi_get_ctldata(spi); xp 568 drivers/spi/spi-bcm-qspi.c if (!xp) { xp 569 drivers/spi/spi-bcm-qspi.c xp = kzalloc(sizeof(*xp), GFP_KERNEL); xp 570 drivers/spi/spi-bcm-qspi.c if (!xp) xp 572 drivers/spi/spi-bcm-qspi.c spi_set_ctldata(spi, xp); xp 574 drivers/spi/spi-bcm-qspi.c xp->speed_hz = spi->max_speed_hz; xp 575 drivers/spi/spi-bcm-qspi.c xp->mode = spi->mode; xp 578 drivers/spi/spi-bcm-qspi.c xp->bits_per_word = spi->bits_per_word; xp 580 drivers/spi/spi-bcm-qspi.c xp->bits_per_word = 8; xp 995 drivers/spi/spi-bcm-qspi.c struct bcm_qspi_parms *xp = spi_get_ctldata(spi); xp 997 drivers/spi/spi-bcm-qspi.c kfree(xp); xp 420 drivers/xen/sys-hypervisor.c struct xen_pmu_params xp; xp 425 drivers/xen/sys-hypervisor.c xp.val = pmu_modes[i].mode; xp 433 drivers/xen/sys-hypervisor.c xp.version.maj = XENPMU_VER_MAJ; xp 434 drivers/xen/sys-hypervisor.c xp.version.min = XENPMU_VER_MIN; xp 435 drivers/xen/sys-hypervisor.c ret = HYPERVISOR_xenpmu_op(XENPMU_mode_set, &xp); xp 445 drivers/xen/sys-hypervisor.c struct xen_pmu_params xp; xp 449 drivers/xen/sys-hypervisor.c xp.version.maj = XENPMU_VER_MAJ; xp 450 drivers/xen/sys-hypervisor.c xp.version.min = XENPMU_VER_MIN; xp 451 drivers/xen/sys-hypervisor.c ret = HYPERVISOR_xenpmu_op(XENPMU_mode_get, &xp); xp 455 drivers/xen/sys-hypervisor.c mode = (uint32_t)xp.val; xp 470 drivers/xen/sys-hypervisor.c struct xen_pmu_params xp; xp 476 drivers/xen/sys-hypervisor.c xp.val = features; xp 477 drivers/xen/sys-hypervisor.c xp.version.maj = XENPMU_VER_MAJ; xp 478 drivers/xen/sys-hypervisor.c xp.version.min = XENPMU_VER_MIN; xp 479 drivers/xen/sys-hypervisor.c ret = HYPERVISOR_xenpmu_op(XENPMU_feature_set, &xp); xp 489 drivers/xen/sys-hypervisor.c struct xen_pmu_params xp; xp 491 drivers/xen/sys-hypervisor.c xp.version.maj = XENPMU_VER_MAJ; xp 492 drivers/xen/sys-hypervisor.c xp.version.min = XENPMU_VER_MIN; xp 493 drivers/xen/sys-hypervisor.c ret = HYPERVISOR_xenpmu_op(XENPMU_feature_get, &xp); xp 497 drivers/xen/sys-hypervisor.c return sprintf(buffer, "0x%x\n", (uint32_t)xp.val); xp 73 fs/jfs/jfs_extent.c extAlloc(struct inode *ip, s64 xlen, s64 pno, xad_t * xp, bool abnr) xp 94 fs/jfs/jfs_extent.c if ((hint = addressXAD(xp))) { xp 96 fs/jfs/jfs_extent.c nxlen = lengthXAD(xp); xp 106 fs/jfs/jfs_extent.c if (offsetXAD(xp) + nxlen == xoff && xp 107 fs/jfs/jfs_extent.c abnr == ((xp->flag & XAD_NOTRECORDED) ? true : false)) xp 161 fs/jfs/jfs_extent.c XADaddress(xp, nxaddr); xp 162 fs/jfs/jfs_extent.c XADlength(xp, nxlen); xp 163 fs/jfs/jfs_extent.c XADoffset(xp, xoff); xp 164 fs/jfs/jfs_extent.c xp->flag = xflag; xp 202 fs/jfs/jfs_extent.c int extRealloc(struct inode *ip, s64 nxlen, xad_t * xp, bool abnr) xp 221 fs/jfs/jfs_extent.c xaddr = addressXAD(xp); xp 222 fs/jfs/jfs_extent.c xlen = lengthXAD(xp); xp 223 fs/jfs/jfs_extent.c xoff = offsetXAD(xp); xp 229 fs/jfs/jfs_extent.c if ((xp->flag & XAD_NOTRECORDED) && !abnr) { xp 230 fs/jfs/jfs_extent.c xp->flag = 0; xp 231 fs/jfs/jfs_extent.c if ((rc = xtUpdate(0, ip, xp))) xp 267 fs/jfs/jfs_extent.c if (abnr && (!(xp->flag & XAD_NOTRECORDED)) && (nxlen > nbperpage)) { xp 278 fs/jfs/jfs_extent.c xflag = xp->flag; xp 323 fs/jfs/jfs_extent.c XADaddress(xp, nxaddr); xp 324 fs/jfs/jfs_extent.c XADlength(xp, nxlen); xp 325 fs/jfs/jfs_extent.c XADoffset(xp, xoff); xp 326 fs/jfs/jfs_extent.c xp->flag = xflag; xp 351 fs/jfs/jfs_extent.c int extHint(struct inode *ip, s64 offset, xad_t * xp) xp 362 fs/jfs/jfs_extent.c XADaddress(xp, 0); xp 381 fs/jfs/jfs_extent.c XADaddress(xp, xaddr); xp 382 fs/jfs/jfs_extent.c XADlength(xp, xlen); xp 383 fs/jfs/jfs_extent.c XADoffset(xp, prev); xp 388 fs/jfs/jfs_extent.c xp->flag = xflag & XAD_NOTRECORDED; xp 411 fs/jfs/jfs_extent.c int extRecord(struct inode *ip, xad_t * xp) xp 420 fs/jfs/jfs_extent.c rc = xtUpdate(0, ip, xp); xp 443 fs/jfs/jfs_extent.c int extFill(struct inode *ip, xad_t * xp) xp 446 fs/jfs/jfs_extent.c s64 blkno = offsetXAD(xp) >> ip->i_blkbits; xp 451 fs/jfs/jfs_extent.c XADaddress(xp, 0); xp 454 fs/jfs/jfs_extent.c if ((rc = extAlloc(ip, nbperpage, blkno, xp, false))) xp 457 fs/jfs/jfs_extent.c assert(lengthPXD(xp) == nbperpage); xp 674 fs/jfs/jfs_imap.c xtpage_t *p, *xp; xp 688 fs/jfs/jfs_imap.c xp = (xtpage_t *) &dp->di_dirtable; xp 691 fs/jfs/jfs_imap.c memcpy(&xp->xad[lv->offset], &p->xad[lv->offset], xp 696 fs/jfs/jfs_imap.c xad = &xp->xad[XTENTRYSTART]; xp 698 fs/jfs/jfs_imap.c n < le16_to_cpu(xp->header.nextindex); n++, xad++) xp 717 fs/jfs/jfs_imap.c xtpage_t *p, *xp; xp 724 fs/jfs/jfs_imap.c xp = &dp->di_xtroot; xp 727 fs/jfs/jfs_imap.c memcpy(&xp->xad[lv->offset], &p->xad[lv->offset], xp 732 fs/jfs/jfs_imap.c xad = &xp->xad[XTENTRYSTART]; xp 734 fs/jfs/jfs_imap.c n < le16_to_cpu(xp->header.nextindex); n++, xad++) xp 742 fs/jfs/jfs_imap.c dtpage_t *p, *xp; xp 748 fs/jfs/jfs_imap.c xp = (dtpage_t *) & dp->di_dtroot; xp 751 fs/jfs/jfs_imap.c memcpy(&xp->slot[lv->offset], &p->slot[lv->offset], xp 13 include/linux/input/as5011.h char xp, xn; /* threshold for x axis */ xp 1787 include/linux/lsm_hooks.h struct xfrm_policy *xp, xp 1586 include/linux/security.h struct xfrm_policy *xp, xp 1641 include/linux/security.h struct xfrm_policy *xp, const struct flowi *fl) xp 338 include/net/xfrm.h void km_policy_notify(struct xfrm_policy *xp, int dir, xp 532 include/net/xfrm.h static inline struct net *xp_net(const struct xfrm_policy *xp) xp 534 include/net/xfrm.h return read_pnet(&xp->xp_net); xp 572 include/net/xfrm.h int (*acquire)(struct xfrm_state *x, struct xfrm_tmpl *, struct xfrm_policy *xp); xp 700 include/net/xfrm.h void xfrm_audit_policy_add(struct xfrm_policy *xp, int result, bool task_valid); xp 701 include/net/xfrm.h void xfrm_audit_policy_delete(struct xfrm_policy *xp, int result, xp 716 include/net/xfrm.h static inline void xfrm_audit_policy_add(struct xfrm_policy *xp, int result, xp 721 include/net/xfrm.h static inline void xfrm_audit_policy_delete(struct xfrm_policy *xp, int result, xp 349 lib/inflate.c unsigned *xp; /* pointer into x */ xp 426 lib/inflate.c p = c + 1; xp = x + 2; xp 428 lib/inflate.c *xp++ = (j += *p++); xp 475 lib/inflate.c xp = c + k; xp 479 lib/inflate.c if ((f <<= 1) <= *++xp) xp 481 lib/inflate.c f -= *xp; /* else deduct codes from patterns */ xp 150 lib/mpi/mpi-pow.c mpi_ptr_t xp; xp 155 lib/mpi/mpi-pow.c xp = xp_marker = mpi_alloc_limb_space(2 * (msize + 1)); xp 156 lib/mpi/mpi-pow.c if (!xp) xp 184 lib/mpi/mpi-pow.c mpih_sqr_n_basecase(xp, rp, rsize); xp 200 lib/mpi/mpi-pow.c mpih_sqr_n(xp, rp, rsize, tspace); xp 205 lib/mpi/mpi-pow.c mpihelp_divrem(xp + msize, 0, xp, xsize, xp 211 lib/mpi/mpi-pow.c rp = xp; xp 212 lib/mpi/mpi-pow.c xp = tp; xp 220 lib/mpi/mpi-pow.c (xp, rp, rsize, bp, bsize, xp 225 lib/mpi/mpi-pow.c (xp, rp, rsize, bp, bsize, xp 232 lib/mpi/mpi-pow.c mpihelp_divrem(xp + msize, 0, xp 233 lib/mpi/mpi-pow.c xp, xsize, mp, xp 239 lib/mpi/mpi-pow.c rp = xp; xp 240 lib/mpi/mpi-pow.c xp = tp; xp 19 net/ipv6/ila/ila_xlat.c struct ila_xlat_params xp; xp 58 net/ipv6/ila/ila_xlat.c return (ila->xp.ifindex && ila->xp.ifindex != ifindex); xp 62 net/ipv6/ila/ila_xlat.c struct ila_xlat_params *xp) xp 64 net/ipv6/ila/ila_xlat.c return (ila->xp.ifindex != xp->ifindex); xp 72 net/ipv6/ila/ila_xlat.c return (ila->xp.ip.locator_match.v64 != *(__be64 *)arg->key); xp 79 net/ipv6/ila/ila_xlat.c if (ila->xp.ifindex) xp 88 net/ipv6/ila/ila_xlat.c .key_offset = offsetof(struct ila_map, xp.ip.locator_match), xp 97 net/ipv6/ila/ila_xlat.c struct ila_xlat_params *xp) xp 99 net/ipv6/ila/ila_xlat.c memset(xp, 0, sizeof(*xp)); xp 102 net/ipv6/ila/ila_xlat.c xp->ip.locator.v64 = (__force __be64)nla_get_u64( xp 106 net/ipv6/ila/ila_xlat.c xp->ip.locator_match.v64 = (__force __be64)nla_get_u64( xp 110 net/ipv6/ila/ila_xlat.c xp->ip.csum_mode = nla_get_u8(info->attrs[ILA_ATTR_CSUM_MODE]); xp 112 net/ipv6/ila/ila_xlat.c xp->ip.csum_mode = ILA_CSUM_NO_ACTION; xp 115 net/ipv6/ila/ila_xlat.c xp->ip.ident_type = nla_get_u8( xp 118 net/ipv6/ila/ila_xlat.c xp->ip.ident_type = ILA_ATYPE_USE_FORMAT; xp 121 net/ipv6/ila/ila_xlat.c xp->ifindex = nla_get_s32(info->attrs[ILA_ATTR_IFINDEX]); xp 145 net/ipv6/ila/ila_xlat.c static inline struct ila_map *ila_lookup_by_params(struct ila_xlat_params *xp, xp 151 net/ipv6/ila/ila_xlat.c &xp->ip.locator_match, xp 154 net/ipv6/ila/ila_xlat.c if (!ila_cmp_params(ila, xp)) xp 204 net/ipv6/ila/ila_xlat.c static int ila_add_mapping(struct net *net, struct ila_xlat_params *xp) xp 208 net/ipv6/ila/ila_xlat.c spinlock_t *lock = ila_get_lock(ilan, xp->ip.locator_match); xp 227 net/ipv6/ila/ila_xlat.c ila_init_saved_csum(&xp->ip); xp 229 net/ipv6/ila/ila_xlat.c ila->xp = *xp; xp 236 net/ipv6/ila/ila_xlat.c &xp->ip.locator_match, xp 246 net/ipv6/ila/ila_xlat.c if (!ila_cmp_params(tila, xp)) { xp 283 net/ipv6/ila/ila_xlat.c static int ila_del_mapping(struct net *net, struct ila_xlat_params *xp) xp 287 net/ipv6/ila/ila_xlat.c spinlock_t *lock = ila_get_lock(ilan, xp->ip.locator_match); xp 293 net/ipv6/ila/ila_xlat.c &xp->ip.locator_match, rht_params); xp 299 net/ipv6/ila/ila_xlat.c if (ila_cmp_params(ila, xp)) { xp 361 net/ipv6/ila/ila_xlat.c struct ila_xlat_params xp; xp 364 net/ipv6/ila/ila_xlat.c err = parse_nl_config(info, &xp); xp 368 net/ipv6/ila/ila_xlat.c ila_del_mapping(net, &xp); xp 376 net/ipv6/ila/ila_xlat.c return ila_get_lock(ilan, ila->xp.ip.locator_match); xp 427 net/ipv6/ila/ila_xlat.c (__force u64)ila->xp.ip.locator.v64, xp 430 net/ipv6/ila/ila_xlat.c (__force u64)ila->xp.ip.locator_match.v64, xp 432 net/ipv6/ila/ila_xlat.c nla_put_s32(msg, ILA_ATTR_IFINDEX, ila->xp.ifindex) || xp 433 net/ipv6/ila/ila_xlat.c nla_put_u8(msg, ILA_ATTR_CSUM_MODE, ila->xp.ip.csum_mode) || xp 434 net/ipv6/ila/ila_xlat.c nla_put_u8(msg, ILA_ATTR_IDENT_TYPE, ila->xp.ip.ident_type)) xp 466 net/ipv6/ila/ila_xlat.c struct ila_xlat_params xp; xp 470 net/ipv6/ila/ila_xlat.c ret = parse_nl_config(info, &xp); xp 480 net/ipv6/ila/ila_xlat.c ila = ila_lookup_by_params(&xp, ilan); xp 652 net/ipv6/ila/ila_xlat.c ila_update_ipv6_locator(skb, &ila->xp.ip, sir2ila); xp 1903 net/key/af_key.c static int check_reqid(struct xfrm_policy *xp, int dir, int count, void *ptr) xp 1908 net/key/af_key.c for (i=0; i<xp->xfrm_nr; i++) { xp 1909 net/key/af_key.c if (xp->xfrm_vec[i].reqid == reqid) xp 1937 net/key/af_key.c parse_ipsecrequest(struct xfrm_policy *xp, struct sadb_x_ipsecrequest *rq) xp 1939 net/key/af_key.c struct net *net = xp_net(xp); xp 1940 net/key/af_key.c struct xfrm_tmpl *t = xp->xfrm_vec + xp->xfrm_nr; xp 1943 net/key/af_key.c if (xp->xfrm_nr >= XFRM_MAX_DEPTH) xp 1976 net/key/af_key.c t->encap_family = xp->family; xp 1980 net/key/af_key.c xp->xfrm_nr++; xp 1985 net/key/af_key.c parse_ipsecrequests(struct xfrm_policy *xp, struct sadb_x_policy *pol) xp 1999 net/key/af_key.c if ((err = parse_ipsecrequest(xp, rq)) < 0) xp 2007 net/key/af_key.c static inline int pfkey_xfrm_policy2sec_ctx_size(const struct xfrm_policy *xp) xp 2009 net/key/af_key.c struct xfrm_sec_ctx *xfrm_ctx = xp->security; xp 2019 net/key/af_key.c static int pfkey_xfrm_policy2msg_size(const struct xfrm_policy *xp) xp 2022 net/key/af_key.c int sockaddr_size = pfkey_sockaddr_size(xp->family); xp 2026 net/key/af_key.c for (i=0; i<xp->xfrm_nr; i++) { xp 2027 net/key/af_key.c t = xp->xfrm_vec + i; xp 2036 net/key/af_key.c (xp->xfrm_nr * sizeof(struct sadb_x_ipsecrequest)) + xp 2038 net/key/af_key.c pfkey_xfrm_policy2sec_ctx_size(xp); xp 2041 net/key/af_key.c static struct sk_buff * pfkey_xfrm_policy2msg_prep(const struct xfrm_policy *xp) xp 2046 net/key/af_key.c size = pfkey_xfrm_policy2msg_size(xp); xp 2055 net/key/af_key.c static int pfkey_xfrm_policy2msg(struct sk_buff *skb, const struct xfrm_policy *xp, int dir) xp 2065 net/key/af_key.c int sockaddr_size = pfkey_sockaddr_size(xp->family); xp 2066 net/key/af_key.c int socklen = pfkey_sockaddr_len(xp->family); xp 2068 net/key/af_key.c size = pfkey_xfrm_policy2msg_size(xp); xp 2080 net/key/af_key.c addr->sadb_address_proto = pfkey_proto_from_xfrm(xp->selector.proto); xp 2081 net/key/af_key.c addr->sadb_address_prefixlen = xp->selector.prefixlen_s; xp 2083 net/key/af_key.c if (!pfkey_sockaddr_fill(&xp->selector.saddr, xp 2084 net/key/af_key.c xp->selector.sport, xp 2086 net/key/af_key.c xp->family)) xp 2095 net/key/af_key.c addr->sadb_address_proto = pfkey_proto_from_xfrm(xp->selector.proto); xp 2096 net/key/af_key.c addr->sadb_address_prefixlen = xp->selector.prefixlen_d; xp 2099 net/key/af_key.c pfkey_sockaddr_fill(&xp->selector.daddr, xp->selector.dport, xp 2101 net/key/af_key.c xp->family); xp 2108 net/key/af_key.c lifetime->sadb_lifetime_allocations = _X2KEY(xp->lft.hard_packet_limit); xp 2109 net/key/af_key.c lifetime->sadb_lifetime_bytes = _X2KEY(xp->lft.hard_byte_limit); xp 2110 net/key/af_key.c lifetime->sadb_lifetime_addtime = xp->lft.hard_add_expires_seconds; xp 2111 net/key/af_key.c lifetime->sadb_lifetime_usetime = xp->lft.hard_use_expires_seconds; xp 2117 net/key/af_key.c lifetime->sadb_lifetime_allocations = _X2KEY(xp->lft.soft_packet_limit); xp 2118 net/key/af_key.c lifetime->sadb_lifetime_bytes = _X2KEY(xp->lft.soft_byte_limit); xp 2119 net/key/af_key.c lifetime->sadb_lifetime_addtime = xp->lft.soft_add_expires_seconds; xp 2120 net/key/af_key.c lifetime->sadb_lifetime_usetime = xp->lft.soft_use_expires_seconds; xp 2126 net/key/af_key.c lifetime->sadb_lifetime_allocations = xp->curlft.packets; xp 2127 net/key/af_key.c lifetime->sadb_lifetime_bytes = xp->curlft.bytes; xp 2128 net/key/af_key.c lifetime->sadb_lifetime_addtime = xp->curlft.add_time; xp 2129 net/key/af_key.c lifetime->sadb_lifetime_usetime = xp->curlft.use_time; xp 2135 net/key/af_key.c if (xp->action == XFRM_POLICY_ALLOW) { xp 2136 net/key/af_key.c if (xp->xfrm_nr) xp 2143 net/key/af_key.c pol->sadb_x_policy_id = xp->index; xp 2144 net/key/af_key.c pol->sadb_x_policy_priority = xp->priority; xp 2146 net/key/af_key.c for (i=0; i<xp->xfrm_nr; i++) { xp 2147 net/key/af_key.c const struct xfrm_tmpl *t = xp->xfrm_vec + i; xp 2186 net/key/af_key.c if ((xfrm_ctx = xp->security)) { xp 2187 net/key/af_key.c int ctx_size = pfkey_xfrm_policy2sec_ctx_size(xp); xp 2200 net/key/af_key.c hdr->sadb_msg_reserved = refcount_read(&xp->refcnt); xp 2205 net/key/af_key.c static int key_notify_policy(struct xfrm_policy *xp, int dir, const struct km_event *c) xp 2211 net/key/af_key.c out_skb = pfkey_xfrm_policy2msg_prep(xp); xp 2215 net/key/af_key.c err = pfkey_xfrm_policy2msg(out_skb, xp, dir); xp 2231 net/key/af_key.c pfkey_broadcast(out_skb, GFP_ATOMIC, BROADCAST_ALL, NULL, xp_net(xp)); xp 2243 net/key/af_key.c struct xfrm_policy *xp; xp 2258 net/key/af_key.c xp = xfrm_policy_alloc(net, GFP_KERNEL); xp 2259 net/key/af_key.c if (xp == NULL) xp 2262 net/key/af_key.c xp->action = (pol->sadb_x_policy_type == IPSEC_POLICY_DISCARD ? xp 2264 net/key/af_key.c xp->priority = pol->sadb_x_policy_priority; xp 2267 net/key/af_key.c xp->family = pfkey_sadb_addr2xfrm_addr(sa, &xp->selector.saddr); xp 2268 net/key/af_key.c xp->selector.family = xp->family; xp 2269 net/key/af_key.c xp->selector.prefixlen_s = sa->sadb_address_prefixlen; xp 2270 net/key/af_key.c xp->selector.proto = pfkey_proto_to_xfrm(sa->sadb_address_proto); xp 2271 net/key/af_key.c xp->selector.sport = ((struct sockaddr_in *)(sa+1))->sin_port; xp 2272 net/key/af_key.c if (xp->selector.sport) xp 2273 net/key/af_key.c xp->selector.sport_mask = htons(0xffff); xp 2276 net/key/af_key.c pfkey_sadb_addr2xfrm_addr(sa, &xp->selector.daddr); xp 2277 net/key/af_key.c xp->selector.prefixlen_d = sa->sadb_address_prefixlen; xp 2282 net/key/af_key.c xp->selector.proto = pfkey_proto_to_xfrm(sa->sadb_address_proto); xp 2284 net/key/af_key.c xp->selector.dport = ((struct sockaddr_in *)(sa+1))->sin_port; xp 2285 net/key/af_key.c if (xp->selector.dport) xp 2286 net/key/af_key.c xp->selector.dport_mask = htons(0xffff); xp 2297 net/key/af_key.c err = security_xfrm_policy_alloc(&xp->security, uctx, GFP_KERNEL); xp 2304 net/key/af_key.c xp->lft.soft_byte_limit = XFRM_INF; xp 2305 net/key/af_key.c xp->lft.hard_byte_limit = XFRM_INF; xp 2306 net/key/af_key.c xp->lft.soft_packet_limit = XFRM_INF; xp 2307 net/key/af_key.c xp->lft.hard_packet_limit = XFRM_INF; xp 2309 net/key/af_key.c xp->lft.hard_packet_limit = _KEY2X(lifetime->sadb_lifetime_allocations); xp 2310 net/key/af_key.c xp->lft.hard_byte_limit = _KEY2X(lifetime->sadb_lifetime_bytes); xp 2311 net/key/af_key.c xp->lft.hard_add_expires_seconds = lifetime->sadb_lifetime_addtime; xp 2312 net/key/af_key.c xp->lft.hard_use_expires_seconds = lifetime->sadb_lifetime_usetime; xp 2315 net/key/af_key.c xp->lft.soft_packet_limit = _KEY2X(lifetime->sadb_lifetime_allocations); xp 2316 net/key/af_key.c xp->lft.soft_byte_limit = _KEY2X(lifetime->sadb_lifetime_bytes); xp 2317 net/key/af_key.c xp->lft.soft_add_expires_seconds = lifetime->sadb_lifetime_addtime; xp 2318 net/key/af_key.c xp->lft.soft_use_expires_seconds = lifetime->sadb_lifetime_usetime; xp 2320 net/key/af_key.c xp->xfrm_nr = 0; xp 2322 net/key/af_key.c (err = parse_ipsecrequests(xp, pol)) < 0) xp 2325 net/key/af_key.c err = xfrm_policy_insert(pol->sadb_x_policy_dir-1, xp, xp 2328 net/key/af_key.c xfrm_audit_policy_add(xp, err ? 0 : 1, true); xp 2341 net/key/af_key.c km_policy_notify(xp, pol->sadb_x_policy_dir-1, &c); xp 2342 net/key/af_key.c xfrm_pol_put(xp); xp 2346 net/key/af_key.c xp->walk.dead = 1; xp 2347 net/key/af_key.c xfrm_policy_destroy(xp); xp 2357 net/key/af_key.c struct xfrm_policy *xp; xp 2403 net/key/af_key.c xp = xfrm_policy_bysel_ctx(net, DUMMY_MARK, 0, XFRM_POLICY_TYPE_MAIN, xp 2407 net/key/af_key.c if (xp == NULL) xp 2410 net/key/af_key.c xfrm_audit_policy_delete(xp, err ? 0 : 1, true); xp 2419 net/key/af_key.c km_policy_notify(xp, pol->sadb_x_policy_dir-1, &c); xp 2422 net/key/af_key.c xfrm_pol_put(xp); xp 2426 net/key/af_key.c static int key_pol_get_resp(struct sock *sk, struct xfrm_policy *xp, const struct sadb_msg *hdr, int dir) xp 2433 net/key/af_key.c out_skb = pfkey_xfrm_policy2msg_prep(xp); xp 2438 net/key/af_key.c err = pfkey_xfrm_policy2msg(out_skb, xp, dir); xp 2451 net/key/af_key.c pfkey_broadcast(out_skb, GFP_ATOMIC, BROADCAST_ONE, sk, xp_net(xp)); xp 2643 net/key/af_key.c struct xfrm_policy *xp; xp 2654 net/key/af_key.c xp = xfrm_policy_byid(net, DUMMY_MARK, 0, XFRM_POLICY_TYPE_MAIN, xp 2656 net/key/af_key.c if (xp == NULL) xp 2660 net/key/af_key.c xfrm_audit_policy_delete(xp, err ? 0 : 1, true); xp 2668 net/key/af_key.c km_policy_notify(xp, dir, &c); xp 2670 net/key/af_key.c err = key_pol_get_resp(sk, xp, hdr, dir); xp 2674 net/key/af_key.c xfrm_pol_put(xp); xp 2678 net/key/af_key.c static int dump_sp(struct xfrm_policy *xp, int dir, int count, void *ptr) xp 2688 net/key/af_key.c out_skb = pfkey_xfrm_policy2msg_prep(xp); xp 2692 net/key/af_key.c err = pfkey_xfrm_policy2msg(out_skb, xp, dir); xp 3016 net/key/af_key.c static int key_notify_policy_expire(struct xfrm_policy *xp, const struct km_event *c) xp 3079 net/key/af_key.c static int pfkey_send_policy_notify(struct xfrm_policy *xp, int dir, const struct km_event *c) xp 3081 net/key/af_key.c if (xp && xp->type != XFRM_POLICY_TYPE_MAIN) xp 3086 net/key/af_key.c return key_notify_policy_expire(xp, c); xp 3090 net/key/af_key.c return key_notify_policy(xp, dir, c); xp 3132 net/key/af_key.c static int pfkey_send_acquire(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *xp) xp 3213 net/key/af_key.c pol->sadb_x_policy_id = xp->index; xp 3214 net/key/af_key.c pol->sadb_x_policy_priority = xp->priority; xp 3244 net/key/af_key.c struct xfrm_policy *xp; xp 3276 net/key/af_key.c xp = xfrm_policy_alloc(net, GFP_ATOMIC); xp 3277 net/key/af_key.c if (xp == NULL) { xp 3282 net/key/af_key.c xp->action = (pol->sadb_x_policy_type == IPSEC_POLICY_DISCARD ? xp 3285 net/key/af_key.c xp->lft.soft_byte_limit = XFRM_INF; xp 3286 net/key/af_key.c xp->lft.hard_byte_limit = XFRM_INF; xp 3287 net/key/af_key.c xp->lft.soft_packet_limit = XFRM_INF; xp 3288 net/key/af_key.c xp->lft.hard_packet_limit = XFRM_INF; xp 3289 net/key/af_key.c xp->family = sk->sk_family; xp 3291 net/key/af_key.c xp->xfrm_nr = 0; xp 3293 net/key/af_key.c (*dir = parse_ipsecrequests(xp, pol)) < 0) xp 3312 net/key/af_key.c *dir = security_xfrm_policy_alloc(&xp->security, uctx, GFP_ATOMIC); xp 3320 net/key/af_key.c return xp; xp 3323 net/key/af_key.c xp->walk.dead = 1; xp 3324 net/key/af_key.c xfrm_policy_destroy(xp); xp 645 net/netfilter/x_tables.c struct xt_af *xp = &xt[af]; xp 649 net/netfilter/x_tables.c if (WARN_ON(!xp->compat_tab)) xp 652 net/netfilter/x_tables.c if (xp->cur >= xp->number) xp 655 net/netfilter/x_tables.c if (xp->cur) xp 656 net/netfilter/x_tables.c delta += xp->compat_tab[xp->cur - 1].delta; xp 657 net/netfilter/x_tables.c xp->compat_tab[xp->cur].offset = offset; xp 658 net/netfilter/x_tables.c xp->compat_tab[xp->cur].delta = delta; xp 659 net/netfilter/x_tables.c xp->cur++; xp 1376 net/sunrpc/xprtsock.c __be32 *xp; xp 1385 net/sunrpc/xprtsock.c xp = skb_header_pointer(skb, 0, sizeof(_xid), &_xid); xp 1386 net/sunrpc/xprtsock.c if (xp == NULL) xp 1391 net/sunrpc/xprtsock.c rovr = xprt_lookup_rqst(xprt, *xp); xp 312 net/xfrm/xfrm_policy.c struct xfrm_policy *xp = from_timer(xp, t, timer); xp 318 net/xfrm/xfrm_policy.c read_lock(&xp->lock); xp 320 net/xfrm/xfrm_policy.c if (unlikely(xp->walk.dead)) xp 323 net/xfrm/xfrm_policy.c dir = xfrm_policy_id2dir(xp->index); xp 325 net/xfrm/xfrm_policy.c if (xp->lft.hard_add_expires_seconds) { xp 326 net/xfrm/xfrm_policy.c time64_t tmo = xp->lft.hard_add_expires_seconds + xp 327 net/xfrm/xfrm_policy.c xp->curlft.add_time - now; xp 333 net/xfrm/xfrm_policy.c if (xp->lft.hard_use_expires_seconds) { xp 334 net/xfrm/xfrm_policy.c time64_t tmo = xp->lft.hard_use_expires_seconds + xp 335 net/xfrm/xfrm_policy.c (xp->curlft.use_time ? : xp->curlft.add_time) - now; xp 341 net/xfrm/xfrm_policy.c if (xp->lft.soft_add_expires_seconds) { xp 342 net/xfrm/xfrm_policy.c time64_t tmo = xp->lft.soft_add_expires_seconds + xp 343 net/xfrm/xfrm_policy.c xp->curlft.add_time - now; xp 351 net/xfrm/xfrm_policy.c if (xp->lft.soft_use_expires_seconds) { xp 352 net/xfrm/xfrm_policy.c time64_t tmo = xp->lft.soft_use_expires_seconds + xp 353 net/xfrm/xfrm_policy.c (xp->curlft.use_time ? : xp->curlft.add_time) - now; xp 363 net/xfrm/xfrm_policy.c km_policy_expired(xp, dir, 0, 0); xp 365 net/xfrm/xfrm_policy.c !mod_timer(&xp->timer, jiffies + make_jiffies(next))) xp 366 net/xfrm/xfrm_policy.c xfrm_pol_hold(xp); xp 369 net/xfrm/xfrm_policy.c read_unlock(&xp->lock); xp 370 net/xfrm/xfrm_policy.c xfrm_pol_put(xp); xp 374 net/xfrm/xfrm_policy.c read_unlock(&xp->lock); xp 375 net/xfrm/xfrm_policy.c if (!xfrm_policy_delete(xp, dir)) xp 376 net/xfrm/xfrm_policy.c km_policy_expired(xp, dir, 1, 0); xp 377 net/xfrm/xfrm_policy.c xfrm_pol_put(xp); xp 4162 net/xfrm/xfrm_policy.c static void xfrm_audit_common_policyinfo(struct xfrm_policy *xp, xp 4165 net/xfrm/xfrm_policy.c struct xfrm_sec_ctx *ctx = xp->security; xp 4166 net/xfrm/xfrm_policy.c struct xfrm_selector *sel = &xp->selector; xp 4196 net/xfrm/xfrm_policy.c void xfrm_audit_policy_add(struct xfrm_policy *xp, int result, bool task_valid) xp 4205 net/xfrm/xfrm_policy.c xfrm_audit_common_policyinfo(xp, audit_buf); xp 4210 net/xfrm/xfrm_policy.c void xfrm_audit_policy_delete(struct xfrm_policy *xp, int result, xp 4220 net/xfrm/xfrm_policy.c xfrm_audit_common_policyinfo(xp, audit_buf); xp 2120 net/xfrm/xfrm_state.c void km_policy_notify(struct xfrm_policy *xp, int dir, const struct km_event *c) xp 2127 net/xfrm/xfrm_state.c km->notify_policy(xp, dir, c); xp 1466 net/xfrm/xfrm_user.c static void copy_templates(struct xfrm_policy *xp, struct xfrm_user_tmpl *ut, xp 1471 net/xfrm/xfrm_user.c xp->xfrm_nr = nr; xp 1473 net/xfrm/xfrm_user.c struct xfrm_tmpl *t = &xp->xfrm_vec[i]; xp 1584 net/xfrm/xfrm_user.c static void copy_from_user_policy(struct xfrm_policy *xp, struct xfrm_userpolicy_info *p) xp 1586 net/xfrm/xfrm_user.c xp->priority = p->priority; xp 1587 net/xfrm/xfrm_user.c xp->index = p->index; xp 1588 net/xfrm/xfrm_user.c memcpy(&xp->selector, &p->sel, sizeof(xp->selector)); xp 1589 net/xfrm/xfrm_user.c memcpy(&xp->lft, &p->lft, sizeof(xp->lft)); xp 1590 net/xfrm/xfrm_user.c xp->action = p->action; xp 1591 net/xfrm/xfrm_user.c xp->flags = p->flags; xp 1592 net/xfrm/xfrm_user.c xp->family = p->sel.family; xp 1596 net/xfrm/xfrm_user.c static void copy_to_user_policy(struct xfrm_policy *xp, struct xfrm_userpolicy_info *p, int dir) xp 1599 net/xfrm/xfrm_user.c memcpy(&p->sel, &xp->selector, sizeof(p->sel)); xp 1600 net/xfrm/xfrm_user.c memcpy(&p->lft, &xp->lft, sizeof(p->lft)); xp 1601 net/xfrm/xfrm_user.c memcpy(&p->curlft, &xp->curlft, sizeof(p->curlft)); xp 1602 net/xfrm/xfrm_user.c p->priority = xp->priority; xp 1603 net/xfrm/xfrm_user.c p->index = xp->index; xp 1604 net/xfrm/xfrm_user.c p->sel.family = xp->family; xp 1606 net/xfrm/xfrm_user.c p->action = xp->action; xp 1607 net/xfrm/xfrm_user.c p->flags = xp->flags; xp 1613 net/xfrm/xfrm_user.c struct xfrm_policy *xp = xfrm_policy_alloc(net, GFP_KERNEL); xp 1616 net/xfrm/xfrm_user.c if (!xp) { xp 1621 net/xfrm/xfrm_user.c copy_from_user_policy(xp, p); xp 1623 net/xfrm/xfrm_user.c err = copy_from_user_policy_type(&xp->type, attrs); xp 1627 net/xfrm/xfrm_user.c if (!(err = copy_from_user_tmpl(xp, attrs))) xp 1628 net/xfrm/xfrm_user.c err = copy_from_user_sec_ctx(xp, attrs); xp 1632 net/xfrm/xfrm_user.c xfrm_mark_get(attrs, &xp->mark); xp 1635 net/xfrm/xfrm_user.c xp->if_id = nla_get_u32(attrs[XFRMA_IF_ID]); xp 1637 net/xfrm/xfrm_user.c return xp; xp 1640 net/xfrm/xfrm_user.c xp->walk.dead = 1; xp 1641 net/xfrm/xfrm_user.c xfrm_policy_destroy(xp); xp 1650 net/xfrm/xfrm_user.c struct xfrm_policy *xp; xp 1662 net/xfrm/xfrm_user.c xp = xfrm_policy_construct(net, p, attrs, &err); xp 1663 net/xfrm/xfrm_user.c if (!xp) xp 1671 net/xfrm/xfrm_user.c err = xfrm_policy_insert(p->dir, xp, excl); xp 1672 net/xfrm/xfrm_user.c xfrm_audit_policy_add(xp, err ? 0 : 1, true); xp 1675 net/xfrm/xfrm_user.c security_xfrm_policy_free(xp->security); xp 1676 net/xfrm/xfrm_user.c kfree(xp); xp 1683 net/xfrm/xfrm_user.c km_policy_notify(xp, p->dir, &c); xp 1685 net/xfrm/xfrm_user.c xfrm_pol_put(xp); xp 1690 net/xfrm/xfrm_user.c static int copy_to_user_tmpl(struct xfrm_policy *xp, struct sk_buff *skb) xp 1695 net/xfrm/xfrm_user.c if (xp->xfrm_nr == 0) xp 1698 net/xfrm/xfrm_user.c for (i = 0; i < xp->xfrm_nr; i++) { xp 1700 net/xfrm/xfrm_user.c struct xfrm_tmpl *kp = &xp->xfrm_vec[i]; xp 1716 net/xfrm/xfrm_user.c sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr, vec); xp 1727 net/xfrm/xfrm_user.c static inline int copy_to_user_sec_ctx(struct xfrm_policy *xp, struct sk_buff *skb) xp 1729 net/xfrm/xfrm_user.c if (xp->security) xp 1730 net/xfrm/xfrm_user.c return copy_sec_ctx(xp->security, skb); xp 1761 net/xfrm/xfrm_user.c static int dump_one_policy(struct xfrm_policy *xp, int dir, int count, void *ptr) xp 1776 net/xfrm/xfrm_user.c copy_to_user_policy(xp, p, dir); xp 1777 net/xfrm/xfrm_user.c err = copy_to_user_tmpl(xp, skb); xp 1779 net/xfrm/xfrm_user.c err = copy_to_user_sec_ctx(xp, skb); xp 1781 net/xfrm/xfrm_user.c err = copy_to_user_policy_type(xp->type, skb); xp 1783 net/xfrm/xfrm_user.c err = xfrm_mark_put(skb, &xp->mark); xp 1785 net/xfrm/xfrm_user.c err = xfrm_if_id_put(skb, xp->if_id); xp 1830 net/xfrm/xfrm_user.c struct xfrm_policy *xp, xp 1846 net/xfrm/xfrm_user.c err = dump_one_policy(xp, dir, 0, &info); xp 1859 net/xfrm/xfrm_user.c struct xfrm_policy *xp; xp 1884 net/xfrm/xfrm_user.c xp = xfrm_policy_byid(net, mark, if_id, type, p->dir, p->index, delete, &err); xp 1901 net/xfrm/xfrm_user.c xp = xfrm_policy_bysel_ctx(net, mark, if_id, type, p->dir, &p->sel, xp 1905 net/xfrm/xfrm_user.c if (xp == NULL) xp 1911 net/xfrm/xfrm_user.c resp_skb = xfrm_policy_netlink(skb, xp, p->dir, nlh->nlmsg_seq); xp 1919 net/xfrm/xfrm_user.c xfrm_audit_policy_delete(xp, err ? 0 : 1, true); xp 1928 net/xfrm/xfrm_user.c km_policy_notify(xp, p->dir, &c); xp 1932 net/xfrm/xfrm_user.c xfrm_pol_put(xp); xp 2163 net/xfrm/xfrm_user.c struct xfrm_policy *xp; xp 2184 net/xfrm/xfrm_user.c xp = xfrm_policy_byid(net, mark, if_id, type, p->dir, p->index, 0, &err); xp 2201 net/xfrm/xfrm_user.c xp = xfrm_policy_bysel_ctx(net, mark, if_id, type, p->dir, xp 2205 net/xfrm/xfrm_user.c if (xp == NULL) xp 2208 net/xfrm/xfrm_user.c if (unlikely(xp->walk.dead)) xp 2213 net/xfrm/xfrm_user.c xfrm_policy_delete(xp, p->dir); xp 2214 net/xfrm/xfrm_user.c xfrm_audit_policy_delete(xp, 1, true); xp 2216 net/xfrm/xfrm_user.c km_policy_expired(xp, p->dir, up->hard, nlh->nlmsg_pid); xp 2219 net/xfrm/xfrm_user.c xfrm_pol_put(xp); xp 2261 net/xfrm/xfrm_user.c struct xfrm_policy *xp; xp 2284 net/xfrm/xfrm_user.c xp = xfrm_policy_construct(net, &ua->policy, attrs, &err); xp 2285 net/xfrm/xfrm_user.c if (!xp) xp 2291 net/xfrm/xfrm_user.c xp->mark.m = x->mark.m = mark.m; xp 2292 net/xfrm/xfrm_user.c xp->mark.v = x->mark.v = mark.v; xp 2295 net/xfrm/xfrm_user.c for (i = 0; i < xp->xfrm_nr; i++, ut++) { xp 2296 net/xfrm/xfrm_user.c struct xfrm_tmpl *t = &xp->xfrm_vec[i]; xp 2304 net/xfrm/xfrm_user.c err = km_query(x, t, xp); xp 2309 net/xfrm/xfrm_user.c kfree(xp); xp 2913 net/xfrm/xfrm_user.c struct xfrm_policy *xp) xp 2916 net/xfrm/xfrm_user.c + nla_total_size(sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr) xp 2923 net/xfrm/xfrm_user.c struct xfrm_tmpl *xt, struct xfrm_policy *xp) xp 2938 net/xfrm/xfrm_user.c copy_to_user_policy(xp, &ua->policy, XFRM_POLICY_OUT); xp 2944 net/xfrm/xfrm_user.c err = copy_to_user_tmpl(xp, skb); xp 2948 net/xfrm/xfrm_user.c err = copy_to_user_policy_type(xp->type, skb); xp 2950 net/xfrm/xfrm_user.c err = xfrm_mark_put(skb, &xp->mark); xp 2952 net/xfrm/xfrm_user.c err = xfrm_if_id_put(skb, xp->if_id); xp 2963 net/xfrm/xfrm_user.c struct xfrm_policy *xp) xp 2969 net/xfrm/xfrm_user.c skb = nlmsg_new(xfrm_acquire_msgsize(x, xp), GFP_ATOMIC); xp 2973 net/xfrm/xfrm_user.c err = build_acquire(skb, x, xt, xp); xp 2988 net/xfrm/xfrm_user.c struct xfrm_policy *xp; xp 3024 net/xfrm/xfrm_user.c xp = xfrm_policy_alloc(net, GFP_ATOMIC); xp 3025 net/xfrm/xfrm_user.c if (xp == NULL) { xp 3030 net/xfrm/xfrm_user.c copy_from_user_policy(xp, p); xp 3031 net/xfrm/xfrm_user.c xp->type = XFRM_POLICY_TYPE_MAIN; xp 3032 net/xfrm/xfrm_user.c copy_templates(xp, ut, nr); xp 3036 net/xfrm/xfrm_user.c return xp; xp 3039 net/xfrm/xfrm_user.c static inline unsigned int xfrm_polexpire_msgsize(struct xfrm_policy *xp) xp 3042 net/xfrm/xfrm_user.c + nla_total_size(sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr) xp 3043 net/xfrm/xfrm_user.c + nla_total_size(xfrm_user_sec_ctx_size(xp->security)) xp 3048 net/xfrm/xfrm_user.c static int build_polexpire(struct sk_buff *skb, struct xfrm_policy *xp, xp 3061 net/xfrm/xfrm_user.c copy_to_user_policy(xp, &upe->pol, dir); xp 3062 net/xfrm/xfrm_user.c err = copy_to_user_tmpl(xp, skb); xp 3064 net/xfrm/xfrm_user.c err = copy_to_user_sec_ctx(xp, skb); xp 3066 net/xfrm/xfrm_user.c err = copy_to_user_policy_type(xp->type, skb); xp 3068 net/xfrm/xfrm_user.c err = xfrm_mark_put(skb, &xp->mark); xp 3070 net/xfrm/xfrm_user.c err = xfrm_if_id_put(skb, xp->if_id); xp 3081 net/xfrm/xfrm_user.c static int xfrm_exp_policy_notify(struct xfrm_policy *xp, int dir, const struct km_event *c) xp 3083 net/xfrm/xfrm_user.c struct net *net = xp_net(xp); xp 3087 net/xfrm/xfrm_user.c skb = nlmsg_new(xfrm_polexpire_msgsize(xp), GFP_ATOMIC); xp 3091 net/xfrm/xfrm_user.c err = build_polexpire(skb, xp, dir, c); xp 3097 net/xfrm/xfrm_user.c static int xfrm_notify_policy(struct xfrm_policy *xp, int dir, const struct km_event *c) xp 3099 net/xfrm/xfrm_user.c unsigned int len = nla_total_size(sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr); xp 3100 net/xfrm/xfrm_user.c struct net *net = xp_net(xp); xp 3134 net/xfrm/xfrm_user.c id->index = xp->index; xp 3136 net/xfrm/xfrm_user.c memcpy(&id->sel, &xp->selector, sizeof(id->sel)); xp 3146 net/xfrm/xfrm_user.c copy_to_user_policy(xp, p, dir); xp 3147 net/xfrm/xfrm_user.c err = copy_to_user_tmpl(xp, skb); xp 3149 net/xfrm/xfrm_user.c err = copy_to_user_policy_type(xp->type, skb); xp 3151 net/xfrm/xfrm_user.c err = xfrm_mark_put(skb, &xp->mark); xp 3153 net/xfrm/xfrm_user.c err = xfrm_if_id_put(skb, xp->if_id); xp 3194 net/xfrm/xfrm_user.c static int xfrm_send_policy_notify(struct xfrm_policy *xp, int dir, const struct km_event *c) xp 3201 net/xfrm/xfrm_user.c return xfrm_notify_policy(xp, dir, c); xp 3205 net/xfrm/xfrm_user.c return xfrm_exp_policy_notify(xp, dir, c); xp 2282 security/security.c struct xfrm_policy *xp, xp 2299 security/security.c rc = hp->hook.xfrm_state_pol_flow_match(x, xp, fl); xp 64 security/selinux/avc.c struct extended_perms xp; xp 218 security/selinux/avc.c security_xperm_set(xp_node->xp.drivers.p, driver); xp 331 security/selinux/avc.c node->ae.xp_node->xp.len++; xp 358 security/selinux/avc.c if (src->xp.len == 0) xp 364 security/selinux/avc.c memcpy(dest->xp.drivers.p, src->xp.drivers.p, sizeof(dest->xp.drivers.p)); xp 365 security/selinux/avc.c dest->xp.len = src->xp.len; xp 1002 security/selinux/avc.c security_compute_av(state, ssid, tsid, tclass, avd, &xp_node->xp); xp 1062 security/selinux/avc.c if (!xp_node || !xp_node->xp.len) xp 1075 security/selinux/avc.c if (!security_xperm_test(xp_node->xp.drivers.p, driver)) { xp 28 security/selinux/include/xfrm.h struct xfrm_policy *xp, xp 177 security/selinux/xfrm.c struct xfrm_policy *xp, xp 182 security/selinux/xfrm.c if (!xp->security)