Lines Matching +full:device +full:- +full:addr
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
5 * Copyright 2007-2008 Pierre Ossman
11 #include <linux/device.h>
35 struct mmc_card *card; /* the card this device belongs to */
36 struct device dev; /* the device */
42 unsigned short device; /* device id */ member
62 #define sdio_func_present(f) ((f)->state & SDIO_STATE_PRESENT)
64 #define sdio_func_set_present(f) ((f)->state |= SDIO_STATE_PRESENT)
66 #define sdio_func_id(f) (dev_name(&(f)->dev))
68 #define sdio_get_drvdata(f) dev_get_drvdata(&(f)->dev)
69 #define sdio_set_drvdata(f,d) dev_set_drvdata(&(f)->dev, d)
73 * SDIO function device driver
86 * SDIO_DEVICE - macro used to describe a specific SDIO device
91 * specific device. The class field will be set to SDIO_ANY_ID.
95 .vendor = (vend), .device = (dev)
98 * SDIO_DEVICE_CLASS - macro used to describe a specific SDIO device class
102 * specific standard SDIO function type. The vendor and device fields will
107 .vendor = SDIO_ANY_ID, .device = SDIO_ANY_ID
116 * module_sdio_driver() - Helper macro for registering a SDIO driver
143 extern u8 sdio_readb(struct sdio_func *func, unsigned int addr, int *err_ret);
144 extern u16 sdio_readw(struct sdio_func *func, unsigned int addr, int *err_ret);
145 extern u32 sdio_readl(struct sdio_func *func, unsigned int addr, int *err_ret);
148 unsigned int addr, int count);
150 unsigned int addr, int count);
153 unsigned int addr, int *err_ret);
155 unsigned int addr, int *err_ret);
157 unsigned int addr, int *err_ret);
160 unsigned int addr, int *err_ret);
162 extern int sdio_memcpy_toio(struct sdio_func *func, unsigned int addr,
164 extern int sdio_writesb(struct sdio_func *func, unsigned int addr,
168 unsigned int addr, int *err_ret);
170 unsigned int addr, int *err_ret);