Home
last modified time | relevance | path

Searched refs:hdr_sz (Results 1 – 8 of 8) sorted by relevance

/linux-4.4.14/tools/perf/util/
Dtrace-event-info.c60 static int record_file(const char *file, ssize_t hdr_sz) in record_file() argument
75 if (hdr_sz) { in record_file()
76 if (write(output_fd, &size, hdr_sz) != hdr_sz) in record_file()
92 sizep += sizeof(u64) - hdr_sz; in record_file()
94 if (hdr_sz && pwrite(output_fd, sizep, hdr_sz, hdr_pos) < 0) { in record_file()
Dheader.c2228 static int try_all_file_abis(uint64_t hdr_sz, struct perf_header *ph) in try_all_file_abis() argument
2236 if (hdr_sz != ref_size) { in try_all_file_abis()
2237 attr_size = bswap_64(hdr_sz); in try_all_file_abis()
2266 static int try_all_pipe_abis(uint64_t hdr_sz, struct perf_header *ph) in try_all_pipe_abis() argument
2272 if (hdr_sz != attr_pipe_abi_sizes[i]) { in try_all_pipe_abis()
2273 attr_size = bswap_64(hdr_sz); in try_all_pipe_abis()
2274 if (attr_size != hdr_sz) in try_all_pipe_abis()
2295 static int check_magic_endian(u64 magic, uint64_t hdr_sz, in check_magic_endian() argument
2306 return try_all_pipe_abis(hdr_sz, ph); in check_magic_endian()
2308 return try_all_file_abis(hdr_sz, ph); in check_magic_endian()
Dsession.c1217 size_t hdr_sz, rest; in perf_session__peek_event() local
1230 hdr_sz = sizeof(struct perf_event_header); in perf_session__peek_event()
1232 if (buf_sz < hdr_sz) in perf_session__peek_event()
1236 readn(fd, buf, hdr_sz) != (ssize_t)hdr_sz) in perf_session__peek_event()
1244 if (event->header.size < hdr_sz || event->header.size > buf_sz) in perf_session__peek_event()
1247 rest = event->header.size - hdr_sz; in perf_session__peek_event()
/linux-4.4.14/drivers/net/wireless/ath/wil6210/
Dfw_inc.c425 size_t s, hdr_sz; in wil_fw_load() local
430 hdr_sz = le32_to_cpu(hdr->size); in wil_fw_load()
431 s = sizeof(*hdr) + hdr_sz; in wil_fw_load()
434 if (hdr_sz % 4) { in wil_fw_load()
436 hdr_sz); in wil_fw_load()
440 &hdr[1], hdr_sz); in wil_fw_load()
450 le16_to_cpu(hdr->type), hdr_sz); in wil_fw_load()
/linux-4.4.14/net/tipc/
Dmsg.c90 uint hdr_sz, uint data_sz, u32 dnode, in tipc_msg_create() argument
96 buf = tipc_buf_acquire(hdr_sz + data_sz); in tipc_msg_create()
101 tipc_msg_init(onode, msg, user, type, hdr_sz, dnode); in tipc_msg_create()
102 msg_set_size(msg, hdr_sz + data_sz); in tipc_msg_create()
106 if (hdr_sz > SHORT_H_SIZE) { in tipc_msg_create()
Dmsg.h787 struct sk_buff *tipc_msg_create(uint user, uint type, uint hdr_sz,
/linux-4.4.14/drivers/mmc/card/
Dqueue.c459 unsigned int hdr_sz = mmc_large_sector(mq->card) ? 4096 : 512; in mmc_queue_packed_map_sg() local
464 remain = hdr_sz; in mmc_queue_packed_map_sg()
Dblock.c1627 unsigned int hdr_sz = mmc_large_sector(card) ? 4096 : 512; in mmc_calc_packed_hdr_segs() local
1632 len = min(hdr_sz, max_seg_sz); in mmc_calc_packed_hdr_segs()
1633 hdr_sz -= len; in mmc_calc_packed_hdr_segs()
1635 } while (hdr_sz); in mmc_calc_packed_hdr_segs()