/drivers/scsi/ |
D | mesh.c | 186 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/ |
D | spi-mpc52xx.c | 82 int (*state)(int irq, struct mpc52xx_spi *ms, u8 status, u8 data); 95 static void mpc52xx_spi_chipsel(struct mpc52xx_spi *ms, int value) in mpc52xx_spi_chipsel() argument 99 if (ms->gpio_cs_count > 0) { in mpc52xx_spi_chipsel() 100 cs = ms->message->spi->chip_select; in mpc52xx_spi_chipsel() 101 gpio_set_value(ms->gpio_cs[cs], value ? 0 : 1); in mpc52xx_spi_chipsel() 103 out_8(ms->regs + SPI_PORTDATA, value ? 0 : 0x08); in mpc52xx_spi_chipsel() 111 static void mpc52xx_spi_start_transfer(struct mpc52xx_spi *ms) in mpc52xx_spi_start_transfer() argument 113 ms->rx_buf = ms->transfer->rx_buf; in mpc52xx_spi_start_transfer() 114 ms->tx_buf = ms->transfer->tx_buf; in mpc52xx_spi_start_transfer() 115 ms->len = ms->transfer->len; in mpc52xx_spi_start_transfer() [all …]
|
D | spi-dw-dma.c | 209 unsigned long long ms; in dw_spi_dma_wait() local 211 ms = len * MSEC_PER_SEC * BITS_PER_BYTE; in dw_spi_dma_wait() 212 do_div(ms, speed); in dw_spi_dma_wait() 213 ms += ms + 200; in dw_spi_dma_wait() 215 if (ms > UINT_MAX) in dw_spi_dma_wait() 216 ms = UINT_MAX; in dw_spi_dma_wait() 218 ms = wait_for_completion_timeout(&dws->dma_completion, in dw_spi_dma_wait() 219 msecs_to_jiffies(ms)); in dw_spi_dma_wait() 221 if (ms == 0) { in dw_spi_dma_wait()
|
D | spi-s3c64xx.c | 474 int ms; in s3c64xx_wait_for_dma() local 477 ms = xfer->len * 8 * 1000 / sdd->cur_speed; in s3c64xx_wait_for_dma() 478 ms += 30; /* some tolerance */ in s3c64xx_wait_for_dma() 479 ms = max(ms, 100); /* minimum timeout */ in s3c64xx_wait_for_dma() 481 val = msecs_to_jiffies(ms) + 10; in s3c64xx_wait_for_dma() 521 int ms; in s3c64xx_wait_for_pio() local 524 ms = xfer->len * 8 * 1000 / sdd->cur_speed; in s3c64xx_wait_for_pio() 525 ms += 10; /* some tolerance */ in s3c64xx_wait_for_pio() 527 val = msecs_to_loops(ms); in s3c64xx_wait_for_pio() 554 (loops ? ms : 0)); in s3c64xx_wait_for_pio()
|
/drivers/md/ |
D | dm-raid1.c | 46 struct mirror_set *ms; member 94 struct mirror_set *ms = context; in wakeup_mirrord() local 96 queue_work(ms->kmirrord_wq, &ms->kmirrord_work); in wakeup_mirrord() 101 struct mirror_set *ms = from_timer(ms, t, timer); in delayed_wake_fn() local 103 clear_bit(0, &ms->timer_pending); in delayed_wake_fn() 104 wakeup_mirrord(ms); in delayed_wake_fn() 107 static void delayed_wake(struct mirror_set *ms) in delayed_wake() argument 109 if (test_and_set_bit(0, &ms->timer_pending)) in delayed_wake() 112 ms->timer.expires = jiffies + HZ / 5; in delayed_wake() 113 add_timer(&ms->timer); in delayed_wake() [all …]
|
/drivers/hid/ |
D | hid-microsoft.c | 62 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/scsi/bfa/ |
D | bfa_fcs_lport.c | 1481 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/ |
D | qlcnic_hw.c | 1298 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/ |
D | malidp_planes.c | 138 struct malidp_plane_state *ms = to_malidp_plane_state(state); in malidp_plane_atomic_print_state() local 140 drm_printf(p, "\trotmem_size=%u\n", ms->rotmem_size); in malidp_plane_atomic_print_state() 141 drm_printf(p, "\tformat_id=%u\n", ms->format); in malidp_plane_atomic_print_state() 142 drm_printf(p, "\tn_planes=%u\n", ms->n_planes); in malidp_plane_atomic_print_state() 144 prefetch_mode_names[ms->mmu_prefetch_mode]); in malidp_plane_atomic_print_state() 145 drm_printf(p, "\tmmu_prefetch_pgsize=%d\n", ms->mmu_prefetch_pgsize); in malidp_plane_atomic_print_state() 332 static bool malidp_check_pages_threshold(struct malidp_plane_state *ms, in malidp_check_pages_threshold() argument 337 for (i = 0; i < ms->n_planes; i++) { in malidp_check_pages_threshold() 343 obj = drm_gem_fb_get_obj(ms->base.fb, i); in malidp_check_pages_threshold() 436 (struct malidp_plane_state *ms, u32 *pgsize_bitmap) in malidp_mmu_prefetch_select_mode() argument [all …]
|
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | pno.c | 367 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/ |
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/clk/rockchip/ |
D | clk.h | 462 #define COMPOSITE(_id, cname, pnames, f, mo, ms, mw, mf, ds, dw,\ argument 472 .mux_shift = ms, \ 483 #define COMPOSITE_DIV_OFFSET(_id, cname, pnames, f, mo, ms, mw, \ argument 493 .mux_shift = ms, \ 542 #define COMPOSITE_NODIV(_id, cname, pnames, f, mo, ms, mw, mf, \ argument 552 .mux_shift = ms, \ 560 #define COMPOSITE_NOGATE(_id, cname, pnames, f, mo, ms, mw, mf, \ argument 570 .mux_shift = ms, \ 579 #define COMPOSITE_NOGATE_DIVTBL(_id, cname, pnames, f, mo, ms, \ argument 589 .mux_shift = ms, \ [all …]
|
/drivers/mmc/core/ |
D | core.h | 63 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/scsi/aic94xx/ |
D | aic94xx_sds.c | 665 static int asd_validate_ms(struct asd_manuf_sec *ms) in asd_validate_ms() argument 667 if (ms->sig[0] != 'S' || ms->sig[1] != 'M') { in asd_validate_ms() 669 ms->sig[0], ms->sig[1]); in asd_validate_ms() 672 if (ms->maj != 0) { in asd_validate_ms() 674 ms->maj); in asd_validate_ms() 677 ms->offs_next = le16_to_cpu((__force __le16) ms->offs_next); in asd_validate_ms() 678 ms->chksum = le16_to_cpu((__force __le16) ms->chksum); in asd_validate_ms() 679 ms->size = le16_to_cpu((__force __le16) ms->size); in asd_validate_ms() 681 if (asd_calc_flash_chksum((u16 *)ms, ms->size/2)) { in asd_validate_ms() 689 struct asd_manuf_sec *ms) in asd_ms_get_sas_addr() argument [all …]
|
/drivers/media/dvb-frontends/ |
D | horus3a.c | 173 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/gpu/drm/i915/ |
D | Kconfig.profile | 2 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)" 92 int "How long to wait for an engine to quiesce gracefully before reset (ms)" 106 int "Scheduling quantum for userspace batches (ms, jiffy granularity)"
|
/drivers/hwtracing/stm/ |
D | p_sys-t.c | 182 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/md/bcache/ |
D | io.c | 153 int ms = us / 1024; in bch_bbio_count_io_errors() local 157 ms = min(ms, CONGESTED_MAX + congested); in bch_bbio_count_io_errors() 158 atomic_sub(ms, &c->congested); in bch_bbio_count_io_errors()
|
/drivers/media/test-drivers/vivid/ |
D | vivid-rds-gen.c | 66 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/staging/r8188eu/hal/ |
D | odm_interface.c | 138 void ODM_delay_ms(u32 ms) in ODM_delay_ms() argument 140 mdelay(ms); in ODM_delay_ms() 148 void ODM_sleep_ms(u32 ms) in ODM_sleep_ms() argument 150 msleep(ms); in ODM_sleep_ms()
|
/drivers/media/test-drivers/vimc/ |
D | vimc-sensor.c | 225 unsigned int ms; in vimc_sen_process_frame() local 227 ms = div_u64(ktime_get_ns() - vsen->start_stream_ts, 1000000); in vimc_sen_process_frame() 229 (ms / (60 * 60 * 1000)) % 24, in vimc_sen_process_frame() 230 (ms / (60 * 1000)) % 60, in vimc_sen_process_frame() 231 (ms / 1000) % 60, in vimc_sen_process_frame() 232 ms % 1000); in vimc_sen_process_frame()
|
/drivers/ssb/ |
D | ssb_private.h | 198 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/mtd/tests/ |
D | speedtest.c | 164 long ms; in calc_speed() local 166 ms = ktime_ms_delta(finish, start); in calc_speed() 167 if (ms == 0) in calc_speed() 170 do_div(k, ms); in calc_speed()
|
/drivers/most/ |
D | configfs.c | 599 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()
|