Lines Matching refs:ch

287 	ChassisRecord *ch = node->chrecord;
289 ch->chassisslot = SPINE_CS;
291 ch->chassistype = ISR9096_CT;
292 ch->slotnum = spine4_slot_2_slb[lineport->portnum];
293 ch->anafanum = anafa_spine4_slot_2_slb[lineport->portnum];
295 ch->chassistype = ISR9288_CT;
296 ch->slotnum = spine12_slot_2_slb[lineport->portnum];
297 ch->anafanum = anafa_spine12_slot_2_slb[lineport->portnum];
299 ch->chassistype = ISR2012_CT;
300 ch->slotnum = spine12_slot_2_slb[lineport->portnum];
301 ch->anafanum = anafa_spine12_slot_2_slb[lineport->portnum];
303 ch->chassistype = ISR2004_CT;
304 ch->slotnum = spine4_slot_2_slb[lineport->portnum];
305 ch->anafanum = anafa_spine4_slot_2_slb[lineport->portnum];
313 ChassisRecord *ch = node->chrecord;
316 if (!ch) {
319 ch = node->chrecord;
322 ch->chassisslot = SRBD_CS;
324 ch->chassistype = ISR9096_CT;
325 ch->slotnum = line_slot_2_sfb4[spineport->portnum];
326 ch->anafanum = ipr_slot_2_sfb4_port[spineport->portnum];
328 ch->chassistype = ISR9288_CT;
329 ch->slotnum = line_slot_2_sfb12[spineport->portnum];
335 ch->anafanum = (guessnum == 3 ? 1 : (guessnum == 1 ? 3 : 2));
337 ch->chassistype = ISR2012_CT;
338 ch->slotnum = line_slot_2_sfb12[spineport->portnum];
344 ch->anafanum = (guessnum == 3? 1 : (guessnum == 1 ? 3 : 2));
346 ch->chassistype = ISR2004_CT;
347 ch->slotnum = line_slot_2_sfb4[spineport->portnum];
348 ch->anafanum = ipr_slot_2_sfb4_port[spineport->portnum];
354 static void get_slb_slot(ChassisRecord *ch, Port *spineport)
356 ch->chassisslot = LINE_CS;
358 ch->chassistype = ISR9096_CT;
359 ch->slotnum = line_slot_2_sfb4[spineport->portnum];
360 ch->anafanum = anafa_line_slot_2_sfb4[spineport->portnum];
362 ch->chassistype = ISR9288_CT;
363 ch->slotnum = line_slot_2_sfb12[spineport->portnum];
364 ch->anafanum = anafa_line_slot_2_sfb12[spineport->portnum];
366 ch->chassistype = ISR2012_CT;
367 ch->slotnum = line_slot_2_sfb12[spineport->portnum];
368 ch->anafanum = anafa_line_slot_2_sfb12[spineport->portnum];
370 ch->chassistype = ISR2004_CT;
371 ch->slotnum = line_slot_2_sfb4[spineport->portnum];
372 ch->anafanum = anafa_line_slot_2_sfb4[spineport->portnum];
387 ChassisRecord *ch = 0;
395 ch = node->chrecord;
412 if (!ch->chassistype)
426 get_slb_slot(ch, port->remoteport);
652 ChassisRecord *ch = port->node->chrecord;
658 if (!ch || !is_line(node) || (portnum < 13 || portnum > 24))
661 if (ch->anafanum < 1 || ch->anafanum > 2)
666 chipnum = ch->anafanum - 1;