/kernel/liteos_a/testsuites/unittest/container/smoke/ |
H A D | It_net_container_003.cpp | 53 auto bufsiz = sb.st_size + 1; in ReadlinkNet() local 55 bufsiz = PATH_MAX; in ReadlinkNet() 58 std::vector<char> buf(bufsiz); in ReadlinkNet() 59 auto nbytes = readlink(path.c_str(), buf.data(), bufsiz); in ReadlinkNet()
|
H A D | It_time_container_009.cpp | 52 auto bufsiz = sb.st_size + 1; in ReadlinkTime() local 54 bufsiz = PATH_MAX; in ReadlinkTime() 57 std::vector<char> buf(bufsiz); in ReadlinkTime() 58 auto nbytes = readlink(path.c_str(), buf.data(), bufsiz); in ReadlinkTime()
|
/kernel/linux/linux-5.10/drivers/char/tpm/ |
H A D | tpm-interface.c | 61 static ssize_t tpm_try_transmit(struct tpm_chip *chip, void *buf, size_t bufsiz) in tpm_try_transmit() argument 69 if (bufsiz < TPM_HEADER_SIZE) in tpm_try_transmit() 72 if (bufsiz > TPM_BUFSIZE) in tpm_try_transmit() 73 bufsiz = TPM_BUFSIZE; in tpm_try_transmit() 79 if (count > bufsiz) { in tpm_try_transmit() 81 "invalid count value %x %zx\n", count, bufsiz); in tpm_try_transmit() 126 len = chip->ops->recv(chip, buf, bufsiz); in tpm_try_transmit() 140 * @bufsiz: length of the TPM command buffer 153 ssize_t tpm_transmit(struct tpm_chip *chip, u8 *buf, size_t bufsiz) in tpm_transmit() argument 161 const size_t save_size = min(sizeof(save), bufsiz); in tpm_transmit() [all...] |
H A D | tpm-dev-common.c | 26 u8 *buf, size_t bufsiz) in tpm_dev_transmit() 31 ret = tpm2_prepare_space(chip, space, buf, bufsiz); in tpm_dev_transmit() 45 len = tpm_transmit(chip, buf, bufsiz); in tpm_dev_transmit() 25 tpm_dev_transmit(struct tpm_chip *chip, struct tpm_space *space, u8 *buf, size_t bufsiz) tpm_dev_transmit() argument
|
H A D | tpm.h | 166 ssize_t tpm_transmit(struct tpm_chip *chip, u8 *buf, size_t bufsiz); 236 size_t *bufsiz);
|
H A D | tpm2-space.c | 535 void *buf, size_t *bufsiz) in tpm2_commit_space() 543 rc = tpm2_map_response_header(chip, chip->last_cc, buf, *bufsiz); in tpm2_commit_space() 549 rc = tpm2_map_response_body(chip, chip->last_cc, buf, *bufsiz); in tpm2_commit_space() 561 *bufsiz = be32_to_cpu(header->length); in tpm2_commit_space() 534 tpm2_commit_space(struct tpm_chip *chip, struct tpm_space *space, void *buf, size_t *bufsiz) tpm2_commit_space() argument
|
/kernel/linux/linux-6.6/drivers/char/tpm/ |
H A D | tpm-interface.c | 61 static ssize_t tpm_try_transmit(struct tpm_chip *chip, void *buf, size_t bufsiz) in tpm_try_transmit() argument 69 if (bufsiz < TPM_HEADER_SIZE) in tpm_try_transmit() 72 if (bufsiz > TPM_BUFSIZE) in tpm_try_transmit() 73 bufsiz = TPM_BUFSIZE; in tpm_try_transmit() 79 if (count > bufsiz) { in tpm_try_transmit() 81 "invalid count value %x %zx\n", count, bufsiz); in tpm_try_transmit() 126 len = chip->ops->recv(chip, buf, bufsiz); in tpm_try_transmit() 140 * @bufsiz: length of the TPM command buffer 153 ssize_t tpm_transmit(struct tpm_chip *chip, u8 *buf, size_t bufsiz) in tpm_transmit() argument 161 const size_t save_size = min(sizeof(save), bufsiz); in tpm_transmit() [all...] |
H A D | tpm-dev-common.c | 25 u8 *buf, size_t bufsiz) in tpm_dev_transmit() 30 ret = tpm2_prepare_space(chip, space, buf, bufsiz); in tpm_dev_transmit() 44 len = tpm_transmit(chip, buf, bufsiz); in tpm_dev_transmit() 24 tpm_dev_transmit(struct tpm_chip *chip, struct tpm_space *space, u8 *buf, size_t bufsiz) tpm_dev_transmit() argument
|
H A D | tpm2-space.c | 535 void *buf, size_t *bufsiz) in tpm2_commit_space() 543 rc = tpm2_map_response_header(chip, chip->last_cc, buf, *bufsiz); in tpm2_commit_space() 549 rc = tpm2_map_response_body(chip, chip->last_cc, buf, *bufsiz); in tpm2_commit_space() 561 *bufsiz = be32_to_cpu(header->length); in tpm2_commit_space() 534 tpm2_commit_space(struct tpm_chip *chip, struct tpm_space *space, void *buf, size_t *bufsiz) tpm2_commit_space() argument
|
H A D | tpm.h | 240 ssize_t tpm_transmit(struct tpm_chip *chip, u8 *buf, size_t bufsiz); 312 size_t *bufsiz);
|
/kernel/linux/linux-5.10/arch/sh/include/asm/ |
H A D | platform_early.h | 40 #define sh_early_platform_init_buffer(class_string, platdrv, buf, bufsiz) \ 44 .bufsize = bufsiz, \ 54 #define sh_early_platform_init_buffer(class_string, platdrv, buf, bufsiz) \ 57 return bufsiz ? buf : NULL; \
|
/kernel/linux/linux-6.6/arch/sh/include/asm/ |
H A D | platform_early.h | 40 #define sh_early_platform_init_buffer(class_string, platdrv, buf, bufsiz) \ 44 .bufsize = bufsiz, \ 54 #define sh_early_platform_init_buffer(class_string, platdrv, buf, bufsiz) \ 57 return bufsiz ? buf : NULL; \
|
/kernel/linux/linux-5.10/drivers/input/ |
H A D | mousedev.c | 105 unsigned char ready, buffer, bufsiz; member 594 client->bufsiz = 4; in mousedev_packet() 605 client->bufsiz = 4; in mousedev_packet() 615 client->bufsiz = 3; in mousedev_packet() 637 client->bufsiz++; /* account for leading ACK */ in mousedev_generate_response() 652 client->bufsiz = 2; in mousedev_generate_response() 657 client->bufsiz = 4; in mousedev_generate_response() 664 client->bufsiz = 3; in mousedev_generate_response() 668 client->bufsiz = 1; in mousedev_generate_response() 671 client->buffer = client->bufsiz; in mousedev_generate_response() [all...] |
/kernel/linux/linux-6.6/drivers/input/ |
H A D | mousedev.c | 105 unsigned char ready, buffer, bufsiz; member 594 client->bufsiz = 4; in mousedev_packet() 605 client->bufsiz = 4; in mousedev_packet() 615 client->bufsiz = 3; in mousedev_packet() 637 client->bufsiz++; /* account for leading ACK */ in mousedev_generate_response() 652 client->bufsiz = 2; in mousedev_generate_response() 657 client->bufsiz = 4; in mousedev_generate_response() 664 client->bufsiz = 3; in mousedev_generate_response() 668 client->bufsiz = 1; in mousedev_generate_response() 671 client->buffer = client->bufsiz; in mousedev_generate_response() [all...] |
/kernel/linux/linux-5.10/drivers/spi/ |
H A D | spidev.c | 85 static unsigned bufsiz = 4096; variable 86 module_param(bufsiz, uint, S_IRUGO); 87 MODULE_PARM_DESC(bufsiz, "data bytes in biggest supported SPI message"); 152 if (count > bufsiz) in spidev_read() 183 if (count > bufsiz) in spidev_write() 248 if (rx_total > bufsiz) { in spidev_message() 258 if (tx_total > bufsiz) { in spidev_message() 593 spidev->tx_buffer = kmalloc(bufsiz, GFP_KERNEL); in spidev_open() 601 spidev->rx_buffer = kmalloc(bufsiz, GFP_KERNEL); in spidev_open()
|
/kernel/linux/linux-5.10/arch/alpha/kernel/ |
H A D | osf_sys.c | 304 unsigned long bufsiz) in linux_to_osf_statfs() 318 if (bufsiz > sizeof(tmp_stat)) in linux_to_osf_statfs() 319 bufsiz = sizeof(tmp_stat); in linux_to_osf_statfs() 320 return copy_to_user(osf_stat, &tmp_stat, bufsiz) ? -EFAULT : 0; in linux_to_osf_statfs() 325 unsigned long bufsiz) in linux_to_osf_statfs64() 338 if (bufsiz > sizeof(tmp_stat)) in linux_to_osf_statfs64() 339 bufsiz = sizeof(tmp_stat); in linux_to_osf_statfs64() 340 return copy_to_user(osf_stat, &tmp_stat, bufsiz) ? -EFAULT : 0; in linux_to_osf_statfs64() 344 struct osf_statfs __user *, buffer, unsigned long, bufsiz) in SYSCALL_DEFINE3() 349 error = linux_to_osf_statfs(&linux_stat, buffer, bufsiz); in SYSCALL_DEFINE3() 303 linux_to_osf_statfs(struct kstatfs *linux_stat, struct osf_statfs __user *osf_stat, unsigned long bufsiz) linux_to_osf_statfs() argument 324 linux_to_osf_statfs64(struct kstatfs *linux_stat, struct osf_statfs64 __user *osf_stat, unsigned long bufsiz) linux_to_osf_statfs64() argument [all...] |
/kernel/linux/linux-6.6/arch/alpha/kernel/ |
H A D | osf_sys.c | 305 unsigned long bufsiz) in linux_to_osf_statfs() 319 if (bufsiz > sizeof(tmp_stat)) in linux_to_osf_statfs() 320 bufsiz = sizeof(tmp_stat); in linux_to_osf_statfs() 321 return copy_to_user(osf_stat, &tmp_stat, bufsiz) ? -EFAULT : 0; in linux_to_osf_statfs() 326 unsigned long bufsiz) in linux_to_osf_statfs64() 339 if (bufsiz > sizeof(tmp_stat)) in linux_to_osf_statfs64() 340 bufsiz = sizeof(tmp_stat); in linux_to_osf_statfs64() 341 return copy_to_user(osf_stat, &tmp_stat, bufsiz) ? -EFAULT : 0; in linux_to_osf_statfs64() 345 struct osf_statfs __user *, buffer, unsigned long, bufsiz) in SYSCALL_DEFINE3() 350 error = linux_to_osf_statfs(&linux_stat, buffer, bufsiz); in SYSCALL_DEFINE3() 304 linux_to_osf_statfs(struct kstatfs *linux_stat, struct osf_statfs __user *osf_stat, unsigned long bufsiz) linux_to_osf_statfs() argument 325 linux_to_osf_statfs64(struct kstatfs *linux_stat, struct osf_statfs64 __user *osf_stat, unsigned long bufsiz) linux_to_osf_statfs64() argument [all...] |
/kernel/linux/linux-6.6/drivers/spi/ |
H A D | spidev.c | 87 static unsigned bufsiz = 4096; variable 88 module_param(bufsiz, uint, S_IRUGO); 89 MODULE_PARM_DESC(bufsiz, "data bytes in biggest supported SPI message"); 163 if (count > bufsiz) in spidev_read() 194 if (count > bufsiz) in spidev_write() 259 if (rx_total > bufsiz) { in spidev_message() 269 if (tx_total > bufsiz) { in spidev_message() 614 spidev->tx_buffer = kmalloc(bufsiz, GFP_KERNEL); in spidev_open() 622 spidev->rx_buffer = kmalloc(bufsiz, GFP_KERNEL); in spidev_open()
|
/kernel/linux/linux-5.10/fs/ |
H A D | stat.c | 403 char __user *buf, int bufsiz) in do_readlinkat() 410 if (bufsiz <= 0) in do_readlinkat() 426 error = vfs_readlink(path.dentry, buf, bufsiz); in do_readlinkat() 439 char __user *, buf, int, bufsiz) in SYSCALL_DEFINE4() 441 return do_readlinkat(dfd, pathname, buf, bufsiz); in SYSCALL_DEFINE4() 445 int, bufsiz) in SYSCALL_DEFINE3() 447 return do_readlinkat(AT_FDCWD, path, buf, bufsiz); in SYSCALL_DEFINE3() 402 do_readlinkat(int dfd, const char __user *pathname, char __user *buf, int bufsiz) do_readlinkat() argument
|
/kernel/linux/linux-6.6/fs/ |
H A D | stat.c | 483 char __user *buf, int bufsiz) in do_readlinkat() 490 if (bufsiz <= 0) in do_readlinkat() 506 error = vfs_readlink(path.dentry, buf, bufsiz); in do_readlinkat() 519 char __user *, buf, int, bufsiz) in SYSCALL_DEFINE4() 521 return do_readlinkat(dfd, pathname, buf, bufsiz); in SYSCALL_DEFINE4() 525 int, bufsiz) in SYSCALL_DEFINE3() 527 return do_readlinkat(AT_FDCWD, path, buf, bufsiz); in SYSCALL_DEFINE3() 482 do_readlinkat(int dfd, const char __user *pathname, char __user *buf, int bufsiz) do_readlinkat() argument
|
/kernel/linux/linux-5.10/kernel/locking/ |
H A D | lockdep_proc.c | 429 static void snprint_time(char *buf, size_t bufsiz, s64 nr) in snprint_time() argument 436 snprintf(buf, bufsiz, "%lld.%02d", (long long)div, (int)rem/10); in snprint_time()
|
/kernel/linux/linux-6.6/kernel/locking/ |
H A D | lockdep_proc.c | 431 static void snprint_time(char *buf, size_t bufsiz, s64 nr) in snprint_time() argument 438 snprintf(buf, bufsiz, "%lld.%02d", (long long)div, (int)rem/10); in snprint_time()
|
/kernel/linux/linux-5.10/fs/ecryptfs/ |
H A D | inode.c | 647 static char *ecryptfs_readlink_lower(struct dentry *dentry, size_t *bufsiz) in ecryptfs_readlink_lower() argument 659 rc = ecryptfs_decode_and_decrypt_filename(&buf, bufsiz, dentry->d_sb, in ecryptfs_readlink_lower()
|
/kernel/linux/linux-6.6/fs/ecryptfs/ |
H A D | inode.c | 648 static char *ecryptfs_readlink_lower(struct dentry *dentry, size_t *bufsiz) in ecryptfs_readlink_lower() argument 660 rc = ecryptfs_decode_and_decrypt_filename(&buf, bufsiz, dentry->d_sb, in ecryptfs_readlink_lower()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | syscalls.h | 542 int bufsiz); 1224 char __user *buf, int bufsiz);
|