Lines Matching refs:nframes
105 u32 nframes; member
183 seq_printf(m, "[%u]%c ", op->nframes, in bcm_proc_show()
209 op->nframes); in bcm_proc_show()
278 if (op->currframe >= op->nframes) in bcm_can_tx()
295 unsigned int datalen = head->nframes * CFSIZ; in bcm_send_to_user()
304 if (head->nframes) { in bcm_send_to_user()
316 if (head->nframes == 1) in bcm_send_to_user()
377 msg_head.nframes = 0; in bcm_tx_timeout_tsklet()
424 head.nframes = 1; in bcm_rx_changed()
535 msg_head.nframes = 0; in bcm_rx_timeout_tsklet()
555 memset(op->last_frames, 0, op->nframes * CFSIZ); in bcm_rx_timeout_handler()
585 if (op->nframes > 1) { in bcm_rx_thr_flush()
589 for (i = 1; i < op->nframes; i++) in bcm_rx_thr_flush()
662 if (op->nframes == 1) { in bcm_rx_handler()
668 if (op->nframes > 1) { in bcm_rx_handler()
676 for (i = 1; i < op->nframes; i++) { in bcm_rx_handler()
818 msg_head->nframes = op->nframes; in bcm_read_op()
841 if (msg_head->nframes < 1 || msg_head->nframes > MAX_NFRAMES) in bcm_tx_setup()
855 if (msg_head->nframes > op->nframes) in bcm_tx_setup()
859 for (i = 0; i < msg_head->nframes; i++) { in bcm_tx_setup()
884 if (msg_head->nframes > 1) { in bcm_tx_setup()
885 op->frames = kmalloc(msg_head->nframes * CFSIZ, in bcm_tx_setup()
894 for (i = 0; i < msg_head->nframes; i++) { in bcm_tx_setup()
936 if (op->nframes != msg_head->nframes) { in bcm_tx_setup()
937 op->nframes = msg_head->nframes; in bcm_tx_setup()
979 return msg_head->nframes * CFSIZ + MHSIZ; in bcm_tx_setup()
993 if ((msg_head->flags & RX_FILTER_ID) || (!(msg_head->nframes))) { in bcm_rx_setup()
997 msg_head->nframes = 0; in bcm_rx_setup()
1001 if (msg_head->nframes > MAX_NFRAMES + 1) in bcm_rx_setup()
1005 ((msg_head->nframes != 1) || in bcm_rx_setup()
1019 if (msg_head->nframes > op->nframes) in bcm_rx_setup()
1022 if (msg_head->nframes) { in bcm_rx_setup()
1025 msg_head->nframes * CFSIZ); in bcm_rx_setup()
1030 memset(op->last_frames, 0, msg_head->nframes * CFSIZ); in bcm_rx_setup()
1033 op->nframes = msg_head->nframes; in bcm_rx_setup()
1045 op->nframes = msg_head->nframes; in bcm_rx_setup()
1047 if (msg_head->nframes > 1) { in bcm_rx_setup()
1049 op->frames = kmalloc(msg_head->nframes * CFSIZ, in bcm_rx_setup()
1057 op->last_frames = kzalloc(msg_head->nframes * CFSIZ, in bcm_rx_setup()
1070 if (msg_head->nframes) { in bcm_rx_setup()
1072 msg_head->nframes * CFSIZ); in bcm_rx_setup()
1186 return msg_head->nframes * CFSIZ + MHSIZ; in bcm_rx_setup()
1328 if ((msg_head.nframes != 1) || (size != CFSIZ + MHSIZ)) in bcm_sendmsg()