/linux-6.3-rc2/arch/powerpc/platforms/powernv/ |
A D | opal-sensor-groups.c | 29 } *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 …]
|
/linux-6.3-rc2/drivers/crypto/rockchip/ |
A D | rk3288_crypto_skcipher.c | 22 struct scatterlist *sgs, *sgd; in rk_cipher_need_fallback() local 30 sgs = req->src; in rk_cipher_need_fallback() 32 while (sgs && sgd) { in rk_cipher_need_fallback() 56 sgs = sg_next(sgs); in rk_cipher_need_fallback() 327 sgs = areq->src; in rk_cipher_run() 331 if (!sgs->length) { in rk_cipher_run() 332 sgs = sg_next(sgs); in rk_cipher_run() 341 if (sgs == sgd) { in rk_cipher_run() 380 if (sgs == sgd) { in rk_cipher_run() 394 sgs = sg_next(sgs); in rk_cipher_run() [all …]
|
/linux-6.3-rc2/sound/virtio/ |
A D | virtio_pcm_msg.c | 23 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 …]
|
/linux-6.3-rc2/drivers/crypto/virtio/ |
A D | virtio_crypto_skcipher_algs.c | 162 sgs[num_out++] = &outhdr; in virtio_crypto_alg_skcipher_init_session() 166 sgs[num_out++] = &key_sg; in virtio_crypto_alg_skcipher_init_session() 228 sgs[num_out++] = &outhdr; in virtio_crypto_alg_skcipher_close_session() 359 sgs = kcalloc_node(sg_total, sizeof(*sgs), GFP_KERNEL, in __virtio_crypto_skcipher_do_req() 361 if (!sgs) in __virtio_crypto_skcipher_do_req() 367 kfree(sgs); in __virtio_crypto_skcipher_do_req() 413 sgs[num_out++] = &outhdr; in __virtio_crypto_skcipher_do_req() 434 sgs[num_out++] = &iv_sg; in __virtio_crypto_skcipher_do_req() 439 sgs[num_out++] = sg; in __virtio_crypto_skcipher_do_req() 449 vc_req->sgs = sgs; in __virtio_crypto_skcipher_do_req() [all …]
|
A D | virtio_crypto_akcipher_algs.c | 136 sgs[num_out++] = &outhdr_sg; in virtio_crypto_alg_akcipher_init_session() 139 sgs[num_out++] = &key_sg; in virtio_crypto_alg_akcipher_init_session() 142 sgs[num_out + num_in++] = &inhdr_sg; in virtio_crypto_alg_akcipher_init_session() 194 sgs[num_out++] = &outhdr_sg; in virtio_crypto_alg_akcipher_close_session() 197 sgs[num_out + num_in++] = &inhdr_sg; in virtio_crypto_alg_akcipher_close_session() 237 sgs[num_out++] = &outhdr_sg; in __virtio_crypto_akcipher_do_req() 248 sgs[num_out++] = &srcdata_sg; in __virtio_crypto_akcipher_do_req() 252 sgs[num_out++] = &srcdata_sg; in __virtio_crypto_akcipher_do_req() 260 sgs[num_out + num_in++] = &dstdata_sg; in __virtio_crypto_akcipher_do_req() 268 sgs[num_out + num_in++] = &inhdr_sg; in __virtio_crypto_akcipher_do_req() [all …]
|
A D | virtio_crypto_common.h | 103 struct scatterlist **sgs; member 145 int virtio_crypto_ctrl_vq_request(struct virtio_crypto *vcrypto, struct scatterlist *sgs[],
|
A D | virtio_crypto_core.c | 21 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() 481 kfree(vc_req->sgs); in virtcrypto_free_unused_reqs()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/ |
A D | loop6.c | 56 static inline struct scatterlist *get_sgp(struct scatterlist **sgs, int i) in get_sgp() argument 60 bpf_probe_read_kernel(&sgp, sizeof(sgp), sgs + i); in get_sgp() 68 int BPF_KPROBE(trace_virtqueue_add_sgs, void *unused, struct scatterlist **sgs, in BPF_KPROBE() argument 79 for (n = 0, sgp = get_sgp(sgs, i); sgp && (n < SG_MAX); in BPF_KPROBE() 88 for (n = 0, sgp = get_sgp(sgs, i); sgp && (n < SG_MAX); in BPF_KPROBE()
|
/linux-6.3-rc2/drivers/i2c/busses/ |
A D | i2c-virtio.c | 61 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.3-rc2/drivers/nvdimm/ |
A D | nd_virtio.c | 43 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.3-rc2/net/9p/ |
A D | trans_virtio.c | 261 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.3-rc2/kernel/sched/ |
A D | fair.c | 9177 if (sgs->sum_nr_running < sgs->group_weight) in group_has_capacity() 9202 if (sgs->sum_nr_running <= sgs->group_weight) in group_is_overloaded() 9274 sg_busy_cpus = sgs->group_weight - sgs->idle_cpus; in asym_smt_can_pull_tasks() 9363 memset(sgs, 0, sizeof(*sgs)); in update_sg_lb_stats() 9430 sgs->avg_load = (sgs->group_load * SCHED_CAPACITY_SCALE) / in update_sg_lb_stats() 9559 if (sgs->sum_h_nr_running > sgs->nr_numa_running) in fbq_classify_group() 9561 if (sgs->sum_h_nr_running > sgs->nr_preferred_running) in fbq_classify_group() 9647 memset(sgs, 0, sizeof(*sgs)); in update_sg_wakeup_stats() 9684 sgs->group_type = group_classify(sd->imbalance_pct, group, sgs); in update_sg_wakeup_stats() 9692 sgs->avg_load = (sgs->group_load * SCHED_CAPACITY_SCALE) / in update_sg_wakeup_stats() [all …]
|
/linux-6.3-rc2/drivers/gpio/ |
A D | gpio-virtio.c | 64 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.3-rc2/drivers/scsi/ |
A D | virtio_scsi.c | 432 struct scatterlist *sgs[6], req, resp; in __virtscsi_add_cmd() local 447 sgs[out_num++] = &req; in __virtscsi_add_cmd() 453 sgs[out_num++] = scsi_prot_sglist(sc); in __virtscsi_add_cmd() 454 sgs[out_num++] = out->sgl; in __virtscsi_add_cmd() 459 sgs[out_num + in_num++] = &resp; in __virtscsi_add_cmd() 465 sgs[out_num + in_num++] = scsi_prot_sglist(sc); in __virtscsi_add_cmd() 466 sgs[out_num + in_num++] = in->sgl; in __virtscsi_add_cmd() 469 return virtqueue_add_sgs(vq, sgs, out_num, in_num, cmd, GFP_ATOMIC); in __virtscsi_add_cmd()
|
/linux-6.3-rc2/sound/soc/qcom/qdsp6/ |
A D | q6apm.c | 178 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() 304 struct audioreach_sub_graph *sgs; in q6apm_graph_media_format_pcm() local 308 list_for_each_entry(sgs, &info->sg_list, node) { in q6apm_graph_media_format_pcm() 309 list_for_each_entry(container, &sgs->container_list, node) { in q6apm_graph_media_format_pcm()
|
/linux-6.3-rc2/drivers/gpu/drm/virtio/ |
A D | virtgpu_vq.c | 318 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.3-rc2/drivers/spi/ |
A D | spi-mxs.c | 171 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.3-rc2/drivers/virtio/ |
A D | virtio_ring.c | 524 struct scatterlist *sgs[], in virtqueue_add_split() argument 590 for (sg = sgs[n]; sg; sg = sg_next(sg)) { in virtqueue_add_split() 605 for (sg = sgs[n]; sg; sg = sg_next(sg)) { in virtqueue_add_split() 1243 struct scatterlist *sgs[], in virtqueue_add_indirect_packed() argument 1273 for (sg = sgs[n]; sg; sg = sg_next(sg)) { in virtqueue_add_indirect_packed() 1357 struct scatterlist *sgs[], in virtqueue_add_packed() argument 1420 for (sg = sgs[n]; sg; sg = sg_next(sg)) { in virtqueue_add_packed() 2105 struct scatterlist *sgs[], in virtqueue_add() argument 2117 virtqueue_add_split(_vq, sgs, total_sg, in virtqueue_add() 2136 struct scatterlist *sgs[], in virtqueue_add_sgs() argument [all …]
|
/linux-6.3-rc2/net/vmw_vsock/ |
A D | virtio_transport.c | 103 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.3-rc2/fs/fuse/ |
A D | virtio_fs.c | 1126 struct scatterlist **sgs = stack_sgs; in virtio_fs_enqueue_req() local 1142 sgs = kmalloc_array(total_sgs, sizeof(sgs[0]), GFP_ATOMIC); in virtio_fs_enqueue_req() 1144 if (!sgs || !sg) { in virtio_fs_enqueue_req() 1175 sgs[i] = &sg[i]; in virtio_fs_enqueue_req() 1186 ret = virtqueue_add_sgs(vq, sgs, out_sgs, in_sgs, req, GFP_ATOMIC); in virtio_fs_enqueue_req() 1215 if (sgs != stack_sgs) { in virtio_fs_enqueue_req() 1216 kfree(sgs); in virtio_fs_enqueue_req()
|
/linux-6.3-rc2/tools/virtio/linux/ |
A D | virtio.h | 34 struct scatterlist *sgs[],
|
/linux-6.3-rc2/tools/virtio/ |
A D | vringh_test.c | 444 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.3-rc2/net/ceph/ |
A D | messenger_v2.c | 1019 struct scatterlist sgs[2]; in decrypt_control_remainder() local 1024 sg_init_table(sgs, 2); in decrypt_control_remainder() 1026 sg_set_buf(&sgs[1], con->v2.in_buf, pt_len); in decrypt_control_remainder() 1028 return gcm_crypt(con, false, sgs, sgs, in decrypt_control_remainder() 1187 struct scatterlist sgs[2]; in prepare_head_secure_big() local 1190 sg_init_table(sgs, 2); in prepare_head_secure_big() 1191 sg_set_buf(&sgs[0], base, rem - base); in prepare_head_secure_big() 1192 sg_set_buf(&sgs[1], pmbl_tag, CEPH_GCM_TAG_LEN); in prepare_head_secure_big() 1193 ret = gcm_crypt(con, true, sgs, sgs, rem - base); in prepare_head_secure_big() 1201 sg_init_one(&sgs[0], rem, pmbl_tag - rem); in prepare_head_secure_big() [all …]
|
/linux-6.3-rc2/drivers/block/ |
A D | virtio_blk.c | 144 struct scatterlist out_hdr, in_hdr, *sgs[3]; in virtblk_add_req() local 148 sgs[num_out++] = &out_hdr; in virtblk_add_req() 152 sgs[num_out++] = vbr->sg_table.sgl; in virtblk_add_req() 154 sgs[num_out + num_in++] = vbr->sg_table.sgl; in virtblk_add_req() 158 sgs[num_out + num_in++] = &in_hdr; in virtblk_add_req() 160 return virtqueue_add_sgs(vq, sgs, num_out, num_in, vbr, GFP_ATOMIC); in virtblk_add_req()
|
/linux-6.3-rc2/include/linux/ |
A D | virtio.h | 58 struct scatterlist *sgs[],
|