Home
last modified time | relevance | path

Searched refs:r (Results 1 – 25 of 606) sorted by relevance

12345678910>>...25

/linux-2.4.37.9/crypto/
Dcast5.c573 #define F1(D,m,r) ( (I = ((m) + (D))), (I=rol((r),I)), \ argument
575 #define F2(D,m,r) ( (I = ((m) ^ (D))), (I=rol((r),I)), \ argument
577 #define F3(D,m,r) ( (I = ((m) - (D))), (I=rol((r),I)), \ argument
584 u32 l, r, t; in cast5_encrypt() local
596 r = inbuf[4] << 24 | inbuf[5] << 16 | inbuf[6] << 8 | inbuf[7]; in cast5_encrypt()
607 t = l; l = r; r = t ^ F1(r, Km[0], Kr[0]); in cast5_encrypt()
608 t = l; l = r; r = t ^ F2(r, Km[1], Kr[1]); in cast5_encrypt()
609 t = l; l = r; r = t ^ F3(r, Km[2], Kr[2]); in cast5_encrypt()
610 t = l; l = r; r = t ^ F1(r, Km[3], Kr[3]); in cast5_encrypt()
611 t = l; l = r; r = t ^ F2(r, Km[4], Kr[4]); in cast5_encrypt()
[all …]
Dmichael_mic.c23 u32 l, r; member
45 #define michael_block(l, r) \ argument
47 r ^= rotl(l, 17); \
48 l += r; \
49 r ^= xswap(l); \
50 l += r; \
51 r ^= rotl(l, 3); \
52 l += r; \
53 r ^= rotr(l, 2); \
54 l += r; \
[all …]
Danubis.c465 int N, R, i, pos, r; in anubis_setkey() local
497 for (r = 0; r <= R; r++) { in anubis_setkey()
529 ctx->E[r][0] = K0; in anubis_setkey()
530 ctx->E[r][1] = K1; in anubis_setkey()
531 ctx->E[r][2] = K2; in anubis_setkey()
532 ctx->E[r][3] = K3; in anubis_setkey()
537 if (r == R) { in anubis_setkey()
550 kappa[0] = inter[0] ^ rc[r]; in anubis_setkey()
564 for (r = 1; r < R; r++) { in anubis_setkey()
566 u32 v = ctx->E[R - r][i]; in anubis_setkey()
[all …]
Dkhazad.c760 int r; in khazad_setkey() local
788 for (r = 0; r <= KHAZAD_ROUNDS; r++) { in khazad_setkey()
789 ctx->E[r] = T0[(int)(K1 >> 56) ] ^ in khazad_setkey()
797 c[r] ^ K2; in khazad_setkey()
799 K1 = ctx->E[r]; in khazad_setkey()
803 for (r = 1; r < KHAZAD_ROUNDS; r++) { in khazad_setkey()
804 K1 = ctx->E[KHAZAD_ROUNDS - r]; in khazad_setkey()
805 ctx->D[r] = T0[(int)S[(int)(K1 >> 56) ] & 0xff] ^ in khazad_setkey()
824 int r; in khazad_crypt() local
837 for (r = 1; r < KHAZAD_ROUNDS; r++) { in khazad_crypt()
[all …]
/linux-2.4.37.9/net/ipv4/
Dfib_rules.c108 struct fib_rule *r, **rp; in inet_rtm_delrule() local
111 for (rp=&fib_rules; (r=*rp) != NULL; rp=&r->r_next) { in inet_rtm_delrule()
112 if ((!rta[RTA_SRC-1] || memcmp(RTA_DATA(rta[RTA_SRC-1]), &r->r_src, 4) == 0) && in inet_rtm_delrule()
113 rtm->rtm_src_len == r->r_src_len && in inet_rtm_delrule()
114 rtm->rtm_dst_len == r->r_dst_len && in inet_rtm_delrule()
115 (!rta[RTA_DST-1] || memcmp(RTA_DATA(rta[RTA_DST-1]), &r->r_dst, 4) == 0) && in inet_rtm_delrule()
116 rtm->rtm_tos == r->r_tos && in inet_rtm_delrule()
118 (!rta[RTA_PROTOINFO-1] || memcmp(RTA_DATA(rta[RTA_PROTOINFO-1]), &r->r_fwmark, 4) == 0) && in inet_rtm_delrule()
120 (!rtm->rtm_type || rtm->rtm_type == r->r_action) && in inet_rtm_delrule()
121 (!rta[RTA_PRIORITY-1] || memcmp(RTA_DATA(rta[RTA_PRIORITY-1]), &r->r_preference, 4) == 0) && in inet_rtm_delrule()
[all …]
Dtcp_diag.c48 struct tcpdiagmsg *r; in tcpdiag_fill() local
55 nlh = NLMSG_PUT(skb, pid, seq, TCPDIAG_GETSOCK, sizeof(*r)); in tcpdiag_fill()
56 r = NLMSG_DATA(nlh); in tcpdiag_fill()
67 r->tcpdiag_family = sk->family; in tcpdiag_fill()
68 r->tcpdiag_state = sk->state; in tcpdiag_fill()
69 r->tcpdiag_timer = 0; in tcpdiag_fill()
70 r->tcpdiag_retrans = 0; in tcpdiag_fill()
72 r->id.tcpdiag_sport = sk->sport; in tcpdiag_fill()
73 r->id.tcpdiag_dport = sk->dport; in tcpdiag_fill()
74 r->id.tcpdiag_src[0] = sk->rcv_saddr; in tcpdiag_fill()
[all …]
/linux-2.4.37.9/net/decnet/
Ddn_rules.c75 struct dn_fib_rule *r, **rp; in dn_fib_rtm_delrule() local
78 for(rp=&dn_fib_rules; (r=*rp) != NULL; rp = &r->r_next) { in dn_fib_rtm_delrule()
79 if ((!rta[RTA_SRC-1] || memcmp(RTA_DATA(rta[RTA_SRC-1]), &r->r_src, 2) == 0) && in dn_fib_rtm_delrule()
80 rtm->rtm_src_len == r->r_src_len && in dn_fib_rtm_delrule()
81 rtm->rtm_dst_len == r->r_dst_len && in dn_fib_rtm_delrule()
82 (!rta[RTA_DST-1] || memcmp(RTA_DATA(rta[RTA_DST-1]), &r->r_dst, 2) == 0) && in dn_fib_rtm_delrule()
84 (!rta[RTA_PROTOINFO-1] || memcmp(RTA_DATA(rta[RTA_PROTOINFO-1]), &r->r_fwmark, 4) == 0) && in dn_fib_rtm_delrule()
86 (!rtm->rtm_type || rtm->rtm_type == r->r_action) && in dn_fib_rtm_delrule()
87 (!rta[RTA_PRIORITY-1] || memcmp(RTA_DATA(rta[RTA_PRIORITY-1]), &r->r_preference, 4) == 0) && in dn_fib_rtm_delrule()
88 (!rta[RTA_IIF-1] || strcmp(RTA_DATA(rta[RTA_IIF-1]), r->r_ifname) == 0) && in dn_fib_rtm_delrule()
[all …]
/linux-2.4.37.9/net/ipv6/netfilter/
Dip6t_limit.c54 struct ip6t_rateinfo *r = ((struct ip6t_rateinfo *)matchinfo)->master; in ip6t_limit_match() local
58 r->credit += (now - xchg(&r->prev, now)) * CREDITS_PER_JIFFY; in ip6t_limit_match()
59 if (r->credit > r->credit_cap) in ip6t_limit_match()
60 r->credit = r->credit_cap; in ip6t_limit_match()
62 if (r->credit >= r->cost) { in ip6t_limit_match()
64 r->credit -= r->cost; in ip6t_limit_match()
92 struct ip6t_rateinfo *r = matchinfo; in ip6t_limit_checkentry() local
98 if (r->burst == 0 in ip6t_limit_checkentry()
99 || user2credits(r->avg * r->burst) < user2credits(r->avg)) { in ip6t_limit_checkentry()
101 r->avg, r->burst); in ip6t_limit_checkentry()
[all …]
/linux-2.4.37.9/net/ipv4/netfilter/
Dipt_limit.c65 struct ipt_rateinfo *r = ((struct ipt_rateinfo *)matchinfo)->master; in ipt_limit_match() local
69 r->credit += (now - xchg(&r->prev, now)) * CREDITS_PER_JIFFY; in ipt_limit_match()
70 if (r->credit > r->credit_cap) in ipt_limit_match()
71 r->credit = r->credit_cap; in ipt_limit_match()
73 if (r->credit >= r->cost) { in ipt_limit_match()
75 r->credit -= r->cost; in ipt_limit_match()
103 struct ipt_rateinfo *r = matchinfo; in ipt_limit_checkentry() local
109 if (r->burst == 0 in ipt_limit_checkentry()
110 || user2credits(r->avg * r->burst) < user2credits(r->avg)) { in ipt_limit_checkentry()
112 r->avg, r->burst); in ipt_limit_checkentry()
[all …]
/linux-2.4.37.9/drivers/net/irda/
Dvlsi_ir.c133 static inline int rd_is_active(struct vlsi_ring *r, unsigned i) in rd_is_active() argument
135 return ((r->hw[i].rd_status & RD_STAT_ACTIVE) != 0); in rd_is_active()
138 static inline void rd_activate(struct vlsi_ring *r, unsigned i) in rd_activate() argument
140 r->hw[i].rd_status |= RD_STAT_ACTIVE; in rd_activate()
143 static inline void rd_set_addr_status(struct vlsi_ring *r, unsigned i, dma_addr_t a, u8 s) in rd_set_addr_status() argument
145 struct ring_descr *rd = r->hw +i; in rd_set_addr_status()
164 static inline void rd_set_status(struct vlsi_ring *r, unsigned i, u8 s) in rd_set_status() argument
166 r->hw[i].rd_status = s; in rd_set_status()
169 static inline void rd_set_count(struct vlsi_ring *r, unsigned i, u16 c) in rd_set_count() argument
171 r->hw[i].rd_count = c; in rd_set_count()
[all …]
/linux-2.4.37.9/drivers/net/skfp/
Drmt.c129 smc->r.dup_addr_test = DA_NONE ;
130 smc->r.da_flag = 0 ;
132 smc->r.sm_ma_avail = FALSE ;
133 smc->r.loop_avail = 0 ;
134 smc->r.bn_flag = 0 ;
135 smc->r.jm_flag = 0 ;
136 smc->r.no_flag = TRUE ;
176 if (!smc->r.rm_join && !smc->r.rm_loop &&
196 smc->r.loop_avail = FALSE ;
197 smc->r.sm_ma_avail = FALSE ;
[all …]
/linux-2.4.37.9/drivers/sbus/char/
Daurora.c157 static inline void aurora_wait_CCR(struct aurora_reg128 * r) in aurora_wait_CCR() argument
166 if (!sbus_readb(&r->r[CD180_CCR])) in aurora_wait_CCR()
200 sbus_writeb(0, &bp->r[chip]->r[CD180_CAR]); in aurora_init_CD180()
201 sbus_writeb(0, &bp->r[chip]->r[CD180_GSVR]); in aurora_init_CD180()
204 aurora_wait_CCR(bp->r[chip]); in aurora_init_CD180()
207 sbus_writeb(CCR_HARDRESET, &bp->r[chip]->r[CD180_CCR]); in aurora_init_CD180()
212 (sbus_readb(&bp->r[chip]->r[CD180_GSVR])!=0xff))udelay(100); in aurora_init_CD180()
221 &bp->r[chip]->r[CD180_GSVR]); /* Set ID for this chip */ in aurora_init_CD180()
223 &bp->r[chip]->r[CD180_MSMR]); /* Prio for modem intr */ in aurora_init_CD180()
225 &bp->r[chip]->r[CD180_TSMR]); /* Prio for transmitter intr */ in aurora_init_CD180()
[all …]
/linux-2.4.37.9/arch/x86_64/kernel/
Dpci-x86_64.c191 struct resource *r, *pr; in pcibios_allocate_bus_resources() local
198 r = &dev->resource[idx]; in pcibios_allocate_bus_resources()
199 if (!r->start) in pcibios_allocate_bus_resources()
201 pr = pci_find_parent_resource(dev, r); in pcibios_allocate_bus_resources()
202 if (!pr || request_resource(pr, r) < 0) in pcibios_allocate_bus_resources()
215 struct resource *r, *pr; in pcibios_allocate_resources() local
220 r = &dev->resource[idx]; in pcibios_allocate_resources()
221 if (r->parent) /* Already allocated */ in pcibios_allocate_resources()
223 if (!r->start) /* Address not assigned at all */ in pcibios_allocate_resources()
225 if (r->flags & IORESOURCE_IO) in pcibios_allocate_resources()
[all …]
/linux-2.4.37.9/arch/i386/kernel/
Dpci-i386.c192 struct resource *r, *pr; in pcibios_allocate_bus_resources() local
199 r = &dev->resource[idx]; in pcibios_allocate_bus_resources()
200 if (!r->start) in pcibios_allocate_bus_resources()
202 pr = pci_find_parent_resource(dev, r); in pcibios_allocate_bus_resources()
203 if (!pr || request_resource(pr, r) < 0) in pcibios_allocate_bus_resources()
216 struct resource *r, *pr; in pcibios_allocate_resources() local
221 r = &dev->resource[idx]; in pcibios_allocate_resources()
222 if (r->parent) /* Already allocated */ in pcibios_allocate_resources()
224 if (!r->start) /* Address not assigned at all */ in pcibios_allocate_resources()
226 if (r->flags & IORESOURCE_IO) in pcibios_allocate_resources()
[all …]
Dpci-irq.c51 int (*probe)(struct irq_router *r, struct pci_dev *router, u16 device);
631 static __init int intel_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) in intel_router_probe() argument
656 r->name = "PIIX/ICH"; in intel_router_probe()
657 r->get = pirq_piix_get; in intel_router_probe()
658 r->set = pirq_piix_set; in intel_router_probe()
664 static __init int via_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) in via_router_probe() argument
694 r->name = "VIA"; in via_router_probe()
695 r->get = pirq_via586_get; in via_router_probe()
696 r->set = pirq_via586_set; in via_router_probe()
703 r->name = "VIA"; in via_router_probe()
[all …]
/linux-2.4.37.9/drivers/macintosh/
Dmacio-adb.c21 unsigned char r; member
110 out_8(&adb->ctrl.r, 0); in macio_init()
111 out_8(&adb->intr.r, 0); in macio_init()
112 out_8(&adb->error.r, 0); in macio_init()
113 out_8(&adb->active_hi.r, 0xff); /* for now, set all devices active */ in macio_init()
114 out_8(&adb->active_lo.r, 0xff); in macio_init()
115 out_8(&adb->autopoll.r, APE); in macio_init()
123 out_8(&adb->intr_enb.r, DFB | TAG); in macio_init()
135 out_8(&adb->active_hi.r, devs >> 8); in macio_adb_autopoll()
136 out_8(&adb->active_lo.r, devs); in macio_adb_autopoll()
[all …]
/linux-2.4.37.9/lib/zlib_inflate/
Dinftrees.c120 struct inflate_huft_s r; /* table entry for structure assignment */ local
239 r.bits = (Byte)l; /* bits to dump before this table */
240 r.exop = (Byte)j; /* bits in this table */
242 r.base = (uInt)(q - u[h-1] - j); /* offset to this table */
243 u[h-1][j] = r; /* connect to last table */
250 r.bits = (Byte)(k - w);
252 r.exop = 128 + 64; /* out of values--invalid code */
255 r.exop = (Byte)(*p < 256 ? 0 : 32 + 64); /* 256 is end-of-block */
256 r.base = *p++; /* simple code is just the value */
260 r.exop = (Byte)(e[*p - s] + 16 + 64);/* non-simple--look up in lists */
[all …]
/linux-2.4.37.9/arch/sparc64/solaris/
Dmisc.c274 char *p, *q, *r; in solaris_sysinfo() local
280 case SI_SYSNAME: r = "SunOS"; break; in solaris_sysinfo()
282 r = buffer + 256; in solaris_sysinfo()
285 q < r && *p && *p != '.'; *q++ = *p++); in solaris_sysinfo()
288 r = buffer; in solaris_sysinfo()
290 case SI_RELEASE: r = "5.6"; break; in solaris_sysinfo()
291 case SI_MACHINE: r = machine(); break; in solaris_sysinfo()
292 case SI_ARCHITECTURE: r = "sparc"; break; in solaris_sysinfo()
293 case SI_HW_PROVIDER: r = "Sun_Microsystems"; break; in solaris_sysinfo()
294 case SI_HW_SERIAL: r = serial(buffer); break; in solaris_sysinfo()
[all …]
/linux-2.4.37.9/arch/mips/lasat/
Dsysctl.c50 int r; in sysctl_lasatstring() local
52 r = sysctl_string(table, name, in sysctl_lasatstring()
54 if (r < 0) { in sysctl_lasatstring()
56 return r; in sysctl_lasatstring()
70 int r; in proc_dolasatstring() local
72 r = proc_dostring(table, write, filp, buffer, lenp); in proc_dolasatstring()
73 if ( (!write) || r) { in proc_dolasatstring()
75 return r; in proc_dolasatstring()
86 int r; in proc_dolasatint() local
88 r = proc_dointvec(table, write, filp, buffer, lenp); in proc_dolasatint()
[all …]
/linux-2.4.37.9/arch/sh/kernel/
Dpci-sh7751.c280 struct resource *r = &d->resource[i]; in pci_fixup_ide_bases() local
281 if ((r->start & ~0x80) == 0x374) { in pci_fixup_ide_bases()
282 r->start |= 2; in pci_fixup_ide_bases()
283 r->end = r->start; in pci_fixup_ide_bases()
384 struct resource *r, *pr; in pcibios_allocate_bus_resources() local
392 r = &dev->resource[idx]; in pcibios_allocate_bus_resources()
393 if (!r->start) in pcibios_allocate_bus_resources()
395 pr = pci_find_parent_resource(dev, r); in pcibios_allocate_bus_resources()
396 if (!pr || request_resource(pr, r) < 0) in pcibios_allocate_bus_resources()
409 struct resource *r, *pr; in pcibios_allocate_resources() local
[all …]
/linux-2.4.37.9/arch/ppc/kernel/
Dibm440gx_common.c102 u32 r; in ibm440gx_l2c_enable() local
114 r = mfdcr(DCRN_L2C0_CFG) & ~(L2C_CFG_ICU | L2C_CFG_DCU | L2C_CFG_SS_MASK); in ibm440gx_l2c_enable()
115 r |= L2C_CFG_L2M | L2C_CFG_SS_256; in ibm440gx_l2c_enable()
116 mtdcr(DCRN_L2C0_CFG, r); in ibm440gx_l2c_enable()
128 r = mfdcr(DCRN_L2C0_SNP0) & ~(L2C_SNP_BA_MASK | L2C_SNP_SSR_MASK); in ibm440gx_l2c_enable()
129 r |= L2C_SNP_SSR_32G | L2C_SNP_ESR; in ibm440gx_l2c_enable()
130 mtdcr(DCRN_L2C0_SNP0, r); in ibm440gx_l2c_enable()
132 r = mfdcr(DCRN_L2C0_SNP1) & ~(L2C_SNP_BA_MASK | L2C_SNP_SSR_MASK); in ibm440gx_l2c_enable()
133 r |= 0x80000000 | L2C_SNP_SSR_32G | L2C_SNP_ESR; in ibm440gx_l2c_enable()
134 mtdcr(DCRN_L2C0_SNP1, r); in ibm440gx_l2c_enable()
[all …]
/linux-2.4.37.9/arch/sparc/boot/
Dbtfixupprep.c109 btfixuprel *r, **rr; in main() local
293 for (k = 0, r = f->rel, rr = &f->rel; r; rr = &r->next, r = r->next, k++) in main()
294 if (r->offset == offset && !strcmp(r->sect, sect)) { in main()
323 for (j = 0, r = f->rel; r != NULL; j++, r = r->next); in main()
328 for (r = f->rel, j--; r != NULL; j--, r = r->next) { in main()
329 if (!strcmp (r->sect, ".text")) in main()
330 printf ("_stext+0x%08lx", r->offset); in main()
331 else if (!strcmp (r->sect, ".text.init")) in main()
332 printf ("__init_begin+0x%08lx", r->offset); in main()
333 else if (!strcmp (r->sect, "__ksymtab")) in main()
[all …]
/linux-2.4.37.9/arch/sparc/kernel/
Dauxio.c27 struct resource r; in auxio_probe() local
59 r.flags = auxregs[0].which_io & 0xF; in auxio_probe()
60 r.start = auxregs[0].phys_addr; in auxio_probe()
61 r.end = auxregs[0].phys_addr + auxregs[0].reg_size - 1; in auxio_probe()
62 auxio_register = sbus_ioremap(&r, 0, auxregs[0].reg_size, "auxio"); in auxio_probe()
113 struct resource r; in auxio_power_probe() local
126 memset(&r, 0, sizeof(r)); in auxio_power_probe()
127 r.flags = regs.which_io & 0xF; in auxio_power_probe()
128 r.start = regs.phys_addr; in auxio_power_probe()
129 r.end = regs.phys_addr + regs.reg_size - 1; in auxio_power_probe()
[all …]
/linux-2.4.37.9/arch/ia64/sn/io/sn2/pcibr/
Dpcibr_config.c47 #define CB(b,r) (((volatile uint8_t *) b)[((r)^4)]) argument
48 #define CS(b,r) (((volatile uint16_t *) b)[((r^4)/2)]) argument
49 #define CW(b,r) (((volatile uint32_t *) b)[((r^4)/4)]) argument
51 #define CBP(b,r) (((volatile uint8_t *) b)[(r)]) argument
52 #define CSP(b,r) (((volatile uint16_t *) b)[((r)/2)]) argument
53 #define CWP(b,r) (((volatile uint32_t *) b)[(r)/4]) argument
55 #define SCB(b,r) (((volatile uint8_t *) b)[((r)^3)]) argument
56 #define SCS(b,r) (((volatile uint16_t *) b)[((r^2)/2)]) argument
57 #define SCW(b,r) (((volatile uint32_t *) b)[((r)/4)]) argument
/linux-2.4.37.9/include/math-emu/
Dop-common.h634 #define _FP_TO_INT(fs, wc, r, X, rsize, rsigned) \ argument
643 r = 0; \
654 r = 0; \
658 _FP_FRAC_ASSEMBLE_##wc(r, X, rsize); \
663 r = 1; \
664 r <<= rsize - 1; \
665 r -= 1 - X##_s; \
669 r = 0; \
671 r = ~r; \
679 _FP_FRAC_ASSEMBLE_##wc(r, X, rsize); \
[all …]

12345678910>>...25