Lines Matching refs:nframes

114 	u32 nframes;  member
220 seq_printf(m, "(%u)", op->nframes); in bcm_proc_show()
222 seq_printf(m, "[%u]", op->nframes); in bcm_proc_show()
249 seq_printf(m, "(%u) ", op->nframes); in bcm_proc_show()
251 seq_printf(m, "[%u] ", op->nframes); in bcm_proc_show()
309 if (op->currframe >= op->nframes) in bcm_can_tx()
326 unsigned int datalen = head->nframes * op->cfsiz; in bcm_send_to_user()
335 if (head->nframes) { in bcm_send_to_user()
347 if (head->nframes == 1) in bcm_send_to_user()
418 msg_head.nframes = 0; in bcm_tx_timeout_handler()
456 head.nframes = 1; in bcm_rx_changed()
567 memset(op->last_frames, 0, op->nframes * op->cfsiz); in bcm_rx_timeout_handler()
578 msg_head.nframes = 0; in bcm_rx_timeout_handler()
606 if (op->nframes > 1) { in bcm_rx_thr_flush()
610 for (i = 1; i < op->nframes; i++) in bcm_rx_thr_flush()
682 if (op->nframes == 1) { in bcm_rx_handler()
688 if (op->nframes > 1) { in bcm_rx_handler()
697 for (i = 1; i < op->nframes; i++) { in bcm_rx_handler()
849 msg_head->nframes = op->nframes; in bcm_read_op()
873 if (msg_head->nframes < 1 || msg_head->nframes > MAX_NFRAMES) in bcm_tx_setup()
890 if (msg_head->nframes > op->nframes) in bcm_tx_setup()
894 for (i = 0; i < msg_head->nframes; i++) { in bcm_tx_setup()
929 if (msg_head->nframes > 1) { in bcm_tx_setup()
930 op->frames = kmalloc_array(msg_head->nframes, in bcm_tx_setup()
940 for (i = 0; i < msg_head->nframes; i++) { in bcm_tx_setup()
987 if (op->nframes != msg_head->nframes) { in bcm_tx_setup()
988 op->nframes = msg_head->nframes; in bcm_tx_setup()
1028 return msg_head->nframes * op->cfsiz + MHSIZ; in bcm_tx_setup()
1042 if ((msg_head->flags & RX_FILTER_ID) || (!(msg_head->nframes))) { in bcm_rx_setup()
1046 msg_head->nframes = 0; in bcm_rx_setup()
1050 if (msg_head->nframes > MAX_NFRAMES + 1) in bcm_rx_setup()
1054 ((msg_head->nframes != 1) || in bcm_rx_setup()
1072 if (msg_head->nframes > op->nframes) in bcm_rx_setup()
1075 if (msg_head->nframes) { in bcm_rx_setup()
1078 msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1083 memset(op->last_frames, 0, msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1086 op->nframes = msg_head->nframes; in bcm_rx_setup()
1099 op->nframes = msg_head->nframes; in bcm_rx_setup()
1103 if (msg_head->nframes > 1) { in bcm_rx_setup()
1105 op->frames = kmalloc_array(msg_head->nframes, in bcm_rx_setup()
1114 op->last_frames = kcalloc(msg_head->nframes, in bcm_rx_setup()
1128 if (msg_head->nframes) { in bcm_rx_setup()
1130 msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1239 return msg_head->nframes * op->cfsiz + MHSIZ; in bcm_rx_setup()
1386 if ((msg_head.nframes != 1) || (size != cfsiz + MHSIZ)) in bcm_sendmsg()