Searched refs:num_zones (Results 1 – 7 of 7) sorted by relevance
/openbmc/linux/drivers/platform/x86/dell/ |
H A D | alienware-wmi.c | 53 u8 num_zones; member 63 .num_zones = 2, 70 .num_zones = 2, 77 .num_zones = 3, 84 .num_zones = 4, 91 .num_zones = 2, 98 .num_zones = 2, 105 .num_zones = 2, 267 for (zone = 0; zone < quirks->num_zones; zone++) { in match_zone() 468 for (zone = 0; zone < quirks->num_zones; zone++) { in alienware_zone_init() [all …]
|
/openbmc/linux/drivers/powercap/ |
H A D | arm_scmi_powercap.c | 35 unsigned int num_zones; member 267 for (i = pr->num_zones - 1; i >= 0; i--) { in scmi_powercap_unregister_all_zones() 373 zones_stack = kcalloc(pr->num_zones, sizeof(spz), GFP_KERNEL); in scmi_zones_register() 444 pr->num_zones = ret; in scmi_powercap_probe() 446 pr->spzones = devm_kcalloc(dev, pr->num_zones, in scmi_powercap_probe() 452 pr->registered_zones = devm_kcalloc(dev, pr->num_zones, in scmi_powercap_probe() 460 for (i = 0, spz = pr->spzones; i < pr->num_zones; i++, spz++) { in scmi_powercap_probe()
|
/openbmc/linux/drivers/thermal/tegra/ |
H A D | tegra-bpmp-thermal.c | 29 unsigned int num_zones; member 127 for (i = 0; i < tegra->num_zones; ++i) { in bpmp_mrq_thermal() 142 int *num_zones) in tegra_bpmp_thermal_get_num_zones() argument 165 *num_zones = reply.get_num_zones.num; in tegra_bpmp_thermal_get_num_zones() 287 tegra->zones[tegra->num_zones++] = zone; in tegra_bpmp_thermal_probe()
|
/openbmc/linux/drivers/usb/storage/ |
H A D | alauda.c | 290 unsigned int num_zones = media_info->capacity >> shift; in alauda_free_maps() local 294 for (i = 0; i < num_zones; i++) { in alauda_free_maps() 300 for (i = 0; i < num_zones; i++) { in alauda_free_maps() 387 unsigned int num_zones; in alauda_init_media() local 440 num_zones = MEDIA_INFO(us).capacity >> (MEDIA_INFO(us).zoneshift in alauda_init_media() 442 MEDIA_INFO(us).pba_to_lba = kcalloc(num_zones, sizeof(u16*), GFP_NOIO); in alauda_init_media() 443 MEDIA_INFO(us).lba_to_pba = kcalloc(num_zones, sizeof(u16*), GFP_NOIO); in alauda_init_media() 1152 unsigned int num_zones; in alauda_transport() local 1159 num_zones = MEDIA_INFO(us).capacity >> (MEDIA_INFO(us).zoneshift in alauda_transport() 1162 capacity = num_zones * MEDIA_INFO(us).uzonesize in alauda_transport()
|
/openbmc/qemu/hw/nvme/ |
H A D | ns.c | 216 ns->num_zones = le64_to_cpu(ns->id_ns.nsze) / ns->zone_size; in nvme_ns_zoned_check_calc_geometry() 219 if (!ns->num_zones) { in nvme_ns_zoned_check_calc_geometry() 232 uint64_t capacity = ns->num_zones * zone_size; in nvme_ns_zoned_init_state() 236 ns->zone_array = g_new0(NvmeZone, ns->num_zones); in nvme_ns_zoned_init_state() 239 ns->num_zones); in nvme_ns_zoned_init_state() 248 for (i = 0; i < ns->num_zones; i++, zone++) { in nvme_ns_zoned_init_state() 292 ns->params.numzrwa : ns->num_zones; in nvme_ns_init_zoned() 308 ns->id_ns.nsze = cpu_to_le64(ns->num_zones * ns->zone_size); in nvme_ns_init_zoned()
|
H A D | nvme.h | 254 uint32_t num_zones; member
|
H A D | ctrl.c | 1799 if (zone_idx >= ns->num_zones) { in nvme_get_zone_by_slba() 3863 assert(*zone_idx < ns->num_zones); in nvme_get_mgmt_zone_slba_idx() 4028 for (i = 0; i < ns->num_zones; i++, zone++) { in nvme_do_zone_op() 4059 iocb->idx = ns->num_zones; in nvme_zone_reset_cancel() 4121 while (iocb->idx < ns->num_zones) { in nvme_zone_reset_cb() 4407 for (i = zone_idx; i < ns->num_zones; i++) { in nvme_zone_mgmt_recv() 4419 for (; zone_idx < ns->num_zones && max_zones > 0; zone_idx++) { in nvme_zone_mgmt_recv()
|