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