| /linux/sound/pci/ctxfi/ |
| H A D | ctresource.c | 102 static int rsc_index(const struct rsc *rsc) in rsc_index() argument 104 return rsc->conj; in rsc_index() 107 static int audio_ring_slot(const struct rsc *rsc) in audio_ring_slot() argument 109 return (rsc->conj << 4) + offset_in_audio_slot_block[rsc->type]; in audio_ring_slot() 112 static void rsc_next_conj(struct rsc *rsc) in rsc_next_conj() argument 115 for (i = 0; (i < 8) && (!(rsc->msr & (0x1 << i))); ) in rsc_next_conj() 117 rsc->conj += (AUDIO_SLOT_BLOCK_NUM >> i); in rsc_next_conj() 120 static void rsc_master(struct rsc *rsc) in rsc_master() argument 122 rsc->conj = rsc->idx; in rsc_master() 133 rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, struct hw *hw) in rsc_init() argument [all …]
|
| H A D | ctresource.h | 31 struct rsc { struct 42 void (*master)(struct rsc *rsc); /* Move to master resource */ argument 43 void (*next_conj)(struct rsc *rsc); /* Move to next conjugate resource */ 44 int (*index)(const struct rsc *rsc); /* Return the index of resource */ 46 int (*output_slot)(const struct rsc *rsc); 50 rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, struct hw *hw); 51 int rsc_uninit(struct rsc *rsc);
|
| H A D | ctamixer.h | 24 struct rsc rsc; /* Basic resource info */ member 53 struct rsc rsc; /* Basic resource info */ member 55 struct rsc *input; /* pointer to a resource acting as source */ 61 int (*set_input)(struct amixer *amixer, struct rsc *rsc); 68 int (*setup)(struct amixer *amixer, struct rsc *input,
|
| H A D | ctmixer.h | 49 struct rsc **rleft, struct rsc **rright); 52 enum MIXER_PORT_T type, struct rsc *rsc); 54 enum MIXER_PORT_T type, struct rsc *rsc);
|
| H A D | ctdaio.h | 44 struct rsc rscl; /* Basic resource info for left TX/RX */ 45 struct rsc rscr; /* Basic resource info for right TX/RX */ 76 int (*set_left_input)(struct dao *dao, struct rsc *input); 77 int (*set_right_input)(struct dao *dao, struct rsc *input); 83 int (*set_srt_srcl)(struct dai *dai, struct rsc *src); 84 int (*set_srt_srcr)(struct dai *dai, struct rsc *src);
|
| H A D | ctsrc.h | 45 struct rsc rsc; /* Basic resource info */ member 104 struct rsc rsc; member 113 int (*map)(struct srcimp *srcimp, struct src *user, struct rsc *input);
|
| H A D | ctmixer.c | 1013 amix_d->ops->setup(amix_d, &sum->rsc, INIT_VOL, NULL); in ct_mixer_topology_build() 1016 amix_d->ops->setup(amix_d, &sum->rsc, INIT_VOL, NULL); in ct_mixer_topology_build() 1024 amix_d->ops->setup(amix_d, &amix_s->rsc, INIT_VOL, NULL); in ct_mixer_topology_build() 1027 amix_d->ops->setup(amix_d, &amix_s->rsc, INIT_VOL, NULL); in ct_mixer_topology_build() 1033 amix_d->ops->setup(amix_d, &amix_s->rsc, INIT_VOL, NULL); in ct_mixer_topology_build() 1036 amix_d->ops->setup(amix_d, &amix_s->rsc, INIT_VOL, NULL); in ct_mixer_topology_build() 1075 amix_d->ops->setup(amix_d, &sum->rsc, INIT_VOL, NULL); 1078 amix_d->ops->setup(amix_d, &sum->rsc, INIT_VOL, NULL); in mixer_get_output_ports() 1115 static int mixer_set_input_port(struct amixer *amixer, struct rsc *rsc) in mixer_set_input_right() 1048 mixer_set_input_port(struct amixer * amixer,struct rsc * rsc) mixer_set_input_port() argument 1093 mixer_set_input_left(struct ct_mixer * mixer,enum MIXER_PORT_T type,struct rsc * rsc) mixer_set_input_left() argument 1107 mixer_set_input_right(struct ct_mixer * mixer,enum MIXER_PORT_T type,struct rsc * rsc) mixer_set_input_right() argument [all...] |
| /linux/drivers/remoteproc/ |
| H A D | remoteproc_virtio.c | 113 struct fw_rsc_vdev *rsc; in rp_find_vq() local 160 rsc = (void *)rproc->table_ptr + rvdev->rsc_offset; in rp_find_vq() 161 rsc->vring[id].da = mem->da; in rp_find_vq() 216 struct fw_rsc_vdev *rsc; in rproc_virtio_get_status() local 218 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_get_status() 220 return rsc->status; in rproc_virtio_get_status() 226 struct fw_rsc_vdev *rsc; in rproc_virtio_set_status() local 228 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_set_status() 230 rsc->status = status; in rproc_virtio_set_status() 237 struct fw_rsc_vdev *rsc; in rproc_virtio_reset() local [all …]
|
| H A D | remoteproc_core.c | 326 struct fw_rsc_vdev *rsc; in rproc_alloc_vring() local 334 rsc = (void *)rproc->table_ptr + rvdev->rsc_offset; in rproc_alloc_vring() 340 if (rproc_check_carveout_da(rproc, mem, rsc->vring[i].da, size)) in rproc_alloc_vring() 345 size, rsc->vring[i].da, in rproc_alloc_vring() 377 rsc->vring[i].notifyid = notifyid; in rproc_alloc_vring() 382 rproc_parse_vring(struct rproc_vdev *rvdev, struct fw_rsc_vdev *rsc, int i) in rproc_parse_vring() argument 386 struct fw_rsc_vdev_vring *vring = &rsc->vring[i]; in rproc_parse_vring() 410 struct fw_rsc_vdev *rsc; in rproc_free_vring() local 426 rsc = (void *)rproc->table_ptr + rvring->rvdev->rsc_offset; in rproc_free_vring() 427 rsc->vring[idx].da = 0; in rproc_free_vring() [all …]
|
| H A D | remoteproc_debugfs.c | 294 void *rsc = (void *)hdr + sizeof(*hdr); in rproc_rsc_table_show() local 298 c = rsc; in rproc_rsc_table_show() 308 d = rsc; in rproc_rsc_table_show() 318 t = rsc; in rproc_rsc_table_show() 326 v = rsc; in rproc_rsc_table_show()
|
| /linux/drivers/soc/qcom/ |
| H A D | cmd-db.c | 274 const struct rsc_hdr *rsc; in cmd_db_debugfs_dump() local 283 rsc = &cmd_db_header->header[i]; in cmd_db_debugfs_dump() 284 if (!rsc->slv_id) in cmd_db_debugfs_dump() 287 switch (le16_to_cpu(rsc->slv_id)) { in cmd_db_debugfs_dump() 302 version = le16_to_cpu(rsc->version); in cmd_db_debugfs_dump() 309 ent = rsc_to_entry_header(rsc); in cmd_db_debugfs_dump() 310 for (j = 0; j < le16_to_cpu(rsc->cnt); j++, ent++) { in cmd_db_debugfs_dump() 317 len, rsc_offset(rsc, ent)); in cmd_db_debugfs_dump()
|
| /linux/net/sunrpc/auth_gss/ |
| H A D | svcauth_gss.c | 75 struct rsc *rsci; 368 struct rsc { struct 377 static struct rsc *rsc_update(struct cache_detail *cd, struct rsc *new, struct rsc *old); argument 378 static struct rsc *rsc_lookup(struct cache_detail *cd, struct rsc *item); 380 static void rsc_free(struct rsc *rsci) in rsc_free() 390 struct rsc *rsci = container_of(head, struct rsc, rcu_hea in rsc_free_rcu() [all...] |
| /linux/lib/reed_solomon/ |
| H A D | decode_rs.c | 13 struct rs_codec *rs = rsc->codec; 32 uint16_t *lambda = rsc->buffers + RS_DECODE_LAMBDA * (nroots + 1); 33 uint16_t *syn = rsc->buffers + RS_DECODE_SYN * (nroots + 1); 34 uint16_t *b = rsc->buffers + RS_DECODE_B * (nroots + 1); 35 uint16_t *t = rsc->buffers + RS_DECODE_T * (nroots + 1); 36 uint16_t *omega = rsc->buffers + RS_DECODE_OMEGA * (nroots + 1); 37 uint16_t *root = rsc->buffers + RS_DECODE_ROOT * (nroots + 1); 38 uint16_t *reg = rsc->buffers + RS_DECODE_REG * (nroots + 1); 39 uint16_t *loc = rsc->buffers + RS_DECODE_LOC * (nroots + 1);
|
| H A D | test_rslib.c | 229 static void compute_syndrome(struct rs_control *rsc, uint16_t *data, in compute_syndrome() argument 232 struct rs_codec *rs = rsc->codec; in compute_syndrome() 446 struct rs_control *rsc; in run_exercise() local 453 rsc = init_rs(e->symsize, e->genpoly, e->fcs, e->prim, e->nroots); in run_exercise() 454 if (!rsc) in run_exercise() 457 ws = alloc_ws(rsc->codec); in run_exercise() 475 retval |= exercise_rs(rsc, ws, len, e->ntrials); in run_exercise() 477 retval |= exercise_rs_bc(rsc, ws, len, e->ntrials); in run_exercise() 483 free_rs(rsc); in run_exercise()
|
| H A D | reed_solomon.c | 328 int encode_rs8(struct rs_control *rsc, uint8_t *data, int len, uint16_t *par, in encode_rs8() argument 361 int decode_rs8(struct rs_control *rsc, uint8_t *data, uint16_t *par, int len, in decode_rs8() argument 381 int encode_rs16(struct rs_control *rsc, uint16_t *data, int len, uint16_t *par, in encode_rs16() argument 412 int decode_rs16(struct rs_control *rsc, uint16_t *data, uint16_t *par, int len, in decode_rs16() argument
|
| /linux/drivers/infiniband/ulp/iser/ |
| H A D | iser_memory.c | 169 ib_check_mr_status(desc->rsc.sig_mr, IB_MR_CHECK_SIG_STATUS, in iser_unreg_mem_fastreg() 250 struct iser_reg_resources *rsc, in iser_reg_sig_mr() argument 255 struct ib_mr *mr = rsc->sig_mr; in iser_reg_sig_mr() 267 if (rsc->sig_mr->need_inval) in iser_reg_sig_mr() 291 rsc->sig_mr->need_inval = true; in iser_reg_sig_mr() 307 struct iser_reg_resources *rsc, in iser_fast_reg_mr() argument 312 struct ib_mr *mr = rsc->mr; in iser_fast_reg_mr() 316 if (rsc->mr->need_inval) in iser_fast_reg_mr() 339 rsc->mr->need_inval = true; in iser_fast_reg_mr() 371 err = iser_fast_reg_mr(task, mem, &desc->rsc, reg); in iser_reg_mem_fastreg() [all …]
|
| H A D | iser_verbs.c | 117 desc->rsc.mr = ib_alloc_mr(pd, mr_type, size); in iser_create_fastreg_desc() 118 if (IS_ERR(desc->rsc.mr)) { in iser_create_fastreg_desc() 119 ret = PTR_ERR(desc->rsc.mr); in iser_create_fastreg_desc() 125 desc->rsc.sig_mr = ib_alloc_mr_integrity(pd, size, size); in iser_create_fastreg_desc() 126 if (IS_ERR(desc->rsc.sig_mr)) { in iser_create_fastreg_desc() 127 ret = PTR_ERR(desc->rsc.sig_mr); in iser_create_fastreg_desc() 136 ib_dereg_mr(desc->rsc.mr); in iser_create_fastreg_desc() 145 struct iser_reg_resources *res = &desc->rsc; in iser_destroy_fastreg_desc() 900 ret = ib_check_mr_status(desc->rsc.sig_mr, in iser_check_task_pi_status()
|
| /linux/arch/s390/include/asm/ |
| H A D | crw.h | 23 __u32 rsc : 4; /* reporting source code */ member 32 extern int crw_register_handler(int rsc, crw_handler_t handler); 33 extern void crw_unregister_handler(int rsc);
|
| /linux/drivers/net/hyperv/ |
| H A D | rndis_filter.c | 435 u32 cnt = nvchan->rsc.cnt; in rsc_add_data() 438 nvchan->rsc.pktlen += len; in rsc_add_data() 445 memcpy(&nvchan->rsc.vlan, vlan, sizeof(*vlan)); in rsc_add_data() 446 nvchan->rsc.ppi_flags |= NVSC_RSC_VLAN; in rsc_add_data() 448 nvchan->rsc.ppi_flags &= ~NVSC_RSC_VLAN; in rsc_add_data() 451 memcpy(&nvchan->rsc.csum_info, csum_info, sizeof(*csum_info)); in rsc_add_data() 452 nvchan->rsc.ppi_flags |= NVSC_RSC_CSUM_INFO; in rsc_add_data() 454 nvchan->rsc.ppi_flags &= ~NVSC_RSC_CSUM_INFO; in rsc_add_data() 456 nvchan->rsc.pktlen = len; in rsc_add_data() 458 nvchan->rsc.hash_info = *hash_info; in rsc_add_data() [all …]
|
| H A D | netvsc_bpf.c | 28 void *data = nvchan->rsc.data[0]; in netvsc_run_xdp() 29 u32 len = nvchan->rsc.len[0]; in netvsc_run_xdp() 81 rx_stats->bytes += nvchan->rsc.pktlen; in netvsc_run_xdp()
|
| /linux/net/sched/ |
| H A D | sch_hfsc.c | 867 hfsc_change_rsc(struct hfsc_class *cl, struct tc_service_curve *rsc, in hfsc_change_rsc() argument 870 sc2isc(rsc, &cl->cl_rsc); in hfsc_change_rsc() 921 struct tc_service_curve *rsc = NULL, *fsc = NULL, *usc = NULL; in hfsc_change_class() local 934 rsc = nla_data(tb[TCA_HFSC_RSC]); in hfsc_change_class() 935 if (rsc->m1 == 0 && rsc->m2 == 0) in hfsc_change_class() 936 rsc = NULL; in hfsc_change_class() 977 if (rsc != NULL) in hfsc_change_class() 978 hfsc_change_rsc(cl, rsc, cur_time); in hfsc_change_class() 1025 if (rsc == NULL && fsc == NULL) in hfsc_change_class() 1050 if (rsc != NULL) in hfsc_change_class() [all …]
|
| /linux/drivers/s390/cio/ |
| H A D | trace.h | 368 __field(u8, rsc) 379 __entry->rsc = crw->rsc; 387 __entry->chn, __entry->rsc, __entry->anc,
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
| H A D | rsc_dump.c | 136 sgmt_type = dev->rsc_dump->fw_segment_type[key->rsc]; in mlx5_rsc_dump_cmd_create() 137 if (!sgmt_type && key->rsc != MLX5_SGMT_TYPE_MENU) in mlx5_rsc_dump_cmd_create() 197 key.rsc = MLX5_SGMT_TYPE_MENU; in mlx5_rsc_dump_menu()
|
| /linux/drivers/phy/freescale/ |
| H A D | phy-fsl-imx8-mipi-dphy.c | 388 u32 rsc; in mixel_dphy_configure_lvds_phy() local 399 rsc = priv->id ? IMX_SC_R_MIPI_1 : IMX_SC_R_MIPI_0; in mixel_dphy_configure_lvds_phy() 400 ret = imx_sc_misc_set_control(priv->ipc_handle, rsc, IMX_SC_C_DUAL_MODE, in mixel_dphy_configure_lvds_phy() 625 u32 rsc = priv->id ? IMX_SC_R_MIPI_1 : IMX_SC_R_MIPI_0; in mixel_dphy_set_mode() local 628 rsc, IMX_SC_C_MODE, in mixel_dphy_set_mode()
|
| /linux/include/linux/mlx5/ |
| H A D | rsc_dump.h | 36 enum mlx5_sgmt_type rsc; member
|