Home
last modified time | relevance | path

Searched refs:sbuf (Results 1 – 25 of 31) sorted by relevance

12

/linux-2.4.37.9/drivers/media/video/
Dcpia_usb.c77 struct cpia_sbuf sbuf[CPIA_NUMSBUF]; /* Double buffering */ member
180 ucpia->sbuf[0].data = kmalloc(FRAMES_PER_DESC * FRAME_SIZE_PER_DESC, GFP_KERNEL); in cpia_usb_open()
181 if (!ucpia->sbuf[0].data) in cpia_usb_open()
184 ucpia->sbuf[1].data = kmalloc(FRAMES_PER_DESC * FRAME_SIZE_PER_DESC, GFP_KERNEL); in cpia_usb_open()
185 if (!ucpia->sbuf[1].data) { in cpia_usb_open()
214 ucpia->sbuf[0].urb = urb; in cpia_usb_open()
219 urb->transfer_buffer = ucpia->sbuf[0].data; in cpia_usb_open()
235 ucpia->sbuf[1].urb = urb; in cpia_usb_open()
240 urb->transfer_buffer = ucpia->sbuf[1].data; in cpia_usb_open()
249 ucpia->sbuf[1].urb->next = ucpia->sbuf[0].urb; in cpia_usb_open()
[all …]
Dvideodev.c264 char sbuf[128]; in video_usercopy() local
277 if (_IOC_SIZE(cmd) <= sizeof(sbuf)) { in video_usercopy()
278 parg = sbuf; in video_usercopy()
/linux-2.4.37.9/arch/parisc/kernel/
Dsys_parisc.c216 static int copyout_broken_shmid64(struct broken_shmid64_ds *buf, struct shmid64_ds *sbuf) in copyout_broken_shmid64() argument
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()
244 struct shmid64_ds sbuf; in sys_shmctl_broken() local
[all …]
/linux-2.4.37.9/kernel/
Dacct.c95 struct statfs sbuf; in check_free_space() local
106 if (vfs_statfs(file->f_dentry->d_inode->i_sb, &sbuf)) in check_free_space()
109 if (sbuf.f_bavail <= SUSPEND * sbuf.f_blocks / 100) in check_free_space()
111 else if (sbuf.f_bavail >= RESUME * sbuf.f_blocks / 100) in check_free_space()
/linux-2.4.37.9/fs/xfs/
Dxfs_error.c288 char sbuf[128], *s; in xfs_hex_dump() local
290 s = sbuf; in xfs_hex_dump()
295 cmn_err(CE_ALERT, "%s\n", sbuf); in xfs_hex_dump()
296 s = sbuf; in xfs_hex_dump()
311 cmn_err(CE_ALERT, "%s\n", sbuf); in xfs_hex_dump()
Dxfs_dir_leaf.c443 xfs_dir_sf_sort_t *sbuf, *sbp; in xfs_dir_shortform_getdents() local
450 sbsize = (nsbuf + 1) * sizeof(*sbuf); in xfs_dir_shortform_getdents()
451 sbp = sbuf = kmem_alloc(sbsize, KM_SLEEP); in xfs_dir_shortform_getdents()
490 kmem_free(sbuf, sbsize); in xfs_dir_shortform_getdents()
507 qsort(sbuf, nsbuf, sizeof(*sbuf), xfs_dir_shortform_compare); in xfs_dir_shortform_getdents()
517 for (hash = sbuf->hash, sbp = sbuf + 1; in xfs_dir_shortform_getdents()
518 sbp < &sbuf[nsbuf + 1]; sbp++) { in xfs_dir_shortform_getdents()
535 for (sbp = sbuf; sbp < &sbuf[nsbuf + 1]; sbp++) { in xfs_dir_shortform_getdents()
545 if (sbp == &sbuf[nsbuf]) { in xfs_dir_shortform_getdents()
546 kmem_free(sbuf, sbsize); in xfs_dir_shortform_getdents()
[all …]
/linux-2.4.37.9/drivers/isdn/act2000/
Dact2000_isa.c321 if (!(card->sbuf)) { in act2000_isa_send()
322 if ((card->sbuf = skb_dequeue(&card->sndq))) { in act2000_isa_send()
323 card->ack_msg = card->sbuf->data; in act2000_isa_send()
324 msg = (actcapi_msg *)card->sbuf->data; in act2000_isa_send()
334 if (!(card->sbuf)) { in act2000_isa_send()
339 skb = card->sbuf; in act2000_isa_send()
365 card->sbuf = NULL; in act2000_isa_send()
Dact2000.h164 struct sk_buff *sbuf; /* skb which is currently sent */ member
/linux-2.4.37.9/arch/parisc/hpux/
Dsys_hpux.c121 struct statfs sbuf; in hpux_ustat() local
129 err = vfs_statfs(s, &sbuf); in hpux_ustat()
136 tmp.f_tfree = (int32_t)sbuf.f_bfree; in hpux_ustat()
137 tmp.f_tinode = (u_int32_t)sbuf.f_ffree; in hpux_ustat()
138 tmp.f_blksize = (u_int32_t)sbuf.f_bsize; /* Added this line */ in hpux_ustat()
/linux-2.4.37.9/drivers/usb/
Dpwc-if.c261 if (pdev->sbuf[i].data == NULL) { in pwc_allocate_buffers()
268 pdev->sbuf[i].data = kbuf; in pwc_allocate_buffers()
346 if (pdev->sbuf[i].data != NULL) { in pwc_free_buffers()
347 Trace(TRACE_MEMORY, "Freeing ISO buffer at %p.\n", pdev->sbuf[i].data); in pwc_free_buffers()
348 kfree(pdev->sbuf[i].data); in pwc_free_buffers()
349 pdev->sbuf[i].data = NULL; in pwc_free_buffers()
830 pdev->sbuf[i].urb = urb; in pwc_isoc_init()
836 if (pdev->sbuf[i].urb != NULL) in pwc_isoc_init()
837 usb_free_urb(pdev->sbuf[i].urb); in pwc_isoc_init()
838 pdev->sbuf[i].urb = NULL; in pwc_isoc_init()
[all …]
Dusbvideo.c951 usb_free_urb(uvd->sbuf[i].urb); in usbvideo_Disconnect()
1057 uvd->sbuf[i].urb = usb_alloc_urb(FRAMES_PER_DESC); in usbvideo_AllocateDevice()
1058 if (uvd->sbuf[i].urb == NULL) { in usbvideo_AllocateDevice()
1231 uvd->sbuf[i].data = NULL; in usbvideo_v4l_open()
1254 uvd->sbuf[i].data = kmalloc(sb_size, GFP_KERNEL); in usbvideo_v4l_open()
1255 if (uvd->sbuf[i].data == NULL) { in usbvideo_v4l_open()
1269 if (uvd->sbuf[i].data != NULL) { in usbvideo_v4l_open()
1270 kfree (uvd->sbuf[i].data); in usbvideo_v4l_open()
1271 uvd->sbuf[i].data = NULL; in usbvideo_v4l_open()
1337 kfree(uvd->sbuf[i].data); in usbvideo_v4l_close()
[all …]
Dstv680.h132 struct stv680_sbuf sbuf[STV680_NUMSBUF]; member
Dov511.c4138 struct ov511_sbuf *sbuf; in ov51x_isoc_irq() local
4145 sbuf = urb->context; in ov51x_isoc_irq()
4146 ov = sbuf->ov; in ov51x_isoc_irq()
4169 PDEBUG(5, "sbuf[%d]: Moving %d packets", sbuf->n, in ov51x_isoc_irq()
4285 ov->sbuf[n].urb = urb; in ov51x_init_isoc()
4287 urb->context = &ov->sbuf[n]; in ov51x_init_isoc()
4290 urb->transfer_buffer = ov->sbuf[n].data; in ov51x_init_isoc()
4304 ov->sbuf[n].urb->dev = ov->dev; in ov51x_init_isoc()
4305 err = usb_submit_urb(ov->sbuf[n].urb); in ov51x_init_isoc()
4322 if (ov->sbuf[n].urb) { in ov51x_unlink_isoc()
[all …]
Dse401.h223 struct se401_sbuf sbuf[SE401_NUMSBUF]; member
Dpwc.h157 struct pwc_iso_buf sbuf[MAX_ISO_BUFS]; member
Dkonicawc.c408 struct urb *urb = uvd->sbuf[i].urb; in konicawc_start_data()
414 urb->transfer_buffer = uvd->sbuf[i].data; in konicawc_start_data()
448 errFlag = usb_submit_urb(uvd->sbuf[i].urb); in konicawc_start_data()
475 j = usb_unlink_urb(uvd->sbuf[i].urb); in konicawc_stop_data()
Dstv680.c736 stv680->sbuf[i].data = kmalloc (stv680->rawbufsize, GFP_KERNEL); in stv680_start_stream()
737 if (stv680->sbuf[i].data == NULL) { in stv680_start_stream()
763 stv680->sbuf[i].data, stv680->rawbufsize, in stv680_start_stream()
792 kfree (stv680->sbuf[i].data); in stv680_stop_stream()
1568 kfree (stv680->sbuf[i].data); in usb_stv680_remove_disconnected()
Dse401.c576 se401->sbuf[i].data=kmalloc(SE401_PACKETSIZE, GFP_KERNEL); in se401_start_stream()
595 se401->sbuf[i].data, SE401_PACKETSIZE, in se401_start_stream()
631 kfree(se401->sbuf[i].data); in se401_stop_stream()
1006 kfree(se401->sbuf[i].data); in usb_se401_remove_disconnected()
/linux-2.4.37.9/drivers/s390/net/
Dnetiucv.c1431 char *sbuf = (char *)file->private_data; in netiucv_buffer_read() local
1435 char *p = sbuf; in netiucv_buffer_read()
1446 if (!*sbuf || pos == 0) in netiucv_buffer_read()
1447 sprintf(sbuf, "%d\n", privptr->conn->max_buffsize); in netiucv_buffer_read()
1449 l = strlen(sbuf); in netiucv_buffer_read()
1450 p = sbuf; in netiucv_buffer_read()
1529 char *sbuf = (char *)file->private_data; in netiucv_user_read() local
1533 char *p = sbuf; in netiucv_user_read()
1545 if (!*sbuf || pos == 0) in netiucv_user_read()
1546 sprintf(sbuf, "%s\n", in netiucv_user_read()
[all …]
Dctcmain.c2998 char *sbuf = (char *)file->private_data; in ctc_ctrl_read() local
3002 char *p = sbuf; in ctc_ctrl_read()
3013 if (!*sbuf || pos == 0) in ctc_ctrl_read()
3014 sprintf(sbuf, "%d\n", privptr->channel[READ]->max_bufsize); in ctc_ctrl_read()
3016 l = strlen(sbuf); in ctc_ctrl_read()
3017 p = sbuf; in ctc_ctrl_read()
3084 char *sbuf = (char *)file->private_data; in ctc_loglevel_read() local
3088 char *p = sbuf; in ctc_loglevel_read()
3099 if (!*sbuf || pos == 0) in ctc_loglevel_read()
3100 sprintf(sbuf, "0x%02x\n", loglevel); in ctc_loglevel_read()
[all …]
/linux-2.4.37.9/fs/
Dsuper.c519 struct statfs sbuf; in sys_ustat() local
525 err = vfs_statfs(s, &sbuf); in sys_ustat()
531 tmp.f_tfree = sbuf.f_bfree; in sys_ustat()
532 tmp.f_tinode = sbuf.f_ffree; in sys_ustat()
/linux-2.4.37.9/drivers/isdn/eicon/
Deicon_mod.c1088 …if (!(card->sbuf = (BUFFERS *) kmalloc((sizeof(BUFFERS) * (card->nchannels + 1)) * 2, GFP_KERNEL))… in eicon_alloccard()
1102 kfree(card->sbuf); in eicon_alloccard()
1111 memset((char *)&card->sbuf[j], 0, sizeof(BUFFERS)); in eicon_alloccard()
1112 card->bch[j].de.X = (BUFFERS *)&card->sbuf[j]; in eicon_alloccard()
1113 memset((char *)&card->sbuf[j+(card->nchannels+1)], 0, sizeof(BUFFERS)); in eicon_alloccard()
1114 card->bch[j].be.X = (BUFFERS *)&card->sbuf[j+(card->nchannels+1)]; in eicon_alloccard()
1208 kfree(card->sbuf); in eicon_freecard()
Deicon.h335 BUFFERS *sbuf; /* Buffer for Diva Server */ member
/linux-2.4.37.9/drivers/sound/
Drme96xx.c681 short* sbuf = (short*)buffer + i*(!dma->mono); in rme96xx_copyfromuser() local
686 __get_user(*hwbuf++,sbuf++); in rme96xx_copyfromuser()
687 sbuf+=(dma->outchannels-1); in rme96xx_copyfromuser()
731 short* sbuf = (short*)buffer + i; in rme96xx_copytouser() local
736 __put_user(*hwbuf++,sbuf++); in rme96xx_copytouser()
737 sbuf+=(dma->inchannels-1); in rme96xx_copytouser()
/linux-2.4.37.9/include/linux/
Dintermezzo_kml.h232 extern char *dlogit (void *tbuf, const void *sbuf, int size);

12