Home
last modified time | relevance | path

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

12

/openbmc/linux/samples/kfifo/
H A Ddma-example.c79 if (sg_is_last(&sg[i])) in example_init()
108 if (sg_is_last(&sg[i])) in example_init()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dloop6.c36 #define sg_is_last(sg) ((sg)->page_link & SG_END) macro
45 if (sg_is_last(&sg)) in __sg_next()
/openbmc/linux/tools/virtio/linux/
H A Dscatterlist.h16 #define sg_is_last(sg) ((sg)->page_link & 0x02) macro
140 if (sg_is_last(sg)) in sg_next()
/openbmc/linux/include/linux/
H A Ddevcoredump.h40 while (!sg_is_last(iter)) { in _devcd_free_sgtable()
H A Dscatterlist.h92 static inline bool sg_is_last(struct scatterlist *sg) in sg_is_last() function
/openbmc/linux/drivers/gpu/drm/i915/
H A Di915_scatterlist.h79 return sg_is_last(sg) ? NULL : ____sg_next(sg); in __sg_next()
H A Di915_gpu_error.c711 if (sg_is_last(sg)) in err_free_sgl()
715 sg = sg_is_last(sg) ? NULL : sg_chain_ptr(sg); in err_free_sgl()
1006 } while (!sg_is_last(sg++)); in i915_gpu_coredump_copy_to_buffer()
/openbmc/linux/drivers/s390/scsi/
H A Dzfcp_qdio.h191 return sg_is_last(sg) && sg->length <= ZFCP_QDIO_SBALE_LEN; in zfcp_qdio_sg_one_sbale()
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dqat_asym_algs.c288 if (sg_is_last(req->src) && req->src_len == ctx->p_size) { in qat_dh_compute_value()
316 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()
/openbmc/linux/drivers/dma/qcom/
H A 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()
/openbmc/linux/lib/
H A Dscatterlist.c27 if (sg_is_last(sg)) in sg_next()
111 BUG_ON(!sg_is_last(ret)); in sg_last()
397 if (!sg_is_last(next_sg) || needed_sges == 1) in get_next_sg()
/openbmc/linux/drivers/spi/
H A 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()
/openbmc/linux/drivers/crypto/marvell/cesa/
H A Dtdma.c25 if (sg_is_last(sgiter->sg)) in mv_cesa_req_dma_iter_next_transfer()
/openbmc/linux/drivers/crypto/
H A Ds5p-sss.c579 if (!sg_is_last(dev->sg_dst)) { in s5p_aes_tx()
601 if (!sg_is_last(dev->sg_src)) { in s5p_aes_rx()
688 if (sg_is_last(dev->sg_dst)) in s5p_aes_interrupt()
H A 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()
/openbmc/linux/drivers/usb/image/
H A Dmicrotek.c511 sg_is_last(context->curr_sg) ? in mts_do_sg()
/openbmc/linux/net/xfrm/
H A Despintcp.c226 if (sg_is_last(sg) && !more) in espintcp_sendskmsg_locked()
/openbmc/linux/net/core/
H A Dskmsg.c468 } while ((i != msg_rx->sg.end) && !sg_is_last(sge)); in sk_msg_recvmsg()
478 if (!sge->length && (i == msg_rx->sg.end || sg_is_last(sge))) { in sk_msg_recvmsg()
/openbmc/linux/drivers/crypto/stm32/
H A Dstm32-hash.c342 if ((rctx->sg->length == 0) && !sg_is_last(rctx->sg)) { in stm32_hash_append_sg()
679 if (sg_is_last(sg) || (bufcnt + sg[0].length) >= rctx->total) { in stm32_hash_dma_send()
784 (!sg_is_last(sg))) in stm32_hash_dma_aligned_data()
/openbmc/linux/drivers/memstick/core/
H A 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()
/openbmc/linux/drivers/crypto/hisilicon/hpre/
H A Dhpre_crypto.c295 if ((sg_is_last(data) && len == ctx->key_sz) && in hpre_hw_data_init()
1568 if (unlikely(!data || !sg_is_last(data) || len != ctx->key_sz << 1)) { in hpre_ecdh_dst_data_init()
1920 if (!data || !sg_is_last(data) || len != ctx->key_sz) { in hpre_curve25519_dst_init()
/openbmc/linux/drivers/scsi/
H A 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()
H A 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()
/openbmc/linux/drivers/ata/
H A Dpata_octeon_cf.c667 if (!sg_is_last(qc->cursg)) { in octeon_cf_interrupt()
/openbmc/linux/drivers/rapidio/devices/
H A Dtsi721_dma.c514 if (sg_is_last(sg)) { in tsi721_submit_sg()

12