Lines Matching refs:rules
223 void gxio_mpipe_rules_init(gxio_mpipe_rules_t *rules, in gxio_mpipe_rules_init() argument
226 rules->context = context; in gxio_mpipe_rules_init()
227 memset(&rules->list, 0, sizeof(rules->list)); in gxio_mpipe_rules_init()
232 int gxio_mpipe_rules_begin(gxio_mpipe_rules_t *rules, in gxio_mpipe_rules_begin() argument
239 gxio_mpipe_rules_list_t *list = &rules->list; in gxio_mpipe_rules_begin()
243 (gxio_mpipe_rules_rule_t *) (list->rules + list->head); in gxio_mpipe_rules_begin()
259 if (head + pad + sizeof(*rule) >= sizeof(list->rules)) in gxio_mpipe_rules_begin()
272 rule = (gxio_mpipe_rules_rule_t *) (list->rules + list->head); in gxio_mpipe_rules_begin()
285 stacks ? stacks->stacks[i] : rules->context->__stacks. in gxio_mpipe_rules_begin()
313 int gxio_mpipe_rules_add_channel(gxio_mpipe_rules_t *rules, in gxio_mpipe_rules_add_channel() argument
316 gxio_mpipe_rules_list_t *list = &rules->list; in gxio_mpipe_rules_add_channel()
319 (gxio_mpipe_rules_rule_t *) (list->rules + list->head); in gxio_mpipe_rules_add_channel()
336 int gxio_mpipe_rules_set_headroom(gxio_mpipe_rules_t *rules, uint8_t headroom) in gxio_mpipe_rules_set_headroom() argument
338 gxio_mpipe_rules_list_t *list = &rules->list; in gxio_mpipe_rules_set_headroom()
341 (gxio_mpipe_rules_rule_t *) (list->rules + list->head); in gxio_mpipe_rules_set_headroom()
354 int gxio_mpipe_rules_commit(gxio_mpipe_rules_t *rules) in gxio_mpipe_rules_commit() argument
356 gxio_mpipe_rules_list_t *list = &rules->list; in gxio_mpipe_rules_commit()
358 offsetof(gxio_mpipe_rules_list_t, rules) + list->tail; in gxio_mpipe_rules_commit()
359 return gxio_mpipe_commit_rules(rules->context, list, size); in gxio_mpipe_rules_commit()