Home
last modified time | relevance | path

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

12

/drivers/s390/block/
Ddasd_erp.c27 dasd_alloc_erp_request(char *magic, int cplength, int datasize, in dasd_alloc_erp_request() argument
36 BUG_ON( magic == NULL || 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()
Ddasd_fba.c335 int datasize; in dasd_fba_build_cp_discard() local
348 datasize = sizeof(struct DE_fba_data) + in dasd_fba_build_cp_discard()
351 cqr = dasd_smalloc_request(DASD_FBA_MAGIC, cplength, datasize, memdev, in dasd_fba_build_cp_discard()
442 int count, cidaw, cplength, datasize; in dasd_fba_build_cp_regular() local
475 datasize = sizeof(struct DE_fba_data) + sizeof(struct LO_fba_data) + in dasd_fba_build_cp_regular()
483 datasize += (count - 1)*sizeof(struct LO_fba_data); in dasd_fba_build_cp_regular()
486 cqr = dasd_smalloc_request(DASD_FBA_MAGIC, cplength, datasize, memdev, in dasd_fba_build_cp_regular()
Ddasd_eckd.c2214 int cplength, datasize; in dasd_eckd_analysis_ccw() local
2218 datasize = sizeof(struct DE_eckd_data) + 2*sizeof(struct LO_eckd_data); in dasd_eckd_analysis_ccw()
2219 cqr = dasd_smalloc_request(DASD_ECKD_MAGIC, cplength, datasize, device, in dasd_eckd_analysis_ccw()
2568 int cplength, datasize; in dasd_eckd_build_check() local
2588 datasize = sizeof(struct PFX_eckd_data); in dasd_eckd_build_check()
2591 datasize = sizeof(struct DE_eckd_data) + in dasd_eckd_build_check()
2596 cqr = dasd_fmalloc_request(DASD_ECKD_MAGIC, cplength, datasize, startdev); in dasd_eckd_build_check()
2654 int cplength, datasize; in dasd_eckd_build_format() local
2698 datasize = sizeof(struct PFX_eckd_data) + in dasd_eckd_build_format()
2702 datasize = sizeof(struct DE_eckd_data) + in dasd_eckd_build_format()
[all …]
/drivers/firmware/efi/test/
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()
/drivers/net/ethernet/cavium/liquidio/
Docteon_nic.c90 ndata->buf, ndata->datasize, in octnet_send_nic_data_pkt()
101 u32 uddsize = 0, datasize = 0; in octnic_alloc_ctrl_pkt_sc() local
105 datasize = OCTNET_CMD_SIZE + uddsize; in octnic_alloc_ctrl_pkt_sc()
109 octeon_alloc_soft_command(oct, datasize, rdatasize, 0); in octnic_alloc_ctrl_pkt_sc()
Drequest_manager.c542 u32 datasize, u32 reqtype) in octeon_send_command() argument
559 INCR_INSTRQUEUE_PKT_COUNT(oct, iq_no, bytes_sent, datasize); in octeon_send_command()
621 if (sc->datasize) in octeon_prepare_soft_command()
622 ih3->dlengsz = sc->datasize; in octeon_prepare_soft_command()
656 if (sc->datasize) { in octeon_prepare_soft_command()
657 ih2->dlengsz = sc->datasize; in octeon_prepare_soft_command()
856 u32 datasize, in octeon_alloc_soft_command() argument
869 WARN_ON((offset + datasize + rdatasize + ctxsize) > in octeon_alloc_soft_command()
906 if (datasize) { in octeon_alloc_soft_command()
909 sc->datasize = datasize; in octeon_alloc_soft_command()
[all …]
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()
Docteon_iq.h283 u32 datasize; member
333 u32 datasize, u32 rdatasize,
379 u32 datasize, u32 reqtype);
Dlio_vf_rep.c357 sc->datasize, DMA_TO_DEVICE); in lio_vf_rep_packet_sent_callback()
415 sc->datasize = skb->len; in lio_vf_rep_pkt_xmit()
430 sc->datasize, DMA_TO_DEVICE); in lio_vf_rep_pkt_xmit()
/drivers/mmc/host/
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 …]
Dmxcmmc.c137 unsigned int datasize; member
284 unsigned int datasize = nob * blksz; in mxcmci_setup_data() local
294 host->datasize = datasize; in mxcmci_setup_data()
467 data->bytes_xfered = host->datasize; in mxcmci_finish_data()
594 host->datasize = 0; in mxcmci_transfer_data()
601 host->datasize += sg->length; in mxcmci_transfer_data()
608 host->datasize += sg->length; in mxcmci_transfer_data()
/drivers/media/rc/
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()
Dmceusb.c551 int datasize = 0; in mceusb_cmd_datasize() local
556 datasize = 1; in mceusb_cmd_datasize()
561 datasize = 5; in mceusb_cmd_datasize()
564 datasize = 4; in mceusb_cmd_datasize()
567 datasize = 4; in mceusb_cmd_datasize()
573 datasize = 1; in mceusb_cmd_datasize()
584 datasize = 2; in mceusb_cmd_datasize()
589 datasize = 1; in mceusb_cmd_datasize()
593 return datasize; in mceusb_cmd_datasize()
/drivers/gpu/drm/msm/adreno/
Da6xx_gpu_state.c454 size_t datasize; in a6xx_get_dbgahb_cluster() local
479 datasize = regcount * A6XX_NUM_CONTEXTS * sizeof(u32); in a6xx_get_dbgahb_cluster()
481 if (WARN_ON(datasize > A6XX_CD_DATA_SIZE)) in a6xx_get_dbgahb_cluster()
489 datasize); in a6xx_get_dbgahb_cluster()
522 size_t datasize; in a6xx_get_cluster() local
550 datasize = regcount * A6XX_NUM_CONTEXTS * sizeof(u32); in a6xx_get_cluster()
552 if (WARN_ON(datasize > A6XX_CD_DATA_SIZE)) in a6xx_get_cluster()
560 datasize); in a6xx_get_cluster()
590 size_t datasize = block->size * A6XX_NUM_SHADER_BANKS * sizeof(u32); in a6xx_get_shader_block() local
593 if (WARN_ON(datasize > A6XX_CD_DATA_SIZE)) in a6xx_get_shader_block()
[all …]
/drivers/i2c/
Di2c-dev.c316 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()
/drivers/firmware/tegra/
Dbpmp-debugfs.c585 const size_t datasize = m->size; in debugfs_show() local
603 datavirt = dma_alloc_coherent(bpmp->dev, datasize, &dataphys, in debugfs_show()
613 err = mrq_debugfs_read(bpmp, namephys, len, dataphys, datasize, in debugfs_show()
619 dma_free_coherent(bpmp->dev, datasize, datavirt, dataphys); in debugfs_show()
636 const size_t datasize = count; in debugfs_store() local
654 datavirt = dma_alloc_coherent(bpmp->dev, datasize, &dataphys, in debugfs_store()
673 dma_free_coherent(bpmp->dev, datasize, datavirt, dataphys); in debugfs_store()
/drivers/firmware/efi/libstub/
Dtpm.c34 unsigned long datasize = 0; in efi_enable_reset_attack_mitigation() local
37 NULL, &datasize, NULL); in efi_enable_reset_attack_mitigation()
/drivers/media/radio/
Dradio-miropcm20.c152 static int rds_cmd(struct snd_miro_aci *aci, u8 cmd, u8 databuffer[], u8 datasize) in rds_cmd() argument
163 if (datasize == 0) in rds_cmd()
171 memset(databuffer, 0, datasize); in rds_cmd()
173 for (i = 0; i < 8 * datasize; i++) { in rds_cmd()
/drivers/usb/serial/
Dwhiteheat.c158 __u8 *data, __u8 datasize);
533 __u8 *data, __u8 datasize) in firm_send_command() argument
548 if (command_port->bulk_out_size < datasize + 1) in firm_send_command()
556 memcpy(&transfer_buffer[1], data, datasize); in firm_send_command()
557 command_port->write_urb->transfer_buffer_length = datasize + 1; in firm_send_command()
/drivers/s390/char/
Dtape_core.c674 tape_alloc_request(int cplength, int datasize) in tape_alloc_request() argument
678 BUG_ON(datasize > PAGE_SIZE || (cplength*sizeof(struct ccw1)) > PAGE_SIZE); in tape_alloc_request()
680 DBF_LH(6, "tape_alloc_request(%d, %d)\n", cplength, datasize); in tape_alloc_request()
698 if (datasize > 0) { in tape_alloc_request()
699 request->cpdata = kzalloc(datasize, GFP_KERNEL | GFP_DMA); in tape_alloc_request()
/drivers/media/dvb-frontends/drx39xyj/
Ddrxj.c535 u16 datasize,
554 u16 datasize,
1416 u16 datasize, in drxdap_fasi_read_block() argument
1435 ((datasize != 0) && (data == NULL)) || ((datasize & 1) == 1)) { in drxdap_fasi_read_block()
1447 u16 todo = (datasize < DRXDAP_MAX_RCHUNKSIZE ? in drxdap_fasi_read_block()
1448 datasize : DRXDAP_MAX_RCHUNKSIZE); in drxdap_fasi_read_block()
1494 datasize -= todo; in drxdap_fasi_read_block()
1495 } while (datasize && rc == 0); in drxdap_fasi_read_block()
1593 u16 datasize, in drxdap_fasi_write_block() argument
1613 ((datasize != 0) && (data == NULL)) || ((datasize & 1) == 1)) in drxdap_fasi_write_block()
[all …]
/drivers/firmware/efi/
Defivars.c263 unsigned long datasize = sizeof(var->Data); in efivar_show_raw() local
270 ret = efivar_entry_get(entry, &var->Attributes, &datasize, var->Data); in efivar_show_raw()
271 var->DataSize = datasize; in efivar_show_raw()
/drivers/net/ethernet/microsoft/mana/
Dmana_en.c1021 da = dma_map_page(dev, new_page, 0, rxq->datasize, in mana_process_rx_cqe()
1033 dma_unmap_page(dev, rxbuf_oob->buf_dma_addr, rxq->datasize, in mana_process_rx_cqe()
1315 dma_unmap_page(dev, rx_oob->buf_dma_addr, rxq->datasize, in mana_destroy_rxq()
1341 WARN_ON(rxq->datasize == 0 || rxq->datasize > PAGE_SIZE); in mana_alloc_rx_wqe()
1354 da = dma_map_page(dev, page, 0, rxq->datasize, DMA_FROM_DEVICE); in mana_alloc_rx_wqe()
1366 rx_oob->sgl[0].size = rxq->datasize; in mana_alloc_rx_wqe()
1426 rxq->datasize = ALIGN(MAX_FRAME_SIZE, 64); in mana_create_rxq()
/drivers/scsi/aacraid/
Dcommsup.c2283 u32 datasize) in aac_send_wellness_command() argument
2297 dma_buf = dma_alloc_coherent(&dev->pdev->dev, datasize, &addr, in aac_send_wellness_command()
2317 srbcmd->count = cpu_to_le32(datasize); in aac_send_wellness_command()
2322 memcpy(dma_buf, (char *)wellness_str, datasize); in aac_send_wellness_command()
2328 sg64->sg[0].count = cpu_to_le32(datasize); in aac_send_wellness_command()
2333 dma_free_coherent(&dev->pdev->dev, datasize, dma_buf, addr); in aac_send_wellness_command()
2360 u32 datasize = sizeof(wellness_str); in aac_send_safw_hostttime() local
2379 ret = aac_send_wellness_command(dev, wellness_str, datasize); in aac_send_safw_hostttime()
/drivers/net/ethernet/intel/ice/
Dice_xsk.c451 unsigned int datasize = xdp->data_end - xdp->data; in ice_construct_skb_zc() local
461 memcpy(__skb_put(skb, datasize), xdp->data, datasize); in ice_construct_skb_zc()

12