smd 29 drivers/clk/at91/clk-smd.c struct at91sam9x5_clk_smd *smd = to_at91sam9x5_clk_smd(hw); smd 33 drivers/clk/at91/clk-smd.c regmap_read(smd->regmap, AT91_PMC_SMD, &smdr); smd 63 drivers/clk/at91/clk-smd.c struct at91sam9x5_clk_smd *smd = to_at91sam9x5_clk_smd(hw); smd 68 drivers/clk/at91/clk-smd.c regmap_update_bits(smd->regmap, AT91_PMC_SMD, AT91_PMC_SMDS, smd 76 drivers/clk/at91/clk-smd.c struct at91sam9x5_clk_smd *smd = to_at91sam9x5_clk_smd(hw); smd 79 drivers/clk/at91/clk-smd.c regmap_read(smd->regmap, AT91_PMC_SMD, &smdr); smd 87 drivers/clk/at91/clk-smd.c struct at91sam9x5_clk_smd *smd = to_at91sam9x5_clk_smd(hw); smd 93 drivers/clk/at91/clk-smd.c regmap_update_bits(smd->regmap, AT91_PMC_SMD, AT91_PMC_SMD_DIV, smd 111 drivers/clk/at91/clk-smd.c struct at91sam9x5_clk_smd *smd; smd 116 drivers/clk/at91/clk-smd.c smd = kzalloc(sizeof(*smd), GFP_KERNEL); smd 117 drivers/clk/at91/clk-smd.c if (!smd) smd 126 drivers/clk/at91/clk-smd.c smd->hw.init = &init; smd 127 drivers/clk/at91/clk-smd.c smd->regmap = regmap; smd 129 drivers/clk/at91/clk-smd.c hw = &smd->hw; smd 130 drivers/clk/at91/clk-smd.c ret = clk_hw_register(NULL, &smd->hw); smd 132 drivers/clk/at91/clk-smd.c kfree(smd); smd 36 drivers/md/persistent-data/dm-space-map-disk.c struct sm_disk *smd = container_of(sm, struct sm_disk, sm); smd 38 drivers/md/persistent-data/dm-space-map-disk.c kfree(smd); smd 43 drivers/md/persistent-data/dm-space-map-disk.c struct sm_disk *smd = container_of(sm, struct sm_disk, sm); smd 45 drivers/md/persistent-data/dm-space-map-disk.c return sm_ll_extend(&smd->ll, extra_blocks); smd 50 drivers/md/persistent-data/dm-space-map-disk.c struct sm_disk *smd = container_of(sm, struct sm_disk, sm); smd 51 drivers/md/persistent-data/dm-space-map-disk.c *count = smd->old_ll.nr_blocks; smd 58 drivers/md/persistent-data/dm-space-map-disk.c struct sm_disk *smd = container_of(sm, struct sm_disk, sm); smd 59 drivers/md/persistent-data/dm-space-map-disk.c *count = (smd->old_ll.nr_blocks - smd->old_ll.nr_allocated) - smd->nr_allocated_this_transaction; smd 67 drivers/md/persistent-data/dm-space-map-disk.c struct sm_disk *smd = container_of(sm, struct sm_disk, sm); smd 68 drivers/md/persistent-data/dm-space-map-disk.c return sm_ll_lookup(&smd->ll, b, result); smd 92 drivers/md/persistent-data/dm-space-map-disk.c struct sm_disk *smd = container_of(sm, struct sm_disk, sm); smd 94 drivers/md/persistent-data/dm-space-map-disk.c r = sm_ll_insert(&smd->ll, b, count, &ev); smd 105 drivers/md/persistent-data/dm-space-map-disk.c smd->nr_allocated_this_transaction++; smd 113 drivers/md/persistent-data/dm-space-map-disk.c r = sm_ll_lookup(&smd->old_ll, b, &old_count); smd 118 drivers/md/persistent-data/dm-space-map-disk.c smd->nr_allocated_this_transaction--; smd 130 drivers/md/persistent-data/dm-space-map-disk.c struct sm_disk *smd = container_of(sm, struct sm_disk, sm); smd 132 drivers/md/persistent-data/dm-space-map-disk.c r = sm_ll_inc(&smd->ll, b, &ev); smd 138 drivers/md/persistent-data/dm-space-map-disk.c smd->nr_allocated_this_transaction++; smd 148 drivers/md/persistent-data/dm-space-map-disk.c struct sm_disk *smd = container_of(sm, struct sm_disk, sm); smd 150 drivers/md/persistent-data/dm-space-map-disk.c r = sm_ll_dec(&smd->ll, b, &ev); smd 156 drivers/md/persistent-data/dm-space-map-disk.c r = sm_ll_lookup(&smd->old_ll, b, &old_count); smd 158 drivers/md/persistent-data/dm-space-map-disk.c smd->nr_allocated_this_transaction--; smd 168 drivers/md/persistent-data/dm-space-map-disk.c struct sm_disk *smd = container_of(sm, struct sm_disk, sm); smd 173 drivers/md/persistent-data/dm-space-map-disk.c r = sm_ll_find_common_free_block(&smd->old_ll, &smd->ll, smd->begin, smd->ll.nr_blocks, b); smd 177 drivers/md/persistent-data/dm-space-map-disk.c smd->begin = *b + 1; smd 178 drivers/md/persistent-data/dm-space-map-disk.c r = sm_ll_inc(&smd->ll, *b, &ev); smd 181 drivers/md/persistent-data/dm-space-map-disk.c smd->nr_allocated_this_transaction++; smd 191 drivers/md/persistent-data/dm-space-map-disk.c struct sm_disk *smd = container_of(sm, struct sm_disk, sm); smd 197 drivers/md/persistent-data/dm-space-map-disk.c r = sm_ll_commit(&smd->ll); smd 201 drivers/md/persistent-data/dm-space-map-disk.c memcpy(&smd->old_ll, &smd->ll, sizeof(smd->old_ll)); smd 202 drivers/md/persistent-data/dm-space-map-disk.c smd->begin = 0; smd 203 drivers/md/persistent-data/dm-space-map-disk.c smd->nr_allocated_this_transaction = 0; smd 221 drivers/md/persistent-data/dm-space-map-disk.c struct sm_disk *smd = container_of(sm, struct sm_disk, sm); smd 224 drivers/md/persistent-data/dm-space-map-disk.c root_le.nr_blocks = cpu_to_le64(smd->ll.nr_blocks); smd 225 drivers/md/persistent-data/dm-space-map-disk.c root_le.nr_allocated = cpu_to_le64(smd->ll.nr_allocated); smd 226 drivers/md/persistent-data/dm-space-map-disk.c root_le.bitmap_root = cpu_to_le64(smd->ll.bitmap_root); smd 227 drivers/md/persistent-data/dm-space-map-disk.c root_le.ref_count_root = cpu_to_le64(smd->ll.ref_count_root); smd 260 drivers/md/persistent-data/dm-space-map-disk.c struct sm_disk *smd; smd 262 drivers/md/persistent-data/dm-space-map-disk.c smd = kmalloc(sizeof(*smd), GFP_KERNEL); smd 263 drivers/md/persistent-data/dm-space-map-disk.c if (!smd) smd 266 drivers/md/persistent-data/dm-space-map-disk.c smd->begin = 0; smd 267 drivers/md/persistent-data/dm-space-map-disk.c smd->nr_allocated_this_transaction = 0; smd 268 drivers/md/persistent-data/dm-space-map-disk.c memcpy(&smd->sm, &ops, sizeof(smd->sm)); smd 270 drivers/md/persistent-data/dm-space-map-disk.c r = sm_ll_new_disk(&smd->ll, tm); smd 274 drivers/md/persistent-data/dm-space-map-disk.c r = sm_ll_extend(&smd->ll, nr_blocks); smd 278 drivers/md/persistent-data/dm-space-map-disk.c r = sm_disk_commit(&smd->sm); smd 282 drivers/md/persistent-data/dm-space-map-disk.c return &smd->sm; smd 285 drivers/md/persistent-data/dm-space-map-disk.c kfree(smd); smd 294 drivers/md/persistent-data/dm-space-map-disk.c struct sm_disk *smd; smd 296 drivers/md/persistent-data/dm-space-map-disk.c smd = kmalloc(sizeof(*smd), GFP_KERNEL); smd 297 drivers/md/persistent-data/dm-space-map-disk.c if (!smd) smd 300 drivers/md/persistent-data/dm-space-map-disk.c smd->begin = 0; smd 301 drivers/md/persistent-data/dm-space-map-disk.c smd->nr_allocated_this_transaction = 0; smd 302 drivers/md/persistent-data/dm-space-map-disk.c memcpy(&smd->sm, &ops, sizeof(smd->sm)); smd 304 drivers/md/persistent-data/dm-space-map-disk.c r = sm_ll_open_disk(&smd->ll, tm, root_le, len); smd 308 drivers/md/persistent-data/dm-space-map-disk.c r = sm_disk_commit(&smd->sm); smd 312 drivers/md/persistent-data/dm-space-map-disk.c return &smd->sm; smd 315 drivers/md/persistent-data/dm-space-map-disk.c kfree(smd); smd 126 drivers/remoteproc/qcom_common.c struct qcom_rproc_subdev *smd = to_smd_subdev(subdev); smd 128 drivers/remoteproc/qcom_common.c smd->edge = qcom_smd_register_edge(smd->dev, smd->node); smd 130 drivers/remoteproc/qcom_common.c return PTR_ERR_OR_ZERO(smd->edge); smd 135 drivers/remoteproc/qcom_common.c struct qcom_rproc_subdev *smd = to_smd_subdev(subdev); smd 137 drivers/remoteproc/qcom_common.c qcom_smd_unregister_edge(smd->edge); smd 138 drivers/remoteproc/qcom_common.c smd->edge = NULL; smd 146 drivers/remoteproc/qcom_common.c void qcom_add_smd_subdev(struct rproc *rproc, struct qcom_rproc_subdev *smd) smd 150 drivers/remoteproc/qcom_common.c smd->node = of_get_child_by_name(dev->parent->of_node, "smd-edge"); smd 151 drivers/remoteproc/qcom_common.c if (!smd->node) smd 154 drivers/remoteproc/qcom_common.c smd->dev = dev; smd 155 drivers/remoteproc/qcom_common.c smd->subdev.start = smd_subdev_start; smd 156 drivers/remoteproc/qcom_common.c smd->subdev.stop = smd_subdev_stop; smd 158 drivers/remoteproc/qcom_common.c rproc_add_subdev(rproc, &smd->subdev); smd 167 drivers/remoteproc/qcom_common.c void qcom_remove_smd_subdev(struct rproc *rproc, struct qcom_rproc_subdev *smd) smd 169 drivers/remoteproc/qcom_common.c if (!smd->node) smd 172 drivers/remoteproc/qcom_common.c rproc_remove_subdev(rproc, &smd->subdev); smd 173 drivers/remoteproc/qcom_common.c of_node_put(smd->node); smd 38 drivers/remoteproc/qcom_common.h void qcom_add_smd_subdev(struct rproc *rproc, struct qcom_rproc_subdev *smd); smd 39 drivers/remoteproc/qcom_common.h void qcom_remove_smd_subdev(struct rproc *rproc, struct qcom_rproc_subdev *smd);