Lines Matching refs:pBlock
123 int error_code, struct r3964_block_header *pBlock);
445 struct r3964_block_header *pBlock = pInfo->tx_first;
448 if (tty == NULL || pBlock == NULL) {
455 pBlock, room, pBlock->length);
457 while (pInfo->tx_position < pBlock->length) {
461 if (pBlock->data[pInfo->tx_position] == DLE) {
465 put_char(pInfo, pBlock->data[pInfo->tx_position++]);
470 if ((pInfo->tx_position == pBlock->length) && (room >= 3)) {
486 struct r3964_block_header *pBlock;
524 pBlock = kmalloc(length + sizeof(struct r3964_block_header),
526 TRACE_M("on_receive_block - kmalloc %p", pBlock);
528 if (pBlock == NULL)
531 pBlock->length = length;
532 pBlock->data = ((unsigned char *)pBlock) +
534 pBlock->locks = 0;
535 pBlock->next = NULL;
536 pBlock->owner = NULL;
538 memcpy(pBlock->data, pInfo->rx_buf, length);
541 add_rx_queue(pInfo, pBlock);
547 pBlock);
844 int error_code, struct r3964_block_header *pBlock)
864 pMsg->block = pBlock;
876 if (pBlock != NULL) {
877 pBlock->locks++;
889 pBlock = NULL;