/Linux-v4.19/drivers/infiniband/hw/hfi1/ |
D | pio.h | 100 struct hfi1_devdata *dd; /* device */ 267 int pio_map_init(struct hfi1_devdata *dd, u8 port, u8 num_vls, 269 void free_pio_map(struct hfi1_devdata *dd); 270 struct send_context *pio_select_send_context_vl(struct hfi1_devdata *dd, 272 struct send_context *pio_select_send_context_sc(struct hfi1_devdata *dd, 276 int init_credit_return(struct hfi1_devdata *dd); 277 void free_credit_return(struct hfi1_devdata *dd); 278 int init_sc_pools_and_sizes(struct hfi1_devdata *dd); 279 int init_send_contexts(struct hfi1_devdata *dd); 280 int init_credit_return(struct hfi1_devdata *dd); [all …]
|
D | chip.c | 1028 static u32 chip_to_opa_lstate(struct hfi1_devdata *dd, u32 chip_lstate); 1029 static int set_physical_link_state(struct hfi1_devdata *dd, u64 state); 1030 static void read_vc_remote_phy(struct hfi1_devdata *dd, u8 *power_management, 1032 static void read_vc_remote_fabric(struct hfi1_devdata *dd, u8 *vau, u8 *z, 1034 static void read_vc_remote_link_width(struct hfi1_devdata *dd, 1036 static void read_vc_local_link_mode(struct hfi1_devdata *dd, u8 *misc_bits, 1038 static void read_remote_device_id(struct hfi1_devdata *dd, u16 *device_id, 1040 static void read_local_lni(struct hfi1_devdata *dd, u8 *enable_lane_rx); 1041 static int read_tx_settings(struct hfi1_devdata *dd, u8 *enable_lane_tx, 1044 static void handle_sdma_eng_err(struct hfi1_devdata *dd, [all …]
|
D | chip.h | 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() [all …]
|
D | sdma.h | 323 struct hfi1_devdata *dd; 420 int sdma_init(struct hfi1_devdata *dd, u8 port); 421 void sdma_start(struct hfi1_devdata *dd); 422 void sdma_exit(struct hfi1_devdata *dd); 423 void sdma_clean(struct hfi1_devdata *dd, size_t num_engines); 424 void sdma_all_running(struct hfi1_devdata *dd); 425 void sdma_all_idle(struct hfi1_devdata *dd); 426 void sdma_freeze_notify(struct hfi1_devdata *dd, int go_idle); 427 void sdma_freeze(struct hfi1_devdata *dd); 428 void sdma_unfreeze(struct hfi1_devdata *dd); [all …]
|
D | affinity.h | 78 int hfi1_dev_affinity_init(struct hfi1_devdata *dd); 83 int hfi1_get_irq_affinity(struct hfi1_devdata *dd, 89 void hfi1_put_irq_affinity(struct hfi1_devdata *dd, 123 void hfi1_dev_affinity_clean_up(struct hfi1_devdata *dd); 125 int hfi1_comp_vectors_set_up(struct hfi1_devdata *dd); 126 void hfi1_comp_vectors_clean_up(struct hfi1_devdata *dd);
|
D | aspm.h | 70 static inline bool aspm_hw_l1_supported(struct hfi1_devdata *dd) in aspm_hw_l1_supported() 93 static inline void aspm_hw_set_l1_ent_latency(struct hfi1_devdata *dd) in aspm_hw_set_l1_ent_latency() 104 static inline void aspm_hw_enable_l1(struct hfi1_devdata *dd) in aspm_hw_enable_l1() 124 static inline void aspm_hw_disable_l1(struct hfi1_devdata *dd) in aspm_hw_disable_l1() 136 static inline void aspm_enable(struct hfi1_devdata *dd) in aspm_enable() 146 static inline void aspm_disable(struct hfi1_devdata *dd) in aspm_disable() 155 static inline void aspm_disable_inc(struct hfi1_devdata *dd) in aspm_disable_inc() 165 static inline void aspm_enable_dec(struct hfi1_devdata *dd) in aspm_enable_dec() 236 static inline void aspm_disable_all(struct hfi1_devdata *dd) in aspm_disable_all() 258 static inline void aspm_enable_all(struct hfi1_devdata *dd) in aspm_enable_all() [all …]
|
D | vnic.h | 84 struct hfi1_devdata *dd; 124 struct hfi1_devdata *dd; 148 void hfi1_vnic_setup(struct hfi1_devdata *dd); 149 void hfi1_vnic_cleanup(struct hfi1_devdata *dd); 150 int hfi1_vnic_txreq_init(struct hfi1_devdata *dd); 151 void hfi1_vnic_txreq_deinit(struct hfi1_devdata *dd); 165 int hfi1_vnic_send_dma(struct hfi1_devdata *dd, u8 q_idx,
|
D | hfi.h | 203 struct hfi1_devdata *dd; 708 struct hfi1_devdata *dd; 960 struct hfi1_devdata *controlling_dd; /* current controlling device */ 968 struct hfi1_devdata *dds[2]; /* back pointers */ 1010 struct hfi1_devdata { struct 1291 void (*pio_inline_send)(struct hfi1_devdata *dd, struct pio_buf *pbuf, argument 1293 int (*process_vnic_dma_send)(struct hfi1_devdata *dd, u8 q_idx, argument 1354 static inline bool hfi1_vnic_is_rsm_full(struct hfi1_devdata *dd, int spare) in hfi1_vnic_is_rsm_full() argument 1377 struct hfi1_devdata *dd; 1399 struct hfi1_devdata *hfi1_lookup(int unit); [all …]
|
D | firmware.c | 255 static int load_fabric_serdes_firmware(struct hfi1_devdata *dd, 257 static void dump_fw_version(struct hfi1_devdata *dd); 272 static int __read_8051_data(struct hfi1_devdata *dd, u32 addr, u64 *result) in __read_8051_data() 308 int read_8051_data(struct hfi1_devdata *dd, u32 addr, u32 len, u64 *result) in read_8051_data() 336 static int write_8051(struct hfi1_devdata *dd, int code, u32 start, in write_8051() 392 static int invalid_header(struct hfi1_devdata *dd, const char *what, in invalid_header() 407 static int verify_css_header(struct hfi1_devdata *dd, struct css_header *css) in verify_css_header() 431 static int payload_check(struct hfi1_devdata *dd, const char *name, in payload_check() 450 static int obtain_one_firmware(struct hfi1_devdata *dd, const char *name, in obtain_one_firmware() 584 static void __obtain_firmware(struct hfi1_devdata *dd) in __obtain_firmware() [all …]
|
D | eprom.h | 48 struct hfi1_devdata; 50 int eprom_init(struct hfi1_devdata *dd); 51 int eprom_read_platform_config(struct hfi1_devdata *dd, void **buf_ret,
|
D | init.c | 127 static int hfi1_create_kctxt(struct hfi1_devdata *dd, in hfi1_create_kctxt() 170 int hfi1_create_kctxts(struct hfi1_devdata *dd) in hfi1_create_kctxts() 260 static int allocate_rcd_index(struct hfi1_devdata *dd, in allocate_rcd_index() 298 struct hfi1_ctxtdata *hfi1_rcd_get_by_index_safe(struct hfi1_devdata *dd, in hfi1_rcd_get_by_index_safe() 319 struct hfi1_ctxtdata *hfi1_rcd_get_by_index(struct hfi1_devdata *dd, u16 ctxt) in hfi1_rcd_get_by_index() 341 struct hfi1_devdata *dd = ppd->dd; in hfi1_create_ctxtdata() 527 struct hfi1_devdata *dd = ppd->dd; in set_link_ipg() 632 struct hfi1_devdata *dd, u8 hw_pidx, u8 port) in hfi1_init_pportdata() 714 static int loadtime_init(struct hfi1_devdata *dd) in loadtime_init() 727 static int init_after_reset(struct hfi1_devdata *dd) in init_after_reset() [all …]
|
D | pcie.c | 66 static void tune_pcie_caps(struct hfi1_devdata *); 155 int hfi1_pcie_ddinit(struct hfi1_devdata *dd, struct pci_dev *pdev) in hfi1_pcie_ddinit() 239 void hfi1_pcie_ddcleanup(struct hfi1_devdata *dd) in hfi1_pcie_ddcleanup() 283 static void update_lbus_info(struct hfi1_devdata *dd) in update_lbus_info() 304 int pcie_speeds(struct hfi1_devdata *dd) in pcie_speeds() 352 int request_msix(struct hfi1_devdata *dd, u32 msireq) in request_msix() 368 int restore_pci_variables(struct hfi1_devdata *dd) in restore_pci_variables() 423 int save_pci_variables(struct hfi1_devdata *dd) in save_pci_variables() 489 static void tune_pcie_caps(struct hfi1_devdata *dd) in tune_pcie_caps() 587 struct hfi1_devdata *dd = pci_get_drvdata(pdev); in pci_error_detected() [all …]
|
D | intr.c | 61 struct hfi1_devdata *dd = ppd->dd; in set_mgmt_allowed() 81 struct hfi1_devdata *dd = ppd->dd; in add_full_mgmt_pkey() 126 struct hfi1_devdata *dd = ppd->dd; in signal_ib_event() 152 void handle_linkup_change(struct hfi1_devdata *dd, u32 linkup) in handle_linkup_change() 246 struct hfi1_devdata *dd = rcd->dd; in handle_user_interrupt()
|
D | pio.c | 63 void __cm_reset(struct hfi1_devdata *dd, u64 sendctrl) in __cm_reset() 83 void pio_send_control(struct hfi1_devdata *dd, int op) in pio_send_control() 231 int init_sc_pools_and_sizes(struct hfi1_devdata *dd) in init_sc_pools_and_sizes() 449 int init_send_contexts(struct hfi1_devdata *dd) in init_send_contexts() 503 static int sc_hw_alloc(struct hfi1_devdata *dd, int type, u32 *sw_index, in sc_hw_alloc() 531 static void sc_hw_free(struct hfi1_devdata *dd, u32 sw_index, u32 hw_context) in sc_hw_free() 673 struct hfi1_devdata *dd = sc->dd; in set_pio_integrity() 704 struct send_context *sc_alloc(struct hfi1_devdata *dd, int type, in sc_alloc() 887 struct hfi1_devdata *dd; in sc_free() 980 static bool is_sc_halted(struct hfi1_devdata *dd, u32 hw_context) in is_sc_halted() [all …]
|
D | qsfp.c | 69 struct hfi1_devdata *dd = bus->controlling_dd; in hfi1_setsda() 93 struct hfi1_devdata *dd = bus->controlling_dd; in hfi1_setscl() 146 static struct hfi1_i2c_bus *init_i2c_bus(struct hfi1_devdata *dd, in init_i2c_bus() 188 int set_up_i2c(struct hfi1_devdata *dd, struct hfi1_asic_data *ad) in set_up_i2c() 205 void clean_up_i2c(struct hfi1_devdata *dd, struct hfi1_asic_data *ad) in clean_up_i2c() 215 static int i2c_bus_write(struct hfi1_devdata *dd, struct hfi1_i2c_bus *i2c, in i2c_bus_write() 263 static int i2c_bus_read(struct hfi1_devdata *dd, struct hfi1_i2c_bus *bus, in i2c_bus_read() 319 struct hfi1_devdata *dd = ppd->dd; in __i2c_write() 358 struct hfi1_devdata *dd = ppd->dd; in __i2c_read() 456 struct hfi1_devdata *dd = ppd->dd; in one_qsfp_write() [all …]
|
D | debugfs.c | 138 struct hfi1_devdata *dd = dd_from_dev(ibd); in _opcode_stats_seq_show() 177 struct hfi1_devdata *dd = dd_from_dev(ibd); in _tx_opcode_stats_seq_show() 195 struct hfi1_devdata *dd = dd_from_dev(ibd); in _ctx_stats_seq_start() 207 struct hfi1_devdata *dd = dd_from_dev(ibd); in _ctx_stats_seq_next() 229 struct hfi1_devdata *dd = dd_from_dev(ibd); in _ctx_stats_seq_show() 325 struct hfi1_devdata *dd; in _sdes_seq_start() 337 struct hfi1_devdata *dd = dd_from_dev(ibd); in _sdes_seq_next() 352 struct hfi1_devdata *dd = dd_from_dev(ibd); in _sdes_seq_show() 367 struct hfi1_devdata *dd; in _rcds_seq_start() 379 struct hfi1_devdata *dd = dd_from_dev(ibd); in _rcds_seq_next() [all …]
|
D | file_ops.c | 101 static int allocate_ctxt(struct hfi1_filedata *fd, struct hfi1_devdata *dd, 189 struct hfi1_devdata *dd = container_of(inode->i_cdev, in hfi1_file_open() 190 struct hfi1_devdata, in hfi1_file_open() 343 struct hfi1_devdata *dd; in hfi1_file_mmap() 630 struct hfi1_devdata *dd = container_of(inode->i_cdev, in hfi1_file_close() 631 struct hfi1_devdata, in hfi1_file_close() 847 struct hfi1_devdata *dd = fd->dd; in match_ctxt() 909 struct hfi1_devdata *dd = fd->dd; in find_sub_ctxt() 930 static int allocate_ctxt(struct hfi1_filedata *fd, struct hfi1_devdata *dd, in allocate_ctxt() 1186 struct hfi1_devdata *dd = uctxt->dd; in setup_base_ctxt() [all …]
|
D | affinity.c | 360 static int _dev_comp_vect_cpu_get(struct hfi1_devdata *dd, in _dev_comp_vect_cpu_get() 404 static void _dev_comp_vect_cpu_put(struct hfi1_devdata *dd, int cpu) in _dev_comp_vect_cpu_put() 415 static void _dev_comp_vect_mappings_destroy(struct hfi1_devdata *dd) in _dev_comp_vect_mappings_destroy() 439 static int _dev_comp_vect_mappings_create(struct hfi1_devdata *dd, in _dev_comp_vect_mappings_create() 491 int hfi1_comp_vectors_set_up(struct hfi1_devdata *dd) in hfi1_comp_vectors_set_up() 509 void hfi1_comp_vectors_clean_up(struct hfi1_devdata *dd) in hfi1_comp_vectors_clean_up() 517 struct hfi1_devdata *dd = dd_from_dev(verbs_dev); in hfi1_comp_vect_mappings_lookup() 530 static int _dev_comp_vect_cpu_mask_init(struct hfi1_devdata *dd, in _dev_comp_vect_cpu_mask_init() 597 static void _dev_comp_vect_cpu_mask_clean_up(struct hfi1_devdata *dd, in _dev_comp_vect_cpu_mask_clean_up() 629 int hfi1_dev_affinity_init(struct hfi1_devdata *dd) in hfi1_dev_affinity_init() [all …]
|
D | eprom.c | 88 static void read_page(struct hfi1_devdata *dd, u32 offset, u32 *result) in read_page() 101 static int read_length(struct hfi1_devdata *dd, u32 start, u32 len, void *dest) in read_length() 170 int eprom_init(struct hfi1_devdata *dd) in eprom_init() 251 static int read_partition_platform_config(struct hfi1_devdata *dd, void **data, in read_partition_platform_config() 293 static int read_segment_platform_config(struct hfi1_devdata *dd, in read_segment_platform_config() 462 int eprom_read_platform_config(struct hfi1_devdata *dd, void **data, u32 *size) in eprom_read_platform_config()
|
D | sysfs.c | 297 struct hfi1_devdata *dd = ppd->dd; in sc2vl_attr_show() 476 struct hfi1_devdata *dd = ppd->dd; in vl2mtu_attr_show() 511 struct hfi1_devdata *dd = dd_from_dev(dev); in show_hfi() 526 struct hfi1_devdata *dd = dd_from_dev(dev); in show_boardversion() 537 struct hfi1_devdata *dd = dd_from_dev(dev); in show_nctxts() 555 struct hfi1_devdata *dd = dd_from_dev(dev); in show_nfreectxts() 566 struct hfi1_devdata *dd = dd_from_dev(dev); in show_serial() 577 struct hfi1_devdata *dd = dd_from_dev(dev); in store_chip_reset() 606 struct hfi1_devdata *dd = dd_from_dev(dev); in show_tempsense() 656 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in hfi1_create_port_files() [all …]
|
D | vnic_main.c | 65 static int setup_vnic_ctxt(struct hfi1_devdata *dd, struct hfi1_ctxtdata *uctxt) in setup_vnic_ctxt() 101 static int allocate_vnic_ctxt(struct hfi1_devdata *dd, in allocate_vnic_ctxt() 132 static void deallocate_vnic_ctxt(struct hfi1_devdata *dd, in deallocate_vnic_ctxt() 161 void hfi1_vnic_setup(struct hfi1_devdata *dd) in hfi1_vnic_setup() 166 void hfi1_vnic_cleanup(struct hfi1_devdata *dd) in hfi1_vnic_cleanup() 363 struct hfi1_devdata *dd = vinfo->dd; in hfi1_netdev_start_xmit() 525 struct hfi1_devdata *dd = packet->rcd->dd; in hfi1_vnic_bypass_rcv() 591 struct hfi1_devdata *dd = vinfo->dd; in hfi1_vnic_up() 620 struct hfi1_devdata *dd = vinfo->dd; in hfi1_vnic_down() 662 static int hfi1_vnic_allot_ctxt(struct hfi1_devdata *dd, in hfi1_vnic_allot_ctxt() [all …]
|
D | trace_tx.h | 181 TP_PROTO(struct hfi1_devdata *dd, u32 sel, u8 vl, u8 idx), 202 TP_PROTO(struct hfi1_devdata *dd, u16 ctxt, u16 subctxt), 220 TP_PROTO(struct hfi1_devdata *dd, u16 ctxt, u16 subctxt, 243 TP_PROTO(struct hfi1_devdata *dd, u16 ctxt, u16 subctxt, u16 comp_idx, 268 TP_PROTO(struct hfi1_devdata *dd, u16 ctxt, u16 subctxt, 273 TP_PROTO(struct hfi1_devdata *dd, u16 ctxt, u16 subctxt, 278 TP_PROTO(struct hfi1_devdata *dd, u16 ctxt, u16 subctxt, 283 TP_PROTO(struct hfi1_devdata *dd, u16 ctxt, u16 subctxt, 314 TP_PROTO(struct hfi1_devdata *dd, u16 ctxt, u16 subctxt, 498 TP_PROTO(struct hfi1_devdata *dd, u16 ctxt, u8 subctxt, u16 req, [all …]
|
D | qsfp.h | 229 int get_cable_info(struct hfi1_devdata *dd, u32 port_num, u32 addr, 245 int set_up_i2c(struct hfi1_devdata *dd, struct hfi1_asic_data *ad); 246 void clean_up_i2c(struct hfi1_devdata *dd, struct hfi1_asic_data *ad);
|
D | qp.c | 203 struct hfi1_devdata *dd = dd_from_dev(dev); in hfi1_check_modify_qp() 342 struct hfi1_devdata *dd = dd_from_ibdev(qp->ibqp.device); in _hfi1_schedule_send() 493 struct hfi1_devdata *dd = dd_from_ibdev(qp->ibqp.device); in qp_to_sdma_engine() 518 struct hfi1_devdata *dd = dd_from_ibdev(qp->ibqp.device); in qp_to_send_context() 659 struct hfi1_devdata *dd = container_of(verbs_dev, in free_all_qps() 660 struct hfi1_devdata, in free_all_qps() 742 struct hfi1_devdata *dd = container_of(verbs_dev, in mtu_from_qp() 743 struct hfi1_devdata, in mtu_from_qp() 765 struct hfi1_devdata *dd = container_of(verbs_dev, in get_pmtu_from_attr() 766 struct hfi1_devdata, in get_pmtu_from_attr()
|
D | sdma.c | 308 struct hfi1_devdata *dd = sde->dd; in sdma_wait_for_packet_egress() 340 void sdma_wait(struct hfi1_devdata *dd) in sdma_wait() 478 struct hfi1_devdata *dd = sde->dd; in sdma_err_progress_check_schedule() 736 struct hfi1_devdata *dd = sde->dd; in sdma_engine_get_vl() 766 struct hfi1_devdata *dd, in sdma_select_engine_vl() 809 struct hfi1_devdata *dd, in sdma_select_engine_sc() 853 struct sdma_engine *sdma_select_user_engine(struct hfi1_devdata *dd, in sdma_select_user_engine() 922 struct hfi1_devdata *dd = sde->dd; in sdma_set_cpu_to_sde_map() 1103 struct hfi1_devdata *dd, in sdma_seqfile_dump_cpu_list() 1186 int sdma_map_init(struct hfi1_devdata *dd, u8 port, u8 num_vls, u8 *vl_engines) in sdma_map_init() [all …]
|