Home
last modified time | relevance | path

Searched refs:sm (Results 1 – 25 of 62) sorted by relevance

123

/linux-3.4.99/drivers/md/persistent-data/
Ddm-space-map.h17 void (*destroy)(struct dm_space_map *sm);
22 int (*extend)(struct dm_space_map *sm, dm_block_t extra_blocks);
28 int (*get_nr_blocks)(struct dm_space_map *sm, dm_block_t *count);
38 int (*get_nr_free)(struct dm_space_map *sm, dm_block_t *count);
40 int (*get_count)(struct dm_space_map *sm, dm_block_t b, uint32_t *result);
41 int (*count_is_more_than_one)(struct dm_space_map *sm, dm_block_t b,
43 int (*set_count)(struct dm_space_map *sm, dm_block_t b, uint32_t count);
45 int (*commit)(struct dm_space_map *sm);
47 int (*inc_block)(struct dm_space_map *sm, dm_block_t b);
48 int (*dec_block)(struct dm_space_map *sm, dm_block_t b);
[all …]
Ddm-space-map-metadata.c46 struct dm_space_map sm; member
140 static void sm_metadata_destroy(struct dm_space_map *sm) in sm_metadata_destroy() argument
142 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_destroy()
147 static int sm_metadata_extend(struct dm_space_map *sm, dm_block_t extra_blocks) in sm_metadata_extend() argument
153 static int sm_metadata_get_nr_blocks(struct dm_space_map *sm, dm_block_t *count) in sm_metadata_get_nr_blocks() argument
155 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_get_nr_blocks()
162 static int sm_metadata_get_nr_free(struct dm_space_map *sm, dm_block_t *count) in sm_metadata_get_nr_free() argument
164 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_get_nr_free()
172 static int sm_metadata_get_count(struct dm_space_map *sm, dm_block_t b, in sm_metadata_get_count() argument
176 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_get_count()
[all …]
Ddm-space-map-disk.c26 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()
57 static int sm_disk_get_nr_free(struct dm_space_map *sm, dm_block_t *count) in sm_disk_get_nr_free() argument
59 struct sm_disk *smd = container_of(sm, struct sm_disk, sm); in sm_disk_get_nr_free()
65 static int sm_disk_get_count(struct dm_space_map *sm, dm_block_t b, in sm_disk_get_count() argument
[all …]
Ddm-space-map-checker.c82 static int ca_create(struct count_array *ca, struct dm_space_map *sm) in ca_create() argument
87 r = dm_sm_get_nr_blocks(sm, &nr_blocks); in ca_create()
110 static int ca_load(struct count_array *ca, struct dm_space_map *sm) in ca_load() argument
116 r = dm_sm_get_nr_blocks(sm, &nr_blocks); in ca_load()
124 r = dm_sm_get_count(sm, i, &count); in ca_load()
170 struct dm_space_map sm; member
178 static void sm_checker_destroy(struct dm_space_map *sm) in sm_checker_destroy() argument
180 struct sm_checker *smc = container_of(sm, struct sm_checker, sm); in sm_checker_destroy()
188 static int sm_checker_get_nr_blocks(struct dm_space_map *sm, dm_block_t *count) in sm_checker_get_nr_blocks() argument
190 struct sm_checker *smc = container_of(sm, struct sm_checker, sm); in sm_checker_get_nr_blocks()
[all …]
Ddm-transaction-manager.c37 struct dm_space_map *sm; member
104 struct dm_space_map *sm) in dm_tm_create() argument
116 tm->sm = sm; in dm_tm_create()
155 r = dm_sm_commit(tm->sm); in dm_tm_pre_commit()
184 r = dm_sm_new_block(tm->sm, &new_block); in dm_tm_new_block()
190 dm_sm_dec_block(tm->sm, new_block); in dm_tm_new_block()
211 r = dm_sm_new_block(tm->sm, &new); in __shadow_block()
215 r = dm_sm_dec_block(tm->sm, orig); in __shadow_block()
241 r = dm_sm_count_is_more_than_one(tm->sm, orig, inc_children); in dm_tm_shadow_block()
279 dm_sm_inc_block(tm->sm, b); in dm_tm_inc()
[all …]
Ddm-space-map-checker.h21 struct dm_space_map *dm_sm_checker_create(struct dm_space_map *sm);
22 struct dm_space_map *dm_sm_checker_create_fresh(struct dm_space_map *sm);
Ddm-space-map-metadata.h21 int dm_sm_metadata_create(struct dm_space_map *sm,
29 int dm_sm_metadata_open(struct dm_space_map *sm,
Ddm-transaction-manager.h122 struct dm_space_map **sm, struct dm_block **sblock);
128 struct dm_space_map **sm, struct dm_block **sblock);
/linux-3.4.99/drivers/mfd/
Dsm501.c134 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-3.4.99/drivers/scsi/isci/
Dremote_device.c144 sci_change_state(&idev->sm, SCI_DEV_STOPPED); in rnc_destruct_done()
172 struct sci_base_state_machine *sm = &idev->sm; in sci_remote_device_stop() local
173 enum sci_remote_device_states state = sm->current_state_id; in sci_remote_device_stop()
193 sci_change_state(sm, SCI_DEV_STOPPING); in sci_remote_device_stop()
203 sci_change_state(sm, SCI_DEV_STOPPING); in sci_remote_device_stop()
218 sci_change_state(sm, SCI_DEV_STOPPING); in sci_remote_device_stop()
225 struct sci_base_state_machine *sm = &idev->sm; in sci_remote_device_reset() local
226 enum sci_remote_device_states state = sm->current_state_id; in sci_remote_device_reset()
248 sci_change_state(sm, SCI_DEV_RESETTING); in sci_remote_device_reset()
255 struct sci_base_state_machine *sm = &idev->sm; in sci_remote_device_reset_complete() local
[all …]
Dremote_node_context.c84 u32 current_state = sci_rnc->sm.current_state_id; in sci_remote_node_context_is_ready()
248 static void sci_remote_node_context_initial_state_enter(struct sci_base_state_machine *sm) in sci_remote_node_context_initial_state_enter() argument
250 struct sci_remote_node_context *rnc = container_of(sm, typeof(*rnc), sm); in sci_remote_node_context_initial_state_enter()
255 if (sm->previous_state_id == SCI_RNC_INVALIDATING) { in sci_remote_node_context_initial_state_enter()
261 static void sci_remote_node_context_posting_state_enter(struct sci_base_state_machine *sm) in sci_remote_node_context_posting_state_enter() argument
263 struct sci_remote_node_context *sci_rnc = container_of(sm, typeof(*sci_rnc), sm); in sci_remote_node_context_posting_state_enter()
268 static void sci_remote_node_context_invalidating_state_enter(struct sci_base_state_machine *sm) in sci_remote_node_context_invalidating_state_enter() argument
270 struct sci_remote_node_context *rnc = container_of(sm, typeof(*rnc), sm); in sci_remote_node_context_invalidating_state_enter()
275 static void sci_remote_node_context_resuming_state_enter(struct sci_base_state_machine *sm) in sci_remote_node_context_resuming_state_enter() argument
277 struct sci_remote_node_context *rnc = container_of(sm, typeof(*rnc), sm); in sci_remote_node_context_resuming_state_enter()
[all …]
Dphy.c313 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 …]
Dport.c297 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()
787 current_state = iport->sm.current_state_id; in port_timeout()
942 static void sci_port_ready_substate_waiting_enter(struct sci_base_state_machine *sm) in sci_port_ready_substate_waiting_enter() argument
944 struct isci_port *iport = container_of(sm, typeof(*iport), sm); in sci_port_ready_substate_waiting_enter()
958 struct sci_base_state_machine *sm) in scic_sds_port_ready_substate_waiting_exit() argument
960 struct isci_port *iport = container_of(sm, typeof(*iport), sm); in scic_sds_port_ready_substate_waiting_exit()
[all …]
Dhost.c149 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 …]
Drequest.c741 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()
868 sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); in sci_io_request_terminate()
886 sci_change_state(&ireq->sm, SCI_REQ_ABORTING); in sci_io_request_terminate()
895 sci_change_state(&ireq->sm, SCI_REQ_ABORTING); in sci_io_request_terminate()
896 sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); in sci_io_request_terminate()
[all …]
/linux-3.4.99/drivers/net/fddi/skfp/
Dsmt.c181 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 …]
Dess.c83 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 …]
Dpmf.c35 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 …]
/linux-3.4.99/drivers/net/ethernet/brocade/bna/
Dbfa_cs.h32 typedef void (*bfa_sm_t)(void *sm, int event);
43 #define bfa_sm_set_state(_sm, _state) ((_sm)->sm = (bfa_sm_t)(_state))
44 #define bfa_sm_send_event(_sm, _event) ((_sm)->sm((_sm), (_event)))
45 #define bfa_sm_get_state(_sm) ((_sm)->sm)
46 #define bfa_sm_cmp_state(_sm, _state) ((_sm)->sm == (bfa_sm_t)(_state))
52 bfa_sm_t sm; /*!< state machine function */ member
84 bfa_sm_to_state(const struct bfa_sm_table *smt, bfa_sm_t sm) in bfa_sm_to_state() argument
88 while (smt[i].sm && smt[i].sm != sm) in bfa_sm_to_state()
/linux-3.4.99/drivers/scsi/bfa/
Dbfa_cs.h219 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()
Dbfa_fcs.h70 bfa_sm_t sm; /* state machine */ member
79 bfa_sm_t sm; /* state machine */ member
88 bfa_sm_t sm; /* state machine */ member
99 bfa_sm_t sm; /* state machine */ member
142 bfa_sm_t sm; /* state machine */ member
181 bfa_sm_t sm; /* state machine */ member
349 bfa_sm_t sm; /* state machine */ member
401 bfa_sm_t sm; /* state machine */ member
431 bfa_sm_t sm; /* state machine */ member
493 bfa_sm_t sm; /* state machine */ member
/linux-3.4.99/crypto/
Dtwofish_common.c514 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-3.4.99/drivers/power/
Dwm8350_power.c55 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-3.4.99/drivers/staging/tidspbridge/core/
Dio_sm.c149 static inline void set_chnl_free(struct shm *sm, u32 chnl) in set_chnl_free() argument
151 sm->host_free_mask &= ~(1 << chnl); in set_chnl_free()
154 static inline void set_chnl_busy(struct shm *sm, u32 chnl) in set_chnl_busy() argument
156 sm->host_free_mask |= 1 << chnl; in set_chnl_busy()
798 struct shm *sm; in io_cancel_chnl() local
802 sm = hio_mgr->shared_mem; in io_cancel_chnl()
805 set_chnl_free(sm, chnl); in io_cancel_chnl()
966 struct shm *sm; in io_request_chnl() local
971 sm = io_manager->shared_mem; in io_request_chnl()
974 set_chnl_busy(sm, pchnl->chnl_id); in io_request_chnl()
[all …]
/linux-3.4.99/fs/ocfs2/
Dslot_map.c110 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()

123