Home
last modified time | relevance | path

Searched refs:size (Results 4476 - 4500 of 41759) sorted by relevance

1...<<171172173174175176177178179180>>...1671

/kernel/linux/linux-5.10/include/linux/netfilter/
H A Dx_tables.h250 unsigned int size; member
286 unsigned int *xt_alloc_entry_offsets(unsigned int size);
288 unsigned int target, unsigned int size);
290 int xt_check_proc_name(const char *name, unsigned int size);
292 int xt_check_match(struct xt_mtchk_param *, unsigned int size, u16 proto,
294 int xt_check_target(struct xt_tgchk_param *, unsigned int size, u16 proto,
302 int usersize, int size, int aligned_size);
334 struct xt_table_info *xt_alloc_table_info(unsigned int size);
519 unsigned int *size);
521 void __user **dstptr, unsigned int *size);
[all...]
/kernel/linux/linux-5.10/sound/soc/intel/skylake/
H A Dskl-sst-utils.c234 int i, num_entry, size; in snd_skl_parse_uuids() local
244 stripped_fw.size = fw->size; in snd_skl_parse_uuids()
252 if (stripped_fw.size <= safe_file) { in snd_skl_parse_uuids()
253 dev_err(ctx->dev, "Small fw file size, No space for hdr\n"); in snd_skl_parse_uuids()
261 if (stripped_fw.size <= safe_file) { in snd_skl_parse_uuids()
262 dev_err(ctx->dev, "Small fw file size, No module entry\n"); in snd_skl_parse_uuids()
272 if (stripped_fw.size <= safe_file) { in snd_skl_parse_uuids()
273 dev_err(ctx->dev, "Small fw file size, No modules\n"); in snd_skl_parse_uuids()
298 size in snd_skl_parse_uuids()
[all...]
/kernel/linux/linux-5.10/drivers/visorbus/
H A Dvisorchannel.c354 size_t size = sizeof(struct channel_header); in visorchannel_create() local
371 channel->requested = request_mem_region(physaddr, size, VISOR_DRV_NAME); in visorchannel_create()
375 channel->mapped = memremap(physaddr, size, MEMREMAP_WB); in visorchannel_create()
377 release_mem_region(physaddr, size); in visorchannel_create()
381 channel->nbytes = size; in visorchannel_create()
382 err = visorchannel_read(channel, 0, &channel->chan_hdr, size); in visorchannel_create()
385 size = (ulong)channel->chan_hdr.size; in visorchannel_create()
390 channel->requested = request_mem_region(channel->physaddr, size, in visorchannel_create()
395 channel->mapped = memremap(channel->physaddr, size, MEMREMAP_W in visorchannel_create()
[all...]
/kernel/linux/linux-5.10/include/uapi/linux/
H A Dbcache.h11 #define BITMASK(name, type, field, offset, size) \
13 { return (k->field >> offset) & ~(~0ULL << size); } \
17 k->field &= ~(~(~0ULL << size) << offset); \
18 k->field |= (v & ~(~0ULL << size)) << offset; \
29 #define KEY_FIELD(name, field, offset, size) \
30 BITMASK(name, struct bkey, field, offset, size)
32 #define PTR_FIELD(name, offset, size) \
34 { return (k->ptr[i] >> offset) & ~(~0ULL << size); } \
38 k->ptr[i] &= ~(~(~0ULL << size) << offset); \
39 k->ptr[i] |= (v & ~(~0ULL << size)) << offse
[all...]
/kernel/linux/linux-5.10/kernel/bpf/
H A Dqueue_stack_maps.c20 u32 size; /* max_entries + 1 */ member
39 if (unlikely(head >= qs->size)) in queue_stack_map_is_full()
72 u64 size, queue_size, cost; in queue_stack_map_alloc() local
74 size = (u64) attr->max_entries + 1; in queue_stack_map_alloc()
75 cost = queue_size = sizeof(*qs) + size * attr->value_size; in queue_stack_map_alloc()
92 qs->size = size; in queue_stack_map_alloc()
131 if (unlikely(++qs->tail >= qs->size)) in __queue_map_get()
163 if (unlikely(index >= qs->size)) in __stack_map_get()
164 index = qs->size in __stack_map_get()
[all...]
/kernel/linux/linux-5.10/fs/udf/
H A Dmisc.c47 struct genericFormat *udf_add_extendedattr(struct inode *inode, uint32_t size, in udf_add_extendedattr() argument
60 size += sizeof(struct extendedAttrHeaderDesc); in udf_add_extendedattr()
68 if (loc & 0x01 && offset >= size) { in udf_add_extendedattr()
73 memmove(&ad[size], ad, iinfo->i_lenAlloc); in udf_add_extendedattr()
85 size -= sizeof(struct extendedAttrHeaderDesc); in udf_add_extendedattr()
107 memmove(&ea[offset - aal + size], in udf_add_extendedattr()
111 cpu_to_le32(aal + size); in udf_add_extendedattr()
117 memmove(&ea[offset - ial + size], in udf_add_extendedattr()
121 cpu_to_le32(ial + size); in udf_add_extendedattr()
128 memmove(&ea[offset - aal + size], in udf_add_extendedattr()
[all...]
/kernel/linux/linux-5.10/net/ethtool/
H A Dtunnels.c23 ssize_t size; in ethnl_udp_table_reply_size() local
25 size = ethnl_bitset32_size(&types, NULL, __ETHTOOL_UDP_TUNNEL_TYPE_CNT, in ethnl_udp_table_reply_size()
27 if (size < 0) in ethnl_udp_table_reply_size()
28 return size; in ethnl_udp_table_reply_size()
30 return size + in ethnl_udp_table_reply_size()
43 size_t size; in ethnl_tunnel_info_reply_size() local
52 size = nla_total_size(0); /* _INFO_UDP_PORTS */ in ethnl_tunnel_info_reply_size()
62 size += ret; in ethnl_tunnel_info_reply_size()
64 size += udp_tunnel_nic_dump_size(req_base->dev, i); in ethnl_tunnel_info_reply_size()
71 size in ethnl_tunnel_info_reply_size()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/dispnv50/
H A Dheadc57d.c111 NVVAL(NVC57D, HEAD_SET_OLUT_CONTROL, SIZE, asyh->olut.size), in headc57d_olut_set()
120 headc57d_olut_load_8(struct drm_color_lut *in, int size, void __iomem *mem) in headc57d_olut_load_8() argument
125 while (size--) { in headc57d_olut_load_8()
131 if (in++, size) { in headc57d_olut_load_8()
153 headc57d_olut_load(struct drm_color_lut *in, int size, void __iomem *mem) in headc57d_olut_load() argument
158 for (; size--; in++, mem += 0x08) { in headc57d_olut_load()
173 headc57d_olut(struct nv50_head *head, struct nv50_head_atom *asyh, int size) in headc57d_olut() argument
175 if (size != 0 && size != 256 && size ! in headc57d_olut()
[all...]
H A Dwndwc57e.c137 NVVAL(NVC57E, SET_ILUT_CONTROL, SIZE, asyw->xlut.i.size) | in wndwc57e_ilut_set()
160 wndwc57e_ilut_load(struct drm_color_lut *in, int size, void __iomem *mem) in wndwc57e_ilut_load() argument
165 for (; size--; in++, mem += 0x08) { in wndwc57e_ilut_load()
183 wndwc57e_ilut(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw, int size) in wndwc57e_ilut() argument
185 if (size = size ? size : 1024, size != 256 && size != 1024) in wndwc57e_ilut()
188 if (size in wndwc57e_ilut()
[all...]
/kernel/linux/linux-5.10/drivers/oprofile/
H A Dcpu_buffer.c137 * data array that is specified by size. Use
144 *op_cpu_buffer_write_reserve(struct op_entry *entry, unsigned long size) in op_cpu_buffer_write_reserve() argument
148 size * sizeof(entry->sample->data[0])); in op_cpu_buffer_write_reserve()
152 entry->size = size; in op_cpu_buffer_write_reserve()
172 entry->size = (ring_buffer_event_length(e) - sizeof(struct op_sample)) in op_cpu_buffer_read_entry()
190 int size; in op_add_code() local
217 size = 1; in op_add_code()
219 size = 0; in op_add_code()
221 sample = op_cpu_buffer_write_reserve(&entry, size); in op_add_code()
357 oprofile_write_reserve(struct op_entry *entry, struct pt_regs * const regs, unsigned long pc, int code, int size) oprofile_write_reserve() argument
[all...]
/kernel/linux/linux-5.10/drivers/staging/fwserial/
H A Ddma_fifo.c47 * @size: 'apparent' size, in bytes, of fifo
51 * multiple of alignment, but at least align size)
55 * The 'apparent' size will be rounded up to next greater aligned size.
58 int dma_fifo_alloc(struct dma_fifo *fifo, int size, unsigned int align, in dma_fifo_alloc() argument
63 if (!is_power_of_2(align) || size < 0) in dma_fifo_alloc()
66 size = round_up(size, align); in dma_fifo_alloc()
67 capacity = size in dma_fifo_alloc()
[all...]
/kernel/linux/linux-6.6/fs/udf/
H A Dmisc.c27 struct genericFormat *udf_add_extendedattr(struct inode *inode, uint32_t size, in udf_add_extendedattr() argument
40 size += sizeof(struct extendedAttrHeaderDesc); in udf_add_extendedattr()
48 if (loc & 0x01 && offset >= size) { in udf_add_extendedattr()
53 memmove(&ad[size], ad, iinfo->i_lenAlloc); in udf_add_extendedattr()
65 size -= sizeof(struct extendedAttrHeaderDesc); in udf_add_extendedattr()
87 memmove(&ea[offset - aal + size], in udf_add_extendedattr()
91 cpu_to_le32(aal + size); in udf_add_extendedattr()
97 memmove(&ea[offset - ial + size], in udf_add_extendedattr()
101 cpu_to_le32(ial + size); in udf_add_extendedattr()
108 memmove(&ea[offset - aal + size], in udf_add_extendedattr()
[all...]
/kernel/linux/linux-6.6/drivers/xen/
H A Dgrant-dma-ops.c78 static void *xen_grant_dma_alloc(struct device *dev, size_t size, in xen_grant_dma_alloc() argument
83 unsigned int i, n_pages = XEN_PFN_UP(size); in xen_grant_dma_alloc()
116 static void xen_grant_dma_free(struct device *dev, size_t size, void *vaddr, in xen_grant_dma_free() argument
120 unsigned int i, n_pages = XEN_PFN_UP(size); in xen_grant_dma_free()
145 static struct page *xen_grant_dma_alloc_pages(struct device *dev, size_t size, in xen_grant_dma_alloc_pages() argument
152 vaddr = xen_grant_dma_alloc(dev, size, dma_handle, gfp, 0); in xen_grant_dma_alloc_pages()
159 static void xen_grant_dma_free_pages(struct device *dev, size_t size, in xen_grant_dma_free_pages() argument
163 xen_grant_dma_free(dev, size, page_to_virt(vaddr), dma_handle, 0); in xen_grant_dma_free_pages()
167 unsigned long offset, size_t size, in xen_grant_dma_map_page()
174 unsigned int i, n_pages = XEN_PFN_UP(dma_offset + size); in xen_grant_dma_map_page()
166 xen_grant_dma_map_page(struct device *dev, struct page *page, unsigned long offset, size_t size, enum dma_data_direction dir, unsigned long attrs) xen_grant_dma_map_page() argument
202 xen_grant_dma_unmap_page(struct device *dev, dma_addr_t dma_handle, size_t size, enum dma_data_direction dir, unsigned long attrs) xen_grant_dma_unmap_page() argument
[all...]
/kernel/linux/linux-6.6/include/linux/netfilter/
H A Dx_tables.h250 unsigned int size; member
286 unsigned int *xt_alloc_entry_offsets(unsigned int size);
288 unsigned int target, unsigned int size);
290 int xt_check_proc_name(const char *name, unsigned int size);
292 int xt_check_match(struct xt_mtchk_param *, unsigned int size, u16 proto,
294 int xt_check_target(struct xt_tgchk_param *, unsigned int size, u16 proto,
302 int usersize, int size, int aligned_size);
335 struct xt_table_info *xt_alloc_table_info(unsigned int size);
523 unsigned int *size);
525 void __user **dstptr, unsigned int *size);
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Duaccess.h40 * raw_copy_{to,from}_user(to, from, size) should copy up to size bytes and
43 * No KASAN or object size checks either - those belong here.
45 * Both of these functions should attempt to copy size bytes starting at from
48 * copied successfully) and size (nothing copied).
50 * If raw_copy_{to,from}_user(to, from, size) returns N, size - N bytes starting
52 * starting at from. All data past to + size - N must be left unmodified.
56 * hard requirement is that not storing anything at all (i.e. returning size)
271 * @size
280 probe_subpage_writeable(char __user *uaddr, size_t size) probe_subpage_writeable() argument
351 size_t size = min(ksize, usize); copy_struct_from_user() local
[all...]
/kernel/linux/linux-6.6/drivers/video/fbdev/
H A Dsbuslib.c34 static unsigned long sbusfb_mmapsize(long size, unsigned long fbsize) in sbusfb_mmapsize() argument
36 if (size == SBUS_MMAP_EMPTY) return 0; in sbusfb_mmapsize()
37 if (size >= 0) return size; in sbusfb_mmapsize()
38 return fbsize * (-size); in sbusfb_mmapsize()
47 unsigned int size, page, r, map_size; in sbusfb_mmap_helper() local
55 size = vma->vm_end - vma->vm_start; in sbusfb_mmap_helper()
66 for (page = 0; page < size; ){ in sbusfb_mmap_helper()
68 for (i = 0; map[i].size; i++) in sbusfb_mmap_helper()
70 map_size = sbusfb_mmapsize(map[i].size, fbsiz in sbusfb_mmap_helper()
[all...]
/kernel/linux/linux-6.6/drivers/firmware/meson/
H A Dmeson_sm.c79 static void __iomem *meson_sm_map_shmem(u32 cmd_shmem, unsigned int size) in meson_sm_map_shmem() argument
87 return ioremap_cache(sm_phy_base, size); in meson_sm_map_shmem()
138 * Return: size of read data on success, a negative value on error
146 u32 size; in meson_sm_call_read() local
158 if (meson_sm_call(fw, cmd_index, &size, arg0, arg1, arg2, arg3, arg4) < 0) in meson_sm_call_read()
161 if (size > bsize) in meson_sm_call_read()
164 ret = size; in meson_sm_call_read()
166 if (!size) in meson_sm_call_read()
167 size = bsize; in meson_sm_call_read()
170 memcpy(buffer, fw->sm_shmem_out_base, size); in meson_sm_call_read()
191 meson_sm_call_write(struct meson_sm_firmware *fw, void *buffer, unsigned int size, unsigned int cmd_index, u32 arg0, u32 arg1, u32 arg2, u32 arg3, u32 arg4) meson_sm_call_write() argument
[all...]
/kernel/linux/linux-6.6/drivers/of/
H A Dkexec.c32 * fdt_find_and_del_mem_rsv - delete memory reservation with given address and size
36 * @size: Size of the reserved memory.
40 static int fdt_find_and_del_mem_rsv(void *fdt, unsigned long start, unsigned long size) in fdt_find_and_del_mem_rsv() argument
53 if (rsv_start == start && rsv_size == size) { in fdt_find_and_del_mem_rsv()
68 * get_addr_size_cells - Get address and size of root node
71 * @size_cells: Return size of the root node
92 * do_get_kexec_buffer - Get address and size of device tree property
97 * @size: Return size of the node
102 size_t *size) in do_get_kexec_buffer()
101 do_get_kexec_buffer(const void *prop, int len, unsigned long *addr, size_t *size) do_get_kexec_buffer() argument
127 ima_get_kexec_buffer(void **addr, size_t *size) ima_get_kexec_buffer() argument
172 size_t size; ima_free_kexec_buffer() local
205 size_t size; remove_ima_buffer() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/dispnv50/
H A Dheadc57d.c111 NVVAL(NVC57D, HEAD_SET_OLUT_CONTROL, SIZE, asyh->olut.size), in headc57d_olut_set()
120 headc57d_olut_load_8(struct drm_color_lut *in, int size, void __iomem *mem) in headc57d_olut_load_8() argument
125 while (size--) { in headc57d_olut_load_8()
131 if (in++, size) { in headc57d_olut_load_8()
153 headc57d_olut_load(struct drm_color_lut *in, int size, void __iomem *mem) in headc57d_olut_load() argument
158 for (; size--; in++, mem += 0x08) { in headc57d_olut_load()
173 headc57d_olut(struct nv50_head *head, struct nv50_head_atom *asyh, int size) in headc57d_olut() argument
175 if (size != 0 && size != 256 && size ! in headc57d_olut()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/
H A Dradeon_ring.c74 * radeon_ring_free_size - update the free size
114 /* Align requested size with padding so unlock_commit can in radeon_ring_alloc()
175 /* We pad to match fetch size */ in radeon_ring_commit()
286 unsigned size, ptr, i; in radeon_ring_backup() local
314 size = ring->wptr + (ring->ring_size / 4); in radeon_ring_backup()
315 size -= ptr; in radeon_ring_backup()
316 size &= ring->ptr_mask; in radeon_ring_backup()
317 if (size == 0) { in radeon_ring_backup()
323 *data = kvmalloc_array(size, sizeof(uint32_t), GFP_KERNEL); in radeon_ring_backup()
328 for (i = 0; i < size; in radeon_ring_backup()
347 radeon_ring_restore(struct radeon_device *rdev, struct radeon_ring *ring, unsigned size, uint32_t *data) radeon_ring_restore() argument
[all...]
/kernel/linux/linux-6.6/drivers/iio/chemical/
H A Dsps30_serial.c51 static int sps30_serial_xfer(struct sps30_state *state, const unsigned char *buf, size_t size) in sps30_serial_xfer() argument
61 ret = serdev_device_write(serdev, buf, size, SPS30_SERIAL_TIMEOUT); in sps30_serial_xfer()
64 if (ret != size) in sps30_serial_xfer()
195 int ret, size; in sps30_serial_command() local
197 size = sps30_serial_prep_frame(buf, cmd, arg, arg_size); in sps30_serial_command()
198 ret = sps30_serial_xfer(state, buf, size); in sps30_serial_command()
214 const unsigned char *buf, size_t size) in sps30_serial_receive_buf()
230 return size; in sps30_serial_receive_buf()
233 if (!priv->num && size && buf[0] != SPS30_SERIAL_SOF_EOF) in sps30_serial_receive_buf()
236 if (priv->num + size > in sps30_serial_receive_buf()
213 sps30_serial_receive_buf(struct serdev_device *serdev, const unsigned char *buf, size_t size) sps30_serial_receive_buf() argument
[all...]
/kernel/linux/linux-6.6/drivers/i2c/busses/
H A Di2c-sis5595.c280 u8 command, int size, union i2c_smbus_data *data) in sis5595_access()
284 switch (size) { in sis5595_access()
287 size = SIS5595_QUICK; in sis5595_access()
293 size = SIS5595_BYTE; in sis5595_access()
300 size = SIS5595_BYTE_DATA; in sis5595_access()
311 size = (size == I2C_SMBUS_PROC_CALL) ? SIS5595_PROC_CALL : SIS5595_WORD_DATA; in sis5595_access()
314 dev_warn(&adap->dev, "Unsupported transaction %d\n", size); in sis5595_access()
318 sis5595_write(SMB_CTL_LO, ((size & 0x0E))); in sis5595_access()
324 if ((size ! in sis5595_access()
278 sis5595_access(struct i2c_adapter *adap, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data) sis5595_access() argument
[all...]
/kernel/linux/linux-6.6/drivers/md/bcache/
H A Dbcache_ondisk.h11 #define BITMASK(name, type, field, offset, size) \
13 { return (k->field >> offset) & ~(~0ULL << size); } \
17 k->field &= ~(~(~0ULL << size) << offset); \
18 k->field |= (v & ~(~0ULL << size)) << offset; \
29 #define KEY_FIELD(name, field, offset, size) \
30 BITMASK(name, struct bkey, field, offset, size)
32 #define PTR_FIELD(name, offset, size) \
34 { return (k->ptr[i] >> offset) & ~(~0ULL << size); } \
38 k->ptr[i] &= ~(~(~0ULL << size) << offset); \
39 k->ptr[i] |= (v & ~(~0ULL << size)) << offse
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/x86_64/
H A Dvmx_set_nested_state_test.c72 state->size = sizeof(*state); in set_default_state()
75 void set_default_vmx_state(struct kvm_nested_state *state, int size) in set_default_vmx_state() argument
77 memset(state, 0, size); in set_default_vmx_state()
81 state->size = size; in set_default_vmx_state()
195 state->size = sizeof(*state); in test_vmx_nested_state()
200 state->size = sizeof(*state); in test_vmx_nested_state()
215 state->size = sizeof(*state); in test_vmx_nested_state()
237 TEST_ASSERT(state->size >= sizeof(*state) && state->size < in test_vmx_nested_state()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/fp/
H A Dzt-ptrace.c35 static void fill_buf(char *buf, size_t size) in fill_buf() argument
39 for (i = 0; i < size; i++) in fill_buf()
54 static struct user_za_header *get_za(pid_t pid, void **buf, size_t *size) in get_za() argument
62 if (*size < sz) { in get_za()
70 *size = sz; in get_za()
79 if (za->size <= sz) in get_za()
82 sz = za->size; in get_za()
96 iov.iov_len = za->size; in set_za()
130 za.size = sizeof(za); in ptrace_za_disabled_read_zt()
202 za_in.size in ptrace_enable_za_via_zt()
[all...]

Completed in 20 milliseconds

1...<<171172173174175176177178179180>>...1671