Home
last modified time | relevance | path

Searched full:area (Results 1 – 25 of 3129) sorted by relevance

12345678910>>...126

/openbmc/linux/drivers/gpu/drm/omapdrm/
H A Dtcm.h48 /* 1d or 2d area */
50 bool is2d; /* whether area is 1d or 2d */
69 struct tcm_area *area);
70 s32 (*reserve_1d)(struct tcm *tcm, u32 slots, struct tcm_area *area);
71 s32 (*free)(struct tcm *tcm, struct tcm_area *area);
85 * area pointer is NULL
111 * Reserves a 2D area in the container.
114 * @param height Height(in pages) of area to be reserved.
115 * @param width Width(in pages) of area to be reserved.
116 * @param align Alignment requirement for top-left corner of area. Not
[all …]
H A Dtcm-sita.c56 /* found a long enough free area */ in r2l_b2t_1d()
122 /* assume the area is free until we find an overlap */ in l2r_t2b()
125 /* check subsequent rows to see if complete area is free */ in l2r_t2b()
146 /* set area as in-use. iterate over rows */ in l2r_t2b()
155 struct tcm_area *area) in sita_reserve_1d() argument
163 area->p0.x = pos % tcm->width; in sita_reserve_1d()
164 area->p0.y = pos / tcm->width; in sita_reserve_1d()
165 area->p1.x = (pos + num_slots - 1) % tcm->width; in sita_reserve_1d()
166 area->p1.y = (pos + num_slots - 1) / tcm->width; in sita_reserve_1d()
175 struct tcm_area *area) in sita_reserve_2d() argument
[all …]
/openbmc/linux/drivers/net/ethernet/netronome/nfp/nfpcore/
H A Dnfp_cppcore.c57 * @waitq: area wait queue
86 struct nfp_cpp_area *area; member
93 struct mutex mutex; /* Lock for the area's refcount */
132 struct nfp_cpp_area *area = in __release_cpp_area() local
134 struct nfp_cpp *cpp = nfp_cpp_area_cpp(area); in __release_cpp_area()
136 if (area->cpp->op->area_cleanup) in __release_cpp_area()
137 area->cpp->op->area_cleanup(area); in __release_cpp_area()
140 __resource_del(&area->resource); in __release_cpp_area()
142 kfree(area); in __release_cpp_area()
145 static void nfp_cpp_area_put(struct nfp_cpp_area *area) in nfp_cpp_area_put() argument
[all …]
H A Dnfp_cpp.h36 /* Max size of area it should be safe to request */
215 void nfp_cpp_area_free(struct nfp_cpp_area *area);
216 int nfp_cpp_area_acquire(struct nfp_cpp_area *area);
217 int nfp_cpp_area_acquire_nonblocking(struct nfp_cpp_area *area);
218 void nfp_cpp_area_release(struct nfp_cpp_area *area);
219 void nfp_cpp_area_release_free(struct nfp_cpp_area *area);
220 int nfp_cpp_area_read(struct nfp_cpp_area *area, unsigned long offset,
222 int nfp_cpp_area_write(struct nfp_cpp_area *area, unsigned long offset,
224 size_t nfp_cpp_area_size(struct nfp_cpp_area *area);
228 struct resource *nfp_cpp_area_resource(struct nfp_cpp_area *area);
[all …]
/openbmc/linux/drivers/iommu/iommufd/
H A Dio_pagetable.c24 struct iopt_area *area; member
39 iter->area = iopt_area_iter_first(iopt, iova, iova); in iopt_area_contig_init()
40 if (!iter->area) in iopt_area_contig_init()
42 if (!iter->area->pages) { in iopt_area_contig_init()
43 iter->area = NULL; in iopt_area_contig_init()
46 return iter->area; in iopt_area_contig_init()
53 if (!iter->area) in iopt_area_contig_next()
55 last_iova = iopt_area_last_iova(iter->area); in iopt_area_contig_next()
60 iter->area = iopt_area_iter_next(iter->area, iter->cur_iova, in iopt_area_contig_next()
62 if (!iter->area) in iopt_area_contig_next()
[all …]
H A Dio_pagetable.h20 * populated in the page table. Each area is fully populated with pages.
25 * up or tearing down the area. When observed under the write side of the
26 * domain_rwsem a NULL pages must mean the area is still being setup and no
30 * for this area. It is locked by the pages->mutex. This simplifies the locking
45 /* How many bytes into the first page the area starts */
62 int iopt_area_fill_domains(struct iopt_area *area, struct iopt_pages *pages);
63 void iopt_area_unfill_domains(struct iopt_area *area, struct iopt_pages *pages);
65 int iopt_area_fill_domain(struct iopt_area *area, struct iommu_domain *domain);
66 void iopt_area_unfill_domain(struct iopt_area *area, struct iopt_pages *pages,
68 void iopt_area_unmap_domain(struct iopt_area *area,
[all …]
H A Dpages.c193 * index is the number of PAGE_SIZE units from the start of the area's
194 * iopt_pages. If the iova is sub page-size then the area has an iova that
197 static unsigned long iopt_area_index_to_iova(struct iopt_area *area, in iopt_area_index_to_iova() argument
201 WARN_ON(index < iopt_area_index(area) || in iopt_area_index_to_iova()
202 index > iopt_area_last_index(area)); in iopt_area_index_to_iova()
203 index -= iopt_area_index(area); in iopt_area_index_to_iova()
205 return iopt_area_iova(area); in iopt_area_index_to_iova()
206 return iopt_area_iova(area) - area->page_offset + index * PAGE_SIZE; in iopt_area_index_to_iova()
209 static unsigned long iopt_area_index_to_iova_last(struct iopt_area *area, in iopt_area_index_to_iova_last() argument
213 WARN_ON(index < iopt_area_index(area) || in iopt_area_index_to_iova_last()
[all …]
/openbmc/linux/drivers/net/dsa/sja1105/
H A Dsja1105_ethtool.c81 enum sja1105_stats_area area; member
92 .area = MAC,
99 .area = MAC,
106 .area = MAC,
113 .area = MAC,
121 .area = MAC,
128 .area = MAC,
135 .area = MAC,
142 .area = MAC,
149 .area = MAC,
[all …]
/openbmc/linux/arch/powerpc/include/asm/
H A Drtas-work-area.h12 * struct rtas_work_area - RTAS work area descriptor.
14 * Descriptor for a "work area" in PAPR terminology that satisfies
29 * rtas_work_area_alloc() - Acquire a work area of the requested size.
35 * "work area" in PAPR. Although callers are allowed to block while
36 * holding a work area, the amount of memory reserved for this purpose
38 * is to release any allocated work area before returning from a
43 * allocating more than one work area simultaneously in a single task
47 * Return: A &struct rtas_work_area descriptor for the allocated work area.
63 * rtas_work_area_free() - Release a work area.
64 * @area: Work area descriptor as returned from rtas_work_area_alloc().
[all …]
/openbmc/linux/arch/x86/xen/
H A Dgrant-table.c26 struct vm_struct *area; member
40 *__shared = shared = gnttab_shared_vm_area.area->addr; in arch_gnttab_map_shared()
62 *__shared = shared = gnttab_status_vm_area.area->addr; in arch_gnttab_map_status()
81 if (shared == gnttab_status_vm_area.area->addr) in arch_gnttab_unmap()
96 struct gnttab_vm_area *area = data; in gnttab_apply() local
98 area->ptes[area->idx++] = pte; in gnttab_apply()
102 static int arch_gnttab_valloc(struct gnttab_vm_area *area, unsigned nr_frames) in arch_gnttab_valloc() argument
104 area->ptes = kmalloc_array(nr_frames, sizeof(*area->ptes), GFP_KERNEL); in arch_gnttab_valloc()
105 if (area->ptes == NULL) in arch_gnttab_valloc()
107 area->area = get_vm_area(PAGE_SIZE * nr_frames, VM_IOREMAP); in arch_gnttab_valloc()
[all …]
/openbmc/linux/lib/
H A Dlogic_iomem.c154 struct logic_iomem_area *area = get_area(addr); in iounmap() local
156 if (!area) { in iounmap()
161 if (area->ops->unmap) in iounmap()
162 area->ops->unmap(area->priv); in iounmap()
165 area->ops = NULL; in iounmap()
166 area->priv = NULL; in iounmap()
221 struct logic_iomem_area *area = get_area(addr); \
223 if (!area) \
226 return (u ## sz) area->ops->read(area->priv, \
234 struct logic_iomem_area *area = get_area(addr); \
[all …]
/openbmc/linux/sound/core/
H A Dmemalloc.c43 * snd_dma_alloc_dir_pages - allocate the buffer area according to the given
73 dmab->area = __snd_dma_alloc_pages(dmab, size); in snd_dma_alloc_dir_pages()
74 if (!dmab->area) in snd_dma_alloc_dir_pages()
82 * snd_dma_alloc_pages_fallback - allocate the buffer area according to the given type with fallback
109 if (! dmab->area) in snd_dma_alloc_pages_fallback()
181 * @area: VM area information
186 struct vm_area_struct *area) in snd_dma_buffer_mmap() argument
194 return ops->mmap(dmab, area); in snd_dma_buffer_mmap()
252 return virt_to_page(dmab->area + offset); in snd_sgbuf_get_page()
327 do_free_pages(dmab->area, dmab->bytes, false); in snd_dma_continuous_free()
[all …]
/openbmc/linux/arch/powerpc/platforms/cell/
H A Dras.c109 struct ptcal_area *area; in cbe_ptcal_enable_on_node() local
116 area = kmalloc(sizeof(*area), GFP_KERNEL); in cbe_ptcal_enable_on_node()
117 if (!area) in cbe_ptcal_enable_on_node()
120 area->nid = nid; in cbe_ptcal_enable_on_node()
121 area->order = order; in cbe_ptcal_enable_on_node()
122 area->pages = __alloc_pages_node(area->nid, in cbe_ptcal_enable_on_node()
124 area->order); in cbe_ptcal_enable_on_node()
126 if (!area->pages) { in cbe_ptcal_enable_on_node()
128 __func__, area->nid); in cbe_ptcal_enable_on_node()
133 * We move the ptcal area to the middle of the allocated in cbe_ptcal_enable_on_node()
[all …]
/openbmc/linux/arch/arm/mach-omap2/
H A Dfb.c33 DEFINE_RES_MEM_NAMED(0x70000000u, 0x4000000, "vrfb-area-0"),
34 DEFINE_RES_MEM_NAMED(0x74000000u, 0x4000000, "vrfb-area-1"),
35 DEFINE_RES_MEM_NAMED(0x78000000u, 0x4000000, "vrfb-area-2"),
36 DEFINE_RES_MEM_NAMED(0x7c000000u, 0x4000000, "vrfb-area-3"),
41 DEFINE_RES_MEM_NAMED(0x70000000u, 0x4000000, "vrfb-area-0"),
42 DEFINE_RES_MEM_NAMED(0x74000000u, 0x4000000, "vrfb-area-1"),
43 DEFINE_RES_MEM_NAMED(0x78000000u, 0x4000000, "vrfb-area-2"),
44 DEFINE_RES_MEM_NAMED(0x7c000000u, 0x4000000, "vrfb-area-3"),
45 DEFINE_RES_MEM_NAMED(0xe0000000u, 0x4000000, "vrfb-area-4"),
46 DEFINE_RES_MEM_NAMED(0xe4000000u, 0x4000000, "vrfb-area-5"),
[all …]
/openbmc/linux/drivers/video/fbdev/
H A Ddnfb.c109 static void dnfb_copyarea(struct fb_info *info, const struct fb_copyarea *area);
149 void dnfb_copyarea(struct fb_info *info, const struct fb_copyarea *area) in dnfb_copyarea() argument
157 incr = (area->dy <= area->sy) ? 1 : -1; in dnfb_copyarea()
159 src = (ushort *)(info->screen_base + area->sy * info->fix.line_length + in dnfb_copyarea()
160 (area->sx >> 4)); in dnfb_copyarea()
161 dest = area->dy * (info->fix.line_length >> 1) + (area->dx >> 4); in dnfb_copyarea()
164 y_delta = (info->fix.line_length * 8) - area->sx - area->width; in dnfb_copyarea()
165 x_end = area->dx + area->width - 1; in dnfb_copyarea()
166 x_word_count = (x_end >> 4) - (area->dx >> 4) + 1; in dnfb_copyarea()
167 start_mask = 0xffff0000 >> (area->dx & 0xf); in dnfb_copyarea()
[all …]
/openbmc/linux/drivers/staging/media/atomisp/pci/isp/kernels/ynr/ynr_2/
H A Dia_css_ynr2_types.h31 u16 edge_sense_gain_0; /** Sensitivity of edge in dark area.
34 u16 edge_sense_gain_1; /** Sensitivity of edge in bright area.
37 u16 corner_sense_gain_0; /** Sensitivity of corner in dark area.
40 u16 corner_sense_gain_1; /** Sensitivity of corner in bright area.
56 u16 coring_pos_0; /** Coring threshold for positive edge in dark area.
59 u16 coring_pos_1; /** Coring threshold for positive edge in bright area.
62 u16 coring_neg_0; /** Coring threshold for negative edge in dark area.
65 u16 coring_neg_1; /** Coring threshold for negative edge in bright area.
68 u16 gain_pos_0; /** Gain for positive edge in dark area.
71 u16 gain_pos_1; /** Gain for positive edge in bright area.
[all …]
/openbmc/linux/kernel/
H A Dkcov.c55 /* The lock protects mode, size, area and t. */
61 void *area; member
66 /* Size of remote area (in long's). */
136 struct kcov_remote_area *area; in kcov_remote_area_get() local
140 area = list_entry(pos, struct kcov_remote_area, list); in kcov_remote_area_get()
141 if (area->size == size) { in kcov_remote_area_get()
142 list_del(&area->list); in kcov_remote_area_get()
143 return area; in kcov_remote_area_get()
150 static void kcov_remote_area_put(struct kcov_remote_area *area, in kcov_remote_area_put() argument
153 INIT_LIST_HEAD(&area->list); in kcov_remote_area_put()
[all …]
/openbmc/linux/arch/x86/mm/
H A Dmem_encrypt_boot.S36 /* Set up a one page stack in the non-encrypted memory area */
42 movq %rdi, %r10 /* Encrypted area */
43 movq %rsi, %r11 /* Decrypted area */
44 movq %rdx, %r12 /* Area length */
53 movq %r10, %rdi /* Encrypted area */
54 movq %r11, %rsi /* Decrypted area */
56 movq %r12, %rcx /* Area length */
79 * routine is defined here and then copied to an area outside
87 * RCX - length of area
92 * The area will be encrypted by copying from the non-encrypted
[all …]
/openbmc/phosphor-host-ipmid/
H A Dipmi_fru_info_area.cpp66 * @param[in/out] data FRU area data
83 * @brief Append checksum of the FRU area data
85 * @param[in/out] data FRU area data
96 * @brief Append padding bytes for the FRU area data
98 * @param[in/out] data FRU area data
112 * @param[in/out] fruAreaData FRU area info data
116 // This area needs to be padded to a multiple of 8 bytes (after checksum) in postFormatProcessing()
119 // Set size of data info area in postFormatProcessing()
123 // Finally add area checksum in postFormatProcessing()
129 * area data.
[all …]
/openbmc/linux/mm/
H A Dvmalloc.c444 * @addr: start of the VM area to unmap
445 * @end: end of the VM area to unmap (non-inclusive)
618 * @addr: start of the VM area to map
619 * @end: end of the VM area to map (non-inclusive)
764 * find a lowest match of free area.
1111 * free area is inserted. If VA has been merged, it is
1159 /* Point to the new merged area. */ in __merge_or_add_vmap_area()
1190 /* Point to the new merged area. */ in __merge_or_add_vmap_area()
1485 * Returns a start address of the newly allocated area, if success.
1562 * when fit type of free area is NE_FIT_TYPE. It guarantees that in preload_this_cpu_lock()
[all …]
/openbmc/linux/drivers/md/
H A Ddm-snap-persistent.c116 void *area; member
119 * An area of zeros used to clear the next area.
124 * An area used for header. The header can be written
131 * Used to keep track of which metadata area the data in
158 * metadata area.
179 * a single metadata area. in alloc_area()
181 ps->area = vmalloc(len); in alloc_area()
182 if (!ps->area) in alloc_area()
199 vfree(ps->area); in alloc_area()
207 vfree(ps->area); in free_area()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_thermal.c448 struct mlxsw_thermal_area *area, u8 module) in mlxsw_thermal_module_init() argument
452 module_tz = &area->tz_module_arr[module]; in mlxsw_thermal_module_init()
457 module_tz->slot_index = area->slot_index; in mlxsw_thermal_module_init()
479 struct mlxsw_thermal_area *area) in mlxsw_thermal_modules_init() argument
485 mlxsw_reg_mgpir_pack(mgpir_pl, area->slot_index); in mlxsw_thermal_modules_init()
491 &area->tz_module_num, NULL); in mlxsw_thermal_modules_init()
494 if (!area->tz_module_num) in mlxsw_thermal_modules_init()
497 area->tz_module_arr = kcalloc(area->tz_module_num, in mlxsw_thermal_modules_init()
498 sizeof(*area->tz_module_arr), in mlxsw_thermal_modules_init()
500 if (!area->tz_module_arr) in mlxsw_thermal_modules_init()
[all …]
/openbmc/linux/drivers/video/fbdev/sis/
H A Dsis_accel.c356 void fbcon_sis_copyarea(struct fb_info *info, const struct fb_copyarea *area) in fbcon_sis_copyarea() argument
361 int width = area->width; in fbcon_sis_copyarea()
362 int height = area->height; in fbcon_sis_copyarea()
369 cfb_copyarea(info, area); in fbcon_sis_copyarea()
374 area->sx >= vxres || area->sy >= vyres || in fbcon_sis_copyarea()
375 area->dx >= vxres || area->dy >= vyres) in fbcon_sis_copyarea()
379 if((area->sx + width) > vxres) width = vxres - area->sx; in fbcon_sis_copyarea()
380 if((area->dx + width) > vxres) width = vxres - area->dx; in fbcon_sis_copyarea()
381 if((area->sy + height) > vyres) height = vyres - area->sy; in fbcon_sis_copyarea()
382 if((area->dy + height) > vyres) height = vyres - area->dy; in fbcon_sis_copyarea()
[all …]
/openbmc/linux/drivers/pmdomain/renesas/
H A Drcar-sysc.h16 #define PD_CPU BIT(0) /* Area contains main CPU core */
17 #define PD_SCU BIT(1) /* Area contains SCU and L2 cache */
18 #define PD_NO_CR BIT(2) /* Area lacks PWR{ON,OFF}CR registers */
20 #define PD_CPU_CR PD_CPU /* CPU area has CR (R-Car H1) */
21 #define PD_CPU_NOCR PD_CPU | PD_NO_CR /* CPU area lacks CR (R-Car Gen2/3) */
22 #define PD_ALWAYS_ON PD_NO_CR /* Always-on area */
26 * Description of a Power Area
31 u16 chan_offs; /* Offset of PWRSR register for this area */
40 * SoC-specific Power Area Description
76 * Helpers for fixing up power area tables depending on SoC revision
/openbmc/entity-manager/src/
H A Dfru_utils.cpp131 std::cerr << "FRU data field extends past end of FRU area data\n"; in decodeFRUData()
219 * falling under other field area
222 * currentArea: Index of current area offset to be compared against all area
224 * len: Length of current area space and it is a multiple of 8 bytes
242 std::cerr << "Error: Fru area is out of range\n"; in verifyOffset()
249 std::cerr << "Error: Fru area index is out of range\n"; in verifyOffset()
257 for (fruAreas area = fruAreas::fruAreaInternal; in verifyOffset() local
258 area <= fruAreas::fruAreaMultirecord; ++area) in verifyOffset()
261 if (area == currentArea) in verifyOffset()
266 unsigned int areaIndex = getHeaderAreaFieldOffset(area); in verifyOffset()
[all …]

12345678910>>...126