/Linux-v6.6/drivers/dma/ |
D | txx9dmac.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #include <linux/dma-mapping.h> 24 static struct txx9dmac_cregs __iomem *__dma_regs(const struct txx9dmac_chan *dc) in __dma_regs() argument 26 return dc->ch_regs; in __dma_regs() 30 const struct txx9dmac_chan *dc) in __dma_regs32() argument 32 return dc->ch_regs; in __dma_regs32() 35 #define channel64_readq(dc, name) \ argument 36 __raw_readq(&(__dma_regs(dc)->name)) 37 #define channel64_writeq(dc, name, val) \ argument 38 __raw_writeq((val), &(__dma_regs(dc)->name)) [all …]
|
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dcn10/ |
D | dcn10_hw_sequencer.h | 2 * Copyright 2016-2020 Advanced Micro Devices, Inc. 32 struct dc; 34 void dcn10_hw_sequencer_construct(struct dc *dc); 38 struct dc *dc, 42 void dcn10_setup_vupdate_interrupt(struct dc *dc, struct pipe_ctx *pipe_ctx); 46 struct dc *dc); 48 struct dc *dc, 51 struct dc *dc, 54 struct dc *dc, 57 void dcn10_cursor_lock(struct dc *dc, struct pipe_ctx *pipe, bool lock); [all …]
|
D | dcn10_hw_sequencer.c | 63 hws->ctx 65 hws->regs->reg 69 hws->shifts->field_name, hws->masks->field_name 84 const uint32_t ref_clk_mhz = dc_ctx->dc->res_pool->ref_clocks.dchub_ref_clock_inKhz / 1000; in print_microsec() 93 void dcn10_lock_all_pipes(struct dc *dc, in dcn10_lock_all_pipes() argument 102 for (i = 0; i < dc->res_pool->pipe_count; i++) { in dcn10_lock_all_pipes() 103 old_pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i]; in dcn10_lock_all_pipes() 104 pipe_ctx = &context->res_ctx.pipe_ctx[i]; in dcn10_lock_all_pipes() 105 tg = pipe_ctx->stream_res.tg; in dcn10_lock_all_pipes() 111 if (pipe_ctx->top_pipe || in dcn10_lock_all_pipes() [all …]
|
/Linux-v6.6/drivers/tty/ |
D | nozomi.c | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 3 * nozomi.c -- HSDPA driver Broadband Wireless Data Card - Globe Trotter 18 * -------------------------------------------------------------------------- 25 * -------------------------------------------------------------------------- 78 if (tbuf[data_len - 2] == '\r') \ 79 tbuf[data_len - 2] = 'r'; \ 148 F32_2 = 2048, /* 512 bytes downlink + uplink * 2 -> 2048 */ 149 F32_8 = 8192, /* 3072 bytes downl. + 1024 bytes uplink * 2 -> 8192 */ 173 CTRL_ERROR = -1, 183 PORT_ERROR = -1, [all …]
|
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/core/ |
D | dc.c | 27 #include "dc.h" 81 dc->ctx 84 dc->ctx->logger 86 static const char DC_BUILD_ID[] = "production-build"; 91 * DC is the OS-agnostic component of the amdgpu DC driver. 93 * DC maintains and validates a set of structs representing the state of the 96 * Main DC HW structs: 98 * struct dc - The central struct. One per driver. Created on driver load, 101 * struct dc_context - One per driver. 102 * Used as a backpointer by most other structs in dc. [all …]
|
D | dc_link_exports.c | 27 * This file provides single entrance to link functionality declared in dc 32 * When exporting a new link related dc function, add function declaration in 33 * dc.h with detail interface documentation, then add function implementation 38 struct dc_link *dc_get_link_at_index(struct dc *dc, uint32_t link_index) in dc_get_link_at_index() argument 40 return dc->links[link_index]; in dc_get_link_at_index() 43 void dc_get_edp_links(const struct dc *dc, in dc_get_edp_links() argument 50 for (i = 0; i < dc->link_count; i++) { in dc_get_edp_links() 52 if (!dc->links[i]) in dc_get_edp_links() 54 if (dc->links[i]->connector_signal == SIGNAL_TYPE_EDP) { in dc_get_edp_links() 55 edp_links[*edp_num] = dc->links[i]; in dc_get_edp_links() [all …]
|
D | dc_stream.c | 2 * Copyright 2012-15 Advanced Micro Devices, Inc. 28 #include "dc.h" 35 #define DC_LOGGER dc->ctx->logger 42 if (sink->sink_signal == SIGNAL_TYPE_NONE) in update_stream_signal() 43 stream->signal = stream->link->connector_signal; in update_stream_signal() 45 stream->signal = sink->sink_signal; in update_stream_signal() 47 if (dc_is_dvi_signal(stream->signal)) { in update_stream_signal() 48 if (stream->ctx->dc->caps.dual_link_dvi && in update_stream_signal() 49 (stream->timing.pix_clk_100hz / 10) > TMDS_MAX_PIXEL_CLOCK && in update_stream_signal() 50 sink->sink_signal != SIGNAL_TYPE_DVI_SINGLE_LINK) in update_stream_signal() [all …]
|
/Linux-v6.6/drivers/md/ |
D | dm-delay.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2005-2007 Red Hat GmbH 17 #include <linux/device-mapper.h> 54 struct delay_c *dc = from_timer(dc, t, delay_timer); in handle_delayed_timer() local 56 queue_work(dc->kdelayd_wq, &dc->flush_expired_bios); in handle_delayed_timer() 59 static void queue_timeout(struct delay_c *dc, unsigned long expires) in queue_timeout() argument 61 mutex_lock(&dc->timer_lock); in queue_timeout() 63 if (!timer_pending(&dc->delay_timer) || expires < dc->delay_timer.expires) in queue_timeout() 64 mod_timer(&dc->delay_timer, expires); in queue_timeout() 66 mutex_unlock(&dc->timer_lock); in queue_timeout() [all …]
|
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dcn31/ |
D | dcn31_hwseq.c | 57 hws->ctx 59 hws->regs->reg 61 dc->ctx->logger 66 hws->shifts->field_name, hws->masks->field_name 68 static void enable_memory_low_power(struct dc *dc) in enable_memory_low_power() argument 70 struct dce_hwseq *hws = dc->hwseq; in enable_memory_low_power() 73 if (dc->debug.enable_mem_low_power.bits.dmcu) { in enable_memory_low_power() 75 if (dc->debug.disable_dmcu || dc->config.disable_dmcu) { in enable_memory_low_power() 81 if (dc->debug.enable_mem_low_power.bits.optc) { in enable_memory_low_power() 86 if (dc->debug.enable_mem_low_power.bits.vga) { in enable_memory_low_power() [all …]
|
/Linux-v6.6/drivers/md/bcache/ |
D | writeback.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * background writeback - scan btree for dirty data and write it to the backing 22 if (c->gc_after_writeback != (BCH_ENABLE_AUTO_GC) || in update_gc_after_writeback() 23 c->gc_stats.in_use < BCH_AUTO_GC_DIRTY_THRESHOLD) in update_gc_after_writeback() 26 c->gc_after_writeback |= BCH_DO_AUTO_GC; in update_gc_after_writeback() 30 static uint64_t __calc_target_rate(struct cached_dev *dc) in __calc_target_rate() argument 32 struct cache_set *c = dc->disk.c; in __calc_target_rate() 36 * flash-only devices in __calc_target_rate() 38 uint64_t cache_sectors = c->nbuckets * c->cache->sb.bucket_size - in __calc_target_rate() 39 atomic_long_read(&c->flash_dev_dirty_sectors); in __calc_target_rate() [all …]
|
D | writeback.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 53 for (i = 0; i < d->nr_stripes; i++) in bcache_dev_sectors_dirty() 54 ret += atomic_read(d->stripe_sectors_dirty + i); in bcache_dev_sectors_dirty() 62 do_div(offset, d->stripe_size); in offset_to_stripe() 64 /* d->nr_stripes is in range [1, INT_MAX] */ in offset_to_stripe() 65 if (unlikely(offset >= d->nr_stripes)) { in offset_to_stripe() 67 offset, d->nr_stripes); in offset_to_stripe() 68 return -EINVAL; in offset_to_stripe() 78 static inline bool bcache_dev_stripe_dirty(struct cached_dev *dc, in bcache_dev_stripe_dirty() argument 82 int stripe = offset_to_stripe(&dc->disk, offset); in bcache_dev_stripe_dirty() [all …]
|
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dml/calcs/ |
D | dcn_calcs.c | 28 #include "dc.h" 40 dc->ctx->logger 50 * This file is gcc-parseable HW gospel, coming straight from HW engineers. 54 * remain as-is as it provides us with a guarantee from HW that it is correct. 70 * slow-slow corner + 10% margin with voltages aligned to FCLK. 305 input->src.is_hsplit = false; in pipe_ctx_to_e2e_pipe_params() 308 if (pipe->plane_state->stereo_format == PLANE_STEREO_FORMAT_SIDE_BY_SIDE || in pipe_ctx_to_e2e_pipe_params() 309 pipe->plane_state->stereo_format == PLANE_STEREO_FORMAT_TOP_AND_BOTTOM) { in pipe_ctx_to_e2e_pipe_params() 311 input->src.hsplit_grp = pipe->pipe_idx; in pipe_ctx_to_e2e_pipe_params() 312 } else if (pipe->top_pipe != NULL && pipe->top_pipe->plane_state == pipe->plane_state) { in pipe_ctx_to_e2e_pipe_params() [all …]
|
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dml/ |
D | Makefile | 24 # Makefile for the 'utils' sub-component of DAL. 29 dml_ccflags-$(CONFIG_CC_IS_GCC) := -mhard-float 30 dml_ccflags := $(dml_ccflags-y) -msse 34 dml_ccflags := -mhard-float -maltivec 38 dml_rcflags := -mgeneral-regs-only 42 dml_ccflags := -mfpu=64 43 dml_rcflags := -msoft-float 47 ifneq ($(call gcc-min-version, 70100),y) 55 # GCC < 7.1 cannot compile code using `double` and -mpreferred-stack-boundary=3 57 dml_ccflags += -mpreferred-stack-boundary=4 [all …]
|
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dcn30/ |
D | dcn30_hwseq.c | 61 hws->ctx 63 hws->regs->reg 65 dc->ctx->logger 70 hws->shifts->field_name, hws->masks->field_name 75 struct dpp *dpp_base = pipe_ctx->plane_res.dpp; in dcn30_set_blend_lut() 79 if (plane_state->blend_tf) { in dcn30_set_blend_lut() 80 if (plane_state->blend_tf->type == TF_TYPE_HWPWL) in dcn30_set_blend_lut() 81 blend_lut = &plane_state->blend_tf->pwl; in dcn30_set_blend_lut() 82 else if (plane_state->blend_tf->type == TF_TYPE_DISTRIBUTED_POINTS) { in dcn30_set_blend_lut() 84 plane_state->blend_tf, &dpp_base->regamma_params, false); in dcn30_set_blend_lut() [all …]
|
/Linux-v6.6/drivers/gpu/drm/tegra/ |
D | dc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include <linux/dma-mapping.h> 32 #include "dc.h" 43 stats->frames = 0; in tegra_dc_stats_reset() 44 stats->vblank = 0; in tegra_dc_stats_reset() 45 stats->underflow = 0; in tegra_dc_stats_reset() 46 stats->overflow = 0; in tegra_dc_stats_reset() 50 static u32 tegra_dc_readl_active(struct tegra_dc *dc, unsigned long offset) in tegra_dc_readl_active() argument 54 tegra_dc_writel(dc, READ_MUX, DC_CMD_STATE_ACCESS); in tegra_dc_readl_active() 55 value = tegra_dc_readl(dc, offset); in tegra_dc_readl_active() [all …]
|
D | rgb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 #include "dc.h" 19 struct tegra_dc *dc; member 81 static void tegra_dc_write_regs(struct tegra_dc *dc, in tegra_dc_write_regs() argument 88 tegra_dc_writel(dc, table[i].value, table[i].offset); in tegra_dc_write_regs() 96 tegra_dc_write_regs(rgb->dc, rgb_disable, ARRAY_SIZE(rgb_disable)); in tegra_rgb_encoder_disable() 97 tegra_dc_commit(rgb->dc); in tegra_rgb_encoder_disable() 106 tegra_dc_write_regs(rgb->dc, rgb_enable, ARRAY_SIZE(rgb_enable)); in tegra_rgb_encoder_enable() 109 tegra_dc_writel(rgb->dc, value, DC_DISP_DATA_ENABLE_OPTIONS); in tegra_rgb_encoder_enable() 112 value = tegra_dc_readl(rgb->dc, DC_COM_PIN_OUTPUT_POLARITY(1)); in tegra_rgb_encoder_enable() [all …]
|
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dcn32/ |
D | dcn32_hwseq.c | 57 hws->ctx 59 hws->regs->reg 61 dc->ctx->logger 66 hws->shifts->field_name, hws->masks->field_name 77 if (hws->ctx->dc->debug.disable_dsc_power_gate) in dcn32_dsc_pg_control() 162 if (hws->ctx->dc->debug.disable_hubp_power_gate) in dcn32_hubp_pg_control() 191 static bool dcn32_check_no_memory_request_for_cab(struct dc *dc) in dcn32_check_no_memory_request_for_cab() argument 195 /* First, check no-memory-request case */ in dcn32_check_no_memory_request_for_cab() 196 for (i = 0; i < dc->current_state->stream_count; i++) { in dcn32_check_no_memory_request_for_cab() 197 if ((dc->current_state->stream_status[i].plane_count) && in dcn32_check_no_memory_request_for_cab() [all …]
|
D | dcn32_resource_helpers.c | 39 struct dc *dc, in dcn32_helper_mall_bytes_to_ways() argument 45 cache_lines_used = total_size_in_mall_bytes / dc->caps.cache_line_size + 2; in dcn32_helper_mall_bytes_to_ways() 47 total_cache_lines = dc->caps.max_cab_allocation_bytes / dc->caps.cache_line_size; in dcn32_helper_mall_bytes_to_ways() 48 lines_per_way = total_cache_lines / dc->caps.cache_num_ways; in dcn32_helper_mall_bytes_to_ways() 57 struct dc *dc, in dcn32_helper_calculate_mall_bytes_for_cursor() argument 61 struct hubp *hubp = pipe_ctx->plane_res.hubp; in dcn32_helper_calculate_mall_bytes_for_cursor() 62 uint32_t cursor_size = hubp->curs_attr.pitch * hubp->curs_attr.height; in dcn32_helper_calculate_mall_bytes_for_cursor() 65 switch (pipe_ctx->stream->cursor_attributes.color_format) { in dcn32_helper_calculate_mall_bytes_for_cursor() 84 if (pipe_ctx->stream->cursor_position.enable && (ignore_cursor_buf || in dcn32_helper_calculate_mall_bytes_for_cursor() 89 cursor_mall_size_bytes = ((cursor_size + DCN3_2_MALL_MBLK_SIZE_BYTES - 1) / in dcn32_helper_calculate_mall_bytes_for_cursor() [all …]
|
/Linux-v6.6/drivers/scsi/esas2r/ |
D | esas2r_disc.c | 5 * Copyright (c) 2001-2013 ATTO Technology, Inc. 8 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 22 * LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, 41 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 43 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 85 struct esas2r_sas_nvram *nvr = a->nvram; in esas2r_disc_initialize() 89 clear_bit(AF_DISC_IN_PROG, &a->flags); in esas2r_disc_initialize() 90 clear_bit(AF2_DEV_SCAN, &a->flags2); in esas2r_disc_initialize() 91 clear_bit(AF2_DEV_CNT_OK, &a->flags2); in esas2r_disc_initialize() 93 a->disc_start_time = jiffies_to_msecs(jiffies); in esas2r_disc_initialize() [all …]
|
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dcn20/ |
D | dcn20_hwseq.c | 62 hws->ctx 64 hws->regs->reg 68 hws->shifts->field_name, hws->masks->field_name 70 static int find_free_gsl_group(const struct dc *dc) in find_free_gsl_group() argument 72 if (dc->res_pool->gsl_groups.gsl_0 == 0) in find_free_gsl_group() 74 if (dc->res_pool->gsl_groups.gsl_1 == 0) in find_free_gsl_group() 76 if (dc->res_pool->gsl_groups.gsl_2 == 0) in find_free_gsl_group() 88 * - immediate flip: find first available GSL group if not already assigned 91 * - vsync flip: disable GSL if used 94 * gsl_0 <=> pipe_ctx->stream_res.gsl_group == 1 [all …]
|
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/ |
D | dc.h | 2 * Copyright 2012-2023 Advanced Micro Devices, Inc. 99 // for example, 1080p -> 8K is 4.0, or 4000 raw value 107 // for example, 8K -> 1080p is 0.25, or 250 raw value 119 * DOC: color-management-caps 124 * abstracted HW. DCE 5-12 had almost no important changes, but starting with 131 * struct rom_curve_caps - predefined transfer function caps for degamma and regamma 147 * struct dpp_color_caps - color pipeline capabilities for display pipe and 152 * just plain 256-entry lookup 161 * @dgam_rom_for_yuv: pre-defined degamma LUT for YUV planes 162 * @dgam_rom_caps: pre-definied curve caps for degamma 1D LUT [all …]
|
D | dc_stream.h | 2 * Copyright 2012-14 Advanced Micro Devices, Inc. 93 /* source MPCC instance. for use by internally by dc */ 281 /* Output from DC when stream state is committed or altered 282 * DC may only access these values during: 368 bool dc_update_planes_and_stream(struct dc *dc, 383 void dc_commit_updates_for_stream(struct dc *dc, 392 void dc_stream_log(const struct dc *dc, const struct dc_stream_state *stream); 394 uint8_t dc_get_current_stream_count(struct dc *dc); 395 struct dc_stream_state *dc_get_stream_at_index(struct dc *dc, uint8_t i); 411 * being refactored properly to be dce-specific [all …]
|
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dce110/ |
D | dce110_hw_sequencer.c | 27 #include "dc.h" 73 * For eDP, after power-up/power/down, 83 hws->ctx 88 hws->regs->reg 92 hws->shifts->field_name, hws->masks->field_name 100 .crtc = (mmCRTC0_CRTC_GSL_CONTROL - mmCRTC_GSL_CONTROL), 103 .crtc = (mmCRTC1_CRTC_GSL_CONTROL - mmCRTC_GSL_CONTROL), 106 .crtc = (mmCRTC2_CRTC_GSL_CONTROL - mmCRTC_GSL_CONTROL), 109 .crtc = (mmCRTCV_GSL_CONTROL - mmCRTC_GSL_CONTROL), 202 struct dc *dc, in dce110_enable_display_power_gating() argument [all …]
|
/Linux-v6.6/drivers/clk/mvebu/ |
D | dove-divider.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <linux/clk-provider.h> 15 #include "dove-divider.h" 51 static unsigned int dove_get_divider(struct dove_clk *dc) in dove_get_divider() argument 56 val = readl_relaxed(dc->base + DIV_CTRL0); in dove_get_divider() 57 val >>= dc->div_bit_start; in dove_get_divider() 59 divider = val & ~(~0 << dc->div_bit_size); in dove_get_divider() 61 if (dc->divider_table) in dove_get_divider() 62 divider = dc->divider_table[divider]; in dove_get_divider() 67 static int dove_calc_divider(const struct dove_clk *dc, unsigned long rate, in dove_calc_divider() argument [all …]
|
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dml/dcn20/ |
D | dcn20_fpu.h | 1 /* SPDX-License-Identifier: MIT */ 31 void dcn20_populate_dml_writeback_from_context(struct dc *dc, 39 void dcn20_calculate_dlg_params(struct dc *dc, 44 int dcn20_populate_dml_pipes_from_context(struct dc *dc, 48 void dcn20_calculate_wm(struct dc *dc, 57 void dcn20_update_bounding_box(struct dc *dc, 62 void dcn20_patch_bounding_box(struct dc *dc, 64 bool dcn20_validate_bandwidth_fp(struct dc *dc, 76 int dcn21_populate_dml_pipes_from_context(struct dc *dc, 80 bool dcn21_validate_bandwidth_fp(struct dc *dc, [all …]
|