Home
last modified time | relevance | path

Searched refs:write_len (Results 1 – 25 of 25) sorted by relevance

/linux/drivers/spi/
H A Dspi-gxp.c159 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()
/linux/tools/testing/selftests/cachestat/
H A Dtest_cachestat.c76 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()
/linux/drivers/i2c/busses/
H A Di2c-cp2615.c53 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_xfer()
233 i2c_w.write_len = msg->len; in cp2615_i2c_xfer()
234 memcpy(&i2c_w.data, msg->buf, i2c_w.write_len); in cp2615_i2c_xfer()
/linux/drivers/fsi/
H A Dfsi-core.c588 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
711 for (total_len = 0; total_len < count; total_len += write_len) { in cfam_write()
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()
[all …]
/linux/fs/ubifs/
H A Djournal.c860 int write_len; in ubifs_jnl_write_data() local
914 write_len = ALIGN(dlen, 8) + auth_len; in ubifs_jnl_write_data()
916 write_len = dlen; in ubifs_jnl_write_data()
921 err = make_reservation(c, DATAHD, write_len); in ubifs_jnl_write_data()
926 err = write_head(c, DATAHD, data, write_len, &lnum, &offs, 0); in ubifs_jnl_write_data()
977 int sync = 0, write_len = 0, ilen = UBIFS_INO_NODE_SZ; in ubifs_jnl_write_inode() local
999 write_len += UBIFS_INO_NODE_SZ * ui->xattr_cnt; in ubifs_jnl_write_inode()
1003 write_len += ALIGN(ilen, 8) + ubifs_auth_node_sz(c); in ubifs_jnl_write_inode()
1005 write_len += ilen; in ubifs_jnl_write_inode()
1007 ino_start = ino = kmalloc(write_len, GFP_NOFS); in ubifs_jnl_write_inode()
[all …]
/linux/drivers/media/usb/dvb-usb/
H A Dpctv452e.c109 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 Dttusb2.c120 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()
/linux/net/sunrpc/xprtrdma/
H A Dsvc_rdma_rw.c481 unsigned int write_len; in svc_rdma_build_writes() local
488 write_len = min(remaining, seg->rs_length - info->wi_seg_off); in svc_rdma_build_writes()
489 if (!write_len) in svc_rdma_build_writes()
492 (write_len >> PAGE_SHIFT) + 2); in svc_rdma_build_writes()
496 constructor(info, write_len, ctxt); in svc_rdma_build_writes()
506 if (write_len == seg->rs_length - info->wi_seg_off) { in svc_rdma_build_writes()
510 info->wi_seg_off += write_len; in svc_rdma_build_writes()
512 remaining -= write_len; in svc_rdma_build_writes()
/linux/fs/ocfs2/
H A Drefcounttree.h47 u32 cpos, u32 write_len, u32 max_cpos);
75 u32 cpos, u32 write_len,
H A Drefcounttree.c2624 u32 write_len, in ocfs2_refcount_cal_cow_clusters() argument
2638 BUG_ON(cpos + write_len > max_cpos); in ocfs2_refcount_cal_cow_clusters()
2705 want_clusters = write_len; in ocfs2_refcount_cal_cow_clusters()
2707 want_clusters = (cpos + write_len) - in ocfs2_refcount_cal_cow_clusters()
2738 (cpos + write_len)) { in ocfs2_refcount_cal_cow_clusters()
2778 want_clusters = (cpos + write_len) - *cow_start; in ocfs2_refcount_cal_cow_clusters()
2788 if ((*cow_start + *cow_len) >= (cpos + write_len)) in ocfs2_refcount_cal_cow_clusters()
3376 u32 cpos, u32 write_len, u32 max_cpos) in ocfs2_refcount_cow_hunk() argument
3389 cpos, write_len, max_cpos, in ocfs2_refcount_cow_hunk()
3397 cpos, write_len, max_cpos, in ocfs2_refcount_cow_hunk()
[all …]
H A Docfs2_trace.h1097 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,
/linux/drivers/input/touchscreen/
H A Dilitek_ts_i2c.c94 u8 *cmd, int write_len, int delay, in ilitek_i2c_write_and_read() argument
103 .len = write_len, in ilitek_i2c_write_and_read()
114 if (delay == 0 && write_len > 0 && read_len > 0) { in ilitek_i2c_write_and_read()
119 if (write_len > 0) { in ilitek_i2c_write_and_read()
H A Dmelfas_mip4.c180 char *write_buf, unsigned int write_len, in mip4_i2c_xfer() argument
188 .len = write_len, in mip4_i2c_xfer()
/linux/fs/ceph/
H A Dfile.c1746 u64 write_len = len; in ceph_sync_write() local
1755 ceph_fscrypt_adjust_off_and_len(inode, &write_pos, &write_len); in ceph_sync_write()
1759 write_len, &objnum, &objoff, in ceph_sync_write()
1761 write_len = xlen; in ceph_sync_write()
1764 if (pos + len > write_pos + write_len) in ceph_sync_write()
1765 len = write_pos + write_len - pos; in ceph_sync_write()
1774 last = (pos + len) != (write_pos + write_len); in ceph_sync_write()
1778 ci->i_vino.ino, pos, len, write_pos, write_len, in ceph_sync_write()
1785 num_pages = calc_pages_for(write_pos, write_len); in ceph_sync_write()
1795 u64 last_pos = (write_pos + write_len) - CEPH_FSCRYPT_BLOCK_SIZE; in ceph_sync_write()
[all …]
/linux/drivers/media/usb/pvrusb2/
H A Dpvrusb2-hdw.c332 void *write_data,unsigned int write_len,
3584 void *write_data,unsigned int write_len, in pvr2_send_request_ex() argument
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()
3641 hdw->cmd_debug_write_len = write_len; in pvr2_send_request_ex()
3652 if (write_len && write_data) { in pvr2_send_request_ex()
[all …]
H A Dpvrusb2-hdw.h234 void *write_ptr,unsigned int write_len,
/linux/drivers/net/wireless/rsi/
H A Drsi_91x_hal.c647 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()
/linux/drivers/iommu/
H A Dvirtio-iommu.c157 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()
/linux/drivers/net/ethernet/adi/
H A Dadin1110.c246 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()
/linux/fs/xfs/
H A Dxfs_log.c1978 uint32_t write_len, in xlog_write_iovec() argument
1985 ASSERT(write_len % sizeof(int32_t) == 0); in xlog_write_iovec()
1987 memcpy(iclog->ic_datap + *log_offset, data, write_len); in xlog_write_iovec()
1988 *log_offset += write_len; in xlog_write_iovec()
1989 *bytes_left -= write_len; in xlog_write_iovec()
1991 *data_cnt += write_len; in xlog_write_iovec()
/linux/drivers/ps3/
H A Dps3av.c208 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()
/linux/mm/
H A Dfilemap.c3964 size_t write_len = iov_iter_count(from); in generic_file_direct_write() local
3971 written = kiocb_invalidate_pages(iocb, write_len); in generic_file_direct_write()
4003 write_len -= written; in generic_file_direct_write()
4011 iov_iter_revert(from, write_len - iov_iter_count(from)); in generic_file_direct_write()
/linux/include/linux/
H A Dskbuff.h3725 unsigned int write_len) in skb_try_make_writable() argument
3727 return skb_cloned(skb) && !skb_clone_writable(skb, write_len) && in skb_try_make_writable()
4148 int skb_ensure_writable(struct sk_buff *skb, unsigned int write_len);
/linux/net/core/
H A Dfilter.c1658 unsigned int write_len) in __bpf_try_make_writable() argument
1662 if (write_len > INT_MAX) in __bpf_try_make_writable()
1665 return skb_ensure_writable(skb, write_len); in __bpf_try_make_writable()
1669 unsigned int write_len) in bpf_try_make_writable() argument
1671 int err = __bpf_try_make_writable(skb, write_len); in bpf_try_make_writable()
1886 unsigned int write_len) in sk_skb_try_make_writable() argument
1888 return __bpf_try_make_writable(skb, write_len); in sk_skb_try_make_writable()
H A Dskbuff.c6203 int skb_ensure_writable(struct sk_buff *skb, unsigned int write_len) in skb_ensure_writable() argument
6205 if (!pskb_may_pull(skb, write_len)) in skb_ensure_writable()
6211 if (!skb_cloned(skb) || skb_clone_writable(skb, write_len)) in skb_ensure_writable()