/linux-2.6.39/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-2.6.39/drivers/net/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 …]
|
/linux-2.6.39/drivers/net/bna/ |
D | bfa_sm.h | 28 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)) 48 bfa_sm_t sm; /*!< state machine function */ member 80 bfa_sm_to_state(const struct bfa_sm_table *smt, bfa_sm_t sm) in bfa_sm_to_state() argument 84 while (smt[i].sm && smt[i].sm != sm) in bfa_sm_to_state()
|
/linux-2.6.39/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 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 346 bfa_sm_t sm; /* state machine */ member 397 bfa_sm_t sm; /* state machine */ member 426 bfa_sm_t sm; /* state machine */ member 486 bfa_sm_t sm; /* state machine */ member
|
D | bfa_fcpim.h | 112 bfa_sm_t sm; /* BFA ioim state machine */ member 144 bfa_sm_t sm; member 166 bfa_sm_t sm; /* i-t-n im BFA state machine */ member
|
D | bfa_svc.h | 150 bfa_sm_t sm; /* state machine */ member 278 bfa_sm_t sm; /* state machine */ member 366 bfa_sm_t sm; /* finite state machine */ member 423 bfa_sm_t sm; member 437 bfa_sm_t sm; /* port state machine */ member
|
/linux-2.6.39/crypto/ |
D | twofish_common.c | 514 ctx->s[0][i] = mds[0][q0[q0[q1[(b) ^ sa] ^ se] ^ si] ^ sm]; \ 597 u8 si = 0, sj = 0, sk = 0, sl = 0, sm = 0, sn = 0, so = 0, sp = 0; in twofish_setkey() local 644 CALC_S (sm, sn, so, sp, 24, 0x00, 0x2D, 0x01, 0x2D); /* 01 A4 02 A4 */ in twofish_setkey() 645 CALC_S (sm, sn, so, sp, 25, 0x2D, 0xA4, 0x44, 0x8A); /* A4 56 A1 55 */ in twofish_setkey() 646 CALC_S (sm, sn, so, sp, 26, 0x8A, 0xD5, 0xBF, 0xD1); /* 55 82 FC 87 */ in twofish_setkey() 647 CALC_S (sm, sn, so, sp, 27, 0xD1, 0x7F, 0x3D, 0x99); /* 87 F3 C1 5A */ in twofish_setkey() 648 CALC_S (sm, sn, so, sp, 28, 0x99, 0x46, 0x66, 0x96); /* 5A 1E 47 58 */ in twofish_setkey() 649 CALC_S (sm, sn, so, sp, 29, 0x96, 0x3C, 0x5B, 0xED); /* 58 C6 AE DB */ in twofish_setkey() 650 CALC_S (sm, sn, so, sp, 30, 0xED, 0x37, 0x4F, 0xE0); /* DB 68 3D 9E */ in twofish_setkey() 651 CALC_S (sm, sn, so, sp, 31, 0xE0, 0xD0, 0x8C, 0x17); /* 9E E5 19 03 */ in twofish_setkey()
|
/linux-2.6.39/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-2.6.39/drivers/staging/tidspbridge/core/ |
D | io_sm.c | 152 static inline void set_chnl_free(struct shm *sm, u32 chnl) in set_chnl_free() argument 154 sm->host_free_mask &= ~(1 << chnl); in set_chnl_free() 157 static inline void set_chnl_busy(struct shm *sm, u32 chnl) in set_chnl_busy() argument 159 sm->host_free_mask |= 1 << chnl; in set_chnl_busy() 801 struct shm *sm; in io_cancel_chnl() local 805 sm = hio_mgr->shared_mem; in io_cancel_chnl() 808 set_chnl_free(sm, chnl); in io_cancel_chnl() 969 struct shm *sm; in io_request_chnl() local 974 sm = io_manager->shared_mem; in io_request_chnl() 983 set_chnl_busy(sm, pchnl->chnl_id); in io_request_chnl() [all …]
|
/linux-2.6.39/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-2.6.39/drivers/media/video/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-2.6.39/fs/jffs2/ |
D | scan.c | 475 struct jffs2_sum_marker *sm; in jffs2_scan_eraseblock() local 481 sm = (void *)buf + c->sector_size - sizeof(*sm); in jffs2_scan_eraseblock() 482 if (je32_to_cpu(sm->magic) == JFFS2_SUM_MAGIC) { in jffs2_scan_eraseblock() 483 sumptr = buf + je32_to_cpu(sm->offset); in jffs2_scan_eraseblock() 484 sumlen = c->sector_size - je32_to_cpu(sm->offset); in jffs2_scan_eraseblock() 491 buf_len = sizeof(*sm); in jffs2_scan_eraseblock() 500 sm = (void *)buf + buf_size - sizeof(*sm); in jffs2_scan_eraseblock() 501 if (je32_to_cpu(sm->magic) == JFFS2_SUM_MAGIC) { in jffs2_scan_eraseblock() 502 sumlen = c->sector_size - je32_to_cpu(sm->offset); in jffs2_scan_eraseblock()
|
/linux-2.6.39/arch/arm/plat-nomadik/include/plat/ |
D | i2c.h | 34 enum i2c_freq_mode sm; member
|
/linux-2.6.39/fs/gfs2/ |
D | bmap.c | 757 struct strip_mine *sm = data; in do_strip() local 770 sm->sm_first = 0; in do_strip() 772 if (height != sm->sm_height) in do_strip() 775 if (sm->sm_first) { in do_strip() 777 sm->sm_first = 0; in do_strip() 1036 struct strip_mine sm; in trunc_dealloc() local 1037 sm.sm_first = !!size; in trunc_dealloc() 1038 sm.sm_height = height; in trunc_dealloc() 1040 error = recursive_scan(ip, NULL, &mp, 0, 0, 1, do_strip, &sm); in trunc_dealloc()
|
/linux-2.6.39/drivers/net/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
|
/linux-2.6.39/arch/arm/vfp/ |
D | vfpsingle.c | 1176 unsigned int sm = vfp_get_sm(inst); in vfp_single_cpdo() local 1211 s32 m = vfp_get_float(sm); in vfp_single_cpdo() 1219 sm, m); in vfp_single_cpdo() 1223 FOP_TO_IDX(op), sm, m); in vfp_single_cpdo() 1237 if (FREG_BANK(sm) != 0) in vfp_single_cpdo() 1238 sm = FREG_BANK(sm) + ((FREG_IDX(sm) + vecstride) & 7); in vfp_single_cpdo()
|
/linux-2.6.39/drivers/mtd/nand/ |
D | r852.h | 138 int sm; /* Is card smartmedia */ member
|
/linux-2.6.39/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-2.6.39/drivers/i2c/busses/ |
D | i2c-nomadik.c | 370 if (dev->cfg.sm > I2C_FREQ_MODE_FAST) { in setup_i2c_controller() 378 writel(dev->cfg.sm << 4, dev->virtbase + I2C_CR); in setup_i2c_controller() 886 dev->cfg.sm = pdata->sm; in nmk_i2c_probe()
|
/linux-2.6.39/drivers/net/hamradio/ |
D | hdlcdrv.c | 405 struct hdlcdrv_state *sm = netdev_priv(dev); in hdlcdrv_send_packet() local 408 do_kiss_params(sm, skb->data, skb->len); in hdlcdrv_send_packet() 412 if (sm->skb) in hdlcdrv_send_packet() 415 sm->skb = skb; in hdlcdrv_send_packet()
|
/linux-2.6.39/drivers/media/common/tuners/ |
D | tda18271-common.c | 506 int sm, int sm_lt, int sm_xt) in tda18271_set_standby_mode() argument 512 tda_dbg("sm = %d, sm_lt = %d, sm_xt = %d\n", sm, sm_lt, sm_xt); in tda18271_set_standby_mode() 515 regs[R_EP3] |= (sm ? (1 << 7) : 0) | in tda18271_set_standby_mode()
|