/linux-4.1.27/arch/s390/include/asm/ |
H A D | pci_debug.h | 23 len -= pci_debug_err_id->buf_size; zpci_err_hex() 24 addr += pci_debug_err_id->buf_size; zpci_err_hex()
|
H A D | debug.h | 39 int buf_size; member in struct:debug_info 97 int buf_size); 100 int buf_size, umode_t mode, uid_t uid,
|
/linux-4.1.27/drivers/s390/cio/ |
H A D | cio_debug.h | 29 length -= cio_debug_trace_id->buf_size; CIO_HEX_EVENT() 30 data += cio_debug_trace_id->buf_size; CIO_HEX_EVENT()
|
H A D | qdio_debug.h | 38 len -= qdio_dbf_setup->buf_size; DBF_HEX() 39 addr += qdio_dbf_setup->buf_size; DBF_HEX() 54 len -= qdio_dbf_error->buf_size; DBF_ERROR_HEX() 55 addr += qdio_dbf_error->buf_size; DBF_ERROR_HEX() 73 len -= dev->debug_area->buf_size; DBF_DEV_HEX() 74 addr += dev->debug_area->buf_size; DBF_DEV_HEX()
|
H A D | eadm_sch.c | 50 length -= eadm_debug->buf_size; EADM_LOG_HEX() 51 data += eadm_debug->buf_size; EADM_LOG_HEX()
|
H A D | chsc_sch.c | 48 length -= chsc_debug_log_id->buf_size; CHSC_LOG_HEX() 49 data += chsc_debug_log_id->buf_size; CHSC_LOG_HEX()
|
/linux-4.1.27/net/wireless/ |
H A D | debugfs.c | 44 char *buf, int buf_size, int offset) ht_print_chan() 46 if (WARN_ON(offset > buf_size)) ht_print_chan() 51 buf_size - offset, ht_print_chan() 56 buf_size - offset, ht_print_chan() 71 unsigned int offset = 0, buf_size = PAGE_SIZE, i, r; ht40allow_map_read() local 75 buf = kzalloc(buf_size, GFP_KERNEL); ht40allow_map_read() 87 buf, buf_size, offset); ht40allow_map_read() 43 ht_print_chan(struct ieee80211_channel *chan, char *buf, int buf_size, int offset) ht_print_chan() argument
|
/linux-4.1.27/tools/perf/util/ |
H A D | symbol-minimal.c | 88 size_t buf_size; filename__read_build_id() local 121 buf_size = ehdr.e_phentsize * ehdr.e_phnum; filename__read_build_id() 122 buf = malloc(buf_size); filename__read_build_id() 127 if (fread(buf, buf_size, 1, fp) != 1) filename__read_build_id() 143 buf_size = phdr->p_filesz; filename__read_build_id() 145 tmp = realloc(buf, buf_size); filename__read_build_id() 151 if (fread(buf, buf_size, 1, fp) != 1) filename__read_build_id() 154 ret = read_build_id(buf, buf_size, bf, size, need_swap); filename__read_build_id() 172 buf_size = ehdr.e_phentsize * ehdr.e_phnum; filename__read_build_id() 173 buf = malloc(buf_size); filename__read_build_id() 178 if (fread(buf, buf_size, 1, fp) != 1) filename__read_build_id() 194 buf_size = phdr->p_filesz; filename__read_build_id() 196 tmp = realloc(buf, buf_size); filename__read_build_id() 202 if (fread(buf, buf_size, 1, fp) != 1) filename__read_build_id() 205 ret = read_build_id(buf, buf_size, bf, size, need_swap); filename__read_build_id() 223 size_t buf_size; sysfs__read_build_id() local 233 buf_size = stbuf.st_size; sysfs__read_build_id() 234 buf = malloc(buf_size); sysfs__read_build_id() 238 if (read(fd, buf, buf_size) != (ssize_t) buf_size) sysfs__read_build_id() 241 ret = read_build_id(buf, buf_size, build_id, size, false); sysfs__read_build_id()
|
/linux-4.1.27/include/linux/ |
H A D | cciss_ioctl.h | 13 WORD buf_size; /* size in bytes of the buf */ member in struct:_IOCTL32_Command_struct 22 DWORD buf_size; /* size in bytes of the buf */ member in struct:_BIG_IOCTL32_Command_struct
|
H A D | vmw_vmci_api.h | 71 const void *buf, size_t buf_size, int mode); 73 void *buf, size_t buf_size, int mode); 74 ssize_t vmci_qpair_peek(struct vmci_qp *qpair, void *buf, size_t buf_size,
|
H A D | blktrace_api.h | 94 u32 buf_size; member in struct:compat_blk_user_trace_setup
|
H A D | uwb.h | 536 static inline size_t uwb_dev_addr_print(char *buf, size_t buf_size, uwb_dev_addr_print() argument 539 return __uwb_addr_print(buf, buf_size, addr->data, 0); uwb_dev_addr_print() 543 static inline size_t uwb_mac_addr_print(char *buf, size_t buf_size, uwb_mac_addr_print() argument 546 return __uwb_addr_print(buf, buf_size, addr->data, 1); uwb_mac_addr_print()
|
/linux-4.1.27/drivers/media/pci/ivtv/ |
H A D | ivtv-queue.c | 27 if (s->buf_size - buf->bytesused < copybytes) ivtv_buf_copy_from_user() 28 copybytes = s->buf_size - buf->bytesused; ivtv_buf_copy_from_user() 66 q->length += s->buf_size; ivtv_enqueue() 81 q->length -= s->buf_size; ivtv_dequeue() 95 from->length -= s->buf_size; ivtv_queue_move_buf() 101 to->length += s->buf_size; ivtv_queue_move_buf() 156 steal->length -= s->buf_size; ivtv_queue_move() 160 from->length += s->buf_size; ivtv_queue_move() 161 bytes_available += s->buf_size; ivtv_queue_move() 204 s->name, s->buffers, s->buf_size, s->buffers * s->buf_size / 1024); ivtv_stream_alloc() 245 buf->buf = kmalloc(s->buf_size + 256, GFP_KERNEL|__GFP_NOWARN); ivtv_stream_alloc() 253 buf->buf, s->buf_size + 256, s->dma); ivtv_stream_alloc() 276 s->buf_size + 256, s->dma); ivtv_stream_free()
|
H A D | ivtv-queue.h | 57 s->buf_size + 256, s->dma); ivtv_buf_sync_for_cpu() 64 s->buf_size + 256, s->dma); ivtv_buf_sync_for_device()
|
H A D | ivtv-irq.c | 207 multiple of the buf_size. The UV samples then start in the stream_enc_dma_append() 209 bytes_needed = s->buf_size * ((bytes_needed + s->buf_size - 1) / s->buf_size); stream_enc_dma_append() 236 s->sg_pending[idx].size = s->buf_size; stream_enc_dma_append() 237 buf->bytesused = min(size, s->buf_size); stream_enc_dma_append() 242 offset += s->buf_size; stream_enc_dma_append()
|
H A D | ivtv-streams.c | 178 s->buf_size = itv->stream_buf_size[type]; ivtv_stream_init() 179 if (s->buf_size) ivtv_stream_init() 180 s->buffers = (itv->options.kilobytes[type] * 1024 + s->buf_size - 1) / s->buf_size; ivtv_stream_init()
|
/linux-4.1.27/drivers/isdn/hysdn/ |
H A D | hysdn_procconf.c | 39 int buf_size; /* actual number of bytes in the buffer */ member in struct:conf_writedata 114 cnf->buf_size = 0; /* buffer is empty */ hysdn_conf_write() 118 cnf->buf_size = 0; /* buffer is empty */ hysdn_conf_write() 127 i = cnf->needed_size - cnf->buf_size; /* bytes still missing for write */ hysdn_conf_write() 133 if (copy_from_user(cnf->pof_buffer + cnf->buf_size, buf, count)) hysdn_conf_write() 135 cnf->buf_size += count; hysdn_conf_write() 137 if (cnf->needed_size == cnf->buf_size) { hysdn_conf_write() 138 cnf->needed_size = pof_write_buffer(cnf->card, cnf->buf_size); /* write data */ hysdn_conf_write() 143 cnf->buf_size = 0; /* buffer is empty again */ hysdn_conf_write() 154 i = (CONF_LINE_LEN - 1) - cnf->buf_size; /* bytes available in buffer */ hysdn_conf_write() 160 if (copy_from_user(cnf->conf_line + cnf->buf_size, buf, count)) hysdn_conf_write() 164 cp = cnf->conf_line + cnf->buf_size; hysdn_conf_write() 182 cnf->buf_size = 0; /* buffer is empty after transfer */ hysdn_conf_write() 188 cnf->buf_size += count; /* add chars to string */ hysdn_conf_write() 189 if (cnf->buf_size >= CONF_LINE_LEN - 1) { hysdn_conf_write() 191 hysdn_addlog(cnf->card, "cnf line too long %d chars pos %d", cnf->buf_size, count); hysdn_conf_write() 251 cnf->buf_size = 0; /* nothing buffered */ hysdn_conf_open()
|
/linux-4.1.27/drivers/media/platform/omap/ |
H A D | omap_voutlib.h | 33 unsigned long omap_vout_alloc_buffer(u32 buf_size, u32 *phys_addr); 34 void omap_vout_free_buffer(unsigned long virtaddr, u32 buf_size);
|
H A D | omap_voutlib.c | 301 unsigned long omap_vout_alloc_buffer(u32 buf_size, u32 *phys_addr) omap_vout_alloc_buffer() argument 306 size = PAGE_ALIGN(buf_size); omap_vout_alloc_buffer() 325 void omap_vout_free_buffer(unsigned long virtaddr, u32 buf_size) omap_vout_free_buffer() argument 330 size = PAGE_ALIGN(buf_size); omap_vout_free_buffer()
|
/linux-4.1.27/arch/alpha/include/asm/ |
H A D | console.h | 14 extern long callback_getenv(long id, const char *buf, unsigned long buf_size); 15 extern long callback_setenv(long id, const char *buf, unsigned long buf_size);
|
/linux-4.1.27/drivers/media/platform/omap3isp/ |
H A D | isph3a_aewb.c | 78 aewb->buf_size = conf->buf_size; h3a_aewb_setup_regs() 118 u32 buf_size; h3a_aewb_validate_params() local 166 buf_size = h3a_aewb_get_buf_size(user_cfg); h3a_aewb_validate_params() 167 if (buf_size > user_cfg->buf_size) h3a_aewb_validate_params() 168 user_cfg->buf_size = buf_size; h3a_aewb_validate_params() 169 else if (user_cfg->buf_size > OMAP3ISP_AEWB_MAX_BUF_SIZE) h3a_aewb_validate_params() 170 user_cfg->buf_size = OMAP3ISP_AEWB_MAX_BUF_SIZE; h3a_aewb_validate_params() 240 cur_cfg->buf_size = h3a_aewb_get_buf_size(cur_cfg); h3a_aewb_set_params() 329 aewb_recover_cfg->buf_size = h3a_aewb_get_buf_size(aewb_recover_cfg); omap3isp_h3a_aewb_init()
|
H A D | ispstat.c | 64 u32 buf_size, enum dma_data_direction dir, __isp_stat_buf_sync_magic() 71 dma_sync(stat->isp->dev, buf->dma_addr + (buf_size & PAGE_MASK), __isp_stat_buf_sync_magic() 72 buf_size & ~PAGE_MASK, MAGIC_SIZE, dir); __isp_stat_buf_sync_magic() 77 u32 buf_size, isp_stat_buf_sync_magic_for_device() 83 __isp_stat_buf_sync_magic(stat, buf, buf_size, dir, isp_stat_buf_sync_magic_for_device() 89 u32 buf_size, isp_stat_buf_sync_magic_for_cpu() 95 __isp_stat_buf_sync_magic(stat, buf, buf_size, dir, isp_stat_buf_sync_magic_for_cpu() 102 const u32 buf_size = IS_H3A_AF(stat) ? isp_stat_buf_check_magic() local 103 buf->buf_size + AF_EXTRA_DATA : buf->buf_size; isp_stat_buf_check_magic() 108 isp_stat_buf_sync_magic_for_cpu(stat, buf, buf_size, DMA_FROM_DEVICE); isp_stat_buf_check_magic() 122 for (w = buf->virt_addr + buf_size, end = w + MAGIC_SIZE; isp_stat_buf_check_magic() 131 isp_stat_buf_sync_magic_for_device(stat, buf, buf_size, isp_stat_buf_check_magic() 140 const u32 buf_size = IS_H3A_AF(stat) ? isp_stat_buf_insert_magic() local 141 stat->buf_size + AF_EXTRA_DATA : stat->buf_size; isp_stat_buf_insert_magic() 143 isp_stat_buf_sync_magic_for_cpu(stat, buf, buf_size, DMA_FROM_DEVICE); isp_stat_buf_insert_magic() 147 * buf->buf_size is set only after the buffer is queued. For now the isp_stat_buf_insert_magic() 148 * right buf_size for the current configuration is pointed by isp_stat_buf_insert_magic() 149 * stat->buf_size. isp_stat_buf_insert_magic() 152 memset(buf->virt_addr + buf_size, MAGIC_NUM, MAGIC_SIZE); isp_stat_buf_insert_magic() 154 isp_stat_buf_sync_magic_for_device(stat, buf, buf_size, isp_stat_buf_insert_magic() 240 stat->active_buf->buf_size = stat->buf_size; isp_stat_buf_queue() 309 if (buf->buf_size > data->buf_size) { isp_stat_buf_get() 320 buf->buf_size); isp_stat_buf_get() 503 data->buf_size = buf->buf_size; omap3isp_stat_request_statistics() 525 u32 buf_size = user_cfg->buf_size; omap3isp_stat_config() local 536 "size=0x%08lx\n", stat->subdev.name, (unsigned long)buf_size); omap3isp_stat_config() 546 if (buf_size != user_cfg->buf_size) omap3isp_stat_config() 549 (unsigned long)user_cfg->buf_size); omap3isp_stat_config() 555 * Hack 2: MAGIC_SIZE is added to buf_size so a magic word can be omap3isp_stat_config() 563 buf_size = user_cfg->buf_size * 2 + MAGIC_SIZE; omap3isp_stat_config() 569 buf_size += AF_EXTRA_DATA * (NUM_H3A_RECOVER_BUFS + 2); omap3isp_stat_config() 573 buf_size += recover_cfg->buf_size * omap3isp_stat_config() 576 buf_size = PAGE_ALIGN(buf_size); omap3isp_stat_config() 578 buf_size = PAGE_ALIGN(user_cfg->buf_size + MAGIC_SIZE); omap3isp_stat_config() 581 ret = isp_stat_bufs_alloc(stat, buf_size); omap3isp_stat_config() 62 __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)) __isp_stat_buf_sync_magic() argument 75 isp_stat_buf_sync_magic_for_device(struct ispstat *stat, struct ispstat_buffer *buf, u32 buf_size, enum dma_data_direction dir) isp_stat_buf_sync_magic_for_device() argument 87 isp_stat_buf_sync_magic_for_cpu(struct ispstat *stat, struct ispstat_buffer *buf, u32 buf_size, enum dma_data_direction dir) isp_stat_buf_sync_magic_for_cpu() argument
|
H A D | isph3a_af.c | 128 af->buf_size = conf->buf_size; h3a_af_setup_regs() 162 u32 buf_size; h3a_af_validate_params() local 219 buf_size = h3a_af_get_buf_size(user_cfg); h3a_af_validate_params() 220 if (buf_size > user_cfg->buf_size) h3a_af_validate_params() 221 /* User buf_size request wasn't enough */ h3a_af_validate_params() 222 user_cfg->buf_size = buf_size; h3a_af_validate_params() 223 else if (user_cfg->buf_size > OMAP3ISP_AF_MAX_BUF_SIZE) h3a_af_validate_params() 224 user_cfg->buf_size = OMAP3ISP_AF_MAX_BUF_SIZE; h3a_af_validate_params() 302 * instead of stick with user_cfg->buf_size. h3a_af_set_params() 304 cur_cfg->buf_size = h3a_af_get_buf_size(cur_cfg); h3a_af_set_params() 387 af_recover_cfg->buf_size = h3a_af_get_buf_size(af_recover_cfg); omap3isp_h3a_af_init()
|
H A D | isphist.c | 141 hist->buf_size = conf->buf_size; hist_setup_regs() 198 cfg.src_maxburst = hist->buf_size / 4; hist_buf_dma() 208 hist->buf_size, DMA_DEV_TO_MEM, hist_buf_dma() 256 * optimization. It avoids 3/4 of the jumps. We also know buf_size is hist_buf_pio() 259 for (i = hist->buf_size / 16; i > 0; i--) { hist_buf_pio() 312 u32 buf_size; hist_validate_params() local 354 buf_size = hist_get_buf_size(user_cfg); hist_validate_params() 355 if (buf_size > user_cfg->buf_size) hist_validate_params() 356 /* User's buf_size request wasn't enough */ hist_validate_params() 357 user_cfg->buf_size = buf_size; hist_validate_params() 358 else if (user_cfg->buf_size > OMAP3ISP_HIST_MAX_BUF_SIZE) hist_validate_params() 359 user_cfg->buf_size = OMAP3ISP_HIST_MAX_BUF_SIZE; hist_validate_params() 423 * instead of stick with user_cfg->buf_size. hist_set_params() 425 cur_cfg->buf_size = hist_get_buf_size(cur_cfg); hist_set_params()
|
H A D | ispstat.h | 43 u32 buf_size; member in struct:ispstat_buffer 52 * new_conf->buf_size value must be changed to the exact buffer size 59 * stat->priv->buf_size value must be set to the exact buffer size for 110 u32 buf_size; member in struct:ispstat 126 u32 buf_size; member in struct:ispstat_generic_config
|
/linux-4.1.27/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-debugifc.h | 30 char *buf_ptr, unsigned int buf_size); 36 char *buf_ptr,unsigned int buf_size); 40 const char *buf_ptr,unsigned int buf_size);
|
/linux-4.1.27/net/mac80211/ |
H A D | agg-rx.c | 52 for (i = 0; i < tid_rx->buf_size; i++) ieee80211_free_tid_rx() 187 u16 buf_size, u16 timeout) ieee80211_send_addba_resp() 222 capab |= (u16)(buf_size << 6); /* bit 15:6 max size of aggregation */ ieee80211_send_addba_resp() 234 u16 buf_size, bool tx, bool auto_seq) __ieee80211_start_rx_ba_session() 262 (buf_size > IEEE80211_MAX_AMPDU_BUF)) { __ieee80211_start_rx_ba_session() 266 sta->sta.addr, tid, ba_policy, buf_size); __ieee80211_start_rx_ba_session() 270 if (buf_size == 0) __ieee80211_start_rx_ba_session() 271 buf_size = IEEE80211_MAX_AMPDU_BUF; __ieee80211_start_rx_ba_session() 274 if (buf_size > local->hw.max_rx_aggregation_subframes) __ieee80211_start_rx_ba_session() 275 buf_size = local->hw.max_rx_aggregation_subframes; __ieee80211_start_rx_ba_session() 310 kcalloc(buf_size, sizeof(struct sk_buff_head), GFP_KERNEL); __ieee80211_start_rx_ba_session() 312 kcalloc(buf_size, sizeof(unsigned long), GFP_KERNEL); __ieee80211_start_rx_ba_session() 320 for (i = 0; i < buf_size; i++) __ieee80211_start_rx_ba_session() 338 tid_agg_rx->buf_size = buf_size; __ieee80211_start_rx_ba_session() 358 dialog_token, status, 1, buf_size, __ieee80211_start_rx_ba_session() 367 u16 capab, tid, timeout, ba_policy, buf_size, start_seq_num; ieee80211_process_addba_request() local 379 buf_size = (capab & IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK) >> 6; ieee80211_process_addba_request() 383 buf_size, true, false); ieee80211_process_addba_request() 185 ieee80211_send_addba_resp(struct ieee80211_sub_if_data *sdata, u8 *da, u16 tid, u8 dialog_token, u16 status, u16 policy, u16 buf_size, u16 timeout) ieee80211_send_addba_resp() argument 231 __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) __ieee80211_start_rx_ba_session() argument
|
H A D | agg-tx.c | 696 &sta->sta, tid, NULL, tid_tx->buf_size); ieee80211_agg_tx_operational() 920 u8 buf_size; ieee80211_process_addba_resp() local 924 buf_size = (capab & IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK) >> 6; ieee80211_process_addba_resp() 963 == WLAN_STATUS_SUCCESS && buf_size) { ieee80211_process_addba_resp() 970 tid_tx->buf_size = buf_size; ieee80211_process_addba_resp()
|
H A D | sta_info.h | 130 * @buf_size: reorder buffer size at receiver 154 u8 buf_size; member in struct:tid_ampdu_tx 172 * @buf_size: buffer size for incoming A-MPDUs 185 * struct, except for @timeout, @buf_size and @dialog_token, 200 u16 buf_size; member in struct:tid_ampdu_rx
|
H A D | trace.h | 945 u16 *ssn, u8 buf_size), 947 TP_ARGS(local, sdata, action, sta, tid, ssn, buf_size), 955 __field(u8, buf_size) 966 __entry->buf_size = buf_size; 972 __entry->tid, __entry->buf_size
|
H A D | rx.c | 793 index = tid_agg_rx->head_seq_num % tid_agg_rx->buf_size; ieee80211_release_reorder_frames() 819 index = tid_agg_rx->head_seq_num % tid_agg_rx->buf_size; ieee80211_sta_reorder_release() 827 for (j = (index + 1) % tid_agg_rx->buf_size; j != index; ieee80211_sta_reorder_release() 828 j = (j + 1) % tid_agg_rx->buf_size) { ieee80211_sta_reorder_release() 840 for (i = (index + 1) % tid_agg_rx->buf_size; i != j; ieee80211_sta_reorder_release() 841 i = (i + 1) % tid_agg_rx->buf_size) ieee80211_sta_reorder_release() 861 index = tid_agg_rx->head_seq_num % tid_agg_rx->buf_size; ieee80211_sta_reorder_release() 865 j = index = tid_agg_rx->head_seq_num % tid_agg_rx->buf_size; ieee80211_sta_reorder_release() 867 for (; j != (index - 1) % tid_agg_rx->buf_size; ieee80211_sta_reorder_release() 868 j = (j + 1) % tid_agg_rx->buf_size) { ieee80211_sta_reorder_release() 899 u16 head_seq_num, buf_size; ieee80211_sta_manage_reorder_buf() local 915 buf_size = tid_agg_rx->buf_size; ieee80211_sta_manage_reorder_buf() 928 if (!ieee80211_sn_less(mpdu_seq_num, head_seq_num + buf_size)) { ieee80211_sta_manage_reorder_buf() 930 ieee80211_sn_sub(mpdu_seq_num, buf_size)); ieee80211_sta_manage_reorder_buf() 938 index = mpdu_seq_num % tid_agg_rx->buf_size; ieee80211_sta_manage_reorder_buf()
|
/linux-4.1.27/drivers/net/wireless/libertas/ |
H A D | debugfs.c | 59 ssize_t buf_size, ret; lbs_sleepparams_write() local 67 buf_size = min(count, len - 1); lbs_sleepparams_write() 68 if (copy_from_user(buf, user_buf, buf_size)) { lbs_sleepparams_write() 128 ssize_t buf_size, ret; lbs_host_sleep_write() local 135 buf_size = min(count, len - 1); lbs_host_sleep_write() 136 if (copy_from_user(buf, user_buf, buf_size)) { lbs_host_sleep_write() 284 ssize_t buf_size; lbs_threshold_write() local 294 buf_size = min(count, len - 1); lbs_threshold_write() 295 if (copy_from_user(buf, userbuf, buf_size)) { lbs_threshold_write() 475 ssize_t res, buf_size; lbs_rdmac_write() local 481 buf_size = min(count, len - 1); lbs_rdmac_write() 482 if (copy_from_user(buf, userbuf, buf_size)) { lbs_rdmac_write() 499 ssize_t res, buf_size; lbs_wrmac_write() local 506 buf_size = min(count, len - 1); lbs_wrmac_write() 507 if (copy_from_user(buf, userbuf, buf_size)) { lbs_wrmac_write() 557 ssize_t res, buf_size; lbs_rdbbp_write() local 563 buf_size = min(count, len - 1); lbs_rdbbp_write() 564 if (copy_from_user(buf, userbuf, buf_size)) { lbs_rdbbp_write() 581 ssize_t res, buf_size; lbs_wrbbp_write() local 588 buf_size = min(count, len - 1); lbs_wrbbp_write() 589 if (copy_from_user(buf, userbuf, buf_size)) { lbs_wrbbp_write() 639 ssize_t res, buf_size; lbs_rdrf_write() local 645 buf_size = min(count, len - 1); lbs_rdrf_write() 646 if (copy_from_user(buf, userbuf, buf_size)) { lbs_rdrf_write() 663 ssize_t res, buf_size; lbs_wrrf_write() local 670 buf_size = min(count, len - 1); lbs_wrrf_write() 671 if (copy_from_user(buf, userbuf, buf_size)) { lbs_wrrf_write()
|
/linux-4.1.27/drivers/net/wireless/ath/wcn36xx/ |
H A D | debug.c | 62 int buf_size; write_file_bool_bmps() local 64 buf_size = min(count, (sizeof(buf)-1)); write_file_bool_bmps() 65 if (copy_from_user(buf, user_buf, buf_size)) write_file_bool_bmps() 110 int buf_size; write_file_dump() local 117 buf_size = min(count, (sizeof(buf) - 1)); write_file_dump() 118 if (copy_from_user(buf, user_buf, buf_size)) write_file_dump()
|
/linux-4.1.27/drivers/media/pci/cx18/ |
H A D | cx18-queue.c | 107 u32 buf_size = s->buf_size; _cx18_mdl_update_bufs_for_cpu() local 112 if (bytesused >= buf_size) { _cx18_mdl_update_bufs_for_cpu() 113 buf->bytesused = buf_size; _cx18_mdl_update_bufs_for_cpu() 114 bytesused -= buf_size; _cx18_mdl_update_bufs_for_cpu() 309 cx18_writel(cx, s->buf_size, cx18_load_queues() 321 partial_buf_size = s->mdl_size % s->buf_size; cx18_load_queues() 338 u32 buf_size = s->buf_size; _cx18_mdl_sync_for_device() local 344 buf_size, dma); _cx18_mdl_sync_for_device() 357 s->name, s->buffers, s->buf_size, cx18_stream_alloc() 358 s->buffers * s->buf_size / 1024, cx18_stream_alloc() 359 (s->buffers * s->buf_size * 100 / 1024) % 100); cx18_stream_alloc() 391 buf->buf = kmalloc(s->buf_size, GFP_KERNEL|__GFP_NOWARN); cx18_stream_alloc() 405 buf->buf, s->buf_size, s->dma); cx18_stream_alloc() 439 s->buf_size, s->dma); cx18_stream_free()
|
H A D | cx18-queue.h | 33 s->buf_size, s->dma); cx18_buf_sync_for_cpu() 40 s->buf_size, s->dma); cx18_buf_sync_for_device()
|
H A D | cx18-streams.c | 271 s->buf_size = cx->stream_buf_size[type]; cx18_stream_init() 274 s->mdl_size = s->buf_size * s->bufs_per_mdl; cx18_stream_init() 756 s->bufs_per_mdl = s->mdl_size / s->buf_size; cx18_stream_configure_mdls() 757 if (s->mdl_size % s->buf_size) cx18_stream_configure_mdls() 778 s->mdl_size = s->buf_size * s->bufs_per_mdl; cx18_stream_configure_mdls()
|
H A D | cx18-dvb.c | 416 stream->buffers, stream->buf_size/1024, cx18_dvb_register() 417 (stream->buf_size * 100 / 1024) % 100); cx18_dvb_register()
|
/linux-4.1.27/drivers/net/wireless/ti/wlcore/ |
H A D | rx.c | 209 u32 buf_size; wlcore_rx() local 220 buf_size = 0; wlcore_rx() 227 if (buf_size + align_pkt_len > wl->aggr_buf_size) wlcore_rx() 229 buf_size += align_pkt_len; wlcore_rx() 234 if (buf_size == 0) { wlcore_rx() 241 ret = wlcore_hw_prepare_read(wl, des, buf_size); wlcore_rx() 246 buf_size, true); wlcore_rx() 252 while (pkt_offset < buf_size) { wlcore_rx()
|
H A D | debugfs.c | 538 const int buf_size = 4096; vifs_state_read() local 542 buf = kzalloc(buf_size, GFP_KERNEL); vifs_state_read() 549 (res += scnprintf(buf + res, buf_size - res, \ vifs_state_read() 564 res += scnprintf(buf + res, buf_size - res, \ vifs_state_read()
|
/linux-4.1.27/include/uapi/linux/ |
H A D | cciss_ioctl.h | 44 WORD buf_size; /* size in bytes of the buf */ member in struct:_IOCTL_Command_struct 53 DWORD buf_size; /* size in bytes of the buf */ member in struct:_BIG_IOCTL_Command_struct
|
H A D | random.h | 39 int buf_size; member in struct:rand_pool_info
|
H A D | blktrace_api.h | 135 __u32 buf_size; /* input */ member in struct:blk_user_trace_setup
|
H A D | omap3isp.h | 140 __u32 buf_size; member in struct:omap3isp_h3a_aewb_config 169 __u32 buf_size; member in struct:omap3isp_stat_data 218 __u32 buf_size; member in struct:omap3isp_hist_config 280 __u32 buf_size; member in struct:omap3isp_h3a_af_config
|
/linux-4.1.27/drivers/isdn/hisax/ |
H A D | st5481_b.c | 36 int len, buf_size, bytes_sent; usb_b_out() local 48 buf_size = NUM_ISO_PACKETS_B * SIZE_ISO_PACKETS_B_OUT + B_FLOW_ADJUST; usb_b_out() 52 buf_size = NUM_ISO_PACKETS_B * SIZE_ISO_PACKETS_B_OUT - B_FLOW_ADJUST; usb_b_out() 56 buf_size = NUM_ISO_PACKETS_B * SIZE_ISO_PACKETS_B_OUT; usb_b_out() 62 while (len < buf_size) { usb_b_out() 68 bytes_sent = buf_size - len; usb_b_out() 82 urb->transfer_buffer + len, buf_size-len); usb_b_out() 99 memset(urb->transfer_buffer + len, 0xff, buf_size-len); usb_b_out() 100 len = buf_size; usb_b_out() 105 urb->transfer_buffer + len, buf_size-len); usb_b_out()
|
H A D | st5481_d.c | 300 int len, buf_size, bytes_sent; usb_d_out() local 315 buf_size = NUM_ISO_PACKETS_D * SIZE_ISO_PACKETS_D_OUT; usb_d_out() 320 urb->transfer_buffer, buf_size); usb_d_out() 326 urb->transfer_buffer, buf_size); usb_d_out() 329 if (len < buf_size) { usb_d_out()
|
H A D | st5481_usb.c | 431 int packet_size, int buf_size, st5481_setup_isocpipes() 444 buf = kmalloc(buf_size, GFP_KERNEL); st5481_setup_isocpipes() 429 st5481_setup_isocpipes(struct urb *urb[2], struct usb_device *dev, unsigned int pipe, int num_packets, int packet_size, int buf_size, usb_complete_t complete, void *context) st5481_setup_isocpipes() argument
|
/linux-4.1.27/drivers/media/usb/dvb-usb-v2/ |
H A D | usb_urb.c | 216 usb_free_coherent(stream->udev, stream->buf_size, usb_free_stream_buffers() 231 stream->buf_size = size; usb_alloc_stream_buffers() 262 int buf_size; usb_urb_reconfig() local 269 buf_size = stream->props.u.bulk.buffersize; usb_urb_reconfig() 271 buf_size = props->u.isoc.framesize * props->u.isoc.framesperurb; usb_urb_reconfig() 278 if (stream->buf_num < props->count || stream->buf_size < buf_size) { usb_urb_reconfig()
|
H A D | dvb_usb.h | 277 * @buf_size: size of each buffer in buf_list 297 unsigned long buf_size; member in struct:usb_data_stream
|
/linux-4.1.27/drivers/net/wireless/iwlegacy/ |
H A D | debug.c | 278 int buf_size; il_dbgfs_clear_traffic_stats_write() local 281 buf_size = min(count, sizeof(buf) - 1); il_dbgfs_clear_traffic_stats_write() 282 if (copy_from_user(buf, user_buf, buf_size)) il_dbgfs_clear_traffic_stats_write() 400 int buf_size; il_dbgfs_sram_write() local 404 buf_size = min(count, sizeof(buf) - 1); il_dbgfs_sram_write() 405 if (copy_from_user(buf, user_buf, buf_size)) il_dbgfs_sram_write() 489 int pos = 0, ofs = 0, buf_size = 0; il_dbgfs_nvm_read() local 494 buf_size = 4 * eeprom_len + 256; il_dbgfs_nvm_read() 508 buf = kzalloc(buf_size, GFP_KERNEL); il_dbgfs_nvm_read() 515 scnprintf(buf + pos, buf_size - pos, "EEPROM " "version: 0x%x\n", il_dbgfs_nvm_read() 518 pos += scnprintf(buf + pos, buf_size - pos, "0x%.4x ", ofs); il_dbgfs_nvm_read() 520 buf_size - pos, 0); il_dbgfs_nvm_read() 522 if (buf_size - pos > 0) il_dbgfs_nvm_read() 756 int buf_size; il_dbgfs_interrupt_write() local 760 buf_size = min(count, sizeof(buf) - 1); il_dbgfs_interrupt_write() 761 if (copy_from_user(buf, user_buf, buf_size)) il_dbgfs_interrupt_write() 802 int buf_size; il_dbgfs_disable_ht40_write() local 806 buf_size = min(count, sizeof(buf) - 1); il_dbgfs_disable_ht40_write() 807 if (copy_from_user(buf, user_buf, buf_size)) il_dbgfs_disable_ht40_write() 1150 int buf_size; il_dbgfs_clear_ucode_stats_write() local 1154 buf_size = min(count, sizeof(buf) - 1); il_dbgfs_clear_ucode_stats_write() 1155 if (copy_from_user(buf, user_buf, buf_size)) il_dbgfs_clear_ucode_stats_write() 1240 int buf_size; il_dbgfs_missed_beacon_write() local 1244 buf_size = min(count, sizeof(buf) - 1); il_dbgfs_missed_beacon_write() 1245 if (copy_from_user(buf, user_buf, buf_size)) il_dbgfs_missed_beacon_write() 1310 int buf_size; il_dbgfs_wd_timeout_write() local 1314 buf_size = min(count, sizeof(buf) - 1); il_dbgfs_wd_timeout_write() 1315 if (copy_from_user(buf, user_buf, buf_size)) il_dbgfs_wd_timeout_write()
|
/linux-4.1.27/drivers/media/platform/s5p-mfc/ |
H A D | s5p_mfc_cmd_v6.c | 39 struct s5p_mfc_buf_size_v6 *buf_size = dev->variant->buf_size->priv; s5p_mfc_sys_init_cmd_v6() local 43 mfc_write(dev, buf_size->dev_ctx, S5P_FIMV_CONTEXT_MEM_SIZE_V6); s5p_mfc_sys_init_cmd_v6()
|
H A D | s5p_mfc_opr_v5.c | 40 struct s5p_mfc_buf_size_v5 *buf_size = dev->variant->buf_size->priv; s5p_mfc_alloc_dec_temp_buffers_v5() local 43 ctx->dsc.size = buf_size->dsc; s5p_mfc_alloc_dec_temp_buffers_v5() 206 struct s5p_mfc_buf_size_v5 *buf_size = dev->variant->buf_size->priv; s5p_mfc_alloc_instance_buffer_v5() local 211 ctx->ctx.size = buf_size->h264_ctx; s5p_mfc_alloc_instance_buffer_v5() 213 ctx->ctx.size = buf_size->non_h264_ctx; s5p_mfc_alloc_instance_buffer_v5() 227 ctx->shm.size = buf_size->shm; s5p_mfc_alloc_instance_buffer_v5() 239 memset(ctx->shm.virt, 0, buf_size->shm); s5p_mfc_alloc_instance_buffer_v5() 351 struct s5p_mfc_buf_size_v5 *buf_size = dev->variant->buf_size->priv; s5p_mfc_set_dec_desc_buffer() local 354 mfc_write(dev, buf_size->dsc, S5P_FIMV_SI_CH0_DESC_SIZE); s5p_mfc_set_dec_desc_buffer() 367 unsigned int buf_size) s5p_mfc_set_dec_stream_buffer_v5() 373 mfc_write(dev, buf_size, S5P_FIMV_SI_CH0_SB_FRM_SIZE); s5p_mfc_set_dec_stream_buffer_v5() 365 s5p_mfc_set_dec_stream_buffer_v5(struct s5p_mfc_ctx *ctx, int buf_addr, unsigned int start_num_byte, unsigned int buf_size) s5p_mfc_set_dec_stream_buffer_v5() argument
|
H A D | s5p_mfc_opr_v6.c | 262 struct s5p_mfc_buf_size_v6 *buf_size = dev->variant->buf_size->priv; s5p_mfc_alloc_instance_buffer_v6() local 270 ctx->ctx.size = buf_size->h264_dec_ctx; s5p_mfc_alloc_instance_buffer_v6() 278 ctx->ctx.size = buf_size->other_dec_ctx; s5p_mfc_alloc_instance_buffer_v6() 281 ctx->ctx.size = buf_size->h264_enc_ctx; s5p_mfc_alloc_instance_buffer_v6() 286 ctx->ctx.size = buf_size->other_enc_ctx; s5p_mfc_alloc_instance_buffer_v6() 317 struct s5p_mfc_buf_size_v6 *buf_size = dev->variant->buf_size->priv; s5p_mfc_alloc_dev_context_buffer_v6() local 322 dev->ctx_buf.size = buf_size->dev_ctx; s5p_mfc_alloc_dev_context_buffer_v6() 329 memset(dev->ctx_buf.virt, 0, buf_size->dev_ctx); s5p_mfc_alloc_dev_context_buffer_v6() 408 struct s5p_mfc_buf_size *buf_size = dev->variant->buf_size; s5p_mfc_set_dec_stream_buffer_v6() local 412 "buf_size: 0x%08x (%d)\n", s5p_mfc_set_dec_stream_buffer_v6() 416 writel(buf_size->cpb, mfc_regs->d_cpb_buffer_size); s5p_mfc_set_dec_stream_buffer_v6()
|
H A D | s5p_mfc_dec.c | 419 struct s5p_mfc_buf_size *buf_size = dev->variant->buf_size; vidioc_s_fmt() local 446 else if (pix_mp->plane_fmt[0].sizeimage > buf_size->cpb) vidioc_s_fmt() 447 ctx->dec_src_buf_size = buf_size->cpb; vidioc_s_fmt()
|
H A D | s5p_mfc.c | 1375 .buf_size = &buf_size_v5, 1402 .buf_size = &buf_size_v6, 1434 .buf_size = &buf_size_v7, 1461 .buf_size = &buf_size_v8,
|
/linux-4.1.27/drivers/scsi/fnic/ |
H A D | fnic_trace.c | 218 int buf_size = debug->buf_size; fnic_get_stats_data() local 221 len = snprintf(debug->debug_buffer + len, buf_size - len, fnic_get_stats_data() 225 len += snprintf(debug->debug_buffer + len, buf_size - len, fnic_get_stats_data() 242 len += snprintf(debug->debug_buffer + len, buf_size - len, fnic_get_stats_data() 246 len += snprintf(debug->debug_buffer + len, buf_size - len, fnic_get_stats_data() 258 len += snprintf(debug->debug_buffer + len, buf_size - len, fnic_get_stats_data() 262 len += snprintf(debug->debug_buffer + len, buf_size - len, fnic_get_stats_data() 276 len += snprintf(debug->debug_buffer + len, buf_size - len, fnic_get_stats_data() 281 len += snprintf(debug->debug_buffer + len, buf_size - len, fnic_get_stats_data() 307 len += snprintf(debug->debug_buffer + len, buf_size - len, fnic_get_stats_data() 312 len += snprintf(debug->debug_buffer + len, buf_size - len, fnic_get_stats_data() 322 len += snprintf(debug->debug_buffer + len, buf_size - len, fnic_get_stats_data() 327 len += snprintf(debug->debug_buffer + len, buf_size - len, fnic_get_stats_data() 337 len += snprintf(debug->debug_buffer + len, buf_size - len, fnic_get_stats_data() 345 len += snprintf(debug->debug_buffer + len, buf_size - len, fnic_get_stats_data()
|
H A D | fnic_stats.h | 109 int buf_size; member in struct:stats_debug_info
|
H A D | fnic_debugfs.c | 680 int buf_size = 2 * PAGE_SIZE; fnic_stats_debugfs_open() local 686 debug->debug_buffer = vmalloc(buf_size); fnic_stats_debugfs_open() 692 debug->buf_size = buf_size; fnic_stats_debugfs_open() 693 memset((void *)debug->debug_buffer, 0, buf_size); fnic_stats_debugfs_open()
|
/linux-4.1.27/drivers/infiniband/hw/mlx5/ |
H A D | srq.c | 78 struct ib_udata *udata, int buf_size, int *inlen) create_srq_user() 105 srq->umem = ib_umem_get(pd->uobject->context, ucmd.buf_addr, buf_size, create_srq_user() 108 mlx5_ib_dbg(dev, "failed umem get, size %d\n", buf_size); create_srq_user() 153 struct mlx5_create_srq_mbox_in **in, int buf_size, create_srq_kernel() 168 if (mlx5_buf_alloc(dev->mdev, buf_size, PAGE_SIZE * 2, &srq->buf)) { create_srq_kernel() 186 mlx5_ib_dbg(dev, "buf_size %d, page_shift %d, npages %d, calc npages %d\n", create_srq_kernel() 187 buf_size, page_shift, srq->buf.npages, npages); create_srq_kernel() 242 int buf_size; mlx5_ib_create_srq() local 274 buf_size = srq->msrq.max * desc_size; mlx5_ib_create_srq() 280 err = create_srq_user(pd, srq, &in, udata, buf_size, &inlen); mlx5_ib_create_srq() 282 err = create_srq_kernel(dev, srq, &in, buf_size, &inlen); mlx5_ib_create_srq() 76 create_srq_user(struct ib_pd *pd, struct mlx5_ib_srq *srq, struct mlx5_create_srq_mbox_in **in, struct ib_udata *udata, int buf_size, int *inlen) create_srq_user() argument 152 create_srq_kernel(struct mlx5_ib_dev *dev, struct mlx5_ib_srq *srq, struct mlx5_create_srq_mbox_in **in, int buf_size, int *inlen) create_srq_kernel() argument
|
H A D | qp.c | 402 qp->buf_size = (qp->rq.wqe_cnt << qp->rq.wqe_shift) + set_user_buf_size() 653 if (ucmd.buf_addr && qp->buf_size) { create_user_qp() 655 qp->buf_size, 0, 0); create_user_qp() 674 ucmd.buf_addr, qp->buf_size, npages, page_shift, ncont, offset); create_user_qp() 769 qp->buf_size = err + (qp->rq.wqe_cnt << qp->rq.wqe_shift); create_kernel_qp() 771 err = mlx5_buf_alloc(dev->mdev, qp->buf_size, PAGE_SIZE * 2, &qp->buf); create_kernel_qp() 2867 if (0 && nreq == 1 && bf->uuarn && inl && size > 1 && size <= bf->buf_size / 16) { mlx5_ib_post_send() 2878 bf->offset ^= bf->buf_size; mlx5_ib_post_send()
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_cq.c | 65 cq->buf_size = cq->size * mdev->dev->caps.cqe_size; mlx4_en_create_cq() 75 cq->buf_size, 2 * PAGE_SIZE); mlx4_en_create_cq() 90 mlx4_free_hwq_res(mdev->dev, &cq->wqres, cq->buf_size); mlx4_en_create_cq() 116 memset(cq->buf, 0, cq->buf_size); mlx4_en_activate_cq() 193 mlx4_free_hwq_res(mdev->dev, &cq->wqres, cq->buf_size); mlx4_en_destroy_cq() 198 cq->buf_size = 0; mlx4_en_destroy_cq()
|
H A D | en_rx.c | 382 ring->buf_size = ring->size * ring->stride + TXBB_SIZE; mlx4_en_create_rx_ring() 401 ring->buf_size, 2 * PAGE_SIZE); mlx4_en_create_rx_ring() 419 mlx4_free_hwq_res(mdev->dev, &ring->wqres, ring->buf_size); mlx4_en_create_rx_ring() 452 ring->buf_size = ring->size * ring->stride; mlx4_en_activate_rx_rings() 454 memset(ring->buf, 0, ring->buf_size); mlx4_en_activate_rx_rings() 1075 int buf_size = 0; mlx4_en_calc_rx_buf() local 1078 while (buf_size < eff_mtu) { mlx4_en_calc_rx_buf() 1080 (eff_mtu > buf_size + frag_sizes[i]) ? mlx4_en_calc_rx_buf() 1081 frag_sizes[i] : eff_mtu - buf_size; mlx4_en_calc_rx_buf() 1082 priv->frag_info[i].frag_prefix_size = buf_size; mlx4_en_calc_rx_buf() 1086 buf_size += priv->frag_info[i].frag_size; mlx4_en_calc_rx_buf()
|
H A D | en_tx.c | 92 ring->buf_size = ALIGN(size * ring->stride, MLX4_EN_PAGE_SIZE); mlx4_en_create_tx_ring() 96 err = mlx4_alloc_hwq_res(mdev->dev, &ring->wqres, ring->buf_size, mlx4_en_create_tx_ring() 112 en_dbg(DRV, priv, "Allocated TX ring (addr:%p) - buf:%p size:%d buf_size:%d dma:%llx\n", mlx4_en_create_tx_ring() 113 ring, ring->buf, ring->size, ring->buf_size, mlx4_en_create_tx_ring() 160 mlx4_free_hwq_res(mdev->dev, &ring->wqres, ring->buf_size); mlx4_en_create_tx_ring() 186 mlx4_free_hwq_res(mdev->dev, &ring->wqres, ring->buf_size); mlx4_en_destroy_tx_ring() 207 memset(ring->buf, 0, ring->buf_size); mlx4_en_activate_tx_ring() 248 void *end = ring->buf + ring->buf_size; mlx4_en_stamp_wqe() 282 void *end = ring->buf + ring->buf_size; mlx4_en_free_tx_desc() 958 ring->bf.offset ^= ring->bf.buf_size; mlx4_en_xmit()
|
H A D | mlx4_en.h | 284 u32 buf_size; member in struct:mlx4_en_tx_ring 316 u32 buf_size; member in struct:mlx4_en_rx_ring 341 int buf_size; member in struct:mlx4_en_cq
|
H A D | pd.c | 221 bf->buf_size = dev->caps.bf_reg_size / 2; mlx4_bf_alloc()
|
/linux-4.1.27/drivers/uwb/ |
H A D | hwa-rc.c | 106 * @buf_size: size of buffer containing incoming event 119 const size_t buf_size, hwarc_filter_evt_beacon_WUSB_0100() 128 bytes_left = buf_size; hwarc_filter_evt_beacon_WUSB_0100() 171 * @buf_size: size of buffer containing incoming event 177 const size_t buf_size, hwarc_filter_evt_drp_avail_WUSB_0100() 188 bytes_left = buf_size; hwarc_filter_evt_drp_avail_WUSB_0100() 240 * @buf_size: size of buffer containing incoming event 252 const size_t buf_size, hwarc_filter_evt_drp_WUSB_0100() 261 bytes_left = buf_size; hwarc_filter_evt_drp_WUSB_0100() 441 * @buf_size: total length of buffer in which event arrived - we need to make 447 const size_t buf_size) hwarc_get_event_size() 454 if (offset + type_size >= buf_size) { hwarc_get_event_size() 458 rceb->bEventContext, buf_size); hwarc_get_event_size() 479 * @buf_size: size of buffer in which event arrived 499 const size_t buf_size, size_t *_real_size, hwarc_filter_event_WUSB_0100() 516 offset, buf_size); hwarc_filter_event_WUSB_0100() 521 buf_size, _new_size); hwarc_filter_event_WUSB_0100() 534 offset, buf_size); hwarc_filter_event_WUSB_0100() 539 rc, header, buf_size, _new_size); hwarc_filter_event_WUSB_0100() 546 offset, buf_size); hwarc_filter_event_WUSB_0100() 551 buf_size, _new_size); hwarc_filter_event_WUSB_0100() 565 * @buf_size: size of buffer in which event arrived 579 const size_t buf_size, size_t *_real_size, hwarc_filter_event() 585 rc, header, buf_size, _real_size, _new_size); hwarc_filter_event() 117 hwarc_filter_evt_beacon_WUSB_0100(struct uwb_rc *rc, struct uwb_rceb **header, const size_t buf_size, size_t *new_size) hwarc_filter_evt_beacon_WUSB_0100() argument 175 hwarc_filter_evt_drp_avail_WUSB_0100(struct uwb_rc *rc, struct uwb_rceb **header, const size_t buf_size, size_t *new_size) hwarc_filter_evt_drp_avail_WUSB_0100() argument 250 hwarc_filter_evt_drp_WUSB_0100(struct uwb_rc *rc, struct uwb_rceb **header, const size_t buf_size, size_t *new_size) hwarc_filter_evt_drp_WUSB_0100() argument 445 hwarc_get_event_size(struct uwb_rc *rc, const struct uwb_rceb *rceb, size_t core_size, size_t offset, const size_t buf_size) hwarc_get_event_size() argument 498 hwarc_filter_event_WUSB_0100(struct uwb_rc *rc, struct uwb_rceb **header, const size_t buf_size, size_t *_real_size, size_t *_new_size) hwarc_filter_event_WUSB_0100() argument 578 hwarc_filter_event(struct uwb_rc *rc, struct uwb_rceb **header, const size_t buf_size, size_t *_real_size, size_t *_new_size) hwarc_filter_event() argument
|
H A D | address.c | 361 size_t __uwb_addr_print(char *buf, size_t buf_size, const unsigned char *addr, __uwb_addr_print() argument 366 result = scnprintf(buf, buf_size, "%pM", addr); __uwb_addr_print() 368 result = scnprintf(buf, buf_size, "%02x:%02x", __uwb_addr_print()
|
H A D | neh.c | 446 * @buf_size: Amount of data in the buffer 480 void uwb_rc_neh_grok(struct uwb_rc *rc, void *buf, size_t buf_size) uwb_rc_neh_grok() argument 489 size = buf_size; uwb_rc_neh_grok()
|
/linux-4.1.27/fs/jffs2/ |
H A D | scan.c | 40 unsigned char *buf, uint32_t buf_size, struct jffs2_summary *s); 96 uint32_t buf_size = 0; jffs2_scan_medium() local 131 buf_size = (uint32_t)try_size; jffs2_scan_medium() 151 ret = jffs2_scan_eraseblock(c, jeb, buf_size?flashbuf:(flashbuf+jeb->offset), jffs2_scan_medium() 152 buf_size, s); jffs2_scan_medium() 277 if (buf_size) jffs2_scan_medium() 440 /* Called with 'buf_size == 0' if buf is in fact a pointer _directly_ into 443 unsigned char *buf, uint32_t buf_size, struct jffs2_summary *s) { jffs2_scan_eraseblock() 487 if (!buf_size) { jffs2_scan_eraseblock() 502 err = jffs2_fill_scan_buf(c, buf + buf_size - buf_len, jffs2_scan_eraseblock() 508 sm = (void *)buf + buf_size - sizeof(*sm); jffs2_scan_eraseblock() 511 sumptr = buf + buf_size - sumlen; jffs2_scan_eraseblock() 518 if (sumlen > buf_size) { jffs2_scan_eraseblock() 523 memcpy(sumptr + sumlen - buf_len, buf + buf_size - buf_len, buf_len); jffs2_scan_eraseblock() 540 if (buf_size && sumlen > buf_size) jffs2_scan_eraseblock() 554 if (!buf_size) { jffs2_scan_eraseblock() 646 buf_len = min_t(uint32_t, buf_size, jeb->offset + c->sector_size - ofs); jffs2_scan_eraseblock() 693 if (!buf_size && (scan_end != buf_len)) {/* XIP/point case */ jffs2_scan_eraseblock() 699 buf_len = min_t(uint32_t, buf_size, jeb->offset + c->sector_size - ofs); jffs2_scan_eraseblock() 796 buf_len = min_t(uint32_t, buf_size, jeb->offset + c->sector_size - ofs); jffs2_scan_eraseblock() 813 buf_len = min_t(uint32_t, buf_size, jeb->offset + c->sector_size - ofs); jffs2_scan_eraseblock() 831 buf_len = min_t(uint32_t, buf_size, jeb->offset + c->sector_size - ofs); jffs2_scan_eraseblock() 848 buf_len = min_t(uint32_t, buf_size, jeb->offset + c->sector_size - ofs); jffs2_scan_eraseblock() 442 jffs2_scan_eraseblock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, unsigned char *buf, uint32_t buf_size, struct jffs2_summary *s) jffs2_scan_eraseblock() argument
|
/linux-4.1.27/arch/ia64/kernel/ |
H A D | perfmon_default_smpl.c | 56 if (arg->buf_size < PFM_DEFAULT_SMPL_MIN_BUF_SIZE) return -EINVAL; default_validate() 58 DPRINT(("buf_size=%lu\n", arg->buf_size)); default_validate() 71 *size = arg->buf_size; default_get_size() 85 hdr->hdr_buf_size = arg->buf_size; default_init() 90 DPRINT(("[%d] buffer=%p buf_size=%lu hdr_size=%lu hdr_version=%u cur_offs=%lu\n", default_init()
|
/linux-4.1.27/arch/s390/kernel/ |
H A D | debug.c | 76 int nr_areas, int buf_size, umode_t mode); 244 int buf_size, int level, int mode) debug_info_alloc() 274 rc->buf_size = buf_size; debug_info_alloc() 275 rc->entry_size = sizeof(debug_entry_t) + buf_size; debug_info_alloc() 336 int buf_size, umode_t mode) debug_info_create() 340 rc = debug_info_alloc(name, pages_per_area, nr_areas, buf_size, debug_info_create() 384 in->nr_areas, in->buf_size, in->level, mode); debug_info_copy() 694 int nr_areas, int buf_size, umode_t mode, debug_register_mode() 709 rc = debug_info_create(name, pages_per_area, nr_areas, buf_size, mode); debug_register_mode() 731 int nr_areas, int buf_size) debug_register() 733 return debug_register_mode(name, pages_per_area, nr_areas, buf_size, debug_register() 964 memset(DEBUG_DATA(active), 0, id->buf_size); debug_event_common() 965 memcpy(DEBUG_DATA(active), buf, min(len, id->buf_size)); debug_event_common() 992 memset(DEBUG_DATA(active), 0, id->buf_size); debug_exception_common() 993 memcpy(DEBUG_DATA(active), buf, min(len, id->buf_size)); debug_exception_common() 1043 for(idx=0;idx<min(numargs,(int)(id->buf_size / sizeof(long))-1);idx++) __debug_sprintf_event() 1080 for(idx=0;idx<min(numargs,(int)(id->buf_size / sizeof(long))-1);idx++) __debug_sprintf_exception() 1421 rc = id->buf_size; debug_raw_format_fn() 1422 memcpy(out_buf, in_buf, id->buf_size); debug_raw_format_fn() 1436 for (i = 0; i < id->buf_size; i++) { debug_hex_ascii_format_fn() 1441 for (i = 0; i < id->buf_size; i++) { debug_hex_ascii_format_fn() 1496 num_longs = id->buf_size / sizeof(long); debug_sprintf_format_fn() 243 debug_info_alloc(const char *name, int pages_per_area, int nr_areas, int buf_size, int level, int mode) debug_info_alloc() argument 335 debug_info_create(const char *name, int pages_per_area, int nr_areas, int buf_size, umode_t mode) debug_info_create() argument 693 debug_register_mode(const char *name, int pages_per_area, int nr_areas, int buf_size, umode_t mode, uid_t uid, gid_t gid) debug_register_mode() argument 730 debug_register(const char *name, int pages_per_area, int nr_areas, int buf_size) debug_register() argument
|
/linux-4.1.27/drivers/uwb/i1480/dfu/ |
H A D | usb.c | 119 buffer_size = size < i1480->buf_size ? size : i1480->buf_size; i1480_usb_write() 153 size_t itr, read_size = i1480->buf_size; i1480_usb_read() 156 BUG_ON(size > i1480->buf_size); i1480_usb_read() 248 i1480->evt_buf, i1480->buf_size, i1480_usb_wait_init_done() 306 i1480->evt_buf, i1480->buf_size, i1480_usb_cmd() 374 i1480->buf_size = 512; i1480_usb_probe() 375 i1480->cmd_buf = kmalloc(2 * i1480->buf_size, GFP_KERNEL); i1480_usb_probe() 381 i1480->evt_buf = i1480->cmd_buf + i1480->buf_size; i1480_usb_probe()
|
H A D | i1480-dfu.h | 99 * Size has to be @buf_size. 103 * Size has to be @buf_size. 128 size_t buf_size; /* size of both evt_buf and cmd_buf */ member in struct:i1480
|
H A D | mac.c | 176 chunk_size = size < i1480->buf_size ? size : i1480->buf_size; i1480_fw_cmp()
|
H A D | phy.c | 110 BUG_ON(size > (i1480->buf_size - sizeof(*reply)) / 3); i1480_mpi_read()
|
/linux-4.1.27/drivers/net/wireless/ath/ath10k/ |
H A D | debugfs_sta.c | 90 u32 tid, buf_size; ath10k_dbg_sta_write_addba() local 99 ret = sscanf(buf, "%u %u", &tid, &buf_size); ath10k_dbg_sta_write_addba() 115 tid, buf_size); ath10k_dbg_sta_write_addba() 117 ath10k_warn(ar, "failed to send addba request: vdev_id %u peer %pM tid %u buf_size %u\n", ath10k_dbg_sta_write_addba() 118 arsta->arvif->vdev_id, sta->addr, tid, buf_size); ath10k_dbg_sta_write_addba()
|
/linux-4.1.27/drivers/dma/ |
H A D | dmatest.c | 79 * @buf_size: size of the memcpy test buffer 90 unsigned int buf_size; member in struct:dmatest_params 230 unsigned int buf_size) dmatest_init_srcs() 241 for ( ; i < buf_size; i++) dmatest_init_srcs() 248 unsigned int buf_size) dmatest_init_dsts() 259 for ( ; i < buf_size; i++) dmatest_init_dsts() 456 thread->srcs[i] = kmalloc(params->buf_size, GFP_KERNEL); dmatest_func() 466 thread->dsts[i] = kmalloc(params->buf_size, GFP_KERNEL); dmatest_func() 499 if (1 << align > params->buf_size) { dmatest_func() 501 params->buf_size, 1 << align); dmatest_func() 506 len = params->buf_size; dmatest_func() 508 len = dmatest_random() % params->buf_size + 1; dmatest_func() 520 src_off = dmatest_random() % (params->buf_size - len + 1); dmatest_func() 521 dst_off = dmatest_random() % (params->buf_size - len + 1); dmatest_func() 527 params->buf_size); dmatest_func() 529 params->buf_size); dmatest_func() 541 um->len = params->buf_size; dmatest_func() 667 params->buf_size, src_off + len, dmatest_func() 677 params->buf_size, dst_off + len, dmatest_func() 867 params->buf_size = test_buf_size; run_threaded_test() 229 dmatest_init_srcs(u8 **bufs, unsigned int start, unsigned int len, unsigned int buf_size) dmatest_init_srcs() argument 247 dmatest_init_dsts(u8 **bufs, unsigned int start, unsigned int len, unsigned int buf_size) dmatest_init_dsts() argument
|
/linux-4.1.27/tools/virtio/ |
H A D | virtio_test.c | 41 size_t buf_size; member in struct:vdev_info 118 dev->buf_size = 1024; vdev_info_init() 119 dev->buf = malloc(dev->buf_size); vdev_info_init() 133 dev->mem->regions[0].memory_size = dev->buf_size; vdev_info_init() 169 sg_init_one(&sl, dev->buf, dev->buf_size); run_test()
|
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/ |
H A D | debugfs.h | 80 size_t buf_size = min(count, sizeof(buf) - 1); \ 82 if (copy_from_user(buf, user_buf, buf_size)) \ 85 return iwl_dbgfs_##name##_write(arg, buf, buf_size, ppos); \
|
H A D | sta.c | 979 struct ieee80211_sta *sta, u16 tid, u8 buf_size) iwl_mvm_sta_tx_agg_oper() 991 buf_size = min_t(int, buf_size, LINK_QUAL_AGG_FRAME_LIMIT_DEF); iwl_mvm_sta_tx_agg_oper() 1008 buf_size, ssn, wdg_timeout); iwl_mvm_sta_tx_agg_oper() 1018 min(mvmsta->max_agg_bufsize, buf_size); iwl_mvm_sta_tx_agg_oper() 978 iwl_mvm_sta_tx_agg_oper(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct ieee80211_sta *sta, u16 tid, u8 buf_size) iwl_mvm_sta_tx_agg_oper() argument
|
/linux-4.1.27/drivers/media/i2c/ |
H A D | saa6588.c | 72 unsigned int buf_size; member in struct:saa6588 172 if (s->rd_index >= s->buf_size) block_from_buf() 246 if (s->wr_index >= s->buf_size) block_to_buf() 251 if (s->rd_index >= s->buf_size) block_to_buf() 478 s->buf_size = bufblocks * 3; saa6588_probe() 480 s->buffer = devm_kzalloc(&client->dev, s->buf_size, GFP_KERNEL); saa6588_probe()
|
/linux-4.1.27/drivers/s390/block/ |
H A D | scm_blk.h | 116 length -= scm_debug->buf_size; SCM_LOG_HEX() 117 data += scm_debug->buf_size; SCM_LOG_HEX()
|
/linux-4.1.27/include/uapi/linux/hsi/ |
H A D | cs-protocol.h | 73 __u32 buf_size; /* bytes */ member in struct:cs_buffer_config 84 __u32 buf_size; /* 0=disabled, otherwise the transfer size */ member in struct:cs_mmap_config_block
|
/linux-4.1.27/fs/cifs/ |
H A D | xattr.c | 236 void *ea_value, size_t buf_size) cifs_getxattr() 284 full_path, ea_name, ea_value, buf_size, cifs_getxattr() 293 full_path, ea_name, ea_value, buf_size, cifs_getxattr() 300 ea_value, buf_size, ACL_TYPE_ACCESS, cifs_getxattr() 311 ea_value, buf_size, ACL_TYPE_DEFAULT, cifs_getxattr() 334 if (acllen > buf_size) cifs_getxattr() 372 ssize_t cifs_listxattr(struct dentry *direntry, char *data, size_t buf_size) cifs_listxattr() argument 416 full_path, NULL, data, buf_size, cifs_listxattr() 235 cifs_getxattr(struct dentry *direntry, const char *ea_name, void *ea_value, size_t buf_size) cifs_getxattr() argument
|
H A D | misc.c | 150 size_t buf_size = sizeof(struct smb_hdr); cifs_buf_get() local 157 buf_size = sizeof(struct smb2_hdr); cifs_buf_get() 170 memset(ret_buf, 0, buf_size + 3); cifs_buf_get()
|
/linux-4.1.27/tools/vm/ |
H A D | page_owner_sort.c | 31 int read_block(char *buf, int buf_size, FILE *fin) read_block() argument 33 char *curr = buf, *const buf_end = buf + buf_size; read_block()
|
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/ |
H A D | debugfs.c | 191 int buf_size; iwl_dbgfs_sram_write() local 195 buf_size = min(count, sizeof(buf) - 1); iwl_dbgfs_sram_write() 196 if (copy_from_user(buf, user_buf, buf_size)) iwl_dbgfs_sram_write() 290 int pos = 0, ofs = 0, buf_size = 0; iwl_dbgfs_nvm_read() local 295 buf_size = 4 * eeprom_len + 256; iwl_dbgfs_nvm_read() 305 buf = kzalloc(buf_size, GFP_KERNEL); iwl_dbgfs_nvm_read() 310 pos += scnprintf(buf + pos, buf_size - pos, iwl_dbgfs_nvm_read() 313 pos += scnprintf(buf + pos, buf_size - pos, "0x%.4x ", ofs); iwl_dbgfs_nvm_read() 315 buf_size - pos, 0); iwl_dbgfs_nvm_read() 317 if (buf_size - pos > 0) iwl_dbgfs_nvm_read() 461 int buf_size; iwl_dbgfs_rx_handlers_write() local 465 buf_size = min(count, sizeof(buf) - 1); iwl_dbgfs_rx_handlers_write() 466 if (copy_from_user(buf, user_buf, buf_size)) iwl_dbgfs_rx_handlers_write() 542 int buf_size; iwl_dbgfs_disable_ht40_write() local 546 buf_size = min(count, sizeof(buf) - 1); iwl_dbgfs_disable_ht40_write() 547 if (copy_from_user(buf, user_buf, buf_size)) iwl_dbgfs_disable_ht40_write() 594 int buf_size; iwl_dbgfs_sleep_level_override_write() local 598 buf_size = min(count, sizeof(buf) - 1); iwl_dbgfs_sleep_level_override_write() 599 if (copy_from_user(buf, user_buf, buf_size)) iwl_dbgfs_sleep_level_override_write() 1859 int buf_size; iwl_dbgfs_clear_ucode_statistics_write() local 1863 buf_size = min(count, sizeof(buf) - 1); iwl_dbgfs_clear_ucode_statistics_write() 1864 if (copy_from_user(buf, user_buf, buf_size)) iwl_dbgfs_clear_ucode_statistics_write() 1904 int buf_size; iwl_dbgfs_ucode_tracing_write() local 1908 buf_size = min(count, sizeof(buf) - 1); iwl_dbgfs_ucode_tracing_write() 1909 if (copy_from_user(buf, user_buf, buf_size)) iwl_dbgfs_ucode_tracing_write() 1975 int buf_size; iwl_dbgfs_missed_beacon_write() local 1979 buf_size = min(count, sizeof(buf) - 1); iwl_dbgfs_missed_beacon_write() 1980 if (copy_from_user(buf, user_buf, buf_size)) iwl_dbgfs_missed_beacon_write() 2016 int buf_size; iwl_dbgfs_plcp_delta_write() local 2020 buf_size = min(count, sizeof(buf) - 1); iwl_dbgfs_plcp_delta_write() 2021 if (copy_from_user(buf, user_buf, buf_size)) iwl_dbgfs_plcp_delta_write() 2076 int buf_size; iwl_dbgfs_txfifo_flush_write() local 2080 buf_size = min(count, sizeof(buf) - 1); iwl_dbgfs_txfifo_flush_write() 2081 if (copy_from_user(buf, user_buf, buf_size)) iwl_dbgfs_txfifo_flush_write() 2166 int buf_size; iwl_dbgfs_protection_mode_write() local 2173 buf_size = min(count, sizeof(buf) - 1); iwl_dbgfs_protection_mode_write() 2174 if (copy_from_user(buf, user_buf, buf_size)) iwl_dbgfs_protection_mode_write() 2207 int buf_size; iwl_dbgfs_echo_test_write() local 2210 buf_size = min(count, sizeof(buf) - 1); iwl_dbgfs_echo_test_write() 2211 if (copy_from_user(buf, user_buf, buf_size)) iwl_dbgfs_echo_test_write() 2241 int buf_size; iwl_dbgfs_log_event_write() local 2248 buf_size = min(count, sizeof(buf) - 1); iwl_dbgfs_log_event_write() 2249 if (copy_from_user(buf, user_buf, buf_size)) iwl_dbgfs_log_event_write() 2295 int buf_size; iwl_dbgfs_calib_disabled_write() local 2298 buf_size = min(count, sizeof(buf) - 1); iwl_dbgfs_calib_disabled_write() 2299 if (copy_from_user(buf, user_buf, buf_size)) iwl_dbgfs_calib_disabled_write()
|
H A D | tx.c | 700 struct ieee80211_sta *sta, u16 tid, u8 buf_size) iwlagn_tx_agg_oper() 707 buf_size = min_t(int, buf_size, LINK_QUAL_AGG_FRAME_LIMIT_DEF); iwlagn_tx_agg_oper() 718 buf_size, ssn, 0); iwlagn_tx_agg_oper() 738 min(sta_priv->max_agg_bufsize, buf_size); iwlagn_tx_agg_oper() 699 iwlagn_tx_agg_oper(struct iwl_priv *priv, struct ieee80211_vif *vif, struct ieee80211_sta *sta, u16 tid, u8 buf_size) iwlagn_tx_agg_oper() argument
|
/linux-4.1.27/drivers/misc/vmw_vmci/ |
H A D | vmci_context.c | 696 u32 *buf_size, void **pbuf) vmci_ctx_get_chkpt_notifiers() 704 *buf_size = 0; vmci_ctx_get_chkpt_notifiers() 710 if (*buf_size < data_size) { vmci_ctx_get_chkpt_notifiers() 711 *buf_size = data_size; vmci_ctx_get_chkpt_notifiers() 722 *buf_size = data_size; vmci_ctx_get_chkpt_notifiers() 728 u32 *buf_size, void **pbuf) vmci_ctx_get_chkpt_doorbells() 737 if (*buf_size < data_size) { vmci_ctx_get_chkpt_doorbells() 738 *buf_size = data_size; vmci_ctx_get_chkpt_doorbells() 750 *buf_size = data_size; vmci_ctx_get_chkpt_doorbells() 753 *buf_size = 0; vmci_ctx_get_chkpt_doorbells() 765 u32 *buf_size, vmci_ctx_get_chkpt_state() 779 result = vmci_ctx_get_chkpt_notifiers(context, buf_size, pbuf); vmci_ctx_get_chkpt_state() 788 *buf_size = 0; vmci_ctx_get_chkpt_state() 794 result = vmci_ctx_get_chkpt_doorbells(context, buf_size, pbuf); vmci_ctx_get_chkpt_state() 814 u32 buf_size, vmci_ctx_set_chkpt_state() 820 u32 num_ids = buf_size / sizeof(u32); vmci_ctx_set_chkpt_state() 695 vmci_ctx_get_chkpt_notifiers(struct vmci_ctx *context, u32 *buf_size, void **pbuf) vmci_ctx_get_chkpt_notifiers() argument 727 vmci_ctx_get_chkpt_doorbells(struct vmci_ctx *context, u32 *buf_size, void **pbuf) vmci_ctx_get_chkpt_doorbells() argument 763 vmci_ctx_get_chkpt_state(u32 context_id, u32 cpt_type, u32 *buf_size, void **pbuf) vmci_ctx_get_chkpt_state() argument 812 vmci_ctx_set_chkpt_state(u32 context_id, u32 cpt_type, u32 buf_size, void *cpt_buf) vmci_ctx_set_chkpt_state() argument
|
H A D | vmci_context.h | 103 u32 buf_size; member in struct:vmci_ctx_chkpt_buf_info
|
H A D | vmci_host.c | 732 &get_info.buf_size, &cpt_buf); vmci_host_do_ctx_get_cpt_state() 733 if (get_info.result == VMCI_SUCCESS && get_info.buf_size) { vmci_host_do_ctx_get_cpt_state() 735 retval = copy_to_user(ubuf, cpt_buf, get_info.buf_size); vmci_host_do_ctx_get_cpt_state() 762 cpt_buf = kmalloc(set_info.buf_size, GFP_KERNEL); vmci_host_do_ctx_set_cpt_state() 771 set_info.buf_size)) { vmci_host_do_ctx_set_cpt_state() 778 set_info.buf_size, cpt_buf); vmci_host_do_ctx_set_cpt_state()
|
H A D | vmci_queue_pair.c | 2633 size_t buf_size, qp_enqueue_locked() 2654 written = (size_t) (free_space > buf_size ? buf_size : free_space); qp_enqueue_locked() 2694 size_t buf_size, qp_dequeue_locked() 2716 read = (size_t) (buf_ready > buf_size ? buf_size : buf_ready); qp_dequeue_locked() 3109 * @buf_size: Length of buffer. 3117 size_t buf_size, vmci_qpair_enqueue() 3131 buf, buf_size, vmci_qpair_enqueue() 3150 * @buf_size: Length of buffer. 3158 size_t buf_size, vmci_qpair_dequeue() 3172 buf, buf_size, vmci_qpair_dequeue() 3191 * @buf_size: Length of buffer. 3200 size_t buf_size, vmci_qpair_peek() 3214 buf, buf_size, vmci_qpair_peek() 2629 qp_enqueue_locked(struct vmci_queue *produce_q, struct vmci_queue *consume_q, const u64 produce_q_size, const void *buf, size_t buf_size, vmci_memcpy_to_queue_func memcpy_to_queue) qp_enqueue_locked() argument 2690 qp_dequeue_locked(struct vmci_queue *produce_q, struct vmci_queue *consume_q, const u64 consume_q_size, void *buf, size_t buf_size, vmci_memcpy_from_queue_func memcpy_from_queue, bool update_consumer) qp_dequeue_locked() argument 3115 vmci_qpair_enqueue(struct vmci_qp *qpair, const void *buf, size_t buf_size, int buf_type) vmci_qpair_enqueue() argument 3156 vmci_qpair_dequeue(struct vmci_qp *qpair, void *buf, size_t buf_size, int buf_type) vmci_qpair_dequeue() argument 3198 vmci_qpair_peek(struct vmci_qp *qpair, void *buf, size_t buf_size, int buf_type) vmci_qpair_peek() argument
|
/linux-4.1.27/fs/ntfs/ |
H A D | lcnalloc.c | 160 int err = 0, rlpos, rlsize, buf_size; ntfs_cluster_alloc() local 292 buf_size = last_read_pos & ~PAGE_CACHE_MASK; ntfs_cluster_alloc() 293 buf = page_address(page) + buf_size; ntfs_cluster_alloc() 294 buf_size = PAGE_CACHE_SIZE - buf_size; ntfs_cluster_alloc() 295 if (unlikely(last_read_pos + buf_size > i_size)) ntfs_cluster_alloc() 296 buf_size = i_size - last_read_pos; ntfs_cluster_alloc() 297 buf_size <<= 3; ntfs_cluster_alloc() 300 ntfs_debug("Before inner while loop: buf_size %i, lcn 0x%llx, " ntfs_cluster_alloc() 301 "bmp_pos 0x%llx, need_writeback %i.", buf_size, ntfs_cluster_alloc() 304 while (lcn < buf_size && lcn + bmp_pos < zone_end) { ntfs_cluster_alloc() 306 ntfs_debug("In inner while loop: buf_size %i, " ntfs_cluster_alloc() 309 "*byte 0x%x.", buf_size, ntfs_cluster_alloc() 496 bmp_pos += buf_size; ntfs_cluster_alloc() 497 ntfs_debug("After inner while loop: buf_size 0x%x, lcn " ntfs_cluster_alloc() 499 buf_size, (unsigned long long)lcn, ntfs_cluster_alloc()
|
/linux-4.1.27/drivers/misc/eeprom/ |
H A D | at25.c | 155 unsigned buf_size; at25_ee_write() local 166 buf_size = at25->chip.page_size; at25_ee_write() 167 if (buf_size > io_limit) at25_ee_write() 168 buf_size = io_limit; at25_ee_write() 169 bounce = kmalloc(buf_size + at25->addrlen + 1, GFP_KERNEL); at25_ee_write() 211 segment = buf_size - (offset % buf_size); at25_ee_write()
|
/linux-4.1.27/arch/powerpc/platforms/powernv/ |
H A D | opal-flash.c | 107 uint32_t buf_size; /* Image size */ member in struct:validate_flash_t 138 __be32 size = cpu_to_be32(validate_flash_data.buf_size); opal_flash_validate() 144 validate_flash_data.buf_size = be32_to_cpu(size); opal_flash_validate() 174 if (args_buf->buf_size > (VALIDATE_BUF_SIZE - len)) { validate_show() 178 memcpy(buf + len, args_buf->buf, args_buf->buf_size); validate_show() 179 len += args_buf->buf_size; validate_show() 216 args_buf->buf_size = VALIDATE_BUF_SIZE; validate_store()
|
/linux-4.1.27/drivers/mfd/ |
H A D | aat2870-core.c | 291 ssize_t buf_size; aat2870_reg_write_file() local 296 buf_size = min(count, (size_t)(sizeof(buf)-1)); aat2870_reg_write_file() 297 if (copy_from_user(buf, user_buf, buf_size)) { aat2870_reg_write_file() 301 buf[buf_size] = 0; aat2870_reg_write_file() 326 return buf_size; aat2870_reg_write_file()
|
H A D | ab3100-core.c | 492 ssize_t buf_size; ab3100_get_set_reg() local 499 buf_size = min(count, (sizeof(buf)-1)); ab3100_get_set_reg() 500 if (copy_from_user(buf, user_buf, buf_size)) ab3100_get_set_reg() 502 buf[buf_size] = 0; ab3100_get_set_reg() 510 while ((i < buf_size) && (buf[i] == ' ')) ab3100_get_set_reg() 519 while ((i < buf_size) && (buf[i] != ' ')) ab3100_get_set_reg() 548 while ((i < buf_size) && (buf[i] == ' ')) ab3100_get_set_reg() 551 while ((i < buf_size) && (buf[i] != ' ')) ab3100_get_set_reg() 567 return buf_size; ab3100_get_set_reg()
|
/linux-4.1.27/drivers/net/wireless/ath/wil6210/ |
H A D | rx_reorder.c | 40 return seq_sub(seq, r->ssn) % r->buf_size; reorder_index() 164 if (!seq_less(seq, r->head_seq_num + r->buf_size)) { 165 hseq = seq_inc(seq_sub(seq, r->buf_size)); 223 r->buf_size = size; wil_tid_ampdu_rx_alloc() 234 wil_release_reorder_frames(wil, r, r->head_seq_num + r->buf_size); wil_tid_ampdu_rx_free()
|
/linux-4.1.27/drivers/infiniband/hw/mlx4/ |
H A D | srq.c | 82 int buf_size; mlx4_ib_create_srq() local 106 buf_size = srq->msrq.max * desc_size; mlx4_ib_create_srq() 117 buf_size, 0, 0); mlx4_ib_create_srq() 143 if (mlx4_buf_alloc(dev->dev, buf_size, PAGE_SIZE * 2, &srq->buf, mlx4_ib_create_srq() 216 mlx4_buf_free(dev->dev, buf_size, &srq->buf); mlx4_ib_create_srq()
|
/linux-4.1.27/drivers/media/usb/cx231xx/ |
H A D | cx231xx-i2c.c | 154 req_data.buf_size = size > 16 ? 16 : size; cx231xx_i2c_send_bytes() 181 req_data.buf_size = msg->len; cx231xx_i2c_send_bytes() 254 req_data.buf_size = msg->len; cx231xx_i2c_recv_bytes() 267 req_data.buf_size = msg->len; cx231xx_i2c_recv_bytes() 332 req_data.buf_size = msg2->len; cx231xx_i2c_recv_bytes_with_saddr() 359 req_data.buf_size = 1; cx231xx_i2c_check_for_device()
|
H A D | cx231xx-core.c | 204 ven_req.wLength = req_data->buf_size; cx231xx_send_usb_command() 1530 req_data.buf_size = data_len; cx231xx_read_i2c_master() 1581 req_data.buf_size = data_len; cx231xx_write_i2c_master() 1615 req_data.buf_size = data_len; cx231xx_read_i2c_data() 1656 req_data.buf_size = data_len; cx231xx_write_i2c_data()
|
/linux-4.1.27/drivers/base/regmap/ |
H A D | regmap-debugfs.c | 33 static size_t regmap_calc_reg_len(int max_val, char *buf, size_t buf_size) regmap_calc_reg_len() argument 276 size_t buf_size; regmap_map_write_file() local 282 buf_size = min(count, (sizeof(buf)-1)); regmap_map_write_file() 283 if (copy_from_user(buf, user_buf, buf_size)) regmap_map_write_file() 285 buf[buf_size] = 0; regmap_map_write_file() 301 return buf_size; regmap_map_write_file()
|
H A D | internal.h | 33 size_t buf_size; member in struct:regmap_format
|
/linux-4.1.27/sound/isa/sb/ |
H A D | emu8000_pcm.c | 57 unsigned int buf_size; member in struct:snd_emu8k_pcm 203 delta = ptr + rec->buf_size - rec->last_ptr; emu8k_pcm_timer_func() 319 temp = (temp << 24) | ((unsigned int)rec->loop_start[ch] + rec->buf_size - 1); setup_voice() 619 rec->buf_size = subs->runtime->buffer_size; emu8k_pcm_prepare() 624 rec->loop_start[1] = rec->loop_start[0] + rec->buf_size + LOOP_BLANK_SIZE; emu8k_pcm_prepare() 645 EMU8000_SMALW_WRITE(rec->emu, rec->loop_start[ch] + rec->buf_size); emu8k_pcm_prepare()
|
/linux-4.1.27/fs/hfsplus/ |
H A D | part_tbl.c | 96 int buf_size = hfsplus_min_io_size(sb); hfs_parse_new_pmap() local 112 if ((u8 *)pm - (u8 *)buf >= buf_size) { hfs_parse_new_pmap()
|
/linux-4.1.27/arch/powerpc/platforms/ps3/ |
H A D | gelic_udbg.c | 45 __be32 buf_size; member in struct:gelic_descr 227 dbg.descr.buf_size = header_size + msgsize; gelic_sendbuf()
|
/linux-4.1.27/drivers/net/wimax/i2400m/ |
H A D | usb-fw.c | 90 ssize_t i2400mu_tx_bulk_out(struct i2400mu *i2400mu, void *buf, size_t buf_size) i2400mu_tx_bulk_out() argument 106 result = usb_bulk_msg(i2400mu->usb_dev, pipe, buf, buf_size, &len, 200); i2400mu_tx_bulk_out() 109 if (len != buf_size) { i2400mu_tx_bulk_out() 111 "expected)\n", len, buf_size); i2400mu_tx_bulk_out()
|
H A D | rx.c | 1137 * @buf_size: size of the received buffer 1145 size_t buf_size) i2400m_rx_msg_hdr_check() 1149 if (buf_size < sizeof(*msg_hdr)) { i2400m_rx_msg_hdr_check() 1151 "vs %zu bytes expected)\n", buf_size, sizeof(*msg_hdr)); i2400m_rx_msg_hdr_check() 1156 "barker 0x%08x (buf_size %zu bytes)\n", i2400m_rx_msg_hdr_check() 1157 le32_to_cpu(msg_hdr->barker), buf_size); i2400m_rx_msg_hdr_check() 1182 * @buf_size: size of the received buffer 1190 size_t pl_itr, size_t buf_size) i2400m_rx_pl_descr_check() 1203 if (pl_itr + pl_size > buf_size) { /* enough? */ i2400m_rx_pl_descr_check() 1207 pl_itr, pl_size, buf_size); i2400m_rx_pl_descr_check() 1143 i2400m_rx_msg_hdr_check(struct i2400m *i2400m, const struct i2400m_msg_hdr *msg_hdr, size_t buf_size) i2400m_rx_msg_hdr_check() argument 1188 i2400m_rx_pl_descr_check(struct i2400m *i2400m, const struct i2400m_pld *pld, size_t pl_itr, size_t buf_size) i2400m_rx_pl_descr_check() argument
|
H A D | control.c | 146 * @buf_size: buffer size in bytes 163 const void *tlv_buf, size_t buf_size, i2400m_tlv_buffer_walk() 167 const struct i2400m_tlv_hdr *tlv_top = tlv_buf + buf_size; i2400m_tlv_buffer_walk() 186 avail_size = buf_size - offset; i2400m_tlv_buffer_walk() 189 "short header\n", tlv_buf, buf_size, offset); i2400m_tlv_buffer_walk() 198 tlv_buf, buf_size, type, offset, avail_size, i2400m_tlv_buffer_walk() 161 i2400m_tlv_buffer_walk( struct i2400m *i2400m, const void *tlv_buf, size_t buf_size, const struct i2400m_tlv_hdr *tlv_pos) i2400m_tlv_buffer_walk() argument
|
/linux-4.1.27/drivers/media/radio/si470x/ |
H A D | radio-si470x-i2c.c | 327 if (radio->wr_index >= radio->buf_size) si470x_i2c_interrupt() 334 if (radio->rd_index >= radio->buf_size) si470x_i2c_interrupt() 411 radio->buf_size = rds_buf * 3; si470x_i2c_probe() 412 radio->buffer = kmalloc(radio->buf_size, GFP_KERNEL); si470x_i2c_probe()
|
H A D | radio-si470x-usb.c | 460 if (radio->wr_index >= radio->buf_size) si470x_int_in_callback() 467 if (radio->rd_index >= radio->buf_size) si470x_int_in_callback() 730 radio->buf_size = rds_buf * 3; si470x_usb_driver_probe() 731 radio->buffer = kmalloc(radio->buf_size, GFP_KERNEL); si470x_usb_driver_probe()
|
H A D | radio-si470x.h | 159 unsigned int buf_size; member in struct:si470x_device
|
/linux-4.1.27/sound/core/ |
H A D | pcm_dmaengine.c | 247 unsigned int buf_size; snd_dmaengine_pcm_pointer() local 252 buf_size = snd_pcm_lib_buffer_bytes(substream); snd_dmaengine_pcm_pointer() 253 if (state.residue > 0 && state.residue <= buf_size) snd_dmaengine_pcm_pointer() 254 pos = buf_size - state.residue; snd_dmaengine_pcm_pointer()
|
/linux-4.1.27/drivers/media/usb/dvb-usb/ |
H A D | usb-urb.c | 99 usb_free_coherent(stream->udev, stream->buf_size, usb_free_stream_buffers() 113 stream->buf_size = size; usb_allocate_stream_buffers() 197 urb->transfer_buffer_length = stream->buf_size; usb_isoc_urb_init()
|
H A D | dvb-usb.h | 303 * @buf_size: size of each buffer in buf_list. 323 unsigned long buf_size; member in struct:usb_data_stream
|
/linux-4.1.27/drivers/hsi/clients/ |
H A D | cmt_speech.c | 112 unsigned int buf_size; member in struct:cs_hsi_iface 632 sg_init_one(msg->sgt.sgl, address, hi->buf_size); cs_hsi_peek_on_data_complete() 727 sg_init_one(txmsg->sgt.sgl, address, hi->buf_size); cs_hsi_write_on_data() 821 size_t buf_size_aligned = L1_CACHE_ALIGN(buf_cfg->buf_size) * check_buf_params() 892 BUG_ON(hi->buf_size == 0); cs_hsi_data_enable() 896 hi->slot_size = L1_CACHE_ALIGN(hi->buf_size); cs_hsi_data_enable() 899 hi->slot_size, hi->buf_size, L1_CACHE_BYTES); cs_hsi_data_enable() 959 hi->buf_size = buf_cfg->buf_size; cs_hsi_buf_config() 960 hi->mmap_cfg->buf_size = hi->buf_size; cs_hsi_buf_config() 967 if (hi->buf_size) cs_hsi_buf_config()
|
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_ethtool.c | 1320 int buf_size) bnx2x_nvram_read() 1326 if ((offset & 0x03) || (buf_size & 0x03) || (buf_size == 0)) { bnx2x_nvram_read() 1328 "Invalid parameter: offset 0x%x buf_size 0x%x\n", bnx2x_nvram_read() 1329 offset, buf_size); bnx2x_nvram_read() 1333 if (offset + buf_size > bp->common.flash_size) { bnx2x_nvram_read() 1335 "Invalid parameter: offset (0x%x) + buf_size (0x%x) > flash_size (0x%x)\n", bnx2x_nvram_read() 1336 offset, buf_size, bp->common.flash_size); bnx2x_nvram_read() 1350 while ((buf_size > sizeof(u32)) && (rc == 0)) { bnx2x_nvram_read() 1357 buf_size -= sizeof(u32); bnx2x_nvram_read() 1375 int buf_size) bnx2x_nvram_read32() 1379 rc = bnx2x_nvram_read(bp, offset, (u8 *)buf, buf_size); bnx2x_nvram_read32() 1384 while ((buf_size -= 4) >= 0) bnx2x_nvram_read32() 1590 int buf_size) bnx2x_nvram_write1() 1596 if (offset + buf_size > bp->common.flash_size) { bnx2x_nvram_write1() 1598 "Invalid parameter: offset (0x%x) + buf_size (0x%x) > flash_size (0x%x)\n", bnx2x_nvram_write1() 1599 offset, buf_size, bp->common.flash_size); bnx2x_nvram_write1() 1638 int buf_size) bnx2x_nvram_write() 1645 if (buf_size == 1) /* ethtool */ bnx2x_nvram_write() 1646 return bnx2x_nvram_write1(bp, offset, data_buf, buf_size); bnx2x_nvram_write() 1648 if ((offset & 0x03) || (buf_size & 0x03) || (buf_size == 0)) { bnx2x_nvram_write() 1650 "Invalid parameter: offset 0x%x buf_size 0x%x\n", bnx2x_nvram_write() 1651 offset, buf_size); bnx2x_nvram_write() 1655 if (offset + buf_size > bp->common.flash_size) { bnx2x_nvram_write() 1657 "Invalid parameter: offset (0x%x) + buf_size (0x%x) > flash_size (0x%x)\n", bnx2x_nvram_write() 1658 offset, buf_size, bp->common.flash_size); bnx2x_nvram_write() 1672 while ((written_so_far < buf_size) && (rc == 0)) { bnx2x_nvram_write() 1673 if (written_so_far == (buf_size - sizeof(u32))) bnx2x_nvram_write() 1319 bnx2x_nvram_read(struct bnx2x *bp, u32 offset, u8 *ret_buf, int buf_size) bnx2x_nvram_read() argument 1374 bnx2x_nvram_read32(struct bnx2x *bp, u32 offset, u32 *buf, int buf_size) bnx2x_nvram_read32() argument 1589 bnx2x_nvram_write1(struct bnx2x *bp, u32 offset, u8 *data_buf, int buf_size) bnx2x_nvram_write1() argument 1637 bnx2x_nvram_write(struct bnx2x *bp, u32 offset, u8 *data_buf, int buf_size) bnx2x_nvram_write() argument
|
/linux-4.1.27/drivers/media/pci/saa7164/ |
H A D | saa7164-bus.c | 324 new_grp, buf_size, space_rem; saa7164_bus_get() local 417 buf_size = msg->size; saa7164_bus_get() 451 space_rem, buf_size); saa7164_bus_get() 456 memcpy_fromio(buf, bus->m_pdwGetRing, buf_size); saa7164_bus_get() 475 buf_size); saa7164_bus_get()
|
/linux-4.1.27/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_device.c | 79 static int kfd_gtt_sa_init(struct kfd_dev *kfd, unsigned int buf_size, 339 static int kfd_gtt_sa_init(struct kfd_dev *kfd, unsigned int buf_size, kfd_gtt_sa_init() argument 346 BUG_ON(buf_size < chunk_size); kfd_gtt_sa_init() 347 BUG_ON(buf_size == 0); kfd_gtt_sa_init() 351 kfd->gtt_sa_num_of_chunks = buf_size / chunk_size; kfd_gtt_sa_init()
|
/linux-4.1.27/drivers/usb/atm/ |
H A D | usbatm.c | 586 const unsigned int buf_size = instance->tx_channel.buf_size; usbatm_tx_process() local 605 buf_size - bytes_written); usbatm_tx_process() 620 if (bytes_written == buf_size || (!skb && bytes_written)) { usbatm_tx_process() 1102 instance->tx_channel.buf_size = max(instance->tx_channel.stride, usbatm_usb_probe() 1120 instance->rx_channel.buf_size = num_packets * maxpacket; usbatm_usb_probe() 1128 __func__, channel->buf_size, i ? "tx" : "rx", channel); usbatm_usb_probe() 1138 unsigned int iso_packets = usb_pipeisoc(channel->endpoint) ? channel->buf_size / channel->packet_size : 0; usbatm_usb_probe() 1150 buffer = kzalloc(channel->buf_size, GFP_KERNEL); usbatm_usb_probe() 1158 buffer, channel->buf_size, usbatm_complete, channel); usbatm_usb_probe()
|
H A D | usbatm.h | 122 unsigned int buf_size; /* urb buffer size */ member in struct:usbatm_channel
|
/linux-4.1.27/drivers/md/ |
H A D | dm-log.c | 370 size_t bitset_size, buf_size; create_log_context() local 443 buf_size = create_log_context() 448 if (buf_size > i_size_read(dev->bdev->bd_inode)) { create_log_context() 450 dev->name, (unsigned long long)buf_size); create_log_context() 455 lc->header_location.count = buf_size >> SECTOR_SHIFT; create_log_context() 467 lc->disk_header = vmalloc(buf_size); create_log_context()
|
/linux-4.1.27/drivers/net/wireless/mwifiex/ |
H A D | debugfs.c | 452 size_t buf_size = min_t(size_t, count, PAGE_SIZE - 1); mwifiex_regrdwr_write() local 460 if (copy_from_user(buf, ubuf, buf_size)) { mwifiex_regrdwr_write() 553 size_t buf_size = min_t(size_t, count, PAGE_SIZE - 1); mwifiex_rdeeprom_write() local 561 if (copy_from_user(buf, ubuf, buf_size)) { mwifiex_rdeeprom_write() 638 size_t buf_size = min_t(size_t, count, PAGE_SIZE - 1); mwifiex_hscfg_write() local 647 if (copy_from_user(buf, ubuf, buf_size)) { mwifiex_hscfg_write()
|
H A D | sdio.h | 107 <= a->mpa_tx.buf_size) 146 ((a->mpa_rx.buf_len+rx_len) <= a->mpa_rx.buf_size) 165 u32 buf_size; member in struct:mwifiex_sdio_mpa_tx 180 u32 buf_size; member in struct:mwifiex_sdio_mpa_rx
|
H A D | 11n.h | 61 int cmd_action, u16 *buf_size);
|
H A D | 11n.c | 216 u16 *buf_size) mwifiex_cmd_recfg_tx_buf() 227 dev_dbg(priv->adapter->dev, "cmd: set tx_buf=%d\n", *buf_size); mwifiex_cmd_recfg_tx_buf() 228 tx_buf->buff_size = cpu_to_le16(*buf_size); mwifiex_cmd_recfg_tx_buf() 214 mwifiex_cmd_recfg_tx_buf(struct mwifiex_private *priv, struct host_cmd_ds_command *cmd, int cmd_action, u16 *buf_size) mwifiex_cmd_recfg_tx_buf() argument
|
/linux-4.1.27/net/bluetooth/ |
H A D | hci_debugfs.c | 51 size_t buf_size = min(count, (sizeof(buf) - 1)); \ 57 if (copy_from_user(buf, user_buf, buf_size)) \ 60 buf[buf_size] = '\0'; \ 768 size_t buf_size = min(count, (sizeof(buf)-1)); force_static_address_write() local 774 if (copy_from_user(buf, user_buf, buf_size)) force_static_address_write() 777 buf[buf_size] = '\0'; force_static_address_write()
|
/linux-4.1.27/drivers/media/rc/ |
H A D | ite-cir.c | 610 /* read up to buf_size bytes from the RX FIFO; to be called with the spinlock 612 static int it87_get_rx_bytes(struct ite_dev *dev, u8 * buf, int buf_size) it87_get_rx_bytes() argument 621 while (fifo > 0 && buf_size > 0) { it87_get_rx_bytes() 625 buf_size--; it87_get_rx_bytes() 835 /* read up to buf_size bytes from the RX FIFO; to be called with the spinlock 837 static int it8708_get_rx_bytes(struct ite_dev *dev, u8 * buf, int buf_size) it8708_get_rx_bytes() argument 846 while (fifo > 0 && buf_size > 0) { it8708_get_rx_bytes() 850 buf_size--; it8708_get_rx_bytes() 1126 /* read up to buf_size bytes from the RX FIFO; to be called with the spinlock 1128 static int it8709_get_rx_bytes(struct ite_dev *dev, u8 * buf, int buf_size) it8709_get_rx_bytes() argument 1137 while (fifo > 0 && buf_size > 0) { it8709_get_rx_bytes() 1141 buf_size--; it8709_get_rx_bytes()
|
/linux-4.1.27/drivers/net/wireless/cw1200/ |
H A D | wsm.c | 189 size_t buf_size; member in struct:wsm_mib 193 size_t buf_size) wsm_read_mib() 200 .buf_size = buf_size, wsm_read_mib() 229 if (size > arg->buf_size) wsm_read_mib_confirm() 230 size = arg->buf_size; wsm_read_mib_confirm() 233 arg->buf_size = size; wsm_read_mib_confirm() 244 size_t buf_size) wsm_write_mib() 251 .buf_size = buf_size, wsm_write_mib() 257 WSM_PUT16(buf, buf_size); wsm_write_mib() 258 WSM_PUT(buf, _buf, buf_size); wsm_write_mib() 192 wsm_read_mib(struct cw1200_common *priv, u16 mib_id, void *_buf, size_t buf_size) wsm_read_mib() argument 243 wsm_write_mib(struct cw1200_common *priv, u16 mib_id, void *_buf, size_t buf_size) wsm_write_mib() argument
|
H A D | sta.h | 114 u8 buf_size);
|
/linux-4.1.27/drivers/media/pci/bt8xx/ |
H A D | bt878.c | 87 pci_free_consistent(bt->dev, bt->buf_size, bt->buf_cpu, bt878_mem_free() 102 bt->buf_size = 128 * 1024; bt878_mem_alloc() 104 bt->buf_cpu = pci_zalloc_consistent(bt->dev, bt->buf_size, bt878_mem_alloc() 142 bt->block_bytes = bt->buf_size >> 4; bt878_make_risc()
|
H A D | bt878.h | 126 u32 buf_size; member in struct:bt878
|
/linux-4.1.27/drivers/net/wireless/ath/ath9k/ |
H A D | ar9003_mac.h | 112 void ath9k_hw_set_rx_bufsize(struct ath_hw *ah, u16 buf_size);
|
H A D | ar9003_mac.c | 464 void ath9k_hw_set_rx_bufsize(struct ath_hw *ah, u16 buf_size) ath9k_hw_set_rx_bufsize() argument 466 REG_WRITE(ah, AR_DATABUF_SIZE, buf_size & AR_DATABUF_SIZE_MASK); ath9k_hw_set_rx_bufsize()
|
/linux-4.1.27/drivers/scsi/qla2xxx/ |
H A D | qla_tmpl.h | 164 uint32_t buf_size; member in struct:qla27xx_fwdt_entry::__packed::__packed
|
/linux-4.1.27/drivers/scsi/bfa/ |
H A D | bfad_bsg.h | 247 u32 buf_size; member in struct:bfa_bsg_ioc_fwstats_s 291 u32 buf_size; member in struct:bfa_bsg_port_stats_s 526 u32 buf_size; member in struct:bfa_bsg_cee_attr_s 535 u32 buf_size; member in struct:bfa_bsg_cee_stats_s
|
/linux-4.1.27/drivers/net/wireless/hostap/ |
H A D | hostap.h | 68 struct iw_quality qual[], int buf_size,
|
/linux-4.1.27/drivers/firmware/ |
H A D | dcdbas.c | 137 unsigned long buf_size; smi_data_buf_size_store() local 140 buf_size = simple_strtoul(buf, NULL, 10); smi_data_buf_size_store() 142 /* make sure SMI data buffer is at least buf_size */ smi_data_buf_size_store() 144 ret = smi_data_buf_realloc(buf_size); smi_data_buf_size_store()
|
/linux-4.1.27/arch/x86/kernel/cpu/ |
H A D | perf_event_intel_bts.c | 68 static size_t buf_size(struct page *page) buf_size() function 116 buf->buf[nbuf].size = buf_size(page) - buf->buf[nbuf].displacement; bts_buffer_setup_aux() 149 if (buf->end < phys->offset + buf_size(page)) bts_config_buffer() 329 gap = buf_size(phys->page) - phys->displacement - phys->size + bts_buffer_reset()
|
/linux-4.1.27/drivers/pinctrl/ |
H A D | pinconf.c | 492 int buf_size; pinconf_dbg_config_write() local 497 buf_size = min(count, sizeof(buf) - 1); pinconf_dbg_config_write() 498 if (copy_from_user(buf, user_buf, buf_size)) pinconf_dbg_config_write() 500 buf[buf_size] = 0; pinconf_dbg_config_write()
|
/linux-4.1.27/arch/ia64/include/uapi/asm/ |
H A D | perfmon_default_smpl.h | 18 unsigned long buf_size; /* size of the buffer in bytes */ member in struct:__anon1689
|
/linux-4.1.27/Documentation/misc-devices/mei/ |
H A D | mei-amt-version.c | 96 unsigned int buf_size; member in struct:mei 106 cl->buf_size = 0; mei_deinit() 145 me->buf_size = cl->max_msg_length; mei_init() 378 in_buf_sz = acmd->mei_cl.buf_size; amt_host_if_call()
|
/linux-4.1.27/drivers/usb/gadget/function/ |
H A D | u_serial.c | 85 unsigned buf_size; member in struct:gs_buf 158 gb->buf_size = size; gs_buf_alloc() 195 return (gb->buf_size + gb->buf_put - gb->buf_get) % gb->buf_size; gs_buf_data_avail() 206 return (gb->buf_size + gb->buf_get - gb->buf_put - 1) % gb->buf_size; gs_buf_space_avail() 229 len = gb->buf_buf + gb->buf_size - gb->buf_put; gs_buf_put() 265 len = gb->buf_buf + gb->buf_size - gb->buf_get; gs_buf_get()
|
H A D | f_uac1.c | 253 static struct f_audio_buf *f_audio_buffer_alloc(int buf_size) f_audio_buffer_alloc() argument 261 copy_buf->buf = kzalloc(buf_size, GFP_ATOMIC); f_audio_buffer_alloc()
|
/linux-4.1.27/drivers/staging/comedi/ |
H A D | drivers.c | 522 unsigned int buf_size; __comedi_device_postconfig_async() local 544 buf_size = comedi_default_buf_size_kb * 1024; __comedi_device_postconfig_async() 545 if (buf_size > async->max_bufsize) __comedi_device_postconfig_async() 546 buf_size = async->max_bufsize; __comedi_device_postconfig_async() 548 if (comedi_buf_alloc(dev, s, buf_size) < 0) { __comedi_device_postconfig_async()
|
/linux-4.1.27/sound/oss/ |
H A D | audio.c | 224 int c, p, l, buf_size, used, returned; audio_write() local 252 if ((err = DMAbuf_getwrbuffer(dev, &dma_buf, &buf_size, !!(file->f_flags & O_NONBLOCK))) < 0) audio_write() 261 if (l > buf_size) audio_write() 262 l = buf_size; audio_write() 285 c, buf_size, audio_write()
|
/linux-4.1.27/drivers/mtd/nand/ |
H A D | pxa3xx_nand.c | 190 unsigned int buf_size; member in struct:pxa3xx_nand_info 1308 int data_desc_offset = info->buf_size - sizeof(struct pxa_dma_desc); pxa3xx_nand_init_buff() 1311 info->data_buff = kmalloc(info->buf_size, GFP_KERNEL); pxa3xx_nand_init_buff() 1317 info->data_buff = dma_alloc_coherent(&pdev->dev, info->buf_size, pxa3xx_nand_init_buff() 1331 dma_free_coherent(&pdev->dev, info->buf_size, pxa3xx_nand_init_buff() 1349 dma_free_coherent(&pdev->dev, info->buf_size, pxa3xx_nand_free_buff() 1358 info->data_buff = kmalloc(info->buf_size, GFP_KERNEL); pxa3xx_nand_init_buff() 1602 info->buf_size = mtd->writesize + mtd->oobsize; pxa3xx_nand_scan() 1718 info->buf_size = INIT_BUFFER_SIZE; alloc_nand_resource() 1719 info->data_buff = kmalloc(info->buf_size, GFP_KERNEL); alloc_nand_resource()
|
/linux-4.1.27/drivers/net/wireless/ |
H A D | at76c50x-usb.c | 591 union at76_hwcfg *buf, int buf_size) at76_get_hw_cfg() 596 buf, buf_size, USB_CTRL_GET_TIMEOUT); at76_get_hw_cfg() 601 union at76_hwcfg *buf, int buf_size) at76_get_hw_cfg_intersil() 606 buf, buf_size, USB_CTRL_GET_TIMEOUT); at76_get_hw_cfg_intersil() 674 int buf_size) at76_get_mib() 680 USB_RECIP_INTERFACE, mib << 8, 0, buf, buf_size, at76_get_mib() 682 if (ret >= 0 && ret != buf_size) at76_get_mib() 726 int buf_size) at76_set_card_command() 730 buf_size, GFP_KERNEL); at76_set_card_command() 737 cmd_buf->size = cpu_to_le16(buf_size); at76_set_card_command() 738 memcpy(cmd_buf->data, buf, buf_size); at76_set_card_command() 740 at76_dbg_dump(DBG_CMD, cmd_buf, sizeof(struct at76_command) + buf_size, at76_set_card_command() 747 sizeof(struct at76_command) + buf_size, at76_set_card_command() 590 at76_get_hw_cfg(struct usb_device *udev, union at76_hwcfg *buf, int buf_size) at76_get_hw_cfg() argument 600 at76_get_hw_cfg_intersil(struct usb_device *udev, union at76_hwcfg *buf, int buf_size) at76_get_hw_cfg_intersil() argument 673 at76_get_mib(struct usb_device *udev, u16 mib, void *buf, int buf_size) at76_get_mib() argument 725 at76_set_card_command(struct usb_device *udev, u8 cmd, void *buf, int buf_size) at76_set_card_command() argument
|
/linux-4.1.27/fs/jfs/ |
H A D | xattr.c | 886 size_t buf_size) __jfs_getxattr() 918 else if (size > buf_size) { __jfs_getxattr() 937 size_t buf_size) jfs_getxattr() 947 return generic_getxattr(dentry, name, data, buf_size); jfs_getxattr() 962 err = __jfs_getxattr(d_inode(dentry), name, data, buf_size); jfs_getxattr() 977 ssize_t jfs_listxattr(struct dentry * dentry, char *data, size_t buf_size) jfs_listxattr() argument 1009 if (size > buf_size) { jfs_listxattr() 885 __jfs_getxattr(struct inode *inode, const char *name, void *data, size_t buf_size) __jfs_getxattr() argument 936 jfs_getxattr(struct dentry *dentry, const char *name, void *data, size_t buf_size) jfs_getxattr() argument
|
/linux-4.1.27/drivers/mtd/ubi/ |
H A D | debug.c | 329 size_t buf_size; dfs_file_write() local 338 buf_size = min_t(size_t, count, (sizeof(buf) - 1)); dfs_file_write() 339 if (copy_from_user(buf, user_buf, buf_size)) { dfs_file_write()
|
/linux-4.1.27/drivers/pci/hotplug/ |
H A D | cpqphp_nvram.c | 168 static u32 access_EV (u16 operation, u8 *ev_name, u8 *buffer, u32 *buf_size) access_EV() argument 185 : "=c" (*buf_size), "=a" (ret_val) access_EV() 186 : "a" (op), "c" (*buf_size), "S" (ev_name), access_EV()
|
/linux-4.1.27/drivers/input/ |
H A D | input.c | 1010 static int input_bits_to_string(char *buf, int buf_size, input_bits_to_string() argument 1018 len += snprintf(buf, buf_size, "%x ", dword); input_bits_to_string() 1022 len += snprintf(buf + len, max(buf_size - len, 0), input_bits_to_string() 1026 len += snprintf(buf, buf_size, "%lx", bits); input_bits_to_string() 1034 static int input_bits_to_string(char *buf, int buf_size, input_bits_to_string() argument 1038 snprintf(buf, buf_size, "%lx", bits) : 0; input_bits_to_string() 1376 static int input_print_bitmap(char *buf, int buf_size, unsigned long *bitmap, 1431 static int input_print_bitmap(char *buf, int buf_size, unsigned long *bitmap, input_print_bitmap() argument 1439 len += input_bits_to_string(buf + len, max(buf_size - len, 0), input_print_bitmap() 1444 len += snprintf(buf + len, max(buf_size - len, 0), " "); input_print_bitmap() 1452 len = snprintf(buf, buf_size, "%d", 0); input_print_bitmap() 1455 len += snprintf(buf + len, max(buf_size - len, 0), "\n"); input_print_bitmap()
|
/linux-4.1.27/tools/usb/ |
H A D | ffs-test.c | 297 size_t buf_size; member in struct:thread 333 t->buf = malloc(t->buf_size); init_thread() 386 ret = t->in(t, t->buf, t->buf_size); start_thread_helper()
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | uar.c | 178 bf->buf_size = dev->caps.gen.bf_reg_size / 2; mlx5_alloc_uuars()
|
/linux-4.1.27/drivers/media/i2c/m5mols/ |
H A D | m5mols_capture.c | 108 unsigned int framesize = info->cap.buf_size - M5MOLS_JPEG_TAGS_SIZE; m5mols_start_capture()
|
H A D | m5mols.h | 78 * @buf_size: internal JPEG frame buffer size, in bytes 85 unsigned int buf_size; member in struct:m5mols_capture
|
/linux-4.1.27/fs/ext4/ |
H A D | dir.c | 610 int buf_size) ext4_check_all_de() 618 top = buf + buf_size; ext4_check_all_de() 621 buf, buf_size, offset)) ext4_check_all_de() 624 rlen = ext4_rec_len_from_disk(de->rec_len, buf_size); ext4_check_all_de() 609 ext4_check_all_de(struct inode *dir, struct buffer_head *bh, void *buf, int buf_size) ext4_check_all_de() argument
|
/linux-4.1.27/drivers/video/fbdev/ |
H A D | s3c-fb.c | 78 * @buf_size: Offset of buffer size registers. 97 unsigned short buf_size; member in struct:s3c_fb_variant 553 writel(data, regs + sfb->variant.buf_size + (win_no * 4)); s3c_fb_set_par() 1787 .buf_size = VIDW_BUF_SIZE(0), 1818 .buf_size = VIDW_BUF_SIZE(0), 1851 .buf_size = VIDW_BUF_SIZE(0), 1883 .buf_size = VIDW_BUF_SIZE(0), 1917 .buf_size = 0x94,
|
/linux-4.1.27/drivers/media/dvb-core/ |
H A D | dvb_ca_en50221.c | 303 int buf_size; dvb_ca_en50221_link_init() local 326 buf_size = (buf[0] << 8) | buf[1]; dvb_ca_en50221_link_init() 327 if (buf_size > HOST_LINK_BUF_SIZE) dvb_ca_en50221_link_init() 328 buf_size = HOST_LINK_BUF_SIZE; dvb_ca_en50221_link_init() 329 ca->slot_info[slot].link_buf_size = buf_size; dvb_ca_en50221_link_init() 330 buf[0] = buf_size >> 8; dvb_ca_en50221_link_init() 331 buf[1] = buf_size & 0xff; dvb_ca_en50221_link_init() 332 dprintk("Chosen link buffer size of %i\n", buf_size); dvb_ca_en50221_link_init()
|
/linux-4.1.27/drivers/net/wireless/rsi/ |
H A D | rsi_91x_mac80211.c | 666 * @buf_size: Buffer size (for kernel version > 2.6.38). 676 unsigned char buf_size) rsi_mac80211_ampdu_action() 699 buf_size, rsi_mac80211_ampdu_action() 707 buf_size, rsi_mac80211_ampdu_action() 723 buf_size, rsi_mac80211_ampdu_action() 734 buf_size, rsi_mac80211_ampdu_action() 670 rsi_mac80211_ampdu_action(struct ieee80211_hw *hw, struct ieee80211_vif *vif, enum ieee80211_ampdu_mlme_action action, struct ieee80211_sta *sta, unsigned short tid, unsigned short *ssn, unsigned char buf_size) rsi_mac80211_ampdu_action() argument
|
H A D | rsi_mgmt.h | 292 u16 ssn, u8 buf_size, u8 event);
|
/linux-4.1.27/fs/fat/ |
H A D | dir.c | 234 fat_shortname2uni(struct nls_table *nls, unsigned char *buf, int buf_size, fat_shortname2uni() argument 240 len = fat_short2lower_uni(nls, buf, buf_size, uni_buf); fat_shortname2uni() 242 len = fat_short2uni(nls, buf, buf_size, uni_buf); fat_shortname2uni() 245 len = fat_short2lower_uni(nls, buf, buf_size, uni_buf); fat_shortname2uni() 247 len = fat_short2uni(nls, buf, buf_size, uni_buf); fat_shortname2uni() 249 len = fat_short2uni(nls, buf, buf_size, uni_buf); fat_shortname2uni()
|
/linux-4.1.27/drivers/net/vmxnet3/ |
H A D | vmxnet3_drv.c | 703 u32 buf_size; vmxnet3_map_pkt() local 706 buf_size = len; vmxnet3_map_pkt() 709 buf_size = VMXNET3_MAX_TX_BUF_SIZE; vmxnet3_map_pkt() 716 skb->data + buf_offset, buf_size, vmxnet3_map_pkt() 719 tbi->len = buf_size; vmxnet3_map_pkt() 735 len -= buf_size; vmxnet3_map_pkt() 736 buf_offset += buf_size; vmxnet3_map_pkt() 741 u32 buf_size; vmxnet3_map_pkt() local 748 buf_size = len; vmxnet3_map_pkt() 751 buf_size = VMXNET3_MAX_TX_BUF_SIZE; vmxnet3_map_pkt() 756 buf_offset, buf_size, vmxnet3_map_pkt() 759 tbi->len = buf_size; vmxnet3_map_pkt() 775 len -= buf_size; vmxnet3_map_pkt() 776 buf_offset += buf_size; vmxnet3_map_pkt()
|
/linux-4.1.27/drivers/usb/host/ |
H A D | isp1362-hcd.c | 144 isp1362_hcd->atl_queue.buf_size) get_ptd_queue() 159 if (index * epq->blk_size > epq->buf_size) { get_ptd_offset() 161 epq->buf_size / epq->blk_size); get_ptd_offset() 191 BUG_ON(len > epq->buf_size); claim_ptd_buffers() 848 if (ptd_offset < epq->buf_start + epq->buf_size) next_ptd() 895 epq->buf_start + epq->buf_size) { start_iso_transfers() 2258 isp1362_hcd->istl_queue[i].buf_size = istl_size / 2; isp1362_mem_config() 2266 isp1362_hcd->istl_queue[i].buf_size); isp1362_mem_config() 2271 isp1362_hcd->intl_queue.buf_size = intl_size; isp1362_mem_config() 2279 isp1362_hcd->intl_queue.buf_size); isp1362_mem_config() 2287 isp1362_hcd->atl_queue.buf_size = atl_size; isp1362_mem_config() 2295 isp1362_hcd->atl_queue.buf_size); isp1362_mem_config() 2310 isp1362_hcd->intl_queue.buf_size); isp1362_mem_config() 2315 isp1362_hcd->atl_queue.buf_size); isp1362_mem_config()
|
/linux-4.1.27/fs/btrfs/ |
H A D | ioctl.c | 1931 size_t *buf_size, copy_to_sk() 1964 if (sizeof(sh) + item_len > *buf_size) { copy_to_sk() 1975 *buf_size = sizeof(sh) + item_len; copy_to_sk() 1980 if (sizeof(sh) + item_len + *sk_offset > *buf_size) { copy_to_sk() 2048 size_t *buf_size, search_ioctl() 2059 if (*buf_size < sizeof(struct btrfs_ioctl_search_header)) { search_ioctl() 2060 *buf_size = sizeof(struct btrfs_ioctl_search_header); search_ioctl() 2095 ret = copy_to_sk(root, path, &key, sk, buf_size, ubuf, search_ioctl() 2117 size_t buf_size; btrfs_ioctl_tree_search() local 2127 buf_size = sizeof(uargs->buf); btrfs_ioctl_tree_search() 2130 ret = search_ioctl(inode, &sk, &buf_size, uargs->buf); btrfs_ioctl_tree_search() 2151 size_t buf_size; btrfs_ioctl_tree_search_v2() local 2162 buf_size = args.buf_size; btrfs_ioctl_tree_search_v2() 2164 if (buf_size < sizeof(struct btrfs_ioctl_search_header)) btrfs_ioctl_tree_search_v2() 2168 if (buf_size > buf_limit) btrfs_ioctl_tree_search_v2() 2169 buf_size = buf_limit; btrfs_ioctl_tree_search_v2() 2172 ret = search_ioctl(inode, &args.key, &buf_size, btrfs_ioctl_tree_search_v2() 2177 copy_to_user(&uarg->buf_size, &buf_size, sizeof(buf_size))) btrfs_ioctl_tree_search_v2() 1927 copy_to_sk(struct btrfs_root *root, struct btrfs_path *path, struct btrfs_key *key, struct btrfs_ioctl_search_key *sk, size_t *buf_size, char __user *ubuf, unsigned long *sk_offset, int *num_found) copy_to_sk() argument 2046 search_ioctl(struct inode *inode, struct btrfs_ioctl_search_key *sk, size_t *buf_size, char __user *ubuf) search_ioctl() argument
|
/linux-4.1.27/drivers/mmc/host/ |
H A D | atmel-mci.c | 109 * @buf_size: size of the buffer. 189 unsigned int buf_size; member in struct:atmel_mci 740 unsigned int buf_size; atmci_pdc_set_single_buf() local 756 buf_size = host->buf_size; atmci_pdc_set_single_buf() 759 buf_size = sg_dma_len(host->sg); atmci_pdc_set_single_buf() 763 if (host->data_size <= buf_size) { atmci_pdc_set_single_buf() 2469 host->buf_size = host->slot[0]->mmc->max_req_size; atmci_probe() 2477 if (host->slot[1]->mmc->max_req_size > host->buf_size) atmci_probe() 2478 host->buf_size = atmci_probe() 2489 host->buffer = dma_alloc_coherent(&pdev->dev, host->buf_size, atmci_probe() 2535 dma_free_coherent(&pdev->dev, host->buf_size, atmci_remove()
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_ethtool.c | 238 size_t buf_size; get_regs() local 240 buf_size = t4_get_regs_len(adap); get_regs() 242 t4_get_regs(adap, buf, buf_size); get_regs()
|
/linux-4.1.27/drivers/media/usb/airspy/ |
H A D | airspy.c | 128 unsigned long buf_size; member in struct:airspy 364 usb_free_coherent(s->udev, s->buf_size, airspy_free_stream_bufs() 377 s->buf_size = BULK_BUFFER_SIZE; airspy_alloc_stream_bufs()
|
/linux-4.1.27/drivers/staging/comedi/drivers/ |
H A D | dt9812.c | 245 int offset, void *buf, size_t buf_size) dt9812_read_info() 255 cmd.u.flash_data_info.numbytes = cpu_to_le16(buf_size); dt9812_read_info() 264 buf, buf_size, &count, DT9812_USB_TIMEOUT); dt9812_read_info() 244 dt9812_read_info(struct comedi_device *dev, int offset, void *buf, size_t buf_size) dt9812_read_info() argument
|
/linux-4.1.27/drivers/bluetooth/ |
H A D | btmrvl_main.c | 414 int buf_size; btmrvl_init_adapter() local 420 buf_size = ALIGN_SZ(SDIO_BLOCK_SIZE, BTSDIO_DMA_ALIGN); btmrvl_init_adapter() 421 priv->adapter->hw_regs_buf = kzalloc(buf_size, GFP_KERNEL); btmrvl_init_adapter()
|
/linux-4.1.27/arch/s390/hypfs/ |
H A D | hypfs_diag.c | 560 int rc, buf_size; dbfs_d204_create() local 563 buf_size = PAGE_SIZE * (diag204_buf_pages + 1) + sizeof(d204->hdr); dbfs_d204_create() 564 base = vzalloc(buf_size); dbfs_d204_create()
|
/linux-4.1.27/arch/powerpc/kernel/ |
H A D | rtas_flash.c | 155 unsigned int buf_size; /* Size of image buf */ member in struct:rtas_validate_flash_t 460 (u32) __pa(rtas_data_buf), args_buf->buf_size); validate_flash() 550 args_buf->buf_size = VALIDATE_BUF_SIZE; validate_flash_release()
|
/linux-4.1.27/drivers/gpu/drm/ |
H A D | drm_bufs.c | 684 entry->buf_size = size; drm_legacy_addbufs_agp() 859 entry->buf_size = size; drm_legacy_addbufs_pci() 1046 entry->buf_size = size; drm_legacy_addbufs_sg() 1222 &from->buf_size, drm_legacy_infobufs() 1223 sizeof(from->buf_size)) || drm_legacy_infobufs() 1235 dma->bufs[i].buf_size, drm_legacy_infobufs()
|
H A D | drm_info.c | 137 dma->bufs[i].buf_size, drm_bufs_info()
|
/linux-4.1.27/drivers/char/xillybus/ |
H A D | xillybus_core.c | 130 unsigned int buf_size; xillybus_isr() local 137 buf_size = ep->msg_buf_size/sizeof(u32); xillybus_isr() 144 for (i = 0; i < buf_size; i += 2) { xillybus_isr() 171 if (i >= buf_size) { xillybus_isr() 176 buf_size = i + 2; xillybus_isr() 178 for (i = 0; i < buf_size; i += 2) { /* Scan through messages */ xillybus_isr()
|
/linux-4.1.27/fs/xfs/ |
H A D | xfs_log_cil.c | 177 int buf_size; xlog_cil_insert_format_items() local 220 buf_size = nbytes + xlog_cil_insert_format_items() 226 if (lip->li_lv && buf_size <= lip->li_lv->lv_size) { xlog_cil_insert_format_items() 242 lv = kmem_zalloc(buf_size, KM_SLEEP|KM_NOFS); xlog_cil_insert_format_items() 244 lv->lv_size = buf_size; xlog_cil_insert_format_items() 260 lv->lv_buf = (char *)lv + buf_size - nbytes; xlog_cil_insert_format_items()
|
/linux-4.1.27/drivers/block/ |
H A D | cciss.c | 1200 err |= get_user(arg64.buf_size, &arg32->buf_size); cciss_ioctl32_passthru() 1241 err |= get_user(arg64.buf_size, &arg32->buf_size); cciss_ioctl32_big_passthru() 1478 if ((iocommand.buf_size < 1) && cciss_passthru() 1482 if (iocommand.buf_size > 0) { cciss_passthru() 1483 buff = kmalloc(iocommand.buf_size, GFP_KERNEL); cciss_passthru() 1489 if (copy_from_user(buff, iocommand.buf, iocommand.buf_size)) { cciss_passthru() 1494 memset(buff, 0, iocommand.buf_size); cciss_passthru() 1505 if (iocommand.buf_size > 0) { /* buffer to fill */ cciss_passthru() 1520 if (iocommand.buf_size > 0) { cciss_passthru() 1522 iocommand.buf_size, PCI_DMA_BIDIRECTIONAL); cciss_passthru() 1525 c->SG[0].Len = iocommand.buf_size; cciss_passthru() 1536 pci_unmap_single(h->pdev, (dma_addr_t) temp64.val, iocommand.buf_size, cciss_passthru() 1550 if (copy_to_user(iocommand.buf, buff, iocommand.buf_size)) { cciss_passthru() 1589 if ((ioc->buf_size < 1) && cciss_bigpassthru() 1599 if (ioc->buf_size > ioc->malloc_size * MAXSGENTRIES) { cciss_bigpassthru() 1613 left = ioc->buf_size; cciss_bigpassthru()
|
/linux-4.1.27/tools/usb/usbip/src/ |
H A D | usbipd.c | 347 const size_t buf_size) addrinfo_to_text() 360 snprintf(buf, buf_size, "%s:%s", hbuf, sbuf); addrinfo_to_text() 346 addrinfo_to_text(struct addrinfo *ai, char buf[], const size_t buf_size) addrinfo_to_text() argument
|
/linux-4.1.27/drivers/media/radio/wl128x/ |
H A D | fmdrv.h | 129 u32 buf_size; /* Size is always multiple of 3 */ member in struct:fm_rds
|
H A D | fmdrv_common.c | 807 rds->wr_idx = (rds->wr_idx + FM_RDS_BLK_SIZE) % rds->buf_size; fm_irq_handle_rdsdata_getcmd_resp() 1105 if (fmdev->rx.rds.rd_idx >= fmdev->rx.rds.buf_size) fmc_transfer_rds_from_internal_buff() 1645 fmdev->rx.rds.buf_size = default_rds_buf * FM_RDS_BLK_SIZE; fm_drv_init() 1646 fmdev->rx.rds.buff = kzalloc(fmdev->rx.rds.buf_size, GFP_KERNEL); fm_drv_init()
|
/linux-4.1.27/drivers/net/ethernet/rocker/ |
H A D | rocker.h | 108 u16 buf_size; member in struct:rocker_desc
|
/linux-4.1.27/drivers/net/ethernet/toshiba/ |
H A D | ps3_gelic_net.h | 248 __be32 buf_size; member in struct:gelic_descr
|
H A D | ps3_gelic_wireless.h | 313 unsigned int buf_size; member in struct:gelic_eurus_cmd
|
H A D | ps3_gelic_net.c | 402 descr->buf_size = cpu_to_be32(bufsize); gelic_descr_prepare_rx() 518 descr->buf_size = 0; gelic_descr_release_tx() 805 descr->buf_size = cpu_to_be32(skb->len); gelic_descr_prepare_tx() 942 be32_to_cpu(descr->buf_size), gelic_net_pass_skb_up()
|
H A D | spider_net.h | 388 u32 buf_size; member in struct:spider_net_hw_descr
|
/linux-4.1.27/drivers/scsi/megaraid/ |
H A D | megaraid_ioctl.h | 238 uint32_t buf_size; member in struct:mm_dmapool
|
/linux-4.1.27/drivers/net/wireless/rt2x00/ |
H A D | rt2800lib.h | 222 u8 buf_size);
|
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/ |
H A D | core.c | 354 u32 buf_size; brcmf_rxreorder_process_info() local 388 buf_size = sizeof(*rfi); brcmf_rxreorder_process_info() 391 buf_size += (max_idx + 1) * sizeof(pkt); brcmf_rxreorder_process_info() 396 rfi = kzalloc(buf_size, GFP_ATOMIC); brcmf_rxreorder_process_info()
|
/linux-4.1.27/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_ib.c | 128 int buf_size; ipoib_alloc_rx_skb() local 131 buf_size = IPOIB_UD_BUF_SIZE(priv->max_ib_mtu); ipoib_alloc_rx_skb() 133 skb = dev_alloc_skb(buf_size + IPOIB_ENCAP_LEN); ipoib_alloc_rx_skb() 145 mapping[0] = ib_dma_map_single(priv->ca, skb->data, buf_size, ipoib_alloc_rx_skb()
|
/linux-4.1.27/fs/debugfs/ |
H A D | file.c | 469 size_t buf_size; write_file_bool() local 473 buf_size = min(count, (sizeof(buf)-1)); write_file_bool() 474 if (copy_from_user(buf, user_buf, buf_size)) write_file_bool() 477 buf[buf_size] = '\0'; write_file_bool()
|
/linux-4.1.27/include/drm/ |
H A D | drm_legacy.h | 85 int buf_size; /**< size */ member in struct:drm_buf_entry
|
/linux-4.1.27/drivers/net/ethernet/emulex/benet/ |
H A D | be_cmds.c | 1713 u32 offset = 0, total_size, buf_size, be_cmd_get_regs() local 1735 buf_size = min(total_size, (u32)60*1024); be_cmd_get_regs() 1736 total_size -= buf_size; be_cmd_get_regs() 1745 payload_len = sizeof(struct be_cmd_req_get_fat) + buf_size; be_cmd_get_regs() 1752 req->read_log_length = cpu_to_le32(buf_size); be_cmd_get_regs() 1753 req->data_buffer_size = cpu_to_le32(buf_size); be_cmd_get_regs() 1766 offset += buf_size; be_cmd_get_regs() 1767 log_offset += buf_size; be_cmd_get_regs() 2445 u32 buf_size) be_cmd_write_flashrom() 2470 req->params.data_buf_size = cpu_to_le32(buf_size); be_cmd_write_flashrom() 2443 be_cmd_write_flashrom(struct be_adapter *adapter, struct be_dma_mem *cmd, u32 flash_type, u32 flash_opcode, u32 img_offset, u32 buf_size) be_cmd_write_flashrom() argument
|
/linux-4.1.27/drivers/media/radio/ |
H A D | radio-wl1273.c | 77 unsigned int buf_size; member in struct:wl1273_device 210 if (radio->wr_index >= radio->buf_size) wl1273_fm_rds() 1249 if (radio->rd_index >= radio->buf_size) wl1273_fm_fops_read() 2025 radio->buf_size = rds_buf * RDS_BLOCK_SIZE; wl1273_fm_radio_probe() 2026 radio->buffer = devm_kzalloc(&pdev->dev, radio->buf_size, GFP_KERNEL); wl1273_fm_radio_probe()
|
/linux-4.1.27/drivers/hid/ |
H A D | wacom_sys.c | 576 int buf_size = 9; wacom_led_control() local 580 buf_size = 13; wacom_led_control() 582 buf = kzalloc(buf_size, GFP_KERNEL); wacom_led_control() 601 buf, buf_size, WAC_CMD_RETRIES); wacom_led_control() 621 retval = wacom_set_report(wacom->hdev, HID_FEATURE_REPORT, buf, buf_size, wacom_led_control()
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | sge.c | 366 q->buf_size, PCI_DMA_FROMDEVICE); clear_rx_desc() 464 q->pg_chunk.offset += q->buf_size; alloc_pg_chunk() 468 q->pg_chunk.va += q->buf_size; alloc_pg_chunk() 521 q->buf_size - SGE_PG_RSVD, refill_fl() 526 struct sk_buff *skb = alloc_skb(q->buf_size, gfp); refill_fl() 532 err = add_one_rx_buf(buf_start, q->buf_size, d, sd, refill_fl() 813 fl->buf_size, PCI_DMA_FROMDEVICE); get_packet() 2083 fl->buf_size - SGE_PG_RSVD, lro_add_page() 3040 q->fl[0].buf_size = FL0_PG_CHUNK_SIZE; t3_sge_alloc_qset() 3042 q->fl[0].buf_size = SGE_RX_SM_BUF_SIZE + sizeof(struct cpl_rx_data); t3_sge_alloc_qset() 3045 q->fl[1].buf_size = FL1_PG_CHUNK_SIZE; t3_sge_alloc_qset() 3047 q->fl[1].buf_size = is_offload(adapter) ? t3_sge_alloc_qset() 3064 q->fl[0].buf_size - SGE_PG_RSVD, 1, 0); t3_sge_alloc_qset() 3071 q->fl[i].buf_size - SGE_PG_RSVD, t3_sge_alloc_qset()
|
H A D | adapter.h | 104 unsigned int buf_size; /* size of each Rx buffer */ member in struct:sge_fl
|
/linux-4.1.27/drivers/net/wireless/iwlwifi/pcie/ |
H A D | trans.c | 1941 int buf_size; iwl_dbgfs_interrupt_write() local 1945 buf_size = min(count, sizeof(buf) - 1); iwl_dbgfs_interrupt_write() 1946 if (copy_from_user(buf, user_buf, buf_size)) iwl_dbgfs_interrupt_write() 1962 int buf_size; iwl_dbgfs_csr_write() local 1966 buf_size = min(count, sizeof(buf) - 1); iwl_dbgfs_csr_write() 1967 if (copy_from_user(buf, user_buf, buf_size)) iwl_dbgfs_csr_write()
|
/linux-4.1.27/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_debugfs.c | 335 int buf_size = 256; i40e_dbg_command_read() local 342 if (count < buf_size) i40e_dbg_command_read() 345 buf = kzalloc(buf_size, GFP_KERNEL); i40e_dbg_command_read() 349 len = snprintf(buf, buf_size, "%s: %s\n", i40e_dbg_command_read() 2016 int buf_size = 256; i40e_dbg_netdev_ops_read() local 2023 if (count < buf_size) i40e_dbg_netdev_ops_read() 2026 buf = kzalloc(buf_size, GFP_KERNEL); i40e_dbg_netdev_ops_read() 2030 len = snprintf(buf, buf_size, "%s: %s\n", i40e_dbg_netdev_ops_read()
|
H A D | i40e_prototype.h | 144 u16 buf_size, u16 *start_seid,
|
/linux-4.1.27/drivers/net/wireless/ath/carl9170/ |
H A D | debug.c | 206 char *buf, size_t buf_size,\ 209 ADD(buf, *len, buf_size, fmt "\n", ##value); \
|
/linux-4.1.27/net/tipc/ |
H A D | msg.c | 62 unsigned int buf_size = (BUF_HEADROOM + size + 3) & ~3u; tipc_buf_acquire() local 64 skb = alloc_skb_fclone(buf_size, GFP_ATOMIC); tipc_buf_acquire()
|