dcb 187 drivers/dma-buf/dma-buf.c struct dma_buf_poll_cb_t *dcb = (struct dma_buf_poll_cb_t *)cb; dcb 190 drivers/dma-buf/dma-buf.c spin_lock_irqsave(&dcb->poll->lock, flags); dcb 191 drivers/dma-buf/dma-buf.c wake_up_locked_poll(dcb->poll, dcb->active); dcb 192 drivers/dma-buf/dma-buf.c dcb->active = 0; dcb 193 drivers/dma-buf/dma-buf.c spin_unlock_irqrestore(&dcb->poll->lock, flags); dcb 233 drivers/dma-buf/dma-buf.c struct dma_buf_poll_cb_t *dcb = &dmabuf->cb_excl; dcb 240 drivers/dma-buf/dma-buf.c if (dcb->active) { dcb 241 drivers/dma-buf/dma-buf.c dcb->active |= pevents; dcb 244 drivers/dma-buf/dma-buf.c dcb->active = pevents; dcb 251 drivers/dma-buf/dma-buf.c dma_buf_poll_cb(NULL, &dcb->cb); dcb 252 drivers/dma-buf/dma-buf.c } else if (!dma_fence_add_callback(fence_excl, &dcb->cb, dcb 262 drivers/dma-buf/dma-buf.c dma_buf_poll_cb(NULL, &dcb->cb); dcb 268 drivers/dma-buf/dma-buf.c struct dma_buf_poll_cb_t *dcb = &dmabuf->cb_shared; dcb 273 drivers/dma-buf/dma-buf.c if (dcb->active) dcb 276 drivers/dma-buf/dma-buf.c dcb->active = EPOLLOUT; dcb 293 drivers/dma-buf/dma-buf.c dma_buf_poll_cb(NULL, &dcb->cb); dcb 296 drivers/dma-buf/dma-buf.c if (!dma_fence_add_callback(fence, &dcb->cb, dcb 307 drivers/dma-buf/dma-buf.c dma_buf_poll_cb(NULL, &dcb->cb); dcb 88 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct dc_bios *dcb); dcb 91 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct dc_bios *dcb, dcb 120 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c static void bios_parser_destroy(struct dc_bios **dcb) dcb 122 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct bios_parser *bp = BP_FROM_DCB(*dcb); dcb 132 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c *dcb = NULL; dcb 149 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c static uint8_t bios_parser_get_connectors_number(struct dc_bios *dcb) dcb 151 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 158 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct dc_bios *dcb, dcb 161 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 188 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c static enum bp_result bios_parser_get_src_obj(struct dc_bios *dcb, dcb 195 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 217 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c static enum bp_result bios_parser_get_i2c_info(struct dc_bios *dcb, dcb 225 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 263 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c static enum bp_result bios_parser_get_hpd_info(struct dc_bios *dcb, dcb 267 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 328 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct dc_bios *dcb, dcb 333 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 376 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct dc_bios *dcb, dcb 379 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 727 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct dc_bios *dcb, dcb 730 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 739 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct dc_bios *dcb, dcb 742 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 751 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct dc_bios *dcb, dcb 754 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 763 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct dc_bios *dcb, dcb 766 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 775 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct dc_bios *dcb, dcb 778 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 787 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct dc_bios *dcb, dcb 791 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 802 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct dc_bios *dcb, dcb 805 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 814 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct dc_bios *dcb, dcb 817 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 828 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct dc_bios *dcb, dcb 832 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 841 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct dc_bios *dcb, dcb 845 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 855 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct dc_bios *dcb, dcb 858 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 921 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct dc_bios *dcb, dcb 926 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 1175 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct dc_bios *dcb, dcb 1178 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 1465 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct dc_bios *dcb, dcb 1469 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 1563 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct dc_bios *dcb, dcb 1566 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 1779 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct dc_bios *dcb, dcb 1783 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 2208 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct dc_bios *dcb, dcb 2211 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c bios_set_scratch_critical_state(dcb, state); dcb 2570 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct dc_bios *dcb) dcb 2572 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 2591 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct dc_bios *dcb, dcb 2602 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c bp = BP_FROM_DCB(dcb); dcb 2695 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct dc_bios *dcb, dcb 2707 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c bp = BP_FROM_DCB(dcb); dcb 2732 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c result = update_slot_layout_info(dcb, i, dcb 2741 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c struct dc_bios *dcb, dcb 2754 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c bp = BP_FROM_DCB(dcb); dcb 2763 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c record_result = get_bracket_layout_record(dcb, dcb 86 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct dc_bios *dcb, dcb 90 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct dc_bios *dcb, dcb 120 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c static void firmware_parser_destroy(struct dc_bios **dcb) dcb 122 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct bios_parser *bp = BP_FROM_DCB(*dcb); dcb 132 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c *dcb = NULL; dcb 158 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c static uint8_t bios_parser_get_connectors_number(struct dc_bios *dcb) dcb 160 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 172 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct dc_bios *dcb, dcb 175 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 194 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c static enum bp_result bios_parser_get_src_obj(struct dc_bios *dcb, dcb 198 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 289 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c static enum bp_result bios_parser_get_i2c_info(struct dc_bios *dcb, dcb 297 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 415 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct dc_bios *dcb, dcb 419 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 492 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct dc_bios *dcb, dcb 496 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 612 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct dc_bios *dcb, dcb 617 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 805 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct dc_bios *dcb, dcb 810 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 922 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct dc_bios *dcb, dcb 926 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c *bp = BP_FROM_DCB(dcb); dcb 996 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct dc_bios *dcb, dcb 999 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 1008 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct dc_bios *dcb, dcb 1018 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct dc_bios *dcb, dcb 1021 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 1030 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct dc_bios *dcb, dcb 1033 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 1042 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct dc_bios *dcb, dcb 1045 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 1054 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct dc_bios *dcb, dcb 1057 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 1066 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct dc_bios *dcb, dcb 1069 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 1078 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct dc_bios *dcb, dcb 1082 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 1091 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct dc_bios *dcb, dcb 1095 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 1105 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct dc_bios *dcb) dcb 1107 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c return bios_is_accelerated_mode(dcb); dcb 1120 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct dc_bios *dcb, dcb 1123 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c bios_set_scratch_critical_state(dcb, state); dcb 1127 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct dc_bios *dcb, dcb 1130 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 1290 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct dc_bios *dcb, dcb 1294 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 1659 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct dc_bios *dcb) dcb 1661 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 1680 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct dc_bios *dcb, dcb 1698 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c bp = BP_FROM_DCB(dcb); dcb 1797 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct dc_bios *dcb, dcb 1802 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct bios_parser *bp = BP_FROM_DCB(dcb); dcb 1819 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c result = update_slot_layout_info(dcb, i, dcb 1828 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c struct dc_bios *dcb, dcb 1841 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c bp = BP_FROM_DCB(dcb); dcb 1850 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c record_result = get_bracket_layout_record(dcb, dcb 50 drivers/gpu/drm/amd/display/dc/bios/bios_parser_interface.c void dal_bios_parser_destroy(struct dc_bios **dcb) dcb 52 drivers/gpu/drm/amd/display/dc/bios/bios_parser_interface.c struct dc_bios *bios = *dcb; dcb 54 drivers/gpu/drm/amd/display/dc/bios/bios_parser_interface.c bios->funcs->bios_parser_destroy(dcb); dcb 1057 drivers/gpu/drm/amd/display/dc/core/dc.c struct dc_bios *dcb = dc->ctx->dc_bios; dcb 1068 drivers/gpu/drm/amd/display/dc/core/dc.c if (!dcb->funcs->is_accelerated_mode(dcb)) dcb 100 drivers/gpu/drm/amd/display/dc/core/dc_link.c struct gpio *get_hpd_gpio(struct dc_bios *dcb, dcb 108 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (dcb->funcs->get_hpd_info(dcb, link_id, &hpd_info) != BP_RESULT_OK) dcb 111 drivers/gpu/drm/amd/display/dc/core/dc_link.c bp_result = dcb->funcs->get_gpio_pin_info(dcb, dcb 200 drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c struct dc_bios *dcb = init_data->ctx->dc_bios; dcb 205 drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c if (BP_RESULT_OK != dcb->funcs->get_i2c_info(dcb, init_data->id, &i2c_info)) { dcb 1915 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct dc_bios *dcb = dc->ctx->dc_bios; dcb 1932 drivers/gpu/drm/amd/display/dc/core/dc_resource.c !dcb->funcs->is_accelerated_mode(dcb)) { dcb 52 drivers/gpu/drm/amd/display/dc/dc_bios_types.h struct dc_bios *dcb, dcb 129 drivers/gpu/drm/amd/display/dc/dc_bios_types.h void (*bios_parser_destroy)(struct dc_bios **dcb); dcb 132 drivers/gpu/drm/amd/display/dc/dc_bios_types.h struct dc_bios *dcb, dcb 76 drivers/gpu/drm/amd/display/dc/dce100/dce100_hw_sequencer.c struct dc_bios *dcb, dcb 92 drivers/gpu/drm/amd/display/dc/dce100/dce100_hw_sequencer.c bp_result = dcb->funcs->enable_disp_power_gating( dcb 93 drivers/gpu/drm/amd/display/dc/dce100/dce100_hw_sequencer.c dcb, controller_id + 1, cntl); dcb 45 drivers/gpu/drm/amd/display/dc/dce100/dce100_hw_sequencer.h struct dc_bios *dcb, dcb 195 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c struct dc_bios *dcb, dcb 218 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c bp_result = dcb->funcs->enable_disp_power_gating( dcb 219 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c dcb, controller_id + 1, cntl); dcb 2033 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c struct dc_bios *dcb = dc->ctx->dc_bios; dcb 2046 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c dcb->funcs->set_scratch_critical_state(dcb, true); dcb 2105 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c dcb->funcs->set_scratch_critical_state(dcb, false); dcb 1072 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c struct dc_bios *dcb = dc->ctx->dc_bios; dcb 1077 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c dcb, PIPE_GATING_CONTROL_DISABLE); dcb 116 drivers/gpu/drm/amd/display/dc/dce112/dce112_hw_sequencer.c struct dc_bios *dcb, dcb 135 drivers/gpu/drm/amd/display/dc/dce112/dce112_hw_sequencer.c bp_result = dcb->funcs->enable_disp_power_gating( dcb 136 drivers/gpu/drm/amd/display/dc/dce112/dce112_hw_sequencer.c dcb, controller_id + 1, cntl); dcb 153 drivers/gpu/drm/amd/display/dc/dce120/dce120_hw_sequencer.c struct dc_bios *dcb, dcb 174 drivers/gpu/drm/amd/display/dc/dce120/dce120_hw_sequencer.c bp_result = dcb->funcs->enable_disp_power_gating( dcb 175 drivers/gpu/drm/amd/display/dc/dce120/dce120_hw_sequencer.c dcb, controller_id + 1, cntl); dcb 1181 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c struct dc_bios *dcb = dc->ctx->dc_bios; dcb 1212 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c if (!dcb->funcs->is_accelerated_mode(dcb)) dcb 1269 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c if (dcb->funcs->is_accelerated_mode(dcb) || dc->config.power_down_display_on_boot) { dcb 2916 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c struct dc_bios *dcb, dcb 186 drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h struct dc_bios *dcb, dcb 43 drivers/gpu/drm/amd/display/dc/inc/link_hwss.h struct gpio *get_hpd_gpio(struct dc_bios *dcb, dcb 42 drivers/gpu/drm/amd/display/include/bios_parser_interface.h void dal_bios_parser_destroy(struct dc_bios **dcb); dcb 260 drivers/gpu/drm/nouveau/dispnv04/crtc.c (nv_encoder->dcb->type == DCB_OUTPUT_LVDS || dcb 261 drivers/gpu/drm/nouveau/dispnv04/crtc.c nv_encoder->dcb->type == DCB_OUTPUT_TMDS)) dcb 475 drivers/gpu/drm/nouveau/dispnv04/crtc.c if (nv_encoder->dcb->type == DCB_OUTPUT_LVDS) dcb 477 drivers/gpu/drm/nouveau/dispnv04/crtc.c if (nv_encoder->dcb->type == DCB_OUTPUT_TV) dcb 479 drivers/gpu/drm/nouveau/dispnv04/crtc.c if (nv_encoder->dcb->type == DCB_OUTPUT_TMDS) dcb 481 drivers/gpu/drm/nouveau/dispnv04/crtc.c if (nv_encoder->dcb->location != DCB_LOC_ON_CHIP && digital) dcb 42 drivers/gpu/drm/nouveau/dispnv04/dac.c struct dcb_output *dcb = nouveau_encoder(encoder)->dcb; dcb 45 drivers/gpu/drm/nouveau/dispnv04/dac.c if (dcb->or & (8 | DCB_OUTPUT_C)) dcb 47 drivers/gpu/drm/nouveau/dispnv04/dac.c if (dcb->or & (8 | DCB_OUTPUT_B)) dcb 240 drivers/gpu/drm/nouveau/dispnv04/dac.c struct dcb_output *dcb = nouveau_encoder(encoder)->dcb; dcb 247 drivers/gpu/drm/nouveau/dispnv04/dac.c if (dcb->type == DCB_OUTPUT_TV) { dcb 274 drivers/gpu/drm/nouveau/dispnv04/dac.c nvkm_gpio_set(gpio, 0, DCB_GPIO_TVDAC1, 0xff, dcb->type == DCB_OUTPUT_TV); dcb 275 drivers/gpu/drm/nouveau/dispnv04/dac.c nvkm_gpio_set(gpio, 0, DCB_GPIO_TVDAC0, 0xff, dcb->type == DCB_OUTPUT_TV); dcb 291 drivers/gpu/drm/nouveau/dispnv04/dac.c if (dcb->type == DCB_OUTPUT_TV) dcb 338 drivers/gpu/drm/nouveau/dispnv04/dac.c struct dcb_output *dcb = nouveau_encoder(encoder)->dcb; dcb 346 drivers/gpu/drm/nouveau/dispnv04/dac.c '@' + ffs(dcb->or)); dcb 394 drivers/gpu/drm/nouveau/dispnv04/dac.c || nouveau_encoder(rebind)->dcb->type != DCB_OUTPUT_ANALOG) dcb 422 drivers/gpu/drm/nouveau/dispnv04/dac.c nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); dcb 428 drivers/gpu/drm/nouveau/dispnv04/dac.c struct dcb_output *dcb = nouveau_encoder(encoder)->dcb; dcb 431 drivers/gpu/drm/nouveau/dispnv04/dac.c uint32_t *dac_users = &nv04_display(dev)->dac_users[ffs(dcb->or) - 1]; dcb 436 drivers/gpu/drm/nouveau/dispnv04/dac.c *dac_users |= 1 << dcb->index; dcb 440 drivers/gpu/drm/nouveau/dispnv04/dac.c *dac_users &= ~(1 << dcb->index); dcb 453 drivers/gpu/drm/nouveau/dispnv04/dac.c struct dcb_output *dcb = nouveau_encoder(encoder)->dcb; dcb 456 drivers/gpu/drm/nouveau/dispnv04/dac.c (nv04_display(dev)->dac_users[ffs(dcb->or) - 1] & ~(1 << dcb->index)); dcb 469 drivers/gpu/drm/nouveau/dispnv04/dac.c mode, nv_encoder->dcb->index); dcb 540 drivers/gpu/drm/nouveau/dispnv04/dac.c nv_encoder->dcb = entry; dcb 132 drivers/gpu/drm/nouveau/dispnv04/dfp.c nv_crtc->fp_users |= 1 << nouveau_encoder(encoder)->dcb->index; dcb 139 drivers/gpu/drm/nouveau/dispnv04/dfp.c nv_crtc->fp_users &= ~(1 << nouveau_encoder(encoder)->dcb->index); dcb 155 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct dcb_output *dcb = nouveau_encoder(encoder)->dcb; dcb 158 drivers/gpu/drm/nouveau/dispnv04/dfp.c if (dcb->type != DCB_OUTPUT_TMDS || dcb->location == DCB_LOC_ON_CHIP) dcb 172 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct dcb_output *slave_dcb = nouveau_encoder(slave)->dcb; dcb 175 drivers/gpu/drm/nouveau/dispnv04/dfp.c slave_dcb->tmdsconf.slave_addr == dcb->tmdsconf.slave_addr) dcb 207 drivers/gpu/drm/nouveau/dispnv04/dfp.c uint32_t bits1618 = nv_encoder->dcb->or & DCB_OUTPUT_A ? 0x10000 : 0x40000; dcb 209 drivers/gpu/drm/nouveau/dispnv04/dfp.c if (nv_encoder->dcb->location != DCB_LOC_ON_CHIP) dcb 236 drivers/gpu/drm/nouveau/dispnv04/dfp.c if (nv_encoder->dcb->type == DCB_OUTPUT_LVDS && nv04_display(dev)->saved_reg.sel_clk & 0xf0) { dcb 261 drivers/gpu/drm/nouveau/dispnv04/dfp.c if (nv_encoder->dcb->location == DCB_LOC_ON_CHIP) dcb 264 drivers/gpu/drm/nouveau/dispnv04/dfp.c *cr_lcd |= (nv_encoder->dcb->or << 4) & 0x30; dcb 265 drivers/gpu/drm/nouveau/dispnv04/dfp.c if (nv_encoder->dcb->type == DCB_OUTPUT_LVDS) dcb 341 drivers/gpu/drm/nouveau/dispnv04/dfp.c if (nv_encoder->dcb->location != DCB_LOC_ON_CHIP && dcb 344 drivers/gpu/drm/nouveau/dispnv04/dfp.c if (nv_encoder->dcb->type == DCB_OUTPUT_LVDS) { dcb 452 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct dcb_output *dcbe = nv_encoder->dcb; dcb 482 drivers/gpu/drm/nouveau/dispnv04/dfp.c nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); dcb 525 drivers/gpu/drm/nouveau/dispnv04/dfp.c mode, nv_encoder->dcb->index); dcb 530 drivers/gpu/drm/nouveau/dispnv04/dfp.c if (nv_encoder->dcb->lvdsconf.use_power_scripts) { dcb 535 drivers/gpu/drm/nouveau/dispnv04/dfp.c nv04_dfp_get_bound_head(dev, nv_encoder->dcb); dcb 538 drivers/gpu/drm/nouveau/dispnv04/dfp.c call_lvds_script(dev, nv_encoder->dcb, head, dcb 544 drivers/gpu/drm/nouveau/dispnv04/dfp.c call_lvds_script(dev, nv_encoder->dcb, head, dcb 570 drivers/gpu/drm/nouveau/dispnv04/dfp.c mode, nv_encoder->dcb->index); dcb 583 drivers/gpu/drm/nouveau/dispnv04/dfp.c nv04_dfp_get_bound_head(dev, nv_encoder->dcb); dcb 592 drivers/gpu/drm/nouveau/dispnv04/dfp.c if (nv_encoder->dcb->type == DCB_OUTPUT_LVDS) { dcb 597 drivers/gpu/drm/nouveau/dispnv04/dfp.c call_lvds_script(dev, nv_encoder->dcb, head, dcb 601 drivers/gpu/drm/nouveau/dispnv04/dfp.c } else if (nv_encoder->dcb->type == DCB_OUTPUT_TMDS) { dcb 605 drivers/gpu/drm/nouveau/dispnv04/dfp.c run_tmds_table(dev, nv_encoder->dcb, head, clock); dcb 625 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct dcb_output *dcb = nouveau_encoder(encoder)->dcb; dcb 633 drivers/gpu/drm/nouveau/dispnv04/dfp.c .addr = (dcb->tmdsconf.slave_addr == 0x7 ? 0x3a : 0x38), dcb 706 drivers/gpu/drm/nouveau/dispnv04/dfp.c nv_encoder->dcb = entry; dcb 192 drivers/gpu/drm/nouveau/dispnv04/disp.c struct dcb_table *dcb = &drm->vbios.dcb; dcb 227 drivers/gpu/drm/nouveau/dispnv04/disp.c for (i = 0; i < dcb->entries; i++) { dcb 228 drivers/gpu/drm/nouveau/dispnv04/disp.c struct dcb_output *dcbent = &dcb->entry[i]; dcb 269 drivers/gpu/drm/nouveau/dispnv04/disp.c nvkm_i2c_bus_find(i2c, nv_encoder->dcb->i2c_index); dcb 83 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c mode, nv_encoder->dcb->index); dcb 176 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); dcb 234 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c nv_encoder->dcb = entry; dcb 150 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct dcb_output *dcb = tv_enc->base.dcb; dcb 175 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c if (dcb->tvconf.has_component_output) dcb 193 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c '@' + ffs(dcb->or)); dcb 374 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c mode, nouveau_encoder(encoder)->dcb->index); dcb 419 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct dcb_output *dcb = nouveau_encoder(enc)->dcb; dcb 421 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c if ((dcb->type == DCB_OUTPUT_TMDS || dcb 422 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c dcb->type == DCB_OUTPUT_LVDS) && dcb 424 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv04_dfp_get_bound_head(dev, dcb) == head) { dcb 425 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv04_dfp_bind_head(dev, dcb, head ^ 1, dcb 603 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); dcb 641 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct dcb_output *dcb = nouveau_encoder(encoder)->dcb; dcb 642 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c int num_tv_norms = dcb->tvconf.has_component_output ? NUM_TV_NORMS : dcb 811 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c tv_enc->base.dcb = entry; dcb 268 drivers/gpu/drm/nouveau/dispnv50/disp.c .base.hasht = nv_encoder->dcb->hasht, dcb 269 drivers/gpu/drm/nouveau/dispnv50/disp.c .base.hashm = nv_encoder->dcb->hashm, dcb 288 drivers/gpu/drm/nouveau/dispnv50/disp.c .base.hasht = nv_encoder->dcb->hasht, dcb 289 drivers/gpu/drm/nouveau/dispnv50/disp.c .base.hashm = nv_encoder->dcb->hashm, dcb 413 drivers/gpu/drm/nouveau/dispnv50/disp.c .base.hasht = nv_encoder->dcb->hasht, dcb 414 drivers/gpu/drm/nouveau/dispnv50/disp.c .base.hashm = nv_encoder->dcb->hashm, dcb 462 drivers/gpu/drm/nouveau/dispnv50/disp.c nv_encoder->dcb = dcbe; dcb 493 drivers/gpu/drm/nouveau/dispnv50/disp.c .base.hasht = nv_encoder->dcb->hasht, dcb 494 drivers/gpu/drm/nouveau/dispnv50/disp.c .base.hashm = (0xf0ff & nv_encoder->dcb->hashm) | dcb 517 drivers/gpu/drm/nouveau/dispnv50/disp.c .base.mthd.hasht = nv_encoder->dcb->hasht, dcb 518 drivers/gpu/drm/nouveau/dispnv50/disp.c .base.mthd.hashm = (0xf0ff & nv_encoder->dcb->hashm) | dcb 546 drivers/gpu/drm/nouveau/dispnv50/disp.c .base.hasht = nv_encoder->dcb->hasht, dcb 547 drivers/gpu/drm/nouveau/dispnv50/disp.c .base.hashm = (0xf0ff & nv_encoder->dcb->hashm) | dcb 568 drivers/gpu/drm/nouveau/dispnv50/disp.c .base.hasht = nv_encoder->dcb->hasht, dcb 569 drivers/gpu/drm/nouveau/dispnv50/disp.c .base.hashm = (0xf0ff & nv_encoder->dcb->hashm) | dcb 745 drivers/gpu/drm/nouveau/dispnv50/disp.c .base.hasht = mstm->outp->dcb->hasht, dcb 746 drivers/gpu/drm/nouveau/dispnv50/disp.c .base.hashm = (0xf0ff & mstm->outp->dcb->hashm) | dcb 1244 drivers/gpu/drm/nouveau/dispnv50/disp.c .base.hasht = outp->dcb->hasht, dcb 1245 drivers/gpu/drm/nouveau/dispnv50/disp.c .base.hashm = outp->dcb->hashm, dcb 1367 drivers/gpu/drm/nouveau/dispnv50/disp.c const int max_payloads = hweight8(outp->dcb->heads); dcb 1394 drivers/gpu/drm/nouveau/dispnv50/disp.c ret = nv50_msto_new(dev, outp->dcb->heads, outp->base.base.name, dcb 1467 drivers/gpu/drm/nouveau/dispnv50/disp.c .base.hasht = nv_encoder->dcb->hasht, dcb 1468 drivers/gpu/drm/nouveau/dispnv50/disp.c .base.hashm = nv_encoder->dcb->hashm, dcb 1482 drivers/gpu/drm/nouveau/dispnv50/disp.c switch (nv_encoder->dcb->type) { dcb 1493 drivers/gpu/drm/nouveau/dispnv50/disp.c nv_encoder->dcb->duallink_possible && dcb 1597 drivers/gpu/drm/nouveau/dispnv50/disp.c nv_encoder->dcb = dcbe; dcb 1692 drivers/gpu/drm/nouveau/dispnv50/disp.c switch (nv_encoder->dcb->type) { dcb 1755 drivers/gpu/drm/nouveau/dispnv50/disp.c nv_encoder->dcb = dcbe; dcb 2321 drivers/gpu/drm/nouveau/dispnv50/disp.c struct dcb_table *dcb = &drm->vbios.dcb; dcb 2382 drivers/gpu/drm/nouveau/dispnv50/disp.c for (i = 0, dcbe = &dcb->entry[0]; i < dcb->entries; i++, dcbe++) { dcb 121 drivers/gpu/drm/nouveau/nouveau_backlight.c int or = ffs(nv_encoder->dcb->or) - 1; dcb 136 drivers/gpu/drm/nouveau/nouveau_backlight.c int or = ffs(nv_encoder->dcb->or) - 1; dcb 157 drivers/gpu/drm/nouveau/nouveau_backlight.c int or = ffs(nv_encoder->dcb->or) - 1; dcb 175 drivers/gpu/drm/nouveau/nouveau_backlight.c int or = ffs(nv_encoder->dcb->or) - 1; dcb 205 drivers/gpu/drm/nouveau/nouveau_backlight.c if (!nvif_rd32(device, NV50_PDISP_SOR_PWM_CTL(ffs(nv_encoder->dcb->or) - 1))) dcb 1251 drivers/gpu/drm/nouveau/nouveau_bios.c u8 *dcb = NULL; dcb 1254 drivers/gpu/drm/nouveau/nouveau_bios.c dcb = ROMPTR(dev, drm->vbios.data[0x36]); dcb 1255 drivers/gpu/drm/nouveau/nouveau_bios.c if (!dcb) { dcb 1260 drivers/gpu/drm/nouveau/nouveau_bios.c if (dcb[0] >= 0x42) { dcb 1261 drivers/gpu/drm/nouveau/nouveau_bios.c NV_WARN(drm, "DCB version 0x%02x unknown\n", dcb[0]); dcb 1264 drivers/gpu/drm/nouveau/nouveau_bios.c if (dcb[0] >= 0x30) { dcb 1265 drivers/gpu/drm/nouveau/nouveau_bios.c if (ROM32(dcb[6]) == 0x4edcbdcb) dcb 1266 drivers/gpu/drm/nouveau/nouveau_bios.c return dcb; dcb 1268 drivers/gpu/drm/nouveau/nouveau_bios.c if (dcb[0] >= 0x20) { dcb 1269 drivers/gpu/drm/nouveau/nouveau_bios.c if (ROM32(dcb[4]) == 0x4edcbdcb) dcb 1270 drivers/gpu/drm/nouveau/nouveau_bios.c return dcb; dcb 1272 drivers/gpu/drm/nouveau/nouveau_bios.c if (dcb[0] >= 0x15) { dcb 1273 drivers/gpu/drm/nouveau/nouveau_bios.c if (!memcmp(&dcb[-7], "DEV_REC", 7)) dcb 1274 drivers/gpu/drm/nouveau/nouveau_bios.c return dcb; dcb 1304 drivers/gpu/drm/nouveau/nouveau_bios.c u8 *dcb = olddcb_table(dev); dcb 1305 drivers/gpu/drm/nouveau/nouveau_bios.c if (dcb && dcb[0] >= 0x30) { dcb 1306 drivers/gpu/drm/nouveau/nouveau_bios.c if (idx < dcb[2]) dcb 1307 drivers/gpu/drm/nouveau/nouveau_bios.c return dcb + dcb[1] + (idx * dcb[3]); dcb 1309 drivers/gpu/drm/nouveau/nouveau_bios.c if (dcb && dcb[0] >= 0x20) { dcb 1310 drivers/gpu/drm/nouveau/nouveau_bios.c u8 *i2c = ROMPTR(dev, dcb[2]); dcb 1311 drivers/gpu/drm/nouveau/nouveau_bios.c u8 *ent = dcb + 8 + (idx * 8); dcb 1315 drivers/gpu/drm/nouveau/nouveau_bios.c if (dcb && dcb[0] >= 0x15) { dcb 1316 drivers/gpu/drm/nouveau/nouveau_bios.c u8 *i2c = ROMPTR(dev, dcb[2]); dcb 1317 drivers/gpu/drm/nouveau/nouveau_bios.c u8 *ent = dcb + 4 + (idx * 10); dcb 1353 drivers/gpu/drm/nouveau/nouveau_bios.c u8 *dcb = olddcb_table(dev); dcb 1354 drivers/gpu/drm/nouveau/nouveau_bios.c if (dcb && dcb[0] >= 0x30 && dcb[1] >= 0x16) { dcb 1355 drivers/gpu/drm/nouveau/nouveau_bios.c u8 *conntab = ROMPTR(dev, dcb[0x14]); dcb 1371 drivers/gpu/drm/nouveau/nouveau_bios.c static struct dcb_output *new_dcb_entry(struct dcb_table *dcb) dcb 1373 drivers/gpu/drm/nouveau/nouveau_bios.c struct dcb_output *entry = &dcb->entry[dcb->entries]; dcb 1376 drivers/gpu/drm/nouveau/nouveau_bios.c entry->index = dcb->entries++; dcb 1381 drivers/gpu/drm/nouveau/nouveau_bios.c static void fabricate_dcb_output(struct dcb_table *dcb, int type, int i2c, dcb 1384 drivers/gpu/drm/nouveau/nouveau_bios.c struct dcb_output *entry = new_dcb_entry(dcb); dcb 1395 drivers/gpu/drm/nouveau/nouveau_bios.c parse_dcb20_entry(struct drm_device *dev, struct dcb_table *dcb, dcb 1415 drivers/gpu/drm/nouveau/nouveau_bios.c entry->crtconf.maxfreq = (dcb->version < 0x30) ? dcb 1424 drivers/gpu/drm/nouveau/nouveau_bios.c if (dcb->version < 0x22) { dcb 1452 drivers/gpu/drm/nouveau/nouveau_bios.c if (dcb->version >= 0x40) dcb 1462 drivers/gpu/drm/nouveau/nouveau_bios.c if (dcb->version >= 0x30) dcb 1503 drivers/gpu/drm/nouveau/nouveau_bios.c if (dcb->version >= 0x40) { dcb 1508 drivers/gpu/drm/nouveau/nouveau_bios.c else if (dcb->version >= 0x30) dcb 1510 drivers/gpu/drm/nouveau/nouveau_bios.c else if (dcb->version >= 0x22) dcb 1515 drivers/gpu/drm/nouveau/nouveau_bios.c dcb->entries--; dcb 1521 drivers/gpu/drm/nouveau/nouveau_bios.c if (dcb->version < 0x40) { dcb 1542 drivers/gpu/drm/nouveau/nouveau_bios.c parse_dcb15_entry(struct drm_device *dev, struct dcb_table *dcb, dcb 1596 drivers/gpu/drm/nouveau/nouveau_bios.c void merge_like_dcb_entries(struct drm_device *dev, struct dcb_table *dcb) dcb 1607 drivers/gpu/drm/nouveau/nouveau_bios.c for (i = 0; i < dcb->entries; i++) { dcb 1608 drivers/gpu/drm/nouveau/nouveau_bios.c struct dcb_output *ient = &dcb->entry[i]; dcb 1611 drivers/gpu/drm/nouveau/nouveau_bios.c for (j = i + 1; j < dcb->entries; j++) { dcb 1612 drivers/gpu/drm/nouveau/nouveau_bios.c struct dcb_output *jent = &dcb->entry[j]; dcb 1631 drivers/gpu/drm/nouveau/nouveau_bios.c for (i = 0; i < dcb->entries; i++) { dcb 1632 drivers/gpu/drm/nouveau/nouveau_bios.c if (dcb->entry[i].type == 100) dcb 1636 drivers/gpu/drm/nouveau/nouveau_bios.c dcb->entry[newentries] = dcb->entry[i]; dcb 1637 drivers/gpu/drm/nouveau/nouveau_bios.c dcb->entry[newentries].index = newentries; dcb 1642 drivers/gpu/drm/nouveau/nouveau_bios.c dcb->entries = newentries; dcb 1649 drivers/gpu/drm/nouveau/nouveau_bios.c struct dcb_table *dcb = &drm->vbios.dcb; dcb 1675 drivers/gpu/drm/nouveau/nouveau_bios.c fabricate_dcb_output(dcb, DCB_OUTPUT_TMDS, 1, 1, 1); dcb 1755 drivers/gpu/drm/nouveau/nouveau_bios.c struct dcb_table *dcb = &bios->dcb; dcb 1761 drivers/gpu/drm/nouveau/nouveau_bios.c fabricate_dcb_output(dcb, DCB_OUTPUT_TMDS, 0, all_heads, 1); dcb 1762 drivers/gpu/drm/nouveau/nouveau_bios.c fabricate_dcb_output(dcb, DCB_OUTPUT_ANALOG, 1, all_heads, 2); dcb 1768 drivers/gpu/drm/nouveau/nouveau_bios.c fabricate_dcb_output(dcb, DCB_OUTPUT_ANALOG, dcb 1772 drivers/gpu/drm/nouveau/nouveau_bios.c fabricate_dcb_output(dcb, DCB_OUTPUT_TV, dcb 1778 drivers/gpu/drm/nouveau/nouveau_bios.c fabricate_dcb_output(dcb, DCB_OUTPUT_TMDS, dcb 1787 drivers/gpu/drm/nouveau/nouveau_bios.c struct dcb_table *dcb = &drm->vbios.dcb; dcb 1788 drivers/gpu/drm/nouveau/nouveau_bios.c u32 conf = (dcb->version >= 0x20) ? ROM32(outp[4]) : ROM32(outp[6]); dcb 1793 drivers/gpu/drm/nouveau/nouveau_bios.c struct dcb_output *entry = new_dcb_entry(dcb); dcb 1797 drivers/gpu/drm/nouveau/nouveau_bios.c if (dcb->version >= 0x20) dcb 1798 drivers/gpu/drm/nouveau/nouveau_bios.c ret = parse_dcb20_entry(dev, dcb, conn, conf, entry); dcb 1800 drivers/gpu/drm/nouveau/nouveau_bios.c ret = parse_dcb15_entry(dev, dcb, conn, conf, entry); dcb 1819 drivers/gpu/drm/nouveau/nouveau_bios.c struct dcb_table *dcbt = &bios->dcb; dcb 1866 drivers/gpu/drm/nouveau/nouveau_bios.c struct dcb_table *dcb = &bios->dcb; dcb 1883 drivers/gpu/drm/nouveau/nouveau_bios.c dcb->version = dcbt[0]; dcb 1890 drivers/gpu/drm/nouveau/nouveau_bios.c if (dcb->version < 0x21) dcb 1891 drivers/gpu/drm/nouveau/nouveau_bios.c merge_like_dcb_entries(dev, dcb); dcb 110 drivers/gpu/drm/nouveau/nouveau_bios.h struct dcb_table dcb; dcb 388 drivers/gpu/drm/nouveau/nouveau_connector.c (nv_encoder->dcb && nv_encoder->dcb->type == type)) dcb 437 drivers/gpu/drm/nouveau/nouveau_connector.c switch (nv_encoder->dcb->type) { dcb 489 drivers/gpu/drm/nouveau/nouveau_connector.c if (nv_encoder->dcb->i2c_index == idx && edid) { dcb 516 drivers/gpu/drm/nouveau/nouveau_connector.c if (nv_encoder->dcb->type == DCB_OUTPUT_LVDS || dcb 517 drivers/gpu/drm/nouveau/nouveau_connector.c nv_encoder->dcb->type == DCB_OUTPUT_TMDS) { dcb 535 drivers/gpu/drm/nouveau/nouveau_connector.c nv_encoder->dcb->type == DCB_OUTPUT_TMDS ? dcb 599 drivers/gpu/drm/nouveau/nouveau_connector.c if (nv_encoder->dcb->type == DCB_OUTPUT_TMDS) dcb 601 drivers/gpu/drm/nouveau/nouveau_connector.c if (nv_encoder->dcb->type == DCB_OUTPUT_ANALOG) dcb 604 drivers/gpu/drm/nouveau/nouveau_connector.c if (nv_partner && ((nv_encoder->dcb->type == DCB_OUTPUT_ANALOG && dcb 605 drivers/gpu/drm/nouveau/nouveau_connector.c nv_partner->dcb->type == DCB_OUTPUT_TMDS) || dcb 606 drivers/gpu/drm/nouveau/nouveau_connector.c (nv_encoder->dcb->type == DCB_OUTPUT_TMDS && dcb 607 drivers/gpu/drm/nouveau/nouveau_connector.c nv_partner->dcb->type == DCB_OUTPUT_ANALOG))) { dcb 691 drivers/gpu/drm/nouveau/nouveau_connector.c if (nv_encoder->dcb->lvdsconf.use_acpi_for_edid) { dcb 703 drivers/gpu/drm/nouveau/nouveau_connector.c nv_encoder->dcb->lvdsconf.use_straps_for_mode)) { dcb 776 drivers/gpu/drm/nouveau/nouveau_connector.c if (nv_encoder && nv_encoder->dcb->type == DCB_OUTPUT_TV) dcb 875 drivers/gpu/drm/nouveau/nouveau_connector.c if (nv_encoder->dcb->type != DCB_OUTPUT_LVDS) { dcb 939 drivers/gpu/drm/nouveau/nouveau_connector.c if (nv_encoder->dcb->type == DCB_OUTPUT_LVDS && dcb 940 drivers/gpu/drm/nouveau/nouveau_connector.c (nv_encoder->dcb->lvdsconf.use_straps_for_mode || dcb 975 drivers/gpu/drm/nouveau/nouveau_connector.c if (nv_encoder->dcb->type == DCB_OUTPUT_TV) dcb 992 drivers/gpu/drm/nouveau/nouveau_connector.c struct dcb_output *dcb = nv_connector->detected_encoder->dcb; dcb 995 drivers/gpu/drm/nouveau/nouveau_connector.c nouveau_duallink && nv_encoder->dcb->duallink_possible ? 2 : 1; dcb 1022 drivers/gpu/drm/nouveau/nouveau_connector.c if (dcb->location != DCB_LOC_ON_CHIP || dcb 1043 drivers/gpu/drm/nouveau/nouveau_connector.c switch (nv_encoder->dcb->type) { dcb 1057 drivers/gpu/drm/nouveau/nouveau_connector.c max_clock = nv_encoder->dcb->crtconf.maxfreq; dcb 1225 drivers/gpu/drm/nouveau/nouveau_connector.c drm_conntype_from_dcb(enum dcb_connector_type dcb) dcb 1227 drivers/gpu/drm/nouveau/nouveau_connector.c switch (dcb) { dcb 1287 drivers/gpu/drm/nouveau/nouveau_connector.c nv_connector->dcb = olddcb_conn(dev, index); dcb 1288 drivers/gpu/drm/nouveau/nouveau_connector.c if (nv_connector->dcb) { dcb 1289 drivers/gpu/drm/nouveau/nouveau_connector.c u32 entry = ROM16(nv_connector->dcb[0]); dcb 1291 drivers/gpu/drm/nouveau/nouveau_connector.c entry |= (u32)ROM16(nv_connector->dcb[2]) << 16; dcb 1293 drivers/gpu/drm/nouveau/nouveau_connector.c nv_connector->type = nv_connector->dcb[0]; dcb 1321 drivers/gpu/drm/nouveau/nouveau_connector.c struct dcb_table *dcbt = &drm->vbios.dcb; dcb 106 drivers/gpu/drm/nouveau/nouveau_connector.h u8 *dcb; dcb 544 drivers/gpu/drm/nouveau/nouveau_display.c if (nouveau_modeset != 2 && drm->vbios.dcb.entries) { dcb 81 drivers/gpu/drm/nouveau/nouveau_dp.c nv_encoder->dcb->dpconf.link_nr, dcb 82 drivers/gpu/drm/nouveau/nouveau_dp.c nv_encoder->dcb->dpconf.link_bw); dcb 84 drivers/gpu/drm/nouveau/nouveau_dp.c if (nv_encoder->dcb->dpconf.link_nr < nv_encoder->dp.link_nr) dcb 85 drivers/gpu/drm/nouveau/nouveau_dp.c nv_encoder->dp.link_nr = nv_encoder->dcb->dpconf.link_nr; dcb 86 drivers/gpu/drm/nouveau/nouveau_dp.c if (nv_encoder->dcb->dpconf.link_bw < nv_encoder->dp.link_bw) dcb 87 drivers/gpu/drm/nouveau/nouveau_dp.c nv_encoder->dp.link_bw = nv_encoder->dcb->dpconf.link_bw; dcb 44 drivers/gpu/drm/nouveau/nouveau_encoder.h struct dcb_output *dcb; dcb 31 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c u32 dcb = dcb_table(bios, ver, hdr, cnt, len); dcb 32 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c if (dcb && *ver >= 0x30 && *hdr >= 0x16) { dcb 33 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c u32 data = nvbios_rd16(bios, dcb + 0x14); dcb 32 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c u16 dcb = 0x0000; dcb 35 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c dcb = nvbios_rd16(bios, 0x36); dcb 36 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c if (!dcb) { dcb 38 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c return dcb; dcb 41 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c *ver = nvbios_rd08(bios, dcb); dcb 48 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c if (nvbios_rd32(bios, dcb + 6) == 0x4edcbdcb) { dcb 49 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c *hdr = nvbios_rd08(bios, dcb + 1); dcb 50 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c *cnt = nvbios_rd08(bios, dcb + 2); dcb 51 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c *len = nvbios_rd08(bios, dcb + 3); dcb 52 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c return dcb; dcb 56 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c if (nvbios_rd32(bios, dcb + 4) == 0x4edcbdcb) { dcb 57 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c u16 i2c = nvbios_rd16(bios, dcb + 2); dcb 59 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c *cnt = (i2c - dcb) / 8; dcb 61 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c return dcb; dcb 65 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c if (!nvbios_memcmp(bios, dcb - 7, "DEV_REC", 7)) { dcb 66 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c u16 i2c = nvbios_rd16(bios, dcb + 2); dcb 68 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c *cnt = (i2c - dcb) / 10; dcb 70 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c return dcb; dcb 102 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c u16 dcb = dcb_table(bios, ver, &hdr, &cnt, len); dcb 103 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c if (dcb && idx < cnt) dcb 104 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c return dcb + hdr + (idx * *len); dcb 124 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c u16 dcb = dcb_outp(bios, idx, ver, len); dcb 126 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c if (dcb) { dcb 128 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c u32 conn = nvbios_rd32(bios, dcb + 0x00); dcb 138 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c dcb = 0x0000; dcb 142 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c u32 conf = nvbios_rd32(bios, dcb + 0x04); dcb 193 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c return dcb; dcb 200 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c u16 dcb, idx = 0; dcb 201 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c while ((dcb = dcb_outp_parse(bios, idx++, ver, len, outp))) { dcb 207 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c return dcb; dcb 32 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c u16 dcb, extdev = 0; dcb 34 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c dcb = dcb_table(bios, &dcb_ver, &dcb_hdr, &dcb_cnt, &dcb_len); dcb 35 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c if (!dcb || (dcb_ver != 0x30 && dcb_ver != 0x40 && dcb_ver != 0x41)) dcb 38 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c extdev = nvbios_rd16(bios, dcb + 18); dcb 33 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c u16 dcb = dcb_table(bios, ver, hdr, cnt, len); dcb 34 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c if (dcb) { dcb 36 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c data = nvbios_rd16(bios, dcb + 0x0a); dcb 38 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c if (*ver >= 0x22 && nvbios_rd08(bios, dcb - 1) >= 0x13) dcb 39 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c data = nvbios_rd16(bios, dcb - 0x0f); dcb 32 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c u16 dcb = dcb_table(bios, ver, hdr, cnt, len); dcb 33 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c if (dcb) { dcb 35 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c i2c = nvbios_rd16(bios, dcb + 2); dcb 37 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c i2c = nvbios_rd16(bios, dcb + 4); dcb 193 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c u16 dcb = dcb_table(bios, &ver, &hdr, &cnt, &len); dcb 194 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c if (dcb == 0x0000 || (ver != 0x40 && ver != 0x41)) { dcb 305 drivers/infiniband/hw/i40iw/i40iw.h bool dcb; dcb 2175 drivers/infiniband/hw/i40iw/i40iw_cm.c if ((cm_node->vlan_id == I40IW_NO_VLAN) && iwdev->dcb) dcb 1362 drivers/infiniband/hw/i40iw/i40iw_main.c iwdev->dcb = true; dcb 1364 drivers/infiniband/hw/i40iw/i40iw_main.c i40iw_pr_info("DCB is set/clear = %d\n", iwdev->dcb); dcb 27 drivers/isdn/mISDN/layer1.c dchannel_l1callback *dcb; dcb 121 drivers/isdn/mISDN/layer1.c l1->dcb(l1->dch, HW_POWERUP_REQ); dcb 141 drivers/isdn/mISDN/layer1.c l1->dcb(l1->dch, INFO3_P8); dcb 164 drivers/isdn/mISDN/layer1.c l1->dcb(l1->dch, INFO3_P8); dcb 173 drivers/isdn/mISDN/layer1.c l1->dcb(l1->dch, INFO3_P8); dcb 192 drivers/isdn/mISDN/layer1.c l1->dcb(l1->dch, HW_D_NOBLOCKED); dcb 193 drivers/isdn/mISDN/layer1.c l1->dcb(l1->dch, PH_DEACTIVATE_IND); dcb 208 drivers/isdn/mISDN/layer1.c l1->dcb(l1->dch, PH_ACTIVATE_IND); dcb 219 drivers/isdn/mISDN/layer1.c l1->dcb(l1->dch, HW_D_NOBLOCKED); dcb 220 drivers/isdn/mISDN/layer1.c l1->dcb(l1->dch, PH_DEACTIVATE_IND); dcb 221 drivers/isdn/mISDN/layer1.c l1->dcb(l1->dch, HW_DEACT_REQ); dcb 232 drivers/isdn/mISDN/layer1.c l1->dcb(l1->dch, HW_RESET_REQ); dcb 244 drivers/isdn/mISDN/layer1.c l1->dcb(l1->dch, HW_D_NOBLOCKED); dcb 245 drivers/isdn/mISDN/layer1.c l1->dcb(l1->dch, PH_DEACTIVATE_IND); dcb 344 drivers/isdn/mISDN/layer1.c l1->dcb(l1->dch, PH_ACTIVATE_IND); dcb 374 drivers/isdn/mISDN/layer1.c create_l1(struct dchannel *dch, dchannel_l1callback *dcb) { dcb 391 drivers/isdn/mISDN/layer1.c nl1->dcb = dcb; dcb 766 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->dcb = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, DCBEN); dcb 875 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->dcb ? "yes" : "no"); dcb 985 drivers/net/ethernet/amd/xgbe/xgbe.h unsigned int dcb; /* DCB Feature */ dcb 588 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h struct port_dcb_info dcb; /* Data Center Bridging support */ dcb 36 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_dcb_info *dcb = &pi->dcb; dcb 37 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c int version_temp = dcb->dcb_version; dcb 39 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c memset(dcb, 0, sizeof(struct port_dcb_info)); dcb 40 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->state = CXGB4_DCB_STATE_START; dcb 42 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->dcb_version = version_temp; dcb 51 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_dcb_info *dcb = &pi->dcb; dcb 56 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->dcb_version = FW_PORT_DCB_VER_AUTO; dcb 63 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_dcb_info *dcb = &pi->dcb; dcb 72 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (!dcb->app_priority[i].protocolid) dcb 75 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c app.protocol = dcb->app_priority[i].protocolid; dcb 77 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (dcb->dcb_version == FW_PORT_DCB_VER_IEEE) { dcb 78 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c app.priority = dcb->app_priority[i].user_prio_map; dcb 79 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c app.selector = dcb->app_priority[i].sel_field + 1; dcb 82 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c app.selector = !!(dcb->app_priority[i].sel_field); dcb 89 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb_ver_array[dcb->dcb_version], app.selector, dcb 110 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c static inline void cxgb4_dcb_update_support(struct port_dcb_info *dcb) dcb 112 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (dcb->dcb_version == FW_PORT_DCB_VER_IEEE) { dcb 113 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (dcb->supported & DCB_CAP_DCBX_VER_CEE) dcb 114 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->supported &= ~DCB_CAP_DCBX_VER_CEE; dcb 115 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->supported |= DCB_CAP_DCBX_VER_IEEE; dcb 116 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c } else if (dcb->dcb_version == FW_PORT_DCB_VER_CEE1D01) { dcb 117 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (dcb->supported & DCB_CAP_DCBX_VER_IEEE) dcb 118 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->supported &= ~DCB_CAP_DCBX_VER_IEEE; dcb 119 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->supported |= DCB_CAP_DCBX_VER_CEE; dcb 129 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_dcb_info *dcb = &pi->dcb; dcb 131 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c enum cxgb4_dcb_state current_state = dcb->state; dcb 134 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c __func__, dcb->state, transition_to, dev->name); dcb 141 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->state = CXGB4_DCB_STATE_HOST; dcb 142 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->supported = CXGB4_DCBX_HOST_SUPPORT; dcb 148 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->state = CXGB4_DCB_STATE_FW_INCOMPLETE; dcb 149 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->supported = DCB_CAP_DCBX_LLD_MANAGED; dcb 150 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (dcb->dcb_version == FW_PORT_DCB_VER_IEEE) dcb 151 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->supported |= DCB_CAP_DCBX_VER_IEEE; dcb 153 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->supported |= DCB_CAP_DCBX_VER_CEE; dcb 163 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->state = CXGB4_DCB_STATE_FW_ALLSYNCED; dcb 181 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c cxgb4_dcb_update_support(dcb); dcb 195 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->state = CXGB4_DCB_STATE_FW_ALLSYNCED; dcb 196 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->enabled = 1; dcb 221 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->state = CXGB4_DCB_STATE_FW_INCOMPLETE; dcb 222 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->supported = CXGB4_DCBX_FW_SUPPORT; dcb 232 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->enabled = 1; dcb 276 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c const union fw_port_dcb *fwdcb = &pcmd->u.dcb; dcb 280 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_dcb_info *dcb = &pi->dcb; dcb 281 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c int dcb_type = pcmd->u.dcb.pgid.type; dcb 289 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c ((pcmd->u.dcb.control.all_syncd_pkd & dcb 294 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (dcb->dcb_version != FW_PORT_DCB_VER_UNKNOWN) { dcb 297 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd->u.dcb.control.dcb_version_to_app_state)); dcb 300 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->dcb_version = dcb_running_version; dcb 303 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb_ver_array[dcb->dcb_version]); dcb 307 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb_ver_array[dcb->dcb_version], dcb 309 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->dcb_version = FW_PORT_DCB_VER_UNKNOWN; dcb 322 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (dcb->state == CXGB4_DCB_STATE_START || dcb 323 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->state == CXGB4_DCB_STATE_HOST) { dcb 325 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->state); dcb 333 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->pgid = be32_to_cpu(fwdcb->pgid.pgid); dcb 334 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->msgs |= CXGB4_DCB_FW_PGID; dcb 338 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->pg_num_tcs_supported = fwdcb->pgrate.num_tcs_supported; dcb 339 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c memcpy(dcb->pgrate, &fwdcb->pgrate.pgrate, dcb 340 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c sizeof(dcb->pgrate)); dcb 341 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c memcpy(dcb->tsa, &fwdcb->pgrate.tsa, dcb 342 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c sizeof(dcb->tsa)); dcb 343 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->msgs |= CXGB4_DCB_FW_PGRATE; dcb 344 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (dcb->msgs & CXGB4_DCB_FW_PGID) dcb 345 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c IEEE_FAUX_SYNC(dev, dcb); dcb 349 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c memcpy(dcb->priorate, &fwdcb->priorate.strict_priorate, dcb 350 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c sizeof(dcb->priorate)); dcb 351 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->msgs |= CXGB4_DCB_FW_PRIORATE; dcb 355 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->pfcen = fwdcb->pfc.pfcen; dcb 356 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->pfc_num_tcs_supported = fwdcb->pfc.max_pfc_tcs; dcb 357 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->msgs |= CXGB4_DCB_FW_PFC; dcb 358 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c IEEE_FAUX_SYNC(dev, dcb); dcb 364 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct app_priority *ap = &dcb->app_priority[idx]; dcb 374 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (dcb->dcb_version == FW_PORT_DCB_VER_IEEE) { dcb 378 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c IEEE_FAUX_SYNC(dev, dcb); dcb 394 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c dcb->msgs |= CXGB4_DCB_FW_APP_ID; dcb 415 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c return pi->dcb.enabled; dcb 425 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (pi->dcb.state == CXGB4_DCB_STATE_HOST) { dcb 426 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pi->dcb.enabled = enabled; dcb 432 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (enabled != (pi->dcb.state == CXGB4_DCB_STATE_FW_ALLSYNCED)) dcb 454 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.pgid.type = FW_PORT_DCB_TYPE_PGID; dcb 460 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c *pgid = (be32_to_cpu(pcmd.u.dcb.pgid.pgid) >> (tc * 4)) & 0xf; dcb 466 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.pgrate.type = FW_PORT_DCB_TYPE_PGRATE; dcb 474 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c *bw_per = pcmd.u.dcb.pgrate.pgrate[*pgid]; dcb 518 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.pgid.type = FW_PORT_DCB_TYPE_PGID; dcb 526 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c _pgid = be32_to_cpu(pcmd.u.dcb.pgid.pgid); dcb 529 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.pgid.pgid = cpu_to_be32(_pgid); dcb 543 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.pgrate.type = FW_PORT_DCB_TYPE_PGRATE; dcb 552 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.pgrate.pgrate[pgid] = bw_per; dcb 555 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (pi->dcb.state == CXGB4_DCB_STATE_HOST) dcb 577 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.pgrate.type = FW_PORT_DCB_TYPE_PGRATE; dcb 585 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c *bw_per = pcmd.u.dcb.pgrate.pgrate[pgid]; dcb 607 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.pgrate.type = FW_PORT_DCB_TYPE_PGRATE; dcb 616 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.pgrate.pgrate[pgid] = bw_per; dcb 619 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (pi->dcb.state == CXGB4_DCB_STATE_HOST) dcb 635 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_dcb_info *dcb = &pi->dcb; dcb 637 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (!cxgb4_dcb_state_synced(dcb->state) || dcb 641 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c *pfccfg = (pi->dcb.pfcen >> (7 - priority)) & 1; dcb 654 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (!cxgb4_dcb_state_synced(pi->dcb.state) || dcb 659 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (pi->dcb.state == CXGB4_DCB_STATE_HOST) dcb 662 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.pfc.type = FW_PORT_DCB_TYPE_PFC; dcb 663 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.pfc.pfcen = pi->dcb.pfcen; dcb 666 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.pfc.pfcen |= (1 << (7 - priority)); dcb 668 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.pfc.pfcen &= (~(1 << (7 - priority))); dcb 676 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pi->dcb.pfcen = pcmd.u.dcb.pfc.pfcen; dcb 716 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c *caps = pi->dcb.supported; dcb 734 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (pi->dcb.msgs & CXGB4_DCB_FW_PGRATE) dcb 735 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c *num = pi->dcb.pg_num_tcs_supported; dcb 766 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (!cxgb4_dcb_state_synced(pi->dcb.state)) dcb 769 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c return pi->dcb.pfcen != 0; dcb 790 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (!cxgb4_dcb_state_synced(pi->dcb.state)) dcb 802 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.app_priority.type = FW_PORT_DCB_TYPE_APP_ID; dcb 803 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.app_priority.idx = i; dcb 811 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (be16_to_cpu(pcmd.u.dcb.app_priority.protocolid) == app_id) dcb 812 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (pcmd.u.dcb.app_priority.sel_field == app_idtype) dcb 813 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c return pcmd.u.dcb.app_priority.user_prio_map; dcb 816 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (!pcmd.u.dcb.app_priority.protocolid) dcb 844 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (!cxgb4_dcb_state_synced(pi->dcb.state)) dcb 853 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.app_priority.type = FW_PORT_DCB_TYPE_APP_ID; dcb 854 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.app_priority.idx = i; dcb 862 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (be16_to_cpu(pcmd.u.dcb.app_priority.protocolid) == app_id) { dcb 864 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.app_priority.protocolid = 0; dcb 868 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (!pcmd.u.dcb.app_priority.protocolid) dcb 880 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (pi->dcb.state == CXGB4_DCB_STATE_HOST) dcb 883 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.app_priority.type = FW_PORT_DCB_TYPE_APP_ID; dcb 884 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.app_priority.protocolid = cpu_to_be16(app_id); dcb 885 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.app_priority.sel_field = app_idtype; dcb 886 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.app_priority.user_prio_map = app_prio; dcb 887 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.app_priority.idx = i; dcb 930 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_dcb_info *dcb = &pi->dcb; dcb 932 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (dcb->state == CXGB4_DCB_STATE_FW_ALLSYNCED) dcb 933 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (dcb_subtype && !(dcb->msgs & dcb_subtype)) dcb 936 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c return (cxgb4_dcb_state_synced(dcb->state) && dcb 937 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c (dcb->supported & DCB_CAP_DCBX_VER_IEEE)); dcb 944 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_dcb_info *dcb = &pi->dcb; dcb 950 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (!(dcb->msgs & (CXGB4_DCB_FW_PGID | CXGB4_DCB_FW_PGRATE))) dcb 953 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c ets->ets_cap = dcb->pg_num_tcs_supported; dcb 962 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.pgid.type = FW_PORT_DCB_TYPE_PGID; dcb 969 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c tc_info = be32_to_cpu(pcmd.u.dcb.pgid.pgid); dcb 976 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.pgrate.type = FW_PORT_DCB_TYPE_PGRATE; dcb 987 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c ets->tc_tx_bw[i] = pcmd.u.dcb.pgrate.pgrate[i]; dcb 989 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c ets->tc_tsa[i] = pcmd.u.dcb.pgrate.tsa[i]; dcb 1004 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c struct port_dcb_info *dcb = &pi->dcb; dcb 1008 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (!(dcb->msgs & CXGB4_DCB_FW_PFC)) dcb 1011 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pfc->pfc_cap = dcb->pfc_num_tcs_supported; dcb 1012 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pfc->pfc_en = bitswap_1(dcb->pfcen); dcb 1077 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c return pi->dcb.supported; dcb 1094 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (!cxgb4_dcb_state_synced(pi->dcb.state)) dcb 1102 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (dcb_request != pi->dcb.supported) dcb 1105 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pi->dcb.supported = dcb_request; dcb 1117 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (!cxgb4_dcb_state_synced(pi->dcb.state)) dcb 1126 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.app_priority.type = FW_PORT_DCB_TYPE_APP_ID; dcb 1127 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.app_priority.idx = *app_count; dcb 1137 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (!pcmd.u.dcb.app_priority.protocolid) dcb 1151 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (!cxgb4_dcb_state_synced(pi->dcb.state)) dcb 1156 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.app_priority.type = FW_PORT_DCB_TYPE_APP_ID; dcb 1157 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.app_priority.idx = i; dcb 1167 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c if (!pcmd.u.dcb.app_priority.protocolid) dcb 1170 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c table[i].selector = (pcmd.u.dcb.app_priority.sel_field + 1); dcb 1172 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c be16_to_cpu(pcmd.u.dcb.app_priority.protocolid); dcb 1174 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c ffs(pcmd.u.dcb.app_priority.user_prio_map) - 1; dcb 1195 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.pgid.type = FW_PORT_DCB_TYPE_PGID; dcb 1201 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pgid = be32_to_cpu(pcmd.u.dcb.pgid.pgid); dcb 1207 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pcmd.u.dcb.pgrate.type = FW_PORT_DCB_TYPE_PGRATE; dcb 1216 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pg->pg_bw[i] = pcmd.u.dcb.pgrate.pgrate[i]; dcb 1218 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pg->tcs_supported = pcmd.u.dcb.pgrate.num_tcs_supported; dcb 1235 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pfc->pfc_en = bitswap_1(pi->dcb.pfcen); dcb 1237 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c pfc->tcs_supported = pi->dcb.pfc_num_tcs_supported; dcb 2403 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c struct port_dcb_info *dcb = &pi->dcb; dcb 2412 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c dcb_ver_array[dcb->dcb_version]); dcb 2414 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (dcb->msgs) { dcb 2423 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (dcb->msgs & CXGB4_DCB_FW_PGID) { dcb 2428 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c pgid = (dcb->pgid >> 4 * (7 - prio)) & 0xf; dcb 2434 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (dcb->msgs & CXGB4_DCB_FW_PGRATE) { dcb 2439 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c seq_printf(seq, " %3d", dcb->pgrate[pg]); dcb 2442 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (dcb->dcb_version == FW_PORT_DCB_VER_IEEE) { dcb 2445 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c seq_printf(seq, " %3d", dcb->tsa[pg]); dcb 2450 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c dcb->pg_num_tcs_supported); dcb 2455 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (dcb->msgs & CXGB4_DCB_FW_PRIORATE) { dcb 2460 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c seq_printf(seq, " %3d", dcb->priorate[prio]); dcb 2464 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (dcb->msgs & CXGB4_DCB_FW_PFC) { dcb 2469 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c int pfcen = (dcb->pfcen >> 1 * (7 - prio)) dcb 2476 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c dcb->pfc_num_tcs_supported); dcb 2481 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (dcb->msgs & CXGB4_DCB_FW_APP_ID) { dcb 2498 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c ap = &dcb->app_priority[app]; dcb 2721 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c (ethqset2pinfo(adap, base_qset + i)->dcb.pgid >> dcb 2724 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c (ethqset2pinfo(adap, base_qset + i)->dcb.pfcen >> dcb 273 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (!pi->dcb.enabled) dcb 276 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c return ((pi->dcb.state == CXGB4_DCB_STATE_FW_ALLSYNCED) || dcb 277 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c (pi->dcb.state == CXGB4_DCB_STATE_HOST)); dcb 2825 drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h } dcb; dcb 3273 drivers/net/ethernet/intel/i40e/i40e_common.c p->dcb = true; dcb 876 drivers/net/ethernet/intel/i40e/i40e_dcb.c if (!hw->func_caps.dcb) dcb 6453 drivers/net/ethernet/intel/i40e/i40e_main.c if ((!hw->func_caps.dcb) || dcb 291 drivers/net/ethernet/intel/i40e/i40e_type.h bool dcb; dcb 930 drivers/net/ethernet/intel/iavf/iavf_common.c hw->dev_caps.dcb = msg->vf_cap_flags & dcb 103 drivers/net/ethernet/intel/iavf/iavf_type.h bool dcb; dcb 1707 drivers/net/ethernet/intel/ice/ice_common.c caps->dcb = (number == 1); dcb 1711 drivers/net/ethernet/intel/ice/ice_common.c "%s: dcb = %d\n", prefix, caps->dcb); dcb 955 drivers/net/ethernet/intel/ice/ice_dcb.c if (!hw->func_caps.common_cap.dcb) dcb 997 drivers/net/ethernet/intel/ice/ice_dcb.c if (!hw->func_caps.common_cap.dcb) dcb 2325 drivers/net/ethernet/intel/ice/ice_main.c if (func_caps->common_cap.dcb) dcb 176 drivers/net/ethernet/intel/ice/ice_type.h u8 dcb; dcb 977 drivers/net/ethernet/mellanox/mlxsw/spectrum.c bool dcb_en = !!mlxsw_sp_port->dcb.ets; dcb 981 drivers/net/ethernet/mellanox/mlxsw/spectrum.c prio_tc = dcb_en ? mlxsw_sp_port->dcb.ets->prio_tc : def_prio_tc; dcb 982 drivers/net/ethernet/mellanox/mlxsw/spectrum.c my_pfc = dcb_en ? mlxsw_sp_port->dcb.pfc : NULL; dcb 1975 drivers/net/ethernet/mellanox/mlxsw/spectrum.c if (mlxsw_sp_port->dcb.pfc && mlxsw_sp_port->dcb.pfc->pfc_en) { dcb 257 drivers/net/ethernet/mellanox/mlxsw/spectrum.h } dcb; dcb 28 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c memcpy(ets, mlxsw_sp_port->dcb.ets, sizeof(*ets)); dcb 117 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c struct ieee_ets *my_ets = mlxsw_sp_port->dcb.ets; dcb 126 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c mlxsw_sp_port->dcb.pfc); dcb 153 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c struct ieee_ets *my_ets = mlxsw_sp_port->dcb.ets; dcb 221 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c memcpy(mlxsw_sp_port->dcb.ets, ets, sizeof(*ets)); dcb 222 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c mlxsw_sp_port->dcb.ets->ets_cap = IEEE_8021QAZ_MAX_TCS; dcb 351 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c if (mlxsw_sp_port->dcb.trust_state == ts) dcb 362 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c mlxsw_sp_port->dcb.trust_state = ts; dcb 367 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c mlxsw_sp_port->dcb.trust_state); dcb 496 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c memcpy(maxrate, mlxsw_sp_port->dcb.maxrate, sizeof(*maxrate)); dcb 505 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c struct ieee_maxrate *my_maxrate = mlxsw_sp_port->dcb.maxrate; dcb 519 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c memcpy(mlxsw_sp_port->dcb.maxrate, maxrate, sizeof(*maxrate)); dcb 535 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c struct ieee_pfc *my_pfc = mlxsw_sp_port->dcb.pfc; dcb 566 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c memcpy(pfc, mlxsw_sp_port->dcb.pfc, sizeof(*pfc)); dcb 598 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c mlxsw_sp_port->dcb.ets->prio_tc, dcb 611 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c memcpy(mlxsw_sp_port->dcb.pfc, pfc, sizeof(*pfc)); dcb 612 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c mlxsw_sp_port->dcb.pfc->pfc_cap = IEEE_8021QAZ_MAX_TCS; dcb 618 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c mlxsw_sp_port->dcb.ets->prio_tc, pause_en, dcb 619 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c mlxsw_sp_port->dcb.pfc); dcb 639 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c mlxsw_sp_port->dcb.ets = kzalloc(sizeof(*mlxsw_sp_port->dcb.ets), dcb 641 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c if (!mlxsw_sp_port->dcb.ets) dcb 644 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c mlxsw_sp_port->dcb.ets->ets_cap = IEEE_8021QAZ_MAX_TCS; dcb 651 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c kfree(mlxsw_sp_port->dcb.ets); dcb 658 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c mlxsw_sp_port->dcb.maxrate = kmalloc(sizeof(*mlxsw_sp_port->dcb.maxrate), dcb 660 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c if (!mlxsw_sp_port->dcb.maxrate) dcb 664 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c mlxsw_sp_port->dcb.maxrate->tc_maxrate[i] = MLXSW_REG_QEEC_MAS_DIS; dcb 671 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c kfree(mlxsw_sp_port->dcb.maxrate); dcb 676 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c mlxsw_sp_port->dcb.pfc = kzalloc(sizeof(*mlxsw_sp_port->dcb.pfc), dcb 678 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c if (!mlxsw_sp_port->dcb.pfc) dcb 681 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c mlxsw_sp_port->dcb.pfc->pfc_cap = IEEE_8021QAZ_MAX_TCS; dcb 688 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c kfree(mlxsw_sp_port->dcb.pfc); dcb 705 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c mlxsw_sp_port->dcb.trust_state = MLXSW_REG_QPTS_TRUST_STATE_PCP; dcb 2919 drivers/net/ethernet/qlogic/qed/qed_l2.c .dcb = &qed_dcbnl_ops_pass, dcb 16 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->getstate(edev->cdev); dcb 23 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->setstate(edev->cdev, state); dcb 38 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c edev->ops->dcb->getpgtccfgtx(edev->cdev, prio, prio_type, dcb 47 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c edev->ops->dcb->getpgbwgcfgtx(edev->cdev, pgid, bw_pct); dcb 56 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c edev->ops->dcb->getpgtccfgrx(edev->cdev, prio, prio_type, pgid, bw_pct, dcb 65 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c edev->ops->dcb->getpgbwgcfgrx(edev->cdev, pgid, bw_pct); dcb 73 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c edev->ops->dcb->getpfccfg(edev->cdev, prio, setting); dcb 81 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c edev->ops->dcb->setpfccfg(edev->cdev, prio, setting); dcb 88 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->getcap(edev->cdev, capid, cap); dcb 95 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->getnumtcs(edev->cdev, tcid, num); dcb 102 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->getpfcstate(edev->cdev); dcb 109 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->getapp(edev->cdev, idtype, id); dcb 116 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->getdcbx(edev->cdev); dcb 124 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->setpgtccfgtx(edev->cdev, prio, pri_type, pgid, dcb 133 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->setpgtccfgrx(edev->cdev, prio, pri_type, pgid, dcb 142 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->setpgbwgcfgtx(edev->cdev, pgid, bw_pct); dcb 150 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->setpgbwgcfgrx(edev->cdev, pgid, bw_pct); dcb 157 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->setall(edev->cdev); dcb 164 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->setnumtcs(edev->cdev, tcid, num); dcb 171 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->setpfcstate(edev->cdev, state); dcb 179 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->setapp(edev->cdev, idtype, idval, up); dcb 186 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->setdcbx(edev->cdev, state); dcb 194 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->getfeatcfg(edev->cdev, featid, flags); dcb 201 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->setfeatcfg(edev->cdev, featid, flags); dcb 210 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->peer_getappinfo(edev->cdev, info, count); dcb 218 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->peer_getapptable(edev->cdev, app); dcb 226 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->cee_peer_getpfc(edev->cdev, pfc); dcb 234 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->cee_peer_getpg(edev->cdev, pg); dcb 242 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->ieee_getpfc(edev->cdev, pfc); dcb 250 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->ieee_setpfc(edev->cdev, pfc); dcb 258 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->ieee_getets(edev->cdev, ets); dcb 266 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->ieee_setets(edev->cdev, ets); dcb 274 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->ieee_getapp(edev->cdev, app); dcb 287 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->ieee_setapp(edev->cdev, app); dcb 295 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->ieee_peer_getpfc(edev->cdev, pfc); dcb 303 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->ieee_peer_getets(edev->cdev, ets); dcb 1177 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h struct qlcnic_dcb *dcb; dcb 1004 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c qlcnic_dcb_aen_handler(adapter->dcb, (void *)&event[1]); dcb 1643 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c if (adapter->dcb) dcb 641 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_dcb_get_info(adapter->dcb); dcb 2527 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_dcb_enable(adapter->dcb); dcb 2529 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_dcb_get_info(adapter->dcb); dcb 242 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c static inline void __qlcnic_init_dcbnl_ops(struct qlcnic_dcb *dcb) dcb 244 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (test_bit(QLCNIC_DCB_STATE, &dcb->state)) dcb 245 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c dcb->adapter->netdev->dcbnl_ops = &qlcnic_dcbnl_ops; dcb 251 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c adapter->dcb->ops = &qlcnic_82xx_dcb_ops; dcb 253 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c adapter->dcb->ops = &qlcnic_83xx_dcb_ops; dcb 258 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c struct qlcnic_dcb *dcb; dcb 263 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c dcb = kzalloc(sizeof(struct qlcnic_dcb), GFP_ATOMIC); dcb 264 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (!dcb) dcb 267 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c adapter->dcb = dcb; dcb 268 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c dcb->adapter = adapter; dcb 270 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c dcb->state = 0; dcb 275 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c static void __qlcnic_dcb_free(struct qlcnic_dcb *dcb) dcb 279 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (!dcb) dcb 282 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c adapter = dcb->adapter; dcb 284 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c while (test_bit(QLCNIC_DCB_AEN_MODE, &dcb->state)) dcb 287 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c cancel_delayed_work_sync(&dcb->aen_work); dcb 289 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (dcb->wq) { dcb 290 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c destroy_workqueue(dcb->wq); dcb 291 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c dcb->wq = NULL; dcb 294 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c kfree(dcb->cfg); dcb 295 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c dcb->cfg = NULL; dcb 296 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c kfree(dcb->param); dcb 297 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c dcb->param = NULL; dcb 298 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c kfree(dcb); dcb 299 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c adapter->dcb = NULL; dcb 302 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c static void __qlcnic_dcb_get_info(struct qlcnic_dcb *dcb) dcb 304 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c qlcnic_dcb_get_hw_capability(dcb); dcb 305 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c qlcnic_dcb_get_cee_cfg(dcb); dcb 308 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c static int __qlcnic_dcb_attach(struct qlcnic_dcb *dcb) dcb 312 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c INIT_DELAYED_WORK(&dcb->aen_work, qlcnic_dcb_aen_work); dcb 314 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c dcb->wq = create_singlethread_workqueue("qlcnic-dcb"); dcb 315 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (!dcb->wq) { dcb 316 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c dev_err(&dcb->adapter->pdev->dev, dcb 321 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c dcb->cfg = kzalloc(sizeof(struct qlcnic_dcb_cfg), GFP_ATOMIC); dcb 322 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (!dcb->cfg) { dcb 327 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c dcb->param = kzalloc(sizeof(struct qlcnic_dcb_mbx_params), GFP_ATOMIC); dcb 328 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (!dcb->param) { dcb 335 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c kfree(dcb->cfg); dcb 336 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c dcb->cfg = NULL; dcb 339 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c destroy_workqueue(dcb->wq); dcb 340 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c dcb->wq = NULL; dcb 345 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c static int __qlcnic_dcb_query_hw_capability(struct qlcnic_dcb *dcb, char *buf) dcb 347 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c struct qlcnic_adapter *adapter = dcb->adapter; dcb 371 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c static int __qlcnic_dcb_get_capability(struct qlcnic_dcb *dcb, u32 *val) dcb 373 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c struct qlcnic_dcb_capability *cap = &dcb->cfg->capability; dcb 379 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c err = qlcnic_dcb_query_hw_capability(dcb, (char *)val); dcb 397 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c dev_err(&dcb->adapter->pdev->dev, "Invalid DCB configuration\n"); dcb 404 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c static int qlcnic_82xx_dcb_get_hw_capability(struct qlcnic_dcb *dcb) dcb 406 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c struct qlcnic_dcb_cfg *cfg = dcb->cfg; dcb 411 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c err = __qlcnic_dcb_get_capability(dcb, &mbx_out); dcb 419 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c set_bit(QLCNIC_DCB_STATE, &dcb->state); dcb 424 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c static int qlcnic_82xx_dcb_query_cee_param(struct qlcnic_dcb *dcb, dcb 428 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c struct qlcnic_adapter *adapter = dcb->adapter; dcb 493 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c static int qlcnic_82xx_dcb_get_cee_cfg(struct qlcnic_dcb *dcb) dcb 498 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c mbx = dcb->param; dcb 502 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c err = qlcnic_dcb_query_cee_param(dcb, (char *)&mbx->type[0], dcb 507 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c err = qlcnic_dcb_query_cee_param(dcb, (char *)&mbx->type[1], dcb 512 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c err = qlcnic_dcb_query_cee_param(dcb, (char *)&mbx->type[2], dcb 519 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c qlcnic_dcb_data_cee_param_map(dcb->adapter); dcb 526 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c struct qlcnic_dcb *dcb; dcb 528 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c dcb = container_of(work, struct qlcnic_dcb, aen_work.work); dcb 530 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c qlcnic_dcb_get_cee_cfg(dcb); dcb 531 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c clear_bit(QLCNIC_DCB_AEN_MODE, &dcb->state); dcb 534 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c static void qlcnic_82xx_dcb_aen_handler(struct qlcnic_dcb *dcb, void *data) dcb 536 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (test_and_set_bit(QLCNIC_DCB_AEN_MODE, &dcb->state)) dcb 539 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c queue_delayed_work(dcb->wq, &dcb->aen_work, 0); dcb 542 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c static int qlcnic_83xx_dcb_get_hw_capability(struct qlcnic_dcb *dcb) dcb 544 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c struct qlcnic_dcb_capability *cap = &dcb->cfg->capability; dcb 548 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c err = __qlcnic_dcb_get_capability(dcb, &mbx_out); dcb 560 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c set_bit(QLCNIC_DCB_STATE, &dcb->state); dcb 565 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c static int qlcnic_83xx_dcb_query_cee_param(struct qlcnic_dcb *dcb, dcb 568 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c struct qlcnic_adapter *adapter = dcb->adapter; dcb 628 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c static int qlcnic_83xx_dcb_get_cee_cfg(struct qlcnic_dcb *dcb) dcb 632 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c err = qlcnic_dcb_query_cee_param(dcb, (char *)dcb->param, 0); dcb 636 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c qlcnic_dcb_data_cee_param_map(dcb->adapter); dcb 641 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c static void qlcnic_83xx_dcb_aen_handler(struct qlcnic_dcb *dcb, void *data) dcb 645 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (test_and_set_bit(QLCNIC_DCB_AEN_MODE, &dcb->state)) dcb 649 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c set_bit(QLCNIC_DCB_STATE, &dcb->state); dcb 651 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c clear_bit(QLCNIC_DCB_STATE, &dcb->state); dcb 653 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c queue_delayed_work(dcb->wq, &dcb->aen_work, 0); dcb 745 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c struct qlcnic_dcb_mbx_params *mbx = adapter->dcb->param; dcb 747 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c struct qlcnic_dcb_cfg *cfg = adapter->dcb->cfg; dcb 784 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c return test_bit(QLCNIC_DCB_STATE, &adapter->dcb->state); dcb 801 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c type = &adapter->dcb->cfg->type[QLC_DCB_OPER_IDX]; dcb 804 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (!test_bit(QLCNIC_DCB_STATE, &adapter->dcb->state) || dcb 838 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c type = &adapter->dcb->cfg->type[QLC_DCB_OPER_IDX]; dcb 840 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (!test_bit(QLCNIC_DCB_STATE, &adapter->dcb->state) || dcb 864 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c type = &adapter->dcb->cfg->type[QLC_DCB_OPER_IDX]; dcb 866 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (!test_bit(QLCNIC_DCB_STATE, &adapter->dcb->state) || dcb 885 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (!test_bit(QLCNIC_DCB_STATE, &adapter->dcb->state)) dcb 900 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c *cap = adapter->dcb->cfg->capability.dcb_capability; dcb 912 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c struct qlcnic_dcb_cfg *cfg = adapter->dcb->cfg; dcb 914 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (!test_bit(QLCNIC_DCB_STATE, &adapter->dcb->state)) dcb 937 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (!test_bit(QLCNIC_DCB_STATE, &adapter->dcb->state)) dcb 946 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c struct qlcnic_dcb *dcb = adapter->dcb; dcb 948 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (!test_bit(QLCNIC_DCB_STATE, &dcb->state)) dcb 951 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c return dcb->cfg->type[QLC_DCB_OPER_IDX].pfc_mode_enable; dcb 957 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c struct qlcnic_dcb_cfg *cfg = adapter->dcb->cfg; dcb 959 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (!test_bit(QLCNIC_DCB_STATE, &adapter->dcb->state)) dcb 970 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (!test_bit(QLCNIC_DCB_STATE, &adapter->dcb->state)) dcb 973 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c type = &adapter->dcb->cfg->type[QLC_DCB_OPER_IDX]; dcb 1026 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (!test_bit(QLCNIC_DCB_STATE, &adapter->dcb->state)) dcb 1029 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c peer = &adapter->dcb->cfg->type[QLC_DCB_PEER_IDX]; dcb 1047 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (!test_bit(QLCNIC_DCB_STATE, &adapter->dcb->state)) dcb 1050 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c peer = &adapter->dcb->cfg->type[QLC_DCB_PEER_IDX]; dcb 1072 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (!test_bit(QLCNIC_DCB_STATE, &adapter->dcb->state)) dcb 1075 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c peer = &adapter->dcb->cfg->type[QLC_DCB_PEER_IDX]; dcb 1100 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c struct qlcnic_dcb_cfg *cfg = adapter->dcb->cfg; dcb 1107 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (!test_bit(QLCNIC_DCB_STATE, &adapter->dcb->state)) dcb 45 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h static inline void qlcnic_clear_dcb_ops(struct qlcnic_dcb *dcb) dcb 47 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h kfree(dcb); dcb 50 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h static inline int qlcnic_dcb_get_hw_capability(struct qlcnic_dcb *dcb) dcb 52 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h if (dcb && dcb->ops->get_hw_capability) dcb 53 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h return dcb->ops->get_hw_capability(dcb); dcb 58 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h static inline void qlcnic_dcb_free(struct qlcnic_dcb *dcb) dcb 60 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h if (dcb && dcb->ops->free) dcb 61 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h dcb->ops->free(dcb); dcb 64 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h static inline int qlcnic_dcb_attach(struct qlcnic_dcb *dcb) dcb 66 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h if (dcb && dcb->ops->attach) dcb 67 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h return dcb->ops->attach(dcb); dcb 73 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h qlcnic_dcb_query_hw_capability(struct qlcnic_dcb *dcb, char *buf) dcb 75 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h if (dcb && dcb->ops->query_hw_capability) dcb 76 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h return dcb->ops->query_hw_capability(dcb, buf); dcb 81 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h static inline void qlcnic_dcb_get_info(struct qlcnic_dcb *dcb) dcb 83 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h if (dcb && dcb->ops->get_info) dcb 84 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h dcb->ops->get_info(dcb); dcb 88 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h qlcnic_dcb_query_cee_param(struct qlcnic_dcb *dcb, char *buf, u8 type) dcb 90 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h if (dcb && dcb->ops->query_cee_param) dcb 91 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h return dcb->ops->query_cee_param(dcb, buf, type); dcb 96 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h static inline int qlcnic_dcb_get_cee_cfg(struct qlcnic_dcb *dcb) dcb 98 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h if (dcb && dcb->ops->get_cee_cfg) dcb 99 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h return dcb->ops->get_cee_cfg(dcb); dcb 104 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h static inline void qlcnic_dcb_aen_handler(struct qlcnic_dcb *dcb, void *msg) dcb 106 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h if (dcb && dcb->ops->aen_handler) dcb 107 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h dcb->ops->aen_handler(dcb, msg); dcb 110 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h static inline void qlcnic_dcb_init_dcbnl_ops(struct qlcnic_dcb *dcb) dcb 112 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h if (dcb && dcb->ops->init_dcbnl_ops) dcb 113 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h dcb->ops->init_dcbnl_ops(dcb); dcb 116 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h static inline void qlcnic_dcb_enable(struct qlcnic_dcb *dcb) dcb 118 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h if (dcb && qlcnic_dcb_attach(dcb)) dcb 119 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h qlcnic_clear_dcb_ops(dcb); dcb 1131 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c qlcnic_dcb_aen_handler(adapter->dcb, (void *)&msg); dcb 2354 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c qlcnic_dcb_init_dcbnl_ops(adapter->dcb); dcb 2641 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c qlcnic_dcb_enable(adapter->dcb); dcb 2642 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c qlcnic_dcb_get_info(adapter->dcb); dcb 2770 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c qlcnic_dcb_free(adapter->dcb); dcb 3678 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c qlcnic_dcb_get_info(adapter->dcb); dcb 429 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->dcb = XLGMAC_GET_REG_BITS(mac_hfr1, dcb 656 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.dcb ? "YES" : "NO"); dcb 519 drivers/net/ethernet/synopsys/dwc-xlgmac.h unsigned int dcb; /* DCB Feature */ dcb 230 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb; dcb 380 drivers/scsi/dc395x.c static u8 start_scsi(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, dcb 384 drivers/scsi/dc395x.c static void build_srb(struct scsi_cmnd *cmd, struct DeviceCtlBlk *dcb, dcb 392 drivers/scsi/dc395x.c static void srb_done(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, dcb 394 drivers/scsi/dc395x.c static void request_sense(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, dcb 397 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb); dcb 736 drivers/scsi/dc395x.c static void free_tag(struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) dcb 739 drivers/scsi/dc395x.c dcb->tag_mask &= ~(1 << srb->tag_number); /* free tag mask */ dcb 775 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb; dcb 793 drivers/scsi/dc395x.c list_for_each_entry(dcb, dcb_list_head, list) dcb 794 drivers/scsi/dc395x.c if (dcb == acb->dcb_run_robin) { dcb 795 drivers/scsi/dc395x.c start = dcb; dcb 859 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb = srb->dcb; dcb 861 drivers/scsi/dc395x.c if (dcb->max_command <= list_size(&dcb->srb_going_list) || dcb 864 drivers/scsi/dc395x.c list_add_tail(&srb->list, &dcb->srb_waiting_list); dcb 869 drivers/scsi/dc395x.c if (!start_scsi(acb, dcb, srb)) { dcb 870 drivers/scsi/dc395x.c list_add_tail(&srb->list, &dcb->srb_going_list); dcb 872 drivers/scsi/dc395x.c list_add(&srb->list, &dcb->srb_waiting_list); dcb 878 drivers/scsi/dc395x.c static void build_srb(struct scsi_cmnd *cmd, struct DeviceCtlBlk *dcb, dcb 884 drivers/scsi/dc395x.c cmd, dcb->target_id, dcb->target_lun); dcb 886 drivers/scsi/dc395x.c srb->dcb = dcb; dcb 943 drivers/scsi/dc395x.c if (dcb->sync_period & WIDE_SYNC && dcb 949 drivers/scsi/dc395x.c srb->sg_bus_addr = dma_map_single(&dcb->acb->dev->dev, dcb 981 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb; dcb 1006 drivers/scsi/dc395x.c dcb = find_dcb(acb, cmd->device->id, cmd->device->lun); dcb 1007 drivers/scsi/dc395x.c if (!dcb) { dcb 1030 drivers/scsi/dc395x.c build_srb(cmd, dcb, srb); dcb 1032 drivers/scsi/dc395x.c if (!list_empty(&dcb->srb_waiting_list)) { dcb 1034 drivers/scsi/dc395x.c list_add_tail(&srb->list, &dcb->srb_waiting_list); dcb 1089 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) dcb 1094 drivers/scsi/dc395x.c if (!dcb) dcb 1095 drivers/scsi/dc395x.c dcb = acb->active_dcb; dcb 1096 drivers/scsi/dc395x.c if (!srb && dcb) dcb 1097 drivers/scsi/dc395x.c srb = dcb->active_srb; dcb 1170 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb; dcb 1174 drivers/scsi/dc395x.c list_for_each_entry(dcb, &acb->dcb_list, list) { dcb 1177 drivers/scsi/dc395x.c dcb->sync_mode &= ~(SYNC_NEGO_DONE + WIDE_NEGO_DONE); dcb 1178 drivers/scsi/dc395x.c dcb->sync_period = 0; dcb 1179 drivers/scsi/dc395x.c dcb->sync_offset = 0; dcb 1181 drivers/scsi/dc395x.c dcb->dev_mode = eeprom->target[dcb->target_id].cfg0; dcb 1182 drivers/scsi/dc395x.c period_index = eeprom->target[dcb->target_id].period & 0x07; dcb 1183 drivers/scsi/dc395x.c dcb->min_nego_period = clock_period[period_index]; dcb 1184 drivers/scsi/dc395x.c if (!(dcb->dev_mode & NTC_DO_WIDE_NEGO) dcb 1186 drivers/scsi/dc395x.c dcb->sync_mode &= ~WIDE_NEGO_ENABLE; dcb 1266 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb; dcb 1271 drivers/scsi/dc395x.c dcb = find_dcb(acb, cmd->device->id, cmd->device->lun); dcb 1272 drivers/scsi/dc395x.c if (!dcb) { dcb 1277 drivers/scsi/dc395x.c srb = find_cmd(cmd, &dcb->srb_waiting_list); dcb 1282 drivers/scsi/dc395x.c free_tag(dcb, srb); dcb 1288 drivers/scsi/dc395x.c srb = find_cmd(cmd, &dcb->srb_going_list); dcb 1300 drivers/scsi/dc395x.c static void build_sdtr(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, dcb 1311 drivers/scsi/dc395x.c if (!(dcb->dev_mode & NTC_DO_SYNC_NEGO)) { dcb 1312 drivers/scsi/dc395x.c dcb->sync_offset = 0; dcb 1313 drivers/scsi/dc395x.c dcb->min_nego_period = 200 >> 2; dcb 1314 drivers/scsi/dc395x.c } else if (dcb->sync_offset == 0) dcb 1315 drivers/scsi/dc395x.c dcb->sync_offset = SYNC_NEGO_OFFSET; dcb 1320 drivers/scsi/dc395x.c *ptr++ = dcb->min_nego_period; /* Transfer period (in 4ns) */ dcb 1321 drivers/scsi/dc395x.c *ptr++ = dcb->sync_offset; /* Transfer period (max. REQ/ACK dist) */ dcb 1328 drivers/scsi/dc395x.c static void build_wdtr(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, dcb 1331 drivers/scsi/dc395x.c u8 wide = ((dcb->dev_mode & NTC_DO_WIDE_NEGO) & dcb 1389 drivers/scsi/dc395x.c static u8 start_scsi(struct AdapterCtlBlk* acb, struct DeviceCtlBlk* dcb, dcb 1396 drivers/scsi/dc395x.c dcb->target_id, dcb->target_lun, srb); dcb 1443 drivers/scsi/dc395x.c DC395x_write8(acb, TRM_S1040_SCSI_TARGETID, dcb->target_id); dcb 1444 drivers/scsi/dc395x.c DC395x_write8(acb, TRM_S1040_SCSI_SYNC, dcb->sync_period); dcb 1445 drivers/scsi/dc395x.c DC395x_write8(acb, TRM_S1040_SCSI_OFFSET, dcb->sync_offset); dcb 1448 drivers/scsi/dc395x.c identify_message = dcb->identify_msg; dcb 1457 drivers/scsi/dc395x.c && (((dcb->sync_mode & WIDE_NEGO_ENABLE) dcb 1458 drivers/scsi/dc395x.c && !(dcb->sync_mode & WIDE_NEGO_DONE)) dcb 1459 drivers/scsi/dc395x.c || ((dcb->sync_mode & SYNC_NEGO_ENABLE) dcb 1460 drivers/scsi/dc395x.c && !(dcb->sync_mode & SYNC_NEGO_DONE))) dcb 1461 drivers/scsi/dc395x.c && (dcb->target_lun == 0)) { dcb 1467 drivers/scsi/dc395x.c if (dcb->sync_mode & WIDE_NEGO_ENABLE dcb 1468 drivers/scsi/dc395x.c && dcb->inquiry7 & SCSI_INQ_WBUS16) { dcb 1469 drivers/scsi/dc395x.c build_wdtr(acb, dcb, srb); dcb 1473 drivers/scsi/dc395x.c if (dcb->sync_mode & SYNC_NEGO_ENABLE dcb 1474 drivers/scsi/dc395x.c && dcb->inquiry7 & SCSI_INQ_SYNC) { dcb 1475 drivers/scsi/dc395x.c build_sdtr(acb, dcb, srb); dcb 1478 drivers/scsi/dc395x.c if (dcb->sync_mode & WIDE_NEGO_ENABLE dcb 1479 drivers/scsi/dc395x.c && dcb->inquiry7 & SCSI_INQ_WBUS16) { dcb 1480 drivers/scsi/dc395x.c build_wdtr(acb, dcb, srb); dcb 1491 drivers/scsi/dc395x.c if ((dcb->sync_mode & EN_TAG_QUEUEING) dcb 1496 drivers/scsi/dc395x.c while (tag_mask & dcb->tag_mask dcb 1497 drivers/scsi/dc395x.c && tag_number < dcb->max_command) { dcb 1501 drivers/scsi/dc395x.c if (tag_number >= dcb->max_command) { dcb 1514 drivers/scsi/dc395x.c dcb->tag_mask |= tag_mask; dcb 1527 drivers/scsi/dc395x.c DC395x_write8(acb, TRM_S1040_SCSI_FIFO, (dcb->target_lun << 5)); dcb 1547 drivers/scsi/dc395x.c srb->cmd, dcb->target_id, dcb->target_lun); dcb 1549 drivers/scsi/dc395x.c free_tag(dcb, srb); dcb 1559 drivers/scsi/dc395x.c dcb->active_srb = srb; dcb 1560 drivers/scsi/dc395x.c acb->active_dcb = dcb; dcb 1599 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb; dcb 1640 drivers/scsi/dc395x.c dcb = acb->active_dcb; dcb 1641 drivers/scsi/dc395x.c if (!dcb) { dcb 1647 drivers/scsi/dc395x.c srb = dcb->active_srb; dcb 1648 drivers/scsi/dc395x.c if (dcb->flag & ABORT_DEV_) { dcb 1795 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb; dcb 1810 drivers/scsi/dc395x.c dcb = acb->active_dcb; dcb 1812 drivers/scsi/dc395x.c DC395x_write8(acb, TRM_S1040_SCSI_FIFO, (dcb->target_lun << 5)); dcb 1872 drivers/scsi/dc395x.c dma_sync_single_for_cpu(&srb->dcb->acb->dev->dev, dcb 1878 drivers/scsi/dc395x.c dma_sync_single_for_device(&srb->dcb->acb->dev->dev, dcb 1938 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb = srb->dcb; dcb 1984 drivers/scsi/dc395x.c if (dcb->sync_period & WIDE_SYNC) dcb 1991 drivers/scsi/dc395x.c (dcb->sync_period & WIDE_SYNC) ? "words" : "bytes", dcb 2014 drivers/scsi/dc395x.c if (d_left_counter == 1 && dcb->sync_period & WIDE_SYNC dcb 2042 drivers/scsi/dc395x.c (dcb->sync_period & WIDE_SYNC) ? 2 : 1; dcb 2142 drivers/scsi/dc395x.c << ((srb->dcb->sync_period & WIDE_SYNC) ? 1 : dcb 2149 drivers/scsi/dc395x.c (srb->dcb->sync_period & WIDE_SYNC) ? "words" : "bytes", dcb 2166 drivers/scsi/dc395x.c (srb->dcb->sync_period & WIDE_SYNC) ? dcb 2169 drivers/scsi/dc395x.c if (srb->dcb->sync_period & WIDE_SYNC) dcb 2210 drivers/scsi/dc395x.c if (fc == 0x40 && (srb->dcb->sync_period & WIDE_SYNC)) { dcb 2247 drivers/scsi/dc395x.c if (srb->dcb->sync_period & WIDE_SYNC) dcb 2303 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb = srb->dcb; dcb 2326 drivers/scsi/dc395x.c dump_register_info(acb, dcb, srb); dcb 2386 drivers/scsi/dc395x.c if (srb->dcb->sync_period & WIDE_SYNC) dcb 2416 drivers/scsi/dc395x.c if (srb->dcb->sync_period & WIDE_SYNC) { dcb 2443 drivers/scsi/dc395x.c if (dcb->sync_period & WIDE_SYNC) { dcb 2526 drivers/scsi/dc395x.c srb->dcb->target_id, srb->dcb->target_lun); dcb 2531 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb, u8 tag) dcb 2538 drivers/scsi/dc395x.c if (!(dcb->tag_mask & (1 << tag))) dcb 2541 drivers/scsi/dc395x.c dcb->tag_mask, tag); dcb 2543 drivers/scsi/dc395x.c if (list_empty(&dcb->srb_going_list)) dcb 2545 drivers/scsi/dc395x.c list_for_each_entry(i, &dcb->srb_going_list, list) { dcb 2555 drivers/scsi/dc395x.c srb->cmd, srb->dcb->target_id, srb->dcb->target_lun); dcb 2556 drivers/scsi/dc395x.c if (dcb->flag & ABORT_DEV_) { dcb 2564 drivers/scsi/dc395x.c memcpy(srb->msgin_buf, dcb->active_srb->msgin_buf, acb->msg_len); dcb 2565 drivers/scsi/dc395x.c srb->state |= dcb->active_srb->state; dcb 2567 drivers/scsi/dc395x.c dcb->active_srb = srb; dcb 2574 drivers/scsi/dc395x.c dcb->active_srb = srb; dcb 2584 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb) dcb 2586 drivers/scsi/dc395x.c DC395x_write8(acb, TRM_S1040_SCSI_TARGETID, dcb->target_id); dcb 2587 drivers/scsi/dc395x.c DC395x_write8(acb, TRM_S1040_SCSI_SYNC, dcb->sync_period); dcb 2588 drivers/scsi/dc395x.c DC395x_write8(acb, TRM_S1040_SCSI_OFFSET, dcb->sync_offset); dcb 2589 drivers/scsi/dc395x.c set_xfer_rate(acb, dcb); dcb 2596 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb = srb->dcb; dcb 2598 drivers/scsi/dc395x.c dcb->target_id, dcb->target_lun); dcb 2600 drivers/scsi/dc395x.c dcb->sync_mode &= ~(SYNC_NEGO_ENABLE); dcb 2601 drivers/scsi/dc395x.c dcb->sync_mode |= SYNC_NEGO_DONE; dcb 2603 drivers/scsi/dc395x.c dcb->sync_offset = 0; dcb 2604 drivers/scsi/dc395x.c dcb->min_nego_period = 200 >> 2; /* 200ns <=> 5 MHz */ dcb 2606 drivers/scsi/dc395x.c reprogram_regs(acb, dcb); dcb 2607 drivers/scsi/dc395x.c if ((dcb->sync_mode & WIDE_NEGO_ENABLE) dcb 2608 drivers/scsi/dc395x.c && !(dcb->sync_mode & WIDE_NEGO_DONE)) { dcb 2609 drivers/scsi/dc395x.c build_wdtr(acb, dcb, srb); dcb 2619 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb = srb->dcb; dcb 2624 drivers/scsi/dc395x.c dcb->target_id, srb->msgin_buf[3] << 2, dcb 2631 drivers/scsi/dc395x.c if (!(dcb->dev_mode & NTC_DO_SYNC_NEGO)) dcb 2632 drivers/scsi/dc395x.c dcb->sync_offset = 0; dcb 2633 drivers/scsi/dc395x.c else if (dcb->sync_offset == 0) dcb 2634 drivers/scsi/dc395x.c dcb->sync_offset = srb->msgin_buf[4]; dcb 2635 drivers/scsi/dc395x.c if (srb->msgin_buf[4] > dcb->sync_offset) dcb 2636 drivers/scsi/dc395x.c srb->msgin_buf[4] = dcb->sync_offset; dcb 2638 drivers/scsi/dc395x.c dcb->sync_offset = srb->msgin_buf[4]; dcb 2641 drivers/scsi/dc395x.c || dcb->min_nego_period > dcb 2649 drivers/scsi/dc395x.c dcb->sync_period &= 0xf0; dcb 2650 drivers/scsi/dc395x.c dcb->sync_period |= ALT_SYNC | bval; dcb 2651 drivers/scsi/dc395x.c dcb->min_nego_period = srb->msgin_buf[3]; dcb 2653 drivers/scsi/dc395x.c if (dcb->sync_period & WIDE_SYNC) dcb 2660 drivers/scsi/dc395x.c dcb->target_id, (fact == 500) ? "Wide16" : "", dcb 2661 drivers/scsi/dc395x.c dcb->min_nego_period << 2, dcb->sync_offset, dcb 2662 drivers/scsi/dc395x.c (fact / dcb->min_nego_period), dcb 2663 drivers/scsi/dc395x.c ((fact % dcb->min_nego_period) * 10 + dcb 2664 drivers/scsi/dc395x.c dcb->min_nego_period / 2) / dcb->min_nego_period); dcb 2674 drivers/scsi/dc395x.c dcb->sync_mode |= SYNC_NEGO_DONE; dcb 2676 drivers/scsi/dc395x.c if ((dcb->sync_mode & WIDE_NEGO_ENABLE) dcb 2677 drivers/scsi/dc395x.c && !(dcb->sync_mode & WIDE_NEGO_DONE)) { dcb 2678 drivers/scsi/dc395x.c build_wdtr(acb, dcb, srb); dcb 2684 drivers/scsi/dc395x.c dcb->sync_mode |= SYNC_NEGO_DONE | SYNC_NEGO_ENABLE; dcb 2686 drivers/scsi/dc395x.c reprogram_regs(acb, dcb); dcb 2693 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb = srb->dcb; dcb 2694 drivers/scsi/dc395x.c dprintkdbg(DBG_1, "msgin_set_nowide: <%02i>\n", dcb->target_id); dcb 2696 drivers/scsi/dc395x.c dcb->sync_period &= ~WIDE_SYNC; dcb 2697 drivers/scsi/dc395x.c dcb->sync_mode &= ~(WIDE_NEGO_ENABLE); dcb 2698 drivers/scsi/dc395x.c dcb->sync_mode |= WIDE_NEGO_DONE; dcb 2700 drivers/scsi/dc395x.c reprogram_regs(acb, dcb); dcb 2701 drivers/scsi/dc395x.c if ((dcb->sync_mode & SYNC_NEGO_ENABLE) dcb 2702 drivers/scsi/dc395x.c && !(dcb->sync_mode & SYNC_NEGO_DONE)) { dcb 2703 drivers/scsi/dc395x.c build_sdtr(acb, dcb, srb); dcb 2711 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb = srb->dcb; dcb 2712 drivers/scsi/dc395x.c u8 wide = (dcb->dev_mode & NTC_DO_WIDE_NEGO dcb 2714 drivers/scsi/dc395x.c dprintkdbg(DBG_1, "msgin_set_wide: <%02i>\n", dcb->target_id); dcb 2722 drivers/scsi/dc395x.c dcb->target_id); dcb 2729 drivers/scsi/dc395x.c dcb->sync_mode |= (WIDE_NEGO_ENABLE | WIDE_NEGO_DONE); dcb 2731 drivers/scsi/dc395x.c dcb->sync_period |= WIDE_SYNC; dcb 2733 drivers/scsi/dc395x.c dcb->sync_period &= ~WIDE_SYNC; dcb 2738 drivers/scsi/dc395x.c (8 << srb->msgin_buf[3]), dcb->target_id); dcb 2739 drivers/scsi/dc395x.c reprogram_regs(acb, dcb); dcb 2740 drivers/scsi/dc395x.c if ((dcb->sync_mode & SYNC_NEGO_ENABLE) dcb 2741 drivers/scsi/dc395x.c && !(dcb->sync_mode & SYNC_NEGO_DONE)) { dcb 2742 drivers/scsi/dc395x.c build_sdtr(acb, dcb, srb); dcb 2764 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb = acb->active_dcb; dcb 2779 drivers/scsi/dc395x.c msgin_qtag(acb, dcb, dcb 2843 drivers/scsi/dc395x.c srb->cmd, dcb->target_id, dcb 2844 drivers/scsi/dc395x.c dcb->target_lun); dcb 2845 drivers/scsi/dc395x.c dcb->flag |= ABORT_DEV_; dcb 2854 drivers/scsi/dc395x.c srb->msgout_buf[0] = dcb->identify_msg; dcb 2900 drivers/scsi/dc395x.c static void set_xfer_rate(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb) dcb 2905 drivers/scsi/dc395x.c if (dcb->identify_msg & 0x07) dcb 2909 drivers/scsi/dc395x.c current_sync_offset = dcb->sync_offset; dcb 2914 drivers/scsi/dc395x.c if (i->target_id == dcb->target_id) { dcb 2915 drivers/scsi/dc395x.c i->sync_period = dcb->sync_period; dcb 2916 drivers/scsi/dc395x.c i->sync_offset = dcb->sync_offset; dcb 2917 drivers/scsi/dc395x.c i->sync_mode = dcb->sync_mode; dcb 2918 drivers/scsi/dc395x.c i->min_nego_period = dcb->min_nego_period; dcb 2925 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb = acb->active_dcb; dcb 2928 drivers/scsi/dc395x.c if (!dcb) { dcb 2939 drivers/scsi/dc395x.c srb = dcb->active_srb; dcb 2949 drivers/scsi/dc395x.c dcb->target_id, dcb->target_lun); dcb 2953 drivers/scsi/dc395x.c dcb->flag &= ~ABORT_DEV_; dcb 2979 drivers/scsi/dc395x.c dcb->target_id, dcb->target_lun); dcb 2986 drivers/scsi/dc395x.c free_tag(dcb, srb); dcb 2987 drivers/scsi/dc395x.c list_move(&srb->list, &dcb->srb_waiting_list); dcb 3010 drivers/scsi/dc395x.c free_tag(dcb, srb); dcb 3011 drivers/scsi/dc395x.c dcb->active_srb = NULL; dcb 3013 drivers/scsi/dc395x.c srb_done(acb, dcb, srb); dcb 3021 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb = acb->active_dcb; dcb 3032 drivers/scsi/dc395x.c if (dcb) { /* Arbitration lost but Reselection win */ dcb 3033 drivers/scsi/dc395x.c srb = dcb->active_srb; dcb 3044 drivers/scsi/dc395x.c srb->cmd, dcb->target_id, dcb 3045 drivers/scsi/dc395x.c dcb->target_lun, rsel_tar_lun_id, dcb 3051 drivers/scsi/dc395x.c free_tag(dcb, srb); dcb 3052 drivers/scsi/dc395x.c list_move(&srb->list, &dcb->srb_waiting_list); dcb 3064 drivers/scsi/dc395x.c dcb = find_dcb(acb, id, lun); dcb 3065 drivers/scsi/dc395x.c if (!dcb) { dcb 3071 drivers/scsi/dc395x.c acb->active_dcb = dcb; dcb 3073 drivers/scsi/dc395x.c if (!(dcb->dev_mode & NTC_DO_DISCONNECT)) dcb 3076 drivers/scsi/dc395x.c dcb->target_id, dcb->target_lun); dcb 3078 drivers/scsi/dc395x.c if (dcb->sync_mode & EN_TAG_QUEUEING /*&& !arblostflag */) { dcb 3080 drivers/scsi/dc395x.c dcb->active_srb = srb; dcb 3083 drivers/scsi/dc395x.c srb = dcb->active_srb; dcb 3090 drivers/scsi/dc395x.c dcb->target_id, dcb->target_lun); dcb 3093 drivers/scsi/dc395x.c dcb->active_srb = srb; dcb 3096 drivers/scsi/dc395x.c if (dcb->flag & ABORT_DEV_) { dcb 3107 drivers/scsi/dc395x.c dprintkdbg(DBG_0, "reselect: select <%i>\n", dcb->target_id); dcb 3109 drivers/scsi/dc395x.c DC395x_write8(acb, TRM_S1040_SCSI_TARGETID, dcb->target_id); /* target ID */ dcb 3110 drivers/scsi/dc395x.c DC395x_write8(acb, TRM_S1040_SCSI_OFFSET, dcb->sync_offset); /* offset */ dcb 3111 drivers/scsi/dc395x.c DC395x_write8(acb, TRM_S1040_SCSI_SYNC, dcb->sync_period); /* sync period, wide */ dcb 3134 drivers/scsi/dc395x.c static void disc_tagq_set(struct DeviceCtlBlk *dcb, struct ScsiInqData *ptr) dcb 3139 drivers/scsi/dc395x.c && (dcb->dev_mode & NTC_DO_TAG_QUEUEING) && dcb 3144 drivers/scsi/dc395x.c if (dcb->max_command == 1) dcb 3145 drivers/scsi/dc395x.c dcb->max_command = dcb 3146 drivers/scsi/dc395x.c dcb->acb->tag_max_num; dcb 3147 drivers/scsi/dc395x.c dcb->sync_mode |= EN_TAG_QUEUEING; dcb 3150 drivers/scsi/dc395x.c dcb->max_command = 1; dcb 3155 drivers/scsi/dc395x.c static void add_dev(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, dcb 3159 drivers/scsi/dc395x.c dcb->dev_type = bval1; dcb 3161 drivers/scsi/dc395x.c disc_tagq_set(dcb, ptr); dcb 3209 drivers/scsi/dc395x.c static void srb_done(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, dcb 3237 drivers/scsi/dc395x.c cmd->cmnd[0], dcb->target_id, dcb 3238 drivers/scsi/dc395x.c dcb->target_lun, status, acb->scan_devices); dcb 3243 drivers/scsi/dc395x.c cmd->cmnd[0], dcb->target_id, dcb 3244 drivers/scsi/dc395x.c dcb->target_lun, status, acb->scan_devices); dcb 3249 drivers/scsi/dc395x.c cmd->cmnd[0], dcb->target_id, dcb 3250 drivers/scsi/dc395x.c dcb->target_lun, status, acb->scan_devices); dcb 3255 drivers/scsi/dc395x.c cmd->cmnd[0], dcb->target_id, dcb 3256 drivers/scsi/dc395x.c dcb->target_lun, status, acb->scan_devices); dcb 3261 drivers/scsi/dc395x.c cmd->cmnd[0], dcb->target_id, dcb 3262 drivers/scsi/dc395x.c dcb->target_lun, status, acb->scan_devices); dcb 3304 drivers/scsi/dc395x.c request_sense(acb, dcb, srb); dcb 3307 drivers/scsi/dc395x.c tempcnt = (u8)list_size(&dcb->srb_going_list); dcb 3309 drivers/scsi/dc395x.c dcb->target_id, dcb->target_lun, tempcnt); dcb 3312 drivers/scsi/dc395x.c dcb->max_command = tempcnt; dcb 3313 drivers/scsi/dc395x.c free_tag(dcb, srb); dcb 3314 drivers/scsi/dc395x.c list_move(&srb->list, &dcb->srb_waiting_list); dcb 3370 drivers/scsi/dc395x.c dcb->inquiry7 = ptr->Flags; dcb 3376 drivers/scsi/dc395x.c if (!dcb->init_tcq_flag) { dcb 3377 drivers/scsi/dc395x.c add_dev(acb, dcb, ptr); dcb 3378 drivers/scsi/dc395x.c dcb->init_tcq_flag = 1; dcb 3417 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb; dcb 3420 drivers/scsi/dc395x.c list_for_each_entry(dcb, &acb->dcb_list, list) { dcb 3425 drivers/scsi/dc395x.c list_for_each_entry_safe(srb, tmp, &dcb->srb_going_list, list) { dcb 3435 drivers/scsi/dc395x.c free_tag(dcb, srb); dcb 3446 drivers/scsi/dc395x.c if (!list_empty(&dcb->srb_going_list)) dcb 3449 drivers/scsi/dc395x.c dcb->target_id, dcb->target_lun); dcb 3450 drivers/scsi/dc395x.c if (dcb->tag_mask) dcb 3453 drivers/scsi/dc395x.c dcb->target_id, dcb->target_lun, dcb 3454 drivers/scsi/dc395x.c dcb->tag_mask); dcb 3457 drivers/scsi/dc395x.c list_for_each_entry_safe(srb, tmp, &dcb->srb_waiting_list, list) { dcb 3474 drivers/scsi/dc395x.c if (!list_empty(&dcb->srb_waiting_list)) dcb 3476 drivers/scsi/dc395x.c list_size(&dcb->srb_waiting_list), dcb->target_id, dcb 3477 drivers/scsi/dc395x.c dcb->target_lun); dcb 3478 drivers/scsi/dc395x.c dcb->flag &= ~ABORT_DEV_; dcb 3566 drivers/scsi/dc395x.c static void request_sense(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, dcb 3599 drivers/scsi/dc395x.c if (start_scsi(acb, dcb, srb)) { /* Should only happen, if sb. else grabs the bus */ dcb 3602 drivers/scsi/dc395x.c srb->cmd, dcb->target_id, dcb->target_lun); dcb 3603 drivers/scsi/dc395x.c list_move(&srb->list, &dcb->srb_waiting_list); dcb 3627 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb; dcb 3629 drivers/scsi/dc395x.c dcb = kmalloc(sizeof(struct DeviceCtlBlk), GFP_ATOMIC); dcb 3631 drivers/scsi/dc395x.c if (!dcb) dcb 3633 drivers/scsi/dc395x.c dcb->acb = NULL; dcb 3634 drivers/scsi/dc395x.c INIT_LIST_HEAD(&dcb->srb_going_list); dcb 3635 drivers/scsi/dc395x.c INIT_LIST_HEAD(&dcb->srb_waiting_list); dcb 3636 drivers/scsi/dc395x.c dcb->active_srb = NULL; dcb 3637 drivers/scsi/dc395x.c dcb->tag_mask = 0; dcb 3638 drivers/scsi/dc395x.c dcb->max_command = 1; dcb 3639 drivers/scsi/dc395x.c dcb->target_id = target; dcb 3640 drivers/scsi/dc395x.c dcb->target_lun = lun; dcb 3641 drivers/scsi/dc395x.c dcb->dev_mode = eeprom->target[target].cfg0; dcb 3643 drivers/scsi/dc395x.c dcb->identify_msg = dcb 3644 drivers/scsi/dc395x.c IDENTIFY(dcb->dev_mode & NTC_DO_DISCONNECT, lun); dcb 3646 drivers/scsi/dc395x.c dcb->identify_msg = IDENTIFY(0, lun); dcb 3648 drivers/scsi/dc395x.c dcb->inquiry7 = 0; dcb 3649 drivers/scsi/dc395x.c dcb->sync_mode = 0; dcb 3650 drivers/scsi/dc395x.c dcb->min_nego_period = clock_period[period_index]; dcb 3651 drivers/scsi/dc395x.c dcb->sync_period = 0; dcb 3652 drivers/scsi/dc395x.c dcb->sync_offset = 0; dcb 3653 drivers/scsi/dc395x.c dcb->flag = 0; dcb 3656 drivers/scsi/dc395x.c if ((dcb->dev_mode & NTC_DO_WIDE_NEGO) dcb 3658 drivers/scsi/dc395x.c dcb->sync_mode |= WIDE_NEGO_ENABLE; dcb 3661 drivers/scsi/dc395x.c if (dcb->dev_mode & NTC_DO_SYNC_NEGO) dcb 3663 drivers/scsi/dc395x.c dcb->sync_mode |= SYNC_NEGO_ENABLE; dcb 3665 drivers/scsi/dc395x.c if (dcb->target_lun != 0) { dcb 3669 drivers/scsi/dc395x.c if (p->target_id == dcb->target_id) dcb 3673 drivers/scsi/dc395x.c dcb->target_id, dcb->target_lun, dcb 3675 drivers/scsi/dc395x.c dcb->sync_mode = p->sync_mode; dcb 3676 drivers/scsi/dc395x.c dcb->sync_period = p->sync_period; dcb 3677 drivers/scsi/dc395x.c dcb->min_nego_period = p->min_nego_period; dcb 3678 drivers/scsi/dc395x.c dcb->sync_offset = p->sync_offset; dcb 3679 drivers/scsi/dc395x.c dcb->inquiry7 = p->inquiry7; dcb 3681 drivers/scsi/dc395x.c return dcb; dcb 3692 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb) dcb 3695 drivers/scsi/dc395x.c dcb->acb = acb; dcb 3699 drivers/scsi/dc395x.c acb->dcb_run_robin = dcb; dcb 3702 drivers/scsi/dc395x.c list_add_tail(&dcb->list, &acb->dcb_list); dcb 3705 drivers/scsi/dc395x.c acb->dcb_map[dcb->target_id] |= (1 << dcb->target_lun); dcb 3706 drivers/scsi/dc395x.c acb->children[dcb->target_id][dcb->target_lun] = dcb; dcb 3720 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb) dcb 3725 drivers/scsi/dc395x.c dcb->target_id, dcb->target_lun); dcb 3728 drivers/scsi/dc395x.c if (acb->active_dcb == dcb) dcb 3730 drivers/scsi/dc395x.c if (acb->dcb_run_robin == dcb) dcb 3731 drivers/scsi/dc395x.c acb->dcb_run_robin = dcb_get_next(&acb->dcb_list, dcb); dcb 3735 drivers/scsi/dc395x.c if (dcb == i) { dcb 3741 drivers/scsi/dc395x.c acb->dcb_map[dcb->target_id] &= ~(1 << dcb->target_lun); dcb 3742 drivers/scsi/dc395x.c acb->children[dcb->target_id][dcb->target_lun] = NULL; dcb 3743 drivers/scsi/dc395x.c dcb->acb = NULL; dcb 3755 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb) dcb 3757 drivers/scsi/dc395x.c if (list_size(&dcb->srb_going_list) > 1) { dcb 3760 drivers/scsi/dc395x.c dcb->target_id, dcb->target_lun, dcb 3761 drivers/scsi/dc395x.c list_size(&dcb->srb_going_list)); dcb 3764 drivers/scsi/dc395x.c adapter_remove_device(acb, dcb); dcb 3765 drivers/scsi/dc395x.c kfree(dcb); dcb 3777 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb; dcb 3782 drivers/scsi/dc395x.c list_for_each_entry_safe(dcb, tmp, &acb->dcb_list, list) dcb 3783 drivers/scsi/dc395x.c adapter_remove_and_free_device(acb, dcb); dcb 3797 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb; dcb 3799 drivers/scsi/dc395x.c dcb = device_alloc(acb, scsi_device->id, scsi_device->lun); dcb 3800 drivers/scsi/dc395x.c if (!dcb) dcb 3802 drivers/scsi/dc395x.c adapter_add_device(acb, dcb); dcb 3817 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb = find_dcb(acb, scsi_device->id, scsi_device->lun); dcb 3818 drivers/scsi/dc395x.c if (dcb) dcb 3819 drivers/scsi/dc395x.c adapter_remove_and_free_device(acb, dcb); dcb 4513 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb; dcb 4553 drivers/scsi/dc395x.c list_for_each_entry(dcb, &acb->dcb_list, list) { dcb 4555 drivers/scsi/dc395x.c seq_printf(m, "%02i %02i %02i ", dev, dcb->target_id, dcb 4556 drivers/scsi/dc395x.c dcb->target_lun); dcb 4557 drivers/scsi/dc395x.c YESNO(dcb->dev_mode & NTC_DO_PARITY_CHK); dcb 4558 drivers/scsi/dc395x.c YESNO(dcb->sync_offset); dcb 4559 drivers/scsi/dc395x.c YESNO(dcb->sync_period & WIDE_SYNC); dcb 4560 drivers/scsi/dc395x.c YESNO(dcb->dev_mode & NTC_DO_DISCONNECT); dcb 4561 drivers/scsi/dc395x.c YESNO(dcb->dev_mode & NTC_DO_SEND_START); dcb 4562 drivers/scsi/dc395x.c YESNO(dcb->sync_mode & EN_TAG_QUEUEING); dcb 4563 drivers/scsi/dc395x.c nego_period = clock_period[dcb->sync_period & 0x07] << 2; dcb 4564 drivers/scsi/dc395x.c if (dcb->sync_offset) dcb 4567 drivers/scsi/dc395x.c seq_printf(m, " (%03i ns)", (dcb->min_nego_period << 2)); dcb 4569 drivers/scsi/dc395x.c if (dcb->sync_offset & 0x0f) { dcb 4574 drivers/scsi/dc395x.c (dcb->sync_offset & 0x0f)); dcb 4579 drivers/scsi/dc395x.c seq_printf(m, " %02i\n", dcb->max_command); dcb 4588 drivers/scsi/dc395x.c list_for_each_entry(dcb, &acb->dcb_list, list) { dcb 4590 drivers/scsi/dc395x.c if (!list_empty(&dcb->srb_waiting_list)) dcb 4592 drivers/scsi/dc395x.c dcb->target_id, dcb->target_lun, dcb 4593 drivers/scsi/dc395x.c list_size(&dcb->srb_waiting_list)); dcb 4594 drivers/scsi/dc395x.c list_for_each_entry(srb, &dcb->srb_waiting_list, list) dcb 4596 drivers/scsi/dc395x.c if (!list_empty(&dcb->srb_going_list)) dcb 4598 drivers/scsi/dc395x.c dcb->target_id, dcb->target_lun, dcb 4599 drivers/scsi/dc395x.c list_size(&dcb->srb_going_list)); dcb 4600 drivers/scsi/dc395x.c list_for_each_entry(srb, &dcb->srb_going_list, list) dcb 4602 drivers/scsi/dc395x.c if (!list_empty(&dcb->srb_waiting_list) || !list_empty(&dcb->srb_going_list)) dcb 4608 drivers/scsi/dc395x.c list_for_each_entry(dcb, &acb->dcb_list, list) { dcb 4609 drivers/scsi/dc395x.c seq_printf(m, "%p -> ", dcb); dcb 301 include/linux/qed/qed_eth_if.h const struct qed_eth_dcbnl_ops *dcb; dcb 186 net/dcb/dcbnl.c struct dcbmsg *dcb; dcb 193 net/dcb/dcbnl.c nlh = nlmsg_put(skb, port, seq, type, sizeof(*dcb), flags); dcb 196 net/dcb/dcbnl.c dcb = nlmsg_data(nlh); dcb 197 net/dcb/dcbnl.c dcb->dcb_family = AF_UNSPEC; dcb 198 net/dcb/dcbnl.c dcb->cmd = cmd; dcb 199 net/dcb/dcbnl.c dcb->dcb_pad = 0; dcb 1737 net/dcb/dcbnl.c struct dcbmsg *dcb = nlmsg_data(nlh); dcb 1748 net/dcb/dcbnl.c ret = nlmsg_parse_deprecated(nlh, sizeof(*dcb), tb, DCB_ATTR_MAX, dcb 1753 net/dcb/dcbnl.c if (dcb->cmd > DCB_CMD_MAX) dcb 1757 net/dcb/dcbnl.c fn = &reply_funcs[dcb->cmd]; dcb 1771 net/dcb/dcbnl.c reply_skb = dcbnl_newmsg(fn->type, dcb->cmd, portid, nlh->nlmsg_seq, dcb 575 net/dccp/input.c struct dccp_skb_cb *dcb = DCCP_SKB_CB(skb); dcb 621 net/dccp/input.c dcb->dccpd_reset_code = DCCP_RESET_CODE_NO_CONNECTION; dcb 624 net/dccp/input.c dcb->dccpd_reset_code = DCCP_RESET_CODE_NO_CONNECTION; dcb 645 net/dccp/input.c dccp_send_sync(sk, dcb->dccpd_seq, DCCP_PKT_SYNC); dcb 703 net/dccp/input.c dccp_send_sync(sk, dcb->dccpd_seq, DCCP_PKT_SYNCACK); dcb 579 net/dccp/ipv4.c struct dccp_skb_cb *dcb = DCCP_SKB_CB(skb); dcb 586 net/dccp/ipv4.c dcb->dccpd_reset_code = DCCP_RESET_CODE_BAD_SERVICE_CODE; dcb 594 net/dccp/ipv4.c dcb->dccpd_reset_code = DCCP_RESET_CODE_TOO_BUSY; dcb 629 net/dccp/ipv4.c dreq->dreq_isr = dcb->dccpd_seq; dcb 314 net/dccp/ipv6.c struct dccp_skb_cb *dcb = DCCP_SKB_CB(skb); dcb 323 net/dccp/ipv6.c dcb->dccpd_reset_code = DCCP_RESET_CODE_BAD_SERVICE_CODE; dcb 329 net/dccp/ipv6.c dcb->dccpd_reset_code = DCCP_RESET_CODE_TOO_BUSY; dcb 376 net/dccp/ipv6.c dreq->dreq_isr = dcb->dccpd_seq; dcb 399 net/dccp/options.c struct dccp_skb_cb *dcb = DCCP_SKB_CB(skb); dcb 408 net/dccp/options.c if (dcb->dccpd_opt_len + len > DCCP_MAX_OPT_LEN) { dcb 410 net/dccp/options.c dccp_packet_name(dcb->dccpd_type)); dcb 419 net/dccp/options.c len + dcb->dccpd_opt_len + skb->len > dp->dccps_mss_cache) { dcb 422 net/dccp/options.c dcb->dccpd_opt_len, dp->dccps_mss_cache); dcb 426 net/dccp/options.c dcb->dccpd_opt_len += len; dcb 467 net/dccp/options.c if (dccp_ackvec_update_records(av, dcb->dccpd_seq, nonce)) dcb 48 net/dccp/output.c struct dccp_skb_cb *dcb = DCCP_SKB_CB(skb); dcb 53 net/dccp/output.c dccp_packet_hdr_len(dcb->dccpd_type); dcb 60 net/dccp/output.c dcb->dccpd_seq = ADD48(dp->dccps_gss, 1); dcb 62 net/dccp/output.c switch (dcb->dccpd_type) { dcb 74 net/dccp/output.c dcb->dccpd_seq = dp->dccps_iss; dcb 79 net/dccp/output.c ackno = dcb->dccpd_ack_seq; dcb 101 net/dccp/output.c dh->dccph_type = dcb->dccpd_type; dcb 104 net/dccp/output.c dh->dccph_doff = (dccp_header_size + dcb->dccpd_opt_len) / 4; dcb 105 net/dccp/output.c dh->dccph_ccval = dcb->dccpd_ccval; dcb 110 net/dccp/output.c dccp_update_gss(sk, dcb->dccpd_seq); dcb 115 net/dccp/output.c switch (dcb->dccpd_type) { dcb 127 net/dccp/output.c dcb->dccpd_reset_code; dcb 456 net/dccp/output.c struct dccp_skb_cb *dcb = DCCP_SKB_CB(rcv_skb); dcb 478 net/dccp/output.c dhr->dccph_reset_code = dcb->dccpd_reset_code; dcb 480 net/dccp/output.c switch (dcb->dccpd_reset_code) { dcb 486 net/dccp/output.c memcpy(dhr->dccph_reset_data, dcb->dccpd_reset_data, 3); dcb 494 net/dccp/output.c if (dcb->dccpd_ack_seq != DCCP_PKT_WITHOUT_ACK_SEQ) dcb 495 net/dccp/output.c dccp_hdr_set_seq(dh, ADD48(dcb->dccpd_ack_seq, 1)); dcb 496 net/dccp/output.c dccp_hdr_set_ack(dccp_hdr_ack_bits(skb), dcb->dccpd_seq); dcb 1144 net/sched/act_api.c struct netlink_callback dcb; dcb 1187 net/sched/act_api.c err = ops->walk(net, skb, &dcb, RTM_DELACTION, ops, extack);