Lines Matching refs:begin

893 	hdr_len = buf->data - buf->begin;  in wsm_receive_indication()
1076 size_t buf_len = buf->data - buf->begin; in wsm_cmd_send()
1097 cmd, __le16_to_cpu(((__le16 *)buf->begin)[2]), in wsm_cmd_send()
1110 ((__le16 *)buf->begin)[0] = __cpu_to_le16(buf_len); in wsm_cmd_send()
1111 ((__le16 *)buf->begin)[1] = __cpu_to_le16(cmd); in wsm_cmd_send()
1115 priv->wsm_cmd.ptr = buf->begin; in wsm_cmd_send()
1138 buf->begin, buf_len); in wsm_cmd_send()
1254 buf.begin = buf.data = data; in wsm_handle_exception()
1255 buf.end = &buf.begin[len]; in wsm_handle_exception()
1305 wsm_buf.begin = (u8 *)&wsm[0]; in wsm_handle_rx()
1307 wsm_buf.end = &wsm_buf.begin[__le16_to_cpu(wsm->len)]; in wsm_handle_rx()
1310 wsm_buf.end - wsm_buf.begin); in wsm_handle_rx()
1777 BUG_ON(buf->begin); in wsm_buf_init()
1778 buf->begin = kmalloc(FWLOAD_BLOCK_SIZE, GFP_KERNEL | GFP_DMA); in wsm_buf_init()
1779 buf->end = buf->begin ? &buf->begin[FWLOAD_BLOCK_SIZE] : buf->begin; in wsm_buf_init()
1785 kfree(buf->begin); in wsm_buf_deinit()
1786 buf->begin = buf->data = buf->end = NULL; in wsm_buf_deinit()
1791 if (buf->begin) { in wsm_buf_reset()
1792 buf->data = &buf->begin[4]; in wsm_buf_reset()
1793 *(u32 *)buf->begin = 0; in wsm_buf_reset()
1795 buf->data = buf->begin; in wsm_buf_reset()
1801 size_t pos = buf->data - buf->begin; in wsm_buf_reserve()
1807 tmp = krealloc(buf->begin, size, GFP_KERNEL | GFP_DMA); in wsm_buf_reserve()
1813 buf->begin = tmp; in wsm_buf_reserve()
1814 buf->data = &buf->begin[pos]; in wsm_buf_reserve()
1815 buf->end = &buf->begin[size]; in wsm_buf_reserve()