Home
last modified time | relevance | path

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

12

/external/blktrace/btt/
Dtrace.c23 static void __add_trace(struct io *iop) in __add_trace() argument
28 iostat_check_time(iop->t.time); in __add_trace()
37 switch (iop->t.action & 0xffff) { in __add_trace()
38 case __BLK_TA_QUEUE: trace_queue(iop); break; in __add_trace()
39 case __BLK_TA_REMAP: trace_remap(iop); break; in __add_trace()
40 case __BLK_TA_INSERT: trace_insert(iop); break; in __add_trace()
41 case __BLK_TA_GETRQ: trace_getrq(iop); break; in __add_trace()
42 case __BLK_TA_BACKMERGE: trace_merge(iop); break; in __add_trace()
43 case __BLK_TA_FRONTMERGE: trace_merge(iop); break; in __add_trace()
44 case __BLK_TA_REQUEUE: trace_requeue(iop); break; in __add_trace()
[all …]
Dinlines.h124 static inline void dip_update_q(struct d_info *dip, struct io *iop) in dip_update_q() argument
127 update_lq(&dip->last_q, &dip->avgs.q2q_dm, iop->t.time); in dip_update_q()
129 update_lq(&dip->last_q, &dip->avgs.q2q, iop->t.time); in dip_update_q()
130 update_qregion(&dip->regions, iop->t.time); in dip_update_q()
135 struct io *iop = malloc(sizeof(*iop)); in io_alloc() local
137 memset(iop, 0, sizeof(struct io)); in io_alloc()
138 list_add_tail(&iop->a_head, &all_ios); in io_alloc()
140 return iop; in io_alloc()
143 static inline void io_free(struct io *iop) in io_free() argument
145 list_del(&iop->a_head); in io_free()
[all …]
Dtrace_complete.c35 static void display_io_track(FILE *ofp, struct io *iop) in display_io_track() argument
37 fprintf(ofp, "%3d,%-3d: ", MAJOR(iop->t.device), MINOR(iop->t.device)); in display_io_track()
38 __out(ofp, iop->t.time, IOP_Q, iop->t.sector, t_sec(&iop->t), 0); in display_io_track()
40 if (iop->g_time != (__u64)-1) in display_io_track()
41 __out(ofp, iop->g_time, IOP_G, iop->t.sector, t_sec(&iop->t),1); in display_io_track()
42 if (iop->i_time != (__u64)-1) in display_io_track()
43 __out(ofp, iop->i_time, IOP_I, iop->t.sector, t_sec(&iop->t),1); in display_io_track()
44 if (iop->m_time != (__u64)-1) in display_io_track()
45 __out(ofp, iop->m_time, IOP_M, iop->t.sector, t_sec(&iop->t),1); in display_io_track()
47 __out(ofp, iop->d_time, IOP_D, iop->d_sec, iop->d_nsec, 1); in display_io_track()
[all …]
Dglobals.h41 #define BIT_START(iop) ((iop)->t.sector) argument
42 #define BIT_END(iop) ((iop)->t.sector + ((iop)->t.bytes >> 9)) argument
43 #define IOP_READ(iop) ((iop)->t.action & BLK_TC_ACT(BLK_TC_READ)) argument
44 #define IOP_RW(iop) (IOP_READ(iop) ? 1 : 0) argument
71 struct io *iop; member
208 struct d_info *dip_alloc(__u32 device, struct io *iop);
209 void iop_rem_dip(struct io *iop);
211 void dip_foreach_list(struct io *iop, enum iop_type type, struct list_head *hd);
212 void dip_foreach(struct io *iop, enum iop_type type,
213 void (*fnc)(struct io *iop, struct io *this), int rm_after);
[all …]
Ddevs.c37 struct io *iop = rb_entry(n, struct io, rb_node); in __destroy() local
41 io_release(iop); in __destroy()
125 struct d_info *dip_alloc(__u32 device, struct io *iop) in dip_alloc() argument
153 dip->start_time = BIT_TIME(iop->t.time); in dip_alloc()
164 if (iop->type == IOP_Q || iop->type == IOP_A) in dip_alloc()
170 iop->linked = dip_rb_ins(dip, iop); in dip_alloc()
171 dip->end_time = BIT_TIME(iop->t.time); in dip_alloc()
176 void iop_rem_dip(struct io *iop) in iop_rem_dip() argument
178 if (iop->linked) { in iop_rem_dip()
179 dip_rb_rem(iop); in iop_rem_dip()
[all …]
Ddip_rb.c24 int rb_insert(struct rb_root *root, struct io *iop) in rb_insert() argument
29 __u64 __s, s = BIT_START(iop); in rb_insert()
44 rb_link_node(&iop->rb_node, parent, p); in rb_insert()
45 rb_insert_color(&iop->rb_node, root); in rb_insert()
67 void rb_foreach(struct rb_node *n, struct io *iop, in rb_foreach() argument
68 void (*fnc)(struct io *iop, struct io *this), in rb_foreach() argument
73 __u64 iop_s = BIT_START(iop), iop_e = BIT_END(iop); in rb_foreach()
77 if (fnc) fnc(iop, this); in rb_foreach()
82 rb_foreach(n->rb_left, iop, fnc, head); in rb_foreach()
84 rb_foreach(n->rb_right, iop, fnc, head); in rb_foreach()
Dbno_dump.c45 static inline void bno_dump_write(FILE *fp, struct io *iop) in bno_dump_write() argument
47 fprintf(fp, "%15.9lf %lld %lld\n", BIT_TIME(iop->t.time), in bno_dump_write()
48 (long long)BIT_START(iop), (long long)BIT_END(iop)); in bno_dump_write()
70 void bno_dump_add(void *handle, struct io *iop) in bno_dump_add() argument
75 FILE *fp = IOP_READ(iop) ? bdp->rfp : bdp->wfp; in bno_dump_add()
78 bno_dump_write(fp, iop); in bno_dump_add()
80 bno_dump_write(bdp->cfp, iop); in bno_dump_add()
Dproc.c222 void pip_update_q(struct io *iop) in pip_update_q() argument
224 if (iop->pip) { in pip_update_q()
225 if (remapper_dev(iop->dip->device)) in pip_update_q()
226 update_lq(&iop->pip->last_q, &iop->pip->avgs.q2q_dm, in pip_update_q()
227 iop->t.time); in pip_update_q()
229 update_lq(&iop->pip->last_q, &iop->pip->avgs.q2q, in pip_update_q()
230 iop->t.time); in pip_update_q()
231 update_qregion(&iop->pip->regions, iop->t.time); in pip_update_q()
Dbt_timeline.c101 struct io *iop = io_alloc(); in process() local
106 while (!done && next_trace(&iop->t, &iop->pdu)) { in process()
107 add_trace(iop); in process()
108 iop = io_alloc(); in process()
111 io_release(iop); in process()
Diostat.c242 void iostat_getrq(struct io *iop) in iostat_getrq() argument
244 update_tot_qusz(iop->dip, TO_SEC(iop->t.time)); in iostat_getrq()
245 INC_STAT(iop->dip, cur_qusz); in iostat_getrq()
248 void iostat_merge(struct io *iop) in iostat_merge() argument
250 INC_STAT(iop->dip, rqm[IOP_RW(iop)]); in iostat_merge()
253 void iostat_issue(struct io *iop) in iostat_issue() argument
255 int rw = IOP_RW(iop); in iostat_issue()
256 struct d_info *dip = iop->dip; in iostat_issue()
257 double now = TO_SEC(iop->t.time); in iostat_issue()
260 ADD_STAT(dip, sec[rw], iop->t.bytes >> 9); in iostat_issue()
Dseek.c184 long long seek_dist(struct seeki *sip, struct io *iop) in seek_dist() argument
187 long long start = BIT_START(iop), end = BIT_END(iop); in seek_dist()
251 void seeki_add(void *handle, struct io *iop) in seeki_add() argument
254 char rw = IOP_READ(iop) ? 'r' : 'w'; in seeki_add()
255 long long dist = seek_dist(sip, iop); in seeki_add()
256 double tstamp = BIT_TIME(iop->t.time); in seeki_add()
257 FILE *fp = IOP_READ(iop) ? sip->rfp : sip->wfp; in seeki_add()
/external/e2fsprogs/lib/et/
Dvfprintf.c28 vfprintf(iop, fmt, ap) in vfprintf() argument
29 FILE *iop; in vfprintf()
36 if (iop->_flag & _IONBF) {
37 iop->_flag &= ~_IONBF;
38 iop->_ptr = iop->_base = localbuf;
39 len = _doprnt(fmt, ap, iop);
40 (void) fflush(iop);
41 iop->_flag |= _IONBF;
42 iop->_base = NULL;
43 iop->_bufsiz = 0;
[all …]
/external/strace/
Dioctl.c54 struct_ioctlent *iop; in ioctl_lookup() local
56 iop = bsearch((const void *) (const uintptr_t) code, ioctlent, in ioctl_lookup()
58 while (iop > ioctlent) { in ioctl_lookup()
59 iop--; in ioctl_lookup()
60 if (iop->code != code) { in ioctl_lookup()
61 iop++; in ioctl_lookup()
65 return iop; in ioctl_lookup()
69 ioctl_next_match(const struct_ioctlent *iop) in ioctl_next_match() argument
71 const unsigned int code = iop->code; in ioctl_next_match()
72 iop++; in ioctl_next_match()
[all …]
/external/blktrace/
Dblktrace.c1439 static int net_sendfile(struct io_info *iop) in net_sendfile() argument
1443 ret = sendfile(iop->ofd, iop->ifd, NULL, iop->ready); in net_sendfile()
1447 } else if (ret < (int)iop->ready) { in net_sendfile()
1449 ret, iop->ready); in net_sendfile()
1456 static inline int net_sendfile_data(struct tracer *tp, struct io_info *iop) in net_sendfile_data() argument
1458 struct devpath *dpp = iop->dpp; in net_sendfile_data()
1460 if (net_send_header(iop->ofd, tp->cpu, dpp->buts_name, iop->ready)) in net_sendfile_data()
1462 return net_sendfile(iop); in net_sendfile_data()
1465 static int fill_ofname(struct io_info *iop, int cpu) in fill_ofname() argument
1469 char *dst = iop->ofn; in fill_ofname()
[all …]
/external/mksh/src/
Dtree.c232 struct ioword *iop = *ioact++; in ptree() local
235 if ((iop->ioflag & (IOTYPE | IOHERESTR)) == IOHERE && in ptree()
236 iop->heredoc) { in ptree()
238 shf_puts(iop->heredoc, shf); in ptree()
240 evalstr(iop->delim, 0)); in ptree()
257 pioact(struct shf *shf, struct ioword *iop) in pioact() argument
259 unsigned short flag = iop->ioflag; in pioact()
265 (type == IODUP && (iop->unit == !(flag & IORDUP))) ? iop->unit : in pioact()
266 iop->unit + 1; in pioact()
267 if (iop->unit != expected) in pioact()
[all …]
Dsyn.c179 struct ioword *iop; in synio() local
184 iop = nextiop; in synio()
186 return (iop); in synio()
192 iop = yylval.iop; in synio()
193 ishere = (iop->ioflag & IOTYPE) == IOHERE; in synio()
194 if (iop->ioflag & IOHERESTR) { in synio()
199 iop->ioflag |= IOEVAL | IONDELIM; in synio()
203 iop->delim = yylval.cp; in synio()
204 if (*ident != 0 && !(iop->ioflag & IOHERESTR)) { in synio()
206 iop->ioflag |= IOEVAL; in synio()
[all …]
Dlex.c899 struct ioword *iop = alloc(sizeof(struct ioword), ATEMP); in yylex() local
901 iop->unit = c2 == 2 ? ksh_numdig(dp[1]) : c == '<' ? 0 : 1; in yylex()
909 iop->ioflag = IOBASH; in yylex()
911 iop->ioflag = 0; in yylex()
916 iop->ioflag |= c == c2 ? in yylex()
918 if (iop->ioflag == IOHERE) { in yylex()
920 iop->ioflag |= IOSKIP; in yylex()
922 iop->ioflag |= IOHERESTR; in yylex()
927 iop->ioflag |= IODUP | (c == '<' ? IORDUP : 0); in yylex()
929 iop->ioflag |= c == '>' ? IOWRITE : IOREAD; in yylex()
[all …]
Dexec.c1395 iosetup(struct ioword *iop, struct tbl *tp) in iosetup() argument
1398 char *cp = iop->ioname; in iosetup()
1399 int iotype = iop->ioflag & IOTYPE; in iosetup()
1409 iotmp = *iop; in iosetup()
1429 if (Flag(FNOCLOBBER) && !(iop->ioflag & IOCLOB)) { in iosetup()
1459 u = herein(iop, NULL); in iosetup()
1472 X_OK | ((iop->ioflag & IORDUP) ? R_OK : W_OK), in iosetup()
1481 if (u == (int)iop->unit) in iosetup()
1519 if (e->savefd[iop->unit] == 0) { in iosetup()
1521 if (u == (int)iop->unit) in iosetup()
[all …]
/external/syslinux/com32/lib/sys/
Dclose.c42 if (fd >= NFILES || !fp->iop || !fp->oop) { in close()
47 if (fp->iop->close) { in close()
48 rv = fp->iop->close(fp); in close()
52 fp->iop = &dev_error_r; in close()
Dopendev.c56 if (!fp->iop && !fp->oop) in opendev()
65 fp->iop = &dev_error_r; in opendev()
74 fp->iop = idev; in opendev()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/
DTokenRewriteStream.cs582 InsertBeforeOp iop = (InsertBeforeOp)inserts[j]; in ReduceToSingleOperationPerIndex()
583 if (iop.index == rop.index) in ReduceToSingleOperationPerIndex()
587 rewrites[iop.instructionIndex] = null; in ReduceToSingleOperationPerIndex()
588 … rop.text = iop.text.ToString() + (rop.text != null ? rop.text.ToString() : string.Empty); in ReduceToSingleOperationPerIndex()
590 else if (iop.index > rop.index && iop.index <= rop.lastIndex) in ReduceToSingleOperationPerIndex()
593 rewrites[iop.instructionIndex] = null; in ReduceToSingleOperationPerIndex()
638 InsertBeforeOp iop = (InsertBeforeOp)rewrites[i]; in ReduceToSingleOperationPerIndex()
644 if ( prevIop.index == iop.index ) in ReduceToSingleOperationPerIndex()
648 iop.text = CatOpText( iop.text, prevIop.text ); in ReduceToSingleOperationPerIndex()
658 if ( iop.index == rop.index ) in ReduceToSingleOperationPerIndex()
[all …]
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
DTokenRewriteStream.java468 InsertBeforeOp iop = (InsertBeforeOp) inserts.get(j); in reduceToSingleOperationPerIndex() local
469 if ( iop.index == rop.index ) { in reduceToSingleOperationPerIndex()
472 rewrites.set(iop.instructionIndex, null); in reduceToSingleOperationPerIndex()
473 rop.text = iop.text.toString() + (rop.text!=null?rop.text.toString():""); in reduceToSingleOperationPerIndex()
475 else if ( iop.index > rop.index && iop.index <= rop.lastIndex ) { in reduceToSingleOperationPerIndex()
477 rewrites.set(iop.instructionIndex, null); in reduceToSingleOperationPerIndex()
515 InsertBeforeOp iop = (InsertBeforeOp)rewrites.get(i); in reduceToSingleOperationPerIndex() local
520 if ( prevIop.index == iop.index ) { // combine objects in reduceToSingleOperationPerIndex()
523 iop.text = catOpText(iop.text,prevIop.text); in reduceToSingleOperationPerIndex()
532 if ( iop.index == rop.index ) { in reduceToSingleOperationPerIndex()
[all …]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
DTokenRewriteStream.cs504 InsertBeforeOp iop = (InsertBeforeOp)inserts[j]; in ReduceToSingleOperationPerIndex()
505 if (iop.index >= rop.index && iop.index <= rop.lastIndex) { in ReduceToSingleOperationPerIndex()
507 rewrites[iop.instructionIndex] = null; in ReduceToSingleOperationPerIndex()
538 InsertBeforeOp iop = (InsertBeforeOp)rewrites[i]; in ReduceToSingleOperationPerIndex()
543 if (prevIop.index == iop.index) { // combine objects in ReduceToSingleOperationPerIndex()
546 iop.text = CatOpText(iop.text, prevIop.text); in ReduceToSingleOperationPerIndex()
555 if (iop.index == rop.index) { in ReduceToSingleOperationPerIndex()
556 rop.text = CatOpText(iop.text, rop.text); in ReduceToSingleOperationPerIndex()
560 if (iop.index >= rop.index && iop.index <= rop.lastIndex) { in ReduceToSingleOperationPerIndex()
561 throw new ArgumentException("insert op " + iop + in ReduceToSingleOperationPerIndex()
/external/kernel-headers/original/uapi/linux/
Di2o-dev.h49 unsigned int iop; /* IOP unit number */ member
54 unsigned int iop; /* IOP unit number */ member
59 unsigned int iop; /* IOP unit number */ member
65 unsigned int iop; /* IOP unit number */ member
74 unsigned int iop; /* IOP unit number */ member
85 unsigned int iop; /* IOP unit number */ member
97 unsigned int iop; member
/external/antlr/antlr-3.4/runtime/Python/antlr3/
Dstreams.py1401 for j, iop in self.getKindOfOps(rewrites, InsertBeforeOp, i):
1402 if iop.index == rop.index:
1405 rewrites[iop.instructionIndex] = None
1406 rop.text = self.catOpText(iop.text, rop.text)
1408 elif iop.index > rop.index and iop.index <= rop.lastIndex:
1442 for i, iop in enumerate(rewrites):
1443 if iop is None:
1446 if not isinstance(iop, InsertBeforeOp):
1451 if prevIop.index == iop.index: # combine objects
1455 iop.text = self.catOpText(iop.text, prevIop.text)
[all …]

12