Lines Matching refs:magn
288 int scheme, magn, nbr; in fore200e_free_rx_buf() local
292 for (magn = 0; magn < BUFFER_MAGN_NBR; magn++) { in fore200e_free_rx_buf()
294 if ((buffer = fore200e->host_bsq[ scheme ][ magn ].buffer) != NULL) { in fore200e_free_rx_buf()
296 for (nbr = 0; nbr < fore200e_rx_buf_nbr[ scheme ][ magn ]; nbr++) { in fore200e_free_rx_buf()
312 int scheme, magn; in fore200e_uninit_bs_queue() local
315 for (magn = 0; magn < BUFFER_MAGN_NBR; magn++) { in fore200e_uninit_bs_queue()
317 struct chunk* status = &fore200e->host_bsq[ scheme ][ magn ].status; in fore200e_uninit_bs_queue()
318 struct chunk* rbd_block = &fore200e->host_bsq[ scheme ][ magn ].rbd_block; in fore200e_uninit_bs_queue()
860 int bsq_audit(int where, struct host_bsq* bsq, int scheme, int magn) in bsq_audit() argument
870 where, scheme, magn, buffer->index); in bsq_audit()
873 if (buffer->magn != magn) { in bsq_audit()
875 where, scheme, magn, buffer->index, buffer->magn); in bsq_audit()
880 where, scheme, magn, buffer->index, buffer->scheme); in bsq_audit()
883 if ((buffer->index < 0) || (buffer->index >= fore200e_rx_buf_nbr[ scheme ][ magn ])) { in bsq_audit()
885 where, scheme, magn, buffer->index); in bsq_audit()
894 where, scheme, magn, count, bsq->freebuf_count); in bsq_audit()
904 int scheme, magn, i; in fore200e_supply() local
911 for (magn = 0; magn < BUFFER_MAGN_NBR; magn++) { in fore200e_supply()
913 bsq = &fore200e->host_bsq[ scheme ][ magn ]; in fore200e_supply()
916 bsq_audit(1, bsq, scheme, magn); in fore200e_supply()
921 RBD_BLK_SIZE, scheme, magn, bsq->freebuf_count); in fore200e_supply()
931 scheme, magn, bsq->freebuf_count); in fore200e_supply()
939 scheme, magn, buffer->index); in fore200e_supply()
1063 bsq = &fore200e->host_bsq[ buffer->scheme ][ buffer->magn ]; in fore200e_collect_rpd()
1066 bsq_audit(2, bsq, buffer->scheme, buffer->magn); in fore200e_collect_rpd()
1070 buffer->scheme, buffer->magn, buffer->index); in fore200e_collect_rpd()
1984 int scheme, magn, nbr, size, i; in fore200e_alloc_rx_buf() local
1990 for (magn = 0; magn < BUFFER_MAGN_NBR; magn++) { in fore200e_alloc_rx_buf()
1992 bsq = &fore200e->host_bsq[ scheme ][ magn ]; in fore200e_alloc_rx_buf()
1994 nbr = fore200e_rx_buf_nbr[ scheme ][ magn ]; in fore200e_alloc_rx_buf()
1995 size = fore200e_rx_buf_size[ scheme ][ magn ]; in fore200e_alloc_rx_buf()
1997 DPRINTK(2, "rx buffers %d / %d are being allocated\n", scheme, magn); in fore200e_alloc_rx_buf()
2011 buffer[ i ].magn = magn; in fore200e_alloc_rx_buf()
2037 bsq_audit(3, bsq, scheme, magn); in fore200e_alloc_rx_buf()
2049 int scheme, magn, i; in fore200e_init_bs_queue() local
2055 for (magn = 0; magn < BUFFER_MAGN_NBR; magn++) { in fore200e_init_bs_queue()
2057 DPRINTK(2, "buffer supply queue %d / %d is being initialized\n", scheme, magn); in fore200e_init_bs_queue()
2059 bsq = &fore200e->host_bsq[ scheme ][ magn ]; in fore200e_init_bs_queue()
2083 fore200e->bus->read(&fore200e->cp_queues->cp_bsq[ scheme ][ magn ]); in fore200e_init_bs_queue()
2273 enum buffer_magn magn, int queue_length, in fore200e_param_bs_queue() argument
2276 struct bs_spec __iomem * bs_spec = &fore200e->cp_queues->init.bs_spec[ scheme ][ magn ]; in fore200e_param_bs_queue()
2279 fore200e->bus->write(fore200e_rx_buf_size[ scheme ][ magn ], &bs_spec->buffer_size); in fore200e_param_bs_queue()
2288 int ok, scheme, magn; in fore200e_initialize() local
2313 for (magn = 0; magn < BUFFER_MAGN_NBR; magn++) in fore200e_initialize()
2314 fore200e_param_bs_queue(fore200e, scheme, magn, in fore200e_initialize()
2316 fore200e_rx_buf_nbr[ scheme ][ magn ], in fore200e_initialize()