Lines Matching +full:de +full:- +full:activated
1 // SPDX-License-Identifier: GPL-2.0-only
8 * Author: Joerg-Stephan Vogt <jsvogt@de.ibm.com>
10 * Author: Michael Ruettger <michael@ibmra.de>
33 [GENWQE_TYPE_ALTERA_230] = "GenWQE4-230",
34 [GENWQE_TYPE_ALTERA_530] = "GenWQE4-530",
35 [GENWQE_TYPE_ALTERA_A4] = "GenWQE5-A4",
36 [GENWQE_TYPE_ALTERA_A7] = "GenWQE5-A7",
45 return sprintf(buf, "%s\n", cs[cd->card_state]); in status_show()
133 * curr_bitstream_show() - Show the current bitstream id
160 * next_bitstream_show() - Show the next activated bitstream
170 switch ((cd->softreset & 0xc) >> 2) { in next_bitstream_show()
178 next_bitstream = -1; in next_bitstream_show()
192 return -EINVAL; in next_bitstream_store()
196 cd->softreset = 0x78; in next_bitstream_store()
199 cd->softreset = 0x7c; in next_bitstream_store()
202 return -EINVAL; in next_bitstream_store()
205 __genwqe_writeq(cd, IO_SLC_CFGREG_SOFTRESET, cd->softreset); in next_bitstream_store()
218 return -EINVAL; in reload_bitstream_store()
221 if (cd->card_state == GENWQE_CARD_UNUSED || in reload_bitstream_store()
222 cd->card_state == GENWQE_CARD_USED) in reload_bitstream_store()
223 cd->card_state = GENWQE_CARD_RELOAD_BITSTREAM; in reload_bitstream_store()
225 return -EIO; in reload_bitstream_store()
227 return -EINVAL; in reload_bitstream_store()
264 * genwqe_is_visible() - Determine if sysfs attribute should be visible or not
275 umode_t mode = attr->mode; in genwqe_is_visible()