Lines Matching refs:dcr

201 	struct nfit_test_dcr **dcr;
1923 t->dcr[i] = test_alloc(t, LABEL_SIZE, &t->dcr_dma[i]);
1924 if (!t->dcr[i])
1972 static void dcr_common_init(struct acpi_nfit_control_region *dcr)
1974 dcr->vendor_id = 0xabcd;
1975 dcr->device_id = 0;
1976 dcr->revision_id = 1;
1977 dcr->valid_fields = 1;
1978 dcr->manufacturing_location = 0xa;
1979 dcr->manufacturing_date = cpu_to_be16(2016);
1990 struct acpi_nfit_control_region *dcr;
2333 /* dcr-descriptor0: blk */
2334 dcr = nfit_buf + offset;
2335 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2336 dcr->header.length = sizeof(*dcr);
2337 dcr->region_index = 0+1;
2338 dcr_common_init(dcr);
2339 dcr->serial_number = ~handle[0];
2340 dcr->code = NFIT_FIC_BLK;
2341 dcr->windows = 1;
2342 dcr->window_size = DCR_SIZE;
2343 dcr->command_offset = 0;
2344 dcr->command_size = 8;
2345 dcr->status_offset = 8;
2346 dcr->status_size = 4;
2347 offset += dcr->header.length;
2349 /* dcr-descriptor1: blk */
2350 dcr = nfit_buf + offset;
2351 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2352 dcr->header.length = sizeof(*dcr);
2353 dcr->region_index = 1+1;
2354 dcr_common_init(dcr);
2355 dcr->serial_number = ~handle[1];
2356 dcr->code = NFIT_FIC_BLK;
2357 dcr->windows = 1;
2358 dcr->window_size = DCR_SIZE;
2359 dcr->command_offset = 0;
2360 dcr->command_size = 8;
2361 dcr->status_offset = 8;
2362 dcr->status_size = 4;
2363 offset += dcr->header.length;
2365 /* dcr-descriptor2: blk */
2366 dcr = nfit_buf + offset;
2367 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2368 dcr->header.length = sizeof(*dcr);
2369 dcr->region_index = 2+1;
2370 dcr_common_init(dcr);
2371 dcr->serial_number = ~handle[2];
2372 dcr->code = NFIT_FIC_BLK;
2373 dcr->windows = 1;
2374 dcr->window_size = DCR_SIZE;
2375 dcr->command_offset = 0;
2376 dcr->command_size = 8;
2377 dcr->status_offset = 8;
2378 dcr->status_size = 4;
2379 offset += dcr->header.length;
2381 /* dcr-descriptor3: blk */
2382 dcr = nfit_buf + offset;
2383 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2384 dcr->header.length = sizeof(*dcr);
2385 dcr->region_index = 3+1;
2386 dcr_common_init(dcr);
2387 dcr->serial_number = ~handle[3];
2388 dcr->code = NFIT_FIC_BLK;
2389 dcr->windows = 1;
2390 dcr->window_size = DCR_SIZE;
2391 dcr->command_offset = 0;
2392 dcr->command_size = 8;
2393 dcr->status_offset = 8;
2394 dcr->status_size = 4;
2395 offset += dcr->header.length;
2397 /* dcr-descriptor0: pmem */
2398 dcr = nfit_buf + offset;
2399 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2400 dcr->header.length = offsetof(struct acpi_nfit_control_region,
2402 dcr->region_index = 4+1;
2403 dcr_common_init(dcr);
2404 dcr->serial_number = ~handle[0];
2405 dcr->code = NFIT_FIC_BYTEN;
2406 dcr->windows = 0;
2407 offset += dcr->header.length;
2409 /* dcr-descriptor1: pmem */
2410 dcr = nfit_buf + offset;
2411 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2412 dcr->header.length = offsetof(struct acpi_nfit_control_region,
2414 dcr->region_index = 5+1;
2415 dcr_common_init(dcr);
2416 dcr->serial_number = ~handle[1];
2417 dcr->code = NFIT_FIC_BYTEN;
2418 dcr->windows = 0;
2419 offset += dcr->header.length;
2421 /* dcr-descriptor2: pmem */
2422 dcr = nfit_buf + offset;
2423 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2424 dcr->header.length = offsetof(struct acpi_nfit_control_region,
2426 dcr->region_index = 6+1;
2427 dcr_common_init(dcr);
2428 dcr->serial_number = ~handle[2];
2429 dcr->code = NFIT_FIC_BYTEN;
2430 dcr->windows = 0;
2431 offset += dcr->header.length;
2433 /* dcr-descriptor3: pmem */
2434 dcr = nfit_buf + offset;
2435 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2436 dcr->header.length = offsetof(struct acpi_nfit_control_region,
2438 dcr->region_index = 7+1;
2439 dcr_common_init(dcr);
2440 dcr->serial_number = ~handle[3];
2441 dcr->code = NFIT_FIC_BYTEN;
2442 dcr->windows = 0;
2443 offset += dcr->header.length;
2542 /* dcr-descriptor4: blk */
2543 dcr = nfit_buf + offset;
2544 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2545 dcr->header.length = sizeof(*dcr);
2546 dcr->region_index = 8+1;
2547 dcr_common_init(dcr);
2548 dcr->serial_number = ~handle[4];
2549 dcr->code = NFIT_FIC_BLK;
2550 dcr->windows = 1;
2551 dcr->window_size = DCR_SIZE;
2552 dcr->command_offset = 0;
2553 dcr->command_size = 8;
2554 dcr->status_offset = 8;
2555 dcr->status_size = 4;
2556 offset += dcr->header.length;
2558 /* dcr-descriptor4: pmem */
2559 dcr = nfit_buf + offset;
2560 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2561 dcr->header.length = offsetof(struct acpi_nfit_control_region,
2563 dcr->region_index = 9+1;
2564 dcr_common_init(dcr);
2565 dcr->serial_number = ~handle[4];
2566 dcr->code = NFIT_FIC_BYTEN;
2567 dcr->windows = 0;
2568 offset += dcr->header.length;
2735 struct acpi_nfit_control_region *dcr;
2779 /* dcr-descriptor0 */
2780 dcr = nfit_buf + offset;
2781 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2782 dcr->header.length = offsetof(struct acpi_nfit_control_region,
2784 dcr->region_index = 0+1;
2785 dcr_common_init(dcr);
2786 dcr->serial_number = ~handle[5];
2787 dcr->code = NFIT_FIC_BYTE;
2788 dcr->windows = 0;
2789 offset += dcr->header.length;
2807 /* dcr-descriptor1 */
2808 dcr = nfit_buf + offset;
2809 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2810 dcr->header.length = offsetof(struct acpi_nfit_control_region,
2812 dcr->region_index = 0+2;
2813 dcr_common_init(dcr);
2814 dcr->serial_number = ~handle[6];
2815 dcr->code = NFIT_FIC_BYTE;
2816 dcr->windows = 0;
2817 offset += dcr->header.length;
3174 nfit_test->dcr = devm_kcalloc(dev, num,
3186 && nfit_test->label_dma && nfit_test->dcr