/drivers/android/ |
D | binder_alloc.c | 65 return alloc->buffer + alloc->buffer_size - buffer->user_data; in binder_alloc_buffer_size() 75 size_t buffer_size; in binder_insert_free_buffer() local 91 buffer_size = binder_alloc_buffer_size(alloc, buffer); in binder_insert_free_buffer() 93 if (new_buffer_size < buffer_size) in binder_insert_free_buffer() 357 if (num_buffers > 50 || total_alloc_size > alloc->buffer_size / 4) { in debug_low_async_space_locked() 379 size_t buffer_size; in binder_alloc_new_buf_locked() local 435 buffer_size = binder_alloc_buffer_size(alloc, buffer); in binder_alloc_new_buf_locked() 437 if (size < buffer_size) { in binder_alloc_new_buf_locked() 440 } else if (size > buffer_size) in binder_alloc_new_buf_locked() 458 buffer_size = binder_alloc_buffer_size(alloc, buffer); in binder_alloc_new_buf_locked() [all …]
|
/drivers/platform/x86/dell/dell-wmi-sysman/ |
D | biosattr-interface.c | 52 size_t security_area_size, buffer_size; in set_attribute() local 67 buffer_size = security_area_size + a_name_size + a_value_size; in set_attribute() 68 buffer = kzalloc(buffer_size, GFP_KERNEL); in set_attribute() 87 print_hex_dump_bytes("set attribute data: ", DUMP_PREFIX_NONE, buffer, buffer_size); in set_attribute() 89 buffer, buffer_size, in set_attribute() 110 size_t security_area_size, buffer_size; in set_bios_defaults() local 123 buffer_size = security_area_size + integer_area_size; in set_bios_defaults() 124 buffer = kzalloc(buffer_size, GFP_KERNEL); in set_bios_defaults() 136 ret = call_biosattributes_interface(wmi_priv.bios_attr_wdev, buffer, buffer_size, in set_bios_defaults()
|
D | passwordattr-interface.c | 44 size_t security_area_size, buffer_size; in set_new_password() local 70 buffer_size = security_area_size + password_type_size + current_password_size + new_size; in set_new_password() 71 buffer = kzalloc(buffer_size, GFP_KERNEL); in set_new_password() 96 print_hex_dump_bytes("set new password data: ", DUMP_PREFIX_NONE, buffer, buffer_size); in set_new_password() 97 ret = call_password_interface(wmi_priv.password_attr_wdev, buffer, buffer_size); in set_new_password()
|
/drivers/misc/ibmasm/ |
D | command.c | 20 struct command *ibmasm_new_command(struct service_processor *sp, size_t buffer_size) in ibmasm_new_command() argument 24 if (buffer_size > IBMASM_CMD_MAX_BUFFER_SIZE) in ibmasm_new_command() 32 cmd->buffer = kzalloc(buffer_size, GFP_KERNEL); in ibmasm_new_command() 37 cmd->buffer_size = buffer_size; in ibmasm_new_command() 168 memcpy_fromio(cmd->buffer, response, min(size, cmd->buffer_size)); in ibmasm_receive_command_response()
|
/drivers/net/ethernet/cavium/liquidio/ |
D | octeon_console.c | 677 console->buffer_size = octeon_read_device_mem32(oct, coreaddr); in octeon_add_console() 729 console->buffer_size = 0; in octeon_remove_consoles() 737 static inline int octeon_console_free_bytes(u32 buffer_size, in octeon_console_free_bytes() argument 741 if (rd_idx >= buffer_size || wr_idx >= buffer_size) in octeon_console_free_bytes() 744 return ((buffer_size - 1) - (wr_idx - rd_idx)) % buffer_size; in octeon_console_free_bytes() 747 static inline int octeon_console_avail_bytes(u32 buffer_size, in octeon_console_avail_bytes() argument 751 if (rd_idx >= buffer_size || wr_idx >= buffer_size) in octeon_console_avail_bytes() 754 return buffer_size - 1 - in octeon_console_avail_bytes() 755 octeon_console_free_bytes(buffer_size, wr_idx, rd_idx); in octeon_console_avail_bytes() 781 bytes_to_read = octeon_console_avail_bytes(console->buffer_size, in octeon_console_read() [all …]
|
D | octeon_droq.c | 124 count += droq->buffer_size; in octeon_droq_compute_max_packet_bufs() 266 droq->buffer_size = c_buf_size; in octeon_init_droq() 369 recv_pkt->buffer_size[i] = in octeon_create_recv_info() 371 droq->buffer_size) ? droq->buffer_size : bytes_left; in octeon_create_recv_info() 377 bytes_left -= droq->buffer_size; in octeon_create_recv_info() 537 cnt = octeon_droq_get_bufcount(droq->buffer_size, (u32)info->length); in octeon_droq_dispatch_pkt() 579 buf_cnt = octeon_droq_get_bufcount(droq->buffer_size, in octeon_droq_drop_packets() 637 if (info->length <= droq->buffer_size) { in octeon_droq_fast_process_packets() 661 cpy_len = ((pkt_len + droq->buffer_size) in octeon_droq_fast_process_packets() 664 droq->buffer_size; in octeon_droq_fast_process_packets()
|
/drivers/media/usb/cx231xx/ |
D | cx231xx-vbi.c | 76 u32 bytes_parsed = 0, buffer_size = 0; in cx231xx_isoc_vbi_copy() local 93 buffer_size = urb->actual_length; in cx231xx_isoc_vbi_copy() 95 if (buffer_size > 0) { in cx231xx_isoc_vbi_copy() 118 buffer_size - bytes_parsed); /* buffer size */ in cx231xx_isoc_vbi_copy() 124 while (bytes_parsed < buffer_size) { in cx231xx_isoc_vbi_copy() 129 buffer_size - bytes_parsed, /* buffer size */ in cx231xx_isoc_vbi_copy() 135 if (sav_eav && (bytes_parsed < buffer_size)) { in cx231xx_isoc_vbi_copy() 139 buffer_size-bytes_parsed);/*buf size*/ in cx231xx_isoc_vbi_copy() 145 memcpy(dma_q->partial_buf, p_buffer + buffer_size - 4, 4); in cx231xx_isoc_vbi_copy() 443 u8 sav_eav, u8 *p_buffer, u32 buffer_size) in cx231xx_get_vbi_line() argument [all …]
|
D | cx231xx-video.c | 267 u32 bytes_parsed = 0, buffer_size = 0; in cx231xx_isoc_copy() local 303 buffer_size = urb->iso_frame_desc[i].actual_length; in cx231xx_isoc_copy() 325 buffer_size - bytes_parsed);/* buf size */ in cx231xx_isoc_copy() 331 while (bytes_parsed < buffer_size) { in cx231xx_isoc_copy() 336 buffer_size - bytes_parsed, /* buf size */ in cx231xx_isoc_copy() 342 if (sav_eav && (bytes_parsed < buffer_size)) { in cx231xx_isoc_copy() 346 buffer_size - bytes_parsed);/*buf size*/ in cx231xx_isoc_copy() 352 memcpy(dma_q->partial_buf, p_buffer + buffer_size - 4, 4); in cx231xx_isoc_copy() 363 u32 bytes_parsed = 0, buffer_size = 0; in cx231xx_bulk_copy() local 382 buffer_size = urb->actual_length; in cx231xx_bulk_copy() [all …]
|
D | cx231xx-audio.c | 127 if (oldptr + length >= runtime->buffer_size) { in cx231xx_audio_isocirq() 130 cnt = runtime->buffer_size - oldptr; in cx231xx_audio_isocirq() 144 runtime->buffer_size) in cx231xx_audio_isocirq() 146 runtime->buffer_size; in cx231xx_audio_isocirq() 214 if (oldptr + length >= runtime->buffer_size) { in cx231xx_audio_bulkirq() 217 cnt = runtime->buffer_size - oldptr; in cx231xx_audio_bulkirq() 231 runtime->buffer_size) in cx231xx_audio_bulkirq() 233 runtime->buffer_size; in cx231xx_audio_bulkirq()
|
/drivers/gpu/drm/etnaviv/ |
D | etnaviv_hwdb.c | 24 .buffer_size = 0, 55 .buffer_size = 0, 86 .buffer_size = 0, 117 .buffer_size = 0,
|
/drivers/staging/media/deprecated/saa7146/ttpci/ |
D | budget-core.c | 67 memset(budget->grabbing, 0x00, budget->buffer_size); in start_ts_capture() 124 if (budget->buffer_size > budget->buffer_height * budget->buffer_width) { in start_ts_capture() 131 saa7146_write(dev, PROT_ADDR3, budget->buffer_size); in start_ts_capture() 189 if (newdma >= budget->buffer_size) in vpeirq() 201 count = budget->buffer_size - olddma; in vpeirq() 460 budget->buffer_size = 2 * budget->buffer_height * budget->buffer_width; in ttpci_budget_init() 463 budget->buffer_size = budget->buffer_height * budget->buffer_width; in ttpci_budget_init() 465 budget->buffer_warning_threshold = budget->buffer_size * 80/100; in ttpci_budget_init() 471 budget->buffer_size > budget->buffer_width * budget->buffer_height ? "odd/even" : "single", in ttpci_budget_init() 473 printk("%s: dma buffer size %u\n", budget->dev->name, budget->buffer_size); in ttpci_budget_init() [all …]
|
/drivers/acpi/acpica/ |
D | utobject.c | 201 union acpi_operand_object *acpi_ut_create_buffer_object(acpi_size buffer_size) in acpi_ut_create_buffer_object() argument 206 ACPI_FUNCTION_TRACE_U32(ut_create_buffer_object, buffer_size); in acpi_ut_create_buffer_object() 217 if (buffer_size > 0) { in acpi_ut_create_buffer_object() 221 buffer = ACPI_ALLOCATE_ZEROED(buffer_size); in acpi_ut_create_buffer_object() 224 (u32)buffer_size)); in acpi_ut_create_buffer_object() 235 buffer_desc->buffer.length = (u32) buffer_size; in acpi_ut_create_buffer_object()
|
D | rscalc.c | 447 u32 buffer_size; in acpi_rs_get_list_length() local 666 buffer_size = in acpi_rs_get_list_length() 671 buffer_size = in acpi_rs_get_list_length() 676 buffer_size = (u32)ACPI_ROUND_UP_TO_NATIVE_WORD(buffer_size); in acpi_rs_get_list_length() 677 *size_needed += buffer_size; in acpi_rs_get_list_length()
|
/drivers/gpio/ |
D | gpio-pisosr.c | 31 size_t buffer_size; member 49 ret = spi_read(gpio->spi, gpio->buffer, gpio->buffer_size); in pisosr_gpio_refresh() 137 gpio->buffer_size = DIV_ROUND_UP(gpio->chip.ngpio, 8); in pisosr_gpio_probe() 138 gpio->buffer = devm_kzalloc(dev, gpio->buffer_size, GFP_KERNEL); in pisosr_gpio_probe()
|
/drivers/usb/serial/ |
D | ir-usb.c | 42 static int buffer_size; variable 463 if (buffer_size) { in ir_init() 464 ir_device.bulk_in_size = buffer_size; in ir_init() 465 ir_device.bulk_out_size = buffer_size; in ir_init() 486 module_param(buffer_size, int, 0); 487 MODULE_PARM_DESC(buffer_size, "Size of the transfer buffers");
|
D | usb-serial.c | 849 int buffer_size; in setup_port_bulk_in() local 852 buffer_size = max_t(int, type->bulk_in_size, usb_endpoint_maxp(epd)); in setup_port_bulk_in() 853 port->bulk_in_size = buffer_size; in setup_port_bulk_in() 861 port->bulk_in_buffers[i] = kmalloc(buffer_size, GFP_KERNEL); in setup_port_bulk_in() 866 port->bulk_in_buffers[i], buffer_size, in setup_port_bulk_in() 881 int buffer_size; in setup_port_bulk_out() local 887 buffer_size = type->bulk_out_size; in setup_port_bulk_out() 889 buffer_size = usb_endpoint_maxp(epd); in setup_port_bulk_out() 890 port->bulk_out_size = buffer_size; in setup_port_bulk_out() 898 port->bulk_out_buffers[i] = kmalloc(buffer_size, GFP_KERNEL); in setup_port_bulk_out() [all …]
|
/drivers/net/ipa/ |
D | ipa_endpoint.c | 105 u32 buffer_size; in ipa_endpoint_data_valid_one() local 123 buffer_size = rx_config->buffer_size; in ipa_endpoint_data_valid_one() 125 if (buffer_size < limit) { in ipa_endpoint_data_valid_one() 127 data->endpoint_id, buffer_size, limit); in ipa_endpoint_data_valid_one() 163 aggr_size = ipa_aggr_size_kb(buffer_size - NET_SKB_PAD, in ipa_endpoint_data_valid_one() 851 u32 buffer_size; in ipa_endpoint_init_aggr() local 858 buffer_size = rx_config->buffer_size; in ipa_endpoint_init_aggr() 859 limit = ipa_aggr_size_kb(buffer_size - NET_SKB_PAD, in ipa_endpoint_init_aggr() 1156 u32 buffer_size; in ipa_endpoint_replenish_one() local 1161 buffer_size = endpoint->config.rx.buffer_size; in ipa_endpoint_replenish_one() [all …]
|
/drivers/net/wireless/microchip/wilc1000/ |
D | wlan.c | 254 u32 buffer_size) in wilc_wlan_txq_add_cfg_pkt() argument 274 tqe->buffer_size = buffer_size; in wilc_wlan_txq_add_cfg_pkt() 415 u32 buffer_size, in wilc_wlan_txq_add_net_pkt() argument 443 tqe->buffer_size = buffer_size; in wilc_wlan_txq_add_net_pkt() 470 u32 buffer_size, in wilc_wlan_txq_add_mgmt_pkt() argument 496 tqe->buffer_size = buffer_size; in wilc_wlan_txq_add_mgmt_pkt() 765 vmm_sz += tqe_q[ac]->buffer_size; in wilc_wlan_handle_txq() 897 FIELD_PREP(WILC_VMM_HDR_PKT_SIZE, tqe->buffer_size) | in wilc_wlan_handle_txq() 916 tqe->buffer, tqe->buffer_size); in wilc_wlan_handle_txq() 1009 size = rqe->buffer_size; in wilc_wlan_handle_rxq() [all …]
|
D | wlan.h | 330 int buffer_size; member 351 int buffer_size; member 407 u32 buffer_size); 412 u32 buffer_size, 418 u32 buffer_size, int commit, u32 drv_handler); 422 u32 buffer_size, void (*func)(void *, int));
|
/drivers/hwmon/ |
D | aquacomputer_d5next.c | 279 int buffer_size; member 356 memset(priv->buffer, 0x00, priv->buffer_size); in aqc_get_ctrl_data() 357 ret = hid_hw_raw_request(priv->hdev, CTRL_REPORT_ID, priv->buffer, priv->buffer_size, in aqc_get_ctrl_data() 383 ret = hid_hw_raw_request(priv->hdev, CTRL_REPORT_ID, priv->buffer, priv->buffer_size, in aqc_send_ctrl_data() 886 priv->buffer_size = D5NEXT_CTRL_REPORT_SIZE; in aqc_probe() 927 priv->buffer_size = OCTO_CTRL_REPORT_SIZE; in aqc_probe() 948 priv->buffer_size = QUADRO_CTRL_REPORT_SIZE; in aqc_probe() 976 if (priv->buffer_size != 0) { in aqc_probe() 978 priv->checksum_length = priv->buffer_size - 3; in aqc_probe() 979 priv->checksum_offset = priv->buffer_size - 2; in aqc_probe() [all …]
|
/drivers/most/ |
D | most_snd.c | 183 unsigned int const buffer_size = runtime->buffer_size; in copy_data() local 191 fr0 = min(buffer_size - channel->buffer_pos, frames); in copy_data() 205 if (channel->buffer_pos >= buffer_size) in copy_data() 206 channel->buffer_pos -= buffer_size; in copy_data() 474 pcm_hw->buffer_bytes_max = cfg->num_buffers * cfg->buffer_size; in audio_set_hw_params() 475 pcm_hw->period_bytes_min = cfg->buffer_size; in audio_set_hw_params() 476 pcm_hw->period_bytes_max = cfg->buffer_size; in audio_set_hw_params()
|
/drivers/staging/media/deprecated/tm6000/ |
D | tm6000-alsa.c | 204 (unsigned int)runtime->buffer_size, stride); in tm6000_fillbuf() 206 if (buf_pos + length >= runtime->buffer_size) { in tm6000_fillbuf() 207 unsigned int cnt = runtime->buffer_size - buf_pos; in tm6000_fillbuf() 218 if (chip->buf_pos >= runtime->buffer_size) in tm6000_fillbuf() 219 chip->buf_pos -= runtime->buffer_size; in tm6000_fillbuf()
|
/drivers/media/pci/cx18/ |
D | cx18-alsa-pcm.c | 101 if (oldptr + length >= runtime->buffer_size) { in cx18_alsa_announce_pcm_data() 103 runtime->buffer_size - oldptr; in cx18_alsa_announce_pcm_data() 116 runtime->buffer_size) in cx18_alsa_announce_pcm_data() 118 runtime->buffer_size; in cx18_alsa_announce_pcm_data()
|
/drivers/staging/media/deprecated/cpia2/ |
D | cpia2_v4l.c | 37 static int buffer_size = 68 * 1024; variable 38 module_param(buffer_size, int, 0); 39 MODULE_PARM_DESC(buffer_size, "Size for each frame buffer in bytes (default 68k)"); 987 cam->frame_size = buffer_size; in reset_camera_struct_v4l() 1163 if (buffer_size < PAGE_SIZE) { in check_parameters() 1164 buffer_size = PAGE_SIZE; in check_parameters() 1165 LOG("buffer_size too small, setting to %d\n", buffer_size); in check_parameters() 1166 } else if (buffer_size > 1024 * 1024) { in check_parameters() 1168 buffer_size = 1024 * 1024; in check_parameters() 1170 buffer_size); in check_parameters() [all …]
|
/drivers/gpu/drm/i915/gt/uc/ |
D | intel_guc_log.c | 377 unsigned int buffer_size, read_offset, write_offset, bytes_to_copy, full_cnt; in _guc_log_copy_debuglogs_for_relay() local 420 buffer_size = intel_guc_get_log_buffer_size(log, type); in _guc_log_copy_debuglogs_for_relay() 451 write_offset = buffer_size; in _guc_log_copy_debuglogs_for_relay() 452 } else if (unlikely((read_offset > buffer_size) || in _guc_log_copy_debuglogs_for_relay() 453 (write_offset > buffer_size))) { in _guc_log_copy_debuglogs_for_relay() 457 write_offset = buffer_size; in _guc_log_copy_debuglogs_for_relay() 463 bytes_to_copy = buffer_size - read_offset; in _guc_log_copy_debuglogs_for_relay() 470 src_data += buffer_size; in _guc_log_copy_debuglogs_for_relay() 471 dst_data += buffer_size; in _guc_log_copy_debuglogs_for_relay()
|