Home
last modified time | relevance | path

Searched refs:rs (Results 1 – 25 of 90) sorted by relevance

1234

/drivers/md/
Ddm-raid.c259 static void rs_config_backup(struct raid_set *rs, struct rs_layout *l) in rs_config_backup() argument
261 struct mddev *mddev = &rs->md; in rs_config_backup()
268 static void rs_config_restore(struct raid_set *rs, struct rs_layout *l) in rs_config_restore() argument
270 struct mddev *mddev = &rs->md; in rs_config_restore()
399 static bool rs_is_raid0(struct raid_set *rs) in rs_is_raid0() argument
401 return !rs->md.level; in rs_is_raid0()
405 static bool rs_is_raid1(struct raid_set *rs) in rs_is_raid1() argument
407 return rs->md.level == 1; in rs_is_raid1()
411 static bool rs_is_raid10(struct raid_set *rs) in rs_is_raid10() argument
413 return rs->md.level == 10; in rs_is_raid10()
[all …]
Ddm-clone-target.c289 unsigned long *rs, unsigned long *nr_regions) in bio_region_range() argument
293 *rs = dm_sector_div_up(bio->bi_iter.bi_sector, clone->region_size); in bio_region_range()
296 if (*rs >= end) in bio_region_range()
299 *nr_regions = end - *rs; in bio_region_range()
457 unsigned long rs, nr_regions; in complete_discard_bio() local
466 bio_region_range(clone, bio, &rs, &nr_regions); in complete_discard_bio()
467 trim_bio(bio, region_to_sector(clone, rs), in complete_discard_bio()
476 unsigned long rs, nr_regions; in process_discard_bio() local
478 bio_region_range(clone, bio, &rs, &nr_regions); in process_discard_bio()
484 if (WARN_ON(rs >= clone->nr_regions || (rs + nr_regions) < rs || in process_discard_bio()
[all …]
/drivers/spi/
Dspi-rockchip.c204 static inline void spi_enable_chip(struct rockchip_spi *rs, bool enable) in spi_enable_chip() argument
206 writel_relaxed((enable ? 1U : 0U), rs->regs + ROCKCHIP_SPI_SSIENR); in spi_enable_chip()
209 static inline void wait_for_tx_idle(struct rockchip_spi *rs, bool slave_mode) in wait_for_tx_idle() argument
215 if (!(readl_relaxed(rs->regs + ROCKCHIP_SPI_SR) & SR_SLAVE_TX_BUSY) && in wait_for_tx_idle()
216 !((readl_relaxed(rs->regs + ROCKCHIP_SPI_SR) & SR_BUSY))) in wait_for_tx_idle()
219 if (!(readl_relaxed(rs->regs + ROCKCHIP_SPI_SR) & SR_BUSY)) in wait_for_tx_idle()
224 dev_warn(rs->dev, "spi controller is in busy state!\n"); in wait_for_tx_idle()
227 static u32 get_fifo_len(struct rockchip_spi *rs) in get_fifo_len() argument
231 ver = readl_relaxed(rs->regs + ROCKCHIP_SPI_VERSION); in get_fifo_len()
245 struct rockchip_spi *rs = spi_controller_get_devdata(ctlr); in rockchip_spi_set_cs() local
[all …]
Dspi-mt7621.c67 static inline u32 mt7621_spi_read(struct mt7621_spi *rs, u32 reg) in mt7621_spi_read() argument
69 return ioread32(rs->base + reg); in mt7621_spi_read()
72 static inline void mt7621_spi_write(struct mt7621_spi *rs, u32 reg, u32 val) in mt7621_spi_write() argument
74 iowrite32(val, rs->base + reg); in mt7621_spi_write()
79 struct mt7621_spi *rs = spidev_to_mt7621_spi(spi); in mt7621_spi_set_cs() local
89 master = mt7621_spi_read(rs, MT7621_SPI_MASTER); in mt7621_spi_set_cs()
92 mt7621_spi_write(rs, MT7621_SPI_MASTER, master); in mt7621_spi_set_cs()
94 rs->pending_write = 0; in mt7621_spi_set_cs()
98 mt7621_spi_write(rs, MT7621_SPI_POLAR, polar); in mt7621_spi_set_cs()
103 struct mt7621_spi *rs = spidev_to_mt7621_spi(spi); in mt7621_spi_prepare() local
[all …]
/drivers/net/wireless/ath/ath5k/
Ddesc.c603 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 …]
Dbase.c1211 struct ath5k_rx_status *rs) in ath5k_rx_decrypted() argument
1217 if (!(rs->rs_status & AR5K_RXERR_DECRYPT) && in ath5k_rx_decrypted()
1218 rs->rs_keyix != AR5K_RXKEYIX_INVALID) in ath5k_rx_decrypted()
1226 !(rs->rs_status & AR5K_RXERR_DECRYPT) && in ath5k_rx_decrypted()
1371 struct ath5k_rx_status *rs) in ath5k_receive_frame() argument
1381 if (unlikely(rs->rs_status & AR5K_RXERR_MIC)) in ath5k_receive_frame()
1383 if (unlikely(rs->rs_status & AR5K_RXERR_CRC)) in ath5k_receive_frame()
1396 rxs->mactime = ath5k_extend_tsf(ah, rs->rs_tstamp); in ath5k_receive_frame()
1402 rxs->signal = ah->ah_noise_floor + rs->rs_rssi; in ath5k_receive_frame()
1404 rxs->antenna = rs->rs_antenna; in ath5k_receive_frame()
[all …]
/drivers/platform/chrome/wilco_ec/
Dproperties.c36 struct ec_property_response *rs) in send_property_msg() argument
45 ec_msg.response_data = rs; in send_property_msg()
46 ec_msg.response_size = sizeof(*rs); in send_property_msg()
51 if (rs->op != rq->op) in send_property_msg()
53 if (memcmp(rq->property_id, rs->property_id, sizeof(rs->property_id))) in send_property_msg()
63 struct ec_property_response rs; in wilco_ec_get_property() local
70 ret = send_property_msg(ec, &rq, &rs); in wilco_ec_get_property()
74 prop_msg->length = rs.length; in wilco_ec_get_property()
75 memcpy(prop_msg->data, rs.data, rs.length); in wilco_ec_get_property()
85 struct ec_property_response rs; in wilco_ec_set_property() local
[all …]
Dmailbox.c119 struct wilco_ec_response *rs; in wilco_ec_transfer() local
151 rs = ec->data_buffer; in wilco_ec_transfer()
153 sizeof(*rs) + EC_MAILBOX_DATA_SIZE, in wilco_ec_transfer()
154 (u8 *)rs); in wilco_ec_transfer()
156 dev_dbg(ec->dev, "bad packet checksum 0x%02x\n", rs->checksum); in wilco_ec_transfer()
160 if (rs->result) { in wilco_ec_transfer()
161 dev_dbg(ec->dev, "EC reported failure: 0x%02x\n", rs->result); in wilco_ec_transfer()
165 if (rs->data_size != EC_MAILBOX_DATA_SIZE) { in wilco_ec_transfer()
167 rs->data_size, EC_MAILBOX_DATA_SIZE); in wilco_ec_transfer()
171 if (rs->data_size < msg->response_size) { in wilco_ec_transfer()
[all …]
Dsysfs.c160 struct usb_charge_response *rs) in send_usb_charge() argument
169 msg.response_data = rs; in send_usb_charge()
170 msg.response_size = sizeof(*rs); in send_usb_charge()
174 if (rs->status) in send_usb_charge()
185 struct usb_charge_response rs; in usb_charge_show() local
192 ret = send_usb_charge(ec, &rq, &rs); in usb_charge_show()
196 return sprintf(buf, "%d\n", rs.val); in usb_charge_show()
205 struct usb_charge_response rs; in usb_charge_store() local
220 ret = send_usb_charge(ec, &rq, &rs); in usb_charge_store()
Ddebugfs.c179 struct ec_response rs; in send_ec_cmd() local
191 msg.response_data = &rs; in send_ec_cmd()
192 msg.response_size = sizeof(rs); in send_ec_cmd()
196 if (rs.status) in send_ec_cmd()
199 *out_val = rs.val; in send_ec_cmd()
/drivers/net/wireless/ath/
Ddfs_pri_detector.c235 if (delta_ts < pde->rs->pri_min) in pseq_handler_create_sequences()
239 if (delta_ts > pde->rs->pri_max) in pseq_handler_create_sequences()
248 ps.pri = GET_PRI_TO_USE(pde->rs->pri_min, in pseq_handler_create_sequences()
249 pde->rs->pri_max, ts - p->ts); in pseq_handler_create_sequences()
250 ps.dur = ps.pri * (pde->rs->ppb - 1) in pseq_handler_create_sequences()
251 + 2 * pde->rs->max_pri_tolerance; in pseq_handler_create_sequences()
264 pde->rs->max_pri_tolerance); in pseq_handler_create_sequences()
321 pde->rs->max_pri_tolerance); in pseq_handler_add_to_existing_seqs()
349 if ((ps->count >= pde->rs->ppb_thresh) && in pseq_handler_check_detection()
350 (ps->count * pde->rs->num_pri >= ps->count_falses)) in pseq_handler_check_detection()
[all …]
Ddfs_pattern_detector.c215 const struct radar_detector_specs *rs = &dpd->radar_spec[i]; in channel_detector_create() local
216 struct pri_detector *de = pri_detector_init(rs); in channel_detector_create()
274 struct radar_detector_specs *rs) in dpd_add_pulse() argument
300 if (rs != NULL) in dpd_add_pulse()
301 memcpy(rs, pd->rs, sizeof(*rs)); in dpd_add_pulse()
305 event->freq, pd->rs->type_id, in dpd_add_pulse()
/drivers/net/wireless/ath/ath9k/
Dmac.c525 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->enc_flags = 0; in ath9k_hw_rxprocdesc()
539 rs->bw = RATE_INFO_BW_20; in ath9k_hw_rxprocdesc()
541 rs->rs_datalen = ads.ds_rxstatus1 & AR_DataLen; in ath9k_hw_rxprocdesc()
542 rs->rs_tstamp = ads.AR_RcvTimestamp; in ath9k_hw_rxprocdesc()
545 rs->rs_rssi = ATH9K_RSSI_BAD; in ath9k_hw_rxprocdesc()
546 rs->rs_rssi_ctl[0] = ATH9K_RSSI_BAD; in ath9k_hw_rxprocdesc()
547 rs->rs_rssi_ctl[1] = ATH9K_RSSI_BAD; in ath9k_hw_rxprocdesc()
[all …]
Drecv.c629 struct ath_rx_status *rs, in ath_edma_get_buffers() argument
649 ret = ath9k_hw_process_rxdesc_edma(ah, rs, skb->data); in ath_edma_get_buffers()
681 struct ath_rx_status *rs, in ath_edma_get_next_rx_buf() argument
686 while (ath_edma_get_buffers(sc, qtype, rs, &bf)) { in ath_edma_get_next_rx_buf()
696 struct ath_rx_status *rs) in ath_get_next_rx_buf() argument
726 ret = ath9k_hw_rxprocdesc(ah, ds, rs); in ath_get_next_rx_buf()
760 ret = ath9k_hw_rxprocdesc(ah, ds, rs); in ath_get_next_rx_buf()
766 rs->rs_datalen = 0; in ath_get_next_rx_buf()
767 rs->rs_more = true; in ath_get_next_rx_buf()
787 static void ath9k_process_tsf(struct ath_rx_status *rs, in ath9k_process_tsf() argument
[all …]
Dcommon-debug.c91 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 …]
Ddfs.c290 struct ath_rx_status *rs, u64 mactime) in ath9k_dfs_process_phyerr() argument
300 if ((rs->rs_phyerr != ATH9K_PHYERR_RADAR) && in ath9k_dfs_process_phyerr()
301 (rs->rs_phyerr != ATH9K_PHYERR_FALSE_RADAR_EXT)) { in ath9k_dfs_process_phyerr()
304 rs->rs_phyerr); in ath9k_dfs_process_phyerr()
309 datalen = rs->rs_datalen; in ath9k_dfs_process_phyerr()
315 ard.rssi = rs->rs_rssi_ctl[0]; in ath9k_dfs_process_phyerr()
316 ard.ext_rssi = rs->rs_rssi_ext[0]; in ath9k_dfs_process_phyerr()
Dcommon-spectral.c126 typedef int (ath_cmn_fft_sample_handler) (struct ath_rx_status *rs,
131 ath_cmn_process_ht20_fft(struct ath_rx_status *rs, in ath_cmn_process_ht20_fft() argument
151 fft_sample_20.rssi = fix_rssi_inv_only(rs->rs_rssi_ctl[0]); in ath_cmn_process_ht20_fft()
235 ath_cmn_process_ht20_40_fft(struct ath_rx_status *rs, in ath_cmn_process_ht20_40_fft() argument
268 lower_rssi = fix_rssi_inv_only(rs->rs_rssi_ctl[0]); in ath_cmn_process_ht20_40_fft()
269 upper_rssi = fix_rssi_inv_only(rs->rs_rssi_ext[0]); in ath_cmn_process_ht20_40_fft()
274 lower_rssi = fix_rssi_inv_only(rs->rs_rssi_ext[0]); in ath_cmn_process_ht20_40_fft()
275 upper_rssi = fix_rssi_inv_only(rs->rs_rssi_ctl[0]); in ath_cmn_process_ht20_40_fft()
469 struct ath_rx_status *rs, u64 tsf) in ath_cmn_process_fft() argument
477 int len = rs->rs_datalen; in ath_cmn_process_fft()
[all …]
Ddfs.h38 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/
Drate.c272 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/
Dphantom.c89 struct phm_regs rs; in phantom_ioctl() local
129 if (copy_from_user(&rs, argp, sizeof(rs))) in phantom_ioctl()
132 pr_debug("phantom: SRS %u regs %x\n", rs.count, rs.mask); in phantom_ioctl()
135 memcpy(&dev->oregs, &rs, sizeof(rs)); in phantom_ioctl()
137 u32 m = min(rs.count, 8U); in phantom_ioctl()
139 if (rs.mask & BIT(i)) in phantom_ioctl()
140 iowrite32(rs.values[i], dev->oaddr + i); in phantom_ioctl()
162 if (copy_from_user(&rs, argp, sizeof(rs))) in phantom_ioctl()
165 m = min(rs.count, 8U); in phantom_ioctl()
167 pr_debug("phantom: GRS %u regs %x\n", rs.count, rs.mask); in phantom_ioctl()
[all …]
/drivers/net/wireless/realtek/rtw88/
Dphy.c1470 u8 bw, u8 rs, u8 ch, s8 pwr_limit) in rtw_phy_set_tx_power_limit() argument
1482 rs >= RTW_RATE_SECTION_MAX || ch_idx < 0) { in rtw_phy_set_tx_power_limit()
1485 regd, band, bw, rs, ch_idx, pwr_limit); in rtw_phy_set_tx_power_limit()
1490 hal->tx_pwr_limit_2g[regd][bw][rs][ch_idx] = pwr_limit; in rtw_phy_set_tx_power_limit()
1491 ww = hal->tx_pwr_limit_2g[RTW_REGD_WW][bw][rs][ch_idx]; in rtw_phy_set_tx_power_limit()
1493 hal->tx_pwr_limit_2g[RTW_REGD_WW][bw][rs][ch_idx] = ww; in rtw_phy_set_tx_power_limit()
1495 hal->tx_pwr_limit_5g[regd][bw][rs][ch_idx] = pwr_limit; in rtw_phy_set_tx_power_limit()
1496 ww = hal->tx_pwr_limit_5g[RTW_REGD_WW][bw][rs][ch_idx]; in rtw_phy_set_tx_power_limit()
1498 hal->tx_pwr_limit_5g[RTW_REGD_WW][bw][rs][ch_idx] = ww; in rtw_phy_set_tx_power_limit()
1575 p->bw, p->rs, p->ch, p->txpwr_lmt); in rtw_parse_tbl_txpwr_lmt()
[all …]
/drivers/misc/mei/
Dhbm.c522 struct hbm_notification_response *rs = in notify_res_to_fop() local
525 return mei_cl_notify_req2fop(rs->start); in notify_res_to_fop()
540 struct hbm_notification_response *rs = in mei_hbm_cl_notify_start_res() local
543 cl_dbg(dev, cl, "hbm: notify start response status=%d\n", rs->status); in mei_hbm_cl_notify_start_res()
545 if (rs->status == MEI_HBMS_SUCCESS || in mei_hbm_cl_notify_start_res()
546 rs->status == MEI_HBMS_ALREADY_STARTED) { in mei_hbm_cl_notify_start_res()
566 struct hbm_notification_response *rs = in mei_hbm_cl_notify_stop_res() local
569 cl_dbg(dev, cl, "hbm: notify stop response status=%d\n", rs->status); in mei_hbm_cl_notify_stop_res()
571 if (rs->status == MEI_HBMS_SUCCESS || in mei_hbm_cl_notify_stop_res()
572 rs->status == MEI_HBMS_NOT_STARTED) { in mei_hbm_cl_notify_stop_res()
[all …]
/drivers/comedi/drivers/
Dni_routes.c323 struct ni_route_set *rs = &valid_routes->routes[n]; in ni_sort_device_routes() local
326 rs->n_src = 0; in ni_sort_device_routes()
327 while (rs->src[rs->n_src]) in ni_sort_device_routes()
328 ++rs->n_src; in ni_sort_device_routes()
/drivers/net/wireless/intel/iwlegacy/
DMakefile10 iwl4965-objs := 4965.o 4965-mac.o 4965-rs.o 4965-calib.o
15 iwl3945-objs := 3945-mac.o 3945.o 3945-rs.o
/drivers/gpu/drm/nouveau/dispnv04/
Dtvmodesnv17.c325 uint64_t rs[] = {mode->hdisplay * id3, in tv_setup_filter() local
328 do_div(rs[0], overscan * tv_norm->tv_enc_mode.hdisplay); in tv_setup_filter()
329 do_div(rs[1], overscan * tv_norm->tv_enc_mode.vdisplay); in tv_setup_filter()
332 rs[k] = max((int64_t)rs[k], id2); in tv_setup_filter()
341 p->ki3r*i*i*i) * rs[k] in tv_setup_filter()
345 p->ki3rf*i*i*i) * flicker * rs[k]; in tv_setup_filter()

1234