• Home
  • Raw
  • Download

Lines Matching full:die

20  *   the die:
354 u8 die_idx, struct hccs_die_info *die) in hccs_query_die_info_on_chip() argument
370 die->die_id = rsp_data->die_id; in hccs_query_die_info_on_chip()
371 die->port_num = rsp_data->port_num; in hccs_query_die_info_on_chip()
372 die->min_port_id = rsp_data->min_port_id; in hccs_query_die_info_on_chip()
373 die->max_port_id = rsp_data->max_port_id; in hccs_query_die_info_on_chip()
374 if (die->min_port_id > die->max_port_id) { in hccs_query_die_info_on_chip()
376 die->min_port_id, die->max_port_id, die_idx); in hccs_query_die_info_on_chip()
379 if (die->max_port_id > HCCS_DIE_MAX_PORT_ID) { in hccs_query_die_info_on_chip()
381 die->max_port_id, die_idx); in hccs_query_die_info_on_chip()
392 struct hccs_die_info *die; in hccs_query_all_die_info_on_platform() local
411 die = &chip->dies[j]; in hccs_query_all_die_info_on_platform()
412 ret = hccs_query_die_info_on_chip(hdev, i, j, die); in hccs_query_all_die_info_on_platform()
414 dev_err(dev, "get die idx (%u) info on chip%u failed, ret = %d.\n", in hccs_query_all_die_info_on_platform()
418 die->chip = chip; in hccs_query_all_die_info_on_platform()
454 struct hccs_die_info *die, in hccs_get_all_port_attr() argument
469 start_id = die->min_port_id; in hccs_get_all_port_attr()
470 while (start_id <= die->max_port_id) { in hccs_get_all_port_attr()
475 req_param->chip_id = die->chip->chip_id; in hccs_get_all_port_attr()
476 req_param->die_id = die->die_id; in hccs_get_all_port_attr()
482 "get the information of port%u on die%u failed, ret = %d.\n", in hccs_get_all_port_attr()
483 start_id, die->die_id, ret); in hccs_get_all_port_attr()
491 "next port id (%u) is not greater than last start id (%u) on die%u.\n", in hccs_get_all_port_attr()
492 rsp_head.next_id, start_id, die->die_id); in hccs_get_all_port_attr()
502 struct hccs_die_info *die) in hccs_get_all_port_info_on_die() argument
509 attrs = kcalloc(die->port_num, sizeof(struct hccs_port_attr), in hccs_get_all_port_info_on_die()
514 ret = hccs_get_all_port_attr(hdev, die, attrs, die->port_num); in hccs_get_all_port_info_on_die()
518 for (i = 0; i < die->port_num; i++) { in hccs_get_all_port_info_on_die()
519 port = &die->ports[i]; in hccs_get_all_port_info_on_die()
524 port->die = die; in hccs_get_all_port_info_on_die()
537 struct hccs_die_info *die; in hccs_query_all_port_info_on_platform() local
544 die = &chip->dies[j]; in hccs_query_all_port_info_on_platform()
545 if (!die->port_num) in hccs_query_all_port_info_on_platform()
548 die->ports = devm_kzalloc(dev, in hccs_query_all_port_info_on_platform()
549 die->port_num * sizeof(struct hccs_port_info), in hccs_query_all_port_info_on_platform()
551 if (!die->ports) { in hccs_query_all_port_info_on_platform()
552 dev_err(dev, "allocate ports memory on chip%u/die%u failed.\n", in hccs_query_all_port_info_on_platform()
553 i, die->die_id); in hccs_query_all_port_info_on_platform()
557 ret = hccs_get_all_port_info_on_die(hdev, die); in hccs_query_all_port_info_on_platform()
559 dev_err(dev, "get all port info on chip%u/die%u failed, ret = %d.\n", in hccs_query_all_port_info_on_platform()
560 i, die->die_id, ret); in hccs_query_all_port_info_on_platform()
582 dev_err(hdev->dev, "query all die info on platform failed, ret = %d.\n", in hccs_get_hw_info()
601 const struct hccs_die_info *die = port->die; in hccs_query_port_link_status() local
602 const struct hccs_chip_info *chip = die->chip; in hccs_query_port_link_status()
610 req_param->die_id = die->die_id; in hccs_query_port_link_status()
628 const struct hccs_die_info *die = port->die; in hccs_query_port_crc_err_cnt() local
629 const struct hccs_chip_info *chip = die->chip; in hccs_query_port_crc_err_cnt()
637 req_param->die_id = die->die_id; in hccs_query_port_crc_err_cnt()
652 const struct hccs_die_info *die, in hccs_get_die_all_link_status() argument
659 if (die->port_num == 0) { in hccs_get_die_all_link_status()
666 req_param->chip_id = die->chip->chip_id; in hccs_get_die_all_link_status()
667 req_param->die_id = die->die_id; in hccs_get_die_all_link_status()
671 "get link status of all ports failed on die%u, ret = %d.\n", in hccs_get_die_all_link_status()
672 die->die_id, ret); in hccs_get_die_all_link_status()
682 const struct hccs_die_info *die, in hccs_get_die_all_port_lane_status() argument
689 if (die->port_num == 0) { in hccs_get_die_all_port_lane_status()
696 req_param->chip_id = die->chip->chip_id; in hccs_get_die_all_port_lane_status()
697 req_param->die_id = die->die_id; in hccs_get_die_all_port_lane_status()
700 dev_err(hdev->dev, "get lane status of all ports failed on die%u, ret = %d.\n", in hccs_get_die_all_port_lane_status()
701 die->die_id, ret); in hccs_get_die_all_port_lane_status()
711 const struct hccs_die_info *die, in hccs_get_die_total_crc_err_cnt() argument
718 if (die->port_num == 0) { in hccs_get_die_total_crc_err_cnt()
725 req_param->chip_id = die->chip->chip_id; in hccs_get_die_total_crc_err_cnt()
726 req_param->die_id = die->die_id; in hccs_get_die_total_crc_err_cnt()
729 dev_err(hdev->dev, "get crc error count sum failed on die%u, ret = %d.\n", in hccs_get_die_total_crc_err_cnt()
730 die->die_id, ret); in hccs_get_die_total_crc_err_cnt()
783 struct hccs_dev *hdev = port->die->chip->hdev; in cur_lane_num_show()
801 struct hccs_dev *hdev = port->die->chip->hdev; in link_fsm_show()
837 struct hccs_dev *hdev = port->die->chip->hdev; in lane_mask_show()
855 struct hccs_dev *hdev = port->die->chip->hdev; in crc_err_cnt_show()
889 const struct hccs_die_info *die = kobj_to_die_info(kobj); in all_linked_on_die_show() local
890 struct hccs_dev *hdev = die->chip->hdev; in all_linked_on_die_show()
895 ret = hccs_get_die_all_link_status(hdev, die, &all_linked); in all_linked_on_die_show()
909 const struct hccs_die_info *die = kobj_to_die_info(kobj); in linked_full_lane_on_die_show() local
910 struct hccs_dev *hdev = die->chip->hdev; in linked_full_lane_on_die_show()
915 ret = hccs_get_die_all_port_lane_status(hdev, die, &full_lane); in linked_full_lane_on_die_show()
929 const struct hccs_die_info *die = kobj_to_die_info(kobj); in crc_err_cnt_sum_on_die_show() local
930 struct hccs_dev *hdev = die->chip->hdev; in crc_err_cnt_sum_on_die_show()
935 ret = hccs_get_die_total_crc_err_cnt(hdev, die, &total_crc_err_cnt); in crc_err_cnt_sum_on_die_show()
963 const struct hccs_die_info *die; in all_linked_on_chip_show() local
970 die = &chip->dies[i]; in all_linked_on_chip_show()
971 ret = hccs_get_die_all_link_status(hdev, die, &tmp); in all_linked_on_chip_show()
994 const struct hccs_die_info *die; in linked_full_lane_on_chip_show() local
1001 die = &chip->dies[i]; in linked_full_lane_on_chip_show()
1002 ret = hccs_get_die_all_port_lane_status(hdev, die, &tmp); in linked_full_lane_on_chip_show()
1026 const struct hccs_die_info *die; in crc_err_cnt_sum_on_chip_show() local
1032 die = &chip->dies[i]; in crc_err_cnt_sum_on_chip_show()
1033 ret = hccs_get_die_total_crc_err_cnt(hdev, die, &crc_err_cnt); in crc_err_cnt_sum_on_chip_show()
1061 static void hccs_remove_die_dir(struct hccs_die_info *die) in hccs_remove_die_dir() argument
1066 for (i = 0; i < die->port_num; i++) { in hccs_remove_die_dir()
1067 port = &die->ports[i]; in hccs_remove_die_dir()
1072 kobject_put(&die->kobj); in hccs_remove_die_dir()
1077 struct hccs_die_info *die; in hccs_remove_chip_dir() local
1081 die = &chip->dies[i]; in hccs_remove_chip_dir()
1082 if (die->dir_created) in hccs_remove_chip_dir()
1083 hccs_remove_die_dir(die); in hccs_remove_chip_dir()
1098 struct hccs_die_info *die, in hccs_create_hccs_dir() argument
1104 &die->kobj, "hccs%d", port->port_id); in hccs_create_hccs_dir()
1115 struct hccs_die_info *die) in hccs_create_die_dir() argument
1121 ret = kobject_init_and_add(&die->kobj, &hccs_die_type, in hccs_create_die_dir()
1122 &chip->kobj, "die%d", die->die_id); in hccs_create_die_dir()
1124 kobject_put(&die->kobj); in hccs_create_die_dir()
1128 for (i = 0; i < die->port_num; i++) { in hccs_create_die_dir()
1129 port = &die->ports[i]; in hccs_create_die_dir()
1130 ret = hccs_create_hccs_dir(hdev, die, port); in hccs_create_die_dir()
1141 hccs_remove_die_dir(die); in hccs_create_die_dir()
1149 struct hccs_die_info *die; in hccs_create_chip_dir() local
1161 die = &chip->dies[id]; in hccs_create_chip_dir()
1162 ret = hccs_create_die_dir(hdev, chip, die); in hccs_create_chip_dir()
1165 die->dir_created = true; in hccs_create_chip_dir()