Lines Matching refs:sie

221 void c67x00_ll_hpi_enable_sofeop(struct c67x00_sie *sie)  in c67x00_ll_hpi_enable_sofeop()  argument
223 hpi_set_bits(sie->dev, HPI_IRQ_ROUTING_REG, in c67x00_ll_hpi_enable_sofeop()
224 SOFEOP_TO_HPI_EN(sie->sie_num)); in c67x00_ll_hpi_enable_sofeop()
227 void c67x00_ll_hpi_disable_sofeop(struct c67x00_sie *sie) in c67x00_ll_hpi_disable_sofeop() argument
229 hpi_clear_bits(sie->dev, HPI_IRQ_ROUTING_REG, in c67x00_ll_hpi_disable_sofeop()
230 SOFEOP_TO_HPI_EN(sie->sie_num)); in c67x00_ll_hpi_disable_sofeop()
260 u16 c67x00_ll_get_usb_ctl(struct c67x00_sie *sie) in c67x00_ll_get_usb_ctl() argument
262 return hpi_read_word(sie->dev, USB_CTL_REG(sie->sie_num)); in c67x00_ll_get_usb_ctl()
268 void c67x00_ll_usb_clear_status(struct c67x00_sie *sie, u16 bits) in c67x00_ll_usb_clear_status() argument
270 hpi_write_word(sie->dev, USB_STAT_REG(sie->sie_num), bits); in c67x00_ll_usb_clear_status()
273 u16 c67x00_ll_usb_get_status(struct c67x00_sie *sie) in c67x00_ll_usb_get_status() argument
275 return hpi_read_word(sie->dev, USB_STAT_REG(sie->sie_num)); in c67x00_ll_usb_get_status()
306 static inline void c67x00_ll_husb_sie_init(struct c67x00_sie *sie) in c67x00_ll_husb_sie_init() argument
308 struct c67x00_device *dev = sie->dev; in c67x00_ll_husb_sie_init()
312 rc = c67x00_comm_exec_int(dev, HUSB_SIE_INIT_INT(sie->sie_num), &data); in c67x00_ll_husb_sie_init()
316 void c67x00_ll_husb_reset(struct c67x00_sie *sie, int port) in c67x00_ll_husb_reset() argument
318 struct c67x00_device *dev = sie->dev; in c67x00_ll_husb_reset()
323 data.regs[1] = port | (sie->sie_num << 1); in c67x00_ll_husb_reset()
328 void c67x00_ll_husb_set_current_td(struct c67x00_sie *sie, u16 addr) in c67x00_ll_husb_set_current_td() argument
330 hpi_write_word(sie->dev, HUSB_SIE_pCurrentTDPtr(sie->sie_num), addr); in c67x00_ll_husb_set_current_td()
333 u16 c67x00_ll_husb_get_current_td(struct c67x00_sie *sie) in c67x00_ll_husb_get_current_td() argument
335 return hpi_read_word(sie->dev, HUSB_SIE_pCurrentTDPtr(sie->sie_num)); in c67x00_ll_husb_get_current_td()
338 u16 c67x00_ll_husb_get_frame(struct c67x00_sie *sie) in c67x00_ll_husb_get_frame() argument
340 return hpi_read_word(sie->dev, HOST_FRAME_REG(sie->sie_num)); in c67x00_ll_husb_get_frame()
343 void c67x00_ll_husb_init_host_port(struct c67x00_sie *sie) in c67x00_ll_husb_init_host_port() argument
346 hpi_set_bits(sie->dev, USB_CTL_REG(sie->sie_num), HOST_MODE); in c67x00_ll_husb_init_host_port()
347 c67x00_ll_husb_sie_init(sie); in c67x00_ll_husb_init_host_port()
349 c67x00_ll_usb_clear_status(sie, HOST_STAT_MASK); in c67x00_ll_husb_init_host_port()
351 if (!(hpi_read_word(sie->dev, USB_CTL_REG(sie->sie_num)) & HOST_MODE)) in c67x00_ll_husb_init_host_port()
352 dev_warn(sie_dev(sie), in c67x00_ll_husb_init_host_port()
353 "SIE %d not set to host mode\n", sie->sie_num); in c67x00_ll_husb_init_host_port()
356 void c67x00_ll_husb_reset_port(struct c67x00_sie *sie, int port) in c67x00_ll_husb_reset_port() argument
359 c67x00_ll_usb_clear_status(sie, PORT_CONNECT_CHANGE(port)); in c67x00_ll_husb_reset_port()
362 hpi_set_bits(sie->dev, HPI_IRQ_ROUTING_REG, in c67x00_ll_husb_reset_port()
363 SOFEOP_TO_CPU_EN(sie->sie_num)); in c67x00_ll_husb_reset_port()
364 hpi_set_bits(sie->dev, HOST_IRQ_EN_REG(sie->sie_num), in c67x00_ll_husb_reset_port()
368 hpi_set_bits(sie->dev, USB_CTL_REG(sie->sie_num), PORT_RES_EN(port)); in c67x00_ll_husb_reset_port()