/linux/block/ |
A D | bdev.c | 190 if (!bdev) in sync_blockdev_nowait() 202 if (!bdev) in sync_blockdev() 397 memset(&ei->bdev, 0, sizeof(ei->bdev)); in bdev_alloc_inode() 409 if (bdev->bd_disk && bdev->bd_disk->bdi) in bdev_free_inode() 504 return bdev; in bdev_alloc() 694 bdev->bd_disk->fops->release(bdev->bd_disk, mode); in blkdev_put_whole() 749 bdev = &BDEV_I(inode)->bdev; in blkdev_get_no_open() 754 if (!bdev) in blkdev_get_no_open() 761 return bdev; in blkdev_get_no_open() 805 if (!bdev) in blkdev_get_by_dev() [all …]
|
A D | ioctl.c | 19 struct gendisk *disk = bdev->bd_disk; in blkpg_do_ioctl() 27 if (bdev_is_partition(bdev)) in blkpg_do_ioctl() 89 if (!disk_part_scan_enabled(bdev->bd_disk) || bdev_is_partition(bdev)) in blkdev_reread_part() 350 fsync_bdev(bdev); in blkdev_flushbuf() 351 invalidate_bdev(bdev); in blkdev_flushbuf() 366 ret = bdev->bd_disk->fops->set_read_only(bdev, n); in blkdev_roset() 370 bdev->bd_read_only = n; in blkdev_roset() 453 return set_blocksize(bdev, n); in blkdev_bszset() 455 if (IS_ERR(blkdev_get_by_dev(bdev->bd_dev, mode | FMODE_EXCL, &bdev))) in blkdev_bszset() 457 ret = set_blocksize(bdev, n); in blkdev_bszset() [all …]
|
A D | holder.c | 7 struct block_device *bdev; member 17 if (holder->bdev == bdev) in bd_find_holder_disk() 80 WARN_ON_ONCE(!bdev->bd_holder); in bd_link_disk_holder() 83 if (WARN_ON(!bdev->bd_holder_dir)) in bd_link_disk_holder() 86 holder = bd_find_holder_disk(bdev, disk); in bd_link_disk_holder() 99 holder->bdev = bdev; in bd_link_disk_holder() 102 ret = __link_disk_holder(bdev, disk); in bd_link_disk_holder() 114 kobject_get(bdev->bd_holder_dir); in bd_link_disk_holder() 144 holder = bd_find_holder_disk(bdev, disk); in bd_unlink_disk_holder() 147 __unlink_disk_holder(bdev, disk); in bd_unlink_disk_holder() [all …]
|
A D | blk-lib.c | 38 if (bdev_read_only(bdev)) in __blkdev_issue_discard() 55 bdevname(bdev, dev_name); in __blkdev_issue_discard() 68 if (bdev_is_partition(bdev)) in __blkdev_issue_discard() 100 bio_set_dev(bio, bdev); in __blkdev_issue_discard() 178 if (bdev_read_only(bdev)) in __blkdev_issue_write_same() 185 if (!bdev_write_same(bdev)) in __blkdev_issue_write_same() 194 bio_set_dev(bio, bdev); in __blkdev_issue_write_same() 258 if (bdev_read_only(bdev)) in __blkdev_issue_write_zeroes() 270 bio_set_dev(bio, bdev); in __blkdev_issue_write_zeroes() 315 if (bdev_read_only(bdev)) in __blkdev_issue_zero_pages() [all …]
|
A D | blk-zoned.c | 150 struct gendisk *disk = bdev->bd_disk; in blkdev_report_zones() 153 if (!blk_queue_is_zoned(bdev_get_queue(bdev)) || in blkdev_report_zones() 193 struct request_queue *q = bdev_get_queue(bdev); in blkdev_zone_reset_all_emulated() 205 ret = bdev->bd_disk->fops->report_zones(bdev->bd_disk, 0, in blkdev_zone_reset_all_emulated() 219 bio_set_dev(bio, bdev); in blkdev_zone_reset_all_emulated() 243 bio_set_dev(&bio, bdev); in blkdev_zone_reset_all() 279 if (bdev_read_only(bdev)) in blkdev_zone_mgmt() 305 return blkdev_zone_reset_all(bdev, gfp_mask); in blkdev_zone_mgmt() 310 bio_set_dev(bio, bdev); in blkdev_zone_mgmt() 356 q = bdev_get_queue(bdev); in blkdev_report_zones_ioctl() [all …]
|
/linux/drivers/bluetooth/ |
A D | btmtkuart.c | 435 if (!bdev->stp_dlen && bdev->stp_cursor >= 6) in mtk_stp_split() 440 bdev->stp_pad[bdev->stp_cursor] = *data; in mtk_stp_split() 447 if (!bdev->stp_dlen && bdev->stp_cursor >= 6) { in mtk_stp_split() 505 bdev->rx_skb = h4_recv_buf(bdev->hdev, bdev->rx_skb, p_h4, in btmtkuart_recv() 564 if (bdev->curr_speed != bdev->desired_speed) in btmtkuart_open() 722 bdev->curr_speed = bdev->desired_speed; in btmtkuart_change_baudrate() 935 bdev->pins_boot = pinctrl_lookup_state(bdev->pinctrl, in btmtkuart_parse_dt() 937 if (IS_ERR(bdev->pins_boot) && !bdev->boot) { in btmtkuart_parse_dt() 944 bdev->pins_runtime = pinctrl_lookup_state(bdev->pinctrl, in btmtkuart_parse_dt() 973 if (!bdev) in btmtkuart_probe() [all …]
|
A D | btmtksdio.c | 255 bdev->evt_skb = NULL; in mtk_hci_wmt_sync() 371 bdev->evt_skb = NULL; in btmtksdio_recv_event() 947 bdev = devm_kzalloc(&func->dev, sizeof(*bdev), GFP_KERNEL); in btmtksdio_probe() 948 if (!bdev) in btmtksdio_probe() 952 if (!bdev->data) in btmtksdio_probe() 956 bdev->func = func; in btmtksdio_probe() 968 bdev->hdev = hdev; in btmtksdio_probe() 1020 if (!bdev) in btmtksdio_remove() 1026 hdev = bdev->hdev; in btmtksdio_remove() 1042 if (!bdev) in btmtksdio_runtime_suspend() [all …]
|
A D | hci_bcm.c | 337 err = devm_request_irq(bdev->dev, bdev->irq, bcm_host_wake, in bcm_request_irq() 528 if (bdev) { in bcm_close() 530 devm_free_irq(bdev->dev, bdev->irq, bdev); in bcm_close() 730 if (bdev) { in bcm_dequeue() 748 if (!bdev->is_suspended && bdev->hu) { in bcm_suspend_device() 756 err = bdev->set_device_wakeup(bdev, false); in bcm_suspend_device() 758 if (bdev->is_suspended && bdev->hu) { in bcm_suspend_device() 778 err = bdev->set_device_wakeup(bdev, true); in bcm_resume_device() 788 if (bdev->is_suspended && bdev->hu) { in bcm_resume_device() 815 if (!bdev->hu) in bcm_suspend() [all …]
|
/linux/drivers/dma/qcom/ |
A D | bam_dma.c | 466 struct bam_device *bdev = bchan->bdev; in bam_reset_channel() local 491 struct bam_device *bdev = bchan->bdev; in bam_chan_init_hw() local 541 struct bam_device *bdev = bchan->bdev; in bam_alloc_chan() local 579 struct bam_device *bdev = bchan->bdev; in bam_free_chan() local 661 struct bam_device *bdev = bchan->bdev; in bam_prep_slave_sg() local 1209 if (bdev->ee >= bdev->num_ees) in bam_init() 1228 bchan->bdev = bdev; in bam_channel_init() 1317 bdev->channels = devm_kcalloc(bdev->dev, bdev->num_channels, in bam_dma_probe() 1337 bdev->common.dev = bdev->dev; in bam_dma_probe() 1364 bdev->common.dev = bdev->dev; in bam_dma_probe() [all …]
|
/linux/drivers/gpu/drm/ttm/ |
A D | ttm_device.c | 126 struct ttm_device *bdev; in ttm_global_swapout() local 150 spin_lock(&bdev->lru_lock); in ttm_device_swapout() 169 spin_unlock(&bdev->lru_lock); in ttm_device_swapout() 176 struct ttm_device *bdev = in ttm_device_delayed_workqueue() local 214 bdev->funcs = funcs; in ttm_device_init() 216 ttm_sys_man_init(bdev); in ttm_device_init() 224 bdev->dev_mapping = mapping; in ttm_device_init() 243 list_del(&bdev->device_list); in ttm_device_fini() 251 spin_lock(&bdev->lru_lock); in ttm_device_fini() 257 ttm_pool_fini(&bdev->pool); in ttm_device_fini() [all …]
|
A D | ttm_bo.c | 74 struct ttm_device *bdev = bo->bdev; in ttm_bo_move_to_pinned() local 84 struct ttm_device *bdev = bo->bdev; in ttm_bo_del_from_lru() local 104 struct ttm_device *bdev = bo->bdev; in ttm_bo_move_to_lru_tail() local 180 struct ttm_device *bdev = bo->bdev; in ttm_bo_handle_move_mem() local 371 spin_lock(&bdev->lru_lock); in ttm_bo_delayed_delete() 408 struct ttm_device *bdev = bo->bdev; in ttm_bo_release() local 521 struct ttm_device *bdev = bo->bdev; in ttm_bo_evict() local 783 struct ttm_device *bdev = bo->bdev; in ttm_bo_mem_force_space() local 818 struct ttm_device *bdev = bo->bdev; in ttm_bo_mem_space() local 974 bo->bdev = bdev; in ttm_bo_init_reserved() [all …]
|
/linux/drivers/s390/block/ |
A D | scm_blk.c | 181 struct scm_blk_dev *bdev = scmrq->bdev; in scm_request_prepare() local 230 scmrq->bdev = bdev; in scm_request_init() 239 struct scm_blk_dev *bdev = scmrq->bdev; in scm_request_requeue() local 252 struct scm_blk_dev *bdev = scmrq->bdev; in scm_request_finish() local 269 struct scm_blk_dev *bdev = scmrq->bdev; in scm_request_start() local 374 struct scm_blk_dev *bdev = scmrq->bdev; in scm_blk_handle_error() local 449 bdev->scmdev = scmdev; in scm_blk_dev_setup() 450 bdev->state = SCM_OPER; in scm_blk_dev_setup() 465 bdev->gendisk = blk_mq_alloc_disk(&bdev->tag_set, scmdev); in scm_blk_dev_setup() 470 rq = bdev->rq = bdev->gendisk->queue; in scm_blk_dev_setup() [all …]
|
A D | scm_drv.c | 19 struct scm_blk_dev *bdev = dev_get_drvdata(&scmdev->dev); in scm_notify() local 31 scm_blk_set_available(bdev); in scm_notify() 38 struct scm_blk_dev *bdev; in scm_probe() local 47 bdev = kzalloc(sizeof(*bdev), GFP_KERNEL); in scm_probe() 48 if (!bdev) in scm_probe() 51 dev_set_drvdata(&scmdev->dev, bdev); in scm_probe() 52 ret = scm_blk_dev_setup(bdev, scmdev); in scm_probe() 55 kfree(bdev); in scm_probe() 65 struct scm_blk_dev *bdev = dev_get_drvdata(&scmdev->dev); in scm_remove() local 67 scm_blk_dev_cleanup(bdev); in scm_remove() [all …]
|
A D | dasd_genhd.c | 111 struct block_device *bdev; in dasd_scan_partitions() local 115 if (IS_ERR(bdev)) { in dasd_scan_partitions() 118 PTR_ERR(bdev)); in dasd_scan_partitions() 139 block->bdev = bdev; in dasd_scan_partitions() 149 struct block_device *bdev; in dasd_destroy_partitions() local 155 bdev = block->bdev; in dasd_destroy_partitions() 156 block->bdev = NULL; in dasd_destroy_partitions() 158 mutex_lock(&bdev->bd_disk->open_mutex); in dasd_destroy_partitions() 159 bdev_disk_changed(bdev->bd_disk, true); in dasd_destroy_partitions() 160 mutex_unlock(&bdev->bd_disk->open_mutex); in dasd_destroy_partitions() [all …]
|
/linux/drivers/staging/media/atomisp/pci/hmm/ |
A D | hmm_bo.c | 76 bo->bdev = bdev; in __bo_init() 79 bo->start = bdev->start; in __bo_init() 281 struct hmm_bo_device *bdev = bo->bdev; in __bo_take_off_handling() local 326 bdev = bo->bdev; in __bo_merge() 361 bdev->size = pgnr_to_size(bdev->pgnr); in hmm_bo_device_init() 374 if (!bdev->bo_cache) { in hmm_bo_device_init() 387 ret = __bo_init(bdev, bo, bdev->pgnr); in hmm_bo_device_init() 452 struct hmm_bo_device *bdev = bo->bdev; in hmm_bo_release() local 547 isp_mmu_exit(&bdev->mmu); in hmm_bo_device_exit() 1109 bdev = bo->bdev; in hmm_bo_bind() [all …]
|
/linux/drivers/comedi/drivers/ |
A D | comedi_bond.c | 100 ret = comedi_dio_bitfield2(bdev->dev, bdev->subdev, in bonding_dio_insn_bits() 138 for (bdev = *devs++; chan >= bdev->nchans; bdev = *devs++) in bonding_dio_insn_config() 154 ret = comedi_dio_config(bdev->dev, bdev->subdev, chan, data[0]); in bonding_dio_insn_config() 157 ret = comedi_dio_get_config(bdev->dev, bdev->subdev, chan, in bonding_dio_insn_config() 226 bdev = kmalloc(sizeof(*bdev), GFP_KERNEL); in do_dev_config() 227 if (!bdev) in do_dev_config() 230 bdev->dev = d; in do_dev_config() 248 kfree(bdev); in do_dev_config() 258 bdev->minor, bdev->subdev); in do_dev_config() 326 if (!bdev) in bonding_detach() [all …]
|
/linux/drivers/input/misc/ |
A D | cobalt_btns.c | 41 status = ~readl(bdev->reg) >> 24; in handle_buttons() 56 bdev->count[i] = 0; in handle_buttons() 63 struct buttons_dev *bdev; in cobalt_buttons_probe() local 68 bdev = devm_kzalloc(&pdev->dev, sizeof(*bdev), GFP_KERNEL); in cobalt_buttons_probe() 69 if (!bdev) in cobalt_buttons_probe() 77 if (!bdev->reg) in cobalt_buttons_probe() 80 memcpy(bdev->keymap, cobalt_map, sizeof(bdev->keymap)); in cobalt_buttons_probe() 86 input_set_drvdata(input, bdev); in cobalt_buttons_probe() 92 input->keycode = bdev->keymap; in cobalt_buttons_probe() 93 input->keycodemax = ARRAY_SIZE(bdev->keymap); in cobalt_buttons_probe() [all …]
|
A D | sgi_btns.c | 64 input_report_key(input, bdev->keymap[i], 1); in handle_buttons() 70 input_report_key(input, bdev->keymap[i], 0); in handle_buttons() 73 bdev->count[i] = 0; in handle_buttons() 80 struct buttons_dev *bdev; in sgi_buttons_probe() local 84 bdev = devm_kzalloc(&pdev->dev, sizeof(*bdev), GFP_KERNEL); in sgi_buttons_probe() 85 if (!bdev) in sgi_buttons_probe() 92 memcpy(bdev->keymap, sgi_map, sizeof(bdev->keymap)); in sgi_buttons_probe() 94 input_set_drvdata(input, bdev); in sgi_buttons_probe() 100 input->keycode = bdev->keymap; in sgi_buttons_probe() 101 input->keycodemax = ARRAY_SIZE(bdev->keymap); in sgi_buttons_probe() [all …]
|
/linux/include/linux/ |
A D | blkdev.h | 880 return bdev->bd_partno; in bdev_is_partition() 971 return queue_io_min(bdev_get_queue(bdev)); in bdev_io_min() 981 return queue_io_opt(bdev_get_queue(bdev)); in bdev_io_opt() 1019 if (bdev_is_partition(bdev)) in bdev_alignment_offset() 1021 bdev->bd_start_sect); in bdev_alignment_offset() 1060 if (bdev_is_partition(bdev)) in bdev_discard_alignment() 1062 bdev->bd_start_sect); in bdev_discard_alignment() 1158 return 1 << bdev->bd_inode->i_blkbits; in block_size() 1325 int fsync_bdev(struct block_device *bdev); 1327 int freeze_bdev(struct block_device *bdev); [all …]
|
/linux/drivers/hid/ |
A D | hid-picolcd_backlight.c | 19 struct picolcd_data *data = bl_get_data(bdev); in picolcd_get_brightness() 25 struct picolcd_data *data = bl_get_data(bdev); in picolcd_set_brightness() 33 data->lcd_power = bdev->props.power; in picolcd_set_brightness() 56 struct backlight_device *bdev; in picolcd_init_backlight() local 71 if (IS_ERR(bdev)) { in picolcd_init_backlight() 73 return PTR_ERR(bdev); in picolcd_init_backlight() 75 bdev->props.brightness = 0xff; in picolcd_init_backlight() 77 data->backlight = bdev; in picolcd_init_backlight() 78 picolcd_set_brightness(bdev); in picolcd_init_backlight() 84 struct backlight_device *bdev = data->backlight; in picolcd_exit_backlight() local [all …]
|
/linux/drivers/input/keyboard/ |
A D | gpio_keys_polled.c | 93 memset(bdev->rel_axis_seen, 0, sizeof(bdev->rel_axis_seen)); in gpio_keys_polled_poll() 94 memset(bdev->abs_axis_seen, 0, sizeof(bdev->abs_axis_seen)); in gpio_keys_polled_poll() 128 pdata->enable(bdev->dev); in gpio_keys_polled_open() 139 pdata->disable(bdev->dev); in gpio_keys_polled_close() 249 bdev = devm_kzalloc(dev, struct_size(bdev, data, pdata->nbuttons), in gpio_keys_polled_probe() 251 if (!bdev) { in gpio_keys_polled_probe() 262 input_set_drvdata(input, bdev); in gpio_keys_polled_probe() 350 bdev->input = input; in gpio_keys_polled_probe() 351 bdev->dev = dev; in gpio_keys_polled_probe() 352 bdev->pdata = pdata; in gpio_keys_polled_probe() [all …]
|
/linux/fs/nfs/blocklayout/ |
A D | dev.c | 37 if (dev->bdev) in bl_free_device() 172 map->bdev = dev->bdev; in bl_map_simple() 247 if (IS_ERR(bdev)) { in bl_parse_simple() 250 return PTR_ERR(bdev); in bl_parse_simple() 252 d->bdev = bdev; in bl_parse_simple() 320 if (IS_ERR(bdev)) { in bl_open_udev_path() 326 return bdev; in bl_open_udev_path() 348 return bdev; in bl_open_dm_mpath_udev_path() 364 if (IS_ERR(bdev)) in bl_parse_scsi() 366 if (IS_ERR(bdev)) in bl_parse_scsi() [all …]
|
/linux/include/drm/ttm/ |
A D | ttm_device.h | 87 int (*ttm_tt_populate)(struct ttm_device *bdev, 98 void (*ttm_tt_unpopulate)(struct ttm_device *bdev, 110 void (*ttm_tt_destroy)(struct ttm_device *bdev, struct ttm_tt *ttm); 172 int (*io_mem_reserve)(struct ttm_device *bdev, 174 void (*io_mem_free)(struct ttm_device *bdev, 292 ttm_manager_type(struct ttm_device *bdev, int mem_type) in ttm_manager_type() argument 296 return bdev->man_drv[mem_type]; in ttm_manager_type() 299 static inline void ttm_set_driver_manager(struct ttm_device *bdev, int type, in ttm_set_driver_manager() argument 303 bdev->man_drv[type] = manager; in ttm_set_driver_manager() 310 void ttm_device_fini(struct ttm_device *bdev); [all …]
|
/linux/drivers/gpu/drm/radeon/ |
A D | radeon_ttm.c | 65 mman = container_of(bdev, struct radeon_mman, bdev); in radeon_get_rdev() 150 rdev = radeon_get_rdev(bo->bdev); in radeon_move_blit() 222 rdev = radeon_get_rdev(bo->bdev); in radeon_bo_move() 235 radeon_ttm_tt_unbind(bo->bdev, bo->ttm); in radeon_bo_move() 449 radeon_ttm_tt_pin_userptr(bdev, ttm); in radeon_ttm_backend_bind() 477 radeon_ttm_tt_unpin_userptr(bdev, ttm); in radeon_ttm_backend_unbind() 574 radeon_ttm_tt_unbind(bdev, ttm); in radeon_ttm_tt_unpopulate() 643 radeon_ttm_backend_unbind(bdev, ttm); in radeon_ttm_tt_unbind() 657 radeon_ttm_backend_destroy(bdev, ttm); in radeon_ttm_tt_destroy() 775 ttm_range_man_fini(&rdev->mman.bdev, TTM_PL_TT); in radeon_ttm_fini() [all …]
|
/linux/drivers/pci/controller/ |
A D | pcie-iproc-bcma.c | 29 struct bcma_device *bdev = container_of(pcie->dev, struct bcma_device, dev); in iproc_pcie_bcma_map_irq() local 31 return bcma_core_irq(bdev, 5); in iproc_pcie_bcma_map_irq() 34 static int iproc_pcie_bcma_probe(struct bcma_device *bdev) in iproc_pcie_bcma_probe() argument 36 struct device *dev = &bdev->dev; in iproc_pcie_bcma_probe() 50 pcie->base = bdev->io_addr; in iproc_pcie_bcma_probe() 56 pcie->base_addr = bdev->addr; in iproc_pcie_bcma_probe() 58 pcie->mem.start = bdev->addr_s[0]; in iproc_pcie_bcma_probe() 59 pcie->mem.end = bdev->addr_s[0] + SZ_128M - 1; in iproc_pcie_bcma_probe() 69 bcma_set_drvdata(bdev, pcie); in iproc_pcie_bcma_probe() 74 static void iproc_pcie_bcma_remove(struct bcma_device *bdev) in iproc_pcie_bcma_remove() argument [all …]
|