• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/cxgb3/

Lines Matching refs:mc5

139 static int init_mask_data_array(struct mc5 *mc5, u32 mask_array_base,
144 struct adapter *adap = mc5->adapter;
150 unsigned int size72 = mc5->tcam_size;
153 if (mc5->mode == MC5_MODE_144_BIT) {
170 mc5->mode == MC5_MODE_144_BIT ?
179 static int init_idt52100(struct mc5 *mc5)
182 struct adapter *adap = mc5->adapter;
237 return init_mask_data_array(mc5, IDT_MSKARY_BASE_ADR0,
243 static int init_idt43102(struct mc5 *mc5)
246 struct adapter *adap = mc5->adapter;
297 return init_mask_data_array(mc5, IDT4_MSKARY_BASE_ADR0,
304 static inline void mc5_dbgi_mode_enable(const struct mc5 *mc5)
306 t3_write_reg(mc5->adapter, A_MC5_DB_CONFIG,
307 V_TMMODE(mc5->mode == MC5_MODE_72_BIT) | F_DBGIEN);
311 static void mc5_dbgi_mode_disable(const struct mc5 *mc5)
313 t3_write_reg(mc5->adapter, A_MC5_DB_CONFIG,
314 V_TMMODE(mc5->mode == MC5_MODE_72_BIT) |
315 V_COMPEN(mc5->mode == MC5_MODE_72_BIT) |
316 V_PRTYEN(mc5->parity_enabled) | F_MBUSEN);
323 int t3_mc5_init(struct mc5 *mc5, unsigned int nservers, unsigned int nfilters,
328 unsigned int tcam_size = mc5->tcam_size;
329 struct adapter *adap = mc5->adapter;
339 cfg |= V_TMMODE(mc5->mode == MC5_MODE_72_BIT) | F_TMRST;
352 mc5->parity_enabled = 1;
358 mc5_dbgi_mode_enable(mc5);
360 switch (mc5->part_type) {
362 err = init_idt52100(mc5);
365 err = init_idt43102(mc5);
368 CH_ERR(adap, "Unsupported TCAM type %d\n", mc5->part_type);
373 mc5_dbgi_mode_disable(mc5);
379 * @mc5: the MC5 handle
386 int t3_read_mc5_range(const struct mc5 *mc5, unsigned int start,
391 struct adapter *adap = mc5->adapter;
393 if (mc5->part_type == IDT75P52100)
395 else if (mc5->part_type == IDT75N43102)
400 mc5_dbgi_mode_enable(mc5);
412 mc5_dbgi_mode_disable(mc5);
421 void t3_mc5_intr_handler(struct mc5 *mc5)
423 struct adapter *adap = mc5->adapter;
426 if ((cause & F_PARITYERR) && mc5->parity_enabled) {
428 mc5->stats.parity_err++;
433 mc5->stats.reqq_parity_err++;
438 mc5->stats.dispq_parity_err++;
442 mc5->stats.active_rgn_full++;
444 mc5->stats.nfa_srch_err++;
446 mc5->stats.unknown_cmd++;
448 mc5->stats.del_act_empty++;
455 void __devinit t3_mc5_prep(struct adapter *adapter, struct mc5 *mc5, int mode)
467 mc5->adapter = adapter;
468 mc5->mode = (unsigned char)mode;
469 mc5->part_type = (unsigned char)G_TMTYPE(cfg);
471 mc5->part_type |= 4;
473 mc5->tcam_size = tcam_part_size[G_TMPARTSIZE(cfg)];
475 mc5->tcam_size /= 2;