/openbmc/linux/drivers/scsi/fnic/ |
H A D | fnic_trace.c | 209 len = scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 214 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 232 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 236 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 269 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 273 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 278 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 307 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 312 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() 326 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data() [all …]
|
/openbmc/linux/drivers/parisc/ |
H A D | eisa_enumerator.c | 79 int len; in configure_memory() local 84 len=0; in configure_memory() 117 int len; in configure_irq() local 121 len=0; in configure_irq() 133 len+=2; in configure_irq() 148 int len; in configure_dma() local 152 len=0; in configure_dma() 170 int len; in configure_port() local 176 len=0; in configure_port() 225 get_8(buf+len+4)), get_16(buf+len+1)); in configure_port_init() [all …]
|
/openbmc/linux/lib/ |
H A D | crc32.c | 93 len = len >> 2; 96 len = len >> 3; 104 for (--b; len; --len) { 115 len = rem_len; 117 if (len) { 152 while (len--) { 252 len >>= 2; 253 if (!len) 258 if (len & 1) 261 len >>= 1; [all …]
|
H A D | checksum_kunit.c | 247 int len, align; in test_csum_fixed_random_inputs() local 255 for (len = 0; len < MAX_LEN && (align + len) < TEST_BUFLEN; in test_csum_fixed_random_inputs() 256 ++len) { in test_csum_fixed_random_inputs() 273 int len, align; in test_csum_all_carry_inputs() local 280 for (len = 0; len < MAX_LEN && (align + len) < TEST_BUFLEN; in test_csum_all_carry_inputs() 281 ++len) { in test_csum_all_carry_inputs() 295 if (len & 1) in test_csum_all_carry_inputs() 297 else if (len) in test_csum_all_carry_inputs() 313 int len, align; in test_csum_no_carry_inputs() local 320 for (len = 0; len < MAX_LEN && (align + len) < TEST_BUFLEN; in test_csum_no_carry_inputs() [all …]
|
/openbmc/linux/tools/perf/util/ |
H A D | strbuf.c | 41 *sz = sb->len; in strbuf_detach() 54 if (nr <= sb->len) in strbuf_grow() 90 memcpy(sb->buf + sb->len, data, len); in strbuf_add() 91 return strbuf_setlen(sb, sb->len + len); in strbuf_add() 96 int len, ret; in strbuf_addv() local 106 len = vsnprintf(sb->buf + sb->len, sb->alloc - sb->len, fmt, ap); in strbuf_addv() 107 if (len < 0) { in strbuf_addv() 109 return len; in strbuf_addv() 117 len = vsnprintf(sb->buf + sb->len, sb->alloc - sb->len, fmt, ap_saved); in strbuf_addv() 125 return strbuf_setlen(sb, sb->len + len); in strbuf_addv() [all …]
|
/openbmc/linux/net/sunrpc/ |
H A D | socklib.c | 35 size_t len); 50 len = desc->count; in xdr_skb_read_bits() 55 return len; in xdr_skb_read_bits() 78 return len; in xdr_skb_read_and_csum_bits() 98 if (base < len) { in xdr_partial_copy_from_skb() 99 len -= base; in xdr_partial_copy_from_skb() 106 base -= len; in xdr_partial_copy_from_skb() 137 len -= base; in xdr_partial_copy_from_skb() 139 len = pglen; in xdr_partial_copy_from_skb() 144 len = pglen; in xdr_partial_copy_from_skb() [all …]
|
/openbmc/u-boot/drivers/mtd/ubi/ |
H A D | crc32.c | 72 while (len--) { in crc32_le() 102 if((len >= 4)){ in crc32_le() 105 len = len >> 2; in crc32_le() 118 if(len){ in crc32_le() 131 while (len--) { in crc32_le() 138 while (len--) { in crc32_le() 168 while (len--) { in crc32_be() 203 len = len >> 2; in crc32_be() 216 if(len){ in crc32_be() 387 while (len--) in buf_dump() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_tlv.c | 49 if (len && !(len % 4)) { in fm10k_tlv_attr_put_null_string() 56 len++; in fm10k_tlv_attr_put_null_string() 86 u32 len; in fm10k_tlv_attr_get_null_string() local 96 string[len] = (u8)(attr[len / 4] >> (8 * (len % 4))); in fm10k_tlv_attr_get_null_string() 203 if (!msg || !len || len > 8 || (len & (len - 1))) in fm10k_tlv_attr_put_value() 278 if (!msg || !len || (len % 4)) in fm10k_tlv_attr_put_le_struct() 323 for (i = 0; len; i++, len -= 4) in fm10k_tlv_attr_get_le_struct() 368 u32 len; in fm10k_tlv_attr_nest_stop() local 424 if (len > tlv_attr->len) in fm10k_tlv_attr_validate() 437 if (len != tlv_attr->len) in fm10k_tlv_attr_validate() [all …]
|
/openbmc/linux/include/uapi/linux/ |
H A D | hidraw.h | 37 #define HIDIOCGRAWNAME(len) _IOC(_IOC_READ, 'H', 0x04, len) argument 38 #define HIDIOCGRAWPHYS(len) _IOC(_IOC_READ, 'H', 0x05, len) argument 40 #define HIDIOCSFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x06, len) argument 41 #define HIDIOCGFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x07, len) argument 42 #define HIDIOCGRAWUNIQ(len) _IOC(_IOC_READ, 'H', 0x08, len) argument 44 #define HIDIOCSINPUT(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x09, len) argument 45 #define HIDIOCGINPUT(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x0A, len) argument 47 #define HIDIOCSOUTPUT(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x0B, len) argument 48 #define HIDIOCGOUTPUT(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x0C, len) argument
|
/openbmc/linux/drivers/iio/imu/bno055/ |
H A D | bno055_ser_trace.h | 13 TP_ARGS(len, data), 15 __field(int, len) 19 __entry->len = len; 21 data, __entry->len); 24 __entry->len, __entry->len, __get_dynamic_array(chunk) 65 TP_ARGS(addr, len), 72 __entry->len = len; 81 TP_ARGS(len, buf), 87 __entry->len = len; 89 buf, __entry->len); [all …]
|
/openbmc/linux/kernel/ |
H A D | sysctl-test.c | 38 size_t len; in sysctl_test_api_dointvec_null_tbl_data() local 45 len = 1234; in sysctl_test_api_dointvec_null_tbl_data() 54 len = 1234; in sysctl_test_api_dointvec_null_tbl_data() 84 size_t len; in sysctl_test_api_dointvec_table_maxlen_unset() local 91 len = 1234; in sysctl_test_api_dointvec_table_maxlen_unset() 100 len = 1234; in sysctl_test_api_dointvec_table_maxlen_unset() 130 size_t len = 0; in sysctl_test_api_dointvec_table_len_is_zero() local 165 size_t len = 1234; in sysctl_test_api_dointvec_table_read_but_position_set() local 194 size_t len = 4; in sysctl_test_dointvec_read_happy_single_positive() local 204 buffer[len] = '\0'; in sysctl_test_dointvec_read_happy_single_positive() [all …]
|
/openbmc/linux/drivers/platform/surface/aggregator/ |
H A D | ssh_parser.c | 76 rem->len = src->len - i; in sshp_find_syn() 83 rem->len = 1; in sshp_find_syn() 87 rem->ptr = src->ptr + src->len; in sshp_find_syn() 88 rem->len = 0; in sshp_find_syn() 127 payload->len = 0; in sshp_parse_frame() 151 sp.len = get_unaligned_le16(&((struct ssh_frame *)sf.ptr)->len); in sshp_parse_frame() 154 SSH_MESSAGE_LENGTH(sp.len)); in sshp_parse_frame() 162 if (source->len < SSH_MESSAGE_LENGTH(sp.len)) { in sshp_parse_frame() 177 (*frame)->type, (*frame)->len); in sshp_parse_frame() 214 command_data->len = 0; in sshp_parse_command() [all …]
|
/openbmc/u-boot/include/ |
H A D | spi_flash.h | 121 size_t len, void *buf) in spi_flash_read() argument 127 size_t len, const void *buf) in spi_flash_write() argument 133 size_t len) in spi_flash_erase() argument 139 u32 offset, size_t len) in spi_flash_ctrl_wlock() argument 145 u32 offset, size_t len) in spi_flash_ctrl_wunlock() argument 164 size_t len, void *buf) in spi_flash_read() argument 173 size_t len, const void *buf) in spi_flash_write() argument 182 size_t len) in spi_flash_erase() argument 194 instr.len = len; in spi_flash_erase() 207 return flash->flash_lock(flash, ofs, len); in spi_flash_protect() [all …]
|
/openbmc/u-boot/net/ |
H A D | cdp.c | 56 if (len > 0) { in cdp_compute_csum() 60 len--; in cdp_compute_csum() 69 len -= 2; in cdp_compute_csum() 71 if (len) { in cdp_compute_csum() 112 int len; in cdp_send_trigger() local 157 len++; in cdp_send_trigger() 160 s += len / 2; in cdp_send_trigger() 176 len++; in cdp_send_trigger() 179 s += len / 2; in cdp_send_trigger() 188 len++; in cdp_send_trigger() [all …]
|
/openbmc/linux/include/linux/sunrpc/ |
H A D | xdr.h | 82 buf->len = 0; in xdr_buf_init() 178 dst->len = src->len; in xdr_netobj_dup() 403 return len; in xdr_stream_encode_item_present() 422 return len; in xdr_stream_encode_item_absent() 456 return len; in xdr_stream_encode_bool() 477 return len; in xdr_stream_encode_u32() 498 return len; in xdr_stream_encode_be32() 519 return len; in xdr_stream_encode_u64() 722 return len; in xdr_stream_decode_opaque_fixed() 745 __u32 len; in xdr_stream_decode_opaque_inline() local [all …]
|
/openbmc/linux/arch/m68k/kernel/ |
H A D | sys_m68k.c | 105 len = (len + (addr & 15) + 15) >> 4; in cache_flush_040() 109 if (len <= tmp) in cache_flush_040() 112 len -= tmp; in cache_flush_040() 121 len -= tmp; in cache_flush_040() 123 len = (len + 15) >> 4; in cache_flush_040() 169 len -= i; in cache_flush_040() 181 for (len >>= PAGE_SHIFT; len--; addr += PAGE_SIZE) in cache_flush_040() 273 len -= tmp; in cache_flush_060() 285 len = (len + 15) >> 4; in cache_flush_060() 344 for (len >>= PAGE_SHIFT; len--; addr += PAGE_SIZE) in cache_flush_060() [all …]
|
/openbmc/u-boot/lib/ |
H A D | smbios.c | 63 int i, len = 0; in smbios_string_table_len() local 68 len += i; in smbios_string_table_len() 71 return len + 1; in smbios_string_table_len() 108 return len; in smbios_write_type0() 131 return len; in smbios_write_type1() 151 return len; in smbios_write_type2() 173 return len; in smbios_write_type3() 229 return len; in smbios_write_type4() 244 return len; in smbios_write_type32() 259 return len; in smbios_write_type127() [all …]
|
/openbmc/linux/drivers/scsi/qla2xxx/ |
H A D | qla_tmpl.c | 18 buf += *len; in qla27xx_insert16() 28 buf += *len; in qla27xx_insert32() 38 buf += *len; in qla27xx_insertbuf() 41 *len += size; in qla27xx_insertbuf() 108 ulong *len) in qla27xx_read_window() argument 543 qla27xx_insert32(*len + sizeof(uint32_t), buf, len); in qla27xx_fwdt_entry_t269() 855 *len = 0; in qla27xx_walk_template() 959 return len; in qla27xx_execute_fwdt_template() 973 return len; in qla27xx_fwdt_calculate_dump_size() 1016 ulong len; in qla27xx_mpi_fwdump() local [all …]
|
/openbmc/linux/sound/usb/ |
H A D | validate.c | 39 size_t len; in validate_mixer_unit() local 74 size_t len, m; in validate_processing_unit() local 79 if (d->bLength < len) in validate_processing_unit() 85 len += 1 + 2 + 1; in validate_processing_unit() 88 m = hdr[len]; in validate_processing_unit() 93 len += 1 + 4 + 1; in validate_processing_unit() 102 len += 2 + 4; in validate_processing_unit() 118 m = hdr[len]; in validate_processing_unit() 133 m = hdr[len]; in validate_processing_unit() 149 m = hdr[len]; in validate_processing_unit() [all …]
|
/openbmc/linux/tools/testing/selftests/powerpc/ptrace/ |
H A D | ptrace-hwbreak.c | 130 for (len = 1; len <= sizeof(glvar); len <<= 1) in test_workload() 134 for (len = 1; len <= sizeof(glvar); len <<= 1) in test_workload() 138 for (len = 1; len <= sizeof(glvar); len <<= 1) { in test_workload() 281 int len; in test_set_debugreg() local 287 for (len = 1; len <= sizeof(glvar); len <<= 1) { in test_set_debugreg() 297 for (len = 1; len <= sizeof(glvar); len <<= 1) { in test_set_debugreg() 308 for (len = 1; len <= sizeof(glvar); len <<= 1) { in test_set_debugreg() 402 int len; in test_sethwdebug_range_aligned() local 501 int len; in test_sethwdebug_range_unaligned() local 538 int len; in test_sethwdebug_range_unaligned_dar() local [all …]
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | checksum.h | 25 int len); 28 int len); 175 if (__builtin_constant_p(len) && len <= 16 && (len & 1) == 0) { in csum_partial() 176 if (len == 2) in csum_partial() 178 if (len >= 4) in csum_partial() 180 if (len == 6) in csum_partial() 183 if (len >= 8) in csum_partial() 186 if (len == 10) in csum_partial() 189 if (len >= 12) in csum_partial() 192 if (len == 14) in csum_partial() [all …]
|
/openbmc/u-boot/test/lib/ |
H A D | string.c | 52 int offset, int len) in test_memset() argument 77 int offset, len; in lib_memset() local 81 for (len = 1; len < BUFLEN - SWEEP; ++len) { in lib_memset() 135 int offset1, offset2, len; in lib_memcpy() local 142 for (len = 1; len < BUFLEN - SWEEP; ++len) { in lib_memcpy() 145 len); in lib_memcpy() 148 offset2, len)) { in lib_memcpy() 172 int offset1, offset2, len; in lib_memmove() local 177 for (len = 1; len < BUFLEN - SWEEP; ++len) { in lib_memmove() 180 len); in lib_memmove() [all …]
|
/openbmc/linux/fs/hpfs/ |
H A D | name.c | 45 if (*len > 254) return -ENAMETOOLONG; in hpfs_chk_name() 46 hpfs_adjust_length(name, len); in hpfs_chk_name() 47 if (!*len) return -EINVAL; in hpfs_chk_name() 55 unsigned len, int lc, int lng) in hpfs_translate_name() argument 61 for (i = 0; i < len; i++) in hpfs_translate_name() 67 if (!(to = kmalloc(len, GFP_KERNEL))) { in hpfs_translate_name() 99 if (i == len) return 0; in hpfs_is_name_long() 100 for (j = i + 1; j < len; j++) in hpfs_is_name_long() 109 if (!*len) return; in hpfs_adjust_length() 112 while (*len && (name[*len - 1] == '.' || name[*len - 1] == ' ')) in hpfs_adjust_length() [all …]
|
/openbmc/qemu/linux-user/ |
H A D | uaccess.c | 19 host_addr = g_memdup(host_addr, len); in lock_user() 21 host_addr = g_malloc0(len); in lock_user() 39 if (len > 0) { in unlock_user() 48 ssize_t len = target_strlen(guest_addr); in lock_user_string() local 49 if (len < 0) { in lock_user_string() 65 memcpy(hptr, ghptr, len); in copy_from_user() 79 memcpy(ghptr, hptr, len); in copy_to_user() 80 unlock_user(ghptr, gaddr, len); in copy_to_user() 94 size_t max_len, len; in target_strlen() local 104 guest_addr += len; in target_strlen() [all …]
|
/openbmc/linux/arch/um/drivers/ |
H A D | mconsole_user.c | 81 int len; in mconsole_get_request() local 86 if (req->len < 0) in mconsole_get_request() 100 req->request.len = len; in mconsole_get_request() 135 int len, n; in mconsole_reply_len() local 150 total -= len; in mconsole_reply_len() 151 str += len; in mconsole_reply_len() 152 reply.len = len + 1; in mconsole_reply_len() 154 len = sizeof(reply) + reply.len - sizeof(reply.data); in mconsole_reply_len() 205 len = (len > sizeof(packet.data)) ? sizeof(packet.data) : len; in mconsole_notify() 206 packet.len = len; in mconsole_notify() [all …]
|