/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
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() 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 …]
|
/kernel/linux/linux-5.10/drivers/crypto/virtio/ |
D | virtio_crypto_algs.c | 120 struct scatterlist outhdr, key_sg, inhdr, *sgs[3]; in virtio_crypto_alg_skcipher_init_session() local 156 sgs[num_out++] = &outhdr; in virtio_crypto_alg_skcipher_init_session() 160 sgs[num_out++] = &key_sg; in virtio_crypto_alg_skcipher_init_session() 164 sgs[num_out + num_in++] = &inhdr; in virtio_crypto_alg_skcipher_init_session() 166 err = virtqueue_add_sgs(vcrypto->ctrl_vq, sgs, num_out, in virtio_crypto_alg_skcipher_init_session() 208 struct scatterlist outhdr, status_sg, *sgs[2]; in virtio_crypto_alg_skcipher_close_session() local 233 sgs[num_out++] = &outhdr; in virtio_crypto_alg_skcipher_close_session() 238 sgs[num_out + num_in++] = &status_sg; in virtio_crypto_alg_skcipher_close_session() 240 err = virtqueue_add_sgs(vcrypto->ctrl_vq, sgs, num_out, in virtio_crypto_alg_skcipher_close_session() 352 struct scatterlist outhdr, iv_sg, status_sg, **sgs; in __virtio_crypto_skcipher_do_req() local [all …]
|
D | virtio_crypto_common.h | 94 struct scatterlist **sgs; member
|
D | virtio_crypto_core.c | 21 kfree(vc_req->sgs); in virtcrypto_clear_request() 426 kfree(vc_req->sgs); in virtcrypto_free_unused_reqs()
|
/kernel/linux/linux-5.10/drivers/nvdimm/ |
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()
|
/kernel/linux/linux-5.10/net/9p/ |
D | trans_virtio.c | 257 struct scatterlist *sgs[2]; in p9_virtio_request() local 270 sgs[out_sgs++] = chan->sg; in p9_virtio_request() 275 sgs[out_sgs + in_sgs++] = chan->sg + out; in p9_virtio_request() 277 err = virtqueue_add_sgs(chan->vq, sgs, out_sgs, in_sgs, req, in p9_virtio_request() 396 struct scatterlist *sgs[4]; in p9_virtio_zc_request() local 448 sgs[out_sgs++] = chan->sg; in p9_virtio_zc_request() 451 sgs[out_sgs++] = chan->sg + out; in p9_virtio_zc_request() 466 sgs[out_sgs + in_sgs++] = chan->sg + out; in p9_virtio_zc_request() 469 sgs[out_sgs + in_sgs++] = chan->sg + out + in; in p9_virtio_zc_request() 474 BUG_ON(out_sgs + in_sgs > ARRAY_SIZE(sgs)); in p9_virtio_zc_request() [all …]
|
/kernel/linux/linux-5.10/kernel/sched/ |
D | fair.c | 8575 group_has_capacity(unsigned int imbalance_pct, struct sg_lb_stats *sgs) in group_has_capacity() argument 8577 if (sgs->sum_nr_running < sgs->group_weight) in group_has_capacity() 8580 if ((sgs->group_capacity * imbalance_pct) < in group_has_capacity() 8581 (sgs->group_runnable * 100)) in group_has_capacity() 8584 if ((sgs->group_capacity * 100) > in group_has_capacity() 8585 (sgs->group_util * imbalance_pct)) in group_has_capacity() 8600 group_is_overloaded(unsigned int imbalance_pct, struct sg_lb_stats *sgs) in group_is_overloaded() argument 8602 if (sgs->sum_nr_running <= sgs->group_weight) in group_is_overloaded() 8605 if ((sgs->group_capacity * 100) < in group_is_overloaded() 8606 (sgs->group_util * imbalance_pct)) in group_is_overloaded() [all …]
|
/kernel/linux/linux-5.10/net/vmw_vsock/ |
D | virtio_transport.c | 103 struct scatterlist hdr, buf, *sgs[2]; in virtio_transport_send_pkt_work() local 123 sgs[out_sg++] = &hdr; in virtio_transport_send_pkt_work() 126 sgs[out_sg++] = &buf; in virtio_transport_send_pkt_work() 129 ret = virtqueue_add_sgs(vq, sgs, out_sg, in_sg, pkt, GFP_KERNEL); in virtio_transport_send_pkt_work() 249 struct scatterlist hdr, buf, *sgs[2]; in virtio_vsock_rx_fill() local 270 sgs[0] = &hdr; in virtio_vsock_rx_fill() 273 sgs[1] = &buf; in virtio_vsock_rx_fill() 274 ret = virtqueue_add_sgs(vq, sgs, 0, 2, pkt, GFP_KERNEL); in virtio_vsock_rx_fill()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/virtio/ |
D | virtgpu_vq.c | 321 struct scatterlist **sgs, in virtio_gpu_queue_ctrl_sgs() argument 360 ret = virtqueue_add_sgs(vq, sgs, outcnt, incnt, vbuf, GFP_ATOMIC); in virtio_gpu_queue_ctrl_sgs() 377 struct scatterlist *sgs[3], vcmd, vout, vresp; in virtio_gpu_queue_fenced_ctrl_buffer() local 384 sgs[outcnt] = &vcmd; in virtio_gpu_queue_fenced_ctrl_buffer() 400 sgs[outcnt] = sgt->sgl; in virtio_gpu_queue_fenced_ctrl_buffer() 404 sgs[outcnt] = &vout; in virtio_gpu_queue_fenced_ctrl_buffer() 413 sgs[outcnt + incnt] = &vresp; in virtio_gpu_queue_fenced_ctrl_buffer() 417 ret = virtio_gpu_queue_ctrl_sgs(vgdev, vbuf, fence, elemcnt, sgs, outcnt, in virtio_gpu_queue_fenced_ctrl_buffer() 453 struct scatterlist *sgs[1], ccmd; in virtio_gpu_queue_cursor() local 463 sgs[0] = &ccmd; in virtio_gpu_queue_cursor() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/ |
D | virtio_scsi.c | 423 struct scatterlist *sgs[6], req, resp; in __virtscsi_add_cmd() local 438 sgs[out_num++] = &req; in __virtscsi_add_cmd() 444 sgs[out_num++] = scsi_prot_sglist(sc); in __virtscsi_add_cmd() 445 sgs[out_num++] = out->sgl; in __virtscsi_add_cmd() 450 sgs[out_num + in_num++] = &resp; in __virtscsi_add_cmd() 456 sgs[out_num + in_num++] = scsi_prot_sglist(sc); in __virtscsi_add_cmd() 457 sgs[out_num + in_num++] = in->sgl; in __virtscsi_add_cmd() 460 return virtqueue_add_sgs(vq, sgs, out_num, in_num, cmd, GFP_ATOMIC); in __virtscsi_add_cmd()
|
/kernel/linux/linux-5.10/drivers/virtio/ |
D | virtio_ring.c | 416 struct scatterlist *sgs[], in virtqueue_add_split() argument 482 for (sg = sgs[n]; sg; sg = sg_next(sg)) { in virtqueue_add_split() 495 for (sg = sgs[n]; sg; sg = sg_next(sg)) { in virtqueue_add_split() 980 struct scatterlist *sgs[], in virtqueue_add_indirect_packed() argument 1010 for (sg = sgs[n]; sg; sg = sg_next(sg)) { in virtqueue_add_indirect_packed() 1094 struct scatterlist *sgs[], in virtqueue_add_packed() argument 1125 err = virtqueue_add_indirect_packed(vq, sgs, total_sg, out_sgs, in virtqueue_add_packed() 1157 for (sg = sgs[n]; sg; sg = sg_next(sg)) { in virtqueue_add_packed() 1706 struct scatterlist *sgs[], in virtqueue_add() argument 1716 return vq->packed_ring ? virtqueue_add_packed(_vq, sgs, total_sg, in virtqueue_add() [all …]
|
D | virtio_mem.c | 837 struct scatterlist *sgs[2], sg_req, sg_resp; in virtio_mem_send_request() local 846 sgs[0] = &sg_req; in virtio_mem_send_request() 850 sgs[1] = &sg_resp; in virtio_mem_send_request() 852 rc = virtqueue_add_sgs(vm->vq, sgs, 1, 1, vm, GFP_KERNEL); in virtio_mem_send_request()
|
/kernel/linux/linux-5.10/drivers/spi/ |
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()
|
D | spi.c | 876 int sgs; in spi_map_buf() local 885 sgs = DIV_ROUND_UP(len + offset_in_page(buf), desc_len); in spi_map_buf() 888 sgs = DIV_ROUND_UP(len, desc_len); in spi_map_buf() 893 ret = sg_alloc_table(sgt, sgs, GFP_KERNEL); in spi_map_buf() 898 for (i = 0; i < sgs; i++) { in spi_map_buf()
|
/kernel/linux/linux-5.10/tools/virtio/linux/ |
D | virtio.h | 31 struct scatterlist *sgs[],
|
/kernel/linux/linux-5.10/drivers/block/ |
D | virtio_blk.c | 95 struct scatterlist hdr, status, *sgs[3]; in virtblk_add_req() local 99 sgs[num_out++] = &hdr; in virtblk_add_req() 103 sgs[num_out++] = data_sg; in virtblk_add_req() 105 sgs[num_out + num_in++] = data_sg; in virtblk_add_req() 109 sgs[num_out + num_in++] = &status; in virtblk_add_req() 111 return virtqueue_add_sgs(vq, sgs, num_out, num_in, vbr, GFP_ATOMIC); in virtblk_add_req()
|
/kernel/linux/linux-5.10/fs/fuse/ |
D | virtio_fs.c | 1127 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()
|
/kernel/linux/linux-5.10/tools/virtio/ |
D | vringh_test.c | 443 struct scatterlist guest_sg[RINGSIZE], *sgs[2]; in main() local 507 sgs[0] = &guest_sg[0]; in main() 508 sgs[1] = &guest_sg[1]; in main() 512 err = virtqueue_add_sgs(vq, sgs, 1, 1, &err, GFP_KERNEL); in main()
|
/kernel/linux/linux-5.10/include/linux/ |
D | virtio.h | 54 struct scatterlist *sgs[],
|
D | nvme.h | 1391 __le16 sgs; member
|
/kernel/linux/linux-5.10/drivers/net/ |
D | virtio_net.c | 1725 struct scatterlist *sgs[4], hdr, stat; in virtnet_send_command() local 1736 sgs[out_num++] = &hdr; in virtnet_send_command() 1739 sgs[out_num++] = out; in virtnet_send_command() 1743 sgs[out_num] = &stat; in virtnet_send_command() 1745 BUG_ON(out_num + 1 > ARRAY_SIZE(sgs)); in virtnet_send_command() 1746 virtqueue_add_sgs(vi->cvq, sgs, out_num, 1, vi, GFP_ATOMIC); in virtnet_send_command()
|
/kernel/linux/linux-5.10/drivers/nvme/host/ |
D | nvme.h | 443 u16 sgs; member
|
D | core.c | 1863 if (ctrl->nr_streams && ns->sws && ns->sgs) in nvme_config_discard() 1864 size *= ns->sws * ns->sgs; in nvme_config_discard() 1926 ns->sgs = le16_to_cpu(s.sgs); in nvme_setup_streams_ns() 1930 if (ns->sgs) in nvme_setup_streams_ns() 1931 *io_opt = *phys_bs * ns->sgs; in nvme_setup_streams_ns()
|