Lines Matching full:if
14 This driver may be used if you are writing printer firmware using Linux as
50 BEFORE RELEASING A PRODUCT. If you plan to release a product and don't
57 your other USB products if you have any. It would be a good idea to
177 if (option) {
212 if (fd[0].fd < 0) {
228 if (retval && (fd[0].revents & POLLRDNORM)) {
233 if (bytes_read < 0) {
238 } else if (bytes_read > 0) {
262 if (fd[0].fd < 0) {
276 if (!bytes_read) {
286 if (retval && (fd[0].revents & POLLWRNORM)) {
288 if (retval < 0) {
323 if (fd < 0) {
332 if (bytes_read <= 0) {
356 if (fd < 0) {
364 if (retval < 0) {
383 if (retval < 0) {
391 if (fd < 0) {
397 if (clear_printer_status_bit) {
404 if (ioctl(fd, GADGET_SET_PRINTER_STATUS, (unsigned char)retval)) {
422 if (printer_status < 0) {
428 if (printer_status & PRINTER_SELECTED) {
433 if (printer_status & PRINTER_PAPER_EMPTY) {
438 if (printer_status & PRINTER_NOT_ERROR) {
455 if (argc == 1) {
462 if (argv[i][0] != '-') {
466 if (!strcmp(argv[i], "-get_status")) {
467 if (display_printer_status()) {
471 } else if (!strcmp(argv[i], "-paper_loaded")) {
472 if (set_printer_status(PRINTER_PAPER_EMPTY, 1)) {
476 } else if (!strcmp(argv[i], "-paper_out")) {
477 if (set_printer_status(PRINTER_PAPER_EMPTY, 0)) {
481 } else if (!strcmp(argv[i], "-selected")) {
482 if (set_printer_status(PRINTER_SELECTED, 0)) {
486 } else if (!strcmp(argv[i], "-not_selected")) {
487 if (set_printer_status(PRINTER_SELECTED, 1)) {
491 } else if (!strcmp(argv[i], "-error")) {
492 if (set_printer_status(PRINTER_NOT_ERROR, 1)) {
496 } else if (!strcmp(argv[i], "-no_error")) {
497 if (set_printer_status(PRINTER_NOT_ERROR, 0)) {
501 } else if (!strcmp(argv[i], "-read_data")) {
502 if (read_printer_data()) {
506 } else if (!strcmp(argv[i], "-write_data")) {
507 if (write_printer_data()) {
511 } else if (!strcmp(argv[i], "-NB_read_data")) {
512 if (read_NB_printer_data()) {