/linux-6.3-rc2/drivers/net/hamradio/ |
A D | baycom_ser_hdx.c | 181 #define SER12_ARB_DIVIDER(bc) (bc->opt_dcd ? 24 : 36) argument 183 #define SER12_DCD_INTERVAL(bc) (bc->opt_dcd ? 12 : 240) argument 196 bc->modem.ser12.tx_bit = !(bc->modem.ser12.tx_bit ^ in ser12_tx() 234 bc->modem.ser12.dcd_sum2 = bc->modem.ser12.dcd_sum1; in ser12_rx() 235 bc->modem.ser12.dcd_sum1 = bc->modem.ser12.dcd_sum0; in ser12_rx() 238 bc->modem.ser12.dcd_time = SER12_DCD_INTERVAL(bc); in ser12_rx() 341 hdlcdrv_putbits(&bc->hdrv, bc->modem.shreg >> 1); in ser12_rx() 355 bc->modem.ser12.dcd_time = SER12_DCD_INTERVAL(bc); in ser12_rx() 368 if (!dev || !bc || bc->hdrv.magic != HDLCDRV_MAGIC) in ser12_interrupt() 404 bc->modem.arb_divider = SER12_ARB_DIVIDER(bc); in ser12_interrupt() [all …]
|
A D | baycom_epp.c | 306 bc->cfg.extmodem ? "ext" : "int", bc->cfg.fclk, bc->cfg.bps, in eppconfig() 307 (bc->cfg.fclk + 8 * bc->cfg.bps) / (16 * bc->cfg.bps), in eppconfig() 412 bc->hdlctx.bufptr = bc->hdlctx.buf; in encode_hdlc() 413 bc->hdlctx.bufcnt = wp - bc->hdlctx.buf; in encode_hdlc() 440 bc->hdlctx.slotcnt = bc->ch_params.slottime; in transmit() 447 bc->hdlctx.flags = tenms_to_flags(bc, bc->ch_params.tx_delay); in transmit() 472 bc->hdlctx.flags = tenms_to_flags(bc, bc->ch_params.tx_tail); in transmit() 594 bc->hdlcrx.bufptr = bc->hdlcrx.buf; in receive() 842 memset(&bc->modem, 0, sizeof(bc->modem)); in epp_open() 927 bc->hdlctx.slotcnt = bc->ch_params.slottime; in epp_open() [all …]
|
A D | baycom_ser_fdx.c | 155 bc->debug_vals.last_intcnt = bc->debug_vals.cur_intcnt; in baycom_int_freq() 204 bc->modem.ser12.pll_time += bc->baud_us; in ser12_rx() 219 bc->modem.ser12.dcd_sum2 = bc->modem.ser12.dcd_sum1; in ser12_rx() 220 bc->modem.ser12.dcd_sum1 = bc->modem.ser12.dcd_sum0; in ser12_rx() 255 if (!bc || bc->hdrv.magic != HDLCDRV_MAGIC) in ser12_interrupt() 314 bc->modem.ser12.tx_bit = !(bc->modem.ser12.tx_bit ^ (bc->modem.ser12.txshreg & 1)); in ser12_interrupt() 388 if (bc->baud < 300 || bc->baud > 4800) { in ser12_open() 398 memset(&bc->modem, 0, sizeof(bc->modem)); in ser12_open() 399 bc->hdrv.par.bitrate = bc->baud; in ser12_open() 400 bc->baud_us = 1000000/bc->baud; in ser12_open() [all …]
|
A D | baycom_par.c | 153 bc->debug_vals.last_intcnt = bc->debug_vals.cur_intcnt; in baycom_int_freq() 155 bc->debug_vals.last_pllcorr = bc->debug_vals.cur_pllcorr; in baycom_int_freq() 187 bc->modem.par96.scram = ((bc->modem.par96.scram << 1) | in par96_tx() 213 bc->modem.par96.descram = (bc->modem.par96.descram << 1); in par96_rx() 232 bc->modem.par96.dcd_shreg = (bc->modem.par96.dcd_shreg >> 16) in par96_rx() 248 hdlcdrv_setdcd(&bc->hdrv, bc->modem.par96.dcd_count > 0); in par96_rx() 302 if (!dev || !bc) in par96_open() 319 memset(&bc->modem, 0, sizeof(bc->modem)); in par96_open() 337 if (!bc->pdev) { in par96_open() 364 if (!dev || !bc) in par96_close() [all …]
|
/linux-6.3-rc2/drivers/tty/ |
A D | ehv_bytechan.c | 419 ret = local_ev_byte_channel_send(bc->handle, &len, bc->buf + bc->tail); in ehv_bc_tx_dequeue() 423 bc->tail = (bc->tail + len) & (BUF_SIZE - 1); in ehv_bc_tx_dequeue() 425 count = CIRC_CNT(bc->head, bc->tail, BUF_SIZE); in ehv_bc_tx_dequeue() 430 if (CIRC_CNT(bc->head, bc->tail, BUF_SIZE)) in ehv_bc_tx_dequeue() 483 memcpy(bc->buf + bc->head, s, len); in ehv_bc_tty_write() 484 bc->head = (bc->head + len) & (BUF_SIZE - 1); in ehv_bc_tty_write() 546 count = CIRC_SPACE(bc->head, bc->tail, BUF_SIZE); in ehv_bc_tty_write_room() 642 free_irq(bc->rx_irq, bc); in ehv_bc_tty_port_activate() 658 free_irq(bc->tx_irq, bc); in ehv_bc_tty_port_shutdown() 659 free_irq(bc->rx_irq, bc); in ehv_bc_tty_port_shutdown() [all …]
|
/linux-6.3-rc2/drivers/soc/imx/ |
A D | imx8mp-blk-ctrl.c | 67 struct imx8mp_blk_ctrl *bc; member 527 struct imx8mp_blk_ctrl *bc = domain->bc; in imx8mp_blk_ctrl_power_on() local 545 bc->power_on(bc, domain); in imx8mp_blk_ctrl_power_on() 574 struct imx8mp_blk_ctrl *bc = domain->bc; in imx8mp_blk_ctrl_power_off() local 584 bc->power_off(bc, domain); in imx8mp_blk_ctrl_power_off() 613 bc = devm_kzalloc(dev, sizeof(*bc), GFP_KERNEL); in imx8mp_blk_ctrl_probe() 614 if (!bc) in imx8mp_blk_ctrl_probe() 617 bc->dev = dev; in imx8mp_blk_ctrl_probe() 635 if (!bc->domains) in imx8mp_blk_ctrl_probe() 701 domain->bc = bc; in imx8mp_blk_ctrl_probe() [all …]
|
A D | imx8m-blk-ctrl.c | 67 struct imx8m_blk_ctrl *bc; member 88 struct imx8m_blk_ctrl *bc = domain->bc; in imx8m_blk_ctrl_power_on() local 148 struct imx8m_blk_ctrl *bc = domain->bc; in imx8m_blk_ctrl_power_off() local 172 struct imx8m_blk_ctrl *bc; in imx8m_blk_ctrl_probe() local 182 bc = devm_kzalloc(dev, sizeof(*bc), GFP_KERNEL); in imx8m_blk_ctrl_probe() 183 if (!bc) in imx8m_blk_ctrl_probe() 186 bc->dev = dev; in imx8m_blk_ctrl_probe() 196 if (IS_ERR(bc->regmap)) in imx8m_blk_ctrl_probe() 203 if (!bc->domains) in imx8m_blk_ctrl_probe() 271 domain->bc = bc; in imx8m_blk_ctrl_probe() [all …]
|
A D | imx93-blk-ctrl.c | 104 struct imx93_blk_ctrl *bc = domain->bc; in imx93_blk_ctrl_set_qos() local 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() 140 clk_bulk_disable_unprepare(bc->num_clks, bc->clks); in imx93_blk_ctrl_power_on() 165 clk_bulk_disable_unprepare(bc->num_clks, bc->clks); in imx93_blk_ctrl_power_on() 174 struct imx93_blk_ctrl *bc = domain->bc; in imx93_blk_ctrl_power_off() local 185 clk_bulk_disable_unprepare(bc->num_clks, bc->clks); in imx93_blk_ctrl_power_off() 207 bc = devm_kzalloc(dev, sizeof(*bc), GFP_KERNEL); in imx93_blk_ctrl_probe() 208 if (!bc) in imx93_blk_ctrl_probe() 239 ret = devm_clk_bulk_get(dev, bc->num_clks, bc->clks); in imx93_blk_ctrl_probe() [all …]
|
/linux-6.3-rc2/crypto/ |
A D | sha3_generic.c | 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() 62 t[4] = bc[3] ^ rol64(bc[0], 1); in keccakf_round() 99 st[ 0] ^= bc[ 0]; in keccakf_round() 100 st[ 1] ^= bc[ 1]; in keccakf_round() 101 st[ 2] ^= bc[ 2]; in keccakf_round() 102 st[ 3] ^= bc[ 3]; in keccakf_round() 103 st[ 4] ^= bc[ 4]; in keccakf_round() [all …]
|
/linux-6.3-rc2/drivers/isdn/hardware/mISDN/ |
A D | netjet.c | 203 bc->bch.nr, bc->bch.state, protocol); in mode_tiger() 435 card->name, bc->bch.nr, bc->bch.maxlen); in read_dma() 481 __func__, bc->bch.nr, bc->free, bc->idx, card->send.idx); in resync() 497 __func__, bc->bch.nr, bc->free, bc->txstate, in fill_hdlc_flag() 502 bc->hsbuf, bc->free); in fill_hdlc_flag() 545 bc->bch.tx_idx, bc->bch.tx_skb->len, bc->txstate, in fill_dma() 553 bc->hsbuf, bc->free); in fill_dma() 605 if (bc->bch.tx_skb && bc->bch.tx_idx < bc->bch.tx_skb->len) { in bc_next_frame() 633 bc->bch.nr, bc->txstate); in send_tiger_bc() 645 bc->bch.nr, bc->free, bc->idx, card->send.idx); in send_tiger_bc() [all …]
|
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() 128 return inb(bc->addr + offset); in ReadW6692B() 134 outb(value, bc->addr + offset); in WriteW6692B() 946 W6692_fill_Bfifo(bc); in w6692_l2l1B() 964 w6692_mode(bc, ISDN_P_NONE); in w6692_l2l1B() 1039 w6692_mode(bc, ISDN_P_NONE); in w6692_bctrl() 1223 card->bc[0].addr = card->addr; in setup_w6692() 1296 card->bc[i].bch.hw = card; in setup_instance() [all …]
|
/linux-6.3-rc2/kernel/time/ |
A D | tick-broadcast.c | 78 if (bc) in tick_broadcast_start_periodic() 316 if (bc && !(bc->features & CLOCK_EVT_FEAT_HRTIMER)) in tick_device_uses_broadcast() 495 if (bc) { in tick_broadcast_control() 556 if (bc) in tick_suspend_broadcast() 587 if (bc) { in tick_resume_broadcast() 647 irq_set_affinity(bc->irq, bc->cpumask); in tick_broadcast_set_affinity() 1027 if (!bc) in tick_broadcast_setup_oneshot() 1079 if (bc) in tick_broadcast_switch_to_oneshot() 1094 if (bc && broadcast_needs_cpu(bc, deadcpu)) { in hotplug_cpu__broadcast_tick_pull() 1096 clockevents_program_event(bc, bc->next_event, 1); in hotplug_cpu__broadcast_tick_pull() [all …]
|
/linux-6.3-rc2/arch/mips/pci/ |
A D | pci-xtalk-bridge.c | 34 return bc->baddr + paddr; in phys_to_dma() 350 data->bc = info->ctrl; in bridge_domain_alloc() 377 struct bridge_controller *bc = data->bc; in bridge_domain_activate() local 454 info.ctrl = bc; in bridge_map_irq() 458 irq = irq_domain_alloc_irqs(bc->domain, 1, bc->nasid, &info); in bridge_map_irq() 647 bc->busn.start = 0; in bridge_probe() 648 bc->busn.end = 0xff; in bridge_probe() 651 bc->domain = domain; in bridge_probe() 661 bc->nasid = bd->nasid; in bridge_probe() 694 bridge_write(bc, b_wid_int_lower, bc->intr_addr & 0xffffffff); in bridge_probe() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/i915/gt/ |
A D | gen7_renderclear.c | 95 bc->vma = vma; 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() 104 return (cs - bc->start) * sizeof(*bc->start) + bc->offset; in batch_offset() 114 GEM_BUG_ON((bc->end - bc->start) >= bc->max_items); in batch_add() 115 *bc->end++ = d; in batch_add() 125 memset32(bc->end, 0, end - bc->end); in batch_alloc_items() 126 bc->end = end; in batch_alloc_items() 129 map = bc->end; in batch_alloc_items() [all …]
|
/linux-6.3-rc2/fs/ocfs2/ |
A D | blockcheck.c | 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() 390 bc_ecc = le16_to_cpu(bc->bc_ecc); in ocfs2_block_check_validate() 422 bc->bc_ecc = cpu_to_le16(bc_ecc); in ocfs2_block_check_validate() 442 struct ocfs2_block_check *bc) in ocfs2_block_check_compute_bhs() argument 472 bc->bc_crc32e = cpu_to_le32(crc); in ocfs2_block_check_compute_bhs() 473 bc->bc_ecc = cpu_to_le16((u16)ecc); in ocfs2_block_check_compute_bhs() 502 bc_ecc = le16_to_cpu(bc->bc_ecc); in ocfs2_block_check_validate_bhs() 553 bc->bc_ecc = cpu_to_le16(bc_ecc); in ocfs2_block_check_validate_bhs() 586 struct ocfs2_block_check *bc) in ocfs2_compute_meta_ecc_bhs() argument [all …]
|
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-6.3-rc2/drivers/spmi/ |
A D | hisi-spmi-controller.c | 122 if (bc > SPMI_CONTROLLER_MAX_TRANS_BYTES) { in spmi_read_cmd() 125 SPMI_CONTROLLER_MAX_TRANS_BYTES, bc); 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() 179 opc, slave_id, slave_addr, bc + 1); in spmi_read_cmd() 198 if (bc > SPMI_CONTROLLER_MAX_TRANS_BYTES) { in spmi_write_cmd() 201 SPMI_CONTROLLER_MAX_TRANS_BYTES, bc); in spmi_write_cmd() 231 if ((bc - i * SPMI_PER_DATAREG_BYTE) >> 2) { in spmi_write_cmd() 236 buf += (bc % SPMI_PER_DATAREG_BYTE); in spmi_write_cmd() [all …]
|
/linux-6.3-rc2/fs/xfs/ |
A D | xfs_itable.c | 61 struct xfs_bstat_chunk *bc) in xfs_bulkstat_one_int() argument 66 struct xfs_bulkstat *buf = bc->buf; in xfs_bulkstat_one_int() 150 error = bc->formatter(bc->breq, buf); in xfs_bulkstat_one_int() 163 bc->breq->startino = ino + 1; in xfs_bulkstat_one_int() 174 struct xfs_bstat_chunk bc = { in xfs_bulkstat_one() local 191 if (!bc.buf) in xfs_bulkstat_one() 203 breq->startino, &bc); in xfs_bulkstat_one() 206 kmem_free(bc.buf); in xfs_bulkstat_one() 265 struct xfs_bstat_chunk bc = { in xfs_bulkstat() local 283 if (!bc.buf) in xfs_bulkstat() [all …]
|
/linux-6.3-rc2/block/ |
A D | blk-crypto.c | 93 struct bio_crypt_ctx *bc; in bio_crypt_set_ctx() local 101 bc = mempool_alloc(bio_crypt_ctx_pool, gfp_mask); in bio_crypt_set_ctx() 103 bc->bc_key = key; in bio_crypt_set_ctx() 104 memcpy(bc->bc_dun, dun, sizeof(bc->bc_dun)); in bio_crypt_set_ctx() 106 bio->bi_crypt_context = bc; in bio_crypt_set_ctx() 145 struct bio_crypt_ctx *bc = bio->bi_crypt_context; in __bio_crypt_advance() local 147 bio_crypt_dun_increment(bc->bc_dun, in __bio_crypt_advance() 148 bytes >> bc->bc_key->data_unit_size_bits); in __bio_crypt_advance() 160 unsigned int carry = bytes >> bc->bc_key->data_unit_size_bits; in bio_crypt_dun_is_contiguous() 163 if (bc->bc_dun[i] + carry != next_dun[i]) in bio_crypt_dun_is_contiguous() [all …]
|
A D | blk-crypto-fallback.c | 264 struct bio_crypt_ctx *bc; in blk_crypto_fallback_encrypt_bio() local 281 bc = src_bio->bi_crypt_context; in blk_crypto_fallback_encrypt_bio() 282 data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in blk_crypto_fallback_encrypt_bio() 296 bc->bc_key, &slot); in blk_crypto_fallback_encrypt_bio() 308 memcpy(curr_dun, bc->bc_dun, sizeof(curr_dun)); in blk_crypto_fallback_encrypt_bio() 381 struct bio_crypt_ctx *bc = &f_ctx->crypt_ctx; in blk_crypto_fallback_decrypt_bio() local 399 bc->bc_key, &slot); in blk_crypto_fallback_decrypt_bio() 411 memcpy(curr_dun, bc->bc_dun, sizeof(curr_dun)); in blk_crypto_fallback_decrypt_bio() 493 struct bio_crypt_ctx *bc = bio->bi_crypt_context; in blk_crypto_fallback_bio_prep() local 503 &bc->bc_key->crypto_cfg)) { in blk_crypto_fallback_bio_prep() [all …]
|
/linux-6.3-rc2/arch/parisc/kernel/ |
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() 337 if (path->bc[i] == -1) in print_hwpath() 410 if (path.bc[i] == -1) in setup_bus_id() 486 if (modpath->bc[i] == -1) in create_parisc_device() 673 return (modpath->bc[index] == id); in match_pci_device() 759 if (modpath->bc[i] == -1) in hwpath_to_device() 1030 (unsigned char)mod_path.path.bc[0], in qemu_print_iodc_data() 1031 (unsigned char)mod_path.path.bc[1], in qemu_print_iodc_data() 1032 (unsigned char)mod_path.path.bc[2], in qemu_print_iodc_data() [all …]
|
/linux-6.3-rc2/sound/soc/intel/atom/ |
A D | sst-atom-controls.c | 278 SST_FILL_DESTINATION(2, cmd->dst, bc->pipe_id, bc->module_id); in sst_send_algo_cmd() 280 memcpy(cmd->params, bc->params, bc->max); in sst_send_algo_cmd() 335 switch (bc->type) { in sst_algo_control_get() 337 memcpy(ucontrol->value.bytes.data, bc->params, bc->max); in sst_algo_control_get() 341 bc->type); in sst_algo_control_get() 358 switch (bc->type) { in sst_algo_control_set() 360 memcpy(bc->params, ucontrol->value.bytes.data, bc->max); in sst_algo_control_set() 365 bc->type); in sst_algo_control_set() 369 if (bc->w && bc->w->power) in sst_algo_control_set() 1295 bc->params = devm_kzalloc(dev, bc->max, GFP_KERNEL); in sst_algo_control_init() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/qlogic/qlcnic/ |
A D | qlcnic_sriov_common.c | 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() 187 bc->adapter = adapter; in qlcnic_sriov_init() 264 struct qlcnic_back_channel *bc = &sriov->bc; in __qlcnic_sriov_cleanup() local 1532 spin_lock(&bc->queue_lock); in qlcnic_sriov_cleanup_async_list() 1607 head = &bc->async_cmd_list; in qlcnic_sriov_handle_async_issue_cmd() 1609 spin_lock(&bc->queue_lock); in qlcnic_sriov_handle_async_issue_cmd() 1621 queue_work(bc->bc_async_wq, &bc->vf_async_work); in qlcnic_sriov_handle_async_issue_cmd() 1657 queue_work(bc->bc_async_wq, &bc->vf_async_work); in qlcnic_sriov_schedule_async_cmd() [all …]
|
/linux-6.3-rc2/net/mptcp/ |
A D | mptcp_diag.c | 19 struct nlattr *bc, bool net_admin) in sk_diag_dump() argument 21 if (!inet_diag_bc_sk(bc, sk)) in sk_diag_dump() 82 struct nlattr *bc = cb_data->inet_diag_nla_bc; in mptcp_diag_dump_listeners() local 125 ret = sk_diag_dump(sk, skb, cb, r, bc, net_admin); in mptcp_diag_dump_listeners() 160 struct nlattr *bc; in mptcp_diag_dump() local 165 bc = cb_data->inet_diag_nla_bc; in mptcp_diag_dump() 185 ret = sk_diag_dump(sk, skb, cb, r, bc, net_admin); in mptcp_diag_dump()
|
/linux-6.3-rc2/tools/testing/selftests/net/forwarding/ |
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 105 total=$(echo ${d[@]} | sed 's/ /+/g' | bc)
|