Home
last modified time | relevance | path

Searched refs:smaster (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/siox/
H A Dsiox-core.c41 static void siox_master_lock(struct siox_master *smaster) in siox_master_lock() argument
43 mutex_lock(&smaster->lock); in siox_master_lock()
46 static void siox_master_unlock(struct siox_master *smaster) in siox_master_unlock() argument
48 mutex_unlock(&smaster->lock); in siox_master_unlock()
128 static void siox_poll(struct siox_master *smaster) in siox_poll() argument
131 size_t i = smaster->setbuf_len; in siox_poll()
135 smaster->last_poll = jiffies; in siox_poll()
147 if (++smaster->status > 0x0d) in siox_poll()
148 smaster->status = 0; in siox_poll()
150 memset(smaster->buf, 0, smaster->setbuf_len); in siox_poll()
[all …]
H A Dsiox.h13 int (*pushpull)(struct siox_master *smaster,
37 static inline void *siox_master_get_devdata(struct siox_master *smaster) in siox_master_get_devdata() argument
39 return dev_get_drvdata(&smaster->dev); in siox_master_get_devdata()
43 static inline void siox_master_put(struct siox_master *smaster) in siox_master_put() argument
45 put_device(&smaster->dev); in siox_master_put()
50 int siox_master_register(struct siox_master *smaster);
51 void siox_master_unregister(struct siox_master *smaster);
53 int devm_siox_master_register(struct device *dev, struct siox_master *smaster);
H A Dsiox-bus-gpio.c28 static int siox_gpio_pushpull(struct siox_master *smaster, in siox_gpio_pushpull() argument
32 struct siox_gpio_ddata *ddata = siox_master_get_devdata(smaster); in siox_gpio_pushpull()
92 struct siox_master *smaster; in siox_gpio_probe() local
94 smaster = devm_siox_master_alloc(dev, sizeof(*ddata)); in siox_gpio_probe()
95 if (!smaster) in siox_gpio_probe()
99 platform_set_drvdata(pdev, smaster); in siox_gpio_probe()
100 ddata = siox_master_get_devdata(smaster); in siox_gpio_probe()
122 smaster->pushpull = siox_gpio_pushpull; in siox_gpio_probe()
124 smaster->busno = 0; in siox_gpio_probe()
126 ret = devm_siox_master_register(dev, smaster); in siox_gpio_probe()
/linux/include/trace/events/
H A Dsiox.h10 TP_PROTO(const struct siox_master *smaster,
13 TP_ARGS(smaster, sdevice, devno, bufoffset),
21 __entry->busno = smaster->busno;
25 smaster->buf + bufoffset, sdevice->inbytes);
35 TP_PROTO(const struct siox_master *smaster,
39 TP_ARGS(smaster, sdevice, devno, status_clean, bufoffset),
48 __entry->busno = smaster->busno;
53 smaster->buf + bufoffset, sdevice->outbytes);
/linux/include/linux/
H A Dsiox.h11 struct siox_master *smaster; member