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()
985 if (op->nframes != msg_head->nframes) { in bcm_tx_setup()
986 op->nframes = msg_head->nframes; in bcm_tx_setup()
1026 return msg_head->nframes * op->cfsiz + MHSIZ; in bcm_tx_setup()
1046 if ((msg_head->flags & RX_FILTER_ID) || (!(msg_head->nframes))) { in bcm_rx_setup()
1050 msg_head->nframes = 0; in bcm_rx_setup()
1054 if (msg_head->nframes > MAX_NFRAMES + 1) in bcm_rx_setup()
1058 ((msg_head->nframes != 1) || in bcm_rx_setup()
1076 if (msg_head->nframes > op->nframes) in bcm_rx_setup()
1079 if (msg_head->nframes) { in bcm_rx_setup()
1082 msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1087 memset(op->last_frames, 0, msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1090 op->nframes = msg_head->nframes; in bcm_rx_setup()
1103 op->nframes = msg_head->nframes; in bcm_rx_setup()
1107 if (msg_head->nframes > 1) { in bcm_rx_setup()
1109 op->frames = kmalloc_array(msg_head->nframes, in bcm_rx_setup()
1118 op->last_frames = kcalloc(msg_head->nframes, in bcm_rx_setup()
1132 if (msg_head->nframes) { in bcm_rx_setup()
1134 msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1243 return msg_head->nframes * op->cfsiz + MHSIZ; in bcm_rx_setup()
1390 if ((msg_head.nframes != 1) || (size != cfsiz + MHSIZ)) in bcm_sendmsg()