| /OK3568_Linux_fs/kernel/drivers/ntb/hw/intel/ |
| H A D | ntb_hw_gen3.c | 261 size_t buf_size; in ndev_ntb3_debugfs_read() local 268 buf_size = min(count, 0x800ul); in ndev_ntb3_debugfs_read() 270 buf = kmalloc(buf_size, GFP_KERNEL); in ndev_ntb3_debugfs_read() 276 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 279 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 283 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 285 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 289 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 292 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 294 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() [all …]
|
| H A D | ntb_hw_gen4.c | 223 size_t buf_size; in ndev_ntb4_debugfs_read() local 230 buf_size = min(count, 0x800ul); in ndev_ntb4_debugfs_read() 232 buf = kmalloc(buf_size, GFP_KERNEL); in ndev_ntb4_debugfs_read() 238 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 241 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 245 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 247 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 251 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 254 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 256 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() [all …]
|
| H A D | ntb_hw_gen1.c | 498 size_t buf_size; in ndev_ntb_debugfs_read() local 506 buf_size = min(count, 0x800ul); in ndev_ntb_debugfs_read() 508 buf = kmalloc(buf_size, GFP_KERNEL); in ndev_ntb_debugfs_read() 514 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 517 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 522 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 524 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 528 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 532 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 534 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/ |
| H A D | phl_rx_agg.c | 38 u16 buf_size; in phl_tid_ampdu_rx_free() local 47 buf_size = r->buf_size; in phl_tid_ampdu_rx_free() 51 for (i = 0; i < r->buf_size; i++) { in phl_tid_ampdu_rx_free() 57 buf_size * sizeof(u32)); in phl_tid_ampdu_rx_free() 59 buf_size * sizeof(struct rtw_phl_rx_pkt *)); in phl_tid_ampdu_rx_free() 156 u16 buf_size) in phl_tid_ampdu_rx_alloc() argument 172 buf_size * sizeof(struct rtw_phl_rx_pkt *)); in phl_tid_ampdu_rx_alloc() 178 buf_size * sizeof(struct rtw_phl_rx_pkt *)); in phl_tid_ampdu_rx_alloc() 182 _os_kmem_alloc(drv_priv, buf_size * sizeof(u32)); in phl_tid_ampdu_rx_alloc() 185 buf_size * sizeof(struct rtw_phl_rx_pkt *)); in phl_tid_ampdu_rx_alloc() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/ |
| H A D | phl_rx_agg.c | 38 u16 buf_size; in phl_tid_ampdu_rx_free() local 47 buf_size = r->buf_size; in phl_tid_ampdu_rx_free() 51 for (i = 0; i < r->buf_size; i++) { in phl_tid_ampdu_rx_free() 57 buf_size * sizeof(u32)); in phl_tid_ampdu_rx_free() 59 buf_size * sizeof(struct rtw_phl_rx_pkt *)); in phl_tid_ampdu_rx_free() 156 u16 buf_size) in phl_tid_ampdu_rx_alloc() argument 172 buf_size * sizeof(struct rtw_phl_rx_pkt *)); in phl_tid_ampdu_rx_alloc() 178 buf_size * sizeof(struct rtw_phl_rx_pkt *)); in phl_tid_ampdu_rx_alloc() 182 _os_kmem_alloc(drv_priv, buf_size * sizeof(u32)); in phl_tid_ampdu_rx_alloc() 185 buf_size * sizeof(struct rtw_phl_rx_pkt *)); in phl_tid_ampdu_rx_alloc() [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/util/ |
| H A D | symbol-minimal.c | 95 size_t buf_size; in filename__read_build_id() local 128 buf_size = ehdr.e_phentsize * ehdr.e_phnum; in filename__read_build_id() 129 buf = malloc(buf_size); in filename__read_build_id() 134 if (fread(buf, buf_size, 1, fp) != 1) in filename__read_build_id() 150 buf_size = phdr->p_filesz; in filename__read_build_id() 152 tmp = realloc(buf, buf_size); in filename__read_build_id() 158 if (fread(buf, buf_size, 1, fp) != 1) in filename__read_build_id() 161 ret = read_build_id(buf, buf_size, bid, need_swap); in filename__read_build_id() 179 buf_size = ehdr.e_phentsize * ehdr.e_phnum; in filename__read_build_id() 180 buf = malloc(buf_size); in filename__read_build_id() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/platform/omap3isp/ |
| H A D | ispstat.c | 62 u32 buf_size, enum dma_data_direction dir, in __isp_stat_buf_sync_magic() argument 69 dma_sync(stat->isp->dev, buf->dma_addr + (buf_size & PAGE_MASK), in __isp_stat_buf_sync_magic() 70 buf_size & ~PAGE_MASK, MAGIC_SIZE, dir); in __isp_stat_buf_sync_magic() 75 u32 buf_size, in isp_stat_buf_sync_magic_for_device() argument 81 __isp_stat_buf_sync_magic(stat, buf, buf_size, dir, in isp_stat_buf_sync_magic_for_device() 87 u32 buf_size, in isp_stat_buf_sync_magic_for_cpu() argument 93 __isp_stat_buf_sync_magic(stat, buf, buf_size, dir, in isp_stat_buf_sync_magic_for_cpu() 100 const u32 buf_size = IS_H3A_AF(stat) ? in isp_stat_buf_check_magic() local 101 buf->buf_size + AF_EXTRA_DATA : buf->buf_size; in isp_stat_buf_check_magic() 106 isp_stat_buf_sync_magic_for_cpu(stat, buf, buf_size, DMA_FROM_DEVICE); in isp_stat_buf_check_magic() [all …]
|
| H A D | isph3a_aewb.c | 75 aewb->buf_size = conf->buf_size; in h3a_aewb_setup_regs() 115 u32 buf_size; in h3a_aewb_validate_params() local 163 buf_size = h3a_aewb_get_buf_size(user_cfg); in h3a_aewb_validate_params() 164 if (buf_size > user_cfg->buf_size) in h3a_aewb_validate_params() 165 user_cfg->buf_size = buf_size; in h3a_aewb_validate_params() 166 else if (user_cfg->buf_size > OMAP3ISP_AEWB_MAX_BUF_SIZE) in h3a_aewb_validate_params() 167 user_cfg->buf_size = OMAP3ISP_AEWB_MAX_BUF_SIZE; in h3a_aewb_validate_params() 237 cur_cfg->buf_size = h3a_aewb_get_buf_size(cur_cfg); in h3a_aewb_set_params() 330 aewb_recover_cfg->buf_size = h3a_aewb_get_buf_size(aewb_recover_cfg); in omap3isp_h3a_aewb_init()
|
| H A D | isph3a_af.c | 125 af->buf_size = conf->buf_size; in h3a_af_setup_regs() 159 u32 buf_size; in h3a_af_validate_params() local 216 buf_size = h3a_af_get_buf_size(user_cfg); in h3a_af_validate_params() 217 if (buf_size > user_cfg->buf_size) in h3a_af_validate_params() 219 user_cfg->buf_size = buf_size; in h3a_af_validate_params() 220 else if (user_cfg->buf_size > OMAP3ISP_AF_MAX_BUF_SIZE) in h3a_af_validate_params() 221 user_cfg->buf_size = OMAP3ISP_AF_MAX_BUF_SIZE; in h3a_af_validate_params() 301 cur_cfg->buf_size = h3a_af_get_buf_size(cur_cfg); in h3a_af_set_params() 388 af_recover_cfg->buf_size = h3a_af_get_buf_size(af_recover_cfg); in omap3isp_h3a_af_init()
|
| H A D | isphist.c | 137 hist->buf_size = conf->buf_size; in hist_setup_regs() 194 cfg.src_maxburst = hist->buf_size / 4; in hist_buf_dma() 204 hist->buf_size, DMA_DEV_TO_MEM, in hist_buf_dma() 255 for (i = hist->buf_size / 16; i > 0; i--) { in hist_buf_pio() 308 u32 buf_size; in hist_validate_params() local 350 buf_size = hist_get_buf_size(user_cfg); in hist_validate_params() 351 if (buf_size > user_cfg->buf_size) in hist_validate_params() 353 user_cfg->buf_size = buf_size; in hist_validate_params() 354 else if (user_cfg->buf_size > OMAP3ISP_HIST_MAX_BUF_SIZE) in hist_validate_params() 355 user_cfg->buf_size = OMAP3ISP_HIST_MAX_BUF_SIZE; in hist_validate_params() [all …]
|
| /OK3568_Linux_fs/kernel/fs/ |
| H A D | kernel_read_file.c | 36 size_t buf_size, size_t *file_size, in kernel_read_file() argument 66 if (!file_size && offset == 0 && i_size > buf_size) { in kernel_read_file() 71 whole_file = (offset == 0 && i_size <= buf_size); in kernel_read_file() 88 while (copied < buf_size) { in kernel_read_file() 90 size_t wanted = min_t(size_t, buf_size - copied, in kernel_read_file() 128 size_t buf_size, size_t *file_size, in kernel_read_file_from_path() argument 141 ret = kernel_read_file(file, offset, buf, buf_size, file_size, id); in kernel_read_file_from_path() 148 void **buf, size_t buf_size, in kernel_read_file_from_path_initns() argument 168 ret = kernel_read_file(file, offset, buf, buf_size, file_size, id); in kernel_read_file_from_path_initns() 175 size_t buf_size, size_t *file_size, in kernel_read_file_from_fd() argument [all …]
|
| /OK3568_Linux_fs/kernel/net/mac80211/ |
| H A D | agg-rx.c | 51 for (i = 0; i < tid_rx->buf_size; i++) in ieee80211_free_tid_rx() 217 u16 buf_size, u16 timeout, in ieee80211_send_addba_resp() argument 257 capab |= (u16)(buf_size << 6); /* bit 15:6 max size of aggregation */ in ieee80211_send_addba_resp() 272 u16 buf_size, bool tx, bool auto_seq, in ___ieee80211_start_rx_ba_session() argument 323 (buf_size > max_buf_size)) { in ___ieee80211_start_rx_ba_session() 327 sta->sta.addr, tid, ba_policy, buf_size); in ___ieee80211_start_rx_ba_session() 331 if (buf_size == 0) in ___ieee80211_start_rx_ba_session() 332 buf_size = max_buf_size; in ___ieee80211_start_rx_ba_session() 335 if (buf_size > sta->sta.max_rx_aggregation_subframes) in ___ieee80211_start_rx_ba_session() 336 buf_size = sta->sta.max_rx_aggregation_subframes; in ___ieee80211_start_rx_ba_session() [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/hal/common/h264/ |
| H A D | hal_h264e_stream_amend.c | 82 ctx->buf_size = SZ_128K; in h264e_vepu_stream_amend_init() 109 ctx->dst_buf = mpp_calloc(RK_U8, ctx->buf_size); in h264e_vepu_stream_amend_config() 111 ctx->src_buf = mpp_calloc(RK_U8, ctx->buf_size); in h264e_vepu_stream_amend_config() 150 RK_S32 buf_size; in h264e_vepu_stream_amend_proc() local 162 while (len > ctx->buf_size - 16) { in h264e_vepu_stream_amend_proc() 163 ctx->buf_size *= 2; in h264e_vepu_stream_amend_proc() 170 ctx->src_buf = mpp_malloc(RK_U8, ctx->buf_size); in h264e_vepu_stream_amend_proc() 171 ctx->dst_buf = mpp_malloc(RK_U8, ctx->buf_size); in h264e_vepu_stream_amend_proc() 175 memset(ctx->dst_buf, 0, ctx->buf_size); in h264e_vepu_stream_amend_proc() 176 memset(ctx->src_buf, 0, ctx->buf_size); in h264e_vepu_stream_amend_proc() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/sw/rxe/ |
| H A D | rxe_queue.c | 14 size_t buf_size, struct rxe_mmap_info **ip_p) in do_mmap_info() argument 20 ip = rxe_create_mmap_info(rxe, buf_size, udata, buf); in do_mmap_info() 52 memset(q->buf->data, 0, q->buf_size - sizeof(struct rxe_queue_buf)); in rxe_queue_reset() 60 size_t buf_size; in rxe_queue_init() local 87 buf_size = sizeof(struct rxe_queue_buf) + num_slots * elem_size; in rxe_queue_init() 89 q->buf = vmalloc_user(buf_size); in rxe_queue_init() 96 q->buf_size = buf_size; in rxe_queue_init() 144 new_q->buf_size, &new_q->ip); in rxe_queue_resize()
|
| /OK3568_Linux_fs/external/xserver/hw/dmx/glxProxy/ |
| H A D | glxsingle.c | 90 xGLXSingleReply * reply, char *buf, int buf_size) in SendSwappedReply() argument 98 if ((buf_size == 0) && (swap_vec_element_size > 0)) { in SendSwappedReply() 115 else if ((buf_size > 0) && (swap_vec_element_size > 0)) { in SendSwappedReply() 119 int vsize = buf_size / swap_vec_element_size; in SendSwappedReply() 149 if (buf_size > 0) in SendSwappedReply() 150 WriteToClient(client, buf_size, buf); in SendSwappedReply() 162 int buf_size; in __glXForwardSingleReq() local 179 buf_size = (req->length << 2) - sz_xGLXSingleReq; in __glXForwardSingleReq() 194 if (buf_size > 0) in __glXForwardSingleReq() 195 _XSend(dpy, (const char *) pc, buf_size); in __glXForwardSingleReq() [all …]
|
| H A D | glxvendor.c | 87 xGLXVendorPrivReply * reply, char *buf, int buf_size) in SendSwappedReply() argument 95 if ((buf_size == 0) && (swap_vec_element_size > 0)) { in SendSwappedReply() 110 else if ((buf_size > 0) && (swap_vec_element_size > 0)) { in SendSwappedReply() 114 int vsize = buf_size / swap_vec_element_size; in SendSwappedReply() 140 if (buf_size > 0) in SendSwappedReply() 141 WriteToClient(client, buf_size, buf); in SendSwappedReply() 153 int buf_size; in __glXVForwardSingleReq() local 170 buf_size = (req->length << 2) - sz_xGLXVendorPrivateReq; in __glXVForwardSingleReq() 186 if (buf_size > 0) in __glXVForwardSingleReq() 187 _XSend(dpy, (const char *) pc, buf_size); in __glXVForwardSingleReq() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/pci/cx18/ |
| H A D | cx18-queue.c | 93 u32 buf_size = s->buf_size; in _cx18_mdl_update_bufs_for_cpu() local 98 if (bytesused >= buf_size) { in _cx18_mdl_update_bufs_for_cpu() 99 buf->bytesused = buf_size; in _cx18_mdl_update_bufs_for_cpu() 100 bytesused -= buf_size; in _cx18_mdl_update_bufs_for_cpu() 294 cx18_writel(cx, s->buf_size, in cx18_load_queues() 306 partial_buf_size = s->mdl_size % s->buf_size; in cx18_load_queues() 323 u32 buf_size = s->buf_size; in _cx18_mdl_sync_for_device() local 329 buf_size, dma); in _cx18_mdl_sync_for_device() 341 s->name, s->buffers, s->buf_size, in cx18_stream_alloc() 342 s->buffers * s->buf_size / 1024, in cx18_stream_alloc() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/pci/ivtv/ |
| H A D | ivtv-queue.c | 15 if (s->buf_size - buf->bytesused < copybytes) in ivtv_buf_copy_from_user() 16 copybytes = s->buf_size - buf->bytesused; in ivtv_buf_copy_from_user() 54 q->length += s->buf_size; in ivtv_enqueue() 69 q->length -= s->buf_size; in ivtv_dequeue() 83 from->length -= s->buf_size; in ivtv_queue_move_buf() 89 to->length += s->buf_size; in ivtv_queue_move_buf() 144 steal->length -= s->buf_size; in ivtv_queue_move() 148 from->length += s->buf_size; in ivtv_queue_move() 149 bytes_available += s->buf_size; in ivtv_queue_move() 192 s->name, s->buffers, s->buf_size, s->buffers * s->buf_size / 1024); in ivtv_stream_alloc() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/ssv6xxx/smac/ |
| H A D | ampdu.c | 71 static int _dump_ba_skb(char *buf, int buf_size, struct sk_buff *ba_skb); 566 int buf_size = AMPDU_TX_MIB_SUMMARY_BUF_SIZE; in ampdu_tx_tid_window_read() local 571 prt_size = snprintf(prn_ptr, buf_size, "\nWMM_TID %d:\n" in ampdu_tx_tid_window_read() 575 buf_size -= prt_size; in ampdu_tx_tid_window_read() 581 prt_size = snprintf(prn_ptr, buf_size, "\n\t\t"); in ampdu_tx_tid_window_read() 583 buf_size -= prt_size; in ampdu_tx_tid_window_read() 586 prt_size = snprintf(prn_ptr, buf_size, " %s", "NULL "); in ampdu_tx_tid_window_read() 596 prt_size = snprintf(prn_ptr, buf_size, " %4d%c", ampdu_skb_ssn(skb), in ampdu_tx_tid_window_read() 602 buf_size -= prt_size; in ampdu_tx_tid_window_read() 604 …prt_size = snprintf(prn_ptr, buf_size, "\n\tEarly aggregated #: %d\n", ampdu_tid->early_aggr_skb_n… in ampdu_tx_tid_window_read() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/most/dim2/ |
| H A D | hal.c | 473 u16 dim_norm_ctrl_async_buffer_size(u16 buf_size) in dim_norm_ctrl_async_buffer_size() argument 477 if (buf_size > max_size) in dim_norm_ctrl_async_buffer_size() 480 return buf_size; in dim_norm_ctrl_async_buffer_size() 483 static inline u16 norm_isoc_buffer_size(u16 buf_size, u16 packet_length) in norm_isoc_buffer_size() argument 488 if (buf_size > max_size) in norm_isoc_buffer_size() 489 buf_size = max_size; in norm_isoc_buffer_size() 491 n = buf_size / packet_length; in norm_isoc_buffer_size() 499 static inline u16 norm_sync_buffer_size(u16 buf_size, u16 bytes_per_frame) in norm_sync_buffer_size() argument 505 if (buf_size > max_size) in norm_sync_buffer_size() 506 buf_size = max_size; in norm_sync_buffer_size() [all …]
|
| /OK3568_Linux_fs/kernel/net/wireless/ |
| H A D | debugfs.c | 41 char *buf, int buf_size, int offset) in ht_print_chan() argument 43 if (WARN_ON(offset > buf_size)) in ht_print_chan() 48 buf_size - offset, in ht_print_chan() 53 buf_size - offset, in ht_print_chan() 68 unsigned int offset = 0, buf_size = PAGE_SIZE, i; in ht40allow_map_read() local 73 buf = kzalloc(buf_size, GFP_KERNEL); in ht40allow_map_read() 85 buf, buf_size, offset); in ht40allow_map_read()
|
| /OK3568_Linux_fs/external/mpp/utils/ |
| H A D | mpi_dec_utils.c | 55 size_t buf_size; member 159 size_t buf_size = impl->file_size; in read_jpeg_file() local 168 read_size = fread(slot->data, 1, buf_size, fp); in read_jpeg_file() 170 mpp_assert(read_size == buf_size); in read_jpeg_file() 187 size_t buf_size = impl->buf_size; in read_normal_file() local 188 size_t size = sizeof(FileBufSlot) + buf_size + impl->stuff_size; in read_normal_file() 193 read_size = fread(slot->data, 1, buf_size, fp); in read_normal_file() 198 if (read_size != buf_size || feof(fp) || impl->read_total >= impl->file_size) in read_normal_file() 214 impl->buf_size = 0; in check_file_type() 227 impl->buf_size = impl->file_size; in check_file_type() [all …]
|
| /OK3568_Linux_fs/external/recovery/ |
| H A D | encryptedfs_provisioning.c | 48 int get_binary_file_contents(char *buffer, int buf_size, const char *file_name, int *out_size) in get_binary_file_contents() argument 59 read_bytes = fread(buffer, 1, buf_size, in_file); in get_binary_file_contents() 61 if (read_bytes != buf_size) { in get_binary_file_contents() 74 int set_binary_file_contents(char *buffer, int buf_size, const char *file_name) in set_binary_file_contents() argument 85 write_bytes = fwrite(buffer, 1, buf_size, out_file); in set_binary_file_contents() 86 if (write_bytes != buf_size) { in set_binary_file_contents() 97 int get_text_file_contents(char *buffer, int buf_size, char *file_name) in get_text_file_contents() argument 108 read_data = fgets(buffer, buf_size, in_file); in get_text_file_contents()
|
| /OK3568_Linux_fs/kernel/drivers/scsi/fnic/ |
| H A D | fnic_trace.c | 219 int buf_size = debug->buf_size; in fnic_get_stats_data() local 223 len = scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 228 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 246 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 250 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 283 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 287 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 292 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 321 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 326 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/sound/ |
| H A D | rockchip-sound.c | 107 unsigned long buf_size; in sound_play() local 110 buf_size = WAV_SIZE; in sound_play() 112 buf = malloc(buf_size); in sound_play() 117 ret = load_audio_wav(buf, "boot.wav", buf_size); in sound_play() 121 buf_size / sizeof(unsigned short), in sound_play() 124 ret = _sound_play(i2s_dev, buf, (buf_size / sizeof(int))); in sound_play()
|