Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 25 of 535) sorted by relevance

12345678910>>...22

/drivers/bus/
Domap_l3_smx.h43 static const u64 shift = 1; variable
45 #define L3_STATUS_0_MPUIA_BRST (shift << 0)
46 #define L3_STATUS_0_MPUIA_RSP (shift << 1)
47 #define L3_STATUS_0_MPUIA_INBAND (shift << 2)
48 #define L3_STATUS_0_IVAIA_BRST (shift << 6)
49 #define L3_STATUS_0_IVAIA_RSP (shift << 7)
50 #define L3_STATUS_0_IVAIA_INBAND (shift << 8)
51 #define L3_STATUS_0_SGXIA_BRST (shift << 9)
52 #define L3_STATUS_0_SGXIA_RSP (shift << 10)
53 #define L3_STATUS_0_SGXIA_MERROR (shift << 11)
[all …]
/drivers/memory/tegra/
Dtegra114.c31 .shift = 0,
45 .shift = 0,
59 .shift = 16,
73 .shift = 16,
87 .shift = 0,
101 .shift = 0,
115 .shift = 0,
129 .shift = 0,
143 .shift = 16,
157 .shift = 0,
[all …]
Dtegra30.c31 .shift = 0,
45 .shift = 0,
59 .shift = 16,
73 .shift = 16,
87 .shift = 0,
101 .shift = 0,
115 .shift = 16,
129 .shift = 16,
143 .shift = 0,
157 .shift = 0,
[all …]
Dtegra210.c33 .shift = 0,
47 .shift = 0,
61 .shift = 16,
75 .shift = 16,
89 .shift = 0,
103 .shift = 0,
117 .shift = 0,
131 .shift = 0,
145 .shift = 0,
159 .shift = 0,
[all …]
Dtegra124.c73 .shift = 0,
87 .shift = 0,
101 .shift = 16,
115 .shift = 16,
129 .shift = 0,
143 .shift = 0,
157 .shift = 0,
171 .shift = 0,
185 .shift = 0,
199 .shift = 0,
[all …]
/drivers/mfd/
Dtmio_core.c12 int tmio_core_mmc_enable(void __iomem *cnf, int shift, unsigned long base) in tmio_core_mmc_enable() argument
15 sd_config_write16(cnf, shift, CNF_CMD, SDCREN); in tmio_core_mmc_enable()
16 sd_config_write32(cnf, shift, CNF_CTL_BASE, base & 0xfffe); in tmio_core_mmc_enable()
19 sd_config_write8(cnf, shift, CNF_PWR_CTL_3, 0x01); in tmio_core_mmc_enable()
22 sd_config_write8(cnf, shift, CNF_STOP_CLK_CTL, 0x1f); in tmio_core_mmc_enable()
25 sd_config_write8(cnf, shift, CNF_PWR_CTL_2, 0x00); in tmio_core_mmc_enable()
31 int tmio_core_mmc_resume(void __iomem *cnf, int shift, unsigned long base) in tmio_core_mmc_resume() argument
35 sd_config_write16(cnf, shift, CNF_CMD, SDCREN); in tmio_core_mmc_resume()
36 sd_config_write32(cnf, shift, CNF_CTL_BASE, base & 0xfffe); in tmio_core_mmc_resume()
42 void tmio_core_mmc_pwr(void __iomem *cnf, int shift, int state) in tmio_core_mmc_pwr() argument
[all …]
/drivers/video/fbdev/core/
Dsysimgblt.c57 u32 color = 0, val, shift; in color_imageblit() local
67 shift = 0; in color_imageblit()
74 shift = start_index; in color_imageblit()
83 val |= FB_SHIFT_HIGH(p, color, shift); in color_imageblit()
84 if (shift >= null_bits) { in color_imageblit()
87 val = (shift == null_bits) ? 0 : in color_imageblit()
88 FB_SHIFT_LOW(p, color, 32 - shift); in color_imageblit()
90 shift += bpp; in color_imageblit()
91 shift &= (32 - 1); in color_imageblit()
94 if (shift) { in color_imageblit()
[all …]
Dcfbimgblt.c82 u32 color = 0, val, shift; in color_imageblit() local
93 shift = 0; in color_imageblit()
100 shift = start_index; in color_imageblit()
109 val |= FB_SHIFT_HIGH(p, color, shift ^ bswapmask); in color_imageblit()
110 if (shift >= null_bits) { in color_imageblit()
113 val = (shift == null_bits) ? 0 : in color_imageblit()
114 FB_SHIFT_LOW(p, color, 32 - shift); in color_imageblit()
116 shift += bpp; in color_imageblit()
117 shift &= (32 - 1); in color_imageblit()
120 if (shift) { in color_imageblit()
[all …]
/drivers/clk/imx/
Dclk.h52 void __iomem *reg, u8 shift, u32 exclusive_mask);
55 void __iomem *reg, u8 shift) in imx_clk_gate2() argument
58 shift, 0, &imx_ccm_lock, NULL); in imx_clk_gate2()
62 const char *parent, void __iomem *reg, u8 shift, in imx_clk_gate2_shared() argument
66 shift, 0, &imx_ccm_lock, share_count); in imx_clk_gate2_shared()
73 void __iomem *reg, u8 shift, u8 width,
76 struct clk *imx_clk_busy_mux(const char *name, void __iomem *reg, u8 shift,
81 void __iomem *reg, u8 shift, u8 width,
85 u8 shift, u8 width, const char **parents,
94 void __iomem *reg, u8 shift, u8 width) in imx_clk_divider() argument
[all …]
Dclk-busy.c21 static int clk_busy_wait(void __iomem *reg, u8 shift) in clk_busy_wait() argument
25 while (readl_relaxed(reg) & (1 << shift)) in clk_busy_wait()
36 u8 shift; member
70 ret = clk_busy_wait(busy->reg, busy->shift); in clk_busy_divider_set_rate()
82 void __iomem *reg, u8 shift, u8 width, in imx_clk_busy_divider() argument
94 busy->shift = busy_shift; in imx_clk_busy_divider()
97 busy->div.shift = shift; in imx_clk_busy_divider()
121 u8 shift; member
145 ret = clk_busy_wait(busy->reg, busy->shift); in clk_busy_mux_set_parent()
155 struct clk *imx_clk_busy_mux(const char *name, void __iomem *reg, u8 shift, in imx_clk_busy_mux() argument
[all …]
/drivers/net/wireless/brcm80211/brcmsmac/phy/
Dphy_qmath.c109 s32 qm_shl32(s32 op, int shift) in qm_shl32() argument
114 if (shift > 31) in qm_shl32()
115 shift = 31; in qm_shl32()
116 else if (shift < -31) in qm_shl32()
117 shift = -31; in qm_shl32()
118 if (shift >= 0) { in qm_shl32()
119 for (i = 0; i < shift; i++) in qm_shl32()
122 result = result >> (-shift); in qm_shl32()
134 s16 qm_shl16(s16 op, int shift) in qm_shl16() argument
139 if (shift > 15) in qm_shl16()
[all …]
/drivers/md/persistent-data/
Ddm-btree-remove.c56 static void node_shift(struct btree_node *n, int shift) in node_shift() argument
61 if (shift < 0) { in node_shift()
62 shift = -shift; in node_shift()
63 BUG_ON(shift > nr_entries); in node_shift()
64 BUG_ON((void *) key_ptr(n, shift) >= value_ptr(n, shift)); in node_shift()
66 key_ptr(n, shift), in node_shift()
67 (nr_entries - shift) * sizeof(__le64)); in node_shift()
69 value_ptr(n, shift), in node_shift()
70 (nr_entries - shift) * value_size); in node_shift()
72 BUG_ON(nr_entries + shift > le32_to_cpu(n->header.max_entries)); in node_shift()
[all …]
/drivers/infiniband/hw/cxgb3/
Diwch_mem.c56 struct iwch_mr *mhp, int shift) in iwch_register_mem() argument
67 shift - 12, in iwch_register_mem()
80 int shift, in iwch_reregister_mem() argument
97 shift - 12, in iwch_reregister_mem()
139 int *shift, in build_phys_page_list() argument
169 for (*shift = PAGE_SHIFT; *shift < 27; ++(*shift)) in build_phys_page_list()
170 if ((1ULL << *shift) & mask) in build_phys_page_list()
173 buffer_list[0].size += buffer_list[0].addr & ((1ULL << *shift) - 1); in build_phys_page_list()
174 buffer_list[0].addr &= ~0ull << *shift; in build_phys_page_list()
179 (1ULL << *shift) - 1) >> *shift; in build_phys_page_list()
[all …]
/drivers/clk/sunxi/
Dclk-sun6i-ar100.c41 int shift = (val >> SUN6I_AR100_SHIFT_SHIFT) & SUN6I_AR100_SHIFT_MASK; in ar100_recalc_rate() local
44 return (parent_rate >> shift) / (div + 1); in ar100_recalc_rate()
61 int shift; in ar100_determine_rate() local
75 shift = ffs(div) - 1; in ar100_determine_rate()
76 if (shift > SUN6I_AR100_SHIFT_MAX) in ar100_determine_rate()
77 shift = SUN6I_AR100_SHIFT_MAX; in ar100_determine_rate()
79 div >>= shift; in ar100_determine_rate()
87 shift++; in ar100_determine_rate()
89 if (shift > SUN6I_AR100_SHIFT_MAX) in ar100_determine_rate()
97 if (shift > SUN6I_AR100_SHIFT_MAX) in ar100_determine_rate()
[all …]
/drivers/infiniband/core/
Dpacker.c71 int shift; in ib_pack() local
76 shift = 32 - desc[i].offset_bits - desc[i].size_bits; in ib_pack()
80 structure) << shift; in ib_pack()
84 mask = cpu_to_be32(((1ull << desc[i].size_bits) - 1) << shift); in ib_pack()
88 int shift; in ib_pack() local
93 shift = 64 - desc[i].offset_bits - desc[i].size_bits; in ib_pack()
97 structure) << shift; in ib_pack()
101 mask = cpu_to_be64((~0ull >> (64 - desc[i].size_bits)) << shift); in ib_pack()
161 int shift; in ib_unpack() local
166 shift = 32 - desc[i].offset_bits - desc[i].size_bits; in ib_unpack()
[all …]
/drivers/media/platform/davinci/
Dvpss.c242 u32 utemp, mask = 0x1, shift = 0; in dm355_enable_clock() local
249 shift = 2; in dm355_enable_clock()
252 shift = 3; in dm355_enable_clock()
255 shift = 4; in dm355_enable_clock()
258 shift = 5; in dm355_enable_clock()
261 shift = 6; in dm355_enable_clock()
272 utemp &= ~(mask << shift); in dm355_enable_clock()
274 utemp |= (mask << shift); in dm355_enable_clock()
284 u32 utemp, mask = 0x1, shift = 0, offset = DM365_ISP5_PCCR; in dm365_enable_clock() local
292 shift = 1; in dm365_enable_clock()
[all …]
/drivers/regulator/
Dmax8998.c117 int *reg, int *shift) in max8998_get_enable_register() argument
124 *shift = 3 - (ldo - MAX8998_LDO2); in max8998_get_enable_register()
128 *shift = 7 - (ldo - MAX8998_LDO6); in max8998_get_enable_register()
132 *shift = 7 - (ldo - MAX8998_LDO14); in max8998_get_enable_register()
136 *shift = 7 - (ldo - MAX8998_BUCK1); in max8998_get_enable_register()
140 *shift = 7 - (ldo - MAX8998_EN32KHZ_AP); in max8998_get_enable_register()
144 *shift = 7 - (ldo - MAX8998_ESAFEOUT1); in max8998_get_enable_register()
157 int ret, reg, shift = 8; in max8998_ldo_is_enabled() local
160 ret = max8998_get_enable_register(rdev, &reg, &shift); in max8998_ldo_is_enabled()
168 return val & (1 << shift); in max8998_ldo_is_enabled()
[all …]
/drivers/clk/
Dclk-axm5516.c81 u32 shift; member
97 div = 1 + ((ctrl >> divclk->shift) & ((1 << divclk->width)-1)); in axxia_divclk_recalc_rate()
116 u32 shift; member
131 parent = (ctrl >> mux->shift) & ((1 << mux->width) - 1); in axxia_clkmux_get_parent()
219 .shift = 0,
233 .shift = 4,
247 .shift = 8,
261 .shift = 12,
275 .shift = 0,
289 .shift = 4,
[all …]
/drivers/clk/meson/
Dclkc.h22 #define SETPMASK(width, shift) GENMASK(shift + width - 1, shift) argument
23 #define CLRPMASK(width, shift) (~SETPMASK(width, shift)) argument
25 #define PARM_GET(width, shift, reg) \ argument
26 (((reg) & SETPMASK(width, shift)) >> (shift))
27 #define PARM_SET(width, shift, reg, val) \ argument
28 (((reg) & CLRPMASK(width, shift)) | (val << (shift)))
34 u8 shift; member
40 .shift = (_s), \
/drivers/net/ethernet/ti/
Dcpsw_ale.c463 int shift, port_shift; member
472 .shift = 31,
480 .shift = 30,
488 .shift = 29,
496 .shift = 8,
504 .shift = 7,
512 .shift = 6,
520 .shift = 5,
528 .shift = 4,
536 .shift = 3,
[all …]
/drivers/net/ethernet/mellanox/mlxsw/
Ditem.h47 unsigned char shift; /* shift in bits */ member
83 tmp >>= item->shift; in __mlxsw_item_get16()
86 tmp <<= item->shift; in __mlxsw_item_get16()
96 u16 mask = GENMASK(item->size.bits - 1, 0) << item->shift; in __mlxsw_item_set16()
100 val <<= item->shift; in __mlxsw_item_set16()
116 tmp >>= item->shift; in __mlxsw_item_get32()
119 tmp <<= item->shift; in __mlxsw_item_get32()
129 u32 mask = GENMASK(item->size.bits - 1, 0) << item->shift; in __mlxsw_item_set32()
133 val <<= item->shift; in __mlxsw_item_set32()
149 tmp >>= item->shift; in __mlxsw_item_get64()
[all …]
/drivers/s390/char/
Ddefkeymap.map145 shift control keycode 65 = F13
146 shift control keycode 66 = F14
147 shift control keycode 67 = F15
148 shift control keycode 68 = F16
149 shift control keycode 69 = F17
150 shift control keycode 70 = F18
151 shift control keycode 71 = F19
152 shift control keycode 72 = F20
153 shift control keycode 73 = F21
154 shift control keycode 113 = F1
[all …]
/drivers/gpu/ipu-v3/
Dipu-smfc.c46 u32 val, shift; in ipu_smfc_set_burstsize() local
50 shift = smfc->chno * 4; in ipu_smfc_set_burstsize()
52 val &= ~(0xf << shift); in ipu_smfc_set_burstsize()
53 val |= burstsize << shift; in ipu_smfc_set_burstsize()
66 u32 val, shift; in ipu_smfc_map_channel() local
70 shift = smfc->chno * 3; in ipu_smfc_map_channel()
72 val &= ~(0x7 << shift); in ipu_smfc_map_channel()
73 val |= ((csi_id << 2) | mipi_id) << shift; in ipu_smfc_map_channel()
86 u32 val, shift; in ipu_smfc_set_watermark() local
90 shift = smfc->chno * 6 + (smfc->chno > 1 ? 4 : 0); in ipu_smfc_set_watermark()
[all …]
/drivers/clk/at91/
Dclk-peripheral.c139 int shift = 0; in clk_sam9x5_peripheral_autodiv() local
150 for (; shift < PERIPHERAL_MAX_SHIFT; shift++) { in clk_sam9x5_peripheral_autodiv()
151 if (parent_rate >> shift <= periph->range.max) in clk_sam9x5_peripheral_autodiv()
157 periph->div = shift; in clk_sam9x5_peripheral_autodiv()
242 int shift = 0; in clk_sam9x5_peripheral_round_rate() local
253 for (; shift <= PERIPHERAL_MAX_SHIFT; shift++) { in clk_sam9x5_peripheral_round_rate()
254 cur_rate = *parent_rate >> shift; in clk_sam9x5_peripheral_round_rate()
265 for (; shift <= PERIPHERAL_MAX_SHIFT; shift++) { in clk_sam9x5_peripheral_round_rate()
266 cur_rate = *parent_rate >> shift; in clk_sam9x5_peripheral_round_rate()
288 int shift; in clk_sam9x5_peripheral_set_rate() local
[all …]
/drivers/clk/ti/
Dautoidle.c29 u8 shift; member
79 val &= ~(1 << clk->shift); in _allow_autoidle()
81 val |= (1 << clk->shift); in _allow_autoidle()
93 val |= (1 << clk->shift); in _deny_autoidle()
95 val &= ~(1 << clk->shift); in _deny_autoidle()
141 u32 shift; in of_ti_clk_autoidle_setup() local
145 if (of_property_read_u32(node, "ti,autoidle-shift", &shift)) in of_ti_clk_autoidle_setup()
153 clk->shift = shift; in of_ti_clk_autoidle_setup()

12345678910>>...22