Lines Matching refs:nframes
117 u32 nframes;
236 seq_printf(m, "(%u)", op->nframes);
238 seq_printf(m, "[%u]", op->nframes);
265 seq_printf(m, "(%u) ", op->nframes);
267 seq_printf(m, "[%u] ", op->nframes);
337 if (op->currframe >= op->nframes)
359 unsigned int datalen = head->nframes * op->cfsiz;
378 if (head->nframes) {
388 * BCM, where nframes is 1
390 if (head->nframes == 1) {
466 msg_head.nframes = 0;
503 head.nframes = 1;
619 memset(op->last_frames, 0, op->nframes * op->cfsiz);
630 msg_head.nframes = 0;
658 if (op->nframes > 1) {
662 for (i = 1; i < op->nframes; i++)
744 if (op->nframes == 1) {
750 if (op->nframes > 1) {
759 for (i = 1; i < op->nframes; i++) {
912 msg_head->nframes = op->nframes;
935 /* check nframes boundaries - we need at least one CAN frame */
936 if (msg_head->nframes < 1 || msg_head->nframes > MAX_NFRAMES)
953 if (msg_head->nframes > op->nframes)
957 for (i = 0; i < msg_head->nframes; i++) {
980 /* only lock for unlikely count/nframes/currframe changes */
981 if (op->nframes != msg_head->nframes ||
987 if (op->nframes != msg_head->nframes ||
989 /* potentially update changed nframes */
990 op->nframes = msg_head->nframes;
1012 op->nframes = msg_head->nframes;
1018 if (msg_head->nframes > 1) {
1019 op->frames = kmalloc_array(msg_head->nframes,
1029 for (i = 0; i < msg_head->nframes; i++) {
1097 return msg_head->nframes * op->cfsiz + MHSIZ;
1117 if ((msg_head->flags & RX_FILTER_ID) || (!(msg_head->nframes))) {
1121 msg_head->nframes = 0;
1125 if (msg_head->nframes > MAX_NFRAMES + 1)
1129 ((msg_head->nframes != 1) ||
1147 if (msg_head->nframes > op->nframes)
1150 if (msg_head->nframes) {
1153 msg_head->nframes * op->cfsiz);
1158 memset(op->last_frames, 0, msg_head->nframes * op->cfsiz);
1161 op->nframes = msg_head->nframes;
1174 op->nframes = msg_head->nframes;
1178 if (msg_head->nframes > 1) {
1180 op->frames = kmalloc_array(msg_head->nframes,
1189 op->last_frames = kcalloc(msg_head->nframes,
1203 if (msg_head->nframes) {
1205 msg_head->nframes * op->cfsiz);
1311 return msg_head->nframes * op->cfsiz + MHSIZ;
1458 if ((msg_head.nframes != 1) || (size != cfsiz + MHSIZ))