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()
677 if (op->nframes == 1) { in bcm_rx_handler()
683 if (op->nframes > 1) { in bcm_rx_handler()
692 for (i = 1; i < op->nframes; i++) { in bcm_rx_handler()
844 msg_head->nframes = op->nframes; in bcm_read_op()
868 if (msg_head->nframes < 1 || msg_head->nframes > MAX_NFRAMES) in bcm_tx_setup()
885 if (msg_head->nframes > op->nframes) in bcm_tx_setup()
889 for (i = 0; i < msg_head->nframes; i++) { in bcm_tx_setup()
924 if (msg_head->nframes > 1) { in bcm_tx_setup()
925 op->frames = kmalloc_array(msg_head->nframes, in bcm_tx_setup()
935 for (i = 0; i < msg_head->nframes; i++) { in bcm_tx_setup()
980 if (op->nframes != msg_head->nframes) { in bcm_tx_setup()
981 op->nframes = msg_head->nframes; in bcm_tx_setup()
1021 return msg_head->nframes * op->cfsiz + MHSIZ; in bcm_tx_setup()
1041 if ((msg_head->flags & RX_FILTER_ID) || (!(msg_head->nframes))) { in bcm_rx_setup()
1045 msg_head->nframes = 0; in bcm_rx_setup()
1049 if (msg_head->nframes > MAX_NFRAMES + 1) in bcm_rx_setup()
1053 ((msg_head->nframes != 1) || in bcm_rx_setup()
1071 if (msg_head->nframes > op->nframes) in bcm_rx_setup()
1074 if (msg_head->nframes) { in bcm_rx_setup()
1077 msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1082 memset(op->last_frames, 0, msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1085 op->nframes = msg_head->nframes; in bcm_rx_setup()
1098 op->nframes = msg_head->nframes; in bcm_rx_setup()
1102 if (msg_head->nframes > 1) { in bcm_rx_setup()
1104 op->frames = kmalloc_array(msg_head->nframes, in bcm_rx_setup()
1113 op->last_frames = kcalloc(msg_head->nframes, in bcm_rx_setup()
1127 if (msg_head->nframes) { in bcm_rx_setup()
1129 msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1238 return msg_head->nframes * op->cfsiz + MHSIZ; in bcm_rx_setup()
1385 if ((msg_head.nframes != 1) || (size != cfsiz + MHSIZ)) in bcm_sendmsg()