Lines Matching refs:nframes
111 u32 nframes; member
213 seq_printf(m, "(%u)", op->nframes); in bcm_proc_show()
215 seq_printf(m, "[%u]", op->nframes); in bcm_proc_show()
242 seq_printf(m, "(%u) ", op->nframes); in bcm_proc_show()
244 seq_printf(m, "[%u] ", op->nframes); in bcm_proc_show()
301 if (op->currframe >= op->nframes) in bcm_can_tx()
318 unsigned int datalen = head->nframes * op->cfsiz; in bcm_send_to_user()
327 if (head->nframes) { in bcm_send_to_user()
339 if (head->nframes == 1) in bcm_send_to_user()
409 msg_head.nframes = 0; in bcm_tx_timeout_handler()
446 head.nframes = 1; in bcm_rx_changed()
557 memset(op->last_frames, 0, op->nframes * op->cfsiz); in bcm_rx_timeout_handler()
567 msg_head.nframes = 0; in bcm_rx_timeout_handler()
595 if (op->nframes > 1) { in bcm_rx_thr_flush()
599 for (i = 1; i < op->nframes; i++) in bcm_rx_thr_flush()
666 if (op->nframes == 1) { in bcm_rx_handler()
672 if (op->nframes > 1) { in bcm_rx_handler()
681 for (i = 1; i < op->nframes; i++) { in bcm_rx_handler()
823 msg_head->nframes = op->nframes; in bcm_read_op()
847 if (msg_head->nframes < 1 || msg_head->nframes > MAX_NFRAMES) in bcm_tx_setup()
864 if (msg_head->nframes > op->nframes) in bcm_tx_setup()
868 for (i = 0; i < msg_head->nframes; i++) { in bcm_tx_setup()
903 if (msg_head->nframes > 1) { in bcm_tx_setup()
904 op->frames = kmalloc_array(msg_head->nframes, in bcm_tx_setup()
914 for (i = 0; i < msg_head->nframes; i++) { in bcm_tx_setup()
961 if (op->nframes != msg_head->nframes) { in bcm_tx_setup()
962 op->nframes = msg_head->nframes; in bcm_tx_setup()
1002 return msg_head->nframes * op->cfsiz + MHSIZ; in bcm_tx_setup()
1016 if ((msg_head->flags & RX_FILTER_ID) || (!(msg_head->nframes))) { in bcm_rx_setup()
1020 msg_head->nframes = 0; in bcm_rx_setup()
1024 if (msg_head->nframes > MAX_NFRAMES + 1) in bcm_rx_setup()
1028 ((msg_head->nframes != 1) || in bcm_rx_setup()
1046 if (msg_head->nframes > op->nframes) in bcm_rx_setup()
1049 if (msg_head->nframes) { in bcm_rx_setup()
1052 msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1057 memset(op->last_frames, 0, msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1060 op->nframes = msg_head->nframes; in bcm_rx_setup()
1073 op->nframes = msg_head->nframes; in bcm_rx_setup()
1077 if (msg_head->nframes > 1) { in bcm_rx_setup()
1079 op->frames = kmalloc_array(msg_head->nframes, in bcm_rx_setup()
1088 op->last_frames = kcalloc(msg_head->nframes, in bcm_rx_setup()
1102 if (msg_head->nframes) { in bcm_rx_setup()
1104 msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1213 return msg_head->nframes * op->cfsiz + MHSIZ; in bcm_rx_setup()
1360 if ((msg_head.nframes != 1) || (size != cfsiz + MHSIZ)) in bcm_sendmsg()