Lines Matching refs:bar_len
435 resource_size_t *bar_start, resource_size_t *bar_len) in dfx_get_bars() argument
446 bar_len[0] = pci_resource_len(to_pci_dev(bdev), num); in dfx_get_bars()
448 bar_len[2] = bar_len[1] = 0; in dfx_get_bars()
469 bar_len[0] = ((bar_hi - bar_lo) | PI_MEM_ADD_MASK_M) + in dfx_get_bars()
473 bar_len[0] = PI_ESIC_K_CSR_IO_LEN; in dfx_get_bars()
476 bar_len[1] = PI_ESIC_K_BURST_HOLDOFF_LEN; in dfx_get_bars()
478 bar_len[2] = PI_ESIC_K_ESIC_CSR_LEN; in dfx_get_bars()
483 bar_len[0] = PI_TC_K_CSR_LEN; in dfx_get_bars()
485 bar_len[2] = bar_len[1] = 0; in dfx_get_bars()
537 resource_size_t bar_len[3] = {0}; /* resource length */ in dfx_register() local
570 dfx_get_bars(bdev, bar_start, bar_len); in dfx_register()
583 region = request_mem_region(bar_start[0], bar_len[0], in dfx_register()
586 region = request_region(bar_start[0], bar_len[0], print_name); in dfx_register()
590 (long)bar_len[0], (long)bar_start[0]); in dfx_register()
595 region = request_region(bar_start[1], bar_len[1], print_name); in dfx_register()
599 (long)bar_len[1], (long)bar_start[1]); in dfx_register()
605 region = request_region(bar_start[2], bar_len[2], print_name); in dfx_register()
609 (long)bar_len[2], (long)bar_start[2]); in dfx_register()
617 bp->base.mem = ioremap(bar_start[0], bar_len[0]); in dfx_register()
664 release_region(bar_start[2], bar_len[2]); in dfx_register()
668 release_region(bar_start[1], bar_len[1]); in dfx_register()
672 release_mem_region(bar_start[0], bar_len[0]); in dfx_register()
674 release_region(bar_start[0], bar_len[0]); in dfx_register()
3701 resource_size_t bar_len[3] = {0}; /* resource lengths */ in dfx_unregister() local
3719 dfx_get_bars(bdev, bar_start, bar_len); in dfx_unregister()
3721 release_region(bar_start[2], bar_len[2]); in dfx_unregister()
3723 release_region(bar_start[1], bar_len[1]); in dfx_unregister()
3726 release_mem_region(bar_start[0], bar_len[0]); in dfx_unregister()
3728 release_region(bar_start[0], bar_len[0]); in dfx_unregister()