/drivers/video/backlight/ |
D | backlight.c | 43 struct backlight_device *bd; in fb_notifier_callback() local 52 bd = container_of(self, struct backlight_device, fb_notif); in fb_notifier_callback() 53 mutex_lock(&bd->ops_lock); in fb_notifier_callback() 54 if (bd->ops) in fb_notifier_callback() 55 if (!bd->ops->check_fb || in fb_notifier_callback() 56 bd->ops->check_fb(bd, evdata->info)) { in fb_notifier_callback() 59 !bd->fb_bl_on[node]) { in fb_notifier_callback() 60 bd->fb_bl_on[node] = true; in fb_notifier_callback() 61 if (!bd->use_count++) { in fb_notifier_callback() 62 bd->props.state &= ~BL_CORE_FBBLANK; in fb_notifier_callback() [all …]
|
D | aat2870_bl.c | 34 struct backlight_device *bd; member 44 struct backlight_device *bd = aat2870_bl->bd; in aat2870_brightness() local 48 val /= bd->props.max_brightness; in aat2870_brightness() 70 static int aat2870_bl_update_status(struct backlight_device *bd) in aat2870_bl_update_status() argument 72 struct aat2870_bl_driver_data *aat2870_bl = bl_get_data(bd); in aat2870_bl_update_status() 75 int brightness = bd->props.brightness; in aat2870_bl_update_status() 78 if ((brightness < 0) || (bd->props.max_brightness < brightness)) { in aat2870_bl_update_status() 79 dev_err(&bd->dev, "invalid brightness, %d\n", brightness); in aat2870_bl_update_status() 83 dev_dbg(&bd->dev, "brightness=%d, power=%d, state=%d\n", in aat2870_bl_update_status() 84 bd->props.brightness, bd->props.power, bd->props.state); in aat2870_bl_update_status() [all …]
|
D | generic_bl.c | 27 static int genericbl_send_intensity(struct backlight_device *bd) in genericbl_send_intensity() argument 29 int intensity = bd->props.brightness; in genericbl_send_intensity() 31 if (bd->props.power != FB_BLANK_UNBLANK) in genericbl_send_intensity() 33 if (bd->props.state & BL_CORE_FBBLANK) in genericbl_send_intensity() 35 if (bd->props.state & BL_CORE_SUSPENDED) in genericbl_send_intensity() 37 if (bd->props.state & GENERICBL_BATTLOW) in genericbl_send_intensity() 50 static int genericbl_get_intensity(struct backlight_device *bd) in genericbl_get_intensity() argument 66 struct backlight_device *bd; in genericbl_probe() local 78 bd = devm_backlight_device_register(&pdev->dev, name, &pdev->dev, in genericbl_probe() 80 if (IS_ERR(bd)) in genericbl_probe() [all …]
|
D | hp680_bl.c | 32 static void hp680bl_send_intensity(struct backlight_device *bd) in hp680bl_send_intensity() argument 36 int intensity = bd->props.brightness; in hp680bl_send_intensity() 38 if (bd->props.power != FB_BLANK_UNBLANK) in hp680bl_send_intensity() 40 if (bd->props.fb_blank != FB_BLANK_UNBLANK) in hp680bl_send_intensity() 70 struct backlight_device *bd = dev_get_drvdata(dev); in hp680bl_suspend() local 73 hp680bl_send_intensity(bd); in hp680bl_suspend() 79 struct backlight_device *bd = dev_get_drvdata(dev); in hp680bl_resume() local 82 hp680bl_send_intensity(bd); in hp680bl_resume() 89 static int hp680bl_set_intensity(struct backlight_device *bd) in hp680bl_set_intensity() argument 91 hp680bl_send_intensity(bd); in hp680bl_set_intensity() [all …]
|
D | jornada720_bl.c | 27 static int jornada_bl_get_brightness(struct backlight_device *bd) in jornada_bl_get_brightness() argument 41 dev_err(&bd->dev, "get brightness timeout\n"); in jornada_bl_get_brightness() 54 static int jornada_bl_update_status(struct backlight_device *bd) in jornada_bl_update_status() argument 61 if ((bd->props.power != FB_BLANK_UNBLANK) || (bd->props.fb_blank != FB_BLANK_UNBLANK)) { in jornada_bl_update_status() 64 dev_info(&bd->dev, "brightness off timeout\n"); in jornada_bl_update_status() 75 dev_info(&bd->dev, "failed to set brightness\n"); in jornada_bl_update_status() 87 if (jornada_ssp_byte(BL_MAX_BRIGHT - bd->props.brightness) in jornada_bl_update_status() 89 dev_err(&bd->dev, "set brightness failed\n"); in jornada_bl_update_status() 113 struct backlight_device *bd; in jornada_bl_probe() local 119 bd = devm_backlight_device_register(&pdev->dev, S1D_DEVICENAME, in jornada_bl_probe() [all …]
|
D | bd6107.c | 79 static int bd6107_write(struct bd6107 *bd, u8 reg, u8 data) in bd6107_write() argument 81 return i2c_smbus_write_byte_data(bd->client, reg, data); in bd6107_write() 86 struct bd6107 *bd = bl_get_data(backlight); in bd6107_backlight_update_status() local 95 bd6107_write(bd, BD6107_PORTSEL, BD6107_PORTSEL_LEDM(2) | in bd6107_backlight_update_status() 97 bd6107_write(bd, BD6107_MAINCNT1, brightness); in bd6107_backlight_update_status() 98 bd6107_write(bd, BD6107_LEDCNT1, BD6107_LEDCNT1_LEDONOFF1); in bd6107_backlight_update_status() 100 gpio_set_value(bd->pdata->reset, 0); in bd6107_backlight_update_status() 102 gpio_set_value(bd->pdata->reset, 1); in bd6107_backlight_update_status() 111 struct bd6107 *bd = bl_get_data(backlight); in bd6107_backlight_check_fb() local 113 return bd->pdata->fbdev == NULL || bd->pdata->fbdev == info->dev; in bd6107_backlight_check_fb() [all …]
|
D | ipaq_micro_bl.c | 18 static int micro_bl_update_status(struct backlight_device *bd) in micro_bl_update_status() argument 20 struct ipaq_micro *micro = dev_get_drvdata(&bd->dev); in micro_bl_update_status() 21 int intensity = bd->props.brightness; in micro_bl_update_status() 27 if (bd->props.power != FB_BLANK_UNBLANK) in micro_bl_update_status() 29 if (bd->props.state & (BL_CORE_FBBLANK | BL_CORE_SUSPENDED)) in micro_bl_update_status() 58 struct backlight_device *bd; in micro_backlight_probe() local 61 bd = devm_backlight_device_register(&pdev->dev, "ipaq-micro-backlight", in micro_backlight_probe() 64 if (IS_ERR(bd)) in micro_backlight_probe() 65 return PTR_ERR(bd); in micro_backlight_probe() 67 platform_set_drvdata(pdev, bd); in micro_backlight_probe() [all …]
|
D | lm3533_bl.c | 33 struct backlight_device *bd; member 43 static int lm3533_bl_update_status(struct backlight_device *bd) in lm3533_bl_update_status() argument 45 struct lm3533_bl *bl = bl_get_data(bd); in lm3533_bl_update_status() 46 int brightness = bd->props.brightness; in lm3533_bl_update_status() 48 if (bd->props.power != FB_BLANK_UNBLANK) in lm3533_bl_update_status() 50 if (bd->props.fb_blank != FB_BLANK_UNBLANK) in lm3533_bl_update_status() 56 static int lm3533_bl_get_brightness(struct backlight_device *bd) in lm3533_bl_get_brightness() argument 58 struct lm3533_bl *bl = bl_get_data(bd); in lm3533_bl_get_brightness() 277 struct backlight_device *bd; in lm3533_bl_probe() local 313 bd = devm_backlight_device_register(&pdev->dev, pdata->name, in lm3533_bl_probe() [all …]
|
/drivers/staging/dgnc/ |
D | dgnc_sysfs.c | 93 #define DGNC_VERIFY_BOARD(p, bd) \ argument 98 bd = dev_get_drvdata(p); \ 99 if (!bd || bd->magic != DGNC_BOARD_MAGIC) \ 101 if (bd->state != BOARD_READY) \ 108 struct dgnc_board *bd; in vpd_show() local 112 DGNC_VERIFY_BOARD(p, bd); in vpd_show() 119 count += sprintf(buf + count, "%02X ", bd->vpd[i]); in vpd_show() 130 struct dgnc_board *bd; in serial_number_show() local 133 DGNC_VERIFY_BOARD(p, bd); in serial_number_show() 135 if (bd->serial_num[0] == '\0') in serial_number_show() [all …]
|
/drivers/net/wireless/ath/wcn36xx/ |
D | txrx.c | 21 static inline int get_rssi0(struct wcn36xx_rx_bd *bd) in get_rssi0() argument 23 return 100 - ((bd->phy_stat0 >> 24) & 0xff); in get_rssi0() 30 struct wcn36xx_rx_bd *bd; in wcn36xx_rx_skb() local 39 bd = (struct wcn36xx_rx_bd *)skb->data; in wcn36xx_rx_skb() 40 buff_to_be((u32 *)bd, sizeof(*bd)/sizeof(u32)); in wcn36xx_rx_skb() 42 "BD <<< ", (char *)bd, in wcn36xx_rx_skb() 45 skb_put(skb, bd->pdu.mpdu_header_off + bd->pdu.mpdu_len); in wcn36xx_rx_skb() 46 skb_pull(skb, bd->pdu.mpdu_header_off); in wcn36xx_rx_skb() 51 status.signal = -get_rssi0(bd); in wcn36xx_rx_skb() 85 static void wcn36xx_set_tx_pdu(struct wcn36xx_tx_bd *bd, in wcn36xx_set_tx_pdu() argument [all …]
|
/drivers/video/fbdev/matrox/ |
D | matroxfb_misc.c | 390 static void get_pins(unsigned char __iomem* pins, struct matrox_bios* bd) { in get_pins() argument 397 unsigned char* dst = bd->pins; in get_pins() 412 bd->pins_len = pins_len; in get_pins() 415 unsigned char* dst = bd->pins; in get_pins() 422 bd->pins_len = 0x40; in get_pins() 426 static void get_bios_version(unsigned char __iomem * vbios, struct matrox_bios* bd) { in get_bios_version() argument 438 bd->version.vMaj = (h >> 4) & 0xF; in get_bios_version() 439 bd->version.vMin = h & 0xF; in get_bios_version() 440 bd->version.vRev = readb(vbios + pcir_offset + 0x13); in get_bios_version() 445 bd->version.vMaj = (h >> 4) & 0xF; in get_bios_version() [all …]
|
/drivers/usb/musb/ |
D | cppi_dma.c | 62 struct cppi_descriptor *bd = c->freelist; in cppi_bd_alloc() local 64 if (bd) in cppi_bd_alloc() 65 c->freelist = bd->next; in cppi_bd_alloc() 66 return bd; in cppi_bd_alloc() 70 cppi_bd_free(struct cppi_channel *c, struct cppi_descriptor *bd) in cppi_bd_free() argument 72 if (!bd) in cppi_bd_free() 74 bd->next = c->freelist; in cppi_bd_free() 75 c->freelist = bd; in cppi_bd_free() 124 struct cppi_descriptor *bd; in cppi_pool_init() local 127 bd = dma_pool_alloc(cppi->pool, GFP_KERNEL, &dma); in cppi_pool_init() [all …]
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_backlight.c | 40 nv40_get_intensity(struct backlight_device *bd) in nv40_get_intensity() argument 42 struct nouveau_drm *drm = bl_get_data(bd); in nv40_get_intensity() 51 nv40_set_intensity(struct backlight_device *bd) in nv40_set_intensity() argument 53 struct nouveau_drm *drm = bl_get_data(bd); in nv40_set_intensity() 55 int val = bd->props.brightness; in nv40_set_intensity() 76 struct backlight_device *bd; in nv40_backlight_init() local 84 bd = backlight_device_register("nv_backlight", connector->kdev, drm, in nv40_backlight_init() 86 if (IS_ERR(bd)) in nv40_backlight_init() 87 return PTR_ERR(bd); in nv40_backlight_init() 88 drm->backlight = bd; in nv40_backlight_init() [all …]
|
/drivers/crypto/caam/ |
D | caamrng.c | 81 static inline void rng_unmap_buf(struct device *jrdev, struct buf_data *bd) in rng_unmap_buf() argument 83 if (bd->addr) in rng_unmap_buf() 84 dma_unmap_single(jrdev, bd->addr, RN_BUF_SIZE, in rng_unmap_buf() 101 struct buf_data *bd; in rng_done() local 103 bd = (struct buf_data *)((char *)desc - in rng_done() 109 atomic_set(&bd->empty, BUF_NOT_EMPTY); in rng_done() 110 complete(&bd->filled); in rng_done() 113 dma_sync_single_for_cpu(jrdev, bd->addr, RN_BUF_SIZE, DMA_FROM_DEVICE); in rng_done() 117 DUMP_PREFIX_ADDRESS, 16, 4, bd->buf, RN_BUF_SIZE, 1); in rng_done() 123 struct buf_data *bd = &ctx->bufs[!(to_current ^ ctx->current_buf)]; in submit_job() local [all …]
|
/drivers/staging/lustre/lnet/libcfs/ |
D | hash.c | 250 cfs_hash_hh_hhead(struct cfs_hash *hs, struct cfs_hash_bd *bd) in cfs_hash_hh_hhead() argument 254 head = (struct cfs_hash_head *)&bd->bd_bucket->hsb_head[0]; in cfs_hash_hh_hhead() 255 return &head[bd->bd_offset].hh_head; in cfs_hash_hh_hhead() 259 cfs_hash_hh_hnode_add(struct cfs_hash *hs, struct cfs_hash_bd *bd, in cfs_hash_hh_hnode_add() argument 262 hlist_add_head(hnode, cfs_hash_hh_hhead(hs, bd)); in cfs_hash_hh_hnode_add() 267 cfs_hash_hh_hnode_del(struct cfs_hash *hs, struct cfs_hash_bd *bd, in cfs_hash_hh_hnode_del() argument 290 cfs_hash_hd_hhead(struct cfs_hash *hs, struct cfs_hash_bd *bd) in cfs_hash_hd_hhead() argument 294 head = (struct cfs_hash_head_dep *)&bd->bd_bucket->hsb_head[0]; in cfs_hash_hd_hhead() 295 return &head[bd->bd_offset].hd_head; in cfs_hash_hd_hhead() 299 cfs_hash_hd_hnode_add(struct cfs_hash *hs, struct cfs_hash_bd *bd, in cfs_hash_hd_hnode_add() argument [all …]
|
/drivers/staging/lustre/include/linux/libcfs/ |
D | libcfs_hash.h | 281 struct cfs_hash_bd *bd); 285 int (*hop_hnode_add)(struct cfs_hash *hs, struct cfs_hash_bd *bd, 288 int (*hop_hnode_del)(struct cfs_hash *hs, struct cfs_hash_bd *bd, 532 struct cfs_hash_bd *bd, int excl) in cfs_hash_bd_lock() argument 534 hs->hs_lops->hs_bkt_lock(&bd->bd_bucket->hsb_lock, excl); in cfs_hash_bd_lock() 538 struct cfs_hash_bd *bd, int excl) in cfs_hash_bd_unlock() argument 540 hs->hs_lops->hs_bkt_unlock(&bd->bd_bucket->hsb_lock, excl); in cfs_hash_bd_unlock() 548 struct cfs_hash_bd *bd); 552 struct cfs_hash_bd *bd, int excl) in cfs_hash_bd_get_and_lock() argument 554 cfs_hash_bd_get(hs, key, bd); in cfs_hash_bd_get_and_lock() [all …]
|
/drivers/net/ethernet/intel/e1000/ |
D | e1000_param.c | 273 int bd = adapter->bd_number; in e1000_check_options() local 275 if (bd >= E1000_MAX_NIC) { in e1000_check_options() 277 "using defaults for all values\n", bd); in e1000_check_options() 297 if (num_TxDescriptors > bd) { in e1000_check_options() 298 tx_ring->count = TxDescriptors[bd]; in e1000_check_options() 326 if (num_RxDescriptors > bd) { in e1000_check_options() 327 rx_ring->count = RxDescriptors[bd]; in e1000_check_options() 345 if (num_XsumRX > bd) { in e1000_check_options() 346 unsigned int rx_csum = XsumRX[bd]; in e1000_check_options() 372 if (num_FlowControl > bd) { in e1000_check_options() [all …]
|
/drivers/video/fbdev/nvidia/ |
D | nv_backlight.c | 51 static int nvidia_bl_update_status(struct backlight_device *bd) in nvidia_bl_update_status() argument 53 struct nvidia_par *par = bl_get_data(bd); in nvidia_bl_update_status() 60 if (bd->props.power != FB_BLANK_UNBLANK || in nvidia_bl_update_status() 61 bd->props.fb_blank != FB_BLANK_UNBLANK) in nvidia_bl_update_status() 64 level = bd->props.brightness; in nvidia_bl_update_status() 93 struct backlight_device *bd; in nvidia_bl_init() local 110 bd = backlight_device_register(name, info->dev, par, &nvidia_bl_ops, in nvidia_bl_init() 112 if (IS_ERR(bd)) { in nvidia_bl_init() 118 info->bl_dev = bd; in nvidia_bl_init() 123 bd->props.brightness = bd->props.max_brightness; in nvidia_bl_init() [all …]
|
/drivers/video/fbdev/aty/ |
D | radeon_backlight.c | 49 static int radeon_bl_update_status(struct backlight_device *bd) in radeon_bl_update_status() argument 51 struct radeon_bl_privdata *pdata = bl_get_data(bd); in radeon_bl_update_status() 63 if (bd->props.power != FB_BLANK_UNBLANK || in radeon_bl_update_status() 64 bd->props.fb_blank != FB_BLANK_UNBLANK) in radeon_bl_update_status() 67 level = bd->props.brightness; in radeon_bl_update_status() 133 struct backlight_device *bd; in radeonfb_bl_init() local 157 bd = backlight_device_register(name, rinfo->info->dev, pdata, in radeonfb_bl_init() 159 if (IS_ERR(bd)) { in radeonfb_bl_init() 183 rinfo->info->bl_dev = bd; in radeonfb_bl_init() 188 bd->props.brightness = bd->props.max_brightness; in radeonfb_bl_init() [all …]
|
/drivers/net/ethernet/intel/e1000e/ |
D | param.c | 239 int bd = adapter->bd_number; in e1000e_check_options() local 241 if (bd >= E1000_MAX_NIC) { in e1000e_check_options() 243 "Warning: no configuration for board #%i\n", bd); in e1000e_check_options() 260 if (num_TxIntDelay > bd) { in e1000e_check_options() 261 adapter->tx_int_delay = TxIntDelay[bd]; in e1000e_check_options() 280 if (num_TxAbsIntDelay > bd) { in e1000e_check_options() 281 adapter->tx_abs_int_delay = TxAbsIntDelay[bd]; in e1000e_check_options() 300 if (num_RxIntDelay > bd) { in e1000e_check_options() 301 adapter->rx_int_delay = RxIntDelay[bd]; in e1000e_check_options() 320 if (num_RxAbsIntDelay > bd) { in e1000e_check_options() [all …]
|
/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_param.c | 263 int bd = adapter->bd_number; in ixgb_check_options() local 264 if (bd >= IXGB_MAX_NIC) { in ixgb_check_options() 265 pr_notice("Warning: no configuration for board #%i\n", bd); in ixgb_check_options() 280 if (num_TxDescriptors > bd) { in ixgb_check_options() 281 tx_ring->count = TxDescriptors[bd]; in ixgb_check_options() 299 if (num_RxDescriptors > bd) { in ixgb_check_options() 300 rx_ring->count = RxDescriptors[bd]; in ixgb_check_options() 315 if (num_XsumRX > bd) { in ixgb_check_options() 316 unsigned int rx_csum = XsumRX[bd]; in ixgb_check_options() 342 if (num_FlowControl > bd) { in ixgb_check_options() [all …]
|
/drivers/macintosh/ |
D | via-pmu-backlight.c | 71 static int __pmu_backlight_update_status(struct backlight_device *bd) in __pmu_backlight_update_status() argument 74 int level = bd->props.brightness; in __pmu_backlight_update_status() 77 if (bd->props.power != FB_BLANK_UNBLANK || in __pmu_backlight_update_status() 78 bd->props.fb_blank != FB_BLANK_UNBLANK) in __pmu_backlight_update_status() 99 static int pmu_backlight_update_status(struct backlight_device *bd) in pmu_backlight_update_status() argument 107 rc = __pmu_backlight_update_status(bd); in pmu_backlight_update_status() 142 struct backlight_device *bd; in pmu_backlight_init() local 162 bd = backlight_device_register(name, NULL, NULL, &pmu_backlight_data, in pmu_backlight_init() 164 if (IS_ERR(bd)) { in pmu_backlight_init() 171 level = bd->props.max_brightness; in pmu_backlight_init() [all …]
|
/drivers/net/ethernet/ |
D | ethoc.c | 253 struct ethoc_bd *bd) in ethoc_read_bd() argument 256 bd->stat = ethoc_read(dev, offset + 0); in ethoc_read_bd() 257 bd->addr = ethoc_read(dev, offset + 4); in ethoc_read_bd() 261 const struct ethoc_bd *bd) in ethoc_write_bd() argument 264 ethoc_write(dev, offset + 0, bd->stat); in ethoc_write_bd() 265 ethoc_write(dev, offset + 4, bd->addr); in ethoc_write_bd() 303 struct ethoc_bd bd; in ethoc_init_ring() local 314 bd.addr = mem_start; in ethoc_init_ring() 315 bd.stat = TX_BD_IRQ | TX_BD_CRC; in ethoc_init_ring() 320 bd.stat |= TX_BD_WRAP; in ethoc_init_ring() [all …]
|
/drivers/md/ |
D | dm-bio-record.h | 26 static inline void dm_bio_record(struct dm_bio_details *bd, struct bio *bio) in dm_bio_record() argument 28 bd->bi_bdev = bio->bi_bdev; in dm_bio_record() 29 bd->bi_flags = bio->bi_flags; in dm_bio_record() 30 bd->bi_iter = bio->bi_iter; in dm_bio_record() 33 static inline void dm_bio_restore(struct dm_bio_details *bd, struct bio *bio) in dm_bio_restore() argument 35 bio->bi_bdev = bd->bi_bdev; in dm_bio_restore() 36 bio->bi_flags = bd->bi_flags; in dm_bio_restore() 37 bio->bi_iter = bd->bi_iter; in dm_bio_restore()
|
/drivers/target/ |
D | target_core_iblock.c | 86 struct block_device *bd = NULL; in iblock_configure_device() local 111 bd = blkdev_get_by_path(ib_dev->ibd_udev_path, mode, ib_dev); in iblock_configure_device() 112 if (IS_ERR(bd)) { in iblock_configure_device() 113 ret = PTR_ERR(bd); in iblock_configure_device() 116 ib_dev->ibd_bd = bd; in iblock_configure_device() 118 q = bdev_get_queue(bd); in iblock_configure_device() 120 dev->dev_attrib.hw_block_size = bdev_logical_block_size(bd); in iblock_configure_device() 137 bi = bdev_get_integrity(bd); in iblock_configure_device() 200 struct block_device *bd, in iblock_emulate_read_cap_with_block_size() argument 203 unsigned long long blocks_long = (div_u64(i_size_read(bd->bd_inode), in iblock_emulate_read_cap_with_block_size() [all …]
|