/drivers/mtd/tests/ |
D | oobtest.c | 68 struct mtd_oob_ops ops; in write_eraseblock() local 74 ops.mode = MTD_OPS_AUTO_OOB; in write_eraseblock() 75 ops.len = 0; in write_eraseblock() 76 ops.retlen = 0; in write_eraseblock() 77 ops.ooblen = use_len; in write_eraseblock() 78 ops.oobretlen = 0; in write_eraseblock() 79 ops.ooboffs = use_offset; in write_eraseblock() 80 ops.datbuf = NULL; in write_eraseblock() 81 ops.oobbuf = writebuf + (use_len_max * i) + use_offset; in write_eraseblock() 82 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 | 533 #define SET_VALID_IOCTL(ops, cmd, op) \ argument 534 if (ops->op) \ 553 const struct v4l2_ioctl_ops *ops = vdev->ioctl_ops; in determine_valid_ioctls() local 565 SET_VALID_IOCTL(ops, VIDIOC_QUERYCAP, vidioc_querycap); in determine_valid_ioctls() 566 if (ops->vidioc_g_priority) in determine_valid_ioctls() 568 if (ops->vidioc_s_priority) in determine_valid_ioctls() 574 if (vdev->ctrl_handler || ops->vidioc_queryctrl) in determine_valid_ioctls() 576 if (vdev->ctrl_handler || ops->vidioc_query_ext_ctrl) in determine_valid_ioctls() 578 if (vdev->ctrl_handler || ops->vidioc_g_ctrl || ops->vidioc_g_ext_ctrls) in determine_valid_ioctls() 580 if (vdev->ctrl_handler || ops->vidioc_s_ctrl || ops->vidioc_s_ext_ctrls) in determine_valid_ioctls() [all …]
|
D | v4l2-ioctl.c | 914 const struct v4l2_ioctl_ops *ops = vfd->ioctl_ops; in check_fmt() local 921 if (ops == NULL) in check_fmt() 927 (ops->vidioc_g_fmt_vid_cap || ops->vidioc_g_fmt_vid_cap_mplane)) in check_fmt() 931 if (is_vid && is_rx && ops->vidioc_g_fmt_vid_cap_mplane) in check_fmt() 935 if (is_vid && is_rx && ops->vidioc_g_fmt_vid_overlay) in check_fmt() 940 (ops->vidioc_g_fmt_vid_out || ops->vidioc_g_fmt_vid_out_mplane)) in check_fmt() 944 if (is_vid && is_tx && ops->vidioc_g_fmt_vid_out_mplane) in check_fmt() 948 if (is_vid && is_tx && ops->vidioc_g_fmt_vid_out_overlay) in check_fmt() 952 if (is_vbi && is_rx && ops->vidioc_g_fmt_vbi_cap) in check_fmt() 956 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_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_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_rotate.c | 23 struct fbcon_ops *ops = info->fbcon_par; in fbcon_rotate_font() local 29 if (vc->vc_font.data == ops->fontdata && in fbcon_rotate_font() 30 ops->p->con_rotate == ops->cur_rotate) in fbcon_rotate_font() 33 src = ops->fontdata = vc->vc_font.data; in fbcon_rotate_font() 34 ops->cur_rotate = ops->p->con_rotate; in fbcon_rotate_font() 35 len = (!ops->p->userfont) ? 256 : FNTCHARCNT(src); in fbcon_rotate_font() 40 if (ops->rotate == FB_ROTATE_CW || in fbcon_rotate_font() 41 ops->rotate == FB_ROTATE_CCW) in fbcon_rotate_font() 48 if (ops->fd_size < d_cellsize * len) { in fbcon_rotate_font() 56 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() 253 ops->cursor_flash = 0; in bit_cursor() 263 if (ops->cursor_state.image.data != src || in bit_cursor() 264 ops->cursor_reset) { in bit_cursor() 265 ops->cursor_state.image.data = src; in bit_cursor() 275 kfree(ops->cursor_data); in bit_cursor() 276 ops->cursor_data = dst; in bit_cursor() 281 if (ops->cursor_state.image.fg_color != fg || in bit_cursor() 282 ops->cursor_state.image.bg_color != bg || 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 | 88 phy->ops.write_reg(hw, I347AT4_PAGE_SELECT, 0); in igb_get_phy_id() 90 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igb_get_phy_id() 96 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igb_get_phy_id() 117 if (!(hw->phy.ops.write_reg)) in igb_phy_reset_dsp() 120 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xC1); in igb_phy_reset_dsp() 124 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0); in igb_phy_reset_dsp() 410 if (!(hw->phy.ops.acquire)) in igb_read_phy_reg_igp() 413 ret_val = hw->phy.ops.acquire(hw); in igb_read_phy_reg_igp() 422 hw->phy.ops.release(hw); in igb_read_phy_reg_igp() 430 hw->phy.ops.release(hw); in igb_read_phy_reg_igp() [all …]
|
/drivers/clk/qcom/ |
D | gcc-apq8084.c | 120 .ops = &clk_pll_ops, 131 .ops = &clk_pll_vote_ops, 143 .ops = &clk_rcg2_ops, 155 .ops = &clk_rcg2_ops, 167 .ops = &clk_rcg2_ops, 183 .ops = &clk_pll_ops, 194 .ops = &clk_pll_vote_ops, 210 .ops = &clk_pll_ops, 221 .ops = &clk_pll_vote_ops, 242 .ops = &clk_rcg2_ops, [all …]
|
D | gcc-msm8974.c | 76 .ops = &clk_pll_ops, 87 .ops = &clk_pll_vote_ops, 99 .ops = &clk_rcg2_ops, 111 .ops = &clk_rcg2_ops, 123 .ops = &clk_rcg2_ops, 139 .ops = &clk_pll_ops, 150 .ops = &clk_pll_vote_ops, 166 .ops = &clk_pll_ops, 177 .ops = &clk_pll_vote_ops, 196 .ops = &clk_rcg2_ops, [all …]
|
D | mmcc-msm8974.c | 198 .ops = &clk_pll_ops, 209 .ops = &clk_pll_vote_ops, 225 .ops = &clk_pll_ops, 236 .ops = &clk_pll_vote_ops, 251 .ops = &clk_pll_ops, 267 .ops = &clk_pll_ops, 279 .ops = &clk_rcg2_ops, 304 .ops = &clk_rcg2_ops, 328 .ops = &clk_rcg2_ops, 347 .ops = &clk_rcg2_ops, [all …]
|
D | mmcc-apq8084.c | 233 .ops = &clk_pll_ops, 244 .ops = &clk_pll_vote_ops, 260 .ops = &clk_pll_ops, 271 .ops = &clk_pll_vote_ops, 286 .ops = &clk_pll_ops, 302 .ops = &clk_pll_ops, 317 .ops = &clk_pll_ops, 329 .ops = &clk_rcg2_ops, 354 .ops = &clk_rcg2_ops, 378 .ops = &clk_rcg2_ops, [all …]
|
D | gcc-ipq806x.c | 47 .ops = &clk_pll_ops, 58 .ops = &clk_pll_vote_ops, 74 .ops = &clk_pll_ops, 90 .ops = &clk_pll_ops, 101 .ops = &clk_pll_vote_ops, 117 .ops = &clk_pll_ops, 128 .ops = &clk_pll_vote_ops, 232 .ops = &clk_rcg_ops, 250 .ops = &clk_branch_ops, 283 .ops = &clk_rcg_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/net/wireless/iwlwifi/ |
D | iwl-op-mode.h | 169 int iwl_opmode_register(const char *name, const struct iwl_op_mode_ops *ops); 179 const struct iwl_op_mode_ops *ops; member 187 op_mode->ops->stop(op_mode); in iwl_op_mode_stop() 194 return op_mode->ops->rx(op_mode, rxb, cmd); in iwl_op_mode_rx() 200 op_mode->ops->queue_full(op_mode, queue); in iwl_op_mode_queue_full() 206 op_mode->ops->queue_not_full(op_mode, queue); in iwl_op_mode_queue_not_full() 213 return op_mode->ops->hw_rf_kill(op_mode, state); in iwl_op_mode_hw_rf_kill() 219 op_mode->ops->free_skb(op_mode, skb); in iwl_op_mode_free_skb() 224 op_mode->ops->nic_error(op_mode); in iwl_op_mode_nic_error() 229 op_mode->ops->cmd_queue_full(op_mode); in iwl_op_mode_cmd_queue_full() [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 …]
|