Lines Matching refs:size
97 const size_t size = SJA1105ET_SIZE_AVB_PARAMS_ENTRY; in sja1105et_avb_params_entry_packing() local
100 sja1105_packing(buf, &entry->destmeta, 95, 48, size, op); in sja1105et_avb_params_entry_packing()
101 sja1105_packing(buf, &entry->srcmeta, 47, 0, size, op); in sja1105et_avb_params_entry_packing()
102 return size; in sja1105et_avb_params_entry_packing()
108 const size_t size = SJA1105PQRS_SIZE_AVB_PARAMS_ENTRY; in sja1105pqrs_avb_params_entry_packing() local
111 sja1105_packing(buf, &entry->cas_master, 126, 126, size, op); in sja1105pqrs_avb_params_entry_packing()
112 sja1105_packing(buf, &entry->destmeta, 125, 78, size, op); in sja1105pqrs_avb_params_entry_packing()
113 sja1105_packing(buf, &entry->srcmeta, 77, 30, size, op); in sja1105pqrs_avb_params_entry_packing()
114 return size; in sja1105pqrs_avb_params_entry_packing()
120 const size_t size = SJA1105ET_SIZE_GENERAL_PARAMS_ENTRY; in sja1105et_general_params_entry_packing() local
123 sja1105_packing(buf, &entry->vllupformat, 319, 319, size, op); in sja1105et_general_params_entry_packing()
124 sja1105_packing(buf, &entry->mirr_ptacu, 318, 318, size, op); in sja1105et_general_params_entry_packing()
125 sja1105_packing(buf, &entry->switchid, 317, 315, size, op); in sja1105et_general_params_entry_packing()
126 sja1105_packing(buf, &entry->hostprio, 314, 312, size, op); in sja1105et_general_params_entry_packing()
127 sja1105_packing(buf, &entry->mac_fltres1, 311, 264, size, op); in sja1105et_general_params_entry_packing()
128 sja1105_packing(buf, &entry->mac_fltres0, 263, 216, size, op); in sja1105et_general_params_entry_packing()
129 sja1105_packing(buf, &entry->mac_flt1, 215, 168, size, op); in sja1105et_general_params_entry_packing()
130 sja1105_packing(buf, &entry->mac_flt0, 167, 120, size, op); in sja1105et_general_params_entry_packing()
131 sja1105_packing(buf, &entry->incl_srcpt1, 119, 119, size, op); in sja1105et_general_params_entry_packing()
132 sja1105_packing(buf, &entry->incl_srcpt0, 118, 118, size, op); in sja1105et_general_params_entry_packing()
133 sja1105_packing(buf, &entry->send_meta1, 117, 117, size, op); in sja1105et_general_params_entry_packing()
134 sja1105_packing(buf, &entry->send_meta0, 116, 116, size, op); in sja1105et_general_params_entry_packing()
135 sja1105_packing(buf, &entry->casc_port, 115, 113, size, op); in sja1105et_general_params_entry_packing()
136 sja1105_packing(buf, &entry->host_port, 112, 110, size, op); in sja1105et_general_params_entry_packing()
137 sja1105_packing(buf, &entry->mirr_port, 109, 107, size, op); in sja1105et_general_params_entry_packing()
138 sja1105_packing(buf, &entry->vlmarker, 106, 75, size, op); in sja1105et_general_params_entry_packing()
139 sja1105_packing(buf, &entry->vlmask, 74, 43, size, op); in sja1105et_general_params_entry_packing()
140 sja1105_packing(buf, &entry->tpid, 42, 27, size, op); in sja1105et_general_params_entry_packing()
141 sja1105_packing(buf, &entry->ignore2stf, 26, 26, size, op); in sja1105et_general_params_entry_packing()
142 sja1105_packing(buf, &entry->tpid2, 25, 10, size, op); in sja1105et_general_params_entry_packing()
143 return size; in sja1105et_general_params_entry_packing()
152 const size_t size = SJA1105PQRS_SIZE_GENERAL_PARAMS_ENTRY; in sja1105pqrs_general_params_entry_packing() local
155 sja1105_packing(buf, &entry->vllupformat, 351, 351, size, op); in sja1105pqrs_general_params_entry_packing()
156 sja1105_packing(buf, &entry->mirr_ptacu, 350, 350, size, op); in sja1105pqrs_general_params_entry_packing()
157 sja1105_packing(buf, &entry->switchid, 349, 347, size, op); in sja1105pqrs_general_params_entry_packing()
158 sja1105_packing(buf, &entry->hostprio, 346, 344, size, op); in sja1105pqrs_general_params_entry_packing()
159 sja1105_packing(buf, &entry->mac_fltres1, 343, 296, size, op); in sja1105pqrs_general_params_entry_packing()
160 sja1105_packing(buf, &entry->mac_fltres0, 295, 248, size, op); in sja1105pqrs_general_params_entry_packing()
161 sja1105_packing(buf, &entry->mac_flt1, 247, 200, size, op); in sja1105pqrs_general_params_entry_packing()
162 sja1105_packing(buf, &entry->mac_flt0, 199, 152, size, op); in sja1105pqrs_general_params_entry_packing()
163 sja1105_packing(buf, &entry->incl_srcpt1, 151, 151, size, op); in sja1105pqrs_general_params_entry_packing()
164 sja1105_packing(buf, &entry->incl_srcpt0, 150, 150, size, op); in sja1105pqrs_general_params_entry_packing()
165 sja1105_packing(buf, &entry->send_meta1, 149, 149, size, op); in sja1105pqrs_general_params_entry_packing()
166 sja1105_packing(buf, &entry->send_meta0, 148, 148, size, op); in sja1105pqrs_general_params_entry_packing()
167 sja1105_packing(buf, &entry->casc_port, 147, 145, size, op); in sja1105pqrs_general_params_entry_packing()
168 sja1105_packing(buf, &entry->host_port, 144, 142, size, op); in sja1105pqrs_general_params_entry_packing()
169 sja1105_packing(buf, &entry->mirr_port, 141, 139, size, op); in sja1105pqrs_general_params_entry_packing()
170 sja1105_packing(buf, &entry->vlmarker, 138, 107, size, op); in sja1105pqrs_general_params_entry_packing()
171 sja1105_packing(buf, &entry->vlmask, 106, 75, size, op); in sja1105pqrs_general_params_entry_packing()
172 sja1105_packing(buf, &entry->tpid2, 74, 59, size, op); in sja1105pqrs_general_params_entry_packing()
173 sja1105_packing(buf, &entry->ignore2stf, 58, 58, size, op); in sja1105pqrs_general_params_entry_packing()
174 sja1105_packing(buf, &entry->tpid, 57, 42, size, op); in sja1105pqrs_general_params_entry_packing()
175 sja1105_packing(buf, &entry->queue_ts, 41, 41, size, op); in sja1105pqrs_general_params_entry_packing()
176 sja1105_packing(buf, &entry->egrmirrvid, 40, 29, size, op); in sja1105pqrs_general_params_entry_packing()
177 sja1105_packing(buf, &entry->egrmirrpcp, 28, 26, size, op); in sja1105pqrs_general_params_entry_packing()
178 sja1105_packing(buf, &entry->egrmirrdei, 25, 25, size, op); in sja1105pqrs_general_params_entry_packing()
179 sja1105_packing(buf, &entry->replay_port, 24, 22, size, op); in sja1105pqrs_general_params_entry_packing()
180 return size; in sja1105pqrs_general_params_entry_packing()
187 const size_t size = SJA1110_SIZE_GENERAL_PARAMS_ENTRY; in sja1110_general_params_entry_packing() local
189 sja1105_packing(buf, &entry->vllupformat, 447, 447, size, op); in sja1110_general_params_entry_packing()
190 sja1105_packing(buf, &entry->mirr_ptacu, 446, 446, size, op); in sja1110_general_params_entry_packing()
191 sja1105_packing(buf, &entry->switchid, 445, 442, size, op); in sja1110_general_params_entry_packing()
192 sja1105_packing(buf, &entry->hostprio, 441, 439, size, op); in sja1110_general_params_entry_packing()
193 sja1105_packing(buf, &entry->mac_fltres1, 438, 391, size, op); in sja1110_general_params_entry_packing()
194 sja1105_packing(buf, &entry->mac_fltres0, 390, 343, size, op); in sja1110_general_params_entry_packing()
195 sja1105_packing(buf, &entry->mac_flt1, 342, 295, size, op); in sja1110_general_params_entry_packing()
196 sja1105_packing(buf, &entry->mac_flt0, 294, 247, size, op); in sja1110_general_params_entry_packing()
197 sja1105_packing(buf, &entry->incl_srcpt1, 246, 246, size, op); in sja1110_general_params_entry_packing()
198 sja1105_packing(buf, &entry->incl_srcpt0, 245, 245, size, op); in sja1110_general_params_entry_packing()
199 sja1105_packing(buf, &entry->send_meta1, 244, 244, size, op); in sja1110_general_params_entry_packing()
200 sja1105_packing(buf, &entry->send_meta0, 243, 243, size, op); in sja1110_general_params_entry_packing()
201 sja1105_packing(buf, &entry->casc_port, 242, 232, size, op); in sja1110_general_params_entry_packing()
202 sja1105_packing(buf, &entry->host_port, 231, 228, size, op); in sja1110_general_params_entry_packing()
203 sja1105_packing(buf, &entry->mirr_port, 227, 224, size, op); in sja1110_general_params_entry_packing()
204 sja1105_packing(buf, &entry->vlmarker, 223, 192, size, op); in sja1110_general_params_entry_packing()
205 sja1105_packing(buf, &entry->vlmask, 191, 160, size, op); in sja1110_general_params_entry_packing()
206 sja1105_packing(buf, &entry->tpid2, 159, 144, size, op); in sja1110_general_params_entry_packing()
207 sja1105_packing(buf, &entry->ignore2stf, 143, 143, size, op); in sja1110_general_params_entry_packing()
208 sja1105_packing(buf, &entry->tpid, 142, 127, size, op); in sja1110_general_params_entry_packing()
209 sja1105_packing(buf, &entry->queue_ts, 126, 126, size, op); in sja1110_general_params_entry_packing()
210 sja1105_packing(buf, &entry->egrmirrvid, 125, 114, size, op); in sja1110_general_params_entry_packing()
211 sja1105_packing(buf, &entry->egrmirrpcp, 113, 111, size, op); in sja1110_general_params_entry_packing()
212 sja1105_packing(buf, &entry->egrmirrdei, 110, 110, size, op); in sja1110_general_params_entry_packing()
213 sja1105_packing(buf, &entry->replay_port, 109, 106, size, op); in sja1110_general_params_entry_packing()
214 sja1105_packing(buf, &entry->tdmaconfigidx, 70, 67, size, op); in sja1110_general_params_entry_packing()
215 sja1105_packing(buf, &entry->header_type, 64, 49, size, op); in sja1110_general_params_entry_packing()
216 sja1105_packing(buf, &entry->tte_en, 16, 16, size, op); in sja1110_general_params_entry_packing()
217 return size; in sja1110_general_params_entry_packing()
224 const size_t size = SJA1105_SIZE_L2_FORWARDING_PARAMS_ENTRY; in sja1105_l2_forwarding_params_entry_packing() local
228 sja1105_packing(buf, &entry->max_dynp, 95, 93, size, op); in sja1105_l2_forwarding_params_entry_packing()
231 offset + 9, offset + 0, size, op); in sja1105_l2_forwarding_params_entry_packing()
232 return size; in sja1105_l2_forwarding_params_entry_packing()
239 const size_t size = SJA1105_SIZE_L2_FORWARDING_PARAMS_ENTRY; in sja1110_l2_forwarding_params_entry_packing() local
242 sja1105_packing(buf, &entry->max_dynp, 95, 93, size, op); in sja1110_l2_forwarding_params_entry_packing()
245 offset + 10, offset + 0, size, op); in sja1110_l2_forwarding_params_entry_packing()
246 return size; in sja1110_l2_forwarding_params_entry_packing()
252 const size_t size = SJA1105_SIZE_L2_FORWARDING_ENTRY; in sja1105_l2_forwarding_entry_packing() local
256 sja1105_packing(buf, &entry->bc_domain, 63, 59, size, op); in sja1105_l2_forwarding_entry_packing()
257 sja1105_packing(buf, &entry->reach_port, 58, 54, size, op); in sja1105_l2_forwarding_entry_packing()
258 sja1105_packing(buf, &entry->fl_domain, 53, 49, size, op); in sja1105_l2_forwarding_entry_packing()
261 offset + 2, offset + 0, size, op); in sja1105_l2_forwarding_entry_packing()
262 return size; in sja1105_l2_forwarding_entry_packing()
269 const size_t size = SJA1105_SIZE_L2_FORWARDING_ENTRY; in sja1110_l2_forwarding_entry_packing() local
276 offset + 2, offset + 0, size, op); in sja1110_l2_forwarding_entry_packing()
279 sja1105_packing(buf, &entry->bc_domain, 63, 53, size, op); in sja1110_l2_forwarding_entry_packing()
280 sja1105_packing(buf, &entry->reach_port, 52, 42, size, op); in sja1110_l2_forwarding_entry_packing()
281 sja1105_packing(buf, &entry->fl_domain, 41, 31, size, op); in sja1110_l2_forwarding_entry_packing()
283 return size; in sja1110_l2_forwarding_entry_packing()
290 const size_t size = SJA1105ET_SIZE_L2_LOOKUP_PARAMS_ENTRY; in sja1105et_l2_lookup_params_entry_packing() local
293 sja1105_packing(buf, &entry->maxage, 31, 17, size, op); in sja1105et_l2_lookup_params_entry_packing()
294 sja1105_packing(buf, &entry->dyn_tbsz, 16, 14, size, op); in sja1105et_l2_lookup_params_entry_packing()
295 sja1105_packing(buf, &entry->poly, 13, 6, size, op); in sja1105et_l2_lookup_params_entry_packing()
296 sja1105_packing(buf, &entry->shared_learn, 5, 5, size, op); in sja1105et_l2_lookup_params_entry_packing()
297 sja1105_packing(buf, &entry->no_enf_hostprt, 4, 4, size, op); in sja1105et_l2_lookup_params_entry_packing()
298 sja1105_packing(buf, &entry->no_mgmt_learn, 3, 3, size, op); in sja1105et_l2_lookup_params_entry_packing()
299 return size; in sja1105et_l2_lookup_params_entry_packing()
305 const size_t size = SJA1105PQRS_SIZE_L2_LOOKUP_PARAMS_ENTRY; in sja1105pqrs_l2_lookup_params_entry_packing() local
311 offset + 10, offset + 0, size, op); in sja1105pqrs_l2_lookup_params_entry_packing()
312 sja1105_packing(buf, &entry->maxage, 57, 43, size, op); in sja1105pqrs_l2_lookup_params_entry_packing()
313 sja1105_packing(buf, &entry->start_dynspc, 42, 33, size, op); in sja1105pqrs_l2_lookup_params_entry_packing()
314 sja1105_packing(buf, &entry->drpnolearn, 32, 28, size, op); in sja1105pqrs_l2_lookup_params_entry_packing()
315 sja1105_packing(buf, &entry->shared_learn, 27, 27, size, op); in sja1105pqrs_l2_lookup_params_entry_packing()
316 sja1105_packing(buf, &entry->no_enf_hostprt, 26, 26, size, op); in sja1105pqrs_l2_lookup_params_entry_packing()
317 sja1105_packing(buf, &entry->no_mgmt_learn, 25, 25, size, op); in sja1105pqrs_l2_lookup_params_entry_packing()
318 sja1105_packing(buf, &entry->use_static, 24, 24, size, op); in sja1105pqrs_l2_lookup_params_entry_packing()
319 sja1105_packing(buf, &entry->owr_dyn, 23, 23, size, op); in sja1105pqrs_l2_lookup_params_entry_packing()
320 sja1105_packing(buf, &entry->learn_once, 22, 22, size, op); in sja1105pqrs_l2_lookup_params_entry_packing()
321 return size; in sja1105pqrs_l2_lookup_params_entry_packing()
328 const size_t size = SJA1110_SIZE_L2_LOOKUP_PARAMS_ENTRY; in sja1110_l2_lookup_params_entry_packing() local
333 offset + 10, offset + 0, size, op); in sja1110_l2_lookup_params_entry_packing()
334 sja1105_packing(buf, &entry->maxage, 69, 55, size, op); in sja1110_l2_lookup_params_entry_packing()
335 sja1105_packing(buf, &entry->start_dynspc, 54, 45, size, op); in sja1110_l2_lookup_params_entry_packing()
336 sja1105_packing(buf, &entry->drpnolearn, 44, 34, size, op); in sja1110_l2_lookup_params_entry_packing()
337 sja1105_packing(buf, &entry->shared_learn, 33, 33, size, op); in sja1110_l2_lookup_params_entry_packing()
338 sja1105_packing(buf, &entry->no_enf_hostprt, 32, 32, size, op); in sja1110_l2_lookup_params_entry_packing()
339 sja1105_packing(buf, &entry->no_mgmt_learn, 31, 31, size, op); in sja1110_l2_lookup_params_entry_packing()
340 sja1105_packing(buf, &entry->use_static, 30, 30, size, op); in sja1110_l2_lookup_params_entry_packing()
341 sja1105_packing(buf, &entry->owr_dyn, 29, 29, size, op); in sja1110_l2_lookup_params_entry_packing()
342 sja1105_packing(buf, &entry->learn_once, 28, 28, size, op); in sja1110_l2_lookup_params_entry_packing()
343 return size; in sja1110_l2_lookup_params_entry_packing()
349 const size_t size = SJA1105ET_SIZE_L2_LOOKUP_ENTRY; in sja1105et_l2_lookup_entry_packing() local
352 sja1105_packing(buf, &entry->vlanid, 95, 84, size, op); in sja1105et_l2_lookup_entry_packing()
353 sja1105_packing(buf, &entry->macaddr, 83, 36, size, op); in sja1105et_l2_lookup_entry_packing()
354 sja1105_packing(buf, &entry->destports, 35, 31, size, op); in sja1105et_l2_lookup_entry_packing()
355 sja1105_packing(buf, &entry->enfport, 30, 30, size, op); in sja1105et_l2_lookup_entry_packing()
356 sja1105_packing(buf, &entry->index, 29, 20, size, op); in sja1105et_l2_lookup_entry_packing()
357 return size; in sja1105et_l2_lookup_entry_packing()
363 const size_t size = SJA1105PQRS_SIZE_L2_LOOKUP_ENTRY; in sja1105pqrs_l2_lookup_entry_packing() local
367 sja1105_packing(buf, &entry->tsreg, 159, 159, size, op); in sja1105pqrs_l2_lookup_entry_packing()
368 sja1105_packing(buf, &entry->mirrvlan, 158, 147, size, op); in sja1105pqrs_l2_lookup_entry_packing()
369 sja1105_packing(buf, &entry->takets, 146, 146, size, op); in sja1105pqrs_l2_lookup_entry_packing()
370 sja1105_packing(buf, &entry->mirr, 145, 145, size, op); in sja1105pqrs_l2_lookup_entry_packing()
371 sja1105_packing(buf, &entry->retag, 144, 144, size, op); in sja1105pqrs_l2_lookup_entry_packing()
373 sja1105_packing(buf, &entry->touched, 159, 159, size, op); in sja1105pqrs_l2_lookup_entry_packing()
374 sja1105_packing(buf, &entry->age, 158, 144, size, op); in sja1105pqrs_l2_lookup_entry_packing()
376 sja1105_packing(buf, &entry->mask_iotag, 143, 143, size, op); in sja1105pqrs_l2_lookup_entry_packing()
377 sja1105_packing(buf, &entry->mask_vlanid, 142, 131, size, op); in sja1105pqrs_l2_lookup_entry_packing()
378 sja1105_packing(buf, &entry->mask_macaddr, 130, 83, size, op); in sja1105pqrs_l2_lookup_entry_packing()
379 sja1105_packing(buf, &entry->iotag, 82, 82, size, op); in sja1105pqrs_l2_lookup_entry_packing()
380 sja1105_packing(buf, &entry->vlanid, 81, 70, size, op); in sja1105pqrs_l2_lookup_entry_packing()
381 sja1105_packing(buf, &entry->macaddr, 69, 22, size, op); in sja1105pqrs_l2_lookup_entry_packing()
382 sja1105_packing(buf, &entry->destports, 21, 17, size, op); in sja1105pqrs_l2_lookup_entry_packing()
383 sja1105_packing(buf, &entry->enfport, 16, 16, size, op); in sja1105pqrs_l2_lookup_entry_packing()
384 sja1105_packing(buf, &entry->index, 15, 6, size, op); in sja1105pqrs_l2_lookup_entry_packing()
385 return size; in sja1105pqrs_l2_lookup_entry_packing()
391 const size_t size = SJA1110_SIZE_L2_LOOKUP_ENTRY; in sja1110_l2_lookup_entry_packing() local
395 sja1105_packing(buf, &entry->trap, 168, 168, size, op); in sja1110_l2_lookup_entry_packing()
396 sja1105_packing(buf, &entry->mirrvlan, 167, 156, size, op); in sja1110_l2_lookup_entry_packing()
397 sja1105_packing(buf, &entry->takets, 155, 155, size, op); in sja1110_l2_lookup_entry_packing()
398 sja1105_packing(buf, &entry->mirr, 154, 154, size, op); in sja1110_l2_lookup_entry_packing()
399 sja1105_packing(buf, &entry->retag, 153, 153, size, op); in sja1110_l2_lookup_entry_packing()
401 sja1105_packing(buf, &entry->touched, 168, 168, size, op); in sja1110_l2_lookup_entry_packing()
402 sja1105_packing(buf, &entry->age, 167, 153, size, op); in sja1110_l2_lookup_entry_packing()
404 sja1105_packing(buf, &entry->mask_iotag, 152, 152, size, op); in sja1110_l2_lookup_entry_packing()
405 sja1105_packing(buf, &entry->mask_vlanid, 151, 140, size, op); in sja1110_l2_lookup_entry_packing()
406 sja1105_packing(buf, &entry->mask_macaddr, 139, 92, size, op); in sja1110_l2_lookup_entry_packing()
407 sja1105_packing(buf, &entry->mask_srcport, 91, 88, size, op); in sja1110_l2_lookup_entry_packing()
408 sja1105_packing(buf, &entry->iotag, 87, 87, size, op); in sja1110_l2_lookup_entry_packing()
409 sja1105_packing(buf, &entry->vlanid, 86, 75, size, op); in sja1110_l2_lookup_entry_packing()
410 sja1105_packing(buf, &entry->macaddr, 74, 27, size, op); in sja1110_l2_lookup_entry_packing()
411 sja1105_packing(buf, &entry->srcport, 26, 23, size, op); in sja1110_l2_lookup_entry_packing()
412 sja1105_packing(buf, &entry->destports, 22, 12, size, op); in sja1110_l2_lookup_entry_packing()
413 sja1105_packing(buf, &entry->enfport, 11, 11, size, op); in sja1110_l2_lookup_entry_packing()
414 sja1105_packing(buf, &entry->index, 10, 1, size, op); in sja1110_l2_lookup_entry_packing()
415 return size; in sja1110_l2_lookup_entry_packing()
421 const size_t size = SJA1105_SIZE_L2_POLICING_ENTRY; in sja1105_l2_policing_entry_packing() local
424 sja1105_packing(buf, &entry->sharindx, 63, 58, size, op); in sja1105_l2_policing_entry_packing()
425 sja1105_packing(buf, &entry->smax, 57, 42, size, op); in sja1105_l2_policing_entry_packing()
426 sja1105_packing(buf, &entry->rate, 41, 26, size, op); in sja1105_l2_policing_entry_packing()
427 sja1105_packing(buf, &entry->maxlen, 25, 15, size, op); in sja1105_l2_policing_entry_packing()
428 sja1105_packing(buf, &entry->partition, 14, 12, size, op); in sja1105_l2_policing_entry_packing()
429 return size; in sja1105_l2_policing_entry_packing()
436 const size_t size = SJA1105_SIZE_L2_POLICING_ENTRY; in sja1110_l2_policing_entry_packing() local
438 sja1105_packing(buf, &entry->sharindx, 63, 57, size, op); in sja1110_l2_policing_entry_packing()
439 sja1105_packing(buf, &entry->smax, 56, 39, size, op); in sja1110_l2_policing_entry_packing()
440 sja1105_packing(buf, &entry->rate, 38, 21, size, op); in sja1110_l2_policing_entry_packing()
441 sja1105_packing(buf, &entry->maxlen, 20, 10, size, op); in sja1110_l2_policing_entry_packing()
442 sja1105_packing(buf, &entry->partition, 9, 7, size, op); in sja1110_l2_policing_entry_packing()
443 return size; in sja1110_l2_policing_entry_packing()
449 const size_t size = SJA1105ET_SIZE_MAC_CONFIG_ENTRY; in sja1105et_mac_config_entry_packing() local
455 offset + 0, offset + 0, size, op); in sja1105et_mac_config_entry_packing()
457 offset + 9, offset + 1, size, op); in sja1105et_mac_config_entry_packing()
459 offset + 18, offset + 10, size, op); in sja1105et_mac_config_entry_packing()
461 sja1105_packing(buf, &entry->ifg, 71, 67, size, op); in sja1105et_mac_config_entry_packing()
462 sja1105_packing(buf, &entry->speed, 66, 65, size, op); in sja1105et_mac_config_entry_packing()
463 sja1105_packing(buf, &entry->tp_delin, 64, 49, size, op); in sja1105et_mac_config_entry_packing()
464 sja1105_packing(buf, &entry->tp_delout, 48, 33, size, op); in sja1105et_mac_config_entry_packing()
465 sja1105_packing(buf, &entry->maxage, 32, 25, size, op); in sja1105et_mac_config_entry_packing()
466 sja1105_packing(buf, &entry->vlanprio, 24, 22, size, op); in sja1105et_mac_config_entry_packing()
467 sja1105_packing(buf, &entry->vlanid, 21, 10, size, op); in sja1105et_mac_config_entry_packing()
468 sja1105_packing(buf, &entry->ing_mirr, 9, 9, size, op); in sja1105et_mac_config_entry_packing()
469 sja1105_packing(buf, &entry->egr_mirr, 8, 8, size, op); in sja1105et_mac_config_entry_packing()
470 sja1105_packing(buf, &entry->drpnona664, 7, 7, size, op); in sja1105et_mac_config_entry_packing()
471 sja1105_packing(buf, &entry->drpdtag, 6, 6, size, op); in sja1105et_mac_config_entry_packing()
472 sja1105_packing(buf, &entry->drpuntag, 5, 5, size, op); in sja1105et_mac_config_entry_packing()
473 sja1105_packing(buf, &entry->retag, 4, 4, size, op); in sja1105et_mac_config_entry_packing()
474 sja1105_packing(buf, &entry->dyn_learn, 3, 3, size, op); in sja1105et_mac_config_entry_packing()
475 sja1105_packing(buf, &entry->egress, 2, 2, size, op); in sja1105et_mac_config_entry_packing()
476 sja1105_packing(buf, &entry->ingress, 1, 1, size, op); in sja1105et_mac_config_entry_packing()
477 return size; in sja1105et_mac_config_entry_packing()
483 const size_t size = SJA1105PQRS_SIZE_MAC_CONFIG_ENTRY; in sja1105pqrs_mac_config_entry_packing() local
489 offset + 0, offset + 0, size, op); in sja1105pqrs_mac_config_entry_packing()
491 offset + 9, offset + 1, size, op); in sja1105pqrs_mac_config_entry_packing()
493 offset + 18, offset + 10, size, op); in sja1105pqrs_mac_config_entry_packing()
495 sja1105_packing(buf, &entry->ifg, 103, 99, size, op); in sja1105pqrs_mac_config_entry_packing()
496 sja1105_packing(buf, &entry->speed, 98, 97, size, op); in sja1105pqrs_mac_config_entry_packing()
497 sja1105_packing(buf, &entry->tp_delin, 96, 81, size, op); in sja1105pqrs_mac_config_entry_packing()
498 sja1105_packing(buf, &entry->tp_delout, 80, 65, size, op); in sja1105pqrs_mac_config_entry_packing()
499 sja1105_packing(buf, &entry->maxage, 64, 57, size, op); in sja1105pqrs_mac_config_entry_packing()
500 sja1105_packing(buf, &entry->vlanprio, 56, 54, size, op); in sja1105pqrs_mac_config_entry_packing()
501 sja1105_packing(buf, &entry->vlanid, 53, 42, size, op); in sja1105pqrs_mac_config_entry_packing()
502 sja1105_packing(buf, &entry->ing_mirr, 41, 41, size, op); in sja1105pqrs_mac_config_entry_packing()
503 sja1105_packing(buf, &entry->egr_mirr, 40, 40, size, op); in sja1105pqrs_mac_config_entry_packing()
504 sja1105_packing(buf, &entry->drpnona664, 39, 39, size, op); in sja1105pqrs_mac_config_entry_packing()
505 sja1105_packing(buf, &entry->drpdtag, 38, 38, size, op); in sja1105pqrs_mac_config_entry_packing()
506 sja1105_packing(buf, &entry->drpuntag, 35, 35, size, op); in sja1105pqrs_mac_config_entry_packing()
507 sja1105_packing(buf, &entry->retag, 34, 34, size, op); in sja1105pqrs_mac_config_entry_packing()
508 sja1105_packing(buf, &entry->dyn_learn, 33, 33, size, op); in sja1105pqrs_mac_config_entry_packing()
509 sja1105_packing(buf, &entry->egress, 32, 32, size, op); in sja1105pqrs_mac_config_entry_packing()
510 sja1105_packing(buf, &entry->ingress, 31, 31, size, op); in sja1105pqrs_mac_config_entry_packing()
511 return size; in sja1105pqrs_mac_config_entry_packing()
517 const size_t size = SJA1105PQRS_SIZE_MAC_CONFIG_ENTRY; in sja1110_mac_config_entry_packing() local
523 offset + 0, offset + 0, size, op); in sja1110_mac_config_entry_packing()
525 offset + 9, offset + 1, size, op); in sja1110_mac_config_entry_packing()
527 offset + 18, offset + 10, size, op); in sja1110_mac_config_entry_packing()
529 sja1105_packing(buf, &entry->speed, 98, 96, size, op); in sja1110_mac_config_entry_packing()
530 sja1105_packing(buf, &entry->tp_delin, 95, 80, size, op); in sja1110_mac_config_entry_packing()
531 sja1105_packing(buf, &entry->tp_delout, 79, 64, size, op); in sja1110_mac_config_entry_packing()
532 sja1105_packing(buf, &entry->maxage, 63, 56, size, op); in sja1110_mac_config_entry_packing()
533 sja1105_packing(buf, &entry->vlanprio, 55, 53, size, op); in sja1110_mac_config_entry_packing()
534 sja1105_packing(buf, &entry->vlanid, 52, 41, size, op); in sja1110_mac_config_entry_packing()
535 sja1105_packing(buf, &entry->ing_mirr, 40, 40, size, op); in sja1110_mac_config_entry_packing()
536 sja1105_packing(buf, &entry->egr_mirr, 39, 39, size, op); in sja1110_mac_config_entry_packing()
537 sja1105_packing(buf, &entry->drpnona664, 38, 38, size, op); in sja1110_mac_config_entry_packing()
538 sja1105_packing(buf, &entry->drpdtag, 37, 37, size, op); in sja1110_mac_config_entry_packing()
539 sja1105_packing(buf, &entry->drpuntag, 34, 34, size, op); in sja1110_mac_config_entry_packing()
540 sja1105_packing(buf, &entry->retag, 33, 33, size, op); in sja1110_mac_config_entry_packing()
541 sja1105_packing(buf, &entry->dyn_learn, 32, 32, size, op); in sja1110_mac_config_entry_packing()
542 sja1105_packing(buf, &entry->egress, 31, 31, size, op); in sja1110_mac_config_entry_packing()
543 sja1105_packing(buf, &entry->ingress, 30, 30, size, op); in sja1110_mac_config_entry_packing()
544 sja1105_packing(buf, &entry->ifg, 10, 5, size, op); in sja1110_mac_config_entry_packing()
545 return size; in sja1110_mac_config_entry_packing()
553 const size_t size = SJA1105_SIZE_SCHEDULE_ENTRY_POINTS_PARAMS_ENTRY; in sja1105_schedule_entry_points_params_entry_packing() local
555 sja1105_packing(buf, &entry->clksrc, 31, 30, size, op); in sja1105_schedule_entry_points_params_entry_packing()
556 sja1105_packing(buf, &entry->actsubsch, 29, 27, size, op); in sja1105_schedule_entry_points_params_entry_packing()
557 return size; in sja1105_schedule_entry_points_params_entry_packing()
565 const size_t size = SJA1105_SIZE_SCHEDULE_ENTRY_POINTS_ENTRY; in sja1105_schedule_entry_points_entry_packing() local
567 sja1105_packing(buf, &entry->subschindx, 31, 29, size, op); in sja1105_schedule_entry_points_entry_packing()
568 sja1105_packing(buf, &entry->delta, 28, 11, size, op); in sja1105_schedule_entry_points_entry_packing()
569 sja1105_packing(buf, &entry->address, 10, 1, size, op); in sja1105_schedule_entry_points_entry_packing()
570 return size; in sja1105_schedule_entry_points_entry_packing()
578 const size_t size = SJA1110_SIZE_SCHEDULE_ENTRY_POINTS_ENTRY; in sja1110_schedule_entry_points_entry_packing() local
580 sja1105_packing(buf, &entry->subschindx, 63, 61, size, op); in sja1110_schedule_entry_points_entry_packing()
581 sja1105_packing(buf, &entry->delta, 60, 43, size, op); in sja1110_schedule_entry_points_entry_packing()
582 sja1105_packing(buf, &entry->address, 42, 31, size, op); in sja1110_schedule_entry_points_entry_packing()
583 return size; in sja1110_schedule_entry_points_entry_packing()
589 const size_t size = SJA1105_SIZE_SCHEDULE_PARAMS_ENTRY; in sja1105_schedule_params_entry_packing() local
595 offset + 9, offset + 0, size, op); in sja1105_schedule_params_entry_packing()
596 return size; in sja1105_schedule_params_entry_packing()
603 const size_t size = SJA1105_SIZE_SCHEDULE_PARAMS_ENTRY; in sja1110_schedule_params_entry_packing() local
608 offset + 11, offset + 0, size, op); in sja1110_schedule_params_entry_packing()
609 return size; in sja1110_schedule_params_entry_packing()
615 const size_t size = SJA1105_SIZE_SCHEDULE_ENTRY; in sja1105_schedule_entry_packing() local
618 sja1105_packing(buf, &entry->winstindex, 63, 54, size, op); in sja1105_schedule_entry_packing()
619 sja1105_packing(buf, &entry->winend, 53, 53, size, op); in sja1105_schedule_entry_packing()
620 sja1105_packing(buf, &entry->winst, 52, 52, size, op); in sja1105_schedule_entry_packing()
621 sja1105_packing(buf, &entry->destports, 51, 47, size, op); in sja1105_schedule_entry_packing()
622 sja1105_packing(buf, &entry->setvalid, 46, 46, size, op); in sja1105_schedule_entry_packing()
623 sja1105_packing(buf, &entry->txen, 45, 45, size, op); in sja1105_schedule_entry_packing()
624 sja1105_packing(buf, &entry->resmedia_en, 44, 44, size, op); in sja1105_schedule_entry_packing()
625 sja1105_packing(buf, &entry->resmedia, 43, 36, size, op); in sja1105_schedule_entry_packing()
626 sja1105_packing(buf, &entry->vlindex, 35, 26, size, op); in sja1105_schedule_entry_packing()
627 sja1105_packing(buf, &entry->delta, 25, 8, size, op); in sja1105_schedule_entry_packing()
628 return size; in sja1105_schedule_entry_packing()
634 const size_t size = SJA1110_SIZE_SCHEDULE_ENTRY; in sja1110_schedule_entry_packing() local
637 sja1105_packing(buf, &entry->winstindex, 95, 84, size, op); in sja1110_schedule_entry_packing()
638 sja1105_packing(buf, &entry->winend, 83, 83, size, op); in sja1110_schedule_entry_packing()
639 sja1105_packing(buf, &entry->winst, 82, 82, size, op); in sja1110_schedule_entry_packing()
640 sja1105_packing(buf, &entry->destports, 81, 71, size, op); in sja1110_schedule_entry_packing()
641 sja1105_packing(buf, &entry->setvalid, 70, 70, size, op); in sja1110_schedule_entry_packing()
642 sja1105_packing(buf, &entry->txen, 69, 69, size, op); in sja1110_schedule_entry_packing()
643 sja1105_packing(buf, &entry->resmedia_en, 68, 68, size, op); in sja1110_schedule_entry_packing()
644 sja1105_packing(buf, &entry->resmedia, 67, 60, size, op); in sja1110_schedule_entry_packing()
645 sja1105_packing(buf, &entry->vlindex, 59, 48, size, op); in sja1110_schedule_entry_packing()
646 sja1105_packing(buf, &entry->delta, 47, 30, size, op); in sja1110_schedule_entry_packing()
647 return size; in sja1110_schedule_entry_packing()
655 const size_t size = SJA1105_SIZE_VL_FORWARDING_PARAMS_ENTRY; in sja1105_vl_forwarding_params_entry_packing() local
660 offset + 9, offset + 0, size, op); in sja1105_vl_forwarding_params_entry_packing()
661 sja1105_packing(buf, &entry->debugen, 15, 15, size, op); in sja1105_vl_forwarding_params_entry_packing()
662 return size; in sja1105_vl_forwarding_params_entry_packing()
670 const size_t size = SJA1105_SIZE_VL_FORWARDING_PARAMS_ENTRY; in sja1110_vl_forwarding_params_entry_packing() local
675 offset + 10, offset + 0, size, op); in sja1110_vl_forwarding_params_entry_packing()
676 sja1105_packing(buf, &entry->debugen, 7, 7, size, op); in sja1110_vl_forwarding_params_entry_packing()
677 return size; in sja1110_vl_forwarding_params_entry_packing()
684 const size_t size = SJA1105_SIZE_VL_FORWARDING_ENTRY; in sja1105_vl_forwarding_entry_packing() local
686 sja1105_packing(buf, &entry->type, 31, 31, size, op); in sja1105_vl_forwarding_entry_packing()
687 sja1105_packing(buf, &entry->priority, 30, 28, size, op); in sja1105_vl_forwarding_entry_packing()
688 sja1105_packing(buf, &entry->partition, 27, 25, size, op); in sja1105_vl_forwarding_entry_packing()
689 sja1105_packing(buf, &entry->destports, 24, 20, size, op); in sja1105_vl_forwarding_entry_packing()
690 return size; in sja1105_vl_forwarding_entry_packing()
697 const size_t size = SJA1105_SIZE_VL_FORWARDING_ENTRY; in sja1110_vl_forwarding_entry_packing() local
699 sja1105_packing(buf, &entry->type, 31, 31, size, op); in sja1110_vl_forwarding_entry_packing()
700 sja1105_packing(buf, &entry->priority, 30, 28, size, op); in sja1110_vl_forwarding_entry_packing()
701 sja1105_packing(buf, &entry->partition, 27, 25, size, op); in sja1110_vl_forwarding_entry_packing()
702 sja1105_packing(buf, &entry->destports, 24, 14, size, op); in sja1110_vl_forwarding_entry_packing()
703 return size; in sja1110_vl_forwarding_entry_packing()
710 const size_t size = SJA1105_SIZE_VL_LOOKUP_ENTRY; in sja1105_vl_lookup_entry_packing() local
715 95, 91, size, op); in sja1105_vl_lookup_entry_packing()
717 90, 90, size, op); in sja1105_vl_lookup_entry_packing()
719 89, 42, size, op); in sja1105_vl_lookup_entry_packing()
721 41, 30, size, op); in sja1105_vl_lookup_entry_packing()
723 29, 27, size, op); in sja1105_vl_lookup_entry_packing()
725 26, 24, size, op); in sja1105_vl_lookup_entry_packing()
729 95, 91, size, op); in sja1105_vl_lookup_entry_packing()
731 90, 90, size, op); in sja1105_vl_lookup_entry_packing()
733 57, 42, size, op); in sja1105_vl_lookup_entry_packing()
735 29, 27, size, op); in sja1105_vl_lookup_entry_packing()
737 return size; in sja1105_vl_lookup_entry_packing()
744 const size_t size = SJA1105_SIZE_VL_LOOKUP_ENTRY; in sja1110_vl_lookup_entry_packing() local
749 94, 84, size, op); in sja1110_vl_lookup_entry_packing()
751 83, 83, size, op); in sja1110_vl_lookup_entry_packing()
753 82, 35, size, op); in sja1110_vl_lookup_entry_packing()
755 34, 23, size, op); in sja1110_vl_lookup_entry_packing()
757 22, 19, size, op); in sja1110_vl_lookup_entry_packing()
759 18, 16, size, op); in sja1110_vl_lookup_entry_packing()
763 94, 84, size, op); in sja1110_vl_lookup_entry_packing()
765 83, 83, size, op); in sja1110_vl_lookup_entry_packing()
767 50, 35, size, op); in sja1110_vl_lookup_entry_packing()
769 22, 19, size, op); in sja1110_vl_lookup_entry_packing()
771 return size; in sja1110_vl_lookup_entry_packing()
778 const size_t size = SJA1105_SIZE_VL_POLICING_ENTRY; in sja1105_vl_policing_entry_packing() local
780 sja1105_packing(buf, &entry->type, 63, 63, size, op); in sja1105_vl_policing_entry_packing()
781 sja1105_packing(buf, &entry->maxlen, 62, 52, size, op); in sja1105_vl_policing_entry_packing()
782 sja1105_packing(buf, &entry->sharindx, 51, 42, size, op); in sja1105_vl_policing_entry_packing()
784 sja1105_packing(buf, &entry->bag, 41, 28, size, op); in sja1105_vl_policing_entry_packing()
785 sja1105_packing(buf, &entry->jitter, 27, 18, size, op); in sja1105_vl_policing_entry_packing()
787 return size; in sja1105_vl_policing_entry_packing()
794 const size_t size = SJA1105_SIZE_VL_POLICING_ENTRY; in sja1110_vl_policing_entry_packing() local
796 sja1105_packing(buf, &entry->type, 63, 63, size, op); in sja1110_vl_policing_entry_packing()
797 sja1105_packing(buf, &entry->maxlen, 62, 52, size, op); in sja1110_vl_policing_entry_packing()
798 sja1105_packing(buf, &entry->sharindx, 51, 40, size, op); in sja1110_vl_policing_entry_packing()
800 sja1105_packing(buf, &entry->bag, 41, 28, size, op); in sja1110_vl_policing_entry_packing()
801 sja1105_packing(buf, &entry->jitter, 27, 18, size, op); in sja1110_vl_policing_entry_packing()
803 return size; in sja1110_vl_policing_entry_packing()
809 const size_t size = SJA1105_SIZE_VLAN_LOOKUP_ENTRY; in sja1105_vlan_lookup_entry_packing() local
812 sja1105_packing(buf, &entry->ving_mirr, 63, 59, size, op); in sja1105_vlan_lookup_entry_packing()
813 sja1105_packing(buf, &entry->vegr_mirr, 58, 54, size, op); in sja1105_vlan_lookup_entry_packing()
814 sja1105_packing(buf, &entry->vmemb_port, 53, 49, size, op); in sja1105_vlan_lookup_entry_packing()
815 sja1105_packing(buf, &entry->vlan_bc, 48, 44, size, op); in sja1105_vlan_lookup_entry_packing()
816 sja1105_packing(buf, &entry->tag_port, 43, 39, size, op); in sja1105_vlan_lookup_entry_packing()
817 sja1105_packing(buf, &entry->vlanid, 38, 27, size, op); in sja1105_vlan_lookup_entry_packing()
818 return size; in sja1105_vlan_lookup_entry_packing()
825 const size_t size = SJA1110_SIZE_VLAN_LOOKUP_ENTRY; in sja1110_vlan_lookup_entry_packing() local
827 sja1105_packing(buf, &entry->ving_mirr, 95, 85, size, op); in sja1110_vlan_lookup_entry_packing()
828 sja1105_packing(buf, &entry->vegr_mirr, 84, 74, size, op); in sja1110_vlan_lookup_entry_packing()
829 sja1105_packing(buf, &entry->vmemb_port, 73, 63, size, op); in sja1110_vlan_lookup_entry_packing()
830 sja1105_packing(buf, &entry->vlan_bc, 62, 52, size, op); in sja1110_vlan_lookup_entry_packing()
831 sja1105_packing(buf, &entry->tag_port, 51, 41, size, op); in sja1110_vlan_lookup_entry_packing()
832 sja1105_packing(buf, &entry->type_entry, 40, 39, size, op); in sja1110_vlan_lookup_entry_packing()
833 sja1105_packing(buf, &entry->vlanid, 38, 27, size, op); in sja1110_vlan_lookup_entry_packing()
834 return size; in sja1110_vlan_lookup_entry_packing()
840 const size_t size = SJA1105_SIZE_XMII_PARAMS_ENTRY; in sja1105_xmii_params_entry_packing() local
846 offset + 1, offset + 0, size, op); in sja1105_xmii_params_entry_packing()
848 offset + 2, offset + 2, size, op); in sja1105_xmii_params_entry_packing()
850 return size; in sja1105_xmii_params_entry_packing()
856 const size_t size = SJA1110_SIZE_XMII_PARAMS_ENTRY; in sja1110_xmii_params_entry_packing() local
862 offset + 1, offset + 0, size, op); in sja1110_xmii_params_entry_packing()
864 offset + 2, offset + 2, size, op); in sja1110_xmii_params_entry_packing()
866 offset + 3, offset + 3, size, op); in sja1110_xmii_params_entry_packing()
868 return size; in sja1110_xmii_params_entry_packing()
875 const size_t size = SJA1105_SIZE_RETAGGING_ENTRY; in sja1105_retagging_entry_packing() local
877 sja1105_packing(buf, &entry->egr_port, 63, 59, size, op); in sja1105_retagging_entry_packing()
878 sja1105_packing(buf, &entry->ing_port, 58, 54, size, op); in sja1105_retagging_entry_packing()
879 sja1105_packing(buf, &entry->vlan_ing, 53, 42, size, op); in sja1105_retagging_entry_packing()
880 sja1105_packing(buf, &entry->vlan_egr, 41, 30, size, op); in sja1105_retagging_entry_packing()
881 sja1105_packing(buf, &entry->do_not_learn, 29, 29, size, op); in sja1105_retagging_entry_packing()
882 sja1105_packing(buf, &entry->use_dest_ports, 28, 28, size, op); in sja1105_retagging_entry_packing()
883 sja1105_packing(buf, &entry->destports, 27, 23, size, op); in sja1105_retagging_entry_packing()
884 return size; in sja1105_retagging_entry_packing()
891 const size_t size = SJA1105_SIZE_RETAGGING_ENTRY; in sja1110_retagging_entry_packing() local
893 sja1105_packing(buf, &entry->egr_port, 63, 53, size, op); in sja1110_retagging_entry_packing()
894 sja1105_packing(buf, &entry->ing_port, 52, 42, size, op); in sja1110_retagging_entry_packing()
895 sja1105_packing(buf, &entry->vlan_ing, 41, 30, size, op); in sja1110_retagging_entry_packing()
896 sja1105_packing(buf, &entry->vlan_egr, 29, 18, size, op); in sja1110_retagging_entry_packing()
897 sja1105_packing(buf, &entry->do_not_learn, 17, 17, size, op); in sja1110_retagging_entry_packing()
898 sja1105_packing(buf, &entry->use_dest_ports, 16, 16, size, op); in sja1110_retagging_entry_packing()
899 sja1105_packing(buf, &entry->destports, 15, 5, size, op); in sja1110_retagging_entry_packing()
900 return size; in sja1110_retagging_entry_packing()
907 const size_t size = SJA1110_SIZE_PCP_REMAPPING_ENTRY; in sja1110_pcp_remapping_entry_packing() local
912 offset + 2, offset + 0, size, op); in sja1110_pcp_remapping_entry_packing()
914 return size; in sja1110_pcp_remapping_entry_packing()
920 const size_t size = SJA1105_SIZE_TABLE_HEADER; in sja1105_table_header_packing() local
923 sja1105_packing(buf, &entry->block_id, 31, 24, size, op); in sja1105_table_header_packing()
924 sja1105_packing(buf, &entry->len, 55, 32, size, op); in sja1105_table_header_packing()
925 sja1105_packing(buf, &entry->crc, 95, 64, size, op); in sja1105_table_header_packing()
926 return size; in sja1105_table_header_packing()