Lines Matching defs:hdev
82 static int hccs_get_pcc_chan_id(struct hccs_dev *hdev) in hccs_get_pcc_chan_id()
121 static void hccs_unregister_pcc_channel(struct hccs_dev *hdev) in hccs_unregister_pcc_channel()
130 static int hccs_register_pcc_channel(struct hccs_dev *hdev) in hccs_register_pcc_channel()
192 static int hccs_wait_cmd_complete_by_poll(struct hccs_dev *hdev) in hccs_wait_cmd_complete_by_poll()
214 static int hccs_wait_cmd_complete_by_irq(struct hccs_dev *hdev) in hccs_wait_cmd_complete_by_irq()
227 static inline void hccs_fill_pcc_shared_mem_region(struct hccs_dev *hdev, in hccs_fill_pcc_shared_mem_region()
246 static inline void hccs_fill_ext_pcc_shared_mem_region(struct hccs_dev *hdev, in hccs_fill_ext_pcc_shared_mem_region()
266 static int hccs_pcc_cmd_send(struct hccs_dev *hdev, u8 cmd, in hccs_pcc_cmd_send()
320 static int hccs_get_dev_caps(struct hccs_dev *hdev) in hccs_get_dev_caps()
337 static int hccs_query_chip_num_on_platform(struct hccs_dev *hdev) in hccs_query_chip_num_on_platform()
359 static int hccs_get_chip_info(struct hccs_dev *hdev, in hccs_get_chip_info()
378 static int hccs_query_chip_info_on_platform(struct hccs_dev *hdev) in hccs_query_chip_info_on_platform()
414 static int hccs_query_die_info_on_chip(struct hccs_dev *hdev, u8 chip_id, in hccs_query_die_info_on_chip()
449 static int hccs_query_all_die_info_on_platform(struct hccs_dev *hdev) in hccs_query_all_die_info_on_platform()
486 static int hccs_get_bd_info(struct hccs_dev *hdev, u8 opcode, in hccs_get_bd_info()
514 static int hccs_get_all_port_attr(struct hccs_dev *hdev, in hccs_get_all_port_attr()
568 static int hccs_get_all_port_info_on_die(struct hccs_dev *hdev, in hccs_get_all_port_info_on_die()
599 static int hccs_query_all_port_info_on_platform(struct hccs_dev *hdev) in hccs_query_all_port_info_on_platform()
635 static int hccs_get_hw_info(struct hccs_dev *hdev) in hccs_get_hw_info()
663 static int hccs_query_port_link_status(struct hccs_dev *hdev, in hccs_query_port_link_status()
690 static int hccs_query_port_crc_err_cnt(struct hccs_dev *hdev, in hccs_query_port_crc_err_cnt()
717 static int hccs_get_die_all_link_status(struct hccs_dev *hdev, in hccs_get_die_all_link_status()
747 static int hccs_get_die_all_port_lane_status(struct hccs_dev *hdev, in hccs_get_die_all_port_lane_status()
776 static int hccs_get_die_total_crc_err_cnt(struct hccs_dev *hdev, in hccs_get_die_total_crc_err_cnt()
849 struct hccs_dev *hdev = port->die->chip->hdev; in cur_lane_num_show() local
867 struct hccs_dev *hdev = port->die->chip->hdev; in link_fsm_show() local
903 struct hccs_dev *hdev = port->die->chip->hdev; in lane_mask_show() local
921 struct hccs_dev *hdev = port->die->chip->hdev; in crc_err_cnt_show() local
956 struct hccs_dev *hdev = die->chip->hdev; in all_linked_on_die_show() local
976 struct hccs_dev *hdev = die->chip->hdev; in linked_full_lane_on_die_show() local
996 struct hccs_dev *hdev = die->chip->hdev; in crc_err_cnt_sum_on_die_show() local
1028 struct hccs_dev *hdev = chip->hdev; in all_linked_on_chip_show() local
1059 struct hccs_dev *hdev = chip->hdev; in linked_full_lane_on_chip_show() local
1091 struct hccs_dev *hdev = chip->hdev; in crc_err_cnt_sum_on_chip_show() local
1155 static void hccs_remove_topo_dirs(struct hccs_dev *hdev) in hccs_remove_topo_dirs()
1163 static int hccs_create_hccs_dir(struct hccs_dev *hdev, in hccs_create_hccs_dir()
1179 static int hccs_create_die_dir(struct hccs_dev *hdev, in hccs_create_die_dir()
1212 static int hccs_create_chip_dir(struct hccs_dev *hdev, in hccs_create_chip_dir()
1241 static int hccs_create_topo_dirs(struct hccs_dev *hdev) in hccs_create_topo_dirs()
1267 struct hccs_dev *hdev; in hccs_probe() local
1320 struct hccs_dev *hdev = platform_get_drvdata(pdev); in hccs_remove() local