Lines Matching defs:port
124 * Read COUNT 8-bit bytes from port PORT into memory starting at
127 void insb (unsigned long port, void *dst, unsigned long count)
137 *p = inb(port);
144 w = inb(port) << 24;
145 w |= inb(port) << 16;
146 w |= inb(port) << 8;
147 w |= inb(port);
154 *p = inb(port);
161 * Read COUNT 16-bit words from port PORT into memory starting at
167 void insw (unsigned long port, void *dst, unsigned long count)
183 l = cpu_to_le16(inw(port)) << 16;
184 l |= cpu_to_le16(inw(port));
189 *(unsigned short *)p = cpu_to_le16(inw(port));
194 *(unsigned short *)p = cpu_to_le16(inw(port));
200 l = cpu_to_le16(inw(port)) << 16;
201 l |= cpu_to_le16(inw(port));
206 *(unsigned short *)p = cpu_to_le16(inw(port));
216 l = cpu_to_le16(inw(port));
221 l2 = cpu_to_le16(inw(port));
234 * Read COUNT 32-bit words from port PORT into memory starting at
239 void insl (unsigned long port, void *dst, unsigned long count)
254 *(unsigned int *)p = cpu_to_le32(inl(port));
262 l = cpu_to_le32(inl(port));
268 l2 = cpu_to_le32(inl(port));
278 l = cpu_to_le32(inl(port));
285 l2 = cpu_to_le32(inl(port));
295 l = cpu_to_le32(inl(port));
300 l2 = cpu_to_le32(inl(port));
319 void outsb(unsigned long port, const void * src, unsigned long count)
326 outb(*p, port);
337 void outsw (unsigned long port, const void *src, unsigned long count)
354 outw(le16_to_cpu(l >> 16), port);
355 outw(le16_to_cpu(l & 0xffff), port);
358 outw(le16_to_cpu(*(unsigned short*)p), port);
364 outw(le16_to_cpu(*(unsigned short*)p), port);
372 outw(le16_to_cpu(l >> 16), port);
373 outw(le16_to_cpu(l & 0xffff), port);
376 outw(le16_to_cpu(*(unsigned short *)p), port);
392 outw(le16_to_cpu(l | l2 >> 8), port);
396 outw (le16_to_cpu(l | l2>>8), port);
409 void outsl (unsigned long port, const void *src, unsigned long count)
424 outl(le32_to_cpu(*(unsigned int *)p), port);
439 outl (le32_to_cpu(l << 16 | l2 >> 16), port);
443 outl (le32_to_cpu(l << 16 | l2), port);
457 outl (le32_to_cpu(l | l2 >> 24), port);
461 outl (le32_to_cpu(l | l2), port);
473 outl (le32_to_cpu(l | l2 >> 8), port);
479 outl (le32_to_cpu(l | l2), port);