Lines Matching refs:dspc
2948 struct scx_dsp_ctx *dspc = this_cpu_ptr(scx_dsp_ctx); in flush_dispatch_buf() local
2951 for (u = 0; u < dspc->cursor; u++) { in flush_dispatch_buf()
2952 struct scx_dsp_buf_ent *ent = &dspc->buf[u]; in flush_dispatch_buf()
2958 dspc->nr_tasks += dspc->cursor; in flush_dispatch_buf()
2959 dspc->cursor = 0; in flush_dispatch_buf()
2964 struct scx_dsp_ctx *dspc = this_cpu_ptr(scx_dsp_ctx); in balance_one() local
3015 dspc->rq = rq; in balance_one()
3025 dspc->nr_tasks = 0; in balance_one()
3054 } while (dspc->nr_tasks); in balance_one()
6127 struct scx_dsp_ctx *dspc = this_cpu_ptr(scx_dsp_ctx); in scx_dsq_insert_commit() local
6136 if (unlikely(dspc->cursor >= scx_dsp_max_batch)) { in scx_dsq_insert_commit()
6141 dspc->buf[dspc->cursor++] = (struct scx_dsp_buf_ent){ in scx_dsq_insert_commit()
6374 struct scx_dsp_ctx *dspc = this_cpu_ptr(scx_dsp_ctx); in scx_bpf_dispatch_cancel() local
6379 if (dspc->cursor > 0) in scx_bpf_dispatch_cancel()
6380 dspc->cursor--; in scx_bpf_dispatch_cancel()
6401 struct scx_dsp_ctx *dspc = this_cpu_ptr(scx_dsp_ctx); in scx_bpf_dsq_move_to_local() local
6407 flush_dispatch_buf(dspc->rq); in scx_bpf_dsq_move_to_local()
6415 if (consume_dispatch_q(dspc->rq, dsq)) { in scx_bpf_dsq_move_to_local()
6422 dspc->nr_tasks++; in scx_bpf_dsq_move_to_local()