/drivers/mtd/tests/ |
D | oobtest.c | 71 struct mtd_oob_ops ops; in write_eraseblock() local 77 ops.mode = MTD_OPS_AUTO_OOB; in write_eraseblock() 78 ops.len = 0; in write_eraseblock() 79 ops.retlen = 0; in write_eraseblock() 80 ops.ooblen = use_len; in write_eraseblock() 81 ops.oobretlen = 0; in write_eraseblock() 82 ops.ooboffs = use_offset; in write_eraseblock() 83 ops.datbuf = NULL; in write_eraseblock() 84 ops.oobbuf = writebuf + (use_len_max * i) + use_offset; in write_eraseblock() 85 err = mtd_write_oob(mtd, addr, &ops); in write_eraseblock() [all …]
|
/drivers/net/wireless/ti/wlcore/ |
D | hw_ops.h | 31 if (!wl->ops->calc_tx_blocks) in wlcore_hw_calc_tx_blocks() 34 return wl->ops->calc_tx_blocks(wl, len, spare_blks); in wlcore_hw_calc_tx_blocks() 41 if (!wl->ops->set_tx_desc_blocks) in wlcore_hw_set_tx_desc_blocks() 44 return wl->ops->set_tx_desc_blocks(wl, desc, blks, spare_blks); in wlcore_hw_set_tx_desc_blocks() 52 if (!wl->ops->set_tx_desc_data_len) in wlcore_hw_set_tx_desc_data_len() 55 wl->ops->set_tx_desc_data_len(wl, desc, skb); in wlcore_hw_set_tx_desc_data_len() 62 if (!wl->ops->get_rx_buf_align) in wlcore_hw_get_rx_buf_align() 65 return wl->ops->get_rx_buf_align(wl, rx_desc); in wlcore_hw_get_rx_buf_align() 71 if (wl->ops->prepare_read) in wlcore_hw_prepare_read() 72 return wl->ops->prepare_read(wl, rx_desc, len); in wlcore_hw_prepare_read() [all …]
|
/drivers/mfd/ |
D | abx500-core.c | 18 struct abx500_ops ops; member 22 static void lookup_ops(struct device *dev, struct abx500_ops **ops) in lookup_ops() argument 26 *ops = NULL; in lookup_ops() 29 *ops = &dev_entry->ops; in lookup_ops() 35 int abx500_register_ops(struct device *dev, struct abx500_ops *ops) in abx500_register_ops() argument 47 memcpy(&dev_entry->ops, ops, sizeof(struct abx500_ops)); in abx500_register_ops() 67 struct abx500_ops *ops; in abx500_set_register_interruptible() local 69 lookup_ops(dev->parent, &ops); in abx500_set_register_interruptible() 70 if ((ops != NULL) && (ops->set_register != NULL)) in abx500_set_register_interruptible() 71 return ops->set_register(dev, bank, reg, value); in abx500_set_register_interruptible() [all …]
|
/drivers/media/v4l2-core/ |
D | v4l2-dev.c | 502 #define SET_VALID_IOCTL(ops, cmd, op) \ argument 503 if (ops->op) \ 522 const struct v4l2_ioctl_ops *ops = vdev->ioctl_ops; in determine_valid_ioctls() local 534 SET_VALID_IOCTL(ops, VIDIOC_QUERYCAP, vidioc_querycap); in determine_valid_ioctls() 542 if (vdev->ctrl_handler || ops->vidioc_queryctrl) in determine_valid_ioctls() 544 if (vdev->ctrl_handler || ops->vidioc_query_ext_ctrl) in determine_valid_ioctls() 546 if (vdev->ctrl_handler || ops->vidioc_g_ctrl || ops->vidioc_g_ext_ctrls) in determine_valid_ioctls() 548 if (vdev->ctrl_handler || ops->vidioc_s_ctrl || ops->vidioc_s_ext_ctrls) in determine_valid_ioctls() 550 if (vdev->ctrl_handler || ops->vidioc_g_ext_ctrls) in determine_valid_ioctls() 552 if (vdev->ctrl_handler || ops->vidioc_s_ext_ctrls) in determine_valid_ioctls() [all …]
|
D | v4l2-ioctl.c | 922 const struct v4l2_ioctl_ops *ops = vfd->ioctl_ops; in check_fmt() local 929 if (ops == NULL) in check_fmt() 935 (ops->vidioc_g_fmt_vid_cap || ops->vidioc_g_fmt_vid_cap_mplane)) in check_fmt() 939 if (is_vid && is_rx && ops->vidioc_g_fmt_vid_cap_mplane) in check_fmt() 943 if (is_vid && is_rx && ops->vidioc_g_fmt_vid_overlay) in check_fmt() 948 (ops->vidioc_g_fmt_vid_out || ops->vidioc_g_fmt_vid_out_mplane)) in check_fmt() 952 if (is_vid && is_tx && ops->vidioc_g_fmt_vid_out_mplane) in check_fmt() 956 if (is_vid && is_tx && ops->vidioc_g_fmt_vid_out_overlay) in check_fmt() 960 if (is_vbi && is_rx && ops->vidioc_g_fmt_vbi_cap) in check_fmt() 964 if (is_vbi && is_tx && ops->vidioc_g_fmt_vbi_out) in check_fmt() [all …]
|
/drivers/rtc/ |
D | rtc-m48t86.c | 49 struct m48t86_ops *ops = dev_get_platdata(&pdev->dev); in m48t86_rtc_read_time() local 51 reg = ops->readbyte(M48T86_REG_B); in m48t86_rtc_read_time() 55 tm->tm_sec = ops->readbyte(M48T86_REG_SEC); in m48t86_rtc_read_time() 56 tm->tm_min = ops->readbyte(M48T86_REG_MIN); in m48t86_rtc_read_time() 57 tm->tm_hour = ops->readbyte(M48T86_REG_HOUR) & 0x3F; in m48t86_rtc_read_time() 58 tm->tm_mday = ops->readbyte(M48T86_REG_DOM); in m48t86_rtc_read_time() 60 tm->tm_mon = ops->readbyte(M48T86_REG_MONTH) - 1; in m48t86_rtc_read_time() 61 tm->tm_year = ops->readbyte(M48T86_REG_YEAR) + 100; in m48t86_rtc_read_time() 62 tm->tm_wday = ops->readbyte(M48T86_REG_DOW); in m48t86_rtc_read_time() 65 tm->tm_sec = bcd2bin(ops->readbyte(M48T86_REG_SEC)); in m48t86_rtc_read_time() [all …]
|
/drivers/base/ |
D | syscore.c | 23 void register_syscore_ops(struct syscore_ops *ops) in register_syscore_ops() argument 26 list_add_tail(&ops->node, &syscore_ops_list); in register_syscore_ops() 35 void unregister_syscore_ops(struct syscore_ops *ops) in unregister_syscore_ops() argument 38 list_del(&ops->node); in unregister_syscore_ops() 51 struct syscore_ops *ops; in syscore_suspend() local 64 list_for_each_entry_reverse(ops, &syscore_ops_list, node) in syscore_suspend() 65 if (ops->suspend) { in syscore_suspend() 67 pr_info("PM: Calling %pF\n", ops->suspend); in syscore_suspend() 68 ret = ops->suspend(); in syscore_suspend() 72 "Interrupts enabled after %pF\n", ops->suspend); in syscore_suspend() [all …]
|
/drivers/video/console/ |
D | fbcon_ud.c | 51 struct fbcon_ops *ops = info->fbcon_par; in ud_bmove() local 53 u32 vyres = GETVYRES(ops->p->scrollmode, info); in ud_bmove() 54 u32 vxres = GETVXRES(ops->p->scrollmode, info); in ud_bmove() 69 struct fbcon_ops *ops = info->fbcon_par; in ud_clear() local 72 u32 vyres = GETVYRES(ops->p->scrollmode, info); in ud_clear() 73 u32 vxres = GETVXRES(ops->p->scrollmode, info); in ud_clear() 90 struct fbcon_ops *ops = info->fbcon_par; in ud_putcs_aligned() local 96 src = ops->fontbuffer + (scr_readw(s--) & charmask)*cellsize; in ud_putcs_aligned() 123 struct fbcon_ops *ops = info->fbcon_par; in ud_putcs_unaligned() local 131 src = ops->fontbuffer + (scr_readw(s--) & charmask)*cellsize; in ud_putcs_unaligned() [all …]
|
D | fbcon_cw.c | 51 struct fbcon_ops *ops = info->fbcon_par; in cw_bmove() local 53 u32 vxres = GETVXRES(ops->p->scrollmode, info); in cw_bmove() 68 struct fbcon_ops *ops = info->fbcon_par; in cw_clear() local 71 u32 vxres = GETVXRES(ops->p->scrollmode, info); in cw_clear() 88 struct fbcon_ops *ops = info->fbcon_par; in cw_putcs_aligned() local 94 src = ops->fontbuffer + (scr_readw(s++) & charmask)*cellsize; in cw_putcs_aligned() 119 struct fbcon_ops *ops = info->fbcon_par; in cw_putcs() local 128 u32 vxres = GETVXRES(ops->p->scrollmode, info); in cw_putcs() 130 if (!ops->fontbuffer) in cw_putcs() 208 struct fbcon_ops *ops = info->fbcon_par; in cw_cursor() local [all …]
|
D | fbcon_ccw.c | 66 struct fbcon_ops *ops = info->fbcon_par; in ccw_bmove() local 68 u32 vyres = GETVYRES(ops->p->scrollmode, info); in ccw_bmove() 83 struct fbcon_ops *ops = info->fbcon_par; in ccw_clear() local 86 u32 vyres = GETVYRES(ops->p->scrollmode, info); in ccw_clear() 103 struct fbcon_ops *ops = info->fbcon_par; in ccw_putcs_aligned() local 109 src = ops->fontbuffer + (scr_readw(s--) & charmask)*cellsize; in ccw_putcs_aligned() 134 struct fbcon_ops *ops = info->fbcon_par; in ccw_putcs() local 143 u32 vyres = GETVYRES(ops->p->scrollmode, info); in ccw_putcs() 145 if (!ops->fontbuffer) in ccw_putcs() 225 struct fbcon_ops *ops = info->fbcon_par; in ccw_cursor() local [all …]
|
D | fbcon_rotate.c | 24 struct fbcon_ops *ops = info->fbcon_par; in fbcon_rotate_font() local 30 if (vc->vc_font.data == ops->fontdata && in fbcon_rotate_font() 31 ops->p->con_rotate == ops->cur_rotate) in fbcon_rotate_font() 34 src = ops->fontdata = vc->vc_font.data; in fbcon_rotate_font() 35 ops->cur_rotate = ops->p->con_rotate; in fbcon_rotate_font() 36 len = (!ops->p->userfont) ? 256 : FNTCHARCNT(src); in fbcon_rotate_font() 41 if (ops->rotate == FB_ROTATE_CW || in fbcon_rotate_font() 42 ops->rotate == FB_ROTATE_CCW) in fbcon_rotate_font() 49 if (ops->fd_size < d_cellsize * len) { in fbcon_rotate_font() 57 ops->fd_size = d_cellsize * len; in fbcon_rotate_font() [all …]
|
D | bitblit.c | 240 struct fbcon_ops *ops = info->fbcon_par; in bit_cursor() local 243 int y = real_y(ops->p, vc->vc_y); in bit_cursor() 254 if (ops->cursor_state.image.data != src || in bit_cursor() 255 ops->cursor_reset) { in bit_cursor() 256 ops->cursor_state.image.data = src; in bit_cursor() 266 kfree(ops->cursor_data); in bit_cursor() 267 ops->cursor_data = dst; in bit_cursor() 272 if (ops->cursor_state.image.fg_color != fg || in bit_cursor() 273 ops->cursor_state.image.bg_color != bg || in bit_cursor() 274 ops->cursor_reset) { in bit_cursor() [all …]
|
/drivers/misc/c2port/ |
D | core.c | 67 struct c2port_ops *ops = dev->ops; in c2port_reset() local 73 ops->c2ck_set(dev, 0); in c2port_reset() 75 ops->c2ck_set(dev, 1); in c2port_reset() 83 struct c2port_ops *ops = dev->ops; in c2port_strobe_ck() local 91 ops->c2ck_set(dev, 0); in c2port_strobe_ck() 93 ops->c2ck_set(dev, 1); in c2port_strobe_ck() 105 struct c2port_ops *ops = dev->ops; in c2port_write_ar() local 112 ops->c2d_dir(dev, 0); in c2port_write_ar() 113 ops->c2d_set(dev, 1); in c2port_write_ar() 115 ops->c2d_set(dev, 1); in c2port_write_ar() [all …]
|
/drivers/net/ethernet/intel/igb/ |
D | e1000_phy.c | 82 phy->ops.write_reg(hw, I347AT4_PAGE_SELECT, 0); in igb_get_phy_id() 84 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igb_get_phy_id() 90 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igb_get_phy_id() 111 if (!(hw->phy.ops.write_reg)) in igb_phy_reset_dsp() 114 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xC1); in igb_phy_reset_dsp() 118 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0); in igb_phy_reset_dsp() 404 if (!(hw->phy.ops.acquire)) in igb_read_phy_reg_igp() 407 ret_val = hw->phy.ops.acquire(hw); in igb_read_phy_reg_igp() 416 hw->phy.ops.release(hw); in igb_read_phy_reg_igp() 424 hw->phy.ops.release(hw); in igb_read_phy_reg_igp() [all …]
|
/drivers/net/wireless/ath/ath10k/ |
D | wmi-ops.h | 196 if (WARN_ON_ONCE(!ar->wmi.ops->rx)) in ath10k_wmi_rx() 199 ar->wmi.ops->rx(ar, skb); in ath10k_wmi_rx() 207 if (!ar->wmi.ops->map_svc) in ath10k_wmi_map_svc() 210 ar->wmi.ops->map_svc(in, out, len); in ath10k_wmi_map_svc() 218 if (!ar->wmi.ops->pull_scan) in ath10k_wmi_pull_scan() 221 return ar->wmi.ops->pull_scan(ar, skb, arg); in ath10k_wmi_pull_scan() 228 if (!ar->wmi.ops->pull_mgmt_rx) in ath10k_wmi_pull_mgmt_rx() 231 return ar->wmi.ops->pull_mgmt_rx(ar, skb, arg); in ath10k_wmi_pull_mgmt_rx() 238 if (!ar->wmi.ops->pull_ch_info) in ath10k_wmi_pull_ch_info() 241 return ar->wmi.ops->pull_ch_info(ar, skb, arg); in ath10k_wmi_pull_ch_info() [all …]
|
/drivers/clk/qcom/ |
D | gcc-apq8084.c | 123 .ops = &clk_pll_ops, 134 .ops = &clk_pll_vote_ops, 146 .ops = &clk_rcg2_ops, 158 .ops = &clk_rcg2_ops, 170 .ops = &clk_rcg2_ops, 186 .ops = &clk_pll_ops, 197 .ops = &clk_pll_vote_ops, 213 .ops = &clk_pll_ops, 224 .ops = &clk_pll_vote_ops, 245 .ops = &clk_rcg2_ops, [all …]
|
D | gcc-msm8974.c | 79 .ops = &clk_pll_ops, 90 .ops = &clk_pll_vote_ops, 102 .ops = &clk_rcg2_ops, 114 .ops = &clk_rcg2_ops, 126 .ops = &clk_rcg2_ops, 142 .ops = &clk_pll_ops, 153 .ops = &clk_pll_vote_ops, 169 .ops = &clk_pll_ops, 180 .ops = &clk_pll_vote_ops, 199 .ops = &clk_rcg2_ops, [all …]
|
D | mmcc-msm8974.c | 201 .ops = &clk_pll_ops, 212 .ops = &clk_pll_vote_ops, 228 .ops = &clk_pll_ops, 239 .ops = &clk_pll_vote_ops, 254 .ops = &clk_pll_ops, 270 .ops = &clk_pll_ops, 282 .ops = &clk_rcg2_ops, 307 .ops = &clk_rcg2_ops, 331 .ops = &clk_rcg2_ops, 350 .ops = &clk_rcg2_ops, [all …]
|
D | mmcc-apq8084.c | 236 .ops = &clk_pll_ops, 247 .ops = &clk_pll_vote_ops, 263 .ops = &clk_pll_ops, 274 .ops = &clk_pll_vote_ops, 289 .ops = &clk_pll_ops, 305 .ops = &clk_pll_ops, 320 .ops = &clk_pll_ops, 332 .ops = &clk_rcg2_ops, 357 .ops = &clk_rcg2_ops, 381 .ops = &clk_rcg2_ops, [all …]
|
D | gcc-msm8916.c | 281 .ops = &clk_pll_ops, 292 .ops = &clk_pll_vote_ops, 308 .ops = &clk_pll_ops, 319 .ops = &clk_pll_vote_ops, 335 .ops = &clk_pll_ops, 346 .ops = &clk_pll_vote_ops, 362 .ops = &clk_pll_ops, 373 .ops = &clk_pll_vote_ops, 385 .ops = &clk_rcg2_ops, 397 .ops = &clk_rcg2_ops, [all …]
|
/drivers/video/fbdev/exynos/ |
D | s6e8ax0.c | 288 struct mipi_dsim_master_ops *ops = lcd_to_master_ops(lcd); in s6e8ax0_panel_cond() local 304 ops->cmd_write(lcd_to_master(lcd), MIPI_DSI_DCS_LONG_WRITE, in s6e8ax0_panel_cond() 308 ops->cmd_write(lcd_to_master(lcd), MIPI_DSI_DCS_LONG_WRITE, in s6e8ax0_panel_cond() 314 struct mipi_dsim_master_ops *ops = lcd_to_master_ops(lcd); in s6e8ax0_display_cond() local 319 ops->cmd_write(lcd_to_master(lcd), MIPI_DSI_DCS_LONG_WRITE, in s6e8ax0_display_cond() 326 struct mipi_dsim_master_ops *ops = lcd_to_master_ops(lcd); in s6e8ax0_gamma_cond() local 329 ops->cmd_write(lcd_to_master(lcd), MIPI_DSI_DCS_LONG_WRITE, in s6e8ax0_gamma_cond() 336 struct mipi_dsim_master_ops *ops = lcd_to_master_ops(lcd); in s6e8ax0_gamma_update() local 341 ops->cmd_write(lcd_to_master(lcd), in s6e8ax0_gamma_update() 348 struct mipi_dsim_master_ops *ops = lcd_to_master_ops(lcd); in s6e8ax0_etc_cond1() local [all …]
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_dcb.h | 40 struct qlcnic_dcb_ops *ops; member 53 if (dcb && dcb->ops->get_hw_capability) in qlcnic_dcb_get_hw_capability() 54 return dcb->ops->get_hw_capability(dcb); in qlcnic_dcb_get_hw_capability() 61 if (dcb && dcb->ops->free) in qlcnic_dcb_free() 62 dcb->ops->free(dcb); in qlcnic_dcb_free() 67 if (dcb && dcb->ops->attach) in qlcnic_dcb_attach() 68 return dcb->ops->attach(dcb); in qlcnic_dcb_attach() 76 if (dcb && dcb->ops->query_hw_capability) in qlcnic_dcb_query_hw_capability() 77 return dcb->ops->query_hw_capability(dcb, buf); in qlcnic_dcb_query_hw_capability() 84 if (dcb && dcb->ops->get_info) in qlcnic_dcb_get_info() [all …]
|
/drivers/video/backlight/ |
D | lcd.c | 45 if (!ld->ops) in fb_notifier_callback() 49 if (!ld->ops->check_fb || ld->ops->check_fb(ld, evdata->info)) { in fb_notifier_callback() 51 if (ld->ops->set_power) in fb_notifier_callback() 52 ld->ops->set_power(ld, *(int *)evdata->data); in fb_notifier_callback() 54 if (ld->ops->early_set_power) in fb_notifier_callback() 55 ld->ops->early_set_power(ld, in fb_notifier_callback() 58 if (ld->ops->r_early_set_power) in fb_notifier_callback() 59 ld->ops->r_early_set_power(ld, in fb_notifier_callback() 62 if (ld->ops->set_mode) in fb_notifier_callback() 63 ld->ops->set_mode(ld, evdata->data); in fb_notifier_callback() [all …]
|
/drivers/pci/hotplug/ |
D | pci_hotplug_core.c | 69 struct hotplug_slot_ops *ops = slot->ops; \ 71 if (!try_module_get(ops->owner)) \ 73 if (ops->get_##name) \ 74 retval = ops->get_##name(slot, value); \ 77 module_put(ops->owner); \ 110 if (!try_module_get(slot->ops->owner)) { in power_write_file() 116 if (slot->ops->disable_slot) in power_write_file() 117 retval = slot->ops->disable_slot(slot); in power_write_file() 121 if (slot->ops->enable_slot) in power_write_file() 122 retval = slot->ops->enable_slot(slot); in power_write_file() [all …]
|
/drivers/powercap/ |
D | powercap_sys.c | 39 if (power_zone->ops->get_##_attr) { \ 40 if (!power_zone->ops->get_##_attr(power_zone, &value)) \ 62 if (power_zone->ops->reset_##_attr) { \ 63 if (!power_zone->ops->reset_##_attr(power_zone)) \ 87 if (pconst && pconst->ops && pconst->ops->get_##_attr) { \ 88 if (!pconst->ops->get_##_attr(power_zone, id, &value)) \ 115 if (pconst && pconst->ops && pconst->ops->set_##_attr) { \ 116 if (!pconst->ops->set_##_attr(power_zone, id, value)) \ 182 if (pconst && pconst->ops && pconst->ops->get_name) { in show_constraint_name() 183 name = pconst->ops->get_name(power_zone, id); in show_constraint_name() [all …]
|