Home
last modified time | relevance | path

Searched refs:ms (Results 1 – 25 of 132) sorted by relevance

123456

/drivers/scsi/
Dmesh.c186 static void mesh_done(struct mesh_state *ms, int start_next);
187 static void mesh_interrupt(struct mesh_state *ms);
188 static void cmd_complete(struct mesh_state *ms);
189 static void set_dma_cmds(struct mesh_state *ms, struct scsi_cmnd *cmd);
190 static void halt_dma(struct mesh_state *ms);
191 static void phase_mismatch(struct mesh_state *ms);
213 static void dlog(struct mesh_state *ms, char *fmt, int a) in dlog() argument
215 struct mesh_target *tp = &ms->tgts[ms->conn_tgt]; in dlog()
219 slp = &ms->log[ms->log_ix]; in dlog()
222 tlp->phase = (ms->msgphase << 4) + ms->phase; in dlog()
[all …]
/drivers/spi/
Dspi-mpc52xx.c86 int (*state)(int irq, struct mpc52xx_spi *ms, u8 status, u8 data);
99 static void mpc52xx_spi_chipsel(struct mpc52xx_spi *ms, int value) in mpc52xx_spi_chipsel() argument
103 if (ms->gpio_cs_count > 0) { in mpc52xx_spi_chipsel()
104 cs = spi_get_chipselect(ms->message->spi, 0); in mpc52xx_spi_chipsel()
105 gpiod_set_value(ms->gpio_cs[cs], value); in mpc52xx_spi_chipsel()
107 out_8(ms->regs + SPI_PORTDATA, value ? 0 : 0x08); in mpc52xx_spi_chipsel()
116 static void mpc52xx_spi_start_transfer(struct mpc52xx_spi *ms) in mpc52xx_spi_start_transfer() argument
118 ms->rx_buf = ms->transfer->rx_buf; in mpc52xx_spi_start_transfer()
119 ms->tx_buf = ms->transfer->tx_buf; in mpc52xx_spi_start_transfer()
120 ms->len = ms->transfer->len; in mpc52xx_spi_start_transfer()
[all …]
Dspi-mtk-snfi.c645 struct mtk_snand *ms = nand_to_mtk_snand(nand); in mtk_snand_ooblayout_free() local
647 if (section >= ms->nfi_cfg.nsectors) in mtk_snand_ooblayout_free()
650 oobfree->length = ms->caps->fdm_size - 1; in mtk_snand_ooblayout_free()
651 oobfree->offset = section * ms->caps->fdm_size + 1; in mtk_snand_ooblayout_free()
1258 struct mtk_snand *ms = spi_controller_get_devdata(mem->spi->master); in mtk_snand_adjust_op_size() local
1266 if (ms->autofmt) in mtk_snand_adjust_op_size()
1268 l = ms->caps->sector_size + ms->nfi_cfg.spare_size; in mtk_snand_adjust_op_size()
1269 l *= ms->nfi_cfg.nsectors; in mtk_snand_adjust_op_size()
1285 struct mtk_snand *ms = spi_controller_get_devdata(mem->spi->master); in mtk_snand_exec_op() local
1287 dev_dbg(ms->dev, "OP %02x ADDR %08llX@%d:%u DATA %d:%u", op->cmd.opcode, in mtk_snand_exec_op()
[all …]
Dspi-dw-dma.c261 unsigned long long ms; in dw_spi_dma_wait() local
263 ms = len * MSEC_PER_SEC * BITS_PER_BYTE; in dw_spi_dma_wait()
264 do_div(ms, speed); in dw_spi_dma_wait()
265 ms += ms + 200; in dw_spi_dma_wait()
267 if (ms > UINT_MAX) in dw_spi_dma_wait()
268 ms = UINT_MAX; in dw_spi_dma_wait()
270 ms = wait_for_completion_timeout(&dws->dma_completion, in dw_spi_dma_wait()
271 msecs_to_jiffies(ms)); in dw_spi_dma_wait()
273 if (ms == 0) { in dw_spi_dma_wait()
/drivers/md/
Ddm-raid1.c51 struct mirror_set *ms; member
99 struct mirror_set *ms = context; in wakeup_mirrord() local
101 queue_work(ms->kmirrord_wq, &ms->kmirrord_work); in wakeup_mirrord()
106 struct mirror_set *ms = from_timer(ms, t, timer); in delayed_wake_fn() local
108 clear_bit(0, &ms->timer_pending); in delayed_wake_fn()
109 wakeup_mirrord(ms); in delayed_wake_fn()
112 static void delayed_wake(struct mirror_set *ms) in delayed_wake() argument
114 if (test_and_set_bit(0, &ms->timer_pending)) in delayed_wake()
117 ms->timer.expires = jiffies + HZ / 5; in delayed_wake()
118 add_timer(&ms->timer); in delayed_wake()
[all …]
/drivers/hid/
Dhid-microsoft.c62 struct ms_data *ms = hid_get_drvdata(hdev); in ms_report_fixup() local
63 unsigned long quirks = ms->quirks; in ms_report_fixup()
186 struct ms_data *ms = hid_get_drvdata(hdev); in ms_input_mapping() local
187 unsigned long quirks = ms->quirks; in ms_input_mapping()
213 struct ms_data *ms = hid_get_drvdata(hdev); in ms_input_mapped() local
214 unsigned long quirks = ms->quirks; in ms_input_mapped()
225 struct ms_data *ms = hid_get_drvdata(hdev); in ms_event() local
226 unsigned long quirks = ms->quirks; in ms_event()
283 struct ms_data *ms = container_of(work, struct ms_data, ff_worker); in ms_ff_worker() local
284 struct hid_device *hdev = ms->hdev; in ms_ff_worker()
[all …]
/drivers/platform/x86/amd/pmf/
Dcnqf.c273 struct cnqf_mode_settings *ms; in amd_pmf_update_mode_set() local
276 ms = &config_store.mode_set[idx][CNQF_MODE_QUIET]; in amd_pmf_update_mode_set()
277 ms->power_floor = out->ps[APMF_CNQF_QUIET].pfloor; in amd_pmf_update_mode_set()
278 ms->power_control.fppt = out->ps[APMF_CNQF_QUIET].fppt; in amd_pmf_update_mode_set()
279 ms->power_control.sppt = out->ps[APMF_CNQF_QUIET].sppt; in amd_pmf_update_mode_set()
280 ms->power_control.sppt_apu_only = out->ps[APMF_CNQF_QUIET].sppt_apu_only; in amd_pmf_update_mode_set()
281 ms->power_control.spl = out->ps[APMF_CNQF_QUIET].spl; in amd_pmf_update_mode_set()
282 ms->power_control.stt_min = out->ps[APMF_CNQF_QUIET].stt_min_limit; in amd_pmf_update_mode_set()
283 ms->power_control.stt_skin_temp[STT_TEMP_APU] = in amd_pmf_update_mode_set()
285 ms->power_control.stt_skin_temp[STT_TEMP_HS2] = in amd_pmf_update_mode_set()
[all …]
/drivers/scsi/bfa/
Dbfa_fcs_lport.c1481 struct bfa_fcs_lport_s *port = fdmi->ms->port; in bfa_fcs_lport_fdmi_sm_offline()
1521 struct bfa_fcs_lport_s *port = fdmi->ms->port; in bfa_fcs_lport_fdmi_sm_sending_rhba()
1546 struct bfa_fcs_lport_s *port = fdmi->ms->port; in bfa_fcs_lport_fdmi_sm_rhba()
1595 struct bfa_fcs_lport_s *port = fdmi->ms->port; in bfa_fcs_lport_fdmi_sm_rhba_retry()
1626 struct bfa_fcs_lport_s *port = fdmi->ms->port; in bfa_fcs_lport_fdmi_sm_sending_rprt()
1651 struct bfa_fcs_lport_s *port = fdmi->ms->port; in bfa_fcs_lport_fdmi_sm_rprt()
1698 struct bfa_fcs_lport_s *port = fdmi->ms->port; in bfa_fcs_lport_fdmi_sm_rprt_retry()
1729 struct bfa_fcs_lport_s *port = fdmi->ms->port; in bfa_fcs_lport_fdmi_sm_sending_rpa()
1754 struct bfa_fcs_lport_s *port = fdmi->ms->port; in bfa_fcs_lport_fdmi_sm_rpa()
1799 struct bfa_fcs_lport_s *port = fdmi->ms->port; in bfa_fcs_lport_fdmi_sm_rpa_retry()
[all …]
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_hw.c1298 struct qlcnic_ms_reg_ctrl *ms) in qlcnic_set_ms_controls() argument
1300 ms->control = QLCNIC_MS_CTRL; in qlcnic_set_ms_controls()
1301 ms->low = QLCNIC_MS_ADDR_LO; in qlcnic_set_ms_controls()
1302 ms->hi = QLCNIC_MS_ADDR_HI; in qlcnic_set_ms_controls()
1304 ms->wd[0] = QLCNIC_MS_WRTDATA_LO; in qlcnic_set_ms_controls()
1305 ms->rd[0] = QLCNIC_MS_RDDATA_LO; in qlcnic_set_ms_controls()
1306 ms->wd[1] = QLCNIC_MS_WRTDATA_HI; in qlcnic_set_ms_controls()
1307 ms->rd[1] = QLCNIC_MS_RDDATA_HI; in qlcnic_set_ms_controls()
1308 ms->wd[2] = QLCNIC_MS_WRTDATA_ULO; in qlcnic_set_ms_controls()
1309 ms->wd[3] = QLCNIC_MS_WRTDATA_UHI; in qlcnic_set_ms_controls()
[all …]
/drivers/gpu/drm/arm/
Dmalidp_planes.c131 struct malidp_plane_state *ms = to_malidp_plane_state(state); in malidp_plane_atomic_print_state() local
133 drm_printf(p, "\trotmem_size=%u\n", ms->rotmem_size); in malidp_plane_atomic_print_state()
134 drm_printf(p, "\tformat_id=%u\n", ms->format); in malidp_plane_atomic_print_state()
135 drm_printf(p, "\tn_planes=%u\n", ms->n_planes); in malidp_plane_atomic_print_state()
137 prefetch_mode_names[ms->mmu_prefetch_mode]); in malidp_plane_atomic_print_state()
138 drm_printf(p, "\tmmu_prefetch_pgsize=%d\n", ms->mmu_prefetch_pgsize); in malidp_plane_atomic_print_state()
320 static bool malidp_check_pages_threshold(struct malidp_plane_state *ms, in malidp_check_pages_threshold() argument
325 for (i = 0; i < ms->n_planes; i++) { in malidp_check_pages_threshold()
331 obj = drm_gem_fb_get_obj(ms->base.fb, i); in malidp_check_pages_threshold()
424 (struct malidp_plane_state *ms, u32 *pgsize_bitmap) in malidp_mmu_prefetch_select_mode() argument
[all …]
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dpno.c367 struct cfg80211_match_set *ms; in brcmf_pno_config_networks() local
375 ms = &r->match_sets[j]; in brcmf_pno_config_networks()
376 if (ms->ssid.ssid_len) { in brcmf_pno_config_networks()
377 active = brcmf_is_ssid_active(&ms->ssid, r); in brcmf_pno_config_networks()
378 err = brcmf_pno_add_ssid(ifp, &ms->ssid, in brcmf_pno_config_networks()
381 if (!err && is_valid_ether_addr(ms->bssid)) in brcmf_pno_config_networks()
382 err = brcmf_pno_add_bssid(ifp, ms->bssid); in brcmf_pno_config_networks()
569 struct cfg80211_match_set *ms; in brcmf_pno_get_bucket_map() local
580 ms = &req->match_sets[j]; in brcmf_pno_get_bucket_map()
581 if (ms->ssid.ssid_len == ni->SSID_len && in brcmf_pno_get_bucket_map()
[all …]
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Dbrcms_trace_brcmsmac.h43 __field(uint, ms)
48 __entry->ms = t->ms;
54 __entry->ms, __entry->set, __entry->periodic
Dmac80211_if.h41 uint ms; member
107 void brcms_add_timer(struct brcms_timer *timer, uint ms, int periodic);
/drivers/mmc/core/
Dcore.h63 static inline void mmc_delay(unsigned int ms) in mmc_delay() argument
65 if (ms <= 20) in mmc_delay()
66 usleep_range(ms * 1000, ms * 1250); in mmc_delay()
68 msleep(ms); in mmc_delay()
/drivers/clk/rockchip/
Dclk.h550 #define COMPOSITE(_id, cname, pnames, f, mo, ms, mw, mf, ds, dw,\ argument
560 .mux_shift = ms, \
571 #define COMPOSITE_DIV_OFFSET(_id, cname, pnames, f, mo, ms, mw, \ argument
581 .mux_shift = ms, \
630 #define COMPOSITE_NODIV(_id, cname, pnames, f, mo, ms, mw, mf, \ argument
640 .mux_shift = ms, \
648 #define COMPOSITE_NOGATE(_id, cname, pnames, f, mo, ms, mw, mf, \ argument
658 .mux_shift = ms, \
667 #define COMPOSITE_NOGATE_DIVTBL(_id, cname, pnames, f, mo, ms, \ argument
677 .mux_shift = ms, \
[all …]
/drivers/scsi/aic94xx/
Daic94xx_sds.c667 static int asd_validate_ms(struct asd_manuf_sec *ms) in asd_validate_ms() argument
669 if (ms->sig[0] != 'S' || ms->sig[1] != 'M') { in asd_validate_ms()
671 ms->sig[0], ms->sig[1]); in asd_validate_ms()
674 if (ms->maj != 0) { in asd_validate_ms()
676 ms->maj); in asd_validate_ms()
679 ms->offs_next = le16_to_cpu((__force __le16) ms->offs_next); in asd_validate_ms()
680 ms->chksum = le16_to_cpu((__force __le16) ms->chksum); in asd_validate_ms()
681 ms->size = le16_to_cpu((__force __le16) ms->size); in asd_validate_ms()
683 if (asd_calc_flash_chksum((u16 *)ms, ms->size/2)) { in asd_validate_ms()
691 struct asd_manuf_sec *ms) in asd_ms_get_sas_addr() argument
[all …]
/drivers/gpu/drm/i915/
DKconfig.profile2 int "Default timeout for requests (ms)"
16 int "Timeout for unsignaled foreign fences (ms, jiffy granularity)"
28 int "Runtime autosuspend delay for userspace GGTT mmaps (ms)"
42 int "Interval between heartbeat pulses (ms)"
56 int "Preempt timeout (ms, jiffy granularity)"
74 int "Preempt timeout for compute engines (ms, jiffy granularity)"
110 int "How long to wait for an engine to quiesce gracefully before reset (ms)"
124 int "Scheduling quantum for userspace batches (ms, jiffy granularity)"
/drivers/media/dvb-frontends/
Dhorus3a.c173 u32 ms = 0; in horus3a_set_params() local
196 ms = DIV_ROUND_CLOSEST((frequency * mixdiv) / 2, 1000); in horus3a_set_params()
197 if (ms > 0x7FFF) { /* 15 bit */ in horus3a_set_params()
292 data[0] = (u8)((ms >> 7) & 0xFF); in horus3a_set_params()
293 data[1] = (u8)((ms << 1) & 0xFF); in horus3a_set_params()
309 priv->frequency = ms * 2 * 1000 / mixdiv; in horus3a_set_params()
/drivers/hwtracing/stm/
Dp_sys-t.c182 unsigned int ms; in sys_t_policy_ts_interval_store() local
186 ret = kstrtouint(page, 10, &ms); in sys_t_policy_ts_interval_store()
190 pn->ts_interval = msecs_to_jiffies(ms); in sys_t_policy_ts_interval_store()
213 unsigned int ms; in sys_t_policy_clocksync_interval_store() local
217 ret = kstrtouint(page, 10, &ms); in sys_t_policy_clocksync_interval_store()
221 pn->clocksync_interval = msecs_to_jiffies(ms); in sys_t_policy_clocksync_interval_store()
/drivers/media/test-drivers/vivid/
Dvivid-rds-gen.c66 data[1].lsb |= (rds->ta << 4) | (rds->ms << 3); in vivid_rds_generate()
113 data[1].lsb |= (rds->ta << 4) | (rds->ms << 3); in vivid_rds_generate()
120 data[3].lsb |= (rds->ta << 4) | (rds->ms << 3); in vivid_rds_generate()
146 rds->ms = true; in vivid_rds_gen_fill()
/drivers/md/bcache/
Dio.c154 int ms = us / 1024; in bch_bbio_count_io_errors() local
158 ms = min(ms, CONGESTED_MAX + congested); in bch_bbio_count_io_errors()
159 atomic_sub(ms, &c->congested); in bch_bbio_count_io_errors()
/drivers/media/test-drivers/vimc/
Dvimc-sensor.c226 unsigned int ms; in vimc_sensor_process_frame() local
228 ms = div_u64(ktime_get_ns() - vsensor->start_stream_ts, 1000000); in vimc_sensor_process_frame()
230 (ms / (60 * 60 * 1000)) % 24, in vimc_sensor_process_frame()
231 (ms / (60 * 1000)) % 60, in vimc_sensor_process_frame()
232 (ms / 1000) % 60, in vimc_sensor_process_frame()
233 ms % 1000); in vimc_sensor_process_frame()
/drivers/auxdisplay/
Dline-display.c167 unsigned int ms; in scroll_step_ms_store() local
169 if (kstrtouint(buf, 10, &ms) != 0) in scroll_step_ms_store()
172 linedisp->scroll_rate = msecs_to_jiffies(ms); in scroll_step_ms_store()
/drivers/ssb/
Dssb_private.h198 extern u32 ssb_chipco_watchdog_timer_set_ms(struct bcm47xx_wdt *wdt, u32 ms);
221 extern u32 ssb_extif_watchdog_timer_set_ms(struct bcm47xx_wdt *wdt, u32 ms);
229 u32 ms) in ssb_extif_watchdog_timer_set_ms() argument
/drivers/most/
Dconfigfs.c599 struct most_sound *ms = container_of(group->cg_subsys, in most_sound_make_group() local
602 list_for_each_entry(most, &ms->soundcard_list, list) { in most_sound_make_group()
608 if (!try_module_get(ms->mod)) in most_sound_make_group()
612 module_put(ms->mod); in most_sound_make_group()
616 list_add_tail(&most->list, &ms->soundcard_list); in most_sound_make_group()
623 struct most_sound *ms = container_of(group->cg_subsys, in most_sound_disconnect() local
625 module_put(ms->mod); in most_sound_disconnect()

123456