Lines Matching refs:hfi1_devdata
575 u64 read_csr(const struct hfi1_devdata *dd, u32 offset);
576 void write_csr(const struct hfi1_devdata *dd, u32 offset, u64 value);
583 static inline u64 read_kctxt_csr(const struct hfi1_devdata *dd, int ctxt, in read_kctxt_csr()
590 static inline void write_kctxt_csr(struct hfi1_devdata *dd, int ctxt, in write_kctxt_csr()
597 int read_lcb_csr(struct hfi1_devdata *dd, u32 offset, u64 *data);
598 int write_lcb_csr(struct hfi1_devdata *dd, u32 offset, u64 data);
601 const struct hfi1_devdata *dd,
605 const struct hfi1_devdata *dd, in get_kctxt_csr_addr()
618 static inline u64 read_uctxt_csr(const struct hfi1_devdata *dd, int ctxt, in read_uctxt_csr()
625 static inline void write_uctxt_csr(struct hfi1_devdata *dd, int ctxt, in write_uctxt_csr()
632 static inline u32 chip_rcv_contexts(struct hfi1_devdata *dd) in chip_rcv_contexts()
637 static inline u32 chip_send_contexts(struct hfi1_devdata *dd) in chip_send_contexts()
642 static inline u32 chip_sdma_engines(struct hfi1_devdata *dd) in chip_sdma_engines()
647 static inline u32 chip_pio_mem_size(struct hfi1_devdata *dd) in chip_pio_mem_size()
652 static inline u32 chip_sdma_mem_size(struct hfi1_devdata *dd) in chip_sdma_mem_size()
657 static inline u32 chip_rcv_array_count(struct hfi1_devdata *dd) in chip_rcv_array_count()
663 int hfi1_validate_rcvhdrcnt(struct hfi1_devdata *dd, uint thecnt);
664 void set_hdrq_regs(struct hfi1_devdata *dd, u8 ctxt, u8 entsize, u16 hdrcnt);
679 void sbus_request(struct hfi1_devdata *dd,
681 int sbus_request_slow(struct hfi1_devdata *dd,
683 void set_sbus_fast_mode(struct hfi1_devdata *dd);
684 void clear_sbus_fast_mode(struct hfi1_devdata *dd);
685 int hfi1_firmware_init(struct hfi1_devdata *dd);
686 int load_pcie_firmware(struct hfi1_devdata *dd);
687 int load_firmware(struct hfi1_devdata *dd);
689 int acquire_hw_mutex(struct hfi1_devdata *dd);
690 void release_hw_mutex(struct hfi1_devdata *dd);
714 int acquire_chip_resource(struct hfi1_devdata *dd, u32 resource, u32 mswait);
715 void release_chip_resource(struct hfi1_devdata *dd, u32 resource);
716 bool check_chip_resource(struct hfi1_devdata *dd, u32 resource,
718 void init_chip_resources(struct hfi1_devdata *dd);
719 void finish_chip_resources(struct hfi1_devdata *dd);
727 void fabric_serdes_reset(struct hfi1_devdata *dd);
728 int read_8051_data(struct hfi1_devdata *dd, u32 addr, u32 len, u64 *result);
731 void read_misc_status(struct hfi1_devdata *dd, u8 *ver_major, u8 *ver_minor,
733 int write_host_interface_version(struct hfi1_devdata *dd, u8 version);
734 void read_guid(struct hfi1_devdata *dd);
735 int wait_fm_ready(struct hfi1_devdata *dd, u32 mstimeout);
751 int send_idle_sma(struct hfi1_devdata *dd, u64 message);
752 int load_8051_config(struct hfi1_devdata *, u8, u8, u32);
753 int read_8051_config(struct hfi1_devdata *, u8, u8, u32 *);
756 void set_intr_state(struct hfi1_devdata *dd, u32 enable);
761 int stop_drain_data_vls(struct hfi1_devdata *dd);
762 int open_fill_data_vls(struct hfi1_devdata *dd);
763 u32 ns_to_cclock(struct hfi1_devdata *dd, u32 ns);
764 u32 cclock_to_ns(struct hfi1_devdata *dd, u32 cclock);
766 void read_ltp_rtt(struct hfi1_devdata *dd);
767 void clear_linkup_counters(struct hfi1_devdata *dd);
769 int is_ax(struct hfi1_devdata *dd);
770 int is_bx(struct hfi1_devdata *dd);
772 u32 read_physical_state(struct hfi1_devdata *dd);
773 u32 chip_to_opa_pstate(struct hfi1_devdata *dd, u32 chip_pstate);
779 int acquire_lcb_access(struct hfi1_devdata *dd, int sleep_ok);
780 int release_lcb_access(struct hfi1_devdata *dd, int sleep_ok);
786 u64 read_dev_cntr(struct hfi1_devdata *dd, int index, int vl);
787 u64 write_dev_cntr(struct hfi1_devdata *dd, int index, int vl, u64 data);
790 u32 read_logical_state(struct hfi1_devdata *dd);
1377 void hfi1_start_cleanup(struct hfi1_devdata *dd);
1380 void hfi1_put_tid(struct hfi1_devdata *dd, u32 index,
1383 void hfi1_rcvctrl(struct hfi1_devdata *dd, unsigned int op,
1385 u32 hfi1_read_cntrs(struct hfi1_devdata *dd, char **namep, u64 **cntrp);
1389 int hfi1_set_ctxt_jkey(struct hfi1_devdata *dd, struct hfi1_ctxtdata *rcd,
1391 int hfi1_clear_ctxt_jkey(struct hfi1_devdata *dd, struct hfi1_ctxtdata *ctxt);
1392 int hfi1_set_ctxt_pkey(struct hfi1_devdata *dd, struct hfi1_ctxtdata *ctxt,
1394 int hfi1_clear_ctxt_pkey(struct hfi1_devdata *dd, struct hfi1_ctxtdata *ctxt);
1395 void hfi1_read_link_quality(struct hfi1_devdata *dd, u8 *link_quality);
1396 void hfi1_init_vnic_rsm(struct hfi1_devdata *dd);
1397 void hfi1_deinit_vnic_rsm(struct hfi1_devdata *dd);
1405 int set_intr_bits(struct hfi1_devdata *dd, u16 first, u16 last, bool set);
1406 void init_qsfp_int(struct hfi1_devdata *dd);
1407 void clear_all_interrupts(struct hfi1_devdata *dd);
1408 void remap_intr(struct hfi1_devdata *dd, int isrc, int msix_intr);
1409 void remap_sdma_interrupts(struct hfi1_devdata *dd, int engine, int msix_intr);
1410 void reset_interrupts(struct hfi1_devdata *dd);
1411 u8 hfi1_get_qp_map(struct hfi1_devdata *dd, u8 idx);
1412 void hfi1_init_aip_rsm(struct hfi1_devdata *dd);
1413 void hfi1_deinit_aip_rsm(struct hfi1_devdata *dd);
1427 void (*is_int)(struct hfi1_devdata *dd, unsigned int source);