sub 157 arch/alpha/include/asm/atomic.h ATOMIC_OPS(sub) sub 185 arch/arc/include/asm/atomic.h ATOMIC_OPS(sub, -=, sub) sub 433 arch/arc/include/asm/atomic.h ATOMIC64_OPS(sub, sub.f, sbc) sub 62 arch/arc/include/asm/entry-arcv2.h sub sp, sp, SZ_PT_REGS - 8 sub 67 arch/arc/include/asm/entry-arcv2.h sub sp, sp, PT_r0 sub 82 arch/arc/include/asm/entry-arcv2.h sub sp, sp, SZ_PT_REGS ; carve pt_regs sub 171 arch/arc/include/asm/entry-compact.h sub sp, sp, 4 sub 175 arch/arc/include/asm/entry-compact.h sub sp, sp, 4 /* skip pt_regs->sp, already saved above */ sub 260 arch/arc/include/asm/entry-compact.h sub sp, sp, 4 sub 264 arch/arc/include/asm/entry-compact.h sub sp, sp, 8 /* skip orig_r0 (not needed) sub 159 arch/arc/include/asm/entry.h sub sp, sp, 4 sub 224 arch/arm/include/asm/assembler.h sub \tmp, \tmp, #1 @ decrement it sub 226 arch/arm/include/asm/atomic.h ATOMIC_OPS(sub, -=, sub) sub 377 arch/arm/include/asm/atomic.h ATOMIC64_OPS(sub, subs, sbc) sub 33 arch/arm/include/asm/uaccess-asm.h sub \tmp, \limit, #1 sub 18 arch/arm64/include/asm/asm-uaccess.h sub \tmp1, \tmp1, #RESERVED_TTBR0_SIZE // reserved_ttbr0 just before swapper_pg_dir sub 387 arch/arm64/include/asm/assembler.h sub \tmp2, \tmp1, #1 sub 423 arch/arm64/include/asm/assembler.h sub \tmp2, \tmp1, #1 sub 734 arch/arm64/include/asm/assembler.h sub x0, x0, #PREEMPT_DISABLE_OFFSET sub 112 arch/arm64/include/asm/atomic_ll_sc.h ATOMIC_OPS(sub, sub, J) sub 211 arch/arm64/include/asm/atomic_ll_sc.h ATOMIC64_OPS(sub, sub, J) sub 298 arch/arm64/include/asm/insn.h __AARCH64_INSN_FUNCS(sub, 0x7F200000, 0x4B000000) sub 186 arch/csky/include/asm/atomic.h ATOMIC_OP_RETURN(sub, -) sub 191 arch/csky/include/asm/atomic.h ATOMIC_FETCH_OP(sub, -) sub 56 arch/h8300/include/asm/atomic.h ATOMIC_OP_RETURN(sub, -=) sub 66 arch/h8300/include/asm/atomic.h ATOMIC_OPS(sub, -=) sub 138 arch/hexagon/include/asm/atomic.h ATOMIC_OPS(sub) sub 66 arch/ia64/include/asm/atomic.h ATOMIC_OPS(sub, -) sub 161 arch/ia64/include/asm/atomic.h ATOMIC64_OPS(sub, -) sub 108 arch/ia64/kernel/minstate.h (pUStk) sub r18=r18,r22; /* r18=RSE.ndirty*8 */ \ sub 217 arch/ia64/kernel/minstate.h (pUStk) sub r16=r18,r22; \ sub 109 arch/m68k/include/asm/atomic.h ATOMIC_OPS(sub, -=, sub) sub 284 arch/m68k/math-emu/fp_decode.h sub.w (fp_datasize,%d1.w*2),%a0 sub 360 arch/m68k/math-emu/fp_decode.h sub.l %a1,%a1 sub 156 arch/mips/include/asm/asm.h #define INT_SUB sub sub 193 arch/mips/include/asm/asm.h #define LONG_SUB sub sub 242 arch/mips/include/asm/asm.h #define PTR_SUB sub sub 154 arch/mips/include/asm/atomic.h ATOMIC_OPS(sub, -=, subu) sub 356 arch/mips/include/asm/atomic.h ATOMIC64_OPS(sub, -=, dsubu) sub 70 arch/openrisc/include/asm/atomic.h ATOMIC_OP_RETURN(sub) sub 73 arch/openrisc/include/asm/atomic.h ATOMIC_FETCH_OP(sub) sub 90 arch/parisc/include/asm/assembly.h sub \grvirt, \grphys, \grphys sub 100 arch/parisc/include/asm/assembly.h sub \gr, %r1, \gr sub 123 arch/parisc/include/asm/atomic.h ATOMIC_OPS(sub, -=) sub 188 arch/parisc/include/asm/atomic.h ATOMIC64_OPS(sub, -=) sub 148 arch/powerpc/boot/devtree.c static int sub_reg(u32 *reg, u32 *sub) sub 154 arch/powerpc/boot/devtree.c borrow = reg[i] < sub[i] + prev_borrow; sub 155 arch/powerpc/boot/devtree.c reg[i] -= sub[i] + prev_borrow; sub 100 arch/powerpc/include/asm/atomic.h ATOMIC_OPS(sub, subf) sub 371 arch/powerpc/include/asm/atomic.h ATOMIC64_OPS(sub, subf) sub 58 arch/powerpc/include/asm/local.h LOCAL_OPS(sub, -=) sub 2802 arch/powerpc/kvm/book3s_hv.c int sub; sub 2822 arch/powerpc/kvm/book3s_hv.c sub = cip->n_subcores; sub 2825 arch/powerpc/kvm/book3s_hv.c cip->subcore_threads[sub] = vc->num_threads; sub 2826 arch/powerpc/kvm/book3s_hv.c cip->vc[sub] = vc; sub 2898 arch/powerpc/kvm/book3s_hv.c int sub, i; sub 2902 arch/powerpc/kvm/book3s_hv.c for (sub = 0; sub < cip->n_subcores; ++sub) { sub 2903 arch/powerpc/kvm/book3s_hv.c vc = cip->vc[sub]; sub 3051 arch/powerpc/kvm/book3s_hv.c int sub; sub 3124 arch/powerpc/kvm/book3s_hv.c for (sub = 0; sub < core_info.n_subcores; ++sub) sub 3125 arch/powerpc/kvm/book3s_hv.c for_each_runnable_thread(i, vcpu, core_info.vc[sub]) sub 3143 arch/powerpc/kvm/book3s_hv.c for (sub = 1; sub < core_info.n_subcores; ++sub) { sub 3144 arch/powerpc/kvm/book3s_hv.c pvc = core_info.vc[sub]; sub 3167 arch/powerpc/kvm/book3s_hv.c for (sub = 0; sub < core_info.n_subcores; ++sub) sub 3168 arch/powerpc/kvm/book3s_hv.c split_info.vc[sub] = core_info.vc[sub]; sub 3244 arch/powerpc/kvm/book3s_hv.c for (sub = 0; sub < core_info.n_subcores; ++sub) { sub 3245 arch/powerpc/kvm/book3s_hv.c thr = is_power8 ? subcore_thread_map[sub] : sub; sub 3248 arch/powerpc/kvm/book3s_hv.c pvc = core_info.vc[sub]; sub 3291 arch/powerpc/kvm/book3s_hv.c for (sub = 0; sub < core_info.n_subcores; ++sub) sub 3292 arch/powerpc/kvm/book3s_hv.c spin_unlock(&core_info.vc[sub]->lock); sub 3374 arch/powerpc/kvm/book3s_hv.c for (sub = 0; sub < core_info.n_subcores; ++sub) { sub 3375 arch/powerpc/kvm/book3s_hv.c pvc = core_info.vc[sub]; sub 77 arch/riscv/include/asm/atomic.h ATOMIC_OPS(sub, add, -i) sub 141 arch/riscv/include/asm/atomic.h ATOMIC_OPS(sub, add, +, -i) sub 72 arch/sh/include/asm/atomic-grb.h ATOMIC_OPS(sub) sub 56 arch/sh/include/asm/atomic-irq.h ATOMIC_OPS(sub, -=) sub 74 arch/sh/include/asm/atomic-llsc.h ATOMIC_OPS(sub) sub 39 arch/sparc/include/asm/atomic_64.h ATOMIC_OPS(sub) sub 67 arch/sparc/include/asm/backoff.h sub tmp, 1, tmp; \ sub 134 arch/sparc/include/asm/tsb.h sub TSB, 0x8, TSB; \ sub 315 arch/sparc/include/asm/tsb.h sub VADDR, REG2, REG2; \ sub 290 arch/sparc/include/asm/ttable.h sub %g1, 2, %g1; \ sub 348 arch/sparc/include/asm/ttable.h sub %g1, 2, %g1; \ sub 385 arch/sparc/include/asm/ttable.h sub %g1, 2, %g1; \ sub 447 arch/sparc/include/asm/ttable.h sub %g1, 2, %g1; \ sub 484 arch/sparc/include/asm/ttable.h sub %g1, 2, %g1; \ sub 530 arch/sparc/include/asm/ttable.h sub %g1, 1, %g1; \ sub 97 arch/sparc/include/asm/winmacro.h sub %scratch, %cur_reg, %scratch; \ sub 101 arch/sparc/include/asm/winmacro.h sub %scratch, %cur_reg, %scratch; \ sub 36 arch/x86/include/asm/asm.h #define _ASM_SUB __ASM_SIZE(sub) sub 195 arch/x86/include/asm/atomic64_32.h __alternative_atomic64(sub, sub_return, sub 34 arch/x86/include/asm/intel_pmc_ipc.h int intel_pmc_ipc_simple_command(int cmd, int sub); sub 35 arch/x86/include/asm/intel_pmc_ipc.h int intel_pmc_ipc_raw_cmd(u32 cmd, u32 sub, u8 *in, u32 inlen, sub 37 arch/x86/include/asm/intel_pmc_ipc.h int intel_pmc_ipc_command(u32 cmd, u32 sub, u8 *in, u32 inlen, sub 47 arch/x86/include/asm/intel_pmc_ipc.h static inline int intel_pmc_ipc_simple_command(int cmd, int sub) sub 52 arch/x86/include/asm/intel_pmc_ipc.h static inline int intel_pmc_ipc_raw_cmd(u32 cmd, u32 sub, u8 *in, u32 inlen, sub 58 arch/x86/include/asm/intel_pmc_ipc.h static inline int intel_pmc_ipc_command(u32 cmd, u32 sub, u8 *in, u32 inlen, sub 50 arch/x86/include/asm/intel_scu_ipc.h int intel_scu_ipc_simple_command(int cmd, int sub); sub 51 arch/x86/include/asm/intel_scu_ipc.h int intel_scu_ipc_command(int cmd, int sub, u32 *in, int inlen, sub 53 arch/x86/include/asm/intel_scu_ipc.h int intel_scu_ipc_raw_command(int cmd, int sub, u8 *in, int inlen, sub 995 arch/x86/kvm/emulate.c FASTOP2(sub); sub 122 arch/xtensa/include/asm/asm-uaccess.h sub \at, \at, \as sub 107 arch/xtensa/include/asm/asmmacro.h sub \at, \as, \ar sub 244 arch/xtensa/include/asm/atomic.h ATOMIC_OPS(sub) sub 202 arch/xtensa/include/asm/initialize_mmu.h sub a5, a5, a10 sub 1659 block/blk-cgroup.c u64 sub = min_t(u64, blkg->last_delay, now - old); sub 1667 block/blk-cgroup.c sub = max_t(u64, sub, blkg->last_delay >> 1); sub 1675 block/blk-cgroup.c if (unlikely(cur < sub)) { sub 1679 block/blk-cgroup.c atomic64_sub(sub, &blkg->delay_nsec); sub 1680 block/blk-cgroup.c blkg->last_delay = cur - sub; sub 508 block/blk-iolatency.c u64 sub = iolat->min_lat_nsec; sub 509 block/blk-iolatency.c if (req_time < sub) sub 510 block/blk-iolatency.c blkcg_add_delay(lat_to_blkg(iolat), now, sub - req_time); sub 188 drivers/firmware/google/gsmi.c static int gsmi_exec(u8 func, u8 sub) sub 190 drivers/firmware/google/gsmi.c u16 cmd = (sub << 8) | func; sub 269 drivers/firmware/google/gsmi.c if (sub != GSMI_CMD_HANDSHAKE_TYPE) sub 5367 drivers/gpu/drm/i915/display/intel_display.c u16 skl_scaler_calc_phase(int sub, int scale, bool chroma_cosited) sub 5373 drivers/gpu/drm/i915/display/intel_display.c phase += (sub - 1) * 0x8000 / sub; sub 5375 drivers/gpu/drm/i915/display/intel_display.c phase += scale / (2 * sub); sub 521 drivers/gpu/drm/i915/display/intel_display.h u16 skl_scaler_calc_phase(int sub, int scale, bool chroma_center); sub 212 drivers/gpu/drm/i915/display/intel_opregion.c #define SWSCI_FUNCTION_CODE(main, sub) \ sub 214 drivers/gpu/drm/i915/display/intel_opregion.c (sub) << SWSCI_SCIC_SUB_FUNCTION_SHIFT) sub 696 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c uint32_t sub; sub 704 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c sub = horz ? info->hsub : info->vsub; sub 705 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c uv_filter = ((src / sub) <= dst) ? sub 9 drivers/gpu/drm/nouveau/include/nvkm/core/option.h int nvkm_dbgopt(const char *optstr, const char *sub); sub 5 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/disp.h u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *sub); sub 11 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/disp.h u16 nvbios_disp_entry(struct nvkm_bios *, u8 idx, u8 *ver, u8 *hdr, u8 *sub); sub 12 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/disp.h u16 nvbios_disp_parse(struct nvkm_bios *, u8 idx, u8 *ver, u8 *hdr, u8 *sub, sub 111 drivers/gpu/drm/nouveau/nouveau_bios.c uint8_t sub = bios->data[bios->fp.xlated_entry + script] + (bios->fp.link_c_increment && dcbent->or & DCB_OUTPUT_C ? 1 : 0); sub 112 drivers/gpu/drm/nouveau/nouveau_bios.c uint16_t scriptofs = ROM16(bios->data[bios->init_script_tbls_ptr + sub * 2]); sub 114 drivers/gpu/drm/nouveau/nouveau_bios.c if (!bios->fp.xlated_entry || !sub || !scriptofs) sub 95 drivers/gpu/drm/nouveau/nvkm/core/option.c nvkm_dbgopt(const char *optstr, const char *sub) sub 103 drivers/gpu/drm/nouveau/nvkm/core/option.c if (strncasecmpz(optstr, sub, len)) sub 30 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *sub) sub 46 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c *sub = nvbios_rd08(bios, data + 0x04); sub 59 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c nvbios_disp_entry(struct nvkm_bios *bios, u8 idx, u8 *ver, u8 *len, u8 *sub) sub 62 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c u16 data = nvbios_disp_table(bios, ver, &hdr, &cnt, len, sub); sub 70 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c nvbios_disp_parse(struct nvkm_bios *bios, u8 idx, u8 *ver, u8 *len, u8 *sub, sub 73 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c u16 data = nvbios_disp_entry(bios, idx, ver, len, sub); sub 96 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/base.c pt->sub = true; sub 146 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/base.c if (pt->sub) { sub 205 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/base.c pt->sub = false; sub 56 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/priv.h bool sub; sub 1302 drivers/infiniband/hw/mlx5/devx.c struct devx_event_subscription *sub) sub 1307 drivers/infiniband/hw/mlx5/devx.c if (sub->is_cleaned) sub 1310 drivers/infiniband/hw/mlx5/devx.c sub->is_cleaned = 1; sub 1311 drivers/infiniband/hw/mlx5/devx.c list_del_rcu(&sub->xa_list); sub 1313 drivers/infiniband/hw/mlx5/devx.c if (list_empty(&sub->obj_list)) sub 1316 drivers/infiniband/hw/mlx5/devx.c list_del_rcu(&sub->obj_list); sub 1319 drivers/infiniband/hw/mlx5/devx.c sub->xa_key_level1); sub 1322 drivers/infiniband/hw/mlx5/devx.c xa_val_level2 = xa_load(&event->object_ids, sub->xa_key_level2); sub 1325 drivers/infiniband/hw/mlx5/devx.c sub->xa_key_level2); sub 2427 drivers/infiniband/hw/mlx5/devx.c struct devx_event_subscription *sub, *tmp; sub 2436 drivers/infiniband/hw/mlx5/devx.c list_for_each_entry_safe(sub, tmp, &event->unaffiliated_list, sub 2438 drivers/infiniband/hw/mlx5/devx.c devx_cleanup_subscription(dev, sub); sub 825 drivers/media/i2c/adv7180.c struct v4l2_event_subscription *sub) sub 827 drivers/media/i2c/adv7180.c switch (sub->type) { sub 829 drivers/media/i2c/adv7180.c return v4l2_src_change_event_subdev_subscribe(sd, fh, sub); sub 831 drivers/media/i2c/adv7180.c return v4l2_ctrl_subdev_subscribe_event(sd, fh, sub); sub 2635 drivers/media/i2c/adv7604.c struct v4l2_event_subscription *sub) sub 2637 drivers/media/i2c/adv7604.c switch (sub->type) { sub 2639 drivers/media/i2c/adv7604.c return v4l2_src_change_event_subdev_subscribe(sd, fh, sub); sub 2641 drivers/media/i2c/adv7604.c return v4l2_ctrl_subdev_subscribe_event(sd, fh, sub); sub 3236 drivers/media/i2c/adv7842.c struct v4l2_event_subscription *sub) sub 3238 drivers/media/i2c/adv7842.c switch (sub->type) { sub 3240 drivers/media/i2c/adv7842.c return v4l2_src_change_event_subdev_subscribe(sd, fh, sub); sub 3242 drivers/media/i2c/adv7842.c return v4l2_ctrl_subdev_subscribe_event(sd, fh, sub); sub 1495 drivers/media/i2c/tc358743.c struct v4l2_event_subscription *sub) sub 1497 drivers/media/i2c/tc358743.c switch (sub->type) { sub 1499 drivers/media/i2c/tc358743.c return v4l2_src_change_event_subdev_subscribe(sd, fh, sub); sub 1501 drivers/media/i2c/tc358743.c return v4l2_ctrl_subdev_subscribe_event(sd, fh, sub); sub 2005 drivers/media/i2c/tda1997x.c struct v4l2_event_subscription *sub) sub 2007 drivers/media/i2c/tda1997x.c switch (sub->type) { sub 2009 drivers/media/i2c/tda1997x.c return v4l2_src_change_event_subdev_subscribe(sd, fh, sub); sub 2011 drivers/media/i2c/tda1997x.c return v4l2_ctrl_subdev_subscribe_event(sd, fh, sub); sub 33 drivers/media/pci/bt8xx/bttv-gpio.c struct bttv_sub_driver *sub = to_bttv_sub_drv(drv); sub 34 drivers/media/pci/bt8xx/bttv-gpio.c int len = strlen(sub->wanted); sub 36 drivers/media/pci/bt8xx/bttv-gpio.c if (0 == strncmp(dev_name(dev), sub->wanted, len)) sub 44 drivers/media/pci/bt8xx/bttv-gpio.c struct bttv_sub_driver *sub = to_bttv_sub_drv(dev->driver); sub 46 drivers/media/pci/bt8xx/bttv-gpio.c return sub->probe ? sub->probe(sdev) : -ENODEV; sub 52 drivers/media/pci/bt8xx/bttv-gpio.c struct bttv_sub_driver *sub = to_bttv_sub_drv(dev->driver); sub 54 drivers/media/pci/bt8xx/bttv-gpio.c if (sub->remove) sub 55 drivers/media/pci/bt8xx/bttv-gpio.c sub->remove(sdev); sub 68 drivers/media/pci/bt8xx/bttv-gpio.c struct bttv_sub_device *sub = to_bttv_sub_dev(dev); sub 69 drivers/media/pci/bt8xx/bttv-gpio.c kfree(sub); sub 74 drivers/media/pci/bt8xx/bttv-gpio.c struct bttv_sub_device *sub; sub 77 drivers/media/pci/bt8xx/bttv-gpio.c sub = kzalloc(sizeof(*sub),GFP_KERNEL); sub 78 drivers/media/pci/bt8xx/bttv-gpio.c if (NULL == sub) sub 81 drivers/media/pci/bt8xx/bttv-gpio.c sub->core = core; sub 82 drivers/media/pci/bt8xx/bttv-gpio.c sub->dev.parent = &core->pci->dev; sub 83 drivers/media/pci/bt8xx/bttv-gpio.c sub->dev.bus = &bttv_sub_bus_type; sub 84 drivers/media/pci/bt8xx/bttv-gpio.c sub->dev.release = release_sub_device; sub 85 drivers/media/pci/bt8xx/bttv-gpio.c dev_set_name(&sub->dev, "%s%d", name, core->nr); sub 87 drivers/media/pci/bt8xx/bttv-gpio.c err = device_register(&sub->dev); sub 89 drivers/media/pci/bt8xx/bttv-gpio.c put_device(&sub->dev); sub 92 drivers/media/pci/bt8xx/bttv-gpio.c pr_info("%d: add subdevice \"%s\"\n", core->nr, dev_name(&sub->dev)); sub 93 drivers/media/pci/bt8xx/bttv-gpio.c list_add_tail(&sub->list,&core->subs); sub 99 drivers/media/pci/bt8xx/bttv-gpio.c struct bttv_sub_device *sub, *save; sub 101 drivers/media/pci/bt8xx/bttv-gpio.c list_for_each_entry_safe(sub, save, &core->subs, list) { sub 102 drivers/media/pci/bt8xx/bttv-gpio.c list_del(&sub->list); sub 103 drivers/media/pci/bt8xx/bttv-gpio.c device_unregister(&sub->dev); sub 111 drivers/media/pci/bt8xx/bttv-gpio.c int bttv_sub_register(struct bttv_sub_driver *sub, char *wanted) sub 113 drivers/media/pci/bt8xx/bttv-gpio.c sub->drv.bus = &bttv_sub_bus_type; sub 114 drivers/media/pci/bt8xx/bttv-gpio.c snprintf(sub->wanted,sizeof(sub->wanted),"%s",wanted); sub 115 drivers/media/pci/bt8xx/bttv-gpio.c return driver_register(&sub->drv); sub 119 drivers/media/pci/bt8xx/bttv-gpio.c int bttv_sub_unregister(struct bttv_sub_driver *sub) sub 121 drivers/media/pci/bt8xx/bttv-gpio.c driver_unregister(&sub->drv); sub 342 drivers/media/pci/bt8xx/bttv.h int (*probe)(struct bttv_sub_device *sub); sub 343 drivers/media/pci/bt8xx/bttv.h void (*remove)(struct bttv_sub_device *sub); sub 801 drivers/media/pci/bt8xx/dvb-bt8xx.c static int dvb_bt8xx_probe(struct bttv_sub_device *sub) sub 811 drivers/media/pci/bt8xx/dvb-bt8xx.c card->bttv_nr = sub->core->nr; sub 812 drivers/media/pci/bt8xx/dvb-bt8xx.c strscpy(card->card_name, sub->core->v4l2_dev.name, sub 814 drivers/media/pci/bt8xx/dvb-bt8xx.c card->i2c_adapter = &sub->core->i2c_adap; sub 816 drivers/media/pci/bt8xx/dvb-bt8xx.c switch(sub->core->type) { sub 880 drivers/media/pci/bt8xx/dvb-bt8xx.c pr_err("Unknown bttv card type: %d\n", sub->core->type); sub 902 drivers/media/pci/bt8xx/dvb-bt8xx.c card->bt->bttv_nr = sub->core->nr; sub 904 drivers/media/pci/bt8xx/dvb-bt8xx.c if ( (ret = dvb_bt8xx_load_card(card, sub->core->type)) ) { sub 909 drivers/media/pci/bt8xx/dvb-bt8xx.c dev_set_drvdata(&sub->dev, card); sub 913 drivers/media/pci/bt8xx/dvb-bt8xx.c static void dvb_bt8xx_remove(struct bttv_sub_device *sub) sub 915 drivers/media/pci/bt8xx/dvb-bt8xx.c struct dvb_bt8xx_card *card = dev_get_drvdata(&sub->dev); sub 1045 drivers/media/pci/cobalt/cobalt-v4l2.c const struct v4l2_event_subscription *sub) sub 1047 drivers/media/pci/cobalt/cobalt-v4l2.c switch (sub->type) { sub 1049 drivers/media/pci/cobalt/cobalt-v4l2.c return v4l2_event_subscribe(fh, sub, 4, NULL); sub 1051 drivers/media/pci/cobalt/cobalt-v4l2.c return v4l2_ctrl_subscribe_event(fh, sub); sub 1197 drivers/media/pci/intel/ipu3/ipu3-cio2.c struct v4l2_event_subscription *sub) sub 1199 drivers/media/pci/intel/ipu3/ipu3-cio2.c if (sub->type != V4L2_EVENT_FRAME_SYNC) sub 1203 drivers/media/pci/intel/ipu3/ipu3-cio2.c if (sub->id != 0) sub 1206 drivers/media/pci/intel/ipu3/ipu3-cio2.c return v4l2_event_subscribe(fh, sub, 0, NULL); sub 1486 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_subscribe_event(struct v4l2_fh *fh, const struct v4l2_event_subscription *sub) sub 1488 drivers/media/pci/ivtv/ivtv-ioctl.c switch (sub->type) { sub 1491 drivers/media/pci/ivtv/ivtv-ioctl.c return v4l2_event_subscribe(fh, sub, 0, NULL); sub 1493 drivers/media/pci/ivtv/ivtv-ioctl.c return v4l2_ctrl_subscribe_event(fh, sub); sub 224 drivers/media/pci/saa7164/saa7164.h u32 sub; sub 1120 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c const struct v4l2_event_subscription *sub) sub 1123 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c switch (sub->type) { sub 1127 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c return v4l2_event_subscribe(fh, sub, 30, NULL); sub 1129 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c return v4l2_ctrl_subscribe_event(fh, sub); sub 656 drivers/media/pci/tw5864/tw5864-video.c const struct v4l2_event_subscription *sub) sub 658 drivers/media/pci/tw5864/tw5864-video.c switch (sub->type) { sub 663 drivers/media/pci/tw5864/tw5864-video.c return v4l2_event_subscribe(fh, sub, 30, NULL); sub 665 drivers/media/pci/tw5864/tw5864-video.c return v4l2_ctrl_subscribe_event(fh, sub); sub 1214 drivers/media/platform/aspeed-video.c const struct v4l2_event_subscription *sub) sub 1216 drivers/media/platform/aspeed-video.c switch (sub->type) { sub 1218 drivers/media/platform/aspeed-video.c return v4l2_src_change_event_subscribe(fh, sub); sub 1221 drivers/media/platform/aspeed-video.c return v4l2_ctrl_subscribe_event(fh, sub); sub 1323 drivers/media/platform/coda/coda-common.c const struct v4l2_event_subscription *sub) sub 1327 drivers/media/platform/coda/coda-common.c switch (sub->type) { sub 1329 drivers/media/platform/coda/coda-common.c return v4l2_event_subscribe(fh, sub, 0, NULL); sub 1332 drivers/media/platform/coda/coda-common.c return v4l2_event_subscribe(fh, sub, 0, NULL); sub 1336 drivers/media/platform/coda/coda-common.c return v4l2_ctrl_subscribe_event(fh, sub); sub 444 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c const struct v4l2_event_subscription *sub) sub 446 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c switch (sub->type) { sub 448 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c return v4l2_src_change_event_subscribe(fh, sub); sub 640 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c const struct v4l2_event_subscription *sub) sub 642 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c switch (sub->type) { sub 644 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c return v4l2_event_subscribe(fh, sub, 2, NULL); sub 646 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c return v4l2_src_change_event_subscribe(fh, sub); sub 648 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c return v4l2_ctrl_subscribe_event(fh, sub); sub 1850 drivers/media/platform/omap3isp/ispccdc.c struct v4l2_event_subscription *sub) sub 1852 drivers/media/platform/omap3isp/ispccdc.c if (sub->type != V4L2_EVENT_FRAME_SYNC) sub 1856 drivers/media/platform/omap3isp/ispccdc.c if (sub->id != 0) sub 1859 drivers/media/platform/omap3isp/ispccdc.c return v4l2_event_subscribe(fh, sub, OMAP3ISP_CCDC_NEVENTS, NULL); sub 1863 drivers/media/platform/omap3isp/ispccdc.c struct v4l2_event_subscription *sub) sub 1865 drivers/media/platform/omap3isp/ispccdc.c return v4l2_event_unsubscribe(fh, sub); sub 1004 drivers/media/platform/omap3isp/ispstat.c struct v4l2_event_subscription *sub) sub 1008 drivers/media/platform/omap3isp/ispstat.c if (sub->type != stat->event_type) sub 1011 drivers/media/platform/omap3isp/ispstat.c return v4l2_event_subscribe(fh, sub, STAT_NEVENTS, NULL); sub 1016 drivers/media/platform/omap3isp/ispstat.c struct v4l2_event_subscription *sub) sub 1018 drivers/media/platform/omap3isp/ispstat.c return v4l2_event_unsubscribe(fh, sub); sub 137 drivers/media/platform/omap3isp/ispstat.h struct v4l2_event_subscription *sub); sub 140 drivers/media/platform/omap3isp/ispstat.h struct v4l2_event_subscription *sub); sub 462 drivers/media/platform/qcom/venus/vdec.c const struct v4l2_event_subscription *sub) sub 467 drivers/media/platform/qcom/venus/vdec.c switch (sub->type) { sub 469 drivers/media/platform/qcom/venus/vdec.c return v4l2_event_subscribe(fh, sub, 2, NULL); sub 471 drivers/media/platform/qcom/venus/vdec.c ret = v4l2_src_change_event_subscribe(fh, sub); sub 477 drivers/media/platform/qcom/venus/vdec.c return v4l2_ctrl_subscribe_event(fh, sub); sub 510 drivers/media/platform/rcar-vin/rcar-v4l2.c const struct v4l2_event_subscription *sub) sub 512 drivers/media/platform/rcar-vin/rcar-v4l2.c switch (sub->type) { sub 514 drivers/media/platform/rcar-vin/rcar-v4l2.c return v4l2_event_subscribe(fh, sub, 4, NULL); sub 516 drivers/media/platform/rcar-vin/rcar-v4l2.c return v4l2_ctrl_subscribe_event(fh, sub); sub 1698 drivers/media/platform/s5p-jpeg/jpeg-core.c const struct v4l2_event_subscription *sub) sub 1700 drivers/media/platform/s5p-jpeg/jpeg-core.c if (sub->type == V4L2_EVENT_SOURCE_CHANGE) sub 1701 drivers/media/platform/s5p-jpeg/jpeg-core.c return v4l2_src_change_event_subscribe(fh, sub); sub 846 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c const struct v4l2_event_subscription *sub) sub 848 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c switch (sub->type) { sub 850 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c return v4l2_event_subscribe(fh, sub, 2, NULL); sub 852 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c return v4l2_src_change_event_subscribe(fh, sub); sub 2311 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c const struct v4l2_event_subscription *sub) sub 2313 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c switch (sub->type) { sub 2315 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c return v4l2_event_subscribe(fh, sub, 2, NULL); sub 880 drivers/media/platform/sti/delta/delta-v4l2.c const struct v4l2_event_subscription *sub) sub 882 drivers/media/platform/sti/delta/delta-v4l2.c switch (sub->type) { sub 884 drivers/media/platform/sti/delta/delta-v4l2.c return v4l2_event_subscribe(fh, sub, 2, NULL); sub 1343 drivers/media/platform/vicodec/vicodec-core.c const struct v4l2_event_subscription *sub) sub 1347 drivers/media/platform/vicodec/vicodec-core.c switch (sub->type) { sub 1355 drivers/media/platform/vicodec/vicodec-core.c return v4l2_event_subscribe(fh, sub, 0, NULL); sub 1357 drivers/media/platform/vicodec/vicodec-core.c return v4l2_ctrl_subscribe_event(fh, sub); sub 36 drivers/media/platform/vivid/vivid-vid-common.h int vidioc_subscribe_event(struct v4l2_fh *fh, const struct v4l2_event_subscription *sub); sub 1196 drivers/media/platform/vivid/vivid-vid-out.c const struct v4l2_event_subscription *sub) sub 1198 drivers/media/platform/vivid/vivid-vid-out.c switch (sub->type) { sub 1201 drivers/media/platform/vivid/vivid-vid-out.c return v4l2_src_change_event_subscribe(fh, sub); sub 1204 drivers/media/platform/vivid/vivid-vid-out.c return v4l2_ctrl_subscribe_event(fh, sub); sub 763 drivers/media/usb/go7007/go7007-v4l2.c const struct v4l2_event_subscription *sub) sub 766 drivers/media/usb/go7007/go7007-v4l2.c switch (sub->type) { sub 770 drivers/media/usb/go7007/go7007-v4l2.c return v4l2_event_subscribe(fh, sub, 30, NULL); sub 772 drivers/media/usb/go7007/go7007-v4l2.c return v4l2_ctrl_subscribe_event(fh, sub); sub 1266 drivers/media/usb/uvc/uvc_v4l2.c const struct v4l2_event_subscription *sub) sub 1268 drivers/media/usb/uvc/uvc_v4l2.c switch (sub->type) { sub 1270 drivers/media/usb/uvc/uvc_v4l2.c return v4l2_event_subscribe(fh, sub, 0, &uvc_ctrl_sub_ev_ops); sub 4396 drivers/media/v4l2-core/v4l2-ctrls.c const struct v4l2_event_subscription *sub) sub 4398 drivers/media/v4l2-core/v4l2-ctrls.c if (sub->type == V4L2_EVENT_CTRL) sub 4399 drivers/media/v4l2-core/v4l2-ctrls.c return v4l2_event_subscribe(fh, sub, 0, &v4l2_ctrl_sub_ev_ops); sub 4405 drivers/media/v4l2-core/v4l2-ctrls.c struct v4l2_event_subscription *sub) sub 4409 drivers/media/v4l2-core/v4l2-ctrls.c return v4l2_ctrl_subscribe_event(fh, sub); sub 204 drivers/media/v4l2-core/v4l2-event.c const struct v4l2_event_subscription *sub, unsigned elems, sub 212 drivers/media/v4l2-core/v4l2-event.c if (sub->type == V4L2_EVENT_ALL) sub 223 drivers/media/v4l2-core/v4l2-event.c sev->type = sub->type; sub 224 drivers/media/v4l2-core/v4l2-event.c sev->id = sub->id; sub 225 drivers/media/v4l2-core/v4l2-event.c sev->flags = sub->flags; sub 233 drivers/media/v4l2-core/v4l2-event.c found_ev = v4l2_event_subscribed(fh, sub->type, sub->id); sub 259 drivers/media/v4l2-core/v4l2-event.c struct v4l2_event_subscription sub; sub 270 drivers/media/v4l2-core/v4l2-event.c sub.type = sev->type; sub 271 drivers/media/v4l2-core/v4l2-event.c sub.id = sev->id; sub 275 drivers/media/v4l2-core/v4l2-event.c v4l2_event_unsubscribe(fh, &sub); sub 281 drivers/media/v4l2-core/v4l2-event.c const struct v4l2_event_subscription *sub) sub 286 drivers/media/v4l2-core/v4l2-event.c if (sub->type == V4L2_EVENT_ALL) { sub 295 drivers/media/v4l2-core/v4l2-event.c sev = v4l2_event_subscribed(fh, sub->type, sub->id); sub 313 drivers/media/v4l2-core/v4l2-event.c struct v4l2_event_subscription *sub) sub 315 drivers/media/v4l2-core/v4l2-event.c return v4l2_event_unsubscribe(fh, sub); sub 340 drivers/media/v4l2-core/v4l2-event.c const struct v4l2_event_subscription *sub) sub 342 drivers/media/v4l2-core/v4l2-event.c if (sub->type == V4L2_EVENT_SOURCE_CHANGE) sub 343 drivers/media/v4l2-core/v4l2-event.c return v4l2_event_subscribe(fh, sub, 0, &v4l2_event_src_ch_ops); sub 349 drivers/media/v4l2-core/v4l2-event.c struct v4l2_fh *fh, struct v4l2_event_subscription *sub) sub 351 drivers/media/v4l2-core/v4l2-event.c return v4l2_src_change_event_subscribe(fh, sub); sub 134 drivers/misc/vmw_vmci/vmci_event.c struct vmci_subscription *sub; sub 150 drivers/misc/vmw_vmci/vmci_event.c sub = kzalloc(sizeof(*sub), GFP_KERNEL); sub 151 drivers/misc/vmw_vmci/vmci_event.c if (!sub) sub 154 drivers/misc/vmw_vmci/vmci_event.c sub->id = VMCI_EVENT_MAX; sub 155 drivers/misc/vmw_vmci/vmci_event.c sub->event = event; sub 156 drivers/misc/vmw_vmci/vmci_event.c sub->callback = callback; sub 157 drivers/misc/vmw_vmci/vmci_event.c sub->callback_data = callback_data; sub 158 drivers/misc/vmw_vmci/vmci_event.c INIT_LIST_HEAD(&sub->node); sub 172 drivers/misc/vmw_vmci/vmci_event.c sub->id = subscription_id; sub 179 drivers/misc/vmw_vmci/vmci_event.c list_add_rcu(&sub->node, &subscriber_array[event]); sub 187 drivers/misc/vmw_vmci/vmci_event.c *new_subscription_id = sub->id; sub 69 drivers/net/ethernet/cavium/liquidio/liquidio_common.h #define OPCODE_SUBCODE(op, sub) ((((op) & 0x0f) << 8) | ((sub) & 0x7f)) sub 14 drivers/net/ethernet/chelsio/cxgb/vsc7326_reg.h #define CRA(blk,sub,adr) ((((blk) & 0x7) << 13) | (((sub) & 0xf) << 9) | (((adr) & 0xff) << 1)) sub 3756 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c u8 build, u8 sub, __always_unused u16 len, sub 3770 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c fw_cmd.ver_sub = sub; sub 2770 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c u8 build, u8 sub, u16 len, sub 2787 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c fw_cmd.ver_sub = sub; sub 827 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c __le32 major, minor, sub; sub 841 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c &major, &minor, &sub); sub 849 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c return major + (minor << 8) + (sub << 16); sub 3590 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c u32 major, minor, sub; sub 3594 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c sub = QLC_SHARED_REG_RD32(adapter, QLCNIC_FW_VERSION_SUB); sub 3596 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c if (adapter->fw_version != QLCNIC_VERSION_CODE(major, minor, sub)) { sub 1010 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c u32 major, minor, sub; sub 1028 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c &major, &minor, &sub); sub 1032 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c return major + (minor << 8) + (sub << 16); sub 697 drivers/net/ieee802154/mac802154_hwsim.c struct hwsim_phy *sub; sub 700 drivers/net/ieee802154/mac802154_hwsim.c list_for_each_entry(sub, &hwsim_phys, list) { sub 701 drivers/net/ieee802154/mac802154_hwsim.c e = hwsim_alloc_edge(sub, 0xff); sub 708 drivers/net/ieee802154/mac802154_hwsim.c list_for_each_entry(sub, &hwsim_phys, list) { sub 713 drivers/net/ieee802154/mac802154_hwsim.c list_add_rcu(&e->list, &sub->edges); sub 50 drivers/net/wireless/ti/wl1251/debugfs.c #define DEBUGFS_FWSTATS_FILE(sub, name, buflen, fmt) \ sub 51 drivers/net/wireless/ti/wl1251/debugfs.c static ssize_t sub## _ ##name## _read(struct file *file, \ sub 62 drivers/net/wireless/ti/wl1251/debugfs.c wl->stats.fw_stats->sub.name); \ sub 66 drivers/net/wireless/ti/wl1251/debugfs.c static const struct file_operations sub## _ ##name## _ops = { \ sub 67 drivers/net/wireless/ti/wl1251/debugfs.c .read = sub## _ ##name## _read, \ sub 72 drivers/net/wireless/ti/wl1251/debugfs.c #define DEBUGFS_FWSTATS_ADD(sub, name) \ sub 73 drivers/net/wireless/ti/wl1251/debugfs.c DEBUGFS_ADD(sub## _ ##name, wl->debugfs.fw_statistics) sub 75 drivers/net/wireless/ti/wl1251/debugfs.c #define DEBUGFS_FWSTATS_DEL(sub, name) \ sub 76 drivers/net/wireless/ti/wl1251/debugfs.c DEBUGFS_DEL(sub## _ ##name) sub 53 drivers/net/wireless/ti/wlcore/debugfs.h #define DEBUGFS_FWSTATS_FILE(sub, name, fmt, struct_type) \ sub 54 drivers/net/wireless/ti/wlcore/debugfs.h static ssize_t sub## _ ##name## _read(struct file *file, \ sub 64 drivers/net/wireless/ti/wlcore/debugfs.h stats->sub.name); \ sub 67 drivers/net/wireless/ti/wlcore/debugfs.h static const struct file_operations sub## _ ##name## _ops = { \ sub 68 drivers/net/wireless/ti/wlcore/debugfs.h .read = sub## _ ##name## _read, \ sub 73 drivers/net/wireless/ti/wlcore/debugfs.h #define DEBUGFS_FWSTATS_FILE_ARRAY(sub, name, len, struct_type) \ sub 74 drivers/net/wireless/ti/wlcore/debugfs.h static ssize_t sub## _ ##name## _read(struct file *file, \ sub 87 drivers/net/wireless/ti/wlcore/debugfs.h buf, i, stats->sub.name[i]); \ sub 92 drivers/net/wireless/ti/wlcore/debugfs.h static const struct file_operations sub## _ ##name## _ops = { \ sub 93 drivers/net/wireless/ti/wlcore/debugfs.h .read = sub## _ ##name## _read, \ sub 98 drivers/net/wireless/ti/wlcore/debugfs.h #define DEBUGFS_FWSTATS_ADD(sub, name) \ sub 99 drivers/net/wireless/ti/wlcore/debugfs.h DEBUGFS_ADD(sub## _ ##name, stats) sub 362 drivers/nvdimm/btt.c u32 sub, struct log_entry *ent, unsigned long flags) sub 365 drivers/nvdimm/btt.c u32 group_slot = arena->log_index[sub]; sub 382 drivers/nvdimm/btt.c static int btt_flog_write(struct arena_info *arena, u32 lane, u32 sub, sub 387 drivers/nvdimm/btt.c ret = __btt_log_write(arena, lane, sub, ent, NVDIMM_IO_ATOMIC); sub 392 drivers/nvdimm/btt.c arena->freelist[lane].sub = 1 - arena->freelist[lane].sub; sub 555 drivers/nvdimm/btt.c arena->freelist[i].sub = 1 - new; sub 1318 drivers/nvdimm/btt.c int sub; sub 1392 drivers/nvdimm/btt.c sub = arena->freelist[lane].sub; sub 1393 drivers/nvdimm/btt.c ret = btt_flog_write(arena, lane, sub, &log); sub 120 drivers/nvdimm/btt.h u8 sub; sub 26 drivers/pci/controller/pcie-cadence.h #define CDNS_PCIE_LM_ID_SUBSYS(sub) \ sub 27 drivers/pci/controller/pcie-cadence.h (((sub) << CDNS_PCIE_LM_ID_SUBSYS_SHIFT) & CDNS_PCIE_LM_ID_SUBSYS_MASK) sub 1097 drivers/pci/probe.c static bool pci_ea_fixed_busnrs(struct pci_dev *dev, u8 *sec, u8 *sub) sub 1119 drivers/pci/probe.c *sub = ea_sub; sub 96 drivers/phy/marvell/phy-armada38x-comphy.c static int a38x_comphy_set_mode(struct phy *phy, enum phy_mode mode, int sub) sub 104 drivers/phy/marvell/phy-armada38x-comphy.c switch (sub) { sub 408 drivers/platform/x86/intel_pmc_ipc.c int intel_pmc_ipc_simple_command(int cmd, int sub) sub 417 drivers/platform/x86/intel_pmc_ipc.c ipc_send_command(sub << IPC_CMD_SUBCMD | cmd); sub 440 drivers/platform/x86/intel_pmc_ipc.c int intel_pmc_ipc_raw_cmd(u32 cmd, u32 sub, u8 *in, u32 inlen, u32 *out, sub 462 drivers/platform/x86/intel_pmc_ipc.c (sub << IPC_CMD_SUBCMD) | cmd); sub 488 drivers/platform/x86/intel_pmc_ipc.c int intel_pmc_ipc_command(u32 cmd, u32 sub, u8 *in, u32 inlen, sub 491 drivers/platform/x86/intel_pmc_ipc.c return intel_pmc_ipc_raw_cmd(cmd, sub, in, inlen, out, outlen, 0, 0); sub 431 drivers/platform/x86/intel_scu_ipc.c int intel_scu_ipc_simple_command(int cmd, int sub) sub 441 drivers/platform/x86/intel_scu_ipc.c ipc_command(scu, sub << 12 | cmd); sub 460 drivers/platform/x86/intel_scu_ipc.c int intel_scu_ipc_command(int cmd, int sub, u32 *in, int inlen, sub 475 drivers/platform/x86/intel_scu_ipc.c ipc_command(scu, (inlen << 16) | (sub << 12) | cmd); sub 506 drivers/platform/x86/intel_scu_ipc.c int intel_scu_ipc_raw_command(int cmd, int sub, u8 *in, int inlen, sub 539 drivers/platform/x86/intel_scu_ipc.c ipc_command(scu, (inlen << 16) | (sub << 12) | cmd); sub 152 drivers/regulator/max1586.c struct max1586_subdev_data *sub; sub 192 drivers/regulator/max1586.c sub = pdata->subdevs; sub 195 drivers/regulator/max1586.c sub->id = i; sub 196 drivers/regulator/max1586.c sub->name = rmatch[i].of_node->name; sub 197 drivers/regulator/max1586.c sub->platform_data = rmatch[i].init_data; sub 198 drivers/regulator/max1586.c sub++; sub 324 drivers/regulator/max8660.c struct max8660_subdev_data *sub; sub 349 drivers/regulator/max8660.c sub = pdata->subdevs; sub 352 drivers/regulator/max8660.c sub->id = i; sub 353 drivers/regulator/max8660.c sub->name = rmatch[i].name; sub 354 drivers/regulator/max8660.c sub->platform_data = rmatch[i].init_data; sub 356 drivers/regulator/max8660.c sub++; sub 2808 drivers/scsi/aacraid/aachba.c pmcmd->sub = (scsicmd->cmnd[4] & 1) ? sub 1962 drivers/scsi/aacraid/aacraid.h __le32 sub; /* CT_PM_* */ sub 1109 drivers/scsi/bnx2fc/bnx2fc_fcoe.c u8 sub; sub 1114 drivers/scsi/bnx2fc/bnx2fc_fcoe.c sub = fiph->fip_subcode; sub 1116 drivers/scsi/bnx2fc/bnx2fc_fcoe.c if (op == FIP_OP_CTRL && sub == FIP_SC_SOL && bnx2fc_log_fka) sub 1146 drivers/scsi/fcoe/fcoe_ctlr.c u8 sub; sub 1155 drivers/scsi/fcoe/fcoe_ctlr.c sub = fiph->fip_subcode; sub 1156 drivers/scsi/fcoe/fcoe_ctlr.c if (sub != FIP_SC_REQ && sub != FIP_SC_REP) sub 1248 drivers/scsi/fcoe/fcoe_ctlr.c sub == FIP_SC_REP && fip->mode != FIP_MODE_VN2VN) { sub 1542 drivers/scsi/fcoe/fcoe_ctlr.c u8 sub; sub 1559 drivers/scsi/fcoe/fcoe_ctlr.c sub = fiph->fip_subcode; sub 1597 drivers/scsi/fcoe/fcoe_ctlr.c if (op == FIP_OP_DISC && sub == FIP_SC_ADV) sub 1599 drivers/scsi/fcoe/fcoe_ctlr.c else if (op == FIP_OP_CTRL && sub == FIP_SC_CLR_VLINK) sub 2019 drivers/scsi/fcoe/fcoe_ctlr.c enum fip_vn2vn_subcode sub, sub 2038 drivers/scsi/fcoe/fcoe_ctlr.c if (sub == FIP_SC_VN_CLAIM_NOTIFY || sub == FIP_SC_VN_CLAIM_REP) { sub 2054 drivers/scsi/fcoe/fcoe_ctlr.c if (sub == FIP_SC_VN_BEACON) { sub 2064 drivers/scsi/fcoe/fcoe_ctlr.c frame->fip.fip_subcode = sub; sub 2086 drivers/scsi/fcoe/fcoe_ctlr.c if (sub == FIP_SC_VN_CLAIM_NOTIFY || sub == FIP_SC_VN_CLAIM_REP) { sub 2284 drivers/scsi/fcoe/fcoe_ctlr.c u8 sub; sub 2289 drivers/scsi/fcoe/fcoe_ctlr.c sub = fiph->fip_subcode; sub 2290 drivers/scsi/fcoe/fcoe_ctlr.c switch (sub) { sub 2304 drivers/scsi/fcoe/fcoe_ctlr.c LIBFCOE_FIP_DBG(fip, "vn_parse unknown subcode %u\n", sub); sub 2325 drivers/scsi/fcoe/fcoe_ctlr.c dtype, sub); sub 2741 drivers/scsi/fcoe/fcoe_ctlr.c enum fip_vn2vn_subcode sub; sub 2746 drivers/scsi/fcoe/fcoe_ctlr.c sub = fiph->fip_subcode; sub 2753 drivers/scsi/fcoe/fcoe_ctlr.c sub, vlan_id); sub 2765 drivers/scsi/fcoe/fcoe_ctlr.c switch (sub) { sub 2782 drivers/scsi/fcoe/fcoe_ctlr.c LIBFCOE_FIP_DBG(fip, "vn_recv unknown subcode %d\n", sub); sub 2813 drivers/scsi/fcoe/fcoe_ctlr.c u8 sub; sub 2818 drivers/scsi/fcoe/fcoe_ctlr.c sub = fiph->fip_subcode; sub 2819 drivers/scsi/fcoe/fcoe_ctlr.c switch (sub) { sub 2824 drivers/scsi/fcoe/fcoe_ctlr.c LIBFCOE_FIP_DBG(fip, "vn_parse unknown subcode %u\n", sub); sub 2845 drivers/scsi/fcoe/fcoe_ctlr.c dtype, sub); sub 2898 drivers/scsi/fcoe/fcoe_ctlr.c enum fip_vlan_subcode sub, sub 2932 drivers/scsi/fcoe/fcoe_ctlr.c frame->fip.fip_subcode = sub; sub 2962 drivers/scsi/fcoe/fcoe_ctlr.c enum fip_vlan_subcode sub = FIP_SC_VL_NOTE; sub 2965 drivers/scsi/fcoe/fcoe_ctlr.c sub = FIP_SC_VL_VN2VN_NOTE; sub 2967 drivers/scsi/fcoe/fcoe_ctlr.c fcoe_ctlr_vlan_send(fip, sub, frport->enode_mac); sub 2979 drivers/scsi/fcoe/fcoe_ctlr.c enum fip_vlan_subcode sub; sub 2984 drivers/scsi/fcoe/fcoe_ctlr.c sub = fiph->fip_subcode; sub 2991 drivers/scsi/fcoe/fcoe_ctlr.c if (sub == FIP_SC_VL_REQ) sub 315 drivers/scsi/fnic/fnic_fcs.c u8 sub; sub 329 drivers/scsi/fnic/fnic_fcs.c sub = fiph->fip_subcode; sub 334 drivers/scsi/fnic/fnic_fcs.c if (sub != FIP_SC_REP) sub 572 drivers/scsi/fnic/fnic_fcs.c u8 sub; sub 582 drivers/scsi/fnic/fnic_fcs.c sub = fiph->fip_subcode; sub 590 drivers/scsi/fnic/fnic_fcs.c if (op == FIP_OP_DISC && sub == FIP_SC_ADV) { sub 595 drivers/scsi/fnic/fnic_fcs.c } else if (op == FIP_OP_VLAN && sub == FIP_SC_VL_NOTE) { sub 599 drivers/scsi/fnic/fnic_fcs.c } else if (op == FIP_OP_CTRL && sub == FIP_SC_CLR_VLINK) { sub 117 drivers/scsi/hisi_sas/hisi_sas.h const struct hisi_sas_hw_error *sub; sub 3036 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .sub = axi_error, sub 3041 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .sub = fifo_error, sub 3073 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c if (axi_error->sub) { sub 3074 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c const struct hisi_sas_hw_error *sub = axi_error->sub; sub 3077 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c for (; sub->msk || sub->msg; sub++) { sub 3078 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c if (!(err_value & sub->msk)) sub 3081 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c sub->msg, irq_value); sub 1985 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .sub = axi_error, sub 1990 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .sub = fifo_error, sub 2039 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c if (error->sub) { sub 2040 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c const struct hisi_sas_hw_error *sub = error->sub; sub 2043 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c for (; sub->msk || sub->msg; sub++) { sub 2044 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c if (!(err_value & sub->msk)) sub 2048 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c sub->msg, irq_value); sub 127 drivers/scsi/qedf/qedf_fip.c u8 sub; sub 139 drivers/scsi/qedf/qedf_fip.c sub = fiph->fip_subcode; sub 151 drivers/scsi/qedf/qedf_fip.c "dest=%pM op=%x sub=%x vlan=%04x.", eth_hdr->h_dest, op, sub, sub 178 drivers/scsi/qedf/qedf_fip.c u8 sub; sub 189 drivers/scsi/qedf/qedf_fip.c sub = fiph->fip_subcode; sub 194 drivers/scsi/qedf/qedf_fip.c sub, vlan); sub 211 drivers/scsi/qedf/qedf_fip.c if (op == FIP_OP_VLAN && sub == FIP_SC_VL_NOTE) { sub 214 drivers/scsi/qedf/qedf_fip.c } else if (op == FIP_OP_CTRL && sub == FIP_SC_CLR_VLINK) { sub 1983 drivers/scsi/qedi/qedi_main.c char *fmt, *ip, *sub, *gw; sub 1998 drivers/scsi/qedi/qedi_main.c sub = ipv6_en ? initiator->ipv6.subnet_mask.byte : sub 2006 drivers/scsi/qedi/qedi_main.c sub = ip; sub 2016 drivers/scsi/qedi/qedi_main.c rc = snprintf(buf, ip_len, fmt, sub); sub 2643 drivers/staging/media/allegro-dvt/allegro-core.c const struct v4l2_event_subscription *sub) sub 2645 drivers/staging/media/allegro-dvt/allegro-core.c switch (sub->type) { sub 2647 drivers/staging/media/allegro-dvt/allegro-core.c return v4l2_event_subscribe(fh, sub, 0, NULL); sub 2649 drivers/staging/media/allegro-dvt/allegro-core.c return v4l2_ctrl_subscribe_event(fh, sub); sub 407 drivers/staging/media/imx/imx-media-capture.c const struct v4l2_event_subscription *sub) sub 409 drivers/staging/media/imx/imx-media-capture.c switch (sub->type) { sub 411 drivers/staging/media/imx/imx-media-capture.c return v4l2_event_subscribe(fh, sub, 0, NULL); sub 413 drivers/staging/media/imx/imx-media-capture.c return v4l2_src_change_event_subscribe(fh, sub); sub 415 drivers/staging/media/imx/imx-media-capture.c return v4l2_ctrl_subscribe_event(fh, sub); sub 1727 drivers/staging/media/imx/imx-media-csi.c struct v4l2_event_subscription *sub) sub 1729 drivers/staging/media/imx/imx-media-csi.c if (sub->type != V4L2_EVENT_IMX_FRAME_INTERVAL_ERROR) sub 1731 drivers/staging/media/imx/imx-media-csi.c if (sub->id != 0) sub 1734 drivers/staging/media/imx/imx-media-csi.c return v4l2_event_subscribe(fh, sub, 0, NULL); sub 1738 drivers/staging/media/imx/imx-media-csi.c struct v4l2_event_subscription *sub) sub 1740 drivers/staging/media/imx/imx-media-csi.c return v4l2_event_unsubscribe(fh, sub); sub 733 drivers/staging/media/meson/vdec/vdec.c const struct v4l2_event_subscription *sub) sub 735 drivers/staging/media/meson/vdec/vdec.c switch (sub->type) { sub 738 drivers/staging/media/meson/vdec/vdec.c return v4l2_event_subscribe(fh, sub, 0, NULL); sub 740 drivers/staging/media/meson/vdec/vdec.c return v4l2_ctrl_subscribe_event(fh, sub); sub 226 drivers/usb/gadget/function/uvc_v4l2.c const struct v4l2_event_subscription *sub) sub 228 drivers/usb/gadget/function/uvc_v4l2.c if (sub->type < UVC_EVENT_FIRST || sub->type > UVC_EVENT_LAST) sub 231 drivers/usb/gadget/function/uvc_v4l2.c return v4l2_event_subscribe(fh, sub, 2, NULL); sub 236 drivers/usb/gadget/function/uvc_v4l2.c const struct v4l2_event_subscription *sub) sub 238 drivers/usb/gadget/function/uvc_v4l2.c return v4l2_event_unsubscribe(fh, sub); sub 246 drivers/video/fbdev/kyro/STG4000InitDevice.c u16 core_pll = 0, sub; sub 277 drivers/video/fbdev/kyro/STG4000InitDevice.c pci_read_config_word(pDev, PCI_CONFIG_SUBSYS_ID, &sub); sub 279 drivers/video/fbdev/kyro/STG4000InitDevice.c ulChipSpeed = InitSDRAMRegisters(pSTGReg, (u32)sub, sub 1469 drivers/video/fbdev/via/viafbdev.c bool add, sub; sub 1477 drivers/video/fbdev/via/viafbdev.c sub = buf[0] == '-'; sub 1478 drivers/video/fbdev/via/viafbdev.c if (add || sub) sub 1487 drivers/video/fbdev/via/viafbdev.c else if (sub) sub 36 drivers/watchdog/intel-mid_wdt.c static inline int wdt_command(int sub, u32 *in, int inlen) sub 38 drivers/watchdog/intel-mid_wdt.c return intel_scu_ipc_command(IPC_WATCHDOG, sub, in, inlen, NULL, 0); sub 486 fs/afs/proc.c char *s, *p, *sub; sub 524 fs/afs/proc.c sub = (char *)afs_init_sysname; sub 527 fs/afs/proc.c sub = kmemdup(s, len + 1, GFP_KERNEL); sub 528 fs/afs/proc.c if (!sub) sub 532 fs/afs/proc.c sysnames->subs[sysnames->nr] = sub; sub 146 fs/f2fs/namei.c static inline int is_extension_exist(const unsigned char *s, const char *sub) sub 149 fs/f2fs/namei.c size_t sublen = strlen(sub); sub 162 fs/f2fs/namei.c if (!strncasecmp(s + i + 1, sub, sublen)) sub 101 fs/xfs/scrub/bitmap.c struct xfs_bitmap *sub) sub 112 fs/xfs/scrub/bitmap.c if (list_empty(&bitmap->list) || list_empty(&sub->list)) sub 114 fs/xfs/scrub/bitmap.c ASSERT(!list_empty(&sub->list)); sub 117 fs/xfs/scrub/bitmap.c list_sort(NULL, &sub->list, xfs_bitmap_range_cmp); sub 127 fs/xfs/scrub/bitmap.c sub_br = list_first_entry(&sub->list, struct xfs_bitmap_range, sub 138 fs/xfs/scrub/bitmap.c if (list_is_last(&sub_br->list, &sub->list)) sub 30 fs/xfs/scrub/bitmap.h int xfs_bitmap_disunion(struct xfs_bitmap *bitmap, struct xfs_bitmap *sub); sub 118 include/asm-generic/atomic.h ATOMIC_OP_RETURN(sub, -) sub 126 include/asm-generic/atomic.h ATOMIC_FETCH_OP(sub, -) sub 35 include/asm-generic/atomic64.h ATOMIC64_OPS(sub) sub 129 include/linux/ceph/mon_client.h bool ceph_monc_want_map(struct ceph_mon_client *monc, int sub, u32 epoch, sub 131 include/linux/ceph/mon_client.h void ceph_monc_got_map(struct ceph_mon_client *monc, int sub, u32 epoch); sub 3396 include/linux/ieee80211.h #define for_each_subelement(sub, element) \ sub 3397 include/linux/ieee80211.h for_each_element(sub, (element)->data, (element)->datalen) sub 3399 include/linux/ieee80211.h #define for_each_subelement_id(sub, id, element) \ sub 3400 include/linux/ieee80211.h for_each_element_id(sub, id, (element)->data, (element)->datalen) sub 3402 include/linux/ieee80211.h #define for_each_subelement_extid(sub, extid, element) \ sub 3403 include/linux/ieee80211.h for_each_element_extid(sub, extid, (element)->data, (element)->datalen) sub 315 include/linux/lockdep.h #define lockdep_set_class_and_subclass(lock, key, sub) \ sub 316 include/linux/lockdep.h lockdep_init_map(&(lock)->dep_map, #key, key, sub) sub 317 include/linux/lockdep.h #define lockdep_set_subclass(lock, sub) \ sub 319 include/linux/lockdep.h (lock)->dep_map.key, sub) sub 436 include/linux/lockdep.h # define lockdep_init_map(lock, name, key, sub) \ sub 441 include/linux/lockdep.h #define lockdep_set_class_and_subclass(lock, key, sub) \ sub 443 include/linux/lockdep.h #define lockdep_set_subclass(lock, sub) do { } while (0) sub 735 include/linux/pm.h extern int device_pm_wait_for_dev(struct device *sub, struct device *dev); sub 1116 include/media/v4l2-ctrls.h const struct v4l2_event_subscription *sub); sub 1323 include/media/v4l2-ctrls.h struct v4l2_event_subscription *sub); sub 146 include/media/v4l2-event.h const struct v4l2_event_subscription *sub, sub 156 include/media/v4l2-event.h const struct v4l2_event_subscription *sub); sub 178 include/media/v4l2-event.h struct v4l2_event_subscription *sub); sub 187 include/media/v4l2-event.h const struct v4l2_event_subscription *sub); sub 198 include/media/v4l2-event.h struct v4l2_event_subscription *sub); sub 581 include/media/v4l2-ioctl.h const struct v4l2_event_subscription *sub); sub 583 include/media/v4l2-ioctl.h const struct v4l2_event_subscription *sub); sub 209 include/media/v4l2-subdev.h struct v4l2_event_subscription *sub); sub 211 include/media/v4l2-subdev.h struct v4l2_event_subscription *sub); sub 1339 include/sound/pcm.h #define PCM_RUNTIME_CHECK(sub) snd_BUG_ON(!(sub) || !(sub)->runtime) sub 6609 kernel/bpf/verifier.c struct bpf_subprog_info *sub; sub 6638 kernel/bpf/verifier.c sub = env->subprog_info; sub 6695 kernel/bpf/verifier.c if (linfo[i].insn_off == sub[s].start) { sub 6696 kernel/bpf/verifier.c sub[s].linfo_idx = i; sub 6698 kernel/bpf/verifier.c } else if (sub[s].start < linfo[i].insn_off) { sub 3958 kernel/events/core.c struct perf_event *sub, *event = data->event; sub 3996 kernel/events/core.c for_each_sibling_event(sub, event) { sub 3997 kernel/events/core.c if (sub->state == PERF_EVENT_STATE_ACTIVE) { sub 4002 kernel/events/core.c sub->pmu->read(sub); sub 4841 kernel/events/core.c struct perf_event *sub; sub 4874 kernel/events/core.c for_each_sibling_event(sub, leader) { sub 4875 kernel/events/core.c values[n++] += perf_event_count(sub); sub 4877 kernel/events/core.c values[n++] = primary_event_id(sub); sub 6287 kernel/events/core.c struct perf_event *leader = event->group_leader, *sub; sub 6310 kernel/events/core.c for_each_sibling_event(sub, leader) { sub 6313 kernel/events/core.c if ((sub != event) && sub 6314 kernel/events/core.c (sub->state == PERF_EVENT_STATE_ACTIVE)) sub 6315 kernel/events/core.c sub->pmu->read(sub); sub 6317 kernel/events/core.c values[n++] = perf_event_count(sub); sub 6319 kernel/events/core.c values[n++] = primary_event_id(sub); sub 11913 kernel/events/core.c struct perf_event *sub; sub 11925 kernel/events/core.c for_each_sibling_event(sub, parent_event) { sub 11926 kernel/events/core.c child_ctr = inherit_event(sub, parent, parent_ctx, sub 11931 kernel/events/core.c if (sub->aux_event == parent_event && child_ctr && sub 733 kernel/trace/trace_events.c const char *sub, const char *event, int set) sub 757 kernel/trace/trace_events.c if (sub && strcmp(sub, call->class->system) != 0) sub 780 kernel/trace/trace_events.c const char *sub, const char *event, int set) sub 785 kernel/trace/trace_events.c ret = __ftrace_set_clr_event_nolock(tr, match, sub, event, set); sub 793 kernel/trace/trace_events.c char *event = NULL, *sub = NULL, *match; sub 810 kernel/trace/trace_events.c sub = match; sub 814 kernel/trace/trace_events.c if (!strlen(sub) || strcmp(sub, "*") == 0) sub 815 kernel/trace/trace_events.c sub = NULL; sub 820 kernel/trace/trace_events.c ret = __ftrace_set_clr_event(tr, match, sub, event, set); sub 116 lib/atomic64.c ATOMIC64_OPS(sub, -=) sub 116 lib/atomic64_test.c TEST(, sub, -=, onestwos); sub 117 lib/atomic64_test.c TEST(, sub, -=, -one); sub 168 lib/atomic64_test.c TEST(64, sub, -=, onestwos); sub 169 lib/atomic64_test.c TEST(64, sub, -=, -one); sub 6500 lib/test_bpf.c static void *generate_test_data(struct bpf_test *test, int sub) sub 6512 lib/test_bpf.c skb = populate_skb(test->data, test->test[sub].data_size); sub 244 lib/test_overflow.c check_one_op(t, fmt, sub, "-", p->a, p->b, p->diff, p->d_of); \ sub 1991 net/batman-adv/bat_iv_ogm.c int sub = 0; sub 2007 net/batman-adv/bat_iv_ogm.c if (sub++ < *sub_s) sub 2018 net/batman-adv/bat_iv_ogm.c *sub_s = sub - 1; sub 2049 net/batman-adv/bat_iv_ogm.c struct hlist_head *head, int *idx_s, int *sub) sub 2061 net/batman-adv/bat_iv_ogm.c sub)) { sub 2070 net/batman-adv/bat_iv_ogm.c *sub = 0; sub 2090 net/batman-adv/bat_iv_ogm.c int sub = cb->args[2]; sub 2099 net/batman-adv/bat_iv_ogm.c &idx, &sub)) sub 2107 net/batman-adv/bat_iv_ogm.c cb->args[2] = sub; sub 497 net/batman-adv/bat_v.c int sub = 0; sub 505 net/batman-adv/bat_v.c if (sub++ < *sub_s) sub 515 net/batman-adv/bat_v.c *sub_s = sub - 1; sub 545 net/batman-adv/bat_v.c struct hlist_head *head, int *idx_s, int *sub) sub 556 net/batman-adv/bat_v.c if_outgoing, orig_node, sub)) { sub 565 net/batman-adv/bat_v.c *sub = 0; sub 585 net/batman-adv/bat_v.c int sub = cb->args[2]; sub 594 net/batman-adv/bat_v.c &sub)) sub 602 net/batman-adv/bat_v.c cb->args[2] = sub; sub 2097 net/batman-adv/translation-table.c int sub = 0; sub 2105 net/batman-adv/translation-table.c if (sub++ < *sub_s) sub 2112 net/batman-adv/translation-table.c *sub_s = sub - 1; sub 2136 net/batman-adv/translation-table.c struct hlist_head *head, int *idx_s, int *sub) sub 2147 net/batman-adv/translation-table.c common, sub)) { sub 2156 net/batman-adv/translation-table.c *sub = 0; sub 2179 net/batman-adv/translation-table.c int sub = cb->args[2]; sub 2207 net/batman-adv/translation-table.c head, &idx, &sub)) sub 2223 net/batman-adv/translation-table.c cb->args[2] = sub; sub 347 net/ceph/mon_client.c static bool __ceph_monc_want_map(struct ceph_mon_client *monc, int sub, sub 353 net/ceph/mon_client.c dout("%s %s epoch %u continuous %d\n", __func__, ceph_sub_str[sub], sub 356 net/ceph/mon_client.c if (monc->subs[sub].want && sub 357 net/ceph/mon_client.c monc->subs[sub].item.start == start && sub 358 net/ceph/mon_client.c monc->subs[sub].item.flags == flags) sub 361 net/ceph/mon_client.c monc->subs[sub].item.start = start; sub 362 net/ceph/mon_client.c monc->subs[sub].item.flags = flags; sub 363 net/ceph/mon_client.c monc->subs[sub].want = true; sub 368 net/ceph/mon_client.c bool ceph_monc_want_map(struct ceph_mon_client *monc, int sub, u32 epoch, sub 374 net/ceph/mon_client.c need_request = __ceph_monc_want_map(monc, sub, epoch, continuous); sub 386 net/ceph/mon_client.c static void __ceph_monc_got_map(struct ceph_mon_client *monc, int sub, sub 389 net/ceph/mon_client.c dout("%s %s epoch %u\n", __func__, ceph_sub_str[sub], epoch); sub 391 net/ceph/mon_client.c if (monc->subs[sub].want) { sub 392 net/ceph/mon_client.c if (monc->subs[sub].item.flags & CEPH_SUBSCRIBE_ONETIME) sub 393 net/ceph/mon_client.c monc->subs[sub].want = false; sub 395 net/ceph/mon_client.c monc->subs[sub].item.start = cpu_to_le64(epoch + 1); sub 398 net/ceph/mon_client.c monc->subs[sub].have = epoch; sub 401 net/ceph/mon_client.c void ceph_monc_got_map(struct ceph_mon_client *monc, int sub, u32 epoch) sub 404 net/ceph/mon_client.c __ceph_monc_got_map(monc, sub, epoch); sub 1280 net/mac80211/util.c const struct element *elem, *sub; sub 1291 net/mac80211/util.c for_each_element(sub, elem->data + 1, elem->datalen - 1) { sub 1295 net/mac80211/util.c if (sub->id != 0 || sub->datalen < 4) { sub 1300 net/mac80211/util.c if (sub->data[0] != WLAN_EID_NON_TX_BSSID_CAP || sub 1301 net/mac80211/util.c sub->data[1] != 2) { sub 1313 net/mac80211/util.c sub, sub 226 net/tipc/name_table.c struct tipc_subscription *sub, *tmp; sub 252 net/tipc/name_table.c list_for_each_entry_safe(sub, tmp, &sc->subscriptions, service_list) { sub 253 net/tipc/name_table.c tipc_sub_report_overlap(sub, p->lower, p->upper, TIPC_PUBLISHED, sub 286 net/tipc/name_table.c struct tipc_subscription *sub) sub 288 net/tipc/name_table.c struct tipc_subscr *sb = &sub->evt.s; sub 299 net/tipc/name_table.c tipc_sub_get(sub); sub 300 net/tipc/name_table.c list_add(&sub->service_list, &service->subscriptions); sub 314 net/tipc/name_table.c tipc_sub_report_overlap(sub, sr->lower, sr->upper, sub 368 net/tipc/name_table.c struct tipc_subscription *sub, *tmp; sub 386 net/tipc/name_table.c list_for_each_entry_safe(sub, tmp, &sc->subscriptions, service_list) { sub 387 net/tipc/name_table.c tipc_sub_report_overlap(sub, lower, upper, TIPC_WITHDRAWN, sub 676 net/tipc/name_table.c bool tipc_nametbl_subscribe(struct tipc_subscription *sub) sub 678 net/tipc/name_table.c struct name_table *nt = tipc_name_table(sub->net); sub 679 net/tipc/name_table.c struct tipc_net *tn = tipc_net(sub->net); sub 680 net/tipc/name_table.c struct tipc_subscr *s = &sub->evt.s; sub 686 net/tipc/name_table.c sc = tipc_service_find(sub->net, type); sub 691 net/tipc/name_table.c tipc_service_subscribe(sc, sub); sub 706 net/tipc/name_table.c void tipc_nametbl_unsubscribe(struct tipc_subscription *sub) sub 708 net/tipc/name_table.c struct tipc_net *tn = tipc_net(sub->net); sub 709 net/tipc/name_table.c struct tipc_subscr *s = &sub->evt.s; sub 714 net/tipc/name_table.c sc = tipc_service_find(sub->net, type); sub 719 net/tipc/name_table.c list_del_init(&sub->service_list); sub 720 net/tipc/name_table.c tipc_sub_put(sub); sub 41 net/tipc/subscr.c static void tipc_sub_send_event(struct tipc_subscription *sub, sub 45 net/tipc/subscr.c struct tipc_event *evt = &sub->evt; sub 47 net/tipc/subscr.c if (sub->inactive) sub 54 net/tipc/subscr.c tipc_topsrv_queue_evt(sub->net, sub->conid, event, evt); sub 75 net/tipc/subscr.c void tipc_sub_report_overlap(struct tipc_subscription *sub, sub 80 net/tipc/subscr.c struct tipc_subscr *s = &sub->evt.s; sub 97 net/tipc/subscr.c spin_lock(&sub->lock); sub 98 net/tipc/subscr.c tipc_sub_send_event(sub, found_lower, found_upper, sub 100 net/tipc/subscr.c spin_unlock(&sub->lock); sub 105 net/tipc/subscr.c struct tipc_subscription *sub = from_timer(sub, t, timer); sub 106 net/tipc/subscr.c struct tipc_subscr *s = &sub->evt.s; sub 108 net/tipc/subscr.c spin_lock(&sub->lock); sub 109 net/tipc/subscr.c tipc_sub_send_event(sub, s->seq.lower, s->seq.upper, sub 111 net/tipc/subscr.c sub->inactive = true; sub 112 net/tipc/subscr.c spin_unlock(&sub->lock); sub 135 net/tipc/subscr.c struct tipc_subscription *sub; sub 143 net/tipc/subscr.c sub = kmalloc(sizeof(*sub), GFP_ATOMIC); sub 144 net/tipc/subscr.c if (!sub) { sub 148 net/tipc/subscr.c INIT_LIST_HEAD(&sub->service_list); sub 149 net/tipc/subscr.c INIT_LIST_HEAD(&sub->sub_list); sub 150 net/tipc/subscr.c sub->net = net; sub 151 net/tipc/subscr.c sub->conid = conid; sub 152 net/tipc/subscr.c sub->inactive = false; sub 153 net/tipc/subscr.c memcpy(&sub->evt.s, s, sizeof(*s)); sub 154 net/tipc/subscr.c spin_lock_init(&sub->lock); sub 155 net/tipc/subscr.c kref_init(&sub->kref); sub 156 net/tipc/subscr.c if (!tipc_nametbl_subscribe(sub)) { sub 157 net/tipc/subscr.c kfree(sub); sub 160 net/tipc/subscr.c timer_setup(&sub->timer, tipc_sub_timeout, 0); sub 161 net/tipc/subscr.c timeout = tipc_sub_read(&sub->evt.s, timeout); sub 163 net/tipc/subscr.c mod_timer(&sub->timer, jiffies + msecs_to_jiffies(timeout)); sub 164 net/tipc/subscr.c return sub; sub 167 net/tipc/subscr.c void tipc_sub_unsubscribe(struct tipc_subscription *sub) sub 169 net/tipc/subscr.c tipc_nametbl_unsubscribe(sub); sub 170 net/tipc/subscr.c if (sub->evt.s.timeout != TIPC_WAIT_FOREVER) sub 171 net/tipc/subscr.c del_timer_sync(&sub->timer); sub 172 net/tipc/subscr.c list_del(&sub->sub_list); sub 173 net/tipc/subscr.c tipc_sub_put(sub); sub 72 net/tipc/subscr.h void tipc_sub_unsubscribe(struct tipc_subscription *sub); sub 76 net/tipc/subscr.h void tipc_sub_report_overlap(struct tipc_subscription *sub, sub 233 net/tipc/topsrv.c struct tipc_subscription *sub, *tmp; sub 236 net/tipc/topsrv.c list_for_each_entry_safe(sub, tmp, sub_list, sub_list) { sub 237 net/tipc/topsrv.c if (!s || !memcmp(s, &sub->evt.s, sizeof(*s))) { sub 238 net/tipc/topsrv.c tipc_sub_unsubscribe(sub); sub 364 net/tipc/topsrv.c struct tipc_subscription *sub; sub 375 net/tipc/topsrv.c sub = tipc_sub_subscribe(srv->net, s, con->conid); sub 376 net/tipc/topsrv.c if (!sub) sub 380 net/tipc/topsrv.c list_add(&sub->sub_list, &con->sub_list); sub 560 net/tipc/topsrv.c struct tipc_subscr sub; sub 564 net/tipc/topsrv.c sub.seq.type = type; sub 565 net/tipc/topsrv.c sub.seq.lower = lower; sub 566 net/tipc/topsrv.c sub.seq.upper = upper; sub 567 net/tipc/topsrv.c sub.timeout = TIPC_WAIT_FOREVER; sub 568 net/tipc/topsrv.c sub.filter = filter; sub 569 net/tipc/topsrv.c *(u32 *)&sub.usr_handle = port; sub 577 net/tipc/topsrv.c rc = tipc_conn_rcv_sub(tipc_topsrv(net), con, &sub); sub 125 net/tls/tls_sw.c int sub = 0; sub 143 net/tls/tls_sw.c sub++; sub 148 net/tls/tls_sw.c return sub; sub 1551 net/wireless/scan.c const struct element *elem, *sub; sub 1580 net/wireless/scan.c for_each_element(sub, elem->data + 1, elem->datalen - 1) { sub 1583 net/wireless/scan.c if (sub->id != 0 || sub->datalen < 4) { sub 1588 net/wireless/scan.c if (sub->data[0] != WLAN_EID_NON_TX_BSSID_CAP || sub 1589 net/wireless/scan.c sub->data[1] != 2) { sub 1600 net/wireless/scan.c sub, sub 232 scripts/basic/fixdep.c static int str_ends_with(const char *s, int slen, const char *sub) sub 234 scripts/basic/fixdep.c int sublen = strlen(sub); sub 239 scripts/basic/fixdep.c return !memcmp(s + slen - sublen, sub, sublen); sub 95 scripts/gcc-plugins/gcc-generate-gimple-pass.h .sub = NULL, sub 163 scripts/gcc-plugins/gcc-generate-ipa-pass.h .sub = NULL, sub 95 scripts/gcc-plugins/gcc-generate-rtl-pass.h .sub = NULL, sub 95 scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h .sub = NULL, sub 822 scripts/mod/modpost.c static int strrcmp(const char *s, const char *sub) sub 826 scripts/mod/modpost.c if (!s || !sub) sub 830 scripts/mod/modpost.c sublen = strlen(sub); sub 838 scripts/mod/modpost.c return memcmp(s + slen - sublen, sub, sublen); sub 1803 security/apparmor/apparmorfs.c struct aa_ns *sub; sub 1814 security/apparmor/apparmorfs.c list_for_each_entry(sub, &ns->sub_ns, base.list) { sub 1815 security/apparmor/apparmorfs.c mutex_lock_nested(&sub->lock, sub->level); sub 1816 security/apparmor/apparmorfs.c __aafs_ns_rmdir(sub); sub 1817 security/apparmor/apparmorfs.c mutex_unlock(&sub->lock); sub 1823 security/apparmor/apparmorfs.c sub = d_inode(ns_subns_dir(ns))->i_private; sub 1824 security/apparmor/apparmorfs.c aa_put_ns(sub); sub 1827 security/apparmor/apparmorfs.c sub = d_inode(ns_subload(ns))->i_private; sub 1828 security/apparmor/apparmorfs.c aa_put_ns(sub); sub 1831 security/apparmor/apparmorfs.c sub = d_inode(ns_subreplace(ns))->i_private; sub 1832 security/apparmor/apparmorfs.c aa_put_ns(sub); sub 1835 security/apparmor/apparmorfs.c sub = d_inode(ns_subremove(ns))->i_private; sub 1836 security/apparmor/apparmorfs.c aa_put_ns(sub); sub 1839 security/apparmor/apparmorfs.c sub = d_inode(ns_subrevision(ns))->i_private; sub 1840 security/apparmor/apparmorfs.c aa_put_ns(sub); sub 1912 security/apparmor/apparmorfs.c struct aa_ns *sub; sub 1944 security/apparmor/apparmorfs.c list_for_each_entry(sub, &ns->sub_ns, base.list) { sub 1945 security/apparmor/apparmorfs.c mutex_lock_nested(&sub->lock, sub->level); sub 1946 security/apparmor/apparmorfs.c error = __aafs_ns_mkdir(sub, ns_subns_dir(ns), NULL, NULL); sub 1947 security/apparmor/apparmorfs.c mutex_unlock(&sub->lock); sub 283 security/apparmor/include/label.h bool aa_label_is_subset(struct aa_label *set, struct aa_label *sub); sub 286 security/apparmor/include/label.h struct aa_label *sub); sub 66 security/apparmor/include/lib.h static inline bool aa_strneq(const char *str, const char *sub, int len) sub 68 security/apparmor/include/lib.h return !strncmp(str, sub, len) && !str[len]; sub 504 security/apparmor/label.c struct aa_label *sub) sub 510 security/apparmor/label.c AA_BUG(!sub); sub 512 security/apparmor/label.c AA_BUG(I->j > sub->size); sub 514 security/apparmor/label.c while (I->j < sub->size && I->i < set->size) { sub 515 security/apparmor/label.c int res = profile_cmp(sub->vec[I->j], set->vec[I->i]); sub 523 security/apparmor/label.c return sub->vec[(I->j)++]; sub 526 security/apparmor/label.c if (I->j < sub->size) sub 527 security/apparmor/label.c return sub->vec[(I->j)++]; sub 540 security/apparmor/label.c bool aa_label_is_subset(struct aa_label *set, struct aa_label *sub) sub 545 security/apparmor/label.c AA_BUG(!sub); sub 547 security/apparmor/label.c if (sub == set) sub 550 security/apparmor/label.c return __aa_label_next_not_in_set(&i, set, sub) == NULL; sub 1090 sound/drivers/aloop.c int sub, sub 1093 sound/drivers/aloop.c struct loopback_cable *cable = loopback->cables[sub][num]; sub 1095 sound/drivers/aloop.c snd_iprintf(buffer, "Cable %i substream %i:\n", num, sub); sub 1111 sound/drivers/aloop.c int sub, num; sub 1116 sound/drivers/aloop.c for (sub = 0; sub < MAX_PCM_SUBSTREAMS; sub++) sub 1117 sound/drivers/aloop.c print_substream_info(buffer, loopback, sub, num); sub 142 sound/soc/fsl/fsl_esai.c u32 psr, pm = 999, maxfp, prod, sub, savesub, i, j; sub 179 sound/soc/fsl/fsl_esai.c sub = 0; sub 181 sound/soc/fsl/fsl_esai.c sub = prod - ratio; sub 183 sound/soc/fsl/fsl_esai.c sub = ratio - prod; sub 188 sound/soc/fsl/fsl_esai.c sub = sub * 1000 / ratio; sub 189 sound/soc/fsl/fsl_esai.c if (sub < savesub) { sub 190 sound/soc/fsl/fsl_esai.c savesub = sub; sub 337 sound/soc/fsl/fsl_esai.c u32 sub, ratio = hck_rate / freq; sub 345 sound/soc/fsl/fsl_esai.c sub = ratio * freq - hck_rate; sub 347 sound/soc/fsl/fsl_esai.c sub = hck_rate - ratio * freq; sub 349 sound/soc/fsl/fsl_esai.c sub = 0; sub 352 sound/soc/fsl/fsl_esai.c if (sub != 0 && hck_rate / sub < 1000) { sub 1112 sound/soc/fsl/fsl_spdif.c u64 rate_ideal, rate_actual, sub; sub 1141 sound/soc/fsl/fsl_spdif.c sub = (u64)(arate - rate[index]) * 100000; sub 1142 sound/soc/fsl/fsl_spdif.c do_div(sub, rate[index]); sub 1143 sound/soc/fsl/fsl_spdif.c if (sub >= savesub) sub 1145 sound/soc/fsl/fsl_spdif.c savesub = sub; sub 1151 sound/soc/fsl/fsl_spdif.c sub = (u64)(rate[index] - arate) * 100000; sub 1152 sound/soc/fsl/fsl_spdif.c do_div(sub, rate[index]); sub 1153 sound/soc/fsl/fsl_spdif.c if (sub >= savesub) sub 1155 sound/soc/fsl/fsl_spdif.c savesub = sub; sub 683 sound/soc/fsl/fsl_ssi.c u64 sub, savesub = 100000; sub 731 sound/soc/fsl/fsl_ssi.c sub = 0; sub 733 sound/soc/fsl/fsl_ssi.c sub = freq - afreq; sub 735 sound/soc/fsl/fsl_ssi.c sub = afreq - freq; sub 740 sound/soc/fsl/fsl_ssi.c sub *= 100000; sub 741 sound/soc/fsl/fsl_ssi.c do_div(sub, freq); sub 743 sound/soc/fsl/fsl_ssi.c if (sub < savesub && !(i == 0 && psr == 0 && div2 == 0)) { sub 745 sound/soc/fsl/fsl_ssi.c savesub = sub; sub 27 sound/soc/uniphier/aio-compress.c struct uniphier_aio_sub *sub = &aio->sub[compr->direction]; sub 35 sound/soc/uniphier/aio-compress.c sub->compr_area = kzalloc(size, GFP_KERNEL); sub 36 sound/soc/uniphier/aio-compress.c if (!sub->compr_area) sub 39 sound/soc/uniphier/aio-compress.c if (sub->swm->dir == PORT_DIR_OUTPUT) sub 42 sound/soc/uniphier/aio-compress.c sub->compr_addr = dma_map_single(dev, sub->compr_area, size, dma_dir); sub 43 sound/soc/uniphier/aio-compress.c if (dma_mapping_error(dev, sub->compr_addr)) { sub 44 sound/soc/uniphier/aio-compress.c kfree(sub->compr_area); sub 45 sound/soc/uniphier/aio-compress.c sub->compr_area = NULL; sub 50 sound/soc/uniphier/aio-compress.c sub->compr_bytes = size; sub 60 sound/soc/uniphier/aio-compress.c struct uniphier_aio_sub *sub = &aio->sub[compr->direction]; sub 63 sound/soc/uniphier/aio-compress.c if (sub->swm->dir == PORT_DIR_OUTPUT) sub 66 sound/soc/uniphier/aio-compress.c dma_unmap_single(dev, sub->compr_addr, sub->compr_bytes, dma_dir); sub 67 sound/soc/uniphier/aio-compress.c kfree(sub->compr_area); sub 68 sound/soc/uniphier/aio-compress.c sub->compr_area = NULL; sub 77 sound/soc/uniphier/aio-compress.c struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; sub 80 sound/soc/uniphier/aio-compress.c if (sub->cstream) sub 83 sound/soc/uniphier/aio-compress.c sub->cstream = cstream; sub 84 sound/soc/uniphier/aio-compress.c sub->pass_through = 1; sub 85 sound/soc/uniphier/aio-compress.c sub->use_mmap = false; sub 91 sound/soc/uniphier/aio-compress.c ret = aio_init(sub); sub 102 sound/soc/uniphier/aio-compress.c struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; sub 112 sound/soc/uniphier/aio-compress.c sub->cstream = NULL; sub 122 sound/soc/uniphier/aio-compress.c struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; sub 124 sound/soc/uniphier/aio-compress.c *params = sub->cparams.codec; sub 134 sound/soc/uniphier/aio-compress.c struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; sub 150 sound/soc/uniphier/aio-compress.c sub->iec_pc = IEC61937_PC_AAC; sub 152 sound/soc/uniphier/aio-compress.c sub->cparams = *params; sub 153 sound/soc/uniphier/aio-compress.c sub->setting = 1; sub 155 sound/soc/uniphier/aio-compress.c aio_port_reset(sub); sub 156 sound/soc/uniphier/aio-compress.c aio_src_reset(sub); sub 169 sound/soc/uniphier/aio-compress.c struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; sub 171 sound/soc/uniphier/aio-compress.c sub->setting = 0; sub 181 sound/soc/uniphier/aio-compress.c struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; sub 186 sound/soc/uniphier/aio-compress.c ret = aiodma_ch_set_param(sub); sub 190 sound/soc/uniphier/aio-compress.c spin_lock_irqsave(&sub->lock, flags); sub 191 sound/soc/uniphier/aio-compress.c ret = aiodma_rb_set_buffer(sub, sub->compr_addr, sub 192 sound/soc/uniphier/aio-compress.c sub->compr_addr + sub->compr_bytes, sub 194 sound/soc/uniphier/aio-compress.c spin_unlock_irqrestore(&sub->lock, flags); sub 198 sound/soc/uniphier/aio-compress.c ret = aio_port_set_param(sub, sub->pass_through, &sub->params); sub 201 sound/soc/uniphier/aio-compress.c ret = aio_oport_set_stream_type(sub, sub->iec_pc); sub 204 sound/soc/uniphier/aio-compress.c aio_port_set_enable(sub, 1); sub 206 sound/soc/uniphier/aio-compress.c ret = aio_if_set_param(sub, sub->pass_through); sub 219 sound/soc/uniphier/aio-compress.c struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; sub 224 sound/soc/uniphier/aio-compress.c spin_lock_irqsave(&sub->lock, flags); sub 227 sound/soc/uniphier/aio-compress.c aiodma_rb_sync(sub, sub->compr_addr, sub->compr_bytes, bytes); sub 228 sound/soc/uniphier/aio-compress.c aiodma_ch_set_enable(sub, 1); sub 229 sound/soc/uniphier/aio-compress.c sub->running = 1; sub 233 sound/soc/uniphier/aio-compress.c sub->running = 0; sub 234 sound/soc/uniphier/aio-compress.c aiodma_ch_set_enable(sub, 0); sub 241 sound/soc/uniphier/aio-compress.c spin_unlock_irqrestore(&sub->lock, flags); sub 252 sound/soc/uniphier/aio-compress.c struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; sub 257 sound/soc/uniphier/aio-compress.c spin_lock_irqsave(&sub->lock, flags); sub 259 sound/soc/uniphier/aio-compress.c aiodma_rb_sync(sub, sub->compr_addr, sub->compr_bytes, bytes); sub 261 sound/soc/uniphier/aio-compress.c if (sub->swm->dir == PORT_DIR_OUTPUT) { sub 262 sound/soc/uniphier/aio-compress.c pos = sub->rd_offs; sub 264 sound/soc/uniphier/aio-compress.c tstamp->copied_total = sub->rd_total / 2; sub 266 sound/soc/uniphier/aio-compress.c pos = sub->wr_offs; sub 267 sound/soc/uniphier/aio-compress.c tstamp->copied_total = sub->rd_total; sub 271 sound/soc/uniphier/aio-compress.c spin_unlock_irqrestore(&sub->lock, flags); sub 276 sound/soc/uniphier/aio-compress.c static int aio_compr_send_to_hw(struct uniphier_aio_sub *sub, sub 280 sound/soc/uniphier/aio-compress.c u32 *dstbuf = (u32 *)(sub->compr_area + sub->wr_offs); sub 297 sound/soc/uniphier/aio-compress.c sub->iec_header = true; sub 301 sound/soc/uniphier/aio-compress.c if (sub->iec_header && sub->iec_pc != pc) { sub 303 sound/soc/uniphier/aio-compress.c sub->iec_pc = pc; sub 304 sound/soc/uniphier/aio-compress.c ret = aio_oport_set_stream_type(sub, pc); sub 308 sound/soc/uniphier/aio-compress.c sub->iec_header = false; sub 326 sound/soc/uniphier/aio-compress.c struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; sub 327 sound/soc/uniphier/aio-compress.c size_t cnt = min_t(size_t, count, aio_rb_space_to_end(sub) / 2); sub 336 sound/soc/uniphier/aio-compress.c if (sub->swm->dir == PORT_DIR_OUTPUT) { sub 337 sound/soc/uniphier/aio-compress.c dma_addr_t dmapos = sub->compr_addr + sub->wr_offs; sub 343 sound/soc/uniphier/aio-compress.c ret = aio_compr_send_to_hw(sub, buf, s); sub 346 sound/soc/uniphier/aio-compress.c dma_addr_t dmapos = sub->compr_addr + sub->rd_offs; sub 351 sound/soc/uniphier/aio-compress.c ret = copy_to_user(buf, sub->compr_area + sub->rd_offs, s); sub 357 sound/soc/uniphier/aio-compress.c spin_lock_irqsave(&sub->lock, flags); sub 359 sound/soc/uniphier/aio-compress.c sub->threshold = 2 * bytes; sub 360 sound/soc/uniphier/aio-compress.c aiodma_rb_set_threshold(sub, sub->compr_bytes, 2 * bytes); sub 362 sound/soc/uniphier/aio-compress.c if (sub->swm->dir == PORT_DIR_OUTPUT) { sub 363 sound/soc/uniphier/aio-compress.c sub->wr_offs += s; sub 364 sound/soc/uniphier/aio-compress.c if (sub->wr_offs >= sub->compr_bytes) sub 365 sound/soc/uniphier/aio-compress.c sub->wr_offs -= sub->compr_bytes; sub 367 sound/soc/uniphier/aio-compress.c sub->rd_offs += s; sub 368 sound/soc/uniphier/aio-compress.c if (sub->rd_offs >= sub->compr_bytes) sub 369 sound/soc/uniphier/aio-compress.c sub->rd_offs -= sub->compr_bytes; sub 371 sound/soc/uniphier/aio-compress.c aiodma_rb_sync(sub, sub->compr_addr, sub->compr_bytes, bytes); sub 373 sound/soc/uniphier/aio-compress.c spin_unlock_irqrestore(&sub->lock, flags); sub 53 sound/soc/uniphier/aio-core.c u64 aio_rb_cnt(struct uniphier_aio_sub *sub) sub 55 sound/soc/uniphier/aio-core.c return rb_cnt(sub->wr_offs, sub->rd_offs, sub->compr_bytes); sub 58 sound/soc/uniphier/aio-core.c u64 aio_rbt_cnt_to_end(struct uniphier_aio_sub *sub) sub 60 sound/soc/uniphier/aio-core.c return rb_cnt_to_end(sub->wr_offs, sub->rd_offs, sub->compr_bytes); sub 63 sound/soc/uniphier/aio-core.c u64 aio_rb_space(struct uniphier_aio_sub *sub) sub 65 sound/soc/uniphier/aio-core.c return rb_space(sub->wr_offs, sub->rd_offs, sub->compr_bytes); sub 68 sound/soc/uniphier/aio-core.c u64 aio_rb_space_to_end(struct uniphier_aio_sub *sub) sub 70 sound/soc/uniphier/aio-core.c return rb_space_to_end(sub->wr_offs, sub->rd_offs, sub->compr_bytes); sub 200 sound/soc/uniphier/aio-core.c int aio_init(struct uniphier_aio_sub *sub) sub 202 sound/soc/uniphier/aio-core.c struct device *dev = &sub->aio->chip->pdev->dev; sub 203 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 205 sound/soc/uniphier/aio-core.c regmap_write(r, A2RBNMAPCTR0(sub->swm->rb.hw), sub 206 sound/soc/uniphier/aio-core.c MAPCTR0_EN | sub->swm->rb.map); sub 207 sound/soc/uniphier/aio-core.c regmap_write(r, A2CHNMAPCTR0(sub->swm->ch.hw), sub 208 sound/soc/uniphier/aio-core.c MAPCTR0_EN | sub->swm->ch.map); sub 210 sound/soc/uniphier/aio-core.c switch (sub->swm->type) { sub 214 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_INPUT) { sub 215 sound/soc/uniphier/aio-core.c regmap_write(r, A2IIFNMAPCTR0(sub->swm->iif.hw), sub 216 sound/soc/uniphier/aio-core.c MAPCTR0_EN | sub->swm->iif.map); sub 217 sound/soc/uniphier/aio-core.c regmap_write(r, A2IPORTNMAPCTR0(sub->swm->iport.hw), sub 218 sound/soc/uniphier/aio-core.c MAPCTR0_EN | sub->swm->iport.map); sub 220 sound/soc/uniphier/aio-core.c regmap_write(r, A2OIFNMAPCTR0(sub->swm->oif.hw), sub 221 sound/soc/uniphier/aio-core.c MAPCTR0_EN | sub->swm->oif.map); sub 222 sound/soc/uniphier/aio-core.c regmap_write(r, A2OPORTNMAPCTR0(sub->swm->oport.hw), sub 223 sound/soc/uniphier/aio-core.c MAPCTR0_EN | sub->swm->oport.map); sub 227 sound/soc/uniphier/aio-core.c regmap_write(r, A2OIFNMAPCTR0(sub->swm->oif.hw), sub 228 sound/soc/uniphier/aio-core.c MAPCTR0_EN | sub->swm->oif.map); sub 229 sound/soc/uniphier/aio-core.c regmap_write(r, A2OPORTNMAPCTR0(sub->swm->oport.hw), sub 230 sound/soc/uniphier/aio-core.c MAPCTR0_EN | sub->swm->oport.map); sub 231 sound/soc/uniphier/aio-core.c regmap_write(r, A2CHNMAPCTR0(sub->swm->och.hw), sub 232 sound/soc/uniphier/aio-core.c MAPCTR0_EN | sub->swm->och.map); sub 233 sound/soc/uniphier/aio-core.c regmap_write(r, A2IIFNMAPCTR0(sub->swm->iif.hw), sub 234 sound/soc/uniphier/aio-core.c MAPCTR0_EN | sub->swm->iif.map); sub 237 sound/soc/uniphier/aio-core.c dev_err(dev, "Unknown port type %d.\n", sub->swm->type); sub 250 sound/soc/uniphier/aio-core.c void aio_port_reset(struct uniphier_aio_sub *sub) sub 252 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 254 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_OUTPUT) { sub 255 sound/soc/uniphier/aio-core.c regmap_write(r, AOUTRSTCTR0, BIT(sub->swm->oport.map)); sub 256 sound/soc/uniphier/aio-core.c regmap_write(r, AOUTRSTCTR1, BIT(sub->swm->oport.map)); sub 258 sound/soc/uniphier/aio-core.c regmap_update_bits(r, IPORTMXRSTCTR(sub->swm->iport.map), sub 261 sound/soc/uniphier/aio-core.c regmap_update_bits(r, IPORTMXRSTCTR(sub->swm->iport.map), sub 278 sound/soc/uniphier/aio-core.c static int aio_port_set_ch(struct uniphier_aio_sub *sub) sub 280 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 294 sound/soc/uniphier/aio-core.c switch (params_channels(&sub->params)) { sub 309 sound/soc/uniphier/aio-core.c regmap_update_bits(r, OPORTMXTYSLOTCTR(sub->swm->oport.map, i), sub 311 sound/soc/uniphier/aio-core.c regmap_update_bits(r, OPORTMXTYSLOTCTR(sub->swm->oport.map, i), sub 330 sound/soc/uniphier/aio-core.c static int aio_port_set_rate(struct uniphier_aio_sub *sub, int rate) sub 332 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 333 sound/soc/uniphier/aio-core.c struct device *dev = &sub->aio->chip->pdev->dev; sub 336 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_OUTPUT) { sub 382 sound/soc/uniphier/aio-core.c regmap_update_bits(r, OPORTMXCTR1(sub->swm->oport.map), sub 430 sound/soc/uniphier/aio-core.c regmap_update_bits(r, IPORTMXCTR1(sub->swm->iport.map), sub 449 sound/soc/uniphier/aio-core.c static int aio_port_set_fmt(struct uniphier_aio_sub *sub) sub 451 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 452 sound/soc/uniphier/aio-core.c struct device *dev = &sub->aio->chip->pdev->dev; sub 455 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_OUTPUT) { sub 456 sound/soc/uniphier/aio-core.c switch (sub->aio->fmt) { sub 468 sound/soc/uniphier/aio-core.c sub->aio->fmt); sub 473 sound/soc/uniphier/aio-core.c regmap_update_bits(r, OPORTMXCTR1(sub->swm->oport.map), sub 477 sound/soc/uniphier/aio-core.c switch (sub->aio->fmt) { sub 489 sound/soc/uniphier/aio-core.c sub->aio->fmt); sub 495 sound/soc/uniphier/aio-core.c regmap_update_bits(r, IPORTMXCTR1(sub->swm->iport.map), sub 514 sound/soc/uniphier/aio-core.c static int aio_port_set_clk(struct uniphier_aio_sub *sub) sub 516 sound/soc/uniphier/aio-core.c struct uniphier_aio_chip *chip = sub->aio->chip; sub 517 sound/soc/uniphier/aio-core.c struct device *dev = &sub->aio->chip->pdev->dev; sub 518 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 531 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_OUTPUT) { sub 532 sound/soc/uniphier/aio-core.c if (sub->swm->type == PORT_TYPE_I2S) { sub 533 sound/soc/uniphier/aio-core.c if (sub->aio->pll_out >= ARRAY_SIZE(v_pll)) { sub 535 sound/soc/uniphier/aio-core.c sub->aio->pll_out); sub 538 sound/soc/uniphier/aio-core.c if (sub->aio->plldiv >= ARRAY_SIZE(v_div)) { sub 540 sound/soc/uniphier/aio-core.c sub->aio->plldiv); sub 544 sound/soc/uniphier/aio-core.c v = v_pll[sub->aio->pll_out] | sub 546 sound/soc/uniphier/aio-core.c v_div[sub->aio->plldiv]; sub 548 sound/soc/uniphier/aio-core.c switch (chip->plls[sub->aio->pll_out].freq) { sub 558 sound/soc/uniphier/aio-core.c } else if (sub->swm->type == PORT_TYPE_EVE) { sub 563 sound/soc/uniphier/aio-core.c } else if (sub->swm->type == PORT_TYPE_SPDIF) { sub 564 sound/soc/uniphier/aio-core.c if (sub->aio->pll_out >= ARRAY_SIZE(v_pll)) { sub 566 sound/soc/uniphier/aio-core.c sub->aio->pll_out); sub 569 sound/soc/uniphier/aio-core.c v = v_pll[sub->aio->pll_out] | sub 573 sound/soc/uniphier/aio-core.c switch (chip->plls[sub->aio->pll_out].freq) { sub 589 sound/soc/uniphier/aio-core.c regmap_write(r, OPORTMXCTR2(sub->swm->oport.map), v); sub 595 sound/soc/uniphier/aio-core.c regmap_write(r, IPORTMXCTR2(sub->swm->iport.map), v); sub 613 sound/soc/uniphier/aio-core.c int aio_port_set_param(struct uniphier_aio_sub *sub, int pass_through, sub 616 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 622 sound/soc/uniphier/aio-core.c if (sub->swm->type == PORT_TYPE_EVE || sub 623 sound/soc/uniphier/aio-core.c sub->swm->type == PORT_TYPE_CONV) { sub 629 sound/soc/uniphier/aio-core.c ret = aio_port_set_ch(sub); sub 633 sound/soc/uniphier/aio-core.c ret = aio_port_set_rate(sub, rate); sub 637 sound/soc/uniphier/aio-core.c ret = aio_port_set_fmt(sub); sub 642 sound/soc/uniphier/aio-core.c ret = aio_port_set_clk(sub); sub 646 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_OUTPUT) { sub 657 sound/soc/uniphier/aio-core.c regmap_write(r, OPORTMXCTR3(sub->swm->oport.map), v); sub 659 sound/soc/uniphier/aio-core.c regmap_write(r, IPORTMXACLKSEL0EX(sub->swm->iport.map), sub 661 sound/soc/uniphier/aio-core.c regmap_write(r, IPORTMXEXNOE(sub->swm->iport.map), sub 675 sound/soc/uniphier/aio-core.c void aio_port_set_enable(struct uniphier_aio_sub *sub, int enable) sub 677 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 679 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_OUTPUT) { sub 680 sound/soc/uniphier/aio-core.c regmap_write(r, OPORTMXPATH(sub->swm->oport.map), sub 681 sound/soc/uniphier/aio-core.c sub->swm->oif.map); sub 683 sound/soc/uniphier/aio-core.c regmap_update_bits(r, OPORTMXMASK(sub->swm->oport.map), sub 694 sound/soc/uniphier/aio-core.c regmap_write(r, AOUTENCTR0, BIT(sub->swm->oport.map)); sub 696 sound/soc/uniphier/aio-core.c regmap_write(r, AOUTENCTR1, BIT(sub->swm->oport.map)); sub 698 sound/soc/uniphier/aio-core.c regmap_update_bits(r, IPORTMXMASK(sub->swm->iport.map), sub 706 sound/soc/uniphier/aio-core.c IPORTMXCTR2(sub->swm->iport.map), sub 711 sound/soc/uniphier/aio-core.c IPORTMXCTR2(sub->swm->iport.map), sub 723 sound/soc/uniphier/aio-core.c int aio_port_get_volume(struct uniphier_aio_sub *sub) sub 725 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 728 sound/soc/uniphier/aio-core.c regmap_read(r, OPORTMXTYVOLGAINSTATUS(sub->swm->oport.map, 0), &v); sub 742 sound/soc/uniphier/aio-core.c void aio_port_set_volume(struct uniphier_aio_sub *sub, int vol) sub 744 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 745 sound/soc/uniphier/aio-core.c int oport_map = sub->swm->oport.map; sub 748 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_INPUT) sub 751 sound/soc/uniphier/aio-core.c cur = aio_port_get_volume(sub); sub 753 sound/soc/uniphier/aio-core.c fs = params_rate(&sub->params); sub 786 sound/soc/uniphier/aio-core.c int aio_if_set_param(struct uniphier_aio_sub *sub, int pass_through) sub 788 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 791 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_OUTPUT) { sub 796 sound/soc/uniphier/aio-core.c switch (params_channels(&sub->params)) { sub 812 sound/soc/uniphier/aio-core.c regmap_write(r, PBOUTMXCTR0(sub->swm->oif.map), v); sub 813 sound/soc/uniphier/aio-core.c regmap_write(r, PBOUTMXCTR1(sub->swm->oif.map), 0); sub 815 sound/soc/uniphier/aio-core.c regmap_write(r, PBINMXCTR(sub->swm->iif.map), sub 818 sound/soc/uniphier/aio-core.c (sub->swm->iport.map << PBINMXCTR_PBINSEL_SHIFT) | sub 836 sound/soc/uniphier/aio-core.c int aio_oport_set_stream_type(struct uniphier_aio_sub *sub, sub 839 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 883 sound/soc/uniphier/aio-core.c regmap_write(r, OPORTMXREPET(sub->swm->oport.map), repet); sub 884 sound/soc/uniphier/aio-core.c regmap_write(r, OPORTMXPAUDAT(sub->swm->oport.map), pause); sub 897 sound/soc/uniphier/aio-core.c void aio_src_reset(struct uniphier_aio_sub *sub) sub 899 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 901 sound/soc/uniphier/aio-core.c if (sub->swm->dir != PORT_DIR_OUTPUT) sub 904 sound/soc/uniphier/aio-core.c regmap_write(r, AOUTSRCRSTCTR0, BIT(sub->swm->oport.map)); sub 905 sound/soc/uniphier/aio-core.c regmap_write(r, AOUTSRCRSTCTR1, BIT(sub->swm->oport.map)); sub 919 sound/soc/uniphier/aio-core.c int aio_src_set_param(struct uniphier_aio_sub *sub, sub 922 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 925 sound/soc/uniphier/aio-core.c if (sub->swm->dir != PORT_DIR_OUTPUT) sub 928 sound/soc/uniphier/aio-core.c regmap_write(r, OPORTMXSRC1CTR(sub->swm->oport.map), sub 954 sound/soc/uniphier/aio-core.c regmap_write(r, OPORTMXRATE_I(sub->swm->oport.map), sub 957 sound/soc/uniphier/aio-core.c regmap_update_bits(r, OPORTMXRATE_I(sub->swm->oport.map), sub 964 sound/soc/uniphier/aio-core.c int aio_srcif_set_param(struct uniphier_aio_sub *sub) sub 966 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 968 sound/soc/uniphier/aio-core.c regmap_write(r, PBINMXCTR(sub->swm->iif.map), sub 971 sound/soc/uniphier/aio-core.c (sub->swm->oport.map << PBINMXCTR_PBINSEL_SHIFT) | sub 978 sound/soc/uniphier/aio-core.c int aio_srcch_set_param(struct uniphier_aio_sub *sub) sub 980 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 982 sound/soc/uniphier/aio-core.c regmap_write(r, CDA2D_CHMXCTRL1(sub->swm->och.map), sub 985 sound/soc/uniphier/aio-core.c regmap_write(r, CDA2D_CHMXSRCAMODE(sub->swm->och.map), sub 990 sound/soc/uniphier/aio-core.c regmap_write(r, CDA2D_CHMXDSTAMODE(sub->swm->och.map), sub 994 sound/soc/uniphier/aio-core.c (sub->swm->och.map << CDA2D_CHMXAMODE_RSSEL_SHIFT)); sub 999 sound/soc/uniphier/aio-core.c void aio_srcch_set_enable(struct uniphier_aio_sub *sub, int enable) sub 1001 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 1010 sound/soc/uniphier/aio-core.c v | BIT(sub->swm->och.map)); sub 1013 sound/soc/uniphier/aio-core.c int aiodma_ch_set_param(struct uniphier_aio_sub *sub) sub 1015 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 1018 sound/soc/uniphier/aio-core.c regmap_write(r, CDA2D_CHMXCTRL1(sub->swm->ch.map), sub 1024 sound/soc/uniphier/aio-core.c (sub->swm->rb.map << CDA2D_CHMXAMODE_RSSEL_SHIFT); sub 1025 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_OUTPUT) sub 1026 sound/soc/uniphier/aio-core.c regmap_write(r, CDA2D_CHMXSRCAMODE(sub->swm->ch.map), v); sub 1028 sound/soc/uniphier/aio-core.c regmap_write(r, CDA2D_CHMXDSTAMODE(sub->swm->ch.map), v); sub 1033 sound/soc/uniphier/aio-core.c void aiodma_ch_set_enable(struct uniphier_aio_sub *sub, int enable) sub 1035 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 1039 sound/soc/uniphier/aio-core.c CDA2D_STRT0_STOP_START | BIT(sub->swm->ch.map)); sub 1042 sound/soc/uniphier/aio-core.c BIT(sub->swm->rb.map), sub 1043 sound/soc/uniphier/aio-core.c BIT(sub->swm->rb.map)); sub 1046 sound/soc/uniphier/aio-core.c CDA2D_STRT0_STOP_STOP | BIT(sub->swm->ch.map)); sub 1049 sound/soc/uniphier/aio-core.c BIT(sub->swm->rb.map), sub 1054 sound/soc/uniphier/aio-core.c static u64 aiodma_rb_get_rp(struct uniphier_aio_sub *sub) sub 1056 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 1061 sound/soc/uniphier/aio-core.c CDA2D_RDPTRLOAD_LSFLAG_STORE | BIT(sub->swm->rb.map)); sub 1064 sound/soc/uniphier/aio-core.c regmap_read(r, CDA2D_RBMXRDPTR(sub->swm->rb.map), &pos_l); sub 1066 sound/soc/uniphier/aio-core.c regmap_read(r, CDA2D_RBMXRDPTR(sub->swm->rb.map), &pos_l); sub 1067 sound/soc/uniphier/aio-core.c regmap_read(r, CDA2D_RBMXRDPTRU(sub->swm->rb.map), &pos_u); sub 1073 sound/soc/uniphier/aio-core.c static void aiodma_rb_set_rp(struct uniphier_aio_sub *sub, u64 pos) sub 1075 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 1079 sound/soc/uniphier/aio-core.c regmap_write(r, CDA2D_RBMXRDPTR(sub->swm->rb.map), (u32)pos); sub 1080 sound/soc/uniphier/aio-core.c regmap_write(r, CDA2D_RBMXRDPTRU(sub->swm->rb.map), (u32)(pos >> 32)); sub 1081 sound/soc/uniphier/aio-core.c regmap_write(r, CDA2D_RDPTRLOAD, BIT(sub->swm->rb.map)); sub 1084 sound/soc/uniphier/aio-core.c regmap_read(r, CDA2D_RBMXRDPTR(sub->swm->rb.map), &tmp); sub 1087 sound/soc/uniphier/aio-core.c static u64 aiodma_rb_get_wp(struct uniphier_aio_sub *sub) sub 1089 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 1094 sound/soc/uniphier/aio-core.c CDA2D_WRPTRLOAD_LSFLAG_STORE | BIT(sub->swm->rb.map)); sub 1097 sound/soc/uniphier/aio-core.c regmap_read(r, CDA2D_RBMXWRPTR(sub->swm->rb.map), &pos_l); sub 1099 sound/soc/uniphier/aio-core.c regmap_read(r, CDA2D_RBMXWRPTR(sub->swm->rb.map), &pos_l); sub 1100 sound/soc/uniphier/aio-core.c regmap_read(r, CDA2D_RBMXWRPTRU(sub->swm->rb.map), &pos_u); sub 1106 sound/soc/uniphier/aio-core.c static void aiodma_rb_set_wp(struct uniphier_aio_sub *sub, u64 pos) sub 1108 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 1112 sound/soc/uniphier/aio-core.c regmap_write(r, CDA2D_RBMXWRPTR(sub->swm->rb.map), sub 1114 sound/soc/uniphier/aio-core.c regmap_write(r, CDA2D_RBMXWRPTRU(sub->swm->rb.map), sub 1116 sound/soc/uniphier/aio-core.c regmap_write(r, CDA2D_WRPTRLOAD, BIT(sub->swm->rb.map)); sub 1119 sound/soc/uniphier/aio-core.c regmap_read(r, CDA2D_RBMXWRPTR(sub->swm->rb.map), &tmp); sub 1122 sound/soc/uniphier/aio-core.c int aiodma_rb_set_threshold(struct uniphier_aio_sub *sub, u64 size, u32 th) sub 1124 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 1129 sound/soc/uniphier/aio-core.c regmap_write(r, CDA2D_RBMXBTH(sub->swm->rb.map), th); sub 1130 sound/soc/uniphier/aio-core.c regmap_write(r, CDA2D_RBMXRTH(sub->swm->rb.map), th); sub 1135 sound/soc/uniphier/aio-core.c int aiodma_rb_set_buffer(struct uniphier_aio_sub *sub, u64 start, u64 end, sub 1138 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 1145 sound/soc/uniphier/aio-core.c regmap_write(r, CDA2D_RBMXCNFG(sub->swm->rb.map), 0); sub 1146 sound/soc/uniphier/aio-core.c regmap_write(r, CDA2D_RBMXBGNADRS(sub->swm->rb.map), sub 1148 sound/soc/uniphier/aio-core.c regmap_write(r, CDA2D_RBMXBGNADRSU(sub->swm->rb.map), sub 1150 sound/soc/uniphier/aio-core.c regmap_write(r, CDA2D_RBMXENDADRS(sub->swm->rb.map), sub 1152 sound/soc/uniphier/aio-core.c regmap_write(r, CDA2D_RBMXENDADRSU(sub->swm->rb.map), sub 1155 sound/soc/uniphier/aio-core.c regmap_write(r, CDA2D_RBADRSLOAD, BIT(sub->swm->rb.map)); sub 1157 sound/soc/uniphier/aio-core.c ret = aiodma_rb_set_threshold(sub, size, 2 * period); sub 1161 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_OUTPUT) { sub 1162 sound/soc/uniphier/aio-core.c aiodma_rb_set_rp(sub, start); sub 1163 sound/soc/uniphier/aio-core.c aiodma_rb_set_wp(sub, end - period); sub 1165 sound/soc/uniphier/aio-core.c regmap_update_bits(r, CDA2D_RBMXIE(sub->swm->rb.map), sub 1169 sound/soc/uniphier/aio-core.c aiodma_rb_set_rp(sub, end - period); sub 1170 sound/soc/uniphier/aio-core.c aiodma_rb_set_wp(sub, start); sub 1172 sound/soc/uniphier/aio-core.c regmap_update_bits(r, CDA2D_RBMXIE(sub->swm->rb.map), sub 1177 sound/soc/uniphier/aio-core.c sub->threshold = 2 * period; sub 1178 sound/soc/uniphier/aio-core.c sub->rd_offs = 0; sub 1179 sound/soc/uniphier/aio-core.c sub->wr_offs = 0; sub 1180 sound/soc/uniphier/aio-core.c sub->rd_org = 0; sub 1181 sound/soc/uniphier/aio-core.c sub->wr_org = 0; sub 1182 sound/soc/uniphier/aio-core.c sub->rd_total = 0; sub 1183 sound/soc/uniphier/aio-core.c sub->wr_total = 0; sub 1188 sound/soc/uniphier/aio-core.c void aiodma_rb_sync(struct uniphier_aio_sub *sub, u64 start, u64 size, sub 1191 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_OUTPUT) { sub 1192 sound/soc/uniphier/aio-core.c sub->rd_offs = aiodma_rb_get_rp(sub) - start; sub 1194 sound/soc/uniphier/aio-core.c if (sub->use_mmap) { sub 1195 sound/soc/uniphier/aio-core.c sub->threshold = 2 * period; sub 1196 sound/soc/uniphier/aio-core.c aiodma_rb_set_threshold(sub, size, 2 * period); sub 1198 sound/soc/uniphier/aio-core.c sub->wr_offs = sub->rd_offs - period; sub 1199 sound/soc/uniphier/aio-core.c if (sub->rd_offs < period) sub 1200 sound/soc/uniphier/aio-core.c sub->wr_offs += size; sub 1202 sound/soc/uniphier/aio-core.c aiodma_rb_set_wp(sub, sub->wr_offs + start); sub 1204 sound/soc/uniphier/aio-core.c sub->wr_offs = aiodma_rb_get_wp(sub) - start; sub 1206 sound/soc/uniphier/aio-core.c if (sub->use_mmap) { sub 1207 sound/soc/uniphier/aio-core.c sub->threshold = 2 * period; sub 1208 sound/soc/uniphier/aio-core.c aiodma_rb_set_threshold(sub, size, 2 * period); sub 1210 sound/soc/uniphier/aio-core.c sub->rd_offs = sub->wr_offs - period; sub 1211 sound/soc/uniphier/aio-core.c if (sub->wr_offs < period) sub 1212 sound/soc/uniphier/aio-core.c sub->rd_offs += size; sub 1214 sound/soc/uniphier/aio-core.c aiodma_rb_set_rp(sub, sub->rd_offs + start); sub 1217 sound/soc/uniphier/aio-core.c sub->rd_total += sub->rd_offs - sub->rd_org; sub 1218 sound/soc/uniphier/aio-core.c if (sub->rd_offs < sub->rd_org) sub 1219 sound/soc/uniphier/aio-core.c sub->rd_total += size; sub 1220 sound/soc/uniphier/aio-core.c sub->wr_total += sub->wr_offs - sub->wr_org; sub 1221 sound/soc/uniphier/aio-core.c if (sub->wr_offs < sub->wr_org) sub 1222 sound/soc/uniphier/aio-core.c sub->wr_total += size; sub 1224 sound/soc/uniphier/aio-core.c sub->rd_org = sub->rd_offs; sub 1225 sound/soc/uniphier/aio-core.c sub->wr_org = sub->wr_offs; sub 1228 sound/soc/uniphier/aio-core.c bool aiodma_rb_is_irq(struct uniphier_aio_sub *sub) sub 1230 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 1233 sound/soc/uniphier/aio-core.c regmap_read(r, CDA2D_RBMXIR(sub->swm->rb.map), &ir); sub 1235 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_OUTPUT) sub 1241 sound/soc/uniphier/aio-core.c void aiodma_rb_clear_irq(struct uniphier_aio_sub *sub) sub 1243 sound/soc/uniphier/aio-core.c struct regmap *r = sub->aio->chip->regmap; sub 1245 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_OUTPUT) sub 1246 sound/soc/uniphier/aio-core.c regmap_write(r, CDA2D_RBMXIR(sub->swm->rb.map), sub 1249 sound/soc/uniphier/aio-core.c regmap_write(r, CDA2D_RBMXIR(sub->swm->rb.map), sub 52 sound/soc/uniphier/aio-cpu.c struct uniphier_aio_sub *sub = &chip->aios[i].sub[0]; sub 54 sound/soc/uniphier/aio-cpu.c if (!sub->swm) sub 57 sound/soc/uniphier/aio-cpu.c if (sub->swm->oport.hw == oport_hw) sub 58 sound/soc/uniphier/aio-cpu.c return sub; sub 258 sound/soc/uniphier/aio-cpu.c struct uniphier_aio_sub *sub = &aio->sub[substream->stream]; sub 261 sound/soc/uniphier/aio-cpu.c sub->substream = substream; sub 262 sound/soc/uniphier/aio-cpu.c sub->pass_through = 0; sub 263 sound/soc/uniphier/aio-cpu.c sub->use_mmap = true; sub 265 sound/soc/uniphier/aio-cpu.c ret = aio_init(sub); sub 276 sound/soc/uniphier/aio-cpu.c struct uniphier_aio_sub *sub = &aio->sub[substream->stream]; sub 278 sound/soc/uniphier/aio-cpu.c sub->substream = NULL; sub 286 sound/soc/uniphier/aio-cpu.c struct uniphier_aio_sub *sub = &aio->sub[substream->stream]; sub 310 sound/soc/uniphier/aio-cpu.c sub->params = *params; sub 311 sound/soc/uniphier/aio-cpu.c sub->setting = 1; sub 313 sound/soc/uniphier/aio-cpu.c aio_port_reset(sub); sub 314 sound/soc/uniphier/aio-cpu.c aio_port_set_volume(sub, sub->vol); sub 315 sound/soc/uniphier/aio-cpu.c aio_src_reset(sub); sub 324 sound/soc/uniphier/aio-cpu.c struct uniphier_aio_sub *sub = &aio->sub[substream->stream]; sub 326 sound/soc/uniphier/aio-cpu.c sub->setting = 0; sub 335 sound/soc/uniphier/aio-cpu.c struct uniphier_aio_sub *sub = &aio->sub[substream->stream]; sub 338 sound/soc/uniphier/aio-cpu.c ret = aio_port_set_param(sub, sub->pass_through, &sub->params); sub 341 sound/soc/uniphier/aio-cpu.c ret = aio_src_set_param(sub, &sub->params); sub 344 sound/soc/uniphier/aio-cpu.c aio_port_set_enable(sub, 1); sub 346 sound/soc/uniphier/aio-cpu.c ret = aio_if_set_param(sub, sub->pass_through); sub 350 sound/soc/uniphier/aio-cpu.c if (sub->swm->type == PORT_TYPE_CONV) { sub 351 sound/soc/uniphier/aio-cpu.c ret = aio_srcif_set_param(sub); sub 354 sound/soc/uniphier/aio-cpu.c ret = aio_srcch_set_param(sub); sub 357 sound/soc/uniphier/aio-cpu.c aio_srcch_set_enable(sub, 1); sub 391 sound/soc/uniphier/aio-cpu.c for (i = 0; i < ARRAY_SIZE(aio->sub); i++) { sub 392 sound/soc/uniphier/aio-cpu.c struct uniphier_aio_sub *sub = &aio->sub[i]; sub 399 sound/soc/uniphier/aio-cpu.c sub->swm = &spec->swm; sub 400 sound/soc/uniphier/aio-cpu.c sub->spec = spec; sub 402 sound/soc/uniphier/aio-cpu.c sub->vol = AUD_VOL_INIT; sub 458 sound/soc/uniphier/aio-cpu.c for (i = 0; i < ARRAY_SIZE(aio->sub); i++) { sub 459 sound/soc/uniphier/aio-cpu.c struct uniphier_aio_sub *sub = &aio->sub[i]; sub 461 sound/soc/uniphier/aio-cpu.c if (!sub->spec || !sub->substream) sub 464 sound/soc/uniphier/aio-cpu.c ret = aio_init(sub); sub 468 sound/soc/uniphier/aio-cpu.c if (!sub->setting) sub 471 sound/soc/uniphier/aio-cpu.c aio_port_reset(sub); sub 472 sound/soc/uniphier/aio-cpu.c aio_src_reset(sub); sub 505 sound/soc/uniphier/aio-cpu.c struct uniphier_aio_sub *sub; sub 508 sound/soc/uniphier/aio-cpu.c sub = find_volume(chip, oport_hw); sub 509 sound/soc/uniphier/aio-cpu.c if (!sub) sub 512 sound/soc/uniphier/aio-cpu.c ucontrol->value.integer.value[0] = sub->vol; sub 522 sound/soc/uniphier/aio-cpu.c struct uniphier_aio_sub *sub; sub 525 sound/soc/uniphier/aio-cpu.c sub = find_volume(chip, oport_hw); sub 526 sound/soc/uniphier/aio-cpu.c if (!sub) sub 529 sound/soc/uniphier/aio-cpu.c if (sub->vol == ucontrol->value.integer.value[0]) sub 531 sound/soc/uniphier/aio-cpu.c sub->vol = ucontrol->value.integer.value[0]; sub 533 sound/soc/uniphier/aio-cpu.c aio_port_set_volume(sub, sub->vol); sub 655 sound/soc/uniphier/aio-cpu.c for (j = 0; j < ARRAY_SIZE(aio->sub); j++) { sub 656 sound/soc/uniphier/aio-cpu.c struct uniphier_aio_sub *sub = &aio->sub[j]; sub 658 sound/soc/uniphier/aio-cpu.c sub->aio = aio; sub 659 sound/soc/uniphier/aio-cpu.c spin_lock_init(&sub->lock); sub 28 sound/soc/uniphier/aio-dma.c static void aiodma_pcm_irq(struct uniphier_aio_sub *sub) sub 30 sound/soc/uniphier/aio-dma.c struct snd_pcm_runtime *runtime = sub->substream->runtime; sub 35 sound/soc/uniphier/aio-dma.c spin_lock(&sub->lock); sub 36 sound/soc/uniphier/aio-dma.c ret = aiodma_rb_set_threshold(sub, runtime->dma_bytes, sub 37 sound/soc/uniphier/aio-dma.c sub->threshold + bytes); sub 39 sound/soc/uniphier/aio-dma.c sub->threshold += bytes; sub 41 sound/soc/uniphier/aio-dma.c aiodma_rb_sync(sub, runtime->dma_addr, runtime->dma_bytes, bytes); sub 42 sound/soc/uniphier/aio-dma.c aiodma_rb_clear_irq(sub); sub 43 sound/soc/uniphier/aio-dma.c spin_unlock(&sub->lock); sub 45 sound/soc/uniphier/aio-dma.c snd_pcm_period_elapsed(sub->substream); sub 48 sound/soc/uniphier/aio-dma.c static void aiodma_compr_irq(struct uniphier_aio_sub *sub) sub 50 sound/soc/uniphier/aio-dma.c struct snd_compr_runtime *runtime = sub->cstream->runtime; sub 54 sound/soc/uniphier/aio-dma.c spin_lock(&sub->lock); sub 55 sound/soc/uniphier/aio-dma.c ret = aiodma_rb_set_threshold(sub, sub->compr_bytes, sub 56 sound/soc/uniphier/aio-dma.c sub->threshold + bytes); sub 58 sound/soc/uniphier/aio-dma.c sub->threshold += bytes; sub 60 sound/soc/uniphier/aio-dma.c aiodma_rb_sync(sub, sub->compr_addr, sub->compr_bytes, bytes); sub 61 sound/soc/uniphier/aio-dma.c aiodma_rb_clear_irq(sub); sub 62 sound/soc/uniphier/aio-dma.c spin_unlock(&sub->lock); sub 64 sound/soc/uniphier/aio-dma.c snd_compr_fragment_elapsed(sub->cstream); sub 77 sound/soc/uniphier/aio-dma.c for (j = 0; j < ARRAY_SIZE(aio->sub); j++) { sub 78 sound/soc/uniphier/aio-dma.c struct uniphier_aio_sub *sub = &aio->sub[j]; sub 81 sound/soc/uniphier/aio-dma.c if (!sub->running || !aiodma_rb_is_irq(sub)) sub 84 sound/soc/uniphier/aio-dma.c if (sub->substream) sub 85 sound/soc/uniphier/aio-dma.c aiodma_pcm_irq(sub); sub 86 sound/soc/uniphier/aio-dma.c if (sub->cstream) sub 87 sound/soc/uniphier/aio-dma.c aiodma_compr_irq(sub); sub 128 sound/soc/uniphier/aio-dma.c struct uniphier_aio_sub *sub = &aio->sub[substream->stream]; sub 134 sound/soc/uniphier/aio-dma.c ret = aiodma_ch_set_param(sub); sub 138 sound/soc/uniphier/aio-dma.c spin_lock_irqsave(&sub->lock, flags); sub 139 sound/soc/uniphier/aio-dma.c ret = aiodma_rb_set_buffer(sub, runtime->dma_addr, sub 142 sound/soc/uniphier/aio-dma.c spin_unlock_irqrestore(&sub->lock, flags); sub 154 sound/soc/uniphier/aio-dma.c struct uniphier_aio_sub *sub = &aio->sub[substream->stream]; sub 160 sound/soc/uniphier/aio-dma.c spin_lock_irqsave(&sub->lock, flags); sub 163 sound/soc/uniphier/aio-dma.c aiodma_rb_sync(sub, runtime->dma_addr, runtime->dma_bytes, sub 165 sound/soc/uniphier/aio-dma.c aiodma_ch_set_enable(sub, 1); sub 166 sound/soc/uniphier/aio-dma.c sub->running = 1; sub 170 sound/soc/uniphier/aio-dma.c sub->running = 0; sub 171 sound/soc/uniphier/aio-dma.c aiodma_ch_set_enable(sub, 0); sub 178 sound/soc/uniphier/aio-dma.c spin_unlock_irqrestore(&sub->lock, flags); sub 189 sound/soc/uniphier/aio-dma.c struct uniphier_aio_sub *sub = &aio->sub[substream->stream]; sub 195 sound/soc/uniphier/aio-dma.c spin_lock_irqsave(&sub->lock, flags); sub 196 sound/soc/uniphier/aio-dma.c aiodma_rb_sync(sub, runtime->dma_addr, runtime->dma_bytes, bytes); sub 198 sound/soc/uniphier/aio-dma.c if (sub->swm->dir == PORT_DIR_OUTPUT) sub 199 sound/soc/uniphier/aio-dma.c pos = bytes_to_frames(runtime, sub->rd_offs); sub 201 sound/soc/uniphier/aio-dma.c pos = bytes_to_frames(runtime, sub->wr_offs); sub 202 sound/soc/uniphier/aio-dma.c spin_unlock_irqrestore(&sub->lock, flags); sub 269 sound/soc/uniphier/aio.h struct uniphier_aio_sub sub[2]; sub 318 sound/soc/uniphier/aio.h u64 aio_rb_cnt(struct uniphier_aio_sub *sub); sub 319 sound/soc/uniphier/aio.h u64 aio_rbt_cnt_to_end(struct uniphier_aio_sub *sub); sub 320 sound/soc/uniphier/aio.h u64 aio_rb_space(struct uniphier_aio_sub *sub); sub 321 sound/soc/uniphier/aio.h u64 aio_rb_space_to_end(struct uniphier_aio_sub *sub); sub 327 sound/soc/uniphier/aio.h int aio_init(struct uniphier_aio_sub *sub); sub 328 sound/soc/uniphier/aio.h void aio_port_reset(struct uniphier_aio_sub *sub); sub 329 sound/soc/uniphier/aio.h int aio_port_set_param(struct uniphier_aio_sub *sub, int pass_through, sub 331 sound/soc/uniphier/aio.h void aio_port_set_enable(struct uniphier_aio_sub *sub, int enable); sub 332 sound/soc/uniphier/aio.h int aio_port_get_volume(struct uniphier_aio_sub *sub); sub 333 sound/soc/uniphier/aio.h void aio_port_set_volume(struct uniphier_aio_sub *sub, int vol); sub 334 sound/soc/uniphier/aio.h int aio_if_set_param(struct uniphier_aio_sub *sub, int pass_through); sub 335 sound/soc/uniphier/aio.h int aio_oport_set_stream_type(struct uniphier_aio_sub *sub, sub 337 sound/soc/uniphier/aio.h void aio_src_reset(struct uniphier_aio_sub *sub); sub 338 sound/soc/uniphier/aio.h int aio_src_set_param(struct uniphier_aio_sub *sub, sub 340 sound/soc/uniphier/aio.h int aio_srcif_set_param(struct uniphier_aio_sub *sub); sub 341 sound/soc/uniphier/aio.h int aio_srcch_set_param(struct uniphier_aio_sub *sub); sub 342 sound/soc/uniphier/aio.h void aio_srcch_set_enable(struct uniphier_aio_sub *sub, int enable); sub 344 sound/soc/uniphier/aio.h int aiodma_ch_set_param(struct uniphier_aio_sub *sub); sub 345 sound/soc/uniphier/aio.h void aiodma_ch_set_enable(struct uniphier_aio_sub *sub, int enable); sub 346 sound/soc/uniphier/aio.h int aiodma_rb_set_threshold(struct uniphier_aio_sub *sub, u64 size, u32 th); sub 347 sound/soc/uniphier/aio.h int aiodma_rb_set_buffer(struct uniphier_aio_sub *sub, u64 start, u64 end, sub 349 sound/soc/uniphier/aio.h void aiodma_rb_sync(struct uniphier_aio_sub *sub, u64 start, u64 size, sub 351 sound/soc/uniphier/aio.h bool aiodma_rb_is_irq(struct uniphier_aio_sub *sub); sub 352 sound/soc/uniphier/aio.h void aiodma_rb_clear_irq(struct uniphier_aio_sub *sub); sub 192 sound/usb/6fire/pcm.c static void usb6fire_pcm_capture(struct pcm_substream *sub, struct pcm_urb *urb) sub 198 sound/usb/6fire/pcm.c struct pcm_runtime *rt = snd_pcm_substream_chip(sub->instance); sub 199 sound/usb/6fire/pcm.c struct snd_pcm_runtime *alsa_rt = sub->instance->runtime; sub 201 sound/usb/6fire/pcm.c u32 *dest = (u32 *) (alsa_rt->dma_area + sub->dma_off sub 228 sound/usb/6fire/pcm.c sub->dma_off++; sub 229 sound/usb/6fire/pcm.c sub->period_off++; sub 231 sound/usb/6fire/pcm.c sub->dma_off = 0; sub 239 sound/usb/6fire/pcm.c static void usb6fire_pcm_playback(struct pcm_substream *sub, sub 245 sound/usb/6fire/pcm.c struct pcm_runtime *rt = snd_pcm_substream_chip(sub->instance); sub 246 sound/usb/6fire/pcm.c struct snd_pcm_runtime *alsa_rt = sub->instance->runtime; sub 247 sound/usb/6fire/pcm.c u32 *src = (u32 *) (alsa_rt->dma_area + sub->dma_off sub 276 sound/usb/6fire/pcm.c sub->dma_off++; sub 277 sound/usb/6fire/pcm.c sub->period_off++; sub 280 sound/usb/6fire/pcm.c sub->dma_off = 0; sub 291 sound/usb/6fire/pcm.c struct pcm_substream *sub; sub 315 sound/usb/6fire/pcm.c sub = &rt->capture; sub 316 sound/usb/6fire/pcm.c spin_lock_irqsave(&sub->lock, flags); sub 317 sound/usb/6fire/pcm.c if (sub->active) { sub 318 sound/usb/6fire/pcm.c usb6fire_pcm_capture(sub, in_urb); sub 319 sound/usb/6fire/pcm.c if (sub->period_off >= sub->instance->runtime->period_size) { sub 320 sound/usb/6fire/pcm.c sub->period_off %= sub->instance->runtime->period_size; sub 321 sound/usb/6fire/pcm.c spin_unlock_irqrestore(&sub->lock, flags); sub 322 sound/usb/6fire/pcm.c snd_pcm_period_elapsed(sub->instance); sub 324 sound/usb/6fire/pcm.c spin_unlock_irqrestore(&sub->lock, flags); sub 326 sound/usb/6fire/pcm.c spin_unlock_irqrestore(&sub->lock, flags); sub 340 sound/usb/6fire/pcm.c sub = &rt->playback; sub 341 sound/usb/6fire/pcm.c spin_lock_irqsave(&sub->lock, flags); sub 342 sound/usb/6fire/pcm.c if (sub->active) { sub 343 sound/usb/6fire/pcm.c usb6fire_pcm_playback(sub, out_urb); sub 344 sound/usb/6fire/pcm.c if (sub->period_off >= sub->instance->runtime->period_size) { sub 345 sound/usb/6fire/pcm.c sub->period_off %= sub->instance->runtime->period_size; sub 346 sound/usb/6fire/pcm.c spin_unlock_irqrestore(&sub->lock, flags); sub 347 sound/usb/6fire/pcm.c snd_pcm_period_elapsed(sub->instance); sub 349 sound/usb/6fire/pcm.c spin_unlock_irqrestore(&sub->lock, flags); sub 351 sound/usb/6fire/pcm.c spin_unlock_irqrestore(&sub->lock, flags); sub 389 sound/usb/6fire/pcm.c struct pcm_substream *sub = NULL; sub 402 sound/usb/6fire/pcm.c sub = &rt->playback; sub 407 sound/usb/6fire/pcm.c sub = &rt->capture; sub 410 sound/usb/6fire/pcm.c if (!sub) { sub 416 sound/usb/6fire/pcm.c sub->instance = alsa_sub; sub 417 sound/usb/6fire/pcm.c sub->active = false; sub 425 sound/usb/6fire/pcm.c struct pcm_substream *sub = usb6fire_pcm_get_substream(alsa_sub); sub 432 sound/usb/6fire/pcm.c if (sub) { sub 434 sound/usb/6fire/pcm.c spin_lock_irqsave(&sub->lock, flags); sub 435 sound/usb/6fire/pcm.c sub->instance = NULL; sub 436 sound/usb/6fire/pcm.c sub->active = false; sub 437 sound/usb/6fire/pcm.c spin_unlock_irqrestore(&sub->lock, flags); sub 464 sound/usb/6fire/pcm.c struct pcm_substream *sub = usb6fire_pcm_get_substream(alsa_sub); sub 470 sound/usb/6fire/pcm.c if (!sub) sub 474 sound/usb/6fire/pcm.c sub->dma_off = 0; sub 475 sound/usb/6fire/pcm.c sub->period_off = 0; sub 508 sound/usb/6fire/pcm.c struct pcm_substream *sub = usb6fire_pcm_get_substream(alsa_sub); sub 514 sound/usb/6fire/pcm.c if (!sub) sub 520 sound/usb/6fire/pcm.c spin_lock_irqsave(&sub->lock, flags); sub 521 sound/usb/6fire/pcm.c sub->active = true; sub 522 sound/usb/6fire/pcm.c spin_unlock_irqrestore(&sub->lock, flags); sub 527 sound/usb/6fire/pcm.c spin_lock_irqsave(&sub->lock, flags); sub 528 sound/usb/6fire/pcm.c sub->active = false; sub 529 sound/usb/6fire/pcm.c spin_unlock_irqrestore(&sub->lock, flags); sub 540 sound/usb/6fire/pcm.c struct pcm_substream *sub = usb6fire_pcm_get_substream(alsa_sub); sub 545 sound/usb/6fire/pcm.c if (rt->panic || !sub) sub 548 sound/usb/6fire/pcm.c spin_lock_irqsave(&sub->lock, flags); sub 549 sound/usb/6fire/pcm.c ret = sub->dma_off; sub 550 sound/usb/6fire/pcm.c spin_unlock_irqrestore(&sub->lock, flags); sub 52 sound/usb/caiaq/audio.c struct snd_pcm_substream *sub) sub 56 sound/usb/caiaq/audio.c if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) sub 57 sound/usb/caiaq/audio.c cdev->sub_playback[sub->number] = sub; sub 59 sound/usb/caiaq/audio.c cdev->sub_capture[sub->number] = sub; sub 66 sound/usb/caiaq/audio.c struct snd_pcm_substream *sub) sub 71 sound/usb/caiaq/audio.c if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) sub 72 sound/usb/caiaq/audio.c cdev->sub_playback[sub->number] = NULL; sub 74 sound/usb/caiaq/audio.c cdev->sub_capture[sub->number] = NULL; sub 170 sound/usb/caiaq/audio.c static int snd_usb_caiaq_pcm_hw_params(struct snd_pcm_substream *sub, sub 173 sound/usb/caiaq/audio.c return snd_pcm_lib_alloc_vmalloc_buffer(sub, sub 177 sound/usb/caiaq/audio.c static int snd_usb_caiaq_pcm_hw_free(struct snd_pcm_substream *sub) sub 179 sound/usb/caiaq/audio.c struct snd_usb_caiaqdev *cdev = snd_pcm_substream_chip(sub); sub 180 sound/usb/caiaq/audio.c deactivate_substream(cdev, sub); sub 181 sound/usb/caiaq/audio.c return snd_pcm_lib_free_vmalloc_buffer(sub); sub 278 sound/usb/caiaq/audio.c static int snd_usb_caiaq_pcm_trigger(struct snd_pcm_substream *sub, int cmd) sub 280 sound/usb/caiaq/audio.c struct snd_usb_caiaqdev *cdev = snd_pcm_substream_chip(sub); sub 283 sound/usb/caiaq/audio.c dev_dbg(dev, "%s(%p) cmd %d\n", __func__, sub, cmd); sub 288 sound/usb/caiaq/audio.c activate_substream(cdev, sub); sub 292 sound/usb/caiaq/audio.c deactivate_substream(cdev, sub); sub 302 sound/usb/caiaq/audio.c snd_usb_caiaq_pcm_pointer(struct snd_pcm_substream *sub) sub 304 sound/usb/caiaq/audio.c int index = sub->number; sub 305 sound/usb/caiaq/audio.c struct snd_usb_caiaqdev *cdev = snd_pcm_substream_chip(sub); sub 315 sound/usb/caiaq/audio.c if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) sub 316 sound/usb/caiaq/audio.c ptr = bytes_to_frames(sub->runtime, sub 319 sound/usb/caiaq/audio.c ptr = bytes_to_frames(sub->runtime, sub 344 sound/usb/caiaq/audio.c struct snd_pcm_substream *sub; sub 347 sound/usb/caiaq/audio.c sub = subs[stream]; sub 348 sound/usb/caiaq/audio.c if (!sub) sub 351 sound/usb/caiaq/audio.c pb = snd_pcm_lib_period_bytes(sub); sub 352 sound/usb/caiaq/audio.c cnt = (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) ? sub 357 sound/usb/caiaq/audio.c snd_pcm_period_elapsed(sub); sub 368 sound/usb/caiaq/audio.c struct snd_pcm_substream *sub; sub 376 sound/usb/caiaq/audio.c sub = cdev->sub_capture[stream]; sub 377 sound/usb/caiaq/audio.c if (sub) { sub 378 sound/usb/caiaq/audio.c struct snd_pcm_runtime *rt = sub->runtime; sub 397 sound/usb/caiaq/audio.c struct snd_pcm_substream *sub; sub 420 sound/usb/caiaq/audio.c sub = cdev->sub_capture[stream]; sub 424 sound/usb/caiaq/audio.c if (sub) { sub 425 sound/usb/caiaq/audio.c struct snd_pcm_runtime *rt = sub->runtime; sub 452 sound/usb/caiaq/audio.c struct snd_pcm_substream *sub = cdev->sub_capture[stream]; sub 456 sound/usb/caiaq/audio.c if (sub && !cdev->input_panic) { sub 457 sound/usb/caiaq/audio.c struct snd_pcm_runtime *rt = sub->runtime; sub 531 sound/usb/caiaq/audio.c struct snd_pcm_substream *sub; sub 536 sound/usb/caiaq/audio.c sub = cdev->sub_playback[stream]; sub 537 sound/usb/caiaq/audio.c if (sub) { sub 538 sound/usb/caiaq/audio.c struct snd_pcm_runtime *rt = sub->runtime; sub 569 sound/usb/caiaq/audio.c struct snd_pcm_substream *sub = cdev->sub_playback[stream]; sub 573 sound/usb/caiaq/audio.c if (sub) { sub 574 sound/usb/caiaq/audio.c struct snd_pcm_runtime *rt = sub->runtime; sub 257 sound/usb/hiface/pcm.c static bool hiface_pcm_playback(struct pcm_substream *sub, struct pcm_urb *urb) sub 259 sound/usb/hiface/pcm.c struct snd_pcm_runtime *alsa_rt = sub->instance->runtime; sub 266 sound/usb/hiface/pcm.c pcm_buffer_size = snd_pcm_lib_buffer_bytes(sub->instance); sub 268 sound/usb/hiface/pcm.c if (sub->dma_off + PCM_PACKET_SIZE <= pcm_buffer_size) { sub 271 sound/usb/hiface/pcm.c (unsigned int) sub->dma_off); sub 273 sound/usb/hiface/pcm.c source = alsa_rt->dma_area + sub->dma_off; sub 281 sound/usb/hiface/pcm.c (unsigned int) sub->dma_off); sub 283 sound/usb/hiface/pcm.c len = pcm_buffer_size - sub->dma_off; sub 285 sound/usb/hiface/pcm.c source = alsa_rt->dma_area + sub->dma_off; sub 292 sound/usb/hiface/pcm.c sub->dma_off += PCM_PACKET_SIZE; sub 293 sound/usb/hiface/pcm.c if (sub->dma_off >= pcm_buffer_size) sub 294 sound/usb/hiface/pcm.c sub->dma_off -= pcm_buffer_size; sub 296 sound/usb/hiface/pcm.c sub->period_off += PCM_PACKET_SIZE; sub 297 sound/usb/hiface/pcm.c if (sub->period_off >= alsa_rt->period_size) { sub 298 sound/usb/hiface/pcm.c sub->period_off %= alsa_rt->period_size; sub 308 sound/usb/hiface/pcm.c struct pcm_substream *sub; sub 329 sound/usb/hiface/pcm.c sub = &rt->playback; sub 330 sound/usb/hiface/pcm.c spin_lock_irqsave(&sub->lock, flags); sub 331 sound/usb/hiface/pcm.c if (sub->active) sub 332 sound/usb/hiface/pcm.c do_period_elapsed = hiface_pcm_playback(sub, out_urb); sub 336 sound/usb/hiface/pcm.c spin_unlock_irqrestore(&sub->lock, flags); sub 339 sound/usb/hiface/pcm.c snd_pcm_period_elapsed(sub->instance); sub 354 sound/usb/hiface/pcm.c struct pcm_substream *sub = NULL; sub 365 sound/usb/hiface/pcm.c sub = &rt->playback; sub 367 sound/usb/hiface/pcm.c if (!sub) { sub 388 sound/usb/hiface/pcm.c sub->instance = alsa_sub; sub 389 sound/usb/hiface/pcm.c sub->active = false; sub 397 sound/usb/hiface/pcm.c struct pcm_substream *sub = hiface_pcm_get_substream(alsa_sub); sub 404 sound/usb/hiface/pcm.c if (sub) { sub 408 sound/usb/hiface/pcm.c spin_lock_irqsave(&sub->lock, flags); sub 409 sound/usb/hiface/pcm.c sub->instance = NULL; sub 410 sound/usb/hiface/pcm.c sub->active = false; sub 411 sound/usb/hiface/pcm.c spin_unlock_irqrestore(&sub->lock, flags); sub 433 sound/usb/hiface/pcm.c struct pcm_substream *sub = hiface_pcm_get_substream(alsa_sub); sub 439 sound/usb/hiface/pcm.c if (!sub) sub 446 sound/usb/hiface/pcm.c sub->dma_off = 0; sub 447 sound/usb/hiface/pcm.c sub->period_off = 0; sub 468 sound/usb/hiface/pcm.c struct pcm_substream *sub = hiface_pcm_get_substream(alsa_sub); sub 473 sound/usb/hiface/pcm.c if (!sub) sub 479 sound/usb/hiface/pcm.c spin_lock_irq(&sub->lock); sub 480 sound/usb/hiface/pcm.c sub->active = true; sub 481 sound/usb/hiface/pcm.c spin_unlock_irq(&sub->lock); sub 486 sound/usb/hiface/pcm.c spin_lock_irq(&sub->lock); sub 487 sound/usb/hiface/pcm.c sub->active = false; sub 488 sound/usb/hiface/pcm.c spin_unlock_irq(&sub->lock); sub 498 sound/usb/hiface/pcm.c struct pcm_substream *sub = hiface_pcm_get_substream(alsa_sub); sub 503 sound/usb/hiface/pcm.c if (rt->panic || !sub) sub 506 sound/usb/hiface/pcm.c spin_lock_irqsave(&sub->lock, flags); sub 507 sound/usb/hiface/pcm.c dma_offset = sub->dma_off; sub 508 sound/usb/hiface/pcm.c spin_unlock_irqrestore(&sub->lock, flags); sub 103 tools/bpf/bpf_exp.y | sub sub 356 tools/bpf/bpf_exp.y sub sub 151 tools/testing/selftests/net/tcp_mmap.c int sub; sub 184 tools/testing/selftests/net/tcp_mmap.c sub = 0; sub 185 tools/testing/selftests/net/tcp_mmap.c while (sub < chunk_size) { sub 186 tools/testing/selftests/net/tcp_mmap.c lu = read(fd, buffer + sub, chunk_size - sub); sub 192 tools/testing/selftests/net/tcp_mmap.c hash_zone(buffer + sub, lu); sub 194 tools/testing/selftests/net/tcp_mmap.c sub += lu;