/drivers/md/ |
D | dm-raid.c | 103 struct raid_set *rs; in context_alloc() local 118 rs = kzalloc(sizeof(*rs) + raid_devs * sizeof(rs->dev[0]), GFP_KERNEL); in context_alloc() 119 if (!rs) { in context_alloc() 124 mddev_init(&rs->md); in context_alloc() 126 rs->ti = ti; in context_alloc() 127 rs->raid_type = raid_type; in context_alloc() 128 rs->md.raid_disks = raid_devs; in context_alloc() 129 rs->md.level = raid_type->level; in context_alloc() 130 rs->md.new_level = rs->md.level; in context_alloc() 131 rs->md.dev_sectors = sectors_per_dev; in context_alloc() [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 | 2266 if (is->reset->rs[id]) { in isdn_ppp_ccp_reset_free() 2278 struct ippp_ccp_reset_state *rs; in isdn_ppp_ccp_reset_free_state() local 2280 if (is->reset->rs[id]) { in isdn_ppp_ccp_reset_free_state() 2282 rs = is->reset->rs[id]; in isdn_ppp_ccp_reset_free_state() 2284 if (rs->ta) in isdn_ppp_ccp_reset_free_state() 2285 del_timer(&rs->timer); in isdn_ppp_ccp_reset_free_state() 2286 is->reset->rs[id] = NULL; in isdn_ppp_ccp_reset_free_state() 2287 kfree(rs); in isdn_ppp_ccp_reset_free_state() 2297 struct ippp_ccp_reset_state *rs = in isdn_ppp_ccp_timer_callback() local 2300 if (!rs) { in isdn_ppp_ccp_timer_callback() [all …]
|
D | isdn_tty.c | 3137 char rs[20]; in isdn_tty_cmd_PLUSF() local 3144 sprintf(rs, "\r\n%d", in isdn_tty_cmd_PLUSF() 3148 sprintf(rs, "\r\n2"); in isdn_tty_cmd_PLUSF() 3150 sprintf(rs, "\r\n1"); in isdn_tty_cmd_PLUSF() 3152 isdn_tty_at_cout(rs, info); in isdn_tty_cmd_PLUSF() 3199 strcpy(rs, "\r\n0,"); in isdn_tty_cmd_PLUSF() 3203 strcat(rs, "1,"); in isdn_tty_cmd_PLUSF() 3206 strcat(rs, "2,"); in isdn_tty_cmd_PLUSF() 3208 strcat(rs, "8"); in isdn_tty_cmd_PLUSF() 3209 isdn_tty_at_cout(rs, info); in isdn_tty_cmd_PLUSF() [all …]
|
/drivers/net/wireless/ath/ath5k/ |
D | desc.c | 605 struct ath5k_rx_status *rs) in ath5k_hw_proc_5210_rx_status() argument 616 memset(rs, 0, sizeof(struct ath5k_rx_status)); in ath5k_hw_proc_5210_rx_status() 621 rs->rs_datalen = rx_status->rx_status_0 & in ath5k_hw_proc_5210_rx_status() 623 rs->rs_rssi = AR5K_REG_MS(rx_status->rx_status_0, in ath5k_hw_proc_5210_rx_status() 625 rs->rs_rate = AR5K_REG_MS(rx_status->rx_status_0, in ath5k_hw_proc_5210_rx_status() 627 rs->rs_more = !!(rx_status->rx_status_0 & in ath5k_hw_proc_5210_rx_status() 634 rs->rs_tstamp = AR5K_REG_MS(rx_status->rx_status_1, in ath5k_hw_proc_5210_rx_status() 638 rs->rs_antenna = AR5K_REG_MS(rx_status->rx_status_0, in ath5k_hw_proc_5210_rx_status() 641 rs->rs_antenna = (rx_status->rx_status_0 & in ath5k_hw_proc_5210_rx_status() 649 rs->rs_keyix = AR5K_REG_MS(rx_status->rx_status_1, in ath5k_hw_proc_5210_rx_status() [all …]
|
D | base.c | 1133 struct ath5k_rx_status *rs) in ath5k_rx_decrypted() argument 1139 if (!(rs->rs_status & AR5K_RXERR_DECRYPT) && in ath5k_rx_decrypted() 1140 rs->rs_keyix != AR5K_RXKEYIX_INVALID) in ath5k_rx_decrypted() 1148 !(rs->rs_status & AR5K_RXERR_DECRYPT) && in ath5k_rx_decrypted() 1313 struct ath5k_rx_status *rs) in ath5k_receive_frame() argument 1322 if (unlikely(rs->rs_status & AR5K_RXERR_MIC)) in ath5k_receive_frame() 1345 rxs->mactime = ath5k_extend_tsf(ah, rs->rs_tstamp); in ath5k_receive_frame() 1351 rxs->signal = ah->ah_noise_floor + rs->rs_rssi; in ath5k_receive_frame() 1353 rxs->antenna = rs->rs_antenna; in ath5k_receive_frame() 1355 if (rs->rs_antenna > 0 && rs->rs_antenna < 5) in ath5k_receive_frame() [all …]
|
/drivers/net/wireless/ath/ath9k/ |
D | mac.c | 529 struct ath_rx_status *rs) in ath9k_hw_rxprocdesc() argument 540 rs->rs_status = 0; in ath9k_hw_rxprocdesc() 541 rs->rs_flags = 0; in ath9k_hw_rxprocdesc() 543 rs->rs_datalen = ads.ds_rxstatus1 & AR_DataLen; in ath9k_hw_rxprocdesc() 544 rs->rs_tstamp = ads.AR_RcvTimestamp; in ath9k_hw_rxprocdesc() 547 rs->rs_rssi = ATH9K_RSSI_BAD; in ath9k_hw_rxprocdesc() 548 rs->rs_rssi_ctl0 = ATH9K_RSSI_BAD; in ath9k_hw_rxprocdesc() 549 rs->rs_rssi_ctl1 = ATH9K_RSSI_BAD; in ath9k_hw_rxprocdesc() 550 rs->rs_rssi_ctl2 = ATH9K_RSSI_BAD; in ath9k_hw_rxprocdesc() 551 rs->rs_rssi_ext0 = ATH9K_RSSI_BAD; in ath9k_hw_rxprocdesc() [all …]
|
D | dfs.c | 153 struct ath_rx_status *rs, u64 mactime) in ath9k_dfs_process_phyerr() argument 162 if ((!(rs->rs_phyerr != ATH9K_PHYERR_RADAR)) && in ath9k_dfs_process_phyerr() 163 (!(rs->rs_phyerr != ATH9K_PHYERR_FALSE_RADAR_EXT))) { in ath9k_dfs_process_phyerr() 166 rs->rs_phyerr); in ath9k_dfs_process_phyerr() 170 datalen = rs->rs_datalen; in ath9k_dfs_process_phyerr() 176 ard.rssi = rs->rs_rssi_ctl0; in ath9k_dfs_process_phyerr() 177 ard.ext_rssi = rs->rs_rssi_ext0; in ath9k_dfs_process_phyerr()
|
D | recv.c | 662 struct ath_rx_status *rs, in ath_edma_get_buffers() argument 682 ret = ath9k_hw_process_rxdesc_edma(ah, rs, skb->data); in ath_edma_get_buffers() 714 struct ath_rx_status *rs, in ath_edma_get_next_rx_buf() argument 719 while (ath_edma_get_buffers(sc, qtype, rs, &bf)) { in ath_edma_get_next_rx_buf() 729 struct ath_rx_status *rs) in ath_get_next_rx_buf() argument 759 ret = ath9k_hw_rxprocdesc(ah, ds, rs); in ath_get_next_rx_buf() 1544 static void ath_ant_comb_scan(struct ath_softc *sc, struct ath_rx_status *rs) in ath_ant_comb_scan() argument 1550 int main_rssi = rs->rs_rssi_ctl0; in ath_ant_comb_scan() 1551 int alt_rssi = rs->rs_rssi_ctl1; in ath_ant_comb_scan() 1555 rx_ant_conf = (rs->rs_rssi_ctl2 >> ATH_ANT_RX_CURRENT_SHIFT) & in ath_ant_comb_scan() [all …]
|
D | debug.c | 959 void ath_debug_stat_rx(struct ath_softc *sc, struct ath_rx_status *rs) in ath_debug_stat_rx() argument 963 #define RX_SAMP_DBG(c) (sc->debug.bb_mac_samp[sc->debug.sampidx].rs\ in ath_debug_stat_rx() 967 sc->debug.stats.rxstats.rx_bytes_all += rs->rs_datalen; in ath_debug_stat_rx() 969 if (rs->rs_status & ATH9K_RXERR_CRC) in ath_debug_stat_rx() 971 if (rs->rs_status & ATH9K_RXERR_DECRYPT) in ath_debug_stat_rx() 973 if (rs->rs_status & ATH9K_RXERR_MIC) in ath_debug_stat_rx() 975 if (rs->rs_status & ATH9K_RX_DELIM_CRC_PRE) in ath_debug_stat_rx() 977 if (rs->rs_status & ATH9K_RX_DELIM_CRC_POST) in ath_debug_stat_rx() 979 if (rs->rs_status & ATH9K_RX_DECRYPT_BUSY) in ath_debug_stat_rx() 982 if (rs->rs_status & ATH9K_RXERR_PHY) { in ath_debug_stat_rx() [all …]
|
D | dfs.h | 37 struct ath_rx_status *rs, u64 mactime); 40 struct ath_rx_status *rs, u64 mactime) { } in ath9k_dfs_process_phyerr() argument
|
D | debug.h | 222 } rs[ATH_DBG_MAX_SAMPLES]; member 246 void ath_debug_stat_rx(struct ath_softc *sc, struct ath_rx_status *rs); 269 struct ath_rx_status *rs) in ath_debug_stat_rx() argument
|
/drivers/net/wireless/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 …]
|
D | rate.h | 220 brcms_c_rate_hwrs_filter_sort_validate(struct brcms_c_rateset *rs, 242 extern void brcms_c_rateset_mcs_upd(struct brcms_c_rateset *rs, u8 txstreams);
|
D | mac80211_if.c | 252 static void brcms_set_basic_rate(struct brcm_rateset *rs, u16 rate, bool is_br) in brcms_set_basic_rate() argument 256 for (i = 0; i < rs->count; i++) { in brcms_set_basic_rate() 257 if (rate != (rs->rates[i] & 0x7f)) in brcms_set_basic_rate() 261 rs->rates[i] |= BRCMS_RATE_FLAG; in brcms_set_basic_rate() 263 rs->rates[i] &= BRCMS_RATE_MASK; in brcms_set_basic_rate() 462 struct brcm_rateset rs; in brcms_ops_bss_info_changed() local 467 brcms_c_get_current_rateset(wl->wlc, &rs); in brcms_ops_bss_info_changed() 477 brcms_set_basic_rate(&rs, rate, br_mask & 1); in brcms_ops_bss_info_changed() 483 error = brcms_c_set_rateset(wl->wlc, &rs); in brcms_ops_bss_info_changed()
|
D | main.c | 3428 brcms_default_rateset(struct brcms_c_info *wlc, struct brcms_c_rateset *rs) in brcms_default_rateset() argument 3430 brcms_c_rateset_default(rs, NULL, wlc->band->phytype, in brcms_default_rateset() 3690 struct brcms_c_rateset rs; in brcms_c_set_ratetable() local 3696 brcms_c_rateset_copy(rs_dflt, &rs); in brcms_c_set_ratetable() 3697 brcms_c_rateset_mcs_upd(&rs, wlc->stf->txstreams); in brcms_c_set_ratetable() 3700 for (i = 0; i < rs.count; i++) { in brcms_c_set_ratetable() 3701 rate = rs.rates[i] & BRCMS_RATE_MASK; in brcms_c_set_ratetable() 3711 basic_rate = rs.rates[0] & BRCMS_RATE_MASK; in brcms_c_set_ratetable() 5392 struct brcms_c_rateset rs; in brcms_c_set_gmode() local 5432 memset(&rs, 0, sizeof(struct brcms_c_rateset)); in brcms_c_set_gmode() [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/staging/mei/ |
D | interrupt.c | 339 struct hbm_client_connect_response *rs) in is_treat_specially_client() argument 342 if (cl->host_client_id == rs->host_addr && in is_treat_specially_client() 343 cl->me_client_id == rs->me_addr) { in is_treat_specially_client() 344 if (!rs->status) { in is_treat_specially_client() 366 struct hbm_client_connect_response *rs) in mei_client_connect_response() argument 377 rs->me_addr, in mei_client_connect_response() 378 rs->host_addr, in mei_client_connect_response() 379 rs->status); in mei_client_connect_response() 383 if (is_treat_specially_client(&(dev->wd_cl), rs)) { in mei_client_connect_response() 392 if (is_treat_specially_client(&(dev->iamthif_cl), rs)) { in mei_client_connect_response() [all …]
|
/drivers/gpu/drm/nouveau/ |
D | nv17_tv_modes.c | 326 uint64_t rs[] = {mode->hdisplay * id3, in tv_setup_filter() local 329 do_div(rs[0], overscan * tv_norm->tv_enc_mode.hdisplay); in tv_setup_filter() 330 do_div(rs[1], overscan * tv_norm->tv_enc_mode.vdisplay); in tv_setup_filter() 333 rs[k] = max((int64_t)rs[k], id2); in tv_setup_filter() 342 p->ki3r*i*i*i) * rs[k] in tv_setup_filter() 346 p->ki3rf*i*i*i) * flicker * rs[k]; in tv_setup_filter()
|
/drivers/net/wireless/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
|
/drivers/net/irda/ |
D | vlsi_ir.h | 279 #define RINGSIZE_TO_RXSIZE(rs) ((((rs)&0x0f00)>>6)+4) argument 280 #define RINGSIZE_TO_TXSIZE(rs) ((((rs)&0xf000)>>10)+4) argument
|
/drivers/s390/cio/ |
D | chsc.c | 268 u8 rs; /* reporting source */ member 284 sei_area->rs, sei_area->rsid); in chsc_process_sei_link_incident() 285 if (sei_area->rs != 4) in chsc_process_sei_link_incident() 304 "rs_id=%04x)\n", sei_area->rs, sei_area->rsid); in chsc_process_sei_res_acc() 305 if (sei_area->rs != 4) in chsc_process_sei_res_acc() 337 if (sei_area->rs != 0) in chsc_process_sei_chp_avail() 373 if (sei_area->rs != 0) in chsc_process_sei_chp_config()
|
/drivers/mtd/nand/ |
D | cafe_nand.c | 63 struct rs_control *rs; member 402 syn[i] = cafe->rs->index_of[tmp & 0xfff]; in cafe_nand_read_page() 403 syn[i+1] = cafe->rs->index_of[(tmp >> 16) & 0xfff]; in cafe_nand_read_page() 406 n = decode_rs16(cafe->rs, NULL, NULL, 1367, syn, 0, pos, 0, in cafe_nand_read_page() 671 cafe->rs = init_rs_non_canonical(12, &cafe_mul, 0, 1, 8); in cafe_nand_probe() 672 if (!cafe->rs) { in cafe_nand_probe() 830 free_rs(cafe->rs); in cafe_nand_remove()
|
/drivers/media/video/gspca/stv06xx/ |
D | stv06xx_hdcs.c | 147 u16 rs; member 272 rp = hdcs->exp.rs + cp; in hdcs_set_exposure() 452 hdcs->exp.rs = 186; in hdcs_probe_1x00() 518 hdcs->exp.rs = 155; in hdcs_probe_1020()
|
/drivers/pci/hotplug/ |
D | ibmphp_res.c | 74 struct resource_node *rs; in alloc_resources() local 81 rs = kzalloc(sizeof(struct resource_node), GFP_KERNEL); in alloc_resources() 82 if (!rs) { in alloc_resources() 86 rs->busno = curr->bus_num; in alloc_resources() 87 rs->devfunc = curr->dev_fun; in alloc_resources() 88 rs->start = curr->start_addr; in alloc_resources() 89 rs->end = curr->end_addr; in alloc_resources() 90 rs->len = curr->end_addr - curr->start_addr + 1; in alloc_resources() 91 return rs; in alloc_resources()
|