Home
last modified time | relevance | path

Searched refs:sg_num (Results 1 – 14 of 14) sorted by relevance

/Linux-v6.6/sound/soc/sprd/
Dsprd-pcm-dma.c201 int ret, i, j, sg_num; in sprd_pcm_hw_params() local
218 sg_num = totsize / period; in sprd_pcm_hw_params()
221 sg = devm_kcalloc(component->dev, sg_num, sizeof(*sg), GFP_KERNEL); in sprd_pcm_hw_params()
250 sg_init_table(sgt, sg_num); in sprd_pcm_hw_params()
251 for (j = 0; j < sg_num; j++, sgt++) { in sprd_pcm_hw_params()
280 sg_num, dir, in sprd_pcm_hw_params()
Dsprd-pcm-compress.c146 int period, period_cnt, sg_num = 2; in sprd_platform_compr_dma_config() local
163 sgt = sg = devm_kcalloc(dev, sg_num, sizeof(*sg), GFP_KERNEL); in sprd_platform_compr_dma_config()
214 sg_init_table(sgt, sg_num); in sprd_platform_compr_dma_config()
215 for (j = 0; j < sg_num; j++, sgt++) { in sprd_platform_compr_dma_config()
239 sg_num, dir, in sprd_platform_compr_dma_config()
/Linux-v6.6/sound/virtio/
Dvirtio_pcm_msg.c146 int sg_num = virtsnd_pcm_sg_num(data, period_bytes); in virtsnd_pcm_msg_alloc() local
149 msg = kzalloc(struct_size(msg, sgs, sg_num + 2), GFP_KERNEL); in virtsnd_pcm_msg_alloc()
159 virtsnd_pcm_sg_from(&msg->sgs[PCM_MSG_SG_DATA], sg_num, data, in virtsnd_pcm_msg_alloc()
/Linux-v6.6/drivers/net/ethernet/marvell/octeon_ep/
Doctep_ctrl_mbox.h106 int sg_num; member
Doctep_ctrl_mbox.c185 for (s = 0; ((s < msg->sg_num) && (buf_sz > 0)); s++) { in octep_ctrl_mbox_send()
248 for (s = 0; ((s < msg->sg_num) && (buf_sz > 0)); s++) { in octep_ctrl_mbox_recv()
Doctep_ctrl_net.c46 msg->sg_num = 1; in init_send_req()
339 msg.sg_num = 1; in octep_ctrl_net_recv_fw_messages()
/Linux-v6.6/drivers/target/
Dtarget_core_iblock.c354 static struct bio *iblock_get_bio(struct se_cmd *cmd, sector_t lba, u32 sg_num, in iblock_get_bio() argument
364 bio = bio_alloc_bioset(ib_dev->ibd_bd, bio_max_segs(sg_num), opf, in iblock_get_bio()
733 u32 sg_num = sgl_nents; in iblock_execute_rw() local
808 bio = iblock_get_bio(cmd, block_lba, sg_num, opf); in iblock_execute_rw()
819 sg_num--; in iblock_execute_rw()
/Linux-v6.6/net/smc/
Dsmc_ib.c699 int sg_num; in smc_ib_map_mr_sg() local
702 sg_num = ib_map_mr_sg(buf_slot->mr[link_idx], in smc_ib_map_mr_sg()
707 return sg_num; in smc_ib_map_mr_sg()
/Linux-v6.6/drivers/scsi/
Dnsp32.c1724 int sg_num = data->cur_lunt->sg_num; in nsp32_adjust_busfree() local
1739 for (new_entry = old_entry; new_entry < sg_num; new_entry++) { in nsp32_adjust_busfree()
1747 if (new_entry == sg_num) { in nsp32_adjust_busfree()
2663 .sg_num = 0, in nsp32_detect()
Dnsp32.h491 unsigned int sg_num; /* Total number of SG entries */ member
/Linux-v6.6/drivers/crypto/
Dhifn_795x.c1531 int err = -EINVAL, sg_num; in hifn_setup_session() local
1557 sg_num = hifn_cipher_walk(req, &rctx->walk); in hifn_setup_session()
1558 if (sg_num < 0) { in hifn_setup_session()
1559 err = sg_num; in hifn_setup_session()
1564 if (dev->started + sg_num > HIFN_QUEUE_LENGTH) { in hifn_setup_session()
/Linux-v6.6/drivers/net/ethernet/neterion/
Ds2io.h682 int sg_num; member
Ds2io.c8228 lro->sg_num = 1; in initiate_new_session()
8271 swstats->sum_avg_pkts_aggregated += lro->sg_num; in update_L3L4_header()
8282 lro->sg_num++; in aggregate_new_rx()
8440 if ((*lro)->sg_num == sp->lro_max_aggr_per_sess) { in s2io_club_tcp_session()
/Linux-v6.6/drivers/crypto/caam/
Dcaamhash.c703 int sg_num, u32 *sh_desc, in ahash_edesc_alloc() argument
711 edesc = kzalloc(struct_size(edesc, sec4_sg, sg_num), flags); in ahash_edesc_alloc()