Searched defs:read (Results 76 - 100 of 182) sorted by relevance

12345678

/drivers/media/i2c/
H A Dmsp3400-driver.c82 /* read-only */
85 /* read-write */
116 /* reset and read revision code */
120 u8 read[2]; local
145 .buf = read
163 u8 read[2]; local
174 .buf = read
185 v4l_warn(client, "I/O error #%d (read 0x%02x/0x%02x)\n", err,
194 retval = read[0] << 8 | read[
[all...]
/drivers/media/pci/cx23885/
H A Daltera-ci.c255 u8 val, u8 read)
258 return inter->fpga_rw(inter->dev, 0, val, read);
261 /* flag - mem/io, read - read/write */
263 u8 flag, u8 read, int addr, u8 val)
285 mem = netup_fpga_op_rw(inter, NETUP_CI_DATA, val, read);
290 (read) ? "read" : "write", addr,
292 (read) ? mem : val);
254 netup_fpga_op_rw(struct fpga_internal *inter, int addr, u8 val, u8 read) argument
262 altera_ci_op_cam(struct dvb_ca_en50221 *en50221, int slot, u8 flag, u8 read, int addr, u8 val) argument
/drivers/media/usb/dvb-usb/
H A Dm920x.c401 u8 *read, *buff; local
408 read = kmalloc(4, GFP_KERNEL);
409 if (!read) {
414 if ((ret = m920x_read(udev, M9206_FILTER, 0x0, 0x8000, read, 4)) != 0)
416 deb("%*ph\n", 4, read);
418 if ((ret = m920x_read(udev, M9206_FW, 0x0, 0x0, read, 1)) != 0)
420 deb("%x\n", read[0]);
464 kfree(read);
H A Dttusb2.c372 int i, write_read, read; local
382 read = msg[i].flags & I2C_M_RD;
384 obuf[0] = (msg[i].addr << 1) | (write_read | read);
385 if (read)
390 /* read request */
393 else if (read)
408 } else if (read)
/drivers/mfd/
H A Drtsx_pcr.c338 int num_sg, bool read, int timeout)
343 count = rtsx_pci_dma_map_sg(pcr, sglist, num_sg, read);
348 err = rtsx_pci_dma_transfer(pcr, sglist, count, read, timeout);
350 rtsx_pci_dma_unmap_sg(pcr, sglist, num_sg, read);
357 int num_sg, bool read)
359 enum dma_data_direction dir = read ? DMA_FROM_DEVICE : DMA_TO_DEVICE;
372 int num_sg, bool read)
374 enum dma_data_direction dir = read ? DMA_FROM_DEVICE : DMA_TO_DEVICE;
381 int count, bool read, int timeout)
391 u8 dir = read
337 rtsx_pci_transfer_data(struct rtsx_pcr *pcr, struct scatterlist *sglist, int num_sg, bool read, int timeout) argument
356 rtsx_pci_dma_map_sg(struct rtsx_pcr *pcr, struct scatterlist *sglist, int num_sg, bool read) argument
371 rtsx_pci_dma_unmap_sg(struct rtsx_pcr *pcr, struct scatterlist *sglist, int num_sg, bool read) argument
380 rtsx_pci_dma_transfer(struct rtsx_pcr *pcr, struct scatterlist *sglist, int count, bool read, int timeout) argument
[all...]
/drivers/mmc/host/
H A Drtsx_usb_sdmmc.c464 int read = (data->flags & MMC_DATA_READ) ? 1 : 0; local
471 if (read) {
472 dev_dbg(sdmmc_dev(host), "%s: read %zu bytes\n",
505 if (read) {
527 if (read)
/drivers/mtd/nand/
H A Dtmio_nand.c118 u8 read; member in struct:tmio_nand
222 *To prevent stale data from being read, tmio_nand_hwcontrol() clears
231 return tmio->read;
234 tmio->read = data >> 8;
241 *Thus, we implement 16-bit versions of the read, write, and verify
264 tmio_ioread8(tmio->fcr + FCR_DATA); /* dummy read */
/drivers/net/ethernet/atheros/alx/
H A Dhw.c261 u32 read; local
265 read = alx_read_mem32(hw, reg);
266 if ((read & wait) == 0) {
268 *val = read;
974 * if BIOS had changed the default dma read max length,
/drivers/net/ethernet/intel/ixgbevf/
H A Dvf.h97 s32 (*read)(struct ixgbe_hw *, u32 *, u16); member in struct:ixgbe_mbx_operations
/drivers/net/ethernet/seeq/
H A Dether3.c98 * ether3 read/write. Slow things down a bit...
117 ether3_setbuffer(struct net_device *dev, buffer_rw_t read, int start) argument
133 if (read == buffer_read) {
159 * read data from the buffer memory
216 printk(KERN_ERR "ether3: Couldn't read a valid MAC address from card.\n");
594 * read the first 16 bytes from the buffer.
/drivers/net/wan/
H A Dsdla.c1198 static int sdla_xfer(struct net_device *dev, struct sdla_mem __user *info, int read) argument
1206 if (read)
/drivers/power/
H A Dlp8727_charger.c235 dev_err(pchg->dev, "can not read INT registers\n");
343 u8 read; local
352 lp8727_read_byte(pchg, LP8727_STATUS1, &read);
354 val->intval = (read & LP8727_CHGSTAT) == LP8727_STAT_EOC ?
359 lp8727_read_byte(pchg, LP8727_STATUS2, &read);
360 temp = (read & LP8727_TEMP_STAT) >> LP8727_TEMP_SHIFT;
/drivers/scsi/mvsas/
H A Dmv_94xx.c908 u8 read,
917 if (read)
905 mvs_94xx_spi_buildcmd(struct mvs_info *mvi, u32 *dwCmd, u8 cmd, u8 read, u8 length, u32 addr ) argument
/drivers/spi/
H A Dspi-bfin-sport.c49 void (*read) (struct bfin_sport_spi_master_data *); member in struct:bfin_sport_transfer_ops
205 .read = bfin_sport_spi_u8_reader,
245 .read = bfin_sport_spi_u16_reader,
436 /* PIO mode write then read */
456 /* read only half duplex */
458 drv_data->ops->read(drv_data);
H A Dspi-pxa2xx.h86 int (*read)(struct driver_data *drv_data); member in struct:driver_data
113 int (*read)(struct driver_data *drv_data); member in struct:chip_data
/drivers/staging/comedi/drivers/
H A Dserial2002.c69 * The configuration serial_data.value read from the device is
128 return f->f_op->read(f, p, 1, &f->f_pos);
596 struct serial_data read; local
600 read = serial2002_read(devpriv->tty, 1000);
601 if (read.kind != is_digital || read.index == chan)
604 data[n] = read.value;
641 struct serial_data read; local
645 read = serial2002_read(devpriv->tty, 1000);
646 if (read
702 struct serial_data read; local
[all...]
/drivers/target/
H A Dtarget_core_sbc.c300 * 1) read the specified logical block(s);
303 * the logical blocks read, storing the resulting XOR data in a buffer;
323 * Now perform the XOR against the BIDI read memory located at
1159 sbc_dif_copy_prot(struct se_cmd *cmd, unsigned int sectors, bool read, argument
1179 if (read)
/drivers/usb/class/
H A Dcdc-wdm.c94 int read; member in struct:wdm_device
436 * clear WDM_READ flag and possibly submit the read urb if resp_count
447 /* submit read urb only if the device is waiting for it */
481 desc->read = 0;
521 if (desc->rerr) { /* read completed, error happened */
536 if (!desc->reslength) { /* zero length read */
707 .read = wdm_read,
923 * @bufsize: maximum message size to support for read/write
1067 set_bit(WDM_RESETTING, &desc->flags); /* inform read/write */
1068 set_bit(WDM_READ, &desc->flags); /* unblock read */
[all...]
/drivers/usb/gadget/udc/
H A Dpxa25x_udc.h86 } read, write; member in struct:udc_stats
226 dev->stats.read.bytes, dev->stats.read.ops);
/drivers/gpio/
H A Dgpio-mcp23s08.c60 int (*read)(struct mcp23s08 *mcp, unsigned reg); member in struct:mcp23s08_ops
152 .read = mcp23008_read,
158 .read = mcp23017_read,
254 .read = mcp23s08_read,
260 .read = mcp23s17_read,
289 status = mcp->ops->read(mcp, MCP_GPIO);
347 intf = mcp->ops->read(mcp, MCP_INTF);
355 intcap = mcp->ops->read(mcp, MCP_INTCAP);
647 status = mcp->ops->read(mcp, MCP_IOCON);
/drivers/iio/adc/
H A Dxilinx-xadc.h75 int (*read)(struct xadc *, unsigned int, uint16_t *); member in struct:xadc_ops
91 return xadc->ops->read(xadc, reg, val);
/drivers/input/
H A Devdev.c505 size_t read = 0; local
526 while (read + input_event_size() <= count &&
529 if (input_event_to_user(buffer + read, &event))
532 read += input_event_size();
535 if (read)
547 return read;
1116 .read = evdev_read,
/drivers/input/joystick/
H A Dgamecon.c136 #define GC_N64_POWER_R 0xfd /* power during read */
141 #define GC_N64_CLOCK 0x02 /* clock bits for read */
177 * are read in parallel.
214 * the next read request. No worries as long as gc_read is polled less
353 * this port are read in parallel.
531 #define GC_PSX_BYTES 6 /* the maximum number of bytes to read off the controller */
568 int i, j, cmd, read; local
577 read = parport_read_status(port) ^ 0x80;
583 data[j] |= (read & gc_status_bit[j]) ? (1 << i) : 0;
749 * N64 pads - must be read firs
[all...]
/drivers/input/misc/
H A Dad714x.c135 ad714x->read(ad714x, STG_COM_INT_EN_REG, &data, 1);
139 ad714x->read(ad714x, STG_HIGH_INT_EN_REG, &data, 1);
152 ad714x->read(ad714x, STG_COM_INT_EN_REG, &data, 1);
156 ad714x->read(ad714x, STG_HIGH_INT_EN_REG, &data, 1);
254 ad714x->read(ad714x, CDC_RESULT_S0 + hw->start_stage,
259 ad714x->read(ad714x, STAGE0_AMBIENT + i * PER_STAGE_REG_NUM,
306 * routine that filters the CDC results after they have been read by the
310 * been read by the host processor.
426 ad714x->read(ad714x, CDC_RESULT_S0 + hw->start_stage,
431 ad714x->read(ad714
964 ad714x_probe(struct device *dev, u16 bus_type, int irq, ad714x_read_t read, ad714x_write_t write) argument
[all...]
/drivers/input/touchscreen/
H A Dedt-ft5x06.c394 "%s: read (%d) and stored value (%d) differ\n",
639 size_t read = 0; local
671 "failed to read 0x08 register, error %d\n", error);
698 read = min_t(size_t, count, tsdata->raw_bufsize - *off);
699 if (copy_to_user(buf, tsdata->raw_buffer + *off, read)) {
704 *off += read;
707 return error ?: read;
712 .read = edt_ft5x06_debugfs_raw_data_read,

Completed in 1887 milliseconds

12345678