Lines Matching refs:ret
111 int ret = 0, pos = 0; in blk_mq_hw_sysfs_cpus_show() local
115 ret = snprintf(pos + page, size - pos, "%u", i); in blk_mq_hw_sysfs_cpus_show()
117 ret = snprintf(pos + page, size - pos, ", %u", i); in blk_mq_hw_sysfs_cpus_show()
119 if (ret >= size - pos) in blk_mq_hw_sysfs_cpus_show()
123 pos += ret; in blk_mq_hw_sysfs_cpus_show()
126 ret = snprintf(pos + page, size + 1 - pos, "\n"); in blk_mq_hw_sysfs_cpus_show()
127 return pos + ret; in blk_mq_hw_sysfs_cpus_show()
188 int i, j, ret; in blk_mq_register_hctx() local
193 ret = kobject_add(&hctx->kobj, q->mq_kobj, "%u", hctx->queue_num); in blk_mq_register_hctx()
194 if (ret) in blk_mq_register_hctx()
195 return ret; in blk_mq_register_hctx()
198 ret = kobject_add(&ctx->kobj, &hctx->kobj, "cpu%u", ctx->cpu); in blk_mq_register_hctx()
199 if (ret) in blk_mq_register_hctx()
210 return ret; in blk_mq_register_hctx()
250 int ret; in blk_mq_sysfs_register() local
254 ret = kobject_add(q->mq_kobj, &disk_to_dev(disk)->kobj, "mq"); in blk_mq_sysfs_register()
255 if (ret < 0) in blk_mq_sysfs_register()
261 ret = blk_mq_register_hctx(hctx); in blk_mq_sysfs_register()
262 if (ret) in blk_mq_sysfs_register()
269 return ret; in blk_mq_sysfs_register()
279 return ret; in blk_mq_sysfs_register()
319 int ret = 0; in blk_mq_sysfs_register_hctxs() local
326 ret = blk_mq_register_hctx(hctx); in blk_mq_sysfs_register_hctxs()
327 if (ret) in blk_mq_sysfs_register_hctxs()
334 return ret; in blk_mq_sysfs_register_hctxs()