/linux/block/ |
H A D | bdev.c | 38 struct block_device bdev; member 47 static inline struct inode *BD_INODE(struct block_device *bdev) in BD_INODE() argument 49 return &container_of(bdev, struct bdev_inode, bdev)->vfs_inode; in BD_INODE() 54 return &BDEV_I(inode)->bdev; in I_BDEV() 64 static void bdev_write_inode(struct block_device *bdev) in bdev_write_inode() argument 66 struct inode *inode = BD_INODE(bdev); in bdev_write_inode() 76 bdev, ret); in bdev_write_inode() 83 static void kill_bdev(struct block_device *bdev) in kill_bdev() argument 85 struct address_space *mapping = bdev->bd_mapping; in kill_bdev() 95 void invalidate_bdev(struct block_device *bdev) in invalidate_bdev() argument [all …]
|
H A D | ioctl.c | 19 static int blkpg_do_ioctl(struct block_device *bdev, in blkpg_do_ioctl() argument 22 struct gendisk *disk = bdev->bd_disk; in blkpg_do_ioctl() 30 if (bdev_is_partition(bdev)) in blkpg_do_ioctl() 42 if (!IS_ALIGNED(p.start | p.length, bdev_logical_block_size(bdev))) in blkpg_do_ioctl() 65 static int blkpg_ioctl(struct block_device *bdev, in blkpg_ioctl() argument 74 return blkpg_do_ioctl(bdev, udata, op); in blkpg_ioctl() 85 static int compat_blkpg_ioctl(struct block_device *bdev, in compat_blkpg_ioctl() argument 94 return blkpg_do_ioctl(bdev, compat_ptr(udata), op); in compat_blkpg_ioctl() 103 static int blk_validate_byte_range(struct block_device *bdev, in blk_validate_byte_range() argument 106 unsigned int bs_mask = bdev_logical_block_size(bdev) - 1; in blk_validate_byte_range() [all …]
|
H A D | blk-lib.c | 13 static sector_t bio_discard_limit(struct block_device *bdev, sector_t sector) in bio_discard_limit() argument 15 unsigned int discard_granularity = bdev_discard_granularity(bdev); in bio_discard_limit() 18 if (bdev_is_partition(bdev)) in bio_discard_limit() 19 sector += bdev->bd_start_sect; in bio_discard_limit() 38 struct bio *blk_alloc_discard_bio(struct block_device *bdev, in blk_alloc_discard_bio() argument 41 sector_t bio_sects = min(*nr_sects, bio_discard_limit(bdev, *sector)); in blk_alloc_discard_bio() 47 bio = bio_alloc(bdev, 0, REQ_OP_DISCARD, gfp_mask); in blk_alloc_discard_bio() 63 int __blkdev_issue_discard(struct block_device *bdev, sector_t sector, in __blkdev_issue_discard() argument 68 while ((bio = blk_alloc_discard_bio(bdev, §or, &nr_sects, in __blkdev_issue_discard() 85 int blkdev_issue_discard(struct block_device *bdev, sector_t sector, in blkdev_issue_discard() argument [all …]
|
H A D | holder.c | 13 static struct bd_holder_disk *bd_find_holder_disk(struct block_device *bdev, in bd_find_holder_disk() argument 19 if (holder->holder_dir == bdev->bd_holder_dir) in bd_find_holder_disk() 62 int bd_link_disk_holder(struct block_device *bdev, struct gendisk *disk) in bd_link_disk_holder() argument 70 if (bdev->bd_disk == disk) in bd_link_disk_holder() 77 mutex_lock(&bdev->bd_disk->open_mutex); in bd_link_disk_holder() 78 if (!disk_live(bdev->bd_disk)) { in bd_link_disk_holder() 79 mutex_unlock(&bdev->bd_disk->open_mutex); in bd_link_disk_holder() 82 kobject_get(bdev->bd_holder_dir); in bd_link_disk_holder() 83 mutex_unlock(&bdev->bd_disk->open_mutex); in bd_link_disk_holder() 86 WARN_ON_ONCE(!bdev->bd_holder); in bd_link_disk_holder() [all …]
|
H A D | fops.c | 38 static bool blkdev_dio_invalid(struct block_device *bdev, struct kiocb *iocb, in blkdev_dio_invalid() argument 41 return iocb->ki_pos & (bdev_logical_block_size(bdev) - 1) || in blkdev_dio_invalid() 42 !bdev_iter_is_aligned(bdev, iter); in blkdev_dio_invalid() 48 struct iov_iter *iter, struct block_device *bdev, in __blkdev_direct_IO_simple() argument 67 bio_init(&bio, bdev, vecs, nr_pages, REQ_OP_READ); in __blkdev_direct_IO_simple() 71 bio_init(&bio, bdev, vecs, nr_pages, dio_bio_write_op(iocb)); in __blkdev_direct_IO_simple() 164 struct block_device *bdev, unsigned int nr_pages) in __blkdev_direct_IO() argument 176 bio = bio_alloc_bioset(bdev, nr_pages, opf, GFP_KERNEL, in __blkdev_direct_IO() 249 bio = bio_alloc(bdev, nr_pages, opf, GFP_KERNEL); in __blkdev_direct_IO() 301 struct block_device *bdev, in __blkdev_direct_IO_async() argument [all …]
|
/linux/drivers/bluetooth/ |
H A D | btmtksdio.c | 149 struct btmtksdio_dev *bdev = hci_get_drvdata(hdev); in mtk_hci_wmt_sync() local 174 set_bit(BTMTKSDIO_TX_WAIT_VND_EVT, &bdev->tx_state); in mtk_hci_wmt_sync() 178 clear_bit(BTMTKSDIO_TX_WAIT_VND_EVT, &bdev->tx_state); in mtk_hci_wmt_sync() 191 err = wait_on_bit_timeout(&bdev->tx_state, BTMTKSDIO_TX_WAIT_VND_EVT, in mtk_hci_wmt_sync() 195 clear_bit(BTMTKSDIO_TX_WAIT_VND_EVT, &bdev->tx_state); in mtk_hci_wmt_sync() 201 clear_bit(BTMTKSDIO_TX_WAIT_VND_EVT, &bdev->tx_state); in mtk_hci_wmt_sync() 207 wmt_evt = (struct btmtk_hci_wmt_evt *)bdev->evt_skb->data; in mtk_hci_wmt_sync() 250 kfree_skb(bdev->evt_skb); in mtk_hci_wmt_sync() 251 bdev->evt_skb = NULL; in mtk_hci_wmt_sync() 258 static int btmtksdio_tx_packet(struct btmtksdio_dev *bdev, in btmtksdio_tx_packet() argument [all …]
|
H A D | hci_bcm.c | 324 struct bcm_device *bdev = data; in bcm_host_wake() local 326 bt_dev_dbg(bdev, "Host wake IRQ"); in bcm_host_wake() 328 pm_runtime_get(bdev->dev); in bcm_host_wake() 329 pm_runtime_mark_last_busy(bdev->dev); in bcm_host_wake() 330 pm_runtime_put_autosuspend(bdev->dev); in bcm_host_wake() 337 struct bcm_device *bdev = bcm->dev; in bcm_request_irq() local 341 if (!bcm_device_exists(bdev)) { in bcm_request_irq() 346 if (bdev->irq <= 0) { in bcm_request_irq() 351 err = devm_request_irq(bdev->dev, bdev->irq, bcm_host_wake, in bcm_request_irq() 352 bdev->irq_active_low ? IRQF_TRIGGER_FALLING : in bcm_request_irq() [all …]
|
/linux/drivers/gpu/drm/ttm/ |
H A D | ttm_device.c | 133 struct ttm_device *bdev; in ttm_global_swapout() local 137 list_for_each_entry(bdev, &glob->device_list, device_list) { in ttm_global_swapout() 138 ret = ttm_device_swapout(bdev, ctx, gfp_flags); in ttm_global_swapout() 140 list_move_tail(&bdev->device_list, &glob->device_list); in ttm_global_swapout() 148 int ttm_device_swapout(struct ttm_device *bdev, struct ttm_operation_ctx *ctx, in ttm_device_swapout() argument 156 man = ttm_manager_type(bdev, i); in ttm_device_swapout() 160 lret = ttm_bo_swapout(bdev, ctx, man, gfp_flags, 1); in ttm_device_swapout() 184 int ttm_device_init(struct ttm_device *bdev, const struct ttm_device_funcs *funcs, in ttm_device_init() argument 199 bdev->wq = alloc_workqueue("ttm", in ttm_device_init() 201 if (!bdev->wq) { in ttm_device_init() [all …]
|
H A D | ttm_bo.c | 60 man = ttm_manager_type(bo->bdev, mem_type); in ttm_bo_mem_space_debug() 105 spin_lock(&bo->bdev->lru_lock); in ttm_bo_set_bulk_move() 111 spin_unlock(&bo->bdev->lru_lock); in ttm_bo_set_bulk_move() 120 struct ttm_device *bdev = bo->bdev; in ttm_bo_handle_move_mem() local 124 old_use_tt = !bo->resource || ttm_manager_type(bdev, bo->resource->mem_type)->use_tt; in ttm_bo_handle_move_mem() 125 new_use_tt = ttm_manager_type(bdev, mem->mem_type)->use_tt; in ttm_bo_handle_move_mem() 152 ret = bdev->funcs->move(bo, evict, ctx, mem, hop); in ttm_bo_handle_move_mem() 179 if (bo->bdev->funcs->delete_mem_notify) in ttm_bo_cleanup_memtype_use() 180 bo->bdev->funcs->delete_mem_notify(bo); in ttm_bo_cleanup_memtype_use() 205 spin_lock(&bo->bdev->lru_lock); in ttm_bo_individualize_resv() [all …]
|
H A D | ttm_resource.c | 41 lockdep_assert_held(&cursor->man->bdev->lru_lock); in ttm_resource_cursor_clear_bulk() 53 lockdep_assert_held(&cursor->man->bdev->lru_lock); in ttm_resource_cursor_move_bulk_tail() 94 lockdep_assert_held(&cursor->man->bdev->lru_lock); in ttm_resource_cursor_fini() 120 void ttm_lru_bulk_move_fini(struct ttm_device *bdev, in ttm_lru_bulk_move_fini() argument 123 spin_lock(&bdev->lru_lock); in ttm_lru_bulk_move_fini() 125 spin_unlock(&bdev->lru_lock); in ttm_lru_bulk_move_fini() 150 lockdep_assert_held(&pos->first->bo->bdev->lru_lock); in ttm_lru_bulk_move_tail() 154 man = ttm_manager_type(pos->first->bo->bdev, i); in ttm_lru_bulk_move_tail() 274 struct ttm_device *bdev = bo->bdev; in ttm_resource_move_to_lru_tail() local 276 lockdep_assert_held(&bo->bdev->lru_lock); in ttm_resource_move_to_lru_tail() [all …]
|
H A D | ttm_bo_util.c | 45 int ttm_mem_io_reserve(struct ttm_device *bdev, in ttm_mem_io_reserve() argument 52 if (!bdev->funcs->io_mem_reserve) in ttm_mem_io_reserve() 55 return bdev->funcs->io_mem_reserve(bdev, mem); in ttm_mem_io_reserve() 58 void ttm_mem_io_free(struct ttm_device *bdev, in ttm_mem_io_free() argument 67 if (bdev->funcs->io_mem_free) in ttm_mem_io_free() 68 bdev->funcs->io_mem_free(bdev, mem); in ttm_mem_io_free() 146 struct ttm_device *bdev = bo->bdev; in ttm_bo_move_memcpy() local 148 ttm_manager_type(bo->bdev, dst_mem->mem_type); in ttm_bo_move_memcpy() 163 src_man = ttm_manager_type(bdev, src_mem->mem_type); in ttm_bo_move_memcpy() 171 dst_iter = ttm_kmap_iter_linear_io_init(&_dst_iter.io, bdev, dst_mem); in ttm_bo_move_memcpy() [all …]
|
/linux/drivers/s390/block/ |
H A D | scm_blk.c | 146 static bool scm_permit_request(struct scm_blk_dev *bdev, struct request *req) in scm_permit_request() argument 148 return rq_data_dir(req) != WRITE || bdev->state != SCM_WR_PROHIBIT; in scm_permit_request() 181 struct scm_blk_dev *bdev = scmrq->bdev; in scm_request_prepare() local 182 struct scm_device *scmdev = bdev->gendisk->private_data; in scm_request_prepare() 218 static inline void scm_request_init(struct scm_blk_dev *bdev, in scm_request_init() argument 227 aobrq->scmdev = bdev->scmdev; in scm_request_init() 230 scmrq->bdev = bdev; in scm_request_init() 239 struct scm_blk_dev *bdev = scmrq->bdev; in scm_request_requeue() local 245 atomic_dec(&bdev->queued_reqs); in scm_request_requeue() 247 blk_mq_kick_requeue_list(bdev->rq); in scm_request_requeue() [all …]
|
H 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 …]
|
/linux/drivers/comedi/drivers/ |
H A D | comedi_bond.c | 81 struct bonded_device *bdev = *devs++; in bonding_dio_insn_bits() local 83 if (base_chan < bdev->nchans) { in bonding_dio_insn_bits() 92 b_chans = bdev->nchans - base_chan; in bonding_dio_insn_bits() 100 ret = comedi_dio_bitfield2(bdev->dev, bdev->subdev, in bonding_dio_insn_bits() 117 base_chan -= bdev->nchans; in bonding_dio_insn_bits() 131 struct bonded_device *bdev; in bonding_dio_insn_config() local 138 for (bdev = *devs++; chan >= bdev->nchans; bdev = *devs++) in bonding_dio_insn_config() 139 chan -= bdev->nchans; 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() [all …]
|
/linux/drivers/input/misc/ |
H A D | cobalt_btns.c | 37 struct buttons_dev *bdev = input_get_drvdata(input); in handle_buttons() local 41 status = ~readl(bdev->reg) >> 24; in handle_buttons() 43 for (i = 0; i < ARRAY_SIZE(bdev->keymap); i++) { in handle_buttons() 45 if (++bdev->count[i] == BUTTONS_COUNT_THRESHOLD) { in handle_buttons() 47 input_report_key(input, bdev->keymap[i], 1); in handle_buttons() 51 if (bdev->count[i] >= BUTTONS_COUNT_THRESHOLD) { in handle_buttons() 53 input_report_key(input, bdev->keymap[i], 0); 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() [all …]
|
H A D | sgi_btns.c | 54 struct buttons_dev *bdev = input_get_drvdata(input); in handle_buttons() local 60 for (i = 0; i < ARRAY_SIZE(bdev->keymap); i++) { in handle_buttons() 62 if (++bdev->count[i] == BUTTONS_COUNT_THRESHOLD) { in handle_buttons() 64 input_report_key(input, bdev->keymap[i], 1); in handle_buttons() 68 if (bdev->count[i] >= BUTTONS_COUNT_THRESHOLD) { 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() [all …]
|
/linux/drivers/hid/ |
H A D | hid-picolcd_backlight.c | 16 static int picolcd_get_brightness(struct backlight_device *bdev) in picolcd_get_brightness() argument 18 struct picolcd_data *data = bl_get_data(bdev); in picolcd_get_brightness() 22 static int picolcd_set_brightness(struct backlight_device *bdev) in picolcd_set_brightness() argument 24 struct picolcd_data *data = bl_get_data(bdev); in picolcd_set_brightness() 31 data->lcd_brightness = bdev->props.brightness & 0x0ff; in picolcd_set_brightness() 32 data->lcd_power = bdev->props.power; in picolcd_set_brightness() 50 struct backlight_device *bdev; in picolcd_init_backlight() local 63 bdev = backlight_device_register(dev_name(dev), dev, data, in picolcd_init_backlight() 65 if (IS_ERR(bdev)) { in picolcd_init_backlight() 67 return PTR_ERR(bdev); in picolcd_init_backlight() [all …]
|
/linux/drivers/input/keyboard/ |
H A D | gpio_keys_polled.c | 48 struct gpio_keys_polled_dev *bdev = input_get_drvdata(input); in gpio_keys_button_event() local 54 __set_bit(button->code, bdev->rel_axis_seen); in gpio_keys_button_event() 59 __set_bit(button->code, bdev->abs_axis_seen); in gpio_keys_button_event() 89 struct gpio_keys_polled_dev *bdev = input_get_drvdata(input); in gpio_keys_polled_poll() local 90 const struct gpio_keys_platform_data *pdata = bdev->pdata; in gpio_keys_polled_poll() 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() 97 struct gpio_keys_button_data *bdata = &bdev->data[i]; in gpio_keys_polled_poll() 110 if (!test_bit(i, bdev->rel_axis_seen)) in gpio_keys_polled_poll() 115 if (!test_bit(i, bdev->abs_axis_seen)) in gpio_keys_polled_poll() [all …]
|
/linux/drivers/nvme/host/ |
H A D | pr.c | 52 static int nvme_send_ns_head_pr_command(struct block_device *bdev, in nvme_send_ns_head_pr_command() argument 55 struct nvme_ns_head *head = bdev->bd_disk->private_data; in nvme_send_ns_head_pr_command() 97 static int __nvme_send_pr_command(struct block_device *bdev, u32 cdw10, in __nvme_send_pr_command() argument 106 if (nvme_disk_is_ns_head(bdev->bd_disk)) in __nvme_send_pr_command() 107 return nvme_send_ns_head_pr_command(bdev, &c, data, data_len); in __nvme_send_pr_command() 108 return nvme_send_ns_pr_command(bdev->bd_disk->private_data, &c, in __nvme_send_pr_command() 112 static int nvme_send_pr_command(struct block_device *bdev, u32 cdw10, u32 cdw11, in nvme_send_pr_command() argument 117 ret = __nvme_send_pr_command(bdev, cdw10, cdw11, op, data, data_len); in nvme_send_pr_command() 121 static int nvme_pr_register(struct block_device *bdev, u64 old_key, u64 new_key, in nvme_pr_register() argument 138 return nvme_send_pr_command(bdev, cdw10, 0, nvme_cmd_resv_register, in nvme_pr_register() [all …]
|
/linux/drivers/pci/controller/ |
H A D | pcie-iproc-bcma.c | 29 struct bcma_device *bdev = container_of(pcie->dev, struct bcma_device, dev); in iproc_bcma_pcie_map_irq() local 31 return bcma_core_irq(bdev, 5); in iproc_bcma_pcie_map_irq() 34 static int iproc_bcma_pcie_probe(struct bcma_device *bdev) in iproc_bcma_pcie_probe() argument 36 struct device *dev = &bdev->dev; in iproc_bcma_pcie_probe() 50 pcie->base = bdev->io_addr; in iproc_bcma_pcie_probe() 56 pcie->base_addr = bdev->addr; in iproc_bcma_pcie_probe() 58 pcie->mem.start = bdev->addr_s[0]; in iproc_bcma_pcie_probe() 59 pcie->mem.end = bdev->addr_s[0] + SZ_128M - 1; in iproc_bcma_pcie_probe() 69 bcma_set_drvdata(bdev, pcie); in iproc_bcma_pcie_probe() 74 static void iproc_bcma_pcie_remove(struct bcma_device *bdev) in iproc_bcma_pcie_remove() argument [all …]
|
/linux/drivers/gpu/drm/ttm/tests/ |
H A D | ttm_mock_manager.c | 93 int ttm_mock_manager_init(struct ttm_device *bdev, u32 mem_type, u32 size) in ttm_mock_manager_init() argument 117 ttm_resource_manager_init(base, bdev, size); in ttm_mock_manager_init() 118 ttm_set_driver_manager(bdev, mem_type, base); in ttm_mock_manager_init() 125 void ttm_mock_manager_fini(struct ttm_device *bdev, u32 mem_type) in ttm_mock_manager_fini() argument 131 man = ttm_manager_type(bdev, mem_type); in ttm_mock_manager_fini() 134 err = ttm_resource_manager_evict_all(bdev, man); in ttm_mock_manager_fini() 144 ttm_set_driver_manager(bdev, mem_type, NULL); in ttm_mock_manager_fini() 189 int ttm_bad_manager_init(struct ttm_device *bdev, u32 mem_type, u32 size) in ttm_bad_manager_init() argument 199 ttm_resource_manager_init(man, bdev, size); in ttm_bad_manager_init() 200 ttm_set_driver_manager(bdev, mem_type, man); in ttm_bad_manager_init() [all …]
|
/linux/drivers/gpu/drm/loongson/ |
H A D | lsdc_ttm.c | 86 static void lsdc_ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *tt) in lsdc_ttm_tt_destroy() argument 111 static int lsdc_ttm_tt_populate(struct ttm_device *bdev, in lsdc_ttm_tt_populate() argument 125 return ttm_pool_alloc(&bdev->pool, ttm, ctx); in lsdc_ttm_tt_populate() 128 static void lsdc_ttm_tt_unpopulate(struct ttm_device *bdev, in lsdc_ttm_tt_unpopulate() argument 136 return ttm_pool_free(&bdev->pool, ttm); in lsdc_ttm_tt_unpopulate() 219 static int lsdc_bo_reserve_io_mem(struct ttm_device *bdev, in lsdc_bo_reserve_io_mem() argument 222 struct lsdc_device *ldev = tdev_to_ldev(bdev); in lsdc_bo_reserve_io_mem() 290 struct lsdc_device *ldev = tdev_to_ldev(tbo->bdev); in lsdc_bo_pin() 325 struct lsdc_device *ldev = tdev_to_ldev(tbo->bdev); in lsdc_bo_unpin() 405 struct ttm_device *bdev = &ldev->bdev; in lsdc_bo_evict_vram() local [all …]
|
/linux/drivers/nvme/target/ |
H A D | io-cmd-bdev.c | 13 void nvmet_bdev_set_limits(struct block_device *bdev, struct nvme_id_ns *id) in nvmet_bdev_set_limits() argument 16 const __le16 lpp0b = to0based(bdev_physical_block_size(bdev) / in nvmet_bdev_set_limits() 17 bdev_logical_block_size(bdev)); in nvmet_bdev_set_limits() 43 id->npdg = to0based(bdev_discard_granularity(bdev) / in nvmet_bdev_set_limits() 44 bdev_logical_block_size(bdev)); in nvmet_bdev_set_limits() 48 id->nows = to0based(bdev_io_opt(bdev) / bdev_logical_block_size(bdev)); in nvmet_bdev_set_limits() 55 ns->bdev = NULL; in nvmet_bdev_ns_disable() 62 struct blk_integrity *bi = bdev_get_integrity(ns->bdev); in nvmet_bdev_ns_enable_integrity() 101 ns->bdev = file_bdev(ns->bdev_file); in nvmet_bdev_ns_enable() 102 ns->size = bdev_nr_bytes(ns->bdev); in nvmet_bdev_ns_enable() [all …]
|
/linux/drivers/gpu/drm/qxl/ |
H A D | qxl_ttm.c | 40 static struct qxl_device *qxl_get_qdev(struct ttm_device *bdev) in qxl_get_qdev() argument 45 mman = container_of(bdev, struct qxl_mman, bdev); in qxl_get_qdev() 71 int qxl_ttm_io_mem_reserve(struct ttm_device *bdev, in qxl_ttm_io_mem_reserve() argument 74 struct qxl_device *qdev = qxl_get_qdev(bdev); in qxl_ttm_io_mem_reserve() 100 static void qxl_ttm_backend_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in qxl_ttm_backend_destroy() argument 187 return ttm_range_man_init(&qdev->mman.bdev, type, false, size); in qxl_ttm_init_mem_type() 196 r = ttm_device_init(&qdev->mman.bdev, &qxl_bo_driver, NULL, in qxl_ttm_init() 228 ttm_range_man_fini(&qdev->mman.bdev, TTM_PL_VRAM); in qxl_ttm_fini() 229 ttm_range_man_fini(&qdev->mman.bdev, TTM_PL_PRIV); in qxl_ttm_fini() 230 ttm_device_fini(&qdev->mman.bdev); in qxl_ttm_fini() [all …]
|
/linux/include/linux/ |
H A D | pr.h | 20 int (*pr_register)(struct block_device *bdev, u64 old_key, u64 new_key, 22 int (*pr_reserve)(struct block_device *bdev, u64 key, 24 int (*pr_release)(struct block_device *bdev, u64 key, 26 int (*pr_preempt)(struct block_device *bdev, u64 old_key, u64 new_key, 28 int (*pr_clear)(struct block_device *bdev, u64 key); 38 int (*pr_read_keys)(struct block_device *bdev, 40 int (*pr_read_reservation)(struct block_device *bdev,
|