/openbmc/linux/lib/ |
H A D | oid_registry.c | 26 enum OID look_up_OID(const void *data, size_t datasize) in look_up_OID() argument 35 hash = datasize - 1; in look_up_OID() 37 for (i = 0; i < datasize; i++) in look_up_OID() 63 if (len > datasize) { in look_up_OID() 67 if (len < datasize) { in look_up_OID() 106 int parse_OID(const void *data, size_t datasize, enum OID *oid) in parse_OID() argument 111 if (datasize < 3 || v[0] != ASN1_OID || v[1] != datasize - 2) in parse_OID() 114 *oid = look_up_OID(data + 2, datasize - 2); in parse_OID() 130 int sprint_oid(const void *data, size_t datasize, char *buffer, size_t bufsize) in sprint_oid() argument 132 const unsigned char *v = data, *end = v + datasize; in sprint_oid()
|
/openbmc/linux/fs/efivarfs/ |
H A D | file.c | 22 unsigned long datasize = count - sizeof(attributes); in efivarfs_file_write() local 35 data = memdup_user(userbuf + sizeof(attributes), datasize); in efivarfs_file_write() 39 bytes = efivar_entry_set_get_size(var, attributes, &datasize, in efivarfs_file_write() 53 i_size_write(inode, datasize + sizeof(attributes)); in efivarfs_file_write() 70 unsigned long datasize = 0; in efivarfs_file_read() local 79 err = efivar_entry_size(var, &datasize); in efivarfs_file_read() 90 data = kmalloc(datasize + sizeof(attributes), GFP_KERNEL); in efivarfs_file_read() 95 size = efivar_entry_get(var, &attributes, &datasize, in efivarfs_file_read() 102 data, datasize + sizeof(attributes)); in efivarfs_file_read()
|
/openbmc/u-boot/tools/ |
H A D | envcrc.c | 76 unsigned int datasize = ENV_SIZE; in main() local 88 for (eoe = 0; eoe < datasize - 1; ++eoe) in main() 93 if (eoe < datasize - 1) in main() 94 memset(dataptr + eoe, pad, datasize - eoe); in main() 97 crc = crc32 (0, dataptr, datasize); in main() 115 if (fwrite(dataptr, 1, datasize, stdout) != datasize) in main() 120 (unsigned int) (dataptr - envptr) + datasize, in main()
|
H A D | mkenvimage.c | 75 unsigned int filesize = 0, envsize = 0, datasize = 0; in main() local 97 datasize = xstrtol(optarg); in main() 134 if (datasize == 0) { in main() 140 dataptr = malloc(datasize * sizeof(*dataptr)); in main() 143 datasize); in main() 151 envsize = datasize - (CRC_SIZE + redundant); in main() 305 if (write(bin_fd, dataptr, sizeof(*dataptr) * datasize) != in main() 306 sizeof(*dataptr) * datasize) { in main()
|
/openbmc/linux/drivers/s390/block/ |
H A D | dasd_erp.c | 27 dasd_alloc_erp_request(unsigned int magic, int cplength, int datasize, in dasd_alloc_erp_request() argument 36 BUG_ON(datasize > PAGE_SIZE || in dasd_alloc_erp_request() 42 if (datasize > 0) in dasd_alloc_erp_request() 43 size += datasize; in dasd_alloc_erp_request() 61 if (datasize > 0) { in dasd_alloc_erp_request() 63 memset(cqr->data, 0, datasize); in dasd_alloc_erp_request()
|
/openbmc/linux/block/partitions/ |
H A D | mac.c | 36 unsigned secsize, datasize, partoffset; in mac_partition() local 54 datasize = round_down(secsize, 512); in mac_partition() 55 data = read_part_sector(state, datasize / 512, §); in mac_partition() 59 if (partoffset + sizeof(*part) > datasize) in mac_partition()
|
/openbmc/linux/drivers/net/ethernet/cavium/liquidio/ |
H A D | octeon_nic.c | 91 ndata->buf, ndata->datasize, in octnet_send_nic_data_pkt() 103 u32 uddsize = 0, datasize = 0; in octnic_alloc_ctrl_pkt_sc() local 107 datasize = OCTNET_CMD_SIZE + uddsize; in octnic_alloc_ctrl_pkt_sc() 111 octeon_alloc_soft_command(oct, datasize, rdatasize, 0); in octnic_alloc_ctrl_pkt_sc()
|
H A D | octeon_nic.h | 79 u32 datasize; member 103 u32 datasize; member 151 ih2->dlengsz = setup->s.u.datasize; in octnet_prepare_pci_cmd_o2() 196 ih3->dlengsz = setup->s.u.datasize; in octnet_prepare_pci_cmd_o3()
|
H A D | request_manager.c | 538 u32 datasize, u32 reqtype) in octeon_send_command() argument 555 INCR_INSTRQUEUE_PKT_COUNT(oct, iq_no, bytes_sent, datasize); in octeon_send_command() 618 if (sc->datasize) in octeon_prepare_soft_command() 619 ih3->dlengsz = sc->datasize; in octeon_prepare_soft_command() 653 if (sc->datasize) { in octeon_prepare_soft_command() 654 ih2->dlengsz = sc->datasize; in octeon_prepare_soft_command() 859 u32 datasize, in octeon_alloc_soft_command() argument 872 WARN_ON((offset + datasize + rdatasize + ctxsize) > in octeon_alloc_soft_command() 909 if (datasize) { in octeon_alloc_soft_command() 912 sc->datasize = datasize; in octeon_alloc_soft_command() [all …]
|
H A D | octeon_iq.h | 283 u32 datasize; member 333 u32 datasize, u32 rdatasize, 379 u32 datasize, u32 reqtype);
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | microcode.h | 36 unsigned int datasize; member 54 return hdr->datasize ? : DEFAULT_UCODE_DATASIZE; in intel_microcode_get_datasize()
|
/openbmc/linux/drivers/firmware/efi/test/ |
H A D | efi_test.c | 143 unsigned long datasize = 0, prev_datasize, *dz; in efi_runtime_get_variable() local 157 get_user(datasize, getvariable.data_size)) in efi_runtime_get_variable() 173 dz = getvariable.data_size ? &datasize : NULL; in efi_runtime_get_variable() 176 data = kmalloc(datasize, GFP_KERNEL); in efi_runtime_get_variable() 183 prev_datasize = datasize; in efi_runtime_get_variable() 194 if (dz && put_user(datasize, getvariable.data_size)) { in efi_runtime_get_variable() 203 if (prev_datasize < datasize) { in efi_runtime_get_variable() 209 if (copy_to_user(getvariable.data, data, datasize)) { in efi_runtime_get_variable() 220 if (dz && put_user(datasize, getvariable.data_size)) in efi_runtime_get_variable()
|
/openbmc/pam-ipmi/src/pam_ipmisave/ |
H A D | pam_ipmisave.c | 57 size_t datasize; member 382 opwptext = malloc(opwmp->datasize + opwmp->padsize); in update_pass_special_file() 393 pwptextlen = opwmp->datasize + forwholen + towhatlen + in update_pass_special_file() 412 if (opwmp->datasize != 0) { in update_pass_special_file() 422 opwmp->datasize + opwmp->padsize, in update_pass_special_file() 427 opwmp->datasize + in update_pass_special_file() 444 opwptext[opwmp->datasize] = '\0'; in update_pass_special_file() 546 pwmp.datasize = writtensize; in update_pass_special_file()
|
/openbmc/u-boot/drivers/mmc/ |
H A D | mxcmmc.c | 115 unsigned int datasize; member 153 unsigned int datasize = nob * blksz; in mxcmci_setup_data() local 159 host->datasize = datasize; in mxcmci_setup_data() 348 host->datasize = 0; in mxcmci_transfer_data() 354 host->datasize += length; in mxcmci_transfer_data() 359 host->datasize += length; in mxcmci_transfer_data()
|
/openbmc/qemu/hw/core/ |
H A D | loader.c | 957 size_t datasize; member 1054 memcpy(data, rom->data, rom->datasize); in rom_set_mr() 1098 rom->datasize = rom->romsize; in rom_add_file() 1153 rom->datasize = len; in rom_add_blob() 1154 g_assert(rom->romsize >= rom->datasize); in rom_add_blob() 1155 rom->data = g_malloc0(rom->datasize); in rom_add_blob() 1196 rom->datasize = datasize; in rom_add_elf_program() 1250 memset(host + rom->datasize, 0, rom->romsize - rom->datasize); in rom_reset() 1533 l = rom->datasize; in rom_copy() 1543 if (rom->romsize > rom->datasize) { in rom_copy() [all …]
|
/openbmc/linux/Documentation/crypto/ |
H A D | api-samples.rst | 18 const size_t datasize = 512; /* data size in bytes */ 54 data = kmalloc(datasize, GFP_KERNEL); 59 get_random_bytes(data, datasize); 73 sg_init_one(&sg, data, datasize); 77 skcipher_request_set_crypt(req, &sg, &sg, datasize, iv);
|
/openbmc/linux/include/linux/ |
H A D | oid_registry.h | 147 extern enum OID look_up_OID(const void *data, size_t datasize); 148 extern int parse_OID(const void *data, size_t datasize, enum OID *oid);
|
/openbmc/openbmc/poky/meta/recipes-multimedia/libtiff/tiff/ |
H A D | CVE-2023-6277-At-image-reading-compare-data-size-of-some-tags-data.patch | 22 datasize = (*count) * typesize; 23 assert((tmsize_t)datasize > 0); 29 + if (datasize > filesize) 35 + direntry->tdir_tag, direntry->tdir_tag, datasize, 40 if (isMapped(tif) && datasize > (uint64_t)tif->tif_size)
|
/openbmc/linux/fs/btrfs/ |
H A D | file-item.h | 34 static inline u32 btrfs_file_extent_calc_inline_size(u32 datasize) in btrfs_file_extent_calc_inline_size() argument 36 return BTRFS_FILE_EXTENT_INLINE_DATA_START + datasize; in btrfs_file_extent_calc_inline_size()
|
/openbmc/linux/fs/jffs2/ |
H A D | summary.c | 675 uint32_t infosize, uint32_t datasize, int padsize) in jffs2_sum_write_data() argument 686 if (padsize + datasize > MAX_SUMMARY_SIZE) { in jffs2_sum_write_data() 691 datasize, padsize, jeb->offset); in jffs2_sum_write_data() 706 memset(c->summary->sum_buf, 0xff, datasize); in jffs2_sum_write_data() 809 isum.sum_crc = cpu_to_je32(crc32(0, c->summary->sum_buf, datasize)); in jffs2_sum_write_data() 815 vecs[1].iov_len = datasize; in jffs2_sum_write_data() 852 int datasize, infosize, padsize; in jffs2_sum_write_sumnode() local 868 datasize = c->summary->sum_size + sizeof(struct jffs2_sum_marker); in jffs2_sum_write_sumnode() 869 infosize = sizeof(struct jffs2_raw_summary) + datasize; in jffs2_sum_write_sumnode() 872 datasize += padsize; in jffs2_sum_write_sumnode() [all …]
|
/openbmc/linux/net/sctp/ |
H A D | output.c | 675 size_t datasize, rwnd, inflight, flight_size; in sctp_packet_can_append_data() local 697 datasize = sctp_data_size(chunk); in sctp_packet_can_append_data() 699 if (datasize > rwnd && inflight > 0) in sctp_packet_can_append_data() 760 size_t datasize = sctp_data_size(chunk); in sctp_packet_append_data() local 765 transport->flight_size += datasize; in sctp_packet_append_data() 768 asoc->outqueue.outstanding_bytes += datasize; in sctp_packet_append_data() 771 if (datasize < rwnd) in sctp_packet_append_data() 772 rwnd -= datasize; in sctp_packet_append_data()
|
/openbmc/linux/drivers/firmware/efi/libstub/ |
H A D | tpm.c | 34 unsigned long datasize = 0; in efi_enable_reset_attack_mitigation() local 37 NULL, &datasize, NULL); in efi_enable_reset_attack_mitigation()
|
/openbmc/linux/drivers/mmc/host/ |
H A D | vub300.c | 318 u32 datasize; member 1112 (vub300->datasize >> 8) & 0xFF; in send_command() 1114 (vub300->datasize >> 0) & 0xFF; in send_command() 1119 (vub300->datasize >> 24) & 0xFF; in send_command() 1121 (vub300->datasize >> 16) & 0xFF; in send_command() 1123 (vub300->datasize >> 8) & 0xFF; in send_command() 1125 (vub300->datasize >> 0) & 0xFF; in send_command() 1138 (vub300->datasize >> 24) & 0xFF; in send_command() 1142 (vub300->datasize >> 8) & 0xFF; in send_command() 1144 (vub300->datasize >> 0) & 0xFF; in send_command() [all …]
|
/openbmc/linux/drivers/media/rc/ |
H A D | fintek-cir.c | 237 int datasize = 0; in fintek_cmdsize() local 242 datasize = 1; in fintek_cmdsize() 246 datasize = 2; in fintek_cmdsize() 253 datasize = 2; in fintek_cmdsize() 258 datasize = 1; in fintek_cmdsize() 263 return datasize; in fintek_cmdsize()
|
/openbmc/linux/drivers/i2c/ |
H A D | i2c-dev.c | 316 int datasize, res; in i2cdev_ioctl_smbus() local 360 datasize = sizeof(data->byte); in i2cdev_ioctl_smbus() 363 datasize = sizeof(data->word); in i2cdev_ioctl_smbus() 365 datasize = sizeof(data->block); in i2cdev_ioctl_smbus() 371 if (copy_from_user(&temp, data, datasize)) in i2cdev_ioctl_smbus() 386 if (copy_to_user(data, &temp, datasize)) in i2cdev_ioctl_smbus()
|