• Home
  • Raw
  • Download

Lines Matching refs:cd

51 	struct genwqe_dev *cd = dev_get_drvdata(dev);  in status_show()  local
54 return sprintf(buf, "%s\n", cs[cd->card_state]); in status_show()
62 struct genwqe_dev *cd = dev_get_drvdata(dev); in appid_show() local
64 genwqe_read_app_id(cd, app_name, sizeof(app_name)); in appid_show()
73 struct genwqe_dev *cd = dev_get_drvdata(dev); in version_show() local
75 slu_id = __genwqe_readq(cd, IO_SLU_UNITCFG); in version_show()
76 app_id = __genwqe_readq(cd, IO_APP_UNITCFG); in version_show()
86 struct genwqe_dev *cd = dev_get_drvdata(dev); in type_show() local
88 card_type = genwqe_card_type(cd); in type_show()
98 struct genwqe_dev *cd = dev_get_drvdata(dev); in tempsens_show() local
100 tempsens = __genwqe_readq(cd, IO_SLU_TEMPERATURE_SENSOR); in tempsens_show()
110 struct genwqe_dev *cd = dev_get_drvdata(dev); in freerunning_timer_show() local
112 t = __genwqe_readq(cd, IO_SLC_FREE_RUNNING_TIMER); in freerunning_timer_show()
122 struct genwqe_dev *cd = dev_get_drvdata(dev); in queue_working_time_show() local
124 t = __genwqe_readq(cd, IO_SLC_QUEUE_WTIME); in queue_working_time_show()
134 struct genwqe_dev *cd = dev_get_drvdata(dev); in base_clock_show() local
136 base_clock = genwqe_base_clock_frequency(cd); in base_clock_show()
161 struct genwqe_dev *cd = dev_get_drvdata(dev); in curr_bitstream_show() local
163 curr_bitstream = __genwqe_readq(cd, IO_SLU_BITSTREAM) & 0x1; in curr_bitstream_show()
177 struct genwqe_dev *cd = dev_get_drvdata(dev); in next_bitstream_show() local
179 switch ((cd->softreset & 0xc) >> 2) { in next_bitstream_show()
198 struct genwqe_dev *cd = dev_get_drvdata(dev); in next_bitstream_store() local
205 cd->softreset = 0x78; in next_bitstream_store()
208 cd->softreset = 0x7c; in next_bitstream_store()
214 __genwqe_writeq(cd, IO_SLC_CFGREG_SOFTRESET, cd->softreset); in next_bitstream_store()
224 struct genwqe_dev *cd = dev_get_drvdata(dev); in reload_bitstream_store() local
230 if (cd->card_state == GENWQE_CARD_UNUSED || in reload_bitstream_store()
231 cd->card_state == GENWQE_CARD_USED) in reload_bitstream_store()
232 cd->card_state = GENWQE_CARD_RELOAD_BITSTREAM; in reload_bitstream_store()
283 struct genwqe_dev *cd = dev_get_drvdata(dev); in genwqe_is_visible() local
286 if (genwqe_is_privileged(cd)) in genwqe_is_visible()