Home
last modified time | relevance | path

Searched refs:br (Results 1 – 25 of 53) sorted by relevance

123

/drivers/base/regmap/
Dregmap-spi-avmm.c184 static int br_trans_tx_prepare(struct spi_avmm_bridge *br, bool is_read, u32 reg, in br_trans_tx_prepare() argument
205 header = (struct trans_req_header *)br->trans_buf; in br_trans_tx_prepare()
215 if (trans_len > sizeof(br->trans_buf)) in br_trans_tx_prepare()
218 data = (__le32 *)(br->trans_buf + TRANS_REQ_HD_SIZE); in br_trans_tx_prepare()
225 br->trans_len = trans_len; in br_trans_tx_prepare()
253 static int br_pkt_phy_tx_prepare(struct spi_avmm_bridge *br) in br_pkt_phy_tx_prepare() argument
259 tb = br->trans_buf; in br_pkt_phy_tx_prepare()
260 tb_end = tb + br->trans_len; in br_pkt_phy_tx_prepare()
261 pb = br->phy_buf; in br_pkt_phy_tx_prepare()
262 pb_limit = pb + ARRAY_SIZE(br->phy_buf); in br_pkt_phy_tx_prepare()
[all …]
/drivers/clk/qcom/
Dclk-branch.c16 static bool clk_branch_in_hwcg_mode(const struct clk_branch *br) in clk_branch_in_hwcg_mode() argument
20 if (!br->hwcg_reg) in clk_branch_in_hwcg_mode()
23 regmap_read(br->clkr.regmap, br->hwcg_reg, &val); in clk_branch_in_hwcg_mode()
25 return !!(val & BIT(br->hwcg_bit)); in clk_branch_in_hwcg_mode()
28 static bool clk_branch_check_halt(const struct clk_branch *br, bool enabling) in clk_branch_check_halt() argument
30 bool invert = (br->halt_check == BRANCH_HALT_ENABLE); in clk_branch_check_halt()
33 regmap_read(br->clkr.regmap, br->halt_reg, &val); in clk_branch_check_halt()
35 val &= BIT(br->halt_bit); in clk_branch_check_halt()
47 static bool clk_branch2_check_halt(const struct clk_branch *br, bool enabling) in clk_branch2_check_halt() argument
55 regmap_read(br->clkr.regmap, br->halt_reg, &val); in clk_branch2_check_halt()
[all …]
/drivers/md/
Ddm-bow.c97 sector_t range_top(struct bow_range *br) in range_top() argument
99 return container_of(rb_next(&br->node), struct bow_range, node) in range_top()
103 u64 range_size(struct bow_range *br) in range_size() argument
105 return (range_top(br) - br->sector) * SECTOR_SIZE; in range_size()
121 struct bow_range *br; in find_first_overlapping_range() local
124 br = container_of(node, struct bow_range, node); in find_first_overlapping_range()
126 if (br->sector <= bi_iter->bi_sector in find_first_overlapping_range()
127 && bi_iter->bi_sector < range_top(br)) in find_first_overlapping_range()
130 if (bi_iter->bi_sector < br->sector) in find_first_overlapping_range()
140 if (range_top(br) - bi_iter->bi_sector in find_first_overlapping_range()
[all …]
/drivers/thermal/intel/int340x_thermal/
Dint3406_thermal.c22 struct acpi_video_device_brightness *br; member
60 acpi_level = d->br->levels[d->upper_limit - state]; in int3406_thermal_set_cur_state()
83 if (acpi_level <= d->br->levels[index]) in int3406_thermal_get_cur_state()
115 d->lower_limit = int3406_thermal_get_index(d->br->levels, in int3406_thermal_get_limit()
116 d->br->count, lower_limit); in int3406_thermal_get_limit()
120 d->upper_limit = int3406_thermal_get_index(d->br->levels, in int3406_thermal_get_limit()
121 d->br->count, upper_limit); in int3406_thermal_get_limit()
125 d->upper_limit = d->upper_limit > 0 ? d->upper_limit : d->br->count - 1; in int3406_thermal_get_limit()
154 ret = acpi_video_get_levels(ACPI_COMPANION(&pdev->dev), &d->br, NULL); in int3406_thermal_probe()
177 kfree(d->br); in int3406_thermal_probe()
[all …]
/drivers/fpga/
Ddfl-fme-br.c63 struct fpga_bridge *br; in fme_br_probe() local
71 br = devm_fpga_bridge_create(dev, "DFL FPGA FME Bridge", in fme_br_probe()
73 if (!br) in fme_br_probe()
76 platform_set_drvdata(pdev, br); in fme_br_probe()
78 return fpga_bridge_register(br); in fme_br_probe()
83 struct fpga_bridge *br = platform_get_drvdata(pdev); in fme_br_remove() local
84 struct fme_br_priv *priv = br->priv; in fme_br_remove()
86 fpga_bridge_unregister(br); in fme_br_remove()
Daltera-fpga2sdram.c98 struct fpga_bridge *br; in alt_fpga_bridge_probe() local
124 br = devm_fpga_bridge_create(dev, F2S_BRIDGE_NAME, in alt_fpga_bridge_probe()
126 if (!br) in alt_fpga_bridge_probe()
129 platform_set_drvdata(pdev, br); in alt_fpga_bridge_probe()
131 ret = fpga_bridge_register(br); in alt_fpga_bridge_probe()
145 fpga_bridge_unregister(br); in alt_fpga_bridge_probe()
156 struct fpga_bridge *br = platform_get_drvdata(pdev); in alt_fpga_bridge_remove() local
158 fpga_bridge_unregister(br); in alt_fpga_bridge_remove()
Dof-fpga-region.c91 struct device_node *br, *np, *parent_br = NULL; in of_fpga_region_get_bridges() local
107 br = of_parse_phandle(info->overlay, "fpga-bridges", 0); in of_fpga_region_get_bridges()
108 if (br) { in of_fpga_region_get_bridges()
109 of_node_put(br); in of_fpga_region_get_bridges()
116 br = of_parse_phandle(np, "fpga-bridges", i); in of_fpga_region_get_bridges()
117 if (!br) in of_fpga_region_get_bridges()
121 if (br == parent_br) { in of_fpga_region_get_bridges()
122 of_node_put(br); in of_fpga_region_get_bridges()
127 ret = of_fpga_bridge_get_to_list(br, info, in of_fpga_region_get_bridges()
129 of_node_put(br); in of_fpga_region_get_bridges()
Ddfl-fme-pr.c244 fme_br->br = platform_device_alloc(DFL_FPGA_FME_BRIDGE, in dfl_fme_create_bridge()
246 if (!fme_br->br) in dfl_fme_create_bridge()
249 fme_br->br->dev.parent = dev; in dfl_fme_create_bridge()
251 ret = platform_device_add_data(fme_br->br, &br_pdata, sizeof(br_pdata)); in dfl_fme_create_bridge()
255 ret = platform_device_add(fme_br->br); in dfl_fme_create_bridge()
262 platform_device_put(fme_br->br); in dfl_fme_create_bridge()
272 platform_device_unregister(fme_br->br); in dfl_fme_destroy_bridge()
303 struct platform_device *br, int port_id) in dfl_fme_create_region() argument
315 region_pdata.br = br; in dfl_fme_create_region()
321 fme_region->region = platform_device_alloc(DFL_FPGA_FME_REGION, br->id); in dfl_fme_create_region()
[all …]
Daltera-freeze-bridge.c213 struct fpga_bridge *br; in altera_freeze_br_probe() local
247 br = devm_fpga_bridge_create(dev, FREEZE_BRIDGE_NAME, in altera_freeze_br_probe()
249 if (!br) in altera_freeze_br_probe()
252 platform_set_drvdata(pdev, br); in altera_freeze_br_probe()
254 return fpga_bridge_register(br); in altera_freeze_br_probe()
259 struct fpga_bridge *br = platform_get_drvdata(pdev); in altera_freeze_br_remove() local
261 fpga_bridge_unregister(br); in altera_freeze_br_remove()
Dxilinx-pr-decoupler.c89 struct fpga_bridge *br; in xlnx_pr_decoupler_probe() local
117 br = devm_fpga_bridge_create(&pdev->dev, "Xilinx PR Decoupler", in xlnx_pr_decoupler_probe()
119 if (!br) { in xlnx_pr_decoupler_probe()
124 platform_set_drvdata(pdev, br); in xlnx_pr_decoupler_probe()
126 err = fpga_bridge_register(br); in xlnx_pr_decoupler_probe()
Daltera-hps2fpga.c131 struct fpga_bridge *br; in alt_fpga_bridge_probe() local
183 br = devm_fpga_bridge_create(dev, priv->name, in alt_fpga_bridge_probe()
185 if (!br) { in alt_fpga_bridge_probe()
190 platform_set_drvdata(pdev, br); in alt_fpga_bridge_probe()
192 ret = fpga_bridge_register(br); in alt_fpga_bridge_probe()
Ddfl-fme-pr.h45 struct platform_device *br; member
56 struct platform_device *br; member
/drivers/media/dvb-frontends/
Dzl10036.c37 u8 br, bf; member
192 u8 br, bf; in zl10036_set_bandwidth() local
212 br = _BR_MAXIMUM; in zl10036_set_bandwidth()
218 br = ((_XTAL * 21 * 1000) / (fbw * 419)); in zl10036_set_bandwidth()
222 if (br < 4) in zl10036_set_bandwidth()
223 br = 4; in zl10036_set_bandwidth()
224 if (br > _BR_MAXIMUM) in zl10036_set_bandwidth()
225 br = _BR_MAXIMUM; in zl10036_set_bandwidth()
231 bf = (fbw * br * 1257) / (_XTAL * 1000) - 1; in zl10036_set_bandwidth()
238 buf_br[1] = (br << 2) & 0x7c; in zl10036_set_bandwidth()
[all …]
/drivers/acpi/
Dacpi_video.c786 struct acpi_video_device_brightness *br = device->brightness; in acpi_video_bqc_quirk() local
826 ? br->levels[ACPI_VIDEO_FIRST_LEVEL + 1] in acpi_video_bqc_quirk()
839 if (level < br->count) { in acpi_video_bqc_quirk()
840 if (br->flags._BCL_reversed) in acpi_video_bqc_quirk()
841 level = br->count - ACPI_VIDEO_FIRST_LEVEL - 1 - level; in acpi_video_bqc_quirk()
842 if (br->levels[level + ACPI_VIDEO_FIRST_LEVEL] == test_level) in acpi_video_bqc_quirk()
843 br->flags._BQC_use_index = 1; in acpi_video_bqc_quirk()
846 if (!br->flags._BQC_use_index) in acpi_video_bqc_quirk()
860 struct acpi_video_device_brightness *br = NULL; in acpi_video_get_levels() local
877 br = kzalloc(sizeof(*br), GFP_KERNEL); in acpi_video_get_levels()
[all …]
/drivers/hid/
Dhid-led.c79 int (*write)(struct led_classdev *cdev, enum led_brightness br);
189 static int riso_kagaku_write(struct led_classdev *cdev, enum led_brightness br) in riso_kagaku_write() argument
200 static int dream_cheeky_write(struct led_classdev *cdev, enum led_brightness br) in dream_cheeky_write() argument
229 static int _thingm_write(struct led_classdev *cdev, enum led_brightness br, in _thingm_write() argument
243 static int thingm_write_v1(struct led_classdev *cdev, enum led_brightness br) in thingm_write_v1() argument
245 return _thingm_write(cdev, br, 0); in thingm_write_v1()
248 static int thingm_write(struct led_classdev *cdev, enum led_brightness br) in thingm_write() argument
250 return _thingm_write(cdev, br, 1); in thingm_write()
309 static int delcom_write(struct led_classdev *cdev, enum led_brightness br) in delcom_write() argument
341 static int luxafor_write(struct led_classdev *cdev, enum led_brightness br) in luxafor_write() argument
/drivers/net/ethernet/apm/xgene/
Dxgene_enet_cle.c73 const struct xgene_cle_ptree_branch *br; in xgene_cle_dn_to_hw() local
86 br = &dn->branch[i]; in xgene_cle_dn_to_hw()
87 npp = br->next_packet_pointer; in xgene_cle_dn_to_hw()
89 if ((br->jump_rel == JMP_ABS) && (npp < CLE_PKTRAM_SIZE)) in xgene_cle_dn_to_hw()
92 buf[j++] = SET_VAL(CLE_BR_VALID, br->valid) | in xgene_cle_dn_to_hw()
94 SET_VAL(CLE_BR_JB, br->jump_bw) | in xgene_cle_dn_to_hw()
95 SET_VAL(CLE_BR_JR, br->jump_rel) | in xgene_cle_dn_to_hw()
96 SET_VAL(CLE_BR_OP, br->operation) | in xgene_cle_dn_to_hw()
97 SET_VAL(CLE_BR_NNODE, br->next_node) | in xgene_cle_dn_to_hw()
98 SET_VAL(CLE_BR_NBR, br->next_branch); in xgene_cle_dn_to_hw()
[all …]
/drivers/media/usb/stkwebcam/
Dstk-sensor.c579 int stk_sensor_set_brightness(struct stk_camera *dev, int br) in stk_sensor_set_brightness() argument
581 if (br < 0 || br > 0xff) in stk_sensor_set_brightness()
583 stk_sensor_outb(dev, REG_AEB, max(0x00, br - 6)); in stk_sensor_set_brightness()
584 stk_sensor_outb(dev, REG_AEW, min(0xff, br + 6)); in stk_sensor_set_brightness()
/drivers/uio/
Duio_fsl_elbc_gpcm.c90 in_be32(&bank->br)); in reg_show()
117 reg_br_cur = in_be32(&bank->br); in reg_store()
132 out_be32(&bank->br, reg_new | BR_V); in reg_store()
347 reg_br_cur = in_be32(&priv->lbc->bank[priv->bank].br); in uio_fsl_elbc_gpcm_probe()
379 out_be32(&priv->lbc->bank[priv->bank].br, reg_br_new); in uio_fsl_elbc_gpcm_probe()
/drivers/gpu/drm/panel/
Dpanel-samsung-s6e8aa0.c323 u8 br; in s6e8aa0_elvss_nvm_set_v142() local
327 br = 0xdf; in s6e8aa0_elvss_nvm_set_v142()
330 br = 0xdd; in s6e8aa0_elvss_nvm_set_v142()
334 br = 0xd9; in s6e8aa0_elvss_nvm_set_v142()
337 br = 0xd0; in s6e8aa0_elvss_nvm_set_v142()
342 0xc4, 0x0f, 0x40, 0x41, br, 0x00, 0x60, 0x19); in s6e8aa0_elvss_nvm_set_v142()
/drivers/media/usb/dvb-usb/
Dvp7045.c123 u8 v, br[2]; in vp7045_read_eeprom() local
126 ret = vp7045_usb_op(d, GET_EE_VALUE, &v, 1, br, 2, 5); in vp7045_read_eeprom()
130 buf[i] = br[1]; in vp7045_read_eeprom()
/drivers/net/wan/
Dhd64572.c372 unsigned int tmc, br = 10, brv = 1024; in sca_set_port() local
378 br--; in sca_set_port()
383 }while (br > 1 && tmc <= 128); in sca_set_port()
387 br = 0; /* For baud=CLOCK_BASE we use tmc=1 br=0 */ in sca_set_port()
394 br = 9; /* Minimum clock rate */ in sca_set_port()
399 port->rxs = (port->rxs & ~CLK_BRG_MASK) | br; in sca_set_port()
400 port->txs = (port->txs & ~CLK_BRG_MASK) | br; in sca_set_port()
Dhd64570.c409 unsigned int tmc, br = 10, brv = 1024; in sca_set_port() local
415 br--; in sca_set_port()
420 }while (br > 1 && tmc <= 128); in sca_set_port()
424 br = 0; /* For baud=CLOCK_BASE we use tmc=1 br=0 */ in sca_set_port()
431 br = 9; /* Minimum clock rate */ in sca_set_port()
436 port->rxs = (port->rxs & ~CLK_BRG_MASK) | br; in sca_set_port()
437 port->txs = (port->txs & ~CLK_BRG_MASK) | br; in sca_set_port()
/drivers/usb/serial/
Doti6858.c407 int br; in oti6858_set_termios() local
439 br = tty_get_baud_rate(tty); in oti6858_set_termios()
440 if (br == 0) { in oti6858_set_termios()
445 br = min(br, OTI6858_MAX_BAUD_RATE); in oti6858_set_termios()
447 new_divisor = (96000000 + 8 * br) / (16 * br); in oti6858_set_termios()
/drivers/video/fbdev/omap2/omapfb/dss/
Dmanager-sysfs.c369 info.cpr_coefs.br, in manager_cpr_coef_show()
388 &coefs.br, &coefs.bg, &coefs.bb) != 9) in manager_cpr_coef_store()
393 coefs.br, coefs.bg, coefs.bb }; in manager_cpr_coef_store()
/drivers/atm/
Dhorizon.c576 const unsigned long br = test_bit(ultra, &dev->flags) ? BR_ULT : BR_HRZ; in make_rate() local
585 unsigned long br_man = br; in make_rate()
588 PRINTD (DBG_QOS|DBG_FLOW, "make_rate b=%lu, c=%u, %s", br, c, in make_rate()
609 pre = DIV_ROUND_UP(br, c<<div); in make_rate()
615 pre = DIV_ROUND_CLOSEST(br, c<<div); in make_rate()
621 pre = br/(c<<div); in make_rate()
642 pre = DIV_ROUND_UP(br, c<<div); in make_rate()
645 pre = DIV_ROUND_CLOSEST(br, c<<div); in make_rate()
648 pre = br/(c<<div); in make_rate()
672 *actual = DIV_ROUND_UP(br, pre<<div); in make_rate()

123