Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/video/
Dxilinxfb.c154 static void xilinx_fb_out_be32(struct xilinxfb_drvdata *drvdata, u32 offset, in xilinx_fb_out_be32() argument
157 if (drvdata->flags & PLB_ACCESS_FLAG) in xilinx_fb_out_be32()
158 out_be32(drvdata->regs + (offset << 2), val); in xilinx_fb_out_be32()
161 dcr_write(drvdata->dcr_host, offset, val); in xilinx_fb_out_be32()
196 struct xilinxfb_drvdata *drvdata = to_xilinxfb_drvdata(fbi); in xilinx_fb_blank() local
201 xilinx_fb_out_be32(drvdata, REG_CTRL, drvdata->reg_ctrl_default); in xilinx_fb_blank()
209 xilinx_fb_out_be32(drvdata, REG_CTRL, 0); in xilinx_fb_blank()
232 struct xilinxfb_drvdata *drvdata, in xilinxfb_assign() argument
239 if (drvdata->flags & PLB_ACCESS_FLAG) { in xilinxfb_assign()
251 drvdata->regs_phys = physaddr; in xilinxfb_assign()
[all …]
/linux-2.6.39/drivers/char/xilinx_hwicap/
Dfifo_icap.c93 static inline void fifo_icap_fifo_write(struct hwicap_drvdata *drvdata, in fifo_icap_fifo_write() argument
96 dev_dbg(drvdata->dev, "fifo_write: %x\n", data); in fifo_icap_fifo_write()
97 out_be32(drvdata->base_address + XHI_WF_OFFSET, data); in fifo_icap_fifo_write()
106 static inline u32 fifo_icap_fifo_read(struct hwicap_drvdata *drvdata) in fifo_icap_fifo_read() argument
108 u32 data = in_be32(drvdata->base_address + XHI_RF_OFFSET); in fifo_icap_fifo_read()
109 dev_dbg(drvdata->dev, "fifo_read: %x\n", data); in fifo_icap_fifo_read()
118 static inline void fifo_icap_set_read_size(struct hwicap_drvdata *drvdata, in fifo_icap_set_read_size() argument
121 out_be32(drvdata->base_address + XHI_SZ_OFFSET, data); in fifo_icap_set_read_size()
128 static inline void fifo_icap_start_config(struct hwicap_drvdata *drvdata) in fifo_icap_start_config() argument
130 out_be32(drvdata->base_address + XHI_CR_OFFSET, XHI_CR_WRITE_MASK); in fifo_icap_start_config()
[all …]
Dxilinx_hwicap.c204 static int hwicap_command_desync(struct hwicap_drvdata *drvdata) in hwicap_command_desync() argument
212 buffer[index++] = hwicap_type_1_write(drvdata->config_regs->CMD) | 1; in hwicap_command_desync()
221 return drvdata->config->set_configuration(drvdata, in hwicap_command_desync()
236 static int hwicap_get_configuration_register(struct hwicap_drvdata *drvdata, in hwicap_get_configuration_register() argument
256 status = drvdata->config->set_configuration(drvdata, in hwicap_get_configuration_register()
262 status = drvdata->config->get_status(drvdata); in hwicap_get_configuration_register()
275 status = drvdata->config->set_configuration(drvdata, in hwicap_get_configuration_register()
283 status = drvdata->config->get_configuration(drvdata, reg_data, 1); in hwicap_get_configuration_register()
290 static int hwicap_initialize_hwicap(struct hwicap_drvdata *drvdata) in hwicap_initialize_hwicap() argument
295 dev_dbg(drvdata->dev, "initializing\n"); in hwicap_initialize_hwicap()
[all …]
Dbuffer_icap.c88 u32 buffer_icap_get_status(struct hwicap_drvdata *drvdata) in buffer_icap_get_status() argument
90 return in_be32(drvdata->base_address + XHI_STATUS_REG_OFFSET); in buffer_icap_get_status()
187 static int buffer_icap_device_read(struct hwicap_drvdata *drvdata, in buffer_icap_device_read() argument
192 void __iomem *base_address = drvdata->base_address; in buffer_icap_device_read()
221 static int buffer_icap_device_write(struct hwicap_drvdata *drvdata, in buffer_icap_device_write() argument
226 void __iomem *base_address = drvdata->base_address; in buffer_icap_device_write()
256 void buffer_icap_reset(struct hwicap_drvdata *drvdata) in buffer_icap_reset() argument
258 out_be32(drvdata->base_address + XHI_STATUS_REG_OFFSET, 0xFEFE); in buffer_icap_reset()
267 int buffer_icap_set_configuration(struct hwicap_drvdata *drvdata, u32 *data, in buffer_icap_set_configuration() argument
275 void __iomem *base_address = drvdata->base_address; in buffer_icap_set_configuration()
[all …]
Dfifo_icap.h45 struct hwicap_drvdata *drvdata,
51 struct hwicap_drvdata *drvdata,
55 u32 fifo_icap_get_status(struct hwicap_drvdata *drvdata);
56 void fifo_icap_reset(struct hwicap_drvdata *drvdata);
57 void fifo_icap_flush_fifo(struct hwicap_drvdata *drvdata);
Dbuffer_icap.h44 int buffer_icap_set_configuration(struct hwicap_drvdata *drvdata, u32 *data,
48 int buffer_icap_get_configuration(struct hwicap_drvdata *drvdata, u32 *data,
51 u32 buffer_icap_get_status(struct hwicap_drvdata *drvdata);
52 void buffer_icap_reset(struct hwicap_drvdata *drvdata);
Dxilinx_hwicap.h66 int (*get_configuration)(struct hwicap_drvdata *drvdata, u32 *data,
70 int (*set_configuration)(struct hwicap_drvdata *drvdata, u32 *data,
83 u32 (*get_status)(struct hwicap_drvdata *drvdata);
85 void (*reset)(struct hwicap_drvdata *drvdata);
/linux-2.6.39/drivers/input/serio/
Dxilinx_ps2.c91 static int xps2_recv(struct xps2data *drvdata, u8 *byte) in xps2_recv() argument
97 sr = in_be32(drvdata->base_address + XPS2_STATUS_OFFSET); in xps2_recv()
99 *byte = in_be32(drvdata->base_address + XPS2_RX_DATA_OFFSET); in xps2_recv()
111 struct xps2data *drvdata = dev_id; in xps2_interrupt() local
117 intr_sr = in_be32(drvdata->base_address + XPS2_IPISR_OFFSET); in xps2_interrupt()
118 out_be32(drvdata->base_address + XPS2_IPISR_OFFSET, intr_sr); in xps2_interrupt()
122 dev_warn(drvdata->serio.dev.parent, "receive overrun error\n"); in xps2_interrupt()
125 drvdata->flags |= SERIO_PARITY; in xps2_interrupt()
128 drvdata->flags |= SERIO_TIMEOUT; in xps2_interrupt()
131 status = xps2_recv(drvdata, &c); in xps2_interrupt()
[all …]
/linux-2.6.39/drivers/regulator/
Dfixed.c108 struct fixed_voltage_data *drvdata; in reg_fixed_voltage_probe() local
111 drvdata = kzalloc(sizeof(struct fixed_voltage_data), GFP_KERNEL); in reg_fixed_voltage_probe()
112 if (drvdata == NULL) { in reg_fixed_voltage_probe()
118 drvdata->desc.name = kstrdup(config->supply_name, GFP_KERNEL); in reg_fixed_voltage_probe()
119 if (drvdata->desc.name == NULL) { in reg_fixed_voltage_probe()
124 drvdata->desc.type = REGULATOR_VOLTAGE; in reg_fixed_voltage_probe()
125 drvdata->desc.owner = THIS_MODULE; in reg_fixed_voltage_probe()
126 drvdata->desc.ops = &fixed_voltage_ops; in reg_fixed_voltage_probe()
127 drvdata->desc.n_voltages = 1; in reg_fixed_voltage_probe()
129 drvdata->microvolts = config->microvolts; in reg_fixed_voltage_probe()
[all …]
Duserspace-consumer.c110 struct userspace_consumer_data *drvdata; in regulator_userspace_consumer_probe() local
117 drvdata = kzalloc(sizeof(struct userspace_consumer_data), GFP_KERNEL); in regulator_userspace_consumer_probe()
118 if (drvdata == NULL) in regulator_userspace_consumer_probe()
121 drvdata->name = pdata->name; in regulator_userspace_consumer_probe()
122 drvdata->num_supplies = pdata->num_supplies; in regulator_userspace_consumer_probe()
123 drvdata->supplies = pdata->supplies; in regulator_userspace_consumer_probe()
125 mutex_init(&drvdata->lock); in regulator_userspace_consumer_probe()
127 ret = regulator_bulk_get(&pdev->dev, drvdata->num_supplies, in regulator_userspace_consumer_probe()
128 drvdata->supplies); in regulator_userspace_consumer_probe()
139 ret = regulator_bulk_enable(drvdata->num_supplies, in regulator_userspace_consumer_probe()
[all …]
Dvirtual.c290 struct virtual_consumer_data *drvdata; in regulator_virtual_probe() local
293 drvdata = kzalloc(sizeof(struct virtual_consumer_data), GFP_KERNEL); in regulator_virtual_probe()
294 if (drvdata == NULL) in regulator_virtual_probe()
297 mutex_init(&drvdata->lock); in regulator_virtual_probe()
299 drvdata->regulator = regulator_get(&pdev->dev, reg_id); in regulator_virtual_probe()
300 if (IS_ERR(drvdata->regulator)) { in regulator_virtual_probe()
301 ret = PTR_ERR(drvdata->regulator); in regulator_virtual_probe()
315 drvdata->mode = regulator_get_mode(drvdata->regulator); in regulator_virtual_probe()
317 platform_set_drvdata(pdev, drvdata); in regulator_virtual_probe()
322 regulator_put(drvdata->regulator); in regulator_virtual_probe()
[all …]
/linux-2.6.39/drivers/leds/
Dleds-lm3530.c136 static int lm3530_init_registers(struct lm3530_data *drvdata) in lm3530_init_registers() argument
146 struct lm3530_platform_data *pltfm = drvdata->pdata; in lm3530_init_registers()
147 struct i2c_client *client = drvdata->client; in lm3530_init_registers()
152 if (drvdata->mode == LM3530_BL_MODE_MANUAL || in lm3530_init_registers()
153 drvdata->mode == LM3530_BL_MODE_ALS) in lm3530_init_registers()
156 if (drvdata->mode == LM3530_BL_MODE_ALS) { in lm3530_init_registers()
167 if (drvdata->mode == LM3530_BL_MODE_PWM) in lm3530_init_registers()
207 struct lm3530_data *drvdata = in lm3530_brightness_set() local
210 switch (drvdata->mode) { in lm3530_brightness_set()
214 err = i2c_smbus_write_byte_data(drvdata->client, in lm3530_brightness_set()
[all …]
Dleds-wm831x-status.c227 struct wm831x_status *drvdata; in wm831x_status_probe() local
239 drvdata = kzalloc(sizeof(struct wm831x_status), GFP_KERNEL); in wm831x_status_probe()
240 if (!drvdata) in wm831x_status_probe()
242 dev_set_drvdata(&pdev->dev, drvdata); in wm831x_status_probe()
244 drvdata->wm831x = wm831x; in wm831x_status_probe()
245 drvdata->reg = res->start; in wm831x_status_probe()
258 mutex_init(&drvdata->mutex); in wm831x_status_probe()
259 INIT_WORK(&drvdata->work, wm831x_status_work); in wm831x_status_probe()
260 spin_lock_init(&drvdata->value_lock); in wm831x_status_probe()
264 drvdata->reg_val = wm831x_reg_read(wm831x, drvdata->reg); in wm831x_status_probe()
[all …]
/linux-2.6.39/sound/soc/txx9/
Dtxx9aclc-ac97.c42 static int txx9aclc_regready(struct txx9aclc_plat_drvdata *drvdata) in txx9aclc_regready() argument
44 return __raw_readl(drvdata->base + ACINTSTS) & ACINT_REGACCRDY; in txx9aclc_regready()
51 struct txx9aclc_plat_drvdata *drvdata = txx9aclc_drvdata; in txx9aclc_ac97_read() local
52 void __iomem *base = drvdata->base; in txx9aclc_ac97_read()
84 struct txx9aclc_plat_drvdata *drvdata = txx9aclc_drvdata; in txx9aclc_ac97_write() local
85 void __iomem *base = drvdata->base; in txx9aclc_ac97_write()
100 struct txx9aclc_plat_drvdata *drvdata = txx9aclc_drvdata; in txx9aclc_ac97_cold_reset() local
101 void __iomem *base = drvdata->base; in txx9aclc_ac97_cold_reset()
131 struct txx9aclc_plat_drvdata *drvdata = dev_id; in txx9aclc_ac97_irq() local
132 void __iomem *base = drvdata->base; in txx9aclc_ac97_irq()
[all …]
Dtxx9aclc.c164 struct txx9aclc_plat_drvdata *drvdata = txx9aclc_drvdata; in txx9aclc_dma_tasklet() local
165 void __iomem *base = drvdata->base; in txx9aclc_dma_tasklet()
210 struct txx9aclc_plat_drvdata *drvdata =txx9aclc_drvdata; in txx9aclc_pcm_trigger() local
211 void __iomem *base = drvdata->base; in txx9aclc_pcm_trigger()
347 struct txx9aclc_plat_drvdata *drvdata =txx9aclc_drvdata; in txx9aclc_dma_init() local
355 ds->tx_reg = drvdata->physbase + ACAUDODAT; in txx9aclc_dma_init()
359 ds->rx_reg = drvdata->physbase + ACAUDIDAT; in txx9aclc_dma_init()
387 struct txx9aclc_plat_drvdata *drvdata = txx9aclc_drvdata; in txx9aclc_pcm_remove() local
388 void __iomem *base = drvdata->base; in txx9aclc_pcm_remove()
/linux-2.6.39/arch/arm/mach-msm/
Diommu_dev.c134 struct msm_iommu_drvdata *drvdata; in msm_iommu_probe() local
145 drvdata = kzalloc(sizeof(*drvdata), GFP_KERNEL); in msm_iommu_probe()
147 if (!drvdata) { in msm_iommu_probe()
230 "msm_iommu_secure_irpt_handler", drvdata); in msm_iommu_probe()
237 drvdata->pclk = iommu_pclk; in msm_iommu_probe()
238 drvdata->clk = iommu_clk; in msm_iommu_probe()
239 drvdata->base = regs_base; in msm_iommu_probe()
240 drvdata->irq = irq; in msm_iommu_probe()
241 drvdata->ncb = iommu_dev->ncb; in msm_iommu_probe()
246 platform_set_drvdata(pdev, drvdata); in msm_iommu_probe()
[all …]
Diommu.c54 static int __enable_clocks(struct msm_iommu_drvdata *drvdata) in __enable_clocks() argument
58 ret = clk_enable(drvdata->pclk); in __enable_clocks()
62 if (drvdata->clk) { in __enable_clocks()
63 ret = clk_enable(drvdata->clk); in __enable_clocks()
65 clk_disable(drvdata->pclk); in __enable_clocks()
71 static void __disable_clocks(struct msm_iommu_drvdata *drvdata) in __disable_clocks() argument
73 if (drvdata->clk) in __disable_clocks()
74 clk_disable(drvdata->clk); in __disable_clocks()
75 clk_disable(drvdata->pclk); in __disable_clocks()
636 struct msm_iommu_drvdata *drvdata = dev_id; in msm_iommu_fault_handler() local
[all …]
/linux-2.6.39/drivers/mtd/nand/
Dtxx9ndfmc.c91 struct txx9ndfmc_drvdata *drvdata = platform_get_drvdata(dev); in ndregaddr() local
94 return drvdata->base + (reg << plat->shift); in ndregaddr()
243 struct txx9ndfmc_drvdata *drvdata = platform_get_drvdata(dev); in txx9ndfmc_initialize() local
263 txx9ndfmc_write(dev, (drvdata->hold << 4) | drvdata->spw, TXX9_NDFSPR); in txx9ndfmc_initialize()
297 struct txx9ndfmc_drvdata *drvdata; in txx9ndfmc_probe() local
304 drvdata = devm_kzalloc(&dev->dev, sizeof(*drvdata), GFP_KERNEL); in txx9ndfmc_probe()
305 if (!drvdata) in txx9ndfmc_probe()
310 drvdata->base = devm_ioremap(&dev->dev, res->start, in txx9ndfmc_probe()
312 if (!drvdata->base) in txx9ndfmc_probe()
324 drvdata->hold = hold; in txx9ndfmc_probe()
[all …]
/linux-2.6.39/drivers/net/
Dxilinx_emaclite.c156 static void xemaclite_enable_interrupts(struct net_local *drvdata) in xemaclite_enable_interrupts() argument
161 reg_data = in_be32(drvdata->base_addr + XEL_TSR_OFFSET); in xemaclite_enable_interrupts()
162 out_be32(drvdata->base_addr + XEL_TSR_OFFSET, in xemaclite_enable_interrupts()
167 if (drvdata->tx_ping_pong != 0) { in xemaclite_enable_interrupts()
168 reg_data = in_be32(drvdata->base_addr + in xemaclite_enable_interrupts()
170 out_be32(drvdata->base_addr + XEL_BUFFER_OFFSET + in xemaclite_enable_interrupts()
176 out_be32(drvdata->base_addr + XEL_RSR_OFFSET, in xemaclite_enable_interrupts()
181 if (drvdata->rx_ping_pong != 0) { in xemaclite_enable_interrupts()
182 out_be32(drvdata->base_addr + XEL_BUFFER_OFFSET + in xemaclite_enable_interrupts()
188 out_be32(drvdata->base_addr + XEL_GIER_OFFSET, XEL_GIER_GIE_MASK); in xemaclite_enable_interrupts()
[all …]
/linux-2.6.39/include/linux/ssb/
Dssb.h183 void *drvdata; /* Per-device data */ member
200 dev->drvdata = data; in ssb_set_drvdata()
205 return dev->drvdata; in ssb_get_drvdata()
/linux-2.6.39/drivers/staging/comedi/
Dcomedidev.h64 #define COMEDI_DEVICE_CREATE(cs, parent, devt, drvdata, device, fmt...) \ argument
65 device_create(cs, ((parent) ? (parent) : (device)), devt, drvdata, fmt)
/linux-2.6.39/include/sound/
Dsoc.h768 void *drvdata; member
823 card->drvdata = data; in snd_soc_card_set_drvdata()
828 return card->drvdata; in snd_soc_card_get_drvdata()
/linux-2.6.39/drivers/base/
Dcore.c1446 dev_t devt, void *drvdata, const char *fmt, in device_create_vargs() argument
1465 dev_set_drvdata(dev, drvdata); in device_create_vargs()
1508 dev_t devt, void *drvdata, const char *fmt, ...) in device_create() argument
1514 dev = device_create_vargs(class, parent, devt, drvdata, fmt, vargs); in device_create()
/linux-2.6.39/include/linux/
Ddevice.h593 void *drvdata,
597 dev_t devt, void *drvdata,
/linux-2.6.39/drivers/net/ibm_newemac/
Dcore.c2249 void *drvdata; member
2291 if (deps[i].drvdata == NULL) in emac_check_deps()
2292 deps[i].drvdata = dev_get_drvdata(&deps[i].ofdev->dev); in emac_check_deps()
2293 if (deps[i].drvdata != NULL) in emac_check_deps()