/kernel/linux/linux-5.10/drivers/staging/rtl8192u/ |
H A D | r819xU_firmware.c | 248 if (fw_entry->size > sizeof(pfirmware->firmware_buf)) { in init_firmware() 249 RT_TRACE(COMP_ERR, "img file size exceed the container buffer fail!\n"); in init_firmware() 254 memcpy(pfirmware->firmware_buf, fw_entry->data, fw_entry->size); in init_firmware() 256 file_length = fw_entry->size; in init_firmware() 259 memcpy(&pfirmware->firmware_buf[128], fw_entry->data, fw_entry->size); in init_firmware() 261 file_length = fw_entry->size + 128; in init_firmware()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | vfio.h | 52 size_t count, loff_t *size); 87 size_t count, loff_t *size); 173 size_t size; member 176 struct vfio_info_cap *caps, size_t size, u16 id, u16 version); 181 size_t size);
|
/kernel/linux/linux-5.10/include/linux/usb/ |
H A D | usbnet.h | 54 size_t rx_urb_size; /* size for rx urbs */ 190 u16 value, u16 index, void *data, u16 size); 192 u16 value, u16 index, const void *data, u16 size); 194 u16 value, u16 index, void *data, u16 size); 196 u16 value, u16 index, const void *data, u16 size); 198 u16 value, u16 index, const void *data, u16 size);
|
/kernel/linux/linux-5.10/sound/isa/sb/ |
H A D | emu8000_patch.c | 151 if (sp->v.size == 0) in snd_emu8000_sample_new() 158 /* compute true data size to be loaded */ in snd_emu8000_sample_new() 159 truesize = sp->v.size; in snd_emu8000_sample_new() 173 if (!access_ok(data, sp->v.size)) in snd_emu8000_sample_new() 176 if (!access_ok(data, sp->v.size * 2)) in snd_emu8000_sample_new() 190 /* set the total size (store onto obsolete checksum value) */ in snd_emu8000_sample_new() 213 for (i = 0; i < sp->v.size; i++) { in snd_emu8000_sample_new()
|
/kernel/linux/linux-5.10/tools/lib/bpf/ |
H A D | xsk.h | 31 __u32 size; \ 93 * cached_cons is r->size bigger than the real consumer pointer so in xsk_prod_nb_free() 97 * free_entries = r->cached_prod - r->cached_cons + r->size. in xsk_prod_nb_free() 99 r->cached_cons = *r->consumer + r->size; in xsk_prod_nb_free() 217 void *umem_area, __u64 size, 222 void *umem_area, __u64 size, 227 void *umem_area, __u64 size,
|
/kernel/linux/linux-5.10/sound/soc/pxa/ |
H A D | mmp-pcm.c | 165 size_t size = mmp_pcm_hardware[stream].buffer_bytes_max; in mmp_pcm_free_dma_buffers() local 174 gen_pool_free(gpool, (unsigned long)buf->area, size); in mmp_pcm_free_dma_buffers() local 184 size_t size = mmp_pcm_hardware[stream].buffer_bytes_max; in mmp_pcm_preallocate_dma_buffer() local 195 buf->area = gen_pool_dma_alloc(gpool, size, &buf->addr); in mmp_pcm_preallocate_dma_buffer() 198 buf->bytes = size; in mmp_pcm_preallocate_dma_buffer()
|
/kernel/linux/linux-5.10/sound/soc/sof/intel/ |
H A D | hda-ipc.c | 95 reply.hdr.size = sizeof(reply); in hda_dsp_ipc_get_reply() 108 /* reply correct size ? */ in hda_dsp_ipc_get_reply() 109 if (reply.hdr.size != msg->reply_size && in hda_dsp_ipc_get_reply() 113 msg->reply_size, reply.hdr.size); in hda_dsp_ipc_get_reply() 260 if (!substream || !sdev->stream_box.size) { in hda_ipc_msg_data() 290 if (posn_offset > sdev->stream_box.size || in hda_ipc_pcm_params()
|
/kernel/linux/linux-5.10/tools/firmware/ |
H A D | ihex2fw.c | 53 static int process_ihex(uint8_t *data, ssize_t size); 132 static int process_ihex(uint8_t *data, ssize_t size) in process_ihex() argument 146 while (i < size) { in process_ihex() 152 if (i + 10 > size) { in process_ihex() 172 if (i + 8 + (record->len * 2) > size) { in process_ihex()
|
/kernel/linux/linux-5.10/include/uapi/linux/raid/ |
H A D | md_p.h | 42 * If x is the real device size in bytes, we return an apparent size of: 147 __u32 size; /* 8 Apparent size of each individual disk */ member 186 __u32 new_chunk; /* 17 new chunk size (bytes) */ 193 __u32 chunk_size; /* 1 chunk size in bytes */ 226 * total size: 256 bytes plus 2 per device. 242 __le64 size; /* used size of component devices, in 512byte sectors */ member 255 __le16 size; /* pp member 361 __le32 size; /* sector. data/parity size. each 4k global() member 383 __le32 size; /* flush_stripes size, bytes */ global() member [all...] |
/kernel/linux/linux-5.10/fs/configfs/ |
H A D | symlink.c | 61 int depth, size; in configfs_get_target_path() local 65 size = item_path_length(target) + depth * 3 - 1; in configfs_get_target_path() 66 if (size > PATH_MAX) in configfs_get_target_path() 69 pr_debug("%s: depth = %d, size = %d\n", __func__, depth, size); in configfs_get_target_path() 74 fill_item_path(target, path, size); in configfs_get_target_path()
|
/kernel/linux/linux-5.10/drivers/w1/slaves/ |
H A D | w1_ds2805.c | 40 * Check the file size bounds and adjusts count as needed. 41 * This would not be needed if the file size didn't reset to 0 after a write. 43 static inline size_t w1_f0d_fix_count(loff_t off, size_t count, size_t size) in w1_f0d_fix_count() argument 45 if (off > size) in w1_f0d_fix_count() 48 if ((off + count) > size) in w1_f0d_fix_count() 49 return size - off; in w1_f0d_fix_count() 216 /* Can only write data in blocks of the size of the scratchpad */ in w1_f0d_write_bin() 269 .size = W1_F0D_EEPROM_SIZE,
|
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | btrfs_inode.h | 152 * the size of the file stored in the metadata on disk. data=ordered 153 * means the in-memory i_size might be larger than the size on disk 277 static inline void btrfs_i_size_write(struct btrfs_inode *inode, u64 size) in btrfs_i_size_write() argument 279 i_size_write(&inode->vfs_inode, size); in btrfs_i_size_write() 280 inode->disk_i_size = size; in btrfs_i_size_write() 369 #define CSUM_FMT_VALUE(size, bytes) size, bytes
|
/kernel/linux/linux-5.10/lib/ |
H A D | decompress_unzstd.c | 11 * The safety margin for ZSTD with a 128 KB block size is calculated below. 28 * ZSTD stores the data in blocks. Each block has a header whose size is 30 * The maximum uncompressed size of the payload is 128 KB. The minimum 31 * uncompressed size of the payload is never less than the payload size 34 * The assumption, that the uncompressed size of the payload is never 44 * - 3 bytes per every 128 KiB of uncompressed size (one block header per 46 * - 128 KiB (biggest possible zstd block size) to make sure that the 82 /* 128MB is the maximum window size supported by zstd. */ 86 * Pick a larger size becaus [all...] |
/kernel/linux/linux-5.10/kernel/ |
H A D | ksysfs.c | 109 ssize_t size = crash_get_memory_size(); in kexec_crash_size_show() local 111 if (size < 0) in kexec_crash_size_show() 112 return size; in kexec_crash_size_show() 114 return sprintf(buf, "%zd\n", size); in kexec_crash_size_show() 258 notes_attr.size = notes_size; in ksysfs_init()
|
/kernel/linux/linux-5.10/fs/orangefs/ |
H A D | protocol.h | 51 void *p, int size) in ORANGEFS_khandle_to() 55 memset(p + 16, 0, size - 16); in ORANGEFS_khandle_to() 60 void *p, int size) in ORANGEFS_khandle_from() 219 __s32 key_sz; /* __s32 for portable, fixed-size structures */ 233 __s64 size; member 238 /* Changed to __s32 so that size of structure does not change */ 241 /* Changed to __s32 so that size of structure does not change */ 244 /* Changed to __s32 so that size of structure does not change */ 247 /* Changed to __s32 so that size of structure does not change */ 347 __s32 size; member 50 ORANGEFS_khandle_to(const struct orangefs_khandle *kh, void *p, int size) ORANGEFS_khandle_to() argument 59 ORANGEFS_khandle_from(struct orangefs_khandle *kh, void *p, int size) ORANGEFS_khandle_from() argument [all...] |
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | tcp_diag.c | 147 size_t size = 0; in tcp_diag_get_aux_size() local 162 size += nla_total_size(md5sig_count * in tcp_diag_get_aux_size() 172 size += nla_total_size(0) + in tcp_diag_get_aux_size() 175 size += ulp_ops->get_info_size(sk); in tcp_diag_get_aux_size() 178 return size; in tcp_diag_get_aux_size()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/ |
H A D | xtensa.c | 103 u64 addr, size; in nvkm_xtensa_init() local 116 if (fw->size > 0x40000) { in nvkm_xtensa_init() 131 for (i = 0; i < fw->size / 4; i++) in nvkm_xtensa_init() 138 size = nvkm_memory_size(xtensa->gpu_fw); in nvkm_xtensa_init() 149 nvkm_wr32(device, base + 0xcc8, size >> 8); /* XT_REGION_LIMIT */ in nvkm_xtensa_init()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/ |
H A D | nouveau_bo.h | 29 /* GPU address space is independent of CPU word size */ 79 struct nouveau_bo *nouveau_bo_alloc(struct nouveau_cli *, u64 *size, int *align, 81 int nouveau_bo_init(struct nouveau_bo *, u64 size, int align, u32 domain, 83 int nouveau_bo_new(struct nouveau_cli *, u64 size, int align, u32 domain, 125 nouveau_bo_new_pin_map(struct nouveau_cli *cli, u64 size, int align, u32 domain, in nouveau_bo_new_pin_map() argument 128 int ret = nouveau_bo_new(cli, size, align, domain, in nouveau_bo_new_pin_map()
|
/kernel/linux/linux-5.10/drivers/media/v4l2-core/ |
H A D | videobuf-vmalloc.c | 135 static struct videobuf_buffer *__videobuf_alloc_vb(size_t size) in __videobuf_alloc_vb() argument 140 vb = kzalloc(size + sizeof(*mem), GFP_KERNEL); in __videobuf_alloc_vb() 144 mem = vb->priv = ((char *)vb) + size; in __videobuf_alloc_vb() 148 __func__, vb, (long)sizeof(*vb), (long)size - sizeof(*vb), in __videobuf_alloc_vb() 176 pages = PAGE_ALIGN(vb->size); in __videobuf_iolock()
|
/kernel/linux/linux-5.10/drivers/media/platform/vsp1/ |
H A D | vsp1_hgo.c | 46 size_t size; in vsp1_hgo_frame_end() local 65 size = (2 + 256) * sizeof(u32); in vsp1_hgo_frame_end() 73 size = (2 + 64) * sizeof(u32); in vsp1_hgo_frame_end() 89 size = (6 + 64 * 3) * sizeof(u32); in vsp1_hgo_frame_end() 92 vsp1_histogram_buffer_complete(&hgo->histo, buf, size); in vsp1_hgo_frame_end()
|
/kernel/linux/linux-5.10/drivers/nvmem/ |
H A D | lpc18xx_eeprom.c | 35 /* Fixed page size (bytes) */ 51 int size; member 101 if ((reg > eeprom->size - LPC18XX_EEPROM_PAGE_SIZE) || in lpc18xx_eeprom_gather_write() 102 (reg + bytes > eeprom->size - LPC18XX_EEPROM_PAGE_SIZE)) in lpc18xx_eeprom_gather_write() 231 eeprom->size = resource_size(res); in lpc18xx_eeprom_probe() 232 lpc18xx_nvmem_config.size = resource_size(res); in lpc18xx_eeprom_probe()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/virtio/ |
H A D | virtgpu_gem.c | 74 args->size = pitch * args->height; in virtio_gpu_mode_dumb_create() 75 args->size = ALIGN(args->size, PAGE_SIZE); in virtio_gpu_mode_dumb_create() 80 params.size = args->size; in virtio_gpu_mode_dumb_create()
|
/kernel/linux/linux-5.10/drivers/remoteproc/ |
H A D | wkup_m3_rproc.c | 32 * @size: Size of the memory region 38 size_t size; member 95 wkupm3->mem[i].dev_addr + wkupm3->mem[i].size) { in wkup_m3_rproc_da_to_va() 131 u64 size; in wkup_m3_rproc_probe() local 179 wkupm3->mem[i].size = resource_size(res); in wkup_m3_rproc_probe() 180 addrp = of_get_address(dev->of_node, i, &size, NULL); in wkup_m3_rproc_probe()
|
/kernel/linux/linux-5.10/drivers/staging/gs_fpgaboot/ |
H A D | gs_fpgaboot.c | 41 static int readinfo_bitstream(u8 *bitdata, u8 *buf, int size, int *offset) in readinfo_bitstream() argument 53 if (len >= size) { in readinfo_bitstream() 203 int size, i, cnt; in gs_download_image() local 207 size = fimage->lendata; in gs_download_image() 235 for (i = 0; i < size; i += bus_bytes) in gs_download_image()
|
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/ |
H A D | atomisp_compat_ioctl32.h | 138 unsigned int size; member 144 unsigned int size; member 153 compat_size_t size; member 157 __u32 size; member 271 __u32 size; /* Firmware binary size */ member
|