Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/spi/
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()
Dspi-cadence-quadspi.c592 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()
/linux-6.6.21/tools/testing/selftests/cachestat/
Dtest_cachestat.c75 ssize_t write_len = write(fd, cursor, remained); in write_exactly() local
77 if (write_len <= 0) { in write_exactly()
83 remained -= write_len; in write_exactly()
84 cursor += write_len; in write_exactly()
/linux-6.6.21/drivers/i2c/busses/
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_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()
Di2c-mlxbf.c738 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()
/linux-6.6.21/drivers/fsi/
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-6.6.21/fs/ubifs/
Djournal.c729 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()
795 err = write_head(c, DATAHD, data, write_len, &lnum, &offs, 0); in ubifs_jnl_write_data()
846 int sync = 0, write_len = 0, ilen = UBIFS_INO_NODE_SZ; in ubifs_jnl_write_inode() local
861 write_len += UBIFS_INO_NODE_SZ * ui->xattr_cnt; in ubifs_jnl_write_inode()
865 write_len += ALIGN(ilen, 8) + ubifs_auth_node_sz(c); in ubifs_jnl_write_inode()
867 write_len += ilen; in ubifs_jnl_write_inode()
869 ino_start = ino = kmalloc(write_len, GFP_NOFS); in ubifs_jnl_write_inode()
[all …]
/linux-6.6.21/drivers/media/usb/dvb-usb/
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()
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-6.6.21/net/sunrpc/xprtrdma/
Dsvc_rdma_rw.c482 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()
/linux-6.6.21/fs/ocfs2/
Drefcounttree.h47 u32 cpos, u32 write_len, u32 max_cpos);
75 u32 cpos, u32 write_len,
Drefcounttree.c2630 u32 write_len, in ocfs2_refcount_cal_cow_clusters() argument
2644 BUG_ON(cpos + write_len > max_cpos); in ocfs2_refcount_cal_cow_clusters()
2711 want_clusters = write_len; in ocfs2_refcount_cal_cow_clusters()
2713 want_clusters = (cpos + write_len) - in ocfs2_refcount_cal_cow_clusters()
2744 (cpos + write_len)) { in ocfs2_refcount_cal_cow_clusters()
2784 want_clusters = (cpos + write_len) - *cow_start; in ocfs2_refcount_cal_cow_clusters()
2794 if ((*cow_start + *cow_len) >= (cpos + write_len)) in ocfs2_refcount_cal_cow_clusters()
3382 u32 cpos, u32 write_len, u32 max_cpos) in ocfs2_refcount_cow_hunk() argument
3395 cpos, write_len, max_cpos, in ocfs2_refcount_cow_hunk()
3403 cpos, write_len, max_cpos, in ocfs2_refcount_cow_hunk()
[all …]
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-6.6.21/drivers/input/touchscreen/
Dilitek_ts_i2c.c93 u8 *cmd, int write_len, int delay, in ilitek_i2c_write_and_read() argument
102 .len = write_len, in ilitek_i2c_write_and_read()
113 if (delay == 0 && write_len > 0 && read_len > 0) { in ilitek_i2c_write_and_read()
118 if (write_len > 0) { in ilitek_i2c_write_and_read()
Dmelfas_mip4.c180 char *write_buf, unsigned int write_len, in mip4_i2c_xfer() argument
188 .len = write_len, in mip4_i2c_xfer()
/linux-6.6.21/fs/ceph/
Dfile.c1642 u64 write_len = len; in ceph_sync_write() local
1651 ceph_fscrypt_adjust_off_and_len(inode, &write_pos, &write_len); in ceph_sync_write()
1655 write_len, &objnum, &objoff, in ceph_sync_write()
1657 write_len = xlen; in ceph_sync_write()
1660 if (pos + len > write_pos + write_len) in ceph_sync_write()
1661 len = write_pos + write_len - pos; in ceph_sync_write()
1670 last = (pos + len) != (write_pos + write_len); in ceph_sync_write()
1674 ci->i_vino.ino, pos, len, write_pos, write_len, in ceph_sync_write()
1681 num_pages = calc_pages_for(write_pos, write_len); in ceph_sync_write()
1691 u64 last_pos = (write_pos + write_len) - CEPH_FSCRYPT_BLOCK_SIZE; in ceph_sync_write()
[all …]
/linux-6.6.21/drivers/media/usb/pvrusb2/
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 …]
Dpvrusb2-hdw.h234 void *write_ptr,unsigned int write_len,
/linux-6.6.21/drivers/net/wireless/rsi/
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-6.6.21/drivers/iommu/
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-6.6.21/drivers/net/ethernet/adi/
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-6.6.21/fs/xfs/
Dxfs_log.c2217 uint32_t write_len, in xlog_write_iovec() argument
2224 ASSERT(write_len % sizeof(int32_t) == 0); in xlog_write_iovec()
2226 memcpy(iclog->ic_datap + *log_offset, data, write_len); in xlog_write_iovec()
2227 *log_offset += write_len; in xlog_write_iovec()
2228 *bytes_left -= write_len; in xlog_write_iovec()
2230 *data_cnt += write_len; in xlog_write_iovec()
/linux-6.6.21/drivers/base/regmap/
Dregmap.c2162 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()
/linux-6.6.21/drivers/ps3/
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-6.6.21/fs/reiserfs/
Djournal.c979 int write_len; in flush_commit_list() local
1047 write_len = jl->j_len + 1; in flush_commit_list()
1048 if (write_len < 256) in flush_commit_list()
1049 write_len = 256; in flush_commit_list()
1050 for (i = 0 ; i < write_len ; i++) { in flush_commit_list()

12