Lines Matching refs:nframes

113 	u32 nframes;  member
215 seq_printf(m, "(%u)", op->nframes); in bcm_proc_show()
217 seq_printf(m, "[%u]", op->nframes); in bcm_proc_show()
244 seq_printf(m, "(%u) ", op->nframes); in bcm_proc_show()
246 seq_printf(m, "[%u] ", op->nframes); in bcm_proc_show()
303 if (op->currframe >= op->nframes) in bcm_can_tx()
320 unsigned int datalen = head->nframes * op->cfsiz; in bcm_send_to_user()
329 if (head->nframes) { in bcm_send_to_user()
341 if (head->nframes == 1) in bcm_send_to_user()
411 msg_head.nframes = 0; in bcm_tx_timeout_handler()
448 head.nframes = 1; in bcm_rx_changed()
559 memset(op->last_frames, 0, op->nframes * op->cfsiz); in bcm_rx_timeout_handler()
569 msg_head.nframes = 0; in bcm_rx_timeout_handler()
597 if (op->nframes > 1) { in bcm_rx_thr_flush()
601 for (i = 1; i < op->nframes; i++) in bcm_rx_thr_flush()
668 if (op->nframes == 1) { in bcm_rx_handler()
674 if (op->nframes > 1) { in bcm_rx_handler()
683 for (i = 1; i < op->nframes; i++) { in bcm_rx_handler()
825 msg_head->nframes = op->nframes; in bcm_read_op()
849 if (msg_head->nframes < 1 || msg_head->nframes > MAX_NFRAMES) in bcm_tx_setup()
866 if (msg_head->nframes > op->nframes) in bcm_tx_setup()
870 for (i = 0; i < msg_head->nframes; i++) { in bcm_tx_setup()
905 if (msg_head->nframes > 1) { in bcm_tx_setup()
906 op->frames = kmalloc_array(msg_head->nframes, in bcm_tx_setup()
916 for (i = 0; i < msg_head->nframes; i++) { in bcm_tx_setup()
963 if (op->nframes != msg_head->nframes) { in bcm_tx_setup()
964 op->nframes = msg_head->nframes; in bcm_tx_setup()
1004 return msg_head->nframes * op->cfsiz + MHSIZ; in bcm_tx_setup()
1018 if ((msg_head->flags & RX_FILTER_ID) || (!(msg_head->nframes))) { in bcm_rx_setup()
1022 msg_head->nframes = 0; in bcm_rx_setup()
1026 if (msg_head->nframes > MAX_NFRAMES + 1) in bcm_rx_setup()
1030 ((msg_head->nframes != 1) || in bcm_rx_setup()
1048 if (msg_head->nframes > op->nframes) in bcm_rx_setup()
1051 if (msg_head->nframes) { in bcm_rx_setup()
1054 msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1059 memset(op->last_frames, 0, msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1062 op->nframes = msg_head->nframes; in bcm_rx_setup()
1075 op->nframes = msg_head->nframes; in bcm_rx_setup()
1079 if (msg_head->nframes > 1) { in bcm_rx_setup()
1081 op->frames = kmalloc_array(msg_head->nframes, in bcm_rx_setup()
1090 op->last_frames = kcalloc(msg_head->nframes, in bcm_rx_setup()
1104 if (msg_head->nframes) { in bcm_rx_setup()
1106 msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1215 return msg_head->nframes * op->cfsiz + MHSIZ; in bcm_rx_setup()
1362 if ((msg_head.nframes != 1) || (size != cfsiz + MHSIZ)) in bcm_sendmsg()