• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/

Lines Matching refs:ppb

198 	unsigned short ppb = dev->base;
203 for (r = r_str(ppb); ((r & 0xc0) != 0xc0) && (k); k--) {
205 r = r_str(ppb);
227 static inline void epp_reset(unsigned short ppb)
231 i = r_str(ppb);
232 w_str(ppb, i);
233 w_str(ppb, i & 0xfe);
296 unsigned short ppb = dev->base;
308 r = ppa_byte_out(ppb, buffer, len);
314 epp_reset(ppb);
315 w_ctr(ppb, 0x4);
318 outsw(ppb + 4, buffer, len >> 1);
321 outsl(ppb + 4, buffer, len >> 2);
324 outsb(ppb + 4, buffer, len);
325 w_ctr(ppb, 0xc);
326 r = !(r_str(ppb) & 0x01);
327 w_ctr(ppb, 0xc);
341 unsigned short ppb = dev->base;
352 r = ppa_nibble_in(ppb, buffer, len);
353 w_ctr(ppb, 0xc);
358 w_ctr(ppb, 0x25);
359 r = ppa_byte_in(ppb, buffer, len);
360 w_ctr(ppb, 0x4);
361 w_ctr(ppb, 0xc);
367 epp_reset(ppb);
368 w_ctr(ppb, 0x24);
371 insw(ppb + 4, buffer, len >> 1);
374 insl(ppb + 4, buffer, len >> 2);
377 insb(ppb + 4, buffer, len);
378 w_ctr(ppb, 0x2c);
379 r = !(r_str(ppb) & 0x01);
380 w_ctr(ppb, 0x2c);
393 static inline void ppa_d_pulse(unsigned short ppb, unsigned char b)
395 w_dtr(ppb, b);
396 w_ctr(ppb, 0xc);
397 w_ctr(ppb, 0xe);
398 w_ctr(ppb, 0xc);
399 w_ctr(ppb, 0x4);
400 w_ctr(ppb, 0xc);
405 unsigned short ppb = dev->base;
407 ppa_d_pulse(ppb, 0);
408 ppa_d_pulse(ppb, 0x3c);
409 ppa_d_pulse(ppb, 0x20);
410 ppa_d_pulse(ppb, 0xf);
413 static inline void ppa_c_pulse(unsigned short ppb, unsigned char b)
415 w_dtr(ppb, b);
416 w_ctr(ppb, 0x4);
417 w_ctr(ppb, 0x6);
418 w_ctr(ppb, 0x4);
419 w_ctr(ppb, 0xc);
424 unsigned short ppb = dev->base;
426 ppa_c_pulse(ppb, 0);
427 ppa_c_pulse(ppb, 0x3c);
428 ppa_c_pulse(ppb, 0x20);
430 ppa_c_pulse(ppb, 0xcf);
432 ppa_c_pulse(ppb, 0x8f);
438 unsigned short ppb = dev->base;
448 } while ((r_str(ppb) & 0x40) && (k));
452 w_dtr(ppb, (1 << target));
453 w_ctr(ppb, 0xe);
454 w_ctr(ppb, 0xc);
455 w_dtr(ppb, 0x80); /* This is NOT the initator */
456 w_ctr(ppb, 0x8);
463 while (!(r_str(ppb) & 0x40) && (k));
482 unsigned short ppb = dev->base;
489 w_ctr(ppb, 0xe);
490 if ((r_str(ppb) & 0x08) == 0x08)
493 w_ctr(ppb, 0xc);
494 if ((r_str(ppb) & 0x08) == 0x00)
498 ppa_reset_pulse(ppb);
538 unsigned short ppb = dev->base;
552 r = (r_str(ppb) & 0xf0);
582 for (; k && ((r = (r_str(ppb) & 0xf0)) & 0xc0) != 0xc0;
616 r = (r_str(ppb) & 0xf0);
689 unsigned short ppb = dev->base;
716 w_ctr(ppb, 0xe);
717 if ((r_str(ppb) & 0x08) == 0x08)
720 w_ctr(ppb, 0xc);
721 if ((r_str(ppb) & 0x08) == 0x00)
745 w_ctr(ppb, 0x0c);
746 if (!(r_str(ppb) & 0x80))
767 w_ctr(ppb, 0x0c);
768 if (!(r_str(ppb) & 0x80))
896 int loop, old_mode, status, k, ppb = dev->base;
902 if ((ppb & 0x0007) == 0x0000)
917 w_ctr(ppb, 0x0c);
924 w_dtr(ppb, 0x40);
925 w_ctr(ppb, 0x08);
927 w_ctr(ppb, 0x0c);
937 w_ctr(ppb, 0x0c);
940 l = r_str(ppb);
950 ppa_reset_pulse(ppb);
964 ppa_reset_pulse(ppb);
1010 int modes, ppb, ppb_hi;
1045 ppb = dev->base = dev->dev->port->base;
1047 w_ctr(ppb, 0x0c);