Home
last modified time | relevance | path

Searched refs:sc (Results 1 – 25 of 101) sorted by relevance

12345

/linux-2.4.37.9/drivers/net/wan/lmc/
Dlmc_media.c183 lmc_dummy_set_1 (lmc_softc_t * const sc, int a) in lmc_dummy_set_1() argument
188 lmc_dummy_set2_1 (lmc_softc_t * const sc, lmc_ctl_t * a) in lmc_dummy_set2_1() argument
197 lmc_hssi_init (lmc_softc_t * const sc) in lmc_hssi_init() argument
199 sc->ictl.cardtype = LMC_CTL_CARDTYPE_LMC5200; in lmc_hssi_init()
201 lmc_gpio_mkoutput (sc, LMC_GEP_HSSI_CLOCK); in lmc_hssi_init()
205 lmc_hssi_default (lmc_softc_t * const sc) in lmc_hssi_default() argument
207 sc->lmc_miireg16 = LMC_MII16_LED_ALL; in lmc_hssi_default()
209 sc->lmc_media->set_link_status (sc, LMC_LINK_DOWN); in lmc_hssi_default()
210 sc->lmc_media->set_clock_source (sc, LMC_CTL_CLOCK_SOURCE_EXT); in lmc_hssi_default()
211 sc->lmc_media->set_crc_length (sc, LMC_CTL_CRC_LENGTH_16); in lmc_hssi_default()
[all …]
Dlmc_main.c127 static void lmc_initcsrs(lmc_softc_t * const sc, lmc_csrptr_t csr_base, size_t csr_size);
133 static void lmc_reset(lmc_softc_t * const sc);
134 static void lmc_dec_reset(lmc_softc_t * const sc);
147 lmc_softc_t *sc; in lmc_ioctl() local
157 sc = dev->priv; in lmc_ioctl()
165 spin_lock_irqsave(&sc->lmc_lock, flags); in lmc_ioctl()
173 LMC_COPY_TO_USER(ifr->ifr_data, &sc->ictl, sizeof (lmc_ctl_t)); in lmc_ioctl()
191 sc->lmc_media->set_status (sc, &ctl); in lmc_ioctl()
193 if(ctl.crc_length != sc->ictl.crc_length) { in lmc_ioctl()
194 sc->lmc_media->set_crc_length(sc, ctl.crc_length); in lmc_ioctl()
[all …]
Dlmc_proto.c89 void lmc_proto_init(lmc_softc_t *sc) /*FOLD00*/ in lmc_proto_init() argument
91 lmc_trace(sc->lmc_device, "lmc_proto_init in"); in lmc_proto_init()
92 switch(sc->if_type){ in lmc_proto_init()
96 sc->pd = kmalloc(sizeof(struct ppp_device), GFP_KERNEL); in lmc_proto_init()
97 if (!sc->pd) { in lmc_proto_init()
101 sc->pd->dev = sc->lmc_device; in lmc_proto_init()
103 sc->if_ptr = sc->pd; in lmc_proto_init()
110 lmc_trace(sc->lmc_device, "lmc_proto_init out"); in lmc_proto_init()
114 void lmc_proto_attach(lmc_softc_t *sc) /*FOLD00*/ in lmc_proto_attach() argument
116 lmc_trace(sc->lmc_device, "lmc_proto_attach in"); in lmc_proto_attach()
[all …]
Dlmc_proto.h4 void lmc_proto_init(lmc_softc_t *sc);
5 void lmc_proto_attach(lmc_softc_t *sc);
6 void lmc_proto_detach(lmc_softc_t *sc);
7 void lmc_proto_reopen(lmc_softc_t *sc);
8 int lmc_proto_ioctl(lmc_softc_t *sc, struct ifreq *ifr, int cmd);
9 void lmc_proto_open(lmc_softc_t *sc);
10 void lmc_proto_close(lmc_softc_t *sc);
11 unsigned short lmc_proto_type(lmc_softc_t *sc, struct sk_buff *skb);
12 void lmc_proto_netif(lmc_softc_t *sc, struct sk_buff *skb);
Dlmc_prot.h5 void lmc_proto_attach(lmc_softc_t *sc const)
6 void lmc_proto_detach(lmc_softc *sc const)
7 void lmc_proto_reopen(lmc_softc_t *sc const)
8 int lmc_proto_ioctl(lmc_softc_t *sc const, struct ifreq *ifr, int cmd)
9 void lmc_proto_open(lmc_softc_t *sc const)
10 void lmc_proto_close(lmc_softc_t *sc const)
11 unsigned short lmc_proto_type(lmc_softc_t *sc const, struct skbuff *skb)
Dlmc.h10 unsigned lmc_mii_readreg(lmc_softc_t * const sc, unsigned
12 void lmc_mii_writereg(lmc_softc_t * const sc, unsigned devaddr,
18 void lmc_gpio_mkinput(lmc_softc_t * const sc, u_int32_t bits);
19 void lmc_gpio_mkoutput(lmc_softc_t * const sc, u_int32_t bits);
/linux-2.4.37.9/arch/ia64/drivers/
Dsimscsi.c68 Scsi_Cmnd *sc; member
102 Scsi_Cmnd *sc; in simscsi_interrupt() local
106 while ((sc = queue[rd].sc) != 0) { in simscsi_interrupt()
108 queue[rd].sc = 0; in simscsi_interrupt()
110 printk("simscsi_interrupt: done with %ld\n", sc->serial_number); in simscsi_interrupt()
111 (*sc->scsi_done)(sc); in simscsi_interrupt()
149 simscsi_readwrite (Scsi_Cmnd *sc, int mode, unsigned long offset, unsigned long len) in simscsi_readwrite() argument
154 req.addr = __pa(sc->request_buffer); in simscsi_readwrite()
157 if (sc->request_bufflen < req.len) in simscsi_readwrite()
160 stat.fd = desc[sc->target]; in simscsi_readwrite()
[all …]
/linux-2.4.37.9/arch/alpha/kernel/
Dsignal.c235 struct sigcontext sc; member
252 restore_sigcontext(struct sigcontext *sc, struct pt_regs *regs, in restore_sigcontext() argument
258 err |= __get_user(regs->pc, &sc->sc_pc); in restore_sigcontext()
261 err |= __get_user(regs->r0, sc->sc_regs+0); in restore_sigcontext()
262 err |= __get_user(regs->r1, sc->sc_regs+1); in restore_sigcontext()
263 err |= __get_user(regs->r2, sc->sc_regs+2); in restore_sigcontext()
264 err |= __get_user(regs->r3, sc->sc_regs+3); in restore_sigcontext()
265 err |= __get_user(regs->r4, sc->sc_regs+4); in restore_sigcontext()
266 err |= __get_user(regs->r5, sc->sc_regs+5); in restore_sigcontext()
267 err |= __get_user(regs->r6, sc->sc_regs+6); in restore_sigcontext()
[all …]
/linux-2.4.37.9/arch/ia64/kernel/
Dsignal.c105 restore_sigcontext (struct sigcontext *sc, struct sigscratch *scr) in restore_sigcontext() argument
111 err = __get_user(flags, &sc->sc_flags); in restore_sigcontext()
113 err |= __get_user(nat, &sc->sc_nat); in restore_sigcontext()
114 err |= __get_user(ip, &sc->sc_ip); /* instruction pointer */ in restore_sigcontext()
115 err |= __get_user(cfm, &sc->sc_cfm); in restore_sigcontext()
116 err |= __get_user(um, &sc->sc_um); /* user mask */ in restore_sigcontext()
117 err |= __get_user(scr->pt.ar_rsc, &sc->sc_ar_rsc); in restore_sigcontext()
118 err |= __get_user(scr->pt.ar_unat, &sc->sc_ar_unat); in restore_sigcontext()
119 err |= __get_user(scr->pt.ar_fpsr, &sc->sc_ar_fpsr); in restore_sigcontext()
120 err |= __get_user(scr->pt.ar_pfs, &sc->sc_ar_pfs); in restore_sigcontext()
[all …]
/linux-2.4.37.9/arch/mips/math-emu/
Dkernel_linkage.c61 int fpu_emulator_save_context(struct sigcontext *sc) in fpu_emulator_save_context() argument
69 &sc->sc_fpregs[i]); in fpu_emulator_save_context()
71 err |= __put_user(current->thread.fpu.soft.sr, &sc->sc_fpc_csr); in fpu_emulator_save_context()
72 err |= __put_user(fpuemuprivate.eir, &sc->sc_fpc_eir); in fpu_emulator_save_context()
77 int fpu_emulator_restore_context(struct sigcontext *sc) in fpu_emulator_restore_context() argument
85 &sc->sc_fpregs[i]); in fpu_emulator_restore_context()
87 err |= __get_user(current->thread.fpu.soft.sr, &sc->sc_fpc_csr); in fpu_emulator_restore_context()
88 err |= __get_user(fpuemuprivate.eir, &sc->sc_fpc_eir); in fpu_emulator_restore_context()
98 int fpu_emulator_save_context32(struct sigcontext32 *sc) in fpu_emulator_save_context32() argument
106 &sc->sc_fpregs[i]); in fpu_emulator_save_context32()
[all …]
/linux-2.4.37.9/drivers/net/
Dsb1250-mac.c286 static void sbdma_rx_process(struct sbmac_softc *sc,sbmacdma_t *d);
287 static void sbdma_tx_process(struct sbmac_softc *sc,sbmacdma_t *d);
292 static void sbmac_promiscuous_mode(struct sbmac_softc *sc,int onoff);
296 static void sbmac_setmulti(struct sbmac_softc *sc);
1163 static void sbdma_rx_process(struct sbmac_softc *sc,sbmacdma_t *d) in sbdma_rx_process() argument
1221 sc->sbm_stats.rx_dropped++; in sbdma_rx_process()
1234 sc->sbm_stats.rx_bytes += len; in sbdma_rx_process()
1235 sc->sbm_stats.rx_packets++; in sbdma_rx_process()
1238 if (sc->rx_hw_checksum == ENABLE) { in sbdma_rx_process()
1255 sc->sbm_stats.rx_errors++; in sbdma_rx_process()
[all …]
/linux-2.4.37.9/arch/x86_64/ia32/
Dia32_signal.c151 struct sigcontext_ia32 sc; member
170 ia32_restore_sigcontext(struct pt_regs *regs, struct sigcontext_ia32 *sc, unsigned int *peax) in ia32_restore_sigcontext() argument
176 sc, sc->err, sc->eip, sc->cs, sc->eflags); in ia32_restore_sigcontext()
180 err |= __get_user(reg, &sc->e ##x); \ in ia32_restore_sigcontext()
187 err |= __get_user(pre, &sc->seg); \ in ia32_restore_sigcontext()
199 err |= __get_user(gs, &sc->gs); in ia32_restore_sigcontext()
212 err |= __get_user(regs->cs, &sc->cs); in ia32_restore_sigcontext()
214 err |= __get_user(regs->ss, &sc->ss); in ia32_restore_sigcontext()
219 err |= __get_user(tmpflags, &sc->eflags); in ia32_restore_sigcontext()
227 err |= __get_user(tmp, &sc->fpstate); in ia32_restore_sigcontext()
[all …]
/linux-2.4.37.9/arch/arm/kernel/
Dsignal.c178 struct sigcontext sc; member
193 restore_sigcontext(struct pt_regs *regs, struct sigcontext *sc) in restore_sigcontext() argument
197 __get_user_error(regs->ARM_r0, &sc->arm_r0, err); in restore_sigcontext()
198 __get_user_error(regs->ARM_r1, &sc->arm_r1, err); in restore_sigcontext()
199 __get_user_error(regs->ARM_r2, &sc->arm_r2, err); in restore_sigcontext()
200 __get_user_error(regs->ARM_r3, &sc->arm_r3, err); in restore_sigcontext()
201 __get_user_error(regs->ARM_r4, &sc->arm_r4, err); in restore_sigcontext()
202 __get_user_error(regs->ARM_r5, &sc->arm_r5, err); in restore_sigcontext()
203 __get_user_error(regs->ARM_r6, &sc->arm_r6, err); in restore_sigcontext()
204 __get_user_error(regs->ARM_r7, &sc->arm_r7, err); in restore_sigcontext()
[all …]
/linux-2.4.37.9/arch/x86_64/kernel/
Dsignal.c134 restore_sigcontext(struct pt_regs *regs, struct sigcontext *sc, unsigned long *prax) in restore_sigcontext() argument
139 #define COPY(x) err |= __get_user(regs->x, &sc->x) in restore_sigcontext()
164 err |= __get_user(tmpflags, &sc->eflags); in restore_sigcontext()
171 err |= __get_user(buf, &sc->fpstate); in restore_sigcontext()
179 err |= __get_user(*prax, &sc->rax); in restore_sigcontext()
227 setup_sigcontext(struct sigcontext *sc, struct pt_regs *regs, unsigned long mask) in setup_sigcontext() argument
233 err |= __put_user(0, &sc->gs); in setup_sigcontext()
234 err |= __put_user(0, &sc->fs); in setup_sigcontext()
236 err |= __put_user(regs->rdi, &sc->rdi); in setup_sigcontext()
237 err |= __put_user(regs->rsi, &sc->rsi); in setup_sigcontext()
[all …]
/linux-2.4.37.9/arch/i386/kernel/
Dsignal.c170 struct sigcontext sc; member
189 restore_sigcontext(struct pt_regs *regs, struct sigcontext *sc, int *peax) in restore_sigcontext() argument
193 #define COPY(x) err |= __get_user(regs->x, &sc->x) in restore_sigcontext()
197 err |= __get_user(tmp, &sc->seg); \ in restore_sigcontext()
202 err |= __get_user(tmp, &sc->seg); \ in restore_sigcontext()
207 err |= __get_user(tmp, &sc->seg); \ in restore_sigcontext()
227 err |= __get_user(tmpflags, &sc->eflags); in restore_sigcontext()
234 err |= __get_user(buf, &sc->fpstate); in restore_sigcontext()
242 err |= __get_user(*peax, &sc->eax); in restore_sigcontext()
258 if (__get_user(set.sig[0], &frame->sc.oldmask) in sys_sigreturn()
[all …]
/linux-2.4.37.9/drivers/isdn/sc/
DMakefile9 list-multi := sc.o
10 sc-objs := shmem.o init.o debug.o packet.o command.o event.o \
15 obj-$(CONFIG_ISDN_DRV_SC) += sc.o
21 sc.o: $(sc-objs)
22 $(LD) -r -o $@ $(sc-objs)
/linux-2.4.37.9/arch/m68k/kernel/
Dsignal.c176 struct sigcontext sc; member
228 static inline int restore_fpu_state(struct sigcontext *sc) in restore_fpu_state() argument
234 memcpy(current->thread.fpcntl, sc->sc_fpcntl, 12); in restore_fpu_state()
235 memcpy(current->thread.fp, sc->sc_fpregs, 24); in restore_fpu_state()
239 if (CPU_IS_060 ? sc->sc_fpstate[2] : sc->sc_fpstate[0]) { in restore_fpu_state()
241 if (!CPU_IS_060 && (sc->sc_fpstate[0] != fpu_version)) in restore_fpu_state()
245 !(sc->sc_fpstate[1] == 0x18 || sc->sc_fpstate[1] == 0xb4)) in restore_fpu_state()
248 !(sc->sc_fpstate[1] == 0x38 || sc->sc_fpstate[1] == 0xd4)) in restore_fpu_state()
251 if (!(sc->sc_fpstate[1] == 0x00 || in restore_fpu_state()
252 sc->sc_fpstate[1] == 0x28 || in restore_fpu_state()
[all …]
/linux-2.4.37.9/drivers/scsi/aic7xxx/
Daic7770.c302 struct seeprom_config *sc; in aha2840_load_seeprom() local
317 sc = ahc->seep_config; in aha2840_load_seeprom()
321 have_seeprom = ahc_read_seeprom(&sd, (uint16_t *)sc, in aha2840_load_seeprom()
322 /*start_addr*/0, sizeof(*sc)/2); in aha2840_load_seeprom()
326 if (ahc_verify_cksum(sc) == 0) { in aha2840_load_seeprom()
353 target_settings = (sc->device_flags[i] & CFXFER) << 4; in aha2840_load_seeprom()
354 if (sc->device_flags[i] & CFSYNCH) in aha2840_load_seeprom()
356 if (sc->device_flags[i] & CFWIDEB) in aha2840_load_seeprom()
358 if (sc->device_flags[i] & CFDISC) in aha2840_load_seeprom()
365 ahc->our_id = sc->brtime_id & CFSCSIID; in aha2840_load_seeprom()
[all …]
/linux-2.4.37.9/arch/ia64/ia32/
Dia32_signal.c56 struct sigcontext_ia32 sc; member
678 setup_sigcontext_ia32 (struct sigcontext_ia32 *sc, struct _fpstate_ia32 *fpstate, in setup_sigcontext_ia32() argument
684 if (!access_ok(VERIFY_WRITE, sc, sizeof(*sc))) in setup_sigcontext_ia32()
687 err |= __put_user((regs->r16 >> 32) & 0xffff, (unsigned int *)&sc->fs); in setup_sigcontext_ia32()
688 err |= __put_user((regs->r16 >> 48) & 0xffff, (unsigned int *)&sc->gs); in setup_sigcontext_ia32()
689 err |= __put_user((regs->r16 >> 16) & 0xffff, (unsigned int *)&sc->es); in setup_sigcontext_ia32()
690 err |= __put_user(regs->r16 & 0xffff, (unsigned int *)&sc->ds); in setup_sigcontext_ia32()
691 err |= __put_user(regs->r15, &sc->edi); in setup_sigcontext_ia32()
692 err |= __put_user(regs->r14, &sc->esi); in setup_sigcontext_ia32()
693 err |= __put_user(regs->r13, &sc->ebp); in setup_sigcontext_ia32()
[all …]
/linux-2.4.37.9/lib/
Dstring.c222 const char *sc; in strlen() local
224 for (sc = s; *sc != '\0'; ++sc) in strlen()
226 return sc - s; in strlen()
238 const char *sc; in strnlen() local
240 for (sc = s; count-- && *sc != '\0'; ++sc) in strnlen()
242 return sc - s; in strnlen()
/linux-2.4.37.9/arch/mips64/kernel/
Dsignal.c118 asmlinkage int restore_sigcontext(struct pt_regs *regs, struct sigcontext *sc) in restore_sigcontext() argument
122 err |= __get_user(regs->cp0_epc, &sc->sc_pc); in restore_sigcontext()
123 err |= __get_user(regs->hi, &sc->sc_mdhi); in restore_sigcontext()
124 err |= __get_user(regs->lo, &sc->sc_mdlo); in restore_sigcontext()
127 err |= __get_user(regs->regs[i], &sc->sc_regs[i]); \ in restore_sigcontext()
142 err |= __get_user(current->used_math, &sc->sc_used_math); in restore_sigcontext()
147 err |= restore_fp_context(sc); in restore_sigcontext()
204 int inline setup_sigcontext(struct pt_regs *regs, struct sigcontext *sc) in setup_sigcontext() argument
208 err |= __put_user(regs->cp0_epc, &sc->sc_pc); in setup_sigcontext()
209 err |= __put_user(regs->cp0_status, &sc->sc_status); in setup_sigcontext()
[all …]
/linux-2.4.37.9/arch/parisc/kernel/
Dsignal.c145 restore_sigcontext(struct sigcontext *sc, struct pt_regs *regs) in restore_sigcontext() argument
149 err |= __copy_from_user(regs->gr, sc->sc_gr, sizeof(regs->gr)); in restore_sigcontext()
150 err |= __copy_from_user(regs->fr, sc->sc_fr, sizeof(regs->fr)); in restore_sigcontext()
151 err |= __copy_from_user(regs->iaoq, sc->sc_iaoq, sizeof(regs->iaoq)); in restore_sigcontext()
152 err |= __copy_from_user(regs->iasq, sc->sc_iasq, sizeof(regs->iasq)); in restore_sigcontext()
153 err |= __get_user(regs->sar, &sc->sc_sar); in restore_sigcontext()
231 setup_sigcontext(struct sigcontext *sc, struct pt_regs *regs, int in_syscall) in setup_sigcontext() argument
237 if (on_sig_stack((unsigned long) sc)) in setup_sigcontext()
242 err |= __put_user(regs->gr[31], &sc->sc_iaoq[0]); in setup_sigcontext()
243 err |= __put_user(regs->gr[31]+4, &sc->sc_iaoq[1]); in setup_sigcontext()
[all …]
/linux-2.4.37.9/include/asm-arm/
Dkeyboard.h34 static inline int kbd_setkeycode(unsigned int sc, unsigned int kc) in kbd_setkeycode() argument
39 ret = k_setkeycode(sc, kc); in kbd_setkeycode()
44 static inline int kbd_getkeycode(unsigned int sc) in kbd_getkeycode() argument
49 ret = k_getkeycode(sc); in kbd_getkeycode()
/linux-2.4.37.9/arch/ppc64/kernel/
Dsignal.c61 struct sigcontext sc; member
232 setup_sigcontext(struct sigcontext *sc, struct pt_regs *regs, in setup_sigcontext() argument
239 err |= __put_user(&sc->gp_regs, &sc->regs); in setup_sigcontext()
240 err |= __copy_to_user(&sc->gp_regs, regs, GP_REGS_SIZE); in setup_sigcontext()
241 err |= __copy_to_user(&sc->fp_regs, &current->thread.fpr, FP_REGS_SIZE); in setup_sigcontext()
244 err |= __put_user(signr, &sc->signal); in setup_sigcontext()
245 err |= __put_user(handler, &sc->handler); in setup_sigcontext()
247 err |= __put_user(set->sig[0], &sc->oldmask); in setup_sigcontext()
257 restore_sigcontext(struct pt_regs *regs, sigset_t *set, struct sigcontext *sc) in restore_sigcontext() argument
265 err |= __copy_from_user(regs, &sc->gp_regs, in restore_sigcontext()
[all …]
/linux-2.4.37.9/include/asm-arm/arch-l7200/
Dkeyboard.h40 #define kbd_setkeycode(sc,kc) (-EINVAL) argument
41 #define kbd_getkeycode(sc) (-EINVAL) argument
43 #define kbd_translate(sc, kcp, rm) ({ *(kcp) = (sc); 1; }) argument

12345