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