Home
last modified time | relevance | path

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

/drivers/char/xilinx_hwicap/
Dxilinx_hwicap.c202 static int hwicap_command_desync(struct hwicap_drvdata *drvdata) in hwicap_command_desync() argument
210 buffer[index++] = hwicap_type_1_write(drvdata->config_regs->CMD) | 1; in hwicap_command_desync()
219 return drvdata->config->set_configuration(drvdata, in hwicap_command_desync()
234 static int hwicap_get_configuration_register(struct hwicap_drvdata *drvdata, in hwicap_get_configuration_register() argument
254 status = drvdata->config->set_configuration(drvdata, in hwicap_get_configuration_register()
260 status = drvdata->config->get_status(drvdata); in hwicap_get_configuration_register()
273 status = drvdata->config->set_configuration(drvdata, in hwicap_get_configuration_register()
281 status = drvdata->config->get_configuration(drvdata, reg_data, 1); in hwicap_get_configuration_register()
288 static int hwicap_initialize_hwicap(struct hwicap_drvdata *drvdata) in hwicap_initialize_hwicap() argument
293 dev_dbg(drvdata->dev, "initializing\n"); in hwicap_initialize_hwicap()
[all …]
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 …]
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);
/drivers/video/
Dxilinxfb.c171 struct xilinxfb_drvdata *drvdata = to_xilinxfb_drvdata(fbi); in xilinx_fb_blank() local
176 xilinx_fb_out_be32(drvdata, REG_CTRL, drvdata->reg_ctrl_default); in xilinx_fb_blank()
184 xilinx_fb_out_be32(drvdata, REG_CTRL, 0); in xilinx_fb_blank()
209 struct xilinxfb_drvdata *drvdata; in xilinxfb_assign() local
214 drvdata = kzalloc(sizeof(*drvdata), GFP_KERNEL); in xilinxfb_assign()
215 if (!drvdata) { in xilinxfb_assign()
219 dev_set_drvdata(dev, drvdata); in xilinxfb_assign()
228 drvdata->regs_phys = physaddr; in xilinxfb_assign()
229 drvdata->regs = ioremap(physaddr, 8); in xilinxfb_assign()
230 if (!drvdata->regs) { in xilinxfb_assign()
[all …]
/drivers/input/serio/
Dxilinx_ps2.c90 static int xps2_recv(struct xps2data *drvdata, u8 *byte) in xps2_recv() argument
96 sr = in_be32(drvdata->base_address + XPS2_STATUS_OFFSET); in xps2_recv()
98 *byte = in_be32(drvdata->base_address + XPS2_RX_DATA_OFFSET); in xps2_recv()
110 struct xps2data *drvdata = dev_id; in xps2_interrupt() local
116 intr_sr = in_be32(drvdata->base_address + XPS2_IPISR_OFFSET); in xps2_interrupt()
117 out_be32(drvdata->base_address + XPS2_IPISR_OFFSET, intr_sr); in xps2_interrupt()
121 dev_warn(drvdata->serio.dev.parent, "receive overrun error\n"); in xps2_interrupt()
124 drvdata->flags |= SERIO_PARITY; in xps2_interrupt()
127 drvdata->flags |= SERIO_TIMEOUT; in xps2_interrupt()
130 status = xps2_recv(drvdata, &c); in xps2_interrupt()
[all …]
/drivers/regulator/
Dfixed.c56 struct fixed_voltage_data *drvdata; in regulator_fixed_voltage_probe() local
59 drvdata = kzalloc(sizeof(struct fixed_voltage_data), GFP_KERNEL); in regulator_fixed_voltage_probe()
60 if (drvdata == NULL) { in regulator_fixed_voltage_probe()
65 drvdata->desc.name = kstrdup(config->supply_name, GFP_KERNEL); in regulator_fixed_voltage_probe()
66 if (drvdata->desc.name == NULL) { in regulator_fixed_voltage_probe()
70 drvdata->desc.type = REGULATOR_VOLTAGE; in regulator_fixed_voltage_probe()
71 drvdata->desc.owner = THIS_MODULE; in regulator_fixed_voltage_probe()
72 drvdata->desc.ops = &fixed_voltage_ops, in regulator_fixed_voltage_probe()
74 drvdata->microvolts = config->microvolts; in regulator_fixed_voltage_probe()
76 drvdata->dev = regulator_register(&drvdata->desc, drvdata); in regulator_fixed_voltage_probe()
[all …]
Dvirtual.c270 struct virtual_consumer_data *drvdata; in regulator_virtual_consumer_probe() local
273 drvdata = kzalloc(sizeof(struct virtual_consumer_data), GFP_KERNEL); in regulator_virtual_consumer_probe()
274 if (drvdata == NULL) { in regulator_virtual_consumer_probe()
279 mutex_init(&drvdata->lock); in regulator_virtual_consumer_probe()
281 drvdata->regulator = regulator_get(&pdev->dev, reg_id); in regulator_virtual_consumer_probe()
282 if (IS_ERR(drvdata->regulator)) { in regulator_virtual_consumer_probe()
283 ret = PTR_ERR(drvdata->regulator); in regulator_virtual_consumer_probe()
293 drvdata->mode = regulator_get_mode(drvdata->regulator); in regulator_virtual_consumer_probe()
295 platform_set_drvdata(pdev, drvdata); in regulator_virtual_consumer_probe()
302 kfree(drvdata); in regulator_virtual_consumer_probe()
[all …]
/drivers/mtd/nand/
Dexcite_nandflash.c120 struct excite_nand_drvdata * const drvdata = in excite_nand_devready() local
123 return __raw_readb(drvdata->regs + EXCITE_NANDFLASH_STATUS_BYTE); in excite_nand_devready()
165 struct excite_nand_drvdata *drvdata; /* private driver data */ in excite_nand_probe() local
170 drvdata = kzalloc(sizeof(*drvdata), GFP_KERNEL); in excite_nand_probe()
171 if (unlikely(!drvdata)) { in excite_nand_probe()
178 dev_set_drvdata(dev, drvdata); in excite_nand_probe()
181 drvdata->regs = in excite_nand_probe()
184 if (unlikely(!drvdata->regs)) { in excite_nand_probe()
187 kfree(drvdata); in excite_nand_probe()
191 drvdata->tgt = drvdata->regs + EXCITE_NANDFLASH_DATA_BYTE; in excite_nand_probe()
[all …]
/drivers/staging/comedi/
Dcomedidev.h135 #define COMEDI_DEVICE_CREATE(cs, parent, devt, drvdata, device, fmt...) \ argument
136 device_create(cs, ((parent) ? (parent) : (device)), devt, drvdata, fmt)
/drivers/base/
Dcore.c1330 dev_t devt, void *drvdata, const char *fmt, in device_create_vargs() argument
1349 dev_set_drvdata(dev, drvdata); in device_create_vargs()
1387 dev_t devt, void *drvdata, const char *fmt, ...) in device_create() argument
1393 dev = device_create_vargs(class, parent, devt, drvdata, fmt, vargs); in device_create()
/drivers/net/ibm_newemac/
Dcore.c2242 void *drvdata; member
2284 if (deps[i].drvdata == NULL) in emac_check_deps()
2285 deps[i].drvdata = dev_get_drvdata(&deps[i].ofdev->dev); in emac_check_deps()
2286 if (deps[i].drvdata != NULL) in emac_check_deps()