/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_dcb.h | 44 static inline int qlcnic_dcb_get_hw_capability(struct qlcnic_dcb *dcb) in qlcnic_dcb_get_hw_capability() argument 46 if (dcb && dcb->ops->get_hw_capability) in qlcnic_dcb_get_hw_capability() 47 return dcb->ops->get_hw_capability(dcb); in qlcnic_dcb_get_hw_capability() 52 static inline void qlcnic_dcb_free(struct qlcnic_dcb *dcb) in qlcnic_dcb_free() argument 54 if (dcb && dcb->ops->free) in qlcnic_dcb_free() 55 dcb->ops->free(dcb); in qlcnic_dcb_free() 58 static inline int qlcnic_dcb_attach(struct qlcnic_dcb *dcb) in qlcnic_dcb_attach() argument 60 if (dcb && dcb->ops->attach) in qlcnic_dcb_attach() 61 return dcb->ops->attach(dcb); in qlcnic_dcb_attach() 67 qlcnic_dcb_query_hw_capability(struct qlcnic_dcb *dcb, char *buf) in qlcnic_dcb_query_hw_capability() argument [all …]
|
D | qlcnic_dcb.c | 241 static inline void __qlcnic_init_dcbnl_ops(struct qlcnic_dcb *dcb) in __qlcnic_init_dcbnl_ops() argument 243 if (test_bit(QLCNIC_DCB_STATE, &dcb->state)) in __qlcnic_init_dcbnl_ops() 244 dcb->adapter->netdev->dcbnl_ops = &qlcnic_dcbnl_ops; in __qlcnic_init_dcbnl_ops() 250 adapter->dcb->ops = &qlcnic_82xx_dcb_ops; in qlcnic_set_dcb_ops() 252 adapter->dcb->ops = &qlcnic_83xx_dcb_ops; in qlcnic_set_dcb_ops() 257 struct qlcnic_dcb *dcb; in qlcnic_register_dcb() local 262 dcb = kzalloc(sizeof(struct qlcnic_dcb), GFP_ATOMIC); in qlcnic_register_dcb() 263 if (!dcb) in qlcnic_register_dcb() 266 adapter->dcb = dcb; in qlcnic_register_dcb() 267 dcb->adapter = adapter; in qlcnic_register_dcb() [all …]
|
/drivers/net/ethernet/netronome/nfp/nic/ |
D | dcb.c | 52 struct nfp_dcb *dcb = &((struct nfp_app_nic_private *)nn->app_priv)->dcb; in get_dcb_priv() local 54 return dcb; in get_dcb_priv() 73 struct nfp_dcb *dcb; in nfp_nic_dcbnl_ieee_getets() local 75 dcb = get_dcb_priv(nn); in nfp_nic_dcbnl_ieee_getets() 78 ets->prio_tc[i] = dcb->prio2tc[i]; in nfp_nic_dcbnl_ieee_getets() 79 ets->tc_tx_bw[i] = dcb->tc_tx_pct[i]; in nfp_nic_dcbnl_ieee_getets() 80 ets->tc_tsa[i] = dcb->tc_tsa[i]; in nfp_nic_dcbnl_ieee_getets() 90 struct nfp_dcb *dcb; in nfp_refresh_tc2idx() local 93 dcb = get_dcb_priv(nn); in nfp_refresh_tc2idx() 97 if (dcb->tc_tsa[i] == IEEE_8021QAZ_TSA_STRICT) in nfp_refresh_tc2idx() [all …]
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_dcb.c | 36 struct port_dcb_info *dcb = &pi->dcb; in cxgb4_dcb_state_init() local 37 int version_temp = dcb->dcb_version; in cxgb4_dcb_state_init() 39 memset(dcb, 0, sizeof(struct port_dcb_info)); in cxgb4_dcb_state_init() 40 dcb->state = CXGB4_DCB_STATE_START; in cxgb4_dcb_state_init() 42 dcb->dcb_version = version_temp; in cxgb4_dcb_state_init() 51 struct port_dcb_info *dcb = &pi->dcb; in cxgb4_dcb_version_init() local 56 dcb->dcb_version = FW_PORT_DCB_VER_AUTO; in cxgb4_dcb_version_init() 63 struct port_dcb_info *dcb = &pi->dcb; in cxgb4_dcb_cleanup_apps() local 72 if (!dcb->app_priority[i].protocolid) in cxgb4_dcb_cleanup_apps() 75 app.protocol = dcb->app_priority[i].protocolid; in cxgb4_dcb_cleanup_apps() [all …]
|
/drivers/scsi/ |
D | dc395x.c | 214 struct DeviceCtlBlk *dcb; member 364 static u8 start_scsi(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, 368 static void build_srb(struct scsi_cmnd *cmd, struct DeviceCtlBlk *dcb, 376 static void srb_done(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, 378 static void request_sense(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, 381 struct DeviceCtlBlk *dcb); 720 static void free_tag(struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) in free_tag() argument 723 dcb->tag_mask &= ~(1 << srb->tag_number); /* free tag mask */ in free_tag() 759 struct DeviceCtlBlk *dcb; in waiting_process_next() local 777 list_for_each_entry(dcb, dcb_list_head, list) in waiting_process_next() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | dcb.c | 32 u16 dcb = 0x0000; in dcb_table() local 35 dcb = nvbios_rd16(bios, 0x36); in dcb_table() 36 if (!dcb) { in dcb_table() 38 return dcb; in dcb_table() 41 *ver = nvbios_rd08(bios, dcb); in dcb_table() 48 if (nvbios_rd32(bios, dcb + 6) == 0x4edcbdcb) { in dcb_table() 49 *hdr = nvbios_rd08(bios, dcb + 1); in dcb_table() 50 *cnt = nvbios_rd08(bios, dcb + 2); in dcb_table() 51 *len = nvbios_rd08(bios, dcb + 3); in dcb_table() 52 return dcb; in dcb_table() [all …]
|
D | gpio.c | 33 u16 dcb = dcb_table(bios, ver, hdr, cnt, len); in dcb_gpio_table() local 34 if (dcb) { in dcb_gpio_table() 36 data = nvbios_rd16(bios, dcb + 0x0a); in dcb_gpio_table() 38 if (*ver >= 0x22 && nvbios_rd08(bios, dcb - 1) >= 0x13) in dcb_gpio_table() 39 data = nvbios_rd16(bios, dcb - 0x0f); in dcb_gpio_table()
|
D | extdev.c | 32 u16 dcb, extdev = 0; in extdev_table() local 34 dcb = dcb_table(bios, &dcb_ver, &dcb_hdr, &dcb_cnt, &dcb_len); in extdev_table() 35 if (!dcb || (dcb_ver != 0x30 && dcb_ver != 0x40 && dcb_ver != 0x41)) in extdev_table() 38 extdev = nvbios_rd16(bios, dcb + 18); in extdev_table()
|
/drivers/net/ethernet/qlogic/qede/ |
D | qede_dcbnl.c | 17 return edev->ops->dcb->getstate(edev->cdev); in qede_dcbnl_getstate() 24 return edev->ops->dcb->setstate(edev->cdev, state); in qede_dcbnl_setstate() 39 edev->ops->dcb->getpgtccfgtx(edev->cdev, prio, prio_type, in qede_dcbnl_getpgtccfgtx() 48 edev->ops->dcb->getpgbwgcfgtx(edev->cdev, pgid, bw_pct); in qede_dcbnl_getpgbwgcfgtx() 57 edev->ops->dcb->getpgtccfgrx(edev->cdev, prio, prio_type, pgid, bw_pct, in qede_dcbnl_getpgtccfgrx() 66 edev->ops->dcb->getpgbwgcfgrx(edev->cdev, pgid, bw_pct); in qede_dcbnl_getpgbwgcfgrx() 74 edev->ops->dcb->getpfccfg(edev->cdev, prio, setting); in qede_dcbnl_getpfccfg() 82 edev->ops->dcb->setpfccfg(edev->cdev, prio, setting); in qede_dcbnl_setpfccfg() 89 return edev->ops->dcb->getcap(edev->cdev, capid, cap); in qede_dcbnl_getcap() 96 return edev->ops->dcb->getnumtcs(edev->cdev, tcid, num); in qede_dcbnl_getnumtcs() [all …]
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_bios.c | 1255 u8 *dcb = NULL; in olddcb_table() local 1258 dcb = ROMPTR(dev, drm->vbios.data[0x36]); in olddcb_table() 1259 if (!dcb) { in olddcb_table() 1264 if (dcb[0] >= 0x42) { in olddcb_table() 1265 NV_WARN(drm, "DCB version 0x%02x unknown\n", dcb[0]); in olddcb_table() 1268 if (dcb[0] >= 0x30) { in olddcb_table() 1269 if (ROM32(dcb[6]) == 0x4edcbdcb) in olddcb_table() 1270 return dcb; in olddcb_table() 1272 if (dcb[0] >= 0x20) { in olddcb_table() 1273 if (ROM32(dcb[4]) == 0x4edcbdcb) in olddcb_table() [all …]
|
D | nouveau_connector.c | 387 (nv_encoder->dcb && nv_encoder->dcb->type == type)) in find_encoder() 424 switch (nv_encoder->dcb->type) { in nouveau_connector_ddc_detect() 478 if (nv_encoder->dcb->i2c_index == idx && edid) { in nouveau_connector_of_detect() 503 if (nv_encoder->dcb->type == DCB_OUTPUT_DP) in nouveau_connector_set_encoder() 511 if (nv_encoder->dcb->type == DCB_OUTPUT_LVDS || in nouveau_connector_set_encoder() 512 nv_encoder->dcb->type == DCB_OUTPUT_TMDS) { in nouveau_connector_set_encoder() 530 nv_encoder->dcb->type == DCB_OUTPUT_TMDS ? in nouveau_connector_set_encoder() 603 if (nv_encoder->dcb->type == DCB_OUTPUT_TMDS) in nouveau_connector_detect() 605 if (nv_encoder->dcb->type == DCB_OUTPUT_ANALOG) in nouveau_connector_detect() 608 if (nv_partner && ((nv_encoder->dcb->type == DCB_OUTPUT_ANALOG && in nouveau_connector_detect() [all …]
|
/drivers/gpu/drm/nouveau/dispnv04/ |
D | dac.c | 43 struct dcb_output *dcb = nouveau_encoder(encoder)->dcb; in nv04_dac_output_offset() local 46 if (dcb->or & (8 | DCB_OUTPUT_C)) in nv04_dac_output_offset() 48 if (dcb->or & (8 | DCB_OUTPUT_B)) in nv04_dac_output_offset() 241 struct dcb_output *dcb = nouveau_encoder(encoder)->dcb; in nv17_dac_sample_load() local 248 if (dcb->type == DCB_OUTPUT_TV) { in nv17_dac_sample_load() 275 nvkm_gpio_set(gpio, 0, DCB_GPIO_TVDAC1, 0xff, dcb->type == DCB_OUTPUT_TV); in nv17_dac_sample_load() 276 nvkm_gpio_set(gpio, 0, DCB_GPIO_TVDAC0, 0xff, dcb->type == DCB_OUTPUT_TV); in nv17_dac_sample_load() 292 if (dcb->type == DCB_OUTPUT_TV) in nv17_dac_sample_load() 339 struct dcb_output *dcb = nouveau_encoder(encoder)->dcb; in nv17_dac_detect() local 347 '@' + ffs(dcb->or)); in nv17_dac_detect() [all …]
|
D | dfp.c | 132 nv_crtc->fp_users |= 1 << nouveau_encoder(encoder)->dcb->index; in nv04_dfp_update_fp_control() 139 nv_crtc->fp_users &= ~(1 << nouveau_encoder(encoder)->dcb->index); in nv04_dfp_update_fp_control() 155 struct dcb_output *dcb = nouveau_encoder(encoder)->dcb; in get_tmds_slave() local 158 if (dcb->type != DCB_OUTPUT_TMDS || dcb->location == DCB_LOC_ON_CHIP) in get_tmds_slave() 172 struct dcb_output *slave_dcb = nouveau_encoder(slave)->dcb; in get_tmds_slave() 175 slave_dcb->tmdsconf.slave_addr == dcb->tmdsconf.slave_addr) in get_tmds_slave() 208 uint32_t bits1618 = nv_encoder->dcb->or & DCB_OUTPUT_A ? 0x10000 : 0x40000; in nv04_dfp_prepare_sel_clk() 210 if (nv_encoder->dcb->location != DCB_LOC_ON_CHIP) in nv04_dfp_prepare_sel_clk() 237 if (nv_encoder->dcb->type == DCB_OUTPUT_LVDS && nv04_display(dev)->saved_reg.sel_clk & 0xf0) { in nv04_dfp_prepare_sel_clk() 262 if (nv_encoder->dcb->location == DCB_LOC_ON_CHIP) in nv04_dfp_prepare() [all …]
|
D | tvnv17.c | 151 struct dcb_output *dcb = tv_enc->base.dcb; in nv17_tv_detect() local 176 if (dcb->tvconf.has_component_output) in nv17_tv_detect() 194 '@' + ffs(dcb->or)); in nv17_tv_detect() 381 mode, nouveau_encoder(encoder)->dcb->index); in nv17_tv_dpms() 426 struct dcb_output *dcb = nouveau_encoder(enc)->dcb; in nv17_tv_prepare() local 428 if ((dcb->type == DCB_OUTPUT_TMDS || in nv17_tv_prepare() 429 dcb->type == DCB_OUTPUT_LVDS) && in nv17_tv_prepare() 431 nv04_dfp_get_bound_head(dev, dcb) == head) { in nv17_tv_prepare() 432 nv04_dfp_bind_head(dev, dcb, head ^ 1, in nv17_tv_prepare() 610 nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); in nv17_tv_commit() [all …]
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_dcb.c | 28 memcpy(ets, mlxsw_sp_port->dcb.ets, sizeof(*ets)); in mlxsw_sp_dcbnl_ieee_getets() 94 struct ieee_ets *my_ets = mlxsw_sp_port->dcb.ets; in __mlxsw_sp_dcbnl_ieee_setets() 162 memcpy(mlxsw_sp_port->dcb.ets, ets, sizeof(*ets)); in mlxsw_sp_dcbnl_ieee_setets() 163 mlxsw_sp_port->dcb.ets->ets_cap = IEEE_8021QAZ_MAX_TCS; in mlxsw_sp_dcbnl_ieee_setets() 279 if (mlxsw_sp_port->dcb.trust_state == ts) in mlxsw_sp_port_dcb_toggle_trust() 290 mlxsw_sp_port->dcb.trust_state = ts; in mlxsw_sp_port_dcb_toggle_trust() 295 mlxsw_sp_port->dcb.trust_state); in mlxsw_sp_port_dcb_toggle_trust() 441 memcpy(maxrate, mlxsw_sp_port->dcb.maxrate, sizeof(*maxrate)); in mlxsw_sp_dcbnl_ieee_getmaxrate() 450 struct ieee_maxrate *my_maxrate = mlxsw_sp_port->dcb.maxrate; in mlxsw_sp_dcbnl_ieee_setmaxrate() 464 memcpy(mlxsw_sp_port->dcb.maxrate, maxrate, sizeof(*maxrate)); in mlxsw_sp_dcbnl_ieee_setmaxrate() [all …]
|
/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_fdma.c | 80 struct sparx5_rx_dcb_hw *dcb, in sparx5_fdma_rx_add_dcb() argument 87 struct sparx5_db_hw *db = &dcb->db[idx]; in sparx5_fdma_rx_add_dcb() 91 dcb->nextptr = FDMA_DCB_INVALID_DATA; in sparx5_fdma_rx_add_dcb() 92 dcb->info = FDMA_DCB_INFO_DATAL(FDMA_XTR_BUFFER_SIZE); in sparx5_fdma_rx_add_dcb() 94 rx->last_entry = dcb; in sparx5_fdma_rx_add_dcb() 98 struct sparx5_tx_dcb_hw *dcb, in sparx5_fdma_tx_add_dcb() argument 105 struct sparx5_db_hw *db = &dcb->db[idx]; in sparx5_fdma_tx_add_dcb() 109 dcb->nextptr = FDMA_DCB_INVALID_DATA; in sparx5_fdma_tx_add_dcb() 110 dcb->info = FDMA_DCB_INFO_DATAL(FDMA_XTR_BUFFER_SIZE); in sparx5_fdma_tx_add_dcb() 296 struct sparx5_tx_dcb_hw *dcb) in sparx5_fdma_next_dcb() argument [all …]
|
/drivers/isdn/mISDN/ |
D | layer1.c | 27 dchannel_l1callback *dcb; member 121 l1->dcb(l1->dch, HW_POWERUP_REQ); in l1_deact_cnf() 141 l1->dcb(l1->dch, INFO3_P8); in l1_power_up_s() 164 l1->dcb(l1->dch, INFO3_P8); in l1_info2_ind() 173 l1->dcb(l1->dch, INFO3_P8); in l1_info4_ind() 192 l1->dcb(l1->dch, HW_D_NOBLOCKED); in l1_timer3() 193 l1->dcb(l1->dch, PH_DEACTIVATE_IND); in l1_timer3() 208 l1->dcb(l1->dch, PH_ACTIVATE_IND); in l1_timer_act() 219 l1->dcb(l1->dch, HW_D_NOBLOCKED); in l1_timer_deact() 220 l1->dcb(l1->dch, PH_DEACTIVATE_IND); in l1_timer_deact() [all …]
|
/drivers/net/ethernet/mscc/ |
D | ocelot_fdma.c | 110 static void ocelot_fdma_dcb_set_data(struct ocelot_fdma_dcb *dcb, in ocelot_fdma_dcb_set_data() argument 116 dcb->llp = 0; in ocelot_fdma_dcb_set_data() 117 dcb->datap = ALIGN_DOWN(dma_addr, 4); in ocelot_fdma_dcb_set_data() 118 dcb->datal = ALIGN_DOWN(size, 4); in ocelot_fdma_dcb_set_data() 119 dcb->stat = MSCC_FDMA_DCB_STAT_BLOCKO(offset); in ocelot_fdma_dcb_set_data() 151 struct ocelot_fdma_dcb *dcb; in ocelot_fdma_alloc_rx_buffs() local 171 dcb = &rx_ring->dcbs[idx]; in ocelot_fdma_alloc_rx_buffs() 173 ocelot_fdma_dcb_set_data(dcb, dma_addr, OCELOT_FDMA_RXB_SIZE); in ocelot_fdma_alloc_rx_buffs() 177 dcb->llp = ocelot_fdma_idx_dma(rx_ring->dcbs_dma, idx); in ocelot_fdma_alloc_rx_buffs() 188 struct ocelot_fdma_dcb *dcb, in ocelot_fdma_tx_dcb_set_skb() argument [all …]
|
/drivers/gpu/drm/amd/display/dc/ |
D | dc_bios_types.h | 52 struct dc_bios *dcb, 128 void (*bios_parser_destroy)(struct dc_bios **dcb); 131 struct dc_bios *dcb, 134 struct dc_bios *dcb, 138 struct dc_bios *dcb); 147 struct dc_bios *dcb, 151 struct dc_bios *dcb, 155 struct dc_bios *dcb, 158 struct dc_bios *dcb,
|
/drivers/gpu/drm/amd/display/dc/bios/ |
D | bios_parser2.c | 58 struct dc_bios *dcb, 62 struct dc_bios *dcb, 96 static void firmware_parser_destroy(struct dc_bios **dcb) in firmware_parser_destroy() argument 98 struct bios_parser *bp = BP_FROM_DCB(*dcb); in firmware_parser_destroy() 108 *dcb = NULL; in firmware_parser_destroy() 134 static uint8_t bios_parser_get_connectors_number(struct dc_bios *dcb) in bios_parser_get_connectors_number() argument 136 struct bios_parser *bp = BP_FROM_DCB(dcb); in bios_parser_get_connectors_number() 160 struct dc_bios *dcb, in bios_parser_get_connector_id() argument 163 struct bios_parser *bp = BP_FROM_DCB(dcb); in bios_parser_get_connector_id() 200 static enum bp_result bios_parser_get_src_obj(struct dc_bios *dcb, in bios_parser_get_src_obj() argument [all …]
|
D | bios_parser.c | 87 struct dc_bios *dcb); 90 struct dc_bios *dcb, 119 static void bios_parser_destroy(struct dc_bios **dcb) in bios_parser_destroy() argument 121 struct bios_parser *bp = BP_FROM_DCB(*dcb); in bios_parser_destroy() 131 *dcb = NULL; in bios_parser_destroy() 150 static uint8_t bios_parser_get_connectors_number(struct dc_bios *dcb) in bios_parser_get_connectors_number() argument 152 struct bios_parser *bp = BP_FROM_DCB(dcb); in bios_parser_get_connectors_number() 159 struct dc_bios *dcb, in bios_parser_get_connector_id() argument 162 struct bios_parser *bp = BP_FROM_DCB(dcb); in bios_parser_get_connector_id() 190 static enum bp_result bios_parser_get_src_obj(struct dc_bios *dcb, in bios_parser_get_src_obj() argument [all …]
|
D | bios_parser_interface.c | 50 void dal_bios_parser_destroy(struct dc_bios **dcb) in dal_bios_parser_destroy() argument 52 struct dc_bios *bios = *dcb; in dal_bios_parser_destroy() 54 bios->funcs->bios_parser_destroy(dcb); in dal_bios_parser_destroy()
|
/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_fdma.c | 51 struct lan966x_rx_dcb *dcb, in lan966x_fdma_rx_add_dcb() argument 58 db = &dcb->db[i]; in lan966x_fdma_rx_add_dcb() 62 dcb->nextptr = FDMA_DCB_INVALID_DATA; in lan966x_fdma_rx_add_dcb() 63 dcb->info = FDMA_DCB_INFO_DATAL(PAGE_SIZE << rx->page_order); in lan966x_fdma_rx_add_dcb() 66 rx->last_entry = dcb; in lan966x_fdma_rx_add_dcb() 107 struct lan966x_rx_dcb *dcb; in lan966x_fdma_rx_alloc() local 130 dcb = &rx->dcbs[i]; in lan966x_fdma_rx_alloc() 131 dcb->info = 0; in lan966x_fdma_rx_alloc() 135 db = &dcb->db[j]; in lan966x_fdma_rx_alloc() 144 lan966x_fdma_rx_add_dcb(rx, dcb, rx->dma + sizeof(*dcb) * i); in lan966x_fdma_rx_alloc() [all …]
|
/drivers/gpu/drm/amd/display/dc/link/protocols/ |
D | link_hpd.c | 96 struct gpio *link_get_hpd_gpio(struct dc_bios *dcb, in link_get_hpd_gpio() argument 104 if (dcb->funcs->get_hpd_info(dcb, link_id, &hpd_info) != BP_RESULT_OK) in link_get_hpd_gpio() 107 bp_result = dcb->funcs->get_gpio_pin_info(dcb, in link_get_hpd_gpio()
|
/drivers/dma-buf/ |
D | dma-buf.c | 236 struct dma_buf_poll_cb_t *dcb = (struct dma_buf_poll_cb_t *)cb; in dma_buf_poll_cb() local 237 struct dma_buf *dmabuf = container_of(dcb->poll, struct dma_buf, poll); in dma_buf_poll_cb() 240 spin_lock_irqsave(&dcb->poll->lock, flags); in dma_buf_poll_cb() 241 wake_up_locked_poll(dcb->poll, dcb->active); in dma_buf_poll_cb() 242 dcb->active = 0; in dma_buf_poll_cb() 243 spin_unlock_irqrestore(&dcb->poll->lock, flags); in dma_buf_poll_cb() 250 struct dma_buf_poll_cb_t *dcb) in dma_buf_poll_add_cb() argument 259 r = dma_fence_add_callback(fence, &dcb->cb, dma_buf_poll_cb); in dma_buf_poll_add_cb() 289 struct dma_buf_poll_cb_t *dcb = &dmabuf->cb_out; in dma_buf_poll() local 293 if (dcb->active) in dma_buf_poll() [all …]
|