/drivers/mfd/ |
D | sm501.c | 134 static void sm501_dump_clk(struct sm501_devdata *sm) in sm501_dump_clk() argument 136 unsigned long misct = smc501_readl(sm->regs + SM501_MISC_TIMING); in sm501_dump_clk() 137 unsigned long pm0 = smc501_readl(sm->regs + SM501_POWER_MODE_0_CLOCK); in sm501_dump_clk() 138 unsigned long pm1 = smc501_readl(sm->regs + SM501_POWER_MODE_1_CLOCK); in sm501_dump_clk() 139 unsigned long pmc = smc501_readl(sm->regs + SM501_POWER_MODE_CONTROL); in sm501_dump_clk() 164 dev_dbg(sm->dev, "MISCT=%08lx, PM0=%08lx, PM1=%08lx\n", in sm501_dump_clk() 167 dev_dbg(sm->dev, "PLL2 = %ld.%ld MHz (%ld), SDCLK0=%08lx, SDCLK1=%08lx\n", in sm501_dump_clk() 170 dev_dbg(sm->dev, "SDRAM: PM0=%ld, PM1=%ld\n", sdclk0, sdclk1); in sm501_dump_clk() 172 dev_dbg(sm->dev, "PM0[%c]: " in sm501_dump_clk() 181 dev_dbg(sm->dev, "PM1[%c]: " in sm501_dump_clk() [all …]
|
/drivers/md/persistent-data/ |
D | dm-space-map.h | 19 void (*destroy)(struct dm_space_map *sm); 24 int (*extend)(struct dm_space_map *sm, dm_block_t extra_blocks); 30 int (*get_nr_blocks)(struct dm_space_map *sm, dm_block_t *count); 40 int (*get_nr_free)(struct dm_space_map *sm, dm_block_t *count); 42 int (*get_count)(struct dm_space_map *sm, dm_block_t b, uint32_t *result); 43 int (*count_is_more_than_one)(struct dm_space_map *sm, dm_block_t b, 45 int (*set_count)(struct dm_space_map *sm, dm_block_t b, uint32_t count); 47 int (*commit)(struct dm_space_map *sm); 49 int (*inc_block)(struct dm_space_map *sm, dm_block_t b); 50 int (*dec_block)(struct dm_space_map *sm, dm_block_t b); [all …]
|
D | dm-space-map-disk.c | 25 struct dm_space_map sm; member 34 static void sm_disk_destroy(struct dm_space_map *sm) in sm_disk_destroy() argument 36 struct sm_disk *smd = container_of(sm, struct sm_disk, sm); in sm_disk_destroy() 41 static int sm_disk_extend(struct dm_space_map *sm, dm_block_t extra_blocks) in sm_disk_extend() argument 43 struct sm_disk *smd = container_of(sm, struct sm_disk, sm); in sm_disk_extend() 48 static int sm_disk_get_nr_blocks(struct dm_space_map *sm, dm_block_t *count) in sm_disk_get_nr_blocks() argument 50 struct sm_disk *smd = container_of(sm, struct sm_disk, sm); in sm_disk_get_nr_blocks() 56 static int sm_disk_get_nr_free(struct dm_space_map *sm, dm_block_t *count) in sm_disk_get_nr_free() argument 58 struct sm_disk *smd = container_of(sm, struct sm_disk, sm); in sm_disk_get_nr_free() 64 static int sm_disk_get_count(struct dm_space_map *sm, dm_block_t b, in sm_disk_get_count() argument [all …]
|
D | dm-space-map-metadata.c | 166 struct dm_space_map sm; member 273 static void sm_metadata_destroy(struct dm_space_map *sm) in sm_metadata_destroy() argument 275 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_destroy() 280 static int sm_metadata_get_nr_blocks(struct dm_space_map *sm, dm_block_t *count) in sm_metadata_get_nr_blocks() argument 282 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_get_nr_blocks() 289 static int sm_metadata_get_nr_free(struct dm_space_map *sm, dm_block_t *count) in sm_metadata_get_nr_free() argument 291 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_get_nr_free() 299 static int sm_metadata_get_count(struct dm_space_map *sm, dm_block_t b, in sm_metadata_get_count() argument 304 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_get_count() 339 static int sm_metadata_count_is_more_than_one(struct dm_space_map *sm, in sm_metadata_count_is_more_than_one() argument [all …]
|
D | dm-transaction-manager.c | 93 struct dm_space_map *sm; member 161 struct dm_space_map *sm) in dm_tm_create() argument 173 tm->sm = sm; in dm_tm_create() 214 r = dm_sm_commit(tm->sm); in dm_tm_pre_commit() 244 r = dm_sm_new_block(tm->sm, &new_block); in dm_tm_new_block() 250 dm_sm_dec_block(tm->sm, new_block); in dm_tm_new_block() 271 r = dm_sm_new_block(tm->sm, &new); in __shadow_block() 275 r = dm_sm_dec_block(tm->sm, orig); in __shadow_block() 312 r = dm_sm_count_is_more_than_one(tm->sm, orig, inc_children); in dm_tm_shadow_block() 358 dm_sm_inc_block(tm->sm, b); in dm_tm_inc() [all …]
|
D | dm-space-map-metadata.h | 32 int dm_sm_metadata_create(struct dm_space_map *sm, 40 int dm_sm_metadata_open(struct dm_space_map *sm,
|
/drivers/net/fddi/skfp/ |
D | smt.c | 180 smc->sm.smt_tid = 0 ; in smt_agent_init() 188 smc->sm.pend[i] = 0 ; in smt_agent_init() 189 smc->sm.please_reconnect = 0 ; in smt_agent_init() 190 smc->sm.uniq_ticks = 0 ; in smt_agent_init() 203 smt_timer_start(smc,&smc->sm.smt_timer, (u_long)1000000L, in smt_agent_task() 216 count = ((time - smc->sm.last_tok_time[mac_index]) * in smt_emulate_token_ct() 230 smc->sm.last_tok_time[mac_index] = time; in smt_emulate_token_ct() 244 if (smc->sm.please_reconnect) { in smt_event() 245 smc->sm.please_reconnect -- ; in smt_event() 246 if (smc->sm.please_reconnect == 0) { in smt_event() [all …]
|
D | ess.c | 83 static void ess_send_response(struct s_smc *smc, struct smt_header *sm, 103 int ess_raf_received_pack(struct s_smc *smc, SMbuf *mb, struct smt_header *sm, 117 int ess_raf_received_pack(struct s_smc *smc, SMbuf *mb, struct smt_header *sm, in ess_raf_received_pack() argument 136 if (!(p = (void *) sm_to_para(smc,sm,SMT_P0015))) { in ess_raf_received_pack() 145 if (!(cmd = (struct smt_p_0016 *) sm_to_para(smc,sm,SMT_P0016))) { in ess_raf_received_pack() 153 DB_ESSN(2, "fc %x ft %x", sm->smt_class, sm->smt_type); in ess_raf_received_pack() 154 DB_ESSN(2, "ver %x tran %x", sm->smt_version, sm->smt_tid); in ess_raf_received_pack() 155 DB_ESSN(2, "stn_id %s", addr_to_string(&sm->smt_source)); in ess_raf_received_pack() 157 DB_ESSN(2, "infolen %x res %lx", sm->smt_len, msg_res_type); in ess_raf_received_pack() 172 if (sm->smt_type == SMT_REQUEST) { in ess_raf_received_pack() [all …]
|
D | pmf.c | 35 static int smt_authorize(struct s_smc *smc, struct smt_header *sm); 36 static int smt_check_set_count(struct s_smc *smc, struct smt_header *sm); 283 struct smt_header *sm ; in smt_pmf_received_pack() local 286 sm = smtod(mb,struct smt_header *) ; in smt_pmf_received_pack() 287 DB_SMT("SMT: processing PMF frame at %p len %d", sm, mb->sm_len); in smt_pmf_received_pack() 289 dump_smt(smc,sm,"PMF Received") ; in smt_pmf_received_pack() 297 if (sm->smt_class == SMT_PMF_GET || in smt_pmf_received_pack() 298 sm->smt_class == SMT_PMF_SET) { in smt_pmf_received_pack() 299 reply = smt_build_pmf_response(smc,sm, in smt_pmf_received_pack() 300 sm->smt_class == SMT_PMF_SET,local) ; in smt_pmf_received_pack() [all …]
|
/drivers/scsi/isci/ |
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() 395 sci_change_state(&iphy->sm, SCI_PHY_STOPPED); in sci_phy_initialize() 469 enum sci_phy_states state = iphy->sm.current_state_id; in sci_phy_start() 477 sci_change_state(&iphy->sm, SCI_PHY_STARTING); in sci_phy_start() 483 enum sci_phy_states state = iphy->sm.current_state_id; in sci_phy_stop() 503 sci_change_state(&iphy->sm, SCI_PHY_STOPPED); in sci_phy_stop() 509 enum sci_phy_states state = iphy->sm.current_state_id; in sci_phy_reset() 517 sci_change_state(&iphy->sm, SCI_PHY_RESETTING); in sci_phy_reset() 523 enum sci_phy_states state = iphy->sm.current_state_id; in sci_phy_consume_power_handler() [all …]
|
D | remote_device.c | 238 dev_state_name(idev->sm.current_state_id), in isci_remote_device_terminate_requests() 241 rnc_state_name(idev->rnc.sm.current_state_id), in isci_remote_device_terminate_requests() 271 dev_state_name(idev->sm.current_state_id), in isci_remote_device_terminate_requests() 274 rnc_state_name(idev->rnc.sm.current_state_id), in isci_remote_device_terminate_requests() 328 sci_change_state(&idev->sm, SCI_DEV_STOPPED); in rnc_destruct_done() 340 struct sci_base_state_machine *sm = &idev->sm; in sci_remote_device_stop() local 341 enum sci_remote_device_states state = sm->current_state_id; in sci_remote_device_stop() 361 sci_change_state(sm, SCI_DEV_STOPPING); in sci_remote_device_stop() 371 sci_change_state(sm, SCI_DEV_STOPPING); in sci_remote_device_stop() 389 sci_change_state(sm, SCI_DEV_STOPPING); in sci_remote_device_stop() [all …]
|
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() 275 static void sci_remote_node_context_initial_state_enter(struct sci_base_state_machine *sm) in sci_remote_node_context_initial_state_enter() argument 277 struct sci_remote_node_context *rnc = container_of(sm, typeof(*rnc), sm); in sci_remote_node_context_initial_state_enter() 284 if (sm->previous_state_id == SCI_RNC_INVALIDATING) { in sci_remote_node_context_initial_state_enter() 293 static void sci_remote_node_context_posting_state_enter(struct sci_base_state_machine *sm) in sci_remote_node_context_posting_state_enter() argument 295 struct sci_remote_node_context *sci_rnc = container_of(sm, typeof(*sci_rnc), sm); in sci_remote_node_context_posting_state_enter() 300 static void sci_remote_node_context_invalidating_state_enter(struct sci_base_state_machine *sm) in sci_remote_node_context_invalidating_state_enter() argument 302 struct sci_remote_node_context *rnc = container_of(sm, typeof(*rnc), sm); in sci_remote_node_context_invalidating_state_enter() 309 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 …]
|
D | host.c | 149 void sci_init_sm(struct sci_base_state_machine *sm, in sci_init_sm() argument 154 sm->initial_state_id = initial_state; in sci_init_sm() 155 sm->previous_state_id = initial_state; in sci_init_sm() 156 sm->current_state_id = initial_state; in sci_init_sm() 157 sm->state_table = state_table; in sci_init_sm() 159 handler = sm->state_table[initial_state].enter_state; in sci_init_sm() 161 handler(sm); in sci_init_sm() 165 void sci_change_state(struct sci_base_state_machine *sm, u32 next_state) in sci_change_state() argument 169 handler = sm->state_table[sm->current_state_id].exit_state; in sci_change_state() 171 handler(sm); in sci_change_state() [all …]
|
D | port.c | 297 struct sci_base_state_machine *sm = &iport->sm; in port_state_machine_change() local 298 enum sci_port_states old_state = sm->current_state_id; in port_state_machine_change() 303 sci_change_state(sm, state); in port_state_machine_change() 706 struct sci_base_state_machine *sm = &iport->sm; in sci_port_general_link_up_handler() local 709 if (sm->current_state_id == SCI_PORT_RESETTING) in sci_port_general_link_up_handler() 785 current_state = iport->sm.current_state_id; in port_timeout() 940 static void sci_port_ready_substate_waiting_enter(struct sci_base_state_machine *sm) in sci_port_ready_substate_waiting_enter() argument 942 struct isci_port *iport = container_of(sm, typeof(*iport), sm); in sci_port_ready_substate_waiting_enter() 956 struct sci_base_state_machine *sm) in scic_sds_port_ready_substate_waiting_exit() argument 958 struct isci_port *iport = container_of(sm, typeof(*iport), sm); in scic_sds_port_ready_substate_waiting_exit() [all …]
|
D | request.c | 741 sci_change_state(&ireq->sm, SCI_REQ_CONSTRUCTED); in sci_io_request_construct_basic_ssp() 755 sci_change_state(&ireq->sm, SCI_REQ_CONSTRUCTED); in sci_task_request_construct_ssp() 776 sci_change_state(&ireq->sm, SCI_REQ_CONSTRUCTED); in sci_io_request_construct_basic_sata() 814 state = ireq->sm.current_state_id; in sci_request_start() 852 sci_change_state(&ireq->sm, SCI_REQ_STARTED); in sci_request_start() 862 state = ireq->sm.current_state_id; in sci_io_request_terminate() 870 sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); in sci_io_request_terminate() 896 sci_change_state(&ireq->sm, SCI_REQ_ABORTING); in sci_io_request_terminate() 911 "state %d\n", __func__, ireq->sm.current_state_id); in sci_io_request_terminate() 923 state = ireq->sm.current_state_id; in sci_request_complete() [all …]
|
/drivers/scsi/csiostor/ |
D | csio_scsi.h | 209 list_add_tail(&ioreq->sm.sm_list, &scm->ioreq_freelist); in csio_put_scsi_ioreq() 254 csio_post_event(&ioreq->sm, CSIO_SCSIE_COMPLETED); in csio_scsi_completed() 255 if (csio_list_deleted(&ioreq->sm.sm_list)) in csio_scsi_completed() 256 list_add_tail(&ioreq->sm.sm_list, cbfn_q); in csio_scsi_completed() 262 csio_post_event(&ioreq->sm, CSIO_SCSIE_ABORTED); in csio_scsi_aborted() 263 list_add_tail(&ioreq->sm.sm_list, cbfn_q); in csio_scsi_aborted() 269 csio_post_event(&ioreq->sm, CSIO_SCSIE_CLOSED); in csio_scsi_closed() 270 list_add_tail(&ioreq->sm.sm_list, cbfn_q); in csio_scsi_closed() 276 csio_post_event(&ioreq->sm, CSIO_SCSIE_DRVCLEANUP); in csio_scsi_drvcleanup() 288 csio_post_event(&ioreq->sm, CSIO_SCSIE_START_IO); in csio_scsi_start_io() [all …]
|
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 …]
|
D | csio_scsi.c | 723 csio_set_state(&req->sm, csio_scsis_io_active); in csio_scsis_uninit() 724 list_add_tail(&req->sm.sm_list, &scsim->active_q); in csio_scsis_uninit() 743 csio_set_state(&req->sm, csio_scsis_tm_active); in csio_scsis_uninit() 744 list_add_tail(&req->sm.sm_list, &scsim->active_q); in csio_scsis_uninit() 782 list_del_init(&req->sm.sm_list); in csio_scsis_io_active() 783 csio_set_state(&req->sm, csio_scsis_uninit); in csio_scsis_io_active() 807 csio_set_state(&req->sm, in csio_scsis_io_active() 809 list_add_tail(&req->sm.sm_list, in csio_scsis_io_active() 820 csio_set_state(&req->sm, csio_scsis_aborting); in csio_scsis_io_active() 828 csio_set_state(&req->sm, csio_scsis_closing); in csio_scsis_io_active() [all …]
|
D | csio_lnode.c | 911 csio_post_event(&ln->sm, CSIO_LNE_LINKUP); in csio_handle_link_up() 933 list_for_each_safe(tmp, next, &rnhead->sm.sm_list) { in csio_post_event_rns() 935 csio_post_event(&rn->sm, evt); in csio_post_event_rns() 955 list_for_each_safe(tmp, next_rn, &rnhead->sm.sm_list) { in csio_cleanup_rns() 982 csio_post_event(&ln->sm, evt); in csio_post_event_lns() 990 csio_post_event(&cln->sm, evt); in csio_post_event_lns() 994 csio_post_event(&ln->sm, evt); in csio_post_event_lns() 1115 csio_set_state(&ln->sm, csio_lns_online); in csio_lns_uninit() 1173 csio_set_state(&ln->sm, csio_lns_ready); in csio_lns_online() 1184 csio_set_state(&ln->sm, csio_lns_uninit); in csio_lns_online() [all …]
|
/drivers/net/ethernet/brocade/bna/ |
D | bfa_cs.h | 29 typedef void (*bfa_sm_t)(void *sm, int event); 33 bfa_sm_t sm; /*!< state machine function */ member 61 bfa_sm_to_state(const struct bfa_sm_table *smt, bfa_sm_t sm) in bfa_sm_to_state() argument 65 while (smt[i].sm && smt[i].sm != sm) in bfa_sm_to_state()
|
/drivers/scsi/bfa/ |
D | bfa_cs.h | 187 typedef void (*bfa_sm_t)(void *sm, int event); 198 #define bfa_sm_set_state(_sm, _state) ((_sm)->sm = (bfa_sm_t)(_state)) 199 #define bfa_sm_send_event(_sm, _event) ((_sm)->sm((_sm), (_event))) 200 #define bfa_sm_get_state(_sm) ((_sm)->sm) 201 #define bfa_sm_cmp_state(_sm, _state) ((_sm)->sm == (bfa_sm_t)(_state)) 207 bfa_sm_t sm; /* state machine function */ member 239 bfa_sm_to_state(struct bfa_sm_table_s *smt, bfa_sm_t sm) in bfa_sm_to_state() argument 243 while (smt[i].sm && smt[i].sm != sm) in bfa_sm_to_state()
|
D | bfa_fcs.h | 71 bfa_sm_t sm; /* state machine */ member 82 bfa_sm_t sm; /* state machine */ member 91 bfa_sm_t sm; /* state machine */ member 102 bfa_sm_t sm; /* state machine */ member 145 bfa_sm_t sm; /* state machine */ member 185 bfa_sm_t sm; /* state machine */ member 360 bfa_sm_t sm; /* state machine */ member 413 bfa_sm_t sm; /* state machine */ member 444 bfa_sm_t sm; /* state machine */ member 507 bfa_sm_t sm; /* state machine */ member
|
/drivers/power/supply/ |
D | wm8350_power.c | 55 u16 sm, ov, co, chrg; in wm8350_get_supplies() local 58 sm = wm8350_reg_read(wm8350, WM8350_STATE_MACHINE_STATUS); in wm8350_get_supplies() 64 sm = (sm & WM8350_USB_SM_MASK) >> WM8350_USB_SM_SHIFT; in wm8350_get_supplies() 71 if (((sm == WM8350_USB_SM_100_SLV) || in wm8350_get_supplies() 72 (sm == WM8350_USB_SM_500_SLV) || in wm8350_get_supplies() 73 (sm == WM8350_USB_SM_STDBY_SLV)) in wm8350_get_supplies() 76 else if (((sm == WM8350_USB_SM_100_SLV) || in wm8350_get_supplies() 77 (sm == WM8350_USB_SM_500_SLV) || in wm8350_get_supplies() 78 (sm == WM8350_USB_SM_STDBY_SLV)) in wm8350_get_supplies()
|
/drivers/char/tpm/ |
D | tpm_crb.c | 604 u32 sm; in crb_acpi_add() local 615 sm = buf->start_method; in crb_acpi_add() 616 if (sm == ACPI_TPM2_MEMORY_MAPPED) in crb_acpi_add() 627 if (sm == ACPI_TPM2_COMMAND_BUFFER || sm == ACPI_TPM2_MEMORY_MAPPED || in crb_acpi_add() 631 if (sm == ACPI_TPM2_START_METHOD || in crb_acpi_add() 632 sm == ACPI_TPM2_COMMAND_BUFFER_WITH_START_METHOD) in crb_acpi_add() 635 if (sm == ACPI_TPM2_COMMAND_BUFFER_WITH_ARM_SMC) { in crb_acpi_add()
|
/drivers/md/ |
D | dm-era-target.c | 262 struct dm_space_map *sm; member 434 &md->tm, &md->sm); in create_fresh_metadata() 457 dm_sm_destroy(md->sm); in create_fresh_metadata() 468 r = dm_sm_root_size(md->sm, &metadata_len); in save_sm_root() 472 return dm_sm_copy_root(md->sm, &md->metadata_space_map_root, in save_sm_root() 545 dm_sm_destroy(md->sm); in format_metadata() 569 &md->tm, &md->sm); in open_metadata() 632 dm_sm_destroy(md->sm); in destroy_persistent_data_objects() 1019 r = dm_sm_inc_block(md->sm, SUPERBLOCK_LOCATION); in metadata_take_snap() 1029 dm_sm_dec_block(md->sm, SUPERBLOCK_LOCATION); in metadata_take_snap() [all …]
|