Lines Matching refs:G
123 #define G (*(struct globals*)bb_common_bufsiz1) macro
127 memset(&G, 0, sizeof(G)); \
169 G.in_full, G.in_part, in dd_output_status()
170 G.out_full, G.out_part); in dd_output_status()
174 if (G.flags & FLAG_STATUS_NOXFER) /* status=noxfer active? */ in dd_output_status()
182 , G.total_bytes, in dd_output_status()
184 make_human_readable_str(G.total_bytes, 1, 0) in dd_output_status()
192 seconds = (now_us - G.begin_time_us) / 1000000.0; in dd_output_status()
193 bytes_sec = G.total_bytes / seconds; in dd_output_status()
222 if (G.flags & FLAG_FULLBLOCK) in dd_read()
228 if (n < 0 && (G.flags & FLAG_IDIRECT) && clear_O_DIRECT(ifd)) in dd_read()
242 if (n < 0 && (G.flags & FLAG_ODIRECT) && clear_O_DIRECT(ofd)) in write_and_stats()
248 G.total_bytes += n; in write_and_stats()
251 G.out_full++; in write_and_stats()
255 G.out_part++; in write_and_stats()
434 G.flags |= parse_comma_flags(val, conv_words, "conv"); in dd_main()
438 G.flags |= parse_comma_flags(val, iflag_words, "iflag") << FLAG_IFLAG_SHIFT; in dd_main()
442 G.flags |= parse_comma_flags(val, oflag_words, "oflag") << FLAG_OFLAG_SHIFT; in dd_main()
453 G.flags |= FLAG_COUNT; in dd_main()
479 G.flags |= FLAG_STATUS_NONE << n; in dd_main()
489 G.flags |= FLAG_TWOBUFS; in dd_main()
498 G.begin_time_us = monotonic_us(); in dd_main()
504 if (G.flags & FLAG_IDIRECT) in dd_main()
514 if (!seek && !(G.flags & FLAG_NOTRUNC)) in dd_main()
516 if (G.flags & FLAG_APPEND) in dd_main()
519 if (G.flags & FLAG_ODIRECT) in dd_main()
524 if (seek && !(G.flags & FLAG_NOTRUNC)) { in dd_main()
525 size_t blocksz = (G.flags & FLAG_SEEK_BYTES) ? 1 : obs; in dd_main()
541 size_t blocksz = (G.flags & FLAG_SKIP_BYTES) ? 1 : ibs; in dd_main()
553 size_t blocksz = (G.flags & FLAG_SEEK_BYTES) ? 1 : obs; in dd_main()
561 if (G.flags & FLAG_COUNT) { in dd_main()
564 if ((G.flags & FLAG_COUNT_BYTES) && count < ibs) in dd_main()
573 if (!(G.flags & FLAG_NOERROR)) in dd_main()
582 if (G.flags & FLAG_SWAB) { in dd_main()
603 count -= (G.flags & FLAG_COUNT_BYTES) ? n : 1; in dd_main()
605 G.in_full++; in dd_main()
607 G.in_part++; in dd_main()
608 if (G.flags & FLAG_SYNC) { in dd_main()
614 if (G.flags & FLAG_TWOBUFS) { in dd_main()
638 if (G.flags & FLAG_FSYNC) { in dd_main()
661 if (!ENABLE_FEATURE_DD_STATUS || !(G.flags & FLAG_STATUS_NONE)) in dd_main()
667 if (G.flags & FLAG_TWOBUFS) in dd_main()