| /linux/sound/pci/cs46xx/ |
| H A D | dsp_spos.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * 2002-07 Benny Sjostrand benny@hostmobility.com 51 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in shadow_and_reallocate_code() 54 return -EINVAL; in shadow_and_reallocate_code() 60 if (ins->code.offset > 0) { in shadow_and_reallocate_code() 75 dev_dbg(chip->card->dev, in shadow_and_reallocate_code() 80 address += (ins->code.offset / 2) - overlay_begin_address; in shadow_and_reallocate_code() 82 dev_dbg(chip->card->dev, in shadow_and_reallocate_code() 95 dev_dbg(chip->card->dev, in shadow_and_reallocate_code() 102 } /* ins->code.offset > 0 */ in shadow_and_reallocate_code() [all …]
|
| /linux/drivers/edac/ |
| H A D | versalnet_edac.c | 1 // SPDX-License-Identifier: GPL-2.0 76 * struct ecc_error_info - ECC error log information. 82 * @col: Column number. 95 u32 col:11; member 124 * struct ecc_status - ECC status information to report. 138 * struct mc_priv - DDR memory controller private instance data. 229 p = &priv->stat; in get_ddr_info() 232 p->channel = 1; in get_ddr_info() 234 p->channel = 0; in get_ddr_info() 239 p->ceinfo[0].i = reglo | (u64)reghi << 32; in get_ddr_info() [all …]
|
| H A D | dmc520_edac.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * EDAC driver for DMC-520 memory controller. 25 /* DMC-520 registers */ 43 /* DMC-520 types, masks and bitfields */ 78 * The max-length message would be: "rank:7 bank:15 row:262143 col:1023". 79 * Max length is 34. Using a 40-size buffer is enough. 82 #define EDAC_MOD_NAME "dmc520-edac" 105 u32 col; member 165 * error_lock is to protect concurrent writes to the mci->error_desc through 178 static u32 dmc520_read_reg(struct dmc520_edac *pvt, u32 offset) in dmc520_read_reg() argument [all …]
|
| H A D | armada_xp_edac.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include <asm/hardware/cache-l2x0.h> 13 #include <asm/hardware/cache-aurora-l2.h> 86 uint16_t col) in axp_mc_calc_address() argument 88 if (drvdata->width == 8) { in axp_mc_calc_address() 90 if (drvdata->cs_addr_sel[cs]) in axp_mc_calc_address() 95 ((col & 0x3ff) << 3)); in axp_mc_calc_address() 99 ((col & 0x3ff)) << 3)); in axp_mc_calc_address() 100 } else if (drvdata->width == 4) { in axp_mc_calc_address() 102 if (drvdata->cs_addr_sel[cs]) in axp_mc_calc_address() [all …]
|
| H A D | cpc925_edac.c | 1 // SPDX-License-Identifier: GPL-2.0-only 34 #define CPC925_BIT(nr) (1UL << (CPC925_BITS_PER_REG - 1 - nr)) 50 * "CPC925 Bridge and Memory Controller User Manual, SA14-2761-02". 139 #define MSCR_SCRUB_MOD_MASK 0xC0000000 /* scrub_mod - bit0:1*/ 141 #define MSCR_SI_SHIFT 16 /* si - bit8:15*/ 217 ERRCTRL_EOC_NF = CPC925_BIT(3), /* End-Of-Chain error */ 246 LINKERR_EOC_ERR = CPC925_BIT(17), /* End-Of-Chain error */ 300 pdata->total_mem = 0; in get_total_mem() 307 pdata->total_mem += size; in get_total_mem() 311 edac_dbg(0, "total_mem 0x%lx\n", pdata->total_mem); in get_total_mem() [all …]
|
| /linux/drivers/gpu/ipu-v3/ |
| H A D | ipu-image-convert.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2012-2016 Mentor Graphics Inc. 9 #include <linux/dma-mapping.h> 12 #include <video/imx-ipu-image-convert.h> 14 #include "ipu-prv.h" 29 * the DMA channel's parameter memory!). IDMA double-buffering is used 30 * to convert each tile back-to-back when possible (see note below 36 * +---------+-----+ 37 * +-----+---+ | A | B | 39 * +-----+---+ --> +---------+-----+ [all …]
|
| /linux/drivers/tty/vt/ |
| H A D | vc_screen.c | 1 // SPDX-License-Identifier: GPL-2.0 13 * /dev/vcsuN: similar to /dev/vcsaN but using 4-byte unicode values 14 * instead of 1-byte screen glyph values. 22 * aeb@cwi.nl - efter Friedas begravelse - 950211 24 * machek@k332.feld.cvut.cz - modified not to send characters to wrong console 25 * - fixed some fatal off-by-one bugs (0-- no longer == -1 -> looping and looping and looping...) 26 * - making it shorter - scr_readw are macros which expand in PRETTY long code 89 struct vc_data *vc = param->vc; in vcs_notifier() 92 int currcons = poll->cons_num; in vcs_notifier() 109 currcons--; in vcs_notifier() [all …]
|
| /linux/drivers/video/fbdev/ |
| H A D | tridentfb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2001, 2002 - Jani Monoses <jani@iv.ro> 31 #include <linux/i2c-algo-bit.h> 80 MODULE_PARM_DESC(mode_option, "Initial video mode e.g. '648x480-8@60'"); 82 MODULE_PARM_DESC(mode, "Initial video mode e.g. '648x480-8@60' (deprecated)"); 167 fb_writeb(val, p->io_virt + reg); in t_outb() 172 return fb_readb(p->io_virt + reg); in t_inb() 177 fb_writel(v, par->io_virt + r); in writemmr() 182 return fb_readl(par->io_virt + r); in readmmr() 194 u8 reg = vga_mm_rcrt(par->io_virt, I2C) & DDC_MASK_TGUI; in tridentfb_ddc_setscl_tgui() [all …]
|
| H A D | cyber2000fb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 1998-2002 Russell King 49 #include <linux/i2c-algo-bit.h> 52 #include <asm/mach-types.h> 109 #define cyber2000fb_writel(val, reg, cfb) writel(val, (cfb)->regs + (reg)) 110 #define cyber2000fb_writew(val, reg, cfb) writew(val, (cfb)->regs + (reg)) 111 #define cyber2000fb_writeb(val, reg, cfb) writeb(val, (cfb)->regs + (reg)) 113 #define cyber2000fb_readb(reg, cfb) readb((cfb)->regs + (reg)) 149 /* -------------------- Hardware specific routines ------------------------- */ 158 unsigned long dst, col; in cyber2000fb_fillrect() local [all …]
|
| /linux/samples/vfs/ |
| H A D | test-statx.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 44 #define __NR_statx -1 61 tim = ts->tv_sec; in print_time() 73 printf(".%09u", ts->tv_nsec); in print_time() 87 printf("results=%x\n", stx->stx_mask); in dump_statx() 90 if (stx->stx_mask & STATX_SIZE) in dump_statx() 91 printf(" Size: %-15llu", (unsigned long long)stx->stx_size); in dump_statx() 92 if (stx->stx_mask & STATX_BLOCKS) in dump_statx() 93 printf(" Blocks: %-10llu", (unsigned long long)stx->stx_blocks); in dump_statx() 94 printf(" IO Block: %-6llu", (unsigned long long)stx->stx_blksize); in dump_statx() [all …]
|
| /linux/tools/testing/selftests/kvm/lib/arm64/ |
| H A D | gic_v3_its.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Guest ITS library, generously donated by drivers/irqchip/irq-gic-v3-its.c 20 static u64 its_read_u64(unsigned long offset) in its_read_u64() argument 22 return readq_relaxed(GITS_BASE_GVA + offset); in its_read_u64() 25 static void its_write_u64(unsigned long offset, u64 val) in its_write_u64() argument 27 writeq_relaxed(val, GITS_BASE_GVA + offset); in its_write_u64() 30 static u32 its_read_u32(unsigned long offset) in its_read_u32() argument 32 return readl_relaxed(GITS_BASE_GVA + offset); in its_read_u32() 35 static void its_write_u32(unsigned long offset, u32 val) in its_write_u32() argument 37 writel_relaxed(val, GITS_BASE_GVA + offset); in its_write_u32() [all …]
|
| /linux/Documentation/devicetree/bindings/display/ |
| H A D | solomon,ssd1307fb.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Maxime Ripard <mripard@kernel.org> 11 - Javier Martinez Canillas <javierm@redhat.com> 17 - enum: 18 - solomon,ssd1305fb-i2c 19 - solomon,ssd1306fb-i2c 20 - solomon,ssd1307fb-i2c 21 - solomon,ssd1309fb-i2c [all …]
|
| /linux/drivers/video/fbdev/matrox/ |
| H A D | matroxfb_crtc2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * (c) 1998-2002 Petr Vandrovec <vandrove@vc.cvut.cz> 33 u_int32_t col; in matroxfb_dh_setcolreg() local 38 if (m2info->fbcon.var.grayscale) { in matroxfb_dh_setcolreg() 42 red = CNVT_TOHW(red, m2info->fbcon.var.red.length); in matroxfb_dh_setcolreg() 43 green = CNVT_TOHW(green, m2info->fbcon.var.green.length); in matroxfb_dh_setcolreg() 44 blue = CNVT_TOHW(blue, m2info->fbcon.var.blue.length); in matroxfb_dh_setcolreg() 45 transp = CNVT_TOHW(transp, m2info->fbcon.var.transp.length); in matroxfb_dh_setcolreg() 47 col = (red << m2info->fbcon.var.red.offset) | in matroxfb_dh_setcolreg() 48 (green << m2info->fbcon.var.green.offset) | in matroxfb_dh_setcolreg() [all …]
|
| /linux/scripts/gdb/linux/ |
| H A D | bpf.py | 1 # SPDX-License-Identifier: GPL-2.0 21 if end != -1: 140 def btf_str_by_offset(btf, offset): argument 141 while offset < btf["start_str_off"]: 144 offset -= btf["start_str_off"] 145 if offset < btf["hdr"]["str_len"]: 146 return (btf["strings"] + offset).string() 172 self.nr_linfo = int(aux["nr_linfo"]) - linfo_idx 187 return -1 188 return self.jited_linfo[self.pos] - self.bpf_func [all …]
|
| /linux/drivers/net/ethernet/mscc/ |
| H A D | ocelot_vcap.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 40 u32 tg_sw; /* Current type-group */ 42 u32 key_offset; /* Current entry offset */ 43 u32 action_offset; /* Current action offset */ 44 u32 counter_offset; /* Current counter offset */ 45 u32 tg_value; /* Current type-group value */ 46 u32 tg_mask; /* Current type-group mask */ 52 return ocelot_target_read(ocelot, vcap->target, VCAP_CORE_UPDATE_CTRL); in vcap_read_update_ctrl() 62 if ((sel & VCAP_SEL_ENTRY) && ix >= vcap->entry_count) in vcap_cmd() 74 ocelot_target_write(ocelot, vcap->target, value, VCAP_CORE_UPDATE_CTRL); in vcap_cmd() [all …]
|
| /linux/include/linux/ |
| H A D | selection.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 36 u16 screen_glyph(const struct vc_data *vc, int offset); 37 u32 screen_glyph_unicode(const struct vc_data *vc, int offset); 38 void complement_pos(struct vc_data *vc, int offset); 39 void invert_screen(struct vc_data *vc, int offset, int count, bool viewed); 50 unsigned int row, unsigned int col, unsigned int nr);
|
| /linux/drivers/soundwire/ |
| H A D | generic_bandwidth_allocation.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 2 // Copyright(c) 2015-2020 Intel Corporation. 42 struct sdw_bus_params *b_params = &m_rt->bus->params; in sdw_compute_slave_ports() 44 port_bo = t_data->block_offset; in sdw_compute_slave_ports() 46 list_for_each_entry(s_rt, &m_rt->slave_rt_list, m_rt_node) { in sdw_compute_slave_ports() 47 rate = m_rt->stream->params.rate; in sdw_compute_slave_ports() 48 bps = m_rt->stream->params.bps; in sdw_compute_slave_ports() 49 sample_int = (m_rt->bus->params.curr_dr_freq / rate); in sdw_compute_slave_ports() 52 list_for_each_entry(p_rt, &s_rt->port_list, port_node) { in sdw_compute_slave_ports() 53 if (p_rt->lane != t_data->lane) in sdw_compute_slave_ports() [all …]
|
| H A D | cadence_master.h | 1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */ 2 /* Copyright(c) 2015-17 Intel Corporation. */ 107 * struct sdw_cdns - Cadence driver context 111 * @ip_offset: version-dependent offset to access IP_MCP registers and fields 121 * @status_update_lock: protect concurrency between interrupt-based and delayed work 214 int row, int col, int frame_rate, 219 int row, int col, unsigned int data_bytes,
|
| /linux/arch/powerpc/boot/dts/ |
| H A D | ac14xx.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 14 #address-cells = <1>; 15 #size-cells = <1>; 26 timebase-frequency = <40000000>; /* 40 MHz (csb/4) */ 27 bus-frequency = <160000000>; /* 160 MHz csb bus */ 28 clock-frequency = <400000000>; /* 400 MHz ppc core */ 49 compatible = "cfi-flash"; 51 #address-cells = <1>; 52 #size-cells = <1>; 53 bank-width = <2>; [all …]
|
| /linux/drivers/net/wireless/ti/wl1251/ |
| H A D | boot.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 wl1251_reg_write32(wl, ACX_REG_INTERRUPT_MASK, ~(wl->intr_mask)); in wl1251_boot_target_enable_interrupts() 40 /* 1.2 check pWhalBus->uSelfClearTime if the in wl1251_boot_soft_reset() 43 return -1; in wl1251_boot_soft_reset() 63 * col #1: INTEGER_DIVIDER in wl1251_boot_init_seq() 64 * col #2: FRACTIONAL_DIVIDER in wl1251_boot_init_seq() 65 * col #3: ATTN_BB in wl1251_boot_init_seq() 66 * col #4: ALPHA_BB in wl1251_boot_init_seq() 67 * col #5: STOP_TIME_BB in wl1251_boot_init_seq() 68 * col #6: BB_PLL_LOOP_FILTER in wl1251_boot_init_seq() [all …]
|
| /linux/drivers/net/wireless/ath/ath5k/ |
| H A D | rfbuffer.h | 50 * struct ath5k_ini_rfbuffer - Initial RF Buffer settings 65 * struct ath5k_rfb_field - An RF Buffer field (register/value) 67 * @pos: Offset on the raw packet 68 * @col: Used for shifting 77 u8 col; member 81 * struct ath5k_rf_reg - RF analog register definition 100 * enum ath5k_rf_regs_idx - Map RF registers to indexes 164 /* BANK 2 len pos col */ 167 /* BANK 6 len pos col */ 178 #define AR5K_RF5111_PWD(_n) { 1, (135 - _n), 3 } [all …]
|
| /linux/drivers/spi/ |
| H A D | spi-qpic-snand.c | 2 * SPDX-License-Identifier: GPL-2.0 15 #include <linux/dma-mapping.h> 22 #include <linux/mtd/nand-qpic-common.h> 131 snandc->regs->read_location0 = locreg_val; in qcom_spi_set_read_loc_first() 133 snandc->regs->read_location1 = locreg_val; in qcom_spi_set_read_loc_first() 135 snandc->regs->read_location2 = locreg_val; in qcom_spi_set_read_loc_first() 137 snandc->regs->read_location3 = locreg_val; in qcom_spi_set_read_loc_first() 152 snandc->regs->read_location_last0 = locreg_val; in qcom_spi_set_read_loc_last() 154 snandc->regs->read_location_last1 = locreg_val; in qcom_spi_set_read_loc_last() 156 snandc->regs->read_location_last2 = locreg_val; in qcom_spi_set_read_loc_last() [all …]
|
| /linux/drivers/irqchip/ |
| H A D | irq-gic-v3-its.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2013-2017 ARM Limited, All Rights Reserved. 37 #include <linux/irqchip/arm-gic-v3.h> 38 #include <linux/irqchip/arm-gic-v4.h> 43 #include "irq-gic-common.h" 44 #include "irq-gic-its-msi-parent.h" 45 #include <linux/irqchip/irq-msi-lib.h> 72 * Collection structure - just an ID, and a redistributor address to 82 * The ITS_BASER structure - contains memory information, cached 95 * The ITS structure - contains most of the infrastructure, with the [all …]
|
| /linux/drivers/mtd/devices/ |
| H A D | pmc551.c | 1 // SPDX-License-Identifier: GPL-2.0-only 137 struct mypriv *priv = mtd->priv; in pmc551_erase() 138 u32 soff_hi; /* start address offset hi */ in pmc551_erase() 139 u32 eoff_hi, eoff_lo; /* end address offset hi/lo */ in pmc551_erase() 145 printk(KERN_DEBUG "pmc551_erase(pos:%ld, len:%ld)\n", (long)instr->addr, in pmc551_erase() 146 (long)instr->len); in pmc551_erase() 149 end = instr->addr + instr->len - 1; in pmc551_erase() 150 eoff_hi = end & ~(priv->asize - 1); in pmc551_erase() 151 soff_hi = instr->addr & ~(priv->asize - 1); in pmc551_erase() 152 eoff_lo = end & (priv->asize - 1); in pmc551_erase() [all …]
|
| /linux/tools/perf/ui/ |
| H A D | browser.c | 1 // SPDX-License-Identifier: GPL-2.0 23 if (current && (!browser->use_navkeypressed || browser->navkeypressed)) in ui_browser__percent_color() 34 int ret = browser->current_color; in ui_browser__set_color() 35 browser->current_color = color; in ui_browser__set_color() 49 SLsmg_gotorc(browser->y + y, browser->x + x); in ui_browser__gotorc_title() 54 SLsmg_gotorc(browser->y + y + browser->extra_title_lines, browser->x + x); in ui_browser__gotorc() 82 if (!browser->filter || !browser->filter(browser, pos)) in ui_browser__list_head_filter_entries() 84 pos = pos->next; in ui_browser__list_head_filter_entries() 85 } while (pos != browser->entries); in ui_browser__list_head_filter_entries() 95 if (!browser->filter || !browser->filter(browser, pos)) in ui_browser__list_head_filter_prev_entries() [all …]
|