Lines Matching defs:read
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)
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);
79 if (!read)
83 read ? B2C2_USB_CTRL_PIPE_IN : B2C2_USB_CTRL_PIPE_OUT,
85 request_type, /* 0xc0 read or 0x40 write */
93 err("error while %s dword from %d (%d).", read ? "reading" :
99 if (read && ret >= 0)
106 * DKT 010817 - add support for V8 memory read/write and flash update