Searched refs:budget_map (Results 1 – 6 of 6) sorted by relevance
221 bool need_alloc = !sdev->budget_map.map; in scsi_realloc_sdev_budget_map()232 if (!need_alloc && new_shift != sdev->budget_map.shift) in scsi_realloc_sdev_budget_map()244 sb_backup = sdev->budget_map; in scsi_realloc_sdev_budget_map()246 ret = sbitmap_init_node(&sdev->budget_map, in scsi_realloc_sdev_budget_map()251 sbitmap_resize(&sdev->budget_map, depth); in scsi_realloc_sdev_budget_map()255 sdev->budget_map = sb_backup; in scsi_realloc_sdev_budget_map()1087 WARN_ON_ONCE(sdev->max_queue_depth > sdev->budget_map.depth); in scsi_add_lun()
301 sbitmap_put(&sdev->budget_map, cmd->budget_token); in scsi_device_unbusy()1257 token = sbitmap_get(&sdev->budget_map); in scsi_dev_queue_ready()1277 sbitmap_put(&sdev->budget_map, token); in scsi_dev_queue_ready()1656 sbitmap_put(&sdev->budget_map, budget_token); in scsi_mq_put_budget()
229 sbitmap_resize(&sdev->budget_map, sdev->queue_depth); in scsi_change_queue_depth()
483 sbitmap_free(&sdev->budget_map); in scsi_device_dev_release_usercontext()
115 struct sbitmap budget_map; member612 return sbitmap_weight(&sdev->budget_map); in scsi_device_busy()
1116 pending += sbitmap_weight(&sdev->budget_map); in ufshcd_pending_cmds()