/kernel/linux/linux-5.10/sound/firewire/ |
H A D | iso-resources.c | 31 r->allocated = false; in fw_iso_resources_init() 43 WARN_ON(r->allocated); in fw_iso_resources_destroy() 111 if (WARN_ON(r->allocated)) in fw_iso_resources_allocate() 137 r->allocated = true; in fw_iso_resources_allocate() 158 * any resources that were allocated before the bus reset. It is safe to call 159 * this function if no resources are currently allocated. 171 if (!r->allocated) { in fw_iso_resources_update() 190 r->allocated = false; in fw_iso_resources_update() 206 * fw_iso_resources_free - frees allocated resources 209 * This function deallocates the channel and bandwidth, if allocated [all...] |
/kernel/linux/linux-6.6/sound/firewire/ |
H A D | iso-resources.c | 31 r->allocated = false; in fw_iso_resources_init() 43 WARN_ON(r->allocated); in fw_iso_resources_destroy() 111 if (WARN_ON(r->allocated)) in fw_iso_resources_allocate() 137 r->allocated = true; in fw_iso_resources_allocate() 158 * any resources that were allocated before the bus reset. It is safe to call 159 * this function if no resources are currently allocated. 171 if (!r->allocated) { in fw_iso_resources_update() 190 r->allocated = false; in fw_iso_resources_update() 206 * fw_iso_resources_free - frees allocated resources 209 * This function deallocates the channel and bandwidth, if allocated [all...] |
/kernel/linux/linux-5.10/kernel/irq/ |
H A D | matrix.c | 15 unsigned int allocated; member 149 /* Find the best CPU which has the lowest number of managed IRQs allocated */ 153 unsigned int cpu, best_cpu, allocated = UINT_MAX; in matrix_find_best_cpu_managed() local 161 if (!cm->online || cm->managed_allocated > allocated) in matrix_find_best_cpu_managed() 165 allocated = cm->managed_allocated; in matrix_find_best_cpu_managed() 174 * @replace: Replace an already allocated vector with a system 192 cm->allocated--; in irq_matrix_assign_system() 246 * This removes not allocated managed interrupts from the map. It does 262 /* Get managed bit which are not allocated */ in irq_matrix_remove_managed() 283 * @cpu: On which CPU the interrupt should be allocated [all...] |
/kernel/linux/linux-6.6/kernel/irq/ |
H A D | matrix.c | 15 unsigned int allocated; member 149 /* Find the best CPU which has the lowest number of managed IRQs allocated */ 153 unsigned int cpu, best_cpu, allocated = UINT_MAX; in matrix_find_best_cpu_managed() local 161 if (!cm->online || cm->managed_allocated > allocated) in matrix_find_best_cpu_managed() 165 allocated = cm->managed_allocated; in matrix_find_best_cpu_managed() 174 * @replace: Replace an already allocated vector with a system 192 cm->allocated--; in irq_matrix_assign_system() 246 * This removes not allocated managed interrupts from the map. It does 262 /* Get managed bit which are not allocated */ in irq_matrix_remove_managed() 284 * @mapped_cpu: Pointer to store the CPU for which the irq was allocated [all...] |
/kernel/linux/linux-5.10/include/trace/events/ |
H A D | sock.h | 95 TP_PROTO(struct sock *sk, struct proto *prot, long allocated, int kind), 97 TP_ARGS(sk, prot, allocated, kind), 102 __field(long, allocated) 116 __entry->allocated = allocated; 125 TP_printk("proto:%s sysctl_mem=%ld,%ld,%ld allocated=%ld sysctl_rmem=%d rmem_alloc=%d sysctl_wmem=%d wmem_alloc=%d wmem_queued=%d kind=%s", 130 __entry->allocated,
|
H A D | irq_matrix.h | 77 __field( unsigned int, allocated ) 90 __entry->allocated = cmap->allocated; 100 __entry->available, __entry->allocated,
|
/kernel/linux/linux-5.10/scripts/dtc/libfdt/ |
H A D | fdt_sw.c | 276 static int fdt_find_add_string_(void *fdt, const char *s, int *allocated) in fdt_find_add_string_() argument 282 *allocated = 0; in fdt_find_add_string_() 288 *allocated = 1; in fdt_find_add_string_() 297 int allocated; in fdt_property_placeholder() local 303 allocated = 1; in fdt_property_placeholder() 306 nameoff = fdt_find_add_string_(fdt, name, &allocated); in fdt_property_placeholder() 313 if (allocated) in fdt_property_placeholder()
|
H A D | fdt_rw.c | 123 * @allocated: Set to 0 if the string was found, 1 if not found and so 124 * allocated. Ignored if can_assume(NO_ROLLBACK) 127 static int fdt_find_add_string_(void *fdt, const char *s, int *allocated) in fdt_find_add_string_() argument 136 *allocated = 0; in fdt_find_add_string_() 149 *allocated = 1; in fdt_find_add_string_() 209 int allocated; in fdt_add_property_() local 214 namestroff = fdt_find_add_string_(fdt, name, &allocated); in fdt_add_property_() 224 if (!can_assume(NO_ROLLBACK) && allocated) in fdt_add_property_()
|
/kernel/linux/linux-6.6/scripts/dtc/libfdt/ |
H A D | fdt_sw.c | 276 static int fdt_find_add_string_(void *fdt, const char *s, int *allocated) in fdt_find_add_string_() argument 282 *allocated = 0; in fdt_find_add_string_() 288 *allocated = 1; in fdt_find_add_string_() 297 int allocated; in fdt_property_placeholder() local 303 allocated = 1; in fdt_property_placeholder() 306 nameoff = fdt_find_add_string_(fdt, name, &allocated); in fdt_property_placeholder() 313 if (allocated) in fdt_property_placeholder()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/sf/ |
H A D | hw_table.c | 16 u8 allocated: 1; member 86 if (!hwc->sfs[i].allocated && free_idx == -1) { in mlx5_sf_hw_table_id_alloc() 91 if (hwc->sfs[i].allocated && hwc->sfs[i].usr_sfnum == usr_sfnum) in mlx5_sf_hw_table_id_alloc() 99 hwc->sfs[free_idx].allocated = true; in mlx5_sf_hw_table_id_alloc() 108 hwc->sfs[id].allocated = false; in mlx5_sf_hw_table_id_free() 176 hwc->sfs[idx].allocated = false; in mlx5_sf_hw_table_hwc_sf_free() 199 hwc->sfs[id].allocated = false; in mlx5_sf_hw_table_sf_deferred_free() 214 if (hwc->sfs[i].allocated) in mlx5_sf_hw_table_hwc_dealloc_all() 367 if (sf_hw->allocated && sf_hw->pending_delete) in mlx5_sf_hw_vhca_event()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/ |
H A D | vio.c | 84 * @curr: bytes currently allocated 153 if (viodev->cmo.entitled > viodev->cmo.allocated) in vio_cmo_alloc() 154 reserve_free = viodev->cmo.entitled - viodev->cmo.allocated; in vio_cmo_alloc() 165 viodev->cmo.allocated += size; in vio_cmo_alloc() 200 if (viodev->cmo.allocated > viodev->cmo.entitled) { in vio_cmo_dealloc() 201 excess_freed = min(reserve_freed, (viodev->cmo.allocated - in vio_cmo_dealloc() 207 viodev->cmo.allocated -= (reserve_freed + excess_freed); in vio_cmo_dealloc() 318 if ((viodev->cmo.entitled > viodev->cmo.allocated) && in vio_cmo_entitlement_update() 321 max_t(size_t, viodev->cmo.allocated, in vio_cmo_entitlement_update() 344 if ((viodev->cmo.entitled > viodev->cmo.allocated) in vio_cmo_entitlement_update() 975 viodev_cmo_rd_attr(allocated); global() variable [all...] |
/kernel/linux/linux-6.6/arch/powerpc/platforms/pseries/ |
H A D | vio.c | 86 * @curr: bytes currently allocated 155 if (viodev->cmo.entitled > viodev->cmo.allocated) in vio_cmo_alloc() 156 reserve_free = viodev->cmo.entitled - viodev->cmo.allocated; in vio_cmo_alloc() 167 viodev->cmo.allocated += size; in vio_cmo_alloc() 202 if (viodev->cmo.allocated > viodev->cmo.entitled) { in vio_cmo_dealloc() 203 excess_freed = min(reserve_freed, (viodev->cmo.allocated - in vio_cmo_dealloc() 209 viodev->cmo.allocated -= (reserve_freed + excess_freed); in vio_cmo_dealloc() 320 if ((viodev->cmo.entitled > viodev->cmo.allocated) && in vio_cmo_entitlement_update() 323 max_t(size_t, viodev->cmo.allocated, in vio_cmo_entitlement_update() 346 if ((viodev->cmo.entitled > viodev->cmo.allocated) in vio_cmo_entitlement_update() 978 viodev_cmo_rd_attr(allocated); global() variable [all...] |
/kernel/linux/linux-5.10/drivers/powercap/ |
H A D | powercap_sys.c | 388 bool allocated; in powercap_release() local 394 allocated = power_zone->allocated; in powercap_release() 397 /* Destroy idrs allocated for this zone */ in powercap_release() 404 if (allocated) in powercap_release() 411 allocated = control_type->allocated; in powercap_release() 416 if (allocated) in powercap_release() 508 power_zone->allocated = true; in powercap_register_zone() 580 if (power_zone->allocated) in powercap_register_zone() [all...] |
/kernel/linux/linux-6.6/drivers/powercap/ |
H A D | powercap_sys.c | 388 bool allocated; in powercap_release() local 394 allocated = power_zone->allocated; in powercap_release() 397 /* Destroy idrs allocated for this zone */ in powercap_release() 404 if (allocated) in powercap_release() 411 allocated = control_type->allocated; in powercap_release() 416 if (allocated) in powercap_release() 508 power_zone->allocated = true; in powercap_register_zone() 580 if (power_zone->allocated) in powercap_register_zone() [all...] |
/kernel/linux/linux-5.10/drivers/misc/ |
H A D | atmel_tclib.c | 51 if (tc->allocated) in atmel_tc_alloc() 57 tc->allocated = true; in atmel_tc_alloc() 77 if (tc->allocated) in atmel_tc_free() 78 tc->allocated = false; in atmel_tc_free()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_vce.c | 678 * @allocated: allocated a new handle? 684 uint32_t handle, uint32_t *allocated) in amdgpu_vce_validate_handle() 704 *allocated |= 1 << i; in amdgpu_vce_validate_handle() 726 uint32_t allocated = 0; in amdgpu_vce_ring_parse_cs() local 809 &allocated); in amdgpu_vce_ring_parse_cs() 826 allocated |= 1 << session_idx; in amdgpu_vce_ring_parse_cs() 828 } else if (!(allocated & (1 << session_idx))) { in amdgpu_vce_ring_parse_cs() 928 if (allocated & ~created) { in amdgpu_vce_ring_parse_cs() 938 /* Error during parsing, free all allocated handl in amdgpu_vce_ring_parse_cs() 683 amdgpu_vce_validate_handle(struct amdgpu_cs_parser *p, uint32_t handle, uint32_t *allocated) amdgpu_vce_validate_handle() argument 961 uint32_t allocated = 0; amdgpu_vce_ring_parse_cs_vm() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_vce.c | 693 * @allocated: allocated a new handle? 699 uint32_t handle, uint32_t *allocated) in amdgpu_vce_validate_handle() 719 *allocated |= 1 << i; in amdgpu_vce_validate_handle() 743 uint32_t allocated = 0; in amdgpu_vce_ring_parse_cs() local 826 &allocated); in amdgpu_vce_ring_parse_cs() 843 allocated |= 1 << session_idx; in amdgpu_vce_ring_parse_cs() 845 } else if (!(allocated & (1 << session_idx))) { in amdgpu_vce_ring_parse_cs() 945 if (allocated & ~created) { in amdgpu_vce_ring_parse_cs() 955 /* Error during parsing, free all allocated handl in amdgpu_vce_ring_parse_cs() 698 amdgpu_vce_validate_handle(struct amdgpu_cs_parser *p, uint32_t handle, uint32_t *allocated) amdgpu_vce_validate_handle() argument 980 uint32_t allocated = 0; amdgpu_vce_ring_parse_cs_vm() local [all...] |
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | irq_matrix.h | 77 __field( unsigned int, allocated ) 90 __entry->allocated = cmap->allocated; 100 __entry->available, __entry->allocated,
|
/kernel/linux/linux-5.10/drivers/staging/comedi/ |
H A D | comedi_buf.c | 32 * DMA buffer was allocated as a single block. in comedi_buf_map_kref_release() 102 * Currently, the DMA buffer needs to be allocated as a in comedi_buf_map_alloc() 167 * DMA buffer was allocated as a single block. in __comedi_buf_alloc() 240 /* only want it if buffer pages allocated */ in comedi_buf_map_from_subdev_get() 434 unsigned int allocated = comedi_buf_write_n_allocated(s); in comedi_buf_write_free() local 436 if (nbytes > allocated) in comedi_buf_write_free() 437 nbytes = allocated; in comedi_buf_write_free() 539 unsigned int allocated; in comedi_buf_read_free() local 547 allocated = comedi_buf_read_n_allocated(async); in comedi_buf_read_free() 548 if (nbytes > allocated) in comedi_buf_read_free() [all...] |
/kernel/linux/linux-6.6/drivers/comedi/ |
H A D | comedi_buf.c | 31 * DMA buffer was allocated as a single block. in comedi_buf_map_kref_release() 101 * Currently, the DMA buffer needs to be allocated as a in comedi_buf_map_alloc() 166 * DMA buffer was allocated as a single block. in __comedi_buf_alloc() 239 /* only want it if buffer pages allocated */ in comedi_buf_map_from_subdev_get() 433 unsigned int allocated = comedi_buf_write_n_allocated(s); in comedi_buf_write_free() local 435 if (nbytes > allocated) in comedi_buf_write_free() 436 nbytes = allocated; in comedi_buf_write_free() 538 unsigned int allocated; in comedi_buf_read_free() local 546 allocated = comedi_buf_read_n_allocated(async); in comedi_buf_read_free() 547 if (nbytes > allocated) in comedi_buf_read_free() [all...] |
/kernel/linux/linux-5.10/fs/ |
H A D | kernel_read_file.c | 14 * *@buf is NULL, a buffer will be allocated, and 16 * @buf_size size of buf, if already allocated. If @buf not 17 * allocated, this is the largest size to allocate. 25 * via an already-allocated @buf, in at most @buf_size chunks, and 41 void *allocated = NULL; in kernel_read_file() local 80 *buf = allocated = vmalloc(i_size); in kernel_read_file() 115 if (allocated) { in kernel_read_file()
|
/kernel/linux/linux-6.6/fs/ |
H A D | kernel_read_file.c | 14 * *@buf is NULL, a buffer will be allocated, and 16 * @buf_size: size of buf, if already allocated. If @buf not 17 * allocated, this is the largest size to allocate. 25 * via an already-allocated @buf, in at most @buf_size chunks, and 41 void *allocated = NULL; in kernel_read_file() local 80 *buf = allocated = vmalloc(i_size); in kernel_read_file() 115 if (allocated) { in kernel_read_file()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
H A D | radeon_vce.c | 513 * @allocated: allocated a new handle? 519 uint32_t handle, bool *allocated) in radeon_vce_validate_handle() 523 *allocated = false; in radeon_vce_validate_handle() 541 *allocated = true; in radeon_vce_validate_handle() 559 bool destroyed = false, created = false, allocated = false; in radeon_vce_cs_parse() local 584 &allocated); in radeon_vce_cs_parse() 595 if (!allocated) { in radeon_vce_cs_parse() 667 if (allocated && !created) { in radeon_vce_cs_parse() 673 if ((!r && destroyed) || (r && allocated)) { in radeon_vce_cs_parse() 518 radeon_vce_validate_handle(struct radeon_cs_parser *p, uint32_t handle, bool *allocated) radeon_vce_validate_handle() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A D | drm_buddy.c | 407 * free the allocated blocks. in alloc_range_bias() 497 LIST_HEAD(allocated); in __alloc_range() 534 list_add_tail(&block->link, &allocated); in __alloc_range() 548 list_splice_tail(&allocated, blocks); in __alloc_range() 555 * free the allocated blocks. in __alloc_range() 564 drm_buddy_free_list(mm, &allocated); in __alloc_range() 587 * @blocks: Input and output list of allocated blocks. 589 * On success will contain the newly allocated blocks 659 * @blocks: output list head to add allocated blocks 680 LIST_HEAD(allocated); in drm_buddy_alloc_blocks() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/ |
H A D | radeon_vce.c | 513 * @allocated: allocated a new handle? 519 uint32_t handle, bool *allocated) in radeon_vce_validate_handle() 523 *allocated = false; in radeon_vce_validate_handle() 541 *allocated = true; in radeon_vce_validate_handle() 559 bool destroyed = false, created = false, allocated = false; in radeon_vce_cs_parse() local 584 &allocated); in radeon_vce_cs_parse() 595 if (!allocated) { in radeon_vce_cs_parse() 667 if (allocated && !created) { in radeon_vce_cs_parse() 673 if ((!r && destroyed) || (r && allocated)) { in radeon_vce_cs_parse() 518 radeon_vce_validate_handle(struct radeon_cs_parser *p, uint32_t handle, bool *allocated) radeon_vce_validate_handle() argument [all...] |