Home
last modified time | relevance | path

Searched refs:datasize (Results 1 – 25 of 52) sorted by relevance

123

/linux/lib/
H A Doid_registry.c26 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()
/linux/fs/efivarfs/
H A Dfile.c22 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()
/linux/drivers/s390/block/
H A Ddasd_erp.c22 dasd_alloc_erp_request(unsigned int magic, int cplength, int datasize, in dasd_alloc_erp_request() argument
31 BUG_ON(datasize > PAGE_SIZE || in dasd_alloc_erp_request()
37 if (datasize > 0) in dasd_alloc_erp_request()
38 size += datasize; in dasd_alloc_erp_request()
56 if (datasize > 0) { in dasd_alloc_erp_request()
58 memset(cqr->data, 0, datasize); in dasd_alloc_erp_request()
H A Ddasd_fba.c331 int datasize; in dasd_fba_build_cp_discard() local
344 datasize = sizeof(struct DE_fba_data) + in dasd_fba_build_cp_discard()
347 cqr = dasd_smalloc_request(DASD_FBA_MAGIC, cplength, datasize, memdev, in dasd_fba_build_cp_discard()
438 int count, cidaw, cplength, datasize; in dasd_fba_build_cp_regular() local
471 datasize = sizeof(struct DE_fba_data) + sizeof(struct LO_fba_data) + in dasd_fba_build_cp_regular()
479 datasize += (count - 1)*sizeof(struct LO_fba_data); in dasd_fba_build_cp_regular()
482 cqr = dasd_smalloc_request(DASD_FBA_MAGIC, cplength, datasize, memdev, in dasd_fba_build_cp_regular()
/linux/block/partitions/
H A Dmac.c38 unsigned secsize, datasize, partoffset; in mac_partition() local
56 datasize = round_down(secsize, 512); in mac_partition()
57 data = read_part_sector(state, datasize / 512, &sect); in mac_partition()
61 if (partoffset + sizeof(*part) > datasize) in mac_partition()
/linux/drivers/firmware/efi/test/
H A Defi_test.c143 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()
/linux/drivers/net/ethernet/cavium/liquidio/
H A Docteon_nic.c91 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 Docteon_nic.h79 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 Drequest_manager.c538 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 Docteon_iq.h283 u32 datasize; member
333 u32 datasize, u32 rdatasize,
379 u32 datasize, u32 reqtype);
/linux/Documentation/crypto/
H A Dapi-samples.rst18 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);
/linux/arch/x86/include/asm/
H A Dmicrocode.h38 unsigned int datasize; member
57 return hdr->datasize ? : DEFAULT_UCODE_DATASIZE; in intel_microcode_get_datasize()
/linux/drivers/gpu/drm/msm/adreno/
H A Da6xx_gpu_state.c553 size_t datasize; in a6xx_get_dbgahb_cluster() local
578 datasize = regcount * A6XX_NUM_CONTEXTS * sizeof(u32); in a6xx_get_dbgahb_cluster()
580 if (WARN_ON(datasize > A6XX_CD_DATA_SIZE)) in a6xx_get_dbgahb_cluster()
588 datasize); in a6xx_get_dbgahb_cluster()
599 size_t datasize; in a7xx_get_dbgahb_cluster() local
620 datasize = regcount * sizeof(u32); in a7xx_get_dbgahb_cluster()
622 if (WARN_ON(datasize > A6XX_CD_DATA_SIZE)) in a7xx_get_dbgahb_cluster()
630 datasize); in a7xx_get_dbgahb_cluster()
700 size_t datasize; in a6xx_get_cluster() local
738 datasize = regcount * A6XX_NUM_CONTEXTS * sizeof(u32); in a6xx_get_cluster()
[all …]
/linux/fs/jffs2/
H A Dsummary.c675 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 …]
/linux/net/sctp/
H A Doutput.c675 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()
/linux/include/linux/
H A Doid_registry.h151 extern enum OID look_up_OID(const void *data, size_t datasize);
152 extern int parse_OID(const void *data, size_t datasize, enum OID *oid);
/linux/drivers/mmc/host/
H A Dvub300.c318 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()
1126 if (vub300->datasize < vub300->fbs[fn]) { in send_command()
1138 (vub300->datasize >> 24) & 0xFF; in send_command()
1140 (vub300->datasize >> 16) & 0xFF; in send_command()
[all …]
/linux/fs/btrfs/
H A Dfile-item.h47 static inline u32 btrfs_file_extent_calc_inline_size(u32 datasize) in btrfs_file_extent_calc_inline_size() argument
49 return BTRFS_FILE_EXTENT_INLINE_DATA_START + datasize; in btrfs_file_extent_calc_inline_size()
/linux/drivers/media/rc/
H A Dfintek-cir.c237 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()
H A Dmceusb.c550 int datasize = 0; in mceusb_cmd_datasize() local
555 datasize = 1; in mceusb_cmd_datasize()
560 datasize = 5; in mceusb_cmd_datasize()
563 datasize = 4; in mceusb_cmd_datasize()
566 datasize = 4; in mceusb_cmd_datasize()
572 datasize = 1; in mceusb_cmd_datasize()
583 datasize = 2; in mceusb_cmd_datasize()
588 datasize = 1; in mceusb_cmd_datasize()
592 return datasize; in mceusb_cmd_datasize()
/linux/drivers/platform/x86/hp/hp-bioscfg/
H A Dbiosattr-interface.c21 u32 datasize; member
22 u8 data[] __counted_by(datasize);
145 args->datasize = insize; in hp_wmi_perform_query()
/linux/drivers/i2c/
H A Di2c-dev.c324 int datasize, res; in i2cdev_ioctl_smbus() local
368 datasize = sizeof(data->byte); in i2cdev_ioctl_smbus()
371 datasize = sizeof(data->word); in i2cdev_ioctl_smbus()
373 datasize = sizeof(data->block); in i2cdev_ioctl_smbus()
379 if (copy_from_user(&temp, data, datasize)) in i2cdev_ioctl_smbus()
394 if (copy_to_user(data, &temp, datasize)) in i2cdev_ioctl_smbus()
/linux/drivers/firmware/tegra/
H A Dbpmp-debugfs.c587 const size_t datasize = m->size; in debugfs_show() local
605 datavirt = dma_alloc_coherent(bpmp->dev, datasize, &dataphys, in debugfs_show()
615 err = mrq_debugfs_read(bpmp, namephys, len, dataphys, datasize, in debugfs_show()
621 dma_free_coherent(bpmp->dev, datasize, datavirt, dataphys); in debugfs_show()
638 const size_t datasize = count; in debugfs_store() local
656 datavirt = dma_alloc_coherent(bpmp->dev, datasize, &dataphys, in debugfs_store()
675 dma_free_coherent(bpmp->dev, datasize, datavirt, dataphys); in debugfs_store()
/linux/drivers/firmware/efi/libstub/
H A Dtpm.c34 unsigned long datasize = 0; in efi_enable_reset_attack_mitigation() local
37 NULL, &datasize, NULL); in efi_enable_reset_attack_mitigation()
/linux/drivers/usb/serial/
H A Dwhiteheat.c153 __u8 *data, __u8 datasize);
530 __u8 *data, __u8 datasize) in firm_send_command() argument
545 if (command_port->bulk_out_size < datasize + 1) in firm_send_command()
553 memcpy(&transfer_buffer[1], data, datasize); in firm_send_command()
554 command_port->write_urb->transfer_buffer_length = datasize + 1; in firm_send_command()

123