/Linux-v4.19/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_dcb.h | 45 static inline void qlcnic_clear_dcb_ops(struct qlcnic_dcb *dcb) in qlcnic_clear_dcb_ops() argument 47 kfree(dcb); in qlcnic_clear_dcb_ops() 50 static inline int qlcnic_dcb_get_hw_capability(struct qlcnic_dcb *dcb) in qlcnic_dcb_get_hw_capability() argument 52 if (dcb && dcb->ops->get_hw_capability) in qlcnic_dcb_get_hw_capability() 53 return dcb->ops->get_hw_capability(dcb); in qlcnic_dcb_get_hw_capability() 58 static inline void qlcnic_dcb_free(struct qlcnic_dcb *dcb) in qlcnic_dcb_free() argument 60 if (dcb && dcb->ops->free) in qlcnic_dcb_free() 61 dcb->ops->free(dcb); in qlcnic_dcb_free() 64 static inline int qlcnic_dcb_attach(struct qlcnic_dcb *dcb) in qlcnic_dcb_attach() argument 66 if (dcb && dcb->ops->attach) in qlcnic_dcb_attach() [all …]
|
D | qlcnic_dcb.c | 242 static inline void __qlcnic_init_dcbnl_ops(struct qlcnic_dcb *dcb) in __qlcnic_init_dcbnl_ops() argument 244 if (test_bit(QLCNIC_DCB_STATE, &dcb->state)) in __qlcnic_init_dcbnl_ops() 245 dcb->adapter->netdev->dcbnl_ops = &qlcnic_dcbnl_ops; in __qlcnic_init_dcbnl_ops() 251 adapter->dcb->ops = &qlcnic_82xx_dcb_ops; in qlcnic_set_dcb_ops() 253 adapter->dcb->ops = &qlcnic_83xx_dcb_ops; in qlcnic_set_dcb_ops() 258 struct qlcnic_dcb *dcb; in qlcnic_register_dcb() local 263 dcb = kzalloc(sizeof(struct qlcnic_dcb), GFP_ATOMIC); in qlcnic_register_dcb() 264 if (!dcb) in qlcnic_register_dcb() 267 adapter->dcb = dcb; in qlcnic_register_dcb() 268 dcb->adapter = adapter; in qlcnic_register_dcb() [all …]
|
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_dcb.c | 48 struct port_dcb_info *dcb = &pi->dcb; in cxgb4_dcb_state_init() local 49 int version_temp = dcb->dcb_version; in cxgb4_dcb_state_init() 51 memset(dcb, 0, sizeof(struct port_dcb_info)); in cxgb4_dcb_state_init() 52 dcb->state = CXGB4_DCB_STATE_START; in cxgb4_dcb_state_init() 54 dcb->dcb_version = version_temp; in cxgb4_dcb_state_init() 63 struct port_dcb_info *dcb = &pi->dcb; in cxgb4_dcb_version_init() local 68 dcb->dcb_version = FW_PORT_DCB_VER_AUTO; in cxgb4_dcb_version_init() 75 struct port_dcb_info *dcb = &pi->dcb; in cxgb4_dcb_cleanup_apps() local 84 if (!dcb->app_priority[i].protocolid) in cxgb4_dcb_cleanup_apps() 87 app.protocol = dcb->app_priority[i].protocolid; in cxgb4_dcb_cleanup_apps() [all …]
|
/Linux-v4.19/drivers/scsi/ |
D | dc395x.c | 230 struct DeviceCtlBlk *dcb; member 380 static u8 start_scsi(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, 384 static void build_srb(struct scsi_cmnd *cmd, struct DeviceCtlBlk *dcb, 392 static void srb_done(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, 394 static void request_sense(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, 397 struct DeviceCtlBlk *dcb); 736 static void free_tag(struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) in free_tag() argument 739 dcb->tag_mask &= ~(1 << srb->tag_number); /* free tag mask */ in free_tag() 778 static void srb_waiting_insert(struct DeviceCtlBlk *dcb, in srb_waiting_insert() argument 782 srb->cmd, dcb->target_id, dcb->target_lun, srb); in srb_waiting_insert() [all …]
|
/Linux-v4.19/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 | 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()
|
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 | i2c.c | 32 u16 dcb = dcb_table(bios, ver, hdr, cnt, len); in dcb_i2c_table() local 33 if (dcb) { in dcb_i2c_table() 35 i2c = nvbios_rd16(bios, dcb + 2); in dcb_i2c_table() 37 i2c = nvbios_rd16(bios, dcb + 4); in dcb_i2c_table()
|
D | conn.c | 31 u32 dcb = dcb_table(bios, ver, hdr, cnt, len); in nvbios_connTe() local 32 if (dcb && *ver >= 0x30 && *hdr >= 0x16) { in nvbios_connTe() 33 u32 data = nvbios_rd16(bios, dcb + 0x14); in nvbios_connTe()
|
/Linux-v4.19/drivers/net/ethernet/qlogic/qede/ |
D | qede_dcbnl.c | 19 return edev->ops->dcb->getstate(edev->cdev); in qede_dcbnl_getstate() 26 return edev->ops->dcb->setstate(edev->cdev, state); in qede_dcbnl_setstate() 41 edev->ops->dcb->getpgtccfgtx(edev->cdev, prio, prio_type, in qede_dcbnl_getpgtccfgtx() 50 edev->ops->dcb->getpgbwgcfgtx(edev->cdev, pgid, bw_pct); in qede_dcbnl_getpgbwgcfgtx() 59 edev->ops->dcb->getpgtccfgrx(edev->cdev, prio, prio_type, pgid, bw_pct, in qede_dcbnl_getpgtccfgrx() 68 edev->ops->dcb->getpgbwgcfgrx(edev->cdev, pgid, bw_pct); in qede_dcbnl_getpgbwgcfgrx() 76 edev->ops->dcb->getpfccfg(edev->cdev, prio, setting); in qede_dcbnl_getpfccfg() 84 edev->ops->dcb->setpfccfg(edev->cdev, prio, setting); in qede_dcbnl_setpfccfg() 91 return edev->ops->dcb->getcap(edev->cdev, capid, cap); in qede_dcbnl_getcap() 98 return edev->ops->dcb->getnumtcs(edev->cdev, tcid, num); in qede_dcbnl_getnumtcs() [all …]
|
/Linux-v4.19/drivers/gpu/drm/nouveau/ |
D | nouveau_bios.c | 1253 u8 *dcb = NULL; in olddcb_table() local 1256 dcb = ROMPTR(dev, drm->vbios.data[0x36]); in olddcb_table() 1257 if (!dcb) { in olddcb_table() 1262 if (dcb[0] >= 0x42) { in olddcb_table() 1263 NV_WARN(drm, "DCB version 0x%02x unknown\n", dcb[0]); in olddcb_table() 1266 if (dcb[0] >= 0x30) { in olddcb_table() 1267 if (ROM32(dcb[6]) == 0x4edcbdcb) in olddcb_table() 1268 return dcb; in olddcb_table() 1270 if (dcb[0] >= 0x20) { in olddcb_table() 1271 if (ROM32(dcb[4]) == 0x4edcbdcb) in olddcb_table() [all …]
|
D | nouveau_dp.c | 82 nv_encoder->dcb->dpconf.link_nr, in nouveau_dp_detect() 83 nv_encoder->dcb->dpconf.link_bw); in nouveau_dp_detect() 85 if (nv_encoder->dcb->dpconf.link_nr < nv_encoder->dp.link_nr) in nouveau_dp_detect() 86 nv_encoder->dp.link_nr = nv_encoder->dcb->dpconf.link_nr; in nouveau_dp_detect() 87 if (nv_encoder->dcb->dpconf.link_bw < nv_encoder->dp.link_bw) in nouveau_dp_detect() 88 nv_encoder->dp.link_bw = nv_encoder->dcb->dpconf.link_bw; in nouveau_dp_detect()
|
D | nouveau_connector.c | 374 (nv_encoder->dcb && nv_encoder->dcb->type == type)) in find_encoder() 420 switch (nv_encoder->dcb->type) { in nouveau_connector_ddc_detect() 472 if (nv_encoder->dcb->i2c_index == idx && edid) { in nouveau_connector_of_detect() 499 if (nv_encoder->dcb->type == DCB_OUTPUT_LVDS || in nouveau_connector_set_encoder() 500 nv_encoder->dcb->type == DCB_OUTPUT_TMDS) { in nouveau_connector_set_encoder() 518 nv_encoder->dcb->type == DCB_OUTPUT_TMDS ? in nouveau_connector_set_encoder() 582 if (nv_encoder->dcb->type == DCB_OUTPUT_TMDS) in nouveau_connector_detect() 584 if (nv_encoder->dcb->type == DCB_OUTPUT_ANALOG) in nouveau_connector_detect() 587 if (nv_partner && ((nv_encoder->dcb->type == DCB_OUTPUT_ANALOG && in nouveau_connector_detect() 588 nv_partner->dcb->type == DCB_OUTPUT_TMDS) || in nouveau_connector_detect() [all …]
|
/Linux-v4.19/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() 117 struct ieee_ets *my_ets = mlxsw_sp_port->dcb.ets; in mlxsw_sp_port_headroom_set() 126 mlxsw_sp_port->dcb.pfc); in mlxsw_sp_port_headroom_set() 153 struct ieee_ets *my_ets = mlxsw_sp_port->dcb.ets; in __mlxsw_sp_dcbnl_ieee_setets() 221 memcpy(mlxsw_sp_port->dcb.ets, ets, sizeof(*ets)); in mlxsw_sp_dcbnl_ieee_setets() 222 mlxsw_sp_port->dcb.ets->ets_cap = IEEE_8021QAZ_MAX_TCS; in mlxsw_sp_dcbnl_ieee_setets() 351 if (mlxsw_sp_port->dcb.trust_state == ts) in mlxsw_sp_port_dcb_toggle_trust() 362 mlxsw_sp_port->dcb.trust_state = ts; in mlxsw_sp_port_dcb_toggle_trust() 367 mlxsw_sp_port->dcb.trust_state); in mlxsw_sp_port_dcb_toggle_trust() 496 memcpy(maxrate, mlxsw_sp_port->dcb.maxrate, sizeof(*maxrate)); in mlxsw_sp_dcbnl_ieee_getmaxrate() [all …]
|
/Linux-v4.19/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() 207 uint32_t bits1618 = nv_encoder->dcb->or & DCB_OUTPUT_A ? 0x10000 : 0x40000; in nv04_dfp_prepare_sel_clk() 209 if (nv_encoder->dcb->location != DCB_LOC_ON_CHIP) in nv04_dfp_prepare_sel_clk() 236 if (nv_encoder->dcb->type == DCB_OUTPUT_LVDS && nv04_display(dev)->saved_reg.sel_clk & 0xf0) { in nv04_dfp_prepare_sel_clk() 261 if (nv_encoder->dcb->location == DCB_LOC_ON_CHIP) in nv04_dfp_prepare() [all …]
|
D | disp.c | 39 struct dcb_table *dcb = &drm->vbios.dcb; in nv04_display_create() local 67 for (i = 0; i < dcb->entries; i++) { in nv04_display_create() 68 struct dcb_output *dcbent = &dcb->entry[i]; in nv04_display_create() 109 nvkm_i2c_bus_find(i2c, nv_encoder->dcb->i2c_index); in nv04_display_create()
|
D | tvnv17.c | 150 struct dcb_output *dcb = tv_enc->base.dcb; in nv17_tv_detect() local 175 if (dcb->tvconf.has_component_output) in nv17_tv_detect() 193 '@' + ffs(dcb->or)); in nv17_tv_detect() 374 mode, nouveau_encoder(encoder)->dcb->index); in nv17_tv_dpms() 419 struct dcb_output *dcb = nouveau_encoder(enc)->dcb; in nv17_tv_prepare() local 421 if ((dcb->type == DCB_OUTPUT_TMDS || in nv17_tv_prepare() 422 dcb->type == DCB_OUTPUT_LVDS) && in nv17_tv_prepare() 424 nv04_dfp_get_bound_head(dev, dcb) == head) { in nv17_tv_prepare() 425 nv04_dfp_bind_head(dev, dcb, head ^ 1, in nv17_tv_prepare() 603 nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); in nv17_tv_commit() [all …]
|
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/bios/ |
D | bios_parser2.c | 84 struct dc_bios *dcb, 88 struct dc_bios *dcb, 118 static void firmware_parser_destroy(struct dc_bios **dcb) in firmware_parser_destroy() argument 120 struct bios_parser *bp = BP_FROM_DCB(*dcb); in firmware_parser_destroy() 130 *dcb = NULL; in firmware_parser_destroy() 156 static uint8_t bios_parser_get_connectors_number(struct dc_bios *dcb) in bios_parser_get_connectors_number() argument 158 struct bios_parser *bp = BP_FROM_DCB(dcb); in bios_parser_get_connectors_number() 170 struct dc_bios *dcb, in bios_parser_get_encoder_id() argument 173 struct bios_parser *bp = BP_FROM_DCB(dcb); in bios_parser_get_encoder_id() 185 struct dc_bios *dcb, in bios_parser_get_connector_id() argument [all …]
|
D | bios_parser.c | 97 struct dc_bios *dcb); 100 struct dc_bios *dcb, 129 static void bios_parser_destroy(struct dc_bios **dcb) in bios_parser_destroy() argument 131 struct bios_parser *bp = BP_FROM_DCB(*dcb); in bios_parser_destroy() 141 *dcb = NULL; in bios_parser_destroy() 158 static uint8_t bios_parser_get_connectors_number(struct dc_bios *dcb) in bios_parser_get_connectors_number() argument 160 struct bios_parser *bp = BP_FROM_DCB(dcb); in bios_parser_get_connectors_number() 167 struct dc_bios *dcb, in bios_parser_get_encoder_id() argument 170 struct bios_parser *bp = BP_FROM_DCB(dcb); in bios_parser_get_encoder_id() 190 struct dc_bios *dcb, in bios_parser_get_connector_id() 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()
|
/Linux-v4.19/drivers/isdn/mISDN/ |
D | layer1.c | 36 dchannel_l1callback *dcb; member 130 l1->dcb(l1->dch, HW_POWERUP_REQ); in l1_deact_cnf() 150 l1->dcb(l1->dch, INFO3_P8); in l1_power_up_s() 173 l1->dcb(l1->dch, INFO3_P8); in l1_info2_ind() 182 l1->dcb(l1->dch, INFO3_P8); in l1_info4_ind() 201 l1->dcb(l1->dch, HW_D_NOBLOCKED); in l1_timer3() 202 l1->dcb(l1->dch, PH_DEACTIVATE_IND); in l1_timer3() 217 l1->dcb(l1->dch, PH_ACTIVATE_IND); in l1_timer_act() 228 l1->dcb(l1->dch, HW_D_NOBLOCKED); in l1_timer_deact() 229 l1->dcb(l1->dch, PH_DEACTIVATE_IND); in l1_timer_deact() [all …]
|
/Linux-v4.19/net/dccp/ |
D | output.c | 52 struct dccp_skb_cb *dcb = DCCP_SKB_CB(skb); in dccp_transmit_skb() local 57 dccp_packet_hdr_len(dcb->dccpd_type); in dccp_transmit_skb() 64 dcb->dccpd_seq = ADD48(dp->dccps_gss, 1); in dccp_transmit_skb() 66 switch (dcb->dccpd_type) { in dccp_transmit_skb() 78 dcb->dccpd_seq = dp->dccps_iss; in dccp_transmit_skb() 83 ackno = dcb->dccpd_ack_seq; in dccp_transmit_skb() 105 dh->dccph_type = dcb->dccpd_type; in dccp_transmit_skb() 108 dh->dccph_doff = (dccp_header_size + dcb->dccpd_opt_len) / 4; in dccp_transmit_skb() 109 dh->dccph_ccval = dcb->dccpd_ccval; in dccp_transmit_skb() 114 dccp_update_gss(sk, dcb->dccpd_seq); in dccp_transmit_skb() [all …]
|
/Linux-v4.19/drivers/dma-buf/ |
D | dma-buf.c | 151 struct dma_buf_poll_cb_t *dcb = (struct dma_buf_poll_cb_t *)cb; in dma_buf_poll_cb() local 154 spin_lock_irqsave(&dcb->poll->lock, flags); in dma_buf_poll_cb() 155 wake_up_locked_poll(dcb->poll, dcb->active); in dma_buf_poll_cb() 156 dcb->active = 0; in dma_buf_poll_cb() 157 spin_unlock_irqrestore(&dcb->poll->lock, flags); in dma_buf_poll_cb() 197 struct dma_buf_poll_cb_t *dcb = &dmabuf->cb_excl; in dma_buf_poll() local 204 if (dcb->active) { in dma_buf_poll() 205 dcb->active |= pevents; in dma_buf_poll() 208 dcb->active = pevents; in dma_buf_poll() 215 dma_buf_poll_cb(NULL, &dcb->cb); in dma_buf_poll() [all …]
|
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/dce112/ |
D | dce112_hw_sequencer.c | 116 struct dc_bios *dcb, in dce112_enable_display_power_gating() argument 135 bp_result = dcb->funcs->enable_disp_power_gating( in dce112_enable_display_power_gating() 136 dcb, controller_id + 1, cntl); in dce112_enable_display_power_gating()
|