• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/powerpc/platforms/iseries/

Lines Matching refs:subtype

317 int vio_setHandler(int subtype, vio_event_handler_t *beh)
319 subtype = subtype >> VIOMAJOR_SUBTYPE_SHIFT;
320 if ((subtype < 0) || (subtype >= VIO_MAX_SUBTYPES))
322 if (vio_handler[subtype] != NULL)
324 vio_handler[subtype] = beh;
329 int vio_clearHandler(int subtype)
331 subtype = subtype >> VIOMAJOR_SUBTYPE_SHIFT;
332 if ((subtype < 0) || (subtype >= VIO_MAX_SUBTYPES))
334 if (vio_handler[subtype] == NULL)
336 vio_handler[subtype] = NULL;
387 int subtype = (event->xSubtype & VIOMAJOR_SUBTYPE_MASK)
444 if (vio_handler[subtype] == NULL) {
446 "unexpected virtual io event subtype %d from partition %d\n",
457 (*vio_handler[subtype])(event);
492 int viopath_open(HvLpIndex remoteLp, int subtype, int numReq)
501 subtype = subtype >> VIOMAJOR_SUBTYPE_SHIFT;
502 if ((subtype < 0) || (subtype >= VIO_MAX_SUBTYPES))
513 viopathStatus[remoteLp].users[subtype]++;
562 int viopath_close(HvLpIndex remoteLp, int subtype, int numReq)
572 subtype = subtype >> VIOMAJOR_SUBTYPE_SHIFT;
573 if ((subtype < 0) || (subtype >= VIO_MAX_SUBTYPES))
583 if (viopathStatus[remoteLp].users[subtype] > 0)
584 viopathStatus[remoteLp].users[subtype]--;
616 void *vio_get_event_buffer(int subtype)
618 subtype = subtype >> VIOMAJOR_SUBTYPE_SHIFT;
619 if ((subtype < 0) || (subtype >= VIO_MAX_SUBTYPES))
622 if (atomic_dec_if_positive(&event_buffer_available[subtype]) == 0)
623 return &event_buffer[subtype * 256];
629 void vio_free_event_buffer(int subtype, void *buffer)
631 subtype = subtype >> VIOMAJOR_SUBTYPE_SHIFT;
632 if ((subtype < 0) || (subtype >= VIO_MAX_SUBTYPES)) {
634 "unexpected subtype %d freeing event buffer\n", subtype);
638 if (atomic_read(&event_buffer_available[subtype]) != 0) {
640 "freeing unallocated event buffer, subtype %d\n",
641 subtype);
645 if (buffer != &event_buffer[subtype * 256]) {
647 "freeing invalid event buffer, subtype %d\n", subtype);
650 atomic_set(&event_buffer_available[subtype], 1);