Lines Matching refs:opt
414 static void velocity_set_int_opt(int *opt, int val, int min, int max, int def, in velocity_set_int_opt() argument
418 *opt = def; in velocity_set_int_opt()
422 *opt = def; in velocity_set_int_opt()
425 *opt = val; in velocity_set_int_opt()
441 static void velocity_set_bool_opt(u32 *opt, int val, int def, u32 flag, in velocity_set_bool_opt() argument
444 (*opt) &= (~flag); in velocity_set_bool_opt()
446 *opt |= (def ? flag : 0); in velocity_set_bool_opt()
450 *opt |= (def ? flag : 0); in velocity_set_bool_opt()
454 *opt |= (val ? flag : 0); in velocity_set_bool_opt()
1480 struct velocity_opt *opt = &vptr->options; in velocity_init_dma_rings() local
1481 const unsigned int rx_ring_size = opt->numrx * sizeof(struct rx_desc); in velocity_init_dma_rings()
1482 const unsigned int tx_ring_size = opt->numtx * sizeof(struct tx_desc); in velocity_init_dma_rings()