• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/scsi/

Lines Matching refs:ppb

197 	unsigned short ppb = dev->base;
202 for (r = r_str(ppb); ((r & 0xc0) != 0xc0) && (k); k--) {
204 r = r_str(ppb);
226 static inline void epp_reset(unsigned short ppb)
230 i = r_str(ppb);
231 w_str(ppb, i);
232 w_str(ppb, i & 0xfe);
295 unsigned short ppb = dev->base;
307 r = ppa_byte_out(ppb, buffer, len);
313 epp_reset(ppb);
314 w_ctr(ppb, 0x4);
317 outsw(ppb + 4, buffer, len >> 1);
320 outsl(ppb + 4, buffer, len >> 2);
323 outsb(ppb + 4, buffer, len);
324 w_ctr(ppb, 0xc);
325 r = !(r_str(ppb) & 0x01);
326 w_ctr(ppb, 0xc);
340 unsigned short ppb = dev->base;
351 r = ppa_nibble_in(ppb, buffer, len);
352 w_ctr(ppb, 0xc);
357 w_ctr(ppb, 0x25);
358 r = ppa_byte_in(ppb, buffer, len);
359 w_ctr(ppb, 0x4);
360 w_ctr(ppb, 0xc);
366 epp_reset(ppb);
367 w_ctr(ppb, 0x24);
370 insw(ppb + 4, buffer, len >> 1);
373 insl(ppb + 4, buffer, len >> 2);
376 insb(ppb + 4, buffer, len);
377 w_ctr(ppb, 0x2c);
378 r = !(r_str(ppb) & 0x01);
379 w_ctr(ppb, 0x2c);
392 static inline void ppa_d_pulse(unsigned short ppb, unsigned char b)
394 w_dtr(ppb, b);
395 w_ctr(ppb, 0xc);
396 w_ctr(ppb, 0xe);
397 w_ctr(ppb, 0xc);
398 w_ctr(ppb, 0x4);
399 w_ctr(ppb, 0xc);
404 unsigned short ppb = dev->base;
406 ppa_d_pulse(ppb, 0);
407 ppa_d_pulse(ppb, 0x3c);
408 ppa_d_pulse(ppb, 0x20);
409 ppa_d_pulse(ppb, 0xf);
412 static inline void ppa_c_pulse(unsigned short ppb, unsigned char b)
414 w_dtr(ppb, b);
415 w_ctr(ppb, 0x4);
416 w_ctr(ppb, 0x6);
417 w_ctr(ppb, 0x4);
418 w_ctr(ppb, 0xc);
423 unsigned short ppb = dev->base;
425 ppa_c_pulse(ppb, 0);
426 ppa_c_pulse(ppb, 0x3c);
427 ppa_c_pulse(ppb, 0x20);
429 ppa_c_pulse(ppb, 0xcf);
431 ppa_c_pulse(ppb, 0x8f);
437 unsigned short ppb = dev->base;
447 } while ((r_str(ppb) & 0x40) && (k));
451 w_dtr(ppb, (1 << target));
452 w_ctr(ppb, 0xe);
453 w_ctr(ppb, 0xc);
454 w_dtr(ppb, 0x80); /* This is NOT the initator */
455 w_ctr(ppb, 0x8);
462 while (!(r_str(ppb) & 0x40) && (k));
481 unsigned short ppb = dev->base;
488 w_ctr(ppb, 0xe);
489 if ((r_str(ppb) & 0x08) == 0x08)
492 w_ctr(ppb, 0xc);
493 if ((r_str(ppb) & 0x08) == 0x00)
497 ppa_reset_pulse(ppb);
537 unsigned short ppb = dev->base;
551 r = (r_str(ppb) & 0xf0);
581 for (; k && ((r = (r_str(ppb) & 0xf0)) & 0xc0) != 0xc0;
617 r = (r_str(ppb) & 0xf0);
690 unsigned short ppb = dev->base;
717 w_ctr(ppb, 0xe);
718 if ((r_str(ppb) & 0x08) == 0x08)
721 w_ctr(ppb, 0xc);
722 if ((r_str(ppb) & 0x08) == 0x00)
747 w_ctr(ppb, 0x0c);
748 if (!(r_str(ppb) & 0x80))
774 w_ctr(ppb, 0x0c);
775 if (!(r_str(ppb) & 0x80))
903 int loop, old_mode, status, k, ppb = dev->base;
909 if ((ppb & 0x0007) == 0x0000)
924 w_ctr(ppb, 0x0c);
931 w_dtr(ppb, 0x40);
932 w_ctr(ppb, 0x08);
934 w_ctr(ppb, 0x0c);
944 w_ctr(ppb, 0x0c);
947 l = r_str(ppb);
957 ppa_reset_pulse(ppb);
971 ppa_reset_pulse(ppb);
1017 int modes, ppb, ppb_hi;
1053 ppb = dev->base = dev->dev->port->base;
1055 w_ctr(ppb, 0x0c);