Home
last modified time | relevance | path

Searched refs:tbufs (Results 1 – 2 of 2) sorted by relevance

/linux/init/
H A Dinitramfs_test.c406 } *tbufs = kzalloc_obj(struct test_fname_pad); in initramfs_test_fname_pad() local
423 .fname = tbufs->padded_fname, in initramfs_test_fname_pad()
427 memcpy(tbufs->padded_fname, "padded_fname", sizeof("padded_fname")); in initramfs_test_fname_pad()
428 len = fill_cpio(c, ARRAY_SIZE(c), tbufs->cpio_srcbuf); in initramfs_test_fname_pad()
430 err = unpack_to_rootfs(tbufs->cpio_srcbuf, len); in initramfs_test_fname_pad()
440 len = kernel_read(file, tbufs->cpio_srcbuf, c[0].filesize, NULL); in initramfs_test_fname_pad()
442 KUNIT_EXPECT_MEMEQ(test, tbufs->cpio_srcbuf, c[0].data, len); in initramfs_test_fname_pad()
447 kfree(tbufs); in initramfs_test_fname_pad()
460 } *tbufs = kzalloc_obj(struct test_fname_path_max); in initramfs_test_fname_path_max() local
466 .namesize = sizeof(tbufs->fname_oversize), in initramfs_test_fname_path_max()
[all …]
/linux/drivers/tty/
H A Dsynclink_gt.c309 struct slgt_desc *tbufs; member
525 i, le16_to_cpu(info->tbufs[i].count), le16_to_cpu(info->tbufs[i].status)); in dump_tbufs()
2187 if (!desc_count(info->tbufs[i])) in unsent_tbufs()
3271 info->tbufs = ((struct slgt_desc*)info->bufs) + info->rbuf_count; in alloc_desc()
3293 info->tbufs[i].pdesc = pbufs + ((info->rbuf_count + i) * sizeof(struct slgt_desc)); in alloc_desc()
3297 info->tbufs[i].next = cpu_to_le32(pbufs + info->rbuf_count * sizeof(struct slgt_desc)); in alloc_desc()
3299 …info->tbufs[i].next = cpu_to_le32(pbufs + ((info->rbuf_count + i + 1) * sizeof(struct slgt_desc))); in alloc_desc()
3312 info->tbufs = NULL; in free_desc()
3348 alloc_bufs(info, info->tbufs, info->tbuf_count) < 0 || in alloc_dma_bufs()
3361 free_bufs(info, info->tbufs, info->tbuf_count); in free_dma_bufs()
[all …]