Lines Matching defs:len
41 int len_sanitized = 0, len;
67 len_sanitized = canfd_sanitize_len(cfd->len);
79 dlc = can_fd_len2dlc(cfd->len);
97 memcpy(hw_tx_obj->data, cfd->data, cfd->len);
103 pad_len = len_sanitized - cfd->len;
105 memset(hw_tx_obj->data + cfd->len, 0x0, pad_len);
109 len = sizeof(hw_tx_obj->id) + sizeof(hw_tx_obj->flags);
111 len += round_up(len_sanitized, sizeof(u32));
113 len += round_up(cfd->len, sizeof(u32));
119 len);
121 len += sizeof(load_buf->crc.cmd);
122 crc = mcp251xfd_crc16_compute(&load_buf->crc, len);
123 put_unaligned_be16(crc, (void *)load_buf + len);
126 len += sizeof(load_buf->crc.crc);
128 len += sizeof(load_buf->nocrc.cmd);
131 tx_obj->xfer[0].len = len;
153 "Stopping tx-queue (tx_head=0x%08x, tx_tail=0x%08x, len=%d).\n",