/linux-4.1.27/fs/squashfs/ |
D | block.c | 46 u64 *cur_index, int *offset, int *length) in get_block_length() argument 56 *length = (unsigned char) bh->b_data[*offset]; in get_block_length() 61 *length |= (unsigned char) bh->b_data[0] << 8; in get_block_length() 64 *length = (unsigned char) bh->b_data[*offset] | in get_block_length() 90 int squashfs_read_data(struct super_block *sb, u64 index, int length, in squashfs_read_data() argument 99 bh = kcalloc(((output->length + msblk->devblksize - 1) in squashfs_read_data() 104 if (length) { in squashfs_read_data() 109 compressed = SQUASHFS_COMPRESSED_BLOCK(length); in squashfs_read_data() 110 length = SQUASHFS_COMPRESSED_SIZE_BLOCK(length); in squashfs_read_data() 112 *next_index = index + length; in squashfs_read_data() [all …]
|
D | cache.c | 66 struct squashfs_cache *cache, u64 block, int length) in squashfs_cache_get() argument 123 entry->length = squashfs_read_data(sb, block, length, in squashfs_cache_get() 128 if (entry->length < 0) in squashfs_cache_get() 129 entry->error = entry->length; in squashfs_cache_get() 307 int offset, int length) in squashfs_copy_data() argument 309 int remaining = length; in squashfs_copy_data() 311 if (length == 0) in squashfs_copy_data() 314 return min(length, entry->length - offset); in squashfs_copy_data() 316 while (offset < entry->length) { in squashfs_copy_data() 319 int bytes = min_t(int, entry->length - offset, in squashfs_copy_data() [all …]
|
D | dir.c | 56 int err, i, index, length = 0; in get_dir_index_using_offset() local 96 length = index; in get_dir_index_using_offset() 101 *next_offset = (length + *next_offset) % SQUASHFS_METADATA_SIZE; in get_dir_index_using_offset() 106 return length + 3; in get_dir_index_using_offset() 115 int offset = squashfs_i(inode)->offset, length, err; in squashfs_readdir() local 157 length = get_dir_index_using_offset(inode->i_sb, &block, &offset, in squashfs_readdir() 163 while (length < i_size_read(inode)) { in squashfs_readdir() 172 length += sizeof(dirh); in squashfs_readdir() 199 length += sizeof(*dire) + size; in squashfs_readdir() 201 if (ctx->pos >= length) in squashfs_readdir() [all …]
|
D | namei.c | 82 int i, length = 0, err; in get_dir_index_using_name() local 120 length = le32_to_cpu(index->index); in get_dir_index_using_name() 125 *next_offset = (length + *next_offset) % SQUASHFS_METADATA_SIZE; in get_dir_index_using_name() 135 return length + 3; in get_dir_index_using_name() 150 int err, length; in squashfs_lookup() local 166 length = get_dir_index_using_name(dir->i_sb, &block, &offset, in squashfs_lookup() 171 while (length < i_size_read(dir)) { in squashfs_lookup() 180 length += sizeof(dirh); in squashfs_lookup() 207 length += sizeof(*dire) + size; in squashfs_lookup()
|
D | page_actor.c | 44 int pages, int length) in squashfs_page_actor_init() argument 51 actor->length = length ? : pages * PAGE_CACHE_SIZE; in squashfs_page_actor_init() 84 int pages, int length) in squashfs_page_actor_init_special() argument 91 actor->length = length ? : pages * PAGE_CACHE_SIZE; in squashfs_page_actor_init_special()
|
D | symlink.c | 54 int length = min_t(int, i_size_read(inode) - index, PAGE_CACHE_SIZE); in squashfs_symlink_readpage() local 83 for (bytes = 0; bytes < length; offset = 0, bytes += copied) { in squashfs_symlink_readpage() 95 length - bytes); in squashfs_symlink_readpage() 96 if (copied == length - bytes) in squashfs_symlink_readpage() 97 memset(pageaddr + length, 0, PAGE_CACHE_SIZE - length); in squashfs_symlink_readpage()
|
D | page_actor.h | 15 int length; member 20 int pages, int length) in squashfs_page_actor_init() argument 27 actor->length = length ? : pages * PAGE_CACHE_SIZE; in squashfs_page_actor_init() 61 int length; member
|
D | id.c | 71 unsigned int length = SQUASHFS_ID_BLOCK_BYTES(no_ids); in squashfs_read_id_index_table() local 74 TRACE("In read_id_index_table, length %d\n", length); in squashfs_read_id_index_table() 87 if (id_table_start + length > next_table) in squashfs_read_id_index_table() 90 table = squashfs_read_table(sb, id_table_start, length); in squashfs_read_id_index_table()
|
D | decompressor.c | 99 int length = 0; in get_comp_opts() local 117 length = squashfs_read_data(sb, in get_comp_opts() 120 if (length < 0) { in get_comp_opts() 121 comp_opts = ERR_PTR(length); in get_comp_opts() 126 comp_opts = squashfs_comp_opts(msblk, buffer, length); in get_comp_opts()
|
/linux-4.1.27/drivers/acpi/acpica/ |
D | exstorob.c | 67 u32 length; in acpi_ex_store_buffer_to_buffer() local 81 length = source_desc->buffer.length; in acpi_ex_store_buffer_to_buffer() 87 if ((target_desc->buffer.length == 0) || in acpi_ex_store_buffer_to_buffer() 89 target_desc->buffer.pointer = ACPI_ALLOCATE(length); in acpi_ex_store_buffer_to_buffer() 94 target_desc->buffer.length = length; in acpi_ex_store_buffer_to_buffer() 99 if (length <= target_desc->buffer.length) { in acpi_ex_store_buffer_to_buffer() 104 target_desc->buffer.length); in acpi_ex_store_buffer_to_buffer() 105 ACPI_MEMCPY(target_desc->buffer.pointer, buffer, length); in acpi_ex_store_buffer_to_buffer() 126 target_desc->buffer.length = length; in acpi_ex_store_buffer_to_buffer() 133 target_desc->buffer.length); in acpi_ex_store_buffer_to_buffer() [all …]
|
D | utids.c | 74 u32 length; in acpi_ut_execute_HID() local 89 length = ACPI_EISAID_STRING_SIZE; in acpi_ut_execute_HID() 91 length = obj_desc->string.length + 1; in acpi_ut_execute_HID() 98 (acpi_size) length); in acpi_ut_execute_HID() 117 hid->length = length; in acpi_ut_execute_HID() 151 u32 length; in acpi_ut_execute_SUB() local 164 length = obj_desc->string.length + 1; in acpi_ut_execute_SUB() 170 (acpi_size) length); in acpi_ut_execute_SUB() 184 sub->length = length; in acpi_ut_execute_SUB() 219 u32 length; in acpi_ut_execute_UID() local [all …]
|
D | exfield.c | 75 u32 length; in acpi_ex_get_serial_access_length() local 80 length = 0; in acpi_ex_get_serial_access_length() 86 length = 1; in acpi_ex_get_serial_access_length() 92 length = 2; in acpi_ex_get_serial_access_length() 99 length = access_length; in acpi_ex_get_serial_access_length() 106 length = ACPI_GSBUS_BUFFER_SIZE - 2; in acpi_ex_get_serial_access_length() 110 return (length); in acpi_ex_get_serial_access_length() 135 acpi_size length; in acpi_ex_read_data_from_field() local 177 length = ACPI_SMBUS_BUFFER_SIZE; in acpi_ex_read_data_from_field() 183 length = acpi_ex_get_serial_access_length(accessor_type, in acpi_ex_read_data_from_field() [all …]
|
D | tbfadt.c | 71 u16 length; member 312 u32 length; in acpi_tb_parse_fadt() local 322 length = acpi_gbl_root_table_list.tables[table_index].length; in acpi_tb_parse_fadt() 326 address, length); in acpi_tb_parse_fadt() 335 (void)acpi_tb_verify_checksum(table, length); in acpi_tb_parse_fadt() 339 acpi_tb_create_local_fadt(table, length); in acpi_tb_parse_fadt() 343 acpi_os_unmap_memory(table, length); in acpi_tb_parse_fadt() 384 void acpi_tb_create_local_fadt(struct acpi_table_header *table, u32 length) in acpi_tb_create_local_fadt() argument 391 if (length > sizeof(struct acpi_table_fadt)) { in acpi_tb_create_local_fadt() 395 table->revision, length, in acpi_tb_create_local_fadt() [all …]
|
D | tbutils.c | 142 if (acpi_gbl_original_dsdt_header.length != acpi_gbl_DSDT->length || in acpi_tb_check_dsdt_header() 156 acpi_gbl_original_dsdt_header.length = acpi_gbl_DSDT->length; in acpi_tb_check_dsdt_header() 183 new_table = ACPI_ALLOCATE(table_desc->length); in acpi_tb_copy_dsdt() 186 table_desc->length)); in acpi_tb_copy_dsdt() 190 ACPI_MEMCPY(new_table, table_desc->pointer, table_desc->length); in acpi_tb_copy_dsdt() 201 new_table->length)); in acpi_tb_copy_dsdt() 287 u32 length; in acpi_tb_parse_root_table() local 342 length = table->length; in acpi_tb_parse_root_table() 345 if (length < (sizeof(struct acpi_table_header) + table_entry_size)) { in acpi_tb_parse_root_table() 348 length)); in acpi_tb_parse_root_table() [all …]
|
D | exoparg3.c | 162 acpi_size length; in acpi_ex_opcode_3A_1T_1R() local 183 length = (acpi_size) operand[2]->integer.value; in acpi_ex_opcode_3A_1T_1R() 189 if (index >= operand[0]->string.length) { in acpi_ex_opcode_3A_1T_1R() 190 length = 0; in acpi_ex_opcode_3A_1T_1R() 195 else if ((index + length) > operand[0]->string.length) { in acpi_ex_opcode_3A_1T_1R() 196 length = (acpi_size) operand[0]->string.length - in acpi_ex_opcode_3A_1T_1R() 207 buffer = ACPI_ALLOCATE_ZEROED((acpi_size) length + 1); in acpi_ex_opcode_3A_1T_1R() 218 if (length > 0) { in acpi_ex_opcode_3A_1T_1R() 222 buffer = ACPI_ALLOCATE_ZEROED(length); in acpi_ex_opcode_3A_1T_1R() 241 length); in acpi_ex_opcode_3A_1T_1R() [all …]
|
D | nsconvert.c | 92 if (original_object->buffer.length > 8) { in acpi_ns_convert_to_integer() 98 for (i = 0; i < original_object->buffer.length; i++) { in acpi_ns_convert_to_integer() 137 acpi_size length; in acpi_ns_convert_to_string() local 173 length = 0; in acpi_ns_convert_to_string() 174 while ((length < original_object->buffer.length) && in acpi_ns_convert_to_string() 175 (original_object->buffer.pointer[length])) { in acpi_ns_convert_to_string() 176 length++; in acpi_ns_convert_to_string() 181 new_object = acpi_ut_create_string_object(length); in acpi_ns_convert_to_string() 191 original_object->buffer.pointer, length); in acpi_ns_convert_to_string() 249 length); in acpi_ns_convert_to_buffer() [all …]
|
D | tbprint.c | 52 static void acpi_tb_fix_string(char *string, acpi_size length); 72 static void acpi_tb_fix_string(char *string, acpi_size length) in acpi_tb_fix_string() argument 75 while (length && *string) { in acpi_tb_fix_string() 80 length--; in acpi_tb_fix_string() 136 header->length)); in acpi_tb_print_table_header() 151 header)->length : 20, in acpi_tb_print_table_header() 164 local_header.length, local_header.revision, in acpi_tb_print_table_header() 186 acpi_status acpi_tb_verify_checksum(struct acpi_table_header *table, u32 length) in acpi_tb_verify_checksum() argument 202 checksum = acpi_tb_checksum(ACPI_CAST_PTR(u8, table), length); in acpi_tb_verify_checksum() 234 u8 acpi_tb_checksum(u8 *buffer, u32 length) in acpi_tb_checksum() argument [all …]
|
D | exconfig.c | 64 u32 length, u8 *buffer); 167 if ((operand[0]->string.length > ACPI_NAME_SIZE) || in acpi_ex_load_table_op() 168 (operand[1]->string.length > ACPI_OEM_ID_SIZE) || in acpi_ex_load_table_op() 169 (operand[2]->string.length > ACPI_OEM_TABLE_ID_SIZE)) { in acpi_ex_load_table_op() 201 if (operand[3]->string.length > 0) { in acpi_ex_load_table_op() 216 if (operand[4]->string.length > 0) { in acpi_ex_load_table_op() 294 acpi_ex_region_read(union acpi_operand_object *obj_desc, u32 length, u8 *buffer) in acpi_ex_region_read() argument 303 for (i = 0; i < length; i++) { in acpi_ex_region_read() 350 u32 length; in acpi_ex_load_op() local 390 length = table_header->length; in acpi_ex_load_op() [all …]
|
D | rsmisc.c | 96 resource, resource->type, resource->length)); in acpi_rs_convert_aml_to_resource() 124 resource->length = INIT_RESOURCE_LENGTH(info); in acpi_rs_convert_aml_to_resource() 164 resource->length = resource->length + in acpi_rs_convert_aml_to_resource() 173 resource->length = resource->length + in acpi_rs_convert_aml_to_resource() 182 resource->length = resource->length + item_count; in acpi_rs_convert_aml_to_resource() 192 resource->length = resource->length + in acpi_rs_convert_aml_to_resource() 217 resource->length = resource->length + item_count; in acpi_rs_convert_aml_to_resource() 225 resource->length = resource->length + item_count; in acpi_rs_convert_aml_to_resource() 235 resource->length = resource->length + item_count; in acpi_rs_convert_aml_to_resource() 241 resource->length = resource->length + info->value; in acpi_rs_convert_aml_to_resource() [all …]
|
D | utcopy.c | 146 external_object->string.length = internal_object->string.length; in acpi_ut_copy_isimple_to_esimple() 150 length + 1); in acpi_ut_copy_isimple_to_esimple() 154 (acpi_size) internal_object->string.length + 1); in acpi_ut_copy_isimple_to_esimple() 160 external_object->buffer.length = internal_object->buffer.length; in acpi_ut_copy_isimple_to_esimple() 163 length); in acpi_ut_copy_isimple_to_esimple() 167 internal_object->buffer.length); in acpi_ut_copy_isimple_to_esimple() 206 internal_object->processor.length; in acpi_ut_copy_isimple_to_esimple() 309 info->length += object_space; in acpi_ut_copy_ielement_to_eelement() 350 info.length = ACPI_ROUND_UP_TO_NATIVE_WORD(sizeof(union acpi_object)); in acpi_ut_copy_ipackage_to_epackage() 365 info.length += (acpi_size) external_object->package.count * in acpi_ut_copy_ipackage_to_epackage() [all …]
|
D | rsdump.c | 68 static void acpi_rs_dump_byte_list(u16 length, u8 *data); 70 static void acpi_rs_dump_word_list(u16 length, u16 *data); 72 static void acpi_rs_dump_dword_list(u8 length, u32 *data); 74 static void acpi_rs_dump_short_byte_list(u8 length, u8 *data); 127 if (!resource_list->length) { in acpi_rs_dump_resource_list() 184 for (count = 0; prt_element->length; count++) { in acpi_rs_dump_irq_list() 190 prt_element, prt_element->length); in acpi_rs_dump_irq_list() 532 static void acpi_rs_dump_byte_list(u16 length, u8 * data) in acpi_rs_dump_byte_list() argument 536 for (i = 0; i < length; i++) { in acpi_rs_dump_byte_list() 541 static void acpi_rs_dump_short_byte_list(u8 length, u8 * data) in acpi_rs_dump_short_byte_list() argument [all …]
|
D | rscreate.c | 154 aml_buffer_length = aml_buffer->buffer.length; in ACPI_EXPORT_SYMBOL() 188 output_buffer->pointer, (u32) output_buffer->length)); in ACPI_EXPORT_SYMBOL() 269 buffer += user_prt->length; in acpi_rs_create_pci_routing_table() 277 user_prt->length = (sizeof(struct acpi_pci_routing_table) - 4); in acpi_rs_create_pci_routing_table() 343 path_buffer.length = output_buffer->length - in acpi_rs_create_pci_routing_table() 355 user_prt->length += in acpi_rs_create_pci_routing_table() 368 user_prt->length += obj_desc->string.length + 1; in acpi_rs_create_pci_routing_table() 378 user_prt->length += sizeof(u32); in acpi_rs_create_pci_routing_table() 394 user_prt->length = in acpi_rs_create_pci_routing_table() 395 (u32) ACPI_ROUND_UP_TO_64BIT(user_prt->length); in acpi_rs_create_pci_routing_table() [all …]
|
D | utprint.c | 91 u32 length = 0; in acpi_ut_bound_string_length() local 94 length++; in acpi_ut_bound_string_length() 99 return (length); in acpi_ut_bound_string_length() 371 s32 length; in acpi_ut_vsnprintf() local 482 length = acpi_ut_bound_string_length(s, precision); in acpi_ut_vsnprintf() 484 while (length < width--) { in acpi_ut_vsnprintf() 491 for (i = 0; i < length; ++i) { in acpi_ut_vsnprintf() 495 while (length < width--) { in acpi_ut_vsnprintf() 604 int length; in acpi_ut_snprintf() local 607 length = acpi_ut_vsnprintf(string, size, format, args); in acpi_ut_snprintf() [all …]
|
D | exoparg2.c | 260 acpi_size length = 0; in acpi_ex_opcode_2A_1T_1R() local 322 while ((length < operand[0]->buffer.length) && in acpi_ex_opcode_2A_1T_1R() 323 (length < operand[1]->integer.value) && in acpi_ex_opcode_2A_1T_1R() 324 (operand[0]->buffer.pointer[length])) { in acpi_ex_opcode_2A_1T_1R() 325 length++; in acpi_ex_opcode_2A_1T_1R() 330 return_desc = acpi_ut_create_string_object(length); in acpi_ex_opcode_2A_1T_1R() 341 operand[0]->buffer.pointer, length); in acpi_ex_opcode_2A_1T_1R() 376 if (index >= operand[0]->string.length) { in acpi_ex_opcode_2A_1T_1R() 377 length = operand[0]->string.length; in acpi_ex_opcode_2A_1T_1R() 387 if (index >= operand[0]->buffer.length) { in acpi_ex_opcode_2A_1T_1R() [all …]
|
D | utobject.c | 266 buffer_desc->buffer.length = (u32) buffer_size; in acpi_ut_create_buffer_object() 316 string_desc->string.length = (u32) string_size; in acpi_ut_create_string_object() 457 acpi_size length; in acpi_ut_get_simple_object_size() local 465 length = sizeof(union acpi_object); in acpi_ut_get_simple_object_size() 474 *obj_length = ACPI_ROUND_UP_TO_NATIVE_WORD(length); in acpi_ut_get_simple_object_size() 496 length += (acpi_size) internal_object->string.length + 1; in acpi_ut_get_simple_object_size() 501 length += (acpi_size) internal_object->buffer.length; in acpi_ut_get_simple_object_size() 527 length += ACPI_ROUND_UP_TO_NATIVE_WORD(size); in acpi_ut_get_simple_object_size() 563 *obj_length = ACPI_ROUND_UP_TO_NATIVE_WORD(length); in acpi_ut_get_simple_object_size() 601 info->length += object_space; in acpi_ut_get_element_length() [all …]
|
D | exregion.c | 78 u32 length; in acpi_ex_system_memory_space_handler() local 92 length = 1; in acpi_ex_system_memory_space_handler() 97 length = 2; in acpi_ex_system_memory_space_handler() 102 length = 4; in acpi_ex_system_memory_space_handler() 107 length = 8; in acpi_ex_system_memory_space_handler() 122 (void)acpi_ut_short_divide((u64) address, length, NULL, &remainder); in acpi_ex_system_memory_space_handler() 134 (((u64) address + length) > ((u64) in acpi_ex_system_memory_space_handler() 155 ((mem_info->address + mem_info->length) - address); in acpi_ex_system_memory_space_handler()
|
/linux-4.1.27/sound/usb/line6/ |
D | midibuf.c | 23 static const int length[] = { 3, 3, 3, 3, 2, 2, 3 }; in midibuf_message_length() local 25 message_length = length[(code >> 4) - 8]; in midibuf_message_length() 32 static const int length[] = { -1, 2, -1, 2, -1, -1, 1, 1, 1, 1, in midibuf_message_length() local 35 message_length = length[code & 0x0f]; in midibuf_message_length() 89 int length) in line6_midibuf_write() argument 95 if (midibuf_is_full(this) || (length <= 0)) in line6_midibuf_write() 99 if (data[length - 1] == 0xfe) { in line6_midibuf_write() 100 --length; in line6_midibuf_write() 106 if (length > bytes_free) in line6_midibuf_write() 107 length = bytes_free; in line6_midibuf_write() [all …]
|
/linux-4.1.27/security/selinux/ |
D | selinuxfs.c | 135 ssize_t length; in sel_read_enforce() local 137 length = scnprintf(tmpbuf, TMPBUFLEN, "%d", selinux_enforcing); in sel_read_enforce() 138 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_enforce() 147 ssize_t length; in sel_write_enforce() local 150 length = -ENOMEM; in sel_write_enforce() 155 length = -EINVAL; in sel_write_enforce() 159 length = -ENOMEM; in sel_write_enforce() 164 length = -EFAULT; in sel_write_enforce() 168 length = -EINVAL; in sel_write_enforce() 173 length = task_has_security(current, SECURITY__SETENFORCE); in sel_write_enforce() [all …]
|
/linux-4.1.27/lib/lz4/ |
D | lz4_decompress.c | 63 size_t length; in lz4_uncompress() local 69 length = (token >> ML_BITS); in lz4_uncompress() 70 if (length == RUN_MASK) { in lz4_uncompress() 74 for (; len == 255; length += 255) in lz4_uncompress() 76 if (unlikely(length > (size_t)(length + len))) in lz4_uncompress() 78 length += len; in lz4_uncompress() 82 cpy = op + length; in lz4_uncompress() 91 memcpy(op, ip, length); in lz4_uncompress() 92 ip += length; in lz4_uncompress() 108 length = token & ML_MASK; in lz4_uncompress() [all …]
|
D | lz4_compress.c | 72 int length; in lz4_compressctx() local 118 length = (int)(ip - anchor); in lz4_compressctx() 121 if (unlikely(op + length + (2 + 1 + LASTLITERALS) + in lz4_compressctx() 122 (length >> 8) > oend)) in lz4_compressctx() 125 if (length >= (int)RUN_MASK) { in lz4_compressctx() 128 len = length - RUN_MASK; in lz4_compressctx() 133 *token = (length << ML_BITS); in lz4_compressctx() 136 LZ4_BLINDCOPY(anchor, op, length); in lz4_compressctx() 174 length = (int)(ip - anchor); in lz4_compressctx() 176 if (unlikely(op + (1 + LASTLITERALS) + (length >> 8) > oend)) in lz4_compressctx() [all …]
|
/linux-4.1.27/drivers/video/fbdev/mmp/fb/ |
D | mmpfb.c | 38 if (var->bits_per_pixel == 16 && var->red.length == 8 && in var_to_pixfmt() 39 var->green.length == 4 && var->blue.length == 4) { in var_to_pixfmt() 49 if (var->bits_per_pixel == 12 && var->red.length == 8 && in var_to_pixfmt() 50 var->green.length == 2 && var->blue.length == 2) { in var_to_pixfmt() 60 if (var->bits_per_pixel == 16 && var->red.length == 16 && in var_to_pixfmt() 61 var->green.length == 16 && var->blue.length == 16) { in var_to_pixfmt() 73 if (var->bits_per_pixel == 16 && var->red.length <= 5 && in var_to_pixfmt() 74 var->green.length <= 6 && var->blue.length <= 5) { in var_to_pixfmt() 75 if (var->transp.length == 0) { in var_to_pixfmt() 86 if (var->bits_per_pixel <= 32 && var->red.length <= 8 && in var_to_pixfmt() [all …]
|
/linux-4.1.27/drivers/net/arcnet/ |
D | arc-rawmode.c | 40 struct archdr *pkthdr, int length); 43 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, 89 struct archdr *pkthdr, int length) in rx() argument 96 BUGMSG(D_DURING, "it's a raw packet (length=%d)\n", length); in rx() 98 if (length > MTU) in rx() 99 ofs = 512 - length; in rx() 101 ofs = 256 - length; in rx() 103 skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC); in rx() 109 skb_put(skb, length + ARC_HDR_SIZE); in rx() 119 if (length > sizeof(pkt->soft)) in rx() [all …]
|
D | capmode.c | 42 struct archdr *pkthdr, int length) in rx() argument 50 BUGMSG(D_DURING, "it's a raw(cap) packet (length=%d)\n", length); in rx() 52 if (length >= MinTU) in rx() 53 ofs = 512 - length; in rx() 55 ofs = 256 - length; in rx() 57 skb = alloc_skb(length + ARC_HDR_SIZE + sizeof(int), GFP_ATOMIC); in rx() 63 skb_put(skb, length + ARC_HDR_SIZE + sizeof(int)); in rx() 81 if (length > sizeof(pkt->soft)) in rx() 85 length - sizeof(pkt->soft)); in rx() 134 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, in prepare_tx() argument [all …]
|
D | rfc1051.c | 40 struct archdr *pkthdr, int length); 43 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, 126 struct archdr *pkthdr, int length) in rx() argument 133 BUGMSG(D_DURING, "it's a raw packet (length=%d)\n", length); in rx() 135 if (length >= MinTU) in rx() 136 ofs = 512 - length; in rx() 138 ofs = 256 - length; in rx() 140 skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC); in rx() 146 skb_put(skb, length + ARC_HDR_SIZE); in rx() 153 if (length > sizeof(pkt->soft)) in rx() [all …]
|
D | rfc1201.c | 40 struct archdr *pkthdr, int length); 43 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, 135 struct archdr *pkthdr, int length) in rx() argument 144 BUGMSG(D_DURING, "it's an RFC1201 packet (length=%d)\n", length); in rx() 146 if (length >= MinTU) in rx() 147 ofs = 512 - length; in rx() 149 ofs = 256 - length; in rx() 152 if (length >= 4 + RFC1201_HDR_SIZE) in rx() 161 length -= 4; in rx() 163 lp->hw.copy_from_card(dev, bufnum, 512 - length, in rx() [all …]
|
/linux-4.1.27/include/linux/ |
D | relay.h | 184 size_t length); 201 size_t length) in relay_write() argument 208 if (unlikely(buf->offset + length > chan->subbuf_size)) in relay_write() 209 length = relay_switch_subbuf(buf, length); in relay_write() 210 memcpy(buf->data + buf->offset, data, length); in relay_write() 211 buf->offset += length; in relay_write() 229 size_t length) in __relay_write() argument 234 if (unlikely(buf->offset + length > buf->chan->subbuf_size)) in __relay_write() 235 length = relay_switch_subbuf(buf, length); in __relay_write() 236 memcpy(buf->data + buf->offset, data, length); in __relay_write() [all …]
|
D | jhash.h | 70 static inline u32 jhash(const void *key, u32 length, u32 initval) in jhash() argument 76 a = b = c = JHASH_INITVAL + length + initval; in jhash() 79 while (length > 12) { in jhash() 84 length -= 12; in jhash() 89 switch (length) { in jhash() 117 static inline u32 jhash2(const u32 *k, u32 length, u32 initval) in jhash2() argument 122 a = b = c = JHASH_INITVAL + (length<<2) + initval; in jhash2() 125 while (length > 3) { in jhash2() 130 length -= 3; in jhash2() 135 switch (length) { in jhash2()
|
D | crc32.h | 66 #define crc32(seed, data, length) crc32_le(seed, (unsigned char const *)(data), length) argument 76 #define ether_crc(length, data) bitrev32(crc32_le(~0, data, length)) argument 77 #define ether_crc_le(length, data) crc32_le(~0, data, length) argument
|
D | coda_psdev.h | 34 const char *name, int length, int *type, 41 const char *name, int length, 44 const char *name, int length, int excl, int mode, 47 const char *name, int length); 49 const char *name, int length); 51 char *buffer, int *length);
|
/linux-4.1.27/net/sunrpc/auth_gss/ |
D | gss_generic_token.c | 76 der_length_size( int length) in der_length_size() argument 78 if (length < (1<<7)) in der_length_size() 80 else if (length < (1<<8)) in der_length_size() 86 else if (length < (1<<16)) in der_length_size() 88 else if (length < (1<<24)) in der_length_size() 96 der_write_length(unsigned char **buf, int length) in der_write_length() argument 98 if (length < (1<<7)) { in der_write_length() 99 *(*buf)++ = (unsigned char) length; in der_write_length() 101 *(*buf)++ = (unsigned char) (der_length_size(length)+127); in der_write_length() 103 if (length >= (1<<24)) in der_write_length() [all …]
|
/linux-4.1.27/fs/ntfs/ |
D | runlist.c | 165 if ((dst->vcn + dst->length) != src->vcn) in ntfs_are_rl_mergeable() 169 ((dst->lcn + dst->length) == src->lcn)) in ntfs_are_rl_mergeable() 191 dst->length += src->length; in __ntfs_rl_merge() 252 dst[loc].length = dst[loc + 1].vcn - dst[loc].vcn; in ntfs_rl_append() 256 dst[marker].vcn = dst[marker - 1].vcn + dst[marker - 1].length; in ntfs_rl_append() 306 merged_length = dst[loc - 1].length; in ntfs_rl_insert() 308 merged_length += src->length; in ntfs_rl_insert() 339 dst[marker].vcn = dst[marker - 1].vcn + dst[marker - 1].length; in ntfs_rl_insert() 342 dst[marker].length = dst[marker + 1].vcn - dst[marker].vcn; in ntfs_rl_insert() 347 dst[loc].vcn = dst[loc - 1].vcn + dst[loc - 1].length; in ntfs_rl_insert() [all …]
|
/linux-4.1.27/drivers/video/fbdev/ |
D | 68328fb.c | 116 u_long length; in get_line_length() local 118 length = xres_virtual * bpp; in get_line_length() 119 length = (length + 31) & ~31; in get_line_length() 120 length >>= 3; in get_line_length() 121 return (length); in get_line_length() 193 var->red.length = 1; in mc68x328fb_check_var() 195 var->green.length = 1; in mc68x328fb_check_var() 197 var->blue.length = 1; in mc68x328fb_check_var() 199 var->transp.length = 0; in mc68x328fb_check_var() 203 var->red.length = 8; in mc68x328fb_check_var() [all …]
|
D | vfb.c | 145 u_long length; in get_line_length() local 147 length = xres_virtual * bpp; in get_line_length() 148 length = (length + 31) & ~31; in get_line_length() 149 length >>= 3; in get_line_length() 150 return (length); in get_line_length() 223 var->red.length = 8; in vfb_check_var() 225 var->green.length = 8; in vfb_check_var() 227 var->blue.length = 8; in vfb_check_var() 229 var->transp.length = 0; in vfb_check_var() 232 if (var->transp.length) { in vfb_check_var() [all …]
|
D | pxa168fb.c | 48 if (var->bits_per_pixel == 16 && var->red.length <= 5 && in determine_best_pix_fmt() 49 var->green.length <= 6 && var->blue.length <= 5) { in determine_best_pix_fmt() 50 if (var->transp.length == 0) { in determine_best_pix_fmt() 57 if (var->transp.length == 1 && var->green.length <= 5) { in determine_best_pix_fmt() 70 if (var->bits_per_pixel <= 32 && var->red.length <= 8 && in determine_best_pix_fmt() 71 var->green.length <= 8 && var->blue.length <= 8) { in determine_best_pix_fmt() 72 if (var->bits_per_pixel == 24 && var->transp.length == 0) { in determine_best_pix_fmt() 79 if (var->bits_per_pixel == 32 && var->transp.length == 8) { in determine_best_pix_fmt() 102 var->red.offset = 11; var->red.length = 5; in set_pix_fmt() 103 var->green.offset = 5; var->green.length = 6; in set_pix_fmt() [all …]
|
D | ocfb.c | 191 red >>= (16 - info->var.red.length); in ocfb_setcolreg() 192 green >>= (16 - info->var.green.length); in ocfb_setcolreg() 193 blue >>= (16 - info->var.blue.length); in ocfb_setcolreg() 194 transp >>= (16 - info->var.transp.length); in ocfb_setcolreg() 242 var->transp.length = 0; in ocfb_init_var() 244 var->red.length = 8; in ocfb_init_var() 246 var->green.length = 8; in ocfb_init_var() 248 var->blue.length = 8; in ocfb_init_var() 253 var->transp.length = 0; in ocfb_init_var() 255 var->red.length = 5; in ocfb_init_var() [all …]
|
D | fb-puv3.c | 328 u_long length; in get_line_length() local 330 length = xres_virtual * bpp; in get_line_length() 331 length = (length + 31) & ~31; in get_line_length() 332 length >>= 3; in get_line_length() 333 return length; in get_line_length() 405 var->red.length = 8; in unifb_check_var() 407 var->green.length = 8; in unifb_check_var() 409 var->blue.length = 8; in unifb_check_var() 411 var->transp.length = 0; in unifb_check_var() 414 if (var->transp.length) { in unifb_check_var() [all …]
|
D | hitfb.c | 266 var->red.length = 8; in hitfb_check_var() 268 var->green.length = 8; in hitfb_check_var() 270 var->blue.length = 8; in hitfb_check_var() 272 var->transp.length = 0; in hitfb_check_var() 276 var->red.length = 5; in hitfb_check_var() 278 var->green.length = 6; in hitfb_check_var() 280 var->blue.length = 5; in hitfb_check_var() 282 var->transp.length = 0; in hitfb_check_var() 365 hitfb_var.red.length = 8; in hitfb_probe() 367 hitfb_var.green.length = 8; in hitfb_probe() [all …]
|
D | macmodes.c | 239 var->red.length = 8; in mac_vmode_to_var() 241 var->green.length = 8; in mac_vmode_to_var() 243 var->blue.length = 8; in mac_vmode_to_var() 249 var->red.length = 5; in mac_vmode_to_var() 251 var->green.length = 5; in mac_vmode_to_var() 253 var->blue.length = 5; in mac_vmode_to_var() 259 var->red.length = 8; in mac_vmode_to_var() 261 var->green.length = 8; in mac_vmode_to_var() 263 var->blue.length = 8; in mac_vmode_to_var() 265 var->transp.length = 8; in mac_vmode_to_var()
|
D | offb.c | 107 u32 cr = red >> (16 - info->var.red.length); in offb_setcolreg() 108 u32 cg = green >> (16 - info->var.green.length); in offb_setcolreg() 109 u32 cb = blue >> (16 - info->var.blue.length); in offb_setcolreg() 118 if (info->var.transp.length > 0) { in offb_setcolreg() 119 u32 mask = (1 << info->var.transp.length) - 1; in offb_setcolreg() 450 var->red.length = 8; in offb_init_fb() 452 var->green.length = 8; in offb_init_fb() 454 var->blue.length = 8; in offb_init_fb() 456 var->transp.length = 0; in offb_init_fb() 461 var->red.length = 5; in offb_init_fb() [all …]
|
/linux-4.1.27/drivers/net/ethernet/cisco/enic/ |
D | vnic_vic.c | 40 vp->length = htonl(sizeof(vp->num_tlvs)); in vic_provinfo_alloc() 50 int vic_provinfo_add_tlv(struct vic_provinfo *vp, u16 type, u16 length, in vic_provinfo_add_tlv() argument 58 if (ntohl(vp->length) + offsetof(struct vic_provinfo_tlv, value) + in vic_provinfo_add_tlv() 59 length > VIC_PROVINFO_MAX_TLV_DATA) in vic_provinfo_add_tlv() 63 ntohl(vp->length) - sizeof(vp->num_tlvs)); in vic_provinfo_add_tlv() 66 tlv->length = htons(length); in vic_provinfo_add_tlv() 67 memcpy(tlv->value, value, length); in vic_provinfo_add_tlv() 70 vp->length = htonl(ntohl(vp->length) + in vic_provinfo_add_tlv() 71 offsetof(struct vic_provinfo_tlv, value) + length); in vic_provinfo_add_tlv() 78 return vp ? ntohl(vp->length) + sizeof(*vp) - sizeof(vp->num_tlvs) : 0; in vic_provinfo_size()
|
D | wq_enet_desc.h | 26 __le16 length; member 54 u64 address, u16 length, u16 mss, u16 header_length, in wq_enet_desc_enc() argument 59 desc->length = cpu_to_le16(length & WQ_ENET_LEN_MASK); in wq_enet_desc_enc() 73 u64 *address, u16 *length, u16 *mss, u16 *header_length, in wq_enet_desc_dec() argument 78 *length = le16_to_cpu(desc->length) & WQ_ENET_LEN_MASK; in wq_enet_desc_dec()
|
D | rq_enet_desc.h | 44 u64 address, u8 type, u16 length) in rq_enet_desc_enc() argument 47 desc->length_type = cpu_to_le16((length & RQ_ENET_LEN_MASK) | in rq_enet_desc_enc() 52 u64 *address, u8 *type, u16 *length) in rq_enet_desc_dec() argument 55 *length = le16_to_cpu(desc->length_type) & RQ_ENET_LEN_MASK; in rq_enet_desc_dec()
|
/linux-4.1.27/arch/s390/pci/ |
D | pci_mmio.c | 35 const void __user *, user_buffer, size_t, length) in SYSCALL_DEFINE3() argument 46 if (length <= 0 || PAGE_SIZE - (mmio_addr & ~PAGE_MASK) < length) in SYSCALL_DEFINE3() 48 if (length > 64) { in SYSCALL_DEFINE3() 49 buf = kmalloc(length, GFP_KERNEL); in SYSCALL_DEFINE3() 64 if (copy_from_user(buf, user_buffer, length)) in SYSCALL_DEFINE3() 67 ret = zpci_memcpy_toio(io_addr, buf, length); in SYSCALL_DEFINE3() 75 void __user *, user_buffer, size_t, length) in SYSCALL_DEFINE3() argument 86 if (length <= 0 || PAGE_SIZE - (mmio_addr & ~PAGE_MASK) < length) in SYSCALL_DEFINE3() 88 if (length > 64) { in SYSCALL_DEFINE3() 89 buf = kmalloc(length, GFP_KERNEL); in SYSCALL_DEFINE3() [all …]
|
/linux-4.1.27/arch/arm/mach-gemini/ |
D | mm.c | 24 .length = SZ_512K, 29 .length = SZ_512K, 34 .length = SZ_512K, 39 .length = SZ_512K, 44 .length = SZ_512K, 49 .length = SZ_512K, 54 .length = SZ_512K, 59 .length = SZ_512K, 64 .length = SZ_512K, 69 .length = SZ_512K, [all …]
|
/linux-4.1.27/drivers/video/ |
D | hdmi.c | 65 frame->length = HDMI_AVI_INFOFRAME_SIZE; in hdmi_avi_infoframe_init() 89 size_t length; in hdmi_avi_infoframe_pack() local 91 length = HDMI_INFOFRAME_HEADER_SIZE + frame->length; in hdmi_avi_infoframe_pack() 93 if (size < length) in hdmi_avi_infoframe_pack() 100 ptr[2] = frame->length; in hdmi_avi_infoframe_pack() 148 hdmi_infoframe_set_checksum(buffer, length); in hdmi_avi_infoframe_pack() 150 return length; in hdmi_avi_infoframe_pack() 169 frame->length = HDMI_SPD_INFOFRAME_SIZE; in hdmi_spd_infoframe_init() 196 size_t length; in hdmi_spd_infoframe_pack() local 198 length = HDMI_INFOFRAME_HEADER_SIZE + frame->length; in hdmi_spd_infoframe_pack() [all …]
|
/linux-4.1.27/tools/firewire/ |
D | nosy-dump.c | 46 static void print_packet(uint32_t *data, size_t length); 47 static void decode_link_packet(struct link_packet *packet, size_t length, 147 subaction_create(uint32_t *data, size_t length) in subaction_create() argument 152 sa = malloc(sizeof *sa - sizeof sa->packet + length); in subaction_create() 155 sa->ack = data[length / 4 - 1]; in subaction_create() 156 sa->length = length; in subaction_create() 157 memcpy(&sa->packet, data, length); in subaction_create() 243 decode_link_packet(&t->request->packet, t->request->length, in handle_transaction() 246 decode_link_packet(&t->response->packet, t->request->length, in handle_transaction() 253 print_packet((uint32_t *) &sa->packet, sa->length); in handle_transaction() [all …]
|
/linux-4.1.27/fs/xfs/libxfs/ |
D | xfs_dir2_data.c | 109 if (!bf[0].length) { in __xfs_dir3_data_check() 113 if (!bf[1].length) { in __xfs_dir3_data_check() 117 if (!bf[2].length) { in __xfs_dir3_data_check() 122 XFS_WANT_CORRUPTED_RETURN(mp, be16_to_cpu(bf[0].length) >= in __xfs_dir3_data_check() 123 be16_to_cpu(bf[1].length)); in __xfs_dir3_data_check() 124 XFS_WANT_CORRUPTED_RETURN(mp, be16_to_cpu(bf[1].length) >= in __xfs_dir3_data_check() 125 be16_to_cpu(bf[2].length)); in __xfs_dir3_data_check() 149 be16_to_cpu(dup->length) <= in __xfs_dir3_data_check() 150 be16_to_cpu(bf[2].length)); in __xfs_dir3_data_check() 152 p += be16_to_cpu(dup->length); in __xfs_dir3_data_check() [all …]
|
D | xfs_cksum.h | 12 xfs_start_cksum(char *buffer, size_t length, unsigned long cksum_offset) in xfs_start_cksum() argument 25 length - (cksum_offset + sizeof(__be32))); in xfs_start_cksum() 45 xfs_update_cksum(char *buffer, size_t length, unsigned long cksum_offset) in xfs_update_cksum() argument 47 __uint32_t crc = xfs_start_cksum(buffer, length, cksum_offset); in xfs_update_cksum() 56 xfs_verify_cksum(char *buffer, size_t length, unsigned long cksum_offset) in xfs_verify_cksum() argument 58 __uint32_t crc = xfs_start_cksum(buffer, length, cksum_offset); in xfs_verify_cksum()
|
/linux-4.1.27/drivers/staging/vt6656/ |
D | rf.c | 832 u16 length, value; in vnt_rf_table_download() local 889 length = 64; in vnt_rf_table_download() 891 length = length2; in vnt_rf_table_download() 893 memcpy(array, addr2, length); in vnt_rf_table_download() 896 value, MESSAGE_REQUEST_RF_CH0, length, array); in vnt_rf_table_download() 898 length2 -= length; in vnt_rf_table_download() 899 value += length; in vnt_rf_table_download() 900 addr2 += length; in vnt_rf_table_download() 907 length = 64; in vnt_rf_table_download() 909 length = length3; in vnt_rf_table_download() [all …]
|
/linux-4.1.27/drivers/media/pci/bt8xx/ |
D | dst_ca.c | 74 static void put_command_and_length(u8 *data, int command, int length) in put_command_and_length() argument 79 data[3] = length; in put_command_and_length() 82 static void put_checksum(u8 *check_string, int length) in put_checksum() argument 85 dprintk(verbose, DST_CA_DEBUG, 1, " -> string length : 0x%02x", length); in put_checksum() 86 check_string[length] = dst_check_sum (check_string, length); in put_checksum() 87 dprintk(verbose, DST_CA_DEBUG, 1, " -> checksum : 0x%02x", check_string[length]); in put_checksum() 156 int length, str_length; in ca_get_app_info() local 172 length = state->messages[5]; in ca_get_app_info() 173 str_length = length - 6; in ca_get_app_info() 180 put_command_and_length(&state->messages[0], CA_APP_INFO, length); in ca_get_app_info() [all …]
|
/linux-4.1.27/drivers/mtd/nand/ |
D | fsmc_nand.c | 47 {.offset = 8, .length = 8}, 48 {.offset = 24, .length = 8}, 49 {.offset = 40, .length = 8}, 50 {.offset = 56, .length = 8}, 51 {.offset = 72, .length = 8}, 52 {.offset = 88, .length = 8}, 53 {.offset = 104, .length = 8}, 54 {.offset = 120, .length = 8} 62 {.offset = 8, .length = 8}, 63 {.offset = 24, .length = 8}, [all …]
|
/linux-4.1.27/drivers/media/usb/cpia2/ |
D | cpia2_usb.c | 100 if(cam->workbuff->length > cam->workbuff->max_length) in process_frame() 101 cam->workbuff->max_length = cam->workbuff->length; in process_frame() 121 if (cam->workbuff->length > 3) { in process_frame() 123 cam->workbuff->length < cam->workbuff->max_length) { in process_frame() 125 memset(cam->workbuff->data+cam->workbuff->length, in process_frame() 127 cam->workbuff->length); in process_frame() 129 cam->workbuff->max_length = cam->workbuff->length; in process_frame() 173 cam->workbuff->data[cam->workbuff->length++] = 0xFF; in add_APPn() 174 cam->workbuff->data[cam->workbuff->length++] = 0xE0+cam->APPn; in add_APPn() 175 cam->workbuff->data[cam->workbuff->length++] = 0; in add_APPn() [all …]
|
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/ |
D | manage.c | 32 static u8 e1000_calculate_checksum(u8 *buffer, u32 length) in e1000_calculate_checksum() argument 40 for (i = 0; i < length; i++) in e1000_calculate_checksum() 171 u16 i, length = sizeof(struct e1000_host_mng_command_header); in e1000_mng_write_cmd_header() local 175 hdr->checksum = e1000_calculate_checksum((u8 *)hdr, length); in e1000_mng_write_cmd_header() 177 length >>= 2; in e1000_mng_write_cmd_header() 179 for (i = 0; i < length; i++) { in e1000_mng_write_cmd_header() 200 u16 length, u16 offset, u8 *sum) in e1000_mng_host_if_write() argument 209 if (length == 0 || offset + length > E1000_HI_MAX_MNG_DATA_LENGTH) in e1000_mng_host_if_write() 223 length -= j - prev_bytes; in e1000_mng_host_if_write() 227 remaining = length & 0x3; in e1000_mng_host_if_write() [all …]
|
/linux-4.1.27/arch/x86/kernel/ |
D | probe_roms.c | 188 static int __init romchecksum(const unsigned char *rom, unsigned long length) in romchecksum() argument 192 for (sum = 0; length && probe_kernel_address(rom++, c) == 0; length--) in romchecksum() 194 return !length && !sum; in romchecksum() 200 unsigned long start, length, upper; in probe_roms() local 217 length = c * 512; in probe_roms() 220 if (length && romchecksum(rom, length)) in probe_roms() 221 video_rom_resource.end = start + length - 1; in probe_roms() 238 length = resource_size(&extension_rom_resource); in probe_roms() 239 if (romchecksum(rom, length)) { in probe_roms() 255 length = c * 512; in probe_roms() [all …]
|
/linux-4.1.27/drivers/scsi/esas2r/ |
D | esas2r_vda.c | 112 rq->vrq->flash.length = cpu_to_le32(datalen); in esas2r_process_vda_ioctl() 128 rq->vrq->cli.length = cpu_to_le32(datalen); in esas2r_process_vda_ioctl() 169 rq->vrq->mgt.length = cpu_to_le32(datalen); in esas2r_process_vda_ioctl() 177 sgc->length = payldlen; in esas2r_process_vda_ioctl() 187 rq->vrq->mgt.length = cpu_to_le32(datalen); in esas2r_process_vda_ioctl() 221 rq->vrq->cfg.length = cpu_to_le32(vi->cmd.cfg.data_length); in esas2r_process_vda_ioctl() 256 sgc->length = datalen; in esas2r_process_vda_ioctl() 295 le32_to_cpu(rq->func_rsp.mgt_rsp.length); in esas2r_complete_vda_ioctl() 351 u32 length) in esas2r_build_flash_req() argument 365 vrq->length = cpu_to_le32(length); in esas2r_build_flash_req() [all …]
|
D | esas2r_flash.c | 188 sgc->length, in build_flash_msg() 199 sgc->length); in build_flash_msg() 208 fc->curr_len = fc->sgc.length; in build_flash_msg() 219 fc->sgc.length = 0; in build_flash_msg() 272 esas2r_calc_byte_cksum((u8 *)pi, ch->length, 0); in fix_bios() 278 u32 len = ch->length; in fix_efi() 349 + ch->length /* end of the current image */ in fw_download_proc() 364 fc->sgc.length = FM_BUF_SZ; in fw_download_proc() 366 fc->sgc.length = fc->cmp_len; in fw_download_proc() 378 while (fc->sgc.length == 0) { in fw_download_proc() [all …]
|
D | esas2r_io.c | 168 element->length = cpu_to_le32(rq->vda_req_sz); in esas2r_start_vda_request() 193 while (sgc->length) { in esas2r_build_sg_list_sge() 204 if (unlikely(len > sgc->length)) in esas2r_build_sg_list_sge() 205 len = sgc->length; in esas2r_build_sg_list_sge() 257 sgc->sge.a64.last->length = cpu_to_le32( in esas2r_build_sg_list_sge() 269 sgc->sge.a64.chain->length |= in esas2r_build_sg_list_sge() 309 sgc->sge.a64.curr->length = cpu_to_le32(SGE_ADDR_64 | len); in esas2r_build_sg_list_sge() 313 sgc->length -= len; in esas2r_build_sg_list_sge() 328 sgc->sge.a64.last->length |= cpu_to_le32(SGE_LAST); in esas2r_build_sg_list_sge() 335 sgc->sge.a64.chain->length |= cpu_to_le32( in esas2r_build_sg_list_sge() [all …]
|
/linux-4.1.27/drivers/firewire/ |
D | core-transaction.c | 54 #define HEADER_DATA_LENGTH(length) ((length) << 16) argument 213 unsigned long long offset, void *payload, size_t length) in fw_fill_request() argument 219 HEADER_DATA_LENGTH(length) | in fw_fill_request() 224 packet->payload_length = length; in fw_fill_request() 255 HEADER_DATA_LENGTH(length) | in fw_fill_request() 259 packet->payload_length = length; in fw_fill_request() 269 HEADER_DATA_LENGTH(length) | in fw_fill_request() 352 unsigned long long offset, void *payload, size_t length, in fw_send_request() argument 383 speed, offset, payload, length); in fw_send_request() 401 void *payload, size_t length, void *data) in transaction_callback() argument [all …]
|
D | nosy.c | 66 unsigned int length; member 152 size_t length; in packet_buffer_get() local 166 length = buffer->head->length; in packet_buffer_get() 168 if (&buffer->head->data[length] < end) { in packet_buffer_get() 169 if (copy_to_user(data, buffer->head->data, length)) in packet_buffer_get() 171 buffer->head = (struct packet *) &buffer->head->data[length]; in packet_buffer_get() 177 if (copy_to_user(data + split, buffer->data, length - split)) in packet_buffer_get() 179 buffer->head = (struct packet *) &buffer->data[length - split]; in packet_buffer_get() 187 atomic_sub(sizeof(struct packet) + length, &buffer->size); in packet_buffer_get() 189 return length; in packet_buffer_get() [all …]
|
/linux-4.1.27/mm/ |
D | swap_cgroup.c | 10 unsigned long length; member 46 for (idx = 0; idx < ctrl->length; idx++) { in swap_cgroup_prepare() 147 unsigned long length; in swap_cgroup_swapon() local 153 length = DIV_ROUND_UP(max_pages, SC_PER_PAGE); in swap_cgroup_swapon() 154 array_size = length * sizeof(void *); in swap_cgroup_swapon() 162 ctrl->length = length; in swap_cgroup_swapon() 168 ctrl->length = 0; in swap_cgroup_swapon() 186 unsigned long i, length; in swap_cgroup_swapoff() local 195 length = ctrl->length; in swap_cgroup_swapoff() 197 ctrl->length = 0; in swap_cgroup_swapoff() [all …]
|
/linux-4.1.27/Documentation/scsi/ |
D | arcmsr_spec.txt | 25 ** 1st uint32_t : Data length (1--124) 112 ** (B) Command block : variable length of data including length, 114 ** (C) Return data : variable length of data 118 ** (A) 1st byte : command block length (low byte) 119 ** (B) 2nd byte : command block length (high byte) 120 ** note ..command block length shouldn't > 2040 bytes, 121 ** length excludes these two bytes 123 ** (D) 4th and following bytes : variable length data bytes 183 ** byte 0,1 : length 185 ** byte 3 : password length (should be 0x0f) [all …]
|
/linux-4.1.27/drivers/net/wireless/ath/ath10k/ |
D | bmi.c | 92 u32 address, void *buffer, u32 length) in ath10k_bmi_read_memory() argument 101 address, length); in ath10k_bmi_read_memory() 108 while (length) { in ath10k_bmi_read_memory() 109 rxlen = min_t(u32, length, BMI_MAX_DATA_SIZE); in ath10k_bmi_read_memory() 126 length -= rxlen; in ath10k_bmi_read_memory() 133 u32 address, const void *buffer, u32 length) in ath10k_bmi_write_memory() argument 141 address, length); in ath10k_bmi_write_memory() 148 while (length) { in ath10k_bmi_write_memory() 149 txlen = min(length, BMI_MAX_DATA_SIZE - hdrlen); in ath10k_bmi_write_memory() 168 txlen = min(txlen, length); in ath10k_bmi_write_memory() [all …]
|
/linux-4.1.27/arch/arm64/crypto/ |
D | crc32-arm64.c | 43 s64 length = len; in crc32_arm64_le_hw() local 45 while ((length -= sizeof(u64)) >= 0) { in crc32_arm64_le_hw() 51 if (length & sizeof(u32)) { in crc32_arm64_le_hw() 55 if (length & sizeof(u16)) { in crc32_arm64_le_hw() 59 if (length & sizeof(u8)) in crc32_arm64_le_hw() 67 s64 length = len; in crc32c_arm64_le_hw() local 69 while ((length -= sizeof(u64)) >= 0) { in crc32c_arm64_le_hw() 75 if (length & sizeof(u32)) { in crc32c_arm64_le_hw() 79 if (length & sizeof(u16)) { in crc32c_arm64_le_hw() 83 if (length & sizeof(u8)) in crc32c_arm64_le_hw() [all …]
|
/linux-4.1.27/arch/arm/mach-omap2/ |
D | io.c | 76 .length = L3_24XX_SIZE, 82 .length = L4_24XX_SIZE, 92 .length = DSP_MEM_2420_SIZE, 98 .length = DSP_IPI_2420_SIZE, 104 .length = DSP_MMU_2420_SIZE, 116 .length = L4_WK_243X_SIZE, 122 .length = OMAP243X_GPMC_SIZE, 128 .length = OMAP243X_SDRC_SIZE, 134 .length = OMAP243X_SMS_SIZE, 146 .length = L3_34XX_SIZE, [all …]
|
/linux-4.1.27/drivers/infiniband/hw/ipath/ |
D | ipath_keys.c | 144 isge->length = sge->length; in ipath_lkey_ok() 145 isge->sge_length = sge->length; in ipath_lkey_ok() 158 off + sge->length > mr->length || in ipath_lkey_ok() 167 while (off >= mr->map[m]->segs[n].length) { in ipath_lkey_ok() 168 off -= mr->map[m]->segs[n].length; in ipath_lkey_ok() 177 isge->length = mr->map[m]->segs[n].length - off; in ipath_lkey_ok() 178 isge->sge_length = sge->length; in ipath_lkey_ok() 224 sge->length = len; in ipath_rkey_ok() 240 if (unlikely(vaddr < mr->iova || off + len > mr->length || in ipath_rkey_ok() 249 while (off >= mr->map[m]->segs[n].length) { in ipath_rkey_ok() [all …]
|
D | ipath_verbs.c | 171 void ipath_copy_sge(struct ipath_sge_state *ss, void *data, u32 length) in ipath_copy_sge() argument 175 while (length) { in ipath_copy_sge() 176 u32 len = sge->length; in ipath_copy_sge() 178 if (len > length) in ipath_copy_sge() 179 len = length; in ipath_copy_sge() 185 sge->length -= len; in ipath_copy_sge() 190 } else if (sge->length == 0 && sge->mr != NULL) { in ipath_copy_sge() 198 sge->length = in ipath_copy_sge() 199 sge->mr->map[sge->m]->segs[sge->n].length; in ipath_copy_sge() 202 length -= len; in ipath_copy_sge() [all …]
|
D | ipath_mr.c | 149 mr->mr.length = 0; in ipath_reg_phys_mr() 159 mr->mr.map[m]->segs[n].length = buffer_list[i].size; in ipath_reg_phys_mr() 160 mr->mr.length += buffer_list[i].size; in ipath_reg_phys_mr() 185 struct ib_mr *ipath_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, in ipath_reg_user_mr() argument 195 if (length == 0) { in ipath_reg_user_mr() 200 umem = ib_umem_get(pd->uobject->context, start, length, in ipath_reg_user_mr() 216 mr->mr.length = length; in ipath_reg_user_mr() 233 mr->mr.map[m]->segs[n].length = umem->page_size; in ipath_reg_user_mr() 318 fmr->mr.length = 0; in ipath_alloc_fmr() 366 fmr->mr.length = list_len * ps; in ipath_map_phys_fmr() [all …]
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/core/ |
D | mm.c | 38 node->offset, node->length, node->type); in nvkm_mm_dump() 43 node->offset, node->length, node->type); in nvkm_mm_dump() 57 prev->length += this->length; in nvkm_mm_free() 64 next->length += this->length; in nvkm_mm_free() 90 if (a->length == size) in region_head() 98 b->length = size; in region_head() 102 a->length -= size; in region_head() 126 e = this->offset + this->length; in nvkm_mm_head() 164 if (a->length == size) in region_tail() 171 a->length -= size; in region_tail() [all …]
|
/linux-4.1.27/drivers/input/touchscreen/ |
D | cyttsp4_spi.c | 47 u8 op, u16 reg, u8 *buf, int length) in cyttsp_spi_xfer() argument 57 if (length > CY_SPI_DATA_SIZE) { in cyttsp_spi_xfer() 59 __func__, length); in cyttsp_spi_xfer() 69 if (length > 0) in cyttsp_spi_xfer() 70 memcpy(wr_buf + CY_SPI_CMD_BYTES, buf, length); in cyttsp_spi_xfer() 84 xfer[0].len = length + CY_SPI_CMD_BYTES; in cyttsp_spi_xfer() 93 xfer[1].len = length; in cyttsp_spi_xfer() 120 for (i = 0; i < length; i++) in cyttsp_spi_xfer() 131 u16 addr, u8 length, void *data) in cyttsp_spi_read_block_data() argument 140 length); in cyttsp_spi_read_block_data() [all …]
|
D | cyttsp_spi.c | 44 u8 op, u16 reg, u8 *buf, int length) in cyttsp_spi_xfer() argument 54 if (length > CY_SPI_DATA_SIZE) { in cyttsp_spi_xfer() 56 __func__, length); in cyttsp_spi_xfer() 68 memcpy(wr_buf + CY_SPI_CMD_BYTES, buf, length); in cyttsp_spi_xfer() 81 xfer[0].len = length + CY_SPI_CMD_BYTES; in cyttsp_spi_xfer() 90 xfer[1].len = length; in cyttsp_spi_xfer() 118 for (i = 0; i < length; i++) in cyttsp_spi_xfer() 129 u16 addr, u8 length, void *data) in cyttsp_spi_read_block_data() argument 132 length); in cyttsp_spi_read_block_data() 136 u16 addr, u8 length, const void *data) in cyttsp_spi_write_block_data() argument [all …]
|
D | cyttsp_i2c_common.c | 37 u16 addr, u8 length, void *values) in cyttsp_i2c_read_block_data() argument 52 .len = length, in cyttsp_i2c_read_block_data() 67 u16 addr, u8 length, const void *values) in cyttsp_i2c_write_block_data() argument 76 .len = length + 1, in cyttsp_i2c_write_block_data() 83 memcpy(&xfer_buf[1], values, length); in cyttsp_i2c_write_block_data()
|
/linux-4.1.27/sound/firewire/fireworks/ |
D | fireworks_transaction.c | 119 copy_resp_to_buf(struct snd_efw *efw, void *data, size_t length, int *rcode) in copy_resp_to_buf() argument 127 length = min_t(size_t, be32_to_cpu(t->length) * sizeof(u32), length); in copy_resp_to_buf() 136 if (capacity < length) { in copy_resp_to_buf() 142 while (length > 0) { in copy_resp_to_buf() 145 till_end = min_t(unsigned int, length, till_end); in copy_resp_to_buf() 153 length -= till_end; in copy_resp_to_buf() 168 void *data, size_t length, int *rcode) in handle_resp_for_user() argument 193 copy_resp_to_buf(efw, data, length, rcode); in handle_resp_for_user() 200 void *data, size_t length, int *rcode, u32 seqnum) in handle_resp_for_kernel() argument 218 t->size = min_t(unsigned int, length, t->size); in handle_resp_for_kernel() [all …]
|
/linux-4.1.27/arch/x86/include/asm/ |
D | bios_ebda.h | 26 unsigned int length; in get_bios_ebda_length() local 33 length = *(unsigned char *)phys_to_virt(address); in get_bios_ebda_length() 34 length <<= 10; in get_bios_ebda_length() 37 length = min_t(unsigned int, (640 * 1024) - address, length); in get_bios_ebda_length() 38 return length; in get_bios_ebda_length()
|
/linux-4.1.27/tools/power/acpi/os_specific/service_layers/ |
D | oslibcfs.c | 125 int length; in acpi_os_read_file() local 127 length = fread(buffer, size, count, file); in acpi_os_read_file() 128 if (length < 0) { in acpi_os_read_file() 132 return (length); in acpi_os_read_file() 154 int length; in acpi_os_write_file() local 156 length = fwrite(buffer, size, count, file); in acpi_os_write_file() 157 if (length < 0) { in acpi_os_write_file() 161 return (length); in acpi_os_write_file()
|
/linux-4.1.27/arch/ia64/kernel/ |
D | acpi-ext.c | 32 static acpi_status hp_ccsr_locate(acpi_handle obj, u64 *base, u64 *length) in hp_ccsr_locate() argument 51 memcpy(length, vendor->byte_data + 8, sizeof(*length)); in hp_ccsr_locate() 60 u64 length; member 75 space->length = addr.address.address_length; in find_csr_space() 81 static acpi_status hp_crs_locate(acpi_handle obj, u64 *base, u64 *length) in hp_crs_locate() argument 86 if (!space.length) in hp_crs_locate() 90 *length = space.length; in hp_crs_locate()
|
/linux-4.1.27/drivers/iio/common/ssp_sensors/ |
D | ssp_spi.c | 39 __le16 length; member 45 u16 length; member 95 h.length = cpu_to_le16(len); in ssp_create_msg() 106 msg->length = len; in ssp_create_msg() 145 int length = data_frame[(*data_index)++]; in ssp_print_mcu_debug() local 147 if (length > received_len - *data_index || length <= 0) { in ssp_print_mcu_debug() 149 length, received_len); in ssp_print_mcu_debug() 150 return length ? length : -EPROTO; in ssp_print_mcu_debug() 155 *data_index += length; in ssp_print_mcu_debug() 195 const bool use_no_irq = msg->length == 0; in ssp_do_transfer() [all …]
|
/linux-4.1.27/drivers/staging/sm750fb/ |
D | ddk750_hwi2c.c | 95 unsigned int length, in hwI2CWriteData() argument 115 if (length < MAX_HWI2C_FIFO) in hwI2CWriteData() 116 count = length - 1; in hwI2CWriteData() 133 length -= (count + 1); in hwI2CWriteData() 138 } while (length > 0); in hwI2CWriteData() 162 unsigned int length, in hwI2CReadData() argument 182 if (length <= MAX_HWI2C_FIFO) in hwI2CReadData() 183 count = length - 1; in hwI2CReadData() 200 length -= (count + 1); in hwI2CReadData() 205 } while (length > 0); in hwI2CReadData()
|
/linux-4.1.27/drivers/iio/ |
D | kfifo_buf.c | 22 int bytes_per_datum, int length) in __iio_allocate_kfifo() argument 24 if ((length == 0) || (bytes_per_datum == 0)) in __iio_allocate_kfifo() 27 return __kfifo_alloc((struct __kfifo *)&buf->kf, length, in __iio_allocate_kfifo() 40 buf->buffer.length); in iio_request_update_kfifo() 67 static int iio_set_length_kfifo(struct iio_buffer *r, int length) in iio_set_length_kfifo() argument 70 if (length < 2) in iio_set_length_kfifo() 71 length = 2; in iio_set_length_kfifo() 72 if (r->length != length) { in iio_set_length_kfifo() 73 r->length = length; in iio_set_length_kfifo() 152 kf->buffer.length = 2; in iio_kfifo_allocate()
|
D | industrialio-buffer.c | 451 return sprintf(buf, "%d\n", buffer->length); in iio_buffer_read_length() 467 if (val == buffer->length) in iio_buffer_write_length() 479 if (buffer->length && buffer->length < buffer->watermark) in iio_buffer_write_length() 480 buffer->watermark = buffer->length; in iio_buffer_write_length() 500 int length, i; in iio_compute_scan_bytes() local 507 length = ch->scan_type.storagebits / 8 * in iio_compute_scan_bytes() 510 length = ch->scan_type.storagebits / 8; in iio_compute_scan_bytes() 511 bytes = ALIGN(bytes, length); in iio_compute_scan_bytes() 512 bytes += length; in iio_compute_scan_bytes() 518 length = ch->scan_type.storagebits / 8 * in iio_compute_scan_bytes() [all …]
|
/linux-4.1.27/arch/powerpc/platforms/pseries/ |
D | reconfig.c | 149 static char * parse_next_property(char *buf, char *end, char **name, int *length, in parse_next_property() argument 171 *length = -1; in parse_next_property() 172 *length = simple_strtoul(tmp, &tmp, 10); in parse_next_property() 173 if (*length == -1) { in parse_next_property() 186 tmp += *length; in parse_next_property() 203 static struct property *new_property(const char *name, const int length, in new_property() argument 213 if (!(new->value = kmalloc(length + 1, GFP_KERNEL))) in new_property() 216 memcpy(new->value, value, length); in new_property() 217 *(((char *)new->value) + length) = 0; in new_property() 218 new->length = length; in new_property() [all …]
|
/linux-4.1.27/drivers/tty/ipwireless/ |
D | hardware.c | 57 static void end_read_timing(unsigned length) in end_read_timing() argument 60 timing_stats.read_bytes += length + 2; in end_read_timing() 64 static void end_write_timing(unsigned length) in end_write_timing() argument 67 timing_stats.write_bytes += length + 2; in end_write_timing() 97 static void end_read_timing(unsigned length) { } in end_read_timing() argument 98 static void end_write_timing(unsigned length) { } in end_write_timing() argument 300 unsigned short length; member 337 unsigned int length; member 342 static char *data_type(const unsigned char *buf, unsigned length) in data_type() argument 346 if (length == 0) in data_type() [all …]
|
/linux-4.1.27/drivers/scsi/arm/ |
D | msgqueue.c | 86 int length = 0; in msgqueue_msglength() local 89 length += mq->msg.length; in msgqueue_msglength() 91 return length; in msgqueue_msglength() 118 int msgqueue_addmsg(MsgQueue_t *msgq, int length, ...) in msgqueue_addmsg() argument 127 va_start(ap, length); in msgqueue_addmsg() 128 for (i = 0; i < length; i++) in msgqueue_addmsg() 132 mq->msg.length = length; in msgqueue_addmsg()
|
D | arxescsi.c | 116 unsigned int length, error = 0; in arxescsi_dma_pseudo() local 120 length = SCp->this_residual; in arxescsi_dma_pseudo() 125 while (length > 256) { in arxescsi_dma_pseudo() 132 length -= 256; in arxescsi_dma_pseudo() 136 while (length > 0) { in arxescsi_dma_pseudo() 146 if (length > 1) { in arxescsi_dma_pseudo() 148 length -= 2; in arxescsi_dma_pseudo() 151 length -= 1; in arxescsi_dma_pseudo() 157 while (length >= 256) { in arxescsi_dma_pseudo() 168 length -= 256; in arxescsi_dma_pseudo() [all …]
|
D | eesox.c | 194 static void eesoxscsi_buffer_in(void *buf, int length, void __iomem *base) in eesoxscsi_buffer_in() argument 224 if (status > length) in eesoxscsi_buffer_in() 225 status = length; in eesoxscsi_buffer_in() 234 length -= 2; in eesoxscsi_buffer_in() 248 length -= 8; in eesoxscsi_buffer_in() 260 length -= 4; in eesoxscsi_buffer_in() 267 length -= 2; in eesoxscsi_buffer_in() 269 } while (length); in eesoxscsi_buffer_in() 272 static void eesoxscsi_buffer_out(void *buf, int length, void __iomem *base) in eesoxscsi_buffer_out() argument 302 if (status > length) in eesoxscsi_buffer_out() [all …]
|
D | cumana_2.c | 213 unsigned int length; in cumanascsi_2_dma_pseudo() local 216 length = SCp->this_residual; in cumanascsi_2_dma_pseudo() 221 while (length > 1) { in cumanascsi_2_dma_pseudo() 234 length -= 2; in cumanascsi_2_dma_pseudo() 241 while (length >= 256) { in cumanascsi_2_dma_pseudo() 253 length -= 256; in cumanascsi_2_dma_pseudo() 257 while (length > 0) { in cumanascsi_2_dma_pseudo() 269 if (--length > 0) { in cumanascsi_2_dma_pseudo() 271 length --; in cumanascsi_2_dma_pseudo() 317 cumanascsi_2_set_proc_info(struct Scsi_Host *host, char *buffer, int length) in cumanascsi_2_set_proc_info() argument [all …]
|
/linux-4.1.27/fs/xfs/ |
D | xfs_dir2_readdir.c | 211 ptr += be16_to_cpu(dup->length); in xfs_dir2_block_getdents() 280 int length; in xfs_dir2_leaf_readbuf() local 363 length = mip->map_valid + mip->nmap - i; in xfs_dir2_leaf_readbuf() 364 if (length) in xfs_dir2_leaf_readbuf() 366 sizeof(map[i]) * length); in xfs_dir2_leaf_readbuf() 439 for (j = 0; j < geo->fsbcount; j += length ) { in xfs_dir2_leaf_readbuf() 444 length = min_t(int, geo->fsbcount, in xfs_dir2_leaf_readbuf() 447 mip->ra_offset += length; in xfs_dir2_leaf_readbuf() 481 int length; /* temporary length value */ in xfs_dir2_leaf_getdents() local 501 length = howmany(bufsize + geo->blksize, (1 << geo->fsblog)); in xfs_dir2_leaf_getdents() [all …]
|
D | xfs_pnfs.c | 105 iomap->length = XFS_FSB_TO_B(mp, imap->br_blockcount); in xfs_bmbt_to_iomap() 115 u64 length, in xfs_fs_map_blocks() argument 157 if (offset > limit - length) in xfs_fs_map_blocks() 158 length = limit - offset; in xfs_fs_map_blocks() 167 end_fsb = XFS_B_TO_FSB(mp, (xfs_ufsize_t)offset + length); in xfs_fs_map_blocks() 184 error = xfs_iomap_write_direct(ip, offset, length, in xfs_fs_map_blocks() 273 u64 start, length, end; in xfs_fs_commit_blocks() local 279 end = start + maps[i].length; in xfs_fs_commit_blocks() 283 length = end - start; in xfs_fs_commit_blocks() 284 if (!length) in xfs_fs_commit_blocks() [all …]
|
D | xfs_extent_busy.c | 62 new->length = len; in xfs_extent_busy_insert() 78 ASSERT(new->bno + new->length <= busyp->bno); in xfs_extent_busy_insert() 81 ASSERT(bno >= busyp->bno + busyp->length); in xfs_extent_busy_insert() 131 if (bno < busyp->bno + busyp->length) in xfs_extent_busy_search() 136 match = (busyp->length == len) ? 1 : -1; in xfs_extent_busy_search() 168 xfs_agblock_t bend = bbno + busyp->length; in xfs_extent_busy_update_extent() 252 busyp->length = 0; in xfs_extent_busy_update_extent() 284 busyp->length = fbno - busyp->bno; in xfs_extent_busy_update_extent() 325 xfs_agblock_t bend = bbno + busyp->length; in xfs_extent_busy_reuse() 373 xfs_agblock_t bend = bbno + busyp->length; in xfs_extent_busy_trim() [all …]
|
/linux-4.1.27/drivers/s390/crypto/ |
D | zcrypt_pcicc.c | 112 static inline int is_PKCS11_padded(unsigned char *buffer, int length) in is_PKCS11_padded() argument 117 for (i = 2; i < length; i++) in is_PKCS11_padded() 120 if (i < 10 || i == length) in is_PKCS11_padded() 130 static inline int is_PKCS12_padded(unsigned char *buffer, int length) in is_PKCS12_padded() argument 135 for (i = 2; i < length; i++) in is_PKCS12_padded() 138 if ((i < 10) || (i == length)) in is_PKCS12_padded() 174 unsigned short length; in ICAMEX_msg_to_type6MEX_msg() member 197 msg->length = cpu_to_le16(vud_len + 2); in ICAMEX_msg_to_type6MEX_msg() 206 msg->length = cpu_to_le16(2 + vud_len); in ICAMEX_msg_to_type6MEX_msg() 228 ap_msg->length = (size + 3) & -4; in ICAMEX_msg_to_type6MEX_msg() [all …]
|
D | zcrypt_msgtype6.c | 185 unsigned short length; in ICAMEX_msg_to_type6MEX_msgX() member 191 msg->length = mex->inputdatalength + 2; in ICAMEX_msg_to_type6MEX_msgX() 215 ap_msg->length = size; in ICAMEX_msg_to_type6MEX_msgX() 253 unsigned short length; in ICACRT_msg_to_type6CRT_msgX() member 259 msg->length = crt->inputdatalength + 2; in ICACRT_msg_to_type6CRT_msgX() 282 ap_msg->length = size; in ICACRT_msg_to_type6CRT_msgX() 323 ap_msg->length = sizeof(struct type6_hdr) + in XCRB_msg_to_type6CPRB_msgX() 326 if (ap_msg->length > MSGTYPE06_MAX_MSG_SIZE) in XCRB_msg_to_type6CPRB_msgX() 430 ap_msg->length = sizeof(struct type6_hdr) + xcRB->req_len; in xcrb_msg_to_type6_ep11cprb_msgx() 501 unsigned short length; member [all …]
|
/linux-4.1.27/drivers/infiniband/hw/qib/ |
D | qib_keys.c | 181 isge->length = sge->length; in qib_lkey_ok() 182 isge->sge_length = sge->length; in qib_lkey_ok() 194 off + sge->length > mr->length || in qib_lkey_ok() 217 while (off >= mr->map[m]->segs[n].length) { in qib_lkey_ok() 218 off -= mr->map[m]->segs[n].length; in qib_lkey_ok() 228 isge->length = mr->map[m]->segs[n].length - off; in qib_lkey_ok() 229 isge->sge_length = sge->length; in qib_lkey_ok() 280 sge->length = len; in qib_rkey_ok() 293 if (unlikely(vaddr < mr->iova || off + len > mr->length || in qib_rkey_ok() 316 while (off >= mr->map[m]->segs[n].length) { in qib_rkey_ok() [all …]
|
D | qib_verbs.c | 169 void qib_copy_sge(struct qib_sge_state *ss, void *data, u32 length, int release) in qib_copy_sge() argument 173 while (length) { in qib_copy_sge() 174 u32 len = sge->length; in qib_copy_sge() 176 if (len > length) in qib_copy_sge() 177 len = length; in qib_copy_sge() 183 sge->length -= len; in qib_copy_sge() 190 } else if (sge->length == 0 && sge->mr->lkey) { in qib_copy_sge() 198 sge->length = in qib_copy_sge() 199 sge->mr->map[sge->m]->segs[sge->n].length; in qib_copy_sge() 202 length -= len; in qib_copy_sge() [all …]
|
/linux-4.1.27/drivers/net/ethernet/8390/ |
D | stnic.c | 222 stnic_block_input (struct net_device *dev, int length, struct sk_buff *skb, in stnic_block_input() argument 230 STNIC_WRITE (PG0_RBCR0, length & 0xff); in stnic_block_input() 231 STNIC_WRITE (PG0_RBCR1, length >> 8); in stnic_block_input() 234 if (length & 1) in stnic_block_input() 235 length++; in stnic_block_input() 237 while (length > 0) in stnic_block_input() 248 length -= sizeof (half); in stnic_block_input() 255 stnic_block_output (struct net_device *dev, int length, in stnic_block_output() argument 262 STNIC_WRITE (PG0_RBCR0, length & 0xff); in stnic_block_output() 263 STNIC_WRITE (PG0_RBCR1, length >> 8); in stnic_block_output() [all …]
|
/linux-4.1.27/drivers/isdn/hardware/eicon/ |
D | divasmain.c | 252 void PCIwrite(byte bus, byte func, int offset, void *data, int length, in PCIwrite() argument 257 switch (length) { in PCIwrite() 272 if (!(length % 4) && !(length & 0x03)) { /* Copy as dword */ in PCIwrite() 274 length /= 4; in PCIwrite() 276 while (length--) { in PCIwrite() 284 while (length--) { in PCIwrite() 293 void PCIread(byte bus, byte func, int offset, void *data, int length, in PCIread() argument 298 switch (length) { in PCIread() 310 if (!(length % 4) && !(length & 0x03)) { /* Copy as dword */ in PCIread() 312 length /= 4; in PCIread() [all …]
|
D | dqueue.c | 27 q->length[i] = 0; in diva_data_q_init() 50 q->length[i] = 0; in diva_data_q_finit() 73 diva_data_q_ack_segment4write(diva_um_idi_data_queue_t *q, int length) in diva_data_q_ack_segment4write() argument 76 q->length[q->write] = length; in diva_data_q_ack_segment4write() 97 return (q->length[q->read]); in diva_data_q_get_segment_length() 103 q->length[q->read] = 0; in diva_data_q_ack_segment4read()
|
D | dadapter.c | 173 static int diva_didd_read_adapter_array(DESCRIPTOR *buffer, int length) { in diva_didd_read_adapter_array() argument 176 memset(buffer, 0x00, length); in diva_didd_read_adapter_array() 177 length /= sizeof(DESCRIPTOR); in diva_didd_read_adapter_array() 178 DBG_TRC(("DIDD_Read, space = %d, Adapters = %d", length, Adapters + 2)) in diva_didd_read_adapter_array() 182 (Adapters && (src < NEW_MAX_DESCRIPTORS) && (dst < length)); in diva_didd_read_adapter_array() 190 if (dst < length) { in diva_didd_read_adapter_array() 196 if (dst < length) { in diva_didd_read_adapter_array() 203 return (dst == length); in diva_didd_read_adapter_array() 254 (int)pinfo->length)) { in diva_dadapter_request() 362 int length) { in DIVA_DIDD_Read() argument [all …]
|
D | diva.h | 13 const void *src, int length); 16 const void __user *src, int length); 22 int length, divas_xdi_copy_from_user_fn_t cp_fn); 25 int length,
|
/linux-4.1.27/drivers/target/iscsi/ |
D | iscsi_target_datain_values.c | 121 datain->length = read_data_left; in iscsit_set_datain_values_yes_and_yes() 130 datain->length = in iscsit_set_datain_values_yes_and_yes() 132 next_burst_len += datain->length; in iscsit_set_datain_values_yes_and_yes() 134 datain->length = (conn->sess->sess_ops->MaxBurstLength - in iscsit_set_datain_values_yes_and_yes() 149 cmd->read_data_done += datain->length; in iscsit_set_datain_values_yes_and_yes() 152 dr->read_data_done += datain->length; in iscsit_set_datain_values_yes_and_yes() 230 datain->length = (cmd->se_cmd.data_length - offset); in iscsit_set_datain_values_no_and_yes() 243 datain->length = in iscsit_set_datain_values_no_and_yes() 247 seq->next_burst_len += datain->length; in iscsit_set_datain_values_no_and_yes() 249 datain->length = (conn->sess->sess_ops->MaxBurstLength - in iscsit_set_datain_values_no_and_yes() [all …]
|
/linux-4.1.27/net/wireless/ |
D | wext-priv.c | 27 if (wrqu->data.length < dev->wireless_handlers->num_private_args) { in iw_handler_get_private() 31 wrqu->data.length = dev->wireless_handlers->num_private_args; in iw_handler_get_private() 36 wrqu->data.length = dev->wireless_handlers->num_private_args; in iw_handler_get_private() 40 sizeof(struct iw_priv_args) * wrqu->data.length); in iw_handler_get_private() 67 int num = iwp->length; in adjust_priv_size() 147 if (!iwp->pointer && iwp->length != 0) in ioctl_private_iw_point() 150 if (iwp->length > (descr->set_args & IW_PRIV_SIZE_MASK)) in ioctl_private_iw_point() 160 if (IW_IS_SET(cmd) && (iwp->length != 0)) { in ioctl_private_iw_point() 232 iwp.length = iwp_compat->length; in compat_private_call() 239 iwp_compat->length = iwp.length; in compat_private_call()
|
D | wext-core.c | 510 if (wrqu->data.length > descr->max_tokens) { in wireless_send_event() 512 cmd, wrqu->data.length); in wireless_send_event() 515 if (wrqu->data.length < descr->min_tokens) { in wireless_send_event() 517 cmd, wrqu->data.length); in wireless_send_event() 522 extra_len = wrqu->data.length * descr->token_size; in wireless_send_event() 612 compat_wrqu.length = wrqu->data.length; in wireless_send_event() 671 wrqu->data.length = sizeof(struct iw_statistics); in iw_handler_get_iwstats() 734 if (iwp->length == descr->max_tokens + 1) in ioctl_standard_iw_point() 736 else if (IW_IS_SET(cmd) && (iwp->length != 0)) { in ioctl_standard_iw_point() 739 len = iwp->length * descr->token_size; in ioctl_standard_iw_point() [all …]
|
/linux-4.1.27/drivers/net/wireless/prism54/ |
D | islpci_mgt.c | 47 display_buffer(char *buffer, int length) in display_buffer() argument 52 while (length > 0) { in display_buffer() 54 length--; in display_buffer() 70 pimfor_encode_header(int operation, u32 oid, u32 length, pimfor_header_t *h) in pimfor_encode_header() argument 77 h->length = cpu_to_be32(length); in pimfor_encode_header() 91 le32_to_cpus(&h->length); in pimfor_decode_header() 94 be32_to_cpus(&h->length); in pimfor_decode_header() 164 void *data, int length) in islpci_mgt_transmit() argument 176 int frag_len = length + PIMFOR_HEADER_SIZE; in islpci_mgt_transmit() 196 pimfor_encode_header(operation, oid, length, (pimfor_header_t *) p); in islpci_mgt_transmit() [all …]
|
/linux-4.1.27/tools/lib/traceevent/ |
D | kbuffer-parse.c | 297 unsigned int length; in old_update_pointers() local 328 length = len * 4; in old_update_pointers() 330 length = read_4(kbuf, ptr); in old_update_pointers() 331 length -= 4; in old_update_pointers() 339 kbuf->next = kbuf->index + length; in old_update_pointers() 360 unsigned long long *delta, int *length) in translate_data() argument 374 *length = read_4(kbuf, data); in translate_data() 383 *length = 0; in translate_data() 388 *length = 0; in translate_data() 391 *length = read_4(kbuf, data) - 4; in translate_data() [all …]
|
/linux-4.1.27/drivers/acpi/ |
D | utils.c | 76 if (!format || !format->pointer || (format->length < 1)) { in acpi_extract_package() 86 format_count = (format->length / sizeof(char)) - 1; in acpi_extract_package() 133 (element->string.length * sizeof(char)) + in acpi_extract_package() 139 sizeof(u8 *) + element->buffer.length; in acpi_extract_package() 181 if (buffer->length == ACPI_ALLOCATE_BUFFER) { in acpi_extract_package() 185 buffer->length = size_required; in acpi_extract_package() 187 if (buffer->length < size_required) { in acpi_extract_package() 188 buffer->length = size_required; in acpi_extract_package() 190 } else if (buffer->length != size_required || in acpi_extract_package() 244 element->string.length); in acpi_extract_package() [all …]
|
D | bus.c | 193 for (i = 0; i < context->cap.length; i += sizeof(u32)) in acpi_print_osc_error() 235 context->ret.length = ACPI_ALLOCATE_BUFFER; in acpi_run_osc() 242 in_params[0].buffer.length = 16; in acpi_run_osc() 247 in_params[2].integer.value = context->cap.length/sizeof(u32); in acpi_run_osc() 249 in_params[3].buffer.length = context->cap.length; in acpi_run_osc() 256 if (!output.length) in acpi_run_osc() 261 || out_obj->buffer.length != context->cap.length) { in acpi_run_osc() 290 context->ret.length = out_obj->buffer.length; in acpi_run_osc() 292 context->ret.length, GFP_KERNEL); in acpi_run_osc() 315 .cap.length = 8, in acpi_bus_osc_support() [all …]
|
/linux-4.1.27/net/sctp/ |
D | sm_make_chunk.c | 146 err.length = htons(len); in sctp_init_cause() 164 err.length = htons(len); in sctp_init_cause_fixed() 288 if (auth_hmacs->length) in sctp_make_init() 289 chunksize += WORD_ROUND(ntohs(auth_hmacs->length)); in sctp_make_init() 295 if (auth_chunks->length) in sctp_make_init() 296 chunksize += WORD_ROUND(ntohs(auth_chunks->length)); in sctp_make_init() 338 sat.param_hdr.length = htons(SCTP_SAT_LEN(num_types)); in sctp_make_init() 349 ext_param.param_hdr.length = in sctp_make_init() 361 aiparam.param_hdr.length = htons(sizeof(aiparam)); in sctp_make_init() 371 sctp_addto_chunk(retval, ntohs(auth_hmacs->length), in sctp_make_init() [all …]
|
/linux-4.1.27/drivers/media/usb/gspca/ |
D | conex.c | 246 int length; in cx_sensor() local 275 length = 8; in cx_sensor() 277 length = 4; in cx_sensor() 278 reg_w(gspca_dev, 0x00e5, ptsensor, length); in cx_sensor() 279 if (length == 4) in cx_sensor() 282 reg_r(gspca_dev, 0x00e8, length); in cx_sensor() 283 ptsensor += length; in cx_sensor() 597 int length; in cx11646_jpegInit() local 603 length = 8; in cx11646_jpegInit() 606 length = 6; in cx11646_jpegInit() [all …]
|
/linux-4.1.27/arch/m68k/mac/ |
D | macboing.c | 163 void mac_mksound( unsigned int freq, unsigned int length ) in mac_mksound() argument 180 mac_special_bell( freq, length, 128 ); in mac_mksound() 184 if ( freq < 20 || freq > 20000 || length == 0 ) in mac_mksound() 209 mac_sound_timer.expires = jiffies + length; in mac_mksound() 226 static void mac_quadra_start_bell( unsigned int freq, unsigned int length, unsigned int volume ) in mac_quadra_start_bell() argument 233 mac_bell_duration += length; in mac_quadra_start_bell() 237 mac_bell_duration = length; in mac_quadra_start_bell() 307 static void mac_av_start_bell( unsigned int freq, unsigned int length, unsigned int volume ) in mac_av_start_bell() argument
|
/linux-4.1.27/drivers/input/mouse/ |
D | cyapa_gen5.c | 305 __le16 length; member 344 __le16 length; member 448 int length; in cyapa_empty_pip_output_data() local 484 length = get_unaligned_le16(gen5_pip->empty_buf); in cyapa_empty_pip_output_data() 485 if (length == GEN5_RESP_LENGTH_SIZE) { in cyapa_empty_pip_output_data() 488 } else if (length > CYAPA_REG_MAP_SIZE) { in cyapa_empty_pip_output_data() 491 } else if (length == 0) { in cyapa_empty_pip_output_data() 493 length = GEN5_RESP_LENGTH_SIZE; in cyapa_empty_pip_output_data() 495 func(cyapa, gen5_pip->empty_buf, length)) { in cyapa_empty_pip_output_data() 496 length = min(buf_len, length); in cyapa_empty_pip_output_data() [all …]
|
/linux-4.1.27/sound/soc/codecs/ |
D | sigmadsp.c | 43 unsigned int length; member 48 __le32 length; member 200 const struct sigma_fw_chunk *chunk, unsigned int length) in sigma_fw_load_control() argument 209 if (length <= sizeof(*ctrl_chunk)) in sigma_fw_load_control() 214 name_len = length - sizeof(*ctrl_chunk); in sigma_fw_load_control() 251 const struct sigma_fw_chunk *chunk, unsigned int length) in sigma_fw_load_data() argument 256 if (length <= sizeof(*data_chunk)) in sigma_fw_load_data() 261 length -= sizeof(*data_chunk); in sigma_fw_load_data() 263 data = kzalloc(sizeof(*data) + length, GFP_KERNEL); in sigma_fw_load_data() 268 data->length = length; in sigma_fw_load_data() [all …]
|
/linux-4.1.27/arch/powerpc/kernel/ |
D | nvram_64.c | 47 unsigned short length; member 192 char *buff, int length, in nvram_write_os_partition() argument 203 if (length > part->size) in nvram_write_os_partition() 204 length = part->size; in nvram_write_os_partition() 218 rc = ppc_md.nvram_write(buff, length, &tmp_index); in nvram_write_os_partition() 232 int length, unsigned int *err_type, in nvram_read_partition() argument 242 if (length > part->size) in nvram_read_partition() 243 length = part->size; in nvram_read_partition() 257 rc = ppc_md.nvram_read(buff, length, &tmp_index); in nvram_read_partition() 529 size_t length, hdr_size; in nvram_pstore_read() local [all …]
|
/linux-4.1.27/drivers/memstick/host/ |
D | tifm_ms.c | 87 unsigned char *buf, unsigned int length) in tifm_ms_read_data() argument 92 while (host->io_pos && length) { in tifm_ms_read_data() 95 length--; in tifm_ms_read_data() 99 if (!length) in tifm_ms_read_data() 103 if (length < 4) in tifm_ms_read_data() 107 length -= 4; in tifm_ms_read_data() 111 if (length in tifm_ms_read_data() 117 length--; in tifm_ms_read_data() 118 if (!length) in tifm_ms_read_data() 127 unsigned char *buf, unsigned int length) in tifm_ms_write_data() argument [all …]
|
D | jmb38x_ms.c | 158 unsigned char *buf, unsigned int length) in jmb38x_ms_read_data() argument 162 while (host->io_pos && length) { in jmb38x_ms_read_data() 165 length--; in jmb38x_ms_read_data() 169 if (!length) in jmb38x_ms_read_data() 173 if (length < 4) in jmb38x_ms_read_data() 176 length -= 4; in jmb38x_ms_read_data() 180 if (length in jmb38x_ms_read_data() 186 length--; in jmb38x_ms_read_data() 187 if (!length) in jmb38x_ms_read_data() 197 unsigned int length) in jmb38x_ms_read_reg_data() argument [all …]
|
/linux-4.1.27/block/ |
D | cmdline-parser.c | 41 int length; in parse_subpart() local 50 length = min_t(int, next - partdef, in parse_subpart() 52 strncpy(new_subpart->name, partdef, length); in parse_subpart() 53 new_subpart->name[length] = '\0'; in parse_subpart() 93 int length; in parse_parts() local 110 length = min_t(int, next - bdevdef, sizeof(newparts->name) - 1); in parse_parts() 111 strncpy(newparts->name, bdevdef, length); in parse_parts() 112 newparts->name[length] = '\0'; in parse_parts() 121 length = (!next) ? (sizeof(buf) - 1) : in parse_parts() 124 strncpy(buf, bdevdef, length); in parse_parts() [all …]
|
D | ioctl.c | 20 long long start, length; in blkpg_ioctl() local 38 length = p.length >> 9; in blkpg_ioctl() 42 long pstart = start, plength = length; in blkpg_ioctl() 43 if (pstart != start || plength != length in blkpg_ioctl() 54 if (!(start + length <= part->start_sect || in blkpg_ioctl() 64 part = add_partition(disk, partno, start, length, in blkpg_ioctl() 98 length = p.length >> 9; in blkpg_ioctl() 102 long pstart = start, plength = length; in blkpg_ioctl() 103 if (pstart != start || plength != length in blkpg_ioctl() 129 !(start + length <= lpart->start_sect || in blkpg_ioctl() [all …]
|
/linux-4.1.27/drivers/gpu/ipu-v3/ |
D | ipu-cpmem.c | 297 ro = rgb->bits_per_pixel - rgb->red.length - rgb->red.offset; in ipu_cpmem_set_format_rgb() 298 go = rgb->bits_per_pixel - rgb->green.length - rgb->green.offset; in ipu_cpmem_set_format_rgb() 299 bo = rgb->bits_per_pixel - rgb->blue.length - rgb->blue.offset; in ipu_cpmem_set_format_rgb() 300 to = rgb->bits_per_pixel - rgb->transp.length - rgb->transp.offset; in ipu_cpmem_set_format_rgb() 302 ipu_ch_param_write_field(ch, IPU_FIELD_WID0, rgb->red.length - 1); in ipu_cpmem_set_format_rgb() 304 ipu_ch_param_write_field(ch, IPU_FIELD_WID1, rgb->green.length - 1); in ipu_cpmem_set_format_rgb() 306 ipu_ch_param_write_field(ch, IPU_FIELD_WID2, rgb->blue.length - 1); in ipu_cpmem_set_format_rgb() 309 if (rgb->transp.length) { in ipu_cpmem_set_format_rgb() 311 rgb->transp.length - 1); in ipu_cpmem_set_format_rgb() 456 .red = { .offset = 16, .length = 8, }, [all …]
|
/linux-4.1.27/drivers/parisc/ |
D | iommu-helpers.h | 35 sg_virt(startsg), startsg->length in iommu_fill_pdir() 70 sg_dma_len(dma_sg) += startsg->length; in iommu_fill_pdir() 71 size = startsg->length + dma_offset; in iommu_fill_pdir() 74 ioc->msg_pages += startsg->length >> IOVP_SHIFT; in iommu_fill_pdir() 119 dma_len = startsg->length; in iommu_coalesce_chunks() 134 startsg->length; in iommu_coalesce_chunks() 148 if (unlikely(ALIGN(dma_len + dma_offset + startsg->length, IOVP_SIZE) > in iommu_coalesce_chunks() 162 dma_len += startsg->length; in iommu_coalesce_chunks()
|
/linux-4.1.27/arch/parisc/math-emu/ |
D | fpbits.h | 53 #define Bitfield_extract(start, length, object) \ argument 54 ((object) >> (HOSTWDSZ - (start) - (length)) & \ 55 ((unsigned)-1 >> (HOSTWDSZ - (length)))) 57 #define Bitfield_signed_extract(start, length, object) \ argument 58 ((int)((object) << start) >> (HOSTWDSZ - (length)))
|
/linux-4.1.27/Documentation/ia64/ |
D | aliasing-test.c | 27 static int map_mem(char *path, off_t offset, size_t length, int touch) in map_mem() argument 45 addr = mmap(NULL, length, PROT_READ|PROT_WRITE, MAP_SHARED, fd, offset); in map_mem() 51 while (c < (int *) (addr + length)) in map_mem() 55 rc = munmap(addr, length); in map_mem() 65 static int scan_tree(char *path, char *file, off_t offset, size_t length, int touch) in scan_tree() argument 92 rc = map_mem(path2, offset, length, touch); in scan_tree() 94 …fprintf(stderr, "PASS: %s 0x%lx-0x%lx is %s\n", path2, offset, offset + length, touch ? "readable"… in scan_tree() 96 fprintf(stderr, "PASS: %s 0x%lx-0x%lx not mappable\n", path2, offset, offset + length); in scan_tree() 98 fprintf(stderr, "FAIL: %s 0x%lx-0x%lx not accessible\n", path2, offset, offset + length); in scan_tree() 104 rc = scan_tree(path2, file, offset, length, touch); in scan_tree()
|
/linux-4.1.27/fs/exofs/ |
D | ore.c | 243 bool is_reading, u64 offset, u64 length, in ore_get_rw_state() argument 251 if (layout->parity && length) { in ore_get_rw_state() 259 num_stripes = div_u64_rem(length, stripe_size, &remainder); in ore_get_rw_state() 291 if (length) { in ore_get_rw_state() 292 ore_calc_stripe_info(layout, offset, length, &ios->si); in ore_get_rw_state() 293 ios->length = ios->si.length; in ore_get_rw_state() 295 ios->length + PAGE_SIZE - 1) / PAGE_SIZE; in ore_get_rw_state() 449 _LLU(per_dev->length)); in ore_check_io() 457 u64 offset = (ios->offset + ios->length) - residual; in ore_check_io() 527 u64 length, struct ore_striping_info *si) in ore_calc_stripe_info() argument [all …]
|
/linux-4.1.27/drivers/input/joystick/ |
D | adi.c | 110 int length; member 181 static void adi_move_bits(struct adi_port *port, int length) in adi_move_bits() argument 192 adi[0].data[((length - 1) >> 1) + i + 1] = adi[1].data[i]; in adi_move_bits() 223 if (adi->ret < adi->length || adi->id != (adi_get_bits(adi, 4) | (adi_get_bits(adi, 4) << 4))) in adi_decode() 265 adi_move_bits(port, port->adi[0].length); in adi_read() 268 if (port->adi[i].length) in adi_read() 346 adi->length = adi_get_bits(adi, 10); in adi_id_decode() 348 if (adi->length >= ADI_MAX_LENGTH || adi->length < ADI_MIN_LENGTH) { in adi_id_decode() 349 printk(KERN_WARNING "adi: Bad data packet length (%d).\n", adi->length); in adi_id_decode() 350 adi->length = 0; in adi_id_decode() [all …]
|
D | interact.c | 59 unsigned char length; member 78 unsigned char length; member 91 static int interact_read_packet(struct gameport *gameport, int length, u32 *data) in interact_read_packet() argument 107 while (t > 0 && i < length) { in interact_read_packet() 137 if (interact_read_packet(interact->gameport, interact->length, data) < interact->length) { in interact_poll() 142 data[i] <<= INTERACT_MAX_LENGTH - interact->length; in interact_poll() 237 for (i = 0; interact_type[i].length; i++) in interact_connect() 241 if (!interact_type[i].length) { in interact_connect() 254 interact->length = interact_type[i].length; in interact_connect()
|
/linux-4.1.27/fs/ncpfs/ |
D | symlink.c | 45 int error, length, len; in ncp_symlink_readpage() local 58 0,NCP_MAX_SYMLINK_SIZE,rawlink,&length); in ncp_symlink_readpage() 67 if (length<NCP_MIN_SYMLINK_SIZE || in ncp_symlink_readpage() 72 length -= 8; in ncp_symlink_readpage() 78 error = ncp_vol2io(NCP_SERVER(inode), buf, &len, link, length, 0); in ncp_symlink_readpage() 109 int length, err, i, outlen; in ncp_symlink() local 144 length = strlen(symname); in ncp_symlink() 148 err = ncp_io2vol(NCP_SERVER(dir), rawlink + hdr, &outlen, symname, length, 0); in ncp_symlink()
|
/linux-4.1.27/fs/lockd/ |
D | clntxdr.c | 116 const u8 *data, const unsigned int length) in encode_netobj() argument 120 p = xdr_reserve_space(xdr, 4 + length); in encode_netobj() 121 xdr_encode_opaque(p, data, length); in encode_netobj() 127 u32 length; in decode_netobj() local 133 length = be32_to_cpup(p++); in decode_netobj() 134 if (unlikely(length > XDR_MAX_NETOBJ)) in decode_netobj() 136 obj->len = length; in decode_netobj() 140 dprintk("NFS: returned netobj was too long: %u\n", length); in decode_netobj() 159 u32 length; in decode_cookie() local 165 length = be32_to_cpup(p++); in decode_cookie() [all …]
|
D | clnt4xdr.c | 119 const u8 *data, const unsigned int length) in encode_netobj() argument 123 p = xdr_reserve_space(xdr, 4 + length); in encode_netobj() 124 xdr_encode_opaque(p, data, length); in encode_netobj() 130 u32 length; in decode_netobj() local 136 length = be32_to_cpup(p++); in decode_netobj() 137 if (unlikely(length > XDR_MAX_NETOBJ)) in decode_netobj() 139 obj->len = length; in decode_netobj() 143 dprintk("NFS: returned netobj was too long: %u\n", length); in decode_netobj() 162 u32 length; in decode_cookie() local 168 length = be32_to_cpup(p++); in decode_cookie() [all …]
|
/linux-4.1.27/Documentation/device-mapper/ |
D | dm-queue-length.txt | 1 dm-queue-length 4 dm-queue-length is a path selector module for device-mapper targets, 6 The path selector name is 'queue-length'. 23 dm-queue-length increments/decrements 'in-flight' when an I/O is 25 dm-queue-length selects a path with the minimum 'in-flight'. 32 # echo "0 10 multipath 0 0 1 1 queue-length 0 2 1 8:0 128 8:16 128" \ 36 test: 0 10 multipath 0 0 1 1 queue-length 0 2 1 8:0 128 8:16 128
|
/linux-4.1.27/arch/arm/mach-omap1/ |
D | io.c | 35 .length = OMAP1_IO_SIZE, 45 .length = OMAP7XX_DSP_SIZE, 50 .length = OMAP7XX_DSPREG_SIZE, 61 .length = OMAP1510_DSP_SIZE, 66 .length = OMAP1510_DSPREG_SIZE, 77 .length = OMAP16XX_DSP_SIZE, 82 .length = OMAP16XX_DSPREG_SIZE,
|
/linux-4.1.27/drivers/media/common/b2c2/ |
D | flexcop-sram.c | 178 u32 length; 180 length = len; 185 length = (((addr >> 0x0f) + 1) << 0x0f) - addr; 188 sram_read_chunk(adapter, addr, buf, length); 189 addr = addr + length; 190 buf = buf + length; 191 len = len - length; 197 u32 length; 199 length = len; 205 length = (((addr >> 0x0f) + 1) << 0x0f) - addr; [all …]
|
/linux-4.1.27/drivers/staging/media/lirc/ |
D | lirc_serial.c | 91 long (*send_pulse)(unsigned long length); 92 void (*send_space)(long length); 124 static long send_pulse_irdeo(unsigned long length); 125 static long send_pulse_homebrew(unsigned long length); 126 static void send_space_irdeo(long length); 127 static void send_space_homebrew(long length); 394 static long send_pulse_irdeo(unsigned long length) in send_pulse_irdeo() argument 402 rawbits = length * 1152 / 10000; in send_pulse_irdeo() 443 static long send_pulse_homebrew_softcarrier(unsigned long length) in send_pulse_homebrew_softcarrier() argument 452 length *= conv_us_to_clocks; in send_pulse_homebrew_softcarrier() [all …]
|
/linux-4.1.27/drivers/net/wireless/ath/carl9170/ |
D | fwdesc.h | 109 __le16 length; member 222 .length = cpu_to_le16(_length), \ 229 __le16 length, u8 min_ver, u8 cur_ver) in carl9170fw_fill_desc() argument 236 head->length = length; in carl9170fw_fill_desc() 244 le16_to_cpu(desc->length) >= CARL9170FW_DESC_HEAD_SIZE && \ 245 le16_to_cpu(desc->length) < CARL9170FW_DESC_MAX_LENGTH; \ 246 desc = (void *)((unsigned long)desc + le16_to_cpu(desc->length))) 263 (le16_to_cpu(head->length) >= min_len)) in carl9170fw_desc_cmp()
|
/linux-4.1.27/drivers/s390/char/ |
D | sclp_rw.c | 69 sccb->header.length = sizeof(struct write_sccb); in sclp_make_buffer() 70 sccb->msg_buf.header.length = sizeof(struct msg_buf); in sclp_make_buffer() 72 sccb->msg_buf.mdb.header.length = sizeof(struct mdb); in sclp_make_buffer() 76 sccb->msg_buf.mdb.go.length = sizeof(struct go); in sclp_make_buffer() 108 if ((MAX_SCCB_ROOM - sccb->header.length) < mto_size) in sclp_initialize_mto() 112 mto = (struct mto *)(((addr_t) sccb) + sccb->header.length); in sclp_initialize_mto() 119 mto->length = sizeof(struct mto); in sclp_initialize_mto() 150 mto = (struct mto *)(((addr_t) sccb) + sccb->header.length); in sclp_finalize_mto() 153 mto->length = mto_size; in sclp_finalize_mto() 159 sccb->header.length += mto_size; in sclp_finalize_mto() [all …]
|
D | sclp_ocf.c | 49 v = sclp_find_gds_vector(evbuf + 1, (void *) evbuf + evbuf->length, in sclp_ocf_handler() 54 v = sclp_find_gds_vector(v + 1, (void *) v + v->length, 0x9f22); in sclp_ocf_handler() 58 sv = sclp_find_gds_subvector(v + 1, (void *) v + v->length, 0x81); in sclp_ocf_handler() 62 netid = sclp_find_gds_subvector(sv + 1, (void *) sv + sv->length, 1); in sclp_ocf_handler() 64 cpc = sclp_find_gds_subvector(sv + 1, (void *) sv + sv->length, 2); in sclp_ocf_handler() 68 size = min(OCF_LENGTH_HMC_NETWORK, (size_t) netid->length); in sclp_ocf_handler() 74 size = min(OCF_LENGTH_CPC_NAME, (size_t) cpc->length); in sclp_ocf_handler()
|
/linux-4.1.27/arch/mips/include/asm/fw/cfe/ |
D | cfe_api.h | 101 int cfe_enummem(int idx, int flags, uint64_t * start, uint64_t * length, 112 int length, int *retlen, uint64_t offset); 114 int cfe_read(int handle, unsigned char *buffer, int length); 116 int length); 118 int cfe_write(int handle, const char *buffer, int length); 120 int length);
|
/linux-4.1.27/drivers/scsi/fnic/ |
D | wq_enet_desc.h | 24 __le16 length; member 52 u64 address, u16 length, u16 mss, u16 header_length, in wq_enet_desc_enc() argument 57 desc->length = cpu_to_le16(length & WQ_ENET_LEN_MASK); in wq_enet_desc_enc() 71 u64 *address, u16 *length, u16 *mss, u16 *header_length, in wq_enet_desc_dec() argument 76 *length = le16_to_cpu(desc->length) & WQ_ENET_LEN_MASK; in wq_enet_desc_dec()
|
D | rq_enet_desc.h | 42 u64 address, u8 type, u16 length) in rq_enet_desc_enc() argument 45 desc->length_type = cpu_to_le16((length & RQ_ENET_LEN_MASK) | in rq_enet_desc_enc() 50 u64 *address, u8 *type, u16 *length) in rq_enet_desc_dec() argument 53 *length = le16_to_cpu(desc->length_type) & RQ_ENET_LEN_MASK; in rq_enet_desc_dec()
|
/linux-4.1.27/drivers/net/ethernet/realtek/ |
D | atp.c | 197 static void write_packet(long ioaddr, int length, unsigned char *packet, int pad, int mode); 198 static void trigger_send(long ioaddr, int length); 203 static void read_block(long ioaddr, int length, unsigned char *buffer, int data_mode); 490 static void trigger_send(long ioaddr, int length) in trigger_send() argument 492 write_reg_byte(ioaddr, TxCNT0, length & 0xff); in trigger_send() 493 write_reg(ioaddr, TxCNT1, length >> 8); in trigger_send() 497 static void write_packet(long ioaddr, int length, unsigned char *packet, int pad_len, int data_mode) in write_packet() argument 499 if (length & 1) in write_packet() 501 length++; in write_packet() 511 } while (--length > pad_len) ; in write_packet() [all …]
|
/linux-4.1.27/drivers/thunderbolt/ |
D | ctl.c | 81 u32 length:6; /* in dwords */ member 179 u32 length) in check_config_address() argument 189 if (WARN(length != addr.length, "wrong space (expected %x, got %x\n)", in check_config_address() 190 length, addr.length)) in check_config_address() 441 size_t length, int timeout_msec, in tb_ctl_rx() argument 457 res = parse_header(pkg, length, type, route); in tb_ctl_rx() 459 memcpy(buffer, pkg->buffer, length); in tb_ctl_rx() 618 u32 offset, u32 length, int timeout_msec) in tb_cfg_read_raw() argument 627 .length = length, in tb_cfg_read_raw() 636 res = tb_ctl_rx(ctl, &reply, 12 + 4 * length, timeout_msec, route, in tb_cfg_read_raw() [all …]
|
/linux-4.1.27/drivers/ide/ |
D | ide-acpi.c | 244 output.length = ACPI_ALLOCATE_BUFFER; in do_drive_get_GTF() 258 if (!output.length || !output.pointer) { in do_drive_get_GTF() 261 (unsigned long long)output.length, in do_drive_get_GTF() 276 if (!out_obj->buffer.length || !out_obj->buffer.pointer || in do_drive_get_GTF() 277 out_obj->buffer.length % REGS_PER_GTF) { in do_drive_get_GTF() 280 __func__, out_obj->buffer.length, in do_drive_get_GTF() 287 *gtf_length = out_obj->buffer.length; in do_drive_get_GTF() 403 output.length = ACPI_ALLOCATE_BUFFER; in ide_acpi_get_timing() 412 (unsigned long long)output.length); in ide_acpi_get_timing() 419 if (!output.length || !output.pointer) { in ide_acpi_get_timing() [all …]
|
D | ide-floppy.c | 169 u16 length = 8; /* sizeof(Mode Parameter Header) = 8 Bytes */ in ide_floppy_create_mode_sense_cmd() local 178 length += 12; in ide_floppy_create_mode_sense_cmd() 181 length += 32; in ide_floppy_create_mode_sense_cmd() 186 put_unaligned(cpu_to_be16(length), (u16 *) &pc->c[7]); in ide_floppy_create_mode_sense_cmd() 187 pc->req_xfer = length; in ide_floppy_create_mode_sense_cmd() 379 int i, rc = 1, blocks, length; in ide_floppy_get_capacity() local 402 length = be16_to_cpup((__be16 *)&pc_buf[desc_start + 6]); in ide_floppy_get_capacity() 406 i, blocks * length / 1024, in ide_floppy_get_capacity() 407 blocks, length); in ide_floppy_get_capacity() 429 drive->name, blocks * length / 1024, in ide_floppy_get_capacity() [all …]
|
/linux-4.1.27/arch/alpha/kernel/ |
D | err_common.c | 31 mchk_dump_mem(void *data, size_t length, char **annotation) in mchk_dump_mem() argument 36 for (i = 0; (i * sizeof(*ldata)) < length; i++) { in mchk_dump_mem() 93 int length = 0; in el_process_header_subpacket() local 105 length = header->by_type.sys_err.frame_length; in el_process_header_subpacket() 112 length = header->by_type.sys_event.frame_length; in el_process_header_subpacket() 119 length = header->by_type.err_halt.frame_length; in el_process_header_subpacket() 126 length = header->by_type.logout_header.frame_length; in el_process_header_subpacket() 151 ((unsigned long)header + header->length + length); in el_process_header_subpacket() 185 ((unsigned long)header + header->length); in el_process_subpackets() 237 mchk_dump_mem(header, header->length, annotation); in el_annotate_subpacket()
|
/linux-4.1.27/drivers/usb/mon/ |
D | mon_bin.c | 227 unsigned int off, const unsigned char *from, unsigned int length) in mon_copy_to_buff() argument 233 while (length) { in mon_copy_to_buff() 237 step_len = length; in mon_copy_to_buff() 249 length -= step_len; in mon_copy_to_buff() 259 char __user *to, int length) in copy_from_buf() argument 265 while (length) { in copy_from_buf() 269 step_len = length; in copy_from_buf() 282 length -= step_len; in copy_from_buf() 401 unsigned int offset, struct urb *urb, unsigned int length, in mon_bin_get_data() argument 412 return length; in mon_bin_get_data() [all …]
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
D | i915_gem_gtt.h | 272 uint64_t length); 275 uint64_t length, 344 #define gen6_for_each_pde(pt, pd, start, length, temp, iter) \ argument 346 pt = (pd)->page_table[iter], length > 0 && iter < I915_PDES; \ 349 temp = min_t(unsigned, temp, length), \ 350 start += temp, length -= temp) 363 static inline uint32_t i915_pte_count(uint64_t addr, size_t length, in i915_pte_count() argument 369 WARN_ON(length == 0); in i915_pte_count() 370 WARN_ON(offset_in_page(addr|length)); in i915_pte_count() 372 end = addr + length; in i915_pte_count() [all …]
|
/linux-4.1.27/fs/nfs/flexfilelayout/ |
D | flexfilelayoutdev.c | 185 u64 offset, u64 length) in extend_ds_error() argument 189 end = max_t(u64, end_offset(err->offset, err->length), in extend_ds_error() 190 end_offset(offset, length)); in extend_ds_error() 192 err->length = end - err->offset; in extend_ds_error() 196 u64 length, int status, enum nfs_opnum4 opnum, in ds_error_can_merge() argument 203 end_offset(err->offset, err->length) >= offset && in ds_error_can_merge() 204 err->offset <= end_offset(offset, length); in ds_error_can_merge() 210 if (!ds_error_can_merge(old, new->offset, new->length, new->status, in merge_ds_error() 214 extend_ds_error(old, new->offset, new->length); in merge_ds_error() 236 u64 length, int status, enum nfs_opnum4 opnum, in ff_layout_update_ds_error() argument [all …]
|
/linux-4.1.27/arch/m68k/atari/ |
D | atasound.c | 86 int length = (ticks * PSG_ENV_FREQ_10) / HZ / 10; in atari_mksound() local 88 if (length > 0xffff) length = 0xffff; in atari_mksound() 90 sound_ym.wd_data = length & 0xff; in atari_mksound() 92 sound_ym.wd_data = length >> 8; in atari_mksound()
|
/linux-4.1.27/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_crat.h | 49 uint32_t length; member 94 uint8_t length; member 127 uint8_t length; member 153 uint8_t length; member 182 uint8_t length; member 213 uint8_t length; member 242 uint8_t length; member 266 uint8_t length; member 279 uint32_t length; member
|
/linux-4.1.27/drivers/mtd/ |
D | mtdchar.c | 363 uint64_t start, uint32_t length, void __user *ptr, in mtdchar_writeoob() argument 374 if (length > 4096) in mtdchar_writeoob() 380 ret = access_ok(VERIFY_READ, ptr, length) ? 0 : -EFAULT; in mtdchar_writeoob() 385 ops.ooblen = length; in mtdchar_writeoob() 394 ops.oobbuf = memdup_user(ptr, length); in mtdchar_writeoob() 404 if (copy_to_user(retp, &retlen, sizeof(length))) in mtdchar_writeoob() 412 uint64_t start, uint32_t length, void __user *ptr, in mtdchar_readoob() argument 419 if (length > 4096) in mtdchar_readoob() 422 if (!access_ok(VERIFY_WRITE, ptr, length)) in mtdchar_readoob() 425 ops.ooblen = length; in mtdchar_readoob() [all …]
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | ramcfg.c | 41 if (bit_M.version == 1 && bit_M.length >= 5) in nvbios_ramcfg_count() 43 if (bit_M.version == 2 && bit_M.length >= 3) in nvbios_ramcfg_count() 61 if (bit_M.version == 1 && bit_M.length >= 5) in nvbios_ramcfg_index() 63 if (bit_M.version == 2 && bit_M.length >= 3) { in nvbios_ramcfg_index() 68 if (bit_M.length >= 7 && in nvbios_ramcfg_index()
|
D | shadowrom.c | 28 prom_read(void *data, u32 offset, u32 length, struct nvkm_bios *bios) in prom_read() argument 31 if (offset + length <= 0x00100000) { in prom_read() 32 for (i = offset; i < offset + length; i += 4) in prom_read() 34 return length; in prom_read()
|
D | shadowof.c | 34 of_read(void *data, u32 offset, u32 length, struct nvkm_bios *bios) in of_read() argument 37 if (offset + length <= priv->size) { in of_read() 38 memcpy_fromio(bios->data + offset, priv->data + offset, length); in of_read() 39 return length; in of_read()
|
/linux-4.1.27/arch/powerpc/perf/ |
D | hv-gpci.c | 51 EVENT_DEFINE_RANGE_FORMAT(length, config1, 24, 31); 134 u16 secondary_index, u8 version_in, u32 offset, u8 length, in single_gpci_request() argument 165 for (i = offset; i < offset + length; i++) in single_gpci_request() 216 u8 length; in h_gpci_event_init() local 241 length = event_get_length(event); in h_gpci_event_init() 242 if (length < 1 || length > 8) { in h_gpci_event_init() 248 if ((event_get_offset(event) + length) > GPCI_MAX_DATA_BYTES) { in h_gpci_event_init() 250 (size_t)event_get_offset(event) + length, in h_gpci_event_init() 261 length, in h_gpci_event_init()
|
/linux-4.1.27/drivers/usb/storage/ |
D | freecom.c | 43 static void pdump(struct us_data *us, void *ibuffer, int length); 228 int length; in freecom_transport() local 331 length = le16_to_cpu(fst->Count); in freecom_transport() 334 length = scsi_bufflen(srb); in freecom_transport() 338 if (length > scsi_bufflen(srb)) { in freecom_transport() 339 length = scsi_bufflen(srb); in freecom_transport() 341 length); in freecom_transport() 350 if (!length) in freecom_transport() 358 result = freecom_readdata (srb, us, ipipe, opipe, length); in freecom_transport() 382 if (!length) in freecom_transport() [all …]
|
/linux-4.1.27/drivers/pci/hotplug/ |
D | cpqphp_ctrl.c | 329 ((*head)->length > (*head)->next->length)) { in sort_by_size() 340 if (current_res->next->length > current_res->next->next->length) { in sort_by_size() 377 ((*head)->length < (*head)->next->length)) { in sort_by_max_size() 388 if (current_res->next->length < current_res->next->next->length) { in sort_by_max_size() 431 if ((*head)->length == (*orig_head)->length) in do_pre_bridge_resource_split() 441 if (node->length & (alignment -1)) { in do_pre_bridge_resource_split() 450 temp_dword = (node->length | (alignment-1)) + 1 - alignment; in do_pre_bridge_resource_split() 453 split_node->length = temp_dword; in do_pre_bridge_resource_split() 455 node->length -= temp_dword; in do_pre_bridge_resource_split() 456 node->base += split_node->length; in do_pre_bridge_resource_split() [all …]
|
D | cpqphp_sysfs.c | 52 out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length); in show_ctrl() 59 out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length); in show_ctrl() 66 out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length); in show_ctrl() 73 out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length); in show_ctrl() 98 out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length); in show_dev() 105 out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length); in show_dev() 112 out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length); in show_dev() 119 out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length); in show_dev()
|
/linux-4.1.27/arch/arm/mach-exynos/ |
D | exynos.c | 42 .length = SZ_4K, 47 .length = SZ_128K, 52 .length = SZ_8K, 57 .length = SZ_64K, 62 .length = SZ_64K, 71 .length = SZ_4K, 76 .length = 144 * SZ_1K, 136 iodesc.length = be32_to_cpu(reg[1]) - 1; in exynos_fdt_map_chipid()
|
/linux-4.1.27/drivers/regulator/ |
D | pwm-regulator.c | 109 int length, ret; in pwm_regulator_probe() local 123 prop = of_find_property(np, "voltage-table", &length); in pwm_regulator_probe() 129 if ((length < sizeof(*drvdata->duty_cycle_table)) || in pwm_regulator_probe() 130 (length % sizeof(*drvdata->duty_cycle_table))) { in pwm_regulator_probe() 132 length); in pwm_regulator_probe() 136 drvdata->desc.n_voltages = length / sizeof(*drvdata->duty_cycle_table); in pwm_regulator_probe() 139 length, GFP_KERNEL); in pwm_regulator_probe() 146 length / sizeof(u32)); in pwm_regulator_probe()
|
/linux-4.1.27/drivers/usb/serial/ |
D | safe_serial.c | 198 unsigned char length = urb->actual_length; in safe_process_read_urb() local 202 if (!length) in safe_process_read_urb() 208 fcs = fcs_compute10(data, length, CRC10_INITFCS); in safe_process_read_urb() 214 actual_length = data[length - 2] >> 2; in safe_process_read_urb() 215 if (actual_length > (length - 2)) { in safe_process_read_urb() 217 __func__, actual_length, length); in safe_process_read_urb() 221 length = actual_length; in safe_process_read_urb() 223 tty_insert_flip_string(&port->port, data, length); in safe_process_read_urb()
|
/linux-4.1.27/drivers/misc/mei/ |
D | bus.c | 227 static ssize_t ___mei_cl_send(struct mei_cl *cl, u8 *buf, size_t length, in ___mei_cl_send() argument 253 if (length > me_cl->props.max_msg_length) { in ___mei_cl_send() 258 cb = mei_cl_alloc_cb(cl, length, MEI_FOP_WRITE, NULL); in ___mei_cl_send() 264 memcpy(cb->buf.data, buf, length); in ___mei_cl_send() 277 ssize_t __mei_cl_recv(struct mei_cl *cl, u8 *buf, size_t length) in __mei_cl_recv() argument 295 rets = mei_cl_read_start(cl, length, NULL); in __mei_cl_recv() 332 r_length = min_t(size_t, length, cb->buf_idx); in __mei_cl_recv() 344 inline ssize_t __mei_cl_async_send(struct mei_cl *cl, u8 *buf, size_t length) in __mei_cl_async_send() argument 346 return ___mei_cl_send(cl, buf, length, 0); in __mei_cl_async_send() 349 inline ssize_t __mei_cl_send(struct mei_cl *cl, u8 *buf, size_t length) in __mei_cl_send() argument [all …]
|
/linux-4.1.27/sound/pci/asihpi/ |
D | hpi6000.c | 195 u32 length); 198 u32 length); 954 u32 length; in hpi6000_adapter_boot_load_dsp() local 959 error = hpi_dsp_code_read_word(&dsp_code, &length); in hpi6000_adapter_boot_load_dsp() 962 if (length == 0xFFFFFFFF) in hpi6000_adapter_boot_load_dsp() 971 error = hpi_dsp_code_read_block(length, &dsp_code, in hpi6000_adapter_boot_load_dsp() 976 address, pcode, length); in hpi6000_adapter_boot_load_dsp() 989 u32 length; in hpi6000_adapter_boot_load_dsp() local 994 hpi_dsp_code_read_word(&dsp_code, &length); in hpi6000_adapter_boot_load_dsp() 995 if (length == 0xFFFFFFFF) in hpi6000_adapter_boot_load_dsp() [all …]
|
/linux-4.1.27/arch/arm/kernel/ |
D | dma-isa.c | 61 unsigned long address, length; in isa_enable_dma() local 91 dma->buf.length = dma->count; in isa_enable_dma() 98 length = dma->buf.length - 1; in isa_enable_dma() 105 length >>= 1; in isa_enable_dma() 113 outb(length, isa_dma_port[chan][ISA_DMA_COUNT]); in isa_enable_dma() 114 outb(length >> 8, isa_dma_port[chan][ISA_DMA_COUNT]); in isa_enable_dma()
|
/linux-4.1.27/drivers/s390/scsi/ |
D | zfcp_dbf.c | 39 void zfcp_dbf_pl_write(struct zfcp_dbf *dbf, void *data, u16 length, char *area, in zfcp_dbf_pl_write() argument 50 while (offset < length) { in zfcp_dbf_pl_write() 52 (u16) (length - offset)); in zfcp_dbf_pl_write() 136 rec->pl_len = (!srb->length) ? 0 : srb->length - in zfcp_dbf_hba_fsf_uss() 187 u16 length; in zfcp_dbf_hba_def_err() local 198 length = min((u16)sizeof(struct qdio_buffer), in zfcp_dbf_hba_def_err() 202 memcpy(payload->data, (char *)pl[payload->counter], length); in zfcp_dbf_hba_def_err() 203 debug_event(dbf->pay, 1, payload, zfcp_dbf_plen(length)); in zfcp_dbf_hba_def_err() 355 u16 length; in zfcp_dbf_san_req() local 357 length = (u16)(ct_els->req->length + FC_CT_HDR_LEN); in zfcp_dbf_san_req() [all …]
|
/linux-4.1.27/tools/perf/util/ |
D | string.c | 12 s64 length; in perf_atoll() local 19 length = strtoll(str, &p, 10); in perf_atoll() 25 return length; in perf_atoll() 30 length <<= 10; in perf_atoll() 33 length <<= 20; in perf_atoll() 36 length <<= 30; in perf_atoll() 39 length <<= 40; in perf_atoll() 50 return length; in perf_atoll()
|
/linux-4.1.27/arch/arm/mach-tegra/ |
D | io.c | 37 .length = IO_PPSB_SIZE, 43 .length = IO_APB_SIZE, 49 .length = IO_CPU_SIZE, 55 .length = IO_IRAM_SIZE,
|
/linux-4.1.27/drivers/s390/cio/ |
D | cio_debug.h | 23 static inline void CIO_HEX_EVENT(int level, void *data, int length) in CIO_HEX_EVENT() argument 27 while (length > 0) { in CIO_HEX_EVENT() 28 debug_event(cio_debug_trace_id, level, data, length); in CIO_HEX_EVENT() 29 length -= cio_debug_trace_id->buf_size; in CIO_HEX_EVENT()
|
/linux-4.1.27/drivers/hid/ |
D | hid-cp2112.c | 99 __be16 length; member 105 __be16 length; member 113 u8 length; member 119 __be16 length; member 127 __be16 length; member 133 u8 length; /* length in bytes of everyting after .report */ member 362 report.length = cpu_to_be16(size); in cp2112_read() 387 static int cp2112_read_req(void *buf, u8 slave_address, u16 length) in cp2112_read_req() argument 391 if (length < 1 || length > 512) in cp2112_read_req() 396 report->length = cpu_to_be16(length); in cp2112_read_req() [all …]
|
/linux-4.1.27/drivers/media/platform/vivid/ |
D | vivid-osd.c | 66 if (dev->fb_defined.green.length == 6) in vivid_clear_fb() 146 if (var->green.length == 5) { in _vivid_fb_check_var() 148 var->red.length = 5; in _vivid_fb_check_var() 150 var->green.length = 5; in _vivid_fb_check_var() 152 var->blue.length = 5; in _vivid_fb_check_var() 154 var->transp.length = 1; in _vivid_fb_check_var() 157 var->red.length = 5; in _vivid_fb_check_var() 159 var->green.length = 6; in _vivid_fb_check_var() 161 var->blue.length = 5; in _vivid_fb_check_var() 163 var->transp.length = 0; in _vivid_fb_check_var() [all …]
|
/linux-4.1.27/Documentation/devicetree/bindings/powerpc/nintendo/ |
D | wii.txt | 31 - reg : should contain the VI registers location and length 42 - reg : should contain the PI registers location and length 64 - reg : should contain the DSP registers location and length 76 - reg : should contain the SI registers location and length 87 - reg : should contain the AI registers location and length 97 - reg : should contain the EXI registers location and length 107 - reg : should contain the OHCI registers location and length 117 - reg : should contain the EHCI registers location and length 127 - reg : should contain the SDHCI registers location and length 136 - reg : should contain the IPC registers location and length [all …]
|
/linux-4.1.27/scripts/gdb/linux/ |
D | dmesg.py | 36 length = log_next_idx - log_first_idx 37 log_buf = inf.read_memory(start, length) 45 length = utils.read_u16(log_buf[pos + 8:pos + 10]) 46 if length == 0: 62 pos += length
|
/linux-4.1.27/drivers/scsi/ |
D | script_asm.pl | 219 local ($address, $offset, $length, $value) = @_; 221 print STDERR "Patching $address at offset $offset, length $length to $value\n"; 225 $mask = ($inverted_masks[$length] << ($offset * 8)); 244 local ($value, $word, $offset, $length) = @_; 262 print STDERR "Referencing symbol $1, length = $length in $_\n" if ($debug); 266 "$symbol_references{$symbol} $relative,$tmp,$length"; 272 $symbol_references{$symbol} = "$relative,$tmp,$length"; 277 &patch ($address + $word, $offset, $length, $value); 814 $length = $3; 817 size $length\n" [all …]
|
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/ |
D | nvm.c | 96 u16 offset, u16 length, const u8 *data) in iwl_nvm_write_chunk() argument 100 .length = cpu_to_le16(length), in iwl_nvm_write_chunk() 106 .len = { sizeof(struct iwl_nvm_access_cmd), length }, in iwl_nvm_write_chunk() 117 u16 offset, u16 length, u8 *data) in iwl_nvm_read_chunk() argument 121 .length = cpu_to_le16(length), in iwl_nvm_read_chunk() 152 bytes_read = le16_to_cpu(nvm_resp->length); in iwl_nvm_read_chunk() 196 const u8 *data, u16 length) in iwl_nvm_write_section() argument 202 while (offset < length) { in iwl_nvm_write_section() 206 length - offset); in iwl_nvm_write_section() 232 u16 length, offset = 0; in iwl_nvm_read_section() local [all …]
|
/linux-4.1.27/drivers/staging/rtl8192e/rtl8192e/ |
D | r8192E_cmdpkt.h | 35 u8 length; member 62 u8 length; member 70 u8 length; member 88 u8 length; member 117 u8 length; member 125 u8 length; member
|
/linux-4.1.27/drivers/staging/rtl8192u/ |
D | r819xU_cmdpkt.h | 25 u8 length; /* Command packet length. */ member 61 u8 length; /* Command packet length. */ member 70 u8 length; /* Command packet length. */ member 95 u8 length; /* Command packet length */ member 135 u8 length; /* Command packet length */ member 148 u8 length; /* Command packet length */ member
|
/linux-4.1.27/arch/arm/mach-integrator/ |
D | integrator_cp.c | 70 .length = SZ_4K, 75 .length = SZ_4K, 80 .length = SZ_4K, 85 .length = SZ_4K, 90 .length = SZ_4K, 95 .length = SZ_4K, 100 .length = SZ_4K, 186 (var->bits_per_pixel == 16 && var->green.length == 5)) in cp_clcd_enable()
|
/linux-4.1.27/include/uapi/linux/ |
D | firewire-cdev.h | 120 __u32 length; member 138 __u32 length; member 201 __u32 length; member 351 __u32 length; member 507 __u32 length; member 529 __u32 length; member 574 __u32 length; member 641 __u32 length; member 992 __u32 length; member
|
/linux-4.1.27/arch/arm/mach-cns3xxx/ |
D | core.c | 33 .length = SZ_8K, 38 .length = SZ_4K, 43 .length = SZ_4K, 48 .length = SZ_4K, 54 .length = SZ_4K, 59 .length = SZ_64K, /* really 4 KiB at offset 32 KiB */ 64 .length = SZ_16M, 69 .length = SZ_4K, 74 .length = SZ_64K, /* really 4 KiB at offset 32 KiB */ 79 .length = SZ_16M,
|
/linux-4.1.27/arch/arm/mach-realview/ |
D | realview_pbx.c | 54 .length = SZ_4K, 59 .length = SZ_4K, 64 .length = SZ_4K, 69 .length = SZ_4K, 74 .length = SZ_4K, 79 .length = SZ_4K, 86 .length = REALVIEW_PBX_PCI_BASE_SIZE, 94 .length = SZ_4K, 104 .length = SZ_4K, 109 .length = SZ_4K, [all …]
|
D | realview_pb1176.c | 57 .length = SZ_4K, 62 .length = SZ_4K, 67 .length = SZ_4K, 72 .length = SZ_4K, 77 .length = SZ_4K, 82 .length = SZ_4K, 87 .length = SZ_4K, 92 .length = SZ_4K, 97 .length = SZ_8K, 104 .length = SZ_4K,
|
/linux-4.1.27/tools/testing/selftests/vm/ |
D | hugetlbfstest.c | 14 static size_t length = 1 << 24; variable 40 p = mmap(NULL, length, PROT_READ | PROT_WRITE, flags, fd, 0); in do_mmap() 44 assert(llabs(after - before - length) < 0x40000 || in do_mmap() 48 ret = munmap(p, length); in do_mmap() 64 err = ftruncate(fd, length); in open_file()
|
/linux-4.1.27/drivers/mtd/ubi/ |
D | misc.c | 36 int length) in ubi_calc_data_len() argument 40 ubi_assert(!(length & (ubi->min_io_size - 1))); in ubi_calc_data_len() 42 for (i = length - 1; i >= 0; i--) in ubi_calc_data_len() 47 length = ALIGN(i + 1, ubi->min_io_size); in ubi_calc_data_len() 48 return length; in ubi_calc_data_len()
|
/linux-4.1.27/drivers/usb/gadget/function/ |
D | rndis.c | 69 static rndis_resp_t *rndis_add_response(int configNr, u32 length); 167 u32 length = 4; /* usually */ in gen_ndis_query_resp() local 205 length = sizeof(oid_supported_list); in gen_ndis_query_resp() 206 count = length / sizeof(u32); in gen_ndis_query_resp() 295 length = strlen(rndis_per_dev_params[configNr]. in gen_ndis_query_resp() 299 length); in gen_ndis_query_resp() 413 length = ETH_ALEN; in gen_ndis_query_resp() 416 length); in gen_ndis_query_resp() 425 length = ETH_ALEN; in gen_ndis_query_resp() 428 length); in gen_ndis_query_resp() [all …]
|
/linux-4.1.27/fs/coda/ |
D | upcall.c | 130 const char *name, int length, int * type, in venus_lookup() argument 139 insize = max_t(unsigned int, offset + length +1, OUTSIZE(lookup)); in venus_lookup() 146 memcpy((char *)(inp) + offset, name, length); in venus_lookup() 147 *((char *)inp + offset + length) = '\0'; in venus_lookup() 201 const char *name, int length, in venus_mkdir() argument 210 insize = max_t(unsigned int, offset + length + 1, OUTSIZE(mkdir)); in venus_mkdir() 217 memcpy((char *)(inp) + offset, name, length); in venus_mkdir() 218 *((char *)inp + offset + length) = '\0'; in venus_mkdir() 269 const char *name, int length, int excl, int mode, in venus_create() argument 278 insize = max_t(unsigned int, offset + length + 1, OUTSIZE(create)); in venus_create() [all …]
|
/linux-4.1.27/Documentation/ |
D | lzo.txt | 25 - a length (number of bytes to copy from dictionary) 30 extra data can be a complement for the operand (eg: a length or a distance 39 length, up to 255 may be added in increments by consuming more bytes with a 41 around 255:1). The variable length encoding using #bits is always the same : 43 length = byte & ((1 << #bits) - 1) 44 if (!length) { 45 length = ((1 << #bits) - 1) 46 length += 255*(number of zero bytes) 47 length += first-non-zero-byte 49 length += constant (generally 2 or 3) [all …]
|
/linux-4.1.27/drivers/staging/ozwpan/ |
D | ozusbsvc1.c | 38 ei->length = elt->length + sizeof(struct oz_elt); in oz_usb_submit_elt() 77 elt->length = sizeof(struct oz_get_desc_req); in oz_usb_get_desc_req() 105 elt->length = sizeof(struct oz_set_config_req); in oz_usb_set_config_req() 128 elt->length = sizeof(struct oz_set_interface_req); in oz_usb_set_interface_req() 153 elt->length = sizeof(struct oz_feature_req); in oz_usb_set_clear_feature_req() 179 elt->length = sizeof(struct oz_vendor_class_req) - 1 + data_len; in oz_usb_vendor_class_req() 261 oz_send_isoc_unit(pd, ep_num, data, desc->length); in oz_usb_send_isoc() 285 unit_size = urb->iso_frame_desc[i].length; in oz_usb_send_isoc() 291 if ((unit_size == desc->length) && in oz_usb_send_isoc() 292 (desc->length <= rem)) { in oz_usb_send_isoc() [all …]
|
/linux-4.1.27/drivers/gpu/drm/ |
D | drm_fb_helper.c | 701 red >>= (16 - info->var.red.length); in setcolreg() 702 green >>= (16 - info->var.green.length); in setcolreg() 703 blue >>= (16 - info->var.blue.length); in setcolreg() 707 if (info->var.transp.length > 0) { in setcolreg() 708 u32 mask = (1 << info->var.transp.length) - 1; in setcolreg() 844 depth = (var->green.length == 6) ? 16 : 15; in drm_fb_helper_check_var() 847 depth = (var->transp.length > 0) ? 32 : 24; in drm_fb_helper_check_var() 859 var->red.length = 8; in drm_fb_helper_check_var() 860 var->green.length = 8; in drm_fb_helper_check_var() 861 var->blue.length = 8; in drm_fb_helper_check_var() [all …]
|
/linux-4.1.27/crypto/ |
D | scatterwalk.c | 37 BUG_ON(!sg->length); in scatterwalk_start() 64 if (walk->offset >= walk->sg->offset + walk->sg->length) in scatterwalk_pagedone() 115 if (start < offset + sg->length) in scatterwalk_map_and_copy() 118 offset += sg->length; in scatterwalk_map_and_copy() 133 if (num_bytes < sg->length) in scatterwalk_bytes_sglen() 137 offset += sg->length; in scatterwalk_bytes_sglen()
|
/linux-4.1.27/fs/ceph/ |
D | locks.c | 42 u64 length = 0; in ceph_lock_message() local 57 length = 0; in ceph_lock_message() 59 length = fl->fl_end - fl->fl_start + 1; in ceph_lock_message() 65 (int)operation, owner, (u64)fl->fl_pid, fl->fl_start, length, in ceph_lock_message() 73 req->r_args.filelock_change.length = cpu_to_le64(length); in ceph_lock_message() 91 length = le64_to_cpu(req->r_reply_info.filelock_reply->start) + in ceph_lock_message() 92 le64_to_cpu(req->r_reply_info.filelock_reply->length); in ceph_lock_message() 93 if (length >= 1) in ceph_lock_message() 94 fl->fl_end = length -1; in ceph_lock_message() 103 length, wait, fl->fl_type, err); in ceph_lock_message() [all …]
|
/linux-4.1.27/drivers/media/pci/ivtv/ |
D | ivtv-queue.c | 48 q->length = 0; in ivtv_queue_init() 66 q->length += s->buf_size; in ivtv_enqueue() 81 q->length -= s->buf_size; in ivtv_dequeue() 95 from->length -= s->buf_size; in ivtv_queue_move_buf() 101 to->length += s->buf_size; in ivtv_queue_move_buf() 134 needed_bytes = from->length; in ivtv_queue_move() 137 bytes_available = from_free ? from->length : from->bytesused; in ivtv_queue_move() 138 bytes_steal = (from_free && steal) ? steal->length : 0; in ivtv_queue_move() 156 steal->length -= s->buf_size; in ivtv_queue_move() 160 from->length += s->buf_size; in ivtv_queue_move() [all …]
|
/linux-4.1.27/drivers/parport/ |
D | probe.c | 138 unsigned char length[2]; in parport_read_device_id() local 147 retval = parport_read (port, length, 2); in parport_read_device_id() 156 memcpy(buffer, length, 2); in parport_read_device_id() 161 belen = (length[0] << 8) + length[1]; in parport_read_device_id() 162 lelen = (length[1] << 8) + length[0]; in parport_read_device_id() 220 length[0], length[1]); in parport_read_device_id()
|
/linux-4.1.27/drivers/target/ |
D | target_core_spc.c | 985 int length = 0; in spc_emulate_modesense() local 995 length = ten ? 3 : 2; in spc_emulate_modesense() 1001 spc_modesense_write_protect(&buf[length], type); in spc_emulate_modesense() 1005 spc_modesense_dpofua(&buf[length], type); in spc_emulate_modesense() 1007 ++length; in spc_emulate_modesense() 1021 length += spc_modesense_long_blockdesc(&buf[length], in spc_emulate_modesense() 1024 length += 3; in spc_emulate_modesense() 1025 length += spc_modesense_blockdesc(&buf[length], in spc_emulate_modesense() 1029 length += spc_modesense_blockdesc(&buf[length], blocks, in spc_emulate_modesense() 1034 length += 4; in spc_emulate_modesense() [all …]
|
/linux-4.1.27/drivers/net/ethernet/smsc/ |
D | smc9194.c | 472 word length; in smc_wait_to_send_packet() local 488 length = skb->len; in smc_wait_to_send_packet() 490 if (length < ETH_ZLEN) { in smc_wait_to_send_packet() 495 length = ETH_ZLEN; in smc_wait_to_send_packet() 505 numPages = ((length & 0xfffe) + 6) / 256; in smc_wait_to_send_packet() 583 word length; in smc_hardware_send_packet() local 593 length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; in smc_hardware_send_packet() 613 PRINTK3((CARDNAME": Trying to xmit packet of length %x\n", length)); in smc_hardware_send_packet() 615 print_packet( buf, length ); in smc_hardware_send_packet() 621 outl( (length +6 ) << 16 , ioaddr + DATA_1 ); in smc_hardware_send_packet() [all …]
|
/linux-4.1.27/drivers/net/wireless/ti/wl1251/ |
D | rx.c | 153 u16 length, *fc; in wl1251_rx_body() local 156 length = WL1251_RX_ALIGN(desc->length - PLCP_HEADER_LENGTH); in wl1251_rx_body() 173 skb = __dev_alloc_skb(length, GFP_KERNEL); in wl1251_rx_body() 179 rx_buffer = skb_put(skb, length); in wl1251_rx_body() 180 wl1251_mem_read(wl, rx_packet_ring_addr, rx_buffer, length); in wl1251_rx_body() 183 skb_trim(skb, desc->length - PLCP_HEADER_LENGTH); in wl1251_rx_body()
|
/linux-4.1.27/fs/nfsd/ |
D | blocklayout.c | 74 error = sb->s_export_op->map_blocks(inode, seg->offset, seg->length, in nfsd4_block_proc_layoutget() 83 if (iomap.length < args->lg_minlength) { in nfsd4_block_proc_layoutget() 127 bex->len = iomap.length; in nfsd4_block_proc_layoutget() 130 seg->length = iomap.length; in nfsd4_block_proc_layoutget() 136 seg->length = 0; in nfsd4_block_proc_layoutget() 139 seg->length = 0; in nfsd4_block_proc_layoutget()
|