Home
last modified time | relevance | path

Searched refs:tbuf (Results 1 – 24 of 24) sorted by relevance

/linux-2.4.37.9/drivers/char/ip2/
Dip2trace.c35 } tbuf; variable
124 cnt = read ( fd, &tbuf, sizeof tbuf ); in main()
127 if ( tbuf.wrap ) { in main()
129 tbuf.wrap, tbuf.strip, tbuf.stuff ); in main()
133 td = tbuf.buf[i] - ts; in main()
134 ts = tbuf.buf[i++]; in main()
135 bc.value = tbuf.buf[i]; in main()
243 printf ( "%08x ", tbuf.buf[i] ); in main()
254 isprint ( tbuf.buf[i] ) ? tbuf.buf[i] : '.', tbuf.buf[i] ); in main()
257 printf ( "%d ", tbuf.buf[i] ); in main()
[all …]
/linux-2.4.37.9/drivers/char/
Dn_hdlc.c165 N_HDLC_BUF *tbuf; /* currently transmitting tx buffer */ member
271 if (n_hdlc->tbuf) in n_hdlc_release()
272 kfree(n_hdlc->tbuf); in n_hdlc_release()
382 N_HDLC_BUF *tbuf; in n_hdlc_send_frames() local
402 tbuf = n_hdlc->tbuf; in n_hdlc_send_frames()
403 if (!tbuf) in n_hdlc_send_frames()
404 tbuf = n_hdlc_buf_get(&n_hdlc->tx_buf_list); in n_hdlc_send_frames()
406 while (tbuf) { in n_hdlc_send_frames()
409 __FILE__,__LINE__,tbuf,tbuf->count); in n_hdlc_send_frames()
413 actual = tty->driver.write(tty, 0, tbuf->buf, tbuf->count); in n_hdlc_send_frames()
[all …]
/linux-2.4.37.9/arch/parisc/kernel/
Dsys_parisc.c218 struct broken_shmid64_ds tbuf; in copyout_broken_shmid64() local
220 memset(&tbuf, 0, sizeof tbuf); in copyout_broken_shmid64()
221 convert_broken_perm (&tbuf.shm_perm, &sbuf->shm_perm); in copyout_broken_shmid64()
222 tbuf.shm_segsz = sbuf->shm_segsz; in copyout_broken_shmid64()
223 tbuf.shm_atime = sbuf->shm_atime; in copyout_broken_shmid64()
224 tbuf.shm_dtime = sbuf->shm_dtime; in copyout_broken_shmid64()
225 tbuf.shm_ctime = sbuf->shm_ctime; in copyout_broken_shmid64()
226 tbuf.shm_cpid = sbuf->shm_cpid; in copyout_broken_shmid64()
227 tbuf.shm_lpid = sbuf->shm_lpid; in copyout_broken_shmid64()
228 tbuf.shm_nattch = sbuf->shm_nattch; in copyout_broken_shmid64()
[all …]
Dsys_parisc32.c392 asmlinkage long sys32_times(struct tms32 *tbuf) in sys32_times() argument
396 extern asmlinkage long sys_times(struct tms * tbuf); in sys32_times()
399 KERNEL_SYSCALL(ret, sys_times, tbuf ? &t : NULL); in sys32_times()
400 if (tbuf) { in sys32_times()
401 err = put_user (t.tms_utime, &tbuf->tms_utime); in sys32_times()
402 err |= __put_user (t.tms_stime, &tbuf->tms_stime); in sys32_times()
403 err |= __put_user (t.tms_cutime, &tbuf->tms_cutime); in sys32_times()
404 err |= __put_user (t.tms_cstime, &tbuf->tms_cstime); in sys32_times()
/linux-2.4.37.9/ipc/
Dshm.c298 struct shmid64_ds tbuf; in copy_shmid_from_user() local
300 if (copy_from_user(&tbuf, buf, sizeof(tbuf))) in copy_shmid_from_user()
303 out->uid = tbuf.shm_perm.uid; in copy_shmid_from_user()
304 out->gid = tbuf.shm_perm.gid; in copy_shmid_from_user()
305 out->mode = tbuf.shm_flags; in copy_shmid_from_user()
430 struct shmid64_ds tbuf; in sys_shmctl() local
432 memset(&tbuf, 0, sizeof(tbuf)); in sys_shmctl()
450 kernel_to_ipc64_perm(&shp->shm_perm, &tbuf.shm_perm); in sys_shmctl()
451 tbuf.shm_segsz = shp->shm_segsz; in sys_shmctl()
452 tbuf.shm_atime = shp->shm_atim; in sys_shmctl()
[all …]
Dmsg.c388 struct msqid64_ds tbuf; in copy_msqid_from_user() local
390 if (copy_from_user (&tbuf, buf, sizeof (tbuf))) in copy_msqid_from_user()
393 out->qbytes = tbuf.msg_qbytes; in copy_msqid_from_user()
394 out->uid = tbuf.msg_perm.uid; in copy_msqid_from_user()
395 out->gid = tbuf.msg_perm.gid; in copy_msqid_from_user()
396 out->mode = tbuf.msg_perm.mode; in copy_msqid_from_user()
472 struct msqid64_ds tbuf; in sys_msgctl() local
479 memset(&tbuf,0,sizeof(tbuf)); in sys_msgctl()
497 kernel_to_ipc64_perm(&msq->q_perm, &tbuf.msg_perm); in sys_msgctl()
498 tbuf.msg_stime = msq->q_stime; in sys_msgctl()
[all …]
Dsem.c476 struct semid64_ds tbuf; in semctl_nolock() local
482 memset(&tbuf,0,sizeof(tbuf)); in semctl_nolock()
493 kernel_to_ipc64_perm(&sma->sem_perm, &tbuf.sem_perm); in semctl_nolock()
494 tbuf.sem_otime = sma->sem_otime; in semctl_nolock()
495 tbuf.sem_ctime = sma->sem_ctime; in semctl_nolock()
496 tbuf.sem_nsems = sma->sem_nsems; in semctl_nolock()
498 if (copy_semid_to_user (arg.buf, &tbuf, version)) in semctl_nolock()
599 struct semid64_ds tbuf; in semctl_main() local
600 memset(&tbuf,0,sizeof(tbuf)); in semctl_main()
601 kernel_to_ipc64_perm(&sma->sem_perm, &tbuf.sem_perm); in semctl_main()
[all …]
/linux-2.4.37.9/drivers/usb/
Ddevio.c551 unsigned char *tbuf; in proc_control() local
560 if (!(tbuf = (unsigned char *)__get_free_page(GFP_KERNEL))) in proc_control()
565 free_page((unsigned long)tbuf); in proc_control()
569 ctrl.value, ctrl.index, tbuf, ctrl.length, tmo); in proc_control()
571 if (copy_to_user(ctrl.data, tbuf, ctrl.length)) { in proc_control()
572 free_page((unsigned long)tbuf); in proc_control()
578 if (copy_from_user(tbuf, ctrl.data, ctrl.length)) { in proc_control()
579 free_page((unsigned long)tbuf); in proc_control()
584 ctrl.value, ctrl.index, tbuf, ctrl.length, tmo); in proc_control()
586 free_page((unsigned long)tbuf); in proc_control()
[all …]
Dusb.c2170 unsigned char *tbuf; in usb_string() local
2177 tbuf = kmalloc(256, GFP_KERNEL); in usb_string()
2178 if (!tbuf) in usb_string()
2183 err = usb_get_string(dev, 0, 0, tbuf, 4); in usb_string()
2187 } else if (err < 4 || tbuf[0] < 4) { in usb_string()
2193 dev->string_langid = tbuf[2] | (tbuf[3]<< 8); in usb_string()
2204 err = usb_get_string(dev, dev->string_langid, index, tbuf, 255); in usb_string()
2212 if (tbuf[u+1]) /* high byte */ in usb_string()
2215 buf[idx++] = tbuf[u]; in usb_string()
2221 kfree(tbuf); in usb_string()
/linux-2.4.37.9/drivers/scsi/
Dwd33c93.c1884 char tbuf[128]; in wd33c93_proc_info() local
1958 sprintf(tbuf,"\nVersion %s - %s. Compiled %s %s", in wd33c93_proc_info()
1960 strcat(bp,tbuf); in wd33c93_proc_info()
1963 sprintf(tbuf,"\nclock_freq=%02x no_sync=%02x no_dma=%d", in wd33c93_proc_info()
1965 strcat(bp,tbuf); in wd33c93_proc_info()
1968 sprintf(tbuf,"\t%02x",hd->sync_xfer[x]); in wd33c93_proc_info()
1969 strcat(bp,tbuf); in wd33c93_proc_info()
1973 sprintf(tbuf,"\t%02x",hd->sync_stat[x]); in wd33c93_proc_info()
1974 strcat(bp,tbuf); in wd33c93_proc_info()
1981 sprintf(tbuf,"\t%ld",hd->cmd_cnt[x]); in wd33c93_proc_info()
[all …]
Din2000.c2199 char tbuf[128]; in in2000_proc_info() local
2268 sprintf(tbuf,"\nVersion %s - %s. Compiled %s %s", in in2000_proc_info()
2270 strcat(bp,tbuf); in in2000_proc_info()
2273 sprintf(tbuf,"\ndip_switch=%02x: irq=%d io=%02x floppy=%s sync/DOS5=%s", in in2000_proc_info()
2277 strcat(bp,tbuf); in in2000_proc_info()
2280 sprintf(tbuf,"\t%02x",hd->sync_xfer[x]); in in2000_proc_info()
2281 strcat(bp,tbuf); in in2000_proc_info()
2285 sprintf(tbuf,"\t%02x",hd->sync_stat[x]); in in2000_proc_info()
2286 strcat(bp,tbuf); in in2000_proc_info()
2293 sprintf(tbuf,"\t%ld",hd->cmd_cnt[x]); in in2000_proc_info()
[all …]
Dqla1280.c2507 uint8_t *tbuf; in qla1280_setup_chip() local
2517 tbuf = pci_alloc_consistent(ha->pdev, 8000, &p_tbuf); in qla1280_setup_chip()
2583 if (tbuf[i] != sp[i] && warn++ < 10) { in qla1280_setup_chip()
2588 "FWfromChip=%x\n", sp[i], tbuf[i]); in qla1280_setup_chip()
2622 pci_free_consistent(ha->pdev, 8000, tbuf, p_tbuf); in qla1280_setup_chip()
/linux-2.4.37.9/drivers/mtd/chips/
Dsharp.c319 union { u32 l; unsigned char uc[4]; } tbuf; in sharp_write() local
324 tbuf.l = 0xffffffff; in sharp_write()
330 tbuf.uc[i] = *buf; in sharp_write()
336 sharp_write_oneword(map, &sharp->chips[chipnum], ofs&~3, tbuf.l); in sharp_write()
/linux-2.4.37.9/net/ipv4/
Darp.c1247 char tbuf[16]; in arp_format_neigh_entry() local
1268 sprintf(tbuf, "%u.%u.%u.%u", NIPQUAD(*(u32*)n->primary_key)); in arp_format_neigh_entry()
1270 tbuf, hatype, arp_state_to_flags(n), hbuffer, dev->name); in arp_format_neigh_entry()
1279 char tbuf[16]; in arp_format_pneigh_entry() local
1281 sprintf(tbuf, "%u.%u.%u.%u", NIPQUAD(*(u32*)n->key)); in arp_format_pneigh_entry()
1283 tbuf, hatype, ATF_PUBL | ATF_PERM, "00:00:00:00:00:00", in arp_format_pneigh_entry()
/linux-2.4.37.9/net/ipv4/ipvs/
Dip_vs_lblcr.c589 char tbuf[16]; in ip_vs_lblcr_getinfo() local
593 sprintf(tbuf, "%u.%u.%u.%u", NIPQUAD(en->addr)); in ip_vs_lblcr_getinfo()
595 now-en->lastuse, tbuf); in ip_vs_lblcr_getinfo()
/linux-2.4.37.9/arch/mips/kernel/
Dsysirix.c816 asmlinkage int irix_times(struct tms * tbuf) in irix_times() argument
820 if (tbuf) { in irix_times()
821 err = verify_area(VERIFY_WRITE,tbuf,sizeof *tbuf); in irix_times()
824 err |= __put_user(current->times.tms_utime,&tbuf->tms_utime); in irix_times()
825 err |= __put_user(current->times.tms_stime,&tbuf->tms_stime); in irix_times()
826 err |= __put_user(current->times.tms_cutime,&tbuf->tms_cutime); in irix_times()
827 err |= __put_user(current->times.tms_cstime,&tbuf->tms_cstime); in irix_times()
/linux-2.4.37.9/include/linux/
Dintermezzo_kml.h232 extern char *dlogit (void *tbuf, const void *sbuf, int size);
/linux-2.4.37.9/kernel/
Dsys.c802 asmlinkage long sys_times(struct tms * tbuf) in sys_times() argument
810 if (tbuf) in sys_times()
811 if (copy_to_user(tbuf, &current->times, sizeof(struct tms))) in sys_times()
/linux-2.4.37.9/arch/x86_64/ia32/
Dsys_ia32.c1323 sys32_times(struct tms32 *tbuf) in sys32_times() argument
1330 ret = sys_times(tbuf ? &t : NULL); in sys32_times()
1332 if (tbuf) { in sys32_times()
1333 if (verify_area(VERIFY_WRITE, tbuf, sizeof(struct tms32)) || in sys32_times()
1334 __put_user (t.tms_utime, &tbuf->tms_utime) || in sys32_times()
1335 __put_user (t.tms_stime, &tbuf->tms_stime) || in sys32_times()
1336 __put_user (t.tms_cutime, &tbuf->tms_cutime) || in sys32_times()
1337 __put_user (t.tms_cstime, &tbuf->tms_cstime)) in sys32_times()
/linux-2.4.37.9/arch/mips64/kernel/
Dlinux32.c1476 extern asmlinkage long sys_times(struct tms * tbuf);
1477 asmlinkage long sys32_times(struct tms32 *tbuf) in sys32_times() argument
1485 ret = sys_times(tbuf ? &t : NULL); in sys32_times()
1487 if (tbuf) { in sys32_times()
1488 err = put_user (t.tms_utime, &tbuf->tms_utime); in sys32_times()
1489 err |= __put_user (t.tms_stime, &tbuf->tms_stime); in sys32_times()
1490 err |= __put_user (t.tms_cutime, &tbuf->tms_cutime); in sys32_times()
1491 err |= __put_user (t.tms_cstime, &tbuf->tms_cstime); in sys32_times()
/linux-2.4.37.9/arch/ia64/ia32/
Dsys_ia32.c2776 extern asmlinkage long sys_times (struct tms * tbuf);
2779 sys32_times (struct tms32 *tbuf) in sys32_times() argument
2787 ret = sys_times(tbuf ? &t : NULL); in sys32_times()
2789 if (tbuf) { in sys32_times()
2790 err = put_user (IA32_TICK(t.tms_utime), &tbuf->tms_utime); in sys32_times()
2791 err |= put_user (IA32_TICK(t.tms_stime), &tbuf->tms_stime); in sys32_times()
2792 err |= put_user (IA32_TICK(t.tms_cutime), &tbuf->tms_cutime); in sys32_times()
2793 err |= put_user (IA32_TICK(t.tms_cstime), &tbuf->tms_cstime); in sys32_times()
/linux-2.4.37.9/arch/ppc64/kernel/
Dsys_ppc32.c2464 extern asmlinkage long sys_times(struct tms * tbuf);
2466 asmlinkage long sys32_times(struct tms32 *tbuf) in sys32_times() argument
2476 ret = sys_times(tbuf ? &t : NULL); in sys32_times()
2478 if (tbuf) { in sys32_times()
2479 err = put_user (t.tms_utime, &tbuf->tms_utime); in sys32_times()
2480 err |= __put_user (t.tms_stime, &tbuf->tms_stime); in sys32_times()
2481 err |= __put_user (t.tms_cutime, &tbuf->tms_cutime); in sys32_times()
2482 err |= __put_user (t.tms_cstime, &tbuf->tms_cstime); in sys32_times()
/linux-2.4.37.9/arch/sparc64/kernel/
Dsys_sparc32.c2248 extern asmlinkage long sys_times(struct tms * tbuf);
2250 asmlinkage long sys32_times(struct tms32 *tbuf) in sys32_times() argument
2258 ret = sys_times(tbuf ? &t : NULL); in sys32_times()
2260 if (tbuf) { in sys32_times()
2261 err = put_user (t.tms_utime, &tbuf->tms_utime); in sys32_times()
2262 err |= __put_user (t.tms_stime, &tbuf->tms_stime); in sys32_times()
2263 err |= __put_user (t.tms_cutime, &tbuf->tms_cutime); in sys32_times()
2264 err |= __put_user (t.tms_cstime, &tbuf->tms_cstime); in sys32_times()
/linux-2.4.37.9/arch/s390x/kernel/
Dlinux32.c2158 extern asmlinkage long sys_times(struct tms * tbuf);
2160 asmlinkage long sys32_times(struct tms32 *tbuf) in sys32_times() argument
2168 ret = sys_times(tbuf ? &t : NULL); in sys32_times()
2170 if (tbuf) { in sys32_times()
2171 err = put_user (t.tms_utime, &tbuf->tms_utime); in sys32_times()
2172 err |= __put_user (t.tms_stime, &tbuf->tms_stime); in sys32_times()
2173 err |= __put_user (t.tms_cutime, &tbuf->tms_cutime); in sys32_times()
2174 err |= __put_user (t.tms_cstime, &tbuf->tms_cstime); in sys32_times()