/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 …]
|
/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() 176 fill_mem(struct tiger_ch *bc, u32 idx, u32 cnt, u32 fill) in fill_mem() argument 178 struct tiger_hw *card = bc->bch.hw; in fill_mem() 182 bc->bch.nr, fill, cnt, idx, card->send.idx); in fill_mem() 183 if (bc->bch.nr & 2) { in fill_mem() 199 mode_tiger(struct tiger_ch *bc, u32 protocol) in mode_tiger() argument 201 struct tiger_hw *card = bc->bch.hw; in mode_tiger() 204 bc->bch.nr, bc->bch.state, protocol); in mode_tiger() [all …]
|
H A D | w6692.c | 66 struct w6692_ch bc[2]; member 83 card->bc[0].bch.debug = debug; in _set_debug() 84 card->bc[1].bch.debug = debug; in _set_debug() 127 ReadW6692B(struct w6692_ch *bc, u8 offset) in ReadW6692B() argument 129 return inb(bc->addr + offset); in ReadW6692B() 133 WriteW6692B(struct w6692_ch *bc, u8 offset, u8 value) in WriteW6692B() argument 135 outb(value, bc->addr + offset); in WriteW6692B() 651 struct w6692_ch *wch = &card->bc[ch]; in W6692B_interrupt() 838 w6692_mode(&card->bc[0], ISDN_P_NONE); in initW6692() 839 w6692_mode(&card->bc[1], ISDN_P_NONE); in initW6692() [all …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/linux/fs/bcachefs/ |
H A D | btree_cache.c | 23 bc->not_freed[BCH_BTREE_CACHE_NOT_FREED_##counter]++; \ 52 struct btree_cache *bc = container_of(list, struct btree_cache, live[list->idx]); in btree_cache_can_free() local 56 can_free = max_t(ssize_t, 0, can_free - bc->nr_reserve); in btree_cache_can_free() 60 static void btree_node_to_freedlist(struct btree_cache *bc, struct btree *b) in btree_node_to_freedlist() argument 65 list_add(&b->list, &bc->freed_pcpu); in btree_node_to_freedlist() 67 list_add(&b->list, &bc->freed_nonpcpu); in btree_node_to_freedlist() 70 static void __bch2_btree_node_to_freelist(struct btree_cache *bc, struct btree *b) in __bch2_btree_node_to_freelist() argument 75 bc->nr_freeable++; in __bch2_btree_node_to_freelist() 76 list_add(&b->list, &bc->freeable); in __bch2_btree_node_to_freelist() 81 struct btree_cache *bc = &c->btree_cache; in bch2_btree_node_to_freelist() local [all …]
|
H A D | btree_key_cache.c | 104 static void bkey_cached_free(struct btree_key_cache *bc, in bkey_cached_free() argument 115 rcu_pending_enqueue(&bc->pending[pcpu_readers], &ck->rcu); in bkey_cached_free() 116 this_cpu_inc(*bc->nr_pending); in bkey_cached_free() 139 struct btree_key_cache *bc = &c->btree_key_cache; in bkey_cached_alloc() local 144 rcu_pending_dequeue(&bc->pending[pcpu_readers]), in bkey_cached_alloc() 164 ck = container_of_or_null(rcu_pending_dequeue_from_all(&bc->pending[pcpu_readers]), in bkey_cached_alloc() 204 struct btree_key_cache *bc = &c->btree_key_cache; in btree_key_cache_create() local 226 ck = bkey_cached_reuse(bc); in btree_key_cache_create() 261 ret = rhashtable_lookup_insert_fast(&bc->table, &ck->hash, bch2_btree_key_cache_params); in btree_key_cache_create() 265 atomic_long_inc(&bc->nr_keys); in btree_key_cache_create() [all …]
|
/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 …]
|
/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 …]
|
/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,
|
/linux/drivers/clk/imx/ |
H A D | clk-imx95-blk-ctl.c | 284 struct imx95_blk_ctl *bc; in imx95_bc_probe() local 290 bc = devm_kzalloc(dev, sizeof(*bc), GFP_KERNEL); in imx95_bc_probe() 291 if (!bc) in imx95_bc_probe() 293 bc->dev = dev; in imx95_bc_probe() 294 dev_set_drvdata(&pdev->dev, bc); in imx95_bc_probe() 296 spin_lock_init(&bc->lock); in imx95_bc_probe() 302 bc->base = base; in imx95_bc_probe() 303 bc->clk_apb = devm_clk_get(dev, NULL); in imx95_bc_probe() 304 if (IS_ERR(bc->clk_apb)) in imx95_bc_probe() 305 return dev_err_probe(dev, PTR_ERR(bc->clk_apb), "failed to get APB clock\n"); in imx95_bc_probe() [all …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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)
|
/linux/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_sriov_common.c | 143 struct qlcnic_back_channel *bc; in qlcnic_sriov_init() local 158 bc = &sriov->bc; in qlcnic_sriov_init() 166 wq = create_singlethread_workqueue("bc-trans"); in qlcnic_sriov_init() 170 "Cannot create bc-trans workqueue\n"); in qlcnic_sriov_init() 174 bc->bc_trans_wq = wq; in qlcnic_sriov_init() 183 bc->bc_async_wq = wq; in qlcnic_sriov_init() 184 INIT_LIST_HEAD(&bc->async_cmd_list); in qlcnic_sriov_init() 185 INIT_WORK(&bc->vf_async_work, qlcnic_sriov_handle_async_issue_cmd); in qlcnic_sriov_init() 186 spin_lock_init(&bc->queue_lock); in qlcnic_sriov_init() 187 bc->adapter = adapter; in qlcnic_sriov_init() [all …]
|
/linux/arch/parisc/kernel/ |
H A D | drivers.c | 313 memset(&path->bc, -1, 6); in get_node_path() 318 path->bc[i--] = PCI_SLOT(devfn); in get_node_path() 325 path->bc[i--] = PCI_SLOT(devfn) | (PCI_FUNC(devfn)<< 5); in get_node_path() 327 path->bc[i--] = to_parisc_device(dev)->hw_path; in get_node_path() 337 if (path->bc[i] == -1) in print_hwpath() 339 output += sprintf(output, "%u/", (unsigned char) path->bc[i]); in print_hwpath() 410 if (path.bc[i] == -1) in setup_bus_id() 412 output += sprintf(output, "%u:", (unsigned char) path.bc[i]); in setup_bus_id() 487 if (modpath->bc[i] == -1) in create_parisc_device() 489 parent = &alloc_tree_node(parent, modpath->bc[i])->dev; in create_parisc_device() [all …]
|