Lines Matching refs:msg_hdr
1144 const struct i2400m_msg_hdr *msg_hdr, in i2400m_rx_msg_hdr_check() argument
1149 if (buf_size < sizeof(*msg_hdr)) { in i2400m_rx_msg_hdr_check()
1151 "vs %zu bytes expected)\n", buf_size, sizeof(*msg_hdr)); in i2400m_rx_msg_hdr_check()
1154 if (msg_hdr->barker != cpu_to_le32(I2400M_D2H_MSG_BARKER)) { in i2400m_rx_msg_hdr_check()
1157 le32_to_cpu(msg_hdr->barker), buf_size); in i2400m_rx_msg_hdr_check()
1160 if (msg_hdr->num_pls == 0) { in i2400m_rx_msg_hdr_check()
1164 if (le16_to_cpu(msg_hdr->num_pls) > I2400M_MAX_PLS_IN_MSG) { in i2400m_rx_msg_hdr_check()
1248 const struct i2400m_msg_hdr *msg_hdr; in i2400m_rx() local
1257 msg_hdr = (void *) skb->data; in i2400m_rx()
1258 result = i2400m_rx_msg_hdr_check(i2400m, msg_hdr, skb_len); in i2400m_rx()
1262 num_pls = le16_to_cpu(msg_hdr->num_pls); in i2400m_rx()
1263 pl_itr = sizeof(*msg_hdr) + /* Check payload descriptor(s) */ in i2400m_rx()
1264 num_pls * sizeof(msg_hdr->pld[0]); in i2400m_rx()
1269 skb_len, num_pls, sizeof(msg_hdr->pld[0]), pl_itr); in i2400m_rx()
1275 pl_size = i2400m_pld_size(&msg_hdr->pld[i]); in i2400m_rx()
1276 result = i2400m_rx_pl_descr_check(i2400m, &msg_hdr->pld[i], in i2400m_rx()
1281 i2400m_rx_payload(i2400m, skb, single_last, &msg_hdr->pld[i], in i2400m_rx()