/drivers/i2c/busses/ |
H A D | i2c-pasemi.c | 71 dev_dbg(&smbus->dev->dev, "smbus read reg %lx val %08x\n", 119 int read, i, err; local 122 read = msg->flags & I2C_M_RD ? 1 : 0; 124 TXFIFO_WR(smbus, MTXFIFO_START | (msg->addr << 1) | read); 126 if (read) {
|
H A D | i2c-powermac.c | 46 int read = (read_write == I2C_SMBUS_READ); local 47 int addrdir = (addr << 1) | read; 58 mode = read ? pmac_i2c_mode_combined : pmac_i2c_mode_stdsub; 74 if (!read) { 132 if (size == I2C_SMBUS_WORD_DATA && read) { 153 int read; local 164 read = (msgs->flags & I2C_M_RD) != 0; 165 addrdir = (msgs->addr << 1) | read; 182 addrdir & 1 ? "read from" : "write to", 186 addrdir & 1 ? "read fro [all...] |
/drivers/input/serio/ |
H A D | serio_raw.c | 166 ssize_t read = 0; local 180 while (read < count && serio_raw_fetch_byte(serio_raw, &c)) { 183 read++; 186 if (read) 198 return read; 261 .read = serio_raw_read,
|
/drivers/mfd/ |
H A D | ssbi.c | 79 int (*read)(struct ssbi *, u16 addr, u8 *buf, int len); member in struct:ssbi 251 ret = ssbi->read(ssbi, addr, buf, len); 308 ssbi->read = ssbi_pa_read_bytes; 311 ssbi->read = ssbi_read_bytes;
|
/drivers/mtd/tests/ |
H A D | nandbiterrs.c | 83 static uint8_t *rbuffer; /* One page read buffer */ 144 size_t read; local 153 err = mtd_read(mtd, offset, mtd->writesize, &read, rbuffer); 157 if (err < 0 || read != mtd->writesize) { 158 pr_err("error: read failed at %#llx\n", (long long)offset); 238 pr_err("After %d biterrors per subpage, read reported error %d\n", 246 pr_err("ECC failure, read data is incorrect despite read success\n"); 319 pr_info("ECC failure, read data is incorrect despite read succes [all...] |
H A D | torturetest.c | 84 static void report_corrupt(unsigned char *read, unsigned char *written); 103 size_t read; local 113 err = mtd_read(mtd, addr, len, &read, check_buf); 119 "read %zd\n", err, ebnum, read); 123 if (read != len) { 124 pr_err("failed to read %zd bytes from EB %d, " 125 "read only %zd, but no error reported\n", 126 len, ebnum, read); 131 pr_err("read wron 374 report_corrupt(unsigned char *read, unsigned char *written) argument 418 print_bufs(unsigned char *read, unsigned char *written, int start, int len) argument [all...] |
/drivers/mtd/ubi/ |
H A D | debug.c | 37 size_t read; local 44 err = mtd_read(ubi->mtd, addr, len, &read, buf); 46 ubi_err("error %d while reading %d bytes from PEB %d:%d, read %zd bytes", 47 err, len, pnum, offset, read); 355 .read = dfs_file_read,
|
/drivers/net/ethernet/chelsio/cxgb/ |
H A D | cphy.h | 45 int (*read)(struct net_device *dev, int phy_addr, int mmd_addr, member in struct:mdio_ops 109 /* Convenience MDIO read/write wrappers */ 150 phy->mdio.mdio_read = mdio_ops->read;
|
/drivers/net/wireless/ath/ath6kl/ |
H A D | hif.c | 83 /* read RAM location through diagnostic window */ 128 * read counter to clear the interrupt, the debug error interrupt is 159 ath6kl_err("failed to read reg table\n"); 234 struct hif_scatter_req *scat_req, bool read) 238 if (read) { 253 scat_req->addr, !read ? "async" : "sync", 254 (read) ? "rd" : "wr"); 256 if (!read && scat_req->virt_scat) { 267 if (read) { 476 * completion routine of the callers read reques 233 ath6kl_hif_submit_scat_req(struct ath6kl_device *dev, struct hif_scatter_req *scat_req, bool read) argument [all...] |
/drivers/net/wireless/b43legacy/ |
H A D | debugfs.c | 45 ssize_t (*read)(struct b43legacy_wldev *dev, char *buf, size_t bufsize); member in struct:b43legacy_debugfs_fops 50 /* Take wl->irq_lock before calling read/write? */ 225 if (!dfops->read) { 240 ret = dfops->read(dev, buf, bufsize); 243 ret = dfops->read(dev, buf, bufsize); 325 .read = _read, \ 329 .read = b43legacy_debugfs_read, \
|
/drivers/rtc/ |
H A D | rtc-pm8xxx.c | 38 * @read: base address of read register 41 * @alarm_rw: base address of alarm read-write register 47 unsigned int read; member in struct:pm8xxx_rtc_regs 164 rc = regmap_bulk_read(rtc_dd->regmap, regs->read, value, sizeof(value)); 166 dev_err(dev, "RTC read data register failed\n"); 172 * If there is, redo the read operation. 174 rc = regmap_read(rtc_dd->regmap, regs->read, ®); 176 dev_err(dev, "RTC read data register failed\n"); 181 rc = regmap_bulk_read(rtc_dd->regmap, regs->read, [all...] |
/drivers/s390/scsi/ |
H A D | zfcp_sysfs.c | 431 ZFCP_DEFINE_LATENCY_ATTR(read); variable
|
/drivers/staging/comedi/drivers/ |
H A D | ni_tiocmd.c | 53 bool enable, bool read) 64 if (read) 81 if (!read) 371 of gate interrupt via dma read/write 52 ni_tio_configure_dma(struct ni_gpct *counter, bool enable, bool read) argument
|
/drivers/tty/hvc/ |
H A D | hvsi_lib.c | 182 unsigned int tries, read = 0; local 202 memcpy(&buf[read], &pv->inbuf[pv->inbuf_cur], l); 206 read += l; 227 return read;
|
/drivers/uwb/i1480/dfu/ |
H A D | i1480-dfu.h | 34 * common operations (read, write, wait_init_done and cmd) and 47 * i1480->read() [i1480_{usb,pci}_read()] 86 * @read Read from device's memory to i1480->evt_buf. 117 int (*read)(struct i1480 *, u32 addr, size_t); member in struct:i1480
|
/drivers/block/rsxx/ |
H A D | cregs.c | 285 "Buffer not given for read.\n"); 435 * This read is needed to verify that there has not been any 439 * for the timeout. This is a dummy read. 457 int read) 464 op = read ? CREG_OP_READ : CREG_OP_WRITE; 669 int read) 671 unsigned int op = read ? CREG_OP_READ : CREG_OP_WRITE; 679 int read) 691 st = issue_reg_cmd(card, &cmd, read); 699 if (read) { 452 issue_creg_rw(struct rsxx_cardinfo *card, u32 addr, unsigned int size8, void *data, int stream, int read) argument 667 issue_reg_cmd(struct rsxx_cardinfo *card, struct rsxx_reg_access *cmd, int read) argument 677 rsxx_reg_access(struct rsxx_cardinfo *card, struct rsxx_reg_access __user *ucmd, int read) argument [all...] |
/drivers/gpu/drm/nouveau/core/include/subdev/ |
H A D | clock.h | 90 int (*read)(struct nouveau_clock *, enum nv_clk_src); member in struct:nouveau_clock
|
/drivers/iio/adc/ |
H A D | ti_am335x_adc.c | 154 int i, k, fifo1count, read; local 160 read = tiadc_readl(adc_dev, REG_FIFO1); 161 data[i] = read & FIFOREAD_DATA_MASK; 175 int i, fifo1count, read; local 184 read = tiadc_readl(adc_dev, REG_FIFO1); 214 int fifo1count, i, read; local 224 read = tiadc_readl(adc_dev, REG_FIFO1); 346 unsigned int fifo1count, read, stepid; local 383 * Therefore we read every item and keep only the latest version of the 387 read [all...] |
/drivers/input/touchscreen/ |
H A D | cyttsp_core.h | 41 #define CY_NUM_RETRY 16 /* max number of retries for read ops */ 117 int (*read)(struct device *dev, u8 *xfer_buf, u16 addr, u8 length, member in struct:cyttsp_bus_ops
|
H A D | ti_am335x_tsc.c | 209 unsigned int read, diff; local 225 read = titsc_readl(ts_dev, REG_FIFO0); 227 channel = (read & 0xf0000) >> 16; 228 read &= 0xfff; 230 diff = abs(read - prev_val_x); 233 *x = read; 235 prev_val_x = read; 238 diff = abs(read - prev_val_y); 241 *y = read; 243 prev_val_y = read; [all...] |
/drivers/isdn/gigaset/ |
H A D | isocdata.c | 26 iwb->read = 0; 40 int read, write, freebytes; local 42 read = iwb->read; 44 freebytes = read - write; 48 } else if (read < BAS_OUTBUFPAD) { 136 int read, write, limit, src, dst; local 139 read = iwb->nextread; 141 if (likely(read == write)) { 143 return read < BAS_OUTBUFPA [all...] |
/drivers/media/pci/bt8xx/ |
H A D | dst_ca.c | 90 static int dst_ci_command(struct dst_state* state, u8 * data, u8 *ca_string, u8 len, int read) argument 112 if (read) { 132 static int dst_put_ci(struct dst_state *state, u8 *data, int len, u8 *ca_string, int read) argument 138 if (dst_ci_command(state, data, ca_string, len, read)) { // If error 677 dprintk(verbose, DST_CA_DEBUG, 1, " Device read."); 694 .read = dst_ca_read,
|
/drivers/media/pci/cx23885/ |
H A D | cimax2.c | 112 ci_dbg_print("%s: i2c read error, Reg = 0x%02x, Status = %d\n", 118 ci_dbg_print("%s: i2c read Addr=0x%04x, Reg = 0x%02x, data = %02x\n", 178 u8 flag, u8 read, int addr, u8 data) 218 if (read) { /* data in */ 226 /* read/write */ 227 cx_clear(MC417_RWD, (read) ? NETUP_RD : NETUP_WR); 232 if (!read) 237 (read) ? "read" : "write", state->ci_i2c_addr, addr, 239 (read) 177 netup_ci_op_cam(struct dvb_ca_en50221 *en50221, int slot, u8 flag, u8 read, int addr, u8 data) argument [all...] |
/drivers/media/usb/b2c2/ |
H A D | flexcop-usb.c | 52 * where R is the read(1)/write(0) bit, B is the busy bit 62 * - forget about this VENDOR_BUFFER_SIZE, read and write register 69 static int flexcop_usb_readwrite_dw(struct flexcop_device *fc, u16 wRegOffsPCI, u32 *val, u8 read) argument 72 u8 request = read ? B2C2_USB_READ_REG : B2C2_USB_WRITE_REG; 73 u8 request_type = (read ? USB_DIR_IN : USB_DIR_OUT) | USB_TYPE_VENDOR; 75 (read ? 0x80 : 0); 78 read ? B2C2_USB_CTRL_PIPE_IN : B2C2_USB_CTRL_PIPE_OUT, 80 request_type, /* 0xc0 read or 0x40 write */ 88 err("error while %s dword from %d (%d).", read ? "reading" : 95 * DKT 010817 - add support for V8 memory read/writ [all...] |
/drivers/media/usb/stkwebcam/ |
H A D | stk-webcam.h | 47 int read; member in struct:stk_iso_buf
|