Lines Matching refs:magn
245 int scheme, magn, nbr;
249 for (magn = 0; magn < BUFFER_MAGN_NBR; magn++) {
251 if ((buffer = fore200e->host_bsq[ scheme ][ magn ].buffer) != NULL) {
253 for (nbr = 0; nbr < fore200e_rx_buf_nbr[ scheme ][ magn ]; nbr++) {
269 int scheme, magn;
272 for (magn = 0; magn < BUFFER_MAGN_NBR; magn++) {
274 struct chunk* status = &fore200e->host_bsq[ scheme ][ magn ].status;
275 struct chunk* rbd_block = &fore200e->host_bsq[ scheme ][ magn ].rbd_block;
915 int bsq_audit(int where, struct host_bsq* bsq, int scheme, int magn)
925 where, scheme, magn, buffer->index);
928 if (buffer->magn != magn) {
929 printk(FORE200E "bsq_audit(%d): queue %d.%d, buffer %ld, unexpected magn = %d\n",
930 where, scheme, magn, buffer->index, buffer->magn);
935 where, scheme, magn, buffer->index, buffer->scheme);
938 if ((buffer->index < 0) || (buffer->index >= fore200e_rx_buf_nbr[ scheme ][ magn ])) {
940 where, scheme, magn, buffer->index);
949 where, scheme, magn, count, bsq->freebuf_count);
959 int scheme, magn, i;
966 for (magn = 0; magn < BUFFER_MAGN_NBR; magn++) {
968 bsq = &fore200e->host_bsq[ scheme ][ magn ];
971 bsq_audit(1, bsq, scheme, magn);
976 RBD_BLK_SIZE, scheme, magn, bsq->freebuf_count);
986 scheme, magn, bsq->freebuf_count);
994 scheme, magn, buffer->index);
1120 bsq = &fore200e->host_bsq[ buffer->scheme ][ buffer->magn ];
1123 bsq_audit(2, bsq, buffer->scheme, buffer->magn);
1127 buffer->scheme, buffer->magn, buffer->index);
2011 int scheme, magn, nbr, size, i;
2017 for (magn = 0; magn < BUFFER_MAGN_NBR; magn++) {
2019 bsq = &fore200e->host_bsq[ scheme ][ magn ];
2021 nbr = fore200e_rx_buf_nbr[ scheme ][ magn ];
2022 size = fore200e_rx_buf_size[ scheme ][ magn ];
2024 DPRINTK(2, "rx buffers %d / %d are being allocated\n", scheme, magn);
2037 buffer[ i ].magn = magn;
2063 bsq_audit(3, bsq, scheme, magn);
2076 int scheme, magn, i;
2082 for (magn = 0; magn < BUFFER_MAGN_NBR; magn++) {
2084 DPRINTK(2, "buffer supply queue %d / %d is being initialized\n", scheme, magn);
2086 bsq = &fore200e->host_bsq[ scheme ][ magn ];
2110 fore200e->bus->read(&fore200e->cp_queues->cp_bsq[ scheme ][ magn ]);
2303 enum buffer_scheme scheme, enum buffer_magn magn,
2306 struct bs_spec __iomem * bs_spec = &fore200e->cp_queues->init.bs_spec[ scheme ][ magn ];
2309 fore200e->bus->write(fore200e_rx_buf_size[ scheme ][ magn ], &bs_spec->buffer_size);
2319 int ok, scheme, magn;
2344 for (magn = 0; magn < BUFFER_MAGN_NBR; magn++)
2345 fore200e_param_bs_queue(fore200e, scheme, magn,
2347 fore200e_rx_buf_nbr[ scheme ][ magn ],