Lines Matching defs:pskey
45 uint16_t pskey;
618 char *csr_pskeytostr(uint16_t pskey)
620 switch (pskey) {
1486 char *csr_pskeytoval(uint16_t pskey)
1488 switch (pskey) {
2560 int csr_read_pskey_complex(int dd, uint16_t seqnum, uint16_t pskey, uint16_t stores, uint8_t *value, uint16_t length)
2564 pskey & 0xff, pskey >> 8,
2602 int csr_write_pskey_complex(int dd, uint16_t seqnum, uint16_t pskey, uint16_t stores, uint8_t *value, uint16_t length)
2606 pskey & 0xff, pskey >> 8,
2644 int csr_read_pskey_uint16(int dd, uint16_t seqnum, uint16_t pskey, uint16_t stores, uint16_t *value)
2649 err = csr_read_pskey_complex(dd, seqnum, pskey, stores, array, 2);
2656 int csr_write_pskey_uint16(int dd, uint16_t seqnum, uint16_t pskey, uint16_t stores, uint16_t value)
2660 return csr_write_pskey_complex(dd, seqnum, pskey, stores, array, 2);
2663 int csr_read_pskey_uint32(int dd, uint16_t seqnum, uint16_t pskey, uint16_t stores, uint32_t *value)
2668 err = csr_read_pskey_complex(dd, seqnum, pskey, stores, array, 4);
2676 int csr_write_pskey_uint32(int dd, uint16_t seqnum, uint16_t pskey, uint16_t stores, uint32_t value)
2681 return csr_write_pskey_complex(dd, seqnum, pskey, stores, array, 4);
2684 int psr_put(uint16_t pskey, uint8_t *value, uint16_t size)
2692 item->pskey = pskey;
2720 int psr_get(uint16_t *pskey, uint8_t *value, uint16_t *size)
2727 *pskey = item->pskey;
2749 uint16_t value, pskey, length = 0;
2752 pskey = strtol(str + 1, NULL, 16);
2771 return psr_put(pskey, array, length);
2831 uint16_t pskey, length;
2836 if (psr_get(&pskey, array, &length) < 0)
2839 str = csr_pskeytoval(pskey);
2841 sprintf(val, "0x%04x", pskey);
2846 str ? str : val, pskey);