/external/blktrace/btt/ |
trace.c | 23 static void __add_trace(struct io *iop) 28 iostat_check_time(iop->t.time); 37 switch (iop->t.action & 0xffff) { 38 case __BLK_TA_QUEUE: trace_queue(iop); break; 39 case __BLK_TA_REMAP: trace_remap(iop); break; 40 case __BLK_TA_INSERT: trace_insert(iop); break; 41 case __BLK_TA_GETRQ: trace_getrq(iop); break; 42 case __BLK_TA_BACKMERGE: trace_merge(iop); break; 43 case __BLK_TA_FRONTMERGE: trace_merge(iop); break; 44 case __BLK_TA_REQUEUE: trace_requeue(iop); break [all...] |
inlines.h | 124 static inline void dip_update_q(struct d_info *dip, struct io *iop) 127 update_lq(&dip->last_q, &dip->avgs.q2q_dm, iop->t.time); 129 update_lq(&dip->last_q, &dip->avgs.q2q, iop->t.time); 130 update_qregion(&dip->regions, iop->t.time); 135 struct io *iop = malloc(sizeof(*iop)); local 137 memset(iop, 0, sizeof(struct io)); 138 list_add_tail(&iop->a_head, &all_ios); 140 return iop; 143 static inline void io_free(struct io *iop) 151 struct io *iop; local [all...] |
trace_complete.c | 35 static void display_io_track(FILE *ofp, struct io *iop) 37 fprintf(ofp, "%3d,%-3d: ", MAJOR(iop->t.device), MINOR(iop->t.device)); 38 __out(ofp, iop->t.time, IOP_Q, iop->t.sector, t_sec(&iop->t), 0); 40 if (iop->g_time != (__u64)-1) 41 __out(ofp, iop->g_time, IOP_G, iop->t.sector, t_sec(&iop->t),1) [all...] |
dip_rb.c | 24 int rb_insert(struct rb_root *root, struct io *iop) 29 __u64 __s, s = BIT_START(iop); 44 rb_link_node(&iop->rb_node, parent, p); 45 rb_insert_color(&iop->rb_node, root); 67 void rb_foreach(struct rb_node *n, struct io *iop, 68 void (*fnc)(struct io *iop, struct io *this), 73 __u64 iop_s = BIT_START(iop), iop_e = BIT_END(iop); 77 if (fnc) fnc(iop, this); 82 rb_foreach(n->rb_left, iop, fnc, head) [all...] |
bno_dump.c | 45 static inline void bno_dump_write(FILE *fp, struct io *iop) 47 fprintf(fp, "%15.9lf %lld %lld\n", BIT_TIME(iop->t.time), 48 (long long)BIT_START(iop), (long long)BIT_END(iop)); 70 void bno_dump_add(void *handle, struct io *iop) 75 FILE *fp = IOP_READ(iop) ? bdp->rfp : bdp->wfp; 78 bno_dump_write(fp, iop); 80 bno_dump_write(bdp->cfp, iop);
|
globals.h | 41 #define BIT_START(iop) ((iop)->t.sector) 42 #define BIT_END(iop) ((iop)->t.sector + ((iop)->t.bytes >> 9)) 43 #define IOP_READ(iop) ((iop)->t.action & BLK_TC_ACT(BLK_TC_READ)) 44 #define IOP_RW(iop) (IOP_READ(iop) ? 1 : 0) 71 struct io *iop; member in struct:io_list [all...] |
devs.c | 37 struct io *iop = rb_entry(n, struct io, rb_node); local 41 io_release(iop); 125 struct d_info *dip_alloc(__u32 device, struct io *iop) 153 dip->start_time = BIT_TIME(iop->t.time); 164 if (iop->type == IOP_Q || iop->type == IOP_A) 170 iop->linked = dip_rb_ins(dip, iop); 171 dip->end_time = BIT_TIME(iop->t.time); 176 void iop_rem_dip(struct io *iop) [all...] |
bt_timeline.c | 101 struct io *iop = io_alloc(); local 106 while (!done && next_trace(&iop->t, &iop->pdu)) { 107 add_trace(iop); 108 iop = io_alloc(); 111 io_release(iop);
|
proc.c | 222 void pip_update_q(struct io *iop) 224 if (iop->pip) { 225 if (remapper_dev(iop->dip->device)) 226 update_lq(&iop->pip->last_q, &iop->pip->avgs.q2q_dm, 227 iop->t.time); 229 update_lq(&iop->pip->last_q, &iop->pip->avgs.q2q, 230 iop->t.time); 231 update_qregion(&iop->pip->regions, iop->t.time) [all...] |
iostat.c | 242 void iostat_getrq(struct io *iop) 244 update_tot_qusz(iop->dip, TO_SEC(iop->t.time)); 245 INC_STAT(iop->dip, cur_qusz); 248 void iostat_merge(struct io *iop) 250 INC_STAT(iop->dip, rqm[IOP_RW(iop)]); 253 void iostat_issue(struct io *iop) 255 int rw = IOP_RW(iop); 256 struct d_info *dip = iop->dip [all...] |
/external/e2fsprogs/lib/et/ |
vfprintf.c | 28 vfprintf(iop, fmt, ap) 29 FILE *iop; 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 [all...] |
/device/linaro/bootloader/edk2/StdLib/LibC/Stdio/ |
fsetpos.c | 57 fsetpos(FILE *iop, const fpos_t *pos)
59 _DIAGASSERT(iop != NULL);
62 return (fseeko(iop, (off_t)*pos, SEEK_SET));
|
/external/syslinux/com32/lib/sys/ |
close.c | 42 if (fd >= NFILES || !fp->iop || !fp->oop) { 47 if (fp->iop->close) { 48 rv = fp->iop->close(fp); 52 fp->iop = &dev_error_r;
|
isatty.c | 46 if (fd >= NFILES || !fp->iop) { 52 return (fp->iop->flags & __DEV_TTY);
|
read.c | 45 if (fd >= NFILES || !fp->iop) { 50 return fp->iop->read(fp, buf, count);
|
fstat.c | 42 if (fd >= NFILES || !fp->iop) { 47 if (fp->iop->flags & __DEV_FILE) {
|
screensize.c | 9 if (fd >= NFILES || !fp->iop) {
|
opendev.c | 56 if (!fp->iop && !fp->oop) 65 fp->iop = &dev_error_r; 74 fp->iop = idev;
|
/external/strace/ |
ioctl.c | 54 struct_ioctlent *iop; local 56 iop = bsearch((const void *) (const uintptr_t) code, ioctlent, 58 while (iop > ioctlent) { 59 iop--; 60 if (iop->code != code) { 61 iop++; 65 return iop; 69 ioctl_next_match(const struct_ioctlent *iop) 71 const unsigned int code = iop->code; 72 iop++ 335 const struct_ioctlent *iop; local [all...] |
/bionic/libc/upstream-netbsd/lib/libc/gen/ |
popen.c | 84 FILE *iop; local 162 iop = fdopen(pdes[0], xtype); 168 iop = fdopen(pdes[1], xtype); 176 cur->fp = iop; 182 return (iop); 191 pclose(FILE *iop) 197 _DIAGASSERT(iop != NULL); 203 if (cur->fp == iop) 210 (void)fclose(iop);
|
/external/mksh/src/ |
tree.c | 232 struct ioword *iop = *ioact++; local 235 if ((iop->ioflag & (IOTYPE | IOHERESTR)) == IOHERE && 236 iop->heredoc) { 238 shf_puts(iop->heredoc, shf); 240 evalstr(iop->delim, 0)); 257 pioact(struct shf *shf, struct ioword *iop) 259 unsigned short flag = iop->ioflag; 265 (type == IODUP && (iop->unit == !(flag & IORDUP))) ? iop->unit : 266 iop->unit + 1 752 struct ioword **iop; local 938 struct ioword **ioact, *iop; local [all...] |
syn.c | 183 struct ioword *iop; local 188 iop = nextiop; 190 return (iop); 196 iop = yylval.iop; 197 ishere = (iop->ioflag & IOTYPE) == IOHERE; 198 if (iop->ioflag & IOHERESTR) { 203 iop->ioflag |= IOEVAL | IONDELIM; 207 iop->delim = yylval.cp; 208 if (*ident != 0 && !(iop->ioflag & IOHERESTR)) 271 struct ioword *iop, **iops; local [all...] |
/external/blktrace/ |
blktrace.c | 1439 static int net_sendfile(struct io_info *iop) 1443 ret = sendfile(iop->ofd, iop->ifd, NULL, iop->ready); 1447 } else if (ret < (int)iop->ready) { 1449 ret, iop->ready); 1456 static inline int net_sendfile_data(struct tracer *tp, struct io_info *iop) 1458 struct devpath *dpp = iop->dpp; 1460 if (net_send_header(iop->ofd, tp->cpu, dpp->buts_name, iop->ready) 1576 struct io_info *iop = &tp->ios[--tp->nios]; local 1599 struct io_info *iop; local 1667 struct io_info *iop = tp->ios; local 1711 struct io_info *iop = tp->ios; local 1745 struct io_info *iop = tp->ios; local 2241 struct io_info *iop; local 2301 struct io_info *iop; local 2368 struct io_info *iop = &dpp->ios[bnh->cpu]; local [all...] |
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/ |
TokenRewriteStream.as | 325 var iop:InsertBeforeOp = InsertBeforeOp(inserts[j]); 326 if ( iop.index >= rop.index && iop.index <= rop.lastIndex ) { 327 rewrites[iop.instructionIndex] = null; // delete insert as it's a no-op. 355 iop = InsertBeforeOp(rewrites[i]); 360 if ( prevIop.index == iop.index ) { // combine objects 363 iop.text = catOpText(iop.text,prevIop.text); 367 // look for replaces where iop.index is in range; error 371 if ( iop.index == rop.index ) [all...] |
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/ |
TokenRewriteStream.cs | 582 InsertBeforeOp iop = (InsertBeforeOp)inserts[j]; 583 if (iop.index == rop.index) 587 rewrites[iop.instructionIndex] = null; 588 rop.text = iop.text.ToString() + (rop.text != null ? rop.text.ToString() : string.Empty); 590 else if (iop.index > rop.index && iop.index <= rop.lastIndex) 593 rewrites[iop.instructionIndex] = null; 638 InsertBeforeOp iop = (InsertBeforeOp)rewrites[i]; 644 if ( prevIop.index == iop.index ) 648 iop.text = CatOpText( iop.text, prevIop.text ) [all...] |