Lines Matching refs:rule
1627 struct coalesce_receive_filt_rule *rule;
1634 rule = (void *)coalesce_cfg->rule_data;
1637 rule->header.type = cpu_to_le16(TLV_TYPE_COALESCE_RULE);
1638 rule->max_coalescing_delay =
1639 cpu_to_le16(cfg->rule[cnt].max_coalescing_delay);
1640 rule->pkt_type = cfg->rule[cnt].pkt_type;
1641 rule->num_of_fields = cfg->rule[cnt].num_of_fields;
1645 param = rule->params;
1646 for (idx = 0; idx < cfg->rule[cnt].num_of_fields; idx++) {
1647 param->operation = cfg->rule[cnt].params[idx].operation;
1649 cfg->rule[cnt].params[idx].operand_len;
1651 cpu_to_le16(cfg->rule[cnt].params[idx].offset);
1653 cfg->rule[cnt].params[idx].operand_byte_stream,
1661 /* Total rule length is sizeof max_coalescing_delay(u16),
1665 rule->header.len = cpu_to_le16(length + sizeof(u16) +
1668 /* Add the rule length to the command size*/
1670 le16_to_cpu(rule->header.len) +
1673 rule = (void *)((u8 *)rule->params + length);