| /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 * -------------------------------------------------------------------------- 132 F32_2 = 2048, /* 512 bytes downlink + uplink * 2 -> 2048 */ 133 F32_8 = 8192, /* 3072 bytes downl. + 1024 bytes uplink * 2 -> 8192 */ 157 CTRL_ERROR = -1, 167 PORT_ERROR = -1, 176 * else A-channels must always be used. 246 * else A-channels must always be used. [all …]
|
| /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 19 #include <linux/device-mapper.h> 59 struct delay_c *dc = timer_container_of(dc, t, delay_timer); in handle_delayed_timer() local 61 queue_work(dc->kdelayd_wq, &dc->flush_expired_bios); in handle_delayed_timer() 64 static void queue_timeout(struct delay_c *dc, unsigned long expires) in queue_timeout() argument 66 timer_reduce(&dc->delay_timer, expires); in queue_timeout() 69 static inline bool delay_is_fast(struct delay_c *dc) in delay_is_fast() argument 71 return !!dc->worker; in delay_is_fast() 79 n = bio->bi_next; in flush_bios() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/core/ |
| H A D | dc.c | 29 #include "dc.h" 93 dc->ctx 96 dc->ctx->logger 98 static const char DC_BUILD_ID[] = "production-build"; 103 * DC is the OS-agnostic component of the amdgpu DC driver. 105 * DC maintains and validates a set of structs representing the state of the 108 * Main DC HW structs: 110 * struct dc - The central struct. One per driver. Created on driver load, 113 * struct dc_context - One per driver. 114 * Used as a backpointer by most other structs in dc. [all …]
|
| H A D | dc_stream.c | 2 * Copyright 2012-15 Advanced Micro Devices, Inc. 28 #include "dc.h" 37 #define DC_LOGGER dc->ctx->logger 50 if (sink->sink_signal == SIGNAL_TYPE_NONE) in update_stream_signal() 51 stream->signal = stream->link->connector_signal; in update_stream_signal() 53 stream->signal = sink->sink_signal; in update_stream_signal() 55 if (dc_is_dvi_signal(stream->signal)) { in update_stream_signal() 56 if (stream->ctx->dc->caps.dual_link_dvi && in update_stream_signal() 57 (stream->timing.pix_clk_100hz / 10) > TMDS_MAX_PIXEL_CLOCK && in update_stream_signal() 58 sink->sink_signal != SIGNAL_TYPE_DVI_SINGLE_LINK) in update_stream_signal() [all …]
|
| H A D | dc_vm_helper.c | 27 #include "dc.h" 31 struct vmid_usage vmids = vm_helper->hubp_vmid_usage[hubp_idx]; in vm_helper_mark_vmid_used() 37 int dc_setup_system_context(struct dc *dc, struct dc_phy_addr_space_config *pa_config) in dc_setup_system_context() argument 42 if (dc->hwss.init_sys_ctx) { in dc_setup_system_context() 43 num_vmids = dc->hwss.init_sys_ctx(dc->hwseq, dc, pa_config); in dc_setup_system_context() 45 /* Pre-init system aperture start/end for all HUBP instances (if not gating?) in dc_setup_system_context() 48 memcpy(&dc->vm_pa_config, pa_config, sizeof(struct dc_phy_addr_space_config)); in dc_setup_system_context() 49 dc->vm_pa_config.valid = true; in dc_setup_system_context() 50 dc->dml2_options.gpuvm_enable = true; in dc_setup_system_context() 51 dc_z10_save_init(dc); in dc_setup_system_context() [all …]
|
| H A D | dc_surface.c | 26 /* DC interface (public) */ 28 #include "dc.h" 30 /* DC core (private) */ 42 plane_state->ctx = ctx; in dc_plane_construct() 44 plane_state->gamma_correction.is_identity = true; in dc_plane_construct() 46 plane_state->in_transfer_func.type = TF_TYPE_BYPASS; in dc_plane_construct() 48 plane_state->in_shaper_func.type = TF_TYPE_BYPASS; in dc_plane_construct() 50 plane_state->lut3d_func.state.raw = 0; in dc_plane_construct() 52 plane_state->blend_tf.type = TF_TYPE_BYPASS; in dc_plane_construct() 54 plane_state->pre_multiplied_alpha = true; in dc_plane_construct() [all …]
|
| H A D | dc_hw_sequencer.c | 248 const struct dc *dc, in color_space_to_black_color() argument 301 if (!tg->funcs->is_blanked) in hwss_wait_for_blank_complete() 304 if (tg->funcs->is_blanked(tg)) in hwss_wait_for_blank_complete() 311 dm_error("DC: failed to blank crtc!\n"); in hwss_wait_for_blank_complete() 333 while (top_pipe->top_pipe) in get_mpctree_visual_confirm_color() 334 top_pipe = top_pipe->top_pipe; in get_mpctree_visual_confirm_color() 336 *color = pipe_colors[top_pipe->pipe_idx]; in get_mpctree_visual_confirm_color() 345 switch (pipe_ctx->plane_res.scl_data.format) { in get_surface_visual_confirm_color() 348 color->color_r_cr = color_value; in get_surface_visual_confirm_color() 349 if (pipe_ctx->plane_state->layer_index > 0) { in get_surface_visual_confirm_color() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/hwss/dcn401/ |
| H A D | dcn401_hwseq.c | 1 // SPDX-License-Identifier: MIT 46 hws->ctx 48 hws->regs->reg 50 dc->ctx->logger 55 hws->shifts->field_name, hws->masks->field_name 57 void dcn401_initialize_min_clocks(struct dc *dc) in dcn401_initialize_min_clocks() argument 59 struct dc_clocks *clocks = &dc->current_state->bw_ctx.bw.dcn.clk; in dcn401_initialize_min_clocks() 61 clocks->dcfclk_deep_sleep_khz = DCN3_2_DCFCLK_DS_INIT_KHZ; in dcn401_initialize_min_clocks() 62 clocks->dcfclk_khz = dc->clk_mgr->bw_params->clk_table.entries[0].dcfclk_mhz * 1000; in dcn401_initialize_min_clocks() 63 clocks->socclk_khz = dc->clk_mgr->bw_params->clk_table.entries[0].socclk_mhz * 1000; in dcn401_initialize_min_clocks() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/hwss/dcn20/ |
| H A D | dcn20_hwseq.c | 66 hws->ctx 68 hws->regs->reg 72 hws->shifts->field_name, hws->masks->field_name 74 void dcn20_log_color_state(struct dc *dc, in dcn20_log_color_state() argument 77 struct dc_context *dc_ctx = dc->ctx; in dcn20_log_color_state() 78 struct resource_pool *pool = dc->res_pool; in dcn20_log_color_state() 88 for (i = 0; i < pool->pipe_count; i++) { in dcn20_log_color_state() 89 struct dpp *dpp = pool->dpps[i]; in dcn20_log_color_state() 92 dpp->funcs->dpp_read_state(dpp, &s); in dcn20_log_color_state() 93 if (dpp->funcs->dpp_get_gamut_remap) { in dcn20_log_color_state() [all …]
|
| /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 …]
|
| /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 …]
|
| /linux/drivers/gpu/drm/amd/display/dc/link/protocols/ |
| H A D | link_edp_panel_control.c | 38 #include "dc/dc_dmub_srv.h" 43 link->ctx->logger 93 link->panel_mode = panel_mode; in dp_set_panel_mode() 96 link->link_index, in dp_set_panel_mode() 97 link->dpcd_caps.panel_mode_edp, in dp_set_panel_mode() 107 if (link->connector_signal != SIGNAL_TYPE_DISPLAY_PORT) { in dp_get_panel_mode() 109 switch (link->dpcd_caps.branch_dev_id) { in dp_get_panel_mode() 118 link->dpcd_caps.branch_dev_name, in dp_get_panel_mode() 121 link->dpcd_caps. in dp_get_panel_mode() 132 if (strncmp(link->dpcd_caps.branch_dev_name, in dp_get_panel_mode() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn32/ |
| H A D | dcn32_resource_helpers.c | 40 struct dc *dc, in dcn32_helper_calculate_mall_bytes_for_cursor() argument 44 struct hubp *hubp = pipe_ctx->plane_res.hubp; in dcn32_helper_calculate_mall_bytes_for_cursor() 45 uint32_t cursor_size = hubp->curs_attr.pitch * hubp->curs_attr.height; in dcn32_helper_calculate_mall_bytes_for_cursor() 48 switch (pipe_ctx->stream->cursor_attributes.color_format) { in dcn32_helper_calculate_mall_bytes_for_cursor() 67 if (pipe_ctx->stream->cursor_position.enable && (ignore_cursor_buf || in dcn32_helper_calculate_mall_bytes_for_cursor() 72 cursor_mall_size_bytes = ((cursor_size + DCN3_2_MALL_MBLK_SIZE_BYTES - 1) / in dcn32_helper_calculate_mall_bytes_for_cursor() 85 * @dc: current dc state 86 * @context: new dc state 91 struct dc *dc, in dcn32_helper_calculate_num_ways_for_subvp() argument 94 if (context->bw_ctx.bw.dcn.mall_subvp_size_bytes > 0) { in dcn32_helper_calculate_num_ways_for_subvp() [all …]
|
| /linux/drivers/md/bcache/ |
| H A 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/drivers/gpu/drm/amd/display/dc/dml/dcn35/ |
| H A D | dcn35_fpu.c | 1 // SPDX-License-Identifier: MIT 214 * - with passed few options from dc->config 215 * - with dentist_vco_frequency from Clk Mgr (currently hardcoded, but might 217 * - with passed latency values (passed in ns units) in dc-> bb override for 219 * - with passed latencies from VBIOS (in 100_ns units) if available for 221 * - with number of DRAM channels from VBIOS (which differ for certain dGPU SKU 223 * - clocks levels with passed clk_table entries from Clk Mgr as reported by PM 227 void dcn35_update_bw_bounding_box_fpu(struct dc *dc, in dcn35_update_bw_bounding_box_fpu() argument 232 struct clk_limit_table *clk_table = &bw_params->clk_table; in dcn35_update_bw_bounding_box_fpu() 234 dc->scratch.update_bw_bounding_box.clock_limits; in dcn35_update_bw_bounding_box_fpu() [all …]
|
| /linux/drivers/gpu/ipu-v3/ |
| H A D | ipu-dc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (C) 2005-2009 Freescale Semiconductor, Inc. 15 #include <video/imx-ipu-v3.h> 16 #include "ipu-prv.h" 58 #define NULL_WAVE (-1) 90 /* The display interface number assigned to this dc channel */ 109 static void dc_link_event(struct ipu_dc *dc, int event, int addr, int priority) in dc_link_event() argument 113 reg = readl(dc->base + DC_RL_CH(event)); in dc_link_event() 116 writel(reg, dc->base + DC_RL_CH(event)); in dc_link_event() 119 static void dc_write_tmpl(struct ipu_dc *dc, int word, u32 opcode, u32 operand, in dc_write_tmpl() argument [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/hwss/dcn201/ |
| H A D | dcn201_hwseq.c | 44 hws->ctx 47 hws->regs->reg 50 dc->ctx->logger 54 hws->shifts->field_name, hws->masks->field_name 59 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() 60 bool sec_split = pipe_ctx->top_pipe && in patch_address_for_sbs_tb_stereo() 61 pipe_ctx->top_pipe->plane_state == pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() 63 if (sec_split && plane_state->address.type == PLN_ADDR_TYPE_GRPH_STEREO && in patch_address_for_sbs_tb_stereo() 64 (pipe_ctx->stream->timing.timing_3d_format == in patch_address_for_sbs_tb_stereo() 66 pipe_ctx->stream->timing.timing_3d_format == in patch_address_for_sbs_tb_stereo() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dml/dcn351/ |
| H A D | dcn351_fpu.c | 1 /* SPDX-License-Identifier: MIT */ 248 * - with passed few options from dc->config 249 * - with dentist_vco_frequency from Clk Mgr (currently hardcoded, but might 251 * - with passed latency values (passed in ns units) in dc-> bb override for 253 * - with passed latencies from VBIOS (in 100_ns units) if available for 255 * - with number of DRAM channels from VBIOS (which differ for certain dGPU SKU 257 * - clocks levels with passed clk_table entries from Clk Mgr as reported by PM 261 void dcn351_update_bw_bounding_box_fpu(struct dc *dc, in dcn351_update_bw_bounding_box_fpu() argument 266 struct clk_limit_table *clk_table = &bw_params->clk_table; in dcn351_update_bw_bounding_box_fpu() 268 dc->scratch.update_bw_bounding_box.clock_limits; in dcn351_update_bw_bounding_box_fpu() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/ |
| H A D | dc.h | 2 * Copyright 2012-2023 Advanced Micro Devices, Inc. 69 * MAX_SURFACES - representative of the upper bound of surfaces that can be piped to a single CRTC 73 * MAX_PLANES - representative of the upper bound of planes that are supported by the HW 126 // for example, 1080p -> 8K is 4.0, or 4000 raw value 134 // for example, 8K -> 1080p is 0.25, or 250 raw value 146 * DOC: color-management-caps 151 * abstracted HW. DCE 5-12 had almost no important changes, but starting with 158 * struct rom_curve_caps - predefined transfer function caps for degamma and regamma 174 * struct dpp_color_caps - color pipeline capabilities for display pipe and 179 * just plain 256-entry lookup [all …]
|
| /linux/Documentation/devicetree/bindings/display/tegra/ |
| H A D | nvidia,tegra20-dc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/display/tegra/nvidia,tegra20-dc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Thierry Reding <thierry.reding@gmail.com> 11 - Jon Hunter <jonathanh@nvidia.com> 15 pattern: "^dc@[0-9a-f]+$" 19 - enum: 20 - nvidia,tegra20-dc 21 - nvidia,tegra30-dc [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dml/dcn10/ |
| H A D | dcn10_fpu.c | 1 // SPDX-License-Identifier: MIT 60 * the DC FPU interface functions, we introduce a helper that checks if the 79 .LineBufferFixedBpp = -1, 127 void dcn10_resource_construct_fp(struct dc *dc) in dcn10_resource_construct_fp() argument 130 if (dc->ctx->dce_version == DCN_VERSION_1_01) { in dcn10_resource_construct_fp() 131 struct dcn_soc_bounding_box *dcn_soc = dc->dcn_soc; in dcn10_resource_construct_fp() 132 struct dcn_ip_params *dcn_ip = dc->dcn_ip; in dcn10_resource_construct_fp() 133 struct display_mode_lib *dml = &dc->dml; in dcn10_resource_construct_fp() 135 dml->ip.max_num_dpp = 3; in dcn10_resource_construct_fp() 137 dcn_soc->dram_clock_change_latency = 23; in dcn10_resource_construct_fp() [all …]
|
| /linux/Documentation/devicetree/bindings/iio/dac/ |
| H A D | adi,ad5755.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Analog Devices AD5755 Multi-Channel DAC 10 - Sean Nyekjaer <sean.nyekjaer@prevas.dk> 15 - adi,ad5755 16 - adi,ad5755-1 17 - adi,ad5757 18 - adi,ad5735 19 - adi,ad5737 [all …]
|
| H A D | adi,ad5758.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Michael Hennerich <Michael.Hennerich@analog.com> 19 spi-cpha: true 21 adi,dc-dc-mode: 25 Mode of operation of the dc-to-dc converter 32 In this mode, the VDPC+ voltage is user-programmable to a fixed level 47 adi,range-microvolt: 51 - items: [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/hwss/dcn351/ |
| H A D | dcn351_hwseq.c | 1 /* SPDX-License-Identifier: MIT */ 38 void dcn351_calc_blocks_to_gate(struct dc *dc, struct dc_state *context, in dcn351_calc_blocks_to_gate() argument 43 dcn35_calc_blocks_to_gate(dc, context, update_state); in dcn351_calc_blocks_to_gate() 45 for (i = dc->res_pool->pipe_count - 1; i >= 0; i--) { in dcn351_calc_blocks_to_gate() 46 if (!update_state->pg_pipe_res_update[PG_HUBP][i] && in dcn351_calc_blocks_to_gate() 47 !update_state->pg_pipe_res_update[PG_DPP][i]) { in dcn351_calc_blocks_to_gate() 48 for (j = i - 1; j >= 0; j--) { in dcn351_calc_blocks_to_gate() 49 update_state->pg_pipe_res_update[PG_HUBP][j] = false; in dcn351_calc_blocks_to_gate() 50 update_state->pg_pipe_res_update[PG_DPP][j] = false; in dcn351_calc_blocks_to_gate() 58 void dcn351_calc_blocks_to_ungate(struct dc *dc, struct dc_state *context, in dcn351_calc_blocks_to_ungate() argument [all …]
|
| /linux/drivers/staging/media/av7110/ |
| H A D | av7110_hw.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * - av7110 low level hardware access and firmware interface 6 * Copyright (C) 1999-2002 Ralph Metzler 10 * Copyright (C) 1998,1999 Christian Theiss <mistert@rz.fh-augsburg.de> 48 struct saa7146_dev *dev = av7110->dev; in av7110_debiwrite() 52 return -1; in av7110_debiwrite() 54 if (saa7146_wait_for_debi_done(av7110->dev, 0) < 0) { in av7110_debiwrite() 56 return -1; in av7110_debiwrite() 62 saa7146_write(dev, DEBI_AD, av7110->debi_bus); in av7110_debiwrite() 70 struct saa7146_dev *dev = av7110->dev; in av7110_debiread() [all …]
|