• Home
  • Raw
  • Download

Lines Matching refs:ppd

43 static ssize_t show_hrtbt_enb(struct qib_pportdata *ppd, char *buf)  in show_hrtbt_enb()  argument
45 struct qib_devdata *dd = ppd->dd; in show_hrtbt_enb()
48 ret = dd->f_get_ib_cfg(ppd, QIB_IB_CFG_HRTBT); in show_hrtbt_enb()
53 static ssize_t store_hrtbt_enb(struct qib_pportdata *ppd, const char *buf, in store_hrtbt_enb() argument
56 struct qib_devdata *dd = ppd->dd; in store_hrtbt_enb()
73 ret = dd->f_set_ib_cfg(ppd, QIB_IB_CFG_HRTBT, val); in store_hrtbt_enb()
77 static ssize_t store_loopback(struct qib_pportdata *ppd, const char *buf, in store_loopback() argument
80 struct qib_devdata *dd = ppd->dd; in store_loopback()
83 r = dd->f_set_ib_loopback(ppd, buf); in store_loopback()
90 static ssize_t store_led_override(struct qib_pportdata *ppd, const char *buf, in store_led_override() argument
93 struct qib_devdata *dd = ppd->dd; in store_led_override()
103 qib_set_led_override(ppd, val); in store_led_override()
107 static ssize_t show_status(struct qib_pportdata *ppd, char *buf) in show_status() argument
111 if (!ppd->statusp) in show_status()
115 (unsigned long long) *(ppd->statusp)); in show_status()
137 static ssize_t show_status_str(struct qib_pportdata *ppd, char *buf) in show_status_str() argument
143 if (!ppd->statusp) { in show_status_str()
148 s = *(ppd->statusp); in show_status_str()
216 struct qib_pportdata *ppd = in read_cc_table_bin() local
219 if (!qib_cc_table_size || !ppd->ccti_entries_shadow) in read_cc_table_bin()
222 ret = ppd->total_cct_entry * sizeof(struct ib_cc_table_entry_shadow) in read_cc_table_bin()
234 spin_lock(&ppd->cc_shadow_lock); in read_cc_table_bin()
235 memcpy(buf, ppd->ccti_entries_shadow, count); in read_cc_table_bin()
236 spin_unlock(&ppd->cc_shadow_lock); in read_cc_table_bin()
266 struct qib_pportdata *ppd = in read_cc_setting_bin() local
269 if (!qib_cc_table_size || !ppd->congestion_entries_shadow) in read_cc_setting_bin()
282 spin_lock(&ppd->cc_shadow_lock); in read_cc_setting_bin()
283 memcpy(buf, ppd->congestion_entries_shadow, count); in read_cc_setting_bin()
284 spin_unlock(&ppd->cc_shadow_lock); in read_cc_setting_bin()
301 struct qib_pportdata *ppd = in qib_portattr_show() local
307 return pattr->show(ppd, buf); in qib_portattr_show()
315 struct qib_pportdata *ppd = in qib_portattr_store() local
321 return pattr->store(ppd, buf, len); in qib_portattr_store()
391 struct qib_pportdata *ppd = in sl2vl_attr_show() local
393 struct qib_ibport *qibp = &ppd->ibport_data; in sl2vl_attr_show()
478 static void write_per_cpu_##cntr(struct qib_pportdata *ppd, u32 data) \
480 struct qib_devdata *dd = ppd->dd; \
481 struct qib_ibport *qibp = &ppd->ibport_data; \
501 struct qib_pportdata *ppd = in def_write_per_cpu() local
503 struct qib_ibport *qibp = &ppd->ibport_data; in def_write_per_cpu()
522 struct qib_pportdata *ppd = in diagc_attr_store() local
524 struct qib_ibport *qibp = &ppd->ibport_data; in diagc_attr_store()
533 write_per_cpu_rc_acks(ppd, val); in diagc_attr_store()
535 write_per_cpu_rc_qacks(ppd, val); in diagc_attr_store()
537 write_per_cpu_rc_delayed_comp(ppd, val); in diagc_attr_store()
744 struct qib_pportdata *ppd; in qib_create_port_files() local
755 ppd = &dd->pport[port_num - 1]; in qib_create_port_files()
757 ret = kobject_init_and_add(&ppd->pport_kobj, &qib_port_ktype, kobj, in qib_create_port_files()
765 kobject_uevent(&ppd->pport_kobj, KOBJ_ADD); in qib_create_port_files()
767 ret = kobject_init_and_add(&ppd->sl2vl_kobj, &qib_sl2vl_ktype, kobj, in qib_create_port_files()
775 kobject_uevent(&ppd->sl2vl_kobj, KOBJ_ADD); in qib_create_port_files()
777 ret = kobject_init_and_add(&ppd->diagc_kobj, &qib_diagc_ktype, kobj, in qib_create_port_files()
785 kobject_uevent(&ppd->diagc_kobj, KOBJ_ADD); in qib_create_port_files()
787 if (!qib_cc_table_size || !ppd->congestion_entries_shadow) in qib_create_port_files()
790 ret = kobject_init_and_add(&ppd->pport_cc_kobj, &qib_port_cc_ktype, in qib_create_port_files()
799 kobject_uevent(&ppd->pport_cc_kobj, KOBJ_ADD); in qib_create_port_files()
801 ret = sysfs_create_bin_file(&ppd->pport_cc_kobj, in qib_create_port_files()
810 ret = sysfs_create_bin_file(&ppd->pport_cc_kobj, in qib_create_port_files()
826 sysfs_remove_bin_file(&ppd->pport_cc_kobj, &cc_setting_bin_attr); in qib_create_port_files()
828 kobject_put(&ppd->pport_cc_kobj); in qib_create_port_files()
830 kobject_put(&ppd->diagc_kobj); in qib_create_port_files()
832 kobject_put(&ppd->sl2vl_kobj); in qib_create_port_files()
834 kobject_put(&ppd->pport_kobj); in qib_create_port_files()
844 struct qib_pportdata *ppd; in qib_verbs_unregister_sysfs() local
848 ppd = &dd->pport[i]; in qib_verbs_unregister_sysfs()
850 ppd->congestion_entries_shadow) { in qib_verbs_unregister_sysfs()
851 sysfs_remove_bin_file(&ppd->pport_cc_kobj, in qib_verbs_unregister_sysfs()
853 sysfs_remove_bin_file(&ppd->pport_cc_kobj, in qib_verbs_unregister_sysfs()
855 kobject_put(&ppd->pport_cc_kobj); in qib_verbs_unregister_sysfs()
857 kobject_put(&ppd->diagc_kobj); in qib_verbs_unregister_sysfs()
858 kobject_put(&ppd->sl2vl_kobj); in qib_verbs_unregister_sysfs()
859 kobject_put(&ppd->pport_kobj); in qib_verbs_unregister_sysfs()