/linux-master/include/linux/ |
H A D | crc32.h | 22 * @len2: length of the second block 49 * @len2: length of the second block 66 #define crc32(seed, data, length) crc32_le(seed, (unsigned char const *)(data), length) 76 #define ether_crc(length, data) bitrev32(crc32_le(~0, data, length)) 77 #define ether_crc_le(length, data) crc32_le(~0, data, length)
|
/linux-master/drivers/gpu/drm/i915/gt/ |
H A D | gen6_ppgtt.h | 31 static inline u32 gen6_pte_count(u32 addr, u32 length) argument 33 return i915_pte_count(addr, length, GEN6_PDE_SHIFT); 50 * gen6_for_each_pde() iterates over every pde from start until start+length. 51 * If start and start+length are not perfectly divisible, the macro will round 52 * down and up as needed. Start=0 and length=2G effectively iterates over 57 #define gen6_for_each_pde(pt, pd, start, length, iter) \ 59 length > 0 && iter < I915_PDES && \ 62 temp = min(temp - start, length); \ 63 start += temp; length -= temp; }), ++iter)
|
/linux-master/drivers/gpu/drm/amd/display/dc/hdcp/ |
H A D | hdcp_msg.c | 153 i2c_payloads[1].length = message_info->length; 157 buff = kzalloc(message_info->length + 1, GFP_KERNEL); 163 memmove(&buff[1], message_info->data, message_info->length); 164 i2c_payloads[0].length = message_info->length + 1; 223 uint32_t length, 235 if (length % HDCP14_KSV_SIZE) { 238 length, 241 if (length > HDCP14_MAX_KSV_FIFO_SIZ 221 dpcd_access_helper( struct dc_link *link, uint32_t length, uint8_t *data, uint32_t dpcd_addr, bool is_read) argument [all...] |
/linux-master/fs/squashfs/ |
H A D | cache.c | 53 struct squashfs_cache *cache, u64 block, int length) 110 entry->length = squashfs_read_data(sb, block, length, 115 if (entry->length < 0) 116 entry->error = entry->length; 289 * Copy up to length bytes from cache entry to buffer starting at offset bytes 290 * into the cache entry. If there's not length bytes then copy the number of 294 int offset, int length) 296 int remaining = length; 298 if (length 52 squashfs_cache_get(struct super_block *sb, struct squashfs_cache *cache, u64 block, int length) argument 293 squashfs_copy_data(void *buffer, struct squashfs_cache_entry *entry, int offset, int length) argument 331 squashfs_read_metadata(struct super_block *sb, void *buffer, u64 *block, int *offset, int length) argument 379 squashfs_get_fragment(struct super_block *sb, u64 start_block, int length) argument 394 squashfs_get_datablock(struct super_block *sb, u64 start_block, int length) argument 406 squashfs_read_table(struct super_block *sb, u64 block, int length) argument [all...] |
H A D | block.c | 80 struct address_space *cache_mapping, u64 index, int length, 104 * Compare these to the original required index and length to 111 else if (idx == page_count - 1 && index + length != read_end) 189 static int squashfs_bio_read(struct super_block *sb, u64 index, int length, argument 196 const u64 read_end = round_up(index + length, msblk->devblksize); 236 length, read_start, read_end, 257 * filesystem), otherwise the length is obtained from the first two bytes of 258 * the metadata block. A bit in the length field indicates if the block 263 int squashfs_read_data(struct super_block *sb, u64 index, int length, argument 272 if (length) { 79 squashfs_bio_read_cached(struct bio *fullbio, struct address_space *cache_mapping, u64 index, int length, u64 read_start, u64 read_end, int page_count) argument [all...] |
/linux-master/drivers/staging/sm750fb/ |
H A D | ddk750_hwi2c.c | 76 * length - Total number of bytes to be written to the device 84 unsigned int length, 106 if (length < MAX_HWI2C_FIFO) 107 count = length - 1; 123 /* Subtract length */ 124 length -= (count + 1); 129 } while (length > 0); 140 * length - Total number of bytes to be read 143 * length to make sure that it can keep all the data read. 149 unsigned int length, 83 hw_i2c_write_data(unsigned char addr, unsigned int length, unsigned char *buf) argument 148 hw_i2c_read_data(unsigned char addr, unsigned int length, unsigned char *buf) argument [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_jhash.h | 36 u32 jhash(const void *key, u32 length, u32 initval) argument 41 a = b = c = JHASH_INITVAL + length + initval; 43 while (length > 12) { 48 length -= 12; 51 switch (length) { 73 static __always_inline u32 jhash2(const u32 *k, u32 length, u32 initval) argument 78 a = b = c = JHASH_INITVAL + (length<<2) + initval; 81 while (length > 3) { 86 length -= 3; 91 switch (length) { [all...] |
/linux-master/drivers/net/arcnet/ |
H A D | rfc1051.c | 41 struct archdr *pkthdr, int length); 44 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, 123 struct archdr *pkthdr, int length) 130 arc_printk(D_DURING, dev, "it's a raw packet (length=%d)\n", length); 132 if (length >= MinTU) 133 ofs = 512 - length; 135 ofs = 256 - length; 137 skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC); 142 skb_put(skb, length 122 rx(struct net_device *dev, int bufnum, struct archdr *pkthdr, int length) argument 208 prepare_tx(struct net_device *dev, struct archdr *pkt, int length, int bufnum) argument [all...] |
/linux-master/drivers/acpi/acpica/ |
H A D | utprint.c | 45 * DESCRIPTION: Calculate the length of a string with boundary. 52 u32 length = 0; local 55 length++; 60 return (length); 331 s32 length; local 449 length = (s32)acpi_ut_bound_string_length(s, precision); 451 while (length < width--) { 459 for (i = 0; i < length; ++i) { 464 while (length < width--) { 574 int length; local 599 int length; local 625 int length; local 652 int length; local 678 int length; local 706 int length; local [all...] |
H A D | tbfadt.c | 37 u16 length; member in struct:acpi_fadt_info 173 * for GPEs, the legacy length (byte_width) is used instead to 278 u32 length; local 295 length = fadt_desc->length; 301 (void)acpi_ut_verify_checksum(table, length); 305 acpi_tb_create_local_fadt(table, length); 343 * length - Length of the table 354 void acpi_tb_create_local_fadt(struct acpi_table_header *table, u32 length) argument 361 if (length > sizeo 444 u8 length; local [all...] |
H A D | exconfig.c | 28 u32 length, u8 *buffer); 129 if (operand[3]->string.length > 0) { 145 if (operand[4]->string.length > 0) { 220 * length - Number of bytes to read 231 acpi_ex_region_read(union acpi_operand_object *obj_desc, u32 length, u8 *buffer) argument 240 for (i = 0; i < length; i++) { 287 u32 length; local 330 /* Get the table header first so we can get the table length */ 341 length = table_header->length; [all...] |
/linux-master/drivers/video/fbdev/ |
H A D | 68328fb.c | 113 u_long length; local 115 length = xres_virtual * bpp; 116 length = (length + 31) & ~31; 117 length >>= 3; 118 return (length); 190 var->red.length = 1; 192 var->green.length = 1; 194 var->blue.length = 1; 196 var->transp.length [all...] |
/linux-master/drivers/nvdimm/ |
H A D | badrange.c | 27 struct badrange_entry *bre, u64 addr, u64 length) 31 bre->length = length; 36 u64 addr, u64 length, gfp_t flags) 44 append_badrange_entry(badrange, bre, addr, length); 48 static int add_badrange(struct badrange *badrange, u64 addr, u64 length) argument 59 append_badrange_entry(badrange, bre_new, addr, length); 70 /* If length has changed, update this list entry */ 71 if (bre->length != length) 26 append_badrange_entry(struct badrange *badrange, struct badrange_entry *bre, u64 addr, u64 length) argument 35 alloc_and_append_badrange_entry(struct badrange *badrange, u64 addr, u64 length, gfp_t flags) argument 89 badrange_add(struct badrange *badrange, u64 addr, u64 length) argument [all...] |
/linux-master/drivers/video/fbdev/mmp/fb/ |
H A D | mmpfb.c | 25 if (var->bits_per_pixel == 16 && var->red.length == 8 && 26 var->green.length == 4 && var->blue.length == 4) { 36 if (var->bits_per_pixel == 12 && var->red.length == 8 && 37 var->green.length == 2 && var->blue.length == 2) { 47 if (var->bits_per_pixel == 16 && var->red.length == 16 && 48 var->green.length == 16 && var->blue.length == 16) { 60 if (var->bits_per_pixel == 16 && var->red.length < [all...] |
/linux-master/mm/ |
H A D | swap_cgroup.c | 11 unsigned long length; member in struct:swap_cgroup_ctrl 47 for (idx = 0; idx < ctrl->length; idx++) { 170 unsigned long length; local 176 length = DIV_ROUND_UP(max_pages, SC_PER_PAGE); 178 array = vcalloc(length, sizeof(void *)); 184 ctrl->length = length; 190 ctrl->length = 0; 207 unsigned long i, length; local 216 length [all...] |
/linux-master/drivers/gpu/drm/ |
H A D | drm_displayid.c | 11 displayid_get_header(const u8 *displayid, int length, int index) argument 15 if (sizeof(*base) > length - index) 24 validate_displayid(const u8 *displayid, int length, int idx) argument 30 base = displayid_get_header(displayid, length, idx); 34 DRM_DEBUG_KMS("base revision 0x%x, length %d, %d %d\n", 39 if (dispid_length > length - idx) 53 int *length, int *idx, 63 *length = EDID_LENGTH - 1; 66 base = validate_displayid(displayid, *length, *idx); 70 *length 52 drm_find_displayid_extension(const struct drm_edid *drm_edid, int *length, int *idx, int *ext_index) argument [all...] |
/linux-master/lib/ |
H A D | fw_table.c | 53 return entry->hdr->common.length; 55 return entry->hdr->hmat.length; 57 return entry->hdr->prmt.length; 59 return entry->hdr->cedt.length; 61 __le16 length = (__force __le16)entry->hdr->cdat.length; local 63 return le16_to_cpu(length); 106 __le32 length = (__force __le32)header->cdat.length; local 108 return le32_to_cpu(length); 212 cdat_table_parse(enum acpi_cdat_type type, acpi_tbl_entry_handler_arg handler_arg, void *arg, struct acpi_table_cdat *table_header, unsigned long length) argument [all...] |
/linux-master/drivers/scsi/arm/ |
H A D | msgqueue.c | 76 * Purpose : calculate the total length of all messages on the message queue 83 int length = 0; local 86 length += mq->msg.length; 88 return length; 108 * Function: int msgqueue_addmsg(MsgQueue_t *msgq, int length, ...) 111 * length - length of message 115 int msgqueue_addmsg(MsgQueue_t *msgq, int length, ...) argument 124 va_start(ap, length); [all...] |
/linux-master/fs/iomap/ |
H A D | seek.c | 16 loff_t length = iomap_length(iter); local 21 iter->pos, iter->pos + length, SEEK_HOLE); 22 if (*hole_pos == iter->pos + length) 23 return length; 29 return length; 62 loff_t length = iomap_length(iter); local 66 return length; 69 iter->pos, iter->pos + length, SEEK_DATA); 71 return length;
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | ramcfg.c | 41 if (bit_M.version == 1 && bit_M.length >= 5) 43 if (bit_M.version == 2 && bit_M.length >= 3) 61 if (bit_M.version == 1 && bit_M.length >= 5) 63 if (bit_M.version == 2 && bit_M.length >= 3) { 68 if (bit_M.length >= 7 &&
|
H A D | shadowof.c | 34 of_read(void *data, u32 offset, u32 length, struct nvkm_bios *bios) argument 38 length = min_t(u32, length, priv->size - offset); 39 memcpy_fromio(bios->data + offset, priv->data + offset, length); 40 return length;
|
/linux-master/drivers/input/touchscreen/ |
H A D | cyttsp_i2c_common.c | 27 u16 addr, u8 length, void *values) 42 .len = length, 57 u16 addr, u8 length, const void *values) 66 .len = length + 1, 73 memcpy(&xfer_buf[1], values, length); 26 cyttsp_i2c_read_block_data(struct device *dev, u8 *xfer_buf, u16 addr, u8 length, void *values) argument 56 cyttsp_i2c_write_block_data(struct device *dev, u8 *xfer_buf, u16 addr, u8 length, const void *values) argument
|
/linux-master/arch/arm/crypto/ |
H A D | crc32-ce-glue.c | 73 unsigned int length) 77 *crc = crc32_armv8_le(*crc, data, length); 82 unsigned int length) 86 *crc = crc32c_armv8_le(*crc, data, length); 107 unsigned int length) 114 l = min_t(u32, length, SCALE_F - ((u32)data % SCALE_F)); 119 length -= l; 122 if (length >= PMULL_MIN_LEN) { 123 l = round_down(length, SCALE_F); 130 length 72 crc32_update(struct shash_desc *desc, const u8 *data, unsigned int length) argument 81 crc32c_update(struct shash_desc *desc, const u8 *data, unsigned int length) argument 106 crc32_pmull_update(struct shash_desc *desc, const u8 *data, unsigned int length) argument 140 crc32c_pmull_update(struct shash_desc *desc, const u8 *data, unsigned int length) argument [all...] |
/linux-master/arch/m68k/atari/ |
H A D | atasound.c | 85 /* Set length of envelope (max 8 sec). */ 86 int length = (ticks * PSG_ENV_FREQ_10) / HZ / 10; local 88 if (length > 0xffff) length = 0xffff; 90 sound_ym.wd_data = length & 0xff; 92 sound_ym.wd_data = length >> 8;
|
/linux-master/drivers/hid/surface-hid/ |
H A D | surface_hid.c | 28 __le32 length; member in struct:surface_hid_buffer_slice 48 u32 buffer_len, offset, length; local 64 rqst.length = sizeof(struct surface_hid_buffer_slice); 75 length = buffer_len; 79 put_unaligned_le32(length, &slice->length); 81 rsp.length = 0; 89 length = get_unaligned_le32(&slice->length); 92 if (length > buffer_le [all...] |