/drivers/scsi/ |
D | mesh.c | 185 static void mesh_done(struct mesh_state *ms, int start_next); 186 static void mesh_interrupt(struct mesh_state *ms); 187 static void cmd_complete(struct mesh_state *ms); 188 static void set_dma_cmds(struct mesh_state *ms, struct scsi_cmnd *cmd); 189 static void halt_dma(struct mesh_state *ms); 190 static void phase_mismatch(struct mesh_state *ms); 212 static void dlog(struct mesh_state *ms, char *fmt, int a) in dlog() argument 214 struct mesh_target *tp = &ms->tgts[ms->conn_tgt]; in dlog() 218 slp = &ms->log[ms->log_ix]; in dlog() 221 tlp->phase = (ms->msgphase << 4) + ms->phase; in dlog() [all …]
|
/drivers/spi/ |
D | spi-mpc52xx.c | 83 int (*state)(int irq, struct mpc52xx_spi *ms, u8 status, u8 data); 96 static void mpc52xx_spi_chipsel(struct mpc52xx_spi *ms, int value) in mpc52xx_spi_chipsel() argument 100 if (ms->gpio_cs_count > 0) { in mpc52xx_spi_chipsel() 101 cs = ms->message->spi->chip_select; in mpc52xx_spi_chipsel() 102 gpio_set_value(ms->gpio_cs[cs], value ? 0 : 1); in mpc52xx_spi_chipsel() 104 out_8(ms->regs + SPI_PORTDATA, value ? 0 : 0x08); in mpc52xx_spi_chipsel() 112 static void mpc52xx_spi_start_transfer(struct mpc52xx_spi *ms) in mpc52xx_spi_start_transfer() argument 114 ms->rx_buf = ms->transfer->rx_buf; in mpc52xx_spi_start_transfer() 115 ms->tx_buf = ms->transfer->tx_buf; in mpc52xx_spi_start_transfer() 116 ms->len = ms->transfer->len; in mpc52xx_spi_start_transfer() [all …]
|
/drivers/md/ |
D | dm-raid1.c | 44 struct mirror_set *ms; member 92 struct mirror_set *ms = context; in wakeup_mirrord() local 94 queue_work(ms->kmirrord_wq, &ms->kmirrord_work); in wakeup_mirrord() 99 struct mirror_set *ms = (struct mirror_set *) data; in delayed_wake_fn() local 101 clear_bit(0, &ms->timer_pending); in delayed_wake_fn() 102 wakeup_mirrord(ms); in delayed_wake_fn() 105 static void delayed_wake(struct mirror_set *ms) in delayed_wake() argument 107 if (test_and_set_bit(0, &ms->timer_pending)) in delayed_wake() 110 ms->timer.expires = jiffies + HZ / 5; in delayed_wake() 111 ms->timer.data = (unsigned long) ms; in delayed_wake() [all …]
|
/drivers/scsi/bfa/ |
D | bfa_fcs_lport.c | 1478 struct bfa_fcs_lport_s *port = fdmi->ms->port; in bfa_fcs_lport_fdmi_sm_offline() 1518 struct bfa_fcs_lport_s *port = fdmi->ms->port; in bfa_fcs_lport_fdmi_sm_sending_rhba() 1543 struct bfa_fcs_lport_s *port = fdmi->ms->port; in bfa_fcs_lport_fdmi_sm_rhba() 1592 struct bfa_fcs_lport_s *port = fdmi->ms->port; in bfa_fcs_lport_fdmi_sm_rhba_retry() 1623 struct bfa_fcs_lport_s *port = fdmi->ms->port; in bfa_fcs_lport_fdmi_sm_sending_rprt() 1648 struct bfa_fcs_lport_s *port = fdmi->ms->port; in bfa_fcs_lport_fdmi_sm_rprt() 1695 struct bfa_fcs_lport_s *port = fdmi->ms->port; in bfa_fcs_lport_fdmi_sm_rprt_retry() 1726 struct bfa_fcs_lport_s *port = fdmi->ms->port; in bfa_fcs_lport_fdmi_sm_sending_rpa() 1751 struct bfa_fcs_lport_s *port = fdmi->ms->port; in bfa_fcs_lport_fdmi_sm_rpa() 1796 struct bfa_fcs_lport_s *port = fdmi->ms->port; in bfa_fcs_lport_fdmi_sm_rpa_retry() [all …]
|
D | bfa_fcs.h | 93 struct bfa_fcs_lport_ms_s *ms; /* parent ms */ member 116 struct bfa_fcs_lport_ms_s ms; /* MS component of port */ member 165 #define BFA_FCS_GET_MS_FROM_PORT(port) (&port->port_topo.pfab.ms) 166 #define BFA_FCS_GET_FDMI_FROM_PORT(port) (&port->port_topo.pfab.ms.fdmi) 318 void bfa_fcs_lport_fdmi_init(struct bfa_fcs_lport_ms_s *ms); 319 void bfa_fcs_lport_fdmi_offline(struct bfa_fcs_lport_ms_s *ms); 320 void bfa_fcs_lport_fdmi_online(struct bfa_fcs_lport_ms_s *ms);
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_hw.c | 1316 struct qlcnic_ms_reg_ctrl *ms) in qlcnic_set_ms_controls() argument 1318 ms->control = QLCNIC_MS_CTRL; in qlcnic_set_ms_controls() 1319 ms->low = QLCNIC_MS_ADDR_LO; in qlcnic_set_ms_controls() 1320 ms->hi = QLCNIC_MS_ADDR_HI; in qlcnic_set_ms_controls() 1322 ms->wd[0] = QLCNIC_MS_WRTDATA_LO; in qlcnic_set_ms_controls() 1323 ms->rd[0] = QLCNIC_MS_RDDATA_LO; in qlcnic_set_ms_controls() 1324 ms->wd[1] = QLCNIC_MS_WRTDATA_HI; in qlcnic_set_ms_controls() 1325 ms->rd[1] = QLCNIC_MS_RDDATA_HI; in qlcnic_set_ms_controls() 1326 ms->wd[2] = QLCNIC_MS_WRTDATA_ULO; in qlcnic_set_ms_controls() 1327 ms->wd[3] = QLCNIC_MS_WRTDATA_UHI; in qlcnic_set_ms_controls() [all …]
|
/drivers/staging/lustre/include/linux/libcfs/ |
D | libcfs_fail.h | 43 int __cfs_fail_timeout_set(__u32 id, __u32 value, int ms, int set); 127 static inline int cfs_fail_timeout_set(__u32 id, __u32 value, int ms, int set) in cfs_fail_timeout_set() argument 130 return __cfs_fail_timeout_set(id, value, ms, set); in cfs_fail_timeout_set() 138 #define CFS_FAIL_TIMEOUT_MS(id, ms) \ argument 139 cfs_fail_timeout_set(id, 0, ms, CFS_FAIL_LOC_NOSET) 149 #define CFS_FAIL_TIMEOUT_MS_ORSET(id, value, ms) \ argument 150 cfs_fail_timeout_set(id, value, ms, CFS_FAIL_LOC_ORSET)
|
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
D | brcms_trace_brcmsmac.h | 43 __field(uint, ms) 48 __entry->ms = t->ms; 54 __entry->ms, __entry->set, __entry->periodic
|
D | mac80211_if.h | 41 uint ms; member 107 void brcms_add_timer(struct brcms_timer *timer, uint ms, int periodic);
|
/drivers/staging/lustre/lnet/libcfs/ |
D | fail.c | 126 int __cfs_fail_timeout_set(__u32 id, __u32 value, int ms, int set) in __cfs_fail_timeout_set() argument 131 if (ret && likely(ms > 0)) { in __cfs_fail_timeout_set() 133 id, ms); in __cfs_fail_timeout_set() 135 schedule_timeout(cfs_time_seconds(ms) / 1000); in __cfs_fail_timeout_set()
|
/drivers/mmc/core/ |
D | core.h | 57 static inline void mmc_delay(unsigned int ms) in mmc_delay() argument 59 if (ms < 1000 / HZ) { in mmc_delay() 61 mdelay(ms); in mmc_delay() 63 msleep(ms); in mmc_delay()
|
/drivers/scsi/aic94xx/ |
D | aic94xx_sds.c | 683 static int asd_validate_ms(struct asd_manuf_sec *ms) in asd_validate_ms() argument 685 if (ms->sig[0] != 'S' || ms->sig[1] != 'M') { in asd_validate_ms() 687 ms->sig[0], ms->sig[1]); in asd_validate_ms() 690 if (ms->maj != 0) { in asd_validate_ms() 692 ms->maj); in asd_validate_ms() 695 ms->offs_next = le16_to_cpu((__force __le16) ms->offs_next); in asd_validate_ms() 696 ms->chksum = le16_to_cpu((__force __le16) ms->chksum); in asd_validate_ms() 697 ms->size = le16_to_cpu((__force __le16) ms->size); in asd_validate_ms() 699 if (asd_calc_flash_chksum((u16 *)ms, ms->size/2)) { in asd_validate_ms() 707 struct asd_manuf_sec *ms) in asd_ms_get_sas_addr() argument [all …]
|
/drivers/media/dvb-frontends/ |
D | horus3a.c | 183 u32 ms = 0; in horus3a_set_params() local 206 ms = DIV_ROUND_CLOSEST((frequency * mixdiv) / 2, 1000); in horus3a_set_params() 207 if (ms > 0x7FFF) { /* 15 bit */ in horus3a_set_params() 302 data[0] = (u8)((ms >> 7) & 0xFF); in horus3a_set_params() 303 data[1] = (u8)((ms << 1) & 0xFF); in horus3a_set_params() 319 priv->frequency = ms * 2 * 1000 / mixdiv; in horus3a_set_params()
|
/drivers/clk/rockchip/ |
D | clk.h | 340 #define COMPOSITE(_id, cname, pnames, f, mo, ms, mw, mf, ds, dw,\ argument 350 .mux_shift = ms, \ 398 #define COMPOSITE_NODIV(_id, cname, pnames, f, mo, ms, mw, mf, \ argument 408 .mux_shift = ms, \ 416 #define COMPOSITE_NOGATE(_id, cname, pnames, f, mo, ms, mw, mf, \ argument 426 .mux_shift = ms, \ 435 #define COMPOSITE_NOGATE_DIVTBL(_id, cname, pnames, f, mo, ms, \ argument 445 .mux_shift = ms, \ 506 #define COMPOSITE_DDRCLK(_id, cname, pnames, f, mo, ms, mw, \ argument 516 .mux_shift = ms, \
|
/drivers/md/bcache/ |
D | io.c | 124 int ms = us / 1024; in bch_bbio_count_io_errors() local 127 ms = min(ms, CONGESTED_MAX + congested); in bch_bbio_count_io_errors() 128 atomic_sub(ms, &c->congested); in bch_bbio_count_io_errors()
|
D | sysfs.c | 53 sysfs_time_stats_attribute(btree_gc, sec, ms); 55 sysfs_time_stats_attribute(btree_sort, ms, us); 56 sysfs_time_stats_attribute(btree_read, ms, us); 532 sysfs_print_time_stats(&c->btree_gc_time, btree_gc, sec, ms); in SHOW() 534 sysfs_print_time_stats(&c->sort.time, btree_sort, ms, us); in SHOW() 535 sysfs_print_time_stats(&c->btree_read_time, btree_read, ms, us); in SHOW() 706 sysfs_time_stats_attribute_list(btree_gc, sec, ms) 708 sysfs_time_stats_attribute_list(btree_sort, ms, us) 709 sysfs_time_stats_attribute_list(btree_read, ms, us)
|
/drivers/media/platform/vivid/ |
D | vivid-rds-gen.c | 78 data[1].lsb |= (rds->ta << 4) | (rds->ms << 3); in vivid_rds_generate() 125 data[1].lsb |= (rds->ta << 4) | (rds->ms << 3); in vivid_rds_generate() 132 data[3].lsb |= (rds->ta << 4) | (rds->ms << 3); in vivid_rds_generate() 158 rds->ms = true; in vivid_rds_gen_fill()
|
/drivers/staging/dgnc/ |
D | dgnc_utils.c | 12 int dgnc_ms_sleep(ulong ms) in dgnc_ms_sleep() argument 15 schedule_timeout((ms * HZ) / 1000); in dgnc_ms_sleep()
|
/drivers/staging/rtl8712/ |
D | osdep_service.h | 66 static inline void sleep_schedulable(int ms) in sleep_schedulable() argument 70 delta = msecs_to_jiffies(ms);/*(ms)*/ in sleep_schedulable()
|
/drivers/net/wimax/i2400m/ |
D | control.c | 388 const struct i2400m_tlv_media_status *ms) in i2400m_report_tlv_media_status() argument 393 enum i2400m_media_status status = le32_to_cpu(ms->media_status); in i2400m_report_tlv_media_status() 395 d_fnstart(3, dev, "(i2400m %p ms %p [%u])\n", i2400m, ms, status); in i2400m_report_tlv_media_status() 417 i2400m, ms, status); in i2400m_report_tlv_media_status() 437 const struct i2400m_tlv_media_status *ms; in i2400m_report_state_parse_tlv() local 458 if (0 == i2400m_tlv_match(tlv, I2400M_TLV_MEDIA_STATUS, sizeof(*ms))) { in i2400m_report_state_parse_tlv() 459 ms = container_of(tlv, typeof(*ms), hdr); in i2400m_report_state_parse_tlv() 461 tag, le32_to_cpu(ms->media_status)); in i2400m_report_state_parse_tlv() 462 i2400m_report_tlv_media_status(i2400m, ms); in i2400m_report_state_parse_tlv()
|
/drivers/mtd/tests/ |
D | speedtest.c | 183 long ms; in calc_speed() local 185 ms = ktime_ms_delta(finish, start); in calc_speed() 186 if (ms == 0) in calc_speed() 189 do_div(k, ms); in calc_speed()
|
D | torturetest.c | 334 long ms; in tort_init() local 337 ms = ktime_ms_delta(finish, start); in tort_init() 340 erase_cycles, ms, ms / 1000); in tort_init()
|
/drivers/input/serio/ |
D | i8042-sparcio.h | 71 struct platform_device *ms = of_find_device_by_node(dp); in sparc_i8042_probe() local 72 unsigned int irq = ms->archdata.irqs[0]; in sparc_i8042_probe()
|
/drivers/ssb/ |
D | ssb_private.h | 230 extern u32 ssb_chipco_watchdog_timer_set_ms(struct bcm47xx_wdt *wdt, u32 ms); 253 extern u32 ssb_extif_watchdog_timer_set_ms(struct bcm47xx_wdt *wdt, u32 ms); 261 u32 ms) in ssb_extif_watchdog_timer_set_ms() argument
|
/drivers/net/ethernet/chelsio/cxgb4vf/ |
D | t4vf_hw.c | 137 int i, ms, delay_idx, ret; in t4vf_wr_mbox_core() local 170 ms = delay[0]; in t4vf_wr_mbox_core() 172 for (i = 0; ; i += ms) { in t4vf_wr_mbox_core() 196 ms = delay[delay_idx]; /* last element may repeat */ in t4vf_wr_mbox_core() 199 msleep(ms); in t4vf_wr_mbox_core() 201 mdelay(ms); in t4vf_wr_mbox_core() 248 ms = delay[0]; in t4vf_wr_mbox_core() 250 for (i = 0; i < FW_CMD_MAX_TIMEOUT; i += ms) { in t4vf_wr_mbox_core() 252 ms = delay[delay_idx]; in t4vf_wr_mbox_core() 255 msleep(ms); in t4vf_wr_mbox_core() [all …]
|