Lines Matching refs:chip_id
44 unsigned int chip_id; member
679 coproc->chip_id = chipid; in nx_add_coprocs_list()
716 unsigned int i, chip_id; in nx_open_percpu_txwins() local
721 chip_id = cpu_to_chip_id(i); in nx_open_percpu_txwins()
733 if (coproc->chip_id == chip_id) { in nx_open_percpu_txwins()
768 static int __init vas_cfg_coproc_info(struct device_node *dn, int chip_id, in vas_cfg_coproc_info() argument
855 nx_add_coprocs_list(coproc, chip_id); in vas_cfg_coproc_info()
873 static int __init nx_coproc_init(int chip_id, int ct_842, int ct_gzip) in nx_coproc_init() argument
878 ret = opal_nx_coproc_init(chip_id, ct_842); in nx_coproc_init()
881 ret = opal_nx_coproc_init(chip_id, ct_gzip); in nx_coproc_init()
886 chip_id, ret); in nx_coproc_init()
894 static int __init find_nx_device_tree(struct device_node *dn, int chip_id, in find_nx_device_tree() argument
901 ret = vas_cfg_coproc_info(dn, chip_id, vasid, type, ct); in find_nx_device_tree()
911 int chip_id, vasid, ret = 0; in nx_powernv_probe_vas() local
915 chip_id = of_get_ibm_chip_id(pn); in nx_powernv_probe_vas()
916 if (chip_id < 0) { in nx_powernv_probe_vas()
921 vasid = chip_to_vas_id(chip_id); in nx_powernv_probe_vas()
923 pr_err("Unable to map chip_id %d to vasid\n", chip_id); in nx_powernv_probe_vas()
928 ret = find_nx_device_tree(dn, chip_id, vasid, NX_CT_842, in nx_powernv_probe_vas()
932 ret = find_nx_device_tree(dn, chip_id, vasid, in nx_powernv_probe_vas()
949 ret = nx_coproc_init(chip_id, ct_842, ct_gzip); in nx_powernv_probe_vas()
958 int chip_id; in nx842_powernv_probe() local
960 chip_id = of_get_ibm_chip_id(dn); in nx842_powernv_probe()
961 if (chip_id < 0) { in nx842_powernv_probe()
982 nx_add_coprocs_list(coproc, chip_id); in nx842_powernv_probe()
984 pr_info("coprocessor found on chip %d, CT %d CI %d\n", chip_id, ct, ci); in nx842_powernv_probe()
990 chip_id, ct, nx842_ct); in nx842_powernv_probe()