| /linux/drivers/md/persistent-data/ |
| H A D | dm-space-map.h | 20 void (*destroy)(struct dm_space_map *sm); 25 int (*extend)(struct dm_space_map *sm, dm_block_t extra_blocks); 31 int (*get_nr_blocks)(struct dm_space_map *sm, dm_block_t *count); 41 int (*get_nr_free)(struct dm_space_map *sm, dm_block_t *count); 43 int (*get_count)(struct dm_space_map *sm, dm_block_t b, uint32_t *result); 44 int (*count_is_more_than_one)(struct dm_space_map *sm, dm_block_t b, 46 int (*set_count)(struct dm_space_map *sm, dm_block_t b, uint32_t count); 48 int (*commit)(struct dm_space_map *sm); 50 int (*inc_blocks)(struct dm_space_map *sm, dm_block_t b, dm_block_t e); 51 int (*dec_blocks)(struct dm_space_map *sm, dm_block_t b, dm_block_t e); [all …]
|
| H A D | dm-space-map-disk.c | 26 struct dm_space_map sm; member 35 static void sm_disk_destroy(struct dm_space_map *sm) in sm_disk_destroy() argument 37 struct sm_disk *smd = container_of(sm, struct sm_disk, sm); in sm_disk_destroy() 42 static int sm_disk_extend(struct dm_space_map *sm, dm_block_t extra_blocks) in sm_disk_extend() argument 44 struct sm_disk *smd = container_of(sm, struct sm_disk, sm); in sm_disk_extend() 49 static int sm_disk_get_nr_blocks(struct dm_space_map *sm, dm_block_t *count) in sm_disk_get_nr_blocks() argument 51 struct sm_disk *smd = container_of(sm, struct sm_disk, sm); in sm_disk_get_nr_blocks() 58 static int sm_disk_get_nr_free(struct dm_space_map *sm, dm_block_t *count) in sm_disk_get_nr_free() argument 60 struct sm_disk *smd = container_of(sm, struct sm_disk, sm); in sm_disk_get_nr_free() 67 static int sm_disk_get_count(struct dm_space_map *sm, dm_block_t b, in sm_disk_get_count() argument [all …]
|
| H A D | dm-space-map-metadata.c | 169 struct dm_space_map sm; member 276 static void sm_metadata_destroy(struct dm_space_map *sm) in sm_metadata_destroy() argument 278 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_destroy() 283 static int sm_metadata_get_nr_blocks(struct dm_space_map *sm, dm_block_t *count) in sm_metadata_get_nr_blocks() argument 285 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_get_nr_blocks() 292 static int sm_metadata_get_nr_free(struct dm_space_map *sm, dm_block_t *count) in sm_metadata_get_nr_free() argument 294 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_get_nr_free() 302 static int sm_metadata_get_count(struct dm_space_map *sm, dm_block_t b, in sm_metadata_get_count() argument 307 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_get_count() 342 static int sm_metadata_count_is_more_than_one(struct dm_space_map *sm, in sm_metadata_count_is_more_than_one() argument [all …]
|
| H A D | dm-transaction-manager.c | 96 struct dm_space_map *sm; member 183 struct dm_space_map *sm) in dm_tm_create() argument 195 tm->sm = sm; in dm_tm_create() 239 r = dm_sm_commit(tm->sm); in dm_tm_pre_commit() 269 r = dm_sm_new_block(tm->sm, &new_block); in dm_tm_new_block() 275 dm_sm_dec_block(tm->sm, new_block); in dm_tm_new_block() 296 r = dm_sm_new_block(tm->sm, &new); in __shadow_block() 300 r = dm_sm_dec_block(tm->sm, orig); in __shadow_block() 337 r = dm_sm_count_is_more_than_one(tm->sm, orig, inc_children); in dm_tm_shadow_block() 383 dm_sm_inc_block(tm->sm, b); in dm_tm_inc() [all …]
|
| /linux/tools/testing/selftests/filesystems/statmount/ |
| H A D | statmount_test.c | 210 struct statmount sm; in test_listmount_empty_root() 213 ret = statmount(root_id, 0, 0, 0, &sm, sizeof(sm), 0); in test_listmount_empty_root() 219 if (sm.size != sizeof(sm)) { in test_listmount_empty_root() 221 sm.size, (uint32_t) sizeof(sm)); in test_listmount_empty_root() 224 if (sm.mask != 0) { in test_listmount_empty_root() 226 (unsigned long long) sm.mask); in test_listmount_empty_root() 235 struct statmount sm; in test_statmount_zero_mask() 237 struct statmount sm; test_statmount_zero_mask() local 262 struct statmount sm; test_statmount_mnt_basic() local 320 struct statmount sm; test_statmount_sb_basic() local 376 struct statmount *sm; test_statmount_mnt_point() local 401 struct statmount *sm; test_statmount_mnt_root() local 437 struct statmount *sm; test_statmount_fs_type() local 465 struct statmount *sm; test_statmount_mnt_opts() local 555 struct statmount *sm; test_statmount_string() local [all...] |
| H A D | statmount_test_ns.c | 67 struct statmount sm; in get_mnt_ns_id() 80 ret = statmount(root_id, 0, 0, STATMOUNT_MNT_NS_ID, &sm, sizeof(sm), 0); in get_mnt_ns_id() 86 if (sm.size != sizeof(sm)) { in setup_namespace() 87 ksft_print_msg("unexpected size: %u != %u\n", sm.size, in setup_namespace() 88 (uint32_t)sizeof(sm)); in setup_namespace() 91 if (sm.mask != STATMOUNT_MNT_NS_ID) { in _test_statmount_mnt_ns_id() 96 if (sm.mnt_ns_id != mnt_ns_id) { in _test_statmount_mnt_ns_id() 98 (unsigned long long)sm in _test_statmount_mnt_ns_id() 92 struct statmount sm; _test_statmount_mnt_ns_id() local 180 struct statmount sm; validate_external_listmount() local [all...] |
| /linux/drivers/net/fddi/skfp/ |
| H A D | smt.c | 172 smc->sm.smt_tid = 0 ; in smt_agent_init() 180 smc->sm.pend[i] = 0 ; in smt_agent_init() 181 smc->sm.please_reconnect = 0 ; in smt_agent_init() 182 smc->sm.uniq_ticks = 0 ; in smt_agent_init() 195 smt_timer_start(smc,&smc->sm.smt_timer, (u_long)1000000L, in smt_agent_task() 208 count = ((time - smc->sm.last_tok_time[mac_index]) * in smt_emulate_token_ct() 222 smc->sm.last_tok_time[mac_index] = time; in smt_emulate_token_ct() 236 if (smc->sm.please_reconnect) { in smt_event() 237 smc->sm.please_reconnect -- ; in smt_event() 238 if (smc->sm.please_reconnect == 0) { in smt_event() [all …]
|
| H A D | ess.c | 78 static void ess_send_response(struct s_smc *smc, struct smt_header *sm, 98 int ess_raf_received_pack(struct s_smc *smc, SMbuf *mb, struct smt_header *sm, 112 int ess_raf_received_pack(struct s_smc *smc, SMbuf *mb, struct smt_header *sm, in ess_raf_received_pack() argument 131 if (!(p = (void *) sm_to_para(smc,sm,SMT_P0015))) { in ess_raf_received_pack() 140 if (!(cmd = (struct smt_p_0016 *) sm_to_para(smc,sm,SMT_P0016))) { in ess_raf_received_pack() 148 DB_ESSN(2, "fc %x ft %x", sm->smt_class, sm->smt_type); in ess_raf_received_pack() 149 DB_ESSN(2, "ver %x tran %x", sm->smt_version, sm->smt_tid); in ess_raf_received_pack() 150 DB_ESSN(2, "stn_id %pM", &sm->smt_source); in ess_raf_received_pack() 152 DB_ESSN(2, "infolen %x res %lx", sm->smt_len, msg_res_type); in ess_raf_received_pack() 167 if (sm->smt_type == SMT_REQUEST) { in ess_raf_received_pack() [all …]
|
| /linux/drivers/scsi/isci/ |
| H A D | phy.c | 313 sci_change_state(&iphy->sm, SCI_PHY_STOPPED); in sci_phy_link_layer_initialization() 336 sci_change_state(&iphy->sm, SCI_PHY_STARTING); in phy_sata_timeout() 392 sci_change_state(&iphy->sm, SCI_PHY_STOPPED); in sci_phy_initialize() 466 enum sci_phy_states state = iphy->sm.current_state_id; in sci_phy_start() 474 sci_change_state(&iphy->sm, SCI_PHY_STARTING); in sci_phy_start() 480 enum sci_phy_states state = iphy->sm.current_state_id; in sci_phy_stop() 500 sci_change_state(&iphy->sm, SCI_PHY_STOPPED); in sci_phy_stop() 506 enum sci_phy_states state = iphy->sm.current_state_id; in sci_phy_reset() 514 sci_change_state(&iphy->sm, SCI_PHY_RESETTING); in sci_phy_reset() 520 enum sci_phy_states state = iphy->sm.current_state_id; in sci_phy_consume_power_handler() [all …]
|
| H A D | remote_node_context.c | 87 u32 current_state = sci_rnc->sm.current_state_id; in sci_remote_node_context_is_ready() 98 u32 current_state = sci_rnc->sm.current_state_id; in sci_remote_node_context_is_suspended() 268 static void sci_remote_node_context_initial_state_enter(struct sci_base_state_machine *sm) in sci_remote_node_context_initial_state_enter() argument 270 struct sci_remote_node_context *rnc = container_of(sm, typeof(*rnc), sm); in sci_remote_node_context_initial_state_enter() 277 if (sm->previous_state_id == SCI_RNC_INVALIDATING) { in sci_remote_node_context_initial_state_enter() 286 static void sci_remote_node_context_posting_state_enter(struct sci_base_state_machine *sm) in sci_remote_node_context_posting_state_enter() argument 288 struct sci_remote_node_context *sci_rnc = container_of(sm, typeof(*sci_rnc), sm); in sci_remote_node_context_posting_state_enter() 293 static void sci_remote_node_context_invalidating_state_enter(struct sci_base_state_machine *sm) in sci_remote_node_context_invalidating_state_enter() argument 295 struct sci_remote_node_context *rnc = container_of(sm, typeof(*rnc), sm); in sci_remote_node_context_invalidating_state_enter() 302 static void sci_remote_node_context_resuming_state_enter(struct sci_base_state_machine *sm) in sci_remote_node_context_resuming_state_enter() argument [all …]
|
| /linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
| H A D | ctxgm200.c | 52 u8 sm, i; in gm200_grctx_generate_smid_config() local 54 for (sm = 0; sm < gr->sm_nr; sm++) { in gm200_grctx_generate_smid_config() 55 const u8 gpc = gr->sm[sm].gpc; in gm200_grctx_generate_smid_config() 56 const u8 tpc = gr->sm[sm].tpc; in gm200_grctx_generate_smid_config() 57 dist[sm / 4] |= ((gpc << 4) | tpc) << ((sm % 4) * 8); in gm200_grctx_generate_smid_config() 58 gpcs[gpc] |= sm << (tpc * 8); in gm200_grctx_generate_smid_config()
|
| H A D | ctxgp100.c | 111 u8 sm, i; in gp100_grctx_generate_smid_config() local 113 for (sm = 0; sm < gr->sm_nr; sm++) { in gp100_grctx_generate_smid_config() 114 const u8 gpc = gr->sm[sm].gpc; in gp100_grctx_generate_smid_config() 115 const u8 tpc = gr->sm[sm].tpc; in gp100_grctx_generate_smid_config() 116 dist[sm / 4] |= ((gpc << 4) | tpc) << ((sm % 4) * 8); in gp100_grctx_generate_smid_config() 117 gpcs[gpc + (gr->func->gpc_nr * (tpc / 4))] |= sm << ((tpc % 4) * 8); in gp100_grctx_generate_smid_config()
|
| H A D | gv100.c | 28 gv100_gr_trap_sm(struct gf100_gr *gr, int gpc, int tpc, int sm) in gv100_gr_trap_sm() argument 32 u32 werr = nvkm_rd32(device, TPC_UNIT(gpc, tpc, 0x730 + (sm * 0x80))); in gv100_gr_trap_sm() 33 u32 gerr = nvkm_rd32(device, TPC_UNIT(gpc, tpc, 0x734 + (sm * 0x80))); in gv100_gr_trap_sm() 42 gpc, tpc, sm, gerr, glob, werr, warp ? warp->name : ""); in gv100_gr_trap_sm() 44 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x730 + sm * 0x80), 0x00000000); in gv100_gr_trap_sm() 45 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x734 + sm * 0x80), gerr); in gv100_gr_trap_sm() 67 int sm; in gv100_gr_init_shader_exceptions() local 68 for (sm = 0; sm < 0x100; sm += 0x80) { in gv100_gr_init_shader_exceptions() 70 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x72c + sm), 0x00000004); in gv100_gr_init_shader_exceptions() 268 gr->sm[gtpc].gpc = gpc_table[gtpc]; in gv100_gr_oneinit_sm_id() [all …]
|
| H A D | ctxgf100.c | 1078 int i, j, sm = 0; in gf100_grctx_generate_r4060a8() local 1083 if (sm < gr->sm_nr) in gf100_grctx_generate_r4060a8() 1084 data |= gr->sm[sm++].gpc << (j * 8); in gf100_grctx_generate_r4060a8() 1293 gf100_grctx_generate_sm_id(struct gf100_gr *gr, int gpc, int tpc, int sm) in gf100_grctx_generate_sm_id() argument 1296 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x698), sm); in gf100_grctx_generate_sm_id() 1297 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x4e8), sm); in gf100_grctx_generate_sm_id() 1298 nvkm_wr32(device, GPC_UNIT(gpc, 0x0c10 + tpc * 4), sm); in gf100_grctx_generate_sm_id() 1299 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x088), sm); in gf100_grctx_generate_sm_id() 1306 int sm; in gf100_grctx_generate_floorsweep() local 1308 for (sm = 0; sm < gr->sm_nr; sm++) { in gf100_grctx_generate_floorsweep() [all …]
|
| /linux/drivers/scsi/csiostor/ |
| H A D | csio_scsi.h | 219 list_add_tail(&ioreq->sm.sm_list, &scm->ioreq_freelist); in csio_put_scsi_ioreq() 264 csio_post_event(&ioreq->sm, CSIO_SCSIE_COMPLETED); in csio_scsi_completed() 265 if (csio_list_deleted(&ioreq->sm.sm_list)) in csio_scsi_completed() 266 list_add_tail(&ioreq->sm.sm_list, cbfn_q); in csio_scsi_completed() 272 csio_post_event(&ioreq->sm, CSIO_SCSIE_ABORTED); in csio_scsi_aborted() 273 list_add_tail(&ioreq->sm.sm_list, cbfn_q); in csio_scsi_aborted() 279 csio_post_event(&ioreq->sm, CSIO_SCSIE_CLOSED); in csio_scsi_closed() 280 list_add_tail(&ioreq->sm.sm_list, cbfn_q); in csio_scsi_closed() 286 csio_post_event(&ioreq->sm, CSIO_SCSIE_DRVCLEANUP); in csio_scsi_drvcleanup() 298 csio_post_event(&ioreq->sm, CSIO_SCSIE_START_IO); in csio_scsi_start_io() [all …]
|
| H A D | csio_rnode.c | 127 list_for_each(tmp, &rnhead->sm.sm_list) { in csio_rn_lookup() 151 list_for_each(tmp, &rnhead->sm.sm_list) { in csio_rn_lookup_wwpn() 175 list_for_each(tmp, &rnhead->sm.sm_list) { in csio_rnode_lookup_portid() 200 list_for_each(tmp, &rnhead->sm.sm_list) { in csio_rn_dup_flowid() 616 csio_set_state(&rn->sm, csio_rns_ready); in csio_rns_uninit() 671 csio_set_state(&rn->sm, csio_rns_offline); in csio_rns_ready() 680 csio_set_state(&rn->sm, csio_rns_offline); in csio_rns_ready() 697 csio_set_state(&rn->sm, csio_rns_uninit); in csio_rns_ready() 702 csio_set_state(&rn->sm, csio_rns_disappeared); in csio_rns_ready() 741 csio_set_state(&rn->sm, csio_rns_ready); in csio_rns_offline() [all …]
|
| /linux/sound/soc/sof/ |
| H A D | control.c | 21 struct soc_mixer_control *sm = (struct soc_mixer_control *)kcontrol->private_value; in snd_sof_volume_get() local 22 struct snd_sof_control *scontrol = sm->dobj.private; in snd_sof_volume_get() 36 struct soc_mixer_control *sm = (struct soc_mixer_control *)kcontrol->private_value; in snd_sof_volume_put() local 37 struct snd_sof_control *scontrol = sm->dobj.private; in snd_sof_volume_put() 50 struct soc_mixer_control *sm = (struct soc_mixer_control *)kcontrol->private_value; in snd_sof_volume_info() local 51 struct snd_sof_control *scontrol = sm->dobj.private; in snd_sof_volume_info() 55 if (!sm->platform_max) in snd_sof_volume_info() 56 sm->platform_max = sm->max; in snd_sof_volume_info() 57 platform_max = sm in snd_sof_volume_info() 73 struct soc_mixer_control *sm = (struct soc_mixer_control *)kcontrol->private_value; snd_sof_switch_get() local 88 struct soc_mixer_control *sm = (struct soc_mixer_control *)kcontrol->private_value; snd_sof_switch_put() local [all...] |
| /linux/fs/xfs/scrub/ |
| H A D | stats.c | 190 const struct xfs_scrub_metadata *sm, in xchk_stats_merge_one() argument 195 if (sm->sm_type >= XFS_SCRUB_TYPE_NR) { in xchk_stats_merge_one() 196 ASSERT(sm->sm_type < XFS_SCRUB_TYPE_NR); in xchk_stats_merge_one() 200 css = &cs->cs_stats[sm->sm_type]; in xchk_stats_merge_one() 203 if (!(sm->sm_flags & XFS_SCRUB_OFLAG_UNCLEAN)) in xchk_stats_merge_one() 205 if (sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_stats_merge_one() 207 if (sm->sm_flags & XFS_SCRUB_OFLAG_PREEN) in xchk_stats_merge_one() 209 if (sm->sm_flags & XFS_SCRUB_OFLAG_XFAIL) in xchk_stats_merge_one() 211 if (sm->sm_flags & XFS_SCRUB_OFLAG_XCORRUPT) in xchk_stats_merge_one() 213 if (sm->sm_flags & XFS_SCRUB_OFLAG_INCOMPLETE) in xchk_stats_merge_one() [all …]
|
| H A D | rtrmap.c | 49 error = xchk_rtgroup_init(sc, sc->sm->sm_agno, &sc->sr); in xchk_setup_rtrmapbt() 105 if (bs->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_rtrmapbt_check_overlapping() 165 if (bs->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_rtrmapbt_check_mergeable() 188 if (!sc->sr.refc_cur || xchk_skip_xref(sc->sm)) in xchk_rtrmapbt_xref_rtrefc() 211 if (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_rtrmapbt_xref() 239 if (bs->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_rtrmapbt_rec() 258 if (error || (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT)) in xchk_rtrmapbt() 275 if (!sc->sr.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_xref_has_no_rt_owner() 295 if (!sc->sr.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_xref_has_rt_owner() 316 if (!sc->sr.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_xref_is_only_rt_owned_by()
|
| /linux/fs/ceph/ |
| H A D | snap.c | 1192 struct ceph_snapid_map *sm, *exist; in ceph_get_snapid_map() local 1219 sm = kmalloc_obj(*sm, GFP_NOFS); in ceph_get_snapid_map() 1220 if (!sm) in ceph_get_snapid_map() 1223 ret = get_anon_bdev(&sm->dev); in ceph_get_snapid_map() 1225 kfree(sm); in ceph_get_snapid_map() 1229 INIT_LIST_HEAD(&sm->lru); in ceph_get_snapid_map() 1230 atomic_set(&sm->ref, 1); in ceph_get_snapid_map() 1231 sm->snap = snap; in ceph_get_snapid_map() 1252 rb_link_node(&sm->node, parent, p); in ceph_get_snapid_map() 1253 rb_insert_color(&sm->node, &mdsc->snapid_map_tree); in ceph_get_snapid_map() [all …]
|
| /linux/samples/vfs/ |
| H A D | mountinfo.c | 102 static void show_propagation(struct statmount *sm) in show_propagation() argument 104 if (sm->mnt_propagation & MS_SHARED) in show_propagation() 105 printf(" shared:%llu", sm->mnt_peer_group); in show_propagation() 106 if (sm->mnt_propagation & MS_SLAVE) { in show_propagation() 107 printf(" master:%llu", sm->mnt_master); in show_propagation() 108 if (sm->propagate_from && sm->propagate_from != sm->mnt_master) in show_propagation() 109 printf(" propagate_from:%llu", sm->propagate_from); in show_propagation() 111 if (sm->mnt_propagation & MS_UNBINDABLE) in show_propagation()
|
| /linux/drivers/firmware/arm_scmi/vendors/imx/ |
| H A D | Makefile | 2 obj-$(CONFIG_IMX_SCMI_BBM_EXT) += imx-sm-bbm.o 3 obj-$(CONFIG_IMX_SCMI_CPU_EXT) += imx-sm-cpu.o 4 obj-$(CONFIG_IMX_SCMI_LMM_EXT) += imx-sm-lmm.o 5 obj-$(CONFIG_IMX_SCMI_MISC_EXT) += imx-sm-misc.o
|
| /linux/tools/perf/util/ |
| H A D | sharded_mutex.h | 22 void sharded_mutex__delete(struct sharded_mutex *sm); 24 static inline struct mutex *sharded_mutex__get_mutex(struct sharded_mutex *sm, size_t hash) in sharded_mutex__get_mutex() argument 26 return &sm->mutexes[hash_bits(hash, sm->cap_bits)]; in sharded_mutex__get_mutex()
|
| H A D | sharded_mutex.c | 27 void sharded_mutex__delete(struct sharded_mutex *sm) in sharded_mutex__delete() argument 29 for (size_t i = 0; i < ((size_t)1 << sm->cap_bits); i++) in sharded_mutex__delete() 30 mutex_destroy(&sm->mutexes[i]); in sharded_mutex__delete() 32 free(sm); in sharded_mutex__delete()
|
| /linux/sound/hda/codecs/side-codecs/ |
| H A D | hda_component.c | 155 struct hda_scodec_match *sm; in hda_component_manager_init() local 168 sm = devm_kmalloc(dev, sizeof(*sm), GFP_KERNEL); in hda_component_manager_init() 169 if (!sm) in hda_component_manager_init() 172 sm->bus = bus; in hda_component_manager_init() 173 sm->hid = hid; in hda_component_manager_init() 174 sm->match_str = match_str; in hda_component_manager_init() 175 sm->index = i; in hda_component_manager_init() 176 component_match_add(dev, &match, hda_comp_match_dev_name, sm); in hda_component_manager_init()
|