Lines Matching refs:nframes
113 u32 nframes; member
219 seq_printf(m, "(%u)", op->nframes); in bcm_proc_show()
221 seq_printf(m, "[%u]", op->nframes); in bcm_proc_show()
248 seq_printf(m, "(%u) ", op->nframes); in bcm_proc_show()
250 seq_printf(m, "[%u] ", op->nframes); in bcm_proc_show()
307 if (op->currframe >= op->nframes) in bcm_can_tx()
324 unsigned int datalen = head->nframes * op->cfsiz; in bcm_send_to_user()
333 if (head->nframes) { in bcm_send_to_user()
345 if (head->nframes == 1) in bcm_send_to_user()
416 msg_head.nframes = 0; in bcm_tx_timeout_handler()
454 head.nframes = 1; in bcm_rx_changed()
565 memset(op->last_frames, 0, op->nframes * op->cfsiz); in bcm_rx_timeout_handler()
576 msg_head.nframes = 0; in bcm_rx_timeout_handler()
604 if (op->nframes > 1) { in bcm_rx_thr_flush()
608 for (i = 1; i < op->nframes; i++) in bcm_rx_thr_flush()
675 if (op->nframes == 1) { in bcm_rx_handler()
681 if (op->nframes > 1) { in bcm_rx_handler()
690 for (i = 1; i < op->nframes; i++) { in bcm_rx_handler()
833 msg_head->nframes = op->nframes; in bcm_read_op()
857 if (msg_head->nframes < 1 || msg_head->nframes > MAX_NFRAMES) in bcm_tx_setup()
874 if (msg_head->nframes > op->nframes) in bcm_tx_setup()
878 for (i = 0; i < msg_head->nframes; i++) { in bcm_tx_setup()
913 if (msg_head->nframes > 1) { in bcm_tx_setup()
914 op->frames = kmalloc_array(msg_head->nframes, in bcm_tx_setup()
924 for (i = 0; i < msg_head->nframes; i++) { in bcm_tx_setup()
971 if (op->nframes != msg_head->nframes) { in bcm_tx_setup()
972 op->nframes = msg_head->nframes; in bcm_tx_setup()
1012 return msg_head->nframes * op->cfsiz + MHSIZ; in bcm_tx_setup()
1026 if ((msg_head->flags & RX_FILTER_ID) || (!(msg_head->nframes))) { in bcm_rx_setup()
1030 msg_head->nframes = 0; in bcm_rx_setup()
1034 if (msg_head->nframes > MAX_NFRAMES + 1) in bcm_rx_setup()
1038 ((msg_head->nframes != 1) || in bcm_rx_setup()
1056 if (msg_head->nframes > op->nframes) in bcm_rx_setup()
1059 if (msg_head->nframes) { in bcm_rx_setup()
1062 msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1067 memset(op->last_frames, 0, msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1070 op->nframes = msg_head->nframes; in bcm_rx_setup()
1083 op->nframes = msg_head->nframes; in bcm_rx_setup()
1087 if (msg_head->nframes > 1) { in bcm_rx_setup()
1089 op->frames = kmalloc_array(msg_head->nframes, in bcm_rx_setup()
1098 op->last_frames = kcalloc(msg_head->nframes, in bcm_rx_setup()
1112 if (msg_head->nframes) { in bcm_rx_setup()
1114 msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1223 return msg_head->nframes * op->cfsiz + MHSIZ; in bcm_rx_setup()
1370 if ((msg_head.nframes != 1) || (size != cfsiz + MHSIZ)) in bcm_sendmsg()