/kernel/linux/linux-6.6/tools/testing/selftests/arm64/mte/ |
H A D | check_tags_inclusion.c | 18 #define BUFFER_SIZE (5 * MT_GRANULE_SIZE) macro 24 mte_initialize_current_context(mode, (uintptr_t)ptr, BUFFER_SIZE); in verify_mte_pointer_validity() 26 memset(ptr, '1', BUFFER_SIZE); in verify_mte_pointer_validity() 30 ptr, ptr + BUFFER_SIZE, mode); in verify_mte_pointer_validity() 36 mte_initialize_current_context(mode, (uintptr_t)ptr, BUFFER_SIZE + 1); in verify_mte_pointer_validity() 38 ptr[BUFFER_SIZE] = '2'; in verify_mte_pointer_validity() 54 ptr = mte_allocate_memory(BUFFER_SIZE + MT_GRANULE_SIZE, mem_type, 0, false); in check_single_included_tags() 55 if (check_allocated_memory(ptr, BUFFER_SIZE + MT_GRANULE_SIZE, in check_single_included_tags() 65 ptr = mte_insert_tags(ptr, BUFFER_SIZE); in check_single_included_tags() 77 mte_free_memory_tag_range(ptr, BUFFER_SIZE, mem_typ in check_single_included_tags() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/arm64/mte/ |
H A D | check_tags_inclusion.c | 18 #define BUFFER_SIZE (5 * MT_GRANULE_SIZE) macro 24 mte_initialize_current_context(mode, (uintptr_t)ptr, BUFFER_SIZE); in verify_mte_pointer_validity() 26 memset((void *)ptr, '1', BUFFER_SIZE); in verify_mte_pointer_validity() 33 mte_initialize_current_context(mode, (uintptr_t)ptr, BUFFER_SIZE + 1); in verify_mte_pointer_validity() 35 ptr[BUFFER_SIZE] = '2'; in verify_mte_pointer_validity() 48 ptr = (char *)mte_allocate_memory(BUFFER_SIZE + MT_GRANULE_SIZE, mem_type, 0, false); in check_single_included_tags() 49 if (check_allocated_memory(ptr, BUFFER_SIZE + MT_GRANULE_SIZE, in check_single_included_tags() 57 ptr = (char *)mte_insert_tags(ptr, BUFFER_SIZE); in check_single_included_tags() 69 mte_free_memory_tag_range((void *)ptr, BUFFER_SIZE, mem_type, 0, MT_GRANULE_SIZE); in check_single_included_tags() 79 ptr = (char *)mte_allocate_memory(BUFFER_SIZE in check_multiple_included_tags() [all...] |
H A D | check_child_memory.c | 18 #define BUFFER_SIZE (5 * MT_GRANULE_SIZE) macro
|
/kernel/liteos_a/testsuites/unittest/process/plimits/smoke/ |
H A D | It_process_plimits_pid_004.cpp | 42 const size_t BUFFER_SIZE = 512; in ItProcessPlimitsPid004() local 51 char buff[BUFFER_SIZE] = {0}; in ItProcessPlimitsPid004() 55 (void)memset_s(buff, BUFFER_SIZE, 0, BUFFER_SIZE); in ItProcessPlimitsPid004()
|
H A D | It_process_plimits_pid_006.cpp | 42 const size_t BUFFER_SIZE = 512; in ItProcessPlimitsPid006() local 51 char buff[BUFFER_SIZE] = {0}; in ItProcessPlimitsPid006() 55 (void)memset_s(buff, BUFFER_SIZE, 0, BUFFER_SIZE); in ItProcessPlimitsPid006()
|
H A D | It_process_plimits_004.cpp | 44 const size_t BUFFER_SIZE = 512; in ItProcessPlimits004() local 45 char buf[BUFFER_SIZE + 1] = {0}; in ItProcessPlimits004()
|
/kernel/linux/linux-6.6/tools/testing/selftests/iommu/ |
H A D | iommufd.c | 43 BUFFER_SIZE = PAGE_SIZE * 16; in setup_sizes() 44 rc = posix_memalign(&buffer, HUGEPAGE_SIZE, BUFFER_SIZE); in setup_sizes() 48 vrc = mmap(buffer, BUFFER_SIZE, PROT_READ | PROT_WRITE, in setup_sizes() 566 .num_iovas = BUFFER_SIZE / sizeof(*ranges), in TEST_F() 584 memset(ranges, 0, BUFFER_SIZE); in TEST_F() 596 ranges_cmd.num_iovas = BUFFER_SIZE / sizeof(*ranges); in TEST_F() 611 memset(ranges, 0, BUFFER_SIZE); in TEST_F() 670 .length = BUFFER_SIZE, in TEST_F() 677 .length = BUFFER_SIZE, in TEST_F() 686 for (npages = 1; npages < BUFFER_SIZE / PAGE_SIZ in TEST_F() [all...] |
H A D | iommufd_fail_nth.c | 46 BUFFER_SIZE = 2*1024*1024; in setup_buffer() 48 buffer = mmap(0, BUFFER_SIZE, PROT_READ | PROT_WRITE, in setup_buffer() 265 ranges[0].last = BUFFER_SIZE + 16 * 1024 * 600 - 1; in TEST_FAIL_NTH() 270 if (_test_ioctl_ioas_map(self->fd, ioas_id, buffer, BUFFER_SIZE, &iova, in TEST_FAIL_NTH() 290 if (_test_ioctl_ioas_unmap(self->fd, ioas_id, iova, BUFFER_SIZE, in TEST_FAIL_NTH() 294 _test_ioctl_ioas_unmap(self->fd, ioas_id, iova, BUFFER_SIZE, NULL); in TEST_FAIL_NTH() 477 if (_test_ioctl_ioas_map(self->fd, ioas_id, buffer, BUFFER_SIZE, &iova, in TEST_FAIL_NTH() 494 .length = BUFFER_SIZE, in TEST_FAIL_NTH() 536 if (_test_ioctl_ioas_map(self->fd, ioas_id, buffer, BUFFER_SIZE, &iova, in TEST_FAIL_NTH() 553 .length = BUFFER_SIZE, in TEST_FAIL_NTH() [all...] |
H A D | iommufd_utils.h | 20 static unsigned long BUFFER_SIZE; variable 332 .check_refs = { .length = BUFFER_SIZE, in teardown_iommufd()
|
/kernel/linux/linux-5.10/drivers/input/serio/ |
H A D | gscps2.c | 86 #define BUFFER_SIZE 0x0f macro 99 } buffer[BUFFER_SIZE+1]; 240 ps2port->append = ((ps2port->append+1) & BUFFER_SIZE); in gscps2_interrupt() 264 ps2port->act = ((ps2port->act+1) & BUFFER_SIZE); in gscps2_interrupt()
|
/kernel/linux/linux-6.6/drivers/input/serio/ |
H A D | gscps2.c | 86 #define BUFFER_SIZE 0x0f macro 99 } buffer[BUFFER_SIZE+1]; 240 ps2port->append = ((ps2port->append+1) & BUFFER_SIZE); in gscps2_interrupt() 264 ps2port->act = ((ps2port->act+1) & BUFFER_SIZE); in gscps2_interrupt()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/i825xx/ |
H A D | ether1.c | 57 #define BUFFER_SIZE 0x10000 macro 254 unsigned char *buffer = kmalloc (BUFFER_SIZE, GFP_KERNEL); in ether1_ramtest() 255 int i, ret = BUFFER_SIZE; in ether1_ramtest() 263 memset (buffer, byte, BUFFER_SIZE); in ether1_ramtest() 264 ether1_writebuffer (dev, buffer, 0, BUFFER_SIZE); in ether1_ramtest() 265 memset (buffer, byte ^ 0xff, BUFFER_SIZE); in ether1_ramtest() 266 ether1_readbuffer (dev, buffer, 0, BUFFER_SIZE); in ether1_ramtest() 268 for (i = 0; i < BUFFER_SIZE; i++) { in ether1_ramtest() 292 printk (" - 0x%04X\n", BUFFER_SIZE); in ether1_ramtest()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/i825xx/ |
H A D | ether1.c | 57 #define BUFFER_SIZE 0x10000 macro 254 unsigned char *buffer = kmalloc (BUFFER_SIZE, GFP_KERNEL); in ether1_ramtest() 255 int i, ret = BUFFER_SIZE; in ether1_ramtest() 263 memset (buffer, byte, BUFFER_SIZE); in ether1_ramtest() 264 ether1_writebuffer (dev, buffer, 0, BUFFER_SIZE); in ether1_ramtest() 265 memset (buffer, byte ^ 0xff, BUFFER_SIZE); in ether1_ramtest() 266 ether1_readbuffer (dev, buffer, 0, BUFFER_SIZE); in ether1_ramtest() 268 for (i = 0; i < BUFFER_SIZE; i++) { in ether1_ramtest() 292 printk (" - 0x%04X\n", BUFFER_SIZE); in ether1_ramtest()
|
/kernel/linux/linux-5.10/drivers/mmc/host/ |
H A D | android-goldfish.c | 50 #define BUFFER_SIZE 16384 macro 459 host->virt_base = dma_alloc_coherent(&pdev->dev, BUFFER_SIZE, in goldfish_mmc_probe() 485 mmc->max_req_size = BUFFER_SIZE; in goldfish_mmc_probe() 510 dma_free_coherent(&pdev->dev, BUFFER_SIZE, host->virt_base, in goldfish_mmc_probe() 529 dma_free_coherent(&pdev->dev, BUFFER_SIZE, host->virt_base, host->phys_base); in goldfish_mmc_remove()
|
/kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-ioread.c | 17 #define BUFFER_SIZE PAGE_ALIGN(0x4000) macro 47 cp->buffer_storage[idx] = kmalloc(BUFFER_SIZE,GFP_KERNEL); in pvr2_ioread_init() 219 BUFFER_SIZE); in pvr2_ioread_setup()
|
/kernel/linux/linux-6.6/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-ioread.c | 17 #define BUFFER_SIZE PAGE_ALIGN(0x4000) macro 47 cp->buffer_storage[idx] = kmalloc(BUFFER_SIZE,GFP_KERNEL); in pvr2_ioread_init() 219 BUFFER_SIZE); in pvr2_ioread_setup()
|
/kernel/liteos_a/shell/full/src/cmds/ |
H A D | date_shellcmd.c | 230 #define BUFFER_SIZE 26 /* The buffer size is equal to the size used by the asctime_r interface */ in OsViewFileTime() macro 234 CHAR buf[BUFFER_SIZE]; in OsViewFileTime()
|
/kernel/linux/linux-5.10/drivers/net/arcnet/ |
H A D | arc-rimi.c | 60 #define BUFFER_SIZE (512) macro 61 #define MIRROR_SIZE (BUFFER_SIZE * 4)
|
/kernel/linux/linux-6.6/drivers/net/arcnet/ |
H A D | arc-rimi.c | 60 #define BUFFER_SIZE (512) macro 61 #define MIRROR_SIZE (BUFFER_SIZE * 4)
|
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/s390x/uvdevice/ |
H A D | test_uvdevice.c | 20 #define BUFFER_SIZE 0x200 macro 24 uint8_t buffer[BUFFER_SIZE]; in FIXTURE()
|
/kernel/linux/linux-5.10/fs/cramfs/ |
H A D | inode.c | 172 #define BUFFER_SIZE (BLKS_PER_BUF*PAGE_SIZE) macro 174 static unsigned char read_buffers[READ_BUFFERS][BUFFER_SIZE]; 206 if (blk_offset > BUFFER_SIZE || in cramfs_blkdev_read() 207 blk_offset + len > BUFFER_SIZE) in cramfs_blkdev_read()
|
/kernel/linux/linux-6.6/fs/cramfs/ |
H A D | inode.c | 173 #define BUFFER_SIZE (BLKS_PER_BUF*PAGE_SIZE) macro 175 static unsigned char read_buffers[READ_BUFFERS][BUFFER_SIZE]; 208 if (blk_offset > BUFFER_SIZE || in cramfs_blkdev_read() 209 blk_offset + len > BUFFER_SIZE) in cramfs_blkdev_read()
|
/kernel/linux/linux-5.10/drivers/block/ |
H A D | ataflop.c | 350 #define BUFFER_SIZE (BufferSize[DriveType]) macro 781 FILL( TrackBuffer+BUFFER_SIZE-p, 0x4e ); in do_format() 1246 dma_cache_maintenance( paddr, BUFFER_SIZE, 1 ); in fd_writetrack() 1282 dma_wd.fdc_acces_seccount = BUFFER_SIZE/512; in fd_writetrack() 2016 DMABuffer = atari_stram_alloc(BUFFER_SIZE+512, "ataflop"); in atari_floppy_init()
|
/kernel/linux/linux-5.10/drivers/mmc/core/ |
H A D | mmc_test.c | 33 #define BUFFER_SIZE (PAGE_SIZE << BUFFER_ORDER) macro 147 u8 scratch[BUFFER_SIZE]; 642 for (i = 0; i < BUFFER_SIZE / 512; i++) { in __mmc_test_prepare() 671 for (i = 0; i < BUFFER_SIZE / 512; i++) { in mmc_test_cleanup() 956 memset(test->scratch, 0, BUFFER_SIZE); in mmc_test_transfer() 959 sg_copy_from_buffer(sg, sg_len, test->scratch, BUFFER_SIZE); in mmc_test_transfer() 982 if ((sectors * 512) > BUFFER_SIZE) in mmc_test_transfer() 1006 sg_copy_to_buffer(sg, sg_len, test->scratch, BUFFER_SIZE); in mmc_test_transfer() 3125 test->buffer = kzalloc(BUFFER_SIZE, GFP_KERNEL); in mtf_test_write()
|
/kernel/linux/linux-6.6/drivers/mmc/core/ |
H A D | mmc_test.c | 32 #define BUFFER_SIZE (PAGE_SIZE << BUFFER_ORDER) macro 146 u8 scratch[BUFFER_SIZE]; 641 for (i = 0; i < BUFFER_SIZE / 512; i++) { in __mmc_test_prepare() 940 memset(test->scratch, 0, BUFFER_SIZE); in mmc_test_transfer() 942 sg_copy_from_buffer(sg, sg_len, test->scratch, BUFFER_SIZE); in mmc_test_transfer() 964 if ((sectors * 512) > BUFFER_SIZE) in mmc_test_transfer() 987 sg_copy_to_buffer(sg, sg_len, test->scratch, BUFFER_SIZE); in mmc_test_transfer() 3104 test->buffer = kzalloc(BUFFER_SIZE, GFP_KERNEL);
|