Lines Matching refs:dcr

198 	struct nfit_test_dcr **dcr;
1929 t->dcr[i] = test_alloc(t, LABEL_SIZE, &t->dcr_dma[i]);
1930 if (!t->dcr[i])
1979 static void dcr_common_init(struct acpi_nfit_control_region *dcr)
1981 dcr->vendor_id = 0xabcd;
1982 dcr->device_id = 0;
1983 dcr->revision_id = 1;
1984 dcr->valid_fields = 1;
1985 dcr->manufacturing_location = 0xa;
1986 dcr->manufacturing_date = cpu_to_be16(2016);
1997 struct acpi_nfit_control_region *dcr;
2340 /* dcr-descriptor0: blk */
2341 dcr = nfit_buf + offset;
2342 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2343 dcr->header.length = sizeof(*dcr);
2344 dcr->region_index = 0+1;
2345 dcr_common_init(dcr);
2346 dcr->serial_number = ~handle[0];
2347 dcr->code = NFIT_FIC_BLK;
2348 dcr->windows = 1;
2349 dcr->window_size = DCR_SIZE;
2350 dcr->command_offset = 0;
2351 dcr->command_size = 8;
2352 dcr->status_offset = 8;
2353 dcr->status_size = 4;
2354 offset += dcr->header.length;
2356 /* dcr-descriptor1: blk */
2357 dcr = nfit_buf + offset;
2358 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2359 dcr->header.length = sizeof(*dcr);
2360 dcr->region_index = 1+1;
2361 dcr_common_init(dcr);
2362 dcr->serial_number = ~handle[1];
2363 dcr->code = NFIT_FIC_BLK;
2364 dcr->windows = 1;
2365 dcr->window_size = DCR_SIZE;
2366 dcr->command_offset = 0;
2367 dcr->command_size = 8;
2368 dcr->status_offset = 8;
2369 dcr->status_size = 4;
2370 offset += dcr->header.length;
2372 /* dcr-descriptor2: blk */
2373 dcr = nfit_buf + offset;
2374 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2375 dcr->header.length = sizeof(*dcr);
2376 dcr->region_index = 2+1;
2377 dcr_common_init(dcr);
2378 dcr->serial_number = ~handle[2];
2379 dcr->code = NFIT_FIC_BLK;
2380 dcr->windows = 1;
2381 dcr->window_size = DCR_SIZE;
2382 dcr->command_offset = 0;
2383 dcr->command_size = 8;
2384 dcr->status_offset = 8;
2385 dcr->status_size = 4;
2386 offset += dcr->header.length;
2388 /* dcr-descriptor3: blk */
2389 dcr = nfit_buf + offset;
2390 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2391 dcr->header.length = sizeof(*dcr);
2392 dcr->region_index = 3+1;
2393 dcr_common_init(dcr);
2394 dcr->serial_number = ~handle[3];
2395 dcr->code = NFIT_FIC_BLK;
2396 dcr->windows = 1;
2397 dcr->window_size = DCR_SIZE;
2398 dcr->command_offset = 0;
2399 dcr->command_size = 8;
2400 dcr->status_offset = 8;
2401 dcr->status_size = 4;
2402 offset += dcr->header.length;
2404 /* dcr-descriptor0: pmem */
2405 dcr = nfit_buf + offset;
2406 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2407 dcr->header.length = offsetof(struct acpi_nfit_control_region,
2409 dcr->region_index = 4+1;
2410 dcr_common_init(dcr);
2411 dcr->serial_number = ~handle[0];
2412 dcr->code = NFIT_FIC_BYTEN;
2413 dcr->windows = 0;
2414 offset += dcr->header.length;
2416 /* dcr-descriptor1: pmem */
2417 dcr = nfit_buf + offset;
2418 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2419 dcr->header.length = offsetof(struct acpi_nfit_control_region,
2421 dcr->region_index = 5+1;
2422 dcr_common_init(dcr);
2423 dcr->serial_number = ~handle[1];
2424 dcr->code = NFIT_FIC_BYTEN;
2425 dcr->windows = 0;
2426 offset += dcr->header.length;
2428 /* dcr-descriptor2: pmem */
2429 dcr = nfit_buf + offset;
2430 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2431 dcr->header.length = offsetof(struct acpi_nfit_control_region,
2433 dcr->region_index = 6+1;
2434 dcr_common_init(dcr);
2435 dcr->serial_number = ~handle[2];
2436 dcr->code = NFIT_FIC_BYTEN;
2437 dcr->windows = 0;
2438 offset += dcr->header.length;
2440 /* dcr-descriptor3: pmem */
2441 dcr = nfit_buf + offset;
2442 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2443 dcr->header.length = offsetof(struct acpi_nfit_control_region,
2445 dcr->region_index = 7+1;
2446 dcr_common_init(dcr);
2447 dcr->serial_number = ~handle[3];
2448 dcr->code = NFIT_FIC_BYTEN;
2449 dcr->windows = 0;
2450 offset += dcr->header.length;
2549 /* dcr-descriptor4: blk */
2550 dcr = nfit_buf + offset;
2551 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2552 dcr->header.length = sizeof(*dcr);
2553 dcr->region_index = 8+1;
2554 dcr_common_init(dcr);
2555 dcr->serial_number = ~handle[4];
2556 dcr->code = NFIT_FIC_BLK;
2557 dcr->windows = 1;
2558 dcr->window_size = DCR_SIZE;
2559 dcr->command_offset = 0;
2560 dcr->command_size = 8;
2561 dcr->status_offset = 8;
2562 dcr->status_size = 4;
2563 offset += dcr->header.length;
2565 /* dcr-descriptor4: pmem */
2566 dcr = nfit_buf + offset;
2567 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2568 dcr->header.length = offsetof(struct acpi_nfit_control_region,
2570 dcr->region_index = 9+1;
2571 dcr_common_init(dcr);
2572 dcr->serial_number = ~handle[4];
2573 dcr->code = NFIT_FIC_BYTEN;
2574 dcr->windows = 0;
2575 offset += dcr->header.length;
2742 struct acpi_nfit_control_region *dcr;
2786 /* dcr-descriptor0 */
2787 dcr = nfit_buf + offset;
2788 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2789 dcr->header.length = offsetof(struct acpi_nfit_control_region,
2791 dcr->region_index = 0+1;
2792 dcr_common_init(dcr);
2793 dcr->serial_number = ~handle[5];
2794 dcr->code = NFIT_FIC_BYTE;
2795 dcr->windows = 0;
2796 offset += dcr->header.length;
2814 /* dcr-descriptor1 */
2815 dcr = nfit_buf + offset;
2816 dcr->header.type = ACPI_NFIT_TYPE_CONTROL_REGION;
2817 dcr->header.length = offsetof(struct acpi_nfit_control_region,
2819 dcr->region_index = 0+2;
2820 dcr_common_init(dcr);
2821 dcr->serial_number = ~handle[6];
2822 dcr->code = NFIT_FIC_BYTE;
2823 dcr->windows = 0;
2824 offset += dcr->header.length;
3159 nfit_test->dcr = devm_kcalloc(dev, num,
3171 && nfit_test->label_dma && nfit_test->dcr