Home
last modified time | relevance | path

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

12

/openbmc/linux/arch/powerpc/platforms/powernv/
H A 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()
202 if (!sgs[i].sg.attrs) { in opal_sensor_groups_init()
203 kfree(sgs[i].sgattrs); in opal_sensor_groups_init()
217 sgs[i].sg.name = sgs[i].name; in opal_sensor_groups_init()
220 sgs[i].sg.name); in opal_sensor_groups_init()
231 kfree(sgs[i].sgattrs); in opal_sensor_groups_init()
[all …]
/openbmc/linux/drivers/crypto/rockchip/
H A 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()
62 sgs = sg_next(sgs); in rk_cipher_need_fallback()
333 sgs = areq->src; in rk_cipher_run()
337 if (!sgs->length) { in rk_cipher_run()
338 sgs = sg_next(sgs); in rk_cipher_run()
347 if (sgs == sgd) { in rk_cipher_run()
386 if (sgs == sgd) { in rk_cipher_run()
400 sgs = sg_next(sgs); in rk_cipher_run()
[all …]
/openbmc/linux/sound/virtio/
H A Dvirtio_pcm_msg.c23 struct scatterlist sgs[]; member
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()
217 &msg->sgs[PCM_MSG_SG_XFER], in virtsnd_pcm_msg_send()
218 &msg->sgs[PCM_MSG_SG_DATA], in virtsnd_pcm_msg_send()
[all …]
/openbmc/linux/drivers/crypto/virtio/
H A Dvirtio_crypto_skcipher_algs.c159 sgs[num_out++] = &outhdr; in virtio_crypto_alg_skcipher_init_session()
163 sgs[num_out++] = &key_sg; in virtio_crypto_alg_skcipher_init_session()
225 sgs[num_out++] = &outhdr; in virtio_crypto_alg_skcipher_close_session()
356 sgs = kcalloc_node(sg_total, sizeof(*sgs), GFP_KERNEL, in __virtio_crypto_skcipher_do_req()
358 if (!sgs) in __virtio_crypto_skcipher_do_req()
364 kfree(sgs); in __virtio_crypto_skcipher_do_req()
410 sgs[num_out++] = &outhdr; in __virtio_crypto_skcipher_do_req()
431 sgs[num_out++] = &iv_sg; in __virtio_crypto_skcipher_do_req()
436 sgs[num_out++] = sg; in __virtio_crypto_skcipher_do_req()
446 vc_req->sgs = sgs; in __virtio_crypto_skcipher_do_req()
[all …]
H A Dvirtio_crypto_akcipher_algs.c137 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()
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()
238 sgs[num_out++] = &outhdr_sg; in __virtio_crypto_akcipher_do_req()
249 sgs[num_out++] = &srcdata_sg; in __virtio_crypto_akcipher_do_req()
253 sgs[num_out++] = &srcdata_sg; in __virtio_crypto_akcipher_do_req()
261 sgs[num_out + num_in++] = &dstdata_sg; in __virtio_crypto_akcipher_do_req()
269 sgs[num_out + num_in++] = &inhdr_sg; in __virtio_crypto_akcipher_do_req()
[all …]
H A Dvirtio_crypto_common.h108 struct scatterlist **sgs; member
150 int virtio_crypto_ctrl_vq_request(struct virtio_crypto *vcrypto, struct scatterlist *sgs[],
H A 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()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A 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()
/openbmc/u-boot/drivers/virtio/
H A Dvirtio_blk.c24 struct virtio_sg *sgs[3]; in virtio_blk_do_req() local
36 sgs[num_out++] = &hdr_sg; in virtio_blk_do_req()
39 sgs[num_out++] = &data_sg; in virtio_blk_do_req()
41 sgs[num_out + num_in++] = &data_sg; in virtio_blk_do_req()
43 sgs[num_out + num_in++] = &status_sg; in virtio_blk_do_req()
45 ret = virtqueue_add(priv->vq, sgs, num_out, num_in); in virtio_blk_do_req()
H A Dvirtio_net.c55 struct virtio_sg *sgs[] = { &sg }; in virtio_net_start() local
65 virtqueue_add(priv->rx_vq, sgs, 0, 1); in virtio_net_start()
84 struct virtio_sg *sgs[] = { &hdr_sg, &data_sg }; in virtio_net_send() local
95 ret = virtqueue_add(priv->tx_vq, sgs, 2, 0); in virtio_net_send()
128 struct virtio_sg *sgs[] = { &sg }; in virtio_net_free_pkt() local
131 virtqueue_add(priv->rx_vq, sgs, 0, 1); in virtio_net_free_pkt()
H A Dvirtio_ring.c16 int virtqueue_add(struct virtqueue *vq, struct virtio_sg *sgs[], in virtqueue_add() argument
46 struct virtio_sg *sg = sgs[n]; in virtqueue_add()
56 struct virtio_sg *sg = sgs[n]; in virtqueue_add()
/openbmc/linux/drivers/i2c/busses/
H A 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()
/openbmc/linux/drivers/nvdimm/
H A Dnd_virtio.c43 struct scatterlist *sgs[2], sg, ret; in virtio_pmem_flush() local
67 sgs[0] = &sg; in virtio_pmem_flush()
69 sgs[1] = &ret; in virtio_pmem_flush()
78 while ((err = virtqueue_add_sgs(vpmem->req_vq, sgs, 1, 1, req_data, in virtio_pmem_flush()
/openbmc/linux/net/9p/
H A 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 …]
/openbmc/linux/kernel/sched/
H A Dfair.c9643 if (sgs->sum_nr_running < sgs->group_weight) in group_has_capacity()
9668 if (sgs->sum_nr_running <= sgs->group_weight) in group_is_overloaded()
9761 if (sgs->group_weight - sgs->idle_cpus != 1) in sched_asym()
9862 memset(sgs, 0, sizeof(*sgs)); in update_sg_lb_stats()
9933 sgs->avg_load = (sgs->group_load * SCHED_CAPACITY_SCALE) / in update_sg_lb_stats()
10097 if (sgs->sum_h_nr_running > sgs->nr_numa_running) in fbq_classify_group()
10099 if (sgs->sum_h_nr_running > sgs->nr_preferred_running) in fbq_classify_group()
10185 memset(sgs, 0, sizeof(*sgs)); in update_sg_wakeup_stats()
10222 sgs->group_type = group_classify(sd->imbalance_pct, group, sgs); in update_sg_wakeup_stats()
10230 sgs->avg_load = (sgs->group_load * SCHED_CAPACITY_SCALE) / in update_sg_wakeup_stats()
[all …]
/openbmc/linux/drivers/gpio/
H A 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()
/openbmc/linux/drivers/scsi/
H A 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()
/openbmc/linux/drivers/gpu/drm/virtio/
H A 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 …]
/openbmc/linux/sound/soc/qcom/qdsp6/
H A 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()
/openbmc/linux/tools/virtio/linux/
H A Dvirtio.h34 struct scatterlist *sgs[],
/openbmc/linux/drivers/spi/
H A 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()
/openbmc/linux/net/vmw_vsock/
H A Dvirtio_transport.c103 struct scatterlist hdr, buf, *sgs[2]; in virtio_transport_send_pkt_work() local
115 sgs[out_sg++] = &hdr; in virtio_transport_send_pkt_work()
118 sgs[out_sg++] = &buf; in virtio_transport_send_pkt_work()
121 ret = virtqueue_add_sgs(vq, sgs, out_sg, in_sg, skb, GFP_KERNEL); in virtio_transport_send_pkt_work()
/openbmc/linux/fs/fuse/
H A Dvirtio_fs.c1137 struct scatterlist **sgs = stack_sgs; in virtio_fs_enqueue_req() local
1153 sgs = kmalloc_array(total_sgs, sizeof(sgs[0]), GFP_ATOMIC); in virtio_fs_enqueue_req()
1155 if (!sgs || !sg) { in virtio_fs_enqueue_req()
1186 sgs[i] = &sg[i]; in virtio_fs_enqueue_req()
1197 ret = virtqueue_add_sgs(vq, sgs, out_sgs, in_sgs, req, GFP_ATOMIC); in virtio_fs_enqueue_req()
1226 if (sgs != stack_sgs) { in virtio_fs_enqueue_req()
1227 kfree(sgs); in virtio_fs_enqueue_req()
/openbmc/linux/drivers/virtio/
H A 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
1465 for (sg = sgs[n]; sg; sg = sg_next(sg)) { in virtqueue_add_packed()
2198 struct scatterlist *sgs[], in virtqueue_add() argument
2210 virtqueue_add_split(_vq, sgs, total_sg, in virtqueue_add()
2229 struct scatterlist *sgs[], in virtqueue_add_sgs() argument
[all …]
/openbmc/linux/tools/virtio/
H A 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()

12