Home
last modified time | relevance | path

Searched refs:sgl_size (Results 1 – 13 of 13) sorted by relevance

/linux-6.12.1/drivers/crypto/hisilicon/
Dsgl.c45 size_t sgl_size; member
60 u32 sgl_size, block_size, sgl_num_per_block, block_num, remain_sgl; in hisi_acc_create_sgl_pool() local
68 sgl_size = ALIGN(sizeof(struct acc_hw_sge) * sge_nr + in hisi_acc_create_sgl_pool()
78 sgl_num_per_block = block_size / sgl_size; in hisi_acc_create_sgl_pool()
104 block[i].sgl = dma_alloc_coherent(dev, remain_sgl * sgl_size, in hisi_acc_create_sgl_pool()
112 block[i].size = remain_sgl * sgl_size; in hisi_acc_create_sgl_pool()
118 pool->sgl_size = sgl_size; in hisi_acc_create_sgl_pool()
168 *hw_sgl_dma = block[block_index].sgl_dma + pool->sgl_size * offset; in acc_get_sgl()
169 return (void *)block[block_index].sgl + pool->sgl_size * offset; in acc_get_sgl()
/linux-6.12.1/drivers/misc/genwqe/
Dcard_utils.c309 sgl->sgl_size = genwqe_sgl_size(sgl->nr_pages); in genwqe_alloc_sync_sgl()
311 if (get_order(sgl->sgl_size) > MAX_PAGE_ORDER) { in genwqe_alloc_sync_sgl()
317 sgl->sgl = __genwqe_alloc_consistent(cd, sgl->sgl_size, in genwqe_alloc_sync_sgl()
365 __genwqe_free_consistent(cd, sgl->sgl_size, sgl->sgl, in genwqe_alloc_sync_sgl()
369 sgl->sgl_size = 0; in genwqe_alloc_sync_sgl()
513 __genwqe_free_consistent(cd, sgl->sgl_size, sgl->sgl, in genwqe_free_sync_sgl()
518 sgl->sgl_size = 0; in genwqe_free_sync_sgl()
Dcard_base.h349 size_t sgl_size; /* size of sgl */ member
/linux-6.12.1/drivers/vfio/pci/pds/
Dcmds.c209 size_t sgl_size; in pds_vfio_dma_map_lm_file() local
224 sgl_size = lm_file->num_sge * sizeof(struct pds_lm_sg_elem); in pds_vfio_dma_map_lm_file()
225 sgl = kzalloc(sgl_size, GFP_KERNEL); in pds_vfio_dma_map_lm_file()
240 sgl_addr = dma_map_single(dev, sgl, sgl_size, DMA_TO_DEVICE); in pds_vfio_dma_map_lm_file()
Ddirty.c151 size_t sgl_size; in pds_vfio_dirty_alloc_sgl() local
155 sgl_size = max_sge * sizeof(struct pds_lm_sg_elem); in pds_vfio_dirty_alloc_sgl()
157 sgl = kzalloc(sgl_size, GFP_KERNEL); in pds_vfio_dirty_alloc_sgl()
161 sgl_addr = dma_map_single(pdsc_dev, sgl, sgl_size, DMA_BIDIRECTIONAL); in pds_vfio_dirty_alloc_sgl()
/linux-6.12.1/drivers/scsi/bnx2fc/
Dbnx2fc_hwi.c1547 task->txwr_only.sgl_ctx.sgl.mul_sgl.sgl_size = in bnx2fc_init_seq_cleanup_task()
1558 sgl->mul_sgl.sgl_size = bd_count; in bnx2fc_init_seq_cleanup_task()
1642 task->txwr_only.sgl_ctx.sgl.mul_sgl.sgl_size = 1; in bnx2fc_init_mp_task()
1698 sgl->mul_sgl.sgl_size = 1; in bnx2fc_init_mp_task()
1753 task->txwr_only.sgl_ctx.sgl.mul_sgl.sgl_size = in bnx2fc_init_task()
1848 sgl->mul_sgl.sgl_size = bd_count; in bnx2fc_init_task()
1854 sgl->mul_sgl.sgl_size = bd_count; in bnx2fc_init_task()
D57xx_hsi_bnx2fc.h249 u8 sgl_size; member
/linux-6.12.1/drivers/net/ethernet/microsoft/mana/
Dgdma_main.c1072 u32 sgl_size = sizeof(struct gdma_sge) * wqe_req->num_sge; in mana_gd_write_sgl() local
1081 if (size_to_end < sgl_size) { in mana_gd_write_sgl()
1086 sgl_size -= size_to_end; in mana_gd_write_sgl()
1089 memcpy(wqe_ptr, address, sgl_size); in mana_gd_write_sgl()
/linux-6.12.1/drivers/net/ethernet/amazon/ena/
Dena_netdev.h252 u16 sgl_size; member
Dena_netdev.c226 txr->sgl_size = adapter->max_tx_sgl_size; in ena_init_io_rings()
240 rxr->sgl_size = adapter->max_rx_sgl_size; in ena_init_io_rings()
1236 ena_rx_ctx.max_bufs = rx_ring->sgl_size; in ena_clean_rx_irq()
2476 if (num_frags < tx_ring->sgl_size) in ena_check_and_linearize_skb()
2479 if ((num_frags == tx_ring->sgl_size) && in ena_check_and_linearize_skb()
2657 tx_ring->sgl_size + 2))) { in ena_start_xmit()
/linux-6.12.1/drivers/net/ethernet/broadcom/
Dcnic_defs.h2551 u8 sgl_size; member
3931 u8 sgl_size; member
3937 u8 sgl_size; member
4542 u8 sgl_size; member
4548 u8 sgl_size; member
4929 u8 sgl_size; member
4935 u8 sgl_size; member
/linux-6.12.1/drivers/scsi/
Dscsi_lib.c2048 unsigned int cmd_size, sgl_size; in scsi_mq_setup_tags() local
2051 sgl_size = max_t(unsigned int, sizeof(struct scatterlist), in scsi_mq_setup_tags()
2053 cmd_size = sizeof(struct scsi_cmnd) + shost->hostt->cmd_size + sgl_size; in scsi_mq_setup_tags()
/linux-6.12.1/drivers/scsi/lpfc/
Dlpfc_sli.c18321 int status, sgl_size; in lpfc_sli4_post_io_sgl_list() local
18334 sgl_size = phba->cfg_sg_dma_buf_size; in lpfc_sli4_post_io_sgl_list()
18367 if (sgl_size > SGL_PAGE_SIZE) in lpfc_sli4_post_io_sgl_list()