/openbmc/qemu/target/openrisc/ |
H A D | translate.c | 4 * Copyright (c) 2011-2012 Jia Liu <proljc@gmail.com> 23 #include "exec/exec-all.h" 24 #include "tcg/tcg-op.h" 27 #include "qemu/qemu-print.h" 30 #include "exec/helper-proto.h" 31 #include "exec/helper-gen.h" 36 #include "exec/helper-info.c.inc" 52 /* If not -1, jmp_pc contains this value and so is a direct jump. */ 61 static inline bool is_user(DisasContext *dc) in is_user() argument 66 return !(dc->tb_flags & TB_FLAGS_SM); in is_user() [all …]
|
/openbmc/linux/drivers/dma/ |
H A 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 …]
|
/openbmc/linux/drivers/tty/ |
H A 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 …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/core/ |
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
/openbmc/qemu/target/microblaze/ |
H A D | translate.c | 5 * Copyright (c) 2009-2012 PetaLogix Qld Pty Ltd. 23 #include "exec/exec-all.h" 25 #include "tcg/tcg-op.h" 26 #include "exec/helper-proto.h" 27 #include "exec/helper-gen.h" 29 #include "qemu/qemu-print.h" 34 #include "exec/helper-info.c.inc" 38 (((src) >> start) & ((1 << (end - start + 1)) - 1)) 77 /* Immediate branch-taken destination, or -1 for indirect. */ 81 static int typeb_imm(DisasContext *dc, int x) in typeb_imm() argument [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn10/ |
H A 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 …]
|
H A 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 …]
|
/openbmc/linux/drivers/md/ |
H A 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 …]
|
/openbmc/qemu/target/sparc/ |
H A D | translate.c | 5 Copyright (C) 2003-2005 Fabrice Bellard 24 #include "exec/helper-proto.h" 25 #include "exec/exec-all.h" 26 #include "tcg/tcg-op.h" 27 #include "tcg/tcg-op-gvec.h" 28 #include "exec/helper-gen.h" 35 #include "exec/helper-info.c.inc" 201 // This function uses non-native bit order 203 ((X) >> (31 - (TO)) & ((1 << ((TO) - (FROM) + 1)) - 1)) 207 GET_FIELD(X, 31 - (TO), 31 - (FROM)) [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn31/ |
H A 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 …]
|
/openbmc/linux/drivers/md/bcache/ |
H A 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 …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/calcs/ |
H A 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 …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/ |
H A 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 …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn30/ |
H A 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 …]
|
/openbmc/linux/drivers/gpu/drm/tegra/ |
H A 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 …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn32/ |
H A 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() 80 if (!hws->ctx->dc->debug.enable_double_buffered_dsc_pg_support) in dcn32_dsc_pg_control() 165 if (hws->ctx->dc->debug.disable_hubp_power_gate) in dcn32_hubp_pg_control() 194 static bool dcn32_check_no_memory_request_for_cab(struct dc *dc) in dcn32_check_no_memory_request_for_cab() argument 198 /* First, check no-memory-request case */ in dcn32_check_no_memory_request_for_cab() 199 for (i = 0; i < dc->current_state->stream_count; i++) { in dcn32_check_no_memory_request_for_cab() [all …]
|
H A 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 …]
|
/openbmc/linux/drivers/scsi/esas2r/ |
H A 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 …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn20/ |
H A 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 …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/ |
H A 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 …]
|
H A 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: 367 bool dc_update_planes_and_stream(struct dc *dc, 382 void dc_commit_updates_for_stream(struct dc *dc, 391 void dc_stream_log(const struct dc *dc, const struct dc_stream_state *stream); 393 uint8_t dc_get_current_stream_count(struct dc *dc); 394 struct dc_stream_state *dc_get_stream_at_index(struct dc *dc, uint8_t i); 410 * being refactored properly to be dce-specific [all …]
|
/openbmc/linux/drivers/clk/mvebu/ |
H A 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 …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce110/ |
H A 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 …]
|