Lines Matching full:scheme
291 int scheme, magn, nbr; in fore200e_free_rx_buf() local
294 for (scheme = 0; scheme < BUFFER_SCHEME_NBR; scheme++) { in fore200e_free_rx_buf()
297 if ((buffer = fore200e->host_bsq[ scheme ][ magn ].buffer) != NULL) { in fore200e_free_rx_buf()
299 for (nbr = 0; nbr < fore200e_rx_buf_nbr[ scheme ][ magn ]; nbr++) { in fore200e_free_rx_buf()
315 int scheme, magn; in fore200e_uninit_bs_queue() local
317 for (scheme = 0; scheme < BUFFER_SCHEME_NBR; scheme++) { in fore200e_uninit_bs_queue()
320 struct chunk* status = &fore200e->host_bsq[ scheme ][ magn ].status; in fore200e_uninit_bs_queue()
321 struct chunk* rbd_block = &fore200e->host_bsq[ scheme ][ magn ].rbd_block; in fore200e_uninit_bs_queue()
862 int bsq_audit(int where, struct host_bsq* bsq, int scheme, int magn) in bsq_audit() argument
872 where, scheme, magn, buffer->index); in bsq_audit()
877 where, scheme, magn, buffer->index, buffer->magn); in bsq_audit()
880 if (buffer->scheme != scheme) { in bsq_audit()
881 printk(FORE200E "bsq_audit(%d): queue %d.%d, buffer %ld, unexpected scheme = %d\n", in bsq_audit()
882 where, scheme, magn, buffer->index, buffer->scheme); in bsq_audit()
885 if ((buffer->index < 0) || (buffer->index >= fore200e_rx_buf_nbr[ scheme ][ magn ])) { in bsq_audit()
887 where, scheme, magn, buffer->index); in bsq_audit()
896 where, scheme, magn, count, bsq->freebuf_count); in bsq_audit()
906 int scheme, magn, i; in fore200e_supply() local
912 for (scheme = 0; scheme < BUFFER_SCHEME_NBR; scheme++) { in fore200e_supply()
915 bsq = &fore200e->host_bsq[ scheme ][ magn ]; in fore200e_supply()
918 bsq_audit(1, bsq, scheme, magn); in fore200e_supply()
923 RBD_BLK_SIZE, scheme, magn, bsq->freebuf_count); in fore200e_supply()
933 scheme, magn, bsq->freebuf_count); in fore200e_supply()
941 scheme, magn, buffer->index); in fore200e_supply()
1065 bsq = &fore200e->host_bsq[ buffer->scheme ][ buffer->magn ]; in fore200e_collect_rpd()
1068 bsq_audit(2, bsq, buffer->scheme, buffer->magn); in fore200e_collect_rpd()
1072 buffer->scheme, buffer->magn, buffer->index); in fore200e_collect_rpd()
1215 int scheme = vcc->vci % 2 ? BUFFER_SCHEME_ONE : BUFFER_SCHEME_TWO; in fore200e_select_scheme() local
1217 DPRINTK(1, "VC %d.%d.%d uses buffer scheme %d\n", in fore200e_select_scheme()
1218 vcc->itf, vcc->vpi, vcc->vci, scheme); in fore200e_select_scheme()
1220 return scheme; in fore200e_select_scheme()
1238 FORE200E_VCC(vcc)->scheme = fore200e_select_scheme(vcc); in fore200e_activate_vcin()
1242 activ_opcode.scheme = FORE200E_VCC(vcc)->scheme; in fore200e_activate_vcin()
1986 int scheme, magn, nbr, size, i; in fore200e_alloc_rx_buf() local
1991 for (scheme = 0; scheme < BUFFER_SCHEME_NBR; scheme++) { in fore200e_alloc_rx_buf()
1994 bsq = &fore200e->host_bsq[ scheme ][ magn ]; in fore200e_alloc_rx_buf()
1996 nbr = fore200e_rx_buf_nbr[ scheme ][ magn ]; in fore200e_alloc_rx_buf()
1997 size = fore200e_rx_buf_size[ scheme ][ magn ]; in fore200e_alloc_rx_buf()
1999 DPRINTK(2, "rx buffers %d / %d are being allocated\n", scheme, magn); in fore200e_alloc_rx_buf()
2012 buffer[ i ].scheme = scheme; in fore200e_alloc_rx_buf()
2039 bsq_audit(3, bsq, scheme, magn); in fore200e_alloc_rx_buf()
2051 int scheme, magn, i; in fore200e_init_bs_queue() local
2056 for (scheme = 0; scheme < BUFFER_SCHEME_NBR; scheme++) { in fore200e_init_bs_queue()
2059 DPRINTK(2, "buffer supply queue %d / %d is being initialized\n", scheme, magn); in fore200e_init_bs_queue()
2061 bsq = &fore200e->host_bsq[ scheme ][ magn ]; in fore200e_init_bs_queue()
2085 fore200e->bus->read(&fore200e->cp_queues->cp_bsq[ scheme ][ magn ]); in fore200e_init_bs_queue()
2274 enum buffer_scheme scheme, in fore200e_param_bs_queue() argument
2278 struct bs_spec __iomem * bs_spec = &fore200e->cp_queues->init.bs_spec[ scheme ][ magn ]; in fore200e_param_bs_queue()
2281 fore200e->bus->write(fore200e_rx_buf_size[ scheme ][ magn ], &bs_spec->buffer_size); in fore200e_param_bs_queue()
2290 int ok, scheme, magn; in fore200e_initialize() local
2314 for (scheme = 0; scheme < BUFFER_SCHEME_NBR; scheme++) in fore200e_initialize()
2316 fore200e_param_bs_queue(fore200e, scheme, magn, in fore200e_initialize()
2318 fore200e_rx_buf_nbr[ scheme ][ magn ], in fore200e_initialize()
2747 " free small bufs, scheme 1:\t%d\n" in fore200e_proc_read()
2748 " free large bufs, scheme 1:\t%d\n" in fore200e_proc_read()
2749 " free small bufs, scheme 2:\t%d\n" in fore200e_proc_read()
2750 " free large bufs, scheme 2:\t%d\n", in fore200e_proc_read()