/drivers/acpi/acpica/ |
H A D | exstorob.c | 60 * DESCRIPTION: Copy a buffer object to another buffer object. 68 u8 *buffer; local 78 /* We know that source_desc is a buffer by now */ 80 buffer = ACPI_CAST_PTR(u8, source_desc->buffer.pointer); 81 length = source_desc->buffer.length; 84 * If target is a buffer of length zero or is a static buffer, 85 * allocate a new buffer o 165 u8 *buffer; local [all...] |
H A D | exfield.c | 136 void *buffer; local 170 * This is an SMBus, GSBus or IPMI read. We must create a buffer to hold 189 * Add additional 2 bytes for the generic_serial_bus data buffer: 191 * Status; (Byte 0 of the data buffer) 192 * Length; (Byte 1 of the data buffer) 193 * Data[x-1]; (Bytes 2-x of the arbitrary length data buffer) 217 buffer.pointer), 224 * Allocate a buffer for the contents of the field. 243 buffer = buffer_desc->buffer 337 void *buffer; local [all...] |
H A D | exoparg3.c | 148 char *buffer = NULL; local 194 /* Always allocate a new buffer for the String */ 196 buffer = ACPI_ALLOCATE_ZEROED((acpi_size) length + 1); 197 if (!buffer) { 205 /* If the requested length is zero, don't allocate a buffer */ 209 /* Allocate a new buffer for the Buffer */ 211 buffer = ACPI_ALLOCATE_ZEROED(length); 212 if (!buffer) { 225 if (buffer) { 227 /* We have a buffer, cop [all...] |
H A D | nsdumpdv.c | 72 struct acpi_buffer buffer; local 82 buffer.length = ACPI_ALLOCATE_LOCAL_BUFFER; 83 status = acpi_get_object_info(obj_handle, &buffer); 85 info = buffer.pointer;
|
H A D | nsnames.c | 93 /* Put the name into the buffer */ 142 /* Calculate required buffer size based on depth below root */ 149 /* Allocate a buffer to be returned to caller */ 157 /* Build the path in the allocated buffer */ 218 * buffer - Where the pathname is returned 228 struct acpi_buffer * buffer) 241 /* Determine size required for the caller buffer */ 248 /* Validate/Allocate/Clear caller buffer */ 250 status = acpi_ut_initialize_buffer(buffer, required_size); 255 /* Build the path in the caller buffer */ 227 acpi_ns_handle_to_pathname(acpi_handle target_handle, struct acpi_buffer * buffer) argument [all...] |
H A D | utalloc.c | 181 char buffer[7]; local 184 ACPI_STRCPY(buffer, "MEMORY"); 185 (void)acpi_db_display_statistics(buffer); 226 * PARAMETERS: buffer - Buffer descriptor to be validated 234 acpi_status acpi_ut_validate_buffer(struct acpi_buffer * buffer) argument 239 if (!buffer) { 245 if ((buffer->length == ACPI_NO_BUFFER) || 246 (buffer->length == ACPI_ALLOCATE_BUFFER) || 247 (buffer->length == ACPI_ALLOCATE_LOCAL_BUFFER)) { 251 /* Length is valid, the buffer pointe 275 acpi_ut_initialize_buffer(struct acpi_buffer * buffer, acpi_size required_length) argument [all...] |
H A D | utbuffer.c | 54 * PARAMETERS: buffer - Buffer to dump 61 * base_offset - Beginning buffer offset (display only) 65 * DESCRIPTION: Generic dump buffer in both hex and ascii. 68 void acpi_ut_dump_buffer(u8 *buffer, u32 count, u32 display, u32 base_offset) argument 75 if (!buffer) { 84 /* Nasty little dump buffer routine! */ 109 buffer[(acpi_size) i + j]); 115 &buffer[(acpi_size) i + j]); 122 &buffer[(acpi_size) i + j]); 129 &buffer[(acpi_siz 190 acpi_ut_debug_dump_buffer(u8 *buffer, u32 count, u32 display, u32 component_id) argument 225 acpi_ut_dump_buffer_to_file(ACPI_FILE file, u8 *buffer, u32 count, u32 display, u32 base_offset) argument [all...] |
H A D | nsconvert.c | 90 /* Buffer-to-Integer conversion. Max buffer size is 64 bits. */ 92 if (original_object->buffer.length > 8) { 96 /* Extract each buffer byte to create the integer */ 98 for (i = 0; i < original_object->buffer.length; i++) { 100 ((u64)original_object->buffer. 169 * conversion, no transform performed on the buffer data. The best 171 * the battery is often (incorrectly) returned as buffer object(s). 174 while ((length < original_object->buffer.length) && 175 (original_object->buffer.pointer[length])) { 187 * Copy the raw buffer dat 390 u8 *buffer; local [all...] |
H A D | tbprint.c | 232 * PARAMETERS: buffer - Pointer to memory region to be checked 241 u8 acpi_tb_checksum(u8 *buffer, u32 length) argument 244 u8 *end = buffer + length; 246 while (buffer < end) { 247 sum = (u8)(sum + *(buffer++));
|
H A D | utxface.c | 141 * PARAMETERS: out_buffer - A buffer to receive the resources for the 168 /* Validate/Allocate/Clear caller buffer */ 178 * Populate the return buffer 501 * return_buffer - Where the decode buffer is returned 503 * RETURN: Status and the decoded _PLD buffer. User must deallocate 504 * the buffer via ACPI_FREE. 506 * DESCRIPTION: Decode the bit-packed buffer returned by the _PLD method into 515 u32 *buffer = ACPI_CAST_PTR(u32, in_buffer); local 531 ACPI_MOVE_32_TO_32(&dword, &buffer[0]); 538 ACPI_MOVE_32_TO_32(&dword, &buffer[ [all...] |
/drivers/char/hw_random/ |
H A D | ixp4xx-rng.c | 29 static int ixp4xx_rng_data_read(struct hwrng *rng, u32 *buffer) argument 33 *buffer = __raw_readl(rng_base);
|
H A D | pseries-rng.c | 30 u64 buffer[PLPAR_HCALL_BUFSIZE]; local 34 rc = plpar_hcall(H_RANDOM, (unsigned long *)buffer); 39 memcpy(data, buffer, size);
|
/drivers/iio/ |
H A D | industrialio-triggered-buffer.c | 14 #include <linux/iio/buffer.h> 25 * iio_triggered_buffer_setup() - Setup triggered buffer and pollfunc 34 * when setting up a triggered buffer. It will allocate the buffer and the 35 * pollfunc, as well as register the buffer with the IIO core. 49 struct iio_buffer *buffer; local 52 buffer = iio_kfifo_allocate(indio_dev); 53 if (!buffer) { 58 iio_device_attach_buffer(indio_dev, buffer); 72 /* Ring buffer function [all...] |
/drivers/input/ |
H A D | input-compat.c | 17 int input_event_from_user(const char __user *buffer, argument 23 if (copy_from_user(&compat_event, buffer, 34 if (copy_from_user(event, buffer, sizeof(struct input_event))) 41 int input_event_to_user(char __user *buffer, argument 53 if (copy_to_user(buffer, &compat_event, 58 if (copy_to_user(buffer, event, sizeof(struct input_event))) 65 int input_ff_effect_from_user(const char __user *buffer, size_t size, argument 81 if (copy_from_user(compat_effect, buffer, 93 if (copy_from_user(effect, buffer, sizeof(struct ff_effect))) 102 int input_event_from_user(const char __user *buffer, argument 111 input_event_to_user(char __user *buffer, const struct input_event *event) argument 120 input_ff_effect_from_user(const char __user *buffer, size_t size, struct ff_effect *effect) argument [all...] |
/drivers/media/common/siano/ |
H A D | smsendian.c | 28 void smsendian_handle_tx_message(void *buffer) argument 31 struct sms_msg_data *msg = (struct sms_msg_data *)buffer; 55 void smsendian_handle_rx_message(void *buffer) argument 58 struct sms_msg_data *msg = (struct sms_msg_data *)buffer;
|
/drivers/block/zram/ |
H A D | zcomp.h | 16 /* compression/decompression buffer */ 17 void *buffer; member in struct:zcomp_strm
|
/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_buf.c | 71 DRM_ERROR("failed to allocate buffer.\n"); 88 DRM_ERROR("failed to allocate buffer.\n"); 148 struct exynos_drm_gem_buf *buffer; local 152 buffer = kzalloc(sizeof(*buffer), GFP_KERNEL); 153 if (!buffer) 156 buffer->size = size; 157 return buffer; 161 struct exynos_drm_gem_buf *buffer) 163 kfree(buffer); 160 exynos_drm_fini_buf(struct drm_device *dev, struct exynos_drm_gem_buf *buffer) argument 181 exynos_drm_free_buf(struct drm_device *dev, unsigned int flags, struct exynos_drm_gem_buf *buffer) argument [all...] |
H A D | exynos_drm_gem.h | 23 * exynos drm gem buffer structure. 50 * exynos drm buffer structure. 55 * @buffer: a pointer to exynos_drm_gem_buffer object. 63 * @flags: indicate memory type to allocated buffer and cache attruibute. 66 * user can access the buffer through kms_bo.handle. 70 struct exynos_drm_gem_buf *buffer; member in struct:exynos_drm_gem_obj 78 /* destroy a buffer with gem object */ 85 /* create a new buffer with gem object */ 91 * request gem object creation and buffer allocation as the size 120 /* get buffer informatio [all...] |
/drivers/gpu/drm/radeon/ |
H A D | drm_buffer.h | 29 * Multipart buffer for coping data which is larger than the page size. 48 * Return the index of page that buffer is currently pointing at. 70 * Advance the buffer iterator number of bytes that is given. 78 * Allocate the drm buffer object. 86 * Copy the user data to the begin of the buffer and reset the processing 89 * user_data: A pointer the data that is copied to the buffer. 96 * Free the drm buffer object 101 * Read an object from buffer that may be split to multiple parts. If object 102 * is not split function just returns the pointer to object in buffer. But in 106 * The processing location of the buffer i 127 drm_buffer_pointer_to_dword(struct drm_buffer *buffer, int offset) argument 141 drm_buffer_pointer_to_byte(struct drm_buffer *buffer, int offset) argument [all...] |
/drivers/net/wireless/mwifiex/ |
H A D | 11h.c | 24 /* This function appends 11h info to a buffer while joining an 28 mwifiex_11h_process_infra_join(struct mwifiex_private *priv, u8 **buffer, argument 38 if (!buffer || !(*buffer)) 44 cap = (struct mwifiex_ie_types_pwr_capability *)*buffer; 49 *buffer += sizeof(*cap); 51 constraint = (struct mwifiex_ie_types_local_pwr_constraint *)*buffer; 56 *buffer += sizeof(*constraint); 58 ie_header = (struct mwifiex_ie_types_header *)*buffer; 61 *buffer 86 mwifiex_11h_process_join(struct mwifiex_private *priv, u8 **buffer, struct mwifiex_bssdescriptor *bss_desc) argument [all...] |
H A D | ethtool.c | 91 void *buffer) 93 u8 *p = buffer; 90 mwifiex_get_dump_data(struct net_device *dev, struct ethtool_dump *dump, void *buffer) argument
|
/drivers/staging/vt6656/ |
H A D | firmware.c | 48 void *buffer = NULL; local 62 buffer = kmalloc(FIRMWARE_CHUNK_SIZE, GFP_KERNEL); 63 if (!buffer) 68 memcpy(buffer, fw->data + ii, length); 75 buffer); 88 kfree(buffer);
|
/drivers/usb/misc/ |
H A D | rio500_usb.h | 35 void __user *buffer; member in struct:RioCommand
|
/drivers/usb/storage/ |
H A D | option_ms.c | 50 char *buffer; local 55 buffer = kzalloc(RESPONSE_LEN, GFP_KERNEL); 56 if (buffer == NULL) 59 memcpy(buffer, rezero_msg, sizeof(rezero_msg)); 62 buffer, sizeof(rezero_msg), NULL); 73 buffer, RESPONSE_LEN, NULL); 78 buffer, 13, NULL); 83 kfree(buffer); 95 char *buffer; local 100 buffer [all...] |
/drivers/isdn/hardware/eicon/ |
H A D | entity.h | 24 byte buffer[2048 + 512]; member in struct:_divas_um_idi_entity
|