/openbmc/linux/drivers/pmdomain/imx/ |
H A D | imx8mp-blk-ctrl.c | 45 void (*power_off) (struct imx8mp_blk_ctrl *bc, struct imx8mp_blk_ctrl_domain *domain); 46 void (*power_on) (struct imx8mp_blk_ctrl *bc, struct imx8mp_blk_ctrl_domain *domain); 67 struct imx8mp_blk_ctrl *bc; member 74 int (*probe) (struct imx8mp_blk_ctrl *bc); 76 void (*power_off) (struct imx8mp_blk_ctrl *bc, struct imx8mp_blk_ctrl_domain *domain); 77 void (*power_on) (struct imx8mp_blk_ctrl *bc, struct imx8mp_blk_ctrl_domain *domain); 147 static int imx8mp_hsio_blk_ctrl_probe(struct imx8mp_blk_ctrl *bc) in imx8mp_hsio_blk_ctrl_probe() argument 154 clk_hsio_pll = devm_kzalloc(bc->dev, sizeof(*clk_hsio_pll), GFP_KERNEL); in imx8mp_hsio_blk_ctrl_probe() 163 clk_hsio_pll->regmap = bc->regmap; in imx8mp_hsio_blk_ctrl_probe() 167 ret = devm_clk_hw_register(bc->bus_power_dev, hw); in imx8mp_hsio_blk_ctrl_probe() [all …]
|
H A D | imx93-blk-ctrl.c | 84 struct imx93_blk_ctrl *bc; member 104 struct imx93_blk_ctrl *bc = domain->bc; in imx93_blk_ctrl_set_qos() local 117 regmap_write_bits(bc->regmap, qos->reg, mask, val); in imx93_blk_ctrl_set_qos() 119 dev_dbg(bc->dev, "data->qos[i].reg 0x%x 0x%x\n", qos->reg, val); in imx93_blk_ctrl_set_qos() 129 struct imx93_blk_ctrl *bc = domain->bc; in imx93_blk_ctrl_power_on() local 132 ret = clk_bulk_prepare_enable(bc->num_clks, bc->clks); in imx93_blk_ctrl_power_on() 134 dev_err(bc->dev, "failed to enable bus clocks\n"); in imx93_blk_ctrl_power_on() 140 clk_bulk_disable_unprepare(bc->num_clks, bc->clks); in imx93_blk_ctrl_power_on() 141 dev_err(bc->dev, "failed to enable clocks\n"); in imx93_blk_ctrl_power_on() 145 ret = pm_runtime_get_sync(bc->dev); in imx93_blk_ctrl_power_on() [all …]
|
H A D | imx8m-blk-ctrl.c | 68 struct imx8m_blk_ctrl *bc; member 89 struct imx8m_blk_ctrl *bc = domain->bc; in imx8m_blk_ctrl_power_on() local 93 ret = pm_runtime_get_sync(bc->bus_power_dev); in imx8m_blk_ctrl_power_on() 95 pm_runtime_put_noidle(bc->bus_power_dev); in imx8m_blk_ctrl_power_on() 96 dev_err(bc->dev, "failed to power up bus domain\n"); in imx8m_blk_ctrl_power_on() 101 regmap_clear_bits(bc->regmap, BLK_SFT_RSTN, data->rst_mask); in imx8m_blk_ctrl_power_on() 103 regmap_clear_bits(bc->regmap, BLK_MIPI_RESET_DIV, data->mipi_phy_rst_mask); in imx8m_blk_ctrl_power_on() 108 dev_err(bc->dev, "failed to enable clocks\n"); in imx8m_blk_ctrl_power_on() 111 regmap_set_bits(bc->regmap, BLK_CLK_EN, data->clk_mask); in imx8m_blk_ctrl_power_on() 116 dev_err(bc->dev, "failed to power up peripheral domain\n"); in imx8m_blk_ctrl_power_on() [all …]
|
/openbmc/linux/drivers/isdn/hardware/mISDN/ |
H A D | netjet.c | 78 struct tiger_ch bc[2]; member 96 card->bc[0].bch.debug = debug; in _set_debug() 97 card->bc[1].bch.debug = debug; in _set_debug() 175 fill_mem(struct tiger_ch *bc, u32 idx, u32 cnt, u32 fill) in fill_mem() argument 177 struct tiger_hw *card = bc->bch.hw; in fill_mem() 181 bc->bch.nr, fill, cnt, idx, card->send.idx); in fill_mem() 182 if (bc->bch.nr & 2) { in fill_mem() 198 mode_tiger(struct tiger_ch *bc, u32 protocol) in mode_tiger() argument 200 struct tiger_hw *card = bc->bch.hw; in mode_tiger() 203 bc->bch.nr, bc->bch.state, protocol); in mode_tiger() [all …]
|
/openbmc/linux/drivers/net/hamradio/ |
H A D | baycom_epp.c | 260 #define tenms_to_flags(bc,tenms) ((tenms * bc->bitrate) / 800) argument 264 static inline void baycom_int_freq(struct baycom_state *bc) in baycom_int_freq() argument 271 bc->debug_vals.cur_intcnt++; in baycom_int_freq() 272 if (time_after_eq(cur_jiffies, bc->debug_vals.last_jiffies + HZ)) { in baycom_int_freq() 273 bc->debug_vals.last_jiffies = cur_jiffies; in baycom_int_freq() 274 bc->debug_vals.last_intcnt = bc->debug_vals.cur_intcnt; in baycom_int_freq() 275 bc->debug_vals.cur_intcnt = 0; in baycom_int_freq() 276 bc->debug_vals.last_pllcorr = bc->debug_vals.cur_pllcorr; in baycom_int_freq() 277 bc->debug_vals.cur_pllcorr = 0; in baycom_int_freq() 292 static int eppconfig(struct baycom_state *bc) in eppconfig() argument [all …]
|
H A D | baycom_ser_hdx.c | 132 static inline void baycom_int_freq(struct baycom_state *bc) in baycom_int_freq() argument 139 bc->debug_vals.cur_intcnt++; in baycom_int_freq() 140 if (time_after_eq(cur_jiffies, bc->debug_vals.last_jiffies + HZ)) { in baycom_int_freq() 141 bc->debug_vals.last_jiffies = cur_jiffies; in baycom_int_freq() 142 bc->debug_vals.last_intcnt = bc->debug_vals.cur_intcnt; in baycom_int_freq() 143 bc->debug_vals.cur_intcnt = 0; in baycom_int_freq() 144 bc->debug_vals.last_pllcorr = bc->debug_vals.cur_pllcorr; in baycom_int_freq() 145 bc->debug_vals.cur_pllcorr = 0; in baycom_int_freq() 181 #define SER12_ARB_DIVIDER(bc) (bc->opt_dcd ? 24 : 36) argument 183 #define SER12_DCD_INTERVAL(bc) (bc->opt_dcd ? 12 : 240) argument [all …]
|
H A D | baycom_ser_fdx.c | 145 static inline void baycom_int_freq(struct baycom_state *bc) in baycom_int_freq() argument 152 bc->debug_vals.cur_intcnt++; in baycom_int_freq() 153 if (time_after_eq(cur_jiffies, bc->debug_vals.last_jiffies + HZ)) { in baycom_int_freq() 154 bc->debug_vals.last_jiffies = cur_jiffies; in baycom_int_freq() 155 bc->debug_vals.last_intcnt = bc->debug_vals.cur_intcnt; in baycom_int_freq() 156 bc->debug_vals.cur_intcnt = 0; in baycom_int_freq() 157 bc->debug_vals.last_pllcorr = bc->debug_vals.cur_pllcorr; in baycom_int_freq() 158 bc->debug_vals.cur_pllcorr = 0; in baycom_int_freq() 191 static __inline__ void ser12_rx(struct net_device *dev, struct baycom_state *bc, struct timespec64 … in ser12_rx() argument 194 int bdus8 = bc->baud_us >> 3; in ser12_rx() [all …]
|
H A D | baycom_par.c | 143 static inline void baycom_int_freq(struct baycom_state *bc) in baycom_int_freq() argument 150 bc->debug_vals.cur_intcnt++; in baycom_int_freq() 151 if (time_after_eq(cur_jiffies, bc->debug_vals.last_jiffies + HZ)) { in baycom_int_freq() 152 bc->debug_vals.last_jiffies = cur_jiffies; in baycom_int_freq() 153 bc->debug_vals.last_intcnt = bc->debug_vals.cur_intcnt; in baycom_int_freq() 154 bc->debug_vals.cur_intcnt = 0; in baycom_int_freq() 155 bc->debug_vals.last_pllcorr = bc->debug_vals.cur_pllcorr; in baycom_int_freq() 156 bc->debug_vals.cur_pllcorr = 0; in baycom_int_freq() 179 static inline void par96_tx(struct net_device *dev, struct baycom_state *bc) in par96_tx() argument 182 unsigned int data = hdlcdrv_getbits(&bc->hdrv); in par96_tx() [all …]
|
/openbmc/linux/drivers/tty/ |
H A D | ehv_bytechan.c | 86 static void enable_tx_interrupt(struct ehv_bc_data *bc) in enable_tx_interrupt() argument 88 if (!bc->tx_irq_enabled) { in enable_tx_interrupt() 89 enable_irq(bc->tx_irq); in enable_tx_interrupt() 90 bc->tx_irq_enabled = 1; in enable_tx_interrupt() 94 static void disable_tx_interrupt(struct ehv_bc_data *bc) in disable_tx_interrupt() argument 96 if (bc->tx_irq_enabled) { in disable_tx_interrupt() 97 disable_irq_nosync(bc->tx_irq); in disable_tx_interrupt() 98 bc->tx_irq_enabled = 0; in disable_tx_interrupt() 122 pr_err("ehv-bc: no 'interrupts' property in %pOF node\n", np); in find_console_handle() 131 pr_err("ehv-bc: no 'hv-handle' property in %pOFn node\n", in find_console_handle() [all …]
|
/openbmc/linux/arch/mips/pci/ |
H A D | pci-xtalk-bridge.c | 32 struct bridge_controller *bc = BRIDGE_CONTROLLER(pdev->bus); in phys_to_dma() local 34 return bc->baddr + paddr; in phys_to_dma() 97 struct bridge_controller *bc = BRIDGE_CONTROLLER(dev->bus); in bridge_disable_swapping() local 101 bridge_clr(bc, b_device[slot].reg, BRIDGE_DEV_SWAP_DIR); in bridge_disable_swapping() 102 bridge_read(bc, b_widget.w_tflush); /* Flush */ in bridge_disable_swapping() 122 struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); in pci_conf0_read_config() local 123 struct bridge_regs *bridge = bc->base; in pci_conf0_read_config() 141 bc->ioc3_sid[slot]); in pci_conf0_read_config() 159 struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); in pci_conf1_read_config() local 160 struct bridge_regs *bridge = bc->base; in pci_conf1_read_config() [all …]
|
/openbmc/linux/crypto/ |
H A D | sha3_generic.c | 49 u64 t[5], tt, bc[5]; in keccakf_round() local 52 bc[0] = st[0] ^ st[5] ^ st[10] ^ st[15] ^ st[20]; in keccakf_round() 53 bc[1] = st[1] ^ st[6] ^ st[11] ^ st[16] ^ st[21]; in keccakf_round() 54 bc[2] = st[2] ^ st[7] ^ st[12] ^ st[17] ^ st[22]; in keccakf_round() 55 bc[3] = st[3] ^ st[8] ^ st[13] ^ st[18] ^ st[23]; in keccakf_round() 56 bc[4] = st[4] ^ st[9] ^ st[14] ^ st[19] ^ st[24]; in keccakf_round() 58 t[0] = bc[4] ^ rol64(bc[1], 1); in keccakf_round() 59 t[1] = bc[0] ^ rol64(bc[2], 1); in keccakf_round() 60 t[2] = bc[1] ^ rol64(bc[3], 1); in keccakf_round() 61 t[3] = bc[2] ^ rol64(bc[4], 1); in keccakf_round() [all …]
|
/openbmc/linux/kernel/time/ |
H A D | tick-broadcast.c | 38 static void tick_broadcast_setup_oneshot(struct clock_event_device *bc, bool from_periodic); 40 static void tick_resume_broadcast_oneshot(struct clock_event_device *bc); 46 tick_broadcast_setup_oneshot(struct clock_event_device *bc, bool from_periodic) { BUG(); } in tick_broadcast_setup_oneshot() argument 48 static inline void tick_resume_broadcast_oneshot(struct clock_event_device *bc) { } in tick_resume_broadcast_oneshot() argument 77 static void tick_broadcast_start_periodic(struct clock_event_device *bc) in tick_broadcast_start_periodic() argument 79 if (bc) in tick_broadcast_start_periodic() 80 tick_setup_periodic(bc, 1); in tick_broadcast_start_periodic() 249 struct clock_event_device *bc = tick_broadcast_device.evtdev; in tick_device_uses_broadcast() local 266 tick_broadcast_start_periodic(bc); in tick_device_uses_broadcast() 268 tick_broadcast_setup_oneshot(bc, false); in tick_device_uses_broadcast() [all …]
|
/openbmc/qemu/hw/arm/ |
H A D | bcm2836.c | 27 BCM283XBaseClass *bc = BCM283X_BASE_GET_CLASS(obj); in bcm283x_base_init() local 30 for (n = 0; n < bc->core_count; n++) { in bcm283x_base_init() 32 bc->cpu_type); in bcm283x_base_init() 34 if (bc->core_count > 1) { in bcm283x_base_init() 36 qdev_prop_set_uint32(DEVICE(obj), "enabled-cpus", bc->core_count); in bcm283x_base_init() 39 if (bc->ctrl_base) { in bcm283x_base_init() 65 BCM283XBaseClass *bc = BCM283X_BASE_GET_CLASS(dev); in bcm283x_common_realize() local 80 sysbus_mmio_map_overlap(SYS_BUS_DEVICE(ps), 0, bc->peri_base, 1); in bcm283x_common_realize() 111 BCM283XBaseClass *bc = BCM283X_BASE_GET_CLASS(dev); in bcm2836_realize() local 124 sysbus_mmio_map(SYS_BUS_DEVICE(&s_base->control), 0, bc->ctrl_base); in bcm2836_realize() [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/gt/ |
H A D | gen7_renderclear.c | 91 static void batch_init(struct batch_chunk *bc, in batch_init() argument 95 bc->vma = vma; in batch_init() 96 bc->offset = offset; in batch_init() 97 bc->start = start + bc->offset / sizeof(*bc->start); in batch_init() 98 bc->end = bc->start; in batch_init() 99 bc->max_items = max_bytes / sizeof(*bc->start); in batch_init() 102 static u32 batch_offset(const struct batch_chunk *bc, u32 *cs) in batch_offset() argument 104 return (cs - bc->start) * sizeof(*bc->start) + bc->offset; in batch_offset() 107 static u32 batch_addr(const struct batch_chunk *bc) in batch_addr() argument 109 return i915_vma_offset(bc->vma); in batch_addr() [all …]
|
/openbmc/linux/fs/ocfs2/ |
H A D | blockcheck.c | 337 * data is the block to be checked. bc is a pointer to the 340 * bc should be a pointer inside data, as the function will 342 * bc does not point inside data, the caller must make sure any inline 346 * bc will be filled with little-endian values and will be ready to go to 350 struct ocfs2_block_check *bc) in ocfs2_block_check_compute() argument 355 memset(bc, 0, sizeof(struct ocfs2_block_check)); in ocfs2_block_check_compute() 366 bc->bc_crc32e = cpu_to_le32(crc); in ocfs2_block_check_compute() 367 bc->bc_ecc = cpu_to_le16((u16)ecc); in ocfs2_block_check_compute() 372 * the function will take care of zeroing bc before calculating check codes. 373 * If bc is not a pointer inside data, the caller must have zeroed any [all …]
|
H A D | blockcheck.h | 31 struct ocfs2_block_check *bc); 33 struct ocfs2_block_check *bc); 36 struct ocfs2_block_check *bc); 39 struct ocfs2_block_check *bc); 43 struct ocfs2_block_check *bc); 45 struct ocfs2_block_check *bc, 48 struct ocfs2_block_check *bc); 50 struct ocfs2_block_check *bc,
|
/openbmc/linux/drivers/spmi/ |
H A D | hisi-spmi-controller.c | 112 u8 opc, u8 slave_id, u16 slave_addr, u8 *__buf, size_t bc) in spmi_read_cmd() argument 122 if (bc > SPMI_CONTROLLER_MAX_TRANS_BYTES) { in spmi_read_cmd() 125 SPMI_CONTROLLER_MAX_TRANS_BYTES, bc); in spmi_read_cmd() 146 ((bc - 1) << SPMI_APB_SPMI_CMD_LENGTH_OFFSET) | in spmi_read_cmd() 159 for (i = 0; bc > i * SPMI_PER_DATAREG_BYTE; i++) { in spmi_read_cmd() 165 if ((bc - i * SPMI_PER_DATAREG_BYTE) >> 2) { in spmi_read_cmd() 169 memcpy(buf, &data, bc % SPMI_PER_DATAREG_BYTE); in spmi_read_cmd() 170 buf += (bc % SPMI_PER_DATAREG_BYTE); in spmi_read_cmd() 178 "spmi read wait timeout op:0x%x slave_id:%d slave_addr:0x%x bc:%zu\n", in spmi_read_cmd() 179 opc, slave_id, slave_addr, bc + 1); in spmi_read_cmd() [all …]
|
/openbmc/linux/drivers/md/ |
H A D | dm-bufio.c | 411 static inline void cache_read_lock(struct dm_buffer_cache *bc, sector_t block) in cache_read_lock() argument 413 if (static_branch_unlikely(&no_sleep_enabled) && bc->no_sleep) in cache_read_lock() 414 read_lock_bh(&bc->trees[cache_index(block, bc->num_locks)].u.spinlock); in cache_read_lock() 416 down_read(&bc->trees[cache_index(block, bc->num_locks)].u.lock); in cache_read_lock() 419 static inline void cache_read_unlock(struct dm_buffer_cache *bc, sector_t block) in cache_read_unlock() argument 421 if (static_branch_unlikely(&no_sleep_enabled) && bc->no_sleep) in cache_read_unlock() 422 read_unlock_bh(&bc->trees[cache_index(block, bc->num_locks)].u.spinlock); in cache_read_unlock() 424 up_read(&bc->trees[cache_index(block, bc->num_locks)].u.lock); in cache_read_unlock() 427 static inline void cache_write_lock(struct dm_buffer_cache *bc, sector_t block) in cache_write_lock() argument 429 if (static_branch_unlikely(&no_sleep_enabled) && bc->no_sleep) in cache_write_lock() [all …]
|
/openbmc/qemu/ |
H A D | event-loop-base.c | 55 EventLoopBaseClass *bc = EVENT_LOOP_BASE_GET_CLASS(obj); in event_loop_base_set_param() local 73 if (bc->update_params) { in event_loop_base_set_param() 74 bc->update_params(base, errp); in event_loop_base_set_param() 82 EventLoopBaseClass *bc = EVENT_LOOP_BASE_GET_CLASS(uc); in event_loop_base_complete() local 85 if (bc->init) { in event_loop_base_complete() 86 bc->init(base, errp); in event_loop_base_complete() 92 EventLoopBaseClass *bc = EVENT_LOOP_BASE_GET_CLASS(uc); in event_loop_base_can_be_deleted() local 95 if (bc->can_be_deleted) { in event_loop_base_can_be_deleted() 96 return bc->can_be_deleted(backend); in event_loop_base_can_be_deleted()
|
/openbmc/qemu/audio/ |
H A D | dsound_template.h | 176 DSCBCAPS bc; in dsound_init_in() local 182 DSBCAPS bc; in dsound_init_in() local 233 memset (&bc, 0, sizeof (bc)); in dsound_init_in() 234 bc.dwSize = sizeof (bc); in dsound_init_in() 236 hr = glue (IFACE, _GetCaps) (ds->FIELD, &bc); in dsound_init_in() 251 if (bc.dwBufferBytes % hw->info.bytes_per_frame) { in dsound_init_in() 254 bc.dwBufferBytes, hw->info.bytes_per_frame in dsound_init_in() 257 hw->size_emul = bc.dwBufferBytes; in dsound_init_in() 258 hw->samples = bc.dwBufferBytes / hw->info.bytes_per_frame; in dsound_init_in() 263 bc.dwBufferBytes, bd.dwBufferBytes); in dsound_init_in()
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_itable.c | 42 * bc->breq->lastino is effectively the inode cursor as we walk through the 61 struct xfs_bstat_chunk *bc) in xfs_bulkstat_one_int() argument 66 struct xfs_bulkstat *buf = bc->buf; in xfs_bulkstat_one_int() 123 if (!(bc->breq->flags & XFS_IBULK_NREXT64)) in xfs_bulkstat_one_int() 161 error = bc->formatter(bc->breq, buf); in xfs_bulkstat_one_int() 174 bc->breq->startino = ino + 1; in xfs_bulkstat_one_int() 185 struct xfs_bstat_chunk bc = { in xfs_bulkstat_one() local 200 bc.buf = kmem_zalloc(sizeof(struct xfs_bulkstat), in xfs_bulkstat_one() 202 if (!bc.buf) in xfs_bulkstat_one() 214 breq->startino, &bc); in xfs_bulkstat_one() [all …]
|
/openbmc/openbmc/poky/meta/recipes-extended/bc/ |
H A D | bc_1.08.1.bb | 2 HOMEPAGE = "http://www.gnu.org/software/bc/bc.html" 3 DESCRIPTION = "bc is an arbitrary precision numeric processing language. Syntax is similar to C, bu… 8 file://bc/bcdefs.h;endline=17;md5=4295c06df9e833519a342f7b5d43db06 \ 29 ALTERNATIVE:${PN} = "bc dc"
|
/openbmc/qemu/hw/core/ |
H A D | bus.c | 106 BusClass *bc; in qbus_init_internal() local 119 bc = BUS_GET_CLASS(bus); in qbus_init_internal() 120 bus_id = bc->automatic_ids++; in qbus_init_internal() 192 BusClass *bc = BUS_GET_CLASS(bus); in bus_set_realized() local 196 if (bc->realize) { in bus_set_realized() 197 bc->realize(bus, errp); in bus_set_realized() 208 if (bc->unrealize) { in bus_set_realized() 209 bc->unrealize(bus); in bus_set_realized() 237 BusClass *bc = BUS_CLASS(class); in bus_class_init() local 241 bc->get_fw_dev_path = default_bus_get_fw_dev_path; in bus_class_init()
|
/openbmc/linux/block/ |
H A D | blk-crypto.c | 94 struct bio_crypt_ctx *bc; in bio_crypt_set_ctx() local 102 bc = mempool_alloc(bio_crypt_ctx_pool, gfp_mask); in bio_crypt_set_ctx() 104 bc->bc_key = key; in bio_crypt_set_ctx() 105 memcpy(bc->bc_dun, dun, sizeof(bc->bc_dun)); in bio_crypt_set_ctx() 107 bio->bi_crypt_context = bc; in bio_crypt_set_ctx() 146 struct bio_crypt_ctx *bc = bio->bi_crypt_context; in __bio_crypt_advance() local 148 bio_crypt_dun_increment(bc->bc_dun, in __bio_crypt_advance() 149 bytes >> bc->bc_key->data_unit_size_bits); in __bio_crypt_advance() 153 * Returns true if @bc->bc_dun plus @bytes converted to data units is equal to 156 bool bio_crypt_dun_is_contiguous(const struct bio_crypt_ctx *bc, in bio_crypt_dun_is_contiguous() argument [all …]
|
/openbmc/linux/drivers/media/pci/solo6x10/ |
H A D | Kconfig | 17 * Bluecherry BC-H16480A (PCIe, 16 port, H.264) 18 * Bluecherry BC-H04120A (PCIe, 4 port, H.264) 19 * Bluecherry BC-H04120A-MPCI (Mini-PCI, 4 port, H.264) 20 * Bluecherry BC-04120A (PCIe, 4 port, MPEG-4)
|