Lines Matching refs:hfi1_devdata

602 u64 read_csr(const struct hfi1_devdata *dd, u32 offset);
603 void write_csr(const struct hfi1_devdata *dd, u32 offset, u64 value);
610 static inline u64 read_kctxt_csr(const struct hfi1_devdata *dd, int ctxt, in read_kctxt_csr()
617 static inline void write_kctxt_csr(struct hfi1_devdata *dd, int ctxt, in write_kctxt_csr()
624 int read_lcb_csr(struct hfi1_devdata *dd, u32 offset, u64 *data);
625 int write_lcb_csr(struct hfi1_devdata *dd, u32 offset, u64 data);
628 const struct hfi1_devdata *dd,
632 const struct hfi1_devdata *dd, in get_kctxt_csr_addr()
645 static inline u64 read_uctxt_csr(const struct hfi1_devdata *dd, int ctxt, in read_uctxt_csr()
652 static inline void write_uctxt_csr(struct hfi1_devdata *dd, int ctxt, in write_uctxt_csr()
659 static inline u32 chip_rcv_contexts(struct hfi1_devdata *dd) in chip_rcv_contexts()
664 static inline u32 chip_send_contexts(struct hfi1_devdata *dd) in chip_send_contexts()
669 static inline u32 chip_sdma_engines(struct hfi1_devdata *dd) in chip_sdma_engines()
674 static inline u32 chip_pio_mem_size(struct hfi1_devdata *dd) in chip_pio_mem_size()
679 static inline u32 chip_sdma_mem_size(struct hfi1_devdata *dd) in chip_sdma_mem_size()
684 static inline u32 chip_rcv_array_count(struct hfi1_devdata *dd) in chip_rcv_array_count()
702 void sbus_request(struct hfi1_devdata *dd,
704 int sbus_request_slow(struct hfi1_devdata *dd,
706 void set_sbus_fast_mode(struct hfi1_devdata *dd);
707 void clear_sbus_fast_mode(struct hfi1_devdata *dd);
708 int hfi1_firmware_init(struct hfi1_devdata *dd);
709 int load_pcie_firmware(struct hfi1_devdata *dd);
710 int load_firmware(struct hfi1_devdata *dd);
712 int acquire_hw_mutex(struct hfi1_devdata *dd);
713 void release_hw_mutex(struct hfi1_devdata *dd);
737 int acquire_chip_resource(struct hfi1_devdata *dd, u32 resource, u32 mswait);
738 void release_chip_resource(struct hfi1_devdata *dd, u32 resource);
739 bool check_chip_resource(struct hfi1_devdata *dd, u32 resource,
741 void init_chip_resources(struct hfi1_devdata *dd);
742 void finish_chip_resources(struct hfi1_devdata *dd);
750 void fabric_serdes_reset(struct hfi1_devdata *dd);
751 int read_8051_data(struct hfi1_devdata *dd, u32 addr, u32 len, u64 *result);
754 void read_misc_status(struct hfi1_devdata *dd, u8 *ver_major, u8 *ver_minor,
756 int write_host_interface_version(struct hfi1_devdata *dd, u8 version);
757 void read_guid(struct hfi1_devdata *dd);
758 int wait_fm_ready(struct hfi1_devdata *dd, u32 mstimeout);
774 int send_idle_sma(struct hfi1_devdata *dd, u64 message);
775 int load_8051_config(struct hfi1_devdata *, u8, u8, u32);
776 int read_8051_config(struct hfi1_devdata *, u8, u8, u32 *);
779 void set_intr_state(struct hfi1_devdata *dd, u32 enable);
784 int stop_drain_data_vls(struct hfi1_devdata *dd);
785 int open_fill_data_vls(struct hfi1_devdata *dd);
786 u32 ns_to_cclock(struct hfi1_devdata *dd, u32 ns);
787 u32 cclock_to_ns(struct hfi1_devdata *dd, u32 cclock);
789 void read_ltp_rtt(struct hfi1_devdata *dd);
790 void clear_linkup_counters(struct hfi1_devdata *dd);
792 int is_ax(struct hfi1_devdata *dd);
793 int is_bx(struct hfi1_devdata *dd);
794 u32 read_physical_state(struct hfi1_devdata *dd);
795 u32 chip_to_opa_pstate(struct hfi1_devdata *dd, u32 chip_pstate);
801 int acquire_lcb_access(struct hfi1_devdata *dd, int sleep_ok);
802 int release_lcb_access(struct hfi1_devdata *dd, int sleep_ok);
813 u64 read_dev_cntr(struct hfi1_devdata *dd, int index, int vl);
814 u64 write_dev_cntr(struct hfi1_devdata *dd, int index, int vl, u64 data);
817 u32 read_logical_state(struct hfi1_devdata *dd);
1397 void hfi1_start_cleanup(struct hfi1_devdata *dd);
1400 void hfi1_put_tid(struct hfi1_devdata *dd, u32 index,
1403 void hfi1_rcvctrl(struct hfi1_devdata *dd, unsigned int op,
1405 u32 hfi1_read_cntrs(struct hfi1_devdata *dd, char **namep, u64 **cntrp);
1409 int hfi1_set_ctxt_jkey(struct hfi1_devdata *dd, struct hfi1_ctxtdata *rcd,
1411 int hfi1_clear_ctxt_jkey(struct hfi1_devdata *dd, struct hfi1_ctxtdata *ctxt);
1412 int hfi1_set_ctxt_pkey(struct hfi1_devdata *dd, struct hfi1_ctxtdata *ctxt,
1414 int hfi1_clear_ctxt_pkey(struct hfi1_devdata *dd, struct hfi1_ctxtdata *ctxt);
1415 void hfi1_read_link_quality(struct hfi1_devdata *dd, u8 *link_quality);
1416 void hfi1_init_vnic_rsm(struct hfi1_devdata *dd);
1417 void hfi1_deinit_vnic_rsm(struct hfi1_devdata *dd);
1431 void (*is_int)(struct hfi1_devdata *dd, unsigned int source);