Lines Matching refs:lmdevice

32 	lm_device_t *lmdevice;  in bnx_update_phy()  local
34 lmdevice = &(umdevice->lm_dev); in bnx_update_phy()
42 lmstatus = lm_init_phy(lmdevice, lmdevice->params.req_medium, in bnx_update_phy()
43 lmdevice->params.flow_ctrl_cap, lmdevice->params.selective_autoneg, in bnx_update_phy()
44 lmdevice->params.wire_speed, 0); in bnx_update_phy()
50 lm_service_phy_int(lmdevice, TRUE); in bnx_update_phy()
119 lm_device_t *lmdevice; in bnx_hdwr_init() local
121 lmdevice = &(umdevice->lm_dev); in bnx_hdwr_init()
123 lmstatus = lm_get_dev_info(lmdevice); in bnx_hdwr_init()
134 lmstatus = lm_init_resc(lmdevice); in bnx_hdwr_init()
175 lm_device_t *lmdevice; in bnx_hdwr_acquire() local
177 lmdevice = &(umdevice->lm_dev); in bnx_hdwr_acquire()
190 lmdevice->vars.medium = lm_get_medium(lmdevice); in bnx_hdwr_acquire()
196 lmstatus = lm_reset(lmdevice, LM_REASON_DRIVER_RESET); in bnx_hdwr_acquire()
204 lmstatus = lm_init_phy(lmdevice, lmdevice->params.req_medium, in bnx_hdwr_acquire()
205 lmdevice->params.flow_ctrl_cap, lmdevice->params.selective_autoneg, in bnx_hdwr_acquire()
206 lmdevice->params.wire_speed, 0); in bnx_hdwr_acquire()
212 lm_service_phy_int(lmdevice, FALSE); /* force a phy status update */ in bnx_hdwr_acquire()
214 umdevice->dev_var.indLink = lmdevice->vars.link_status; in bnx_hdwr_acquire()
215 umdevice->dev_var.indMedium = lmdevice->vars.medium; in bnx_hdwr_acquire()
221 REG_WR_IND(lmdevice, (OFFSETOF(reg_space_t, tpat.tpat_scratch[0]) + in bnx_hdwr_acquire()
224 FLUSHPOSTEDWRITES(lmdevice); in bnx_hdwr_acquire()
229 bzero(&(lmdevice->rx_info.stats), sizeof (lm_rx_stats_t)); in bnx_hdwr_acquire()
232 (void) lm_post_buffers(lmdevice, 0, NULL); in bnx_hdwr_acquire()
235 (void) lm_set_rx_mask(lmdevice, RX_FILTER_USER_IDX0, in bnx_hdwr_acquire()
238 FLUSHPOSTEDWRITES(lmdevice); in bnx_hdwr_acquire()
253 lm_device_t *lmdevice; in bnx_hdwr_release() local
255 lmdevice = &(umdevice->lm_dev); in bnx_hdwr_release()
275 (void) lm_set_rx_mask(lmdevice, RX_FILTER_USER_IDX0, in bnx_hdwr_release()
278 FLUSHPOSTEDWRITES(lmdevice); in bnx_hdwr_release()
286 lm_chip_reset(lmdevice, reason); in bnx_hdwr_release()
288 FLUSHPOSTEDWRITES(lmdevice); in bnx_hdwr_release()
382 lm_device_t *lmdevice; in um_send_driver_pulse() local
384 lmdevice = &(umdevice->lm_dev); in um_send_driver_pulse()
386 offset = lmdevice->hw_info.shmem_base; in um_send_driver_pulse()
391 lmdevice->vars.drv_pulse_wr_seq++; in um_send_driver_pulse()
393 msg_code = lmdevice->vars.drv_pulse_wr_seq & DRV_PULSE_SEQ_MASK; in um_send_driver_pulse()
397 if (lmdevice->params.test_mode & TEST_MODE_DRIVER_PULSE_ALWAYS_ALIVE) { in um_send_driver_pulse()
401 REG_WR_IND(lmdevice, offset, msg_code); in um_send_driver_pulse()