Lines Matching refs:space
75 * w1_reply_make_space() - send message if needed to make space
76 * @block: block to make space on
77 * @space: how many bytes requested
79 * Verify there is enough room left for the caller to add "space" bytes to the
82 static void w1_reply_make_space(struct w1_cb_block *block, u16 space)
85 if (len + space >= block->maxlen) {
107 * block->cn->len does not include space for block->msg
136 u32 space;
150 space = sizeof(*cmd) + cmd->len;
152 memcpy(block->cmd, cmd, space);
153 block->cn->len += space;
154 block->msg->len += space;
164 u16 space = sizeof(struct cn_msg) + sizeof(*req_msg) + sizeof(*req_cmd);
165 w1_reply_make_space(block, space);
558 * space for one cb_node each.
567 /* count messages for nodes and allocate any additional space
591 /* allocate space for the block, a copy of the original message,
593 * space for replies which is the original message size plus
594 * space for any list slave data and status messages
599 /* space for nodes */
617 /* Sneeky, when not bundling, reply_size is the allocated space
620 * when checking if there is enough space, w1_reply_make_space