bd 430 arch/mips/pci/pci-xtalk-bridge.c struct xtalk_bridge_platform_data *bd = dev_get_platdata(&pdev->dev); bd 468 arch/mips/pci/pci-xtalk-bridge.c pci_add_resource_offset(&host->windows, &bd->mem, bd->mem_offset); bd 469 arch/mips/pci/pci-xtalk-bridge.c pci_add_resource_offset(&host->windows, &bd->io, bd->io_offset); bd 476 arch/mips/pci/pci-xtalk-bridge.c bc->nasid = bd->nasid; bd 478 arch/mips/pci/pci-xtalk-bridge.c bc->baddr = (u64)bd->masterwid << 60 | PCI64_ATTR_BAR; bd 479 arch/mips/pci/pci-xtalk-bridge.c bc->base = (struct bridge_regs *)bd->bridge_addr; bd 480 arch/mips/pci/pci-xtalk-bridge.c bc->intr_addr = bd->intr_addr; bd 508 arch/mips/pci/pci-xtalk-bridge.c ((bc->intr_addr >> 32) & 0xffff) | (bd->masterwid << 16)); bd 510 arch/mips/pci/pci-xtalk-bridge.c bridge_write(bc, b_dir_map, (bd->masterwid << 20)); /* DMA */ bd 28 arch/mips/sgi-ip27/ip27-xtalk.c struct xtalk_bridge_platform_data *bd; bd 32 arch/mips/sgi-ip27/ip27-xtalk.c bd = kzalloc(sizeof(*bd), GFP_KERNEL); bd 33 arch/mips/sgi-ip27/ip27-xtalk.c if (!bd) bd 37 arch/mips/sgi-ip27/ip27-xtalk.c kfree(bd); bd 43 arch/mips/sgi-ip27/ip27-xtalk.c bd->bridge_addr = RAW_NODE_SWIN_BASE(nasid, widget); bd 44 arch/mips/sgi-ip27/ip27-xtalk.c bd->intr_addr = BIT_ULL(47) + 0x01800000 + PI_INT_PEND_MOD; bd 45 arch/mips/sgi-ip27/ip27-xtalk.c bd->nasid = nasid; bd 46 arch/mips/sgi-ip27/ip27-xtalk.c bd->masterwid = masterwid; bd 48 arch/mips/sgi-ip27/ip27-xtalk.c bd->mem.name = "Bridge PCI MEM"; bd 49 arch/mips/sgi-ip27/ip27-xtalk.c bd->mem.start = offset + (widget << SWIN_SIZE_BITS); bd 50 arch/mips/sgi-ip27/ip27-xtalk.c bd->mem.end = bd->mem.start + SWIN_SIZE - 1; bd 51 arch/mips/sgi-ip27/ip27-xtalk.c bd->mem.flags = IORESOURCE_MEM; bd 52 arch/mips/sgi-ip27/ip27-xtalk.c bd->mem_offset = offset; bd 54 arch/mips/sgi-ip27/ip27-xtalk.c bd->io.name = "Bridge PCI IO"; bd 55 arch/mips/sgi-ip27/ip27-xtalk.c bd->io.start = offset + (widget << SWIN_SIZE_BITS); bd 56 arch/mips/sgi-ip27/ip27-xtalk.c bd->io.end = bd->io.start + SWIN_SIZE - 1; bd 57 arch/mips/sgi-ip27/ip27-xtalk.c bd->io.flags = IORESOURCE_IO; bd 58 arch/mips/sgi-ip27/ip27-xtalk.c bd->io_offset = offset; bd 60 arch/mips/sgi-ip27/ip27-xtalk.c platform_device_add_data(pdev, bd, sizeof(*bd)); bd 19 arch/powerpc/boot/cuboot-52xx.c static bd_t bd; bd 28 arch/powerpc/boot/cuboot-52xx.c dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); bd 29 arch/powerpc/boot/cuboot-52xx.c dt_fixup_mac_addresses(bd.bi_enetaddr); bd 30 arch/powerpc/boot/cuboot-52xx.c dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 4, bd.bi_busfreq); bd 42 arch/powerpc/boot/cuboot-52xx.c setprop(soc, "bus-frequency", &bd.bi_ipbfreq, bd 43 arch/powerpc/boot/cuboot-52xx.c sizeof(bd.bi_ipbfreq)); bd 48 arch/powerpc/boot/cuboot-52xx.c sysfreq = bd.bi_busfreq * div; bd 15 arch/powerpc/boot/cuboot-824x.c static bd_t bd; bd 22 arch/powerpc/boot/cuboot-824x.c dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); bd 23 arch/powerpc/boot/cuboot-824x.c dt_fixup_mac_addresses(bd.bi_enetaddr); bd 24 arch/powerpc/boot/cuboot-824x.c dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 4, bd.bi_busfreq); bd 30 arch/powerpc/boot/cuboot-824x.c setprop(soc, "bus-frequency", &bd.bi_busfreq, bd 31 arch/powerpc/boot/cuboot-824x.c sizeof(bd.bi_busfreq)); bd 37 arch/powerpc/boot/cuboot-824x.c setprop(serial, "clock-frequency", &bd.bi_busfreq, bd 38 arch/powerpc/boot/cuboot-824x.c sizeof(bd.bi_busfreq)); bd 17 arch/powerpc/boot/cuboot-83xx.c static bd_t bd; bd 23 arch/powerpc/boot/cuboot-83xx.c dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); bd 24 arch/powerpc/boot/cuboot-83xx.c dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr); bd 25 arch/powerpc/boot/cuboot-83xx.c dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr); bd 26 arch/powerpc/boot/cuboot-83xx.c dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 4, bd.bi_busfreq); bd 36 arch/powerpc/boot/cuboot-83xx.c setprop(soc, "bus-frequency", &bd.bi_busfreq, bd 37 arch/powerpc/boot/cuboot-83xx.c sizeof(bd.bi_busfreq)); bd 43 arch/powerpc/boot/cuboot-83xx.c setprop(serial, "clock-frequency", &bd.bi_busfreq, bd 44 arch/powerpc/boot/cuboot-83xx.c sizeof(bd.bi_busfreq)); bd 18 arch/powerpc/boot/cuboot-85xx-cpm2.c static bd_t bd; bd 24 arch/powerpc/boot/cuboot-85xx-cpm2.c dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); bd 25 arch/powerpc/boot/cuboot-85xx-cpm2.c dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr); bd 26 arch/powerpc/boot/cuboot-85xx-cpm2.c dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr); bd 27 arch/powerpc/boot/cuboot-85xx-cpm2.c dt_fixup_mac_address_by_alias("ethernet2", bd.bi_enet2addr); bd 28 arch/powerpc/boot/cuboot-85xx-cpm2.c dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 8, bd.bi_busfreq); bd 38 arch/powerpc/boot/cuboot-85xx-cpm2.c setprop(devp, "bus-frequency", &bd.bi_busfreq, bd 39 arch/powerpc/boot/cuboot-85xx-cpm2.c sizeof(bd.bi_busfreq)); bd 45 arch/powerpc/boot/cuboot-85xx-cpm2.c setprop(serial, "clock-frequency", &bd.bi_busfreq, bd 46 arch/powerpc/boot/cuboot-85xx-cpm2.c sizeof(bd.bi_busfreq)); bd 52 arch/powerpc/boot/cuboot-85xx-cpm2.c setprop(devp, "clock-frequency", &bd.bi_brgfreq, bd 53 arch/powerpc/boot/cuboot-85xx-cpm2.c sizeof(bd.bi_brgfreq)); bd 18 arch/powerpc/boot/cuboot-85xx.c static bd_t bd; bd 24 arch/powerpc/boot/cuboot-85xx.c dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); bd 25 arch/powerpc/boot/cuboot-85xx.c dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr); bd 26 arch/powerpc/boot/cuboot-85xx.c dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr); bd 27 arch/powerpc/boot/cuboot-85xx.c dt_fixup_mac_address_by_alias("ethernet2", bd.bi_enet2addr); bd 28 arch/powerpc/boot/cuboot-85xx.c dt_fixup_mac_address_by_alias("ethernet3", bd.bi_enet3addr); bd 29 arch/powerpc/boot/cuboot-85xx.c dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 8, bd.bi_busfreq); bd 39 arch/powerpc/boot/cuboot-85xx.c setprop(soc, "bus-frequency", &bd.bi_busfreq, bd 40 arch/powerpc/boot/cuboot-85xx.c sizeof(bd.bi_busfreq)); bd 46 arch/powerpc/boot/cuboot-85xx.c setprop(serial, "clock-frequency", &bd.bi_busfreq, bd 47 arch/powerpc/boot/cuboot-85xx.c sizeof(bd.bi_busfreq)); bd 18 arch/powerpc/boot/cuboot-8xx.c static bd_t bd; bd 24 arch/powerpc/boot/cuboot-8xx.c dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); bd 25 arch/powerpc/boot/cuboot-8xx.c dt_fixup_mac_addresses(bd.bi_enetaddr, bd.bi_enet1addr); bd 26 arch/powerpc/boot/cuboot-8xx.c dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 16, bd.bi_busfreq); bd 30 arch/powerpc/boot/cuboot-8xx.c setprop(node, "clock-frequency", &bd.bi_busfreq, 4); bd 34 arch/powerpc/boot/cuboot-8xx.c setprop(node, "clock-frequency", &bd.bi_busfreq, 4); bd 21 arch/powerpc/boot/cuboot-acadia.c static bd_t bd; bd 149 arch/powerpc/boot/cuboot-acadia.c dt_fixup_cpu_clocks(bd.bi_procfreq, bd.bi_intfreq, bd.bi_plb_busfreq); bd 158 arch/powerpc/boot/cuboot-acadia.c dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); bd 160 arch/powerpc/boot/cuboot-acadia.c dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr); bd 17 arch/powerpc/boot/cuboot-amigaone.c static bd_t bd; bd 21 arch/powerpc/boot/cuboot-amigaone.c dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); bd 22 arch/powerpc/boot/cuboot-amigaone.c dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 4, bd.bi_busfreq); bd 21 arch/powerpc/boot/cuboot-bamboo.c static bd_t bd; bd 27 arch/powerpc/boot/cuboot-bamboo.c bamboo_init(&bd.bi_enetaddr, &bd.bi_enet1addr); bd 21 arch/powerpc/boot/cuboot-ebony.c static bd_t bd; bd 27 arch/powerpc/boot/cuboot-ebony.c ebony_init(&bd.bi_enetaddr, &bd.bi_enet1addr); bd 20 arch/powerpc/boot/cuboot-hotfoot.c static bd_t bd; bd 28 arch/powerpc/boot/cuboot-hotfoot.c dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); bd 30 arch/powerpc/boot/cuboot-hotfoot.c dt_fixup_cpu_clocks(bd.bi_procfreq, bd.bi_procfreq, 0); bd 31 arch/powerpc/boot/cuboot-hotfoot.c dt_fixup_clock("/plb", bd.bi_plb_busfreq); bd 32 arch/powerpc/boot/cuboot-hotfoot.c dt_fixup_clock("/plb/opb", bd.bi_opbfreq); bd 33 arch/powerpc/boot/cuboot-hotfoot.c dt_fixup_clock("/plb/ebc", bd.bi_pci_busfreq); bd 34 arch/powerpc/boot/cuboot-hotfoot.c dt_fixup_clock("/plb/opb/serial@ef600300", bd.bi_procfreq / uart); bd 35 arch/powerpc/boot/cuboot-hotfoot.c dt_fixup_clock("/plb/opb/serial@ef600400", bd.bi_procfreq / uart); bd 37 arch/powerpc/boot/cuboot-hotfoot.c dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr); bd 38 arch/powerpc/boot/cuboot-hotfoot.c dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr); bd 41 arch/powerpc/boot/cuboot-hotfoot.c if ((bd.bi_enet1addr[0] == 0) && bd 42 arch/powerpc/boot/cuboot-hotfoot.c (bd.bi_enet1addr[1] == 0) && bd 43 arch/powerpc/boot/cuboot-hotfoot.c (bd.bi_enet1addr[2] == 0) && bd 44 arch/powerpc/boot/cuboot-hotfoot.c (bd.bi_enet1addr[3] == 0) && bd 45 arch/powerpc/boot/cuboot-hotfoot.c (bd.bi_enet1addr[4] == 0) && bd 46 arch/powerpc/boot/cuboot-hotfoot.c (bd.bi_enet1addr[5] == 0)) { bd 65 arch/powerpc/boot/cuboot-hotfoot.c if (bd.bi_flashsize < 0x800000) { bd 26 arch/powerpc/boot/cuboot-katmai.c static bd_t bd; bd 41 arch/powerpc/boot/cuboot-katmai.c dt_fixup_mac_address(0, bd.bi_enetaddr); bd 25 arch/powerpc/boot/cuboot-kilauea.c static bd_t bd; bd 32 arch/powerpc/boot/cuboot-kilauea.c dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); bd 34 arch/powerpc/boot/cuboot-kilauea.c dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr); bd 35 arch/powerpc/boot/cuboot-kilauea.c dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr); bd 20 arch/powerpc/boot/cuboot-mpc7448hpc2.c static bd_t bd; bd 27 arch/powerpc/boot/cuboot-mpc7448hpc2.c dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); bd 28 arch/powerpc/boot/cuboot-mpc7448hpc2.c dt_fixup_mac_addresses(bd.bi_enetaddr, bd.bi_enet1addr); bd 29 arch/powerpc/boot/cuboot-mpc7448hpc2.c dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 4, bd.bi_busfreq); bd 32 arch/powerpc/boot/cuboot-mpc7448hpc2.c setprop(tsi, "bus-frequency", &bd.bi_busfreq, bd 33 arch/powerpc/boot/cuboot-mpc7448hpc2.c sizeof(bd.bi_busfreq)); bd 21 arch/powerpc/boot/cuboot-pq2.c static bd_t bd; bd 207 arch/powerpc/boot/cuboot-pq2.c mem_pow2 = 1 << (__ilog2_u32(bd.bi_memsize - 1) + 1); bd 246 arch/powerpc/boot/cuboot-pq2.c dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); bd 247 arch/powerpc/boot/cuboot-pq2.c dt_fixup_mac_addresses(bd.bi_enetaddr, bd.bi_enet1addr); bd 248 arch/powerpc/boot/cuboot-pq2.c dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 4, bd.bi_busfreq); bd 252 arch/powerpc/boot/cuboot-pq2.c setprop(node, "clock-frequency", &bd.bi_cpmfreq, 4); bd 256 arch/powerpc/boot/cuboot-pq2.c setprop(node, "clock-frequency", &bd.bi_brgfreq, 4); bd 32 arch/powerpc/boot/cuboot-rainier.c static bd_t bd; bd 42 arch/powerpc/boot/cuboot-rainier.c dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr); bd 43 arch/powerpc/boot/cuboot-rainier.c dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr); bd 26 arch/powerpc/boot/cuboot-sam440ep.c static bd_t bd; bd 35 arch/powerpc/boot/cuboot-sam440ep.c dt_fixup_mac_addresses(&bd.bi_enetaddr, &bd.bi_enet1addr); bd 32 arch/powerpc/boot/cuboot-sequoia.c static bd_t bd; bd 42 arch/powerpc/boot/cuboot-sequoia.c dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr); bd 43 arch/powerpc/boot/cuboot-sequoia.c dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr); bd 26 arch/powerpc/boot/cuboot-taishan.c static bd_t bd; bd 40 arch/powerpc/boot/cuboot-taishan.c dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr); bd 41 arch/powerpc/boot/cuboot-taishan.c dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr); bd 16 arch/powerpc/boot/cuboot-warp.c static bd_t bd; bd 23 arch/powerpc/boot/cuboot-warp.c dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr); bd 20 arch/powerpc/boot/cuboot-yosemite.c static bd_t bd; bd 29 arch/powerpc/boot/cuboot-yosemite.c dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr); bd 30 arch/powerpc/boot/cuboot-yosemite.c dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr); bd 11 arch/powerpc/boot/cuboot.h memcpy(&bd, (bd_t *)r3, sizeof(bd)); \ bd 12 arch/powerpc/boot/cuboot.h cuboot_init(r4, r5, r6, r7, bd.bi_memstart + bd.bi_memsize); \ bd 20 arch/powerpc/boot/mvme7100.c static bd_t bd; bd 27 arch/powerpc/boot/mvme7100.c unsigned long busfreq = bd.bi_busfreq * 1000000; bd 29 arch/powerpc/boot/mvme7100.c dt_fixup_cpu_clocks(bd.bi_intfreq * 1000000, busfreq / 4, busfreq); bd 39 arch/powerpc/boot/mvme7100.c dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); bd 41 arch/powerpc/boot/mvme7100.c dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr); bd 42 arch/powerpc/boot/mvme7100.c dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr); bd 43 arch/powerpc/boot/mvme7100.c dt_fixup_mac_address_by_alias("ethernet2", bd.bi_enet2addr); bd 44 arch/powerpc/boot/mvme7100.c dt_fixup_mac_address_by_alias("ethernet3", bd.bi_enet3addr); bd 17 arch/powerpc/boot/redboot-83xx.c static bd_t bd; bd 26 arch/powerpc/boot/redboot-83xx.c dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); bd 27 arch/powerpc/boot/redboot-83xx.c dt_fixup_mac_addresses(bd.bi_enetaddr); bd 28 arch/powerpc/boot/redboot-83xx.c dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 16, bd.bi_busfreq); bd 33 arch/powerpc/boot/redboot-83xx.c bd.bi_busfreq, MHZ(bd.bi_busfreq)); bd 34 arch/powerpc/boot/redboot-83xx.c setprop(node, "clock-frequency", &bd.bi_busfreq, 4); bd 42 arch/powerpc/boot/redboot-83xx.c memcpy(&bd, (char *)r3, sizeof(bd)); bd 44 arch/powerpc/boot/redboot-83xx.c if (bd.bi_tag != 0x42444944) bd 48 arch/powerpc/boot/redboot-83xx.c bd.bi_memstart + bd.bi_memsize - (unsigned long)_end, bd 55 arch/powerpc/boot/redboot-83xx.c loader_info.cmdline = (char *)bd.bi_cmdline; bd 56 arch/powerpc/boot/redboot-83xx.c loader_info.cmdline_len = strlen((char *)bd.bi_cmdline); bd 16 arch/powerpc/boot/redboot-8xx.c static bd_t bd; bd 25 arch/powerpc/boot/redboot-8xx.c dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); bd 26 arch/powerpc/boot/redboot-8xx.c dt_fixup_mac_addresses(bd.bi_enetaddr); bd 27 arch/powerpc/boot/redboot-8xx.c dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 16, bd.bi_busfreq); bd 32 arch/powerpc/boot/redboot-8xx.c bd.bi_busfreq, MHZ(bd.bi_busfreq)); bd 33 arch/powerpc/boot/redboot-8xx.c setprop(node, "clock-frequency", &bd.bi_busfreq, 4); bd 40 arch/powerpc/boot/redboot-8xx.c memcpy(&bd, (char *)r3, sizeof(bd)); bd 42 arch/powerpc/boot/redboot-8xx.c if (bd.bi_tag != 0x42444944) bd 46 arch/powerpc/boot/redboot-8xx.c bd.bi_memstart + bd.bi_memsize - (unsigned long)_end, bd 53 arch/powerpc/boot/redboot-8xx.c loader_info.cmdline = (char *)bd.bi_cmdline; bd 54 arch/powerpc/boot/redboot-8xx.c loader_info.cmdline_len = strlen((char *)bd.bi_cmdline); bd 65 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c struct bcom_bd *bd; bd 132 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c bd = bcom_prepare_next_buffer(lpbfifo.bcom_cur_task); bd 133 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c bd->status = transfer_size; bd 149 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c bd->data[0] = req->data_phys + req->pos; bd 196 arch/um/drivers/ubd_kern.c const struct blk_mq_queue_data *bd); bd 1376 arch/um/drivers/ubd_kern.c const struct blk_mq_queue_data *bd) bd 1379 arch/um/drivers/ubd_kern.c struct request *req = bd->rq; bd 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)\ bd 65 arch/x86/kernel/kprobes/core.c (bc##UL << 0xc)|(bd##UL << 0xd)|(be##UL << 0xe)|(bf##UL << 0xf)) \ bd 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)\ bd 50 arch/x86/kernel/uprobes.c (bc##UL << 0xc)|(bd##UL << 0xd)|(be##UL << 0xe)|(bf##UL << 0xf)) \ bd 1230 block/blk-mq.c struct blk_mq_queue_data bd; bd 1262 block/blk-mq.c bd.rq = rq; bd 1269 block/blk-mq.c bd.last = true; bd 1272 block/blk-mq.c bd.last = !blk_mq_get_driver_tag(nxt); bd 1275 block/blk-mq.c ret = q->mq_ops->queue_rq(hctx, &bd); bd 1801 block/blk-mq.c struct blk_mq_queue_data bd = { bd 1815 block/blk-mq.c ret = q->mq_ops->queue_rq(hctx, &bd); bd 262 block/bsg-lib.c const struct blk_mq_queue_data *bd) bd 266 block/bsg-lib.c struct request *req = bd->rq; bd 26 block/bsg.c #define bsg_dbg(bd, fmt, ...) \ bd 27 block/bsg.c pr_debug("%s: " fmt, (bd)->name, ##__VA_ARGS__) bd 198 block/bsg.c struct bsg_device *bd; bd 200 block/bsg.c bd = kzalloc(sizeof(struct bsg_device), GFP_KERNEL); bd 201 block/bsg.c if (unlikely(!bd)) bd 204 block/bsg.c spin_lock_init(&bd->lock); bd 205 block/bsg.c bd->max_queue = BSG_DEFAULT_CMDS; bd 206 block/bsg.c INIT_HLIST_NODE(&bd->dev_list); bd 207 block/bsg.c return bd; bd 210 block/bsg.c static int bsg_put_device(struct bsg_device *bd) bd 212 block/bsg.c struct request_queue *q = bd->queue; bd 216 block/bsg.c if (!refcount_dec_and_test(&bd->ref_count)) { bd 221 block/bsg.c hlist_del(&bd->dev_list); bd 224 block/bsg.c bsg_dbg(bd, "tearing down\n"); bd 229 block/bsg.c kfree(bd); bd 238 block/bsg.c struct bsg_device *bd; bd 246 block/bsg.c bd = bsg_alloc_device(); bd 247 block/bsg.c if (!bd) { bd 252 block/bsg.c bd->queue = rq; bd 254 block/bsg.c refcount_set(&bd->ref_count, 1); bd 255 block/bsg.c hlist_add_head(&bd->dev_list, bsg_dev_idx_hash(iminor(inode))); bd 257 block/bsg.c strncpy(bd->name, dev_name(rq->bsg_dev.class_dev), sizeof(bd->name) - 1); bd 258 block/bsg.c bsg_dbg(bd, "bound to <%s>, max queue %d\n", bd 259 block/bsg.c format_dev_t(buf, inode->i_rdev), bd->max_queue); bd 261 block/bsg.c return bd; bd 266 block/bsg.c struct bsg_device *bd; bd 270 block/bsg.c hlist_for_each_entry(bd, bsg_dev_idx_hash(minor), dev_list) { bd 271 block/bsg.c if (bd->queue == q) { bd 272 block/bsg.c refcount_inc(&bd->ref_count); bd 276 block/bsg.c bd = NULL; bd 278 block/bsg.c return bd; bd 283 block/bsg.c struct bsg_device *bd; bd 293 block/bsg.c bd = ERR_PTR(-ENODEV); bd 297 block/bsg.c bd = __bsg_get_device(iminor(inode), bcd->queue); bd 298 block/bsg.c if (!bd) bd 299 block/bsg.c bd = bsg_add_device(inode, bcd->queue, file); bd 303 block/bsg.c return bd; bd 308 block/bsg.c struct bsg_device *bd; bd 310 block/bsg.c bd = bsg_get_device(inode, file); bd 312 block/bsg.c if (IS_ERR(bd)) bd 313 block/bsg.c return PTR_ERR(bd); bd 315 block/bsg.c file->private_data = bd; bd 321 block/bsg.c struct bsg_device *bd = file->private_data; bd 324 block/bsg.c return bsg_put_device(bd); bd 327 block/bsg.c static int bsg_get_command_q(struct bsg_device *bd, int __user *uarg) bd 329 block/bsg.c return put_user(bd->max_queue, uarg); bd 332 block/bsg.c static int bsg_set_command_q(struct bsg_device *bd, int __user *uarg) bd 341 block/bsg.c spin_lock_irq(&bd->lock); bd 342 block/bsg.c bd->max_queue = queue; bd 343 block/bsg.c spin_unlock_irq(&bd->lock); bd 349 block/bsg.c struct bsg_device *bd = file->private_data; bd 357 block/bsg.c return bsg_get_command_q(bd, uarg); bd 359 block/bsg.c return bsg_set_command_q(bd, uarg); bd 373 block/bsg.c return scsi_cmd_ioctl(bd->queue, NULL, file->f_mode, cmd, uarg); bd 375 block/bsg.c return bsg_sg_io(bd->queue, file->f_mode, uarg); bd 675 block/scsi_ioctl.c int scsi_verify_blk_ioctl(struct block_device *bd, unsigned int cmd) bd 677 block/scsi_ioctl.c if (bd && bd == bd->bd_contains) bd 687 block/scsi_ioctl.c int scsi_cmd_blk_ioctl(struct block_device *bd, fmode_t mode, bd 692 block/scsi_ioctl.c ret = scsi_verify_blk_ioctl(bd, cmd); bd 696 block/scsi_ioctl.c return scsi_cmd_ioctl(bd->bd_disk->queue, bd->bd_disk, mode, cmd, arg); bd 229 drivers/acpi/acpi_video.c static int acpi_video_get_brightness(struct backlight_device *bd) bd 233 drivers/acpi/acpi_video.c struct acpi_video_device *vd = bl_get_data(bd); bd 244 drivers/acpi/acpi_video.c static int acpi_video_set_brightness(struct backlight_device *bd) bd 246 drivers/acpi/acpi_video.c int request_level = bd->props.brightness + ACPI_VIDEO_FIRST_LEVEL; bd 247 drivers/acpi/acpi_video.c struct acpi_video_device *vd = bl_get_data(bd); bd 371 drivers/acpi/video_detect.c unsigned long val, void *bd) bd 373 drivers/acpi/video_detect.c struct backlight_device *backlight = bd; bd 447 drivers/ata/pata_mpc52xx.c struct bcom_ata_bd *bd; bd 463 drivers/ata/pata_mpc52xx.c bd = (struct bcom_ata_bd *) bd 467 drivers/ata/pata_mpc52xx.c bd->status = tc; bd 468 drivers/ata/pata_mpc52xx.c bd->src_pa = (__force u32) priv->ata_regs_pa + bd 470 drivers/ata/pata_mpc52xx.c bd->dst_pa = (__force u32) cur_addr; bd 472 drivers/ata/pata_mpc52xx.c bd->status = tc; bd 473 drivers/ata/pata_mpc52xx.c bd->src_pa = (__force u32) cur_addr; bd 474 drivers/ata/pata_mpc52xx.c bd->dst_pa = (__force u32) priv->ata_regs_pa + bd 1505 drivers/block/amiflop.c const struct blk_mq_queue_data *bd) bd 1507 drivers/block/amiflop.c struct request *rq = bd->rq; bd 264 drivers/block/aoe/aoeblk.c const struct blk_mq_queue_data *bd) bd 274 drivers/block/aoe/aoeblk.c blk_mq_start_request(bd->rq); bd 278 drivers/block/aoe/aoeblk.c list_add_tail(&bd->rq->queuelist, &d->rq_list); bd 893 drivers/block/aoe/aoecmd.c struct block_device *bd; bd 901 drivers/block/aoe/aoecmd.c bd = bdget_disk(d->gd, 0); bd 902 drivers/block/aoe/aoecmd.c if (bd) { bd 903 drivers/block/aoe/aoecmd.c inode_lock(bd->bd_inode); bd 904 drivers/block/aoe/aoecmd.c i_size_write(bd->bd_inode, (loff_t)ssize<<9); bd 905 drivers/block/aoe/aoecmd.c inode_unlock(bd->bd_inode); bd 906 drivers/block/aoe/aoecmd.c bdput(bd); bd 1485 drivers/block/ataflop.c const struct blk_mq_queue_data *bd) bd 1487 drivers/block/ataflop.c struct atari_floppy_struct *floppy = bd->rq->rq_disk->private_data; bd 1500 drivers/block/ataflop.c fd_request = bd->rq; bd 1550 drivers/block/ataflop.c if (bd->last) bd 2891 drivers/block/floppy.c const struct blk_mq_queue_data *bd) bd 2893 drivers/block/floppy.c blk_mq_start_request(bd->rq); bd 2913 drivers/block/floppy.c list_add_tail(&bd->rq->queuelist, &floppy_reqs); bd 1922 drivers/block/loop.c const struct blk_mq_queue_data *bd) bd 1924 drivers/block/loop.c struct request *rq = bd->rq; bd 3484 drivers/block/mtip32xx/mtip32xx.c const struct blk_mq_queue_data *bd) bd 3487 drivers/block/mtip32xx/mtip32xx.c struct request *rq = bd->rq; bd 951 drivers/block/nbd.c const struct blk_mq_queue_data *bd) bd 953 drivers/block/nbd.c struct nbd_cmd *cmd = blk_mq_rq_to_pdu(bd->rq); bd 1325 drivers/block/null_blk_main.c const struct blk_mq_queue_data *bd) bd 1327 drivers/block/null_blk_main.c struct nullb_cmd *cmd = blk_mq_rq_to_pdu(bd->rq); bd 1329 drivers/block/null_blk_main.c sector_t nr_sectors = blk_rq_sectors(bd->rq); bd 1330 drivers/block/null_blk_main.c sector_t sector = blk_rq_pos(bd->rq); bd 1338 drivers/block/null_blk_main.c cmd->rq = bd->rq; bd 1342 drivers/block/null_blk_main.c blk_mq_start_request(bd->rq); bd 1344 drivers/block/null_blk_main.c if (should_requeue_request(bd->rq)) { bd 1353 drivers/block/null_blk_main.c blk_mq_requeue_request(bd->rq, true); bd 1357 drivers/block/null_blk_main.c if (should_timeout_request(bd->rq)) bd 1360 drivers/block/null_blk_main.c return null_handle_cmd(cmd, sector, nr_sectors, req_op(bd->rq)); bd 190 drivers/block/paride/pcd.c const struct blk_mq_queue_data *bd); bd 814 drivers/block/paride/pcd.c const struct blk_mq_queue_data *bd) bd 818 drivers/block/paride/pcd.c if (rq_data_dir(bd->rq) != READ) { bd 819 drivers/block/paride/pcd.c blk_mq_start_request(bd->rq); bd 824 drivers/block/paride/pcd.c list_add_tail(&bd->rq->queuelist, &cd->rq_list); bd 756 drivers/block/paride/pd.c const struct blk_mq_queue_data *bd) bd 762 drivers/block/paride/pd.c pd_req = bd->rq; bd 765 drivers/block/paride/pd.c list_add_tail(&bd->rq->queuelist, &disk->rq_list); bd 210 drivers/block/paride/pf.c const struct blk_mq_queue_data *bd); bd 872 drivers/block/paride/pf.c const struct blk_mq_queue_data *bd) bd 877 drivers/block/paride/pf.c list_add_tail(&bd->rq->queuelist, &pf->rq_list); bd 196 drivers/block/ps3disk.c const struct blk_mq_queue_data *bd) bd 203 drivers/block/ps3disk.c blk_mq_start_request(bd->rq); bd 206 drivers/block/ps3disk.c ret = ps3disk_do_request(dev, bd->rq); bd 4911 drivers/block/rbd.c const struct blk_mq_queue_data *bd) bd 4913 drivers/block/rbd.c struct request *rq = bd->rq; bd 535 drivers/block/sunvdc.c const struct blk_mq_queue_data *bd) bd 543 drivers/block/sunvdc.c blk_mq_start_request(bd->rq); bd 561 drivers/block/sunvdc.c if (__send_request(bd->rq) < 0) { bd 525 drivers/block/swim.c const struct blk_mq_queue_data *bd) bd 529 drivers/block/swim.c struct request *req = bd->rq; bd 309 drivers/block/swim3.c const struct blk_mq_queue_data *bd) bd 312 drivers/block/swim3.c struct request *req = bd->rq; bd 703 drivers/block/sx8.c const struct blk_mq_queue_data *bd) bd 706 drivers/block/sx8.c struct request *rq = bd->rq; bd 288 drivers/block/virtio_blk.c const struct blk_mq_queue_data *bd) bd 291 drivers/block/virtio_blk.c struct request *req = bd->rq; bd 374 drivers/block/virtio_blk.c if (bd->last && virtqueue_kick_prepare(vblk->vqs[qid].vq)) bd 421 drivers/block/virtio_blk.c static int virtblk_open(struct block_device *bd, fmode_t mode) bd 423 drivers/block/virtio_blk.c struct virtio_blk *vblk = bd->bd_disk->private_data; bd 445 drivers/block/virtio_blk.c static int virtblk_getgeo(struct block_device *bd, struct hd_geometry *geo) bd 447 drivers/block/virtio_blk.c struct virtio_blk *vblk = bd->bd_disk->private_data; bd 469 drivers/block/virtio_blk.c geo->cylinders = get_capacity(bd->bd_disk) >> 11; bd 476 drivers/block/xen-blkfront.c static int blkif_getgeo(struct block_device *bd, struct hd_geometry *hg) bd 480 drivers/block/xen-blkfront.c sector_t nsect = get_capacity(bd->bd_disk); bd 865 drivers/block/xsysace.c const struct blk_mq_queue_data *bd) bd 868 drivers/block/xsysace.c struct request *req = bd->rq; bd 70 drivers/block/z2ram.c const struct blk_mq_queue_data *bd) bd 72 drivers/block/z2ram.c struct request *req = bd->rq; bd 632 drivers/cdrom/gdrom.c const struct blk_mq_queue_data *bd) bd 634 drivers/cdrom/gdrom.c blk_mq_start_request(bd->rq); bd 636 drivers/cdrom/gdrom.c switch (req_op(bd->rq)) { bd 638 drivers/cdrom/gdrom.c return gdrom_readdisk_dma(bd->rq); bd 305 drivers/crypto/bcm/spu.c struct BD_HEADER *bd = (struct BD_HEADER *)ptr; bd 309 drivers/crypto/bcm/spu.c be16_to_cpu(bd->size), be16_to_cpu(bd->prev_length)); bd 391 drivers/crypto/bcm/spu.c struct BD_HEADER *bd; bd 395 drivers/crypto/bcm/spu.c bd = (struct BD_HEADER *)(spu_hdr + 8); bd 396 drivers/crypto/bcm/spu.c pl_len = be16_to_cpu(bd->size); bd 601 drivers/crypto/bcm/spu.c struct BD_HEADER *bd; bd 815 drivers/crypto/bcm/spu.c bd = (struct BD_HEADER *)ptr; bd 816 drivers/crypto/bcm/spu.c bd->size = cpu_to_be16(real_db_size); bd 817 drivers/crypto/bcm/spu.c bd->prev_length = 0; bd 941 drivers/crypto/bcm/spu.c struct BD_HEADER *bd; bd 1018 drivers/crypto/bcm/spu.c bd = (struct BD_HEADER *)(bdesc_ptr + sizeof(struct BDESC_HEADER)); bd 1019 drivers/crypto/bcm/spu.c bd->size = cpu_to_be16(data_size); bd 1023 drivers/crypto/bcm/spu.c bd->size = cpu_to_be16(data_size + SPU_XTS_TWEAK_SIZE); bd 1025 drivers/crypto/bcm/spu.c bd->size = cpu_to_be16(data_size); bd 1027 drivers/crypto/bcm/spu.c bd->prev_length = 0; bd 89 drivers/crypto/caam/caamrng.c static inline void rng_unmap_buf(struct device *jrdev, struct buf_data *bd) bd 91 drivers/crypto/caam/caamrng.c if (bd->addr) bd 92 drivers/crypto/caam/caamrng.c dma_unmap_single(jrdev, bd->addr, RN_BUF_SIZE, bd 109 drivers/crypto/caam/caamrng.c struct buf_data *bd; bd 111 drivers/crypto/caam/caamrng.c bd = container_of(desc, struct buf_data, hw_desc[0]); bd 116 drivers/crypto/caam/caamrng.c atomic_set(&bd->empty, BUF_NOT_EMPTY); bd 117 drivers/crypto/caam/caamrng.c complete(&bd->filled); bd 120 drivers/crypto/caam/caamrng.c dma_sync_single_for_cpu(jrdev, bd->addr, RN_BUF_SIZE, DMA_FROM_DEVICE); bd 123 drivers/crypto/caam/caamrng.c bd->buf, RN_BUF_SIZE, 1); bd 128 drivers/crypto/caam/caamrng.c struct buf_data *bd = &ctx->bufs[!(to_current ^ ctx->current_buf)]; bd 130 drivers/crypto/caam/caamrng.c u32 *desc = bd->hw_desc; bd 134 drivers/crypto/caam/caamrng.c init_completion(&bd->filled); bd 137 drivers/crypto/caam/caamrng.c complete(&bd->filled); /* don't wait on failed job*/ bd 139 drivers/crypto/caam/caamrng.c atomic_inc(&bd->empty); /* note if pending */ bd 147 drivers/crypto/caam/caamrng.c struct buf_data *bd = &ctx->bufs[ctx->current_buf]; bd 151 drivers/crypto/caam/caamrng.c if (atomic_read(&bd->empty)) { bd 153 drivers/crypto/caam/caamrng.c if (atomic_read(&bd->empty) == BUF_EMPTY) { bd 164 drivers/crypto/caam/caamrng.c if (atomic_read(&bd->empty)) bd 165 drivers/crypto/caam/caamrng.c wait_for_completion(&bd->filled); bd 174 drivers/crypto/caam/caamrng.c memcpy(data, bd->buf + ctx->cur_buf_idx, max); bd 181 drivers/crypto/caam/caamrng.c memcpy(data, bd->buf + ctx->cur_buf_idx, copied_idx); bd 183 drivers/crypto/caam/caamrng.c atomic_set(&bd->empty, BUF_EMPTY); bd 226 drivers/crypto/caam/caamrng.c struct buf_data *bd = &ctx->bufs[buf_id]; bd 227 drivers/crypto/caam/caamrng.c u32 *desc = bd->hw_desc; bd 233 drivers/crypto/caam/caamrng.c bd->addr = dma_map_single(jrdev, bd->buf, RN_BUF_SIZE, DMA_FROM_DEVICE); bd 234 drivers/crypto/caam/caamrng.c if (dma_mapping_error(jrdev, bd->addr)) { bd 239 drivers/crypto/caam/caamrng.c append_seq_out_ptr_intlen(desc, bd->addr, RN_BUF_SIZE, 0); bd 250 drivers/crypto/caam/caamrng.c struct buf_data *bd; bd 253 drivers/crypto/caam/caamrng.c bd = &rng_ctx->bufs[i]; bd 254 drivers/crypto/caam/caamrng.c if (atomic_read(&bd->empty) == BUF_PENDING) bd 255 drivers/crypto/caam/caamrng.c wait_for_completion(&bd->filled); bd 263 drivers/crypto/caam/caamrng.c struct buf_data *bd = &ctx->bufs[buf_id]; bd 270 drivers/crypto/caam/caamrng.c atomic_set(&bd->empty, BUF_EMPTY); bd 272 drivers/crypto/caam/caamrng.c wait_for_completion(&bd->filled); bd 1124 drivers/dma/amba-pl08x.c struct pl08x_lli_build_data *bd, bd 1149 drivers/dma/amba-pl08x.c *mbus = &bd->dstbus; bd 1150 drivers/dma/amba-pl08x.c *sbus = &bd->srcbus; bd 1152 drivers/dma/amba-pl08x.c *mbus = &bd->srcbus; bd 1153 drivers/dma/amba-pl08x.c *sbus = &bd->dstbus; bd 1155 drivers/dma/amba-pl08x.c if (bd->dstbus.buswidth >= bd->srcbus.buswidth) { bd 1156 drivers/dma/amba-pl08x.c *mbus = &bd->dstbus; bd 1157 drivers/dma/amba-pl08x.c *sbus = &bd->srcbus; bd 1159 drivers/dma/amba-pl08x.c *mbus = &bd->srcbus; bd 1160 drivers/dma/amba-pl08x.c *sbus = &bd->dstbus; bd 1169 drivers/dma/amba-pl08x.c struct pl08x_lli_build_data *bd, bd 1173 drivers/dma/amba-pl08x.c u32 *llis_va = bd->txd->llis_va + offset; bd 1174 drivers/dma/amba-pl08x.c dma_addr_t llis_bus = bd->txd->llis_bus; bd 1181 drivers/dma/amba-pl08x.c llis_va[PL080_LLI_SRC] = bd->srcbus.addr; bd 1182 drivers/dma/amba-pl08x.c llis_va[PL080_LLI_DST] = bd->dstbus.addr; bd 1184 drivers/dma/amba-pl08x.c llis_va[PL080_LLI_LLI] |= bd->lli_bus; bd 1191 drivers/dma/amba-pl08x.c bd->srcbus.addr += len; bd 1192 drivers/dma/amba-pl08x.c bd->dstbus.addr += len; bd 1195 drivers/dma/amba-pl08x.c bd->srcbus.addr += len; bd 1197 drivers/dma/amba-pl08x.c bd->dstbus.addr += len; bd 1200 drivers/dma/amba-pl08x.c BUG_ON(bd->remainder < len); bd 1202 drivers/dma/amba-pl08x.c bd->remainder -= len; bd 1206 drivers/dma/amba-pl08x.c struct pl08x_lli_build_data *bd, u32 *cctl, u32 len, bd 1210 drivers/dma/amba-pl08x.c pl08x_fill_lli_for_desc(pl08x, bd, num_llis, len, *cctl, len); bd 1261 drivers/dma/amba-pl08x.c struct pl08x_lli_build_data bd; bd 1274 drivers/dma/amba-pl08x.c bd.txd = txd; bd 1275 drivers/dma/amba-pl08x.c bd.lli_bus = (pl08x->lli_buses & PL08X_AHB2) ? PL080_LLI_LM_AHB2 : 0; bd 1279 drivers/dma/amba-pl08x.c bd.srcbus.maxwidth = pl08x_get_bytes_for_lli(pl08x, cctl, true); bd 1282 drivers/dma/amba-pl08x.c bd.dstbus.maxwidth = pl08x_get_bytes_for_lli(pl08x, cctl, false); bd 1288 drivers/dma/amba-pl08x.c bd.srcbus.addr = dsg->src_addr; bd 1289 drivers/dma/amba-pl08x.c bd.dstbus.addr = dsg->dst_addr; bd 1290 drivers/dma/amba-pl08x.c bd.remainder = dsg->len; bd 1291 drivers/dma/amba-pl08x.c bd.srcbus.buswidth = bd.srcbus.maxwidth; bd 1292 drivers/dma/amba-pl08x.c bd.dstbus.buswidth = bd.dstbus.maxwidth; bd 1294 drivers/dma/amba-pl08x.c pl08x_choose_master_bus(pl08x, &bd, &mbus, &sbus, cctl); bd 1298 drivers/dma/amba-pl08x.c (u64)bd.srcbus.addr, bd 1300 drivers/dma/amba-pl08x.c bd.srcbus.buswidth, bd 1301 drivers/dma/amba-pl08x.c (u64)bd.dstbus.addr, bd 1303 drivers/dma/amba-pl08x.c bd.dstbus.buswidth, bd 1304 drivers/dma/amba-pl08x.c bd.remainder); bd 1306 drivers/dma/amba-pl08x.c mbus == &bd.srcbus ? "src" : "dst", bd 1307 drivers/dma/amba-pl08x.c sbus == &bd.srcbus ? "src" : "dst"); bd 1330 drivers/dma/amba-pl08x.c if (!bd.remainder) { bd 1346 drivers/dma/amba-pl08x.c if (!IS_BUS_ALIGNED(&bd.srcbus) || bd 1347 drivers/dma/amba-pl08x.c !IS_BUS_ALIGNED(&bd.dstbus)) { bd 1356 drivers/dma/amba-pl08x.c bd.srcbus.buswidth, bd.dstbus.buswidth, bd 1358 drivers/dma/amba-pl08x.c pl08x_fill_lli_for_desc(pl08x, &bd, num_llis++, bd 1368 drivers/dma/amba-pl08x.c if (bd.remainder < mbus->buswidth) bd 1369 drivers/dma/amba-pl08x.c early_bytes = bd.remainder; bd 1373 drivers/dma/amba-pl08x.c if ((bd.remainder - early_bytes) < mbus->buswidth) bd 1374 drivers/dma/amba-pl08x.c early_bytes = bd.remainder; bd 1380 drivers/dma/amba-pl08x.c __func__, bd.remainder); bd 1381 drivers/dma/amba-pl08x.c prep_byte_width_lli(pl08x, &bd, &cctl, early_bytes, bd 1385 drivers/dma/amba-pl08x.c if (bd.remainder) { bd 1402 drivers/dma/amba-pl08x.c max_bytes_per_lli = bd.srcbus.buswidth * bd 1412 drivers/dma/amba-pl08x.c while (bd.remainder > (mbus->buswidth - 1)) { bd 1419 drivers/dma/amba-pl08x.c lli_len = min(bd.remainder, max_bytes_per_lli); bd 1429 drivers/dma/amba-pl08x.c tsize = lli_len / bd.srcbus.buswidth; bd 1434 drivers/dma/amba-pl08x.c __func__, lli_len, bd.remainder); bd 1437 drivers/dma/amba-pl08x.c bd.srcbus.buswidth, bd.dstbus.buswidth, bd 1439 drivers/dma/amba-pl08x.c pl08x_fill_lli_for_desc(pl08x, &bd, num_llis++, bd 1447 drivers/dma/amba-pl08x.c if (bd.remainder) { bd 1450 drivers/dma/amba-pl08x.c __func__, bd.remainder); bd 1451 drivers/dma/amba-pl08x.c prep_byte_width_lli(pl08x, &bd, &cctl, bd 1452 drivers/dma/amba-pl08x.c bd.remainder, num_llis++, &total_bytes); bd 1476 drivers/dma/amba-pl08x.c last_lli[PL080_LLI_LLI] = txd->llis_bus | bd.lli_bus; bd 136 drivers/dma/bestcomm/ata.c memset(tsk->bd, 0x00, tsk->num_bd * tsk->bd_size); bd 95 drivers/dma/bestcomm/bestcomm.c tsk->bd = bcom_sram_alloc(bd_count * bd_size, 4, &tsk->bd_pa); bd 96 drivers/dma/bestcomm/bestcomm.c if (!tsk->bd) bd 98 drivers/dma/bestcomm/bestcomm.c memset(tsk->bd, 0x00, bd_count * bd_size); bd 110 drivers/dma/bestcomm/bestcomm.c bcom_sram_free(tsk->bd); bd 133 drivers/dma/bestcomm/bestcomm.c bcom_sram_free(tsk->bd); bd 143 drivers/dma/bestcomm/fec.c memset(tsk->bd, 0x00, tsk->num_bd * tsk->bd_size); bd 244 drivers/dma/bestcomm/fec.c memset(tsk->bd, 0x00, tsk->num_bd * tsk->bd_size); bd 145 drivers/dma/bestcomm/gen_bd.c memset(tsk->bd, 0x00, tsk->num_bd * tsk->bd_size); bd 229 drivers/dma/bestcomm/gen_bd.c memset(tsk->bd, 0x00, tsk->num_bd * tsk->bd_size); bd 327 drivers/dma/imx-sdma.c struct sdma_buffer_descriptor *bd; bd 777 drivers/dma/imx-sdma.c struct sdma_buffer_descriptor *bd; bd 788 drivers/dma/imx-sdma.c bd = &desc->bd[desc->buf_tail]; bd 790 drivers/dma/imx-sdma.c if (bd->mode.status & BD_DONE) bd 793 drivers/dma/imx-sdma.c if (bd->mode.status & BD_RROR) { bd 794 drivers/dma/imx-sdma.c bd->mode.status &= ~BD_RROR; bd 804 drivers/dma/imx-sdma.c desc->chn_real_count = bd->mode.count; bd 805 drivers/dma/imx-sdma.c bd->mode.status |= BD_DONE; bd 806 drivers/dma/imx-sdma.c bd->mode.count = desc->period_len; bd 828 drivers/dma/imx-sdma.c struct sdma_buffer_descriptor *bd; bd 837 drivers/dma/imx-sdma.c bd = &sdmac->desc->bd[i]; bd 839 drivers/dma/imx-sdma.c if (bd->mode.status & (BD_DONE | BD_RROR)) bd 841 drivers/dma/imx-sdma.c sdmac->desc->chn_real_count += bd->mode.count; bd 1232 drivers/dma/imx-sdma.c desc->bd = dma_alloc_coherent(desc->sdmac->sdma->dev, bd_size, bd 1234 drivers/dma/imx-sdma.c if (!desc->bd) { bd 1246 drivers/dma/imx-sdma.c dma_free_coherent(desc->sdmac->sdma->dev, bd_size, desc->bd, bd 1393 drivers/dma/imx-sdma.c struct sdma_buffer_descriptor *bd; bd 1409 drivers/dma/imx-sdma.c bd = &desc->bd[i]; bd 1410 drivers/dma/imx-sdma.c bd->buffer_addr = dma_src; bd 1411 drivers/dma/imx-sdma.c bd->ext_buffer_addr = dma_dst; bd 1412 drivers/dma/imx-sdma.c bd->mode.count = count; bd 1414 drivers/dma/imx-sdma.c bd->mode.command = 0; bd 1430 drivers/dma/imx-sdma.c i, count, bd->buffer_addr, bd 1434 drivers/dma/imx-sdma.c bd->mode.status = param; bd 1462 drivers/dma/imx-sdma.c struct sdma_buffer_descriptor *bd = &desc->bd[i]; bd 1465 drivers/dma/imx-sdma.c bd->buffer_addr = sg->dma_address; bd 1475 drivers/dma/imx-sdma.c bd->mode.count = count; bd 1483 drivers/dma/imx-sdma.c bd->mode.command = 0; bd 1488 drivers/dma/imx-sdma.c bd->mode.command = 2; bd 1493 drivers/dma/imx-sdma.c bd->mode.command = 1; bd 1512 drivers/dma/imx-sdma.c bd->mode.status = param; bd 1555 drivers/dma/imx-sdma.c struct sdma_buffer_descriptor *bd = &desc->bd[i]; bd 1558 drivers/dma/imx-sdma.c bd->buffer_addr = dma_addr; bd 1560 drivers/dma/imx-sdma.c bd->mode.count = period_len; bd 1565 drivers/dma/imx-sdma.c bd->mode.command = 0; bd 1567 drivers/dma/imx-sdma.c bd->mode.command = sdmac->word_size; bd 1578 drivers/dma/imx-sdma.c bd->mode.status = param; bd 28 drivers/gpio/gpio-bd9571mwv.c struct bd9571mwv *bd; bd 37 drivers/gpio/gpio-bd9571mwv.c ret = regmap_read(gpio->bd->regmap, BD9571MWV_GPIO_DIR, &val); bd 49 drivers/gpio/gpio-bd9571mwv.c regmap_update_bits(gpio->bd->regmap, BD9571MWV_GPIO_DIR, bd 61 drivers/gpio/gpio-bd9571mwv.c regmap_update_bits(gpio->bd->regmap, BD9571MWV_GPIO_OUT, bd 63 drivers/gpio/gpio-bd9571mwv.c regmap_update_bits(gpio->bd->regmap, BD9571MWV_GPIO_DIR, bd 74 drivers/gpio/gpio-bd9571mwv.c ret = regmap_read(gpio->bd->regmap, BD9571MWV_GPIO_IN, &val); bd 86 drivers/gpio/gpio-bd9571mwv.c regmap_update_bits(gpio->bd->regmap, BD9571MWV_GPIO_OUT, bd 114 drivers/gpio/gpio-bd9571mwv.c gpio->bd = dev_get_drvdata(pdev->dev.parent); bd 116 drivers/gpio/gpio-bd9571mwv.c gpio->chip.parent = gpio->bd->dev; bd 123 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c static u8 amdgpu_atombios_encoder_backlight_level(struct backlight_device *bd) bd 128 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (bd->props.brightness < 0) bd 130 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c else if (bd->props.brightness > AMDGPU_MAX_BL_LEVEL) bd 133 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c level = bd->props.brightness; bd 138 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c static int amdgpu_atombios_encoder_update_backlight_status(struct backlight_device *bd) bd 140 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_backlight_privdata *pdata = bl_get_data(bd); bd 144 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_backlight_level(bd)); bd 150 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_get_backlight_brightness(struct backlight_device *bd) bd 152 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_backlight_privdata *pdata = bl_get_data(bd); bd 170 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct backlight_device *bd; bd 201 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c bd = backlight_device_register(bl_name, drm_connector->kdev, bd 203 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (IS_ERR(bd)) { bd 213 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c dig->bl_dev = bd; bd 215 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c bd->props.brightness = amdgpu_atombios_encoder_get_backlight_brightness(bd); bd 216 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c bd->props.power = FB_BLANK_UNBLANK; bd 217 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c backlight_update_status(bd); bd 233 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct backlight_device *bd = NULL; bd 243 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c bd = dig->bl_dev; bd 246 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (bd) { bd 249 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c pdata = bl_get_data(bd); bd 250 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c backlight_device_unregister(bd); bd 2084 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c static int amdgpu_dm_backlight_update_status(struct backlight_device *bd) bd 2086 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct amdgpu_display_manager *dm = bl_get_data(bd); bd 2088 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c uint32_t brightness = bd->props.brightness; bd 2115 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c static int amdgpu_dm_backlight_get_brightness(struct backlight_device *bd) bd 2117 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct amdgpu_display_manager *dm = bl_get_data(bd); bd 2121 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c return bd->props.brightness; bd 95 drivers/gpu/drm/gma500/cdv_device.c static int cdv_get_brightness(struct backlight_device *bd) bd 97 drivers/gpu/drm/gma500/cdv_device.c struct drm_device *dev = bl_get_data(bd); bd 111 drivers/gpu/drm/gma500/cdv_device.c static int cdv_set_brightness(struct backlight_device *bd) bd 113 drivers/gpu/drm/gma500/cdv_device.c struct drm_device *dev = bl_get_data(bd); bd 114 drivers/gpu/drm/gma500/cdv_device.c int level = bd->props.brightness; bd 40 drivers/gpu/drm/gma500/mdfld_device.c int mdfld_set_brightness(struct backlight_device *bd) bd 45 drivers/gpu/drm/gma500/mdfld_device.c int level = bd->props.brightness; bd 86 drivers/gpu/drm/gma500/mdfld_device.c static int mdfld_get_brightness(struct backlight_device *bd) bd 65 drivers/gpu/drm/gma500/mdfld_output.h int mdfld_set_brightness(struct backlight_device *bd); bd 54 drivers/gpu/drm/gma500/oaktrail_device.c static int oaktrail_set_brightness(struct backlight_device *bd) bd 58 drivers/gpu/drm/gma500/oaktrail_device.c int level = bd->props.brightness; bd 92 drivers/gpu/drm/gma500/oaktrail_device.c static int oaktrail_get_brightness(struct backlight_device *bd) bd 152 drivers/gpu/drm/gma500/opregion.c struct backlight_device *bd = dev_priv->backlight_device; bd 159 drivers/gpu/drm/gma500/opregion.c if (bd == NULL) bd 166 drivers/gpu/drm/gma500/opregion.c gma_backlight_set(dev, bclp * bd->props.max_brightness / 255); bd 47 drivers/gpu/drm/gma500/psb_device.c static int psb_get_brightness(struct backlight_device *bd) bd 92 drivers/gpu/drm/gma500/psb_device.c static int psb_set_brightness(struct backlight_device *bd) bd 95 drivers/gpu/drm/gma500/psb_device.c int level = bd->props.brightness; bd 400 drivers/gpu/drm/gma500/psb_drv.c static inline void get_brightness(struct backlight_device *bd) bd 403 drivers/gpu/drm/gma500/psb_drv.c if (bd) { bd 404 drivers/gpu/drm/gma500/psb_drv.c bd->props.brightness = bd->ops->get_brightness(bd); bd 405 drivers/gpu/drm/gma500/psb_drv.c backlight_update_status(bd); bd 1251 drivers/gpu/drm/i915/display/intel_panel.c static int intel_backlight_device_update_status(struct backlight_device *bd) bd 1253 drivers/gpu/drm/i915/display/intel_panel.c struct intel_connector *connector = bl_get_data(bd); bd 1259 drivers/gpu/drm/i915/display/intel_panel.c bd->props.brightness, bd->props.max_brightness); bd 1260 drivers/gpu/drm/i915/display/intel_panel.c intel_panel_set_backlight(connector->base.state, bd->props.brightness, bd 1261 drivers/gpu/drm/i915/display/intel_panel.c bd->props.max_brightness); bd 1271 drivers/gpu/drm/i915/display/intel_panel.c bool enable = bd->props.power == FB_BLANK_UNBLANK && bd 1272 drivers/gpu/drm/i915/display/intel_panel.c bd->props.brightness != 0; bd 1276 drivers/gpu/drm/i915/display/intel_panel.c bd->props.power = FB_BLANK_POWERDOWN; bd 1283 drivers/gpu/drm/i915/display/intel_panel.c static int intel_backlight_device_get_brightness(struct backlight_device *bd) bd 1285 drivers/gpu/drm/i915/display/intel_panel.c struct intel_connector *connector = bl_get_data(bd); bd 1298 drivers/gpu/drm/i915/display/intel_panel.c hw_level, bd->props.max_brightness); bd 66 drivers/gpu/drm/nouveau/nouveau_backlight.c nv40_get_intensity(struct backlight_device *bd) bd 68 drivers/gpu/drm/nouveau/nouveau_backlight.c struct nouveau_encoder *nv_encoder = bl_get_data(bd); bd 78 drivers/gpu/drm/nouveau/nouveau_backlight.c nv40_set_intensity(struct backlight_device *bd) bd 80 drivers/gpu/drm/nouveau/nouveau_backlight.c struct nouveau_encoder *nv_encoder = bl_get_data(bd); bd 83 drivers/gpu/drm/nouveau/nouveau_backlight.c int val = bd->props.brightness; bd 116 drivers/gpu/drm/nouveau/nouveau_backlight.c nv50_get_intensity(struct backlight_device *bd) bd 118 drivers/gpu/drm/nouveau/nouveau_backlight.c struct nouveau_encoder *nv_encoder = bl_get_data(bd); bd 131 drivers/gpu/drm/nouveau/nouveau_backlight.c nv50_set_intensity(struct backlight_device *bd) bd 133 drivers/gpu/drm/nouveau/nouveau_backlight.c struct nouveau_encoder *nv_encoder = bl_get_data(bd); bd 138 drivers/gpu/drm/nouveau/nouveau_backlight.c u32 val = (bd->props.brightness * div) / 100; bd 152 drivers/gpu/drm/nouveau/nouveau_backlight.c nva3_get_intensity(struct backlight_device *bd) bd 154 drivers/gpu/drm/nouveau/nouveau_backlight.c struct nouveau_encoder *nv_encoder = bl_get_data(bd); bd 170 drivers/gpu/drm/nouveau/nouveau_backlight.c nva3_set_intensity(struct backlight_device *bd) bd 172 drivers/gpu/drm/nouveau/nouveau_backlight.c struct nouveau_encoder *nv_encoder = bl_get_data(bd); bd 179 drivers/gpu/drm/nouveau/nouveau_backlight.c val = (bd->props.brightness * div) / 100; bd 6 drivers/gpu/drm/nouveau/nouveau_ttm.h nouveau_bdev(struct ttm_bo_device *bd) bd 8 drivers/gpu/drm/nouveau/nouveau_ttm.h return container_of(bd, struct nouveau_drm, ttm.bdev); bd 387 drivers/gpu/drm/panel/panel-orisetech-otm8009a.c static int otm8009a_backlight_update_status(struct backlight_device *bd) bd 389 drivers/gpu/drm/panel/panel-orisetech-otm8009a.c struct otm8009a *ctx = bl_get_data(bd); bd 397 drivers/gpu/drm/panel/panel-orisetech-otm8009a.c if (bd->props.power <= FB_BLANK_NORMAL) { bd 403 drivers/gpu/drm/panel/panel-orisetech-otm8009a.c data[1] = bd->props.brightness; bd 394 drivers/gpu/drm/panel/panel-samsung-s6e63m0.c static int s6e63m0_set_brightness(struct backlight_device *bd) bd 396 drivers/gpu/drm/panel/panel-samsung-s6e63m0.c struct s6e63m0 *ctx = bl_get_data(bd); bd 398 drivers/gpu/drm/panel/panel-samsung-s6e63m0.c int brightness = bd->props.brightness; bd 145 drivers/gpu/drm/radeon/atombios_encoders.c static u8 radeon_atom_bl_level(struct backlight_device *bd) bd 150 drivers/gpu/drm/radeon/atombios_encoders.c if (bd->props.brightness < 0) bd 152 drivers/gpu/drm/radeon/atombios_encoders.c else if (bd->props.brightness > RADEON_MAX_BL_LEVEL) bd 155 drivers/gpu/drm/radeon/atombios_encoders.c level = bd->props.brightness; bd 160 drivers/gpu/drm/radeon/atombios_encoders.c static int radeon_atom_backlight_update_status(struct backlight_device *bd) bd 162 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_backlight_privdata *pdata = bl_get_data(bd); bd 165 drivers/gpu/drm/radeon/atombios_encoders.c atombios_set_backlight_level(radeon_encoder, radeon_atom_bl_level(bd)); bd 170 drivers/gpu/drm/radeon/atombios_encoders.c static int radeon_atom_backlight_get_brightness(struct backlight_device *bd) bd 172 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_backlight_privdata *pdata = bl_get_data(bd); bd 190 drivers/gpu/drm/radeon/atombios_encoders.c struct backlight_device *bd; bd 223 drivers/gpu/drm/radeon/atombios_encoders.c bd = backlight_device_register(bl_name, drm_connector->kdev, bd 225 drivers/gpu/drm/radeon/atombios_encoders.c if (IS_ERR(bd)) { bd 233 drivers/gpu/drm/radeon/atombios_encoders.c dig->bl_dev = bd; bd 235 drivers/gpu/drm/radeon/atombios_encoders.c bd->props.brightness = radeon_atom_backlight_get_brightness(bd); bd 241 drivers/gpu/drm/radeon/atombios_encoders.c if (bd->props.brightness == 0) bd 242 drivers/gpu/drm/radeon/atombios_encoders.c bd->props.brightness = RADEON_MAX_BL_LEVEL; bd 243 drivers/gpu/drm/radeon/atombios_encoders.c bd->props.power = FB_BLANK_UNBLANK; bd 244 drivers/gpu/drm/radeon/atombios_encoders.c backlight_update_status(bd); bd 260 drivers/gpu/drm/radeon/atombios_encoders.c struct backlight_device *bd = NULL; bd 273 drivers/gpu/drm/radeon/atombios_encoders.c bd = dig->bl_dev; bd 276 drivers/gpu/drm/radeon/atombios_encoders.c if (bd) { bd 279 drivers/gpu/drm/radeon/atombios_encoders.c pdata = bl_get_data(bd); bd 280 drivers/gpu/drm/radeon/atombios_encoders.c backlight_device_unregister(bd); bd 322 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static uint8_t radeon_legacy_lvds_level(struct backlight_device *bd) bd 324 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_backlight_privdata *pdata = bl_get_data(bd); bd 328 drivers/gpu/drm/radeon/radeon_legacy_encoders.c if (bd->props.brightness < 0) bd 330 drivers/gpu/drm/radeon/radeon_legacy_encoders.c else if (bd->props.brightness > RADEON_MAX_BL_LEVEL) bd 333 drivers/gpu/drm/radeon/radeon_legacy_encoders.c level = bd->props.brightness; bd 341 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static int radeon_legacy_backlight_update_status(struct backlight_device *bd) bd 343 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_backlight_privdata *pdata = bl_get_data(bd); bd 347 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_legacy_lvds_level(bd)); bd 352 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static int radeon_legacy_backlight_get_brightness(struct backlight_device *bd) bd 354 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_backlight_privdata *pdata = bl_get_data(bd); bd 376 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct backlight_device *bd; bd 402 drivers/gpu/drm/radeon/radeon_legacy_encoders.c bd = backlight_device_register(bl_name, drm_connector->kdev, bd 404 drivers/gpu/drm/radeon/radeon_legacy_encoders.c if (IS_ERR(bd)) { bd 440 drivers/gpu/drm/radeon/radeon_legacy_encoders.c lvds->bl_dev = bd; bd 443 drivers/gpu/drm/radeon/radeon_legacy_encoders.c lvds->bl_dev = bd; bd 446 drivers/gpu/drm/radeon/radeon_legacy_encoders.c bd->props.brightness = radeon_legacy_backlight_get_brightness(bd); bd 447 drivers/gpu/drm/radeon/radeon_legacy_encoders.c bd->props.power = FB_BLANK_UNBLANK; bd 448 drivers/gpu/drm/radeon/radeon_legacy_encoders.c backlight_update_status(bd); bd 464 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct backlight_device *bd = NULL; bd 471 drivers/gpu/drm/radeon/radeon_legacy_encoders.c bd = lvds->bl_dev; bd 475 drivers/gpu/drm/radeon/radeon_legacy_encoders.c bd = lvds->bl_dev; bd 479 drivers/gpu/drm/radeon/radeon_legacy_encoders.c if (bd) { bd 482 drivers/gpu/drm/radeon/radeon_legacy_encoders.c pdata = bl_get_data(bd); bd 483 drivers/gpu/drm/radeon/radeon_legacy_encoders.c backlight_device_unregister(bd); bd 409 drivers/gpu/drm/savage/savage_drv.h #define BCI_BD_GET_BPP(bd) (((bd) >> 16) & 0xFF) bd 410 drivers/gpu/drm/savage/savage_drv.h #define BCI_BD_SET_BPP(bd, bpp) ((bd) |= (((bpp) & 0xFF) << 16)) bd 411 drivers/gpu/drm/savage/savage_drv.h #define BCI_BD_GET_STRIDE(bd) ((bd) & 0xFFFF) bd 412 drivers/gpu/drm/savage/savage_drv.h #define BCI_BD_SET_STRIDE(bd, st) ((bd) |= ((st) & 0xFFFF)) bd 1273 drivers/gpu/drm/vmwgfx/device_include/svga3d_surfacedefs.h const u32 bd = desc->block_size.depth; bd 1277 drivers/gpu/drm/vmwgfx/device_include/svga3d_surfacedefs.h const u32 offset = (z / bd * imgstride + bd 2206 drivers/hid/hid-wiimote-modules.c __u8 sx, sy, tb, wb, bd, bm, bp, bo, br, bb, bg, by, bu; bd 2243 drivers/hid/hid-wiimote-modules.c bd = !(ext[4] & 0x40); bd 2284 drivers/hid/hid-wiimote-modules.c bd); bd 77 drivers/i2c/busses/i2c-gpio.c #define setsda(bd, val) ((bd)->setsda((bd)->data, val)) bd 78 drivers/i2c/busses/i2c-gpio.c #define setscl(bd, val) ((bd)->setscl((bd)->data, val)) bd 79 drivers/i2c/busses/i2c-gpio.c #define getsda(bd) ((bd)->getsda((bd)->data)) bd 80 drivers/i2c/busses/i2c-gpio.c #define getscl(bd) ((bd)->getscl((bd)->data)) bd 566 drivers/ide/ide-io.c const struct blk_mq_queue_data *bd) bd 578 drivers/ide/ide-io.c blk_mq_start_request(bd->rq); bd 579 drivers/ide/ide-io.c return ide_issue_rq(drive, bd->rq, false); bd 72 drivers/macintosh/via-pmu-backlight.c static int __pmu_backlight_update_status(struct backlight_device *bd) bd 75 drivers/macintosh/via-pmu-backlight.c int level = bd->props.brightness; bd 78 drivers/macintosh/via-pmu-backlight.c if (bd->props.power != FB_BLANK_UNBLANK || bd 79 drivers/macintosh/via-pmu-backlight.c bd->props.fb_blank != FB_BLANK_UNBLANK) bd 100 drivers/macintosh/via-pmu-backlight.c static int pmu_backlight_update_status(struct backlight_device *bd) bd 108 drivers/macintosh/via-pmu-backlight.c rc = __pmu_backlight_update_status(bd); bd 143 drivers/macintosh/via-pmu-backlight.c struct backlight_device *bd; bd 163 drivers/macintosh/via-pmu-backlight.c bd = backlight_device_register(name, NULL, NULL, &pmu_backlight_data, bd 165 drivers/macintosh/via-pmu-backlight.c if (IS_ERR(bd)) { bd 172 drivers/macintosh/via-pmu-backlight.c level = bd->props.max_brightness; bd 182 drivers/macintosh/via-pmu-backlight.c bd->props.max_brightness / 15); bd 185 drivers/macintosh/via-pmu-backlight.c bd->props.brightness = level; bd 186 drivers/macintosh/via-pmu-backlight.c bd->props.power = FB_BLANK_UNBLANK; bd 187 drivers/macintosh/via-pmu-backlight.c backlight_update_status(bd); bd 32 drivers/md/dm-bio-record.h static inline void dm_bio_record(struct dm_bio_details *bd, struct bio *bio) bd 34 drivers/md/dm-bio-record.h bd->bi_disk = bio->bi_disk; bd 35 drivers/md/dm-bio-record.h bd->bi_partno = bio->bi_partno; bd 36 drivers/md/dm-bio-record.h bd->bi_flags = bio->bi_flags; bd 37 drivers/md/dm-bio-record.h bd->bi_iter = bio->bi_iter; bd 38 drivers/md/dm-bio-record.h bd->__bi_remaining = atomic_read(&bio->__bi_remaining); bd 39 drivers/md/dm-bio-record.h bd->bi_end_io = bio->bi_end_io; bd 41 drivers/md/dm-bio-record.h bd->bi_integrity = bio_integrity(bio); bd 45 drivers/md/dm-bio-record.h static inline void dm_bio_restore(struct dm_bio_details *bd, struct bio *bio) bd 47 drivers/md/dm-bio-record.h bio->bi_disk = bd->bi_disk; bd 48 drivers/md/dm-bio-record.h bio->bi_partno = bd->bi_partno; bd 49 drivers/md/dm-bio-record.h bio->bi_flags = bd->bi_flags; bd 50 drivers/md/dm-bio-record.h bio->bi_iter = bd->bi_iter; bd 51 drivers/md/dm-bio-record.h atomic_set(&bio->__bi_remaining, bd->__bi_remaining); bd 52 drivers/md/dm-bio-record.h bio->bi_end_io = bd->bi_end_io; bd 54 drivers/md/dm-bio-record.h bio->bi_integrity = bd->bi_integrity; bd 1239 drivers/md/dm-raid1.c struct dm_bio_details *bd = NULL; bd 1282 drivers/md/dm-raid1.c bd = &bio_record->details; bd 1284 drivers/md/dm-raid1.c dm_bio_restore(bd, bio); bd 492 drivers/md/dm-rq.c const struct blk_mq_queue_data *bd) bd 494 drivers/md/dm-rq.c struct request *rq = bd->rq; bd 188 drivers/media/platform/qcom/venus/helpers.c struct hfi_buffer_desc bd; bd 218 drivers/media/platform/qcom/venus/helpers.c memset(&bd, 0, sizeof(bd)); bd 219 drivers/media/platform/qcom/venus/helpers.c bd.buffer_size = buf->size; bd 220 drivers/media/platform/qcom/venus/helpers.c bd.buffer_type = buf->type; bd 221 drivers/media/platform/qcom/venus/helpers.c bd.num_buffers = 1; bd 222 drivers/media/platform/qcom/venus/helpers.c bd.device_addr = buf->da; bd 224 drivers/media/platform/qcom/venus/helpers.c ret = hfi_session_set_buffers(inst, &bd); bd 244 drivers/media/platform/qcom/venus/helpers.c struct hfi_buffer_desc bd = {0}; bd 249 drivers/media/platform/qcom/venus/helpers.c bd.buffer_size = buf->size; bd 250 drivers/media/platform/qcom/venus/helpers.c bd.buffer_type = buf->type; bd 251 drivers/media/platform/qcom/venus/helpers.c bd.num_buffers = 1; bd 252 drivers/media/platform/qcom/venus/helpers.c bd.device_addr = buf->da; bd 253 drivers/media/platform/qcom/venus/helpers.c bd.response_required = true; bd 255 drivers/media/platform/qcom/venus/helpers.c ret = hfi_session_unset_buffers(inst, &bd); bd 319 drivers/media/platform/qcom/venus/helpers.c struct hfi_buffer_desc bd; bd 328 drivers/media/platform/qcom/venus/helpers.c memset(&bd, 0, sizeof(bd)); bd 329 drivers/media/platform/qcom/venus/helpers.c bd.buffer_size = buf->size; bd 330 drivers/media/platform/qcom/venus/helpers.c bd.buffer_type = buf->type; bd 331 drivers/media/platform/qcom/venus/helpers.c bd.num_buffers = 1; bd 332 drivers/media/platform/qcom/venus/helpers.c bd.device_addr = buf->da; bd 333 drivers/media/platform/qcom/venus/helpers.c bd.response_required = true; bd 335 drivers/media/platform/qcom/venus/helpers.c ret = hfi_session_unset_buffers(inst, &bd); bd 443 drivers/media/platform/qcom/venus/helpers.c struct hfi_buffer_desc *bd, bool response) bd 445 drivers/media/platform/qcom/venus/helpers.c memset(bd, 0, sizeof(*bd)); bd 446 drivers/media/platform/qcom/venus/helpers.c bd->buffer_type = HFI_BUFFER_OUTPUT; bd 447 drivers/media/platform/qcom/venus/helpers.c bd->buffer_size = buf->size; bd 448 drivers/media/platform/qcom/venus/helpers.c bd->num_buffers = 1; bd 449 drivers/media/platform/qcom/venus/helpers.c bd->device_addr = buf->dma_addr; bd 450 drivers/media/platform/qcom/venus/helpers.c bd->response_required = response; bd 582 drivers/media/platform/qcom/venus/helpers.c struct hfi_buffer_desc bd; bd 589 drivers/media/platform/qcom/venus/helpers.c fill_buffer_desc(buf, &bd, true); bd 590 drivers/media/platform/qcom/venus/helpers.c ret = hfi_session_unset_buffers(inst, &bd); bd 602 drivers/media/platform/qcom/venus/helpers.c struct hfi_buffer_desc bd; bd 610 drivers/media/platform/qcom/venus/helpers.c fill_buffer_desc(buf, &bd, false); bd 611 drivers/media/platform/qcom/venus/helpers.c ret = hfi_session_set_buffers(inst, &bd); bd 404 drivers/media/platform/qcom/venus/hfi.c int hfi_session_set_buffers(struct venus_inst *inst, struct hfi_buffer_desc *bd) bd 408 drivers/media/platform/qcom/venus/hfi.c return ops->session_set_buffers(inst, bd); bd 412 drivers/media/platform/qcom/venus/hfi.c struct hfi_buffer_desc *bd) bd 419 drivers/media/platform/qcom/venus/hfi.c ret = ops->session_unset_buffers(inst, bd); bd 423 drivers/media/platform/qcom/venus/hfi.c if (!bd->response_required) bd 124 drivers/media/platform/qcom/venus/hfi.h struct hfi_buffer_desc *bd); bd 126 drivers/media/platform/qcom/venus/hfi.h struct hfi_buffer_desc *bd); bd 166 drivers/media/platform/qcom/venus/hfi.h struct hfi_buffer_desc *bd); bd 168 drivers/media/platform/qcom/venus/hfi.h struct hfi_buffer_desc *bd); bd 175 drivers/media/platform/qcom/venus/hfi_cmds.c void *cookie, struct hfi_buffer_desc *bd) bd 179 drivers/media/platform/qcom/venus/hfi_cmds.c if (!cookie || !pkt || !bd) bd 184 drivers/media/platform/qcom/venus/hfi_cmds.c pkt->buffer_size = bd->buffer_size; bd 185 drivers/media/platform/qcom/venus/hfi_cmds.c pkt->min_buffer_size = bd->buffer_size; bd 186 drivers/media/platform/qcom/venus/hfi_cmds.c pkt->num_buffers = bd->num_buffers; bd 188 drivers/media/platform/qcom/venus/hfi_cmds.c if (bd->buffer_type == HFI_BUFFER_OUTPUT || bd 189 drivers/media/platform/qcom/venus/hfi_cmds.c bd->buffer_type == HFI_BUFFER_OUTPUT2) { bd 192 drivers/media/platform/qcom/venus/hfi_cmds.c pkt->extradata_size = bd->extradata_size; bd 194 drivers/media/platform/qcom/venus/hfi_cmds.c (bd->num_buffers * sizeof(*bi)); bd 197 drivers/media/platform/qcom/venus/hfi_cmds.c bi->buffer_addr = bd->device_addr; bd 198 drivers/media/platform/qcom/venus/hfi_cmds.c bi->extradata_addr = bd->extradata_addr; bd 203 drivers/media/platform/qcom/venus/hfi_cmds.c ((bd->num_buffers - 1) * sizeof(u32)); bd 205 drivers/media/platform/qcom/venus/hfi_cmds.c pkt->buffer_info[i] = bd->device_addr; bd 208 drivers/media/platform/qcom/venus/hfi_cmds.c pkt->buffer_type = bd->buffer_type; bd 214 drivers/media/platform/qcom/venus/hfi_cmds.c void *cookie, struct hfi_buffer_desc *bd) bd 218 drivers/media/platform/qcom/venus/hfi_cmds.c if (!cookie || !pkt || !bd) bd 223 drivers/media/platform/qcom/venus/hfi_cmds.c pkt->buffer_size = bd->buffer_size; bd 224 drivers/media/platform/qcom/venus/hfi_cmds.c pkt->num_buffers = bd->num_buffers; bd 226 drivers/media/platform/qcom/venus/hfi_cmds.c if (bd->buffer_type == HFI_BUFFER_OUTPUT || bd 227 drivers/media/platform/qcom/venus/hfi_cmds.c bd->buffer_type == HFI_BUFFER_OUTPUT2) { bd 232 drivers/media/platform/qcom/venus/hfi_cmds.c bi->buffer_addr = bd->device_addr; bd 233 drivers/media/platform/qcom/venus/hfi_cmds.c bi->extradata_addr = bd->extradata_addr; bd 237 drivers/media/platform/qcom/venus/hfi_cmds.c sizeof(u32) + (bd->num_buffers * sizeof(*bi)); bd 240 drivers/media/platform/qcom/venus/hfi_cmds.c pkt->buffer_info[i] = bd->device_addr; bd 245 drivers/media/platform/qcom/venus/hfi_cmds.c ((bd->num_buffers - 1) * sizeof(u32)); bd 248 drivers/media/platform/qcom/venus/hfi_cmds.c pkt->response_req = bd->response_required; bd 249 drivers/media/platform/qcom/venus/hfi_cmds.c pkt->buffer_type = bd->buffer_type; bd 273 drivers/media/platform/qcom/venus/hfi_cmds.h void *cookie, struct hfi_buffer_desc *bd); bd 275 drivers/media/platform/qcom/venus/hfi_cmds.h void *cookie, struct hfi_buffer_desc *bd); bd 1246 drivers/media/platform/qcom/venus/hfi_venus.c struct hfi_buffer_desc *bd) bd 1253 drivers/media/platform/qcom/venus/hfi_venus.c if (bd->buffer_type == HFI_BUFFER_INPUT) bd 1258 drivers/media/platform/qcom/venus/hfi_venus.c ret = pkt_session_set_buffers(pkt, inst, bd); bd 1266 drivers/media/platform/qcom/venus/hfi_venus.c struct hfi_buffer_desc *bd) bd 1273 drivers/media/platform/qcom/venus/hfi_venus.c if (bd->buffer_type == HFI_BUFFER_INPUT) bd 1278 drivers/media/platform/qcom/venus/hfi_venus.c ret = pkt_session_unset_buffers(pkt, inst, bd); bd 1998 drivers/memstick/core/ms_block.c const struct blk_mq_queue_data *bd) bd 2002 drivers/memstick/core/ms_block.c struct request *req = bd->rq; bd 826 drivers/memstick/core/mspro_block.c const struct blk_mq_queue_data *bd) bd 840 drivers/memstick/core/mspro_block.c blk_mq_start_request(bd->rq); bd 844 drivers/memstick/core/mspro_block.c msb->block_req = bd->rq; bd 845 drivers/memstick/core/mspro_block.c blk_mq_start_request(bd->rq); bd 113 drivers/mfd/bd9571mwv.c static int bd9571mwv_identify(struct bd9571mwv *bd) bd 115 drivers/mfd/bd9571mwv.c struct device *dev = bd->dev; bd 119 drivers/mfd/bd9571mwv.c ret = regmap_read(bd->regmap, BD9571MWV_VENDOR_CODE, &value); bd 132 drivers/mfd/bd9571mwv.c ret = regmap_read(bd->regmap, BD9571MWV_PRODUCT_CODE, &value); bd 145 drivers/mfd/bd9571mwv.c ret = regmap_read(bd->regmap, BD9571MWV_PRODUCT_REVISION, &value); bd 160 drivers/mfd/bd9571mwv.c struct bd9571mwv *bd; bd 163 drivers/mfd/bd9571mwv.c bd = devm_kzalloc(&client->dev, sizeof(*bd), GFP_KERNEL); bd 164 drivers/mfd/bd9571mwv.c if (!bd) bd 167 drivers/mfd/bd9571mwv.c i2c_set_clientdata(client, bd); bd 168 drivers/mfd/bd9571mwv.c bd->dev = &client->dev; bd 169 drivers/mfd/bd9571mwv.c bd->irq = client->irq; bd 171 drivers/mfd/bd9571mwv.c bd->regmap = devm_regmap_init_i2c(client, &bd9571mwv_regmap_config); bd 172 drivers/mfd/bd9571mwv.c if (IS_ERR(bd->regmap)) { bd 173 drivers/mfd/bd9571mwv.c dev_err(bd->dev, "Failed to initialize register map\n"); bd 174 drivers/mfd/bd9571mwv.c return PTR_ERR(bd->regmap); bd 177 drivers/mfd/bd9571mwv.c ret = bd9571mwv_identify(bd); bd 181 drivers/mfd/bd9571mwv.c ret = regmap_add_irq_chip(bd->regmap, bd->irq, IRQF_ONESHOT, 0, bd 182 drivers/mfd/bd9571mwv.c &bd9571mwv_irq_chip, &bd->irq_data); bd 184 drivers/mfd/bd9571mwv.c dev_err(bd->dev, "Failed to register IRQ chip\n"); bd 188 drivers/mfd/bd9571mwv.c ret = mfd_add_devices(bd->dev, PLATFORM_DEVID_AUTO, bd9571mwv_cells, bd 190 drivers/mfd/bd9571mwv.c regmap_irq_get_domain(bd->irq_data)); bd 192 drivers/mfd/bd9571mwv.c regmap_del_irq_chip(bd->irq, bd->irq_data); bd 201 drivers/mfd/bd9571mwv.c struct bd9571mwv *bd = i2c_get_clientdata(client); bd 203 drivers/mfd/bd9571mwv.c regmap_del_irq_chip(bd->irq, bd->irq_data); bd 2795 drivers/misc/habanalabs/goya/goya.c void goya_pqe_write(struct hl_device *hdev, __le64 *pqe, struct hl_bd *bd) bd 2798 drivers/misc/habanalabs/goya/goya.c memcpy_toio((void __iomem *) pqe, bd, sizeof(struct hl_bd)); bd 183 drivers/misc/habanalabs/goya/goyaP.h void goya_pqe_write(struct hl_device *hdev, __le64 *pqe, struct hl_bd *bd); bd 522 drivers/misc/habanalabs/habanalabs.h struct hl_bd *bd); bd 79 drivers/misc/habanalabs/hw_queue.c struct hl_bd *bd; bd 81 drivers/misc/habanalabs/hw_queue.c bd = (struct hl_bd *) (uintptr_t) q->kernel_address; bd 82 drivers/misc/habanalabs/hw_queue.c bd += hl_pi_2_offset(q->pi); bd 83 drivers/misc/habanalabs/hw_queue.c bd->ctl = cpu_to_le32(ctl); bd 84 drivers/misc/habanalabs/hw_queue.c bd->len = cpu_to_le32(len); bd 85 drivers/misc/habanalabs/hw_queue.c bd->ptr = cpu_to_le64(ptr); bd 292 drivers/misc/habanalabs/hw_queue.c struct hl_bd bd; bd 295 drivers/misc/habanalabs/hw_queue.c bd.ctl = 0; bd 296 drivers/misc/habanalabs/hw_queue.c bd.len = cpu_to_le32(job->job_cb_size); bd 297 drivers/misc/habanalabs/hw_queue.c bd.ptr = cpu_to_le64((u64) (uintptr_t) job->user_cb); bd 300 drivers/misc/habanalabs/hw_queue.c ((q->pi & (q->int_queue_len - 1)) * sizeof(bd))); bd 305 drivers/misc/habanalabs/hw_queue.c hdev->asic_funcs->pqe_write(hdev, pi, &bd); bd 1305 drivers/misc/mic/scif/scif_nodeqp.c int bd; bd 1324 drivers/misc/mic/scif/scif_nodeqp.c for (bd = SCIF_MGMT_NODE + 1; bd <= scif_info.maxid; bd++) { bd 1325 drivers/misc/mic/scif/scif_nodeqp.c peer_dev = &scif_dev[bd]; bd 241 drivers/mmc/core/queue.c const struct blk_mq_queue_data *bd) bd 243 drivers/mmc/core/queue.c struct request *req = bd->rq; bd 339 drivers/mmc/host/mtk-sd.c struct mt_bdma_desc *bd; /* pointer to bd array */ bd 619 drivers/mmc/host/mtk-sd.c struct mt_bdma_desc *bd; bd 624 drivers/mmc/host/mtk-sd.c bd = dma->bd; bd 639 drivers/mmc/host/mtk-sd.c bd[j].bd_info &= ~BDMA_DESC_BLKPAD; bd 640 drivers/mmc/host/mtk-sd.c bd[j].bd_info &= ~BDMA_DESC_DWPAD; bd 641 drivers/mmc/host/mtk-sd.c bd[j].ptr = lower_32_bits(dma_address); bd 643 drivers/mmc/host/mtk-sd.c bd[j].bd_info &= ~BDMA_DESC_PTR_H4; bd 644 drivers/mmc/host/mtk-sd.c bd[j].bd_info |= (upper_32_bits(dma_address) & 0xf) bd 649 drivers/mmc/host/mtk-sd.c bd[j].bd_data_len &= ~BDMA_DESC_BUFLEN_EXT; bd 650 drivers/mmc/host/mtk-sd.c bd[j].bd_data_len |= (dma_len & BDMA_DESC_BUFLEN_EXT); bd 652 drivers/mmc/host/mtk-sd.c bd[j].bd_data_len &= ~BDMA_DESC_BUFLEN; bd 653 drivers/mmc/host/mtk-sd.c bd[j].bd_data_len |= (dma_len & BDMA_DESC_BUFLEN); bd 657 drivers/mmc/host/mtk-sd.c bd[j].bd_info |= BDMA_DESC_EOL; bd 659 drivers/mmc/host/mtk-sd.c bd[j].bd_info &= ~BDMA_DESC_EOL; bd 662 drivers/mmc/host/mtk-sd.c bd[j].bd_info &= ~BDMA_DESC_CHECKSUM; bd 663 drivers/mmc/host/mtk-sd.c bd[j].bd_info |= msdc_dma_calcs((u8 *)(&bd[j]), 16) << 8; bd 1626 drivers/mmc/host/mtk-sd.c struct mt_bdma_desc *bd = dma->bd; bd 1646 drivers/mmc/host/mtk-sd.c memset(bd, 0, sizeof(struct mt_bdma_desc) * MAX_BD_NUM); bd 1648 drivers/mmc/host/mtk-sd.c dma_addr = dma->bd_addr + sizeof(*bd) * (i + 1); bd 1649 drivers/mmc/host/mtk-sd.c bd[i].next = lower_32_bits(dma_addr); bd 1651 drivers/mmc/host/mtk-sd.c bd[i].bd_info |= (upper_32_bits(dma_addr) & 0xf) << 24; bd 2308 drivers/mmc/host/mtk-sd.c host->dma.bd = dma_alloc_coherent(&pdev->dev, bd 2311 drivers/mmc/host/mtk-sd.c if (!host->dma.gpd || !host->dma.bd) { bd 2349 drivers/mmc/host/mtk-sd.c if (host->dma.bd) bd 2352 drivers/mmc/host/mtk-sd.c host->dma.bd, host->dma.bd_addr); bd 2380 drivers/mmc/host/mtk-sd.c host->dma.bd, host->dma.bd_addr); bd 186 drivers/mtd/mtd_blkdevs.c const struct blk_mq_queue_data *bd) bd 192 drivers/mtd/mtd_blkdevs.c blk_mq_start_request(bd->rq); bd 197 drivers/mtd/mtd_blkdevs.c list_add_tail(&bd->rq->queuelist, &dev->rq_list); bd 56 drivers/mtd/nand/onenand/onenand_bbt.c static int create_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *bd, int chip) bd 73 drivers/mtd/nand/onenand/onenand_bbt.c readlen = bd->len; bd 95 drivers/mtd/nand/onenand/onenand_bbt.c from + j * this->writesize + bd->offs, &ops); bd 102 drivers/mtd/nand/onenand/onenand_bbt.c scanlen, this->writesize, bd)) { bd 131 drivers/mtd/nand/onenand/onenand_bbt.c static inline int onenand_memory_bbt (struct mtd_info *mtd, struct nand_bbt_descr *bd) bd 135 drivers/mtd/nand/onenand/onenand_bbt.c return create_bbt(mtd, this->page_buf, bd, -1); bd 181 drivers/mtd/nand/onenand/onenand_bbt.c static int onenand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd) bd 200 drivers/mtd/nand/onenand/onenand_bbt.c if ((ret = onenand_memory_bbt(mtd, bd))) { bd 414 drivers/mtd/nand/raw/nand_bbt.c static int scan_block_fast(struct nand_chip *this, struct nand_bbt_descr *bd, bd 441 drivers/mtd/nand/raw/nand_bbt.c if (check_short_pattern(buf, bd)) bd 462 drivers/mtd/nand/raw/nand_bbt.c struct nand_bbt_descr *bd, int chip) bd 490 drivers/mtd/nand/raw/nand_bbt.c BUG_ON(bd->options & NAND_BBT_NO_OOB); bd 492 drivers/mtd/nand/raw/nand_bbt.c ret = scan_block_fast(this, bd, from, buf); bd 899 drivers/mtd/nand/raw/nand_bbt.c struct nand_bbt_descr *bd) bd 903 drivers/mtd/nand/raw/nand_bbt.c return create_bbt(this, pagebuf, bd, -1); bd 918 drivers/mtd/nand/raw/nand_bbt.c struct nand_bbt_descr *bd) bd 977 drivers/mtd/nand/raw/nand_bbt.c create_bbt(this, buf, bd, chipsel); bd 1158 drivers/mtd/nand/raw/nand_bbt.c static void verify_bbt_descr(struct nand_chip *this, struct nand_bbt_descr *bd) bd 1166 drivers/mtd/nand/raw/nand_bbt.c if (!bd) bd 1169 drivers/mtd/nand/raw/nand_bbt.c pattern_len = bd->len; bd 1170 drivers/mtd/nand/raw/nand_bbt.c bits = bd->options & NAND_BBT_NRBITS_MSK; bd 1176 drivers/mtd/nand/raw/nand_bbt.c if (bd->options & NAND_BBT_VERSION) bd 1179 drivers/mtd/nand/raw/nand_bbt.c if (bd->options & NAND_BBT_NO_OOB) { bd 1182 drivers/mtd/nand/raw/nand_bbt.c BUG_ON(bd->offs); bd 1183 drivers/mtd/nand/raw/nand_bbt.c if (bd->options & NAND_BBT_VERSION) bd 1184 drivers/mtd/nand/raw/nand_bbt.c BUG_ON(bd->veroffs != bd->len); bd 1185 drivers/mtd/nand/raw/nand_bbt.c BUG_ON(bd->options & NAND_BBT_SAVECONTENT); bd 1188 drivers/mtd/nand/raw/nand_bbt.c if (bd->options & NAND_BBT_PERCHIP) bd 1194 drivers/mtd/nand/raw/nand_bbt.c if (bd->options & NAND_BBT_NO_OOB) bd 1211 drivers/mtd/nand/raw/nand_bbt.c static int nand_scan_bbt(struct nand_chip *this, struct nand_bbt_descr *bd) bd 1233 drivers/mtd/nand/raw/nand_bbt.c if ((res = nand_memory_bbt(this, bd))) { bd 1259 drivers/mtd/nand/raw/nand_bbt.c res = check_create(this, buf, bd); bd 1341 drivers/mtd/nand/raw/nand_bbt.c struct nand_bbt_descr *bd; bd 1346 drivers/mtd/nand/raw/nand_bbt.c bd = kzalloc(sizeof(*bd), GFP_KERNEL); bd 1347 drivers/mtd/nand/raw/nand_bbt.c if (!bd) bd 1349 drivers/mtd/nand/raw/nand_bbt.c bd->options = this->bbt_options & BADBLOCK_SCAN_MASK; bd 1350 drivers/mtd/nand/raw/nand_bbt.c bd->offs = this->badblockpos; bd 1351 drivers/mtd/nand/raw/nand_bbt.c bd->len = (this->options & NAND_BUSWIDTH_16) ? 2 : 1; bd 1352 drivers/mtd/nand/raw/nand_bbt.c bd->pattern = scan_ff_pattern; bd 1353 drivers/mtd/nand/raw/nand_bbt.c bd->options |= NAND_BBT_DYNAMICSTRUCT; bd 1354 drivers/mtd/nand/raw/nand_bbt.c this->badblock_pattern = bd; bd 314 drivers/mtd/ubi/block.c const struct blk_mq_queue_data *bd) bd 316 drivers/mtd/ubi/block.c struct request *req = bd->rq; bd 155 drivers/net/ethernet/aeroflex/greth.c static inline void greth_write_bd(u32 *bd, u32 val) bd 157 drivers/net/ethernet/aeroflex/greth.c __raw_writel(cpu_to_be32(val), bd); bd 160 drivers/net/ethernet/aeroflex/greth.c static inline u32 greth_read_bd(u32 *bd) bd 162 drivers/net/ethernet/aeroflex/greth.c return be32_to_cpu(__raw_readl(bd)); bd 332 drivers/net/ethernet/amd/xgbe/xgbe-desc.c static void xgbe_set_buffer_data(struct xgbe_buffer_data *bd, bd 337 drivers/net/ethernet/amd/xgbe/xgbe-desc.c bd->pa = *pa; bd 339 drivers/net/ethernet/amd/xgbe/xgbe-desc.c bd->dma_base = pa->pages_dma; bd 340 drivers/net/ethernet/amd/xgbe/xgbe-desc.c bd->dma_off = pa->pages_offset; bd 341 drivers/net/ethernet/amd/xgbe/xgbe-desc.c bd->dma_len = len; bd 346 drivers/net/ethernet/amd/xgbe/xgbe-desc.c bd->pa_unmap = *pa; bd 170 drivers/net/ethernet/atheros/atl1e/atl1e_param.c int bd = adapter->bd_number; bd 172 drivers/net/ethernet/atheros/atl1e/atl1e_param.c if (bd >= ATL1E_MAX_NIC) { bd 174 drivers/net/ethernet/atheros/atl1e/atl1e_param.c "no configuration for board #%i\n", bd); bd 190 drivers/net/ethernet/atheros/atl1e/atl1e_param.c if (num_tx_desc_cnt > bd) { bd 191 drivers/net/ethernet/atheros/atl1e/atl1e_param.c val = tx_desc_cnt[bd]; bd 209 drivers/net/ethernet/atheros/atl1e/atl1e_param.c if (num_rx_mem_size > bd) { bd 210 drivers/net/ethernet/atheros/atl1e/atl1e_param.c val = rx_mem_size[bd]; bd 229 drivers/net/ethernet/atheros/atl1e/atl1e_param.c if (num_int_mod_timer > bd) { bd 230 drivers/net/ethernet/atheros/atl1e/atl1e_param.c val = int_mod_timer[bd]; bd 248 drivers/net/ethernet/atheros/atl1e/atl1e_param.c if (num_media_type > bd) { bd 249 drivers/net/ethernet/atheros/atl1e/atl1e_param.c val = media_type[bd]; bd 193 drivers/net/ethernet/atheros/atlx/atl1.c int bd = adapter->bd_number; bd 194 drivers/net/ethernet/atheros/atlx/atl1.c if (bd >= ATL1_MAX_NIC) { bd 195 drivers/net/ethernet/atheros/atlx/atl1.c dev_notice(&pdev->dev, "no configuration for board#%i\n", bd); bd 209 drivers/net/ethernet/atheros/atlx/atl1.c if (num_int_mod_timer > bd) { bd 210 drivers/net/ethernet/atheros/atlx/atl1.c val = int_mod_timer[bd]; bd 2959 drivers/net/ethernet/atheros/atlx/atl2.c int bd = adapter->bd_number; bd 2960 drivers/net/ethernet/atheros/atlx/atl2.c if (bd >= ATL2_MAX_NIC) { bd 2962 drivers/net/ethernet/atheros/atlx/atl2.c bd); bd 2965 drivers/net/ethernet/atheros/atlx/atl2.c bd = ATL2_MAX_NIC; bd 2977 drivers/net/ethernet/atheros/atlx/atl2.c if (num_TxMemSize > bd) { bd 2979 drivers/net/ethernet/atheros/atlx/atl2.c val = TxMemSize[bd]; bd 2999 drivers/net/ethernet/atheros/atlx/atl2.c if (num_RxMemBlock > bd) { bd 3001 drivers/net/ethernet/atheros/atlx/atl2.c val = RxMemBlock[bd]; bd 3024 drivers/net/ethernet/atheros/atlx/atl2.c if (num_IntModTimer > bd) { bd 3026 drivers/net/ethernet/atheros/atlx/atl2.c val = IntModTimer[bd]; bd 3041 drivers/net/ethernet/atheros/atlx/atl2.c if (num_FlashVendor > bd) { bd 3043 drivers/net/ethernet/atheros/atlx/atl2.c val = FlashVendor[bd]; bd 3058 drivers/net/ethernet/atheros/atlx/atl2.c if (num_MediaType > bd) { bd 3060 drivers/net/ethernet/atheros/atlx/atl2.c val = MediaType[bd]; bd 758 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h #define BD_UNMAP_ADDR(bd) HILO_U64(le32_to_cpu((bd)->addr_hi), \ bd 759 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h le32_to_cpu((bd)->addr_lo)) bd 760 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h #define BD_UNMAP_LEN(bd) (le16_to_cpu((bd)->nbytes)) bd 10564 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c #define BNX2X_PREV_UNDI_PROD(rcq, bd) ((bd) << 16 | (rcq)) bd 10589 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c u16 rcq, bd; bd 10599 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bd = BNX2X_PREV_UNDI_BD(tmp_reg) + inc; bd 10601 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c tmp_reg = BNX2X_PREV_UNDI_PROD(rcq, bd); bd 10605 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c BP_PORT(bp), BP_FUNC(bp), addr, bd, rcq); bd 250 drivers/net/ethernet/ethoc.c struct ethoc_bd *bd) bd 253 drivers/net/ethernet/ethoc.c bd->stat = ethoc_read(dev, offset + 0); bd 254 drivers/net/ethernet/ethoc.c bd->addr = ethoc_read(dev, offset + 4); bd 258 drivers/net/ethernet/ethoc.c const struct ethoc_bd *bd) bd 261 drivers/net/ethernet/ethoc.c ethoc_write(dev, offset + 0, bd->stat); bd 262 drivers/net/ethernet/ethoc.c ethoc_write(dev, offset + 4, bd->addr); bd 300 drivers/net/ethernet/ethoc.c struct ethoc_bd bd; bd 311 drivers/net/ethernet/ethoc.c bd.addr = mem_start; bd 312 drivers/net/ethernet/ethoc.c bd.stat = TX_BD_IRQ | TX_BD_CRC; bd 317 drivers/net/ethernet/ethoc.c bd.stat |= TX_BD_WRAP; bd 319 drivers/net/ethernet/ethoc.c ethoc_write_bd(dev, i, &bd); bd 320 drivers/net/ethernet/ethoc.c bd.addr += ETHOC_BUFSIZ; bd 326 drivers/net/ethernet/ethoc.c bd.stat = RX_BD_EMPTY | RX_BD_IRQ; bd 330 drivers/net/ethernet/ethoc.c bd.stat |= RX_BD_WRAP; bd 332 drivers/net/ethernet/ethoc.c ethoc_write_bd(dev, dev->num_tx + i, &bd); bd 333 drivers/net/ethernet/ethoc.c bd.addr += ETHOC_BUFSIZ; bd 370 drivers/net/ethernet/ethoc.c struct ethoc_bd *bd) bd 375 drivers/net/ethernet/ethoc.c if (bd->stat & RX_BD_TL) { bd 381 drivers/net/ethernet/ethoc.c if (bd->stat & RX_BD_SF) { bd 387 drivers/net/ethernet/ethoc.c if (bd->stat & RX_BD_DN) { bd 392 drivers/net/ethernet/ethoc.c if (bd->stat & RX_BD_CRC) { bd 398 drivers/net/ethernet/ethoc.c if (bd->stat & RX_BD_OR) { bd 404 drivers/net/ethernet/ethoc.c if (bd->stat & RX_BD_MISS) bd 407 drivers/net/ethernet/ethoc.c if (bd->stat & RX_BD_LC) { bd 423 drivers/net/ethernet/ethoc.c struct ethoc_bd bd; bd 426 drivers/net/ethernet/ethoc.c ethoc_read_bd(priv, entry, &bd); bd 427 drivers/net/ethernet/ethoc.c if (bd.stat & RX_BD_EMPTY) { bd 436 drivers/net/ethernet/ethoc.c ethoc_read_bd(priv, entry, &bd); bd 437 drivers/net/ethernet/ethoc.c if (bd.stat & RX_BD_EMPTY) bd 441 drivers/net/ethernet/ethoc.c if (ethoc_update_rx_stats(priv, &bd) == 0) { bd 442 drivers/net/ethernet/ethoc.c int size = bd.stat >> 16; bd 466 drivers/net/ethernet/ethoc.c bd.stat &= ~RX_BD_STATS; bd 467 drivers/net/ethernet/ethoc.c bd.stat |= RX_BD_EMPTY; bd 468 drivers/net/ethernet/ethoc.c ethoc_write_bd(priv, entry, &bd); bd 476 drivers/net/ethernet/ethoc.c static void ethoc_update_tx_stats(struct ethoc *dev, struct ethoc_bd *bd) bd 480 drivers/net/ethernet/ethoc.c if (bd->stat & TX_BD_LC) { bd 485 drivers/net/ethernet/ethoc.c if (bd->stat & TX_BD_RL) { bd 490 drivers/net/ethernet/ethoc.c if (bd->stat & TX_BD_UR) { bd 495 drivers/net/ethernet/ethoc.c if (bd->stat & TX_BD_CS) { bd 500 drivers/net/ethernet/ethoc.c if (bd->stat & TX_BD_STATS) bd 503 drivers/net/ethernet/ethoc.c netdev->stats.collisions += (bd->stat >> 4) & 0xf; bd 504 drivers/net/ethernet/ethoc.c netdev->stats.tx_bytes += bd->stat >> 16; bd 512 drivers/net/ethernet/ethoc.c struct ethoc_bd bd; bd 519 drivers/net/ethernet/ethoc.c ethoc_read_bd(priv, entry, &bd); bd 521 drivers/net/ethernet/ethoc.c if (bd.stat & TX_BD_READY || (priv->dty_tx == priv->cur_tx)) { bd 530 drivers/net/ethernet/ethoc.c ethoc_read_bd(priv, entry, &bd); bd 531 drivers/net/ethernet/ethoc.c if (bd.stat & TX_BD_READY || bd 536 drivers/net/ethernet/ethoc.c ethoc_update_tx_stats(priv, &bd); bd 883 drivers/net/ethernet/ethoc.c struct ethoc_bd bd; bd 901 drivers/net/ethernet/ethoc.c ethoc_read_bd(priv, entry, &bd); bd 903 drivers/net/ethernet/ethoc.c bd.stat |= TX_BD_PAD; bd 905 drivers/net/ethernet/ethoc.c bd.stat &= ~TX_BD_PAD; bd 910 drivers/net/ethernet/ethoc.c bd.stat &= ~(TX_BD_STATS | TX_BD_LEN_MASK); bd 911 drivers/net/ethernet/ethoc.c bd.stat |= TX_BD_LEN(skb->len); bd 912 drivers/net/ethernet/ethoc.c ethoc_write_bd(priv, entry, &bd); bd 914 drivers/net/ethernet/ethoc.c bd.stat |= TX_BD_READY; bd 915 drivers/net/ethernet/ethoc.c ethoc_write_bd(priv, entry, &bd); bd 474 drivers/net/ethernet/freescale/fec.h struct bufdesc_prop bd; bd 487 drivers/net/ethernet/freescale/fec.h struct bufdesc_prop bd; bd 281 drivers/net/ethernet/freescale/fec_main.c (addr < txq->tso_hdrs_dma + txq->bd.ring_size * TSO_HEADER_SIZE)) bd 286 drivers/net/ethernet/freescale/fec_main.c struct bufdesc_prop *bd) bd 288 drivers/net/ethernet/freescale/fec_main.c return (bdp >= bd->last) ? bd->base bd 289 drivers/net/ethernet/freescale/fec_main.c : (struct bufdesc *)(((void *)bdp) + bd->dsize); bd 293 drivers/net/ethernet/freescale/fec_main.c struct bufdesc_prop *bd) bd 295 drivers/net/ethernet/freescale/fec_main.c return (bdp <= bd->base) ? bd->last bd 296 drivers/net/ethernet/freescale/fec_main.c : (struct bufdesc *)(((void *)bdp) - bd->dsize); bd 300 drivers/net/ethernet/freescale/fec_main.c struct bufdesc_prop *bd) bd 302 drivers/net/ethernet/freescale/fec_main.c return ((const char *)bdp - (const char *)bd->base) >> bd->dsize_log2; bd 310 drivers/net/ethernet/freescale/fec_main.c (const char *)txq->bd.cur) >> txq->bd.dsize_log2) - 1; bd 312 drivers/net/ethernet/freescale/fec_main.c return entries >= 0 ? entries : entries + txq->bd.ring_size; bd 345 drivers/net/ethernet/freescale/fec_main.c bdp = txq->bd.base; bd 350 drivers/net/ethernet/freescale/fec_main.c bdp == txq->bd.cur ? 'S' : ' ', bd 356 drivers/net/ethernet/freescale/fec_main.c bdp = fec_enet_get_nextdesc(bdp, &txq->bd); bd 358 drivers/net/ethernet/freescale/fec_main.c } while (bdp != txq->bd.base); bd 389 drivers/net/ethernet/freescale/fec_main.c struct bufdesc *bdp = txq->bd.cur; bd 403 drivers/net/ethernet/freescale/fec_main.c bdp = fec_enet_get_nextdesc(bdp, &txq->bd); bd 424 drivers/net/ethernet/freescale/fec_main.c estatus |= FEC_TX_BD_FTYPE(txq->bd.qid); bd 433 drivers/net/ethernet/freescale/fec_main.c index = fec_enet_get_bd_index(bdp, &txq->bd); bd 462 drivers/net/ethernet/freescale/fec_main.c bdp = txq->bd.cur; bd 464 drivers/net/ethernet/freescale/fec_main.c bdp = fec_enet_get_nextdesc(bdp, &txq->bd); bd 500 drivers/net/ethernet/freescale/fec_main.c bdp = txq->bd.cur; bd 509 drivers/net/ethernet/freescale/fec_main.c index = fec_enet_get_bd_index(bdp, &txq->bd); bd 557 drivers/net/ethernet/freescale/fec_main.c estatus |= FEC_TX_BD_FTYPE(txq->bd.qid); bd 566 drivers/net/ethernet/freescale/fec_main.c index = fec_enet_get_bd_index(last_bdp, &txq->bd); bd 582 drivers/net/ethernet/freescale/fec_main.c bdp = fec_enet_get_nextdesc(last_bdp, &txq->bd); bd 590 drivers/net/ethernet/freescale/fec_main.c txq->bd.cur = bdp; bd 593 drivers/net/ethernet/freescale/fec_main.c writel(0, txq->bd.reg_desc_active); bd 637 drivers/net/ethernet/freescale/fec_main.c estatus |= FEC_TX_BD_FTYPE(txq->bd.qid); bd 700 drivers/net/ethernet/freescale/fec_main.c estatus |= FEC_TX_BD_FTYPE(txq->bd.qid); bd 719 drivers/net/ethernet/freescale/fec_main.c struct bufdesc *bdp = txq->bd.cur; bd 744 drivers/net/ethernet/freescale/fec_main.c index = fec_enet_get_bd_index(bdp, &txq->bd); bd 759 drivers/net/ethernet/freescale/fec_main.c bdp = fec_enet_get_nextdesc(bdp, &txq->bd); bd 760 drivers/net/ethernet/freescale/fec_main.c index = fec_enet_get_bd_index(bdp, &txq->bd); bd 773 drivers/net/ethernet/freescale/fec_main.c bdp = fec_enet_get_nextdesc(bdp, &txq->bd); bd 780 drivers/net/ethernet/freescale/fec_main.c txq->bd.cur = bdp; bd 784 drivers/net/ethernet/freescale/fec_main.c !readl(txq->bd.reg_desc_active) || bd 785 drivers/net/ethernet/freescale/fec_main.c !readl(txq->bd.reg_desc_active) || bd 786 drivers/net/ethernet/freescale/fec_main.c !readl(txq->bd.reg_desc_active) || bd 787 drivers/net/ethernet/freescale/fec_main.c !readl(txq->bd.reg_desc_active)) bd 788 drivers/net/ethernet/freescale/fec_main.c writel(0, txq->bd.reg_desc_active); bd 839 drivers/net/ethernet/freescale/fec_main.c bdp = rxq->bd.base; bd 841 drivers/net/ethernet/freescale/fec_main.c for (i = 0; i < rxq->bd.ring_size; i++) { bd 848 drivers/net/ethernet/freescale/fec_main.c bdp = fec_enet_get_nextdesc(bdp, &rxq->bd); bd 852 drivers/net/ethernet/freescale/fec_main.c bdp = fec_enet_get_prevdesc(bdp, &rxq->bd); bd 855 drivers/net/ethernet/freescale/fec_main.c rxq->bd.cur = rxq->bd.base; bd 861 drivers/net/ethernet/freescale/fec_main.c bdp = txq->bd.base; bd 862 drivers/net/ethernet/freescale/fec_main.c txq->bd.cur = bdp; bd 864 drivers/net/ethernet/freescale/fec_main.c for (i = 0; i < txq->bd.ring_size; i++) { bd 878 drivers/net/ethernet/freescale/fec_main.c bdp = fec_enet_get_nextdesc(bdp, &txq->bd); bd 882 drivers/net/ethernet/freescale/fec_main.c bdp = fec_enet_get_prevdesc(bdp, &txq->bd); bd 894 drivers/net/ethernet/freescale/fec_main.c writel(0, fep->rx_queue[i]->bd.reg_desc_active); bd 906 drivers/net/ethernet/freescale/fec_main.c writel(rxq->bd.dma, fep->hwp + FEC_R_DES_START(i)); bd 917 drivers/net/ethernet/freescale/fec_main.c writel(txq->bd.dma, fep->hwp + FEC_X_DES_START(i)); bd 935 drivers/net/ethernet/freescale/fec_main.c for (j = 0; j < txq->bd.ring_size; j++) { bd 1263 drivers/net/ethernet/freescale/fec_main.c bdp = fec_enet_get_nextdesc(bdp, &txq->bd); bd 1265 drivers/net/ethernet/freescale/fec_main.c while (bdp != READ_ONCE(txq->bd.cur)) { bd 1272 drivers/net/ethernet/freescale/fec_main.c index = fec_enet_get_bd_index(bdp, &txq->bd); bd 1330 drivers/net/ethernet/freescale/fec_main.c bdp = fec_enet_get_nextdesc(bdp, &txq->bd); bd 1342 drivers/net/ethernet/freescale/fec_main.c if (bdp != txq->bd.cur && bd 1343 drivers/net/ethernet/freescale/fec_main.c readl(txq->bd.reg_desc_active) == 0) bd 1344 drivers/net/ethernet/freescale/fec_main.c writel(0, txq->bd.reg_desc_active); bd 1439 drivers/net/ethernet/freescale/fec_main.c bdp = rxq->bd.cur; bd 1480 drivers/net/ethernet/freescale/fec_main.c index = fec_enet_get_bd_index(bdp, &rxq->bd); bd 1590 drivers/net/ethernet/freescale/fec_main.c bdp = fec_enet_get_nextdesc(bdp, &rxq->bd); bd 1596 drivers/net/ethernet/freescale/fec_main.c writel(0, rxq->bd.reg_desc_active); bd 1598 drivers/net/ethernet/freescale/fec_main.c rxq->bd.cur = bdp; bd 2754 drivers/net/ethernet/freescale/fec_main.c bdp = rxq->bd.base; bd 2755 drivers/net/ethernet/freescale/fec_main.c for (i = 0; i < rxq->bd.ring_size; i++) { bd 2765 drivers/net/ethernet/freescale/fec_main.c bdp = fec_enet_get_nextdesc(bdp, &rxq->bd); bd 2771 drivers/net/ethernet/freescale/fec_main.c bdp = txq->bd.base; bd 2772 drivers/net/ethernet/freescale/fec_main.c for (i = 0; i < txq->bd.ring_size; i++) { bd 2792 drivers/net/ethernet/freescale/fec_main.c txq->bd.ring_size * TSO_HEADER_SIZE, bd 2818 drivers/net/ethernet/freescale/fec_main.c txq->bd.ring_size = TX_RING_SIZE; bd 2819 drivers/net/ethernet/freescale/fec_main.c fep->total_tx_ring_size += fep->tx_queue[i]->bd.ring_size; bd 2823 drivers/net/ethernet/freescale/fec_main.c (txq->bd.ring_size - txq->tx_stop_threshold) / 2; bd 2826 drivers/net/ethernet/freescale/fec_main.c txq->bd.ring_size * TSO_HEADER_SIZE, bd 2843 drivers/net/ethernet/freescale/fec_main.c fep->rx_queue[i]->bd.ring_size = RX_RING_SIZE; bd 2844 drivers/net/ethernet/freescale/fec_main.c fep->total_rx_ring_size += fep->rx_queue[i]->bd.ring_size; bd 2863 drivers/net/ethernet/freescale/fec_main.c bdp = rxq->bd.base; bd 2864 drivers/net/ethernet/freescale/fec_main.c for (i = 0; i < rxq->bd.ring_size; i++) { bd 2882 drivers/net/ethernet/freescale/fec_main.c bdp = fec_enet_get_nextdesc(bdp, &rxq->bd); bd 2886 drivers/net/ethernet/freescale/fec_main.c bdp = fec_enet_get_prevdesc(bdp, &rxq->bd); bd 2904 drivers/net/ethernet/freescale/fec_main.c bdp = txq->bd.base; bd 2905 drivers/net/ethernet/freescale/fec_main.c for (i = 0; i < txq->bd.ring_size; i++) { bd 2918 drivers/net/ethernet/freescale/fec_main.c bdp = fec_enet_get_nextdesc(bdp, &txq->bd); bd 2922 drivers/net/ethernet/freescale/fec_main.c bdp = fec_enet_get_prevdesc(bdp, &txq->bd); bd 3275 drivers/net/ethernet/freescale/fec_main.c unsigned size = dsize * rxq->bd.ring_size; bd 3277 drivers/net/ethernet/freescale/fec_main.c rxq->bd.qid = i; bd 3278 drivers/net/ethernet/freescale/fec_main.c rxq->bd.base = cbd_base; bd 3279 drivers/net/ethernet/freescale/fec_main.c rxq->bd.cur = cbd_base; bd 3280 drivers/net/ethernet/freescale/fec_main.c rxq->bd.dma = bd_dma; bd 3281 drivers/net/ethernet/freescale/fec_main.c rxq->bd.dsize = dsize; bd 3282 drivers/net/ethernet/freescale/fec_main.c rxq->bd.dsize_log2 = dsize_log2; bd 3283 drivers/net/ethernet/freescale/fec_main.c rxq->bd.reg_desc_active = fep->hwp + offset_des_active_rxq[i]; bd 3286 drivers/net/ethernet/freescale/fec_main.c rxq->bd.last = (struct bufdesc *)(((void *)cbd_base) - dsize); bd 3291 drivers/net/ethernet/freescale/fec_main.c unsigned size = dsize * txq->bd.ring_size; bd 3293 drivers/net/ethernet/freescale/fec_main.c txq->bd.qid = i; bd 3294 drivers/net/ethernet/freescale/fec_main.c txq->bd.base = cbd_base; bd 3295 drivers/net/ethernet/freescale/fec_main.c txq->bd.cur = cbd_base; bd 3296 drivers/net/ethernet/freescale/fec_main.c txq->bd.dma = bd_dma; bd 3297 drivers/net/ethernet/freescale/fec_main.c txq->bd.dsize = dsize; bd 3298 drivers/net/ethernet/freescale/fec_main.c txq->bd.dsize_log2 = dsize_log2; bd 3299 drivers/net/ethernet/freescale/fec_main.c txq->bd.reg_desc_active = fep->hwp + offset_des_active_txq[i]; bd 3302 drivers/net/ethernet/freescale/fec_main.c txq->bd.last = (struct bufdesc *)(((void *)cbd_base) - dsize); bd 124 drivers/net/ethernet/freescale/fec_mpc52xx.c struct bcom_fec_bd *bd; bd 127 drivers/net/ethernet/freescale/fec_mpc52xx.c skb = bcom_retrieve_buffer(s, NULL, (struct bcom_bd **)&bd); bd 128 drivers/net/ethernet/freescale/fec_mpc52xx.c dma_unmap_single(dev->dev.parent, bd->skb_pa, skb->len, bd 138 drivers/net/ethernet/freescale/fec_mpc52xx.c struct bcom_fec_bd *bd; bd 140 drivers/net/ethernet/freescale/fec_mpc52xx.c bd = (struct bcom_fec_bd *) bcom_prepare_next_buffer(priv->rx_dmatsk); bd 141 drivers/net/ethernet/freescale/fec_mpc52xx.c bd->status = FEC_RX_BUFFER_SIZE; bd 142 drivers/net/ethernet/freescale/fec_mpc52xx.c bd->skb_pa = dma_map_single(dev->dev.parent, rskb->data, bd 312 drivers/net/ethernet/freescale/fec_mpc52xx.c struct bcom_fec_bd *bd; bd 323 drivers/net/ethernet/freescale/fec_mpc52xx.c bd = (struct bcom_fec_bd *) bd 326 drivers/net/ethernet/freescale/fec_mpc52xx.c bd->status = skb->len | BCOM_FEC_TX_BD_TFD | BCOM_FEC_TX_BD_TC; bd 327 drivers/net/ethernet/freescale/fec_mpc52xx.c bd->skb_pa = dma_map_single(dev->dev.parent, skb->data, skb->len, bd 366 drivers/net/ethernet/freescale/fec_mpc52xx.c struct bcom_fec_bd *bd; bd 368 drivers/net/ethernet/freescale/fec_mpc52xx.c (struct bcom_bd **)&bd); bd 369 drivers/net/ethernet/freescale/fec_mpc52xx.c dma_unmap_single(dev->dev.parent, bd->skb_pa, skb->len, bd 387 drivers/net/ethernet/freescale/fec_mpc52xx.c struct bcom_fec_bd *bd; bd 396 drivers/net/ethernet/freescale/fec_mpc52xx.c (struct bcom_bd **)&bd); bd 397 drivers/net/ethernet/freescale/fec_mpc52xx.c physaddr = bd->skb_pa; bd 207 drivers/net/ethernet/freescale/ucc_geth.c u8 __iomem *bd) bd 225 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&((struct qe_bd __iomem *)bd)->buf, bd 232 drivers/net/ethernet/freescale/ucc_geth.c out_be32((u32 __iomem *)bd, bd 233 drivers/net/ethernet/freescale/ucc_geth.c (R_E | R_I | (in_be32((u32 __iomem*)bd) & R_W))); bd 240 drivers/net/ethernet/freescale/ucc_geth.c u8 __iomem *bd; bd 245 drivers/net/ethernet/freescale/ucc_geth.c bd = ugeth->p_rx_bd_ring[rxQ]; bd 249 drivers/net/ethernet/freescale/ucc_geth.c bd_status = in_be32((u32 __iomem *)bd); bd 250 drivers/net/ethernet/freescale/ucc_geth.c skb = get_new_skb(ugeth, bd); bd 259 drivers/net/ethernet/freescale/ucc_geth.c bd += sizeof(struct qe_bd); bd 1833 drivers/net/ethernet/freescale/ucc_geth.c u8 __iomem *bd; bd 1842 drivers/net/ethernet/freescale/ucc_geth.c bd = ugeth->p_rx_bd_ring[i]; bd 1846 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&((struct qe_bd __iomem *)bd)->buf), bd 1855 drivers/net/ethernet/freescale/ucc_geth.c bd += sizeof(struct qe_bd); bd 1877 drivers/net/ethernet/freescale/ucc_geth.c u8 __iomem *bd; bd 1885 drivers/net/ethernet/freescale/ucc_geth.c bd = ugeth->p_tx_bd_ring[i]; bd 1886 drivers/net/ethernet/freescale/ucc_geth.c if (!bd) bd 1891 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&((struct qe_bd __iomem *)bd)->buf), bd 1892 drivers/net/ethernet/freescale/ucc_geth.c (in_be32((u32 __iomem *)bd) & bd 2196 drivers/net/ethernet/freescale/ucc_geth.c u8 __iomem *bd; bd 2260 drivers/net/ethernet/freescale/ucc_geth.c bd = ugeth->confBd[j] = ugeth->txBd[j] = ugeth->p_tx_bd_ring[j]; bd 2263 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&((struct qe_bd __iomem *)bd)->buf, 0); bd 2265 drivers/net/ethernet/freescale/ucc_geth.c out_be32((u32 __iomem *)bd, 0); bd 2266 drivers/net/ethernet/freescale/ucc_geth.c bd += sizeof(struct qe_bd); bd 2268 drivers/net/ethernet/freescale/ucc_geth.c bd -= sizeof(struct qe_bd); bd 2270 drivers/net/ethernet/freescale/ucc_geth.c out_be32((u32 __iomem *)bd, T_W); /* for last BD set Wrap bit */ bd 2282 drivers/net/ethernet/freescale/ucc_geth.c u8 __iomem *bd; bd 2333 drivers/net/ethernet/freescale/ucc_geth.c bd = ugeth->rxBd[j] = ugeth->p_rx_bd_ring[j]; bd 2336 drivers/net/ethernet/freescale/ucc_geth.c out_be32((u32 __iomem *)bd, R_I); bd 2338 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&((struct qe_bd __iomem *)bd)->buf, 0); bd 2339 drivers/net/ethernet/freescale/ucc_geth.c bd += sizeof(struct qe_bd); bd 2341 drivers/net/ethernet/freescale/ucc_geth.c bd -= sizeof(struct qe_bd); bd 2343 drivers/net/ethernet/freescale/ucc_geth.c out_be32((u32 __iomem *)bd, R_W); /* for last BD set Wrap bit */ bd 3083 drivers/net/ethernet/freescale/ucc_geth.c u8 __iomem *bd; /* BD pointer */ bd 3096 drivers/net/ethernet/freescale/ucc_geth.c bd = ugeth->txBd[txQ]; bd 3097 drivers/net/ethernet/freescale/ucc_geth.c bd_status = in_be32((u32 __iomem *)bd); bd 3107 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&((struct qe_bd __iomem *)bd)->buf, bd 3116 drivers/net/ethernet/freescale/ucc_geth.c out_be32((u32 __iomem *)bd, bd_status); bd 3120 drivers/net/ethernet/freescale/ucc_geth.c bd += sizeof(struct qe_bd); bd 3122 drivers/net/ethernet/freescale/ucc_geth.c bd = ugeth->p_tx_bd_ring[txQ]; bd 3126 drivers/net/ethernet/freescale/ucc_geth.c if (bd == ugeth->confBd[txQ]) { bd 3131 drivers/net/ethernet/freescale/ucc_geth.c ugeth->txBd[txQ] = bd; bd 3156 drivers/net/ethernet/freescale/ucc_geth.c u8 __iomem *bd; bd 3167 drivers/net/ethernet/freescale/ucc_geth.c bd = ugeth->rxBd[rxQ]; bd 3169 drivers/net/ethernet/freescale/ucc_geth.c bd_status = in_be32((u32 __iomem *)bd); bd 3173 drivers/net/ethernet/freescale/ucc_geth.c bdBuffer = (u8 *) in_be32(&((struct qe_bd __iomem *)bd)->buf); bd 3204 drivers/net/ethernet/freescale/ucc_geth.c skb = get_new_skb(ugeth, bd); bd 3220 drivers/net/ethernet/freescale/ucc_geth.c bd = ugeth->p_rx_bd_ring[rxQ]; bd 3222 drivers/net/ethernet/freescale/ucc_geth.c bd += sizeof(struct qe_bd); bd 3224 drivers/net/ethernet/freescale/ucc_geth.c bd_status = in_be32((u32 __iomem *)bd); bd 3227 drivers/net/ethernet/freescale/ucc_geth.c ugeth->rxBd[rxQ] = bd; bd 3237 drivers/net/ethernet/freescale/ucc_geth.c u8 __iomem *bd; /* BD pointer */ bd 3240 drivers/net/ethernet/freescale/ucc_geth.c bd = ugeth->confBd[txQ]; bd 3241 drivers/net/ethernet/freescale/ucc_geth.c bd_status = in_be32((u32 __iomem *)bd); bd 3271 drivers/net/ethernet/freescale/ucc_geth.c bd += sizeof(struct qe_bd); bd 3273 drivers/net/ethernet/freescale/ucc_geth.c bd = ugeth->p_tx_bd_ring[txQ]; bd 3274 drivers/net/ethernet/freescale/ucc_geth.c bd_status = in_be32((u32 __iomem *)bd); bd 3276 drivers/net/ethernet/freescale/ucc_geth.c ugeth->confBd[txQ] = bd; bd 556 drivers/net/ethernet/freescale/ucc_geth.h struct qe_bd bd[NUM_BDS_IN_PREFETCHED_BDS]; /* prefetched bd */ bd 248 drivers/net/ethernet/intel/e1000/e1000_param.c int bd = adapter->bd_number; bd 250 drivers/net/ethernet/intel/e1000/e1000_param.c if (bd >= E1000_MAX_NIC) { bd 252 drivers/net/ethernet/intel/e1000/e1000_param.c "using defaults for all values\n", bd); bd 272 drivers/net/ethernet/intel/e1000/e1000_param.c if (num_TxDescriptors > bd) { bd 273 drivers/net/ethernet/intel/e1000/e1000_param.c tx_ring->count = TxDescriptors[bd]; bd 301 drivers/net/ethernet/intel/e1000/e1000_param.c if (num_RxDescriptors > bd) { bd 302 drivers/net/ethernet/intel/e1000/e1000_param.c rx_ring->count = RxDescriptors[bd]; bd 320 drivers/net/ethernet/intel/e1000/e1000_param.c if (num_XsumRX > bd) { bd 321 drivers/net/ethernet/intel/e1000/e1000_param.c unsigned int rx_csum = XsumRX[bd]; bd 347 drivers/net/ethernet/intel/e1000/e1000_param.c if (num_FlowControl > bd) { bd 348 drivers/net/ethernet/intel/e1000/e1000_param.c unsigned int fc = FlowControl[bd]; bd 365 drivers/net/ethernet/intel/e1000/e1000_param.c if (num_TxIntDelay > bd) { bd 366 drivers/net/ethernet/intel/e1000/e1000_param.c adapter->tx_int_delay = TxIntDelay[bd]; bd 383 drivers/net/ethernet/intel/e1000/e1000_param.c if (num_TxAbsIntDelay > bd) { bd 384 drivers/net/ethernet/intel/e1000/e1000_param.c adapter->tx_abs_int_delay = TxAbsIntDelay[bd]; bd 401 drivers/net/ethernet/intel/e1000/e1000_param.c if (num_RxIntDelay > bd) { bd 402 drivers/net/ethernet/intel/e1000/e1000_param.c adapter->rx_int_delay = RxIntDelay[bd]; bd 419 drivers/net/ethernet/intel/e1000/e1000_param.c if (num_RxAbsIntDelay > bd) { bd 420 drivers/net/ethernet/intel/e1000/e1000_param.c adapter->rx_abs_int_delay = RxAbsIntDelay[bd]; bd 437 drivers/net/ethernet/intel/e1000/e1000_param.c if (num_InterruptThrottleRate > bd) { bd 438 drivers/net/ethernet/intel/e1000/e1000_param.c adapter->itr = InterruptThrottleRate[bd]; bd 484 drivers/net/ethernet/intel/e1000/e1000_param.c if (num_SmartPowerDownEnable > bd) { bd 485 drivers/net/ethernet/intel/e1000/e1000_param.c unsigned int spd = SmartPowerDownEnable[bd]; bd 514 drivers/net/ethernet/intel/e1000/e1000_param.c int bd = adapter->bd_number; bd 515 drivers/net/ethernet/intel/e1000/e1000_param.c if (num_Speed > bd) { bd 520 drivers/net/ethernet/intel/e1000/e1000_param.c if (num_Duplex > bd) { bd 525 drivers/net/ethernet/intel/e1000/e1000_param.c if ((num_AutoNeg > bd) && (AutoNeg[bd] != 0x20)) { bd 541 drivers/net/ethernet/intel/e1000/e1000_param.c int bd = adapter->bd_number; bd 559 drivers/net/ethernet/intel/e1000/e1000_param.c if (num_Speed > bd) { bd 560 drivers/net/ethernet/intel/e1000/e1000_param.c speed = Speed[bd]; bd 581 drivers/net/ethernet/intel/e1000/e1000_param.c if (num_Duplex > bd) { bd 582 drivers/net/ethernet/intel/e1000/e1000_param.c dplx = Duplex[bd]; bd 589 drivers/net/ethernet/intel/e1000/e1000_param.c if ((num_AutoNeg > bd) && (speed != 0 || dplx != 0)) { bd 637 drivers/net/ethernet/intel/e1000/e1000_param.c if (num_AutoNeg > bd) { bd 638 drivers/net/ethernet/intel/e1000/e1000_param.c an = AutoNeg[bd]; bd 649 drivers/net/ethernet/intel/e1000/e1000_param.c if ((num_Speed > bd) && (speed != 0 || dplx != 0)) bd 229 drivers/net/ethernet/intel/e1000e/param.c int bd = adapter->bd_number; bd 231 drivers/net/ethernet/intel/e1000e/param.c if (bd >= E1000_MAX_NIC) { bd 233 drivers/net/ethernet/intel/e1000e/param.c "Warning: no configuration for board #%i\n", bd); bd 250 drivers/net/ethernet/intel/e1000e/param.c if (num_TxIntDelay > bd) { bd 251 drivers/net/ethernet/intel/e1000e/param.c adapter->tx_int_delay = TxIntDelay[bd]; bd 270 drivers/net/ethernet/intel/e1000e/param.c if (num_TxAbsIntDelay > bd) { bd 271 drivers/net/ethernet/intel/e1000e/param.c adapter->tx_abs_int_delay = TxAbsIntDelay[bd]; bd 293 drivers/net/ethernet/intel/e1000e/param.c if (num_RxIntDelay > bd) { bd 294 drivers/net/ethernet/intel/e1000e/param.c adapter->rx_int_delay = RxIntDelay[bd]; bd 316 drivers/net/ethernet/intel/e1000e/param.c if (num_RxAbsIntDelay > bd) { bd 317 drivers/net/ethernet/intel/e1000e/param.c adapter->rx_abs_int_delay = RxAbsIntDelay[bd]; bd 336 drivers/net/ethernet/intel/e1000e/param.c if (num_InterruptThrottleRate > bd) { bd 337 drivers/net/ethernet/intel/e1000e/param.c adapter->itr = InterruptThrottleRate[bd]; bd 433 drivers/net/ethernet/intel/e1000e/param.c if (num_IntMode > bd) { bd 434 drivers/net/ethernet/intel/e1000e/param.c unsigned int int_mode = IntMode[bd]; bd 455 drivers/net/ethernet/intel/e1000e/param.c if (num_SmartPowerDownEnable > bd) { bd 456 drivers/net/ethernet/intel/e1000e/param.c unsigned int spd = SmartPowerDownEnable[bd]; bd 472 drivers/net/ethernet/intel/e1000e/param.c if (num_CrcStripping > bd) { bd 473 drivers/net/ethernet/intel/e1000e/param.c unsigned int crc_stripping = CrcStripping[bd]; bd 495 drivers/net/ethernet/intel/e1000e/param.c if (num_KumeranLockLoss > bd) { bd 496 drivers/net/ethernet/intel/e1000e/param.c unsigned int kmrn_lock_loss = KumeranLockLoss[bd]; bd 516 drivers/net/ethernet/intel/e1000e/param.c if (num_WriteProtectNVM > bd) { bd 518 drivers/net/ethernet/intel/e1000e/param.c WriteProtectNVM[bd]; bd 238 drivers/net/ethernet/intel/ixgb/ixgb_param.c int bd = adapter->bd_number; bd 239 drivers/net/ethernet/intel/ixgb/ixgb_param.c if (bd >= IXGB_MAX_NIC) { bd 240 drivers/net/ethernet/intel/ixgb/ixgb_param.c pr_notice("Warning: no configuration for board #%i\n", bd); bd 255 drivers/net/ethernet/intel/ixgb/ixgb_param.c if (num_TxDescriptors > bd) { bd 256 drivers/net/ethernet/intel/ixgb/ixgb_param.c tx_ring->count = TxDescriptors[bd]; bd 274 drivers/net/ethernet/intel/ixgb/ixgb_param.c if (num_RxDescriptors > bd) { bd 275 drivers/net/ethernet/intel/ixgb/ixgb_param.c rx_ring->count = RxDescriptors[bd]; bd 290 drivers/net/ethernet/intel/ixgb/ixgb_param.c if (num_XsumRX > bd) { bd 291 drivers/net/ethernet/intel/ixgb/ixgb_param.c unsigned int rx_csum = XsumRX[bd]; bd 317 drivers/net/ethernet/intel/ixgb/ixgb_param.c if (num_FlowControl > bd) { bd 318 drivers/net/ethernet/intel/ixgb/ixgb_param.c unsigned int fc = FlowControl[bd]; bd 335 drivers/net/ethernet/intel/ixgb/ixgb_param.c if (num_RxFCHighThresh > bd) { bd 336 drivers/net/ethernet/intel/ixgb/ixgb_param.c adapter->hw.fc.high_water = RxFCHighThresh[bd]; bd 354 drivers/net/ethernet/intel/ixgb/ixgb_param.c if (num_RxFCLowThresh > bd) { bd 355 drivers/net/ethernet/intel/ixgb/ixgb_param.c adapter->hw.fc.low_water = RxFCLowThresh[bd]; bd 373 drivers/net/ethernet/intel/ixgb/ixgb_param.c if (num_FCReqTimeout > bd) { bd 374 drivers/net/ethernet/intel/ixgb/ixgb_param.c unsigned int pause_time = FCReqTimeout[bd]; bd 403 drivers/net/ethernet/intel/ixgb/ixgb_param.c if (num_RxIntDelay > bd) { bd 404 drivers/net/ethernet/intel/ixgb/ixgb_param.c adapter->rx_int_delay = RxIntDelay[bd]; bd 420 drivers/net/ethernet/intel/ixgb/ixgb_param.c if (num_TxIntDelay > bd) { bd 421 drivers/net/ethernet/intel/ixgb/ixgb_param.c adapter->tx_int_delay = TxIntDelay[bd]; bd 436 drivers/net/ethernet/intel/ixgb/ixgb_param.c if (num_IntDelayEnable > bd) { bd 437 drivers/net/ethernet/intel/ixgb/ixgb_param.c unsigned int ide = IntDelayEnable[bd]; bd 134 drivers/net/ethernet/ni/nixge.c #define nixge_hw_dma_bd_set_addr(bd, field, addr) \ bd 136 drivers/net/ethernet/ni/nixge.c (bd)->field##_lo = lower_32_bits((addr)); \ bd 137 drivers/net/ethernet/ni/nixge.c (bd)->field##_hi = upper_32_bits((addr)); \ bd 140 drivers/net/ethernet/ni/nixge.c #define nixge_hw_dma_bd_set_addr(bd, field, addr) \ bd 141 drivers/net/ethernet/ni/nixge.c ((bd)->field##_lo = lower_32_bits((addr))) bd 144 drivers/net/ethernet/ni/nixge.c #define nixge_hw_dma_bd_set_phys(bd, addr) \ bd 145 drivers/net/ethernet/ni/nixge.c nixge_hw_dma_bd_set_addr((bd), phys, (addr)) bd 147 drivers/net/ethernet/ni/nixge.c #define nixge_hw_dma_bd_set_next(bd, addr) \ bd 148 drivers/net/ethernet/ni/nixge.c nixge_hw_dma_bd_set_addr((bd), next, (addr)) bd 150 drivers/net/ethernet/ni/nixge.c #define nixge_hw_dma_bd_set_offset(bd, addr) \ bd 151 drivers/net/ethernet/ni/nixge.c nixge_hw_dma_bd_set_addr((bd), sw_id_offset, (addr)) bd 154 drivers/net/ethernet/ni/nixge.c #define nixge_hw_dma_bd_get_addr(bd, field) \ bd 155 drivers/net/ethernet/ni/nixge.c (dma_addr_t)((((u64)(bd)->field##_hi) << 32) | ((bd)->field##_lo)) bd 157 drivers/net/ethernet/ni/nixge.c #define nixge_hw_dma_bd_get_addr(bd, field) \ bd 158 drivers/net/ethernet/ni/nixge.c (dma_addr_t)((bd)->field##_lo) bd 444 drivers/net/ethernet/qlogic/qede/qede.h #define BD_UNMAP_ADDR(bd) HILO_U64(le32_to_cpu((bd)->addr.hi), \ bd 445 drivers/net/ethernet/qlogic/qede/qede.h le32_to_cpu((bd)->addr.lo)) bd 446 drivers/net/ethernet/qlogic/qede/qede.h #define BD_SET_UNMAP_ADDR_LEN(bd, maddr, len) \ bd 448 drivers/net/ethernet/qlogic/qede/qede.h (bd)->addr.hi = cpu_to_le32(upper_32_bits(maddr)); \ bd 449 drivers/net/ethernet/qlogic/qede/qede.h (bd)->addr.lo = cpu_to_le32(lower_32_bits(maddr)); \ bd 450 drivers/net/ethernet/qlogic/qede/qede.h (bd)->nbytes = cpu_to_le16(len); \ bd 452 drivers/net/ethernet/qlogic/qede/qede.h #define BD_UNMAP_LEN(bd) (le16_to_cpu((bd)->nbytes)) bd 268 drivers/net/ethernet/qlogic/qede/qede_fp.c skb_frag_t *frag, struct eth_tx_bd *bd) bd 279 drivers/net/ethernet/qlogic/qede/qede_fp.c BD_SET_UNMAP_ADDR_LEN(bd, mapping, skb_frag_size(frag)); bd 718 drivers/net/ethernet/qlogic/qede/qede_fp.c struct sw_rx_data *bd, u16 len, u16 pad) bd 723 drivers/net/ethernet/qlogic/qede/qede_fp.c buf = page_address(bd->data) + bd->page_offset; bd 735 drivers/net/ethernet/qlogic/qede/qede_fp.c struct sw_rx_data *bd, u16 len, u16 pad, bd 740 drivers/net/ethernet/qlogic/qede/qede_fp.c skb = qede_build_skb(rxq, bd, len, pad); bd 741 drivers/net/ethernet/qlogic/qede/qede_fp.c bd->page_offset += rxq->rx_buf_seg_size; bd 743 drivers/net/ethernet/qlogic/qede/qede_fp.c if (bd->page_offset == PAGE_SIZE) { bd 747 drivers/net/ethernet/qlogic/qede/qede_fp.c bd->page_offset -= rxq->rx_buf_seg_size; bd 748 drivers/net/ethernet/qlogic/qede/qede_fp.c page_ref_inc(bd->data); bd 753 drivers/net/ethernet/qlogic/qede/qede_fp.c page_ref_inc(bd->data); bd 754 drivers/net/ethernet/qlogic/qede/qede_fp.c qede_reuse_page(rxq, bd); bd 766 drivers/net/ethernet/qlogic/qede/qede_fp.c struct sw_rx_data *bd, u16 len, u16 pad) bd 775 drivers/net/ethernet/qlogic/qede/qede_fp.c unsigned int offset = bd->page_offset + pad; bd 782 drivers/net/ethernet/qlogic/qede/qede_fp.c skb_put_data(skb, page_address(bd->data) + offset, len); bd 783 drivers/net/ethernet/qlogic/qede/qede_fp.c qede_reuse_page(rxq, bd); bd 787 drivers/net/ethernet/qlogic/qede/qede_fp.c skb = qede_build_skb(rxq, bd, len, pad); bd 789 drivers/net/ethernet/qlogic/qede/qede_fp.c if (unlikely(qede_realloc_rx_buffer(rxq, bd))) { bd 794 drivers/net/ethernet/qlogic/qede/qede_fp.c page_ref_inc(bd->data); bd 1057 drivers/net/ethernet/qlogic/qede/qede_fp.c struct sw_rx_data *bd, bd 1064 drivers/net/ethernet/qlogic/qede/qede_fp.c xdp.data_hard_start = page_address(bd->data); bd 1100 drivers/net/ethernet/qlogic/qede/qede_fp.c if (qede_xdp_xmit(edev, fp, bd, *data_offset, *len)) { bd 1101 drivers/net/ethernet/qlogic/qede/qede_fp.c dma_unmap_page(rxq->dev, bd->mapping, bd 1103 drivers/net/ethernet/qlogic/qede/qede_fp.c __free_page(bd->data); bd 1131 drivers/net/ethernet/qlogic/qede/qede_fp.c struct sw_rx_data *bd; bd 1157 drivers/net/ethernet/qlogic/qede/qede_fp.c bd = &rxq->sw_rx_ring[bd_cons_idx]; bd 1160 drivers/net/ethernet/qlogic/qede/qede_fp.c dma_unmap_page(rxq->dev, bd->mapping, bd 1164 drivers/net/ethernet/qlogic/qede/qede_fp.c bd->data, rxq->rx_headroom, cur_size); bd 1210 drivers/net/ethernet/qlogic/qede/qede_fp.c struct sw_rx_data *bd; bd 1236 drivers/net/ethernet/qlogic/qede/qede_fp.c bd = &rxq->sw_rx_ring[bd_cons_idx]; bd 1244 drivers/net/ethernet/qlogic/qede/qede_fp.c if (!qede_rx_xdp(edev, fp, rxq, xdp_prog, bd, fp_cqe, bd 1263 drivers/net/ethernet/qlogic/qede/qede_fp.c skb = qede_rx_build_skb(edev, rxq, bd, len, pad); bd 365 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c static void xlgmac_set_buffer_data(struct xlgmac_buffer_data *bd, bd 370 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c bd->pa = *pa; bd 372 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c bd->dma_base = pa->pages_dma; bd 373 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c bd->dma_off = pa->pages_offset; bd 374 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c bd->dma_len = len; bd 379 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c bd->pa_unmap = *pa; bd 364 drivers/net/ethernet/toshiba/tc35815.c struct BDesc bd; bd 370 drivers/net/ethernet/toshiba/tc35815.c struct BDesc bd[0]; /* variable length */ bd 375 drivers/net/ethernet/toshiba/tc35815.c struct BDesc bd[RX_BUF_NUM]; bd 957 drivers/net/ethernet/toshiba/tc35815.c lp->fbl_ptr->bd[i].BuffData = 0; bd 958 drivers/net/ethernet/toshiba/tc35815.c lp->fbl_ptr->bd[i].BDCtl = 0; bd 961 drivers/net/ethernet/toshiba/tc35815.c lp->fbl_ptr->bd[i].BuffData = bd 964 drivers/net/ethernet/toshiba/tc35815.c lp->fbl_ptr->bd[i].BDCtl = bd 1064 drivers/net/ethernet/toshiba/tc35815.c le32_to_cpu(fd->bd.BuffData), bd 1065 drivers/net/ethernet/toshiba/tc35815.c le32_to_cpu(fd->bd.BDCtl)); bd 1085 drivers/net/ethernet/toshiba/tc35815.c le32_to_cpu(fd->bd[i].BuffData), bd 1086 drivers/net/ethernet/toshiba/tc35815.c le32_to_cpu(fd->bd[i].BDCtl)); bd 1104 drivers/net/ethernet/toshiba/tc35815.c le32_to_cpu(fd->bd[i].BuffData), bd 1105 drivers/net/ethernet/toshiba/tc35815.c le32_to_cpu(fd->bd[i].BDCtl)); bd 1300 drivers/net/ethernet/toshiba/tc35815.c txfd->bd.BuffData = cpu_to_le32(lp->tx_skbs[lp->tfd_start].skb_dma); bd 1301 drivers/net/ethernet/toshiba/tc35815.c txfd->bd.BDCtl = cpu_to_le32(skb->len); bd 1485 drivers/net/ethernet/toshiba/tc35815.c cur_bd = (le32_to_cpu(lp->rfd_cur->bd[0].BDCtl) bd 1493 drivers/net/ethernet/toshiba/tc35815.c (le32_to_cpu(lp->rfd_cur->bd[0].BuffData) & ~3)); bd 1540 drivers/net/ethernet/toshiba/tc35815.c int bdctl = le32_to_cpu(lp->rfd_cur->bd[bd_count - 1].BDCtl); bd 1557 drivers/net/ethernet/toshiba/tc35815.c struct BDesc *bd = &lp->fbl_ptr->bd[curid]; bd 1559 drivers/net/ethernet/toshiba/tc35815.c bdctl = le32_to_cpu(bd->BDCtl); bd 1574 drivers/net/ethernet/toshiba/tc35815.c bd->BuffData = cpu_to_le32(lp->rx_skbs[curid].skb_dma); bd 1577 drivers/net/ethernet/toshiba/tc35815.c bd->BDCtl = cpu_to_le32(BD_CownsBD | bd 737 drivers/net/ethernet/xilinx/ll_temac_main.c static void ptr_to_txbd(void *p, struct cdmac_bd *bd) bd 739 drivers/net/ethernet/xilinx/ll_temac_main.c bd->app3 = (u32)(((u64)p) >> 32); bd 740 drivers/net/ethernet/xilinx/ll_temac_main.c bd->app4 = (u32)((u64)p & 0xFFFFFFFF); bd 743 drivers/net/ethernet/xilinx/ll_temac_main.c static void *ptr_from_txbd(struct cdmac_bd *bd) bd 745 drivers/net/ethernet/xilinx/ll_temac_main.c return (void *)(((u64)(bd->app3) << 32) | bd->app4); bd 750 drivers/net/ethernet/xilinx/ll_temac_main.c static void ptr_to_txbd(void *p, struct cdmac_bd *bd) bd 752 drivers/net/ethernet/xilinx/ll_temac_main.c bd->app4 = (u32)p; bd 755 drivers/net/ethernet/xilinx/ll_temac_main.c static void *ptr_from_txbd(struct cdmac_bd *bd) bd 757 drivers/net/ethernet/xilinx/ll_temac_main.c return (void *)(bd->app4); bd 956 drivers/net/ethernet/xilinx/ll_temac_main.c struct cdmac_bd *bd = &lp->rx_bd_v[lp->rx_bd_ci]; bd 958 drivers/net/ethernet/xilinx/ll_temac_main.c unsigned int bdstat = be32_to_cpu(bd->app0); bd 972 drivers/net/ethernet/xilinx/ll_temac_main.c dma_unmap_single(ndev->dev.parent, be32_to_cpu(bd->phys), bd 975 drivers/net/ethernet/xilinx/ll_temac_main.c bd->phys = 0; bd 976 drivers/net/ethernet/xilinx/ll_temac_main.c bd->len = 0; bd 978 drivers/net/ethernet/xilinx/ll_temac_main.c length = be32_to_cpu(bd->app4) & 0x3FFF; bd 993 drivers/net/ethernet/xilinx/ll_temac_main.c skb->csum = htons(be32_to_cpu(bd->app3) & 0xFFFF); bd 1033 drivers/net/ethernet/xilinx/ll_temac_main.c struct cdmac_bd *bd; bd 1039 drivers/net/ethernet/xilinx/ll_temac_main.c bd = &lp->rx_bd_v[rx_bd]; bd 1041 drivers/net/ethernet/xilinx/ll_temac_main.c if (bd->phys) bd 1059 drivers/net/ethernet/xilinx/ll_temac_main.c bd->phys = cpu_to_be32(skb_dma_addr); bd 1060 drivers/net/ethernet/xilinx/ll_temac_main.c bd->len = cpu_to_be32(XTE_MAX_JUMBO_FRAME_SIZE); bd 1061 drivers/net/ethernet/xilinx/ll_temac_main.c bd->app0 = cpu_to_be32(STS_CTRL_APP0_IRQONEND); bd 351 drivers/net/wan/fsl_ucc_hdlc.c struct qe_bd __iomem *bd; bd 398 drivers/net/wan/fsl_ucc_hdlc.c bd = priv->curtx_bd; bd 399 drivers/net/wan/fsl_ucc_hdlc.c bd_status = ioread16be(&bd->status); bd 408 drivers/net/wan/fsl_ucc_hdlc.c memcpy(priv->tx_buffer + (be32_to_cpu(bd->buf) - priv->dma_tx_addr), bd 414 drivers/net/wan/fsl_ucc_hdlc.c iowrite16be(skb->len, &bd->length); bd 415 drivers/net/wan/fsl_ucc_hdlc.c iowrite16be(bd_status, &bd->status); bd 419 drivers/net/wan/fsl_ucc_hdlc.c bd += 1; bd 421 drivers/net/wan/fsl_ucc_hdlc.c bd = priv->tx_bd_base; bd 423 drivers/net/wan/fsl_ucc_hdlc.c if (bd == priv->dirty_tx) { bd 428 drivers/net/wan/fsl_ucc_hdlc.c priv->curtx_bd = bd; bd 453 drivers/net/wan/fsl_ucc_hdlc.c struct qe_bd *bd; /* BD pointer */ bd 457 drivers/net/wan/fsl_ucc_hdlc.c bd = priv->dirty_tx; bd 458 drivers/net/wan/fsl_ucc_hdlc.c bd_status = ioread16be(&bd->status); bd 484 drivers/net/wan/fsl_ucc_hdlc.c (be32_to_cpu(bd->buf) - priv->dma_tx_addr), bd 499 drivers/net/wan/fsl_ucc_hdlc.c bd += 1; bd 501 drivers/net/wan/fsl_ucc_hdlc.c bd = priv->tx_bd_base; bd 502 drivers/net/wan/fsl_ucc_hdlc.c bd_status = ioread16be(&bd->status); bd 504 drivers/net/wan/fsl_ucc_hdlc.c priv->dirty_tx = bd; bd 518 drivers/net/wan/fsl_ucc_hdlc.c struct qe_bd *bd; bd 523 drivers/net/wan/fsl_ucc_hdlc.c bd = priv->currx_bd; bd 524 drivers/net/wan/fsl_ucc_hdlc.c bd_status = ioread16be(&bd->status); bd 548 drivers/net/wan/fsl_ucc_hdlc.c length = ioread16be(&bd->length); bd 592 drivers/net/wan/fsl_ucc_hdlc.c iowrite16be((bd_status & R_W_S) | R_E_S | R_I_S, &bd->status); bd 597 drivers/net/wan/fsl_ucc_hdlc.c bd = priv->rx_bd_base; bd 604 drivers/net/wan/fsl_ucc_hdlc.c bd += 1; bd 607 drivers/net/wan/fsl_ucc_hdlc.c bd_status = ioread16be(&bd->status); bd 610 drivers/net/wan/fsl_ucc_hdlc.c priv->currx_bd = bd; bd 678 drivers/net/wireless/ath/wcn36xx/dxe.c struct wcn36xx_tx_bd *bd, bd 718 drivers/net/wireless/ath/wcn36xx/dxe.c memcpy(ctl_bd->bd_cpu_addr, bd, sizeof(*bd)); bd 466 drivers/net/wireless/ath/wcn36xx/dxe.h struct wcn36xx_tx_bd *bd, bd 21 drivers/net/wireless/ath/wcn36xx/txrx.c static inline int get_rssi0(struct wcn36xx_rx_bd *bd) bd 23 drivers/net/wireless/ath/wcn36xx/txrx.c return 100 - ((bd->phy_stat0 >> 24) & 0xff); bd 30 drivers/net/wireless/ath/wcn36xx/txrx.c struct wcn36xx_rx_bd *bd; bd 39 drivers/net/wireless/ath/wcn36xx/txrx.c bd = (struct wcn36xx_rx_bd *)skb->data; bd 40 drivers/net/wireless/ath/wcn36xx/txrx.c buff_to_be((u32 *)bd, sizeof(*bd)/sizeof(u32)); bd 42 drivers/net/wireless/ath/wcn36xx/txrx.c "BD <<< ", (char *)bd, bd 45 drivers/net/wireless/ath/wcn36xx/txrx.c skb_put(skb, bd->pdu.mpdu_header_off + bd->pdu.mpdu_len); bd 46 drivers/net/wireless/ath/wcn36xx/txrx.c skb_pull(skb, bd->pdu.mpdu_header_off); bd 62 drivers/net/wireless/ath/wcn36xx/txrx.c status.signal = -get_rssi0(bd); bd 92 drivers/net/wireless/ath/wcn36xx/txrx.c static void wcn36xx_set_tx_pdu(struct wcn36xx_tx_bd *bd, bd 97 drivers/net/wireless/ath/wcn36xx/txrx.c bd->pdu.mpdu_header_len = mpdu_header_len; bd 98 drivers/net/wireless/ath/wcn36xx/txrx.c bd->pdu.mpdu_header_off = sizeof(*bd); bd 99 drivers/net/wireless/ath/wcn36xx/txrx.c bd->pdu.mpdu_data_off = bd->pdu.mpdu_header_len + bd 100 drivers/net/wireless/ath/wcn36xx/txrx.c bd->pdu.mpdu_header_off; bd 101 drivers/net/wireless/ath/wcn36xx/txrx.c bd->pdu.mpdu_len = len; bd 102 drivers/net/wireless/ath/wcn36xx/txrx.c bd->pdu.tid = tid; bd 103 drivers/net/wireless/ath/wcn36xx/txrx.c bd->pdu.bd_ssn = WCN36XX_TXBD_SSN_FILL_DPU_QOS; bd 155 drivers/net/wireless/ath/wcn36xx/txrx.c static void wcn36xx_set_tx_data(struct wcn36xx_tx_bd *bd, bd 167 drivers/net/wireless/ath/wcn36xx/txrx.c bd->bd_rate = WCN36XX_BD_RATE_DATA; bd 177 drivers/net/wireless/ath/wcn36xx/txrx.c bd->dpu_sign = sta_priv->ucast_dpu_sign; bd 179 drivers/net/wireless/ath/wcn36xx/txrx.c bd->sta_index = sta_priv->bss_sta_index; bd 180 drivers/net/wireless/ath/wcn36xx/txrx.c bd->dpu_desc_idx = sta_priv->bss_dpu_desc_index; bd 184 drivers/net/wireless/ath/wcn36xx/txrx.c bd->sta_index = sta_priv->sta_index; bd 185 drivers/net/wireless/ath/wcn36xx/txrx.c bd->dpu_desc_idx = sta_priv->dpu_desc_index; bd 189 drivers/net/wireless/ath/wcn36xx/txrx.c bd->sta_index = __vif_priv->self_sta_index; bd 190 drivers/net/wireless/ath/wcn36xx/txrx.c bd->dpu_desc_idx = __vif_priv->self_dpu_desc_index; bd 191 drivers/net/wireless/ath/wcn36xx/txrx.c bd->dpu_sign = __vif_priv->self_ucast_dpu_sign; bd 196 drivers/net/wireless/ath/wcn36xx/txrx.c bd->dpu_ne = 1; bd 199 drivers/net/wireless/ath/wcn36xx/txrx.c bd->ub = 1; bd 200 drivers/net/wireless/ath/wcn36xx/txrx.c bd->ack_policy = 1; bd 206 drivers/net/wireless/ath/wcn36xx/txrx.c wcn36xx_set_tx_pdu(bd, bd 216 drivers/net/wireless/ath/wcn36xx/txrx.c static void wcn36xx_set_tx_mgmt(struct wcn36xx_tx_bd *bd, bd 225 drivers/net/wireless/ath/wcn36xx/txrx.c bd->sta_index = __vif_priv->self_sta_index; bd 226 drivers/net/wireless/ath/wcn36xx/txrx.c bd->dpu_desc_idx = __vif_priv->self_dpu_desc_index; bd 227 drivers/net/wireless/ath/wcn36xx/txrx.c bd->dpu_ne = 1; bd 231 drivers/net/wireless/ath/wcn36xx/txrx.c bd->bd_rate = (WCN36XX_BAND(wcn) == NL80211_BAND_5GHZ) ? bd 235 drivers/net/wireless/ath/wcn36xx/txrx.c bd->bd_rate = WCN36XX_BD_RATE_CTRL; bd 249 drivers/net/wireless/ath/wcn36xx/txrx.c bd->ub = 1; bd 251 drivers/net/wireless/ath/wcn36xx/txrx.c bd->ack_policy = 1; bd 252 drivers/net/wireless/ath/wcn36xx/txrx.c bd->queue_id = WCN36XX_TX_B_WQ_ID; bd 254 drivers/net/wireless/ath/wcn36xx/txrx.c bd->queue_id = WCN36XX_TX_U_WQ_ID; bd 257 drivers/net/wireless/ath/wcn36xx/txrx.c wcn36xx_set_tx_pdu(bd, bd 275 drivers/net/wireless/ath/wcn36xx/txrx.c struct wcn36xx_tx_bd bd; bd 278 drivers/net/wireless/ath/wcn36xx/txrx.c memset(&bd, 0, sizeof(bd)); bd 288 drivers/net/wireless/ath/wcn36xx/txrx.c bd.dpu_rf = WCN36XX_BMU_WQ_TX; bd 290 drivers/net/wireless/ath/wcn36xx/txrx.c bd.tx_comp = !!(info->flags & IEEE80211_TX_CTL_REQ_TX_STATUS); bd 291 drivers/net/wireless/ath/wcn36xx/txrx.c if (bd.tx_comp) { bd 313 drivers/net/wireless/ath/wcn36xx/txrx.c wcn36xx_set_tx_data(&bd, wcn, &vif_priv, sta_priv, skb, bcast); bd 316 drivers/net/wireless/ath/wcn36xx/txrx.c wcn36xx_set_tx_mgmt(&bd, wcn, &vif_priv, skb, bcast); bd 318 drivers/net/wireless/ath/wcn36xx/txrx.c buff_to_be((u32 *)&bd, sizeof(bd)/sizeof(u32)); bd 319 drivers/net/wireless/ath/wcn36xx/txrx.c bd.tx_bd_sign = 0xbdbdbdbd; bd 321 drivers/net/wireless/ath/wcn36xx/txrx.c ret = wcn36xx_dxe_tx_frame(wcn, vif_priv, &bd, skb, is_low); bd 322 drivers/net/wireless/ath/wcn36xx/txrx.c if (ret && bd.tx_comp) { bd 3778 drivers/net/wireless/intel/ipw2x00/ipw2200.c q->bd = bd 3779 drivers/net/wireless/intel/ipw2x00/ipw2200.c pci_alloc_consistent(dev, sizeof(q->bd[0]) * count, &q->q.dma_addr); bd 3780 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (!q->bd) { bd 3782 drivers/net/wireless/intel/ipw2x00/ipw2200.c sizeof(q->bd[0]) * count); bd 3802 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct tfd_frame *bd = &txq->bd[txq->q.last_used]; bd 3807 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (bd->control_flags.message_type == TX_HOST_COMMAND_TYPE) bd 3812 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (le32_to_cpu(bd->u.data.num_chunks) > NUM_TFD_CHUNKS) { bd 3814 drivers/net/wireless/intel/ipw2x00/ipw2200.c le32_to_cpu(bd->u.data.num_chunks)); bd 3820 drivers/net/wireless/intel/ipw2x00/ipw2200.c for (i = 0; i < le32_to_cpu(bd->u.data.num_chunks); i++) { bd 3821 drivers/net/wireless/intel/ipw2x00/ipw2200.c pci_unmap_single(dev, le32_to_cpu(bd->u.data.chunk_ptr[i]), bd 3822 drivers/net/wireless/intel/ipw2x00/ipw2200.c le16_to_cpu(bd->u.data.chunk_len[i]), bd 3855 drivers/net/wireless/intel/ipw2x00/ipw2200.c pci_free_consistent(dev, sizeof(txq->bd[0]) * q->n_bd, txq->bd, bd 5048 drivers/net/wireless/intel/ipw2x00/ipw2200.c tfd = &txq->bd[q->first_empty]; bd 10135 drivers/net/wireless/intel/ipw2x00/ipw2200.c tfd = &txq->bd[q->first_empty]; bd 520 drivers/net/wireless/intel/ipw2x00/ipw2200.h struct tfd_frame *bd; bd 948 drivers/net/wireless/intel/iwlegacy/3945-mac.c rxq->bd[rxq->write] = bd 1126 drivers/net/wireless/intel/iwlegacy/3945-mac.c dma_free_coherent(&il->pci_dev->dev, 4 * RX_QUEUE_SIZE, rxq->bd, bd 1130 drivers/net/wireless/intel/iwlegacy/3945-mac.c rxq->bd = NULL; bd 3825 drivers/net/wireless/intel/iwlegacy/3945-mac.c if (il->rxq.bd) bd 967 drivers/net/wireless/intel/iwlegacy/3945.c if (!rxq->bd) { bd 195 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (!rxq->bd) { bd 268 drivers/net/wireless/intel/iwlegacy/4965-mac.c rxq->bd[rxq->write] = bd 419 drivers/net/wireless/intel/iwlegacy/4965-mac.c dma_free_coherent(&il->pci_dev->dev, 4 * RX_QUEUE_SIZE, rxq->bd, bd 423 drivers/net/wireless/intel/iwlegacy/4965-mac.c rxq->bd = NULL; bd 6740 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (il->rxq.bd) bd 2607 drivers/net/wireless/intel/iwlegacy/common.c rxq->bd = dma_alloc_coherent(dev, 4 * RX_QUEUE_SIZE, &rxq->bd_dma, bd 2609 drivers/net/wireless/intel/iwlegacy/common.c if (!rxq->bd) bd 2630 drivers/net/wireless/intel/iwlegacy/common.c dma_free_coherent(&il->pci_dev->dev, 4 * RX_QUEUE_SIZE, rxq->bd, bd 593 drivers/net/wireless/intel/iwlegacy/common.h __le32 *bd; bd 194 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void *bd; bd 283 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_rx_transfer_desc *bd = rxq->bd; bd 285 drivers/net/wireless/intel/iwlwifi/pcie/rx.c BUILD_BUG_ON(sizeof(*bd) != 2 * sizeof(u64)); bd 287 drivers/net/wireless/intel/iwlwifi/pcie/rx.c bd[rxq->write].addr = cpu_to_le64(rxb->page_dma); bd 288 drivers/net/wireless/intel/iwlwifi/pcie/rx.c bd[rxq->write].rbid = cpu_to_le16(rxb->vid); bd 290 drivers/net/wireless/intel/iwlwifi/pcie/rx.c __le64 *bd = rxq->bd; bd 292 drivers/net/wireless/intel/iwlwifi/pcie/rx.c bd[rxq->write] = cpu_to_le64(rxb->page_dma | rxb->vid); bd 366 drivers/net/wireless/intel/iwlwifi/pcie/rx.c __le32 *bd = (__le32 *)rxq->bd; bd 378 drivers/net/wireless/intel/iwlwifi/pcie/rx.c bd[rxq->write] = iwl_pcie_dma_addr2rbd_ptr(rxb->page_dma); bd 697 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (rxq->bd) bd 700 drivers/net/wireless/intel/iwlwifi/pcie/rx.c rxq->bd, rxq->bd_dma); bd 702 drivers/net/wireless/intel/iwlwifi/pcie/rx.c rxq->bd = NULL; bd 755 drivers/net/wireless/intel/iwlwifi/pcie/rx.c rxq->bd = dma_alloc_coherent(dev, free_size * rxq->queue_size, bd 757 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (!rxq->bd) bd 1437 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (WARN_ON_ONCE(!trans_pcie->rxq || !trans_pcie->rxq[queue].bd)) bd 2354 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c u16 bd, regu, bdwidth, sec, chnl; bd 2475 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c bd = band_temp; bd 1502 drivers/nvdimm/btt.c static int btt_getgeo(struct block_device *bd, struct hd_geometry *geo) bd 1507 drivers/nvdimm/btt.c geo->cylinders = get_capacity(bd->bd_disk) >> 11; bd 2322 drivers/nvme/host/fc.c const struct blk_mq_queue_data *bd) bd 2327 drivers/nvme/host/fc.c struct request *rq = bd->rq; bd 863 drivers/nvme/host/pci.c const struct blk_mq_queue_data *bd) bd 868 drivers/nvme/host/pci.c struct request *req = bd->rq; bd 901 drivers/nvme/host/pci.c nvme_submit_cmd(nvmeq, &cmnd, bd->last); bd 1733 drivers/nvme/host/rdma.c const struct blk_mq_queue_data *bd) bd 1737 drivers/nvme/host/rdma.c struct request *rq = bd->rq; bd 2155 drivers/nvme/host/tcp.c const struct blk_mq_queue_data *bd) bd 2159 drivers/nvme/host/tcp.c struct request *rq = bd->rq; bd 133 drivers/nvme/target/loop.c const struct blk_mq_queue_data *bd) bd 137 drivers/nvme/target/loop.c struct request *req = bd->rq; bd 1436 drivers/platform/x86/acer-wmi.c static int read_brightness(struct backlight_device *bd) bd 1443 drivers/platform/x86/acer-wmi.c static int update_bl_status(struct backlight_device *bd) bd 1445 drivers/platform/x86/acer-wmi.c int intensity = bd->props.brightness; bd 1447 drivers/platform/x86/acer-wmi.c if (bd->props.power != FB_BLANK_UNBLANK) bd 1449 drivers/platform/x86/acer-wmi.c if (bd->props.fb_blank != FB_BLANK_UNBLANK) bd 1465 drivers/platform/x86/acer-wmi.c struct backlight_device *bd; bd 1470 drivers/platform/x86/acer-wmi.c bd = backlight_device_register("acer-wmi", dev, NULL, &acer_bl_ops, bd 1472 drivers/platform/x86/acer-wmi.c if (IS_ERR(bd)) { bd 1475 drivers/platform/x86/acer-wmi.c return PTR_ERR(bd); bd 1478 drivers/platform/x86/acer-wmi.c acer_backlight_device = bd; bd 1480 drivers/platform/x86/acer-wmi.c bd->props.power = FB_BLANK_UNBLANK; bd 1481 drivers/platform/x86/acer-wmi.c bd->props.brightness = read_brightness(bd); bd 1482 drivers/platform/x86/acer-wmi.c backlight_update_status(bd); bd 284 drivers/platform/x86/apple-gmux.c static int gmux_get_brightness(struct backlight_device *bd) bd 286 drivers/platform/x86/apple-gmux.c struct apple_gmux_data *gmux_data = bl_get_data(bd); bd 291 drivers/platform/x86/apple-gmux.c static int gmux_update_status(struct backlight_device *bd) bd 293 drivers/platform/x86/apple-gmux.c struct apple_gmux_data *gmux_data = bl_get_data(bd); bd 294 drivers/platform/x86/apple-gmux.c u32 brightness = bd->props.brightness; bd 296 drivers/platform/x86/apple-gmux.c if (bd->props.state & BL_CORE_SUSPENDED) bd 755 drivers/platform/x86/asus-laptop.c static int asus_read_brightness(struct backlight_device *bd) bd 757 drivers/platform/x86/asus-laptop.c struct asus_laptop *asus = bl_get_data(bd); bd 771 drivers/platform/x86/asus-laptop.c static int asus_set_brightness(struct backlight_device *bd, int value) bd 773 drivers/platform/x86/asus-laptop.c struct asus_laptop *asus = bl_get_data(bd); bd 782 drivers/platform/x86/asus-laptop.c static int update_bl_status(struct backlight_device *bd) bd 784 drivers/platform/x86/asus-laptop.c int value = bd->props.brightness; bd 786 drivers/platform/x86/asus-laptop.c return asus_set_brightness(bd, value); bd 796 drivers/platform/x86/asus-laptop.c struct backlight_device *bd = asus->backlight_device; bd 797 drivers/platform/x86/asus-laptop.c int old = bd->props.brightness; bd 799 drivers/platform/x86/asus-laptop.c backlight_force_update(bd, BACKLIGHT_UPDATE_HOTKEY); bd 806 drivers/platform/x86/asus-laptop.c struct backlight_device *bd; bd 817 drivers/platform/x86/asus-laptop.c bd = backlight_device_register(ASUS_LAPTOP_FILE, bd 820 drivers/platform/x86/asus-laptop.c if (IS_ERR(bd)) { bd 823 drivers/platform/x86/asus-laptop.c return PTR_ERR(bd); bd 826 drivers/platform/x86/asus-laptop.c asus->backlight_device = bd; bd 827 drivers/platform/x86/asus-laptop.c bd->props.brightness = asus_read_brightness(bd); bd 828 drivers/platform/x86/asus-laptop.c bd->props.power = FB_BLANK_UNBLANK; bd 829 drivers/platform/x86/asus-laptop.c backlight_update_status(bd); bd 1760 drivers/platform/x86/asus-wmi.c static int read_brightness(struct backlight_device *bd) bd 1762 drivers/platform/x86/asus-wmi.c struct asus_wmi *asus = bl_get_data(bd); bd 1773 drivers/platform/x86/asus-wmi.c static u32 get_scalar_command(struct backlight_device *bd) bd 1775 drivers/platform/x86/asus-wmi.c struct asus_wmi *asus = bl_get_data(bd); bd 1778 drivers/platform/x86/asus-wmi.c if ((asus->driver->brightness < bd->props.brightness) || bd 1779 drivers/platform/x86/asus-wmi.c bd->props.brightness == bd->props.max_brightness) bd 1781 drivers/platform/x86/asus-wmi.c else if ((asus->driver->brightness > bd->props.brightness) || bd 1782 drivers/platform/x86/asus-wmi.c bd->props.brightness == 0) bd 1785 drivers/platform/x86/asus-wmi.c asus->driver->brightness = bd->props.brightness; bd 1790 drivers/platform/x86/asus-wmi.c static int update_bl_status(struct backlight_device *bd) bd 1792 drivers/platform/x86/asus-wmi.c struct asus_wmi *asus = bl_get_data(bd); bd 1797 drivers/platform/x86/asus-wmi.c if (power != -ENODEV && bd->props.power != power) { bd 1798 drivers/platform/x86/asus-wmi.c ctrl_param = !!(bd->props.power == FB_BLANK_UNBLANK); bd 1802 drivers/platform/x86/asus-wmi.c asus->driver->panel_power = bd->props.power; bd 1811 drivers/platform/x86/asus-wmi.c ctrl_param = get_scalar_command(bd); bd 1813 drivers/platform/x86/asus-wmi.c ctrl_param = bd->props.brightness; bd 1828 drivers/platform/x86/asus-wmi.c struct backlight_device *bd = asus->backlight_device; bd 1829 drivers/platform/x86/asus-wmi.c int old = bd->props.brightness; bd 1837 drivers/platform/x86/asus-wmi.c bd->props.brightness = new; bd 1838 drivers/platform/x86/asus-wmi.c backlight_update_status(bd); bd 1839 drivers/platform/x86/asus-wmi.c backlight_force_update(bd, BACKLIGHT_UPDATE_HOTKEY); bd 1846 drivers/platform/x86/asus-wmi.c struct backlight_device *bd; bd 1864 drivers/platform/x86/asus-wmi.c bd = backlight_device_register(asus->driver->name, bd 1867 drivers/platform/x86/asus-wmi.c if (IS_ERR(bd)) { bd 1869 drivers/platform/x86/asus-wmi.c return PTR_ERR(bd); bd 1872 drivers/platform/x86/asus-wmi.c asus->backlight_device = bd; bd 1877 drivers/platform/x86/asus-wmi.c bd->props.brightness = read_brightness(bd); bd 1878 drivers/platform/x86/asus-wmi.c bd->props.power = power; bd 1879 drivers/platform/x86/asus-wmi.c backlight_update_status(bd); bd 1881 drivers/platform/x86/asus-wmi.c asus->driver->brightness = bd->props.brightness; bd 810 drivers/platform/x86/classmate-laptop.c static int cmpc_bl_get_brightness(struct backlight_device *bd) bd 816 drivers/platform/x86/classmate-laptop.c handle = bl_get_data(bd); bd 824 drivers/platform/x86/classmate-laptop.c static int cmpc_bl_update_status(struct backlight_device *bd) bd 829 drivers/platform/x86/classmate-laptop.c handle = bl_get_data(bd); bd 830 drivers/platform/x86/classmate-laptop.c status = cmpc_set_brightness(handle, bd->props.brightness); bd 929 drivers/platform/x86/classmate-laptop.c struct backlight_device *bd; bd 946 drivers/platform/x86/classmate-laptop.c ipml->bd = backlight_device_register("cmpc_bl", &acpi->dev, bd 949 drivers/platform/x86/classmate-laptop.c if (IS_ERR(ipml->bd)) { bd 950 drivers/platform/x86/classmate-laptop.c retval = PTR_ERR(ipml->bd); bd 983 drivers/platform/x86/classmate-laptop.c backlight_device_unregister(ipml->bd); bd 901 drivers/platform/x86/dell-laptop.c static int dell_send_intensity(struct backlight_device *bd) bd 912 drivers/platform/x86/dell-laptop.c token->location, bd->props.brightness, 0, 0); bd 923 drivers/platform/x86/dell-laptop.c static int dell_get_intensity(struct backlight_device *bd) bd 1090 drivers/platform/x86/eeepc-laptop.c static int read_brightness(struct backlight_device *bd) bd 1092 drivers/platform/x86/eeepc-laptop.c struct eeepc_laptop *eeepc = bl_get_data(bd); bd 1097 drivers/platform/x86/eeepc-laptop.c static int set_brightness(struct backlight_device *bd, int value) bd 1099 drivers/platform/x86/eeepc-laptop.c struct eeepc_laptop *eeepc = bl_get_data(bd); bd 1104 drivers/platform/x86/eeepc-laptop.c static int update_bl_status(struct backlight_device *bd) bd 1106 drivers/platform/x86/eeepc-laptop.c return set_brightness(bd, bd->props.brightness); bd 1116 drivers/platform/x86/eeepc-laptop.c struct backlight_device *bd = eeepc->backlight_device; bd 1117 drivers/platform/x86/eeepc-laptop.c int old = bd->props.brightness; bd 1119 drivers/platform/x86/eeepc-laptop.c backlight_force_update(bd, BACKLIGHT_UPDATE_HOTKEY); bd 1127 drivers/platform/x86/eeepc-laptop.c struct backlight_device *bd; bd 1132 drivers/platform/x86/eeepc-laptop.c bd = backlight_device_register(EEEPC_LAPTOP_FILE, bd 1135 drivers/platform/x86/eeepc-laptop.c if (IS_ERR(bd)) { bd 1138 drivers/platform/x86/eeepc-laptop.c return PTR_ERR(bd); bd 1140 drivers/platform/x86/eeepc-laptop.c eeepc->backlight_device = bd; bd 1141 drivers/platform/x86/eeepc-laptop.c bd->props.brightness = read_brightness(bd); bd 1142 drivers/platform/x86/eeepc-laptop.c bd->props.power = FB_BLANK_UNBLANK; bd 1143 drivers/platform/x86/eeepc-laptop.c backlight_update_status(bd); bd 372 drivers/platform/x86/fujitsu-laptop.c struct backlight_device *bd; bd 374 drivers/platform/x86/fujitsu-laptop.c bd = devm_backlight_device_register(&device->dev, "fujitsu-laptop", bd 377 drivers/platform/x86/fujitsu-laptop.c if (IS_ERR(bd)) bd 378 drivers/platform/x86/fujitsu-laptop.c return PTR_ERR(bd); bd 380 drivers/platform/x86/fujitsu-laptop.c priv->bl_device = bd; bd 233 drivers/platform/x86/intel_oaktrail.c struct backlight_device *bd; bd 239 drivers/platform/x86/intel_oaktrail.c bd = backlight_device_register(DRIVER_NAME, bd 244 drivers/platform/x86/intel_oaktrail.c if (IS_ERR(bd)) { bd 247 drivers/platform/x86/intel_oaktrail.c return PTR_ERR(bd); bd 250 drivers/platform/x86/intel_oaktrail.c oaktrail_bl_device = bd; bd 252 drivers/platform/x86/intel_oaktrail.c bd->props.brightness = get_backlight_brightness(bd); bd 253 drivers/platform/x86/intel_oaktrail.c bd->props.power = FB_BLANK_UNBLANK; bd 254 drivers/platform/x86/intel_oaktrail.c backlight_update_status(bd); bd 131 drivers/platform/x86/msi-wmi.c static int bl_get(struct backlight_device *bd) bd 156 drivers/platform/x86/msi-wmi.c static int bl_set_status(struct backlight_device *bd) bd 158 drivers/platform/x86/msi-wmi.c int bright = bd->props.brightness; bd 306 drivers/platform/x86/panasonic-laptop.c static int bl_get(struct backlight_device *bd) bd 308 drivers/platform/x86/panasonic-laptop.c struct pcc_acpi *pcc = bl_get_data(bd); bd 316 drivers/platform/x86/panasonic-laptop.c static int bl_set_status(struct backlight_device *bd) bd 318 drivers/platform/x86/panasonic-laptop.c struct pcc_acpi *pcc = bl_get_data(bd); bd 319 drivers/platform/x86/panasonic-laptop.c int bright = bd->props.brightness; bd 519 drivers/platform/x86/samsung-laptop.c static int get_brightness(struct backlight_device *bd) bd 521 drivers/platform/x86/samsung-laptop.c struct samsung_laptop *samsung = bl_get_data(bd); bd 560 drivers/platform/x86/samsung-laptop.c static int update_status(struct backlight_device *bd) bd 562 drivers/platform/x86/samsung-laptop.c struct samsung_laptop *samsung = bl_get_data(bd); bd 565 drivers/platform/x86/samsung-laptop.c set_brightness(samsung, bd->props.brightness); bd 567 drivers/platform/x86/samsung-laptop.c if (bd->props.power == FB_BLANK_UNBLANK) bd 1185 drivers/platform/x86/samsung-laptop.c struct backlight_device *bd; bd 1196 drivers/platform/x86/samsung-laptop.c bd = backlight_device_register("samsung", bd 1200 drivers/platform/x86/samsung-laptop.c if (IS_ERR(bd)) bd 1201 drivers/platform/x86/samsung-laptop.c return PTR_ERR(bd); bd 1203 drivers/platform/x86/samsung-laptop.c samsung->backlight_device = bd; bd 25 drivers/platform/x86/samsung-q10.c static int samsungq10_bl_set_intensity(struct backlight_device *bd) bd 36 drivers/platform/x86/samsung-q10.c for (i = 0; i < bd->props.brightness; i++) { bd 53 drivers/platform/x86/samsung-q10.c struct backlight_device *bd; bd 58 drivers/platform/x86/samsung-q10.c bd = backlight_device_register("samsung", &pdev->dev, NULL, bd 60 drivers/platform/x86/samsung-q10.c if (IS_ERR(bd)) bd 61 drivers/platform/x86/samsung-q10.c return PTR_ERR(bd); bd 63 drivers/platform/x86/samsung-q10.c platform_set_drvdata(pdev, bd); bd 71 drivers/platform/x86/samsung-q10.c struct backlight_device *bd = platform_get_drvdata(pdev); bd 73 drivers/platform/x86/samsung-q10.c backlight_device_unregister(bd); bd 1024 drivers/platform/x86/sony-laptop.c static int sony_backlight_update_status(struct backlight_device *bd) bd 1026 drivers/platform/x86/sony-laptop.c int arg = bd->props.brightness + 1; bd 1030 drivers/platform/x86/sony-laptop.c static int sony_backlight_get_brightness(struct backlight_device *bd) bd 1040 drivers/platform/x86/sony-laptop.c static int sony_nc_get_brightness_ng(struct backlight_device *bd) bd 1044 drivers/platform/x86/sony-laptop.c (struct sony_backlight_props *)bl_get_data(bd); bd 1051 drivers/platform/x86/sony-laptop.c static int sony_nc_update_status_ng(struct backlight_device *bd) bd 1055 drivers/platform/x86/sony-laptop.c (struct sony_backlight_props *)bl_get_data(bd); bd 1057 drivers/platform/x86/sony-laptop.c value = bd->props.brightness + sdev->offset; bd 6800 drivers/platform/x86/thinkpad_acpi.c static int brightness_update_status(struct backlight_device *bd) bd 6803 drivers/platform/x86/thinkpad_acpi.c (bd->props.fb_blank == FB_BLANK_UNBLANK && bd 6804 drivers/platform/x86/thinkpad_acpi.c bd->props.power == FB_BLANK_UNBLANK) ? bd 6805 drivers/platform/x86/thinkpad_acpi.c bd->props.brightness : 0; bd 6816 drivers/platform/x86/thinkpad_acpi.c static int brightness_get(struct backlight_device *bd) bd 1346 drivers/platform/x86/toshiba_acpi.c static int get_lcd_brightness(struct backlight_device *bd) bd 1348 drivers/platform/x86/toshiba_acpi.c struct toshiba_acpi_dev *dev = bl_get_data(bd); bd 1403 drivers/platform/x86/toshiba_acpi.c static int set_lcd_status(struct backlight_device *bd) bd 1405 drivers/platform/x86/toshiba_acpi.c struct toshiba_acpi_dev *dev = bl_get_data(bd); bd 1407 drivers/platform/x86/toshiba_acpi.c return set_lcd_brightness(dev, bd->props.brightness); bd 1236 drivers/power/supply/bq27xxx_battery.c struct bq27xxx_dm_buf bd = BQ27XXX_DM_BUF(di, BQ27XXX_DM_DESIGN_CAPACITY); bd 1245 drivers/power/supply/bq27xxx_battery.c bq27xxx_battery_read_dm_block(di, &bd); bd 1247 drivers/power/supply/bq27xxx_battery.c bq27xxx_battery_update_dm_block(di, &bd, bd 1250 drivers/power/supply/bq27xxx_battery.c bq27xxx_battery_update_dm_block(di, &bd, bd 1256 drivers/power/supply/bq27xxx_battery.c bool same = bd.class == bt.class && bd.block == bt.block; bd 1259 drivers/power/supply/bq27xxx_battery.c bq27xxx_battery_update_dm_block(di, same ? &bd : &bt, bd 1264 drivers/power/supply/bq27xxx_battery.c updated = bd.dirty || bt.dirty; bd 1266 drivers/power/supply/bq27xxx_battery.c bq27xxx_battery_write_dm_block(di, &bd); bd 20 drivers/regulator/bd9571mwv-regulator.c struct bd9571mwv *bd; bd 140 drivers/regulator/bd9571mwv-regulator.c static int bd9571mwv_bkup_mode_read(struct bd9571mwv *bd, unsigned int *mode) bd 144 drivers/regulator/bd9571mwv-regulator.c ret = regmap_read(bd->regmap, BD9571MWV_BKUP_MODE_CNT, mode); bd 146 drivers/regulator/bd9571mwv-regulator.c dev_err(bd->dev, "failed to read backup mode (%d)\n", ret); bd 153 drivers/regulator/bd9571mwv-regulator.c static int bd9571mwv_bkup_mode_write(struct bd9571mwv *bd, unsigned int mode) bd 157 drivers/regulator/bd9571mwv-regulator.c ret = regmap_write(bd->regmap, BD9571MWV_BKUP_MODE_CNT, mode); bd 159 drivers/regulator/bd9571mwv-regulator.c dev_err(bd->dev, "failed to configure backup mode 0x%x (%d)\n", bd 197 drivers/regulator/bd9571mwv-regulator.c ret = bd9571mwv_bkup_mode_read(bdreg->bd, &mode); bd 205 drivers/regulator/bd9571mwv-regulator.c ret = bd9571mwv_bkup_mode_write(bdreg->bd, mode); bd 224 drivers/regulator/bd9571mwv-regulator.c ret = bd9571mwv_bkup_mode_read(bdreg->bd, &mode); bd 238 drivers/regulator/bd9571mwv-regulator.c return bd9571mwv_bkup_mode_write(bdreg->bd, mode); bd 251 drivers/regulator/bd9571mwv-regulator.c return bd9571mwv_bkup_mode_write(bdreg->bd, bdreg->bkup_mode_cnt_saved); bd 271 drivers/regulator/bd9571mwv-regulator.c struct bd9571mwv *bd = dev_get_drvdata(pdev->dev.parent); bd 282 drivers/regulator/bd9571mwv-regulator.c bdreg->bd = bd; bd 287 drivers/regulator/bd9571mwv-regulator.c config.dev->of_node = bd->dev->of_node; bd 288 drivers/regulator/bd9571mwv-regulator.c config.driver_data = bd; bd 289 drivers/regulator/bd9571mwv-regulator.c config.regmap = bd->regmap; bd 295 drivers/regulator/bd9571mwv-regulator.c dev_err(bd->dev, "failed to register %s regulator\n", bd 302 drivers/regulator/bd9571mwv-regulator.c of_property_read_u32(bd->dev->of_node, "rohm,ddr-backup-power", &val); bd 304 drivers/regulator/bd9571mwv-regulator.c dev_err(bd->dev, "invalid %s mode %u\n", bd 310 drivers/regulator/bd9571mwv-regulator.c bdreg->rstbmode_level = of_property_read_bool(bd->dev->of_node, bd 312 drivers/regulator/bd9571mwv-regulator.c bdreg->rstbmode_pulse = of_property_read_bool(bd->dev->of_node, bd 315 drivers/regulator/bd9571mwv-regulator.c dev_err(bd->dev, "only one rohm,rstbmode-* may be specified"); bd 122 drivers/scsi/aacraid/aachba.c } __attribute__((packed)) bd; bd 140 drivers/scsi/aacraid/aachba.c } __attribute__((packed)) bd; bd 3146 drivers/scsi/aacraid/aachba.c mpd.hd.bd_length = sizeof(mpd.bd); bd 3148 drivers/scsi/aacraid/aachba.c mpd.bd.block_length[0] = bd 3150 drivers/scsi/aacraid/aachba.c mpd.bd.block_length[1] = bd 3152 drivers/scsi/aacraid/aachba.c mpd.bd.block_length[2] = bd 3167 drivers/scsi/aacraid/aachba.c mpd.bd.block_count[0] = 0xff; bd 3168 drivers/scsi/aacraid/aachba.c mpd.bd.block_count[1] = 0xff; bd 3169 drivers/scsi/aacraid/aachba.c mpd.bd.block_count[2] = 0xff; bd 3171 drivers/scsi/aacraid/aachba.c mpd.bd.block_count[0] = (capacity >> 16) & 0xff; bd 3172 drivers/scsi/aacraid/aachba.c mpd.bd.block_count[1] = (capacity >> 8) & 0xff; bd 3173 drivers/scsi/aacraid/aachba.c mpd.bd.block_count[2] = capacity & 0xff; bd 3232 drivers/scsi/aacraid/aachba.c mpd10.hd.bd_length[1] = sizeof(mpd10.bd); bd 3236 drivers/scsi/aacraid/aachba.c mpd10.bd.block_length[0] = bd 3238 drivers/scsi/aacraid/aachba.c mpd10.bd.block_length[1] = bd 3240 drivers/scsi/aacraid/aachba.c mpd10.bd.block_length[2] = bd 3244 drivers/scsi/aacraid/aachba.c mpd10.bd.block_count[0] = 0xff; bd 3245 drivers/scsi/aacraid/aachba.c mpd10.bd.block_count[1] = 0xff; bd 3246 drivers/scsi/aacraid/aachba.c mpd10.bd.block_count[2] = 0xff; bd 3248 drivers/scsi/aacraid/aachba.c mpd10.bd.block_count[0] = bd 3250 drivers/scsi/aacraid/aachba.c mpd10.bd.block_count[1] = bd 3252 drivers/scsi/aacraid/aachba.c mpd10.bd.block_count[2] = bd 1457 drivers/scsi/bnx2fc/bnx2fc_hwi.c struct fcoe_bd_ctx *bd = orig_io_req->bd_tbl->bd_tbl; bd 1499 drivers/scsi/bnx2fc/bnx2fc_hwi.c if (offset < bd[i].buf_len) bd 1501 drivers/scsi/bnx2fc/bnx2fc_hwi.c offset -= bd[i].buf_len; bd 1622 drivers/scsi/bnx2fc/bnx2fc_io.c struct fcoe_bd_ctx *bd = io_req->bd_tbl->bd_tbl; bd 1631 drivers/scsi/bnx2fc/bnx2fc_io.c bd[bd_index + sg_frags].buf_addr_lo = addr & 0xffffffff; bd 1632 drivers/scsi/bnx2fc/bnx2fc_io.c bd[bd_index + sg_frags].buf_addr_hi = addr >> 32; bd 1633 drivers/scsi/bnx2fc/bnx2fc_io.c bd[bd_index + sg_frags].buf_len = (u16)frag_size; bd 1634 drivers/scsi/bnx2fc/bnx2fc_io.c bd[bd_index + sg_frags].flags = 0; bd 1649 drivers/scsi/bnx2fc/bnx2fc_io.c struct fcoe_bd_ctx *bd = io_req->bd_tbl->bd_tbl; bd 1675 drivers/scsi/bnx2fc/bnx2fc_io.c bd[bd_count].buf_addr_lo = addr & 0xffffffff; bd 1676 drivers/scsi/bnx2fc/bnx2fc_io.c bd[bd_count].buf_addr_hi = addr >> 32; bd 1677 drivers/scsi/bnx2fc/bnx2fc_io.c bd[bd_count].buf_len = (u16)sg_len; bd 1678 drivers/scsi/bnx2fc/bnx2fc_io.c bd[bd_count].flags = 0; bd 1693 drivers/scsi/bnx2fc/bnx2fc_io.c struct fcoe_bd_ctx *bd = io_req->bd_tbl->bd_tbl; bd 1702 drivers/scsi/bnx2fc/bnx2fc_io.c bd[0].buf_addr_lo = bd[0].buf_addr_hi = 0; bd 1703 drivers/scsi/bnx2fc/bnx2fc_io.c bd[0].buf_len = bd[0].flags = 0; bd 146 drivers/scsi/bnx2i/bnx2i_iscsi.c struct iscsi_bd *bd = cmd->io_tbl.bd_tbl; bd 162 drivers/scsi/bnx2i/bnx2i_iscsi.c bd[bd_count].buffer_addr_lo = addr & 0xffffffff; bd 163 drivers/scsi/bnx2i/bnx2i_iscsi.c bd[bd_count].buffer_addr_hi = addr >> 32; bd 164 drivers/scsi/bnx2i/bnx2i_iscsi.c bd[bd_count].buffer_length = sg_len; bd 165 drivers/scsi/bnx2i/bnx2i_iscsi.c bd[bd_count].flags = 0; bd 167 drivers/scsi/bnx2i/bnx2i_iscsi.c bd[bd_count].flags = ISCSI_BD_FIRST_IN_BD_CHAIN; bd 174 drivers/scsi/bnx2i/bnx2i_iscsi.c bd[bd_count - 1].flags |= ISCSI_BD_LAST_IN_BD_CHAIN; bd 192 drivers/scsi/bnx2i/bnx2i_iscsi.c struct iscsi_bd *bd = cmd->io_tbl.bd_tbl; bd 194 drivers/scsi/bnx2i/bnx2i_iscsi.c bd[0].buffer_addr_lo = bd[0].buffer_addr_hi = 0; bd 195 drivers/scsi/bnx2i/bnx2i_iscsi.c bd[0].buffer_length = bd[0].flags = 0; bd 448 drivers/scsi/bnx2i/bnx2i_iscsi.c struct iscsi_bd *bd; bd 451 drivers/scsi/bnx2i/bnx2i_iscsi.c ISCSI_MAX_BDS_PER_CMD * sizeof(*bd), bd 1928 drivers/scsi/gdth.c mpd.hd.bd_length = sizeof(mpd.bd); bd 1929 drivers/scsi/gdth.c mpd.bd.block_length[0] = (SECTOR_SIZE & 0x00ff0000) >> 16; bd 1930 drivers/scsi/gdth.c mpd.bd.block_length[1] = (SECTOR_SIZE & 0x0000ff00) >> 8; bd 1931 drivers/scsi/gdth.c mpd.bd.block_length[2] = (SECTOR_SIZE & 0x000000ff); bd 967 drivers/scsi/gdth.h } __attribute__((packed)) bd; bd 484 drivers/scsi/qedf/qedf_io.c struct scsi_sge *bd = io_req->bd_tbl->bd_tbl; bd 516 drivers/scsi/qedf/qedf_io.c bd[bd_count].sge_addr.lo = cpu_to_le32(U64_LO(addr)); bd 517 drivers/scsi/qedf/qedf_io.c bd[bd_count].sge_addr.hi = cpu_to_le32(U64_HI(addr)); bd 518 drivers/scsi/qedf/qedf_io.c bd[bd_count].sge_len = cpu_to_le32(sg_len); bd 539 drivers/scsi/qedf/qedf_io.c struct scsi_sge *bd = io_req->bd_tbl->bd_tbl; bd 548 drivers/scsi/qedf/qedf_io.c bd[0].sge_addr.lo = bd[0].sge_addr.hi = 0; bd 549 drivers/scsi/qedf/qedf_io.c bd[0].sge_len = 0; bd 1808 drivers/scsi/qedi/qedi_fw.c struct scsi_sge *bd = cmd->io_tbl.sge_tbl; bd 1824 drivers/scsi/qedi/qedi_fw.c bd[bd_index + sg_frags].sge_addr.lo = (addr & 0xffffffff); bd 1825 drivers/scsi/qedi/qedi_fw.c bd[bd_index + sg_frags].sge_addr.hi = (addr >> 32); bd 1826 drivers/scsi/qedi/qedi_fw.c bd[bd_index + sg_frags].sge_len = (u16)frag_size; bd 1841 drivers/scsi/qedi/qedi_fw.c struct scsi_sge *bd = cmd->io_tbl.sge_tbl; bd 1865 drivers/scsi/qedi/qedi_fw.c bd[bd_count].sge_addr.lo = (addr & 0xffffffff); bd 1866 drivers/scsi/qedi/qedi_fw.c bd[bd_count].sge_addr.hi = (addr >> 32); bd 1867 drivers/scsi/qedi/qedi_fw.c bd[bd_count].sge_len = (u16)sg_len; bd 1912 drivers/scsi/qedi/qedi_fw.c bd[bd_count].sge_addr.lo = addr & 0xffffffff; bd 1913 drivers/scsi/qedi/qedi_fw.c bd[bd_count].sge_addr.hi = addr >> 32; bd 1914 drivers/scsi/qedi/qedi_fw.c bd[bd_count].sge_len = sg_len; bd 1943 drivers/scsi/qedi/qedi_fw.c struct scsi_sge *bd = cmd->io_tbl.sge_tbl; bd 1945 drivers/scsi/qedi/qedi_fw.c bd[0].sge_addr.lo = 0; bd 1946 drivers/scsi/qedi/qedi_fw.c bd[0].sge_addr.hi = 0; bd 1947 drivers/scsi/qedi/qedi_fw.c bd[0].sge_len = 0; bd 1645 drivers/scsi/scsi_lib.c const struct blk_mq_queue_data *bd) bd 1647 drivers/scsi/scsi_lib.c struct request *req = bd->rq; bd 1684 drivers/scsi/scsi_lib.c if (bd->last) bd 125 drivers/soc/fsl/qe/ucc_slow.c struct qe_bd *bd; bd 228 drivers/soc/fsl/qe/ucc_slow.c bd = uccs->confBd = uccs->tx_bd = qe_muram_addr(uccs->tx_base_offset); bd 231 drivers/soc/fsl/qe/ucc_slow.c out_be32(&bd->buf, 0); bd 233 drivers/soc/fsl/qe/ucc_slow.c out_be32((u32 *) bd, 0); bd 234 drivers/soc/fsl/qe/ucc_slow.c bd++; bd 237 drivers/soc/fsl/qe/ucc_slow.c out_be32(&bd->buf, 0); bd 238 drivers/soc/fsl/qe/ucc_slow.c out_be32((u32 *) bd, cpu_to_be32(T_W)); bd 241 drivers/soc/fsl/qe/ucc_slow.c bd = uccs->rx_bd = qe_muram_addr(uccs->rx_base_offset); bd 244 drivers/soc/fsl/qe/ucc_slow.c out_be32((u32*)bd, 0); bd 246 drivers/soc/fsl/qe/ucc_slow.c out_be32(&bd->buf, 0); bd 247 drivers/soc/fsl/qe/ucc_slow.c bd++; bd 250 drivers/soc/fsl/qe/ucc_slow.c out_be32((u32*)bd, cpu_to_be32(R_W)); bd 251 drivers/soc/fsl/qe/ucc_slow.c out_be32(&bd->buf, 0); bd 859 drivers/soundwire/cadence_master.c ret = cdns_allocate_pdi(cdns, &stream->bd, bd 885 drivers/soundwire/cadence_master.c ret = cdns_allocate_pdi(cdns, &stream->bd, bd 1289 drivers/soundwire/cadence_master.c pdis = cdns_get_num_pdi(cdns, stream->bd, stream->num_bd, ch); bd 1317 drivers/soundwire/cadence_master.c pdi = cdns_find_pdi(cdns, stream->num_bd, stream->bd); bd 70 drivers/soundwire/cadence_master.h struct sdw_cdns_pdi *bd; bd 454 drivers/soundwire/intel.c intel_pdi_get_ch_update(sdw, stream->bd, stream->num_bd, bd 129 drivers/spi/spi-pic32-sqi.c struct buf_desc *bd; bd 146 drivers/spi/spi-pic32-sqi.c void *bd; bd 264 drivers/spi/spi-pic32-sqi.c struct buf_desc *bd; bd 302 drivers/spi/spi-pic32-sqi.c bd = rdesc->bd; bd 306 drivers/spi/spi-pic32-sqi.c bd->bd_ctrl = bd_ctrl; bd 307 drivers/spi/spi-pic32-sqi.c bd->bd_ctrl |= rdesc->xfer_len; bd 310 drivers/spi/spi-pic32-sqi.c bd->bd_status = 0; bd 313 drivers/spi/spi-pic32-sqi.c bd->bd_addr = sg->dma_address; bd 398 drivers/spi/spi-pic32-sqi.c rdesc->bd->bd_ctrl |= BD_LAST | BD_CS_DEASSERT | bd 457 drivers/spi/spi-pic32-sqi.c struct buf_desc *bd; bd 461 drivers/spi/spi-pic32-sqi.c sqi->bd = dma_alloc_coherent(&sqi->master->dev, bd 462 drivers/spi/spi-pic32-sqi.c sizeof(*bd) * PESQI_BD_COUNT, bd 464 drivers/spi/spi-pic32-sqi.c if (!sqi->bd) { bd 473 drivers/spi/spi-pic32-sqi.c sizeof(*bd) * PESQI_BD_COUNT, bd 474 drivers/spi/spi-pic32-sqi.c sqi->bd, sqi->bd_dma); bd 478 drivers/spi/spi-pic32-sqi.c bd = (struct buf_desc *)sqi->bd; bd 486 drivers/spi/spi-pic32-sqi.c rdesc->bd = &bd[i]; bd 487 drivers/spi/spi-pic32-sqi.c rdesc->bd_dma = sqi->bd_dma + (void *)&bd[i] - (void *)bd; bd 493 drivers/spi/spi-pic32-sqi.c bd[i].bd_nextp = rdesc[i + 1].bd_dma; bd 494 drivers/spi/spi-pic32-sqi.c bd[PESQI_BD_COUNT - 1].bd_nextp = 0; bd 503 drivers/spi/spi-pic32-sqi.c sqi->bd, sqi->bd_dma); bd 192 drivers/staging/fbtft/fb_ssd1351.c static int update_onboard_backlight(struct backlight_device *bd) bd 194 drivers/staging/fbtft/fb_ssd1351.c struct fbtft_par *par = bl_get_data(bd); bd 199 drivers/staging/fbtft/fb_ssd1351.c __func__, bd->props.power, bd->props.fb_blank); bd 201 drivers/staging/fbtft/fb_ssd1351.c on = (bd->props.power == FB_BLANK_UNBLANK) && bd 202 drivers/staging/fbtft/fb_ssd1351.c (bd->props.fb_blank == FB_BLANK_UNBLANK); bd 215 drivers/staging/fbtft/fb_ssd1351.c struct backlight_device *bd; bd 221 drivers/staging/fbtft/fb_ssd1351.c bd = backlight_device_register(dev_driver_string(par->info->device), bd 224 drivers/staging/fbtft/fb_ssd1351.c if (IS_ERR(bd)) { bd 227 drivers/staging/fbtft/fb_ssd1351.c PTR_ERR(bd)); bd 230 drivers/staging/fbtft/fb_ssd1351.c par->info->bl_dev = bd; bd 219 drivers/staging/fbtft/fb_watterott.c static int backlight_chip_update_status(struct backlight_device *bd) bd 221 drivers/staging/fbtft/fb_watterott.c struct fbtft_par *par = bl_get_data(bd); bd 222 drivers/staging/fbtft/fb_watterott.c int brightness = bd->props.brightness; bd 226 drivers/staging/fbtft/fb_watterott.c bd->props.brightness, bd->props.power, bd 227 drivers/staging/fbtft/fb_watterott.c bd->props.fb_blank); bd 229 drivers/staging/fbtft/fb_watterott.c if (bd->props.power != FB_BLANK_UNBLANK) bd 232 drivers/staging/fbtft/fb_watterott.c if (bd->props.fb_blank != FB_BLANK_UNBLANK) bd 246 drivers/staging/fbtft/fb_watterott.c struct backlight_device *bd; bd 254 drivers/staging/fbtft/fb_watterott.c bd = backlight_device_register(dev_driver_string(par->info->device), bd 257 drivers/staging/fbtft/fb_watterott.c if (IS_ERR(bd)) { bd 260 drivers/staging/fbtft/fb_watterott.c PTR_ERR(bd)); bd 263 drivers/staging/fbtft/fb_watterott.c par->info->bl_dev = bd; bd 141 drivers/staging/fbtft/fbtft-core.c static int fbtft_backlight_update_status(struct backlight_device *bd) bd 143 drivers/staging/fbtft/fbtft-core.c struct fbtft_par *par = bl_get_data(bd); bd 148 drivers/staging/fbtft/fbtft-core.c __func__, polarity, bd->props.power, bd->props.fb_blank); bd 150 drivers/staging/fbtft/fbtft-core.c if ((bd->props.power == FB_BLANK_UNBLANK) && bd 151 drivers/staging/fbtft/fbtft-core.c (bd->props.fb_blank == FB_BLANK_UNBLANK)) bd 159 drivers/staging/fbtft/fbtft-core.c static int fbtft_backlight_get_brightness(struct backlight_device *bd) bd 161 drivers/staging/fbtft/fbtft-core.c return bd->props.brightness; bd 181 drivers/staging/fbtft/fbtft-core.c struct backlight_device *bd; bd 196 drivers/staging/fbtft/fbtft-core.c bd = backlight_device_register(dev_driver_string(par->info->device), bd 199 drivers/staging/fbtft/fbtft-core.c if (IS_ERR(bd)) { bd 202 drivers/staging/fbtft/fbtft-core.c PTR_ERR(bd)); bd 205 drivers/staging/fbtft/fbtft-core.c par->info->bl_dev = bd; bd 73 drivers/target/target_core_iblock.c struct block_device *bd = NULL; bd 99 drivers/target/target_core_iblock.c bd = blkdev_get_by_path(ib_dev->ibd_udev_path, mode, ib_dev); bd 100 drivers/target/target_core_iblock.c if (IS_ERR(bd)) { bd 101 drivers/target/target_core_iblock.c ret = PTR_ERR(bd); bd 104 drivers/target/target_core_iblock.c ib_dev->ibd_bd = bd; bd 106 drivers/target/target_core_iblock.c q = bdev_get_queue(bd); bd 108 drivers/target/target_core_iblock.c dev->dev_attrib.hw_block_size = bdev_logical_block_size(bd); bd 120 drivers/target/target_core_iblock.c max_write_zeroes_sectors = bdev_write_zeroes_sectors(bd); bd 129 drivers/target/target_core_iblock.c bi = bdev_get_integrity(bd); bd 193 drivers/target/target_core_iblock.c struct block_device *bd, bd 196 drivers/target/target_core_iblock.c unsigned long long blocks_long = (div_u64(i_size_read(bd->bd_inode), bd 197 drivers/target/target_core_iblock.c bdev_logical_block_size(bd)) - 1); bd 198 drivers/target/target_core_iblock.c u32 block_size = bdev_logical_block_size(bd); bd 599 drivers/target/target_core_iblock.c struct block_device *bd = ib_dev->ibd_bd; bd 603 drivers/target/target_core_iblock.c if (bd) bd 605 drivers/target/target_core_iblock.c bdevname(bd, buf)); bd 612 drivers/target/target_core_iblock.c if (bd) { bd 614 drivers/target/target_core_iblock.c MAJOR(bd->bd_dev), MINOR(bd->bd_dev), (!bd->bd_contains) ? bd 615 drivers/target/target_core_iblock.c "" : (bd->bd_holder == ib_dev) ? bd 795 drivers/target/target_core_iblock.c struct block_device *bd = ib_dev->ibd_bd; bd 796 drivers/target/target_core_iblock.c struct request_queue *q = bdev_get_queue(bd); bd 798 drivers/target/target_core_iblock.c return iblock_emulate_read_cap_with_block_size(dev, bd, q); bd 804 drivers/target/target_core_iblock.c struct block_device *bd = ib_dev->ibd_bd; bd 807 drivers/target/target_core_iblock.c ret = bdev_alignment_offset(bd); bd 812 drivers/target/target_core_iblock.c return ret / bdev_logical_block_size(bd); bd 818 drivers/target/target_core_iblock.c struct block_device *bd = ib_dev->ibd_bd; bd 819 drivers/target/target_core_iblock.c int logs_per_phys = bdev_physical_block_size(bd) / bdev_logical_block_size(bd); bd 827 drivers/target/target_core_iblock.c struct block_device *bd = ib_dev->ibd_bd; bd 829 drivers/target/target_core_iblock.c return bdev_io_min(bd); bd 835 drivers/target/target_core_iblock.c struct block_device *bd = ib_dev->ibd_bd; bd 837 drivers/target/target_core_iblock.c return bdev_io_opt(bd); bd 856 drivers/target/target_core_iblock.c struct block_device *bd = ib_dev->ibd_bd; bd 857 drivers/target/target_core_iblock.c struct request_queue *q = bdev_get_queue(bd); bd 360 drivers/target/target_core_pscsi.c struct block_device *bd; bd 374 drivers/target/target_core_pscsi.c bd = blkdev_get_by_path(dev->udev_path, bd 376 drivers/target/target_core_pscsi.c if (IS_ERR(bd)) { bd 379 drivers/target/target_core_pscsi.c return PTR_ERR(bd); bd 381 drivers/target/target_core_pscsi.c pdv->pdv_bd = bd; bd 138 drivers/thermal/intel/int340x_thermal/int3406_thermal.c struct backlight_device *bd; bd 149 drivers/thermal/intel/int340x_thermal/int3406_thermal.c bd = backlight_device_get_by_type(BACKLIGHT_RAW); bd 150 drivers/thermal/intel/int340x_thermal/int3406_thermal.c if (!bd) bd 152 drivers/thermal/intel/int340x_thermal/int3406_thermal.c d->raw_bd = bd; bd 730 drivers/tty/serial/8250/8250_exar.c #define CONNECT_DEVICE(devid, sdevid, bd) { \ bd 736 drivers/tty/serial/8250/8250_exar.c (kernel_ulong_t)&bd \ bd 739 drivers/tty/serial/8250/8250_exar.c #define EXAR_DEVICE(vend, devid, bd) { \ bd 740 drivers/tty/serial/8250/8250_exar.c PCI_VDEVICE(vend, PCI_DEVICE_ID_##devid), (kernel_ulong_t)&bd \ bd 743 drivers/tty/serial/8250/8250_exar.c #define IBM_DEVICE(devid, sdevid, bd) { \ bd 749 drivers/tty/serial/8250/8250_exar.c (kernel_ulong_t)&bd \ bd 2207 drivers/tty/serial/fsl_lpuart.c unsigned long cr, bd; bd 2232 drivers/tty/serial/fsl_lpuart.c bd = lpuart32_read(&sport->port, UARTBAUD); bd 2233 drivers/tty/serial/fsl_lpuart.c bd &= UARTBAUD_SBR_MASK; bd 2234 drivers/tty/serial/fsl_lpuart.c sbr = bd; bd 685 drivers/tty/serial/jsm/jsm_cls.c struct jsm_board *bd; bd 689 drivers/tty/serial/jsm/jsm_cls.c bd = ch->ch_bd; bd 690 drivers/tty/serial/jsm/jsm_cls.c if (!bd) bd 30 drivers/tty/serial/jsm/jsm_neo.c static inline void neo_pci_posting_flush(struct jsm_board *bd) bd 32 drivers/tty/serial/jsm/jsm_neo.c readb(bd->re_map_membase + 0x8D); bd 929 drivers/tty/serial/jsm/jsm_neo.c struct jsm_board *bd; bd 931 drivers/tty/serial/jsm/jsm_neo.c bd = ch->ch_bd; bd 932 drivers/tty/serial/jsm/jsm_neo.c if (!bd) bd 269 drivers/tty/serial/jsm/jsm_tty.c struct jsm_board *bd; bd 275 drivers/tty/serial/jsm/jsm_tty.c bd = channel->ch_bd; bd 290 drivers/tty/serial/jsm/jsm_tty.c bd->bd_ops->assert_modem_signals(channel); bd 511 drivers/tty/serial/jsm/jsm_tty.c struct jsm_board *bd; bd 528 drivers/tty/serial/jsm/jsm_tty.c bd = ch->ch_bd; bd 529 drivers/tty/serial/jsm/jsm_tty.c if (!bd) bd 641 drivers/tty/serial/jsm/jsm_tty.c struct jsm_board *bd; bd 648 drivers/tty/serial/jsm/jsm_tty.c bd = ch->ch_bd; bd 649 drivers/tty/serial/jsm/jsm_tty.c if (!bd) bd 123 drivers/usb/gadget/udc/bdc/bdc_cmd.c struct bdc_bd *bd; bd 127 drivers/usb/gadget/udc/bdc/bdc_cmd.c bd = ep->bd_list.bd_table_array[0]->start_bd; bd 128 drivers/usb/gadget/udc/bdc/bdc_cmd.c dev_dbg(bdc->dev, "%s ep:%p bd:%p\n", __func__, ep, bd); bd 129 drivers/usb/gadget/udc/bdc/bdc_cmd.c memset(bd, 0, sizeof(struct bdc_bd)); bd 130 drivers/usb/gadget/udc/bdc/bdc_cmd.c bd->offset[3] |= cpu_to_le32(BD_SBF); bd 89 drivers/usb/gadget/udc/bdc/bdc_dbg.c struct bdc_bd *bd; bd 106 drivers/usb/gadget/udc/bdc/bdc_dbg.c bd = bd_table->start_bd + bdi; bd 110 drivers/usb/gadget/udc/bdc/bdc_dbg.c tbi, bdi, gbdi++, bd, (unsigned long long)dma, bd 111 drivers/usb/gadget/udc/bdc/bdc_dbg.c le32_to_cpu(bd->offset[0]), bd 112 drivers/usb/gadget/udc/bdc/bdc_dbg.c le32_to_cpu(bd->offset[1]), bd 113 drivers/usb/gadget/udc/bdc/bdc_dbg.c le32_to_cpu(bd->offset[2]), bd 114 drivers/usb/gadget/udc/bdc/bdc_dbg.c le32_to_cpu(bd->offset[3])); bd 432 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bdc_bd *bd; bd 441 drivers/usb/gadget/udc/bdc/bdc_ep.c bd = bdi_to_bd(ep, bd_list->eqp_bdi); bd 447 drivers/usb/gadget/udc/bdc/bdc_ep.c __func__, ep->name, num_bds, tfs, req_len, bd); bd 476 drivers/usb/gadget/udc/bdc/bdc_ep.c bd = bdi_to_bd(ep, ep->bd_list.eqp_bdi); bd 477 drivers/usb/gadget/udc/bdc/bdc_ep.c if (unlikely(!bd)) { bd 482 drivers/usb/gadget/udc/bdc/bdc_ep.c bd->offset[0] = cpu_to_le32(lower_32_bits(buf_add)); bd 483 drivers/usb/gadget/udc/bdc/bdc_ep.c bd->offset[1] = cpu_to_le32(upper_32_bits(buf_add)); bd 484 drivers/usb/gadget/udc/bdc/bdc_ep.c bd->offset[2] = cpu_to_le32(dword2); bd 485 drivers/usb/gadget/udc/bdc/bdc_ep.c bd->offset[3] = cpu_to_le32(dword3); bd 491 drivers/usb/gadget/udc/bdc/bdc_ep.c (unsigned long long)buf_add, req_len, bd, bd 493 drivers/usb/gadget/udc/bdc/bdc_ep.c bd = bdi_to_bd(ep, ep->bd_list.eqp_bdi); bd 494 drivers/usb/gadget/udc/bdc/bdc_ep.c bd->offset[3] = cpu_to_le32(BD_SBF); bd 497 drivers/usb/gadget/udc/bdc/bdc_ep.c bd = bdi_to_bd(ep, bd_xfr->start_bdi); bd 498 drivers/usb/gadget/udc/bdc/bdc_ep.c bd->offset[3] &= cpu_to_le32(~BD_SBF); bd 283 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_bd __iomem *bd; bd 293 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->rxbase; bd 295 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32((u32 __iomem *)bd, R_E | R_I); bd 296 drivers/usb/gadget/udc/fsl_qe_udc.c bd++; bd 298 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32((u32 __iomem *)bd, R_E | R_I | R_W); bd 300 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->txbase; bd 302 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32(&bd->buf, 0); bd 303 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32((u32 __iomem *)bd, 0); bd 304 drivers/usb/gadget/udc/fsl_qe_udc.c bd++; bd 306 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32((u32 __iomem *)bd, T_W); bd 353 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_bd __iomem *bd; bd 385 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->rxbase; bd 387 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32(&bd->buf, 0); bd 388 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32((u32 __iomem *)bd, 0); bd 389 drivers/usb/gadget/udc/fsl_qe_udc.c bd++; bd 391 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32(&bd->buf, 0); bd 392 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32((u32 __iomem *)bd, R_W); bd 394 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->txbase; bd 396 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32(&bd->buf, 0); bd 397 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32((u32 __iomem *)bd, 0); bd 398 drivers/usb/gadget/udc/fsl_qe_udc.c bd++; bd 400 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32(&bd->buf, 0); bd 401 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32((u32 __iomem *)bd, T_W); bd 411 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_bd __iomem *bd; bd 417 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->rxbase; bd 456 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32(&bd->buf, tmp); bd 457 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32((u32 __iomem *)bd, (R_E | R_I)); bd 459 drivers/usb/gadget/udc/fsl_qe_udc.c bd++; bd 461 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32(&bd->buf, tmp); bd 462 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32((u32 __iomem *)bd, (R_E | R_I | R_W)); bd 720 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_bd __iomem *bd, *nextbd; bd 724 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->e_rxbd; bd 725 drivers/usb/gadget/udc/fsl_qe_udc.c bdstatus = in_be32((u32 __iomem *)bd); bd 729 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32((u32 __iomem *)bd, bdstatus); bd 732 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->rxbase; bd 734 drivers/usb/gadget/udc/fsl_qe_udc.c bd++; bd 736 drivers/usb/gadget/udc/fsl_qe_udc.c bdstatus = in_be32((u32 __iomem *)bd); bd 737 drivers/usb/gadget/udc/fsl_qe_udc.c if (stopatnext && (bd == nextbd)) bd 741 drivers/usb/gadget/udc/fsl_qe_udc.c ep->e_rxbd = bd; bd 746 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_bd __iomem *bd = ep->n_rxbd; bd 751 drivers/usb/gadget/udc/fsl_qe_udc.c bdstatus = in_be32((u32 __iomem *)bd); bd 753 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->rxbase + bd 757 drivers/usb/gadget/udc/fsl_qe_udc.c bdstatus = in_be32((u32 __iomem *)bd); bd 760 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->rxbase; bd 762 drivers/usb/gadget/udc/fsl_qe_udc.c bd++; bd 764 drivers/usb/gadget/udc/fsl_qe_udc.c ep->e_rxbd = bd; bd 812 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_bd __iomem *bd; bd 823 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->n_rxbd; bd 824 drivers/usb/gadget/udc/fsl_qe_udc.c bdstatus = in_be32((u32 __iomem *)bd); bd 836 drivers/usb/gadget/udc/fsl_qe_udc.c vaddr = (u32)phys_to_virt(in_be32(&bd->buf)); bd 867 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->rxbase; bd 869 drivers/usb/gadget/udc/fsl_qe_udc.c bd++; bd 871 drivers/usb/gadget/udc/fsl_qe_udc.c bdstatus = in_be32((u32 __iomem *)bd); bd 876 drivers/usb/gadget/udc/fsl_qe_udc.c ep->n_rxbd = bd; bd 931 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_bd __iomem *bd; bd 948 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->n_rxbd; bd 949 drivers/usb/gadget/udc/fsl_qe_udc.c bdstatus = in_be32((u32 __iomem *)bd); bd 964 drivers/usb/gadget/udc/fsl_qe_udc.c vaddr = (u32)phys_to_virt(in_be32(&bd->buf)); bd 988 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32((u32 __iomem *)bd, bdstatus & BD_STATUS_MASK); bd 995 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->rxbase; bd 997 drivers/usb/gadget/udc/fsl_qe_udc.c bd++; bd 999 drivers/usb/gadget/udc/fsl_qe_udc.c bdstatus = in_be32((u32 __iomem *)bd); bd 1003 drivers/usb/gadget/udc/fsl_qe_udc.c ep->n_rxbd = bd; bd 1018 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_bd __iomem *bd; bd 1029 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->n_rxbd; bd 1031 drivers/usb/gadget/udc/fsl_qe_udc.c swoffs = (u16)(bd - ep->rxbase); bd 1063 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_bd __iomem *bd; bd 1078 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->n_txbd; bd 1079 drivers/usb/gadget/udc/fsl_qe_udc.c bdstatus = in_be32((u32 __iomem *)bd); bd 1089 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32(&bd->buf, paddr); bd 1110 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32((u32 __iomem *)bd, bdstatus); bd 1356 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_bd __iomem *bd; bd 1360 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->c_txbd; bd 1361 drivers/usb/gadget/udc/fsl_qe_udc.c bdstatus = in_be32((u32 __iomem *)bd); bd 1366 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32((u32 __iomem *)bd, bdstatus & T_W); bd 1367 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32(&bd->buf, 0); bd 1384 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->c_txbd; bd 1385 drivers/usb/gadget/udc/fsl_qe_udc.c bdstatus = in_be32((u32 __iomem *)bd); bd 1412 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_bd __iomem *bd; bd 1417 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->c_txbd; bd 1418 drivers/usb/gadget/udc/fsl_qe_udc.c bdstatus = in_be32((u32 __iomem *)bd); bd 1430 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32((u32 __iomem *)bd, bdstatus & T_W); bd 1431 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32(&bd->buf, 0); bd 1439 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->c_txbd; bd 1440 drivers/usb/gadget/udc/fsl_qe_udc.c bdstatus = in_be32((u32 __iomem *)bd); bd 1467 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_bd __iomem *bd; bd 1480 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->n_rxbd; bd 1481 drivers/usb/gadget/udc/fsl_qe_udc.c bdstatus = in_be32((u32 __iomem *)bd); bd 1490 drivers/usb/gadget/udc/fsl_qe_udc.c vaddr = (u32)phys_to_virt(in_be32(&bd->buf)); bd 1533 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32((u32 __iomem *)bd, (bdstatus & BD_STATUS_MASK)); bd 1538 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->rxbase; bd 1540 drivers/usb/gadget/udc/fsl_qe_udc.c bd++; bd 1542 drivers/usb/gadget/udc/fsl_qe_udc.c bdstatus = in_be32((u32 __iomem *)bd); bd 1546 drivers/usb/gadget/udc/fsl_qe_udc.c ep->n_rxbd = bd; bd 2162 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_bd __iomem *bd; bd 2172 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->c_txbd; bd 2173 drivers/usb/gadget/udc/fsl_qe_udc.c if (!(in_be32((u32 __iomem *)bd) & T_R) bd 2174 drivers/usb/gadget/udc/fsl_qe_udc.c && (in_be32(&bd->buf))) { bd 2191 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_bd __iomem *bd; bd 2197 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->n_rxbd; bd 2198 drivers/usb/gadget/udc/fsl_qe_udc.c if (!(in_be32((u32 __iomem *)bd) & R_E) bd 2199 drivers/usb/gadget/udc/fsl_qe_udc.c && (in_be32(&bd->buf))) { bd 66 drivers/usb/misc/appledisplay.c struct backlight_device *bd; /* backlight device */ bd 126 drivers/usb/misc/appledisplay.c static int appledisplay_bl_update_status(struct backlight_device *bd) bd 128 drivers/usb/misc/appledisplay.c struct appledisplay *pdata = bl_get_data(bd); bd 133 drivers/usb/misc/appledisplay.c pdata->msgdata[1] = bd->props.brightness; bd 152 drivers/usb/misc/appledisplay.c static int appledisplay_bl_get_brightness(struct backlight_device *bd) bd 154 drivers/usb/misc/appledisplay.c struct appledisplay *pdata = bl_get_data(bd); bd 192 drivers/usb/misc/appledisplay.c retval = appledisplay_bl_get_brightness(pdata->bd); bd 194 drivers/usb/misc/appledisplay.c pdata->bd->props.brightness = retval; bd 275 drivers/usb/misc/appledisplay.c pdata->bd = backlight_device_register(bl_name, NULL, pdata, bd 277 drivers/usb/misc/appledisplay.c if (IS_ERR(pdata->bd)) { bd 279 drivers/usb/misc/appledisplay.c retval = PTR_ERR(pdata->bd); bd 284 drivers/usb/misc/appledisplay.c brightness = appledisplay_bl_get_brightness(pdata->bd); bd 294 drivers/usb/misc/appledisplay.c pdata->bd->props.brightness = brightness; bd 313 drivers/usb/misc/appledisplay.c if (!IS_ERR(pdata->bd)) bd 314 drivers/usb/misc/appledisplay.c backlight_device_unregister(pdata->bd); bd 329 drivers/usb/misc/appledisplay.c backlight_device_unregister(pdata->bd); bd 63 drivers/usb/musb/cppi_dma.c struct cppi_descriptor *bd = c->freelist; bd 65 drivers/usb/musb/cppi_dma.c if (bd) bd 66 drivers/usb/musb/cppi_dma.c c->freelist = bd->next; bd 67 drivers/usb/musb/cppi_dma.c return bd; bd 71 drivers/usb/musb/cppi_dma.c cppi_bd_free(struct cppi_channel *c, struct cppi_descriptor *bd) bd 73 drivers/usb/musb/cppi_dma.c if (!bd) bd 75 drivers/usb/musb/cppi_dma.c bd->next = c->freelist; bd 76 drivers/usb/musb/cppi_dma.c c->freelist = bd; bd 125 drivers/usb/musb/cppi_dma.c struct cppi_descriptor *bd; bd 128 drivers/usb/musb/cppi_dma.c bd = dma_pool_alloc(cppi->pool, GFP_KERNEL, &dma); bd 129 drivers/usb/musb/cppi_dma.c bd->dma = dma; bd 130 drivers/usb/musb/cppi_dma.c cppi_bd_free(c, bd); bd 139 drivers/usb/musb/cppi_dma.c struct cppi_descriptor *bd; bd 146 drivers/usb/musb/cppi_dma.c bd = c->last_processed; bd 148 drivers/usb/musb/cppi_dma.c if (bd) bd 149 drivers/usb/musb/cppi_dma.c dma_pool_free(cppi->pool, bd, bd->dma); bd 150 drivers/usb/musb/cppi_dma.c bd = cppi_bd_alloc(c); bd 151 drivers/usb/musb/cppi_dma.c } while (bd); bd 429 drivers/usb/musb/cppi_dma.c static void cppi_dump_rxbd(const char *tag, struct cppi_descriptor *bd) bd 433 drivers/usb/musb/cppi_dma.c tag, bd->dma, bd 434 drivers/usb/musb/cppi_dma.c bd->hw_next, bd->hw_bufp, bd->hw_off_len, bd 435 drivers/usb/musb/cppi_dma.c bd->hw_options); bd 440 drivers/usb/musb/cppi_dma.c struct cppi_descriptor *bd; bd 445 drivers/usb/musb/cppi_dma.c for (bd = rx->head; bd; bd = bd->next) bd 446 drivers/usb/musb/cppi_dma.c cppi_dump_rxbd("active", bd); bd 566 drivers/usb/musb/cppi_dma.c struct cppi_descriptor *bd; bd 609 drivers/usb/musb/cppi_dma.c bd = tx->freelist; bd 610 drivers/usb/musb/cppi_dma.c tx->head = bd; bd 622 drivers/usb/musb/cppi_dma.c if (++i < n_bds && bd->next) bd 623 drivers/usb/musb/cppi_dma.c bd->hw_next = bd->next->dma; bd 625 drivers/usb/musb/cppi_dma.c bd->hw_next = 0; bd 627 drivers/usb/musb/cppi_dma.c bd->hw_bufp = tx->buf_dma + tx->offset; bd 634 drivers/usb/musb/cppi_dma.c bd->hw_off_len = maxpacket; bd 635 drivers/usb/musb/cppi_dma.c bd->hw_options = CPPI_SOP_SET | CPPI_EOP_SET bd 643 drivers/usb/musb/cppi_dma.c bd->hw_off_len = partial_len; bd 645 drivers/usb/musb/cppi_dma.c bd->hw_options = CPPI_SOP_SET | CPPI_EOP_SET bd 648 drivers/usb/musb/cppi_dma.c bd->hw_options |= CPPI_ZERO_SET; bd 652 drivers/usb/musb/cppi_dma.c bd, bd->hw_next, bd->hw_bufp, bd 653 drivers/usb/musb/cppi_dma.c bd->hw_off_len, bd->hw_options); bd 656 drivers/usb/musb/cppi_dma.c tx->tail = bd; bd 657 drivers/usb/musb/cppi_dma.c bd = bd->next; bd 767 drivers/usb/musb/cppi_dma.c struct cppi_descriptor *bd, *tail; bd 831 drivers/usb/musb/cppi_dma.c bd = cppi_bd_alloc(rx); bd 832 drivers/usb/musb/cppi_dma.c rx->head = bd; bd 835 drivers/usb/musb/cppi_dma.c for (i = 0, tail = NULL; bd && i < n_bds; i++, tail = bd) { bd 839 drivers/usb/musb/cppi_dma.c bd = cppi_bd_alloc(rx); bd 840 drivers/usb/musb/cppi_dma.c if (!bd) bd 842 drivers/usb/musb/cppi_dma.c tail->next = bd; bd 843 drivers/usb/musb/cppi_dma.c tail->hw_next = bd->dma; bd 845 drivers/usb/musb/cppi_dma.c bd->hw_next = 0; bd 853 drivers/usb/musb/cppi_dma.c bd->hw_bufp = addr; bd 857 drivers/usb/musb/cppi_dma.c bd->hw_off_len = (0 /*offset*/ << 16) + bd_len; bd 858 drivers/usb/musb/cppi_dma.c bd->buflen = bd_len; bd 860 drivers/usb/musb/cppi_dma.c bd->hw_options = CPPI_OWN_SET | (i == 0 ? length : 0); bd 874 drivers/usb/musb/cppi_dma.c bd = rx->head; bd 882 drivers/usb/musb/cppi_dma.c bd->hw_options |= CPPI_SOP_SET; bd 891 drivers/usb/musb/cppi_dma.c tail->next = bd; bd 892 drivers/usb/musb/cppi_dma.c tail->hw_next = bd->dma; bd 903 drivers/usb/musb/cppi_dma.c musb_writel(&rx_ram->rx_head, 0, bd->dma); bd 1005 drivers/usb/musb/cppi_dma.c struct cppi_descriptor *bd; bd 1016 drivers/usb/musb/cppi_dma.c bd = last ? last->next : rx->head; bd 1017 drivers/usb/musb/cppi_dma.c if (!bd) bd 1022 drivers/usb/musb/cppi_dma.c (safe2ack || completed) && bd && i < NUM_RXCHAN_BD; bd 1023 drivers/usb/musb/cppi_dma.c i++, bd = bd->next) { bd 1028 drivers/usb/musb/cppi_dma.c if (!completed && (bd->hw_options & CPPI_OWN_SET)) bd 1033 drivers/usb/musb/cppi_dma.c (unsigned long long)bd->dma, bd->hw_next, bd->hw_bufp, bd 1034 drivers/usb/musb/cppi_dma.c bd->hw_off_len, bd->hw_options, bd 1038 drivers/usb/musb/cppi_dma.c if ((bd->hw_options & CPPI_SOP_SET) && !completed) bd 1039 drivers/usb/musb/cppi_dma.c len = bd->hw_off_len & CPPI_RECV_PKTLEN_MASK; bd 1043 drivers/usb/musb/cppi_dma.c if (bd->hw_options & CPPI_EOQ_MASK) bd 1046 drivers/usb/musb/cppi_dma.c if (!completed && len < bd->buflen) { bd 1054 drivers/usb/musb/cppi_dma.c len, bd->buflen, bd 1066 drivers/usb/musb/cppi_dma.c if (bd->dma == safe2ack) { bd 1070 drivers/usb/musb/cppi_dma.c if (bd->dma == safe2ack) bd 1077 drivers/usb/musb/cppi_dma.c last = bd; bd 1080 drivers/usb/musb/cppi_dma.c if (bd->hw_next == 0) bd 1118 drivers/usb/musb/cppi_dma.c rx->head = bd; bd 1125 drivers/usb/musb/cppi_dma.c && bd bd 1173 drivers/usb/musb/cppi_dma.c struct cppi_descriptor *bd; bd 1187 drivers/usb/musb/cppi_dma.c bd = tx_ch->head; bd 1193 drivers/usb/musb/cppi_dma.c if (NULL == bd) { bd 1200 drivers/usb/musb/cppi_dma.c for (i = 0; !completed && bd && i < NUM_TXCHAN_BD; bd 1201 drivers/usb/musb/cppi_dma.c i++, bd = bd->next) { bd 1206 drivers/usb/musb/cppi_dma.c if (bd->hw_options & CPPI_OWN_SET) bd 1210 drivers/usb/musb/cppi_dma.c bd, bd->hw_next, bd->hw_bufp, bd 1211 drivers/usb/musb/cppi_dma.c bd->hw_off_len, bd->hw_options); bd 1213 drivers/usb/musb/cppi_dma.c len = bd->hw_off_len & CPPI_BUFFER_LEN_MASK; bd 1216 drivers/usb/musb/cppi_dma.c tx_ch->last_processed = bd; bd 1227 drivers/usb/musb/cppi_dma.c musb_writel(&tx_ram->tx_complete, 0, bd->dma); bd 1230 drivers/usb/musb/cppi_dma.c if (bd->hw_next == 0) bd 1255 drivers/usb/musb/cppi_dma.c tx_ch->head = bd; bd 21 drivers/video/backlight/aat2870_bl.c struct backlight_device *bd; bd 31 drivers/video/backlight/aat2870_bl.c struct backlight_device *bd = aat2870_bl->bd; bd 35 drivers/video/backlight/aat2870_bl.c val /= bd->props.max_brightness; bd 57 drivers/video/backlight/aat2870_bl.c static int aat2870_bl_update_status(struct backlight_device *bd) bd 59 drivers/video/backlight/aat2870_bl.c struct aat2870_bl_driver_data *aat2870_bl = bl_get_data(bd); bd 62 drivers/video/backlight/aat2870_bl.c int brightness = bd->props.brightness; bd 65 drivers/video/backlight/aat2870_bl.c if ((brightness < 0) || (bd->props.max_brightness < brightness)) { bd 66 drivers/video/backlight/aat2870_bl.c dev_err(&bd->dev, "invalid brightness, %d\n", brightness); bd 70 drivers/video/backlight/aat2870_bl.c dev_dbg(&bd->dev, "brightness=%d, power=%d, state=%d\n", bd 71 drivers/video/backlight/aat2870_bl.c bd->props.brightness, bd->props.power, bd->props.state); bd 73 drivers/video/backlight/aat2870_bl.c if ((bd->props.power != FB_BLANK_UNBLANK) || bd 74 drivers/video/backlight/aat2870_bl.c (bd->props.state & BL_CORE_FBBLANK) || bd 75 drivers/video/backlight/aat2870_bl.c (bd->props.state & BL_CORE_SUSPENDED)) bd 98 drivers/video/backlight/aat2870_bl.c static int aat2870_bl_check_fb(struct backlight_device *bd, struct fb_info *fi) bd 113 drivers/video/backlight/aat2870_bl.c struct backlight_device *bd; bd 140 drivers/video/backlight/aat2870_bl.c bd = devm_backlight_device_register(&pdev->dev, "aat2870-backlight", bd 143 drivers/video/backlight/aat2870_bl.c if (IS_ERR(bd)) { bd 146 drivers/video/backlight/aat2870_bl.c ret = PTR_ERR(bd); bd 153 drivers/video/backlight/aat2870_bl.c aat2870_bl->bd = bd; bd 166 drivers/video/backlight/aat2870_bl.c bd->props.max_brightness = pdata->max_brightness; bd 168 drivers/video/backlight/aat2870_bl.c bd->props.max_brightness = 255; bd 171 drivers/video/backlight/aat2870_bl.c bd->props.power = FB_BLANK_UNBLANK; bd 172 drivers/video/backlight/aat2870_bl.c bd->props.brightness = bd->props.max_brightness; bd 174 drivers/video/backlight/aat2870_bl.c ret = aat2870_bl_update_status(bd); bd 189 drivers/video/backlight/aat2870_bl.c struct backlight_device *bd = aat2870_bl->bd; bd 191 drivers/video/backlight/aat2870_bl.c bd->props.power = FB_BLANK_POWERDOWN; bd 192 drivers/video/backlight/aat2870_bl.c bd->props.brightness = 0; bd 193 drivers/video/backlight/aat2870_bl.c backlight_update_status(bd); bd 38 drivers/video/backlight/ams369fg06.c struct backlight_device *bd; bd 311 drivers/video/backlight/ams369fg06.c struct backlight_device *bd; bd 314 drivers/video/backlight/ams369fg06.c bd = lcd->bd; bd 342 drivers/video/backlight/ams369fg06.c ret = ams369fg06_gamma_ctl(lcd, bd->props.brightness); bd 409 drivers/video/backlight/ams369fg06.c static int ams369fg06_set_brightness(struct backlight_device *bd) bd 412 drivers/video/backlight/ams369fg06.c int brightness = bd->props.brightness; bd 413 drivers/video/backlight/ams369fg06.c struct ams369fg06 *lcd = bl_get_data(bd); bd 416 drivers/video/backlight/ams369fg06.c brightness > bd->props.max_brightness) { bd 417 drivers/video/backlight/ams369fg06.c dev_err(&bd->dev, "lcd brightness should be %d to %d.\n", bd 422 drivers/video/backlight/ams369fg06.c ret = ams369fg06_gamma_ctl(lcd, bd->props.brightness); bd 424 drivers/video/backlight/ams369fg06.c dev_err(&bd->dev, "lcd brightness setting failed.\n"); bd 445 drivers/video/backlight/ams369fg06.c struct backlight_device *bd = NULL; bd 481 drivers/video/backlight/ams369fg06.c bd = devm_backlight_device_register(&spi->dev, "ams369fg06-bl", bd 484 drivers/video/backlight/ams369fg06.c if (IS_ERR(bd)) bd 485 drivers/video/backlight/ams369fg06.c return PTR_ERR(bd); bd 487 drivers/video/backlight/ams369fg06.c bd->props.brightness = DEFAULT_BRIGHTNESS; bd 488 drivers/video/backlight/ams369fg06.c lcd->bd = bd; bd 56 drivers/video/backlight/apple_bl.c static int intel_chipset_send_intensity(struct backlight_device *bd) bd 58 drivers/video/backlight/apple_bl.c int intensity = bd->props.brightness; bd 67 drivers/video/backlight/apple_bl.c static int intel_chipset_get_intensity(struct backlight_device *bd) bd 101 drivers/video/backlight/apple_bl.c static int nvidia_chipset_send_intensity(struct backlight_device *bd) bd 103 drivers/video/backlight/apple_bl.c int intensity = bd->props.brightness; bd 112 drivers/video/backlight/apple_bl.c static int nvidia_chipset_get_intensity(struct backlight_device *bd) bd 50 drivers/video/backlight/backlight.c struct backlight_device *bd; bd 59 drivers/video/backlight/backlight.c bd = container_of(self, struct backlight_device, fb_notif); bd 60 drivers/video/backlight/backlight.c mutex_lock(&bd->ops_lock); bd 61 drivers/video/backlight/backlight.c if (bd->ops) bd 62 drivers/video/backlight/backlight.c if (!bd->ops->check_fb || bd 63 drivers/video/backlight/backlight.c bd->ops->check_fb(bd, evdata->info)) { bd 66 drivers/video/backlight/backlight.c !bd->fb_bl_on[node]) { bd 67 drivers/video/backlight/backlight.c bd->fb_bl_on[node] = true; bd 68 drivers/video/backlight/backlight.c if (!bd->use_count++) { bd 69 drivers/video/backlight/backlight.c bd->props.state &= ~BL_CORE_FBBLANK; bd 70 drivers/video/backlight/backlight.c bd->props.fb_blank = FB_BLANK_UNBLANK; bd 71 drivers/video/backlight/backlight.c backlight_update_status(bd); bd 74 drivers/video/backlight/backlight.c bd->fb_bl_on[node]) { bd 75 drivers/video/backlight/backlight.c bd->fb_bl_on[node] = false; bd 76 drivers/video/backlight/backlight.c if (!(--bd->use_count)) { bd 77 drivers/video/backlight/backlight.c bd->props.state |= BL_CORE_FBBLANK; bd 78 drivers/video/backlight/backlight.c bd->props.fb_blank = fb_blank; bd 79 drivers/video/backlight/backlight.c backlight_update_status(bd); bd 83 drivers/video/backlight/backlight.c mutex_unlock(&bd->ops_lock); bd 87 drivers/video/backlight/backlight.c static int backlight_register_fb(struct backlight_device *bd) bd 89 drivers/video/backlight/backlight.c memset(&bd->fb_notif, 0, sizeof(bd->fb_notif)); bd 90 drivers/video/backlight/backlight.c bd->fb_notif.notifier_call = fb_notifier_callback; bd 92 drivers/video/backlight/backlight.c return fb_register_client(&bd->fb_notif); bd 95 drivers/video/backlight/backlight.c static void backlight_unregister_fb(struct backlight_device *bd) bd 97 drivers/video/backlight/backlight.c fb_unregister_client(&bd->fb_notif); bd 100 drivers/video/backlight/backlight.c static inline int backlight_register_fb(struct backlight_device *bd) bd 105 drivers/video/backlight/backlight.c static inline void backlight_unregister_fb(struct backlight_device *bd) bd 110 drivers/video/backlight/backlight.c static void backlight_generate_event(struct backlight_device *bd, bd 127 drivers/video/backlight/backlight.c kobject_uevent_env(&bd->dev.kobj, KOBJ_CHANGE, envp); bd 128 drivers/video/backlight/backlight.c sysfs_notify(&bd->dev.kobj, NULL, "actual_brightness"); bd 134 drivers/video/backlight/backlight.c struct backlight_device *bd = to_backlight_device(dev); bd 136 drivers/video/backlight/backlight.c return sprintf(buf, "%d\n", bd->props.power); bd 143 drivers/video/backlight/backlight.c struct backlight_device *bd = to_backlight_device(dev); bd 151 drivers/video/backlight/backlight.c mutex_lock(&bd->ops_lock); bd 152 drivers/video/backlight/backlight.c if (bd->ops) { bd 154 drivers/video/backlight/backlight.c if (bd->props.power != power) { bd 155 drivers/video/backlight/backlight.c old_power = bd->props.power; bd 156 drivers/video/backlight/backlight.c bd->props.power = power; bd 157 drivers/video/backlight/backlight.c rc = backlight_update_status(bd); bd 159 drivers/video/backlight/backlight.c bd->props.power = old_power; bd 166 drivers/video/backlight/backlight.c mutex_unlock(&bd->ops_lock); bd 175 drivers/video/backlight/backlight.c struct backlight_device *bd = to_backlight_device(dev); bd 177 drivers/video/backlight/backlight.c return sprintf(buf, "%d\n", bd->props.brightness); bd 180 drivers/video/backlight/backlight.c int backlight_device_set_brightness(struct backlight_device *bd, bd 185 drivers/video/backlight/backlight.c mutex_lock(&bd->ops_lock); bd 186 drivers/video/backlight/backlight.c if (bd->ops) { bd 187 drivers/video/backlight/backlight.c if (brightness > bd->props.max_brightness) bd 191 drivers/video/backlight/backlight.c bd->props.brightness = brightness; bd 192 drivers/video/backlight/backlight.c rc = backlight_update_status(bd); bd 195 drivers/video/backlight/backlight.c mutex_unlock(&bd->ops_lock); bd 197 drivers/video/backlight/backlight.c backlight_generate_event(bd, BACKLIGHT_UPDATE_SYSFS); bd 207 drivers/video/backlight/backlight.c struct backlight_device *bd = to_backlight_device(dev); bd 214 drivers/video/backlight/backlight.c rc = backlight_device_set_brightness(bd, brightness); bd 223 drivers/video/backlight/backlight.c struct backlight_device *bd = to_backlight_device(dev); bd 225 drivers/video/backlight/backlight.c return sprintf(buf, "%s\n", backlight_types[bd->props.type]); bd 232 drivers/video/backlight/backlight.c struct backlight_device *bd = to_backlight_device(dev); bd 234 drivers/video/backlight/backlight.c return sprintf(buf, "%d\n", bd->props.max_brightness); bd 242 drivers/video/backlight/backlight.c struct backlight_device *bd = to_backlight_device(dev); bd 244 drivers/video/backlight/backlight.c mutex_lock(&bd->ops_lock); bd 245 drivers/video/backlight/backlight.c if (bd->ops && bd->ops->get_brightness) bd 246 drivers/video/backlight/backlight.c rc = sprintf(buf, "%d\n", bd->ops->get_brightness(bd)); bd 248 drivers/video/backlight/backlight.c rc = sprintf(buf, "%d\n", bd->props.brightness); bd 249 drivers/video/backlight/backlight.c mutex_unlock(&bd->ops_lock); bd 258 drivers/video/backlight/backlight.c struct backlight_device *bd = to_backlight_device(dev); bd 260 drivers/video/backlight/backlight.c if (WARN_ON(bd->props.scale > BACKLIGHT_SCALE_NON_LINEAR)) bd 263 drivers/video/backlight/backlight.c return sprintf(buf, "%s\n", backlight_scale_types[bd->props.scale]); bd 272 drivers/video/backlight/backlight.c struct backlight_device *bd = to_backlight_device(dev); bd 274 drivers/video/backlight/backlight.c mutex_lock(&bd->ops_lock); bd 275 drivers/video/backlight/backlight.c if (bd->ops && bd->ops->options & BL_CORE_SUSPENDRESUME) { bd 276 drivers/video/backlight/backlight.c bd->props.state |= BL_CORE_SUSPENDED; bd 277 drivers/video/backlight/backlight.c backlight_update_status(bd); bd 279 drivers/video/backlight/backlight.c mutex_unlock(&bd->ops_lock); bd 286 drivers/video/backlight/backlight.c struct backlight_device *bd = to_backlight_device(dev); bd 288 drivers/video/backlight/backlight.c mutex_lock(&bd->ops_lock); bd 289 drivers/video/backlight/backlight.c if (bd->ops && bd->ops->options & BL_CORE_SUSPENDRESUME) { bd 290 drivers/video/backlight/backlight.c bd->props.state &= ~BL_CORE_SUSPENDED; bd 291 drivers/video/backlight/backlight.c backlight_update_status(bd); bd 293 drivers/video/backlight/backlight.c mutex_unlock(&bd->ops_lock); bd 304 drivers/video/backlight/backlight.c struct backlight_device *bd = to_backlight_device(dev); bd 305 drivers/video/backlight/backlight.c kfree(bd); bd 327 drivers/video/backlight/backlight.c void backlight_force_update(struct backlight_device *bd, bd 330 drivers/video/backlight/backlight.c mutex_lock(&bd->ops_lock); bd 331 drivers/video/backlight/backlight.c if (bd->ops && bd->ops->get_brightness) bd 332 drivers/video/backlight/backlight.c bd->props.brightness = bd->ops->get_brightness(bd); bd 333 drivers/video/backlight/backlight.c mutex_unlock(&bd->ops_lock); bd 334 drivers/video/backlight/backlight.c backlight_generate_event(bd, reason); bd 420 drivers/video/backlight/backlight.c struct backlight_device *bd; bd 423 drivers/video/backlight/backlight.c list_for_each_entry(bd, &backlight_dev_list, entry) { bd 424 drivers/video/backlight/backlight.c if (bd->props.type == type) { bd 431 drivers/video/backlight/backlight.c return found ? bd : NULL; bd 441 drivers/video/backlight/backlight.c void backlight_device_unregister(struct backlight_device *bd) bd 443 drivers/video/backlight/backlight.c if (!bd) bd 447 drivers/video/backlight/backlight.c list_del(&bd->entry); bd 452 drivers/video/backlight/backlight.c if (pmac_backlight == bd) bd 458 drivers/video/backlight/backlight.c BACKLIGHT_UNREGISTERED, bd); bd 460 drivers/video/backlight/backlight.c mutex_lock(&bd->ops_lock); bd 461 drivers/video/backlight/backlight.c bd->ops = NULL; bd 462 drivers/video/backlight/backlight.c mutex_unlock(&bd->ops_lock); bd 464 drivers/video/backlight/backlight.c backlight_unregister_fb(bd); bd 465 drivers/video/backlight/backlight.c device_unregister(&bd->dev); bd 564 drivers/video/backlight/backlight.c struct backlight_device *bd) bd 569 drivers/video/backlight/backlight.c devm_backlight_device_match, bd); bd 620 drivers/video/backlight/backlight.c struct backlight_device *bd = NULL; bd 629 drivers/video/backlight/backlight.c bd = of_find_backlight_by_node(np); bd 631 drivers/video/backlight/backlight.c if (!bd) bd 637 drivers/video/backlight/backlight.c if (!bd->props.brightness) bd 638 drivers/video/backlight/backlight.c bd->props.brightness = bd->props.max_brightness; bd 642 drivers/video/backlight/backlight.c return bd; bd 661 drivers/video/backlight/backlight.c struct backlight_device *bd; bd 664 drivers/video/backlight/backlight.c bd = of_find_backlight(dev); bd 665 drivers/video/backlight/backlight.c if (IS_ERR_OR_NULL(bd)) bd 666 drivers/video/backlight/backlight.c return bd; bd 667 drivers/video/backlight/backlight.c ret = devm_add_action(dev, devm_backlight_release, bd); bd 669 drivers/video/backlight/backlight.c backlight_put(bd); bd 672 drivers/video/backlight/backlight.c return bd; bd 76 drivers/video/backlight/bd6107.c static int bd6107_write(struct bd6107 *bd, u8 reg, u8 data) bd 78 drivers/video/backlight/bd6107.c return i2c_smbus_write_byte_data(bd->client, reg, data); bd 83 drivers/video/backlight/bd6107.c struct bd6107 *bd = bl_get_data(backlight); bd 92 drivers/video/backlight/bd6107.c bd6107_write(bd, BD6107_PORTSEL, BD6107_PORTSEL_LEDM(2) | bd 94 drivers/video/backlight/bd6107.c bd6107_write(bd, BD6107_MAINCNT1, brightness); bd 95 drivers/video/backlight/bd6107.c bd6107_write(bd, BD6107_LEDCNT1, BD6107_LEDCNT1_LEDONOFF1); bd 97 drivers/video/backlight/bd6107.c gpio_set_value(bd->pdata->reset, 0); bd 99 drivers/video/backlight/bd6107.c gpio_set_value(bd->pdata->reset, 1); bd 108 drivers/video/backlight/bd6107.c struct bd6107 *bd = bl_get_data(backlight); bd 110 drivers/video/backlight/bd6107.c return bd->pdata->fbdev == NULL || bd->pdata->fbdev == info->dev; bd 125 drivers/video/backlight/bd6107.c struct bd6107 *bd; bd 140 drivers/video/backlight/bd6107.c bd = devm_kzalloc(&client->dev, sizeof(*bd), GFP_KERNEL); bd 141 drivers/video/backlight/bd6107.c if (!bd) bd 144 drivers/video/backlight/bd6107.c bd->client = client; bd 145 drivers/video/backlight/bd6107.c bd->pdata = pdata; bd 162 drivers/video/backlight/bd6107.c &bd->client->dev, bd, bd 389 drivers/video/backlight/corgi_lcd.c static int corgi_bl_get_intensity(struct backlight_device *bd) bd 391 drivers/video/backlight/corgi_lcd.c struct corgi_lcd *lcd = bl_get_data(bd); bd 421 drivers/video/backlight/corgi_lcd.c static int corgi_bl_update_status(struct backlight_device *bd) bd 423 drivers/video/backlight/corgi_lcd.c struct corgi_lcd *lcd = bl_get_data(bd); bd 424 drivers/video/backlight/corgi_lcd.c int intensity = bd->props.brightness; bd 426 drivers/video/backlight/corgi_lcd.c if (bd->props.power != FB_BLANK_UNBLANK) bd 429 drivers/video/backlight/corgi_lcd.c if (bd->props.fb_blank != FB_BLANK_UNBLANK) bd 60 drivers/video/backlight/cr_bllcd.c static int cr_backlight_set_intensity(struct backlight_device *bd) bd 62 drivers/video/backlight/cr_bllcd.c int intensity = bd->props.brightness; bd 66 drivers/video/backlight/cr_bllcd.c if (bd->props.power == FB_BLANK_UNBLANK) bd 68 drivers/video/backlight/cr_bllcd.c if (bd->props.fb_blank == FB_BLANK_UNBLANK) bd 70 drivers/video/backlight/cr_bllcd.c if (bd->props.power == FB_BLANK_POWERDOWN) bd 72 drivers/video/backlight/cr_bllcd.c if (bd->props.fb_blank == FB_BLANK_POWERDOWN) bd 86 drivers/video/backlight/cr_bllcd.c static int cr_backlight_get_intensity(struct backlight_device *bd) bd 20 drivers/video/backlight/generic_bl.c static int genericbl_send_intensity(struct backlight_device *bd) bd 22 drivers/video/backlight/generic_bl.c int intensity = bd->props.brightness; bd 24 drivers/video/backlight/generic_bl.c if (bd->props.power != FB_BLANK_UNBLANK) bd 26 drivers/video/backlight/generic_bl.c if (bd->props.state & BL_CORE_FBBLANK) bd 28 drivers/video/backlight/generic_bl.c if (bd->props.state & BL_CORE_SUSPENDED) bd 41 drivers/video/backlight/generic_bl.c static int genericbl_get_intensity(struct backlight_device *bd) bd 57 drivers/video/backlight/generic_bl.c struct backlight_device *bd; bd 69 drivers/video/backlight/generic_bl.c bd = devm_backlight_device_register(&pdev->dev, name, &pdev->dev, bd 71 drivers/video/backlight/generic_bl.c if (IS_ERR(bd)) bd 72 drivers/video/backlight/generic_bl.c return PTR_ERR(bd); bd 74 drivers/video/backlight/generic_bl.c platform_set_drvdata(pdev, bd); bd 76 drivers/video/backlight/generic_bl.c bd->props.power = FB_BLANK_UNBLANK; bd 77 drivers/video/backlight/generic_bl.c bd->props.brightness = machinfo->default_intensity; bd 78 drivers/video/backlight/generic_bl.c backlight_update_status(bd); bd 80 drivers/video/backlight/generic_bl.c generic_backlight_device = bd; bd 88 drivers/video/backlight/generic_bl.c struct backlight_device *bd = platform_get_drvdata(pdev); bd 90 drivers/video/backlight/generic_bl.c bd->props.power = 0; bd 91 drivers/video/backlight/generic_bl.c bd->props.brightness = 0; bd 92 drivers/video/backlight/generic_bl.c backlight_update_status(bd); bd 32 drivers/video/backlight/hp680_bl.c static void hp680bl_send_intensity(struct backlight_device *bd) bd 36 drivers/video/backlight/hp680_bl.c int intensity = bd->props.brightness; bd 38 drivers/video/backlight/hp680_bl.c if (bd->props.power != FB_BLANK_UNBLANK) bd 40 drivers/video/backlight/hp680_bl.c if (bd->props.fb_blank != FB_BLANK_UNBLANK) bd 70 drivers/video/backlight/hp680_bl.c struct backlight_device *bd = dev_get_drvdata(dev); bd 73 drivers/video/backlight/hp680_bl.c hp680bl_send_intensity(bd); bd 79 drivers/video/backlight/hp680_bl.c struct backlight_device *bd = dev_get_drvdata(dev); bd 82 drivers/video/backlight/hp680_bl.c hp680bl_send_intensity(bd); bd 89 drivers/video/backlight/hp680_bl.c static int hp680bl_set_intensity(struct backlight_device *bd) bd 91 drivers/video/backlight/hp680_bl.c hp680bl_send_intensity(bd); bd 95 drivers/video/backlight/hp680_bl.c static int hp680bl_get_intensity(struct backlight_device *bd) bd 108 drivers/video/backlight/hp680_bl.c struct backlight_device *bd; bd 113 drivers/video/backlight/hp680_bl.c bd = devm_backlight_device_register(&pdev->dev, "hp680-bl", &pdev->dev, bd 115 drivers/video/backlight/hp680_bl.c if (IS_ERR(bd)) bd 116 drivers/video/backlight/hp680_bl.c return PTR_ERR(bd); bd 118 drivers/video/backlight/hp680_bl.c platform_set_drvdata(pdev, bd); bd 120 drivers/video/backlight/hp680_bl.c bd->props.brightness = HP680_DEFAULT_INTENSITY; bd 121 drivers/video/backlight/hp680_bl.c hp680bl_send_intensity(bd); bd 128 drivers/video/backlight/hp680_bl.c struct backlight_device *bd = platform_get_drvdata(pdev); bd 130 drivers/video/backlight/hp680_bl.c bd->props.brightness = 0; bd 131 drivers/video/backlight/hp680_bl.c bd->props.power = 0; bd 132 drivers/video/backlight/hp680_bl.c hp680bl_send_intensity(bd); bd 16 drivers/video/backlight/ipaq_micro_bl.c static int micro_bl_update_status(struct backlight_device *bd) bd 18 drivers/video/backlight/ipaq_micro_bl.c struct ipaq_micro *micro = dev_get_drvdata(&bd->dev); bd 19 drivers/video/backlight/ipaq_micro_bl.c int intensity = bd->props.brightness; bd 25 drivers/video/backlight/ipaq_micro_bl.c if (bd->props.power != FB_BLANK_UNBLANK) bd 27 drivers/video/backlight/ipaq_micro_bl.c if (bd->props.state & (BL_CORE_FBBLANK | BL_CORE_SUSPENDED)) bd 56 drivers/video/backlight/ipaq_micro_bl.c struct backlight_device *bd; bd 59 drivers/video/backlight/ipaq_micro_bl.c bd = devm_backlight_device_register(&pdev->dev, "ipaq-micro-backlight", bd 62 drivers/video/backlight/ipaq_micro_bl.c if (IS_ERR(bd)) bd 63 drivers/video/backlight/ipaq_micro_bl.c return PTR_ERR(bd); bd 65 drivers/video/backlight/ipaq_micro_bl.c platform_set_drvdata(pdev, bd); bd 66 drivers/video/backlight/ipaq_micro_bl.c backlight_update_status(bd); bd 23 drivers/video/backlight/jornada720_bl.c static int jornada_bl_get_brightness(struct backlight_device *bd) bd 37 drivers/video/backlight/jornada720_bl.c dev_err(&bd->dev, "get brightness timeout\n"); bd 50 drivers/video/backlight/jornada720_bl.c static int jornada_bl_update_status(struct backlight_device *bd) bd 57 drivers/video/backlight/jornada720_bl.c if ((bd->props.power != FB_BLANK_UNBLANK) || (bd->props.fb_blank != FB_BLANK_UNBLANK)) { bd 60 drivers/video/backlight/jornada720_bl.c dev_info(&bd->dev, "brightness off timeout\n"); bd 71 drivers/video/backlight/jornada720_bl.c dev_info(&bd->dev, "failed to set brightness\n"); bd 83 drivers/video/backlight/jornada720_bl.c if (jornada_ssp_byte(BL_MAX_BRIGHT - bd->props.brightness) bd 85 drivers/video/backlight/jornada720_bl.c dev_err(&bd->dev, "set brightness failed\n"); bd 109 drivers/video/backlight/jornada720_bl.c struct backlight_device *bd; bd 115 drivers/video/backlight/jornada720_bl.c bd = devm_backlight_device_register(&pdev->dev, S1D_DEVICENAME, bd 118 drivers/video/backlight/jornada720_bl.c if (IS_ERR(bd)) { bd 119 drivers/video/backlight/jornada720_bl.c ret = PTR_ERR(bd); bd 124 drivers/video/backlight/jornada720_bl.c bd->props.power = FB_BLANK_UNBLANK; bd 125 drivers/video/backlight/jornada720_bl.c bd->props.brightness = BL_DEF_BRIGHT; bd 131 drivers/video/backlight/jornada720_bl.c jornada_bl_update_status(bd); bd 133 drivers/video/backlight/jornada720_bl.c platform_set_drvdata(pdev, bd); bd 88 drivers/video/backlight/kb3886_bl.c static int kb3886bl_send_intensity(struct backlight_device *bd) bd 90 drivers/video/backlight/kb3886_bl.c int intensity = bd->props.brightness; bd 92 drivers/video/backlight/kb3886_bl.c if (bd->props.power != FB_BLANK_UNBLANK) bd 94 drivers/video/backlight/kb3886_bl.c if (bd->props.fb_blank != FB_BLANK_UNBLANK) bd 108 drivers/video/backlight/kb3886_bl.c struct backlight_device *bd = dev_get_drvdata(dev); bd 111 drivers/video/backlight/kb3886_bl.c backlight_update_status(bd); bd 117 drivers/video/backlight/kb3886_bl.c struct backlight_device *bd = dev_get_drvdata(dev); bd 120 drivers/video/backlight/kb3886_bl.c backlight_update_status(bd); bd 127 drivers/video/backlight/kb3886_bl.c static int kb3886bl_get_intensity(struct backlight_device *bd) bd 29 drivers/video/backlight/lm3533_bl.c struct backlight_device *bd; bd 39 drivers/video/backlight/lm3533_bl.c static int lm3533_bl_update_status(struct backlight_device *bd) bd 41 drivers/video/backlight/lm3533_bl.c struct lm3533_bl *bl = bl_get_data(bd); bd 42 drivers/video/backlight/lm3533_bl.c int brightness = bd->props.brightness; bd 44 drivers/video/backlight/lm3533_bl.c if (bd->props.power != FB_BLANK_UNBLANK) bd 46 drivers/video/backlight/lm3533_bl.c if (bd->props.fb_blank != FB_BLANK_UNBLANK) bd 52 drivers/video/backlight/lm3533_bl.c static int lm3533_bl_get_brightness(struct backlight_device *bd) bd 54 drivers/video/backlight/lm3533_bl.c struct lm3533_bl *bl = bl_get_data(bd); bd 273 drivers/video/backlight/lm3533_bl.c struct backlight_device *bd; bd 309 drivers/video/backlight/lm3533_bl.c bd = devm_backlight_device_register(&pdev->dev, pdata->name, bd 312 drivers/video/backlight/lm3533_bl.c if (IS_ERR(bd)) { bd 314 drivers/video/backlight/lm3533_bl.c return PTR_ERR(bd); bd 317 drivers/video/backlight/lm3533_bl.c bl->bd = bd; bd 318 drivers/video/backlight/lm3533_bl.c bl->cb.dev = &bl->bd->dev; bd 322 drivers/video/backlight/lm3533_bl.c ret = sysfs_create_group(&bd->dev.kobj, &lm3533_bl_attribute_group); bd 328 drivers/video/backlight/lm3533_bl.c backlight_update_status(bd); bd 341 drivers/video/backlight/lm3533_bl.c sysfs_remove_group(&bd->dev.kobj, &lm3533_bl_attribute_group); bd 349 drivers/video/backlight/lm3533_bl.c struct backlight_device *bd = bl->bd; bd 351 drivers/video/backlight/lm3533_bl.c dev_dbg(&bd->dev, "%s\n", __func__); bd 353 drivers/video/backlight/lm3533_bl.c bd->props.power = FB_BLANK_POWERDOWN; bd 354 drivers/video/backlight/lm3533_bl.c bd->props.brightness = 0; bd 357 drivers/video/backlight/lm3533_bl.c sysfs_remove_group(&bd->dev.kobj, &lm3533_bl_attribute_group); bd 112 drivers/video/backlight/locomolcd.c static int locomolcd_set_intensity(struct backlight_device *bd) bd 114 drivers/video/backlight/locomolcd.c int intensity = bd->props.brightness; bd 116 drivers/video/backlight/locomolcd.c if (bd->props.power != FB_BLANK_UNBLANK) bd 118 drivers/video/backlight/locomolcd.c if (bd->props.fb_blank != FB_BLANK_UNBLANK) bd 150 drivers/video/backlight/locomolcd.c static int locomolcd_get_intensity(struct backlight_device *bd) bd 18 drivers/video/backlight/rave-sp-backlight.c static int rave_sp_backlight_update_status(struct backlight_device *bd) bd 20 drivers/video/backlight/rave-sp-backlight.c const struct backlight_properties *p = &bd->props; bd 23 drivers/video/backlight/rave-sp-backlight.c struct rave_sp *sp = dev_get_drvdata(&bd->dev); bd 49 drivers/video/backlight/rave-sp-backlight.c struct backlight_device *bd; bd 51 drivers/video/backlight/rave-sp-backlight.c bd = devm_backlight_device_register(dev, pdev->name, dev, bd 55 drivers/video/backlight/rave-sp-backlight.c if (IS_ERR(bd)) bd 56 drivers/video/backlight/rave-sp-backlight.c return PTR_ERR(bd); bd 64 drivers/video/backlight/rave-sp-backlight.c backlight_update_status(bd); bd 47 drivers/video/backlight/sky81452-backlight.c static int sky81452_bl_update_status(struct backlight_device *bd) bd 50 drivers/video/backlight/sky81452-backlight.c dev_get_platdata(bd->dev.parent); bd 51 drivers/video/backlight/sky81452-backlight.c const unsigned int brightness = (unsigned int)bd->props.brightness; bd 52 drivers/video/backlight/sky81452-backlight.c struct regmap *regmap = bl_get_data(bd); bd 256 drivers/video/backlight/sky81452-backlight.c struct backlight_device *bd; bd 285 drivers/video/backlight/sky81452-backlight.c bd = devm_backlight_device_register(dev, name, dev, regmap, bd 287 drivers/video/backlight/sky81452-backlight.c if (IS_ERR(bd)) { bd 288 drivers/video/backlight/sky81452-backlight.c dev_err(dev, "failed to register. err=%ld\n", PTR_ERR(bd)); bd 289 drivers/video/backlight/sky81452-backlight.c return PTR_ERR(bd); bd 292 drivers/video/backlight/sky81452-backlight.c platform_set_drvdata(pdev, bd); bd 294 drivers/video/backlight/sky81452-backlight.c ret = sysfs_create_group(&bd->dev.kobj, &sky81452_bl_attr_group); bd 307 drivers/video/backlight/sky81452-backlight.c struct backlight_device *bd = platform_get_drvdata(pdev); bd 309 drivers/video/backlight/sky81452-backlight.c sysfs_remove_group(&bd->dev.kobj, &sky81452_bl_attr_group); bd 311 drivers/video/backlight/sky81452-backlight.c bd->props.power = FB_BLANK_UNBLANK; bd 312 drivers/video/backlight/sky81452-backlight.c bd->props.brightness = 0; bd 313 drivers/video/backlight/sky81452-backlight.c backlight_update_status(bd); bd 1768 drivers/video/fbdev/aty/aty128fb.c static int aty128_bl_update_status(struct backlight_device *bd) bd 1770 drivers/video/fbdev/aty/aty128fb.c struct aty128fb_par *par = bl_get_data(bd); bd 1774 drivers/video/fbdev/aty/aty128fb.c if (bd->props.power != FB_BLANK_UNBLANK || bd 1775 drivers/video/fbdev/aty/aty128fb.c bd->props.fb_blank != FB_BLANK_UNBLANK || bd 1779 drivers/video/fbdev/aty/aty128fb.c level = bd->props.brightness; bd 1839 drivers/video/fbdev/aty/aty128fb.c struct backlight_device *bd; bd 1856 drivers/video/fbdev/aty/aty128fb.c bd = backlight_device_register(name, info->dev, par, &aty128_bl_data, bd 1858 drivers/video/fbdev/aty/aty128fb.c if (IS_ERR(bd)) { bd 1864 drivers/video/fbdev/aty/aty128fb.c info->bl_dev = bd; bd 1869 drivers/video/fbdev/aty/aty128fb.c bd->props.brightness = bd->props.max_brightness; bd 1870 drivers/video/fbdev/aty/aty128fb.c bd->props.power = FB_BLANK_UNBLANK; bd 1871 drivers/video/fbdev/aty/aty128fb.c backlight_update_status(bd); bd 1881 drivers/video/fbdev/aty/aty128fb.c static void aty128_bl_exit(struct backlight_device *bd) bd 1883 drivers/video/fbdev/aty/aty128fb.c backlight_device_unregister(bd); bd 2178 drivers/video/fbdev/aty/atyfb_base.c static int aty_bl_update_status(struct backlight_device *bd) bd 2180 drivers/video/fbdev/aty/atyfb_base.c struct atyfb_par *par = bl_get_data(bd); bd 2184 drivers/video/fbdev/aty/atyfb_base.c if (bd->props.power != FB_BLANK_UNBLANK || bd 2185 drivers/video/fbdev/aty/atyfb_base.c bd->props.fb_blank != FB_BLANK_UNBLANK) bd 2188 drivers/video/fbdev/aty/atyfb_base.c level = bd->props.brightness; bd 2211 drivers/video/fbdev/aty/atyfb_base.c struct backlight_device *bd; bd 2224 drivers/video/fbdev/aty/atyfb_base.c bd = backlight_device_register(name, info->dev, par, &aty_bl_data, bd 2226 drivers/video/fbdev/aty/atyfb_base.c if (IS_ERR(bd)) { bd 2232 drivers/video/fbdev/aty/atyfb_base.c info->bl_dev = bd; bd 2237 drivers/video/fbdev/aty/atyfb_base.c bd->props.brightness = bd->props.max_brightness; bd 2238 drivers/video/fbdev/aty/atyfb_base.c bd->props.power = FB_BLANK_UNBLANK; bd 2239 drivers/video/fbdev/aty/atyfb_base.c backlight_update_status(bd); bd 2250 drivers/video/fbdev/aty/atyfb_base.c static void aty_bl_exit(struct backlight_device *bd) bd 2252 drivers/video/fbdev/aty/atyfb_base.c backlight_device_unregister(bd); bd 46 drivers/video/fbdev/aty/radeon_backlight.c static int radeon_bl_update_status(struct backlight_device *bd) bd 48 drivers/video/fbdev/aty/radeon_backlight.c struct radeon_bl_privdata *pdata = bl_get_data(bd); bd 60 drivers/video/fbdev/aty/radeon_backlight.c if (bd->props.power != FB_BLANK_UNBLANK || bd 61 drivers/video/fbdev/aty/radeon_backlight.c bd->props.fb_blank != FB_BLANK_UNBLANK) bd 64 drivers/video/fbdev/aty/radeon_backlight.c level = bd->props.brightness; bd 130 drivers/video/fbdev/aty/radeon_backlight.c struct backlight_device *bd; bd 154 drivers/video/fbdev/aty/radeon_backlight.c bd = backlight_device_register(name, rinfo->info->dev, pdata, bd 156 drivers/video/fbdev/aty/radeon_backlight.c if (IS_ERR(bd)) { bd 180 drivers/video/fbdev/aty/radeon_backlight.c rinfo->info->bl_dev = bd; bd 185 drivers/video/fbdev/aty/radeon_backlight.c bd->props.brightness = bd->props.max_brightness; bd 186 drivers/video/fbdev/aty/radeon_backlight.c bd->props.power = FB_BLANK_UNBLANK; bd 187 drivers/video/fbdev/aty/radeon_backlight.c backlight_update_status(bd); bd 200 drivers/video/fbdev/aty/radeon_backlight.c struct backlight_device *bd = rinfo->info->bl_dev; bd 202 drivers/video/fbdev/aty/radeon_backlight.c if (bd) { bd 205 drivers/video/fbdev/aty/radeon_backlight.c pdata = bl_get_data(bd); bd 206 drivers/video/fbdev/aty/radeon_backlight.c backlight_device_unregister(bd); bd 391 drivers/video/fbdev/matrox/matroxfb_misc.c static void get_pins(unsigned char __iomem* pins, struct matrox_bios* bd) { bd 398 drivers/video/fbdev/matrox/matroxfb_misc.c unsigned char* dst = bd->pins; bd 413 drivers/video/fbdev/matrox/matroxfb_misc.c bd->pins_len = pins_len; bd 416 drivers/video/fbdev/matrox/matroxfb_misc.c unsigned char* dst = bd->pins; bd 423 drivers/video/fbdev/matrox/matroxfb_misc.c bd->pins_len = 0x40; bd 427 drivers/video/fbdev/matrox/matroxfb_misc.c static void get_bios_version(unsigned char __iomem * vbios, struct matrox_bios* bd) { bd 439 drivers/video/fbdev/matrox/matroxfb_misc.c bd->version.vMaj = (h >> 4) & 0xF; bd 440 drivers/video/fbdev/matrox/matroxfb_misc.c bd->version.vMin = h & 0xF; bd 441 drivers/video/fbdev/matrox/matroxfb_misc.c bd->version.vRev = readb(vbios + pcir_offset + 0x13); bd 446 drivers/video/fbdev/matrox/matroxfb_misc.c bd->version.vMaj = (h >> 4) & 0xF; bd 447 drivers/video/fbdev/matrox/matroxfb_misc.c bd->version.vMin = h & 0xF; bd 448 drivers/video/fbdev/matrox/matroxfb_misc.c bd->version.vRev = 0; bd 452 drivers/video/fbdev/matrox/matroxfb_misc.c static void get_bios_output(unsigned char __iomem* vbios, struct matrox_bios* bd) { bd 459 drivers/video/fbdev/matrox/matroxfb_misc.c bd->output.state = b; bd 462 drivers/video/fbdev/matrox/matroxfb_misc.c static void get_bios_tvout(unsigned char __iomem* vbios, struct matrox_bios* bd) { bd 466 drivers/video/fbdev/matrox/matroxfb_misc.c bd->output.tvout = 0; bd 480 drivers/video/fbdev/matrox/matroxfb_misc.c bd->output.tvout = 1; bd 489 drivers/video/fbdev/matrox/matroxfb_misc.c static void parse_bios(unsigned char __iomem* vbios, struct matrox_bios* bd) { bd 495 drivers/video/fbdev/matrox/matroxfb_misc.c bd->bios_valid = 1; bd 496 drivers/video/fbdev/matrox/matroxfb_misc.c get_bios_version(vbios, bd); bd 497 drivers/video/fbdev/matrox/matroxfb_misc.c get_bios_output(vbios, bd); bd 498 drivers/video/fbdev/matrox/matroxfb_misc.c get_bios_tvout(vbios, bd); bd 518 drivers/video/fbdev/matrox/matroxfb_misc.c get_pins(vbios + pins_offset, bd); bd 525 drivers/video/fbdev/matrox/matroxfb_misc.c get_pins(vbios + pins_offset, bd); bd 531 drivers/video/fbdev/matrox/matroxfb_misc.c const struct matrox_bios *bd) bd 535 drivers/video/fbdev/matrox/matroxfb_misc.c switch (bd->pins[22]) { bd 540 drivers/video/fbdev/matrox/matroxfb_misc.c if (get_unaligned_le16(bd->pins + 24)) { bd 541 drivers/video/fbdev/matrox/matroxfb_misc.c maxdac = get_unaligned_le16(bd->pins + 24) * 10; bd 544 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->values.pll.system = get_unaligned_le16(bd->pins + 28) ? bd 545 drivers/video/fbdev/matrox/matroxfb_misc.c get_unaligned_le16(bd->pins + 28) * 10 : 50000; bd 562 drivers/video/fbdev/matrox/matroxfb_misc.c const struct matrox_bios *bd) bd 565 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->limits.system.vcomax = (bd->pins[41] == 0xFF) ? 230000 : ((bd->pins[41] + 100) * 1000); bd 566 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->values.reg.mctlwtst = ((bd->pins[51] & 0x01) ? 0x00000001 : 0) | bd 567 drivers/video/fbdev/matrox/matroxfb_misc.c ((bd->pins[51] & 0x02) ? 0x00000100 : 0) | bd 568 drivers/video/fbdev/matrox/matroxfb_misc.c ((bd->pins[51] & 0x04) ? 0x00010000 : 0) | bd 569 drivers/video/fbdev/matrox/matroxfb_misc.c ((bd->pins[51] & 0x08) ? 0x00020000 : 0); bd 570 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->values.pll.system = (bd->pins[43] == 0xFF) ? 50000 : ((bd->pins[43] + 100) * 1000); bd 586 drivers/video/fbdev/matrox/matroxfb_misc.c const struct matrox_bios *bd) bd 589 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->limits.system.vcomax = (bd->pins[36] == 0xFF) ? 230000 : ((bd->pins[36] + 100) * 1000); bd 590 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->values.reg.mctlwtst = get_unaligned_le32(bd->pins + 48) == 0xFFFFFFFF ? bd 591 drivers/video/fbdev/matrox/matroxfb_misc.c 0x01250A21 : get_unaligned_le32(bd->pins + 48); bd 593 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->values.reg.memrdbk = ((bd->pins[57] << 21) & 0x1E000000) | bd 594 drivers/video/fbdev/matrox/matroxfb_misc.c ((bd->pins[57] << 22) & 0x00C00000) | bd 595 drivers/video/fbdev/matrox/matroxfb_misc.c ((bd->pins[56] << 1) & 0x000001E0) | bd 596 drivers/video/fbdev/matrox/matroxfb_misc.c ( bd->pins[56] & 0x0000000F); bd 597 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->values.reg.opt = (bd->pins[54] & 7) << 10; bd 598 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->values.reg.opt2 = bd->pins[58] << 12; bd 599 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->features.pll.ref_freq = (bd->pins[52] & 0x20) ? 14318 : 27000; bd 616 drivers/video/fbdev/matrox/matroxfb_misc.c const struct matrox_bios *bd) bd 618 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->limits.pixel.vcomax = (bd->pins[ 39] == 0xFF) ? 230000 : bd->pins[ 39] * 4000; bd 619 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->limits.system.vcomax = (bd->pins[ 38] == 0xFF) ? minfo->limits.pixel.vcomax : bd->pins[ 38] * 4000; bd 620 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->values.reg.mctlwtst = get_unaligned_le32(bd->pins + 71); bd 621 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->values.reg.memrdbk = ((bd->pins[87] << 21) & 0x1E000000) | bd 622 drivers/video/fbdev/matrox/matroxfb_misc.c ((bd->pins[87] << 22) & 0x00C00000) | bd 623 drivers/video/fbdev/matrox/matroxfb_misc.c ((bd->pins[86] << 1) & 0x000001E0) | bd 624 drivers/video/fbdev/matrox/matroxfb_misc.c ( bd->pins[86] & 0x0000000F); bd 625 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->values.reg.opt = ((bd->pins[53] << 15) & 0x00400000) | bd 626 drivers/video/fbdev/matrox/matroxfb_misc.c ((bd->pins[53] << 22) & 0x10000000) | bd 627 drivers/video/fbdev/matrox/matroxfb_misc.c ((bd->pins[53] << 7) & 0x00001C00); bd 628 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->values.reg.opt3 = get_unaligned_le32(bd->pins + 67); bd 629 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->values.pll.system = (bd->pins[ 65] == 0xFF) ? 200000 : bd->pins[ 65] * 4000; bd 630 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->features.pll.ref_freq = (bd->pins[ 92] & 0x01) ? 14318 : 27000; bd 648 drivers/video/fbdev/matrox/matroxfb_misc.c const struct matrox_bios *bd) bd 652 drivers/video/fbdev/matrox/matroxfb_misc.c mult = bd->pins[4]?8000:6000; bd 654 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->limits.pixel.vcomax = (bd->pins[ 38] == 0xFF) ? 600000 : bd->pins[ 38] * mult; bd 655 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->limits.system.vcomax = (bd->pins[ 36] == 0xFF) ? minfo->limits.pixel.vcomax : bd->pins[ 36] * mult; bd 656 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->limits.video.vcomax = (bd->pins[ 37] == 0xFF) ? minfo->limits.system.vcomax : bd->pins[ 37] * mult; bd 657 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->limits.pixel.vcomin = (bd->pins[123] == 0xFF) ? 256000 : bd->pins[123] * mult; bd 658 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->limits.system.vcomin = (bd->pins[121] == 0xFF) ? minfo->limits.pixel.vcomin : bd->pins[121] * mult; bd 659 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->limits.video.vcomin = (bd->pins[122] == 0xFF) ? minfo->limits.system.vcomin : bd->pins[122] * mult; bd 661 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->values.pll.video = (bd->pins[ 92] == 0xFF) ? 284000 : bd->pins[ 92] * 4000; bd 662 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->values.reg.opt = get_unaligned_le32(bd->pins + 48); bd 663 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->values.reg.opt2 = get_unaligned_le32(bd->pins + 52); bd 664 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->values.reg.opt3 = get_unaligned_le32(bd->pins + 94); bd 665 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->values.reg.mctlwtst = get_unaligned_le32(bd->pins + 98); bd 666 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->values.reg.memmisc = get_unaligned_le32(bd->pins + 102); bd 667 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->values.reg.memrdbk = get_unaligned_le32(bd->pins + 106); bd 668 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->features.pll.ref_freq = (bd->pins[110] & 0x01) ? 14318 : 27000; bd 669 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->values.memory.ddr = (bd->pins[114] & 0x60) == 0x20; bd 670 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->values.memory.dll = (bd->pins[115] & 0x02) != 0; bd 671 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->values.memory.emrswen = (bd->pins[115] & 0x01) != 0; bd 673 drivers/video/fbdev/matrox/matroxfb_misc.c if (bd->pins[115] & 4) { bd 680 drivers/video/fbdev/matrox/matroxfb_misc.c minfo->max_pixel_clock_panellink = bd->pins[47] * 4000; bd 710 drivers/video/fbdev/matrox/matroxfb_misc.c const struct matrox_bios *bd) bd 726 drivers/video/fbdev/matrox/matroxfb_misc.c if (!bd->bios_valid) { bd 730 drivers/video/fbdev/matrox/matroxfb_misc.c if (bd->pins_len < 64) { bd 734 drivers/video/fbdev/matrox/matroxfb_misc.c if (bd->pins[0] == 0x2E && bd->pins[1] == 0x41) { bd 735 drivers/video/fbdev/matrox/matroxfb_misc.c pins_version = bd->pins[5]; bd 743 drivers/video/fbdev/matrox/matroxfb_misc.c if (bd->pins_len != pinslen[pins_version - 1]) { bd 749 drivers/video/fbdev/matrox/matroxfb_misc.c return parse_pins1(minfo, bd); bd 751 drivers/video/fbdev/matrox/matroxfb_misc.c return parse_pins2(minfo, bd); bd 753 drivers/video/fbdev/matrox/matroxfb_misc.c return parse_pins3(minfo, bd); bd 755 drivers/video/fbdev/matrox/matroxfb_misc.c return parse_pins4(minfo, bd); bd 757 drivers/video/fbdev/matrox/matroxfb_misc.c return parse_pins5(minfo, bd); bd 48 drivers/video/fbdev/nvidia/nv_backlight.c static int nvidia_bl_update_status(struct backlight_device *bd) bd 50 drivers/video/fbdev/nvidia/nv_backlight.c struct nvidia_par *par = bl_get_data(bd); bd 57 drivers/video/fbdev/nvidia/nv_backlight.c if (bd->props.power != FB_BLANK_UNBLANK || bd 58 drivers/video/fbdev/nvidia/nv_backlight.c bd->props.fb_blank != FB_BLANK_UNBLANK) bd 61 drivers/video/fbdev/nvidia/nv_backlight.c level = bd->props.brightness; bd 90 drivers/video/fbdev/nvidia/nv_backlight.c struct backlight_device *bd; bd 107 drivers/video/fbdev/nvidia/nv_backlight.c bd = backlight_device_register(name, info->dev, par, &nvidia_bl_ops, bd 109 drivers/video/fbdev/nvidia/nv_backlight.c if (IS_ERR(bd)) { bd 115 drivers/video/fbdev/nvidia/nv_backlight.c info->bl_dev = bd; bd 120 drivers/video/fbdev/nvidia/nv_backlight.c bd->props.brightness = bd->props.max_brightness; bd 121 drivers/video/fbdev/nvidia/nv_backlight.c bd->props.power = FB_BLANK_UNBLANK; bd 122 drivers/video/fbdev/nvidia/nv_backlight.c backlight_update_status(bd); bd 133 drivers/video/fbdev/nvidia/nv_backlight.c struct backlight_device *bd = info->bl_dev; bd 135 drivers/video/fbdev/nvidia/nv_backlight.c backlight_device_unregister(bd); bd 295 drivers/video/fbdev/riva/fbdev.c static int riva_bl_update_status(struct backlight_device *bd) bd 297 drivers/video/fbdev/riva/fbdev.c struct riva_par *par = bl_get_data(bd); bd 301 drivers/video/fbdev/riva/fbdev.c if (bd->props.power != FB_BLANK_UNBLANK || bd 302 drivers/video/fbdev/riva/fbdev.c bd->props.fb_blank != FB_BLANK_UNBLANK) bd 305 drivers/video/fbdev/riva/fbdev.c level = bd->props.brightness; bd 328 drivers/video/fbdev/riva/fbdev.c struct backlight_device *bd; bd 345 drivers/video/fbdev/riva/fbdev.c bd = backlight_device_register(name, info->dev, par, &riva_bl_ops, bd 347 drivers/video/fbdev/riva/fbdev.c if (IS_ERR(bd)) { bd 353 drivers/video/fbdev/riva/fbdev.c info->bl_dev = bd; bd 358 drivers/video/fbdev/riva/fbdev.c bd->props.brightness = bd->props.max_brightness; bd 359 drivers/video/fbdev/riva/fbdev.c bd->props.power = FB_BLANK_UNBLANK; bd 360 drivers/video/fbdev/riva/fbdev.c backlight_update_status(bd); bd 372 drivers/video/fbdev/riva/fbdev.c struct backlight_device *bd = info->bl_dev; bd 374 drivers/video/fbdev/riva/fbdev.c backlight_device_unregister(bd); bd 249 drivers/video/fbdev/savage/savagefb.h #define BCI_BD_SET_BPP(bd, bpp) ((bd) |= (((bpp) & 0xFF) << 16)) bd 250 drivers/video/fbdev/savage/savagefb.h #define BCI_BD_SET_STRIDE(bd, st) ((bd) |= ((st) & 0xFFFF)) bd 709 fs/gfs2/aops.c struct gfs2_bufdata *bd; bd 714 fs/gfs2/aops.c bd = bh->b_private; bd 715 fs/gfs2/aops.c if (bd) { bd 716 fs/gfs2/aops.c if (!list_empty(&bd->bd_list) && !buffer_pinned(bh)) bd 717 fs/gfs2/aops.c list_del_init(&bd->bd_list); bd 775 fs/gfs2/aops.c struct gfs2_bufdata *bd; bd 796 fs/gfs2/aops.c bd = bh->b_private; bd 797 fs/gfs2/aops.c if (bd && bd->bd_tr) bd 807 fs/gfs2/aops.c bd = bh->b_private; bd 808 fs/gfs2/aops.c if (bd) { bd 809 fs/gfs2/aops.c gfs2_assert_warn(sdp, bd->bd_bh == bh); bd 810 fs/gfs2/aops.c if (!list_empty(&bd->bd_list)) bd 811 fs/gfs2/aops.c list_del_init(&bd->bd_list); bd 812 fs/gfs2/aops.c bd->bd_bh = NULL; bd 814 fs/gfs2/aops.c kmem_cache_free(gfs2_bufdata_cachep, bd); bd 58 fs/gfs2/glops.c struct gfs2_bufdata *bd, *tmp; bd 64 fs/gfs2/glops.c list_for_each_entry_safe_reverse(bd, tmp, head, bd_ail_gl_list) { bd 67 fs/gfs2/glops.c bh = bd->bd_bh; bd 73 fs/gfs2/glops.c gfs2_trans_add_revoke(sdp, bd); bd 73 fs/gfs2/log.c static void gfs2_remove_from_ail(struct gfs2_bufdata *bd) bd 75 fs/gfs2/log.c bd->bd_tr = NULL; bd 76 fs/gfs2/log.c list_del_init(&bd->bd_ail_st_list); bd 77 fs/gfs2/log.c list_del_init(&bd->bd_ail_gl_list); bd 78 fs/gfs2/log.c atomic_dec(&bd->bd_gl->gl_ail_count); bd 79 fs/gfs2/log.c brelse(bd->bd_bh); bd 99 fs/gfs2/log.c struct gfs2_bufdata *bd, *s; bd 102 fs/gfs2/log.c list_for_each_entry_safe_reverse(bd, s, &tr->tr_ail1_list, bd_ail_st_list) { bd 103 fs/gfs2/log.c bh = bd->bd_bh; bd 105 fs/gfs2/log.c gfs2_assert(sdp, bd->bd_tr == tr); bd 114 fs/gfs2/log.c list_move(&bd->bd_ail_st_list, &tr->tr_ail2_list); bd 120 fs/gfs2/log.c if (gl == bd->bd_gl) bd 122 fs/gfs2/log.c gl = bd->bd_gl; bd 123 fs/gfs2/log.c list_move(&bd->bd_ail_st_list, &tr->tr_ail1_list); bd 199 fs/gfs2/log.c struct gfs2_bufdata *bd, *s; bd 202 fs/gfs2/log.c list_for_each_entry_safe_reverse(bd, s, &tr->tr_ail1_list, bd 204 fs/gfs2/log.c bh = bd->bd_bh; bd 205 fs/gfs2/log.c gfs2_assert(sdp, bd->bd_tr == tr); bd 213 fs/gfs2/log.c list_move(&bd->bd_ail_st_list, &tr->tr_ail2_list); bd 251 fs/gfs2/log.c struct gfs2_bufdata *bd; bd 256 fs/gfs2/log.c list_for_each_entry(bd, &tr->tr_ail1_list, bd_ail_st_list) { bd 257 fs/gfs2/log.c bh = bd->bd_bh; bd 280 fs/gfs2/log.c struct gfs2_bufdata *bd; bd 283 fs/gfs2/log.c bd = list_entry(head->prev, struct gfs2_bufdata, bd 285 fs/gfs2/log.c gfs2_assert(sdp, bd->bd_tr == tr); bd 286 fs/gfs2/log.c gfs2_remove_from_ail(bd); bd 596 fs/gfs2/log.c void gfs2_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd) bd 598 fs/gfs2/log.c struct buffer_head *bh = bd->bd_bh; bd 599 fs/gfs2/log.c struct gfs2_glock *gl = bd->bd_gl; bd 605 fs/gfs2/log.c bd->bd_blkno = bh->b_blocknr; bd 606 fs/gfs2/log.c gfs2_remove_from_ail(bd); /* drops ref on bh */ bd 607 fs/gfs2/log.c bd->bd_bh = NULL; bd 609 fs/gfs2/log.c list_add(&bd->bd_list, &sdp->sd_log_revokes); bd 623 fs/gfs2/log.c struct gfs2_bufdata *bd, *tmp; bd 630 fs/gfs2/log.c list_for_each_entry(bd, &tr->tr_ail2_list, bd_ail_st_list) { bd 631 fs/gfs2/log.c if (list_empty(&bd->bd_list)) { bd 654 fs/gfs2/log.c list_for_each_entry_safe(bd, tmp, &tr->tr_ail2_list, bd_ail_st_list) { bd 657 fs/gfs2/log.c if (!list_empty(&bd->bd_list)) bd 659 fs/gfs2/log.c gfs2_add_revoke(sdp, bd); bd 80 fs/gfs2/log.h extern void gfs2_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd); bd 43 fs/gfs2/lops.c struct gfs2_bufdata *bd; bd 52 fs/gfs2/lops.c bd = bh->b_private; bd 57 fs/gfs2/lops.c if (bd->bd_tr) bd 58 fs/gfs2/lops.c list_move(&bd->bd_ail_st_list, &bd->bd_tr->tr_ail2_list); bd 62 fs/gfs2/lops.c trace_gfs2_pin(bd, 1); bd 65 fs/gfs2/lops.c static bool buffer_is_rgrp(const struct gfs2_bufdata *bd) bd 67 fs/gfs2/lops.c return bd->bd_gl->gl_name.ln_type == LM_TYPE_RGRP; bd 70 fs/gfs2/lops.c static void maybe_release_space(struct gfs2_bufdata *bd) bd 72 fs/gfs2/lops.c struct gfs2_glock *gl = bd->bd_gl; bd 75 fs/gfs2/lops.c unsigned int index = bd->bd_bh->b_blocknr - gl->gl_name.ln_number; bd 81 fs/gfs2/lops.c gfs2_rgrp_send_discards(sdp, rgd->rd_data0, bd->bd_bh, bi, 1, NULL); bd 83 fs/gfs2/lops.c bd->bd_bh->b_data + bi->bi_offset, bi->bi_bytes); bd 101 fs/gfs2/lops.c struct gfs2_bufdata *bd = bh->b_private; bd 110 fs/gfs2/lops.c if (buffer_is_rgrp(bd)) bd 111 fs/gfs2/lops.c maybe_release_space(bd); bd 114 fs/gfs2/lops.c if (bd->bd_tr) { bd 115 fs/gfs2/lops.c list_del(&bd->bd_ail_st_list); bd 118 fs/gfs2/lops.c struct gfs2_glock *gl = bd->bd_gl; bd 119 fs/gfs2/lops.c list_add(&bd->bd_ail_gl_list, &gl->gl_ail_list); bd 122 fs/gfs2/lops.c bd->bd_tr = tr; bd 123 fs/gfs2/lops.c list_add(&bd->bd_ail_st_list, &tr->tr_ail1_list); bd 126 fs/gfs2/lops.c clear_bit(GLF_LFLUSH, &bd->bd_gl->gl_flags); bd 127 fs/gfs2/lops.c trace_gfs2_pin(bd, 0); bd 725 fs/gfs2/lops.c struct gfs2_bufdata *bd; bd 732 fs/gfs2/lops.c bd = list_entry(head->next, struct gfs2_bufdata, bd_list); bd 733 fs/gfs2/lops.c list_del_init(&bd->bd_list); bd 734 fs/gfs2/lops.c gfs2_unpin(sdp, bd->bd_bh, tr); bd 860 fs/gfs2/lops.c struct gfs2_bufdata *bd; bd 872 fs/gfs2/lops.c list_for_each_entry(bd, head, bd_list) { bd 887 fs/gfs2/lops.c *(__be64 *)(page_address(page) + offset) = cpu_to_be64(bd->bd_blkno); bd 898 fs/gfs2/lops.c struct gfs2_bufdata *bd; bd 902 fs/gfs2/lops.c bd = list_entry(head->next, struct gfs2_bufdata, bd_list); bd 903 fs/gfs2/lops.c list_del_init(&bd->bd_list); bd 904 fs/gfs2/lops.c gl = bd->bd_gl; bd 906 fs/gfs2/lops.c kmem_cache_free(gfs2_bufdata_cachep, bd); bd 1074 fs/gfs2/lops.c struct gfs2_bufdata *bd; bd 1081 fs/gfs2/lops.c bd = list_entry(head->next, struct gfs2_bufdata, bd_list); bd 1082 fs/gfs2/lops.c list_del_init(&bd->bd_list); bd 1083 fs/gfs2/lops.c gfs2_unpin(sdp, bd->bd_bh, tr); bd 333 fs/gfs2/meta_io.c struct gfs2_bufdata *bd = bh->b_private; bd 338 fs/gfs2/meta_io.c trace_gfs2_pin(bd, 0); bd 340 fs/gfs2/meta_io.c list_del_init(&bd->bd_list); bd 349 fs/gfs2/meta_io.c if (bd) { bd 351 fs/gfs2/meta_io.c if (bd->bd_tr) { bd 352 fs/gfs2/meta_io.c gfs2_trans_add_revoke(sdp, bd); bd 355 fs/gfs2/meta_io.c kmem_cache_free(gfs2_bufdata_cachep, bd); bd 325 fs/gfs2/trace_gfs2.h TP_PROTO(const struct gfs2_bufdata *bd, int pin), bd 327 fs/gfs2/trace_gfs2.h TP_ARGS(bd, pin), bd 338 fs/gfs2/trace_gfs2.h __entry->dev = bd->bd_gl->gl_name.ln_sbd->sd_vfs->s_dev; bd 340 fs/gfs2/trace_gfs2.h __entry->len = bd->bd_bh->b_size; bd 341 fs/gfs2/trace_gfs2.h __entry->block = bd->bd_bh->b_blocknr; bd 342 fs/gfs2/trace_gfs2.h __entry->ino = bd->bd_gl->gl_name.ln_number; bd 126 fs/gfs2/trans.c struct gfs2_bufdata *bd; bd 128 fs/gfs2/trans.c bd = kmem_cache_zalloc(gfs2_bufdata_cachep, GFP_NOFS | __GFP_NOFAIL); bd 129 fs/gfs2/trans.c bd->bd_bh = bh; bd 130 fs/gfs2/trans.c bd->bd_gl = gl; bd 131 fs/gfs2/trans.c INIT_LIST_HEAD(&bd->bd_list); bd 132 fs/gfs2/trans.c bh->b_private = bd; bd 133 fs/gfs2/trans.c return bd; bd 154 fs/gfs2/trans.c struct gfs2_bufdata *bd; bd 162 fs/gfs2/trans.c bd = bh->b_private; bd 163 fs/gfs2/trans.c if (bd == NULL) { bd 167 fs/gfs2/trans.c bd = gfs2_alloc_bufdata(gl, bh); bd 169 fs/gfs2/trans.c bd = bh->b_private; bd 173 fs/gfs2/trans.c gfs2_assert(sdp, bd->bd_gl == gl); bd 175 fs/gfs2/trans.c if (list_empty(&bd->bd_list)) { bd 176 fs/gfs2/trans.c set_bit(GLF_LFLUSH, &bd->bd_gl->gl_flags); bd 177 fs/gfs2/trans.c set_bit(GLF_DIRTY, &bd->bd_gl->gl_flags); bd 178 fs/gfs2/trans.c gfs2_pin(sdp, bd->bd_bh); bd 180 fs/gfs2/trans.c list_add_tail(&bd->bd_list, &tr->tr_databuf); bd 191 fs/gfs2/trans.c struct gfs2_bufdata *bd; bd 202 fs/gfs2/trans.c bd = bh->b_private; bd 203 fs/gfs2/trans.c if (bd == NULL) { bd 208 fs/gfs2/trans.c bd = gfs2_alloc_bufdata(gl, bh); bd 210 fs/gfs2/trans.c bd = bh->b_private; bd 215 fs/gfs2/trans.c gfs2_assert(sdp, bd->bd_gl == gl); bd 217 fs/gfs2/trans.c if (!list_empty(&bd->bd_list)) bd 219 fs/gfs2/trans.c set_bit(GLF_LFLUSH, &bd->bd_gl->gl_flags); bd 220 fs/gfs2/trans.c set_bit(GLF_DIRTY, &bd->bd_gl->gl_flags); bd 221 fs/gfs2/trans.c mh = (struct gfs2_meta_header *)bd->bd_bh->b_data; bd 225 fs/gfs2/trans.c (unsigned long long)bd->bd_bh->b_blocknr); bd 232 fs/gfs2/trans.c gfs2_pin(sdp, bd->bd_bh); bd 235 fs/gfs2/trans.c list_add(&bd->bd_list, &tr->tr_buf); bd 243 fs/gfs2/trans.c void gfs2_trans_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd) bd 247 fs/gfs2/trans.c BUG_ON(!list_empty(&bd->bd_list)); bd 248 fs/gfs2/trans.c gfs2_add_revoke(sdp, bd); bd 255 fs/gfs2/trans.c struct gfs2_bufdata *bd, *tmp; bd 260 fs/gfs2/trans.c list_for_each_entry_safe(bd, tmp, &sdp->sd_log_revokes, bd_list) { bd 261 fs/gfs2/trans.c if ((bd->bd_blkno >= blkno) && (bd->bd_blkno < (blkno + len))) { bd 262 fs/gfs2/trans.c list_del_init(&bd->bd_list); bd 265 fs/gfs2/trans.c if (bd->bd_gl) bd 266 fs/gfs2/trans.c gfs2_glock_remove_revoke(bd->bd_gl); bd 267 fs/gfs2/trans.c kmem_cache_free(gfs2_bufdata_cachep, bd); bd 43 fs/gfs2/trans.h extern void gfs2_trans_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd); bd 819 fs/nfsd/nfs4state.c struct bloom_pair *bd = &blocked_delegations; bd 821 fs/nfsd/nfs4state.c if (bd->entries == 0) bd 823 fs/nfsd/nfs4state.c if (seconds_since_boot() - bd->swap_time > 30) { bd 825 fs/nfsd/nfs4state.c if (seconds_since_boot() - bd->swap_time > 30) { bd 826 fs/nfsd/nfs4state.c bd->entries -= bd->old_entries; bd 827 fs/nfsd/nfs4state.c bd->old_entries = bd->entries; bd 828 fs/nfsd/nfs4state.c memset(bd->set[bd->new], 0, bd 829 fs/nfsd/nfs4state.c sizeof(bd->set[0])); bd 830 fs/nfsd/nfs4state.c bd->new = 1-bd->new; bd 831 fs/nfsd/nfs4state.c bd->swap_time = seconds_since_boot(); bd 836 fs/nfsd/nfs4state.c if (test_bit(hash&255, bd->set[0]) && bd 837 fs/nfsd/nfs4state.c test_bit((hash>>8)&255, bd->set[0]) && bd 838 fs/nfsd/nfs4state.c test_bit((hash>>16)&255, bd->set[0])) bd 841 fs/nfsd/nfs4state.c if (test_bit(hash&255, bd->set[1]) && bd 842 fs/nfsd/nfs4state.c test_bit((hash>>8)&255, bd->set[1]) && bd 843 fs/nfsd/nfs4state.c test_bit((hash>>16)&255, bd->set[1])) bd 852 fs/nfsd/nfs4state.c struct bloom_pair *bd = &blocked_delegations; bd 857 fs/nfsd/nfs4state.c __set_bit(hash&255, bd->set[bd->new]); bd 858 fs/nfsd/nfs4state.c __set_bit((hash>>8)&255, bd->set[bd->new]); bd 859 fs/nfsd/nfs4state.c __set_bit((hash>>16)&255, bd->set[bd->new]); bd 860 fs/nfsd/nfs4state.c if (bd->entries == 0) bd 861 fs/nfsd/nfs4state.c bd->swap_time = seconds_since_boot(); bd 862 fs/nfsd/nfs4state.c bd->entries += 1; bd 124 include/linux/backlight.h static inline int backlight_update_status(struct backlight_device *bd) bd 128 include/linux/backlight.h mutex_lock(&bd->update_lock); bd 129 include/linux/backlight.h if (bd->ops && bd->ops->update_status) bd 130 include/linux/backlight.h ret = bd->ops->update_status(bd); bd 131 include/linux/backlight.h mutex_unlock(&bd->update_lock); bd 140 include/linux/backlight.h static inline int backlight_enable(struct backlight_device *bd) bd 142 include/linux/backlight.h if (!bd) bd 145 include/linux/backlight.h bd->props.power = FB_BLANK_UNBLANK; bd 146 include/linux/backlight.h bd->props.fb_blank = FB_BLANK_UNBLANK; bd 147 include/linux/backlight.h bd->props.state &= ~BL_CORE_FBBLANK; bd 149 include/linux/backlight.h return backlight_update_status(bd); bd 156 include/linux/backlight.h static inline int backlight_disable(struct backlight_device *bd) bd 158 include/linux/backlight.h if (!bd) bd 161 include/linux/backlight.h bd->props.power = FB_BLANK_POWERDOWN; bd 162 include/linux/backlight.h bd->props.fb_blank = FB_BLANK_POWERDOWN; bd 163 include/linux/backlight.h bd->props.state |= BL_CORE_FBBLANK; bd 165 include/linux/backlight.h return backlight_update_status(bd); bd 172 include/linux/backlight.h static inline void backlight_put(struct backlight_device *bd) bd 174 include/linux/backlight.h if (bd) bd 175 include/linux/backlight.h put_device(&bd->dev); bd 185 include/linux/backlight.h extern void backlight_device_unregister(struct backlight_device *bd); bd 187 include/linux/backlight.h struct backlight_device *bd); bd 188 include/linux/backlight.h extern void backlight_force_update(struct backlight_device *bd, bd 193 include/linux/backlight.h extern int backlight_device_set_brightness(struct backlight_device *bd, unsigned long brightness); bd 52 include/linux/fsl/bestcomm/bestcomm.h struct bcom_bd *bd; bd 152 include/linux/fsl/bestcomm/bestcomm.h return ((void *)tsk->bd) + (index * tsk->bd_size); bd 162 include/linux/fsl/bestcomm/bestcomm.h struct bcom_bd *bd; bd 166 include/linux/fsl/bestcomm/bestcomm.h bd = bcom_get_bd(tsk, tsk->outdex); bd 167 include/linux/fsl/bestcomm/bestcomm.h return !(bd->status & BCOM_BD_READY); bd 179 include/linux/fsl/bestcomm/bestcomm.h struct bcom_bd *bd; bd 181 include/linux/fsl/bestcomm/bestcomm.h bd = bcom_get_bd(tsk, tsk->index); bd 182 include/linux/fsl/bestcomm/bestcomm.h bd->status = 0; /* cleanup last status */ bd 183 include/linux/fsl/bestcomm/bestcomm.h return bd; bd 189 include/linux/fsl/bestcomm/bestcomm.h struct bcom_bd *bd = bcom_get_bd(tsk, tsk->index); bd 193 include/linux/fsl/bestcomm/bestcomm.h bd->status |= BCOM_BD_READY; bd 203 include/linux/fsl/bestcomm/bestcomm.h struct bcom_bd *bd = bcom_get_bd(tsk, tsk->outdex); bd 206 include/linux/fsl/bestcomm/bestcomm.h *p_status = bd->status; bd 208 include/linux/fsl/bestcomm/bestcomm.h *p_bd = bd; bd 116 lib/decompress_bunzip2.c static unsigned int INIT get_bits(struct bunzip_data *bd, char bits_wanted) bd 123 lib/decompress_bunzip2.c while (bd->inbufBitCount < bits_wanted) { bd 126 lib/decompress_bunzip2.c if (bd->inbufPos == bd->inbufCount) { bd 127 lib/decompress_bunzip2.c if (bd->io_error) bd 129 lib/decompress_bunzip2.c bd->inbufCount = bd->fill(bd->inbuf, BZIP2_IOBUF_SIZE); bd 130 lib/decompress_bunzip2.c if (bd->inbufCount <= 0) { bd 131 lib/decompress_bunzip2.c bd->io_error = RETVAL_UNEXPECTED_INPUT_EOF; bd 134 lib/decompress_bunzip2.c bd->inbufPos = 0; bd 137 lib/decompress_bunzip2.c if (bd->inbufBitCount >= 24) { bd 138 lib/decompress_bunzip2.c bits = bd->inbufBits&((1 << bd->inbufBitCount)-1); bd 139 lib/decompress_bunzip2.c bits_wanted -= bd->inbufBitCount; bd 141 lib/decompress_bunzip2.c bd->inbufBitCount = 0; bd 144 lib/decompress_bunzip2.c bd->inbufBits = (bd->inbufBits << 8)|bd->inbuf[bd->inbufPos++]; bd 145 lib/decompress_bunzip2.c bd->inbufBitCount += 8; bd 148 lib/decompress_bunzip2.c bd->inbufBitCount -= bits_wanted; bd 149 lib/decompress_bunzip2.c bits |= (bd->inbufBits >> bd->inbufBitCount)&((1 << bits_wanted)-1); bd 156 lib/decompress_bunzip2.c static int INIT get_next_block(struct bunzip_data *bd) bd 166 lib/decompress_bunzip2.c dbuf = bd->dbuf; bd 167 lib/decompress_bunzip2.c dbufSize = bd->dbufSize; bd 168 lib/decompress_bunzip2.c selectors = bd->selectors; bd 169 lib/decompress_bunzip2.c byteCount = bd->byteCount; bd 170 lib/decompress_bunzip2.c symToByte = bd->symToByte; bd 171 lib/decompress_bunzip2.c mtfSymbol = bd->mtfSymbol; bd 175 lib/decompress_bunzip2.c i = get_bits(bd, 24); bd 176 lib/decompress_bunzip2.c j = get_bits(bd, 24); bd 177 lib/decompress_bunzip2.c bd->headerCRC = get_bits(bd, 32); bd 185 lib/decompress_bunzip2.c if (get_bits(bd, 1)) bd 187 lib/decompress_bunzip2.c origPtr = get_bits(bd, 24); bd 195 lib/decompress_bunzip2.c t = get_bits(bd, 16); bd 199 lib/decompress_bunzip2.c k = get_bits(bd, 16); bd 206 lib/decompress_bunzip2.c groupCount = get_bits(bd, 3); bd 214 lib/decompress_bunzip2.c nSelectors = get_bits(bd, 15); bd 221 lib/decompress_bunzip2.c for (j = 0; get_bits(bd, 1); j++) bd 246 lib/decompress_bunzip2.c t = get_bits(bd, 5)-1; bd 258 lib/decompress_bunzip2.c k = get_bits(bd, 2); bd 260 lib/decompress_bunzip2.c bd->inbufBitCount++; bd 296 lib/decompress_bunzip2.c hufGroup = bd->groups+j; bd 364 lib/decompress_bunzip2.c hufGroup = bd->groups+selectors[selector++]; bd 380 lib/decompress_bunzip2.c while (bd->inbufBitCount < hufGroup->maxLen) { bd 381 lib/decompress_bunzip2.c if (bd->inbufPos == bd->inbufCount) { bd 382 lib/decompress_bunzip2.c j = get_bits(bd, hufGroup->maxLen); bd 385 lib/decompress_bunzip2.c bd->inbufBits = bd 386 lib/decompress_bunzip2.c (bd->inbufBits << 8)|bd->inbuf[bd->inbufPos++]; bd 387 lib/decompress_bunzip2.c bd->inbufBitCount += 8; bd 389 lib/decompress_bunzip2.c bd->inbufBitCount -= hufGroup->maxLen; bd 390 lib/decompress_bunzip2.c j = (bd->inbufBits >> bd->inbufBitCount)& bd 398 lib/decompress_bunzip2.c bd->inbufBitCount += (hufGroup->maxLen - i); bd 506 lib/decompress_bunzip2.c bd->writePos = dbuf[origPtr]; bd 507 lib/decompress_bunzip2.c bd->writeCurrent = (unsigned char)(bd->writePos&0xff); bd 508 lib/decompress_bunzip2.c bd->writePos >>= 8; bd 509 lib/decompress_bunzip2.c bd->writeRunCountdown = 5; bd 511 lib/decompress_bunzip2.c bd->writeCount = dbufCount; bd 523 lib/decompress_bunzip2.c static int INIT read_bunzip(struct bunzip_data *bd, char *outbuf, int len) bd 529 lib/decompress_bunzip2.c if (bd->writeCount < 0) bd 530 lib/decompress_bunzip2.c return bd->writeCount; bd 533 lib/decompress_bunzip2.c dbuf = bd->dbuf; bd 534 lib/decompress_bunzip2.c pos = bd->writePos; bd 535 lib/decompress_bunzip2.c xcurrent = bd->writeCurrent; bd 541 lib/decompress_bunzip2.c if (bd->writeCopies) { bd 543 lib/decompress_bunzip2.c --bd->writeCopies; bd 549 lib/decompress_bunzip2.c bd->writePos = pos; bd 550 lib/decompress_bunzip2.c bd->writeCurrent = xcurrent; bd 551 lib/decompress_bunzip2.c bd->writeCopies++; bd 556 lib/decompress_bunzip2.c bd->writeCRC = (((bd->writeCRC) << 8) bd 557 lib/decompress_bunzip2.c ^bd->crc32Table[((bd->writeCRC) >> 24) bd 561 lib/decompress_bunzip2.c if (bd->writeCopies) { bd 562 lib/decompress_bunzip2.c --bd->writeCopies; bd 566 lib/decompress_bunzip2.c if (!bd->writeCount--) bd 578 lib/decompress_bunzip2.c if (--bd->writeRunCountdown) { bd 580 lib/decompress_bunzip2.c bd->writeRunCountdown = 4; bd 584 lib/decompress_bunzip2.c bd->writeCopies = xcurrent; bd 586 lib/decompress_bunzip2.c bd->writeRunCountdown = 5; bd 589 lib/decompress_bunzip2.c if (!bd->writeCopies) bd 593 lib/decompress_bunzip2.c --bd->writeCopies; bd 597 lib/decompress_bunzip2.c bd->writeCRC = ~bd->writeCRC; bd 598 lib/decompress_bunzip2.c bd->totalCRC = ((bd->totalCRC << 1) | bd 599 lib/decompress_bunzip2.c (bd->totalCRC >> 31)) ^ bd->writeCRC; bd 601 lib/decompress_bunzip2.c if (bd->writeCRC != bd->headerCRC) { bd 602 lib/decompress_bunzip2.c bd->totalCRC = bd->headerCRC+1; bd 610 lib/decompress_bunzip2.c previous = get_next_block(bd); bd 612 lib/decompress_bunzip2.c bd->writeCount = previous; bd 615 lib/decompress_bunzip2.c bd->writeCRC = 0xffffffffUL; bd 616 lib/decompress_bunzip2.c pos = bd->writePos; bd 617 lib/decompress_bunzip2.c xcurrent = bd->writeCurrent; bd 632 lib/decompress_bunzip2.c struct bunzip_data *bd; bd 642 lib/decompress_bunzip2.c bd = *bdp = malloc(i); bd 643 lib/decompress_bunzip2.c if (!bd) bd 645 lib/decompress_bunzip2.c memset(bd, 0, sizeof(struct bunzip_data)); bd 647 lib/decompress_bunzip2.c bd->inbuf = inbuf; bd 648 lib/decompress_bunzip2.c bd->inbufCount = len; bd 650 lib/decompress_bunzip2.c bd->fill = fill; bd 652 lib/decompress_bunzip2.c bd->fill = nofill; bd 659 lib/decompress_bunzip2.c bd->crc32Table[i] = c; bd 663 lib/decompress_bunzip2.c i = get_bits(bd, 32); bd 669 lib/decompress_bunzip2.c bd->dbufSize = 100000*(i-BZh0); bd 671 lib/decompress_bunzip2.c bd->dbuf = large_malloc(bd->dbufSize * sizeof(int)); bd 672 lib/decompress_bunzip2.c if (!bd->dbuf) bd 686 lib/decompress_bunzip2.c struct bunzip_data *bd; bd 706 lib/decompress_bunzip2.c i = start_bunzip(&bd, inbuf, len, fill); bd 709 lib/decompress_bunzip2.c i = read_bunzip(bd, outbuf, BZIP2_IOBUF_SIZE); bd 723 lib/decompress_bunzip2.c if (bd->headerCRC != bd->totalCRC) bd 730 lib/decompress_bunzip2.c if (!bd) bd 732 lib/decompress_bunzip2.c if (bd->dbuf) bd 733 lib/decompress_bunzip2.c large_free(bd->dbuf); bd 735 lib/decompress_bunzip2.c *pos = bd->inbufPos; bd 736 lib/decompress_bunzip2.c free(bd); bd 593 lib/inflate.c int bd /* number of bits decoded by td[] */ bd 614 lib/inflate.c md = mask_bits[bd]; bd 649 lib/inflate.c NEEDBITS((unsigned)bd) bd 774 lib/inflate.c int bd; /* lookup bits for td */ bd 801 lib/inflate.c bd = 5; bd 802 lib/inflate.c if ((i = huft_build(l, 30, 0, cpdist, cpdext, &td, &bd)) > 1) bd 813 lib/inflate.c if (inflate_codes(tl, td, bl, bd)) { bd 840 lib/inflate.c int bd; /* lookup bits for td */ bd 989 lib/inflate.c bd = dbits; bd 990 lib/inflate.c if ((i = huft_build(ll + nl, nd, 0, cpdist, cpdext, &td, &bd)) != 0) bd 1010 lib/inflate.c if (inflate_codes(tl, td, bl, bd)) { bd 230 scripts/sign-file.c BIO *bd, *bm; bd 355 scripts/sign-file.c bd = BIO_new_file(dest_name, "wb"); bd 356 scripts/sign-file.c ERR(!bd, "%s", dest_name); bd 362 scripts/sign-file.c ERR(BIO_write(bd, buf, n) < 0, "%s", dest_name); bd 366 scripts/sign-file.c module_size = BIO_number_written(bd); bd 370 scripts/sign-file.c ERR(i2d_CMS_bio_stream(bd, cms, NULL, 0) < 0, "%s", dest_name); bd 372 scripts/sign-file.c ERR(i2d_PKCS7_bio(bd, pkcs7) < 0, "%s", dest_name); bd 383 scripts/sign-file.c ERR(BIO_write(bd, buf, n) < 0, "%s", dest_name); bd 387 scripts/sign-file.c sig_size = BIO_number_written(bd) - module_size; bd 389 scripts/sign-file.c ERR(BIO_write(bd, &sig_info, sizeof(sig_info)) < 0, "%s", dest_name); bd 390 scripts/sign-file.c ERR(BIO_write(bd, magic_number, sizeof(magic_number) - 1) < 0, "%s", dest_name); bd 392 scripts/sign-file.c ERR(BIO_free(bd) < 0, "%s", dest_name); bd 47 sound/soc/codecs/bd28623.c static int bd28623_power_on(struct bd28623_priv *bd) bd 51 sound/soc/codecs/bd28623.c ret = regulator_bulk_enable(ARRAY_SIZE(bd->supplies), bd->supplies); bd 53 sound/soc/codecs/bd28623.c dev_err(bd->dev, "Failed to enable supplies: %d\n", ret); bd 57 sound/soc/codecs/bd28623.c gpiod_set_value_cansleep(bd->reset_gpio, 0); bd 63 sound/soc/codecs/bd28623.c static void bd28623_power_off(struct bd28623_priv *bd) bd 65 sound/soc/codecs/bd28623.c gpiod_set_value_cansleep(bd->reset_gpio, 1); bd 67 sound/soc/codecs/bd28623.c regulator_bulk_disable(ARRAY_SIZE(bd->supplies), bd->supplies); bd 75 sound/soc/codecs/bd28623.c struct bd28623_priv *bd = snd_soc_component_get_drvdata(component); bd 77 sound/soc/codecs/bd28623.c ucontrol->value.integer.value[0] = bd->switch_spk; bd 87 sound/soc/codecs/bd28623.c struct bd28623_priv *bd = snd_soc_component_get_drvdata(component); bd 89 sound/soc/codecs/bd28623.c if (bd->switch_spk == ucontrol->value.integer.value[0]) bd 92 sound/soc/codecs/bd28623.c bd->switch_spk = ucontrol->value.integer.value[0]; bd 94 sound/soc/codecs/bd28623.c gpiod_set_value_cansleep(bd->mute_gpio, bd->switch_spk ? 0 : 1); bd 106 sound/soc/codecs/bd28623.c struct bd28623_priv *bd = snd_soc_component_get_drvdata(component); bd 109 sound/soc/codecs/bd28623.c bd->switch_spk = 1; bd 111 sound/soc/codecs/bd28623.c ret = bd28623_power_on(bd); bd 115 sound/soc/codecs/bd28623.c gpiod_set_value_cansleep(bd->mute_gpio, bd->switch_spk ? 0 : 1); bd 122 sound/soc/codecs/bd28623.c struct bd28623_priv *bd = snd_soc_component_get_drvdata(component); bd 124 sound/soc/codecs/bd28623.c bd28623_power_off(bd); bd 129 sound/soc/codecs/bd28623.c struct bd28623_priv *bd = snd_soc_component_get_drvdata(component); bd 131 sound/soc/codecs/bd28623.c bd28623_power_off(bd); bd 138 sound/soc/codecs/bd28623.c struct bd28623_priv *bd = snd_soc_component_get_drvdata(component); bd 141 sound/soc/codecs/bd28623.c ret = bd28623_power_on(bd); bd 145 sound/soc/codecs/bd28623.c gpiod_set_value_cansleep(bd->mute_gpio, bd->switch_spk ? 0 : 1); bd 184 sound/soc/codecs/bd28623.c struct bd28623_priv *bd; bd 188 sound/soc/codecs/bd28623.c bd = devm_kzalloc(&pdev->dev, sizeof(struct bd28623_priv), GFP_KERNEL); bd 189 sound/soc/codecs/bd28623.c if (!bd) bd 192 sound/soc/codecs/bd28623.c for (i = 0; i < ARRAY_SIZE(bd->supplies); i++) bd 193 sound/soc/codecs/bd28623.c bd->supplies[i].supply = bd28623_supply_names[i]; bd 195 sound/soc/codecs/bd28623.c ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(bd->supplies), bd 196 sound/soc/codecs/bd28623.c bd->supplies); bd 202 sound/soc/codecs/bd28623.c bd->reset_gpio = devm_gpiod_get_optional(dev, "reset", bd 204 sound/soc/codecs/bd28623.c if (IS_ERR(bd->reset_gpio)) { bd 206 sound/soc/codecs/bd28623.c PTR_ERR(bd->reset_gpio)); bd 207 sound/soc/codecs/bd28623.c return PTR_ERR(bd->reset_gpio); bd 210 sound/soc/codecs/bd28623.c bd->mute_gpio = devm_gpiod_get_optional(dev, "mute", bd 212 sound/soc/codecs/bd28623.c if (IS_ERR(bd->mute_gpio)) { bd 214 sound/soc/codecs/bd28623.c PTR_ERR(bd->mute_gpio)); bd 215 sound/soc/codecs/bd28623.c return PTR_ERR(bd->mute_gpio); bd 218 sound/soc/codecs/bd28623.c platform_set_drvdata(pdev, bd); bd 219 sound/soc/codecs/bd28623.c bd->dev = dev; bd 63 sound/soc/fsl/mpc5200_dma.c struct bcom_bd *bd; bd 66 sound/soc/fsl/mpc5200_dma.c bd = bcom_prepare_next_buffer(s->bcom_task); bd 67 sound/soc/fsl/mpc5200_dma.c bd->status = s->period_bytes; bd 68 sound/soc/fsl/mpc5200_dma.c bd->data[0] = s->runtime->dma_addr + (s->period_next * s->period_bytes);