Searched refs:portp (Results 1 - 9 of 9) sorted by relevance

/linux-4.4.14/arch/m32r/platforms/oaks32r/
H A Dio.c37 static inline unsigned char _ne_inb(void *portp) _ne_inb() argument
39 return *(volatile unsigned char *)(portp+1); _ne_inb()
42 static inline unsigned short _ne_inw(void *portp) _ne_inw() argument
46 tmp = *(unsigned short *)(portp) & 0xff; _ne_inw()
47 tmp |= *(unsigned short *)(portp+2) << 8; _ne_inw()
51 static inline void _ne_insb(void *portp, void *addr, unsigned long count) _ne_insb() argument
55 *buf++ = *(volatile unsigned char *)(portp+1); _ne_insb()
58 static inline void _ne_outb(unsigned char b, void *portp) _ne_outb() argument
60 *(volatile unsigned char *)(portp+1) = b; _ne_outb()
63 static inline void _ne_outw(unsigned short w, void *portp) _ne_outw() argument
65 *(volatile unsigned short *)portp = (w >> 8); _ne_outw()
66 *(volatile unsigned short *)(portp+2) = (w & 0xff); _ne_outw()
156 unsigned char *portp = PORT2ADDR(port); _insb() local
158 *buf++ = *(volatile unsigned char *)portp; _insb()
165 unsigned short *portp; _insw() local
168 portp = PORT2ADDR_NE(port); _insw()
170 *buf++ = _ne_inw(portp); _insw()
172 portp = PORT2ADDR(port); _insw()
174 *buf++ = *(volatile unsigned short *)portp; _insw()
181 unsigned long *portp; _insl() local
183 portp = PORT2ADDR(port); _insl()
185 *buf++ = *(volatile unsigned long *)portp; _insl()
191 unsigned char *portp; _outsb() local
194 portp = PORT2ADDR_NE(port); _outsb()
196 _ne_outb(*buf++, portp); _outsb()
198 portp = PORT2ADDR(port); _outsb()
200 *(volatile unsigned char *)portp = *buf++; _outsb()
207 unsigned short *portp; _outsw() local
210 portp = PORT2ADDR_NE(port); _outsw()
212 _ne_outw(*buf++, portp); _outsw()
214 portp = PORT2ADDR(port); _outsw()
216 *(volatile unsigned short *)portp = *buf++; _outsw()
223 unsigned char *portp; _outsl() local
225 portp = PORT2ADDR(port); _outsl()
227 *(volatile unsigned long *)portp = *buf++; _outsl()
/linux-4.4.14/arch/m32r/platforms/m32104ut/
H A Dio.c80 static inline unsigned char _ne_inb(void *portp) _ne_inb() argument
82 return *(volatile unsigned char *)portp; _ne_inb()
85 static inline unsigned short _ne_inw(void *portp) _ne_inw() argument
87 return (unsigned short)le16_to_cpu(*(volatile unsigned short *)portp); _ne_inw()
90 static inline void _ne_insb(void *portp, void *addr, unsigned long count) _ne_insb() argument
95 *buf++ = _ne_inb(portp); _ne_insb()
98 static inline void _ne_outb(unsigned char b, void *portp) _ne_outb() argument
100 *(volatile unsigned char *)portp = b; _ne_outb()
103 static inline void _ne_outw(unsigned short w, void *portp) _ne_outw() argument
105 *(volatile unsigned short *)portp = cpu_to_le16(w); _ne_outw()
195 unsigned char *portp = PORT2ADDR(port); _insb() local
197 *buf++ = *(volatile unsigned char *)portp; _insb()
204 unsigned short *portp; _insw() local
211 portp = PORT2ADDR_NE(port); _insw()
213 *buf++ = *(volatile unsigned short *)portp; _insw()
221 portp = __port2addr_ata(port); _insw()
223 *buf++ = *(volatile unsigned short *)portp; _insw()
226 portp = PORT2ADDR(port); _insw()
228 *buf++ = *(volatile unsigned short *)portp; _insw()
235 unsigned long *portp; _insl() local
237 portp = PORT2ADDR(port); _insl()
239 *buf++ = *(volatile unsigned long *)portp; _insl()
245 unsigned char *portp; _outsb() local
248 portp = PORT2ADDR_NE(port); _outsb()
250 _ne_outb(*buf++, portp); _outsb()
252 portp = PORT2ADDR(port); _outsb()
254 *(volatile unsigned char *)portp = *buf++; _outsb()
261 unsigned short *portp; _outsw() local
268 portp = PORT2ADDR_NE(port); _outsw()
270 *(volatile unsigned short *)portp = *buf++; _outsw()
273 portp = __port2addr_ata(port); _outsw()
275 *(volatile unsigned short *)portp = *buf++; _outsw()
283 portp = PORT2ADDR(port); _outsw()
285 *(volatile unsigned short *)portp = *buf++; _outsw()
292 unsigned char *portp; _outsl() local
294 portp = PORT2ADDR(port); _outsl()
296 *(volatile unsigned long *)portp = *buf++; _outsl()
/linux-4.4.14/arch/m32r/platforms/mappi/
H A Dio.c52 static inline unsigned char _ne_inb(void *portp) _ne_inb() argument
54 return (unsigned char) *(volatile unsigned short *)portp; _ne_inb()
57 static inline unsigned short _ne_inw(void *portp) _ne_inw() argument
61 tmp = *(volatile unsigned short *)portp; _ne_inw()
65 static inline void _ne_outb(unsigned char b, void *portp) _ne_outb() argument
67 *(volatile unsigned short *)portp = (unsigned short)b; _ne_outb()
70 static inline void _ne_outw(unsigned short w, void *portp) _ne_outw() argument
72 *(volatile unsigned short *)portp = cpu_to_le16(w); _ne_outw()
214 unsigned short *portp; _insb() local
217 portp = PORT2ADDR_NE(port); _insb()
219 *buf++ = *(volatile unsigned char *)portp; _insb()
229 portp = PORT2ADDR(port); _insb()
231 *buf++ = *(volatile unsigned char *)portp; _insb()
238 unsigned short *portp; _insw() local
241 portp = PORT2ADDR_NE(port); _insw()
243 *buf++ = _ne_inw(portp); _insw()
253 portp = PORT2ADDR(port); _insw()
255 *buf++ = *(volatile unsigned short *)portp; _insw()
262 unsigned long *portp; _insl() local
264 portp = PORT2ADDR(port); _insl()
266 *buf++ = *(volatile unsigned long *)portp; _insl()
272 unsigned char *portp; _outsb() local
275 portp = PORT2ADDR_NE(port); _outsb()
277 _ne_outb(*buf++, portp); _outsb()
287 portp = PORT2ADDR(port); _outsb()
289 *(volatile unsigned char *)portp = *buf++; _outsb()
296 unsigned short *portp; _outsw() local
299 portp = PORT2ADDR_NE(port); _outsw()
301 _ne_outw(*buf++, portp); _outsw()
311 portp = PORT2ADDR(port); _outsw()
313 *(volatile unsigned short *)portp = *buf++; _outsw()
320 unsigned char *portp; _outsl() local
322 portp = PORT2ADDR(port); _outsl()
324 *(volatile unsigned long *)portp = *buf++; _outsl()
/linux-4.4.14/arch/m32r/platforms/m32700ut/
H A Dio.c88 static inline unsigned char _ne_inb(void *portp) _ne_inb() argument
90 return *(volatile unsigned char *)portp; _ne_inb()
93 static inline unsigned short _ne_inw(void *portp) _ne_inw() argument
95 return (unsigned short)le16_to_cpu(*(volatile unsigned short *)portp); _ne_inw()
98 static inline void _ne_insb(void *portp, void *addr, unsigned long count) _ne_insb() argument
103 *buf++ = _ne_inb(portp); _ne_insb()
106 static inline void _ne_outb(unsigned char b, void *portp) _ne_outb() argument
108 *(volatile unsigned char *)portp = b; _ne_outb()
111 static inline void _ne_outw(unsigned short w, void *portp) _ne_outw() argument
113 *(volatile unsigned short *)portp = cpu_to_le16(w); _ne_outw()
269 unsigned char *portp = __port2addr_ata(port); _insb() local
271 *buf++ = *(volatile unsigned char *)portp; _insb()
282 unsigned char *portp = PORT2ADDR(port); _insb() local
284 *buf++ = *(volatile unsigned char *)portp; _insb()
291 unsigned short *portp; _insw() local
298 portp = PORT2ADDR_NE(port); _insw()
300 *buf++ = *(volatile unsigned short *)portp; _insw()
308 portp = __port2addr_ata(port); _insw()
310 *buf++ = *(volatile unsigned short *)portp; _insw()
313 portp = PORT2ADDR(port); _insw()
315 *buf++ = *(volatile unsigned short *)portp; _insw()
322 unsigned long *portp; _insl() local
324 portp = PORT2ADDR(port); _insl()
326 *buf++ = *(volatile unsigned long *)portp; _insl()
332 unsigned char *portp; _outsb() local
335 portp = PORT2ADDR_NE(port); _outsb()
337 _ne_outb(*buf++, portp); _outsb()
340 portp = __port2addr_ata(port); _outsb()
342 *(volatile unsigned char *)portp = *buf++; _outsb()
350 portp = PORT2ADDR(port); _outsb()
352 *(volatile unsigned char *)portp = *buf++; _outsb()
359 unsigned short *portp; _outsw() local
366 portp = PORT2ADDR_NE(port); _outsw()
368 *(volatile unsigned short *)portp = *buf++; _outsw()
371 portp = __port2addr_ata(port); _outsw()
373 *(volatile unsigned short *)portp = *buf++; _outsw()
381 portp = PORT2ADDR(port); _outsw()
383 *(volatile unsigned short *)portp = *buf++; _outsw()
390 unsigned char *portp; _outsl() local
392 portp = PORT2ADDR(port); _outsl()
394 *(volatile unsigned long *)portp = *buf++; _outsl()
/linux-4.4.14/arch/m32r/platforms/mappi2/
H A Dio.c84 static inline unsigned char _ne_inb(void *portp) _ne_inb() argument
86 return (unsigned char) *(volatile unsigned char *)portp; _ne_inb()
89 static inline unsigned short _ne_inw(void *portp) _ne_inw() argument
91 return (unsigned short)le16_to_cpu(*(volatile unsigned short *)portp); _ne_inw()
94 static inline void _ne_insb(void *portp, void * addr, unsigned long count) _ne_insb() argument
99 *buf++ = *(volatile unsigned char *)portp; _ne_insb()
102 static inline void _ne_outb(unsigned char b, void *portp) _ne_outb() argument
104 *(volatile unsigned char *)portp = (unsigned char)b; _ne_outb()
107 static inline void _ne_outw(unsigned short w, void *portp) _ne_outw() argument
109 *(volatile unsigned short *)portp = cpu_to_le16(w); _ne_outw()
265 unsigned char *portp = __port2addr_ata(port); _insb() local
267 *buf++ = *(volatile unsigned char *)portp; _insb()
278 unsigned char *portp = PORT2ADDR(port); _insb() local
280 *buf++ = *(volatile unsigned char *)portp; _insb()
287 unsigned short *portp; _insw() local
290 portp = PORT2ADDR_NE(port); _insw()
292 *buf++ = *(volatile unsigned short *)portp; _insw()
300 portp = __port2addr_ata(port); _insw()
302 *buf++ = *(volatile unsigned short *)portp; _insw()
305 portp = PORT2ADDR(port); _insw()
307 *buf++ = *(volatile unsigned short *)portp; _insw()
314 unsigned long *portp; _insl() local
316 portp = PORT2ADDR(port); _insl()
318 *buf++ = *(volatile unsigned long *)portp; _insl()
324 unsigned char *portp; _outsb() local
327 portp = PORT2ADDR_NE(port); _outsb()
329 _ne_outb(*buf++, portp); _outsb()
332 portp = __port2addr_ata(port); _outsb()
334 *(volatile unsigned char *)portp = *buf++; _outsb()
342 portp = PORT2ADDR(port); _outsb()
344 *(volatile unsigned char *)portp = *buf++; _outsb()
351 unsigned short *portp; _outsw() local
354 portp = PORT2ADDR_NE(port); _outsw()
356 *(volatile unsigned short *)portp = *buf++; _outsw()
359 portp = __port2addr_ata(port); _outsw()
361 *(volatile unsigned short *)portp = *buf++; _outsw()
369 portp = PORT2ADDR(port); _outsw()
371 *(volatile unsigned short *)portp = *buf++; _outsw()
378 unsigned char *portp; _outsl() local
380 portp = PORT2ADDR(port); _outsl()
382 *(volatile unsigned long *)portp = *buf++; _outsl()
/linux-4.4.14/arch/m32r/platforms/mappi3/
H A Dio.c99 static inline unsigned char _ne_inb(void *portp) _ne_inb() argument
101 return (unsigned char) *(volatile unsigned char *)portp; _ne_inb()
104 static inline unsigned short _ne_inw(void *portp) _ne_inw() argument
106 return (unsigned short)le16_to_cpu(*(volatile unsigned short *)portp); _ne_inw()
109 static inline void _ne_insb(void *portp, void * addr, unsigned long count) _ne_insb() argument
114 *buf++ = *(volatile unsigned char *)portp; _ne_insb()
117 static inline void _ne_outb(unsigned char b, void *portp) _ne_outb() argument
119 *(volatile unsigned char *)portp = (unsigned char)b; _ne_outb()
122 static inline void _ne_outw(unsigned short w, void *portp) _ne_outw() argument
124 *(volatile unsigned short *)portp = cpu_to_le16(w); _ne_outw()
284 unsigned char *portp = __port2addr_ata(port); _insb() local
286 *buf++ = *(volatile unsigned char *)portp; _insb()
297 unsigned char *portp = PORT2ADDR(port); _insb() local
299 *buf++ = *(volatile unsigned char *)portp; _insb()
306 unsigned short *portp; _insw() local
309 portp = PORT2ADDR_NE(port); _insw()
311 *buf++ = *(volatile unsigned short *)portp; _insw()
320 portp = __port2addr_ata(port); _insw()
322 *buf++ = *(volatile unsigned short *)portp; _insw()
325 portp = PORT2ADDR(port); _insw()
327 *buf++ = *(volatile unsigned short *)portp; _insw()
334 unsigned long *portp; _insl() local
336 portp = PORT2ADDR(port); _insl()
338 *buf++ = *(volatile unsigned long *)portp; _insl()
344 unsigned char *portp; _outsb() local
347 portp = PORT2ADDR_NE(port); _outsb()
349 _ne_outb(*buf++, portp); _outsb()
353 portp = __port2addr_ata(port); _outsb()
355 *(volatile unsigned char *)portp = *buf++; _outsb()
363 portp = PORT2ADDR(port); _outsb()
365 *(volatile unsigned char *)portp = *buf++; _outsb()
372 unsigned short *portp; _outsw() local
375 portp = PORT2ADDR_NE(port); _outsw()
377 *(volatile unsigned short *)portp = *buf++; _outsw()
381 portp = __port2addr_ata(port); _outsw()
383 *(volatile unsigned short *)portp = *buf++; _outsw()
391 portp = PORT2ADDR(port); _outsw()
393 *(volatile unsigned short *)portp = *buf++; _outsw()
400 unsigned char *portp; _outsl() local
402 portp = PORT2ADDR(port); _outsl()
404 *(volatile unsigned long *)portp = *buf++; _outsl()
/linux-4.4.14/arch/m32r/platforms/opsput/
H A Dio.c88 static inline unsigned char _ne_inb(void *portp) _ne_inb() argument
90 return *(volatile unsigned char *)portp; _ne_inb()
93 static inline unsigned short _ne_inw(void *portp) _ne_inw() argument
95 return (unsigned short)le16_to_cpu(*(volatile unsigned short *)portp); _ne_inw()
98 static inline void _ne_insb(void *portp, void *addr, unsigned long count) _ne_insb() argument
103 *buf++ = _ne_inb(portp); _ne_insb()
106 static inline void _ne_outb(unsigned char b, void *portp) _ne_outb() argument
108 *(volatile unsigned char *)portp = b; _ne_outb()
111 static inline void _ne_outw(unsigned short w, void *portp) _ne_outw() argument
113 *(volatile unsigned short *)portp = cpu_to_le16(w); _ne_outw()
269 unsigned char *portp = __port2addr_ata(port); _insb() local
271 *buf++ = *(volatile unsigned char *)portp; _insb()
282 unsigned char *portp = PORT2ADDR(port); _insb() local
284 *buf++ = *(volatile unsigned char *)portp; _insb()
291 unsigned short *portp; _insw() local
298 portp = PORT2ADDR_NE(port); _insw()
300 *buf++ = *(volatile unsigned short *)portp; _insw()
308 portp = __port2addr_ata(port); _insw()
310 *buf++ = *(volatile unsigned short *)portp; _insw()
313 portp = PORT2ADDR(port); _insw()
315 *buf++ = *(volatile unsigned short *)portp; _insw()
322 unsigned long *portp; _insl() local
324 portp = PORT2ADDR(port); _insl()
326 *buf++ = *(volatile unsigned long *)portp; _insl()
332 unsigned char *portp; _outsb() local
335 portp = PORT2ADDR_NE(port); _outsb()
337 _ne_outb(*buf++, portp); _outsb()
340 portp = __port2addr_ata(port); _outsb()
342 *(volatile unsigned char *)portp = *buf++; _outsb()
350 portp = PORT2ADDR(port); _outsb()
352 *(volatile unsigned char *)portp = *buf++; _outsb()
359 unsigned short *portp; _outsw() local
366 portp = PORT2ADDR_NE(port); _outsw()
368 *(volatile unsigned short *)portp = *buf++; _outsw()
371 portp = __port2addr_ata(port); _outsw()
373 *(volatile unsigned short *)portp = *buf++; _outsw()
381 portp = PORT2ADDR(port); _outsw()
383 *(volatile unsigned short *)portp = *buf++; _outsw()
390 unsigned char *portp; _outsl() local
392 portp = PORT2ADDR(port); _outsl()
394 *(volatile unsigned long *)portp = *buf++; _outsl()
/linux-4.4.14/arch/m32r/platforms/usrv/
H A Dio.c156 unsigned char *portp = PORT2ADDR(port); _insb() local
158 *buf++ = *(volatile unsigned char *)portp; _insb()
165 unsigned short *portp; _insw() local
171 portp = PORT2ADDR(port); _insw()
173 *buf++ = *(volatile unsigned short *)portp; _insw()
180 unsigned long *portp; _insl() local
182 portp = PORT2ADDR(port); _insl()
184 *buf++ = *(volatile unsigned long *)portp; _insl()
190 unsigned char *portp; _outsb() local
196 portp = PORT2ADDR(port); _outsb()
198 *(volatile unsigned char *)portp = *buf++; _outsb()
205 unsigned short *portp; _outsw() local
211 portp = PORT2ADDR(port); _outsw()
213 *(volatile unsigned short *)portp = *buf++; _outsw()
220 unsigned char *portp; _outsl() local
222 portp = PORT2ADDR(port); _outsl()
224 *(volatile unsigned long *)portp = *buf++; _outsl()
/linux-4.4.14/sound/drivers/
H A Dmtpav.c288 struct mtpav_port *portp, snd_mtpav_output_port_write()
300 if (portp->hwport != mtp_card->outmidihwport) { snd_mtpav_output_port_write()
301 mtp_card->outmidihwport = portp->hwport; snd_mtpav_output_port_write()
304 snd_mtpav_send_byte(mtp_card, portp->hwport); snd_mtpav_output_port_write()
307 (unsigned int) portp->hwport); snd_mtpav_output_port_write()
309 if (!(outbyte & 0x80) && portp->running_status) snd_mtpav_output_port_write()
310 snd_mtpav_send_byte(mtp_card, portp->running_status); snd_mtpav_output_port_write()
317 portp->running_status = outbyte; snd_mtpav_output_port_write()
326 struct mtpav_port *portp = &mtp_card->ports[substream->number]; snd_mtpav_output_write() local
330 snd_mtpav_output_port_write(mtp_card, portp, substream); snd_mtpav_output_write()
356 struct mtpav_port *portp = &mtp_card->ports[substream->number]; snd_mtpav_input_open() local
360 portp->mode |= MTPAV_MODE_INPUT_OPENED; snd_mtpav_input_open()
361 portp->input = substream; snd_mtpav_input_open()
374 struct mtpav_port *portp = &mtp_card->ports[substream->number]; snd_mtpav_input_close() local
378 portp->mode &= ~MTPAV_MODE_INPUT_OPENED; snd_mtpav_input_close()
379 portp->input = NULL; snd_mtpav_input_close()
392 struct mtpav_port *portp = &mtp_card->ports[substream->number]; snd_mtpav_input_trigger() local
397 portp->mode |= MTPAV_MODE_INPUT_TRIGGERED; snd_mtpav_input_trigger()
399 portp->mode &= ~MTPAV_MODE_INPUT_TRIGGERED; snd_mtpav_input_trigger()
420 struct mtpav_port *portp = &chip->ports[p]; snd_mtpav_output_timer() local
421 if ((portp->mode & MTPAV_MODE_OUTPUT_TRIGGERED) && portp->output) snd_mtpav_output_timer()
422 snd_mtpav_output_port_write(chip, portp, portp->output); snd_mtpav_output_timer()
445 struct mtpav_port *portp = &mtp_card->ports[substream->number]; snd_mtpav_output_open() local
449 portp->mode |= MTPAV_MODE_OUTPUT_OPENED; snd_mtpav_output_open()
450 portp->output = substream; snd_mtpav_output_open()
461 struct mtpav_port *portp = &mtp_card->ports[substream->number]; snd_mtpav_output_close() local
465 portp->mode &= ~MTPAV_MODE_OUTPUT_OPENED; snd_mtpav_output_close()
466 portp->output = NULL; snd_mtpav_output_close()
477 struct mtpav_port *portp = &mtp_card->ports[substream->number]; snd_mtpav_output_trigger() local
482 if (! (portp->mode & MTPAV_MODE_OUTPUT_TRIGGERED)) { snd_mtpav_output_trigger()
485 portp->mode |= MTPAV_MODE_OUTPUT_TRIGGERED; snd_mtpav_output_trigger()
488 portp->mode &= ~MTPAV_MODE_OUTPUT_TRIGGERED; snd_mtpav_output_trigger()
504 struct mtpav_port *portp; snd_mtpav_inmidi_process() local
509 portp = &mcrd->ports[mcrd->inmidiport]; snd_mtpav_inmidi_process()
510 if (portp->mode & MTPAV_MODE_INPUT_TRIGGERED) snd_mtpav_inmidi_process()
511 snd_rawmidi_receive(portp->input, &inbyte, 1); snd_mtpav_inmidi_process()
287 snd_mtpav_output_port_write(struct mtpav *mtp_card, struct mtpav_port *portp, struct snd_rawmidi_substream *substream) snd_mtpav_output_port_write() argument

Completed in 271 milliseconds