| /drivers/net/wireless/ath/ath9k/ |
| A D | channel.c | 57 if (!sc->cur_chan->offchannel && sc->cur_survey != &sc->survey[pos]) { in ath_set_channel() 61 sc->cur_survey = &sc->survey[pos]; in ath_set_channel() 532 sc->next_chan = &sc->offchannel.chan; in ath_chanctx_event() 671 sc->cur_chan == &sc->offchannel.chan) in ath_chanctx_event() 709 sc->cur_chan == &sc->offchannel.chan) in ath_chanctx_event() 715 sc->next_chan = ath_chanctx_get_next(sc, sc->cur_chan); in ath_chanctx_event() 744 sc->next_chan = ath_chanctx_get_next(sc, sc->cur_chan); in ath_chanctx_event() 1162 if (sc->cur_chan == &sc->offchannel.chan) in ath_chanctx_defer_switch() 1209 if (sc->cur_chan != &sc->offchannel.chan) in ath_offchannel_channel_change() 1250 if (sc->cur_chan != sc->next_chan) { in ath_chanctx_set_next() [all …]
|
| A D | main.c | 204 ieee80211_queue_delayed_work(sc->hw, &sc->hw_check_work, in ath_restart_work() 207 if (AR_SREV_9340(sc->sc_ah) || AR_SREV_9330(sc->sc_ah)) in ath_restart_work() 208 ieee80211_queue_delayed_work(sc->hw, &sc->hw_pll_work, in ath_restart_work() 240 ath9k_calculate_summary_state(sc, sc->cur_chan); in ath_complete_reset() 320 sc->cur_chandef = sc->cur_chan->chandef; in ath_reset_internal() 359 an->sc = sc; in ath_node_attach() 379 struct ath_softc *sc = from_tasklet(sc, t, intr_tq); in ath9k_tasklet() local 637 ieee80211_queue_work(sc->hw, &sc->hw_reset_work); in ath9k_queue_reset() 1368 an->sc = sc; in ath9k_add_interface() 2395 if (sc->cur_survey != &sc->survey[pos]) { in ath9k_sw_scan_start() [all …]
|
| A D | recv.c | 63 if (sc->rx.rxlink) in ath_rx_buf_link() 74 if (sc->rx.buf_hold) in ath_rx_buf_relink() 75 ath_rx_buf_link(sc, sc->rx.buf_hold, flush); in ath_rx_buf_relink() 77 sc->rx.buf_hold = bf; in ath_rx_buf_relink() 262 ath9k_hw_startpcureceive(sc->sc_ah, sc->cur_chan->offchannel); in ath_edma_start_recv() 291 error = ath_descdma_setup(sc, &sc->rx.rxdma, &sc->rx.rxbuf, in ath_rx_init() 424 if (AR_SREV_9550(sc->sc_ah) || AR_SREV_9531(sc->sc_ah) || in ath_calcrxfilter() 428 if (AR_SREV_9462(sc->sc_ah) || AR_SREV_9565(sc->sc_ah)) in ath_calcrxfilter() 489 ath_flushrecv(sc); in ath_stoprecv() 554 if (sc->cur_chan == &sc->offchannel.chan) in ath_rx_ps_beacon() [all …]
|
| A D | beacon.c | 25 sc->beacon.tx_last = false; in ath9k_reset_beacon_status() 183 ath_draintxq(sc, cabq); in ath9k_beacon_generate() 390 struct ath_softc *sc = from_tasklet(sc, t, bcon_tasklet); in ath9k_beacon_tasklet() local 412 sc->beacon.bmisscnt++; in ath9k_beacon_tasklet() 422 if (!ath_hw_check(sc)) in ath9k_beacon_tasklet() 425 if (sc->beacon.bmisscnt < BSTUCK_THRESH * sc->nbcnvifs) { in ath9k_beacon_tasklet() 466 sc->beacon.bmisscnt); in ath9k_beacon_tasklet() 639 ath9k_beacon_stop(sc); in ath9k_beacon_config() 655 ath9k_set_beacon(sc); in ath9k_beacon_config() 687 ath9k_set_beacon(sc); in ath9k_beacon_config() [all …]
|
| A D | gpio.c | 60 ath9k_hw_set_gpio(sc->sc_ah, sc->sc_ah->led_pin, val); in ath_led_brightness() 71 ath9k_hw_gpio_free(sc->sc_ah, sc->sc_ah->led_pin); in ath_deinit_leds() 81 ath_fill_led_pin(sc); in ath_init_leds() 87 snprintf(sc->led_name, sizeof(sc->led_name), in ath_init_leds() 89 sc->led_cdev.name = sc->led_name; in ath_init_leds() 92 ret = led_classdev_register(wiphy_dev(sc->hw->wiphy), &sc->led_cdev); in ath_init_leds() 109 ath9k_ps_wakeup(sc); in ath_is_rfkill_set() 112 ath9k_ps_restore(sc); in ath_is_rfkill_set() 196 struct ath_softc *sc = timer_container_of(sc, t, btcoex.period_timer); in ath_btcoex_period_timer() local 257 struct ath_softc *sc = timer_container_of(sc, t, in ath_btcoex_no_stomp_timer() local [all …]
|
| A D | tx99.c | 25 ath_startrecv(sc); in ath9k_tx99_stop() 33 sc->tx99_skb = NULL; in ath9k_tx99_stop() 75 if (sc->tx99_vif) { in ath9k_build_tx99_skb() 121 sc->tx99_skb = ath9k_build_tx99_skb(sc); in ath9k_tx99_init() 122 if (!sc->tx99_skb) in ath9k_tx99_init() 134 ath_stoprecv(sc); in ath9k_tx99_init() 144 r = ath9k_tx99_send(sc, sc->tx99_skb, &txctl); in ath9k_tx99_init() 151 sc->tx99_power, in ath9k_tx99_init() 254 ath9k_hw_tx99_set_txpower(sc->sc_ah, sc->tx99_power); in write_file_tx99_power() 274 sc->debug.debugfs_phy, sc, in ath9k_tx99_init_debug() [all …]
|
| A D | init.c | 261 sc->dfs_detector->set_dfs_domain(sc->dfs_detector, in ath9k_reg_notifier() 409 sc->beacon.beaconq = ath9k_hw_beaconq_setup(sc->sc_ah); in ath9k_init_queues() 410 sc->beacon.cabq = ath_txq_setup(sc, ATH9K_TX_QUEUE_CAB, 0); in ath9k_init_queues() 413 sc->tx.uapsdq = ath_txq_setup(sc, ATH9K_TX_QUEUE_UAPSD, 0); in ath9k_init_queues() 416 sc->tx.txq_map[i] = ath_txq_setup(sc, ATH9K_TX_QUEUE_DATA, i); in ath9k_init_queues() 439 sc->spec_priv.ah = sc->sc_ah; in ath9k_init_misc() 686 sc->sc_ah = ah; in ath9k_init_softc() 690 sc->cur_chan = &sc->chanctx[0]; in ath9k_init_softc() 789 ath_tx_cleanupq(sc, &sc->tx.txq[i]); in ath9k_init_softc() 1100 ath_tx_cleanupq(sc, &sc->tx.txq[i]); in ath9k_deinit_softc() [all …]
|
| A D | debug.c | 202 ath_stop_ani(sc); in write_file_ani() 638 print_queue(sc, sc->beacon.cabq, file); in read_file_queues() 1415 sc->debug.debugfs_phy, sc, &fops_ani); in ath9k_init_debug() 1425 debugfs_create_file("regdump", 0400, sc->debug.debugfs_phy, sc, in ath9k_init_debug() 1431 ath9k_cmn_debug_base_eeprom(sc->debug.debugfs_phy, sc->sc_ah); in ath9k_init_debug() 1435 sc->debug.debugfs_phy, &sc->sc_ah->gpio_mask); in ath9k_init_debug() 1437 sc->debug.debugfs_phy, &sc->sc_ah->gpio_val); in ath9k_init_debug() 1439 sc->debug.debugfs_phy, sc, &fops_antenna_diversity); in ath9k_init_debug() 1442 sc->debug.debugfs_phy, sc, &fops_bt_ant_diversity); in ath9k_init_debug() 1443 debugfs_create_file("btcoex", 0400, sc->debug.debugfs_phy, sc, in ath9k_init_debug() [all …]
|
| A D | link.c | 28 if (sc->tx99_state) in ath_tx_complete_check() 34 ath_txq_lock(sc, txq); in ath_tx_complete_check() 90 if (!ath_hw_check(sc) || !ath_tx_complete_check(sc) || in ath_hw_check_work() 94 ieee80211_queue_delayed_work(sc->hw, &sc->hw_check_work, in ath_hw_check_work() 107 ath9k_ps_wakeup(sc); in ath_hw_check() 118 ath9k_ps_restore(sc); in ath_hw_check() 161 if (sc->tx99_state) in ath_hw_pll_work() 164 ath9k_ps_wakeup(sc); in ath_hw_pll_work() 170 ieee80211_queue_delayed_work(sc->hw, &sc->hw_pll_work, in ath_hw_pll_work() 441 ieee80211_queue_work(sc->hw, &sc->paprd_work); in ath_ani_calibrate() [all …]
|
| A D | ath9k.h | 85 #define ATH_TXQ_SETUP(sc, i) ((sc)->tx.txqsetup & (1<<i)) argument 255 struct ath_softc *sc; member 448 ctx <= &sc->chanctx[ARRAY_SIZE(sc->chanctx) - 1]; \ 469 int ath9k_init_p2p(struct ath_softc *sc); 576 void ath_startrecv(struct ath_softc *sc); 577 bool ath_stoprecv(struct ath_softc *sc); 744 bool ath_hw_check(struct ath_softc *sc); 748 void ath_start_ani(struct ath_softc *sc); 749 void ath_stop_ani(struct ath_softc *sc); 750 void ath_check_ani(struct ath_softc *sc); [all …]
|
| A D | wow.c | 178 mutex_lock(&sc->mutex); in ath9k_suspend() 220 ath_cancel_work(sc); in ath9k_suspend() 221 ath_stop_ani(sc); in ath9k_suspend() 223 ath9k_ps_wakeup(sc); in ath9k_suspend() 225 ath9k_stop_btcoex(sc); in ath9k_suspend() 271 ath9k_ps_restore(sc); in ath9k_suspend() 289 ath9k_ps_wakeup(sc); in ath9k_resume() 303 ath_restart_work(sc); in ath9k_resume() 308 ath9k_ps_restore(sc); in ath9k_resume() 332 if ((sc->driver_data & ATH9K_PCI_WOW) || sc->force_wow) { in ath9k_init_wow() [all …]
|
| A D | xmit.c | 140 ath_txq_lock(sc, txq); in ath9k_wake_tx_queue() 142 ath_txq_unlock(sc, txq); in ath9k_wake_tx_queue() 236 struct ath_softc *sc = tid->an->sc; in ath_tid_pull() local 313 ath_txq_lock(sc, txq); in ath_tx_flush_tid() 1715 ret = ath_tx_get_tid_subframe(sc, sc->tx.uapsdq, in ath9k_release_buffered_frames() 2169 sc = hw->priv; in setup_frame_info() 2527 if (sc->tx99_state) in ath_tx_complete_buf() 2706 ath_tx_processq(sc, &sc->tx.txq[i]); in ath_tx_tasklet() 2820 ath9k_hw_setup_statusring(sc->sc_ah, sc->txsdma.dd_desc, in ath_tx_edma_init() 2834 error = ath_descdma_setup(sc, &sc->tx.txdma, &sc->tx.txbuf, in ath_tx_init() [all …]
|
| A D | rng.c | 30 ath9k_ps_wakeup(sc); in ath9k_rng_data_read() 48 ath9k_ps_restore(sc); in ath9k_rng_data_read() 50 sc->rng_last = rng_last; in ath9k_rng_data_read() 100 if (sc->rng_ops.read) in ath9k_rng_start() 106 snprintf(sc->rng_name, sizeof(sc->rng_name), "ath9k_%u", in ath9k_rng_start() 108 sc->rng_ops.name = sc->rng_name; in ath9k_rng_start() 112 if (devm_hwrng_register(sc->dev, &sc->rng_ops)) in ath9k_rng_start() 113 sc->rng_ops.read = NULL; in ath9k_rng_start() 118 if (sc->rng_ops.read) { in ath9k_rng_stop() 119 devm_hwrng_unregister(sc->dev, &sc->rng_ops); in ath9k_rng_stop() [all …]
|
| /drivers/clk/qcom/ |
| A D | gdsc.c | 194 sc->rcdev->ops->deassert(sc->rcdev, sc->resets[i]); in gdsc_deassert_reset() 203 sc->rcdev->ops->assert(sc->rcdev, sc->resets[i]); in gdsc_assert_reset() 216 regmap_update_bits(sc->regmap, sc->cxcs[i], mask, mask); in gdsc_force_mem_on() 228 regmap_update_bits(sc->regmap, sc->cxcs[i], mask, 0); in gdsc_clear_mem_on() 233 regmap_update_bits(sc->regmap, sc->clamp_io_ctrl, in gdsc_deassert_clamp_io() 239 regmap_update_bits(sc->regmap, sc->clamp_io_ctrl, in gdsc_assert_clamp_io() 245 regmap_update_bits(sc->regmap, sc->clamp_io_ctrl, in gdsc_assert_reset_aon() 248 regmap_update_bits(sc->regmap, sc->clamp_io_ctrl, in gdsc_assert_reset_aon() 256 regmap_update_bits(sc->regmap, sc->gdscr, mask, mask); in gdsc_retain_ff_on() 398 regmap_read(sc->regmap, sc->gdscr, &val); in gdsc_get_hwmode() [all …]
|
| /drivers/hid/ |
| A D | hid-sony.c | 1019 input_set_drvdata(sc->touchpad, sc); in sony_register_touchpad() 1021 sc->touchpad->phys = sc->hdev->phys; in sony_register_touchpad() 1022 sc->touchpad->uniq = sc->hdev->uniq; in sony_register_touchpad() 1085 input_set_drvdata(sc->sensor_dev, sc); in sony_register_sensors() 1087 sc->sensor_dev->phys = sc->hdev->phys; in sony_register_sensors() 1088 sc->sensor_dev->uniq = sc->hdev->uniq; in sony_register_sensors() 1550 sc->send_output_report(sc); in sony_send_output_report() 1558 sc->send_output_report(sc); in sony_state_worker() 1769 &sc->mac_address[5], &sc->mac_address[4], &sc->mac_address[3], in sony_get_bt_devaddr() 1770 &sc->mac_address[2], &sc->mac_address[1], &sc->mac_address[0]); in sony_get_bt_devaddr() [all …]
|
| /drivers/scsi/snic/ |
| A D | snic_scsi.c | 260 rqi->sc = sc; in snic_issue_scsi_req() 345 sc, snic_cmd_tag(sc), sc->cmnd[0], sc->device->lun); in snic_queuecommand() 579 sc->device->lun, sc, sc->cmnd[0], snic_cmd_tag(sc), in snic_icmnd_cmpl_handler() 922 sc = rqi->sc; in snic_itmf_cmpl_handler() 1008 sc = rqi->sc; in snic_hba_reset_cmpl_handler() 1441 sc, snic_cmd_tag(sc), CMD_FLAGS(sc)); in snic_abort_finish() 2127 sc, sc->cmnd[0], scsi_cmd_to_rq(sc), in snic_device_reset() 2161 rqi->sc = sc; in snic_device_reset() 2220 rqi->sc = sc; in snic_issue_hba_reset() 2362 sc, sc->cmnd[0], scsi_cmd_to_rq(sc), in snic_host_reset() [all …]
|
| /drivers/infiniband/hw/hfi1/ |
| A D | pio.c | 524 sc->hw_free = &sc->dd->cr_base[sc->node].va[gc].cr[index]; in cr_group_addresses() 695 sci->sc = sc; in sc_alloc() 1124 sc = dd->send_contexts[i].sc; in pio_freeze() 1130 if (!sc || !(sc->flags & SCF_FROZEN) || sc->type == SC_USER) in pio_freeze() 1151 sc = dd->send_contexts[i].sc; in pio_kernel_unfreeze() 1152 if (!sc || !(sc->flags & SCF_FROZEN) || sc->type == SC_USER) in pio_kernel_unfreeze() 1179 sc = dd->send_contexts[i].sc; in pio_kernel_linkup() 1451 sc->fill_wrap = sc->fill_wrap - sc->credits; in sc_buffer_alloc() 2121 sc->flags, sc->sw_index, sc->hw_context, sc->group); in seqfile_dump_sci() 2123 sc->sr_size, sc->credits, sc->sr_head, sc->sr_tail); in seqfile_dump_sci() [all …]
|
| /drivers/usb/atm/ |
| A D | ueagle-atm.c | 917 if (sc->dsp_firm == NULL && request_dsp(sc) < 0) in uea_load_page_e1() 1039 if (sc->dsp_firm == NULL && request_dsp(sc) < 0) in uea_load_page_e4() 1359 sc->stats.phy.mflags |= sc->stats.phy.flags; in uea_stat_e1() 1501 sc->stats.phy.mflags |= sc->stats.phy.flags; in uea_stat_e4() 1870 ret = sc->send_cmvs(sc); in uea_start_reset() 1896 ret = sc->stat(sc); in uea_kthread() 2003 sc->data = sc->data << 16 | sc->data >> 16; in uea_dispatch_cmv_e1() 2107 sc->schedule_load_page(sc, intr); in uea_intr() 2111 sc->dispatch_cmv(sc, intr); in uea_intr() 2168 usb_fill_int_urb(sc->urb_int, sc->usb_dev, in uea_boot() [all …]
|
| /drivers/firmware/arm_scmi/ |
| A D | scmi_power_control.c | 125 mutex_lock(&sc->state_mtx); in scmi_reboot_notifier() 162 sc->required_transition); in scmi_request_forceful_transition() 189 sc = dwork_to_sconf(dwork); in scmi_forceful_work_func() 192 mutex_lock(&sc->state_mtx); in scmi_forceful_work_func() 233 dev_warn(sc->dev, in scmi_request_graceful_transition() 238 dev_dbg(sc->dev, in scmi_request_graceful_transition() 305 mutex_lock(&sc->state_mtx); in scmi_userspace_notifier() 307 dev_dbg(sc->dev, in scmi_userspace_notifier() 344 sc = devm_kzalloc(&sdev->dev, sizeof(*sc), GFP_KERNEL); in scmi_syspower_probe() 345 if (!sc) in scmi_syspower_probe() [all …]
|
| /drivers/md/ |
| A D | dm-stripe.c | 90 struct stripe_c *sc; in stripe_ctr() local 132 sc = kmalloc(struct_size(sc, stripe, stripes), GFP_KERNEL); in stripe_ctr() 133 if (!sc) { in stripe_ctr() 141 sc->ti = ti; in stripe_ctr() 142 sc->stripes = stripes; in stripe_ctr() 143 sc->stripe_width = width; in stripe_ctr() 146 sc->stripes_shift = -1; in stripe_ctr() 152 kfree(sc); in stripe_ctr() 179 kfree(sc); in stripe_ctr() 185 ti->private = sc; in stripe_ctr() [all …]
|
| /drivers/scsi/ |
| A D | scsi_lib_test.c | 65 struct scsi_cmnd sc = { in scsi_lib_test_multiple_sense() local 71 sc.result = 0; in scsi_lib_test_multiple_sense() 128 struct scsi_cmnd sc = { in scsi_lib_test_any_sense() local 155 struct scsi_cmnd sc = { in scsi_lib_test_host() local 164 sc.result = DID_TIME_OUT << 16; in scsi_lib_test_host() 181 struct scsi_cmnd sc = { in scsi_lib_test_any_failure() local 204 struct scsi_cmnd sc = { in scsi_lib_test_any_status() local 238 struct scsi_cmnd sc = { in scsi_lib_test_total_allowed() local 253 sc.result = DID_TIME_OUT << 16; in scsi_lib_test_total_allowed() 281 struct scsi_cmnd sc = { in scsi_lib_test_mixed_total() local [all …]
|
| /drivers/scsi/fnic/ |
| A D | fnic_scsi.c | 442 sc->cmnd, sc->cmd_len, in fnic_queue_wq_copy_desc() 596 mqtag, sc, 0, sc->cmnd[0], sg_count, fnic_priv(sc)->state); in fnic_queuecommand() 644 io_req->sc = sc; in fnic_queuecommand() 1122 (u64)sc->cmnd[4] << 8 | sc->cmnd[5]; in fnic_fcpio_icmnd_cmpl_handler() 1125 sc->device->host->host_no, id, sc, in fnic_fcpio_icmnd_cmpl_handler() 1239 sc = io_req->sc; in fnic_fcpio_itmf_cmpl_handler() 1390 sc->device->host->host_no, id, sc, in fnic_fcpio_itmf_cmpl_handler() 1403 sc->device->host->host_no, id, sc, in fnic_fcpio_itmf_cmpl_handler() 1622 sc = io_req->sc; in fnic_cleanup_io() 1695 sc->device->host->host_no, id, sc, in fnic_wq_copy_cleanup_handler() [all …]
|
| /drivers/net/ethernet/broadcom/ |
| A D | sb1250-mac.c | 1028 sc->sbm_imr); in sbmac_netpoll() 1988 sbdma_tx_process(sc,&(sc->sbm_txdma), 0); in sbmac_intr() 1998 sbdma_rx_process(sc,&(sc->sbm_rxdma), in sbmac_intr() 2169 sc->sbm_dev = dev; in sbmac_init() 2170 sc->sbe_idx = idx; in sbmac_init() 2193 sbmac_initctx(sc); in sbmac_init() 2222 sc->mii_bus->priv = sc; in sbmac_init() 2295 sc->sbm_link = 0; in sbmac_open() 2400 sc->sbm_fc = fc; in sbmac_mii_poll() 2507 work_done = sbdma_rx_process(sc, &(sc->sbm_rxdma), budget, 1); in sbmac_poll() [all …]
|
| /drivers/net/ethernet/cavium/liquidio/ |
| A D | octeon_nic.c | 34 struct octeon_soft_command *sc; in octeon_alloc_soft_command_resp() local 43 if (!sc) in octeon_alloc_soft_command_resp() 74 sc->cmd.cmd3.rptr = sc->dmarptr; in octeon_alloc_soft_command_resp() 76 sc->cmd.cmd2.rptr = sc->dmarptr; in octeon_alloc_soft_command_resp() 80 return sc; in octeon_alloc_soft_command_resp() 113 if (!sc) in octnic_alloc_ctrl_pkt_sc() 116 data = (u8 *)sc->virtdptr; in octnic_alloc_ctrl_pkt_sc() 127 sc->iq_no = (u32)nctrl->iq_no; in octnic_alloc_ctrl_pkt_sc() 132 init_completion(&sc->complete); in octnic_alloc_ctrl_pkt_sc() 135 return sc; in octnic_alloc_ctrl_pkt_sc() [all …]
|
| /drivers/media/pci/cobalt/ |
| A D | cobalt-alsa-main.c | 37 if (sc == NULL) in snd_cobalt_card_private_free() 40 sc->private_data = NULL; in snd_cobalt_card_private_free() 41 sc->private_free = NULL; in snd_cobalt_card_private_free() 53 (*cobsc)->sc = sc; in snd_cobalt_card_create() 55 sc->private_data = *cobsc; in snd_cobalt_card_create() 65 struct snd_card *sc = cobsc->sc; in snd_cobalt_card_set_names() local 68 strscpy(sc->driver, "cobalt", sizeof(sc->driver)); in snd_cobalt_card_set_names() 71 snprintf(sc->shortname, sizeof(sc->shortname), "cobalt-%d-%d", in snd_cobalt_card_set_names() 75 snprintf(sc->longname, sizeof(sc->longname), in snd_cobalt_card_set_names() 136 if (sc != NULL) in cobalt_alsa_init() [all …]
|