Lines Matching defs:icount
85 static void verbose_dump_buffer(void *pbuf, int icount, int lsb);
725 int err, idx, icount;
730 icount = popt->count;
733 if (icount <= 0) {
737 if (icount != 1)
750 fprintf(stderr, "Binary output of %d %s\n", icount,
753 err = (int)fwrite(pbuf, 1, icount, stdout) != icount;
755 else if (icount > 0) {
757 fprintf(stderr, "ASCII output of %d %s\n", icount,
761 for (idx = 0; !err && idx < icount; idx++) {
781 else if (popt->verbose > 0 && icount) {
784 popt->ncmd, sz_byte2, icount, sz_bytes);
787 verbose_dump_buffer(pr, icount + popt->ncmd, popt->lsb);
796 int icount, err;
800 icount = popt->count + popt->ncmd;
803 pw = malloc(icount);
810 bzero(pw, icount);
816 pr = malloc(icount + 1);
823 bzero(pr, icount);
825 err = _read_write(hdev, pw, pr, icount, popt->lsb);
865 int icount, err;
871 icount = popt->count + popt->ncmd; /* assign after fn call */
878 pr = malloc(icount + 1);
885 bzero(pr, icount);
887 err = _read_write(hdev, pw, pr, icount, popt->lsb);
902 verbose_dump_buffer(void *pbuf, int icount, int lsb)
910 for (ictr = 0; ictr < icount; ictr += 16) {
916 if (idx < icount) {
934 if (idx < icount) {
945 else if (idx < icount) {