Home
last modified time | relevance | path

Searched full:addend (Results 1 – 25 of 65) sorted by relevance

123

/linux-6.12.1/security/apparmor/include/
Dperms.h105 * @addend - perms struct to add to @accum
108 struct aa_perms *addend) in aa_perms_accum_raw() argument
110 accum->deny |= addend->deny; in aa_perms_accum_raw()
111 accum->allow &= addend->allow & ~addend->deny; in aa_perms_accum_raw()
112 accum->audit |= addend->audit & addend->allow; in aa_perms_accum_raw()
113 accum->quiet &= addend->quiet & ~addend->allow; in aa_perms_accum_raw()
114 accum->kill |= addend->kill & ~addend->allow; in aa_perms_accum_raw()
115 accum->complain |= addend->complain & ~addend->allow & ~addend->deny; in aa_perms_accum_raw()
116 accum->cond |= addend->cond & ~addend->allow & ~addend->deny; in aa_perms_accum_raw()
117 accum->hide &= addend->hide & ~addend->allow; in aa_perms_accum_raw()
[all …]
/linux-6.12.1/include/net/
Dsnmp.h139 #define __SNMP_ADD_STATS(mib, field, addend) \ argument
140 __this_cpu_add(mib->mibs[field], addend)
142 #define SNMP_ADD_STATS(mib, field, addend) \ argument
143 this_cpu_add(mib->mibs[field], addend)
144 #define SNMP_UPD_PO_STATS(mib, basefield, addend) \ argument
148 this_cpu_add(ptr[basefield##OCTETS], addend); \
150 #define __SNMP_UPD_PO_STATS(mib, basefield, addend) \ argument
154 __this_cpu_add(ptr[basefield##OCTETS], addend); \
160 #define __SNMP_ADD_STATS64(mib, field, addend) \ argument
164 ptr->mibs[field] += addend; \
[all …]
Dchecksum.h59 static __always_inline __wsum csum_add(__wsum csum, __wsum addend) in csum_add() argument
62 res += (__force u32)addend; in csum_add()
63 return (__force __wsum)(res + (res < (__force u32)addend)); in csum_add()
67 static __always_inline __wsum csum_sub(__wsum csum, __wsum addend) in csum_sub() argument
69 return csum_add(csum, ~addend); in csum_sub()
72 static __always_inline __sum16 csum16_add(__sum16 csum, __be16 addend) in csum16_add() argument
76 res += (__force u16)addend; in csum16_add()
77 return (__force __sum16)(res + (res < (__force u16)addend)); in csum16_add()
80 static __always_inline __sum16 csum16_sub(__sum16 csum, __be16 addend) in csum16_sub() argument
82 return csum16_add(csum, ~addend); in csum16_sub()
Dgre.h54 int addend = 4; in gre_calc_hlen() local
57 addend += 4; in gre_calc_hlen()
59 addend += 4; in gre_calc_hlen()
61 addend += 4; in gre_calc_hlen()
62 return addend; in gre_calc_hlen()
/linux-6.12.1/tools/testing/selftests/tc-testing/tc-tests/filters/
Dflow.json92 "name": "Add flow filter with map key addend ops",
103 …: "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 protocol ip flow map key dst addend 0xff",
106 …r parent ffff: protocol ip pref 1 flow chain [0-9]+ handle 0x1 map keys dst addend 0xff baseclass",
125 …: "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 protocol ip flow map key src addend 0xff",
128 …r parent ffff: protocol ip pref 1 flow chain [0-9]+ handle 0x1 map keys src addend 0xff baseclass",
147 …"$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 protocol ip flow map key proto addend 0xff",
150 …parent ffff: protocol ip pref 1 flow chain [0-9]+ handle 0x1 map keys proto addend 0xff baseclass",
169 … filter add dev $DEV1 parent ffff: handle 1 prio 1 protocol ip flow map key proto-src addend 0xff",
172 …nt ffff: protocol ip pref 1 flow chain [0-9]+ handle 0x1 map keys proto-src addend 0xff baseclass",
191 … filter add dev $DEV1 parent ffff: handle 1 prio 1 protocol ip flow map key proto-dst addend 0xff",
[all …]
/linux-6.12.1/arch/parisc/kernel/
Dmodule.c104 /* lrsel with rounding of addend to nearest 8k */
106 /* rrsel with rounding of addend to nearest 8k */
336 static Elf64_Word get_got(struct module *me, unsigned long value, long addend) in get_got() argument
341 value += addend; in get_got()
392 static Elf_Addr get_stub(struct module *me, unsigned long value, long addend, in get_stub() argument
420 //value = *(unsigned long *)((value + addend) & ~3); /* why? */ in get_stub()
425 stub->insns[0] |= reassemble_21(lrsel(value, addend)); in get_stub()
426 stub->insns[1] |= reassemble_17(rrsel(value, addend) / 4); in get_stub()
450 d = get_got(me, value, addend); in get_stub()
470 stub->insns[0] |= reassemble_21(lrsel(value, addend)); in get_stub()
[all …]
/linux-6.12.1/fs/nfs/
Diostat.h37 long addend) in nfs_add_server_stats() argument
39 this_cpu_add(server->io_stats->bytes[stat], addend); in nfs_add_server_stats()
44 long addend) in nfs_add_stats() argument
46 nfs_add_server_stats(NFS_SERVER(inode), stat, addend); in nfs_add_stats()
/linux-6.12.1/drivers/net/ethernet/renesas/
Drcar_gen4_ptp.c33 s64 addend = ptp_priv->default_addend; in rcar_gen4_ptp_adjfine() local
38 diff = div_s64(addend * scaled_ppm_to_ppb(scaled_ppm), NSEC_PER_SEC); in rcar_gen4_ptp_adjfine()
39 addend = neg_adj ? addend - diff : addend + diff; in rcar_gen4_ptp_adjfine()
41 iowrite32(addend, ptp_priv->addr + ptp_priv->offs->increment); in rcar_gen4_ptp_adjfine()
Dravb_ptp.c97 u32 addend; in ravb_ptp_adjfine() local
100 addend = (u32)adjust_by_scaled_ppm(priv->ptp.default_addend, in ravb_ptp_adjfine()
105 priv->ptp.current_addend = addend; in ravb_ptp_adjfine()
112 ravb_write(ndev, addend & GTI_TIV, GTI); in ravb_ptp_adjfine()
/linux-6.12.1/include/linux/netfilter/
Dx_tables.h366 unsigned int addend; in xt_write_recseq_begin() local
372 addend = (__this_cpu_read(xt_recseq.sequence) + 1) & 1; in xt_write_recseq_begin()
375 * This is kind of a write_seqcount_begin(), but addend is 0 or 1 in xt_write_recseq_begin()
376 * We dont check addend value to avoid a test and conditional jump, in xt_write_recseq_begin()
377 * since addend is most likely 1 in xt_write_recseq_begin()
379 __this_cpu_add(xt_recseq.sequence, addend); in xt_write_recseq_begin()
382 return addend; in xt_write_recseq_begin()
387 * @addend: return value from previous xt_write_recseq_begin()
393 static inline void xt_write_recseq_end(unsigned int addend) in xt_write_recseq_end() argument
395 /* this is kind of a write_seqcount_end(), but addend is 0 or 1 */ in xt_write_recseq_end()
[all …]
/linux-6.12.1/arch/powerpc/include/asm/
Dchecksum.h95 static __always_inline __wsum csum_add(__wsum csum, __wsum addend) in csum_add() argument
100 res += (__force u64)addend; in csum_add()
104 return addend; in csum_add()
105 if (__builtin_constant_p(addend) && addend == 0) in csum_add()
110 : "+r" (csum) : "r" (addend) : "xer"); in csum_add()
/linux-6.12.1/drivers/net/ethernet/xscale/
Dptp_ixp46x.c125 u32 addend; in ptp_ixp_adjfine() local
129 addend = adjust_by_scaled_ppm(DEFAULT_ADDEND, scaled_ppm); in ptp_ixp_adjfine()
131 __raw_writel(addend, &regs->addend); in ptp_ixp_adjfine()
280 __raw_writel(DEFAULT_ADDEND, &ixp_clock.regs->addend); in ptp_ixp_probe()
Dixp46x_ts.h28 u32 addend; /* 0x08 Time Sync Addend Register */ member
/linux-6.12.1/drivers/net/ethernet/amd/xgbe/
Dxgbe-ptp.c143 u64 addend; in xgbe_adjfine() local
145 addend = adjust_by_scaled_ppm(pdata->tstamp_addend, scaled_ppm); in xgbe_adjfine()
149 pdata->hw_if.update_tstamp_addend(pdata, addend); in xgbe_adjfine()
240 /* Calculate the addend: in xgbe_ptp_register()
241 * addend = 2^32 / (PTP ref clock / 50Mhz) in xgbe_ptp_register()
/linux-6.12.1/drivers/net/dsa/hirschmann/
Dhellcreek_ptp.c136 u32 addend; in hellcreek_ptp_adjfine() local
146 * register overflows. The value stored in the addend register is added in hellcreek_ptp_adjfine()
149 * addend value = (2^30 * accumulator_overflow_rate) / in hellcreek_ptp_adjfine()
158 addend = (u32)div_u64(adj, 15625); in hellcreek_ptp_adjfine()
160 addendh = (addend & 0xffff0000) >> 16; in hellcreek_ptp_adjfine()
161 addendl = addend & 0xffff; in hellcreek_ptp_adjfine()
/linux-6.12.1/drivers/ptp/
Dptp_pch.c48 u32 addend; member
341 u32 addend; in ptp_pch_adjfine() local
345 addend = adjust_by_scaled_ppm(DEFAULT_ADDEND, scaled_ppm); in ptp_pch_adjfine()
347 iowrite32(addend, &regs->addend); in ptp_pch_adjfine()
495 iowrite32(DEFAULT_ADDEND, &chip->regs->addend); in pch_probe()
/linux-6.12.1/lib/crypto/mpi/
Dgeneric_mpih-add1.c40 y += cy; /* add previous carry to one addend */ in mpihelp_add_n()
42 y += x; /* add other addend */ in mpihelp_add_n()
/linux-6.12.1/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_hwtstamp.c122 static int config_addend(void __iomem *ioaddr, u32 addend) in config_addend() argument
127 writel(addend, ioaddr + PTP_TAR); in config_addend()
128 /* issue command to update the addend value */ in config_addend()
133 /* wait for present addend update to complete */ in config_addend()
Dstmmac_ptp.h25 #define PTP_TAR 0x18 /* Timestamp Addend Reg */
46 #define PTP_TCR_TSADDREG BIT(5) /* Addend Reg Update */
/linux-6.12.1/include/linux/
Doverflow.h58 * @a: first addend
59 * @b: second addend
73 * @a: first addend
74 * @b: second addend
278 * @addend1: first addend
279 * @addend2: second addend
/linux-6.12.1/net/sched/
Dcls_flow.c53 u32 addend; member
329 classid = (classid >> f->rshift) + f->addend; in flow_classify()
467 fnew->addend = fold->addend; in flow_change()
536 fnew->addend = nla_get_u32(tb[TCA_FLOW_ADDEND]); in flow_change()
647 if (f->addend && in flow_dump()
648 nla_put_u32(skb, TCA_FLOW_ADDEND, f->addend)) in flow_dump()
/linux-6.12.1/tools/objtool/arch/powerpc/
Ddecode.c17 unsigned long arch_dest_reloc_offset(int addend) in arch_dest_reloc_offset() argument
19 return addend; in arch_dest_reloc_offset()
/linux-6.12.1/arch/arm64/kernel/
Dmodule-plts.c138 /* sort by type, symbol index and addend */ in cmp_rela()
150 * Entries are sorted by type, symbol index and addend. That means in duplicate_rel()
193 * the addend is zero: this allows us to record the PLT in count_plts()
328 * and addend in module_frob_arch_sections()
/linux-6.12.1/arch/mips/kernel/
Dmodule.c110 /* Sign extend the addend we extract from the lo insn. */ in apply_r_mips_lo16()
128 * where to find the low 16 bits of the addend needed in apply_r_mips_lo16()
183 /* retrieve & sign extend implicit addend if any */ in apply_r_mips_pc()
257 * @v: the value of the reloc, with addend for RELA-style
/linux-6.12.1/tools/objtool/include/objtool/
Delf.h129 s64 addend);
254 static inline void set_reloc_addend(struct elf *elf, struct reloc *reloc, s64 addend) in set_reloc_addend() argument
256 __set_reloc_field(reloc, r_addend, addend); in set_reloc_addend()

123