/drivers/spi/ |
D | spi-rockchip.c | 203 static inline void spi_enable_chip(struct rockchip_spi *rs, int enable) in spi_enable_chip() argument 205 writel_relaxed((enable ? 1 : 0), rs->regs + ROCKCHIP_SPI_SSIENR); in spi_enable_chip() 208 static inline void spi_set_clk(struct rockchip_spi *rs, u16 div) in spi_set_clk() argument 210 writel_relaxed(div, rs->regs + ROCKCHIP_SPI_BAUDR); in spi_set_clk() 213 static inline void flush_fifo(struct rockchip_spi *rs) in flush_fifo() argument 215 while (readl_relaxed(rs->regs + ROCKCHIP_SPI_RXFLR)) in flush_fifo() 216 readl_relaxed(rs->regs + ROCKCHIP_SPI_RXDR); in flush_fifo() 219 static inline void wait_for_idle(struct rockchip_spi *rs) in wait_for_idle() argument 224 if (!(readl_relaxed(rs->regs + ROCKCHIP_SPI_SR) & SR_BUSY)) in wait_for_idle() 228 dev_warn(rs->dev, "spi controller is in busy state!\n"); in wait_for_idle() [all …]
|
/drivers/md/ |
D | dm-raid.c | 230 static void rs_config_backup(struct raid_set *rs, struct rs_layout *l) in rs_config_backup() argument 232 struct mddev *mddev = &rs->md; in rs_config_backup() 239 static void rs_config_restore(struct raid_set *rs, struct rs_layout *l) in rs_config_restore() argument 241 struct mddev *mddev = &rs->md; in rs_config_restore() 335 static bool rs_is_raid0(struct raid_set *rs) in rs_is_raid0() argument 337 return !rs->md.level; in rs_is_raid0() 341 static bool rs_is_raid1(struct raid_set *rs) in rs_is_raid1() argument 343 return rs->md.level == 1; in rs_is_raid1() 347 static bool rs_is_raid10(struct raid_set *rs) in rs_is_raid10() argument 349 return rs->md.level == 10; in rs_is_raid10() [all …]
|
/drivers/isdn/i4l/ |
D | isdn_ttyfax.c | 52 char rs[50]; in isdn_tty_fax_modem_result() local 78 sprintf(rs, "/%s", m->cpn); in isdn_tty_fax_modem_result() 79 isdn_tty_at_cout(rs, info); in isdn_tty_fax_modem_result() 88 sprintf(rs, "\"%s\"", f->r_id); in isdn_tty_fax_modem_result() 89 isdn_tty_at_cout(rs, info); in isdn_tty_fax_modem_result() 92 rs[0] = 0; in isdn_tty_fax_modem_result() 97 strcat(rs, rss); in isdn_tty_fax_modem_result() 99 isdn_tty_at_cout(rs, info); in isdn_tty_fax_modem_result() 102 rs, info->line); in isdn_tty_fax_modem_result() 106 sprintf(rs, "%d", f->code); in isdn_tty_fax_modem_result() [all …]
|
D | isdn_ppp.c | 2308 if (is->reset->rs[id]) { in isdn_ppp_ccp_reset_free() 2320 struct ippp_ccp_reset_state *rs; in isdn_ppp_ccp_reset_free_state() local 2322 if (is->reset->rs[id]) { in isdn_ppp_ccp_reset_free_state() 2324 rs = is->reset->rs[id]; in isdn_ppp_ccp_reset_free_state() 2326 if (rs->ta) in isdn_ppp_ccp_reset_free_state() 2327 del_timer(&rs->timer); in isdn_ppp_ccp_reset_free_state() 2328 is->reset->rs[id] = NULL; in isdn_ppp_ccp_reset_free_state() 2329 kfree(rs); in isdn_ppp_ccp_reset_free_state() 2339 struct ippp_ccp_reset_state *rs = in isdn_ppp_ccp_timer_callback() local 2342 if (!rs) { in isdn_ppp_ccp_timer_callback() [all …]
|
/drivers/staging/lustre/lustre/ptlrpc/ |
D | sec_null.c | 308 struct ptlrpc_reply_state *rs; in null_alloc_rs() local 309 int rs_size = sizeof(*rs) + msgsize; in null_alloc_rs() 313 rs = req->rq_reply_state; in null_alloc_rs() 315 if (rs) { in null_alloc_rs() 317 LASSERT(rs->rs_size >= rs_size); in null_alloc_rs() 319 rs = libcfs_kvzalloc(rs_size, GFP_NOFS); in null_alloc_rs() 320 if (!rs) in null_alloc_rs() 323 rs->rs_size = rs_size; in null_alloc_rs() 326 rs->rs_svc_ctx = req->rq_svc_ctx; in null_alloc_rs() 329 rs->rs_repbuf = (struct lustre_msg *)(rs + 1); in null_alloc_rs() [all …]
|
D | sec_plain.c | 788 struct ptlrpc_reply_state *rs; in plain_alloc_rs() local 790 int rs_size = sizeof(*rs); in plain_alloc_rs() 802 rs = req->rq_reply_state; in plain_alloc_rs() 804 if (rs) { in plain_alloc_rs() 806 LASSERT(rs->rs_size >= rs_size); in plain_alloc_rs() 808 rs = libcfs_kvzalloc(rs_size, GFP_NOFS); in plain_alloc_rs() 809 if (!rs) in plain_alloc_rs() 812 rs->rs_size = rs_size; in plain_alloc_rs() 815 rs->rs_svc_ctx = req->rq_svc_ctx; in plain_alloc_rs() 817 rs->rs_repbuf = (struct lustre_msg *)(rs + 1); in plain_alloc_rs() [all …]
|
D | service.c | 249 void ptlrpc_dispatch_difficult_reply(struct ptlrpc_reply_state *rs) in ptlrpc_dispatch_difficult_reply() argument 253 LASSERT(list_empty(&rs->rs_list)); in ptlrpc_dispatch_difficult_reply() 255 hrt = ptlrpc_hr_select(rs->rs_svcpt); in ptlrpc_dispatch_difficult_reply() 258 list_add_tail(&rs->rs_list, &hrt->hrt_queue); in ptlrpc_dispatch_difficult_reply() 265 ptlrpc_schedule_difficult_reply(struct ptlrpc_reply_state *rs) in ptlrpc_schedule_difficult_reply() argument 267 assert_spin_locked(&rs->rs_svcpt->scp_rep_lock); in ptlrpc_schedule_difficult_reply() 268 assert_spin_locked(&rs->rs_lock); in ptlrpc_schedule_difficult_reply() 269 LASSERT(rs->rs_difficult); in ptlrpc_schedule_difficult_reply() 270 rs->rs_scheduled_ever = 1; /* flag any notification attempt */ in ptlrpc_schedule_difficult_reply() 272 if (rs->rs_scheduled) { /* being set up or already notified */ in ptlrpc_schedule_difficult_reply() [all …]
|
D | pack_generic.c | 230 #define PTLRPC_RS_DEBUG_LRU_ADD(rs) \ argument 233 list_add_tail(&(rs)->rs_debug_list, &ptlrpc_rs_debug_lru); \ 237 #define PTLRPC_RS_DEBUG_LRU_DEL(rs) \ argument 240 list_del(&(rs)->rs_debug_list); \ 244 # define PTLRPC_RS_DEBUG_LRU_ADD(rs) do {} while (0) argument 245 # define PTLRPC_RS_DEBUG_LRU_DEL(rs) do {} while (0) argument 251 struct ptlrpc_reply_state *rs = NULL; in lustre_get_emerg_rs() local 272 rs = list_entry(svcpt->scp_rep_idle.next, in lustre_get_emerg_rs() 274 list_del(&rs->rs_list); in lustre_get_emerg_rs() 278 memset(rs, 0, svcpt->scp_service->srv_max_reply_size); in lustre_get_emerg_rs() [all …]
|
D | events.c | 395 struct ptlrpc_reply_state *rs = cbid->cbid_arg; in reply_out_callback() local 396 struct ptlrpc_service_part *svcpt = rs->rs_svcpt; in reply_out_callback() 402 if (!rs->rs_difficult) { in reply_out_callback() 407 ptlrpc_rs_decref(rs); in reply_out_callback() 411 LASSERT(rs->rs_on_net); in reply_out_callback() 418 spin_lock(&rs->rs_lock); in reply_out_callback() 420 rs->rs_on_net = 0; in reply_out_callback() 421 if (!rs->rs_no_ack || in reply_out_callback() 422 rs->rs_transno <= in reply_out_callback() 423 rs->rs_export->exp_obd->obd_last_committed) in reply_out_callback() [all …]
|
D | niobuf.c | 351 struct ptlrpc_reply_state *rs = req->rq_reply_state; in ptlrpc_send_reply() local 364 LASSERT(rs); in ptlrpc_send_reply() 365 LASSERT((flags & PTLRPC_REPLY_MAYBE_DIFFICULT) || !rs->rs_difficult); in ptlrpc_send_reply() 367 LASSERT(req->rq_repmsg == rs->rs_msg); in ptlrpc_send_reply() 368 LASSERT(rs->rs_cb_id.cbid_fn == reply_out_callback); in ptlrpc_send_reply() 369 LASSERT(rs->rs_cb_id.cbid_arg == rs); in ptlrpc_send_reply() 416 ptlrpc_rs_addref(rs); /* +1 ref for the network */ in ptlrpc_send_reply() 424 rc = ptl_send_buf(&rs->rs_md_h, rs->rs_repbuf, rs->rs_repdata_len, in ptlrpc_send_reply() 425 (rs->rs_difficult && !rs->rs_no_ack) ? in ptlrpc_send_reply() 427 &rs->rs_cb_id, conn, in ptlrpc_send_reply()
|
/drivers/net/wireless/ath/ath5k/ |
D | desc.c | 603 struct ath5k_rx_status *rs) in ath5k_hw_proc_5210_rx_status() argument 614 memset(rs, 0, sizeof(struct ath5k_rx_status)); in ath5k_hw_proc_5210_rx_status() 619 rs->rs_datalen = rx_status->rx_status_0 & in ath5k_hw_proc_5210_rx_status() 621 rs->rs_rssi = AR5K_REG_MS(rx_status->rx_status_0, in ath5k_hw_proc_5210_rx_status() 623 rs->rs_rate = AR5K_REG_MS(rx_status->rx_status_0, in ath5k_hw_proc_5210_rx_status() 625 rs->rs_more = !!(rx_status->rx_status_0 & in ath5k_hw_proc_5210_rx_status() 632 rs->rs_tstamp = AR5K_REG_MS(rx_status->rx_status_1, in ath5k_hw_proc_5210_rx_status() 636 rs->rs_antenna = AR5K_REG_MS(rx_status->rx_status_0, in ath5k_hw_proc_5210_rx_status() 639 rs->rs_antenna = (rx_status->rx_status_0 & in ath5k_hw_proc_5210_rx_status() 647 rs->rs_keyix = AR5K_REG_MS(rx_status->rx_status_1, in ath5k_hw_proc_5210_rx_status() [all …]
|
D | base.c | 1213 struct ath5k_rx_status *rs) in ath5k_rx_decrypted() argument 1219 if (!(rs->rs_status & AR5K_RXERR_DECRYPT) && in ath5k_rx_decrypted() 1220 rs->rs_keyix != AR5K_RXKEYIX_INVALID) in ath5k_rx_decrypted() 1228 !(rs->rs_status & AR5K_RXERR_DECRYPT) && in ath5k_rx_decrypted() 1373 struct ath5k_rx_status *rs) in ath5k_receive_frame() argument 1383 if (unlikely(rs->rs_status & AR5K_RXERR_MIC)) in ath5k_receive_frame() 1385 if (unlikely(rs->rs_status & AR5K_RXERR_CRC)) in ath5k_receive_frame() 1398 rxs->mactime = ath5k_extend_tsf(ah, rs->rs_tstamp); in ath5k_receive_frame() 1404 rxs->signal = ah->ah_noise_floor + rs->rs_rssi; in ath5k_receive_frame() 1406 rxs->antenna = rs->rs_antenna; in ath5k_receive_frame() [all …]
|
/drivers/net/wireless/ath/ |
D | dfs_pri_detector.c | 236 if (delta_ts < pde->rs->pri_min) in pseq_handler_create_sequences() 240 if (delta_ts > pde->rs->pri_max) in pseq_handler_create_sequences() 249 ps.pri = GET_PRI_TO_USE(pde->rs->pri_min, in pseq_handler_create_sequences() 250 pde->rs->pri_max, ts - p->ts); in pseq_handler_create_sequences() 251 ps.dur = ps.pri * (pde->rs->ppb - 1) in pseq_handler_create_sequences() 252 + 2 * pde->rs->max_pri_tolerance; in pseq_handler_create_sequences() 265 pde->rs->max_pri_tolerance); in pseq_handler_create_sequences() 322 pde->rs->max_pri_tolerance); in pseq_handler_add_to_existing_seqs() 350 if ((ps->count >= pde->rs->ppb_thresh) && in pseq_handler_check_detection() 351 (ps->count * pde->rs->num_pri >= ps->count_falses)) in pseq_handler_check_detection() [all …]
|
D | dfs_pri_detector.h | 66 const struct radar_detector_specs *rs; member 75 struct pri_detector *pri_detector_init(const struct radar_detector_specs *rs);
|
/drivers/staging/lustre/lustre/ldlm/ |
D | ldlm_lib.c | 651 struct ptlrpc_reply_state *rs; in target_send_reply() local 658 rs = req->rq_reply_state; in target_send_reply() 659 if (!rs || !rs->rs_difficult) { in target_send_reply() 668 LASSERT(rs->rs_svcpt == svcpt); in target_send_reply() 671 LASSERT(!rs->rs_scheduled); in target_send_reply() 672 LASSERT(!rs->rs_scheduled_ever); in target_send_reply() 673 LASSERT(!rs->rs_handled); in target_send_reply() 674 LASSERT(!rs->rs_on_net); in target_send_reply() 675 LASSERT(!rs->rs_export); in target_send_reply() 676 LASSERT(list_empty(&rs->rs_obd_list)); in target_send_reply() [all …]
|
/drivers/net/wireless/ath/ath9k/ |
D | mac.c | 525 struct ath_rx_status *rs) in ath9k_hw_rxprocdesc() argument 536 rs->rs_status = 0; in ath9k_hw_rxprocdesc() 537 rs->rs_flags = 0; in ath9k_hw_rxprocdesc() 538 rs->flag = 0; in ath9k_hw_rxprocdesc() 540 rs->rs_datalen = ads.ds_rxstatus1 & AR_DataLen; in ath9k_hw_rxprocdesc() 541 rs->rs_tstamp = ads.AR_RcvTimestamp; in ath9k_hw_rxprocdesc() 544 rs->rs_rssi = ATH9K_RSSI_BAD; in ath9k_hw_rxprocdesc() 545 rs->rs_rssi_ctl[0] = ATH9K_RSSI_BAD; in ath9k_hw_rxprocdesc() 546 rs->rs_rssi_ctl[1] = ATH9K_RSSI_BAD; in ath9k_hw_rxprocdesc() 547 rs->rs_rssi_ctl[2] = ATH9K_RSSI_BAD; in ath9k_hw_rxprocdesc() [all …]
|
D | recv.c | 628 struct ath_rx_status *rs, in ath_edma_get_buffers() argument 648 ret = ath9k_hw_process_rxdesc_edma(ah, rs, skb->data); in ath_edma_get_buffers() 680 struct ath_rx_status *rs, in ath_edma_get_next_rx_buf() argument 685 while (ath_edma_get_buffers(sc, qtype, rs, &bf)) { in ath_edma_get_next_rx_buf() 695 struct ath_rx_status *rs) in ath_get_next_rx_buf() argument 725 ret = ath9k_hw_rxprocdesc(ah, ds, rs); in ath_get_next_rx_buf() 759 ret = ath9k_hw_rxprocdesc(ah, ds, rs); in ath_get_next_rx_buf() 765 rs->rs_datalen = 0; in ath_get_next_rx_buf() 766 rs->rs_more = true; in ath_get_next_rx_buf() 786 static void ath9k_process_tsf(struct ath_rx_status *rs, in ath9k_process_tsf() argument [all …]
|
D | common-debug.c | 91 struct ath_rx_status *rs) in ath9k_cmn_debug_stat_rx() argument 97 rxstats->rx_bytes_all += rs->rs_datalen; in ath9k_cmn_debug_stat_rx() 99 if (rs->rs_status & ATH9K_RXERR_CRC) in ath9k_cmn_debug_stat_rx() 101 if (rs->rs_status & ATH9K_RXERR_DECRYPT) in ath9k_cmn_debug_stat_rx() 103 if (rs->rs_status & ATH9K_RXERR_MIC) in ath9k_cmn_debug_stat_rx() 105 if (rs->rs_status & ATH9K_RX_DELIM_CRC_PRE) in ath9k_cmn_debug_stat_rx() 107 if (rs->rs_status & ATH9K_RX_DELIM_CRC_POST) in ath9k_cmn_debug_stat_rx() 109 if (rs->rs_status & ATH9K_RX_DECRYPT_BUSY) in ath9k_cmn_debug_stat_rx() 112 if (rs->rs_status & ATH9K_RXERR_PHY) { in ath9k_cmn_debug_stat_rx() 114 if (rs->rs_phyerr < ATH9K_PHYERR_MAX) in ath9k_cmn_debug_stat_rx() [all …]
|
D | dfs.c | 292 struct ath_rx_status *rs, u64 mactime) in ath9k_dfs_process_phyerr() argument 302 if ((rs->rs_phyerr != ATH9K_PHYERR_RADAR) && in ath9k_dfs_process_phyerr() 303 (rs->rs_phyerr != ATH9K_PHYERR_FALSE_RADAR_EXT)) { in ath9k_dfs_process_phyerr() 306 rs->rs_phyerr); in ath9k_dfs_process_phyerr() 311 datalen = rs->rs_datalen; in ath9k_dfs_process_phyerr() 317 ard.rssi = rs->rs_rssi_ctl[0]; in ath9k_dfs_process_phyerr() 318 ard.ext_rssi = rs->rs_rssi_ext[0]; in ath9k_dfs_process_phyerr()
|
D | common-spectral.c | 138 typedef int (ath_cmn_fft_sample_handler) (struct ath_rx_status *rs, 143 ath_cmn_process_ht20_fft(struct ath_rx_status *rs, in ath_cmn_process_ht20_fft() argument 163 fft_sample_20.rssi = fix_rssi_inv_only(rs->rs_rssi_ctl[0]); in ath_cmn_process_ht20_fft() 247 ath_cmn_process_ht20_40_fft(struct ath_rx_status *rs, in ath_cmn_process_ht20_40_fft() argument 280 lower_rssi = fix_rssi_inv_only(rs->rs_rssi_ctl[0]); in ath_cmn_process_ht20_40_fft() 281 upper_rssi = fix_rssi_inv_only(rs->rs_rssi_ext[0]); in ath_cmn_process_ht20_40_fft() 286 lower_rssi = fix_rssi_inv_only(rs->rs_rssi_ext[0]); in ath_cmn_process_ht20_40_fft() 287 upper_rssi = fix_rssi_inv_only(rs->rs_rssi_ctl[0]); in ath_cmn_process_ht20_40_fft() 497 struct ath_rx_status *rs, u64 tsf) in ath_cmn_process_fft() argument 504 int len = rs->rs_datalen; in ath_cmn_process_fft() [all …]
|
D | dfs.h | 38 struct ath_rx_status *rs, u64 mactime); 42 struct ath_rx_status *rs, u64 mactime) { } in ath9k_dfs_process_phyerr() argument
|
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
D | rate.c | 272 static bool brcms_c_rateset_valid(struct brcms_c_rateset *rs, bool check_brate) in brcms_c_rateset_valid() argument 276 if (!rs->count) in brcms_c_rateset_valid() 283 for (idx = 0; idx < rs->count; idx++) { in brcms_c_rateset_valid() 284 if (rs->rates[idx] & BRCMS_RATE_FLAG) in brcms_c_rateset_valid() 290 void brcms_c_rateset_mcs_upd(struct brcms_c_rateset *rs, u8 txstreams) in brcms_c_rateset_mcs_upd() argument 294 rs->mcs[i] = 0; in brcms_c_rateset_mcs_upd() 302 brcms_c_rate_hwrs_filter_sort_validate(struct brcms_c_rateset *rs, in brcms_c_rate_hwrs_filter_sort_validate() argument 312 count = rs->count; in brcms_c_rate_hwrs_filter_sort_validate() 316 r = (int)rs->rates[i] & BRCMS_RATE_MASK; in brcms_c_rate_hwrs_filter_sort_validate() 319 rateset[r] = rs->rates[i]; /* preserve basic bit! */ in brcms_c_rate_hwrs_filter_sort_validate() [all …]
|
/drivers/misc/ |
D | phantom.c | 93 struct phm_regs rs; in phantom_ioctl() local 133 if (copy_from_user(&rs, argp, sizeof(rs))) in phantom_ioctl() 136 pr_debug("phantom: SRS %u regs %x\n", rs.count, rs.mask); in phantom_ioctl() 139 memcpy(&dev->oregs, &rs, sizeof(rs)); in phantom_ioctl() 141 u32 m = min(rs.count, 8U); in phantom_ioctl() 143 if (rs.mask & BIT(i)) in phantom_ioctl() 144 iowrite32(rs.values[i], dev->oaddr + i); in phantom_ioctl() 166 if (copy_from_user(&rs, argp, sizeof(rs))) in phantom_ioctl() 169 m = min(rs.count, 8U); in phantom_ioctl() 171 pr_debug("phantom: GRS %u regs %x\n", rs.count, rs.mask); in phantom_ioctl() [all …]
|
/drivers/misc/mei/ |
D | hbm.c | 451 struct hbm_notification_response *rs = in notify_res_to_fop() local 454 return mei_cl_notify_req2fop(rs->start); in notify_res_to_fop() 469 struct hbm_notification_response *rs = in mei_hbm_cl_notify_start_res() local 472 cl_dbg(dev, cl, "hbm: notify start response status=%d\n", rs->status); in mei_hbm_cl_notify_start_res() 474 if (rs->status == MEI_HBMS_SUCCESS || in mei_hbm_cl_notify_start_res() 475 rs->status == MEI_HBMS_ALREADY_STARTED) { in mei_hbm_cl_notify_start_res() 495 struct hbm_notification_response *rs = in mei_hbm_cl_notify_stop_res() local 498 cl_dbg(dev, cl, "hbm: notify stop response status=%d\n", rs->status); in mei_hbm_cl_notify_stop_res() 500 if (rs->status == MEI_HBMS_SUCCESS || in mei_hbm_cl_notify_stop_res() 501 rs->status == MEI_HBMS_NOT_STARTED) { in mei_hbm_cl_notify_stop_res() [all …]
|
/drivers/net/wireless/intel/iwlegacy/ |
D | Makefile | 9 iwl4965-objs := 4965.o 4965-mac.o 4965-rs.o 4965-calib.o 14 iwl3945-objs := 3945-mac.o 3945.o 3945-rs.o
|