Lines Matching refs:dcr

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