Lines Matching refs:front_len
492 le32_to_cpu(m->hdr.front_len), le32_to_cpu(m->hdr.middle_len),
495 BUG_ON(le32_to_cpu(m->hdr.front_len) != m->front.iov_len);
1341 unsigned front_len, middle_len, data_len, data_off;
1368 front_len = le32_to_cpu(con->in_hdr.front_len);
1369 if (front_len > CEPH_MSG_MAX_FRONT_LEN)
1386 con->in_base_pos = -front_len - middle_len - data_len -
1401 con->in_hdr.front_len, con->in_hdr.data_len);
1408 con->in_base_pos = -front_len - middle_len - data_len -
1430 ret = read_partial_message_section(con, &m->front, front_len,
1479 m, front_len, m->footer.front_crc, middle_len,
1528 le32_to_cpu(msg->hdr.front_len),
1988 BUG_ON(msg->front.iov_len != le32_to_cpu(msg->hdr.front_len));
1999 le32_to_cpu(msg->hdr.front_len),
2042 unsigned front_len = le32_to_cpu(con->in_hdr.front_len);
2050 front_len -
2080 struct ceph_msg *ceph_msg_new(int type, int front_len, gfp_t flags)
2094 m->hdr.front_len = cpu_to_le32(front_len);
2103 m->front_max = front_len;
2109 if (front_len) {
2110 if (front_len > PAGE_CACHE_SIZE) {
2111 m->front.iov_base = __vmalloc(front_len, flags,
2115 m->front.iov_base = kmalloc(front_len, flags);
2119 front_len);
2125 m->front.iov_len = front_len;
2135 dout("ceph_msg_new %p front %d\n", m, front_len);
2141 pr_err("msg_new can't create type %d front %d\n", type, front_len);
2176 int front_len = le32_to_cpu(hdr->front_len);
2190 msg = ceph_msg_new(type, front_len, GFP_NOFS);
2193 type, front_len);