Home
last modified time | relevance | path

Searched refs:extif (Results 1 – 10 of 10) sorted by relevance

/linux-6.1.9/drivers/ssb/
Ddriver_extif.c20 static inline u32 extif_read32(struct ssb_extif *extif, u16 offset) in extif_read32() argument
22 return ssb_read32(extif->dev, offset); in extif_read32()
25 static inline void extif_write32(struct ssb_extif *extif, u16 offset, u32 value) in extif_write32() argument
27 ssb_write32(extif->dev, offset, value); in extif_write32()
30 static inline u32 extif_write32_masked(struct ssb_extif *extif, u16 offset, in extif_write32_masked() argument
34 value |= extif_read32(extif, offset) & ~mask; in extif_write32_masked()
35 extif_write32(extif, offset, value); in extif_write32_masked()
55 int ssb_extif_serial_init(struct ssb_extif *extif, struct ssb_serial_port *ports) in ssb_extif_serial_init() argument
60 extif_write32(extif, SSB_EXTIF_GPIO_INTPOL, 0); in ssb_extif_serial_init()
61 extif_write32(extif, SSB_EXTIF_GPIO_INTMASK, 0); in ssb_extif_serial_init()
[all …]
Ddriver_gpio.c265 return !!ssb_extif_gpio_in(&bus->extif, 1 << gpio); in ssb_gpio_extif_get_value()
273 ssb_extif_gpio_out(&bus->extif, 1 << gpio, value ? 1 << gpio : 0); in ssb_gpio_extif_set_value()
281 ssb_extif_gpio_outen(&bus->extif, 1 << gpio, 0); in ssb_gpio_extif_direction_input()
290 ssb_extif_gpio_outen(&bus->extif, 1 << gpio, 1 << gpio); in ssb_gpio_extif_direction_output()
291 ssb_extif_gpio_out(&bus->extif, 1 << gpio, value ? 1 << gpio : 0); in ssb_gpio_extif_direction_output()
301 ssb_extif_gpio_intmask(&bus->extif, BIT(gpio), 0); in ssb_gpio_irq_extif_mask()
308 u32 val = ssb_extif_gpio_in(&bus->extif, BIT(gpio)); in ssb_gpio_irq_extif_unmask()
310 ssb_extif_gpio_polarity(&bus->extif, BIT(gpio), val); in ssb_gpio_irq_extif_unmask()
311 ssb_extif_gpio_intmask(&bus->extif, BIT(gpio), BIT(gpio)); in ssb_gpio_irq_extif_unmask()
323 struct ssb_extif *extif = &bus->extif; in ssb_gpio_irq_extif_handler() local
[all …]
Dembedded.c29 if (ssb_extif_available(&bus->extif)) { in ssb_watchdog_timer_set()
30 ssb_extif_watchdog_timer_set(&bus->extif, ticks); in ssb_watchdog_timer_set()
47 } else if (ssb_extif_available(&bus->extif)) { in ssb_watchdog_register()
48 wdt.driver_data = &bus->extif; in ssb_watchdog_register()
77 else if (ssb_extif_available(&bus->extif)) in ssb_gpio_in()
78 res = ssb_extif_gpio_in(&bus->extif, mask); in ssb_gpio_in()
95 else if (ssb_extif_available(&bus->extif)) in ssb_gpio_out()
96 res = ssb_extif_gpio_out(&bus->extif, mask, value); in ssb_gpio_out()
113 else if (ssb_extif_available(&bus->extif)) in ssb_gpio_outen()
114 res = ssb_extif_gpio_outen(&bus->extif, mask, value); in ssb_gpio_outen()
[all …]
Ddriver_mipscore.c206 if (ssb_extif_available(&bus->extif)) in ssb_mips_serial_init()
207 mcore->nr_serial_ports = ssb_extif_serial_init(&bus->extif, mcore->serial_ports); in ssb_mips_serial_init()
273 if (ssb_extif_available(&bus->extif)) { in ssb_cpu_clock()
274 ssb_extif_get_clockcontrol(&bus->extif, &pll_type, &n, &m); in ssb_cpu_clock()
311 if (ssb_extif_available(&bus->extif)) in ssb_mipscore_init()
312 ssb_extif_timing_init(&bus->extif, ns); in ssb_mipscore_init()
Dssb_private.h245 extern void ssb_extif_init(struct ssb_extif *extif);
247 static inline void ssb_extif_init(struct ssb_extif *extif) in ssb_extif_init() argument
Dscan.c375 if (bus->extif.dev) { in ssb_bus_scan()
379 bus->extif.dev = dev; in ssb_bus_scan()
Dmain.c661 ssb_extif_init(&bus->extif); in ssb_bus_register()
948 if (ssb_extif_available(&bus->extif)) in ssb_clockspeed()
949 ssb_extif_get_clockcontrol(&bus->extif, &plltype, in ssb_clockspeed()
/linux-6.1.9/include/linux/ssb/
Dssb_driver_extif.h166 static inline bool ssb_extif_available(struct ssb_extif *extif) in ssb_extif_available() argument
168 return (extif->dev != NULL); in ssb_extif_available()
171 extern void ssb_extif_get_clockcontrol(struct ssb_extif *extif,
174 extern void ssb_extif_timing_init(struct ssb_extif *extif,
177 extern u32 ssb_extif_watchdog_timer_set(struct ssb_extif *extif, u32 ticks);
180 u32 ssb_extif_gpio_in(struct ssb_extif *extif, u32 mask);
181 u32 ssb_extif_gpio_out(struct ssb_extif *extif, u32 mask, u32 value);
182 u32 ssb_extif_gpio_outen(struct ssb_extif *extif, u32 mask, u32 value);
183 u32 ssb_extif_gpio_polarity(struct ssb_extif *extif, u32 mask, u32 value);
184 u32 ssb_extif_gpio_intmask(struct ssb_extif *extif, u32 mask, u32 value);
[all …]
Dssb.h476 struct ssb_extif extif; member
/linux-6.1.9/drivers/video/fbdev/omap/
Dhwa742.c127 struct lcd_ctrl_extif *extif; member
139 hwa742.extif->set_bits_per_cycle(8); in hwa742_read_reg()
140 hwa742.extif->write_command(&reg, 1); in hwa742_read_reg()
141 hwa742.extif->read_data(&data, 1); in hwa742_read_reg()
148 hwa742.extif->set_bits_per_cycle(8); in hwa742_write_reg()
149 hwa742.extif->write_command(&reg, 1); in hwa742_write_reg()
150 hwa742.extif->write_data(&data, 1); in hwa742_write_reg()
169 hwa742.extif->set_bits_per_cycle(8); in set_window_regs()
172 hwa742.extif->write_command(&cmd, 1); in set_window_regs()
174 hwa742.extif->write_data(tmp, 8); in set_window_regs()
[all …]