Home
last modified time | relevance | path

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

12

/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()
362 void vmw_binding_add_uav_index(struct vmw_ctx_binding_state *cbs, uint32 slot, in vmw_binding_add_uav_index() argument
[all …]
Dvmwgfx_binding.h217 extern void vmw_binding_add(struct vmw_ctx_binding_state *cbs,
220 extern void vmw_binding_add_uav_index(struct vmw_ctx_binding_state *cbs,
227 extern int vmw_binding_rebind_all(struct vmw_ctx_binding_state *cbs);
228 extern void vmw_binding_state_kill(struct vmw_ctx_binding_state *cbs);
229 extern void vmw_binding_state_scrub(struct vmw_ctx_binding_state *cbs);
232 extern void vmw_binding_state_free(struct vmw_ctx_binding_state *cbs);
234 vmw_binding_state_list(struct vmw_ctx_binding_state *cbs);
235 extern void vmw_binding_state_reset(struct vmw_ctx_binding_state *cbs);
Dvmwgfx_context.c37 struct vmw_ctx_binding_state *cbs; member
154 vmw_binding_state_kill(uctx->cbs); in vmw_hw_context_destroy()
205 uctx->cbs = vmw_binding_state_alloc(dev_priv); in vmw_gb_context_init()
206 if (IS_ERR(uctx->cbs)) { in vmw_gb_context_init()
207 ret = PTR_ERR(uctx->cbs); in vmw_gb_context_init()
391 vmw_binding_state_scrub(uctx->cbs); in vmw_gb_context_unbind()
557 vmw_binding_state_scrub(uctx->cbs); in vmw_dx_context_scrub_cotables()
691 if (ctx->cbs) in vmw_user_context_free()
692 vmw_binding_state_free(ctx->cbs); in vmw_user_context_free()
833 return vmw_binding_state_list(uctx->cbs); in vmw_context_binding_list()
[all …]
/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()
122 if (cbs > cbs_max) { in qos_policer_conf_set()
124 port, cbs, cbs_max); in qos_policer_conf_set()
147 ANA_POL_CIR_CFG_CIR_BURST(cbs), in qos_policer_conf_set()
Docelot_police.h27 u32 cbs; /* CBS in bytes/frames (ignored in SLB mode) */ member
/drivers/net/ethernet/qlogic/qed/
Dqed_ll2.c55 const struct qed_ll2_cb_ops *cbs; member
80 if (cdev->ll2->cbs && cdev->ll2->cbs->tx_cb) in qed_ll2b_complete_tx_packet()
81 cdev->ll2->cbs->tx_cb(cdev->ll2->cb_cookie, skb, in qed_ll2b_complete_tx_packet()
199 if (cdev->ll2->cbs && cdev->ll2->cbs->rx_cb) { in qed_ll2b_complete_rx_packet()
203 cdev->ll2->cbs->rx_cb(cdev->ll2->cb_cookie, skb, in qed_ll2b_complete_rx_packet()
311 p_ll2_conn->cbs.tx_release_cb(p_ll2_conn->cbs.cookie, in qed_ll2_txq_flush()
375 p_ll2_conn->cbs.tx_comp_cb(p_ll2_conn->cbs.cookie, in qed_ll2_txq_completion()
437 if (!p_ll2_conn->cbs.slowpath_cb) { in qed_ll2_handle_slowpath()
445 p_ll2_conn->cbs.slowpath_cb(p_ll2_conn->cbs.cookie, in qed_ll2_handle_slowpath()
493 p_ll2_conn->cbs.rx_comp_cb(p_ll2_conn->cbs.cookie, &data); in qed_ll2_rxq_handle_completion()
[all …]
Dqed_iwarp.c2639 struct qed_ll2_cbs cbs; in qed_iwarp_ll2_start() local
2659 cbs.rx_comp_cb = qed_iwarp_ll2_comp_syn_pkt; in qed_iwarp_ll2_start()
2660 cbs.rx_release_cb = qed_iwarp_ll2_rel_rx_pkt; in qed_iwarp_ll2_start()
2661 cbs.tx_comp_cb = qed_iwarp_ll2_comp_tx_pkt; in qed_iwarp_ll2_start()
2662 cbs.tx_release_cb = qed_iwarp_ll2_rel_tx_pkt; in qed_iwarp_ll2_start()
2663 cbs.slowpath_cb = NULL; in qed_iwarp_ll2_start()
2664 cbs.cookie = p_hwfn; in qed_iwarp_ll2_start()
2677 data.cbs = &cbs; in qed_iwarp_ll2_start()
2726 cbs.rx_comp_cb = qed_iwarp_ll2_comp_mpa_pkt; in qed_iwarp_ll2_start()
2727 cbs.slowpath_cb = qed_iwarp_ll2_slowpath; in qed_iwarp_ll2_start()
[all …]
Dqed_ll2.h114 struct qed_ll2_cbs cbs; member
/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()
/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()
/drivers/net/dsa/sja1105/
Dsja1105_main.c2035 if (priv->cbs[i].port == port && priv->cbs[i].prio == prio) in sja1105_find_cbs_shaper()
2049 if (!priv->cbs[i].idle_slope && !priv->cbs[i].send_slope) in sja1105_find_unused_cbs_shaper()
2061 struct sja1105_cbs_entry *cbs = &priv->cbs[i]; in sja1105_delete_cbs_shaper() local
2063 if (cbs->port == port && cbs->prio == prio) { in sja1105_delete_cbs_shaper()
2064 memset(cbs, 0, sizeof(*cbs)); in sja1105_delete_cbs_shaper()
2066 i, cbs, true); in sja1105_delete_cbs_shaper()
2077 struct sja1105_cbs_entry *cbs; in sja1105_setup_tc_cbs() local
2093 cbs = &priv->cbs[index]; in sja1105_setup_tc_cbs()
2094 cbs->port = port; in sja1105_setup_tc_cbs()
2095 cbs->prio = offload->queue; in sja1105_setup_tc_cbs()
[all …]
/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()
1821 (int)(((void*)cb - (void*)nic->cbs)/sizeof(struct cb)), in e100_tx_clean()
1851 if (nic->cbs) { in e100_clean_cbs()
1852 while (nic->cbs_avail != nic->params.cbs.count) { in e100_clean_cbs()
1864 dma_pool_free(nic->cbs_pool, nic->cbs, nic->cbs_dma_addr); in e100_clean_cbs()
1865 nic->cbs = NULL; in e100_clean_cbs()
1870 nic->cbs; in e100_clean_cbs()
[all …]
/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()
/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 …]
/drivers/net/ethernet/freescale/enetc/
Denetc_qos.c188 struct tc_cbs_qopt_offload *cbs = type_data; in enetc_setup_tc_cbs() local
195 u8 tc = cbs->queue; in enetc_setup_tc_cbs()
207 if (!cbs->enable) { in enetc_setup_tc_cbs()
225 if (cbs->idleslope - cbs->sendslope != port_transmit_rate * 1000L || in enetc_setup_tc_cbs()
226 cbs->idleslope < 0 || cbs->sendslope > 0) in enetc_setup_tc_cbs()
231 bw = cbs->idleslope / (port_transmit_rate * 10UL); in enetc_setup_tc_cbs()
411 u32 cbs; member
881 fmi_config->cbs = cpu_to_le32(fmi->cbs); in enetc_flowmeter_hw_set()
1251 fmi->cbs = entryp->police.burst; in enetc_psfp_parse_clsflower()
/drivers/net/ethernet/amd/xgbe/
Dxgbe-dcb.c132 ets->cbs = pdata->ets->cbs; in xgbe_dcb_ieee_getets()
/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 …]
/drivers/dma/ppc4xx/
Dxor.h73 u32 cbs; /* status */ member
/drivers/net/ethernet/intel/i40e/
Di40e_dcb_nl.c47 ets->cbs = dcbxcfg->etscfg.cbs; in i40e_dcbnl_ieee_getets()
124 pf->tmp_cfg.etscfg.cbs = ets->cbs; in i40e_dcbnl_ieee_setets()
/drivers/net/ethernet/intel/ice/
Dice_dcb_nl.c42 ets->cbs = dcbxcfg->etscfg.cbs; in ice_dcbnl_getets()
78 new_cfg->etscfg.cbs = ets->cbs; in ice_dcbnl_setets()
/drivers/gpio/
Dgpio-virtio.c210 vq_callback_t *cbs[] = { in virtio_gpio_alloc_vqs() local
216 ret = virtio_find_vqs(vdev, 1, vqs, cbs, names, NULL); in virtio_gpio_alloc_vqs()
/drivers/net/ethernet/intel/fm10k/
Dfm10k_dcbnl.c17 ets->cbs = 0; in fm10k_dcbnl_ieee_getets()
/drivers/net/ethernet/netronome/nfp/flower/
Dqos_conf.c57 __be32 cbs; member
185 config->cbs = cpu_to_be32(burst); in nfp_flower_install_rate_limiter()
/drivers/net/ethernet/broadcom/genet/
Dbcmgenet.h516 struct enet_cb *cbs; /* tx ring buffer control block*/ member
545 struct enet_cb *cbs; /* Rx ring buffer control block */ member
/drivers/virtio/
Dvirtio_input.c189 vq_callback_t *cbs[] = { virtinput_recv_events, in virtinput_init_vqs() local
194 err = virtio_find_vqs(vi->vdev, 2, vqs, cbs, names, NULL); in virtinput_init_vqs()

12