/linux-4.1.27/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 | 158 struct dm_space_map sm; member 263 static void sm_metadata_destroy(struct dm_space_map *sm) in sm_metadata_destroy() argument 265 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_destroy() 270 static int sm_metadata_get_nr_blocks(struct dm_space_map *sm, dm_block_t *count) in sm_metadata_get_nr_blocks() argument 272 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_get_nr_blocks() 279 static int sm_metadata_get_nr_free(struct dm_space_map *sm, dm_block_t *count) in sm_metadata_get_nr_free() argument 281 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_get_nr_free() 289 static int sm_metadata_get_count(struct dm_space_map *sm, dm_block_t b, in sm_metadata_get_count() argument 294 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_get_count() 329 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,
|
D | dm-transaction-manager.h | 130 struct dm_space_map **sm); 135 struct dm_space_map **sm);
|
/linux-4.1.27/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 …]
|
/linux-4.1.27/drivers/net/fddi/skfp/ |
D | smt.c | 181 smc->sm.smt_tid = 0 ; in smt_agent_init() 189 smc->sm.pend[i] = 0 ; in smt_agent_init() 190 smc->sm.please_reconnect = 0 ; in smt_agent_init() 191 smc->sm.uniq_ticks = 0 ; in smt_agent_init() 204 smt_timer_start(smc,&smc->sm.smt_timer, (u_long)1000000L, in smt_agent_task() 217 count = ((time - smc->sm.last_tok_time[mac_index]) * in smt_emulate_token_ct() 231 smc->sm.last_tok_time[mac_index] = time; in smt_emulate_token_ct() 245 if (smc->sm.please_reconnect) { in smt_event() 246 smc->sm.please_reconnect -- ; in smt_event() 247 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\n",sm->smt_class,sm->smt_type) ; in ess_raf_received_pack() 154 DB_ESSN(2,"ver %x tran %lx\n",sm->smt_version,sm->smt_tid) ; in ess_raf_received_pack() 155 DB_ESSN(2,"stn_id %s\n",addr_to_string(&sm->smt_source),0) ; in ess_raf_received_pack() 157 DB_ESSN(2,"infolen %x res %x\n",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 %x len %d\n",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 …]
|
D | smtdef.c | 94 smc->sm.last_tok_time[i] = smt_boot_time ; in smt_reset_defaults()
|
/linux-4.1.27/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 | 84 u32 current_state = sci_rnc->sm.current_state_id; in sci_remote_node_context_is_ready() 95 u32 current_state = sci_rnc->sm.current_state_id; in sci_remote_node_context_is_suspended() 272 static void sci_remote_node_context_initial_state_enter(struct sci_base_state_machine *sm) in sci_remote_node_context_initial_state_enter() argument 274 struct sci_remote_node_context *rnc = container_of(sm, typeof(*rnc), sm); in sci_remote_node_context_initial_state_enter() 281 if (sm->previous_state_id == SCI_RNC_INVALIDATING) { in sci_remote_node_context_initial_state_enter() 290 static void sci_remote_node_context_posting_state_enter(struct sci_base_state_machine *sm) in sci_remote_node_context_posting_state_enter() argument 292 struct sci_remote_node_context *sci_rnc = container_of(sm, typeof(*sci_rnc), sm); in sci_remote_node_context_posting_state_enter() 297 static void sci_remote_node_context_invalidating_state_enter(struct sci_base_state_machine *sm) in sci_remote_node_context_invalidating_state_enter() argument 299 struct sci_remote_node_context *rnc = container_of(sm, typeof(*rnc), sm); in sci_remote_node_context_invalidating_state_enter() 306 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 …]
|
D | isci.h | 528 typedef void (*sci_state_transition_t)(struct sci_base_state_machine *sm); 535 extern void sci_init_sm(struct sci_base_state_machine *sm, 538 extern void sci_change_state(struct sci_base_state_machine *sm, u32 next_state);
|
D | remote_node_context.h | 197 struct sci_base_state_machine sm; member 233 || ((sci_rnc->sm.current_state_id == SCI_RNC_INITIAL) in sci_remote_node_context_is_being_destroyed()
|
D | port.h | 103 struct sci_base_state_machine sm; member
|
D | request.h | 113 struct sci_base_state_machine sm; member
|
D | phy.h | 88 struct sci_base_state_machine sm; member
|
D | remote_device.h | 96 struct sci_base_state_machine sm; member
|
D | host.h | 150 struct sci_base_state_machine sm; member
|
/linux-4.1.27/drivers/net/ethernet/brocade/bna/ |
D | bfa_cs.h | 29 typedef void (*bfa_sm_t)(void *sm, int event); 39 #define bfa_sm_set_state(_sm, _state) ((_sm)->sm = (bfa_sm_t)(_state)) 40 #define bfa_sm_send_event(_sm, _event) ((_sm)->sm((_sm), (_event))) 41 #define bfa_sm_get_state(_sm) ((_sm)->sm) 42 #define bfa_sm_cmp_state(_sm, _state) ((_sm)->sm == (bfa_sm_t)(_state)) 46 bfa_sm_t sm; /*!< state machine function */ member 75 bfa_sm_to_state(const struct bfa_sm_table *smt, bfa_sm_t sm) in bfa_sm_to_state() argument 79 while (smt[i].sm && smt[i].sm != sm) in bfa_sm_to_state()
|
/linux-4.1.27/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 | 901 csio_post_event(&ln->sm, CSIO_LNE_LINKUP); in csio_handle_link_up() 923 list_for_each_safe(tmp, next, &rnhead->sm.sm_list) { in csio_post_event_rns() 925 csio_post_event(&rn->sm, evt); in csio_post_event_rns() 945 list_for_each_safe(tmp, next_rn, &rnhead->sm.sm_list) { in csio_cleanup_rns() 972 csio_post_event(&ln->sm, evt); in csio_post_event_lns() 980 csio_post_event(&cln->sm, evt); in csio_post_event_lns() 984 csio_post_event(&ln->sm, evt); in csio_post_event_lns() 1105 csio_set_state(&ln->sm, csio_lns_online); in csio_lns_uninit() 1163 csio_set_state(&ln->sm, csio_lns_ready); in csio_lns_online() 1174 csio_set_state(&ln->sm, csio_lns_uninit); in csio_lns_online() [all …]
|
D | csio_hw.c | 1803 csio_post_event(&hw->sm, CSIO_HWE_INIT); in csio_hw_use_fwconfig() 2053 csio_post_event(&hw->sm, CSIO_HWE_FATAL); in csio_hw_configure() 2064 csio_post_event(&hw->sm, CSIO_HWE_FATAL); in csio_hw_configure() 2084 csio_post_event(&hw->sm, CSIO_HWE_FATAL); in csio_hw_configure() 2150 csio_post_event(&hw->sm, CSIO_HWE_INIT); in csio_hw_configure() 2220 csio_post_event(&hw->sm, CSIO_HWE_INIT_DONE); in csio_hw_initialize() 2337 csio_set_state(&hw->sm, csio_hws_configuring); in csio_hws_uninit() 2362 csio_set_state(&hw->sm, csio_hws_initializing); in csio_hws_configuring() 2367 csio_set_state(&hw->sm, csio_hws_ready); in csio_hws_configuring() 2373 csio_set_state(&hw->sm, csio_hws_uninit); in csio_hws_configuring() [all …]
|
D | csio_rnode.h | 89 struct csio_sm sm; /* State machine - member
|
D | csio_lnode.h | 147 struct csio_sm sm; /* State machine + sibling member
|
D | csio_wr.h | 240 struct csio_sm sm; /* SM, List member
|
D | csio_init.c | 1067 csio_post_event(&hw->sm, CSIO_HWE_PCIERR_DETECTED); in csio_pci_error_detected() 1102 csio_post_event(&hw->sm, CSIO_HWE_PCIERR_SLOT_RESET); in csio_pci_slot_reset()
|
D | csio_hw.h | 392 struct csio_sm sm; /* State machine: should member
|
D | csio_isr.c | 186 list_del_init(&ioreq->sm.sm_list); in csio_process_scsi_cmpl()
|
/linux-4.1.27/drivers/scsi/bfa/ |
D | bfa_cs.h | 219 typedef void (*bfa_sm_t)(void *sm, int event); 230 #define bfa_sm_set_state(_sm, _state) ((_sm)->sm = (bfa_sm_t)(_state)) 231 #define bfa_sm_send_event(_sm, _event) ((_sm)->sm((_sm), (_event))) 232 #define bfa_sm_get_state(_sm) ((_sm)->sm) 233 #define bfa_sm_cmp_state(_sm, _state) ((_sm)->sm == (bfa_sm_t)(_state)) 239 bfa_sm_t sm; /* state machine function */ member 271 bfa_sm_to_state(struct bfa_sm_table_s *smt, bfa_sm_t sm) in bfa_sm_to_state() argument 275 while (smt[i].sm && smt[i].sm != sm) in bfa_sm_to_state()
|
D | bfa_fcs.h | 70 bfa_sm_t sm; /* state machine */ member 81 bfa_sm_t sm; /* state machine */ member 90 bfa_sm_t sm; /* state machine */ member 101 bfa_sm_t sm; /* state machine */ member 144 bfa_sm_t sm; /* state machine */ member 184 bfa_sm_t sm; /* state machine */ member 359 bfa_sm_t sm; /* state machine */ member 412 bfa_sm_t sm; /* state machine */ member 443 bfa_sm_t sm; /* state machine */ member 506 bfa_sm_t sm; /* state machine */ member
|
D | bfa_svc.h | 164 bfa_sm_t sm; /* state machine */ member 299 bfa_sm_t sm; /* state machine */ member 393 bfa_sm_t sm; /* finite state machine */ member 454 bfa_sm_t sm; member 468 bfa_sm_t sm; /* port state machine */ member 718 bfa_sm_t sm; /* finite state machine */ member
|
D | bfa_fcpim.h | 169 bfa_sm_t sm; /* BFA ioim state machine */ member 201 bfa_sm_t sm; member 223 bfa_sm_t sm; /* i-t-n im BFA state machine */ member
|
D | bfad_drv.h | 190 bfa_sm_t sm; /* state machine */ member
|
D | bfa_fcs_fcpim.c | 674 switch (bfa_sm_to_state(itnim_sm_table, itnim->sm)) { in bfa_fcs_itnim_get_online_state() 774 attr->state = bfa_sm_to_state(itnim_sm_table, itnim->sm); in bfa_fcs_itnim_attr_get()
|
D | bfa_svc.c | 3644 bfa_trc(bfa, bfa_sm_to_state(hal_port_sm_table, fcport->sm)); in bfa_fcport_isr() 4079 attr->port_state = bfa_sm_to_state(hal_port_sm_table, fcport->sm); in bfa_fcport_get_attr() 4161 return bfa_sm_to_state(hal_port_sm_table, fcport->sm) == in bfa_fcport_is_disabled() 4171 return (bfa_sm_to_state(hal_port_sm_table, fcport->sm) == in bfa_fcport_is_dport() 4180 return (bfa_sm_to_state(hal_port_sm_table, fcport->sm) == in bfa_fcport_is_ddport()
|
D | bfa_ioc.h | 782 bfa_sm_t sm; member
|
D | bfa_fcs_rport.c | 2982 return bfa_sm_to_state(rport_sm_table, rport->sm); in bfa_fcs_rport_get_state()
|
D | bfa_fcs_lport.c | 6873 attr->vport_state = bfa_sm_to_state(vport_sm_table, vport->sm); in bfa_fcs_vport_get_attr()
|
/linux-4.1.27/crypto/ |
D | twofish_common.c | 514 ctx->s[0][i] = mds[0][q0[q0[q1[(b) ^ sa] ^ se] ^ si] ^ sm]; \ 594 u8 si = 0, sj = 0, sk = 0, sl = 0, sm = 0, sn = 0, so = 0, sp = 0; in __twofish_setkey() local 641 CALC_S (sm, sn, so, sp, 24, 0x00, 0x2D, 0x01, 0x2D); /* 01 A4 02 A4 */ in __twofish_setkey() 642 CALC_S (sm, sn, so, sp, 25, 0x2D, 0xA4, 0x44, 0x8A); /* A4 56 A1 55 */ in __twofish_setkey() 643 CALC_S (sm, sn, so, sp, 26, 0x8A, 0xD5, 0xBF, 0xD1); /* 55 82 FC 87 */ in __twofish_setkey() 644 CALC_S (sm, sn, so, sp, 27, 0xD1, 0x7F, 0x3D, 0x99); /* 87 F3 C1 5A */ in __twofish_setkey() 645 CALC_S (sm, sn, so, sp, 28, 0x99, 0x46, 0x66, 0x96); /* 5A 1E 47 58 */ in __twofish_setkey() 646 CALC_S (sm, sn, so, sp, 29, 0x96, 0x3C, 0x5B, 0xED); /* 58 C6 AE DB */ in __twofish_setkey() 647 CALC_S (sm, sn, so, sp, 30, 0xED, 0x37, 0x4F, 0xE0); /* DB 68 3D 9E */ in __twofish_setkey() 648 CALC_S (sm, sn, so, sp, 31, 0xE0, 0xD0, 0x8C, 0x17); /* 9E E5 19 03 */ in __twofish_setkey()
|
/linux-4.1.27/drivers/power/ |
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()
|
/linux-4.1.27/fs/ocfs2/ |
D | slot_map.c | 110 struct ocfs2_slot_map *sm; in ocfs2_update_slot_info_old() local 112 sm = (struct ocfs2_slot_map *)si->si_bh[0]->b_data; in ocfs2_update_slot_info_old() 115 if (le16_to_cpu(sm->sm_slots[i]) == (u16)OCFS2_INVALID_SLOT) in ocfs2_update_slot_info_old() 118 ocfs2_set_slot(si, i, le16_to_cpu(sm->sm_slots[i])); in ocfs2_update_slot_info_old() 188 struct ocfs2_slot_map *sm; in ocfs2_update_disk_slot_old() local 190 sm = (struct ocfs2_slot_map *)si->si_bh[0]->b_data; in ocfs2_update_disk_slot_old() 193 sm->sm_slots[i] = in ocfs2_update_disk_slot_old() 196 sm->sm_slots[i] = cpu_to_le16(OCFS2_INVALID_SLOT); in ocfs2_update_disk_slot_old()
|
/linux-4.1.27/drivers/char/tpm/ |
D | tpm_crb.c | 213 u32 sm; in crb_acpi_add() local 246 sm = le32_to_cpu(buf->start_method); in crb_acpi_add() 252 if (sm == TPM2_START_CRB || sm == TPM2_START_FIFO || in crb_acpi_add() 256 if (sm == TPM2_START_ACPI || sm == TPM2_START_CRB_WITH_ACPI) in crb_acpi_add()
|
/linux-4.1.27/drivers/md/ |
D | dm-era-target.c | 263 struct dm_space_map *sm; member 433 &md->tm, &md->sm); in create_fresh_metadata() 456 dm_sm_destroy(md->sm); in create_fresh_metadata() 467 r = dm_sm_root_size(md->sm, &metadata_len); in save_sm_root() 471 return dm_sm_copy_root(md->sm, &md->metadata_space_map_root, in save_sm_root() 544 dm_sm_destroy(md->sm); in format_metadata() 568 &md->tm, &md->sm); in open_metadata() 630 dm_sm_destroy(md->sm); in destroy_persistent_data_objects() 1017 r = dm_sm_inc_block(md->sm, SUPERBLOCK_LOCATION); in metadata_take_snap() 1027 dm_sm_dec_block(md->sm, SUPERBLOCK_LOCATION); in metadata_take_snap() [all …]
|
D | dm-thin-metadata.c | 292 struct dm_space_map *sm = context; in data_block_inc() local 299 dm_sm_inc_block(sm, b); in data_block_inc() 304 struct dm_space_map *sm = context; in data_block_dec() local 311 dm_sm_dec_block(sm, b); in data_block_dec() 1695 static int __resize_space_map(struct dm_space_map *sm, dm_block_t new_count) in __resize_space_map() argument 1700 r = dm_sm_get_nr_blocks(sm, &old_count); in __resize_space_map() 1712 return dm_sm_extend(sm, new_count - old_count); in __resize_space_map()
|
/linux-4.1.27/drivers/media/usb/pvrusb2/ |
D | pvrusb2-ctrl.c | 310 long sm,um; in gen_bitmask_string() local 318 for (idx = 0, sm = 1; msk; idx++, sm <<= 1) { in gen_bitmask_string() 319 if (sm & msk) { in gen_bitmask_string() 320 msk &= ~sm; in gen_bitmask_string() 326 ((val & sm) ? "+" : "-")), in gen_bitmask_string() 331 um |= sm; in gen_bitmask_string()
|
/linux-4.1.27/fs/gfs2/ |
D | bmap.c | 718 unsigned int height, struct strip_mine *sm) in do_strip() argument 736 sm->sm_first = 0; in do_strip() 738 if (height != sm->sm_height) in do_strip() 741 if (sm->sm_first) { in do_strip() 743 sm->sm_first = 0; in do_strip() 872 u64 block, int first, struct strip_mine *sm) in recursive_scan() argument 900 error = do_strip(ip, dibh, bh, top, bottom, height, sm); in recursive_scan() 915 first, sm); in recursive_scan() 1108 struct strip_mine sm; in trunc_dealloc() local 1109 sm.sm_first = !!size; in trunc_dealloc() [all …]
|
/linux-4.1.27/fs/jffs2/ |
D | scan.c | 483 struct jffs2_sum_marker *sm; in jffs2_scan_eraseblock() local 489 sm = (void *)buf + c->sector_size - sizeof(*sm); in jffs2_scan_eraseblock() 490 if (je32_to_cpu(sm->magic) == JFFS2_SUM_MAGIC) { in jffs2_scan_eraseblock() 491 sumptr = buf + je32_to_cpu(sm->offset); in jffs2_scan_eraseblock() 492 sumlen = c->sector_size - je32_to_cpu(sm->offset); in jffs2_scan_eraseblock() 499 buf_len = sizeof(*sm); in jffs2_scan_eraseblock() 508 sm = (void *)buf + buf_size - sizeof(*sm); in jffs2_scan_eraseblock() 509 if (je32_to_cpu(sm->magic) == JFFS2_SUM_MAGIC) { in jffs2_scan_eraseblock() 510 sumlen = c->sector_size - je32_to_cpu(sm->offset); in jffs2_scan_eraseblock()
|
D | summary.c | 679 struct jffs2_sum_marker *sm; in jffs2_sum_write_data() local 802 sm = wpage; in jffs2_sum_write_data() 803 sm->offset = cpu_to_je32(c->sector_size - jeb->free_size); in jffs2_sum_write_data() 804 sm->magic = cpu_to_je32(JFFS2_SUM_MAGIC); in jffs2_sum_write_data()
|
/linux-4.1.27/drivers/net/can/usb/peak_usb/ |
D | pcan_ucan.h | 218 static inline int pucan_stmsg_get_channel(struct pucan_status_msg *sm) in pucan_stmsg_get_channel() argument 220 return sm->channel_p_w_b & 0x0f; in pucan_stmsg_get_channel()
|
D | pcan_usb_fd.c | 528 struct pucan_status_msg *sm = (struct pucan_status_msg *)rx_msg; in pcan_usb_fd_decode_status() local 529 struct peak_usb_device *dev = usb_if->dev[pucan_stmsg_get_channel(sm)]; in pcan_usb_fd_decode_status() 542 if (sm->channel_p_w_b & PUCAN_BUS_BUSOFF) { in pcan_usb_fd_decode_status() 544 } else if (sm->channel_p_w_b & PUCAN_BUS_PASSIVE) { in pcan_usb_fd_decode_status() 546 } else if (sm->channel_p_w_b & PUCAN_BUS_WARNING) { in pcan_usb_fd_decode_status() 577 le32_to_cpu(sm->ts_low), le32_to_cpu(sm->ts_high)); in pcan_usb_fd_decode_status()
|
/linux-4.1.27/drivers/net/fddi/skfp/h/ |
D | cmtdef.h | 487 void *sm_to_para(struct s_smc *smc, struct smt_header *sm, 520 void smt_swap_para(struct smt_header *sm, int len, int direction); 546 int smt_check_para(struct s_smc *smc, struct smt_header *sm, 619 int ess_raf_received_pack(struct s_smc *smc, SMbuf *mb, struct smt_header *sm, 638 void dump_smt(struct s_smc *smc, struct smt_header *sm, char *text); 640 #define dump_smt(smc,sm,text) argument
|
D | sba.h | 102 struct smt_header *sm ; /* points to the rec message */ member
|
D | smc.h | 443 struct smt_values sm ; /* smt variables */ member
|
/linux-4.1.27/drivers/i2c/busses/ |
D | i2c-nomadik.c | 183 enum i2c_freq_mode sm; member 379 switch (dev->sm) { in setup_i2c_controller() 423 if (dev->sm > I2C_FREQ_MODE_FAST) { in setup_i2c_controller() 431 writel(dev->sm << 4, dev->virtbase + I2C_CR); in setup_i2c_controller() 959 nmk->sm = I2C_FREQ_MODE_STANDARD; in nmk_i2c_of_probe() 961 nmk->sm = I2C_FREQ_MODE_FAST; in nmk_i2c_of_probe()
|
/linux-4.1.27/arch/arm/vfp/ |
D | vfpsingle.c | 1178 unsigned int sm = vfp_get_sm(inst); in vfp_single_cpdo() local 1213 s32 m = vfp_get_float(sm); in vfp_single_cpdo() 1221 sm, m); in vfp_single_cpdo() 1225 FOP_TO_IDX(op), sm, m); in vfp_single_cpdo() 1239 if (FREG_BANK(sm) != 0) in vfp_single_cpdo() 1240 sm = FREG_BANK(sm) + ((FREG_IDX(sm) + vecstride) & 7); in vfp_single_cpdo()
|
/linux-4.1.27/drivers/mtd/nand/ |
D | r852.h | 138 int sm; /* Is card smartmedia */ member
|
D | r852.c | 596 char *data = dev->sm ? "smartmedia" : "xd"; in r852_media_type_show() 621 dev->sm = (reg & (R852_DMA1 | R852_DMA2)) && (reg & R852_SMBIT); in r852_update_media_status() 624 dev->sm ? "SmartMedia" : "xD", in r852_update_media_status() 653 if (sm_register_device(dev->mtd, dev->sm)) in r852_register_nand_device()
|
/linux-4.1.27/net/sched/ |
D | sch_hfsc.c | 391 seg_x2y(u64 x, u64 sm) in seg_x2y() argument 400 y = (x >> SM_SHIFT) * sm + (((x & SM_MASK) * sm) >> SM_SHIFT); in seg_x2y() 424 u64 sm; in m2sm() local 426 sm = ((u64)m << SM_SHIFT); in m2sm() 427 sm += PSCHED_TICKS_PER_SEC - 1; in m2sm() 428 do_div(sm, PSCHED_TICKS_PER_SEC); in m2sm() 429 return sm; in m2sm() 462 sm2m(u64 sm) in sm2m() argument 466 m = (sm * PSCHED_TICKS_PER_SEC) >> SM_SHIFT; in sm2m()
|
/linux-4.1.27/drivers/net/hamradio/ |
D | hdlcdrv.c | 405 struct hdlcdrv_state *sm = netdev_priv(dev); in hdlcdrv_send_packet() local 411 do_kiss_params(sm, skb->data, skb->len); in hdlcdrv_send_packet() 415 if (sm->skb) in hdlcdrv_send_packet() 418 sm->skb = skb; in hdlcdrv_send_packet()
|
/linux-4.1.27/drivers/media/tuners/ |
D | tda18271-common.c | 544 int sm, int sm_lt, int sm_xt) in tda18271_set_standby_mode() argument 550 tda_dbg("sm = %d, sm_lt = %d, sm_xt = %d\n", sm, sm_lt, sm_xt); in tda18271_set_standby_mode() 553 regs[R_EP3] |= (sm ? (1 << 7) : 0) | in tda18271_set_standby_mode()
|
D | tda18271-priv.h | 216 int sm, int sm_lt, int sm_xt);
|
/linux-4.1.27/Documentation/devicetree/bindings/regulator/ |
D | tps6586x.txt | 14 sys, sm[0-2], ldo[0-9] and ldo_rtc
|
/linux-4.1.27/scripts/ |
D | analyze_suspend.py | 1838 sm = re.match('calling (?P<f>.*)\+ @ '+\ 1840 f = sm.group('f') 1841 n = sm.group('n') 1842 p = sm.group('p') 1848 sm = re.match('call (?P<f>.*)\+ returned .* after '+\ 1850 f = sm.group('f') 1851 t = sm.group('t')
|
/linux-4.1.27/drivers/video/fbdev/ |
D | sm501fb.c | 300 struct sm501fb_info *sm = par->info; in sm501fb_check_var() local 356 if (sm->pdata->flags & SM501_FBPD_SWAP_FB_ENDIAN) { in sm501fb_check_var() 374 if (sm->pdata->flags & SM501_FBPD_SWAP_FB_ENDIAN) { in sm501fb_check_var()
|
/linux-4.1.27/arch/arm/boot/dts/ |
D | ste-snowball.dts | 420 function = "sm";
|
/linux-4.1.27/drivers/pinctrl/nomadik/ |
D | pinctrl-nomadik-db8540.c | 902 DB8540_FUNC_GROUPS(sm, "sm_b_1", "smcleale_c_1", "smcs0_b_1", "smcs1_b_1", 972 FUNCTION(sm),
|
D | pinctrl-nomadik-db8500.c | 878 DB8500_FUNC_GROUPS(sm, "sm_b_1", "smcs0_b_1", "smcs1_b_1", "smcleale_c_1", 938 FUNCTION(sm),
|
/linux-4.1.27/drivers/dma/ipu/ |
D | ipu_idmac.c | 228 u32 sm:10; member
|