Lines Matching refs:xbow
162 xbow_mlreset(xbow_t * xbow) in xbow_mlreset() argument
171 xbow_set_simulated_regs(xbow_t *xbow, int port) in xbow_set_simulated_regs() argument
176 xbow->xb_link(port).link_status = (1<<31); in xbow_set_simulated_regs()
180 xbow->xb_link(port).link_aux_status = XB_AUX_STAT_PRESENT; in xbow_set_simulated_regs()
184 xbow->xb_link(port).link_control = 0x0; in xbow_set_simulated_regs()
207 xbow_t *xbow; in xbow_attach() local
234 xbow = (xbow_t *) kmalloc(sizeof(xbow_t), GFP_KERNEL); in xbow_attach()
238 xbow_set_simulated_regs(xbow, 0xe); in xbow_attach()
239 xbow_set_simulated_regs(xbow, 0xf); in xbow_attach()
241 xbow = (xbow_t *) xtalk_piotrans_addr(conn, 0, 0, sizeof(xbow_t), 0); in xbow_attach()
250 … Vertex 0x%p, conn 0x%p, xbow register 0x%p wid= 0x%x\n", busv, conn, xbow, *(volatile u32 *)xbow); in xbow_attach()
270 (struct file_operations *)&xbow_fops, (void *)xbow); in xbow_attach()
284 soft->base = xbow; in xbow_attach()
313 id = xbow->xb_wid_id; in xbow_attach()
318 soft->xbow_perfcnt[0].xp_perf_reg = &xbow->xb_perf_ctr_a; in xbow_attach()
319 soft->xbow_perfcnt[1].xp_perf_reg = &xbow->xb_perf_ctr_b; in xbow_attach()
351 (void *) xbow); in xbow_attach()
360 xbow->xb_wid_control = (XB_WID_CTRL_REG_ACC_IE | XB_WID_CTRL_XTALK_IE); in xbow_attach()
370 if (!xbow_link_alive(xbow, port)) { in xbow_attach()
377 if (!xbow_widget_present(xbow, port)) { in xbow_attach()
397 xbow->xb_link(port).link_control = in xbow_attach()
398 ( (xbow->xb_link(port).link_control in xbow_attach()
430 xbow_widget_present(xbow_t *xbow, int port) in xbow_widget_present() argument
442 if (XBOW_WAR_ENABLED(PV854827, xbow->xb_wid_id) && in xbow_widget_present()
443 IS_PIC_XBOW(xbow->xb_wid_id) && port==0xf) { in xbow_widget_present()
446 else if ( IS_PIC_XBOW(xbow->xb_wid_id) && port==0xb ) { in xbow_widget_present()
450 return xbow->xb_link(port).link_aux_status & XB_AUX_STAT_PRESENT; in xbow_widget_present()
455 xbow_link_alive(xbow_t * xbow, int port) in xbow_link_alive() argument
459 xbow_linkstat.linkstatus = xbow->xb_link(port).link_status; in xbow_link_alive()
493 xbow_t *xbow = (xbow_t *) xtalk_intr_sfarg_get(intr); in xbow_setwidint() local
495 xbow_intr_preset((void *) xbow, 0, targ, addr, vect); in xbow_setwidint()
518 xbow_t *xbow = (xbow_t *) which_widget; in xbow_intr_preset() local
520 xbow->xb_wid_int_upper = ((0xFF000000 & (vect << 24)) | in xbow_intr_preset()
523 xbow->xb_wid_int_lower = XTALK_ADDR_TO_LOWER(addr); in xbow_intr_preset()
613 xbow_t *xbow = soft->base; in xbow_errintr_handler() local
626 wid_control = xbow->xb_wid_control; in xbow_errintr_handler()
627 wid_stat = xbow->xb_wid_stat_clr; in xbow_errintr_handler()
628 wid_err_cmdword = xbow->xb_wid_err_cmdword; in xbow_errintr_handler()
629 wid_err_upper = xbow->xb_wid_err_upper; in xbow_errintr_handler()
630 wid_err_lower = xbow->xb_wid_err_lower; in xbow_errintr_handler()
631 xbow->xb_wid_err_cmdword = 0; in xbow_errintr_handler()
643 xb_linkregs_t *link = &(xbow->xb_link(port)); in xbow_errintr_handler()
811 xbow_t *xbow = soft->base; in xbow_error_handler() local
863 wid_stat = xbow->xb_wid_stat; in xbow_error_handler()
864 wid_err_cmdword = xbow->xb_wid_err_cmdword; in xbow_error_handler()
865 wid_err_upper = xbow->xb_wid_err_upper; in xbow_error_handler()
866 wid_err_lower = xbow->xb_wid_err_lower; in xbow_error_handler()
919 link = &(xbow->xb_link(port)); in xbow_error_handler()
928 if (XBOW_WAR_ENABLED(PV854827, xbow->xb_wid_id) && in xbow_error_handler()
929 IS_PIC_XBOW(xbow->xb_wid_id) && (port==0xf)) in xbow_error_handler()
931 else if (IS_PIC_XBOW(xbow->xb_wid_id) && (port==0xb)) in xbow_error_handler()
1103 xbow_t *xbow = xbow_soft->base; in xbow_enable_perf_counter() local
1137 xbow_link_ctrl.xbl_ctrlword = xbow->xb_link_raw[link].link_control; in xbow_enable_perf_counter()
1139 xbow->xb_link_raw[link].link_control = xbow_link_ctrl.xbl_ctrlword; in xbow_enable_perf_counter()
1164 xbow_t *xbow; in xbow_update_llp_status() local
1171 xbow = (xbow_t *) xbow_soft->base; in xbow_update_llp_status()
1180 = xbow->xb_link_raw[link].link_aux_status; in xbow_update_llp_status()
1181 lnk_sts.linkstatus = xbow->xb_link_raw[link].link_status_clr; in xbow_update_llp_status()
1231 xbow_t *xbow; in xbow_reset_link() local
1242 xbow = XBOW_K1PTR; in xbow_reset_link()
1250 xbow = xbow_soft->base; in xbow_reset_link()
1261 ctrl = xbow->xb_link(port).link_control; in xbow_reset_link()
1262 xbow->xb_link(port).link_reset = 0; in xbow_reset_link()
1265 stat.linkstatus = xbow->xb_link(port).link_status; in xbow_reset_link()
1274 xbow->xb_link(port).link_control = ctrl; in xbow_reset_link()