| /Linux-v5.4/drivers/infiniband/hw/hfi1/ | 
| D | chip.h | 615 u64 read_csr(const struct hfi1_devdata *dd, u32 offset);616 void write_csr(const struct hfi1_devdata *dd, u32 offset, u64 value);
 623 static inline u64 read_kctxt_csr(const struct hfi1_devdata *dd, int ctxt,  in read_kctxt_csr()
 630 static inline void write_kctxt_csr(struct hfi1_devdata *dd, int ctxt,  in write_kctxt_csr()
 637 int read_lcb_csr(struct hfi1_devdata *dd, u32 offset, u64 *data);
 638 int write_lcb_csr(struct hfi1_devdata *dd, u32 offset, u64 data);
 641 	const struct hfi1_devdata *dd,
 645 	const struct hfi1_devdata *dd,  in get_kctxt_csr_addr()
 658 static inline u64 read_uctxt_csr(const struct hfi1_devdata *dd, int ctxt,  in read_uctxt_csr()
 665 static inline void write_uctxt_csr(struct hfi1_devdata *dd, int ctxt,  in write_uctxt_csr()
 [all …]
 
 | 
| D | chip.c | 1026 static u32 chip_to_opa_lstate(struct hfi1_devdata *dd, u32 chip_lstate);1027 static int set_physical_link_state(struct hfi1_devdata *dd, u64 state);
 1028 static void read_vc_remote_phy(struct hfi1_devdata *dd, u8 *power_management,
 1030 static void read_vc_remote_fabric(struct hfi1_devdata *dd, u8 *vau, u8 *z,
 1032 static void read_vc_remote_link_width(struct hfi1_devdata *dd,
 1034 static void read_vc_local_link_mode(struct hfi1_devdata *dd, u8 *misc_bits,
 1036 static void read_remote_device_id(struct hfi1_devdata *dd, u16 *device_id,
 1038 static void read_local_lni(struct hfi1_devdata *dd, u8 *enable_lane_rx);
 1039 static int read_tx_settings(struct hfi1_devdata *dd, u8 *enable_lane_tx,
 1042 static void handle_sdma_eng_err(struct hfi1_devdata *dd,
 [all …]
 
 | 
| D | pio.h | 100 	struct hfi1_devdata *dd;		/* device */269 int pio_map_init(struct hfi1_devdata *dd, u8 port, u8 num_vls,
 271 void free_pio_map(struct hfi1_devdata *dd);
 272 struct send_context *pio_select_send_context_vl(struct hfi1_devdata *dd,
 274 struct send_context *pio_select_send_context_sc(struct hfi1_devdata *dd,
 278 int init_credit_return(struct hfi1_devdata *dd);
 279 void free_credit_return(struct hfi1_devdata *dd);
 280 int init_sc_pools_and_sizes(struct hfi1_devdata *dd);
 281 int init_send_contexts(struct hfi1_devdata *dd);
 282 int init_credit_return(struct hfi1_devdata *dd);
 [all …]
 
 | 
| D | sdma.h | 313 	struct hfi1_devdata *dd;412 int sdma_init(struct hfi1_devdata *dd, u8 port);
 413 void sdma_start(struct hfi1_devdata *dd);
 414 void sdma_exit(struct hfi1_devdata *dd);
 415 void sdma_clean(struct hfi1_devdata *dd, size_t num_engines);
 416 void sdma_all_running(struct hfi1_devdata *dd);
 417 void sdma_all_idle(struct hfi1_devdata *dd);
 418 void sdma_freeze_notify(struct hfi1_devdata *dd, int go_idle);
 419 void sdma_freeze(struct hfi1_devdata *dd);
 420 void sdma_unfreeze(struct hfi1_devdata *dd);
 [all …]
 
 | 
| D | msix.h | 54 int msix_initialize(struct hfi1_devdata *dd);55 int msix_request_irqs(struct hfi1_devdata *dd);
 56 void msix_clean_up_interrupts(struct hfi1_devdata *dd);
 59 void msix_free_irq(struct hfi1_devdata *dd, u8 msix_intr);
 62 void msix_vnic_synchronize_irq(struct hfi1_devdata *dd);
 
 | 
| 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.c | 23 static bool aspm_hw_l1_supported(struct hfi1_devdata *dd)  in aspm_hw_l1_supported()46 static void aspm_hw_set_l1_ent_latency(struct hfi1_devdata *dd)  in aspm_hw_set_l1_ent_latency()
 57 static void aspm_hw_enable_l1(struct hfi1_devdata *dd)  in aspm_hw_enable_l1()
 77 void aspm_hw_disable_l1(struct hfi1_devdata *dd)  in aspm_hw_disable_l1()
 89 static  void aspm_enable(struct hfi1_devdata *dd)  in aspm_enable()
 99 static  void aspm_disable(struct hfi1_devdata *dd)  in aspm_disable()
 108 static  void aspm_disable_inc(struct hfi1_devdata *dd)  in aspm_disable_inc()
 118 static  void aspm_enable_dec(struct hfi1_devdata *dd)  in aspm_enable_dec()
 185 void aspm_disable_all(struct hfi1_devdata *dd)  in aspm_disable_all()
 207 void aspm_enable_all(struct hfi1_devdata *dd)  in aspm_enable_all()
 [all …]
 
 | 
| D | aspm.h | 60 void aspm_init(struct hfi1_devdata *dd);61 void aspm_exit(struct hfi1_devdata *dd);
 62 void aspm_hw_disable_l1(struct hfi1_devdata *dd);
 64 void aspm_disable_all(struct hfi1_devdata *dd);
 65 void aspm_enable_all(struct hfi1_devdata *dd);
 
 | 
| 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 | 217 	struct hfi1_devdata *dd;772 	struct hfi1_devdata *dd;
 1024 	struct hfi1_devdata *controlling_dd; /* current controlling device */
 1032 	struct hfi1_devdata *dds[2];	/* back pointers */
 1073 struct hfi1_devdata {  struct
 1351 	void (*pio_inline_send)(struct hfi1_devdata *dd, struct pio_buf *pbuf,  argument
 1353 	int (*process_vnic_dma_send)(struct hfi1_devdata *dd, u8 q_idx,  argument
 1416 static inline bool hfi1_vnic_is_rsm_full(struct hfi1_devdata *dd, int spare)  in hfi1_vnic_is_rsm_full()  argument
 1439 	struct hfi1_devdata *dd;
 1460 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 | 129 static int hfi1_create_kctxt(struct hfi1_devdata *dd,  in hfi1_create_kctxt()172 int hfi1_create_kctxts(struct hfi1_devdata *dd)  in hfi1_create_kctxts()
 265 static int allocate_rcd_index(struct hfi1_devdata *dd,  in allocate_rcd_index()
 303 struct hfi1_ctxtdata *hfi1_rcd_get_by_index_safe(struct hfi1_devdata *dd,  in hfi1_rcd_get_by_index_safe()
 324 struct hfi1_ctxtdata *hfi1_rcd_get_by_index(struct hfi1_devdata *dd, u16 ctxt)  in hfi1_rcd_get_by_index()
 347 	struct hfi1_devdata *dd = ppd->dd;  in hfi1_create_ctxtdata()
 539 	struct hfi1_devdata *dd = ppd->dd;  in set_link_ipg()
 644 			 struct hfi1_devdata *dd, u8 hw_pidx, u8 port)  in hfi1_init_pportdata()
 723 static int loadtime_init(struct hfi1_devdata *dd)  in loadtime_init()
 736 static int init_after_reset(struct hfi1_devdata *dd)  in init_after_reset()
 [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 | msix.c | 58 int msix_initialize(struct hfi1_devdata *dd)  in msix_initialize()116 static int msix_request_irq(struct hfi1_devdata *dd, void *arg,  in msix_request_irq()
 248 static void enable_sdma_srcs(struct hfi1_devdata *dd, int i)  in enable_sdma_srcs()
 265 int msix_request_irqs(struct hfi1_devdata *dd)  in msix_request_irqs()
 302 void msix_free_irq(struct hfi1_devdata *dd, u8 msix_intr)  in msix_free_irq()
 330 void msix_clean_up_interrupts(struct hfi1_devdata *dd)  in msix_clean_up_interrupts()
 351 void msix_vnic_synchronize_irq(struct hfi1_devdata *dd)  in msix_vnic_synchronize_irq()
 
 | 
| D | pcie.c | 66 int hfi1_pcie_init(struct hfi1_devdata *dd)  in hfi1_pcie_init()143 int hfi1_pcie_ddinit(struct hfi1_devdata *dd, struct pci_dev *pdev)  in hfi1_pcie_ddinit()
 227 void hfi1_pcie_ddcleanup(struct hfi1_devdata *dd)  in hfi1_pcie_ddcleanup()
 271 static void update_lbus_info(struct hfi1_devdata *dd)  in update_lbus_info()
 292 int pcie_speeds(struct hfi1_devdata *dd)  in pcie_speeds()
 338 int restore_pci_variables(struct hfi1_devdata *dd)  in restore_pci_variables()
 393 int save_pci_variables(struct hfi1_devdata *dd)  in save_pci_variables()
 460 void tune_pcie_caps(struct hfi1_devdata *dd)  in tune_pcie_caps()
 558 	struct hfi1_devdata *dd = pci_get_drvdata(pdev);  in pci_error_detected()
 595 	struct hfi1_devdata *dd = pci_get_drvdata(pdev);  in pci_mmio_enabled()
 [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()75 void pio_send_control(struct hfi1_devdata *dd, int op)  in pio_send_control()
 223 int init_sc_pools_and_sizes(struct hfi1_devdata *dd)  in init_sc_pools_and_sizes()
 441 int init_send_contexts(struct hfi1_devdata *dd)  in init_send_contexts()
 495 static int sc_hw_alloc(struct hfi1_devdata *dd, int type, u32 *sw_index,  in sc_hw_alloc()
 523 static void sc_hw_free(struct hfi1_devdata *dd, u32 sw_index, u32 hw_context)  in sc_hw_free()
 665 	struct hfi1_devdata *dd = sc->dd;  in set_pio_integrity()
 696 struct send_context *sc_alloc(struct hfi1_devdata *dd, int type,  in sc_alloc()
 880 	struct hfi1_devdata *dd;  in sc_free()
 989 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 | 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()
 848 	struct hfi1_devdata *dd = fd->dd;  in match_ctxt()
 910 	struct hfi1_devdata *dd = fd->dd;  in find_sub_ctxt()
 931 static int allocate_ctxt(struct hfi1_filedata *fd, struct hfi1_devdata *dd,  in allocate_ctxt()
 1188 	struct hfi1_devdata *dd = uctxt->dd;  in setup_base_ctxt()
 [all …]
 
 | 
| D | affinity.c | 361 static int _dev_comp_vect_cpu_get(struct hfi1_devdata *dd,  in _dev_comp_vect_cpu_get()405 static void _dev_comp_vect_cpu_put(struct hfi1_devdata *dd, int cpu)  in _dev_comp_vect_cpu_put()
 416 static void _dev_comp_vect_mappings_destroy(struct hfi1_devdata *dd)  in _dev_comp_vect_mappings_destroy()
 440 static int _dev_comp_vect_mappings_create(struct hfi1_devdata *dd,  in _dev_comp_vect_mappings_create()
 492 int hfi1_comp_vectors_set_up(struct hfi1_devdata *dd)  in hfi1_comp_vectors_set_up()
 510 void hfi1_comp_vectors_clean_up(struct hfi1_devdata *dd)  in hfi1_comp_vectors_clean_up()
 518 	struct hfi1_devdata *dd = dd_from_dev(verbs_dev);  in hfi1_comp_vect_mappings_lookup()
 531 static int _dev_comp_vect_cpu_mask_init(struct hfi1_devdata *dd,  in _dev_comp_vect_cpu_mask_init()
 598 static void _dev_comp_vect_cpu_mask_clean_up(struct hfi1_devdata *dd,  in _dev_comp_vect_cpu_mask_clean_up()
 630 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()
 512 	struct hfi1_devdata *dd = dd_from_dev(dev);  in board_id_show()
 528 	struct hfi1_devdata *dd = dd_from_dev(dev);  in boardversion_show()
 540 	struct hfi1_devdata *dd = dd_from_dev(dev);  in nctxts_show()
 559 	struct hfi1_devdata *dd = dd_from_dev(dev);  in nfreectxts_show()
 571 	struct hfi1_devdata *dd = dd_from_dev(dev);  in serial_show()
 583 	struct hfi1_devdata *dd = dd_from_dev(dev);  in chip_reset_store()
 613 	struct hfi1_devdata *dd = dd_from_dev(dev);  in tempsense_show()
 660 	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()
 163 void hfi1_vnic_setup(struct hfi1_devdata *dd)  in hfi1_vnic_setup()
 168 void hfi1_vnic_cleanup(struct hfi1_devdata *dd)  in hfi1_vnic_cleanup()
 365 	struct hfi1_devdata *dd = vinfo->dd;  in hfi1_netdev_start_xmit()
 526 	struct hfi1_devdata *dd = packet->rcd->dd;  in hfi1_vnic_bypass_rcv()
 593 	struct hfi1_devdata *dd = vinfo->dd;  in hfi1_vnic_up()
 621 	struct hfi1_devdata *dd = vinfo->dd;  in hfi1_vnic_down()
 663 static int hfi1_vnic_allot_ctxt(struct hfi1_devdata *dd,  in hfi1_vnic_allot_ctxt()
 [all …]
 
 | 
| D | trace_tx.h | 189 	    TP_PROTO(struct hfi1_devdata *dd, u32 sel, u8 vl, u8 idx),210 	    TP_PROTO(struct hfi1_devdata *dd, u16 ctxt, u16 subctxt),
 228 	    TP_PROTO(struct hfi1_devdata *dd, u16 ctxt, u16 subctxt,
 251 	TP_PROTO(struct hfi1_devdata *dd, u16 ctxt, u16 subctxt, u16 comp_idx,
 276 	     TP_PROTO(struct hfi1_devdata *dd, u16 ctxt, u16 subctxt,
 281 	     TP_PROTO(struct hfi1_devdata *dd, u16 ctxt, u16 subctxt,
 286 	     TP_PROTO(struct hfi1_devdata *dd, u16 ctxt, u16 subctxt,
 291 	    TP_PROTO(struct hfi1_devdata *dd, u16 ctxt, u16 subctxt,
 322 	    TP_PROTO(struct hfi1_devdata *dd, u16 ctxt, u16 subctxt,
 506 	    TP_PROTO(struct hfi1_devdata *dd, u16 ctxt, u8 subctxt, u16 req,
 [all …]
 
 |