| /linux/drivers/net/hamradio/ |
| 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() 352 struct ehv_bc_data *bc = data; in ehv_bc_tty_rx_isr() local 362 ev_byte_channel_poll(bc->handle, &rx_count, &tx_count); in ehv_bc_tty_rx_isr() [all …]
|
| /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 | 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/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/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/lib/crypto/ |
| H A D | sha3.c | 54 u64 t[5], tt, bc[5]; in sha3_keccakf_one_round_generic() local 57 bc[0] = st[0] ^ st[5] ^ st[10] ^ st[15] ^ st[20]; in sha3_keccakf_one_round_generic() 58 bc[1] = st[1] ^ st[6] ^ st[11] ^ st[16] ^ st[21]; in sha3_keccakf_one_round_generic() 59 bc[2] = st[2] ^ st[7] ^ st[12] ^ st[17] ^ st[22]; in sha3_keccakf_one_round_generic() 60 bc[3] = st[3] ^ st[8] ^ st[13] ^ st[18] ^ st[23]; in sha3_keccakf_one_round_generic() 61 bc[4] = st[4] ^ st[9] ^ st[14] ^ st[19] ^ st[24]; in sha3_keccakf_one_round_generic() 63 t[0] = bc[4] ^ rol64(bc[1], 1); in sha3_keccakf_one_round_generic() 64 t[1] = bc[0] ^ rol64(bc[2], 1); in sha3_keccakf_one_round_generic() 65 t[2] = bc[1] ^ rol64(bc[3], 1); in sha3_keccakf_one_round_generic() 66 t[3] = bc[2] ^ rol64(bc[4], 1); in sha3_keccakf_one_round_generic() [all …]
|
| /linux/drivers/clk/imx/ |
| H A D | clk-imx95-blk-ctl.c | 353 struct imx95_blk_ctl *bc; in imx95_bc_probe() local 359 bc = devm_kzalloc(dev, sizeof(*bc), GFP_KERNEL); in imx95_bc_probe() 360 if (!bc) in imx95_bc_probe() 362 bc->dev = dev; in imx95_bc_probe() 363 dev_set_drvdata(&pdev->dev, bc); in imx95_bc_probe() 365 spin_lock_init(&bc->lock); in imx95_bc_probe() 371 bc->base = base; in imx95_bc_probe() 372 bc->clk_apb = devm_clk_get(dev, NULL); in imx95_bc_probe() 373 if (IS_ERR(bc->clk_apb)) in imx95_bc_probe() 374 return dev_err_probe(dev, PTR_ERR(bc->clk_apb), "failed to get APB clock\n"); in imx95_bc_probe() [all …]
|
| /linux/fs/ocfs2/ |
| H A D | blockcheck.c | 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() 379 struct ocfs2_block_check *bc, in ocfs2_block_check_validate() argument 389 bc_crc32e = le32_to_cpu(bc->bc_crc32e); in ocfs2_block_check_validate() 390 bc_ecc = le16_to_cpu(bc->bc_ecc); in ocfs2_block_check_validate() 392 memset(bc, 0, sizeof(struct ocfs2_block_check)); in ocfs2_block_check_validate() 421 bc->bc_crc32e = cpu_to_le32(bc_crc32e); in ocfs2_block_check_validate() 422 bc->bc_ecc = cpu_to_le16(bc_ecc); in ocfs2_block_check_validate() [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/fs/xfs/ |
| H A D | xfs_itable.c | 69 struct xfs_bstat_chunk *bc) in xfs_bulkstat_one_int() argument 74 struct xfs_bulkstat *buf = bc->buf; in xfs_bulkstat_one_int() 109 if (want_metadir_file(ip, bc->breq)) { in xfs_bulkstat_one_int() 119 error = bc->formatter(bc->breq, buf); in xfs_bulkstat_one_int() 156 if (!(bc->breq->flags & XFS_IBULK_NREXT64)) in xfs_bulkstat_one_int() 194 error = bc->formatter(bc->breq, buf); in xfs_bulkstat_one_int() 207 bc->breq->startino = ino + 1; in xfs_bulkstat_one_int() 218 struct xfs_bstat_chunk bc = { in xfs_bulkstat_one() local 233 bc.buf = kzalloc(sizeof(struct xfs_bulkstat), in xfs_bulkstat_one() 235 if (!bc.buf) in xfs_bulkstat_one() [all …]
|
| /linux/drivers/android/binder/ |
| H A D | stats.rs | 17 bc: [AtomicU32; BC_COUNT], field 27 bc: [ZERO; BC_COUNT], in new() 32 pub(crate) fn inc_bc(&self, bc: u32) { in inc_bc() 33 let idx = _IOC_NR(bc) as usize; in inc_bc() 34 if let Some(bc_ref) = self.bc.get(idx) { in inc_bc() 47 for (i, cnt) in self.bc.iter().enumerate() { in debug_print()
|
| /linux/block/ |
| H A D | blk-crypto.c | 104 struct bio_crypt_ctx *bc; in bio_crypt_set_ctx() local 112 bc = mempool_alloc(bio_crypt_ctx_pool, gfp_mask); in bio_crypt_set_ctx() 114 bc->bc_key = key; in bio_crypt_set_ctx() 115 memcpy(bc->bc_dun, dun, sizeof(bc->bc_dun)); in bio_crypt_set_ctx() 117 bio->bi_crypt_context = bc; in bio_crypt_set_ctx() 156 struct bio_crypt_ctx *bc = bio->bi_crypt_context; in __bio_crypt_advance() local 158 bio_crypt_dun_increment(bc->bc_dun, in __bio_crypt_advance() 159 bytes >> bc->bc_key->data_unit_size_bits); in __bio_crypt_advance() 166 bool bio_crypt_dun_is_contiguous(const struct bio_crypt_ctx *bc, in bio_crypt_dun_is_contiguous() argument 171 unsigned int carry = bytes >> bc->bc_key->data_unit_size_bits; in bio_crypt_dun_is_contiguous() [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 …]
|
| /linux/sound/soc/intel/atom/ |
| H A D | sst-atom-controls.c | 266 struct sst_algo_control *bc) in sst_send_algo_cmd() argument 272 len = sizeof(cmd->dst) + sizeof(cmd->command_id) + bc->max; in sst_send_algo_cmd() 278 SST_FILL_DESTINATION(2, cmd->dst, bc->pipe_id, bc->module_id); in sst_send_algo_cmd() 279 cmd->command_id = bc->cmd_id; in sst_send_algo_cmd() 280 memcpy(cmd->params, bc->params, bc->max); in sst_send_algo_cmd() 283 SST_FLAG_BLOCKED, bc->task_id, 0, cmd, len); in sst_send_algo_cmd() 301 struct sst_algo_control *bc; in sst_find_and_send_pipe_algo() local 307 bc = (void *)algo->kctl->private_value; in sst_find_and_send_pipe_algo() 311 ret = sst_send_algo_cmd(drv, bc); in sst_find_and_send_pipe_algo() 321 struct sst_algo_control *bc = (void *)kcontrol->private_value; in sst_algo_bytes_ctl_info() local [all …]
|
| /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() 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() 226 destroy_workqueue(bc->bc_async_wq); in qlcnic_sriov_init() 229 destroy_workqueue(bc->bc_trans_wq); in qlcnic_sriov_init() [all …]
|
| /linux/tools/testing/selftests/amd-pstate/ |
| H A D | gitsource.sh | 131 ppw=`echo "scale=9;1/$en_sum" | bc | awk '{printf "%.9f", $0}'` 189 ppw=`echo "scale=9;1/$avg_en" | bc | awk '{printf "%.9f", $0}'` 225 …des_perf_drop=`echo "scale=4;($des_perf_comp-$des_perf_base)*100/$des_perf_base" | bc | awk '{prin… 228 freq_drop=`echo "scale=4;($freq_comp-$freq_base)*100/$freq_base" | bc | awk '{printf "%.4f", $0}'` 231 load_drop=`echo "scale=4;($load_comp-$load_base)*100/$load_base" | bc | awk '{printf "%.4f", $0}'` 234 time_drop=`echo "scale=4;($time_comp-$time_base)*100/$time_base" | bc | awk '{printf "%.4f", $0}'` 237 …energy_drop=`echo "scale=4;($energy_comp-$energy_base)*100/$energy_base" | bc | awk '{printf "%.4f… 240 ppw_drop=`echo "scale=4;($ppw_comp-$ppw_base)*100/$ppw_base" | bc | awk '{printf "%.4f", $0}'`
|
| H A D | tbench.sh | 113 ppw=`echo "scale=4;($TIME_LIMIT-1)*$tp_sum/$en_sum" | bc | awk '{printf "%.4f", $0}'` 171 ppw=`echo "scale=4;($TIME_LIMIT-1)*$avg_tp/$avg_en" | bc | awk '{printf "%.4f", $0}'` 207 …des_perf_drop=`echo "scale=4;($des_perf_comp-$des_perf_base)*100/$des_perf_base" | bc | awk '{prin… 210 freq_drop=`echo "scale=4;($freq_comp-$freq_base)*100/$freq_base" | bc | awk '{printf "%.4f", $0}'` 213 load_drop=`echo "scale=4;($load_comp-$load_base)*100/$load_base" | bc | awk '{printf "%.4f", $0}'` 216 perf_drop=`echo "scale=4;($perf_comp-$perf_base)*100/$perf_base" | bc | awk '{printf "%.4f", $0}'` 219 …energy_drop=`echo "scale=4;($energy_comp-$energy_base)*100/$energy_base" | bc | awk '{printf "%.4f… 222 ppw_drop=`echo "scale=4;($ppw_comp-$ppw_base)*100/$ppw_base" | bc | awk '{printf "%.4f", $0}'`
|
| /linux/arch/mips/include/asm/pci/ |
| H A D | bridge.h | 818 #define bridge_read(bc, reg) __raw_readl(&bc->base->reg) argument 819 #define bridge_write(bc, reg, val) __raw_writel(val, &bc->base->reg) argument 820 #define bridge_set(bc, reg, val) \ argument 821 __raw_writel(__raw_readl(&bc->base->reg) | (val), &bc->base->reg) 822 #define bridge_clr(bc, reg, val) \ argument 823 __raw_writel(__raw_readl(&bc->base->reg) & ~(val), &bc->base->reg)
|
| /linux/tools/testing/selftests/net/forwarding/ |
| H A D | sch_ets_tests.sh | 54 local ratio=$(echo "scale=2; 100 * $d / $total" | bc -l) 56 test $(echo "$ratio > 95.0" | bc -l) -eq 1 61 test $(echo "$ratio < 5" | bc -l) -eq 1 106 total=$(echo ${d[@]} | sed 's/ /+/g' | bc)
|
| /linux/drivers/spmi/ |
| H A D | spmi-pmic-arb.c | 235 u32 (*fmt_cmd)(u8 opc, u8 sid, u16 addr, u8 bc); 267 pmic_arb_read_data(struct spmi_pmic_arb *pmic_arb, u8 *buf, u32 reg, u8 bc) in pmic_arb_read_data() argument 271 memcpy(buf, &data, (bc & 3) + 1); in pmic_arb_read_data() 282 u32 reg, u8 bc) in pmic_arb_write_data() argument 286 memcpy(&data, buf, (bc & 3) + 1); in pmic_arb_write_data() 391 u8 bc = len - 1; in pmic_arb_fmt_read_cmd() local 400 if (bc >= PMIC_ARB_MAX_TRANS_BYTES) { in pmic_arb_fmt_read_cmd() 416 *cmd = pmic_arb->ver_ops->fmt_cmd(opc, sid, addr, bc); in pmic_arb_fmt_read_cmd() 427 u8 bc = len - 1; in pmic_arb_read_cmd_unlocked() local 437 min_t(u8, bc, 3)); in pmic_arb_read_cmd_unlocked() [all …]
|