Lines Matching refs:val
39 static int preprocess_write(u32 orig_data, u32 val, int where,
48 (val << ((where & 3) << 3));
52 (val << ((where & 3) << 3));
55 ret = val;
68 u32 val;
85 val = (reg << MPI_L2PCFG_REG_SHIFT);
86 val |= (func << MPI_L2PCFG_FUNC_SHIFT);
87 val |= (slot << MPI_L2PCFG_DEVNUM_SHIFT);
88 val |= MPI_L2PCFG_CFG_USEREG_MASK;
89 val |= MPI_L2PCFG_CFG_SEL_MASK;
93 val |= (1 << MPI_L2PCFG_CFG_TYPE_SHIFT);
95 bcm_mpi_writel(val, MPI_L2PCFG_REG);
102 u32 *val)
116 *val = postprocess_read(data, where, size);
123 u32 val)
135 data = preprocess_write(data, val, where, size);
148 int where, int size, u32 *val)
158 where, size, val);
162 int where, int size, u32 val)
172 where, size, val);
208 static int fake_cb_bridge_read(int where, int size, u32 *val)
284 *val = postprocess_read(data, where, size);
291 static int fake_cb_bridge_write(int where, int size, u32 val)
301 data = preprocess_write(data, val, where, size);
363 int where, int size, u32 *val)
369 return fake_cb_bridge_read(where, size, val);
381 where, size, val);
387 int where, int size, u32 val)
391 return fake_cb_bridge_write(where, size, val);
399 where, size, val);
418 u32 val;
455 val = bcm_mpi_readl(MPI_L2PIOREMAP_REG);
457 val |= MPI_L2PREMAP_IS_CARDBUS_MASK;
459 val &= ~MPI_L2PREMAP_IS_CARDBUS_MASK;
460 bcm_mpi_writel(val, MPI_L2PIOREMAP_REG);
484 int where, int size, u32 *val)
497 *val = postprocess_read(data, where, size);
504 int where, int size, u32 val)
518 data = preprocess_write(data, val, where, size);