Lines Matching refs:nframes

110 	u32 nframes;  member
196 seq_printf(m, "(%u)", op->nframes); in bcm_proc_show()
198 seq_printf(m, "[%u]", op->nframes); in bcm_proc_show()
225 seq_printf(m, "(%u) ", op->nframes); in bcm_proc_show()
227 seq_printf(m, "[%u] ", op->nframes); in bcm_proc_show()
284 if (op->currframe >= op->nframes) in bcm_can_tx()
301 unsigned int datalen = head->nframes * op->cfsiz; in bcm_send_to_user()
310 if (head->nframes) { in bcm_send_to_user()
322 if (head->nframes == 1) in bcm_send_to_user()
383 msg_head.nframes = 0; in bcm_tx_timeout_tsklet()
430 head.nframes = 1; in bcm_rx_changed()
544 msg_head.nframes = 0; in bcm_rx_timeout_tsklet()
564 memset(op->last_frames, 0, op->nframes * op->cfsiz); in bcm_rx_timeout_handler()
596 if (op->nframes > 1) { in bcm_rx_thr_flush()
600 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()
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()
886 if (msg_head->nframes > op->nframes) in bcm_tx_setup()
890 for (i = 0; i < msg_head->nframes; i++) { in bcm_tx_setup()
925 if (msg_head->nframes > 1) { in bcm_tx_setup()
926 op->frames = kmalloc_array(msg_head->nframes, in bcm_tx_setup()
936 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()
1040 if ((msg_head->flags & RX_FILTER_ID) || (!(msg_head->nframes))) { in bcm_rx_setup()
1044 msg_head->nframes = 0; in bcm_rx_setup()
1048 if (msg_head->nframes > MAX_NFRAMES + 1) in bcm_rx_setup()
1052 ((msg_head->nframes != 1) || in bcm_rx_setup()
1066 if (msg_head->nframes > op->nframes) in bcm_rx_setup()
1069 if (msg_head->nframes) { in bcm_rx_setup()
1072 msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1077 memset(op->last_frames, 0, msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1080 op->nframes = msg_head->nframes; in bcm_rx_setup()
1093 op->nframes = msg_head->nframes; in bcm_rx_setup()
1097 if (msg_head->nframes > 1) { in bcm_rx_setup()
1099 op->frames = kmalloc_array(msg_head->nframes, in bcm_rx_setup()
1108 op->last_frames = kcalloc(msg_head->nframes, in bcm_rx_setup()
1122 if (msg_head->nframes) { in bcm_rx_setup()
1124 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()