Lines Matching refs:nframes
105 u32 nframes; member
188 seq_printf(m, "[%u]%c ", op->nframes, in bcm_proc_show()
214 op->nframes); in bcm_proc_show()
283 if (op->currframe >= op->nframes) in bcm_can_tx()
300 unsigned int datalen = head->nframes * CFSIZ; in bcm_send_to_user()
309 if (head->nframes) { in bcm_send_to_user()
321 if (head->nframes == 1) in bcm_send_to_user()
382 msg_head.nframes = 0; in bcm_tx_timeout_tsklet()
429 head.nframes = 1; in bcm_rx_changed()
540 msg_head.nframes = 0; in bcm_rx_timeout_tsklet()
560 memset(op->last_frames, 0, op->nframes * CFSIZ); in bcm_rx_timeout_handler()
590 if (op->nframes > 1) { in bcm_rx_thr_flush()
594 for (i = 1; i < op->nframes; i++) in bcm_rx_thr_flush()
667 if (op->nframes == 1) { in bcm_rx_handler()
673 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()
846 if (msg_head->nframes < 1 || msg_head->nframes > MAX_NFRAMES) in bcm_tx_setup()
860 if (msg_head->nframes > op->nframes) in bcm_tx_setup()
864 for (i = 0; i < msg_head->nframes; i++) { in bcm_tx_setup()
889 if (msg_head->nframes > 1) { in bcm_tx_setup()
890 op->frames = kmalloc(msg_head->nframes * CFSIZ, in bcm_tx_setup()
899 for (i = 0; i < msg_head->nframes; i++) { in bcm_tx_setup()
941 if (op->nframes != msg_head->nframes) { in bcm_tx_setup()
942 op->nframes = msg_head->nframes; in bcm_tx_setup()
984 return msg_head->nframes * CFSIZ + MHSIZ; in bcm_tx_setup()
998 if ((msg_head->flags & RX_FILTER_ID) || (!(msg_head->nframes))) { in bcm_rx_setup()
1002 msg_head->nframes = 0; in bcm_rx_setup()
1006 if (msg_head->nframes > MAX_NFRAMES + 1) in bcm_rx_setup()
1010 ((msg_head->nframes != 1) || in bcm_rx_setup()
1024 if (msg_head->nframes > op->nframes) in bcm_rx_setup()
1027 if (msg_head->nframes) { in bcm_rx_setup()
1030 msg_head->nframes * CFSIZ); in bcm_rx_setup()
1035 memset(op->last_frames, 0, msg_head->nframes * CFSIZ); in bcm_rx_setup()
1038 op->nframes = msg_head->nframes; in bcm_rx_setup()
1050 op->nframes = msg_head->nframes; in bcm_rx_setup()
1052 if (msg_head->nframes > 1) { in bcm_rx_setup()
1054 op->frames = kmalloc(msg_head->nframes * CFSIZ, in bcm_rx_setup()
1062 op->last_frames = kzalloc(msg_head->nframes * CFSIZ, in bcm_rx_setup()
1075 if (msg_head->nframes) { in bcm_rx_setup()
1077 msg_head->nframes * CFSIZ); in bcm_rx_setup()
1191 return msg_head->nframes * CFSIZ + MHSIZ; in bcm_rx_setup()
1333 if ((msg_head.nframes != 1) || (size != CFSIZ + MHSIZ)) in bcm_sendmsg()