Home
last modified time | relevance | path

Searched refs:buffer_size (Results 1 – 25 of 146) sorted by relevance

123456

/drivers/android/
Dbinder_alloc.c69 alloc->buffer_size - (u8 *)buffer->data; in binder_alloc_buffer_size()
79 size_t buffer_size; in binder_insert_free_buffer() local
95 buffer_size = binder_alloc_buffer_size(alloc, buffer); in binder_insert_free_buffer()
97 if (new_buffer_size < buffer_size) in binder_insert_free_buffer()
338 size_t buffer_size; in binder_alloc_new_buf_locked() local
381 buffer_size = binder_alloc_buffer_size(alloc, buffer); in binder_alloc_new_buf_locked()
383 if (size < buffer_size) { in binder_alloc_new_buf_locked()
386 } else if (size > buffer_size) in binder_alloc_new_buf_locked()
404 buffer_size = binder_alloc_buffer_size(alloc, buffer); in binder_alloc_new_buf_locked()
406 total_alloc_size += buffer_size; in binder_alloc_new_buf_locked()
[all …]
/drivers/oprofile/
Devent_buffer.c32 static unsigned long buffer_size; variable
55 if (buffer_pos == buffer_size) { in add_event_entry()
61 if (++buffer_pos == buffer_size - buffer_watershed) { in add_event_entry()
86 buffer_size = oprofile_buffer_size; in alloc_event_buffer()
90 if (buffer_watershed >= buffer_size) in alloc_event_buffer()
94 event_buffer = vmalloc(sizeof(unsigned long) * buffer_size); in alloc_event_buffer()
164 size_t const max = buffer_size * sizeof(unsigned long); in event_buffer_read()
/drivers/net/ethernet/cavium/liquidio/
Docteon_console.c601 console->buffer_size = octeon_read_device_mem32(oct, coreaddr); in octeon_add_console()
651 console->buffer_size = 0; in octeon_remove_consoles()
659 static inline int octeon_console_free_bytes(u32 buffer_size, in octeon_console_free_bytes() argument
663 if (rd_idx >= buffer_size || wr_idx >= buffer_size) in octeon_console_free_bytes()
666 return ((buffer_size - 1) - (wr_idx - rd_idx)) % buffer_size; in octeon_console_free_bytes()
669 static inline int octeon_console_avail_bytes(u32 buffer_size, in octeon_console_avail_bytes() argument
673 if (rd_idx >= buffer_size || wr_idx >= buffer_size) in octeon_console_avail_bytes()
676 return buffer_size - 1 - in octeon_console_avail_bytes()
677 octeon_console_free_bytes(buffer_size, wr_idx, rd_idx); in octeon_console_avail_bytes()
703 bytes_to_read = octeon_console_avail_bytes(console->buffer_size, in octeon_console_read()
[all …]
Docteon_droq.c130 count += droq->buffer_size; in octeon_droq_compute_max_packet_bufs()
276 droq->buffer_size = c_buf_size; in octeon_init_droq()
405 recv_pkt->buffer_size[i] = in octeon_create_recv_info()
407 droq->buffer_size) ? droq->buffer_size : bytes_left; in octeon_create_recv_info()
413 bytes_left -= droq->buffer_size; in octeon_create_recv_info()
554 cnt = octeon_droq_get_bufcount(droq->buffer_size, (u32)info->length); in octeon_droq_dispatch_pkt()
595 buf_cnt = octeon_droq_get_bufcount(droq->buffer_size, in octeon_droq_drop_packets()
649 if (info->length <= droq->buffer_size) { in octeon_droq_fast_process_packets()
672 cpy_len = ((pkt_len + droq->buffer_size) in octeon_droq_fast_process_packets()
675 droq->buffer_size; in octeon_droq_fast_process_packets()
/drivers/misc/ibmasm/
Dcommand.c34 struct command *ibmasm_new_command(struct service_processor *sp, size_t buffer_size) in ibmasm_new_command() argument
38 if (buffer_size > IBMASM_CMD_MAX_BUFFER_SIZE) in ibmasm_new_command()
46 cmd->buffer = kzalloc(buffer_size, GFP_KERNEL); in ibmasm_new_command()
51 cmd->buffer_size = buffer_size; in ibmasm_new_command()
182 memcpy_fromio(cmd->buffer, response, min(size, cmd->buffer_size)); in ibmasm_receive_command_response()
/drivers/staging/wilc1000/
Dwilc_wlan.h216 int buffer_size; member
225 int buffer_size; member
279 u32 buffer_size);
283 u32 buffer_size, wilc_tx_complete_func_t func);
288 u32 buffer_size, int commit, u32 drv_handler);
291 int wilc_wlan_cfg_get_val(u16 wid, u8 *buffer, u32 buffer_size);
293 u32 buffer_size, wilc_tx_complete_func_t func);
Dwilc_wlan.c305 u32 buffer_size) in wilc_wlan_txq_add_cfg_pkt() argument
323 tqe->buffer_size = buffer_size; in wilc_wlan_txq_add_cfg_pkt()
337 u32 buffer_size, wilc_tx_complete_func_t func) in wilc_wlan_txq_add_net_pkt() argument
354 tqe->buffer_size = buffer_size; in wilc_wlan_txq_add_net_pkt()
366 u32 buffer_size, wilc_tx_complete_func_t func) in wilc_wlan_txq_add_mgmt_pkt() argument
383 tqe->buffer_size = buffer_size; in wilc_wlan_txq_add_mgmt_pkt()
590 vmm_sz += tqe->buffer_size; in wilc_wlan_handle_txq()
702 (tqe->buffer_size << 15) | in wilc_wlan_handle_txq()
723 tqe->buffer, tqe->buffer_size); in wilc_wlan_handle_txq()
780 size = rqe->buffer_size; in wilc_wlan_handle_rxq()
[all …]
/drivers/acpi/acpica/
Drscalc.c406 u32 buffer_size; in acpi_rs_get_list_length() local
563 buffer_size = in acpi_rs_get_list_length()
568 buffer_size = in acpi_rs_get_list_length()
573 buffer_size = (u32)ACPI_ROUND_UP_TO_NATIVE_WORD(buffer_size); in acpi_rs_get_list_length()
574 *size_needed += buffer_size; in acpi_rs_get_list_length()
580 buffer_size)); in acpi_rs_get_list_length()
Dutobject.c233 union acpi_operand_object *acpi_ut_create_buffer_object(acpi_size buffer_size) in acpi_ut_create_buffer_object() argument
238 ACPI_FUNCTION_TRACE_U32(ut_create_buffer_object, buffer_size); in acpi_ut_create_buffer_object()
249 if (buffer_size > 0) { in acpi_ut_create_buffer_object()
253 buffer = ACPI_ALLOCATE_ZEROED(buffer_size); in acpi_ut_create_buffer_object()
256 (u32)buffer_size)); in acpi_ut_create_buffer_object()
267 buffer_desc->buffer.length = (u32) buffer_size; in acpi_ut_create_buffer_object()
/drivers/media/usb/cx231xx/
Dcx231xx-vbi.c88 u32 bytes_parsed = 0, buffer_size = 0; in cx231xx_isoc_vbi_copy() local
105 buffer_size = urb->actual_length; in cx231xx_isoc_vbi_copy()
107 if (buffer_size > 0) { in cx231xx_isoc_vbi_copy()
130 buffer_size - bytes_parsed); /* buffer size */ in cx231xx_isoc_vbi_copy()
136 while (bytes_parsed < buffer_size) { in cx231xx_isoc_vbi_copy()
141 buffer_size - bytes_parsed, /* buffer size */ in cx231xx_isoc_vbi_copy()
147 if (sav_eav && (bytes_parsed < buffer_size)) { in cx231xx_isoc_vbi_copy()
151 buffer_size-bytes_parsed);/*buf size*/ in cx231xx_isoc_vbi_copy()
157 memcpy(dma_q->partial_buf, p_buffer + buffer_size - 4, 4); in cx231xx_isoc_vbi_copy()
488 u8 sav_eav, u8 *p_buffer, u32 buffer_size) in cx231xx_get_vbi_line() argument
[all …]
Dcx231xx-video.c279 u32 bytes_parsed = 0, buffer_size = 0; in cx231xx_isoc_copy() local
315 buffer_size = urb->iso_frame_desc[i].actual_length; in cx231xx_isoc_copy()
337 buffer_size - bytes_parsed);/* buf size */ in cx231xx_isoc_copy()
343 while (bytes_parsed < buffer_size) { in cx231xx_isoc_copy()
348 buffer_size - bytes_parsed, /* buf size */ in cx231xx_isoc_copy()
354 if (sav_eav && (bytes_parsed < buffer_size)) { in cx231xx_isoc_copy()
358 buffer_size - bytes_parsed);/*buf size*/ in cx231xx_isoc_copy()
364 memcpy(dma_q->partial_buf, p_buffer + buffer_size - 4, 4); in cx231xx_isoc_copy()
375 u32 bytes_parsed = 0, buffer_size = 0; in cx231xx_bulk_copy() local
394 buffer_size = urb->actual_length; in cx231xx_bulk_copy()
[all …]
Dcx231xx-audio.c142 if (oldptr + length >= runtime->buffer_size) { in cx231xx_audio_isocirq()
145 cnt = runtime->buffer_size - oldptr; in cx231xx_audio_isocirq()
159 runtime->buffer_size) in cx231xx_audio_isocirq()
161 runtime->buffer_size; in cx231xx_audio_isocirq()
228 if (oldptr + length >= runtime->buffer_size) { in cx231xx_audio_bulkirq()
231 cnt = runtime->buffer_size - oldptr; in cx231xx_audio_bulkirq()
245 runtime->buffer_size) in cx231xx_audio_bulkirq()
247 runtime->buffer_size; in cx231xx_audio_bulkirq()
/drivers/media/pci/ttpci/
Dbudget-core.c84 memset(budget->grabbing, 0x00, budget->buffer_size); in start_ts_capture()
141 if (budget->buffer_size > budget->buffer_height * budget->buffer_width) { in start_ts_capture()
148 saa7146_write(dev, PROT_ADDR3, budget->buffer_size); in start_ts_capture()
205 if (newdma >= budget->buffer_size) in vpeirq()
217 count = budget->buffer_size - olddma; in vpeirq()
471 budget->buffer_size = 2 * budget->buffer_height * budget->buffer_width; in ttpci_budget_init()
474 budget->buffer_size = budget->buffer_height * budget->buffer_width; in ttpci_budget_init()
476 budget->buffer_warning_threshold = budget->buffer_size * 80/100; in ttpci_budget_init()
482 budget->buffer_size > budget->buffer_width * budget->buffer_height ? "odd/even" : "single", in ttpci_budget_init()
484 printk("%s: dma buffer size %u\n", budget->dev->name, budget->buffer_size); in ttpci_budget_init()
[all …]
/drivers/gpio/
Dgpio-pisosr.c37 size_t buffer_size; member
55 ret = spi_read(gpio->spi, gpio->buffer, gpio->buffer_size); in pisosr_gpio_refresh()
123 gpio->buffer_size = DIV_ROUND_UP(gpio->chip.ngpio, 8); in pisosr_gpio_probe()
124 gpio->buffer = devm_kzalloc(dev, gpio->buffer_size, GFP_KERNEL); in pisosr_gpio_probe()
/drivers/usb/serial/
Dir-usb.c46 static int buffer_size; variable
419 if (buffer_size) { in ir_init()
420 ir_device.bulk_in_size = buffer_size; in ir_init()
421 ir_device.bulk_out_size = buffer_size; in ir_init()
442 module_param(buffer_size, int, 0);
443 MODULE_PARM_DESC(buffer_size, "Size of the transfer buffers");
Dusb-serial.c728 int buffer_size; in usb_serial_probe() local
929 buffer_size = max_t(int, serial->type->bulk_in_size, in usb_serial_probe()
931 port->bulk_in_size = buffer_size; in usb_serial_probe()
939 port->bulk_in_buffers[j] = kmalloc(buffer_size, in usb_serial_probe()
946 port->bulk_in_buffers[j], buffer_size, in usb_serial_probe()
960 buffer_size = serial->type->bulk_out_size; in usb_serial_probe()
961 if (!buffer_size) in usb_serial_probe()
962 buffer_size = usb_endpoint_maxp(endpoint); in usb_serial_probe()
963 port->bulk_out_size = buffer_size; in usb_serial_probe()
971 port->bulk_out_buffers[j] = kmalloc(buffer_size, in usb_serial_probe()
[all …]
/drivers/uwb/
Ddrp-avail.c203 size_t buffer_size) in buffer_to_bmp() argument
210 while (itr < buffer_size) { in buffer_to_bmp()
211 len = buffer_size - itr >= sizeof(val) ? in buffer_to_bmp()
212 sizeof(val) : buffer_size - itr; in buffer_to_bmp()
/drivers/staging/most/aim-sound/
Dsound.c187 unsigned int const buffer_size = runtime->buffer_size; in copy_data() local
195 fr0 = min(buffer_size - channel->buffer_pos, frames); in copy_data()
209 if (channel->buffer_pos >= buffer_size) in copy_data()
210 channel->buffer_pos -= buffer_size; in copy_data()
488 pcm_hw->buffer_bytes_max = cfg->num_buffers * cfg->buffer_size; in audio_set_hw_params()
489 pcm_hw->period_bytes_min = cfg->buffer_size; in audio_set_hw_params()
490 pcm_hw->period_bytes_max = cfg->buffer_size; in audio_set_hw_params()
/drivers/ide/
Dide-tape.c199 int buffer_size; member
553 if (blk_rq_bytes(rq) == tape->buffer_size) in ide_tape_create_rw_cmd()
961 tape->buf = kmalloc(tape->buffer_size, GFP_KERNEL); in idetape_init_rw()
993 memset(tape->buf, 0, tape->buffer_size); in idetape_pad_zeros()
996 unsigned int count = min(tape->buffer_size, bcount); in idetape_pad_zeros()
1160 tape->buffer_size) <= 0) in idetape_chrdev_read()
1206 if (tape->valid == tape->buffer_size && in idetape_chrdev_write()
1208 tape->buffer_size) <= 0) in idetape_chrdev_write()
1213 tape->buffer_size - tape->valid); in idetape_chrdev_write()
1552 tape->buf = kmalloc(tape->buffer_size, GFP_KERNEL); in idetape_write_release()
[all …]
/drivers/media/usb/cpia2/
Dcpia2_v4l.c50 static int buffer_size = 68 * 1024; variable
51 module_param(buffer_size, int, 0);
52 MODULE_PARM_DESC(buffer_size, "Size for each frame buffer in bytes (default 68k)");
1031 cam->frame_size = buffer_size; in reset_camera_struct_v4l()
1202 if(buffer_size < PAGE_SIZE) { in check_parameters()
1203 buffer_size = PAGE_SIZE; in check_parameters()
1204 LOG("buffer_size too small, setting to %d\n", buffer_size); in check_parameters()
1205 } else if(buffer_size > 1024*1024) { in check_parameters()
1207 buffer_size = 1024*1024; in check_parameters()
1209 buffer_size); in check_parameters()
[all …]
/drivers/net/wireless/rsi/
Drsi_91x_usb.c103 __le16 buffer_size; in rsi_find_bulk_in_and_out_endpoints() local
116 buffer_size = endpoint->wMaxPacketSize; in rsi_find_bulk_in_and_out_endpoints()
117 dev->bulkin_size = buffer_size; in rsi_find_bulk_in_and_out_endpoints()
128 buffer_size = endpoint->wMaxPacketSize; in rsi_find_bulk_in_and_out_endpoints()
129 dev->bulkout_size[bep_found] = buffer_size; in rsi_find_bulk_in_and_out_endpoints()
/drivers/media/usb/tm6000/
Dtm6000-alsa.c248 (unsigned int)runtime->buffer_size, stride); in tm6000_fillbuf()
250 if (buf_pos + length >= runtime->buffer_size) { in tm6000_fillbuf()
251 unsigned int cnt = runtime->buffer_size - buf_pos; in tm6000_fillbuf()
262 if (chip->buf_pos >= runtime->buffer_size) in tm6000_fillbuf()
263 chip->buf_pos -= runtime->buffer_size; in tm6000_fillbuf()
/drivers/media/pci/cx18/
Dcx18-alsa-pcm.c116 if (oldptr + length >= runtime->buffer_size) { in cx18_alsa_announce_pcm_data()
118 runtime->buffer_size - oldptr; in cx18_alsa_announce_pcm_data()
131 runtime->buffer_size) in cx18_alsa_announce_pcm_data()
133 runtime->buffer_size; in cx18_alsa_announce_pcm_data()
/drivers/media/pci/zoran/
Dzoran_driver.c196 fh->buffers.buffer_size = v4l_bufsize; in map_mode_raw()
202 fh->buffers.buffer_size = jpg_bufsize; in map_mode_jpg()
230 mem = kmalloc(fh->buffers.buffer_size, in v4l_fbuffer_alloc()
243 for (off = 0; off < fh->buffers.buffer_size; in v4l_fbuffer_alloc()
272 for (off = 0; off < fh->buffers.buffer_size; in v4l_fbuffer_free()
338 mem = kmalloc(fh->buffers.buffer_size, GFP_KERNEL); in jpg_fbuffer_alloc()
350 cpu_to_le32((fh->buffers.buffer_size >> 1) | 1); in jpg_fbuffer_alloc()
351 for (off = 0; off < fh->buffers.buffer_size; off += PAGE_SIZE) in jpg_fbuffer_alloc()
355 for (j = 0; j < fh->buffers.buffer_size / PAGE_SIZE; j++) { in jpg_fbuffer_alloc()
380 (fh->buffers.num_buffers * fh->buffers.buffer_size) >> 10); in jpg_fbuffer_alloc()
[all …]
/drivers/media/pci/ivtv/
Divtv-alsa-pcm.c117 if (oldptr + length >= runtime->buffer_size) { in ivtv_alsa_announce_pcm_data()
119 runtime->buffer_size - oldptr; in ivtv_alsa_announce_pcm_data()
132 runtime->buffer_size) in ivtv_alsa_announce_pcm_data()
134 runtime->buffer_size; in ivtv_alsa_announce_pcm_data()

123456