/device/soc/hisilicon/hi3861v100/hi3861_adapter/kal/posix/src/ |
H A D | file.c | 213 ssize_t read(int fd, void *buf, size_t nbytes) in read() argument 216 if (nbytes == 0) { in read() 223 if (nbytes > 1024) { in read() 224 nbytes = 1024; /* hks_generate_random: random_size must <= 1024 */ in read() 226 struct hks_blob key = {HKS_BLOB_TYPE_RAW, (uint8_t *)buf, nbytes}; in read() 231 return (ssize_t)nbytes; in read() 234 return recv(fd, buf, nbytes, 0); in read() 237 return hi_read(HI_FS_FD(fd), buf, nbytes); in read() 243 ssize_t write(int fd, const void *buf, size_t nbytes) in write() argument 250 return send(fd, buf, nbytes, in write() [all...] |
/device/qemu/riscv32_virt/liteos_m/board/driver/cfiflash/ |
H A D | cfiflash.c | 211 int32_t CfiFlashRead(uint32_t pdrv, uint32_t *buffer, uint32_t offset, uint32_t nbytes) in CfiFlashRead() argument 215 if ((offset + nbytes) > CFIFLASH_CAPACITY) { in CfiFlashRead() 216 PRINT_ERR("flash over read, offset:%d, nbytes:%d\n", offset, nbytes); in CfiFlashRead() 226 unsigned int words = B2W(nbytes); in CfiFlashRead() 237 int32_t CfiFlashWrite(uint32_t pdrv, const uint32_t *buffer, uint32_t offset, uint32_t nbytes) in CfiFlashWrite() argument 239 if ((offset + nbytes) > CFIFLASH_CAPACITY) { in CfiFlashWrite() 240 PRINT_ERR("flash over write, offset:%d, nbytes:%d\n", offset, nbytes); in CfiFlashWrite() 250 unsigned int words = B2W(nbytes); in CfiFlashWrite() [all...] |
H A D | cfiflash.h | 35 int32_t CfiFlashRead(uint32_t pdrv, uint32_t *buffer, uint32_t offset, uint32_t nbytes); 36 int32_t CfiFlashWrite(uint32_t pdrv, const uint32_t *buffer, uint32_t offset, uint32_t nbytes);
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/mmz/ |
H A D | hisi_allocator.c | 102 /* if aglin is larger than mmz->nbytes, it would trigger the BUG_ON */ in find_fixed_region() 105 blank_len = mmz->phys_start + mmz->nbytes - start; in find_fixed_region() 137 if ((mmz_grain_align(start + len) <= (mmz->phys_start + mmz->nbytes)) && in find_fixed_region() 139 (start < (mmz->phys_start + mmz->nbytes))) { in find_fixed_region() 164 i = mmz_length2grain(mmz->nbytes); in find_fixed_region_from_highaddr() 528 zone->nbytes = _strtoul_ex(argv[3], NULL, 0); /* 3: the fourth args */ in __allocator_init() 529 if (zone->nbytes > g_hi_max_malloc_size) { in __allocator_init() 530 g_hi_max_malloc_size = zone->nbytes; in __allocator_init() 546 zone->nbytes = _strtoul_ex(argv[3], NULL, 0); /* 3: the fourth args */ in __allocator_init() 549 if (zone->nbytes > g_hi_max_malloc_siz in __allocator_init() [all...] |
H A D | media_mem.c | 109 unsigned long nbytes) in hil_mmz_create() 134 p->nbytes = nbytes; in hil_mmz_create() 148 unsigned long nbytes, in hil_mmz_create_v2() 174 p->nbytes = nbytes; in hil_mmz_create_v2() 204 unsigned long new_end = zone->phys_start + zone->nbytes; in _check_mmz() 206 if (zone->nbytes == 0) { in _check_mmz() 223 end = p->phys_start + p->nbytes; in _check_mmz() 833 unsigned long new_end = zone->phys_start + zone->nbytes; 106 hil_mmz_create(const char *name, unsigned long gfp, unsigned long phys_start, unsigned long nbytes) hil_mmz_create() argument 145 hil_mmz_create_v2(const char *name, unsigned long gfp, unsigned long phys_start, unsigned long nbytes, unsigned int alloc_type, unsigned long block_align) hil_mmz_create_v2() argument [all...] |
H A D | cma_allocator.c | 52 unsigned long nbytes; member 605 osal_trace("cmz zone gfp 0x%lx, phys 0x%lx, nbytes 0x%lx\n", 606 cma_zone->gfp, cma_zone->phys_start, cma_zone->nbytes); 609 zone->nbytes = cma_zone->nbytes; 611 if (zone->nbytes > max_malloc_size) { 612 max_malloc_size = zone->nbytes; 628 zone->nbytes = cma_zone->nbytes; 632 if (zone->nbytes > max_malloc_siz [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/include/ |
H A D | osal_mmz.h | 34 unsigned long nbytes; member 51 #define hil_mmz_fmt_arg(p) (p)->phys_start, (p)->phys_start + (p)->nbytes - 1, (p)->gfp, (p)->nbytes / SZ_1K, (p)->name 109 #define mmz_bitmap_size(p) (mmz_align2(mmz_length2grain((p)->nbytes), 8) / 8) 235 unsigned long nbytes); 237 unsigned long nbytes, unsigned int alloc_type, unsigned long block_align);
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/include/ |
H A D | osal_mmz.h | 31 unsigned long nbytes; member 48 #define hil_mmz_fmt_arg(p) (p)->phys_start, (p)->phys_start + (p)->nbytes - 1, (p)->gfp, (p)->nbytes / SZ_1K, (p)->name 106 #define mmz_bitmap_size(p) (mmz_align2(mmz_length2grain((p)->nbytes), 8) / 8) 232 unsigned long nbytes); 234 unsigned long nbytes, unsigned int alloc_type, unsigned long block_align);
|
/device/soc/hisilicon/hi3516dv300/sdk_liteos/include/ |
H A D | osal_mmz.h | 32 unsigned long nbytes; member 49 #define hil_mmz_fmt_arg(p) (p)->phys_start, (p)->phys_start + (p)->nbytes - 1, (p)->gfp, (p)->nbytes / SZ_1K, (p)->name 107 #define mmz_bitmap_size(p) (mmz_align2(mmz_length2grain((p)->nbytes), 8) / 8) 218 unsigned long nbytes); 220 unsigned long nbytes, unsigned int alloc_type, unsigned long block_align);
|
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/osal/ |
H A D | osal_string.c | 69 void osal_get_random_bytes(void *buf, int nbytes) in osal_get_random_bytes() argument 71 get_random_bytes(buf, nbytes); in osal_get_random_bytes()
|
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/mmz/ |
H A D | drv_media_mem.h | 95 HI_U32 nbytes; member 109 #define hil_mmz_fmt_arg(p) (p)->zone_start, (p)->zone_start + (p)->nbytes - 1, (p)->gfp, (p)->nbytes / SZ_1K, (p)->name 192 extern hil_mmz_t *hil_mmz_create(const char *name, HI_U32 gfp, HI_U32 zone_start, HI_U32 nbytes);
|
H A D | drv_media_mem.c | 81 #define mmz_bitmap_size(p) (mmz_align2(mmz_length2grain((p)->nbytes), 8) / 8) 151 hil_mmz_t *hil_mmz_create(const char *name, HI_U32 gfp, HI_U32 zone_start, HI_U32 nbytes) in hil_mmz_create() argument 184 p->nbytes = nbytes; in hil_mmz_create() 353 p->zone_start, p->zone_start + p->nbytes - 1, number, in dump_mem_head() 354 p->iommu, p->gfp, p->nbytes / SZ_1K, p->name, "\""); in dump_mem_head() 359 int total_size = p->nbytes / 1024; /* 1024 1M = 1024 Bytes */ in dump_mem_statistics() 1715 * name,gfp,phys_start,nbytes,alloc_type; 1774 zone->nbytes = heap->size; in media_mem_parse_cmdline() 1779 zone->nbytes in media_mem_parse_cmdline() [all...] |
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/ |
H A D | bcmsdh.c | 612 uint8 *buf, uint nbytes, void *pkt, in bcmsdh_recv_buf() 625 __FUNCTION__, fn, addr, nbytes)); in bcmsdh_recv_buf() 643 SDIOH_READ, fn, addr, width, nbytes, buf, pkt); in bcmsdh_recv_buf() 650 uint8 *buf, uint nbytes, void *pkt, in bcmsdh_send_buf() 663 __FUNCTION__, fn, addr, nbytes)); in bcmsdh_send_buf() 681 SDIOH_WRITE, fn, addr, width, nbytes, buf, pkt); in bcmsdh_send_buf() 687 bcmsdh_rwdata(void *sdh, uint rw, uint32 addr, uint8 *buf, uint nbytes) in bcmsdh_rwdata() argument 701 addr, 4, nbytes, buf, NULL); in bcmsdh_rwdata() 611 bcmsdh_recv_buf(void *sdh, uint32 addr, uint fn, uint flags, uint8 *buf, uint nbytes, void *pkt, bcmsdh_cmplt_fn_t complete_fn, void *handle) bcmsdh_recv_buf() argument 649 bcmsdh_send_buf(void *sdh, uint32 addr, uint fn, uint flags, uint8 *buf, uint nbytes, void *pkt, bcmsdh_cmplt_fn_t complete_fn, void *handle) bcmsdh_send_buf() argument
|
H A D | bcmspibrcm.c | 123 uint32 addr, int nbytes, uint32 *data); 712 uint32 *word, uint nbytes) in sdioh_request_word() 719 status = bcmspi_card_regread(sd, func, addr, nbytes, word); in sdioh_request_word() 721 status = bcmspi_card_regwrite(sd, func, addr, nbytes, *word); in sdioh_request_word() 1670 uint32 addr, int nbytes, uint32 *data) in bcmspi_card_buf() 1682 ASSERT(nbytes); in bcmspi_card_buf() 1683 ASSERT(nbytes <= sd->client_block_size[func]); in bcmspi_card_buf() 1689 if ((nbytes > 2000) && write) { in bcmspi_card_buf() 1690 sd_trace((">2KB write: F2 wr of %d bytes\n", nbytes)); in bcmspi_card_buf() 1692 /* ASSERT(nbytes < in bcmspi_card_buf() 711 sdioh_request_word(sdioh_info_t *sd, uint cmd_type, uint rw, uint func, uint addr, uint32 *word, uint nbytes) sdioh_request_word() argument 1669 bcmspi_card_buf(sdioh_info_t *sd, int rw, int func, bool fifo, uint32 addr, int nbytes, uint32 *data) bcmspi_card_buf() argument [all...] |
H A D | bcmsdh_sdmmc.c | 1039 uint32 *word, uint nbytes) in sdioh_request_word() 1056 sd_info(("%s: cmd_type=%d, rw=%d, func=%d, addr=0x%05x, nbytes=%d\n", in sdioh_request_word() 1057 __FUNCTION__, cmd_type, rw, func, addr, nbytes)); in sdioh_request_word() 1065 if (nbytes == 4) { in sdioh_request_word() 1067 } else if (nbytes == 2) { in sdioh_request_word() 1070 sd_err(("%s: Invalid nbytes: %d\n", __FUNCTION__, nbytes)); in sdioh_request_word() 1073 if (nbytes == 4) { in sdioh_request_word() 1075 } else if (nbytes == 2) { in sdioh_request_word() 1078 sd_err(("%s: Invalid nbytes in sdioh_request_word() 1038 sdioh_request_word(sdioh_info_t *sd, uint cmd_type, uint rw, uint func, uint addr, uint32 *word, uint nbytes) sdioh_request_word() argument [all...] |
H A D | bcmutils.c | 1501 bcm_cmp_bytes(const uchar *arg1, const uchar *arg2, uint8 nbytes) in bcm_cmp_bytes() argument 1505 for (i = nbytes - 1; i >= 0; i--) { in bcm_cmp_bytes() 2698 uint nbytes, /* number of input data bytes to process */ in hndcrc8() 2705 while (nbytes-- > 0) in hndcrc8() 2771 uint nbytes, /* number of input data bytes to process */ in hndcrc16() 2775 while (nbytes-- > 0) in hndcrc16() 2852 hndcrc32(const uint8 *pdata, uint nbytes, uint32 crc) in hndcrc32() argument 2855 pend = pdata + nbytes; in hndcrc32() 3310 prhex(const char *msg, const uchar *buf, uint nbytes) in prhex() argument 3321 for (i = 0; i < nbytes; in prhex() 2696 hndcrc8( const uint8 *pdata, uint nbytes, uint8 crc ) hndcrc8() argument 2769 hndcrc16( const uint8 *pdata, uint nbytes, uint16 crc ) hndcrc16() argument [all...] |
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/ |
H A D | bcmsdh.h | 152 * nbytes: number of bytes to transfer to/from buf 161 uint8 *buf, uint nbytes, void *pkt, 164 uint8 *buf, uint nbytes, void *pkt, 187 * nbytes: number of bytes to transfer to/from buf 190 extern int bcmsdh_rwdata(void *sdh, uint rw, uint32 addr, uint8 *buf, uint nbytes);
|
H A D | bcmsdstd.h | 42 #define sd_sync_dma(sd, read, nbytes) 107 uint16 nbytes[SDIOH_MAXGLOM_SIZE]; /* Size of each frame */ member
|
H A D | bcmsdh_sdmmc.h | 42 #define sd_sync_dma(sd, read, nbytes)
|
H A D | bcmutils.h | 796 uint8 hndcrc8(const uint8 *p, uint nbytes, uint8 crc); 797 uint16 hndcrc16(const uint8 *p, uint nbytes, uint16 crc); 798 uint32 hndcrc32(const uint8 *p, uint nbytes, uint32 crc); 844 extern int bcm_cmp_bytes(const uchar *arg1, const uchar *arg2, uint8 nbytes); 1309 uint32 n_bytes; /**< nbytes in array val[] */
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/tl/ |
H A D | mali_kbase_timeline.c | 278 size_t nbytes = 0; in kbase_timeline_streams_flush() local 287 nbytes = kbase_tlstream_flush_stream(&timeline->streams[stype]); in kbase_timeline_streams_flush() 288 if (nbytes > 0) in kbase_timeline_streams_flush()
|
/device/soc/rockchip/common/sdk_linux/kernel/cgroup/ |
H A D | cgroup-v1.c | 509 static ssize_t cgroup1_procs_write_func(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off, in cgroup1_procs_write_func() argument 556 return ret ?: nbytes; in cgroup1_procs_write_func() 559 static ssize_t cgroup1_procs_write(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off) 561 return cgroup1_procs_write_func(of, buf, nbytes, off, true); 564 static ssize_t cgroup1_tasks_write(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off) 566 return cgroup1_procs_write_func(of, buf, nbytes, off, false); 569 static ssize_t cgroup_release_agent_write(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off) 593 return nbytes;
|
H A D | legacy_freezer.c | 432 static ssize_t freezer_write(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off) in freezer_write() argument 446 return nbytes; in freezer_write()
|
H A D | cpuset.c | 2422 static ssize_t cpuset_write_resmask(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off) in cpuset_write_resmask() argument 2484 return retval ?: nbytes; in cpuset_write_resmask() 2593 static ssize_t sched_partition_write(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off) in sched_partition_write() argument 2623 return retval ?: nbytes; in sched_partition_write()
|
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/include/ |
H A D | hi_osal.h | 476 void osal_get_random_bytes(void *buf, int nbytes);
|