| /linux/net/bluetooth/ |
| H A D | smp.c | 53 #define SMP_ALLOW_CMD(smp, code) set_bit(code, &smp->allow_cmd) argument 541 struct smp_dev *smp; in smp_generate_oob() local 547 smp = chan->data; in smp_generate_oob() 551 err = set_ecdh_privkey(smp->tfm_ecdh, debug_sk); in smp_generate_oob() 554 memcpy(smp->local_pk, debug_pk, 64); in smp_generate_oob() 555 smp->debug_key = true; in smp_generate_oob() 559 err = generate_ecdh_keys(smp->tfm_ecdh, smp->local_pk); in smp_generate_oob() 566 if (crypto_memneq(smp->local_pk, debug_pk, 64)) in smp_generate_oob() 569 smp->debug_key = false; in smp_generate_oob() 572 SMP_DBG("OOB Public Key X: %32phN", smp->local_pk); in smp_generate_oob() [all …]
|
| /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()
|
| /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 | 73 void mdp5_smp_dump(struct mdp5_smp *smp, struct drm_printer *p, 76 uint32_t mdp5_smp_calculate(struct mdp5_smp *smp, 80 int mdp5_smp_assign(struct mdp5_smp *smp, struct mdp5_smp_state *state, 82 void mdp5_smp_release(struct mdp5_smp *smp, struct mdp5_smp_state *state, 85 void mdp5_smp_prepare_commit(struct mdp5_smp *smp, struct mdp5_smp_state *state); 86 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()
|
| /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 …]
|
| /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 …]
|
| /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()
|
| /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)
|
| /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 …]
|
| /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()
|
| /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 | al,alpine-smp | 2 Secondary CPU enable-method "al,alpine-smp" binding 5 This document describes the "al,alpine-smp" method for 7 "al,alpine-smp" enable method should be defined in the 10 Enable method name: "al,alpine-smp" 35 enable-method = "al,alpine-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";
|
| /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 …]
|
| H A D | internals.h | 23 #define IS_SMP(x) (x.smp) 24 #define INTC_REG(d, x, c) (d->reg[(x)] + ((d->smp[(x)] & 0xff) * c)) 25 #define SMP_NR(d, x) ((d->smp[(x)] >> 8) ? (d->smp[(x)] >> 8) : 1) 62 unsigned long *smp; member
|
| /linux/arch/sh/kernel/cpu/sh2/ |
| H A D | Makefile | 11 smp-$(CONFIG_CPU_J2) := smp-j2.o 12 obj-$(CONFIG_SMP) += $(smp-y)
|
| /linux/arch/arm/mach-spear/ |
| H A D | Makefile | 9 smp-$(CONFIG_SMP) += headsmp.o platsmp.o 10 smp-$(CONFIG_HOTPLUG_CPU) += hotplug.o 12 obj-$(CONFIG_ARCH_SPEAR13XX) += spear13xx.o $(smp-y)
|
| /linux/tools/testing/selftests/rcutorture/bin/ |
| H A D | functions.sh | 296 # Appends a string containing "-smp XXX" to qemu-args, unless the incoming 297 # qemu-args already contains "-smp". 320 # qemu-args already contains "-smp" or unless the TORTURE_QEMU_INTERACTIVE
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | vmtest.sh | 16 HOST_FLAGS=(-smp 2 -enable-kvm) 17 CROSS_FLAGS=(-smp 2) 24 HOST_FLAGS=(-cpu host -enable-kvm -smp 8) 25 CROSS_FLAGS=(-smp 8) 32 HOST_FLAGS=(-M virt,gic-version=3 -cpu host -enable-kvm -smp 8) 33 CROSS_FLAGS=(-M virt,gic-version=3 -cpu cortex-a76 -smp 8) 41 HOST_FLAGS=(-M virt -cpu host -enable-kvm -smp 8) 42 CROSS_FLAGS=(-M virt -cpu rv64,sscofpmf=true -smp 8)
|
| /linux/arch/mips/kernel/ |
| H A D | Makefile | 54 obj-$(CONFIG_SMP) += smp.o 55 obj-$(CONFIG_SMP_UP) += smp-up.o 56 obj-$(CONFIG_CPU_BMIPS) += smp-bmips.o bmips_vec.o bmips_5xxx_init.o 60 obj-$(CONFIG_MIPS_MT_SMP) += smp-mt.o 61 obj-$(CONFIG_MIPS_CPS) += smp-cps.o cps-vec.o
|
| /linux/arch/arm/include/asm/ |
| H A D | processor.h | 93 #define __ALT_SMP_ASM(smp, up) \ argument 94 "9998: " smp "\n" \ 101 #define __ALT_SMP_ASM(smp, up) up argument
|
| /linux/arch/sh/kernel/cpu/sh4a/ |
| H A D | Makefile | 22 smp-$(CONFIG_CPU_SHX3) := smp-shx3.o 50 obj-$(CONFIG_SMP) += $(smp-y)
|