Home
last modified time | relevance | path

Searched refs:buffer (Results 101 - 125 of 5070) sorted by relevance

12345678910>>...203

/kernel/linux/linux-6.6/block/partitions/
H A Dldm.c609 * @buffer: Block of data being worked on
618 * Return: -1 Error, the calculated offset exceeded the size of the buffer
619 * n OK, a range-checked offset into buffer
621 static int ldm_relative(const u8 *buffer, int buflen, int base, int offset) in ldm_relative() argument
625 if (!buffer || offset < 0 || base > buflen) { in ldm_relative()
626 if (!buffer) in ldm_relative()
627 ldm_error("!buffer"); in ldm_relative()
634 if (base + buffer[base] >= buflen) { in ldm_relative()
635 ldm_error("base (%d) + buffer[base] (%d) >= buflen (%d)", base, in ldm_relative()
636 buffer[bas in ldm_relative()
692 ldm_get_vstr(const u8 *block, u8 *buffer, int buflen) ldm_get_vstr() argument
720 ldm_parse_cmp3(const u8 *buffer, int buflen, struct vblk *vb) ldm_parse_cmp3() argument
770 ldm_parse_dgr3(const u8 *buffer, int buflen, struct vblk *vb) ldm_parse_dgr3() argument
811 ldm_parse_dgr4(const u8 *buffer, int buflen, struct vblk *vb) ldm_parse_dgr4() argument
849 ldm_parse_dsk3(const u8 *buffer, int buflen, struct vblk *vb) ldm_parse_dsk3() argument
888 ldm_parse_dsk4(const u8 *buffer, int buflen, struct vblk *vb) ldm_parse_dsk4() argument
921 ldm_parse_prt3(const u8 *buffer, int buflen, struct vblk *vb) ldm_parse_prt3() argument
995 ldm_parse_vol5(const u8 *buffer, int buflen, struct vblk *vb) ldm_parse_vol5() argument
[all...]
/kernel/linux/linux-6.6/drivers/iio/accel/
H A Ddmard10.c42 /* Offsets into the buffer read in dmard10_read_raw() */
76 unsigned char buffer[7]; in dmard10_reset() local
89 buffer[0] = DMARD10_REG_ACTR; in dmard10_reset()
90 buffer[1] = DMARD10_MODE_STANDBY; in dmard10_reset()
91 buffer[2] = DMARD10_MODE_READ_OTP; in dmard10_reset()
92 buffer[3] = DMARD10_MODE_STANDBY; in dmard10_reset()
93 buffer[4] = DMARD10_MODE_RESET_DATA_PATH; in dmard10_reset()
94 buffer[5] = DMARD10_MODE_STANDBY; in dmard10_reset()
95 ret = i2c_master_send(client, buffer, 6); in dmard10_reset()
106 buffer[ in dmard10_reset()
129 unsigned char buffer[3]; dmard10_shutdown() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/
H A Dnouveau_svm.c70 } buffer[1]; member
457 struct nouveau_svm_fault_buffer *buffer, u32 offset) in nouveau_svm_fault_cache()
459 struct nvif_object *memory = &buffer->object; in nouveau_svm_fault_cache()
480 if (!buffer->fault[buffer->fault_nr]) { in nouveau_svm_fault_cache()
486 buffer->fault[buffer->fault_nr] = fault; in nouveau_svm_fault_cache()
489 fault = buffer->fault[buffer->fault_nr++]; in nouveau_svm_fault_cache()
718 struct nouveau_svm_fault_buffer *buffer in nouveau_svm_fault() local
456 nouveau_svm_fault_cache(struct nouveau_svm *svm, struct nouveau_svm_fault_buffer *buffer, u32 offset) nouveau_svm_fault_cache() argument
888 struct nouveau_svm_fault_buffer *buffer = container_of(event, typeof(*buffer), notify); nouveau_svm_event() local
945 struct nouveau_svm_fault_buffer *buffer = &svm->buffer[id]; nouveau_svm_fault_buffer_fini() local
954 struct nouveau_svm_fault_buffer *buffer = &svm->buffer[id]; nouveau_svm_fault_buffer_init() local
967 struct nouveau_svm_fault_buffer *buffer = &svm->buffer[id]; nouveau_svm_fault_buffer_dtor() local
988 struct nouveau_svm_fault_buffer *buffer = &svm->buffer[id]; nouveau_svm_fault_buffer_ctor() local
[all...]
/kernel/linux/linux-5.10/fs/xfs/libxfs/
H A Dxfs_cksum.h8 * Calculate the intermediate checksum for a buffer that has the CRC field
10 * cksum_offset parameter. We do not modify the buffer during verification,
14 xfs_start_cksum_safe(char *buffer, size_t length, unsigned long cksum_offset) in xfs_start_cksum_safe() argument
20 crc = crc32c(XFS_CRC_SEED, buffer, cksum_offset); in xfs_start_cksum_safe()
26 return crc32c(crc, &buffer[cksum_offset + sizeof(__be32)], in xfs_start_cksum_safe()
31 * Fast CRC method where the buffer is modified. Callers must have exclusive
32 * access to the buffer while the calculation takes place.
35 xfs_start_cksum_update(char *buffer, size_t length, unsigned long cksum_offset) in xfs_start_cksum_update() argument
38 *(__le32 *)(buffer + cksum_offset) = 0; in xfs_start_cksum_update()
40 /* single pass CRC calculation for the entire buffer */ in xfs_start_cksum_update()
64 xfs_update_cksum(char *buffer, size_t length, unsigned long cksum_offset) xfs_update_cksum() argument
75 xfs_verify_cksum(char *buffer, size_t length, unsigned long cksum_offset) xfs_verify_cksum() argument
[all...]
/kernel/linux/linux-6.6/fs/xfs/libxfs/
H A Dxfs_cksum.h8 * Calculate the intermediate checksum for a buffer that has the CRC field
10 * cksum_offset parameter. We do not modify the buffer during verification,
14 xfs_start_cksum_safe(char *buffer, size_t length, unsigned long cksum_offset) in xfs_start_cksum_safe() argument
20 crc = crc32c(XFS_CRC_SEED, buffer, cksum_offset); in xfs_start_cksum_safe()
26 return crc32c(crc, &buffer[cksum_offset + sizeof(__be32)], in xfs_start_cksum_safe()
31 * Fast CRC method where the buffer is modified. Callers must have exclusive
32 * access to the buffer while the calculation takes place.
35 xfs_start_cksum_update(char *buffer, size_t length, unsigned long cksum_offset) in xfs_start_cksum_update() argument
38 *(__le32 *)(buffer + cksum_offset) = 0; in xfs_start_cksum_update()
40 /* single pass CRC calculation for the entire buffer */ in xfs_start_cksum_update()
64 xfs_update_cksum(char *buffer, size_t length, unsigned long cksum_offset) xfs_update_cksum() argument
75 xfs_verify_cksum(char *buffer, size_t length, unsigned long cksum_offset) xfs_verify_cksum() argument
[all...]
/kernel/linux/linux-5.10/drivers/acpi/acpica/
H A Dutbuffer.c20 * PARAMETERS: buffer - Buffer to dump
27 * base_offset - Beginning buffer offset (display only)
31 * DESCRIPTION: Generic dump buffer in both hex and ascii.
34 void acpi_ut_dump_buffer(u8 *buffer, u32 count, u32 display, u32 base_offset) in acpi_ut_dump_buffer() argument
43 if (!buffer) { in acpi_ut_dump_buffer()
52 /* Nasty little dump buffer routine! */ in acpi_ut_dump_buffer()
79 buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer()
85 &buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer()
92 &buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer()
99 &buffer[(acpi_siz in acpi_ut_dump_buffer()
170 acpi_ut_debug_dump_buffer(u8 *buffer, u32 count, u32 display, u32 component_id) acpi_ut_debug_dump_buffer() argument
205 acpi_ut_dump_buffer_to_file(ACPI_FILE file, u8 *buffer, u32 count, u32 display, u32 base_offset) acpi_ut_dump_buffer_to_file() argument
[all...]
H A Dexconcat.c56 char *buffer; in acpi_ex_do_concatenate() local
190 /* Need enough buffer space for two integers */ in acpi_ex_do_concatenate()
200 buffer = (char *)return_desc->buffer.pointer; in acpi_ex_do_concatenate()
204 memcpy(buffer, &operand0->integer.value, in acpi_ex_do_concatenate()
209 memcpy(buffer + acpi_gbl_integer_byte_width, in acpi_ex_do_concatenate()
228 buffer = return_desc->string.pointer; in acpi_ex_do_concatenate()
232 strcpy(buffer, local_operand0->string.pointer); in acpi_ex_do_concatenate()
233 strcat(buffer, local_operand1->string.pointer); in acpi_ex_do_concatenate()
241 operand0->buffer in acpi_ex_do_concatenate()
[all...]
H A Dutalloc.c186 char buffer[7]; in acpi_ut_delete_caches() local
189 strcpy(buffer, "MEMORY"); in acpi_ut_delete_caches()
190 (void)acpi_db_display_statistics(buffer); in acpi_ut_delete_caches()
242 * PARAMETERS: buffer - Buffer descriptor to be validated
250 acpi_status acpi_ut_validate_buffer(struct acpi_buffer *buffer) in acpi_ut_validate_buffer() argument
255 if (!buffer) { in acpi_ut_validate_buffer()
261 if ((buffer->length == ACPI_NO_BUFFER) || in acpi_ut_validate_buffer()
262 (buffer->length == ACPI_ALLOCATE_BUFFER) || in acpi_ut_validate_buffer()
263 (buffer->length == ACPI_ALLOCATE_LOCAL_BUFFER)) { in acpi_ut_validate_buffer()
267 /* Length is valid, the buffer pointe in acpi_ut_validate_buffer()
291 acpi_ut_initialize_buffer(struct acpi_buffer *buffer, acpi_size required_length) acpi_ut_initialize_buffer() argument
[all...]
H A Dutpredef.c101 * PARAMETERS: buffer - Where the formatted string is returned
110 void acpi_ut_get_expected_return_types(char *buffer, u32 expected_btypes) in acpi_ut_get_expected_return_types() argument
117 strcpy(buffer, "NONE"); in acpi_ut_get_expected_return_types()
122 buffer[0] = 0; in acpi_ut_get_expected_return_types()
130 strcat(buffer, &ut_rtype_names[i][j]); in acpi_ut_get_expected_return_types()
148 static u32 acpi_ut_get_argument_types(char *buffer, u16 argument_types);
218 * PARAMETERS: buffer - Scratch buffer for this function
231 acpi_ut_display_predefined_method(char *buffer, in acpi_ut_display_predefined_method() argument
238 * Get the argument count and the string buffer in acpi_ut_display_predefined_method()
290 acpi_ut_get_argument_types(char *buffer, u16 argument_types) acpi_ut_get_argument_types() argument
342 acpi_ut_get_resource_bit_width(char *buffer, u16 types) acpi_ut_get_resource_bit_width() argument
[all...]
/kernel/linux/linux-5.10/drivers/usb/storage/
H A Doption_ms.c37 char *buffer; in option_rezero() local
42 buffer = kzalloc(RESPONSE_LEN, GFP_KERNEL); in option_rezero()
43 if (buffer == NULL) in option_rezero()
46 memcpy(buffer, rezero_msg, sizeof(rezero_msg)); in option_rezero()
49 buffer, sizeof(rezero_msg), NULL); in option_rezero()
61 buffer, RESPONSE_LEN, NULL); in option_rezero()
66 buffer, 13, NULL); in option_rezero()
71 kfree(buffer); in option_rezero()
83 char *buffer; in option_inquiry() local
88 buffer in option_inquiry()
[all...]
/kernel/linux/linux-6.6/drivers/acpi/acpica/
H A Dutbuffer.c20 * PARAMETERS: buffer - Buffer to dump
27 * base_offset - Beginning buffer offset (display only)
31 * DESCRIPTION: Generic dump buffer in both hex and ascii.
34 void acpi_ut_dump_buffer(u8 *buffer, u32 count, u32 display, u32 base_offset) in acpi_ut_dump_buffer() argument
43 if (!buffer) { in acpi_ut_dump_buffer()
52 /* Nasty little dump buffer routine! */ in acpi_ut_dump_buffer()
79 buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer()
85 &buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer()
92 &buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer()
99 &buffer[(acpi_siz in acpi_ut_dump_buffer()
170 acpi_ut_debug_dump_buffer(u8 *buffer, u32 count, u32 display, u32 component_id) acpi_ut_debug_dump_buffer() argument
205 acpi_ut_dump_buffer_to_file(ACPI_FILE file, u8 *buffer, u32 count, u32 display, u32 base_offset) acpi_ut_dump_buffer_to_file() argument
[all...]
H A Dexconcat.c56 char *buffer; in acpi_ex_do_concatenate() local
190 /* Need enough buffer space for two integers */ in acpi_ex_do_concatenate()
200 buffer = (char *)return_desc->buffer.pointer; in acpi_ex_do_concatenate()
204 memcpy(buffer, &operand0->integer.value, in acpi_ex_do_concatenate()
209 memcpy(buffer + acpi_gbl_integer_byte_width, in acpi_ex_do_concatenate()
228 buffer = return_desc->string.pointer; in acpi_ex_do_concatenate()
232 strcpy(buffer, local_operand0->string.pointer); in acpi_ex_do_concatenate()
233 strcat(buffer, local_operand1->string.pointer); in acpi_ex_do_concatenate()
241 operand0->buffer in acpi_ex_do_concatenate()
[all...]
H A Dutalloc.c186 char buffer[7]; in acpi_ut_delete_caches() local
189 strcpy(buffer, "MEMORY"); in acpi_ut_delete_caches()
190 (void)acpi_db_display_statistics(buffer); in acpi_ut_delete_caches()
242 * PARAMETERS: buffer - Buffer descriptor to be validated
250 acpi_status acpi_ut_validate_buffer(struct acpi_buffer *buffer) in acpi_ut_validate_buffer() argument
255 if (!buffer) { in acpi_ut_validate_buffer()
261 if ((buffer->length == ACPI_NO_BUFFER) || in acpi_ut_validate_buffer()
262 (buffer->length == ACPI_ALLOCATE_BUFFER) || in acpi_ut_validate_buffer()
263 (buffer->length == ACPI_ALLOCATE_LOCAL_BUFFER)) { in acpi_ut_validate_buffer()
267 /* Length is valid, the buffer pointe in acpi_ut_validate_buffer()
291 acpi_ut_initialize_buffer(struct acpi_buffer *buffer, acpi_size required_length) acpi_ut_initialize_buffer() argument
[all...]
/kernel/linux/linux-6.6/drivers/usb/storage/
H A Doption_ms.c37 char *buffer; in option_rezero() local
42 buffer = kzalloc(RESPONSE_LEN, GFP_KERNEL); in option_rezero()
43 if (buffer == NULL) in option_rezero()
46 memcpy(buffer, rezero_msg, sizeof(rezero_msg)); in option_rezero()
49 buffer, sizeof(rezero_msg), NULL); in option_rezero()
61 buffer, RESPONSE_LEN, NULL); in option_rezero()
66 buffer, 13, NULL); in option_rezero()
71 kfree(buffer); in option_rezero()
83 char *buffer; in option_inquiry() local
88 buffer in option_inquiry()
[all...]
/kernel/linux/linux-5.10/kernel/
H A Dsysctl-test.c36 * proc_dointvec expects a buffer in user space, so we allocate one. We in sysctl_test_api_dointvec_null_tbl_data()
39 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_null_tbl_data() local
50 KUNIT_PROC_READ, buffer, &len, in sysctl_test_api_dointvec_null_tbl_data()
59 KUNIT_PROC_WRITE, buffer, &len, in sysctl_test_api_dointvec_null_tbl_data()
85 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_table_maxlen_unset() local
91 * As before, we don't care what buffer length is because proc_dointvec in sysctl_test_api_dointvec_table_maxlen_unset()
92 * cannot do anything because its internal .data buffer has zero length. in sysctl_test_api_dointvec_table_maxlen_unset()
96 KUNIT_PROC_READ, buffer, &len, in sysctl_test_api_dointvec_table_maxlen_unset()
105 KUNIT_PROC_WRITE, buffer, &len, in sysctl_test_api_dointvec_table_maxlen_unset()
112 * it using a buffer o
128 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), sysctl_test_api_dointvec_table_len_is_zero() local
162 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), sysctl_test_api_dointvec_table_read_but_position_set() local
199 char *buffer = kunit_kzalloc(test, len, GFP_USER); sysctl_test_dointvec_read_happy_single_positive() local
230 char *buffer = kunit_kzalloc(test, len, GFP_USER); sysctl_test_dointvec_read_happy_single_negative() local
260 char *buffer = kunit_kzalloc(test, len, GFP_USER); sysctl_test_dointvec_write_happy_single_positive() local
290 char *buffer = kunit_kzalloc(test, len, GFP_USER); sysctl_test_dointvec_write_happy_single_negative() local
321 char *buffer = kunit_kzalloc(test, max_len, GFP_USER); sysctl_test_api_dointvec_write_single_less_int_min() local
359 char *buffer = kunit_kzalloc(test, max_len, GFP_USER); sysctl_test_api_dointvec_write_single_greater_int_max() local
[all...]
/kernel/linux/linux-6.6/kernel/
H A Dsysctl-test.c33 * proc_dointvec expects a buffer in user space, so we allocate one. We in sysctl_test_api_dointvec_null_tbl_data()
36 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_null_tbl_data() local
47 KUNIT_PROC_READ, buffer, &len, in sysctl_test_api_dointvec_null_tbl_data()
56 KUNIT_PROC_WRITE, buffer, &len, in sysctl_test_api_dointvec_null_tbl_data()
82 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_table_maxlen_unset() local
88 * As before, we don't care what buffer length is because proc_dointvec in sysctl_test_api_dointvec_table_maxlen_unset()
89 * cannot do anything because its internal .data buffer has zero length. in sysctl_test_api_dointvec_table_maxlen_unset()
93 KUNIT_PROC_READ, buffer, &len, in sysctl_test_api_dointvec_table_maxlen_unset()
102 KUNIT_PROC_WRITE, buffer, &len, in sysctl_test_api_dointvec_table_maxlen_unset()
109 * it using a buffer o
125 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), sysctl_test_api_dointvec_table_len_is_zero() local
159 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), sysctl_test_api_dointvec_table_read_but_position_set() local
196 char *buffer = kunit_kzalloc(test, len, GFP_USER); sysctl_test_dointvec_read_happy_single_positive() local
227 char *buffer = kunit_kzalloc(test, len, GFP_USER); sysctl_test_dointvec_read_happy_single_negative() local
257 char *buffer = kunit_kzalloc(test, len, GFP_USER); sysctl_test_dointvec_write_happy_single_positive() local
287 char *buffer = kunit_kzalloc(test, len, GFP_USER); sysctl_test_dointvec_write_happy_single_negative() local
318 char *buffer = kunit_kzalloc(test, max_len, GFP_USER); sysctl_test_api_dointvec_write_single_less_int_min() local
356 char *buffer = kunit_kzalloc(test, max_len, GFP_USER); sysctl_test_api_dointvec_write_single_greater_int_max() local
[all...]
/kernel/linux/linux-5.10/drivers/iio/buffer/
H A Dindustrialio-buffer-cb.c2 /* The industrial I/O callback buffer
15 struct iio_buffer buffer; member
22 static struct iio_cb_buffer *buffer_to_cb_buffer(struct iio_buffer *buffer) in buffer_to_cb_buffer() argument
24 return container_of(buffer, struct iio_cb_buffer, buffer); in buffer_to_cb_buffer()
27 static int iio_buffer_cb_store_to(struct iio_buffer *buffer, const void *data) in iio_buffer_cb_store_to() argument
29 struct iio_cb_buffer *cb_buff = buffer_to_cb_buffer(buffer); in iio_buffer_cb_store_to()
33 static void iio_buffer_cb_release(struct iio_buffer *buffer) in iio_buffer_cb_release() argument
35 struct iio_cb_buffer *cb_buff = buffer_to_cb_buffer(buffer); in iio_buffer_cb_release()
37 bitmap_free(cb_buff->buffer in iio_buffer_cb_release()
[all...]
/kernel/linux/linux-6.6/drivers/iio/buffer/
H A Dindustrialio-buffer-cb.c2 /* The industrial I/O callback buffer
15 struct iio_buffer buffer; member
22 static struct iio_cb_buffer *buffer_to_cb_buffer(struct iio_buffer *buffer) in buffer_to_cb_buffer() argument
24 return container_of(buffer, struct iio_cb_buffer, buffer); in buffer_to_cb_buffer()
27 static int iio_buffer_cb_store_to(struct iio_buffer *buffer, const void *data) in iio_buffer_cb_store_to() argument
29 struct iio_cb_buffer *cb_buff = buffer_to_cb_buffer(buffer); in iio_buffer_cb_store_to()
33 static void iio_buffer_cb_release(struct iio_buffer *buffer) in iio_buffer_cb_release() argument
35 struct iio_cb_buffer *cb_buff = buffer_to_cb_buffer(buffer); in iio_buffer_cb_release()
37 bitmap_free(cb_buff->buffer in iio_buffer_cb_release()
[all...]
/kernel/linux/linux-5.10/drivers/staging/hilog/
H A Dhilog.c74 struct mutex mtx; /* lock to protect read/write buffer */
75 unsigned char *buffer; member
85 return hilog_dev.buffer + hilog_dev.hdr_off; in hilog_buffer_head()
108 static int hilog_read_ring_buff(unsigned char __user *buffer, size_t buf_len) in hilog_read_ring_buff() argument
114 retval = copy_to_user(buffer, hilog_buffer_head(), buf_len); in hilog_read_ring_buff()
118 retval = copy_to_user(buffer, hilog_buffer_head(), mem_len); in hilog_read_ring_buff()
122 retval = copy_to_user(buffer + buf_left, hilog_dev.buffer, in hilog_read_ring_buff()
128 static int hilog_read_ring_head_buffer(unsigned char *buffer, size_t buf_len) in hilog_read_ring_head_buffer() argument
133 memcpy(buffer, hilog_buffer_hea in hilog_read_ring_head_buffer()
208 hilog_write_ring_buffer(unsigned char __user *buffer, size_t buf_len) hilog_write_ring_buffer() argument
231 hilog_write_ring_head_buffer(unsigned char *buffer, size_t buf_len) hilog_write_ring_head_buffer() argument
304 hilog_write_internal(const char __user *buffer, size_t buf_len) hilog_write_internal() argument
[all...]
/kernel/linux/linux-6.6/drivers/staging/hilog/
H A Dhilog.c74 struct mutex mtx; /* lock to protect read/write buffer */
75 unsigned char *buffer; member
85 return hilog_dev.buffer + hilog_dev.hdr_off; in hilog_buffer_head()
108 static int hilog_read_ring_buff(unsigned char __user *buffer, size_t buf_len) in hilog_read_ring_buff() argument
114 retval = copy_to_user(buffer, hilog_buffer_head(), buf_len); in hilog_read_ring_buff()
118 retval = copy_to_user(buffer, hilog_buffer_head(), mem_len); in hilog_read_ring_buff()
122 retval = copy_to_user(buffer + buf_left, hilog_dev.buffer, in hilog_read_ring_buff()
128 static int hilog_read_ring_head_buffer(unsigned char *buffer, size_t buf_len) in hilog_read_ring_head_buffer() argument
133 memcpy(buffer, hilog_buffer_hea in hilog_read_ring_head_buffer()
208 hilog_write_ring_buffer(unsigned char __user *buffer, size_t buf_len) hilog_write_ring_buffer() argument
231 hilog_write_ring_head_buffer(unsigned char *buffer, size_t buf_len) hilog_write_ring_head_buffer() argument
303 hilog_write_internal(const char __user *buffer, size_t buf_len) hilog_write_internal() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-debugfs.c124 static ssize_t xgbe_common_read(char __user *buffer, size_t count, in xgbe_common_read() argument
142 len = simple_read_from_buffer(buffer, count, ppos, buf, strlen(buf)); in xgbe_common_read()
148 static ssize_t xgbe_common_write(const char __user *buffer, size_t count, in xgbe_common_write() argument
162 buffer, count); in xgbe_common_write()
174 static ssize_t xgmac_reg_addr_read(struct file *filp, char __user *buffer, in xgmac_reg_addr_read() argument
179 return xgbe_common_read(buffer, count, ppos, pdata->debugfs_xgmac_reg); in xgmac_reg_addr_read()
183 const char __user *buffer, in xgmac_reg_addr_write()
188 return xgbe_common_write(buffer, count, ppos, in xgmac_reg_addr_write()
192 static ssize_t xgmac_reg_value_read(struct file *filp, char __user *buffer, in xgmac_reg_value_read() argument
200 return xgbe_common_read(buffer, coun in xgmac_reg_value_read()
182 xgmac_reg_addr_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) xgmac_reg_addr_write() argument
203 xgmac_reg_value_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) xgmac_reg_value_write() argument
234 xpcs_mmd_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos) xpcs_mmd_read() argument
242 xpcs_mmd_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) xpcs_mmd_write() argument
251 xpcs_reg_addr_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos) xpcs_reg_addr_read() argument
259 xpcs_reg_addr_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) xpcs_reg_addr_write() argument
268 xpcs_reg_value_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos) xpcs_reg_value_read() argument
280 xpcs_reg_value_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) xpcs_reg_value_write() argument
319 xprop_reg_addr_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos) xprop_reg_addr_read() argument
327 xprop_reg_addr_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) xprop_reg_addr_write() argument
337 xprop_reg_value_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos) xprop_reg_value_read() argument
348 xprop_reg_value_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) xprop_reg_value_write() argument
379 xi2c_reg_addr_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos) xi2c_reg_addr_read() argument
387 xi2c_reg_addr_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) xi2c_reg_addr_write() argument
397 xi2c_reg_value_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos) xi2c_reg_value_read() argument
408 xi2c_reg_value_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) xi2c_reg_value_write() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-debugfs.c124 static ssize_t xgbe_common_read(char __user *buffer, size_t count, in xgbe_common_read() argument
142 len = simple_read_from_buffer(buffer, count, ppos, buf, strlen(buf)); in xgbe_common_read()
148 static ssize_t xgbe_common_write(const char __user *buffer, size_t count, in xgbe_common_write() argument
162 buffer, count); in xgbe_common_write()
174 static ssize_t xgmac_reg_addr_read(struct file *filp, char __user *buffer, in xgmac_reg_addr_read() argument
179 return xgbe_common_read(buffer, count, ppos, pdata->debugfs_xgmac_reg); in xgmac_reg_addr_read()
183 const char __user *buffer, in xgmac_reg_addr_write()
188 return xgbe_common_write(buffer, count, ppos, in xgmac_reg_addr_write()
192 static ssize_t xgmac_reg_value_read(struct file *filp, char __user *buffer, in xgmac_reg_value_read() argument
200 return xgbe_common_read(buffer, coun in xgmac_reg_value_read()
182 xgmac_reg_addr_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) xgmac_reg_addr_write() argument
203 xgmac_reg_value_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) xgmac_reg_value_write() argument
234 xpcs_mmd_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos) xpcs_mmd_read() argument
242 xpcs_mmd_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) xpcs_mmd_write() argument
251 xpcs_reg_addr_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos) xpcs_reg_addr_read() argument
259 xpcs_reg_addr_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) xpcs_reg_addr_write() argument
268 xpcs_reg_value_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos) xpcs_reg_value_read() argument
280 xpcs_reg_value_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) xpcs_reg_value_write() argument
319 xprop_reg_addr_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos) xprop_reg_addr_read() argument
327 xprop_reg_addr_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) xprop_reg_addr_write() argument
337 xprop_reg_value_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos) xprop_reg_value_read() argument
348 xprop_reg_value_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) xprop_reg_value_write() argument
379 xi2c_reg_addr_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos) xi2c_reg_addr_read() argument
387 xi2c_reg_addr_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) xi2c_reg_addr_write() argument
397 xi2c_reg_value_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos) xi2c_reg_value_read() argument
408 xi2c_reg_value_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) xi2c_reg_value_write() argument
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/pidfd/
H A Dpidfd_open_test.c47 static int char_left_gc(const char *buffer, size_t len) in char_left_gc() argument
52 if (buffer[i] == ' ' || in char_left_gc()
53 buffer[i] == '\t') in char_left_gc()
62 static int char_right_gc(const char *buffer, size_t len) in char_right_gc() argument
67 if (buffer[i] == ' ' || in char_right_gc()
68 buffer[i] == '\t' || in char_right_gc()
69 buffer[i] == '\n' || in char_right_gc()
70 buffer[i] == '\0') in char_right_gc()
79 static char *trim_whitespace_in_place(char *buffer) in trim_whitespace_in_place() argument
81 buffer in trim_whitespace_in_place()
[all...]
/kernel/linux/linux-5.10/drivers/scsi/dpt/
H A Dsys_info.h90 uSHORT netInsert(dptBuffer_S *buffer);
91 uSHORT netExtract(dptBuffer_S *buffer);
168 uSHORT netInsert(dptBuffer_S *buffer);
169 uSHORT netExtract(dptBuffer_S *buffer);
209 uSHORT netInsert(dptBuffer_S *buffer);
210 uSHORT netExtract(dptBuffer_S *buffer);
257 uSHORT netInsert(dptBuffer_S *buffer);
258 uSHORT netExtract(dptBuffer_S *buffer);
291 uSHORT netInsert(dptBuffer_S *buffer);
292 uSHORT netExtract(dptBuffer_S *buffer);
[all...]
/kernel/linux/linux-5.10/sound/isa/gus/
H A Dgus_dram.c18 char buffer[256], *pbuffer; in snd_gus_dram_poke() local
21 size1 = size > sizeof(buffer) ? sizeof(buffer) : size; in snd_gus_dram_poke()
22 if (copy_from_user(buffer, _buffer, size1)) in snd_gus_dram_poke()
28 outsb(GUSP(gus, DRAM), buffer, size1); in snd_gus_dram_poke() local
32 pbuffer = buffer; in snd_gus_dram_poke()
44 int snd_gus_dram_write(struct snd_gus_card *gus, char __user *buffer, in snd_gus_dram_write() argument
47 return snd_gus_dram_poke(gus, buffer, address, size); in snd_gus_dram_write()
56 char buffer[256], *pbuffer; in snd_gus_dram_peek() local
59 size1 = size > sizeof(buffer) in snd_gus_dram_peek()
64 insb(GUSP(gus, DRAM), buffer, size1); snd_gus_dram_peek() local
82 snd_gus_dram_read(struct snd_gus_card *gus, char __user *buffer, unsigned int address, unsigned int size, int rom) snd_gus_dram_read() argument
[all...]

Completed in 14 milliseconds

12345678910>>...203