/drivers/scsi/ |
D | hpsa.c | 239 static int hpsa_add_sas_host(struct ctlr_info *h); 240 static void hpsa_delete_sas_host(struct ctlr_info *h); 245 *hpsa_find_device_by_sas_rphy(struct ctlr_info *h, 258 static int hpsa_passthru_ioctl(struct ctlr_info *h, 260 static int hpsa_big_passthru_ioctl(struct ctlr_info *h, 268 static void cmd_free(struct ctlr_info *h, struct CommandList *c); 269 static struct CommandList *cmd_alloc(struct ctlr_info *h); 270 static void cmd_tagged_free(struct ctlr_info *h, struct CommandList *c); 271 static struct CommandList *cmd_tagged_alloc(struct ctlr_info *h, 273 static int fill_cmd(struct CommandList *c, u8 cmd, struct ctlr_info *h, [all …]
|
D | hpsa.h | 31 void (*submit_command)(struct ctlr_info *h, 33 void (*set_intr_mask)(struct ctlr_info *h, unsigned long val); 34 bool (*intr_pending)(struct ctlr_info *h); 35 unsigned long (*command_completed)(struct ctlr_info *h, u8 q); 420 static void SA5_submit_command(struct ctlr_info *h, in SA5_submit_command() argument 423 writel(c->busaddr, h->vaddr + SA5_REQUEST_PORT_OFFSET); in SA5_submit_command() 424 (void) readl(h->vaddr + SA5_SCRATCHPAD_OFFSET); in SA5_submit_command() 427 static void SA5_submit_command_no_read(struct ctlr_info *h, in SA5_submit_command_no_read() argument 430 writel(c->busaddr, h->vaddr + SA5_REQUEST_PORT_OFFSET); in SA5_submit_command_no_read() 433 static void SA5_submit_command_ioaccel2(struct ctlr_info *h, in SA5_submit_command_ioaccel2() argument [all …]
|
/drivers/media/dvb-core/ |
D | dvb_net.c | 316 static int dvb_net_ule_new_ts_cell(struct dvb_net_ule_handle *h) in dvb_net_ule_new_ts_cell() argument 323 memcpy(ule_where, h->ts, TS_SZ); in dvb_net_ule_new_ts_cell() 335 if ((h->ts[0] != TS_SYNC) || (h->ts[1] & TS_TEI) || in dvb_net_ule_new_ts_cell() 336 ((h->ts[3] & TS_SC) != 0)) { in dvb_net_ule_new_ts_cell() 338 h->priv->ts_count, h->ts[0], in dvb_net_ule_new_ts_cell() 339 (h->ts[1] & TS_TEI) >> 7, in dvb_net_ule_new_ts_cell() 340 (h->ts[3] & TS_SC) >> 6); in dvb_net_ule_new_ts_cell() 343 if (h->priv->ule_skb) { in dvb_net_ule_new_ts_cell() 344 dev_kfree_skb(h->priv->ule_skb); in dvb_net_ule_new_ts_cell() 346 h->dev->stats.rx_errors++; in dvb_net_ule_new_ts_cell() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | vpstate.c | 42 nvbios_vpstate_parse(struct nvkm_bios *b, struct nvbios_vpstate_header *h) in nvbios_vpstate_parse() argument 44 if (!h) in nvbios_vpstate_parse() 47 h->offset = nvbios_vpstate_offset(b); in nvbios_vpstate_parse() 48 if (!h->offset) in nvbios_vpstate_parse() 51 h->version = nvbios_rd08(b, h->offset); in nvbios_vpstate_parse() 52 switch (h->version) { in nvbios_vpstate_parse() 54 h->hlen = nvbios_rd08(b, h->offset + 0x1); in nvbios_vpstate_parse() 55 h->elen = nvbios_rd08(b, h->offset + 0x2); in nvbios_vpstate_parse() 56 h->slen = nvbios_rd08(b, h->offset + 0x3); in nvbios_vpstate_parse() 57 h->scount = nvbios_rd08(b, h->offset + 0x4); in nvbios_vpstate_parse() [all …]
|
/drivers/staging/media/zoran/ |
D | videocodec.c | 59 struct codec_list *h = codeclist_top; in videocodec_attach() local 72 if (!h) { in videocodec_attach() 77 while (h) { in videocodec_attach() 80 if ((master->flags & h->codec->flags) == master->flags) { in videocodec_attach() 81 dprintk(4, "%s: try '%s'\n", __func__, h->codec->name); in videocodec_attach() 83 if (!try_module_get(h->codec->owner)) in videocodec_attach() 86 codec = kmemdup(h->codec, sizeof(struct videocodec), GFP_KERNEL); in videocodec_attach() 91 snprintf(codec->name + res, sizeof(codec->name) - res, "[%d]", h->attached); in videocodec_attach() 101 a = h->list; in videocodec_attach() 103 h->list = ptr; in videocodec_attach() [all …]
|
/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_debugfs.c | 15 static int hns3_dbg_queue_info(struct hnae3_handle *h, in hns3_dbg_queue_info() argument 18 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev); in hns3_dbg_queue_info() 19 struct hns3_nic_priv *priv = h->priv; in hns3_dbg_queue_info() 27 dev_err(&h->pdev->dev, "priv->ring is NULL\n"); in hns3_dbg_queue_info() 31 queue_max = h->kinfo.num_tqps; in hns3_dbg_queue_info() 38 dev_info(&h->pdev->dev, "queue info\n"); in hns3_dbg_queue_info() 40 if (queue_num >= h->kinfo.num_tqps) { in hns3_dbg_queue_info() 41 dev_err(&h->pdev->dev, in hns3_dbg_queue_info() 43 h->kinfo.num_tqps - 1); in hns3_dbg_queue_info() 56 ring = &priv->ring[(u32)(i + h->kinfo.num_tqps)]; in hns3_dbg_queue_info() [all …]
|
D | hns3_ethtool.c | 81 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_lp_setup() local 82 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev); in hns3_lp_setup() 86 if (!h->ae_algo->ops->set_loopback || in hns3_lp_setup() 87 !h->ae_algo->ops->set_promisc_mode) in hns3_lp_setup() 95 ret = h->ae_algo->ops->set_loopback(h, loop, en); in hns3_lp_setup() 106 h->ae_algo->ops->set_promisc_mode(h, true, true); in hns3_lp_setup() 109 hns3_request_update_promisc_mode(h); in hns3_lp_setup() 119 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_lp_up() local 122 ret = hns3_nic_reset_all_ring(h); in hns3_lp_up() 207 struct hnae3_handle *h = priv->ae_handle; in hns3_lb_check_rx_ring() local [all …]
|
D | hns3_dcbnl.c | 9 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_dcbnl_ieee_getets() local 14 if (h->kinfo.dcb_ops->ieee_getets) in hns3_dcbnl_ieee_getets() 15 return h->kinfo.dcb_ops->ieee_getets(h, ets); in hns3_dcbnl_ieee_getets() 22 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_dcbnl_ieee_setets() local 27 if (h->kinfo.dcb_ops->ieee_setets) in hns3_dcbnl_ieee_setets() 28 return h->kinfo.dcb_ops->ieee_setets(h, ets); in hns3_dcbnl_ieee_setets() 35 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_dcbnl_ieee_getpfc() local 40 if (h->kinfo.dcb_ops->ieee_getpfc) in hns3_dcbnl_ieee_getpfc() 41 return h->kinfo.dcb_ops->ieee_getpfc(h, pfc); in hns3_dcbnl_ieee_getpfc() 48 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_dcbnl_ieee_setpfc() local [all …]
|
/drivers/clk/qcom/ |
D | clk-hfpll.c | 22 struct clk_hfpll *h = to_clk_hfpll(hw); in __clk_hfpll_init_once() local 23 struct hfpll_data const *hd = h->d; in __clk_hfpll_init_once() 24 struct regmap *regmap = h->clkr.regmap; in __clk_hfpll_init_once() 26 if (likely(h->init_done)) in __clk_hfpll_init_once() 50 h->init_done = true; in __clk_hfpll_init_once() 55 struct clk_hfpll *h = to_clk_hfpll(hw); in __clk_hfpll_enable() local 56 struct hfpll_data const *hd = h->d; in __clk_hfpll_enable() 57 struct regmap *regmap = h->clkr.regmap; in __clk_hfpll_enable() 91 struct clk_hfpll *h = to_clk_hfpll(hw); in clk_hfpll_enable() local 92 struct hfpll_data const *hd = h->d; in clk_hfpll_enable() [all …]
|
/drivers/scsi/device_handler/ |
D | scsi_dh_rdac.c | 229 struct rdac_dh_data *h; member 301 lun_table[qdata->h->lun] = 0x81; in rdac_failover_get() 362 static int get_lun_info(struct scsi_device *sdev, struct rdac_dh_data *h, in get_lun_info() argument 366 struct c8_inquiry *inqp = &h->inq.c8; in get_lun_info() 375 h->lun = inqp->lun[7]; /* Uses only the last byte */ in get_lun_info() 388 static int check_ownership(struct scsi_device *sdev, struct rdac_dh_data *h) in check_ownership() argument 392 struct c9_inquiry *inqp = &h->inq.c9; in check_ownership() 394 h->state = RDAC_STATE_ACTIVE; in check_ownership() 399 h->mode = RDAC_MODE_IOSHIP; /* LUN in IOSHIP mode */ in check_ownership() 401 h->mode = RDAC_MODE_AVT; /* LUN in AVT mode */ in check_ownership() [all …]
|
D | scsi_dh_hp_sw.c | 43 static int tur_done(struct scsi_device *sdev, struct hp_sw_dh_data *h, in tur_done() argument 59 h->path_state = HP_SW_PATH_PASSIVE; in tur_done() 81 static int hp_sw_tur(struct scsi_device *sdev, struct hp_sw_dh_data *h) in hp_sw_tur() argument 94 ret = tur_done(sdev, h, &sshdr); in hp_sw_tur() 102 h->path_state = HP_SW_PATH_ACTIVE; in hp_sw_tur() 117 static int hp_sw_start_stop(struct hp_sw_dh_data *h) in hp_sw_start_stop() argument 121 struct scsi_device *sdev = h->sdev; in hp_sw_start_stop() 164 struct hp_sw_dh_data *h = sdev->handler_data; in hp_sw_prep_fn() local 166 if (h->path_state != HP_SW_PATH_ACTIVE) { in hp_sw_prep_fn() 188 struct hp_sw_dh_data *h = sdev->handler_data; in hp_sw_activate() local [all …]
|
/drivers/media/i2c/ |
D | saa6752hs.c | 309 struct saa6752hs_state *h) in saa6752hs_set_bitrate() argument 311 struct saa6752hs_mpeg_params *params = &h->params; in saa6752hs_set_bitrate() 360 struct saa6752hs_state *h = in saa6752hs_try_ctrl() local 367 h->video_bitrate_peak->val < h->video_bitrate->val) in saa6752hs_try_ctrl() 368 h->video_bitrate_peak->val = h->video_bitrate->val; in saa6752hs_try_ctrl() 376 struct saa6752hs_state *h = in saa6752hs_s_ctrl() local 378 struct saa6752hs_mpeg_params *params = &h->params; in saa6752hs_s_ctrl() 413 params->vi_bitrate = h->video_bitrate->val / 1000; in saa6752hs_s_ctrl() 414 params->vi_bitrate_peak = h->video_bitrate_peak->val / 1000; in saa6752hs_s_ctrl() 415 v4l2_ctrl_activate(h->video_bitrate_peak, in saa6752hs_s_ctrl() [all …]
|
/drivers/gpu/drm/vboxvideo/ |
D | vbox_hgsmi.c | 50 struct hgsmi_buffer_header *h; in hgsmi_buffer_alloc() local 55 total_size = size + sizeof(*h) + sizeof(*t); in hgsmi_buffer_alloc() 56 h = gen_pool_dma_alloc(guest_pool, total_size, &offset); in hgsmi_buffer_alloc() 57 if (!h) in hgsmi_buffer_alloc() 60 t = (struct hgsmi_buffer_tail *)((u8 *)h + sizeof(*h) + size); in hgsmi_buffer_alloc() 62 h->flags = HGSMI_BUFFER_HEADER_F_SEQ_SINGLE; in hgsmi_buffer_alloc() 63 h->data_size = size; in hgsmi_buffer_alloc() 64 h->channel = channel; in hgsmi_buffer_alloc() 65 h->channel_info = channel_info; in hgsmi_buffer_alloc() 66 memset(&h->u.header_data, 0, sizeof(h->u.header_data)); in hgsmi_buffer_alloc() [all …]
|
/drivers/acpi/ |
D | acpi_configfs.c | 82 struct acpi_table_header *h = get_header(cfg); in acpi_table_aml_read() local 84 if (!h) in acpi_table_aml_read() 88 memcpy(data, h, h->length); in acpi_table_aml_read() 90 return h->length; in acpi_table_aml_read() 104 struct acpi_table_header *h = get_header(cfg); in acpi_table_signature_show() local 106 if (!h) in acpi_table_signature_show() 109 return sprintf(str, "%.*s\n", ACPI_NAMESEG_SIZE, h->signature); in acpi_table_signature_show() 114 struct acpi_table_header *h = get_header(cfg); in acpi_table_length_show() local 116 if (!h) in acpi_table_length_show() 119 return sprintf(str, "%d\n", h->length); in acpi_table_length_show() [all …]
|
/drivers/gpu/drm/i915/gvt/ |
D | firmware.c | 80 struct gvt_firmware_header *h; in expose_firmware_sysfs() local 86 size = sizeof(*h) + info->mmio_size + info->cfg_space_size; in expose_firmware_sysfs() 91 h = firmware; in expose_firmware_sysfs() 93 h->magic = VGT_MAGIC; in expose_firmware_sysfs() 94 h->version = FIRMWARE_VERSION; in expose_firmware_sysfs() 95 h->cfg_space_size = info->cfg_space_size; in expose_firmware_sysfs() 96 h->cfg_space_offset = offsetof(struct gvt_firmware_header, data); in expose_firmware_sysfs() 97 h->mmio_size = info->mmio_size; in expose_firmware_sysfs() 98 h->mmio_offset = h->cfg_space_offset + h->cfg_space_size; in expose_firmware_sysfs() 100 p = firmware + h->cfg_space_offset; in expose_firmware_sysfs() [all …]
|
/drivers/gpu/drm/i915/selftests/ |
D | lib_sw_fence.c | 95 struct heap_fence *h = container_of(fence, typeof(*h), fence); in heap_fence_notify() local 102 heap_fence_put(&h->fence); in heap_fence_notify() 110 struct heap_fence *h; in heap_fence_create() local 112 h = kmalloc(sizeof(*h), gfp); in heap_fence_create() 113 if (!h) in heap_fence_create() 116 i915_sw_fence_init(&h->fence, heap_fence_notify); in heap_fence_create() 117 refcount_set(&h->ref.refcount, 2); in heap_fence_create() 119 return &h->fence; in heap_fence_create() 124 struct heap_fence *h = container_of(ref, typeof(*h), ref); in heap_fence_release() local 126 i915_sw_fence_fini(&h->fence); in heap_fence_release() [all …]
|
/drivers/scsi/aic7xxx/ |
D | Makefile | 42 clean-files := aic7xxx_seq.h aic7xxx_reg.h aic7xxx_reg_print.c 43 clean-files += aic79xx_seq.h aic79xx_reg.h aic79xx_reg_print.c 47 $(addprefix $(obj)/,$(aic7xxx-y)): $(obj)/aic7xxx_seq.h $(obj)/aic7xxx_reg.h 48 $(addprefix $(obj)/,$(aic79xx-y)): $(obj)/aic79xx_seq.h $(obj)/aic79xx_reg.h 50 aic7xxx-gen-$(CONFIG_AIC7XXX_BUILD_FIRMWARE) := $(obj)/aic7xxx_reg.h 54 -p $(obj)/aic7xxx_reg_print.c -i aic7xxx_osm.h 57 $(obj)/aic7xxx_seq.h: $(src)/aic7xxx.seq $(src)/aic7xxx.reg $(obj)/aicasm/aicasm 58 $(obj)/aicasm/aicasm -I$(srctree)/$(src) -r $(obj)/aic7xxx_reg.h \ 59 $(aicasm-7xxx-opts-y) -o $(obj)/aic7xxx_seq.h \ 62 $(aic7xxx-gen-y): $(objtree)/$(obj)/aic7xxx_seq.h [all …]
|
/drivers/net/ethernet/hisilicon/hns/ |
D | hns_ethtool.c | 43 struct hnae_handle *h; in hns_nic_get_link() local 45 h = priv->ae_handle; in hns_nic_get_link() 54 if (h->dev && h->dev->ops && h->dev->ops->get_status) in hns_nic_get_link() 55 link_stat = link_stat && h->dev->ops->get_status(h); in hns_nic_get_link() 118 struct hnae_handle *h; in hns_nic_get_link_ksettings() local 128 h = priv->ae_handle; in hns_nic_get_link_ksettings() 129 if (!h->dev || !h->dev->ops || !h->dev->ops->get_info) in hns_nic_get_link_ksettings() 132 ret = h->dev->ops->get_info(h, NULL, &speed, &duplex); in hns_nic_get_link_ksettings() 160 supported |= h->if_support; in hns_nic_get_link_ksettings() 161 if (h->phy_if == PHY_INTERFACE_MODE_SGMII) { in hns_nic_get_link_ksettings() [all …]
|
D | hns_enet.c | 930 static int is_valid_clean_head(struct hnae_ring *ring, int h) in is_valid_clean_head() argument 935 if (unlikely(h > ring->desc_num)) in is_valid_clean_head() 940 assert(u != c && h != c); /* must be checked before call this func */ in is_valid_clean_head() 942 return u > c ? (h > c && h <= u) : (h > c || h <= u); in is_valid_clean_head() 1092 struct hnae_handle *h = priv->ae_handle; in hns_nic_adjust_link() local 1101 if (h->dev->ops->need_adjust_link(h, ndev->phydev->speed, in hns_nic_adjust_link() 1109 h->dev->ops->adjust_link(h, ndev->phydev->speed, in hns_nic_adjust_link() 1115 state = state && h->dev->ops->get_status(h); in hns_nic_adjust_link() 1136 int hns_nic_init_phy(struct net_device *ndev, struct hnae_handle *h) in hns_nic_init_phy() argument 1139 struct phy_device *phy_dev = h->phy_dev; in hns_nic_init_phy() [all …]
|
/drivers/gpu/drm/radeon/ |
D | Makefile | 7 …h r100_reg_safe.h r200_reg_safe.h rv515_reg_safe.h r300_reg_safe.h r420_reg_safe.h rs600_reg_safe.… 12 $(obj)/%_reg_safe.h: $(src)/reg_srcs/% $(obj)/mkregtable FORCE 15 $(obj)/r100.o: $(obj)/r100_reg_safe.h $(obj)/rn50_reg_safe.h 17 $(obj)/r200.o: $(obj)/r200_reg_safe.h 19 $(obj)/rv515.o: $(obj)/rv515_reg_safe.h 21 $(obj)/r300.o: $(obj)/r300_reg_safe.h 23 $(obj)/r420.o: $(obj)/r420_reg_safe.h 25 $(obj)/rs600.o: $(obj)/rs600_reg_safe.h 27 $(obj)/r600_cs.o: $(obj)/r600_reg_safe.h 29 $(obj)/evergreen_cs.o: $(obj)/evergreen_reg_safe.h $(obj)/cayman_reg_safe.h
|
/drivers/gpu/drm/i915/gt/ |
D | selftest_hangcheck.c | 56 static int hang_init(struct hang *h, struct intel_gt *gt) in hang_init() argument 61 memset(h, 0, sizeof(*h)); in hang_init() 62 h->gt = gt; in hang_init() 64 h->ctx = kernel_context(gt->i915); in hang_init() 65 if (IS_ERR(h->ctx)) in hang_init() 66 return PTR_ERR(h->ctx); in hang_init() 68 GEM_BUG_ON(i915_gem_context_is_bannable(h->ctx)); in hang_init() 70 h->hws = i915_gem_object_create_internal(gt->i915, PAGE_SIZE); in hang_init() 71 if (IS_ERR(h->hws)) { in hang_init() 72 err = PTR_ERR(h->hws); in hang_init() [all …]
|
/drivers/net/ethernet/intel/iavf/ |
D | iavf_osdep.h | 36 #define iavf_allocate_dma_mem(h, m, unused, s, a) \ argument 37 iavf_allocate_dma_mem_d(h, m, s, a) 38 #define iavf_free_dma_mem(h, m) iavf_free_dma_mem_d(h, m) argument 44 #define iavf_allocate_virt_mem(h, m, s) iavf_allocate_virt_mem_d(h, m, s) argument 45 #define iavf_free_virt_mem(h, m) iavf_free_virt_mem_d(h, m) argument 47 #define iavf_debug(h, m, s, ...) \ argument 49 if (((m) & (h)->debug_mask)) \ 51 (h)->bus.bus_id, (h)->bus.device, \ 52 (h)->bus.func, ##__VA_ARGS__); \
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_osdep.h | 39 #define i40e_allocate_dma_mem(h, m, unused, s, a) \ argument 40 i40e_allocate_dma_mem_d(h, m, s, a) 41 #define i40e_free_dma_mem(h, m) i40e_free_dma_mem_d(h, m) argument 48 #define i40e_allocate_virt_mem(h, m, s) i40e_allocate_virt_mem_d(h, m, s) argument 49 #define i40e_free_virt_mem(h, m) i40e_free_virt_mem_d(h, m) argument 51 #define i40e_debug(h, m, s, ...) \ argument 53 if (((m) & (h)->debug_mask)) \ 55 (h)->bus.bus_id, (h)->bus.device, \ 56 (h)->bus.func, ##__VA_ARGS__); \
|
/drivers/sh/intc/ |
D | access.c | 75 static unsigned long test_8(unsigned long addr, unsigned long h, in test_8() argument 79 return intc_get_field_from_handle(__raw_readb(ptr), h); in test_8() 82 static unsigned long test_16(unsigned long addr, unsigned long h, in test_16() argument 86 return intc_get_field_from_handle(__raw_readw(ptr), h); in test_16() 89 static unsigned long test_32(unsigned long addr, unsigned long h, in test_32() argument 93 return intc_get_field_from_handle(__raw_readl(ptr), h); in test_32() 96 static unsigned long write_8(unsigned long addr, unsigned long h, in write_8() argument 100 __raw_writeb(intc_set_field_from_handle(0, data, h), ptr); in write_8() 105 static unsigned long write_16(unsigned long addr, unsigned long h, in write_16() argument 109 __raw_writew(intc_set_field_from_handle(0, data, h), ptr); in write_16() [all …]
|
/drivers/char/ipmi/ |
D | ipmi_si_hotmod.c | 105 struct ipmi_plat_data *h) in parse_hotmod_str() argument 111 h->iftype = IPMI_PLAT_IF_SI; in parse_hotmod_str() 120 h->type = ival; in parse_hotmod_str() 125 h->space = ival; in parse_hotmod_str() 132 rv = kstrtoul(curr, 0, &h->addr); in parse_hotmod_str() 150 rv = check_hotmod_int_op(curr, o, "rsp", &h->regspacing); in parse_hotmod_str() 155 rv = check_hotmod_int_op(curr, o, "rsi", &h->regsize); in parse_hotmod_str() 160 rv = check_hotmod_int_op(curr, o, "rsh", &h->regshift); in parse_hotmod_str() 165 rv = check_hotmod_int_op(curr, o, "irq", &h->irq); in parse_hotmod_str() 170 rv = check_hotmod_int_op(curr, o, "ipmb", &h->slave_addr); in parse_hotmod_str() [all …]
|