Home
last modified time | relevance | path

Searched refs:bufsiz (Results 1 – 14 of 14) sorted by relevance

/linux-6.12.1/drivers/char/tpm/
Dtpm-interface.c61 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()
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()
173 ret = tpm_try_transmit(chip, buf, bufsiz); in tpm_transmit()
Dtpm-dev-common.c25 u8 *buf, size_t bufsiz) in tpm_dev_transmit() argument
33 ret = tpm2_prepare_space(chip, space, buf, bufsiz); in tpm_dev_transmit()
47 len = tpm_transmit(chip, buf, bufsiz); in tpm_dev_transmit()
Dtpm2-space.c541 void *buf, size_t *bufsiz) in tpm2_commit_space() argument
549 rc = tpm2_map_response_header(chip, chip->last_cc, buf, *bufsiz); in tpm2_commit_space()
555 rc = tpm2_map_response_body(chip, chip->last_cc, buf, *bufsiz); in tpm2_commit_space()
567 *bufsiz = be32_to_cpu(header->length); in tpm2_commit_space()
Dtpm.h240 ssize_t tpm_transmit(struct tpm_chip *chip, u8 *buf, size_t bufsiz);
312 size_t *bufsiz);
/linux-6.12.1/arch/sh/include/asm/
Dplatform_early.h40 #define sh_early_platform_init_buffer(class_string, platdrv, buf, bufsiz) \ argument
44 .bufsize = bufsiz, \
54 #define sh_early_platform_init_buffer(class_string, platdrv, buf, bufsiz) \ argument
57 return bufsiz ? buf : NULL; \
/linux-6.12.1/arch/alpha/kernel/
Dosf_sys.c305 unsigned long bufsiz) in linux_to_osf_statfs() argument
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() argument
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() argument
350 error = linux_to_osf_statfs(&linux_stat, buffer, bufsiz); in SYSCALL_DEFINE3()
[all …]
/linux-6.12.1/drivers/input/
Dmousedev.c105 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 …]
/linux-6.12.1/drivers/spi/
Dspidev.c87 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()
608 spidev->tx_buffer = kmalloc(bufsiz, GFP_KERNEL); in spidev_open()
616 spidev->rx_buffer = kmalloc(bufsiz, GFP_KERNEL); in spidev_open()
/linux-6.12.1/fs/
Dstat.c525 char __user *buf, int bufsiz) in do_readlinkat() argument
532 if (bufsiz <= 0) in do_readlinkat()
551 error = vfs_readlink(path.dentry, buf, bufsiz); in do_readlinkat()
566 char __user *, buf, int, bufsiz) in SYSCALL_DEFINE4() argument
568 return do_readlinkat(dfd, pathname, buf, bufsiz); in SYSCALL_DEFINE4()
572 int, bufsiz) in SYSCALL_DEFINE3() argument
574 return do_readlinkat(AT_FDCWD, path, buf, bufsiz); in SYSCALL_DEFINE3()
/linux-6.12.1/kernel/locking/
Dlockdep_proc.c431 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()
/linux-6.12.1/fs/ecryptfs/
Dinode.c650 static char *ecryptfs_readlink_lower(struct dentry *dentry, size_t *bufsiz) in ecryptfs_readlink_lower() argument
662 rc = ecryptfs_decode_and_decrypt_filename(&buf, bufsiz, dentry->d_sb, in ecryptfs_readlink_lower()
/linux-6.12.1/include/linux/
Dsyscalls.h501 int bufsiz);
1163 char __user *buf, int bufsiz);
/linux-6.12.1/fs/ubifs/
Dlpt.c1659 int bufsiz = max_t(int, c->nnode_sz, c->pnode_sz); in ubifs_lpt_calc_hash() local
1676 buf = kmalloc(bufsiz, GFP_NOFS); in ubifs_lpt_calc_hash()
/linux-6.12.1/drivers/scsi/qla2xxx/
Dqla_mbx.c4953 void *buf, uint16_t bufsiz) in qla24xx_get_port_login_templ() argument
4972 mcp->mb[8] = bufsiz/4; in qla24xx_get_port_login_templ()
4986 for (i = 0; i < (bufsiz-4)/4; i++, bp++) in qla24xx_get_port_login_templ()