Lines Matching defs:size
99 #define N_PCI_SZ 1 /* size of the PCI byte #1 */
100 #define SF_PCI_SZ4 1 /* size of SingleFrame PCI including 4 bit SF_DL */
101 #define SF_PCI_SZ8 2 /* size of SingleFrame PCI including 8 bit SF_DL */
102 #define FF_PCI_SZ12 2 /* size of FirstFrame PCI including 12 bit FF_DL */
103 #define FF_PCI_SZ32 6 /* size of FirstFrame PCI including 32 bit FF_DL */
104 #define FC_CONTENT_SZ 3 /* flow control content size in byte (FS/BS/STmin) */
627 /* Strictly receive only frames with the configured MTU size
678 * If so take care of the increased SF PCI size
912 static int isotp_sendmsg(struct socket *sock, struct msghdr *msg, size_t size)
942 if (!size || size > MAX_MSG_LENGTH) {
952 (size > so->tx.ll_dl - SF_PCI_SZ4 - ae - off)) {
957 err = memcpy_from_msg(so->tx.buf, msg, size);
978 so->tx.len = size;
989 if (size <= so->tx.ll_dl - SF_PCI_SZ4 - ae - off) {
990 /* The message size generally fits into a SingleFrame - good.
999 if (size <= CAN_MAX_DLEN - SF_PCI_SZ4 - ae)
1007 /* place SF_DL size value depending on the SF_DL ESC offset */
1009 cf->data[SF_PCI_SZ4 + ae] = size;
1011 cf->data[ae] |= size;
1027 /* disable wait for FCs due to activated block size */
1078 return size;
1093 static int isotp_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
1113 if (size < skb->len)
1116 size = skb->len;
1118 ret = memcpy_to_msg(msg, skb->data, size);
1131 ret = (flags & MSG_TRUNC) ? skb->len : size;