Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/crypto/fsl/
H A Dfsl_hash.c90 if (ctx->sg_num >= MAX_SG_32) { in caam_hash_update()
96 sec_out32(&ctx->sg_tbl[ctx->sg_num].addr_hi, (uint32_t)(addr >> 32)); in caam_hash_update()
98 sec_out32(&ctx->sg_tbl[ctx->sg_num].addr_hi, 0x0); in caam_hash_update()
100 sec_out32(&ctx->sg_tbl[ctx->sg_num].addr_lo, (uint32_t)addr); in caam_hash_update()
102 sec_out32(&ctx->sg_tbl[ctx->sg_num].len_flag, in caam_hash_update()
105 ctx->sg_num++; in caam_hash_update()
108 final = sec_in32(&ctx->sg_tbl[ctx->sg_num - 1].len_flag) | in caam_hash_update()
110 sec_out32(&ctx->sg_tbl[ctx->sg_num - 1].len_flag, final); in caam_hash_update()
140 for (i = 0; i < ctx->sg_num; i++) in caam_hash_finish()
H A Dfsl_hash.h27 uint32_t sg_num; member
/openbmc/linux/sound/soc/sprd/
H A 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()
H A 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()
/openbmc/linux/sound/virtio/
H A 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()
/openbmc/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_mr.c425 int ret, sg_num = 0; in hns_roce_map_mr_sg() local
430 return sg_num; in hns_roce_map_mr_sg()
436 return sg_num; in hns_roce_map_mr_sg()
438 sg_num = ib_sg_to_pages(ibmr, sg, sg_nents, sg_offset_p, hns_roce_set_page); in hns_roce_map_mr_sg()
439 if (sg_num < 1) { in hns_roce_map_mr_sg()
441 mr->npages, mr->pbl_mtr.hem_cfg.buf_pg_count, sg_num); in hns_roce_map_mr_sg()
452 sg_num = 0; in hns_roce_map_mr_sg()
461 return sg_num; in hns_roce_map_mr_sg()
/openbmc/linux/drivers/net/ethernet/marvell/octeon_ep/
H A Doctep_ctrl_mbox.h106 int sg_num; member
H A 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()
H A Doctep_ctrl_net.c46 msg->sg_num = 1; in init_send_req()
339 msg.sg_num = 1; in octep_ctrl_net_recv_fw_messages()
/openbmc/linux/drivers/target/
H A 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()
/openbmc/qemu/net/
H A Dtrace-events29 …s, uint8_t cmd, int data_num, int data_size) "vdpa state: %p class: %u cmd: %u sg_num: %d size: %d"
/openbmc/qemu/tests/
H A Dvhost-user-bridge.c203 unsigned sg_num = iov_copy(sg, ARRAY_SIZE(sg), in vubr_handle_tx() local
206 out_num = sg_num; in vubr_handle_tx()
/openbmc/linux/net/smc/
H A Dsmc_ib.c704 int sg_num; in smc_ib_map_mr_sg() local
707 sg_num = ib_map_mr_sg(buf_slot->mr[link_idx], in smc_ib_map_mr_sg()
712 return sg_num; in smc_ib_map_mr_sg()
/openbmc/linux/drivers/scsi/
H A 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()
H A Dnsp32.h491 unsigned int sg_num; /* Total number of SG entries */ member
/openbmc/linux/drivers/crypto/
H A 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()
/openbmc/linux/drivers/crypto/caam/
H A Dcaamhash.c703 int sg_num, u32 *sh_desc, in ahash_edesc_alloc() argument
711 sg_num = pad_sg_nents(sg_num); in ahash_edesc_alloc()
712 edesc = kzalloc(struct_size(edesc, sec4_sg, sg_num), flags); in ahash_edesc_alloc()
/openbmc/qemu/hw/net/
H A Dvirtio-net.c2787 unsigned sg_num = iov_copy(sg, ARRAY_SIZE(sg), in virtio_net_flush_tx()
2790 sg_num += iov_copy(sg + sg_num, ARRAY_SIZE(sg) - sg_num, in virtio_net_flush_tx()
2793 out_num = sg_num; in virtio_net_flush_tx()
2780 unsigned sg_num = iov_copy(sg, ARRAY_SIZE(sg), virtio_net_flush_tx() local
/openbmc/linux/drivers/net/ethernet/neterion/
H A Ds2io.h682 int sg_num; member
H A 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()