Home
last modified time | relevance | path

Searched +full:col +full:- +full:offset (Results 1 – 25 of 98) sorted by relevance

1234

/linux/sound/pci/cs46xx/
H A Ddsp_spos.c1 // 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/gpu/ipu-v3/
H A Dipu-image-convert.c1 // 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 Dvc_screen.c1 // 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
88 struct vc_data *vc = param->vc; in vcs_notifier()
91 int currcons = poll->cons_num; in vcs_notifier()
108 currcons--; in vcs_notifier()
[all …]
/linux/arch/mips/sgi-ip27/
H A Dip27-memory.c6 * Copyright (C) 2000, 05 by Ralf Baechle (ralf@linux-mips.org)
32 #include "ip27-common.h"
34 #define SLOT_PFNSHIFT (SLOT_SHIFT - PAGE_SHIFT)
35 #define PFN_NASIDSHFT (NASID_SHFT - PAGE_SHIFT)
64 if (router_a->rou_rflag == 1) in router_recurse()
70 router_a->rou_rflag = 1; in router_recurse()
73 if (router_a->rou_port[port].port_nasid == INVALID_NASID) in router_recurse()
77 router_a->rou_port[port].port_nasid, in router_recurse()
78 router_a->rou_port[port].port_offset); in router_recurse()
80 if (brd->brd_type == KLTYPE_ROUTER) { in router_recurse()
[all …]
/linux/drivers/video/fbdev/
H A Dtridentfb.c1 // 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 …]
/linux/samples/vfs/
H A Dtest-statx.c1 // SPDX-License-Identifier: GPL-2.0-or-later
38 #define __NR_statx -1
55 tim = ts->tv_sec; in print_time()
67 printf(".%09u", ts->tv_nsec); in print_time()
81 printf("results=%x\n", stx->stx_mask); in dump_statx()
84 if (stx->stx_mask & STATX_SIZE) in dump_statx()
85 printf(" Size: %-15llu", (unsigned long long)stx->stx_size); in dump_statx()
86 if (stx->stx_mask & STATX_BLOCKS) in dump_statx()
87 printf(" Blocks: %-10llu", (unsigned long long)stx->stx_blocks); in dump_statx()
88 printf(" IO Block: %-6llu", (unsigned long long)stx->stx_blksize); in dump_statx()
[all …]
/linux/drivers/edac/
H A Ddmc520_edac.c1 // 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 Darmada_xp_edac.c1 // 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 …]
/linux/tools/testing/selftests/kvm/lib/aarch64/
H A Dgic_v3_its.c1 // SPDX-License-Identifier: GPL-2.0
3 * Guest ITS library, generously donated by drivers/irqchip/irq-gic-v3-its.c
18 static u64 its_read_u64(unsigned long offset) in its_read_u64() argument
20 return readq_relaxed(GITS_BASE_GVA + offset); in its_read_u64()
23 static void its_write_u64(unsigned long offset, u64 val) in its_write_u64() argument
25 writeq_relaxed(val, GITS_BASE_GVA + offset); in its_write_u64()
28 static u32 its_read_u32(unsigned long offset) in its_read_u32() argument
30 return readl_relaxed(GITS_BASE_GVA + offset); in its_read_u32()
33 static void its_write_u32(unsigned long offset, u32 val) in its_write_u32() argument
35 writel_relaxed(val, GITS_BASE_GVA + offset); in its_write_u32()
[all …]
/linux/Documentation/devicetree/bindings/display/
H A Dsolomon,ssd1307fb.yaml1 # 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/Documentation/devicetree/bindings/gpio/
H A Dgpio.txt5 -----------------
7 GPIO properties should be named "[<name>-]gpios", with <name> being the purpose
8 of this GPIO for the device. While a non-existent <name> is considered valid
10 for new bindings. Also, GPIO properties named "[<name>-]gpio" are valid and old
24 and bit-banged data signals:
27 gpio-controller;
28 #gpio-cells = <2>;
32 data-gpios = <&gpio1 12 0>,
38 a local offset to the GPIO line and the second cell represent consumer flags,
44 recommended to use the two-cell approach.
[all …]
/linux/drivers/mtd/nand/raw/
H A Dvf610_nfc.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2009-2015 Freescale Semiconductor, Inc. and others
15 * - Untested on MPC5125 and M54418.
16 * - DMA and pipelining not used.
17 * - 2K pages or less.
18 * - HW ECC: Only 2K page with 64+ OOB.
19 * - HW ECC: Only 24 and 32-bit error correction implemented.
67 #define COMMAND_NADDR_BYTES(x) GENMASK(13, 13 - (x) + 1)
136 * ECC status - seems to consume 8 bytes (double word). The documented
139 * Calculate an offset to store the ECC status at the end of the buffer.
[all …]
/linux/drivers/media/common/v4l2-tpg/
H A Dv4l2-tpg-core.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * v4l2-tpg-core.c - Test Pattern Generator
12 #include <media/tpg/v4l2-tpg.h>
54 * Sine table: sin[0] = 127 * sin(-180 degrees)
59 0, -4, -7, -11, -13, -18, -20, -22, -26, -29, -33, -35, -37, -41, -43, -48,
60 -50, -52, -56, -58, -62, -63, -65, -69, -71, -75, -76, -78, -82, -83, -87, -88,
61 -90, -93, -94, -97, -99, -101, -103, -104, -107, -108, -110, -111, -112, -114, -115, -117,
62 -118, -119, -120, -121, -122, -123, -123, -124, -125, -125, -126, -126, -127, -127, -127, -127,
63 -127, -127, -127, -127, -126, -126, -125, -125, -124, -124, -123, -122, -121, -120, -119, -118,
64 -117, -116, -114, -113, -111, -110, -109, -107, -105, -103, -101, -100, -97, -96, -93, -91,
[all …]
/linux/drivers/video/fbdev/matrox/
H A Dmatroxfb_crtc2.c1 // 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/drivers/media/platform/verisilicon/
H A Dhantro_hw.h1 /* SPDX-License-Identifier: GPL-2.0 */
13 #include <linux/v4l2-controls.h>
14 #include <media/v4l2-ctrls.h>
15 #include <media/v4l2-vp9.h>
16 #include <media/videobuf2-core.h>
58 * struct hantro_aux_buf - auxiliary DMA buffer for hardware data
110 * @dpb_longterm: DPB long-term
225 * @bsd_ctrl_offset: bsd offset into tile_edge
227 * @ctx_counters_offset: hw counters offset into misc
228 * @tile_info_offset: tile info offset into misc
[all …]
/linux/drivers/input/keyboard/
H A Domap4-keypad.c1 // SPDX-License-Identifier: GPL-2.0-or-later
61 ((((dbms) * 1000) / ((1 << ((ptv) + 1)) * (1000000 / 32768))) - 1)
90 static int kbd_readl(struct omap4_keypad *keypad_data, u32 offset) in kbd_readl() argument
92 return __raw_readl(keypad_data->base + in kbd_readl()
93 keypad_data->reg_offset + offset); in kbd_readl()
96 static void kbd_writel(struct omap4_keypad *keypad_data, u32 offset, u32 value) in kbd_writel() argument
99 keypad_data->base + keypad_data->reg_offset + offset); in kbd_writel()
102 static int kbd_read_irqreg(struct omap4_keypad *keypad_data, u32 offset) in kbd_read_irqreg() argument
104 return __raw_readl(keypad_data->base + in kbd_read_irqreg()
105 keypad_data->irqreg_offset + offset); in kbd_read_irqreg()
[all …]
/linux/drivers/net/ethernet/mscc/
H A Docelot_vcap.c1 // 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 Dselection.h1 /* 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/arch/powerpc/boot/dts/
H A Dac14xx.dts1 // 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 Dboot.c1 // 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/soundwire/
H A Dgeneric_bandwidth_allocation.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
2 // Copyright(c) 2015-2020 Intel Corporation.
40 struct sdw_bus_params *b_params = &m_rt->bus->params; in sdw_compute_slave_ports()
42 port_bo = t_data->block_offset; in sdw_compute_slave_ports()
44 list_for_each_entry(s_rt, &m_rt->slave_rt_list, m_rt_node) { in sdw_compute_slave_ports()
45 rate = m_rt->stream->params.rate; in sdw_compute_slave_ports()
46 bps = m_rt->stream->params.bps; in sdw_compute_slave_ports()
47 sample_int = (m_rt->bus->params.curr_dr_freq / rate); in sdw_compute_slave_ports()
50 list_for_each_entry(p_rt, &s_rt->port_list, port_node) { in sdw_compute_slave_ports()
51 ch = hweight32(p_rt->ch_mask); in sdw_compute_slave_ports()
[all …]
/linux/drivers/net/wireless/ath/ath5k/
H A Drfbuffer.h50 * 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/net/wireless/mediatek/mt76/
H A Dmt792x_acpi_sar.c1 // SPDX-License-Identifier: ISC
11 struct mt76_dev *mdev = &dev->mt76; in mt792x_acpi_read()
18 root = ACPI_HANDLE(mdev->dev); in mt792x_acpi_read()
20 return -EOPNOTSUPP; in mt792x_acpi_read()
24 return -EIO; in mt792x_acpi_read()
28 return -EIO; in mt792x_acpi_read()
31 if (sar_root->type != ACPI_TYPE_PACKAGE || in mt792x_acpi_read()
32 sar_root->package.count < 4 || in mt792x_acpi_read()
33 sar_root->package.elements[0].type != ACPI_TYPE_INTEGER) { in mt792x_acpi_read()
34 dev_err(mdev->dev, "sar cnt = %d\n", in mt792x_acpi_read()
[all …]
/linux/drivers/irqchip/
H A Dirq-gic-v3-its.c1 // 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-msi-lib.h"
71 * Collection structure - just an ID, and a redistributor address to
81 * The ITS_BASER structure - contains memory information, cached
94 * The ITS structure - contains most of the infrastructure, with the
95 * top-level MSI domain, the command queue, the collections, and the
[all …]
/linux/drivers/mtd/devices/
H A Dpmc551.c1 // 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 …]

1234