/openbmc/linux/drivers/scsi/ |
H A D | virtio_scsi.c | 42 struct scsi_cmnd *sc; member 101 scsi_set_resid(sc, min(resid, scsi_bufflen(sc))); in virtscsi_compute_resid() 112 struct scsi_cmnd *sc = cmd->sc; in virtscsi_complete_cmd() local 167 scsi_done(sc); in virtscsi_complete_cmd() 429 struct scsi_cmnd *sc = cmd->sc; in __virtscsi_add_cmd() local 436 if (sc && sc->sc_data_direction != DMA_NONE) { in __virtscsi_add_cmd() 440 in = &sc->sdb.table; in __virtscsi_add_cmd() 578 "cmd %p CDB: %#02x\n", sc, sc->cmnd[0]); in virtscsi_queuecommand() 580 cmd->sc = sc; in virtscsi_queuecommand() 587 memcpy(cmd->req.cmd_pi.cdb, sc->cmnd, sc->cmd_len); in virtscsi_queuecommand() [all …]
|
/openbmc/linux/drivers/net/ethernet/cavium/liquidio/ |
H A D | response_manager.c | 68 struct octeon_soft_command *sc; in lio_process_ordered_list() local 94 status64 = *sc->status_word; in lio_process_ordered_list() 127 sc->cmd.cmd3.ossp[0], sc->cmd.cmd3.ossp[1]); in lio_process_ordered_list() 135 sc->sc_status = status; in lio_process_ordered_list() 139 list_del(&sc->node); in lio_process_ordered_list() 144 if (!sc->callback) { in lio_process_ordered_list() 148 list_add_tail(&sc->node, in lio_process_ordered_list() 161 &sc->cmd.cmd3.irh; in lio_process_ordered_list() 178 complete(&sc->complete); in lio_process_ordered_list() 188 list_add_tail(&sc->node, in lio_process_ordered_list() [all …]
|
H A D | lio_vf_rep.c | 68 if (!sc) in lio_vf_rep_send_soft_command() 71 init_completion(&sc->complete); in lio_vf_rep_send_soft_command() 81 sc->iq_no = 0; in lio_vf_rep_send_soft_command() 358 iq_no = sc->iq_no; in lio_vf_rep_packet_sent_callback() 375 struct octeon_soft_command *sc; in lio_vf_rep_pkt_xmit() local 393 if (!sc) { in lio_vf_rep_pkt_xmit() 413 sc->virtdptr = skb->data; in lio_vf_rep_pkt_xmit() 414 sc->datasize = skb->len; in lio_vf_rep_pkt_xmit() 415 sc->ctxptr = skb; in lio_vf_rep_pkt_xmit() 416 sc->iq_no = parent_lio->txq; in lio_vf_rep_pkt_xmit() [all …]
|
H A D | lio_core.c | 215 sc = buf; in octeon_update_tx_completion_counters() 243 sc = buf; in octeon_report_sent_bytes_to_bql() 1224 if (!sc) { in liquidio_change_mtu() 1259 if (sc->sc_status) { in liquidio_change_mtu() 1410 if (!sc) { in lio_fetch_vf_stats() 1486 if (!sc) { in lio_fetch_stats() 1515 octnet_nic_stats_callback(oct_dev, sc->sc_status, sc); in lio_fetch_stats() 1548 if (!sc) in liquidio_set_speed() 1615 if (!sc) in liquidio_get_speed() 1706 if (!sc) { in liquidio_set_fec() [all …]
|
/openbmc/linux/net/tipc/ |
H A D | name_table.c | 489 if (!sc) in tipc_nametbl_insert_publ() 491 if (sc && tipc_service_insert_publ(net, sc, p)) in tipc_nametbl_insert_publ() 509 if (!sc) in tipc_nametbl_remove_publ() 533 if (RB_EMPTY_ROOT(&sc->ranges) && list_empty(&sc->subscriptions)) { in tipc_nametbl_remove_publ() 588 if (unlikely(!sc)) in tipc_nametbl_lookup_anycast() 685 if (!sc) in tipc_nametbl_lookup_mcast_sockets() 714 if (!sc) in tipc_nametbl_lookup_mcast_nodes() 740 if (!sc) in tipc_nametbl_build_group() 839 if (!sc) in tipc_nametbl_subscribe() 841 if (sc) { in tipc_nametbl_subscribe() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath9k/ |
H A D | dfs_debug.c | 29 sc->debug.stats.dfs_stats.p) 37 struct ath_softc *sc = file->private_data; in read_file_dfs() local 53 if (!sc->dfs_detector) { in read_file_dfs() 59 dfs_pool_stats = sc->dfs_detector->get_stats(sc->dfs_detector); in read_file_dfs() 73 sc->dfs_detector->region); in read_file_dfs() 100 struct ath_softc *sc = file->private_data; in write_file_dfs() local 108 memset(&sc->debug.stats.dfs_stats, 0, in write_file_dfs() 117 struct ath_softc *sc = file->private_data; in write_file_simulate_radar() local 119 ieee80211_radar_detected(sc->hw); in write_file_simulate_radar() 142 sc->debug.debugfs_phy, sc, &fops_dfs_stats); in ath9k_dfs_init_debug() [all …]
|
H A D | dfs.c | 105 struct ath_hw *ah = sc->sc_ah; in ath9k_check_chirping() 217 DFS_STAT_INC(sc, pri_phy_errors); in ath9k_postprocess_radar_event() 246 DFS_STAT_INC(sc, dc_phy_errors); in ath9k_postprocess_radar_event() 261 DFS_STAT_INC(sc, rssi_discards); in ath9k_postprocess_radar_event() 282 DFS_STAT_INC(sc, radar_detected); in ath9k_dfs_process_radar_pulse() 283 ieee80211_radar_detected(sc->hw); in ath9k_dfs_process_radar_pulse() 296 struct ath_hw *ah = sc->sc_ah; in ath9k_dfs_process_phyerr() 299 DFS_STAT_INC(sc, pulses_total); in ath9k_dfs_process_phyerr() 305 DFS_STAT_INC(sc, pulses_no_dfs); in ath9k_dfs_process_phyerr() 350 pe.ts - sc->dfs_prev_pulse_ts); in ath9k_dfs_process_phyerr() [all …]
|
H A D | ahb.c | 75 struct ath_softc *sc; in ath_ahb_probe() local 115 sc = hw->priv; in ath_ahb_probe() 116 sc->hw = hw; in ath_ahb_probe() 117 sc->dev = &pdev->dev; in ath_ahb_probe() 118 sc->mem = mem; in ath_ahb_probe() 119 sc->irq = irq; in ath_ahb_probe() 133 ah = sc->sc_ah; in ath_ahb_probe() 141 free_irq(irq, sc); in ath_ahb_probe() 154 ath9k_deinit_device(sc); in ath_ahb_remove() 155 free_irq(sc->irq, sc); in ath_ahb_remove() [all …]
|
/openbmc/linux/arch/mips/kernel/ |
H A D | signal_o32.c | 53 struct sigcontext32 __user *sc) in setup_sigcontext32() argument 60 err |= __put_user(0, &sc->sc_regs[0]); in setup_sigcontext32() 64 err |= __put_user(regs->hi, &sc->sc_mdhi); in setup_sigcontext32() 68 err |= __put_user(mfhi1(), &sc->sc_hi1); in setup_sigcontext32() 69 err |= __put_user(mflo1(), &sc->sc_lo1); in setup_sigcontext32() 70 err |= __put_user(mfhi2(), &sc->sc_hi2); in setup_sigcontext32() 71 err |= __put_user(mflo2(), &sc->sc_lo2); in setup_sigcontext32() 72 err |= __put_user(mfhi3(), &sc->sc_hi3); in setup_sigcontext32() 73 err |= __put_user(mflo3(), &sc->sc_lo3); in setup_sigcontext32() 80 err |= protected_save_fp_context(sc); in setup_sigcontext32() [all …]
|
/openbmc/linux/drivers/infiniband/hw/hfi1/ |
H A D | pio.h | 105 struct send_context *sc; /* allocated working context */ member 243 void sc_free(struct send_context *sc); 244 int sc_enable(struct send_context *sc); 245 void sc_disable(struct send_context *sc); 246 int sc_restart(struct send_context *sc); 247 void sc_return_credits(struct send_context *sc); 248 void sc_flush(struct send_context *sc); 249 void sc_drop(struct send_context *sc); 250 void sc_stop(struct send_context *sc, int bit); 253 void sc_release_update(struct send_context *sc); [all …]
|
/openbmc/qemu/linux-user/alpha/ |
H A D | signal.c | 57 struct target_sigcontext sc; member 75 __put_user(set->sig[0], &sc->sc_mask); in setup_sigcontext() 76 __put_user(env->pc, &sc->sc_pc); in setup_sigcontext() 77 __put_user(8, &sc->sc_ps); in setup_sigcontext() 82 __put_user(0, &sc->sc_regs[31]); in setup_sigcontext() 87 __put_user(0, &sc->sc_fpregs[31]); in setup_sigcontext() 101 __get_user(env->pc, &sc->sc_pc); in restore_sigcontext() 110 __get_user(fpcr, &sc->sc_fpcr); in restore_sigcontext() 211 struct target_sigcontext *sc; in do_sigreturn() local 226 restore_sigcontext(env, sc); in do_sigreturn() [all …]
|
/openbmc/linux/net/ipv6/ |
H A D | ioam6.c | 45 if (sc) in ioam6_free_sc() 191 if (sc) in ioam6_genl_delns() 328 if (sc) { in ioam6_genl_addsc() 336 sc = kzalloc(sizeof(*sc) + len_aligned, GFP_KERNEL); in ioam6_genl_addsc() 337 if (!sc) { in ioam6_genl_addsc() 344 sc->hdr = cpu_to_be32(sc->id | ((u8)(sc->len / 4) << 24)); in ioam6_genl_addsc() 356 kfree(sc); in ioam6_genl_addsc() 377 if (!sc) { in ioam6_genl_delsc() 541 if (sc) { in ioam6_genl_ns_set_schema() 855 memcpy(data, sc->data, sc->len); in __ioam6_fill_trace_data() [all …]
|
/openbmc/linux/arch/m68k/kernel/ |
H A D | signal.c | 232 struct sigcontext sc; member 266 if (CPU_IS_060 ? sc->sc_fpstate[2] : sc->sc_fpstate[0]) { in restore_fpu_state() 273 !(sc->sc_fpstate[1] == 0x18 || sc->sc_fpstate[1] == 0xb4)) in restore_fpu_state() 276 !(sc->sc_fpstate[1] == 0x38 || sc->sc_fpstate[1] == 0xd4)) in restore_fpu_state() 448 if (CPU_IS_060 ? sc->sc_fpstate[2] : sc->sc_fpstate[0]) { in save_fpu_state() 816 sc->sc_mask = mask; in setup_sigcontext() 817 sc->sc_usp = rdusp(); in setup_sigcontext() 818 sc->sc_d0 = regs->d0; in setup_sigcontext() 819 sc->sc_d1 = regs->d1; in setup_sigcontext() 820 sc->sc_a0 = regs->a0; in setup_sigcontext() [all …]
|
/openbmc/qemu/hw/ppc/ |
H A D | spapr_cpu_core.c | 196 if (!sc->pre_3_0_migration) { in spapr_unrealize_vcpu() 214 spapr_reset_vcpu(sc->threads[i]); in spapr_cpu_core_reset() 242 if (sc->threads[i]) { in spapr_cpu_core_unrealize() 250 spapr_unrealize_vcpu(sc->threads[i], sc); in spapr_cpu_core_unrealize() 255 g_free(sc->threads); in spapr_cpu_core_unrealize() 285 if (!sc->pre_3_0_migration) { in spapr_realize_vcpu() 295 CPUCore *cc = CPU_CORE(sc); in spapr_create_vcpu() 315 cpu->node_id = sc->node_id; in spapr_create_vcpu() 345 sc->threads[i] = spapr_create_vcpu(sc, i, errp); in spapr_cpu_core_realize() 346 if (!sc->threads[i] || in spapr_cpu_core_realize() [all …]
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | signal_64.c | 179 unsafe_put_user(&sc->gp_regs, &sc->regs, efault_out); in __unsafe_setup_sigcontext() 240 err |= __put_user(v_regs, &sc->v_regs); in setup_tm_sigcontexts() 279 err |= __put_user(0, &sc->v_regs); in setup_tm_sigcontexts() 314 err |= __put_user(&sc->gp_regs, &sc->regs); in setup_tm_sigcontexts() 317 err |= __copy_to_user(&sc->gp_regs, in setup_tm_sigcontexts() 321 err |= __put_user(signr, &sc->signal); in setup_tm_sigcontexts() 438 struct sigcontext __user *sc, in restore_tm_sigcontexts() argument 487 &sc->gp_regs[PT_CTR]); in restore_tm_sigcontexts() 489 &sc->gp_regs[PT_LNK]); in restore_tm_sigcontexts() 491 &sc->gp_regs[PT_XER]); in restore_tm_sigcontexts() [all …]
|
/openbmc/linux/drivers/media/platform/ti/vpe/ |
H A D | sc.c | 26 ioread32(sc->base + CFG_##r)) in sc_dump_regs() 102 sc->load_coeff_h = true; in sc_set_hs_coeffs() 143 sc->load_coeff_v = true; in sc_set_vs_coeffs() 277 struct sc_data *sc; in sc_create() local 281 sc = devm_kzalloc(&pdev->dev, sizeof(*sc), GFP_KERNEL); in sc_create() 282 if (!sc) { in sc_create() 287 sc->pdev = pdev; in sc_create() 290 if (!sc->res) { in sc_create() 296 sc->base = devm_ioremap_resource(&pdev->dev, sc->res); in sc_create() 297 if (IS_ERR(sc->base)) in sc_create() [all …]
|
/openbmc/linux/drivers/net/ethernet/microsoft/mana/ |
H A D | shm_channel.c | 98 void __iomem *base = sc->base; in mana_smc_read_response() 129 void mana_smc_init(struct shm_channel *sc, struct device *dev, in mana_smc_init() argument 132 sc->dev = dev; in mana_smc_init() 133 sc->base = base; in mana_smc_init() 152 err = mana_smc_poll_register(sc->base, false); in mana_smc_setup_hwc() 154 dev_err(sc->dev, "Timeout when setting up HWC: %d\n", err); in mana_smc_setup_hwc() 238 writel(*dword++, sc->base + i * SMC_BASIC_UNIT); in mana_smc_setup_hwc() 248 dev_err(sc->dev, "Error when setting up HWC: %d\n", err); in mana_smc_setup_hwc() 261 err = mana_smc_poll_register(sc->base, false); in mana_smc_teardown_hwc() 263 dev_err(sc->dev, "Timeout when tearing down HWC\n"); in mana_smc_teardown_hwc() [all …]
|
/openbmc/qemu/linux-user/mips/ |
H A D | signal.c | 111 __put_user(0, &sc->sc_regs[0]); in setup_sigcontext() 121 __put_user(regs->active_tc.HI[1], &sc->sc_hi1); in setup_sigcontext() 122 __put_user(regs->active_tc.HI[2], &sc->sc_hi2); in setup_sigcontext() 123 __put_user(regs->active_tc.HI[3], &sc->sc_hi3); in setup_sigcontext() 124 __put_user(regs->active_tc.LO[1], &sc->sc_lo1); in setup_sigcontext() 125 __put_user(regs->active_tc.LO[2], &sc->sc_lo2); in setup_sigcontext() 126 __put_user(regs->active_tc.LO[3], &sc->sc_lo3); in setup_sigcontext() 129 __put_user(dsp, &sc->sc_dsp); in setup_sigcontext() 132 __put_user(1, &sc->sc_used_math); in setup_sigcontext() 144 __get_user(regs->CP0_EPC, &sc->sc_pc); in restore_sigcontext() [all …]
|
/openbmc/qemu/hw/i2c/ |
H A D | core.c | 125 I2CSlaveClass *sc; in i2c_do_start_transfer() local 163 if (sc->event) { in i2c_do_start_transfer() 240 I2CSlaveClass *sc; in i2c_end_transfer() local 246 if (sc->event) { in i2c_end_transfer() 258 I2CSlaveClass *sc; in i2c_send() local 266 if (sc->send) { in i2c_send() 283 if (!sc->send_async) { in i2c_send_async() 297 I2CSlaveClass *sc; in i2c_recv() local 302 if (sc->recv) { in i2c_recv() 314 I2CSlaveClass *sc; in i2c_nack() local [all …]
|
/openbmc/linux/drivers/target/loopback/ |
H A D | tcm_loop.c | 69 struct scsi_cmnd *sc = tl_cmd->sc; in tcm_loop_release_cmd() local 74 scsi_done(sc); in tcm_loop_release_cmd() 104 struct scsi_cmnd *sc = tl_cmd->sc; in tcm_loop_target_queue_cmd() local 151 if (target_submit_prep(se_cmd, sc->cmnd, scsi_sglist(sc), in tcm_loop_target_queue_cmd() 153 scsi_prot_sglist(sc), scsi_prot_sg_count(sc), in tcm_loop_target_queue_cmd() 161 scsi_done(sc); in tcm_loop_target_queue_cmd() 173 __func__, sc->device->host->host_no, sc->device->id, in tcm_loop_queuecommand() 174 sc->device->channel, sc->device->lun, sc->cmnd[0], in tcm_loop_queuecommand() 178 tl_cmd->sc = sc; in tcm_loop_queuecommand() 516 struct scsi_cmnd *sc = tl_cmd->sc; in tcm_loop_queue_data_or_status() local [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 271 | 97 unset c sc off len cmd 117 sc="${sc:-0}" 157 _run_test sc=0 len=1k 169 _run_test sc=3 len=2k 173 _run_test sc=4 len=6k 181 _run_test sc=16 len=1k 199 _run_test sc=0 len=64k 215 _run_test sc=0 len=64k 244 _run_test sc=12 len=40k 248 _run_test c=1 sc=13 len=2k [all …]
|
/openbmc/linux/arch/mips/include/asm/ |
H A D | atomic.h | 64 " " #sc " %0, %1 \n" \ 94 " " #sc " %0, %2 \n" \ 127 " " #sc " %0, %2 \n" \ 144 ATOMIC_OPS(atomic, add, int, +=, addu, ll, sc) 145 ATOMIC_OPS(atomic, sub, int, -=, subu, ll, sc) 166 ATOMIC_OPS(atomic, and, int, &=, and, ll, sc) 167 ATOMIC_OPS(atomic, or, int, |=, or, ll, sc) 168 ATOMIC_OPS(atomic, xor, int, ^=, xor, ll, sc) 196 #define ATOMIC_SIP_OP(pfx, type, op, ll, sc) \ argument 227 " " #sc " %1, %2 \n" \ [all …]
|
/openbmc/linux/net/ceph/ |
H A D | snapshot.c | 46 struct ceph_snap_context *ceph_get_snap_context(struct ceph_snap_context *sc) in ceph_get_snap_context() argument 48 if (sc) in ceph_get_snap_context() 49 refcount_inc(&sc->nref); in ceph_get_snap_context() 50 return sc; in ceph_get_snap_context() 54 void ceph_put_snap_context(struct ceph_snap_context *sc) in ceph_put_snap_context() argument 56 if (!sc) in ceph_put_snap_context() 58 if (refcount_dec_and_test(&sc->nref)) { in ceph_put_snap_context() 60 kfree(sc); in ceph_put_snap_context()
|
/openbmc/linux/drivers/hwtracing/stm/ |
H A D | console.c | 33 struct stm_console *sc = container_of(con, struct stm_console, console); in stm_console_write() local 35 stm_source_write(&sc->data, 0, buf, len); in stm_console_write() 40 struct stm_console *sc = container_of(data, struct stm_console, data); in stm_console_link() local 42 strcpy(sc->console.name, "stm_console"); in stm_console_link() 43 sc->console.write = stm_console_write; in stm_console_link() 44 sc->console.flags = CON_ENABLED | CON_PRINTBUFFER; in stm_console_link() 45 register_console(&sc->console); in stm_console_link() 52 struct stm_console *sc = container_of(data, struct stm_console, data); in stm_console_unlink() local 54 unregister_console(&sc->console); in stm_console_unlink()
|
/openbmc/qemu/linux-user/hppa/ |
H A D | signal.c | 68 __put_user(env->iaoq_f, &sc->sc_iaoq[0]); in setup_sigcontext() 69 __put_user(env->iaoq_b, &sc->sc_iaoq[1]); in setup_sigcontext() 70 __put_user(0, &sc->sc_iasq[0]); in setup_sigcontext() 71 __put_user(0, &sc->sc_iasq[1]); in setup_sigcontext() 72 __put_user(0, &sc->sc_flags); in setup_sigcontext() 76 __put_user(env->gr[i], &sc->sc_gr[i]); in setup_sigcontext() 84 __put_user(env->cr[CR_SAR], &sc->sc_sar); in setup_sigcontext() 92 __get_user(psw, &sc->sc_gr[0]); in restore_sigcontext() 103 __get_user(env->iaoq_f, &sc->sc_iaoq[0]); in restore_sigcontext() 104 __get_user(env->iaoq_b, &sc->sc_iaoq[1]); in restore_sigcontext() [all …]
|