Home
last modified time | relevance | path

Searched refs:sg_is_last (Results 1 – 25 of 35) sorted by relevance

12

/linux-6.1.9/samples/kfifo/
Ddma-example.c79 if (sg_is_last(&sg[i])) in example_init()
108 if (sg_is_last(&sg[i])) in example_init()
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dloop6.c35 #define sg_is_last(sg) ((sg)->page_link & SG_END) macro
44 if (sg_is_last(&sg)) in __sg_next()
/linux-6.1.9/tools/virtio/linux/
Dscatterlist.h15 #define sg_is_last(sg) ((sg)->page_link & 0x02) macro
139 if (sg_is_last(sg)) in sg_next()
/linux-6.1.9/include/linux/
Ddevcoredump.h40 while (!sg_is_last(iter)) { in _devcd_free_sgtable()
Dscatterlist.h92 static inline bool sg_is_last(struct scatterlist *sg) in sg_is_last() function
/linux-6.1.9/lib/
Dscatterlist.c25 if (sg_is_last(sg)) in sg_next()
109 BUG_ON(!sg_is_last(ret)); in sg_last()
394 if (!sg_is_last(next_sg) || needed_sges == 1) in get_next_sg()
/linux-6.1.9/drivers/crypto/qat/qat_common/
Dqat_asym_algs.c289 if (sg_is_last(req->src) && req->src_len == ctx->p_size) { in qat_dh_compute_value()
317 if (sg_is_last(req->dst) && req->dst_len == ctx->p_size) { in qat_dh_compute_value()
695 if (sg_is_last(req->src) && req->src_len == ctx->key_sz) { in qat_rsa_enc()
715 if (sg_is_last(req->dst) && req->dst_len == ctx->key_sz) { in qat_rsa_enc()
839 if (sg_is_last(req->src) && req->src_len == ctx->key_sz) { in qat_rsa_dec()
859 if (sg_is_last(req->dst) && req->dst_len == ctx->key_sz) { in qat_rsa_dec()
/linux-6.1.9/drivers/s390/scsi/
Dzfcp_qdio.h191 return sg_is_last(sg) && sg->length <= ZFCP_QDIO_SBALE_LEN; in zfcp_qdio_sg_one_sbale()
/linux-6.1.9/drivers/gpu/drm/i915/
Di915_scatterlist.h79 return sg_is_last(sg) ? NULL : ____sg_next(sg); in __sg_next()
Di915_gpu_error.c707 if (sg_is_last(sg)) in err_free_sgl()
711 sg = sg_is_last(sg) ? NULL : sg_chain_ptr(sg); in err_free_sgl()
997 } while (!sg_is_last(sg++)); in i915_gpu_coredump_copy_to_buffer()
/linux-6.1.9/drivers/dma/qcom/
Dqcom_adm.c280 if (sg_is_last(sg)) in adm_process_fc_descriptors()
283 if (box_desc && sg_is_last(sg)) in adm_process_fc_descriptors()
330 if (sg_is_last(sg)) in adm_process_non_fc_descriptors()
/linux-6.1.9/drivers/spi/
Dspi-bcm2835.c493 if (bs->tx_buf && !sg_is_last(&tfr->tx_sg.sgl[0])) in bcm2835_spi_transfer_prologue()
496 if (bs->rx_buf && !sg_is_last(&tfr->rx_sg.sgl[0])) { in bcm2835_spi_transfer_prologue()
500 if (!bs->tx_buf || sg_is_last(&tfr->tx_sg.sgl[0])) { in bcm2835_spi_transfer_prologue()
/linux-6.1.9/drivers/crypto/stm32/
Dstm32-hash.c306 if ((rctx->sg->length == 0) && !sg_is_last(rctx->sg)) { in stm32_hash_append_sg()
571 if (sg_is_last(sg)) { in stm32_hash_dma_send()
598 !sg_is_last(sg)); in stm32_hash_dma_send()
671 (!sg_is_last(sg))) in stm32_hash_dma_aligned_data()
/linux-6.1.9/drivers/crypto/marvell/cesa/
Dtdma.c25 if (sg_is_last(sgiter->sg)) in mv_cesa_req_dma_iter_next_transfer()
/linux-6.1.9/drivers/crypto/
Ds5p-sss.c580 if (!sg_is_last(dev->sg_dst)) { in s5p_aes_tx()
602 if (!sg_is_last(dev->sg_src)) { in s5p_aes_rx()
689 if (sg_is_last(dev->sg_dst)) in s5p_aes_interrupt()
Datmel-sha.c318 if ((ctx->sg->length == 0) && !sg_is_last(ctx->sg)) { in atmel_sha_append_sg()
780 if (!sg_is_last(sg) && !IS_ALIGNED(sg->length, ctx->block_size)) in atmel_sha_update_dma_start()
786 if (sg_is_last(sg)) { in atmel_sha_update_dma_start()
Dmxs-dcp.c358 if (actx->fill == out_off || sg_is_last(src) || in mxs_dcp_aes_block_crypt()
/linux-6.1.9/drivers/usb/image/
Dmicrotek.c511 sg_is_last(context->curr_sg) ? in mts_do_sg()
/linux-6.1.9/net/xfrm/
Despintcp.c221 if (sg_is_last(sg)) in espintcp_sendskmsg_locked()
/linux-6.1.9/net/core/
Dskmsg.c466 } while ((i != msg_rx->sg.end) && !sg_is_last(sge)); in sk_msg_recvmsg()
476 if (!sge->length && (i == msg_rx->sg.end || sg_is_last(sge))) { in sk_msg_recvmsg()
/linux-6.1.9/drivers/memstick/core/
Dms_block.c43 if (sg_is_last(sg_from)) in msb_sg_copy()
58 if (sg_is_last(sg_from) || !len) in msb_sg_copy()
73 if (sg_is_last(sg_from) || !len) in msb_sg_copy()
/linux-6.1.9/drivers/crypto/hisilicon/hpre/
Dhpre_crypto.c285 if ((sg_is_last(data) && len == ctx->key_sz) && in hpre_hw_data_init()
1547 if (unlikely(!data || !sg_is_last(data) || len != ctx->key_sz << 1)) { in hpre_ecdh_dst_data_init()
1893 if (!data || !sg_is_last(data) || len != ctx->key_sz) { in hpre_curve25519_dst_init()
/linux-6.1.9/drivers/scsi/
DNCR5380.c167 if (!ncmd->this_residual && s && !sg_is_last(s)) { in advance_sg_buffer()
181 while (!sg_is_last(s)) { in set_resid_from_SCp()
Daha152x.c2065 !sg_is_last(acp->buffer)) { in datai_run()
2170 if (acp->this_residual == 0 && !sg_is_last(acp->buffer)) { in datao_run()
2202 while (done > 0 && !sg_is_last(sg)) { in datao_end()
/linux-6.1.9/drivers/ata/
Dpata_octeon_cf.c666 if (!sg_is_last(qc->cursg)) { in octeon_cf_interrupt()

12