/linux-4.19.296/fs/squashfs/ |
D | block.c | 47 u64 *cur_index, int *offset, int *length) in get_block_length() argument 57 *length = (unsigned char) bh->b_data[*offset]; in get_block_length() 62 *length |= (unsigned char) bh->b_data[0] << 8; in get_block_length() 65 *length = (unsigned char) bh->b_data[*offset] | in get_block_length() 91 int squashfs_read_data(struct super_block *sb, u64 index, int length, in squashfs_read_data() argument 100 bh = kcalloc(((output->length + msblk->devblksize - 1) in squashfs_read_data() 105 if (length) { in squashfs_read_data() 110 compressed = SQUASHFS_COMPRESSED_BLOCK(length); in squashfs_read_data() 111 length = SQUASHFS_COMPRESSED_SIZE_BLOCK(length); in squashfs_read_data() 113 *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()
|
/linux-4.19.296/include/linux/ |
D | relay.h | 187 size_t length); 204 size_t length) in relay_write() argument 211 if (unlikely(buf->offset + length > chan->subbuf_size)) in relay_write() 212 length = relay_switch_subbuf(buf, length); in relay_write() 213 memcpy(buf->data + buf->offset, data, length); in relay_write() 214 buf->offset += length; in relay_write() 232 size_t length) in __relay_write() argument 237 if (unlikely(buf->offset + length > buf->chan->subbuf_size)) in __relay_write() 238 length = relay_switch_subbuf(buf, length); in __relay_write() 239 memcpy(buf->data + buf->offset, data, length); in __relay_write() [all …]
|
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 | 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() 88 switch (length) { in jhash() 116 static inline u32 jhash2(const u32 *k, u32 length, u32 initval) in jhash2() argument 121 a = b = c = JHASH_INITVAL + (length<<2) + initval; in jhash2() 124 while (length > 3) { in jhash2() 129 length -= 3; in jhash2() 134 switch (length) { in jhash2()
|
/linux-4.19.296/include/rdma/ |
D | rdmavt_mr.h | 63 size_t length; member 77 size_t length; member 113 u32 length; /* remaining length of the segment */ member 144 static inline u32 rvt_get_sge_length(struct rvt_sge *sge, u32 length) in rvt_get_sge_length() argument 146 u32 len = sge->length; in rvt_get_sge_length() 148 if (len > length) in rvt_get_sge_length() 149 len = length; in rvt_get_sge_length() 156 static inline void rvt_update_sge(struct rvt_sge_state *ss, u32 length, in rvt_update_sge() argument 161 sge->vaddr += length; in rvt_update_sge() 162 sge->length -= length; in rvt_update_sge() [all …]
|
/linux-4.19.296/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.19.296/drivers/thunderbolt/ |
D | property.c | 22 u16 length; member 30 u32 length; member 62 if (entry->length > block_len) in tb_property_entry_valid() 64 if (entry->value + entry->length > block_len) in tb_property_entry_valid() 69 if (entry->length != 1) in tb_property_entry_valid() 115 property->length = entry->length; in tb_property_parse() 120 entry->length, false); in tb_property_parse() 129 property->value.data = kcalloc(property->length, sizeof(u32), in tb_property_parse() 136 entry->length); in tb_property_parse() 140 property->value.text = kcalloc(property->length, sizeof(u32), in tb_property_parse() [all …]
|
/linux-4.19.296/fs/xfs/libxfs/ |
D | xfs_dir2_data.c | 112 if (!bf[0].length) { in __xfs_dir3_data_check() 117 if (!bf[1].length) { in __xfs_dir3_data_check() 122 if (!bf[2].length) { in __xfs_dir3_data_check() 128 if (be16_to_cpu(bf[0].length) < be16_to_cpu(bf[1].length)) in __xfs_dir3_data_check() 130 if (be16_to_cpu(bf[1].length) < be16_to_cpu(bf[2].length)) in __xfs_dir3_data_check() 147 if (endp < p + be16_to_cpu(dup->length)) in __xfs_dir3_data_check() 161 if (be16_to_cpu(dup->length) > in __xfs_dir3_data_check() 162 be16_to_cpu(bf[2].length)) in __xfs_dir3_data_check() 165 p += be16_to_cpu(dup->length); in __xfs_dir3_data_check() 407 if (dfp->length) in xfs_dir2_data_freefind_verify() [all …]
|
D | xfs_cksum.h | 14 xfs_start_cksum_safe(char *buffer, size_t length, unsigned long cksum_offset) in xfs_start_cksum_safe() argument 27 length - (cksum_offset + sizeof(__be32))); in xfs_start_cksum_safe() 35 xfs_start_cksum_update(char *buffer, size_t length, unsigned long cksum_offset) in xfs_start_cksum_update() argument 41 return crc32c(XFS_CRC_SEED, buffer, length); in xfs_start_cksum_update() 64 xfs_update_cksum(char *buffer, size_t length, unsigned long cksum_offset) in xfs_update_cksum() argument 66 uint32_t crc = xfs_start_cksum_update(buffer, length, cksum_offset); in xfs_update_cksum() 75 xfs_verify_cksum(char *buffer, size_t length, unsigned long cksum_offset) in xfs_verify_cksum() argument 77 uint32_t crc = xfs_start_cksum_safe(buffer, length, cksum_offset); in xfs_verify_cksum()
|
/linux-4.19.296/lib/lz4/ |
D | lz4_decompress.c | 108 size_t length; in LZ4_decompress_generic() local 115 length = token>>ML_BITS; in LZ4_decompress_generic() 117 if (length == RUN_MASK) { in LZ4_decompress_generic() 122 length += s; in LZ4_decompress_generic() 129 (size_t)(op + length) < (size_t)(op))) { in LZ4_decompress_generic() 135 (size_t)(ip + length) < (size_t)(ip))) { in LZ4_decompress_generic() 142 cpy = op + length; in LZ4_decompress_generic() 144 || (ip + length > iend - (2 + 1 + LASTLITERALS)))) in LZ4_decompress_generic() 155 && (ip + length > iend)) { in LZ4_decompress_generic() 174 && ((ip + length != iend) in LZ4_decompress_generic() [all …]
|
/linux-4.19.296/lib/ |
D | crc32test.c | 554 u32 length; /* random 11 bit length of test */ member 678 bytes += 2*test[i].length; in crc32c_test() 681 test[i].start, test[i].length); in crc32c_test() 690 test[i].start, test[i].length)) in crc32c_test() 718 test[i].length); in crc32c_combine_test() 719 for (j = 0; j <= test[i].length; ++j) { in crc32c_combine_test() 721 u32 len1 = j, len2 = test[i].length - j; in crc32c_combine_test() 758 bytes += 2*test[i].length; in crc32_test() 761 test[i].start, test[i].length); in crc32_test() 764 test[i].start, test[i].length); in crc32_test() [all …]
|
/linux-4.19.296/fs/ |
D | iomap.c | 49 iomap_apply(struct inode *inode, loff_t pos, loff_t length, unsigned flags, in iomap_apply() argument 67 ret = ops->iomap_begin(inode, pos, length, flags, &iomap); in iomap_apply() 72 if (WARN_ON(iomap.length == 0)) in iomap_apply() 79 if (iomap.offset + iomap.length < pos + length) in iomap_apply() 80 length = iomap.offset + iomap.length - pos; in iomap_apply() 87 written = actor(inode, pos, length, data, &iomap); in iomap_apply() 94 ret = ops->iomap_end(inode, pos, length, in iomap_apply() 152 loff_t *pos, loff_t length, unsigned *offp, unsigned *lenp) in iomap_adjust_read_range() argument 159 unsigned plen = min_t(loff_t, PAGE_SIZE - poff, length); in iomap_adjust_read_range() 196 if (orig_pos <= isize && orig_pos + length > isize) { in iomap_adjust_read_range() [all …]
|
/linux-4.19.296/drivers/iio/buffer/ |
D | kfifo_buf.c | 25 size_t bytes_per_datum, unsigned int length) in __iio_allocate_kfifo() argument 27 if ((length == 0) || (bytes_per_datum == 0)) in __iio_allocate_kfifo() 34 if (roundup_pow_of_two(length) > UINT_MAX / bytes_per_datum) in __iio_allocate_kfifo() 37 return __kfifo_alloc((struct __kfifo *)&buf->kf, length, in __iio_allocate_kfifo() 50 buf->buffer.length); in iio_request_update_kfifo() 77 static int iio_set_length_kfifo(struct iio_buffer *r, unsigned int length) in iio_set_length_kfifo() argument 80 if (length < 2) in iio_set_length_kfifo() 81 length = 2; in iio_set_length_kfifo() 82 if (r->length != length) { in iio_set_length_kfifo() 83 r->length = length; in iio_set_length_kfifo() [all …]
|
/linux-4.19.296/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() 155 *data_index += length; in ssp_print_mcu_debug() 195 const bool use_no_irq = msg->length == 0; in ssp_do_transfer() 264 if (WARN_ON(!msg->length)) in ssp_spi_sync() [all …]
|
/linux-4.19.296/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()
|
/linux-4.19.296/drivers/parisc/ |
D | iommu-helpers.h | 36 sg_virt(startsg), startsg->length in iommu_fill_pdir() 71 sg_dma_len(dma_sg) += startsg->length; in iommu_fill_pdir() 72 size = startsg->length + dma_offset; in iommu_fill_pdir() 75 ioc->msg_pages += startsg->length >> IOVP_SHIFT; in iommu_fill_pdir() 120 dma_len = startsg->length; in iommu_coalesce_chunks() 135 startsg->length; in iommu_coalesce_chunks() 149 if (unlikely(ALIGN(dma_len + dma_offset + startsg->length, IOVP_SIZE) > in iommu_coalesce_chunks() 163 dma_len += startsg->length; in iommu_coalesce_chunks()
|
/linux-4.19.296/block/ |
D | cmdline-parser.c | 42 int length; in parse_subpart() local 51 length = min_t(int, next - partdef, in parse_subpart() 53 strncpy(new_subpart->name, partdef, length); in parse_subpart() 54 new_subpart->name[length] = '\0'; in parse_subpart() 94 int length; in parse_parts() local 111 length = min_t(int, next - bdevdef, sizeof(newparts->name) - 1); in parse_parts() 112 strncpy(newparts->name, bdevdef, length); in parse_parts() 113 newparts->name[length] = '\0'; in parse_parts() 122 length = (!next) ? (sizeof(buf) - 1) : in parse_parts() 125 strncpy(buf, bdevdef, length); in parse_parts() [all …]
|
/linux-4.19.296/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 | 159 unsigned char *buf, unsigned int length) in jmb38x_ms_read_data() argument 163 while (host->io_pos && length) { in jmb38x_ms_read_data() 166 length--; in jmb38x_ms_read_data() 170 if (!length) in jmb38x_ms_read_data() 174 if (length < 4) in jmb38x_ms_read_data() 177 length -= 4; in jmb38x_ms_read_data() 181 if (length in jmb38x_ms_read_data() 187 length--; in jmb38x_ms_read_data() 188 if (!length) in jmb38x_ms_read_data() 198 unsigned int length) in jmb38x_ms_read_reg_data() argument [all …]
|
/linux-4.19.296/fs/exofs/ |
D | ore.c | 257 bool is_reading, u64 offset, u64 length, in ore_get_rw_state() argument 265 if (layout->parity && length) { in ore_get_rw_state() 273 num_stripes = div_u64_rem(length, stripe_size, &remainder); in ore_get_rw_state() 305 if (length) { in ore_get_rw_state() 306 ore_calc_stripe_info(layout, offset, length, &ios->si); in ore_get_rw_state() 307 ios->length = ios->si.length; in ore_get_rw_state() 309 ios->length + PAGE_SIZE - 1) / PAGE_SIZE; in ore_get_rw_state() 463 _LLU(per_dev->length)); in ore_check_io() 471 u64 offset = (ios->offset + ios->length) - residual; in ore_check_io() 541 u64 length, struct ore_striping_info *si) in ore_calc_stripe_info() argument [all …]
|
/linux-4.19.296/drivers/media/common/b2c2/ |
D | flexcop-sram.c | 179 u32 length; 181 length = len; 186 length = (((addr >> 0x0f) + 1) << 0x0f) - addr; 189 sram_read_chunk(adapter, addr, buf, length); 190 addr = addr + length; 191 buf = buf + length; 192 len = len - length; 198 u32 length; 200 length = len; 206 length = (((addr >> 0x0f) + 1) << 0x0f) - addr; [all …]
|