rdesc 773 drivers/crypto/inside-secure/safexcel.c int ret, nreq = 0, cdesc = 0, rdesc = 0, commands, results; rdesc 812 drivers/crypto/inside-secure/safexcel.c rdesc += results; rdesc 839 drivers/crypto/inside-secure/safexcel.c writel((rdesc * priv->config.rd_offset) << 2, rdesc 848 drivers/crypto/inside-secure/safexcel.c struct safexcel_result_desc *rdesc) rdesc 850 drivers/crypto/inside-secure/safexcel.c if (likely((!rdesc->descriptor_overflow) && rdesc 851 drivers/crypto/inside-secure/safexcel.c (!rdesc->buffer_overflow) && rdesc 852 drivers/crypto/inside-secure/safexcel.c (!rdesc->result_data.error_code))) rdesc 855 drivers/crypto/inside-secure/safexcel.c if (rdesc->descriptor_overflow) rdesc 858 drivers/crypto/inside-secure/safexcel.c if (rdesc->buffer_overflow) rdesc 861 drivers/crypto/inside-secure/safexcel.c if (rdesc->result_data.error_code & 0x4066) { rdesc 865 drivers/crypto/inside-secure/safexcel.c rdesc->result_data.error_code); rdesc 867 drivers/crypto/inside-secure/safexcel.c } else if (rdesc->result_data.error_code & rdesc 875 drivers/crypto/inside-secure/safexcel.c } else if (rdesc->result_data.error_code & BIT(9)) { rdesc 886 drivers/crypto/inside-secure/safexcel.c struct safexcel_result_desc *rdesc, rdesc 889 drivers/crypto/inside-secure/safexcel.c int i = safexcel_ring_rdr_rdesc_index(priv, ring, rdesc); rdesc 933 drivers/crypto/inside-secure/safexcel.c struct safexcel_result_desc *rdesc; rdesc 947 drivers/crypto/inside-secure/safexcel.c rdesc = safexcel_add_rdesc(priv, ring, true, true, 0, 0); rdesc 949 drivers/crypto/inside-secure/safexcel.c if (IS_ERR(rdesc)) { rdesc 950 drivers/crypto/inside-secure/safexcel.c ret = PTR_ERR(rdesc); rdesc 954 drivers/crypto/inside-secure/safexcel.c safexcel_rdr_req_set(priv, ring, rdesc, async); rdesc 781 drivers/crypto/inside-secure/safexcel.h struct safexcel_result_desc *rdesc); rdesc 809 drivers/crypto/inside-secure/safexcel.h struct safexcel_result_desc *rdesc); rdesc 812 drivers/crypto/inside-secure/safexcel.h struct safexcel_result_desc *rdesc, rdesc 499 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_result_desc *rdesc; rdesc 508 drivers/crypto/inside-secure/safexcel_cipher.c rdesc = safexcel_ring_next_rptr(priv, &priv->ring[ring].rdr); rdesc 509 drivers/crypto/inside-secure/safexcel_cipher.c if (IS_ERR(rdesc)) { rdesc 512 drivers/crypto/inside-secure/safexcel_cipher.c *ret = PTR_ERR(rdesc); rdesc 517 drivers/crypto/inside-secure/safexcel_cipher.c *ret = safexcel_rdesc_check_errors(priv, rdesc); rdesc 561 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_result_desc *rdesc, *first_rdesc = NULL; rdesc 710 drivers/crypto/inside-secure/safexcel_cipher.c rdesc = safexcel_add_rdesc(priv, ring, first, last, rdesc 716 drivers/crypto/inside-secure/safexcel_cipher.c rdesc = safexcel_add_rdesc(priv, ring, first, last, rdesc 720 drivers/crypto/inside-secure/safexcel_cipher.c if (IS_ERR(rdesc)) { rdesc 722 drivers/crypto/inside-secure/safexcel_cipher.c ret = PTR_ERR(rdesc); rdesc 726 drivers/crypto/inside-secure/safexcel_cipher.c first_rdesc = rdesc; rdesc 739 drivers/crypto/inside-secure/safexcel_cipher.c rdesc = safexcel_add_rdesc(priv, ring, true, true, 0, 0); rdesc 740 drivers/crypto/inside-secure/safexcel_cipher.c if (IS_ERR(rdesc)) { rdesc 742 drivers/crypto/inside-secure/safexcel_cipher.c ret = PTR_ERR(rdesc); rdesc 745 drivers/crypto/inside-secure/safexcel_cipher.c first_rdesc = rdesc; rdesc 779 drivers/crypto/inside-secure/safexcel_cipher.c struct safexcel_result_desc *rdesc; rdesc 788 drivers/crypto/inside-secure/safexcel_cipher.c rdesc = safexcel_ring_next_rptr(priv, &priv->ring[ring].rdr); rdesc 789 drivers/crypto/inside-secure/safexcel_cipher.c if (IS_ERR(rdesc)) { rdesc 792 drivers/crypto/inside-secure/safexcel_cipher.c *ret = PTR_ERR(rdesc); rdesc 797 drivers/crypto/inside-secure/safexcel_cipher.c *ret = safexcel_rdesc_check_errors(priv, rdesc); rdesc 181 drivers/crypto/inside-secure/safexcel_hash.c struct safexcel_result_desc *rdesc; rdesc 190 drivers/crypto/inside-secure/safexcel_hash.c rdesc = safexcel_ring_next_rptr(priv, &priv->ring[ring].rdr); rdesc 191 drivers/crypto/inside-secure/safexcel_hash.c if (IS_ERR(rdesc)) { rdesc 194 drivers/crypto/inside-secure/safexcel_hash.c *ret = PTR_ERR(rdesc); rdesc 196 drivers/crypto/inside-secure/safexcel_hash.c *ret = safexcel_rdesc_check_errors(priv, rdesc); rdesc 262 drivers/crypto/inside-secure/safexcel_hash.c struct safexcel_result_desc *rdesc; rdesc 376 drivers/crypto/inside-secure/safexcel_hash.c rdesc = safexcel_add_rdesc(priv, ring, 1, 1, req->result_dma, rdesc 378 drivers/crypto/inside-secure/safexcel_hash.c if (IS_ERR(rdesc)) { rdesc 379 drivers/crypto/inside-secure/safexcel_hash.c ret = PTR_ERR(rdesc); rdesc 383 drivers/crypto/inside-secure/safexcel_hash.c safexcel_rdr_req_set(priv, ring, rdesc, &areq->base); rdesc 415 drivers/crypto/inside-secure/safexcel_hash.c struct safexcel_result_desc *rdesc; rdesc 423 drivers/crypto/inside-secure/safexcel_hash.c rdesc = safexcel_ring_next_rptr(priv, &priv->ring[ring].rdr); rdesc 424 drivers/crypto/inside-secure/safexcel_hash.c if (IS_ERR(rdesc)) { rdesc 427 drivers/crypto/inside-secure/safexcel_hash.c *ret = PTR_ERR(rdesc); rdesc 429 drivers/crypto/inside-secure/safexcel_hash.c *ret = safexcel_rdesc_check_errors(priv, rdesc); rdesc 96 drivers/crypto/inside-secure/safexcel_ring.c struct safexcel_result_desc *rdesc) rdesc 100 drivers/crypto/inside-secure/safexcel_ring.c return ((void *)rdesc - rdr->base) / rdr->offset; rdesc 173 drivers/crypto/inside-secure/safexcel_ring.c struct safexcel_result_desc *rdesc; rdesc 175 drivers/crypto/inside-secure/safexcel_ring.c rdesc = safexcel_ring_next_wptr(priv, &priv->ring[ring_id].rdr); rdesc 176 drivers/crypto/inside-secure/safexcel_ring.c if (IS_ERR(rdesc)) rdesc 177 drivers/crypto/inside-secure/safexcel_ring.c return rdesc; rdesc 179 drivers/crypto/inside-secure/safexcel_ring.c memset(rdesc, 0, sizeof(struct safexcel_result_desc)); rdesc 181 drivers/crypto/inside-secure/safexcel_ring.c rdesc->first_seg = first; rdesc 182 drivers/crypto/inside-secure/safexcel_ring.c rdesc->last_seg = last; rdesc 183 drivers/crypto/inside-secure/safexcel_ring.c rdesc->particle_size = len; rdesc 184 drivers/crypto/inside-secure/safexcel_ring.c rdesc->data_lo = lower_32_bits(data); rdesc 185 drivers/crypto/inside-secure/safexcel_ring.c rdesc->data_hi = upper_32_bits(data); rdesc 187 drivers/crypto/inside-secure/safexcel_ring.c return rdesc; rdesc 304 drivers/hid/hid-apple.c static __u8 *apple_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 310 drivers/hid/hid-apple.c rdesc[53] == 0x65 && rdesc[59] == 0x65) { rdesc 313 drivers/hid/hid-apple.c rdesc[53] = rdesc[59] = 0xe7; rdesc 315 drivers/hid/hid-apple.c return rdesc; rdesc 952 drivers/hid/hid-asus.c static __u8 *asus_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 958 drivers/hid/hid-asus.c *rsize >= 56 && rdesc[54] == 0x25 && rdesc[55] == 0x65) { rdesc 960 drivers/hid/hid-asus.c rdesc[55] = 0xdd; rdesc 965 drivers/hid/hid-asus.c rdesc[73] == 0x81 && rdesc[74] == 0x01) { rdesc 967 drivers/hid/hid-asus.c rdesc[74] &= ~HID_MAIN_ITEM_CONSTANT; rdesc 989 drivers/hid/hid-asus.c rdesc[offs] == 0x09 && rdesc[offs + 1] == 0x76) { rdesc 991 drivers/hid/hid-asus.c rdesc = kmemdup(rdesc, *rsize, GFP_KERNEL); rdesc 992 drivers/hid/hid-asus.c if (!rdesc) rdesc 998 drivers/hid/hid-asus.c memmove(rdesc + offs + 4, rdesc + offs + 2, 12); rdesc 999 drivers/hid/hid-asus.c rdesc[offs] = 0x19; rdesc 1000 drivers/hid/hid-asus.c rdesc[offs + 1] = 0x00; rdesc 1001 drivers/hid/hid-asus.c rdesc[offs + 2] = 0x29; rdesc 1002 drivers/hid/hid-asus.c rdesc[offs + 3] = 0xff; rdesc 1003 drivers/hid/hid-asus.c rdesc[offs + 14] = 0x00; rdesc 1008 drivers/hid/hid-asus.c *rsize == 75 && rdesc[61] == 0x15 && rdesc[62] == 0x00) { rdesc 1015 drivers/hid/hid-asus.c return rdesc; rdesc 1019 drivers/hid/hid-asus.c memcpy(new_rdesc, rdesc, 61); rdesc 1023 drivers/hid/hid-asus.c memcpy(new_rdesc + 61 + sizeof(asus_g752_fixed_rdesc), rdesc + 61, *rsize - 61); rdesc 1026 drivers/hid/hid-asus.c rdesc = new_rdesc; rdesc 1029 drivers/hid/hid-asus.c return rdesc; rdesc 21 drivers/hid/hid-aureal.c static __u8 *aureal_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 24 drivers/hid/hid-aureal.c if (*rsize >= 54 && rdesc[52] == 0x25 && rdesc[53] == 0x01) { rdesc 26 drivers/hid/hid-aureal.c rdesc[53] = 0x65; rdesc 28 drivers/hid/hid-aureal.c return rdesc; rdesc 405 drivers/hid/hid-bigbenff.c static __u8 *bigben_report_fixup(struct hid_device *hid, __u8 *rdesc, rdesc 409 drivers/hid/hid-bigbenff.c rdesc = pid0902_rdesc_fixed; rdesc 413 drivers/hid/hid-bigbenff.c return rdesc; rdesc 25 drivers/hid/hid-cherry.c static __u8 *ch_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 28 drivers/hid/hid-cherry.c if (*rsize >= 18 && rdesc[11] == 0x3c && rdesc[12] == 0x02) { rdesc 30 drivers/hid/hid-cherry.c rdesc[11] = rdesc[16] = 0xff; rdesc 31 drivers/hid/hid-cherry.c rdesc[12] = rdesc[17] = 0x03; rdesc 33 drivers/hid/hid-cherry.c return rdesc; rdesc 58 drivers/hid/hid-chicony.c static __u8 *ch_switch12_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 68 drivers/hid/hid-chicony.c if (*rsize >= 128 && rdesc[64] == 0xff && rdesc[65] == 0x7f rdesc 69 drivers/hid/hid-chicony.c && rdesc[69] == 0xff && rdesc[70] == 0x7f) { rdesc 71 drivers/hid/hid-chicony.c rdesc[65] = rdesc[70] = 0x2f; rdesc 77 drivers/hid/hid-chicony.c return rdesc; rdesc 684 drivers/hid/hid-core.c kfree(device->rdesc); rdesc 685 drivers/hid/hid-core.c device->rdesc = NULL; rdesc 1223 drivers/hid/hid-core.c device->rdesc = start; rdesc 1885 drivers/hid/hid-core.c memcpy(buf, hdev->rdesc + off, count); rdesc 688 drivers/hid/hid-corsair.c static __u8 *corsair_mouse_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 704 drivers/hid/hid-corsair.c if (*rsize >= 172 && rdesc[75] == 0x15 && rdesc[77] == 0x16 rdesc 705 drivers/hid/hid-corsair.c && rdesc[78] == 0xff && rdesc[79] == 0x0f) { rdesc 707 drivers/hid/hid-corsair.c rdesc[77] = 0x26; rdesc 713 drivers/hid/hid-corsair.c return rdesc; rdesc 106 drivers/hid/hid-cougar.c static __u8 *cougar_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 109 drivers/hid/hid-cougar.c if (rdesc[2] == 0x09 && rdesc[3] == 0x02 && rdesc 110 drivers/hid/hid-cougar.c (rdesc[115] | rdesc[116] << 8) >= HID_MAX_USAGES) { rdesc 113 drivers/hid/hid-cougar.c rdesc[115] = ((HID_MAX_USAGES-1) & 0xff); rdesc 114 drivers/hid/hid-cougar.c rdesc[116] = ((HID_MAX_USAGES-1) >> 8); rdesc 116 drivers/hid/hid-cougar.c return rdesc; rdesc 30 drivers/hid/hid-cypress.c static __u8 *cp_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 37 drivers/hid/hid-cypress.c return rdesc; rdesc 40 drivers/hid/hid-cypress.c return rdesc; rdesc 43 drivers/hid/hid-cypress.c if (rdesc[i] == 0x29 && rdesc[i + 2] == 0x19) { rdesc 44 drivers/hid/hid-cypress.c rdesc[i] = 0x19; rdesc 45 drivers/hid/hid-cypress.c rdesc[i + 2] = 0x29; rdesc 46 drivers/hid/hid-cypress.c swap(rdesc[i + 3], rdesc[i + 1]); rdesc 48 drivers/hid/hid-cypress.c return rdesc; rdesc 1036 drivers/hid/hid-debug.c const __u8 *rdesc = hdev->rdesc; rdesc 1040 drivers/hid/hid-debug.c if (!rdesc) { rdesc 1041 drivers/hid/hid-debug.c rdesc = hdev->dev_rdesc; rdesc 1047 drivers/hid/hid-debug.c seq_printf(f, "%02x ", rdesc[i]); rdesc 231 drivers/hid/hid-dr.c static __u8 *dr_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 237 drivers/hid/hid-dr.c rdesc = pid0011_rdesc_fixed; rdesc 242 drivers/hid/hid-dr.c return rdesc; rdesc 39 drivers/hid/hid-elecom.c __u8 *rdesc, unsigned int rsize, rdesc 42 drivers/hid/hid-elecom.c if (rsize < 32 || rdesc[12] != 0x95 || rdesc 43 drivers/hid/hid-elecom.c rdesc[14] != 0x75 || rdesc[15] != 0x01 || rdesc 44 drivers/hid/hid-elecom.c rdesc[20] != 0x29 || rdesc[30] != 0x75) rdesc 48 drivers/hid/hid-elecom.c rdesc[13] = nbuttons; rdesc 49 drivers/hid/hid-elecom.c rdesc[21] = nbuttons; rdesc 50 drivers/hid/hid-elecom.c rdesc[31] = MOUSE_BUTTONS_MAX - nbuttons; rdesc 53 drivers/hid/hid-elecom.c static __u8 *elecom_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 60 drivers/hid/hid-elecom.c if (*rsize >= 48 && rdesc[46] == 0x05 && rdesc[47] == 0x0c) { rdesc 62 drivers/hid/hid-elecom.c rdesc[47] = 0x00; rdesc 68 drivers/hid/hid-elecom.c mouse_button_fixup(hdev, rdesc, *rsize, 6); rdesc 74 drivers/hid/hid-elecom.c mouse_button_fixup(hdev, rdesc, *rsize, 8); rdesc 77 drivers/hid/hid-elecom.c return rdesc; rdesc 60 drivers/hid/hid-gembird.c static __u8 *gembird_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 69 drivers/hid/hid-gembird.c if (*rsize >= 31 && !memcmp(&rdesc[GEMBIRD_START_FAULTY_RDESC], rdesc 74 drivers/hid/hid-gembird.c return rdesc; rdesc 80 drivers/hid/hid-gembird.c memcpy(new_rdesc + delta_size, rdesc, *rsize); rdesc 83 drivers/hid/hid-gembird.c memcpy(new_rdesc, rdesc, GEMBIRD_START_FAULTY_RDESC); rdesc 91 drivers/hid/hid-gembird.c rdesc = new_rdesc; rdesc 94 drivers/hid/hid-gembird.c return rdesc; rdesc 105 drivers/hid/hid-holtek-kbd.c static __u8 *holtek_kbd_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 111 drivers/hid/hid-holtek-kbd.c rdesc = holtek_kbd_rdesc_fixed; rdesc 114 drivers/hid/hid-holtek-kbd.c return rdesc; rdesc 32 drivers/hid/hid-holtek-mouse.c static __u8 *holtek_mouse_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 44 drivers/hid/hid-holtek-mouse.c if (*rsize >= 122 && rdesc[115] == 0xff && rdesc[116] == 0x7f rdesc 45 drivers/hid/hid-holtek-mouse.c && rdesc[120] == 0xff && rdesc[121] == 0x7f) { rdesc 47 drivers/hid/hid-holtek-mouse.c rdesc[116] = rdesc[121] = 0x2f; rdesc 53 drivers/hid/hid-holtek-mouse.c if (*rsize >= 113 && rdesc[106] == 0xff && rdesc[107] == 0x7f rdesc 54 drivers/hid/hid-holtek-mouse.c && rdesc[111] == 0xff && rdesc[112] == 0x7f) { rdesc 56 drivers/hid/hid-holtek-mouse.c rdesc[107] = rdesc[112] = 0x2f; rdesc 62 drivers/hid/hid-holtek-mouse.c return rdesc; rdesc 27 drivers/hid/hid-keytouch.c static __u8 *keytouch_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 32 drivers/hid/hid-keytouch.c rdesc = keytouch_fixed_rdesc; rdesc 35 drivers/hid/hid-keytouch.c return rdesc; rdesc 557 drivers/hid/hid-kye.c static __u8 *kye_consumer_control_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 566 drivers/hid/hid-kye.c rdesc[offset] == 0x05 && rdesc[offset + 1] == 0x0c && rdesc 568 drivers/hid/hid-kye.c rdesc[offset + 2] == 0x09 && rdesc[offset + 3] == 0x01 && rdesc 570 drivers/hid/hid-kye.c rdesc[offset + 10] == 0x2a && rdesc[offset + 12] > 0x2f) { rdesc 572 drivers/hid/hid-kye.c rdesc[offset + 12] = 0x2f; rdesc 574 drivers/hid/hid-kye.c return rdesc; rdesc 577 drivers/hid/hid-kye.c static __u8 *kye_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 590 drivers/hid/hid-kye.c rdesc[61] == 0x05 && rdesc[62] == 0x08 && rdesc 591 drivers/hid/hid-kye.c rdesc[63] == 0x19 && rdesc[64] == 0x08 && rdesc 592 drivers/hid/hid-kye.c rdesc[65] == 0x29 && rdesc[66] == 0x0f && rdesc 593 drivers/hid/hid-kye.c rdesc[71] == 0x75 && rdesc[72] == 0x08 && rdesc 594 drivers/hid/hid-kye.c rdesc[73] == 0x95 && rdesc[74] == 0x01) { rdesc 598 drivers/hid/hid-kye.c rdesc[62] = 0x09; rdesc 599 drivers/hid/hid-kye.c rdesc[64] = 0x04; rdesc 600 drivers/hid/hid-kye.c rdesc[66] = 0x07; rdesc 601 drivers/hid/hid-kye.c rdesc[72] = 0x01; rdesc 602 drivers/hid/hid-kye.c rdesc[74] = 0x08; rdesc 607 drivers/hid/hid-kye.c rdesc = easypen_i405x_rdesc_fixed; rdesc 613 drivers/hid/hid-kye.c rdesc = mousepen_i608x_rdesc_fixed; rdesc 619 drivers/hid/hid-kye.c rdesc = mousepen_i608x_v2_rdesc_fixed; rdesc 625 drivers/hid/hid-kye.c rdesc = easypen_m610x_rdesc_fixed; rdesc 631 drivers/hid/hid-kye.c rdesc = easypen_m406xe_rdesc_fixed; rdesc 637 drivers/hid/hid-kye.c rdesc = pensketch_m912_rdesc_fixed; rdesc 642 drivers/hid/hid-kye.c rdesc = kye_consumer_control_fixup(hdev, rdesc, rsize, 104, rdesc 646 drivers/hid/hid-kye.c rdesc = kye_consumer_control_fixup(hdev, rdesc, rsize, 83, rdesc 650 drivers/hid/hid-kye.c rdesc = kye_consumer_control_fixup(hdev, rdesc, rsize, 104, rdesc 654 drivers/hid/hid-kye.c return rdesc; rdesc 64 drivers/hid/hid-lenovo.c static __u8 *lenovo_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 74 drivers/hid/hid-lenovo.c memcmp(&rdesc[140], lenovo_pro_dock_need_fixup_collection, rdesc 76 drivers/hid/hid-lenovo.c rdesc[151] = 0x01; rdesc 77 drivers/hid/hid-lenovo.c rdesc[152] = 0x00; rdesc 81 drivers/hid/hid-lenovo.c return rdesc; rdesc 430 drivers/hid/hid-lg.c static __u8 *lg_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 435 drivers/hid/hid-lg.c if ((drv_data->quirks & LG_RDESC) && *rsize >= 91 && rdesc[83] == 0x26 && rdesc 436 drivers/hid/hid-lg.c rdesc[84] == 0x8c && rdesc[85] == 0x02) { rdesc 439 drivers/hid/hid-lg.c rdesc[84] = rdesc[89] = 0x4d; rdesc 440 drivers/hid/hid-lg.c rdesc[85] = rdesc[90] = 0x10; rdesc 443 drivers/hid/hid-lg.c rdesc[32] == 0x81 && rdesc[33] == 0x06 && rdesc 444 drivers/hid/hid-lg.c rdesc[49] == 0x81 && rdesc[50] == 0x06) { rdesc 447 drivers/hid/hid-lg.c rdesc[33] = rdesc[50] = 0x02; rdesc 456 drivers/hid/hid-lg.c rdesc = fg_rdesc_fixed; rdesc 469 drivers/hid/hid-lg.c rdesc = ffg_rdesc_fixed; rdesc 479 drivers/hid/hid-lg.c rdesc = df_rdesc_fixed; rdesc 488 drivers/hid/hid-lg.c rdesc = momo_rdesc_fixed; rdesc 497 drivers/hid/hid-lg.c rdesc = momo2_rdesc_fixed; rdesc 506 drivers/hid/hid-lg.c rdesc = fv_rdesc_fixed; rdesc 515 drivers/hid/hid-lg.c rdesc = dfp_rdesc_fixed; rdesc 521 drivers/hid/hid-lg.c if (*rsize >= 101 && rdesc[41] == 0x95 && rdesc[42] == 0x0B && rdesc 522 drivers/hid/hid-lg.c rdesc[47] == 0x05 && rdesc[48] == 0x09) { rdesc 524 drivers/hid/hid-lg.c rdesc[41] = 0x05; rdesc 525 drivers/hid/hid-lg.c rdesc[42] = 0x09; rdesc 526 drivers/hid/hid-lg.c rdesc[47] = 0x95; rdesc 527 drivers/hid/hid-lg.c rdesc[48] = 0x0B; rdesc 532 drivers/hid/hid-lg.c return rdesc; rdesc 1301 drivers/hid/hid-logitech-dj.c static void rdcat(char *rdesc, unsigned int *rsize, const char *data, unsigned int size) rdesc 1303 drivers/hid/hid-logitech-dj.c memcpy(rdesc + *rsize, data, size); rdesc 1311 drivers/hid/hid-logitech-dj.c char *rdesc; rdesc 1319 drivers/hid/hid-logitech-dj.c rdesc = kmalloc(MAX_RDESC_SIZE, GFP_KERNEL); rdesc 1320 drivers/hid/hid-logitech-dj.c if (!rdesc) rdesc 1326 drivers/hid/hid-logitech-dj.c rdcat(rdesc, &rsize, kbd_descriptor, sizeof(kbd_descriptor)); rdesc 1334 drivers/hid/hid-logitech-dj.c rdcat(rdesc, &rsize, mse_high_res_descriptor, rdesc 1337 drivers/hid/hid-logitech-dj.c rdcat(rdesc, &rsize, mse_27mhz_descriptor, rdesc 1340 drivers/hid/hid-logitech-dj.c rdcat(rdesc, &rsize, mse_bluetooth_descriptor, rdesc 1343 drivers/hid/hid-logitech-dj.c rdcat(rdesc, &rsize, mse_descriptor, rdesc 1350 drivers/hid/hid-logitech-dj.c rdcat(rdesc, &rsize, consumer_descriptor, sizeof(consumer_descriptor)); rdesc 1356 drivers/hid/hid-logitech-dj.c rdcat(rdesc, &rsize, syscontrol_descriptor, sizeof(syscontrol_descriptor)); rdesc 1362 drivers/hid/hid-logitech-dj.c rdcat(rdesc, &rsize, media_descriptor, sizeof(media_descriptor)); rdesc 1371 drivers/hid/hid-logitech-dj.c rdcat(rdesc, &rsize, hidpp_descriptor, rdesc 1375 drivers/hid/hid-logitech-dj.c retval = hid_parse_report(hid, rdesc, rsize); rdesc 1376 drivers/hid/hid-logitech-dj.c kfree(rdesc); rdesc 2894 drivers/hid/hid-logitech-hidpp.c char *consumer_rdesc, *rdesc = (char *)_rdesc; rdesc 2897 drivers/hid/hid-logitech-hidpp.c consumer_rdesc = strnstr(rdesc, consumer_rdesc_start, *rsize); rdesc 2898 drivers/hid/hid-logitech-hidpp.c size = *rsize - (consumer_rdesc - rdesc); rdesc 2975 drivers/hid/hid-logitech-hidpp.c static u8 *hidpp_report_fixup(struct hid_device *hdev, u8 *rdesc, rdesc 2981 drivers/hid/hid-logitech-hidpp.c return rdesc; rdesc 2986 drivers/hid/hid-logitech-hidpp.c rdesc = hidpp10_consumer_keys_report_fixup(hidpp, rdesc, rsize); rdesc 2988 drivers/hid/hid-logitech-hidpp.c return rdesc; rdesc 21 drivers/hid/hid-macally.c static __u8 *macally_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 24 drivers/hid/hid-macally.c if (*rsize >= 60 && rdesc[53] == 0x65 && rdesc[59] == 0x65) { rdesc 27 drivers/hid/hid-macally.c rdesc[53] = rdesc[59] = 0x67; rdesc 29 drivers/hid/hid-macally.c return rdesc; rdesc 140 drivers/hid/hid-maltron.c static __u8 *maltron_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 144 drivers/hid/hid-maltron.c !memcmp(maltron_rdesc_o, rdesc, sizeof(maltron_rdesc_o))) { rdesc 149 drivers/hid/hid-maltron.c return rdesc; rdesc 59 drivers/hid/hid-microsoft.c static __u8 *ms_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 69 drivers/hid/hid-microsoft.c if ((quirks & MS_RDESC) && *rsize == 571 && rdesc[557] == 0x19 && rdesc 70 drivers/hid/hid-microsoft.c rdesc[559] == 0x29) { rdesc 72 drivers/hid/hid-microsoft.c rdesc[557] = 0x35; rdesc 73 drivers/hid/hid-microsoft.c rdesc[559] = 0x45; rdesc 75 drivers/hid/hid-microsoft.c return rdesc; rdesc 21 drivers/hid/hid-monterey.c static __u8 *mr_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 24 drivers/hid/hid-monterey.c if (*rsize >= 31 && rdesc[29] == 0x05 && rdesc[30] == 0x09) { rdesc 26 drivers/hid/hid-monterey.c rdesc[30] = 0x0c; rdesc 28 drivers/hid/hid-monterey.c return rdesc; rdesc 32 drivers/hid/hid-nti.c static __u8 *nti_usbsun_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 35 drivers/hid/hid-nti.c if (*rsize >= 60 && rdesc[53] == 0x65 && rdesc[59] == 0x65) { rdesc 37 drivers/hid/hid-nti.c rdesc[53] = rdesc[59] = 0xe7; rdesc 39 drivers/hid/hid-nti.c return rdesc; rdesc 25 drivers/hid/hid-ortek.c static __u8 *ortek_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 28 drivers/hid/hid-ortek.c if (*rsize >= 56 && rdesc[54] == 0x25 && rdesc[55] == 0x01) { rdesc 30 drivers/hid/hid-ortek.c rdesc[55] = 0x92; rdesc 31 drivers/hid/hid-ortek.c } else if (*rsize >= 54 && rdesc[52] == 0x25 && rdesc[53] == 0x01) { rdesc 33 drivers/hid/hid-ortek.c rdesc[53] = 0x65; rdesc 35 drivers/hid/hid-ortek.c return rdesc; rdesc 22 drivers/hid/hid-petalynx.c static __u8 *pl_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 25 drivers/hid/hid-petalynx.c if (*rsize >= 62 && rdesc[39] == 0x2a && rdesc[40] == 0xf5 && rdesc 26 drivers/hid/hid-petalynx.c rdesc[41] == 0x00 && rdesc[59] == 0x26 && rdesc 27 drivers/hid/hid-petalynx.c rdesc[60] == 0xf9 && rdesc[61] == 0x00) { rdesc 29 drivers/hid/hid-petalynx.c rdesc[60] = 0xfa; rdesc 30 drivers/hid/hid-petalynx.c rdesc[40] = 0xfa; rdesc 32 drivers/hid/hid-petalynx.c return rdesc; rdesc 744 drivers/hid/hid-prodikeys.c static __u8 *pk_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 748 drivers/hid/hid-prodikeys.c rdesc[111] == 0x06 && rdesc[112] == 0x00 && rdesc 749 drivers/hid/hid-prodikeys.c rdesc[113] == 0xff) { rdesc 753 drivers/hid/hid-prodikeys.c rdesc[144] = 0x18; /* report 4: was 0x10 report count */ rdesc 755 drivers/hid/hid-prodikeys.c return rdesc; rdesc 36 drivers/hid/hid-redragon.c static __u8 *redragon_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 39 drivers/hid/hid-redragon.c if (*rsize >= 102 && rdesc[100] == 0x81 && rdesc[101] == 0x00) { rdesc 41 drivers/hid/hid-redragon.c rdesc[101] = 0x02; rdesc 44 drivers/hid/hid-redragon.c return rdesc; rdesc 69 drivers/hid/hid-saitek.c static __u8 *saitek_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 75 drivers/hid/hid-saitek.c rdesc[20] == 0x09 && rdesc[21] == 0x33 && rdesc 76 drivers/hid/hid-saitek.c rdesc[94] == 0x81 && rdesc[95] == 0x03 && rdesc 77 drivers/hid/hid-saitek.c rdesc[110] == 0x81 && rdesc[111] == 0x03) { rdesc 82 drivers/hid/hid-saitek.c rdesc[20] = 0x15; rdesc 83 drivers/hid/hid-saitek.c rdesc[21] = 0x00; rdesc 86 drivers/hid/hid-saitek.c rdesc[95] = 0x02; rdesc 87 drivers/hid/hid-saitek.c rdesc[111] = 0x02; rdesc 90 drivers/hid/hid-saitek.c return rdesc; rdesc 58 drivers/hid/hid-samsung.c static __u8 *samsung_irda_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 61 drivers/hid/hid-samsung.c if (*rsize == 184 && rdesc[175] == 0x25 && rdesc[176] == 0x40 && rdesc 62 drivers/hid/hid-samsung.c rdesc[177] == 0x75 && rdesc[178] == 0x30 && rdesc 63 drivers/hid/hid-samsung.c rdesc[179] == 0x95 && rdesc[180] == 0x01 && rdesc 64 drivers/hid/hid-samsung.c rdesc[182] == 0x40) { rdesc 66 drivers/hid/hid-samsung.c rdesc[176] = 0xff; rdesc 67 drivers/hid/hid-samsung.c rdesc[178] = 0x08; rdesc 68 drivers/hid/hid-samsung.c rdesc[180] = 0x06; rdesc 69 drivers/hid/hid-samsung.c rdesc[182] = 0x42; rdesc 71 drivers/hid/hid-samsung.c if (*rsize == 203 && rdesc[192] == 0x15 && rdesc[193] == 0x0 && rdesc 72 drivers/hid/hid-samsung.c rdesc[194] == 0x25 && rdesc[195] == 0x12) { rdesc 74 drivers/hid/hid-samsung.c rdesc[193] = 0x1; rdesc 75 drivers/hid/hid-samsung.c rdesc[195] = 0xf; rdesc 77 drivers/hid/hid-samsung.c if (*rsize == 135 && rdesc[124] == 0x15 && rdesc[125] == 0x0 && rdesc 78 drivers/hid/hid-samsung.c rdesc[126] == 0x25 && rdesc[127] == 0x11) { rdesc 80 drivers/hid/hid-samsung.c rdesc[125] = 0x1; rdesc 81 drivers/hid/hid-samsung.c rdesc[127] = 0xe; rdesc 83 drivers/hid/hid-samsung.c if (*rsize == 171 && rdesc[160] == 0x15 && rdesc[161] == 0x0 && rdesc 84 drivers/hid/hid-samsung.c rdesc[162] == 0x25 && rdesc[163] == 0x01) { rdesc 86 drivers/hid/hid-samsung.c rdesc[161] = 0x1; rdesc 87 drivers/hid/hid-samsung.c rdesc[163] = 0x3; rdesc 89 drivers/hid/hid-samsung.c return rdesc; rdesc 128 drivers/hid/hid-samsung.c static __u8 *samsung_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 132 drivers/hid/hid-samsung.c rdesc = samsung_irda_report_fixup(hdev, rdesc, rsize); rdesc 133 drivers/hid/hid-samsung.c return rdesc; rdesc 576 drivers/hid/hid-sensor-hub.c static __u8 *sensor_hub_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 584 drivers/hid/hid-sensor-hub.c *rsize == 2558 && rdesc[913] == 0x17 && rdesc[914] == 0x40 && rdesc 585 drivers/hid/hid-sensor-hub.c rdesc[915] == 0x81 && rdesc[916] == 0x08 && rdesc 586 drivers/hid/hid-sensor-hub.c rdesc[917] == 0x00 && rdesc[918] == 0x27 && rdesc 587 drivers/hid/hid-sensor-hub.c rdesc[921] == 0x07 && rdesc[922] == 0x00) { rdesc 589 drivers/hid/hid-sensor-hub.c rdesc[914] = rdesc[935] = rdesc[956] = 0xc0; rdesc 590 drivers/hid/hid-sensor-hub.c rdesc[915] = rdesc[936] = rdesc[957] = 0x7e; rdesc 591 drivers/hid/hid-sensor-hub.c rdesc[916] = rdesc[937] = rdesc[958] = 0xf7; rdesc 592 drivers/hid/hid-sensor-hub.c rdesc[917] = rdesc[938] = rdesc[959] = 0xff; rdesc 595 drivers/hid/hid-sensor-hub.c return rdesc; rdesc 665 drivers/hid/hid-sony.c static u8 *motion_fixup(struct hid_device *hdev, u8 *rdesc, rdesc 672 drivers/hid/hid-sony.c static u8 *ps3remote_fixup(struct hid_device *hdev, u8 *rdesc, rdesc 840 drivers/hid/hid-sony.c static u8 *sony_report_fixup(struct hid_device *hdev, u8 *rdesc, rdesc 846 drivers/hid/hid-sony.c return rdesc; rdesc 856 drivers/hid/hid-sony.c rdesc[2] == 0x09 && rdesc[3] == 0x02 && rdesc 858 drivers/hid/hid-sony.c rdesc[54] == 0x81 && rdesc[55] == 0x07) { rdesc 861 drivers/hid/hid-sony.c rdesc[55] = 0x06; rdesc 865 drivers/hid/hid-sony.c return motion_fixup(hdev, rdesc, rsize); rdesc 868 drivers/hid/hid-sony.c return ps3remote_fixup(hdev, rdesc, rsize); rdesc 876 drivers/hid/hid-sony.c rdesc[23] == 0x95 && rdesc[24] == 0x0D && rdesc 878 drivers/hid/hid-sony.c rdesc[37] == 0x29 && rdesc[38] == 0x0D && rdesc 880 drivers/hid/hid-sony.c rdesc[43] == 0x95 && rdesc[44] == 0x03) { rdesc 882 drivers/hid/hid-sony.c rdesc[24] = 0x10; rdesc 883 drivers/hid/hid-sony.c rdesc[38] = 0x10; rdesc 884 drivers/hid/hid-sony.c rdesc[44] = 0x00; rdesc 887 drivers/hid/hid-sony.c return rdesc; rdesc 355 drivers/hid/hid-steelseries.c static __u8 *steelseries_srws1_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 358 drivers/hid/hid-steelseries.c if (*rsize >= 115 && rdesc[11] == 0x02 && rdesc[13] == 0xc8 rdesc 359 drivers/hid/hid-steelseries.c && rdesc[29] == 0xbb && rdesc[40] == 0xc5) { rdesc 361 drivers/hid/hid-steelseries.c rdesc = steelseries_srws1_rdesc_fixed; rdesc 364 drivers/hid/hid-steelseries.c return rdesc; rdesc 21 drivers/hid/hid-sunplus.c static __u8 *sp_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 24 drivers/hid/hid-sunplus.c if (*rsize >= 112 && rdesc[104] == 0x26 && rdesc[105] == 0x80 && rdesc 25 drivers/hid/hid-sunplus.c rdesc[106] == 0x03) { rdesc 27 drivers/hid/hid-sunplus.c rdesc[105] = rdesc[110] = 0x03; rdesc 28 drivers/hid/hid-sunplus.c rdesc[106] = rdesc[111] = 0x21; rdesc 30 drivers/hid/hid-sunplus.c return rdesc; rdesc 72 drivers/hid/hid-uclogic-core.c static __u8 *uclogic_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 78 drivers/hid/hid-uclogic-core.c rdesc = drvdata->desc_ptr; rdesc 81 drivers/hid/hid-uclogic-core.c return rdesc; rdesc 73 drivers/hid/hid-viewsonic.c static __u8 *viewsonic_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 80 drivers/hid/hid-viewsonic.c rdesc = pd1011_rdesc_fixed; rdesc 86 drivers/hid/hid-viewsonic.c return rdesc; rdesc 602 drivers/hid/hid-waltop.c static __u8 *waltop_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 608 drivers/hid/hid-waltop.c rdesc = slim_tablet_5_8_inch_rdesc_fixed; rdesc 614 drivers/hid/hid-waltop.c rdesc = slim_tablet_12_1_inch_rdesc_fixed; rdesc 620 drivers/hid/hid-waltop.c rdesc = q_pad_rdesc_fixed; rdesc 626 drivers/hid/hid-waltop.c rdesc = pid_0038_rdesc_fixed; rdesc 632 drivers/hid/hid-waltop.c rdesc = media_tablet_10_6_inch_rdesc_fixed; rdesc 638 drivers/hid/hid-waltop.c rdesc = media_tablet_14_1_inch_rdesc_fixed; rdesc 644 drivers/hid/hid-waltop.c rdesc = sirius_battery_free_tablet_rdesc_fixed; rdesc 649 drivers/hid/hid-waltop.c return rdesc; rdesc 27 drivers/hid/hid-zydacron.c static __u8 *zc_report_fixup(struct hid_device *hdev, __u8 *rdesc, rdesc 31 drivers/hid/hid-zydacron.c rdesc[0x96] == 0xbc && rdesc[0x97] == 0xff && rdesc 32 drivers/hid/hid-zydacron.c rdesc[0xca] == 0xbc && rdesc[0xcb] == 0xff && rdesc 33 drivers/hid/hid-zydacron.c rdesc[0xe1] == 0xbc && rdesc[0xe2] == 0xff) { rdesc 36 drivers/hid/hid-zydacron.c rdesc[0x96] = rdesc[0xca] = rdesc[0xe1] = 0x0c; rdesc 37 drivers/hid/hid-zydacron.c rdesc[0x97] = rdesc[0xcb] = rdesc[0xe2] = 0x00; rdesc 39 drivers/hid/hid-zydacron.c return rdesc; rdesc 396 drivers/hid/hidraw.c dev->hid->rdesc, rdesc 696 drivers/hid/i2c-hid/i2c-hid-core.c char *rdesc; rdesc 722 drivers/hid/i2c-hid/i2c-hid-core.c rdesc = use_override; rdesc 725 drivers/hid/i2c-hid/i2c-hid-core.c rdesc = kzalloc(rsize, GFP_KERNEL); rdesc 727 drivers/hid/i2c-hid/i2c-hid-core.c if (!rdesc) { rdesc 735 drivers/hid/i2c-hid/i2c-hid-core.c rdesc, rsize); rdesc 738 drivers/hid/i2c-hid/i2c-hid-core.c kfree(rdesc); rdesc 743 drivers/hid/i2c-hid/i2c-hid-core.c i2c_hid_dbg(ihid, "Report Descriptor: %*ph\n", rsize, rdesc); rdesc 745 drivers/hid/i2c-hid/i2c-hid-core.c ret = hid_parse_report(hid, rdesc, rsize); rdesc 747 drivers/hid/i2c-hid/i2c-hid-core.c kfree(rdesc); rdesc 989 drivers/hid/usbhid/hid-core.c char *rdesc; rdesc 1034 drivers/hid/usbhid/hid-core.c rdesc = kmalloc(rsize, GFP_KERNEL); rdesc 1035 drivers/hid/usbhid/hid-core.c if (!rdesc) rdesc 1041 drivers/hid/usbhid/hid-core.c HID_DT_REPORT, rdesc, rsize); rdesc 1044 drivers/hid/usbhid/hid-core.c kfree(rdesc); rdesc 1048 drivers/hid/usbhid/hid-core.c ret = hid_parse_report(hid, rdesc, rsize); rdesc 1049 drivers/hid/usbhid/hid-core.c kfree(rdesc); rdesc 1505 drivers/hid/usbhid/hid-core.c char *rdesc; rdesc 1512 drivers/hid/usbhid/hid-core.c rdesc = kmalloc(hid->dev_rsize, GFP_KERNEL); rdesc 1513 drivers/hid/usbhid/hid-core.c if (!rdesc) rdesc 1518 drivers/hid/usbhid/hid-core.c HID_DT_REPORT, rdesc, hid->dev_rsize); rdesc 1521 drivers/hid/usbhid/hid-core.c kfree(rdesc); rdesc 1524 drivers/hid/usbhid/hid-core.c status = memcmp(rdesc, hid->dev_rdesc, hid->dev_rsize); rdesc 1525 drivers/hid/usbhid/hid-core.c kfree(rdesc); rdesc 1016 drivers/infiniband/hw/qib/qib_sd7220.c u16 rdesc; /* in form used in SerDesDDSRXEQ */ rdesc 1098 drivers/infiniband/hw/qib/qib_sd7220.c writeq(rxeq_init_vals[idx].rdesc, iaddr + didx); rdesc 1223 drivers/infiniband/hw/qib/qib_sd7220.c elt = rxeq_init_vals[ridx].rdesc & 0xF; rdesc 1224 drivers/infiniband/hw/qib/qib_sd7220.c reg = rxeq_init_vals[ridx].rdesc >> 4; rdesc 561 drivers/input/rmi4/rmi_driver.c struct rmi_register_descriptor *rdesc) rdesc 600 drivers/input/rmi4/rmi_driver.c rdesc->struct_size = buf[1] | (buf[2] << 8); rdesc 602 drivers/input/rmi4/rmi_driver.c rdesc->struct_size = buf[0]; rdesc 608 drivers/input/rmi4/rmi_driver.c bitmap_set(rdesc->presense_map, map_offset, 1); rdesc 613 drivers/input/rmi4/rmi_driver.c rdesc->num_registers = bitmap_weight(rdesc->presense_map, rdesc 616 drivers/input/rmi4/rmi_driver.c rdesc->registers = devm_kcalloc(&d->dev, rdesc 617 drivers/input/rmi4/rmi_driver.c rdesc->num_registers, rdesc 620 drivers/input/rmi4/rmi_driver.c if (!rdesc->registers) rdesc 628 drivers/input/rmi4/rmi_driver.c struct_buf = kzalloc(rdesc->struct_size, GFP_KERNEL); rdesc 638 drivers/input/rmi4/rmi_driver.c ret = rmi_read_block(d, addr, struct_buf, rdesc->struct_size); rdesc 642 drivers/input/rmi4/rmi_driver.c reg = find_first_bit(rdesc->presense_map, RMI_REG_DESC_PRESENSE_BITS); rdesc 643 drivers/input/rmi4/rmi_driver.c for (i = 0; i < rdesc->num_registers; i++) { rdesc 644 drivers/input/rmi4/rmi_driver.c struct rmi_register_desc_item *item = &rdesc->registers[i]; rdesc 683 drivers/input/rmi4/rmi_driver.c reg = find_next_bit(rdesc->presense_map, rdesc 693 drivers/input/rmi4/rmi_driver.c struct rmi_register_descriptor *rdesc, u16 reg) rdesc 698 drivers/input/rmi4/rmi_driver.c for (i = 0; i < rdesc->num_registers; i++) { rdesc 699 drivers/input/rmi4/rmi_driver.c item = &rdesc->registers[i]; rdesc 707 drivers/input/rmi4/rmi_driver.c size_t rmi_register_desc_calc_size(struct rmi_register_descriptor *rdesc) rdesc 713 drivers/input/rmi4/rmi_driver.c for (i = 0; i < rdesc->num_registers; i++) { rdesc 714 drivers/input/rmi4/rmi_driver.c item = &rdesc->registers[i]; rdesc 722 drivers/input/rmi4/rmi_driver.c struct rmi_register_descriptor *rdesc, u16 reg) rdesc 728 drivers/input/rmi4/rmi_driver.c for (i = 0; i < rdesc->num_registers; i++) { rdesc 729 drivers/input/rmi4/rmi_driver.c item = &rdesc->registers[i]; rdesc 73 drivers/input/rmi4/rmi_driver.h struct rmi_register_descriptor *rdesc); rdesc 75 drivers/input/rmi4/rmi_driver.h struct rmi_register_descriptor *rdesc, u16 reg); rdesc 81 drivers/input/rmi4/rmi_driver.h size_t rmi_register_desc_calc_size(struct rmi_register_descriptor *rdesc); rdesc 83 drivers/input/rmi4/rmi_driver.h struct rmi_register_descriptor *rdesc, u16 reg); rdesc 217 drivers/mtd/nand/spi/core.c struct spi_mem_dirmap_desc *rdesc; rdesc 237 drivers/mtd/nand/spi/core.c rdesc = spinand->dirmaps[req->pos.plane].rdesc; rdesc 240 drivers/mtd/nand/spi/core.c ret = spi_mem_dirmap_read(rdesc, column, nbytes, buf); rdesc 722 drivers/mtd/nand/spi/core.c spinand->dirmaps[plane].rdesc = desc; rdesc 163 drivers/net/ethernet/amd/xgbe/xgbe-desc.c if (ring->rdesc) { rdesc 167 drivers/net/ethernet/amd/xgbe/xgbe-desc.c ring->rdesc, ring->rdesc_dma); rdesc 168 drivers/net/ethernet/amd/xgbe/xgbe-desc.c ring->rdesc = NULL; rdesc 227 drivers/net/ethernet/amd/xgbe/xgbe-desc.c ring->rdesc = xgbe_dma_alloc_node(pdata->dev, size, &ring->rdesc_dma, rdesc 229 drivers/net/ethernet/amd/xgbe/xgbe-desc.c if (!ring->rdesc) rdesc 241 drivers/net/ethernet/amd/xgbe/xgbe-desc.c ring->rdesc, &ring->rdesc_dma, ring->rdata, ring->node); rdesc 392 drivers/net/ethernet/amd/xgbe/xgbe-desc.c struct xgbe_ring_desc *rdesc; rdesc 404 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdesc = ring->rdesc; rdesc 410 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->rdesc = rdesc; rdesc 413 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdesc++; rdesc 432 drivers/net/ethernet/amd/xgbe/xgbe-desc.c struct xgbe_ring_desc *rdesc; rdesc 445 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdesc = ring->rdesc; rdesc 451 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->rdesc = rdesc; rdesc 457 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdesc++; rdesc 1370 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_tx_complete(struct xgbe_ring_desc *rdesc) rdesc 1372 drivers/net/ethernet/amd/xgbe/xgbe-dev.c return !XGMAC_GET_BITS_LE(rdesc->desc3, TX_NORMAL_DESC3, OWN); rdesc 1391 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct xgbe_ring_desc *rdesc = rdata->rdesc; rdesc 1399 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdesc->desc0 = 0; rdesc 1400 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdesc->desc1 = 0; rdesc 1401 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdesc->desc2 = 0; rdesc 1402 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdesc->desc3 = 0; rdesc 1441 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct xgbe_ring_desc *rdesc = rdata->rdesc; rdesc 1467 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdesc->desc0 = cpu_to_le32(lower_32_bits(hdr_dma)); rdesc 1468 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdesc->desc1 = cpu_to_le32(upper_32_bits(hdr_dma)); rdesc 1469 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdesc->desc2 = cpu_to_le32(lower_32_bits(buf_dma)); rdesc 1470 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdesc->desc3 = cpu_to_le32(upper_32_bits(buf_dma)); rdesc 1472 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc3, RX_NORMAL_DESC3, INTE, inte); rdesc 1480 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc3, RX_NORMAL_DESC3, OWN, 1); rdesc 1593 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct xgbe_ring_desc *rdesc) rdesc 1597 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (XGMAC_GET_BITS_LE(rdesc->desc3, RX_CONTEXT_DESC3, TSA) && rdesc 1598 drivers/net/ethernet/amd/xgbe/xgbe-dev.c !XGMAC_GET_BITS_LE(rdesc->desc3, RX_CONTEXT_DESC3, TSD)) { rdesc 1599 drivers/net/ethernet/amd/xgbe/xgbe-dev.c nsec = le32_to_cpu(rdesc->desc1); rdesc 1601 drivers/net/ethernet/amd/xgbe/xgbe-dev.c nsec |= le32_to_cpu(rdesc->desc0); rdesc 1671 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct xgbe_ring_desc *rdesc; rdesc 1726 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdesc = rdata->rdesc; rdesc 1736 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc2, TX_CONTEXT_DESC2, rdesc 1740 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc3, TX_CONTEXT_DESC3, rdesc 1744 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc3, TX_CONTEXT_DESC3, rdesc 1756 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc3, TX_CONTEXT_DESC3, rdesc 1760 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc3, TX_CONTEXT_DESC3, rdesc 1764 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc3, TX_CONTEXT_DESC3, rdesc 1772 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdesc = rdata->rdesc; rdesc 1776 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdesc->desc0 = cpu_to_le32(lower_32_bits(rdata->skb_dma)); rdesc 1777 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdesc->desc1 = cpu_to_le32(upper_32_bits(rdata->skb_dma)); rdesc 1780 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc2, TX_NORMAL_DESC2, HL_B1L, rdesc 1785 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc2, TX_NORMAL_DESC2, VTIR, rdesc 1790 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc2, TX_NORMAL_DESC2, TTSE, 1); rdesc 1793 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc3, TX_NORMAL_DESC3, FD, 1); rdesc 1796 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc3, TX_NORMAL_DESC3, CTXT, 0); rdesc 1800 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc3, TX_NORMAL_DESC3, OWN, 1); rdesc 1804 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc3, TX_NORMAL_DESC3, TSE, 1); rdesc 1805 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc3, TX_NORMAL_DESC3, TCPPL, rdesc 1807 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc3, TX_NORMAL_DESC3, TCPHDRLEN, rdesc 1813 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc3, TX_NORMAL_DESC3, CPC, 0); rdesc 1817 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc3, TX_NORMAL_DESC3, rdesc 1821 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc3, TX_NORMAL_DESC3, FL, rdesc 1826 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc3, TX_NORMAL_DESC3, VNP, rdesc 1835 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdesc = rdata->rdesc; rdesc 1838 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdesc->desc0 = cpu_to_le32(lower_32_bits(rdata->skb_dma)); rdesc 1839 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdesc->desc1 = cpu_to_le32(upper_32_bits(rdata->skb_dma)); rdesc 1842 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc2, TX_NORMAL_DESC2, HL_B1L, rdesc 1846 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc3, TX_NORMAL_DESC3, OWN, 1); rdesc 1849 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc3, TX_NORMAL_DESC3, CTXT, 0); rdesc 1853 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc3, TX_NORMAL_DESC3, rdesc 1858 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc3, TX_NORMAL_DESC3, LD, 1); rdesc 1862 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc2, TX_NORMAL_DESC2, IC, 1); rdesc 1879 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdesc = rdata->rdesc; rdesc 1880 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS_LE(rdesc->desc3, TX_NORMAL_DESC3, OWN, 1); rdesc 1909 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct xgbe_ring_desc *rdesc; rdesc 1917 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdesc = rdata->rdesc; rdesc 1920 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (XGMAC_GET_BITS_LE(rdesc->desc3, RX_NORMAL_DESC3, OWN)) rdesc 1929 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (XGMAC_GET_BITS_LE(rdesc->desc3, RX_NORMAL_DESC3, CTXT)) { rdesc 1931 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_get_rx_tstamp(packet, rdesc); rdesc 1944 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (XGMAC_GET_BITS_LE(rdesc->desc3, RX_NORMAL_DESC3, CDA)) rdesc 1949 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (XGMAC_GET_BITS_LE(rdesc->desc3, RX_NORMAL_DESC3, FD)) { rdesc 1952 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdata->rx.hdr_len = XGMAC_GET_BITS_LE(rdesc->desc2, rdesc 1962 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (XGMAC_GET_BITS_LE(rdesc->desc3, RX_NORMAL_DESC3, RSV)) { rdesc 1966 drivers/net/ethernet/amd/xgbe/xgbe-dev.c packet->rss_hash = le32_to_cpu(rdesc->desc1); rdesc 1968 drivers/net/ethernet/amd/xgbe/xgbe-dev.c l34t = XGMAC_GET_BITS_LE(rdesc->desc3, RX_NORMAL_DESC3, L34T); rdesc 1982 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!XGMAC_GET_BITS_LE(rdesc->desc3, RX_NORMAL_DESC3, LD)) rdesc 1990 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdata->rx.len = XGMAC_GET_BITS_LE(rdesc->desc3, RX_NORMAL_DESC3, PL); rdesc 2001 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (XGMAC_GET_BITS_LE(rdesc->desc2, RX_NORMAL_DESC2, TNP)) { rdesc 2006 drivers/net/ethernet/amd/xgbe/xgbe-dev.c l34t = XGMAC_GET_BITS_LE(rdesc->desc3, RX_NORMAL_DESC3, L34T); rdesc 2017 drivers/net/ethernet/amd/xgbe/xgbe-dev.c err = XGMAC_GET_BITS_LE(rdesc->desc3, RX_NORMAL_DESC3, ES); rdesc 2018 drivers/net/ethernet/amd/xgbe/xgbe-dev.c etlt = XGMAC_GET_BITS_LE(rdesc->desc3, RX_NORMAL_DESC3, ETLT); rdesc 2027 drivers/net/ethernet/amd/xgbe/xgbe-dev.c packet->vlan_ctag = XGMAC_GET_BITS_LE(rdesc->desc0, rdesc 2064 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_is_context_desc(struct xgbe_ring_desc *rdesc) rdesc 2067 drivers/net/ethernet/amd/xgbe/xgbe-dev.c return XGMAC_GET_BITS_LE(rdesc->desc3, TX_NORMAL_DESC3, CTXT); rdesc 2070 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_is_last_desc(struct xgbe_ring_desc *rdesc) rdesc 2073 drivers/net/ethernet/amd/xgbe/xgbe-dev.c return XGMAC_GET_BITS_LE(rdesc->desc3, TX_NORMAL_DESC3, LD); rdesc 2619 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_ring_desc *rdesc; rdesc 2642 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdesc = rdata->rdesc; rdesc 2644 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!hw_if->tx_complete(rdesc)) rdesc 2654 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (hw_if->is_last_desc(rdesc)) { rdesc 2946 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_ring_desc *rdesc; rdesc 2950 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdesc = rdata->rdesc; rdesc 2954 drivers/net/ethernet/amd/xgbe/xgbe-drv.c le32_to_cpu(rdesc->desc0), rdesc 2955 drivers/net/ethernet/amd/xgbe/xgbe-drv.c le32_to_cpu(rdesc->desc1), rdesc 2956 drivers/net/ethernet/amd/xgbe/xgbe-drv.c le32_to_cpu(rdesc->desc2), rdesc 2957 drivers/net/ethernet/amd/xgbe/xgbe-drv.c le32_to_cpu(rdesc->desc3)); rdesc 2966 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_ring_desc *rdesc; rdesc 2969 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdesc = rdata->rdesc; rdesc 2972 drivers/net/ethernet/amd/xgbe/xgbe-drv.c idx, le32_to_cpu(rdesc->desc0), le32_to_cpu(rdesc->desc1), rdesc 2973 drivers/net/ethernet/amd/xgbe/xgbe-drv.c le32_to_cpu(rdesc->desc2), le32_to_cpu(rdesc->desc3)); rdesc 423 drivers/net/ethernet/amd/xgbe/xgbe.h struct xgbe_ring_desc *rdesc; /* Virtual address of descriptor */ rdesc 456 drivers/net/ethernet/amd/xgbe/xgbe.h struct xgbe_ring_desc *rdesc; rdesc 146 drivers/net/ethernet/cirrus/ep93xx_eth.c struct ep93xx_rdesc rdesc[RX_QUEUE_ENTRIES]; rdesc 283 drivers/net/ethernet/cirrus/ep93xx_eth.c struct ep93xx_rdesc *rxd = &ep->descs->rdesc[entry]; rdesc 456 drivers/net/ethernet/cirrus/ep93xx_eth.c d = ep->descs->rdesc[i].buf_addr; rdesc 503 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->descs->rdesc[i].buf_addr = d; rdesc 504 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->descs->rdesc[i].rdesc1 = (i << 16) | PKT_BUF_SIZE; rdesc 557 drivers/net/ethernet/cirrus/ep93xx_eth.c addr = ep->descs_dma_addr + offsetof(struct ep93xx_descs, rdesc); rdesc 29 drivers/regulator/anatop-regulator.c struct regulator_desc rdesc; rdesc 160 drivers/regulator/anatop-regulator.c struct regulator_desc *rdesc; rdesc 179 drivers/regulator/anatop-regulator.c rdesc = &sreg->rdesc; rdesc 180 drivers/regulator/anatop-regulator.c rdesc->type = REGULATOR_VOLTAGE; rdesc 181 drivers/regulator/anatop-regulator.c rdesc->owner = THIS_MODULE; rdesc 183 drivers/regulator/anatop-regulator.c of_property_read_string(np, "regulator-name", &rdesc->name); rdesc 184 drivers/regulator/anatop-regulator.c if (!rdesc->name) { rdesc 189 drivers/regulator/anatop-regulator.c initdata = of_get_regulator_init_data(dev, np, rdesc); rdesc 242 drivers/regulator/anatop-regulator.c rdesc->n_voltages = (max_voltage - min_voltage) / 25000 + 1 rdesc 244 drivers/regulator/anatop-regulator.c rdesc->min_uV = min_voltage; rdesc 245 drivers/regulator/anatop-regulator.c rdesc->uV_step = 25000; rdesc 246 drivers/regulator/anatop-regulator.c rdesc->linear_min_sel = min_bit_val; rdesc 247 drivers/regulator/anatop-regulator.c rdesc->vsel_reg = control_reg; rdesc 248 drivers/regulator/anatop-regulator.c rdesc->vsel_mask = ((1 << vol_bit_width) - 1) << vol_bit_shift; rdesc 249 drivers/regulator/anatop-regulator.c rdesc->min_dropout_uV = 125000; rdesc 259 drivers/regulator/anatop-regulator.c rdesc->ops = &anatop_core_rops; rdesc 261 drivers/regulator/anatop-regulator.c ret = regmap_read(config.regmap, rdesc->vsel_reg, &val); rdesc 267 drivers/regulator/anatop-regulator.c sreg->sel = (val & rdesc->vsel_mask) >> vol_bit_shift; rdesc 278 drivers/regulator/anatop-regulator.c if (!sreg->sel && !strcmp(rdesc->name, "vddpu")) rdesc 282 drivers/regulator/anatop-regulator.c if (!sreg->sel && !strcmp(rdesc->name, "vddpcie")) rdesc 292 drivers/regulator/anatop-regulator.c rdesc->ops = &anatop_rops; rdesc 300 drivers/regulator/anatop-regulator.c rdesc->enable_reg = control_reg; rdesc 301 drivers/regulator/anatop-regulator.c rdesc->enable_mask = BIT(enable_bit); rdesc 306 drivers/regulator/anatop-regulator.c rdev = devm_regulator_register(dev, rdesc, &config); rdesc 309 drivers/regulator/anatop-regulator.c rdesc->name); rdesc 100 drivers/regulator/cpcap-regulator.c struct regulator_desc rdesc; rdesc 108 drivers/regulator/cpcap-regulator.c .rdesc = { \ rdesc 539 drivers/regulator/cpcap-regulator.c if (!regulator->rdesc.name) rdesc 542 drivers/regulator/cpcap-regulator.c if (regulator->rdesc.volt_table == unknown_val_tbl) rdesc 547 drivers/regulator/cpcap-regulator.c ®ulator->rdesc, rdesc 551 drivers/regulator/cpcap-regulator.c regulator->rdesc.name); rdesc 390 drivers/regulator/fan53555.c struct regulator_desc *rdesc = &di->desc; rdesc 393 drivers/regulator/fan53555.c rdesc->name = "fan53555-reg"; rdesc 394 drivers/regulator/fan53555.c rdesc->supply_name = "vin"; rdesc 395 drivers/regulator/fan53555.c rdesc->ops = &fan53555_regulator_ops; rdesc 396 drivers/regulator/fan53555.c rdesc->type = REGULATOR_VOLTAGE; rdesc 397 drivers/regulator/fan53555.c rdesc->n_voltages = di->vsel_count; rdesc 398 drivers/regulator/fan53555.c rdesc->enable_reg = di->vol_reg; rdesc 399 drivers/regulator/fan53555.c rdesc->enable_mask = VSEL_BUCK_EN; rdesc 400 drivers/regulator/fan53555.c rdesc->min_uV = di->vsel_min; rdesc 401 drivers/regulator/fan53555.c rdesc->uV_step = di->vsel_step; rdesc 402 drivers/regulator/fan53555.c rdesc->vsel_reg = di->vol_reg; rdesc 403 drivers/regulator/fan53555.c rdesc->vsel_mask = di->vsel_count - 1; rdesc 404 drivers/regulator/fan53555.c rdesc->owner = THIS_MODULE; rdesc 27 drivers/regulator/hi6421v530-regulator.c struct regulator_desc rdesc; rdesc 75 drivers/regulator/hi6421v530-regulator.c .rdesc = { \ rdesc 182 drivers/regulator/hi6421v530-regulator.c &hi6421v530_regulator_info[i].rdesc, rdesc 186 drivers/regulator/hi6421v530-regulator.c hi6421v530_regulator_info[i].rdesc.name); rdesc 27 drivers/regulator/hi655x-regulator.c struct regulator_desc rdesc; rdesc 109 drivers/regulator/hi655x-regulator.c .rdesc = { \ rdesc 130 drivers/regulator/hi655x-regulator.c .rdesc = { \ rdesc 194 drivers/regulator/hi655x-regulator.c ®ulators[i].rdesc, rdesc 198 drivers/regulator/hi655x-regulator.c regulator->rdesc.name); rdesc 196 drivers/regulator/ltc3589.c struct regulator_desc *rdesc = <c3589->regulator_descs[desc->id]; rdesc 214 drivers/regulator/ltc3589.c rdesc->min_uV = ltc3589_scale(desc->min_uV, r[0], r[1]); rdesc 215 drivers/regulator/ltc3589.c rdesc->uV_step = ltc3589_scale(desc->uV_step, r[0], r[1]); rdesc 216 drivers/regulator/ltc3589.c rdesc->fixed_uV = ltc3589_scale(desc->fixed_uV, r[0], r[1]); rdesc 150 drivers/regulator/ltc3676.c struct regulator_desc *rdesc = <c3676->regulator_descs[desc->id]; rdesc 165 drivers/regulator/ltc3676.c rdesc->min_uV = ltc3676_scale(desc->min_uV, r[0], r[1]); rdesc 166 drivers/regulator/ltc3676.c rdesc->uV_step = ltc3676_scale(desc->uV_step, r[0], r[1]); rdesc 167 drivers/regulator/ltc3676.c rdesc->fixed_uV = ltc3676_scale(desc->fixed_uV, r[0], r[1]); rdesc 819 drivers/regulator/max77620-regulator.c struct regulator_desc *rdesc; rdesc 825 drivers/regulator/max77620-regulator.c rdesc = &rinfo[id].desc; rdesc 841 drivers/regulator/max77620-regulator.c rdev = devm_regulator_register(dev, rdesc, &config); rdesc 845 drivers/regulator/max77620-regulator.c rdesc->name, ret); rdesc 69 drivers/regulator/max77650-regulator.c struct max77650_regulator_desc *rdesc; rdesc 73 drivers/regulator/max77650-regulator.c rdesc = rdev_get_drvdata(rdev); rdesc 76 drivers/regulator/max77650-regulator.c rv = regmap_read(map, rdesc->regB, &val); rdesc 87 drivers/regulator/max77650-regulator.c struct max77650_regulator_desc *rdesc; rdesc 90 drivers/regulator/max77650-regulator.c rdesc = rdev_get_drvdata(rdev); rdesc 93 drivers/regulator/max77650-regulator.c return regmap_update_bits(map, rdesc->regB, rdesc 100 drivers/regulator/max77650-regulator.c struct max77650_regulator_desc *rdesc; rdesc 103 drivers/regulator/max77650-regulator.c rdesc = rdev_get_drvdata(rdev); rdesc 106 drivers/regulator/max77650-regulator.c return regmap_update_bits(map, rdesc->regB, rdesc 330 drivers/regulator/max77650-regulator.c struct max77650_regulator_desc *rdesc; rdesc 378 drivers/regulator/max77650-regulator.c rdesc = rdescs[i]; rdesc 379 drivers/regulator/max77650-regulator.c config.driver_data = rdesc; rdesc 381 drivers/regulator/max77650-regulator.c rdev = devm_regulator_register(dev, &rdesc->desc, &config); rdesc 123 drivers/regulator/qcom-rpmh-regulator.c struct regulator_desc rdesc; rdesc 445 drivers/regulator/qcom-rpmh-regulator.c vreg->rdesc.name = rpmh_data->name; rdesc 446 drivers/regulator/qcom-rpmh-regulator.c vreg->rdesc.supply_name = rpmh_data->supply_name; rdesc 454 drivers/regulator/qcom-rpmh-regulator.c vreg->rdesc.linear_ranges = &rpmh_data->hw_data->voltage_range; rdesc 455 drivers/regulator/qcom-rpmh-regulator.c vreg->rdesc.n_linear_ranges = 1; rdesc 456 drivers/regulator/qcom-rpmh-regulator.c vreg->rdesc.n_voltages = rpmh_data->hw_data->n_voltages; rdesc 462 drivers/regulator/qcom-rpmh-regulator.c vreg->rdesc.owner = THIS_MODULE; rdesc 463 drivers/regulator/qcom-rpmh-regulator.c vreg->rdesc.type = REGULATOR_VOLTAGE; rdesc 464 drivers/regulator/qcom-rpmh-regulator.c vreg->rdesc.ops = vreg->hw_data->ops; rdesc 465 drivers/regulator/qcom-rpmh-regulator.c vreg->rdesc.of_map_mode = vreg->hw_data->of_map_mode; rdesc 467 drivers/regulator/qcom-rpmh-regulator.c init_data = of_get_regulator_init_data(dev, node, &vreg->rdesc); rdesc 474 drivers/regulator/qcom-rpmh-regulator.c vreg->rdesc.fixed_uV = init_data->constraints.min_uV; rdesc 475 drivers/regulator/qcom-rpmh-regulator.c vreg->rdesc.n_voltages = 1; rdesc 483 drivers/regulator/qcom-rpmh-regulator.c rdev = devm_regulator_register(dev, &vreg->rdesc, ®_config); rdesc 41 drivers/regulator/slg51000-regulator.c struct regulator_desc *rdesc[SLG51000_MAX_REGULATORS]; rdesc 250 drivers/regulator/slg51000-regulator.c struct regulator_desc *rdesc; rdesc 261 drivers/regulator/slg51000-regulator.c chip->rdesc[id] = ®ls_desc[id]; rdesc 262 drivers/regulator/slg51000-regulator.c rdesc = chip->rdesc[id]; rdesc 291 drivers/regulator/slg51000-regulator.c rdesc->linear_min_sel = vsel_range[0]; rdesc 292 drivers/regulator/slg51000-regulator.c rdesc->n_voltages = vsel_range[1] + 1; rdesc 294 drivers/regulator/slg51000-regulator.c rdesc->min_uV = SLG51000_LDOHP_HV_MIN rdesc 296 drivers/regulator/slg51000-regulator.c * rdesc->uV_step); rdesc 298 drivers/regulator/slg51000-regulator.c rdesc->min_uV = SLG51000_LDOHP_LV_MIN rdesc 300 drivers/regulator/slg51000-regulator.c * rdesc->uV_step); rdesc 318 drivers/regulator/slg51000-regulator.c rdesc->ops = &slg51000_switch_ops; rdesc 319 drivers/regulator/slg51000-regulator.c rdesc->n_voltages = 0; rdesc 320 drivers/regulator/slg51000-regulator.c rdesc->min_uV = 0; rdesc 321 drivers/regulator/slg51000-regulator.c rdesc->uV_step = 0; rdesc 322 drivers/regulator/slg51000-regulator.c rdesc->linear_min_sel = 0; rdesc 328 drivers/regulator/slg51000-regulator.c rdesc->linear_min_sel = vsel_range[0]; rdesc 329 drivers/regulator/slg51000-regulator.c rdesc->n_voltages = vsel_range[1] + 1; rdesc 330 drivers/regulator/slg51000-regulator.c rdesc->min_uV = rdesc->min_uV rdesc 331 drivers/regulator/slg51000-regulator.c + (vsel_range[0] * rdesc->uV_step); rdesc 335 drivers/regulator/slg51000-regulator.c chip->rdev[id] = devm_regulator_register(chip->dev, rdesc, rdesc 341 drivers/regulator/slg51000-regulator.c chip->rdesc[id]->name, ret); rdesc 89 drivers/regulator/sy8824x.c struct regulator_desc *rdesc = &di->desc; rdesc 93 drivers/regulator/sy8824x.c rdesc->name = "sy8824-reg"; rdesc 94 drivers/regulator/sy8824x.c rdesc->supply_name = "vin"; rdesc 95 drivers/regulator/sy8824x.c rdesc->ops = &sy8824_regulator_ops; rdesc 96 drivers/regulator/sy8824x.c rdesc->type = REGULATOR_VOLTAGE; rdesc 97 drivers/regulator/sy8824x.c rdesc->n_voltages = cfg->vsel_count; rdesc 98 drivers/regulator/sy8824x.c rdesc->enable_reg = cfg->enable_reg; rdesc 99 drivers/regulator/sy8824x.c rdesc->enable_mask = SY8824C_BUCK_EN; rdesc 100 drivers/regulator/sy8824x.c rdesc->min_uV = cfg->vsel_min; rdesc 101 drivers/regulator/sy8824x.c rdesc->uV_step = cfg->vsel_step; rdesc 102 drivers/regulator/sy8824x.c rdesc->vsel_reg = cfg->vol_reg; rdesc 103 drivers/regulator/sy8824x.c rdesc->vsel_mask = cfg->vsel_count - 1; rdesc 104 drivers/regulator/sy8824x.c rdesc->owner = THIS_MODULE; rdesc 101 drivers/regulator/ti-abb-regulator.c struct regulator_desc rdesc; rdesc 536 drivers/regulator/ti-abb-regulator.c abb->rdesc.n_voltages = num_entries; rdesc 537 drivers/regulator/ti-abb-regulator.c abb->rdesc.volt_table = volt_table; rdesc 831 drivers/regulator/ti-abb-regulator.c &abb->rdesc); rdesc 848 drivers/regulator/ti-abb-regulator.c desc = &abb->rdesc; rdesc 321 drivers/regulator/vctrl-regulator.c struct regulator_desc *rdesc = &vctrl->desc; rdesc 330 drivers/regulator/vctrl-regulator.c rdesc->n_voltages = n_voltages; rdesc 338 drivers/regulator/vctrl-regulator.c rdesc->n_voltages--; rdesc 341 drivers/regulator/vctrl-regulator.c if (rdesc->n_voltages == 0) { rdesc 346 drivers/regulator/vctrl-regulator.c vctrl->vtable = devm_kcalloc(&pdev->dev, rdesc->n_voltages, rdesc 367 drivers/regulator/vctrl-regulator.c sort(vctrl->vtable, rdesc->n_voltages, rdesc 372 drivers/regulator/vctrl-regulator.c for (i = rdesc->n_voltages - 1; i > 0; i--) { rdesc 447 drivers/regulator/vctrl-regulator.c struct regulator_desc *rdesc; rdesc 466 drivers/regulator/vctrl-regulator.c rdesc = &vctrl->desc; rdesc 467 drivers/regulator/vctrl-regulator.c rdesc->name = "vctrl"; rdesc 468 drivers/regulator/vctrl-regulator.c rdesc->type = REGULATOR_VOLTAGE; rdesc 469 drivers/regulator/vctrl-regulator.c rdesc->owner = THIS_MODULE; rdesc 473 drivers/regulator/vctrl-regulator.c rdesc->continuous_voltage_range = true; rdesc 474 drivers/regulator/vctrl-regulator.c rdesc->ops = &vctrl_ops_cont; rdesc 476 drivers/regulator/vctrl-regulator.c rdesc->ops = &vctrl_ops_non_cont; rdesc 479 drivers/regulator/vctrl-regulator.c init_data = of_get_regulator_init_data(&pdev->dev, np, rdesc); rdesc 488 drivers/regulator/vctrl-regulator.c if (!rdesc->continuous_voltage_range) { rdesc 503 drivers/regulator/vctrl-regulator.c vctrl->sel = rdesc->n_voltages - 1; rdesc 507 drivers/regulator/vctrl-regulator.c for (i = 0; i < rdesc->n_voltages; i++) { rdesc 516 drivers/regulator/vctrl-regulator.c vctrl->rdev = devm_regulator_register(&pdev->dev, rdesc, &cfg); rdesc 242 drivers/spi/spi-pic32-sqi.c struct ring_desc *rdesc; rdesc 247 drivers/spi/spi-pic32-sqi.c rdesc = list_first_entry(&sqi->bd_list_free, struct ring_desc, list); rdesc 248 drivers/spi/spi-pic32-sqi.c list_move_tail(&rdesc->list, &sqi->bd_list_used); rdesc 249 drivers/spi/spi-pic32-sqi.c return rdesc; rdesc 252 drivers/spi/spi-pic32-sqi.c static void ring_desc_put(struct pic32_sqi *sqi, struct ring_desc *rdesc) rdesc 254 drivers/spi/spi-pic32-sqi.c list_move(&rdesc->list, &sqi->bd_list_free); rdesc 263 drivers/spi/spi-pic32-sqi.c struct ring_desc *rdesc; rdesc 298 drivers/spi/spi-pic32-sqi.c rdesc = ring_desc_get(sqi); rdesc 299 drivers/spi/spi-pic32-sqi.c if (!rdesc) rdesc 302 drivers/spi/spi-pic32-sqi.c bd = rdesc->bd; rdesc 305 drivers/spi/spi-pic32-sqi.c rdesc->xfer_len = sg_dma_len(sg); rdesc 307 drivers/spi/spi-pic32-sqi.c bd->bd_ctrl |= rdesc->xfer_len; rdesc 343 drivers/spi/spi-pic32-sqi.c struct ring_desc *rdesc, *next; rdesc 397 drivers/spi/spi-pic32-sqi.c rdesc = list_last_entry(&sqi->bd_list_used, struct ring_desc, list); rdesc 398 drivers/spi/spi-pic32-sqi.c rdesc->bd->bd_ctrl |= BD_LAST | BD_CS_DEASSERT | rdesc 402 drivers/spi/spi-pic32-sqi.c rdesc = list_first_entry(&sqi->bd_list_used, struct ring_desc, list); rdesc 403 drivers/spi/spi-pic32-sqi.c writel(rdesc->bd_dma, sqi->regs + PESQI_BD_BASE_ADDR_REG); rdesc 430 drivers/spi/spi-pic32-sqi.c list_for_each_entry_safe_reverse(rdesc, next, rdesc 433 drivers/spi/spi-pic32-sqi.c msg->actual_length += rdesc->xfer_len; rdesc 435 drivers/spi/spi-pic32-sqi.c ring_desc_put(sqi, rdesc); rdesc 456 drivers/spi/spi-pic32-sqi.c struct ring_desc *rdesc; rdesc 470 drivers/spi/spi-pic32-sqi.c sqi->ring = kcalloc(PESQI_BD_COUNT, sizeof(*rdesc), GFP_KERNEL); rdesc 484 drivers/spi/spi-pic32-sqi.c for (i = 0, rdesc = sqi->ring; i < PESQI_BD_COUNT; i++, rdesc++) { rdesc 485 drivers/spi/spi-pic32-sqi.c INIT_LIST_HEAD(&rdesc->list); rdesc 486 drivers/spi/spi-pic32-sqi.c rdesc->bd = &bd[i]; rdesc 487 drivers/spi/spi-pic32-sqi.c rdesc->bd_dma = sqi->bd_dma + (void *)&bd[i] - (void *)bd; rdesc 488 drivers/spi/spi-pic32-sqi.c list_add_tail(&rdesc->list, &sqi->bd_list_free); rdesc 492 drivers/spi/spi-pic32-sqi.c for (i = 0, rdesc = sqi->ring; i < PESQI_BD_COUNT - 1; i++) rdesc 493 drivers/spi/spi-pic32-sqi.c bd[i].bd_nextp = rdesc[i + 1].bd_dma; rdesc 42 drivers/staging/greybus/hid.c static int gb_hid_get_report_desc(struct gb_hid *ghid, char *rdesc) rdesc 51 drivers/staging/greybus/hid.c NULL, 0, rdesc, rdesc 283 drivers/staging/greybus/hid.c char *rdesc; rdesc 292 drivers/staging/greybus/hid.c rdesc = kzalloc(rsize, GFP_KERNEL); rdesc 293 drivers/staging/greybus/hid.c if (!rdesc) { rdesc 297 drivers/staging/greybus/hid.c ret = gb_hid_get_report_desc(ghid, rdesc); rdesc 303 drivers/staging/greybus/hid.c ret = hid_parse_report(hid, rdesc, rsize); rdesc 308 drivers/staging/greybus/hid.c kfree(rdesc); rdesc 548 include/linux/hid.h __u8 *rdesc; rdesc 338 include/linux/mtd/spinand.h struct spi_mem_dirmap_desc *rdesc; rdesc 112 samples/uhid/uhid-example.c static unsigned char rdesc[] = { rdesc 183 samples/uhid/uhid-example.c ev.u.create.rd_data = rdesc; rdesc 184 samples/uhid/uhid-example.c ev.u.create.rd_size = sizeof(rdesc);