Home
last modified time | relevance | path

Searched refs:vecs (Results 1 – 8 of 8) sorted by relevance

/linux-2.4.37.9/fs/jffs2/
Dwrite.c116 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()
[all …]
/linux-2.4.37.9/drivers/mtd/
Dmtdcore.c210 int default_mtd_writev(struct mtd_info *mtd, const struct iovec *vecs, in default_mtd_writev() argument
221 if (!vecs[i].iov_len) in default_mtd_writev()
223 ret = mtd->write(mtd, to, vecs[i].iov_len, &thislen, vecs[i].iov_base); in default_mtd_writev()
225 if (ret || thislen != vecs[i].iov_len) in default_mtd_writev()
227 to += vecs[i].iov_len; in default_mtd_writev()
240 int default_mtd_readv(struct mtd_info *mtd, struct iovec *vecs, in default_mtd_readv() argument
251 if (!vecs[i].iov_len) in default_mtd_readv()
253 ret = mtd->read(mtd, from, vecs[i].iov_len, &thislen, vecs[i].iov_base); in default_mtd_readv()
255 if (ret || thislen != vecs[i].iov_len) in default_mtd_readv()
257 from += vecs[i].iov_len; in default_mtd_readv()
Dmtdpart.c171 static int part_writev (struct mtd_info *mtd, const struct iovec *vecs, in part_writev() argument
177 return part->master->writev (part->master, vecs, count, in part_writev()
181 static int part_readv (struct mtd_info *mtd, struct iovec *vecs, in part_readv() argument
185 return part->master->readv (part->master, vecs, count, in part_readv()
189 static int part_writev_ecc (struct mtd_info *mtd, const struct iovec *vecs, in part_writev_ecc() argument
196 return part->master->writev_ecc (part->master, vecs, count, in part_writev_ecc()
201 static int part_readv_ecc (struct mtd_info *mtd, struct iovec *vecs, in part_readv_ecc() argument
206 return part->master->readv_ecc (part->master, vecs, count, in part_readv_ecc()
/linux-2.4.37.9/include/linux/mtd/
Dmtd.h202 …int (*readv) (struct mtd_info *mtd, struct iovec *vecs, unsigned long count, loff_t from, size_t *…
203 int (*readv_ecc) (struct mtd_info *mtd, struct iovec *vecs, unsigned long count, loff_t from,
205 …int (*writev) (struct mtd_info *mtd, const struct iovec *vecs, unsigned long count, loff_t to, siz…
206 int (*writev_ecc) (struct mtd_info *mtd, const struct iovec *vecs, unsigned long count, loff_t to,
260 int default_mtd_writev(struct mtd_info *mtd, const struct iovec *vecs,
263 int default_mtd_readv(struct mtd_info *mtd, struct iovec *vecs,
/linux-2.4.37.9/drivers/mtd/nand/
Dnand.c167 static int nand_writev (struct mtd_info *mtd, const struct iovec *vecs,
169 static int nand_writev_ecc (struct mtd_info *mtd, const struct iovec *vecs,
972 static int nand_writev (struct mtd_info *mtd, const struct iovec *vecs, unsigned long count, in nand_writev() argument
975 return (nand_writev_ecc (mtd, vecs, count, to, retlen, NULL, 0)); in nand_writev()
978 static int nand_writev_ecc (struct mtd_info *mtd, const struct iovec *vecs, unsigned long count, in nand_writev_ecc() argument
987 total_len += (int) vecs[i].iov_len; in nand_writev_ecc()
1029 if (!cnt && (vecs->iov_len - len) >= mtd->oobblock) { in nand_writev_ecc()
1031 this->data_poi = (u_char *) vecs->iov_base; in nand_writev_ecc()
1035 if (len >= (int) vecs->iov_len) { in nand_writev_ecc()
1036 vecs++; in nand_writev_ecc()
[all …]
/linux-2.4.37.9/drivers/scsi/
Dsun3_scsi_vme.c151 unsigned long vecs[3] = { SUN3_VEC_VMESCSI0, in sun3scsi_detect() local
190 irq = vecs[i]; in sun3scsi_detect()
/linux-2.4.37.9/drivers/mtd/chips/
Dcfi_cmdset_0020.c38 static int cfi_staa_writev(struct mtd_info *mtd, const struct iovec *vecs,
695 cfi_staa_writev(struct mtd_info *mtd, const struct iovec *vecs, in cfi_staa_writev() argument
715 size_t elem_len = vecs[i].iov_len; in cfi_staa_writev()
716 void *elem_base = vecs[i].iov_base; in cfi_staa_writev()
/linux-2.4.37.9/fs/jffs/
Dintrep.c215 flash_safe_writev(struct mtd_info *mtd, const struct iovec *vecs, in flash_safe_writev() argument
223 mtd, (unsigned int) to, vecs)); in flash_safe_writev()
226 res = MTD_WRITEV(mtd, vecs, iovec_cnt, to, &retlen); in flash_safe_writev()
236 res = MTD_WRITE(mtd, to, vecs[i].iov_len, &retlen_a, vecs[i].iov_base); in flash_safe_writev()
237 if (retlen_a != vecs[i].iov_len) { in flash_safe_writev()