bc 481 arch/ia64/include/asm/pal.h bc : 1, /* Bus check */ bc 680 arch/ia64/include/asm/pal.h #define pmci_proc_bus_check pme_processor.bc bc 584 arch/ia64/kernel/mca_drv.c if (psp->bc && pbci->eb && pbci->bsi == 0) { bc 606 arch/ia64/kernel/mca_drv.c } else if (psp->cc && !psp->bc) { /* Cache error */ bc 680 arch/ia64/kernel/mca_drv.c if (psp->tc && !(psp->cc || psp->bc || psp->rc || psp->uc)) bc 691 arch/ia64/kernel/mca_drv.c if (psp->cc == 0 && (psp->bc == 0 || pbci == NULL)) bc 816 arch/mips/include/asm/pci/bridge.h #define bridge_read(bc, reg) __raw_readl(&bc->base->reg) bc 817 arch/mips/include/asm/pci/bridge.h #define bridge_write(bc, reg, val) __raw_writel(val, &bc->base->reg) bc 818 arch/mips/include/asm/pci/bridge.h #define bridge_set(bc, reg, val) \ bc 819 arch/mips/include/asm/pci/bridge.h __raw_writel(__raw_readl(&bc->base->reg) | (val), &bc->base->reg) bc 820 arch/mips/include/asm/pci/bridge.h #define bridge_clr(bc, reg, val) \ bc 821 arch/mips/include/asm/pci/bridge.h __raw_writel(__raw_readl(&bc->base->reg) & ~(val), &bc->base->reg) bc 795 arch/mips/include/uapi/asm/inst.h __BITFIELD_FIELD(unsigned int bc : 5, bc 114 arch/mips/math-emu/cp1emu.c mips32_insn.fb_format.bc = bc_op; bc 15 arch/mips/pci/pci-ip27.c struct bridge_controller *bc = BRIDGE_CONTROLLER(pdev->bus); bc 17 arch/mips/pci/pci-ip27.c return bc->baddr + paddr; bc 28 arch/mips/pci/pci-ip27.c struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); bc 30 arch/mips/pci/pci-ip27.c return bc->nasid; bc 71 arch/mips/pci/pci-xtalk-bridge.c struct bridge_controller *bc = BRIDGE_CONTROLLER(dev->bus); bc 75 arch/mips/pci/pci-xtalk-bridge.c bridge_clr(bc, b_device[slot].reg, BRIDGE_DEV_SWAP_DIR); bc 76 arch/mips/pci/pci-xtalk-bridge.c bridge_read(bc, b_widget.w_tflush); /* Flush */ bc 96 arch/mips/pci/pci-xtalk-bridge.c struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); bc 97 arch/mips/pci/pci-xtalk-bridge.c struct bridge_regs *bridge = bc->base; bc 132 arch/mips/pci/pci-xtalk-bridge.c struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); bc 133 arch/mips/pci/pci-xtalk-bridge.c struct bridge_regs *bridge = bc->base; bc 141 arch/mips/pci/pci-xtalk-bridge.c bridge_write(bc, b_pci_cfg, (busno << 16) | (slot << 11)); bc 179 arch/mips/pci/pci-xtalk-bridge.c struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); bc 180 arch/mips/pci/pci-xtalk-bridge.c struct bridge_regs *bridge = bc->base; bc 218 arch/mips/pci/pci-xtalk-bridge.c struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); bc 219 arch/mips/pci/pci-xtalk-bridge.c struct bridge_regs *bridge = bc->base; bc 227 arch/mips/pci/pci-xtalk-bridge.c bridge_write(bc, b_pci_cfg, (busno << 16) | (slot << 11)); bc 271 arch/mips/pci/pci-xtalk-bridge.c struct bridge_controller *bc; bc 288 arch/mips/pci/pci-xtalk-bridge.c bridge_write(data->bc, b_int_addr[pin].addr, bc 289 arch/mips/pci/pci-xtalk-bridge.c (((data->bc->intr_addr >> 30) & 0x30000) | bc 291 arch/mips/pci/pci-xtalk-bridge.c bridge_read(data->bc, b_wid_tflush); bc 322 arch/mips/pci/pci-xtalk-bridge.c data->bc = info->ctrl; bc 349 arch/mips/pci/pci-xtalk-bridge.c struct bridge_controller *bc = data->bc; bc 354 arch/mips/pci/pci-xtalk-bridge.c bridge_write(bc, b_int_addr[pin].addr, bc 355 arch/mips/pci/pci-xtalk-bridge.c (((bc->intr_addr >> 30) & 0x30000) | bc 357 arch/mips/pci/pci-xtalk-bridge.c bridge_set(bc, b_int_enable, (1 << pin)); bc 358 arch/mips/pci/pci-xtalk-bridge.c bridge_set(bc, b_int_enable, 0x7ffffe00); /* more stuff in int_enable */ bc 367 arch/mips/pci/pci-xtalk-bridge.c bridge_set(bc, b_int_mode, (1UL << pin)); bc 373 arch/mips/pci/pci-xtalk-bridge.c device = bridge_read(bc, b_int_device); bc 376 arch/mips/pci/pci-xtalk-bridge.c bridge_write(bc, b_int_device, device); bc 378 arch/mips/pci/pci-xtalk-bridge.c bridge_read(bc, b_wid_tflush); bc 387 arch/mips/pci/pci-xtalk-bridge.c bridge_clr(data->bc, b_int_enable, (1 << irqd->hwirq)); bc 388 arch/mips/pci/pci-xtalk-bridge.c bridge_read(data->bc, b_wid_tflush); bc 409 arch/mips/pci/pci-xtalk-bridge.c struct bridge_controller *bc = BRIDGE_CONTROLLER(dev->bus); bc 413 arch/mips/pci/pci-xtalk-bridge.c irq = bc->pci_int[slot]; bc 415 arch/mips/pci/pci-xtalk-bridge.c info.ctrl = bc; bc 416 arch/mips/pci/pci-xtalk-bridge.c info.nasid = bc->nasid; bc 419 arch/mips/pci/pci-xtalk-bridge.c irq = irq_domain_alloc_irqs(bc->domain, 1, bc->nasid, &info); bc 423 arch/mips/pci/pci-xtalk-bridge.c bc->pci_int[slot] = irq; bc 432 arch/mips/pci/pci-xtalk-bridge.c struct bridge_controller *bc; bc 453 arch/mips/pci/pci-xtalk-bridge.c host = devm_pci_alloc_host_bridge(dev, sizeof(*bc)); bc 459 arch/mips/pci/pci-xtalk-bridge.c bc = pci_host_bridge_priv(host); bc 461 arch/mips/pci/pci-xtalk-bridge.c bc->busn.name = "Bridge PCI busn"; bc 462 arch/mips/pci/pci-xtalk-bridge.c bc->busn.start = 0; bc 463 arch/mips/pci/pci-xtalk-bridge.c bc->busn.end = 0xff; bc 464 arch/mips/pci/pci-xtalk-bridge.c bc->busn.flags = IORESOURCE_BUS; bc 466 arch/mips/pci/pci-xtalk-bridge.c bc->domain = domain; bc 470 arch/mips/pci/pci-xtalk-bridge.c pci_add_resource(&host->windows, &bc->busn); bc 476 arch/mips/pci/pci-xtalk-bridge.c bc->nasid = bd->nasid; bc 478 arch/mips/pci/pci-xtalk-bridge.c bc->baddr = (u64)bd->masterwid << 60 | PCI64_ATTR_BAR; bc 479 arch/mips/pci/pci-xtalk-bridge.c bc->base = (struct bridge_regs *)bd->bridge_addr; bc 480 arch/mips/pci/pci-xtalk-bridge.c bc->intr_addr = bd->intr_addr; bc 485 arch/mips/pci/pci-xtalk-bridge.c bridge_write(bc, b_int_rst_stat, BRIDGE_IRR_ALL_CLR); bc 490 arch/mips/pci/pci-xtalk-bridge.c bridge_write(bc, b_int_device, 0x0); bc 495 arch/mips/pci/pci-xtalk-bridge.c bridge_clr(bc, b_wid_control, bc 498 arch/mips/pci/pci-xtalk-bridge.c bridge_clr(bc, b_wid_control, BRIDGE_CTRL_PAGE_SIZE); bc 500 arch/mips/pci/pci-xtalk-bridge.c bridge_set(bc, b_wid_control, BRIDGE_CTRL_PAGE_SIZE); bc 507 arch/mips/pci/pci-xtalk-bridge.c bridge_write(bc, b_wid_int_upper, bc 508 arch/mips/pci/pci-xtalk-bridge.c ((bc->intr_addr >> 32) & 0xffff) | (bd->masterwid << 16)); bc 509 arch/mips/pci/pci-xtalk-bridge.c bridge_write(bc, b_wid_int_lower, bc->intr_addr & 0xffffffff); bc 510 arch/mips/pci/pci-xtalk-bridge.c bridge_write(bc, b_dir_map, (bd->masterwid << 20)); /* DMA */ bc 511 arch/mips/pci/pci-xtalk-bridge.c bridge_write(bc, b_int_enable, 0); bc 514 arch/mips/pci/pci-xtalk-bridge.c bridge_set(bc, b_device[slot].reg, BRIDGE_DEV_SWAP_DIR); bc 515 arch/mips/pci/pci-xtalk-bridge.c bc->pci_int[slot] = -1; bc 517 arch/mips/pci/pci-xtalk-bridge.c bridge_read(bc, b_wid_tflush); /* wait until Bridge PIO complete */ bc 520 arch/mips/pci/pci-xtalk-bridge.c host->sysdata = bc; bc 547 arch/mips/pci/pci-xtalk-bridge.c struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); bc 549 arch/mips/pci/pci-xtalk-bridge.c irq_domain_remove(bc->domain); bc 373 arch/parisc/include/uapi/asm/pdc.h unsigned char bc[6]; /* bus converter routing info */ bc 614 arch/parisc/include/uapi/asm/pdc.h char bc[6]; /* Bus Converter routing info to a specific */ bc 313 arch/parisc/kernel/drivers.c memset(&path->bc, -1, 6); bc 318 arch/parisc/kernel/drivers.c path->bc[i--] = PCI_SLOT(devfn); bc 325 arch/parisc/kernel/drivers.c path->bc[i--] = PCI_SLOT(devfn) | (PCI_FUNC(devfn)<< 5); bc 327 arch/parisc/kernel/drivers.c path->bc[i--] = to_parisc_device(dev)->hw_path; bc 337 arch/parisc/kernel/drivers.c if (path->bc[i] == -1) bc 339 arch/parisc/kernel/drivers.c output += sprintf(output, "%u/", (unsigned char) path->bc[i]); bc 410 arch/parisc/kernel/drivers.c if (path.bc[i] == -1) bc 412 arch/parisc/kernel/drivers.c output += sprintf(output, "%u:", (unsigned char) path.bc[i]); bc 486 arch/parisc/kernel/drivers.c if (modpath->bc[i] == -1) bc 488 arch/parisc/kernel/drivers.c parent = &alloc_tree_node(parent, modpath->bc[i])->dev; bc 665 arch/parisc/kernel/drivers.c return ((modpath->bc[5] == PCI_SLOT(devfn)) && bc 674 arch/parisc/kernel/drivers.c return (modpath->bc[index] == id); bc 689 arch/parisc/kernel/drivers.c char id = (index == 6) ? modpath->mod : modpath->bc[index]; bc 760 arch/parisc/kernel/drivers.c if (modpath->bc[i] == -1) bc 1033 arch/parisc/kernel/drivers.c (unsigned char)mod_path.path.bc[0], bc 1034 arch/parisc/kernel/drivers.c (unsigned char)mod_path.path.bc[1], bc 1035 arch/parisc/kernel/drivers.c (unsigned char)mod_path.path.bc[2], bc 1036 arch/parisc/kernel/drivers.c (unsigned char)mod_path.path.bc[3], bc 1037 arch/parisc/kernel/drivers.c (unsigned char)mod_path.path.bc[4], bc 1038 arch/parisc/kernel/drivers.c (unsigned char)mod_path.path.bc[5]); bc 485 arch/parisc/kernel/inventory.c memset(module_path.path.bc, 0xff, 6); bc 491 arch/parisc/kernel/inventory.c memset(module_path.path.bc, 0xff, 4); bc 492 arch/parisc/kernel/inventory.c module_path.path.bc[4] = mod; bc 495 arch/parisc/kernel/inventory.c module_path.path.bc[5] = 0; bc 61 arch/x86/kernel/kprobes/core.c #define W(row, b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, ba, bb, bc, bd, be, bf)\ bc 65 arch/x86/kernel/kprobes/core.c (bc##UL << 0xc)|(bd##UL << 0xd)|(be##UL << 0xe)|(bf##UL << 0xf)) \ bc 46 arch/x86/kernel/uprobes.c #define W(row, b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, ba, bb, bc, bd, be, bf)\ bc 50 arch/x86/kernel/uprobes.c (bc##UL << 0xc)|(bd##UL << 0xd)|(be##UL << 0xe)|(bf##UL << 0xf)) \ bc 49 crypto/sha3_generic.c u64 t[5], tt, bc[5]; bc 52 crypto/sha3_generic.c bc[0] = st[0] ^ st[5] ^ st[10] ^ st[15] ^ st[20]; bc 53 crypto/sha3_generic.c bc[1] = st[1] ^ st[6] ^ st[11] ^ st[16] ^ st[21]; bc 54 crypto/sha3_generic.c bc[2] = st[2] ^ st[7] ^ st[12] ^ st[17] ^ st[22]; bc 55 crypto/sha3_generic.c bc[3] = st[3] ^ st[8] ^ st[13] ^ st[18] ^ st[23]; bc 56 crypto/sha3_generic.c bc[4] = st[4] ^ st[9] ^ st[14] ^ st[19] ^ st[24]; bc 58 crypto/sha3_generic.c t[0] = bc[4] ^ rol64(bc[1], 1); bc 59 crypto/sha3_generic.c t[1] = bc[0] ^ rol64(bc[2], 1); bc 60 crypto/sha3_generic.c t[2] = bc[1] ^ rol64(bc[3], 1); bc 61 crypto/sha3_generic.c t[3] = bc[2] ^ rol64(bc[4], 1); bc 62 crypto/sha3_generic.c t[4] = bc[3] ^ rol64(bc[0], 1); bc 94 crypto/sha3_generic.c bc[ 0] = ~st[ 1] & st[ 2]; bc 95 crypto/sha3_generic.c bc[ 1] = ~st[ 2] & st[ 3]; bc 96 crypto/sha3_generic.c bc[ 2] = ~st[ 3] & st[ 4]; bc 97 crypto/sha3_generic.c bc[ 3] = ~st[ 4] & st[ 0]; bc 98 crypto/sha3_generic.c bc[ 4] = ~st[ 0] & st[ 1]; bc 99 crypto/sha3_generic.c st[ 0] ^= bc[ 0]; bc 100 crypto/sha3_generic.c st[ 1] ^= bc[ 1]; bc 101 crypto/sha3_generic.c st[ 2] ^= bc[ 2]; bc 102 crypto/sha3_generic.c st[ 3] ^= bc[ 3]; bc 103 crypto/sha3_generic.c st[ 4] ^= bc[ 4]; bc 105 crypto/sha3_generic.c bc[ 0] = ~st[ 6] & st[ 7]; bc 106 crypto/sha3_generic.c bc[ 1] = ~st[ 7] & st[ 8]; bc 107 crypto/sha3_generic.c bc[ 2] = ~st[ 8] & st[ 9]; bc 108 crypto/sha3_generic.c bc[ 3] = ~st[ 9] & st[ 5]; bc 109 crypto/sha3_generic.c bc[ 4] = ~st[ 5] & st[ 6]; bc 110 crypto/sha3_generic.c st[ 5] ^= bc[ 0]; bc 111 crypto/sha3_generic.c st[ 6] ^= bc[ 1]; bc 112 crypto/sha3_generic.c st[ 7] ^= bc[ 2]; bc 113 crypto/sha3_generic.c st[ 8] ^= bc[ 3]; bc 114 crypto/sha3_generic.c st[ 9] ^= bc[ 4]; bc 116 crypto/sha3_generic.c bc[ 0] = ~st[11] & st[12]; bc 117 crypto/sha3_generic.c bc[ 1] = ~st[12] & st[13]; bc 118 crypto/sha3_generic.c bc[ 2] = ~st[13] & st[14]; bc 119 crypto/sha3_generic.c bc[ 3] = ~st[14] & st[10]; bc 120 crypto/sha3_generic.c bc[ 4] = ~st[10] & st[11]; bc 121 crypto/sha3_generic.c st[10] ^= bc[ 0]; bc 122 crypto/sha3_generic.c st[11] ^= bc[ 1]; bc 123 crypto/sha3_generic.c st[12] ^= bc[ 2]; bc 124 crypto/sha3_generic.c st[13] ^= bc[ 3]; bc 125 crypto/sha3_generic.c st[14] ^= bc[ 4]; bc 127 crypto/sha3_generic.c bc[ 0] = ~st[16] & st[17]; bc 128 crypto/sha3_generic.c bc[ 1] = ~st[17] & st[18]; bc 129 crypto/sha3_generic.c bc[ 2] = ~st[18] & st[19]; bc 130 crypto/sha3_generic.c bc[ 3] = ~st[19] & st[15]; bc 131 crypto/sha3_generic.c bc[ 4] = ~st[15] & st[16]; bc 132 crypto/sha3_generic.c st[15] ^= bc[ 0]; bc 133 crypto/sha3_generic.c st[16] ^= bc[ 1]; bc 134 crypto/sha3_generic.c st[17] ^= bc[ 2]; bc 135 crypto/sha3_generic.c st[18] ^= bc[ 3]; bc 136 crypto/sha3_generic.c st[19] ^= bc[ 4]; bc 138 crypto/sha3_generic.c bc[ 0] = ~st[21] & st[22]; bc 139 crypto/sha3_generic.c bc[ 1] = ~st[22] & st[23]; bc 140 crypto/sha3_generic.c bc[ 2] = ~st[23] & st[24]; bc 141 crypto/sha3_generic.c bc[ 3] = ~st[24] & st[20]; bc 142 crypto/sha3_generic.c bc[ 4] = ~st[20] & st[21]; bc 143 crypto/sha3_generic.c st[20] ^= bc[ 0]; bc 144 crypto/sha3_generic.c st[21] ^= bc[ 1]; bc 145 crypto/sha3_generic.c st[22] ^= bc[ 2]; bc 146 crypto/sha3_generic.c st[23] ^= bc[ 3]; bc 147 crypto/sha3_generic.c st[24] ^= bc[ 4]; bc 180 drivers/android/binder.c atomic_t bc[_IOC_NR(BC_REPLY_SG) + 1]; bc 3615 drivers/android/binder.c if (_IOC_NR(cmd) < ARRAY_SIZE(binder_stats.bc)) { bc 3616 drivers/android/binder.c atomic_inc(&binder_stats.bc[_IOC_NR(cmd)]); bc 3617 drivers/android/binder.c atomic_inc(&proc->stats.bc[_IOC_NR(cmd)]); bc 3618 drivers/android/binder.c atomic_inc(&thread->stats.bc[_IOC_NR(cmd)]); bc 5832 drivers/android/binder.c BUILD_BUG_ON(ARRAY_SIZE(stats->bc) != bc 5834 drivers/android/binder.c for (i = 0; i < ARRAY_SIZE(stats->bc); i++) { bc 5835 drivers/android/binder.c int temp = atomic_read(&stats->bc[i]); bc 11151 drivers/infiniband/hw/hfi1/chip.c struct buffer_control *bc, u16 *overall_limit) bc 11157 drivers/infiniband/hw/hfi1/chip.c memset(bc, 0, sizeof(*bc)); bc 11161 drivers/infiniband/hw/hfi1/chip.c read_one_cm_vl(dd, SEND_CM_CREDIT_VL + (8 * i), &bc->vl[i]); bc 11164 drivers/infiniband/hw/hfi1/chip.c read_one_cm_vl(dd, SEND_CM_CREDIT_VL15, &bc->vl[15]); bc 11167 drivers/infiniband/hw/hfi1/chip.c bc->overall_shared_limit = cpu_to_be16( bc 1820 drivers/infiniband/hw/hfi1/hfi.h int set_buffer_control(struct hfi1_pportdata *ppd, struct buffer_control *bc); bc 729 drivers/infiniband/hw/hfi1/trace_tx.h struct buffer_control *bc), bc 730 drivers/infiniband/hw/hfi1/trace_tx.h TP_ARGS(dd, bc), bc 732 drivers/infiniband/hw/hfi1/trace_tx.h __dynamic_array(u8, bct, sizeof(*bc)) bc 735 drivers/infiniband/hw/hfi1/trace_tx.h memcpy(__get_dynamic_array(bct), bc, bc 736 drivers/infiniband/hw/hfi1/trace_tx.h sizeof(*bc)); bc 771 drivers/infiniband/hw/hfi1/trace_tx.h TP_PROTO(struct hfi1_devdata *dd, struct buffer_control *bc), bc 772 drivers/infiniband/hw/hfi1/trace_tx.h TP_ARGS(dd, bc)); bc 775 drivers/infiniband/hw/hfi1/trace_tx.h TP_PROTO(struct hfi1_devdata *dd, struct buffer_control *bc), bc 776 drivers/infiniband/hw/hfi1/trace_tx.h TP_ARGS(dd, bc)); bc 1135 drivers/infiniband/hw/mlx5/mlx5_ib.h int buflen, size_t *bc); bc 1137 drivers/infiniband/hw/mlx5/mlx5_ib.h int buflen, size_t *bc); bc 1139 drivers/infiniband/hw/mlx5/mlx5_ib.h void *buffer, int buflen, size_t *bc); bc 167 drivers/infiniband/hw/mlx5/qp.c size_t *bc) bc 205 drivers/infiniband/hw/mlx5/qp.c *bc = bytes_copied; bc 225 drivers/infiniband/hw/mlx5/qp.c *bc = bytes_copied + bytes_copied2; bc 233 drivers/infiniband/hw/mlx5/qp.c size_t *bc) bc 253 drivers/infiniband/hw/mlx5/qp.c *bc = bytes_copied; bc 261 drivers/infiniband/hw/mlx5/qp.c size_t *bc) bc 279 drivers/infiniband/hw/mlx5/qp.c *bc = bytes_copied; bc 1237 drivers/isdn/hardware/mISDN/hfcpci.c mode_hfcpci(struct bchannel *bch, int bc, int protocol) bc 1246 drivers/isdn/hardware/mISDN/hfcpci.c bch->state, protocol, bch->nr, bc); bc 1248 drivers/isdn/hardware/mISDN/hfcpci.c fifo2 = bc; bc 1249 drivers/isdn/hardware/mISDN/hfcpci.c pcm_mode = (bc >> 24) & 0xff; bc 1255 drivers/isdn/hardware/mISDN/hfcpci.c rx_slot = (bc >> 8) & 0xff; bc 1256 drivers/isdn/hardware/mISDN/hfcpci.c tx_slot = (bc >> 16) & 0xff; bc 1257 drivers/isdn/hardware/mISDN/hfcpci.c bc = bc & 0xff; bc 1265 drivers/isdn/hardware/mISDN/hfcpci.c if (bc & 2) { bc 1282 drivers/isdn/hardware/mISDN/hfcpci.c bch->nr = bc; bc 1287 drivers/isdn/hardware/mISDN/hfcpci.c if (bc & 2) { bc 1310 drivers/isdn/hardware/mISDN/hfcpci.c bch->nr = bc; bc 1316 drivers/isdn/hardware/mISDN/hfcpci.c bch->nr = bc; bc 1319 drivers/isdn/hardware/mISDN/hfcpci.c if (bc & 2) { bc 1351 drivers/isdn/hardware/mISDN/hfcpci.c bch->nr = bc; bc 1354 drivers/isdn/hardware/mISDN/hfcpci.c if (bc & 2) { bc 1396 drivers/isdn/hardware/mISDN/hfcpci.c if (bc & 2) { bc 78 drivers/isdn/hardware/mISDN/netjet.c struct tiger_ch bc[2]; bc 96 drivers/isdn/hardware/mISDN/netjet.c card->bc[0].bch.debug = debug; bc 97 drivers/isdn/hardware/mISDN/netjet.c card->bc[1].bch.debug = debug; bc 175 drivers/isdn/hardware/mISDN/netjet.c fill_mem(struct tiger_ch *bc, u32 idx, u32 cnt, u32 fill) bc 177 drivers/isdn/hardware/mISDN/netjet.c struct tiger_hw *card = bc->bch.hw; bc 181 drivers/isdn/hardware/mISDN/netjet.c bc->bch.nr, fill, cnt, idx, card->send.idx); bc 182 drivers/isdn/hardware/mISDN/netjet.c if (bc->bch.nr & 2) { bc 198 drivers/isdn/hardware/mISDN/netjet.c mode_tiger(struct tiger_ch *bc, u32 protocol) bc 200 drivers/isdn/hardware/mISDN/netjet.c struct tiger_hw *card = bc->bch.hw; bc 203 drivers/isdn/hardware/mISDN/netjet.c bc->bch.nr, bc->bch.state, protocol); bc 206 drivers/isdn/hardware/mISDN/netjet.c if (bc->bch.state == ISDN_P_NONE) bc 208 drivers/isdn/hardware/mISDN/netjet.c fill_mem(bc, 0, card->send.size, 0xff); bc 209 drivers/isdn/hardware/mISDN/netjet.c bc->bch.state = protocol; bc 211 drivers/isdn/hardware/mISDN/netjet.c if ((card->bc[0].bch.state == ISDN_P_NONE) && bc 212 drivers/isdn/hardware/mISDN/netjet.c (card->bc[1].bch.state == ISDN_P_NONE)) { bc 217 drivers/isdn/hardware/mISDN/netjet.c test_and_clear_bit(FLG_HDLC, &bc->bch.Flags); bc 218 drivers/isdn/hardware/mISDN/netjet.c test_and_clear_bit(FLG_TRANSPARENT, &bc->bch.Flags); bc 219 drivers/isdn/hardware/mISDN/netjet.c bc->txstate = 0; bc 220 drivers/isdn/hardware/mISDN/netjet.c bc->rxstate = 0; bc 221 drivers/isdn/hardware/mISDN/netjet.c bc->lastrx = -1; bc 224 drivers/isdn/hardware/mISDN/netjet.c test_and_set_bit(FLG_TRANSPARENT, &bc->bch.Flags); bc 225 drivers/isdn/hardware/mISDN/netjet.c bc->bch.state = protocol; bc 226 drivers/isdn/hardware/mISDN/netjet.c bc->idx = 0; bc 227 drivers/isdn/hardware/mISDN/netjet.c bc->free = card->send.size / 2; bc 228 drivers/isdn/hardware/mISDN/netjet.c bc->rxstate = 0; bc 229 drivers/isdn/hardware/mISDN/netjet.c bc->txstate = TX_INIT | TX_IDLE; bc 230 drivers/isdn/hardware/mISDN/netjet.c bc->lastrx = -1; bc 238 drivers/isdn/hardware/mISDN/netjet.c test_and_set_bit(FLG_HDLC, &bc->bch.Flags); bc 239 drivers/isdn/hardware/mISDN/netjet.c bc->bch.state = protocol; bc 240 drivers/isdn/hardware/mISDN/netjet.c bc->idx = 0; bc 241 drivers/isdn/hardware/mISDN/netjet.c bc->free = card->send.size / 2; bc 242 drivers/isdn/hardware/mISDN/netjet.c bc->rxstate = 0; bc 243 drivers/isdn/hardware/mISDN/netjet.c bc->txstate = TX_INIT | TX_IDLE; bc 244 drivers/isdn/hardware/mISDN/netjet.c isdnhdlc_rcv_init(&bc->hrecv, 0); bc 245 drivers/isdn/hardware/mISDN/netjet.c isdnhdlc_out_init(&bc->hsend, 0); bc 246 drivers/isdn/hardware/mISDN/netjet.c bc->lastrx = -1; bc 311 drivers/isdn/hardware/mISDN/netjet.c card->bc[i].hsbuf = kmalloc(NJ_DMA_TXSIZE, GFP_ATOMIC); bc 312 drivers/isdn/hardware/mISDN/netjet.c if (!card->bc[i].hsbuf) { bc 316 drivers/isdn/hardware/mISDN/netjet.c card->bc[i].hrbuf = kmalloc(NJ_DMA_RXSIZE, GFP_ATOMIC); bc 317 drivers/isdn/hardware/mISDN/netjet.c if (!card->bc[i].hrbuf) { bc 363 drivers/isdn/hardware/mISDN/netjet.c read_dma(struct tiger_ch *bc, u32 idx, int cnt) bc 365 drivers/isdn/hardware/mISDN/netjet.c struct tiger_hw *card = bc->bch.hw; bc 370 drivers/isdn/hardware/mISDN/netjet.c if (bc->lastrx == idx) { bc 371 drivers/isdn/hardware/mISDN/netjet.c bc->rxstate |= RX_OVERRUN; bc 373 drivers/isdn/hardware/mISDN/netjet.c bc->bch.nr, idx); bc 375 drivers/isdn/hardware/mISDN/netjet.c bc->lastrx = idx; bc 376 drivers/isdn/hardware/mISDN/netjet.c if (test_bit(FLG_RX_OFF, &bc->bch.Flags)) { bc 377 drivers/isdn/hardware/mISDN/netjet.c bc->bch.dropcnt += cnt; bc 380 drivers/isdn/hardware/mISDN/netjet.c stat = bchannel_get_rxbuf(&bc->bch, cnt); bc 384 drivers/isdn/hardware/mISDN/netjet.c card->name, bc->bch.nr, cnt); bc 387 drivers/isdn/hardware/mISDN/netjet.c if (test_bit(FLG_TRANSPARENT, &bc->bch.Flags)) bc 388 drivers/isdn/hardware/mISDN/netjet.c p = skb_put(bc->bch.rx_skb, cnt); bc 390 drivers/isdn/hardware/mISDN/netjet.c p = bc->hrbuf; bc 394 drivers/isdn/hardware/mISDN/netjet.c if (bc->bch.nr & 2) bc 401 drivers/isdn/hardware/mISDN/netjet.c if (test_bit(FLG_TRANSPARENT, &bc->bch.Flags)) { bc 402 drivers/isdn/hardware/mISDN/netjet.c recv_Bchannel(&bc->bch, 0, false); bc 406 drivers/isdn/hardware/mISDN/netjet.c pn = bc->hrbuf; bc 408 drivers/isdn/hardware/mISDN/netjet.c stat = isdnhdlc_decode(&bc->hrecv, pn, cnt, &i, bc 409 drivers/isdn/hardware/mISDN/netjet.c bc->bch.rx_skb->data, bc->bch.maxlen); bc 411 drivers/isdn/hardware/mISDN/netjet.c p = skb_put(bc->bch.rx_skb, stat); bc 414 drivers/isdn/hardware/mISDN/netjet.c "B%1d-recv %s %d ", bc->bch.nr, bc 420 drivers/isdn/hardware/mISDN/netjet.c recv_Bchannel(&bc->bch, 0, false); bc 421 drivers/isdn/hardware/mISDN/netjet.c stat = bchannel_get_rxbuf(&bc->bch, bc->bch.maxlen); bc 424 drivers/isdn/hardware/mISDN/netjet.c card->name, bc->bch.nr, cnt); bc 429 drivers/isdn/hardware/mISDN/netjet.c card->name, bc->bch.nr); bc 432 drivers/isdn/hardware/mISDN/netjet.c card->name, bc->bch.nr); bc 435 drivers/isdn/hardware/mISDN/netjet.c card->name, bc->bch.nr, bc->bch.maxlen); bc 457 drivers/isdn/hardware/mISDN/netjet.c if (test_bit(FLG_ACTIVE, &card->bc[0].bch.Flags)) bc 458 drivers/isdn/hardware/mISDN/netjet.c read_dma(&card->bc[0], idx, cnt); bc 459 drivers/isdn/hardware/mISDN/netjet.c if (test_bit(FLG_ACTIVE, &card->bc[1].bch.Flags)) bc 460 drivers/isdn/hardware/mISDN/netjet.c read_dma(&card->bc[1], idx, cnt); bc 465 drivers/isdn/hardware/mISDN/netjet.c resync(struct tiger_ch *bc, struct tiger_hw *card) bc 469 drivers/isdn/hardware/mISDN/netjet.c if (bc->free > card->send.size / 2) bc 470 drivers/isdn/hardware/mISDN/netjet.c bc->free = card->send.size / 2; bc 476 drivers/isdn/hardware/mISDN/netjet.c bc->idx = (card->recv.size / 2) - 1; bc 478 drivers/isdn/hardware/mISDN/netjet.c bc->idx = card->recv.size - 1; bc 479 drivers/isdn/hardware/mISDN/netjet.c bc->txstate = TX_RUN; bc 481 drivers/isdn/hardware/mISDN/netjet.c __func__, bc->bch.nr, bc->free, bc->idx, card->send.idx); bc 487 drivers/isdn/hardware/mISDN/netjet.c fill_hdlc_flag(struct tiger_ch *bc) bc 489 drivers/isdn/hardware/mISDN/netjet.c struct tiger_hw *card = bc->bch.hw; bc 494 drivers/isdn/hardware/mISDN/netjet.c if (bc->free == 0) bc 497 drivers/isdn/hardware/mISDN/netjet.c __func__, bc->bch.nr, bc->free, bc->txstate, bc 498 drivers/isdn/hardware/mISDN/netjet.c bc->idx, card->send.idx); bc 499 drivers/isdn/hardware/mISDN/netjet.c if (bc->txstate & (TX_IDLE | TX_INIT | TX_UNDERRUN)) bc 500 drivers/isdn/hardware/mISDN/netjet.c resync(bc, card); bc 501 drivers/isdn/hardware/mISDN/netjet.c count = isdnhdlc_encode(&bc->hsend, NULL, 0, &i, bc 502 drivers/isdn/hardware/mISDN/netjet.c bc->hsbuf, bc->free); bc 504 drivers/isdn/hardware/mISDN/netjet.c bc->bch.nr, count); bc 505 drivers/isdn/hardware/mISDN/netjet.c bc->free -= count; bc 506 drivers/isdn/hardware/mISDN/netjet.c p = bc->hsbuf; bc 507 drivers/isdn/hardware/mISDN/netjet.c m = (bc->bch.nr & 1) ? 0xffffff00 : 0xffff00ff; bc 509 drivers/isdn/hardware/mISDN/netjet.c if (bc->idx >= card->send.size) bc 510 drivers/isdn/hardware/mISDN/netjet.c bc->idx = 0; bc 511 drivers/isdn/hardware/mISDN/netjet.c v = card->send.start[bc->idx]; bc 513 drivers/isdn/hardware/mISDN/netjet.c v |= (bc->bch.nr & 1) ? (u32)(p[i]) : ((u32)(p[i])) << 8; bc 514 drivers/isdn/hardware/mISDN/netjet.c card->send.start[bc->idx++] = v; bc 518 drivers/isdn/hardware/mISDN/netjet.c bc->bch.nr, card->name, count); bc 524 drivers/isdn/hardware/mISDN/netjet.c fill_dma(struct tiger_ch *bc) bc 526 drivers/isdn/hardware/mISDN/netjet.c struct tiger_hw *card = bc->bch.hw; bc 531 drivers/isdn/hardware/mISDN/netjet.c if (bc->free == 0) bc 533 drivers/isdn/hardware/mISDN/netjet.c if (!bc->bch.tx_skb) { bc 534 drivers/isdn/hardware/mISDN/netjet.c if (!test_bit(FLG_TX_EMPTY, &bc->bch.Flags)) bc 538 drivers/isdn/hardware/mISDN/netjet.c p = bc->bch.fill; bc 540 drivers/isdn/hardware/mISDN/netjet.c count = bc->bch.tx_skb->len - bc->bch.tx_idx; bc 544 drivers/isdn/hardware/mISDN/netjet.c card->name, __func__, bc->bch.nr, count, bc->free, bc 545 drivers/isdn/hardware/mISDN/netjet.c bc->bch.tx_idx, bc->bch.tx_skb->len, bc->txstate, bc 546 drivers/isdn/hardware/mISDN/netjet.c bc->idx, card->send.idx); bc 547 drivers/isdn/hardware/mISDN/netjet.c p = bc->bch.tx_skb->data + bc->bch.tx_idx; bc 549 drivers/isdn/hardware/mISDN/netjet.c if (bc->txstate & (TX_IDLE | TX_INIT | TX_UNDERRUN)) bc 550 drivers/isdn/hardware/mISDN/netjet.c resync(bc, card); bc 551 drivers/isdn/hardware/mISDN/netjet.c if (test_bit(FLG_HDLC, &bc->bch.Flags) && !fillempty) { bc 552 drivers/isdn/hardware/mISDN/netjet.c count = isdnhdlc_encode(&bc->hsend, p, count, &i, bc 553 drivers/isdn/hardware/mISDN/netjet.c bc->hsbuf, bc->free); bc 555 drivers/isdn/hardware/mISDN/netjet.c bc->bch.nr, i, count); bc 556 drivers/isdn/hardware/mISDN/netjet.c bc->bch.tx_idx += i; bc 557 drivers/isdn/hardware/mISDN/netjet.c bc->free -= count; bc 558 drivers/isdn/hardware/mISDN/netjet.c p = bc->hsbuf; bc 560 drivers/isdn/hardware/mISDN/netjet.c if (count > bc->free) bc 561 drivers/isdn/hardware/mISDN/netjet.c count = bc->free; bc 563 drivers/isdn/hardware/mISDN/netjet.c bc->bch.tx_idx += count; bc 564 drivers/isdn/hardware/mISDN/netjet.c bc->free -= count; bc 566 drivers/isdn/hardware/mISDN/netjet.c m = (bc->bch.nr & 1) ? 0xffffff00 : 0xffff00ff; bc 569 drivers/isdn/hardware/mISDN/netjet.c if (!(bc->bch.nr & 1)) bc 572 drivers/isdn/hardware/mISDN/netjet.c if (bc->idx >= card->send.size) bc 573 drivers/isdn/hardware/mISDN/netjet.c bc->idx = 0; bc 574 drivers/isdn/hardware/mISDN/netjet.c v = card->send.start[bc->idx]; bc 577 drivers/isdn/hardware/mISDN/netjet.c card->send.start[bc->idx++] = v; bc 581 drivers/isdn/hardware/mISDN/netjet.c if (bc->idx >= card->send.size) bc 582 drivers/isdn/hardware/mISDN/netjet.c bc->idx = 0; bc 583 drivers/isdn/hardware/mISDN/netjet.c v = card->send.start[bc->idx]; bc 586 drivers/isdn/hardware/mISDN/netjet.c v |= (bc->bch.nr & 1) ? n : n << 8; bc 587 drivers/isdn/hardware/mISDN/netjet.c card->send.start[bc->idx++] = v; bc 592 drivers/isdn/hardware/mISDN/netjet.c bc->bch.nr, card->name, count); bc 595 drivers/isdn/hardware/mISDN/netjet.c if (bc->free) bc 596 drivers/isdn/hardware/mISDN/netjet.c bc_next_frame(bc); bc 601 drivers/isdn/hardware/mISDN/netjet.c bc_next_frame(struct tiger_ch *bc) bc 605 drivers/isdn/hardware/mISDN/netjet.c if (bc->bch.tx_skb && bc->bch.tx_idx < bc->bch.tx_skb->len) { bc 606 drivers/isdn/hardware/mISDN/netjet.c fill_dma(bc); bc 608 drivers/isdn/hardware/mISDN/netjet.c dev_kfree_skb(bc->bch.tx_skb); bc 609 drivers/isdn/hardware/mISDN/netjet.c if (get_next_bframe(&bc->bch)) { bc 610 drivers/isdn/hardware/mISDN/netjet.c fill_dma(bc); bc 611 drivers/isdn/hardware/mISDN/netjet.c test_and_clear_bit(FLG_TX_EMPTY, &bc->bch.Flags); bc 612 drivers/isdn/hardware/mISDN/netjet.c } else if (test_bit(FLG_TX_EMPTY, &bc->bch.Flags)) { bc 613 drivers/isdn/hardware/mISDN/netjet.c fill_dma(bc); bc 614 drivers/isdn/hardware/mISDN/netjet.c } else if (test_bit(FLG_FILLEMPTY, &bc->bch.Flags)) { bc 615 drivers/isdn/hardware/mISDN/netjet.c test_and_set_bit(FLG_TX_EMPTY, &bc->bch.Flags); bc 625 drivers/isdn/hardware/mISDN/netjet.c send_tiger_bc(struct tiger_hw *card, struct tiger_ch *bc) bc 629 drivers/isdn/hardware/mISDN/netjet.c bc->free += card->send.size / 2; bc 630 drivers/isdn/hardware/mISDN/netjet.c if (bc->free >= card->send.size) { bc 631 drivers/isdn/hardware/mISDN/netjet.c if (!(bc->txstate & (TX_UNDERRUN | TX_INIT))) { bc 633 drivers/isdn/hardware/mISDN/netjet.c bc->bch.nr, bc->txstate); bc 634 drivers/isdn/hardware/mISDN/netjet.c bc->txstate |= TX_UNDERRUN; bc 636 drivers/isdn/hardware/mISDN/netjet.c bc->free = card->send.size; bc 638 drivers/isdn/hardware/mISDN/netjet.c ret = bc_next_frame(bc); bc 640 drivers/isdn/hardware/mISDN/netjet.c if (test_bit(FLG_HDLC, &bc->bch.Flags)) { bc 641 drivers/isdn/hardware/mISDN/netjet.c fill_hdlc_flag(bc); bc 645 drivers/isdn/hardware/mISDN/netjet.c bc->bch.nr, bc->free, bc->idx, card->send.idx); bc 646 drivers/isdn/hardware/mISDN/netjet.c if (!(bc->txstate & (TX_IDLE | TX_INIT))) { bc 647 drivers/isdn/hardware/mISDN/netjet.c fill_mem(bc, bc->idx, bc->free, 0xff); bc 648 drivers/isdn/hardware/mISDN/netjet.c if (bc->free == card->send.size) bc 649 drivers/isdn/hardware/mISDN/netjet.c bc->txstate |= TX_IDLE; bc 669 drivers/isdn/hardware/mISDN/netjet.c if (test_bit(FLG_ACTIVE, &card->bc[i].bch.Flags)) bc 670 drivers/isdn/hardware/mISDN/netjet.c send_tiger_bc(card, &card->bc[i]); bc 741 drivers/isdn/hardware/mISDN/netjet.c struct tiger_ch *bc = container_of(bch, struct tiger_ch, bch); bc 751 drivers/isdn/hardware/mISDN/netjet.c fill_dma(bc); bc 759 drivers/isdn/hardware/mISDN/netjet.c ret = mode_tiger(bc, ch->protocol); bc 770 drivers/isdn/hardware/mISDN/netjet.c mode_tiger(bc, ISDN_P_NONE); bc 783 drivers/isdn/hardware/mISDN/netjet.c channel_bctrl(struct tiger_ch *bc, struct mISDN_ctrl_req *cq) bc 785 drivers/isdn/hardware/mISDN/netjet.c return mISDN_ctrl_bchannel(&bc->bch, cq); bc 792 drivers/isdn/hardware/mISDN/netjet.c struct tiger_ch *bc = container_of(bch, struct tiger_ch, bch); bc 804 drivers/isdn/hardware/mISDN/netjet.c mode_tiger(bc, ISDN_P_NONE); bc 812 drivers/isdn/hardware/mISDN/netjet.c ret = channel_bctrl(bc, arg); bc 857 drivers/isdn/hardware/mISDN/netjet.c bch = &card->bc[rq->adr.channel - 1].bch; bc 933 drivers/isdn/hardware/mISDN/netjet.c mode_tiger(&card->bc[0], ISDN_P_NONE); bc 934 drivers/isdn/hardware/mISDN/netjet.c mode_tiger(&card->bc[1], ISDN_P_NONE); bc 950 drivers/isdn/hardware/mISDN/netjet.c mode_tiger(&card->bc[0], ISDN_P_NONE); bc 951 drivers/isdn/hardware/mISDN/netjet.c mode_tiger(&card->bc[1], ISDN_P_NONE); bc 963 drivers/isdn/hardware/mISDN/netjet.c mISDN_freebchannel(&card->bc[i].bch); bc 964 drivers/isdn/hardware/mISDN/netjet.c kfree(card->bc[i].hsbuf); bc 965 drivers/isdn/hardware/mISDN/netjet.c kfree(card->bc[i].hrbuf); bc 1018 drivers/isdn/hardware/mISDN/netjet.c card->bc[i].bch.nr = i + 1; bc 1020 drivers/isdn/hardware/mISDN/netjet.c mISDN_initbchannel(&card->bc[i].bch, MAX_DATA_MEM, bc 1022 drivers/isdn/hardware/mISDN/netjet.c card->bc[i].bch.hw = card; bc 1023 drivers/isdn/hardware/mISDN/netjet.c card->bc[i].bch.ch.send = nj_l2l1B; bc 1024 drivers/isdn/hardware/mISDN/netjet.c card->bc[i].bch.ch.ctrl = nj_bctrl; bc 1025 drivers/isdn/hardware/mISDN/netjet.c card->bc[i].bch.ch.nr = i + 1; bc 1026 drivers/isdn/hardware/mISDN/netjet.c list_add(&card->bc[i].bch.ch.list, bc 1028 drivers/isdn/hardware/mISDN/netjet.c card->bc[i].bch.hw = card; bc 66 drivers/isdn/hardware/mISDN/w6692.c struct w6692_ch bc[2]; bc 83 drivers/isdn/hardware/mISDN/w6692.c card->bc[0].bch.debug = debug; bc 84 drivers/isdn/hardware/mISDN/w6692.c card->bc[1].bch.debug = debug; bc 126 drivers/isdn/hardware/mISDN/w6692.c ReadW6692B(struct w6692_ch *bc, u8 offset) bc 128 drivers/isdn/hardware/mISDN/w6692.c return inb(bc->addr + offset); bc 132 drivers/isdn/hardware/mISDN/w6692.c WriteW6692B(struct w6692_ch *bc, u8 offset, u8 value) bc 134 drivers/isdn/hardware/mISDN/w6692.c outb(value, bc->addr + offset); bc 650 drivers/isdn/hardware/mISDN/w6692.c struct w6692_ch *wch = &card->bc[ch]; bc 837 drivers/isdn/hardware/mISDN/w6692.c w6692_mode(&card->bc[0], ISDN_P_NONE); bc 838 drivers/isdn/hardware/mISDN/w6692.c w6692_mode(&card->bc[1], ISDN_P_NONE); bc 850 drivers/isdn/hardware/mISDN/w6692.c WriteW6692B(&card->bc[0], W_B_EXIM, 0); bc 851 drivers/isdn/hardware/mISDN/w6692.c WriteW6692B(&card->bc[1], W_B_EXIM, 0); bc 855 drivers/isdn/hardware/mISDN/w6692.c WriteW6692B(&card->bc[0], W_B_CMDR, W_B_CMDR_RRST | W_B_CMDR_XRST); bc 856 drivers/isdn/hardware/mISDN/w6692.c WriteW6692B(&card->bc[1], W_B_CMDR, W_B_CMDR_RRST | W_B_CMDR_XRST); bc 934 drivers/isdn/hardware/mISDN/w6692.c struct w6692_ch *bc = container_of(bch, struct w6692_ch, bch); bc 946 drivers/isdn/hardware/mISDN/w6692.c W6692_fill_Bfifo(bc); bc 953 drivers/isdn/hardware/mISDN/w6692.c ret = w6692_mode(bc, ch->protocol); bc 964 drivers/isdn/hardware/mISDN/w6692.c w6692_mode(bc, ISDN_P_NONE); bc 995 drivers/isdn/hardware/mISDN/w6692.c bch = &card->bc[rq->adr.channel - 1].bch; bc 1027 drivers/isdn/hardware/mISDN/w6692.c struct w6692_ch *bc = container_of(bch, struct w6692_ch, bch); bc 1039 drivers/isdn/hardware/mISDN/w6692.c w6692_mode(bc, ISDN_P_NONE); bc 1223 drivers/isdn/hardware/mISDN/w6692.c card->bc[0].addr = card->addr; bc 1224 drivers/isdn/hardware/mISDN/w6692.c card->bc[1].addr = card->addr + 0x40; bc 1250 drivers/isdn/hardware/mISDN/w6692.c w6692_mode(&card->bc[0], ISDN_P_NONE); bc 1251 drivers/isdn/hardware/mISDN/w6692.c w6692_mode(&card->bc[1], ISDN_P_NONE); bc 1261 drivers/isdn/hardware/mISDN/w6692.c mISDN_freebchannel(&card->bc[1].bch); bc 1262 drivers/isdn/hardware/mISDN/w6692.c mISDN_freebchannel(&card->bc[0].bch); bc 1294 drivers/isdn/hardware/mISDN/w6692.c mISDN_initbchannel(&card->bc[i].bch, MAX_DATA_MEM, bc 1296 drivers/isdn/hardware/mISDN/w6692.c card->bc[i].bch.hw = card; bc 1297 drivers/isdn/hardware/mISDN/w6692.c card->bc[i].bch.nr = i + 1; bc 1298 drivers/isdn/hardware/mISDN/w6692.c card->bc[i].bch.ch.nr = i + 1; bc 1299 drivers/isdn/hardware/mISDN/w6692.c card->bc[i].bch.ch.send = w6692_l2l1B; bc 1300 drivers/isdn/hardware/mISDN/w6692.c card->bc[i].bch.ch.ctrl = w6692_bctrl; bc 1302 drivers/isdn/hardware/mISDN/w6692.c list_add(&card->bc[i].bch.ch.list, &card->dch.dev.bchannels); bc 1327 drivers/isdn/hardware/mISDN/w6692.c mISDN_freebchannel(&card->bc[1].bch); bc 1328 drivers/isdn/hardware/mISDN/w6692.c mISDN_freebchannel(&card->bc[0].bch); bc 363 drivers/media/dvb-frontends/bcm3510.c static int bcm3510_tuner_cmd(struct bcm3510_state* st,u8 bc, u16 n, u8 a) bc 379 drivers/media/dvb-frontends/bcm3510.c c.ctl_dat[0].data = 0x80 | bc; bc 454 drivers/media/dvb-frontends/bcm3510.c u8 bc,a; bc 463 drivers/media/dvb-frontends/bcm3510.c bc = 0x1c; bc 465 drivers/media/dvb-frontends/bcm3510.c bc = 0x2c; bc 467 drivers/media/dvb-frontends/bcm3510.c bc = 0x30; bc 488 drivers/media/dvb-frontends/bcm3510.c deb_info(" BC1_2_3_4: %x, N: %x A: %x\n", bc, n, a); bc 490 drivers/media/dvb-frontends/bcm3510.c return bcm3510_tuner_cmd(st,bc,n,a); bc 309 drivers/media/platform/davinci/isif.c static void isif_config_bclamp(struct isif_black_clamp *bc) bc 317 drivers/media/platform/davinci/isif.c regw(bc->dc_offset, CLDCOFST); bc 319 drivers/media/platform/davinci/isif.c if (bc->en) { bc 320 drivers/media/platform/davinci/isif.c val = bc->bc_mode_color << ISIF_BC_MODE_COLOR_SHIFT; bc 323 drivers/media/platform/davinci/isif.c val = val | 1 | (bc->horz.mode << ISIF_HORZ_BC_MODE_SHIFT); bc 327 drivers/media/platform/davinci/isif.c if (bc->horz.mode != ISIF_HORZ_BC_DISABLE) { bc 337 drivers/media/platform/davinci/isif.c val = bc->horz.win_count_calc | bc 338 drivers/media/platform/davinci/isif.c ((!!bc->horz.base_win_sel_calc) << bc 340 drivers/media/platform/davinci/isif.c ((!!bc->horz.clamp_pix_limit) << bc 342 drivers/media/platform/davinci/isif.c (bc->horz.win_h_sz_calc << bc 344 drivers/media/platform/davinci/isif.c (bc->horz.win_v_sz_calc << bc 348 drivers/media/platform/davinci/isif.c regw(bc->horz.win_start_h_calc, CLHWIN1); bc 349 drivers/media/platform/davinci/isif.c regw(bc->horz.win_start_v_calc, CLHWIN2); bc 356 drivers/media/platform/davinci/isif.c (bc->vert.reset_val_sel << ISIF_VERT_BC_RST_VAL_SEL_SHIFT) | bc 357 drivers/media/platform/davinci/isif.c (bc->vert.line_ave_coef << ISIF_VERT_BC_LINE_AVE_COEF_SHIFT); bc 361 drivers/media/platform/davinci/isif.c regw(bc->vert.ob_start_h, CLVWIN1); bc 363 drivers/media/platform/davinci/isif.c regw(bc->vert.ob_start_v, CLVWIN2); bc 365 drivers/media/platform/davinci/isif.c regw(bc->vert.ob_v_sz_calc, CLVWIN3); bc 367 drivers/media/platform/davinci/isif.c regw(bc->vert_start_sub, CLSV); bc 1961 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c qlcnic_sriov_cleanup_async_list(&adapter->ahw->sriov->bc); bc 184 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov.h struct qlcnic_back_channel bc; bc 144 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c struct qlcnic_back_channel *bc; bc 159 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c bc = &sriov->bc; bc 175 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c bc->bc_trans_wq = wq; bc 184 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c bc->bc_async_wq = wq; bc 185 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c INIT_LIST_HEAD(&bc->async_cmd_list); bc 186 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c INIT_WORK(&bc->vf_async_work, qlcnic_sriov_handle_async_issue_cmd); bc 187 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c spin_lock_init(&bc->queue_lock); bc 188 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c bc->adapter = adapter; bc 225 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c destroy_workqueue(bc->bc_async_wq); bc 228 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c destroy_workqueue(bc->bc_trans_wq); bc 263 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c struct qlcnic_back_channel *bc = &sriov->bc; bc 270 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c qlcnic_sriov_cleanup_async_list(bc); bc 271 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c destroy_workqueue(bc->bc_async_wq); bc 280 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c destroy_workqueue(bc->bc_trans_wq); bc 855 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c queue_work(sriov->bc.bc_trans_wq, &vf->trans_work); bc 1379 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c u16 seq = ++adapter->ahw->sriov->bc.trans_counter; bc 1522 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c void qlcnic_sriov_cleanup_async_list(struct qlcnic_back_channel *bc) bc 1524 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c struct list_head *head = &bc->async_cmd_list; bc 1527 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c flush_workqueue(bc->bc_async_wq); bc 1528 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c cancel_work_sync(&bc->vf_async_work); bc 1530 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c spin_lock(&bc->queue_lock); bc 1538 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c spin_unlock(&bc->queue_lock); bc 1599 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c struct qlcnic_back_channel *bc; bc 1604 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c bc = container_of(work, struct qlcnic_back_channel, vf_async_work); bc 1605 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c head = &bc->async_cmd_list; bc 1607 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c spin_lock(&bc->queue_lock); bc 1609 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c spin_unlock(&bc->queue_lock); bc 1614 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c __qlcnic_sriov_issue_cmd(bc->adapter, cmd); bc 1619 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c queue_work(bc->bc_async_wq, &bc->vf_async_work); bc 1625 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c qlcnic_sriov_alloc_async_cmd(struct qlcnic_back_channel *bc, bc 1636 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c spin_lock(&bc->queue_lock); bc 1637 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c list_add_tail(&entry->list, &bc->async_cmd_list); bc 1638 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c spin_unlock(&bc->queue_lock); bc 1643 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c static void qlcnic_sriov_schedule_async_cmd(struct qlcnic_back_channel *bc, bc 1648 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c entry = qlcnic_sriov_alloc_async_cmd(bc, cmd); bc 1655 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c queue_work(bc->bc_async_wq, &bc->vf_async_work); bc 1662 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c struct qlcnic_back_channel *bc = &adapter->ahw->sriov->bc; bc 1667 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c qlcnic_sriov_schedule_async_cmd(bc, cmd); bc 2073 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c qlcnic_sriov_cleanup_async_list(&sriov->bc); bc 410 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c struct qlcnic_back_channel *bc = &sriov->bc; bc 416 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c destroy_workqueue(bc->bc_flr_wq); bc 421 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c struct qlcnic_back_channel *bc = &adapter->ahw->sriov->bc; bc 430 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c bc->bc_flr_wq = wq; bc 1702 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c queue_work(sriov->bc.bc_flr_wq, &vf->flr_work); bc 323 drivers/net/ethernet/tehuti/tehuti.h #define TXD_W1_VAL(bc, checksum, vtag, lgsnd, vlan_id) \ bc 324 drivers/net/ethernet/tehuti/tehuti.h ((bc) | ((checksum)<<5) | ((vtag)<<8) | \ bc 260 drivers/net/hamradio/baycom_epp.c #define tenms_to_flags(bc,tenms) ((tenms * bc->bitrate) / 800) bc 264 drivers/net/hamradio/baycom_epp.c static inline void baycom_int_freq(struct baycom_state *bc) bc 271 drivers/net/hamradio/baycom_epp.c bc->debug_vals.cur_intcnt++; bc 272 drivers/net/hamradio/baycom_epp.c if (time_after_eq(cur_jiffies, bc->debug_vals.last_jiffies + HZ)) { bc 273 drivers/net/hamradio/baycom_epp.c bc->debug_vals.last_jiffies = cur_jiffies; bc 274 drivers/net/hamradio/baycom_epp.c bc->debug_vals.last_intcnt = bc->debug_vals.cur_intcnt; bc 275 drivers/net/hamradio/baycom_epp.c bc->debug_vals.cur_intcnt = 0; bc 276 drivers/net/hamradio/baycom_epp.c bc->debug_vals.last_pllcorr = bc->debug_vals.cur_pllcorr; bc 277 drivers/net/hamradio/baycom_epp.c bc->debug_vals.cur_pllcorr = 0; bc 292 drivers/net/hamradio/baycom_epp.c static int eppconfig(struct baycom_state *bc) bc 305 drivers/net/hamradio/baycom_epp.c bc->cfg.intclk ? "int" : "ext", bc 306 drivers/net/hamradio/baycom_epp.c bc->cfg.extmodem ? "ext" : "int", bc->cfg.fclk, bc->cfg.bps, bc 307 drivers/net/hamradio/baycom_epp.c (bc->cfg.fclk + 8 * bc->cfg.bps) / (16 * bc->cfg.bps), bc 308 drivers/net/hamradio/baycom_epp.c bc->cfg.loopback ? ",loopback" : ""); bc 309 drivers/net/hamradio/baycom_epp.c sprintf(portarg, "%ld", bc->pdev->port->base); bc 317 drivers/net/hamradio/baycom_epp.c static inline void do_kiss_params(struct baycom_state *bc, bc 331 drivers/net/hamradio/baycom_epp.c bc->ch_params.tx_delay = data[1]; bc 332 drivers/net/hamradio/baycom_epp.c PKP("TX delay = %ums", 10 * bc->ch_params.tx_delay); bc 335 drivers/net/hamradio/baycom_epp.c bc->ch_params.ppersist = data[1]; bc 336 drivers/net/hamradio/baycom_epp.c PKP("p persistence = %u", bc->ch_params.ppersist); bc 339 drivers/net/hamradio/baycom_epp.c bc->ch_params.slottime = data[1]; bc 340 drivers/net/hamradio/baycom_epp.c PKP("slot time = %ums", bc->ch_params.slottime); bc 343 drivers/net/hamradio/baycom_epp.c bc->ch_params.tx_tail = data[1]; bc 344 drivers/net/hamradio/baycom_epp.c PKP("TX tail = %ums", bc->ch_params.tx_tail); bc 347 drivers/net/hamradio/baycom_epp.c bc->ch_params.fulldup = !!data[1]; bc 348 drivers/net/hamradio/baycom_epp.c PKP("%s duplex", bc->ch_params.fulldup ? "full" : "half"); bc 358 drivers/net/hamradio/baycom_epp.c static void encode_hdlc(struct baycom_state *bc) bc 367 drivers/net/hamradio/baycom_epp.c if (bc->hdlctx.bufcnt > 0) bc 369 drivers/net/hamradio/baycom_epp.c skb = bc->skb; bc 372 drivers/net/hamradio/baycom_epp.c bc->skb = NULL; bc 374 drivers/net/hamradio/baycom_epp.c wp = bc->hdlctx.buf; bc 412 drivers/net/hamradio/baycom_epp.c bc->hdlctx.bufptr = bc->hdlctx.buf; bc 413 drivers/net/hamradio/baycom_epp.c bc->hdlctx.bufcnt = wp - bc->hdlctx.buf; bc 415 drivers/net/hamradio/baycom_epp.c bc->dev->stats.tx_packets++; bc 420 drivers/net/hamradio/baycom_epp.c static int transmit(struct baycom_state *bc, int cnt, unsigned char stat) bc 422 drivers/net/hamradio/baycom_epp.c struct parport *pp = bc->pdev->port; bc 426 drivers/net/hamradio/baycom_epp.c if (bc->hdlctx.state == tx_tail && !(stat & EPP_PTTBIT)) bc 427 drivers/net/hamradio/baycom_epp.c bc->hdlctx.state = tx_idle; bc 428 drivers/net/hamradio/baycom_epp.c if (bc->hdlctx.state == tx_idle && bc->hdlctx.calibrate <= 0) { bc 429 drivers/net/hamradio/baycom_epp.c if (bc->hdlctx.bufcnt <= 0) bc 430 drivers/net/hamradio/baycom_epp.c encode_hdlc(bc); bc 431 drivers/net/hamradio/baycom_epp.c if (bc->hdlctx.bufcnt <= 0) bc 433 drivers/net/hamradio/baycom_epp.c if (!bc->ch_params.fulldup) { bc 435 drivers/net/hamradio/baycom_epp.c bc->hdlctx.slotcnt = bc->ch_params.slottime; bc 438 drivers/net/hamradio/baycom_epp.c if ((--bc->hdlctx.slotcnt) > 0) bc 440 drivers/net/hamradio/baycom_epp.c bc->hdlctx.slotcnt = bc->ch_params.slottime; bc 441 drivers/net/hamradio/baycom_epp.c if ((prandom_u32() % 256) > bc->ch_params.ppersist) bc 445 drivers/net/hamradio/baycom_epp.c if (bc->hdlctx.state == tx_idle && bc->hdlctx.bufcnt > 0) { bc 446 drivers/net/hamradio/baycom_epp.c bc->hdlctx.state = tx_keyup; bc 447 drivers/net/hamradio/baycom_epp.c bc->hdlctx.flags = tenms_to_flags(bc, bc->ch_params.tx_delay); bc 448 drivers/net/hamradio/baycom_epp.c bc->ptt_keyed++; bc 451 drivers/net/hamradio/baycom_epp.c switch (bc->hdlctx.state) { bc 453 drivers/net/hamradio/baycom_epp.c i = min_t(int, cnt, bc->hdlctx.flags); bc 455 drivers/net/hamradio/baycom_epp.c bc->hdlctx.flags -= i; bc 456 drivers/net/hamradio/baycom_epp.c if (bc->hdlctx.flags <= 0) bc 457 drivers/net/hamradio/baycom_epp.c bc->hdlctx.state = tx_data; bc 468 drivers/net/hamradio/baycom_epp.c if (bc->hdlctx.bufcnt <= 0) { bc 469 drivers/net/hamradio/baycom_epp.c encode_hdlc(bc); bc 470 drivers/net/hamradio/baycom_epp.c if (bc->hdlctx.bufcnt <= 0) { bc 471 drivers/net/hamradio/baycom_epp.c bc->hdlctx.state = tx_tail; bc 472 drivers/net/hamradio/baycom_epp.c bc->hdlctx.flags = tenms_to_flags(bc, bc->ch_params.tx_tail); bc 476 drivers/net/hamradio/baycom_epp.c i = min_t(int, cnt, bc->hdlctx.bufcnt); bc 477 drivers/net/hamradio/baycom_epp.c bc->hdlctx.bufcnt -= i; bc 479 drivers/net/hamradio/baycom_epp.c if (i != pp->ops->epp_write_data(pp, bc->hdlctx.bufptr, i, 0)) bc 481 drivers/net/hamradio/baycom_epp.c bc->hdlctx.bufptr += i; bc 485 drivers/net/hamradio/baycom_epp.c encode_hdlc(bc); bc 486 drivers/net/hamradio/baycom_epp.c if (bc->hdlctx.bufcnt > 0) { bc 487 drivers/net/hamradio/baycom_epp.c bc->hdlctx.state = tx_data; bc 490 drivers/net/hamradio/baycom_epp.c i = min_t(int, cnt, bc->hdlctx.flags); bc 493 drivers/net/hamradio/baycom_epp.c bc->hdlctx.flags -= i; bc 506 drivers/net/hamradio/baycom_epp.c if (bc->hdlctx.calibrate <= 0) bc 508 drivers/net/hamradio/baycom_epp.c i = min_t(int, cnt, bc->hdlctx.calibrate); bc 510 drivers/net/hamradio/baycom_epp.c bc->hdlctx.calibrate -= i; bc 528 drivers/net/hamradio/baycom_epp.c struct baycom_state *bc = netdev_priv(dev); bc 533 drivers/net/hamradio/baycom_epp.c if (bc->hdlcrx.bufcnt < 4) bc 535 drivers/net/hamradio/baycom_epp.c if (!check_crc_ccitt(bc->hdlcrx.buf, bc->hdlcrx.bufcnt)) bc 537 drivers/net/hamradio/baycom_epp.c pktlen = bc->hdlcrx.bufcnt-2+1; /* KISS kludge */ bc 545 drivers/net/hamradio/baycom_epp.c memcpy(cp, bc->hdlcrx.buf, pktlen - 1); bc 553 drivers/net/hamradio/baycom_epp.c struct baycom_state *bc = netdev_priv(dev); bc 554 drivers/net/hamradio/baycom_epp.c struct parport *pp = bc->pdev->port; bc 561 drivers/net/hamradio/baycom_epp.c numbits = bc->hdlcrx.numbits; bc 562 drivers/net/hamradio/baycom_epp.c state = bc->hdlcrx.state; bc 563 drivers/net/hamradio/baycom_epp.c bitstream = bc->hdlcrx.bitstream; bc 564 drivers/net/hamradio/baycom_epp.c bitbuf = bc->hdlcrx.bitbuf; bc 593 drivers/net/hamradio/baycom_epp.c bc->hdlcrx.bufcnt = 0; bc 594 drivers/net/hamradio/baycom_epp.c bc->hdlcrx.bufptr = bc->hdlcrx.buf; bc 607 drivers/net/hamradio/baycom_epp.c if (bc->hdlcrx.bufcnt >= TXBUFFER_SIZE) { bc 610 drivers/net/hamradio/baycom_epp.c *(bc->hdlcrx.bufptr)++ = bitbuf >> (16-numbits); bc 611 drivers/net/hamradio/baycom_epp.c bc->hdlcrx.bufcnt++; bc 617 drivers/net/hamradio/baycom_epp.c bc->hdlcrx.numbits = numbits; bc 618 drivers/net/hamradio/baycom_epp.c bc->hdlcrx.state = state; bc 619 drivers/net/hamradio/baycom_epp.c bc->hdlcrx.bitstream = bitstream; bc 620 drivers/net/hamradio/baycom_epp.c bc->hdlcrx.bitbuf = bitbuf; bc 640 drivers/net/hamradio/baycom_epp.c struct baycom_state *bc; bc 647 drivers/net/hamradio/baycom_epp.c bc = container_of(work, struct baycom_state, run_work.work); bc 648 drivers/net/hamradio/baycom_epp.c dev = bc->dev; bc 649 drivers/net/hamradio/baycom_epp.c if (!bc->work_running) bc 651 drivers/net/hamradio/baycom_epp.c baycom_int_freq(bc); bc 652 drivers/net/hamradio/baycom_epp.c pp = bc->pdev->port; bc 656 drivers/net/hamradio/baycom_epp.c bc->stat = stat; bc 657 drivers/net/hamradio/baycom_epp.c bc->debug_vals.last_pllcorr = stat; bc 659 drivers/net/hamradio/baycom_epp.c if (bc->modem == EPP_FPGAEXTSTATUS) { bc 680 drivers/net/hamradio/baycom_epp.c if (transmit(bc, cnt2, stat)) bc 687 drivers/net/hamradio/baycom_epp.c bc->stat = stat; bc 707 drivers/net/hamradio/baycom_epp.c if (transmit(bc, cnt, stat)) bc 731 drivers/net/hamradio/baycom_epp.c if (bc->bitrate < 50000) bc 733 drivers/net/hamradio/baycom_epp.c else if (bc->bitrate < 100000) bc 745 drivers/net/hamradio/baycom_epp.c bc->debug_vals.mod_cycles = time2 - time1; bc 746 drivers/net/hamradio/baycom_epp.c bc->debug_vals.demod_cycles = time3 - time2; bc 748 drivers/net/hamradio/baycom_epp.c schedule_delayed_work(&bc->run_work, 1); bc 749 drivers/net/hamradio/baycom_epp.c if (!bc->skb) bc 763 drivers/net/hamradio/baycom_epp.c struct baycom_state *bc = netdev_priv(dev); bc 769 drivers/net/hamradio/baycom_epp.c do_kiss_params(bc, skb->data, skb->len); bc 773 drivers/net/hamradio/baycom_epp.c if (bc->skb) { bc 783 drivers/net/hamradio/baycom_epp.c bc->skb = skb; bc 803 drivers/net/hamradio/baycom_epp.c struct baycom_state *bc = netdev_priv(dev); bc 806 drivers/net/hamradio/baycom_epp.c if (!parport_claim(bc->pdev)) bc 823 drivers/net/hamradio/baycom_epp.c struct baycom_state *bc = netdev_priv(dev); bc 848 drivers/net/hamradio/baycom_epp.c memset(&bc->modem, 0, sizeof(bc->modem)); bc 863 drivers/net/hamradio/baycom_epp.c bc->pdev = parport_register_dev_model(pp, dev->name, &par_cb, i); bc 865 drivers/net/hamradio/baycom_epp.c if (!bc->pdev) { bc 869 drivers/net/hamradio/baycom_epp.c if (parport_claim(bc->pdev)) { bc 871 drivers/net/hamradio/baycom_epp.c parport_unregister_device(bc->pdev); bc 875 drivers/net/hamradio/baycom_epp.c INIT_DELAYED_WORK(&bc->run_work, epp_bh); bc 876 drivers/net/hamradio/baycom_epp.c bc->work_running = 1; bc 877 drivers/net/hamradio/baycom_epp.c bc->modem = EPP_CONVENTIONAL; bc 878 drivers/net/hamradio/baycom_epp.c if (eppconfig(bc)) bc 881 drivers/net/hamradio/baycom_epp.c bc->modem = /*EPP_FPGA*/ EPP_FPGAEXTSTATUS; bc 914 drivers/net/hamradio/baycom_epp.c bc->bitrate = i * (8 * HZ) / tstart; bc 916 drivers/net/hamradio/baycom_epp.c i = bc->bitrate >> 3; bc 922 drivers/net/hamradio/baycom_epp.c bc_drvname, bc->bitrate, j, bc->bitrate >> (j+2)); bc 929 drivers/net/hamradio/baycom_epp.c bc->hdlcrx.state = 0; bc 930 drivers/net/hamradio/baycom_epp.c bc->hdlcrx.numbits = 0; bc 931 drivers/net/hamradio/baycom_epp.c bc->hdlctx.state = tx_idle; bc 932 drivers/net/hamradio/baycom_epp.c bc->hdlctx.bufcnt = 0; bc 933 drivers/net/hamradio/baycom_epp.c bc->hdlctx.slotcnt = bc->ch_params.slottime; bc 934 drivers/net/hamradio/baycom_epp.c bc->hdlctx.calibrate = 0; bc 936 drivers/net/hamradio/baycom_epp.c schedule_delayed_work(&bc->run_work, 1); bc 943 drivers/net/hamradio/baycom_epp.c parport_release(bc->pdev); bc 944 drivers/net/hamradio/baycom_epp.c parport_unregister_device(bc->pdev); bc 952 drivers/net/hamradio/baycom_epp.c struct baycom_state *bc = netdev_priv(dev); bc 953 drivers/net/hamradio/baycom_epp.c struct parport *pp = bc->pdev->port; bc 956 drivers/net/hamradio/baycom_epp.c bc->work_running = 0; bc 957 drivers/net/hamradio/baycom_epp.c cancel_delayed_work_sync(&bc->run_work); bc 958 drivers/net/hamradio/baycom_epp.c bc->stat = EPP_DCDBIT; bc 962 drivers/net/hamradio/baycom_epp.c parport_release(bc->pdev); bc 963 drivers/net/hamradio/baycom_epp.c parport_unregister_device(bc->pdev); bc 964 drivers/net/hamradio/baycom_epp.c dev_kfree_skb(bc->skb); bc 965 drivers/net/hamradio/baycom_epp.c bc->skb = NULL; bc 973 drivers/net/hamradio/baycom_epp.c static int baycom_setmode(struct baycom_state *bc, const char *modestr) bc 978 drivers/net/hamradio/baycom_epp.c bc->cfg.intclk = 1; bc 980 drivers/net/hamradio/baycom_epp.c bc->cfg.intclk = 0; bc 982 drivers/net/hamradio/baycom_epp.c bc->cfg.extmodem = 0; bc 984 drivers/net/hamradio/baycom_epp.c bc->cfg.extmodem = 1; bc 986 drivers/net/hamradio/baycom_epp.c bc->cfg.loopback = 0; bc 988 drivers/net/hamradio/baycom_epp.c bc->cfg.loopback = 1; bc 990 drivers/net/hamradio/baycom_epp.c bc->cfg.fclk = simple_strtoul(cp+5, NULL, 0); bc 991 drivers/net/hamradio/baycom_epp.c if (bc->cfg.fclk < 1000000) bc 992 drivers/net/hamradio/baycom_epp.c bc->cfg.fclk = 1000000; bc 993 drivers/net/hamradio/baycom_epp.c if (bc->cfg.fclk > 25000000) bc 994 drivers/net/hamradio/baycom_epp.c bc->cfg.fclk = 25000000; bc 997 drivers/net/hamradio/baycom_epp.c bc->cfg.bps = simple_strtoul(cp+4, NULL, 0); bc 998 drivers/net/hamradio/baycom_epp.c if (bc->cfg.bps < 1000) bc 999 drivers/net/hamradio/baycom_epp.c bc->cfg.bps = 1000; bc 1000 drivers/net/hamradio/baycom_epp.c if (bc->cfg.bps > 1500000) bc 1001 drivers/net/hamradio/baycom_epp.c bc->cfg.bps = 1500000; bc 1010 drivers/net/hamradio/baycom_epp.c struct baycom_state *bc = netdev_priv(dev); bc 1023 drivers/net/hamradio/baycom_epp.c hi.data.cp.tx_delay = bc->ch_params.tx_delay; bc 1024 drivers/net/hamradio/baycom_epp.c hi.data.cp.tx_tail = bc->ch_params.tx_tail; bc 1025 drivers/net/hamradio/baycom_epp.c hi.data.cp.slottime = bc->ch_params.slottime; bc 1026 drivers/net/hamradio/baycom_epp.c hi.data.cp.ppersist = bc->ch_params.ppersist; bc 1027 drivers/net/hamradio/baycom_epp.c hi.data.cp.fulldup = bc->ch_params.fulldup; bc 1033 drivers/net/hamradio/baycom_epp.c bc->ch_params.tx_delay = hi.data.cp.tx_delay; bc 1034 drivers/net/hamradio/baycom_epp.c bc->ch_params.tx_tail = hi.data.cp.tx_tail; bc 1035 drivers/net/hamradio/baycom_epp.c bc->ch_params.slottime = hi.data.cp.slottime; bc 1036 drivers/net/hamradio/baycom_epp.c bc->ch_params.ppersist = hi.data.cp.ppersist; bc 1037 drivers/net/hamradio/baycom_epp.c bc->ch_params.fulldup = hi.data.cp.fulldup; bc 1038 drivers/net/hamradio/baycom_epp.c bc->hdlctx.slotcnt = 1; bc 1060 drivers/net/hamradio/baycom_epp.c hi.data.cs.ptt = !!(bc->stat & EPP_PTTBIT); bc 1061 drivers/net/hamradio/baycom_epp.c hi.data.cs.dcd = !(bc->stat & EPP_DCDBIT); bc 1062 drivers/net/hamradio/baycom_epp.c hi.data.cs.ptt_keyed = bc->ptt_keyed; bc 1070 drivers/net/hamradio/baycom_epp.c hi.data.ocs.ptt = !!(bc->stat & EPP_PTTBIT); bc 1071 drivers/net/hamradio/baycom_epp.c hi.data.ocs.dcd = !(bc->stat & EPP_DCDBIT); bc 1072 drivers/net/hamradio/baycom_epp.c hi.data.ocs.ptt_keyed = bc->ptt_keyed; bc 1078 drivers/net/hamradio/baycom_epp.c bc->hdlctx.calibrate = hi.data.calibrate * bc->bitrate / 8; bc 1087 drivers/net/hamradio/baycom_epp.c bc->cfg.intclk ? "int" : "ext", bc 1088 drivers/net/hamradio/baycom_epp.c bc->cfg.extmodem ? "ext" : "int", bc->cfg.fclk, bc->cfg.bps, bc 1089 drivers/net/hamradio/baycom_epp.c bc->cfg.loopback ? ",loopback" : ""); bc 1096 drivers/net/hamradio/baycom_epp.c return baycom_setmode(bc, hi.data.modename); bc 1134 drivers/net/hamradio/baycom_epp.c struct baycom_state *bc; bc 1139 drivers/net/hamradio/baycom_epp.c bc = netdev_priv(dev); bc 1143 drivers/net/hamradio/baycom_epp.c bc->ch_params = dflt_ch_params; bc 1144 drivers/net/hamradio/baycom_epp.c bc->ptt_keyed = 0; bc 1151 drivers/net/hamradio/baycom_epp.c bc->skb = NULL; bc 1206 drivers/net/hamradio/baycom_epp.c struct baycom_state *bc = netdev_priv(dev); bc 1211 drivers/net/hamradio/baycom_epp.c bc->dev = dev; bc 1212 drivers/net/hamradio/baycom_epp.c bc->magic = BAYCOM_MAGIC; bc 1213 drivers/net/hamradio/baycom_epp.c bc->cfg.fclk = 19666600; bc 1214 drivers/net/hamradio/baycom_epp.c bc->cfg.bps = 9600; bc 1281 drivers/net/hamradio/baycom_epp.c struct baycom_state *bc = netdev_priv(dev); bc 1282 drivers/net/hamradio/baycom_epp.c if (bc->magic == BAYCOM_MAGIC) { bc 143 drivers/net/hamradio/baycom_par.c static inline void baycom_int_freq(struct baycom_state *bc) bc 150 drivers/net/hamradio/baycom_par.c bc->debug_vals.cur_intcnt++; bc 151 drivers/net/hamradio/baycom_par.c if (time_after_eq(cur_jiffies, bc->debug_vals.last_jiffies + HZ)) { bc 152 drivers/net/hamradio/baycom_par.c bc->debug_vals.last_jiffies = cur_jiffies; bc 153 drivers/net/hamradio/baycom_par.c bc->debug_vals.last_intcnt = bc->debug_vals.cur_intcnt; bc 154 drivers/net/hamradio/baycom_par.c bc->debug_vals.cur_intcnt = 0; bc 155 drivers/net/hamradio/baycom_par.c bc->debug_vals.last_pllcorr = bc->debug_vals.cur_pllcorr; bc 156 drivers/net/hamradio/baycom_par.c bc->debug_vals.cur_pllcorr = 0; bc 179 drivers/net/hamradio/baycom_par.c static inline void par96_tx(struct net_device *dev, struct baycom_state *bc) bc 182 drivers/net/hamradio/baycom_par.c unsigned int data = hdlcdrv_getbits(&bc->hdrv); bc 183 drivers/net/hamradio/baycom_par.c struct parport *pp = bc->pdev->port; bc 187 drivers/net/hamradio/baycom_par.c bc->modem.par96.scram = ((bc->modem.par96.scram << 1) | bc 188 drivers/net/hamradio/baycom_par.c (bc->modem.par96.scram & 1)); bc 190 drivers/net/hamradio/baycom_par.c bc->modem.par96.scram ^= 1; bc 191 drivers/net/hamradio/baycom_par.c if (bc->modem.par96.scram & (PAR96_SCRAM_TAP1 << 1)) bc 192 drivers/net/hamradio/baycom_par.c bc->modem.par96.scram ^= bc 194 drivers/net/hamradio/baycom_par.c if (bc->modem.par96.scram & (PAR96_SCRAM_TAP1 << 2)) bc 203 drivers/net/hamradio/baycom_par.c static inline void par96_rx(struct net_device *dev, struct baycom_state *bc) bc 207 drivers/net/hamradio/baycom_par.c struct parport *pp = bc->pdev->port; bc 213 drivers/net/hamradio/baycom_par.c bc->modem.par96.descram = (bc->modem.par96.descram << 1); bc 215 drivers/net/hamradio/baycom_par.c bc->modem.par96.descram |= 1; bc 216 drivers/net/hamradio/baycom_par.c descx = bc->modem.par96.descram ^ bc 217 drivers/net/hamradio/baycom_par.c (bc->modem.par96.descram >> 1); bc 227 drivers/net/hamradio/baycom_par.c hdlcdrv_putbits(&bc->hdrv, data); bc 231 drivers/net/hamradio/baycom_par.c if (bc->options & BAYCOM_OPTIONS_SOFTDCD) { bc 232 drivers/net/hamradio/baycom_par.c bc->modem.par96.dcd_shreg = (bc->modem.par96.dcd_shreg >> 16) bc 237 drivers/net/hamradio/baycom_par.c if ((bc->modem.par96.dcd_shreg & mask) == mask2) bc 238 drivers/net/hamradio/baycom_par.c bc->modem.par96.dcd_count = HDLCDRV_MAXFLEN+4; bc 242 drivers/net/hamradio/baycom_par.c if (((bc->modem.par96.dcd_shreg & mask) == mask2) && bc 243 drivers/net/hamradio/baycom_par.c (bc->modem.par96.dcd_count >= 0)) bc 244 drivers/net/hamradio/baycom_par.c bc->modem.par96.dcd_count -= HDLCDRV_MAXFLEN-10; bc 246 drivers/net/hamradio/baycom_par.c if (bc->modem.par96.dcd_count >= 0) bc 247 drivers/net/hamradio/baycom_par.c bc->modem.par96.dcd_count -= 2; bc 248 drivers/net/hamradio/baycom_par.c hdlcdrv_setdcd(&bc->hdrv, bc->modem.par96.dcd_count > 0); bc 250 drivers/net/hamradio/baycom_par.c hdlcdrv_setdcd(&bc->hdrv, !!(pp->ops->read_status(pp) & PAR96_DCD)); bc 259 drivers/net/hamradio/baycom_par.c struct baycom_state *bc = netdev_priv(dev); bc 261 drivers/net/hamradio/baycom_par.c baycom_int_freq(bc); bc 265 drivers/net/hamradio/baycom_par.c if (hdlcdrv_ptt(&bc->hdrv)) bc 266 drivers/net/hamradio/baycom_par.c par96_tx(dev, bc); bc 268 drivers/net/hamradio/baycom_par.c par96_rx(dev, bc); bc 269 drivers/net/hamradio/baycom_par.c if (--bc->modem.arb_divider <= 0) { bc 270 drivers/net/hamradio/baycom_par.c bc->modem.arb_divider = 6; bc 272 drivers/net/hamradio/baycom_par.c hdlcdrv_arbitrate(dev, &bc->hdrv); bc 276 drivers/net/hamradio/baycom_par.c hdlcdrv_transmitter(dev, &bc->hdrv); bc 277 drivers/net/hamradio/baycom_par.c hdlcdrv_receiver(dev, &bc->hdrv); bc 286 drivers/net/hamradio/baycom_par.c struct baycom_state *bc = netdev_priv(dev); bc 289 drivers/net/hamradio/baycom_par.c if (!parport_claim(bc->pdev)) bc 297 drivers/net/hamradio/baycom_par.c struct baycom_state *bc = netdev_priv(dev); bc 302 drivers/net/hamradio/baycom_par.c if (!dev || !bc) bc 319 drivers/net/hamradio/baycom_par.c memset(&bc->modem, 0, sizeof(bc->modem)); bc 320 drivers/net/hamradio/baycom_par.c bc->hdrv.par.bitrate = 9600; bc 335 drivers/net/hamradio/baycom_par.c bc->pdev = parport_register_dev_model(pp, dev->name, &par_cb, i); bc 337 drivers/net/hamradio/baycom_par.c if (!bc->pdev) { bc 341 drivers/net/hamradio/baycom_par.c if (parport_claim(bc->pdev)) { bc 343 drivers/net/hamradio/baycom_par.c parport_unregister_device(bc->pdev); bc 346 drivers/net/hamradio/baycom_par.c pp = bc->pdev->port; bc 349 drivers/net/hamradio/baycom_par.c bc->hdrv.par.bitrate = 9600; bc 353 drivers/net/hamradio/baycom_par.c bc_drvname, dev->base_addr, dev->irq, bc->options); bc 361 drivers/net/hamradio/baycom_par.c struct baycom_state *bc = netdev_priv(dev); bc 364 drivers/net/hamradio/baycom_par.c if (!dev || !bc) bc 366 drivers/net/hamradio/baycom_par.c pp = bc->pdev->port; bc 371 drivers/net/hamradio/baycom_par.c parport_release(bc->pdev); bc 372 drivers/net/hamradio/baycom_par.c parport_unregister_device(bc->pdev); bc 398 drivers/net/hamradio/baycom_par.c static int baycom_setmode(struct baycom_state *bc, const char *modestr) bc 401 drivers/net/hamradio/baycom_par.c bc->options = 0; bc 403 drivers/net/hamradio/baycom_par.c bc->options = BAYCOM_OPTIONS_SOFTDCD; bc 405 drivers/net/hamradio/baycom_par.c bc->options = !!strchr(modestr, '*'); bc 414 drivers/net/hamradio/baycom_par.c struct baycom_state *bc; bc 420 drivers/net/hamradio/baycom_par.c bc = netdev_priv(dev); bc 421 drivers/net/hamradio/baycom_par.c BUG_ON(bc->hdrv.magic != HDLCDRV_MAGIC); bc 430 drivers/net/hamradio/baycom_par.c strcpy(hi->data.modename, bc->options ? "par96" : "picpar"); bc 439 drivers/net/hamradio/baycom_par.c return baycom_setmode(bc, hi->data.modename); bc 460 drivers/net/hamradio/baycom_par.c bi.data.dbg.debug1 = bc->hdrv.ptt_keyed; bc 461 drivers/net/hamradio/baycom_par.c bi.data.dbg.debug2 = bc->debug_vals.last_intcnt; bc 462 drivers/net/hamradio/baycom_par.c bi.data.dbg.debug3 = bc->debug_vals.last_pllcorr; bc 525 drivers/net/hamradio/baycom_par.c struct baycom_state *bc; bc 541 drivers/net/hamradio/baycom_par.c bc = netdev_priv(dev); bc 542 drivers/net/hamradio/baycom_par.c if (set_hw && baycom_setmode(bc, mode[i])) bc 145 drivers/net/hamradio/baycom_ser_fdx.c static inline void baycom_int_freq(struct baycom_state *bc) bc 152 drivers/net/hamradio/baycom_ser_fdx.c bc->debug_vals.cur_intcnt++; bc 153 drivers/net/hamradio/baycom_ser_fdx.c if (time_after_eq(cur_jiffies, bc->debug_vals.last_jiffies + HZ)) { bc 154 drivers/net/hamradio/baycom_ser_fdx.c bc->debug_vals.last_jiffies = cur_jiffies; bc 155 drivers/net/hamradio/baycom_ser_fdx.c bc->debug_vals.last_intcnt = bc->debug_vals.cur_intcnt; bc 156 drivers/net/hamradio/baycom_ser_fdx.c bc->debug_vals.cur_intcnt = 0; bc 157 drivers/net/hamradio/baycom_ser_fdx.c bc->debug_vals.last_pllcorr = bc->debug_vals.cur_pllcorr; bc 158 drivers/net/hamradio/baycom_ser_fdx.c bc->debug_vals.cur_pllcorr = 0; bc 191 drivers/net/hamradio/baycom_ser_fdx.c static __inline__ void ser12_rx(struct net_device *dev, struct baycom_state *bc, struct timespec64 *ts, unsigned char curs) bc 194 drivers/net/hamradio/baycom_ser_fdx.c int bdus8 = bc->baud_us >> 3; bc 195 drivers/net/hamradio/baycom_ser_fdx.c int bdus4 = bc->baud_us >> 2; bc 196 drivers/net/hamradio/baycom_ser_fdx.c int bdus2 = bc->baud_us >> 1; bc 199 drivers/net/hamradio/baycom_ser_fdx.c bc->modem.ser12.pll_time; bc 203 drivers/net/hamradio/baycom_ser_fdx.c timediff -= bc->baud_us; bc 204 drivers/net/hamradio/baycom_ser_fdx.c bc->modem.ser12.pll_time += bc->baud_us; bc 205 drivers/net/hamradio/baycom_ser_fdx.c bc->modem.ser12.dcd_time--; bc 207 drivers/net/hamradio/baycom_ser_fdx.c if (bc->modem.shreg & 1) { bc 208 drivers/net/hamradio/baycom_ser_fdx.c hdlcdrv_putbits(&bc->hdrv, (bc->modem.shreg >> 1) ^ 0xffff); bc 209 drivers/net/hamradio/baycom_ser_fdx.c bc->modem.shreg = 0x10000; bc 212 drivers/net/hamradio/baycom_ser_fdx.c bc->modem.shreg >>= 1; bc 214 drivers/net/hamradio/baycom_ser_fdx.c if (bc->modem.ser12.dcd_time <= 0) { bc 215 drivers/net/hamradio/baycom_ser_fdx.c if (!bc->opt_dcd) bc 216 drivers/net/hamradio/baycom_ser_fdx.c hdlcdrv_setdcd(&bc->hdrv, (bc->modem.ser12.dcd_sum0 + bc 217 drivers/net/hamradio/baycom_ser_fdx.c bc->modem.ser12.dcd_sum1 + bc 218 drivers/net/hamradio/baycom_ser_fdx.c bc->modem.ser12.dcd_sum2) < 0); bc 219 drivers/net/hamradio/baycom_ser_fdx.c bc->modem.ser12.dcd_sum2 = bc->modem.ser12.dcd_sum1; bc 220 drivers/net/hamradio/baycom_ser_fdx.c bc->modem.ser12.dcd_sum1 = bc->modem.ser12.dcd_sum0; bc 221 drivers/net/hamradio/baycom_ser_fdx.c bc->modem.ser12.dcd_sum0 = 2; /* slight bias */ bc 222 drivers/net/hamradio/baycom_ser_fdx.c bc->modem.ser12.dcd_time += 120; bc 224 drivers/net/hamradio/baycom_ser_fdx.c if (bc->modem.ser12.last_rxbit != curs) { bc 225 drivers/net/hamradio/baycom_ser_fdx.c bc->modem.ser12.last_rxbit = curs; bc 226 drivers/net/hamradio/baycom_ser_fdx.c bc->modem.shreg |= 0x10000; bc 229 drivers/net/hamradio/baycom_ser_fdx.c bc->modem.ser12.pll_time += bdus8; bc 231 drivers/net/hamradio/baycom_ser_fdx.c bc->modem.ser12.pll_time += 1000000 - bdus8; bc 234 drivers/net/hamradio/baycom_ser_fdx.c bc->modem.ser12.dcd_sum0 += 4; bc 236 drivers/net/hamradio/baycom_ser_fdx.c bc->modem.ser12.dcd_sum0--; bc 238 drivers/net/hamradio/baycom_ser_fdx.c bc->debug_vals.cur_pllcorr = timediff; bc 241 drivers/net/hamradio/baycom_ser_fdx.c while (bc->modem.ser12.pll_time >= 1000000) bc 242 drivers/net/hamradio/baycom_ser_fdx.c bc->modem.ser12.pll_time -= 1000000; bc 250 drivers/net/hamradio/baycom_ser_fdx.c struct baycom_state *bc = netdev_priv(dev); bc 255 drivers/net/hamradio/baycom_ser_fdx.c if (!bc || bc->hdrv.magic != HDLCDRV_MAGIC) bc 264 drivers/net/hamradio/baycom_ser_fdx.c if ((msr & 8) && bc->opt_dcd) bc 265 drivers/net/hamradio/baycom_ser_fdx.c hdlcdrv_setdcd(&bc->hdrv, !((msr ^ bc->opt_dcd) & 0x80)); bc 283 drivers/net/hamradio/baycom_ser_fdx.c baycom_int_freq(bc); bc 289 drivers/net/hamradio/baycom_ser_fdx.c if (bc->modem.ptt) bc 290 drivers/net/hamradio/baycom_ser_fdx.c outb(0x0e | (!!bc->modem.ser12.tx_bit), MCR(dev->base_addr)); bc 298 drivers/net/hamradio/baycom_ser_fdx.c if ((msr & 8) && bc->opt_dcd) bc 299 drivers/net/hamradio/baycom_ser_fdx.c hdlcdrv_setdcd(&bc->hdrv, !((msr ^ bc->opt_dcd) & 0x80)); bc 304 drivers/net/hamradio/baycom_ser_fdx.c ser12_rx(dev, bc, &ts, msr & 0x10); /* CTS */ bc 305 drivers/net/hamradio/baycom_ser_fdx.c if (bc->modem.ptt && txcount) { bc 306 drivers/net/hamradio/baycom_ser_fdx.c if (bc->modem.ser12.txshreg <= 1) { bc 307 drivers/net/hamradio/baycom_ser_fdx.c bc->modem.ser12.txshreg = 0x10000 | hdlcdrv_getbits(&bc->hdrv); bc 308 drivers/net/hamradio/baycom_ser_fdx.c if (!hdlcdrv_ptt(&bc->hdrv)) { bc 310 drivers/net/hamradio/baycom_ser_fdx.c bc->modem.ptt = 0; bc 314 drivers/net/hamradio/baycom_ser_fdx.c bc->modem.ser12.tx_bit = !(bc->modem.ser12.tx_bit ^ (bc->modem.ser12.txshreg & 1)); bc 315 drivers/net/hamradio/baycom_ser_fdx.c bc->modem.ser12.txshreg >>= 1; bc 319 drivers/net/hamradio/baycom_ser_fdx.c if (!bc->modem.ptt && txcount) { bc 320 drivers/net/hamradio/baycom_ser_fdx.c hdlcdrv_arbitrate(dev, &bc->hdrv); bc 321 drivers/net/hamradio/baycom_ser_fdx.c if (hdlcdrv_ptt(&bc->hdrv)) { bc 322 drivers/net/hamradio/baycom_ser_fdx.c ser12_set_divisor(dev, bc->baud_uartdiv); bc 323 drivers/net/hamradio/baycom_ser_fdx.c bc->modem.ser12.txshreg = 1; bc 324 drivers/net/hamradio/baycom_ser_fdx.c bc->modem.ptt = 1; bc 327 drivers/net/hamradio/baycom_ser_fdx.c hdlcdrv_transmitter(dev, &bc->hdrv); bc 328 drivers/net/hamradio/baycom_ser_fdx.c hdlcdrv_receiver(dev, &bc->hdrv); bc 376 drivers/net/hamradio/baycom_ser_fdx.c struct baycom_state *bc = netdev_priv(dev); bc 379 drivers/net/hamradio/baycom_ser_fdx.c if (!dev || !bc) bc 388 drivers/net/hamradio/baycom_ser_fdx.c if (bc->baud < 300 || bc->baud > 4800) { bc 398 drivers/net/hamradio/baycom_ser_fdx.c memset(&bc->modem, 0, sizeof(bc->modem)); bc 399 drivers/net/hamradio/baycom_ser_fdx.c bc->hdrv.par.bitrate = bc->baud; bc 400 drivers/net/hamradio/baycom_ser_fdx.c bc->baud_us = 1000000/bc->baud; bc 401 drivers/net/hamradio/baycom_ser_fdx.c bc->baud_uartdiv = (115200/8)/bc->baud; bc 432 drivers/net/hamradio/baycom_ser_fdx.c hdlcdrv_setdcd(&bc->hdrv, 0); bc 434 drivers/net/hamradio/baycom_ser_fdx.c bc_drvname, dev->base_addr, dev->irq, bc->baud, uart_str[u]); bc 442 drivers/net/hamradio/baycom_ser_fdx.c struct baycom_state *bc = netdev_priv(dev); bc 444 drivers/net/hamradio/baycom_ser_fdx.c if (!dev || !bc) bc 480 drivers/net/hamradio/baycom_ser_fdx.c static int baycom_setmode(struct baycom_state *bc, const char *modestr) bc 487 drivers/net/hamradio/baycom_ser_fdx.c bc->baud = baud*100; bc 490 drivers/net/hamradio/baycom_ser_fdx.c bc->opt_dcd = 0; bc 492 drivers/net/hamradio/baycom_ser_fdx.c bc->opt_dcd = -1; bc 494 drivers/net/hamradio/baycom_ser_fdx.c bc->opt_dcd = 1; bc 503 drivers/net/hamradio/baycom_ser_fdx.c struct baycom_state *bc; bc 509 drivers/net/hamradio/baycom_ser_fdx.c bc = netdev_priv(dev); bc 510 drivers/net/hamradio/baycom_ser_fdx.c BUG_ON(bc->hdrv.magic != HDLCDRV_MAGIC); bc 519 drivers/net/hamradio/baycom_ser_fdx.c sprintf(hi->data.modename, "ser%u", bc->baud / 100); bc 520 drivers/net/hamradio/baycom_ser_fdx.c if (bc->opt_dcd <= 0) bc 521 drivers/net/hamradio/baycom_ser_fdx.c strcat(hi->data.modename, (!bc->opt_dcd) ? "*" : "+"); bc 530 drivers/net/hamradio/baycom_ser_fdx.c return baycom_setmode(bc, hi->data.modename); bc 551 drivers/net/hamradio/baycom_ser_fdx.c bi.data.dbg.debug1 = bc->hdrv.ptt_keyed; bc 552 drivers/net/hamradio/baycom_ser_fdx.c bi.data.dbg.debug2 = bc->debug_vals.last_intcnt; bc 553 drivers/net/hamradio/baycom_ser_fdx.c bi.data.dbg.debug3 = bc->debug_vals.last_pllcorr; bc 600 drivers/net/hamradio/baycom_ser_fdx.c struct baycom_state *bc; bc 616 drivers/net/hamradio/baycom_ser_fdx.c bc = netdev_priv(dev); bc 617 drivers/net/hamradio/baycom_ser_fdx.c if (set_hw && baycom_setmode(bc, mode[i])) bc 619 drivers/net/hamradio/baycom_ser_fdx.c bc->baud = baud[i]; bc 132 drivers/net/hamradio/baycom_ser_hdx.c static inline void baycom_int_freq(struct baycom_state *bc) bc 139 drivers/net/hamradio/baycom_ser_hdx.c bc->debug_vals.cur_intcnt++; bc 140 drivers/net/hamradio/baycom_ser_hdx.c if (time_after_eq(cur_jiffies, bc->debug_vals.last_jiffies + HZ)) { bc 141 drivers/net/hamradio/baycom_ser_hdx.c bc->debug_vals.last_jiffies = cur_jiffies; bc 142 drivers/net/hamradio/baycom_ser_hdx.c bc->debug_vals.last_intcnt = bc->debug_vals.cur_intcnt; bc 143 drivers/net/hamradio/baycom_ser_hdx.c bc->debug_vals.cur_intcnt = 0; bc 144 drivers/net/hamradio/baycom_ser_hdx.c bc->debug_vals.last_pllcorr = bc->debug_vals.cur_pllcorr; bc 145 drivers/net/hamradio/baycom_ser_hdx.c bc->debug_vals.cur_pllcorr = 0; bc 181 drivers/net/hamradio/baycom_ser_hdx.c #define SER12_ARB_DIVIDER(bc) (bc->opt_dcd ? 24 : 36) bc 183 drivers/net/hamradio/baycom_ser_hdx.c #define SER12_DCD_INTERVAL(bc) (bc->opt_dcd ? 12 : 240) bc 185 drivers/net/hamradio/baycom_ser_hdx.c static inline void ser12_tx(struct net_device *dev, struct baycom_state *bc) bc 193 drivers/net/hamradio/baycom_ser_hdx.c outb(0x0e | (!!bc->modem.ser12.tx_bit), MCR(dev->base_addr)); bc 194 drivers/net/hamradio/baycom_ser_hdx.c if (bc->modem.shreg <= 1) bc 195 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.shreg = 0x10000 | hdlcdrv_getbits(&bc->hdrv); bc 196 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.tx_bit = !(bc->modem.ser12.tx_bit ^ bc 197 drivers/net/hamradio/baycom_ser_hdx.c (bc->modem.shreg & 1)); bc 198 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.shreg >>= 1; bc 203 drivers/net/hamradio/baycom_ser_hdx.c static inline void ser12_rx(struct net_device *dev, struct baycom_state *bc) bc 210 drivers/net/hamradio/baycom_ser_hdx.c hdlcdrv_channelbit(&bc->hdrv, cur_s); bc 211 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.dcd_shreg = (bc->modem.ser12.dcd_shreg << 1) | bc 212 drivers/net/hamradio/baycom_ser_hdx.c (cur_s != bc->modem.ser12.last_sample); bc 213 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.last_sample = cur_s; bc 214 drivers/net/hamradio/baycom_ser_hdx.c if(bc->modem.ser12.dcd_shreg & 1) { bc 215 drivers/net/hamradio/baycom_ser_hdx.c if (!bc->opt_dcd) { bc 219 drivers/net/hamradio/baycom_ser_hdx.c dcdspos += ((bc->modem.ser12.dcd_shreg >> 1) & 1); bc 220 drivers/net/hamradio/baycom_ser_hdx.c if (!(bc->modem.ser12.dcd_shreg & 0x7ffffffe)) bc 222 drivers/net/hamradio/baycom_ser_hdx.c dcdsneg += ((bc->modem.ser12.dcd_shreg >> 2) & 1); bc 223 drivers/net/hamradio/baycom_ser_hdx.c dcdsneg += ((bc->modem.ser12.dcd_shreg >> 3) & 1); bc 224 drivers/net/hamradio/baycom_ser_hdx.c dcdsneg += ((bc->modem.ser12.dcd_shreg >> 4) & 1); bc 226 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.dcd_sum0 += 16*dcdspos - dcdsneg; bc 228 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.dcd_sum0--; bc 230 drivers/net/hamradio/baycom_ser_hdx.c if(!bc->modem.ser12.dcd_time) { bc 231 drivers/net/hamradio/baycom_ser_hdx.c hdlcdrv_setdcd(&bc->hdrv, (bc->modem.ser12.dcd_sum0 + bc 232 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.dcd_sum1 + bc 233 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.dcd_sum2) < 0); bc 234 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.dcd_sum2 = bc->modem.ser12.dcd_sum1; bc 235 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.dcd_sum1 = bc->modem.ser12.dcd_sum0; bc 237 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.dcd_sum0 = 2; bc 238 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.dcd_time = SER12_DCD_INTERVAL(bc); bc 240 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.dcd_time--; bc 241 drivers/net/hamradio/baycom_ser_hdx.c if (!bc->opt_dcd) { bc 245 drivers/net/hamradio/baycom_ser_hdx.c if (bc->modem.ser12.interm_sample) { bc 254 drivers/net/hamradio/baycom_ser_hdx.c switch (bc->modem.ser12.dcd_shreg & 7) { bc 258 drivers/net/hamradio/baycom_ser_hdx.c bc->debug_vals.cur_pllcorr++; bc 264 drivers/net/hamradio/baycom_ser_hdx.c bc->debug_vals.cur_pllcorr--; bc 271 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.shreg >>= 1; bc 272 drivers/net/hamradio/baycom_ser_hdx.c if (bc->modem.ser12.last_sample == bc 273 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.last_rxbit) bc 274 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.shreg |= 0x10000; bc 275 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.last_rxbit = bc 276 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.last_sample; bc 278 drivers/net/hamradio/baycom_ser_hdx.c if (++bc->modem.ser12.interm_sample >= 3) bc 279 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.interm_sample = 0; bc 283 drivers/net/hamradio/baycom_ser_hdx.c if (bc->modem.ser12.dcd_shreg & 1) { bc 287 drivers/net/hamradio/baycom_ser_hdx.c dcdspos += ((bc->modem.ser12.dcd_shreg >> 1) & 1); bc 288 drivers/net/hamradio/baycom_ser_hdx.c dcdspos += (!(bc->modem.ser12.dcd_shreg & 0x7ffffffe)) bc 290 drivers/net/hamradio/baycom_ser_hdx.c dcdsneg += ((bc->modem.ser12.dcd_shreg >> 2) & 1); bc 291 drivers/net/hamradio/baycom_ser_hdx.c dcdsneg += ((bc->modem.ser12.dcd_shreg >> 3) & 1); bc 292 drivers/net/hamradio/baycom_ser_hdx.c dcdsneg += ((bc->modem.ser12.dcd_shreg >> 4) & 1); bc 294 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.dcd_sum0 += 16*dcdspos - dcdsneg; bc 300 drivers/net/hamradio/baycom_ser_hdx.c if (bc->modem.ser12.interm_sample) { bc 309 drivers/net/hamradio/baycom_ser_hdx.c switch (bc->modem.ser12.dcd_shreg & 3) { bc 313 drivers/net/hamradio/baycom_ser_hdx.c bc->debug_vals.cur_pllcorr++; bc 319 drivers/net/hamradio/baycom_ser_hdx.c bc->debug_vals.cur_pllcorr--; bc 326 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.shreg >>= 1; bc 327 drivers/net/hamradio/baycom_ser_hdx.c if (bc->modem.ser12.last_sample == bc 328 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.last_rxbit) bc 329 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.shreg |= 0x10000; bc 330 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.last_rxbit = bc 331 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.last_sample; bc 333 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.interm_sample = !bc->modem.ser12.interm_sample; bc 337 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.dcd_sum0 -= (bc->modem.ser12.dcd_shreg & 1); bc 340 drivers/net/hamradio/baycom_ser_hdx.c if (bc->modem.shreg & 1) { bc 341 drivers/net/hamradio/baycom_ser_hdx.c hdlcdrv_putbits(&bc->hdrv, bc->modem.shreg >> 1); bc 342 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.shreg = 0x10000; bc 344 drivers/net/hamradio/baycom_ser_hdx.c if(!bc->modem.ser12.dcd_time) { bc 345 drivers/net/hamradio/baycom_ser_hdx.c if (bc->opt_dcd & 1) bc 346 drivers/net/hamradio/baycom_ser_hdx.c hdlcdrv_setdcd(&bc->hdrv, !((inb(MSR(dev->base_addr)) ^ bc->opt_dcd) & 0x80)); bc 348 drivers/net/hamradio/baycom_ser_hdx.c hdlcdrv_setdcd(&bc->hdrv, (bc->modem.ser12.dcd_sum0 + bc 349 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.dcd_sum1 + bc 350 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.dcd_sum2) < 0); bc 351 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.dcd_sum2 = bc->modem.ser12.dcd_sum1; bc 352 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.dcd_sum1 = bc->modem.ser12.dcd_sum0; bc 354 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.dcd_sum0 = 2; bc 355 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.dcd_time = SER12_DCD_INTERVAL(bc); bc 357 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.ser12.dcd_time--; bc 365 drivers/net/hamradio/baycom_ser_hdx.c struct baycom_state *bc = netdev_priv(dev); bc 368 drivers/net/hamradio/baycom_ser_hdx.c if (!dev || !bc || bc->hdrv.magic != HDLCDRV_MAGIC) bc 373 drivers/net/hamradio/baycom_ser_hdx.c baycom_int_freq(bc); bc 388 drivers/net/hamradio/baycom_ser_hdx.c if (hdlcdrv_ptt(&bc->hdrv)) bc 389 drivers/net/hamradio/baycom_ser_hdx.c ser12_tx(dev, bc); bc 391 drivers/net/hamradio/baycom_ser_hdx.c ser12_rx(dev, bc); bc 392 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.arb_divider--; bc 403 drivers/net/hamradio/baycom_ser_hdx.c if (bc->modem.arb_divider <= 0) { bc 404 drivers/net/hamradio/baycom_ser_hdx.c bc->modem.arb_divider = SER12_ARB_DIVIDER(bc); bc 406 drivers/net/hamradio/baycom_ser_hdx.c hdlcdrv_arbitrate(dev, &bc->hdrv); bc 409 drivers/net/hamradio/baycom_ser_hdx.c hdlcdrv_transmitter(dev, &bc->hdrv); bc 410 drivers/net/hamradio/baycom_ser_hdx.c hdlcdrv_receiver(dev, &bc->hdrv); bc 458 drivers/net/hamradio/baycom_ser_hdx.c struct baycom_state *bc = netdev_priv(dev); bc 461 drivers/net/hamradio/baycom_ser_hdx.c if (!dev || !bc) bc 468 drivers/net/hamradio/baycom_ser_hdx.c memset(&bc->modem, 0, sizeof(bc->modem)); bc 469 drivers/net/hamradio/baycom_ser_hdx.c bc->hdrv.par.bitrate = 1200; bc 491 drivers/net/hamradio/baycom_ser_hdx.c ser12_set_divisor(dev, bc->opt_dcd ? 6 : 4); bc 501 drivers/net/hamradio/baycom_ser_hdx.c struct baycom_state *bc = netdev_priv(dev); bc 503 drivers/net/hamradio/baycom_ser_hdx.c if (!dev || !bc) bc 539 drivers/net/hamradio/baycom_ser_hdx.c static int baycom_setmode(struct baycom_state *bc, const char *modestr) bc 542 drivers/net/hamradio/baycom_ser_hdx.c bc->opt_dcd = 0; bc 544 drivers/net/hamradio/baycom_ser_hdx.c bc->opt_dcd = -1; bc 546 drivers/net/hamradio/baycom_ser_hdx.c bc->opt_dcd = -2; bc 548 drivers/net/hamradio/baycom_ser_hdx.c bc->opt_dcd = 1; bc 557 drivers/net/hamradio/baycom_ser_hdx.c struct baycom_state *bc; bc 563 drivers/net/hamradio/baycom_ser_hdx.c bc = netdev_priv(dev); bc 564 drivers/net/hamradio/baycom_ser_hdx.c BUG_ON(bc->hdrv.magic != HDLCDRV_MAGIC); bc 574 drivers/net/hamradio/baycom_ser_hdx.c if (bc->opt_dcd <= 0) bc 575 drivers/net/hamradio/baycom_ser_hdx.c strcat(hi->data.modename, (!bc->opt_dcd) ? "*" : (bc->opt_dcd == -2) ? "@" : "+"); bc 584 drivers/net/hamradio/baycom_ser_hdx.c return baycom_setmode(bc, hi->data.modename); bc 605 drivers/net/hamradio/baycom_ser_hdx.c bi.data.dbg.debug1 = bc->hdrv.ptt_keyed; bc 606 drivers/net/hamradio/baycom_ser_hdx.c bi.data.dbg.debug2 = bc->debug_vals.last_intcnt; bc 607 drivers/net/hamradio/baycom_ser_hdx.c bi.data.dbg.debug3 = bc->debug_vals.last_pllcorr; bc 651 drivers/net/hamradio/baycom_ser_hdx.c struct baycom_state *bc; bc 667 drivers/net/hamradio/baycom_ser_hdx.c bc = netdev_priv(dev); bc 668 drivers/net/hamradio/baycom_ser_hdx.c if (set_hw && baycom_setmode(bc, mode[i])) bc 248 drivers/net/phy/dp83640.c static int tdr_write(int bc, struct phy_device *dev, bc 251 drivers/net/phy/dp83640.c ext_write(bc, dev, PAGE4, PTP_TDR, ts->tv_nsec & 0xffff);/* ns[15:0] */ bc 252 drivers/net/phy/dp83640.c ext_write(bc, dev, PAGE4, PTP_TDR, ts->tv_nsec >> 16); /* ns[31:16] */ bc 253 drivers/net/phy/dp83640.c ext_write(bc, dev, PAGE4, PTP_TDR, ts->tv_sec & 0xffff); /* sec[15:0] */ bc 254 drivers/net/phy/dp83640.c ext_write(bc, dev, PAGE4, PTP_TDR, ts->tv_sec >> 16); /* sec[31:16]*/ bc 256 drivers/net/phy/dp83640.c ext_write(bc, dev, PAGE4, PTP_CTL, cmd); bc 139 drivers/net/wireless/ray_cs.c static int bc; bc 170 drivers/net/wireless/ray_cs.c module_param(bc, int, 0); bc 598 drivers/net/wireless/ray_cs.c if (bc) { bc 133 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h u32 bc:1; bc 183 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h u32 bc:1; bc 275 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h u32 bc:1; bc 319 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h u32 bc:1; bc 752 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.h u32 bc:1; bc 482 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.h u32 bc:1; bc 95 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/mac.h u32 bc:1; bc 674 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.h u32 bc:1; bc 688 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.h u32 bc:1; bc 484 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.h u32 bc:1; bc 597 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.h u32 bc:1; bc 603 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.h u32 bc:1; bc 239 drivers/parisc/pdc_stable.c if (devpath->bc[i] >= 128) bc 241 drivers/parisc/pdc_stable.c out += sprintf(out, "%u/", (unsigned char)devpath->bc[i]); bc 297 drivers/parisc/pdc_stable.c hwpath.bc[i] = simple_strtoul(temp+1, NULL, 10); bc 299 drivers/parisc/pdc_stable.c DPRINTK("%s: bc[%d]: %d\n", __func__, i, hwpath.bc[i]); bc 303 drivers/parisc/pdc_stable.c hwpath.bc[i] = simple_strtoul(in, NULL, 10); bc 304 drivers/parisc/pdc_stable.c DPRINTK("%s: bc[%d]: %d\n", __func__, i, hwpath.bc[i]); bc 3900 drivers/scsi/lpfc/lpfc_hw.h uint32_t bc:1; bc 3904 drivers/scsi/lpfc/lpfc_hw.h uint32_t bc:1; bc 3705 drivers/scsi/ncr53c8xx.c #define burst_length(bc) (!(bc))? 0 : 1 << (bc) bc 3716 drivers/scsi/ncr53c8xx.c static inline void ncr_init_burst(struct ncb *np, u_char bc) bc 3723 drivers/scsi/ncr53c8xx.c if (!bc) { bc 3726 drivers/scsi/ncr53c8xx.c --bc; bc 3727 drivers/scsi/ncr53c8xx.c np->rv_dmode |= ((bc & 0x3) << 6); bc 3728 drivers/scsi/ncr53c8xx.c np->rv_ctest5 |= (bc & 0x4); bc 1344 drivers/scsi/pm8001/pm8001_hwi.c u32 Header = 0, hpriority = 0, bc = 1, category = 0x02; bc 1359 drivers/scsi/pm8001/pm8001_hwi.c Header = ((1 << 31) | (hpriority << 30) | ((bc & 0x1f) << 24) bc 1375 drivers/scsi/pm8001/pm8001_hwi.c struct outbound_queue_table *circularQ, u8 bc) bc 1399 drivers/scsi/pm8001/pm8001_hwi.c circularQ->consumer_idx = (circularQ->consumer_idx + bc) bc 4175 drivers/scsi/pm8001/pm8001_hwi.c u8 uninitialized_var(bc); bc 4182 drivers/scsi/pm8001/pm8001_hwi.c ret = pm8001_mpi_msg_consume(pm8001_ha, circularQ, &pMsg1, &bc); bc 4188 drivers/scsi/pm8001/pm8001_hwi.c circularQ, bc); bc 670 drivers/scsi/pm8001/pm8001_sas.h struct outbound_queue_table *circularQ, u8 bc); bc 3813 drivers/scsi/pm8001/pm80xx_hwi.c u8 uninitialized_var(bc); bc 3838 drivers/scsi/pm8001/pm80xx_hwi.c ret = pm8001_mpi_msg_consume(pm8001_ha, circularQ, &pMsg1, &bc); bc 3844 drivers/scsi/pm8001/pm80xx_hwi.c circularQ, bc); bc 578 drivers/scsi/sym53c8xx_2/sym_hipd.c #define burst_length(bc) (!(bc))? 0 : 1 << (bc) bc 589 drivers/scsi/sym53c8xx_2/sym_hipd.c static inline void sym_init_burst(struct sym_hcb *np, u_char bc) bc 595 drivers/scsi/sym53c8xx_2/sym_hipd.c if (!bc) { bc 599 drivers/scsi/sym53c8xx_2/sym_hipd.c --bc; bc 600 drivers/scsi/sym53c8xx_2/sym_hipd.c np->rv_dmode |= ((bc & 0x3) << 6); bc 601 drivers/scsi/sym53c8xx_2/sym_hipd.c np->rv_ctest5 |= (bc & 0x4); bc 190 drivers/spmi/spmi-pmic-arb.c u32 (*fmt_cmd)(u8 opc, u8 sid, u16 addr, u8 bc); bc 220 drivers/spmi/spmi-pmic-arb.c pmic_arb_read_data(struct spmi_pmic_arb *pmic_arb, u8 *buf, u32 reg, u8 bc) bc 224 drivers/spmi/spmi-pmic-arb.c memcpy(buf, &data, (bc & 3) + 1); bc 234 drivers/spmi/spmi-pmic-arb.c u32 reg, u8 bc) bc 238 drivers/spmi/spmi-pmic-arb.c memcpy(&data, buf, (bc & 3) + 1); bc 341 drivers/spmi/spmi-pmic-arb.c u8 bc = len - 1; bc 352 drivers/spmi/spmi-pmic-arb.c if (bc >= PMIC_ARB_MAX_TRANS_BYTES) { bc 368 drivers/spmi/spmi-pmic-arb.c cmd = pmic_arb->ver_ops->fmt_cmd(opc, sid, addr, bc); bc 378 drivers/spmi/spmi-pmic-arb.c min_t(u8, bc, 3)); bc 380 drivers/spmi/spmi-pmic-arb.c if (bc > 3) bc 382 drivers/spmi/spmi-pmic-arb.c bc - 4); bc 394 drivers/spmi/spmi-pmic-arb.c u8 bc = len - 1; bc 405 drivers/spmi/spmi-pmic-arb.c if (bc >= PMIC_ARB_MAX_TRANS_BYTES) { bc 423 drivers/spmi/spmi-pmic-arb.c cmd = pmic_arb->ver_ops->fmt_cmd(opc, sid, addr, bc); bc 428 drivers/spmi/spmi-pmic-arb.c min_t(u8, bc, 3)); bc 429 drivers/spmi/spmi-pmic-arb.c if (bc > 3) bc 431 drivers/spmi/spmi-pmic-arb.c bc - 4); bc 999 drivers/spmi/spmi-pmic-arb.c static u32 pmic_arb_fmt_cmd_v1(u8 opc, u8 sid, u16 addr, u8 bc) bc 1001 drivers/spmi/spmi-pmic-arb.c return (opc << 27) | ((sid & 0xf) << 20) | (addr << 4) | (bc & 0x7); bc 1004 drivers/spmi/spmi-pmic-arb.c static u32 pmic_arb_fmt_cmd_v2(u8 opc, u8 sid, u16 addr, u8 bc) bc 1006 drivers/spmi/spmi-pmic-arb.c return (opc << 27) | ((addr & 0xff) << 4) | (bc & 0x7); bc 868 drivers/staging/comedi/comedi_fops.c struct comedi_bufconfig bc; bc 874 drivers/staging/comedi/comedi_fops.c if (copy_from_user(&bc, arg, sizeof(bc))) bc 877 drivers/staging/comedi/comedi_fops.c if (bc.subdevice >= dev->n_subdevices) bc 880 drivers/staging/comedi/comedi_fops.c s = &dev->subdevices[bc.subdevice]; bc 886 drivers/staging/comedi/comedi_fops.c bc.size = 0; bc 887 drivers/staging/comedi/comedi_fops.c bc.maximum_size = 0; bc 891 drivers/staging/comedi/comedi_fops.c if (bc.maximum_size) { bc 895 drivers/staging/comedi/comedi_fops.c async->max_bufsize = bc.maximum_size; bc 898 drivers/staging/comedi/comedi_fops.c if (bc.size) { bc 899 drivers/staging/comedi/comedi_fops.c retval = resize_async_buffer(dev, s, bc.size); bc 904 drivers/staging/comedi/comedi_fops.c bc.size = async->prealloc_bufsz; bc 905 drivers/staging/comedi/comedi_fops.c bc.maximum_size = async->max_bufsize; bc 908 drivers/staging/comedi/comedi_fops.c if (copy_to_user(arg, &bc, sizeof(bc))) bc 106 drivers/staging/isdn/gigaset/capi.c u8 *bc; bc 533 drivers/staging/isdn/gigaset/capi.c if (cip2bchlc[i].bc != NULL && bc 535 drivers/staging/isdn/gigaset/capi.c !strcmp(cip2bchlc[i].bc, bc 543 drivers/staging/isdn/gigaset/capi.c encode_ie(cip2bchlc[1].bc, iif->bc_buf, MAX_BC_OCTETS); bc 567 drivers/staging/isdn/gigaset/capi.c !strcmp(cip2bchlc[i].bc, bc 1467 drivers/staging/isdn/gigaset/capi.c (cmsg->CIPValue > 0 && cip2bchlc[cmsg->CIPValue].bc == NULL)) { bc 1483 drivers/staging/isdn/gigaset/capi.c else if (cip2bchlc[cmsg->CIPValue].bc) /* BC derived from CIP */ bc 1484 drivers/staging/isdn/gigaset/capi.c lbc = strlen(cip2bchlc[cmsg->CIPValue].bc); bc 1507 drivers/staging/isdn/gigaset/capi.c cip2bchlc[cmsg->CIPValue].bc); bc 47 drivers/staging/rtl8723bs/include/rtl8723b_recv.h u32 bc:1; bc 86 drivers/tty/ehv_bytechan.c static void enable_tx_interrupt(struct ehv_bc_data *bc) bc 88 drivers/tty/ehv_bytechan.c if (!bc->tx_irq_enabled) { bc 89 drivers/tty/ehv_bytechan.c enable_irq(bc->tx_irq); bc 90 drivers/tty/ehv_bytechan.c bc->tx_irq_enabled = 1; bc 94 drivers/tty/ehv_bytechan.c static void disable_tx_interrupt(struct ehv_bc_data *bc) bc 96 drivers/tty/ehv_bytechan.c if (bc->tx_irq_enabled) { bc 97 drivers/tty/ehv_bytechan.c disable_irq_nosync(bc->tx_irq); bc 98 drivers/tty/ehv_bytechan.c bc->tx_irq_enabled = 0; bc 349 drivers/tty/ehv_bytechan.c struct ehv_bc_data *bc = data; bc 359 drivers/tty/ehv_bytechan.c ev_byte_channel_poll(bc->handle, &rx_count, &tx_count); bc 360 drivers/tty/ehv_bytechan.c count = tty_buffer_request_room(&bc->port, rx_count); bc 374 drivers/tty/ehv_bytechan.c ev_byte_channel_receive(bc->handle, &len, buffer); bc 381 drivers/tty/ehv_bytechan.c ret = tty_insert_flip_string(&bc->port, buffer, len); bc 396 drivers/tty/ehv_bytechan.c tty_flip_buffer_push(&bc->port); bc 407 drivers/tty/ehv_bytechan.c static void ehv_bc_tx_dequeue(struct ehv_bc_data *bc) bc 414 drivers/tty/ehv_bytechan.c spin_lock_irqsave(&bc->lock, flags); bc 416 drivers/tty/ehv_bytechan.c CIRC_CNT_TO_END(bc->head, bc->tail, BUF_SIZE), bc 419 drivers/tty/ehv_bytechan.c ret = local_ev_byte_channel_send(bc->handle, &len, bc->buf + bc->tail); bc 423 drivers/tty/ehv_bytechan.c bc->tail = (bc->tail + len) & (BUF_SIZE - 1); bc 425 drivers/tty/ehv_bytechan.c count = CIRC_CNT(bc->head, bc->tail, BUF_SIZE); bc 426 drivers/tty/ehv_bytechan.c spin_unlock_irqrestore(&bc->lock, flags); bc 429 drivers/tty/ehv_bytechan.c spin_lock_irqsave(&bc->lock, flags); bc 430 drivers/tty/ehv_bytechan.c if (CIRC_CNT(bc->head, bc->tail, BUF_SIZE)) bc 436 drivers/tty/ehv_bytechan.c enable_tx_interrupt(bc); bc 438 drivers/tty/ehv_bytechan.c disable_tx_interrupt(bc); bc 439 drivers/tty/ehv_bytechan.c spin_unlock_irqrestore(&bc->lock, flags); bc 450 drivers/tty/ehv_bytechan.c struct ehv_bc_data *bc = data; bc 452 drivers/tty/ehv_bytechan.c ehv_bc_tx_dequeue(bc); bc 453 drivers/tty/ehv_bytechan.c tty_port_tty_wakeup(&bc->port); bc 472 drivers/tty/ehv_bytechan.c struct ehv_bc_data *bc = ttys->driver_data; bc 478 drivers/tty/ehv_bytechan.c spin_lock_irqsave(&bc->lock, flags); bc 479 drivers/tty/ehv_bytechan.c len = CIRC_SPACE_TO_END(bc->head, bc->tail, BUF_SIZE); bc 483 drivers/tty/ehv_bytechan.c memcpy(bc->buf + bc->head, s, len); bc 484 drivers/tty/ehv_bytechan.c bc->head = (bc->head + len) & (BUF_SIZE - 1); bc 486 drivers/tty/ehv_bytechan.c spin_unlock_irqrestore(&bc->lock, flags); bc 495 drivers/tty/ehv_bytechan.c ehv_bc_tx_dequeue(bc); bc 511 drivers/tty/ehv_bytechan.c struct ehv_bc_data *bc = &bcs[ttys->index]; bc 513 drivers/tty/ehv_bytechan.c if (!bc->dev) bc 516 drivers/tty/ehv_bytechan.c return tty_port_open(&bc->port, ttys, filp); bc 526 drivers/tty/ehv_bytechan.c struct ehv_bc_data *bc = &bcs[ttys->index]; bc 528 drivers/tty/ehv_bytechan.c if (bc->dev) bc 529 drivers/tty/ehv_bytechan.c tty_port_close(&bc->port, ttys, filp); bc 541 drivers/tty/ehv_bytechan.c struct ehv_bc_data *bc = ttys->driver_data; bc 545 drivers/tty/ehv_bytechan.c spin_lock_irqsave(&bc->lock, flags); bc 546 drivers/tty/ehv_bytechan.c count = CIRC_SPACE(bc->head, bc->tail, BUF_SIZE); bc 547 drivers/tty/ehv_bytechan.c spin_unlock_irqrestore(&bc->lock, flags); bc 566 drivers/tty/ehv_bytechan.c struct ehv_bc_data *bc = ttys->driver_data; bc 568 drivers/tty/ehv_bytechan.c disable_irq(bc->rx_irq); bc 580 drivers/tty/ehv_bytechan.c struct ehv_bc_data *bc = ttys->driver_data; bc 585 drivers/tty/ehv_bytechan.c enable_irq(bc->rx_irq); bc 590 drivers/tty/ehv_bytechan.c struct ehv_bc_data *bc = ttys->driver_data; bc 592 drivers/tty/ehv_bytechan.c ehv_bc_tx_dequeue(bc); bc 593 drivers/tty/ehv_bytechan.c tty_port_hangup(&bc->port); bc 623 drivers/tty/ehv_bytechan.c struct ehv_bc_data *bc = container_of(port, struct ehv_bc_data, port); bc 626 drivers/tty/ehv_bytechan.c ttys->driver_data = bc; bc 628 drivers/tty/ehv_bytechan.c ret = request_irq(bc->rx_irq, ehv_bc_tty_rx_isr, 0, "ehv-bc", bc); bc 630 drivers/tty/ehv_bytechan.c dev_err(bc->dev, "could not request rx irq %u (ret=%i)\n", bc 631 drivers/tty/ehv_bytechan.c bc->rx_irq, ret); bc 636 drivers/tty/ehv_bytechan.c bc->tx_irq_enabled = 1; bc 638 drivers/tty/ehv_bytechan.c ret = request_irq(bc->tx_irq, ehv_bc_tty_tx_isr, 0, "ehv-bc", bc); bc 640 drivers/tty/ehv_bytechan.c dev_err(bc->dev, "could not request tx irq %u (ret=%i)\n", bc 641 drivers/tty/ehv_bytechan.c bc->tx_irq, ret); bc 642 drivers/tty/ehv_bytechan.c free_irq(bc->rx_irq, bc); bc 649 drivers/tty/ehv_bytechan.c disable_tx_interrupt(bc); bc 656 drivers/tty/ehv_bytechan.c struct ehv_bc_data *bc = container_of(port, struct ehv_bc_data, port); bc 658 drivers/tty/ehv_bytechan.c free_irq(bc->tx_irq, bc); bc 659 drivers/tty/ehv_bytechan.c free_irq(bc->rx_irq, bc); bc 670 drivers/tty/ehv_bytechan.c struct ehv_bc_data *bc; bc 690 drivers/tty/ehv_bytechan.c bc = &bcs[i]; bc 692 drivers/tty/ehv_bytechan.c bc->handle = handle; bc 693 drivers/tty/ehv_bytechan.c bc->head = 0; bc 694 drivers/tty/ehv_bytechan.c bc->tail = 0; bc 695 drivers/tty/ehv_bytechan.c spin_lock_init(&bc->lock); bc 697 drivers/tty/ehv_bytechan.c bc->rx_irq = irq_of_parse_and_map(np, 0); bc 698 drivers/tty/ehv_bytechan.c bc->tx_irq = irq_of_parse_and_map(np, 1); bc 699 drivers/tty/ehv_bytechan.c if ((bc->rx_irq == NO_IRQ) || (bc->tx_irq == NO_IRQ)) { bc 706 drivers/tty/ehv_bytechan.c tty_port_init(&bc->port); bc 707 drivers/tty/ehv_bytechan.c bc->port.ops = &ehv_bc_tty_port_ops; bc 709 drivers/tty/ehv_bytechan.c bc->dev = tty_port_register_device(&bc->port, ehv_bc_driver, i, bc 711 drivers/tty/ehv_bytechan.c if (IS_ERR(bc->dev)) { bc 712 drivers/tty/ehv_bytechan.c ret = PTR_ERR(bc->dev); bc 717 drivers/tty/ehv_bytechan.c dev_set_drvdata(&pdev->dev, bc); bc 720 drivers/tty/ehv_bytechan.c ehv_bc_driver->name, i, bc->handle); bc 725 drivers/tty/ehv_bytechan.c tty_port_destroy(&bc->port); bc 726 drivers/tty/ehv_bytechan.c irq_dispose_mapping(bc->tx_irq); bc 727 drivers/tty/ehv_bytechan.c irq_dispose_mapping(bc->rx_irq); bc 729 drivers/tty/ehv_bytechan.c memset(bc, 0, sizeof(struct ehv_bc_data)); bc 3386 fs/nfsd/nfs4state.c struct nfsd4_backchannel_ctl *bc = &u->backchannel_ctl; bc 3391 fs/nfsd/nfs4state.c status = nfsd4_check_cb_sec(&bc->bc_cb_sec); bc 3395 fs/nfsd/nfs4state.c session->se_cb_prog = bc->bc_cb_program; bc 3396 fs/nfsd/nfs4state.c session->se_cb_sec = bc->bc_cb_sec; bc 606 fs/nfsd/nfs4xdr.c static __be32 nfsd4_decode_backchannel_ctl(struct nfsd4_compoundargs *argp, struct nfsd4_backchannel_ctl *bc) bc 611 fs/nfsd/nfs4xdr.c bc->bc_cb_program = be32_to_cpup(p++); bc 612 fs/nfsd/nfs4xdr.c nfsd4_decode_cb_sec(argp, &bc->bc_cb_sec); bc 352 fs/ocfs2/blockcheck.c struct ocfs2_block_check *bc) bc 357 fs/ocfs2/blockcheck.c memset(bc, 0, sizeof(struct ocfs2_block_check)); bc 368 fs/ocfs2/blockcheck.c bc->bc_crc32e = cpu_to_le32(crc); bc 369 fs/ocfs2/blockcheck.c bc->bc_ecc = cpu_to_le16((u16)ecc); bc 381 fs/ocfs2/blockcheck.c struct ocfs2_block_check *bc, bc 391 fs/ocfs2/blockcheck.c bc_crc32e = le32_to_cpu(bc->bc_crc32e); bc 392 fs/ocfs2/blockcheck.c bc_ecc = le16_to_cpu(bc->bc_ecc); bc 394 fs/ocfs2/blockcheck.c memset(bc, 0, sizeof(struct ocfs2_block_check)); bc 423 fs/ocfs2/blockcheck.c bc->bc_crc32e = cpu_to_le32(bc_crc32e); bc 424 fs/ocfs2/blockcheck.c bc->bc_ecc = cpu_to_le16(bc_ecc); bc 444 fs/ocfs2/blockcheck.c struct ocfs2_block_check *bc) bc 454 fs/ocfs2/blockcheck.c memset(bc, 0, sizeof(struct ocfs2_block_check)); bc 474 fs/ocfs2/blockcheck.c bc->bc_crc32e = cpu_to_le32(crc); bc 475 fs/ocfs2/blockcheck.c bc->bc_ecc = cpu_to_le16((u16)ecc); bc 488 fs/ocfs2/blockcheck.c struct ocfs2_block_check *bc, bc 503 fs/ocfs2/blockcheck.c bc_crc32e = le32_to_cpu(bc->bc_crc32e); bc 504 fs/ocfs2/blockcheck.c bc_ecc = le16_to_cpu(bc->bc_ecc); bc 506 fs/ocfs2/blockcheck.c memset(bc, 0, sizeof(struct ocfs2_block_check)); bc 554 fs/ocfs2/blockcheck.c bc->bc_crc32e = cpu_to_le32(bc_crc32e); bc 555 fs/ocfs2/blockcheck.c bc->bc_ecc = cpu_to_le16(bc_ecc); bc 567 fs/ocfs2/blockcheck.c struct ocfs2_block_check *bc) bc 570 fs/ocfs2/blockcheck.c ocfs2_block_check_compute(data, sb->s_blocksize, bc); bc 574 fs/ocfs2/blockcheck.c struct ocfs2_block_check *bc) bc 580 fs/ocfs2/blockcheck.c rc = ocfs2_block_check_validate(data, sb->s_blocksize, bc, bc 588 fs/ocfs2/blockcheck.c struct ocfs2_block_check *bc) bc 591 fs/ocfs2/blockcheck.c ocfs2_block_check_compute_bhs(bhs, nr, bc); bc 596 fs/ocfs2/blockcheck.c struct ocfs2_block_check *bc) bc 602 fs/ocfs2/blockcheck.c rc = ocfs2_block_check_validate_bhs(bhs, nr, bc, bc 33 fs/ocfs2/blockcheck.h struct ocfs2_block_check *bc); bc 35 fs/ocfs2/blockcheck.h struct ocfs2_block_check *bc); bc 38 fs/ocfs2/blockcheck.h struct ocfs2_block_check *bc); bc 41 fs/ocfs2/blockcheck.h struct ocfs2_block_check *bc); bc 45 fs/ocfs2/blockcheck.h struct ocfs2_block_check *bc); bc 47 fs/ocfs2/blockcheck.h struct ocfs2_block_check *bc, bc 50 fs/ocfs2/blockcheck.h struct ocfs2_block_check *bc); bc 52 fs/ocfs2/blockcheck.h struct ocfs2_block_check *bc, bc 59 fs/xfs/xfs_itable.c struct xfs_bstat_chunk *bc) bc 64 fs/xfs/xfs_itable.c struct xfs_bulkstat *buf = bc->buf; bc 139 fs/xfs/xfs_itable.c error = bc->formatter(bc->breq, buf); bc 152 fs/xfs/xfs_itable.c bc->breq->startino = ino + 1; bc 163 fs/xfs/xfs_itable.c struct xfs_bstat_chunk bc = { bc 171 fs/xfs/xfs_itable.c bc.buf = kmem_zalloc(sizeof(struct xfs_bulkstat), bc 173 fs/xfs/xfs_itable.c if (!bc.buf) bc 176 fs/xfs/xfs_itable.c error = xfs_bulkstat_one_int(breq->mp, NULL, breq->startino, &bc); bc 178 fs/xfs/xfs_itable.c kmem_free(bc.buf); bc 236 fs/xfs/xfs_itable.c struct xfs_bstat_chunk bc = { bc 245 fs/xfs/xfs_itable.c bc.buf = kmem_zalloc(sizeof(struct xfs_bulkstat), bc 247 fs/xfs/xfs_itable.c if (!bc.buf) bc 251 fs/xfs/xfs_itable.c xfs_bulkstat_iwalk, breq->icount, &bc); bc 253 fs/xfs/xfs_itable.c kmem_free(bc.buf); bc 14 include/linux/inet_diag.h struct nlattr *bc); bc 47 include/linux/inet_diag.h struct nlattr *bc); bc 865 include/linux/mlx5/device.h struct mpwrq_cqe_bc *bc = (struct mpwrq_cqe_bc *)&cqe->byte_cnt; bc 867 include/linux/mlx5/device.h return be16_to_cpu(bc->byte_cnt); bc 870 include/linux/mlx5/device.h static inline u16 mpwrq_get_cqe_bc_consumed_strides(struct mpwrq_cqe_bc *bc) bc 872 include/linux/mlx5/device.h return 0x7fff & be16_to_cpu(bc->filler_consumed_strides); bc 877 include/linux/mlx5/device.h struct mpwrq_cqe_bc *bc = (struct mpwrq_cqe_bc *)&cqe->byte_cnt; bc 879 include/linux/mlx5/device.h return mpwrq_get_cqe_bc_consumed_strides(bc); bc 884 include/linux/mlx5/device.h struct mpwrq_cqe_bc *bc = (struct mpwrq_cqe_bc *)&cqe->byte_cnt; bc 886 include/linux/mlx5/device.h return 0x8000 & be16_to_cpu(bc->filler_consumed_strides); bc 43 kernel/time/tick-broadcast-hrtimer.c static int bc_set_next(ktime_t expires, struct clock_event_device *bc) bc 76 kernel/time/tick-broadcast-hrtimer.c bc->bound_on = bctimer.base->cpu_base->cpu; bc 36 kernel/time/tick-broadcast.c static void tick_broadcast_setup_oneshot(struct clock_event_device *bc); bc 38 kernel/time/tick-broadcast.c static void tick_resume_broadcast_oneshot(struct clock_event_device *bc); bc 43 kernel/time/tick-broadcast.c static inline void tick_broadcast_setup_oneshot(struct clock_event_device *bc) { BUG(); } bc 45 kernel/time/tick-broadcast.c static inline void tick_resume_broadcast_oneshot(struct clock_event_device *bc) { } bc 67 kernel/time/tick-broadcast.c static void tick_broadcast_start_periodic(struct clock_event_device *bc) bc 69 kernel/time/tick-broadcast.c if (bc) bc 70 kernel/time/tick-broadcast.c tick_setup_periodic(bc, 1); bc 165 kernel/time/tick-broadcast.c struct clock_event_device *bc = tick_broadcast_device.evtdev; bc 182 kernel/time/tick-broadcast.c tick_broadcast_start_periodic(bc); bc 184 kernel/time/tick-broadcast.c tick_broadcast_setup_oneshot(bc); bc 223 kernel/time/tick-broadcast.c if (cpumask_empty(tick_broadcast_mask) && bc) bc 224 kernel/time/tick-broadcast.c clockevents_shutdown(bc); bc 233 kernel/time/tick-broadcast.c if (bc && !(bc->features & CLOCK_EVT_FEAT_HRTIMER)) bc 274 kernel/time/tick-broadcast.c struct clock_event_device *bc = tick_broadcast_device.evtdev; bc 289 kernel/time/tick-broadcast.c local = !(bc->features & CLOCK_EVT_FEAT_HRTIMER); bc 358 kernel/time/tick-broadcast.c struct clock_event_device *bc, *dev; bc 378 kernel/time/tick-broadcast.c bc = tick_broadcast_device.evtdev; bc 396 kernel/time/tick-broadcast.c if (bc && !(bc->features & CLOCK_EVT_FEAT_HRTIMER) && bc 414 kernel/time/tick-broadcast.c if (bc) { bc 417 kernel/time/tick-broadcast.c clockevents_shutdown(bc); bc 420 kernel/time/tick-broadcast.c tick_broadcast_start_periodic(bc); bc 422 kernel/time/tick-broadcast.c tick_broadcast_setup_oneshot(bc); bc 444 kernel/time/tick-broadcast.c struct clock_event_device *bc = tick_broadcast_device.evtdev; bc 447 kernel/time/tick-broadcast.c if (bc && cpumask_empty(tick_broadcast_mask)) bc 448 kernel/time/tick-broadcast.c clockevents_shutdown(bc); bc 469 kernel/time/tick-broadcast.c struct clock_event_device *bc; bc 474 kernel/time/tick-broadcast.c bc = tick_broadcast_device.evtdev; bc 475 kernel/time/tick-broadcast.c if (bc) bc 476 kernel/time/tick-broadcast.c clockevents_shutdown(bc); bc 499 kernel/time/tick-broadcast.c struct clock_event_device *bc; bc 504 kernel/time/tick-broadcast.c bc = tick_broadcast_device.evtdev; bc 506 kernel/time/tick-broadcast.c if (bc) { bc 507 kernel/time/tick-broadcast.c clockevents_tick_resume(bc); bc 512 kernel/time/tick-broadcast.c tick_broadcast_start_periodic(bc); bc 516 kernel/time/tick-broadcast.c tick_resume_broadcast_oneshot(bc); bc 552 kernel/time/tick-broadcast.c static void tick_broadcast_set_affinity(struct clock_event_device *bc, bc 555 kernel/time/tick-broadcast.c if (!(bc->features & CLOCK_EVT_FEAT_DYNIRQ)) bc 558 kernel/time/tick-broadcast.c if (cpumask_equal(bc->cpumask, cpumask)) bc 561 kernel/time/tick-broadcast.c bc->cpumask = cpumask; bc 562 kernel/time/tick-broadcast.c irq_set_affinity(bc->irq, bc->cpumask); bc 565 kernel/time/tick-broadcast.c static void tick_broadcast_set_event(struct clock_event_device *bc, int cpu, bc 568 kernel/time/tick-broadcast.c if (!clockevent_state_oneshot(bc)) bc 569 kernel/time/tick-broadcast.c clockevents_switch_state(bc, CLOCK_EVT_STATE_ONESHOT); bc 571 kernel/time/tick-broadcast.c clockevents_program_event(bc, expires, 1); bc 572 kernel/time/tick-broadcast.c tick_broadcast_set_affinity(bc, cpumask_of(cpu)); bc 575 kernel/time/tick-broadcast.c static void tick_resume_broadcast_oneshot(struct clock_event_device *bc) bc 577 kernel/time/tick-broadcast.c clockevents_switch_state(bc, CLOCK_EVT_STATE_ONESHOT); bc 684 kernel/time/tick-broadcast.c static int broadcast_needs_cpu(struct clock_event_device *bc, int cpu) bc 686 kernel/time/tick-broadcast.c if (!(bc->features & CLOCK_EVT_FEAT_HRTIMER)) bc 688 kernel/time/tick-broadcast.c if (bc->next_event == KTIME_MAX) bc 690 kernel/time/tick-broadcast.c return bc->bound_on == cpu ? -EBUSY : 0; bc 693 kernel/time/tick-broadcast.c static void broadcast_shutdown_local(struct clock_event_device *bc, bc 701 kernel/time/tick-broadcast.c if (bc->features & CLOCK_EVT_FEAT_HRTIMER) { bc 702 kernel/time/tick-broadcast.c if (broadcast_needs_cpu(bc, smp_processor_id())) bc 704 kernel/time/tick-broadcast.c if (dev->next_event < bc->next_event) bc 712 kernel/time/tick-broadcast.c struct clock_event_device *bc, *dev; bc 726 kernel/time/tick-broadcast.c bc = tick_broadcast_device.evtdev; bc 737 kernel/time/tick-broadcast.c ret = broadcast_needs_cpu(bc, cpu); bc 747 kernel/time/tick-broadcast.c if (bc->features & CLOCK_EVT_FEAT_HRTIMER) bc 756 kernel/time/tick-broadcast.c broadcast_shutdown_local(bc, dev); bc 770 kernel/time/tick-broadcast.c } else if (dev->next_event < bc->next_event) { bc 771 kernel/time/tick-broadcast.c tick_broadcast_set_event(bc, cpu, dev->next_event); bc 779 kernel/time/tick-broadcast.c ret = broadcast_needs_cpu(bc, cpu); bc 883 kernel/time/tick-broadcast.c static void tick_broadcast_setup_oneshot(struct clock_event_device *bc) bc 887 kernel/time/tick-broadcast.c if (!bc) bc 891 kernel/time/tick-broadcast.c if (bc->event_handler != tick_handle_oneshot_broadcast) { bc 892 kernel/time/tick-broadcast.c int was_periodic = clockevent_state_periodic(bc); bc 894 kernel/time/tick-broadcast.c bc->event_handler = tick_handle_oneshot_broadcast; bc 908 kernel/time/tick-broadcast.c clockevents_switch_state(bc, CLOCK_EVT_STATE_ONESHOT); bc 911 kernel/time/tick-broadcast.c tick_broadcast_set_event(bc, cpu, tick_next_period); bc 913 kernel/time/tick-broadcast.c bc->next_event = KTIME_MAX; bc 931 kernel/time/tick-broadcast.c struct clock_event_device *bc; bc 937 kernel/time/tick-broadcast.c bc = tick_broadcast_device.evtdev; bc 938 kernel/time/tick-broadcast.c if (bc) bc 939 kernel/time/tick-broadcast.c tick_broadcast_setup_oneshot(bc); bc 947 kernel/time/tick-broadcast.c struct clock_event_device *bc; bc 951 kernel/time/tick-broadcast.c bc = tick_broadcast_device.evtdev; bc 953 kernel/time/tick-broadcast.c if (bc && broadcast_needs_cpu(bc, deadcpu)) { bc 955 kernel/time/tick-broadcast.c clockevents_program_event(bc, bc->next_event, 1); bc 988 kernel/time/tick-broadcast.c struct clock_event_device *bc = tick_broadcast_device.evtdev; bc 990 kernel/time/tick-broadcast.c return bc ? bc->features & CLOCK_EVT_FEAT_ONESHOT : false; bc 996 kernel/time/tick-broadcast.c struct clock_event_device *bc = tick_broadcast_device.evtdev; bc 998 kernel/time/tick-broadcast.c if (!bc || (bc->features & CLOCK_EVT_FEAT_HRTIMER)) bc 34 lib/reed_solomon/test_rslib.c __param(int, bc, 1, "Test for correct behaviour beyond error correction capacity"); bc 476 lib/reed_solomon/test_rslib.c if (bc) bc 49 net/dccp/diag.c const struct inet_diag_req_v2 *r, struct nlattr *bc) bc 51 net/dccp/diag.c inet_diag_dump_icsk(&dccp_hashinfo, skb, cb, r, bc); bc 553 net/ipv4/inet_diag.c const void *bc = nla_data(_bc); bc 558 net/ipv4/inet_diag.c const struct inet_diag_bc_op *op = bc; bc 648 net/ipv4/inet_diag.c bc += op->yes; bc 651 net/ipv4/inet_diag.c bc += op->no; bc 674 net/ipv4/inet_diag.c int inet_diag_bc_sk(const struct nlattr *bc, struct sock *sk) bc 679 net/ipv4/inet_diag.c if (!bc) bc 695 net/ipv4/inet_diag.c return inet_diag_bc_run(bc, &entry); bc 699 net/ipv4/inet_diag.c static int valid_cc(const void *bc, int len, int cc) bc 702 net/ipv4/inet_diag.c const struct inet_diag_bc_op *op = bc; bc 711 net/ipv4/inet_diag.c bc += op->yes; bc 787 net/ipv4/inet_diag.c const void *bytecode, *bc; bc 793 net/ipv4/inet_diag.c bytecode = bc = nla_data(attr); bc 798 net/ipv4/inet_diag.c const struct inet_diag_bc_op *op = bc; bc 803 net/ipv4/inet_diag.c if (!valid_hostcond(bc, len, &min_len)) bc 807 net/ipv4/inet_diag.c if (!valid_devcond(bc, len, &min_len)) bc 816 net/ipv4/inet_diag.c if (!valid_port_comparison(bc, len, &min_len)) bc 822 net/ipv4/inet_diag.c if (!valid_markcond(bc, len, &min_len)) bc 843 net/ipv4/inet_diag.c bc += op->yes; bc 853 net/ipv4/inet_diag.c const struct nlattr *bc, bc 856 net/ipv4/inet_diag.c if (!inet_diag_bc_sk(bc, sk)) bc 894 net/ipv4/inet_diag.c const struct inet_diag_req_v2 *r, struct nlattr *bc) bc 938 net/ipv4/inet_diag.c bc, net_admin) < 0) { bc 999 net/ipv4/inet_diag.c if (!inet_diag_bc_sk(bc, sk)) bc 1045 net/ipv4/inet_diag.c struct nlattr *bc) bc 1052 net/ipv4/inet_diag.c handler->dump(skb, cb, r, bc); bc 1063 net/ipv4/inet_diag.c struct nlattr *bc = NULL; bc 1066 net/ipv4/inet_diag.c bc = nlmsg_find_attr(cb->nlh, hdrlen, INET_DIAG_REQ_BYTECODE); bc 1068 net/ipv4/inet_diag.c return __inet_diag_dump(skb, cb, nlmsg_data(cb->nlh), bc); bc 1089 net/ipv4/inet_diag.c struct nlattr *bc = NULL; bc 1098 net/ipv4/inet_diag.c bc = nlmsg_find_attr(cb->nlh, hdrlen, INET_DIAG_REQ_BYTECODE); bc 1100 net/ipv4/inet_diag.c return __inet_diag_dump(skb, cb, &req, bc); bc 135 net/ipv4/raw_diag.c struct nlattr *bc, bool net_admin) bc 137 net/ipv4/raw_diag.c if (!inet_diag_bc_sk(bc, sk)) bc 148 net/ipv4/raw_diag.c const struct inet_diag_req_v2 *r, struct nlattr *bc) bc 181 net/ipv4/raw_diag.c if (sk_diag_dump(sk, skb, cb, r, bc, net_admin) < 0) bc 182 net/ipv4/tcp_diag.c const struct inet_diag_req_v2 *r, struct nlattr *bc) bc 184 net/ipv4/tcp_diag.c inet_diag_dump_icsk(&tcp_hashinfo, skb, cb, r, bc); bc 19 net/ipv4/udp_diag.c struct nlattr *bc, bool net_admin) bc 21 net/ipv4/udp_diag.c if (!inet_diag_bc_sk(bc, sk)) bc 97 net/ipv4/udp_diag.c const struct inet_diag_req_v2 *r, struct nlattr *bc) bc 135 net/ipv4/udp_diag.c if (sk_diag_dump(sk, skb, cb, r, bc, net_admin) < 0) { bc 150 net/ipv4/udp_diag.c const struct inet_diag_req_v2 *r, struct nlattr *bc) bc 152 net/ipv4/udp_diag.c udp_dump(&udp_table, skb, cb, r, bc); bc 254 net/ipv4/udp_diag.c struct nlattr *bc) bc 256 net/ipv4/udp_diag.c udp_dump(&udplite_table, skb, cb, r, bc); bc 469 net/sctp/diag.c const struct inet_diag_req_v2 *r, struct nlattr *bc) bc 78 net/smc/smc_diag.c struct nlattr *bc) bc 197 net/smc/smc_diag.c struct nlattr *bc = NULL; bc 210 net/smc/smc_diag.c rc = __smc_diag_dump(sk, skb, cb, nlmsg_data(cb->nlh), bc); bc 257 sound/soc/intel/atom/sst-atom-controls.c struct sst_algo_control *bc) bc 263 sound/soc/intel/atom/sst-atom-controls.c len = sizeof(cmd->dst) + sizeof(cmd->command_id) + bc->max; bc 269 sound/soc/intel/atom/sst-atom-controls.c SST_FILL_DESTINATION(2, cmd->dst, bc->pipe_id, bc->module_id); bc 270 sound/soc/intel/atom/sst-atom-controls.c cmd->command_id = bc->cmd_id; bc 271 sound/soc/intel/atom/sst-atom-controls.c memcpy(cmd->params, bc->params, bc->max); bc 274 sound/soc/intel/atom/sst-atom-controls.c SST_FLAG_BLOCKED, bc->task_id, 0, cmd, len); bc 290 sound/soc/intel/atom/sst-atom-controls.c struct sst_algo_control *bc; bc 296 sound/soc/intel/atom/sst-atom-controls.c bc = (void *)algo->kctl->private_value; bc 300 sound/soc/intel/atom/sst-atom-controls.c ret = sst_send_algo_cmd(drv, bc); bc 310 sound/soc/intel/atom/sst-atom-controls.c struct sst_algo_control *bc = (void *)kcontrol->private_value; bc 313 sound/soc/intel/atom/sst-atom-controls.c uinfo->count = bc->max; bc 321 sound/soc/intel/atom/sst-atom-controls.c struct sst_algo_control *bc = (void *)kcontrol->private_value; bc 324 sound/soc/intel/atom/sst-atom-controls.c switch (bc->type) { bc 326 sound/soc/intel/atom/sst-atom-controls.c memcpy(ucontrol->value.bytes.data, bc->params, bc->max); bc 330 sound/soc/intel/atom/sst-atom-controls.c bc->type); bc 343 sound/soc/intel/atom/sst-atom-controls.c struct sst_algo_control *bc = (void *)kcontrol->private_value; bc 347 sound/soc/intel/atom/sst-atom-controls.c switch (bc->type) { bc 349 sound/soc/intel/atom/sst-atom-controls.c memcpy(bc->params, ucontrol->value.bytes.data, bc->max); bc 354 sound/soc/intel/atom/sst-atom-controls.c bc->type); bc 358 sound/soc/intel/atom/sst-atom-controls.c if (bc->w && bc->w->power) bc 359 sound/soc/intel/atom/sst-atom-controls.c ret = sst_send_algo_cmd(drv, bc); bc 1273 sound/soc/intel/atom/sst-atom-controls.c struct sst_algo_control *bc; bc 1276 sound/soc/intel/atom/sst-atom-controls.c bc = (struct sst_algo_control *)sst_algo_controls[i].private_value; bc 1277 sound/soc/intel/atom/sst-atom-controls.c bc->params = devm_kzalloc(dev, bc->max, GFP_KERNEL); bc 1278 sound/soc/intel/atom/sst-atom-controls.c if (bc->params == NULL) bc 1388 sound/soc/intel/atom/sst-atom-controls.c struct sst_algo_control *bc = (void *)kctl->private_value; bc 1390 sound/soc/intel/atom/sst-atom-controls.c bc->w = w; bc 385 sound/soc/intel/skylake/skl-topology.c struct skl_algo_data *bc; bc 402 sound/soc/intel/skylake/skl-topology.c bc = (struct skl_algo_data *)sb->dobj.private; bc 404 sound/soc/intel/skylake/skl-topology.c if (bc->set_params == SKL_PARAM_SET) { bc 406 sound/soc/intel/skylake/skl-topology.c (u32 *)bc->params, bc->size, bc 407 sound/soc/intel/skylake/skl-topology.c bc->param_id, mconfig); bc 427 sound/soc/intel/skylake/skl-topology.c struct skl_algo_data *bc; bc 435 sound/soc/intel/skylake/skl-topology.c bc = (struct skl_algo_data *)sb->dobj.private; bc 437 sound/soc/intel/skylake/skl-topology.c if (bc->set_params != SKL_PARAM_INIT) bc 440 sound/soc/intel/skylake/skl-topology.c mconfig->formats_config.caps = (u32 *)bc->params; bc 441 sound/soc/intel/skylake/skl-topology.c mconfig->formats_config.caps_size = bc->size; bc 745 sound/soc/intel/skylake/skl-topology.c struct skl_algo_data *bc; bc 777 sound/soc/intel/skylake/skl-topology.c bc = (struct skl_algo_data *)sb->dobj.private; bc 779 sound/soc/intel/skylake/skl-topology.c if (bc->set_params == SKL_PARAM_BIND) { bc 780 sound/soc/intel/skylake/skl-topology.c params = kmemdup(bc->params, bc->max, GFP_KERNEL); bc 784 sound/soc/intel/skylake/skl-topology.c skl_fill_sink_instance_id(skl, params, bc->max, bc 788 sound/soc/intel/skylake/skl-topology.c bc->max, bc->param_id, mconfig); bc 816 sound/soc/intel/skylake/skl-topology.c struct skl_algo_data *bc = (struct skl_algo_data *)sb->dobj.private; bc 821 sound/soc/intel/skylake/skl-topology.c if (bc->set_params == SKL_PARAM_BIND && bc->max) { bc 822 sound/soc/intel/skylake/skl-topology.c uuid_params = (struct skl_kpb_params *)bc->params; bc 844 sound/soc/intel/skylake/skl-topology.c devm_kfree(bus->dev, bc->params); bc 845 sound/soc/intel/skylake/skl-topology.c bc->params = (char *)params; bc 846 sound/soc/intel/skylake/skl-topology.c bc->max = size; bc 1322 sound/soc/intel/skylake/skl-topology.c struct skl_algo_data *bc = (struct skl_algo_data *)sb->dobj.private; bc 1328 sound/soc/intel/skylake/skl-topology.c skl_get_module_params(skl, (u32 *)bc->params, bc 1329 sound/soc/intel/skylake/skl-topology.c bc->size, bc->param_id, mconfig); bc 1335 sound/soc/intel/skylake/skl-topology.c if (size > bc->max) bc 1336 sound/soc/intel/skylake/skl-topology.c size = bc->max; bc 1338 sound/soc/intel/skylake/skl-topology.c if (bc->params) { bc 1339 sound/soc/intel/skylake/skl-topology.c if (copy_to_user(data, &bc->param_id, sizeof(u32))) bc 1343 sound/soc/intel/skylake/skl-topology.c if (copy_to_user(data + 2, bc->params, size)) bc 2944 sound/soc/intel/skylake/skl-topology.c struct snd_soc_tplg_bytes_control *bc) bc 2948 sound/soc/intel/skylake/skl-topology.c (struct skl_dfw_algo_data *)bc->priv.data;