Lines Matching defs:key
41 int fw_csr_iterator_next(struct fw_csr_iterator *ci, int *key, int *value)
43 *key = *ci->p >> 24;
53 int last_key = 0, key, value;
56 while (fw_csr_iterator_next(&ci, &key, &value)) {
58 key == (CSR_DESCRIPTOR | CSR_LEAF))
61 last_key = key;
99 * @key: the key of the preceding directory entry
104 * @key. The string is zero-terminated. An overlong string is silently truncated such that it
109 int fw_csr_string(const u32 *directory, int key, char *buf, size_t size)
111 const u32 *leaf = search_leaf(directory, key);
122 int key, value;
125 while (fw_csr_iterator_next(&ci, &key, &value)) {
126 switch (key) {
244 u32 key;
254 int key, value, ret = -ENOENT;
264 while (fw_csr_iterator_next(&ci, &key, &value))
265 if (attr->key == key) {
276 #define IMMEDIATE_ATTR(name, key) \
277 { __ATTR(name, S_IRUGO, show_immediate, NULL), key }
303 ret = fw_csr_string(dir, attr->key, buf, bufsize);
318 #define TEXT_LEAF_ATTR(name, key) \
319 { __ATTR(name, S_IRUGO, show_text_leaf, NULL), key }
423 int key, value;
428 while (fw_csr_iterator_next(&ci, &key, &value)) {
429 switch (key) {
447 int key, value, i = 0;
451 while (fw_csr_iterator_next(&ci, &key, &value)) {
452 if (key != (CSR_UNIT | CSR_DIRECTORY))
511 u32 sp, key;
588 key = stack[--sp];
589 i = key & 0xffffff;
624 if ((key >> 30) != 3 || (rom[i] >> 30) < 2)
692 int key, value, i;
696 while (fw_csr_iterator_next(&ci, &key, &value)) {
697 if (key != (CSR_UNIT | CSR_DIRECTORY))