Home
last modified time | relevance | path

Searched refs:budget_map (Results 1 – 6 of 6) sorted by relevance

/openbmc/linux/drivers/scsi/
H A Dscsi_scan.c221 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()
1093 WARN_ON_ONCE(sdev->max_queue_depth > sdev->budget_map.depth); in scsi_add_lun()
H A Dscsi_lib.c301 sbitmap_put(&sdev->budget_map, cmd->budget_token); in scsi_device_unbusy()
1253 token = sbitmap_get(&sdev->budget_map); in scsi_dev_queue_ready()
1273 sbitmap_put(&sdev->budget_map, token); in scsi_dev_queue_ready()
1651 sbitmap_put(&sdev->budget_map, budget_token); in scsi_mq_put_budget()
H A Dscsi.c229 sbitmap_resize(&sdev->budget_map, sdev->queue_depth); in scsi_change_queue_depth()
H A Dscsi_sysfs.c480 sbitmap_free(&sdev->budget_map); in scsi_device_dev_release()
/openbmc/linux/include/scsi/
H A Dscsi_device.h111 struct sbitmap budget_map; member
635 return sbitmap_weight(&sdev->budget_map); in scsi_device_busy()
/openbmc/linux/drivers/ufs/core/
H A Dufshcd.c1143 pending += sbitmap_weight(&sdev->budget_map); in ufshcd_pending_cmds()