/drivers/spi/ |
D | spi.c | 47 if (spi->master->cleanup) in spidev_release() 48 spi->master->cleanup(spi); in spidev_release() 50 spi_master_put(spi->master); in spidev_release() 318 struct spi_device *spi_alloc_device(struct spi_master *master) in spi_alloc_device() argument 321 struct device *dev = master->dev.parent; in spi_alloc_device() 323 if (!spi_master_get(master)) in spi_alloc_device() 329 spi_master_put(master); in spi_alloc_device() 333 spi->master = master; in spi_alloc_device() 334 spi->dev.parent = &master->dev; in spi_alloc_device() 355 struct spi_master *master = spi->master; in spi_add_device() local [all …]
|
D | spi-omap-100k.c | 91 struct spi_master *master; member 116 static void spi100k_enable_clock(struct spi_master *master) in spi100k_enable_clock() argument 119 struct omap1_spi100k *spi100k = spi_master_get_devdata(master); in spi100k_enable_clock() 127 static void spi100k_disable_clock(struct spi_master *master) in spi100k_disable_clock() argument 130 struct omap1_spi100k *spi100k = spi_master_get_devdata(master); in spi100k_disable_clock() 138 static void spi100k_write_data(struct spi_master *master, int len, int data) in spi100k_write_data() argument 140 struct omap1_spi100k *spi100k = spi_master_get_devdata(master); in spi100k_write_data() 148 spi100k_enable_clock(master); in spi100k_write_data() 160 spi100k_disable_clock(master); in spi100k_write_data() 163 static int spi100k_read_data(struct spi_master *master, int len) in spi100k_read_data() argument [all …]
|
D | spi-sh-hspi.c | 53 struct spi_master *master; member 102 static int hspi_prepare_transfer(struct spi_master *master) in hspi_prepare_transfer() argument 104 struct hspi_priv *hspi = spi_master_get_devdata(master); in hspi_prepare_transfer() 110 static int hspi_unprepare_transfer(struct spi_master *master) in hspi_unprepare_transfer() argument 112 struct hspi_priv *hspi = spi_master_get_devdata(master); in hspi_unprepare_transfer() 178 static int hspi_transfer_one_message(struct spi_master *master, in hspi_transfer_one_message() argument 181 struct hspi_priv *hspi = spi_master_get_devdata(master); in hspi_transfer_one_message() 243 spi_finalize_current_message(master); in hspi_transfer_one_message() 250 struct hspi_priv *hspi = spi_master_get_devdata(spi->master); in hspi_setup() 265 struct hspi_priv *hspi = spi_master_get_devdata(spi->master); in hspi_cleanup() [all …]
|
D | spi-bcm63xx.c | 98 struct bcm63xx_spi *bs = spi_master_get_devdata(spi->master); in bcm63xx_spi_setup_transfer() 141 struct bcm63xx_spi *bs = spi_master_get_devdata(spi->master); in bcm63xx_txrx_bufs() 245 static int bcm63xx_spi_prepare_transfer(struct spi_master *master) in bcm63xx_spi_prepare_transfer() argument 247 struct bcm63xx_spi *bs = spi_master_get_devdata(master); in bcm63xx_spi_prepare_transfer() 254 static int bcm63xx_spi_unprepare_transfer(struct spi_master *master) in bcm63xx_spi_unprepare_transfer() argument 256 struct bcm63xx_spi *bs = spi_master_get_devdata(master); in bcm63xx_spi_unprepare_transfer() 263 static int bcm63xx_spi_transfer_one(struct spi_master *master, in bcm63xx_spi_transfer_one() argument 266 struct bcm63xx_spi *bs = spi_master_get_devdata(master); in bcm63xx_spi_transfer_one() 343 spi_finalize_current_message(master); in bcm63xx_spi_transfer_one() 353 struct spi_master *master = (struct spi_master *)dev_id; in bcm63xx_spi_interrupt() local [all …]
|
D | spi-topcliff-pch.c | 174 struct spi_master *master; member 234 static inline void pch_spi_writereg(struct spi_master *master, int idx, u32 val) in pch_spi_writereg() argument 236 struct pch_spi_data *data = spi_master_get_devdata(master); in pch_spi_writereg() 245 static inline u32 pch_spi_readreg(struct spi_master *master, int idx) in pch_spi_readreg() argument 247 struct pch_spi_data *data = spi_master_get_devdata(master); in pch_spi_readreg() 251 static inline void pch_spi_setclr_reg(struct spi_master *master, int idx, in pch_spi_setclr_reg() argument 254 u32 tmp = pch_spi_readreg(master, idx); in pch_spi_setclr_reg() 256 pch_spi_writereg(master, idx, tmp); in pch_spi_setclr_reg() 259 static void pch_spi_set_master_mode(struct spi_master *master) in pch_spi_set_master_mode() argument 261 pch_spi_setclr_reg(master, PCH_SPCR, SPCR_MSTR_BIT, 0); in pch_spi_set_master_mode() [all …]
|
D | spi-bcm2835.c | 125 struct spi_master *master = dev_id; in bcm2835_spi_interrupt() local 126 struct bcm2835_spi *bs = spi_master_get_devdata(master); in bcm2835_spi_interrupt() 188 struct bcm2835_spi *bs = spi_master_get_devdata(spi->master); in bcm2835_spi_start_transfer() 240 struct bcm2835_spi *bs = spi_master_get_devdata(spi->master); in bcm2835_spi_finish_transfer() 259 static int bcm2835_spi_transfer_one(struct spi_master *master, in bcm2835_spi_transfer_one() argument 262 struct bcm2835_spi *bs = spi_master_get_devdata(master); in bcm2835_spi_transfer_one() 296 spi_finalize_current_message(master); in bcm2835_spi_transfer_one() 303 struct spi_master *master; in bcm2835_spi_probe() local 308 master = spi_alloc_master(&pdev->dev, sizeof(*bs)); in bcm2835_spi_probe() 309 if (!master) { in bcm2835_spi_probe() [all …]
|
D | spi-falcon.c | 97 struct spi_master *master; member 104 struct falcon_sflash *priv = spi_master_get_devdata(spi->master); in falcon_sflash_xfer() 360 static int falcon_sflash_prepare_xfer(struct spi_master *master) in falcon_sflash_prepare_xfer() argument 365 static int falcon_sflash_unprepare_xfer(struct spi_master *master) in falcon_sflash_unprepare_xfer() argument 370 static int falcon_sflash_xfer_one(struct spi_master *master, in falcon_sflash_xfer_one() argument 373 struct falcon_sflash *priv = spi_master_get_devdata(master); in falcon_sflash_xfer_one() 401 spi_finalize_current_message(master); in falcon_sflash_xfer_one() 409 struct spi_master *master; in falcon_sflash_probe() local 417 master = spi_alloc_master(&pdev->dev, sizeof(*priv)); in falcon_sflash_probe() 418 if (!master) in falcon_sflash_probe() [all …]
|
D | spi-atmel.c | 321 for (i = 0; i < spi->master->num_chipselect; i++) { in cs_activate() 501 struct spi_master *master = data; in dma_callback() local 502 struct atmel_spi *as = spi_master_get_devdata(master); in dma_callback() 512 static void atmel_spi_next_xfer_pio(struct spi_master *master, in atmel_spi_next_xfer_pio() argument 515 struct atmel_spi *as = spi_master_get_devdata(master); in atmel_spi_next_xfer_pio() 517 dev_vdbg(master->dev.parent, "atmel_spi_next_xfer_pio\n"); in atmel_spi_next_xfer_pio() 536 dev_dbg(master->dev.parent, in atmel_spi_next_xfer_pio() 549 static int atmel_spi_next_xfer_dma_submit(struct spi_master *master, in atmel_spi_next_xfer_dma_submit() argument 553 struct atmel_spi *as = spi_master_get_devdata(master); in atmel_spi_next_xfer_dma_submit() 562 dev_vdbg(master->dev.parent, "atmel_spi_next_xfer_dma_submit\n"); in atmel_spi_next_xfer_dma_submit() [all …]
|
D | spi-orion.c | 43 struct spi_master *master; member 102 orion_spi = spi_master_get_devdata(spi->master); in orion_spi_baudrate_set() 136 orion_spi = spi_master_get_devdata(spi->master); in orion_spi_mode_set() 158 orion_spi = spi_master_get_devdata(spi->master); in orion_spi_setup_transfer() 204 orion_spi = spi_master_get_devdata(spi->master); in orion_spi_write_read_8bit() 235 orion_spi = spi_master_get_devdata(spi->master); in orion_spi_write_read_16bit() 266 orion_spi = spi_master_get_devdata(spi->master); in orion_spi_write_read() 295 static int orion_spi_transfer_one_message(struct spi_master *master, in orion_spi_transfer_one_message() argument 298 struct orion_spi *orion_spi = spi_master_get_devdata(master); in orion_spi_transfer_one_message() 364 spi_finalize_current_message(master); in orion_spi_transfer_one_message() [all …]
|
D | spi-clps711x.c | 43 struct spi_clps711x_data *hw = spi_master_get_devdata(spi->master); in spi_clps711x_setup() 72 struct spi_clps711x_data *hw = spi_master_get_devdata(spi->master); in spi_clps711x_setup_xfer() 96 static int spi_clps711x_transfer_one_message(struct spi_master *master, in spi_clps711x_transfer_one_message() argument 99 struct spi_clps711x_data *hw = spi_master_get_devdata(master); in spi_clps711x_transfer_one_message() 139 spi_finalize_current_message(master); in spi_clps711x_transfer_one_message() 169 struct spi_master *master; in spi_clps711x_probe() local 183 master = spi_alloc_master(&pdev->dev, in spi_clps711x_probe() 186 if (!master) { in spi_clps711x_probe() 191 master->bus_num = pdev->id; in spi_clps711x_probe() 192 master->mode_bits = SPI_CPHA | SPI_CS_HIGH; in spi_clps711x_probe() [all …]
|
D | spi-omap2-mcspi.c | 124 struct spi_master *master; member 144 static inline void mcspi_write_reg(struct spi_master *master, in mcspi_write_reg() argument 147 struct omap2_mcspi *mcspi = spi_master_get_devdata(master); in mcspi_write_reg() 152 static inline u32 mcspi_read_reg(struct spi_master *master, int idx) in mcspi_read_reg() argument 154 struct omap2_mcspi *mcspi = spi_master_get_devdata(master); in mcspi_read_reg() 233 static void omap2_mcspi_set_master_mode(struct spi_master *master) in omap2_mcspi_set_master_mode() argument 235 struct omap2_mcspi *mcspi = spi_master_get_devdata(master); in omap2_mcspi_set_master_mode() 243 l = mcspi_read_reg(master, OMAP2_MCSPI_MODULCTRL); in omap2_mcspi_set_master_mode() 246 mcspi_write_reg(master, OMAP2_MCSPI_MODULCTRL, l); in omap2_mcspi_set_master_mode() 253 struct spi_master *spi_cntrl = mcspi->master; in omap2_mcspi_restore_ctx() [all …]
|
D | spi-xcomm.c | 139 static int spi_xcomm_transfer_one(struct spi_master *master, in spi_xcomm_transfer_one() argument 142 struct spi_xcomm *spi_xcomm = spi_master_get_devdata(master); in spi_xcomm_transfer_one() 207 spi_finalize_current_message(master); in spi_xcomm_transfer_one() 224 struct spi_master *master; in spi_xcomm_probe() local 227 master = spi_alloc_master(&i2c->dev, sizeof(*spi_xcomm)); in spi_xcomm_probe() 228 if (!master) in spi_xcomm_probe() 231 spi_xcomm = spi_master_get_devdata(master); in spi_xcomm_probe() 234 master->num_chipselect = 16; in spi_xcomm_probe() 235 master->mode_bits = SPI_CPHA | SPI_CPOL | SPI_3WIRE; in spi_xcomm_probe() 236 master->flags = SPI_MASTER_HALF_DUPLEX; in spi_xcomm_probe() [all …]
|
D | spi-sc18is602.c | 45 struct spi_master *master; member 207 static int sc18is602_transfer_one(struct spi_master *master, in sc18is602_transfer_one() argument 210 struct sc18is602 *hw = spi_master_get_devdata(master); in sc18is602_transfer_one() 250 spi_finalize_current_message(master); in sc18is602_transfer_one() 273 struct spi_master *master; in sc18is602_probe() local 280 master = spi_alloc_master(dev, sizeof(struct sc18is602)); in sc18is602_probe() 281 if (!master) in sc18is602_probe() 284 hw = spi_master_get_devdata(master); in sc18is602_probe() 287 hw->master = master; in sc18is602_probe() 297 master->num_chipselect = 4; in sc18is602_probe() [all …]
|
/drivers/mtd/ |
D | mtdpart.c | 43 struct mtd_info *master; member 67 stats = part->master->ecc_stats; in part_read() 68 res = part->master->_read(part->master, from + part->offset, len, in part_read() 72 part->master->ecc_stats.failed - stats.failed; in part_read() 75 part->master->ecc_stats.corrected - stats.corrected; in part_read() 84 return part->master->_point(part->master, from + part->offset, len, in part_point() 92 return part->master->_unpoint(part->master, from + part->offset, len); in part_unpoint() 103 return part->master->_get_unmapped_area(part->master, len, offset, in part_get_unmapped_area() 135 res = part->master->_read_oob(part->master, from + part->offset, ops); in part_read_oob() 149 return part->master->_read_user_prot_reg(part->master, from, len, in part_read_user_prot_reg() [all …]
|
D | ar7part.c | 45 static int create_mtd_partitions(struct mtd_info *master, in create_mtd_partitions() argument 52 unsigned int pre_size = master->erasesize, post_size = 0; in create_mtd_partitions() 63 ar7_parts[0].size = master->erasesize; in create_mtd_partitions() 68 ar7_parts[1].size = master->erasesize; in create_mtd_partitions() 73 mtd_read(master, offset, sizeof(header), &len, in create_mtd_partitions() 81 pre_size += master->erasesize; in create_mtd_partitions() 87 ar7_parts[1].offset = master->size - master->erasesize; in create_mtd_partitions() 88 post_size = master->erasesize; in create_mtd_partitions() 95 mtd_read(master, offset, sizeof(header), &len, in create_mtd_partitions() 103 mtd_read(master, offset, sizeof(header), &len, in create_mtd_partitions() [all …]
|
D | redboot.c | 59 static int parse_redboot_partitions(struct mtd_info *master, in parse_redboot_partitions() argument 80 offset = master->size + directory * master->erasesize; in parse_redboot_partitions() 81 while (mtd_block_isbad(master, offset)) { in parse_redboot_partitions() 87 offset -= master->erasesize; in parse_redboot_partitions() 90 offset = directory * master->erasesize; in parse_redboot_partitions() 91 while (mtd_block_isbad(master, offset)) { in parse_redboot_partitions() 92 offset += master->erasesize; in parse_redboot_partitions() 93 if (offset == master->size) in parse_redboot_partitions() 97 buf = vmalloc(master->erasesize); in parse_redboot_partitions() 103 master->name, offset); in parse_redboot_partitions() [all …]
|
/drivers/gpu/drm/ |
D | drm_stub.c | 132 struct drm_master *master; in drm_master_create() local 134 master = kzalloc(sizeof(*master), GFP_KERNEL); in drm_master_create() 135 if (!master) in drm_master_create() 138 kref_init(&master->refcount); in drm_master_create() 139 spin_lock_init(&master->lock.spinlock); in drm_master_create() 140 init_waitqueue_head(&master->lock.lock_queue); in drm_master_create() 141 drm_ht_create(&master->magiclist, DRM_MAGIC_HASH_ORDER); in drm_master_create() 142 INIT_LIST_HEAD(&master->magicfree); in drm_master_create() 143 master->minor = minor; in drm_master_create() 145 list_add_tail(&master->head, &minor->master_list); in drm_master_create() [all …]
|
D | drm_ioctl.c | 57 struct drm_master *master = file_priv->master; in drm_getunique() local 59 if (u->unique_len >= master->unique_len) { in drm_getunique() 60 if (copy_to_user(u->unique, master->unique, master->unique_len)) in drm_getunique() 63 u->unique_len = master->unique_len; in drm_getunique() 70 struct drm_master *master) in drm_unset_busid() argument 75 kfree(master->unique); in drm_unset_busid() 76 master->unique = NULL; in drm_unset_busid() 77 master->unique_len = 0; in drm_unset_busid() 78 master->unique_size = 0; in drm_unset_busid() 99 struct drm_master *master = file_priv->master; in drm_setunique() local [all …]
|
D | drm_lock.c | 58 struct drm_master *master = file_priv->master; in drm_lock() local 71 master->lock.hw_lock->lock, lock->flags); in drm_lock() 73 add_wait_queue(&master->lock.lock_queue, &entry); in drm_lock() 74 spin_lock_bh(&master->lock.spinlock); in drm_lock() 75 master->lock.user_waiters++; in drm_lock() 76 spin_unlock_bh(&master->lock.spinlock); in drm_lock() 80 if (!master->lock.hw_lock) { in drm_lock() 86 if (drm_lock_take(&master->lock, lock->context)) { in drm_lock() 87 master->lock.file_priv = file_priv; in drm_lock() 88 master->lock.lock_time = jiffies; in drm_lock() [all …]
|
D | drm_auth.c | 48 static struct drm_file *drm_find_file(struct drm_master *master, drm_magic_t magic) in drm_find_file() argument 53 struct drm_device *dev = master->minor->dev; in drm_find_file() 56 if (!drm_ht_find_item(&master->magiclist, (unsigned long)magic, &hash)) { in drm_find_file() 75 static int drm_add_magic(struct drm_master *master, struct drm_file *priv, in drm_add_magic() argument 79 struct drm_device *dev = master->minor->dev; in drm_add_magic() 88 drm_ht_insert_item(&master->magiclist, &entry->hash_item); in drm_add_magic() 89 list_add_tail(&entry->head, &master->magicfree); in drm_add_magic() 104 int drm_remove_magic(struct drm_master *master, drm_magic_t magic) in drm_remove_magic() argument 108 struct drm_device *dev = master->minor->dev; in drm_remove_magic() 113 if (drm_ht_find_item(&master->magiclist, (unsigned long)magic, &hash)) { in drm_remove_magic() [all …]
|
D | drm_pci.c | 155 static int drm_pci_set_busid(struct drm_device *dev, struct drm_master *master) in drm_pci_set_busid() argument 159 master->unique_len = 40; in drm_pci_set_busid() 160 master->unique_size = master->unique_len; in drm_pci_set_busid() 161 master->unique = kmalloc(master->unique_size, GFP_KERNEL); in drm_pci_set_busid() 162 if (master->unique == NULL) in drm_pci_set_busid() 166 len = snprintf(master->unique, master->unique_len, in drm_pci_set_busid() 173 if (len >= master->unique_len) { in drm_pci_set_busid() 178 master->unique_len = len; in drm_pci_set_busid() 182 master->unique_len + 2, GFP_KERNEL); in drm_pci_set_busid() 190 master->unique); in drm_pci_set_busid() [all …]
|
/drivers/video/backlight/ |
D | adp5520_bl.c | 19 struct device *master; member 30 struct device *master = data->master; in adp5520_bl_set() local 36 ret |= adp5520_clr_bits(master, ADP5520_BL_CONTROL, in adp5520_bl_set() 38 ret |= adp5520_write(master, ADP5520_DAYLIGHT_MAX, in adp5520_bl_set() 45 ret |= adp5520_write(master, ADP5520_DAYLIGHT_MAX, in adp5520_bl_set() 47 ret |= adp5520_set_bits(master, ADP5520_BL_CONTROL, in adp5520_bl_set() 51 ret |= adp5520_write(master, ADP5520_DAYLIGHT_MAX, brightness); in adp5520_bl_set() 55 ret |= adp5520_set_bits(master, in adp5520_bl_set() 58 ret |= adp5520_clr_bits(master, in adp5520_bl_set() 85 error = adp5520_read(data->master, ADP5520_BL_VALUE, ®_val); in adp5520_bl_get_brightness() [all …]
|
/drivers/w1/slaves/ |
D | w1_ds2408.c | 55 mutex_lock(&sl->master->bus_mutex); in _read_reg() 59 mutex_unlock(&sl->master->bus_mutex); in _read_reg() 66 w1_write_block(sl->master, wrbuf, 3); in _read_reg() 67 *buf = w1_read_8(sl->master); in _read_reg() 69 mutex_unlock(&sl->master->bus_mutex); in _read_reg() 168 mutex_lock(&sl->master->bus_mutex); in w1_f29_write_output() 178 w1_write_block(sl->master, w1_buf, 3); in w1_f29_write_output() 180 readBack = w1_read_8(sl->master); in w1_f29_write_output() 183 if (w1_reset_resume_command(sl->master)) in w1_f29_write_output() 195 if (w1_reset_resume_command(sl->master)) in w1_f29_write_output() [all …]
|
/drivers/char/agp/ |
D | isoch.c | 82 struct isoch_data *master, target; in agp_3_5_isochronous_node_enable() local 95 if ((master = kmalloc(ndevs * sizeof(*master), GFP_KERNEL)) == NULL) { in agp_3_5_isochronous_node_enable() 143 master[cdev].maxbw = (mnistat >> 16) & 0xff; in agp_3_5_isochronous_node_enable() 144 master[cdev].n = (mnistat >> 8) & 0xff; in agp_3_5_isochronous_node_enable() 145 master[cdev].y = (mnistat >> 6) & 0x3; in agp_3_5_isochronous_node_enable() 146 master[cdev].dev = cur; in agp_3_5_isochronous_node_enable() 148 tot_bw += master[cdev].maxbw; in agp_3_5_isochronous_node_enable() 149 y_max = max(y_max, master[cdev].y); in agp_3_5_isochronous_node_enable() 182 master[cdev].y = target.y; in agp_3_5_isochronous_node_enable() 183 master[cdev].n = master[cdev].maxbw / (master[cdev].y + 1); in agp_3_5_isochronous_node_enable() [all …]
|
/drivers/video/mmp/hw/ |
D | mmp_spi.c | 48 *(void **)spi_master_get_devdata(spi->master); in lcd_spi_write() 97 *(void **)spi_master_get_devdata(spi->master); in lcd_spi_setup() 152 struct spi_master *master; in lcd_spi_register() local 156 master = spi_alloc_master(ctrl->dev, sizeof(void *)); in lcd_spi_register() 157 if (!master) { in lcd_spi_register() 161 p_regbase = spi_master_get_devdata(master); in lcd_spi_register() 165 master->bus_num = 5; in lcd_spi_register() 166 master->num_chipselect = 1; in lcd_spi_register() 167 master->setup = lcd_spi_setup; in lcd_spi_register() 168 master->transfer = lcd_spi_one_transfer; in lcd_spi_register() [all …]
|