/openbmc/linux/net/bluetooth/ |
H A D | smp.c | 54 #define SMP_ALLOW_CMD(smp, code) set_bit(code, &smp->allow_cmd) argument 542 struct smp_dev *smp; in smp_generate_oob() local 548 smp = chan->data; in smp_generate_oob() 552 err = set_ecdh_privkey(smp->tfm_ecdh, debug_sk); in smp_generate_oob() 555 memcpy(smp->local_pk, debug_pk, 64); in smp_generate_oob() 556 smp->debug_key = true; in smp_generate_oob() 560 err = generate_ecdh_keys(smp->tfm_ecdh, smp->local_pk); in smp_generate_oob() 567 if (crypto_memneq(smp->local_pk, debug_pk, 64)) in smp_generate_oob() 570 smp->debug_key = false; in smp_generate_oob() 573 SMP_DBG("OOB Public Key X: %32phN", smp->local_pk); in smp_generate_oob() [all …]
|
/openbmc/linux/drivers/infiniband/core/ |
H A D | smi.c | 129 enum smi_action smi_handle_dr_smp_send(struct ib_smp *smp, in smi_handle_dr_smp_send() argument 133 &smp->hop_ptr, smp->hop_cnt, in smi_handle_dr_smp_send() 134 smp->initial_path, in smi_handle_dr_smp_send() 135 smp->return_path, in smi_handle_dr_smp_send() 136 ib_get_smp_direction(smp), in smi_handle_dr_smp_send() 137 smp->dr_dlid == IB_LID_PERMISSIVE, in smi_handle_dr_smp_send() 138 smp->dr_slid == IB_LID_PERMISSIVE); in smi_handle_dr_smp_send() 141 enum smi_action opa_smi_handle_dr_smp_send(struct opa_smp *smp, in opa_smi_handle_dr_smp_send() argument 145 &smp->hop_ptr, smp->hop_cnt, in opa_smi_handle_dr_smp_send() 146 smp->route.dr.initial_path, in opa_smi_handle_dr_smp_send() [all …]
|
H A D | opa_smi.h | 42 enum smi_action opa_smi_handle_dr_smp_recv(struct opa_smp *smp, bool is_switch, 44 int opa_smi_get_fwd_port(struct opa_smp *smp); 45 extern enum smi_forward_action opa_smi_check_forward_dr_smp(struct opa_smp *smp); 46 extern enum smi_action opa_smi_handle_dr_smp_send(struct opa_smp *smp, 53 static inline enum smi_action opa_smi_check_local_smp(struct opa_smp *smp, in opa_smi_check_local_smp() argument 59 !opa_get_smp_direction(smp) && in opa_smi_check_local_smp() 60 (smp->hop_ptr == smp->hop_cnt + 1)) ? in opa_smi_check_local_smp() 68 static inline enum smi_action opa_smi_check_local_returning_smp(struct opa_smp *smp, in opa_smi_check_local_returning_smp() argument 74 opa_get_smp_direction(smp) && in opa_smi_check_local_returning_smp() 75 !smp->hop_ptr) ? IB_SMI_HANDLE : IB_SMI_DISCARD; in opa_smi_check_local_returning_smp()
|
H A D | smi.h | 54 enum smi_action smi_handle_dr_smp_recv(struct ib_smp *smp, bool is_switch, 56 int smi_get_fwd_port(struct ib_smp *smp); 57 extern enum smi_forward_action smi_check_forward_dr_smp(struct ib_smp *smp); 58 extern enum smi_action smi_handle_dr_smp_send(struct ib_smp *smp, 65 static inline enum smi_action smi_check_local_smp(struct ib_smp *smp, in smi_check_local_smp() argument 71 !ib_get_smp_direction(smp) && in smi_check_local_smp() 72 (smp->hop_ptr == smp->hop_cnt + 1)) ? in smi_check_local_smp() 80 static inline enum smi_action smi_check_local_returning_smp(struct ib_smp *smp, in smi_check_local_returning_smp() argument 86 ib_get_smp_direction(smp) && in smi_check_local_returning_smp() 87 !smp->hop_ptr) ? IB_SMI_HANDLE : IB_SMI_DISCARD); in smi_check_local_returning_smp()
|
/openbmc/linux/drivers/gpu/drm/msm/disp/mdp5/ |
H A D | mdp5_smp.c | 32 struct mdp5_kms *get_kms(struct mdp5_smp *smp) in get_kms() argument 34 struct msm_drm_private *priv = smp->dev->dev_private; in get_kms() 58 return mdp5_cfg->smp.clients[pipe] + plane; in pipe2client() 62 static int smp_request_block(struct mdp5_smp *smp, in smp_request_block() argument 67 int i, avail, cnt = smp->blk_cnt; in smp_request_block() 73 reserved = smp->reserved[cid]; in smp_request_block() 82 DRM_DEV_ERROR(smp->dev->dev, "out of blks (req=%d > avail=%d)\n", in smp_request_block() 96 static void set_fifo_thresholds(struct mdp5_smp *smp, in set_fifo_thresholds() argument 99 u32 smp_entries_per_blk = smp->blk_size / (128 / BITS_PER_BYTE); in set_fifo_thresholds() 105 smp->pipe_reqprio_fifo_wm0[pipe] = val * 1; in set_fifo_thresholds() [all …]
|
H A D | mdp5_smp.h | 71 void mdp5_smp_destroy(struct mdp5_smp *smp); 73 void mdp5_smp_dump(struct mdp5_smp *smp, struct drm_printer *p); 75 uint32_t mdp5_smp_calculate(struct mdp5_smp *smp, 79 int mdp5_smp_assign(struct mdp5_smp *smp, struct mdp5_smp_state *state, 81 void mdp5_smp_release(struct mdp5_smp *smp, struct mdp5_smp_state *state, 84 void mdp5_smp_prepare_commit(struct mdp5_smp *smp, struct mdp5_smp_state *state); 85 void mdp5_smp_complete_commit(struct mdp5_smp *smp, struct mdp5_smp_state *state);
|
H A D | mdp5_pipe.c | 94 if (mdp5_kms->smp) { in mdp5_pipe_assign() 101 ret = mdp5_smp_assign(mdp5_kms->smp, &new_global_state->smp, in mdp5_pipe_assign() 144 if (mdp5_kms->smp) { in mdp5_pipe_release() 146 mdp5_smp_release(mdp5_kms->smp, &state->smp, hwpipe->pipe); in mdp5_pipe_release()
|
/openbmc/linux/include/rdma/ |
H A D | opa_smi.h | 95 opa_get_smp_direction(struct opa_smp *smp) in opa_get_smp_direction() argument 97 return ib_get_smp_direction((struct ib_smp *)smp); in opa_get_smp_direction() 100 static inline u8 *opa_get_smp_data(struct opa_smp *smp) in opa_get_smp_data() argument 102 if (smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in opa_get_smp_data() 103 return smp->route.dr.data; in opa_get_smp_data() 105 return smp->route.lid.data; in opa_get_smp_data() 108 static inline size_t opa_get_smp_data_size(struct opa_smp *smp) in opa_get_smp_data_size() argument 110 if (smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in opa_get_smp_data_size() 111 return sizeof(smp->route.dr.data); in opa_get_smp_data_size() 113 return sizeof(smp->route.lid.data); in opa_get_smp_data_size() [all …]
|
/openbmc/linux/drivers/infiniband/hw/hfi1/ |
H A D | mad.c | 39 static int reply(struct ib_mad_hdr *smp) in reply() argument 45 smp->method = IB_MGMT_METHOD_GET_RESP; in reply() 46 if (smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in reply() 47 smp->status |= IB_SMP_DIRECTION; in reply() 51 static inline void clear_opa_smp_data(struct opa_smp *smp) in clear_opa_smp_data() argument 53 void *data = opa_get_smp_data(smp); in clear_opa_smp_data() 54 size_t size = opa_get_smp_data_size(smp); in clear_opa_smp_data() 187 struct opa_smp *smp) in subn_handle_opa_trap_repress() argument 194 if (smp->attr_id != IB_SMP_ATTR_NOTICE) in subn_handle_opa_trap_repress() 202 if (trap && trap->tid == smp->tid) { in subn_handle_opa_trap_repress() [all …]
|
/openbmc/qemu/include/hw/s390x/ |
H A D | cpu-topology.h | 66 static inline int s390_std_socket(int n, CpuTopology *smp) in s390_std_socket() argument 68 return (n / smp->cores) % smp->sockets; in s390_std_socket() 71 static inline int s390_std_book(int n, CpuTopology *smp) in s390_std_book() argument 73 return (n / (smp->cores * smp->sockets)) % smp->books; in s390_std_book() 76 static inline int s390_std_drawer(int n, CpuTopology *smp) in s390_std_drawer() argument 78 return (n / (smp->cores * smp->sockets * smp->books)) % smp->drawers; in s390_std_drawer()
|
/openbmc/linux/drivers/infiniband/hw/qib/ |
H A D | qib_mad.c | 40 static int reply(struct ib_smp *smp) in reply() argument 46 smp->method = IB_MGMT_METHOD_GET_RESP; in reply() 47 if (smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in reply() 48 smp->status |= IB_SMP_DIRECTION; in reply() 52 static int reply_failure(struct ib_smp *smp) in reply_failure() argument 58 smp->method = IB_MGMT_METHOD_GET_RESP; in reply_failure() 59 if (smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in reply_failure() 60 smp->status |= IB_SMP_DIRECTION; in reply_failure() 68 struct ib_smp *smp; in qib_send_trap() local 92 smp = send_buf->mad; in qib_send_trap() [all …]
|
/openbmc/qemu/hw/core/ |
H A D | machine-smp.c | 37 g_string_append_printf(s, "drawers (%u) * ", ms->smp.drawers); in cpu_hierarchy_to_string() 41 g_string_append_printf(s, "books (%u) * ", ms->smp.books); in cpu_hierarchy_to_string() 44 g_string_append_printf(s, "sockets (%u)", ms->smp.sockets); in cpu_hierarchy_to_string() 47 g_string_append_printf(s, " * dies (%u)", ms->smp.dies); in cpu_hierarchy_to_string() 51 g_string_append_printf(s, " * clusters (%u)", ms->smp.clusters); in cpu_hierarchy_to_string() 55 g_string_append_printf(s, " * modules (%u)", ms->smp.modules); in cpu_hierarchy_to_string() 58 g_string_append_printf(s, " * cores (%u)", ms->smp.cores); in cpu_hierarchy_to_string() 59 g_string_append_printf(s, " * threads (%u)", ms->smp.threads); in cpu_hierarchy_to_string() 215 ms->smp.cpus = cpus; in machine_parse_smp_config() 216 ms->smp.drawers = drawers; in machine_parse_smp_config() [all …]
|
/openbmc/linux/drivers/scsi/csiostor/ |
H A D | csio_defs.h | 98 csio_set_state(void *smp, void *state) in csio_set_state() argument 100 ((struct csio_sm *)smp)->sm_state = state; in csio_set_state() 104 csio_init_state(struct csio_sm *smp, void *state) in csio_init_state() argument 106 csio_set_state(smp, state); in csio_init_state() 110 csio_post_event(void *smp, uint32_t evt) in csio_post_event() argument 112 ((struct csio_sm *)smp)->sm_state(smp, evt); in csio_post_event() 116 csio_get_state(void *smp) in csio_get_state() argument 118 return ((struct csio_sm *)smp)->sm_state; in csio_get_state() 122 csio_match_state(void *smp, void *state) in csio_match_state() argument 124 return (csio_get_state(smp) == (csio_sm_state_t)state); in csio_match_state()
|
/openbmc/qemu/hw/s390x/ |
H A D | cpu-topology.c | 50 return (drawer_id * current_machine->smp.books + book_id) * in s390_socket_nb_from_ids() 51 current_machine->smp.sockets + socket_id; in s390_socket_nb_from_ids() 89 CpuTopology *smp = &ms->smp; in s390_topology_init() local 91 s390_topology.cores_per_socket = g_new0(uint8_t, smp->sockets * in s390_topology_init() 92 smp->books * smp->drawers); in s390_topology_init() 184 CpuTopology *smp = ¤t_machine->smp; in s390_topology_cpu_default() local 197 env->socket_id = s390_std_socket(env->core_id, smp); in s390_topology_cpu_default() 198 env->book_id = s390_std_book(env->core_id, smp); in s390_topology_cpu_default() 199 env->drawer_id = s390_std_drawer(env->core_id, smp); in s390_topology_cpu_default() 237 CpuTopology *smp = ¤t_machine->smp; in s390_topology_check() local [all …]
|
/openbmc/linux/arch/arm/mach-shmobile/ |
H A D | Makefile | 30 smp-y := $(cpu-y) 31 smp-$(CONFIG_ARCH_RCAR_GEN2) += headsmp-apmu.o 32 smp-$(CONFIG_ARCH_SH73A0) += smp-sh73a0.o headsmp-scu.o platsmp-scu.o 33 smp-$(CONFIG_ARCH_R8A7779) += smp-r8a7779.o headsmp-scu.o platsmp-scu.o 34 smp-$(CONFIG_ARCH_EMEV2) += smp-emev2.o headsmp-scu.o platsmp-scu.o 41 obj-$(CONFIG_SMP) += $(smp-y)
|
/openbmc/linux/include/trace/events/ |
H A D | ib_mad.h | 295 TP_PROTO(struct opa_smp *smp), 296 TP_ARGS(smp), 309 __entry->hop_ptr = smp->hop_ptr; 310 __entry->hop_cnt = smp->hop_cnt; 311 __entry->mkey = smp->mkey; 312 __entry->dr_slid = smp->route.dr.dr_slid; 313 __entry->dr_dlid = smp->route.dr.dr_dlid; 314 memcpy(__entry->initial_path, smp->route.dr.initial_path, 316 memcpy(__entry->return_path, smp->route.dr.return_path, 332 TP_PROTO(struct opa_smp *smp), [all …]
|
/openbmc/linux/arch/powerpc/platforms/8xx/ |
H A D | micropatch.c | 353 smc_uart_t *smp; in cpm_load_patch() local 355 smp = (smc_uart_t *)&cp->cp_dparam[PROFF_SMC1]; in cpm_load_patch() 356 out_be16(&smp->smc_rpbase, 0x1FC0); in cpm_load_patch() 361 smc_uart_t *smp; in cpm_load_patch() local 366 for (i = 0; i < sizeof(*smp); i += 4) { in cpm_load_patch() 374 smp = (smc_uart_t *)&cp->cp_dparam[PROFF_SMC1]; in cpm_load_patch() 375 out_be16(&smp->smc_rpbase, 0x1ec0); in cpm_load_patch() 376 smp = (smc_uart_t *)&cp->cp_dparam[PROFF_SMC2]; in cpm_load_patch() 377 out_be16(&smp->smc_rpbase, 0x1fc0); in cpm_load_patch()
|
/openbmc/qemu/hw/riscv/ |
H A D | numa.c | 40 int i, first_hartid = ms->smp.cpus; in riscv_socket_first_hartid() 46 for (i = 0; i < ms->smp.cpus; i++) { in riscv_socket_first_hartid() 55 return (first_hartid < ms->smp.cpus) ? first_hartid : -1; in riscv_socket_first_hartid() 63 return (!socket_id) ? ms->smp.cpus - 1 : -1; in riscv_socket_last_hartid() 66 for (i = 0; i < ms->smp.cpus; i++) { in riscv_socket_last_hartid() 75 return (last_hartid < ms->smp.cpus) ? last_hartid : -1; in riscv_socket_last_hartid() 83 return (!socket_id) ? ms->smp.cpus : -1; in riscv_socket_hart_count() 210 if (ms->numa_state->num_nodes > ms->smp.cpus) { in riscv_numa_get_default_cpu_node_id() 213 ms->numa_state->num_nodes, ms->smp.cpus); in riscv_numa_get_default_cpu_node_id() 217 nidx = idx / (ms->smp.cpus / ms->numa_state->num_nodes); in riscv_numa_get_default_cpu_node_id() [all …]
|
/openbmc/qemu/target/s390x/kvm/ |
H A D | stsi-topology.c | 143 sysib->mag[S390_TOPOLOGY_MAG4] = current_machine->smp.drawers; in setup_stsi() 144 sysib->mag[S390_TOPOLOGY_MAG3] = current_machine->smp.books; in setup_stsi() 145 sysib->mag[S390_TOPOLOGY_MAG2] = current_machine->smp.sockets; in setup_stsi() 146 sysib->mag[S390_TOPOLOGY_MAG1] = current_machine->smp.cores; in setup_stsi() 149 sysib->mag[S390_TOPOLOGY_MAG3] = current_machine->smp.drawers * in setup_stsi() 150 current_machine->smp.books; in setup_stsi() 151 sysib->mag[S390_TOPOLOGY_MAG2] = current_machine->smp.sockets; in setup_stsi() 152 sysib->mag[S390_TOPOLOGY_MAG1] = current_machine->smp.cores; in setup_stsi() 155 sysib->mag[S390_TOPOLOGY_MAG2] = current_machine->smp.drawers * in setup_stsi() 156 current_machine->smp.books * in setup_stsi() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/arm/cpu-enable-method/ |
H A D | marvell,berlin-smp | 2 Secondary CPU enable-method "marvell,berlin-smp" binding 5 This document describes the "marvell,berlin-smp" method for enabling secondary 6 CPUs. To apply to all CPUs, a single "marvell,berlin-smp" enable method should 9 Enable method name: "marvell,berlin-smp" 23 enable-method = "marvell,berlin-smp";
|
H A D | nuvoton,npcm750-smp | 2 Secondary CPU enable-method "nuvoton,npcm750-smp" binding 5 To apply to all CPUs, a single "nuvoton,npcm750-smp" enable method should be 8 Enable method name: "nuvoton,npcm750-smp" 22 enable-method = "nuvoton,npcm750-smp";
|
/openbmc/linux/drivers/sh/intc/ |
H A D | core.c | 167 unsigned int smp) in save_reg() argument 174 d->smp[cnt] = smp; in save_reg() 199 unsigned int i, k, smp; in register_intc_controller() local 252 d->smp = kcalloc(d->nr_reg, sizeof(*d->smp), GFP_NOWAIT); in register_intc_controller() 253 if (!d->smp) in register_intc_controller() 260 smp = IS_SMP(hw->mask_regs[i]); in register_intc_controller() 261 k += save_reg(d, k, hw->mask_regs[i].set_reg, smp); in register_intc_controller() 262 k += save_reg(d, k, hw->mask_regs[i].clr_reg, smp); in register_intc_controller() 276 smp = IS_SMP(hw->prio_regs[i]); in register_intc_controller() 277 k += save_reg(d, k, hw->prio_regs[i].set_reg, smp); in register_intc_controller() [all …]
|
/openbmc/u-boot/tools/gdb/ |
H A D | serial.c | 53 struct speedmap *smp = speedmap, *esmp = &speedmap[nspeeds]; in cvtspeed() local 55 while (smp < esmp) { in cvtspeed() 56 if (strcmp(str, smp->str) == 0) in cvtspeed() 57 return (smp->val); in cvtspeed() 58 smp++; in cvtspeed()
|
/openbmc/linux/arch/arm/boot/dts/qcom/ |
H A D | qcom-msm8916-smp.dtsi | 6 enable-method = "qcom,msm8916-smp"; 9 enable-method = "qcom,msm8916-smp"; 12 enable-method = "qcom,msm8916-smp"; 15 enable-method = "qcom,msm8916-smp";
|
/openbmc/linux/arch/sh/kernel/cpu/sh2/ |
H A D | Makefile | 11 smp-$(CONFIG_CPU_J2) := smp-j2.o 12 obj-$(CONFIG_SMP) += $(smp-y)
|