/Linux-v5.4/fs/squashfs/ |
D | block.c | 34 u64 *cur_index, int *offset, int *length) in get_block_length() argument 44 *length = (unsigned char) bh->b_data[*offset]; in get_block_length() 49 *length |= (unsigned char) bh->b_data[0] << 8; in get_block_length() 52 *length = (unsigned char) bh->b_data[*offset] | in get_block_length() 78 int squashfs_read_data(struct super_block *sb, u64 index, int length, in squashfs_read_data() argument 87 bh = kcalloc(((output->length + msblk->devblksize - 1) in squashfs_read_data() 92 if (length) { in squashfs_read_data() 97 compressed = SQUASHFS_COMPRESSED_BLOCK(length); in squashfs_read_data() 98 length = SQUASHFS_COMPRESSED_SIZE_BLOCK(length); in squashfs_read_data() 100 *next_index = index + length; in squashfs_read_data() [all …]
|
D | cache.c | 53 struct squashfs_cache *cache, u64 block, int length) in squashfs_cache_get() argument 110 entry->length = squashfs_read_data(sb, block, length, in squashfs_cache_get() 115 if (entry->length < 0) in squashfs_cache_get() 116 entry->error = entry->length; in squashfs_cache_get() 294 int offset, int length) in squashfs_copy_data() argument 296 int remaining = length; in squashfs_copy_data() 298 if (length == 0) in squashfs_copy_data() 301 return min(length, entry->length - offset); in squashfs_copy_data() 303 while (offset < entry->length) { in squashfs_copy_data() 306 int bytes = min_t(int, entry->length - offset, in squashfs_copy_data() [all …]
|
/Linux-v5.4/sound/usb/line6/ |
D | midibuf.c | 19 static const int length[] = { 3, 3, 3, 3, 2, 2, 3 }; in midibuf_message_length() local 21 message_length = length[(code >> 4) - 8]; in midibuf_message_length() 28 static const int length[] = { -1, 2, -1, 2, -1, -1, 1, 1, 1, 1, in midibuf_message_length() local 31 message_length = length[code & 0x0f]; in midibuf_message_length() 85 int length) in line6_midibuf_write() argument 91 if (midibuf_is_full(this) || (length <= 0)) in line6_midibuf_write() 95 if (data[length - 1] == 0xfe) { in line6_midibuf_write() 96 --length; in line6_midibuf_write() 102 if (length > bytes_free) in line6_midibuf_write() 103 length = bytes_free; in line6_midibuf_write() [all …]
|
/Linux-v5.4/drivers/acpi/acpica/ |
D | exstorob.c | 33 u32 length; in acpi_ex_store_buffer_to_buffer() local 47 length = source_desc->buffer.length; in acpi_ex_store_buffer_to_buffer() 53 if ((target_desc->buffer.length == 0) || in acpi_ex_store_buffer_to_buffer() 55 target_desc->buffer.pointer = ACPI_ALLOCATE(length); in acpi_ex_store_buffer_to_buffer() 60 target_desc->buffer.length = length; in acpi_ex_store_buffer_to_buffer() 65 if (length <= target_desc->buffer.length) { in acpi_ex_store_buffer_to_buffer() 70 target_desc->buffer.length); in acpi_ex_store_buffer_to_buffer() 71 memcpy(target_desc->buffer.pointer, buffer, length); in acpi_ex_store_buffer_to_buffer() 92 target_desc->buffer.length = length; in acpi_ex_store_buffer_to_buffer() 99 target_desc->buffer.length); in acpi_ex_store_buffer_to_buffer() [all …]
|
D | utids.c | 40 u32 length; in acpi_ut_execute_HID() local 55 length = ACPI_EISAID_STRING_SIZE; in acpi_ut_execute_HID() 57 length = obj_desc->string.length + 1; in acpi_ut_execute_HID() 64 (acpi_size)length); in acpi_ut_execute_HID() 83 hid->length = length; in acpi_ut_execute_HID() 118 u32 length; in acpi_ut_execute_UID() local 133 length = ACPI_MAX64_DECIMAL_DIGITS + 1; in acpi_ut_execute_UID() 135 length = obj_desc->string.length + 1; in acpi_ut_execute_UID() 142 (acpi_size)length); in acpi_ut_execute_UID() 161 uid->length = length; in acpi_ut_execute_UID() [all …]
|
D | tbfadt.c | 37 u16 length; member 278 u32 length; in acpi_tb_parse_fadt() local 295 length = fadt_desc->length; in acpi_tb_parse_fadt() 301 (void)acpi_tb_verify_checksum(table, length); in acpi_tb_parse_fadt() 305 acpi_tb_create_local_fadt(table, length); in acpi_tb_parse_fadt() 354 void acpi_tb_create_local_fadt(struct acpi_table_header *table, u32 length) in acpi_tb_create_local_fadt() argument 361 if (length > sizeof(struct acpi_table_fadt)) { in acpi_tb_create_local_fadt() 366 length, in acpi_tb_create_local_fadt() 377 ACPI_MIN(length, sizeof(struct acpi_table_fadt))); in acpi_tb_create_local_fadt() 444 u8 length; in acpi_tb_convert_fadt() local [all …]
|
D | utprint.c | 52 u32 length = 0; in acpi_ut_bound_string_length() local 55 length++; in acpi_ut_bound_string_length() 60 return (length); in acpi_ut_bound_string_length() 331 s32 length; in vsnprintf() local 444 length = (s32)acpi_ut_bound_string_length(s, precision); in vsnprintf() 446 while (length < width--) { in vsnprintf() 454 for (i = 0; i < length; ++i) { in vsnprintf() 459 while (length < width--) { in vsnprintf() 569 int length; in snprintf() local 572 length = vsnprintf(string, size, format, args); in snprintf() [all …]
|
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_ctrl.c | 34 unsigned int length, offset; in nfp_net_tlv_caps_parse() local 37 length = FIELD_GET(NFP_NET_CFG_TLV_HEADER_LENGTH, hdr); in nfp_net_tlv_caps_parse() 43 if (length % NFP_NET_CFG_TLV_LENGTH_INC) { in nfp_net_tlv_caps_parse() 45 NFP_NET_CFG_TLV_LENGTH_INC, offset, length); in nfp_net_tlv_caps_parse() 48 if (data + length > end) { in nfp_net_tlv_caps_parse() 50 offset, length); in nfp_net_tlv_caps_parse() 61 if (!length) in nfp_net_tlv_caps_parse() 65 offset, length); in nfp_net_tlv_caps_parse() 68 if (length != 4) { in nfp_net_tlv_caps_parse() 71 length, offset); in nfp_net_tlv_caps_parse() [all …]
|
/Linux-v5.4/drivers/video/fbdev/mmp/fb/ |
D | mmpfb.c | 25 if (var->bits_per_pixel == 16 && var->red.length == 8 && in var_to_pixfmt() 26 var->green.length == 4 && var->blue.length == 4) { in var_to_pixfmt() 36 if (var->bits_per_pixel == 12 && var->red.length == 8 && in var_to_pixfmt() 37 var->green.length == 2 && var->blue.length == 2) { in var_to_pixfmt() 47 if (var->bits_per_pixel == 16 && var->red.length == 16 && in var_to_pixfmt() 48 var->green.length == 16 && var->blue.length == 16) { in var_to_pixfmt() 60 if (var->bits_per_pixel == 16 && var->red.length <= 5 && in var_to_pixfmt() 61 var->green.length <= 6 && var->blue.length <= 5) { in var_to_pixfmt() 62 if (var->transp.length == 0) { in var_to_pixfmt() 73 if (var->bits_per_pixel <= 32 && var->red.length <= 8 && in var_to_pixfmt() [all …]
|
/Linux-v5.4/drivers/net/arcnet/ |
D | arc-rawmode.c | 40 struct archdr *pkthdr, int length) in rx() argument 47 arc_printk(D_DURING, dev, "it's a raw packet (length=%d)\n", length); in rx() 49 if (length > MTU) in rx() 50 ofs = 512 - length; in rx() 52 ofs = 256 - length; in rx() 54 skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC); in rx() 59 skb_put(skb, length + ARC_HDR_SIZE); in rx() 69 if (length > sizeof(pkt->soft)) in rx() 72 length - sizeof(pkt->soft)); in rx() 113 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, in prepare_tx() argument [all …]
|
D | capmode.c | 43 struct archdr *pkthdr, int length) in rx() argument 52 length); in rx() 54 if (length >= MinTU) in rx() 55 ofs = 512 - length; in rx() 57 ofs = 256 - length; in rx() 59 skb = alloc_skb(length + ARC_HDR_SIZE + sizeof(int), GFP_ATOMIC); in rx() 64 skb_put(skb, length + ARC_HDR_SIZE + sizeof(int)); in rx() 82 if (length > sizeof(pkt->soft)) in rx() 86 length - sizeof(pkt->soft)); in rx() 132 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, in prepare_tx() argument [all …]
|
D | rfc1051.c | 41 struct archdr *pkthdr, int length); 44 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, 122 struct archdr *pkthdr, int length) in rx() argument 129 arc_printk(D_DURING, dev, "it's a raw packet (length=%d)\n", length); in rx() 131 if (length >= MinTU) in rx() 132 ofs = 512 - length; in rx() 134 ofs = 256 - length; in rx() 136 skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC); in rx() 141 skb_put(skb, length + ARC_HDR_SIZE); in rx() 148 if (length > sizeof(pkt->soft)) in rx() [all …]
|
/Linux-v5.4/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 …]
|
/Linux-v5.4/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-v5.4/security/selinux/ |
D | selinuxfs.c | 126 ssize_t length; in sel_read_enforce() local 128 length = scnprintf(tmpbuf, TMPBUFLEN, "%d", in sel_read_enforce() 130 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_enforce() 141 ssize_t length; in sel_write_enforce() local 155 length = -EINVAL; in sel_write_enforce() 163 length = avc_has_perm(&selinux_state, in sel_write_enforce() 167 if (length) in sel_write_enforce() 184 length = count; in sel_write_enforce() 187 return length; in sel_write_enforce() 205 ssize_t length; in sel_read_handle_unknown() local [all …]
|
/Linux-v5.4/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-v5.4/fs/ntfs/ |
D | runlist.c | 151 if ((dst->vcn + dst->length) != src->vcn) in ntfs_are_rl_mergeable() 155 ((dst->lcn + dst->length) == src->lcn)) in ntfs_are_rl_mergeable() 177 dst->length += src->length; in __ntfs_rl_merge() 238 dst[loc].length = dst[loc + 1].vcn - dst[loc].vcn; in ntfs_rl_append() 242 dst[marker].vcn = dst[marker - 1].vcn + dst[marker - 1].length; in ntfs_rl_append() 292 merged_length = dst[loc - 1].length; in ntfs_rl_insert() 294 merged_length += src->length; in ntfs_rl_insert() 325 dst[marker].vcn = dst[marker - 1].vcn + dst[marker - 1].length; in ntfs_rl_insert() 328 dst[marker].length = dst[marker + 1].vcn - dst[marker].vcn; in ntfs_rl_insert() 333 dst[loc].vcn = dst[loc - 1].vcn + dst[loc - 1].length; in ntfs_rl_insert() [all …]
|
/Linux-v5.4/fs/iomap/ |
D | seek.c | 74 page_cache_seek_hole_data(struct inode *inode, loff_t offset, loff_t length, in page_cache_seek_hole_data() argument 78 pgoff_t end = DIV_ROUND_UP(offset + length, PAGE_SIZE); in page_cache_seek_hole_data() 82 if (length <= 0) in page_cache_seek_hole_data() 110 if (lastoff < offset + length) in page_cache_seek_hole_data() 121 iomap_seek_hole_actor(struct inode *inode, loff_t offset, loff_t length, in iomap_seek_hole_actor() argument 126 offset = page_cache_seek_hole_data(inode, offset, length, in iomap_seek_hole_actor() 129 return length; in iomap_seek_hole_actor() 135 return length; in iomap_seek_hole_actor() 143 loff_t length = size - offset; in iomap_seek_hole() local 150 while (length > 0) { in iomap_seek_hole() [all …]
|
/Linux-v5.4/drivers/infiniband/sw/rxe/ |
D | rxe_mr.c | 54 int mem_check_range(struct rxe_mem *mem, u64 iova, size_t length) in mem_check_range() argument 63 length > mem->length || in mem_check_range() 64 iova > mem->iova + mem->length - length) in mem_check_range() 161 u64 length, u64 iova, int access, struct ib_udata *udata, in rxe_mem_init_user() argument 172 umem = ib_umem_get(udata, start, length, access, 0); in rxe_mem_init_user() 197 if (length > 0) { in rxe_mem_init_user() 225 mem->length = length; in rxe_mem_init_user() 273 u64 length; in lookup_iova() local 284 length = mem->map[map_index]->buf[buf_index].size; in lookup_iova() 286 while (offset >= length) { in lookup_iova() [all …]
|
D | rxe_opcode.c | 133 .length = RXE_BTH_BYTES, 143 .length = RXE_BTH_BYTES, 153 .length = RXE_BTH_BYTES, 163 .length = RXE_BTH_BYTES + RXE_IMMDT_BYTES, 176 .length = RXE_BTH_BYTES, 187 .length = RXE_BTH_BYTES + RXE_IMMDT_BYTES, 199 .length = RXE_BTH_BYTES + RXE_RETH_BYTES, 211 .length = RXE_BTH_BYTES, 221 .length = RXE_BTH_BYTES, 232 .length = RXE_BTH_BYTES + RXE_IMMDT_BYTES, [all …]
|
/Linux-v5.4/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 …]
|
/Linux-v5.4/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()
|
/Linux-v5.4/drivers/video/ |
D | hdmi.c | 65 frame->length = HDMI_AVI_INFOFRAME_SIZE; in hdmi_avi_infoframe_init() 75 frame->length != HDMI_AVI_INFOFRAME_SIZE) in hdmi_avi_infoframe_check_only() 117 size_t length; in hdmi_avi_infoframe_pack_only() local 124 length = HDMI_INFOFRAME_HEADER_SIZE + frame->length; in hdmi_avi_infoframe_pack_only() 126 if (size < length) in hdmi_avi_infoframe_pack_only() 133 ptr[2] = frame->length; in hdmi_avi_infoframe_pack_only() 181 hdmi_infoframe_set_checksum(buffer, length); in hdmi_avi_infoframe_pack_only() 183 return length; in hdmi_avi_infoframe_pack_only() 232 frame->length = HDMI_SPD_INFOFRAME_SIZE; in hdmi_spd_infoframe_init() 245 frame->length != HDMI_SPD_INFOFRAME_SIZE) in hdmi_spd_infoframe_check_only() [all …]
|
/Linux-v5.4/arch/s390/pci/ |
D | pci_mmio.c | 36 const void __user *, user_buffer, size_t, length) in SYSCALL_DEFINE3() argument 47 if (length <= 0 || PAGE_SIZE - (mmio_addr & ~PAGE_MASK) < length) in SYSCALL_DEFINE3() 49 if (length > 64) { in SYSCALL_DEFINE3() 50 buf = kmalloc(length, GFP_KERNEL); in SYSCALL_DEFINE3() 65 if (copy_from_user(buf, user_buffer, length)) in SYSCALL_DEFINE3() 68 ret = zpci_memcpy_toio(io_addr, buf, length); in SYSCALL_DEFINE3() 76 void __user *, user_buffer, size_t, length) in SYSCALL_DEFINE3() argument 87 if (length <= 0 || PAGE_SIZE - (mmio_addr & ~PAGE_MASK) < length) in SYSCALL_DEFINE3() 89 if (length > 64) { in SYSCALL_DEFINE3() 90 buf = kmalloc(length, GFP_KERNEL); in SYSCALL_DEFINE3() [all …]
|
/Linux-v5.4/arch/arm/mach-omap2/ |
D | io.c | 71 .length = L3_24XX_SIZE, 77 .length = L4_24XX_SIZE, 87 .length = DSP_MEM_2420_SIZE, 93 .length = DSP_IPI_2420_SIZE, 99 .length = DSP_MMU_2420_SIZE, 111 .length = L4_WK_243X_SIZE, 117 .length = OMAP243X_GPMC_SIZE, 123 .length = OMAP243X_SDRC_SIZE, 129 .length = OMAP243X_SMS_SIZE, 141 .length = L3_34XX_SIZE, [all …]
|