/linux-6.1.9/drivers/infiniband/hw/hfi1/ |
D | netdev.h | 53 struct hfi1_devdata *dd; 65 int hfi1_netdev_ctxt_count(struct hfi1_devdata *dd) in hfi1_netdev_ctxt_count() 71 struct hfi1_ctxtdata *hfi1_netdev_get_ctxt(struct hfi1_devdata *dd, int ctxt) in hfi1_netdev_get_ctxt() 77 int hfi1_netdev_get_free_rmt_idx(struct hfi1_devdata *dd) in hfi1_netdev_get_free_rmt_idx() 83 void hfi1_netdev_set_free_rmt_idx(struct hfi1_devdata *dd, int rmt_idx) in hfi1_netdev_set_free_rmt_idx() 88 u32 hfi1_num_netdev_contexts(struct hfi1_devdata *dd, u32 available_contexts, 91 void hfi1_netdev_enable_queues(struct hfi1_devdata *dd); 92 void hfi1_netdev_disable_queues(struct hfi1_devdata *dd); 93 int hfi1_netdev_rx_init(struct hfi1_devdata *dd); 94 int hfi1_netdev_rx_destroy(struct hfi1_devdata *dd); [all …]
|
D | chip.h | 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() [all …]
|
D | chip.c | 1003 static u32 chip_to_opa_lstate(struct hfi1_devdata *dd, u32 chip_lstate); 1004 static int set_physical_link_state(struct hfi1_devdata *dd, u64 state); 1005 static void read_vc_remote_phy(struct hfi1_devdata *dd, u8 *power_management, 1007 static void read_vc_remote_fabric(struct hfi1_devdata *dd, u8 *vau, u8 *z, 1009 static void read_vc_remote_link_width(struct hfi1_devdata *dd, 1011 static void read_vc_local_link_mode(struct hfi1_devdata *dd, u8 *misc_bits, 1013 static void read_remote_device_id(struct hfi1_devdata *dd, u16 *device_id, 1015 static void read_local_lni(struct hfi1_devdata *dd, u8 *enable_lane_rx); 1016 static int read_tx_settings(struct hfi1_devdata *dd, u8 *enable_lane_tx, 1019 static void handle_sdma_eng_err(struct hfi1_devdata *dd, [all …]
|
D | pio.h | 58 struct hfi1_devdata *dd; /* device */ 227 int pio_map_init(struct hfi1_devdata *dd, u8 port, u8 num_vls, 229 void free_pio_map(struct hfi1_devdata *dd); 230 struct send_context *pio_select_send_context_vl(struct hfi1_devdata *dd, 232 struct send_context *pio_select_send_context_sc(struct hfi1_devdata *dd, 236 int init_credit_return(struct hfi1_devdata *dd); 237 void free_credit_return(struct hfi1_devdata *dd); 238 int init_sc_pools_and_sizes(struct hfi1_devdata *dd); 239 int init_send_contexts(struct hfi1_devdata *dd); 240 int init_pervl_scs(struct hfi1_devdata *dd); [all …]
|
D | sdma.h | 272 struct hfi1_devdata *dd; 371 int sdma_init(struct hfi1_devdata *dd, u8 port); 372 void sdma_start(struct hfi1_devdata *dd); 373 void sdma_exit(struct hfi1_devdata *dd); 374 void sdma_clean(struct hfi1_devdata *dd, size_t num_engines); 375 void sdma_all_running(struct hfi1_devdata *dd); 376 void sdma_all_idle(struct hfi1_devdata *dd); 377 void sdma_freeze_notify(struct hfi1_devdata *dd, int go_idle); 378 void sdma_freeze(struct hfi1_devdata *dd); 379 void sdma_unfreeze(struct hfi1_devdata *dd); [all …]
|
D | msix.h | 12 int msix_initialize(struct hfi1_devdata *dd); 13 int msix_request_irqs(struct hfi1_devdata *dd); 14 void msix_clean_up_interrupts(struct hfi1_devdata *dd); 15 int msix_request_general_irq(struct hfi1_devdata *dd); 18 void msix_free_irq(struct hfi1_devdata *dd, u8 msix_intr); 21 void msix_netdev_synchronize_irq(struct hfi1_devdata *dd);
|
D | netdev_rx.c | 24 struct hfi1_devdata *dd = rx->dd; in hfi1_netdev_setup_ctxt() 58 static int hfi1_netdev_allocate_ctxt(struct hfi1_devdata *dd, in hfi1_netdev_allocate_ctxt() 91 static void hfi1_netdev_deallocate_ctxt(struct hfi1_devdata *dd, in hfi1_netdev_deallocate_ctxt() 125 struct hfi1_devdata *dd = rx->dd; in hfi1_netdev_allot_ctxt() 156 u32 hfi1_num_netdev_contexts(struct hfi1_devdata *dd, u32 available_contexts, in hfi1_num_netdev_contexts() 190 struct hfi1_devdata *dd = rx->dd; in hfi1_netdev_rxq_init() 247 struct hfi1_devdata *dd = rx->dd; in hfi1_netdev_rxq_deinit() 307 int hfi1_netdev_rx_init(struct hfi1_devdata *dd) in hfi1_netdev_rx_init() 327 int hfi1_netdev_rx_destroy(struct hfi1_devdata *dd) in hfi1_netdev_rx_destroy() 353 int hfi1_alloc_rx(struct hfi1_devdata *dd) in hfi1_alloc_rx() [all …]
|
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 | affinity.h | 38 int hfi1_dev_affinity_init(struct hfi1_devdata *dd); 43 int hfi1_get_irq_affinity(struct hfi1_devdata *dd, 49 void hfi1_put_irq_affinity(struct hfi1_devdata *dd, 83 void hfi1_dev_affinity_clean_up(struct hfi1_devdata *dd); 85 int hfi1_comp_vectors_set_up(struct hfi1_devdata *dd); 86 void hfi1_comp_vectors_clean_up(struct hfi1_devdata *dd);
|
D | aspm.h | 19 void aspm_init(struct hfi1_devdata *dd); 20 void aspm_exit(struct hfi1_devdata *dd); 21 void aspm_hw_disable_l1(struct hfi1_devdata *dd); 23 void aspm_disable_all(struct hfi1_devdata *dd); 24 void aspm_enable_all(struct hfi1_devdata *dd);
|
D | firmware.c | 212 static int load_fabric_serdes_firmware(struct hfi1_devdata *dd, 214 static void dump_fw_version(struct hfi1_devdata *dd); 229 static int __read_8051_data(struct hfi1_devdata *dd, u32 addr, u64 *result) in __read_8051_data() 265 int read_8051_data(struct hfi1_devdata *dd, u32 addr, u32 len, u64 *result) in read_8051_data() 293 static int write_8051(struct hfi1_devdata *dd, int code, u32 start, in write_8051() 349 static int invalid_header(struct hfi1_devdata *dd, const char *what, in invalid_header() 364 static int verify_css_header(struct hfi1_devdata *dd, struct css_header *css) in verify_css_header() 388 static int payload_check(struct hfi1_devdata *dd, const char *name, in payload_check() 407 static int obtain_one_firmware(struct hfi1_devdata *dd, const char *name, in obtain_one_firmware() 541 static void __obtain_firmware(struct hfi1_devdata *dd) in __obtain_firmware() [all …]
|
D | hfi.h | 179 struct hfi1_devdata *dd; 734 struct hfi1_devdata *dd; 982 struct hfi1_devdata *controlling_dd; /* current controlling device */ 990 struct hfi1_devdata *dds[2]; /* back pointers */ 1019 struct hfi1_devdata { struct 1299 void (*pio_inline_send)(struct hfi1_devdata *dd, struct pio_buf *pbuf, argument 1301 int (*process_vnic_dma_send)(struct hfi1_devdata *dd, u8 q_idx, argument 1387 struct hfi1_devdata *dd; argument 1409 struct hfi1_devdata *hfi1_lookup(int unit); 1417 int hfi1_init(struct hfi1_devdata *dd, int reinit); [all …]
|
D | vnic.h | 43 struct hfi1_devdata *dd; 82 struct hfi1_devdata *dd; 106 void hfi1_vnic_setup(struct hfi1_devdata *dd); 107 int hfi1_vnic_txreq_init(struct hfi1_devdata *dd); 108 void hfi1_vnic_txreq_deinit(struct hfi1_devdata *dd); 122 int hfi1_vnic_send_dma(struct hfi1_devdata *dd, u8 q_idx,
|
D | eprom.h | 6 struct hfi1_devdata; 8 int eprom_init(struct hfi1_devdata *dd); 9 int eprom_read_platform_config(struct hfi1_devdata *dd, void **buf_ret,
|
D | sysfs.c | 17 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in hfi1_get_pportdata_kobj() 107 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in cc_prescan_show() 117 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in cc_prescan_store() 151 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in sc2vl_attr_show() 248 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in sl2sc_attr_show() 347 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in vl2mtu_attr_show() 421 struct hfi1_devdata *dd = dd_from_dev(dev); in board_id_show() 435 struct hfi1_devdata *dd = dd_from_dev(dev); in boardversion_show() 447 struct hfi1_devdata *dd = dd_from_dev(dev); in nctxts_show() 466 struct hfi1_devdata *dd = dd_from_dev(dev); in nfreectxts_show() [all …]
|
D | msix.c | 16 int msix_initialize(struct hfi1_devdata *dd) in msix_initialize() 74 static int msix_request_irq(struct hfi1_devdata *dd, void *arg, in msix_request_irq() 207 int msix_request_general_irq(struct hfi1_devdata *dd) in msix_request_general_irq() 233 static void enable_sdma_srcs(struct hfi1_devdata *dd, int i) in enable_sdma_srcs() 250 int msix_request_irqs(struct hfi1_devdata *dd) in msix_request_irqs() 286 void msix_free_irq(struct hfi1_devdata *dd, u8 msix_intr) in msix_free_irq() 314 void msix_clean_up_interrupts(struct hfi1_devdata *dd) in msix_clean_up_interrupts() 335 void msix_netdev_synchronize_irq(struct hfi1_devdata *dd) in msix_netdev_synchronize_irq()
|
D | init.c | 85 static int hfi1_create_kctxt(struct hfi1_devdata *dd, in hfi1_create_kctxt() 132 int hfi1_create_kctxts(struct hfi1_devdata *dd) in hfi1_create_kctxts() 225 static int allocate_rcd_index(struct hfi1_devdata *dd, in allocate_rcd_index() 263 struct hfi1_ctxtdata *hfi1_rcd_get_by_index_safe(struct hfi1_devdata *dd, in hfi1_rcd_get_by_index_safe() 284 struct hfi1_ctxtdata *hfi1_rcd_get_by_index(struct hfi1_devdata *dd, u16 ctxt) in hfi1_rcd_get_by_index() 307 struct hfi1_devdata *dd = ppd->dd; in hfi1_create_ctxtdata() 485 struct hfi1_devdata *dd = ppd->dd; in set_link_ipg() 590 struct hfi1_devdata *dd, u8 hw_pidx, u32 port) in hfi1_init_pportdata() 664 static int loadtime_init(struct hfi1_devdata *dd) in loadtime_init() 677 static int init_after_reset(struct hfi1_devdata *dd) in init_after_reset() [all …]
|
D | debugfs.c | 96 struct hfi1_devdata *dd = dd_from_dev(ibd); in _opcode_stats_seq_show() 135 struct hfi1_devdata *dd = dd_from_dev(ibd); in _tx_opcode_stats_seq_show() 153 struct hfi1_devdata *dd = dd_from_dev(ibd); in _ctx_stats_seq_start() 165 struct hfi1_devdata *dd = dd_from_dev(ibd); in _ctx_stats_seq_next() 187 struct hfi1_devdata *dd = dd_from_dev(ibd); in _ctx_stats_seq_show() 283 struct hfi1_devdata *dd; in _sdes_seq_start() 295 struct hfi1_devdata *dd = dd_from_dev(ibd); in _sdes_seq_next() 310 struct hfi1_devdata *dd = dd_from_dev(ibd); in _sdes_seq_show() 325 struct hfi1_devdata *dd; in _rcds_seq_start() 337 struct hfi1_devdata *dd = dd_from_dev(ibd); in _rcds_seq_next() [all …]
|
D | pcie.c | 24 int hfi1_pcie_init(struct hfi1_devdata *dd) in hfi1_pcie_init() 94 int hfi1_pcie_ddinit(struct hfi1_devdata *dd, struct pci_dev *pdev) in hfi1_pcie_ddinit() 178 void hfi1_pcie_ddcleanup(struct hfi1_devdata *dd) in hfi1_pcie_ddcleanup() 222 static void update_lbus_info(struct hfi1_devdata *dd) in update_lbus_info() 243 int pcie_speeds(struct hfi1_devdata *dd) in pcie_speeds() 293 int restore_pci_variables(struct hfi1_devdata *dd) in restore_pci_variables() 352 int save_pci_variables(struct hfi1_devdata *dd) in save_pci_variables() 419 void tune_pcie_caps(struct hfi1_devdata *dd) in tune_pcie_caps() 517 struct hfi1_devdata *dd = pci_get_drvdata(pdev); in pci_error_detected() 554 struct hfi1_devdata *dd = pci_get_drvdata(pdev); in pci_mmio_enabled() [all …]
|
D | intr.c | 19 struct hfi1_devdata *dd = ppd->dd; in set_mgmt_allowed() 39 struct hfi1_devdata *dd = ppd->dd; in add_full_mgmt_pkey() 84 struct hfi1_devdata *dd = ppd->dd; in signal_ib_event() 110 void handle_linkup_change(struct hfi1_devdata *dd, u32 linkup) in handle_linkup_change() 204 struct hfi1_devdata *dd = rcd->dd; in handle_user_interrupt()
|
D | pio.c | 21 void __cm_reset(struct hfi1_devdata *dd, u64 sendctrl) in __cm_reset() 33 void pio_send_control(struct hfi1_devdata *dd, int op) in pio_send_control() 181 int init_sc_pools_and_sizes(struct hfi1_devdata *dd) in init_sc_pools_and_sizes() 399 int init_send_contexts(struct hfi1_devdata *dd) in init_send_contexts() 453 static int sc_hw_alloc(struct hfi1_devdata *dd, int type, u32 *sw_index, in sc_hw_alloc() 481 static void sc_hw_free(struct hfi1_devdata *dd, u32 sw_index, u32 hw_context) in sc_hw_free() 623 struct hfi1_devdata *dd = sc->dd; in set_pio_integrity() 654 struct send_context *sc_alloc(struct hfi1_devdata *dd, int type, in sc_alloc() 838 struct hfi1_devdata *dd; in sc_free() 949 static bool is_sc_halted(struct hfi1_devdata *dd, u32 hw_context) in is_sc_halted() [all …]
|
D | qsfp.c | 27 struct hfi1_devdata *dd = bus->controlling_dd; in hfi1_setsda() 51 struct hfi1_devdata *dd = bus->controlling_dd; in hfi1_setscl() 104 static struct hfi1_i2c_bus *init_i2c_bus(struct hfi1_devdata *dd, in init_i2c_bus() 146 int set_up_i2c(struct hfi1_devdata *dd, struct hfi1_asic_data *ad) in set_up_i2c() 163 void clean_up_i2c(struct hfi1_devdata *dd, struct hfi1_asic_data *ad) in clean_up_i2c() 173 static int i2c_bus_write(struct hfi1_devdata *dd, struct hfi1_i2c_bus *i2c, in i2c_bus_write() 221 static int i2c_bus_read(struct hfi1_devdata *dd, struct hfi1_i2c_bus *bus, in i2c_bus_read() 277 struct hfi1_devdata *dd = ppd->dd; in __i2c_write() 316 struct hfi1_devdata *dd = ppd->dd; in __i2c_read() 414 struct hfi1_devdata *dd = ppd->dd; in one_qsfp_write() [all …]
|
D | file_ops.c | 61 static int allocate_ctxt(struct hfi1_filedata *fd, struct hfi1_devdata *dd, 149 struct hfi1_devdata *dd = container_of(inode->i_cdev, in hfi1_file_open() 150 struct hfi1_devdata, in hfi1_file_open() 313 struct hfi1_devdata *dd; in hfi1_file_mmap() 600 struct hfi1_devdata *dd = container_of(inode->i_cdev, in hfi1_file_close() 601 struct hfi1_devdata, in hfi1_file_close() 817 struct hfi1_devdata *dd = fd->dd; in match_ctxt() 879 struct hfi1_devdata *dd = fd->dd; in find_sub_ctxt() 900 static int allocate_ctxt(struct hfi1_filedata *fd, struct hfi1_devdata *dd, in allocate_ctxt() 1157 struct hfi1_devdata *dd = uctxt->dd; in setup_base_ctxt() [all …]
|
D | affinity.c | 322 static int _dev_comp_vect_cpu_get(struct hfi1_devdata *dd, in _dev_comp_vect_cpu_get() 366 static void _dev_comp_vect_cpu_put(struct hfi1_devdata *dd, int cpu) in _dev_comp_vect_cpu_put() 377 static void _dev_comp_vect_mappings_destroy(struct hfi1_devdata *dd) in _dev_comp_vect_mappings_destroy() 401 static int _dev_comp_vect_mappings_create(struct hfi1_devdata *dd, in _dev_comp_vect_mappings_create() 455 int hfi1_comp_vectors_set_up(struct hfi1_devdata *dd) in hfi1_comp_vectors_set_up() 473 void hfi1_comp_vectors_clean_up(struct hfi1_devdata *dd) in hfi1_comp_vectors_clean_up() 481 struct hfi1_devdata *dd = dd_from_dev(verbs_dev); in hfi1_comp_vect_mappings_lookup() 494 static int _dev_comp_vect_cpu_mask_init(struct hfi1_devdata *dd, in _dev_comp_vect_cpu_mask_init() 561 static void _dev_comp_vect_cpu_mask_clean_up(struct hfi1_devdata *dd, in _dev_comp_vect_cpu_mask_clean_up() 593 int hfi1_dev_affinity_init(struct hfi1_devdata *dd) in hfi1_dev_affinity_init() [all …]
|
D | eprom.c | 47 static void read_page(struct hfi1_devdata *dd, u32 offset, u32 *result) in read_page() 60 static int read_length(struct hfi1_devdata *dd, u32 start, u32 len, void *dest) in read_length() 129 int eprom_init(struct hfi1_devdata *dd) in eprom_init() 210 static int read_partition_platform_config(struct hfi1_devdata *dd, void **data, in read_partition_platform_config() 252 static int read_segment_platform_config(struct hfi1_devdata *dd, in read_segment_platform_config() 421 int eprom_read_platform_config(struct hfi1_devdata *dd, void **data, u32 *size) in eprom_read_platform_config()
|