/openbmc/linux/drivers/spi/ |
H A D | spi-gxp.c | 159 u32 write_len; in gxp_spi_write() local 163 write_len = op->data.nbytes; in gxp_spi_write() 164 if (write_len > SPILDAT_LEN) in gxp_spi_write() 165 write_len = SPILDAT_LEN; in gxp_spi_write() 179 writew(write_len, reg_base + OFFSET_SPIDCNT); in gxp_spi_write() 181 memcpy_toio(spifi->dat_base, op->data.buf.in, write_len); in gxp_spi_write()
|
H A D | spi-cadence-quadspi.c | 592 size_t write_len; in cqspi_command_write() local 630 write_len = (n_tx > 4) ? 4 : n_tx; in cqspi_command_write() 631 memcpy(&data, txbuf, write_len); in cqspi_command_write() 632 txbuf += write_len; in cqspi_command_write() 637 write_len = n_tx - 4; in cqspi_command_write() 638 memcpy(&data, txbuf, write_len); in cqspi_command_write()
|
/openbmc/linux/tools/testing/selftests/cachestat/ |
H A D | test_cachestat.c | 76 ssize_t write_len = write(fd, cursor, remained); in write_exactly() local 78 if (write_len <= 0) { in write_exactly() 84 remained -= write_len; in write_exactly() 85 cursor += write_len; in write_exactly()
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-cp2615.c | 53 u8 tag, i2caddr, read_len, write_len; member 98 return cp2615_init_iop_msg(ret, iop_DoI2cTransfer, data, 4 + data->write_len); in cp2615_init_i2c_msg() 230 i2c_w.write_len = 0; in cp2615_i2c_master_xfer() 233 i2c_w.write_len = msg->len; in cp2615_i2c_master_xfer() 234 memcpy(&i2c_w.data, msg->buf, i2c_w.write_len); in cp2615_i2c_master_xfer()
|
H A D | i2c-mlxbf.c | 738 u8 op_idx, data_idx, data_len, write_len, read_len; in mlxbf_i2c_smbus_start_transaction() local 752 write_len = 0; in mlxbf_i2c_smbus_start_transaction() 793 write_len += operation->length; in mlxbf_i2c_smbus_start_transaction() 818 data_len = write_len + 1; /* Add one byte of the slave address. */ in mlxbf_i2c_smbus_start_transaction() 827 ret = mlxbf_i2c_smbus_enable(priv, slave, write_len, block_en, in mlxbf_i2c_smbus_start_transaction()
|
/openbmc/qemu/audio/ |
H A D | sdlaudio.c | 228 size_t write_len, start; in sdl_callback_out() local 234 write_len = MIN(MIN(hw->pending_emul, len), in sdl_callback_out() 237 memcpy(buf, hw->buf_emul + start, write_len); in sdl_callback_out() 238 hw->pending_emul -= write_len; in sdl_callback_out() 239 len -= write_len; in sdl_callback_out() 240 buf += write_len; in sdl_callback_out()
|
H A D | coreaudio.m | 337 size_t write_len, start; 342 write_len = MIN(MIN(hw->pending_emul, len), 345 memcpy(out, hw->buf_emul + start, write_len); 346 hw->pending_emul -= write_len; 347 len -= write_len; 348 out += write_len;
|
/openbmc/linux/drivers/fsi/ |
H A D | fsi-core.c | 588 size_t total_len, write_len; in fsi_slave_sysfs_raw_write() local 597 for (total_len = 0; total_len < count; total_len += write_len) { in fsi_slave_sysfs_raw_write() 598 write_len = aligned_access_size(off, count - total_len); in fsi_slave_sysfs_raw_write() 600 rc = fsi_slave_write(slave, off, buf + total_len, write_len); in fsi_slave_sysfs_raw_write() 604 off += write_len; in fsi_slave_sysfs_raw_write() 700 size_t total_len, write_len; in cfam_write() local 714 write_len = min_t(size_t, count, 4); in cfam_write() 715 write_len -= off & 0x3; in cfam_write() 717 rc = copy_from_user(&data, buf + total_len, write_len); in cfam_write() 722 rc = fsi_slave_write(slave, off, &data, write_len); in cfam_write() [all …]
|
/openbmc/linux/fs/ubifs/ |
H A D | journal.c | 729 int write_len; in ubifs_jnl_write_data() local 783 write_len = ALIGN(dlen, 8) + auth_len; in ubifs_jnl_write_data() 785 write_len = dlen; in ubifs_jnl_write_data() 790 err = make_reservation(c, DATAHD, write_len); in ubifs_jnl_write_data() 867 write_len += ilen; in ubifs_jnl_write_inode() 869 ino_start = ino = kmalloc(write_len, GFP_NOFS); in ubifs_jnl_write_inode() 874 err = make_reservation(c, BASEHD, write_len); in ubifs_jnl_write_inode() 947 err = ubifs_add_dirt(c, lnum, write_len); in ubifs_jnl_write_inode() 1741 write_len = len + ubifs_auth_node_sz(c); in ubifs_jnl_delete_xattr() 1743 xent = kzalloc(write_len, GFP_NOFS); in ubifs_jnl_delete_xattr() [all …]
|
/openbmc/linux/fs/ocfs2/ |
H A D | refcounttree.h | 47 u32 cpos, u32 write_len, u32 max_cpos); 75 u32 cpos, u32 write_len,
|
H A D | refcounttree.c | 2631 u32 write_len, in ocfs2_refcount_cal_cow_clusters() argument 2645 BUG_ON(cpos + write_len > max_cpos); in ocfs2_refcount_cal_cow_clusters() 2712 want_clusters = write_len; in ocfs2_refcount_cal_cow_clusters() 2745 (cpos + write_len)) { in ocfs2_refcount_cal_cow_clusters() 3396 cpos, write_len, max_cpos, in ocfs2_refcount_cow_hunk() 3404 cpos, write_len, max_cpos, in ocfs2_refcount_cow_hunk() 3465 while (write_len) { in ocfs2_refcount_cow() 3473 if (write_len < num_clusters) in ocfs2_refcount_cow() 3474 num_clusters = write_len; in ocfs2_refcount_cow() 3485 write_len -= num_clusters; in ocfs2_refcount_cow() [all …]
|
H A D | ocfs2_trace.h | 1097 unsigned int write_len, unsigned int max_cpos, 1099 TP_ARGS(ino, cpos, write_len, max_cpos, cow_start, cow_len), 1103 __field(unsigned int, write_len) 1111 __entry->write_len = write_len; 1117 __entry->ino, __entry->cpos, __entry->write_len,
|
/openbmc/linux/drivers/media/usb/dvb-usb/ |
H A D | pctv452e.c | 109 unsigned int write_len, unsigned int read_len) in tt3650_ci_msg() argument 117 if (!data || (write_len > 64 - 4) || (read_len > 64 - 4)) { in tt3650_ci_msg() 131 buf[3] = write_len; in tt3650_ci_msg() 133 memcpy(buf + 4, data, write_len); in tt3650_ci_msg() 136 ret = dvb_usb_generic_rw(d, buf, 4 + write_len, in tt3650_ci_msg() 159 u8 cmd, u8 *data, unsigned int write_len, in tt3650_ci_msg_locked() argument 167 ret = tt3650_ci_msg(d, cmd, data, write_len, read_len); in tt3650_ci_msg_locked()
|
H A D | ttusb2.c | 120 static int tt3650_ci_msg(struct dvb_usb_device *d, u8 cmd, u8 *data, unsigned int write_len, unsign… in tt3650_ci_msg() argument 124 ret = ttusb2_msg(d, cmd, data, write_len, rx, read_len); in tt3650_ci_msg() 130 static int tt3650_ci_msg_locked(struct dvb_ca_en50221 *ca, u8 cmd, u8 *data, unsigned int write_len… in tt3650_ci_msg_locked() argument 137 ret = tt3650_ci_msg(d, cmd, data, write_len, read_len); in tt3650_ci_msg_locked()
|
/openbmc/linux/net/sunrpc/xprtrdma/ |
H A D | svc_rdma_rw.c | 482 unsigned int write_len; in svc_rdma_build_writes() local 489 write_len = min(remaining, seg->rs_length - info->wi_seg_off); in svc_rdma_build_writes() 490 if (!write_len) in svc_rdma_build_writes() 493 (write_len >> PAGE_SHIFT) + 2); in svc_rdma_build_writes() 497 constructor(info, write_len, ctxt); in svc_rdma_build_writes() 507 if (write_len == seg->rs_length - info->wi_seg_off) { in svc_rdma_build_writes() 511 info->wi_seg_off += write_len; in svc_rdma_build_writes() 513 remaining -= write_len; in svc_rdma_build_writes()
|
/openbmc/linux/drivers/input/touchscreen/ |
H A D | ilitek_ts_i2c.c | 95 u8 *cmd, int write_len, int delay, in ilitek_i2c_write_and_read() argument 104 .len = write_len, in ilitek_i2c_write_and_read() 115 if (delay == 0 && write_len > 0 && read_len > 0) { in ilitek_i2c_write_and_read() 120 if (write_len > 0) { in ilitek_i2c_write_and_read()
|
/openbmc/linux/fs/ceph/ |
H A D | file.c | 1645 u64 write_len = len; in ceph_sync_write() local 1658 write_len, &objnum, &objoff, in ceph_sync_write() 1660 write_len = xlen; in ceph_sync_write() 1663 if (pos + len > write_pos + write_len) in ceph_sync_write() 1664 len = write_pos + write_len - pos; in ceph_sync_write() 1673 last = (pos + len) != (write_pos + write_len); in ceph_sync_write() 1677 ci->i_vino.ino, pos, len, write_pos, write_len, in ceph_sync_write() 1684 num_pages = calc_pages_for(write_pos, write_len); in ceph_sync_write() 1894 write_pos, write_len, in ceph_sync_write() 1904 ci->i_vino, write_pos, &write_len, in ceph_sync_write() [all …]
|
/openbmc/linux/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-hdw.h | 234 void *write_ptr,unsigned int write_len,
|
H A D | pvrusb2-hdw.c | 3612 if (!write_data) write_len = 0; in pvr2_send_request_ex() 3614 if (write_len > PVR2_CTL_BUFFSIZE) { in pvr2_send_request_ex() 3618 write_len,PVR2_CTL_BUFFSIZE); in pvr2_send_request_ex() 3625 write_len,PVR2_CTL_BUFFSIZE); in pvr2_send_request_ex() 3628 if ((!write_len) && (!read_len)) { in pvr2_send_request_ex() 3637 if (write_len && write_data) in pvr2_send_request_ex() 3652 if (write_len && write_data) { in pvr2_send_request_ex() 3665 write_len, in pvr2_send_request_ex() 3741 if (write_len) { in pvr2_send_request_ex() 3763 write_len, in pvr2_send_request_ex() [all …]
|
/openbmc/linux/drivers/net/wireless/rsi/ |
H A D | rsi_91x_hal.c | 647 u32 write_addr, write_len; in bl_write_header() local 661 write_len = sizeof(struct bl_header); in bl_write_header() 666 (u8 *)bl_hdr, write_len); in bl_write_header() 685 (u8 *)bl_hdr, write_len); in bl_write_header()
|
/openbmc/linux/drivers/iommu/ |
H A D | virtio-iommu.c | 157 size_t write_len; in __viommu_sync_req() local 175 write_len = req->len - req->write_offset; in __viommu_sync_req() 176 if (req->writeback && len == write_len) in __viommu_sync_req() 178 write_len); in __viommu_sync_req()
|
/openbmc/linux/drivers/net/ethernet/adi/ |
H A D | adin1110.c | 246 u32 write_len = ADIN1110_REG_LEN; in adin1110_write_reg() local 258 priv->data[header_len + write_len] = adin1110_crc_data(&priv->data[header_len], in adin1110_write_reg() 259 write_len); in adin1110_write_reg() 260 write_len++; in adin1110_write_reg() 263 return spi_write(priv->spidev, &priv->data[0], header_len + write_len); in adin1110_write_reg()
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_log.c | 2218 uint32_t write_len, in xlog_write_iovec() argument 2225 ASSERT(write_len % sizeof(int32_t) == 0); in xlog_write_iovec() 2227 memcpy(iclog->ic_datap + *log_offset, data, write_len); in xlog_write_iovec() 2228 *log_offset += write_len; in xlog_write_iovec() 2229 *bytes_left -= write_len; in xlog_write_iovec() 2231 *data_cnt += write_len; in xlog_write_iovec()
|
/openbmc/linux/drivers/base/regmap/ |
H A D | regmap.c | 2162 size_t write_len; in regmap_noinc_write() local 2192 write_len = map->max_raw_write; in regmap_noinc_write() 2194 write_len = val_len; in regmap_noinc_write() 2195 ret = _regmap_raw_write(map, reg, val, write_len, true); in regmap_noinc_write() 2198 val = ((u8 *)val) + write_len; in regmap_noinc_write() 2199 val_len -= write_len; in regmap_noinc_write()
|
/openbmc/linux/drivers/ps3/ |
H A D | ps3av.c | 208 struct ps3av_reply_hdr *recv_buf, int write_len, in ps3av_send_cmd_pkt() argument 219 res = ps3av_vuart_write(ps3av->dev, send_buf, write_len); in ps3av_send_cmd_pkt()
|