Lines Matching refs:vecs
116 static int mtd_fake_writev(struct mtd_info *mtd, const struct iovec *vecs, unsigned long count, lof… in mtd_fake_writev() argument
123 ret = mtd->write(mtd, to, vecs[i].iov_len, &thislen, vecs[i].iov_base); in mtd_fake_writev()
125 if (ret || thislen != vecs[i].iov_len) in mtd_fake_writev()
127 to += vecs[i].iov_len; in mtd_fake_writev()
135 static inline int mtd_writev(struct mtd_info *mtd, const struct iovec *vecs, unsigned long count, l… in mtd_writev() argument
138 return mtd->writev(mtd,vecs,count,to,retlen); in mtd_writev()
140 return mtd_fake_writev(mtd, vecs, count, to, retlen); in mtd_writev()
182 struct iovec vecs[2]; in jffs2_write_dnode() local
190 vecs[0].iov_base = ri; in jffs2_write_dnode()
191 vecs[0].iov_len = sizeof(*ri); in jffs2_write_dnode()
192 vecs[1].iov_base = (unsigned char *)data; in jffs2_write_dnode()
193 vecs[1].iov_len = datalen; in jffs2_write_dnode()
218 ret = mtd_writev(c->mtd, vecs, 2, flash_ofs, &retlen); in jffs2_write_dnode()
267 struct iovec vecs[2]; in jffs2_write_dirent() local
279 vecs[0].iov_base = rd; in jffs2_write_dirent()
280 vecs[0].iov_len = sizeof(*rd); in jffs2_write_dirent()
281 vecs[1].iov_base = (unsigned char *)name; in jffs2_write_dirent()
282 vecs[1].iov_len = namelen; in jffs2_write_dirent()
308 ret = mtd_writev(c->mtd, vecs, 2, flash_ofs, &retlen); in jffs2_write_dirent()