Lines Matching defs:ipath_devdata

259 struct ipath_devdata {  struct
260 struct list_head ipath_list;
262 struct ipath_kregs const *ipath_kregs;
263 struct ipath_cregs const *ipath_cregs;
266 u64 __iomem *ipath_kregbase;
268 u64 __iomem *ipath_kregend;
293 int (*ipath_f_intrsetup)(struct ipath_devdata *); argument
295 int (*ipath_f_intr_fallback)(struct ipath_devdata *); argument
297 int (*ipath_f_bus)(struct ipath_devdata *, struct pci_dev *); argument
299 int (*ipath_f_reset)(struct ipath_devdata *); argument
300 int (*ipath_f_get_boardname)(struct ipath_devdata *, char *, argument
302 void (*ipath_f_init_hwerrors)(struct ipath_devdata *); argument
303 void (*ipath_f_handle_hwerrors)(struct ipath_devdata *, char *, argument
305 void (*ipath_f_quiet_serdes)(struct ipath_devdata *); argument
306 int (*ipath_f_bringup_serdes)(struct ipath_devdata *); argument
307 int (*ipath_f_early_init)(struct ipath_devdata *); argument
308 void (*ipath_f_clear_tids)(struct ipath_devdata *, unsigned); argument
309 void (*ipath_f_put_tid)(struct ipath_devdata *, u64 __iomem*, argument
311 void (*ipath_f_tidtemplate)(struct ipath_devdata *); argument
312 void (*ipath_f_cleanup)(struct ipath_devdata *); argument
313 void (*ipath_f_setextled)(struct ipath_devdata *, u64, u64); argument
317 void (*ipath_f_free_irq)(struct ipath_devdata *); argument
319 (struct ipath_devdata *, __le32 *); argument
320 void (*ipath_f_config_ports)(struct ipath_devdata *, ushort); argument
321 int (*ipath_f_get_ib_cfg)(struct ipath_devdata *, int); argument
322 int (*ipath_f_set_ib_cfg)(struct ipath_devdata *, int, u32); argument
323 void (*ipath_f_config_jint)(struct ipath_devdata *, u16 , u16); argument
324 void (*ipath_f_read_counters)(struct ipath_devdata *, argument
326 void (*ipath_f_xgxs_reset)(struct ipath_devdata *); argument
328 int (*ipath_f_ib_updown)(struct ipath_devdata *, int, u64); argument
330 unsigned ipath_lastegr_idx;
331 struct ipath_ibdev *verbs_dev;
332 struct timer_list verbs_timer;
334 u64 ipath_sword;
336 u64 ipath_rword;
338 u64 ipath_spkts;
340 u64 ipath_rpkts;
342 u64 _ipath_status;
344 __be64 ipath_guid;
349 ipath_err_t ipath_lasterror;
354 ipath_err_t ipath_lasthwerror;
356 ipath_err_t ipath_maskederrs;
357 u64 ipath_lastlinkrecov; /* link recoveries at last ACTIVE */
365 u64 ibdeltainprog;
366 u64 ibsymdelta;
367 u64 ibsymsnap;
368 u64 iblnkerrdelta;
369 u64 iblnkerrsnap;
372 unsigned long ipath_unmasktime;
374 u64 ipath_last_tidfull;
376 u64 ipath_lastport0rcv_cnt;
378 u64 ipath_tidtemplate;
380 u64 ipath_tidinvalid;
382 u64 ipath_rhdrhead_intr_off;
385 u32 ipath_kregsize;
387 u32 ipath_pioavregs;
389 u32 ipath_flags;
391 u32 ipath_state_wanted;
394 u32 ipath_lastport_piobuf;
396 u32 ipath_stats_timer_active;
398 u32 ipath_int_counter;
400 u32 ipath_lastsword;
402 u32 ipath_lastrword;
404 u32 ipath_lastspkts;
406 u32 ipath_lastrpkts;
408 u32 ipath_pbufsport;
410 u32 ipath_ports_extrabuf;
411 u32 ipath_pioupd_thresh; /* update threshold, some chips */
416 u32 ipath_cfgports;
418 u32 ipath_p0_hdrqfull;
420 u32 ipath_p0_rcvegrcnt;
429 u32 ipath_lastpioindex;
430 u32 ipath_lastpioindexl;
432 u32 ipath_freezelen;
437 u32 ipath_consec_nopiobuf;
442 u32 ipath_upd_pio_shadow;
444 u32 ipath_pcibar0;
446 u32 ipath_pcibar1;
447 u32 ipath_x1_fix_tries;
448 u32 ipath_autoneg_tries;
449 u32 serdes_first_init_done;
451 struct ipath_relock {
455 } ipath_relock_singleton;
458 int ipath_irq;
460 u16 ipath_vendorid;
462 u16 ipath_deviceid;
464 u8 ipath_ht_slave_off;
466 unsigned long ipath_wc_cookie;
467 unsigned long ipath_wc_base;
468 unsigned long ipath_wc_len;
470 atomic_t ipath_pkeyrefs[4];
472 struct page **ipath_pageshadow;
474 dma_addr_t *ipath_physshadow;
475 u64 __iomem *ipath_egrtidbase;
477 spinlock_t ipath_kernel_tid_lock;
478 spinlock_t ipath_user_tid_lock;
479 spinlock_t ipath_sendctrl_lock;
481 spinlock_t ipath_uctxt_lock;
488 u64 *ipath_statusp;
490 char *ipath_freezemsg;
492 struct pci_dev *pcidev;
493 struct cdev *user_cdev;
494 struct cdev *diag_cdev;
495 struct device *user_dev;
496 struct device *diag_dev;
498 struct timer_list ipath_stats_timer;
500 struct timer_list ipath_intrchk_timer;
501 void *ipath_dummy_hdrq; /* used after port close */
502 dma_addr_t ipath_dummy_hdrq_phys;
505 spinlock_t ipath_sdma_lock;
506 unsigned long ipath_sdma_status;
507 unsigned long ipath_sdma_abort_jiffies;
508 unsigned long ipath_sdma_abort_intr_timeout;
509 unsigned long ipath_sdma_buf_jiffies;
510 struct ipath_sdma_desc *ipath_sdma_descq;
511 u64 ipath_sdma_descq_added;
512 u64 ipath_sdma_descq_removed;
513 int ipath_sdma_desc_nreserved;
514 u16 ipath_sdma_descq_cnt;
515 u16 ipath_sdma_descq_tail;
516 u16 ipath_sdma_descq_head;
517 u16 ipath_sdma_next_intr;
518 u16 ipath_sdma_reset_wait;
519 u8 ipath_sdma_generation;
520 struct tasklet_struct ipath_sdma_abort_task;
521 struct tasklet_struct ipath_sdma_notify_task;
522 struct list_head ipath_sdma_activelist;
523 struct list_head ipath_sdma_notifylist;
524 atomic_t ipath_sdma_vl15_count;
525 struct timer_list ipath_sdma_vl15_timer;
527 dma_addr_t ipath_sdma_descq_phys;
528 volatile __le64 *ipath_sdma_head_dma;
529 dma_addr_t ipath_sdma_head_phys;
531 unsigned long ipath_ureg_align; /* user register alignment */
533 struct delayed_work ipath_autoneg_work;
534 wait_queue_head_t ipath_autoneg_wait;
537 unsigned ipath_hol_state;
538 unsigned ipath_hol_next;
539 struct timer_list ipath_hol_timer;
560 unsigned long ipath_pioavailshadow[8];
562 unsigned long ipath_pioavailkernel[8];
564 u64 ipath_gpio_out;
566 u64 ipath_gpio_mask;
568 u64 ipath_extctrl;
570 u64 ipath_revision;
575 u64 ipath_ibcctrl;
580 u64 ipath_lastibcstat;
582 ipath_err_t ipath_hwerrmask;
583 ipath_err_t ipath_errormask; /* errormask shadow */
585 u64 ipath_intconfig;
587 u64 ipath_piobufbase;
589 u64 ipath_ibcddrctrl;
597 u32 ipath_nguid;
603 unsigned long ipath_rcvctrl;
605 unsigned long ipath_sendctrl;
607 unsigned long ipath_lastcancel;
609 unsigned long ipath_spectriggerhit;
612 u32 ipath_rcvhdrcnt;
614 u32 ipath_rcvhdrsize;
616 u32 ipath_rcvhdrentsize;
618 u32 ipath_hdrqlast;
620 u32 ipath_portcnt;
622 u32 ipath_palign;
624 u32 ipath_piobcnt2k;
626 u32 ipath_piosize2k;
628 u32 ipath_piobcnt4k;
630 u32 ipath_piosize4k;
631 u32 ipath_pioreserved; /* reserved special-inkernel; */
633 u32 ipath_rcvegrbase;
635 u32 ipath_rcvegrcnt;
637 u32 ipath_rcvtidbase;
639 u32 ipath_rcvtidcnt;
641 u32 ipath_sregbase;
643 u32 ipath_uregbase;
645 u32 ipath_cregbase;
647 u32 ipath_control;
649 u32 ipath_pcirev;
652 u32 ipath_4kalign;
654 u32 ipath_ibmtu;
660 u32 ipath_ibmaxlen;
665 u32 ipath_init_ibmaxlen;
667 u32 ipath_rcvegrbufsize;
669 u32 ipath_lbus_width;
671 u32 ipath_lbus_speed;
676 u32 ipath_ibpollcnt;
678 u32 ipath_msi_lo;
680 u32 ipath_msi_hi;
682 u16 ipath_msi_data;
684 u16 ipath_mlid;
686 u16 ipath_lid;
688 u16 ipath_pkeys[4];
693 u8 ipath_serial[16];
695 u8 ipath_boardversion[96];
696 u8 ipath_lbus_info[32]; /* human readable localbus info */
698 u8 ipath_majrev;
700 u8 ipath_minrev;
702 u8 ipath_boardrev;
704 u8 ipath_pci_cacheline;
706 u8 ipath_lmc;
708 u8 ipath_link_width_supported;
710 u8 ipath_link_speed_supported;
711 u8 ipath_link_width_enabled;
712 u8 ipath_link_speed_enabled;
713 u8 ipath_link_width_active;
714 u8 ipath_link_speed_active;
716 u8 ipath_rx_pol_inv;
718 u8 ipath_r_portenable_shift;
719 u8 ipath_r_intravail_shift;
720 u8 ipath_r_tailupd_shift;
721 u8 ipath_r_portcfg_shift;
724 int ipath_unit;
727 u32 ipath_lli_counter;
729 u32 ipath_lli_errors;
736 u32 ipath_rxfc_unsupvl_errs;
737 u32 ipath_overrun_thresh_errs;
738 u32 ipath_lli_errs;
744 u64 ipath_i_bitsextant;
745 ipath_err_t ipath_e_bitsextant;
746 ipath_err_t ipath_hwe_bitsextant;
752 u64 ipath_i_rcvavail_mask;
753 u64 ipath_i_rcvurg_mask;
754 u16 ipath_i_rcvurg_shift;
755 u16 ipath_i_rcvavail_shift;
761 u8 ipath_gpio_sda_num;
762 u8 ipath_gpio_scl_num;
763 u8 ipath_i2c_chain_type;
764 u64 ipath_gpio_sda;
765 u64 ipath_gpio_scl;
768 spinlock_t ipath_gpio_lock;
774 u8 ibcs_ls_shift;
775 u8 ibcs_lts_mask;
776 u32 ibcs_mask;
777 u32 ib_init;
778 u32 ib_arm;
779 u32 ib_active;
781 u16 ipath_rhf_offset; /* offset of RHF within receive header entry */
787 u8 ibcc_lic_mask; /* LinkInitCmd */
788 u8 ibcc_lc_shift; /* LinkCmd */
789 u8 ibcc_mpl_shift; /* Maxpktlen */
791 u8 delay_mult;
794 u8 ipath_led_override; /* Substituted for normal value, if non-zero */
795 u16 ipath_led_override_timeoff; /* delta to next timer event */
796 u8 ipath_led_override_vals[2]; /* Alternates per blink-frame */
797 u8 ipath_led_override_phase; /* Just counts, LSB picks from vals[] */
798 atomic_t ipath_led_override_timer_active;
800 struct timer_list ipath_led_override_timer;
804 spinlock_t ipath_eep_st_lock;
806 struct mutex ipath_eep_lock;
808 uint64_t ipath_traffic_wds;
810 atomic_t ipath_active_time;
812 uint8_t ipath_eep_st_errs[IPATH_EEP_LOG_CNT];
813 uint8_t ipath_eep_st_new_errs[IPATH_EEP_LOG_CNT];
814 uint16_t ipath_eep_hrs;
819 struct ipath_eep_log_mask ipath_eep_st_masks[IPATH_EEP_LOG_CNT];
822 u16 ipath_jint_idle_ticks; /* idle clock ticks */
823 u16 ipath_jint_max_packets; /* max packets across all ports */
829 spinlock_t ipath_sdepb_lock;
830 u8 ipath_presets_needed; /* Set if presets to be restored next DOWN */