Lines Matching refs:dcr
198 struct nfit_test_dcr **dcr;
1927 t->dcr[i] = test_alloc(t, LABEL_SIZE, &t->dcr_dma[i]);
1928 if (!t->dcr[i])
1977 static void dcr_common_init(struct acpi_nfit_control_region *dcr)
1979 dcr->vendor_id = 0xabcd;
1980 dcr->device_id = 0;
1981 dcr->revision_id = 1;
1982 dcr->valid_fields = 1;
1983 dcr->manufacturing_location = 0xa;
1984 dcr->manufacturing_date = cpu_to_be16(2016);
1995 struct acpi_nfit_control_region *dcr;
2338 /* dcr-descriptor0: blk */
2339 dcr = nfit_buf + offset;
2340 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2341 dcr->header.length = sizeof(*dcr);
2342 dcr->region_index = 0+1;
2343 dcr_common_init(dcr);
2344 dcr->serial_number = ~handle[0];
2345 dcr->code = NFIT_FIC_BLK;
2346 dcr->windows = 1;
2347 dcr->window_size = DCR_SIZE;
2348 dcr->command_offset = 0;
2349 dcr->command_size = 8;
2350 dcr->status_offset = 8;
2351 dcr->status_size = 4;
2352 offset += dcr->header.length;
2354 /* dcr-descriptor1: blk */
2355 dcr = nfit_buf + offset;
2356 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2357 dcr->header.length = sizeof(*dcr);
2358 dcr->region_index = 1+1;
2359 dcr_common_init(dcr);
2360 dcr->serial_number = ~handle[1];
2361 dcr->code = NFIT_FIC_BLK;
2362 dcr->windows = 1;
2363 dcr->window_size = DCR_SIZE;
2364 dcr->command_offset = 0;
2365 dcr->command_size = 8;
2366 dcr->status_offset = 8;
2367 dcr->status_size = 4;
2368 offset += dcr->header.length;
2370 /* dcr-descriptor2: blk */
2371 dcr = nfit_buf + offset;
2372 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2373 dcr->header.length = sizeof(*dcr);
2374 dcr->region_index = 2+1;
2375 dcr_common_init(dcr);
2376 dcr->serial_number = ~handle[2];
2377 dcr->code = NFIT_FIC_BLK;
2378 dcr->windows = 1;
2379 dcr->window_size = DCR_SIZE;
2380 dcr->command_offset = 0;
2381 dcr->command_size = 8;
2382 dcr->status_offset = 8;
2383 dcr->status_size = 4;
2384 offset += dcr->header.length;
2386 /* dcr-descriptor3: blk */
2387 dcr = nfit_buf + offset;
2388 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2389 dcr->header.length = sizeof(*dcr);
2390 dcr->region_index = 3+1;
2391 dcr_common_init(dcr);
2392 dcr->serial_number = ~handle[3];
2393 dcr->code = NFIT_FIC_BLK;
2394 dcr->windows = 1;
2395 dcr->window_size = DCR_SIZE;
2396 dcr->command_offset = 0;
2397 dcr->command_size = 8;
2398 dcr->status_offset = 8;
2399 dcr->status_size = 4;
2400 offset += dcr->header.length;
2402 /* dcr-descriptor0: pmem */
2403 dcr = nfit_buf + offset;
2404 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2405 dcr->header.length = offsetof(struct acpi_nfit_control_region,
2407 dcr->region_index = 4+1;
2408 dcr_common_init(dcr);
2409 dcr->serial_number = ~handle[0];
2410 dcr->code = NFIT_FIC_BYTEN;
2411 dcr->windows = 0;
2412 offset += dcr->header.length;
2414 /* dcr-descriptor1: pmem */
2415 dcr = nfit_buf + offset;
2416 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2417 dcr->header.length = offsetof(struct acpi_nfit_control_region,
2419 dcr->region_index = 5+1;
2420 dcr_common_init(dcr);
2421 dcr->serial_number = ~handle[1];
2422 dcr->code = NFIT_FIC_BYTEN;
2423 dcr->windows = 0;
2424 offset += dcr->header.length;
2426 /* dcr-descriptor2: pmem */
2427 dcr = nfit_buf + offset;
2428 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2429 dcr->header.length = offsetof(struct acpi_nfit_control_region,
2431 dcr->region_index = 6+1;
2432 dcr_common_init(dcr);
2433 dcr->serial_number = ~handle[2];
2434 dcr->code = NFIT_FIC_BYTEN;
2435 dcr->windows = 0;
2436 offset += dcr->header.length;
2438 /* dcr-descriptor3: pmem */
2439 dcr = nfit_buf + offset;
2440 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2441 dcr->header.length = offsetof(struct acpi_nfit_control_region,
2443 dcr->region_index = 7+1;
2444 dcr_common_init(dcr);
2445 dcr->serial_number = ~handle[3];
2446 dcr->code = NFIT_FIC_BYTEN;
2447 dcr->windows = 0;
2448 offset += dcr->header.length;
2547 /* dcr-descriptor4: blk */
2548 dcr = nfit_buf + offset;
2549 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2550 dcr->header.length = sizeof(*dcr);
2551 dcr->region_index = 8+1;
2552 dcr_common_init(dcr);
2553 dcr->serial_number = ~handle[4];
2554 dcr->code = NFIT_FIC_BLK;
2555 dcr->windows = 1;
2556 dcr->window_size = DCR_SIZE;
2557 dcr->command_offset = 0;
2558 dcr->command_size = 8;
2559 dcr->status_offset = 8;
2560 dcr->status_size = 4;
2561 offset += dcr->header.length;
2563 /* dcr-descriptor4: pmem */
2564 dcr = nfit_buf + offset;
2565 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2566 dcr->header.length = offsetof(struct acpi_nfit_control_region,
2568 dcr->region_index = 9+1;
2569 dcr_common_init(dcr);
2570 dcr->serial_number = ~handle[4];
2571 dcr->code = NFIT_FIC_BYTEN;
2572 dcr->windows = 0;
2573 offset += dcr->header.length;
2740 struct acpi_nfit_control_region *dcr;
2784 /* dcr-descriptor0 */
2785 dcr = nfit_buf + offset;
2786 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2787 dcr->header.length = offsetof(struct acpi_nfit_control_region,
2789 dcr->region_index = 0+1;
2790 dcr_common_init(dcr);
2791 dcr->serial_number = ~handle[5];
2792 dcr->code = NFIT_FIC_BYTE;
2793 dcr->windows = 0;
2794 offset += dcr->header.length;
2812 /* dcr-descriptor1 */
2813 dcr = nfit_buf + offset;
2814 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2815 dcr->header.length = offsetof(struct acpi_nfit_control_region,
2817 dcr->region_index = 0+2;
2818 dcr_common_init(dcr);
2819 dcr->serial_number = ~handle[6];
2820 dcr->code = NFIT_FIC_BYTE;
2821 dcr->windows = 0;
2822 offset += dcr->header.length;
3157 nfit_test->dcr = devm_kcalloc(dev, num,
3169 && nfit_test->label_dma && nfit_test->dcr