wbuf 194 arch/sparc/kernel/ptrace_64.c struct reg_window *wbuf) wbuf 205 arch/sparc/kernel/ptrace_64.c wbuf->locals[i] = win32.locals[i]; wbuf 207 arch/sparc/kernel/ptrace_64.c wbuf->ins[i] = win32.ins[i]; wbuf 210 arch/sparc/kernel/ptrace_64.c if (get_from_target(target, rw_addr, wbuf, sizeof(*wbuf))) wbuf 219 arch/sparc/kernel/ptrace_64.c struct reg_window *wbuf) wbuf 228 arch/sparc/kernel/ptrace_64.c win32.locals[i] = wbuf->locals[i]; wbuf 230 arch/sparc/kernel/ptrace_64.c win32.ins[i] = wbuf->ins[i]; wbuf 236 arch/sparc/kernel/ptrace_64.c if (set_to_target(target, rw_addr, wbuf, sizeof(*wbuf))) wbuf 76 drivers/gpu/drm/panel/panel-sony-acx565akm.c const u8 *wbuf, int wlen, u8 *rbuf, int rlen) wbuf 105 drivers/gpu/drm/panel/panel-sony-acx565akm.c x->tx_buf = wbuf; wbuf 136 drivers/i2c/busses/i2c-jz4780.c unsigned char *wbuf; wbuf 483 drivers/i2c/busses/i2c-jz4780.c data = *i2c->wbuf; wbuf 487 drivers/i2c/busses/i2c-jz4780.c i2c->wbuf++; wbuf 594 drivers/i2c/busses/i2c-jz4780.c i2c->wbuf = buf; wbuf 183 drivers/input/touchscreen/goodix.c __be16 wbuf = cpu_to_be16(reg); wbuf 189 drivers/input/touchscreen/goodix.c msgs[0].buf = (u8 *)&wbuf; wbuf 17 drivers/media/common/b2c2/flexcop-eeprom.c u32 len, u8 *wbuf, u8 *rbuf, int retries) wbuf 22 drivers/media/common/b2c2/flexcop-eeprom.c if (eeprom_write(adapter, addr, wbuf, len) == len) { wbuf 35 drivers/media/common/b2c2/flexcop-eeprom.c u8 wbuf[20]; wbuf 40 drivers/media/common/b2c2/flexcop-eeprom.c memcpy(wbuf, key, len); wbuf 41 drivers/media/common/b2c2/flexcop-eeprom.c wbuf[16] = 0; wbuf 42 drivers/media/common/b2c2/flexcop-eeprom.c wbuf[17] = 0; wbuf 43 drivers/media/common/b2c2/flexcop-eeprom.c wbuf[18] = 0; wbuf 44 drivers/media/common/b2c2/flexcop-eeprom.c wbuf[19] = calc_lrc(wbuf, 19); wbuf 45 drivers/media/common/b2c2/flexcop-eeprom.c return eeprom_lrc_write(adapter, 0x3e4, 20, wbuf, rbuf, 4); wbuf 986 drivers/media/dvb-frontends/af9033.c u8 wbuf[2] = {(pid >> 0) & 0xff, (pid >> 8) & 0xff}; wbuf 994 drivers/media/dvb-frontends/af9033.c ret = regmap_bulk_write(dev->regmap, 0x80f996, wbuf, 2); wbuf 59 drivers/media/dvb-frontends/cxd2099.c u8 wbuf[1028]; wbuf 167 drivers/media/dvb-frontends/cxd2099.c u8 *buf = ci->wbuf; wbuf 640 drivers/media/dvb-frontends/tc90522.c u8 wbuf[256]; wbuf 655 drivers/media/dvb-frontends/tc90522.c p = wbuf; wbuf 656 drivers/media/dvb-frontends/tc90522.c bufend = wbuf + sizeof(wbuf); wbuf 147 drivers/media/i2c/m5mols/m5mols_core.c u8 wbuf[5]; wbuf 156 drivers/media/i2c/m5mols/m5mols_core.c msg[0].buf = wbuf; wbuf 157 drivers/media/i2c/m5mols/m5mols_core.c wbuf[0] = 5; wbuf 158 drivers/media/i2c/m5mols/m5mols_core.c wbuf[1] = M5MOLS_BYTE_READ; wbuf 159 drivers/media/i2c/m5mols/m5mols_core.c wbuf[2] = category; wbuf 160 drivers/media/i2c/m5mols/m5mols_core.c wbuf[3] = cmd; wbuf 161 drivers/media/i2c/m5mols/m5mols_core.c wbuf[4] = size; wbuf 243 drivers/media/i2c/m5mols/m5mols_core.c u8 wbuf[M5MOLS_I2C_MAX_SIZE + 4]; wbuf 247 drivers/media/i2c/m5mols/m5mols_core.c u32 *buf = (u32 *)&wbuf[4]; wbuf 262 drivers/media/i2c/m5mols/m5mols_core.c msg->buf = wbuf; wbuf 263 drivers/media/i2c/m5mols/m5mols_core.c wbuf[0] = size + 4; wbuf 264 drivers/media/i2c/m5mols/m5mols_core.c wbuf[1] = M5MOLS_BYTE_WRITE; wbuf 265 drivers/media/i2c/m5mols/m5mols_core.c wbuf[2] = category; wbuf 266 drivers/media/i2c/m5mols/m5mols_core.c wbuf[3] = cmd; wbuf 143 drivers/media/i2c/s5c73m3/s5c73m3-core.c u8 rbuf[2], wbuf[2] = { addr >> 8, addr & 0xff }; wbuf 148 drivers/media/i2c/s5c73m3/s5c73m3-core.c .len = sizeof(wbuf), wbuf 149 drivers/media/i2c/s5c73m3/s5c73m3-core.c .buf = wbuf wbuf 203 drivers/media/i2c/s5k4ecgx.c u8 wbuf[2] = { addr >> 8, addr & 0xff }; wbuf 211 drivers/media/i2c/s5k4ecgx.c msg[0].buf = wbuf; wbuf 331 drivers/media/i2c/s5k6aa.c u8 wbuf[2] = {addr >> 8, addr & 0xFF}; wbuf 339 drivers/media/i2c/s5k6aa.c msg[0].buf = wbuf; wbuf 2592 drivers/media/pci/ddbridge/ddbridge-core.c static int flashio(struct ddb *dev, u32 lnr, u8 *wbuf, u32 wlen, u8 *rbuf, wbuf 2604 drivers/media/pci/ddbridge/ddbridge-core.c data = swab32(*(u32 *)wbuf); wbuf 2605 drivers/media/pci/ddbridge/ddbridge-core.c wbuf += 4; wbuf 2622 drivers/media/pci/ddbridge/ddbridge-core.c data |= *wbuf; wbuf 2624 drivers/media/pci/ddbridge/ddbridge-core.c wbuf++; wbuf 105 drivers/media/pci/ddbridge/ddbridge-i2c.c ddbcpyto(dev, i2c->wbuf, msg[0].buf, msg[0].len); wbuf 117 drivers/media/pci/ddbridge/ddbridge-i2c.c ddbcpyto(dev, i2c->wbuf, msg[0].buf, msg[0].len); wbuf 170 drivers/media/pci/ddbridge/ddbridge-i2c.c i2c->wbuf = DDB_LINK_TAG(link) | wbuf 172 drivers/media/pci/ddbridge/ddbridge-i2c.c i2c->rbuf = i2c->wbuf; /* + i2c->bsize / 2 */ wbuf 176 drivers/media/pci/ddbridge/ddbridge-i2c.c ddbwritel(dev, ((i2c->rbuf & 0xffff) << 16) | (i2c->wbuf & 0xffff), wbuf 34 drivers/media/pci/ddbridge/ddbridge-i2c.h u8 *wbuf, u32 wlen, u8 *rbuf, u32 rlen) wbuf 37 drivers/media/pci/ddbridge/ddbridge-i2c.h .buf = wbuf, .len = wlen }, wbuf 215 drivers/media/pci/ddbridge/ddbridge.h u32 wbuf; wbuf 45 drivers/media/pci/ngene/ngene-cards.c u8 *wbuf, u32 wlen, u8 *rbuf, u32 rlen) wbuf 48 drivers/media/pci/ngene/ngene-cards.c .buf = wbuf, .len = wlen }, wbuf 83 drivers/media/pci/ngene/ngene-dvb.c struct dvb_ringbuffer *wbuf = &dev->tsout_rbuf; wbuf 87 drivers/media/pci/ngene/ngene-dvb.c poll_wait(file, &wbuf->queue, wait); wbuf 91 drivers/media/pci/ngene/ngene-dvb.c if (dvb_ringbuffer_free(wbuf) >= 188) wbuf 202 drivers/media/pci/pt1/pt1.c u8 wbuf, rbuf; wbuf 204 drivers/media/pci/pt1/pt1.c wbuf = 0x07; wbuf 208 drivers/media/pci/pt1/pt1.c msg[0].buf = &wbuf; wbuf 1008 drivers/media/pci/saa7134/saa7134-dvb.c u8 wbuf[2] = { 0x1f, 00 }; wbuf 1010 drivers/media/pci/saa7134/saa7134-dvb.c struct i2c_msg msg[] = { { .addr = 0x08, .flags = 0, .buf = wbuf, .len = 1 }, wbuf 1017 drivers/media/pci/saa7134/saa7134-dvb.c wbuf[1] = rbuf | 0x10; wbuf 1019 drivers/media/pci/saa7134/saa7134-dvb.c wbuf[1] = rbuf & 0xef; wbuf 217 drivers/media/pci/ttpci/av7110_ca.c struct dvb_ringbuffer *wbuf = &av7110->ci_wbuffer; wbuf 223 drivers/media/pci/ttpci/av7110_ca.c poll_wait(file, &wbuf->queue, wait); wbuf 228 drivers/media/pci/ttpci/av7110_ca.c if (dvb_ringbuffer_free(wbuf) > 1024) wbuf 28 drivers/media/rc/ir-rx51.c int wbuf[WBUF_LEN]; wbuf 76 drivers/media/rc/ir-rx51.c if (ir_rx51->wbuf[ir_rx51->wbuf_index] == -1) wbuf 84 drivers/media/rc/ir-rx51.c ns = US_TO_NS(ir_rx51->wbuf[ir_rx51->wbuf_index]); wbuf 112 drivers/media/rc/ir-rx51.c memcpy(ir_rx51->wbuf, buffer, count * sizeof(unsigned int)); wbuf 119 drivers/media/rc/ir-rx51.c ir_rx51->wbuf[count] = -1; /* Insert termination mark */ wbuf 129 drivers/media/rc/ir-rx51.c ns_to_ktime(US_TO_NS(ir_rx51->wbuf[0])), wbuf 175 drivers/media/rc/nuvoton-cir.c const u8 *wbuf, int count) wbuf 203 drivers/media/rc/nuvoton-cir.c nvt_cir_wake_reg_write(nvt, wbuf[i], CIR_WAKE_WR_FIFO_DATA); wbuf 54 drivers/media/tuners/mxl301rf.c u8 wbuf[2] = { 0xfb, reg }; wbuf 57 drivers/media/tuners/mxl301rf.c ret = raw_write(state, wbuf, sizeof(wbuf)); wbuf 66 drivers/media/tuners/qm1d1c0042.c u8 wbuf[2] = { reg, val }; wbuf 69 drivers/media/tuners/qm1d1c0042.c ret = i2c_master_send(state->i2c, wbuf, sizeof(wbuf)); wbuf 70 drivers/media/tuners/qm1d1c0042.c if (ret >= 0 && ret < sizeof(wbuf)) wbuf 72 drivers/media/tuners/qm1d1c0042.c return (ret == sizeof(wbuf)) ? 0 : ret; wbuf 58 drivers/media/usb/dvb-usb-v2/af9035.c memcpy(&state->buf[REQ_HDR_LEN], req->wbuf, req->wlen); wbuf 117 drivers/media/usb/dvb-usb-v2/af9035.c u8 wbuf[MAX_XFER_SIZE]; wbuf 119 drivers/media/usb/dvb-usb-v2/af9035.c struct usb_req req = { CMD_MEM_WR, mbox, 6 + len, wbuf, 0, NULL }; wbuf 121 drivers/media/usb/dvb-usb-v2/af9035.c if (6 + len > sizeof(wbuf)) { wbuf 126 drivers/media/usb/dvb-usb-v2/af9035.c wbuf[0] = len; wbuf 127 drivers/media/usb/dvb-usb-v2/af9035.c wbuf[1] = 2; wbuf 128 drivers/media/usb/dvb-usb-v2/af9035.c wbuf[2] = 0; wbuf 129 drivers/media/usb/dvb-usb-v2/af9035.c wbuf[3] = 0; wbuf 130 drivers/media/usb/dvb-usb-v2/af9035.c wbuf[4] = (reg >> 8) & 0xff; wbuf 131 drivers/media/usb/dvb-usb-v2/af9035.c wbuf[5] = (reg >> 0) & 0xff; wbuf 132 drivers/media/usb/dvb-usb-v2/af9035.c memcpy(&wbuf[6], val, len); wbuf 140 drivers/media/usb/dvb-usb-v2/af9035.c u8 wbuf[] = { len, 2, 0, 0, (reg >> 8) & 0xff, reg & 0xff }; wbuf 142 drivers/media/usb/dvb-usb-v2/af9035.c struct usb_req req = { CMD_MEM_RD, mbox, sizeof(wbuf), wbuf, len, val }; wbuf 485 drivers/media/usb/dvb-usb-v2/af9035.c u8 wbuf[1] = { 1 }; wbuf 487 drivers/media/usb/dvb-usb-v2/af9035.c struct usb_req req = { CMD_FW_QUERYINFO, 0, sizeof(wbuf), wbuf, wbuf 594 drivers/media/usb/dvb-usb-v2/af9035.c u8 wbuf[1]; wbuf 596 drivers/media/usb/dvb-usb-v2/af9035.c struct usb_req req_fw_dl = { CMD_FW_DL, 0, 0, wbuf, 0, NULL }; wbuf 644 drivers/media/usb/dvb-usb-v2/af9035.c req_fw_dl.wbuf = (u8 *) &fw->data[fw->size - i + wbuf 701 drivers/media/usb/dvb-usb-v2/af9035.c req_fw_dl.wbuf = (u8 *) &fw->data[i_prev]; wbuf 725 drivers/media/usb/dvb-usb-v2/af9035.c u8 wbuf[1]; wbuf 729 drivers/media/usb/dvb-usb-v2/af9035.c struct usb_req req_fw_ver = { CMD_FW_QUERYINFO, 0, 1, wbuf, 4, rbuf }; wbuf 797 drivers/media/usb/dvb-usb-v2/af9035.c wbuf[0] = 1; wbuf 40 drivers/media/usb/dvb-usb-v2/af9035.h u8 *wbuf; wbuf 15 drivers/media/usb/dvb-usb-v2/au6610.c u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) wbuf 31 drivers/media/usb/dvb-usb-v2/au6610.c index = wbuf[0] << 8; wbuf 34 drivers/media/usb/dvb-usb-v2/au6610.c index = wbuf[0] << 8; wbuf 35 drivers/media/usb/dvb-usb-v2/au6610.c index += wbuf[1]; wbuf 67 drivers/media/usb/dvb-usb-v2/au6610.c u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) wbuf 78 drivers/media/usb/dvb-usb-v2/au6610.c return au6610_usb_msg(d, request, addr, wbuf, wlen, rbuf, rlen); wbuf 12 drivers/media/usb/dvb-usb-v2/dvb_usb_urb.c u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) wbuf 16 drivers/media/usb/dvb-usb-v2/dvb_usb_urb.c if (!wbuf || !wlen || !d->props->generic_bulk_ctrl_endpoint || wbuf 22 drivers/media/usb/dvb-usb-v2/dvb_usb_urb.c dev_dbg(&d->udev->dev, "%s: >>> %*ph\n", __func__, wlen, wbuf); wbuf 25 drivers/media/usb/dvb-usb-v2/dvb_usb_urb.c d->props->generic_bulk_ctrl_endpoint), wbuf, wlen, wbuf 61 drivers/media/usb/dvb-usb-v2/dvb_usb_urb.c u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) wbuf 66 drivers/media/usb/dvb-usb-v2/dvb_usb_urb.c ret = dvb_usb_v2_generic_io(d, wbuf, wlen, rbuf, rlen); wbuf 86 drivers/media/usb/dvb-usb-v2/dvb_usb_urb.c u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) wbuf 88 drivers/media/usb/dvb-usb-v2/dvb_usb_urb.c return dvb_usb_v2_generic_io(d, wbuf, wlen, rbuf, rlen); wbuf 41 drivers/media/usb/dvb-usb-v2/dvbsky.c u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) wbuf 48 drivers/media/usb/dvb-usb-v2/dvbsky.c memcpy(state->obuf, wbuf, wlen); wbuf 18 drivers/media/usb/dvb-usb-v2/gl861.c u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) wbuf 30 drivers/media/usb/dvb-usb-v2/gl861.c buf = kmemdup(wbuf, wlen, GFP_KERNEL); wbuf 41 drivers/media/usb/dvb-usb-v2/gl861.c index = wbuf[0]; wbuf 44 drivers/media/usb/dvb-usb-v2/gl861.c index = wbuf[0]; wbuf 45 drivers/media/usb/dvb-usb-v2/gl861.c value = value + wbuf[1]; wbuf 195 drivers/media/usb/dvb-usb-v2/gl861.c gl861_i2c_write_ex(struct dvb_usb_device *d, u8 addr, u8 *wbuf, u16 wlen) wbuf 200 drivers/media/usb/dvb-usb-v2/gl861.c buf = kmemdup(wbuf, wlen, GFP_KERNEL); wbuf 392 drivers/media/usb/dvb-usb-v2/gl861.c u8 wbuf[2], rbuf[2]; wbuf 404 drivers/media/usb/dvb-usb-v2/gl861.c wbuf[0] = 0x11; wbuf 405 drivers/media/usb/dvb-usb-v2/gl861.c wbuf[1] = 0x02; wbuf 406 drivers/media/usb/dvb-usb-v2/gl861.c ret = gl861_i2c_msg(d, 0x00, wbuf, 2, NULL, 0); wbuf 411 drivers/media/usb/dvb-usb-v2/gl861.c wbuf[0] = 0x11; wbuf 412 drivers/media/usb/dvb-usb-v2/gl861.c wbuf[1] = 0x00; wbuf 413 drivers/media/usb/dvb-usb-v2/gl861.c ret = gl861_i2c_msg(d, 0x00, wbuf, 2, NULL, 0); wbuf 423 drivers/media/usb/dvb-usb-v2/gl861.c wbuf[0] = 0x03; wbuf 424 drivers/media/usb/dvb-usb-v2/gl861.c wbuf[1] = 0x80; wbuf 425 drivers/media/usb/dvb-usb-v2/gl861.c ret = gl861_i2c_write_ex(d, 0x09, wbuf, 2); wbuf 438 drivers/media/usb/dvb-usb-v2/gl861.c ret = gl861_i2c_write_ex(d, 0x48, wbuf, 2); wbuf 449 drivers/media/usb/dvb-usb-v2/gl861.c wbuf[0] = 0x30; wbuf 450 drivers/media/usb/dvb-usb-v2/gl861.c wbuf[1] = 0x04; wbuf 451 drivers/media/usb/dvb-usb-v2/gl861.c ret = gl861_i2c_msg(d, 0x00, wbuf, 2, NULL, 0); wbuf 455 drivers/media/usb/dvb-usb-v2/gl861.c wbuf[0] = 0x00; wbuf 456 drivers/media/usb/dvb-usb-v2/gl861.c wbuf[1] = 0x01; wbuf 457 drivers/media/usb/dvb-usb-v2/gl861.c ret = gl861_i2c_msg(d, 0x00, wbuf, 2, NULL, 0); wbuf 461 drivers/media/usb/dvb-usb-v2/gl861.c wbuf[0] = 0x06; wbuf 462 drivers/media/usb/dvb-usb-v2/gl861.c wbuf[1] = 0x0f; wbuf 463 drivers/media/usb/dvb-usb-v2/gl861.c ret = gl861_i2c_msg(d, 0x00, wbuf, 2, NULL, 0); wbuf 141 drivers/media/usb/dvb-usb-v2/lmedm04.c u8 *wbuf, int wlen, u8 *rbuf, int rlen) wbuf 153 drivers/media/usb/dvb-usb-v2/lmedm04.c memcpy(st->usb_buffer, wbuf, wlen); wbuf 472 drivers/media/usb/dvb-usb-v2/lmedm04.c u8 *wbuf, int wlen, u8 *rbuf, int rlen) wbuf 478 drivers/media/usb/dvb-usb-v2/lmedm04.c return lme2510_usb_talk(d, wbuf, wlen, rbuf, rlen); wbuf 53 drivers/media/usb/dvb-usb-v2/mxl111sf.c u8 cmd, u8 *wbuf, int wlen, u8 *rbuf, int rlen) wbuf 71 drivers/media/usb/dvb-usb-v2/mxl111sf.c memcpy(&state->sndbuf[1], wbuf, wlen); wbuf 121 drivers/media/usb/dvb-usb-v2/mxl111sf.h u8 cmd, u8 *wbuf, int wlen, u8 *rbuf, int rlen); wbuf 25 drivers/media/usb/dvb-usb-v2/zd1301.c static int zd1301_ctrl_msg(struct dvb_usb_device *d, const u8 *wbuf, wbuf 34 drivers/media/usb/dvb-usb-v2/zd1301.c memcpy(&dev->buf, wbuf, wlen); wbuf 448 drivers/media/usb/dvb-usb/af9005.c int af9005_send_command(struct dvb_usb_device *d, u8 command, u8 * wbuf, wbuf 481 drivers/media/usb/dvb-usb/af9005.c st->data[7 + i] = wbuf[i]; wbuf 3469 drivers/media/usb/dvb-usb/af9005.h u8 * wbuf, int wlen, u8 * rbuf, int rlen); wbuf 87 drivers/media/usb/dvb-usb/cxusb.c u8 cmd, const u8 *wbuf, int wlen, u8 *rbuf, int rlen) wbuf 104 drivers/media/usb/dvb-usb/cxusb.c memcpy(&st->data[1], wbuf, wlen); wbuf 178 drivers/media/usb/dvb-usb/cxusb.h u8 cmd, const u8 *wbuf, int wlen, u8 *rbuf, int rlen); wbuf 138 drivers/media/usb/dvb-usb/dibusb-common.c u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) wbuf 161 drivers/media/usb/dvb-usb/dibusb-common.c memcpy(&sndbuf[2], wbuf, wlen); wbuf 26 drivers/media/usb/dvb-usb/digitv.c u8 cmd, u8 vv, u8 *wbuf, int wlen, u8 *rbuf, int rlen) wbuf 44 drivers/media/usb/dvb-usb/digitv.c memcpy(&st->sndbuf[3], wbuf, wlen); wbuf 26 drivers/media/usb/dvb-usb/dtv5100.c u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) wbuf 47 drivers/media/usb/dvb-usb/dtv5100.c value = wbuf[1]; wbuf 53 drivers/media/usb/dvb-usb/dtv5100.c index = (addr << 8) + wbuf[0]; wbuf 12 drivers/media/usb/dvb-usb/dvb-usb-urb.c int dvb_usb_generic_rw(struct dvb_usb_device *d, u8 *wbuf, u16 wlen, u8 *rbuf, wbuf 17 drivers/media/usb/dvb-usb/dvb-usb-urb.c if (!d || wbuf == NULL || wlen == 0) wbuf 29 drivers/media/usb/dvb-usb/dvb-usb-urb.c debug_dump(wbuf,wlen,deb_xfer); wbuf 32 drivers/media/usb/dvb-usb/dvb-usb-urb.c d->props.generic_bulk_ctrl_endpoint), wbuf,wlen,&actlen, wbuf 72 drivers/media/usb/dvb-usb/ttusb2.c u8 *wbuf, int wlen, u8 *rbuf, int rlen) wbuf 95 drivers/media/usb/dvb-usb/ttusb2.c memcpy(&s[4],wbuf,wlen); wbuf 286 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c u8 wbuf[2]; wbuf 330 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c wbuf[0] = subaddr >> 8; wbuf 331 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c wbuf[1] = subaddr; wbuf 332 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c ret = pvr2_i2c_basic_op(hdw,i2c_addr,wbuf,2,rdata,rlen); wbuf 1728 drivers/mtd/nand/onenand/onenand_base.c u_char *wbuf = (u_char *) buf; wbuf 1737 drivers/mtd/nand/onenand/onenand_base.c wbuf = this->page_buf; wbuf 1740 drivers/mtd/nand/onenand/onenand_base.c this->write_bufferram(mtd, ONENAND_DATARAM, wbuf, 0, mtd->writesize); wbuf 1829 drivers/mtd/nand/onenand/onenand_base.c u_char *wbuf = (u_char *) buf; wbuf 1843 drivers/mtd/nand/onenand/onenand_base.c wbuf = this->page_buf; wbuf 1846 drivers/mtd/nand/onenand/onenand_base.c this->write_bufferram(mtd, ONENAND_DATARAM, wbuf, 0, mtd->writesize); wbuf 4009 drivers/mtd/nand/raw/nand_base.c uint8_t *wbuf = buf; wbuf 4028 drivers/mtd/nand/raw/nand_base.c wbuf = nand_get_data_buf(chip); wbuf 4029 drivers/mtd/nand/raw/nand_base.c memset(wbuf, 0xff, mtd->writesize); wbuf 4030 drivers/mtd/nand/raw/nand_base.c memcpy(&wbuf[column], buf, bytes); wbuf 4042 drivers/mtd/nand/raw/nand_base.c ret = nand_write_page(chip, column, bytes, wbuf, wbuf 1695 drivers/net/ethernet/smsc/smc91x.c u16 wbuf; wbuf 1699 drivers/net/ethernet/smsc/smc91x.c ret = smc_read_eeprom_word(dev, offset >> 1, &wbuf); wbuf 1702 drivers/net/ethernet/smsc/smc91x.c DBG(2, dev, "Read 0x%x from 0x%x\n", wbuf, offset >> 1); wbuf 1703 drivers/net/ethernet/smsc/smc91x.c data[i] = (wbuf >> 8) & 0xff; wbuf 1704 drivers/net/ethernet/smsc/smc91x.c data[i+1] = wbuf & 0xff; wbuf 1720 drivers/net/ethernet/smsc/smc91x.c u16 wbuf; wbuf 1724 drivers/net/ethernet/smsc/smc91x.c wbuf = (data[i] << 8) | data[i + 1]; wbuf 1725 drivers/net/ethernet/smsc/smc91x.c DBG(2, dev, "Writing 0x%x to 0x%x\n", wbuf, offset >> 1); wbuf 1726 drivers/net/ethernet/smsc/smc91x.c ret = smc_write_eeprom_word(dev, offset >> 1, wbuf); wbuf 443 drivers/platform/x86/intel_pmc_ipc.c u32 wbuf[4] = { 0 }; wbuf 455 drivers/platform/x86/intel_pmc_ipc.c memcpy(wbuf, in, inlen); wbuf 460 drivers/platform/x86/intel_pmc_ipc.c ipc_data_writel(wbuf[i], 4 * i); wbuf 214 drivers/platform/x86/intel_scu_ipc.c u32 *wbuf = (u32 *)&cbuf; wbuf 232 drivers/platform/x86/intel_scu_ipc.c ipc_data_writel(scu, wbuf[nc], offset); wbuf 238 drivers/platform/x86/intel_scu_ipc.c ipc_data_writel(scu, wbuf[nc], offset); wbuf 243 drivers/platform/x86/intel_scu_ipc.c ipc_data_writel(scu, wbuf[0], 0); /* Write wbuff */ wbuf 556 drivers/s390/char/raw3270.c static const unsigned char wbuf[] = wbuf 562 drivers/s390/char/raw3270.c memcpy(&rp->init_data, wbuf, sizeof(wbuf)); wbuf 565 drivers/s390/char/raw3270.c rp->init_readpart.ccw.count = sizeof(wbuf); wbuf 8876 drivers/scsi/advansys.c ushort *wbuf; wbuf 8882 drivers/scsi/advansys.c wbuf = (ushort *)cfg_buf; wbuf 8885 drivers/scsi/advansys.c for (s_addr = 0; s_addr < 2; s_addr++, wbuf++) { wbuf 8886 drivers/scsi/advansys.c *wbuf = AscReadEEPWord(iop_base, (uchar)s_addr); wbuf 8887 drivers/scsi/advansys.c sum += *wbuf; wbuf 8896 drivers/scsi/advansys.c for (s_addr = cfg_beg; s_addr <= (cfg_end - 1); s_addr++, wbuf++) { wbuf 8903 drivers/scsi/advansys.c *wbuf = le16_to_cpu(wval); wbuf 8906 drivers/scsi/advansys.c *wbuf = wval; wbuf 8914 drivers/scsi/advansys.c *wbuf = AscReadEEPWord(iop_base, (uchar)s_addr); wbuf 8988 drivers/scsi/advansys.c ushort *wbuf; wbuf 8996 drivers/scsi/advansys.c wbuf = (ushort *)cfg_buf; wbuf 9000 drivers/scsi/advansys.c for (s_addr = 0; s_addr < 2; s_addr++, wbuf++) { wbuf 9001 drivers/scsi/advansys.c sum += *wbuf; wbuf 9002 drivers/scsi/advansys.c if (*wbuf != AscWriteEEPWord(iop_base, (uchar)s_addr, *wbuf)) { wbuf 9013 drivers/scsi/advansys.c for (s_addr = cfg_beg; s_addr <= (cfg_end - 1); s_addr++, wbuf++) { wbuf 9019 drivers/scsi/advansys.c word = cpu_to_le16(*wbuf); wbuf 9026 drivers/scsi/advansys.c if (*wbuf != wbuf 9027 drivers/scsi/advansys.c AscWriteEEPWord(iop_base, (uchar)s_addr, *wbuf)) { wbuf 9031 drivers/scsi/advansys.c sum += *wbuf; /* Checksum calculated from word values. */ wbuf 9034 drivers/scsi/advansys.c *wbuf = sum; wbuf 9040 drivers/scsi/advansys.c wbuf = (ushort *)cfg_buf; wbuf 9044 drivers/scsi/advansys.c for (s_addr = 0; s_addr < 2; s_addr++, wbuf++) { wbuf 9045 drivers/scsi/advansys.c if (*wbuf != AscReadEEPWord(iop_base, (uchar)s_addr)) { wbuf 9056 drivers/scsi/advansys.c for (s_addr = cfg_beg; s_addr <= (cfg_end - 1); s_addr++, wbuf++) { wbuf 9069 drivers/scsi/advansys.c if (*wbuf != word) { wbuf 9805 drivers/scsi/advansys.c ushort *wbuf; wbuf 9809 drivers/scsi/advansys.c wbuf = (ushort *)cfg_buf; wbuf 9820 drivers/scsi/advansys.c addr < ADV_EEP_DVC_CFG_END; addr++, wbuf++) { wbuf 9824 drivers/scsi/advansys.c word = cpu_to_le16(*wbuf); wbuf 9826 drivers/scsi/advansys.c word = *wbuf; wbuf 9828 drivers/scsi/advansys.c chksum += *wbuf; /* Checksum is calculated from word values. */ wbuf 9842 drivers/scsi/advansys.c wbuf++; wbuf 9849 drivers/scsi/advansys.c addr < ADV_EEP_MAX_WORD_ADDR; addr++, wbuf++) { wbuf 9853 drivers/scsi/advansys.c word = cpu_to_le16(*wbuf); wbuf 9855 drivers/scsi/advansys.c word = *wbuf; wbuf 9872 drivers/scsi/advansys.c ushort *wbuf; wbuf 9876 drivers/scsi/advansys.c wbuf = (ushort *)cfg_buf; wbuf 9887 drivers/scsi/advansys.c addr < ADV_EEP_DVC_CFG_END; addr++, wbuf++) { wbuf 9891 drivers/scsi/advansys.c word = cpu_to_le16(*wbuf); wbuf 9893 drivers/scsi/advansys.c word = *wbuf; wbuf 9895 drivers/scsi/advansys.c chksum += *wbuf; /* Checksum is calculated from word values. */ wbuf 9909 drivers/scsi/advansys.c wbuf++; wbuf 9916 drivers/scsi/advansys.c addr < ADV_EEP_MAX_WORD_ADDR; addr++, wbuf++) { wbuf 9920 drivers/scsi/advansys.c word = cpu_to_le16(*wbuf); wbuf 9922 drivers/scsi/advansys.c word = *wbuf; wbuf 9939 drivers/scsi/advansys.c ushort *wbuf; wbuf 9943 drivers/scsi/advansys.c wbuf = (ushort *)cfg_buf; wbuf 9954 drivers/scsi/advansys.c addr < ADV_EEP_DVC_CFG_END; addr++, wbuf++) { wbuf 9958 drivers/scsi/advansys.c word = cpu_to_le16(*wbuf); wbuf 9960 drivers/scsi/advansys.c word = *wbuf; wbuf 9962 drivers/scsi/advansys.c chksum += *wbuf; /* Checksum is calculated from word values. */ wbuf 9976 drivers/scsi/advansys.c wbuf++; wbuf 9983 drivers/scsi/advansys.c addr < ADV_EEP_MAX_WORD_ADDR; addr++, wbuf++) { wbuf 9987 drivers/scsi/advansys.c word = cpu_to_le16(*wbuf); wbuf 9989 drivers/scsi/advansys.c word = *wbuf; wbuf 10009 drivers/scsi/advansys.c ushort *wbuf; wbuf 10014 drivers/scsi/advansys.c wbuf = (ushort *)cfg_buf; wbuf 10018 drivers/scsi/advansys.c eep_addr < ADV_EEP_DVC_CFG_END; eep_addr++, wbuf++) { wbuf 10022 drivers/scsi/advansys.c *wbuf = le16_to_cpu(wval); wbuf 10024 drivers/scsi/advansys.c *wbuf = wval; wbuf 10028 drivers/scsi/advansys.c *wbuf = AdvReadEEPWord(iop_base, eep_addr); wbuf 10029 drivers/scsi/advansys.c wbuf++; wbuf 10034 drivers/scsi/advansys.c eep_addr < ADV_EEP_MAX_WORD_ADDR; eep_addr++, wbuf++) { wbuf 10035 drivers/scsi/advansys.c *wbuf = AdvReadEEPWord(iop_base, eep_addr); wbuf 10037 drivers/scsi/advansys.c *wbuf = le16_to_cpu(*wbuf); wbuf 10052 drivers/scsi/advansys.c ushort *wbuf; wbuf 10057 drivers/scsi/advansys.c wbuf = (ushort *)cfg_buf; wbuf 10061 drivers/scsi/advansys.c eep_addr < ADV_EEP_DVC_CFG_END; eep_addr++, wbuf++) { wbuf 10065 drivers/scsi/advansys.c *wbuf = le16_to_cpu(wval); wbuf 10067 drivers/scsi/advansys.c *wbuf = wval; wbuf 10071 drivers/scsi/advansys.c *wbuf = AdvReadEEPWord(iop_base, eep_addr); wbuf 10072 drivers/scsi/advansys.c wbuf++; wbuf 10077 drivers/scsi/advansys.c eep_addr < ADV_EEP_MAX_WORD_ADDR; eep_addr++, wbuf++) { wbuf 10078 drivers/scsi/advansys.c *wbuf = AdvReadEEPWord(iop_base, eep_addr); wbuf 10080 drivers/scsi/advansys.c *wbuf = le16_to_cpu(*wbuf); wbuf 10095 drivers/scsi/advansys.c ushort *wbuf; wbuf 10100 drivers/scsi/advansys.c wbuf = (ushort *)cfg_buf; wbuf 10104 drivers/scsi/advansys.c eep_addr < ADV_EEP_DVC_CFG_END; eep_addr++, wbuf++) { wbuf 10108 drivers/scsi/advansys.c *wbuf = le16_to_cpu(wval); wbuf 10110 drivers/scsi/advansys.c *wbuf = wval; wbuf 10114 drivers/scsi/advansys.c *wbuf = AdvReadEEPWord(iop_base, eep_addr); wbuf 10115 drivers/scsi/advansys.c wbuf++; wbuf 10120 drivers/scsi/advansys.c eep_addr < ADV_EEP_MAX_WORD_ADDR; eep_addr++, wbuf++) { wbuf 10121 drivers/scsi/advansys.c *wbuf = AdvReadEEPWord(iop_base, eep_addr); wbuf 10123 drivers/scsi/advansys.c *wbuf = le16_to_cpu(*wbuf); wbuf 193 drivers/slimbus/messaging.c if (msg->wbuf != NULL) wbuf 199 drivers/slimbus/messaging.c if (msg->rbuf != NULL && msg->wbuf != NULL) wbuf 273 drivers/slimbus/messaging.c size_t count, u8 *rbuf, u8 *wbuf) wbuf 278 drivers/slimbus/messaging.c msg->wbuf = wbuf; wbuf 373 drivers/slimbus/qcom-ctrl.c if (txn->msg && txn->msg->wbuf) wbuf 374 drivers/slimbus/qcom-ctrl.c memcpy(puc, txn->msg->wbuf, txn->msg->num_bytes); wbuf 411 drivers/slimbus/qcom-ctrl.c msg.wbuf = (void *)&p; wbuf 773 drivers/slimbus/qcom-ngd-ctrl.c u8 wbuf[SLIM_MSGQ_BUF_LEN]; wbuf 821 drivers/slimbus/qcom-ngd-ctrl.c wbuf[i++] = txn->la; wbuf 823 drivers/slimbus/qcom-ngd-ctrl.c wbuf[i++] = txn->msg->wbuf[0]; wbuf 825 drivers/slimbus/qcom-ngd-ctrl.c wbuf[i++] = txn->msg->wbuf[1]; wbuf 834 drivers/slimbus/qcom-ngd-ctrl.c wbuf[i++] = txn->tid; wbuf 837 drivers/slimbus/qcom-ngd-ctrl.c txn->msg->wbuf = wbuf; wbuf 864 drivers/slimbus/qcom-ngd-ctrl.c if (txn->msg && txn->msg->wbuf) wbuf 865 drivers/slimbus/qcom-ngd-ctrl.c memcpy(puc, txn->msg->wbuf, txn->msg->num_bytes); wbuf 918 drivers/slimbus/qcom-ngd-ctrl.c u8 wbuf[SLIM_MSGQ_BUF_LEN]; wbuf 929 drivers/slimbus/qcom-ngd-ctrl.c txn.msg->wbuf = wbuf; wbuf 939 drivers/slimbus/qcom-ngd-ctrl.c wbuf[txn.msg->num_bytes++] = sdev->laddr; wbuf 940 drivers/slimbus/qcom-ngd-ctrl.c wbuf[txn.msg->num_bytes] = rt->bps >> 2 | wbuf 946 drivers/slimbus/qcom-ngd-ctrl.c wbuf[txn.msg->num_bytes] |= BIT(5); wbuf 949 drivers/slimbus/qcom-ngd-ctrl.c wbuf[txn.msg->num_bytes++] = exp << 4 | rt->prot; wbuf 952 drivers/slimbus/qcom-ngd-ctrl.c wbuf[txn.msg->num_bytes++] = wbuf 956 drivers/slimbus/qcom-ngd-ctrl.c wbuf[txn.msg->num_bytes++] = port->ch.prrate; wbuf 963 drivers/slimbus/qcom-ngd-ctrl.c wbuf[txn.msg->num_bytes++] = txn.tid; wbuf 965 drivers/slimbus/qcom-ngd-ctrl.c wbuf[txn.msg->num_bytes++] = port->ch.id; wbuf 980 drivers/slimbus/qcom-ngd-ctrl.c wbuf[1] = sdev->laddr; wbuf 989 drivers/slimbus/qcom-ngd-ctrl.c wbuf[0] = txn.tid; wbuf 1006 drivers/slimbus/qcom-ngd-ctrl.c u8 wbuf[10] = {0}; wbuf 1019 drivers/slimbus/qcom-ngd-ctrl.c txn.msg->wbuf = wbuf; wbuf 1026 drivers/slimbus/qcom-ngd-ctrl.c wbuf[0] = (u8)txn.tid; wbuf 1027 drivers/slimbus/qcom-ngd-ctrl.c memcpy(&wbuf[1], ea, sizeof(*ea)); wbuf 1155 drivers/slimbus/qcom-ngd-ctrl.c u8 wbuf[8]; wbuf 1164 drivers/slimbus/qcom-ngd-ctrl.c wbuf[0] = SAT_MAGIC_LSB; wbuf 1165 drivers/slimbus/qcom-ngd-ctrl.c wbuf[1] = SAT_MAGIC_MSB; wbuf 1166 drivers/slimbus/qcom-ngd-ctrl.c wbuf[2] = SAT_MSG_VER; wbuf 1167 drivers/slimbus/qcom-ngd-ctrl.c wbuf[3] = SAT_MSG_PROT; wbuf 1169 drivers/slimbus/qcom-ngd-ctrl.c txn.msg->wbuf = wbuf; wbuf 99 drivers/slimbus/sched.c msg.wbuf = &restart; wbuf 107 drivers/slimbus/sched.c msg.wbuf = NULL; wbuf 127 drivers/slimbus/stream.c u8 wbuf[2]; wbuf 128 drivers/slimbus/stream.c struct slim_val_inf msg = {0, 2, NULL, wbuf, NULL}; wbuf 135 drivers/slimbus/stream.c wbuf[0] = port->id; wbuf 136 drivers/slimbus/stream.c wbuf[1] = port->ch.id; wbuf 147 drivers/slimbus/stream.c u8 wbuf[1]; wbuf 148 drivers/slimbus/stream.c struct slim_val_inf msg = {0, 1, NULL, wbuf, NULL}; wbuf 152 drivers/slimbus/stream.c wbuf[0] = port->id; wbuf 163 drivers/slimbus/stream.c u8 wbuf[1]; wbuf 164 drivers/slimbus/stream.c struct slim_val_inf msg = {0, 1, NULL, wbuf, NULL}; wbuf 169 drivers/slimbus/stream.c wbuf[0] = port->ch.id; wbuf 267 drivers/slimbus/stream.c u8 wbuf[4]; wbuf 268 drivers/slimbus/stream.c struct slim_val_inf msg = {0, 4, NULL, wbuf, NULL}; wbuf 272 drivers/slimbus/stream.c wbuf[0] = port->ch.id; wbuf 273 drivers/slimbus/stream.c wbuf[1] = port->ch.prrate; wbuf 277 drivers/slimbus/stream.c wbuf[1] |= SLIM_CHANNEL_CONTENT_FL; wbuf 279 drivers/slimbus/stream.c wbuf[2] = port->ch.data_fmt | (port->ch.aux_fmt << 4); wbuf 280 drivers/slimbus/stream.c wbuf[3] = stream->bps/SLIM_SLOT_LEN_BITS; wbuf 302 drivers/slimbus/stream.c u8 wbuf[4]; wbuf 303 drivers/slimbus/stream.c struct slim_val_inf msg = {0, 4, NULL, wbuf, NULL}; wbuf 309 drivers/slimbus/stream.c wbuf[0] = port->ch.id; wbuf 310 drivers/slimbus/stream.c wbuf[1] = port->ch.seg_dist & 0xFF; wbuf 311 drivers/slimbus/stream.c wbuf[2] = (stream->prot << 4) | ((port->ch.seg_dist & 0xF00) >> 8); wbuf 313 drivers/slimbus/stream.c wbuf[3] = stream->bps/SLIM_SLOT_LEN_BITS; wbuf 315 drivers/slimbus/stream.c wbuf[3] = stream->bps/SLIM_SLOT_LEN_BITS + 1; wbuf 326 drivers/slimbus/stream.c u8 wbuf[1]; wbuf 327 drivers/slimbus/stream.c struct slim_val_inf msg = {0, 1, NULL, wbuf, NULL}; wbuf 332 drivers/slimbus/stream.c txn.msg->wbuf = wbuf; wbuf 333 drivers/slimbus/stream.c wbuf[0] = port->ch.id; wbuf 65 drivers/soundwire/stream.c u16 wbuf; wbuf 102 drivers/soundwire/stream.c wbuf = (t_params->sample_interval - 1); wbuf 103 drivers/soundwire/stream.c wbuf &= SDW_DPN_SAMPLECTRL_HIGH; wbuf 104 drivers/soundwire/stream.c wbuf >>= SDW_REG_SHIFT(SDW_DPN_SAMPLECTRL_HIGH); wbuf 106 drivers/soundwire/stream.c ret = sdw_write(slave, addr3, wbuf); wbuf 113 drivers/soundwire/stream.c wbuf = t_params->hstart; wbuf 114 drivers/soundwire/stream.c wbuf <<= SDW_REG_SHIFT(SDW_DPN_HCTRL_HSTART); wbuf 115 drivers/soundwire/stream.c wbuf |= t_params->hstop; wbuf 117 drivers/soundwire/stream.c ret = sdw_write(slave, addr4, wbuf); wbuf 134 drivers/soundwire/stream.c u8 wbuf; wbuf 159 drivers/soundwire/stream.c wbuf = p_params->data_mode << SDW_REG_SHIFT(SDW_DPN_PORTCTRL_DATAMODE); wbuf 160 drivers/soundwire/stream.c wbuf |= p_params->flow_mode; wbuf 162 drivers/soundwire/stream.c ret = sdw_update(s_rt->slave, addr1, 0xF, wbuf); wbuf 180 drivers/soundwire/stream.c wbuf = (t_params->sample_interval - 1) & SDW_DPN_SAMPLECTRL_LOW; wbuf 181 drivers/soundwire/stream.c ret = sdw_write(s_rt->slave, addr3, wbuf); wbuf 645 drivers/soundwire/stream.c u8 *wbuf; wbuf 655 drivers/soundwire/stream.c wbuf = kzalloc(sizeof(*wbuf), GFP_KERNEL); wbuf 656 drivers/soundwire/stream.c if (!wbuf) { wbuf 664 drivers/soundwire/stream.c wbuf[0] = col_index | (row_index << 3); wbuf 672 drivers/soundwire/stream.c SDW_MSG_FLAG_WRITE, wbuf); wbuf 693 drivers/soundwire/stream.c kfree(wbuf); wbuf 702 drivers/soundwire/stream.c kfree(wbuf); wbuf 615 drivers/usb/atm/cxacru.c u8 *wbuf = instance->snd_buf; wbuf 640 drivers/usb/atm/cxacru.c memset(wbuf, 0, wbuflen); wbuf 642 drivers/usb/atm/cxacru.c wbuf[0] = cm; wbuf 644 drivers/usb/atm/cxacru.c wbuf[offb] = cm; wbuf 645 drivers/usb/atm/cxacru.c memcpy(wbuf + offb + 4, wdata + offd, min_t(int, stride, wsize - offd)); wbuf 350 drivers/usb/misc/usb251xb.c char wbuf[USB251XB_I2C_WRITE_SZ + 1]; wbuf 355 drivers/usb/misc/usb251xb.c wbuf[0] = USB251XB_I2C_WRITE_SZ; wbuf 356 drivers/usb/misc/usb251xb.c memcpy(&wbuf[1], &i2c_wb[offset], USB251XB_I2C_WRITE_SZ); wbuf 363 drivers/usb/misc/usb251xb.c wbuf); wbuf 191 drivers/video/backlight/ams369fg06.c const unsigned short *wbuf) wbuf 195 drivers/video/backlight/ams369fg06.c while ((wbuf[i] & DEFMASK) != ENDDEF) { wbuf 196 drivers/video/backlight/ams369fg06.c if ((wbuf[i] & DEFMASK) != SLEEPMSEC) { wbuf 197 drivers/video/backlight/ams369fg06.c ret = ams369fg06_spi_write(lcd, wbuf[i], wbuf[i+1]); wbuf 201 drivers/video/backlight/ams369fg06.c msleep(wbuf[i+1]); wbuf 137 drivers/video/backlight/lms501kf03.c const unsigned char *wbuf, wbuf 144 drivers/video/backlight/lms501kf03.c ret = lms501kf03_spi_write(lcd, COMMAND_ONLY, wbuf[i]); wbuf 146 drivers/video/backlight/lms501kf03.c ret = lms501kf03_spi_write(lcd, DATA_ONLY, wbuf[i]); wbuf 54 drivers/video/fbdev/omap/lcd_mipid.c static void mipid_transfer(struct mipid_device *md, int cmd, const u8 *wbuf, wbuf 77 drivers/video/fbdev/omap/lcd_mipid.c x->tx_buf = wbuf; wbuf 340 drivers/video/fbdev/omap/lcd_mipid.c u16 wbuf[3]; wbuf 353 drivers/video/fbdev/omap/lcd_mipid.c mipid_write(md, rd->cmd, (u8 *)rd->wbuf, rd->wlen); wbuf 361 drivers/video/fbdev/omap/lcd_mipid.c mipid_write(md, rd->cmd, (u8 *)rd->wbuf, rd->wlen); wbuf 106 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c const u8 *wbuf, int wlen, u8 *rbuf, int rlen) wbuf 137 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c x->tx_buf = wbuf; wbuf 361 fs/jbd2/commit.c struct buffer_head **wbuf = journal->j_wbuf; wbuf 624 fs/jbd2/commit.c wbuf[bufs++] = descriptor; wbuf 662 fs/jbd2/commit.c jh, &wbuf[bufs], blocknr); wbuf 667 fs/jbd2/commit.c jbd2_file_log_bh(&io_bufs, wbuf[bufs]); wbuf 681 fs/jbd2/commit.c jbd2_block_tag_csum_set(journal, tag, wbuf[bufs], wbuf 714 fs/jbd2/commit.c struct buffer_head *bh = wbuf[i]; wbuf 130 fs/jffs2/jffs2_fs_sb.h unsigned char *wbuf; /* Write-behind buffer for NAND flash */ wbuf 103 fs/jffs2/os-linux.h #define jffs2_is_writebuffered(c) (c->wbuf != NULL) wbuf 260 fs/jffs2/wbuf.c c->wbuf, c->wbuf_pagesize, 0); wbuf 382 fs/jffs2/wbuf.c memcpy(buf + (c->wbuf_ofs - start), c->wbuf, end - c->wbuf_ofs); wbuf 414 fs/jffs2/wbuf.c unsigned char *rewrite_buf = buf?:c->wbuf; wbuf 446 fs/jffs2/wbuf.c memmove(c->wbuf, rewrite_buf + towrite, c->wbuf_len); wbuf 451 fs/jffs2/wbuf.c memcpy(c->wbuf, buf, end-start); wbuf 453 fs/jffs2/wbuf.c memmove(c->wbuf, c->wbuf + (start - c->wbuf_ofs), end - start); wbuf 518 fs/jffs2/wbuf.c (void *)(buf?:c->wbuf) + (ref_offset(raw) - start)); wbuf 614 fs/jffs2/wbuf.c memset(c->wbuf + c->wbuf_len, 0, c->wbuf_pagesize - c->wbuf_len); wbuf 617 fs/jffs2/wbuf.c struct jffs2_unknown_node *padnode = (void *)(c->wbuf + c->wbuf_len); wbuf 639 fs/jffs2/wbuf.c &retlen, c->wbuf); wbuf 649 fs/jffs2/wbuf.c } else if ((ret = jffs2_verify_write(c, c->wbuf, c->wbuf_ofs))) { wbuf 691 fs/jffs2/wbuf.c memset(c->wbuf,0xff,c->wbuf_pagesize); wbuf 710 fs/jffs2/wbuf.c if (!c->wbuf) wbuf 768 fs/jffs2/wbuf.c if (!c->wbuf) wbuf 789 fs/jffs2/wbuf.c memcpy(c->wbuf + c->wbuf_len, buf, len); wbuf 813 fs/jffs2/wbuf.c memset(c->wbuf,0xff,c->wbuf_pagesize); wbuf 1010 fs/jffs2/wbuf.c memcpy(buf+orbf,c->wbuf+owbf,lwbf); wbuf 1207 fs/jffs2/wbuf.c c->wbuf = kmalloc(c->wbuf_pagesize, GFP_KERNEL); wbuf 1208 fs/jffs2/wbuf.c if (!c->wbuf) wbuf 1213 fs/jffs2/wbuf.c kfree(c->wbuf); wbuf 1221 fs/jffs2/wbuf.c kfree(c->wbuf); wbuf 1233 fs/jffs2/wbuf.c kfree(c->wbuf); wbuf 1268 fs/jffs2/wbuf.c c->wbuf = kmalloc(c->wbuf_pagesize, GFP_KERNEL); wbuf 1269 fs/jffs2/wbuf.c if (!c->wbuf) wbuf 1275 fs/jffs2/wbuf.c kfree(c->wbuf); wbuf 1290 fs/jffs2/wbuf.c kfree(c->wbuf); wbuf 1305 fs/jffs2/wbuf.c c->wbuf = kmalloc(c->wbuf_pagesize, GFP_KERNEL); wbuf 1306 fs/jffs2/wbuf.c if (!c->wbuf) wbuf 1312 fs/jffs2/wbuf.c kfree(c->wbuf); wbuf 1323 fs/jffs2/wbuf.c kfree(c->wbuf); wbuf 1338 fs/jffs2/wbuf.c c->wbuf = kmalloc(c->wbuf_pagesize, GFP_KERNEL); wbuf 1339 fs/jffs2/wbuf.c if (!c->wbuf) wbuf 1349 fs/jffs2/wbuf.c kfree(c->wbuf); wbuf 119 fs/ubifs/commit.c err = ubifs_wbuf_sync(&c->jheads[i].wbuf); wbuf 618 fs/ubifs/debug.c dbg_jhead(c->jheads[i].wbuf.jhead), wbuf 619 fs/ubifs/debug.c c->jheads[i].wbuf.lnum); wbuf 719 fs/ubifs/debug.c lp->lnum == c->jheads[i].wbuf.lnum) { wbuf 2521 fs/ubifs/debug.c } else if (c->jheads && lnum == c->jheads[GCHD].wbuf.lnum) { wbuf 72 fs/ubifs/gc.c struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; wbuf 76 fs/ubifs/gc.c wbuf->lnum, wbuf->offs + wbuf->used, gc_lnum, wbuf 77 fs/ubifs/gc.c c->leb_size - wbuf->offs - wbuf->used); wbuf 79 fs/ubifs/gc.c err = ubifs_wbuf_sync_nolock(wbuf); wbuf 96 fs/ubifs/gc.c err = ubifs_wbuf_seek_nolock(wbuf, gc_lnum, 0); wbuf 307 fs/ubifs/gc.c struct ubifs_scan_node *snod, struct ubifs_wbuf *wbuf) wbuf 309 fs/ubifs/gc.c int err, new_lnum = wbuf->lnum, new_offs = wbuf->offs + wbuf->used; wbuf 312 fs/ubifs/gc.c err = ubifs_wbuf_write_nolock(wbuf, snod->node, snod->len); wbuf 338 fs/ubifs/gc.c struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; wbuf 340 fs/ubifs/gc.c if (wbuf->lnum == -1) { wbuf 361 fs/ubifs/gc.c avail = c->leb_size - wbuf->offs - wbuf->used - wbuf 375 fs/ubifs/gc.c err = move_node(c, sleb, snod, wbuf); wbuf 383 fs/ubifs/gc.c avail = c->leb_size - wbuf->offs - wbuf->used - wbuf 407 fs/ubifs/gc.c err = move_node(c, sleb, snod, wbuf); wbuf 429 fs/ubifs/gc.c err = ubifs_wbuf_write_nolock(wbuf, auth, wbuf 436 fs/ubifs/gc.c ubifs_add_dirt(c, wbuf->lnum, ubifs_auth_node_sz(c)); wbuf 478 fs/ubifs/gc.c err = ubifs_wbuf_sync(&c->jheads[i].wbuf); wbuf 498 fs/ubifs/gc.c struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; wbuf 501 fs/ubifs/gc.c ubifs_assert(c, c->gc_lnum != -1 || wbuf->offs + wbuf->used == 0 || wbuf 504 fs/ubifs/gc.c ubifs_assert(c, wbuf->lnum != lnum); wbuf 612 fs/ubifs/gc.c err = ubifs_wbuf_sync_nolock(wbuf); wbuf 677 fs/ubifs/gc.c struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; wbuf 685 fs/ubifs/gc.c mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); wbuf 693 fs/ubifs/gc.c ubifs_assert(c, !wbuf->used); wbuf 745 fs/ubifs/gc.c space_before = c->leb_size - wbuf->offs - wbuf->used; wbuf 746 fs/ubifs/gc.c if (wbuf->lnum == -1) wbuf 785 fs/ubifs/gc.c space_after = c->leb_size - wbuf->offs - wbuf->used; wbuf 832 fs/ubifs/gc.c err = ubifs_wbuf_sync_nolock(wbuf); wbuf 840 fs/ubifs/gc.c mutex_unlock(&wbuf->io_mutex); wbuf 846 fs/ubifs/gc.c ubifs_wbuf_sync_nolock(wbuf); wbuf 848 fs/ubifs/gc.c mutex_unlock(&wbuf->io_mutex); wbuf 942 fs/ubifs/gc.c struct ubifs_wbuf *wbuf; wbuf 945 fs/ubifs/gc.c wbuf = &c->jheads[GCHD].wbuf; wbuf 946 fs/ubifs/gc.c mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); wbuf 961 fs/ubifs/gc.c mutex_unlock(&wbuf->io_mutex); wbuf 476 fs/ubifs/io.c struct ubifs_wbuf *wbuf = container_of(timer, struct ubifs_wbuf, timer); wbuf 478 fs/ubifs/io.c dbg_io("jhead %s", dbg_jhead(wbuf->jhead)); wbuf 479 fs/ubifs/io.c wbuf->need_sync = 1; wbuf 480 fs/ubifs/io.c wbuf->c->need_wbuf_sync = 1; wbuf 481 fs/ubifs/io.c ubifs_wake_up_bgt(wbuf->c); wbuf 490 fs/ubifs/io.c static void new_wbuf_timer_nolock(struct ubifs_info *c, struct ubifs_wbuf *wbuf) wbuf 498 fs/ubifs/io.c ubifs_assert(c, !hrtimer_active(&wbuf->timer)); wbuf 501 fs/ubifs/io.c if (wbuf->no_timer) wbuf 504 fs/ubifs/io.c dbg_jhead(wbuf->jhead), wbuf 507 fs/ubifs/io.c hrtimer_start_range_ns(&wbuf->timer, softlimit, delta, wbuf 515 fs/ubifs/io.c static void cancel_wbuf_timer_nolock(struct ubifs_wbuf *wbuf) wbuf 517 fs/ubifs/io.c if (wbuf->no_timer) wbuf 519 fs/ubifs/io.c wbuf->need_sync = 0; wbuf 520 fs/ubifs/io.c hrtimer_cancel(&wbuf->timer); wbuf 536 fs/ubifs/io.c int ubifs_wbuf_sync_nolock(struct ubifs_wbuf *wbuf) wbuf 538 fs/ubifs/io.c struct ubifs_info *c = wbuf->c; wbuf 541 fs/ubifs/io.c cancel_wbuf_timer_nolock(wbuf); wbuf 542 fs/ubifs/io.c if (!wbuf->used || wbuf->lnum == -1) wbuf 547 fs/ubifs/io.c wbuf->lnum, wbuf->offs, wbuf->used, dbg_jhead(wbuf->jhead)); wbuf 548 fs/ubifs/io.c ubifs_assert(c, !(wbuf->avail & 7)); wbuf 549 fs/ubifs/io.c ubifs_assert(c, wbuf->offs + wbuf->size <= c->leb_size); wbuf 550 fs/ubifs/io.c ubifs_assert(c, wbuf->size >= c->min_io_size); wbuf 551 fs/ubifs/io.c ubifs_assert(c, wbuf->size <= c->max_write_size); wbuf 552 fs/ubifs/io.c ubifs_assert(c, wbuf->size % c->min_io_size == 0); wbuf 554 fs/ubifs/io.c if (c->leb_size - wbuf->offs >= c->max_write_size) wbuf 555 fs/ubifs/io.c ubifs_assert(c, !((wbuf->offs + wbuf->size) % c->max_write_size)); wbuf 564 fs/ubifs/io.c sync_len = ALIGN(wbuf->used, c->min_io_size); wbuf 565 fs/ubifs/io.c dirt = sync_len - wbuf->used; wbuf 567 fs/ubifs/io.c ubifs_pad(c, wbuf->buf + wbuf->used, dirt); wbuf 568 fs/ubifs/io.c err = ubifs_leb_write(c, wbuf->lnum, wbuf->buf, wbuf->offs, sync_len); wbuf 572 fs/ubifs/io.c spin_lock(&wbuf->lock); wbuf 573 fs/ubifs/io.c wbuf->offs += sync_len; wbuf 584 fs/ubifs/io.c if (c->leb_size - wbuf->offs < c->max_write_size) wbuf 585 fs/ubifs/io.c wbuf->size = c->leb_size - wbuf->offs; wbuf 586 fs/ubifs/io.c else if (wbuf->offs & (c->max_write_size - 1)) wbuf 587 fs/ubifs/io.c wbuf->size = ALIGN(wbuf->offs, c->max_write_size) - wbuf->offs; wbuf 589 fs/ubifs/io.c wbuf->size = c->max_write_size; wbuf 590 fs/ubifs/io.c wbuf->avail = wbuf->size; wbuf 591 fs/ubifs/io.c wbuf->used = 0; wbuf 592 fs/ubifs/io.c wbuf->next_ino = 0; wbuf 593 fs/ubifs/io.c spin_unlock(&wbuf->lock); wbuf 595 fs/ubifs/io.c if (wbuf->sync_callback) wbuf 596 fs/ubifs/io.c err = wbuf->sync_callback(c, wbuf->lnum, wbuf 597 fs/ubifs/io.c c->leb_size - wbuf->offs, dirt); wbuf 611 fs/ubifs/io.c int ubifs_wbuf_seek_nolock(struct ubifs_wbuf *wbuf, int lnum, int offs) wbuf 613 fs/ubifs/io.c const struct ubifs_info *c = wbuf->c; wbuf 615 fs/ubifs/io.c dbg_io("LEB %d:%d, jhead %s", lnum, offs, dbg_jhead(wbuf->jhead)); wbuf 619 fs/ubifs/io.c ubifs_assert(c, lnum != wbuf->lnum); wbuf 620 fs/ubifs/io.c ubifs_assert(c, wbuf->used == 0); wbuf 622 fs/ubifs/io.c spin_lock(&wbuf->lock); wbuf 623 fs/ubifs/io.c wbuf->lnum = lnum; wbuf 624 fs/ubifs/io.c wbuf->offs = offs; wbuf 625 fs/ubifs/io.c if (c->leb_size - wbuf->offs < c->max_write_size) wbuf 626 fs/ubifs/io.c wbuf->size = c->leb_size - wbuf->offs; wbuf 627 fs/ubifs/io.c else if (wbuf->offs & (c->max_write_size - 1)) wbuf 628 fs/ubifs/io.c wbuf->size = ALIGN(wbuf->offs, c->max_write_size) - wbuf->offs; wbuf 630 fs/ubifs/io.c wbuf->size = c->max_write_size; wbuf 631 fs/ubifs/io.c wbuf->avail = wbuf->size; wbuf 632 fs/ubifs/io.c wbuf->used = 0; wbuf 633 fs/ubifs/io.c spin_unlock(&wbuf->lock); wbuf 662 fs/ubifs/io.c struct ubifs_wbuf *wbuf = &c->jheads[i].wbuf; wbuf 670 fs/ubifs/io.c if (mutex_is_locked(&wbuf->io_mutex)) wbuf 673 fs/ubifs/io.c mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); wbuf 674 fs/ubifs/io.c if (!wbuf->need_sync) { wbuf 675 fs/ubifs/io.c mutex_unlock(&wbuf->io_mutex); wbuf 679 fs/ubifs/io.c err = ubifs_wbuf_sync_nolock(wbuf); wbuf 680 fs/ubifs/io.c mutex_unlock(&wbuf->io_mutex); wbuf 693 fs/ubifs/io.c struct ubifs_wbuf *wbuf = &c->jheads[i].wbuf; wbuf 695 fs/ubifs/io.c mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); wbuf 696 fs/ubifs/io.c cancel_wbuf_timer_nolock(wbuf); wbuf 697 fs/ubifs/io.c mutex_unlock(&wbuf->io_mutex); wbuf 718 fs/ubifs/io.c int ubifs_wbuf_write_nolock(struct ubifs_wbuf *wbuf, void *buf, int len) wbuf 720 fs/ubifs/io.c struct ubifs_info *c = wbuf->c; wbuf 725 fs/ubifs/io.c dbg_jhead(wbuf->jhead), wbuf->lnum, wbuf->offs + wbuf->used); wbuf 726 fs/ubifs/io.c ubifs_assert(c, len > 0 && wbuf->lnum >= 0 && wbuf->lnum < c->leb_cnt); wbuf 727 fs/ubifs/io.c ubifs_assert(c, wbuf->offs >= 0 && wbuf->offs % c->min_io_size == 0); wbuf 728 fs/ubifs/io.c ubifs_assert(c, !(wbuf->offs & 7) && wbuf->offs <= c->leb_size); wbuf 729 fs/ubifs/io.c ubifs_assert(c, wbuf->avail > 0 && wbuf->avail <= wbuf->size); wbuf 730 fs/ubifs/io.c ubifs_assert(c, wbuf->size >= c->min_io_size); wbuf 731 fs/ubifs/io.c ubifs_assert(c, wbuf->size <= c->max_write_size); wbuf 732 fs/ubifs/io.c ubifs_assert(c, wbuf->size % c->min_io_size == 0); wbuf 733 fs/ubifs/io.c ubifs_assert(c, mutex_is_locked(&wbuf->io_mutex)); wbuf 736 fs/ubifs/io.c if (c->leb_size - wbuf->offs >= c->max_write_size) wbuf 737 fs/ubifs/io.c ubifs_assert(c, !((wbuf->offs + wbuf->size) % c->max_write_size)); wbuf 739 fs/ubifs/io.c if (c->leb_size - wbuf->offs - wbuf->used < aligned_len) { wbuf 744 fs/ubifs/io.c cancel_wbuf_timer_nolock(wbuf); wbuf 749 fs/ubifs/io.c if (aligned_len <= wbuf->avail) { wbuf 754 fs/ubifs/io.c memcpy(wbuf->buf + wbuf->used, buf, len); wbuf 756 fs/ubifs/io.c if (aligned_len == wbuf->avail) { wbuf 758 fs/ubifs/io.c dbg_jhead(wbuf->jhead), wbuf->lnum, wbuf->offs); wbuf 759 fs/ubifs/io.c err = ubifs_leb_write(c, wbuf->lnum, wbuf->buf, wbuf 760 fs/ubifs/io.c wbuf->offs, wbuf->size); wbuf 764 fs/ubifs/io.c spin_lock(&wbuf->lock); wbuf 765 fs/ubifs/io.c wbuf->offs += wbuf->size; wbuf 766 fs/ubifs/io.c if (c->leb_size - wbuf->offs >= c->max_write_size) wbuf 767 fs/ubifs/io.c wbuf->size = c->max_write_size; wbuf 769 fs/ubifs/io.c wbuf->size = c->leb_size - wbuf->offs; wbuf 770 fs/ubifs/io.c wbuf->avail = wbuf->size; wbuf 771 fs/ubifs/io.c wbuf->used = 0; wbuf 772 fs/ubifs/io.c wbuf->next_ino = 0; wbuf 773 fs/ubifs/io.c spin_unlock(&wbuf->lock); wbuf 775 fs/ubifs/io.c spin_lock(&wbuf->lock); wbuf 776 fs/ubifs/io.c wbuf->avail -= aligned_len; wbuf 777 fs/ubifs/io.c wbuf->used += aligned_len; wbuf 778 fs/ubifs/io.c spin_unlock(&wbuf->lock); wbuf 786 fs/ubifs/io.c if (wbuf->used) { wbuf 793 fs/ubifs/io.c dbg_jhead(wbuf->jhead), wbuf->lnum, wbuf->offs); wbuf 794 fs/ubifs/io.c memcpy(wbuf->buf + wbuf->used, buf, wbuf->avail); wbuf 795 fs/ubifs/io.c err = ubifs_leb_write(c, wbuf->lnum, wbuf->buf, wbuf->offs, wbuf 796 fs/ubifs/io.c wbuf->size); wbuf 800 fs/ubifs/io.c wbuf->offs += wbuf->size; wbuf 801 fs/ubifs/io.c len -= wbuf->avail; wbuf 802 fs/ubifs/io.c aligned_len -= wbuf->avail; wbuf 803 fs/ubifs/io.c written += wbuf->avail; wbuf 804 fs/ubifs/io.c } else if (wbuf->offs & (c->max_write_size - 1)) { wbuf 813 fs/ubifs/io.c wbuf->size, wbuf->lnum, wbuf->offs); wbuf 814 fs/ubifs/io.c err = ubifs_leb_write(c, wbuf->lnum, buf, wbuf->offs, wbuf 815 fs/ubifs/io.c wbuf->size); wbuf 819 fs/ubifs/io.c wbuf->offs += wbuf->size; wbuf 820 fs/ubifs/io.c len -= wbuf->size; wbuf 821 fs/ubifs/io.c aligned_len -= wbuf->size; wbuf 822 fs/ubifs/io.c written += wbuf->size; wbuf 834 fs/ubifs/io.c dbg_io("write %d bytes to LEB %d:%d", n, wbuf->lnum, wbuf 835 fs/ubifs/io.c wbuf->offs); wbuf 836 fs/ubifs/io.c err = ubifs_leb_write(c, wbuf->lnum, buf + written, wbuf 837 fs/ubifs/io.c wbuf->offs, n); wbuf 840 fs/ubifs/io.c wbuf->offs += n; wbuf 846 fs/ubifs/io.c spin_lock(&wbuf->lock); wbuf 853 fs/ubifs/io.c memcpy(wbuf->buf, buf + written, len); wbuf 855 fs/ubifs/io.c if (c->leb_size - wbuf->offs >= c->max_write_size) wbuf 856 fs/ubifs/io.c wbuf->size = c->max_write_size; wbuf 858 fs/ubifs/io.c wbuf->size = c->leb_size - wbuf->offs; wbuf 859 fs/ubifs/io.c wbuf->avail = wbuf->size - aligned_len; wbuf 860 fs/ubifs/io.c wbuf->used = aligned_len; wbuf 861 fs/ubifs/io.c wbuf->next_ino = 0; wbuf 862 fs/ubifs/io.c spin_unlock(&wbuf->lock); wbuf 865 fs/ubifs/io.c if (wbuf->sync_callback) { wbuf 866 fs/ubifs/io.c int free = c->leb_size - wbuf->offs - wbuf->used; wbuf 868 fs/ubifs/io.c err = wbuf->sync_callback(c, wbuf->lnum, free, 0); wbuf 873 fs/ubifs/io.c if (wbuf->used) wbuf 874 fs/ubifs/io.c new_wbuf_timer_nolock(c, wbuf); wbuf 880 fs/ubifs/io.c len, wbuf->lnum, wbuf->offs, err); wbuf 883 fs/ubifs/io.c ubifs_dump_leb(c, wbuf->lnum); wbuf 964 fs/ubifs/io.c int ubifs_read_node_wbuf(struct ubifs_wbuf *wbuf, void *buf, int type, int len, wbuf 967 fs/ubifs/io.c const struct ubifs_info *c = wbuf->c; wbuf 972 fs/ubifs/io.c dbg_ntype(type), len, dbg_jhead(wbuf->jhead)); wbuf 973 fs/ubifs/io.c ubifs_assert(c, wbuf && lnum >= 0 && lnum < c->leb_cnt && offs >= 0); wbuf 977 fs/ubifs/io.c spin_lock(&wbuf->lock); wbuf 978 fs/ubifs/io.c overlap = (lnum == wbuf->lnum && offs + len > wbuf->offs); wbuf 981 fs/ubifs/io.c spin_unlock(&wbuf->lock); wbuf 986 fs/ubifs/io.c rlen = wbuf->offs - offs; wbuf 991 fs/ubifs/io.c memcpy(buf + rlen, wbuf->buf + offs + rlen - wbuf->offs, len - rlen); wbuf 992 fs/ubifs/io.c spin_unlock(&wbuf->lock); wbuf 1095 fs/ubifs/io.c int ubifs_wbuf_init(struct ubifs_info *c, struct ubifs_wbuf *wbuf) wbuf 1099 fs/ubifs/io.c wbuf->buf = kmalloc(c->max_write_size, GFP_KERNEL); wbuf 1100 fs/ubifs/io.c if (!wbuf->buf) wbuf 1104 fs/ubifs/io.c wbuf->inodes = kmalloc(size, GFP_KERNEL); wbuf 1105 fs/ubifs/io.c if (!wbuf->inodes) { wbuf 1106 fs/ubifs/io.c kfree(wbuf->buf); wbuf 1107 fs/ubifs/io.c wbuf->buf = NULL; wbuf 1111 fs/ubifs/io.c wbuf->used = 0; wbuf 1112 fs/ubifs/io.c wbuf->lnum = wbuf->offs = -1; wbuf 1120 fs/ubifs/io.c wbuf->avail = wbuf->size = size; wbuf 1121 fs/ubifs/io.c wbuf->sync_callback = NULL; wbuf 1122 fs/ubifs/io.c mutex_init(&wbuf->io_mutex); wbuf 1123 fs/ubifs/io.c spin_lock_init(&wbuf->lock); wbuf 1124 fs/ubifs/io.c wbuf->c = c; wbuf 1125 fs/ubifs/io.c wbuf->next_ino = 0; wbuf 1127 fs/ubifs/io.c hrtimer_init(&wbuf->timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); wbuf 1128 fs/ubifs/io.c wbuf->timer.function = wbuf_timer_callback_nolock; wbuf 1139 fs/ubifs/io.c void ubifs_wbuf_add_ino_nolock(struct ubifs_wbuf *wbuf, ino_t inum) wbuf 1141 fs/ubifs/io.c if (!wbuf->buf) wbuf 1145 fs/ubifs/io.c spin_lock(&wbuf->lock); wbuf 1146 fs/ubifs/io.c if (wbuf->used) wbuf 1147 fs/ubifs/io.c wbuf->inodes[wbuf->next_ino++] = inum; wbuf 1148 fs/ubifs/io.c spin_unlock(&wbuf->lock); wbuf 1159 fs/ubifs/io.c static int wbuf_has_ino(struct ubifs_wbuf *wbuf, ino_t inum) wbuf 1163 fs/ubifs/io.c spin_lock(&wbuf->lock); wbuf 1164 fs/ubifs/io.c for (i = 0; i < wbuf->next_ino; i++) wbuf 1165 fs/ubifs/io.c if (inum == wbuf->inodes[i]) { wbuf 1169 fs/ubifs/io.c spin_unlock(&wbuf->lock); wbuf 1188 fs/ubifs/io.c struct ubifs_wbuf *wbuf = &c->jheads[i].wbuf; wbuf 1199 fs/ubifs/io.c if (!wbuf_has_ino(wbuf, inode->i_ino)) wbuf 1202 fs/ubifs/io.c mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); wbuf 1203 fs/ubifs/io.c if (wbuf_has_ino(wbuf, inode->i_ino)) wbuf 1204 fs/ubifs/io.c err = ubifs_wbuf_sync_nolock(wbuf); wbuf 1205 fs/ubifs/io.c mutex_unlock(&wbuf->io_mutex); wbuf 101 fs/ubifs/journal.c struct ubifs_wbuf *wbuf = &c->jheads[jhead].wbuf; wbuf 111 fs/ubifs/journal.c mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); wbuf 118 fs/ubifs/journal.c avail = c->leb_size - wbuf->offs - wbuf->used; wbuf 119 fs/ubifs/journal.c if (wbuf->lnum != -1 && avail >= len) wbuf 140 fs/ubifs/journal.c mutex_unlock(&wbuf->io_mutex); wbuf 165 fs/ubifs/journal.c mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); wbuf 167 fs/ubifs/journal.c avail = c->leb_size - wbuf->offs - wbuf->used; wbuf 169 fs/ubifs/journal.c if (wbuf->lnum != -1 && avail >= len) { wbuf 176 fs/ubifs/journal.c lnum, wbuf->lnum, wbuf->offs + wbuf->used); wbuf 194 fs/ubifs/journal.c err = ubifs_wbuf_sync_nolock(wbuf); wbuf 200 fs/ubifs/journal.c err = ubifs_wbuf_seek_nolock(wbuf, lnum, offs); wbuf 207 fs/ubifs/journal.c mutex_unlock(&wbuf->io_mutex); wbuf 221 fs/ubifs/journal.c mutex_unlock(&wbuf->io_mutex); wbuf 272 fs/ubifs/journal.c struct ubifs_wbuf *wbuf = &c->jheads[jhead].wbuf; wbuf 276 fs/ubifs/journal.c *lnum = c->jheads[jhead].wbuf.lnum; wbuf 277 fs/ubifs/journal.c *offs = c->jheads[jhead].wbuf.offs + c->jheads[jhead].wbuf.used; wbuf 287 fs/ubifs/journal.c err = ubifs_wbuf_write_nolock(wbuf, buf, len); wbuf 291 fs/ubifs/journal.c err = ubifs_wbuf_sync_nolock(wbuf); wbuf 397 fs/ubifs/journal.c mutex_unlock(&c->jheads[jhead].wbuf.io_mutex); wbuf 639 fs/ubifs/journal.c struct ubifs_wbuf *wbuf = &c->jheads[BASEHD].wbuf; wbuf 641 fs/ubifs/journal.c ubifs_wbuf_add_ino_nolock(wbuf, inode->i_ino); wbuf 642 fs/ubifs/journal.c ubifs_wbuf_add_ino_nolock(wbuf, dir->i_ino); wbuf 802 fs/ubifs/journal.c ubifs_wbuf_add_ino_nolock(&c->jheads[DATAHD].wbuf, key_inum(c, key)); wbuf 933 fs/ubifs/journal.c ubifs_wbuf_add_ino_nolock(&c->jheads[BASEHD].wbuf, wbuf 1142 fs/ubifs/journal.c struct ubifs_wbuf *wbuf = &c->jheads[BASEHD].wbuf; wbuf 1144 fs/ubifs/journal.c ubifs_wbuf_add_ino_nolock(wbuf, fst_dir->i_ino); wbuf 1145 fs/ubifs/journal.c ubifs_wbuf_add_ino_nolock(wbuf, snd_dir->i_ino); wbuf 1342 fs/ubifs/journal.c struct ubifs_wbuf *wbuf = &c->jheads[BASEHD].wbuf; wbuf 1344 fs/ubifs/journal.c ubifs_wbuf_add_ino_nolock(wbuf, new_dir->i_ino); wbuf 1345 fs/ubifs/journal.c ubifs_wbuf_add_ino_nolock(wbuf, old_dir->i_ino); wbuf 1347 fs/ubifs/journal.c ubifs_wbuf_add_ino_nolock(&c->jheads[BASEHD].wbuf, wbuf 1600 fs/ubifs/journal.c ubifs_wbuf_add_ino_nolock(&c->jheads[BASEHD].wbuf, inum); wbuf 1722 fs/ubifs/journal.c ubifs_wbuf_add_ino_nolock(&c->jheads[BASEHD].wbuf, host->i_ino); wbuf 1829 fs/ubifs/journal.c struct ubifs_wbuf *wbuf = &c->jheads[BASEHD].wbuf; wbuf 1831 fs/ubifs/journal.c ubifs_wbuf_add_ino_nolock(wbuf, host->i_ino); wbuf 1832 fs/ubifs/journal.c ubifs_wbuf_add_ino_nolock(wbuf, inode->i_ino); wbuf 79 fs/ubifs/log.c return &c->jheads[jhead].wbuf; wbuf 308 fs/ubifs/log.c struct ubifs_wbuf *wbuf; wbuf 312 fs/ubifs/log.c wbuf = &c->jheads[bud->jhead].wbuf; wbuf 314 fs/ubifs/log.c if (wbuf->lnum == bud->lnum) { wbuf 319 fs/ubifs/log.c c->cmt_bud_bytes += wbuf->offs - bud->start; wbuf 322 fs/ubifs/log.c wbuf->offs - bud->start, c->cmt_bud_bytes); wbuf 323 fs/ubifs/log.c bud->start = wbuf->offs; wbuf 394 fs/ubifs/log.c int lnum = c->jheads[i].wbuf.lnum; wbuf 395 fs/ubifs/log.c int offs = c->jheads[i].wbuf.offs; wbuf 1265 fs/ubifs/lprops.c err = ubifs_wbuf_sync(&c->jheads[i].wbuf); wbuf 127 fs/ubifs/misc.h static inline int ubifs_wbuf_sync(struct ubifs_wbuf *wbuf) wbuf 131 fs/ubifs/misc.h mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); wbuf 132 fs/ubifs/misc.h err = ubifs_wbuf_sync_nolock(wbuf); wbuf 133 fs/ubifs/misc.h mutex_unlock(&wbuf->io_mutex); wbuf 1160 fs/ubifs/recovery.c struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; wbuf 1164 fs/ubifs/recovery.c dbg_rcvry("GC head LEB %d, offs %d", wbuf->lnum, wbuf->offs); wbuf 1167 fs/ubifs/recovery.c if (wbuf->lnum == -1 || wbuf->offs == c->leb_size) wbuf 1170 fs/ubifs/recovery.c err = ubifs_find_dirty_leb(c, &lp, wbuf->offs, 2); wbuf 1180 fs/ubifs/recovery.c ubifs_assert(c, lp.free + lp.dirty >= wbuf->offs); wbuf 1192 fs/ubifs/recovery.c mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); wbuf 1195 fs/ubifs/recovery.c int err2 = ubifs_wbuf_sync_nolock(wbuf); wbuf 1200 fs/ubifs/recovery.c mutex_unlock(&wbuf->io_mutex); wbuf 147 fs/ubifs/replay.c err = ubifs_wbuf_seek_nolock(&c->jheads[b->bud->jhead].wbuf, wbuf 466 fs/ubifs/super.c err = ubifs_wbuf_sync(&c->jheads[i].wbuf); wbuf 815 fs/ubifs/super.c err = ubifs_wbuf_init(c, &c->jheads[i].wbuf); wbuf 819 fs/ubifs/super.c c->jheads[i].wbuf.sync_callback = &bud_wbuf_callback; wbuf 820 fs/ubifs/super.c c->jheads[i].wbuf.jhead = i; wbuf 831 fs/ubifs/super.c c->jheads[GCHD].wbuf.no_timer = 1; wbuf 853 fs/ubifs/super.c kfree(c->jheads[i].wbuf.buf); wbuf 854 fs/ubifs/super.c kfree(c->jheads[i].wbuf.inodes); wbuf 1850 fs/ubifs/super.c err = ubifs_wbuf_sync(&c->jheads[i].wbuf); wbuf 1920 fs/ubifs/super.c err = ubifs_wbuf_sync(&c->jheads[i].wbuf); wbuf 1945 fs/ubifs/super.c hrtimer_cancel(&c->jheads[i].wbuf.timer); wbuf 1647 fs/ubifs/tnc.c static int read_wbuf(struct ubifs_wbuf *wbuf, void *buf, int len, int lnum, wbuf 1650 fs/ubifs/tnc.c const struct ubifs_info *c = wbuf->c; wbuf 1654 fs/ubifs/tnc.c ubifs_assert(c, wbuf && lnum >= 0 && lnum < c->leb_cnt && offs >= 0); wbuf 1658 fs/ubifs/tnc.c spin_lock(&wbuf->lock); wbuf 1659 fs/ubifs/tnc.c overlap = (lnum == wbuf->lnum && offs + len > wbuf->offs); wbuf 1662 fs/ubifs/tnc.c spin_unlock(&wbuf->lock); wbuf 1667 fs/ubifs/tnc.c rlen = wbuf->offs - offs; wbuf 1672 fs/ubifs/tnc.c memcpy(buf + rlen, wbuf->buf + offs + rlen - wbuf->offs, len - rlen); wbuf 1673 fs/ubifs/tnc.c spin_unlock(&wbuf->lock); wbuf 1755 fs/ubifs/tnc.c struct ubifs_wbuf *wbuf; wbuf 1766 fs/ubifs/tnc.c wbuf = ubifs_get_wbuf(c, lnum); wbuf 1767 fs/ubifs/tnc.c if (wbuf) wbuf 1768 fs/ubifs/tnc.c err = read_wbuf(wbuf, bu->buf, len, lnum, offs); wbuf 466 fs/ubifs/tnc_misc.c struct ubifs_wbuf *wbuf; wbuf 472 fs/ubifs/tnc_misc.c wbuf = ubifs_get_wbuf(c, zbr->lnum); wbuf 473 fs/ubifs/tnc_misc.c if (wbuf) wbuf 474 fs/ubifs/tnc_misc.c err = ubifs_read_node_wbuf(wbuf, node, type, zbr->len, wbuf 728 fs/ubifs/ubifs.h struct ubifs_wbuf wbuf; wbuf 1710 fs/ubifs/ubifs.h int ubifs_wbuf_write_nolock(struct ubifs_wbuf *wbuf, void *buf, int len); wbuf 1711 fs/ubifs/ubifs.h int ubifs_wbuf_seek_nolock(struct ubifs_wbuf *wbuf, int lnum, int offs); wbuf 1712 fs/ubifs/ubifs.h int ubifs_wbuf_init(struct ubifs_info *c, struct ubifs_wbuf *wbuf); wbuf 1715 fs/ubifs/ubifs.h int ubifs_read_node_wbuf(struct ubifs_wbuf *wbuf, void *buf, int type, int len, wbuf 1731 fs/ubifs/ubifs.h int ubifs_wbuf_sync_nolock(struct ubifs_wbuf *wbuf); wbuf 1733 fs/ubifs/ubifs.h void ubifs_wbuf_add_ino_nolock(struct ubifs_wbuf *wbuf, ino_t inum); wbuf 762 include/drm/ttm/ttm_bo_api.h const char __user *wbuf, char __user *rbuf, wbuf 111 include/linux/slimbus.h const u8 *wbuf; wbuf 568 include/sound/wavefront.h unsigned char wbuf[WF_MAX_WRITE]; /* bytes written to card */ wbuf 125 net/9p/trans_fd.c char *wbuf; wbuf 464 net/9p/trans_fd.c m->wbuf = req->tc.sdata; wbuf 475 net/9p/trans_fd.c err = p9_fd_write(m->client, m->wbuf + m->wpos, m->wsize - m->wpos); wbuf 484 sound/isa/wavefront/wavefront_midi.c unsigned char rbuf[4], wbuf[4]; wbuf 529 sound/isa/wavefront/wavefront_midi.c if (snd_wavefront_cmd (dev, WFC_MISYNTH_ON, rbuf, wbuf)) { wbuf 545 sound/isa/wavefront/wavefront_midi.c if (snd_wavefront_cmd (dev, WFC_VMIDI_OFF, rbuf, wbuf)) { wbuf 552 sound/isa/wavefront/wavefront_midi.c if (snd_wavefront_cmd (dev, WFC_VMIDI_ON, rbuf, wbuf)) { wbuf 334 sound/isa/wavefront/wavefront_synth.c int cmd, unsigned char *rbuf, unsigned char *wbuf) wbuf 375 sound/isa/wavefront/wavefront_synth.c if (wavefront_write (dev, wbuf[i])) { wbuf 383 sound/isa/wavefront/wavefront_synth.c i, wbuf[i]); wbuf 600 sound/isa/wavefront/wavefront_synth.c unsigned char wbuf[2]; wbuf 603 sound/isa/wavefront/wavefront_synth.c wbuf[0] = sample_num & 0x7f; wbuf 604 sound/isa/wavefront/wavefront_synth.c wbuf[1] = sample_num >> 7; wbuf 606 sound/isa/wavefront/wavefront_synth.c if ((x = snd_wavefront_cmd (dev, WFC_DELETE_SAMPLE, NULL, wbuf)) == 0) { wbuf 618 sound/isa/wavefront/wavefront_synth.c unsigned char rbuf[32], wbuf[32]; wbuf 623 sound/isa/wavefront/wavefront_synth.c if (snd_wavefront_cmd (dev, WFC_GET_NSAMPLES, rbuf, wbuf)) { wbuf 632 sound/isa/wavefront/wavefront_synth.c wbuf[0] = i & 0x7f; wbuf 633 sound/isa/wavefront/wavefront_synth.c wbuf[1] = i >> 7; wbuf 635 sound/isa/wavefront/wavefront_synth.c if (snd_wavefront_cmd (dev, WFC_IDENTIFY_SAMPLE_TYPE, rbuf, wbuf)) { wbuf 1532 sound/isa/wavefront/wavefront_synth.c dev->rom_samples_rdonly = wc->wbuf[0]; wbuf 1537 sound/isa/wavefront/wavefront_synth.c i = wc->wbuf[0] | (wc->wbuf[1] << 7); wbuf 1549 sound/isa/wavefront/wavefront_synth.c dev->debug = wc->wbuf[0]; wbuf 1554 sound/isa/wavefront/wavefront_synth.c munge_int32 (*((u32 *) wc->wbuf), patchnumbuf, 2); wbuf 1555 sound/isa/wavefront/wavefront_synth.c memcpy (wc->wbuf, patchnumbuf, 2); wbuf 1573 sound/isa/wavefront/wavefront_synth.c wc->status = snd_wavefront_cmd (dev, wc->cmd, wc->rbuf, wc->wbuf); wbuf 2154 sound/isa/wavefront/wavefront_synth.c unsigned char rbuf[4], wbuf[4]; wbuf 2168 sound/isa/wavefront/wavefront_synth.c if (snd_wavefront_cmd (dev, WFC_FIRMWARE_VERSION, rbuf, wbuf) == 0) { wbuf 2179 sound/isa/wavefront/wavefront_synth.c rbuf, wbuf) == 0) { wbuf 413 tools/perf/bench/numa.c u64 *wbuf = (void *)buf; wbuf 418 tools/perf/bench/numa.c wbuf[i] = i + off;