Home
last modified time | relevance | path

Searched refs:cbs (Results 1 – 25 of 74) sorted by relevance

123

/linux-6.6.21/drivers/gpu/drm/vmwgfx/
Dvmwgfx_binding.c125 static int vmw_binding_emit_dirty(struct vmw_ctx_binding_state *cbs);
284 vmw_cbs_context(const struct vmw_ctx_binding_state *cbs) in vmw_cbs_context() argument
286 if (list_empty(&cbs->list)) in vmw_cbs_context()
289 return list_first_entry(&cbs->list, struct vmw_ctx_bindinfo, in vmw_cbs_context()
302 vmw_binding_loc(struct vmw_ctx_binding_state *cbs, in vmw_binding_loc() argument
308 return (struct vmw_ctx_bindinfo *)((u8 *) cbs + offset); in vmw_binding_loc()
339 void vmw_binding_add(struct vmw_ctx_binding_state *cbs, in vmw_binding_add() argument
344 vmw_binding_loc(cbs, bi->bt, shader_slot, slot); in vmw_binding_add()
352 list_add(&loc->ctx_list, &cbs->list); in vmw_binding_add()
367 void vmw_binding_cb_offset_update(struct vmw_ctx_binding_state *cbs, in vmw_binding_cb_offset_update() argument
[all …]
Dvmwgfx_binding.h217 extern void vmw_binding_add(struct vmw_ctx_binding_state *cbs,
220 extern void vmw_binding_cb_offset_update(struct vmw_ctx_binding_state *cbs,
222 extern void vmw_binding_add_uav_index(struct vmw_ctx_binding_state *cbs,
229 extern int vmw_binding_rebind_all(struct vmw_ctx_binding_state *cbs);
230 extern void vmw_binding_state_kill(struct vmw_ctx_binding_state *cbs);
231 extern void vmw_binding_state_scrub(struct vmw_ctx_binding_state *cbs);
234 extern void vmw_binding_state_free(struct vmw_ctx_binding_state *cbs);
236 vmw_binding_state_list(struct vmw_ctx_binding_state *cbs);
237 extern void vmw_binding_state_reset(struct vmw_ctx_binding_state *cbs);
Dvmwgfx_context.c38 struct vmw_ctx_binding_state *cbs; member
156 vmw_binding_state_kill(uctx->cbs); in vmw_hw_context_destroy()
207 uctx->cbs = vmw_binding_state_alloc(dev_priv); in vmw_gb_context_init()
208 if (IS_ERR(uctx->cbs)) { in vmw_gb_context_init()
209 ret = PTR_ERR(uctx->cbs); in vmw_gb_context_init()
393 vmw_binding_state_scrub(uctx->cbs); in vmw_gb_context_unbind()
559 vmw_binding_state_scrub(uctx->cbs); in vmw_dx_context_scrub_cotables()
692 if (ctx->cbs) in vmw_user_context_free()
693 vmw_binding_state_free(ctx->cbs); in vmw_user_context_free()
811 return vmw_binding_state_list(uctx->cbs); in vmw_context_binding_list()
[all …]
/linux-6.6.21/kernel/bpf/
Ddisasm.c16 static const char *__func_get_name(const struct bpf_insn_cbs *cbs, in __func_get_name() argument
27 if (cbs && cbs->cb_call) { in __func_get_name()
30 res = cbs->cb_call(cbs->private_data, insn); in __func_get_name()
43 static const char *__func_imm_name(const struct bpf_insn_cbs *cbs, in __func_imm_name() argument
47 if (cbs && cbs->cb_imm) in __func_imm_name()
48 return cbs->cb_imm(cbs->private_data, insn, full_imm); in __func_imm_name()
169 void print_bpf_insn(const struct bpf_insn_cbs *cbs, in print_bpf_insn() argument
173 const bpf_insn_print_t verbose = cbs->cb_print; in print_bpf_insn()
179 print_bpf_bswap_insn(verbose, cbs->private_data, insn); in print_bpf_insn()
181 print_bpf_end_insn(verbose, cbs->private_data, insn); in print_bpf_insn()
[all …]
Ddisasm.h37 void print_bpf_insn(const struct bpf_insn_cbs *cbs,
/linux-6.6.21/tools/testing/selftests/bpf/
Ddisasm.c16 static const char *__func_get_name(const struct bpf_insn_cbs *cbs, in __func_get_name() argument
27 if (cbs && cbs->cb_call) { in __func_get_name()
30 res = cbs->cb_call(cbs->private_data, insn); in __func_get_name()
43 static const char *__func_imm_name(const struct bpf_insn_cbs *cbs, in __func_imm_name() argument
47 if (cbs && cbs->cb_imm) in __func_imm_name()
48 return cbs->cb_imm(cbs->private_data, insn, full_imm); in __func_imm_name()
169 void print_bpf_insn(const struct bpf_insn_cbs *cbs, in print_bpf_insn() argument
173 const bpf_insn_print_t verbose = cbs->cb_print; in print_bpf_insn()
179 print_bpf_bswap_insn(verbose, cbs->private_data, insn); in print_bpf_insn()
181 print_bpf_end_insn(verbose, cbs->private_data, insn); in print_bpf_insn()
[all …]
Ddisasm.h37 void print_bpf_insn(const struct bpf_insn_cbs *cbs,
/linux-6.6.21/drivers/net/ethernet/microchip/lan966x/
Dlan966x_cbs.c9 u32 cir, cbs; in lan966x_cbs_add() local
20 cbs = (qopt->idleslope - qopt->sendslope) * in lan966x_cbs_add()
29 cbs = DIV_ROUND_UP(cbs, 4096); in lan966x_cbs_add()
31 cbs = cbs ?: 1; in lan966x_cbs_add()
35 cbs > GENMASK(6, 0)) in lan966x_cbs_add()
45 QSYS_CIR_CFG_CIR_BURST_SET(cbs), in lan966x_cbs_add()
Dlan966x_tbf.c11 u32 cir, cbs; in lan966x_tbf_add() local
26 cbs = qopt->replace_params.max_size; in lan966x_tbf_add()
33 cbs = DIV_ROUND_UP(cbs, 4096); in lan966x_tbf_add()
35 cbs = cbs ?: 1; in lan966x_tbf_add()
39 cbs > GENMASK(6, 0)) in lan966x_tbf_add()
49 QSYS_CIR_CFG_CIR_BURST_SET(cbs), in lan966x_tbf_add()
/linux-6.6.21/drivers/net/ethernet/mscc/
Docelot_police.c27 u32 cir = 0, cbs = 0, pir = 0, pbs = 0; in qos_policer_conf_set() local
48 cbs = conf->cbs; in qos_policer_conf_set()
49 if (cir == 0 && cbs == 0) { in qos_policer_conf_set()
55 cbs = DIV_ROUND_UP(cbs, 4096); in qos_policer_conf_set()
56 cbs = (cbs ? cbs : 1); /* No zero burst size */ in qos_policer_conf_set()
125 if (cbs > cbs_max) { in qos_policer_conf_set()
128 pol_ix, cbs, cbs_max); in qos_policer_conf_set()
151 ANA_POL_CIR_CFG_CIR_BURST(cbs), in qos_policer_conf_set()
Docelot_police.h28 u32 cbs; /* CBS in bytes/frames (ignored in SLB mode) */ member
/linux-6.6.21/net/sched/
Dsch_cbs.c253 struct tc_cbs_qopt_offload cbs = { }; in cbs_disable_offload() local
267 cbs.queue = q->queue; in cbs_disable_offload()
268 cbs.enable = 0; in cbs_disable_offload()
270 err = ops->ndo_setup_tc(dev, TC_SETUP_QDISC_CBS, &cbs); in cbs_disable_offload()
273 cbs.queue); in cbs_disable_offload()
281 struct tc_cbs_qopt_offload cbs = { }; in cbs_enable_offload() local
289 cbs.queue = q->queue; in cbs_enable_offload()
291 cbs.enable = 1; in cbs_enable_offload()
292 cbs.hicredit = opt->hicredit; in cbs_enable_offload()
293 cbs.locredit = opt->locredit; in cbs_enable_offload()
[all …]
/linux-6.6.21/drivers/net/ethernet/qlogic/qed/
Dqed_ll2.c58 const struct qed_ll2_cb_ops *cbs; member
106 if (cdev->ll2->cbs && cdev->ll2->cbs->tx_cb) in qed_ll2b_complete_tx_packet()
107 cdev->ll2->cbs->tx_cb(cdev->ll2->cb_cookie, skb, in qed_ll2b_complete_tx_packet()
225 if (cdev->ll2->cbs && cdev->ll2->cbs->rx_cb) { in qed_ll2b_complete_rx_packet()
229 cdev->ll2->cbs->rx_cb(cdev->ll2->cb_cookie, skb, in qed_ll2b_complete_rx_packet()
337 p_ll2_conn->cbs.tx_release_cb(p_ll2_conn->cbs.cookie, in qed_ll2_txq_flush()
401 p_ll2_conn->cbs.tx_comp_cb(p_ll2_conn->cbs.cookie, in qed_ll2_txq_completion()
463 if (!p_ll2_conn->cbs.slowpath_cb) { in qed_ll2_handle_slowpath()
471 p_ll2_conn->cbs.slowpath_cb(p_ll2_conn->cbs.cookie, in qed_ll2_handle_slowpath()
519 p_ll2_conn->cbs.rx_comp_cb(p_ll2_conn->cbs.cookie, &data); in qed_ll2_rxq_handle_completion()
[all …]
/linux-6.6.21/drivers/misc/sgi-gru/
Dgru_instructions.h638 struct gru_control_block_status *cbs = (void *)cb; in gru_get_cb_status() local
640 return cbs->istatus; in gru_get_cb_status()
646 struct gru_control_block_status *cbs = (void *)cb; in gru_get_cb_message_queue_substatus() local
648 return cbs->isubstatus & CBSS_MSG_QUEUE_MASK; in gru_get_cb_message_queue_substatus()
654 struct gru_control_block_status *cbs = (void *)cb; in gru_get_cb_substatus() local
656 return cbs->isubstatus; in gru_get_cb_substatus()
667 struct gru_control_block_status *cbs = (void *)cb; in gru_check_status() local
670 ret = cbs->istatus; in gru_check_status()
/linux-6.6.21/drivers/gpu/drm/nouveau/dispnv04/
Darb.c58 int found, mclk_extra, mclk_loop, cbs, m1, p1; in nv04_calc_arb() local
69 cbs = 128; in nv04_calc_arb()
92 m1 = clwm + cbs - 512; in nv04_calc_arb()
103 fifo->burst = cbs; in nv04_calc_arb()
/linux-6.6.21/tools/bpf/bpftool/
Dxlated_dumper.c222 const struct bpf_insn_cbs cbs = { in dump_xlated_json() local
271 print_bpf_insn(&cbs, insn + i, true); in dump_xlated_json()
307 const struct bpf_insn_cbs cbs = { in dump_xlated_plain() local
353 print_bpf_insn(&cbs, insn + i, true); in dump_xlated_plain()
371 const struct bpf_insn_cbs cbs = { in dump_xlated_for_graph() local
419 print_bpf_insn(&cbs, cur, true); in dump_xlated_for_graph()
/linux-6.6.21/drivers/net/ethernet/intel/
De100.c534 struct param_range cbs; member
556 struct cb *cbs; member
1039 struct param_range cbs = { .min = 64, .max = 256, .count = 128 }; in e100_get_defaults() local
1047 nic->params.cbs = cbs; in e100_get_defaults()
1820 (int)(((void*)cb - (void*)nic->cbs)/sizeof(struct cb)), in e100_tx_clean()
1850 if (nic->cbs) { in e100_clean_cbs()
1851 while (nic->cbs_avail != nic->params.cbs.count) { in e100_clean_cbs()
1863 dma_pool_free(nic->cbs_pool, nic->cbs, nic->cbs_dma_addr); in e100_clean_cbs()
1864 nic->cbs = NULL; in e100_clean_cbs()
1869 nic->cbs; in e100_clean_cbs()
[all …]
/linux-6.6.21/drivers/net/dsa/sja1105/
Dsja1105_main.c2159 if (priv->cbs[i].port == port && priv->cbs[i].prio == prio) in sja1105_find_cbs_shaper()
2173 if (!priv->cbs[i].idle_slope && !priv->cbs[i].send_slope) in sja1105_find_unused_cbs_shaper()
2185 struct sja1105_cbs_entry *cbs = &priv->cbs[i]; in sja1105_delete_cbs_shaper() local
2187 if (cbs->port == port && cbs->prio == prio) { in sja1105_delete_cbs_shaper()
2188 memset(cbs, 0, sizeof(*cbs)); in sja1105_delete_cbs_shaper()
2190 i, cbs, true); in sja1105_delete_cbs_shaper()
2201 struct sja1105_cbs_entry *cbs; in sja1105_setup_tc_cbs() local
2217 cbs = &priv->cbs[index]; in sja1105_setup_tc_cbs()
2218 cbs->port = port; in sja1105_setup_tc_cbs()
2219 cbs->prio = offload->queue; in sja1105_setup_tc_cbs()
[all …]
/linux-6.6.21/kernel/rcu/
Dtree_stall.h886 unsigned long cbs = 0; in show_rcu_gp_kthreads() local
940 cbs += data_race(READ_ONCE(rdp->n_cbs_invoked)); in show_rcu_gp_kthreads()
944 pr_info("RCU callbacks invoked since boot: %lu\n", cbs); in show_rcu_gp_kthreads()
1014 unsigned long cbs; in rcu_fwd_progress_check() local
1033 cbs = rcu_get_n_cbs_cpu(cpu); in rcu_fwd_progress_check()
1034 if (!cbs) in rcu_fwd_progress_check()
1038 pr_cont(" %d: %lu", cpu, cbs); in rcu_fwd_progress_check()
1039 if (cbs <= max_cbs) in rcu_fwd_progress_check()
1041 max_cbs = cbs; in rcu_fwd_progress_check()
/linux-6.6.21/drivers/infiniband/hw/qedr/
Dqedr_roce_cm.c266 struct qed_ll2_cbs cbs; in qedr_ll2_start() local
270 cbs.rx_comp_cb = qedr_ll2_complete_rx_packet; in qedr_ll2_start()
271 cbs.tx_comp_cb = qedr_ll2_complete_tx_packet; in qedr_ll2_start()
272 cbs.rx_release_cb = qedr_ll2_release_rx_packet; in qedr_ll2_start()
273 cbs.tx_release_cb = qedr_ll2_complete_tx_packet; in qedr_ll2_start()
274 cbs.cookie = dev; in qedr_ll2_start()
289 data.cbs = &cbs; in qedr_ll2_start()
/linux-6.6.21/drivers/video/fbdev/nvidia/
Dnv_hw.c246 int found, mclk_extra, mclk_loop, cbs, m1, p1; in nv4CalcArbitration() local
263 cbs = 128; in nv4CalcArbitration()
304 cbs * 1000 * 1000 / 16 / nvclk_freq; in nv4CalcArbitration()
307 cbs * 1000 * 1000 / (8 * width) / in nv4CalcArbitration()
341 m1 = clwm + cbs - 512; in nv4CalcArbitration()
420 int found, mclk_extra, mclk_loop, cbs, m1; in nv10CalcArbitration() local
441 cbs = 512; in nv10CalcArbitration()
559 cbs = 512; in nv10CalcArbitration()
572 m1 = clwm + cbs - 1024; /* Amount of overfill */ in nv10CalcArbitration()
583 if (cbs <= 32) { in nv10CalcArbitration()
[all …]
/linux-6.6.21/drivers/net/ethernet/freescale/enetc/
Denetc_qos.c237 struct tc_cbs_qopt_offload *cbs = type_data; in enetc_setup_tc_cbs() local
244 u8 tc = cbs->queue; in enetc_setup_tc_cbs()
256 if (!cbs->enable) { in enetc_setup_tc_cbs()
274 if (cbs->idleslope - cbs->sendslope != port_transmit_rate * 1000L || in enetc_setup_tc_cbs()
275 cbs->idleslope < 0 || cbs->sendslope > 0) in enetc_setup_tc_cbs()
280 bw = cbs->idleslope / (port_transmit_rate * 10UL); in enetc_setup_tc_cbs()
456 u32 cbs; member
884 fmi_config->cbs = cpu_to_le32(fmi->cbs); in enetc_flowmeter_hw_set()
1293 fmi->cbs = entryp->police.burst; in enetc_psfp_parse_clsflower()
/linux-6.6.21/drivers/net/ethernet/amd/xgbe/
Dxgbe-dcb.c132 ets->cbs = pdata->ets->cbs; in xgbe_dcb_ieee_getets()
/linux-6.6.21/drivers/video/fbdev/riva/
Driva_hw.c660 int found, mclk_extra, mclk_loop, cbs, m1, p1; in nv4CalcArbitration() local
677 cbs = 128; in nv4CalcArbitration()
718 video_fill_us = cbs*1000*1000 / 16 / nvclk_freq ; in nv4CalcArbitration()
720 video_fill_us = cbs*1000*1000 / (8 * width) / mclk_freq; in nv4CalcArbitration()
751 m1 = clwm + cbs - 512; in nv4CalcArbitration()
842 int found, mclk_extra, mclk_loop, cbs, m1; in nv10CalcArbitration() local
863 cbs = 512; in nv10CalcArbitration()
986 cbs = 512; in nv10CalcArbitration()
1001 m1 = clwm + cbs - 1024; /* Amount of overfill */ in nv10CalcArbitration()
1012 if(cbs <= 32) { in nv10CalcArbitration()
[all …]
/linux-6.6.21/drivers/dma/ppc4xx/
Dxor.h70 u32 cbs; /* status */ member

123