| /OK3568_Linux_fs/kernel/drivers/scsi/aacraid/ |
| H A D | commctrl.c | 495 u32 sg_count[HBA_MAX_SG_EMBEDDED]; in aac_send_raw_srb() local 656 sg_count[i] = (actual_fibsize64 == fibsize) ? in aac_send_raw_srb() 658 if (sg_count[i] > in aac_send_raw_srb() 661 i, sg_count[i], in aac_send_raw_srb() 667 p = kmalloc(sg_count[i], GFP_KERNEL); in aac_send_raw_srb() 686 sg_count[i])) { in aac_send_raw_srb() 691 addr = dma_map_single(&dev->pdev->dev, p, sg_count[i], in aac_send_raw_srb() 696 hbacmd->sge[i].len = cpu_to_le32(sg_count[i]); in aac_send_raw_srb() 698 byte_count += sg_count[i]; in aac_send_raw_srb() 722 sg_count[i] = upsg->sg[i].count; in aac_send_raw_srb() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/spi/ |
| H A D | spi-mxs.c | 172 int sg_count; in mxs_spi_txrx_dma() local 200 for (sg_count = 0; sg_count < sgs; sg_count++) { in mxs_spi_txrx_dma() 208 if ((sg_count + 1 == sgs) && (flags & TXRX_DEASSERT_CS)) in mxs_spi_txrx_dma() 216 dma_xfer[sg_count].pio[0] = ctrl0; in mxs_spi_txrx_dma() 217 dma_xfer[sg_count].pio[3] = min; in mxs_spi_txrx_dma() 226 sg_init_table(&dma_xfer[sg_count].sg, 1); in mxs_spi_txrx_dma() 227 sg_set_page(&dma_xfer[sg_count].sg, vm_page, in mxs_spi_txrx_dma() 230 sg_init_one(&dma_xfer[sg_count].sg, buf, min); in mxs_spi_txrx_dma() 233 ret = dma_map_sg(ssp->dev, &dma_xfer[sg_count].sg, 1, in mxs_spi_txrx_dma() 241 (struct scatterlist *)dma_xfer[sg_count].pio, in mxs_spi_txrx_dma() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/firmware/efi/ |
| H A D | capsule.c | 219 unsigned int count, sg_count; in efi_capsule_update() local 230 sg_count = sg_pages_num(count); in efi_capsule_update() 232 sg_pages = kcalloc(sg_count, sizeof(*sg_pages), GFP_KERNEL); in efi_capsule_update() 236 for (i = 0; i < sg_count; i++) { in efi_capsule_update() 244 for (i = 0; i < sg_count; i++) { in efi_capsule_update() 263 if (i + 1 == sg_count) in efi_capsule_update() 276 for (i = 0; rv && i < sg_count; i++) { in efi_capsule_update()
|
| /OK3568_Linux_fs/kernel/drivers/crypto/ |
| H A D | talitos.c | 1093 static int sg_to_link_tbl_offset(struct scatterlist *sg, int sg_count, in sg_to_link_tbl_offset() argument 1097 int n_sg = elen ? sg_count + 1 : sg_count; in sg_to_link_tbl_offset() 1145 struct talitos_ptr *ptr, int sg_count, in talitos_sg_map_ext() argument 1158 if (sg_count == 1 && !force) { in talitos_sg_map_ext() 1160 return sg_count; in talitos_sg_map_ext() 1164 return sg_count; in talitos_sg_map_ext() 1166 sg_count = sg_to_link_tbl_offset(src, sg_count, offset, len, elen, in talitos_sg_map_ext() 1168 if (sg_count == 1 && !force) { in talitos_sg_map_ext() 1171 return sg_count; in talitos_sg_map_ext() 1177 return sg_count; in talitos_sg_map_ext() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/mmc/host/ |
| H A D | jz4740_mmc.c | 287 int sg_count; in jz4740_mmc_prepare_dma_data() local 290 return data->sg_count; in jz4740_mmc_prepare_dma_data() 292 sg_count = dma_map_sg(chan->device->dev, in jz4740_mmc_prepare_dma_data() 297 if (sg_count <= 0) { in jz4740_mmc_prepare_dma_data() 303 data->sg_count = sg_count; in jz4740_mmc_prepare_dma_data() 306 return data->sg_count; in jz4740_mmc_prepare_dma_data() 320 int sg_count; in jz4740_mmc_start_dma_transfer() local 330 sg_count = jz4740_mmc_prepare_dma_data(host, data, COOKIE_MAPPED); in jz4740_mmc_start_dma_transfer() 331 if (sg_count < 0) in jz4740_mmc_start_dma_transfer() 332 return sg_count; in jz4740_mmc_start_dma_transfer() [all …]
|
| H A D | alcor.c | 58 int sg_count; member 127 if (!host->sg_count) in alcor_data_set_dma() 145 host->sg_count--; in alcor_data_set_dma() 169 alcor_write32(priv, data->sg_count * 0x1000, in alcor_trigger_data_transfer() 252 host->sg_count = data->sg_count; in alcor_prepare_data() 254 host->sg_count, host->blocks); in alcor_prepare_data() 503 if (!host->sg_count) in alcor_data_irq_done() 543 (host->dma_on && !host->sg_count)) in alcor_data_irq_thread() 822 data->sg_count = sg_len; in alcor_pre_req()
|
| H A D | cqhci-core.c | 454 int sg_count; in cqhci_dma_map() local 460 sg_count = dma_map_sg(mmc_dev(host), data->sg, in cqhci_dma_map() 464 if (!sg_count) { in cqhci_dma_map() 469 return sg_count; in cqhci_dma_map() 498 int i, sg_count, len; in cqhci_prep_tran_desc() local 505 sg_count = cqhci_dma_map(mrq->host, mrq); in cqhci_prep_tran_desc() 506 if (sg_count < 0) { in cqhci_prep_tran_desc() 508 mmc_hostname(mrq->host), __func__, sg_count); in cqhci_prep_tran_desc() 509 return sg_count; in cqhci_prep_tran_desc() 514 for_each_sg(data->sg, sg, sg_count, i) { in cqhci_prep_tran_desc() [all …]
|
| H A D | rtsx_pci_sdmmc.c | 41 int sg_count; member 172 host->sg_count = count; in sd_pre_dma_transfer() 472 err = rtsx_pci_dma_transfer(pcr, data->sg, host->sg_count, 1, 10000); in sd_read_long_data() 530 err = rtsx_pci_dma_transfer(pcr, data->sg, host->sg_count, 0, 10000); in sd_write_long_data() 556 if (host->sg_count < 0) { in sd_rw_multi() 557 data->error = host->sg_count; in sd_rw_multi() 559 __func__, host->sg_count); in sd_rw_multi()
|
| /OK3568_Linux_fs/u-boot/drivers/ata/ |
| H A D | ahci.c | 502 u32 sg_count; in ahci_fill_sg() local 505 sg_count = ((buf_len - 1) / MAX_DATA_BYTE_COUNT) + 1; in ahci_fill_sg() 506 if (sg_count > AHCI_MAX_SG) { in ahci_fill_sg() 511 for (i = 0; i < sg_count; i++) { in ahci_fill_sg() 529 return sg_count; in ahci_fill_sg() 642 int sg_count; in ahci_device_data_io() local 659 sg_count = ahci_fill_sg(uc_priv, port, buf, buf_len); in ahci_device_data_io() 660 opts = (fis_len >> 2) | (sg_count << 16) | (is_write << 6); in ahci_device_data_io()
|
| H A D | dwc_ahsata.c | 327 u32 sg_count, max_bytes; in ahci_fill_sg() local 331 sg_count = ((buf_len - 1) / max_bytes) + 1; in ahci_fill_sg() 332 if (sg_count > AHCI_MAX_SG) { in ahci_fill_sg() 337 for (i = 0; i < sg_count; i++) { in ahci_fill_sg() 349 return sg_count; in ahci_fill_sg() 376 int sg_count = 0, cmd_slot = 0; in ahci_exec_ata_cmd() local 393 sg_count = ahci_fill_sg(uc_priv, port, buf, buf_len); in ahci_exec_ata_cmd() 394 opts = (sizeof(struct sata_fis_h2d) >> 2) | (sg_count << 16); in ahci_exec_ata_cmd()
|
| /OK3568_Linux_fs/kernel/drivers/scsi/arm/ |
| H A D | scsi.h | 98 unsigned i, sg_count = scsi_sg_count(SCpnt); in init_SCp() local 100 scsi_for_each_sg(SCpnt, sg, sg_count, i) in init_SCp()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_indep_power/ |
| H A D | bcmsdh_sdmmc.c | 1151 uint32 sg_count; in sdioh_request_packet_chain() local 1177 sg_count = 0; in sdioh_request_packet_chain() 1181 sg_count = 0; in sdioh_request_packet_chain() 1205 if (sg_count >= ARRAYSIZE(sd->sg_list)) { in sdioh_request_packet_chain() 1206 sd_err(("%s: sg list entries exceed limit %d\n", __FUNCTION__, sg_count)); in sdioh_request_packet_chain() 1220 sg_set_buf(&sd->sg_list[sg_count++], pdata, sg_data_size); in sdioh_request_packet_chain() 1237 mmc_dat.sg_len = sg_count; in sdioh_request_packet_chain() 1312 pnext, sg_count, addr, pkt_len, err_ret)); in sdioh_request_packet_chain() 1317 pnext, sg_count, addr, pkt_len)); in sdioh_request_packet_chain() 1321 sg_count ++; in sdioh_request_packet_chain()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/ |
| H A D | bcmsdh_sdmmc.c | 1267 uint32 sg_count; in sdioh_request_packet_chain() local 1293 sg_count = 0; in sdioh_request_packet_chain() 1297 sg_count = 0; in sdioh_request_packet_chain() 1321 if (sg_count >= ARRAYSIZE(sd->sg_list)) { in sdioh_request_packet_chain() 1324 __FUNCTION__, sg_count, (size_t)ARRAYSIZE(sd->sg_list), blk_size)); in sdioh_request_packet_chain() 1339 sg_set_buf(&sd->sg_list[sg_count++], pdata, sg_data_size); in sdioh_request_packet_chain() 1356 mmc_dat.sg_len = sg_count; in sdioh_request_packet_chain() 1436 pnext, sg_count, addr, pkt_len, err_ret)); in sdioh_request_packet_chain() 1441 pnext, sg_count, addr, pkt_len)); in sdioh_request_packet_chain() 1445 sg_count ++; in sdioh_request_packet_chain()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/ |
| H A D | bcmsdh_sdmmc.c | 1241 uint32 sg_count; in sdioh_request_packet_chain() local 1267 sg_count = 0; in sdioh_request_packet_chain() 1271 sg_count = 0; in sdioh_request_packet_chain() 1295 if (sg_count >= ARRAYSIZE(sd->sg_list)) { in sdioh_request_packet_chain() 1298 __FUNCTION__, sg_count, (size_t)ARRAYSIZE(sd->sg_list), blk_size)); in sdioh_request_packet_chain() 1313 sg_set_buf(&sd->sg_list[sg_count++], pdata, sg_data_size); in sdioh_request_packet_chain() 1330 mmc_dat.sg_len = sg_count; in sdioh_request_packet_chain() 1405 pnext, sg_count, addr, pkt_len, err_ret)); in sdioh_request_packet_chain() 1410 pnext, sg_count, addr, pkt_len)); in sdioh_request_packet_chain() 1414 sg_count ++; in sdioh_request_packet_chain()
|
| /OK3568_Linux_fs/kernel/drivers/scsi/ |
| H A D | qlogicpti.c | 906 int sg_count; in load_cmd() local 909 sg_count = dma_map_sg(&qpti->op->dev, sg, in load_cmd() 914 cmd->segment_cnt = sg_count; in load_cmd() 917 n = sg_count; in load_cmd() 924 sg_count -= 4; in load_cmd() 926 while (sg_count > 0) { in load_cmd() 941 n = sg_count; in load_cmd() 948 sg_count -= n; in load_cmd()
|
| H A D | aha1542.c | 401 int mbo, sg_count; in aha1542_queuecommand() local 423 sg_count = scsi_dma_map(cmd); in aha1542_queuecommand() 424 if (sg_count) { in aha1542_queuecommand() 425 size_t len = sg_count * sizeof(struct chain); in aha1542_queuecommand() 484 scsi_for_each_sg(cmd, sg, sg_count, i) { in aha1542_queuecommand() 488 any2scsi(ccb[mbo].datalen, sg_count * sizeof(struct chain)); in aha1542_queuecommand()
|
| H A D | stex.c | 198 __le16 sg_count; member 301 int sg_count; member 440 ccb->sg_count = nseg; in stex_map_sg() 441 dst->sg_count = cpu_to_le16((u16)nseg); in stex_map_sg() 472 ccb->sg_count = nseg; in stex_ss_map_sg() 473 dst->sg_count = cpu_to_le16((u16)nseg); in stex_ss_map_sg() 549 addr += (hba->ccb[tag].sg_count+4)/11; in stex_ss_send_cmd() 720 hba->ccb[tag].sg_count = 0; in stex_queuecommand_lck() 1897 hba->ccb[tag].sg_count = 0; in stex_hba_stop()
|
| H A D | ips.h | 412 uint8_t sg_count; member 621 uint8_t sg_count; member 636 uint16_t sg_count; member 1087 int sg_count; member
|
| /OK3568_Linux_fs/kernel/drivers/scsi/fnic/ |
| H A D | fnic_scsi.c | 321 int sg_count) in fnic_queue_wq_copy_desc() argument 334 if (sg_count) { in fnic_queue_wq_copy_desc() 337 for_each_sg(scsi_sglist(sc), sg, sg_count, i) { in fnic_queue_wq_copy_desc() 346 sizeof(io_req->sgl_list[0]) * sg_count, in fnic_queue_wq_copy_desc() 360 sizeof(io_req->sgl_list[0]) * sg_count, in fnic_queue_wq_copy_desc() 433 int sg_count = 0; in fnic_queuecommand_lck() local 511 sg_count = scsi_dma_map(sc); in fnic_queuecommand_lck() 512 if (sg_count < 0) { in fnic_queuecommand_lck() 515 sg_count, CMD_STATE(sc)); in fnic_queuecommand_lck() 521 io_req->sgl_cnt = sg_count; in fnic_queuecommand_lck() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/crypto/ccp/ |
| H A D | ccp-crypto-aes-cmac.c | 64 unsigned int need_pad, sg_count; in ccp_do_cmac_update() local 107 sg_count = (nbytes) ? sg_nents(req->src) + 2 : 2; in ccp_do_cmac_update() 110 ret = sg_alloc_table(&rctx->data_sg, sg_count, gfp); in ccp_do_cmac_update()
|
| H A D | ccp-crypto-sha.c | 66 unsigned int sg_count; in ccp_do_sha_update() local 103 sg_count = sg_nents(req->src) + 1; in ccp_do_sha_update() 104 ret = sg_alloc_table(&rctx->data_sg, sg_count, gfp); in ccp_do_sha_update()
|
| /OK3568_Linux_fs/kernel/sound/soc/intel/atom/ |
| H A D | sst-mfld-dsp.h | 376 __u16 sg_count; member 402 u8 sg_count; member
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/ |
| H A D | bcmsdh_sdmmc.c | 1047 uint32 sg_count; in sdioh_request_packet_chain() local 1065 sg_count = 0; in sdioh_request_packet_chain() 1089 if (sg_count >= ARRAYSIZE(sd->sg_list)) { in sdioh_request_packet_chain() 1092 __FUNCTION__, sg_count, ARRAYSIZE(sd->sg_list), blk_size)); in sdioh_request_packet_chain() 1107 sg_set_buf(&sd->sg_list[sg_count++], pdata, sg_data_size); in sdioh_request_packet_chain() 1124 mmc_dat.sg_len = sg_count; in sdioh_request_packet_chain()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/infineon/ |
| H A D | bcmsdh_sdmmc.c | 1063 uint32 sg_count; in sdioh_request_packet_chain() local 1081 sg_count = 0; in sdioh_request_packet_chain() 1105 if (sg_count >= ARRAYSIZE(sd->sg_list)) { in sdioh_request_packet_chain() 1108 __FUNCTION__, sg_count, ARRAYSIZE(sd->sg_list), blk_size)); in sdioh_request_packet_chain() 1123 sg_set_buf(&sd->sg_list[sg_count++], pdata, sg_data_size); in sdioh_request_packet_chain() 1140 mmc_dat.sg_len = sg_count; in sdioh_request_packet_chain()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/ |
| H A D | bcmsdh_sdmmc.c | 1044 uint32 sg_count; in sdioh_request_packet_chain() local 1062 sg_count = 0; in sdioh_request_packet_chain() 1086 if (sg_count >= ARRAYSIZE(sd->sg_list)) { in sdioh_request_packet_chain() 1089 __FUNCTION__, sg_count, ARRAYSIZE(sd->sg_list), blk_size)); in sdioh_request_packet_chain() 1104 sg_set_buf(&sd->sg_list[sg_count++], pdata, sg_data_size); in sdioh_request_packet_chain() 1121 mmc_dat.sg_len = sg_count; in sdioh_request_packet_chain()
|