/kernel/linux/linux-6.6/drivers/ps3/ |
H A D | ps3av.c | 24 #define BUFSIZE 4096 /* vuart buf size */ 25 #define PS3AV_BUF_SIZE 512 /* max packet size */ 160 "recv event packet cid:%08x port:0x%x size:%d\n", in ps3av_parse_event_packet() 162 hdr->size); in ps3av_parse_event_packet() 165 "%s: failed event packet, cid:%08x size:%d\n", in ps3av_parse_event_packet() 166 __func__, hdr->cid, hdr->size); in ps3av_parse_event_packet() 176 const void *buf, unsigned long size) in ps3av_vuart_write() 180 error = ps3_vuart_write(dev, buf, size); in ps3av_vuart_write() 182 return error ? error : size; in ps3av_vuart_write() 186 unsigned long size, in in ps3av_vuart_read() 175 ps3av_vuart_write(struct ps3_system_bus_device *dev, const void *buf, unsigned long size) ps3av_vuart_write() argument 185 ps3av_vuart_read(struct ps3_system_bus_device *dev, void *buf, unsigned long size, int timeout) ps3av_vuart_read() argument 281 ps3av_set_hdr(u32 cid, u16 size, struct ps3av_send_hdr *hdr) ps3av_set_hdr() argument 832 int size; ps3av_set_video_mode() local 878 int size; ps3av_video_mode2res() local [all...] |
/kernel/linux/linux-6.6/drivers/net/usb/ |
H A D | sr9800.c | 29 u16 size, void *data) in sr_read_cmd() 34 data, size); in sr_read_cmd() 35 if ((err != size) && (err >= 0)) in sr_read_cmd() 42 u16 size, void *data) in sr_write_cmd() 47 data, size); in sr_write_cmd() 48 if ((err != size) && (err >= 0)) in sr_write_cmd() 56 u16 size, void *data) in sr_write_cmd_async() 59 size); in sr_write_cmd_async() 72 u16 size; in sr_rx_fixup() local 77 size in sr_rx_fixup() 28 sr_read_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, u16 size, void *data) sr_read_cmd() argument 41 sr_write_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, u16 size, void *data) sr_write_cmd() argument 55 sr_write_cmd_async(struct usbnet *dev, u8 cmd, u16 value, u16 index, u16 size, void *data) sr_write_cmd_async() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/microchip/wilc1000/ |
H A D | sdio.c | 95 int size, ret; in wilc_sdio_cmd53() local 104 size = cmd->count * cmd->block_size; in wilc_sdio_cmd53() 106 size = cmd->count; in wilc_sdio_cmd53() 109 if (size > sizeof(u32)) in wilc_sdio_cmd53() 117 memcpy(buf, cmd->buffer, size); in wilc_sdio_cmd53() 119 ret = sdio_memcpy_toio(func, cmd->address, buf, size); in wilc_sdio_cmd53() 121 ret = sdio_memcpy_fromio(func, buf, cmd->address, size); in wilc_sdio_cmd53() 124 memcpy(cmd->buffer, buf, size); in wilc_sdio_cmd53() 414 static int wilc_sdio_write(struct wilc *wilc, u32 addr, u8 *buf, u32 size) in wilc_sdio_write() argument 437 size in wilc_sdio_write() 537 wilc_sdio_read(struct wilc *wilc, u32 addr, u8 *buf, u32 size) wilc_sdio_read() argument 736 wilc_sdio_read_size(struct wilc *wilc, u32 *size) wilc_sdio_read_size() argument [all...] |
/kernel/linux/linux-6.6/drivers/parisc/ |
H A D | dino.c | 172 int size, u32 *val) in dino_cfg_read() 181 size); in dino_cfg_read() 188 if (size == 1) { in dino_cfg_read() 190 } else if (size == 2) { in dino_cfg_read() 192 } else if (size == 4) { in dino_cfg_read() 207 int size, u32 val) in dino_cfg_write() 216 size); in dino_cfg_write() 226 if (size == 1) { in dino_cfg_write() 228 } else if (size == 2) { in dino_cfg_write() 230 } else if (size in dino_cfg_write() 171 dino_cfg_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) dino_cfg_read() argument 206 dino_cfg_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) dino_cfg_write() argument 514 int size; dino_card_setup() local [all...] |
/kernel/linux/linux-6.6/drivers/greybus/ |
H A D | operation.c | 339 header->size = cpu_to_le16(message_size); in gb_operation_message_init() 358 * message payload / the message size 369 dev_warn(&hd->dev, "requested message size too big (%zu > %zu)\n", in gb_operation_message_alloc() 499 * size. 502 * initialized with the type of the request and the message size. 503 * Outgoing operations must also specify the response buffer size, 631 u8 type, void *data, size_t size) in gb_operation_create_incoming() 638 request_size = size - sizeof(struct gb_operation_msg_hdr); in gb_operation_create_incoming() 651 memcpy(operation->request->header, data, size); in gb_operation_create_incoming() 915 void *data, size_t size) in gb_connection_recv_request() 630 gb_operation_create_incoming(struct gb_connection *connection, u16 id, u8 type, void *data, size_t size) gb_operation_create_incoming() argument 913 gb_connection_recv_request(struct gb_connection *connection, const struct gb_operation_msg_hdr *header, void *data, size_t size) gb_connection_recv_request() argument 957 gb_connection_recv_response(struct gb_connection *connection, const struct gb_operation_msg_hdr *header, void *data, size_t size) gb_connection_recv_response() argument 1026 gb_connection_recv(struct gb_connection *connection, void *data, size_t size) gb_connection_recv() argument [all...] |
/kernel/linux/linux-6.6/drivers/hid/intel-ish-hid/ishtp/ |
H A D | client.c | 20 int size; in ishtp_cl_get_tx_free_buffer_size() local 23 size = cl->tx_ring_free_size * cl->device->fw_client->props.max_msg_length; in ishtp_cl_get_tx_free_buffer_size() 26 return size; in ishtp_cl_get_tx_free_buffer_size() 582 * max ISHTP message size per client in ishtp_cl_send() 589 cl_msg->send_buf.size = length; in ishtp_cl_send() 633 * if message size is bigger than IPC FIFO size, and all 679 rem = cl_msg->send_buf.size - cl->tx_offs; in ipc_tx_send() 704 rem = cl_msg->send_buf.size - cl->tx_offs; in ipc_tx_send() 767 msg_addr = ishtp_cl_get_dma_send_buf(dev, cl_msg->send_buf.size); in ishtp_cl_send_msg_dma() 1100 ishtp_set_tx_ring_size(struct ishtp_cl *cl, int size) ishtp_set_tx_ring_size() argument 1106 ishtp_set_rx_ring_size(struct ishtp_cl *cl, int size) ishtp_set_rx_ring_size() argument [all...] |
/kernel/linux/linux-6.6/lib/zstd/compress/ |
H A D | zstd_ldm.c | 90 * size bytes following the data pointer. This function terminates when 97 BYTE const* data, size_t size, in ZSTD_ldm_gear_feed() 118 while (n + 3 < size) { in ZSTD_ldm_gear_feed() 124 while (n < size) { in ZSTD_ldm_gear_feed() 454 rawSeq* const seq = rawSeqStore->seq + rawSeqStore->size; in ZSTD_ldm_generateSequences_internal() 457 if (rawSeqStore->size == rawSeqStore->capacity) in ZSTD_ldm_generateSequences_internal() 462 rawSeqStore->size++; in ZSTD_ldm_generateSequences_internal() 495 static void ZSTD_ldm_reduceTable(ldmEntry_t* const table, U32 const size, in ZSTD_ldm_reduceTable() argument 499 for (u = 0; u < size; u++) { in ZSTD_ldm_reduceTable() 525 assert(sequences->pos <= sequences->size); in ZSTD_ldm_generateSequences() 96 ZSTD_ldm_gear_feed(ldmRollingHashState_t* state, BYTE const* data, size_t size, size_t* splits, unsigned* numSplits) ZSTD_ldm_gear_feed() argument [all...] |
/kernel/linux/linux-6.6/net/caif/ |
H A D | caif_socket.c | 343 size_t size, int flags) in caif_stream_recvmsg() 364 target = sock_rcvlowat(sk, flags&MSG_WAITALL, size); in caif_stream_recvmsg() 419 chunk = min_t(unsigned int, skb->len, size); in caif_stream_recvmsg() 427 size -= chunk; in caif_stream_recvmsg() 448 } while (size); in caif_stream_recvmsg() 550 /* Error if trying to write more than maximum frame size. */ in caif_seqpkt_sendmsg() 590 int err, size; in caif_stream_sendmsg() local 610 size = len-sent; in caif_stream_sendmsg() 612 if (size > cf_sk->maxframe) in caif_stream_sendmsg() 613 size in caif_stream_sendmsg() 342 caif_stream_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, int flags) caif_stream_recvmsg() argument [all...] |
/test/xts/acts/security_lite/huks/common/ |
H A D | hks_test_common.c | 55 (*blob)->size = realBlobDataSize; in TestConstuctBlob() 64 tmp.size = HKS_TEST_1024; in TestConstuctBlob() 65 tmp.data = (uint8_t *)HksTestMalloc(tmp.size); in TestConstuctBlob() 67 (void)memset_s(tmp.data, tmp.size, 0, tmp.size); in TestConstuctBlob() 71 HKS_TEST_ASSERT(memcpy_s((*blob)->data + offset, realBlobDataSize - offset, tmp.data, tmp.size) == EOK); in TestConstuctBlob() 72 offset += tmp.size; in TestConstuctBlob() 78 tmp.size = remainSize; in TestConstuctBlob() 79 tmp.data = (uint8_t *)HksTestMalloc(tmp.size); in TestConstuctBlob() 81 (void)memset_s(tmp.data, tmp.size, in TestConstuctBlob() [all...] |
/drivers/peripheral/camera/vdi_base/common/buffer_manager/src/heap_buffer_allocator/ |
H A D | heap_buffer_allocator.cpp | 37 uint32_t size = CalculateSize(width, height, cameraUsage, cameraFormat); in AllocBuffer() local 39 if (size > 0) { in AllocBuffer() 40 heap = new (std::nothrow) char[size]; in AllocBuffer() 48 buffer->SetSize(size); in AllocBuffer() 55 CAMERA_LOGD("Alloc buffer succeed to shared memory segment size:%{public}d.", size); in AllocBuffer() 127 yuv420 size= w * h * 3 / 2 in CalculateSize() 140 yuv422 size= w * h * 2 in CalculateSize()
|
/kernel/linux/linux-5.10/arch/m68k/68000/ |
H A D | m68VZ328.c | 63 static void __init init_hardware(char *command, int size) in init_hardware() argument 149 static void __init init_hardware(char *command, int size) in init_hardware() argument 170 static void __init init_hardware(char *command, int size) in init_hardware() argument 178 void __init config_BSP(char *command, int size) in config_BSP() argument 182 init_hardware(command, size); in config_BSP()
|
/kernel/linux/linux-5.10/arch/arm/include/asm/ |
H A D | uaccess-asm.h | 19 .macro check_uaccess, addr:req, size:req, limit:req, tmp:req, bad:req 21 adds \tmp, \addr, #\size - 1 31 .macro uaccess_mask_range_ptr, addr:req, size:req, limit:req, tmp:req 36 subshs \tmp, \tmp, \size @ tmp = limit - (addr + size) }
|
/kernel/linux/linux-5.10/arch/ia64/include/uapi/asm/ |
H A D | cmpxchg.h | 30 #define __xchg(x, ptr, size) \ 34 switch (size) { \ 71 #define ia64_cmpxchg(sem, ptr, old, new, size) \ 75 switch (size) { \ 91 switch (size) { \
|
/kernel/linux/linux-5.10/arch/mips/include/asm/ |
H A D | cacheflush.h | 139 extern void (*__flush_kernel_vmap_range)(unsigned long vaddr, int size); 141 static inline void flush_kernel_vmap_range(void *vaddr, int size) in flush_kernel_vmap_range() argument 144 __flush_kernel_vmap_range((unsigned long) vaddr, size); in flush_kernel_vmap_range() 147 static inline void invalidate_kernel_vmap_range(void *vaddr, int size) in invalidate_kernel_vmap_range() argument 150 __flush_kernel_vmap_range((unsigned long) vaddr, size); in invalidate_kernel_vmap_range()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/ |
H A D | firmware.c | 86 size_t size; in fw_hypertas_feature_init() local 92 size = strlen(name); in fw_hypertas_feature_init() 93 if (size && name[size - 1] == '*') { in fw_hypertas_feature_init() 94 if (strncmp(name, s, size - 1)) in fw_hypertas_feature_init()
|
/kernel/linux/linux-5.10/arch/powerpc/mm/nohash/ |
H A D | book3e_pgtable.c | 19 * the vmalloc space using normal page tables, though the size of 26 /* Create a PTE encoding without page size */ in vmemmap_create_mapping() 30 /* PTEs only contain page size encodings up to 32M */ in vmemmap_create_mapping() 33 /* Encode the size in the PTE */ in vmemmap_create_mapping() 37 * increment phys because all PTEs are of the large size and in vmemmap_create_mapping() 54 static void __init *early_alloc_pgtable(unsigned long size) in early_alloc_pgtable() argument 58 ptr = memblock_alloc_try_nid(size, size, MEMBLOCK_LOW_LIMIT, in early_alloc_pgtable() 63 __func__, size, size, __p in early_alloc_pgtable() [all...] |
/kernel/linux/linux-5.10/arch/x86/boot/compressed/ |
H A D | sev-es.c | 94 void *dst, char *buf, size_t size) in vc_write_mem() 96 memcpy(dst, buf, size); in vc_write_mem() 102 void *src, char *buf, size_t size) in vc_read_mem() 104 memcpy(buf, src, size); in vc_read_mem() 109 static enum es_result vc_ioio_check(struct es_em_ctxt *ctxt, u16 port, size_t size) in vc_ioio_check() argument 93 vc_write_mem(struct es_em_ctxt *ctxt, void *dst, char *buf, size_t size) vc_write_mem() argument 101 vc_read_mem(struct es_em_ctxt *ctxt, void *src, char *buf, size_t size) vc_read_mem() argument
|
/kernel/linux/linux-5.10/arch/sh/include/asm/ |
H A D | dma.h | 109 unsigned long to, size_t size, unsigned int mode); 111 #define dma_write(chan, from, to, size) \ 112 dma_xfer(chan, from, to, size, DMA_MODE_WRITE) 116 #define dma_read(chan, from, to, size) \ 117 dma_xfer(chan, from, to, size, DMA_MODE_READ)
|
/kernel/linux/linux-5.10/arch/powerpc/xmon/ |
H A D | spu.h | 80 #define SIGNED_EXTRACT(insn,size,pos) (((int)((insn) << (32-size-pos))) >> (32-size)) 81 #define UNSIGNED_EXTRACT(insn,size,pos) (((insn) >> pos) & ((1 << size)-1))
|
/kernel/linux/linux-5.10/arch/sh/mm/ |
H A D | tlb-debugfs.c | 27 const char *size; member 91 seq_printf(file, "entry: vpn ppn asid size valid wired\n"); in tlb_seq_show() 94 unsigned long vpn, ppn, asid, size; in tlb_seq_show() local 115 size = (val & 0xf0) >> 4; in tlb_seq_show() 118 if (tlb_sizes[i].bits == size) in tlb_seq_show() 123 sz = tlb_sizes[i].size; in tlb_seq_show()
|
/kernel/linux/linux-5.10/arch/arm/mach-pxa/ |
H A D | xcep.c | 49 .size = 0x00040000, 54 .size = 0x00040000, 59 .size = 0x00100000, 63 .size = 0x00280000, 67 .size = MTDPART_SIZ_FULL,
|
/kernel/linux/linux-5.10/arch/x86/xen/ |
H A D | vga.c | 12 void __init xen_init_vga(const struct dom0_vga_console_info *info, size_t size) in xen_init_vga() argument 28 if (size < offsetof(struct dom0_vga_console_info, u.text_mode_3) in xen_init_vga() 41 if (size < offsetof(struct dom0_vga_console_info, in xen_init_vga() 65 if (size >= offsetof(struct dom0_vga_console_info, in xen_init_vga() 69 if (size >= offsetof(struct dom0_vga_console_info, in xen_init_vga()
|
/kernel/linux/linux-5.10/arch/x86/platform/efi/ |
H A D | efi_32.c | 39 unsigned long size; in efi_map_region() local 43 size = md->num_pages << PAGE_SHIFT; in efi_map_region() 44 end = md->phys_addr + size; in efi_map_region() 53 va = ioremap_cache(md->phys_addr, size); in efi_map_region() 111 gdt_descr.size = GDT_SIZE - 1; in efi_set_virtual_address_map()
|
/kernel/linux/linux-5.10/arch/loongarch/kernel/ |
H A D | efi.c | 80 int size; in efi_init() local 99 size = sizeof(efi_config_table_t); in efi_init() 100 config_tables = early_memremap(efi_config_table, efi_nr_tables * size); in efi_init() 102 early_memunmap(config_tables, efi_nr_tables * size); in efi_init() 114 data.size = tbl->map_size; in efi_init()
|
/kernel/linux/linux-5.10/drivers/firmware/efi/libstub/ |
H A D | relocate.c | 10 * @size: size of the memory area to allocate 23 efi_status_t efi_low_alloc_above(unsigned long size, unsigned long align, in efi_low_alloc_above() argument 38 * larger) allocations, and both the address and size must meet in efi_low_alloc_above() 44 size = round_up(size, EFI_ALLOC_ALIGN); in efi_low_alloc_above() 45 nr_pages = size / EFI_PAGE_SIZE; in efi_low_alloc_above() 70 if ((start + size) > end) in efi_low_alloc_above() 92 * @image_size: size of memory area to copy 93 * @alloc_size: minimum size o [all...] |