Searched refs:buf_size (Results 1 - 25 of 554) sorted by relevance

1234567891011>>

/linux-master/drivers/media/usb/pvrusb2/
H A Dpvrusb2-debugifc.h16 char *buf_ptr, unsigned int buf_size);
22 char *buf_ptr,unsigned int buf_size);
26 const char *buf_ptr,unsigned int buf_size);
/linux-master/tools/testing/selftests/resctrl/
H A Dfill_buf.c41 void mem_flush(unsigned char *buf, size_t buf_size) argument
46 buf_size = buf_size / CL_SIZE; /* mem size in cache lines */
48 for (i = 0; i < buf_size; i++)
65 static int fill_one_span_read(unsigned char *buf, size_t buf_size) argument
67 unsigned int size = buf_size / (CL_SIZE / 2);
91 static void fill_one_span_write(unsigned char *buf, size_t buf_size) argument
93 unsigned char *end_ptr = buf + buf_size;
103 void fill_cache_read(unsigned char *buf, size_t buf_size, bool once) argument
108 ret = fill_one_span_read(buf, buf_size);
117 fill_cache_write(unsigned char *buf, size_t buf_size, bool once) argument
126 alloc_buffer(size_t buf_size, int memflush) argument
154 run_fill_buf(size_t buf_size, int memflush, int op, bool once) argument
[all...]
/linux-master/fs/btrfs/
H A Dverity.h16 int btrfs_get_verity_descriptor(struct inode *inode, void *buf, size_t buf_size);
28 size_t buf_size)
27 btrfs_get_verity_descriptor(struct inode *inode, void *buf, size_t buf_size) argument
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_eeprom.c93 u8 *eeprom_buf, u16 buf_size, bool read)
110 for (r = 0; buf_size > 0;
111 buf_size -= len, eeprom_addr += len, eeprom_buf += len) {
138 (u32)buf_size);
144 len = buf_size;
176 * @buf_size: the size of @eeprom_buf
182 u8 *eeprom_buf, u16 buf_size, bool read)
198 eeprom_buf, buf_size, read);
202 eeprom_addr, buf_size,
212 for ( ; buf_size >
92 __amdgpu_eeprom_xfer(struct i2c_adapter *i2c_adap, u32 eeprom_addr, u8 *eeprom_buf, u16 buf_size, bool read) argument
181 amdgpu_eeprom_xfer(struct i2c_adapter *i2c_adap, u32 eeprom_addr, u8 *eeprom_buf, u16 buf_size, bool read) argument
[all...]
/linux-master/include/linux/
H A Dcciss_ioctl.h14 WORD buf_size; /* size in bytes of the buf */ member in struct:_IOCTL32_Command_struct
23 DWORD buf_size; /* size in bytes of the buf */ member in struct:_BIG_IOCTL32_Command_struct
H A Dkernel_read_file.h39 void **buf, size_t buf_size,
43 void **buf, size_t buf_size,
47 void **buf, size_t buf_size,
51 void **buf, size_t buf_size,
H A Dima.h19 extern int ima_file_hash(struct file *file, char *buf, size_t buf_size);
20 extern int ima_inode_hash(struct inode *inode, char *buf, size_t buf_size);
43 static inline int ima_file_hash(struct file *file, char *buf, size_t buf_size) argument
48 static inline int ima_inode_hash(struct inode *inode, char *buf, size_t buf_size) argument
H A Dbuildid.h12 int build_id_parse_buf(const void *buf, unsigned char *build_id, u32 buf_size);
/linux-master/drivers/gpu/drm/xe/
H A Dxe_guc_relay.h17 const u32 *msg, u32 len, u32 *buf, u32 buf_size);
23 const u32 *msg, u32 len, u32 *buf, u32 buf_size);
27 const u32 *msg, u32 len, u32 *buf, u32 buf_size)
26 xe_guc_relay_send_to_vf(struct xe_guc_relay *relay, u32 target, const u32 *msg, u32 len, u32 *buf, u32 buf_size) argument
/linux-master/arch/alpha/include/asm/
H A Dconsole.h15 extern long callback_getenv(long id, const char *buf, unsigned long buf_size);
16 extern long callback_setenv(long id, const char *buf, unsigned long buf_size);
/linux-master/drivers/media/platform/ti/omap/
H A Domap_voutlib.h33 unsigned long omap_vout_alloc_buffer(u32 buf_size, u32 *phys_addr);
34 void omap_vout_free_buffer(unsigned long virtaddr, u32 buf_size);
/linux-master/fs/
H A Dkernel_read_file.c15 * @buf_size will be ignored)
16 * @buf_size: size of buf, if already allocated. If @buf not
25 * via an already-allocated @buf, in at most @buf_size chunks, and
36 size_t buf_size, size_t *file_size,
66 if (!file_size && offset == 0 && i_size > buf_size) {
71 whole_file = (offset == 0 && i_size <= buf_size);
88 while (copied < buf_size) {
90 size_t wanted = min_t(size_t, buf_size - copied,
128 size_t buf_size, size_t *file_size,
141 ret = kernel_read_file(file, offset, buf, buf_size, file_siz
35 kernel_read_file(struct file *file, loff_t offset, void **buf, size_t buf_size, size_t *file_size, enum kernel_read_file_id id) argument
127 kernel_read_file_from_path(const char *path, loff_t offset, void **buf, size_t buf_size, size_t *file_size, enum kernel_read_file_id id) argument
147 kernel_read_file_from_path_initns(const char *path, loff_t offset, void **buf, size_t buf_size, size_t *file_size, enum kernel_read_file_id id) argument
174 kernel_read_file_from_fd(int fd, loff_t offset, void **buf, size_t buf_size, size_t *file_size, enum kernel_read_file_id id) argument
[all...]
/linux-master/drivers/ntb/hw/intel/
H A Dntb_hw_gen3.c261 size_t buf_size; local
268 buf_size = min(count, 0x800ul);
270 buf = kmalloc(buf_size, GFP_KERNEL);
276 off += scnprintf(buf + off, buf_size - off,
279 off += scnprintf(buf + off, buf_size - off,
283 off += scnprintf(buf + off, buf_size - off,
285 off += scnprintf(buf + off, buf_size - off,
289 off += scnprintf(buf + off, buf_size - off,
292 off += scnprintf(buf + off, buf_size - off,
294 off += scnprintf(buf + off, buf_size
[all...]
H A Dntb_hw_gen4.c225 size_t buf_size; local
232 buf_size = min(count, 0x800ul);
234 buf = kmalloc(buf_size, GFP_KERNEL);
240 off += scnprintf(buf + off, buf_size - off,
243 off += scnprintf(buf + off, buf_size - off,
247 off += scnprintf(buf + off, buf_size - off,
249 off += scnprintf(buf + off, buf_size - off,
253 off += scnprintf(buf + off, buf_size - off,
256 off += scnprintf(buf + off, buf_size - off,
258 off += scnprintf(buf + off, buf_size
[all...]
/linux-master/tools/perf/util/
H A Dsymbol-minimal.c95 size_t buf_size; local
128 buf_size = ehdr.e_phentsize * ehdr.e_phnum;
129 buf = malloc(buf_size);
134 if (fread(buf, buf_size, 1, fp) != 1)
150 buf_size = phdr->p_filesz;
152 tmp = realloc(buf, buf_size);
158 if (fread(buf, buf_size, 1, fp) != 1)
161 ret = read_build_id(buf, buf_size, bid, need_swap);
180 buf_size = ehdr.e_phentsize * ehdr.e_phnum;
181 buf = malloc(buf_size);
232 size_t buf_size; local
[all...]
/linux-master/drivers/net/wireless/intel/iwlwifi/mvm/
H A Ddebugfs.h21 size_t buf_size = min(count, sizeof(buf) - 1); \
23 if (copy_from_user(buf, user_buf, buf_size)) \
26 return iwl_dbgfs_##name##_write(arg, buf, buf_size, ppos); \
/linux-master/drivers/media/pci/ivtv/
H A Divtv-queue.c15 if (s->buf_size - buf->bytesused < copybytes)
16 copybytes = s->buf_size - buf->bytesused;
54 q->length += s->buf_size;
69 q->length -= s->buf_size;
83 from->length -= s->buf_size;
89 to->length += s->buf_size;
144 steal->length -= s->buf_size;
148 from->length += s->buf_size;
149 bytes_available += s->buf_size;
192 s->name, s->buffers, s->buf_size,
[all...]
/linux-master/drivers/media/platform/ti/omap3isp/
H A Dispstat.c62 u32 buf_size, enum dma_data_direction dir,
69 dma_sync(stat->isp->dev, buf->dma_addr + (buf_size & PAGE_MASK),
70 buf_size & ~PAGE_MASK, MAGIC_SIZE, dir);
75 u32 buf_size,
81 __isp_stat_buf_sync_magic(stat, buf, buf_size, dir,
87 u32 buf_size,
93 __isp_stat_buf_sync_magic(stat, buf, buf_size, dir,
100 const u32 buf_size = IS_H3A_AF(stat) ? local
101 buf->buf_size + AF_EXTRA_DATA : buf->buf_size;
60 __isp_stat_buf_sync_magic(struct ispstat *stat, struct ispstat_buffer *buf, u32 buf_size, enum dma_data_direction dir, void (*dma_sync)(struct device *, dma_addr_t, unsigned long, size_t, enum dma_data_direction)) argument
73 isp_stat_buf_sync_magic_for_device(struct ispstat *stat, struct ispstat_buffer *buf, u32 buf_size, enum dma_data_direction dir) argument
85 isp_stat_buf_sync_magic_for_cpu(struct ispstat *stat, struct ispstat_buffer *buf, u32 buf_size, enum dma_data_direction dir) argument
140 const u32 buf_size = IS_H3A_AF(stat) ? local
543 u32 buf_size = user_cfg->buf_size; local
[all...]
H A Disph3a_aewb.c75 aewb->buf_size = conf->buf_size;
115 u32 buf_size; local
163 buf_size = h3a_aewb_get_buf_size(user_cfg);
164 if (buf_size > user_cfg->buf_size)
165 user_cfg->buf_size = buf_size;
166 else if (user_cfg->buf_size > OMAP3ISP_AEWB_MAX_BUF_SIZE)
167 user_cfg->buf_size
[all...]
H A Disph3a_af.c125 af->buf_size = conf->buf_size;
159 u32 buf_size; local
216 buf_size = h3a_af_get_buf_size(user_cfg);
217 if (buf_size > user_cfg->buf_size)
218 /* User buf_size request wasn't enough */
219 user_cfg->buf_size = buf_size;
220 else if (user_cfg->buf_size > OMAP3ISP_AF_MAX_BUF_SIZ
[all...]
/linux-master/net/mac80211/
H A Dagg-rx.c51 for (i = 0; i < tid_rx->buf_size; i++)
176 u16 buf_size)
187 resp->data |= u8_encode_bits(buf_size >> IEEE80211_ADDBA_EXT_BUF_SIZE_SHIFT,
193 u16 buf_size, u16 timeout,
233 capab |= u16_encode_bits(buf_size, IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK);
240 ieee80211_add_addbaext(sdata, skb, addbaext, buf_size);
248 u16 buf_size, bool tx, bool auto_seq,
303 (buf_size > max_buf_size)) {
307 sta->sta.addr, tid, ba_policy, buf_size);
311 if (buf_size
173 ieee80211_add_addbaext(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb, const struct ieee80211_addba_ext_ie *req, u16 buf_size) argument
191 ieee80211_send_addba_resp(struct sta_info *sta, u8 *da, u16 tid, u8 dialog_token, u16 status, u16 policy, u16 buf_size, u16 timeout, const struct ieee80211_addba_ext_ie *addbaext) argument
245 __ieee80211_start_rx_ba_session(struct sta_info *sta, u8 dialog_token, u16 timeout, u16 start_seq_num, u16 ba_policy, u16 tid, u16 buf_size, bool tx, bool auto_seq, const struct ieee80211_addba_ext_ie *addbaext) argument
443 u16 capab, tid, timeout, ba_policy, buf_size, start_seq_num; local
[all...]
/linux-master/tools/testing/vsock/
H A Dvsock_test.c381 size_t buf_size; local
387 buf_size = page_size +
390 buf_size = 1 + (rand() % page_size);
392 buf = malloc(buf_size);
399 memset(buf, rand() & 0xff, buf_size);
408 send_buf(fd, buf, buf_size, flags, buf_size);
419 curr_hash += hash_djb2(buf, buf_size);
693 int buf_size = getpagesize() * 3; local
701 buf1 = malloc(buf_size);
729 int buf_size = page_size * 3; local
1251 size_t buf_size; local
1287 size_t buf_size; local
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_adjust_frags.c8 int err, prog_fd, max_skb_frags, buf_size, num; local
118 buf_size = 4096 + (max_skb_frags + 1) * sysconf(_SC_PAGE_SIZE);
119 buf = malloc(buf_size);
123 memset(buf, 0, buf_size);
131 topts.data_size_in = buf_size;
132 topts.data_size_out = buf_size;
/linux-master/drivers/staging/most/dim2/
H A Dhal.h64 u16 dim_norm_ctrl_async_buffer_size(u16 buf_size);
66 u16 dim_norm_isoc_buffer_size(u16 buf_size, u16 packet_length);
68 u16 dim_norm_sync_buffer_size(u16 buf_size, u16 bytes_per_frame);
/linux-master/sound/soc/bcm/
H A Dcygnus-ssp.h32 unsigned buf_size; member in struct:ringbuf_regs
42 .buf_size = 0, \
52 .buf_size = 0, \

Completed in 467 milliseconds

1234567891011>>