Home
last modified time | relevance | path

Searched refs:sgs (Results 1 – 25 of 32) sorted by relevance

12

/linux-6.6.21/arch/powerpc/platforms/powernv/
Dopal-sensor-groups.c29 } *sgs; variable
171 sgs = kcalloc(of_get_child_count(sg), sizeof(*sgs), GFP_KERNEL); in opal_sensor_groups_init()
172 if (!sgs) in opal_sensor_groups_init()
193 sgs[i].sgattrs = kcalloc(nr_attrs, sizeof(*sgs[i].sgattrs), in opal_sensor_groups_init()
195 if (!sgs[i].sgattrs) in opal_sensor_groups_init()
198 sgs[i].sg.attrs = kcalloc(nr_attrs + 1, in opal_sensor_groups_init()
199 sizeof(*sgs[i].sg.attrs), in opal_sensor_groups_init()
202 if (!sgs[i].sg.attrs) { in opal_sensor_groups_init()
203 kfree(sgs[i].sgattrs); in opal_sensor_groups_init()
213 sprintf(sgs[i].name, "%pOFn%d", node, chipid); in opal_sensor_groups_init()
[all …]
/linux-6.6.21/drivers/crypto/rockchip/
Drk3288_crypto_skcipher.c28 struct scatterlist *sgs, *sgd; in rk_cipher_need_fallback() local
36 sgs = req->src; in rk_cipher_need_fallback()
38 while (sgs && sgd) { in rk_cipher_need_fallback()
39 if (!IS_ALIGNED(sgs->offset, sizeof(u32))) { in rk_cipher_need_fallback()
47 stodo = min(len, sgs->length); in rk_cipher_need_fallback()
62 sgs = sg_next(sgs); in rk_cipher_need_fallback()
289 struct scatterlist *sgs, in crypto_dma_start() argument
292 CRYPTO_WRITE(dev, RK_CRYPTO_BRDMAS, sg_dma_address(sgs)); in crypto_dma_start()
304 struct scatterlist *sgs, *sgd; in rk_cipher_run() local
333 sgs = areq->src; in rk_cipher_run()
[all …]
/linux-6.6.21/sound/virtio/
Dvirtio_pcm_msg.c23 struct scatterlist sgs[]; member
90 static void virtsnd_pcm_sg_from(struct scatterlist *sgs, int nsgs, u8 *data, in virtsnd_pcm_sg_from() argument
104 sg_phys(&sgs[idx]) + sgs[idx].length != page_to_phys(pg)) { in virtsnd_pcm_sg_from()
107 sg_set_page(&sgs[++idx], pg, pg_length, in virtsnd_pcm_sg_from()
110 sgs[idx].length += pg_length; in virtsnd_pcm_sg_from()
117 sg_mark_end(&sgs[idx]); in virtsnd_pcm_sg_from()
149 msg = kzalloc(struct_size(msg, sgs, sg_num + 2), GFP_KERNEL); in virtsnd_pcm_msg_alloc()
154 sg_init_one(&msg->sgs[PCM_MSG_SG_XFER], &msg->xfer, in virtsnd_pcm_msg_alloc()
156 sg_init_one(&msg->sgs[PCM_MSG_SG_STATUS], &msg->status, in virtsnd_pcm_msg_alloc()
159 virtsnd_pcm_sg_from(&msg->sgs[PCM_MSG_SG_DATA], sg_num, data, in virtsnd_pcm_msg_alloc()
[all …]
/linux-6.6.21/drivers/crypto/virtio/
Dvirtio_crypto_skcipher_algs.c117 struct scatterlist outhdr, key_sg, inhdr, *sgs[3]; in virtio_crypto_alg_skcipher_init_session() local
159 sgs[num_out++] = &outhdr; in virtio_crypto_alg_skcipher_init_session()
163 sgs[num_out++] = &key_sg; in virtio_crypto_alg_skcipher_init_session()
167 sgs[num_out + num_in++] = &inhdr; in virtio_crypto_alg_skcipher_init_session()
169 err = virtio_crypto_ctrl_vq_request(vcrypto, sgs, num_out, num_in, vc_ctrl_req); in virtio_crypto_alg_skcipher_init_session()
196 struct scatterlist outhdr, status_sg, *sgs[2]; in virtio_crypto_alg_skcipher_close_session() local
225 sgs[num_out++] = &outhdr; in virtio_crypto_alg_skcipher_close_session()
229 sgs[num_out + num_in++] = &status_sg; in virtio_crypto_alg_skcipher_close_session()
231 err = virtio_crypto_ctrl_vq_request(vcrypto, sgs, num_out, num_in, vc_ctrl_req); in virtio_crypto_alg_skcipher_close_session()
336 struct scatterlist outhdr, iv_sg, status_sg, **sgs; in __virtio_crypto_skcipher_do_req() local
[all …]
Dvirtio_crypto_akcipher_algs.c111 struct scatterlist outhdr_sg, key_sg, inhdr_sg, *sgs[3]; in virtio_crypto_alg_akcipher_init_session() local
137 sgs[num_out++] = &outhdr_sg; in virtio_crypto_alg_akcipher_init_session()
140 sgs[num_out++] = &key_sg; in virtio_crypto_alg_akcipher_init_session()
143 sgs[num_out + num_in++] = &inhdr_sg; in virtio_crypto_alg_akcipher_init_session()
145 err = virtio_crypto_ctrl_vq_request(vcrypto, sgs, num_out, num_in, vc_ctrl_req); in virtio_crypto_alg_akcipher_init_session()
169 struct scatterlist outhdr_sg, inhdr_sg, *sgs[2]; in virtio_crypto_alg_akcipher_close_session() local
195 sgs[num_out++] = &outhdr_sg; in virtio_crypto_alg_akcipher_close_session()
198 sgs[num_out + num_in++] = &inhdr_sg; in virtio_crypto_alg_akcipher_close_session()
200 err = virtio_crypto_ctrl_vq_request(vcrypto, sgs, num_out, num_in, vc_ctrl_req); in virtio_crypto_alg_akcipher_close_session()
227 struct scatterlist *sgs[4], outhdr_sg, inhdr_sg, srcdata_sg, dstdata_sg; in __virtio_crypto_akcipher_do_req() local
[all …]
Dvirtio_crypto_common.h108 struct scatterlist **sgs; member
150 int virtio_crypto_ctrl_vq_request(struct virtio_crypto *vcrypto, struct scatterlist *sgs[],
Dvirtio_crypto_core.c21 kfree(vc_req->sgs); in virtcrypto_clear_request()
51 int virtio_crypto_ctrl_vq_request(struct virtio_crypto *vcrypto, struct scatterlist *sgs[], in virtio_crypto_ctrl_vq_request() argument
61 err = virtqueue_add_sgs(vcrypto->ctrl_vq, sgs, out_sgs, in_sgs, vc_ctrl_req, GFP_ATOMIC); in virtio_crypto_ctrl_vq_request()
494 kfree(vc_req->sgs); in virtcrypto_free_unused_reqs()
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dloop6.c57 static inline struct scatterlist *get_sgp(struct scatterlist **sgs, int i) in get_sgp() argument
61 bpf_probe_read_kernel(&sgp, sizeof(sgp), sgs + i); in get_sgp()
69 int BPF_KPROBE(trace_virtqueue_add_sgs, void *unused, struct scatterlist **sgs, in BPF_KPROBE() argument
81 for (n = 0, sgp = get_sgp(sgs, i); sgp && (n < SG_MAX); in BPF_KPROBE()
91 for (n = 0, sgp = get_sgp(sgs, i); sgp && (n < SG_MAX); in BPF_KPROBE()
/linux-6.6.21/drivers/i2c/busses/
Di2c-virtio.c61 struct scatterlist *sgs[3], out_hdr, msg_buf, in_hdr; in virtio_i2c_prepare_reqs() local
82 sgs[outcnt++] = &out_hdr; in virtio_i2c_prepare_reqs()
92 sgs[outcnt + incnt++] = &msg_buf; in virtio_i2c_prepare_reqs()
94 sgs[outcnt++] = &msg_buf; in virtio_i2c_prepare_reqs()
98 sgs[outcnt + incnt++] = &in_hdr; in virtio_i2c_prepare_reqs()
100 if (virtqueue_add_sgs(vq, sgs, outcnt, incnt, &reqs[i], GFP_KERNEL)) { in virtio_i2c_prepare_reqs()
/linux-6.6.21/drivers/nvdimm/
Dnd_virtio.c43 struct scatterlist *sgs[2], sg, ret; in virtio_pmem_flush() local
58 sgs[0] = &sg; in virtio_pmem_flush()
60 sgs[1] = &ret; in virtio_pmem_flush()
69 while ((err = virtqueue_add_sgs(vpmem->req_vq, sgs, 1, 1, req_data, in virtio_pmem_flush()
/linux-6.6.21/net/9p/
Dtrans_virtio.c261 struct scatterlist *sgs[2]; in p9_virtio_request() local
274 sgs[out_sgs++] = chan->sg; in p9_virtio_request()
279 sgs[out_sgs + in_sgs++] = chan->sg + out; in p9_virtio_request()
281 err = virtqueue_add_sgs(chan->vq, sgs, out_sgs, in_sgs, req, in p9_virtio_request()
430 struct scatterlist *sgs[4]; in p9_virtio_zc_request() local
482 sgs[out_sgs++] = chan->sg; in p9_virtio_zc_request()
485 sgs[out_sgs++] = chan->sg + out; in p9_virtio_zc_request()
500 sgs[out_sgs + in_sgs++] = chan->sg + out; in p9_virtio_zc_request()
503 sgs[out_sgs + in_sgs++] = chan->sg + out + in; in p9_virtio_zc_request()
508 BUG_ON(out_sgs + in_sgs > ARRAY_SIZE(sgs)); in p9_virtio_zc_request()
[all …]
/linux-6.6.21/kernel/sched/
Dfair.c9542 group_has_capacity(unsigned int imbalance_pct, struct sg_lb_stats *sgs) in group_has_capacity() argument
9544 if (sgs->sum_nr_running < sgs->group_weight) in group_has_capacity()
9547 if ((sgs->group_capacity * imbalance_pct) < in group_has_capacity()
9548 (sgs->group_runnable * 100)) in group_has_capacity()
9551 if ((sgs->group_capacity * 100) > in group_has_capacity()
9552 (sgs->group_util * imbalance_pct)) in group_has_capacity()
9567 group_is_overloaded(unsigned int imbalance_pct, struct sg_lb_stats *sgs) in group_is_overloaded() argument
9569 if (sgs->sum_nr_running <= sgs->group_weight) in group_is_overloaded()
9572 if ((sgs->group_capacity * 100) < in group_is_overloaded()
9573 (sgs->group_util * imbalance_pct)) in group_is_overloaded()
[all …]
/linux-6.6.21/drivers/gpio/
Dgpio-virtio.c64 struct scatterlist *sgs[2], req_sg, res_sg; in _virtio_gpio_req() local
82 sgs[0] = &req_sg; in _virtio_gpio_req()
83 sgs[1] = &res_sg; in _virtio_gpio_req()
93 ret = virtqueue_add_sgs(vgpio->request_vq, sgs, 1, 1, line, GFP_KERNEL); in _virtio_gpio_req()
210 struct scatterlist *sgs[2], req_sg, res_sg; in virtio_gpio_irq_prepare() local
219 sgs[0] = &req_sg; in virtio_gpio_irq_prepare()
220 sgs[1] = &res_sg; in virtio_gpio_irq_prepare()
222 ret = virtqueue_add_sgs(vgpio->event_vq, sgs, 1, 1, irq_line, GFP_ATOMIC); in virtio_gpio_irq_prepare()
/linux-6.6.21/drivers/scsi/
Dvirtio_scsi.c430 struct scatterlist *sgs[6], req, resp; in __virtscsi_add_cmd() local
445 sgs[out_num++] = &req; in __virtscsi_add_cmd()
451 sgs[out_num++] = scsi_prot_sglist(sc); in __virtscsi_add_cmd()
452 sgs[out_num++] = out->sgl; in __virtscsi_add_cmd()
457 sgs[out_num + in_num++] = &resp; in __virtscsi_add_cmd()
463 sgs[out_num + in_num++] = scsi_prot_sglist(sc); in __virtscsi_add_cmd()
464 sgs[out_num + in_num++] = in->sgl; in __virtscsi_add_cmd()
467 return virtqueue_add_sgs(vq, sgs, out_num, in_num, cmd, GFP_ATOMIC); in __virtscsi_add_cmd()
/linux-6.6.21/drivers/gpu/drm/virtio/
Dvirtgpu_vq.c318 struct scatterlist **sgs, in virtio_gpu_queue_ctrl_sgs() argument
357 ret = virtqueue_add_sgs(vq, sgs, outcnt, incnt, vbuf, GFP_ATOMIC); in virtio_gpu_queue_ctrl_sgs()
375 struct scatterlist *sgs[3], vcmd, vout, vresp; in virtio_gpu_queue_fenced_ctrl_buffer() local
382 sgs[outcnt] = &vcmd; in virtio_gpu_queue_fenced_ctrl_buffer()
398 sgs[outcnt] = sgt->sgl; in virtio_gpu_queue_fenced_ctrl_buffer()
402 sgs[outcnt] = &vout; in virtio_gpu_queue_fenced_ctrl_buffer()
411 sgs[outcnt + incnt] = &vresp; in virtio_gpu_queue_fenced_ctrl_buffer()
415 ret = virtio_gpu_queue_ctrl_sgs(vgdev, vbuf, fence, elemcnt, sgs, outcnt, in virtio_gpu_queue_fenced_ctrl_buffer()
451 struct scatterlist *sgs[1], ccmd; in virtio_gpu_queue_cursor() local
461 sgs[0] = &ccmd; in virtio_gpu_queue_cursor()
[all …]
/linux-6.6.21/sound/soc/qcom/qdsp6/
Dq6apm.c178 struct audioreach_sub_graph *sgs; in __q6apm_find_module_by_mid() local
181 list_for_each_entry(sgs, &info->sg_list, node) { in __q6apm_find_module_by_mid()
182 list_for_each_entry(container, &sgs->container_list, node) { in __q6apm_find_module_by_mid()
369 struct audioreach_sub_graph *sgs; in q6apm_graph_media_format_pcm() local
373 list_for_each_entry(sgs, &info->sg_list, node) { in q6apm_graph_media_format_pcm()
374 list_for_each_entry(container, &sgs->container_list, node) { in q6apm_graph_media_format_pcm()
/linux-6.6.21/drivers/spi/
Dspi-mxs.c171 const int sgs = DIV_ROUND_UP(len, desc_len); in mxs_spi_txrx_dma() local
184 dma_xfer = kcalloc(sgs, sizeof(*dma_xfer), GFP_KERNEL); in mxs_spi_txrx_dma()
200 for (sg_count = 0; sg_count < sgs; sg_count++) { in mxs_spi_txrx_dma()
208 if ((sg_count + 1 == sgs) && (flags & TXRX_DEASSERT_CS)) in mxs_spi_txrx_dma()
/linux-6.6.21/net/vmw_vsock/
Dvirtio_transport.c103 struct scatterlist hdr, buf, *sgs[2]; in virtio_transport_send_pkt_work() local
116 sgs[out_sg++] = &hdr; in virtio_transport_send_pkt_work()
119 sgs[out_sg++] = &buf; in virtio_transport_send_pkt_work()
122 ret = virtqueue_add_sgs(vq, sgs, out_sg, in_sg, skb, GFP_KERNEL); in virtio_transport_send_pkt_work()
/linux-6.6.21/fs/fuse/
Dvirtio_fs.c1127 struct scatterlist **sgs = stack_sgs; in virtio_fs_enqueue_req() local
1143 sgs = kmalloc_array(total_sgs, sizeof(sgs[0]), GFP_ATOMIC); in virtio_fs_enqueue_req()
1145 if (!sgs || !sg) { in virtio_fs_enqueue_req()
1176 sgs[i] = &sg[i]; in virtio_fs_enqueue_req()
1187 ret = virtqueue_add_sgs(vq, sgs, out_sgs, in_sgs, req, GFP_ATOMIC); in virtio_fs_enqueue_req()
1216 if (sgs != stack_sgs) { in virtio_fs_enqueue_req()
1217 kfree(sgs); in virtio_fs_enqueue_req()
/linux-6.6.21/tools/virtio/linux/
Dvirtio.h34 struct scatterlist *sgs[],
/linux-6.6.21/drivers/virtio/
Dvirtio_ring.c545 struct scatterlist *sgs[], in virtqueue_add_split() argument
611 for (sg = sgs[n]; sg; sg = sg_next(sg)) { in virtqueue_add_split()
627 for (sg = sgs[n]; sg; sg = sg_next(sg)) { in virtqueue_add_split()
1284 struct scatterlist *sgs[], in virtqueue_add_indirect_packed() argument
1314 for (sg = sgs[n]; sg; sg = sg_next(sg)) { in virtqueue_add_indirect_packed()
1402 struct scatterlist *sgs[], in virtqueue_add_packed() argument
1433 err = virtqueue_add_indirect_packed(vq, sgs, total_sg, out_sgs, in virtqueue_add_packed()
1465 for (sg = sgs[n]; sg; sg = sg_next(sg)) { in virtqueue_add_packed()
2198 struct scatterlist *sgs[], in virtqueue_add() argument
2208 return vq->packed_ring ? virtqueue_add_packed(_vq, sgs, total_sg, in virtqueue_add()
[all …]
/linux-6.6.21/tools/virtio/
Dvringh_test.c444 struct scatterlist guest_sg[RINGSIZE], *sgs[2]; in main() local
509 sgs[0] = &guest_sg[0]; in main()
510 sgs[1] = &guest_sg[1]; in main()
514 err = virtqueue_add_sgs(vq, sgs, 1, 1, &err, GFP_KERNEL); in main()
/linux-6.6.21/drivers/block/
Dvirtio_blk.c142 struct scatterlist out_hdr, in_hdr, *sgs[3]; in virtblk_add_req() local
146 sgs[num_out++] = &out_hdr; in virtblk_add_req()
150 sgs[num_out++] = vbr->sg_table.sgl; in virtblk_add_req()
152 sgs[num_out + num_in++] = vbr->sg_table.sgl; in virtblk_add_req()
156 sgs[num_out + num_in++] = &in_hdr; in virtblk_add_req()
158 return virtqueue_add_sgs(vq, sgs, num_out, num_in, vbr, GFP_ATOMIC); in virtblk_add_req()
/linux-6.6.21/net/ceph/
Dmessenger_v2.c1077 struct scatterlist sgs[2]; in decrypt_control_remainder() local
1082 sg_init_table(sgs, 2); in decrypt_control_remainder()
1083 sg_set_buf(&sgs[0], con->v2.in_kvecs[0].iov_base, rem_len); in decrypt_control_remainder()
1084 sg_set_buf(&sgs[1], con->v2.in_buf, pt_len); in decrypt_control_remainder()
1086 return gcm_crypt(con, false, sgs, sgs, in decrypt_control_remainder()
1299 struct scatterlist sgs[2]; in prepare_head_secure_big() local
1302 sg_init_table(sgs, 2); in prepare_head_secure_big()
1303 sg_set_buf(&sgs[0], base, rem - base); in prepare_head_secure_big()
1304 sg_set_buf(&sgs[1], pmbl_tag, CEPH_GCM_TAG_LEN); in prepare_head_secure_big()
1305 ret = gcm_crypt(con, true, sgs, sgs, rem - base); in prepare_head_secure_big()
[all …]
/linux-6.6.21/drivers/net/
Dvirtio_net.c2469 struct scatterlist *sgs[4], hdr, stat; in virtnet_send_command() local
2481 sgs[out_num++] = &hdr; in virtnet_send_command()
2484 sgs[out_num++] = out; in virtnet_send_command()
2488 sgs[out_num] = &stat; in virtnet_send_command()
2490 BUG_ON(out_num + 1 > ARRAY_SIZE(sgs)); in virtnet_send_command()
2491 ret = virtqueue_add_sgs(vi->cvq, sgs, out_num, 1, vi, GFP_ATOMIC); in virtnet_send_command()
2951 struct scatterlist sgs[4]; in virtnet_commit_rss_command() local
2955 sg_init_table(sgs, 4); in virtnet_commit_rss_command()
2958 sg_set_buf(&sgs[0], &vi->ctrl->rss, sg_buf_size); in virtnet_commit_rss_command()
2961 sg_set_buf(&sgs[1], vi->ctrl->rss.indirection_table, sg_buf_size); in virtnet_commit_rss_command()
[all …]

12