Lines Matching refs:nframes

116 	u32 nframes;  member
232 seq_printf(m, "(%u)", op->nframes); in bcm_proc_show()
234 seq_printf(m, "[%u]", op->nframes); in bcm_proc_show()
261 seq_printf(m, "(%u) ", op->nframes); in bcm_proc_show()
263 seq_printf(m, "[%u] ", op->nframes); in bcm_proc_show()
321 if (op->currframe >= op->nframes) in bcm_can_tx()
338 unsigned int datalen = head->nframes * op->cfsiz; in bcm_send_to_user()
356 if (head->nframes) { in bcm_send_to_user()
368 if (head->nframes == 1) { in bcm_send_to_user()
444 msg_head.nframes = 0; in bcm_tx_timeout_handler()
482 head.nframes = 1; in bcm_rx_changed()
598 memset(op->last_frames, 0, op->nframes * op->cfsiz); in bcm_rx_timeout_handler()
609 msg_head.nframes = 0; in bcm_rx_timeout_handler()
637 if (op->nframes > 1) { in bcm_rx_thr_flush()
641 for (i = 1; i < op->nframes; i++) in bcm_rx_thr_flush()
723 if (op->nframes == 1) { in bcm_rx_handler()
729 if (op->nframes > 1) { in bcm_rx_handler()
738 for (i = 1; i < op->nframes; i++) { in bcm_rx_handler()
891 msg_head->nframes = op->nframes; in bcm_read_op()
915 if (msg_head->nframes < 1 || msg_head->nframes > MAX_NFRAMES) in bcm_tx_setup()
932 if (msg_head->nframes > op->nframes) in bcm_tx_setup()
936 for (i = 0; i < msg_head->nframes; i++) { in bcm_tx_setup()
971 if (msg_head->nframes > 1) { in bcm_tx_setup()
972 op->frames = kmalloc_array(msg_head->nframes, in bcm_tx_setup()
982 for (i = 0; i < msg_head->nframes; i++) { in bcm_tx_setup()
1027 if (op->nframes != msg_head->nframes) { in bcm_tx_setup()
1028 op->nframes = msg_head->nframes; in bcm_tx_setup()
1068 return msg_head->nframes * op->cfsiz + MHSIZ; in bcm_tx_setup()
1088 if ((msg_head->flags & RX_FILTER_ID) || (!(msg_head->nframes))) { in bcm_rx_setup()
1092 msg_head->nframes = 0; in bcm_rx_setup()
1096 if (msg_head->nframes > MAX_NFRAMES + 1) in bcm_rx_setup()
1100 ((msg_head->nframes != 1) || in bcm_rx_setup()
1118 if (msg_head->nframes > op->nframes) in bcm_rx_setup()
1121 if (msg_head->nframes) { in bcm_rx_setup()
1124 msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1129 memset(op->last_frames, 0, msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1132 op->nframes = msg_head->nframes; in bcm_rx_setup()
1145 op->nframes = msg_head->nframes; in bcm_rx_setup()
1149 if (msg_head->nframes > 1) { in bcm_rx_setup()
1151 op->frames = kmalloc_array(msg_head->nframes, in bcm_rx_setup()
1160 op->last_frames = kcalloc(msg_head->nframes, in bcm_rx_setup()
1174 if (msg_head->nframes) { in bcm_rx_setup()
1176 msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1285 return msg_head->nframes * op->cfsiz + MHSIZ; in bcm_rx_setup()
1432 if ((msg_head.nframes != 1) || (size != cfsiz + MHSIZ)) in bcm_sendmsg()