Home
last modified time | relevance | path

Searched refs:cur_len (Results 1 – 18 of 18) sorted by relevance

/drivers/spi/
Dspi-sh.c172 int cur_len; in spi_sh_send() local
181 cur_len = min(SPI_SH_FIFO_SIZE, remain); in spi_sh_send()
182 for (i = 0; i < cur_len && in spi_sh_send()
196 cur_len = i; in spi_sh_send()
198 remain -= cur_len; in spi_sh_send()
199 data += cur_len; in spi_sh_send()
237 int cur_len; in spi_sh_receive() local
266 cur_len = min(SPI_SH_FIFO_SIZE, remain); in spi_sh_receive()
267 for (i = 0; i < cur_len; i++) { in spi_sh_receive()
273 remain -= cur_len; in spi_sh_receive()
[all …]
Dspi-tegra20-sflash.c127 unsigned cur_len; member
Dspi-tegra20-slink.c177 unsigned cur_len; member
/drivers/ide/
Dide-dma-sff.c124 u32 cur_addr, cur_len, xcount, bcount; in ide_build_dmatable() local
127 cur_len = sg_dma_len(sg); in ide_build_dmatable()
135 while (cur_len) { in ide_build_dmatable()
140 if (bcount > cur_len) in ide_build_dmatable()
141 bcount = cur_len; in ide_build_dmatable()
155 cur_len -= bcount; in ide_build_dmatable()
Dsgiioc4.c423 int cur_len; in sgiioc4_build_dmatable() local
425 cur_len = sg_dma_len(sg); in sgiioc4_build_dmatable()
427 while (cur_len) { in sgiioc4_build_dmatable()
437 if (bcount > cur_len) in sgiioc4_build_dmatable()
438 bcount = cur_len; in sgiioc4_build_dmatable()
455 cur_len -= bcount; in sgiioc4_build_dmatable()
Dau1xxx-ide.c230 u32 cur_len; in auide_build_dmatable() local
233 cur_len = sg_dma_len(sg); in auide_build_dmatable()
235 while (cur_len) { in auide_build_dmatable()
237 unsigned int tc = (cur_len < 0xfe00)? cur_len: 0xfe00; in auide_build_dmatable()
266 cur_len -= tc; in auide_build_dmatable()
Dtx4939ide.c244 u32 cur_addr, cur_len, bcount; in tx4939ide_build_dmatable() local
247 cur_len = sg_dma_len(sg); in tx4939ide_build_dmatable()
253 while (cur_len) { in tx4939ide_build_dmatable()
258 if (bcount > cur_len) in tx4939ide_build_dmatable()
259 bcount = cur_len; in tx4939ide_build_dmatable()
269 cur_len -= bcount; in tx4939ide_build_dmatable()
Dpmac.c1479 u32 cur_len; in pmac_ide_build_dmatable() local
1482 cur_len = sg_dma_len(sg); in pmac_ide_build_dmatable()
1492 while (cur_len) { in pmac_ide_build_dmatable()
1493 unsigned int tc = (cur_len < 0xfe00)? cur_len: 0xfe00; in pmac_ide_build_dmatable()
1507 cur_len -= tc; in pmac_ide_build_dmatable()
/drivers/usb/musb/
Dux500_dma.c47 unsigned int cur_len; member
75 ux500_channel->channel.actual_len = ux500_channel->cur_len; in ux500_dma_callback()
103 ux500_channel->cur_len = len; in ux500_configure_channel()
/drivers/target/
Dtarget_core_configfs.c2069 ssize_t len = 0, cur_len; in target_core_alua_lu_gp_show_attr_members() local
2079 cur_len = snprintf(buf, LU_GROUP_NAME_BUF, "%s/%s\n", in target_core_alua_lu_gp_show_attr_members()
2082 cur_len++; /* Extra byte for NULL terminator */ in target_core_alua_lu_gp_show_attr_members()
2084 if ((cur_len + len) > PAGE_SIZE) { in target_core_alua_lu_gp_show_attr_members()
2089 memcpy(page+len, buf, cur_len); in target_core_alua_lu_gp_show_attr_members()
2090 len += cur_len; in target_core_alua_lu_gp_show_attr_members()
2593 ssize_t len = 0, cur_len; in target_core_alua_tg_pt_gp_show_attr_members() local
2605 cur_len = snprintf(buf, TG_PT_GROUP_NAME_BUF, "%s/%s/tpgt_%hu" in target_core_alua_tg_pt_gp_show_attr_members()
2610 cur_len++; /* Extra byte for NULL terminator */ in target_core_alua_tg_pt_gp_show_attr_members()
2612 if ((cur_len + len) > PAGE_SIZE) { in target_core_alua_tg_pt_gp_show_attr_members()
[all …]
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_init_ops.h92 u32 cur_len = min(buf_len32, len - i); in bnx2x_init_fill() local
94 bnx2x_write_big_buf(bp, addr + i*4, cur_len, wb); in bnx2x_init_fill()
131 u32 cur_len = min(buf_len32, len - i); in bnx2x_init_wr_64() local
133 bnx2x_write_big_buf_wb(bp, addr + i*4, cur_len); in bnx2x_init_wr_64()
Dbnx2x_sp.c176 int cur_len = 0, rc; in bnx2x_exe_queue_step() local
203 if (cur_len + elem->cmd_len <= o->exe_chunk_len) { in bnx2x_exe_queue_step()
204 cur_len += elem->cmd_len; in bnx2x_exe_queue_step()
218 if (!cur_len) in bnx2x_exe_queue_step()
/drivers/ata/
Dpata_mpc52xx.c459 u32 cur_len = sg_dma_len(sg); in mpc52xx_ata_build_dmatable() local
461 while (cur_len) { in mpc52xx_ata_build_dmatable()
462 unsigned int tc = min(cur_len, MAX_DMA_BUFFER_SIZE); in mpc52xx_ata_build_dmatable()
481 cur_len -= tc; in mpc52xx_ata_build_dmatable()
/drivers/crypto/
Dmv_cesa.c511 size_t cur_len; in count_sgs() local
514 cur_len = sl[i].length; in count_sgs()
516 if (total_bytes > cur_len) in count_sgs()
517 total_bytes -= cur_len; in count_sgs()
/drivers/scsi/osd/
Dosd_initiator.c1780 int cur_len = ssd->additional_length + 2; in osd_req_decode_sense_full() local
1782 sense_len -= cur_len; in osd_req_decode_sense_full()
1850 unsigned len = min(cur_len, sense_len); in osd_req_decode_sense_full()
1900 cur_descriptor += cur_len; in osd_req_decode_sense_full()
/drivers/gpu/drm/
Ddrm_dp_mst_topology.c296 raw->cur_len = idx; in drm_dp_encode_sideband_req()
314 raw->cur_len = idx; in drm_dp_encode_sideband_reply()
1403 len = txmsg->cur_len - txmsg->cur_offset; in process_single_tx_qlock()
1409 if (len == txmsg->cur_len) in process_single_tx_qlock()
1429 if (txmsg->cur_offset == txmsg->cur_len) { in process_single_tx_qlock()
/drivers/target/iscsi/
Discsi_target.c750 u32 cur_len = min_t(u32, data_length, sg->length - page_off); in iscsit_map_iovec() local
753 iov[i].iov_len = cur_len; in iscsit_map_iovec()
755 data_length -= cur_len; in iscsit_map_iovec()
1217 u32 cur_len = min_t(u32, data_length, (sg[i].length - page_off)); in iscsit_do_crypto_hash_sg() local
1219 crypto_hash_update(hash, &sg[i], cur_len); in iscsit_do_crypto_hash_sg()
1221 data_length -= cur_len; in iscsit_do_crypto_hash_sg()
/drivers/scsi/
Dipr.c2885 int cur_len, rc, rem_len, rem_page_len, max_dump_size; in ipr_sdt_copy() local
2914 cur_len = min(rem_len, rem_page_len); in ipr_sdt_copy()
2923 (cur_len / sizeof(u32))); in ipr_sdt_copy()
2928 ioa_dump->page_offset += cur_len; in ipr_sdt_copy()
2929 bytes_copied += cur_len; in ipr_sdt_copy()