• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/aic7xxx/

Lines Matching defs:port

244 			ahc_inw(struct ahc_softc *ahc, u_int port);
245 static __inline void ahc_outw(struct ahc_softc *ahc, u_int port,
248 ahc_inl(struct ahc_softc *ahc, u_int port);
249 static __inline void ahc_outl(struct ahc_softc *ahc, u_int port,
252 ahc_inq(struct ahc_softc *ahc, u_int port);
253 static __inline void ahc_outq(struct ahc_softc *ahc, u_int port,
303 ahc_inw(struct ahc_softc *ahc, u_int port)
305 return ((ahc_inb(ahc, port+1) << 8) | ahc_inb(ahc, port));
309 ahc_outw(struct ahc_softc *ahc, u_int port, u_int value)
311 ahc_outb(ahc, port, value & 0xFF);
312 ahc_outb(ahc, port+1, (value >> 8) & 0xFF);
316 ahc_inl(struct ahc_softc *ahc, u_int port)
318 return ((ahc_inb(ahc, port))
319 | (ahc_inb(ahc, port+1) << 8)
320 | (ahc_inb(ahc, port+2) << 16)
321 | (ahc_inb(ahc, port+3) << 24));
325 ahc_outl(struct ahc_softc *ahc, u_int port, uint32_t value)
327 ahc_outb(ahc, port, (value) & 0xFF);
328 ahc_outb(ahc, port+1, ((value) >> 8) & 0xFF);
329 ahc_outb(ahc, port+2, ((value) >> 16) & 0xFF);
330 ahc_outb(ahc, port+3, ((value) >> 24) & 0xFF);
334 ahc_inq(struct ahc_softc *ahc, u_int port)
336 return ((ahc_inb(ahc, port))
337 | (ahc_inb(ahc, port+1) << 8)
338 | (ahc_inb(ahc, port+2) << 16)
339 | (ahc_inb(ahc, port+3) << 24)
340 | (((uint64_t)ahc_inb(ahc, port+4)) << 32)
341 | (((uint64_t)ahc_inb(ahc, port+5)) << 40)
342 | (((uint64_t)ahc_inb(ahc, port+6)) << 48)
343 | (((uint64_t)ahc_inb(ahc, port+7)) << 56));
347 ahc_outq(struct ahc_softc *ahc, u_int port, uint64_t value)
349 ahc_outb(ahc, port, value & 0xFF);
350 ahc_outb(ahc, port+1, (value >> 8) & 0xFF);
351 ahc_outb(ahc, port+2, (value >> 16) & 0xFF);
352 ahc_outb(ahc, port+3, (value >> 24) & 0xFF);
353 ahc_outb(ahc, port+4, (value >> 32) & 0xFF);
354 ahc_outb(ahc, port+5, (value >> 40) & 0xFF);
355 ahc_outb(ahc, port+6, (value >> 48) & 0xFF);
356 ahc_outb(ahc, port+7, (value >> 56) & 0xFF);