Lines Matching refs:sie
225 void c67x00_ll_hpi_enable_sofeop(struct c67x00_sie *sie) in c67x00_ll_hpi_enable_sofeop() argument
227 hpi_set_bits(sie->dev, HPI_IRQ_ROUTING_REG, in c67x00_ll_hpi_enable_sofeop()
228 SOFEOP_TO_HPI_EN(sie->sie_num)); in c67x00_ll_hpi_enable_sofeop()
231 void c67x00_ll_hpi_disable_sofeop(struct c67x00_sie *sie) in c67x00_ll_hpi_disable_sofeop() argument
233 hpi_clear_bits(sie->dev, HPI_IRQ_ROUTING_REG, in c67x00_ll_hpi_disable_sofeop()
234 SOFEOP_TO_HPI_EN(sie->sie_num)); in c67x00_ll_hpi_disable_sofeop()
264 u16 c67x00_ll_get_usb_ctl(struct c67x00_sie *sie) in c67x00_ll_get_usb_ctl() argument
266 return hpi_read_word(sie->dev, USB_CTL_REG(sie->sie_num)); in c67x00_ll_get_usb_ctl()
272 void c67x00_ll_usb_clear_status(struct c67x00_sie *sie, u16 bits) in c67x00_ll_usb_clear_status() argument
274 hpi_write_word(sie->dev, USB_STAT_REG(sie->sie_num), bits); in c67x00_ll_usb_clear_status()
277 u16 c67x00_ll_usb_get_status(struct c67x00_sie *sie) in c67x00_ll_usb_get_status() argument
279 return hpi_read_word(sie->dev, USB_STAT_REG(sie->sie_num)); in c67x00_ll_usb_get_status()
310 static inline void c67x00_ll_husb_sie_init(struct c67x00_sie *sie) in c67x00_ll_husb_sie_init() argument
312 struct c67x00_device *dev = sie->dev; in c67x00_ll_husb_sie_init()
316 rc = c67x00_comm_exec_int(dev, HUSB_SIE_INIT_INT(sie->sie_num), &data); in c67x00_ll_husb_sie_init()
320 void c67x00_ll_husb_reset(struct c67x00_sie *sie, int port) in c67x00_ll_husb_reset() argument
322 struct c67x00_device *dev = sie->dev; in c67x00_ll_husb_reset()
327 data.regs[1] = port | (sie->sie_num << 1); in c67x00_ll_husb_reset()
332 void c67x00_ll_husb_set_current_td(struct c67x00_sie *sie, u16 addr) in c67x00_ll_husb_set_current_td() argument
334 hpi_write_word(sie->dev, HUSB_SIE_pCurrentTDPtr(sie->sie_num), addr); in c67x00_ll_husb_set_current_td()
337 u16 c67x00_ll_husb_get_current_td(struct c67x00_sie *sie) in c67x00_ll_husb_get_current_td() argument
339 return hpi_read_word(sie->dev, HUSB_SIE_pCurrentTDPtr(sie->sie_num)); in c67x00_ll_husb_get_current_td()
342 u16 c67x00_ll_husb_get_frame(struct c67x00_sie *sie) in c67x00_ll_husb_get_frame() argument
344 return hpi_read_word(sie->dev, HOST_FRAME_REG(sie->sie_num)); in c67x00_ll_husb_get_frame()
347 void c67x00_ll_husb_init_host_port(struct c67x00_sie *sie) in c67x00_ll_husb_init_host_port() argument
350 hpi_set_bits(sie->dev, USB_CTL_REG(sie->sie_num), HOST_MODE); in c67x00_ll_husb_init_host_port()
351 c67x00_ll_husb_sie_init(sie); in c67x00_ll_husb_init_host_port()
353 c67x00_ll_usb_clear_status(sie, HOST_STAT_MASK); in c67x00_ll_husb_init_host_port()
355 if (!(hpi_read_word(sie->dev, USB_CTL_REG(sie->sie_num)) & HOST_MODE)) in c67x00_ll_husb_init_host_port()
356 dev_warn(sie_dev(sie), in c67x00_ll_husb_init_host_port()
357 "SIE %d not set to host mode\n", sie->sie_num); in c67x00_ll_husb_init_host_port()
360 void c67x00_ll_husb_reset_port(struct c67x00_sie *sie, int port) in c67x00_ll_husb_reset_port() argument
363 c67x00_ll_usb_clear_status(sie, PORT_CONNECT_CHANGE(port)); in c67x00_ll_husb_reset_port()
366 hpi_set_bits(sie->dev, HPI_IRQ_ROUTING_REG, in c67x00_ll_husb_reset_port()
367 SOFEOP_TO_CPU_EN(sie->sie_num)); in c67x00_ll_husb_reset_port()
368 hpi_set_bits(sie->dev, HOST_IRQ_EN_REG(sie->sie_num), in c67x00_ll_husb_reset_port()
372 hpi_set_bits(sie->dev, USB_CTL_REG(sie->sie_num), PORT_RES_EN(port)); in c67x00_ll_husb_reset_port()