Lines Matching defs:res
81 struct p2p_reg_class *res)
85 res->reg_class = a->reg_class;
91 res->channel[res->channels] = a->channel[i];
92 res->channels++;
93 if (res->channels == P2P_MAX_REG_CLASS_CHANNELS)
104 * @res: Data structure for returning the intersection of support channels
113 struct p2p_channels *res)
117 os_memset(res, 0, sizeof(*res));
127 &res->reg_class[res->reg_classes]);
128 if (res->reg_class[res->reg_classes].channels) {
129 res->reg_classes++;
130 if (res->reg_classes == P2P_MAX_REG_CLASSES)
159 * @res: Input data and place for returning union of the channel sets
162 void p2p_channels_union_inplace(struct p2p_channels *res,
167 for (i = 0; i < res->reg_classes; i++) {
168 struct p2p_reg_class *cl = &res->reg_class[i];
180 for (i = 0; i < res->reg_classes; i++) {
181 struct p2p_reg_class *cl = &res->reg_class[i];
186 if (i == res->reg_classes) {
187 if (res->reg_classes == P2P_MAX_REG_CLASSES)
189 os_memcpy(&res->reg_class[res->reg_classes++],
200 * @res: Data structure for returning the union of channels
204 struct p2p_channels *res)
206 os_memcpy(res, a, sizeof(*res));
207 p2p_channels_union_inplace(res, b);