Lines Matching refs:extent

2435 	sli4_req_common_get_resource_extent_info_t *extent = NULL;  in sli_cmd_common_get_resource_extent_info()  local
2444 extent = (sli4_req_common_get_resource_extent_info_t *)((uint8_t *)buf + sli_config_off); in sli_cmd_common_get_resource_extent_info()
2446 extent->hdr.opcode = SLI4_OPC_COMMON_GET_RESOURCE_EXTENT_INFO; in sli_cmd_common_get_resource_extent_info()
2447 extent->hdr.subsystem = SLI4_SUBSYSTEM_COMMON; in sli_cmd_common_get_resource_extent_info()
2448 extent->hdr.request_length = 4; in sli_cmd_common_get_resource_extent_info()
2450 extent->resource_type = rtype; in sli_cmd_common_get_resource_extent_info()
3718 uint32_t *base = sli4->config.extent[0].base; in sli_get_config()
3729 sli4->config.extent[i].number = 1; in sli_get_config()
3730 sli4->config.extent[i].n_alloc = 0; in sli_get_config()
3731 sli4->config.extent[i].base = &base[i]; in sli_get_config()
3734 sli4->config.extent[SLI_RSRC_FCOE_VFI].base[0] = read_config->vfi_base; in sli_get_config()
3735 sli4->config.extent[SLI_RSRC_FCOE_VFI].size = read_config->vfi_count; in sli_get_config()
3737 sli4->config.extent[SLI_RSRC_FCOE_VPI].base[0] = read_config->vpi_base; in sli_get_config()
3738 sli4->config.extent[SLI_RSRC_FCOE_VPI].size = read_config->vpi_count; in sli_get_config()
3740 sli4->config.extent[SLI_RSRC_FCOE_RPI].base[0] = read_config->rpi_base; in sli_get_config()
3741 sli4->config.extent[SLI_RSRC_FCOE_RPI].size = read_config->rpi_count; in sli_get_config()
3743 sli4->config.extent[SLI_RSRC_FCOE_XRI].base[0] = read_config->xri_base; in sli_get_config()
3744 sli4->config.extent[SLI_RSRC_FCOE_XRI].size = OCS_MIN(255,read_config->xri_count); in sli_get_config()
3746 sli4->config.extent[SLI_RSRC_FCOE_FCFI].base[0] = 0; in sli_get_config()
3747 sli4->config.extent[SLI_RSRC_FCOE_FCFI].size = read_config->fcfi_count; in sli_get_config()
3754 total = sli4->config.extent[i].number * sli4->config.extent[i].size; in sli_get_config()
3755 sli4->config.extent[i].use_map = ocs_bitmap_alloc(total); in sli_get_config()
3756 if (NULL == sli4->config.extent[i].use_map) { in sli_get_config()
3761 sli4->config.extent[i].map_size = total; in sli_get_config()
4248 if (sli4->config.extent[0].base) { in sli_reset()
4249 ocs_free(sli4->os, sli4->config.extent[0].base, SLI_RSRC_MAX * sizeof(uint32_t)); in sli_reset()
4250 sli4->config.extent[0].base = NULL; in sli_reset()
4254 if (sli4->config.extent[i].use_map) { in sli_reset()
4255 ocs_bitmap_free(sli4->config.extent[i].use_map); in sli_reset()
4256 sli4->config.extent[i].use_map = NULL; in sli_reset()
4258 sli4->config.extent[i].base = NULL; in sli_reset()
4339 if (sli4->config.extent[0].base) { in sli_teardown()
4340 ocs_free(sli4->os, sli4->config.extent[0].base, SLI_RSRC_MAX * sizeof(uint32_t)); in sli_teardown()
4341 sli4->config.extent[0].base = NULL; in sli_teardown()
4349 sli4->config.extent[i].base = NULL; in sli_teardown()
4351 ocs_bitmap_free(sli4->config.extent[i].use_map); in sli_teardown()
4352 sli4->config.extent[i].use_map = NULL; in sli_teardown()
5418 status = ocs_bitmap_find(sli4->config.extent[rtype].use_map, in sli_resource_alloc()
5419 sli4->config.extent[rtype].map_size); in sli_resource_alloc()
5422 rtype, sli4->config.extent[rtype].n_alloc); in sli_resource_alloc()
5429 size = sli4->config.extent[rtype].size; in sli_resource_alloc()
5434 *rid = sli4->config.extent[rtype].base[extent_idx] + item_idx; in sli_resource_alloc()
5436 sli4->config.extent[rtype].n_alloc++; in sli_resource_alloc()
5476 base = sli4->config.extent[rtype].base; in sli_resource_free()
5477 size = sli4->config.extent[rtype].size; in sli_resource_free()
5484 for (x = 0; x < sli4->config.extent[rtype].number; x++) { in sli_resource_free()
5487 ocs_bitmap_clear(sli4->config.extent[rtype].use_map, in sli_resource_free()
5513 for (i = 0; i < sli4->config.extent[rtype].map_size; i++) { in sli_resource_reset()
5514 ocs_bitmap_clear(sli4->config.extent[rtype].use_map, i); in sli_resource_reset()
6471 rpi = sli4->config.extent[SLI_RSRC_FCOE_RPI].base[0]; in sli_cmd_fcoe_post_hdr_templates()